{"version":3,"sources":["../../../src/evm/gen/template.ts","../../../src/evm/template-loader.ts","../../../src/evm/paywall.ts","../../../src/evm/gen/decimals.ts","../../../src/evm/index.ts"],"names":["EVM_PAYWALL_TEMPLATE","formatUnits"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA,gBAAA,GAAA,EAAA;AAAA,QAAA,CAAA,gBAAA,EAAA;AAAA,EAAA,oBAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAAA,IAIa,oBAAA;AAJb,IAAA,aAAA,GAAA,KAAA,CAAA;AAAA,EAAA,yBAAA,GAAA;AAIO,IAAM,oBAAA,GACX,wnvuEAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACLF,IAAI,cAAA,GAAgC,IAAA;AAE7B,SAAS,cAAA,GAAgC;AAC9C,EAAA,IAAI,mBAAmB,IAAA,EAAM;AAC3B,IAAA,OAAO,cAAA;AAAA,EACT;AAEA,EAAA,IAAI;AAEF,IAAA,MAAM,QAAA,IAAW,aAAA,EAAA,EAAA,YAAA,CAAA,gBAAA,CAAA,CAAA;AACjB,IAAA,cAAA,GAAiB,QAAA,CAAS,oBAAA;AAC1B,IAAA,OAAO,cAAA;AAAA,EACT,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,IAAA;AAAA,EACT;AACF;;;ACNA,SAAS,aAAa,GAAA,EAAqB;AACzC,EAAA,OAAO,GAAA,CACJ,QAAQ,KAAA,EAAO,MAAM,EACrB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,IAAA,EAAM,KAAK,CAAA,CACnB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,OAAO,KAAK,CAAA,CACpB,OAAA,CAAQ,KAAA,EAAO,KAAK,CAAA;AACzB;AAOA,SAAS,cAAA,GAAiB;AACxB,EAAA,OAAO;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,WAAA,EAAa,4CAAA;AAAA,MACb,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,WAAA,EAAa,4CAAA;AAAA,MACb,QAAA,EAAU;AAAA;AACZ,GACF;AACF;AAyBO,SAAS,kBAAkB,OAAA,EAAoC;AACpE,EAAA,MAAMA,wBAAuB,cAAA,EAAe;AAE5C,EAAA,IAAI,CAACA,qBAAAA,EAAsB;AACzB,IAAA,OAAO,CAAA,gHAAA,CAAA;AAAA,EACT;AAEA,EAAA,MAAM,EAAE,QAAQ,OAAA,EAAS,eAAA,EAAiB,YAAY,OAAA,EAAS,OAAA,EAAS,YAAW,GAAI,OAAA;AAEvF,EAAA,MAAM,YAAA,GAAe,UACjB,gEAAA,GACA,EAAA;AAEJ,EAAA,MAAM,SAAS,cAAA,EAAe;AAE9B,EAAA,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA,cAAA,EAGP,MAAM,CAAA;AAAA,uBAAA,EACG,IAAA,CAAK,SAAA,CAAU,eAAe,CAAC,CAAA;AAAA,eAAA,EACvC,OAAO,CAAA;AAAA,mBAAA,EACH,YAAA,CAAa,UAAU,CAAC,CAAA;AAAA;AAAA,qBAAA,EAEtB,IAAA,CAAK,SAAA,CAAU,MAAM,CAAC,CAAA;AAAA;AAAA,gBAAA,EAE3B,YAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,gBAAA,EAC3B,YAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,kBAAA,EACzB,UAAA,GAAa,IAAA,CAAK,SAAA,CAAU,UAAU,IAAI,WAAW,CAAA;AAAA;AAAA,IAAA,EAEnE,YAAY;AAAA,WAAA,CAAA;AAGhB,EAAA,OAAOA,qBAAAA,CAAqB,OAAA,CAAQ,SAAA,EAAW,CAAA,EAAG,YAAY;AAAA,OAAA,CAAW,CAAA;AAC3E;;;ACnFO,IAAM,gBAAA,GAA2C;AAAA,EACtD,cAAA,EAAgB,EAAA;AAAA,EAChB,cAAA,EAAgB,EAAA;AAAA,EAChB,aAAA,EAAe;AACjB,CAAA;;;ACQO,SAAS,wBAAwB,WAAA,EAA0C;AAChF,EAAA,OAAO,gBAAA,CAAiB,WAAA,CAAY,OAAO,CAAA,IAAK,CAAA;AAClD;AAKO,IAAM,UAAA,GAAoC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO/C,SAAS,WAAA,EAA2C;AAClD,IAAA,OAAO,WAAA,CAAY,OAAA,CAAQ,UAAA,CAAW,SAAS,CAAA;AAAA,EACjD,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,YAAA,CACE,WAAA,EACA,eAAA,EACA,MAAA,EACQ;AACR,IAAA,MAAM,QAAA,GAAW,wBAAwB,WAAW,CAAA;AACpD,IAAA,MAAM,MAAA,GAAS,WAAA,CAAY,MAAA,IAAU,WAAA,CAAY,iBAAA;AAGjD,IAAA,MAAM,MAAA,GAAS,SAAS,MAAA,CAAOC,gBAAA,CAAY,OAAO,MAAM,CAAA,EAAG,QAAQ,CAAC,CAAA,GAAI,CAAA;AAExE,IAAA,OAAO,iBAAA,CAAkB;AAAA,MACvB,MAAA;AAAA,MACA,eAAA;AAAA,MACA,UAAA,EAAY,eAAA,CAAgB,QAAA,EAAU,GAAA,IAAO,OAAO,UAAA,IAAc,EAAA;AAAA,MAClE,OAAA,EAAS,OAAO,OAAA,IAAW,IAAA;AAAA,MAC3B,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,SAAS,MAAA,CAAO,OAAA;AAAA,MAChB,YAAY,MAAA,CAAO;AAAA,KACpB,CAAA;AAAA,EACH;AACF","file":"index.cjs","sourcesContent":["// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * The pre-built EVM paywall template with inlined CSS and JS\n */\nexport const EVM_PAYWALL_TEMPLATE =\n  '<!DOCTYPE html><html lang=\"en\"><head>\\n        <meta charset=\"UTF-8\">\\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\\n    <title>Payment Required</title><style>*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}:root{--background-color: #f9fafb;--container-background-color: white;--text-color: #111827;--secondary-text-color: #4b5563;--details-background-color: #f9fafb;--details-background-color-hover: #f3f4f6;--button-primary-color: #2563eb;--button-primary-hover-color: #1d4ed8;--button-secondary-color: #eef0f3;--button-secondary-hover-color: #e9ebee;--button-positive-color: #059669;--button-positive-hover-color: #047857;--button-error-color: #ef4444;--button-error-hover-color: #dc2626}body{min-height:100vh;background-color:var(--background-color);font-family:Inter,system-ui,-apple-system,sans-serif}.container{max-width:32rem;margin:4rem auto;padding:1.5rem;background-color:var(--container-background-color);border-radius:.75rem;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.header{display:flex;flex-direction:column;gap:1rem}.title{font-size:1.5rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.subtitle{color:var(--secondary-text-color)}.instructions{font-size:.9rem;color:var(--secondary-text-color);font-style:italic}.content{display:flex;flex-direction:column;gap:1rem}.input{width:100%;padding:.75rem 1rem;border-radius:.5rem;border:1px solid #d1d5db;background-color:#fff;transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--button-primary-color);box-shadow:0 0 0 3px #2563eb33}.button{width:100%;padding:.75rem 1rem;border-radius:.5rem;font-weight:600;border:none;cursor:pointer;transition:background-color .15s}.button-primary{background-color:var(--button-primary-color);color:#fff}.button-primary:hover{background-color:var(--button-primary-hover-color)}.button-secondary{background-color:var(--button-secondary-color);color:var(--text-color)}.button-secondary:hover{background-color:var(--button-secondary-hover-color)}.button-positive{background-color:var(--button-positive-color);color:#fff}.button-positive:hover{background-color:var(--button-positive-hover-color)}.button-error{background-color:var(--button-error-color);color:#fff}.button-error:hover{background-color:var(--button-error-hover-color)}.payment-details{padding:1rem;margin-bottom:1rem;background-color:var(--details-background-color);border-radius:.5rem}.payment-row{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.5rem}.payment-row:last-child{margin-bottom:0}.payment-label{color:var(--text-color)}.payment-value{font-weight:500}.hidden{display:none}.status{text-align:center;font-size:.875rem}.cta-container{display:flex;flex-basis:50%;flex-direction:row;gap:.5rem;margin-top:1rem}.balance-button{background-color:transparent;border:none;cursor:pointer;min-height:1rem;min-width:150px;display:flex;justify-content:flex-end;align-items:center}@keyframes spin{to{transform:rotate(360deg)}}.spinner{display:inline-flex;align-items:center;justify-content:center}.spinner>div{animation:spin 1s linear infinite;border:2px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;width:1rem;height:1rem}\\n</style></head>\\n    <body>\\n        <div id=\"root\"></div>\\n    \\n    \\n  <script type=\"module\">\"use strict\";(()=>{var Eut=Object.create;var X7=Object.defineProperty;var Aut=Object.getOwnPropertyDescriptor;var Sut=Object.getOwnPropertyNames;var Cut=Object.getPrototypeOf,Tut=Object.prototype.hasOwnProperty;var Rue=e=>{throw TypeError(e)};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var X=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Wn=(e,t)=>{for(var r in t)X7(e,r,{get:t[r],enumerable:!0})},Mue=(e,t,r,n)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of Sut(t))!Tut.call(e,o)&&o!==r&&X7(e,o,{get:()=>t[o],enumerable:!(n=Aut(t,o))||n.enumerable});return e};var Sr=(e,t,r)=>(r=e!=null?Eut(Cut(e)):{},Mue(t||!e||!e.__esModule?X7(r,\"default\",{value:e,enumerable:!0}):r,e)),Kr=e=>Mue(X7({},\"__esModule\",{value:!0}),e);var d$=(e,t,r)=>t.has(e)||Rue(\"Cannot \"+r);var ne=(e,t,r)=>(d$(e,t,\"read from private field\"),r?r.call(e):t.get(e)),Ye=(e,t,r)=>t.has(e)?Rue(\"Cannot add the same private member more than once\"):t instanceof WeakSet?t.add(e):t.set(e,r),Me=(e,t,r,n)=>(d$(e,t,\"write to private field\"),n?n.call(e,r):t.set(e,r),r),Rt=(e,t,r)=>(d$(e,t,\"access private method\"),r);var zA=(e,t,r,n)=>({set _(o){Me(e,t,o,r)},get _(){return ne(e,t,n)}});var Uue=X(e9=>{\"use strict\";c();e9.byteLength=kut;e9.toByteArray=Iut;e9.fromByteArray=Mut;var Gf=[],ou=[],_ut=typeof Uint8Array<\"u\"?Uint8Array:Array,p$=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";for(c1=0,Oue=p$.length;c1<Oue;++c1)Gf[c1]=p$[c1],ou[p$.charCodeAt(c1)]=c1;var c1,Oue;ou[45]=62;ou[95]=63;function Nue(e){var t=e.length;if(t%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function kut(e){var t=Nue(e),r=t[0],n=t[1];return(r+n)*3/4-n}function But(e,t,r){return(t+r)*3/4-r}function Iut(e){var t,r=Nue(e),n=r[0],o=r[1],s=new _ut(But(e,n,o)),u=0,f=o>0?n-4:n,d;for(d=0;d<f;d+=4)t=ou[e.charCodeAt(d)]<<18|ou[e.charCodeAt(d+1)]<<12|ou[e.charCodeAt(d+2)]<<6|ou[e.charCodeAt(d+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=t&255;return o===2&&(t=ou[e.charCodeAt(d)]<<2|ou[e.charCodeAt(d+1)]>>4,s[u++]=t&255),o===1&&(t=ou[e.charCodeAt(d)]<<10|ou[e.charCodeAt(d+1)]<<4|ou[e.charCodeAt(d+2)]>>2,s[u++]=t>>8&255,s[u++]=t&255),s}function Put(e){return Gf[e>>18&63]+Gf[e>>12&63]+Gf[e>>6&63]+Gf[e&63]}function Rut(e,t,r){for(var n,o=[],s=t;s<r;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),o.push(Put(n));return o.join(\"\")}function Mut(e){for(var t,r=e.length,n=r%3,o=[],s=16383,u=0,f=r-n;u<f;u+=s)o.push(Rut(e,u,u+s>f?f:u+s));return n===1?(t=e[r-1],o.push(Gf[t>>2]+Gf[t<<4&63]+\"==\")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(Gf[t>>10]+Gf[t>>4&63]+Gf[t<<2&63]+\"=\")),o.join(\"\")}});var Due=X(m$=>{c();m$.read=function(e,t,r,n,o){var s,u,f=o*8-n-1,d=(1<<f)-1,m=d>>1,h=-7,y=r?o-1:0,v=r?-1:1,E=e[t+y];for(y+=v,s=E&(1<<-h)-1,E>>=-h,h+=f;h>0;s=s*256+e[t+y],y+=v,h-=8);for(u=s&(1<<-h)-1,s>>=-h,h+=n;h>0;u=u*256+e[t+y],y+=v,h-=8);if(s===0)s=1-m;else{if(s===d)return u?NaN:(E?-1:1)*(1/0);u=u+Math.pow(2,n),s=s-m}return(E?-1:1)*u*Math.pow(2,s-n)};m$.write=function(e,t,r,n,o,s){var u,f,d,m=s*8-o-1,h=(1<<m)-1,y=h>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:s-1,C=n?1:-1,B=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,u=h):(u=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-u))<1&&(u--,d*=2),u+y>=1?t+=v/d:t+=v*Math.pow(2,1-y),t*d>=2&&(u++,d/=2),u+y>=h?(f=0,u=h):u+y>=1?(f=(t*d-1)*Math.pow(2,o),u=u+y):(f=t*Math.pow(2,y-1)*Math.pow(2,o),u=0));o>=8;e[r+E]=f&255,E+=C,f/=256,o-=8);for(u=u<<o|f,m+=o;m>0;e[r+E]=u&255,E+=C,u/=256,m-=8);e[r+E-C]|=B*128}});var uv=X(cv=>{\"use strict\";c();var h$=Uue(),iv=Due(),Hue=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\"?Symbol.for(\"nodejs.util.inspect.custom\"):null;cv.Buffer=ve;cv.SlowBuffer=Lut;cv.INSPECT_MAX_BYTES=50;var t9=2147483647;cv.kMaxLength=t9;ve.TYPED_ARRAY_SUPPORT=Out();!ve.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 Out(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(ve.prototype,\"parent\",{enumerable:!0,get:function(){if(ve.isBuffer(this))return this.buffer}});Object.defineProperty(ve.prototype,\"offset\",{enumerable:!0,get:function(){if(ve.isBuffer(this))return this.byteOffset}});function Fp(e){if(e>t9)throw new RangeError(\\'The value \"\\'+e+\\'\" is invalid for option \"size\"\\');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ve.prototype),t}function ve(e,t,r){if(typeof e==\"number\"){if(typeof t==\"string\")throw new TypeError(\\'The \"string\" argument must be of type string. Received type number\\');return x$(e)}return jue(e,t,r)}ve.poolSize=8192;function jue(e,t,r){if(typeof e==\"string\")return Uut(e,t);if(ArrayBuffer.isView(e))return Dut(e);if(e==null)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(Vf(e,ArrayBuffer)||e&&Vf(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\"u\"&&(Vf(e,SharedArrayBuffer)||e&&Vf(e.buffer,SharedArrayBuffer)))return b$(e,t,r);if(typeof e==\"number\")throw new TypeError(\\'The \"value\" argument must not be of type number. Received type number\\');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ve.from(n,t,r);let o=Hut(e);if(o)return o;if(typeof Symbol<\"u\"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==\"function\")return ve.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}ve.from=function(e,t,r){return jue(e,t,r)};Object.setPrototypeOf(ve.prototype,Uint8Array.prototype);Object.setPrototypeOf(ve,Uint8Array);function que(e){if(typeof e!=\"number\")throw new TypeError(\\'\"size\" argument must be of type number\\');if(e<0)throw new RangeError(\\'The value \"\\'+e+\\'\" is invalid for option \"size\"\\')}function Nut(e,t,r){return que(e),e<=0?Fp(e):t!==void 0?typeof r==\"string\"?Fp(e).fill(t,r):Fp(e).fill(t):Fp(e)}ve.alloc=function(e,t,r){return Nut(e,t,r)};function x$(e){return que(e),Fp(e<0?0:v$(e)|0)}ve.allocUnsafe=function(e){return x$(e)};ve.allocUnsafeSlow=function(e){return x$(e)};function Uut(e,t){if((typeof t!=\"string\"||t===\"\")&&(t=\"utf8\"),!ve.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);let r=$ue(e,t)|0,n=Fp(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}function y$(e){let t=e.length<0?0:v$(e.length)|0,r=Fp(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function Dut(e){if(Vf(e,Uint8Array)){let t=new Uint8Array(e);return b$(t.buffer,t.byteOffset,t.byteLength)}return y$(e)}function b$(e,t,r){if(t<0||e.byteLength<t)throw new RangeError(\\'\"offset\" is outside of buffer bounds\\');if(e.byteLength<t+(r||0))throw new RangeError(\\'\"length\" is outside of buffer bounds\\');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,ve.prototype),n}function Hut(e){if(ve.isBuffer(e)){let t=v$(e.length)|0,r=Fp(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!=\"number\"||E$(e.length)?Fp(0):y$(e);if(e.type===\"Buffer\"&&Array.isArray(e.data))return y$(e.data)}function v$(e){if(e>=t9)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+t9.toString(16)+\" bytes\");return e|0}function Lut(e){return+e!=e&&(e=0),ve.alloc(+e)}ve.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ve.prototype};ve.compare=function(t,r){if(Vf(t,Uint8Array)&&(t=ve.from(t,t.offset,t.byteLength)),Vf(r,Uint8Array)&&(r=ve.from(r,r.offset,r.byteLength)),!ve.isBuffer(t)||!ve.isBuffer(r))throw new TypeError(\\'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array\\');if(t===r)return 0;let n=t.length,o=r.length;for(let s=0,u=Math.min(n,o);s<u;++s)if(t[s]!==r[s]){n=t[s],o=r[s];break}return n<o?-1:o<n?1:0};ve.isEncoding=function(t){switch(String(t).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}};ve.concat=function(t,r){if(!Array.isArray(t))throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');if(t.length===0)return ve.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;let o=ve.allocUnsafe(r),s=0;for(n=0;n<t.length;++n){let u=t[n];if(Vf(u,Uint8Array))s+u.length>o.length?(ve.isBuffer(u)||(u=ve.from(u)),u.copy(o,s)):Uint8Array.prototype.set.call(o,u,s);else if(ve.isBuffer(u))u.copy(o,s);else throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');s+=u.length}return o};function $ue(e,t){if(ve.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Vf(e,ArrayBuffer))return e.byteLength;if(typeof e!=\"string\")throw new TypeError(\\'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type \\'+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let o=!1;for(;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return g$(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return r*2;case\"hex\":return r>>>1;case\"base64\":return Xue(e).length;default:if(o)return n?-1:g$(e).length;t=(\"\"+t).toLowerCase(),o=!0}}ve.byteLength=$ue;function zut(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return Zut(this,t,r);case\"utf8\":case\"utf-8\":return Vue(this,t,r);case\"ascii\":return Wut(this,t,r);case\"latin1\":case\"binary\":return Qut(this,t,r);case\"base64\":return Vut(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Jut(this,t,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),n=!0}}ve.prototype._isBuffer=!0;function u1(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ve.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(let r=0;r<t;r+=2)u1(this,r,r+1);return this};ve.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(let r=0;r<t;r+=4)u1(this,r,r+3),u1(this,r+1,r+2);return this};ve.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(let r=0;r<t;r+=8)u1(this,r,r+7),u1(this,r+1,r+6),u1(this,r+2,r+5),u1(this,r+3,r+4);return this};ve.prototype.toString=function(){let t=this.length;return t===0?\"\":arguments.length===0?Vue(this,0,t):zut.apply(this,arguments)};ve.prototype.toLocaleString=ve.prototype.toString;ve.prototype.equals=function(t){if(!ve.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t?!0:ve.compare(this,t)===0};ve.prototype.inspect=function(){let t=\"\",r=cv.INSPECT_MAX_BYTES;return t=this.toString(\"hex\",0,r).replace(/(.{2})/g,\"$1 \").trim(),this.length>r&&(t+=\" ... \"),\"<Buffer \"+t+\">\"};Hue&&(ve.prototype[Hue]=ve.prototype.inspect);ve.prototype.compare=function(t,r,n,o,s){if(Vf(t,Uint8Array)&&(t=ve.from(t,t.offset,t.byteLength)),!ve.isBuffer(t))throw new TypeError(\\'The \"target\" argument must be one of type Buffer or Uint8Array. Received type \\'+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),o===void 0&&(o=0),s===void 0&&(s=this.length),r<0||n>t.length||o<0||s>this.length)throw new RangeError(\"out of range index\");if(o>=s&&r>=n)return 0;if(o>=s)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,s>>>=0,this===t)return 0;let u=s-o,f=n-r,d=Math.min(u,f),m=this.slice(o,s),h=t.slice(r,n);for(let y=0;y<d;++y)if(m[y]!==h[y]){u=m[y],f=h[y];break}return u<f?-1:f<u?1:0};function Gue(e,t,r,n,o){if(e.length===0)return-1;if(typeof r==\"string\"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,E$(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof t==\"string\"&&(t=ve.from(t,n)),ve.isBuffer(t))return t.length===0?-1:Lue(e,t,r,n,o);if(typeof t==\"number\")return t=t&255,typeof Uint8Array.prototype.indexOf==\"function\"?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Lue(e,[t],r,n,o);throw new TypeError(\"val must be string, number or Buffer\")}function Lue(e,t,r,n,o){let s=1,u=e.length,f=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n===\"ucs2\"||n===\"ucs-2\"||n===\"utf16le\"||n===\"utf-16le\")){if(e.length<2||t.length<2)return-1;s=2,u/=2,f/=2,r/=2}function d(h,y){return s===1?h[y]:h.readUInt16BE(y*s)}let m;if(o){let h=-1;for(m=r;m<u;m++)if(d(e,m)===d(t,h===-1?0:m-h)){if(h===-1&&(h=m),m-h+1===f)return h*s}else h!==-1&&(m-=m-h),h=-1}else for(r+f>u&&(r=u-f),m=r;m>=0;m--){let h=!0;for(let y=0;y<f;y++)if(d(e,m+y)!==d(t,y)){h=!1;break}if(h)return m}return-1}ve.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};ve.prototype.indexOf=function(t,r,n){return Gue(this,t,r,n,!0)};ve.prototype.lastIndexOf=function(t,r,n){return Gue(this,t,r,n,!1)};function Fut(e,t,r,n){r=Number(r)||0;let o=e.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;let s=t.length;n>s/2&&(n=s/2);let u;for(u=0;u<n;++u){let f=parseInt(t.substr(u*2,2),16);if(E$(f))return u;e[r+u]=f}return u}function jut(e,t,r,n){return r9(g$(t,e.length-r),e,r,n)}function qut(e,t,r,n){return r9(tlt(t),e,r,n)}function $ut(e,t,r,n){return r9(Xue(t),e,r,n)}function Gut(e,t,r,n){return r9(rlt(t,e.length-r),e,r,n)}ve.prototype.write=function(t,r,n,o){if(r===void 0)o=\"utf8\",n=this.length,r=0;else if(n===void 0&&typeof r==\"string\")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o=\"utf8\")):(o=n,n=void 0);else throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");let s=this.length-r;if((n===void 0||n>s)&&(n=s),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");o||(o=\"utf8\");let u=!1;for(;;)switch(o){case\"hex\":return Fut(this,t,r,n);case\"utf8\":case\"utf-8\":return jut(this,t,r,n);case\"ascii\":case\"latin1\":case\"binary\":return qut(this,t,r,n);case\"base64\":return $ut(this,t,r,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Gut(this,t,r,n);default:if(u)throw new TypeError(\"Unknown encoding: \"+o);o=(\"\"+o).toLowerCase(),u=!0}};ve.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};function Vut(e,t,r){return t===0&&r===e.length?h$.fromByteArray(e):h$.fromByteArray(e.slice(t,r))}function Vue(e,t,r){r=Math.min(e.length,r);let n=[],o=t;for(;o<r;){let s=e[o],u=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=r){let d,m,h,y;switch(f){case 1:s<128&&(u=s);break;case 2:d=e[o+1],(d&192)===128&&(y=(s&31)<<6|d&63,y>127&&(u=y));break;case 3:d=e[o+1],m=e[o+2],(d&192)===128&&(m&192)===128&&(y=(s&15)<<12|(d&63)<<6|m&63,y>2047&&(y<55296||y>57343)&&(u=y));break;case 4:d=e[o+1],m=e[o+2],h=e[o+3],(d&192)===128&&(m&192)===128&&(h&192)===128&&(y=(s&15)<<18|(d&63)<<12|(m&63)<<6|h&63,y>65535&&y<1114112&&(u=y))}}u===null?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),o+=f}return Kut(n)}var zue=4096;function Kut(e){let t=e.length;if(t<=zue)return String.fromCharCode.apply(String,e);let r=\"\",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=zue));return r}function Wut(e,t,r){let n=\"\";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]&127);return n}function Qut(e,t,r){let n=\"\";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function Zut(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o=\"\";for(let s=t;s<r;++s)o+=nlt[e[s]];return o}function Jut(e,t,r){let n=e.slice(t,r),o=\"\";for(let s=0;s<n.length-1;s+=2)o+=String.fromCharCode(n[s]+n[s+1]*256);return o}ve.prototype.slice=function(t,r){let n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);let o=this.subarray(t,r);return Object.setPrototypeOf(o,ve.prototype),o};function ga(e,t,r){if(e%1!==0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>r)throw new RangeError(\"Trying to access beyond buffer length\")}ve.prototype.readUintLE=ve.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ga(t,r,this.length);let o=this[t],s=1,u=0;for(;++u<r&&(s*=256);)o+=this[t+u]*s;return o};ve.prototype.readUintBE=ve.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ga(t,r,this.length);let o=this[t+--r],s=1;for(;r>0&&(s*=256);)o+=this[t+--r]*s;return o};ve.prototype.readUint8=ve.prototype.readUInt8=function(t,r){return t=t>>>0,r||ga(t,1,this.length),this[t]};ve.prototype.readUint16LE=ve.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||ga(t,2,this.length),this[t]|this[t+1]<<8};ve.prototype.readUint16BE=ve.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||ga(t,2,this.length),this[t]<<8|this[t+1]};ve.prototype.readUint32LE=ve.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||ga(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ve.prototype.readUint32BE=ve.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||ga(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ve.prototype.readBigUInt64LE=o0(function(t){t=t>>>0,sv(t,\"offset\");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&FA(t,this.length-8);let o=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,s=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(o)+(BigInt(s)<<BigInt(32))});ve.prototype.readBigUInt64BE=o0(function(t){t=t>>>0,sv(t,\"offset\");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&FA(t,this.length-8);let o=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],s=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(s)});ve.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ga(t,r,this.length);let o=this[t],s=1,u=0;for(;++u<r&&(s*=256);)o+=this[t+u]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*r)),o};ve.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ga(t,r,this.length);let o=r,s=1,u=this[t+--o];for(;o>0&&(s*=256);)u+=this[t+--o]*s;return s*=128,u>=s&&(u-=Math.pow(2,8*r)),u};ve.prototype.readInt8=function(t,r){return t=t>>>0,r||ga(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ve.prototype.readInt16LE=function(t,r){t=t>>>0,r||ga(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ve.prototype.readInt16BE=function(t,r){t=t>>>0,r||ga(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ve.prototype.readInt32LE=function(t,r){return t=t>>>0,r||ga(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ve.prototype.readInt32BE=function(t,r){return t=t>>>0,r||ga(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ve.prototype.readBigInt64LE=o0(function(t){t=t>>>0,sv(t,\"offset\");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&FA(t,this.length-8);let o=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});ve.prototype.readBigInt64BE=o0(function(t){t=t>>>0,sv(t,\"offset\");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&FA(t,this.length-8);let o=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(o)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)});ve.prototype.readFloatLE=function(t,r){return t=t>>>0,r||ga(t,4,this.length),iv.read(this,t,!0,23,4)};ve.prototype.readFloatBE=function(t,r){return t=t>>>0,r||ga(t,4,this.length),iv.read(this,t,!1,23,4)};ve.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||ga(t,8,this.length),iv.read(this,t,!0,52,8)};ve.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||ga(t,8,this.length),iv.read(this,t,!1,52,8)};function Ts(e,t,r,n,o,s){if(!ve.isBuffer(e))throw new TypeError(\\'\"buffer\" argument must be a Buffer instance\\');if(t>o||t<s)throw new RangeError(\\'\"value\" argument is out of bounds\\');if(r+n>e.length)throw new RangeError(\"Index out of range\")}ve.prototype.writeUintLE=ve.prototype.writeUIntLE=function(t,r,n,o){if(t=+t,r=r>>>0,n=n>>>0,!o){let f=Math.pow(2,8*n)-1;Ts(this,t,r,n,f,0)}let s=1,u=0;for(this[r]=t&255;++u<n&&(s*=256);)this[r+u]=t/s&255;return r+n};ve.prototype.writeUintBE=ve.prototype.writeUIntBE=function(t,r,n,o){if(t=+t,r=r>>>0,n=n>>>0,!o){let f=Math.pow(2,8*n)-1;Ts(this,t,r,n,f,0)}let s=n-1,u=1;for(this[r+s]=t&255;--s>=0&&(u*=256);)this[r+s]=t/u&255;return r+n};ve.prototype.writeUint8=ve.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Ts(this,t,r,1,255,0),this[r]=t&255,r+1};ve.prototype.writeUint16LE=ve.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Ts(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ve.prototype.writeUint16BE=ve.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Ts(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ve.prototype.writeUint32LE=ve.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Ts(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ve.prototype.writeUint32BE=ve.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Ts(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Kue(e,t,r,n,o){Yue(t,n,o,e,r,7);let s=Number(t&BigInt(4294967295));e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s;let u=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=u,u=u>>8,e[r++]=u,u=u>>8,e[r++]=u,u=u>>8,e[r++]=u,r}function Wue(e,t,r,n,o){Yue(t,n,o,e,r,7);let s=Number(t&BigInt(4294967295));e[r+7]=s,s=s>>8,e[r+6]=s,s=s>>8,e[r+5]=s,s=s>>8,e[r+4]=s;let u=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=u,u=u>>8,e[r+2]=u,u=u>>8,e[r+1]=u,u=u>>8,e[r]=u,r+8}ve.prototype.writeBigUInt64LE=o0(function(t,r=0){return Kue(this,t,r,BigInt(0),BigInt(\"0xffffffffffffffff\"))});ve.prototype.writeBigUInt64BE=o0(function(t,r=0){return Wue(this,t,r,BigInt(0),BigInt(\"0xffffffffffffffff\"))});ve.prototype.writeIntLE=function(t,r,n,o){if(t=+t,r=r>>>0,!o){let d=Math.pow(2,8*n-1);Ts(this,t,r,n,d-1,-d)}let s=0,u=1,f=0;for(this[r]=t&255;++s<n&&(u*=256);)t<0&&f===0&&this[r+s-1]!==0&&(f=1),this[r+s]=(t/u>>0)-f&255;return r+n};ve.prototype.writeIntBE=function(t,r,n,o){if(t=+t,r=r>>>0,!o){let d=Math.pow(2,8*n-1);Ts(this,t,r,n,d-1,-d)}let s=n-1,u=1,f=0;for(this[r+s]=t&255;--s>=0&&(u*=256);)t<0&&f===0&&this[r+s+1]!==0&&(f=1),this[r+s]=(t/u>>0)-f&255;return r+n};ve.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Ts(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ve.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Ts(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ve.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Ts(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ve.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Ts(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ve.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Ts(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ve.prototype.writeBigInt64LE=o0(function(t,r=0){return Kue(this,t,r,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))});ve.prototype.writeBigInt64BE=o0(function(t,r=0){return Wue(this,t,r,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))});function Que(e,t,r,n,o,s){if(r+n>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function Zue(e,t,r,n,o){return t=+t,r=r>>>0,o||Que(e,t,r,4,34028234663852886e22,-34028234663852886e22),iv.write(e,t,r,n,23,4),r+4}ve.prototype.writeFloatLE=function(t,r,n){return Zue(this,t,r,!0,n)};ve.prototype.writeFloatBE=function(t,r,n){return Zue(this,t,r,!1,n)};function Jue(e,t,r,n,o){return t=+t,r=r>>>0,o||Que(e,t,r,8,17976931348623157e292,-17976931348623157e292),iv.write(e,t,r,n,52,8),r+8}ve.prototype.writeDoubleLE=function(t,r,n){return Jue(this,t,r,!0,n)};ve.prototype.writeDoubleBE=function(t,r,n){return Jue(this,t,r,!1,n)};ve.prototype.copy=function(t,r,n,o){if(!ve.isBuffer(t))throw new TypeError(\"argument should be a Buffer\");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=t.length&&(r=t.length),r||(r=0),o>0&&o<n&&(o=n),o===n||t.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(o<0)throw new RangeError(\"sourceEnd out of bounds\");o>this.length&&(o=this.length),t.length-r<o-n&&(o=t.length-r+n);let s=o-n;return this===t&&typeof Uint8Array.prototype.copyWithin==\"function\"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(t,this.subarray(n,o),r),s};ve.prototype.fill=function(t,r,n,o){if(typeof t==\"string\"){if(typeof r==\"string\"?(o=r,r=0,n=this.length):typeof n==\"string\"&&(o=n,n=this.length),o!==void 0&&typeof o!=\"string\")throw new TypeError(\"encoding must be a string\");if(typeof o==\"string\"&&!ve.isEncoding(o))throw new TypeError(\"Unknown encoding: \"+o);if(t.length===1){let u=t.charCodeAt(0);(o===\"utf8\"&&u<128||o===\"latin1\")&&(t=u)}}else typeof t==\"number\"?t=t&255:typeof t==\"boolean\"&&(t=Number(t));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,t||(t=0);let s;if(typeof t==\"number\")for(s=r;s<n;++s)this[s]=t;else{let u=ve.isBuffer(t)?t:ve.from(t,o),f=u.length;if(f===0)throw new TypeError(\\'The value \"\\'+t+\\'\" is invalid for argument \"value\"\\');for(s=0;s<n-r;++s)this[s+r]=u[s%f]}return this};var av={};function w$(e,t,r){av[e]=class extends r{constructor(){super(),Object.defineProperty(this,\"message\",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(o){Object.defineProperty(this,\"code\",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}w$(\"ERR_BUFFER_OUT_OF_BOUNDS\",function(e){return e?`${e} is outside of buffer bounds`:\"Attempt to access memory outside buffer bounds\"},RangeError);w$(\"ERR_INVALID_ARG_TYPE\",function(e,t){return`The \"${e}\" argument must be of type number. Received type ${typeof t}`},TypeError);w$(\"ERR_OUT_OF_RANGE\",function(e,t,r){let n=`The value of \"${e}\" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=Fue(String(r)):typeof r==\"bigint\"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=Fue(o)),o+=\"n\"),n+=` It must be ${t}. Received ${o}`,n},RangeError);function Fue(e){let t=\"\",r=e.length,n=e[0]===\"-\"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Yut(e,t,r){sv(t,\"offset\"),(e[t]===void 0||e[t+r]===void 0)&&FA(t,e.length-(r+1))}function Yue(e,t,r,n,o,s){if(e>r||e<t){let u=typeof t==\"bigint\"?\"n\":\"\",f;throw s>3?t===0||t===BigInt(0)?f=`>= 0${u} and < 2${u} ** ${(s+1)*8}${u}`:f=`>= -(2${u} ** ${(s+1)*8-1}${u}) and < 2 ** ${(s+1)*8-1}${u}`:f=`>= ${t}${u} and <= ${r}${u}`,new av.ERR_OUT_OF_RANGE(\"value\",f,e)}Yut(n,o,s)}function sv(e,t){if(typeof e!=\"number\")throw new av.ERR_INVALID_ARG_TYPE(t,\"number\",e)}function FA(e,t,r){throw Math.floor(e)!==e?(sv(e,r),new av.ERR_OUT_OF_RANGE(r||\"offset\",\"an integer\",e)):t<0?new av.ERR_BUFFER_OUT_OF_BOUNDS:new av.ERR_OUT_OF_RANGE(r||\"offset\",`>= ${r?1:0} and <= ${t}`,e)}var Xut=/[^+/0-9A-Za-z-_]/g;function elt(e){if(e=e.split(\"=\")[0],e=e.trim().replace(Xut,\"\"),e.length<2)return\"\";for(;e.length%4!==0;)e=e+\"=\";return e}function g$(e,t){t=t||1/0;let r,n=e.length,o=null,s=[];for(let u=0;u<n;++u){if(r=e.charCodeAt(u),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}else if(u+1===n){(t-=3)>-1&&s.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&s.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error(\"Invalid code point\")}return s}function tlt(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function rlt(e,t){let r,n,o,s=[];for(let u=0;u<e.length&&!((t-=2)<0);++u)r=e.charCodeAt(u),n=r>>8,o=r%256,s.push(o),s.push(n);return s}function Xue(e){return h$.toByteArray(elt(e))}function r9(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function Vf(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function E$(e){return e!==e}var nlt=(function(){let e=\"0123456789abcdef\",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t})();function o0(e){return typeof BigInt>\"u\"?olt:e}function olt(){throw new Error(\"BigInt not supported\")}});var ele,c=x(()=>{\"use strict\";ele=Sr(uv(),1);globalThis.Buffer=ele.Buffer});var tle=X(Qn=>{\"use strict\";c();(function(){function e(){if(N=!1,J){var T=Qn.unstable_now();ie=T;var P=!0;try{e:{U=!1,O&&(O=!1,K(Y),Y=-1),M=!0;var D=R;try{t:{for(s(T),B=r(v);B!==null&&!(B.expirationTime>T&&f());){var L=B.callback;if(typeof L==\"function\"){B.callback=null,R=B.priorityLevel;var V=L(B.expirationTime<=T);if(T=Qn.unstable_now(),typeof V==\"function\"){B.callback=V,s(T),P=!0;break t}B===r(v)&&n(v),s(T)}else n(v);B=r(v)}if(B!==null)P=!0;else{var Z=r(E);Z!==null&&d(u,Z.startTime-T),P=!1}}break e}finally{B=null,R=D,M=!1}P=void 0}}finally{P?re():J=!1}}}function t(T,P){var D=T.length;T.push(P);e:for(;0<D;){var L=D-1>>>1,V=T[L];if(0<o(V,P))T[L]=P,T[D]=V,D=L;else break e}}function r(T){return T.length===0?null:T[0]}function n(T){if(T.length===0)return null;var P=T[0],D=T.pop();if(D!==P){T[0]=D;e:for(var L=0,V=T.length,Z=V>>>1;L<Z;){var z=2*(L+1)-1,I=T[z],Q=z+1,me=T[Q];if(0>o(I,D))Q<V&&0>o(me,I)?(T[L]=me,T[Q]=D,L=Q):(T[L]=I,T[z]=D,L=z);else if(Q<V&&0>o(me,D))T[L]=me,T[Q]=D,L=Q;else break e}}return P}function o(T,P){var D=T.sortIndex-P.sortIndex;return D!==0?D:T.id-P.id}function s(T){for(var P=r(E);P!==null;){if(P.callback===null)n(E);else if(P.startTime<=T)n(E),P.sortIndex=P.expirationTime,t(v,P);else break;P=r(E)}}function u(T){if(O=!1,s(T),!U)if(r(v)!==null)U=!0,J||(J=!0,re());else{var P=r(E);P!==null&&d(u,P.startTime-T)}}function f(){return N?!0:!(Qn.unstable_now()-ie<W)}function d(T,P){Y=j(function(){T(Qn.unstable_now())},P)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Qn.unstable_now=void 0,typeof performance==\"object\"&&typeof performance.now==\"function\"){var m=performance;Qn.unstable_now=function(){return m.now()}}else{var h=Date,y=h.now();Qn.unstable_now=function(){return h.now()-y}}var v=[],E=[],C=1,B=null,R=3,M=!1,U=!1,O=!1,N=!1,j=typeof setTimeout==\"function\"?setTimeout:null,K=typeof clearTimeout==\"function\"?clearTimeout:null,G=typeof setImmediate<\"u\"?setImmediate:null,J=!1,Y=-1,W=5,ie=-1;if(typeof G==\"function\")var re=function(){G(e)};else if(typeof MessageChannel<\"u\"){var H=new MessageChannel,A=H.port2;H.port1.onmessage=e,re=function(){A.postMessage(null)}}else re=function(){j(e,0)};Qn.unstable_IdlePriority=5,Qn.unstable_ImmediatePriority=1,Qn.unstable_LowPriority=4,Qn.unstable_NormalPriority=3,Qn.unstable_Profiling=null,Qn.unstable_UserBlockingPriority=2,Qn.unstable_cancelCallback=function(T){T.callback=null},Qn.unstable_forceFrameRate=function(T){0>T||125<T?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):W=0<T?Math.floor(1e3/T):5},Qn.unstable_getCurrentPriorityLevel=function(){return R},Qn.unstable_next=function(T){switch(R){case 1:case 2:case 3:var P=3;break;default:P=R}var D=R;R=P;try{return T()}finally{R=D}},Qn.unstable_requestPaint=function(){N=!0},Qn.unstable_runWithPriority=function(T,P){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var D=R;R=T;try{return P()}finally{R=D}},Qn.unstable_scheduleCallback=function(T,P,D){var L=Qn.unstable_now();switch(typeof D==\"object\"&&D!==null?(D=D.delay,D=typeof D==\"number\"&&0<D?L+D:L):D=L,T){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=D+V,T={id:C++,callback:P,priorityLevel:T,startTime:D,expirationTime:V,sortIndex:-1},D>L?(T.sortIndex=D,t(E,T),r(v)===null&&T===r(E)&&(O?(K(Y),Y=-1):O=!0,d(u,D-L))):(T.sortIndex=V,t(v,T),U||M||(U=!0,J||(J=!0,re()))),T},Qn.unstable_shouldYield=f,Qn.unstable_wrapCallback=function(T){var P=R;return function(){var D=R;R=P;try{return T.apply(this,arguments)}finally{R=D}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var nle=X((VIt,rle)=>{\"use strict\";c();rle.exports=tle()});var ole=X((St,n9)=>{\"use strict\";c();(function(){function e(q,fe){Object.defineProperty(n.prototype,q,{get:function(){console.warn(\"%s(...) is deprecated in plain JavaScript React classes. %s\",fe[0],fe[1])}})}function t(q){return q===null||typeof q!=\"object\"?null:(q=Ot&&q[Ot]||q[\"@@iterator\"],typeof q==\"function\"?q:null)}function r(q,fe){q=(q=q.constructor)&&(q.displayName||q.name)||\"ReactClass\";var Ee=q+\".\"+fe;Te[Ee]||(console.error(\"Can\\'t call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.\",fe,q),Te[Ee]=!0)}function n(q,fe,Ee){this.props=q,this.context=fe,this.refs=tr,this.updater=Ee||It}function o(){}function s(q,fe,Ee){this.props=q,this.context=fe,this.refs=tr,this.updater=Ee||It}function u(){}function f(q){return\"\"+q}function d(q){try{f(q);var fe=!1}catch{fe=!0}if(fe){fe=console;var Ee=fe.error,_e=typeof Symbol==\"function\"&&Symbol.toStringTag&&q[Symbol.toStringTag]||q.constructor.name||\"Object\";return Ee.call(fe,\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",_e),f(q)}}function m(q){if(q==null)return null;if(typeof q==\"function\")return q.$$typeof===rn?null:q.displayName||q.name||null;if(typeof q==\"string\")return q;switch(q){case V:return\"Fragment\";case z:return\"Profiler\";case Z:return\"StrictMode\";case ge:return\"Suspense\";case Se:return\"SuspenseList\";case je:return\"Activity\"}if(typeof q==\"object\")switch(typeof q.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),q.$$typeof){case L:return\"Portal\";case Q:return q.displayName||\"Context\";case I:return(q._context.displayName||\"Context\")+\".Consumer\";case me:var fe=q.render;return q=q.displayName,q||(q=fe.displayName||fe.name||\"\",q=q!==\"\"?\"ForwardRef(\"+q+\")\":\"ForwardRef\"),q;case Ce:return fe=q.displayName||null,fe!==null?fe:m(q.type)||\"Memo\";case $e:fe=q._payload,q=q._init;try{return m(q(fe))}catch{}}return null}function h(q){if(q===V)return\"<>\";if(typeof q==\"object\"&&q!==null&&q.$$typeof===$e)return\"<...>\";try{var fe=m(q);return fe?\"<\"+fe+\">\":\"<...>\"}catch{return\"<...>\"}}function y(){var q=Je.A;return q===null?null:q.getOwner()}function v(){return Error(\"react-stack-top-frame\")}function E(q){if(jc.call(q,\"key\")){var fe=Object.getOwnPropertyDescriptor(q,\"key\").get;if(fe&&fe.isReactWarning)return!1}return q.key!==void 0}function C(q,fe){function Ee(){un||(un=!0,console.error(\"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",fe))}Ee.isReactWarning=!0,Object.defineProperty(q,\"key\",{get:Ee,configurable:!0})}function B(){var q=m(this.type);return Hr[q]||(Hr[q]=!0,console.error(\"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\")),q=this.props.ref,q!==void 0?q:null}function R(q,fe,Ee,_e,We,Ge){var Ve=Ee.ref;return q={$$typeof:D,type:q,key:fe,props:Ee,_owner:_e},(Ve!==void 0?Ve:null)!==null?Object.defineProperty(q,\"ref\",{enumerable:!1,get:B}):Object.defineProperty(q,\"ref\",{enumerable:!1,value:null}),q._store={},Object.defineProperty(q._store,\"validated\",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(q,\"_debugInfo\",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(q,\"_debugStack\",{configurable:!1,enumerable:!1,writable:!0,value:We}),Object.defineProperty(q,\"_debugTask\",{configurable:!1,enumerable:!1,writable:!0,value:Ge}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q}function M(q,fe){return fe=R(q.type,fe,q.props,q._owner,q._debugStack,q._debugTask),q._store&&(fe._store.validated=q._store.validated),fe}function U(q){O(q)?q._store&&(q._store.validated=1):typeof q==\"object\"&&q!==null&&q.$$typeof===$e&&(q._payload.status===\"fulfilled\"?O(q._payload.value)&&q._payload.value._store&&(q._payload.value._store.validated=1):q._store&&(q._store.validated=1))}function O(q){return typeof q==\"object\"&&q!==null&&q.$$typeof===D}function N(q){var fe={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+q.replace(/[=:]/g,function(Ee){return fe[Ee]})}function j(q,fe){return typeof q==\"object\"&&q!==null&&q.key!=null?(d(q.key),N(\"\"+q.key)):fe.toString(36)}function K(q){switch(q.status){case\"fulfilled\":return q.value;case\"rejected\":throw q.reason;default:switch(typeof q.status==\"string\"?q.then(u,u):(q.status=\"pending\",q.then(function(fe){q.status===\"pending\"&&(q.status=\"fulfilled\",q.value=fe)},function(fe){q.status===\"pending\"&&(q.status=\"rejected\",q.reason=fe)})),q.status){case\"fulfilled\":return q.value;case\"rejected\":throw q.reason}}throw q}function G(q,fe,Ee,_e,We){var Ge=typeof q;(Ge===\"undefined\"||Ge===\"boolean\")&&(q=null);var Ve=!1;if(q===null)Ve=!0;else switch(Ge){case\"bigint\":case\"string\":case\"number\":Ve=!0;break;case\"object\":switch(q.$$typeof){case D:case L:Ve=!0;break;case $e:return Ve=q._init,G(Ve(q._payload),fe,Ee,_e,We)}}if(Ve){Ve=q,We=We(Ve);var Ft=_e===\"\"?\".\"+j(Ve,0):_e;return rr(We)?(Ee=\"\",Ft!=null&&(Ee=Ft.replace(qr,\"$&/\")+\"/\"),G(We,fe,Ee,\"\",function(jt){return jt})):We!=null&&(O(We)&&(We.key!=null&&(Ve&&Ve.key===We.key||d(We.key)),Ee=M(We,Ee+(We.key==null||Ve&&Ve.key===We.key?\"\":(\"\"+We.key).replace(qr,\"$&/\")+\"/\")+Ft),_e!==\"\"&&Ve!=null&&O(Ve)&&Ve.key==null&&Ve._store&&!Ve._store.validated&&(Ee._store.validated=2),We=Ee),fe.push(We)),1}if(Ve=0,Ft=_e===\"\"?\".\":_e+\":\",rr(q))for(var Ne=0;Ne<q.length;Ne++)_e=q[Ne],Ge=Ft+j(_e,Ne),Ve+=G(_e,fe,Ee,Ge,We);else if(Ne=t(q),typeof Ne==\"function\")for(Ne===q.entries&&(jr||console.warn(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),jr=!0),q=Ne.call(q),Ne=0;!(_e=q.next()).done;)_e=_e.value,Ge=Ft+j(_e,Ne++),Ve+=G(_e,fe,Ee,Ge,We);else if(Ge===\"object\"){if(typeof q.then==\"function\")return G(K(q),fe,Ee,_e,We);throw fe=String(q),Error(\"Objects are not valid as a React child (found: \"+(fe===\"[object Object]\"?\"object with keys {\"+Object.keys(q).join(\", \")+\"}\":fe)+\"). If you meant to render a collection of children, use an array instead.\")}return Ve}function J(q,fe,Ee){if(q==null)return q;var _e=[],We=0;return G(q,_e,\"\",\"\",function(Ge){return fe.call(Ee,Ge,We++)}),_e}function Y(q){if(q._status===-1){var fe=q._ioInfo;fe!=null&&(fe.start=fe.end=performance.now()),fe=q._result;var Ee=fe();if(Ee.then(function(We){if(q._status===0||q._status===-1){q._status=1,q._result=We;var Ge=q._ioInfo;Ge!=null&&(Ge.end=performance.now()),Ee.status===void 0&&(Ee.status=\"fulfilled\",Ee.value=We)}},function(We){if(q._status===0||q._status===-1){q._status=2,q._result=We;var Ge=q._ioInfo;Ge!=null&&(Ge.end=performance.now()),Ee.status===void 0&&(Ee.status=\"rejected\",Ee.reason=We)}}),fe=q._ioInfo,fe!=null){fe.value=Ee;var _e=Ee.displayName;typeof _e==\"string\"&&(fe.name=_e)}q._status===-1&&(q._status=0,q._result=Ee)}if(q._status===1)return fe=q._result,fe===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n  const MyComponent = lazy(() => import(\\'./MyComponent\\'))\\n\\nDid you accidentally put curly braces around the import?`,fe),\"default\"in fe||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n  const MyComponent = lazy(() => import(\\'./MyComponent\\'))`,fe),fe.default;throw q._result}function W(){var q=Je.H;return q===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),q}function ie(){Je.asyncTransitions--}function re(q){if(Ir===null)try{var fe=(\"require\"+Math.random()).slice(0,7);Ir=(n9&&n9[fe]).call(n9,\"timers\").setImmediate}catch{Ir=function(_e){nn===!1&&(nn=!0,typeof MessageChannel>\"u\"&&console.error(\"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.\"));var We=new MessageChannel;We.port1.onmessage=_e,We.port2.postMessage(void 0)}}return Ir(q)}function H(q){return 1<q.length&&typeof AggregateError==\"function\"?new AggregateError(q):q[0]}function A(q,fe){fe!==ys-1&&console.error(\"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. \"),ys=fe}function T(q,fe,Ee){var _e=Je.actQueue;if(_e!==null)if(_e.length!==0)try{P(_e),re(function(){return T(q,fe,Ee)});return}catch(We){Je.thrownErrors.push(We)}else Je.actQueue=null;0<Je.thrownErrors.length?(_e=H(Je.thrownErrors),Je.thrownErrors.length=0,Ee(_e)):fe(q)}function P(q){if(!Rr){Rr=!0;var fe=0;try{for(;fe<q.length;fe++){var Ee=q[fe];do{Je.didUsePromise=!1;var _e=Ee(!1);if(_e!==null){if(Je.didUsePromise){q[fe]=Ee,q.splice(0,fe);return}Ee=_e}else break}while(!0)}q.length=0}catch(We){q.splice(0,fe+1),Je.thrownErrors.push(We)}finally{Rr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var D=Symbol.for(\"react.transitional.element\"),L=Symbol.for(\"react.portal\"),V=Symbol.for(\"react.fragment\"),Z=Symbol.for(\"react.strict_mode\"),z=Symbol.for(\"react.profiler\"),I=Symbol.for(\"react.consumer\"),Q=Symbol.for(\"react.context\"),me=Symbol.for(\"react.forward_ref\"),ge=Symbol.for(\"react.suspense\"),Se=Symbol.for(\"react.suspense_list\"),Ce=Symbol.for(\"react.memo\"),$e=Symbol.for(\"react.lazy\"),je=Symbol.for(\"react.activity\"),Ot=Symbol.iterator,Te={},It={isMounted:function(){return!1},enqueueForceUpdate:function(q){r(q,\"forceUpdate\")},enqueueReplaceState:function(q){r(q,\"replaceState\")},enqueueSetState:function(q){r(q,\"setState\")}},Gn=Object.assign,tr={};Object.freeze(tr),n.prototype.isReactComponent={},n.prototype.setState=function(q,fe){if(typeof q!=\"object\"&&typeof q!=\"function\"&&q!=null)throw Error(\"takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,q,fe,\"setState\")},n.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,\"forceUpdate\")};var yt={isMounted:[\"isMounted\",\"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.\"],replaceState:[\"replaceState\",\"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).\"]};for(Er in yt)yt.hasOwnProperty(Er)&&e(Er,yt[Er]);o.prototype=n.prototype,yt=s.prototype=new o,yt.constructor=s,Gn(yt,n.prototype),yt.isPureReactComponent=!0;var rr=Array.isArray,rn=Symbol.for(\"react.client.reference\"),Je={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},jc=Object.prototype.hasOwnProperty,dt=console.createTask?console.createTask:function(){return null};yt={react_stack_bottom_frame:function(q){return q()}};var un,ni,Hr={},Lr=yt.react_stack_bottom_frame.bind(yt,v)(),pp=dt(h(v)),jr=!1,qr=/\\\\/+/g,Ii=typeof reportError==\"function\"?reportError:function(q){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var fe=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof q==\"object\"&&q!==null&&typeof q.message==\"string\"?String(q.message):String(q),error:q});if(!window.dispatchEvent(fe))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",q);return}console.error(q)},nn=!1,Ir=null,ys=0,Pr=!1,Rr=!1,qc=typeof queueMicrotask==\"function\"?function(q){queueMicrotask(function(){return queueMicrotask(q)})}:re;yt=Object.freeze({__proto__:null,c:function(q){return W().useMemoCache(q)}});var Er={map:J,forEach:function(q,fe,Ee){J(q,function(){fe.apply(this,arguments)},Ee)},count:function(q){var fe=0;return J(q,function(){fe++}),fe},toArray:function(q){return J(q,function(fe){return fe})||[]},only:function(q){if(!O(q))throw Error(\"React.Children.only expected to receive a single React element child.\");return q}};St.Activity=je,St.Children=Er,St.Component=n,St.Fragment=V,St.Profiler=z,St.PureComponent=s,St.StrictMode=Z,St.Suspense=ge,St.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Je,St.__COMPILER_RUNTIME=yt,St.act=function(q){var fe=Je.actQueue,Ee=ys;ys++;var _e=Je.actQueue=fe!==null?fe:[],We=!1;try{var Ge=q()}catch(Ne){Je.thrownErrors.push(Ne)}if(0<Je.thrownErrors.length)throw A(fe,Ee),q=H(Je.thrownErrors),Je.thrownErrors.length=0,q;if(Ge!==null&&typeof Ge==\"object\"&&typeof Ge.then==\"function\"){var Ve=Ge;return qc(function(){We||Pr||(Pr=!0,console.error(\"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);\"))}),{then:function(Ne,jt){We=!0,Ve.then(function(Uo){if(A(fe,Ee),Ee===0){try{P(_e),re(function(){return T(Uo,Ne,jt)})}catch($r){Je.thrownErrors.push($r)}if(0<Je.thrownErrors.length){var Ar=H(Je.thrownErrors);Je.thrownErrors.length=0,jt(Ar)}}else Ne(Uo)},function(Uo){A(fe,Ee),0<Je.thrownErrors.length&&(Uo=H(Je.thrownErrors),Je.thrownErrors.length=0),jt(Uo)})}}}var Ft=Ge;if(A(fe,Ee),Ee===0&&(P(_e),_e.length!==0&&qc(function(){We||Pr||(Pr=!0,console.error(\"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\\\\n\\\\nawait act(() => ...)\"))}),Je.actQueue=null),0<Je.thrownErrors.length)throw q=H(Je.thrownErrors),Je.thrownErrors.length=0,q;return{then:function(Ne,jt){We=!0,Ee===0?(Je.actQueue=_e,re(function(){return T(Ft,Ne,jt)})):Ne(Ft)}}},St.cache=function(q){return function(){return q.apply(null,arguments)}},St.cacheSignal=function(){return null},St.captureOwnerStack=function(){var q=Je.getCurrentStack;return q===null?null:q()},St.cloneElement=function(q,fe,Ee){if(q==null)throw Error(\"The argument must be a React element, but you passed \"+q+\".\");var _e=Gn({},q.props),We=q.key,Ge=q._owner;if(fe!=null){var Ve;e:{if(jc.call(fe,\"ref\")&&(Ve=Object.getOwnPropertyDescriptor(fe,\"ref\").get)&&Ve.isReactWarning){Ve=!1;break e}Ve=fe.ref!==void 0}Ve&&(Ge=y()),E(fe)&&(d(fe.key),We=\"\"+fe.key);for(Ft in fe)!jc.call(fe,Ft)||Ft===\"key\"||Ft===\"__self\"||Ft===\"__source\"||Ft===\"ref\"&&fe.ref===void 0||(_e[Ft]=fe[Ft])}var Ft=arguments.length-2;if(Ft===1)_e.children=Ee;else if(1<Ft){Ve=Array(Ft);for(var Ne=0;Ne<Ft;Ne++)Ve[Ne]=arguments[Ne+2];_e.children=Ve}for(_e=R(q.type,We,_e,Ge,q._debugStack,q._debugTask),We=2;We<arguments.length;We++)U(arguments[We]);return _e},St.createContext=function(q){return q={$$typeof:Q,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:I,_context:q},q._currentRenderer=null,q._currentRenderer2=null,q},St.createElement=function(q,fe,Ee){for(var _e=2;_e<arguments.length;_e++)U(arguments[_e]);_e={};var We=null;if(fe!=null)for(Ne in ni||!(\"__self\"in fe)||\"key\"in fe||(ni=!0,console.warn(\"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform\")),E(fe)&&(d(fe.key),We=\"\"+fe.key),fe)jc.call(fe,Ne)&&Ne!==\"key\"&&Ne!==\"__self\"&&Ne!==\"__source\"&&(_e[Ne]=fe[Ne]);var Ge=arguments.length-2;if(Ge===1)_e.children=Ee;else if(1<Ge){for(var Ve=Array(Ge),Ft=0;Ft<Ge;Ft++)Ve[Ft]=arguments[Ft+2];Object.freeze&&Object.freeze(Ve),_e.children=Ve}if(q&&q.defaultProps)for(Ne in Ge=q.defaultProps,Ge)_e[Ne]===void 0&&(_e[Ne]=Ge[Ne]);We&&C(_e,typeof q==\"function\"?q.displayName||q.name||\"Unknown\":q);var Ne=1e4>Je.recentlyCreatedOwnerStacks++;return R(q,We,_e,y(),Ne?Error(\"react-stack-top-frame\"):Lr,Ne?dt(h(q)):pp)},St.createRef=function(){var q={current:null};return Object.seal(q),q},St.forwardRef=function(q){q!=null&&q.$$typeof===Ce?console.error(\"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).\"):typeof q!=\"function\"?console.error(\"forwardRef requires a render function but was given %s.\",q===null?\"null\":typeof q):q.length!==0&&q.length!==2&&console.error(\"forwardRef render functions accept exactly two parameters: props and ref. %s\",q.length===1?\"Did you forget to use the ref parameter?\":\"Any additional parameter will be undefined.\"),q!=null&&q.defaultProps!=null&&console.error(\"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?\");var fe={$$typeof:me,render:q},Ee;return Object.defineProperty(fe,\"displayName\",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(_e){Ee=_e,q.name||q.displayName||(Object.defineProperty(q,\"name\",{value:_e}),q.displayName=_e)}}),fe},St.isValidElement=O,St.lazy=function(q){q={_status:-1,_result:q};var fe={$$typeof:$e,_payload:q,_init:Y},Ee={name:\"lazy\",start:-1,end:-1,value:null,owner:null,debugStack:Error(\"react-stack-top-frame\"),debugTask:console.createTask?console.createTask(\"lazy()\"):null};return q._ioInfo=Ee,fe._debugInfo=[{awaited:Ee}],fe},St.memo=function(q,fe){q==null&&console.error(\"memo: The first argument must be a component. Instead received: %s\",q===null?\"null\":typeof q),fe={$$typeof:Ce,type:q,compare:fe===void 0?null:fe};var Ee;return Object.defineProperty(fe,\"displayName\",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(_e){Ee=_e,q.name||q.displayName||(Object.defineProperty(q,\"name\",{value:_e}),q.displayName=_e)}}),fe},St.startTransition=function(q){var fe=Je.T,Ee={};Ee._updatedFibers=new Set,Je.T=Ee;try{var _e=q(),We=Je.S;We!==null&&We(Ee,_e),typeof _e==\"object\"&&_e!==null&&typeof _e.then==\"function\"&&(Je.asyncTransitions++,_e.then(ie,ie),_e.then(u,Ii))}catch(Ge){Ii(Ge)}finally{fe===null&&Ee._updatedFibers&&(q=Ee._updatedFibers.size,Ee._updatedFibers.clear(),10<q&&console.warn(\"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\")),fe!==null&&Ee.types!==null&&(fe.types!==null&&fe.types!==Ee.types&&console.error(\"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.\"),fe.types=Ee.types),Je.T=fe}},St.unstable_useCacheRefresh=function(){return W().useCacheRefresh()},St.use=function(q){return W().use(q)},St.useActionState=function(q,fe,Ee){return W().useActionState(q,fe,Ee)},St.useCallback=function(q,fe){return W().useCallback(q,fe)},St.useContext=function(q){var fe=W();return q.$$typeof===I&&console.error(\"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?\"),fe.useContext(q)},St.useDebugValue=function(q,fe){return W().useDebugValue(q,fe)},St.useDeferredValue=function(q,fe){return W().useDeferredValue(q,fe)},St.useEffect=function(q,fe){return q==null&&console.warn(\"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),W().useEffect(q,fe)},St.useEffectEvent=function(q){return W().useEffectEvent(q)},St.useId=function(){return W().useId()},St.useImperativeHandle=function(q,fe,Ee){return W().useImperativeHandle(q,fe,Ee)},St.useInsertionEffect=function(q,fe){return q==null&&console.warn(\"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),W().useInsertionEffect(q,fe)},St.useLayoutEffect=function(q,fe){return q==null&&console.warn(\"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),W().useLayoutEffect(q,fe)},St.useMemo=function(q,fe){return W().useMemo(q,fe)},St.useOptimistic=function(q,fe){return W().useOptimistic(q,fe)},St.useReducer=function(q,fe,Ee){return W().useReducer(q,fe,Ee)},St.useRef=function(q){return W().useRef(q)},St.useState=function(q){return W().useState(q)},St.useSyncExternalStore=function(q,fe,Ee){return W().useSyncExternalStore(q,fe,Ee)},St.useTransition=function(){return W().useTransition()},St.version=\"19.2.1\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var oo=X((QIt,ale)=>{\"use strict\";c();ale.exports=ole()});var ile=X(Fi=>{\"use strict\";c();(function(){function e(){}function t(y){return\"\"+y}function r(y,v,E){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(C);var B=!1}catch{B=!0}return B&&(console.error(\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",typeof Symbol==\"function\"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||\"Object\"),t(C)),{$$typeof:m,key:C==null?null:\"\"+C,children:y,containerInfo:v,implementation:E}}function n(y,v){if(y===\"font\")return\"\";if(typeof v==\"string\")return v===\"use-credentials\"?v:\"\"}function o(y){return y===null?\"`null`\":y===void 0?\"`undefined`\":y===\"\"?\"an empty string\":\\'something with type \"\\'+typeof y+\\'\"\\'}function s(y){return y===null?\"`null`\":y===void 0?\"`undefined`\":y===\"\"?\"an empty string\":typeof y==\"string\"?JSON.stringify(y):typeof y==\"number\"?\"`\"+y+\"`\":\\'something with type \"\\'+typeof y+\\'\"\\'}function u(){var y=h.H;return y===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),y}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var f=oo(),d={d:{f:e,r:function(){throw Error(\"Invalid form element. requestFormReset must be passed a form that was rendered by React.\")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},m=Symbol.for(\"react.portal\"),h=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==\"function\"&&Map.prototype!=null&&typeof Map.prototype.forEach==\"function\"&&typeof Set==\"function\"&&Set.prototype!=null&&typeof Set.prototype.clear==\"function\"&&typeof Set.prototype.forEach==\"function\"||console.error(\"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills\"),Fi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,Fi.createPortal=function(y,v){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(\"Target container is not a DOM element.\");return r(y,v,null,E)},Fi.flushSync=function(y){var v=h.T,E=d.p;try{if(h.T=null,d.p=2,y)return y()}finally{h.T=v,d.p=E,d.d.f()&&console.error(\"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.\")}},Fi.preconnect=function(y,v){typeof y==\"string\"&&y?v!=null&&typeof v!=\"object\"?console.error(\"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.\",s(v)):v!=null&&typeof v.crossOrigin!=\"string\"&&console.error(\"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.\",o(v.crossOrigin)):console.error(\"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",o(y)),typeof y==\"string\"&&(v?(v=v.crossOrigin,v=typeof v==\"string\"?v===\"use-credentials\"?v:\"\":void 0):v=null,d.d.C(y,v))},Fi.prefetchDNS=function(y){if(typeof y!=\"string\"||!y)console.error(\"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",o(y));else if(1<arguments.length){var v=arguments[1];typeof v==\"object\"&&v.hasOwnProperty(\"crossOrigin\")?console.error(\"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.\",s(v)):console.error(\"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.\",s(v))}typeof y==\"string\"&&d.d.D(y)},Fi.preinit=function(y,v){if(typeof y==\"string\"&&y?v==null||typeof v!=\"object\"?console.error(\"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.\",s(v)):v.as!==\"style\"&&v.as!==\"script\"&&console.error(\\'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are \"style\" and \"script\".\\',s(v.as)):console.error(\"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",o(y)),typeof y==\"string\"&&v&&typeof v.as==\"string\"){var E=v.as,C=n(E,v.crossOrigin),B=typeof v.integrity==\"string\"?v.integrity:void 0,R=typeof v.fetchPriority==\"string\"?v.fetchPriority:void 0;E===\"style\"?d.d.S(y,typeof v.precedence==\"string\"?v.precedence:void 0,{crossOrigin:C,integrity:B,fetchPriority:R}):E===\"script\"&&d.d.X(y,{crossOrigin:C,integrity:B,fetchPriority:R,nonce:typeof v.nonce==\"string\"?v.nonce:void 0})}},Fi.preinitModule=function(y,v){var E=\"\";typeof y==\"string\"&&y||(E+=\" The `href` argument encountered was \"+o(y)+\".\"),v!==void 0&&typeof v!=\"object\"?E+=\" The `options` argument encountered was \"+o(v)+\".\":v&&\"as\"in v&&v.as!==\"script\"&&(E+=\" The `as` option encountered was \"+s(v.as)+\".\"),E?console.error(\"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s\",E):(E=v&&typeof v.as==\"string\"?v.as:\"script\",E)===\"script\"||(E=s(E),console.error(\\'ReactDOM.preinitModule(): Currently the only supported \"as\" type for this function is \"script\" but received \"%s\" instead. This warning was generated for `href` \"%s\". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)\\',E,y)),typeof y==\"string\"&&(typeof v==\"object\"&&v!==null?(v.as==null||v.as===\"script\")&&(E=n(v.as,v.crossOrigin),d.d.M(y,{crossOrigin:E,integrity:typeof v.integrity==\"string\"?v.integrity:void 0,nonce:typeof v.nonce==\"string\"?v.nonce:void 0})):v==null&&d.d.M(y))},Fi.preload=function(y,v){var E=\"\";if(typeof y==\"string\"&&y||(E+=\" The `href` argument encountered was \"+o(y)+\".\"),v==null||typeof v!=\"object\"?E+=\" The `options` argument encountered was \"+o(v)+\".\":typeof v.as==\"string\"&&v.as||(E+=\" The `as` option encountered was \"+o(v.as)+\".\"),E&&console.error(\\'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel=\"preload\" as=\"...\" />` tag.%s\\',E),typeof y==\"string\"&&typeof v==\"object\"&&v!==null&&typeof v.as==\"string\"){E=v.as;var C=n(E,v.crossOrigin);d.d.L(y,E,{crossOrigin:C,integrity:typeof v.integrity==\"string\"?v.integrity:void 0,nonce:typeof v.nonce==\"string\"?v.nonce:void 0,type:typeof v.type==\"string\"?v.type:void 0,fetchPriority:typeof v.fetchPriority==\"string\"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy==\"string\"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet==\"string\"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes==\"string\"?v.imageSizes:void 0,media:typeof v.media==\"string\"?v.media:void 0})}},Fi.preloadModule=function(y,v){var E=\"\";typeof y==\"string\"&&y||(E+=\" The `href` argument encountered was \"+o(y)+\".\"),v!==void 0&&typeof v!=\"object\"?E+=\" The `options` argument encountered was \"+o(v)+\".\":v&&\"as\"in v&&typeof v.as!=\"string\"&&(E+=\" The `as` option encountered was \"+o(v.as)+\".\"),E&&console.error(\\'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel=\"modulepreload\" as=\"...\" />` tag.%s\\',E),typeof y==\"string\"&&(v?(E=n(v.as,v.crossOrigin),d.d.m(y,{as:typeof v.as==\"string\"&&v.as!==\"script\"?v.as:void 0,crossOrigin:E,integrity:typeof v.integrity==\"string\"?v.integrity:void 0})):d.d.m(y))},Fi.requestFormReset=function(y){d.d.r(y)},Fi.unstable_batchedUpdates=function(y,v){return y(v)},Fi.useFormState=function(y,v,E){return u().useFormState(y,v,E)},Fi.useFormStatus=function(){return u().useHostTransitionStatus()},Fi.version=\"19.2.1\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var cle=X((XIt,sle)=>{\"use strict\";c();sle.exports=ile()});var ule=X(o9=>{\"use strict\";c();(function(){function e(a,i){for(a=a.memoizedState;a!==null&&0<i;)a=a.next,i--;return a}function t(a,i,l,p){if(l>=i.length)return p;var b=i[l],w=oa(a)?a.slice():Wt({},a);return w[b]=t(a[b],i,l+1,p),w}function r(a,i,l){if(i.length!==l.length)console.warn(\"copyWithRename() expects paths of the same length\");else{for(var p=0;p<l.length-1;p++)if(i[p]!==l[p]){console.warn(\"copyWithRename() expects paths to be the same except for the deepest key\");return}return n(a,i,l,0)}}function n(a,i,l,p){var b=i[p],w=oa(a)?a.slice():Wt({},a);return p+1===i.length?(w[l[p]]=w[b],oa(w)?w.splice(b,1):delete w[b]):w[b]=n(a[b],i,l,p+1),w}function o(a,i,l){var p=i[l],b=oa(a)?a.slice():Wt({},a);return l+1===i.length?(oa(b)?b.splice(p,1):delete b[p],b):(b[p]=o(a[p],i,l+1),b)}function s(){return!1}function u(){return null}function f(){console.error(\"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks\")}function d(){console.error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\")}function m(){}function h(){}function y(a){var i=[];return a.forEach(function(l){i.push(l)}),i.sort().join(\", \")}function v(a,i,l,p){return new lit(a,i,l,p)}function E(a,i){a.context===Dh&&(Pj(a.current,2,i,a,null,null),y2())}function C(a,i){if(Wc!==null){var l=i.staleFamilies;i=i.updatedFamilies,N8(),Hne(a.current,i,l),y2()}}function B(a){Wc=a}function R(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function M(a){var i=a,l=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(l=i.return),a=i.return;while(a)}return i.tag===3?l:null}function U(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function O(a){if(a.tag===31){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function N(a){if(M(a)!==a)throw Error(\"Unable to find node on an unmounted component.\")}function j(a){var i=a.alternate;if(!i){if(i=M(a),i===null)throw Error(\"Unable to find node on an unmounted component.\");return i!==a?null:a}for(var l=a,p=i;;){var b=l.return;if(b===null)break;var w=b.alternate;if(w===null){if(p=b.return,p!==null){l=p;continue}break}if(b.child===w.child){for(w=b.child;w;){if(w===l)return N(b),a;if(w===p)return N(b),i;w=w.sibling}throw Error(\"Unable to find node on an unmounted component.\")}if(l.return!==p.return)l=b,p=w;else{for(var S=!1,k=b.child;k;){if(k===l){S=!0,l=b,p=w;break}if(k===p){S=!0,p=b,l=w;break}k=k.sibling}if(!S){for(k=w.child;k;){if(k===l){S=!0,l=w,p=b;break}if(k===p){S=!0,p=w,l=b;break}k=k.sibling}if(!S)throw Error(\"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.\")}}if(l.alternate!==p)throw Error(\"Return fibers should always be each others\\' alternates. This error is likely caused by a bug in React. Please file an issue.\")}if(l.tag!==3)throw Error(\"Unable to find node on an unmounted component.\");return l.stateNode.current===l?a:i}function K(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=K(a),i!==null)return i;a=a.sibling}return null}function G(a){return a===null||typeof a!=\"object\"?null:(a=Gie&&a[Gie]||a[\"@@iterator\"],typeof a==\"function\"?a:null)}function J(a){if(a==null)return null;if(typeof a==\"function\")return a.$$typeof===Rst?null:a.displayName||a.name||null;if(typeof a==\"string\")return a;switch(a){case A2:return\"Fragment\";case Hj:return\"Profiler\";case Kk:return\"StrictMode\";case zj:return\"Suspense\";case Fj:return\"SuspenseList\";case jj:return\"Activity\"}if(typeof a==\"object\")switch(typeof a.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),a.$$typeof){case E2:return\"Portal\";case Of:return a.displayName||\"Context\";case Lj:return(a._context.displayName||\"Context\")+\".Consumer\";case G8:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||\"\",a=a!==\"\"?\"ForwardRef(\"+a+\")\":\"ForwardRef\"),a;case Wk:return i=a.displayName||null,i!==null?i:J(a.type)||\"Memo\";case pc:i=a._payload,a=a._init;try{return J(a(i))}catch{}}return null}function Y(a){return typeof a.tag==\"number\"?W(a):typeof a.name==\"string\"?a.name:null}function W(a){var i=a.type;switch(a.tag){case 31:return\"Activity\";case 24:return\"Cache\";case 9:return(i._context.displayName||\"Context\")+\".Consumer\";case 10:return i.displayName||\"Context\";case 18:return\"DehydratedFragment\";case 11:return a=i.render,a=a.displayName||a.name||\"\",i.displayName||(a!==\"\"?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 26:case 27:case 5:return i;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return J(i);case 8:return i===Kk?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";case 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 14:case 15:if(typeof i==\"function\")return i.displayName||i.name||null;if(typeof i==\"string\")return i;break;case 29:if(i=a._debugInfo,i!=null){for(var l=i.length-1;0<=l;l--)if(typeof i[l].name==\"string\")return i[l].name}if(a.return!==null)return W(a.return)}return null}function ie(a){return{current:a}}function re(a,i){0>Sp?console.error(\"Unexpected pop.\"):(i!==$j[Sp]&&console.error(\"Unexpected Fiber popped.\"),a.current=qj[Sp],qj[Sp]=null,$j[Sp]=null,Sp--)}function H(a,i,l){Sp++,qj[Sp]=a.current,$j[Sp]=l,a.current=i}function A(a){return a===null&&console.error(\"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.\"),a}function T(a,i){H(Ph,i,a),H(V8,a,a),H(Ih,null,a);var l=i.nodeType;switch(l){case 9:case 11:l=l===9?\"#document\":\"#fragment\",i=(i=i.documentElement)&&(i=i.namespaceURI)?hie(i):Hp;break;default:if(l=i.tagName,i=i.namespaceURI)i=hie(i),i=yie(i,l);else switch(l){case\"svg\":i=nv;break;case\"math\":i=V7;break;default:i=Hp}}l=l.toLowerCase(),l=une(null,l),l={context:i,ancestorInfo:l},re(Ih,a),H(Ih,l,a)}function P(a){re(Ih,a),re(V8,a),re(Ph,a)}function D(){return A(Ih.current)}function L(a){a.memoizedState!==null&&H(Qk,a,a);var i=A(Ih.current),l=a.type,p=yie(i.context,l);l=une(i.ancestorInfo,l),p={context:p,ancestorInfo:l},i!==p&&(H(V8,a,a),H(Ih,p,a))}function V(a){V8.current===a&&(re(Ih,a),re(V8,a)),Qk.current===a&&(re(Qk,a),DA._currentValue=s1)}function Z(){}function z(){if(K8===0){Vie=console.log,Kie=console.info,Wie=console.warn,Qie=console.error,Zie=console.group,Jie=console.groupCollapsed,Yie=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Z,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}K8++}function I(){if(K8--,K8===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Wt({},a,{value:Vie}),info:Wt({},a,{value:Kie}),warn:Wt({},a,{value:Wie}),error:Wt({},a,{value:Qie}),group:Wt({},a,{value:Zie}),groupCollapsed:Wt({},a,{value:Jie}),groupEnd:Wt({},a,{value:Yie})})}0>K8&&console.error(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\")}function Q(a){var i=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=i,a.startsWith(`Error: react-stack-top-frame\\n`)&&(a=a.slice(29)),i=a.indexOf(`\\n`),i!==-1&&(a=a.slice(i+1)),i=a.indexOf(\"react_stack_bottom_frame\"),i!==-1&&(i=a.lastIndexOf(`\\n`,i)),i!==-1)a=a.slice(0,i);else return\"\";return a}function me(a){if(Gj===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\\\\n( *(at )?)/);Gj=i&&i[1]||\"\",Xie=-1<l.stack.indexOf(`\\n    at`)?\" (<anonymous>)\":-1<l.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\\n`+Gj+a+Xie}function ge(a,i){if(!a||Vj)return\"\";var l=Kj.get(a);if(l!==void 0)return l;Vj=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var p=null;p=ye.H,ye.H=null,z();try{var b={DetermineComponentFrameRoot:function(){try{if(i){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(te,[])}catch(Oe){var pe=Oe}Reflect.construct(a,[],te)}else{try{te.call()}catch(Oe){pe=Oe}a.call(te.prototype)}}else{try{throw Error()}catch(Oe){pe=Oe}(te=a())&&typeof te.catch==\"function\"&&te.catch(function(){})}}catch(Oe){if(Oe&&pe&&typeof Oe.stack==\"string\")return[Oe.stack,pe.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var w=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,\"name\");w&&w.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var S=b.DetermineComponentFrameRoot(),k=S[0],F=S[1];if(k&&F){var $=k.split(`\\n`),ce=F.split(`\\n`);for(S=w=0;w<$.length&&!$[w].includes(\"DetermineComponentFrameRoot\");)w++;for(;S<ce.length&&!ce[S].includes(\"DetermineComponentFrameRoot\");)S++;if(w===$.length||S===ce.length)for(w=$.length-1,S=ce.length-1;1<=w&&0<=S&&$[w]!==ce[S];)S--;for(;1<=w&&0<=S;w--,S--)if($[w]!==ce[S]){if(w!==1||S!==1)do if(w--,S--,0>S||$[w]!==ce[S]){var ue=`\\n`+$[w].replace(\" at new \",\" at \");return a.displayName&&ue.includes(\"<anonymous>\")&&(ue=ue.replace(\"<anonymous>\",a.displayName)),typeof a==\"function\"&&Kj.set(a,ue),ue}while(1<=w&&0<=S);break}}}finally{Vj=!1,ye.H=p,I(),Error.prepareStackTrace=l}return $=($=a?a.displayName||a.name:\"\")?me($):\"\",typeof a==\"function\"&&Kj.set(a,$),$}function Se(a,i){switch(a.tag){case 26:case 27:case 5:return me(a.type);case 16:return me(\"Lazy\");case 13:return a.child!==i&&i!==null?me(\"Suspense Fallback\"):me(\"Suspense\");case 19:return me(\"SuspenseList\");case 0:case 15:return ge(a.type,!1);case 11:return ge(a.type.render,!1);case 1:return ge(a.type,!0);case 31:return me(\"Activity\");default:return\"\"}}function Ce(a){try{var i=\"\",l=null;do{i+=Se(a,l);var p=a._debugInfo;if(p)for(var b=p.length-1;0<=b;b--){var w=p[b];if(typeof w.name==\"string\"){var S=i;e:{var k=w.name,F=w.env,$=w.debugLocation;if($!=null){var ce=Q($),ue=ce.lastIndexOf(`\\n`),te=ue===-1?ce:ce.slice(ue+1);if(te.indexOf(k)!==-1){var pe=`\\n`+te;break e}}pe=me(k+(F?\" [\"+F+\"]\":\"\"))}i=S+pe}}l=a,a=a.return}while(a);return i}catch(Oe){return`\\nError generating stack: `+Oe.message+`\\n`+Oe.stack}}function $e(a){return(a=a?a.displayName||a.name:\"\")?me(a):\"\"}function je(){if(mc===null)return null;var a=mc._debugOwner;return a!=null?Y(a):null}function Ot(){if(mc===null)return\"\";var a=mc;try{var i=\"\";switch(a.tag===6&&(a=a.return),a.tag){case 26:case 27:case 5:i+=me(a.type);break;case 13:i+=me(\"Suspense\");break;case 19:i+=me(\"SuspenseList\");break;case 31:i+=me(\"Activity\");break;case 30:case 0:case 15:case 1:a._debugOwner||i!==\"\"||(i+=$e(a.type));break;case 11:a._debugOwner||i!==\"\"||(i+=$e(a.type.render))}for(;a;)if(typeof a.tag==\"number\"){var l=a;a=l._debugOwner;var p=l._debugStack;if(a&&p){var b=Q(p);b!==\"\"&&(i+=`\\n`+b)}}else if(a.debugStack!=null){var w=a.debugStack;(a=a.owner)&&w&&(i+=`\\n`+Q(w))}else break;var S=i}catch(k){S=`\\nError generating stack: `+k.message+`\\n`+k.stack}return S}function Te(a,i,l,p,b,w,S){var k=mc;It(a);try{return a!==null&&a._debugTask?a._debugTask.run(i.bind(null,l,p,b,w,S)):i(l,p,b,w,S)}finally{It(k)}throw Error(\"runWithFiberInDEV should never be called in production. This is a bug in React.\")}function It(a){ye.getCurrentStack=a===null?null:Ot,Nf=!1,mc=a}function Gn(a){return typeof Symbol==\"function\"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||\"Object\"}function tr(a){try{return yt(a),!1}catch{return!0}}function yt(a){return\"\"+a}function rr(a,i){if(tr(a))return console.error(\"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.\",i,Gn(a)),yt(a)}function rn(a,i){if(tr(a))return console.error(\"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.\",i,Gn(a)),yt(a)}function Je(a){if(tr(a))return console.error(\"Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.\",Gn(a)),yt(a)}function jc(a){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\")return!1;var i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(i.isDisabled)return!0;if(!i.supportsFiber)return console.error(\"The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools\"),!0;try{C2=i.inject(a),ii=i}catch(l){console.error(\"React instrumentation encountered an error: %o.\",l)}return!!i.checkDCE}function dt(a){if(typeof Lst==\"function\"&&zst(a),ii&&typeof ii.setStrictMode==\"function\")try{ii.setStrictMode(C2,a)}catch(i){Uf||(Uf=!0,console.error(\"React instrumentation encountered an error: %o\",i))}}function un(a){return a>>>=0,a===0?32:31-(Fst(a)/jst|0)|0}function ni(a){var i=a&42;if(i!==0)return i;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error(\"Should have found matching lanes. This is a bug in React.\"),a}}function Hr(a,i,l){var p=a.pendingLanes;if(p===0)return 0;var b=0,w=a.suspendedLanes,S=a.pingedLanes;a=a.warmLanes;var k=p&134217727;return k!==0?(p=k&~w,p!==0?b=ni(p):(S&=k,S!==0?b=ni(S):l||(l=k&~a,l!==0&&(b=ni(l))))):(k=p&~w,k!==0?b=ni(k):S!==0?b=ni(S):l||(l=p&~a,l!==0&&(b=ni(l)))),b===0?0:i!==0&&i!==b&&(i&w)===0&&(w=b&-b,l=i&-i,w>=l||w===32&&(l&4194048)!==0)?i:b}function Lr(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function pp(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error(\"Should have found matching lanes. This is a bug in React.\"),-1}}function jr(){var a=Yk;return Yk<<=1,(Yk&62914560)===0&&(Yk=4194304),a}function qr(a){for(var i=[],l=0;31>l;l++)i.push(a);return i}function Ii(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function nn(a,i,l,p,b,w){var S=a.pendingLanes;a.pendingLanes=l,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=l,a.entangledLanes&=l,a.errorRecoveryDisabledLanes&=l,a.shellSuspendCounter=0;var k=a.entanglements,F=a.expirationTimes,$=a.hiddenUpdates;for(l=S&~l;0<l;){var ce=31-Mi(l),ue=1<<ce;k[ce]=0,F[ce]=-1;var te=$[ce];if(te!==null)for($[ce]=null,ce=0;ce<te.length;ce++){var pe=te[ce];pe!==null&&(pe.lane&=-536870913)}l&=~ue}p!==0&&Ir(a,p,0),w!==0&&b===0&&a.tag!==0&&(a.suspendedLanes|=w&~(S&~i))}function Ir(a,i,l){a.pendingLanes|=i,a.suspendedLanes&=~i;var p=31-Mi(i);a.entangledLanes|=i,a.entanglements[p]=a.entanglements[p]|1073741824|l&261930}function ys(a,i){var l=a.entangledLanes|=i;for(a=a.entanglements;l;){var p=31-Mi(l),b=1<<p;b&i|a[p]&i&&(a[p]|=i),l&=~b}}function Pr(a,i){var l=i&-i;return l=(l&42)!==0?1:Rr(l),(l&(a.suspendedLanes|i))!==0?0:l}function Rr(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function qc(a,i,l){if(Df)for(a=a.pendingUpdatersLaneMap;0<l;){var p=31-Mi(l),b=1<<p;a[p].add(i),l&=~b}}function Er(a,i){if(Df)for(var l=a.pendingUpdatersLaneMap,p=a.memoizedUpdaters;0<i;){var b=31-Mi(i);a=1<<b,b=l[b],0<b.size&&(b.forEach(function(w){var S=w.alternate;S!==null&&p.has(S)||p.add(w)}),b.clear()),i&=~a}}function q(a){return a&=-a,hc!==0&&hc<a?ul!==0&&ul<a?(a&134217727)!==0?Hf:Xk:ul:hc}function fe(){var a=Fr.p;return a!==0?a:(a=window.event,a===void 0?Hf:Hie(a.type))}function Ee(a,i){var l=Fr.p;try{return Fr.p=a,i()}finally{Fr.p=l}}function _e(a){delete a[Ua],delete a[Oi],delete a[Yj],delete a[qst],delete a[$st]}function We(a){var i=a[Ua];if(i)return i;for(var l=a.parentNode;l;){if(i=l[Mh]||l[Ua]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(a=Sie(a);a!==null;){if(l=a[Ua])return l;a=Sie(a)}return i}a=l,l=a.parentNode}return null}function Ge(a){if(a=a[Ua]||a[Mh]){var i=a.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return a}return null}function Ve(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error(\"getNodeFromInstance: Invalid argument.\")}function Ft(a){var i=a[ese];return i||(i=a[ese]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Ne(a){a[W8]=!0}function jt(a,i){Uo(a,i),Uo(a+\"Capture\",i)}function Uo(a,i){Lb[a]&&console.error(\"EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.\",a),Lb[a]=i;var l=a.toLowerCase();for(Xj[l]=a,a===\"onDoubleClick\"&&(Xj.ondblclick=a),a=0;a<i.length;a++)tse.add(i[a])}function Ar(a,i){Gst[i.type]||i.onChange||i.onInput||i.readOnly||i.disabled||i.value==null||console.error(a===\"select\"?\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.\":\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.\"),i.onChange||i.readOnly||i.disabled||i.checked==null||console.error(\"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.\")}function $r(a){return cl.call(nse,a)?!0:cl.call(rse,a)?!1:Vst.test(a)?nse[a]=!0:(rse[a]=!0,console.error(\"Invalid attribute name: `%s`\",a),!1)}function mp(a,i,l){if($r(i)){if(!a.hasAttribute(i)){switch(typeof l){case\"symbol\":case\"object\":return l;case\"function\":return l;case\"boolean\":if(l===!1)return l}return l===void 0?void 0:null}return a=a.getAttribute(i),a===\"\"&&l===!0?!0:(rr(l,i),a===\"\"+l?l:a)}}function on(a,i,l){if($r(i))if(l===null)a.removeAttribute(i);else{switch(typeof l){case\"undefined\":case\"function\":case\"symbol\":a.removeAttribute(i);return;case\"boolean\":var p=i.toLowerCase().slice(0,5);if(p!==\"data-\"&&p!==\"aria-\"){a.removeAttribute(i);return}}rr(l,i),a.setAttribute(i,\"\"+l)}}function an(a,i,l){if(l===null)a.removeAttribute(i);else{switch(typeof l){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":a.removeAttribute(i);return}rr(l,i),a.setAttribute(i,\"\"+l)}}function oi(a,i,l,p){if(p===null)a.removeAttribute(l);else{switch(typeof p){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":a.removeAttribute(l);return}rr(p,l),a.setAttributeNS(i,l,\"\"+p)}}function cr(a){switch(typeof a){case\"bigint\":case\"boolean\":case\"number\":case\"string\":case\"undefined\":return a;case\"object\":return Je(a),a;default:return\"\"}}function xn(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()===\"input\"&&(i===\"checkbox\"||i===\"radio\")}function bh(a,i,l){var p=Object.getOwnPropertyDescriptor(a.constructor.prototype,i);if(!a.hasOwnProperty(i)&&typeof p<\"u\"&&typeof p.get==\"function\"&&typeof p.set==\"function\"){var b=p.get,w=p.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return b.call(this)},set:function(S){Je(S),l=\"\"+S,w.call(this,S)}}),Object.defineProperty(a,i,{enumerable:p.enumerable}),{getValue:function(){return l},setValue:function(S){Je(S),l=\"\"+S},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function ln(a){if(!a._valueTracker){var i=xn(a)?\"checked\":\"value\";a._valueTracker=bh(a,i,\"\"+a[i])}}function vn(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var l=i.getValue(),p=\"\";return a&&(p=xn(a)?a.checked?\"true\":\"false\":a.value),a=p,a!==l?(i.setValue(a),!0):!1}function ol(a){if(a=a||(typeof document<\"u\"?document:void 0),typeof a>\"u\")return null;try{return a.activeElement||a.body}catch{return a.body}}function ur(a){return a.replace(Kst,function(i){return\"\\\\\\\\\"+i.charCodeAt(0).toString(16)+\" \"})}function wn(a,i){i.checked===void 0||i.defaultChecked===void 0||ase||(console.error(\"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",je()||\"A component\",i.type),ase=!0),i.value===void 0||i.defaultValue===void 0||ose||(console.error(\"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",je()||\"A component\",i.type),ose=!0)}function sf(a,i,l,p,b,w,S,k){a.name=\"\",S!=null&&typeof S!=\"function\"&&typeof S!=\"symbol\"&&typeof S!=\"boolean\"?(rr(S,\"type\"),a.type=S):a.removeAttribute(\"type\"),i!=null?S===\"number\"?(i===0&&a.value===\"\"||a.value!=i)&&(a.value=\"\"+cr(i)):a.value!==\"\"+cr(i)&&(a.value=\"\"+cr(i)):S!==\"submit\"&&S!==\"reset\"||a.removeAttribute(\"value\"),i!=null?fn(a,S,cr(i)):l!=null?fn(a,S,cr(l)):p!=null&&a.removeAttribute(\"value\"),b==null&&w!=null&&(a.defaultChecked=!!w),b!=null&&(a.checked=b&&typeof b!=\"function\"&&typeof b!=\"symbol\"),k!=null&&typeof k!=\"function\"&&typeof k!=\"symbol\"&&typeof k!=\"boolean\"?(rr(k,\"name\"),a.name=\"\"+cr(k)):a.removeAttribute(\"name\")}function En(a,i,l,p,b,w,S,k){if(w!=null&&typeof w!=\"function\"&&typeof w!=\"symbol\"&&typeof w!=\"boolean\"&&(rr(w,\"type\"),a.type=w),i!=null||l!=null){if(!(w!==\"submit\"&&w!==\"reset\"||i!=null)){ln(a);return}l=l!=null?\"\"+cr(l):\"\",i=i!=null?\"\"+cr(i):l,k||i===a.value||(a.value=i),a.defaultValue=i}p=p??b,p=typeof p!=\"function\"&&typeof p!=\"symbol\"&&!!p,a.checked=k?a.checked:!!p,a.defaultChecked=!!p,S!=null&&typeof S!=\"function\"&&typeof S!=\"symbol\"&&typeof S!=\"boolean\"&&(rr(S,\"name\"),a.name=S),ln(a)}function fn(a,i,l){i===\"number\"&&ol(a.ownerDocument)===a||a.defaultValue===\"\"+l||(a.defaultValue=\"\"+l)}function cf(a,i){i.value==null&&(typeof i.children==\"object\"&&i.children!==null?Dj.Children.forEach(i.children,function(l){l==null||typeof l==\"string\"||typeof l==\"number\"||typeof l==\"bigint\"||sse||(sse=!0,console.error(\"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.\"))}):i.dangerouslySetInnerHTML==null||cse||(cse=!0,console.error(\"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.\"))),i.selected==null||ise||(console.error(\"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.\"),ise=!0)}function uf(){var a=je();return a?`\\n\\nCheck the render method of \\\\``+a+\"`.\":\"\"}function bs(a,i,l,p){if(a=a.options,i){i={};for(var b=0;b<l.length;b++)i[\"$\"+l[b]]=!0;for(l=0;l<a.length;l++)b=i.hasOwnProperty(\"$\"+a[l].value),a[l].selected!==b&&(a[l].selected=b),b&&p&&(a[l].defaultSelected=!0)}else{for(l=\"\"+cr(l),i=null,b=0;b<a.length;b++){if(a[b].value===l){a[b].selected=!0,p&&(a[b].defaultSelected=!0);return}i!==null||a[b].disabled||(i=a[b])}i!==null&&(i.selected=!0)}}function lf(a,i){for(a=0;a<lse.length;a++){var l=lse[a];if(i[l]!=null){var p=oa(i[l]);i.multiple&&!p?console.error(\"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s\",l,uf()):!i.multiple&&p&&console.error(\"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s\",l,uf())}}i.value===void 0||i.defaultValue===void 0||use||(console.error(\"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components\"),use=!0)}function ff(a,i){i.value===void 0||i.defaultValue===void 0||fse||(console.error(\"%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components\",je()||\"A component\"),fse=!0),i.children!=null&&i.value==null&&console.error(\"Use the `defaultValue` or `value` props instead of setting children on <textarea>.\")}function df(a,i,l){if(i!=null&&(i=\"\"+cr(i),i!==a.value&&(a.value=i),l==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=l!=null?\"\"+cr(l):\"\"}function pf(a,i,l,p){if(i==null){if(p!=null){if(l!=null)throw Error(\"If you supply `defaultValue` on a <textarea>, do not pass children.\");if(oa(p)){if(1<p.length)throw Error(\"<textarea> can only have at most one child.\");p=p[0]}l=p}l==null&&(l=\"\"),i=l}l=cr(i),a.defaultValue=l,p=a.textContent,p===l&&p!==\"\"&&p!==null&&(a.value=p),ln(a)}function mf(a,i){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-i?mf(a.children[0],i):a}function Ao(a){return\"  \"+\"  \".repeat(a)}function gs(a){return\"+ \"+\"  \".repeat(a)}function Pi(a){return\"- \"+\"  \".repeat(a)}function hf(a){switch(a.tag){case 26:case 27:case 5:return a.type;case 16:return\"Lazy\";case 31:return\"Activity\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 0:case 15:return a=a.type,a.displayName||a.name||null;case 11:return a=a.type.render,a.displayName||a.name||null;case 1:return a=a.type,a.displayName||a.name||null;default:return null}}function ac(a,i){return dse.test(a)?(a=JSON.stringify(a),a.length>i-2?8>i?\\'{\"...\"}\\':\"{\"+a.slice(0,i-7)+\\'...\"}\\':\"{\"+a+\"}\"):a.length>i?5>i?\\'{\"...\"}\\':a.slice(0,i-3)+\"...\":a}function $c(a,i,l){var p=120-2*l;if(i===null)return gs(l)+ac(a,p)+`\\n`;if(typeof i==\"string\"){for(var b=0;b<i.length&&b<a.length&&i.charCodeAt(b)===a.charCodeAt(b);b++);return b>p-8&&10<b&&(a=\"...\"+a.slice(b-8),i=\"...\"+i.slice(b-8)),gs(l)+ac(a,p)+`\\n`+Pi(l)+ac(i,p)+`\\n`}return Ao(l)+ac(a,p)+`\\n`}function Ab(a){return Object.prototype.toString.call(a).replace(/^\\\\[object (.*)\\\\]$/,function(i,l){return l})}function hp(a,i){switch(typeof a){case\"string\":return a=JSON.stringify(a),a.length>i?5>i?\\'\"...\"\\':a.slice(0,i-4)+\\'...\"\\':a;case\"object\":if(a===null)return\"null\";if(oa(a))return\"[...]\";if(a.$$typeof===Mf)return(i=J(a.type))?\"<\"+i+\">\":\"<...>\";var l=Ab(a);if(l===\"Object\"){l=\"\",i-=2;for(var p in a)if(a.hasOwnProperty(p)){var b=JSON.stringify(p);if(b!==\\'\"\\'+p+\\'\"\\'&&(p=b),i-=p.length-2,b=hp(a[p],15>i?i:15),i-=b.length,0>i){l+=l===\"\"?\"...\":\", ...\";break}l+=(l===\"\"?\"\":\",\")+p+\":\"+b}return\"{\"+l+\"}\"}return l;case\"function\":return(i=a.displayName||a.name)?\"function \"+i:\"function\";default:return String(a)}}function yf(a,i){return typeof a!=\"string\"||dse.test(a)?\"{\"+hp(a,i-2)+\"}\":a.length>i-2?5>i?\\'\"...\"\\':\\'\"\\'+a.slice(0,i-5)+\\'...\"\\':\\'\"\\'+a+\\'\"\\'}function Sb(a,i,l){var p=120-l.length-a.length,b=[],w;for(w in i)if(i.hasOwnProperty(w)&&w!==\"children\"){var S=yf(i[w],120-l.length-w.length-1);p-=w.length+S.length+2,b.push(w+\"=\"+S)}return b.length===0?l+\"<\"+a+`>\\n`:0<p?l+\"<\"+a+\" \"+b.join(\" \")+`>\\n`:l+\"<\"+a+`\\n`+l+\"  \"+b.join(`\\n`+l+\"  \")+`\\n`+l+`>\\n`}function f8(a,i,l){var p=\"\",b=Wt({},i),w;for(w in a)if(a.hasOwnProperty(w)){delete b[w];var S=120-2*l-w.length-2,k=hp(a[w],S);i.hasOwnProperty(w)?(S=hp(i[w],S),p+=gs(l)+w+\": \"+k+`\\n`,p+=Pi(l)+w+\": \"+S+`\\n`):p+=gs(l)+w+\": \"+k+`\\n`}for(var F in b)b.hasOwnProperty(F)&&(a=hp(b[F],120-2*l-F.length-2),p+=Pi(l)+F+\": \"+a+`\\n`);return p}function qat(a,i,l,p){var b=\"\",w=new Map;for($ in l)l.hasOwnProperty($)&&w.set($.toLowerCase(),$);if(w.size===1&&w.has(\"children\"))b+=Sb(a,i,Ao(p));else{for(var S in i)if(i.hasOwnProperty(S)&&S!==\"children\"){var k=120-2*(p+1)-S.length-1,F=w.get(S.toLowerCase());if(F!==void 0){w.delete(S.toLowerCase());var $=i[S];F=l[F];var ce=yf($,k);k=yf(F,k),typeof $==\"object\"&&$!==null&&typeof F==\"object\"&&F!==null&&Ab($)===\"Object\"&&Ab(F)===\"Object\"&&(2<Object.keys($).length||2<Object.keys(F).length||-1<ce.indexOf(\"...\")||-1<k.indexOf(\"...\"))?b+=Ao(p+1)+S+`={{\\n`+f8($,F,p+2)+Ao(p+1)+`}}\\n`:(b+=gs(p+1)+S+\"=\"+ce+`\\n`,b+=Pi(p+1)+S+\"=\"+k+`\\n`)}else b+=Ao(p+1)+S+\"=\"+yf(i[S],k)+`\\n`}w.forEach(function(ue){if(ue!==\"children\"){var te=120-2*(p+1)-ue.length-1;b+=Pi(p+1)+ue+\"=\"+yf(l[ue],te)+`\\n`}}),b=b===\"\"?Ao(p)+\"<\"+a+`>\\n`:Ao(p)+\"<\"+a+`\\n`+b+Ao(p)+`>\\n`}return a=l.children,i=i.children,typeof a==\"string\"||typeof a==\"number\"||typeof a==\"bigint\"?(w=\"\",(typeof i==\"string\"||typeof i==\"number\"||typeof i==\"bigint\")&&(w=\"\"+i),b+=$c(w,\"\"+a,p+1)):(typeof i==\"string\"||typeof i==\"number\"||typeof i==\"bigint\")&&(b=a==null?b+$c(\"\"+i,null,p+1):b+$c(\"\"+i,void 0,p+1)),b}function sne(a,i){var l=hf(a);if(l===null){for(l=\"\",a=a.child;a;)l+=sne(a,i),a=a.sibling;return l}return Ao(i)+\"<\"+l+`>\\n`}function Dz(a,i){var l=mf(a,i);if(l!==a&&(a.children.length!==1||a.children[0]!==l))return Ao(i)+`...\\n`+Dz(l,i+1);l=\"\";var p=a.fiber._debugInfo;if(p)for(var b=0;b<p.length;b++){var w=p[b].name;typeof w==\"string\"&&(l+=Ao(i)+\"<\"+w+`>\\n`,i++)}if(p=\"\",b=a.fiber.pendingProps,a.fiber.tag===6)p=$c(b,a.serverProps,i),i++;else if(w=hf(a.fiber),w!==null)if(a.serverProps===void 0){p=i;var S=120-2*p-w.length-2,k=\"\";for($ in b)if(b.hasOwnProperty($)&&$!==\"children\"){var F=yf(b[$],15);if(S-=$.length+F.length+2,0>S){k+=\" ...\";break}k+=\" \"+$+\"=\"+F}p=Ao(p)+\"<\"+w+k+`>\\n`,i++}else a.serverProps===null?(p=Sb(w,b,gs(i)),i++):typeof a.serverProps==\"string\"?console.error(\"Should not have matched a non HostText fiber to a Text node. This is a bug in React.\"):(p=qat(w,b,a.serverProps,i),i++);var $=\"\";for(b=a.fiber.child,w=0;b&&w<a.children.length;)S=a.children[w],S.fiber===b?($+=Dz(S,i),w++):$+=sne(b,i),b=b.sibling;for(b&&0<a.children.length&&($+=Ao(i)+`...\\n`),b=a.serverTail,a.serverProps===null&&i--,a=0;a<b.length;a++)w=b[a],$=typeof w==\"string\"?$+(Pi(i)+ac(w,120-2*i)+`\\n`):$+Sb(w.type,w.props,Pi(i));return l+p+$}function Hz(a){try{return`\\n\\n`+Dz(a,0)}catch{return\"\"}}function cne(a,i,l){for(var p=i,b=null,w=0;p;)p===a&&(w=0),b={fiber:p,children:b!==null?[b]:[],serverProps:p===i?l:p===a?null:void 0,serverTail:[],distanceFromLeaf:w},w++,p=p.return;return b!==null?Hz(b).replaceAll(/^[+-]/gm,\">\"):\"\"}function une(a,i){var l=Wt({},a||mse),p={tag:i};return pse.indexOf(i)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),Qst.indexOf(i)!==-1&&(l.pTagInButtonScope=null),Wst.indexOf(i)!==-1&&i!==\"address\"&&i!==\"div\"&&i!==\"p\"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=p,i===\"form\"&&(l.formTag=p),i===\"a\"&&(l.aTagInScope=p),i===\"button\"&&(l.buttonTagInScope=p),i===\"nobr\"&&(l.nobrTagInScope=p),i===\"p\"&&(l.pTagInButtonScope=p),i===\"li\"&&(l.listItemTagAutoclosing=p),(i===\"dd\"||i===\"dt\")&&(l.dlItemTagAutoclosing=p),i===\"#document\"||i===\"html\"?l.containerTagInScope=null:l.containerTagInScope||(l.containerTagInScope=p),a!==null||i!==\"#document\"&&i!==\"html\"&&i!==\"body\"?l.implicitRootScope===!0&&(l.implicitRootScope=!1):l.implicitRootScope=!0,l}function lne(a,i,l){switch(i){case\"select\":return a===\"hr\"||a===\"option\"||a===\"optgroup\"||a===\"script\"||a===\"template\"||a===\"#text\";case\"optgroup\":return a===\"option\"||a===\"#text\";case\"option\":return a===\"#text\";case\"tr\":return a===\"th\"||a===\"td\"||a===\"style\"||a===\"script\"||a===\"template\";case\"tbody\":case\"thead\":case\"tfoot\":return a===\"tr\"||a===\"style\"||a===\"script\"||a===\"template\";case\"colgroup\":return a===\"col\"||a===\"template\";case\"table\":return a===\"caption\"||a===\"colgroup\"||a===\"tbody\"||a===\"tfoot\"||a===\"thead\"||a===\"style\"||a===\"script\"||a===\"template\";case\"head\":return a===\"base\"||a===\"basefont\"||a===\"bgsound\"||a===\"link\"||a===\"meta\"||a===\"title\"||a===\"noscript\"||a===\"noframes\"||a===\"style\"||a===\"script\"||a===\"template\";case\"html\":if(l)break;return a===\"head\"||a===\"body\"||a===\"frameset\";case\"frameset\":return a===\"frame\";case\"#document\":if(!l)return a===\"html\"}switch(a){case\"h1\":case\"h2\":case\"h3\":case\"h4\":case\"h5\":case\"h6\":return i!==\"h1\"&&i!==\"h2\"&&i!==\"h3\"&&i!==\"h4\"&&i!==\"h5\"&&i!==\"h6\";case\"rp\":case\"rt\":return Zst.indexOf(i)===-1;case\"caption\":case\"col\":case\"colgroup\":case\"frameset\":case\"frame\":case\"tbody\":case\"td\":case\"tfoot\":case\"th\":case\"thead\":case\"tr\":return i==null;case\"head\":return l||i===null;case\"html\":return l&&i===\"#document\"||i===null;case\"body\":return l&&(i===\"#document\"||i===\"html\")||i===null}return!0}function $at(a,i){switch(a){case\"address\":case\"article\":case\"aside\":case\"blockquote\":case\"center\":case\"details\":case\"dialog\":case\"dir\":case\"div\":case\"dl\":case\"fieldset\":case\"figcaption\":case\"figure\":case\"footer\":case\"header\":case\"hgroup\":case\"main\":case\"menu\":case\"nav\":case\"ol\":case\"p\":case\"section\":case\"summary\":case\"ul\":case\"pre\":case\"listing\":case\"table\":case\"hr\":case\"xmp\":case\"h1\":case\"h2\":case\"h3\":case\"h4\":case\"h5\":case\"h6\":return i.pTagInButtonScope;case\"form\":return i.formTag||i.pTagInButtonScope;case\"li\":return i.listItemTagAutoclosing;case\"dd\":case\"dt\":return i.dlItemTagAutoclosing;case\"button\":return i.buttonTagInScope;case\"a\":return i.aTagInScope;case\"nobr\":return i.nobrTagInScope}return null}function fne(a,i){for(;a;){switch(a.tag){case 5:case 26:case 27:if(a.type===i)return a}a=a.return}return null}function Lz(a,i){i=i||mse;var l=i.current;if(i=(l=lne(a,l&&l.tag,i.implicitRootScope)?null:l)?null:$at(a,i),i=l||i,!i)return!0;var p=i.tag;if(i=String(!!l)+\"|\"+a+\"|\"+p,e7[i])return!1;e7[i]=!0;var b=(i=mc)?fne(i.return,p):null,w=i!==null&&b!==null?cne(b,i,null):\"\",S=\"<\"+a+\">\";return l?(l=\"\",p===\"table\"&&a===\"tr\"&&(l+=\" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.\"),console.error(`In HTML, %s cannot be a child of <%s>.%s\\nThis will cause a hydration error.%s`,S,p,l,w)):console.error(`In HTML, %s cannot be a descendant of <%s>.\\nThis will cause a hydration error.%s`,S,p,w),i&&(a=i.return,b===null||a===null||b===a&&a._debugOwner===i._debugOwner||Te(b,function(){console.error(`<%s> cannot contain a nested %s.\\nSee this log for the ancestor stack trace.`,p,S)})),!1}function q4(a,i,l){if(l||lne(\"#text\",i,!1))return!0;if(l=\"#text|\"+i,e7[l])return!1;e7[l]=!0;var p=(l=mc)?fne(l,i):null;return l=l!==null&&p!==null?cne(p,l,l.tag!==6?{children:null}:null):\"\",/\\\\S/.test(a)?console.error(`In HTML, text nodes cannot be a child of <%s>.\\nThis will cause a hydration error.%s`,i,l):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don\\'t have any extra whitespace between tags on each line of your source code.\\nThis will cause a hydration error.%s`,i,l),!1}function d8(a,i){if(i){var l=a.firstChild;if(l&&l===a.lastChild&&l.nodeType===3){l.nodeValue=i;return}}a.textContent=i}function Gat(a){return a.replace(Xst,function(i,l){return l.toUpperCase()})}function dne(a,i,l){var p=i.indexOf(\"--\")===0;p||(-1<i.indexOf(\"-\")?T2.hasOwnProperty(i)&&T2[i]||(T2[i]=!0,console.error(\"Unsupported style property %s. Did you mean %s?\",i,Gat(i.replace(Yst,\"ms-\")))):Jst.test(i)?T2.hasOwnProperty(i)&&T2[i]||(T2[i]=!0,console.error(\"Unsupported vendor-prefixed style property %s. Did you mean %s?\",i,i.charAt(0).toUpperCase()+i.slice(1))):!bse.test(l)||tq.hasOwnProperty(l)&&tq[l]||(tq[l]=!0,console.error(`Style property values shouldn\\'t contain a semicolon. Try \"%s: %s\" instead.`,i,l.replace(bse,\"\"))),typeof l==\"number\"&&(isNaN(l)?gse||(gse=!0,console.error(\"`NaN` is an invalid value for the `%s` css style property.\",i)):isFinite(l)||xse||(xse=!0,console.error(\"`Infinity` is an invalid value for the `%s` css style property.\",i)))),l==null||typeof l==\"boolean\"||l===\"\"?p?a.setProperty(i,\"\"):i===\"float\"?a.cssFloat=\"\":a[i]=\"\":p?a.setProperty(i,l):typeof l!=\"number\"||l===0||vse.has(i)?i===\"float\"?a.cssFloat=l:(rn(l,i),a[i]=(\"\"+l).trim()):a[i]=l+\"px\"}function pne(a,i,l){if(i!=null&&typeof i!=\"object\")throw Error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.\");if(i&&Object.freeze(i),a=a.style,l!=null){if(i){var p={};if(l){for(var b in l)if(l.hasOwnProperty(b)&&!i.hasOwnProperty(b))for(var w=eq[b]||[b],S=0;S<w.length;S++)p[w[S]]=b}for(var k in i)if(i.hasOwnProperty(k)&&(!l||l[k]!==i[k]))for(b=eq[k]||[k],w=0;w<b.length;w++)p[b[w]]=k;k={};for(var F in i)for(b=eq[F]||[F],w=0;w<b.length;w++)k[b[w]]=F;F={};for(var $ in p)if(b=p[$],(w=k[$])&&b!==w&&(S=b+\",\"+w,!F[S])){F[S]=!0,S=console;var ce=i[b];S.error.call(S,\"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don\\'t mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.\",ce==null||typeof ce==\"boolean\"||ce===\"\"?\"Removing\":\"Updating\",b,w)}}for(var ue in l)!l.hasOwnProperty(ue)||i!=null&&i.hasOwnProperty(ue)||(ue.indexOf(\"--\")===0?a.setProperty(ue,\"\"):ue===\"float\"?a.cssFloat=\"\":a[ue]=\"\");for(var te in i)$=i[te],i.hasOwnProperty(te)&&l[te]!==$&&dne(a,te,$)}else for(p in i)i.hasOwnProperty(p)&&dne(a,p,i[p])}function p8(a){if(a.indexOf(\"-\")===-1)return!1;switch(a){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}function mne(a){return ect.get(a)||a}function Vat(a,i){if(cl.call(k2,i)&&k2[i])return!0;if(rct.test(i)){if(a=\"aria-\"+i.slice(4).toLowerCase(),a=wse.hasOwnProperty(a)?a:null,a==null)return console.error(\"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.\",i),k2[i]=!0;if(i!==a)return console.error(\"Invalid ARIA attribute `%s`. Did you mean `%s`?\",i,a),k2[i]=!0}if(tct.test(i)){if(a=i.toLowerCase(),a=wse.hasOwnProperty(a)?a:null,a==null)return k2[i]=!0,!1;i!==a&&(console.error(\"Unknown ARIA attribute `%s`. Did you mean `%s`?\",i,a),k2[i]=!0)}return!0}function Kat(a,i){var l=[],p;for(p in i)Vat(a,p)||l.push(p);i=l.map(function(b){return\"`\"+b+\"`\"}).join(\", \"),l.length===1?console.error(\"Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",i,a):1<l.length&&console.error(\"Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",i,a)}function Wat(a,i,l,p){if(cl.call(Ni,i)&&Ni[i])return!0;var b=i.toLowerCase();if(b===\"onfocusin\"||b===\"onfocusout\")return console.error(\"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.\"),Ni[i]=!0;if(typeof l==\"function\"&&(a===\"form\"&&i===\"action\"||a===\"input\"&&i===\"formAction\"||a===\"button\"&&i===\"formAction\"))return!0;if(p!=null){if(a=p.possibleRegistrationNames,p.registrationNameDependencies.hasOwnProperty(i))return!0;if(p=a.hasOwnProperty(b)?a[b]:null,p!=null)return console.error(\"Invalid event handler property `%s`. Did you mean `%s`?\",i,p),Ni[i]=!0;if(Ase.test(i))return console.error(\"Unknown event handler property `%s`. It will be ignored.\",i),Ni[i]=!0}else if(Ase.test(i))return nct.test(i)&&console.error(\"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.\",i),Ni[i]=!0;if(oct.test(i)||act.test(i))return!0;if(b===\"innerhtml\")return console.error(\"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.\"),Ni[i]=!0;if(b===\"aria\")return console.error(\"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead.\"),Ni[i]=!0;if(b===\"is\"&&l!==null&&l!==void 0&&typeof l!=\"string\")return console.error(\"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.\",typeof l),Ni[i]=!0;if(typeof l==\"number\"&&isNaN(l))return console.error(\"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.\",i),Ni[i]=!0;if(r7.hasOwnProperty(b)){if(b=r7[b],b!==i)return console.error(\"Invalid DOM property `%s`. Did you mean `%s`?\",i,b),Ni[i]=!0}else if(i!==b)return console.error(\"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.\",i,b),Ni[i]=!0;switch(i){case\"dangerouslySetInnerHTML\":case\"children\":case\"style\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":return!0;case\"innerText\":case\"textContent\":return!0}switch(typeof l){case\"boolean\":switch(i){case\"autoFocus\":case\"checked\":case\"multiple\":case\"muted\":case\"selected\":case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"capture\":case\"download\":case\"inert\":return!0;default:return b=i.toLowerCase().slice(0,5),b===\"data-\"||b===\"aria-\"?!0:(l?console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\',l,i,i,l,i):console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\\\n\\\\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.\\',l,i,i,l,i,i,i),Ni[i]=!0)}case\"function\":case\"symbol\":return Ni[i]=!0,!1;case\"string\":if(l===\"false\"||l===\"true\"){switch(i){case\"checked\":case\"selected\":case\"multiple\":case\"muted\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"inert\":break;default:return!0}console.error(\"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?\",l,i,l===\"false\"?\"The browser will interpret it as a truthy value.\":\\'Although this works, it will not work as expected if you pass the string \"false\".\\',i,l),Ni[i]=!0}}return!0}function Qat(a,i,l){var p=[],b;for(b in i)Wat(a,b,i[b],l)||p.push(b);i=p.map(function(w){return\"`\"+w+\"`\"}).join(\", \"),p.length===1?console.error(\"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior \",i,a):1<p.length&&console.error(\"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior \",i,a)}function m8(a){return ict.test(\"\"+a)?\"javascript:throw new Error(\\'React has blocked a javascript: URL as a security precaution.\\')\":a}function yp(){}function zz(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function hne(a){var i=Ge(a);if(i&&(a=i.stateNode)){var l=a[Oi]||null;e:switch(a=i.stateNode,i.type){case\"input\":if(sf(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type===\"radio\"&&i!=null){for(l=a;l.parentNode;)l=l.parentNode;for(rr(i,\"name\"),l=l.querySelectorAll(\\'input[name=\"\\'+ur(\"\"+i)+\\'\"][type=\"radio\"]\\'),i=0;i<l.length;i++){var p=l[i];if(p!==a&&p.form===a.form){var b=p[Oi]||null;if(!b)throw Error(\"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.\");sf(p,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(i=0;i<l.length;i++)p=l[i],p.form===a.form&&vn(p)}break e;case\"textarea\":df(a,l.value,l.defaultValue);break e;case\"select\":i=l.value,i!=null&&bs(a,!!l.multiple,i,!1)}}}function yne(a,i,l){if(rq)return a(i,l);rq=!0;try{var p=a(i);return p}finally{if(rq=!1,(B2!==null||I2!==null)&&(y2(),B2&&(i=B2,a=I2,I2=B2=null,hne(i),a)))for(i=0;i<a.length;i++)hne(a[i])}}function h8(a,i){var l=a.stateNode;if(l===null)return null;var p=l[Oi]||null;if(p===null)return null;l=p[i];e:switch(i){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(p=!p.disabled)||(a=a.type,p=!(a===\"button\"||a===\"input\"||a===\"select\"||a===\"textarea\")),a=!p;break e;default:a=!1}if(a)return null;if(l&&typeof l!=\"function\")throw Error(\"Expected `\"+i+\"` listener to be a function, instead got a value of `\"+typeof l+\"` type.\");return l}function bne(){if(n7)return n7;var a,i=oq,l=i.length,p,b=\"value\"in Oh?Oh.value:Oh.textContent,w=b.length;for(a=0;a<l&&i[a]===b[a];a++);var S=l-a;for(p=1;p<=S&&i[l-p]===b[w-p];p++);return n7=b.slice(a,1<p?1-p:void 0)}function $4(a){var i=a.keyCode;return\"charCode\"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function G4(){return!0}function gne(){return!1}function xs(a){function i(l,p,b,w,S){this._reactName=l,this._targetInst=b,this.type=p,this.nativeEvent=w,this.target=S,this.currentTarget=null;for(var k in a)a.hasOwnProperty(k)&&(l=a[k],this[k]=l?l(w):w[k]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?G4:gne,this.isPropagationStopped=gne,this}return Wt(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!=\"unknown\"&&(l.returnValue=!1),this.isDefaultPrevented=G4)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!=\"unknown\"&&(l.cancelBubble=!0),this.isPropagationStopped=G4)},persist:function(){},isPersistent:G4}),i}function Zat(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=xct[a])?!!i[a]:!1}function Fz(){return Zat}function xne(a,i){switch(a){case\"keyup\":return Pct.indexOf(i.keyCode)!==-1;case\"keydown\":return i.keyCode!==_se;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function vne(a){return a=a.detail,typeof a==\"object\"&&\"data\"in a?a.data:null}function Jat(a,i){switch(a){case\"compositionend\":return vne(i);case\"keypress\":return i.which!==Bse?null:(Pse=!0,Ise);case\"textInput\":return a=i.data,a===Ise&&Pse?null:a;default:return null}}function Yat(a,i){if(P2)return a===\"compositionend\"||!cq&&xne(a,i)?(a=bne(),n7=oq=Oh=null,P2=!1,a):null;switch(a){case\"paste\":return null;case\"keypress\":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case\"compositionend\":return kse&&i.locale!==\"ko\"?null:i.data;default:return null}}function wne(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i===\"input\"?!!Mct[a.type]:i===\"textarea\"}function Xat(a){if(!Lf)return!1;a=\"on\"+a;var i=a in document;return i||(i=document.createElement(\"div\"),i.setAttribute(a,\"return;\"),i=typeof i[a]==\"function\"),i}function Ene(a,i,l,p){B2?I2?I2.push(p):I2=[p]:B2=p,i=Dk(i,\"onChange\"),0<i.length&&(l=new o7(\"onChange\",\"change\",null,l,p),a.push({event:l,listeners:i}))}function eit(a){oie(a,0)}function V4(a){var i=Ve(a);if(vn(i))return a}function Ane(a,i){if(a===\"change\")return i}function Sne(){eA&&(eA.detachEvent(\"onpropertychange\",Cne),tA=eA=null)}function Cne(a){if(a.propertyName===\"value\"&&V4(tA)){var i=[];Ene(i,tA,a,zz(a)),yne(eit,i)}}function tit(a,i,l){a===\"focusin\"?(Sne(),eA=i,tA=l,eA.attachEvent(\"onpropertychange\",Cne)):a===\"focusout\"&&Sne()}function rit(a){if(a===\"selectionchange\"||a===\"keyup\"||a===\"keydown\")return V4(tA)}function nit(a,i){if(a===\"click\")return V4(i)}function oit(a,i){if(a===\"input\"||a===\"change\")return V4(i)}function ait(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}function y8(a,i){if(Ui(a,i))return!0;if(typeof a!=\"object\"||a===null||typeof i!=\"object\"||i===null)return!1;var l=Object.keys(a),p=Object.keys(i);if(l.length!==p.length)return!1;for(p=0;p<l.length;p++){var b=l[p];if(!cl.call(i,b)||!Ui(a[b],i[b]))return!1}return!0}function Tne(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function _ne(a,i){var l=Tne(a);a=0;for(var p;l;){if(l.nodeType===3){if(p=a+l.textContent.length,a<=i&&p>=i)return{node:l,offset:i-a};a=p}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Tne(l)}}function kne(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?kne(a,i.parentNode):\"contains\"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function Bne(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=ol(a.document);i instanceof a.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href==\"string\"}catch{l=!1}if(l)a=i.contentWindow;else break;i=ol(a.document)}return i}function jz(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i===\"input\"&&(a.type===\"text\"||a.type===\"search\"||a.type===\"tel\"||a.type===\"url\"||a.type===\"password\")||i===\"textarea\"||a.contentEditable===\"true\")}function Ine(a,i,l){var p=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;lq||R2==null||R2!==ol(p)||(p=R2,\"selectionStart\"in p&&jz(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),rA&&y8(rA,p)||(rA=p,p=Dk(uq,\"onSelect\"),0<p.length&&(i=new o7(\"onSelect\",\"select\",null,i,l),a.push({event:i,listeners:p}),i.target=R2)))}function Cb(a,i){var l={};return l[a.toLowerCase()]=i.toLowerCase(),l[\"Webkit\"+a]=\"webkit\"+i,l[\"Moz\"+a]=\"moz\"+i,l}function Tb(a){if(fq[a])return fq[a];if(!M2[a])return a;var i=M2[a],l;for(l in i)if(i.hasOwnProperty(l)&&l in Mse)return fq[a]=i[l];return a}function al(a,i){Hse.set(a,i),jt(i,[a])}function iit(a){for(var i=i7,l=0;l<a.length;l++){var p=a[l];if(typeof p==\"object\"&&p!==null)if(oa(p)&&p.length===2&&typeof p[0]==\"string\"){if(i!==i7&&i!==yq)return mq;i=yq}else return mq;else{if(typeof p==\"function\"||typeof p==\"string\"&&50<p.length||i!==i7&&i!==hq)return mq;i=hq}}return i}function qz(a,i,l,p){for(var b in a)cl.call(a,b)&&b[0]!==\"_\"&&bf(b,a[b],i,l,p)}function bf(a,i,l,p,b){switch(typeof i){case\"object\":if(i===null){i=\"null\";break}else{if(i.$$typeof===Mf){var w=J(i.type)||\"\\\\u2026\",S=i.key;i=i.props;var k=Object.keys(i),F=k.length;if(S==null&&F===0){i=\"<\"+w+\" />\";break}if(3>p||F===1&&k[0]===\"children\"&&S==null){i=\"<\"+w+\" \\\\u2026 />\";break}l.push([b+\"\\\\xA0\\\\xA0\".repeat(p)+a,\"<\"+w]),S!==null&&bf(\"key\",S,l,p+1,b),a=!1;for(var $ in i)$===\"children\"?i.children!=null&&(!oa(i.children)||0<i.children.length)&&(a=!0):cl.call(i,$)&&$[0]!==\"_\"&&bf($,i[$],l,p+1,b);l.push([\"\",a?\">\\\\u2026</\"+w+\">\":\"/>\"]);return}if(w=Object.prototype.toString.call(i),w=w.slice(8,w.length-1),w===\"Array\"){if($=iit(i),$===hq||$===i7){i=JSON.stringify(i);break}else if($===yq){for(l.push([b+\"\\\\xA0\\\\xA0\".repeat(p)+a,\"\"]),a=0;a<i.length;a++)w=i[a],bf(w[0],w[1],l,p+1,b);return}}if(w===\"Promise\"){if(i.status===\"fulfilled\"){if(w=l.length,bf(a,i.value,l,p,b),l.length>w){l=l[w],l[1]=\"Promise<\"+(l[1]||\"Object\")+\">\";return}}else if(i.status===\"rejected\"&&(w=l.length,bf(a,i.reason,l,p,b),l.length>w)){l=l[w],l[1]=\"Rejected Promise<\"+l[1]+\">\";return}l.push([\"\\\\xA0\\\\xA0\".repeat(p)+a,\"Promise\"]);return}w===\"Object\"&&($=Object.getPrototypeOf(i))&&typeof $.constructor==\"function\"&&(w=$.constructor.name),l.push([b+\"\\\\xA0\\\\xA0\".repeat(p)+a,w===\"Object\"?3>p?\"\":\"\\\\u2026\":w]),3>p&&qz(i,l,p+1,b);return}case\"function\":i=i.name===\"\"?\"() => {}\":i.name+\"() {}\";break;case\"string\":i=i===zct?\"\\\\u2026\":JSON.stringify(i);break;case\"undefined\":i=\"undefined\";break;case\"boolean\":i=i?\"true\":\"false\";break;default:i=String(i)}l.push([b+\"\\\\xA0\\\\xA0\".repeat(p)+a,i])}function Pne(a,i,l,p){var b=!0;for(S in a)S in i||(l.push([s7+\"\\\\xA0\\\\xA0\".repeat(p)+S,\"\\\\u2026\"]),b=!1);for(var w in i)if(w in a){var S=a[w],k=i[w];if(S!==k){if(p===0&&w===\"children\")b=\"\\\\xA0\\\\xA0\".repeat(p)+w,l.push([s7+b,\"\\\\u2026\"],[c7+b,\"\\\\u2026\"]);else{if(!(3<=p)){if(typeof S==\"object\"&&typeof k==\"object\"&&S!==null&&k!==null&&S.$$typeof===k.$$typeof)if(k.$$typeof===Mf){if(S.type===k.type&&S.key===k.key){S=J(k.type)||\"\\\\u2026\",b=\"\\\\xA0\\\\xA0\".repeat(p)+w,S=\"<\"+S+\" \\\\u2026 />\",l.push([s7+b,S],[c7+b,S]),b=!1;continue}}else{var F=Object.prototype.toString.call(S),$=Object.prototype.toString.call(k);if(F===$&&($===\"[object Object]\"||$===\"[object Array]\")){F=[Fse+\"\\\\xA0\\\\xA0\".repeat(p)+w,$===\"[object Array]\"?\"Array\":\"\"],l.push(F),$=l.length,Pne(S,k,l,p+1)?$===l.length&&(F[1]=\"Referentially unequal but deeply equal objects. Consider memoization.\"):b=!1;continue}}else if(typeof S==\"function\"&&typeof k==\"function\"&&S.name===k.name&&S.length===k.length&&(F=Function.prototype.toString.call(S),$=Function.prototype.toString.call(k),F===$)){S=k.name===\"\"?\"() => {}\":k.name+\"() {}\",l.push([Fse+\"\\\\xA0\\\\xA0\".repeat(p)+w,S+\" Referentially unequal function closure. Consider memoization.\"]);continue}}bf(w,S,l,p,s7),bf(w,k,l,p,c7)}b=!1}}else l.push([c7+\"\\\\xA0\\\\xA0\".repeat(p)+w,\"\\\\u2026\"]),b=!1;return b}function ic(a){er=a&63?\"Blocking\":a&64?\"Gesture\":a&4194176?\"Transition\":a&62914560?\"Suspense\":a&2080374784?\"Idle\":\"Other\"}function gf(a,i,l,p){In&&(Uh.start=i,Uh.end=l,Cp.color=\"warning\",Cp.tooltipText=p,Cp.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,p,Uh)):performance.measure(p,Uh))}function K4(a,i,l){gf(a,i,l,\"Reconnect\")}function W4(a,i,l,p,b){var w=W(a);if(w!==null&&In){var S=a.alternate,k=a.actualDuration;if(S===null||S.child!==a.child)for(var F=a.child;F!==null;F=F.sibling)k-=F.actualDuration;p=.5>k?p?\"tertiary-light\":\"primary-light\":10>k?p?\"tertiary\":\"primary\":100>k?p?\"tertiary-dark\":\"primary-dark\":\"error\";var $=a.memoizedProps;k=a._debugTask,$!==null&&S!==null&&S.memoizedProps!==$?(F=[Fct],$=Pne(S.memoizedProps,$,F,0),1<F.length&&($&&!Nh&&(S.lanes&b)===0&&100<a.actualDuration?(Nh=!0,F[0]=jct,Cp.color=\"warning\",Cp.tooltipText=jse):(Cp.color=p,Cp.tooltipText=w),Cp.properties=F,Uh.start=i,Uh.end=l,k!=null?k.run(performance.measure.bind(performance,\"\\\\u200B\"+w,Uh)):performance.measure(\"\\\\u200B\"+w,Uh))):k!=null?k.run(console.timeStamp.bind(console,w,i,l,Vc,void 0,p)):console.timeStamp(w,i,l,Vc,void 0,p)}}function $z(a,i,l,p){if(In){var b=W(a);if(b!==null){for(var w=null,S=[],k=0;k<p.length;k++){var F=p[k];w==null&&F.source!==null&&(w=F.source._debugTask),F=F.value,S.push([\"Error\",typeof F==\"object\"&&F!==null&&typeof F.message==\"string\"?String(F.message):String(F)])}a.key!==null&&bf(\"key\",a.key,S,0,\"\"),a.memoizedProps!==null&&qz(a.memoizedProps,S,0,\"\"),w==null&&(w=a._debugTask),a={start:i,end:l,detail:{devtools:{color:\"error\",track:Vc,tooltipText:a.tag===13?\"Hydration failed\":\"Error boundary caught an error\",properties:S}}},w?w.run(performance.measure.bind(performance,\"\\\\u200B\"+b,a)):performance.measure(\"\\\\u200B\"+b,a)}}}function xf(a,i,l,p,b){if(b!==null){if(In){var w=W(a);if(w!==null){p=[];for(var S=0;S<b.length;S++){var k=b[S].value;p.push([\"Error\",typeof k==\"object\"&&k!==null&&typeof k.message==\"string\"?String(k.message):String(k)])}a.key!==null&&bf(\"key\",a.key,p,0,\"\"),a.memoizedProps!==null&&qz(a.memoizedProps,p,0,\"\"),i={start:i,end:l,detail:{devtools:{color:\"error\",track:Vc,tooltipText:\"A lifecycle or effect errored\",properties:p}}},(a=a._debugTask)?a.run(performance.measure.bind(performance,\"\\\\u200B\"+w,i)):performance.measure(\"\\\\u200B\"+w,i)}}}else w=W(a),w!==null&&In&&(b=1>p?\"secondary-light\":100>p?\"secondary\":500>p?\"secondary-dark\":\"error\",(a=a._debugTask)?a.run(console.timeStamp.bind(console,w,i,l,Vc,void 0,b)):console.timeStamp(w,i,l,Vc,void 0,b))}function sit(a,i,l,p){if(In&&!(i<=a)){var b=(l&738197653)===l?\"tertiary-dark\":\"primary-dark\";l=(l&536870912)===l?\"Prepared\":(l&201326741)===l?\"Hydrated\":\"Render\",p?p.run(console.timeStamp.bind(console,l,a,i,er,Qt,b)):console.timeStamp(l,a,i,er,Qt,b)}}function Rne(a,i,l,p){!In||i<=a||(l=(l&738197653)===l?\"tertiary-dark\":\"primary-dark\",p?p.run(console.timeStamp.bind(console,\"Prewarm\",a,i,er,Qt,l)):console.timeStamp(\"Prewarm\",a,i,er,Qt,l))}function Mne(a,i,l,p){!In||i<=a||(l=(l&738197653)===l?\"tertiary-dark\":\"primary-dark\",p?p.run(console.timeStamp.bind(console,\"Suspended\",a,i,er,Qt,l)):console.timeStamp(\"Suspended\",a,i,er,Qt,l))}function cit(a,i,l,p,b,w){if(In&&!(i<=a)){l=[];for(var S=0;S<p.length;S++){var k=p[S].value;l.push([\"Recoverable Error\",typeof k==\"object\"&&k!==null&&typeof k.message==\"string\"?String(k.message):String(k)])}a={start:a,end:i,detail:{devtools:{color:\"primary-dark\",track:er,trackGroup:Qt,tooltipText:b?\"Hydration Failed\":\"Recovered after Error\",properties:l}}},w?w.run(performance.measure.bind(performance,\"Recovered\",a)):performance.measure(\"Recovered\",a)}}function Gz(a,i,l,p){!In||i<=a||(p?p.run(console.timeStamp.bind(console,\"Errored\",a,i,er,Qt,\"error\")):console.timeStamp(\"Errored\",a,i,er,Qt,\"error\"))}function uit(a,i,l,p){!In||i<=a||(p?p.run(console.timeStamp.bind(console,l,a,i,er,Qt,\"secondary-light\")):console.timeStamp(l,a,i,er,Qt,\"secondary-light\"))}function One(a,i,l,p,b){if(In&&!(i<=a)){for(var w=[],S=0;S<l.length;S++){var k=l[S].value;w.push([\"Error\",typeof k==\"object\"&&k!==null&&typeof k.message==\"string\"?String(k.message):String(k)])}a={start:a,end:i,detail:{devtools:{color:\"error\",track:er,trackGroup:Qt,tooltipText:p?\"Remaining Effects Errored\":\"Commit Errored\",properties:w}}},b?b.run(performance.measure.bind(performance,\"Errored\",a)):performance.measure(\"Errored\",a)}}function b8(a,i,l){!In||i<=a||(l?l.run(console.timeStamp.bind(console,\"Animating\",a,i,er,Qt,\"secondary-dark\")):console.timeStamp(\"Animating\",a,i,er,Qt,\"secondary-dark\"))}function Q4(){for(var a=O2,i=bq=O2=0;i<a;){var l=Kc[i];Kc[i++]=null;var p=Kc[i];Kc[i++]=null;var b=Kc[i];Kc[i++]=null;var w=Kc[i];if(Kc[i++]=null,p!==null&&b!==null){var S=p.pending;S===null?b.next=b:(b.next=S.next,S.next=b),p.pending=b}w!==0&&Nne(l,b,w)}}function Z4(a,i,l,p){Kc[O2++]=a,Kc[O2++]=i,Kc[O2++]=l,Kc[O2++]=p,bq|=p,a.lanes|=p,a=a.alternate,a!==null&&(a.lanes|=p)}function Vz(a,i,l,p){return Z4(a,i,l,p),J4(a)}function ai(a,i){return Z4(a,null,null,i),J4(a)}function Nne(a,i,l){a.lanes|=l;var p=a.alternate;p!==null&&(p.lanes|=l);for(var b=!1,w=a.return;w!==null;)w.childLanes|=l,p=w.alternate,p!==null&&(p.childLanes|=l),w.tag===22&&(a=w.stateNode,a===null||a._visibility&nA||(b=!0)),a=w,w=w.return;return a.tag===3?(w=a.stateNode,b&&i!==null&&(b=31-Mi(l),a=w.hiddenUpdates,p=a[b],p===null?a[b]=[i]:p.push(i),i.lane=l|536870912),w):null}function J4(a){if(IA>nut)throw t1=IA=0,PA=Zq=null,Error(\"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.\");t1>out&&(t1=0,PA=null,console.error(\"Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn\\'t have a dependency array, or one of the dependencies changes on every render.\")),a.alternate===null&&(a.flags&4098)!==0&&Jae(a);for(var i=a,l=i.return;l!==null;)i.alternate===null&&(i.flags&4098)!==0&&Jae(a),i=l,l=i.return;return i.tag===3?i.stateNode:null}function _b(a){if(Wc===null)return a;var i=Wc(a);return i===void 0?a:i.current}function Kz(a){if(Wc===null)return a;var i=Wc(a);return i===void 0?a!=null&&typeof a.render==\"function\"&&(i=_b(a.render),a.render!==i)?(i={$$typeof:G8,render:i},a.displayName!==void 0&&(i.displayName=a.displayName),i):a:i.current}function Une(a,i){if(Wc===null)return!1;var l=a.elementType;i=i.type;var p=!1,b=typeof i==\"object\"&&i!==null?i.$$typeof:null;switch(a.tag){case 1:typeof i==\"function\"&&(p=!0);break;case 0:(typeof i==\"function\"||b===pc)&&(p=!0);break;case 11:(b===G8||b===pc)&&(p=!0);break;case 14:case 15:(b===Wk||b===pc)&&(p=!0);break;default:return!1}return!!(p&&(a=Wc(l),a!==void 0&&a===Wc(i)))}function Dne(a){Wc!==null&&typeof WeakSet==\"function\"&&(N2===null&&(N2=new WeakSet),N2.add(a))}function Hne(a,i,l){do{var p=a,b=p.alternate,w=p.child,S=p.sibling,k=p.tag;p=p.type;var F=null;switch(k){case 0:case 15:case 1:F=p;break;case 11:F=p.render}if(Wc===null)throw Error(\"Expected resolveFamily to be set during hot reload.\");var $=!1;if(p=!1,F!==null&&(F=Wc(F),F!==void 0&&(l.has(F)?p=!0:i.has(F)&&(k===1?p=!0:$=!0))),N2!==null&&(N2.has(a)||b!==null&&N2.has(b))&&(p=!0),p&&(a._debugNeedsRemount=!0),(p||$)&&(b=ai(a,2),b!==null&&ro(b,a,2)),w===null||p||Hne(w,i,l),S===null)break;a=S}while(!0)}function lit(a,i,l,p){this.tag=a,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,qse||typeof Object.preventExtensions!=\"function\"||Object.preventExtensions(this)}function Wz(a){return a=a.prototype,!(!a||!a.isReactComponent)}function bp(a,i){var l=a.alternate;switch(l===null?(l=v(a.tag,i,a.key,a.mode),l.elementType=a.elementType,l.type=a.type,l.stateNode=a.stateNode,l._debugOwner=a._debugOwner,l._debugStack=a._debugStack,l._debugTask=a._debugTask,l._debugHookTypes=a._debugHookTypes,l.alternate=a,a.alternate=l):(l.pendingProps=i,l.type=a.type,l.flags=0,l.subtreeFlags=0,l.deletions=null,l.actualDuration=-0,l.actualStartTime=-1.1),l.flags=a.flags&65011712,l.childLanes=a.childLanes,l.lanes=a.lanes,l.child=a.child,l.memoizedProps=a.memoizedProps,l.memoizedState=a.memoizedState,l.updateQueue=a.updateQueue,i=a.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext,_debugThenableState:i._debugThenableState},l.sibling=a.sibling,l.index=a.index,l.ref=a.ref,l.refCleanup=a.refCleanup,l.selfBaseDuration=a.selfBaseDuration,l.treeBaseDuration=a.treeBaseDuration,l._debugInfo=a._debugInfo,l._debugNeedsRemount=a._debugNeedsRemount,l.tag){case 0:case 15:l.type=_b(a.type);break;case 1:l.type=_b(a.type);break;case 11:l.type=Kz(a.type)}return l}function Lne(a,i){a.flags&=65011714;var l=a.alternate;return l===null?(a.childLanes=0,a.lanes=i,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null,a.selfBaseDuration=0,a.treeBaseDuration=0):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,i=l.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext,_debugThenableState:i._debugThenableState},a.selfBaseDuration=l.selfBaseDuration,a.treeBaseDuration=l.treeBaseDuration),a}function Qz(a,i,l,p,b,w){var S=0,k=a;if(typeof a==\"function\")Wz(a)&&(S=1),k=_b(k);else if(typeof a==\"string\")S=D(),S=xst(a,l,S)?26:a===\"html\"||a===\"head\"||a===\"body\"?27:5;else e:switch(a){case jj:return i=v(31,l,i,b),i.elementType=jj,i.lanes=w,i;case A2:return kb(l.children,b,w,i);case Kk:S=8,b|=si,b|=ll;break;case Hj:return a=l,p=b,typeof a.id!=\"string\"&&console.error(\\'Profiler must specify an \"id\" of type `string` as a prop. Received the type `%s` instead.\\',typeof a.id),i=v(12,a,i,p|Nt),i.elementType=Hj,i.lanes=w,i.stateNode={effectDuration:0,passiveEffectDuration:0},i;case zj:return i=v(13,l,i,b),i.elementType=zj,i.lanes=w,i;case Fj:return i=v(19,l,i,b),i.elementType=Fj,i.lanes=w,i;default:if(typeof a==\"object\"&&a!==null)switch(a.$$typeof){case Of:S=10;break e;case Lj:S=9;break e;case G8:S=11,k=Kz(k);break e;case Wk:S=14;break e;case pc:S=16,k=null;break e}k=\"\",(a===void 0||typeof a==\"object\"&&a!==null&&Object.keys(a).length===0)&&(k+=\" You likely forgot to export your component from the file it\\'s defined in, or you might have mixed up default and named imports.\"),a===null?l=\"null\":oa(a)?l=\"array\":a!==void 0&&a.$$typeof===Mf?(l=\"<\"+(J(a.type)||\"Unknown\")+\" />\",k=\" Did you accidentally export a JSX literal instead of a component?\"):l=typeof a,(S=p?Y(p):null)&&(k+=`\\n\\nCheck the render method of \\\\``+S+\"`.\"),S=29,l=Error(\"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: \"+(l+\".\"+k)),k=null}return i=v(S,l,i,b),i.elementType=a,i.type=k,i.lanes=w,i._debugOwner=p,i}function Y4(a,i,l){return i=Qz(a.type,a.key,a.props,a._owner,i,l),i._debugOwner=a._owner,i._debugStack=a._debugStack,i._debugTask=a._debugTask,i}function kb(a,i,l,p){return a=v(7,a,p,i),a.lanes=l,a}function Zz(a,i,l){return a=v(6,a,null,i),a.lanes=l,a}function zne(a){var i=v(18,null,null,mt);return i.stateNode=a,i}function Jz(a,i,l){return i=v(4,a.children!==null?a.children:[],a.key,i),i.lanes=l,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}function sc(a,i){if(typeof a==\"object\"&&a!==null){var l=gq.get(a);return l!==void 0?l:(i={value:a,source:i,stack:Ce(i)},gq.set(a,i),i)}return{value:a,source:i,stack:Ce(i)}}function gp(a,i){gh(),U2[D2++]=oA,U2[D2++]=u7,u7=a,oA=i}function Fne(a,i,l){gh(),Qc[Zc++]=_p,Qc[Zc++]=kp,Qc[Zc++]=Fb,Fb=a;var p=_p;a=kp;var b=32-Mi(p)-1;p&=~(1<<b),l+=1;var w=32-Mi(i)+b;if(30<w){var S=b-b%5;w=(p&(1<<S)-1).toString(32),p>>=S,b-=S,_p=1<<32-Mi(i)+b|l<<b|p,kp=w+a}else _p=1<<w|l<<b|p,kp=a}function Yz(a){gh(),a.return!==null&&(gp(a,1),Fne(a,1,0))}function Xz(a){for(;a===u7;)u7=U2[--D2],U2[D2]=null,oA=U2[--D2],U2[D2]=null;for(;a===Fb;)Fb=Qc[--Zc],Qc[Zc]=null,kp=Qc[--Zc],Qc[Zc]=null,_p=Qc[--Zc],Qc[Zc]=null}function jne(){return gh(),Fb!==null?{id:_p,overflow:kp}:null}function qne(a,i){gh(),Qc[Zc++]=_p,Qc[Zc++]=kp,Qc[Zc++]=Fb,_p=i.id,kp=i.overflow,Fb=a}function gh(){nr||console.error(\"Expected to be hydrating. This is a bug in React. Please file an issue.\")}function Bb(a,i){if(a.return===null){if(yc===null)yc={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i};else{if(yc.fiber!==a)throw Error(\"Saw multiple hydration diff roots in a pass. This is a bug in React.\");yc.distanceFromLeaf>i&&(yc.distanceFromLeaf=i)}return yc}var l=Bb(a.return,i+1).children;return 0<l.length&&l[l.length-1].fiber===a?(l=l[l.length-1],l.distanceFromLeaf>i&&(l.distanceFromLeaf=i),l):(i={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i},l.push(i),i)}function $ne(){nr&&console.error(\"We should not be hydrating here. This is a bug in React. Please file a bug.\")}function X4(a,i){zf||(a=Bb(a,0),a.serverProps=null,i!==null&&(i=Eie(i),a.serverTail.push(i)))}function xh(a){var i=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,l=\"\",p=yc;throw p!==null&&(yc=null,l=Hz(p)),g8(sc(Error(\"Hydration failed because the server rendered \"+(i?\"text\":\"HTML\")+` didn\\'t match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\\n\\n- A server/client branch \\\\`if (typeof window !== \\'undefined\\')\\\\`.\\n- Variable input such as \\\\`Date.now()\\\\` or \\\\`Math.random()\\\\` which changes each time it\\'s called.\\n- Date formatting in a user\\'s locale which doesn\\'t match the server.\\n- External changing data without sending a snapshot of it along with the HTML.\\n- Invalid HTML tag nesting.\\n\\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\\n\\nhttps://react.dev/link/hydration-mismatch`+l),a)),xq}function Gne(a){var i=a.stateNode,l=a.type,p=a.memoizedProps;switch(i[Ua]=a,i[Oi]=p,xj(l,p),l){case\"dialog\":lr(\"cancel\",i),lr(\"close\",i);break;case\"iframe\":case\"object\":case\"embed\":lr(\"load\",i);break;case\"video\":case\"audio\":for(l=0;l<RA.length;l++)lr(RA[l],i);break;case\"source\":lr(\"error\",i);break;case\"img\":case\"image\":case\"link\":lr(\"error\",i),lr(\"load\",i);break;case\"details\":lr(\"toggle\",i);break;case\"input\":Ar(\"input\",p),lr(\"invalid\",i),wn(i,p),En(i,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case\"option\":cf(i,p);break;case\"select\":Ar(\"select\",p),lr(\"invalid\",i),lf(i,p);break;case\"textarea\":Ar(\"textarea\",p),lr(\"invalid\",i),ff(i,p),pf(i,p.value,p.defaultValue,p.children)}l=p.children,typeof l!=\"string\"&&typeof l!=\"number\"&&typeof l!=\"bigint\"||i.textContent===\"\"+l||p.suppressHydrationWarning===!0||cie(i.textContent,l)?(p.popover!=null&&(lr(\"beforetoggle\",i),lr(\"toggle\",i)),p.onScroll!=null&&lr(\"scroll\",i),p.onScrollEnd!=null&&lr(\"scrollend\",i),p.onClick!=null&&(i.onclick=yp),i=!0):i=!1,i||xh(a,!0)}function Vne(a){for(Da=a.return;Da;)switch(Da.tag){case 5:case 31:case 13:Jc=!1;return;case 27:case 3:Jc=!0;return;default:Da=Da.return}}function s2(a){if(a!==Da)return!1;if(!nr)return Vne(a),nr=!0,!1;var i=a.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=a.type,l=!(l!==\"form\"&&l!==\"button\")||Sj(a.type,a.memoizedProps)),l=!l),l&&Pn){for(l=Pn;l;){var p=Bb(a,0),b=Eie(l);p.serverTail.push(b),l=b.type===\"Suspense\"?kj(l):dc(l.nextSibling)}xh(a)}if(Vne(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(\"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.\");Pn=kj(a)}else if(i===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(\"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.\");Pn=kj(a)}else i===27?(i=Pn,Bh(a.type)?(a=c$,c$=null,Pn=a):Pn=i):Pn=Da?dc(a.stateNode.nextSibling):null;return!0}function Ib(){Pn=Da=null,zf=nr=!1}function eF(){var a=Hh;return a!==null&&(zi===null?zi=a:zi.push.apply(zi,a),Hh=null),a}function g8(a){Hh===null?Hh=[a]:Hh.push(a)}function tF(){var a=yc;if(a!==null){yc=null;for(var i=Hz(a);0<a.children.length;)a=a.children[0];Te(a.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn\\'t match the client properties. This won\\'t be patched up. This can happen if a SSR-ed Client Component used:\\n\\n- A server/client branch \\\\`if (typeof window !== \\'undefined\\')\\\\`.\\n- Variable input such as \\\\`Date.now()\\\\` or \\\\`Math.random()\\\\` which changes each time it\\'s called.\\n- Date formatting in a user\\'s locale which doesn\\'t match the server.\\n- External changing data without sending a snapshot of it along with the HTML.\\n- Invalid HTML tag nesting.\\n\\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\\n\\n%s%s`,\"https://react.dev/link/hydration-mismatch\",i)})}}function ek(){H2=l7=null,L2=!1}function vh(a,i,l){H(vq,i._currentValue,a),i._currentValue=l,H(wq,i._currentRenderer,a),i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==Gse&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),i._currentRenderer=Gse}function xp(a,i){a._currentValue=vq.current;var l=wq.current;re(wq,i),a._currentRenderer=l,re(vq,i)}function rF(a,i,l){for(;a!==null;){var p=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,p!==null&&(p.childLanes|=i)):p!==null&&(p.childLanes&i)!==i&&(p.childLanes|=i),a===l)break;a=a.return}a!==l&&console.error(\"Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.\")}function nF(a,i,l,p){var b=a.child;for(b!==null&&(b.return=a);b!==null;){var w=b.dependencies;if(w!==null){var S=b.child;w=w.firstContext;e:for(;w!==null;){var k=w;w=b;for(var F=0;F<i.length;F++)if(k.context===i[F]){w.lanes|=l,k=w.alternate,k!==null&&(k.lanes|=l),rF(w.return,l,a),p||(S=null);break e}w=k.next}}else if(b.tag===18){if(S=b.return,S===null)throw Error(\"We just came from a parent so we must have had a parent. This is a bug in React.\");S.lanes|=l,w=S.alternate,w!==null&&(w.lanes|=l),rF(S,l,a),S=null}else S=b.child;if(S!==null)S.return=b;else for(S=b;S!==null;){if(S===a){S=null;break}if(b=S.sibling,b!==null){b.return=S.return,S=b;break}S=S.return}b=S}}function c2(a,i,l,p){a=null;for(var b=i,w=!1;b!==null;){if(!w){if((b.flags&524288)!==0)w=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var S=b.alternate;if(S===null)throw Error(\"Should have a current fiber. This is a bug in React.\");if(S=S.memoizedProps,S!==null){var k=b.type;Ui(b.pendingProps.value,S.value)||(a!==null?a.push(k):a=[k])}}else if(b===Qk.current){if(S=b.alternate,S===null)throw Error(\"Should have a current fiber. This is a bug in React.\");S.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(a!==null?a.push(DA):a=[DA])}b=b.return}a!==null&&nF(i,a,l,p),i.flags|=262144}function tk(a){for(a=a.firstContext;a!==null;){if(!Ui(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Pb(a){l7=a,H2=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Hn(a){return L2&&console.error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\"),Kne(l7,a)}function rk(a,i){return l7===null&&Pb(a),Kne(a,i)}function Kne(a,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},H2===null){if(a===null)throw Error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\");H2=i,a.dependencies={lanes:0,firstContext:i,_debugThenableState:null},a.flags|=524288}else H2=H2.next=i;return l}function oF(){return{controller:new Gct,data:new Map,refCount:0}}function Rb(a){a.controller.signal.aborted&&console.warn(\"A cache instance was retained after it was already freed. This likely indicates a bug in React.\"),a.refCount++}function x8(a){a.refCount--,0>a.refCount&&console.warn(\"A cache instance was released after it was already freed. This likely indicates a bug in React.\"),a.refCount===0&&Vct(Kct,function(){a.controller.abort()})}function vf(a,i,l){(a&127)!==0?0>Ff&&(Ff=Lo(),iA=f7(i),Eq=i,l!=null&&(Aq=W(l)),(hr&(ia|xc))!==ba&&(no=!0,Fh=aA),a=z8(),i=L8(),a!==z2||i!==sA?z2=-1.1:i!==null&&(Fh=aA),qb=a,sA=i):(a&4194048)!==0&&0>Yc&&(Yc=Lo(),cA=f7(i),Vse=i,l!=null&&(Kse=W(l)),0>Pp)&&(a=z8(),i=L8(),(a!==qh||i!==$b)&&(qh=-1.1),jh=a,$b=i)}function fit(a){if(0>Ff){Ff=Lo(),iA=a._debugTask!=null?a._debugTask:null,(hr&(ia|xc))!==ba&&(Fh=aA);var i=z8(),l=L8();i!==z2||l!==sA?z2=-1.1:l!==null&&(Fh=aA),qb=i,sA=l}0>Yc&&(Yc=Lo(),cA=a._debugTask!=null?a._debugTask:null,0>Pp)&&(a=z8(),i=L8(),(a!==qh||i!==$b)&&(qh=-1.1),jh=a,$b=i)}function vp(){var a=jb;return jb=0,a}function nk(a){var i=jb;return jb=a,i}function v8(a){var i=jb;return jb+=a,i}function ok(){lt=ct=-1.1}function cc(){var a=ct;return ct=-1.1,a}function uc(a){0<=a&&(ct=a)}function wf(){var a=Vn;return Vn=-0,a}function Ef(a){0<=a&&(Vn=a)}function Af(){var a=Ln;return Ln=null,a}function Sf(){var a=no;return no=!1,a}function aF(a){Di=Lo(),0>a.actualStartTime&&(a.actualStartTime=Di)}function iF(a){if(0<=Di){var i=Lo()-Di;a.actualDuration+=i,a.selfBaseDuration=i,Di=-1}}function Wne(a){if(0<=Di){var i=Lo()-Di;a.actualDuration+=i,Di=-1}}function Cf(){if(0<=Di){var a=Lo(),i=a-Di;Di=-1,jb+=i,Vn+=i,lt=a}}function Qne(a){Ln===null&&(Ln=[]),Ln.push(a),Ip===null&&(Ip=[]),Ip.push(a)}function Tf(){Di=Lo(),0>ct&&(ct=Di)}function w8(a){for(var i=a.child;i;)a.actualDuration+=i.actualDuration,i=i.sibling}function dit(a,i){if(lA===null){var l=lA=[];Cq=0,Gb=hj(),F2={status:\"pending\",value:void 0,then:function(p){l.push(p)}}}return Cq++,i.then(Zne,Zne),i}function Zne(){if(--Cq===0&&(-1<Yc||(Pp=-1.1),lA!==null)){F2!==null&&(F2.status=\"fulfilled\");var a=lA;lA=null,Gb=0,F2=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function pit(a,i){var l=[],p={status:\"pending\",value:null,reason:null,then:function(b){l.push(b)}};return a.then(function(){p.status=\"fulfilled\",p.value=i;for(var b=0;b<l.length;b++)(0,l[b])(i)},function(b){for(p.status=\"rejected\",p.reason=b,b=0;b<l.length;b++)(0,l[b])(void 0)}),p}function sF(){var a=Vb.current;return a!==null?a:mn.pooledCache}function ak(a,i){i===null?H(Vb,Vb.current,a):H(Vb,i.pool,a)}function Jne(){var a=sF();return a===null?null:{parent:Ho._currentValue,pool:a}}function Yne(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Xne(a){return a=a.status,a===\"fulfilled\"||a===\"rejected\"}function eoe(a,i,l){ye.actQueue!==null&&(ye.didUsePromise=!0);var p=a.thenables;if(l=p[l],l===void 0?p.push(i):l!==i&&(a.didWarnAboutUncachedPromise||(a.didWarnAboutUncachedPromise=!0,console.error(\"A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.\")),i.then(yp,yp),i=l),i._debugInfo===void 0){a=performance.now(),p=i.displayName;var b={name:typeof p==\"string\"?p:\"Promise\",start:a,end:a,value:i};i._debugInfo=[{awaited:b}],i.status!==\"fulfilled\"&&i.status!==\"rejected\"&&(a=function(){b.end=performance.now()},i.then(a,a))}switch(i.status){case\"fulfilled\":return i.value;case\"rejected\":throw a=i.reason,roe(a),a;default:if(typeof i.status==\"string\")i.then(yp,yp);else{if(a=mn,a!==null&&100<a.shellSuspendCounter)throw Error(\"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `\\'use client\\'` to a module that was originally written for the server.\");a=i,a.status=\"pending\",a.then(function(w){if(i.status===\"pending\"){var S=i;S.status=\"fulfilled\",S.value=w}},function(w){if(i.status===\"pending\"){var S=i;S.status=\"rejected\",S.reason=w}})}switch(i.status){case\"fulfilled\":return i.value;case\"rejected\":throw a=i.reason,roe(a),a}throw Wb=i,bA=!0,j2}}function wh(a){try{return Jct(a)}catch(i){throw i!==null&&typeof i==\"object\"&&typeof i.then==\"function\"?(Wb=i,bA=!0,j2):i}}function toe(){if(Wb===null)throw Error(\"Expected a suspended thenable. This is a bug in React. Please file an issue.\");var a=Wb;return Wb=null,bA=!1,a}function roe(a){if(a===j2||a===x7)throw Error(\"Hooks are not supported inside an async component. This error is often caused by accidentally adding `\\'use client\\'` to a module that was originally written for the server.\")}function Ma(a){var i=Ut;return a!=null&&(Ut=i===null?a:i.concat(a)),i}function cF(){var a=Ut;if(a!=null){for(var i=a.length-1;0<=i;i--)if(a[i].name!=null){var l=a[i].debugTask;if(l!=null)return l}}return null}function ik(a,i,l){for(var p=Object.keys(a.props),b=0;b<p.length;b++){var w=p[b];if(w!==\"children\"&&w!==\"key\"){i===null&&(i=Y4(a,l.mode,0),i._debugInfo=Ut,i.return=l),Te(i,function(S){console.error(\"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.\",S)},w);break}}}function sk(a){var i=gA;return gA+=1,q2===null&&(q2=Yne()),eoe(q2,a,i)}function E8(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function noe(a,i){throw i.$$typeof===Ist?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:\\n- Multiple copies of the \"react\" package is used.\\n- A library pre-bundled an old copy of \"react\" or \"react/jsx-runtime\".\\n- A compiler tries to \"inline\" JSX instead of using the runtime.`):(a=Object.prototype.toString.call(i),Error(\"Objects are not valid as a React child (found: \"+(a===\"[object Object]\"?\"object with keys {\"+Object.keys(i).join(\", \")+\"}\":a)+\"). If you meant to render a collection of children, use an array instead.\"))}function ck(a,i){var l=cF();l!==null?l.run(noe.bind(null,a,i)):noe(a,i)}function ooe(a,i){var l=W(a)||\"Component\";pce[l]||(pce[l]=!0,i=i.displayName||i.name||\"Component\",a.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\\n  root.render(%s)`,i,i,i):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\\n  <%s>{%s}</%s>`,i,i,l,i,l))}function uk(a,i){var l=cF();l!==null?l.run(ooe.bind(null,a,i)):ooe(a,i)}function aoe(a,i){var l=W(a)||\"Component\";mce[l]||(mce[l]=!0,i=String(i),a.tag===3?console.error(`Symbols are not valid as a React child.\\n  root.render(%s)`,i):console.error(`Symbols are not valid as a React child.\\n  <%s>%s</%s>`,l,i,l))}function lk(a,i){var l=cF();l!==null?l.run(aoe.bind(null,a,i)):aoe(a,i)}function ioe(a){function i(ee,oe){if(a){var se=ee.deletions;se===null?(ee.deletions=[oe],ee.flags|=16):se.push(oe)}}function l(ee,oe){if(!a)return null;for(;oe!==null;)i(ee,oe),oe=oe.sibling;return null}function p(ee){for(var oe=new Map;ee!==null;)ee.key!==null?oe.set(ee.key,ee):oe.set(ee.index,ee),ee=ee.sibling;return oe}function b(ee,oe){return ee=bp(ee,oe),ee.index=0,ee.sibling=null,ee}function w(ee,oe,se){return ee.index=se,a?(se=ee.alternate,se!==null?(se=se.index,se<oe?(ee.flags|=67108866,oe):se):(ee.flags|=67108866,oe)):(ee.flags|=1048576,oe)}function S(ee){return a&&ee.alternate===null&&(ee.flags|=67108866),ee}function k(ee,oe,se,xe){return oe===null||oe.tag!==6?(oe=Zz(se,ee.mode,xe),oe.return=ee,oe._debugOwner=ee,oe._debugTask=ee._debugTask,oe._debugInfo=Ut,oe):(oe=b(oe,se),oe.return=ee,oe._debugInfo=Ut,oe)}function F(ee,oe,se,xe){var Le=se.type;return Le===A2?(oe=ce(ee,oe,se.props.children,xe,se.key),ik(se,oe,ee),oe):oe!==null&&(oe.elementType===Le||Une(oe,se)||typeof Le==\"object\"&&Le!==null&&Le.$$typeof===pc&&wh(Le)===oe.type)?(oe=b(oe,se.props),E8(oe,se),oe.return=ee,oe._debugOwner=se._owner,oe._debugInfo=Ut,oe):(oe=Y4(se,ee.mode,xe),E8(oe,se),oe.return=ee,oe._debugInfo=Ut,oe)}function $(ee,oe,se,xe){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==se.containerInfo||oe.stateNode.implementation!==se.implementation?(oe=Jz(se,ee.mode,xe),oe.return=ee,oe._debugInfo=Ut,oe):(oe=b(oe,se.children||[]),oe.return=ee,oe._debugInfo=Ut,oe)}function ce(ee,oe,se,xe,Le){return oe===null||oe.tag!==7?(oe=kb(se,ee.mode,xe,Le),oe.return=ee,oe._debugOwner=ee,oe._debugTask=ee._debugTask,oe._debugInfo=Ut,oe):(oe=b(oe,se),oe.return=ee,oe._debugInfo=Ut,oe)}function ue(ee,oe,se){if(typeof oe==\"string\"&&oe!==\"\"||typeof oe==\"number\"||typeof oe==\"bigint\")return oe=Zz(\"\"+oe,ee.mode,se),oe.return=ee,oe._debugOwner=ee,oe._debugTask=ee._debugTask,oe._debugInfo=Ut,oe;if(typeof oe==\"object\"&&oe!==null){switch(oe.$$typeof){case Mf:return se=Y4(oe,ee.mode,se),E8(se,oe),se.return=ee,ee=Ma(oe._debugInfo),se._debugInfo=Ut,Ut=ee,se;case E2:return oe=Jz(oe,ee.mode,se),oe.return=ee,oe._debugInfo=Ut,oe;case pc:var xe=Ma(oe._debugInfo);return oe=wh(oe),ee=ue(ee,oe,se),Ut=xe,ee}if(oa(oe)||G(oe))return se=kb(oe,ee.mode,se,null),se.return=ee,se._debugOwner=ee,se._debugTask=ee._debugTask,ee=Ma(oe._debugInfo),se._debugInfo=Ut,Ut=ee,se;if(typeof oe.then==\"function\")return xe=Ma(oe._debugInfo),ee=ue(ee,sk(oe),se),Ut=xe,ee;if(oe.$$typeof===Of)return ue(ee,rk(ee,oe),se);ck(ee,oe)}return typeof oe==\"function\"&&uk(ee,oe),typeof oe==\"symbol\"&&lk(ee,oe),null}function te(ee,oe,se,xe){var Le=oe!==null?oe.key:null;if(typeof se==\"string\"&&se!==\"\"||typeof se==\"number\"||typeof se==\"bigint\")return Le!==null?null:k(ee,oe,\"\"+se,xe);if(typeof se==\"object\"&&se!==null){switch(se.$$typeof){case Mf:return se.key===Le?(Le=Ma(se._debugInfo),ee=F(ee,oe,se,xe),Ut=Le,ee):null;case E2:return se.key===Le?$(ee,oe,se,xe):null;case pc:return Le=Ma(se._debugInfo),se=wh(se),ee=te(ee,oe,se,xe),Ut=Le,ee}if(oa(se)||G(se))return Le!==null?null:(Le=Ma(se._debugInfo),ee=ce(ee,oe,se,xe,null),Ut=Le,ee);if(typeof se.then==\"function\")return Le=Ma(se._debugInfo),ee=te(ee,oe,sk(se),xe),Ut=Le,ee;if(se.$$typeof===Of)return te(ee,oe,rk(ee,se),xe);ck(ee,se)}return typeof se==\"function\"&&uk(ee,se),typeof se==\"symbol\"&&lk(ee,se),null}function pe(ee,oe,se,xe,Le){if(typeof xe==\"string\"&&xe!==\"\"||typeof xe==\"number\"||typeof xe==\"bigint\")return ee=ee.get(se)||null,k(oe,ee,\"\"+xe,Le);if(typeof xe==\"object\"&&xe!==null){switch(xe.$$typeof){case Mf:return se=ee.get(xe.key===null?se:xe.key)||null,ee=Ma(xe._debugInfo),oe=F(oe,se,xe,Le),Ut=ee,oe;case E2:return ee=ee.get(xe.key===null?se:xe.key)||null,$(oe,ee,xe,Le);case pc:var xt=Ma(xe._debugInfo);return xe=wh(xe),oe=pe(ee,oe,se,xe,Le),Ut=xt,oe}if(oa(xe)||G(xe))return se=ee.get(se)||null,ee=Ma(xe._debugInfo),oe=ce(oe,se,xe,Le,null),Ut=ee,oe;if(typeof xe.then==\"function\")return xt=Ma(xe._debugInfo),oe=pe(ee,oe,se,sk(xe),Le),Ut=xt,oe;if(xe.$$typeof===Of)return pe(ee,oe,se,rk(oe,xe),Le);ck(oe,xe)}return typeof xe==\"function\"&&uk(oe,xe),typeof xe==\"symbol\"&&lk(oe,xe),null}function Oe(ee,oe,se,xe){if(typeof se!=\"object\"||se===null)return xe;switch(se.$$typeof){case Mf:case E2:h(ee,oe,se);var Le=se.key;if(typeof Le!=\"string\")break;if(xe===null){xe=new Set,xe.add(Le);break}if(!xe.has(Le)){xe.add(Le);break}Te(oe,function(){console.error(\"Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \\\\u2014 the behavior is unsupported and could change in a future version.\",Le)});break;case pc:se=wh(se),Oe(ee,oe,se,xe)}return xe}function qe(ee,oe,se,xe){for(var Le=null,xt=null,st=null,et=oe,Pt=oe=0,Rn=null;et!==null&&Pt<se.length;Pt++){et.index>Pt?(Rn=et,et=null):Rn=et.sibling;var Co=te(ee,et,se[Pt],xe);if(Co===null){et===null&&(et=Rn);break}Le=Oe(ee,Co,se[Pt],Le),a&&et&&Co.alternate===null&&i(ee,et),oe=w(Co,oe,Pt),st===null?xt=Co:st.sibling=Co,st=Co,et=Rn}if(Pt===se.length)return l(ee,et),nr&&gp(ee,Pt),xt;if(et===null){for(;Pt<se.length;Pt++)et=ue(ee,se[Pt],xe),et!==null&&(Le=Oe(ee,et,se[Pt],Le),oe=w(et,oe,Pt),st===null?xt=et:st.sibling=et,st=et);return nr&&gp(ee,Pt),xt}for(et=p(et);Pt<se.length;Pt++)Rn=pe(et,ee,Pt,se[Pt],xe),Rn!==null&&(Le=Oe(ee,Rn,se[Pt],Le),a&&Rn.alternate!==null&&et.delete(Rn.key===null?Pt:Rn.key),oe=w(Rn,oe,Pt),st===null?xt=Rn:st.sibling=Rn,st=Rn);return a&&et.forEach(function(zp){return i(ee,zp)}),nr&&gp(ee,Pt),xt}function Sn(ee,oe,se,xe){if(se==null)throw Error(\"An iterable object provided no iterator.\");for(var Le=null,xt=null,st=oe,et=oe=0,Pt=null,Rn=null,Co=se.next();st!==null&&!Co.done;et++,Co=se.next()){st.index>et?(Pt=st,st=null):Pt=st.sibling;var zp=te(ee,st,Co.value,xe);if(zp===null){st===null&&(st=Pt);break}Rn=Oe(ee,zp,Co.value,Rn),a&&st&&zp.alternate===null&&i(ee,st),oe=w(zp,oe,et),xt===null?Le=zp:xt.sibling=zp,xt=zp,st=Pt}if(Co.done)return l(ee,st),nr&&gp(ee,et),Le;if(st===null){for(;!Co.done;et++,Co=se.next())st=ue(ee,Co.value,xe),st!==null&&(Rn=Oe(ee,st,Co.value,Rn),oe=w(st,oe,et),xt===null?Le=st:xt.sibling=st,xt=st);return nr&&gp(ee,et),Le}for(st=p(st);!Co.done;et++,Co=se.next())Pt=pe(st,ee,et,Co.value,xe),Pt!==null&&(Rn=Oe(ee,Pt,Co.value,Rn),a&&Pt.alternate!==null&&st.delete(Pt.key===null?et:Pt.key),oe=w(Pt,oe,et),xt===null?Le=Pt:xt.sibling=Pt,xt=Pt);return a&&st.forEach(function(wut){return i(ee,wut)}),nr&&gp(ee,et),Le}function fr(ee,oe,se,xe){if(typeof se==\"object\"&&se!==null&&se.type===A2&&se.key===null&&(ik(se,null,ee),se=se.props.children),typeof se==\"object\"&&se!==null){switch(se.$$typeof){case Mf:var Le=Ma(se._debugInfo);e:{for(var xt=se.key;oe!==null;){if(oe.key===xt){if(xt=se.type,xt===A2){if(oe.tag===7){l(ee,oe.sibling),xe=b(oe,se.props.children),xe.return=ee,xe._debugOwner=se._owner,xe._debugInfo=Ut,ik(se,xe,ee),ee=xe;break e}}else if(oe.elementType===xt||Une(oe,se)||typeof xt==\"object\"&&xt!==null&&xt.$$typeof===pc&&wh(xt)===oe.type){l(ee,oe.sibling),xe=b(oe,se.props),E8(xe,se),xe.return=ee,xe._debugOwner=se._owner,xe._debugInfo=Ut,ee=xe;break e}l(ee,oe);break}else i(ee,oe);oe=oe.sibling}se.type===A2?(xe=kb(se.props.children,ee.mode,xe,se.key),xe.return=ee,xe._debugOwner=ee,xe._debugTask=ee._debugTask,xe._debugInfo=Ut,ik(se,xe,ee),ee=xe):(xe=Y4(se,ee.mode,xe),E8(xe,se),xe.return=ee,xe._debugInfo=Ut,ee=xe)}return ee=S(ee),Ut=Le,ee;case E2:e:{for(Le=se,se=Le.key;oe!==null;){if(oe.key===se)if(oe.tag===4&&oe.stateNode.containerInfo===Le.containerInfo&&oe.stateNode.implementation===Le.implementation){l(ee,oe.sibling),xe=b(oe,Le.children||[]),xe.return=ee,ee=xe;break e}else{l(ee,oe);break}else i(ee,oe);oe=oe.sibling}xe=Jz(Le,ee.mode,xe),xe.return=ee,ee=xe}return S(ee);case pc:return Le=Ma(se._debugInfo),se=wh(se),ee=fr(ee,oe,se,xe),Ut=Le,ee}if(oa(se))return Le=Ma(se._debugInfo),ee=qe(ee,oe,se,xe),Ut=Le,ee;if(G(se)){if(Le=Ma(se._debugInfo),xt=G(se),typeof xt!=\"function\")throw Error(\"An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.\");var st=xt.call(se);return st===se?(ee.tag!==0||Object.prototype.toString.call(ee.type)!==\"[object GeneratorFunction]\"||Object.prototype.toString.call(st)!==\"[object Generator]\")&&(fce||console.error(\"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items.\"),fce=!0):se.entries!==xt||Bq||(console.error(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),Bq=!0),ee=Sn(ee,oe,st,xe),Ut=Le,ee}if(typeof se.then==\"function\")return Le=Ma(se._debugInfo),ee=fr(ee,oe,sk(se),xe),Ut=Le,ee;if(se.$$typeof===Of)return fr(ee,oe,rk(ee,se),xe);ck(ee,se)}return typeof se==\"string\"&&se!==\"\"||typeof se==\"number\"||typeof se==\"bigint\"?(Le=\"\"+se,oe!==null&&oe.tag===6?(l(ee,oe.sibling),xe=b(oe,Le),xe.return=ee,ee=xe):(l(ee,oe),xe=Zz(Le,ee.mode,xe),xe.return=ee,xe._debugOwner=ee,xe._debugTask=ee._debugTask,xe._debugInfo=Ut,ee=xe),S(ee)):(typeof se==\"function\"&&uk(ee,se),typeof se==\"symbol\"&&lk(ee,se),l(ee,oe))}return function(ee,oe,se,xe){var Le=Ut;Ut=null;try{gA=0;var xt=fr(ee,oe,se,xe);return q2=null,xt}catch(Rn){if(Rn===j2||Rn===x7)throw Rn;var st=v(29,Rn,null,ee.mode);st.lanes=xe,st.return=ee;var et=st._debugInfo=Ut;if(st._debugOwner=ee._debugOwner,st._debugTask=ee._debugTask,et!=null){for(var Pt=et.length-1;0<=Pt;Pt--)if(typeof et[Pt].stack==\"string\"){st._debugOwner=et[Pt],st._debugTask=et[Pt].debugTask;break}}return st}finally{Ut=Le}}}function soe(a,i){var l=oa(a);return a=!l&&typeof G(a)==\"function\",l||a?(l=l?\"array\":\"iterable\",console.error(\"A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>\",l,i,l),!1):!0}function uF(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lF(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Eh(a){return{lane:a,tag:yce,payload:null,callback:null,next:null}}function Ah(a,i,l){var p=a.updateQueue;if(p===null)return null;if(p=p.shared,Pq===p&&!xce){var b=W(a);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\\n\\nPlease update the following component: %s`,b),xce=!0}return(hr&ia)!==ba?(b=p.pending,b===null?i.next=i:(i.next=b.next,b.next=i),p.pending=i,i=J4(a),Nne(a,null,l),i):(Z4(a,p,i,l),J4(a))}function A8(a,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var p=i.lanes;p&=a.pendingLanes,l|=p,i.lanes=l,ys(a,l)}}function fk(a,i){var l=a.updateQueue,p=a.alternate;if(p!==null&&(p=p.updateQueue,l===p)){var b=null,w=null;if(l=l.firstBaseUpdate,l!==null){do{var S={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};w===null?b=w=S:w=w.next=S,l=l.next}while(l!==null);w===null?b=w=i:w=w.next=i}else b=w=i;l={baseState:p.baseState,firstBaseUpdate:b,lastBaseUpdate:w,shared:p.shared,callbacks:p.callbacks},a.updateQueue=l;return}a=l.lastBaseUpdate,a===null?l.firstBaseUpdate=i:a.next=i,l.lastBaseUpdate=i}function S8(){if(Rq){var a=F2;if(a!==null)throw a}}function C8(a,i,l,p){Rq=!1;var b=a.updateQueue;$h=!1,Pq=b.shared;var w=b.firstBaseUpdate,S=b.lastBaseUpdate,k=b.shared.pending;if(k!==null){b.shared.pending=null;var F=k,$=F.next;F.next=null,S===null?w=$:S.next=$,S=F;var ce=a.alternate;ce!==null&&(ce=ce.updateQueue,k=ce.lastBaseUpdate,k!==S&&(k===null?ce.firstBaseUpdate=$:k.next=$,ce.lastBaseUpdate=F))}if(w!==null){var ue=b.baseState;S=0,ce=$=F=null,k=w;do{var te=k.lane&-536870913,pe=te!==k.lane;if(pe?(Dt&te)===te:(p&te)===te){te!==0&&te===Gb&&(Rq=!0),ce!==null&&(ce=ce.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{te=a;var Oe=k,qe=i,Sn=l;switch(Oe.tag){case bce:if(Oe=Oe.payload,typeof Oe==\"function\"){L2=!0;var fr=Oe.call(Sn,ue,qe);if(te.mode&si){dt(!0);try{Oe.call(Sn,ue,qe)}finally{dt(!1)}}L2=!1,ue=fr;break e}ue=Oe;break e;case Iq:te.flags=te.flags&-65537|128;case yce:if(fr=Oe.payload,typeof fr==\"function\"){if(L2=!0,Oe=fr.call(Sn,ue,qe),te.mode&si){dt(!0);try{fr.call(Sn,ue,qe)}finally{dt(!1)}}L2=!1}else Oe=fr;if(Oe==null)break e;ue=Wt({},ue,Oe);break e;case gce:$h=!0}}te=k.callback,te!==null&&(a.flags|=64,pe&&(a.flags|=8192),pe=b.callbacks,pe===null?b.callbacks=[te]:pe.push(te))}else pe={lane:te,tag:k.tag,payload:k.payload,callback:k.callback,next:null},ce===null?($=ce=pe,F=ue):ce=ce.next=pe,S|=te;if(k=k.next,k===null){if(k=b.shared.pending,k===null)break;pe=k,k=pe.next,pe.next=null,b.lastBaseUpdate=pe,b.shared.pending=null}}while(!0);ce===null&&(F=ue),b.baseState=F,b.firstBaseUpdate=$,b.lastBaseUpdate=ce,w===null&&(b.shared.lanes=0),Kh|=S,a.lanes=S,a.memoizedState=ue}Pq=null}function coe(a,i){if(typeof a!=\"function\")throw Error(\"Invalid argument passed as callback. Expected a function. Instead received: \"+a);a.call(i)}function mit(a,i){var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)coe(l[a],i)}function uoe(a,i){var l=a.callbacks;if(l!==null)for(a.callbacks=null,a=0;a<l.length;a++)coe(l[a],i)}function loe(a,i){var l=$f;H(w7,l,a),H($2,i,a),$f=l|i.baseLanes}function fF(a){H(w7,$f,a),H($2,$2.current,a)}function dF(a){$f=w7.current,re($2,a),re(w7,a)}function Sh(a){var i=a.alternate;H(So,So.current&G2,a),H(bc,a,a),Xc===null&&(i===null||$2.current!==null||i.memoizedState!==null)&&(Xc=a)}function pF(a){H(So,So.current,a),H(bc,a,a),Xc===null&&(Xc=a)}function foe(a){a.tag===22?(H(So,So.current,a),H(bc,a,a),Xc===null&&(Xc=a)):Ch(a)}function Ch(a){H(So,So.current,a),H(bc,bc.current,a)}function lc(a){re(bc,a),Xc===a&&(Xc=null),re(So,a)}function dk(a){for(var i=a;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Tj(l)||_j(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder===\"forwards\"||i.memoizedProps.revealOrder===\"backwards\"||i.memoizedProps.revealOrder===\"unstable_legacy-backwards\"||i.memoizedProps.revealOrder===\"together\")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function Kt(){var a=he;tu===null?tu=[a]:tu.push(a)}function Ie(){var a=he;if(tu!==null&&(Np++,tu[Np]!==a)){var i=W(gt);if(!vce.has(i)&&(vce.add(i),tu!==null)){for(var l=\"\",p=0;p<=Np;p++){var b=tu[p],w=p===Np?a:b;for(b=p+1+\". \"+b;30>b.length;)b+=\" \";b+=w+`\\n`,l+=b}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\\n\\n   Previous render            Next render\\n   ------------------------------------------------------\\n%s   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n`,i,l)}}}function u2(a){a==null||oa(a)||console.error(\"%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.\",he,typeof a)}function pk(){var a=W(gt);Ece.has(a)||(Ece.add(a),console.error(\"ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.\",a))}function mo(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function mF(a,i){if(wA)return!1;if(i===null)return console.error(\"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.\",he),!1;a.length!==i.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\\n\\nPrevious: %s\\nIncoming: %s`,he,\"[\"+i.join(\", \")+\"]\",\"[\"+a.join(\", \")+\"]\");for(var l=0;l<i.length&&l<a.length;l++)if(!Ui(a[l],i[l]))return!1;return!0}function hF(a,i,l,p,b,w){Mp=w,gt=i,tu=a!==null?a._debugHookTypes:null,Np=-1,wA=a!==null&&a.type!==i.type,(Object.prototype.toString.call(l)===\"[object AsyncFunction]\"||Object.prototype.toString.call(l)===\"[object AsyncGeneratorFunction]\")&&(w=W(gt),Mq.has(w)||(Mq.add(w),console.error(\"%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `\\'use client\\'` to a module that was originally written for the server.\",w===null?\"An unknown Component\":\"<\"+w+\">\"))),i.memoizedState=null,i.updateQueue=null,i.lanes=0,ye.H=a!==null&&a.memoizedState!==null?Nq:tu!==null?Ace:Oq,Zb=w=(i.mode&si)!==mt;var S=Tq(l,p,b);if(Zb=!1,K2&&(S=yF(i,l,p,b)),w){dt(!0);try{S=yF(i,l,p,b)}finally{dt(!1)}}return doe(a,i),S}function doe(a,i){i._debugHookTypes=tu,i.dependencies===null?Op!==null&&(i.dependencies={lanes:0,firstContext:null,_debugThenableState:Op}):i.dependencies._debugThenableState=Op,ye.H=EA;var l=pn!==null&&pn.next!==null;if(Mp=0,tu=he=zo=pn=gt=null,Np=-1,a!==null&&(a.flags&65011712)!==(i.flags&65011712)&&console.error(\"Internal React error: Expected static flag was missing. Please notify the React team.\"),A7=!1,vA=0,Op=null,l)throw Error(\"Rendered fewer hooks than expected. This may be caused by an accidental early return statement.\");a===null||Fo||(a=a.dependencies,a!==null&&tk(a)&&(Fo=!0)),bA?(bA=!1,a=!0):a=!1,a&&(i=W(i)||\"Unknown\",wce.has(i)||Mq.has(i)||(wce.add(i),console.error(\"`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.\")))}function yF(a,i,l,p){gt=a;var b=0;do{if(K2&&(Op=null),vA=0,K2=!1,b>=Xct)throw Error(\"Too many re-renders. React limits the number of renders to prevent an infinite loop.\");if(b+=1,wA=!1,zo=pn=null,a.updateQueue!=null){var w=a.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}Np=-1,ye.H=Sce,w=Tq(i,l,p)}while(K2);return w}function hit(){var a=ye.H,i=a.useState()[0];return i=typeof i.then==\"function\"?T8(i):i,a=a.useState()[0],(pn!==null?pn.memoizedState:null)!==a&&(gt.flags|=1024),i}function bF(){var a=S7!==0;return S7=0,a}function gF(a,i,l){i.updateQueue=a.updateQueue,i.flags=(i.mode&ll)!==mt?i.flags&-402655237:i.flags&-2053,a.lanes&=~l}function xF(a){if(A7){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}A7=!1}Mp=0,tu=zo=pn=gt=null,Np=-1,he=null,K2=!1,vA=S7=0,Op=null}function Ri(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zo===null?gt.memoizedState=zo=a:zo=zo.next=a,zo}function Gr(){if(pn===null){var a=gt.alternate;a=a!==null?a.memoizedState:null}else a=pn.next;var i=zo===null?gt.memoizedState:zo.next;if(i!==null)zo=i,pn=a;else{if(a===null)throw gt.alternate===null?Error(\"Update hook called on initial render. This is likely a bug in React. Please file an issue.\"):Error(\"Rendered more hooks than during the previous render.\");pn=a,a={memoizedState:pn.memoizedState,baseState:pn.baseState,baseQueue:pn.baseQueue,queue:pn.queue,next:null},zo===null?gt.memoizedState=zo=a:zo=zo.next=a}return zo}function mk(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function T8(a){var i=vA;return vA+=1,Op===null&&(Op=Yne()),a=eoe(Op,a,i),i=gt,(zo===null?i.memoizedState:zo.next)===null&&(i=i.alternate,ye.H=i!==null&&i.memoizedState!==null?Nq:Oq),a}function Th(a){if(a!==null&&typeof a==\"object\"){if(typeof a.then==\"function\")return T8(a);if(a.$$typeof===Of)return Hn(a)}throw Error(\"An unsupported type was passed to use(): \"+String(a))}function Mb(a){var i=null,l=gt.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var p=gt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(i={data:p.data.map(function(b){return b.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=mk(),gt.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0||wA)for(l=i.data[i.index]=Array(a),p=0;p<a;p++)l[p]=Pst;else l.length!==a&&console.error(\"Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.\",l.length,a);return i.index++,l}function il(a,i){return typeof i==\"function\"?i(a):i}function vF(a,i,l){var p=Ri();if(l!==void 0){var b=l(i);if(Zb){dt(!0);try{l(i)}finally{dt(!1)}}}else b=i;return p.memoizedState=p.baseState=b,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},p.queue=a,a=a.dispatch=vit.bind(null,gt,a),[p.memoizedState,a]}function l2(a){var i=Gr();return wF(i,pn,a)}function wF(a,i,l){var p=a.queue;if(p===null)throw Error(\"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)\");p.lastRenderedReducer=l;var b=a.baseQueue,w=p.pending;if(w!==null){if(b!==null){var S=b.next;b.next=w.next,w.next=S}i.baseQueue!==b&&console.error(\"Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.\"),i.baseQueue=b=w,p.pending=null}if(w=a.baseState,b===null)a.memoizedState=w;else{i=b.next;var k=S=null,F=null,$=i,ce=!1;do{var ue=$.lane&-536870913;if(ue!==$.lane?(Dt&ue)===ue:(Mp&ue)===ue){var te=$.revertLane;if(te===0)F!==null&&(F=F.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),ue===Gb&&(ce=!0);else if((Mp&te)===te){$=$.next,te===Gb&&(ce=!0);continue}else ue={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},F===null?(k=F=ue,S=w):F=F.next=ue,gt.lanes|=te,Kh|=te;ue=$.action,Zb&&l(w,ue),w=$.hasEagerState?$.eagerState:l(w,ue)}else te={lane:ue,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},F===null?(k=F=te,S=w):F=F.next=te,gt.lanes|=ue,Kh|=ue;$=$.next}while($!==null&&$!==i);if(F===null?S=w:F.next=k,!Ui(w,a.memoizedState)&&(Fo=!0,ce&&(l=F2,l!==null)))throw l;a.memoizedState=w,a.baseState=S,a.baseQueue=F,p.lastRenderedState=w}return b===null&&(p.lanes=0),[a.memoizedState,p.dispatch]}function _8(a){var i=Gr(),l=i.queue;if(l===null)throw Error(\"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)\");l.lastRenderedReducer=a;var p=l.dispatch,b=l.pending,w=i.memoizedState;if(b!==null){l.pending=null;var S=b=b.next;do w=a(w,S.action),S=S.next;while(S!==b);Ui(w,i.memoizedState)||(Fo=!0),i.memoizedState=w,i.baseQueue===null&&(i.baseState=w),l.lastRenderedState=w}return[w,p]}function EF(a,i,l){var p=gt,b=Ri();if(nr){if(l===void 0)throw Error(\"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.\");var w=l();V2||w===l()||(console.error(\"The result of getServerSnapshot should be cached to avoid an infinite loop\"),V2=!0)}else{if(w=i(),V2||(l=i(),Ui(w,l)||(console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"),V2=!0)),mn===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");(Dt&127)!==0||poe(p,i,w)}return b.memoizedState=w,l={value:w,getSnapshot:i},b.queue=l,gk(hoe.bind(null,p,l,a),[a]),p.flags|=2048,d2(eu|Li,{destroy:void 0},moe.bind(null,p,l,w,i),null),w}function hk(a,i,l){var p=gt,b=Gr(),w=nr;if(w){if(l===void 0)throw Error(\"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.\");l=l()}else if(l=i(),!V2){var S=i();Ui(l,S)||(console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"),V2=!0)}(S=!Ui((pn||b).memoizedState,l))&&(b.memoizedState=l,Fo=!0),b=b.queue;var k=hoe.bind(null,p,b,a);if(vs(2048,Li,k,[a]),b.getSnapshot!==i||S||zo!==null&&zo.memoizedState.tag&eu){if(p.flags|=2048,d2(eu|Li,{destroy:void 0},moe.bind(null,p,b,l,i),null),mn===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");w||(Mp&127)!==0||poe(p,i,l)}return l}function poe(a,i,l){a.flags|=16384,a={getSnapshot:i,value:l},i=gt.updateQueue,i===null?(i=mk(),gt.updateQueue=i,i.stores=[a]):(l=i.stores,l===null?i.stores=[a]:l.push(a))}function moe(a,i,l,p){i.value=l,i.getSnapshot=p,yoe(i)&&boe(a)}function hoe(a,i,l){return l(function(){yoe(i)&&(vf(2,\"updateSyncExternalStore()\",a),boe(a))})}function yoe(a){var i=a.getSnapshot;a=a.value;try{var l=i();return!Ui(a,l)}catch{return!0}}function boe(a){var i=ai(a,2);i!==null&&ro(i,a,2)}function AF(a){var i=Ri();if(typeof a==\"function\"){var l=a;if(a=l(),Zb){dt(!0);try{l()}finally{dt(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:a},i}function SF(a){a=AF(a);var i=a.queue,l=Uoe.bind(null,gt,i);return i.dispatch=l,[a.memoizedState,l]}function CF(a){var i=Ri();i.memoizedState=i.baseState=a;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=LF.bind(null,gt,!0,l),l.dispatch=i,[a,i]}function goe(a,i){var l=Gr();return xoe(l,pn,a,i)}function xoe(a,i,l,p){return a.baseState=l,wF(a,pn,typeof p==\"function\"?p:il)}function voe(a,i){var l=Gr();return pn!==null?xoe(l,pn,a,i):(l.baseState=a,[a,l.queue.dispatch])}function yit(a,i,l,p,b){if(Sk(a))throw Error(\"Cannot update form state while rendering.\");if(a=i.action,a!==null){var w={payload:b,action:a,next:null,isTransition:!0,status:\"pending\",value:null,reason:null,listeners:[],then:function(S){w.listeners.push(S)}};ye.T!==null?l(!0):w.isTransition=!1,p(w),l=i.pending,l===null?(w.next=i.pending=w,woe(i,w)):(w.next=l.next,i.pending=l.next=w)}}function woe(a,i){var l=i.action,p=i.payload,b=a.state;if(i.isTransition){var w=ye.T,S={};S._updatedFibers=new Set,ye.T=S;try{var k=l(b,p),F=ye.S;F!==null&&F(S,k),Eoe(a,i,k)}catch($){TF(a,i,$)}finally{w!==null&&S.types!==null&&(w.types!==null&&w.types!==S.types&&console.error(\"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.\"),w.types=S.types),ye.T=w,w===null&&S._updatedFibers&&(a=S._updatedFibers.size,S._updatedFibers.clear(),10<a&&console.warn(\"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\"))}}else try{S=l(b,p),Eoe(a,i,S)}catch($){TF(a,i,$)}}function Eoe(a,i,l){l!==null&&typeof l==\"object\"&&typeof l.then==\"function\"?(ye.asyncTransitions++,l.then(Ak,Ak),l.then(function(p){Aoe(a,i,p)},function(p){return TF(a,i,p)}),i.isTransition||console.error(\"An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.\")):Aoe(a,i,l)}function Aoe(a,i,l){i.status=\"fulfilled\",i.value=l,Soe(i),a.state=l,i=a.pending,i!==null&&(l=i.next,l===i?a.pending=null:(l=l.next,i.next=l,woe(a,l)))}function TF(a,i,l){var p=a.pending;if(a.pending=null,p!==null){p=p.next;do i.status=\"rejected\",i.reason=l,Soe(i),i=i.next;while(i!==p)}a.action=null}function Soe(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function Coe(a,i){return i}function f2(a,i){if(nr){var l=mn.formState;if(l!==null){e:{var p=gt;if(nr){if(Pn){t:{for(var b=Pn,w=Jc;b.nodeType!==8;){if(!w){b=null;break t}if(b=dc(b.nextSibling),b===null){b=null;break t}}w=b.data,b=w===o$||w===uue?b:null}if(b){Pn=dc(b.nextSibling),p=b.data===o$;break e}}xh(p)}p=!1}p&&(i=l[0])}}return l=Ri(),l.memoizedState=l.baseState=i,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Coe,lastRenderedState:i},l.queue=p,l=Uoe.bind(null,gt,p),p.dispatch=l,p=AF(!1),w=LF.bind(null,gt,!1,p.queue),p=Ri(),b={state:i,dispatch:null,action:a,pending:null},p.queue=b,l=yit.bind(null,gt,b,w,l),b.dispatch=l,p.memoizedState=a,[i,l,!1]}function yk(a){var i=Gr();return Toe(i,pn,a)}function Toe(a,i,l){if(i=wF(a,i,Coe)[0],a=l2(il)[0],typeof i==\"object\"&&i!==null&&typeof i.then==\"function\")try{var p=T8(i)}catch(S){throw S===j2?x7:S}else p=i;i=Gr();var b=i.queue,w=b.dispatch;return l!==i.memoizedState&&(gt.flags|=2048,d2(eu|Li,{destroy:void 0},bit.bind(null,b,l),null)),[p,w,a]}function bit(a,i){a.action=i}function bk(a){var i=Gr(),l=pn;if(l!==null)return Toe(i,l,a);Gr(),i=i.memoizedState,l=Gr();var p=l.queue.dispatch;return l.memoizedState=a,[i,p,!1]}function d2(a,i,l,p){return a={tag:a,create:l,deps:p,inst:i,next:null},i=gt.updateQueue,i===null&&(i=mk(),gt.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=a.next=a:(p=l.next,l.next=a,a.next=p,i.lastEffect=a),a}function _F(a){var i=Ri();return a={current:a},i.memoizedState=a}function Ob(a,i,l,p){var b=Ri();gt.flags|=a,b.memoizedState=d2(eu|i,{destroy:void 0},l,p===void 0?null:p)}function vs(a,i,l,p){var b=Gr();p=p===void 0?null:p;var w=b.memoizedState.inst;pn!==null&&p!==null&&mF(p,pn.memoizedState.deps)?b.memoizedState=d2(i,w,l,p):(gt.flags|=a,b.memoizedState=d2(eu|i,w,l,p))}function gk(a,i){(gt.mode&ll)!==mt?Ob(276826112,Li,a,i):Ob(8390656,Li,a,i)}function git(a){gt.flags|=4;var i=gt.updateQueue;if(i===null)i=mk(),gt.updateQueue=i,i.events=[a];else{var l=i.events;l===null?i.events=[a]:l.push(a)}}function kF(a){var i=Ri(),l={impl:a};return i.memoizedState=l,function(){if((hr&ia)!==ba)throw Error(\"A function wrapped in useEffectEvent can\\'t be called during rendering.\");return l.impl.apply(void 0,arguments)}}function xk(a){var i=Gr().memoizedState;return git({ref:i,nextImpl:a}),function(){if((hr&ia)!==ba)throw Error(\"A function wrapped in useEffectEvent can\\'t be called during rendering.\");return i.impl.apply(void 0,arguments)}}function BF(a,i){var l=4194308;return(gt.mode&ll)!==mt&&(l|=134217728),Ob(l,gc,a,i)}function _oe(a,i){if(typeof i==\"function\"){a=a();var l=i(a);return function(){typeof l==\"function\"?l():i(null)}}if(i!=null)return i.hasOwnProperty(\"current\")||console.error(\"Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.\",\"an object with keys {\"+Object.keys(i).join(\", \")+\"}\"),a=a(),i.current=a,function(){i.current=null}}function IF(a,i,l){typeof i!=\"function\"&&console.error(\"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.\",i!==null?typeof i:\"null\"),l=l!=null?l.concat([a]):null;var p=4194308;(gt.mode&ll)!==mt&&(p|=134217728),Ob(p,gc,_oe.bind(null,i,a),l)}function vk(a,i,l){typeof i!=\"function\"&&console.error(\"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.\",i!==null?typeof i:\"null\"),l=l!=null?l.concat([a]):null,vs(4,gc,_oe.bind(null,i,a),l)}function PF(a,i){return Ri().memoizedState=[a,i===void 0?null:i],a}function wk(a,i){var l=Gr();i=i===void 0?null:i;var p=l.memoizedState;return i!==null&&mF(i,p[1])?p[0]:(l.memoizedState=[a,i],a)}function RF(a,i){var l=Ri();i=i===void 0?null:i;var p=a();if(Zb){dt(!0);try{a()}finally{dt(!1)}}return l.memoizedState=[p,i],p}function Ek(a,i){var l=Gr();i=i===void 0?null:i;var p=l.memoizedState;if(i!==null&&mF(i,p[1]))return p[0];if(p=a(),Zb){dt(!0);try{a()}finally{dt(!1)}}return l.memoizedState=[p,i],p}function MF(a,i){var l=Ri();return OF(l,a,i)}function koe(a,i){var l=Gr();return Ioe(l,pn.memoizedState,a,i)}function Boe(a,i){var l=Gr();return pn===null?OF(l,a,i):Ioe(l,pn.memoizedState,a,i)}function OF(a,i,l){return l===void 0||(Mp&1073741824)!==0&&(Dt&261930)===0?a.memoizedState=i:(a.memoizedState=l,a=Pae(),gt.lanes|=a,Kh|=a,l)}function Ioe(a,i,l,p){return Ui(l,i)?l:$2.current!==null?(a=OF(a,l,p),Ui(a,i)||(Fo=!0),a):(Mp&42)===0||(Mp&1073741824)!==0&&(Dt&261930)===0?(Fo=!0,a.memoizedState=l):(a=Pae(),gt.lanes|=a,Kh|=a,i)}function Ak(){ye.asyncTransitions--}function Poe(a,i,l,p,b){var w=Fr.p;Fr.p=w!==0&&w<ul?w:ul;var S=ye.T,k={};k._updatedFibers=new Set,ye.T=k,LF(a,!1,i,l);try{var F=b(),$=ye.S;if($!==null&&$(k,F),F!==null&&typeof F==\"object\"&&typeof F.then==\"function\"){ye.asyncTransitions++,F.then(Ak,Ak);var ce=pit(F,p);k8(a,i,ce,fc(a))}else k8(a,i,p,fc(a))}catch(ue){k8(a,i,{then:function(){},status:\"rejected\",reason:ue},fc(a))}finally{Fr.p=w,S!==null&&k.types!==null&&(S.types!==null&&S.types!==k.types&&console.error(\"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.\"),S.types=k.types),ye.T=S,S===null&&k._updatedFibers&&(a=k._updatedFibers.size,k._updatedFibers.clear(),10<a&&console.warn(\"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\"))}}function NF(a,i,l,p){if(a.tag!==5)throw Error(\"Expected the form instance to be a HostComponent. This is a bug in React.\");var b=Roe(a).queue;fit(a),Poe(a,b,i,s1,l===null?m:function(){return Moe(a),l(p)})}function Roe(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:s1,baseState:s1,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:s1},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:l},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function Moe(a){ye.T===null&&console.error(\"requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.\");var i=Roe(a);i.next===null&&(i=a.alternate.memoizedState),k8(a,i.next.queue,{},fc(a))}function UF(){var a=AF(!1);return a=Poe.bind(null,gt,a.queue,!0,!1),Ri().memoizedState=a,[!1,a]}function Ooe(){var a=l2(il)[0],i=Gr().memoizedState;return[typeof a==\"boolean\"?a:T8(a),i]}function Noe(){var a=_8(il)[0],i=Gr().memoizedState;return[typeof a==\"boolean\"?a:T8(a),i]}function Nb(){return Hn(DA)}function DF(){var a=Ri(),i=mn.identifierPrefix;if(nr){var l=kp,p=_p;l=(p&~(1<<32-Mi(p)-1)).toString(32)+l,i=\"_\"+i+\"R_\"+l,l=S7++,0<l&&(i+=\"H\"+l.toString(32)),i+=\"_\"}else l=Yct++,i=\"_\"+i+\"r_\"+l.toString(32)+\"_\";return a.memoizedState=i}function HF(){return Ri().memoizedState=xit.bind(null,gt)}function xit(a,i){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var p=fc(l),b=Eh(p),w=Ah(l,b,p);w!==null&&(vf(p,\"refresh()\",a),ro(w,l,p),A8(w,l,p)),a=oF(),i!=null&&w!==null&&console.error(\"The seed argument is not enabled outside experimental channels.\"),b.payload={cache:a};return}l=l.return}}function vit(a,i,l){var p=arguments;typeof p[3]==\"function\"&&console.error(\"State updates from the useState() and useReducer() Hooks don\\'t support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().\"),p=fc(a);var b={lane:p,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};Sk(a)?Doe(i,b):(b=Vz(a,i,b,p),b!==null&&(vf(p,\"dispatch()\",a),ro(b,a,p),Hoe(b,i,p)))}function Uoe(a,i,l){var p=arguments;typeof p[3]==\"function\"&&console.error(\"State updates from the useState() and useReducer() Hooks don\\'t support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().\"),p=fc(a),k8(a,i,l,p)&&vf(p,\"setState()\",a)}function k8(a,i,l,p){var b={lane:p,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Sk(a))Doe(i,b);else{var w=a.alternate;if(a.lanes===0&&(w===null||w.lanes===0)&&(w=i.lastRenderedReducer,w!==null)){var S=ye.H;ye.H=dl;try{var k=i.lastRenderedState,F=w(k,l);if(b.hasEagerState=!0,b.eagerState=F,Ui(F,k))return Z4(a,i,b,0),mn===null&&Q4(),!1}catch{}finally{ye.H=S}}if(l=Vz(a,i,b,p),l!==null)return ro(l,a,p),Hoe(l,i,p),!0}return!1}function LF(a,i,l,p){if(ye.T===null&&Gb===0&&console.error(\"An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.\"),p={lane:2,revertLane:hj(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},Sk(a)){if(i)throw Error(\"Cannot update optimistic state while rendering.\");console.error(\"Cannot call startTransition while rendering.\")}else i=Vz(a,l,p,2),i!==null&&(vf(2,\"setOptimistic()\",a),ro(i,a,2))}function Sk(a){var i=a.alternate;return a===gt||i!==null&&i===gt}function Doe(a,i){K2=A7=!0;var l=a.pending;l===null?i.next=i:(i.next=l.next,l.next=i),a.pending=i}function Hoe(a,i,l){if((l&4194048)!==0){var p=i.lanes;p&=a.pendingLanes,l|=p,i.lanes=l,ys(a,l)}}function zF(a){if(a!==null&&typeof a!=\"function\"){var i=String(a);Nce.has(i)||(Nce.add(i),console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",a))}}function FF(a,i,l,p){var b=a.memoizedState,w=l(p,b);if(a.mode&si){dt(!0);try{w=l(p,b)}finally{dt(!1)}}w===void 0&&(i=J(i)||\"Component\",Pce.has(i)||(Pce.add(i),console.error(\"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.\",i))),b=w==null?b:Wt({},b,w),a.memoizedState=b,a.lanes===0&&(a.updateQueue.baseState=b)}function Loe(a,i,l,p,b,w,S){var k=a.stateNode;if(typeof k.shouldComponentUpdate==\"function\"){if(l=k.shouldComponentUpdate(p,w,S),a.mode&si){dt(!0);try{l=k.shouldComponentUpdate(p,w,S)}finally{dt(!1)}}return l===void 0&&console.error(\"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.\",J(i)||\"Component\"),l}return i.prototype&&i.prototype.isPureReactComponent?!y8(l,p)||!y8(b,w):!0}function zoe(a,i,l,p){var b=i.state;typeof i.componentWillReceiveProps==\"function\"&&i.componentWillReceiveProps(l,p),typeof i.UNSAFE_componentWillReceiveProps==\"function\"&&i.UNSAFE_componentWillReceiveProps(l,p),i.state!==b&&(a=W(a)||\"Component\",Tce.has(a)||(Tce.add(a),console.error(\"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",a)),Uq.enqueueReplaceState(i,i.state,null))}function Ub(a,i){var l=i;if(\"ref\"in i){l={};for(var p in i)p!==\"ref\"&&(l[p]=i[p])}if(a=a.defaultProps){l===i&&(l=Wt({},l));for(var b in a)l[b]===void 0&&(l[b]=a[b])}return l}function Foe(a){pq(a),console.warn(`%s\\n\\n%s\\n`,W2?\"An error occurred in the <\"+W2+\"> component.\":\"An error occurred in one of your React components.\",`Consider adding an error boundary to your tree to customize error handling behavior.\\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function joe(a){var i=W2?\"The above error occurred in the <\"+W2+\"> component.\":\"The above error occurred in one of your React components.\",l=\"React will try to recreate this component tree from scratch using the error boundary you provided, \"+((Dq||\"Anonymous\")+\".\");if(typeof a==\"object\"&&a!==null&&typeof a.environmentName==\"string\"){var p=a.environmentName;a=[`%o\\n\\n%s\\n\\n%s\\n`,a,i,l].slice(0),typeof a[0]==\"string\"?a.splice(0,1,bue+\" \"+a[0],gue,Q7+p+Q7,xue):a.splice(0,0,bue,gue,Q7+p+Q7,xue),a.unshift(console),p=xut.apply(console.error,a),p()}else console.error(`%o\\n\\n%s\\n\\n%s\\n`,a,i,l)}function qoe(a){pq(a)}function Ck(a,i){try{W2=i.source?W(i.source):null,Dq=null;var l=i.value;if(ye.actQueue!==null)ye.thrownErrors.push(l);else{var p=a.onUncaughtError;p(l,{componentStack:i.stack})}}catch(b){setTimeout(function(){throw b})}}function $oe(a,i,l){try{W2=l.source?W(l.source):null,Dq=W(i);var p=a.onCaughtError;p(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function jF(a,i,l){return l=Eh(l),l.tag=Iq,l.payload={element:null},l.callback=function(){Te(i.source,Ck,a,i)},l}function qF(a){return a=Eh(a),a.tag=Iq,a}function $F(a,i,l,p){var b=l.type.getDerivedStateFromError;if(typeof b==\"function\"){var w=p.value;a.payload=function(){return b(w)},a.callback=function(){Dne(l),Te(p.source,$oe,i,l,p)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch==\"function\"&&(a.callback=function(){Dne(l),Te(p.source,$oe,i,l,p),typeof b!=\"function\"&&(Qh===null?Qh=new Set([this]):Qh.add(this)),Wct(this,p),typeof b==\"function\"||(l.lanes&2)===0&&console.error(\"%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.\",W(l)||\"Unknown\")})}function wit(a,i,l,p,b){if(l.flags|=32768,Df&&U8(a,b),p!==null&&typeof p==\"object\"&&typeof p.then==\"function\"){if(i=l.alternate,i!==null&&c2(i,l,b,!0),nr&&(zf=!0),l=bc.current,l!==null){switch(l.tag){case 31:case 13:return Xc===null?Ok():l.alternate===null&&Kn===Dp&&(Kn=_7),l.flags&=-257,l.flags|=65536,l.lanes=b,p===v7?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([p]):i.add(p),fj(a,p,b)),!1;case 22:return l.flags|=65536,p===v7?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([p])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([p]):l.add(p)),fj(a,p,b)),!1}throw Error(\"Unexpected Suspense handler tag (\"+l.tag+\"). This is a bug in React.\")}return fj(a,p,b),Ok(),!1}if(nr)return zf=!0,i=bc.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=b,p!==xq&&g8(sc(Error(\"There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.\",{cause:p}),l))):(p!==xq&&g8(sc(Error(\"There was an error while hydrating but React was able to recover by instead client rendering the entire root.\",{cause:p}),l)),a=a.current.alternate,a.flags|=65536,b&=-b,a.lanes|=b,p=sc(p,l),b=jF(a.stateNode,p,b),fk(a,b),Kn!==Gh&&(Kn=Jb)),!1;var w=sc(Error(\"There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.\",{cause:p}),l);if(kA===null?kA=[w]:kA.push(w),Kn!==Gh&&(Kn=Jb),i===null)return!0;p=sc(p,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,a=b&-b,l.lanes|=a,a=jF(l.stateNode,p,a),fk(l,a),!1;case 1:if(i=l.type,w=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError==\"function\"||w!==null&&typeof w.componentDidCatch==\"function\"&&(Qh===null||!Qh.has(w))))return l.flags|=65536,b&=-b,l.lanes|=b,b=qF(b),$F(b,a,l,p),fk(l,b),!1}l=l.return}while(l!==null);return!1}function Oa(a,i,l,p){i.child=a===null?hce(i,null,l,p):Qb(i,a.child,l,p)}function Goe(a,i,l,p,b){l=l.render;var w=i.ref;if(\"ref\"in p){var S={};for(var k in p)k!==\"ref\"&&(S[k]=p[k])}else S=p;return Pb(i),p=hF(a,i,l,S,w,b),k=bF(),a!==null&&!Fo?(gF(a,i,b),wp(a,i,b)):(nr&&k&&Yz(i),i.flags|=1,Oa(a,i,p,b),i.child)}function Voe(a,i,l,p,b){if(a===null){var w=l.type;return typeof w==\"function\"&&!Wz(w)&&w.defaultProps===void 0&&l.compare===null?(l=_b(w),i.tag=15,i.type=l,VF(i,w),Koe(a,i,l,p,b)):(a=Qz(l.type,null,p,i,i.mode,b),a.ref=i.ref,a.return=i,i.child=a)}if(w=a.child,!YF(a,b)){var S=w.memoizedProps;if(l=l.compare,l=l!==null?l:y8,l(S,p)&&a.ref===i.ref)return wp(a,i,b)}return i.flags|=1,a=bp(w,p),a.ref=i.ref,a.return=i,i.child=a}function Koe(a,i,l,p,b){if(a!==null){var w=a.memoizedProps;if(y8(w,p)&&a.ref===i.ref&&i.type===a.type)if(Fo=!1,i.pendingProps=p=w,YF(a,b))(a.flags&131072)!==0&&(Fo=!0);else return i.lanes=a.lanes,wp(a,i,b)}return GF(a,i,l,p,b)}function Woe(a,i,l,p){var b=p.children,w=a!==null?a.memoizedState:null;if(a===null&&i.stateNode===null&&(i.stateNode={_visibility:nA,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode===\"hidden\"){if((i.flags&128)!==0){if(w=w!==null?w.baseLanes|l:l,a!==null){for(p=i.child=a.child,b=0;p!==null;)b=b|p.lanes|p.childLanes,p=p.sibling;p=b&~w}else p=0,i.child=null;return Qoe(a,i,w,l,p)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&ak(i,w!==null?w.cachePool:null),w!==null?loe(i,w):fF(i),foe(i);else return p=i.lanes=536870912,Qoe(a,i,w!==null?w.baseLanes|l:l,l,p)}else w!==null?(ak(i,w.cachePool),loe(i,w),Ch(i),i.memoizedState=null):(a!==null&&ak(i,null),fF(i),Ch(i));return Oa(a,i,b,l),i.child}function B8(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:nA,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Qoe(a,i,l,p,b){var w=sF();return w=w===null?null:{parent:Ho._currentValue,pool:w},i.memoizedState={baseLanes:l,cachePool:w},a!==null&&ak(i,null),fF(i),foe(i),a!==null&&c2(a,i,p,!0),i.childLanes=b,null}function Tk(a,i){var l=i.hidden;return l!==void 0&&console.error(`<Activity> doesn\\'t accept a hidden prop. Use mode=\"hidden\" instead.\\n- <Activity %s>\\n+ <Activity %s>`,l===!0?\"hidden\":l===!1?\"hidden={false}\":\"hidden={...}\",l?\\'mode=\"hidden\"\\':\\'mode=\"visible\"\\'),i=kk({mode:i.mode,children:i.children},a.mode),i.ref=a.ref,a.child=i,i.return=a,i}function Zoe(a,i,l){return Qb(i,a.child,null,l),a=Tk(i,i.pendingProps),a.flags|=2,lc(i),i.memoizedState=null,a}function Eit(a,i,l){var p=i.pendingProps,b=(i.flags&128)!==0;if(i.flags&=-129,a===null){if(nr){if(p.mode===\"hidden\")return a=Tk(i,p),i.lanes=536870912,B8(null,a);if(pF(i),(a=Pn)?(l=wie(a,Jc),l=l!==null&&l.data===n1?l:null,l!==null&&(p={dehydrated:l,treeContext:jne(),retryLane:536870912,hydrationErrors:null},i.memoizedState=p,p=zne(l),p.return=i,i.child=p,Da=i,Pn=null)):l=null,l===null)throw X4(i,a),xh(i);return i.lanes=536870912,null}return Tk(i,p)}var w=a.memoizedState;if(w!==null){var S=w.dehydrated;if(pF(i),b)if(i.flags&256)i.flags&=-257,i=Zoe(a,i,l);else if(i.memoizedState!==null)i.child=a.child,i.flags|=128,i=null;else throw Error(\"Client rendering an Activity suspended it again. This is a bug in React.\");else if($ne(),(l&536870912)!==0&&Mk(i),Fo||c2(a,i,l,!1),b=(l&a.childLanes)!==0,Fo||b){if(p=mn,p!==null&&(S=Pr(p,l),S!==0&&S!==w.retryLane))throw w.retryLane=S,ai(a,S),ro(p,a,S),Hq;Ok(),i=Zoe(a,i,l)}else a=w.treeContext,Pn=dc(S.nextSibling),Da=i,nr=!0,Hh=null,zf=!1,yc=null,Jc=!1,a!==null&&qne(i,a),i=Tk(i,p),i.flags|=4096;return i}return w=a.child,p={mode:p.mode,children:p.children},(l&536870912)!==0&&(l&a.lanes)!==0&&Mk(i),a=bp(w,p),a.ref=i.ref,i.child=a,a.return=i,a}function _k(a,i){var l=i.ref;if(l===null)a!==null&&a.ref!==null&&(i.flags|=4194816);else{if(typeof l!=\"function\"&&typeof l!=\"object\")throw Error(\"Expected ref to be a function, an object returned by React.createRef(), or undefined/null.\");(a===null||a.ref!==l)&&(i.flags|=4194816)}}function GF(a,i,l,p,b){if(l.prototype&&typeof l.prototype.render==\"function\"){var w=J(l)||\"Unknown\";Uce[w]||(console.error(\"The <%s /> component appears to have a render method, but doesn\\'t extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.\",w,w),Uce[w]=!0)}return i.mode&si&&fl.recordLegacyContextWarning(i,null),a===null&&(VF(i,i.type),l.contextTypes&&(w=J(l)||\"Unknown\",Hce[w]||(Hce[w]=!0,console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)\",w)))),Pb(i),l=hF(a,i,l,p,void 0,b),p=bF(),a!==null&&!Fo?(gF(a,i,b),wp(a,i,b)):(nr&&p&&Yz(i),i.flags|=1,Oa(a,i,l,b),i.child)}function Joe(a,i,l,p,b,w){return Pb(i),Np=-1,wA=a!==null&&a.type!==i.type,i.updateQueue=null,l=yF(i,p,l,b),doe(a,i),p=bF(),a!==null&&!Fo?(gF(a,i,w),wp(a,i,w)):(nr&&p&&Yz(i),i.flags|=1,Oa(a,i,l,w),i.child)}function Yoe(a,i,l,p,b){switch(u(i)){case!1:var w=i.stateNode,S=new i.type(i.memoizedProps,w.context).state;w.updater.enqueueSetState(w,S,null);break;case!0:i.flags|=128,i.flags|=65536,w=Error(\"Simulated error coming from DevTools\");var k=b&-b;if(i.lanes|=k,S=mn,S===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");k=qF(k),$F(k,S,i,sc(w,i)),fk(i,k)}if(Pb(i),i.stateNode===null){if(S=Dh,w=l.contextType,\"contextType\"in l&&w!==null&&(w===void 0||w.$$typeof!==Of)&&!Oce.has(l)&&(Oce.add(l),k=w===void 0?\" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.\":typeof w!=\"object\"?\" However, it is set to a \"+typeof w+\".\":w.$$typeof===Lj?\" Did you accidentally pass the Context.Consumer instead?\":\" However, it is set to an object with keys {\"+Object.keys(w).join(\", \")+\"}.\",console.error(\"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s\",J(l)||\"Component\",k)),typeof w==\"object\"&&w!==null&&(S=Hn(w)),w=new l(p,S),i.mode&si){dt(!0);try{w=new l(p,S)}finally{dt(!1)}}if(S=i.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=Uq,i.stateNode=w,w._reactInternals=i,w._reactInternalInstance=Cce,typeof l.getDerivedStateFromProps==\"function\"&&S===null&&(S=J(l)||\"Component\",_ce.has(S)||(_ce.add(S),console.error(\"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.\",S,w.state===null?\"null\":\"undefined\",S))),typeof l.getDerivedStateFromProps==\"function\"||typeof w.getSnapshotBeforeUpdate==\"function\"){var F=k=S=null;if(typeof w.componentWillMount==\"function\"&&w.componentWillMount.__suppressDeprecationWarning!==!0?S=\"componentWillMount\":typeof w.UNSAFE_componentWillMount==\"function\"&&(S=\"UNSAFE_componentWillMount\"),typeof w.componentWillReceiveProps==\"function\"&&w.componentWillReceiveProps.__suppressDeprecationWarning!==!0?k=\"componentWillReceiveProps\":typeof w.UNSAFE_componentWillReceiveProps==\"function\"&&(k=\"UNSAFE_componentWillReceiveProps\"),typeof w.componentWillUpdate==\"function\"&&w.componentWillUpdate.__suppressDeprecationWarning!==!0?F=\"componentWillUpdate\":typeof w.UNSAFE_componentWillUpdate==\"function\"&&(F=\"UNSAFE_componentWillUpdate\"),S!==null||k!==null||F!==null){w=J(l)||\"Component\";var $=typeof l.getDerivedStateFromProps==\"function\"?\"getDerivedStateFromProps()\":\"getSnapshotBeforeUpdate()\";Bce.has(w)||(Bce.add(w),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\nhttps://react.dev/link/unsafe-component-lifecycles`,w,$,S!==null?`\\n  `+S:\"\",k!==null?`\\n  `+k:\"\",F!==null?`\\n  `+F:\"\"))}}w=i.stateNode,S=J(l)||\"Component\",w.render||(l.prototype&&typeof l.prototype.render==\"function\"?console.error(\"No `render` method found on the %s instance: did you accidentally return an object from the constructor?\",S):console.error(\"No `render` method found on the %s instance: you may have forgotten to define `render`.\",S)),!w.getInitialState||w.getInitialState.isReactClassApproved||w.state||console.error(\"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?\",S),w.getDefaultProps&&!w.getDefaultProps.isReactClassApproved&&console.error(\"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.\",S),w.contextType&&console.error(\"contextType was defined as an instance property on %s. Use a static property to define contextType instead.\",S),l.childContextTypes&&!Mce.has(l)&&(Mce.add(l),console.error(\"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)\",S)),l.contextTypes&&!Rce.has(l)&&(Rce.add(l),console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)\",S)),typeof w.componentShouldUpdate==\"function\"&&console.error(\"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.\",S),l.prototype&&l.prototype.isPureReactComponent&&typeof w.shouldComponentUpdate<\"u\"&&console.error(\"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.\",J(l)||\"A pure component\"),typeof w.componentDidUnmount==\"function\"&&console.error(\"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?\",S),typeof w.componentDidReceiveProps==\"function\"&&console.error(\"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().\",S),typeof w.componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?\",S),typeof w.UNSAFE_componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?\",S),k=w.props!==p,w.props!==void 0&&k&&console.error(\"When calling super() in `%s`, make sure to pass up the same props that your component\\'s constructor was passed.\",S),w.defaultProps&&console.error(\"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.\",S,S),typeof w.getSnapshotBeforeUpdate!=\"function\"||typeof w.componentDidUpdate==\"function\"||kce.has(l)||(kce.add(l),console.error(\"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.\",J(l))),typeof w.getDerivedStateFromProps==\"function\"&&console.error(\"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",S),typeof w.getDerivedStateFromError==\"function\"&&console.error(\"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",S),typeof l.getSnapshotBeforeUpdate==\"function\"&&console.error(\"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.\",S),(k=w.state)&&(typeof k!=\"object\"||oa(k))&&console.error(\"%s.state: must be set to an object or null\",S),typeof w.getChildContext==\"function\"&&typeof l.childContextTypes!=\"object\"&&console.error(\"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().\",S),w=i.stateNode,w.props=p,w.state=i.memoizedState,w.refs={},uF(i),S=l.contextType,w.context=typeof S==\"object\"&&S!==null?Hn(S):Dh,w.state===p&&(S=J(l)||\"Component\",Ice.has(S)||(Ice.add(S),console.error(\"%s: It is not recommended to assign props directly to state because updates to props won\\'t be reflected in state. In most cases, it is better to use props directly.\",S))),i.mode&si&&fl.recordLegacyContextWarning(i,w),fl.recordUnsafeLifecycleWarnings(i,w),w.state=i.memoizedState,S=l.getDerivedStateFromProps,typeof S==\"function\"&&(FF(i,l,S,p),w.state=i.memoizedState),typeof l.getDerivedStateFromProps==\"function\"||typeof w.getSnapshotBeforeUpdate==\"function\"||typeof w.UNSAFE_componentWillMount!=\"function\"&&typeof w.componentWillMount!=\"function\"||(S=w.state,typeof w.componentWillMount==\"function\"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount==\"function\"&&w.UNSAFE_componentWillMount(),S!==w.state&&(console.error(\"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",W(i)||\"Component\"),Uq.enqueueReplaceState(w,w.state,null)),C8(i,p,w,b),S8(),w.state=i.memoizedState),typeof w.componentDidMount==\"function\"&&(i.flags|=4194308),(i.mode&ll)!==mt&&(i.flags|=134217728),w=!0}else if(a===null){w=i.stateNode;var ce=i.memoizedProps;k=Ub(l,ce),w.props=k;var ue=w.context;F=l.contextType,S=Dh,typeof F==\"object\"&&F!==null&&(S=Hn(F)),$=l.getDerivedStateFromProps,F=typeof $==\"function\"||typeof w.getSnapshotBeforeUpdate==\"function\",ce=i.pendingProps!==ce,F||typeof w.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof w.componentWillReceiveProps!=\"function\"||(ce||ue!==S)&&zoe(i,w,p,S),$h=!1;var te=i.memoizedState;w.state=te,C8(i,p,w,b),S8(),ue=i.memoizedState,ce||te!==ue||$h?(typeof $==\"function\"&&(FF(i,l,$,p),ue=i.memoizedState),(k=$h||Loe(i,l,k,p,te,ue,S))?(F||typeof w.UNSAFE_componentWillMount!=\"function\"&&typeof w.componentWillMount!=\"function\"||(typeof w.componentWillMount==\"function\"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount==\"function\"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount==\"function\"&&(i.flags|=4194308),(i.mode&ll)!==mt&&(i.flags|=134217728)):(typeof w.componentDidMount==\"function\"&&(i.flags|=4194308),(i.mode&ll)!==mt&&(i.flags|=134217728),i.memoizedProps=p,i.memoizedState=ue),w.props=p,w.state=ue,w.context=S,w=k):(typeof w.componentDidMount==\"function\"&&(i.flags|=4194308),(i.mode&ll)!==mt&&(i.flags|=134217728),w=!1)}else{w=i.stateNode,lF(a,i),S=i.memoizedProps,F=Ub(l,S),w.props=F,$=i.pendingProps,te=w.context,ue=l.contextType,k=Dh,typeof ue==\"object\"&&ue!==null&&(k=Hn(ue)),ce=l.getDerivedStateFromProps,(ue=typeof ce==\"function\"||typeof w.getSnapshotBeforeUpdate==\"function\")||typeof w.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof w.componentWillReceiveProps!=\"function\"||(S!==$||te!==k)&&zoe(i,w,p,k),$h=!1,te=i.memoizedState,w.state=te,C8(i,p,w,b),S8();var pe=i.memoizedState;S!==$||te!==pe||$h||a!==null&&a.dependencies!==null&&tk(a.dependencies)?(typeof ce==\"function\"&&(FF(i,l,ce,p),pe=i.memoizedState),(F=$h||Loe(i,l,F,p,te,pe,k)||a!==null&&a.dependencies!==null&&tk(a.dependencies))?(ue||typeof w.UNSAFE_componentWillUpdate!=\"function\"&&typeof w.componentWillUpdate!=\"function\"||(typeof w.componentWillUpdate==\"function\"&&w.componentWillUpdate(p,pe,k),typeof w.UNSAFE_componentWillUpdate==\"function\"&&w.UNSAFE_componentWillUpdate(p,pe,k)),typeof w.componentDidUpdate==\"function\"&&(i.flags|=4),typeof w.getSnapshotBeforeUpdate==\"function\"&&(i.flags|=1024)):(typeof w.componentDidUpdate!=\"function\"||S===a.memoizedProps&&te===a.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!=\"function\"||S===a.memoizedProps&&te===a.memoizedState||(i.flags|=1024),i.memoizedProps=p,i.memoizedState=pe),w.props=p,w.state=pe,w.context=k,w=F):(typeof w.componentDidUpdate!=\"function\"||S===a.memoizedProps&&te===a.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!=\"function\"||S===a.memoizedProps&&te===a.memoizedState||(i.flags|=1024),w=!1)}if(k=w,_k(a,i),S=(i.flags&128)!==0,k||S){if(k=i.stateNode,It(i),S&&typeof l.getDerivedStateFromError!=\"function\")l=null,Di=-1;else if(l=tce(k),i.mode&si){dt(!0);try{tce(k)}finally{dt(!1)}}i.flags|=1,a!==null&&S?(i.child=Qb(i,a.child,null,b),i.child=Qb(i,null,l,b)):Oa(a,i,l,b),i.memoizedState=k.state,a=i.child}else a=wp(a,i,b);return b=i.stateNode,w&&b.props!==p&&(Q2||console.error(\"It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.\",W(i)||\"a component\"),Q2=!0),a}function Xoe(a,i,l,p){return Ib(),i.flags|=256,Oa(a,i,l,p),i.child}function VF(a,i){i&&i.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.\\n  %s.childContextTypes = ...`,i.displayName||i.name||\"Component\"),typeof i.getDerivedStateFromProps==\"function\"&&(a=J(i)||\"Unknown\",Lce[a]||(console.error(\"%s: Function components do not support getDerivedStateFromProps.\",a),Lce[a]=!0)),typeof i.contextType==\"object\"&&i.contextType!==null&&(i=J(i)||\"Unknown\",Dce[i]||(console.error(\"%s: Function components do not support contextType.\",i),Dce[i]=!0))}function KF(a){return{baseLanes:a,cachePool:Jne()}}function WF(a,i,l){return a=a!==null?a.childLanes&~l:0,i&&(a|=Cs),a}function eae(a,i,l){var p,b=i.pendingProps;s(i)&&(i.flags|=128);var w=!1,S=(i.flags&128)!==0;if((p=S)||(p=a!==null&&a.memoizedState===null?!1:(So.current&xA)!==0),p&&(w=!0,i.flags&=-129),p=(i.flags&32)!==0,i.flags&=-33,a===null){if(nr){if(w?Sh(i):Ch(i),(a=Pn)?(l=wie(a,Jc),l=l!==null&&l.data!==n1?l:null,l!==null&&(p={dehydrated:l,treeContext:jne(),retryLane:536870912,hydrationErrors:null},i.memoizedState=p,p=zne(l),p.return=i,i.child=p,Da=i,Pn=null)):l=null,l===null)throw X4(i,a),xh(i);return _j(l)?i.lanes=32:i.lanes=536870912,null}var k=b.children;if(b=b.fallback,w){Ch(i);var F=i.mode;return k=kk({mode:\"hidden\",children:k},F),b=kb(b,F,l,null),k.return=i,b.return=i,k.sibling=b,i.child=k,b=i.child,b.memoizedState=KF(l),b.childLanes=WF(a,p,l),i.memoizedState=Lq,B8(null,b)}return Sh(i),QF(i,k)}var $=a.memoizedState;if($!==null){var ce=$.dehydrated;if(ce!==null){if(S)i.flags&256?(Sh(i),i.flags&=-257,i=ZF(a,i,l)):i.memoizedState!==null?(Ch(i),i.child=a.child,i.flags|=128,i=null):(Ch(i),k=b.fallback,F=i.mode,b=kk({mode:\"visible\",children:b.children},F),k=kb(k,F,l,null),k.flags|=2,b.return=i,k.return=i,b.sibling=k,i.child=b,Qb(i,a.child,null,l),b=i.child,b.memoizedState=KF(l),b.childLanes=WF(a,p,l),i.memoizedState=Lq,i=B8(null,b));else if(Sh(i),$ne(),(l&536870912)!==0&&Mk(i),_j(ce)){if(p=ce.nextSibling&&ce.nextSibling.dataset,p){k=p.dgst;var ue=p.msg;F=p.stck;var te=p.cstck}w=ue,p=k,b=F,ce=te,k=w,F=ce,k=Error(k||\"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.\"),k.stack=b||\"\",k.digest=p,p=F===void 0?null:F,b={value:k,source:null,stack:p},typeof p==\"string\"&&gq.set(k,b),g8(b),i=ZF(a,i,l)}else if(Fo||c2(a,i,l,!1),p=(l&a.childLanes)!==0,Fo||p){if(p=mn,p!==null&&(b=Pr(p,l),b!==0&&b!==$.retryLane))throw $.retryLane=b,ai(a,b),ro(p,a,b),Hq;Tj(ce)||Ok(),i=ZF(a,i,l)}else Tj(ce)?(i.flags|=192,i.child=a.child,i=null):(a=$.treeContext,Pn=dc(ce.nextSibling),Da=i,nr=!0,Hh=null,zf=!1,yc=null,Jc=!1,a!==null&&qne(i,a),i=QF(i,b.children),i.flags|=4096);return i}}return w?(Ch(i),k=b.fallback,F=i.mode,te=a.child,ce=te.sibling,b=bp(te,{mode:\"hidden\",children:b.children}),b.subtreeFlags=te.subtreeFlags&65011712,ce!==null?k=bp(ce,k):(k=kb(k,F,l,null),k.flags|=2),k.return=i,b.return=i,b.sibling=k,i.child=b,B8(null,b),b=i.child,k=a.child.memoizedState,k===null?k=KF(l):(F=k.cachePool,F!==null?(te=Ho._currentValue,F=F.parent!==te?{parent:te,pool:te}:F):F=Jne(),k={baseLanes:k.baseLanes|l,cachePool:F}),b.memoizedState=k,b.childLanes=WF(a,p,l),i.memoizedState=Lq,B8(a.child,b)):($!==null&&(l&62914560)===l&&(l&a.lanes)!==0&&Mk(i),Sh(i),l=a.child,a=l.sibling,l=bp(l,{mode:\"visible\",children:b.children}),l.return=i,l.sibling=null,a!==null&&(p=i.deletions,p===null?(i.deletions=[a],i.flags|=16):p.push(a)),i.child=l,i.memoizedState=null,l)}function QF(a,i){return i=kk({mode:\"visible\",children:i},a.mode),i.return=a,a.child=i}function kk(a,i){return a=v(22,a,null,i),a.lanes=0,a}function ZF(a,i,l){return Qb(i,a.child,null,l),a=QF(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function tae(a,i,l){a.lanes|=i;var p=a.alternate;p!==null&&(p.lanes|=i),rF(a.return,i,l)}function JF(a,i,l,p,b,w){var S=a.memoizedState;S===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:p,tail:l,tailMode:b,treeForkCount:w}:(S.isBackwards=i,S.rendering=null,S.renderingStartTime=0,S.last=p,S.tail=l,S.tailMode=b,S.treeForkCount=w)}function rae(a,i,l){var p=i.pendingProps,b=p.revealOrder,w=p.tail,S=p.children,k=So.current;if((p=(k&xA)!==0)?(k=k&G2|xA,i.flags|=128):k&=G2,H(So,k,i),k=b??\"null\",b!==\"forwards\"&&b!==\"unstable_legacy-backwards\"&&b!==\"together\"&&b!==\"independent\"&&!zce[k])if(zce[k]=!0,b==null)console.error(\\'The default for the <SuspenseList revealOrder=\"...\"> prop is changing. To be future compatible you must explictly specify either \"independent\" (the current default), \"together\", \"forwards\" or \"legacy_unstable-backwards\".\\');else if(b===\"backwards\")console.error(\\'The rendering order of <SuspenseList revealOrder=\"backwards\"> is changing. To be future compatible you must specify revealOrder=\"legacy_unstable-backwards\" instead.\\');else if(typeof b==\"string\")switch(b.toLowerCase()){case\"together\":case\"forwards\":case\"backwards\":case\"independent\":console.error(\\'\"%s\" is not a valid value for revealOrder on <SuspenseList />. Use lowercase \"%s\" instead.\\',b,b.toLowerCase());break;case\"forward\":case\"backward\":console.error(\\'\"%s\" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use \"%ss\" instead.\\',b,b.toLowerCase());break;default:console.error(\\'\"%s\" is not a supported revealOrder on <SuspenseList />. Did you mean \"independent\", \"together\", \"forwards\" or \"backwards\"?\\',b)}else console.error(\\'%s is not a supported value for revealOrder on <SuspenseList />. Did you mean \"independent\", \"together\", \"forwards\" or \"backwards\"?\\',b);k=w??\"null\",T7[k]||(w==null?(b===\"forwards\"||b===\"backwards\"||b===\"unstable_legacy-backwards\")&&(T7[k]=!0,console.error(\\'The default for the <SuspenseList tail=\"...\"> prop is changing. To be future compatible you must explictly specify either \"visible\" (the current default), \"collapsed\" or \"hidden\".\\')):w!==\"visible\"&&w!==\"collapsed\"&&w!==\"hidden\"?(T7[k]=!0,console.error(\\'\"%s\" is not a supported value for tail on <SuspenseList />. Did you mean \"visible\", \"collapsed\" or \"hidden\"?\\',w)):b!==\"forwards\"&&b!==\"backwards\"&&b!==\"unstable_legacy-backwards\"&&(T7[k]=!0,console.error(\\'<SuspenseList tail=\"%s\" /> is only valid if revealOrder is \"forwards\" or \"backwards\". Did you mean to specify revealOrder=\"forwards\"?\\',w)));e:if((b===\"forwards\"||b===\"backwards\"||b===\"unstable_legacy-backwards\")&&S!==void 0&&S!==null&&S!==!1)if(oa(S)){for(k=0;k<S.length;k++)if(!soe(S[k],k))break e}else if(k=G(S),typeof k==\"function\"){if(k=k.call(S))for(var F=k.next(),$=0;!F.done;F=k.next()){if(!soe(F.value,$))break e;$++}}else console.error(\\'A single row was passed to a <SuspenseList revealOrder=\"%s\" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?\\',b);if(Oa(a,i,S,l),nr?(gh(),S=oA):S=0,!p&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&tae(a,l,i);else if(a.tag===19)tae(a,l,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(b){case\"forwards\":for(l=i.child,b=null;l!==null;)a=l.alternate,a!==null&&dk(a)===null&&(b=l),l=l.sibling;l=b,l===null?(b=i.child,i.child=null):(b=l.sibling,l.sibling=null),JF(i,!1,b,l,w,S);break;case\"backwards\":case\"unstable_legacy-backwards\":for(l=null,b=i.child,i.child=null;b!==null;){if(a=b.alternate,a!==null&&dk(a)===null){i.child=b;break}a=b.sibling,b.sibling=l,l=b,b=a}JF(i,!0,l,null,w,S);break;case\"together\":JF(i,!1,null,null,void 0,S);break;default:i.memoizedState=null}return i.child}function wp(a,i,l){if(a!==null&&(i.dependencies=a.dependencies),Di=-1,Kh|=i.lanes,(l&i.childLanes)===0)if(a!==null){if(c2(a,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(a!==null&&i.child!==a.child)throw Error(\"Resuming work not yet implemented.\");if(i.child!==null){for(a=i.child,l=bp(a,a.pendingProps),i.child=l,l.return=i;a.sibling!==null;)a=a.sibling,l=l.sibling=bp(a,a.pendingProps),l.return=i;l.sibling=null}return i.child}function YF(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&tk(a)))}function Ait(a,i,l){switch(i.tag){case 3:T(i,i.stateNode.containerInfo),vh(i,Ho,a.memoizedState.cache),Ib();break;case 27:case 5:L(i);break;case 4:T(i,i.stateNode.containerInfo);break;case 10:vh(i,i.type,i.memoizedProps.value);break;case 12:(l&i.childLanes)!==0&&(i.flags|=4),i.flags|=2048;var p=i.stateNode;p.effectDuration=-0,p.passiveEffectDuration=-0;break;case 31:if(i.memoizedState!==null)return i.flags|=128,pF(i),null;break;case 13:if(p=i.memoizedState,p!==null)return p.dehydrated!==null?(Sh(i),i.flags|=128,null):(l&i.child.childLanes)!==0?eae(a,i,l):(Sh(i),a=wp(a,i,l),a!==null?a.sibling:null);Sh(i);break;case 19:var b=(a.flags&128)!==0;if(p=(l&i.childLanes)!==0,p||(c2(a,i,l,!1),p=(l&i.childLanes)!==0),b){if(p)return rae(a,i,l);i.flags|=128}if(b=i.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),H(So,So.current,i),p)break;return null;case 22:return i.lanes=0,Woe(a,i,l,i.pendingProps);case 24:vh(i,Ho,a.memoizedState.cache)}return wp(a,i,l)}function XF(a,i,l){if(i._debugNeedsRemount&&a!==null){l=Qz(i.type,i.key,i.pendingProps,i._debugOwner||null,i.mode,i.lanes),l._debugStack=i._debugStack,l._debugTask=i._debugTask;var p=i.return;if(p===null)throw Error(\"Cannot swap the root fiber.\");if(a.alternate=null,i.alternate=null,l.index=i.index,l.sibling=i.sibling,l.return=i.return,l.ref=i.ref,l._debugInfo=i._debugInfo,i===p.child)p.child=l;else{var b=p.child;if(b===null)throw Error(\"Expected parent to have a child.\");for(;b.sibling!==i;)if(b=b.sibling,b===null)throw Error(\"Expected to find the previous sibling.\");b.sibling=l}return i=p.deletions,i===null?(p.deletions=[a],p.flags|=16):i.push(a),l.flags|=2,l}if(a!==null)if(a.memoizedProps!==i.pendingProps||i.type!==a.type)Fo=!0;else{if(!YF(a,l)&&(i.flags&128)===0)return Fo=!1,Ait(a,i,l);Fo=(a.flags&131072)!==0}else Fo=!1,(p=nr)&&(gh(),p=(i.flags&1048576)!==0),p&&(p=i.index,gh(),Fne(i,oA,p));switch(i.lanes=0,i.tag){case 16:e:if(p=i.pendingProps,a=wh(i.elementType),i.type=a,typeof a==\"function\")Wz(a)?(p=Ub(a,p),i.tag=1,i.type=a=_b(a),i=Yoe(null,i,a,p,l)):(i.tag=0,VF(i,a),i.type=a=_b(a),i=GF(null,i,a,p,l));else{if(a!=null){if(b=a.$$typeof,b===G8){i.tag=11,i.type=a=Kz(a),i=Goe(null,i,a,p,l);break e}else if(b===Wk){i.tag=14,i=Voe(null,i,a,p,l);break e}}throw i=\"\",a!==null&&typeof a==\"object\"&&a.$$typeof===pc&&(i=\" Did you wrap a component in React.lazy() more than once?\"),l=J(a)||a,Error(\"Element type is invalid. Received a promise that resolves to: \"+l+\". Lazy element type must resolve to a class or function.\"+i)}return i;case 0:return GF(a,i,i.type,i.pendingProps,l);case 1:return p=i.type,b=Ub(p,i.pendingProps),Yoe(a,i,p,b,l);case 3:e:{if(T(i,i.stateNode.containerInfo),a===null)throw Error(\"Should have a current fiber. This is a bug in React.\");p=i.pendingProps;var w=i.memoizedState;b=w.element,lF(a,i),C8(i,p,null,l);var S=i.memoizedState;if(p=S.cache,vh(i,Ho,p),p!==w.cache&&nF(i,[Ho],l,!0),S8(),p=S.element,w.isDehydrated)if(w={element:p,isDehydrated:!1,cache:S.cache},i.updateQueue.baseState=w,i.memoizedState=w,i.flags&256){i=Xoe(a,i,p,l);break e}else if(p!==b){b=sc(Error(\"This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.\"),i),g8(b),i=Xoe(a,i,p,l);break e}else for(a=i.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName===\"HTML\"?a.ownerDocument.body:a,Pn=dc(a.firstChild),Da=i,nr=!0,Hh=null,zf=!1,yc=null,Jc=!0,l=hce(i,null,p,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ib(),p===b){i=wp(a,i,l);break e}Oa(a,i,p,l)}i=i.child}return i;case 26:return _k(a,i),a===null?(l=_ie(i.type,null,i.pendingProps,null))?i.memoizedState=l:nr||(l=i.type,a=i.pendingProps,p=A(Ph.current),p=Hk(p).createElement(l),p[Ua]=i,p[Oi]=a,Na(p,l,a),Ne(p),i.stateNode=p):i.memoizedState=_ie(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return L(i),a===null&&nr&&(p=A(Ph.current),b=D(),p=i.stateNode=Cie(i.type,i.pendingProps,p,b,!1),zf||(b=pie(p,i.type,i.pendingProps,b),b!==null&&(Bb(i,0).serverProps=b)),Da=i,Jc=!0,b=Pn,Bh(i.type)?(c$=b,Pn=dc(p.firstChild)):Pn=b),Oa(a,i,i.pendingProps.children,l),_k(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&nr&&(w=D(),p=Lz(i.type,w.ancestorInfo),b=Pn,(S=!b)||(S=fst(b,i.type,i.pendingProps,Jc),S!==null?(i.stateNode=S,zf||(w=pie(S,i.type,i.pendingProps,w),w!==null&&(Bb(i,0).serverProps=w)),Da=i,Pn=dc(S.firstChild),Jc=!1,w=!0):w=!1,S=!w),S&&(p&&X4(i,b),xh(i))),L(i),b=i.type,w=i.pendingProps,S=a!==null?a.memoizedProps:null,p=w.children,Sj(b,w)?p=null:S!==null&&Sj(b,S)&&(i.flags|=32),i.memoizedState!==null&&(b=hF(a,i,hit,null,null,l),DA._currentValue=b),_k(a,i),Oa(a,i,p,l),i.child;case 6:return a===null&&nr&&(l=i.pendingProps,a=D(),p=a.ancestorInfo.current,l=p!=null?q4(l,p.tag,a.ancestorInfo.implicitRootScope):!0,a=Pn,(p=!a)||(p=dst(a,i.pendingProps,Jc),p!==null?(i.stateNode=p,Da=i,Pn=null,p=!0):p=!1,p=!p),p&&(l&&X4(i,a),xh(i))),null;case 13:return eae(a,i,l);case 4:return T(i,i.stateNode.containerInfo),p=i.pendingProps,a===null?i.child=Qb(i,null,p,l):Oa(a,i,p,l),i.child;case 11:return Goe(a,i,i.type,i.pendingProps,l);case 7:return Oa(a,i,i.pendingProps,l),i.child;case 8:return Oa(a,i,i.pendingProps.children,l),i.child;case 12:return i.flags|=4,i.flags|=2048,p=i.stateNode,p.effectDuration=-0,p.passiveEffectDuration=-0,Oa(a,i,i.pendingProps.children,l),i.child;case 10:return p=i.type,b=i.pendingProps,w=b.value,\"value\"in b||Fce||(Fce=!0,console.error(\"The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?\")),vh(i,p,w),Oa(a,i,b.children,l),i.child;case 9:return b=i.type._context,p=i.pendingProps.children,typeof p!=\"function\"&&console.error(\"A context consumer was rendered with multiple children, or a child that isn\\'t a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.\"),Pb(i),b=Hn(b),p=Tq(p,b,void 0),i.flags|=1,Oa(a,i,p,l),i.child;case 14:return Voe(a,i,i.type,i.pendingProps,l);case 15:return Koe(a,i,i.type,i.pendingProps,l);case 19:return rae(a,i,l);case 31:return Eit(a,i,l);case 22:return Woe(a,i,l,i.pendingProps);case 24:return Pb(i),p=Hn(Ho),a===null?(b=sF(),b===null&&(b=mn,w=oF(),b.pooledCache=w,Rb(w),w!==null&&(b.pooledCacheLanes|=l),b=w),i.memoizedState={parent:p,cache:b},uF(i),vh(i,Ho,b)):((a.lanes&l)!==0&&(lF(a,i),C8(i,null,null,l),S8()),b=a.memoizedState,w=i.memoizedState,b.parent!==p?(b={parent:p,cache:p},i.memoizedState=b,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=b),vh(i,Ho,p)):(p=w.cache,vh(i,Ho,p),p!==b.cache&&nF(i,[Ho],l,!0))),Oa(a,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(\"Unknown unit of work tag (\"+i.tag+\"). This error is likely caused by a bug in React. Please file an issue.\")}function Ep(a){a.flags|=4}function ej(a,i,l,p,b){if((i=(a.mode&$ct)!==mt)&&(i=!1),i){if(a.flags|=16777216,(b&335544128)===b)if(a.stateNode.complete)a.flags|=8192;else if(Nae())a.flags|=8192;else throw Wb=v7,kq}else a.flags&=-16777217}function nae(a,i){if(i.type!==\"stylesheet\"||(i.state.loading&ru)!==i1)a.flags&=-16777217;else if(a.flags|=16777216,!Rie(i))if(Nae())a.flags|=8192;else throw Wb=v7,kq}function Bk(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?jr():536870912,a.lanes|=i,e1|=i)}function I8(a,i){if(!nr)switch(a.tailMode){case\"hidden\":i=a.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?a.tail=null:l.sibling=null;break;case\"collapsed\":l=a.tail;for(var p=null;l!==null;)l.alternate!==null&&(p=l),l=l.sibling;p===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:p.sibling=null}}function An(a){var i=a.alternate!==null&&a.alternate.child===a.child,l=0,p=0;if(i)if((a.mode&Nt)!==mt){for(var b=a.selfBaseDuration,w=a.child;w!==null;)l|=w.lanes|w.childLanes,p|=w.subtreeFlags&65011712,p|=w.flags&65011712,b+=w.treeBaseDuration,w=w.sibling;a.treeBaseDuration=b}else for(b=a.child;b!==null;)l|=b.lanes|b.childLanes,p|=b.subtreeFlags&65011712,p|=b.flags&65011712,b.return=a,b=b.sibling;else if((a.mode&Nt)!==mt){b=a.actualDuration,w=a.selfBaseDuration;for(var S=a.child;S!==null;)l|=S.lanes|S.childLanes,p|=S.subtreeFlags,p|=S.flags,b+=S.actualDuration,w+=S.treeBaseDuration,S=S.sibling;a.actualDuration=b,a.treeBaseDuration=w}else for(b=a.child;b!==null;)l|=b.lanes|b.childLanes,p|=b.subtreeFlags,p|=b.flags,b.return=a,b=b.sibling;return a.subtreeFlags|=p,a.childLanes=l,i}function Sit(a,i,l){var p=i.pendingProps;switch(Xz(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return An(i),null;case 1:return An(i),null;case 3:return l=i.stateNode,p=null,a!==null&&(p=a.memoizedState.cache),i.memoizedState.cache!==p&&(i.flags|=2048),xp(Ho,i),P(i),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(a===null||a.child===null)&&(s2(i)?(tF(),Ep(i)):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,eF())),An(i),null;case 26:var b=i.type,w=i.memoizedState;return a===null?(Ep(i),w!==null?(An(i),nae(i,w)):(An(i),ej(i,b,null,p,l))):w?w!==a.memoizedState?(Ep(i),An(i),nae(i,w)):(An(i),i.flags&=-16777217):(a=a.memoizedProps,a!==p&&Ep(i),An(i),ej(i,b,a,p,l)),null;case 27:if(V(i),l=A(Ph.current),b=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==p&&Ep(i);else{if(!p){if(i.stateNode===null)throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");return An(i),null}a=D(),s2(i)?Gne(i,a):(a=Cie(b,p,l,a,!0),i.stateNode=a,Ep(i))}return An(i),null;case 5:if(V(i),b=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==p&&Ep(i);else{if(!p){if(i.stateNode===null)throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");return An(i),null}var S=D();if(s2(i))Gne(i,S);else{switch(w=A(Ph.current),Lz(b,S.ancestorInfo),S=S.context,w=Hk(w),S){case nv:w=w.createElementNS(_2,b);break;case V7:w=w.createElementNS(t7,b);break;default:switch(b){case\"svg\":w=w.createElementNS(_2,b);break;case\"math\":w=w.createElementNS(t7,b);break;case\"script\":w=w.createElement(\"div\"),w.innerHTML=\"<script><\\\\/script>\",w=w.removeChild(w.firstChild);break;case\"select\":w=typeof p.is==\"string\"?w.createElement(\"select\",{is:p.is}):w.createElement(\"select\"),p.multiple?w.multiple=!0:p.size&&(w.size=p.size);break;default:w=typeof p.is==\"string\"?w.createElement(b,{is:p.is}):w.createElement(b),b.indexOf(\"-\")===-1&&(b!==b.toLowerCase()&&console.error(\"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.\",b),Object.prototype.toString.call(w)!==\"[object HTMLUnknownElement]\"||cl.call(fue,b)||(fue[b]=!0,console.error(\"The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.\",b)))}}w[Ua]=i,w[Oi]=p;e:for(S=i.child;S!==null;){if(S.tag===5||S.tag===6)w.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===i)break e;for(;S.sibling===null;){if(S.return===null||S.return===i)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}i.stateNode=w;e:switch(Na(w,b,p),b){case\"button\":case\"input\":case\"select\":case\"textarea\":p=!!p.autoFocus;break e;case\"img\":p=!0;break e;default:p=!1}p&&Ep(i)}}return An(i),ej(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,l),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==p&&Ep(i);else{if(typeof p!=\"string\"&&i.stateNode===null)throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");if(a=A(Ph.current),l=D(),s2(i)){if(a=i.stateNode,l=i.memoizedProps,b=!zf,p=null,w=Da,w!==null)switch(w.tag){case 3:b&&(b=Aie(a,l,p),b!==null&&(Bb(i,0).serverProps=b));break;case 27:case 5:p=w.memoizedProps,b&&(b=Aie(a,l,p),b!==null&&(Bb(i,0).serverProps=b))}a[Ua]=i,a=!!(a.nodeValue===l||p!==null&&p.suppressHydrationWarning===!0||cie(a.nodeValue,l)),a||xh(i,!0)}else b=l.ancestorInfo.current,b!=null&&q4(p,b.tag,l.ancestorInfo.implicitRootScope),a=Hk(a).createTextNode(p),a[Ua]=i,i.stateNode=a}return An(i),null;case 31:if(l=i.memoizedState,a===null||a.memoizedState!==null){if(p=s2(i),l!==null){if(a===null){if(!p)throw Error(\"A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.\");if(a=i.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(\"Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.\");a[Ua]=i,An(i),(i.mode&Nt)!==mt&&l!==null&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration))}else tF(),Ib(),(i.flags&128)===0&&(l=i.memoizedState=null),i.flags|=4,An(i),(i.mode&Nt)!==mt&&l!==null&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration));a=!1}else l=eF(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=l),a=!0;if(!a)return i.flags&256?(lc(i),i):(lc(i),null);if((i.flags&128)!==0)throw Error(\"Client rendering an Activity suspended it again. This is a bug in React.\")}return An(i),null;case 13:if(p=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(b=p,w=s2(i),b!==null&&b.dehydrated!==null){if(a===null){if(!w)throw Error(\"A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.\");if(w=i.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(\"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.\");w[Ua]=i,An(i),(i.mode&Nt)!==mt&&b!==null&&(b=i.child,b!==null&&(i.treeBaseDuration-=b.treeBaseDuration))}else tF(),Ib(),(i.flags&128)===0&&(b=i.memoizedState=null),i.flags|=4,An(i),(i.mode&Nt)!==mt&&b!==null&&(b=i.child,b!==null&&(i.treeBaseDuration-=b.treeBaseDuration));b=!1}else b=eF(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=b),b=!0;if(!b)return i.flags&256?(lc(i),i):(lc(i),null)}return lc(i),(i.flags&128)!==0?(i.lanes=l,(i.mode&Nt)!==mt&&w8(i),i):(l=p!==null,a=a!==null&&a.memoizedState!==null,l&&(p=i.child,b=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(b=p.alternate.memoizedState.cachePool.pool),w=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(w=p.memoizedState.cachePool.pool),w!==b&&(p.flags|=2048)),l!==a&&l&&(i.child.flags|=8192),Bk(i,i.updateQueue),An(i),(i.mode&Nt)!==mt&&l&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration)),null);case 4:return P(i),a===null&&bj(i.stateNode.containerInfo),An(i),null;case 10:return xp(i.type,i),An(i),null;case 19:if(re(So,i),p=i.memoizedState,p===null)return An(i),null;if(b=(i.flags&128)!==0,w=p.rendering,w===null)if(b)I8(p,!1);else{if(Kn!==Dp||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(w=dk(a),w!==null){for(i.flags|=128,I8(p,!1),a=w.updateQueue,i.updateQueue=a,Bk(i,a),i.subtreeFlags=0,a=l,l=i.child;l!==null;)Lne(l,a),l=l.sibling;return H(So,So.current&G2|xA,i),nr&&gp(i,p.treeForkCount),i.child}a=a.sibling}p.tail!==null&&ma()>M7&&(i.flags|=128,b=!0,I8(p,!1),i.lanes=4194304)}else{if(!b)if(a=dk(w),a!==null){if(i.flags|=128,b=!0,a=a.updateQueue,i.updateQueue=a,Bk(i,a),I8(p,!0),p.tail===null&&p.tailMode===\"hidden\"&&!w.alternate&&!nr)return An(i),null}else 2*ma()-p.renderingStartTime>M7&&l!==536870912&&(i.flags|=128,b=!0,I8(p,!1),i.lanes=4194304);p.isBackwards?(w.sibling=i.child,i.child=w):(a=p.last,a!==null?a.sibling=w:i.child=w,p.last=w)}return p.tail!==null?(a=p.tail,p.rendering=a,p.tail=a.sibling,p.renderingStartTime=ma(),a.sibling=null,l=So.current,l=b?l&G2|xA:l&G2,H(So,l,i),nr&&gp(i,p.treeForkCount),a):(An(i),null);case 22:case 23:return lc(i),dF(i),p=i.memoizedState!==null,a!==null?a.memoizedState!==null!==p&&(i.flags|=8192):p&&(i.flags|=8192),p?(l&536870912)!==0&&(i.flags&128)===0&&(An(i),i.subtreeFlags&6&&(i.flags|=8192)):An(i),l=i.updateQueue,l!==null&&Bk(i,l.retryQueue),l=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),p=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),p!==l&&(i.flags|=2048),a!==null&&re(Vb,i),null;case 24:return l=null,a!==null&&(l=a.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),xp(Ho,i),An(i),null;case 25:return null;case 30:return null}throw Error(\"Unknown unit of work tag (\"+i.tag+\"). This error is likely caused by a bug in React. Please file an issue.\")}function Cit(a,i){switch(Xz(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&Nt)!==mt&&w8(i),i):null;case 3:return xp(Ho,i),P(i),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return V(i),null;case 31:if(i.memoizedState!==null){if(lc(i),i.alternate===null)throw Error(\"Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.\");Ib()}return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&Nt)!==mt&&w8(i),i):null;case 13:if(lc(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(\"Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.\");Ib()}return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&Nt)!==mt&&w8(i),i):null;case 19:return re(So,i),null;case 4:return P(i),null;case 10:return xp(i.type,i),null;case 22:case 23:return lc(i),dF(i),a!==null&&re(Vb,i),a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&Nt)!==mt&&w8(i),i):null;case 24:return xp(Ho,i),null;case 25:return null;default:return null}}function oae(a,i){switch(Xz(i),i.tag){case 3:xp(Ho,i),P(i);break;case 26:case 27:case 5:V(i);break;case 4:P(i);break;case 31:i.memoizedState!==null&&lc(i);break;case 13:lc(i);break;case 19:re(So,i);break;case 10:xp(i.type,i);break;case 22:case 23:lc(i),dF(i),a!==null&&re(Vb,i);break;case 24:xp(Ho,i)}}function _f(a){return(a.mode&Nt)!==mt}function aae(a,i){_f(a)?(Tf(),P8(i,a),Cf()):P8(i,a)}function tj(a,i,l){_f(a)?(Tf(),p2(l,a,i),Cf()):p2(l,a,i)}function P8(a,i){try{var l=i.updateQueue,p=l!==null?l.lastEffect:null;if(p!==null){var b=p.next;l=b;do{if((l.tag&a)===a&&(p=void 0,(a&Hi)!==E7&&(ev=!0),p=Te(i,Qct,l),(a&Hi)!==E7&&(ev=!1),p!==void 0&&typeof p!=\"function\")){var w=void 0;w=(l.tag&gc)!==0?\"useLayoutEffect\":(l.tag&Hi)!==0?\"useInsertionEffect\":\"useEffect\";var S=void 0;S=p===null?\" You returned null. If your effect does not require clean up, return undefined (or nothing).\":typeof p.then==\"function\"?`\\n\\nIt looks like you wrote `+w+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\\n\\n`+w+`(() => {\\n  async function fetchData() {\\n    // You can await here\\n    const response = await MyAPI.getData(someId);\\n    // ...\\n  }\\n  fetchData();\\n}, [someId]); // Or [] if effect doesn\\'t need props or state\\n\\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:\" You returned: \"+p,Te(i,function(k,F){console.error(\"%s must not return anything besides a function, which is used for clean-up.%s\",k,F)},w,S)}l=l.next}while(l!==b)}}catch(k){zr(i,i.return,k)}}function p2(a,i,l){try{var p=i.updateQueue,b=p!==null?p.lastEffect:null;if(b!==null){var w=b.next;p=w;do{if((p.tag&a)===a){var S=p.inst,k=S.destroy;k!==void 0&&(S.destroy=void 0,(a&Hi)!==E7&&(ev=!0),b=i,Te(b,Zct,b,l,k),(a&Hi)!==E7&&(ev=!1))}p=p.next}while(p!==w)}}catch(F){zr(i,i.return,F)}}function iae(a,i){_f(a)?(Tf(),P8(i,a),Cf()):P8(i,a)}function rj(a,i,l){_f(a)?(Tf(),p2(l,a,i),Cf()):p2(l,a,i)}function sae(a){var i=a.updateQueue;if(i!==null){var l=a.stateNode;a.type.defaultProps||\"ref\"in a.memoizedProps||Q2||(l.props!==a.memoizedProps&&console.error(\"Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",W(a)||\"instance\"),l.state!==a.memoizedState&&console.error(\"Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",W(a)||\"instance\"));try{Te(a,uoe,i,l)}catch(p){zr(a,a.return,p)}}}function Tit(a,i,l){return a.getSnapshotBeforeUpdate(i,l)}function _it(a,i){var l=i.memoizedProps,p=i.memoizedState;i=a.stateNode,a.type.defaultProps||\"ref\"in a.memoizedProps||Q2||(i.props!==a.memoizedProps&&console.error(\"Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",W(a)||\"instance\"),i.state!==a.memoizedState&&console.error(\"Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",W(a)||\"instance\"));try{var b=Ub(a.type,l),w=Te(a,Tit,i,b,p);l=jce,w!==void 0||l.has(a.type)||(l.add(a.type),Te(a,function(){console.error(\"%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.\",W(a))})),i.__reactInternalSnapshotBeforeUpdate=w}catch(S){zr(a,a.return,S)}}function cae(a,i,l){l.props=Ub(a.type,a.memoizedProps),l.state=a.memoizedState,_f(a)?(Tf(),Te(a,sce,a,i,l),Cf()):Te(a,sce,a,i,l)}function kit(a){var i=a.ref;if(i!==null){switch(a.tag){case 26:case 27:case 5:var l=a.stateNode;break;case 30:l=a.stateNode;break;default:l=a.stateNode}if(typeof i==\"function\")if(_f(a))try{Tf(),a.refCleanup=i(l)}finally{Cf()}else a.refCleanup=i(l);else typeof i==\"string\"?console.error(\"String refs are no longer supported.\"):i.hasOwnProperty(\"current\")||console.error(\"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().\",W(a)),i.current=l}}function R8(a,i){try{Te(a,kit,a)}catch(l){zr(a,i,l)}}function kf(a,i){var l=a.ref,p=a.refCleanup;if(l!==null)if(typeof p==\"function\")try{if(_f(a))try{Tf(),Te(a,p)}finally{Cf(a)}else Te(a,p)}catch(b){zr(a,i,b)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof l==\"function\")try{if(_f(a))try{Tf(),Te(a,l,null)}finally{Cf(a)}else Te(a,l,null)}catch(b){zr(a,i,b)}else l.current=null}function uae(a,i,l,p){var b=a.memoizedProps,w=b.id,S=b.onCommit;b=b.onRender,i=i===null?\"mount\":\"update\",y7&&(i=\"nested-update\"),typeof b==\"function\"&&b(w,i,a.actualDuration,a.treeBaseDuration,a.actualStartTime,l),typeof S==\"function\"&&S(w,i,p,l)}function Bit(a,i,l,p){var b=a.memoizedProps;a=b.id,b=b.onPostCommit,i=i===null?\"mount\":\"update\",y7&&(i=\"nested-update\"),typeof b==\"function\"&&b(a,i,p,l)}function lae(a){var i=a.type,l=a.memoizedProps,p=a.stateNode;try{Te(a,Xit,p,i,l,a)}catch(b){zr(a,a.return,b)}}function nj(a,i,l){try{Te(a,tst,a.stateNode,a.type,l,i,a)}catch(p){zr(a,a.return,p)}}function fae(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Bh(a.type)||a.tag===4}function oj(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||fae(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Bh(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function aj(a,i,l){var p=a.tag;if(p===5||p===6)a=a.stateNode,i?(gie(l),(l.nodeType===9?l.body:l.nodeName===\"HTML\"?l.ownerDocument.body:l).insertBefore(a,i)):(gie(l),i=l.nodeType===9?l.body:l.nodeName===\"HTML\"?l.ownerDocument.body:l,i.appendChild(a),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=yp));else if(p!==4&&(p===27&&Bh(a.type)&&(l=a.stateNode,i=null),a=a.child,a!==null))for(aj(a,i,l),a=a.sibling;a!==null;)aj(a,i,l),a=a.sibling}function Ik(a,i,l){var p=a.tag;if(p===5||p===6)a=a.stateNode,i?l.insertBefore(a,i):l.appendChild(a);else if(p!==4&&(p===27&&Bh(a.type)&&(l=a.stateNode),a=a.child,a!==null))for(Ik(a,i,l),a=a.sibling;a!==null;)Ik(a,i,l),a=a.sibling}function Iit(a){for(var i,l=a.return;l!==null;){if(fae(l)){i=l;break}l=l.return}if(i==null)throw Error(\"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\");switch(i.tag){case 27:i=i.stateNode,l=oj(a),Ik(a,l,i);break;case 5:l=i.stateNode,i.flags&32&&(bie(l),i.flags&=-33),i=oj(a),Ik(a,i,l);break;case 3:case 4:i=i.stateNode.containerInfo,l=oj(a),aj(a,l,i);break;default:throw Error(\"Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.\")}}function dae(a){var i=a.stateNode,l=a.memoizedProps;try{Te(a,bst,a.type,l,i,a)}catch(p){zr(a,a.return,p)}}function pae(a,i){return i.tag===31?(i=i.memoizedState,a.memoizedState!==null&&i===null):i.tag===13?(a=a.memoizedState,i=i.memoizedState,a!==null&&a.dehydrated!==null&&(i===null||i.dehydrated===null)):i.tag===3?a.memoizedState.isDehydrated&&(i.flags&256)===0:!1}function Pit(a,i){if(a=a.containerInfo,a$=Z7,a=Bne(a),jz(a)){if(\"selectionStart\"in a)var l={start:a.selectionStart,end:a.selectionEnd};else e:{l=(l=a.ownerDocument)&&l.defaultView||window;var p=l.getSelection&&l.getSelection();if(p&&p.rangeCount!==0){l=p.anchorNode;var b=p.anchorOffset,w=p.focusNode;p=p.focusOffset;try{l.nodeType,w.nodeType}catch{l=null;break e}var S=0,k=-1,F=-1,$=0,ce=0,ue=a,te=null;t:for(;;){for(var pe;ue!==l||b!==0&&ue.nodeType!==3||(k=S+b),ue!==w||p!==0&&ue.nodeType!==3||(F=S+p),ue.nodeType===3&&(S+=ue.nodeValue.length),(pe=ue.firstChild)!==null;)te=ue,ue=pe;for(;;){if(ue===a)break t;if(te===l&&++$===b&&(k=S),te===w&&++ce===p&&(F=S),(pe=ue.nextSibling)!==null)break;ue=te,te=ue.parentNode}ue=pe}l=k===-1||F===-1?null:{start:k,end:F}}else l=null}l=l||{start:0,end:0}}else l=null;for(i$={focusedElem:a,selectionRange:l},Z7=!1,ya=i;ya!==null;)if(i=ya,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,ya=a;else for(;ya!==null;){switch(a=i=ya,l=a.alternate,b=a.flags,a.tag){case 0:if((b&4)!==0&&(a=a.updateQueue,a=a!==null?a.events:null,a!==null))for(l=0;l<a.length;l++)b=a[l],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:(b&1024)!==0&&l!==null&&_it(a,l);break;case 3:if((b&1024)!==0){if(a=a.stateNode.containerInfo,l=a.nodeType,l===9)Cj(a);else if(l===1)switch(a.nodeName){case\"HEAD\":case\"HTML\":case\"BODY\":Cj(a);break;default:a.textContent=\"\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((b&1024)!==0)throw Error(\"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\")}if(a=i.sibling,a!==null){a.return=i.return,ya=a;break}ya=i.return}}function mae(a,i,l){var p=cc(),b=wf(),w=Af(),S=Sf(),k=l.flags;switch(l.tag){case 0:case 11:case 15:Bf(a,l),k&4&&aae(l,gc|eu);break;case 1:if(Bf(a,l),k&4)if(a=l.stateNode,i===null)l.type.defaultProps||\"ref\"in l.memoizedProps||Q2||(a.props!==l.memoizedProps&&console.error(\"Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",W(l)||\"instance\"),a.state!==l.memoizedState&&console.error(\"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",W(l)||\"instance\")),_f(l)?(Tf(),Te(l,_q,l,a),Cf()):Te(l,_q,l,a);else{var F=Ub(l.type,i.memoizedProps);i=i.memoizedState,l.type.defaultProps||\"ref\"in l.memoizedProps||Q2||(a.props!==l.memoizedProps&&console.error(\"Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",W(l)||\"instance\"),a.state!==l.memoizedState&&console.error(\"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",W(l)||\"instance\")),_f(l)?(Tf(),Te(l,oce,l,a,F,i,a.__reactInternalSnapshotBeforeUpdate),Cf()):Te(l,oce,l,a,F,i,a.__reactInternalSnapshotBeforeUpdate)}k&64&&sae(l),k&512&&R8(l,l.return);break;case 3:if(i=vp(),Bf(a,l),k&64&&(k=l.updateQueue,k!==null)){if(F=null,l.child!==null)switch(l.child.tag){case 27:case 5:F=l.child.stateNode;break;case 1:F=l.child.stateNode}try{Te(l,uoe,k,F)}catch(ce){zr(l,l.return,ce)}}a.effectDuration+=nk(i);break;case 27:i===null&&k&4&&dae(l);case 26:case 5:if(Bf(a,l),i===null){if(k&4)lae(l);else if(k&64){a=l.type,i=l.memoizedProps,F=l.stateNode;try{Te(l,est,F,a,i,l)}catch(ce){zr(l,l.return,ce)}}}k&512&&R8(l,l.return);break;case 12:if(k&4){k=vp(),Bf(a,l),a=l.stateNode,a.effectDuration+=v8(k);try{Te(l,uae,l,i,Lh,a.effectDuration)}catch(ce){zr(l,l.return,ce)}}else Bf(a,l);break;case 31:Bf(a,l),k&4&&bae(a,l);break;case 13:Bf(a,l),k&4&&gae(a,l),k&64&&(a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(k=zit.bind(null,l),pst(a,k))));break;case 22:if(k=l.memoizedState!==null||Up,!k){i=i!==null&&i.memoizedState!==null||jo,F=Up;var $=jo;Up=k,(jo=i)&&!$?(If(a,l,(l.subtreeFlags&8772)!==0),(l.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&K4(l,ct,lt)):Bf(a,l),Up=F,jo=$}break;case 30:break;default:Bf(a,l)}(l.mode&Nt)!==mt&&0<=ct&&0<=lt&&((no||.05<Vn)&&xf(l,ct,lt,Vn,Ln),l.alternate===null&&l.return!==null&&l.return.alternate!==null&&.05<lt-ct&&(pae(l.return.alternate,l.return)||gf(l,ct,lt,\"Mount\"))),uc(p),Ef(b),Ln=w,no=S}function hae(a){var i=a.alternate;i!==null&&(a.alternate=null,hae(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&_e(i)),a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Ap(a,i,l){for(l=l.child;l!==null;)yae(a,i,l),l=l.sibling}function yae(a,i,l){if(ii&&typeof ii.onCommitFiberUnmount==\"function\")try{ii.onCommitFiberUnmount(C2,l)}catch($){Uf||(Uf=!0,console.error(\"React instrumentation encountered an error: %o\",$))}var p=cc(),b=wf(),w=Af(),S=Sf();switch(l.tag){case 26:jo||kf(l,i),Ap(a,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(a=l.stateNode,a.parentNode.removeChild(a));break;case 27:jo||kf(l,i);var k=qo,F=As;Bh(l.type)&&(qo=l.stateNode,As=!1),Ap(a,i,l),Te(l,F8,l.stateNode),qo=k,As=F;break;case 5:jo||kf(l,i);case 6:if(k=qo,F=As,qo=null,Ap(a,i,l),qo=k,As=F,qo!==null)if(As)try{Te(l,ost,qo,l.stateNode)}catch($){zr(l,i,$)}else try{Te(l,nst,qo,l.stateNode)}catch($){zr(l,i,$)}break;case 18:qo!==null&&(As?(a=qo,xie(a.nodeType===9?a.body:a.nodeName===\"HTML\"?a.ownerDocument.body:a,l.stateNode),w2(a)):xie(qo,l.stateNode));break;case 4:k=qo,F=As,qo=l.stateNode.containerInfo,As=!0,Ap(a,i,l),qo=k,As=F;break;case 0:case 11:case 14:case 15:p2(Hi,l,i),jo||tj(l,i,gc),Ap(a,i,l);break;case 1:jo||(kf(l,i),k=l.stateNode,typeof k.componentWillUnmount==\"function\"&&cae(l,i,k)),Ap(a,i,l);break;case 21:Ap(a,i,l);break;case 22:jo=(k=jo)||l.memoizedState!==null,Ap(a,i,l),jo=k;break;default:Ap(a,i,l)}(l.mode&Nt)!==mt&&0<=ct&&0<=lt&&(no||.05<Vn)&&xf(l,ct,lt,Vn,Ln),uc(p),Ef(b),Ln=w,no=S}function bae(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Te(i,hst,a)}catch(l){zr(i,i.return,l)}}}function gae(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Te(i,yst,a)}catch(l){zr(i,i.return,l)}}function Rit(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new qce),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new qce),i;default:throw Error(\"Unexpected Suspense handler tag (\"+a.tag+\"). This is a bug in React.\")}}function Pk(a,i){var l=Rit(a);i.forEach(function(p){if(!l.has(p)){if(l.add(p),Df)if(Z2!==null&&J2!==null)U8(J2,Z2);else throw Error(\"Expected finished root and lanes to be set. This is a bug in React.\");var b=Fit.bind(null,a,p);p.then(b,b)}})}function ws(a,i){var l=i.deletions;if(l!==null)for(var p=0;p<l.length;p++){var b=a,w=i,S=l[p],k=cc(),F=w;e:for(;F!==null;){switch(F.tag){case 27:if(Bh(F.type)){qo=F.stateNode,As=!1;break e}break;case 5:qo=F.stateNode,As=!1;break e;case 3:case 4:qo=F.stateNode.containerInfo,As=!0;break e}F=F.return}if(qo===null)throw Error(\"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\");yae(b,w,S),qo=null,As=!1,(S.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&gf(S,ct,lt,\"Unmount\"),uc(k),b=S,w=b.alternate,w!==null&&(w.return=null),b.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)xae(i,a),i=i.sibling}function xae(a,i){var l=cc(),p=wf(),b=Af(),w=Sf(),S=a.alternate,k=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ws(i,a),Es(a),k&4&&(p2(Hi|eu,a,a.return),P8(Hi|eu,a),tj(a,a.return,gc|eu));break;case 1:if(ws(i,a),Es(a),k&512&&(jo||S===null||kf(S,S.return)),k&64&&Up&&(k=a.updateQueue,k!==null&&(S=k.callbacks,S!==null))){var F=k.shared.hiddenCallbacks;k.shared.hiddenCallbacks=F===null?S:F.concat(S)}break;case 26:if(F=pl,ws(i,a),Es(a),k&512&&(jo||S===null||kf(S,S.return)),k&4){var $=S!==null?S.memoizedState:null;if(k=a.memoizedState,S===null)if(k===null)if(a.stateNode===null){e:{k=a.type,S=a.memoizedProps,F=F.ownerDocument||F;t:switch(k){case\"title\":$=F.getElementsByTagName(\"title\")[0],(!$||$[W8]||$[Ua]||$.namespaceURI===_2||$.hasAttribute(\"itemprop\"))&&($=F.createElement(k),F.head.insertBefore($,F.querySelector(\"head > title\"))),Na($,k,S),$[Ua]=a,Ne($),k=$;break e;case\"link\":var ce=Iie(\"link\",\"href\",F).get(k+(S.href||\"\"));if(ce){for(var ue=0;ue<ce.length;ue++)if($=ce[ue],$.getAttribute(\"href\")===(S.href==null||S.href===\"\"?null:S.href)&&$.getAttribute(\"rel\")===(S.rel==null?null:S.rel)&&$.getAttribute(\"title\")===(S.title==null?null:S.title)&&$.getAttribute(\"crossorigin\")===(S.crossOrigin==null?null:S.crossOrigin)){ce.splice(ue,1);break t}}$=F.createElement(k),Na($,k,S),F.head.appendChild($);break;case\"meta\":if(ce=Iie(\"meta\",\"content\",F).get(k+(S.content||\"\"))){for(ue=0;ue<ce.length;ue++)if($=ce[ue],rr(S.content,\"content\"),$.getAttribute(\"content\")===(S.content==null?null:\"\"+S.content)&&$.getAttribute(\"name\")===(S.name==null?null:S.name)&&$.getAttribute(\"property\")===(S.property==null?null:S.property)&&$.getAttribute(\"http-equiv\")===(S.httpEquiv==null?null:S.httpEquiv)&&$.getAttribute(\"charset\")===(S.charSet==null?null:S.charSet)){ce.splice(ue,1);break t}}$=F.createElement(k),Na($,k,S),F.head.appendChild($);break;default:throw Error(\\'getNodesForType encountered a type it did not expect: \"\\'+k+\\'\". This is a bug in React.\\')}$[Ua]=a,Ne($),k=$}a.stateNode=k}else Pie(F,a.type,a.stateNode);else a.stateNode=Bie(F,k,a.memoizedProps);else $!==k?($===null?S.stateNode!==null&&(S=S.stateNode,S.parentNode.removeChild(S)):$.count--,k===null?Pie(F,a.type,a.stateNode):Bie(F,k,a.memoizedProps)):k===null&&a.stateNode!==null&&nj(a,a.memoizedProps,S.memoizedProps)}break;case 27:ws(i,a),Es(a),k&512&&(jo||S===null||kf(S,S.return)),S!==null&&k&4&&nj(a,a.memoizedProps,S.memoizedProps);break;case 5:if(ws(i,a),Es(a),k&512&&(jo||S===null||kf(S,S.return)),a.flags&32){F=a.stateNode;try{Te(a,bie,F)}catch(qe){zr(a,a.return,qe)}}k&4&&a.stateNode!=null&&(F=a.memoizedProps,nj(a,F,S!==null?S.memoizedProps:F)),k&1024&&(zq=!0,a.type!==\"form\"&&console.error(\"Unexpected host component type. Expected a form. This is a bug in React.\"));break;case 6:if(ws(i,a),Es(a),k&4){if(a.stateNode===null)throw Error(\"This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.\");k=a.memoizedProps,S=S!==null?S.memoizedProps:k,F=a.stateNode;try{Te(a,rst,F,S,k)}catch(qe){zr(a,a.return,qe)}}break;case 3:if(F=vp(),K7=null,$=pl,pl=Lk(i.containerInfo),ws(i,a),pl=$,Es(a),k&4&&S!==null&&S.memoizedState.isDehydrated)try{Te(a,mst,i.containerInfo)}catch(qe){zr(a,a.return,qe)}zq&&(zq=!1,vae(a)),i.effectDuration+=nk(F);break;case 4:k=pl,pl=Lk(a.stateNode.containerInfo),ws(i,a),Es(a),pl=k;break;case 12:k=vp(),ws(i,a),Es(a),a.stateNode.effectDuration+=v8(k);break;case 31:ws(i,a),Es(a),k&4&&(k=a.updateQueue,k!==null&&(a.updateQueue=null,Pk(a,k)));break;case 13:ws(i,a),Es(a),a.child.flags&8192&&a.memoizedState!==null!=(S!==null&&S.memoizedState!==null)&&(R7=ma()),k&4&&(k=a.updateQueue,k!==null&&(a.updateQueue=null,Pk(a,k)));break;case 22:F=a.memoizedState!==null;var te=S!==null&&S.memoizedState!==null,pe=Up,Oe=jo;if(Up=pe||F,jo=Oe||te,ws(i,a),jo=Oe,Up=pe,te&&!F&&!pe&&!Oe&&(a.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&K4(a,ct,lt),Es(a),k&8192)e:for(i=a.stateNode,i._visibility=F?i._visibility&~nA:i._visibility|nA,!F||S===null||te||Up||jo||(Db(a),(a.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&gf(a,ct,lt,\"Disconnect\")),S=null,i=a;;){if(i.tag===5||i.tag===26){if(S===null){te=S=i;try{$=te.stateNode,F?Te(te,ist,$):Te(te,ust,te.stateNode,te.memoizedProps)}catch(qe){zr(te,te.return,qe)}}}else if(i.tag===6){if(S===null){te=i;try{ce=te.stateNode,F?Te(te,sst,ce):Te(te,lst,ce,te.memoizedProps)}catch(qe){zr(te,te.return,qe)}}}else if(i.tag===18){if(S===null){te=i;try{ue=te.stateNode,F?Te(te,ast,ue):Te(te,cst,te.stateNode)}catch(qe){zr(te,te.return,qe)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===a)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;S===i&&(S=null),i=i.return}S===i&&(S=null),i.sibling.return=i.return,i=i.sibling}k&4&&(k=a.updateQueue,k!==null&&(S=k.retryQueue,S!==null&&(k.retryQueue=null,Pk(a,S))));break;case 19:ws(i,a),Es(a),k&4&&(k=a.updateQueue,k!==null&&(a.updateQueue=null,Pk(a,k)));break;case 30:break;case 21:break;default:ws(i,a),Es(a)}(a.mode&Nt)!==mt&&0<=ct&&0<=lt&&((no||.05<Vn)&&xf(a,ct,lt,Vn,Ln),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<lt-ct&&(pae(a.return.alternate,a.return)||gf(a,ct,lt,\"Mount\"))),uc(l),Ef(p),Ln=b,no=w}function Es(a){var i=a.flags;if(i&2){try{Te(a,Iit,a)}catch(l){zr(a,a.return,l)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function vae(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;vae(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function Bf(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)mae(a,i.alternate,i),i=i.sibling}function wae(a){var i=cc(),l=wf(),p=Af(),b=Sf();switch(a.tag){case 0:case 11:case 14:case 15:tj(a,a.return,gc),Db(a);break;case 1:kf(a,a.return);var w=a.stateNode;typeof w.componentWillUnmount==\"function\"&&cae(a,a.return,w),Db(a);break;case 27:Te(a,F8,a.stateNode);case 26:case 5:kf(a,a.return),Db(a);break;case 22:a.memoizedState===null&&Db(a);break;case 30:Db(a);break;default:Db(a)}(a.mode&Nt)!==mt&&0<=ct&&0<=lt&&(no||.05<Vn)&&xf(a,ct,lt,Vn,Ln),uc(i),Ef(l),Ln=p,no=b}function Db(a){for(a=a.child;a!==null;)wae(a),a=a.sibling}function Eae(a,i,l,p){var b=cc(),w=wf(),S=Af(),k=Sf(),F=l.flags;switch(l.tag){case 0:case 11:case 15:If(a,l,p),aae(l,gc);break;case 1:if(If(a,l,p),i=l.stateNode,typeof i.componentDidMount==\"function\"&&Te(l,_q,l,i),i=l.updateQueue,i!==null){a=l.stateNode;try{Te(l,mit,i,a)}catch($){zr(l,l.return,$)}}p&&F&64&&sae(l),R8(l,l.return);break;case 27:dae(l);case 26:case 5:If(a,l,p),p&&i===null&&F&4&&lae(l),R8(l,l.return);break;case 12:if(p&&F&4){F=vp(),If(a,l,p),p=l.stateNode,p.effectDuration+=v8(F);try{Te(l,uae,l,i,Lh,p.effectDuration)}catch($){zr(l,l.return,$)}}else If(a,l,p);break;case 31:If(a,l,p),p&&F&4&&bae(a,l);break;case 13:If(a,l,p),p&&F&4&&gae(a,l);break;case 22:l.memoizedState===null&&If(a,l,p),R8(l,l.return);break;case 30:break;default:If(a,l,p)}(l.mode&Nt)!==mt&&0<=ct&&0<=lt&&(no||.05<Vn)&&xf(l,ct,lt,Vn,Ln),uc(b),Ef(w),Ln=S,no=k}function If(a,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;)Eae(a,i.alternate,i,l),i=i.sibling}function ij(a,i){var l=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==l&&(a!=null&&Rb(a),l!=null&&x8(l))}function sj(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(Rb(i),a!=null&&x8(a))}function sl(a,i,l,p,b){if(i.subtreeFlags&10256||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child))for(i=i.child;i!==null;){var w=i.sibling;Aae(a,i,l,p,w!==null?w.actualStartTime:b),i=w}}function Aae(a,i,l,p,b){var w=cc(),S=wf(),k=Af(),F=Sf(),$=Nh,ce=i.flags;switch(i.tag){case 0:case 11:case 15:(i.mode&Nt)!==mt&&0<i.actualStartTime&&(i.flags&1)!==0&&W4(i,i.actualStartTime,b,aa,l),sl(a,i,l,p,b),ce&2048&&iae(i,Li|eu);break;case 1:(i.mode&Nt)!==mt&&0<i.actualStartTime&&((i.flags&128)!==0?$z(i,i.actualStartTime,b,[]):(i.flags&1)!==0&&W4(i,i.actualStartTime,b,aa,l)),sl(a,i,l,p,b);break;case 3:var ue=vp(),te=aa;aa=i.alternate!==null&&i.alternate.memoizedState.isDehydrated&&(i.flags&256)===0,sl(a,i,l,p,b),aa=te,ce&2048&&(l=null,i.alternate!==null&&(l=i.alternate.memoizedState.cache),p=i.memoizedState.cache,p!==l&&(Rb(p),l!=null&&x8(l))),a.passiveEffectDuration+=nk(ue);break;case 12:if(ce&2048){ce=vp(),sl(a,i,l,p,b),a=i.stateNode,a.passiveEffectDuration+=v8(ce);try{Te(i,Bit,i,i.alternate,Lh,a.passiveEffectDuration)}catch(pe){zr(i,i.return,pe)}}else sl(a,i,l,p,b);break;case 31:ce=aa,ue=i.alternate!==null?i.alternate.memoizedState:null,te=i.memoizedState,ue!==null&&te===null?(te=i.deletions,te!==null&&0<te.length&&te[0].tag===18?(aa=!1,ue=ue.hydrationErrors,ue!==null&&$z(i,i.actualStartTime,b,ue)):aa=!0):aa=!1,sl(a,i,l,p,b),aa=ce;break;case 13:ce=aa,ue=i.alternate!==null?i.alternate.memoizedState:null,te=i.memoizedState,ue===null||ue.dehydrated===null||te!==null&&te.dehydrated!==null?aa=!1:(te=i.deletions,te!==null&&0<te.length&&te[0].tag===18?(aa=!1,ue=ue.hydrationErrors,ue!==null&&$z(i,i.actualStartTime,b,ue)):aa=!0),sl(a,i,l,p,b),aa=ce;break;case 23:break;case 22:te=i.stateNode,ue=i.alternate,i.memoizedState!==null?te._visibility&Tp?sl(a,i,l,p,b):M8(a,i,l,p,b):te._visibility&Tp?sl(a,i,l,p,b):(te._visibility|=Tp,m2(a,i,l,p,(i.subtreeFlags&10256)!==0||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child),b),(i.mode&Nt)===mt||aa||(a=i.actualStartTime,0<=a&&.05<b-a&&K4(i,a,b),0<=ct&&0<=lt&&.05<lt-ct&&K4(i,ct,lt))),ce&2048&&ij(ue,i);break;case 24:sl(a,i,l,p,b),ce&2048&&sj(i.alternate,i);break;default:sl(a,i,l,p,b)}(i.mode&Nt)!==mt&&((a=!aa&&i.alternate===null&&i.return!==null&&i.return.alternate!==null)&&(l=i.actualStartTime,0<=l&&.05<b-l&&gf(i,l,b,\"Mount\")),0<=ct&&0<=lt&&((no||.05<Vn)&&xf(i,ct,lt,Vn,Ln),a&&.05<lt-ct&&gf(i,ct,lt,\"Mount\"))),uc(w),Ef(S),Ln=k,no=F,Nh=$}function m2(a,i,l,p,b,w){for(b=b&&((i.subtreeFlags&10256)!==0||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child)),i=i.child;i!==null;){var S=i.sibling;Sae(a,i,l,p,b,S!==null?S.actualStartTime:w),i=S}}function Sae(a,i,l,p,b,w){var S=cc(),k=wf(),F=Af(),$=Sf(),ce=Nh;b&&(i.mode&Nt)!==mt&&0<i.actualStartTime&&(i.flags&1)!==0&&W4(i,i.actualStartTime,w,aa,l);var ue=i.flags;switch(i.tag){case 0:case 11:case 15:m2(a,i,l,p,b,w),iae(i,Li);break;case 23:break;case 22:var te=i.stateNode;i.memoizedState!==null?te._visibility&Tp?m2(a,i,l,p,b,w):M8(a,i,l,p,w):(te._visibility|=Tp,m2(a,i,l,p,b,w)),b&&ue&2048&&ij(i.alternate,i);break;case 24:m2(a,i,l,p,b,w),b&&ue&2048&&sj(i.alternate,i);break;default:m2(a,i,l,p,b,w)}(i.mode&Nt)!==mt&&0<=ct&&0<=lt&&(no||.05<Vn)&&xf(i,ct,lt,Vn,Ln),uc(S),Ef(k),Ln=F,no=$,Nh=ce}function M8(a,i,l,p,b){if(i.subtreeFlags&10256||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child))for(var w=i.child;w!==null;){i=w.sibling;var S=a,k=l,F=p,$=i!==null?i.actualStartTime:b,ce=Nh;(w.mode&Nt)!==mt&&0<w.actualStartTime&&(w.flags&1)!==0&&W4(w,w.actualStartTime,$,aa,k);var ue=w.flags;switch(w.tag){case 22:M8(S,w,k,F,$),ue&2048&&ij(w.alternate,w);break;case 24:M8(S,w,k,F,$),ue&2048&&sj(w.alternate,w);break;default:M8(S,w,k,F,$)}Nh=ce,w=i}}function h2(a,i,l){if(a.subtreeFlags&AA)for(a=a.child;a!==null;)Cae(a,i,l),a=a.sibling}function Cae(a,i,l){switch(a.tag){case 26:h2(a,i,l),a.flags&AA&&a.memoizedState!==null&&vst(l,pl,a.memoizedState,a.memoizedProps);break;case 5:h2(a,i,l);break;case 3:case 4:var p=pl;pl=Lk(a.stateNode.containerInfo),h2(a,i,l),pl=p;break;case 22:a.memoizedState===null&&(p=a.alternate,p!==null&&p.memoizedState!==null?(p=AA,AA=16777216,h2(a,i,l),AA=p):h2(a,i,l));break;default:h2(a,i,l)}}function Tae(a){var i=a.alternate;if(i!==null&&(a=i.child,a!==null)){i.child=null;do i=a.sibling,a.sibling=null,a=i;while(a!==null)}}function O8(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var p=i[l],b=cc();ya=p,Bae(p,a),(p.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&gf(p,ct,lt,\"Unmount\"),uc(b)}Tae(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)_ae(a),a=a.sibling}function _ae(a){var i=cc(),l=wf(),p=Af(),b=Sf();switch(a.tag){case 0:case 11:case 15:O8(a),a.flags&2048&&rj(a,a.return,Li|eu);break;case 3:var w=vp();O8(a),a.stateNode.passiveEffectDuration+=nk(w);break;case 12:w=vp(),O8(a),a.stateNode.passiveEffectDuration+=v8(w);break;case 22:w=a.stateNode,a.memoizedState!==null&&w._visibility&Tp&&(a.return===null||a.return.tag!==13)?(w._visibility&=~Tp,Rk(a),(a.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&gf(a,ct,lt,\"Disconnect\")):O8(a);break;default:O8(a)}(a.mode&Nt)!==mt&&0<=ct&&0<=lt&&(no||.05<Vn)&&xf(a,ct,lt,Vn,Ln),uc(i),Ef(l),no=b,Ln=p}function Rk(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var p=i[l],b=cc();ya=p,Bae(p,a),(p.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&gf(p,ct,lt,\"Unmount\"),uc(b)}Tae(a)}for(a=a.child;a!==null;)kae(a),a=a.sibling}function kae(a){var i=cc(),l=wf(),p=Af(),b=Sf();switch(a.tag){case 0:case 11:case 15:rj(a,a.return,Li),Rk(a);break;case 22:var w=a.stateNode;w._visibility&Tp&&(w._visibility&=~Tp,Rk(a));break;default:Rk(a)}(a.mode&Nt)!==mt&&0<=ct&&0<=lt&&(no||.05<Vn)&&xf(a,ct,lt,Vn,Ln),uc(i),Ef(l),no=b,Ln=p}function Bae(a,i){for(;ya!==null;){var l=ya,p=l,b=i,w=cc(),S=wf(),k=Af(),F=Sf();switch(p.tag){case 0:case 11:case 15:rj(p,b,Li);break;case 23:case 22:p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(b=p.memoizedState.cachePool.pool,b!=null&&Rb(b));break;case 24:x8(p.memoizedState.cache)}if((p.mode&Nt)!==mt&&0<=ct&&0<=lt&&(no||.05<Vn)&&xf(p,ct,lt,Vn,Ln),uc(w),Ef(S),no=F,Ln=k,p=l.child,p!==null)p.return=l,ya=p;else e:for(l=a;ya!==null;){if(p=ya,w=p.sibling,S=p.return,hae(p),p===l){ya=null;break e}if(w!==null){w.return=S,ya=w;break e}ya=S}}}function Mit(){tut.forEach(function(a){return a()})}function Iae(){var a=typeof IS_REACT_ACT_ENVIRONMENT<\"u\"?IS_REACT_ACT_ENVIRONMENT:void 0;return a||ye.actQueue===null||console.error(\"The current testing environment is not configured to support act(...)\"),a}function fc(a){if((hr&ia)!==ba&&Dt!==0)return Dt&-Dt;var i=ye.T;return i!==null?(i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(a),hj()):fe()}function Pae(){if(Cs===0)if((Dt&536870912)===0||nr){var a=Jk;Jk<<=1,(Jk&3932160)===0&&(Jk=262144),Cs=a}else Cs=536870912;return a=bc.current,a!==null&&(a.flags|=32),Cs}function ro(a,i,l){if(ev&&console.error(\"useInsertionEffect must not schedule updates.\"),Jq&&(U7=!0),(a===mn&&(Vr===Yb||Vr===Xb)||a.cancelPendingCommit!==null)&&(b2(a,0),_h(a,Dt,Cs,!1)),Ii(a,l),(hr&ia)!==ba&&a===mn){if(Nf)switch(i.tag){case 0:case 11:case 15:a=qt&&W(qt)||\"Unknown\",oue.has(a)||(oue.add(a),i=W(i)||\"Unknown\",console.error(\"Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render\",i,a,a));break;case 1:nue||(console.error(\"Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.\"),nue=!0)}}else Df&&qc(a,i,l),qit(i),a===mn&&((hr&ia)===ba&&(Wh|=l),Kn===Gh&&_h(a,Dt,Cs,!1)),Pf(a)}function Rae(a,i,l){if((hr&(ia|xc))!==ba)throw Error(\"Should not already be working.\");if(Dt!==0&&qt!==null){var p=qt,b=ma();switch(Zse){case TA:case Yb:var w=uA;In&&((p=p._debugTask)?p.run(console.timeStamp.bind(console,\"Suspended\",w,b,Vc,void 0,\"primary-light\")):console.timeStamp(\"Suspended\",w,b,Vc,void 0,\"primary-light\"));break;case Xb:w=uA,In&&((p=p._debugTask)?p.run(console.timeStamp.bind(console,\"Action\",w,b,Vc,void 0,\"primary-light\")):console.timeStamp(\"Action\",w,b,Vc,void 0,\"primary-light\"));break;default:In&&(p=b-uA,3>p||console.timeStamp(\"Blocked\",uA,b,Vc,void 0,5>p?\"primary-light\":10>p?\"primary\":100>p?\"primary-dark\":\"error\"))}}w=(l=!l&&(i&127)===0&&(i&a.expiredLanes)===0||Lr(a,i))?Nit(a,i):uj(a,i,!0);var S=l;do{if(w===Dp){Y2&&!l&&_h(a,i,0,!1),i=Vr,uA=Lo(),Zse=i;break}else{if(p=ma(),b=a.current.alternate,S&&!Oit(b)){ic(i),b=ha,w=p,!In||w<=b||(ho?ho.run(console.timeStamp.bind(console,\"Teared Render\",b,w,er,Qt,\"error\")):console.timeStamp(\"Teared Render\",b,w,er,Qt,\"error\")),Hb(i,p),w=uj(a,i,!1),S=!1;continue}if(w===Jb){if(S=i,a.errorRecoveryDisabledLanes&S)var k=0;else k=a.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){ic(i),Gz(ha,p,i,ho),Hb(i,p),i=k;e:{p=a,w=S,S=kA;var F=p.current.memoizedState.isDehydrated;if(F&&(b2(p,k).flags|=256),k=uj(p,k,!1),k!==Jb){if(qq&&!F){p.errorRecoveryDisabledLanes|=w,Wh|=w,w=Gh;break e}p=zi,zi=S,p!==null&&(zi===null?zi=p:zi.push.apply(zi,p))}w=k}if(S=!1,w!==Jb)continue;p=ma()}}if(w===CA){ic(i),Gz(ha,p,i,ho),Hb(i,p),b2(a,0),_h(a,i,0,!0);break}e:{switch(l=a,w){case Dp:case CA:throw Error(\"Root did not complete. This is a bug in React.\");case Gh:if((i&4194048)!==i)break;case k7:ic(i),Rne(ha,p,i,ho),Hb(i,p),b=i,(b&127)!==0?p7=p:(b&4194048)!==0&&(m7=p),_h(l,i,Cs,!Vh);break e;case Jb:zi=null;break;case _7:case $ce:break;default:throw Error(\"Unknown root exit status.\")}if(ye.actQueue!==null)lj(l,b,i,zi,BA,P7,Cs,Wh,e1,w,null,null,ha,p);else{if((i&62914560)===i&&(S=R7+Kce-ma(),10<S)){if(_h(l,i,Cs,!Vh),Hr(l,0,!0)!==0)break e;ml=i,l.timeoutHandle=due(Mae.bind(null,l,b,zi,BA,P7,i,Cs,Wh,e1,Vh,w,\"Throttled\",ha,p),S);break e}Mae(l,b,zi,BA,P7,i,Cs,Wh,e1,Vh,w,null,ha,p)}}}break}while(!0);Pf(a)}function Mae(a,i,l,p,b,w,S,k,F,$,ce,ue,te,pe){a.timeoutHandle=a1;var Oe=i.subtreeFlags,qe=null;if((Oe&8192||(Oe&16785408)===16785408)&&(qe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yp},Cae(i,w,qe),Oe=(w&62914560)===w?R7-ma():(w&4194048)===w?Vce-ma():0,Oe=wst(qe,Oe),Oe!==null)){ml=w,a.cancelPendingCommit=Oe(lj.bind(null,a,i,w,l,p,b,S,k,F,ce,qe,qe.waitingForViewTransition?\"Waiting for the previous Animation\":0<qe.count?0<qe.imgCount?\"Suspended on CSS and Images\":\"Suspended on CSS\":qe.imgCount===1?\"Suspended on an Image\":0<qe.imgCount?\"Suspended on Images\":null,te,pe)),_h(a,w,S,!$);return}lj(a,i,w,l,p,b,S,k,F,ce,qe,ue,te,pe)}function Oit(a){for(var i=a;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var p=0;p<l.length;p++){var b=l[p],w=b.getSnapshot;b=b.value;try{if(!Ui(w(),b))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function _h(a,i,l,p){i&=~$q,i&=~Wh,a.suspendedLanes|=i,a.pingedLanes&=~i,p&&(a.warmLanes|=i),p=a.expirationTimes;for(var b=i;0<b;){var w=31-Mi(b),S=1<<w;p[w]=-1,b&=~S}l!==0&&Ir(a,l,i)}function y2(){return(hr&(ia|xc))===ba?(D8(0,!1),!1):!0}function cj(){if(qt!==null){if(Vr===Ss)var a=qt.return;else a=qt,ek(),xF(a),q2=null,gA=0,a=qt;for(;a!==null;)oae(a.alternate,a),a=a.return;qt=null}}function Hb(a,i){(a&127)!==0&&(zh=i),(a&4194048)!==0&&(jf=i),(a&62914560)!==0&&(Wse=i),(a&2080374784)!==0&&(Qse=i)}function b2(a,i){In&&(console.timeStamp(\"Blocking Track\",.003,.003,\"Blocking\",Qt,\"primary-light\"),console.timeStamp(\"Transition Track\",.003,.003,\"Transition\",Qt,\"primary-light\"),console.timeStamp(\"Suspense Track\",.003,.003,\"Suspense\",Qt,\"primary-light\"),console.timeStamp(\"Idle Track\",.003,.003,\"Idle\",Qt,\"primary-light\"));var l=ha;if(ha=Lo(),Dt!==0&&0<l){if(ic(Dt),Kn===_7||Kn===Gh)Rne(l,ha,i,ho);else{var p=ha,b=ho;if(In&&!(p<=l)){var w=(i&738197653)===i?\"tertiary-dark\":\"primary-dark\",S=(i&536870912)===i?\"Prewarm\":(i&201326741)===i?\"Interrupted Hydration\":\"Interrupted Render\";b?b.run(console.timeStamp.bind(console,S,l,p,er,Qt,w)):console.timeStamp(S,l,p,er,Qt,w)}}Hb(Dt,ha)}if(l=ho,ho=null,(i&127)!==0){ho=iA,b=0<=Ff&&Ff<zh?zh:Ff,p=0<=qb&&qb<zh?zh:qb,w=0<=p?p:0<=b?b:ha,0<=p7?(ic(2),Mne(p7,w,i,l)):(h7&127)!==0&&(ic(2),b8(zh,w,Rp)),l=b;var k=p,F=sA,$=0<z2,ce=Fh===aA,ue=Fh===d7;if(b=ha,p=iA,w=Eq,S=Aq,In){if(er=\"Blocking\",0<l?l>b&&(l=b):l=b,0<k?k>l&&(k=l):k=l,F!==null&&l>k){var te=$?\"secondary-light\":\"warning\";p?p.run(console.timeStamp.bind(console,$?\"Consecutive\":\"Event: \"+F,k,l,er,Qt,te)):console.timeStamp($?\"Consecutive\":\"Event: \"+F,k,l,er,Qt,te)}b>l&&(k=ce?\"error\":(i&738197653)===i?\"tertiary-light\":\"primary-light\",ce=ue?\"Promise Resolved\":ce?\"Cascading Update\":5<b-l?\"Update Blocked\":\"Update\",ue=[],S!=null&&ue.push([\"Component name\",S]),w!=null&&ue.push([\"Method name\",w]),l={start:l,end:b,detail:{devtools:{properties:ue,track:er,trackGroup:Qt,color:k}}},p?p.run(performance.measure.bind(performance,ce,l)):performance.measure(ce,l))}Ff=-1.1,Fh=0,Aq=Eq=null,p7=-1.1,z2=qb,qb=-1.1,zh=Lo()}if((i&4194048)!==0&&(ho=cA,b=0<=Pp&&Pp<jf?jf:Pp,l=0<=Yc&&Yc<jf?jf:Yc,p=0<=jh&&jh<jf?jf:jh,w=0<=p?p:0<=l?l:ha,0<=m7?(ic(256),Mne(m7,w,i,ho)):(h7&4194048)!==0&&(ic(256),b8(jf,w,Rp)),ue=p,k=$b,F=0<qh,$=Sq===d7,w=ha,p=cA,S=Vse,ce=Kse,In&&(er=\"Transition\",0<l?l>w&&(l=w):l=w,0<b?b>l&&(b=l):b=l,0<ue?ue>b&&(ue=b):ue=b,b>ue&&k!==null&&(te=F?\"secondary-light\":\"warning\",p?p.run(console.timeStamp.bind(console,F?\"Consecutive\":\"Event: \"+k,ue,b,er,Qt,te)):console.timeStamp(F?\"Consecutive\":\"Event: \"+k,ue,b,er,Qt,te)),l>b&&(p?p.run(console.timeStamp.bind(console,\"Action\",b,l,er,Qt,\"primary-dark\")):console.timeStamp(\"Action\",b,l,er,Qt,\"primary-dark\")),w>l&&(b=$?\"Promise Resolved\":5<w-l?\"Update Blocked\":\"Update\",ue=[],ce!=null&&ue.push([\"Component name\",ce]),S!=null&&ue.push([\"Method name\",S]),l={start:l,end:w,detail:{devtools:{properties:ue,track:er,trackGroup:Qt,color:\"primary-light\"}}},p?p.run(performance.measure.bind(performance,b,l)):performance.measure(b,l))),Yc=Pp=-1.1,Sq=0,m7=-1.1,qh=jh,jh=-1.1,jf=Lo()),(i&62914560)!==0&&(h7&62914560)!==0&&(ic(4194304),b8(Wse,ha,Rp)),(i&2080374784)!==0&&(h7&2080374784)!==0&&(ic(268435456),b8(Qse,ha,Rp)),l=a.timeoutHandle,l!==a1&&(a.timeoutHandle=a1,mut(l)),l=a.cancelPendingCommit,l!==null&&(a.cancelPendingCommit=null,l()),ml=0,cj(),mn=a,qt=l=bp(a.current,null),Dt=i,Vr=Ss,vc=null,Vh=!1,Y2=Lr(a,i),qq=!1,Kn=Dp,e1=Cs=$q=Wh=Kh=0,zi=kA=null,P7=!1,(i&8)!==0&&(i|=i&32),p=a.entangledLanes,p!==0)for(a=a.entanglements,p&=i;0<p;)b=31-Mi(p),w=1<<b,i|=a[b],p&=~w;return $f=i,Q4(),a=zse(),1e3<a-Lse&&(ye.recentlyCreatedOwnerStacks=0,Lse=a),fl.discardPendingWarnings(),l}function Oae(a,i){gt=null,ye.H=EA,ye.getCurrentStack=null,Nf=!1,mc=null,i===j2||i===x7?(i=toe(),Vr=TA):i===kq?(i=toe(),Vr=Gce):Vr=i===Hq?jq:i!==null&&typeof i==\"object\"&&typeof i.then==\"function\"?_A:B7,vc=i;var l=qt;l===null?(Kn=CA,Ck(a,sc(i,a.current))):l.mode&Nt&&iF(l)}function Nae(){var a=bc.current;return a===null?!0:(Dt&4194048)===Dt?Xc===null:(Dt&62914560)===Dt||(Dt&536870912)!==0?a===Xc:!1}function Uae(){var a=ye.H;return ye.H=EA,a===null?EA:a}function Dae(){var a=ye.A;return ye.A=eut,a}function Mk(a){ho===null&&(ho=a._debugTask==null?null:a._debugTask)}function Ok(){Kn=Gh,Vh||(Dt&4194048)!==Dt&&bc.current!==null||(Y2=!0),(Kh&134217727)===0&&(Wh&134217727)===0||mn===null||_h(mn,Dt,Cs,!1)}function uj(a,i,l){var p=hr;hr|=ia;var b=Uae(),w=Dae();if(mn!==a||Dt!==i){if(Df){var S=a.memoizedUpdaters;0<S.size&&(U8(a,Dt),S.clear()),Er(a,i)}BA=null,b2(a,i)}i=!1,S=Kn;e:do try{if(Vr!==Ss&&qt!==null){var k=qt,F=vc;switch(Vr){case jq:cj(),S=k7;break e;case TA:case Yb:case Xb:case _A:bc.current===null&&(i=!0);var $=Vr;if(Vr=Ss,vc=null,g2(a,k,F,$),l&&Y2){S=Dp;break e}break;default:$=Vr,Vr=Ss,vc=null,g2(a,k,F,$)}}Hae(),S=Kn;break}catch(ce){Oae(a,ce)}while(!0);return i&&a.shellSuspendCounter++,ek(),hr=p,ye.H=b,ye.A=w,qt===null&&(mn=null,Dt=0,Q4()),S}function Hae(){for(;qt!==null;)Lae(qt)}function Nit(a,i){var l=hr;hr|=ia;var p=Uae(),b=Dae();if(mn!==a||Dt!==i){if(Df){var w=a.memoizedUpdaters;0<w.size&&(U8(a,Dt),w.clear()),Er(a,i)}BA=null,M7=ma()+Wce,b2(a,i)}else Y2=Lr(a,i);e:do try{if(Vr!==Ss&&qt!==null)t:switch(i=qt,w=vc,Vr){case B7:Vr=Ss,vc=null,g2(a,i,w,B7);break;case Yb:case Xb:if(Xne(w)){Vr=Ss,vc=null,zae(i);break}i=function(){Vr!==Yb&&Vr!==Xb||mn!==a||(Vr=I7),Pf(a)},w.then(i,i);break e;case TA:Vr=I7;break e;case Gce:Vr=Fq;break e;case I7:Xne(w)?(Vr=Ss,vc=null,zae(i)):(Vr=Ss,vc=null,g2(a,i,w,I7));break;case Fq:var S=null;switch(qt.tag){case 26:S=qt.memoizedState;case 5:case 27:var k=qt;if(S?Rie(S):k.stateNode.complete){Vr=Ss,vc=null;var F=k.sibling;if(F!==null)qt=F;else{var $=k.return;$!==null?(qt=$,Nk($)):qt=null}break t}break;default:console.error(\"Unexpected type of fiber triggered a suspensey commit. This is a bug in React.\")}Vr=Ss,vc=null,g2(a,i,w,Fq);break;case _A:Vr=Ss,vc=null,g2(a,i,w,_A);break;case jq:cj(),Kn=k7;break e;default:throw Error(\"Unexpected SuspendedReason. This is a bug in React.\")}ye.actQueue!==null?Hae():Uit();break}catch(ce){Oae(a,ce)}while(!0);return ek(),ye.H=p,ye.A=b,hr=l,qt!==null?Dp:(mn=null,Dt=0,Q4(),Kn)}function Uit(){for(;qt!==null&&!Nst();)Lae(qt)}function Lae(a){var i=a.alternate;(a.mode&Nt)!==mt?(aF(a),i=Te(a,XF,i,a,$f),iF(a)):i=Te(a,XF,i,a,$f),a.memoizedProps=a.pendingProps,i===null?Nk(a):qt=i}function zae(a){var i=Te(a,Dit,a);a.memoizedProps=a.pendingProps,i===null?Nk(a):qt=i}function Dit(a){var i=a.alternate,l=(a.mode&Nt)!==mt;switch(l&&aF(a),a.tag){case 15:case 0:i=Joe(i,a,a.pendingProps,a.type,void 0,Dt);break;case 11:i=Joe(i,a,a.pendingProps,a.type.render,a.ref,Dt);break;case 5:xF(a);default:oae(i,a),a=qt=Lne(a,$f),i=XF(i,a,$f)}return l&&iF(a),i}function g2(a,i,l,p){ek(),xF(i),q2=null,gA=0;var b=i.return;try{if(wit(a,b,i,l,Dt)){Kn=CA,Ck(a,sc(l,a.current)),qt=null;return}}catch(w){if(b!==null)throw qt=b,w;Kn=CA,Ck(a,sc(l,a.current)),qt=null;return}i.flags&32768?(nr||p===B7?a=!0:Y2||(Dt&536870912)!==0?a=!1:(Vh=a=!0,(p===Yb||p===Xb||p===TA||p===_A)&&(p=bc.current,p!==null&&p.tag===13&&(p.flags|=16384))),Fae(i,a)):Nk(i)}function Nk(a){var i=a;do{if((i.flags&32768)!==0){Fae(i,Vh);return}var l=i.alternate;if(a=i.return,aF(i),l=Te(i,Sit,l,i,$f),(i.mode&Nt)!==mt&&Wne(i),l!==null){qt=l;return}if(i=i.sibling,i!==null){qt=i;return}qt=i=a}while(i!==null);Kn===Dp&&(Kn=$ce)}function Fae(a,i){do{var l=Cit(a.alternate,a);if(l!==null){l.flags&=32767,qt=l;return}if((a.mode&Nt)!==mt){Wne(a),l=a.actualDuration;for(var p=a.child;p!==null;)l+=p.actualDuration,p=p.sibling;a.actualDuration=l}if(l=a.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(a=a.sibling,a!==null)){qt=a;return}qt=a=l}while(a!==null);Kn=k7,qt=null}function lj(a,i,l,p,b,w,S,k,F,$,ce,ue,te,pe){a.cancelPendingCommit=null;do N8();while($o!==Zh);if(fl.flushLegacyContextWarning(),fl.flushPendingUnsafeLifecycleWarnings(),(hr&(ia|xc))!==ba)throw Error(\"Should not already be working.\");if(ic(l),$===Jb?Gz(te,pe,l,ho):p!==null?cit(te,pe,l,p,i!==null&&i.alternate!==null&&i.alternate.memoizedState.isDehydrated&&(i.flags&256)!==0,ho):sit(te,pe,l,ho),i!==null){if(l===0&&console.error(\"finishedLanes should not be empty during a commit. This is a bug in React.\"),i===a.current)throw Error(\"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.\");if(w=i.lanes|i.childLanes,w|=bq,nn(a,l,w,S,k,F),a===mn&&(qt=mn=null,Dt=0),X2=i,Jh=a,ml=l,Kq=w,Qq=b,eue=p,Wq=pe,tue=ue,hl=O7,rue=null,i.actualDuration!==0||(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,jit(S2,function(){return NA=window.event,hl===O7&&(hl=Vq),Vae(),null})):(a.callbackNode=null,a.callbackPriority=0),Ip=null,Lh=Lo(),ue!==null&&uit(pe,Lh,ue,ho),p=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||p){p=ye.T,ye.T=null,b=Fr.p,Fr.p=hc,S=hr,hr|=xc;try{Pit(a,i,l)}finally{hr=S,Fr.p=b,ye.T=p}}$o=Zce,jae(),qae(),$ae()}}function jae(){if($o===Zce){$o=Zh;var a=Jh,i=X2,l=ml,p=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||p){p=ye.T,ye.T=null;var b=Fr.p;Fr.p=hc;var w=hr;hr|=xc;try{Z2=l,J2=a,ok(),xae(i,a),J2=Z2=null,l=i$;var S=Bne(a.containerInfo),k=l.focusedElem,F=l.selectionRange;if(S!==k&&k&&k.ownerDocument&&kne(k.ownerDocument.documentElement,k)){if(F!==null&&jz(k)){var $=F.start,ce=F.end;if(ce===void 0&&(ce=$),\"selectionStart\"in k)k.selectionStart=$,k.selectionEnd=Math.min(ce,k.value.length);else{var ue=k.ownerDocument||document,te=ue&&ue.defaultView||window;if(te.getSelection){var pe=te.getSelection(),Oe=k.textContent.length,qe=Math.min(F.start,Oe),Sn=F.end===void 0?qe:Math.min(F.end,Oe);!pe.extend&&qe>Sn&&(S=Sn,Sn=qe,qe=S);var fr=_ne(k,qe),ee=_ne(k,Sn);if(fr&&ee&&(pe.rangeCount!==1||pe.anchorNode!==fr.node||pe.anchorOffset!==fr.offset||pe.focusNode!==ee.node||pe.focusOffset!==ee.offset)){var oe=ue.createRange();oe.setStart(fr.node,fr.offset),pe.removeAllRanges(),qe>Sn?(pe.addRange(oe),pe.extend(ee.node,ee.offset)):(oe.setEnd(ee.node,ee.offset),pe.addRange(oe))}}}}for(ue=[],pe=k;pe=pe.parentNode;)pe.nodeType===1&&ue.push({element:pe,left:pe.scrollLeft,top:pe.scrollTop});for(typeof k.focus==\"function\"&&k.focus(),k=0;k<ue.length;k++){var se=ue[k];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}Z7=!!a$,i$=a$=null}finally{hr=w,Fr.p=b,ye.T=p}}a.current=i,$o=Jce}}function qae(){if($o===Jce){$o=Zh;var a=rue;if(a!==null){Lh=Lo();var i=Bp,l=Lh;!In||l<=i||(Rp?Rp.run(console.timeStamp.bind(console,a,i,l,er,Qt,\"secondary-light\")):console.timeStamp(a,i,l,er,Qt,\"secondary-light\"))}a=Jh,i=X2,l=ml;var p=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||p){p=ye.T,ye.T=null;var b=Fr.p;Fr.p=hc;var w=hr;hr|=xc;try{Z2=l,J2=a,ok(),mae(a,i.alternate,i),J2=Z2=null}finally{hr=w,Fr.p=b,ye.T=p}}a=Wq,i=tue,Bp=Lo(),a=i===null?a:Lh,i=Bp,l=hl===Gq,p=ho,Ip!==null?One(a,i,Ip,!1,p):!In||i<=a||(p?p.run(console.timeStamp.bind(console,l?\"Commit Interrupted View Transition\":\"Commit\",a,i,er,Qt,l?\"error\":\"secondary-dark\")):console.timeStamp(l?\"Commit Interrupted View Transition\":\"Commit\",a,i,er,Qt,l?\"error\":\"secondary-dark\")),$o=Yce}}function $ae(){if($o===Xce||$o===Yce){if($o===Xce){var a=Bp;Bp=Lo();var i=Bp,l=hl===Gq;!In||i<=a||(Rp?Rp.run(console.timeStamp.bind(console,l?\"Interrupted View Transition\":\"Starting Animation\",a,i,er,Qt,l?\"error\":\"secondary-light\")):console.timeStamp(l?\"Interrupted View Transition\":\"Starting Animation\",a,i,er,Qt,l?\" error\":\"secondary-light\")),hl!==Gq&&(hl=Qce)}$o=Zh,Ust(),a=Jh;var p=X2;i=ml,l=eue;var b=p.actualDuration!==0||(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0;b?$o=N7:($o=Zh,X2=Jh=null,Gae(a,a.pendingLanes),t1=0,PA=null);var w=a.pendingLanes;if(w===0&&(Qh=null),b||Zae(a),w=q(i),p=p.stateNode,ii&&typeof ii.onCommitFiberRoot==\"function\")try{var S=(p.current.flags&128)===128;switch(w){case hc:var k=Qj;break;case ul:k=Zj;break;case Hf:k=S2;break;case Xk:k=Jj;break;default:k=S2}ii.onCommitFiberRoot(C2,p,k,S)}catch(ue){Uf||(Uf=!0,console.error(\"React instrumentation encountered an error: %o\",ue))}if(Df&&a.memoizedUpdaters.clear(),Mit(),l!==null){S=ye.T,k=Fr.p,Fr.p=hc,ye.T=null;try{var F=a.onRecoverableError;for(p=0;p<l.length;p++){var $=l[p],ce=Hit($.stack);Te($.source,F,$.value,ce)}}finally{ye.T=S,Fr.p=k}}(ml&3)!==0&&N8(),Pf(a),w=a.pendingLanes,(i&261930)!==0&&(w&42)!==0?(b7=!0,a===Zq?IA++:(IA=0,Zq=a)):IA=0,b||Hb(i,Bp),D8(0,!1)}}function Hit(a){return a={componentStack:a},Object.defineProperty(a,\"digest\",{get:function(){console.error(\\'You are accessing \"digest\" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.\\')}}),a}function Gae(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,x8(i)))}function N8(){return jae(),qae(),$ae(),Vae()}function Vae(){if($o!==N7)return!1;var a=Jh,i=Kq;Kq=0;var l=q(ml),p=Hf===0||Hf>l?Hf:l;l=ye.T;var b=Fr.p;try{Fr.p=p,ye.T=null;var w=Qq;Qq=null,p=Jh;var S=ml;if($o=Zh,X2=Jh=null,ml=0,(hr&(ia|xc))!==ba)throw Error(\"Cannot flush passive effects while already rendering.\");ic(S),Jq=!0,U7=!1;var k=0;if(Ip=null,k=ma(),hl===Qce)b8(Bp,k,Rp);else{var F=Bp,$=k,ce=hl===Vq;!In||$<=F||(ho?ho.run(console.timeStamp.bind(console,ce?\"Waiting for Paint\":\"Waiting\",F,$,er,Qt,\"secondary-light\")):console.timeStamp(ce?\"Waiting for Paint\":\"Waiting\",F,$,er,Qt,\"secondary-light\"))}F=hr,hr|=xc;var ue=p.current;ok(),_ae(ue);var te=p.current;ue=Wq,ok(),Aae(p,te,S,w,ue),Zae(p),hr=F;var pe=ma();if(te=k,ue=ho,Ip!==null?One(te,pe,Ip,!0,ue):!In||pe<=te||(ue?ue.run(console.timeStamp.bind(console,\"Remaining Effects\",te,pe,er,Qt,\"secondary-dark\")):console.timeStamp(\"Remaining Effects\",te,pe,er,Qt,\"secondary-dark\")),Hb(S,pe),D8(0,!1),U7?p===PA?t1++:(t1=0,PA=p):t1=0,U7=Jq=!1,ii&&typeof ii.onPostCommitFiberRoot==\"function\")try{ii.onPostCommitFiberRoot(C2,p)}catch(qe){Uf||(Uf=!0,console.error(\"React instrumentation encountered an error: %o\",qe))}var Oe=p.current.stateNode;return Oe.effectDuration=0,Oe.passiveEffectDuration=0,!0}finally{Fr.p=b,ye.T=l,Gae(a,i)}}function Kae(a,i,l){i=sc(l,i),Qne(i),i=jF(a.stateNode,i,2),a=Ah(a,i,2),a!==null&&(Ii(a,2),Pf(a))}function zr(a,i,l){if(ev=!1,a.tag===3)Kae(a,a,l);else{for(;i!==null;){if(i.tag===3){Kae(i,a,l);return}if(i.tag===1){var p=i.stateNode;if(typeof i.type.getDerivedStateFromError==\"function\"||typeof p.componentDidCatch==\"function\"&&(Qh===null||!Qh.has(p))){a=sc(l,a),Qne(a),l=qF(2),p=Ah(i,l,2),p!==null&&($F(l,p,i,a),Ii(p,2),Pf(p));return}}i=i.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\\n\\nError message:\\n\\n%s`,l)}}function fj(a,i,l){var p=a.pingCache;if(p===null){p=a.pingCache=new rut;var b=new Set;p.set(i,b)}else b=p.get(i),b===void 0&&(b=new Set,p.set(i,b));b.has(l)||(qq=!0,b.add(l),p=Lit.bind(null,a,i,l),Df&&U8(a,l),i.then(p,p))}function Lit(a,i,l){var p=a.pingCache;p!==null&&p.delete(i),a.pingedLanes|=a.suspendedLanes&l,a.warmLanes&=~l,(l&127)!==0?0>Ff&&(zh=Ff=Lo(),iA=f7(\"Promise Resolved\"),Fh=d7):(l&4194048)!==0&&0>Yc&&(jf=Yc=Lo(),cA=f7(\"Promise Resolved\"),Sq=d7),Iae()&&ye.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\\n\\nWhen testing, code that resolves suspended data should be wrapped into act(...):\\n\\nact(() => {\\n  /* finish loading suspended data */\\n});\\n/* assert on the output */\\n\\nThis ensures that you\\'re testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),mn===a&&(Dt&l)===l&&(Kn===Gh||Kn===_7&&(Dt&62914560)===Dt&&ma()-R7<Kce?(hr&ia)===ba&&b2(a,0):$q|=l,e1===Dt&&(e1=0)),Pf(a)}function Wae(a,i){i===0&&(i=jr()),a=ai(a,i),a!==null&&(Ii(a,i),Pf(a))}function zit(a){var i=a.memoizedState,l=0;i!==null&&(l=i.retryLane),Wae(a,l)}function Fit(a,i){var l=0;switch(a.tag){case 31:case 13:var p=a.stateNode,b=a.memoizedState;b!==null&&(l=b.retryLane);break;case 19:p=a.stateNode;break;case 22:p=a.stateNode._retryCache;break;default:throw Error(\"Pinged unknown suspense boundary type. This is probably a bug in React.\")}p!==null&&p.delete(i),Wae(a,l)}function dj(a,i,l){if((i.subtreeFlags&67117056)!==0)for(i=i.child;i!==null;){var p=a,b=i,w=b.type===Kk;w=l||w,b.tag!==22?b.flags&67108864?w&&Te(b,Qae,p,b):dj(p,b,w):b.memoizedState===null&&(w&&b.flags&8192?Te(b,Qae,p,b):b.subtreeFlags&67108864&&Te(b,dj,p,b,w)),i=i.sibling}}function Qae(a,i){dt(!0);try{wae(i),kae(i),Eae(a,i.alternate,i,!1),Sae(a,i,0,null,!1,0)}finally{dt(!1)}}function Zae(a){var i=!0;a.current.mode&(si|ll)||(i=!1),dj(a,a.current,i)}function Jae(a){if((hr&ia)===ba){var i=a.tag;if(i===3||i===1||i===0||i===11||i===14||i===15){if(i=W(a)||\"ReactComponent\",D7!==null){if(D7.has(i))return;D7.add(i)}else D7=new Set([i]);Te(a,function(){console.error(\"Can\\'t perform a React state update on a component that hasn\\'t mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.\")})}}}function U8(a,i){Df&&a.memoizedUpdaters.forEach(function(l){qc(a,l,i)})}function jit(a,i){var l=ye.actQueue;return l!==null?(l.push(i),aut):Wj(a,i)}function qit(a){Iae()&&ye.actQueue===null&&Te(a,function(){console.error(`An update to %s inside a test was not wrapped in act(...).\\n\\nWhen testing, code that causes React state updates should be wrapped into act(...):\\n\\nact(() => {\\n  /* fire events that update state */\\n});\\n/* assert on the output */\\n\\nThis ensures that you\\'re testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,W(a))})}function Pf(a){a!==tv&&a.next===null&&(tv===null?H7=tv=a:tv=tv.next=a),L7=!0,ye.actQueue!==null?Xq||(Xq=!0,tie()):Yq||(Yq=!0,tie())}function D8(a,i){if(!e$&&L7){e$=!0;do for(var l=!1,p=H7;p!==null;){if(!i)if(a!==0){var b=p.pendingLanes;if(b===0)var w=0;else{var S=p.suspendedLanes,k=p.pingedLanes;w=(1<<31-Mi(42|a)+1)-1,w&=b&~(S&~k),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(l=!0,eie(p,w))}else w=Dt,w=Hr(p,p===mn?w:0,p.cancelPendingCommit!==null||p.timeoutHandle!==a1),(w&3)===0||Lr(p,w)||(l=!0,eie(p,w));p=p.next}while(l);e$=!1}}function $it(){NA=window.event,pj()}function pj(){L7=Xq=Yq=!1;var a=0;Yh!==0&&Jit()&&(a=Yh);for(var i=ma(),l=null,p=H7;p!==null;){var b=p.next,w=Yae(p,i);w===0?(p.next=null,l===null?H7=b:l.next=b,b===null&&(tv=l)):(l=p,(a!==0||(w&3)!==0)&&(L7=!0)),p=b}$o!==Zh&&$o!==N7||D8(a,!1),Yh!==0&&(Yh=0)}function Yae(a,i){for(var l=a.suspendedLanes,p=a.pingedLanes,b=a.expirationTimes,w=a.pendingLanes&-62914561;0<w;){var S=31-Mi(w),k=1<<S,F=b[S];F===-1?((k&l)===0||(k&p)!==0)&&(b[S]=pp(k,i)):F<=i&&(a.expiredLanes|=k),w&=~k}if(i=mn,l=Dt,l=Hr(a,a===i?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==a1),p=a.callbackNode,l===0||a===i&&(Vr===Yb||Vr===Xb)||a.cancelPendingCommit!==null)return p!==null&&mj(p),a.callbackNode=null,a.callbackPriority=0;if((l&3)===0||Lr(a,l)){if(i=l&-l,i!==a.callbackPriority||ye.actQueue!==null&&p!==t$)mj(p);else return i;switch(q(l)){case hc:case ul:l=Zj;break;case Hf:l=S2;break;case Xk:l=Jj;break;default:l=S2}return p=Xae.bind(null,a),ye.actQueue!==null?(ye.actQueue.push(p),l=t$):l=Wj(l,p),a.callbackPriority=i,a.callbackNode=l,i}return p!==null&&mj(p),a.callbackPriority=2,a.callbackNode=null,2}function Xae(a,i){if(b7=y7=!1,NA=window.event,$o!==Zh&&$o!==N7)return a.callbackNode=null,a.callbackPriority=0,null;var l=a.callbackNode;if(hl===O7&&(hl=Vq),N8()&&a.callbackNode!==l)return null;var p=Dt;return p=Hr(a,a===mn?p:0,a.cancelPendingCommit!==null||a.timeoutHandle!==a1),p===0?null:(Rae(a,p,i),Yae(a,ma()),a.callbackNode!=null&&a.callbackNode===l?Xae.bind(null,a):null)}function eie(a,i){if(N8())return null;y7=b7,b7=!1,Rae(a,i,!0)}function mj(a){a!==t$&&a!==null&&Ost(a)}function tie(){ye.actQueue!==null&&ye.actQueue.push(function(){return pj(),null}),hut(function(){(hr&(ia|xc))!==ba?Wj(Qj,$it):pj()})}function hj(){if(Yh===0){var a=Gb;a===0&&(a=Zk,Zk<<=1,(Zk&261888)===0&&(Zk=256)),Yh=a}return Yh}function rie(a){return a==null||typeof a==\"symbol\"||typeof a==\"boolean\"?null:typeof a==\"function\"?a:(rr(a,\"action\"),m8(\"\"+a))}function nie(a,i){var l=i.ownerDocument.createElement(\"input\");return l.name=i.name,l.value=i.value,a.id&&l.setAttribute(\"form\",a.id),i.parentNode.insertBefore(l,i),a=new FormData(a),l.parentNode.removeChild(l),a}function Git(a,i,l,p,b){if(i===\"submit\"&&l&&l.stateNode===b){var w=rie((b[Oi]||null).action),S=p.submitter;S&&(i=(i=S[Oi]||null)?rie(i.formAction):S.getAttribute(\"formAction\"),i!==null&&(w=i,S=null));var k=new o7(\"action\",\"action\",null,p,b);a.push({event:k,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Yh!==0){var F=S?nie(b,S):new FormData(b),$={pending:!0,data:F,method:b.method,action:w};Object.freeze($),NF(l,$,null,F)}}else typeof w==\"function\"&&(k.preventDefault(),F=S?nie(b,S):new FormData(b),$={pending:!0,data:F,method:b.method,action:w},Object.freeze($),NF(l,$,w,F))},currentTarget:b}]})}}function Uk(a,i,l){a.currentTarget=l;try{i(a)}catch(p){pq(p)}a.currentTarget=null}function oie(a,i){i=(i&4)!==0;for(var l=0;l<a.length;l++){var p=a[l];e:{var b=void 0,w=p.event;if(p=p.listeners,i)for(var S=p.length-1;0<=S;S--){var k=p[S],F=k.instance,$=k.currentTarget;if(k=k.listener,F!==b&&w.isPropagationStopped())break e;F!==null?Te(F,Uk,w,k,$):Uk(w,k,$),b=F}else for(S=0;S<p.length;S++){if(k=p[S],F=k.instance,$=k.currentTarget,k=k.listener,F!==b&&w.isPropagationStopped())break e;F!==null?Te(F,Uk,w,k,$):Uk(w,k,$),b=F}}}}function lr(a,i){r$.has(a)||console.error(\\'Did not expect a listenToNonDelegatedEvent() call for \"%s\". This is a bug in React. Please file an issue.\\',a);var l=i[Yj];l===void 0&&(l=i[Yj]=new Set);var p=a+\"__bubble\";l.has(p)||(aie(i,a,2,!1),l.add(p))}function yj(a,i,l){r$.has(a)&&!i&&console.error(\\'Did not expect a listenToNativeEvent() call for \"%s\" in the bubble phase. This is a bug in React. Please file an issue.\\',a);var p=0;i&&(p|=4),aie(l,a,p,i)}function bj(a){if(!a[z7]){a[z7]=!0,tse.forEach(function(l){l!==\"selectionchange\"&&(r$.has(l)||yj(l,!1,a),yj(l,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[z7]||(i[z7]=!0,yj(\"selectionchange\",!1,i))}}function aie(a,i,l,p){switch(Hie(i)){case hc:var b=Cst;break;case ul:b=Tst;break;default:b=Mj}l=b.bind(null,i,l,a),b=void 0,!nq||i!==\"touchstart\"&&i!==\"touchmove\"&&i!==\"wheel\"||(b=!0),p?b!==void 0?a.addEventListener(i,l,{capture:!0,passive:b}):a.addEventListener(i,l,!0):b!==void 0?a.addEventListener(i,l,{passive:b}):a.addEventListener(i,l,!1)}function gj(a,i,l,p,b){var w=p;if((i&1)===0&&(i&2)===0&&p!==null)e:for(;;){if(p===null)return;var S=p.tag;if(S===3||S===4){var k=p.stateNode.containerInfo;if(k===b)break;if(S===4)for(S=p.return;S!==null;){var F=S.tag;if((F===3||F===4)&&S.stateNode.containerInfo===b)return;S=S.return}for(;k!==null;){if(S=We(k),S===null)return;if(F=S.tag,F===5||F===6||F===26||F===27){p=w=S;continue e}k=k.parentNode}}p=p.return}yne(function(){var $=w,ce=zz(l),ue=[];e:{var te=Hse.get(a);if(te!==void 0){var pe=o7,Oe=a;switch(a){case\"keypress\":if($4(l)===0)break e;case\"keydown\":case\"keyup\":pe=wct;break;case\"focusin\":Oe=\"focus\",pe=sq;break;case\"focusout\":Oe=\"blur\",pe=sq;break;case\"beforeblur\":case\"afterblur\":pe=sq;break;case\"click\":if(l.button===2)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":pe=Sse;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":pe=uct;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":pe=Sct;break;case Ose:case Nse:case Use:pe=dct;break;case Dse:pe=Tct;break;case\"scroll\":case\"scrollend\":pe=sct;break;case\"wheel\":pe=kct;break;case\"copy\":case\"cut\":case\"paste\":pe=mct;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":pe=Tse;break;case\"toggle\":case\"beforetoggle\":pe=Ict}var qe=(i&4)!==0,Sn=!qe&&(a===\"scroll\"||a===\"scrollend\"),fr=qe?te!==null?te+\"Capture\":null:te;qe=[];for(var ee=$,oe;ee!==null;){var se=ee;if(oe=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||oe===null||fr===null||(se=h8(ee,fr),se!=null&&qe.push(H8(ee,se,oe))),Sn)break;ee=ee.return}0<qe.length&&(te=new pe(te,Oe,null,l,ce),ue.push({event:te,listeners:qe}))}}if((i&7)===0){e:{if(te=a===\"mouseover\"||a===\"pointerover\",pe=a===\"mouseout\"||a===\"pointerout\",te&&l!==Q8&&(Oe=l.relatedTarget||l.fromElement)&&(We(Oe)||Oe[Mh]))break e;if((pe||te)&&(te=ce.window===ce?ce:(te=ce.ownerDocument)?te.defaultView||te.parentWindow:window,pe?(Oe=l.relatedTarget||l.toElement,pe=$,Oe=Oe?We(Oe):null,Oe!==null&&(Sn=M(Oe),qe=Oe.tag,Oe!==Sn||qe!==5&&qe!==27&&qe!==6)&&(Oe=null)):(pe=null,Oe=$),pe!==Oe)){if(qe=Sse,se=\"onMouseLeave\",fr=\"onMouseEnter\",ee=\"mouse\",(a===\"pointerout\"||a===\"pointerover\")&&(qe=Tse,se=\"onPointerLeave\",fr=\"onPointerEnter\",ee=\"pointer\"),Sn=pe==null?te:Ve(pe),oe=Oe==null?te:Ve(Oe),te=new qe(se,ee+\"leave\",pe,l,ce),te.target=Sn,te.relatedTarget=oe,se=null,We(ce)===$&&(qe=new qe(fr,ee+\"enter\",Oe,l,ce),qe.target=oe,qe.relatedTarget=Sn,se=qe),Sn=se,pe&&Oe)t:{for(qe=Vit,fr=pe,ee=Oe,oe=0,se=fr;se;se=qe(se))oe++;se=0;for(var xe=ee;xe;xe=qe(xe))se++;for(;0<oe-se;)fr=qe(fr),oe--;for(;0<se-oe;)ee=qe(ee),se--;for(;oe--;){if(fr===ee||ee!==null&&fr===ee.alternate){qe=fr;break t}fr=qe(fr),ee=qe(ee)}qe=null}else qe=null;pe!==null&&iie(ue,te,pe,qe,!1),Oe!==null&&Sn!==null&&iie(ue,Sn,Oe,qe,!0)}}e:{if(te=$?Ve($):window,pe=te.nodeName&&te.nodeName.toLowerCase(),pe===\"select\"||pe===\"input\"&&te.type===\"file\")var Le=Ane;else if(wne(te))if(Rse)Le=oit;else{Le=rit;var xt=tit}else pe=te.nodeName,!pe||pe.toLowerCase()!==\"input\"||te.type!==\"checkbox\"&&te.type!==\"radio\"?$&&p8($.elementType)&&(Le=Ane):Le=nit;if(Le&&(Le=Le(a,$))){Ene(ue,Le,l,ce);break e}xt&&xt(a,te,$),a===\"focusout\"&&$&&te.type===\"number\"&&$.memoizedProps.value!=null&&fn(te,\"number\",te.value)}switch(xt=$?Ve($):window,a){case\"focusin\":(wne(xt)||xt.contentEditable===\"true\")&&(R2=xt,uq=$,rA=null);break;case\"focusout\":rA=uq=R2=null;break;case\"mousedown\":lq=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":lq=!1,Ine(ue,l,ce);break;case\"selectionchange\":if(Oct)break;case\"keydown\":case\"keyup\":Ine(ue,l,ce)}var st;if(cq)e:{switch(a){case\"compositionstart\":var et=\"onCompositionStart\";break e;case\"compositionend\":et=\"onCompositionEnd\";break e;case\"compositionupdate\":et=\"onCompositionUpdate\";break e}et=void 0}else P2?xne(a,l)&&(et=\"onCompositionEnd\"):a===\"keydown\"&&l.keyCode===_se&&(et=\"onCompositionStart\");et&&(kse&&l.locale!==\"ko\"&&(P2||et!==\"onCompositionStart\"?et===\"onCompositionEnd\"&&P2&&(st=bne()):(Oh=ce,oq=\"value\"in Oh?Oh.value:Oh.textContent,P2=!0)),xt=Dk($,et),0<xt.length&&(et=new Cse(et,a,null,l,ce),ue.push({event:et,listeners:xt}),st?et.data=st:(st=vne(l),st!==null&&(et.data=st)))),(st=Rct?Jat(a,l):Yat(a,l))&&(et=Dk($,\"onBeforeInput\"),0<et.length&&(xt=new yct(\"onBeforeInput\",\"beforeinput\",null,l,ce),ue.push({event:xt,listeners:et}),xt.data=st)),Git(ue,a,$,l,ce)}oie(ue,i)})}function H8(a,i,l){return{instance:a,listener:i,currentTarget:l}}function Dk(a,i){for(var l=i+\"Capture\",p=[];a!==null;){var b=a,w=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||w===null||(b=h8(a,l),b!=null&&p.unshift(H8(a,b,w)),b=h8(a,i),b!=null&&p.push(H8(a,b,w))),a.tag===3)return p;a=a.return}return[]}function Vit(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function iie(a,i,l,p,b){for(var w=i._reactName,S=[];l!==null&&l!==p;){var k=l,F=k.alternate,$=k.stateNode;if(k=k.tag,F!==null&&F===p)break;k!==5&&k!==26&&k!==27||$===null||(F=$,b?($=h8(l,w),$!=null&&S.unshift(H8(l,$,F))):b||($=h8(l,w),$!=null&&S.push(H8(l,$,F)))),l=l.return}S.length!==0&&a.push({event:i,listeners:S})}function xj(a,i){Kat(a,i),a!==\"input\"&&a!==\"textarea\"&&a!==\"select\"||i==null||i.value!==null||Ese||(Ese=!0,a===\"select\"&&i.multiple?console.error(\"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.\",a):console.error(\"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.\",a));var l={registrationNameDependencies:Lb,possibleRegistrationNames:Xj};p8(a)||typeof i.is==\"string\"||Qat(a,i,l),i.contentEditable&&!i.suppressContentEditableWarning&&i.children!=null&&console.error(\"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.\")}function pa(a,i,l,p){i!==l&&(l=kh(l),kh(i)!==l&&(p[a]=i))}function Kit(a,i,l){i.forEach(function(p){l[uie(p)]=p===\"style\"?wj(a):a.getAttribute(p)})}function Rf(a,i){i===!1?console.error(\"Expected `%s` listener to be a function, instead got `false`.\\\\n\\\\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.\",a,a,a):console.error(\"Expected `%s` listener to be a function, instead got a value of `%s` type.\",a,typeof i)}function sie(a,i){return a=a.namespaceURI===t7||a.namespaceURI===_2?a.ownerDocument.createElementNS(a.namespaceURI,a.tagName):a.ownerDocument.createElement(a.tagName),a.innerHTML=i,a.innerHTML}function kh(a){return tr(a)&&(console.error(\"The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.\",Gn(a)),yt(a)),(typeof a==\"string\"?a:\"\"+a).replace(iut,`\\n`).replace(sut,\"\")}function cie(a,i){return i=kh(i),kh(a)===i}function dn(a,i,l,p,b,w){switch(l){case\"children\":typeof p==\"string\"?(q4(p,i,!1),i===\"body\"||i===\"textarea\"&&p===\"\"||d8(a,p)):(typeof p==\"number\"||typeof p==\"bigint\")&&(q4(\"\"+p,i,!1),i!==\"body\"&&d8(a,\"\"+p));break;case\"className\":an(a,\"class\",p);break;case\"tabIndex\":an(a,\"tabindex\",p);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":an(a,l,p);break;case\"style\":pne(a,p,w);break;case\"data\":if(i!==\"object\"){an(a,\"data\",p);break}case\"src\":case\"href\":if(p===\"\"&&(i!==\"a\"||l!==\"href\")){console.error(l===\"src\"?\\'An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\':\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',l,l),a.removeAttribute(l);break}if(p==null||typeof p==\"function\"||typeof p==\"symbol\"||typeof p==\"boolean\"){a.removeAttribute(l);break}rr(p,l),p=m8(\"\"+p),a.setAttribute(l,p);break;case\"action\":case\"formAction\":if(p!=null&&(i===\"form\"?l===\"formAction\"?console.error(\"You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.\"):typeof p==\"function\"&&(b.encType==null&&b.method==null||q7||(q7=!0,console.error(\"Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.\")),b.target==null||j7||(j7=!0,console.error(\"Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.\"))):i===\"input\"||i===\"button\"?l===\"action\"?console.error(\"You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.\"):i!==\"input\"||b.type===\"submit\"||b.type===\"image\"||F7?i!==\"button\"||b.type==null||b.type===\"submit\"||F7?typeof p==\"function\"&&(b.name==null||sue||(sue=!0,console.error(\\'Cannot specify a \"name\" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.\\')),b.formEncType==null&&b.formMethod==null||q7||(q7=!0,console.error(\"Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.\")),b.formTarget==null||j7||(j7=!0,console.error(\"Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.\"))):(F7=!0,console.error(\\'A button can only specify a formAction along with type=\"submit\" or no type.\\')):(F7=!0,console.error(\\'An input can only specify a formAction along with type=\"submit\" or type=\"image\".\\')):console.error(l===\"action\"?\"You can only pass the action prop to <form>.\":\"You can only pass the formAction prop to <input> or <button>.\")),typeof p==\"function\"){a.setAttribute(l,\"javascript:throw new Error(\\'A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().\\')\");break}else typeof w==\"function\"&&(l===\"formAction\"?(i!==\"input\"&&dn(a,i,\"name\",b.name,b,null),dn(a,i,\"formEncType\",b.formEncType,b,null),dn(a,i,\"formMethod\",b.formMethod,b,null),dn(a,i,\"formTarget\",b.formTarget,b,null)):(dn(a,i,\"encType\",b.encType,b,null),dn(a,i,\"method\",b.method,b,null),dn(a,i,\"target\",b.target,b,null)));if(p==null||typeof p==\"symbol\"||typeof p==\"boolean\"){a.removeAttribute(l);break}rr(p,l),p=m8(\"\"+p),a.setAttribute(l,p);break;case\"onClick\":p!=null&&(typeof p!=\"function\"&&Rf(l,p),a.onclick=yp);break;case\"onScroll\":p!=null&&(typeof p!=\"function\"&&Rf(l,p),lr(\"scroll\",a));break;case\"onScrollEnd\":p!=null&&(typeof p!=\"function\"&&Rf(l,p),lr(\"scrollend\",a));break;case\"dangerouslySetInnerHTML\":if(p!=null){if(typeof p!=\"object\"||!(\"__html\"in p))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");if(l=p.__html,l!=null){if(b.children!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");a.innerHTML=l}}break;case\"multiple\":a.multiple=p&&typeof p!=\"function\"&&typeof p!=\"symbol\";break;case\"muted\":a.muted=p&&typeof p!=\"function\"&&typeof p!=\"symbol\";break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":break;case\"autoFocus\":break;case\"xlinkHref\":if(p==null||typeof p==\"function\"||typeof p==\"boolean\"||typeof p==\"symbol\"){a.removeAttribute(\"xlink:href\");break}rr(p,l),l=m8(\"\"+p),a.setAttributeNS(r1,\"xlink:href\",l);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":p!=null&&typeof p!=\"function\"&&typeof p!=\"symbol\"?(rr(p,l),a.setAttribute(l,\"\"+p)):a.removeAttribute(l);break;case\"inert\":p!==\"\"||$7[l]||($7[l]=!0,console.error(\"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.\",l));case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":p&&typeof p!=\"function\"&&typeof p!=\"symbol\"?a.setAttribute(l,\"\"):a.removeAttribute(l);break;case\"capture\":case\"download\":p===!0?a.setAttribute(l,\"\"):p!==!1&&p!=null&&typeof p!=\"function\"&&typeof p!=\"symbol\"?(rr(p,l),a.setAttribute(l,p)):a.removeAttribute(l);break;case\"cols\":case\"rows\":case\"size\":case\"span\":p!=null&&typeof p!=\"function\"&&typeof p!=\"symbol\"&&!isNaN(p)&&1<=p?(rr(p,l),a.setAttribute(l,p)):a.removeAttribute(l);break;case\"rowSpan\":case\"start\":p==null||typeof p==\"function\"||typeof p==\"symbol\"||isNaN(p)?a.removeAttribute(l):(rr(p,l),a.setAttribute(l,p));break;case\"popover\":lr(\"beforetoggle\",a),lr(\"toggle\",a),on(a,\"popover\",p);break;case\"xlinkActuate\":oi(a,r1,\"xlink:actuate\",p);break;case\"xlinkArcrole\":oi(a,r1,\"xlink:arcrole\",p);break;case\"xlinkRole\":oi(a,r1,\"xlink:role\",p);break;case\"xlinkShow\":oi(a,r1,\"xlink:show\",p);break;case\"xlinkTitle\":oi(a,r1,\"xlink:title\",p);break;case\"xlinkType\":oi(a,r1,\"xlink:type\",p);break;case\"xmlBase\":oi(a,n$,\"xml:base\",p);break;case\"xmlLang\":oi(a,n$,\"xml:lang\",p);break;case\"xmlSpace\":oi(a,n$,\"xml:space\",p);break;case\"is\":w!=null&&console.error(\\'Cannot update the \"is\" prop after it has been initialized.\\'),on(a,\"is\",p);break;case\"innerText\":case\"textContent\":break;case\"popoverTarget\":cue||p==null||typeof p!=\"object\"||(cue=!0,console.error(\"The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.\",p));default:!(2<l.length)||l[0]!==\"o\"&&l[0]!==\"O\"||l[1]!==\"n\"&&l[1]!==\"N\"?(l=mne(l),on(a,l,p)):Lb.hasOwnProperty(l)&&p!=null&&typeof p!=\"function\"&&Rf(l,p)}}function vj(a,i,l,p,b,w){switch(l){case\"style\":pne(a,p,w);break;case\"dangerouslySetInnerHTML\":if(p!=null){if(typeof p!=\"object\"||!(\"__html\"in p))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");if(l=p.__html,l!=null){if(b.children!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");a.innerHTML=l}}break;case\"children\":typeof p==\"string\"?d8(a,p):(typeof p==\"number\"||typeof p==\"bigint\")&&d8(a,\"\"+p);break;case\"onScroll\":p!=null&&(typeof p!=\"function\"&&Rf(l,p),lr(\"scroll\",a));break;case\"onScrollEnd\":p!=null&&(typeof p!=\"function\"&&Rf(l,p),lr(\"scrollend\",a));break;case\"onClick\":p!=null&&(typeof p!=\"function\"&&Rf(l,p),a.onclick=yp);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"innerHTML\":case\"ref\":break;case\"innerText\":case\"textContent\":break;default:if(Lb.hasOwnProperty(l))p!=null&&typeof p!=\"function\"&&Rf(l,p);else e:{if(l[0]===\"o\"&&l[1]===\"n\"&&(b=l.endsWith(\"Capture\"),i=l.slice(2,b?l.length-7:void 0),w=a[Oi]||null,w=w!=null?w[l]:null,typeof w==\"function\"&&a.removeEventListener(i,w,b),typeof p==\"function\")){typeof w!=\"function\"&&w!==null&&(l in a?a[l]=null:a.hasAttribute(l)&&a.removeAttribute(l)),a.addEventListener(i,p,b);break e}l in a?a[l]=p:p===!0?a.setAttribute(l,\"\"):on(a,l,p)}}}function Na(a,i,l){switch(xj(i,l),i){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"img\":lr(\"error\",a),lr(\"load\",a);var p=!1,b=!1,w;for(w in l)if(l.hasOwnProperty(w)){var S=l[w];if(S!=null)switch(w){case\"src\":p=!0;break;case\"srcSet\":b=!0;break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(i+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:dn(a,i,w,S,l,null)}}b&&dn(a,i,\"srcSet\",l.srcSet,l,null),p&&dn(a,i,\"src\",l.src,l,null);return;case\"input\":Ar(\"input\",l),lr(\"invalid\",a);var k=w=S=b=null,F=null,$=null;for(p in l)if(l.hasOwnProperty(p)){var ce=l[p];if(ce!=null)switch(p){case\"name\":b=ce;break;case\"type\":S=ce;break;case\"checked\":F=ce;break;case\"defaultChecked\":$=ce;break;case\"value\":w=ce;break;case\"defaultValue\":k=ce;break;case\"children\":case\"dangerouslySetInnerHTML\":if(ce!=null)throw Error(i+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");break;default:dn(a,i,p,ce,l,null)}}wn(a,l),En(a,w,k,F,$,S,b,!1);return;case\"select\":Ar(\"select\",l),lr(\"invalid\",a),p=S=w=null;for(b in l)if(l.hasOwnProperty(b)&&(k=l[b],k!=null))switch(b){case\"value\":w=k;break;case\"defaultValue\":S=k;break;case\"multiple\":p=k;default:dn(a,i,b,k,l,null)}lf(a,l),i=w,l=S,a.multiple=!!p,i!=null?bs(a,!!p,i,!1):l!=null&&bs(a,!!p,l,!0);return;case\"textarea\":Ar(\"textarea\",l),lr(\"invalid\",a),w=b=p=null;for(S in l)if(l.hasOwnProperty(S)&&(k=l[S],k!=null))switch(S){case\"value\":p=k;break;case\"defaultValue\":b=k;break;case\"children\":w=k;break;case\"dangerouslySetInnerHTML\":if(k!=null)throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");break;default:dn(a,i,S,k,l,null)}ff(a,l),pf(a,p,b,w);return;case\"option\":cf(a,l);for(F in l)l.hasOwnProperty(F)&&(p=l[F],p!=null)&&(F===\"selected\"?a.selected=p&&typeof p!=\"function\"&&typeof p!=\"symbol\":dn(a,i,F,p,l,null));return;case\"dialog\":lr(\"beforetoggle\",a),lr(\"toggle\",a),lr(\"cancel\",a),lr(\"close\",a);break;case\"iframe\":case\"object\":lr(\"load\",a);break;case\"video\":case\"audio\":for(p=0;p<RA.length;p++)lr(RA[p],a);break;case\"image\":lr(\"error\",a),lr(\"load\",a);break;case\"details\":lr(\"toggle\",a);break;case\"embed\":case\"source\":case\"link\":lr(\"error\",a),lr(\"load\",a);case\"area\":case\"base\":case\"br\":case\"col\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"track\":case\"wbr\":case\"menuitem\":for($ in l)if(l.hasOwnProperty($)&&(p=l[$],p!=null))switch($){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(i+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:dn(a,i,$,p,l,null)}return;default:if(p8(i)){for(ce in l)l.hasOwnProperty(ce)&&(p=l[ce],p!==void 0&&vj(a,i,ce,p,l,void 0));return}}for(k in l)l.hasOwnProperty(k)&&(p=l[k],p!=null&&dn(a,i,k,p,l,null))}function Wit(a,i,l,p){switch(xj(i,p),i){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":var b=null,w=null,S=null,k=null,F=null,$=null,ce=null;for(pe in l){var ue=l[pe];if(l.hasOwnProperty(pe)&&ue!=null)switch(pe){case\"checked\":break;case\"value\":break;case\"defaultValue\":F=ue;default:p.hasOwnProperty(pe)||dn(a,i,pe,null,p,ue)}}for(var te in p){var pe=p[te];if(ue=l[te],p.hasOwnProperty(te)&&(pe!=null||ue!=null))switch(te){case\"type\":w=pe;break;case\"name\":b=pe;break;case\"checked\":$=pe;break;case\"defaultChecked\":ce=pe;break;case\"value\":S=pe;break;case\"defaultValue\":k=pe;break;case\"children\":case\"dangerouslySetInnerHTML\":if(pe!=null)throw Error(i+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");break;default:pe!==ue&&dn(a,i,te,pe,p,ue)}}i=l.type===\"checkbox\"||l.type===\"radio\"?l.checked!=null:l.value!=null,p=p.type===\"checkbox\"||p.type===\"radio\"?p.checked!=null:p.value!=null,i||!p||iue||(console.error(\"A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components\"),iue=!0),!i||p||aue||(console.error(\"A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components\"),aue=!0),sf(a,S,k,F,$,ce,w,b);return;case\"select\":pe=S=k=te=null;for(w in l)if(F=l[w],l.hasOwnProperty(w)&&F!=null)switch(w){case\"value\":break;case\"multiple\":pe=F;default:p.hasOwnProperty(w)||dn(a,i,w,null,p,F)}for(b in p)if(w=p[b],F=l[b],p.hasOwnProperty(b)&&(w!=null||F!=null))switch(b){case\"value\":te=w;break;case\"defaultValue\":k=w;break;case\"multiple\":S=w;default:w!==F&&dn(a,i,b,w,p,F)}p=k,i=S,l=pe,te!=null?bs(a,!!i,te,!1):!!l!=!!i&&(p!=null?bs(a,!!i,p,!0):bs(a,!!i,i?[]:\"\",!1));return;case\"textarea\":pe=te=null;for(k in l)if(b=l[k],l.hasOwnProperty(k)&&b!=null&&!p.hasOwnProperty(k))switch(k){case\"value\":break;case\"children\":break;default:dn(a,i,k,null,p,b)}for(S in p)if(b=p[S],w=l[S],p.hasOwnProperty(S)&&(b!=null||w!=null))switch(S){case\"value\":te=b;break;case\"defaultValue\":pe=b;break;case\"children\":break;case\"dangerouslySetInnerHTML\":if(b!=null)throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");break;default:b!==w&&dn(a,i,S,b,p,w)}df(a,te,pe);return;case\"option\":for(var Oe in l)te=l[Oe],l.hasOwnProperty(Oe)&&te!=null&&!p.hasOwnProperty(Oe)&&(Oe===\"selected\"?a.selected=!1:dn(a,i,Oe,null,p,te));for(F in p)te=p[F],pe=l[F],p.hasOwnProperty(F)&&te!==pe&&(te!=null||pe!=null)&&(F===\"selected\"?a.selected=te&&typeof te!=\"function\"&&typeof te!=\"symbol\":dn(a,i,F,te,p,pe));return;case\"img\":case\"link\":case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":case\"menuitem\":for(var qe in l)te=l[qe],l.hasOwnProperty(qe)&&te!=null&&!p.hasOwnProperty(qe)&&dn(a,i,qe,null,p,te);for($ in p)if(te=p[$],pe=l[$],p.hasOwnProperty($)&&te!==pe&&(te!=null||pe!=null))switch($){case\"children\":case\"dangerouslySetInnerHTML\":if(te!=null)throw Error(i+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");break;default:dn(a,i,$,te,p,pe)}return;default:if(p8(i)){for(var Sn in l)te=l[Sn],l.hasOwnProperty(Sn)&&te!==void 0&&!p.hasOwnProperty(Sn)&&vj(a,i,Sn,void 0,p,te);for(ce in p)te=p[ce],pe=l[ce],!p.hasOwnProperty(ce)||te===pe||te===void 0&&pe===void 0||vj(a,i,ce,te,p,pe);return}}for(var fr in l)te=l[fr],l.hasOwnProperty(fr)&&te!=null&&!p.hasOwnProperty(fr)&&dn(a,i,fr,null,p,te);for(ue in p)te=p[ue],pe=l[ue],!p.hasOwnProperty(ue)||te===pe||te==null&&pe==null||dn(a,i,ue,te,p,pe)}function uie(a){switch(a){case\"class\":return\"className\";case\"for\":return\"htmlFor\";default:return a}}function wj(a){var i={};a=a.style;for(var l=0;l<a.length;l++){var p=a[l];i[p]=a.getPropertyValue(p)}return i}function lie(a,i,l){if(i!=null&&typeof i!=\"object\")console.error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.\");else{var p,b=p=\"\",w;for(w in i)if(i.hasOwnProperty(w)){var S=i[w];S!=null&&typeof S!=\"boolean\"&&S!==\"\"&&(w.indexOf(\"--\")===0?(rn(S,w),p+=b+w+\":\"+(\"\"+S).trim()):typeof S!=\"number\"||S===0||vse.has(w)?(rn(S,w),p+=b+w.replace(hse,\"-$1\").toLowerCase().replace(yse,\"-ms-\")+\":\"+(\"\"+S).trim()):p+=b+w.replace(hse,\"-$1\").toLowerCase().replace(yse,\"-ms-\")+\":\"+S+\"px\",b=\";\")}p=p||null,i=a.getAttribute(\"style\"),i!==p&&(p=kh(p),kh(i)!==p&&(l.style=wj(a)))}}function Gc(a,i,l,p,b,w){if(b.delete(l),a=a.getAttribute(l),a===null)switch(typeof p){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return}else if(p!=null)switch(typeof p){case\"function\":case\"symbol\":case\"boolean\":break;default:if(rr(p,i),a===\"\"+p)return}pa(i,a,p,w)}function fie(a,i,l,p,b,w){if(b.delete(l),a=a.getAttribute(l),a===null){switch(typeof p){case\"function\":case\"symbol\":return}if(!p)return}else switch(typeof p){case\"function\":case\"symbol\":break;default:if(p)return}pa(i,a,p,w)}function Ej(a,i,l,p,b,w){if(b.delete(l),a=a.getAttribute(l),a===null)switch(typeof p){case\"undefined\":case\"function\":case\"symbol\":return}else if(p!=null)switch(typeof p){case\"function\":case\"symbol\":break;default:if(rr(p,l),a===\"\"+p)return}pa(i,a,p,w)}function die(a,i,l,p,b,w){if(b.delete(l),a=a.getAttribute(l),a===null)switch(typeof p){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return;default:if(isNaN(p))return}else if(p!=null)switch(typeof p){case\"function\":case\"symbol\":case\"boolean\":break;default:if(!isNaN(p)&&(rr(p,i),a===\"\"+p))return}pa(i,a,p,w)}function Aj(a,i,l,p,b,w){if(b.delete(l),a=a.getAttribute(l),a===null)switch(typeof p){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return}else if(p!=null)switch(typeof p){case\"function\":case\"symbol\":case\"boolean\":break;default:if(rr(p,i),l=m8(\"\"+p),a===l)return}pa(i,a,p,w)}function pie(a,i,l,p){for(var b={},w=new Set,S=a.attributes,k=0;k<S.length;k++)switch(S[k].name.toLowerCase()){case\"value\":break;case\"checked\":break;case\"selected\":break;default:w.add(S[k].name)}if(p8(i)){for(var F in l)if(l.hasOwnProperty(F)){var $=l[F];if($!=null){if(Lb.hasOwnProperty(F))typeof $!=\"function\"&&Rf(F,$);else if(l.suppressHydrationWarning!==!0)switch(F){case\"children\":typeof $!=\"string\"&&typeof $!=\"number\"||pa(\"children\",a.textContent,$,b);continue;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":continue;case\"dangerouslySetInnerHTML\":S=a.innerHTML,$=$?$.__html:void 0,$!=null&&($=sie(a,$),pa(F,S,$,b));continue;case\"style\":w.delete(F),lie(a,$,b);continue;case\"offsetParent\":case\"offsetTop\":case\"offsetLeft\":case\"offsetWidth\":case\"offsetHeight\":case\"isContentEditable\":case\"outerText\":case\"outerHTML\":w.delete(F.toLowerCase()),console.error(\"Assignment to read-only property will result in a no-op: `%s`\",F);continue;case\"className\":w.delete(\"class\"),S=mp(a,\"class\",$),pa(\"className\",S,$,b);continue;default:p.context===Hp&&i!==\"svg\"&&i!==\"math\"?w.delete(F.toLowerCase()):w.delete(F),S=mp(a,F,$),pa(F,S,$,b)}}}}else for($ in l)if(l.hasOwnProperty($)&&(F=l[$],F!=null)){if(Lb.hasOwnProperty($))typeof F!=\"function\"&&Rf($,F);else if(l.suppressHydrationWarning!==!0)switch($){case\"children\":typeof F!=\"string\"&&typeof F!=\"number\"||pa(\"children\",a.textContent,F,b);continue;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"value\":case\"checked\":case\"selected\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":continue;case\"dangerouslySetInnerHTML\":S=a.innerHTML,F=F?F.__html:void 0,F!=null&&(F=sie(a,F),S!==F&&(b[$]={__html:S}));continue;case\"className\":Gc(a,$,\"class\",F,w,b);continue;case\"tabIndex\":Gc(a,$,\"tabindex\",F,w,b);continue;case\"style\":w.delete($),lie(a,F,b);continue;case\"multiple\":w.delete($),pa($,a.multiple,F,b);continue;case\"muted\":w.delete($),pa($,a.muted,F,b);continue;case\"autoFocus\":w.delete(\"autofocus\"),pa($,a.autofocus,F,b);continue;case\"data\":if(i!==\"object\"){w.delete($),S=a.getAttribute(\"data\"),pa($,S,F,b);continue}case\"src\":case\"href\":if(!(F!==\"\"||i===\"a\"&&$===\"href\"||i===\"object\"&&$===\"data\")){console.error($===\"src\"?\\'An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\':\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',$,$);continue}Aj(a,$,$,F,w,b);continue;case\"action\":case\"formAction\":if(S=a.getAttribute($),typeof F==\"function\"){w.delete($.toLowerCase()),$===\"formAction\"?(w.delete(\"name\"),w.delete(\"formenctype\"),w.delete(\"formmethod\"),w.delete(\"formtarget\")):(w.delete(\"enctype\"),w.delete(\"method\"),w.delete(\"target\"));continue}else if(S===cut){w.delete($.toLowerCase()),pa($,\"function\",F,b);continue}Aj(a,$,$.toLowerCase(),F,w,b);continue;case\"xlinkHref\":Aj(a,$,\"xlink:href\",F,w,b);continue;case\"contentEditable\":Ej(a,$,\"contenteditable\",F,w,b);continue;case\"spellCheck\":Ej(a,$,\"spellcheck\",F,w,b);continue;case\"draggable\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":Ej(a,$,$,F,w,b);continue;case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":fie(a,$,$.toLowerCase(),F,w,b);continue;case\"capture\":case\"download\":e:{k=a;var ce=S=$,ue=b;if(w.delete(ce),k=k.getAttribute(ce),k===null)switch(typeof F){case\"undefined\":case\"function\":case\"symbol\":break e;default:if(F===!1)break e}else if(F!=null)switch(typeof F){case\"function\":case\"symbol\":break;case\"boolean\":if(F===!0&&k===\"\")break e;break;default:if(rr(F,S),k===\"\"+F)break e}pa(S,k,F,ue)}continue;case\"cols\":case\"rows\":case\"size\":case\"span\":e:{if(k=a,ce=S=$,ue=b,w.delete(ce),k=k.getAttribute(ce),k===null)switch(typeof F){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":break e;default:if(isNaN(F)||1>F)break e}else if(F!=null)switch(typeof F){case\"function\":case\"symbol\":case\"boolean\":break;default:if(!(isNaN(F)||1>F)&&(rr(F,S),k===\"\"+F))break e}pa(S,k,F,ue)}continue;case\"rowSpan\":die(a,$,\"rowspan\",F,w,b);continue;case\"start\":die(a,$,$,F,w,b);continue;case\"xHeight\":Gc(a,$,\"x-height\",F,w,b);continue;case\"xlinkActuate\":Gc(a,$,\"xlink:actuate\",F,w,b);continue;case\"xlinkArcrole\":Gc(a,$,\"xlink:arcrole\",F,w,b);continue;case\"xlinkRole\":Gc(a,$,\"xlink:role\",F,w,b);continue;case\"xlinkShow\":Gc(a,$,\"xlink:show\",F,w,b);continue;case\"xlinkTitle\":Gc(a,$,\"xlink:title\",F,w,b);continue;case\"xlinkType\":Gc(a,$,\"xlink:type\",F,w,b);continue;case\"xmlBase\":Gc(a,$,\"xml:base\",F,w,b);continue;case\"xmlLang\":Gc(a,$,\"xml:lang\",F,w,b);continue;case\"xmlSpace\":Gc(a,$,\"xml:space\",F,w,b);continue;case\"inert\":F!==\"\"||$7[$]||($7[$]=!0,console.error(\"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.\",$)),fie(a,$,$,F,w,b);continue;default:if(!(2<$.length)||$[0]!==\"o\"&&$[0]!==\"O\"||$[1]!==\"n\"&&$[1]!==\"N\"){k=mne($),S=!1,p.context===Hp&&i!==\"svg\"&&i!==\"math\"?w.delete(k.toLowerCase()):(ce=$.toLowerCase(),ce=r7.hasOwnProperty(ce)&&r7[ce]||null,ce!==null&&ce!==$&&(S=!0,w.delete(ce)),w.delete(k));e:if(ce=a,ue=k,k=F,$r(ue))if(ce.hasAttribute(ue))ce=ce.getAttribute(ue),rr(k,ue),k=ce===\"\"+k?k:ce;else{switch(typeof k){case\"function\":case\"symbol\":break e;case\"boolean\":if(ce=ue.toLowerCase().slice(0,5),ce!==\"data-\"&&ce!==\"aria-\")break e}k=k===void 0?void 0:null}else k=void 0;S||pa($,k,F,b)}}}return 0<w.size&&l.suppressHydrationWarning!==!0&&Kit(a,w,b),Object.keys(b).length===0?null:b}function Qit(a,i){switch(a.length){case 0:return\"\";case 1:return a[0];case 2:return a[0]+\" \"+i+\" \"+a[1];default:return a.slice(0,-1).join(\", \")+\", \"+i+\" \"+a[a.length-1]}}function mie(a){switch(a){case\"css\":case\"script\":case\"font\":case\"img\":case\"image\":case\"input\":case\"link\":return!0;default:return!1}}function Zit(){if(typeof performance.getEntriesByType==\"function\"){for(var a=0,i=0,l=performance.getEntriesByType(\"resource\"),p=0;p<l.length;p++){var b=l[p],w=b.transferSize,S=b.initiatorType,k=b.duration;if(w&&k&&mie(S)){for(S=0,k=b.responseEnd,p+=1;p<l.length;p++){var F=l[p],$=F.startTime;if($>k)break;var ce=F.transferSize,ue=F.initiatorType;ce&&mie(ue)&&(F=F.responseEnd,S+=ce*(F<k?1:(k-$)/(F-$)))}if(--p,i+=8*(w+S)/(b.duration/1e3),a++,10<a)break}}if(0<a)return i/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a==\"number\")?a:5}function Hk(a){return a.nodeType===9?a:a.ownerDocument}function hie(a){switch(a){case _2:return nv;case t7:return V7;default:return Hp}}function yie(a,i){if(a===Hp)switch(i){case\"svg\":return nv;case\"math\":return V7;default:return Hp}return a===nv&&i===\"foreignObject\"?Hp:a}function Sj(a,i){return a===\"textarea\"||a===\"noscript\"||typeof i.children==\"string\"||typeof i.children==\"number\"||typeof i.children==\"bigint\"||typeof i.dangerouslySetInnerHTML==\"object\"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}function Jit(){var a=window.event;return a&&a.type===\"popstate\"?a===s$?!1:(s$=a,!0):(s$=null,!1)}function L8(){var a=window.event;return a&&a!==NA?a.type:null}function z8(){var a=window.event;return a&&a!==NA?a.timeStamp:-1.1}function Yit(a){setTimeout(function(){throw a})}function Xit(a,i,l){switch(i){case\"button\":case\"input\":case\"select\":case\"textarea\":l.autoFocus&&a.focus();break;case\"img\":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}function est(){}function tst(a,i,l,p){Wit(a,i,l,p),a[Oi]=p}function bie(a){d8(a,\"\")}function rst(a,i,l){a.nodeValue=l}function gie(a){if(!a.__reactWarnedAboutChildrenConflict){var i=a[Oi]||null;if(i!==null){var l=Ge(a);l!==null&&(typeof i.children==\"string\"||typeof i.children==\"number\"?(a.__reactWarnedAboutChildrenConflict=!0,Te(l,function(){console.error(\\'Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets \"children\" text content using React. It should be a leaf with no children. Otherwise it\\\\\\'s ambiguous which children should be used.\\')})):i.dangerouslySetInnerHTML!=null&&(a.__reactWarnedAboutChildrenConflict=!0,Te(l,function(){console.error(\\'Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets \"dangerouslySetInnerHTML\" using React. It should be a leaf with no children. Otherwise it\\\\\\'s ambiguous which children should be used.\\')})))}}}function Bh(a){return a===\"head\"}function nst(a,i){a.removeChild(i)}function ost(a,i){(a.nodeType===9?a.body:a.nodeName===\"HTML\"?a.ownerDocument.body:a).removeChild(i)}function xie(a,i){var l=i,p=0;do{var b=l.nextSibling;if(a.removeChild(l),b&&b.nodeType===8)if(l=b.data,l===OA||l===G7){if(p===0){a.removeChild(b),w2(i);return}p--}else if(l===MA||l===Xh||l===o1||l===rv||l===n1)p++;else if(l===lut)F8(a.ownerDocument.documentElement);else if(l===dut){l=a.ownerDocument.head,F8(l);for(var w=l.firstChild;w;){var S=w.nextSibling,k=w.nodeName;w[W8]||k===\"SCRIPT\"||k===\"STYLE\"||k===\"LINK\"&&w.rel.toLowerCase()===\"stylesheet\"||l.removeChild(w),w=S}}else l===fut&&F8(a.ownerDocument.body);l=b}while(l);w2(i)}function vie(a,i){var l=a;a=0;do{var p=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display=\"none\"):(l.style.display=l._stashedDisplay||\"\",l.getAttribute(\"style\")===\"\"&&l.removeAttribute(\"style\")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=\"\"):l.nodeValue=l._stashedText||\"\"),p&&p.nodeType===8)if(l=p.data,l===OA){if(a===0)break;a--}else l!==MA&&l!==Xh&&l!==o1&&l!==rv||a++;l=p}while(l)}function ast(a){vie(a,!0)}function ist(a){a=a.style,typeof a.setProperty==\"function\"?a.setProperty(\"display\",\"none\",\"important\"):a.display=\"none\"}function sst(a){a.nodeValue=\"\"}function cst(a){vie(a,!1)}function ust(a,i){i=i[put],i=i!=null&&i.hasOwnProperty(\"display\")?i.display:null,a.style.display=i==null||typeof i==\"boolean\"?\"\":(\"\"+i).trim()}function lst(a,i){a.nodeValue=i}function Cj(a){var i=a.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case\"HTML\":case\"HEAD\":case\"BODY\":Cj(l),_e(l);continue;case\"SCRIPT\":case\"STYLE\":continue;case\"LINK\":if(l.rel.toLowerCase()===\"stylesheet\")continue}a.removeChild(l)}}function fst(a,i,l,p){for(;a.nodeType===1;){var b=l;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!p&&(a.nodeName!==\"INPUT\"||a.type!==\"hidden\"))break}else if(p){if(!a[W8])switch(i){case\"meta\":if(!a.hasAttribute(\"itemprop\"))break;return a;case\"link\":if(w=a.getAttribute(\"rel\"),w===\"stylesheet\"&&a.hasAttribute(\"data-precedence\"))break;if(w!==b.rel||a.getAttribute(\"href\")!==(b.href==null||b.href===\"\"?null:b.href)||a.getAttribute(\"crossorigin\")!==(b.crossOrigin==null?null:b.crossOrigin)||a.getAttribute(\"title\")!==(b.title==null?null:b.title))break;return a;case\"style\":if(a.hasAttribute(\"data-precedence\"))break;return a;case\"script\":if(w=a.getAttribute(\"src\"),(w!==(b.src==null?null:b.src)||a.getAttribute(\"type\")!==(b.type==null?null:b.type)||a.getAttribute(\"crossorigin\")!==(b.crossOrigin==null?null:b.crossOrigin))&&w&&a.hasAttribute(\"async\")&&!a.hasAttribute(\"itemprop\"))break;return a;default:return a}}else if(i===\"input\"&&a.type===\"hidden\"){rr(b.name,\"name\");var w=b.name==null?null:\"\"+b.name;if(b.type===\"hidden\"&&a.getAttribute(\"name\")===w)return a}else return a;if(a=dc(a.nextSibling),a===null)break}return null}function dst(a,i,l){if(i===\"\")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!==\"INPUT\"||a.type!==\"hidden\")&&!l||(a=dc(a.nextSibling),a===null))return null;return a}function wie(a,i){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!==\"INPUT\"||a.type!==\"hidden\")&&!i||(a=dc(a.nextSibling),a===null))return null;return a}function Tj(a){return a.data===Xh||a.data===o1}function _j(a){return a.data===rv||a.data===Xh&&a.ownerDocument.readyState!==lue}function pst(a,i){var l=a.ownerDocument;if(a.data===o1)a._reactRetry=i;else if(a.data!==Xh||l.readyState!==lue)i();else{var p=function(){i(),l.removeEventListener(\"DOMContentLoaded\",p)};l.addEventListener(\"DOMContentLoaded\",p),a._reactRetry=p}}function dc(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i===MA||i===rv||i===Xh||i===o1||i===n1||i===o$||i===uue)break;if(i===OA||i===G7)return null}}return a}function Eie(a){if(a.nodeType===1){for(var i=a.nodeName.toLowerCase(),l={},p=a.attributes,b=0;b<p.length;b++){var w=p[b];l[uie(w.name)]=w.name.toLowerCase()===\"style\"?wj(a):w.value}return{type:i,props:l}}return a.nodeType===8?a.data===n1?{type:\"Activity\",props:{}}:{type:\"Suspense\",props:{}}:a.nodeValue}function Aie(a,i,l){return l===null||l[uut]!==!0?(a.nodeValue===i?a=null:(i=kh(i),a=kh(a.nodeValue)===i?null:a.nodeValue),a):null}function kj(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===OA||l===G7){if(i===0)return dc(a.nextSibling);i--}else l!==MA&&l!==rv&&l!==Xh&&l!==o1&&l!==n1||i++}a=a.nextSibling}return null}function Sie(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===MA||l===rv||l===Xh||l===o1||l===n1){if(i===0)return a;i--}else l!==OA&&l!==G7||i++}a=a.previousSibling}return null}function mst(a){w2(a)}function hst(a){w2(a)}function yst(a){w2(a)}function Cie(a,i,l,p,b){switch(b&&Lz(a,p.ancestorInfo),i=Hk(l),a){case\"html\":if(a=i.documentElement,!a)throw Error(\"React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.\");return a;case\"head\":if(a=i.head,!a)throw Error(\"React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.\");return a;case\"body\":if(a=i.body,!a)throw Error(\"React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.\");return a;default:throw Error(\"resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.\")}}function bst(a,i,l,p){if(!l[Mh]&&Ge(l)){var b=l.tagName.toLowerCase();console.error(\"You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.\",b,b,b)}switch(a){case\"html\":case\"head\":case\"body\":break;default:console.error(\"acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.\")}for(b=l.attributes;b.length;)l.removeAttributeNode(b[0]);Na(l,a,i),l[Ua]=p,l[Oi]=i}function F8(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);_e(a)}function Lk(a){return typeof a.getRootNode==\"function\"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}function Tie(a,i,l){var p=ov;if(p&&typeof i==\"string\"&&i){var b=ur(i);b=\\'link[rel=\"\\'+a+\\'\"][href=\"\\'+b+\\'\"]\\',typeof l==\"string\"&&(b+=\\'[crossorigin=\"\\'+l+\\'\"]\\'),yue.has(b)||(yue.add(b),a={rel:a,crossOrigin:l,href:i},p.querySelector(b)===null&&(i=p.createElement(\"link\"),Na(i,\"link\",a),Ne(i),p.head.appendChild(i)))}}function _ie(a,i,l,p){var b=(b=Ph.current)?Lk(b):null;if(!b)throw Error(\\'\"resourceRoot\" was expected to exist. This is a bug in React.\\');switch(a){case\"meta\":case\"title\":return null;case\"style\":return typeof l.precedence==\"string\"&&typeof l.href==\"string\"?(l=x2(l.href),i=Ft(b).hoistableStyles,p=i.get(l),p||(p={type:\"style\",instance:null,count:0,state:null},i.set(l,p)),p):{type:\"void\",instance:null,count:0,state:null};case\"link\":if(l.rel===\"stylesheet\"&&typeof l.href==\"string\"&&typeof l.precedence==\"string\"){a=x2(l.href);var w=Ft(b).hoistableStyles,S=w.get(a);if(!S&&(b=b.ownerDocument||b,S={type:\"stylesheet\",instance:null,count:0,state:{loading:i1,preload:null}},w.set(a,S),(w=b.querySelector(j8(a)))&&!w._p&&(S.instance=w,S.state.loading=UA|ru),!nu.has(a))){var k={rel:\"preload\",as:\"style\",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy};nu.set(a,k),w||gst(b,a,k,S.state)}if(i&&p===null)throw l=`\\n\\n  - `+zk(i)+`\\n  + `+zk(l),Error(\"Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.\"+l);return S}if(i&&p!==null)throw l=`\\n\\n  - `+zk(i)+`\\n  + `+zk(l),Error(\"Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.\"+l);return null;case\"script\":return i=l.async,l=l.src,typeof l==\"string\"&&i&&typeof i!=\"function\"&&typeof i!=\"symbol\"?(l=v2(l),i=Ft(b).hoistableScripts,p=i.get(l),p||(p={type:\"script\",instance:null,count:0,state:null},i.set(l,p)),p):{type:\"void\",instance:null,count:0,state:null};default:throw Error(\\'getResource encountered a type it did not expect: \"\\'+a+\\'\". this is a bug in React.\\')}}function zk(a){var i=0,l=\"<link\";return typeof a.rel==\"string\"?(i++,l+=\\' rel=\"\\'+a.rel+\\'\"\\'):cl.call(a,\"rel\")&&(i++,l+=\\' rel=\"\\'+(a.rel===null?\"null\":\"invalid type \"+typeof a.rel)+\\'\"\\'),typeof a.href==\"string\"?(i++,l+=\\' href=\"\\'+a.href+\\'\"\\'):cl.call(a,\"href\")&&(i++,l+=\\' href=\"\\'+(a.href===null?\"null\":\"invalid type \"+typeof a.href)+\\'\"\\'),typeof a.precedence==\"string\"?(i++,l+=\\' precedence=\"\\'+a.precedence+\\'\"\\'):cl.call(a,\"precedence\")&&(i++,l+=\" precedence={\"+(a.precedence===null?\"null\":\"invalid type \"+typeof a.precedence)+\"}\"),Object.getOwnPropertyNames(a).length>i&&(l+=\" ...\"),l+\" />\"}function x2(a){return\\'href=\"\\'+ur(a)+\\'\"\\'}function j8(a){return\\'link[rel=\"stylesheet\"][\\'+a+\"]\"}function kie(a){return Wt({},a,{\"data-precedence\":a.precedence,precedence:null})}function gst(a,i,l,p){a.querySelector(\\'link[rel=\"preload\"][as=\"style\"][\\'+i+\"]\")?p.loading=UA:(i=a.createElement(\"link\"),p.preload=i,i.addEventListener(\"load\",function(){return p.loading|=UA}),i.addEventListener(\"error\",function(){return p.loading|=mue}),Na(i,\"link\",l),Ne(i),a.head.appendChild(i))}function v2(a){return\\'[src=\"\\'+ur(a)+\\'\"]\\'}function q8(a){return\"script[async]\"+a}function Bie(a,i,l){if(i.count++,i.instance===null)switch(i.type){case\"style\":var p=a.querySelector(\\'style[data-href~=\"\\'+ur(l.href)+\\'\"]\\');if(p)return i.instance=p,Ne(p),p;var b=Wt({},l,{\"data-href\":l.href,\"data-precedence\":l.precedence,href:null,precedence:null});return p=(a.ownerDocument||a).createElement(\"style\"),Ne(p),Na(p,\"style\",b),Fk(p,l.precedence,a),i.instance=p;case\"stylesheet\":b=x2(l.href);var w=a.querySelector(j8(b));if(w)return i.state.loading|=ru,i.instance=w,Ne(w),w;p=kie(l),(b=nu.get(b))&&Bj(p,b),w=(a.ownerDocument||a).createElement(\"link\"),Ne(w);var S=w;return S._p=new Promise(function(k,F){S.onload=k,S.onerror=F}),Na(w,\"link\",p),i.state.loading|=ru,Fk(w,l.precedence,a),i.instance=w;case\"script\":return w=v2(l.src),(b=a.querySelector(q8(w)))?(i.instance=b,Ne(b),b):(p=l,(b=nu.get(w))&&(p=Wt({},l),Ij(p,b)),a=a.ownerDocument||a,b=a.createElement(\"script\"),Ne(b),Na(b,\"link\",p),a.head.appendChild(b),i.instance=b);case\"void\":return null;default:throw Error(\\'acquireResource encountered a resource type it did not expect: \"\\'+i.type+\\'\". this is a bug in React.\\')}else i.type===\"stylesheet\"&&(i.state.loading&ru)===i1&&(p=i.instance,i.state.loading|=ru,Fk(p,l.precedence,a));return i.instance}function Fk(a,i,l){for(var p=l.querySelectorAll(\\'link[rel=\"stylesheet\"][data-precedence],style[data-precedence]\\'),b=p.length?p[p.length-1]:null,w=b,S=0;S<p.length;S++){var k=p[S];if(k.dataset.precedence===i)w=k;else if(w!==b)break}w?w.parentNode.insertBefore(a,w.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(a,i.firstChild))}function Bj(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function Ij(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}function Iie(a,i,l){if(K7===null){var p=new Map,b=K7=new Map;b.set(l,p)}else b=K7,p=b.get(l),p||(p=new Map,b.set(l,p));if(p.has(a))return p;for(p.set(a,null),l=l.getElementsByTagName(a),b=0;b<l.length;b++){var w=l[b];if(!(w[W8]||w[Ua]||a===\"link\"&&w.getAttribute(\"rel\")===\"stylesheet\")&&w.namespaceURI!==_2){var S=w.getAttribute(i)||\"\";S=a+S;var k=p.get(S);k?k.push(w):p.set(S,[w])}}return p}function Pie(a,i,l){a=a.ownerDocument||a,a.head.insertBefore(l,i===\"title\"?a.querySelector(\"head > title\"):null)}function xst(a,i,l){var p=!l.ancestorInfo.containerTagInScope;if(l.context===nv||i.itemProp!=null)return!p||i.itemProp==null||a!==\"meta\"&&a!==\"title\"&&a!==\"style\"&&a!==\"link\"&&a!==\"script\"||console.error(\"Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.\",a,a),!1;switch(a){case\"meta\":case\"title\":return!0;case\"style\":if(typeof i.precedence!=\"string\"||typeof i.href!=\"string\"||i.href===\"\"){p&&console.error(\\'Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel=\"stylesheet\" ...> tags.  Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence=\"default\"` and `href=\"some unique resource identifier\"`.\\');break}return!0;case\"link\":if(typeof i.rel!=\"string\"||typeof i.href!=\"string\"||i.href===\"\"||i.onLoad||i.onError){if(i.rel===\"stylesheet\"&&typeof i.precedence==\"string\"){a=i.href;var b=i.onError,w=i.disabled;l=[],i.onLoad&&l.push(\"`onLoad`\"),b&&l.push(\"`onError`\"),w!=null&&l.push(\"`disabled`\"),b=Qit(l,\"and\"),b+=l.length===1?\" prop\":\" props\",w=l.length===1?\"an \"+b:\"the \"+b,l.length&&console.error(\\'React encountered a <link rel=\"stylesheet\" href=\"%s\" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.\\',a,w,b)}p&&(typeof i.rel!=\"string\"||typeof i.href!=\"string\"||i.href===\"\"?console.error(\"Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag\"):(i.onError||i.onLoad)&&console.error(\"Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.\"));break}return i.rel===\"stylesheet\"?(a=i.precedence,i=i.disabled,typeof a!=\"string\"&&p&&console.error(\\'Cannot render a <link rel=\"stylesheet\" /> outside the main document without knowing its precedence. Consider adding precedence=\"default\" or moving it into the root <head> tag.\\'),typeof a==\"string\"&&i==null):!0;case\"script\":if(a=i.async&&typeof i.async!=\"function\"&&typeof i.async!=\"symbol\",!a||i.onLoad||i.onError||!i.src||typeof i.src!=\"string\"){p&&(a?i.onLoad||i.onError?console.error(\"Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.\"):console.error(\"Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>.\"):console.error(\\'Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async=\"\" or moving it into the root <head> tag.\\'));break}return!0;case\"noscript\":case\"template\":p&&console.error(\"Cannot render <%s> outside the main document. Try moving it into the root <head> tag.\",a)}return!1}function Rie(a){return!(a.type===\"stylesheet\"&&(a.state.loading&hue)===i1)}function vst(a,i,l,p){if(l.type===\"stylesheet\"&&(typeof p.media!=\"string\"||matchMedia(p.media).matches!==!1)&&(l.state.loading&ru)===i1){if(l.instance===null){var b=x2(p.href),w=i.querySelector(j8(b));if(w){i=w._p,i!==null&&typeof i==\"object\"&&typeof i.then==\"function\"&&(a.count++,a=jk.bind(a),i.then(a,a)),l.state.loading|=ru,l.instance=w,Ne(w);return}w=i.ownerDocument||i,p=kie(p),(b=nu.get(b))&&Bj(p,b),w=w.createElement(\"link\"),Ne(w);var S=w;S._p=new Promise(function(k,F){S.onload=k,S.onerror=F}),Na(w,\"link\",p),l.instance=w}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&hue)===i1&&(a.count++,l=jk.bind(a),i.addEventListener(\"load\",l),i.addEventListener(\"error\",l))}}function wst(a,i){return a.stylesheets&&a.count===0&&qk(a,a.stylesheets),0<a.count||0<a.imgCount?function(l){var p=setTimeout(function(){if(a.stylesheets&&qk(a,a.stylesheets),a.unsuspend){var w=a.unsuspend;a.unsuspend=null,w()}},yut+i);0<a.imgBytes&&u$===0&&(u$=125*Zit()*gut);var b=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&qk(a,a.stylesheets),a.unsuspend)){var w=a.unsuspend;a.unsuspend=null,w()}},(a.imgBytes>u$?50:but)+i);return a.unsuspend=l,function(){a.unsuspend=null,clearTimeout(p),clearTimeout(b)}}:null}function jk(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qk(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}function qk(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,W7=new Map,i.forEach(Est,a),W7=null,jk.call(a))}function Est(a,i){if(!(i.state.loading&ru)){var l=W7.get(a);if(l)var p=l.get(l$);else{l=new Map,W7.set(a,l);for(var b=a.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),w=0;w<b.length;w++){var S=b[w];(S.nodeName===\"LINK\"||S.getAttribute(\"media\")!==\"not all\")&&(l.set(S.dataset.precedence,S),p=S)}p&&l.set(l$,p)}b=i.instance,S=b.getAttribute(\"data-precedence\"),w=l.get(S)||p,w===p&&l.set(l$,b),l.set(S,b),this.count++,p=jk.bind(this),b.addEventListener(\"load\",p),b.addEventListener(\"error\",p),w?w.parentNode.insertBefore(b,w.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(b,a.firstChild)),i.state.loading|=ru}}function Ast(a,i,l,p,b,w,S,k,F){for(this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=a1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qr(0),this.hiddenUpdates=qr(null),this.identifierPrefix=p,this.onUncaughtError=b,this.onCaughtError=w,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=F,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,a=this.pendingUpdatersLaneMap=[],i=0;31>i;i++)a.push(new Set);this._debugRootType=l?\"hydrateRoot()\":\"createRoot()\"}function Mie(a,i,l,p,b,w,S,k,F,$,ce,ue){return a=new Ast(a,i,l,S,F,$,ce,ue,k),i=qct,w===!0&&(i|=si|ll),i|=Nt,w=v(3,null,null,i),a.current=w,w.stateNode=a,i=oF(),Rb(i),a.pooledCache=i,Rb(i),w.memoizedState={element:p,isDehydrated:l,cache:i},uF(w),a}function Oie(a){return a?(a=Dh,a):Dh}function Pj(a,i,l,p,b,w){if(ii&&typeof ii.onScheduleFiberRoot==\"function\")try{ii.onScheduleFiberRoot(C2,p,l)}catch(S){Uf||(Uf=!0,console.error(\"React instrumentation encountered an error: %o\",S))}b=Oie(b),p.context===null?p.context=b:p.pendingContext=b,Nf&&mc!==null&&!vue&&(vue=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\\n\\nCheck the render method of %s.`,W(mc)||\"Unknown\")),p=Eh(i),p.payload={element:l},w=w===void 0?null:w,w!==null&&(typeof w!=\"function\"&&console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",w),p.callback=w),l=Ah(a,p,i),l!==null&&(vf(i,\"root.render()\",null),ro(l,a,i),A8(l,a,i))}function Nie(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var l=a.retryLane;a.retryLane=l!==0&&l<i?l:i}}function Rj(a,i){Nie(a,i),(a=a.alternate)&&Nie(a,i)}function Uie(a){if(a.tag===13||a.tag===31){var i=ai(a,67108864);i!==null&&ro(i,a,67108864),Rj(a,67108864)}}function Die(a){if(a.tag===13||a.tag===31){var i=fc(a);i=Rr(i);var l=ai(a,i);l!==null&&ro(l,a,i),Rj(a,i)}}function Sst(){return mc}function Cst(a,i,l,p){var b=ye.T;ye.T=null;var w=Fr.p;try{Fr.p=hc,Mj(a,i,l,p)}finally{Fr.p=w,ye.T=b}}function Tst(a,i,l,p){var b=ye.T;ye.T=null;var w=Fr.p;try{Fr.p=ul,Mj(a,i,l,p)}finally{Fr.p=w,ye.T=b}}function Mj(a,i,l,p){if(Z7){var b=Oj(p);if(b===null)gj(a,i,p,J7,l),Lie(a,p);else if(_st(b,a,i,l,p))p.stopPropagation();else if(Lie(a,p),i&4&&-1<vut.indexOf(a)){for(;b!==null;){var w=Ge(b);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var S=ni(w.pendingLanes);if(S!==0){var k=w;for(k.pendingLanes|=2,k.entangledLanes|=2;S;){var F=1<<31-Mi(S);k.entanglements[1]|=F,S&=~F}Pf(w),(hr&(ia|xc))===ba&&(M7=ma()+Wce,D8(0,!1))}}break;case 31:case 13:k=ai(w,2),k!==null&&ro(k,w,2),y2(),Rj(w,2)}if(w=Oj(p),w===null&&gj(a,i,p,J7,l),w===b)break;b=w}b!==null&&p.stopPropagation()}else gj(a,i,p,null,l)}}function Oj(a){return a=zz(a),Nj(a)}function Nj(a){if(J7=null,a=We(a),a!==null){var i=M(a);if(i===null)a=null;else{var l=i.tag;if(l===13){if(a=U(i),a!==null)return a;a=null}else if(l===31){if(a=O(i),a!==null)return a;a=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return J7=a,null}function Hie(a){switch(a){case\"beforetoggle\":case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"toggle\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return hc;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return ul;case\"message\":switch(Dst()){case Qj:return hc;case Zj:return ul;case S2:case Hst:return Hf;case Jj:return Xk;default:return Hf}default:return Hf}}function Lie(a,i){switch(a){case\"focusin\":case\"focusout\":e0=null;break;case\"dragenter\":case\"dragleave\":t0=null;break;case\"mouseover\":case\"mouseout\":r0=null;break;case\"pointerover\":case\"pointerout\":HA.delete(i.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":LA.delete(i.pointerId)}}function $8(a,i,l,p,b,w){return a===null||a.nativeEvent!==w?(a={blockedOn:i,domEventName:l,eventSystemFlags:p,nativeEvent:w,targetContainers:[b]},i!==null&&(i=Ge(i),i!==null&&Uie(i)),a):(a.eventSystemFlags|=p,i=a.targetContainers,b!==null&&i.indexOf(b)===-1&&i.push(b),a)}function _st(a,i,l,p,b){switch(i){case\"focusin\":return e0=$8(e0,a,i,l,p,b),!0;case\"dragenter\":return t0=$8(t0,a,i,l,p,b),!0;case\"mouseover\":return r0=$8(r0,a,i,l,p,b),!0;case\"pointerover\":var w=b.pointerId;return HA.set(w,$8(HA.get(w)||null,a,i,l,p,b)),!0;case\"gotpointercapture\":return w=b.pointerId,LA.set(w,$8(LA.get(w)||null,a,i,l,p,b)),!0}return!1}function zie(a){var i=We(a.target);if(i!==null){var l=M(i);if(l!==null){if(i=l.tag,i===13){if(i=U(l),i!==null){a.blockedOn=i,Ee(a.priority,function(){Die(l)});return}}else if(i===31){if(i=O(l),i!==null){a.blockedOn=i,Ee(a.priority,function(){Die(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){a.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}a.blockedOn=null}function $k(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var l=Oj(a.nativeEvent);if(l===null){l=a.nativeEvent;var p=new l.constructor(l.type,l),b=p;Q8!==null&&console.error(\"Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.\"),Q8=b,l.target.dispatchEvent(p),Q8===null&&console.error(\"Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.\"),Q8=null}else return i=Ge(l),i!==null&&Uie(i),a.blockedOn=l,!1;i.shift()}return!0}function Fie(a,i,l){$k(a)&&l.delete(i)}function kst(){f$=!1,e0!==null&&$k(e0)&&(e0=null),t0!==null&&$k(t0)&&(t0=null),r0!==null&&$k(r0)&&(r0=null),HA.forEach(Fie),LA.forEach(Fie)}function Gk(a,i){a.blockedOn===i&&(a.blockedOn=null,f$||(f$=!0,Do.unstable_scheduleCallback(Do.unstable_NormalPriority,kst)))}function jie(a){Y7!==a&&(Y7=a,Do.unstable_scheduleCallback(Do.unstable_NormalPriority,function(){Y7===a&&(Y7=null);for(var i=0;i<a.length;i+=3){var l=a[i],p=a[i+1],b=a[i+2];if(typeof p!=\"function\"){if(Nj(p||l)===null)continue;break}var w=Ge(l);w!==null&&(a.splice(i,3),i-=3,l={pending:!0,data:b,method:l.method,action:p},Object.freeze(l),NF(w,l,p,b))}}))}function w2(a){function i(F){return Gk(F,a)}e0!==null&&Gk(e0,a),t0!==null&&Gk(t0,a),r0!==null&&Gk(r0,a),HA.forEach(i),LA.forEach(i);for(var l=0;l<n0.length;l++){var p=n0[l];p.blockedOn===a&&(p.blockedOn=null)}for(;0<n0.length&&(l=n0[0],l.blockedOn===null);)zie(l),l.blockedOn===null&&n0.shift();if(l=(a.ownerDocument||a).$$reactFormReplay,l!=null)for(p=0;p<l.length;p+=3){var b=l[p],w=l[p+1],S=b[Oi]||null;if(typeof w==\"function\")S||jie(l);else if(S){var k=null;if(w&&w.hasAttribute(\"formAction\")){if(b=w,S=w[Oi]||null)k=S.formAction;else if(Nj(b)!==null)continue}else k=S.action;typeof k==\"function\"?l[p+1]=k:(l.splice(p,3),p-=3),jie(l)}}}function qie(){function a(w){w.canIntercept&&w.info===\"react-transition\"&&w.intercept({handler:function(){return new Promise(function(S){return b=S})},focusReset:\"manual\",scroll:\"manual\"})}function i(){b!==null&&(b(),b=null),p||setTimeout(l,20)}function l(){if(!p&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:\"react-transition\",history:\"replace\"})}}if(typeof navigation==\"object\"){var p=!1,b=null;return navigation.addEventListener(\"navigate\",a),navigation.addEventListener(\"navigatesuccess\",i),navigation.addEventListener(\"navigateerror\",i),setTimeout(l,100),function(){p=!0,navigation.removeEventListener(\"navigate\",a),navigation.removeEventListener(\"navigatesuccess\",i),navigation.removeEventListener(\"navigateerror\",i),b!==null&&(b(),b=null)}}}function Uj(a){this._internalRoot=a}function Vk(a){this._internalRoot=a}function $ie(a){a[Mh]&&(a._reactRootContainer?console.error(\"You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.\"):console.error(\"You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.\"))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Do=nle(),Dj=oo(),Bst=cle(),Wt=Object.assign,Ist=Symbol.for(\"react.element\"),Mf=Symbol.for(\"react.transitional.element\"),E2=Symbol.for(\"react.portal\"),A2=Symbol.for(\"react.fragment\"),Kk=Symbol.for(\"react.strict_mode\"),Hj=Symbol.for(\"react.profiler\"),Lj=Symbol.for(\"react.consumer\"),Of=Symbol.for(\"react.context\"),G8=Symbol.for(\"react.forward_ref\"),zj=Symbol.for(\"react.suspense\"),Fj=Symbol.for(\"react.suspense_list\"),Wk=Symbol.for(\"react.memo\"),pc=Symbol.for(\"react.lazy\"),jj=Symbol.for(\"react.activity\"),Pst=Symbol.for(\"react.memo_cache_sentinel\"),Gie=Symbol.iterator,Rst=Symbol.for(\"react.client.reference\"),oa=Array.isArray,ye=Dj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fr=Bst.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mst=Object.freeze({pending:!1,data:null,method:null,action:null}),qj=[],$j=[],Sp=-1,Ih=ie(null),V8=ie(null),Ph=ie(null),Qk=ie(null),K8=0,Vie,Kie,Wie,Qie,Zie,Jie,Yie;Z.__reactDisabledLog=!0;var Gj,Xie,Vj=!1,Kj=new(typeof WeakMap==\"function\"?WeakMap:Map),mc=null,Nf=!1,cl=Object.prototype.hasOwnProperty,Wj=Do.unstable_scheduleCallback,Ost=Do.unstable_cancelCallback,Nst=Do.unstable_shouldYield,Ust=Do.unstable_requestPaint,ma=Do.unstable_now,Dst=Do.unstable_getCurrentPriorityLevel,Qj=Do.unstable_ImmediatePriority,Zj=Do.unstable_UserBlockingPriority,S2=Do.unstable_NormalPriority,Hst=Do.unstable_LowPriority,Jj=Do.unstable_IdlePriority,Lst=Do.log,zst=Do.unstable_setDisableYieldValue,C2=null,ii=null,Uf=!1,Df=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\",Mi=Math.clz32?Math.clz32:un,Fst=Math.log,jst=Math.LN2,Zk=256,Jk=262144,Yk=4194304,hc=2,ul=8,Hf=32,Xk=268435456,Rh=Math.random().toString(36).slice(2),Ua=\"__reactFiber$\"+Rh,Oi=\"__reactProps$\"+Rh,Mh=\"__reactContainer$\"+Rh,Yj=\"__reactEvents$\"+Rh,qst=\"__reactListeners$\"+Rh,$st=\"__reactHandles$\"+Rh,ese=\"__reactResources$\"+Rh,W8=\"__reactMarker$\"+Rh,tse=new Set,Lb={},Xj={},Gst={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Vst=RegExp(\"^[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),rse={},nse={},Kst=/[\\\\n\"\\\\\\\\]/g,ose=!1,ase=!1,ise=!1,sse=!1,cse=!1,use=!1,lse=[\"value\",\"defaultValue\"],fse=!1,dse=/[\"\\'&<>\\\\n\\\\t]|^\\\\s|\\\\s$/,Wst=\"address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp\".split(\" \"),pse=\"applet caption html table td th marquee object template foreignObject desc title\".split(\" \"),Qst=pse.concat([\"button\"]),Zst=\"dd dt li option optgroup p rp rt\".split(\" \"),mse={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},e7={},eq={animation:\"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction\".split(\" \"),background:\"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize\".split(\" \"),backgroundPosition:[\"backgroundPositionX\",\"backgroundPositionY\"],border:\"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth\".split(\" \"),borderBlockEnd:[\"borderBlockEndColor\",\"borderBlockEndStyle\",\"borderBlockEndWidth\"],borderBlockStart:[\"borderBlockStartColor\",\"borderBlockStartStyle\",\"borderBlockStartWidth\"],borderBottom:[\"borderBottomColor\",\"borderBottomStyle\",\"borderBottomWidth\"],borderColor:[\"borderBottomColor\",\"borderLeftColor\",\"borderRightColor\",\"borderTopColor\"],borderImage:[\"borderImageOutset\",\"borderImageRepeat\",\"borderImageSlice\",\"borderImageSource\",\"borderImageWidth\"],borderInlineEnd:[\"borderInlineEndColor\",\"borderInlineEndStyle\",\"borderInlineEndWidth\"],borderInlineStart:[\"borderInlineStartColor\",\"borderInlineStartStyle\",\"borderInlineStartWidth\"],borderLeft:[\"borderLeftColor\",\"borderLeftStyle\",\"borderLeftWidth\"],borderRadius:[\"borderBottomLeftRadius\",\"borderBottomRightRadius\",\"borderTopLeftRadius\",\"borderTopRightRadius\"],borderRight:[\"borderRightColor\",\"borderRightStyle\",\"borderRightWidth\"],borderStyle:[\"borderBottomStyle\",\"borderLeftStyle\",\"borderRightStyle\",\"borderTopStyle\"],borderTop:[\"borderTopColor\",\"borderTopStyle\",\"borderTopWidth\"],borderWidth:[\"borderBottomWidth\",\"borderLeftWidth\",\"borderRightWidth\",\"borderTopWidth\"],columnRule:[\"columnRuleColor\",\"columnRuleStyle\",\"columnRuleWidth\"],columns:[\"columnCount\",\"columnWidth\"],flex:[\"flexBasis\",\"flexGrow\",\"flexShrink\"],flexFlow:[\"flexDirection\",\"flexWrap\"],font:\"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight\".split(\" \"),fontVariant:\"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition\".split(\" \"),gap:[\"columnGap\",\"rowGap\"],grid:\"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows\".split(\" \"),gridArea:[\"gridColumnEnd\",\"gridColumnStart\",\"gridRowEnd\",\"gridRowStart\"],gridColumn:[\"gridColumnEnd\",\"gridColumnStart\"],gridColumnGap:[\"columnGap\"],gridGap:[\"columnGap\",\"rowGap\"],gridRow:[\"gridRowEnd\",\"gridRowStart\"],gridRowGap:[\"rowGap\"],gridTemplate:[\"gridTemplateAreas\",\"gridTemplateColumns\",\"gridTemplateRows\"],listStyle:[\"listStyleImage\",\"listStylePosition\",\"listStyleType\"],margin:[\"marginBottom\",\"marginLeft\",\"marginRight\",\"marginTop\"],marker:[\"markerEnd\",\"markerMid\",\"markerStart\"],mask:\"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize\".split(\" \"),maskPosition:[\"maskPositionX\",\"maskPositionY\"],outline:[\"outlineColor\",\"outlineStyle\",\"outlineWidth\"],overflow:[\"overflowX\",\"overflowY\"],padding:[\"paddingBottom\",\"paddingLeft\",\"paddingRight\",\"paddingTop\"],placeContent:[\"alignContent\",\"justifyContent\"],placeItems:[\"alignItems\",\"justifyItems\"],placeSelf:[\"alignSelf\",\"justifySelf\"],textDecoration:[\"textDecorationColor\",\"textDecorationLine\",\"textDecorationStyle\"],textEmphasis:[\"textEmphasisColor\",\"textEmphasisStyle\"],transition:[\"transitionDelay\",\"transitionDuration\",\"transitionProperty\",\"transitionTimingFunction\"],wordWrap:[\"overflowWrap\"]},hse=/([A-Z])/g,yse=/^ms-/,Jst=/^(?:webkit|moz|o)[A-Z]/,Yst=/^-ms-/,Xst=/-(.)/g,bse=/;\\\\s*$/,T2={},tq={},gse=!1,xse=!1,vse=new Set(\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\" \")),t7=\"http://www.w3.org/1998/Math/MathML\",_2=\"http://www.w3.org/2000/svg\",ect=new Map([[\"acceptCharset\",\"accept-charset\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"],[\"crossOrigin\",\"crossorigin\"],[\"accentHeight\",\"accent-height\"],[\"alignmentBaseline\",\"alignment-baseline\"],[\"arabicForm\",\"arabic-form\"],[\"baselineShift\",\"baseline-shift\"],[\"capHeight\",\"cap-height\"],[\"clipPath\",\"clip-path\"],[\"clipRule\",\"clip-rule\"],[\"colorInterpolation\",\"color-interpolation\"],[\"colorInterpolationFilters\",\"color-interpolation-filters\"],[\"colorProfile\",\"color-profile\"],[\"colorRendering\",\"color-rendering\"],[\"dominantBaseline\",\"dominant-baseline\"],[\"enableBackground\",\"enable-background\"],[\"fillOpacity\",\"fill-opacity\"],[\"fillRule\",\"fill-rule\"],[\"floodColor\",\"flood-color\"],[\"floodOpacity\",\"flood-opacity\"],[\"fontFamily\",\"font-family\"],[\"fontSize\",\"font-size\"],[\"fontSizeAdjust\",\"font-size-adjust\"],[\"fontStretch\",\"font-stretch\"],[\"fontStyle\",\"font-style\"],[\"fontVariant\",\"font-variant\"],[\"fontWeight\",\"font-weight\"],[\"glyphName\",\"glyph-name\"],[\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\"],[\"glyphOrientationVertical\",\"glyph-orientation-vertical\"],[\"horizAdvX\",\"horiz-adv-x\"],[\"horizOriginX\",\"horiz-origin-x\"],[\"imageRendering\",\"image-rendering\"],[\"letterSpacing\",\"letter-spacing\"],[\"lightingColor\",\"lighting-color\"],[\"markerEnd\",\"marker-end\"],[\"markerMid\",\"marker-mid\"],[\"markerStart\",\"marker-start\"],[\"overlinePosition\",\"overline-position\"],[\"overlineThickness\",\"overline-thickness\"],[\"paintOrder\",\"paint-order\"],[\"panose-1\",\"panose-1\"],[\"pointerEvents\",\"pointer-events\"],[\"renderingIntent\",\"rendering-intent\"],[\"shapeRendering\",\"shape-rendering\"],[\"stopColor\",\"stop-color\"],[\"stopOpacity\",\"stop-opacity\"],[\"strikethroughPosition\",\"strikethrough-position\"],[\"strikethroughThickness\",\"strikethrough-thickness\"],[\"strokeDasharray\",\"stroke-dasharray\"],[\"strokeDashoffset\",\"stroke-dashoffset\"],[\"strokeLinecap\",\"stroke-linecap\"],[\"strokeLinejoin\",\"stroke-linejoin\"],[\"strokeMiterlimit\",\"stroke-miterlimit\"],[\"strokeOpacity\",\"stroke-opacity\"],[\"strokeWidth\",\"stroke-width\"],[\"textAnchor\",\"text-anchor\"],[\"textDecoration\",\"text-decoration\"],[\"textRendering\",\"text-rendering\"],[\"transformOrigin\",\"transform-origin\"],[\"underlinePosition\",\"underline-position\"],[\"underlineThickness\",\"underline-thickness\"],[\"unicodeBidi\",\"unicode-bidi\"],[\"unicodeRange\",\"unicode-range\"],[\"unitsPerEm\",\"units-per-em\"],[\"vAlphabetic\",\"v-alphabetic\"],[\"vHanging\",\"v-hanging\"],[\"vIdeographic\",\"v-ideographic\"],[\"vMathematical\",\"v-mathematical\"],[\"vectorEffect\",\"vector-effect\"],[\"vertAdvY\",\"vert-adv-y\"],[\"vertOriginX\",\"vert-origin-x\"],[\"vertOriginY\",\"vert-origin-y\"],[\"wordSpacing\",\"word-spacing\"],[\"writingMode\",\"writing-mode\"],[\"xmlnsXlink\",\"xmlns:xlink\"],[\"xHeight\",\"x-height\"]]),r7={accept:\"accept\",acceptcharset:\"acceptCharset\",\"accept-charset\":\"acceptCharset\",accesskey:\"accessKey\",action:\"action\",allowfullscreen:\"allowFullScreen\",alt:\"alt\",as:\"as\",async:\"async\",autocapitalize:\"autoCapitalize\",autocomplete:\"autoComplete\",autocorrect:\"autoCorrect\",autofocus:\"autoFocus\",autoplay:\"autoPlay\",autosave:\"autoSave\",capture:\"capture\",cellpadding:\"cellPadding\",cellspacing:\"cellSpacing\",challenge:\"challenge\",charset:\"charSet\",checked:\"checked\",children:\"children\",cite:\"cite\",class:\"className\",classid:\"classID\",classname:\"className\",cols:\"cols\",colspan:\"colSpan\",content:\"content\",contenteditable:\"contentEditable\",contextmenu:\"contextMenu\",controls:\"controls\",controlslist:\"controlsList\",coords:\"coords\",crossorigin:\"crossOrigin\",dangerouslysetinnerhtml:\"dangerouslySetInnerHTML\",data:\"data\",datetime:\"dateTime\",default:\"default\",defaultchecked:\"defaultChecked\",defaultvalue:\"defaultValue\",defer:\"defer\",dir:\"dir\",disabled:\"disabled\",disablepictureinpicture:\"disablePictureInPicture\",disableremoteplayback:\"disableRemotePlayback\",download:\"download\",draggable:\"draggable\",enctype:\"encType\",enterkeyhint:\"enterKeyHint\",fetchpriority:\"fetchPriority\",for:\"htmlFor\",form:\"form\",formmethod:\"formMethod\",formaction:\"formAction\",formenctype:\"formEncType\",formnovalidate:\"formNoValidate\",formtarget:\"formTarget\",frameborder:\"frameBorder\",headers:\"headers\",height:\"height\",hidden:\"hidden\",high:\"high\",href:\"href\",hreflang:\"hrefLang\",htmlfor:\"htmlFor\",httpequiv:\"httpEquiv\",\"http-equiv\":\"httpEquiv\",icon:\"icon\",id:\"id\",imagesizes:\"imageSizes\",imagesrcset:\"imageSrcSet\",inert:\"inert\",innerhtml:\"innerHTML\",inputmode:\"inputMode\",integrity:\"integrity\",is:\"is\",itemid:\"itemID\",itemprop:\"itemProp\",itemref:\"itemRef\",itemscope:\"itemScope\",itemtype:\"itemType\",keyparams:\"keyParams\",keytype:\"keyType\",kind:\"kind\",label:\"label\",lang:\"lang\",list:\"list\",loop:\"loop\",low:\"low\",manifest:\"manifest\",marginwidth:\"marginWidth\",marginheight:\"marginHeight\",max:\"max\",maxlength:\"maxLength\",media:\"media\",mediagroup:\"mediaGroup\",method:\"method\",min:\"min\",minlength:\"minLength\",multiple:\"multiple\",muted:\"muted\",name:\"name\",nomodule:\"noModule\",nonce:\"nonce\",novalidate:\"noValidate\",open:\"open\",optimum:\"optimum\",pattern:\"pattern\",placeholder:\"placeholder\",playsinline:\"playsInline\",poster:\"poster\",preload:\"preload\",profile:\"profile\",radiogroup:\"radioGroup\",readonly:\"readOnly\",referrerpolicy:\"referrerPolicy\",rel:\"rel\",required:\"required\",reversed:\"reversed\",role:\"role\",rows:\"rows\",rowspan:\"rowSpan\",sandbox:\"sandbox\",scope:\"scope\",scoped:\"scoped\",scrolling:\"scrolling\",seamless:\"seamless\",selected:\"selected\",shape:\"shape\",size:\"size\",sizes:\"sizes\",span:\"span\",spellcheck:\"spellCheck\",src:\"src\",srcdoc:\"srcDoc\",srclang:\"srcLang\",srcset:\"srcSet\",start:\"start\",step:\"step\",style:\"style\",summary:\"summary\",tabindex:\"tabIndex\",target:\"target\",title:\"title\",type:\"type\",usemap:\"useMap\",value:\"value\",width:\"width\",wmode:\"wmode\",wrap:\"wrap\",about:\"about\",accentheight:\"accentHeight\",\"accent-height\":\"accentHeight\",accumulate:\"accumulate\",additive:\"additive\",alignmentbaseline:\"alignmentBaseline\",\"alignment-baseline\":\"alignmentBaseline\",allowreorder:\"allowReorder\",alphabetic:\"alphabetic\",amplitude:\"amplitude\",arabicform:\"arabicForm\",\"arabic-form\":\"arabicForm\",ascent:\"ascent\",attributename:\"attributeName\",attributetype:\"attributeType\",autoreverse:\"autoReverse\",azimuth:\"azimuth\",basefrequency:\"baseFrequency\",baselineshift:\"baselineShift\",\"baseline-shift\":\"baselineShift\",baseprofile:\"baseProfile\",bbox:\"bbox\",begin:\"begin\",bias:\"bias\",by:\"by\",calcmode:\"calcMode\",capheight:\"capHeight\",\"cap-height\":\"capHeight\",clip:\"clip\",clippath:\"clipPath\",\"clip-path\":\"clipPath\",clippathunits:\"clipPathUnits\",cliprule:\"clipRule\",\"clip-rule\":\"clipRule\",color:\"color\",colorinterpolation:\"colorInterpolation\",\"color-interpolation\":\"colorInterpolation\",colorinterpolationfilters:\"colorInterpolationFilters\",\"color-interpolation-filters\":\"colorInterpolationFilters\",colorprofile:\"colorProfile\",\"color-profile\":\"colorProfile\",colorrendering:\"colorRendering\",\"color-rendering\":\"colorRendering\",contentscripttype:\"contentScriptType\",contentstyletype:\"contentStyleType\",cursor:\"cursor\",cx:\"cx\",cy:\"cy\",d:\"d\",datatype:\"datatype\",decelerate:\"decelerate\",descent:\"descent\",diffuseconstant:\"diffuseConstant\",direction:\"direction\",display:\"display\",divisor:\"divisor\",dominantbaseline:\"dominantBaseline\",\"dominant-baseline\":\"dominantBaseline\",dur:\"dur\",dx:\"dx\",dy:\"dy\",edgemode:\"edgeMode\",elevation:\"elevation\",enablebackground:\"enableBackground\",\"enable-background\":\"enableBackground\",end:\"end\",exponent:\"exponent\",externalresourcesrequired:\"externalResourcesRequired\",fill:\"fill\",fillopacity:\"fillOpacity\",\"fill-opacity\":\"fillOpacity\",fillrule:\"fillRule\",\"fill-rule\":\"fillRule\",filter:\"filter\",filterres:\"filterRes\",filterunits:\"filterUnits\",floodopacity:\"floodOpacity\",\"flood-opacity\":\"floodOpacity\",floodcolor:\"floodColor\",\"flood-color\":\"floodColor\",focusable:\"focusable\",fontfamily:\"fontFamily\",\"font-family\":\"fontFamily\",fontsize:\"fontSize\",\"font-size\":\"fontSize\",fontsizeadjust:\"fontSizeAdjust\",\"font-size-adjust\":\"fontSizeAdjust\",fontstretch:\"fontStretch\",\"font-stretch\":\"fontStretch\",fontstyle:\"fontStyle\",\"font-style\":\"fontStyle\",fontvariant:\"fontVariant\",\"font-variant\":\"fontVariant\",fontweight:\"fontWeight\",\"font-weight\":\"fontWeight\",format:\"format\",from:\"from\",fx:\"fx\",fy:\"fy\",g1:\"g1\",g2:\"g2\",glyphname:\"glyphName\",\"glyph-name\":\"glyphName\",glyphorientationhorizontal:\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\":\"glyphOrientationHorizontal\",glyphorientationvertical:\"glyphOrientationVertical\",\"glyph-orientation-vertical\":\"glyphOrientationVertical\",glyphref:\"glyphRef\",gradienttransform:\"gradientTransform\",gradientunits:\"gradientUnits\",hanging:\"hanging\",horizadvx:\"horizAdvX\",\"horiz-adv-x\":\"horizAdvX\",horizoriginx:\"horizOriginX\",\"horiz-origin-x\":\"horizOriginX\",ideographic:\"ideographic\",imagerendering:\"imageRendering\",\"image-rendering\":\"imageRendering\",in2:\"in2\",in:\"in\",inlist:\"inlist\",intercept:\"intercept\",k1:\"k1\",k2:\"k2\",k3:\"k3\",k4:\"k4\",k:\"k\",kernelmatrix:\"kernelMatrix\",kernelunitlength:\"kernelUnitLength\",kerning:\"kerning\",keypoints:\"keyPoints\",keysplines:\"keySplines\",keytimes:\"keyTimes\",lengthadjust:\"lengthAdjust\",letterspacing:\"letterSpacing\",\"letter-spacing\":\"letterSpacing\",lightingcolor:\"lightingColor\",\"lighting-color\":\"lightingColor\",limitingconeangle:\"limitingConeAngle\",local:\"local\",markerend:\"markerEnd\",\"marker-end\":\"markerEnd\",markerheight:\"markerHeight\",markermid:\"markerMid\",\"marker-mid\":\"markerMid\",markerstart:\"markerStart\",\"marker-start\":\"markerStart\",markerunits:\"markerUnits\",markerwidth:\"markerWidth\",mask:\"mask\",maskcontentunits:\"maskContentUnits\",maskunits:\"maskUnits\",mathematical:\"mathematical\",mode:\"mode\",numoctaves:\"numOctaves\",offset:\"offset\",opacity:\"opacity\",operator:\"operator\",order:\"order\",orient:\"orient\",orientation:\"orientation\",origin:\"origin\",overflow:\"overflow\",overlineposition:\"overlinePosition\",\"overline-position\":\"overlinePosition\",overlinethickness:\"overlineThickness\",\"overline-thickness\":\"overlineThickness\",paintorder:\"paintOrder\",\"paint-order\":\"paintOrder\",panose1:\"panose1\",\"panose-1\":\"panose1\",pathlength:\"pathLength\",patterncontentunits:\"patternContentUnits\",patterntransform:\"patternTransform\",patternunits:\"patternUnits\",pointerevents:\"pointerEvents\",\"pointer-events\":\"pointerEvents\",points:\"points\",pointsatx:\"pointsAtX\",pointsaty:\"pointsAtY\",pointsatz:\"pointsAtZ\",popover:\"popover\",popovertarget:\"popoverTarget\",popovertargetaction:\"popoverTargetAction\",prefix:\"prefix\",preservealpha:\"preserveAlpha\",preserveaspectratio:\"preserveAspectRatio\",primitiveunits:\"primitiveUnits\",property:\"property\",r:\"r\",radius:\"radius\",refx:\"refX\",refy:\"refY\",renderingintent:\"renderingIntent\",\"rendering-intent\":\"renderingIntent\",repeatcount:\"repeatCount\",repeatdur:\"repeatDur\",requiredextensions:\"requiredExtensions\",requiredfeatures:\"requiredFeatures\",resource:\"resource\",restart:\"restart\",result:\"result\",results:\"results\",rotate:\"rotate\",rx:\"rx\",ry:\"ry\",scale:\"scale\",security:\"security\",seed:\"seed\",shaperendering:\"shapeRendering\",\"shape-rendering\":\"shapeRendering\",slope:\"slope\",spacing:\"spacing\",specularconstant:\"specularConstant\",specularexponent:\"specularExponent\",speed:\"speed\",spreadmethod:\"spreadMethod\",startoffset:\"startOffset\",stddeviation:\"stdDeviation\",stemh:\"stemh\",stemv:\"stemv\",stitchtiles:\"stitchTiles\",stopcolor:\"stopColor\",\"stop-color\":\"stopColor\",stopopacity:\"stopOpacity\",\"stop-opacity\":\"stopOpacity\",strikethroughposition:\"strikethroughPosition\",\"strikethrough-position\":\"strikethroughPosition\",strikethroughthickness:\"strikethroughThickness\",\"strikethrough-thickness\":\"strikethroughThickness\",string:\"string\",stroke:\"stroke\",strokedasharray:\"strokeDasharray\",\"stroke-dasharray\":\"strokeDasharray\",strokedashoffset:\"strokeDashoffset\",\"stroke-dashoffset\":\"strokeDashoffset\",strokelinecap:\"strokeLinecap\",\"stroke-linecap\":\"strokeLinecap\",strokelinejoin:\"strokeLinejoin\",\"stroke-linejoin\":\"strokeLinejoin\",strokemiterlimit:\"strokeMiterlimit\",\"stroke-miterlimit\":\"strokeMiterlimit\",strokewidth:\"strokeWidth\",\"stroke-width\":\"strokeWidth\",strokeopacity:\"strokeOpacity\",\"stroke-opacity\":\"strokeOpacity\",suppresscontenteditablewarning:\"suppressContentEditableWarning\",suppresshydrationwarning:\"suppressHydrationWarning\",surfacescale:\"surfaceScale\",systemlanguage:\"systemLanguage\",tablevalues:\"tableValues\",targetx:\"targetX\",targety:\"targetY\",textanchor:\"textAnchor\",\"text-anchor\":\"textAnchor\",textdecoration:\"textDecoration\",\"text-decoration\":\"textDecoration\",textlength:\"textLength\",textrendering:\"textRendering\",\"text-rendering\":\"textRendering\",to:\"to\",transform:\"transform\",transformorigin:\"transformOrigin\",\"transform-origin\":\"transformOrigin\",typeof:\"typeof\",u1:\"u1\",u2:\"u2\",underlineposition:\"underlinePosition\",\"underline-position\":\"underlinePosition\",underlinethickness:\"underlineThickness\",\"underline-thickness\":\"underlineThickness\",unicode:\"unicode\",unicodebidi:\"unicodeBidi\",\"unicode-bidi\":\"unicodeBidi\",unicoderange:\"unicodeRange\",\"unicode-range\":\"unicodeRange\",unitsperem:\"unitsPerEm\",\"units-per-em\":\"unitsPerEm\",unselectable:\"unselectable\",valphabetic:\"vAlphabetic\",\"v-alphabetic\":\"vAlphabetic\",values:\"values\",vectoreffect:\"vectorEffect\",\"vector-effect\":\"vectorEffect\",version:\"version\",vertadvy:\"vertAdvY\",\"vert-adv-y\":\"vertAdvY\",vertoriginx:\"vertOriginX\",\"vert-origin-x\":\"vertOriginX\",vertoriginy:\"vertOriginY\",\"vert-origin-y\":\"vertOriginY\",vhanging:\"vHanging\",\"v-hanging\":\"vHanging\",videographic:\"vIdeographic\",\"v-ideographic\":\"vIdeographic\",viewbox:\"viewBox\",viewtarget:\"viewTarget\",visibility:\"visibility\",vmathematical:\"vMathematical\",\"v-mathematical\":\"vMathematical\",vocab:\"vocab\",widths:\"widths\",wordspacing:\"wordSpacing\",\"word-spacing\":\"wordSpacing\",writingmode:\"writingMode\",\"writing-mode\":\"writingMode\",x1:\"x1\",x2:\"x2\",x:\"x\",xchannelselector:\"xChannelSelector\",xheight:\"xHeight\",\"x-height\":\"xHeight\",xlinkactuate:\"xlinkActuate\",\"xlink:actuate\":\"xlinkActuate\",xlinkarcrole:\"xlinkArcrole\",\"xlink:arcrole\":\"xlinkArcrole\",xlinkhref:\"xlinkHref\",\"xlink:href\":\"xlinkHref\",xlinkrole:\"xlinkRole\",\"xlink:role\":\"xlinkRole\",xlinkshow:\"xlinkShow\",\"xlink:show\":\"xlinkShow\",xlinktitle:\"xlinkTitle\",\"xlink:title\":\"xlinkTitle\",xlinktype:\"xlinkType\",\"xlink:type\":\"xlinkType\",xmlbase:\"xmlBase\",\"xml:base\":\"xmlBase\",xmllang:\"xmlLang\",\"xml:lang\":\"xmlLang\",xmlns:\"xmlns\",\"xml:space\":\"xmlSpace\",xmlnsxlink:\"xmlnsXlink\",\"xmlns:xlink\":\"xmlnsXlink\",xmlspace:\"xmlSpace\",y1:\"y1\",y2:\"y2\",y:\"y\",ychannelselector:\"yChannelSelector\",z:\"z\",zoomandpan:\"zoomAndPan\"},wse={\"aria-current\":0,\"aria-description\":0,\"aria-details\":0,\"aria-disabled\":0,\"aria-hidden\":0,\"aria-invalid\":0,\"aria-keyshortcuts\":0,\"aria-label\":0,\"aria-roledescription\":0,\"aria-autocomplete\":0,\"aria-checked\":0,\"aria-expanded\":0,\"aria-haspopup\":0,\"aria-level\":0,\"aria-modal\":0,\"aria-multiline\":0,\"aria-multiselectable\":0,\"aria-orientation\":0,\"aria-placeholder\":0,\"aria-pressed\":0,\"aria-readonly\":0,\"aria-required\":0,\"aria-selected\":0,\"aria-sort\":0,\"aria-valuemax\":0,\"aria-valuemin\":0,\"aria-valuenow\":0,\"aria-valuetext\":0,\"aria-atomic\":0,\"aria-busy\":0,\"aria-live\":0,\"aria-relevant\":0,\"aria-dropeffect\":0,\"aria-grabbed\":0,\"aria-activedescendant\":0,\"aria-colcount\":0,\"aria-colindex\":0,\"aria-colspan\":0,\"aria-controls\":0,\"aria-describedby\":0,\"aria-errormessage\":0,\"aria-flowto\":0,\"aria-labelledby\":0,\"aria-owns\":0,\"aria-posinset\":0,\"aria-rowcount\":0,\"aria-rowindex\":0,\"aria-rowspan\":0,\"aria-setsize\":0,\"aria-braillelabel\":0,\"aria-brailleroledescription\":0,\"aria-colindextext\":0,\"aria-rowindextext\":0},k2={},tct=RegExp(\"^(aria)-[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),rct=RegExp(\"^(aria)[A-Z][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),Ese=!1,Ni={},Ase=/^on./,nct=/^on[^A-Z]/,oct=RegExp(\"^(aria)-[:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),act=RegExp(\"^(aria)[A-Z][:A-Z_a-z\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\\\\\\\-.0-9\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040]*$\"),ict=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i,Q8=null,B2=null,I2=null,rq=!1,Lf=!(typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"),nq=!1;if(Lf)try{var Z8={};Object.defineProperty(Z8,\"passive\",{get:function(){nq=!0}}),window.addEventListener(\"test\",Z8,Z8),window.removeEventListener(\"test\",Z8,Z8)}catch{nq=!1}var Oh=null,oq=null,n7=null,zb={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},o7=xs(zb),J8=Wt({},zb,{view:0,detail:0}),sct=xs(J8),aq,iq,Y8,a7=Wt({},J8,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fz,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return\"movementX\"in a?a.movementX:(a!==Y8&&(Y8&&a.type===\"mousemove\"?(aq=a.screenX-Y8.screenX,iq=a.screenY-Y8.screenY):iq=aq=0,Y8=a),aq)},movementY:function(a){return\"movementY\"in a?a.movementY:iq}}),Sse=xs(a7),cct=Wt({},a7,{dataTransfer:0}),uct=xs(cct),lct=Wt({},J8,{relatedTarget:0}),sq=xs(lct),fct=Wt({},zb,{animationName:0,elapsedTime:0,pseudoElement:0}),dct=xs(fct),pct=Wt({},zb,{clipboardData:function(a){return\"clipboardData\"in a?a.clipboardData:window.clipboardData}}),mct=xs(pct),hct=Wt({},zb,{data:0}),Cse=xs(hct),yct=Cse,bct={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},gct={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},xct={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"},vct=Wt({},J8,{key:function(a){if(a.key){var i=bct[a.key]||a.key;if(i!==\"Unidentified\")return i}return a.type===\"keypress\"?(a=$4(a),a===13?\"Enter\":String.fromCharCode(a)):a.type===\"keydown\"||a.type===\"keyup\"?gct[a.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fz,charCode:function(a){return a.type===\"keypress\"?$4(a):0},keyCode:function(a){return a.type===\"keydown\"||a.type===\"keyup\"?a.keyCode:0},which:function(a){return a.type===\"keypress\"?$4(a):a.type===\"keydown\"||a.type===\"keyup\"?a.keyCode:0}}),wct=xs(vct),Ect=Wt({},a7,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tse=xs(Ect),Act=Wt({},J8,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fz}),Sct=xs(Act),Cct=Wt({},zb,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tct=xs(Cct),_ct=Wt({},a7,{deltaX:function(a){return\"deltaX\"in a?a.deltaX:\"wheelDeltaX\"in a?-a.wheelDeltaX:0},deltaY:function(a){return\"deltaY\"in a?a.deltaY:\"wheelDeltaY\"in a?-a.wheelDeltaY:\"wheelDelta\"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),kct=xs(_ct),Bct=Wt({},zb,{newState:0,oldState:0}),Ict=xs(Bct),Pct=[9,13,27,32],_se=229,cq=Lf&&\"CompositionEvent\"in window,X8=null;Lf&&\"documentMode\"in document&&(X8=document.documentMode);var Rct=Lf&&\"TextEvent\"in window&&!X8,kse=Lf&&(!cq||X8&&8<X8&&11>=X8),Bse=32,Ise=String.fromCharCode(Bse),Pse=!1,P2=!1,Mct={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},eA=null,tA=null,Rse=!1;Lf&&(Rse=Xat(\"input\")&&(!document.documentMode||9<document.documentMode));var Ui=typeof Object.is==\"function\"?Object.is:ait,Oct=Lf&&\"documentMode\"in document&&11>=document.documentMode,R2=null,uq=null,rA=null,lq=!1,M2={animationend:Cb(\"Animation\",\"AnimationEnd\"),animationiteration:Cb(\"Animation\",\"AnimationIteration\"),animationstart:Cb(\"Animation\",\"AnimationStart\"),transitionrun:Cb(\"Transition\",\"TransitionRun\"),transitionstart:Cb(\"Transition\",\"TransitionStart\"),transitioncancel:Cb(\"Transition\",\"TransitionCancel\"),transitionend:Cb(\"Transition\",\"TransitionEnd\")},fq={},Mse={};Lf&&(Mse=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete M2.animationend.animation,delete M2.animationiteration.animation,delete M2.animationstart.animation),\"TransitionEvent\"in window||delete M2.transitionend.transition);var Ose=Tb(\"animationend\"),Nse=Tb(\"animationiteration\"),Use=Tb(\"animationstart\"),Nct=Tb(\"transitionrun\"),Uct=Tb(\"transitionstart\"),Dct=Tb(\"transitioncancel\"),Dse=Tb(\"transitionend\"),Hse=new Map,dq=\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\" \");dq.push(\"scrollEnd\");var Lse=0;if(typeof performance==\"object\"&&typeof performance.now==\"function\")var Hct=performance,zse=function(){return Hct.now()};else{var Lct=Date;zse=function(){return Lct.now()}}var pq=typeof reportError==\"function\"?reportError:function(a){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var i=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof a==\"object\"&&a!==null&&typeof a.message==\"string\"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",a);return}console.error(a)},zct=\"This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.\",i7=0,mq=1,hq=2,yq=3,s7=\"\\\\u2013\\\\xA0\",c7=\"+\\\\xA0\",Fse=\"\\\\u2007\\\\xA0\",In=typeof console<\"u\"&&typeof console.timeStamp==\"function\"&&typeof performance<\"u\"&&typeof performance.measure==\"function\",Vc=\"Components \\\\u269B\",Qt=\"Scheduler \\\\u269B\",er=\"Blocking\",Nh=!1,Cp={color:\"primary\",properties:null,tooltipText:\"\",track:Vc},Uh={start:-0,end:-0,detail:{devtools:Cp}},Fct=[\"Changed Props\",\"\"],jse=\"This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.\",jct=[\"Changed Props\",jse],nA=1,Tp=2,Kc=[],O2=0,bq=0,Dh={};Object.freeze(Dh);var Wc=null,N2=null,mt=0,qct=1,Nt=2,si=8,ll=16,$ct=32,qse=!1;try{var $se=Object.preventExtensions({})}catch{qse=!0}var gq=new WeakMap,U2=[],D2=0,u7=null,oA=0,Qc=[],Zc=0,Fb=null,_p=1,kp=\"\",Da=null,Pn=null,nr=!1,zf=!1,yc=null,Hh=null,Jc=!1,xq=Error(\"Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you\\'re seeing this, it\\'s likely a bug in React.\"),vq=ie(null),wq=ie(null),Gse={},l7=null,H2=null,L2=!1,Gct=typeof AbortController<\"u\"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(l,p){a.push(p)}};this.abort=function(){i.aborted=!0,a.forEach(function(l){return l()})}},Vct=Do.unstable_scheduleCallback,Kct=Do.unstable_NormalPriority,Ho={$$typeof:Of,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Lo=Do.unstable_now,f7=console.createTask?console.createTask:function(){return null},aA=1,d7=2,ha=-0,Lh=-0,Bp=-0,Ip=null,Di=-1.1,jb=-0,Vn=-0,ct=-1.1,lt=-1.1,Ln=null,no=!1,zh=-0,Ff=-1.1,iA=null,Fh=0,Eq=null,Aq=null,qb=-1.1,sA=null,z2=-1.1,p7=-1.1,jf=-0,Pp=-1.1,Yc=-1.1,Sq=0,cA=null,Vse=null,Kse=null,jh=-1.1,$b=null,qh=-1.1,m7=-1.1,Wse=-0,Qse=-0,h7=0,Rp=null,Zse=0,uA=-1.1,y7=!1,b7=!1,lA=null,Cq=0,Gb=0,F2=null,Jse=ye.S;ye.S=function(a,i){if(Vce=ma(),typeof i==\"object\"&&i!==null&&typeof i.then==\"function\"){if(0>Pp&&0>Yc){Pp=Lo();var l=z8(),p=L8();(l!==qh||p!==$b)&&(qh=-1.1),jh=l,$b=p}dit(a,i)}Jse!==null&&Jse(a,i)};var Vb=ie(null),fl={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},fA=[],dA=[],pA=[],mA=[],hA=[],yA=[],Kb=new Set;fl.recordUnsafeLifecycleWarnings=function(a,i){Kb.has(a.type)||(typeof i.componentWillMount==\"function\"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&fA.push(a),a.mode&si&&typeof i.UNSAFE_componentWillMount==\"function\"&&dA.push(a),typeof i.componentWillReceiveProps==\"function\"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&pA.push(a),a.mode&si&&typeof i.UNSAFE_componentWillReceiveProps==\"function\"&&mA.push(a),typeof i.componentWillUpdate==\"function\"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&hA.push(a),a.mode&si&&typeof i.UNSAFE_componentWillUpdate==\"function\"&&yA.push(a))},fl.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;0<fA.length&&(fA.forEach(function(k){a.add(W(k)||\"Component\"),Kb.add(k.type)}),fA=[]);var i=new Set;0<dA.length&&(dA.forEach(function(k){i.add(W(k)||\"Component\"),Kb.add(k.type)}),dA=[]);var l=new Set;0<pA.length&&(pA.forEach(function(k){l.add(W(k)||\"Component\"),Kb.add(k.type)}),pA=[]);var p=new Set;0<mA.length&&(mA.forEach(function(k){p.add(W(k)||\"Component\"),Kb.add(k.type)}),mA=[]);var b=new Set;0<hA.length&&(hA.forEach(function(k){b.add(W(k)||\"Component\"),Kb.add(k.type)}),hA=[]);var w=new Set;if(0<yA.length&&(yA.forEach(function(k){w.add(W(k)||\"Component\"),Kb.add(k.type)}),yA=[]),0<i.size){var S=y(i);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n\\nPlease update the following components: %s`,S)}0<p.size&&(S=y(p),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n* If you\\'re updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\\n\\nPlease update the following components: %s`,S)),0<w.size&&(S=y(w),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n\\nPlease update the following components: %s`,S)),0<a.size&&(S=y(a),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \\\\`npx react-codemod rename-unsafe-lifecycles\\\\` in your project source folder.\\n\\nPlease update the following components: %s`,S)),0<l.size&&(S=y(l),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n* If you\\'re updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \\\\`npx react-codemod rename-unsafe-lifecycles\\\\` in your project source folder.\\n\\nPlease update the following components: %s`,S)),0<b.size&&(S=y(b),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \\\\`npx react-codemod rename-unsafe-lifecycles\\\\` in your project source folder.\\n\\nPlease update the following components: %s`,S))};var g7=new Map,Yse=new Set;fl.recordLegacyContextWarning=function(a,i){for(var l=null,p=a;p!==null;)p.mode&si&&(l=p),p=p.return;l===null?console.error(\"Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.\"):!Yse.has(a.type)&&(p=g7.get(l),a.type.contextTypes!=null||a.type.childContextTypes!=null||i!==null&&typeof i.getChildContext==\"function\")&&(p===void 0&&(p=[],g7.set(l,p)),p.push(a))},fl.flushLegacyContextWarning=function(){g7.forEach(function(a){if(a.length!==0){var i=a[0],l=new Set;a.forEach(function(b){l.add(W(b)||\"Component\"),Yse.add(b.type)});var p=y(l);Te(i,function(){console.error(`Legacy context API has been detected within a strict-mode tree.\\n\\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\\n\\nPlease update the following components: %s\\n\\nLearn more about this warning here: https://react.dev/link/legacy-context`,p)})}})},fl.discardPendingWarnings=function(){fA=[],dA=[],pA=[],mA=[],hA=[],yA=[],g7=new Map};var Xse={react_stack_bottom_frame:function(a,i,l){var p=Nf;Nf=!0;try{return a(i,l)}finally{Nf=p}}},Tq=Xse.react_stack_bottom_frame.bind(Xse),ece={react_stack_bottom_frame:function(a){var i=Nf;Nf=!0;try{return a.render()}finally{Nf=i}}},tce=ece.react_stack_bottom_frame.bind(ece),rce={react_stack_bottom_frame:function(a,i){try{i.componentDidMount()}catch(l){zr(a,a.return,l)}}},_q=rce.react_stack_bottom_frame.bind(rce),nce={react_stack_bottom_frame:function(a,i,l,p,b){try{i.componentDidUpdate(l,p,b)}catch(w){zr(a,a.return,w)}}},oce=nce.react_stack_bottom_frame.bind(nce),ace={react_stack_bottom_frame:function(a,i){var l=i.stack;a.componentDidCatch(i.value,{componentStack:l!==null?l:\"\"})}},Wct=ace.react_stack_bottom_frame.bind(ace),ice={react_stack_bottom_frame:function(a,i,l){try{l.componentWillUnmount()}catch(p){zr(a,i,p)}}},sce=ice.react_stack_bottom_frame.bind(ice),cce={react_stack_bottom_frame:function(a){var i=a.create;return a=a.inst,i=i(),a.destroy=i}},Qct=cce.react_stack_bottom_frame.bind(cce),uce={react_stack_bottom_frame:function(a,i,l){try{l()}catch(p){zr(a,i,p)}}},Zct=uce.react_stack_bottom_frame.bind(uce),lce={react_stack_bottom_frame:function(a){var i=a._init;return i(a._payload)}},Jct=lce.react_stack_bottom_frame.bind(lce),j2=Error(\"Suspense Exception: This is not a real error! It\\'s an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\\\n\\\\nTo handle async errors, wrap your component in an error boundary, or call the promise\\'s `.catch` method and pass the result to `use`.\"),kq=Error(\"Suspense Exception: This is not a real error, and should not leak into userspace. If you\\'re seeing this, it\\'s likely a bug in React.\"),x7=Error(\"Suspense Exception: This is not a real error! It\\'s an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\\\n\\\\nTo handle async errors, wrap your component in an error boundary.\"),v7={then:function(){console.error(\\'Internal React error: A listener was unexpectedly attached to a \"noop\" thenable. This is a bug in React. Please file an issue.\\')}},Wb=null,bA=!1,q2=null,gA=0,Ut=null,Bq,fce=Bq=!1,dce={},pce={},mce={};h=function(a,i,l){if(l!==null&&typeof l==\"object\"&&l._store&&(!l._store.validated&&l.key==null||l._store.validated===2)){if(typeof l._store!=\"object\")throw Error(\"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.\");l._store.validated=1;var p=W(a),b=p||\"null\";if(!dce[b]){dce[b]=!0,l=l._owner,a=a._debugOwner;var w=\"\";a&&typeof a.tag==\"number\"&&(b=W(a))&&(w=`\\n\\nCheck the render method of \\\\``+b+\"`.\"),w||p&&(w=`\\n\\nCheck the top-level render call using <`+p+\">.\");var S=\"\";l!=null&&a!==l&&(p=null,typeof l.tag==\"number\"?p=W(l):typeof l.name==\"string\"&&(p=l.name),p&&(S=\" It was passed a child from \"+p+\".\")),Te(i,function(){console.error(\\'Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.\\',w,S)})}}};var Qb=ioe(!0),hce=ioe(!1),yce=0,bce=1,gce=2,Iq=3,$h=!1,xce=!1,Pq=null,Rq=!1,$2=ie(null),w7=ie(0),bc=ie(null),Xc=null,G2=1,xA=2,So=ie(0),E7=0,eu=1,Hi=2,gc=4,Li=8,V2,vce=new Set,wce=new Set,Mq=new Set,Ece=new Set,Mp=0,gt=null,pn=null,zo=null,A7=!1,K2=!1,Zb=!1,S7=0,vA=0,Op=null,Yct=0,Xct=25,he=null,tu=null,Np=-1,wA=!1,EA={readContext:Hn,use:Th,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useLayoutEffect:mo,useInsertionEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useSyncExternalStore:mo,useId:mo,useHostTransitionStatus:mo,useFormState:mo,useActionState:mo,useOptimistic:mo,useMemoCache:mo,useCacheRefresh:mo};EA.useEffectEvent=mo;var Oq=null,Ace=null,Nq=null,Sce=null,qf=null,dl=null,C7=null;Oq={readContext:function(a){return Hn(a)},use:Th,useCallback:function(a,i){return he=\"useCallback\",Kt(),u2(i),PF(a,i)},useContext:function(a){return he=\"useContext\",Kt(),Hn(a)},useEffect:function(a,i){return he=\"useEffect\",Kt(),u2(i),gk(a,i)},useImperativeHandle:function(a,i,l){return he=\"useImperativeHandle\",Kt(),u2(l),IF(a,i,l)},useInsertionEffect:function(a,i){he=\"useInsertionEffect\",Kt(),u2(i),Ob(4,Hi,a,i)},useLayoutEffect:function(a,i){return he=\"useLayoutEffect\",Kt(),u2(i),BF(a,i)},useMemo:function(a,i){he=\"useMemo\",Kt(),u2(i);var l=ye.H;ye.H=qf;try{return RF(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",Kt();var p=ye.H;ye.H=qf;try{return vF(a,i,l)}finally{ye.H=p}},useRef:function(a){return he=\"useRef\",Kt(),_F(a)},useState:function(a){he=\"useState\",Kt();var i=ye.H;ye.H=qf;try{return SF(a)}finally{ye.H=i}},useDebugValue:function(){he=\"useDebugValue\",Kt()},useDeferredValue:function(a,i){return he=\"useDeferredValue\",Kt(),MF(a,i)},useTransition:function(){return he=\"useTransition\",Kt(),UF()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",Kt(),EF(a,i,l)},useId:function(){return he=\"useId\",Kt(),DF()},useFormState:function(a,i){return he=\"useFormState\",Kt(),pk(),f2(a,i)},useActionState:function(a,i){return he=\"useActionState\",Kt(),f2(a,i)},useOptimistic:function(a){return he=\"useOptimistic\",Kt(),CF(a)},useHostTransitionStatus:Nb,useMemoCache:Mb,useCacheRefresh:function(){return he=\"useCacheRefresh\",Kt(),HF()},useEffectEvent:function(a){return he=\"useEffectEvent\",Kt(),kF(a)}},Ace={readContext:function(a){return Hn(a)},use:Th,useCallback:function(a,i){return he=\"useCallback\",Ie(),PF(a,i)},useContext:function(a){return he=\"useContext\",Ie(),Hn(a)},useEffect:function(a,i){return he=\"useEffect\",Ie(),gk(a,i)},useImperativeHandle:function(a,i,l){return he=\"useImperativeHandle\",Ie(),IF(a,i,l)},useInsertionEffect:function(a,i){he=\"useInsertionEffect\",Ie(),Ob(4,Hi,a,i)},useLayoutEffect:function(a,i){return he=\"useLayoutEffect\",Ie(),BF(a,i)},useMemo:function(a,i){he=\"useMemo\",Ie();var l=ye.H;ye.H=qf;try{return RF(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",Ie();var p=ye.H;ye.H=qf;try{return vF(a,i,l)}finally{ye.H=p}},useRef:function(a){return he=\"useRef\",Ie(),_F(a)},useState:function(a){he=\"useState\",Ie();var i=ye.H;ye.H=qf;try{return SF(a)}finally{ye.H=i}},useDebugValue:function(){he=\"useDebugValue\",Ie()},useDeferredValue:function(a,i){return he=\"useDeferredValue\",Ie(),MF(a,i)},useTransition:function(){return he=\"useTransition\",Ie(),UF()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",Ie(),EF(a,i,l)},useId:function(){return he=\"useId\",Ie(),DF()},useActionState:function(a,i){return he=\"useActionState\",Ie(),f2(a,i)},useFormState:function(a,i){return he=\"useFormState\",Ie(),pk(),f2(a,i)},useOptimistic:function(a){return he=\"useOptimistic\",Ie(),CF(a)},useHostTransitionStatus:Nb,useMemoCache:Mb,useCacheRefresh:function(){return he=\"useCacheRefresh\",Ie(),HF()},useEffectEvent:function(a){return he=\"useEffectEvent\",Ie(),kF(a)}},Nq={readContext:function(a){return Hn(a)},use:Th,useCallback:function(a,i){return he=\"useCallback\",Ie(),wk(a,i)},useContext:function(a){return he=\"useContext\",Ie(),Hn(a)},useEffect:function(a,i){he=\"useEffect\",Ie(),vs(2048,Li,a,i)},useImperativeHandle:function(a,i,l){return he=\"useImperativeHandle\",Ie(),vk(a,i,l)},useInsertionEffect:function(a,i){return he=\"useInsertionEffect\",Ie(),vs(4,Hi,a,i)},useLayoutEffect:function(a,i){return he=\"useLayoutEffect\",Ie(),vs(4,gc,a,i)},useMemo:function(a,i){he=\"useMemo\",Ie();var l=ye.H;ye.H=dl;try{return Ek(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",Ie();var p=ye.H;ye.H=dl;try{return l2(a,i,l)}finally{ye.H=p}},useRef:function(){return he=\"useRef\",Ie(),Gr().memoizedState},useState:function(){he=\"useState\",Ie();var a=ye.H;ye.H=dl;try{return l2(il)}finally{ye.H=a}},useDebugValue:function(){he=\"useDebugValue\",Ie()},useDeferredValue:function(a,i){return he=\"useDeferredValue\",Ie(),koe(a,i)},useTransition:function(){return he=\"useTransition\",Ie(),Ooe()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",Ie(),hk(a,i,l)},useId:function(){return he=\"useId\",Ie(),Gr().memoizedState},useFormState:function(a){return he=\"useFormState\",Ie(),pk(),yk(a)},useActionState:function(a){return he=\"useActionState\",Ie(),yk(a)},useOptimistic:function(a,i){return he=\"useOptimistic\",Ie(),goe(a,i)},useHostTransitionStatus:Nb,useMemoCache:Mb,useCacheRefresh:function(){return he=\"useCacheRefresh\",Ie(),Gr().memoizedState},useEffectEvent:function(a){return he=\"useEffectEvent\",Ie(),xk(a)}},Sce={readContext:function(a){return Hn(a)},use:Th,useCallback:function(a,i){return he=\"useCallback\",Ie(),wk(a,i)},useContext:function(a){return he=\"useContext\",Ie(),Hn(a)},useEffect:function(a,i){he=\"useEffect\",Ie(),vs(2048,Li,a,i)},useImperativeHandle:function(a,i,l){return he=\"useImperativeHandle\",Ie(),vk(a,i,l)},useInsertionEffect:function(a,i){return he=\"useInsertionEffect\",Ie(),vs(4,Hi,a,i)},useLayoutEffect:function(a,i){return he=\"useLayoutEffect\",Ie(),vs(4,gc,a,i)},useMemo:function(a,i){he=\"useMemo\",Ie();var l=ye.H;ye.H=C7;try{return Ek(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",Ie();var p=ye.H;ye.H=C7;try{return _8(a,i,l)}finally{ye.H=p}},useRef:function(){return he=\"useRef\",Ie(),Gr().memoizedState},useState:function(){he=\"useState\",Ie();var a=ye.H;ye.H=C7;try{return _8(il)}finally{ye.H=a}},useDebugValue:function(){he=\"useDebugValue\",Ie()},useDeferredValue:function(a,i){return he=\"useDeferredValue\",Ie(),Boe(a,i)},useTransition:function(){return he=\"useTransition\",Ie(),Noe()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",Ie(),hk(a,i,l)},useId:function(){return he=\"useId\",Ie(),Gr().memoizedState},useFormState:function(a){return he=\"useFormState\",Ie(),pk(),bk(a)},useActionState:function(a){return he=\"useActionState\",Ie(),bk(a)},useOptimistic:function(a,i){return he=\"useOptimistic\",Ie(),voe(a,i)},useHostTransitionStatus:Nb,useMemoCache:Mb,useCacheRefresh:function(){return he=\"useCacheRefresh\",Ie(),Gr().memoizedState},useEffectEvent:function(a){return he=\"useEffectEvent\",Ie(),xk(a)}},qf={readContext:function(a){return d(),Hn(a)},use:function(a){return f(),Th(a)},useCallback:function(a,i){return he=\"useCallback\",f(),Kt(),PF(a,i)},useContext:function(a){return he=\"useContext\",f(),Kt(),Hn(a)},useEffect:function(a,i){return he=\"useEffect\",f(),Kt(),gk(a,i)},useImperativeHandle:function(a,i,l){return he=\"useImperativeHandle\",f(),Kt(),IF(a,i,l)},useInsertionEffect:function(a,i){he=\"useInsertionEffect\",f(),Kt(),Ob(4,Hi,a,i)},useLayoutEffect:function(a,i){return he=\"useLayoutEffect\",f(),Kt(),BF(a,i)},useMemo:function(a,i){he=\"useMemo\",f(),Kt();var l=ye.H;ye.H=qf;try{return RF(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",f(),Kt();var p=ye.H;ye.H=qf;try{return vF(a,i,l)}finally{ye.H=p}},useRef:function(a){return he=\"useRef\",f(),Kt(),_F(a)},useState:function(a){he=\"useState\",f(),Kt();var i=ye.H;ye.H=qf;try{return SF(a)}finally{ye.H=i}},useDebugValue:function(){he=\"useDebugValue\",f(),Kt()},useDeferredValue:function(a,i){return he=\"useDeferredValue\",f(),Kt(),MF(a,i)},useTransition:function(){return he=\"useTransition\",f(),Kt(),UF()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",f(),Kt(),EF(a,i,l)},useId:function(){return he=\"useId\",f(),Kt(),DF()},useFormState:function(a,i){return he=\"useFormState\",f(),Kt(),f2(a,i)},useActionState:function(a,i){return he=\"useActionState\",f(),Kt(),f2(a,i)},useOptimistic:function(a){return he=\"useOptimistic\",f(),Kt(),CF(a)},useMemoCache:function(a){return f(),Mb(a)},useHostTransitionStatus:Nb,useCacheRefresh:function(){return he=\"useCacheRefresh\",Kt(),HF()},useEffectEvent:function(a){return he=\"useEffectEvent\",f(),Kt(),kF(a)}},dl={readContext:function(a){return d(),Hn(a)},use:function(a){return f(),Th(a)},useCallback:function(a,i){return he=\"useCallback\",f(),Ie(),wk(a,i)},useContext:function(a){return he=\"useContext\",f(),Ie(),Hn(a)},useEffect:function(a,i){he=\"useEffect\",f(),Ie(),vs(2048,Li,a,i)},useImperativeHandle:function(a,i,l){return he=\"useImperativeHandle\",f(),Ie(),vk(a,i,l)},useInsertionEffect:function(a,i){return he=\"useInsertionEffect\",f(),Ie(),vs(4,Hi,a,i)},useLayoutEffect:function(a,i){return he=\"useLayoutEffect\",f(),Ie(),vs(4,gc,a,i)},useMemo:function(a,i){he=\"useMemo\",f(),Ie();var l=ye.H;ye.H=dl;try{return Ek(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",f(),Ie();var p=ye.H;ye.H=dl;try{return l2(a,i,l)}finally{ye.H=p}},useRef:function(){return he=\"useRef\",f(),Ie(),Gr().memoizedState},useState:function(){he=\"useState\",f(),Ie();var a=ye.H;ye.H=dl;try{return l2(il)}finally{ye.H=a}},useDebugValue:function(){he=\"useDebugValue\",f(),Ie()},useDeferredValue:function(a,i){return he=\"useDeferredValue\",f(),Ie(),koe(a,i)},useTransition:function(){return he=\"useTransition\",f(),Ie(),Ooe()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",f(),Ie(),hk(a,i,l)},useId:function(){return he=\"useId\",f(),Ie(),Gr().memoizedState},useFormState:function(a){return he=\"useFormState\",f(),Ie(),yk(a)},useActionState:function(a){return he=\"useActionState\",f(),Ie(),yk(a)},useOptimistic:function(a,i){return he=\"useOptimistic\",f(),Ie(),goe(a,i)},useMemoCache:function(a){return f(),Mb(a)},useHostTransitionStatus:Nb,useCacheRefresh:function(){return he=\"useCacheRefresh\",Ie(),Gr().memoizedState},useEffectEvent:function(a){return he=\"useEffectEvent\",f(),Ie(),xk(a)}},C7={readContext:function(a){return d(),Hn(a)},use:function(a){return f(),Th(a)},useCallback:function(a,i){return he=\"useCallback\",f(),Ie(),wk(a,i)},useContext:function(a){return he=\"useContext\",f(),Ie(),Hn(a)},useEffect:function(a,i){he=\"useEffect\",f(),Ie(),vs(2048,Li,a,i)},useImperativeHandle:function(a,i,l){return he=\"useImperativeHandle\",f(),Ie(),vk(a,i,l)},useInsertionEffect:function(a,i){return he=\"useInsertionEffect\",f(),Ie(),vs(4,Hi,a,i)},useLayoutEffect:function(a,i){return he=\"useLayoutEffect\",f(),Ie(),vs(4,gc,a,i)},useMemo:function(a,i){he=\"useMemo\",f(),Ie();var l=ye.H;ye.H=dl;try{return Ek(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",f(),Ie();var p=ye.H;ye.H=dl;try{return _8(a,i,l)}finally{ye.H=p}},useRef:function(){return he=\"useRef\",f(),Ie(),Gr().memoizedState},useState:function(){he=\"useState\",f(),Ie();var a=ye.H;ye.H=dl;try{return _8(il)}finally{ye.H=a}},useDebugValue:function(){he=\"useDebugValue\",f(),Ie()},useDeferredValue:function(a,i){return he=\"useDeferredValue\",f(),Ie(),Boe(a,i)},useTransition:function(){return he=\"useTransition\",f(),Ie(),Noe()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",f(),Ie(),hk(a,i,l)},useId:function(){return he=\"useId\",f(),Ie(),Gr().memoizedState},useFormState:function(a){return he=\"useFormState\",f(),Ie(),bk(a)},useActionState:function(a){return he=\"useActionState\",f(),Ie(),bk(a)},useOptimistic:function(a,i){return he=\"useOptimistic\",f(),Ie(),voe(a,i)},useMemoCache:function(a){return f(),Mb(a)},useHostTransitionStatus:Nb,useCacheRefresh:function(){return he=\"useCacheRefresh\",Ie(),Gr().memoizedState},useEffectEvent:function(a){return he=\"useEffectEvent\",f(),Ie(),xk(a)}};var Cce={},Tce=new Set,_ce=new Set,kce=new Set,Bce=new Set,Ice=new Set,Pce=new Set,Rce=new Set,Mce=new Set,Oce=new Set,Nce=new Set;Object.freeze(Cce);var Uq={enqueueSetState:function(a,i,l){a=a._reactInternals;var p=fc(a),b=Eh(p);b.payload=i,l!=null&&(zF(l),b.callback=l),i=Ah(a,b,p),i!==null&&(vf(p,\"this.setState()\",a),ro(i,a,p),A8(i,a,p))},enqueueReplaceState:function(a,i,l){a=a._reactInternals;var p=fc(a),b=Eh(p);b.tag=bce,b.payload=i,l!=null&&(zF(l),b.callback=l),i=Ah(a,b,p),i!==null&&(vf(p,\"this.replaceState()\",a),ro(i,a,p),A8(i,a,p))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var l=fc(a),p=Eh(l);p.tag=gce,i!=null&&(zF(i),p.callback=i),i=Ah(a,p,l),i!==null&&(vf(l,\"this.forceUpdate()\",a),ro(i,a,l),A8(i,a,l))}},W2=null,Dq=null,Hq=Error(\"This is not a real error. It\\'s an implementation detail of React\\'s selective hydration feature. If this leaks into userspace, it\\'s a bug in React. Please file an issue.\"),Fo=!1,Uce={},Dce={},Hce={},Lce={},Q2=!1,zce={},T7={},Lq={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Fce=!1,jce=null;jce=new Set;var Up=!1,jo=!1,zq=!1,qce=typeof WeakSet==\"function\"?WeakSet:Set,ya=null,Z2=null,J2=null,qo=null,As=!1,pl=null,aa=!1,AA=8192,eut={getCacheForType:function(a){var i=Hn(Ho),l=i.data.get(a);return l===void 0&&(l=a(),i.data.set(a,l)),l},cacheSignal:function(){return Hn(Ho).controller.signal},getOwner:function(){return mc}};if(typeof Symbol==\"function\"&&Symbol.for){var SA=Symbol.for;SA(\"selector.component\"),SA(\"selector.has_pseudo_class\"),SA(\"selector.role\"),SA(\"selector.test_id\"),SA(\"selector.text\")}var tut=[],rut=typeof WeakMap==\"function\"?WeakMap:Map,ba=0,ia=2,xc=4,Dp=0,CA=1,Jb=2,_7=3,Gh=4,k7=6,$ce=5,hr=ba,mn=null,qt=null,Dt=0,Ss=0,B7=1,Yb=2,TA=3,Gce=4,Fq=5,_A=6,I7=7,jq=8,Xb=9,Vr=Ss,vc=null,Vh=!1,Y2=!1,qq=!1,$f=0,Kn=Dp,Kh=0,Wh=0,$q=0,Cs=0,e1=0,kA=null,zi=null,P7=!1,R7=0,Vce=0,Kce=300,M7=1/0,Wce=500,BA=null,ho=null,Qh=null,O7=0,Gq=1,Vq=2,Qce=3,Zh=0,Zce=1,Jce=2,Yce=3,Xce=4,N7=5,$o=0,Jh=null,X2=null,ml=0,Kq=0,Wq=-0,Qq=null,eue=null,tue=null,hl=O7,rue=null,nut=50,IA=0,Zq=null,Jq=!1,U7=!1,out=50,t1=0,PA=null,ev=!1,D7=null,nue=!1,oue=new Set,aut={},H7=null,tv=null,Yq=!1,Xq=!1,L7=!1,e$=!1,Yh=0,t$={};(function(){for(var a=0;a<dq.length;a++){var i=dq[a],l=i.toLowerCase();i=i[0].toUpperCase()+i.slice(1),al(l,\"on\"+i)}al(Ose,\"onAnimationEnd\"),al(Nse,\"onAnimationIteration\"),al(Use,\"onAnimationStart\"),al(\"dblclick\",\"onDoubleClick\"),al(\"focusin\",\"onFocus\"),al(\"focusout\",\"onBlur\"),al(Nct,\"onTransitionRun\"),al(Uct,\"onTransitionStart\"),al(Dct,\"onTransitionCancel\"),al(Dse,\"onTransitionEnd\")})(),Uo(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),Uo(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),Uo(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),Uo(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),jt(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),jt(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),jt(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),jt(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),jt(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),jt(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var RA=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),r$=new Set(\"beforetoggle cancel close invalid load scroll scrollend toggle\".split(\" \").concat(RA)),z7=\"_reactListening\"+Math.random().toString(36).slice(2),aue=!1,iue=!1,F7=!1,sue=!1,j7=!1,q7=!1,cue=!1,$7={},iut=/\\\\r\\\\n?/g,sut=/\\\\u0000|\\\\uFFFD/g,r1=\"http://www.w3.org/1999/xlink\",n$=\"http://www.w3.org/XML/1998/namespace\",cut=\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\",uut=\"suppressHydrationWarning\",n1=\"&\",G7=\"/&\",MA=\"$\",OA=\"/$\",Xh=\"$?\",o1=\"$~\",rv=\"$!\",lut=\"html\",fut=\"body\",dut=\"head\",o$=\"F!\",uue=\"F\",lue=\"loading\",put=\"style\",Hp=0,nv=1,V7=2,a$=null,i$=null,fue={dialog:!0,webview:!0},s$=null,NA=void 0,due=typeof setTimeout==\"function\"?setTimeout:void 0,mut=typeof clearTimeout==\"function\"?clearTimeout:void 0,a1=-1,pue=typeof Promise==\"function\"?Promise:void 0,hut=typeof queueMicrotask==\"function\"?queueMicrotask:typeof pue<\"u\"?function(a){return pue.resolve(null).then(a).catch(Yit)}:due,c$=null,i1=0,UA=1,mue=2,hue=3,ru=4,nu=new Map,yue=new Set,Lp=Fr.d;Fr.d={f:function(){var a=Lp.f(),i=y2();return a||i},r:function(a){var i=Ge(a);i!==null&&i.tag===5&&i.type===\"form\"?Moe(i):Lp.r(a)},D:function(a){Lp.D(a),Tie(\"dns-prefetch\",a,null)},C:function(a,i){Lp.C(a,i),Tie(\"preconnect\",a,i)},L:function(a,i,l){Lp.L(a,i,l);var p=ov;if(p&&a&&i){var b=\\'link[rel=\"preload\"][as=\"\\'+ur(i)+\\'\"]\\';i===\"image\"&&l&&l.imageSrcSet?(b+=\\'[imagesrcset=\"\\'+ur(l.imageSrcSet)+\\'\"]\\',typeof l.imageSizes==\"string\"&&(b+=\\'[imagesizes=\"\\'+ur(l.imageSizes)+\\'\"]\\')):b+=\\'[href=\"\\'+ur(a)+\\'\"]\\';var w=b;switch(i){case\"style\":w=x2(a);break;case\"script\":w=v2(a)}nu.has(w)||(a=Wt({rel:\"preload\",href:i===\"image\"&&l&&l.imageSrcSet?void 0:a,as:i},l),nu.set(w,a),p.querySelector(b)!==null||i===\"style\"&&p.querySelector(j8(w))||i===\"script\"&&p.querySelector(q8(w))||(i=p.createElement(\"link\"),Na(i,\"link\",a),Ne(i),p.head.appendChild(i)))}},m:function(a,i){Lp.m(a,i);var l=ov;if(l&&a){var p=i&&typeof i.as==\"string\"?i.as:\"script\",b=\\'link[rel=\"modulepreload\"][as=\"\\'+ur(p)+\\'\"][href=\"\\'+ur(a)+\\'\"]\\',w=b;switch(p){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":w=v2(a)}if(!nu.has(w)&&(a=Wt({rel:\"modulepreload\",href:a},i),nu.set(w,a),l.querySelector(b)===null)){switch(p){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":if(l.querySelector(q8(w)))return}p=l.createElement(\"link\"),Na(p,\"link\",a),Ne(p),l.head.appendChild(p)}}},X:function(a,i){Lp.X(a,i);var l=ov;if(l&&a){var p=Ft(l).hoistableScripts,b=v2(a),w=p.get(b);w||(w=l.querySelector(q8(b)),w||(a=Wt({src:a,async:!0},i),(i=nu.get(b))&&Ij(a,i),w=l.createElement(\"script\"),Ne(w),Na(w,\"link\",a),l.head.appendChild(w)),w={type:\"script\",instance:w,count:1,state:null},p.set(b,w))}},S:function(a,i,l){Lp.S(a,i,l);var p=ov;if(p&&a){var b=Ft(p).hoistableStyles,w=x2(a);i=i||\"default\";var S=b.get(w);if(!S){var k={loading:i1,preload:null};if(S=p.querySelector(j8(w)))k.loading=UA|ru;else{a=Wt({rel:\"stylesheet\",href:a,\"data-precedence\":i},l),(l=nu.get(w))&&Bj(a,l);var F=S=p.createElement(\"link\");Ne(F),Na(F,\"link\",a),F._p=new Promise(function($,ce){F.onload=$,F.onerror=ce}),F.addEventListener(\"load\",function(){k.loading|=UA}),F.addEventListener(\"error\",function(){k.loading|=mue}),k.loading|=ru,Fk(S,i,p)}S={type:\"stylesheet\",instance:S,count:1,state:k},b.set(w,S)}}},M:function(a,i){Lp.M(a,i);var l=ov;if(l&&a){var p=Ft(l).hoistableScripts,b=v2(a),w=p.get(b);w||(w=l.querySelector(q8(b)),w||(a=Wt({src:a,async:!0,type:\"module\"},i),(i=nu.get(b))&&Ij(a,i),w=l.createElement(\"script\"),Ne(w),Na(w,\"link\",a),l.head.appendChild(w)),w={type:\"script\",instance:w,count:1,state:null},p.set(b,w))}}};var ov=typeof document>\"u\"?null:document,K7=null,yut=6e4,but=800,gut=500,u$=0,l$=null,W7=null,s1=Mst,DA={$$typeof:Of,Provider:null,Consumer:null,_currentValue:s1,_currentValue2:s1,_threadCount:0},bue=\"%c%s%c\",gue=\"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px\",xue=\"\",Q7=\" \",xut=Function.prototype.bind,vue=!1,wue=null,Eue=null,Aue=null,Sue=null,Cue=null,Tue=null,_ue=null,kue=null,Bue=null,Iue=null;wue=function(a,i,l,p){i=e(a,i),i!==null&&(l=t(i.memoizedState,l,0,p),i.memoizedState=l,i.baseState=l,a.memoizedProps=Wt({},a.memoizedProps),l=ai(a,2),l!==null&&ro(l,a,2))},Eue=function(a,i,l){i=e(a,i),i!==null&&(l=o(i.memoizedState,l,0),i.memoizedState=l,i.baseState=l,a.memoizedProps=Wt({},a.memoizedProps),l=ai(a,2),l!==null&&ro(l,a,2))},Aue=function(a,i,l,p){i=e(a,i),i!==null&&(l=r(i.memoizedState,l,p),i.memoizedState=l,i.baseState=l,a.memoizedProps=Wt({},a.memoizedProps),l=ai(a,2),l!==null&&ro(l,a,2))},Sue=function(a,i,l){a.pendingProps=t(a.memoizedProps,i,0,l),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=ai(a,2),i!==null&&ro(i,a,2)},Cue=function(a,i){a.pendingProps=o(a.memoizedProps,i,0),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=ai(a,2),i!==null&&ro(i,a,2)},Tue=function(a,i,l){a.pendingProps=r(a.memoizedProps,i,l),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=ai(a,2),i!==null&&ro(i,a,2)},_ue=function(a){var i=ai(a,2);i!==null&&ro(i,a,2)},kue=function(a){var i=jr(),l=ai(a,i);l!==null&&ro(l,a,i)},Bue=function(a){u=a},Iue=function(a){s=a};var Z7=!0,J7=null,f$=!1,e0=null,t0=null,r0=null,HA=new Map,LA=new Map,n0=[],vut=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\".split(\" \"),Y7=null;if(Vk.prototype.render=Uj.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error(\"Cannot update an unmounted root.\");var l=arguments;typeof l[1]==\"function\"?console.error(\"does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().\"):R(l[1])?console.error(\"You passed a container to the second argument of root.render(...). You don\\'t need to pass it again since you already passed it to create the root.\"):typeof l[1]<\"u\"&&console.error(\"You passed a second argument to root.render(...) but it only accepts one argument.\"),l=a;var p=i.current,b=fc(p);Pj(p,b,l,i,null,null)},Vk.prototype.unmount=Uj.prototype.unmount=function(){var a=arguments;if(typeof a[0]==\"function\"&&console.error(\"does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().\"),a=this._internalRoot,a!==null){this._internalRoot=null;var i=a.containerInfo;(hr&(ia|xc))!==ba&&console.error(\"Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.\"),Pj(a.current,2,null,a,null,null),y2(),i[Mh]=null}},Vk.prototype.unstable_scheduleHydration=function(a){if(a){var i=fe();a={blockedOn:null,target:a,priority:i};for(var l=0;l<n0.length&&i!==0&&i<n0[l].priority;l++);n0.splice(l,0,a),l===0&&zie(a)}},(function(){var a=Dj.version;if(a!==\"19.2.1\")throw Error(`Incompatible React versions: The \"react\" and \"react-dom\" packages must have the exact same version. Instead got:\\n  - react:      `+(a+`\\n  - react-dom:  19.2.1\\nLearn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map==\"function\"&&Map.prototype!=null&&typeof Map.prototype.forEach==\"function\"&&typeof Set==\"function\"&&Set.prototype!=null&&typeof Set.prototype.clear==\"function\"&&typeof Set.prototype.forEach==\"function\"||console.error(\"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills\"),Fr.findDOMNode=function(a){var i=a._reactInternals;if(i===void 0)throw typeof a.render==\"function\"?Error(\"Unable to find node on an unmounted component.\"):(a=Object.keys(a).join(\",\"),Error(\"Argument appears to not be a ReactComponent. Keys: \"+a));return a=j(i),a=a!==null?K(a):null,a=a===null?null:a.stateNode,a},!(function(){var a={bundleType:1,version:\"19.2.1\",rendererPackageName:\"react-dom\",currentDispatcherRef:ye,reconcilerVersion:\"19.2.1\"};return a.overrideHookState=wue,a.overrideHookStateDeletePath=Eue,a.overrideHookStateRenamePath=Aue,a.overrideProps=Sue,a.overridePropsDeletePath=Cue,a.overridePropsRenamePath=Tue,a.scheduleUpdate=_ue,a.scheduleRetry=kue,a.setErrorHandler=Bue,a.setSuspenseHandler=Iue,a.scheduleRefresh=C,a.scheduleRoot=E,a.setRefreshHandler=B,a.getCurrentFiber=Sst,jc(a)})()&&Lf&&window.top===window.self&&(-1<navigator.userAgent.indexOf(\"Chrome\")&&navigator.userAgent.indexOf(\"Edge\")===-1||-1<navigator.userAgent.indexOf(\"Firefox\"))){var Pue=window.location.protocol;/^(https?|file):$/.test(Pue)&&console.info(\"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools\"+(Pue===\"file:\"?`\\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:\"\"),\"font-weight:bold\")}o9.createRoot=function(a,i){if(!R(a))throw Error(\"Target container is not a DOM element.\");$ie(a);var l=!1,p=\"\",b=Foe,w=joe,S=qoe;return i!=null&&(i.hydrate?console.warn(\"hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.\"):typeof i==\"object\"&&i!==null&&i.$$typeof===Mf&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\\n\\n  let root = createRoot(domContainer);\\n  root.render(<App />);`),i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(p=i.identifierPrefix),i.onUncaughtError!==void 0&&(b=i.onUncaughtError),i.onCaughtError!==void 0&&(w=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError)),i=Mie(a,1,!1,null,null,l,p,null,b,w,S,qie),a[Mh]=i.current,bj(a),new Uj(i)},o9.hydrateRoot=function(a,i,l){if(!R(a))throw Error(\"Target container is not a DOM element.\");$ie(a),i===void 0&&console.error(\"Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)\");var p=!1,b=\"\",w=Foe,S=joe,k=qoe,F=null;return l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(b=l.identifierPrefix),l.onUncaughtError!==void 0&&(w=l.onUncaughtError),l.onCaughtError!==void 0&&(S=l.onCaughtError),l.onRecoverableError!==void 0&&(k=l.onRecoverableError),l.formState!==void 0&&(F=l.formState)),i=Mie(a,1,!0,i,l??null,p,b,F,w,S,k,qie),i.context=Oie(null),l=i.current,p=fc(l),p=Rr(p),b=Eh(p),b.callback=null,Ah(l,b,p),vf(p,\"hydrateRoot()\",null),l=p,i.current.lanes=l,Ii(i,l),Pf(i),a[Mh]=i.current,bj(a),new Vk(i)},o9.version=\"19.2.1\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var fle=X((nPt,lle)=>{\"use strict\";c();lle.exports=ule()});var dle,ple=x(()=>{c();dle=\"1.2.3\"});var To,lv=x(()=>{c();ple();To=class e extends Error{constructor(t,r={}){let n=r.cause instanceof e?r.cause.details:r.cause?.message?r.cause.message:r.details,o=r.cause instanceof e&&r.cause.docsPath||r.docsPath,s=[t||\"An error occurred.\",\"\",...r.metaMessages?[...r.metaMessages,\"\"]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...n?[`Details: ${n}`]:[],`Version: abitype@${dle}`].join(`\\n`);super(s),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiTypeError\"}),r.cause&&(this.cause=r.cause),this.details=n,this.docsPath=o,this.metaMessages=r.metaMessages,this.shortMessage=t}}});function wc(e,t){return e.exec(t)?.groups}var A$,S$,a9,jA=x(()=>{c();A$=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,S$=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,a9=/^\\\\(.+?\\\\).*?$/});function i9(e){let t=e.type;if(mle.test(e.type)&&\"components\"in e){t=\"(\";let r=e.components.length;for(let o=0;o<r;o++){let s=e.components[o];t+=i9(s),o<r-1&&(t+=\", \")}let n=wc(mle,e.type);return t+=`)${n?.array||\"\"}`,i9({...e,type:t})}return\"indexed\"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}var mle,hle=x(()=>{c();jA();mle=/^tuple(?<array>(\\\\[(\\\\d*)\\\\])*)$/});function jp(e){let t=\"\",r=e.length;for(let n=0;n<r;n++){let o=e[n];t+=i9(o),n!==r-1&&(t+=\", \")}return t}var C$=x(()=>{c();hle()});function l1(e){return e.type===\"function\"?`function ${e.name}(${jp(e.inputs)})${e.stateMutability&&e.stateMutability!==\"nonpayable\"?` ${e.stateMutability}`:\"\"}${e.outputs?.length?` returns (${jp(e.outputs)})`:\"\"}`:e.type===\"event\"?`event ${e.name}(${jp(e.inputs)})`:e.type===\"error\"?`error ${e.name}(${jp(e.inputs)})`:e.type===\"constructor\"?`constructor(${jp(e.inputs)})${e.stateMutability===\"payable\"?\" payable\":\"\"}`:e.type===\"fallback\"?`fallback() external${e.stateMutability===\"payable\"?\" payable\":\"\"}`:\"receive() external payable\"}var yle=x(()=>{c();C$()});function gle(e){return ble.test(e)}function xle(e){return wc(ble,e)}function wle(e){return vle.test(e)}function Ele(e){return wc(vle,e)}function Sle(e){return Ale.test(e)}function Cle(e){return wc(Ale,e)}function a0(e){return Tle.test(e)}function _le(e){return wc(Tle,e)}function Ble(e){return kle.test(e)}function Ile(e){return wc(kle,e)}function Rle(e){return Ple.test(e)}function Mle(e){return wc(Ple,e)}function Ole(e){return alt.test(e)}var ble,vle,Ale,Tle,kle,Ple,alt,T$,Nle,s9,fv=x(()=>{c();jA();ble=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;vle=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;Ale=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\\\s?\\\\((?<returns>.*?)\\\\))?$/;Tle=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\\\{(?<properties>.*?)\\\\}$/;kle=/^constructor\\\\((?<parameters>.*?)\\\\)(?:\\\\s(?<stateMutability>payable{1}))?$/;Ple=/^fallback\\\\(\\\\) external(?:\\\\s(?<stateMutability>payable{1}))?$/;alt=/^receive\\\\(\\\\) external payable$/;T$=new Set([\"memory\",\"indexed\",\"storage\",\"calldata\"]),Nle=new Set([\"indexed\"]),s9=new Set([\"calldata\",\"memory\",\"storage\"])});var c9,u9,l9,f9=x(()=>{c();lv();c9=class extends To{constructor({signature:t}){super(\"Failed to parse ABI item.\",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:\"/api/human#parseabiitem-1\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiItemError\"})}},u9=class extends To{constructor({type:t}){super(\"Unknown type.\",{metaMessages:[`Type \"${t}\" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownTypeError\"})}},l9=class extends To{constructor({type:t}){super(\"Unknown type.\",{metaMessages:[`Type \"${t}\" is not a valid ABI type.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSolidityTypeError\"})}}});var d9,p9,m9,h9,y9,b9,g9=x(()=>{c();lv();d9=class extends To{constructor({params:t}){super(\"Failed to parse ABI parameters.\",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:\"/api/human#parseabiparameters-1\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiParametersError\"})}},p9=class extends To{constructor({param:t}){super(\"Invalid ABI parameter.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}},m9=class extends To{constructor({param:t,name:r}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`\"${r}\" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SolidityProtectedKeywordError\"})}},h9=class extends To{constructor({param:t,type:r,modifier:n}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`Modifier \"${n}\" not allowed${r?` in \"${r}\" type`:\"\"}.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidModifierError\"})}},y9=class extends To{constructor({param:t,type:r,modifier:n}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`Modifier \"${n}\" not allowed${r?` in \"${r}\" type`:\"\"}.`,`Data location can only be specified for array, struct, or mapping types, but \"${n}\" was given.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidFunctionModifierError\"})}},b9=class extends To{constructor({abiParameter:t}){super(\"Invalid ABI parameter.\",{details:JSON.stringify(t,null,2),metaMessages:[\"ABI parameter type is invalid.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiTypeParameterError\"})}}});var Kf,x9,v9,_$=x(()=>{c();lv();Kf=class extends To{constructor({signature:t,type:r}){super(`Invalid ${r} signature.`,{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSignatureError\"})}},x9=class extends To{constructor({signature:t}){super(\"Unknown signature.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSignatureError\"})}},v9=class extends To{constructor({signature:t}){super(\"Invalid struct signature.\",{details:t,metaMessages:[\"No properties exist.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidStructSignatureError\"})}}});var w9,Ule=x(()=>{c();lv();w9=class extends To{constructor({type:t}){super(\"Circular reference detected.\",{metaMessages:[`Struct \"${t}\" is a circular reference.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CircularReferenceError\"})}}});var E9,Dle=x(()=>{c();lv();E9=class extends To{constructor({current:t,depth:r}){super(\"Unbalanced parentheses.\",{metaMessages:[`\"${t.trim()}\" has too many ${r>0?\"opening\":\"closing\"} parentheses.`],details:`Depth \"${r}\"`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParenthesisError\"})}}});function Hle(e,t,r){let n=\"\";if(r)for(let o of Object.entries(r)){if(!o)continue;let s=\"\";for(let u of o[1])s+=`[${u.type}${u.name?`:${u.name}`:\"\"}]`;n+=`(${o[0]}{${s}})`}return t?`${t}:${e}${n}`:`${e}${n}`}var A9,Lle=x(()=>{c();A9=new Map([[\"address\",{type:\"address\"}],[\"bool\",{type:\"bool\"}],[\"bytes\",{type:\"bytes\"}],[\"bytes32\",{type:\"bytes32\"}],[\"int\",{type:\"int256\"}],[\"int256\",{type:\"int256\"}],[\"string\",{type:\"string\"}],[\"uint\",{type:\"uint256\"}],[\"uint8\",{type:\"uint8\"}],[\"uint16\",{type:\"uint16\"}],[\"uint24\",{type:\"uint24\"}],[\"uint32\",{type:\"uint32\"}],[\"uint64\",{type:\"uint64\"}],[\"uint96\",{type:\"uint96\"}],[\"uint112\",{type:\"uint112\"}],[\"uint160\",{type:\"uint160\"}],[\"uint192\",{type:\"uint192\"}],[\"uint256\",{type:\"uint256\"}],[\"address owner\",{type:\"address\",name:\"owner\"}],[\"address to\",{type:\"address\",name:\"to\"}],[\"bool approved\",{type:\"bool\",name:\"approved\"}],[\"bytes _data\",{type:\"bytes\",name:\"_data\"}],[\"bytes data\",{type:\"bytes\",name:\"data\"}],[\"bytes signature\",{type:\"bytes\",name:\"signature\"}],[\"bytes32 hash\",{type:\"bytes32\",name:\"hash\"}],[\"bytes32 r\",{type:\"bytes32\",name:\"r\"}],[\"bytes32 root\",{type:\"bytes32\",name:\"root\"}],[\"bytes32 s\",{type:\"bytes32\",name:\"s\"}],[\"string name\",{type:\"string\",name:\"name\"}],[\"string symbol\",{type:\"string\",name:\"symbol\"}],[\"string tokenURI\",{type:\"string\",name:\"tokenURI\"}],[\"uint tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint8 v\",{type:\"uint8\",name:\"v\"}],[\"uint256 balance\",{type:\"uint256\",name:\"balance\"}],[\"uint256 tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint256 value\",{type:\"uint256\",name:\"value\"}],[\"event:address indexed from\",{type:\"address\",name:\"from\",indexed:!0}],[\"event:address indexed to\",{type:\"address\",name:\"to\",indexed:!0}],[\"event:uint indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}],[\"event:uint256 indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}]])});function qA(e,t={}){if(Sle(e))return ilt(e,t);if(wle(e))return slt(e,t);if(gle(e))return clt(e,t);if(Ble(e))return ult(e,t);if(Rle(e))return llt(e);if(Ole(e))return{type:\"receive\",stateMutability:\"payable\"};throw new x9({signature:e})}function ilt(e,t={}){let r=Cle(e);if(!r)throw new Kf({signature:e,type:\"function\"});let n=_s(r.parameters),o=[],s=n.length;for(let f=0;f<s;f++)o.push(yl(n[f],{modifiers:s9,structs:t,type:\"function\"}));let u=[];if(r.returns){let f=_s(r.returns),d=f.length;for(let m=0;m<d;m++)u.push(yl(f[m],{modifiers:s9,structs:t,type:\"function\"}))}return{name:r.name,type:\"function\",stateMutability:r.stateMutability??\"nonpayable\",inputs:o,outputs:u}}function slt(e,t={}){let r=Ele(e);if(!r)throw new Kf({signature:e,type:\"event\"});let n=_s(r.parameters),o=[],s=n.length;for(let u=0;u<s;u++)o.push(yl(n[u],{modifiers:Nle,structs:t,type:\"event\"}));return{name:r.name,type:\"event\",inputs:o}}function clt(e,t={}){let r=xle(e);if(!r)throw new Kf({signature:e,type:\"error\"});let n=_s(r.parameters),o=[],s=n.length;for(let u=0;u<s;u++)o.push(yl(n[u],{structs:t,type:\"error\"}));return{name:r.name,type:\"error\",inputs:o}}function ult(e,t={}){let r=Ile(e);if(!r)throw new Kf({signature:e,type:\"constructor\"});let n=_s(r.parameters),o=[],s=n.length;for(let u=0;u<s;u++)o.push(yl(n[u],{structs:t,type:\"constructor\"}));return{type:\"constructor\",stateMutability:r.stateMutability??\"nonpayable\",inputs:o}}function llt(e){let t=Mle(e);if(!t)throw new Kf({signature:e,type:\"fallback\"});return{type:\"fallback\",stateMutability:t.stateMutability??\"nonpayable\"}}function yl(e,t){let r=Hle(e,t?.type,t?.structs);if(A9.has(r))return A9.get(r);let n=a9.test(e),o=wc(n?dlt:flt,e);if(!o)throw new p9({param:e});if(o.name&&hlt(o.name))throw new m9({param:e,name:o.name});let s=o.name?{name:o.name}:{},u=o.modifier===\"indexed\"?{indexed:!0}:{},f=t?.structs??{},d,m={};if(n){d=\"tuple\";let y=_s(o.type),v=[],E=y.length;for(let C=0;C<E;C++)v.push(yl(y[C],{structs:f}));m={components:v}}else if(o.type in f)d=\"tuple\",m={components:f[o.type]};else if(plt.test(o.type))d=`${o.type}256`;else if(o.type===\"address payable\")d=\"address\";else if(d=o.type,t?.type!==\"struct\"&&!k$(d))throw new l9({type:d});if(o.modifier){if(!t?.modifiers?.has?.(o.modifier))throw new h9({param:e,type:t?.type,modifier:o.modifier});if(s9.has(o.modifier)&&!ylt(d,!!o.array))throw new y9({param:e,type:t?.type,modifier:o.modifier})}let h={type:`${d}${o.array??\"\"}`,...s,...u,...m};return A9.set(r,h),h}function _s(e,t=[],r=\"\",n=0){let o=e.trim().length;for(let s=0;s<o;s++){let u=e[s],f=e.slice(s+1);switch(u){case\",\":return n===0?_s(f,[...t,r.trim()]):_s(f,t,`${r}${u}`,n);case\"(\":return _s(f,t,`${r}${u}`,n+1);case\")\":return _s(f,t,`${r}${u}`,n-1);default:return _s(f,t,`${r}${u}`,n)}}if(r===\"\")return t;if(n!==0)throw new E9({current:r,depth:n});return t.push(r.trim()),t}function k$(e){return e===\"address\"||e===\"bool\"||e===\"function\"||e===\"string\"||A$.test(e)||S$.test(e)}function hlt(e){return e===\"address\"||e===\"bool\"||e===\"function\"||e===\"string\"||e===\"tuple\"||A$.test(e)||S$.test(e)||mlt.test(e)}function ylt(e,t){return t||e===\"bytes\"||e===\"string\"||e===\"tuple\"}var flt,dlt,plt,mlt,dv=x(()=>{c();jA();f9();g9();_$();Dle();Lle();fv();flt=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\\\spayable)?)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,dlt=/^\\\\((?<type>.+?)\\\\)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,plt=/^u?int$/;mlt=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/});function pv(e){let t={},r=e.length;for(let u=0;u<r;u++){let f=e[u];if(!a0(f))continue;let d=_le(f);if(!d)throw new Kf({signature:f,type:\"struct\"});let m=d.properties.split(\";\"),h=[],y=m.length;for(let v=0;v<y;v++){let C=m[v].trim();if(!C)continue;let B=yl(C,{type:\"struct\"});h.push(B)}if(!h.length)throw new v9({signature:f});t[d.name]=h}let n={},o=Object.entries(t),s=o.length;for(let u=0;u<s;u++){let[f,d]=o[u];n[f]=zle(d,t)}return n}function zle(e=[],t={},r=new Set){let n=[],o=e.length;for(let s=0;s<o;s++){let u=e[s];if(a9.test(u.type))n.push(u);else{let d=wc(blt,u.type);if(!d?.type)throw new b9({abiParameter:u});let{array:m,type:h}=d;if(h in t){if(r.has(h))throw new w9({type:h});n.push({...u,type:`tuple${m??\"\"}`,components:zle(t[h],t,new Set([...r,h]))})}else if(k$(h))n.push(u);else throw new u9({type:h})}}return n}var blt,S9=x(()=>{c();jA();f9();g9();_$();Ule();fv();dv();blt=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?$/});function mv(e){let t=pv(e),r=[],n=e.length;for(let o=0;o<n;o++){let s=e[o];a0(s)||r.push(qA(s,t))}return r}var Fle=x(()=>{c();fv();S9();dv()});function C9(e){let t;if(typeof e==\"string\")t=qA(e);else{let r=pv(e),n=e.length;for(let o=0;o<n;o++){let s=e[o];if(!a0(s)){t=qA(s,r);break}}}if(!t)throw new c9({signature:e});return t}var jle=x(()=>{c();f9();fv();S9();dv()});function T9(e){let t=[];if(typeof e==\"string\"){let r=_s(e),n=r.length;for(let o=0;o<n;o++)t.push(yl(r[o],{modifiers:T$}))}else{let r=pv(e),n=e.length;for(let o=0;o<n;o++){let s=e[o];if(a0(s))continue;let u=_s(s),f=u.length;for(let d=0;d<f;d++)t.push(yl(u[d],{modifiers:T$,structs:r}))}}if(t.length===0)throw new d9({params:e});return t}var qle=x(()=>{c();g9();fv();S9();dv();dv()});var hv=x(()=>{c();yle();C$();Fle();jle();qle()});function Ae(e,t,r){let n=e[t.name];if(typeof n==\"function\")return n;let o=e[r];return typeof o==\"function\"?o:s=>t(e,s)}var Zt=x(()=>{c()});function sa(e,{includeName:t=!1}={}){if(e.type!==\"function\"&&e.type!==\"event\"&&e.type!==\"error\")throw new _9(e.type);return`${e.name}(${$A(e.inputs,{includeName:t})})`}function $A(e,{includeName:t=!1}={}){return e?e.map(r=>glt(r,{includeName:t})).join(t?\", \":\",\"):\"\"}function glt(e,{includeName:t}){return e.type.startsWith(\"tuple\")?`(${$A(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:\"\")}var qp=x(()=>{c();yo()});function Wr(e,{strict:t=!0}={}){return!e||typeof e!=\"string\"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith(\"0x\")}var au=x(()=>{c()});function $t(e){return Wr(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var ji=x(()=>{c();au()});var B$,Gle=x(()=>{c();B$=\"2.48.11\"});function Vle(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause!==void 0?Vle(e.cause,t):t?null:e}var I$,ae,ht=x(()=>{c();Gle();I$={getDocsUrl:({docsBaseUrl:e,docsPath:t=\"\",docsSlug:r})=>t?`${e??\"https://viem.sh\"}${t}${r?`#${r}`:\"\"}`:void 0,version:`viem@${B$}`},ae=class e extends Error{constructor(t,r={}){let n=r.cause instanceof e?r.cause.details:r.cause?.message?r.cause.message:r.details,o=r.cause instanceof e&&r.cause.docsPath||r.docsPath,s=I$.getDocsUrl?.({...r,docsPath:o}),u=[t||\"An error occurred.\",\"\",...r.metaMessages?[...r.metaMessages,\"\"]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...I$.version?[`Version: ${I$.version}`]:[]].join(`\\n`);super(u,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),this.details=n,this.docsPath=o,this.metaMessages=r.metaMessages,this.name=r.name??this.name,this.shortMessage=t,this.version=B$}walk(t){return Vle(this,t)}}});var k9,GA,yv,iu,B9,I9,bv,P9,VA,gv,R9,M9,KA,bl,xv,O9,N9,vv,$p,i0,U9,D9,wv,_9,H9,yo=x(()=>{c();qp();ji();ht();k9=class extends ae{constructor({docsPath:t}){super([\"A constructor was not found on the ABI.\",\"Make sure you are using the correct ABI and that the constructor exists on it.\"].join(`\\n`),{docsPath:t,name:\"AbiConstructorNotFoundError\"})}},GA=class extends ae{constructor({docsPath:t}){super([\"Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\",\"Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.\"].join(`\\n`),{docsPath:t,name:\"AbiConstructorParamsNotFoundError\"})}},yv=class extends ae{constructor({data:t,params:r,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(`\\n`),{metaMessages:[`Params: (${$A(r,{includeName:!0})})`,`Data:   ${t} (${n} bytes)`],name:\"AbiDecodingDataSizeTooSmallError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=r,this.size=n}},iu=class extends ae{constructor({cause:t}={}){super(\\'Cannot decode zero data (\"0x\") with ABI parameters.\\',{name:\"AbiDecodingZeroDataError\",cause:t})}},B9=class extends ae{constructor({expectedLength:t,givenLength:r,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${t}`,`Given length: ${r}`].join(`\\n`),{name:\"AbiEncodingArrayLengthMismatchError\"})}},I9=class extends ae{constructor({expectedSize:t,value:r}){super(`Size of bytes \"${r}\" (bytes${$t(r)}) does not match expected size (bytes${t}).`,{name:\"AbiEncodingBytesSizeMismatchError\"})}},bv=class extends ae{constructor({expectedLength:t,givenLength:r}){super([\"ABI encoding params/values length mismatch.\",`Expected length (params): ${t}`,`Given length (values): ${r}`].join(`\\n`),{name:\"AbiEncodingLengthMismatchError\"})}},P9=class extends ae{constructor(t,{docsPath:r}){super([`Arguments (\\\\`args\\\\`) were provided to \"${t}\", but \"${t}\" on the ABI does not contain any parameters (\\\\`inputs\\\\`).`,\"Cannot encode error result without knowing what the parameter types are.\",\"Make sure you are using the correct ABI and that the inputs exist on it.\"].join(`\\n`),{docsPath:r,name:\"AbiErrorInputsNotFoundError\"})}},VA=class extends ae{constructor(t,{docsPath:r}={}){super([`Error ${t?`\"${t}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\"].join(`\\n`),{docsPath:r,name:\"AbiErrorNotFoundError\"})}},gv=class extends ae{constructor(t,{docsPath:r,cause:n}){super([`Encoded error signature \"${t}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`\\n`),{docsPath:r,name:\"AbiErrorSignatureNotFoundError\",cause:n}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}},R9=class extends ae{constructor({docsPath:t}){super(\"Cannot extract event signature from empty topics.\",{docsPath:t,name:\"AbiEventSignatureEmptyTopicsError\"})}},M9=class extends ae{constructor(t,{docsPath:r}){super([`Encoded event signature \"${t}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the event exists on it.\",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`\\n`),{docsPath:r,name:\"AbiEventSignatureNotFoundError\"})}},KA=class extends ae{constructor(t,{docsPath:r}={}){super([`Event ${t?`\"${t}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the event exists on it.\"].join(`\\n`),{docsPath:r,name:\"AbiEventNotFoundError\"})}},bl=class extends ae{constructor(t,{docsPath:r}={}){super([`Function ${t?`\"${t}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the function exists on it.\"].join(`\\n`),{docsPath:r,name:\"AbiFunctionNotFoundError\"})}},xv=class extends ae{constructor(t,{docsPath:r}){super([`Function \"${t}\" does not contain any \\\\`outputs\\\\` on ABI.`,\"Cannot decode function result without knowing what the parameter types are.\",\"Make sure you are using the correct ABI and that the function exists on it.\"].join(`\\n`),{docsPath:r,name:\"AbiFunctionOutputsNotFoundError\"})}},O9=class extends ae{constructor(t,{docsPath:r}){super([`Encoded function signature \"${t}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the function exists on it.\",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`\\n`),{docsPath:r,name:\"AbiFunctionSignatureNotFoundError\"})}},N9=class extends ae{constructor(t,r){super(\"Found ambiguous types in overloaded ABI items.\",{metaMessages:[`\\\\`${t.type}\\\\` in \\\\`${sa(t.abiItem)}\\\\`, and`,`\\\\`${r.type}\\\\` in \\\\`${sa(r.abiItem)}\\\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"],name:\"AbiItemAmbiguityError\"})}},vv=class extends ae{constructor({expectedSize:t,givenSize:r}){super(`Expected bytes${t}, got bytes${r}.`,{name:\"BytesSizeMismatchError\"})}},$p=class extends ae{constructor({abiItem:t,data:r,params:n,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join(`\\n`),{metaMessages:[`Params: (${$A(n,{includeName:!0})})`,`Data:   ${r} (${o} bytes)`],name:\"DecodeLogDataMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=r,this.params=n,this.size=o}},i0=class extends ae{constructor({abiItem:t,param:r}){super([`Expected a topic for indexed event parameter${r.name?` \"${r.name}\"`:\"\"} on event \"${sa(t,{includeName:!0})}\".`].join(`\\n`),{name:\"DecodeLogTopicsMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}},U9=class extends ae{constructor(t,{docsPath:r}){super([`Type \"${t}\" is not a valid encoding type.`,\"Please provide a valid ABI type.\"].join(`\\n`),{docsPath:r,name:\"InvalidAbiEncodingType\"})}},D9=class extends ae{constructor(t,{docsPath:r}){super([`Type \"${t}\" is not a valid decoding type.`,\"Please provide a valid ABI type.\"].join(`\\n`),{docsPath:r,name:\"InvalidAbiDecodingType\"})}},wv=class extends ae{constructor(t){super([`Value \"${t}\" is not a valid array.`].join(`\\n`),{name:\"InvalidArrayError\"})}},_9=class extends ae{constructor(t){super([`\"${t}\" is not a valid definition type.`,\\'Valid types: \"function\", \"event\", \"error\"\\'].join(`\\n`),{name:\"InvalidDefinitionTypeError\"})}},H9=class extends ae{constructor(t){super(`Type \"${t}\" is not supported for packed encoding.`,{name:\"UnsupportedPackedAbiType\"})}}});var L9,Kle=x(()=>{c();ht();L9=class extends ae{constructor(t){super(`Filter type \"${t}\" is not supported.`,{name:\"FilterTypeNotSupportedError\"})}}});var WA,QA,ZA,z9=x(()=>{c();ht();WA=class extends ae{constructor({offset:t,position:r,size:n}){super(`Slice ${r===\"start\"?\"starting\":\"ending\"} at offset \"${t}\" is out-of-bounds (size: ${n}).`,{name:\"SliceOffsetOutOfBoundsError\"})}},QA=class extends ae{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${r}).`,{name:\"SizeExceedsPaddingSizeError\"})}},ZA=class extends ae{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${r} ${n} long, but is ${t} ${n} long.`,{name:\"InvalidBytesLengthError\"})}}});function Qr(e,{dir:t,size:r=32}={}){return typeof e==\"string\"?gl(e,{dir:t,size:r}):P$(e,{dir:t,size:r})}function gl(e,{dir:t,size:r=32}={}){if(r===null)return e;let n=e.replace(\"0x\",\"\");if(n.length>r*2)throw new QA({size:Math.ceil(n.length/2),targetSize:r,type:\"hex\"});return`0x${n[t===\"right\"?\"padEnd\":\"padStart\"](r*2,\"0\")}`}function P$(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new QA({size:e.length,targetSize:r,type:\"bytes\"});let n=new Uint8Array(r);for(let o=0;o<r;o++){let s=t===\"right\";n[s?o:r-o-1]=e[s?o:e.length-o-1]}return n}var Gp=x(()=>{c();z9()});var s0,F9,j9,q9,JA=x(()=>{c();ht();s0=class extends ae{constructor({max:t,min:r,signed:n,size:o,value:s}){super(`Number \"${s}\" is not in safe ${o?`${o*8}-bit ${n?\"signed\":\"unsigned\"} `:\"\"}integer range ${t?`(${r} to ${t})`:`(above ${r})`}`,{name:\"IntegerOutOfRangeError\"})}},F9=class extends ae{constructor(t){super(`Bytes value \"${t}\" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:\"InvalidBytesBooleanError\"})}},j9=class extends ae{constructor(t){super(`Hex value \"${t}\" is not a valid boolean. The hex value must be \"0x0\" (false) or \"0x1\" (true).`,{name:\"InvalidHexBooleanError\"})}},q9=class extends ae{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`,{name:\"SizeOverflowError\"})}}});function Mn(e,{dir:t=\"left\"}={}){let r=typeof e==\"string\"?e.replace(\"0x\",\"\"):e,n=0;for(let o=0;o<r.length-1&&r[t===\"left\"?o:r.length-o-1].toString()===\"0\";o++)n++;return r=t===\"left\"?r.slice(n):r.slice(0,r.length-n),typeof e==\"string\"?(r.length===1&&t===\"right\"&&(r=`${r}0`),`0x${r.length%2===1?`0${r}`:r}`):r}var Vp=x(()=>{c()});function qi(e,{size:t}){if($t(e)>t)throw new q9({givenSize:$t(e),maxSize:t})}function at(e,t={}){let{signed:r}=t;t.size&&qi(e,{size:t.size});let n=BigInt(e);if(!r)return n;let o=(e.length-2)/2,s=(1n<<BigInt(o)*8n-1n)-1n;return n<=s?n:n-BigInt(`0x${\"f\".padStart(o*2,\"f\")}`)-1n}function $9(e,t={}){let r=e;if(t.size&&(qi(r,{size:t.size}),r=Mn(r)),Mn(r)===\"0x00\")return!1;if(Mn(r)===\"0x01\")return!0;throw new j9(r)}function Zr(e,t={}){let r=at(e,t),n=Number(r);if(!Number.isSafeInteger(n))throw new s0({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${r}n`});return n}function YA(e,t={}){let r=Jr(e);return t.size&&(qi(r,{size:t.size}),r=Mn(r,{dir:\"right\"})),new TextDecoder().decode(r)}var Zn=x(()=>{c();JA();ji();Vp();bo()});function ot(e,t={}){return typeof e==\"number\"||typeof e==\"bigint\"?le(e,t):typeof e==\"string\"?ks(e,t):typeof e==\"boolean\"?f1(e,t):yr(e,t)}function f1(e,t={}){let r=`0x${Number(e)}`;return typeof t.size==\"number\"?(qi(r,{size:t.size}),Qr(r,{size:t.size})):r}function yr(e,t={}){let r=\"\";for(let o=0;o<e.length;o++)r+=xlt[e[o]];let n=`0x${r}`;return typeof t.size==\"number\"?(qi(n,{size:t.size}),Qr(n,{dir:\"right\",size:t.size})):n}function le(e,t={}){let{signed:r,size:n}=t,o=BigInt(e),s;n?r?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof e==\"number\"&&(s=BigInt(Number.MAX_SAFE_INTEGER));let u=typeof s==\"bigint\"&&r?-s-1n:0;if(s&&o>s||o<u){let d=typeof e==\"bigint\"?\"n\":\"\";throw new s0({max:s?`${s}${d}`:void 0,min:`${u}${d}`,signed:r,size:n,value:`${e}${d}`})}let f=`0x${(r&&o<0?(1n<<BigInt(n*8))+BigInt(o):o).toString(16)}`;return n?Qr(f,{size:n}):f}function ks(e,t={}){let r=vlt.encode(e);return yr(r,t)}var xlt,vlt,tt=x(()=>{c();JA();Gp();Zn();xlt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));vlt=new TextEncoder});function Ha(e,t={}){return typeof e==\"number\"||typeof e==\"bigint\"?Zle(e,t):typeof e==\"boolean\"?Qle(e,t):Wr(e)?Jr(e,t):$i(e,t)}function Qle(e,t={}){let r=new Uint8Array(1);return r[0]=Number(e),typeof t.size==\"number\"?(qi(r,{size:t.size}),Qr(r,{size:t.size})):r}function Wle(e){if(e>=Kp.zero&&e<=Kp.nine)return e-Kp.zero;if(e>=Kp.A&&e<=Kp.F)return e-(Kp.A-10);if(e>=Kp.a&&e<=Kp.f)return e-(Kp.a-10)}function Jr(e,t={}){let r=e;t.size&&(qi(r,{size:t.size}),r=Qr(r,{dir:\"right\",size:t.size}));let n=r.slice(2);n.length%2&&(n=`0${n}`);let o=n.length/2,s=new Uint8Array(o);for(let u=0,f=0;u<o;u++){let d=Wle(n.charCodeAt(f++)),m=Wle(n.charCodeAt(f++));if(d===void 0||m===void 0)throw new ae(`Invalid byte sequence (\"${n[f-2]}${n[f-1]}\" in \"${n}\").`);s[u]=d*16+m}return s}function Zle(e,t){let r=le(e,t);return Jr(r)}function $i(e,t={}){let r=wlt.encode(e);return typeof t.size==\"number\"?(qi(r,{size:t.size}),Qr(r,{dir:\"right\",size:t.size})):r}var wlt,Kp,bo=x(()=>{c();ht();au();Gp();Zn();tt();wlt=new TextEncoder;Kp={zero:48,nine:57,A:65,F:70,a:97,f:102}});function Elt(e,t=!1){return t?{h:Number(e&G9),l:Number(e>>Jle&G9)}:{h:Number(e>>Jle&G9)|0,l:Number(e&G9)|0}}function V9(e,t=!1){let r=e.length,n=new Uint32Array(r),o=new Uint32Array(r);for(let s=0;s<r;s++){let{h:u,l:f}=Elt(e[s],t);[n[s],o[s]]=[u,f]}return[n,o]}function Wf(e,t,r,n){let o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}var G9,Jle,R$,M$,d1,p1,XA,eS,Yle,Xle,efe,tfe,rfe,nfe,ofe,afe,ife,sfe,O$=x(()=>{c();G9=BigInt(4294967295),Jle=BigInt(32);R$=(e,t,r)=>e>>>r,M$=(e,t,r)=>e<<32-r|t>>>r,d1=(e,t,r)=>e>>>r|t<<32-r,p1=(e,t,r)=>e<<32-r|t>>>r,XA=(e,t,r)=>e<<64-r|t>>>r-32,eS=(e,t,r)=>e>>>r-32|t<<64-r,Yle=(e,t,r)=>e<<r|t>>>32-r,Xle=(e,t,r)=>t<<r|e>>>32-r,efe=(e,t,r)=>t<<r-32|e>>>64-r,tfe=(e,t,r)=>e<<r-32|t>>>64-r;rfe=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),nfe=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,ofe=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),afe=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,ife=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),sfe=(e,t,r,n,o,s)=>t+r+n+o+s+(e/2**32|0)|0});var m1,cfe=x(()=>{c();m1=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0});function u0(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===\"Uint8Array\"}function xl(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(\"positive integer expected, got \"+e)}function Gi(e,...t){if(!u0(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(\"Uint8Array expected of length \"+t+\", got length=\"+e.length)}function K9(e){if(typeof e!=\"function\"||typeof e.create!=\"function\")throw new Error(\"Hash should be wrapped by utils.createHasher\");xl(e.outputLen),xl(e.blockLen)}function Qp(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}function W9(e,t){Gi(e);let r=t.outputLen;if(e.length<r)throw new Error(\"digestInto() expects output buffer of length at least \"+r)}function lfe(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function su(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Q9(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function vl(e,t){return e<<32-t|e>>>t}function Clt(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function Tlt(e){for(let t=0;t<e.length;t++)e[t]=Clt(e[t]);return e}function Qf(e){if(Gi(e),ffe)return e.toHex();let t=\"\";for(let r=0;r<e.length;r++)t+=_lt[e[r]];return t}function ufe(e){if(e>=Wp._0&&e<=Wp._9)return e-Wp._0;if(e>=Wp.A&&e<=Wp.F)return e-(Wp.A-10);if(e>=Wp.a&&e<=Wp.f)return e-(Wp.a-10)}function l0(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);if(ffe)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw new Error(\"hex string expected, got unpadded hex of length \"+t);let n=new Uint8Array(r);for(let o=0,s=0;o<r;o++,s+=2){let u=ufe(e.charCodeAt(s)),f=ufe(e.charCodeAt(s+1));if(u===void 0||f===void 0){let d=e[s]+e[s+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+d+\\'\" at index \\'+s)}n[o]=u*16+f}return n}function U$(e){if(typeof e!=\"string\")throw new Error(\"string expected\");return new Uint8Array(new TextEncoder().encode(e))}function h1(e){return typeof e==\"string\"&&(e=U$(e)),Gi(e),e}function Bs(...e){let t=0;for(let n=0;n<e.length;n++){let o=e[n];Gi(o),t+=o.length}let r=new Uint8Array(t);for(let n=0,o=0;n<e.length;n++){let s=e[n];r.set(s,o),o+=s.length}return r}function Ev(e){let t=n=>e().update(h1(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Zp(e=32){if(m1&&typeof m1.getRandomValues==\"function\")return m1.getRandomValues(new Uint8Array(e));if(m1&&typeof m1.randomBytes==\"function\")return Uint8Array.from(m1.randomBytes(e));throw new Error(\"crypto.getRandomValues must be defined\")}var Slt,N$,ffe,_lt,Wp,c0,wl=x(()=>{c();cfe();Slt=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;N$=Slt?e=>e:Tlt,ffe=typeof Uint8Array.from([]).toHex==\"function\"&&typeof Uint8Array.fromHex==\"function\",_lt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));Wp={_0:48,_9:57,A:65,F:70,a:97,f:102};c0=class{}});function Nlt(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let u=0;u<10;u++)r[u]=e[u]^e[u+10]^e[u+20]^e[u+30]^e[u+40];for(let u=0;u<10;u+=2){let f=(u+8)%10,d=(u+2)%10,m=r[d],h=r[d+1],y=dfe(m,h,1)^r[f],v=pfe(m,h,1)^r[f+1];for(let E=0;E<50;E+=10)e[u+E]^=y,e[u+E+1]^=v}let o=e[2],s=e[3];for(let u=0;u<24;u++){let f=hfe[u],d=dfe(o,s,f),m=pfe(o,s,f),h=mfe[u];o=e[h],s=e[h+1],e[h]=d,e[h+1]=m}for(let u=0;u<50;u+=10){for(let f=0;f<10;f++)r[f]=e[u+f];for(let f=0;f<10;f++)e[u+f]^=~r[(f+2)%10]&r[(f+4)%10]}e[0]^=Mlt[n],e[1]^=Olt[n]}su(r)}var klt,tS,Blt,Ilt,Plt,Rlt,mfe,hfe,yfe,bfe,Mlt,Olt,dfe,pfe,D$,Ult,Zf,Av=x(()=>{c();O$();wl();klt=BigInt(0),tS=BigInt(1),Blt=BigInt(2),Ilt=BigInt(7),Plt=BigInt(256),Rlt=BigInt(113),mfe=[],hfe=[],yfe=[];for(let e=0,t=tS,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],mfe.push(2*(5*n+r)),hfe.push((e+1)*(e+2)/2%64);let o=klt;for(let s=0;s<7;s++)t=(t<<tS^(t>>Ilt)*Rlt)%Plt,t&Blt&&(o^=tS<<(tS<<BigInt(s))-tS);yfe.push(o)}bfe=V9(yfe,!0),Mlt=bfe[0],Olt=bfe[1],dfe=(e,t,r)=>r>32?efe(e,t,r):Yle(e,t,r),pfe=(e,t,r)=>r>32?tfe(e,t,r):Xle(e,t,r);D$=class e extends c0{constructor(t,r,n,o=!1,s=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=o,this.rounds=s,xl(n),!(0<t&&t<200))throw new Error(\"only keccak-f1600 function is supported\");this.state=new Uint8Array(200),this.state32=lfe(this.state)}clone(){return this._cloneInto()}keccak(){N$(this.state32),Nlt(this.state32,this.rounds),N$(this.state32),this.posOut=0,this.pos=0}update(t){Qp(this),t=h1(t),Gi(t);let{blockLen:r,state:n}=this,o=t.length;for(let s=0;s<o;){let u=Math.min(r-this.pos,o-s);for(let f=0;f<u;f++)n[this.pos++]^=t[s++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:r,pos:n,blockLen:o}=this;t[n]^=r,(r&128)!==0&&n===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){Qp(this,!1),Gi(t),this.finish();let r=this.state,{blockLen:n}=this;for(let o=0,s=t.length;o<s;){this.posOut>=n&&this.keccak();let u=Math.min(n-this.posOut,s-o);t.set(r.subarray(this.posOut,this.posOut+u),o),this.posOut+=u,o+=u}return t}xofInto(t){if(!this.enableXOF)throw new Error(\"XOF is not possible for this instance\");return this.writeInto(t)}xof(t){return xl(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(W9(t,this),this.finished)throw new Error(\"digest() was already called\");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,su(this.state)}_cloneInto(t){let{blockLen:r,suffix:n,outputLen:o,rounds:s,enableXOF:u}=this;return t||(t=new e(r,n,o,u,s)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=s,t.suffix=n,t.outputLen=o,t.enableXOF=u,t.destroyed=this.destroyed,t}},Ult=(e,t,r)=>Ev(()=>new D$(t,e,r)),Zf=Ult(1,136,256/8)});function Gt(e,t){let r=t||\"hex\",n=Zf(Wr(e,{strict:!1})?Ha(e):e);return r===\"bytes\"?n:ot(n)}var Is=x(()=>{c();Av();au();bo();tt()});function gfe(e){return Dlt(e)}var Dlt,xfe=x(()=>{c();bo();Is();Dlt=e=>Gt(Ha(e))});function vfe(e){let t=!0,r=\"\",n=0,o=\"\",s=!1;for(let u=0;u<e.length;u++){let f=e[u];if([\"(\",\")\",\",\"].includes(f)&&(t=!0),f===\"(\"&&n++,f===\")\"&&n--,!!t){if(n===0){if(f===\" \"&&[\"event\",\"function\",\"\"].includes(o))o=\"\";else if(o+=f,f===\")\"){s=!0;break}continue}if(f===\" \"){e[u-1]!==\",\"&&r!==\",\"&&r!==\",(\"&&(r=\"\",t=!1);continue}o+=f,r+=f}}if(!s)throw new ae(\"Unable to normalize signature.\");return o}var wfe=x(()=>{c();ht()});var Efe,Afe=x(()=>{c();hv();wfe();Efe=e=>{let t=typeof e==\"string\"?e:l1(e);return vfe(t)}});function Z9(e){return gfe(Efe(e))}var H$=x(()=>{c();xfe();Afe()});var f0,rS=x(()=>{c();H$();f0=Z9});var vr,Ec=x(()=>{c();ht();vr=class extends ae{constructor({address:t}){super(`Address \"${t}\" is invalid.`,{metaMessages:[\"- Address must be a hex value of 20 bytes (40 hex characters).\",\"- Address must match its checksum counterpart.\"],name:\"InvalidAddressError\"})}}});var ci,d0=x(()=>{c();ci=class extends Map{constructor(t){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let r=super.get(t);return super.has(t)&&(super.delete(t),super.set(t,r)),r}set(t,r){if(super.has(t)&&super.delete(t),super.set(t,r),this.maxSize&&this.size>this.maxSize){let n=super.keys().next().value;n!==void 0&&super.delete(n)}return this}}});function Jf(e,t){if(L$.has(`${e}.${t}`))return L$.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=Gt($i(r),\"bytes\"),o=(t?r.substring(`${t}0x`.length):r).split(\"\");for(let u=0;u<40;u+=2)n[u>>1]>>4>=8&&o[u]&&(o[u]=o[u].toUpperCase()),(n[u>>1]&15)>=8&&o[u+1]&&(o[u+1]=o[u+1].toUpperCase());let s=`0x${o.join(\"\")}`;return L$.set(`${e}.${t}`,s),s}function hn(e,t){if(!wt(e,{strict:!1}))throw new vr({address:e});return Jf(e,t)}var L$,El=x(()=>{c();Ec();bo();Is();d0();ui();L$=new ci(8192)});function wt(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(z$.has(n))return z$.get(n);let o=Hlt.test(e)?e.toLowerCase()===e?!0:r?Jf(e)===e:!0:!1;return z$.set(n,o),o}var Hlt,z$,ui=x(()=>{c();d0();El();Hlt=/^0x[a-fA-F0-9]{40}$/,z$=new ci(8192)});function mr(e){return typeof e[0]==\"string\"?Cn(e):Llt(e)}function Llt(e){let t=0;for(let o of e)t+=o.length;let r=new Uint8Array(t),n=0;for(let o of e)r.set(o,n),n+=o.length;return r}function Cn(e){return`0x${e.reduce((t,r)=>t+r.replace(\"0x\",\"\"),\"\")}`}var Jn=x(()=>{c()});function La(e,t,r,{strict:n}={}){return Wr(e,{strict:!1})?nS(e,t,r,{strict:n}):J9(e,t,r,{strict:n})}function Sfe(e,t){if(typeof t==\"number\"&&t>0&&t>$t(e)-1)throw new WA({offset:t,position:\"start\",size:$t(e)})}function Cfe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&$t(e)!==r-t)throw new WA({offset:r,position:\"end\",size:$t(e)})}function J9(e,t,r,{strict:n}={}){Sfe(e,t);let o=e.slice(t,r);return n&&Cfe(o,t,r),o}function nS(e,t,r,{strict:n}={}){Sfe(e,t);let o=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(r??e.length)*2)}`;return n&&Cfe(o,t,r),o}var Yf=x(()=>{c();z9();au();ji()});var Tfe,Y9,Sv,X9=x(()=>{c();Tfe=/^(.*)\\\\[([0-9]*)\\\\]$/,Y9=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Sv=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/});function zn(e,t){if(e.length!==t.length)throw new bv({expectedLength:e.length,givenLength:t.length});let r=zlt({params:e,values:t}),n=j$(r);return n.length===0?\"0x\":n}function zlt({params:e,values:t}){let r=[];for(let n=0;n<e.length;n++)r.push(F$({param:e[n],value:t[n]}));return r}function F$({param:e,value:t}){let r=eB(e.type);if(r){let[n,o]=r;return jlt(t,{length:n,param:{...e,type:o}})}if(e.type===\"tuple\")return Klt(t,{param:e});if(e.type===\"address\")return Flt(t);if(e.type===\"bool\")return $lt(t);if(e.type.startsWith(\"uint\")||e.type.startsWith(\"int\")){let n=e.type.startsWith(\"int\"),[,,o=\"256\"]=Sv.exec(e.type)??[];return Glt(t,{signed:n,size:Number(o)})}if(e.type.startsWith(\"bytes\"))return qlt(t,{param:e});if(e.type===\"string\")return Vlt(t);throw new U9(e.type,{docsPath:\"/docs/contract/encodeAbiParameters\"})}function j$(e){let t=0;for(let s=0;s<e.length;s++){let{dynamic:u,encoded:f}=e[s];u?t+=32:t+=$t(f)}let r=[],n=[],o=0;for(let s=0;s<e.length;s++){let{dynamic:u,encoded:f}=e[s];u?(r.push(le(t+o,{size:32})),n.push(f),o+=$t(f)):r.push(f)}return mr([...r,...n])}function Flt(e){if(!wt(e))throw new vr({address:e});return{dynamic:!1,encoded:gl(e.toLowerCase())}}function jlt(e,{length:t,param:r}){let n=t===null;if(!Array.isArray(e))throw new wv(e);if(!n&&e.length!==t)throw new B9({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let o=!1,s=[];for(let u=0;u<e.length;u++){let f=F$({param:r,value:e[u]});f.dynamic&&(o=!0),s.push(f)}if(n||o){let u=j$(s);if(n){let f=le(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?mr([f,u]):f}}if(o)return{dynamic:!0,encoded:u}}return{dynamic:!1,encoded:mr(s.map(({encoded:u})=>u))}}function qlt(e,{param:t}){let[,r]=t.type.split(\"bytes\"),n=$t(e);if(!r){let o=e;return n%32!==0&&(o=gl(o,{dir:\"right\",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:mr([gl(le(n,{size:32})),o])}}if(n!==Number.parseInt(r,10))throw new I9({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:gl(e,{dir:\"right\"})}}function $lt(e){if(typeof e!=\"boolean\")throw new ae(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:gl(f1(e))}}function Glt(e,{signed:t,size:r=256}){if(typeof r==\"number\"){let n=2n**(BigInt(r)-(t?1n:0n))-1n,o=t?-n-1n:0n;if(e>n||e<o)throw new s0({max:n.toString(),min:o.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:le(e,{size:32,signed:t})}}function Vlt(e){let t=ks(e),r=Math.ceil($t(t)/32),n=[];for(let o=0;o<r;o++)n.push(gl(La(t,o*32,(o+1)*32),{dir:\"right\"}));return{dynamic:!0,encoded:mr([gl(le($t(t),{size:32})),...n])}}function Klt(e,{param:t}){let r=!1,n=[];for(let o=0;o<t.components.length;o++){let s=t.components[o],u=Array.isArray(e)?o:s.name,f=F$({param:s,value:e[u]});n.push(f),f.dynamic&&(r=!0)}return{dynamic:r,encoded:r?j$(n):mr(n.map(({encoded:o})=>o))}}function eB(e){let t=e.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}var cu=x(()=>{c();yo();Ec();ht();JA();ui();Jn();Gp();ji();Yf();tt();X9()});var Xf,Cv=x(()=>{c();Yf();H$();Xf=e=>La(Z9(e),0,4)});function Ps(e){let{abi:t,args:r=[],name:n}=e,o=Wr(n,{strict:!1}),s=t.filter(f=>o?f.type===\"function\"?Xf(f)===n:f.type===\"event\"?f0(f)===n:!1:\"name\"in f&&f.name===n);if(s.length===0)return;if(s.length===1)return s[0];let u;for(let f of s){if(!(\"inputs\"in f))continue;if(!r||r.length===0){if(!f.inputs||f.inputs.length===0)return f;continue}if(!f.inputs||f.inputs.length===0||f.inputs.length!==r.length)continue;if(r.every((m,h)=>{let y=\"inputs\"in f&&f.inputs[h];return y?q$(m,y):!1})){if(u&&\"inputs\"in u&&u.inputs){let m=_fe(f.inputs,u.inputs,r);if(m)throw new N9({abiItem:f,type:m[0]},{abiItem:u,type:m[1]})}u=f}}return u||s[0]}function q$(e,t){let r=typeof e,n=t.type;switch(n){case\"address\":return wt(e,{strict:!1});case\"bool\":return r===\"boolean\";case\"function\":return r===\"string\";case\"string\":return r===\"string\";default:return n===\"tuple\"&&\"components\"in t?Object.values(t.components).every((o,s)=>r===\"object\"&&q$(Object.values(e)[s],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?r===\"number\"||r===\"bigint\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?r===\"string\"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\\\[[0-9]{0,}\\\\])+$/.test(n)?Array.isArray(e)&&e.every(o=>q$(o,{...t,type:n.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function _fe(e,t,r){for(let n in e){let o=e[n],s=t[n];if(o.type===\"tuple\"&&s.type===\"tuple\"&&\"components\"in o&&\"components\"in s)return _fe(o.components,s.components,r[n]);let u=[o.type,s.type];if(u.includes(\"address\")&&u.includes(\"bytes20\")?!0:u.includes(\"address\")&&u.includes(\"string\")?wt(r[n],{strict:!1}):u.includes(\"address\")&&u.includes(\"bytes\")?wt(r[n],{strict:!1}):!1)return u}}var p0=x(()=>{c();yo();au();ui();rS();Cv()});function ed(e){let{abi:t,eventName:r,args:n}=e,o=t[0];if(r){let d=Ps({abi:t,name:r});if(!d)throw new KA(r,{docsPath:kfe});o=d}if(o.type!==\"event\")throw new KA(void 0,{docsPath:kfe});let s=sa(o),u=f0(s),f=[];if(n&&\"inputs\"in o){let d=o.inputs?.filter(h=>\"indexed\"in h&&h.indexed),m=Array.isArray(n)?n:Object.values(n).length>0?d?.map(h=>n[h.name])??[]:[];m.length>0&&(f=d?.map((h,y)=>Array.isArray(m[y])?m[y].map((v,E)=>Bfe({param:h,value:m[y][E]})):typeof m[y]<\"u\"&&m[y]!==null?Bfe({param:h,value:m[y]}):null)??[])}return[u,...f]}function Bfe({param:e,value:t}){if(e.type===\"string\"||e.type===\"bytes\")return Gt(Ha(t));if(e.type===\"tuple\"||e.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/))throw new L9(e.type);return zn([e],[t])}var kfe,Tv=x(()=>{c();yo();Kle();bo();Is();rS();cu();qp();p0();kfe=\"/docs/contract/encodeEventTopics\"});function m0(e,{method:t}){let r={};return e.transport.type===\"fallback\"&&e.transport.onResponse?.(({method:n,response:o,status:s,transport:u})=>{s===\"success\"&&t===n&&(r[o]=u.request)}),(n=>r[n]||e.request)}var oS=x(()=>{c()});async function tB(e,t){let{address:r,abi:n,args:o,eventName:s,fromBlock:u,strict:f,toBlock:d}=t,m=m0(e,{method:\"eth_newFilter\"}),h=s?ed({abi:n,args:o,eventName:s}):void 0,y=await e.request({method:\"eth_newFilter\",params:[{address:r,fromBlock:typeof u==\"bigint\"?le(u):u,toBlock:typeof d==\"bigint\"?le(d):d,topics:h}]});return{abi:n,args:o,eventName:s,id:y,request:m(y),strict:!!f,type:\"event\"}}var $$=x(()=>{c();Tv();tt();oS()});function Xe(e){return typeof e==\"string\"?{address:e,type:\"json-rpc\"}:e}var Yr=x(()=>{c()});function Pfe(e){let{abi:t,args:r,functionName:n}=e,o=t[0];if(n){let s=Ps({abi:t,args:r,name:n});if(!s)throw new bl(n,{docsPath:Ife});o=s}if(o.type!==\"function\")throw new bl(void 0,{docsPath:Ife});return{abi:[o],functionName:Xf(sa(o))}}var Ife,Rfe=x(()=>{c();yo();Cv();qp();p0();Ife=\"/docs/contract/encodeFunctionData\"});function Ct(e){let{args:t}=e,{abi:r,functionName:n}=e.abi.length===1&&e.functionName?.startsWith(\"0x\")?e:Pfe(e),o=r[0],s=n,u=\"inputs\"in o&&o.inputs?zn(o.inputs,t??[]):void 0;return Cn([s,u??\"0x\"])}var za=x(()=>{c();Jn();cu();Rfe()});var Mfe,rB,Ofe,nB=x(()=>{c();Mfe={1:\"An `assert` condition failed.\",17:\"Arithmetic operation resulted in underflow or overflow.\",18:\"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).\",33:\"Attempted to convert to an invalid type.\",34:\"Attempted to access a storage byte array that is incorrectly encoded.\",49:\"Performed `.pop()` on an empty array\",50:\"Array index is out of bounds.\",65:\"Allocated too much memory or created an array which is too large.\",81:\"Attempted to call a zero-initialized variable of internal function type.\"},rB={inputs:[{name:\"message\",type:\"string\"}],name:\"Error\",type:\"error\"},Ofe={inputs:[{name:\"reason\",type:\"uint256\"}],name:\"Panic\",type:\"error\"}});var aS,_v,oB,G$=x(()=>{c();ht();aS=class extends ae{constructor({offset:t}){super(`Offset \\\\`${t}\\\\` cannot be negative.`,{name:\"NegativeOffsetError\"})}},_v=class extends ae{constructor({length:t,position:r}){super(`Position \\\\`${r}\\\\` is out of bounds (\\\\`0 < position < ${t}\\\\`).`,{name:\"PositionOutOfBoundsError\"})}},oB=class extends ae{constructor({count:t,limit:r}){super(`Recursive read limit of \\\\`${r}\\\\` exceeded (recursive read count: \\\\`${t}\\\\`).`,{name:\"RecursiveReadLimitExceededError\"})}}});function kv(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(Wlt);return r.bytes=e,r.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}var Wlt,aB=x(()=>{c();G$();Wlt={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new oB({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new _v({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new aS({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new aS({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}}});function Nfe(e,t={}){typeof t.size<\"u\"&&qi(e,{size:t.size});let r=yr(e,t);return at(r,t)}function Ufe(e,t={}){let r=e;if(typeof t.size<\"u\"&&(qi(r,{size:t.size}),r=Mn(r)),r.length>1||r[0]>1)throw new F9(r);return!!r[0]}function td(e,t={}){typeof t.size<\"u\"&&qi(e,{size:t.size});let r=yr(e,t);return Zr(r,t)}function Dfe(e,t={}){let r=e;return typeof t.size<\"u\"&&(qi(r,{size:t.size}),r=Mn(r,{dir:\"right\"})),new TextDecoder().decode(r)}var Hfe=x(()=>{c();JA();Vp();Zn();tt()});function Rs(e,t){let r=typeof t==\"string\"?Jr(t):t,n=kv(r);if($t(r)===0&&e.length>0)throw new iu;if($t(t)&&$t(t)<32)throw new yv({data:typeof t==\"string\"?t:yr(t),params:e,size:$t(t)});let o=0,s=[];for(let u=0;u<e.length;++u){let f=e[u];n.setPosition(o);let[d,m]=Bv(n,f,{staticPosition:0});o+=m,s.push(d)}return s}function Bv(e,t,{staticPosition:r}){let n=eB(t.type);if(n){let[o,s]=n;return Zlt(e,{...t,type:s},{length:o,staticPosition:r})}if(t.type===\"tuple\")return eft(e,t,{staticPosition:r});if(t.type===\"address\")return Qlt(e);if(t.type===\"bool\")return Jlt(e);if(t.type.startsWith(\"bytes\"))return Ylt(e,t,{staticPosition:r});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return Xlt(e,t);if(t.type===\"string\")return tft(e,{staticPosition:r});throw new D9(t.type,{docsPath:\"/docs/contract/decodeAbiParameters\"})}function Qlt(e){let t=e.readBytes(32);return[Jf(yr(J9(t,-20))),32]}function Zlt(e,t,{length:r,staticPosition:n}){if(!r){let u=td(e.readBytes(V$)),f=n+u,d=f+Lfe;e.setPosition(f);let m=td(e.readBytes(Lfe)),h=iS(t),y=0,v=[];for(let E=0;E<m;++E){e.setPosition(d+(h?E*32:y));let[C,B]=Bv(e,t,{staticPosition:d});y+=B,v.push(C)}return e.setPosition(n+32),[v,32]}if(iS(t)){let u=td(e.readBytes(V$)),f=n+u,d=[];for(let m=0;m<r;++m){e.setPosition(f+m*32);let[h]=Bv(e,t,{staticPosition:f});d.push(h)}return e.setPosition(n+32),[d,32]}let o=0,s=[];for(let u=0;u<r;++u){let[f,d]=Bv(e,t,{staticPosition:n+o});o+=d,s.push(f)}return[s,o]}function Jlt(e){return[Ufe(e.readBytes(32),{size:32}),32]}function Ylt(e,t,{staticPosition:r}){let[n,o]=t.type.split(\"bytes\");if(!o){let u=td(e.readBytes(32));e.setPosition(r+u);let f=td(e.readBytes(32));if(f===0)return e.setPosition(r+32),[\"0x\",32];let d=e.readBytes(f);return e.setPosition(r+32),[yr(d),32]}return[yr(e.readBytes(Number.parseInt(o,10),32)),32]}function Xlt(e,t){let r=t.type.startsWith(\"int\"),n=Number.parseInt(t.type.split(\"int\")[1]||\"256\",10),o=e.readBytes(32);return[n>48?Nfe(o,{signed:r}):td(o,{signed:r}),32]}function eft(e,t,{staticPosition:r}){let n=t.components.length===0||t.components.some(({name:u})=>!u),o=n?[]:{},s=0;if(iS(t)){let u=td(e.readBytes(V$)),f=r+u;for(let d=0;d<t.components.length;++d){let m=t.components[d];e.setPosition(f+s);let[h,y]=Bv(e,m,{staticPosition:f});s+=y,o[n?d:m?.name]=h}return e.setPosition(r+32),[o,32]}for(let u=0;u<t.components.length;++u){let f=t.components[u],[d,m]=Bv(e,f,{staticPosition:r});o[n?u:f?.name]=d,s+=m}return[o,s]}function tft(e,{staticPosition:t}){let r=td(e.readBytes(32)),n=t+r;e.setPosition(n);let o=td(e.readBytes(32));if(o===0)return e.setPosition(t+32),[\"\",32];let s=e.readBytes(o,32),u=Dfe(Mn(s));return e.setPosition(t+32),[u,32]}function iS(e){let{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(iS);let r=eB(e.type);return!!(r&&iS({...e,type:r[1]}))}var Lfe,V$,Iv=x(()=>{c();yo();El();aB();ji();Yf();Vp();Hfe();bo();tt();cu();Lfe=32,V$=32});function Pv(e){let{abi:t,data:r,cause:n}=e,o=La(r,0,4);if(o===\"0x\")throw new iu({cause:n});let u=[...t||[],rB,Ofe].find(f=>f.type===\"error\"&&o===Xf(sa(f)));if(!u)throw new gv(o,{docsPath:\"/docs/contract/decodeErrorResult\",cause:n});return{abiItem:u,args:\"inputs\"in u&&u.inputs&&u.inputs.length>0?Rs(u.inputs,La(r,4)):void 0,errorName:u.name}}var iB=x(()=>{c();nB();yo();Yf();Cv();Iv();qp()});var or,Fa=x(()=>{c();or=(e,t,r)=>JSON.stringify(e,(n,o)=>{let s=typeof o==\"bigint\"?o.toString():o;return typeof t==\"function\"?t(n,s):s},r)});function K$({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if(\"name\"in e&&\"inputs\"in e&&e.inputs)return`${r?e.name:\"\"}(${e.inputs.map((o,s)=>`${n&&o.name?`${o.name}: `:\"\"}${typeof t[s]==\"object\"?or(t[s]):t[s]}`).join(\", \")})`}var zfe=x(()=>{c();Fa()});var Ffe,jfe,W$=x(()=>{c();Ffe={gwei:9,wei:18},jfe={ether:-9,wei:9}});function y1(e,t){let r=e.toString(),n=r.startsWith(\"-\");n&&(r=r.slice(1)),r=r.padStart(t,\"0\");let[o,s]=[r.slice(0,r.length-t),r.slice(r.length-t)];return s=s.replace(/(0+)$/,\"\"),`${n?\"-\":\"\"}${o||\"0\"}${s?`.${s}`:\"\"}`}var sB=x(()=>{c()});function Rv(e,t=\"wei\"){return y1(e,Ffe[t])}var cB=x(()=>{c();W$();sB()});function ao(e,t=\"wei\"){return y1(e,jfe[t])}var b1=x(()=>{c();W$();sB()});function qfe(e){return e.reduce((t,{slot:r,value:n})=>`${t}        ${r}: ${n}\\n`,\"\")}function $fe(e){return e.reduce((t,{address:r,...n})=>{let o=`${t}    ${r}:\\n`;return n.nonce&&(o+=`      nonce: ${n.nonce}\\n`),n.balance&&(o+=`      balance: ${n.balance}\\n`),n.code&&(o+=`      code: ${n.code}\\n`),n.state&&(o+=`      state:\\n`,o+=qfe(n.state)),n.stateDiff&&(o+=`      stateDiff:\\n`,o+=qfe(n.stateDiff)),o},`  State Override:\\n`).slice(0,-1)}var uB,lB,Q$=x(()=>{c();ht();uB=class extends ae{constructor({address:t}){super(`State for account \"${t}\" is set multiple times.`,{name:\"AccountStateConflictError\"})}},lB=class extends ae{constructor(){super(\"state and stateDiff are set on the same account.\",{name:\"StateAssignmentConflictError\"})}}});function Jp(e){let t=Object.entries(e).map(([n,o])=>o===void 0||o===!1?null:[n,o]).filter(Boolean),r=t.reduce((n,[o])=>Math.max(n,o.length),0);return t.map(([n,o])=>`  ${`${n}:`.padEnd(r+1)}  ${o}`).join(`\\n`)}var fB,dB,pB,mB,Mv,Ov,Nv,hB,Ac=x(()=>{c();cB();b1();ht();fB=class extends ae{constructor({v:t}){super(`Invalid \\\\`v\\\\` value \"${t}\". Expected 27 or 28.`,{name:\"InvalidLegacyVError\"})}},dB=class extends ae{constructor({transaction:t}){super(\"Cannot infer a transaction type from provided transaction.\",{metaMessages:[\"Provided Transaction:\",\"{\",Jp(t),\"}\",\"\",\"To infer the type, either provide:\",\"- a `type` to the Transaction, or\",\"- an EIP-1559 Transaction with `maxFeePerGas`, or\",\"- an EIP-2930 Transaction with `gasPrice` & `accessList`, or\",\"- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or\",\"- an EIP-7702 Transaction with `authorizationList`, or\",\"- a Legacy Transaction with `gasPrice`\"],name:\"InvalidSerializableTransactionError\"})}},pB=class extends ae{constructor({storageKey:t}){super(`Size for storage key \"${t}\" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:\"InvalidStorageKeySizeError\"})}},mB=class extends ae{constructor(t,{account:r,docsPath:n,chain:o,data:s,gas:u,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:m,nonce:h,to:y,value:v}){let E=Jp({chain:o&&`${o?.name} (id: ${o?.id})`,from:r?.address,to:y,value:typeof v<\"u\"&&`${Rv(v)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:s,gas:u,gasPrice:typeof f<\"u\"&&`${ao(f)} gwei`,maxFeePerGas:typeof d<\"u\"&&`${ao(d)} gwei`,maxPriorityFeePerGas:typeof m<\"u\"&&`${ao(m)} gwei`,nonce:h});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Request Arguments:\",E].filter(Boolean),name:\"TransactionExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},Mv=class extends ae{constructor({blockHash:t,blockNumber:r,blockTag:n,hash:o,index:s}){let u=\"Transaction\";n&&s!==void 0&&(u=`Transaction at block time \"${n}\" at index \"${s}\"`),t&&s!==void 0&&(u=`Transaction at block hash \"${t}\" at index \"${s}\"`),r&&s!==void 0&&(u=`Transaction at block number \"${r}\" at index \"${s}\"`),o&&(u=`Transaction with hash \"${o}\"`),super(`${u} could not be found.`,{name:\"TransactionNotFoundError\"})}},Ov=class extends ae{constructor({hash:t}){super(`Transaction receipt with hash \"${t}\" could not be found. The Transaction may not be processed on a block yet.`,{name:\"TransactionReceiptNotFoundError\"})}},Nv=class extends ae{constructor({receipt:t}){super(`Transaction with hash \"${t.transactionHash}\" reverted.`,{metaMessages:[\\'The receipt marked the transaction as \"reverted\". This could mean that the function on the contract you are trying to call threw an error.\\',\" \",\"You can attempt to extract the revert reason by:\",\"- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract\",\"- using the `call` Action with raw `data`\"],name:\"TransactionReceiptRevertedError\"}),Object.defineProperty(this,\"receipt\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}},hB=class extends ae{constructor({hash:t}){super(`Timed out while waiting for transaction with hash \"${t}\" to be confirmed.`,{name:\"WaitForTransactionReceiptTimeoutError\"})}}});var Gfe,g1,yB=x(()=>{c();Gfe=e=>e,g1=e=>{try{let t=new URL(e);return!t.username&&!t.password?e:(t.username=\"\",t.password=\"\",t.toString())}catch{return e}}});var Uv,h0,Yp,Dv,bB,rd,Xp=x(()=>{c();Yr();nB();iB();qp();zfe();p0();cB();b1();yo();ht();Q$();Ac();yB();Uv=class extends ae{constructor(t,{account:r,docsPath:n,chain:o,data:s,gas:u,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:m,nonce:h,to:y,value:v,stateOverride:E}){let C=r?Xe(r):void 0,B=Jp({from:C?.address,to:y,value:typeof v<\"u\"&&`${Rv(v)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:s,gas:u,gasPrice:typeof f<\"u\"&&`${ao(f)} gwei`,maxFeePerGas:typeof d<\"u\"&&`${ao(d)} gwei`,maxPriorityFeePerGas:typeof m<\"u\"&&`${ao(m)} gwei`,nonce:h});E&&(B+=`\\n${$fe(E)}`),super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Raw Call Arguments:\",B].filter(Boolean),name:\"CallExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},h0=class extends ae{constructor(t,{abi:r,args:n,contractAddress:o,docsPath:s,functionName:u,sender:f}){let d=Ps({abi:r,args:n,name:u}),m=d?K$({abiItem:d,args:n,includeFunctionName:!1,includeName:!1}):void 0,h=d?sa(d,{includeName:!0}):void 0,y=Jp({address:o&&Gfe(o),function:h,args:m&&m!==\"()\"&&`${[...Array(u?.length??0).keys()].map(()=>\" \").join(\"\")}${m}`,sender:f});super(t.shortMessage||`An unknown error occurred while executing the contract function \"${u}\".`,{cause:t,docsPath:s,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],y&&\"Contract Call:\",y].filter(Boolean),name:\"ContractFunctionExecutionError\"}),Object.defineProperty(this,\"abi\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"args\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"contractAddress\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"formattedArgs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"functionName\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"sender\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=r,this.args=n,this.cause=t,this.contractAddress=o,this.functionName=u,this.sender=f}},Yp=class extends ae{constructor({abi:t,data:r,functionName:n,message:o,cause:s}){let u,f,d,m;if(r&&r!==\"0x\")try{f=Pv({abi:t,data:r,cause:s});let{abiItem:y,errorName:v,args:E}=f;if(v===\"Error\")m=E[0];else if(v===\"Panic\"){let[C]=E;m=Mfe[C]}else{let C=y?sa(y,{includeName:!0}):void 0,B=y&&E?K$({abiItem:y,args:E,includeFunctionName:!1,includeName:!1}):void 0;d=[C?`Error: ${C}`:\"\",B&&B!==\"()\"?`       ${[...Array(v?.length??0).keys()].map(()=>\" \").join(\"\")}${B}`:\"\"]}}catch(y){u=y}else o&&(m=o);let h;u instanceof gv&&(h=u.signature,d=[`Unable to decode signature \"${h}\" as it was not found on the provided ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${h}.`]),super(m&&m!==\"execution reverted\"||h?[`The contract function \"${n}\" reverted with the following ${h?\"signature\":\"reason\"}:`,m||h].join(`\\n`):`The contract function \"${n}\" reverted.`,{cause:u??s,metaMessages:d,name:\"ContractFunctionRevertedError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"raw\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"reason\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=f,this.raw=r,this.reason=m,this.signature=h}},Dv=class extends ae{constructor({functionName:t,cause:r}){super(`The contract function \"${t}\" returned no data (\"0x\").`,{metaMessages:[\"This could be due to any of the following:\",`  - The contract does not have the function \"${t}\",`,\"  - The parameters passed to the contract function may be invalid, or\",\"  - The address is not a contract.\"],name:\"ContractFunctionZeroDataError\",cause:r})}},bB=class extends ae{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory \"${t}\".`:\"\"}`,{metaMessages:[\"Please ensure:\",\"- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).\",\"- The `factoryData` is a valid encoded function call for contract deployment function on the factory.\"],name:\"CounterfactualDeploymentFailedError\"})}},rd=class extends ae{constructor({data:t,message:r}){super(r||\"\",{name:\"RawContractError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}});var uu,y0,sS,x1=x(()=>{c();Fa();ht();yB();uu=class extends ae{constructor({body:t,cause:r,details:n,headers:o,status:s,url:u}){super(\"HTTP request failed.\",{cause:r,details:n,metaMessages:[s&&`Status: ${s}`,`URL: ${g1(u)}`,t&&`Request body: ${or(t)}`].filter(Boolean),name:\"HttpRequestError\"}),Object.defineProperty(this,\"body\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"headers\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"status\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=o,this.status=s,this.url=u}},y0=class extends ae{constructor({body:t,error:r,url:n}){super(\"RPC Request failed.\",{cause:r,details:r.message,metaMessages:[`URL: ${g1(n)}`,`Request body: ${or(t)}`],name:\"RpcRequestError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data,this.url=n}},sS=class extends ae{constructor({body:t,url:r}){super(\"The request took too long to respond.\",{details:\"The request timed out.\",metaMessages:[`URL: ${g1(r)}`,`Request body: ${or(t)}`],name:\"TimeoutError\"}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=r}}});var rft,ja,qa,v1,w1,E1,A1,nd,Sc,S1,Al,C1,em,b0,T1,Fn,_1,k1,B1,I1,Vi,tm,P1,R1,M1,O1,N1,rm,Hv,cS,U1=x(()=>{c();ht();x1();rft=-1,ja=class extends ae{constructor(t,{code:r,docsPath:n,metaMessages:o,name:s,shortMessage:u}){super(u,{cause:t,docsPath:n,metaMessages:o||t?.metaMessages,name:s||\"RpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s||t.name,this.code=t instanceof y0?t.code:r??rft}},qa=class extends ja{constructor(t,r){super(t,r),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}},v1=class e extends ja{constructor(t){super(t,{code:e.code,name:\"ParseRpcError\",shortMessage:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"})}};Object.defineProperty(v1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});w1=class e extends ja{constructor(t){super(t,{code:e.code,name:\"InvalidRequestRpcError\",shortMessage:\"JSON is not a valid request object.\"})}};Object.defineProperty(w1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});E1=class e extends ja{constructor(t,{method:r}={}){super(t,{code:e.code,name:\"MethodNotFoundRpcError\",shortMessage:`The method${r?` \"${r}\"`:\"\"} does not exist / is not available.`})}};Object.defineProperty(E1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});A1=class e extends ja{constructor(t){super(t,{code:e.code,name:\"InvalidParamsRpcError\",shortMessage:[\"Invalid parameters were provided to the RPC method.\",\"Double check you have provided the correct parameters.\"].join(`\\n`)})}};Object.defineProperty(A1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});nd=class e extends ja{constructor(t){super(t,{code:e.code,name:\"InternalRpcError\",shortMessage:\"An internal error was received.\"})}};Object.defineProperty(nd,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});Sc=class e extends ja{constructor(t){super(t,{code:e.code,name:\"InvalidInputRpcError\",shortMessage:[\"Missing or invalid parameters.\",\"Double check you have provided the correct parameters.\"].join(`\\n`)})}};Object.defineProperty(Sc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});S1=class e extends ja{constructor(t){super(t,{code:e.code,name:\"ResourceNotFoundRpcError\",shortMessage:\"Requested resource not found.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ResourceNotFoundRpcError\"})}};Object.defineProperty(S1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});Al=class e extends ja{constructor(t){super(t,{code:e.code,name:\"ResourceUnavailableRpcError\",shortMessage:\"Requested resource not available.\"})}};Object.defineProperty(Al,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});C1=class e extends ja{constructor(t){super(t,{code:e.code,name:\"TransactionRejectedRpcError\",shortMessage:\"Transaction creation failed.\"})}};Object.defineProperty(C1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});em=class e extends ja{constructor(t,{method:r}={}){super(t,{code:e.code,name:\"MethodNotSupportedRpcError\",shortMessage:`Method${r?` \"${r}\"`:\"\"} is not supported.`})}};Object.defineProperty(em,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});b0=class e extends ja{constructor(t){super(t,{code:e.code,name:\"LimitExceededRpcError\",shortMessage:\"Request exceeds defined limit.\"})}};Object.defineProperty(b0,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});T1=class e extends ja{constructor(t){super(t,{code:e.code,name:\"JsonRpcVersionUnsupportedError\",shortMessage:\"Version of JSON-RPC protocol is not supported.\"})}};Object.defineProperty(T1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});Fn=class e extends qa{constructor(t){super(t,{code:e.code,name:\"UserRejectedRequestError\",shortMessage:\"User rejected the request.\"})}};Object.defineProperty(Fn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});_1=class e extends qa{constructor(t){super(t,{code:e.code,name:\"UnauthorizedProviderError\",shortMessage:\"The requested method and/or account has not been authorized by the user.\"})}};Object.defineProperty(_1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});k1=class e extends qa{constructor(t,{method:r}={}){super(t,{code:e.code,name:\"UnsupportedProviderMethodError\",shortMessage:`The Provider does not support the requested method${r?` \" ${r}\"`:\"\"}.`})}};Object.defineProperty(k1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});B1=class e extends qa{constructor(t){super(t,{code:e.code,name:\"ProviderDisconnectedError\",shortMessage:\"The Provider is disconnected from all chains.\"})}};Object.defineProperty(B1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});I1=class e extends qa{constructor(t){super(t,{code:e.code,name:\"ChainDisconnectedError\",shortMessage:\"The Provider is not connected to the requested chain.\"})}};Object.defineProperty(I1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901});Vi=class e extends qa{constructor(t){super(t,{code:e.code,name:\"SwitchChainError\",shortMessage:\"An error occurred when attempting to switch chain.\"})}};Object.defineProperty(Vi,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4902});tm=class e extends qa{constructor(t){super(t,{code:e.code,name:\"UnsupportedNonOptionalCapabilityError\",shortMessage:\"This Wallet does not support a capability that was not marked as optional.\"})}};Object.defineProperty(tm,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5700});P1=class e extends qa{constructor(t){super(t,{code:e.code,name:\"UnsupportedChainIdError\",shortMessage:\"This Wallet does not support the requested chain ID.\"})}};Object.defineProperty(P1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5710});R1=class e extends qa{constructor(t){super(t,{code:e.code,name:\"DuplicateIdError\",shortMessage:\"There is already a bundle submitted with this ID.\"})}};Object.defineProperty(R1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5720});M1=class e extends qa{constructor(t){super(t,{code:e.code,name:\"UnknownBundleIdError\",shortMessage:\"This bundle id is unknown / has not been submitted\"})}};Object.defineProperty(M1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5730});O1=class e extends qa{constructor(t){super(t,{code:e.code,name:\"BundleTooLargeError\",shortMessage:\"The call bundle is too large for the Wallet to process.\"})}};Object.defineProperty(O1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5740});N1=class e extends qa{constructor(t){super(t,{code:e.code,name:\"AtomicReadyWalletRejectedUpgradeError\",shortMessage:\"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade.\"})}};Object.defineProperty(N1,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5750});rm=class e extends qa{constructor(t){super(t,{code:e.code,name:\"AtomicityNotSupportedError\",shortMessage:\"The wallet does not support atomic execution but the request requires it.\"})}};Object.defineProperty(rm,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5760});Hv=class e extends qa{constructor(t){super(t,{code:e.code,name:\"WalletConnectSessionSettlementError\",shortMessage:\"WalletConnect session settlement failed.\"})}};Object.defineProperty(Hv,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:7e3});cS=class extends ja{constructor(t){super(t,{name:\"UnknownRpcError\",shortMessage:\"An unknown RPC error occurred.\"})}}});function Cc(e,{abi:t,address:r,args:n,docsPath:o,functionName:s,sender:u}){let f=e instanceof rd?e:e instanceof ae?e.walk(C=>\"data\"in C)||e.walk():{},{code:d,data:m,details:h,message:y,shortMessage:v}=f,E=e instanceof iu?new Dv({functionName:s,cause:e}):[nft,nd.code].includes(d)&&(m||h||y||v)||d===Sc.code&&h===\"execution reverted\"&&m?new Yp({abi:t,data:typeof m==\"object\"?m.data:m,functionName:s,message:f instanceof y0?h:v??y,cause:e}):e;return new h0(E,{abi:t,args:n,contractAddress:r,docsPath:o,functionName:s,sender:u})}var nft,D1=x(()=>{c();yo();ht();Xp();x1();U1();nft=3});function Vfe(e){let t=Gt(`0x${e.substring(4)}`).substring(26);return Jf(`0x${t}`)}var Kfe=x(()=>{c();El();Is()});function oft(e,t,r,n){if(typeof e.setBigUint64==\"function\")return e.setBigUint64(t,r,n);let o=BigInt(32),s=BigInt(4294967295),u=Number(r>>o&s),f=Number(r&s),d=n?4:0,m=n?0:4;e.setUint32(t+d,u,n),e.setUint32(t+m,f,n)}function Wfe(e,t,r){return e&t^~e&r}function Qfe(e,t,r){return e&t^e&r^t&r}var uS,nm,$a,Ga,Zfe=x(()=>{c();wl();uS=class extends c0{constructor(t,r,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Q9(this.buffer)}update(t){Qp(this),t=h1(t),Gi(t);let{view:r,buffer:n,blockLen:o}=this,s=t.length;for(let u=0;u<s;){let f=Math.min(o-this.pos,s-u);if(f===o){let d=Q9(t);for(;o<=s-u;u+=o)this.process(d,u);continue}n.set(t.subarray(u,u+f),this.pos),this.pos+=f,u+=f,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Qp(this),W9(t,this),this.finished=!0;let{buffer:r,view:n,blockLen:o,isLE:s}=this,{pos:u}=this;r[u++]=128,su(this.buffer.subarray(u)),this.padOffset>o-u&&(this.process(n,0),u=0);for(let y=u;y<o;y++)r[y]=0;oft(n,o-8,BigInt(this.length*8),s),this.process(n,0);let f=Q9(t),d=this.outputLen;if(d%4)throw new Error(\"_sha2: outputLen should be aligned to 32bit\");let m=d/4,h=this.get();if(m>h.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let y=0;y<m;y++)f.setUint32(4*y,h[y],s)}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:r,buffer:n,length:o,finished:s,destroyed:u,pos:f}=this;return t.destroyed=u,t.finished=s,t.length=o,t.pos=f,o%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}},nm=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),$a=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Ga=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});var aft,g0,gB,Jfe,ift,sft,x0,v0,xB,Z$,Tc,vB,wB,Lv=x(()=>{c();Zfe();O$();wl();aft=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),g0=new Uint32Array(64),gB=class extends uS{constructor(t=32){super(64,t,8,!1),this.A=nm[0]|0,this.B=nm[1]|0,this.C=nm[2]|0,this.D=nm[3]|0,this.E=nm[4]|0,this.F=nm[5]|0,this.G=nm[6]|0,this.H=nm[7]|0}get(){let{A:t,B:r,C:n,D:o,E:s,F:u,G:f,H:d}=this;return[t,r,n,o,s,u,f,d]}set(t,r,n,o,s,u,f,d){this.A=t|0,this.B=r|0,this.C=n|0,this.D=o|0,this.E=s|0,this.F=u|0,this.G=f|0,this.H=d|0}process(t,r){for(let y=0;y<16;y++,r+=4)g0[y]=t.getUint32(r,!1);for(let y=16;y<64;y++){let v=g0[y-15],E=g0[y-2],C=vl(v,7)^vl(v,18)^v>>>3,B=vl(E,17)^vl(E,19)^E>>>10;g0[y]=B+g0[y-7]+C+g0[y-16]|0}let{A:n,B:o,C:s,D:u,E:f,F:d,G:m,H:h}=this;for(let y=0;y<64;y++){let v=vl(f,6)^vl(f,11)^vl(f,25),E=h+v+Wfe(f,d,m)+aft[y]+g0[y]|0,B=(vl(n,2)^vl(n,13)^vl(n,22))+Qfe(n,o,s)|0;h=m,m=d,d=f,f=u+E|0,u=s,s=o,o=n,n=E+B|0}n=n+this.A|0,o=o+this.B|0,s=s+this.C|0,u=u+this.D|0,f=f+this.E|0,d=d+this.F|0,m=m+this.G|0,h=h+this.H|0,this.set(n,o,s,u,f,d,m,h)}roundClean(){su(g0)}destroy(){this.set(0,0,0,0,0,0,0,0),su(this.buffer)}},Jfe=V9([\"0x428a2f98d728ae22\",\"0x7137449123ef65cd\",\"0xb5c0fbcfec4d3b2f\",\"0xe9b5dba58189dbbc\",\"0x3956c25bf348b538\",\"0x59f111f1b605d019\",\"0x923f82a4af194f9b\",\"0xab1c5ed5da6d8118\",\"0xd807aa98a3030242\",\"0x12835b0145706fbe\",\"0x243185be4ee4b28c\",\"0x550c7dc3d5ffb4e2\",\"0x72be5d74f27b896f\",\"0x80deb1fe3b1696b1\",\"0x9bdc06a725c71235\",\"0xc19bf174cf692694\",\"0xe49b69c19ef14ad2\",\"0xefbe4786384f25e3\",\"0x0fc19dc68b8cd5b5\",\"0x240ca1cc77ac9c65\",\"0x2de92c6f592b0275\",\"0x4a7484aa6ea6e483\",\"0x5cb0a9dcbd41fbd4\",\"0x76f988da831153b5\",\"0x983e5152ee66dfab\",\"0xa831c66d2db43210\",\"0xb00327c898fb213f\",\"0xbf597fc7beef0ee4\",\"0xc6e00bf33da88fc2\",\"0xd5a79147930aa725\",\"0x06ca6351e003826f\",\"0x142929670a0e6e70\",\"0x27b70a8546d22ffc\",\"0x2e1b21385c26c926\",\"0x4d2c6dfc5ac42aed\",\"0x53380d139d95b3df\",\"0x650a73548baf63de\",\"0x766a0abb3c77b2a8\",\"0x81c2c92e47edaee6\",\"0x92722c851482353b\",\"0xa2bfe8a14cf10364\",\"0xa81a664bbc423001\",\"0xc24b8b70d0f89791\",\"0xc76c51a30654be30\",\"0xd192e819d6ef5218\",\"0xd69906245565a910\",\"0xf40e35855771202a\",\"0x106aa07032bbd1b8\",\"0x19a4c116b8d2d0c8\",\"0x1e376c085141ab53\",\"0x2748774cdf8eeb99\",\"0x34b0bcb5e19b48a8\",\"0x391c0cb3c5c95a63\",\"0x4ed8aa4ae3418acb\",\"0x5b9cca4f7763e373\",\"0x682e6ff3d6b2b8a3\",\"0x748f82ee5defb2fc\",\"0x78a5636f43172f60\",\"0x84c87814a1f0ab72\",\"0x8cc702081a6439ec\",\"0x90befffa23631e28\",\"0xa4506cebde82bde9\",\"0xbef9a3f7b2c67915\",\"0xc67178f2e372532b\",\"0xca273eceea26619c\",\"0xd186b8c721c0c207\",\"0xeada7dd6cde0eb1e\",\"0xf57d4f7fee6ed178\",\"0x06f067aa72176fba\",\"0x0a637dc5a2c898a6\",\"0x113f9804bef90dae\",\"0x1b710b35131c471b\",\"0x28db77f523047d84\",\"0x32caab7b40c72493\",\"0x3c9ebe0a15c9bebc\",\"0x431d67c49c100d4c\",\"0x4cc5d4becb3e42b6\",\"0x597f299cfc657e2a\",\"0x5fcb6fab3ad6faec\",\"0x6c44198c4a475817\"].map(e=>BigInt(e))),ift=Jfe[0],sft=Jfe[1],x0=new Uint32Array(80),v0=new Uint32Array(80),xB=class extends uS{constructor(t=64){super(128,t,16,!1),this.Ah=Ga[0]|0,this.Al=Ga[1]|0,this.Bh=Ga[2]|0,this.Bl=Ga[3]|0,this.Ch=Ga[4]|0,this.Cl=Ga[5]|0,this.Dh=Ga[6]|0,this.Dl=Ga[7]|0,this.Eh=Ga[8]|0,this.El=Ga[9]|0,this.Fh=Ga[10]|0,this.Fl=Ga[11]|0,this.Gh=Ga[12]|0,this.Gl=Ga[13]|0,this.Hh=Ga[14]|0,this.Hl=Ga[15]|0}get(){let{Ah:t,Al:r,Bh:n,Bl:o,Ch:s,Cl:u,Dh:f,Dl:d,Eh:m,El:h,Fh:y,Fl:v,Gh:E,Gl:C,Hh:B,Hl:R}=this;return[t,r,n,o,s,u,f,d,m,h,y,v,E,C,B,R]}set(t,r,n,o,s,u,f,d,m,h,y,v,E,C,B,R){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=s|0,this.Cl=u|0,this.Dh=f|0,this.Dl=d|0,this.Eh=m|0,this.El=h|0,this.Fh=y|0,this.Fl=v|0,this.Gh=E|0,this.Gl=C|0,this.Hh=B|0,this.Hl=R|0}process(t,r){for(let O=0;O<16;O++,r+=4)x0[O]=t.getUint32(r),v0[O]=t.getUint32(r+=4);for(let O=16;O<80;O++){let N=x0[O-15]|0,j=v0[O-15]|0,K=d1(N,j,1)^d1(N,j,8)^R$(N,j,7),G=p1(N,j,1)^p1(N,j,8)^M$(N,j,7),J=x0[O-2]|0,Y=v0[O-2]|0,W=d1(J,Y,19)^XA(J,Y,61)^R$(J,Y,6),ie=p1(J,Y,19)^eS(J,Y,61)^M$(J,Y,6),re=ofe(G,ie,v0[O-7],v0[O-16]),H=afe(re,K,W,x0[O-7],x0[O-16]);x0[O]=H|0,v0[O]=re|0}let{Ah:n,Al:o,Bh:s,Bl:u,Ch:f,Cl:d,Dh:m,Dl:h,Eh:y,El:v,Fh:E,Fl:C,Gh:B,Gl:R,Hh:M,Hl:U}=this;for(let O=0;O<80;O++){let N=d1(y,v,14)^d1(y,v,18)^XA(y,v,41),j=p1(y,v,14)^p1(y,v,18)^eS(y,v,41),K=y&E^~y&B,G=v&C^~v&R,J=ife(U,j,G,sft[O],v0[O]),Y=sfe(J,M,N,K,ift[O],x0[O]),W=J|0,ie=d1(n,o,28)^XA(n,o,34)^XA(n,o,39),re=p1(n,o,28)^eS(n,o,34)^eS(n,o,39),H=n&s^n&f^s&f,A=o&u^o&d^u&d;M=B|0,U=R|0,B=E|0,R=C|0,E=y|0,C=v|0,{h:y,l:v}=Wf(m|0,h|0,Y|0,W|0),m=f|0,h=d|0,f=s|0,d=u|0,s=n|0,u=o|0;let T=rfe(W,re,A);n=nfe(T,Y,ie,H),o=T|0}({h:n,l:o}=Wf(this.Ah|0,this.Al|0,n|0,o|0)),{h:s,l:u}=Wf(this.Bh|0,this.Bl|0,s|0,u|0),{h:f,l:d}=Wf(this.Ch|0,this.Cl|0,f|0,d|0),{h:m,l:h}=Wf(this.Dh|0,this.Dl|0,m|0,h|0),{h:y,l:v}=Wf(this.Eh|0,this.El|0,y|0,v|0),{h:E,l:C}=Wf(this.Fh|0,this.Fl|0,E|0,C|0),{h:B,l:R}=Wf(this.Gh|0,this.Gl|0,B|0,R|0),{h:M,l:U}=Wf(this.Hh|0,this.Hl|0,M|0,U|0),this.set(n,o,s,u,f,d,m,h,y,v,E,C,B,R,M,U)}roundClean(){su(x0,v0)}destroy(){su(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},Z$=class extends xB{constructor(){super(48),this.Ah=$a[0]|0,this.Al=$a[1]|0,this.Bh=$a[2]|0,this.Bl=$a[3]|0,this.Ch=$a[4]|0,this.Cl=$a[5]|0,this.Dh=$a[6]|0,this.Dl=$a[7]|0,this.Eh=$a[8]|0,this.El=$a[9]|0,this.Fh=$a[10]|0,this.Fl=$a[11]|0,this.Gh=$a[12]|0,this.Gl=$a[13]|0,this.Hh=$a[14]|0,this.Hl=$a[15]|0}},Tc=Ev(()=>new gB),vB=Ev(()=>new xB),wB=Ev(()=>new Z$)});var EB,lS,J$=x(()=>{c();wl();EB=class extends c0{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,K9(t);let n=h1(r);if(this.iHash=t.create(),typeof this.iHash.update!=\"function\")throw new Error(\"Expected instance of class which extends utils.Hash\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let o=this.blockLen,s=new Uint8Array(o);s.set(n.length>o?t.create().update(n).digest():n);for(let u=0;u<s.length;u++)s[u]^=54;this.iHash.update(s),this.oHash=t.create();for(let u=0;u<s.length;u++)s[u]^=106;this.oHash.update(s),su(s)}update(t){return Qp(this),this.iHash.update(t),this}digestInto(t){Qp(this),Gi(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));let{oHash:r,iHash:n,finished:o,destroyed:s,blockLen:u,outputLen:f}=this;return t=t,t.finished=o,t.destroyed=s,t.blockLen=u,t.outputLen=f,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},lS=(e,t,r)=>new EB(e,t).update(r).digest();lS.create=(e,t)=>new EB(e,t)});function zv(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===\"Uint8Array\"}function am(e){if(!zv(e))throw new Error(\"Uint8Array expected\")}function Fv(e,t){if(typeof t!=\"boolean\")throw new Error(e+\" boolean expected, got \"+t)}function fS(e){let t=e.toString(16);return t.length&1?\"0\"+t:t}function ede(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);return e===\"\"?tG:BigInt(\"0x\"+e)}function jv(e){if(am(e),tde)return e.toHex();let t=\"\";for(let r=0;r<e.length;r++)t+=cft[e[r]];return t}function Yfe(e){if(e>=om._0&&e<=om._9)return e-om._0;if(e>=om.A&&e<=om.F)return e-(om.A-10);if(e>=om.a&&e<=om.f)return e-(om.a-10)}function dS(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);if(tde)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw new Error(\"hex string expected, got unpadded hex of length \"+t);let n=new Uint8Array(r);for(let o=0,s=0;o<r;o++,s+=2){let u=Yfe(e.charCodeAt(s)),f=Yfe(e.charCodeAt(s+1));if(u===void 0||f===void 0){let d=e[s]+e[s+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+d+\\'\" at index \\'+s)}n[o]=u*16+f}return n}function Ms(e){return ede(jv(e))}function rG(e){return am(e),ede(jv(Uint8Array.from(e).reverse()))}function od(e,t){return dS(e.toString(16).padStart(t*2,\"0\"))}function nG(e,t){return od(e,t).reverse()}function Go(e,t,r){let n;if(typeof t==\"string\")try{n=dS(t)}catch(s){throw new Error(e+\" must be hex string or Uint8Array, cause: \"+s)}else if(zv(t))n=Uint8Array.from(t);else throw new Error(e+\" must be hex string or Uint8Array\");let o=n.length;if(typeof r==\"number\"&&o!==r)throw new Error(e+\" of length \"+r+\" expected, got \"+o);return n}function Ki(...e){let t=0;for(let n=0;n<e.length;n++){let o=e[n];am(o),t+=o.length}let r=new Uint8Array(t);for(let n=0,o=0;n<e.length;n++){let s=e[n];r.set(s,o),o+=s.length}return r}function rde(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return r===0}function AB(e){if(typeof e!=\"string\")throw new Error(\"string expected\");return new Uint8Array(new TextEncoder().encode(e))}function H1(e,t,r){return Y$(e)&&Y$(t)&&Y$(r)&&t<=e&&e<r}function im(e,t,r,n){if(!H1(t,r,n))throw new Error(\"expected valid \"+e+\": \"+r+\" <= n < \"+n+\", got \"+t)}function nde(e){let t;for(t=0;e>tG;e>>=eG,t+=1);return t}function ode(e,t,r){if(typeof e!=\"number\"||e<2)throw new Error(\"hashLen must be a number\");if(typeof t!=\"number\"||t<2)throw new Error(\"qByteLen must be a number\");if(typeof r!=\"function\")throw new Error(\"hmacFn must be a function\");let n=X$(e),o=X$(e),s=0,u=()=>{n.fill(1),o.fill(0),s=0},f=(...y)=>r(o,n,...y),d=(y=X$(0))=>{o=f(Xfe([0]),y),n=f(),y.length!==0&&(o=f(Xfe([1]),y),n=f())},m=()=>{if(s++>=1e3)throw new Error(\"drbg: tried 1000 values\");let y=0,v=[];for(;y<t;){n=f();let E=n.slice();v.push(E),y+=n.length}return Ki(...v)};return(y,v)=>{u(),d(y);let E;for(;!(E=v(m()));)d();return u(),E}}function sm(e,t,r={}){let n=(o,s,u)=>{let f=uft[s];if(typeof f!=\"function\")throw new Error(\"invalid validator function\");let d=e[o];if(!(u&&d===void 0)&&!f(d,e))throw new Error(\"param \"+String(o)+\" is invalid. Expected \"+s+\", got \"+d)};for(let[o,s]of Object.entries(t))n(o,s,!1);for(let[o,s]of Object.entries(r))n(o,s,!0);return e}function oG(e){let t=new WeakMap;return(r,...n)=>{let o=t.get(r);if(o!==void 0)return o;let s=e(r,...n);return t.set(r,s),s}}var tG,eG,tde,cft,om,Y$,L1,X$,Xfe,uft,z1=x(()=>{c();tG=BigInt(0),eG=BigInt(1);tde=typeof Uint8Array.from([]).toHex==\"function\"&&typeof Uint8Array.fromHex==\"function\",cft=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));om={_0:48,_9:57,A:65,F:70,a:97,f:102};Y$=e=>typeof e==\"bigint\"&&tG<=e;L1=e=>(eG<<BigInt(e))-eG,X$=e=>new Uint8Array(e),Xfe=e=>Uint8Array.from(e);uft={bigint:e=>typeof e==\"bigint\",function:e=>typeof e==\"function\",boolean:e=>typeof e==\"boolean\",string:e=>typeof e==\"string\",stringOrUint8Array:e=>typeof e==\"string\"||zv(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e==\"function\"&&Number.isSafeInteger(e.outputLen)}});function _o(e,t){let r=e%t;return r>=Wi?r:t+r}function _c(e,t,r){let n=e;for(;t-- >Wi;)n*=n,n%=r;return n}function SB(e,t){if(e===Wi)throw new Error(\"invert: expected non-zero number\");if(t<=Wi)throw new Error(\"invert: expected positive modulus, got \"+t);let r=_o(e,t),n=t,o=Wi,s=li,u=li,f=Wi;for(;r!==Wi;){let m=n/r,h=n%r,y=o-u*m,v=s-f*m;n=r,r=h,o=u,s=f,u=y,f=v}if(n!==li)throw new Error(\"invert: does not exist\");return _o(o,t)}function ude(e,t){let r=(e.ORDER+li)/ide,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw new Error(\"Cannot find square root\");return n}function fft(e,t){let r=(e.ORDER-sde)/cde,n=e.mul(t,F1),o=e.pow(n,r),s=e.mul(t,o),u=e.mul(e.mul(s,F1),o),f=e.mul(s,e.sub(u,e.ONE));if(!e.eql(e.sqr(f),t))throw new Error(\"Cannot find square root\");return f}function dft(e){if(e<BigInt(3))throw new Error(\"sqrt is not defined for small field\");let t=e-li,r=0;for(;t%F1===Wi;)t/=F1,r++;let n=F1,o=cm(e);for(;ade(o,n)===1;)if(n++>1e3)throw new Error(\"Cannot find square root: probably non-prime P\");if(r===1)return ude;let s=o.pow(n,t),u=(t+li)/F1;return function(d,m){if(d.is0(m))return m;if(ade(d,m)!==1)throw new Error(\"Cannot find square root\");let h=r,y=d.mul(d.ONE,s),v=d.pow(m,t),E=d.pow(m,u);for(;!d.eql(v,d.ONE);){if(d.is0(v))return d.ZERO;let C=1,B=d.sqr(v);for(;!d.eql(B,d.ONE);)if(C++,B=d.sqr(B),C===h)throw new Error(\"Cannot find square root\");let R=li<<BigInt(h-C-1),M=d.pow(y,R);h=C,y=d.sqr(M),v=d.mul(v,y),E=d.mul(E,M)}return E}}function pft(e){return e%ide===lft?ude:e%cde===sde?fft:dft(e)}function CB(e){let t={ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"isSafeInteger\",BITS:\"isSafeInteger\"},r=mft.reduce((n,o)=>(n[o]=\"function\",n),t);return sm(e,r)}function hft(e,t,r){if(r<Wi)throw new Error(\"invalid exponent, negatives unsupported\");if(r===Wi)return e.ONE;if(r===li)return t;let n=e.ONE,o=t;for(;r>Wi;)r&li&&(n=e.mul(n,o)),o=e.sqr(o),r>>=li;return n}function qv(e,t,r=!1){let n=new Array(t.length).fill(r?e.ZERO:void 0),o=t.reduce((u,f,d)=>e.is0(f)?u:(n[d]=u,e.mul(u,f)),e.ONE),s=e.inv(o);return t.reduceRight((u,f,d)=>e.is0(f)?u:(n[d]=e.mul(u,n[d]),e.mul(u,f)),s),n}function ade(e,t){let r=(e.ORDER-li)/F1,n=e.pow(t,r),o=e.eql(n,e.ONE),s=e.eql(n,e.ZERO),u=e.eql(n,e.neg(e.ONE));if(!o&&!s&&!u)throw new Error(\"invalid Legendre symbol result\");return o?1:s?0:-1}function aG(e,t){t!==void 0&&xl(t);let r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function cm(e,t,r=!1,n={}){if(e<=Wi)throw new Error(\"invalid field: expected ORDER > 0, got \"+e);let{nBitLength:o,nByteLength:s}=aG(e,t);if(s>2048)throw new Error(\"invalid field: expected ORDER of <= 2048 bytes\");let u,f=Object.freeze({ORDER:e,isLE:r,BITS:o,BYTES:s,MASK:L1(o),ZERO:Wi,ONE:li,create:d=>_o(d,e),isValid:d=>{if(typeof d!=\"bigint\")throw new Error(\"invalid field element: expected bigint, got \"+typeof d);return Wi<=d&&d<e},is0:d=>d===Wi,isOdd:d=>(d&li)===li,neg:d=>_o(-d,e),eql:(d,m)=>d===m,sqr:d=>_o(d*d,e),add:(d,m)=>_o(d+m,e),sub:(d,m)=>_o(d-m,e),mul:(d,m)=>_o(d*m,e),pow:(d,m)=>hft(f,d,m),div:(d,m)=>_o(d*SB(m,e),e),sqrN:d=>d*d,addN:(d,m)=>d+m,subN:(d,m)=>d-m,mulN:(d,m)=>d*m,inv:d=>SB(d,e),sqrt:n.sqrt||(d=>(u||(u=pft(e)),u(f,d))),toBytes:d=>r?nG(d,s):od(d,s),fromBytes:d=>{if(d.length!==s)throw new Error(\"Field.fromBytes: expected \"+s+\" bytes, got \"+d.length);return r?rG(d):Ms(d)},invertBatch:d=>qv(f,d),cmov:(d,m,h)=>h?m:d});return Object.freeze(f)}function lde(e){if(typeof e!=\"bigint\")throw new Error(\"field order must be bigint\");let t=e.toString(2).length;return Math.ceil(t/8)}function iG(e){let t=lde(e);return t+Math.ceil(t/2)}function fde(e,t,r=!1){let n=e.length,o=lde(t),s=iG(t);if(n<16||n<s||n>1024)throw new Error(\"expected \"+s+\"-1024 bytes of input, got \"+n);let u=r?rG(e):Ms(e),f=_o(u,t-li)+li;return r?nG(f,o):od(f,o)}var Wi,li,F1,lft,ide,sde,cde,mft,$v=x(()=>{c();wl();z1();Wi=BigInt(0),li=BigInt(1),F1=BigInt(2),lft=BigInt(3),ide=BigInt(4),sde=BigInt(5),cde=BigInt(8);mft=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"]});function sG(e,t){let r=t.negate();return e?r:t}function mde(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error(\"invalid window size, expected [1..\"+t+\"], got W=\"+e)}function cG(e,t){mde(e,t);let r=Math.ceil(t/e)+1,n=2**(e-1),o=2**e,s=L1(e),u=BigInt(e);return{windows:r,windowSize:n,mask:s,maxNumber:o,shiftBy:u}}function pde(e,t,r){let{windowSize:n,mask:o,maxNumber:s,shiftBy:u}=r,f=Number(e&o),d=e>>u;f>n&&(f-=s,d+=fG);let m=t*n,h=m+Math.abs(f)-1,y=f===0,v=f<0,E=t%2!==0;return{nextN:d,offset:h,isZero:y,isNeg:v,isNegF:E,offsetF:m}}function yft(e,t){if(!Array.isArray(e))throw new Error(\"array expected\");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error(\"invalid point at index \"+n)})}function bft(e,t){if(!Array.isArray(e))throw new Error(\"array of scalars expected\");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error(\"invalid scalar at index \"+n)})}function lG(e){return hde.get(e)||1}function yde(e,t){return{constTimeNegate:sG,hasPrecomputes(r){return lG(r)!==1},unsafeLadder(r,n,o=e.ZERO){let s=r;for(;n>dde;)n&fG&&(o=o.add(s)),s=s.double(),n>>=fG;return o},precomputeWindow(r,n){let{windows:o,windowSize:s}=cG(n,t),u=[],f=r,d=f;for(let m=0;m<o;m++){d=f,u.push(d);for(let h=1;h<s;h++)d=d.add(f),u.push(d);f=d.double()}return u},wNAF(r,n,o){let s=e.ZERO,u=e.BASE,f=cG(r,t);for(let d=0;d<f.windows;d++){let{nextN:m,offset:h,isZero:y,isNeg:v,isNegF:E,offsetF:C}=pde(o,d,f);o=m,y?u=u.add(sG(E,n[C])):s=s.add(sG(v,n[h]))}return{p:s,f:u}},wNAFUnsafe(r,n,o,s=e.ZERO){let u=cG(r,t);for(let f=0;f<u.windows&&o!==dde;f++){let{nextN:d,offset:m,isZero:h,isNeg:y}=pde(o,f,u);if(o=d,!h){let v=n[m];s=s.add(y?v.negate():v)}}return s},getPrecomputes(r,n,o){let s=uG.get(n);return s||(s=this.precomputeWindow(n,r),r!==1&&uG.set(n,o(s))),s},wNAFCached(r,n,o){let s=lG(r);return this.wNAF(s,this.getPrecomputes(s,r,o),n)},wNAFCachedUnsafe(r,n,o,s){let u=lG(r);return u===1?this.unsafeLadder(r,n,s):this.wNAFUnsafe(u,this.getPrecomputes(u,r,o),n,s)},setWindowSize(r,n){mde(n,t),hde.set(r,n),uG.delete(r)}}}function bde(e,t,r,n){yft(r,e),bft(n,t);let o=r.length,s=n.length;if(o!==s)throw new Error(\"arrays of points and scalars must have equal length\");let u=e.ZERO,f=nde(BigInt(o)),d=1;f>12?d=f-3:f>4?d=f-2:f>0&&(d=2);let m=L1(d),h=new Array(Number(m)+1).fill(u),y=Math.floor((t.BITS-1)/d)*d,v=u;for(let E=y;E>=0;E-=d){h.fill(u);for(let B=0;B<s;B++){let R=n[B],M=Number(R>>BigInt(E)&m);h[M]=h[M].add(r[B])}let C=u;for(let B=h.length-1,R=u;B>0;B--)R=R.add(h[B]),C=C.add(R);if(v=v.add(C),E!==0)for(let B=0;B<d;B++)v=v.double()}return v}function dG(e){return CB(e.Fp),sm(e,{n:\"bigint\",h:\"bigint\",Gx:\"field\",Gy:\"field\"},{nBitLength:\"isSafeInteger\",nByteLength:\"isSafeInteger\"}),Object.freeze({...aG(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}var dde,fG,uG,hde,gde=x(()=>{c();$v();z1();dde=BigInt(0),fG=BigInt(1);uG=new WeakMap,hde=new WeakMap});function xde(e){e.lowS!==void 0&&Fv(\"lowS\",e.lowS),e.prehash!==void 0&&Fv(\"prehash\",e.prehash)}function gft(e){let t=dG(e);sm(t,{a:\"field\",b:\"field\"},{allowInfinityPoint:\"boolean\",allowedPrivateKeyLengths:\"array\",clearCofactor:\"function\",fromBytes:\"function\",isTorsionFree:\"function\",toBytes:\"function\",wrapPrivateKey:\"boolean\"});let{endo:r,Fp:n,a:o}=t;if(r){if(!n.eql(o,n.ZERO))throw new Error(\"invalid endo: CURVE.a must be 0\");if(typeof r!=\"object\"||typeof r.beta!=\"bigint\"||typeof r.splitScalar!=\"function\")throw new Error(\\'invalid endo: expected \"beta\": bigint and \"splitScalar\": function\\')}return Object.freeze({...t})}function pG(e,t){return jv(od(e,t))}function xft(e){let t=gft(e),{Fp:r}=t,n=cm(t.n,t.nBitLength),o=t.toBytes||((O,N,j)=>{let K=N.toAffine();return Ki(Uint8Array.from([4]),r.toBytes(K.x),r.toBytes(K.y))}),s=t.fromBytes||(O=>{let N=O.subarray(1),j=r.fromBytes(N.subarray(0,r.BYTES)),K=r.fromBytes(N.subarray(r.BYTES,2*r.BYTES));return{x:j,y:K}});function u(O){let{a:N,b:j}=t,K=r.sqr(O),G=r.mul(K,O);return r.add(r.add(G,r.mul(O,N)),j)}function f(O,N){let j=r.sqr(N),K=u(O);return r.eql(j,K)}if(!f(t.Gx,t.Gy))throw new Error(\"bad curve params: generator point\");let d=r.mul(r.pow(t.a,pS),hG),m=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(d,m)))throw new Error(\"bad curve params: a or b\");function h(O){return H1(O,yn,t.n)}function y(O){let{allowedPrivateKeyLengths:N,nByteLength:j,wrapPrivateKey:K,n:G}=t;if(N&&typeof O!=\"bigint\"){if(zv(O)&&(O=jv(O)),typeof O!=\"string\"||!N.includes(O.length))throw new Error(\"invalid private key\");O=O.padStart(j*2,\"0\")}let J;try{J=typeof O==\"bigint\"?O:Ms(Go(\"private key\",O,j))}catch{throw new Error(\"invalid private key, expected hex or \"+j+\" bytes, got \"+typeof O)}return K&&(J=_o(J,G)),im(\"private key\",J,yn,G),J}function v(O){if(!(O instanceof B))throw new Error(\"ProjectivePoint expected\")}let E=oG((O,N)=>{let{px:j,py:K,pz:G}=O;if(r.eql(G,r.ONE))return{x:j,y:K};let J=O.is0();N==null&&(N=J?r.ONE:r.inv(G));let Y=r.mul(j,N),W=r.mul(K,N),ie=r.mul(G,N);if(J)return{x:r.ZERO,y:r.ZERO};if(!r.eql(ie,r.ONE))throw new Error(\"invZ was invalid\");return{x:Y,y:W}}),C=oG(O=>{if(O.is0()){if(t.allowInfinityPoint&&!r.is0(O.py))return;throw new Error(\"bad point: ZERO\")}let{x:N,y:j}=O.toAffine();if(!r.isValid(N)||!r.isValid(j))throw new Error(\"bad point: x or y not FE\");if(!f(N,j))throw new Error(\"bad point: equation left != right\");if(!O.isTorsionFree())throw new Error(\"bad point: not in prime-order subgroup\");return!0});class B{constructor(N,j,K){if(N==null||!r.isValid(N))throw new Error(\"x required\");if(j==null||!r.isValid(j)||r.is0(j))throw new Error(\"y required\");if(K==null||!r.isValid(K))throw new Error(\"z required\");this.px=N,this.py=j,this.pz=K,Object.freeze(this)}static fromAffine(N){let{x:j,y:K}=N||{};if(!N||!r.isValid(j)||!r.isValid(K))throw new Error(\"invalid affine point\");if(N instanceof B)throw new Error(\"projective point not allowed\");let G=J=>r.eql(J,r.ZERO);return G(j)&&G(K)?B.ZERO:new B(j,K,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(N){let j=qv(r,N.map(K=>K.pz));return N.map((K,G)=>K.toAffine(j[G])).map(B.fromAffine)}static fromHex(N){let j=B.fromAffine(s(Go(\"pointHex\",N)));return j.assertValidity(),j}static fromPrivateKey(N){return B.BASE.multiply(y(N))}static msm(N,j){return bde(B,n,N,j)}_setWindowSize(N){U.setWindowSize(this,N)}assertValidity(){C(this)}hasEvenY(){let{y:N}=this.toAffine();if(r.isOdd)return!r.isOdd(N);throw new Error(\"Field doesn\\'t support isOdd\")}equals(N){v(N);let{px:j,py:K,pz:G}=this,{px:J,py:Y,pz:W}=N,ie=r.eql(r.mul(j,W),r.mul(J,G)),re=r.eql(r.mul(K,W),r.mul(Y,G));return ie&&re}negate(){return new B(this.px,r.neg(this.py),this.pz)}double(){let{a:N,b:j}=t,K=r.mul(j,pS),{px:G,py:J,pz:Y}=this,W=r.ZERO,ie=r.ZERO,re=r.ZERO,H=r.mul(G,G),A=r.mul(J,J),T=r.mul(Y,Y),P=r.mul(G,J);return P=r.add(P,P),re=r.mul(G,Y),re=r.add(re,re),W=r.mul(N,re),ie=r.mul(K,T),ie=r.add(W,ie),W=r.sub(A,ie),ie=r.add(A,ie),ie=r.mul(W,ie),W=r.mul(P,W),re=r.mul(K,re),T=r.mul(N,T),P=r.sub(H,T),P=r.mul(N,P),P=r.add(P,re),re=r.add(H,H),H=r.add(re,H),H=r.add(H,T),H=r.mul(H,P),ie=r.add(ie,H),T=r.mul(J,Y),T=r.add(T,T),H=r.mul(T,P),W=r.sub(W,H),re=r.mul(T,A),re=r.add(re,re),re=r.add(re,re),new B(W,ie,re)}add(N){v(N);let{px:j,py:K,pz:G}=this,{px:J,py:Y,pz:W}=N,ie=r.ZERO,re=r.ZERO,H=r.ZERO,A=t.a,T=r.mul(t.b,pS),P=r.mul(j,J),D=r.mul(K,Y),L=r.mul(G,W),V=r.add(j,K),Z=r.add(J,Y);V=r.mul(V,Z),Z=r.add(P,D),V=r.sub(V,Z),Z=r.add(j,G);let z=r.add(J,W);return Z=r.mul(Z,z),z=r.add(P,L),Z=r.sub(Z,z),z=r.add(K,G),ie=r.add(Y,W),z=r.mul(z,ie),ie=r.add(D,L),z=r.sub(z,ie),H=r.mul(A,Z),ie=r.mul(T,L),H=r.add(ie,H),ie=r.sub(D,H),H=r.add(D,H),re=r.mul(ie,H),D=r.add(P,P),D=r.add(D,P),L=r.mul(A,L),Z=r.mul(T,Z),D=r.add(D,L),L=r.sub(P,L),L=r.mul(A,L),Z=r.add(Z,L),P=r.mul(D,Z),re=r.add(re,P),P=r.mul(z,Z),ie=r.mul(V,ie),ie=r.sub(ie,P),P=r.mul(V,D),H=r.mul(z,H),H=r.add(H,P),new B(ie,re,H)}subtract(N){return this.add(N.negate())}is0(){return this.equals(B.ZERO)}wNAF(N){return U.wNAFCached(this,N,B.normalizeZ)}multiplyUnsafe(N){let{endo:j,n:K}=t;im(\"scalar\",N,Sl,K);let G=B.ZERO;if(N===Sl)return G;if(this.is0()||N===yn)return this;if(!j||U.hasPrecomputes(this))return U.wNAFCachedUnsafe(this,N,B.normalizeZ);let{k1neg:J,k1:Y,k2neg:W,k2:ie}=j.splitScalar(N),re=G,H=G,A=this;for(;Y>Sl||ie>Sl;)Y&yn&&(re=re.add(A)),ie&yn&&(H=H.add(A)),A=A.double(),Y>>=yn,ie>>=yn;return J&&(re=re.negate()),W&&(H=H.negate()),H=new B(r.mul(H.px,j.beta),H.py,H.pz),re.add(H)}multiply(N){let{endo:j,n:K}=t;im(\"scalar\",N,yn,K);let G,J;if(j){let{k1neg:Y,k1:W,k2neg:ie,k2:re}=j.splitScalar(N),{p:H,f:A}=this.wNAF(W),{p:T,f:P}=this.wNAF(re);H=U.constTimeNegate(Y,H),T=U.constTimeNegate(ie,T),T=new B(r.mul(T.px,j.beta),T.py,T.pz),G=H.add(T),J=A.add(P)}else{let{p:Y,f:W}=this.wNAF(N);G=Y,J=W}return B.normalizeZ([G,J])[0]}multiplyAndAddUnsafe(N,j,K){let G=B.BASE,J=(W,ie)=>ie===Sl||ie===yn||!W.equals(G)?W.multiplyUnsafe(ie):W.multiply(ie),Y=J(this,j).add(J(N,K));return Y.is0()?void 0:Y}toAffine(N){return E(this,N)}isTorsionFree(){let{h:N,isTorsionFree:j}=t;if(N===yn)return!0;if(j)return j(B,this);throw new Error(\"isTorsionFree() has not been declared for the elliptic curve\")}clearCofactor(){let{h:N,clearCofactor:j}=t;return N===yn?this:j?j(B,this):this.multiplyUnsafe(t.h)}toRawBytes(N=!0){return Fv(\"isCompressed\",N),this.assertValidity(),o(B,this,N)}toHex(N=!0){return Fv(\"isCompressed\",N),jv(this.toRawBytes(N))}}B.BASE=new B(t.Gx,t.Gy,r.ONE),B.ZERO=new B(r.ZERO,r.ONE,r.ZERO);let{endo:R,nBitLength:M}=t,U=yde(B,R?Math.ceil(M/2):M);return{CURVE:t,ProjectivePoint:B,normPrivateKeyToScalar:y,weierstrassEquation:u,isWithinCurveOrder:h}}function vft(e){let t=dG(e);return sm(t,{hash:\"hash\",hmac:\"function\",randomBytes:\"function\"},{bits2int:\"function\",bits2int_modN:\"function\",lowS:\"boolean\"}),Object.freeze({lowS:!0,...t})}function vde(e){let t=vft(e),{Fp:r,n,nByteLength:o,nBitLength:s}=t,u=r.BYTES+1,f=2*r.BYTES+1;function d(T){return _o(T,n)}function m(T){return SB(T,n)}let{ProjectivePoint:h,normPrivateKeyToScalar:y,weierstrassEquation:v,isWithinCurveOrder:E}=xft({...t,toBytes(T,P,D){let L=P.toAffine(),V=r.toBytes(L.x),Z=Ki;return Fv(\"isCompressed\",D),D?Z(Uint8Array.from([P.hasEvenY()?2:3]),V):Z(Uint8Array.from([4]),V,r.toBytes(L.y))},fromBytes(T){let P=T.length,D=T[0],L=T.subarray(1);if(P===u&&(D===2||D===3)){let V=Ms(L);if(!H1(V,yn,r.ORDER))throw new Error(\"Point is not on curve\");let Z=v(V),z;try{z=r.sqrt(Z)}catch(me){let ge=me instanceof Error?\": \"+me.message:\"\";throw new Error(\"Point is not on curve\"+ge)}let I=(z&yn)===yn;return(D&1)===1!==I&&(z=r.neg(z)),{x:V,y:z}}else if(P===f&&D===4){let V=r.fromBytes(L.subarray(0,r.BYTES)),Z=r.fromBytes(L.subarray(r.BYTES,2*r.BYTES));return{x:V,y:Z}}else{let V=u,Z=f;throw new Error(\"invalid Point, expected length of \"+V+\", or uncompressed \"+Z+\", got \"+P)}}});function C(T){let P=n>>yn;return T>P}function B(T){return C(T)?d(-T):T}let R=(T,P,D)=>Ms(T.slice(P,D));class M{constructor(P,D,L){im(\"r\",P,yn,n),im(\"s\",D,yn,n),this.r=P,this.s=D,L!=null&&(this.recovery=L),Object.freeze(this)}static fromCompact(P){let D=o;return P=Go(\"compactSignature\",P,D*2),new M(R(P,0,D),R(P,D,2*D))}static fromDER(P){let{r:D,s:L}=um.toSig(Go(\"DER\",P));return new M(D,L)}assertValidity(){}addRecoveryBit(P){return new M(this.r,this.s,P)}recoverPublicKey(P){let{r:D,s:L,recovery:V}=this,Z=G(Go(\"msgHash\",P));if(V==null||![0,1,2,3].includes(V))throw new Error(\"recovery id invalid\");let z=V===2||V===3?D+t.n:D;if(z>=r.ORDER)throw new Error(\"recovery id 2 or 3 invalid\");let I=(V&1)===0?\"02\":\"03\",Q=h.fromHex(I+pG(z,r.BYTES)),me=m(z),ge=d(-Z*me),Se=d(L*me),Ce=h.BASE.multiplyAndAddUnsafe(Q,ge,Se);if(!Ce)throw new Error(\"point at infinify\");return Ce.assertValidity(),Ce}hasHighS(){return C(this.s)}normalizeS(){return this.hasHighS()?new M(this.r,d(-this.s),this.recovery):this}toDERRawBytes(){return dS(this.toDERHex())}toDERHex(){return um.hexFromSig(this)}toCompactRawBytes(){return dS(this.toCompactHex())}toCompactHex(){let P=o;return pG(this.r,P)+pG(this.s,P)}}let U={isValidPrivateKey(T){try{return y(T),!0}catch{return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{let T=iG(t.n);return fde(t.randomBytes(T),t.n)},precompute(T=8,P=h.BASE){return P._setWindowSize(T),P.multiply(BigInt(3)),P}};function O(T,P=!0){return h.fromPrivateKey(T).toRawBytes(P)}function N(T){if(typeof T==\"bigint\")return!1;if(T instanceof h)return!0;let D=Go(\"key\",T).length,L=r.BYTES,V=L+1,Z=2*L+1;if(!(t.allowedPrivateKeyLengths||o===V))return D===V||D===Z}function j(T,P,D=!0){if(N(T)===!0)throw new Error(\"first arg must be private key\");if(N(P)===!1)throw new Error(\"second arg must be public key\");return h.fromHex(P).multiply(y(T)).toRawBytes(D)}let K=t.bits2int||function(T){if(T.length>8192)throw new Error(\"input is too large\");let P=Ms(T),D=T.length*8-s;return D>0?P>>BigInt(D):P},G=t.bits2int_modN||function(T){return d(K(T))},J=L1(s);function Y(T){return im(\"num < 2^\"+s,T,Sl,J),od(T,o)}function W(T,P,D=ie){if([\"recovered\",\"canonical\"].some(je=>je in D))throw new Error(\"sign() legacy options not supported\");let{hash:L,randomBytes:V}=t,{lowS:Z,prehash:z,extraEntropy:I}=D;Z==null&&(Z=!0),T=Go(\"msgHash\",T),xde(D),z&&(T=Go(\"prehashed msgHash\",L(T)));let Q=G(T),me=y(P),ge=[Y(me),Y(Q)];if(I!=null&&I!==!1){let je=I===!0?V(r.BYTES):I;ge.push(Go(\"extraEntropy\",je))}let Se=Ki(...ge),Ce=Q;function $e(je){let Ot=K(je);if(!E(Ot))return;let Te=m(Ot),It=h.BASE.multiply(Ot).toAffine(),Gn=d(It.x);if(Gn===Sl)return;let tr=d(Te*d(Ce+Gn*me));if(tr===Sl)return;let yt=(It.x===Gn?0:2)|Number(It.y&yn),rr=tr;return Z&&C(tr)&&(rr=B(tr),yt^=1),new M(Gn,rr,yt)}return{seed:Se,k2sig:$e}}let ie={lowS:t.lowS,prehash:!1},re={lowS:t.lowS,prehash:!1};function H(T,P,D=ie){let{seed:L,k2sig:V}=W(T,P,D),Z=t;return ode(Z.hash.outputLen,Z.nByteLength,Z.hmac)(L,V)}h.BASE._setWindowSize(8);function A(T,P,D,L=re){let V=T;P=Go(\"msgHash\",P),D=Go(\"publicKey\",D);let{lowS:Z,prehash:z,format:I}=L;if(xde(L),\"strict\"in L)throw new Error(\"options.strict was renamed to lowS\");if(I!==void 0&&I!==\"compact\"&&I!==\"der\")throw new Error(\"format must be compact or der\");let Q=typeof V==\"string\"||zv(V),me=!Q&&!I&&typeof V==\"object\"&&V!==null&&typeof V.r==\"bigint\"&&typeof V.s==\"bigint\";if(!Q&&!me)throw new Error(\"invalid signature, expected Uint8Array, hex string or Signature instance\");let ge,Se;try{if(me&&(ge=new M(V.r,V.s)),Q){try{I!==\"compact\"&&(ge=M.fromDER(V))}catch(yt){if(!(yt instanceof um.Err))throw yt}!ge&&I!==\"der\"&&(ge=M.fromCompact(V))}Se=h.fromHex(D)}catch{return!1}if(!ge||Z&&ge.hasHighS())return!1;z&&(P=t.hash(P));let{r:Ce,s:$e}=ge,je=G(P),Ot=m($e),Te=d(je*Ot),It=d(Ce*Ot),Gn=h.BASE.multiplyAndAddUnsafe(Se,Te,It)?.toAffine();return Gn?d(Gn.x)===Ce:!1}return{CURVE:t,getPublicKey:O,getSharedSecret:j,sign:H,verify:A,ProjectivePoint:h,Signature:M,utils:U}}function wft(e,t){let r=e.ORDER,n=Sl;for(let C=r-yn;C%w0===Sl;C/=w0)n+=yn;let o=n,s=w0<<o-yn-yn,u=s*w0,f=(r-yn)/u,d=(f-yn)/w0,m=u-yn,h=s,y=e.pow(t,f),v=e.pow(t,(f+yn)/w0),E=(C,B)=>{let R=y,M=e.pow(B,m),U=e.sqr(M);U=e.mul(U,B);let O=e.mul(C,U);O=e.pow(O,d),O=e.mul(O,M),M=e.mul(O,B),U=e.mul(O,C);let N=e.mul(U,M);O=e.pow(N,h);let j=e.eql(O,e.ONE);M=e.mul(U,v),O=e.mul(N,R),U=e.cmov(M,U,j),N=e.cmov(O,N,j);for(let K=o;K>yn;K--){let G=K-w0;G=w0<<G-yn;let J=e.pow(N,G),Y=e.eql(J,e.ONE);M=e.mul(U,R),R=e.mul(R,R),J=e.mul(N,R),U=e.cmov(M,U,Y),N=e.cmov(J,N,Y)}return{isValid:j,value:U}};if(e.ORDER%hG===pS){let C=(e.ORDER-pS)/hG,B=e.sqrt(e.neg(t));E=(R,M)=>{let U=e.sqr(M),O=e.mul(R,M);U=e.mul(U,O);let N=e.pow(U,C);N=e.mul(N,O);let j=e.mul(N,B),K=e.mul(e.sqr(N),M),G=e.eql(K,R),J=e.cmov(j,N,G);return{isValid:G,value:J}}}return E}function wde(e,t){if(CB(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error(\"mapToCurveSimpleSWU: invalid opts\");let r=wft(e,t.Z);if(!e.isOdd)throw new Error(\"Fp.isOdd is not implemented!\");return n=>{let o,s,u,f,d,m,h,y;o=e.sqr(n),o=e.mul(o,t.Z),s=e.sqr(o),s=e.add(s,o),u=e.add(s,e.ONE),u=e.mul(u,t.B),f=e.cmov(t.Z,e.neg(s),!e.eql(s,e.ZERO)),f=e.mul(f,t.A),s=e.sqr(u),m=e.sqr(f),d=e.mul(m,t.A),s=e.add(s,d),s=e.mul(s,u),m=e.mul(m,f),d=e.mul(m,t.B),s=e.add(s,d),h=e.mul(o,u);let{isValid:v,value:E}=r(s,m);y=e.mul(o,n),y=e.mul(y,E),h=e.cmov(h,u,v),y=e.cmov(y,E,v);let C=e.isOdd(n)===e.isOdd(y);y=e.cmov(e.neg(y),y,C);let B=qv(e,[f],!0)[0];return h=e.mul(h,B),{x:h,y}}}var mG,um,Sl,yn,w0,pS,hG,yG=x(()=>{c();gde();$v();z1();mG=class extends Error{constructor(t=\"\"){super(t)}},um={Err:mG,_tlv:{encode:(e,t)=>{let{Err:r}=um;if(e<0||e>256)throw new r(\"tlv.encode: wrong tag\");if(t.length&1)throw new r(\"tlv.encode: unpadded data\");let n=t.length/2,o=fS(n);if(o.length/2&128)throw new r(\"tlv.encode: long form length too big\");let s=n>127?fS(o.length/2|128):\"\";return fS(e)+s+o+t},decode(e,t){let{Err:r}=um,n=0;if(e<0||e>256)throw new r(\"tlv.encode: wrong tag\");if(t.length<2||t[n++]!==e)throw new r(\"tlv.decode: wrong tlv\");let o=t[n++],s=!!(o&128),u=0;if(!s)u=o;else{let d=o&127;if(!d)throw new r(\"tlv.decode(long): indefinite length not supported\");if(d>4)throw new r(\"tlv.decode(long): byte length is too big\");let m=t.subarray(n,n+d);if(m.length!==d)throw new r(\"tlv.decode: length bytes not complete\");if(m[0]===0)throw new r(\"tlv.decode(long): zero leftmost byte\");for(let h of m)u=u<<8|h;if(n+=d,u<128)throw new r(\"tlv.decode(long): not minimal encoding\")}let f=t.subarray(n,n+u);if(f.length!==u)throw new r(\"tlv.decode: wrong value length\");return{v:f,l:t.subarray(n+u)}}},_int:{encode(e){let{Err:t}=um;if(e<Sl)throw new t(\"integer: negative integers are not allowed\");let r=fS(e);if(Number.parseInt(r[0],16)&8&&(r=\"00\"+r),r.length&1)throw new t(\"unexpected DER parsing assertion: unpadded hex\");return r},decode(e){let{Err:t}=um;if(e[0]&128)throw new t(\"invalid signature integer: negative\");if(e[0]===0&&!(e[1]&128))throw new t(\"invalid signature integer: unnecessary leading zero\");return Ms(e)}},toSig(e){let{Err:t,_int:r,_tlv:n}=um,o=Go(\"signature\",e),{v:s,l:u}=n.decode(48,o);if(u.length)throw new t(\"invalid signature: left bytes after parsing\");let{v:f,l:d}=n.decode(2,s),{v:m,l:h}=n.decode(2,d);if(h.length)throw new t(\"invalid signature: left bytes after parsing\");return{r:r.decode(f),s:r.decode(m)}},hexFromSig(e){let{_tlv:t,_int:r}=um,n=t.encode(2,r.encode(e.r)),o=t.encode(2,r.encode(e.s)),s=n+o;return t.encode(48,s)}};Sl=BigInt(0),yn=BigInt(1),w0=BigInt(2),pS=BigInt(3),hG=BigInt(4)});function Eft(e){return{hash:e,hmac:(t,...r)=>lS(e,t,Bs(...r)),randomBytes:Zp}}function Gv(e,t){let r=n=>vde({...e,...Eft(n)});return{...r(t),create:r}}var bG=x(()=>{c();J$();wl();yG();});function E0(e,t){if(mS(e),mS(t),e<0||e>=1<<8*t)throw new Error(\"invalid I2OSP input: \"+e);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=e&255,e>>>=8;return new Uint8Array(r)}function Sft(e,t){let r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}function mS(e){if(!Number.isSafeInteger(e))throw new Error(\"number expected\")}function Cft(e,t,r,n){am(e),am(t),mS(r),t.length>255&&(t=n(Ki(AB(\"H2C-OVERSIZE-DST-\"),t)));let{outputLen:o,blockLen:s}=n,u=Math.ceil(r/o);if(r>65535||u>255)throw new Error(\"expand_message_xmd: invalid lenInBytes\");let f=Ki(t,E0(t.length,1)),d=E0(0,s),m=E0(r,2),h=new Array(u),y=n(Ki(d,e,m,E0(0,1),f));h[0]=n(Ki(y,E0(1,1),f));for(let E=1;E<=u;E++){let C=[Sft(y,h[E-1]),E0(E+1,1),f];h[E]=n(Ki(...C))}return Ki(...h).slice(0,r)}function Tft(e,t,r,n,o){if(am(e),am(t),mS(r),t.length>255){let s=Math.ceil(2*n/8);t=o.create({dkLen:s}).update(AB(\"H2C-OVERSIZE-DST-\")).update(t).digest()}if(r>65535||t.length>255)throw new Error(\"expand_message_xof: invalid lenInBytes\");return o.create({dkLen:r}).update(e).update(E0(r,2)).update(t).update(E0(t.length,1)).digest()}function Ede(e,t,r){sm(r,{DST:\"stringOrUint8Array\",p:\"bigint\",m:\"isSafeInteger\",k:\"isSafeInteger\",hash:\"hash\"});let{p:n,k:o,m:s,hash:u,expand:f,DST:d}=r;am(e),mS(t);let m=typeof d==\"string\"?AB(d):d,h=n.toString(2).length,y=Math.ceil((h+o)/8),v=t*s*y,E;if(f===\"xmd\")E=Cft(e,m,v,u);else if(f===\"xof\")E=Tft(e,m,v,o,u);else if(f===\"_internal_pass\")E=e;else throw new Error(\\'expand must be \"xmd\" or \"xof\"\\');let C=new Array(t);for(let B=0;B<t;B++){let R=new Array(s);for(let M=0;M<s;M++){let U=y*(M+B*s),O=E.subarray(U,U+y);R[M]=_o(Aft(O),n)}C[B]=R}return C}function Ade(e,t){let r=t.map(n=>Array.from(n).reverse());return(n,o)=>{let[s,u,f,d]=r.map(y=>y.reduce((v,E)=>e.add(e.mul(v,n),E))),[m,h]=qv(e,[u,d],!0);return n=e.mul(s,m),o=e.mul(o,e.mul(f,h)),{x:n,y:o}}}function Sde(e,t,r){if(typeof t!=\"function\")throw new Error(\"mapToCurve() must be defined\");function n(s){return e.fromAffine(t(s))}function o(s){let u=s.clearCofactor();return u.equals(e.ZERO)?e.ZERO:(u.assertValidity(),u)}return{defaults:r,hashToCurve(s,u){let f=Ede(s,2,{...r,DST:r.DST,...u}),d=n(f[0]),m=n(f[1]);return o(d.add(m))},encodeToCurve(s,u){let f=Ede(s,1,{...r,DST:r.encodeDST,...u});return o(n(f[0]))},mapToCurve(s){if(!Array.isArray(s))throw new Error(\"expected array of bigints\");for(let u of s)if(typeof u!=\"bigint\")throw new Error(\"expected array of bigints\");return o(n(s))}}}var Aft,Cde=x(()=>{c();$v();z1();Aft=Ms});var CG={};Wn(CG,{encodeToCurve:()=>Oft,hashToCurve:()=>Mft,schnorr:()=>Ift,secp256k1:()=>fi,secp256k1_hasher:()=>SG});function kde(e){let t=bS,r=BigInt(3),n=BigInt(6),o=BigInt(11),s=BigInt(22),u=BigInt(23),f=BigInt(44),d=BigInt(88),m=e*e*e%t,h=m*m*e%t,y=_c(h,r,t)*h%t,v=_c(y,r,t)*h%t,E=_c(v,_B,t)*m%t,C=_c(E,o,t)*E%t,B=_c(C,s,t)*C%t,R=_c(B,f,t)*B%t,M=_c(R,d,t)*R%t,U=_c(M,f,t)*B%t,O=_c(U,r,t)*h%t,N=_c(O,u,t)*C%t,j=_c(N,n,t)*m%t,K=_c(j,_B,t);if(!A0.eql(A0.sqr(K),e))throw new Error(\"Cannot find square root\");return K}function kB(e,...t){let r=_de[e];if(r===void 0){let n=Tc(Uint8Array.from(e,o=>o.charCodeAt(0)));r=Ki(n,n),_de[e]=r}return Tc(Ki(r,...t))}function vG(e){let t=fi.utils.normPrivateKeyToScalar(e),r=AG.fromPrivateKey(t);return{scalar:r.hasEvenY()?t:yS(-t),bytes:EG(r)}}function Bde(e){im(\"x\",e,hS,bS);let t=gG(e*e),r=gG(t*e+BigInt(7)),n=kde(r);n%_B!==wG&&(n=gG(-n));let o=new AG(e,n,hS);return o.assertValidity(),o}function Ide(...e){return yS(Vv(kB(\"BIP0340/challenge\",...e)))}function kft(e){return vG(e).bytes}function Bft(e,t,r=Zp(32)){let n=Go(\"message\",e),{bytes:o,scalar:s}=vG(t),u=Go(\"auxRand\",r,32),f=xG(s^Vv(kB(\"BIP0340/aux\",u))),d=kB(\"BIP0340/nonce\",f,o,n),m=yS(Vv(d));if(m===wG)throw new Error(\"sign failed: k is zero\");let{bytes:h,scalar:y}=vG(m),v=Ide(h,o,n),E=new Uint8Array(64);if(E.set(h,0),E.set(xG(yS(y+v*s)),32),!Pde(E,n,o))throw new Error(\"sign: Invalid signature produced\");return E}function Pde(e,t,r){let n=Go(\"signature\",e,64),o=Go(\"message\",t),s=Go(\"publicKey\",r,32);try{let u=Bde(Vv(s)),f=Vv(n.subarray(0,32));if(!H1(f,hS,bS))return!1;let d=Vv(n.subarray(32,64));if(!H1(d,hS,TB))return!1;let m=Ide(xG(f),EG(u),o),h=_ft(u,d,yS(-m));return!(!h||!h.hasEvenY()||h.toAffine().x!==f)}catch{return!1}}var bS,TB,wG,hS,_B,Tde,A0,fi,_de,EG,xG,gG,yS,AG,_ft,Vv,Ift,Pft,Rft,SG,Mft,Oft,S0=x(()=>{c();Lv();wl();bG();Cde();$v();z1();yG();bS=BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),TB=BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),wG=BigInt(0),hS=BigInt(1),_B=BigInt(2),Tde=(e,t)=>(e+t/_B)/t;A0=cm(bS,void 0,void 0,{sqrt:kde}),fi=Gv({a:wG,b:BigInt(7),Fp:A0,n:TB,Gx:BigInt(\"55066263022277343669578718895168534326250603453777594175500187360389116729240\"),Gy:BigInt(\"32670510020758816978083085130507043184471273380659243275938904335757337482424\"),h:BigInt(1),lowS:!0,endo:{beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),splitScalar:e=>{let t=TB,r=BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),n=-hS*BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\"),o=BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),s=r,u=BigInt(\"0x100000000000000000000000000000000\"),f=Tde(s*e,t),d=Tde(-n*e,t),m=_o(e-f*r-d*o,t),h=_o(-f*n-d*s,t),y=m>u,v=h>u;if(y&&(m=t-m),v&&(h=t-h),m>u||h>u)throw new Error(\"splitScalar: Endomorphism failed, k=\"+e);return{k1neg:y,k1:m,k2neg:v,k2:h}}}},Tc),_de={};EG=e=>e.toRawBytes(!0).slice(1),xG=e=>od(e,32),gG=e=>_o(e,bS),yS=e=>_o(e,TB),AG=fi.ProjectivePoint,_ft=(e,t,r)=>AG.BASE.multiplyAndAddUnsafe(e,t,r);Vv=Ms;Ift={getPublicKey:kft,sign:Bft,verify:Pde,utils:{randomPrivateKey:fi.utils.randomPrivateKey,lift_x:Bde,pointToBytes:EG,numberToBytesBE:od,bytesToNumberBE:Ms,taggedHash:kB,mod:_o}},Pft=Ade(A0,[[\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7\",\"0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581\",\"0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262\",\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c\"],[\"0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b\",\"0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"],[\"0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c\",\"0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3\",\"0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931\",\"0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84\"],[\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b\",\"0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573\",\"0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"]].map(e=>e.map(t=>BigInt(t)))),Rft=wde(A0,{A:BigInt(\"0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533\"),B:BigInt(\"1771\"),Z:A0.create(BigInt(\"-11\"))}),SG=Sde(fi.ProjectivePoint,e=>{let{x:t,y:r}=Rft(A0.create(e[0]));return Pft(t,r)},{DST:\"secp256k1_XMD:SHA-256_SSWU_RO_\",encodeDST:\"secp256k1_XMD:SHA-256_SSWU_NU_\",p:A0.ORDER,m:1,k:128,expand:\"xmd\",hash:Tc}),Mft=SG.hashToCurve,Oft=SG.encodeToCurve});async function Mde({hash:e,signature:t}){let r=Wr(e)?e:ot(e),{secp256k1:n}=await Promise.resolve().then(()=>(S0(),CG));return`0x${(()=>{if(typeof t==\"object\"&&\"r\"in t&&\"s\"in t){let{r:m,s:h,v:y,yParity:v}=t,E=Number(v??y),C=Rde(E);return new n.Signature(at(m),at(h)).addRecoveryBit(C)}let u=Wr(t)?t:ot(t);if($t(u)!==65)throw new Error(\"invalid signature length\");let f=Zr(`0x${u.slice(130)}`),d=Rde(f);return n.Signature.fromCompact(u.substring(2,130)).addRecoveryBit(d)})().recoverPublicKey(r.substring(2)).toHex(!1)}`}function Rde(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error(\"Invalid yParityOrV value\")}var Ode=x(()=>{c();au();ji();Zn();tt()});async function gS({hash:e,signature:t}){return Vfe(await Mde({hash:e,signature:t}))}var TG=x(()=>{c();Kfe();Ode()});function Qi(e,t=\"hex\"){let r=Nde(e),n=kv(new Uint8Array(r.length));return r.encode(n),t===\"hex\"?yr(n.bytes):n.bytes}function Nde(e){return Array.isArray(e)?Nft(e.map(t=>Nde(t))):Uft(e)}function Nft(e){let t=e.reduce((o,s)=>o+s.length,0),r=Ude(t);return{length:t<=55?1+t:1+r+t,encode(o){t<=55?o.pushByte(192+t):(o.pushByte(247+r),r===1?o.pushUint8(t):r===2?o.pushUint16(t):r===3?o.pushUint24(t):o.pushUint32(t));for(let{encode:s}of e)s(o)}}}function Uft(e){let t=typeof e==\"string\"?Jr(e):e,r=Ude(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(o){t.length===1&&t[0]<128?o.pushBytes(t):t.length<=55?(o.pushByte(128+t.length),o.pushBytes(t)):(o.pushByte(183+r),r===1?o.pushUint8(t.length):r===2?o.pushUint16(t.length):r===3?o.pushUint24(t.length):o.pushUint32(t.length),o.pushBytes(t))}}}function Ude(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new ae(\"Length is too large.\")}var Kv=x(()=>{c();ht();aB();bo();tt()});function Dde(e){let{chainId:t,nonce:r,to:n}=e,o=e.contractAddress??e.address,s=Gt(Cn([\"0x05\",Qi([t?le(t):\"0x\",o,r?le(r):\"0x\"])]));return n===\"bytes\"?Jr(s):s}var Hde=x(()=>{c();Jn();bo();tt();Kv();Is()});async function C0(e){let{authorization:t,signature:r}=e;return gS({hash:Dde(t),signature:r??t})}var xS=x(()=>{c();TG();Hde()});var BB,Lde=x(()=>{c();cB();b1();ht();Ac();BB=class extends ae{constructor(t,{account:r,docsPath:n,chain:o,data:s,gas:u,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:m,nonce:h,to:y,value:v}){let E=Jp({from:r?.address,to:y,value:typeof v<\"u\"&&`${Rv(v)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:s,gas:u,gasPrice:typeof f<\"u\"&&`${ao(f)} gwei`,maxFeePerGas:typeof d<\"u\"&&`${ao(d)} gwei`,maxPriorityFeePerGas:typeof m<\"u\"&&`${ao(m)} gwei`,nonce:h});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Estimate Gas Arguments:\",E].filter(Boolean),name:\"EstimateGasExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}});var lm,Os,Wv,Qv,Zv,Jv,Yv,Xv,ew,tw,lu,fu,fm=x(()=>{c();b1();ht();lm=class extends ae{constructor({cause:t,message:r}={}){let n=r?.replace(\"execution reverted: \",\"\")?.replace(\"execution reverted\",\"\");super(`Execution reverted ${n?`with reason: ${n}`:\"for an unknown reason\"}.`,{cause:t,name:\"ExecutionRevertedError\"})}};Object.defineProperty(lm,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(lm,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});Os=class extends ae{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`${r?` = ${ao(r)} gwei`:\"\"}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:\"FeeCapTooHighError\"})}};Object.defineProperty(Os,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\\\\^256-1|fee cap higher than 2\\\\^256-1/});Wv=class extends ae{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`${r?` = ${ao(r)}`:\"\"} gwei) cannot be lower than the block base fee.`,{cause:t,name:\"FeeCapTooLowError\"})}};Object.defineProperty(Wv,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});Qv=class extends ae{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:\"\"}is higher than the next one expected.`,{cause:t,name:\"NonceTooHighError\"})}};Object.defineProperty(Qv,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});Zv=class extends ae{constructor({cause:t,nonce:r}={}){super([`Nonce provided for the transaction ${r?`(${r}) `:\"\"}is lower than the current nonce of the account.`,\"Try increasing the nonce or find the latest nonce with `getTransactionCount`.\"].join(`\\n`),{cause:t,name:\"NonceTooLowError\"})}};Object.defineProperty(Zv,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});Jv=class extends ae{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:\"\"}exceeds the maximum allowed nonce.`,{cause:t,name:\"NonceMaxValueError\"})}};Object.defineProperty(Jv,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});Yv=class extends ae{constructor({cause:t}={}){super([\"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.\"].join(`\\n`),{cause:t,metaMessages:[\"This error could arise when the account does not have enough funds to:\",\" - pay for the total gas fee,\",\" - pay for the value to send.\",\" \",\"The cost of the transaction is calculated as `gas * gas fee + value`, where:\",\" - `gas` is the amount of gas needed for transaction to execute,\",\" - `gas fee` is the gas fee,\",\" - `value` is the amount of ether to send to the recipient.\"],name:\"InsufficientFundsError\"})}};Object.defineProperty(Yv,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});Xv=class extends ae{constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:\"\"}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:\"IntrinsicGasTooHighError\"})}};Object.defineProperty(Xv,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});ew=class extends ae{constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:\"\"}provided for the transaction is too low.`,{cause:t,name:\"IntrinsicGasTooLowError\"})}};Object.defineProperty(ew,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});tw=class extends ae{constructor({cause:t}){super(\"The transaction type is not supported for this chain.\",{cause:t,name:\"TransactionTypeNotSupportedError\"})}};Object.defineProperty(tw,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});lu=class extends ae{constructor({cause:t,maxPriorityFeePerGas:r,maxFeePerGas:n}={}){super([`The provided tip (\\\\`maxPriorityFeePerGas\\\\`${r?` = ${ao(r)} gwei`:\"\"}) cannot be higher than the fee cap (\\\\`maxFeePerGas\\\\`${n?` = ${ao(n)} gwei`:\"\"}).`].join(`\\n`),{cause:t,name:\"TipAboveFeeCapError\"})}};Object.defineProperty(lu,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});fu=class extends ae{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:\"UnknownNodeError\"})}}});function T0(e,t){let r=(e.details||\"\").toLowerCase(),n=e instanceof ae?e.walk(o=>o?.code===lm.code):e;return n instanceof ae?new lm({cause:e,message:n.details}):lm.nodeMessage.test(r)?new lm({cause:e,message:e.details}):Os.nodeMessage.test(r)?new Os({cause:e,maxFeePerGas:t?.maxFeePerGas}):Wv.nodeMessage.test(r)?new Wv({cause:e,maxFeePerGas:t?.maxFeePerGas}):Qv.nodeMessage.test(r)?new Qv({cause:e,nonce:t?.nonce}):Zv.nodeMessage.test(r)?new Zv({cause:e,nonce:t?.nonce}):Jv.nodeMessage.test(r)?new Jv({cause:e,nonce:t?.nonce}):Yv.nodeMessage.test(r)?new Yv({cause:e}):Xv.nodeMessage.test(r)?new Xv({cause:e,gas:t?.gas}):ew.nodeMessage.test(r)?new ew({cause:e,gas:t?.gas}):tw.nodeMessage.test(r)?new tw({cause:e}):lu.nodeMessage.test(r)?new lu({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new fu({cause:e})}var vS=x(()=>{c();ht();fm()});function zde(e,{docsPath:t,...r}){let n=(()=>{let o=T0(e,r);return o instanceof fu?e:o})();return new BB(n,{docsPath:t,...r})}var Fde=x(()=>{c();Lde();fm();vS()});function Ns(e,{format:t}){if(!t)return{};let r={};function n(s){let u=Object.keys(s);for(let f of u)f in e&&(r[f]=e[f]),s[f]&&typeof s[f]==\"object\"&&!Array.isArray(s[f])&&n(s[f])}let o=t(e||{});return n(o),r}var _0=x(()=>{c()});function k0(e,t){return({exclude:r,format:n})=>({exclude:r,format:(o,s)=>{let u=t(o,s);if(r)for(let f of r)delete u[f];return{...u,...n(o,s)}},type:e})}var wS=x(()=>{c()});function ko(e,t){let r={};return typeof e.authorizationList<\"u\"&&(r.authorizationList=Hft(e.authorizationList)),typeof e.accessList<\"u\"&&(r.accessList=e.accessList),typeof e.blobVersionedHashes<\"u\"&&(r.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<\"u\"&&(typeof e.blobs[0]!=\"string\"?r.blobs=e.blobs.map(n=>yr(n)):r.blobs=e.blobs),typeof e.data<\"u\"&&(r.data=e.data),e.account&&(r.from=e.account.address),typeof e.from<\"u\"&&(r.from=e.from),typeof e.gas<\"u\"&&(r.gas=le(e.gas)),typeof e.gasPrice<\"u\"&&(r.gasPrice=le(e.gasPrice)),typeof e.maxFeePerBlobGas<\"u\"&&(r.maxFeePerBlobGas=le(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<\"u\"&&(r.maxFeePerGas=le(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<\"u\"&&(r.maxPriorityFeePerGas=le(e.maxPriorityFeePerGas)),typeof e.nonce<\"u\"&&(r.nonce=le(e.nonce)),typeof e.to<\"u\"&&(r.to=e.to),typeof e.type<\"u\"&&(r.type=Dft[e.type]),typeof e.value<\"u\"&&(r.value=le(e.value)),r}function Hft(e){return e.map(t=>({address:t.address,r:t.r?le(BigInt(t.r)):t.r,s:t.s?le(BigInt(t.s)):t.s,chainId:le(t.chainId),nonce:le(t.nonce),...typeof t.yParity<\"u\"?{yParity:le(t.yParity)}:{},...typeof t.v<\"u\"&&typeof t.yParity>\"u\"?{v:le(t.v)}:{}}))}var Dft,rw,Us=x(()=>{c();tt();wS();Dft={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"};rw=k0(\"transactionRequest\",ko)});function jde(e){if(!(!e||e.length===0))return e.reduce((t,{slot:r,value:n})=>{if(r.length!==66)throw new ZA({size:r.length,targetSize:66,type:\"hex\"});if(n.length!==66)throw new ZA({size:n.length,targetSize:66,type:\"hex\"});return t[r]=n,t},{})}function Lft(e){let{balance:t,nonce:r,state:n,stateDiff:o,code:s}=e,u={};if(s!==void 0&&(u.code=s),t!==void 0&&(u.balance=le(t)),r!==void 0&&(u.nonce=le(r)),n!==void 0&&(u.state=jde(n)),o!==void 0){if(u.state)throw new lB;u.stateDiff=jde(o)}return u}function B0(e){if(!e)return;let t={};for(let{address:r,...n}of e){if(!wt(r,{strict:!1}))throw new vr({address:r});if(t[r])throw new uB({address:r});t[r]=Lft(n)}return t}var ES=x(()=>{c();Ec();z9();Q$();ui();tt()});var bLt,gLt,xLt,vLt,wLt,ELt,ALt,SLt,CLt,TLt,_Lt,kLt,BLt,ILt,PLt,RLt,MLt,OLt,NLt,ULt,DLt,HLt,LLt,zLt,FLt,jLt,qLt,$Lt,GLt,VLt,KLt,WLt,QLt,ZLt,JLt,YLt,XLt,ezt,tzt,rzt,nzt,ozt,azt,izt,szt,czt,uzt,lzt,fzt,dzt,pzt,mzt,hzt,yzt,bzt,gzt,xzt,vzt,wzt,Ezt,Azt,Szt,Czt,Tzt,_zt,qde,kzt,Bzt,Izt,Pzt,Rzt,Mzt,Ozt,Nzt,Uzt,Dzt,Hzt,Lzt,zzt,Fzt,jzt,qzt,$zt,Gzt,Vzt,Kzt,Wzt,Qzt,Zzt,Jzt,Yzt,Xzt,eFt,tFt,rFt,ad,nw=x(()=>{c();bLt=2n**(8n-1n)-1n,gLt=2n**(16n-1n)-1n,xLt=2n**(24n-1n)-1n,vLt=2n**(32n-1n)-1n,wLt=2n**(40n-1n)-1n,ELt=2n**(48n-1n)-1n,ALt=2n**(56n-1n)-1n,SLt=2n**(64n-1n)-1n,CLt=2n**(72n-1n)-1n,TLt=2n**(80n-1n)-1n,_Lt=2n**(88n-1n)-1n,kLt=2n**(96n-1n)-1n,BLt=2n**(104n-1n)-1n,ILt=2n**(112n-1n)-1n,PLt=2n**(120n-1n)-1n,RLt=2n**(128n-1n)-1n,MLt=2n**(136n-1n)-1n,OLt=2n**(144n-1n)-1n,NLt=2n**(152n-1n)-1n,ULt=2n**(160n-1n)-1n,DLt=2n**(168n-1n)-1n,HLt=2n**(176n-1n)-1n,LLt=2n**(184n-1n)-1n,zLt=2n**(192n-1n)-1n,FLt=2n**(200n-1n)-1n,jLt=2n**(208n-1n)-1n,qLt=2n**(216n-1n)-1n,$Lt=2n**(224n-1n)-1n,GLt=2n**(232n-1n)-1n,VLt=2n**(240n-1n)-1n,KLt=2n**(248n-1n)-1n,WLt=2n**(256n-1n)-1n,QLt=-(2n**(8n-1n)),ZLt=-(2n**(16n-1n)),JLt=-(2n**(24n-1n)),YLt=-(2n**(32n-1n)),XLt=-(2n**(40n-1n)),ezt=-(2n**(48n-1n)),tzt=-(2n**(56n-1n)),rzt=-(2n**(64n-1n)),nzt=-(2n**(72n-1n)),ozt=-(2n**(80n-1n)),azt=-(2n**(88n-1n)),izt=-(2n**(96n-1n)),szt=-(2n**(104n-1n)),czt=-(2n**(112n-1n)),uzt=-(2n**(120n-1n)),lzt=-(2n**(128n-1n)),fzt=-(2n**(136n-1n)),dzt=-(2n**(144n-1n)),pzt=-(2n**(152n-1n)),mzt=-(2n**(160n-1n)),hzt=-(2n**(168n-1n)),yzt=-(2n**(176n-1n)),bzt=-(2n**(184n-1n)),gzt=-(2n**(192n-1n)),xzt=-(2n**(200n-1n)),vzt=-(2n**(208n-1n)),wzt=-(2n**(216n-1n)),Ezt=-(2n**(224n-1n)),Azt=-(2n**(232n-1n)),Szt=-(2n**(240n-1n)),Czt=-(2n**(248n-1n)),Tzt=-(2n**(256n-1n)),_zt=2n**8n-1n,qde=2n**16n-1n,kzt=2n**24n-1n,Bzt=2n**32n-1n,Izt=2n**40n-1n,Pzt=2n**48n-1n,Rzt=2n**56n-1n,Mzt=2n**64n-1n,Ozt=2n**72n-1n,Nzt=2n**80n-1n,Uzt=2n**88n-1n,Dzt=2n**96n-1n,Hzt=2n**104n-1n,Lzt=2n**112n-1n,zzt=2n**120n-1n,Fzt=2n**128n-1n,jzt=2n**136n-1n,qzt=2n**144n-1n,$zt=2n**152n-1n,Gzt=2n**160n-1n,Vzt=2n**168n-1n,Kzt=2n**176n-1n,Wzt=2n**184n-1n,Qzt=2n**192n-1n,Zzt=2n**200n-1n,Jzt=2n**208n-1n,Yzt=2n**216n-1n,Xzt=2n**224n-1n,eFt=2n**232n-1n,tFt=2n**240n-1n,rFt=2n**248n-1n,ad=2n**256n-1n});function Vo(e){let{account:t,maxFeePerGas:r,maxPriorityFeePerGas:n,to:o}=e,s=t?Xe(t):void 0;if(s&&!wt(s.address))throw new vr({address:s.address});if(o&&!wt(o))throw new vr({address:o});if(r&&r>ad)throw new Os({maxFeePerGas:r});if(n&&r&&n>r)throw new lu({maxFeePerGas:r,maxPriorityFeePerGas:n})}var Cl=x(()=>{c();Yr();nw();Ec();fm();ui()});var ow,I0,IB,AS=x(()=>{c();b1();ht();ow=class extends ae{constructor(){super(\"`baseFeeMultiplier` must be greater than 1.\",{name:\"BaseFeeScalarError\"})}},I0=class extends ae{constructor(){super(\"Chain does not support EIP-1559 fees.\",{name:\"Eip1559FeesNotSupportedError\"})}},IB=class extends ae{constructor({maxPriorityFeePerGas:t}){super(`\\\\`maxFeePerGas\\\\` cannot be less than the \\\\`maxPriorityFeePerGas\\\\` (${ao(t)} gwei).`,{name:\"MaxFeePerGasTooLowError\"})}}});var aw,_G=x(()=>{c();ht();aw=class extends ae{constructor({blockHash:t,blockNumber:r}){let n=\"Block\";t&&(n=`Block at hash \"${t}\"`),r&&(n=`Block at number \"${r}\"`),super(`${n} could not be found.`,{name:\"BlockNotFoundError\"})}}});function kc(e,t){let r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...e.blockTimestamp!=null&&{blockTimestamp:BigInt(e.blockTimestamp)},chainId:e.chainId?Zr(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?Zr(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?kG[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(r.authorizationList=zft(e.authorizationList)),r.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof r.v==\"bigint\"){if(r.v===0n||r.v===27n)return 0;if(r.v===1n||r.v===28n)return 1;if(r.v>=35n)return r.v%2n===0n?1:0}})(),r.type===\"legacy\"&&(delete r.accessList,delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.yParity),r.type===\"eip2930\"&&(delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r.type===\"eip1559\"&&delete r.maxFeePerBlobGas,r}function zft(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}var kG,P0,id=x(()=>{c();Zn();wS();kG={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"};P0=k0(\"transaction\",kc)});function SS(e,t){let r=(e.transactions??[]).map(n=>typeof n==\"string\"?n:kc(n));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}var iw,sw=x(()=>{c();wS();id();iw=k0(\"block\",SS)});async function xa(e,{blockHash:t,blockNumber:r,blockTag:n=e.experimental_blockTag??\"latest\",includeTransactions:o}={}){let s=o??!1,u=r!==void 0?le(r):void 0,f=null;if(t?f=await e.request({method:\"eth_getBlockByHash\",params:[t,s]},{dedupe:!0}):f=await e.request({method:\"eth_getBlockByNumber\",params:[u||n,s]},{dedupe:!!u}),!f)throw new aw({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||SS)(f,\"getBlock\")}var R0=x(()=>{c();_G();tt();sw()});async function cw(e){let t=await e.request({method:\"eth_gasPrice\"});return BigInt(t)}var PB=x(()=>{c()});async function $de(e,t){return BG(e,t)}async function BG(e,t){let{block:r,chain:n=e.chain,request:o}=t||{};try{let s=n?.fees?.maxPriorityFeePerGas??n?.fees?.defaultPriorityFee;if(typeof s==\"function\"){let f=r||await Ae(e,xa,\"getBlock\")({}),d=await s({block:f,client:e,request:o});if(d===null)throw new Error;return d}if(typeof s<\"u\")return s;let u=await e.request({method:\"eth_maxPriorityFeePerGas\"});return at(u)}catch{let[s,u]=await Promise.all([r?Promise.resolve(r):Ae(e,xa,\"getBlock\")({}),Ae(e,cw,\"getGasPrice\")({})]);if(typeof s.baseFeePerGas!=\"bigint\")throw new I0;let f=u-s.baseFeePerGas;return f<0n?0n:f}}var IG=x(()=>{c();AS();Zn();Zt();R0();PB()});async function RB(e,t){return MB(e,t)}async function MB(e,t){let{block:r,chain:n=e.chain,request:o,type:s=\"eip1559\"}=t||{},u=await(async()=>typeof n?.fees?.baseFeeMultiplier==\"function\"?n.fees.baseFeeMultiplier({block:r,client:e,request:o}):n?.fees?.baseFeeMultiplier??1.2)();if(u<1)throw new ow;let d=10**(u.toString().split(\".\")[1]?.length??0),m=v=>v*BigInt(Math.ceil(u*d))/BigInt(d),h=r||await Ae(e,xa,\"getBlock\")({});if(typeof n?.fees?.estimateFeesPerGas==\"function\"){let v=await n.fees.estimateFeesPerGas({block:r,client:e,multiply:m,request:o,type:s});if(v!==null)return v}if(s===\"eip1559\"){if(typeof h.baseFeePerGas!=\"bigint\")throw new I0;let v=typeof o?.maxPriorityFeePerGas==\"bigint\"?o.maxPriorityFeePerGas:await BG(e,{block:h,chain:n,request:o}),E=m(h.baseFeePerGas);return{maxFeePerGas:o?.maxFeePerGas??E+v,maxPriorityFeePerGas:v}}return{gasPrice:o?.gasPrice??m(await Ae(e,cw,\"getGasPrice\")({}))}}var OB=x(()=>{c();AS();Zt();IG();R0();PB()});async function M0(e,{address:t,blockTag:r=\"latest\",blockNumber:n}){let o=await e.request({method:\"eth_getTransactionCount\",params:[t,typeof n==\"bigint\"?le(n):r]},{dedupe:!!n});return Zr(o)}var CS=x(()=>{c();Zn();tt()});function uw(e){let{kzg:t}=e,r=e.to??(typeof e.blobs[0]==\"string\"?\"hex\":\"bytes\"),n=typeof e.blobs[0]==\"string\"?e.blobs.map(s=>Jr(s)):e.blobs,o=[];for(let s of n)o.push(Uint8Array.from(t.blobToKzgCommitment(s)));return r===\"bytes\"?o:o.map(s=>yr(s))}var NB=x(()=>{c();bo();tt()});function lw(e){let{kzg:t}=e,r=e.to??(typeof e.blobs[0]==\"string\"?\"hex\":\"bytes\"),n=typeof e.blobs[0]==\"string\"?e.blobs.map(u=>Jr(u)):e.blobs,o=typeof e.commitments[0]==\"string\"?e.commitments.map(u=>Jr(u)):e.commitments,s=[];for(let u=0;u<n.length;u++){let f=n[u],d=o[u];s.push(Uint8Array.from(t.computeBlobKzgProof(f,d)))}return r===\"bytes\"?s:s.map(u=>yr(u))}var UB=x(()=>{c();bo();tt()});var O0,TS=x(()=>{c();Lv();O0=Tc});function DB(e,t){let r=t||\"hex\",n=O0(Wr(e,{strict:!1})?Ha(e):e);return r===\"bytes\"?n:ot(n)}var PG=x(()=>{c();TS();au();bo();tt()});function Gde(e){let{commitment:t,version:r=1}=e,n=e.to??(typeof t==\"string\"?\"hex\":\"bytes\"),o=DB(t,\"bytes\");return o.set([r],0),n===\"bytes\"?o:yr(o)}var Vde=x(()=>{c();tt();PG()});function HB(e){let{commitments:t,version:r}=e,n=e.to??(typeof t[0]==\"string\"?\"hex\":\"bytes\"),o=[];for(let s of t)o.push(Gde({commitment:s,to:n,version:r}));return o}var RG=x(()=>{c();Vde()});var LB,fw,zB,FB,MG=x(()=>{c();ht();LB=class extends ae{constructor({maxSize:t,size:r}){super(\"Blob size is too large.\",{metaMessages:[`Max: ${t} bytes`,`Given: ${r} bytes`],name:\"BlobSizeTooLargeError\"})}},fw=class extends ae{constructor(){super(\"Blob data must not be empty.\",{name:\"EmptyBlobError\"})}},zB=class extends ae{constructor({hash:t,size:r}){super(`Versioned hash \"${t}\" size is invalid.`,{metaMessages:[\"Expected: 32\",`Received: ${r}`],name:\"InvalidVersionedHashSizeError\"})}},FB=class extends ae{constructor({hash:t,version:r}){super(`Versioned hash \"${t}\" version is invalid.`,{metaMessages:[`Expected: ${1}`,`Received: ${r}`],name:\"InvalidVersionedHashVersionError\"})}}});function Kde(e){let t=e.to??(typeof e.data==\"string\"?\"hex\":\"bytes\"),r=typeof e.data==\"string\"?Jr(e.data):e.data,n=$t(r);if(!n)throw new fw;if(n>761855)throw new LB({maxSize:761855,size:n});let o=[],s=!0,u=0;for(;s;){let f=kv(new Uint8Array(131072)),d=0;for(;d<4096;){let m=r.slice(u,u+31);if(f.pushByte(0),f.pushBytes(m),m.length<31){f.pushByte(128),s=!1;break}d++,u+=31}o.push(f)}return t===\"bytes\"?o.map(f=>f.bytes):o.map(f=>yr(f.bytes))}var Wde=x(()=>{c();MG();aB();ji();bo();tt()});function jB(e){let{data:t,kzg:r,to:n}=e,o=e.blobs??Kde({data:t,to:n}),s=e.commitments??uw({blobs:o,kzg:r,to:n}),u=e.proofs??lw({blobs:o,commitments:s,kzg:r,to:n}),f=[];for(let d=0;d<o.length;d++)f.push({blob:o[d],commitment:s[d],proof:u[d]});return f}var OG=x(()=>{c();NB();UB();Wde()});function dw(e){if(e.type)return e.type;if(typeof e.authorizationList<\"u\")return\"eip7702\";if(typeof e.blobs<\"u\"||typeof e.blobVersionedHashes<\"u\"||typeof e.maxFeePerBlobGas<\"u\"||typeof e.sidecars<\"u\")return\"eip4844\";if(typeof e.maxFeePerGas<\"u\"||typeof e.maxPriorityFeePerGas<\"u\")return\"eip1559\";if(typeof e.gasPrice<\"u\")return typeof e.accessList<\"u\"?\"eip2930\":\"legacy\";throw new dB({transaction:e})}var qB=x(()=>{c();Ac()});function N0(e,{docsPath:t,...r}){let n=(()=>{let o=T0(e,r);return o instanceof fu?e:o})();return new mB(n,{docsPath:t,...r})}var _S=x(()=>{c();fm();Ac();vS()});async function Ko(e){let t=await e.request({method:\"eth_chainId\"},{dedupe:!0});return Zr(t)}var Tl=x(()=>{c();Zn()});async function pw(e,t){let{account:r=e.account,accessList:n,authorizationList:o,chain:s=e.chain,blobVersionedHashes:u,blobs:f,data:d,gas:m,gasPrice:h,maxFeePerBlobGas:y,maxFeePerGas:v,maxPriorityFeePerGas:E,nonce:C,nonceManager:B,to:R,type:M,value:U,...O}=t,N=await(async()=>{if(!r||!B||typeof C<\"u\")return C;let J=Xe(r),Y=s?s.id:await Ae(e,Ko,\"getChainId\")({});return await B.consume({address:J.address,chainId:Y,client:e})})();Vo(t);let j=s?.formatters?.transactionRequest?.format,G=(j||ko)({...Ns(O,{format:j}),account:r?Xe(r):void 0,accessList:n,authorizationList:o,blobs:f,blobVersionedHashes:u,data:d,gas:m,gasPrice:h,maxFeePerBlobGas:y,maxFeePerGas:v,maxPriorityFeePerGas:E,nonce:N,to:R,type:M,value:U},\"fillTransaction\");try{let J=await e.request({method:\"eth_fillTransaction\",params:[G]}),W=(s?.formatters?.transaction?.format||kc)(J.tx);delete W.blockHash,delete W.blockNumber,delete W.r,delete W.s,delete W.transactionIndex,delete W.v,delete W.yParity,W.data=W.input,W.gas&&(W.gas=t.gas??W.gas),W.gasPrice&&(W.gasPrice=t.gasPrice??W.gasPrice),W.maxFeePerBlobGas&&(W.maxFeePerBlobGas=t.maxFeePerBlobGas??W.maxFeePerBlobGas),W.maxFeePerGas&&(W.maxFeePerGas=t.maxFeePerGas??W.maxFeePerGas),W.maxPriorityFeePerGas&&(W.maxPriorityFeePerGas=t.maxPriorityFeePerGas??W.maxPriorityFeePerGas),typeof W.nonce<\"u\"&&(W.nonce=t.nonce??W.nonce);let ie=await(async()=>{if(typeof s?.fees?.baseFeeMultiplier==\"function\"){let T=await Ae(e,xa,\"getBlock\")({});return s.fees.baseFeeMultiplier({block:T,client:e,request:t})}return s?.fees?.baseFeeMultiplier??1.2})();if(ie<1)throw new ow;let H=10**(ie.toString().split(\".\")[1]?.length??0),A=T=>T*BigInt(Math.ceil(ie*H))/BigInt(H);return W.feePayerSignature||(W.maxFeePerGas&&!t.maxFeePerGas&&(W.maxFeePerGas=A(W.maxFeePerGas)),W.gasPrice&&!t.gasPrice&&(W.gasPrice=A(W.gasPrice))),{raw:J.raw,transaction:{from:G.from,...W},...J.capabilities?{capabilities:J.capabilities}:{}}}catch(J){throw N0(J,{...t,chain:e.chain})}}var $B=x(()=>{c();Yr();AS();_S();_0();id();Us();Zt();Cl();R0();Tl()});async function sd(e,t){let r=t;r.account??(r.account=e.account),r.parameters??(r.parameters=kS);let{account:n,chain:o=e.chain,nonceManager:s,parameters:u}=r,f=(()=>{if(typeof o?.prepareTransactionRequest==\"function\")return{fn:o.prepareTransactionRequest,runAt:[\"beforeFillTransaction\"]};if(Array.isArray(o?.prepareTransactionRequest))return{fn:o.prepareTransactionRequest[0],runAt:o.prepareTransactionRequest[1].runAt}})(),d;async function m(){return d||(typeof r.chainId<\"u\"?r.chainId:o?o.id:(d=await Ae(e,Ko,\"getChainId\")({}),d))}let h=n&&Xe(n),y=r.nonce;if(u.includes(\"nonce\")&&typeof y>\"u\"&&h&&s){let N=await m();y=await s.consume({address:h.address,chainId:N,client:e})}f?.fn&&f.runAt?.includes(\"beforeFillTransaction\")&&(r=await f.fn({...r,chain:o},{phase:\"beforeFillTransaction\"}),y??(y=r.nonce));let E=((u.includes(\"blobVersionedHashes\")||u.includes(\"sidecars\"))&&r.kzg&&r.blobs||NG.get(e.uid)===!1||![\"fees\",\"gas\"].some(j=>u.includes(j))?!1:!!(u.includes(\"chainId\")&&typeof r.chainId!=\"number\"||u.includes(\"nonce\")&&typeof y!=\"number\"||u.includes(\"fees\")&&typeof r.gasPrice!=\"bigint\"&&(typeof r.maxFeePerGas!=\"bigint\"||typeof r.maxPriorityFeePerGas!=\"bigint\")||u.includes(\"gas\")&&typeof r.gas!=\"bigint\"))?await Ae(e,pw,\"fillTransaction\")({...r,nonce:y}).then(N=>{let{chainId:j,from:K,gas:G,gasPrice:J,nonce:Y,maxFeePerBlobGas:W,maxFeePerGas:ie,maxPriorityFeePerGas:re,type:H,...A}=N.transaction;return NG.set(e.uid,!0),{...r,...K?{from:K}:{},...H&&!r.type?{type:H}:{},...typeof j<\"u\"?{chainId:j}:{},...typeof G<\"u\"?{gas:G}:{},...typeof J<\"u\"?{gasPrice:J}:{},...typeof Y<\"u\"?{nonce:Y}:{},...typeof W<\"u\"&&r.type!==\"legacy\"&&r.type!==\"eip2930\"?{maxFeePerBlobGas:W}:{},...typeof ie<\"u\"&&r.type!==\"legacy\"&&r.type!==\"eip2930\"?{maxFeePerGas:ie}:{},...typeof re<\"u\"&&r.type!==\"legacy\"&&r.type!==\"eip2930\"?{maxPriorityFeePerGas:re}:{},...\"nonceKey\"in A&&typeof A.nonceKey<\"u\"?{nonceKey:A.nonceKey}:{},...\"keyAuthorization\"in A&&typeof A.keyAuthorization<\"u\"&&A.keyAuthorization!==null&&!(\"keyAuthorization\"in r)?{keyAuthorization:A.keyAuthorization}:{},...\"feePayerSignature\"in A&&typeof A.feePayerSignature<\"u\"&&A.feePayerSignature!==null?{feePayerSignature:A.feePayerSignature}:{},...\"feeToken\"in A&&typeof A.feeToken<\"u\"&&A.feeToken!==null&&!(\"feeToken\"in r)?{feeToken:A.feeToken}:{},...N.capabilities?{_capabilities:N.capabilities}:{}}}).catch(N=>{let j=N;if(j.name!==\"TransactionExecutionError\")return r;if(j.walk?.(J=>J.name===\"ExecutionRevertedError\"))throw N;return j.walk?.(J=>{let Y=J;return Y.name===\"MethodNotFoundRpcError\"||Y.name===\"MethodNotSupportedRpcError\"||Y.message?.includes(\"eth_fillTransaction is not available\")})&&NG.set(e.uid,!1),r}):r;y??(y=E.nonce),r={...E,...h?{from:h?.address}:{},...typeof y<\"u\"?{nonce:y}:{}};let{blobs:C,gas:B,kzg:R,type:M}=r;f?.fn&&f.runAt?.includes(\"beforeFillParameters\")&&(r=await f.fn({...r,chain:o},{phase:\"beforeFillParameters\"}));let U;async function O(){return U||(U=await Ae(e,xa,\"getBlock\")({blockTag:\"latest\"}),U)}if(u.includes(\"nonce\")&&typeof y>\"u\"&&h&&!s&&(r.nonce=await Ae(e,M0,\"getTransactionCount\")({address:h.address,blockTag:\"pending\"})),(u.includes(\"blobVersionedHashes\")||u.includes(\"sidecars\"))&&C&&R){let N=uw({blobs:C,kzg:R});if(u.includes(\"blobVersionedHashes\")){let j=HB({commitments:N,to:\"hex\"});r.blobVersionedHashes=j}if(u.includes(\"sidecars\")){let j=lw({blobs:C,commitments:N,kzg:R}),K=jB({blobs:C,commitments:N,proofs:j,to:\"hex\"});r.sidecars=K}}if(u.includes(\"chainId\")&&(r.chainId=await m()),(u.includes(\"fees\")||u.includes(\"type\"))&&typeof M>\"u\")try{r.type=dw(r)}catch{let N=Qde.get(e.uid);typeof N>\"u\"&&(N=typeof(await O())?.baseFeePerGas==\"bigint\",Qde.set(e.uid,N)),r.type=N?\"eip1559\":\"legacy\"}if(u.includes(\"fees\"))if(r.type!==\"legacy\"&&r.type!==\"eip2930\"){if(typeof r.maxFeePerGas>\"u\"||typeof r.maxPriorityFeePerGas>\"u\"){let N=await O(),{maxFeePerGas:j,maxPriorityFeePerGas:K}=await MB(e,{block:N,chain:o,request:r});if(typeof r.maxPriorityFeePerGas>\"u\"&&r.maxFeePerGas&&r.maxFeePerGas<K)throw new IB({maxPriorityFeePerGas:K});r.maxPriorityFeePerGas=K,r.maxFeePerGas=j}}else{if(typeof r.maxFeePerGas<\"u\"||typeof r.maxPriorityFeePerGas<\"u\")throw new I0;if(typeof r.gasPrice>\"u\"){let N=await O(),{gasPrice:j}=await MB(e,{block:N,chain:o,request:r,type:\"legacy\"});r.gasPrice=j}}return u.includes(\"gas\")&&typeof B>\"u\"&&(r.gas=await Ae(e,hw,\"estimateGas\")({...r,account:h,prepare:h?.type===\"local\"?[]:[\"blobVersionedHashes\"]})),f?.fn&&f.runAt?.includes(\"afterFillParameters\")&&(r=await f.fn({...r,chain:o},{phase:\"afterFillParameters\"})),Vo(r),delete r.parameters,r}var kS,Qde,NG,mw=x(()=>{c();Yr();OB();GB();R0();CS();AS();NB();UB();RG();OG();Zt();d0();Cl();qB();$B();Tl();kS=[\"blobVersionedHashes\",\"chainId\",\"fees\",\"gas\",\"nonce\",\"type\"],Qde=new Map,NG=new ci(128)});async function hw(e,t){let{account:r=e.account,prepare:n=!0}=t,o=r?Xe(r):void 0,s=(()=>{if(Array.isArray(n))return n;if(o?.type!==\"local\")return[\"blobVersionedHashes\"]})();try{let u=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await C0({authorization:t.authorizationList[0]}).catch(()=>{throw new ae(\"`to` is required. Could not infer from `authorizationList`\")})})(),{accessList:f,authorizationList:d,blobs:m,blobVersionedHashes:h,blockNumber:y,blockTag:v,data:E,gas:C,gasPrice:B,maxFeePerBlobGas:R,maxFeePerGas:M,maxPriorityFeePerGas:U,nonce:O,value:N,stateOverride:j,...K}=n?await sd(e,{...t,parameters:s,to:u}):t;if(C&&t.gas!==C)return C;let J=(typeof y==\"bigint\"?le(y):void 0)||v,Y=B0(j);Vo(t);let W=e.chain?.formatters?.transactionRequest?.format,re=(W||ko)({...Ns(K,{format:W}),account:o,accessList:f,authorizationList:d,blobs:m,blobVersionedHashes:h,data:E,gasPrice:B,maxFeePerBlobGas:R,maxFeePerGas:M,maxPriorityFeePerGas:U,nonce:O,to:u,value:N},\"estimateGas\");return BigInt(await e.request({method:\"eth_estimateGas\",params:Y?[re,J??e.experimental_blockTag??\"latest\",Y]:J?[re,J]:[re]}))}catch(u){throw zde(u,{...t,account:o,chain:e.chain})}}var GB=x(()=>{c();Yr();ht();xS();tt();Fde();_0();Us();ES();Cl();mw()});async function Zde(e,t){let{abi:r,address:n,args:o,functionName:s,dataSuffix:u=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,...f}=t,d=Ct({abi:r,args:o,functionName:s});try{return await Ae(e,hw,\"estimateGas\")({data:`${d}${u?u.replace(\"0x\",\"\"):\"\"}`,to:n,...f})}catch(m){let h=f.account?Xe(f.account):void 0;throw Cc(m,{abi:r,address:n,args:o,docsPath:\"/docs/contract/estimateContractGas\",functionName:s,sender:h?.address})}}var Jde=x(()=>{c();Yr();za();D1();Zt();GB()});function di(e,t){if(!wt(e,{strict:!1}))throw new vr({address:e});if(!wt(t,{strict:!1}))throw new vr({address:t});return e.toLowerCase()===t.toLowerCase()}var U0=x(()=>{c();Ec();ui()});function go(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}var _l=x(()=>{c()});function j1(e){let{abi:t,data:r,strict:n,topics:o}=e,s=n??!0,[u,...f]=o;if(!u)throw new R9({docsPath:Yde});let d=t.find(M=>M.type===\"event\"&&u===f0(sa(M)));if(!(d&&\"name\"in d)||d.type!==\"event\")throw new M9(u,{docsPath:Yde});let{name:m,inputs:h}=d,y=h?.some(M=>!(\"name\"in M&&M.name)),v=y?[]:{},E=h.map((M,U)=>[M,U]).filter(([M])=>\"indexed\"in M&&M.indexed),C=[];for(let M=0;M<E.length;M++){let[U,O]=E[M],N=f[M];if(!N){if(s)throw new i0({abiItem:d,param:U});C.push([U,O]);continue}v[y?O:U.name||O]=qft({param:U,value:N})}let B=h.filter(M=>!(\"indexed\"in M&&M.indexed)),R=s?B:[...C.map(([M])=>M),...B];if(R.length>0){if(r&&r!==\"0x\")try{let M=Rs(R,r);if(M){let U=0;if(!s)for(let[O,N]of C)v[y?N:O.name||N]=M[U++];if(y)for(let O=0;O<h.length;O++)v[O]===void 0&&U<M.length&&(v[O]=M[U++]);else for(let O=0;O<B.length;O++)v[B[O].name]=M[U++]}}catch(M){if(s)throw M instanceof yv||M instanceof _v?new $p({abiItem:d,data:r,params:R,size:$t(r)}):M}else if(s)throw new $p({abiItem:d,data:\"0x\",params:R,size:0})}return{eventName:m,args:Object.values(v).length>0?v:void 0}}function qft({param:e,value:t}){return e.type===\"string\"||e.type===\"bytes\"||e.type===\"tuple\"||e.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/)?t:(Rs([e],t)||[])[0]}var Yde,VB=x(()=>{c();yo();G$();ji();rS();Iv();qp();Yde=\"/docs/contract/decodeEventLog\"});function cd(e){let{abi:t,args:r,logs:n,strict:o=!0}=e,s=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),u=t.filter(f=>f.type===\"event\").map(f=>({abi:f,selector:f0(f)}));return n.map(f=>{let d=typeof f.blockNumber==\"string\"?go(f):f,m=u.filter(v=>d.topics[0]===v.selector);if(m.length===0)return null;let h,y;for(let v of m)try{h=j1({...d,abi:[v.abi],strict:!0}),y=v;break}catch{}if(!h&&!o){y=m[0];try{h=j1({data:d.data,topics:d.topics,abi:[y.abi],strict:!1})}catch{let v=y.abi.inputs?.some(E=>!(\"name\"in E&&E.name));return{...d,args:v?[]:{},eventName:y.abi.name}}}return!h||!y||s&&!s.includes(h.eventName)||!$ft({args:h.args,inputs:y.abi.inputs,matchArgs:r})?null:{...h,...d}}).filter(Boolean)}function $ft(e){let{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;if(!t)return!1;function o(s,u,f){try{return s.type===\"address\"?di(u,f):s.type===\"string\"||s.type===\"bytes\"?Gt(Ha(u))===f:u===f}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((s,u)=>{if(s==null)return!0;let f=r[u];return f?(Array.isArray(s)?s:[s]).some(m=>o(f,m,t[u])):!1}):typeof t==\"object\"&&!Array.isArray(t)&&typeof n==\"object\"&&!Array.isArray(n)?Object.entries(n).every(([s,u])=>{if(u==null)return!0;let f=r.find(m=>m.name===s);return f?(Array.isArray(u)?u:[u]).some(m=>o(f,m,t[s])):!1}):!1}var BS=x(()=>{c();U0();bo();_l();Is();rS();VB()});async function yw(e,{address:t,blockHash:r,fromBlock:n,toBlock:o,event:s,events:u,args:f,strict:d}={}){let m=d??!1,h=u??(s?[s]:void 0),y=[];h&&(y=[h.flatMap(B=>ed({abi:[B],eventName:B.name,args:u?void 0:f}))],s&&(y=y[0]));let v;r?v=await e.request({method:\"eth_getLogs\",params:[{address:t,topics:y,blockHash:r}]}):v=await e.request({method:\"eth_getLogs\",params:[{address:t,topics:y,fromBlock:typeof n==\"bigint\"?le(n):n,toBlock:typeof o==\"bigint\"?le(o):o}]});let E=v.map(C=>go(C));return h?cd({abi:h,args:f,logs:E,strict:m}):E}var KB=x(()=>{c();Tv();BS();tt();_l()});async function WB(e,t){let{abi:r,address:n,args:o,blockHash:s,eventName:u,fromBlock:f,toBlock:d,strict:m}=t,h=u?Ps({abi:r,name:u}):void 0,y=h?void 0:r.filter(v=>v.type===\"event\");return Ae(e,yw,\"getLogs\")({address:n,args:o,blockHash:s,event:h,events:y,fromBlock:f,toBlock:d,strict:m})}var UG=x(()=>{c();p0();Zt();KB()});function pi(e){let{abi:t,args:r,functionName:n,data:o}=e,s=t[0];if(n){let f=Ps({abi:t,args:r,name:n});if(!f)throw new bl(n,{docsPath:DG});s=f}if(s.type!==\"function\")throw new bl(void 0,{docsPath:DG});if(!s.outputs)throw new xv(s.name,{docsPath:DG});let u=Rs(s.outputs,o);if(u&&u.length>1)return u;if(u&&u.length===1)return u[0]}var DG,dm=x(()=>{c();yo();Iv();p0();DG=\"/docs/contract/decodeFunctionResult\"});var Xde,epe=x(()=>{c();Xde=\"0.1.1\"});function tpe(){return Xde}var rpe=x(()=>{c();epe()});function npe(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?npe(e.cause,t):t?null:e}var De,ca=x(()=>{c();rpe();De=class e extends Error{static setStaticOptions(t){e.prototype.docsOrigin=t.docsOrigin,e.prototype.showVersion=t.showVersion,e.prototype.version=t.version}constructor(t,r={}){let n=(()=>{if(r.cause instanceof e){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return r.cause&&\"details\"in r.cause&&typeof r.cause.details==\"string\"?r.cause.details:r.cause?.message?r.cause.message:r.details})(),o=r.cause instanceof e&&r.cause.docsPath||r.docsPath,s=r.docsOrigin??e.prototype.docsOrigin,u=`${s}${o??\"\"}`,f=!!(r.version??e.prototype.showVersion),d=r.version??e.prototype.version,m=[t||\"An error occurred.\",...r.metaMessages?[\"\",...r.metaMessages]:[],...n||o||f?[\"\",n?`Details: ${n}`:void 0,o?`See: ${u}`:void 0,f?`Version: ${d}`:void 0]:[]].filter(h=>typeof h==\"string\").join(`\\n`);super(m,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsOrigin\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"showVersion\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),this.cause=r.cause,this.details=n,this.docs=u,this.docsOrigin=s,this.docsPath=o,this.shortMessage=t,this.showVersion=f,this.version=d}walk(t){return npe(this,t)}};Object.defineProperty(De,\"defaultStaticOptions\",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:\"https://oxlib.sh\",showVersion:!1,version:`ox@${tpe()}`}});De.setStaticOptions(De.defaultStaticOptions)});function D0(e,t){if(du(e)>t)throw new QB({givenSize:du(e),maxSize:t})}function ope(e,t){if(typeof t==\"number\"&&t>0&&t>du(e)-1)throw new IS({offset:t,position:\"start\",size:du(e)})}function ape(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&du(e)!==r-t)throw new IS({offset:r,position:\"end\",size:du(e)})}function HG(e){if(e>=pm.zero&&e<=pm.nine)return e-pm.zero;if(e>=pm.A&&e<=pm.F)return e-(pm.A-10);if(e>=pm.a&&e<=pm.f)return e-(pm.a-10)}function ipe(e,t={}){let{dir:r,size:n=32}=t;if(n===0)return e;if(e.length>n)throw new ZB({size:e.length,targetSize:n,type:\"Bytes\"});let o=new Uint8Array(n);for(let s=0;s<n;s++){let u=r===\"right\";o[u?s:n-s-1]=e[u?s:e.length-s-1]}return o}function LG(e,t={}){let{dir:r=\"left\"}=t,n=e,o=0;for(let s=0;s<n.length-1&&n[r===\"left\"?s:n.length-s-1].toString()===\"0\";s++)o++;return n=r===\"left\"?n.slice(o):n.slice(0,n.length-o),n}var pm,zG=x(()=>{c();pu();pm={zero:48,nine:57,A:65,F:70,a:97,f:102}});function bw(e,t){if(Cr(e)>t)throw new JB({givenSize:Cr(e),maxSize:t})}function cpe(e,t){if(typeof t==\"number\"&&t>0&&t>Cr(e)-1)throw new PS({offset:t,position:\"start\",size:Cr(e)})}function upe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&Cr(e)!==r-t)throw new PS({offset:r,position:\"end\",size:Cr(e)})}function FG(e,t={}){let{dir:r,size:n=32}=t;if(n===0)return e;let o=e.replace(\"0x\",\"\");if(o.length>n*2)throw new YB({size:Math.ceil(o.length/2),targetSize:n,type:\"Hex\"});return`0x${o[r===\"right\"?\"padEnd\":\"padStart\"](n*2,\"0\")}`}function lpe(e,t={}){let{dir:r=\"left\"}=t,n=e.replace(\"0x\",\"\"),o=0;for(let s=0;s<n.length-1&&n[r===\"left\"?s:n.length-s-1].toString()===\"0\";s++)o++;return n=r===\"left\"?n.slice(o):n.slice(0,n.length-o),n===\"0\"?\"0x\":r===\"right\"&&n.length%2===1?`0x${n}0`:`0x${n}`}var jG=x(()=>{c();Tr()});function Bl(e,t,r){return JSON.stringify(e,(n,o)=>typeof t==\"function\"?t(n,o):typeof o==\"bigint\"?o.toString()+Gft:o,r)}var Gft,gw=x(()=>{c();Gft=\"#__bigint\"});function Wft(e){if(!(e instanceof Uint8Array)){if(!e)throw new xw(e);if(typeof e!=\"object\")throw new xw(e);if(!(\"BYTES_PER_ELEMENT\"in e))throw new xw(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!==\"Uint8Array\")throw new xw(e)}}function dpe(...e){let t=0;for(let n of e)t+=n.length;let r=new Uint8Array(t);for(let n=0,o=0;n<e.length;n++){let s=e[n];r.set(s,o),o+=s.length}return r}function MS(e){return e instanceof Uint8Array?e:typeof e==\"string\"?Ds(e):Qft(e)}function Qft(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Ds(e,t={}){let{size:r}=t,n=e;r&&(bw(e,r),n=ld(e,r));let o=n.slice(2);o.length%2&&(o=`0${o}`);let s=o.length/2,u=new Uint8Array(s);for(let f=0,d=0;f<s;f++){let m=HG(o.charCodeAt(d++)),h=HG(o.charCodeAt(d++));if(m===void 0||h===void 0)throw new De(`Invalid byte sequence (\"${o[d-2]}${o[d-1]}\" in \"${o}\").`);u[f]=m<<4|h}return u}function XB(e,t={}){let{size:r}=t,n=Kft.encode(e);return typeof r==\"number\"?(D0(n,r),Zft(n,r)):n}function ppe(e,t){return rde(e,t)}function Zft(e,t){return ipe(e,{dir:\"right\",size:t})}function mpe(e){return crypto.getRandomValues(new Uint8Array(e))}function du(e){return e.length}function hpe(e,t,r,n={}){let{strict:o}=n;ope(e,t);let s=e.slice(t,r);return o&&ape(s,t,r),s}function ype(e,t={}){let{size:r}=t;typeof r<\"u\"&&D0(e,r);let n=sn(e,t);return br(n,t)}function bpe(e,t={}){let{size:r}=t,n=e;if(typeof r<\"u\"&&(D0(n,r),n=$G(n)),n.length>1||n[0]>1)throw new qG(n);return!!n[0]}function ud(e,t={}){let{size:r}=t;typeof r<\"u\"&&D0(e,r);let n=sn(e,t);return Bc(n,t)}function gpe(e,t={}){let{size:r}=t,n=e;return typeof r<\"u\"&&(D0(n,r),n=GG(n)),Vft.decode(n)}function $G(e){return LG(e,{dir:\"left\"})}function GG(e){return LG(e,{dir:\"right\"})}function xpe(e){try{return Wft(e),!0}catch{return!1}}var Vft,Kft,qG,xw,QB,IS,ZB,pu=x(()=>{c();z1();ca();Tr();zG();jG();gw();Vft=new TextDecoder,Kft=new TextEncoder;qG=class extends De{constructor(t){super(`Bytes value \\\\`${t}\\\\` is not a valid boolean.`,{metaMessages:[\"The bytes array must contain a single byte of either a `0` or `1` value.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesBooleanError\"})}},xw=class extends De{constructor(t){super(`Value \\\\`${typeof t==\"object\"?Bl(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid Bytes value.`,{metaMessages:[\"Bytes values must be of type `Bytes`.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesTypeError\"})}},QB=class extends De{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \\\\`${r}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeOverflowError\"})}},IS=class extends De{constructor({offset:t,position:r,size:n}){super(`Slice ${r===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SliceOffsetOutOfBoundsError\"})}},ZB=class extends De{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeExceedsPaddingSizeError\"})}}});function VG(e,t={}){let{strict:r=!1}=t;if(!e)throw new eI(e);if(typeof e!=\"string\")throw new eI(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new tI(e);if(!e.startsWith(\"0x\"))throw new tI(e)}function Jt(...e){return`0x${e.reduce((t,r)=>t+r.replace(\"0x\",\"\"),\"\")}`}function H0(e){return e instanceof Uint8Array?sn(e):Array.isArray(e)?sn(new Uint8Array(e)):e}function nI(e,t={}){let r=`0x${Number(e)}`;return typeof t.size==\"number\"?(bw(r,t.size),mm(r,t.size)):r}function sn(e,t={}){let r=\"\";for(let o=0;o<e.length;o++)r+=Yft[e[o]];let n=`0x${r}`;return typeof t.size==\"number\"?(bw(n,t.size),ld(n,t.size)):n}function we(e,t={}){let{signed:r,size:n}=t,o=BigInt(e),s;n?r?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof e==\"number\"&&(s=BigInt(Number.MAX_SAFE_INTEGER));let u=typeof s==\"bigint\"&&r?-s-1n:0;if(s&&o>s||o<u){let m=typeof e==\"bigint\"?\"n\":\"\";throw new OS({max:s?`${s}${m}`:void 0,min:`${u}${m}`,signed:r,size:n,value:`${e}${m}`})}let d=`0x${(r&&o<0?BigInt.asUintN(n*8,BigInt(o)):o).toString(16)}`;return n?mm(d,n):d}function Il(e,t={}){return sn(Jft.encode(e),t)}function mm(e,t){return FG(e,{dir:\"left\",size:t})}function ld(e,t){return FG(e,{dir:\"right\",size:t})}function vpe(e){return sn(mpe(e))}function vt(e,t,r,n={}){let{strict:o}=n;cpe(e,t);let s=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(r??e.length)*2)}`;return o&&upe(s,t,r),s}function Cr(e){return Math.ceil((e.length-2)/2)}function NS(e){return lpe(e,{dir:\"left\"})}function br(e,t={}){let{signed:r}=t;t.size&&bw(e,t.size);let n=BigInt(e);if(!r)return n;let o=(e.length-2)/2,s=(1n<<BigInt(o)*8n)-1n,u=s>>1n;return n<=u?n:n-s-1n}function Bc(e,t={}){let{signed:r,size:n}=t;return Number(!r&&!n?e:br(e,t))}function KG(e,t={}){let{size:r}=t,n=Ds(e);return r&&(D0(n,r),n=GG(n)),new TextDecoder().decode(n)}function Zi(e,t={}){let{strict:r=!1}=t;try{return VG(e,{strict:r}),!0}catch{return!1}}var Jft,Yft,OS,eI,tI,rI,JB,PS,YB,Tr=x(()=>{c();pu();ca();zG();jG();gw();Jft=new TextEncoder,Yft=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));OS=class extends De{constructor({max:t,min:r,signed:n,size:o,value:s}){super(`Number \\\\`${s}\\\\` is not in safe${o?` ${o*8}-bit`:\"\"}${n?\" signed\":\" unsigned\"} integer range ${t?`(\\\\`${r}\\\\` to \\\\`${t}\\\\`)`:`(above \\\\`${r}\\\\`)`}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.IntegerOutOfRangeError\"})}},eI=class extends De{constructor(t){super(`Value \\\\`${typeof t==\"object\"?Bl(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid hex type.`,{metaMessages:[\\'Hex types must be represented as `\"0x${string}\"`.\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexTypeError\"})}},tI=class extends De{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid hex value.`,{metaMessages:[\\'Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexValueError\"})}},rI=class extends De{constructor(t){super(`Hex value \\\\`\"${t}\"\\\\` is an odd length (${t.length-2} nibbles).`,{metaMessages:[\"It must be an even length.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidLengthError\"})}},JB=class extends De{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \\\\`${r}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeOverflowError\"})}},PS=class extends De{constructor({offset:t,position:r,size:n}){super(`Slice ${r===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SliceOffsetOutOfBoundsError\"})}},YB=class extends De{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeExceedsPaddingSizeError\"})}}});function wpe(e){return{address:e.address,amount:we(e.amount),index:we(e.index),validatorIndex:we(e.validatorIndex)}}var Epe=x(()=>{c();Tr()});function oI(e){return{...typeof e.baseFeePerGas==\"bigint\"&&{baseFeePerGas:we(e.baseFeePerGas)},...typeof e.blobBaseFee==\"bigint\"&&{blobBaseFee:we(e.blobBaseFee)},...typeof e.feeRecipient==\"string\"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit==\"bigint\"&&{gasLimit:we(e.gasLimit)},...typeof e.number==\"bigint\"&&{number:we(e.number)},...typeof e.prevRandao==\"bigint\"&&{prevRandao:we(e.prevRandao)},...typeof e.time==\"bigint\"&&{time:we(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(wpe)}}}var WG=x(()=>{c();Tr();Epe()});var Pl,aI,Spe,iI,Cpe,QG,ZG,JG,US,YG,fd=x(()=>{c();Pl=[{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"allowFailure\",type:\"bool\"},{name:\"callData\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"aggregate3\",outputs:[{components:[{name:\"success\",type:\"bool\"},{name:\"returnData\",type:\"bytes\"}],name:\"returnData\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"addr\",type:\"address\"}],name:\"getEthBalance\",outputs:[{name:\"balance\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"getCurrentBlockTimestamp\",outputs:[{internalType:\"uint256\",name:\"timestamp\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"}],aI=[{name:\"query\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"tuple[]\",name:\"queries\",components:[{type:\"address\",name:\"sender\"},{type:\"string[]\",name:\"urls\"},{type:\"bytes\",name:\"data\"}]}],outputs:[{type:\"bool[]\",name:\"failures\"},{type:\"bytes[]\",name:\"responses\"}]},{name:\"HttpError\",type:\"error\",inputs:[{type:\"uint16\",name:\"status\"},{type:\"string\",name:\"message\"}]}],Spe=[{inputs:[{name:\"dns\",type:\"bytes\"}],name:\"DNSDecodingFailed\",type:\"error\"},{inputs:[{name:\"ens\",type:\"string\"}],name:\"DNSEncodingFailed\",type:\"error\"},{inputs:[],name:\"EmptyAddress\",type:\"error\"},{inputs:[{name:\"status\",type:\"uint16\"},{name:\"message\",type:\"string\"}],name:\"HttpError\",type:\"error\"},{inputs:[],name:\"InvalidBatchGatewayResponse\",type:\"error\"},{inputs:[{name:\"errorData\",type:\"bytes\"}],name:\"ResolverError\",type:\"error\"},{inputs:[{name:\"name\",type:\"bytes\"},{name:\"resolver\",type:\"address\"}],name:\"ResolverNotContract\",type:\"error\"},{inputs:[{name:\"name\",type:\"bytes\"}],name:\"ResolverNotFound\",type:\"error\"},{inputs:[{name:\"primary\",type:\"string\"},{name:\"primaryAddress\",type:\"bytes\"}],name:\"ReverseAddressMismatch\",type:\"error\"},{inputs:[{internalType:\"bytes4\",name:\"selector\",type:\"bytes4\"}],name:\"UnsupportedResolverProfile\",type:\"error\"}],iI=[...Spe,{name:\"resolveWithGateways\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes\"},{name:\"data\",type:\"bytes\"},{name:\"gateways\",type:\"string[]\"}],outputs:[{name:\"\",type:\"bytes\"},{name:\"address\",type:\"address\"}]}],Cpe=[...Spe,{name:\"reverseWithGateways\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes\",name:\"reverseName\"},{type:\"uint256\",name:\"coinType\"},{type:\"string[]\",name:\"gateways\"}],outputs:[{type:\"string\",name:\"resolvedName\"},{type:\"address\",name:\"resolver\"},{type:\"address\",name:\"reverseResolver\"}]}],QG=[{name:\"text\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"key\",type:\"string\"}],outputs:[{name:\"\",type:\"string\"}]}],ZG=[{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"}],outputs:[{name:\"\",type:\"address\"}]},{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"coinType\",type:\"uint256\"}],outputs:[{name:\"\",type:\"bytes\"}]}],JG=[{name:\"isValidSignature\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],outputs:[{name:\"\",type:\"bytes4\"}]}],US=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\",name:\"isValidSig\"}],YG=[{type:\"event\",name:\"Approval\",inputs:[{indexed:!0,name:\"owner\",type:\"address\"},{indexed:!0,name:\"spender\",type:\"address\"},{indexed:!1,name:\"value\",type:\"uint256\"}]},{type:\"event\",name:\"Transfer\",inputs:[{indexed:!0,name:\"from\",type:\"address\"},{indexed:!0,name:\"to\",type:\"address\"},{indexed:!1,name:\"value\",type:\"uint256\"}]},{type:\"function\",name:\"allowance\",stateMutability:\"view\",inputs:[{name:\"owner\",type:\"address\"},{name:\"spender\",type:\"address\"}],outputs:[{type:\"uint256\"}]},{type:\"function\",name:\"approve\",stateMutability:\"nonpayable\",inputs:[{name:\"spender\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{type:\"bool\"}]},{type:\"function\",name:\"balanceOf\",stateMutability:\"view\",inputs:[{name:\"account\",type:\"address\"}],outputs:[{type:\"uint256\"}]},{type:\"function\",name:\"decimals\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint8\"}]},{type:\"function\",name:\"name\",stateMutability:\"view\",inputs:[],outputs:[{type:\"string\"}]},{type:\"function\",name:\"symbol\",stateMutability:\"view\",inputs:[],outputs:[{type:\"string\"}]},{type:\"function\",name:\"totalSupply\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{type:\"function\",name:\"transfer\",stateMutability:\"nonpayable\",inputs:[{name:\"recipient\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{type:\"bool\"}]},{type:\"function\",name:\"transferFrom\",stateMutability:\"nonpayable\",inputs:[{name:\"sender\",type:\"address\"},{name:\"recipient\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{type:\"bool\"}]}]});var Tpe,_pe=x(()=>{c();Tpe=\"0x82ad56cb\"});var sI,kpe,Bpe,vw,DS=x(()=>{c();sI=\"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe\",kpe=\"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe\",Bpe=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",vw=\"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033\"});var q1,cI,uI,HS,Rl,$1=x(()=>{c();ht();q1=class extends ae{constructor({blockNumber:t,chain:r,contract:n}){super(`Chain \"${r.name}\" does not support contract \"${n.name}\".`,{metaMessages:[\"This could be due to any of the following:\",...t&&n.blockCreated&&n.blockCreated>t?[`- The contract \"${n.name}\" was not deployed until block ${n.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract \"${n.name}\" configured.`]],name:\"ChainDoesNotSupportContract\"})}},cI=class extends ae{constructor({chain:t,currentChainId:r}){super(`The current chain of the wallet (id: ${r}) does not match the target chain for the transaction (id: ${t.id} \\\\u2013 ${t.name}).`,{metaMessages:[`Current Chain ID:  ${r}`,`Expected Chain ID: ${t.id} \\\\u2013 ${t.name}`],name:\"ChainMismatchError\"})}},uI=class extends ae{constructor(){super([\"No chain was provided to the request.\",\"Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.\"].join(`\\n`),{name:\"ChainNotFoundError\"})}},HS=class extends ae{constructor(){super(\"No chain was provided to the Client.\",{name:\"ClientChainNotConfiguredError\"})}},Rl=class extends ae{constructor({chainId:t}){super(typeof t==\"number\"?`Chain ID \"${t}\" is invalid.`:\"Chain ID is invalid.\",{name:\"InvalidChainIdError\"})}}});function G1(e){let{abi:t,args:r,bytecode:n}=e;if(!r||r.length===0)return n;let o=t.find(u=>\"type\"in u&&u.type===\"constructor\");if(!o)throw new k9({docsPath:XG});if(!(\"inputs\"in o))throw new GA({docsPath:XG});if(!o.inputs||o.inputs.length===0)throw new GA({docsPath:XG});let s=zn(o.inputs,r);return Cn([n,s])}var XG,lI=x(()=>{c();yo();Jn();cu();XG=\"/docs/contract/encodeDeployData\"});function mu({blockNumber:e,chain:t,contract:r}){let n=t?.contracts?.[r];if(!n)throw new q1({chain:t,contract:{name:r}});if(e&&n.blockCreated&&n.blockCreated>e)throw new q1({blockNumber:e,chain:t,contract:{name:r,blockCreated:n.blockCreated}});return n.address}var V1=x(()=>{c();$1()});function ww(e,{docsPath:t,...r}){let n=(()=>{let o=T0(e,r);return o instanceof fu?e:o})();return new Uv(n,{docsPath:t,...r})}var fI=x(()=>{c();Xp();fm();vS()});function Ew(){let e=()=>{},t=()=>{};return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}var dI=x(()=>{c()});function pI({fn:e,id:t,shouldSplitBatch:r,wait:n=0,sort:o}){let s=async()=>{let h=d();u();let y=h.map(({args:v})=>v);y.length!==0&&e(y).then(v=>{o&&Array.isArray(v)&&v.sort(o);for(let E=0;E<h.length;E++){let{resolve:C}=h[E];C?.([v[E],v])}}).catch(v=>{for(let E=0;E<h.length;E++){let{reject:C}=h[E];C?.(v)}})},u=()=>eV.delete(t),f=()=>d().map(({args:h})=>h),d=()=>eV.get(t)||[],m=h=>eV.set(t,[...d(),h]);return{flush:u,async schedule(h){let{promise:y,resolve:v,reject:E}=Ew();return r?.([...f(),h])&&s(),d().length>0?(m({args:h,resolve:v,reject:E}),y):(m({args:h,resolve:v,reject:E}),setTimeout(s,n),y)}}}var eV,tV=x(()=>{c();dI();eV=new Map});var mI,hI,yI,Ipe=x(()=>{c();Fa();ht();yB();mI=class extends ae{constructor({callbackSelector:t,cause:r,data:n,extraData:o,sender:s,urls:u}){super(r.shortMessage||\"An error occurred while fetching for an offchain result.\",{cause:r,metaMessages:[...r.metaMessages||[],r.metaMessages?.length?\"\":[],\"Offchain Gateway Call:\",u&&[\"  Gateway URL(s):\",...u.map(f=>`    ${g1(f)}`)],`  Sender: ${s}`,`  Data: ${n}`,`  Callback selector: ${t}`,`  Extra data: ${o}`].flat(),name:\"OffchainLookupError\"})}},hI=class extends ae{constructor({result:t,url:r}){super(\"Offchain gateway response is malformed. Response data must be a hex value.\",{metaMessages:[`Gateway URL: ${g1(r)}`,`Response: ${or(t)}`],name:\"OffchainLookupResponseMalformedError\"})}},yI=class extends ae{constructor({sender:t,to:r}){super(\"Reverted sender address does not match target contract address (`to`).\",{metaMessages:[`Contract address: ${r}`,`OffchainLookup sender address: ${t}`],name:\"OffchainLookupSenderMismatchError\"})}}});function K1(e){let{abi:t,data:r}=e,n=La(r,0,4),o=t.find(s=>s.type===\"function\"&&n===Xf(sa(s)));if(!o)throw new O9(n,{docsPath:\"/docs/contract/decodeFunctionData\"});return{functionName:o.name,args:\"inputs\"in o&&o.inputs&&o.inputs.length>0?Rs(o.inputs,La(r,4)):void 0}}var rV=x(()=>{c();yo();Yf();Cv();Iv();qp()});function oV(e){let{abi:t,errorName:r,args:n}=e,o=t[0];if(r){let d=Ps({abi:t,args:n,name:r});if(!d)throw new VA(r,{docsPath:nV});o=d}if(o.type!==\"error\")throw new VA(void 0,{docsPath:nV});let s=sa(o),u=Xf(s),f=\"0x\";if(n&&n.length>0){if(!o.inputs)throw new P9(o.name,{docsPath:nV});f=zn(o.inputs,n)}return Cn([u,f])}var nV,Ppe=x(()=>{c();yo();Jn();Cv();cu();qp();p0();nV=\"/docs/contract/encodeErrorResult\"});function Rpe(e){let{abi:t,functionName:r,result:n}=e,o=t[0];if(r){let u=Ps({abi:t,name:r});if(!u)throw new bl(r,{docsPath:aV});o=u}if(o.type!==\"function\")throw new bl(void 0,{docsPath:aV});if(!o.outputs)throw new xv(o.name,{docsPath:aV});let s=(()=>{if(o.outputs.length===0)return[];if(o.outputs.length===1)return[n];if(Array.isArray(n))return n;throw new wv(n)})();return zn(o.outputs,s)}var aV,Mpe=x(()=>{c();yo();cu();p0();aV=\"/docs/contract/encodeFunctionResult\"});async function iV(e){let{data:t,ccipRequest:r}=e,{args:[n]}=K1({abi:aI,data:t}),o=[],s=[];return await Promise.all(n.map(async(u,f)=>{try{s[f]=u.urls.includes(hm)?await iV({data:u.data,ccipRequest:r}):await r(u),o[f]=!1}catch(d){o[f]=!0,s[f]=edt(d)}})),Rpe({abi:aI,functionName:\"query\",result:[o,s]})}function edt(e){return e.name===\"HttpRequestError\"&&e.status?oV({abi:aI,errorName:\"HttpError\",args:[e.status,e.shortMessage]}):oV({abi:[rB],errorName:\"Error\",args:[\"shortMessage\"in e?e.shortMessage:e.message]})}var hm,LS=x(()=>{c();fd();nB();rV();Ppe();Mpe();hm=\"x-batch-gateway:true\"});var Upe={};Wn(Upe,{ccipRequest:()=>Npe,offchainLookup:()=>rdt,offchainLookupAbiItem:()=>Ope,offchainLookupSignature:()=>tdt});async function rdt(e,{blockNumber:t,blockTag:r,data:n,to:o}){let{args:s}=Pv({data:n,abi:[Ope]}),[u,f,d,m,h]=s,{ccipRead:y}=e,v=y&&typeof y?.request==\"function\"?y.request:Npe;try{if(!di(o,u))throw new yI({sender:u,to:o});let E=f.includes(hm)?await iV({data:d,ccipRequest:v}):await v({data:d,sender:u,urls:f}),{data:C}=await hu(e,{blockNumber:t,blockTag:r,data:mr([m,zn([{type:\"bytes\"},{type:\"bytes\"}],[E,h])]),to:o});return C}catch(E){throw new mI({callbackSelector:m,cause:E,data:n,extraData:h,sender:u,urls:f})}}async function Npe({data:e,sender:t,urls:r}){let n=new Error(\"An unknown error occurred.\");for(let o=0;o<r.length;o++){let s=r[o],u=s.includes(\"{data}\")?\"GET\":\"POST\",f=u===\"POST\"?{data:e,sender:t}:void 0,d=u===\"POST\"?{\"Content-Type\":\"application/json\"}:{};try{let m=await fetch(s.replace(\"{sender}\",t.toLowerCase()).replace(\"{data}\",e),{body:JSON.stringify(f),headers:d,method:u}),h;if(m.headers.get(\"Content-Type\")?.startsWith(\"application/json\")?h=(await m.json()).data:h=await m.text(),!m.ok){n=new uu({body:f,details:h?.error?or(h.error):m.statusText,headers:m.headers,status:m.status,url:s});continue}if(!Wr(h)){n=new hI({result:h,url:s});continue}return h}catch(m){n=new uu({body:f,details:m.message,url:s})}}throw n}var tdt,Ope,Dpe=x(()=>{c();W1();Ipe();x1();iB();cu();U0();Jn();au();LS();Fa();tdt=\"0x556f1830\",Ope={name:\"OffchainLookup\",type:\"error\",inputs:[{name:\"sender\",type:\"address\"},{name:\"urls\",type:\"string[]\"},{name:\"callData\",type:\"bytes\"},{name:\"callbackFunction\",type:\"bytes4\"},{name:\"extraData\",type:\"bytes\"}]}});async function hu(e,t){let{account:r=e.account,authorizationList:n,batch:o=!!e.batch?.multicall,blockNumber:s,blockTag:u=e.experimental_blockTag??\"latest\",accessList:f,blobs:d,blockOverrides:m,code:h,data:y,factory:v,factoryData:E,gas:C,gasPrice:B,maxFeePerBlobGas:R,maxFeePerGas:M,maxPriorityFeePerGas:U,nonce:O,to:N,value:j,stateOverride:K,...G}=t,J=r?Xe(r):void 0;if(h&&(v||E))throw new ae(\"Cannot provide both `code` & `factory`/`factoryData` as parameters.\");if(h&&N)throw new ae(\"Cannot provide both `code` & `to` as parameters.\");let Y=h&&y,W=v&&E&&N&&y,ie=Y||W,re=Y?Hpe({code:h,data:y}):W?adt({data:y,factory:v,factoryData:E,to:N}):y;try{Vo(t);let A=(typeof s==\"bigint\"?le(s):void 0)||u,T=m?oI(m):void 0,P=B0(K),D=e.chain?.formatters?.transactionRequest?.format,V=(D||ko)({...Ns(G,{format:D}),accessList:f,account:J,authorizationList:n,blobs:d,data:re,gas:C,gasPrice:B,maxFeePerBlobGas:R,maxFeePerGas:M,maxPriorityFeePerGas:U,nonce:O,to:ie?void 0:N,value:j},\"call\");if(o&&ndt({request:V})&&!P&&!T)try{return await odt(e,{...V,blockNumber:s,blockTag:u})}catch(I){if(!(I instanceof HS)&&!(I instanceof q1))throw I}let Z=(()=>{let I=[V,A];return P&&T?[...I,P,T]:P?[...I,P]:T?[...I,{},T]:I})(),z=await e.request({method:\"eth_call\",params:Z});return z===\"0x\"?{data:void 0}:{data:z}}catch(H){let A=idt(H),{offchainLookup:T,offchainLookupSignature:P}=await Promise.resolve().then(()=>(Dpe(),Upe));if(e.ccipRead!==!1&&A?.slice(0,10)===P&&N)return{data:await T(e,{data:A,to:N})};throw ie&&A?.slice(0,10)===\"0x101bb98d\"?new bB({factory:v}):ww(H,{...t,account:J,chain:e.chain})}}function ndt({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(Tpe)||!r||Object.values(n).filter(o=>typeof o<\"u\").length>0)}async function odt(e,t){let{batchSize:r=1024,deployless:n=!1,wait:o=0}=typeof e.batch?.multicall==\"object\"?e.batch.multicall:{},{blockNumber:s,blockTag:u=e.experimental_blockTag??\"latest\",data:f,to:d}=t,m=(()=>{if(n)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return mu({blockNumber:s,chain:e.chain,contract:\"multicall3\"});throw new HS})(),y=(typeof s==\"bigint\"?le(s):void 0)||u,{schedule:v}=pI({id:`${e.uid}.${y}`,wait:o,shouldSplitBatch(B){return B.reduce((M,{data:U})=>M+(U.length-2),0)>r*2},fn:async B=>{let R=B.map(O=>({allowFailure:!0,callData:O.data,target:O.to})),M=Ct({abi:Pl,args:[R],functionName:\"aggregate3\"}),U=await e.request({method:\"eth_call\",params:[{...m===null?{data:Hpe({code:vw,data:M})}:{to:m,data:M}},y]});return pi({abi:Pl,args:[R],functionName:\"aggregate3\",data:U||\"0x\"})}}),[{returnData:E,success:C}]=await v({data:f,to:d});if(!C)throw new rd({data:E});return E===\"0x\"?{data:void 0}:{data:E}}function Hpe(e){let{code:t,data:r}=e;return G1({abi:mv([\"constructor(bytes, bytes)\"]),bytecode:sI,args:[t,r]})}function adt(e){let{data:t,factory:r,factoryData:n,to:o}=e;return G1({abi:mv([\"constructor(address, bytes, address, bytes)\"]),bytecode:kpe,args:[o,t,r,n]})}function idt(e){if(!(e instanceof ae))return;let t=e.walk();return typeof t?.data==\"object\"?t.data?.data:t.data}var W1=x(()=>{c();hv();WG();Yr();fd();_pe();DS();ht();$1();Xp();dm();lI();za();V1();tt();fI();_0();Us();tV();ES();Cl()});async function Xr(e,t){let{abi:r,address:n,args:o,functionName:s,...u}=t,f=Ct({abi:r,args:o,functionName:s});try{let{data:d}=await Ae(e,hu,\"call\")({...u,data:f,to:n});return pi({abi:r,args:o,functionName:s,data:d||\"0x\"})}catch(d){throw Cc(d,{abi:r,address:n,args:o,docsPath:\"/docs/contract/readContract\",functionName:s})}}var Ic=x(()=>{c();dm();za();D1();Zt();W1()});async function Lpe(e,t){let{abi:r,address:n,args:o,functionName:s,dataSuffix:u=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,...f}=t,d=f.account?Xe(f.account):e.account,m=Ct({abi:r,args:o,functionName:s});try{let{data:h}=await Ae(e,hu,\"call\")({batch:!1,data:`${m}${u?u.replace(\"0x\",\"\"):\"\"}`,to:n,...f,account:d}),y=pi({abi:r,args:o,functionName:s,data:h||\"0x\"}),v=r.filter(E=>\"name\"in E&&E.name===t.functionName);return{result:y,request:{abi:v,address:n,args:o,dataSuffix:u,functionName:s,...f,account:d}}}catch(h){throw Cc(h,{abi:r,address:n,args:o,docsPath:\"/docs/contract/simulateContract\",functionName:s,sender:d?.address})}}var zpe=x(()=>{c();Yr();dm();za();D1();Zt();W1()});function wa(e,t,r){let n=++sdt,o=()=>sV.get(e)||[],s=()=>{let h=o();sV.set(e,h.filter(y=>y.id!==n))},u=()=>{let h=o();if(!h.some(v=>v.id===n))return;let y=Fpe.get(e);if(h.length===1&&y){let v=y();v instanceof Promise&&v.catch(()=>{})}s()},f=o();if(sV.set(e,[...f,{id:n,fns:t}]),f&&f.length>0)return u;let d={};for(let h in t)d[h]=((...y)=>{let v=o();if(v.length!==0)for(let E of v)E.fns[h]?.(...y)});let m=r(d);return typeof m==\"function\"&&Fpe.set(e,m),u}var sV,Fpe,sdt,ym=x(()=>{c();sV=new Map,Fpe=new Map,sdt=0});async function zS(e){return new Promise(t=>setTimeout(t,e))}var cV=x(()=>{c()});function Hs(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let o=!0,s=()=>o=!1;return(async()=>{let f;t&&(f=await e({unpoll:s}));let d=await r?.(f)??n;await zS(d);let m=async()=>{o&&(await e({unpoll:s}),await zS(n),m())};m()})(),s}var L0=x(()=>{c();cV()});function jpe(e){let t=(o,s)=>({clear:()=>s.delete(o),get:()=>s.get(o),set:u=>s.set(o,u)}),r=t(e,cdt),n=t(e,udt);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}async function qpe(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){let n=jpe(t),o=n.response.get();if(o&&r>0&&Date.now()-o.created.getTime()<r)return o.data;let s=n.promise.get();s||(s=e(),n.promise.set(s));try{let u=await s;return n.response.set({created:new Date,data:u}),u}finally{n.promise.clear()}}var cdt,udt,$pe=x(()=>{c();cdt=new Map,udt=new Map});async function dd(e,{cacheTime:t=e.cacheTime}={}){let r=await qpe(()=>e.request({method:\"eth_blockNumber\"}),{cacheKey:ldt(e.uid),cacheTime:t});return BigInt(r)}var ldt,Aw=x(()=>{c();$pe();ldt=e=>`blockNumber.${e}`});async function z0(e,{filter:t}){let r=\"strict\"in t&&t.strict,n=await t.request({method:\"eth_getFilterChanges\",params:[t.id]});if(typeof n[0]==\"string\")return n;let o=n.map(s=>go(s));return!(\"abi\"in t)||!t.abi?o:cd({abi:t.abi,logs:o,strict:r})}var FS=x(()=>{c();BS();_l()});async function F0(e,{filter:t}){return t.request({method:\"eth_uninstallFilter\",params:[t.id]})}var jS=x(()=>{c()});function Gpe(e,t){let{abi:r,address:n,args:o,batch:s=!0,eventName:u,fromBlock:f,onError:d,onLogs:m,poll:h,pollingInterval:y=e.pollingInterval,strict:v}=t;return(typeof h<\"u\"?h:typeof f==\"bigint\"?!0:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")))?(()=>{let R=v??!1,M=or([\"watchContractEvent\",n,o,s,e.uid,u,y,R,f]);return wa(M,{onLogs:m,onError:d},U=>{let O;f!==void 0&&(O=f-1n);let N,j=!1,K=Hs(async()=>{if(!j){try{N=await Ae(e,tB,\"createContractEventFilter\")({abi:r,address:n,args:o,eventName:u,strict:R,fromBlock:f})}catch{}j=!0;return}try{let G;if(N)G=await Ae(e,z0,\"getFilterChanges\")({filter:N});else{let J=await Ae(e,dd,\"getBlockNumber\")({});O&&O<J?G=await Ae(e,WB,\"getContractEvents\")({abi:r,address:n,args:o,eventName:u,fromBlock:O+1n,toBlock:J,strict:R}):G=[],O=J}if(G.length===0)return;if(s)U.onLogs(G);else for(let J of G)U.onLogs([J])}catch(G){N&&G instanceof Sc&&(j=!1),U.onError?.(G)}},{emitOnBegin:!0,interval:y});return async()=>{N&&await Ae(e,F0,\"uninstallFilter\")({filter:N}),K()}})})():(()=>{let R=v??!1,M=or([\"watchContractEvent\",n,o,s,e.uid,u,y,R]),U=!0,O=()=>U=!1;return wa(M,{onLogs:m,onError:d},N=>((async()=>{try{let j=(()=>{if(e.transport.type===\"fallback\"){let J=e.transport.transports.find(Y=>Y.config.type===\"webSocket\"||Y.config.type===\"ipc\");return J?J.value:e.transport}return e.transport})(),K=u?ed({abi:r,eventName:u,args:o}):[],{unsubscribe:G}=await j.subscribe({params:[\"logs\",{address:n,topics:K}],onData(J){if(!U)return;let Y=J.result;try{let{eventName:W,args:ie}=j1({abi:r,data:Y.data,topics:Y.topics,strict:v}),re=go(Y,{args:ie,eventName:W});N.onLogs([re])}catch(W){let ie,re;if(W instanceof $p||W instanceof i0){if(v)return;ie=W.abiItem.name,re=W.abiItem.inputs?.some(A=>!(\"name\"in A&&A.name))}let H=go(Y,{args:re?[]:{},eventName:ie});N.onLogs([H])}},onError(J){N.onError?.(J)}});O=G,U||O()}catch(j){d?.(j)}})(),()=>O()))})()}var Vpe=x(()=>{c();yo();U1();VB();Tv();_l();Zt();ym();L0();Fa();$$();Aw();UG();FS();jS()});var On,yu,Pc=x(()=>{c();ht();On=class extends ae{constructor({docsPath:t}={}){super([\"Could not find an Account to execute with this Action.\",\"Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.\"].join(`\\n`),{docsPath:t,docsSlug:\"account\",name:\"AccountNotFoundError\"})}},yu=class extends ae{constructor({docsPath:t,metaMessages:r,type:n}){super(`Account type \"${n}\" is not supported.`,{docsPath:t,metaMessages:r,name:\"AccountTypeNotSupportedError\"})}}});function Sw({chain:e,currentChainId:t}){if(!e)throw new uI;if(t!==e.id)throw new cI({chain:e,currentChainId:t})}var bI=x(()=>{c();$1()});async function Cw(e,{serializedTransaction:t}){return e.request({method:\"eth_sendRawTransaction\",params:[t]},{retryCount:0})}var gI=x(()=>{c()});async function pd(e,t){let{account:r=e.account,assertChainId:n=!0,chain:o=e.chain,accessList:s,authorizationList:u,blobs:f,data:d,dataSuffix:m=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,gas:h,gasPrice:y,maxFeePerBlobGas:v,maxFeePerGas:E,maxPriorityFeePerGas:C,nonce:B,type:R,value:M,...U}=t;if(typeof r>\"u\")throw new On({docsPath:\"/docs/actions/wallet/sendTransaction\"});let O=r?Xe(r):null;try{Vo(t);let N=await(async()=>{if(t.to)return t.to;if(t.to!==null&&u&&u.length>0)return await C0({authorization:u[0]}).catch(()=>{throw new ae(\"`to` is required. Could not infer from `authorizationList`.\")})})();if(O?.type===\"json-rpc\"||O===null){let j;o!==null&&(j=await Ae(e,Ko,\"getChainId\")({}),n&&Sw({currentChainId:j,chain:o}));let K=e.chain?.formatters?.transactionRequest?.format,J=(K||ko)({...Ns(U,{format:K}),accessList:s,account:O,authorizationList:u,blobs:f,chainId:j,data:m?mr([d??\"0x\",m]):d,gas:h,gasPrice:y,maxFeePerBlobGas:v,maxFeePerGas:E,maxPriorityFeePerGas:C,nonce:B,to:N,type:R,value:M},\"sendTransaction\"),Y=uV.get(e.uid),W=Y?\"wallet_sendTransaction\":\"eth_sendTransaction\";try{return await e.request({method:W,params:[J]},{retryCount:0})}catch(ie){if(Y===!1)throw ie;let re=ie;if(re.name===\"InvalidInputRpcError\"||re.name===\"InvalidParamsRpcError\"||re.name===\"MethodNotFoundRpcError\"||re.name===\"MethodNotSupportedRpcError\")return await e.request({method:\"wallet_sendTransaction\",params:[J]},{retryCount:0}).then(H=>(uV.set(e.uid,!0),H)).catch(H=>{let A=H;throw A.name===\"MethodNotFoundRpcError\"||A.name===\"MethodNotSupportedRpcError\"?(uV.set(e.uid,!1),re):A});throw re}}if(O?.type===\"local\"){let j=await Ae(e,sd,\"prepareTransactionRequest\")({account:O,accessList:s,authorizationList:u,blobs:f,chain:o,data:m?mr([d??\"0x\",m]):d,gas:h,gasPrice:y,maxFeePerBlobGas:v,maxFeePerGas:E,maxPriorityFeePerGas:C,nonce:B,nonceManager:O.nonceManager,parameters:[...kS,\"sidecars\"],type:R,value:M,...U,to:N}),K=o?.serializers?.transaction,G=await O.signTransaction(j,{serializer:K});return await Ae(e,Cw,\"sendRawTransaction\")({serializedTransaction:G})}throw O?.type===\"smart\"?new yu({metaMessages:[\"Consider using the `sendUserOperation` Action instead.\"],docsPath:\"/docs/actions/bundler/sendUserOperation\",type:\"smart\"}):new yu({docsPath:\"/docs/actions/wallet/sendTransaction\",type:O?.type})}catch(N){throw N instanceof yu?N:N0(N,{...t,account:O,chain:t.chain||void 0})}}var uV,Tw=x(()=>{c();Yr();Pc();ht();xS();bI();Jn();_S();_0();Us();Zt();d0();Cl();Tl();mw();gI();uV=new ci(128)});async function md(e,t){return md.internal(e,pd,\"sendTransaction\",t)}var xI=x(()=>{c();Yr();Pc();za();D1();Zt();Tw();(function(e){async function t(r,n,o,s){let{abi:u,account:f=r.account,address:d,args:m,functionName:h,...y}=s;if(typeof f>\"u\")throw new On({docsPath:\"/docs/contract/writeContract\"});let v=f?Xe(f):null,E=Ct({abi:u,args:m,functionName:h});try{return await Ae(r,n,o)({data:E,to:d,account:v,...y})}catch(C){throw Cc(C,{abi:u,address:d,args:m,docsPath:\"/docs/contract/writeContract\",functionName:h,sender:v?.address})}}e.internal=t})(md||(md={}))});var vI,Kpe=x(()=>{c();ht();vI=class extends ae{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:\"BundleFailedError\"}),Object.defineProperty(this,\"result\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}});function hd(e,{delay:t=100,retryCount:r=2,shouldRetry:n=()=>!0}={}){return new Promise((o,s)=>{let u=async({count:f=0}={})=>{let d=async({error:m})=>{let h=typeof t==\"function\"?t({count:f,error:m}):t;h&&await zS(h),u({count:f+1})};try{let m=await e();o(m)}catch(m){if(f<r&&await n({count:f,error:m}))return d({error:m});s(m)}};u()})}var qS=x(()=>{c();cV()});function bm(e,t){let r={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(n=>go(n)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Zr(e.transactionIndex):null,status:e.status?lV[e.status]:null,type:e.type?kG[e.type]||e.type:null};return e.blobGasPrice&&(r.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(r.blobGasUsed=BigInt(e.blobGasUsed)),r}var lV,_w,gm=x(()=>{c();Zn();wS();_l();id();lV={\"0x0\":\"reverted\",\"0x1\":\"success\"};_w=k0(\"transactionReceipt\",bm)});async function wI(e,t){let{account:r=e.account,chain:n=e.chain,experimental_fallback:o,experimental_fallbackDelay:s=32,forceAtomic:u=!1,id:f,version:d=\"2.0.0\"}=t,m=r?Xe(r):null,h=t.capabilities;e.dataSuffix&&!t.capabilities?.dataSuffix&&(typeof e.dataSuffix==\"string\"?h={...t.capabilities,dataSuffix:{value:e.dataSuffix,optional:!0}}:h={...t.capabilities,dataSuffix:{value:e.dataSuffix.value,...e.dataSuffix.required?{}:{optional:!0}}});let y=t.calls.map(v=>{let E=v,C=E.abi?Ct({abi:E.abi,functionName:E.functionName,args:E.args}):E.data;return{data:E.dataSuffix&&C?mr([C,E.dataSuffix]):C,to:E.to,value:E.value?le(E.value):void 0}});try{let v=await e.request({method:\"wallet_sendCalls\",params:[{atomicRequired:u,calls:y,capabilities:h,chainId:le(n.id),from:m?.address,id:f,version:d}]},{retryCount:0});return typeof v==\"string\"?{id:v}:v}catch(v){let E=v;if(o&&(E.name===\"MethodNotFoundRpcError\"||E.name===\"MethodNotSupportedRpcError\"||E.name===\"UnknownRpcError\"||E.details.toLowerCase().includes(\"does not exist / is not available\")||E.details.toLowerCase().includes(\"missing or invalid. request()\")||E.details.toLowerCase().includes(\"did not match any variant of untagged enum\")||E.details.toLowerCase().includes(\"account upgraded to unsupported contract\")||E.details.toLowerCase().includes(\"eip-7702 not supported\")||E.details.toLowerCase().includes(\"unsupported wc_ method\")||E.details.toLowerCase().includes(\"feature toggled misconfigured\")||E.details.toLowerCase().includes(\"jsonrpcengine: response has no error or result for request\"))){if(h&&Object.values(h).some(U=>!U.optional)){let U=\"non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.\";throw new tm(new ae(U,{details:U}))}if(u&&y.length>1){let M=\"`forceAtomic` is not supported on fallback to `eth_sendTransaction`.\";throw new rm(new ae(M,{details:M}))}let C=[];for(let M of y){let U=pd(e,{account:m,chain:n,data:M.data,to:M.to,value:M.value?at(M.value):void 0});C.push(U),s>0&&await new Promise(O=>setTimeout(O,s))}let B=await Promise.allSettled(C);if(B.every(M=>M.status===\"rejected\"))throw B[0].reason;let R=B.map(M=>M.status===\"fulfilled\"?M.value:dV);return{id:mr([...R,le(n.id,{size:32}),fV])}}throw N0(v,{...t,account:m,chain:t.chain})}}var fV,dV,EI=x(()=>{c();Yr();ht();U1();za();Jn();Zn();tt();_S();Tw();fV=\"0x5792579257925792579257925792579257925792579257925792579257925792\",dV=le(0,{size:32})});async function AI(e,t){async function r(h){if(h.endsWith(fV.slice(2))){let v=Mn(nS(h,-64,-32)),E=nS(h,0,-64).slice(2).match(/.{1,64}/g),C=await Promise.all(E.map(R=>dV.slice(2)!==R?e.request({method:\"eth_getTransactionReceipt\",params:[`0x${R}`]},{dedupe:!0}):void 0)),B=C.some(R=>R===null)?100:C.every(R=>R?.status===\"0x1\")?200:C.every(R=>R?.status===\"0x0\")?500:600;return{atomic:!1,chainId:Zr(v),receipts:C.filter(Boolean),status:B,version:\"2.0.0\"}}return e.request({method:\"wallet_getCallsStatus\",params:[h]})}let{atomic:n=!1,chainId:o,receipts:s,version:u=\"2.0.0\",...f}=await r(t.id),[d,m]=(()=>{let h=f.status;return h>=100&&h<200?[\"pending\",h]:h>=200&&h<300?[\"success\",h]:h>=300&&h<700?[\"failure\",h]:h===\"CONFIRMED\"?[\"success\",200]:h===\"PENDING\"?[\"pending\",100]:[void 0,h]})();return{...f,atomic:n,chainId:o?Zr(o):void 0,receipts:s?.map(h=>({...h,blockNumber:at(h.blockNumber),gasUsed:at(h.gasUsed),status:lV[h.status]}))??[],statusCode:m,status:d,version:u}}var pV=x(()=>{c();Yf();Vp();Zn();gm();EI()});async function xm(e,t){let{id:r,pollingInterval:n=e.pollingInterval,status:o=({statusCode:B})=>B===200||B>=300,retryCount:s=4,retryDelay:u=({count:B})=>~~(1<<B)*200,timeout:f=6e4,throwOnFailure:d=!1}=t,m=or([\"waitForCallsStatus\",e.uid,r]),{promise:h,resolve:y,reject:v}=Ew(),E,C=wa(m,{resolve:y,reject:v},B=>{let R=Hs(async()=>{let M=U=>{clearTimeout(E),R(),U(),C()};try{let U=await hd(async()=>{let O=await Ae(e,AI,\"getCallsStatus\")({id:r});if(d&&O.status===\"failure\")throw new vI(O);return O},{retryCount:s,delay:u});if(!o(U))return;M(()=>B.resolve(U))}catch(U){M(()=>B.reject(U))}},{interval:n,emitOnBegin:!0});return R});return E=f?setTimeout(()=>{C(),clearTimeout(E),v(new mV({id:r}))},f):void 0,await h}var mV,SI=x(()=>{c();ht();Kpe();Zt();ym();L0();dI();qS();Fa();pV();mV=class extends ae{constructor({id:t}){super(`Timed out while waiting for call bundle with id \"${t}\" to be confirmed.`,{name:\"WaitForCallsStatusTimeoutError\"})}}});function _I(e=11){if(!TI||CI+e>256*2){TI=\"\",CI=0;for(let t=0;t<256;t++)TI+=(256+Math.random()*256|0).toString(16).substring(1)}return TI.substring(CI,CI+++e)}var CI,TI,hV=x(()=>{c();CI=256});function vm(e){let{batch:t,chain:r,ccipRead:n,dataSuffix:o,key:s=\"base\",name:u=\"Base Client\",type:f=\"base\"}=e,d=e.experimental_blockTag??(typeof r?.experimental_preconfirmationTime==\"number\"?\"pending\":void 0),m=r?.blockTime??12e3,h=Math.min(Math.max(Math.floor(m/2),500),4e3),y=e.pollingInterval??h,v=e.cacheTime??y,E=e.account?Xe(e.account):void 0,{config:C,request:B,value:R}=e.transport({account:E,chain:r,pollingInterval:y}),M={...C,...R},U={account:E,batch:t,cacheTime:v,ccipRead:n,chain:r,dataSuffix:o,key:s,name:u,pollingInterval:y,request:B,transport:M,type:f,uid:_I(),...d?{experimental_blockTag:d}:{}};function O(N){return j=>{let K=j(N);for(let J in U)delete K[J];let G={...N,...K};return Object.assign(G,{extend:O(G)})}}return Object.assign(U,{extend:O(U)})}var kI=x(()=>{c();Yr();hV()});function kw(e){if(!(e instanceof ae))return!1;let t=e.walk(r=>r instanceof Yp);return t instanceof Yp?t.data?.errorName===\"HttpError\"||t.data?.errorName===\"ResolverError\"||t.data?.errorName===\"ResolverNotContract\"||t.data?.errorName===\"ResolverNotFound\"||t.data?.errorName===\"ReverseAddressMismatch\"||t.data?.errorName===\"UnsupportedResolverProfile\":!1}var BI=x(()=>{c();ht();Xp()});function II(e){if(e.length!==66||e.indexOf(\"[\")!==0||e.indexOf(\"]\")!==65)return null;let t=`0x${e.slice(1,65)}`;return Wr(t)?t:null}var yV=x(()=>{c();au()});function $S(e){let t=new Uint8Array(32).fill(0);if(!e)return yr(t);let r=e.split(\".\");for(let n=r.length-1;n>=0;n-=1){let o=II(r[n]),s=o?Ha(o):Gt($i(r[n]),\"bytes\");t=Gt(mr([t,s]),\"bytes\")}return yr(t)}var bV=x(()=>{c();Jn();bo();tt();Is();yV()});function Wpe(e){return`[${e.slice(2)}]`}var Qpe=x(()=>{c()});function Zpe(e){let t=new Uint8Array(32).fill(0);return e?II(e)||Gt($i(e)):yr(t)}var Jpe=x(()=>{c();bo();tt();Is();yV()});function Bw(e){let t=e.replace(/^\\\\.|\\\\.$/gm,\"\");if(t.length===0)return new Uint8Array(1);let r=new Uint8Array($i(t).byteLength+2),n=0,o=t.split(\".\");for(let s=0;s<o.length;s++){let u=$i(o[s]);u.byteLength>255&&(u=$i(Wpe(Zpe(o[s])))),r[n]=u.length,r.set(u,n+1),n+=u.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}var PI=x(()=>{c();bo();Qpe();Jpe()});async function Ype(e,t){let{blockNumber:r,blockTag:n,coinType:o,name:s,gatewayUrls:u,strict:f}=t,{chain:d}=e,m=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return mu({blockNumber:r,chain:d,contract:\"ensUniversalResolver\"})})(),h=d?.ensTlds;if(h&&!h.some(v=>s.endsWith(v)))return null;let y=o!=null?[$S(s),BigInt(o)]:[$S(s)];try{let v=Ct({abi:ZG,functionName:\"addr\",args:y}),E={address:m,abi:iI,functionName:\"resolveWithGateways\",args:[ot(Bw(s)),v,u??[hm]],blockNumber:r,blockTag:n},B=await Ae(e,Xr,\"readContract\")(E);if(B[0]===\"0x\")return null;let R=pi({abi:ZG,args:y,functionName:\"addr\",data:B[0]});return R===\"0x\"||Mn(R)===\"0x00\"?null:R}catch(v){if(f)throw v;if(kw(v))return null;throw v}}var Xpe=x(()=>{c();fd();dm();za();V1();Vp();tt();BI();LS();bV();PI();Zt();Ic()});var RI,j0,Iw,MI,eme=x(()=>{c();ht();RI=class extends ae{constructor({data:t}){super(\"Unable to extract image from metadata. The metadata may be malformed or invalid.\",{metaMessages:[\"- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.\",\"\",`Provided data: ${JSON.stringify(t)}`],name:\"EnsAvatarInvalidMetadataError\"})}},j0=class extends ae{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:\"EnsAvatarInvalidNftUriError\"})}},Iw=class extends ae{constructor({uri:t}){super(`Unable to resolve ENS avatar URI \"${t}\". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:\"EnsAvatarUriResolutionError\"})}},MI=class extends ae{constructor({namespace:t}){super(`ENS NFT avatar namespace \"${t}\" is not supported. Must be \"erc721\" or \"erc1155\".`,{name:\"EnsAvatarUnsupportedNamespaceError\"})}}});async function hdt(e){try{let t=await fetch(e,{method:\"HEAD\"});return t.status===200?t.headers.get(\"content-type\")?.startsWith(\"image/\"):!1}catch(t){return typeof t==\"object\"&&typeof t.response<\"u\"||!Object.hasOwn(globalThis,\"Image\")?!1:new Promise(r=>{let n=new Image;n.onload=()=>{r(!0)},n.onerror=()=>{r(!1)},n.src=e})}}function tme(e,t){return e?e.endsWith(\"/\")?e.slice(0,-1):e:t}function gV({uri:e,gatewayUrls:t}){let r=pdt.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=tme(t?.ipfs,\"https://ipfs.io\"),o=tme(t?.arweave,\"https://arweave.net\"),s=e.match(fdt),{protocol:u,subpath:f,target:d,subtarget:m=\"\"}=s?.groups||{},h=u===\"ipns:/\"||f===\"ipns/\",y=u===\"ipfs:/\"||f===\"ipfs/\"||ddt.test(e);if(e.startsWith(\"http\")&&!h&&!y){let E=e;return t?.arweave&&(E=e.replace(/https:\\\\/\\\\/arweave.net/g,t?.arweave)),{uri:E,isOnChain:!1,isEncoded:!1}}if((h||y)&&d)return{uri:`${n}/${h?\"ipns\":\"ipfs\"}/${d}${m}`,isOnChain:!1,isEncoded:!1};if(u===\"ar:/\"&&d)return{uri:`${o}/${d}${m||\"\"}`,isOnChain:!1,isEncoded:!1};let v=e.replace(mdt,\"\");if(v.startsWith(\"<svg\")&&(v=`data:image/svg+xml;base64,${btoa(v)}`),v.startsWith(\"data:\")||v.startsWith(\"{\"))return{uri:v,isOnChain:!0,isEncoded:!1};throw new Iw({uri:e})}function xV(e){if(typeof e!=\"object\"||!(\"image\"in e)&&!(\"image_url\"in e)&&!(\"image_data\"in e))throw new RI({data:e});return e.image||e.image_url||e.image_data}async function rme({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(o=>o.json());return await OI({gatewayUrls:e,uri:xV(r)})}catch{throw new Iw({uri:t})}}async function OI({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=gV({uri:t,gatewayUrls:e});if(n||await hdt(r))return r;throw new Iw({uri:t})}function nme(e){let t=e;t.startsWith(\"did:nft:\")&&(t=t.replace(\"did:nft:\",\"\").replace(/_/g,\"/\"));let[r,n,o]=t.split(\"/\"),[s,u]=r.split(\":\"),[f,d]=n.split(\":\");if(!s||s.toLowerCase()!==\"eip155\")throw new j0({reason:\"Only EIP-155 supported\"});if(!u)throw new j0({reason:\"Chain ID not found\"});if(!d)throw new j0({reason:\"Contract address not found\"});if(!o)throw new j0({reason:\"Token ID not found\"});if(!f)throw new j0({reason:\"ERC namespace not found\"});return{chainID:Number.parseInt(u,10),namespace:f.toLowerCase(),contractAddress:d,tokenID:o}}async function ome(e,{nft:t}){if(t.namespace===\"erc721\")return Xr(e,{address:t.contractAddress,abi:[{name:\"tokenURI\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"tokenId\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"tokenURI\",args:[BigInt(t.tokenID)]});if(t.namespace===\"erc1155\")return Xr(e,{address:t.contractAddress,abi:[{name:\"uri\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"_id\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"uri\",args:[BigInt(t.tokenID)]});throw new MI({namespace:t.namespace})}var fdt,ddt,pdt,mdt,ame=x(()=>{c();Ic();eme();fdt=/(?<protocol>https?:\\\\/\\\\/[^/]*|ipfs:\\\\/|ipns:\\\\/|ar:\\\\/)?(?<root>\\\\/)?(?<subpath>ipfs\\\\/|ipns\\\\/)?(?<target>[\\\\w\\\\-.]+)(?<subtarget>\\\\/.*)?/,ddt=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\\\\/(?<target>[\\\\w\\\\-.]+))?(?<subtarget>\\\\/.*)?$/,pdt=/^data:([a-zA-Z\\\\-/+]*);base64,([^\"].*)/,mdt=/^data:([a-zA-Z\\\\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/});async function ime(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?ydt(e,{gatewayUrls:t,record:r}):OI({uri:r,gatewayUrls:t})}async function ydt(e,{gatewayUrls:t,record:r}){let n=nme(r),o=await ome(e,{nft:n}),{uri:s,isOnChain:u,isEncoded:f}=gV({uri:o,gatewayUrls:t});if(u&&(s.includes(\"data:application/json;base64,\")||s.startsWith(\"{\"))){let m=f?atob(s.replace(\"data:application/json;base64,\",\"\")):s,h=JSON.parse(m);return OI({uri:xV(h),gatewayUrls:t})}let d=n.tokenID;return n.namespace===\"erc1155\"&&(d=d.replace(\"0x\",\"\").padStart(64,\"0\")),rme({gatewayUrls:t,uri:s.replace(/(?:0x)?{id}/,d)})}var sme=x(()=>{c();ame()});async function NI(e,t){let{blockNumber:r,blockTag:n,key:o,name:s,gatewayUrls:u,strict:f}=t,{chain:d}=e,m=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return mu({blockNumber:r,chain:d,contract:\"ensUniversalResolver\"})})(),h=d?.ensTlds;if(h&&!h.some(y=>s.endsWith(y)))return null;try{let y={address:m,abi:iI,args:[ot(Bw(s)),Ct({abi:QG,functionName:\"text\",args:[$S(s),o]}),u??[hm]],functionName:\"resolveWithGateways\",blockNumber:r,blockTag:n},E=await Ae(e,Xr,\"readContract\")(y);if(E[0]===\"0x\")return null;let C=pi({abi:QG,functionName:\"text\",data:E[0]});return C===\"\"?null:C}catch(y){if(f)throw y;if(kw(y))return null;throw y}}var vV=x(()=>{c();fd();dm();za();V1();tt();BI();LS();bV();PI();Zt();Ic()});async function cme(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:o,gatewayUrls:s,strict:u,universalResolverAddress:f}){let d=await Ae(e,NI,\"getEnsText\")({blockNumber:t,blockTag:r,key:\"avatar\",name:o,universalResolverAddress:f,gatewayUrls:s,strict:u});if(!d)return null;try{return await ime(e,{record:d,gatewayUrls:n})}catch{return null}}var ume=x(()=>{c();sme();Zt();vV()});async function lme(e,t){let{address:r,blockNumber:n,blockTag:o,coinType:s=60n,gatewayUrls:u,strict:f}=t,{chain:d}=e,m=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return mu({blockNumber:n,chain:d,contract:\"ensUniversalResolver\"})})();try{let h={address:m,abi:Cpe,args:[r,s,u??[hm]],functionName:\"reverseWithGateways\",blockNumber:n,blockTag:o},y=Ae(e,Xr,\"readContract\"),[v]=await y(h);return v||null}catch(h){if(f)throw h;if(kw(h))return null;throw h}}var fme=x(()=>{c();fd();V1();BI();LS();Zt();Ic()});async function dme(e,t){let{blockNumber:r,blockTag:n,name:o}=t,{chain:s}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!s)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return mu({blockNumber:r,chain:s,contract:\"ensUniversalResolver\"})})(),f=s?.ensTlds;if(f&&!f.some(m=>o.endsWith(m)))throw new Error(`${o} is not a valid ENS TLD (${f?.join(\", \")}) for chain \"${s.name}\" (id: ${s.id}).`);let[d]=await Ae(e,Xr,\"readContract\")({address:u,abi:[{inputs:[{type:\"bytes\"}],name:\"findResolver\",outputs:[{type:\"address\"},{type:\"bytes32\"},{type:\"uint256\"}],stateMutability:\"view\",type:\"function\"}],functionName:\"findResolver\",args:[ot(Bw(o))],blockNumber:r,blockTag:n});return d}var pme=x(()=>{c();V1();tt();PI();Zt();Ic()});async function UI(e,t){let{account:r=e.account,blockNumber:n,blockTag:o=\"latest\",blobs:s,data:u,gas:f,gasPrice:d,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:y,to:v,value:E,...C}=t,B=r?Xe(r):void 0;try{Vo(t);let M=(typeof n==\"bigint\"?le(n):void 0)||o,U=e.chain?.formatters?.transactionRequest?.format,N=(U||ko)({...Ns(C,{format:U}),account:B,blobs:s,data:u,gas:f,gasPrice:d,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:y,to:v,value:E},\"createAccessList\"),j=await e.request({method:\"eth_createAccessList\",params:[N,M]});return{accessList:j.accessList,gasUsed:BigInt(j.gasUsed)}}catch(R){throw ww(R,{...t,account:B,chain:e.chain})}}var wV=x(()=>{c();Yr();tt();fI();_0();Us();Cl()});async function mme(e){let t=m0(e,{method:\"eth_newBlockFilter\"}),r=await e.request({method:\"eth_newBlockFilter\"});return{id:r,request:t(r),type:\"block\"}}var hme=x(()=>{c();oS()});async function DI(e,{address:t,args:r,event:n,events:o,fromBlock:s,strict:u,toBlock:f}={}){let d=o??(n?[n]:void 0),m=m0(e,{method:\"eth_newFilter\"}),h=[];d&&(h=[d.flatMap(E=>ed({abi:[E],eventName:E.name,args:r}))],n&&(h=h[0]));let y=await e.request({method:\"eth_newFilter\",params:[{address:t,fromBlock:typeof s==\"bigint\"?le(s):s,toBlock:typeof f==\"bigint\"?le(f):f,...h.length?{topics:h}:{}}]});return{abi:d,args:r,eventName:n?n.name:void 0,fromBlock:s,id:y,request:m(y),strict:!!u,toBlock:f,type:\"event\"}}var EV=x(()=>{c();Tv();tt();oS()});async function HI(e){let t=m0(e,{method:\"eth_newPendingTransactionFilter\"}),r=await e.request({method:\"eth_newPendingTransactionFilter\"});return{id:r,request:t(r),type:\"transaction\"}}var AV=x(()=>{c();oS()});async function yme(e,{address:t,blockNumber:r,blockTag:n=e.experimental_blockTag??\"latest\"}){if(e.batch?.multicall&&e.chain?.contracts?.multicall3){let u=e.chain.contracts.multicall3.address,f=Ct({abi:Pl,functionName:\"getEthBalance\",args:[t]}),{data:d}=await Ae(e,hu,\"call\")({to:u,data:f,blockNumber:r,blockTag:n});return pi({abi:Pl,functionName:\"getEthBalance\",args:[t],data:d||\"0x\"})}let o=typeof r==\"bigint\"?le(r):void 0,s=await e.request({method:\"eth_getBalance\",params:[t,o||n]});return BigInt(s)}var bme=x(()=>{c();fd();dm();za();tt();Zt();W1()});async function gme(e){let t=await e.request({method:\"eth_blobBaseFee\"});return BigInt(t)}var xme=x(()=>{c()});async function vme(e,{blockHash:t,blockNumber:r,blockTag:n=\"latest\"}={}){let o=r!==void 0?le(r):void 0,s;return t?s=await e.request({method:\"eth_getBlockTransactionCountByHash\",params:[t]},{dedupe:!0}):s=await e.request({method:\"eth_getBlockTransactionCountByNumber\",params:[o||n]},{dedupe:!!o}),Zr(s)}var wme=x(()=>{c();Zn();tt()});async function Ji(e,{address:t,blockNumber:r,blockTag:n=\"latest\"}){let o=r!==void 0?le(r):void 0,s=await e.request({method:\"eth_getCode\",params:[t,o||n]},{dedupe:!!o});if(s!==\"0x\")return s}var Q1=x(()=>{c();tt()});async function Eme(e,{address:t,blockNumber:r,blockTag:n=\"latest\"}){let o=await Ji(e,{address:t,...r!==void 0?{blockNumber:r}:{blockTag:n}});if(o&&$t(o)===23&&o.startsWith(\"0xef0100\"))return hn(La(o,3,23))}var Ame=x(()=>{c();El();ji();Yf();Q1()});var LI,Sme=x(()=>{c();ht();LI=class extends ae{constructor({address:t}){super(`No EIP-712 domain found on contract \"${t}\".`,{metaMessages:[\"Ensure that:\",`- The contract is deployed at the address \"${t}\".`,\"- `eip712Domain()` function exists on the contract.\",\"- `eip712Domain()` function matches signature to ERC-5267 specification.\"],name:\"Eip712DomainNotFoundError\"})}}});async function Cme(e,t){let{address:r,factory:n,factoryData:o}=t;try{let[s,u,f,d,m,h,y]=await Ae(e,Xr,\"readContract\")({abi:bdt,address:r,functionName:\"eip712Domain\",factory:n,factoryData:o});return{domain:{name:u,version:f,chainId:Number(d),verifyingContract:m,salt:h},extensions:y,fields:s}}catch(s){let u=s;throw u.name===\"ContractFunctionExecutionError\"&&u.cause.name===\"ContractFunctionZeroDataError\"?new LI({address:r}):u}}var bdt,Tme=x(()=>{c();Sme();Zt();Ic();bdt=[{inputs:[],name:\"eip712Domain\",outputs:[{name:\"fields\",type:\"bytes1\"},{name:\"name\",type:\"string\"},{name:\"version\",type:\"string\"},{name:\"chainId\",type:\"uint256\"},{name:\"verifyingContract\",type:\"address\"},{name:\"salt\",type:\"bytes32\"},{name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"}]});function _me(e){return{baseFeePerGas:e.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(t=>t.map(r=>BigInt(r)))}}var kme=x(()=>{c()});async function Bme(e,{blockCount:t,blockNumber:r,blockTag:n=\"latest\",rewardPercentiles:o}){let s=typeof r==\"bigint\"?le(r):void 0,u=await e.request({method:\"eth_feeHistory\",params:[le(t),s||n,o]},{dedupe:!!s});return _me(u)}var Ime=x(()=>{c();tt();kme()});async function Pme(e,{filter:t}){let r=t.strict??!1,o=(await t.request({method:\"eth_getFilterLogs\",params:[t.id]})).map(s=>go(s));return t.abi?cd({abi:t.abi,logs:o,strict:r}):o}var Rme=x(()=>{c();BS();_l()});function SV(e,t){if(e.length!==t.length)throw new bv({expectedLength:e.length,givenLength:t.length});let r=[];for(let n=0;n<e.length;n++){let o=e[n],s=t[n];r.push(Mme(o,s))}return Cn(r)}function Mme(e,t,r=!1){if(e===\"address\"){let u=t;if(!wt(u))throw new vr({address:u});return Qr(u.toLowerCase(),{size:r?32:null})}if(e===\"string\")return ks(t);if(e===\"bytes\")return t;if(e===\"bool\")return Qr(f1(t),{size:r?32:1});let n=e.match(Sv);if(n){let[u,f,d=\"256\"]=n,m=Number.parseInt(d,10)/8;return le(t,{size:r?32:m,signed:f===\"int\"})}let o=e.match(Y9);if(o){let[u,f]=o;if(Number.parseInt(f,10)!==(t.length-2)/2)throw new vv({expectedSize:Number.parseInt(f,10),givenSize:(t.length-2)/2});return Qr(t,{dir:\"right\",size:r?32:null})}let s=e.match(Tfe);if(s&&Array.isArray(t)){let[u,f]=s,d=[];for(let m=0;m<t.length;m++)d.push(Mme(f,t[m],!0));return d.length===0?\"0x\":Cn(d)}throw new H9(e)}var Ome=x(()=>{c();yo();Ec();ui();Jn();Gp();tt();X9()});function Nme(e){let{authorizationList:t}=e;if(t)for(let r of t){let{chainId:n}=r,o=r.address;if(!wt(o))throw new vr({address:o});if(n<0)throw new Rl({chainId:n})}zI(e)}function Ume(e){let{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new fw;for(let r of t){let n=$t(r),o=Zr(La(r,0,1));if(n!==32)throw new zB({hash:r,size:n});if(o!==1)throw new FB({hash:r,version:o})}}zI(e)}function zI(e){let{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:n,to:o}=e;if(t<=0)throw new Rl({chainId:t});if(o&&!wt(o))throw new vr({address:o});if(n&&n>ad)throw new Os({maxFeePerGas:n});if(r&&n&&r>n)throw new lu({maxFeePerGas:n,maxPriorityFeePerGas:r})}function Dme(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:o,to:s}=e;if(t<=0)throw new Rl({chainId:t});if(s&&!wt(s))throw new vr({address:s});if(r||o)throw new ae(\"`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.\");if(n&&n>ad)throw new Os({maxFeePerGas:n})}function Hme(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:o,to:s}=e;if(s&&!wt(s))throw new vr({address:s});if(typeof t<\"u\"&&t<=0)throw new Rl({chainId:t});if(r||o)throw new ae(\"`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.\");if(n&&n>ad)throw new Os({maxFeePerGas:n})}var Lme=x(()=>{c();nw();Ec();ht();MG();$1();fm();ui();ji();Yf();Zn()});function Z1(e){if(!e||e.length===0)return[];let t=[];for(let r=0;r<e.length;r++){let{address:n,storageKeys:o}=e[r];for(let s=0;s<o.length;s++)if(o[s].length-2!==64)throw new pB({storageKey:o[s]});if(!wt(n,{strict:!1}))throw new vr({address:n});t.push([n,o])}return t}var CV=x(()=>{c();Ec();Ac();ui()});function J1(e,t){let r=dw(e);return r===\"eip1559\"?vdt(e,t):r===\"eip2930\"?wdt(e,t):r===\"eip4844\"?xdt(e,t):r===\"eip7702\"?gdt(e,t):Edt(e,t)}function gdt(e,t){let{authorizationList:r,chainId:n,gas:o,nonce:s,to:u,value:f,maxFeePerGas:d,maxPriorityFeePerGas:m,accessList:h,data:y}=e;Nme(e);let v=Z1(h),E=zme(r);return Cn([\"0x04\",Qi([le(n),s?le(s):\"0x\",m?le(m):\"0x\",d?le(d):\"0x\",o?le(o):\"0x\",u??\"0x\",f?le(f):\"0x\",y??\"0x\",v,E,...q0(e,t)])])}function xdt(e,t){let{chainId:r,gas:n,nonce:o,to:s,value:u,maxFeePerBlobGas:f,maxFeePerGas:d,maxPriorityFeePerGas:m,accessList:h,data:y}=e;Ume(e);let v=e.blobVersionedHashes,E=e.sidecars;if(e.blobs&&(typeof v>\"u\"||typeof E>\"u\")){let O=typeof e.blobs[0]==\"string\"?e.blobs:e.blobs.map(K=>yr(K)),N=e.kzg,j=uw({blobs:O,kzg:N});if(typeof v>\"u\"&&(v=HB({commitments:j})),typeof E>\"u\"){let K=lw({blobs:O,commitments:j,kzg:N});E=jB({blobs:O,commitments:j,proofs:K})}}let C=Z1(h),B=[le(r),o?le(o):\"0x\",m?le(m):\"0x\",d?le(d):\"0x\",n?le(n):\"0x\",s??\"0x\",u?le(u):\"0x\",y??\"0x\",C,f?le(f):\"0x\",v??[],...q0(e,t)],R=[],M=[],U=[];if(E)for(let O=0;O<E.length;O++){let{blob:N,commitment:j,proof:K}=E[O];R.push(N),M.push(j),U.push(K)}return Cn([\"0x03\",E?Qi([B,R,M,U]):Qi(B)])}function vdt(e,t){let{chainId:r,gas:n,nonce:o,to:s,value:u,maxFeePerGas:f,maxPriorityFeePerGas:d,accessList:m,data:h}=e;zI(e);let y=Z1(m),v=[le(r),o?le(o):\"0x\",d?le(d):\"0x\",f?le(f):\"0x\",n?le(n):\"0x\",s??\"0x\",u?le(u):\"0x\",h??\"0x\",y,...q0(e,t)];return Cn([\"0x02\",Qi(v)])}function wdt(e,t){let{chainId:r,gas:n,data:o,nonce:s,to:u,value:f,accessList:d,gasPrice:m}=e;Dme(e);let h=Z1(d),y=[le(r),s?le(s):\"0x\",m?le(m):\"0x\",n?le(n):\"0x\",u??\"0x\",f?le(f):\"0x\",o??\"0x\",h,...q0(e,t)];return Cn([\"0x01\",Qi(y)])}function Edt(e,t){let{chainId:r=0,gas:n,data:o,nonce:s,to:u,value:f,gasPrice:d}=e;Hme(e);let m=[s?le(s):\"0x\",d?le(d):\"0x\",n?le(n):\"0x\",u??\"0x\",f?le(f):\"0x\",o??\"0x\"];if(t){let h=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(r>0)return BigInt(r*2)+BigInt(35n+t.v-27n);let E=27n+(t.v===27n?0n:1n);if(t.v!==E)throw new fB({v:t.v});return E})(),y=Mn(t.r),v=Mn(t.s);m=[...m,le(h),y===\"0x00\"?\"0x\":y,v===\"0x00\"?\"0x\":v]}else r>0&&(m=[...m,le(r),\"0x\",\"0x\"]);return Qi(m)}function q0(e,t){let r=t??e,{v:n,yParity:o}=r;if(typeof r.r>\"u\")return[];if(typeof r.s>\"u\")return[];if(typeof n>\"u\"&&typeof o>\"u\")return[];let s=Mn(r.r),u=Mn(r.s);return[typeof o==\"number\"?o?le(1):\"0x\":n===0n?\"0x\":n===1n?le(1):n===27n?\"0x\":le(1),s===\"0x00\"?\"0x\":s,u===\"0x00\"?\"0x\":u]}var Pw=x(()=>{c();Ac();Fme();NB();UB();RG();OG();Jn();Vp();tt();Kv();Lme();qB();CV()});function zme(e){if(!e||e.length===0)return[];let t=[];for(let r of e){let{chainId:n,nonce:o,...s}=r,u=r.address;t.push([n?ot(n):\"0x\",u,o?ot(o):\"0x\",...q0({},s)])}return t}var Fme=x(()=>{c();tt();Pw()});async function jme({address:e,authorization:t,signature:r}){return di(hn(e),await C0({authorization:t,signature:r}))}var qme=x(()=>{c();El();U0();xS()});function $me(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(FI.get(r))return FI.get(r);let n=e().finally(()=>FI.delete(r));return FI.set(r,n),n}var FI,Gme=x(()=>{c();d0();FI=new ci(8192)});function Vme(e,t={}){return async(r,n={})=>{let{dedupe:o=!1,methods:s,retryDelay:u=150,retryCount:f=3,uid:d}={...t,...n},{method:m}=r;if(s?.exclude?.includes(m))throw new em(new Error(\"method not supported\"),{method:m});if(s?.include&&!s.include.includes(m))throw new em(new Error(\"method not supported\"),{method:m});let h=o?Sdt(`${d}.${or(r)}`):void 0;return $me(()=>hd(async()=>{try{return await e(r)}catch(y){let v=y;switch(v.code){case v1.code:throw new v1(v);case w1.code:throw new w1(v);case E1.code:throw new E1(v,{method:r.method});case A1.code:throw new A1(v);case nd.code:throw new nd(v);case Sc.code:throw new Sc(v);case S1.code:throw new S1(v);case Al.code:throw new Al(v);case C1.code:throw new C1(v);case em.code:throw new em(v,{method:r.method});case b0.code:throw new b0(v);case T1.code:throw new T1(v);case Fn.code:throw new Fn(v);case _1.code:throw new _1(v);case k1.code:throw new k1(v);case B1.code:throw new B1(v);case I1.code:throw new I1(v);case Vi.code:throw new Vi(v);case tm.code:throw new tm(v);case P1.code:throw new P1(v);case R1.code:throw new R1(v);case M1.code:throw new M1(v);case O1.code:throw new O1(v);case N1.code:throw new N1(v);case rm.code:throw new rm(v);case 5e3:throw new Fn(v);case Hv.code:throw new Hv(v);default:throw y instanceof ae?y:new cS(v)}}},{delay:({count:y,error:v})=>{if(v&&v instanceof uu){let E=v?.headers?.get(\"Retry-After\");if(E?.match(/\\\\d/))return Number.parseInt(E,10)*1e3}return~~(1<<y)*u},retryCount:f,shouldRetry:({error:y})=>Adt(y)}),{enabled:o,id:h})}}function Adt(e){return\"code\"in e&&typeof e.code==\"number\"?e.code===-1||e.code===b0.code||e.code===nd.code||e.code===429:e instanceof uu&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function Sdt(e,t=0){let r=3735928559^t,n=1103547991^t;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);r=Math.imul(r^s,2654435761),n=Math.imul(n^s,1597334677)}return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>16,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>16,3266489909),(4294967296*(2097151&n)+(r>>>0)).toString(36)}var Kme=x(()=>{c();ht();x1();U1();Gme();qS();Fa()});function g(e){let t={formatters:void 0,fees:void 0,serializers:void 0,...e};function r(n){return o=>{let s=typeof o==\"function\"?o(n):o,u={...n,...s};return Object.assign(u,{extend:r(u)})}}return Object.assign(t,{extend:r(t)})}function TV(){return{}}var _=x(()=>{c()});function _V(e){let{source:t}=e,r=new Map,n=new ci(8192),o=new Map,s=({address:u,chainId:f})=>`${u}.${f}`;return{async consume({address:u,chainId:f,client:d}){let m=s({address:u,chainId:f}),h=this.get({address:u,chainId:f,client:d});this.increment({address:u,chainId:f});let y=await h;return await t.set({address:u,chainId:f},y),n.set(m,y),y},async increment({address:u,chainId:f}){let d=s({address:u,chainId:f}),m=r.get(d)??0;r.set(d,m+1)},async get({address:u,chainId:f,client:d}){let m=s({address:u,chainId:f}),h=o.get(m);return h||(h=(async()=>{try{let v=await t.get({address:u,chainId:f,client:d}),E=n.get(m)??0;return E>0&&v<=E?E+1:(n.delete(m),v)}finally{this.reset({address:u,chainId:f})}})(),o.set(m,h)),(r.get(m)??0)+await h},reset({address:u,chainId:f}){let d=s({address:u,chainId:f});r.delete(d),o.delete(d)}}}function Cdt(){return{async get(e){let{address:t,client:r}=e;return M0(r,{address:t,blockTag:\"pending\"})},set(){}}}var GYt,Wme=x(()=>{c();CS();d0();GYt=_V({source:Cdt()})});function GS(e,{errorInstance:t=new Error(\"timed out\"),timeout:r,signal:n}){return new Promise((o,s)=>{(async()=>{let u;try{let f=new AbortController;r>0&&(u=setTimeout(()=>{n?f.abort():s(t)},r)),o(await e({signal:f?.signal||null}))}catch(f){f?.name===\"AbortError\"&&s(t),s(f)}finally{clearTimeout(u)}})()})}var kV=x(()=>{c()});function Tdt(){return{current:0,take(){return this.current++},reset(){this.current=0}}}var BV,Qme=x(()=>{c();BV=Tdt()});function Zme(e,t={}){let{url:r,headers:n}=_dt(e);return{async request(o){let{body:s,fetchFn:u=t.fetchFn??fetch,onRequest:f=t.onRequest,onResponse:d=t.onResponse,timeout:m=t.timeout??1e4}=o,h={...t.fetchOptions??{},...o.fetchOptions??{}},{headers:y,method:v,signal:E}=h;try{let C=await GS(async({signal:R})=>{let M={...h,body:Array.isArray(s)?or(s.map(j=>({jsonrpc:\"2.0\",id:j.id??BV.take(),...j}))):or({jsonrpc:\"2.0\",id:s.id??BV.take(),...s}),headers:{...n,\"Content-Type\":\"application/json\",...y},method:v||\"POST\",signal:E||(m>0?R:null)},U=new Request(r,M),O=await f?.(U,M)??{...M,url:r};return await u(O.url??r,O)},{errorInstance:new sS({body:s,url:r}),timeout:m,signal:!0});d&&await d(C);let B;if(C.headers.get(\"Content-Type\")?.startsWith(\"application/json\"))B=await C.json();else{B=await C.text();try{B=JSON.parse(B||\"{}\")}catch(R){if(C.ok)throw R;B={error:B}}}if(!C.ok){if(typeof B.error?.code==\"number\"&&typeof B.error?.message==\"string\")return B;throw new uu({body:s,details:or(B.error)||C.statusText,headers:C.headers,status:C.status,url:r})}return B}catch(C){throw C instanceof uu||C instanceof sS?C:new uu({body:s,cause:C,url:r})}}}}function _dt(e){try{let t=new URL(e),r=(()=>{if(t.username){let n=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username=\"\",t.password=\"\",{url:t.toString(),headers:{Authorization:`Basic ${btoa(n)}`}}}})();return{url:t.toString(),...r}}catch{return{url:e}}}var Jme=x(()=>{c();x1();kV();Fa();Qme()});var Yme,Xme=x(()=>{c();Yme=`\\u0019Ethereum Signed Message:\\n`});function ehe(e){let t=typeof e==\"string\"?ks(e):typeof e.raw==\"string\"?e.raw:yr(e.raw),r=ks(`${Yme}${$t(t)}`);return mr([r,t])}var the=x(()=>{c();Xme();Jn();ji();tt()});function wm(e,t){return Gt(ehe(e),t)}var jI=x(()=>{c();Is();the()});var qI,$I,GI,rhe=x(()=>{c();Fa();ht();qI=class extends ae{constructor({domain:t}){super(`Invalid domain \"${or(t)}\".`,{metaMessages:[\"Must be a valid EIP-712 domain.\"]})}},$I=class extends ae{constructor({primaryType:t,types:r}){super(`Invalid primary type \\\\`${t}\\\\` must be one of \\\\`${JSON.stringify(Object.keys(r))}\\\\`.`,{docsPath:\"/api/glossary/Errors#typeddatainvalidprimarytypeerror\",metaMessages:[\"Check that the primary type is a key in `types`.\"]})}},GI=class extends ae{constructor({type:t}){super(`Struct type \"${t}\" is invalid.`,{metaMessages:[\"Struct type must not be a Solidity type.\"],name:\"InvalidStructTypeError\"})}}});function nhe(e){let{domain:t,message:r,primaryType:n,types:o}=e,s=(d,m)=>{let h={...m};for(let y of d){let{name:v,type:E}=y;E===\"address\"&&(h[v]=h[v].toLowerCase())}return h},u=o.EIP712Domain?t?s(o.EIP712Domain,t):{}:{},f=(()=>{if(n!==\"EIP712Domain\")return s(o[n],r)})();return or({domain:u,message:f,primaryType:n,types:o})}function VI(e){let{domain:t,message:r,primaryType:n,types:o}=e,s=(u,f)=>{for(let d of u){let{name:m,type:h}=d,y=f[m],v=h.match(Sv);if(v&&(typeof y==\"number\"||typeof y==\"bigint\")){let[B,R,M]=v;le(y,{signed:R===\"int\",size:Number.parseInt(M,10)/8})}if(h===\"address\"&&typeof y==\"string\"&&!wt(y))throw new vr({address:y});let E=h.match(Y9);if(E){let[B,R]=E;if(R&&$t(y)!==Number.parseInt(R,10))throw new vv({expectedSize:Number.parseInt(R,10),givenSize:$t(y)})}let C=o[h];C&&(kdt(h),s(C,y))}};if(o.EIP712Domain&&t){if(typeof t!=\"object\")throw new qI({domain:t});s(o.EIP712Domain,t)}if(n!==\"EIP712Domain\")if(o[n])s(o[n],r);else throw new $I({primaryType:n,types:o})}function KI({domain:e}){return[typeof e?.name==\"string\"&&{name:\"name\",type:\"string\"},e?.version&&{name:\"version\",type:\"string\"},(typeof e?.chainId==\"number\"||typeof e?.chainId==\"bigint\")&&{name:\"chainId\",type:\"uint256\"},e?.verifyingContract&&{name:\"verifyingContract\",type:\"address\"},e?.salt&&{name:\"salt\",type:\"bytes32\"}].filter(Boolean)}function kdt(e){if(e===\"address\"||e===\"bool\"||e===\"string\"||e.startsWith(\"bytes\")||e.startsWith(\"uint\")||e.startsWith(\"int\"))throw new GI({type:e})}var IV=x(()=>{c();yo();Ec();rhe();ui();ji();tt();X9();Fa()});function yd(e){let{domain:t={},message:r,primaryType:n}=e,o={EIP712Domain:KI({domain:t}),...e.types};VI({domain:t,message:r,primaryType:n,types:o});let s=[\"0x1901\"];return t&&s.push(ohe({domain:t,types:o})),n!==\"EIP712Domain\"&&s.push(PV({data:r,primaryType:n,types:o})),Gt(mr(s))}function ohe({domain:e,types:t}){return PV({data:e,primaryType:\"EIP712Domain\",types:t})}function PV({data:e,primaryType:t,types:r}){let n=ahe({data:e,primaryType:t,types:r});return Gt(n)}function ahe({data:e,primaryType:t,types:r}){let n=[{type:\"bytes32\"}],o=[Bdt({primaryType:t,types:r})];for(let s of r[t]){let[u,f]=she({types:r,name:s.name,type:s.type,value:e[s.name]});n.push(u),o.push(f)}return zn(n,o)}function Bdt({primaryType:e,types:t}){let r=ot(Idt({primaryType:e,types:t}));return Gt(r)}function Idt({primaryType:e,types:t}){let r=\"\",n=ihe({primaryType:e,types:t});n.delete(e);let o=[e,...Array.from(n).sort()];for(let s of o)r+=`${s}(${t[s].map(({name:u,type:f})=>`${f} ${u}`).join(\",\")})`;return r}function ihe({primaryType:e,types:t},r=new Set){let o=e.match(/^\\\\w*/u)?.[0];if(r.has(o)||t[o]===void 0)return r;r.add(o);for(let s of t[o])ihe({primaryType:s.type,types:t},r);return r}function she({types:e,name:t,type:r,value:n}){if(e[r]!==void 0)return[{type:\"bytes32\"},Gt(ahe({data:n,primaryType:r,types:e}))];if(r===\"bytes\")return[{type:\"bytes32\"},Gt(n)];if(r===\"string\")return[{type:\"bytes32\"},Gt(ot(n))];if(r.lastIndexOf(\"]\")===r.length-1){let o=r.slice(0,r.lastIndexOf(\"[\")),s=n.map(u=>she({name:t,type:o,types:e,value:u}));return[{type:\"bytes32\"},Gt(zn(s.map(([u])=>u),s.map(([,u])=>u)))]}return[{type:r},n]}var WI=x(()=>{c();cu();Jn();tt();Is();IV()});var che,uhe=x(()=>{c();che=\"0x6492649264926492649264926492649264926492649264926492649264926492\"});var QI,lhe=x(()=>{c();QI=class extends Map{constructor(t){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){let n=this.keys().next().value;n&&this.delete(n)}return this}}});var Pdt,ZI,fhe=x(()=>{c();lhe();Pdt={checksum:new QI(8192)},ZI=Pdt.checksum});function Rc(e,t={}){let{as:r=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,n=Zf(MS(e));return r===\"Bytes\"?n:sn(n)}function RV(e,t={}){let{as:r=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,n=O0(MS(e));return r===\"Bytes\"?n:sn(n)}function dhe(e){return Zi(e)&&Cr(e)===32}var $0=x(()=>{c();Av();TS();pu();Tr()});function phe(e,t={}){let{compressed:r}=t,{prefix:n,x:o,y:s}=e;if(r===!1||typeof o==\"bigint\"&&typeof s==\"bigint\"){if(n!==4)throw new JI({prefix:n,cause:new NV});return}if(r===!0||typeof o==\"bigint\"&&typeof s>\"u\"){if(n!==3&&n!==2)throw new JI({prefix:n,cause:new OV});return}throw new MV({publicKey:e})}function VS(e){let t=(()=>{if(Zi(e))return YI(e);if(xpe(e))return Mdt(e);let{prefix:r,x:n,y:o}=e;return typeof n==\"bigint\"&&typeof o==\"bigint\"?{prefix:r??4,x:n,y:o}:{prefix:r,x:n}})();return phe(t),t}function Mdt(e){return YI(sn(e))}function YI(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new UV({publicKey:e});if(e.length===130){let n=BigInt(vt(e,0,32)),o=BigInt(vt(e,32,64));return{prefix:4,x:n,y:o}}if(e.length===132){let n=Number(vt(e,0,1)),o=BigInt(vt(e,1,33)),s=BigInt(vt(e,33,65));return{prefix:n,x:o,y:s}}let t=Number(vt(e,0,1)),r=BigInt(vt(e,1,33));return{prefix:t,x:r}}function mhe(e,t={}){return Ds(X1(e,t))}function X1(e,t={}){phe(e);let{prefix:r,x:n,y:o}=e,{includePrefix:s=!0}=t;return Jt(s?we(r,{size:1}):\"0x\",we(n,{size:32}),typeof o==\"bigint\"?we(o,{size:32}):\"0x\")}var MV,JI,OV,NV,UV,Rw=x(()=>{c();pu();ca();Tr();gw();MV=class extends De{constructor({publicKey:t}){super(`Value \\\\`${Bl(t)}\\\\` is not a valid public key.`,{metaMessages:[\"Public key must contain:\",\"- an `x` and `prefix` value (compressed)\",\"- an `x`, `y`, and `prefix` value (uncompressed)\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidError\"})}},JI=class extends De{constructor({prefix:t,cause:r}){super(`Prefix \"${t}\" is invalid.`,{cause:r}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidPrefixError\"})}},OV=class extends De{constructor(){super(\"Prefix must be 2 or 3 for compressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidCompressedPrefixError\"})}},NV=class extends De{constructor(){super(\"Prefix must be 4 for uncompressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidUncompressedPrefixError\"})}},UV=class extends De{constructor({publicKey:t}){super(`Value \\\\`${t}\\\\` is an invalid public key size.`,{metaMessages:[\"Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).\",`Received ${Cr(H0(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidSerializedSizeError\"})}}});function mi(e,t={}){let{strict:r=!0}=t;if(!Odt.test(e))throw new XI({address:e,cause:new DV});if(r){if(e.toLowerCase()===e)return;if(eg(e)!==e)throw new XI({address:e,cause:new HV})}}function eg(e){if(ZI.has(e))return ZI.get(e);mi(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=Rc(XB(t),{as:\"Bytes\"}),n=t.split(\"\");for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&n[s]&&(n[s]=n[s].toUpperCase()),(r[s>>1]&15)>=8&&n[s+1]&&(n[s+1]=n[s+1].toUpperCase());let o=`0x${n.join(\"\")}`;return ZI.set(e,o),o}function Ndt(e,t={}){let{checksum:r=!1}=t;return mi(e),r?eg(e):e}function Yi(e,t={}){let r=Rc(`0x${X1(e).slice(4)}`).substring(26);return Ndt(`0x${r}`,t)}function WS(e,t){return mi(e,{strict:!1}),mi(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()}function tg(e,t={}){let{strict:r=!0}=t??{};try{return mi(e,{strict:r}),!0}catch{return!1}}var Odt,XI,DV,HV,bu=x(()=>{c();pu();fhe();ca();$0();Rw();Odt=/^0x[a-fA-F0-9]{40}$/;XI=class extends De{constructor({address:t,cause:r}){super(`Address \"${t}\" is invalid.`,{cause:r}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidAddressError\"})}},DV=class extends De{constructor(){super(\"Address is not a 20 byte (40 hexadecimal character) value.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidInputError\"})}},HV=class extends De{constructor(){super(\"Address does not match its checksum counterpart.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidChecksumError\"})}}});var hhe,yhe,eP,WXt,QXt,ZXt,JXt,YXt,XXt,eer,ter,rer,ner,oer,aer,ier,ser,cer,uer,ler,fer,der,per,mer,her,yer,ber,ger,xer,ver,wer,Eer,Aer,Ser,Cer,Ter,_er,ker,Ber,Ier,Per,Rer,Mer,Oer,Ner,Uer,Der,Her,Ler,zer,Fer,jer,qer,$er,Ger,Ver,Ker,Wer,Qer,Zer,Jer,Yer,Xer,etr,ttr,rtr,ntr,otr,atr,itr,str,ctr,utr,ltr,ftr,dtr,ptr,mtr,htr,ytr,btr,gtr,xtr,vtr,wtr,Etr,Atr,Str,Ctr,Ttr,_tr,ktr,Btr,Itr,Ptr,Rtr,Mtr,Otr,LV,tP=x(()=>{c();hhe=/^(.*)\\\\[([0-9]*)\\\\]$/,yhe=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,eP=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,WXt=2n**(8n-1n)-1n,QXt=2n**(16n-1n)-1n,ZXt=2n**(24n-1n)-1n,JXt=2n**(32n-1n)-1n,YXt=2n**(40n-1n)-1n,XXt=2n**(48n-1n)-1n,eer=2n**(56n-1n)-1n,ter=2n**(64n-1n)-1n,rer=2n**(72n-1n)-1n,ner=2n**(80n-1n)-1n,oer=2n**(88n-1n)-1n,aer=2n**(96n-1n)-1n,ier=2n**(104n-1n)-1n,ser=2n**(112n-1n)-1n,cer=2n**(120n-1n)-1n,uer=2n**(128n-1n)-1n,ler=2n**(136n-1n)-1n,fer=2n**(144n-1n)-1n,der=2n**(152n-1n)-1n,per=2n**(160n-1n)-1n,mer=2n**(168n-1n)-1n,her=2n**(176n-1n)-1n,yer=2n**(184n-1n)-1n,ber=2n**(192n-1n)-1n,ger=2n**(200n-1n)-1n,xer=2n**(208n-1n)-1n,ver=2n**(216n-1n)-1n,wer=2n**(224n-1n)-1n,Eer=2n**(232n-1n)-1n,Aer=2n**(240n-1n)-1n,Ser=2n**(248n-1n)-1n,Cer=2n**(256n-1n)-1n,Ter=-(2n**(8n-1n)),_er=-(2n**(16n-1n)),ker=-(2n**(24n-1n)),Ber=-(2n**(32n-1n)),Ier=-(2n**(40n-1n)),Per=-(2n**(48n-1n)),Rer=-(2n**(56n-1n)),Mer=-(2n**(64n-1n)),Oer=-(2n**(72n-1n)),Ner=-(2n**(80n-1n)),Uer=-(2n**(88n-1n)),Der=-(2n**(96n-1n)),Her=-(2n**(104n-1n)),Ler=-(2n**(112n-1n)),zer=-(2n**(120n-1n)),Fer=-(2n**(128n-1n)),jer=-(2n**(136n-1n)),qer=-(2n**(144n-1n)),$er=-(2n**(152n-1n)),Ger=-(2n**(160n-1n)),Ver=-(2n**(168n-1n)),Ker=-(2n**(176n-1n)),Wer=-(2n**(184n-1n)),Qer=-(2n**(192n-1n)),Zer=-(2n**(200n-1n)),Jer=-(2n**(208n-1n)),Yer=-(2n**(216n-1n)),Xer=-(2n**(224n-1n)),etr=-(2n**(232n-1n)),ttr=-(2n**(240n-1n)),rtr=-(2n**(248n-1n)),ntr=-(2n**(256n-1n)),otr=2n**8n-1n,atr=2n**16n-1n,itr=2n**24n-1n,str=2n**32n-1n,ctr=2n**40n-1n,utr=2n**48n-1n,ltr=2n**56n-1n,ftr=2n**64n-1n,dtr=2n**72n-1n,ptr=2n**80n-1n,mtr=2n**88n-1n,htr=2n**96n-1n,ytr=2n**104n-1n,btr=2n**112n-1n,gtr=2n**120n-1n,xtr=2n**128n-1n,vtr=2n**136n-1n,wtr=2n**144n-1n,Etr=2n**152n-1n,Atr=2n**160n-1n,Str=2n**168n-1n,Ctr=2n**176n-1n,Ttr=2n**184n-1n,_tr=2n**192n-1n,ktr=2n**200n-1n,Btr=2n**208n-1n,Itr=2n**216n-1n,Ptr=2n**224n-1n,Rtr=2n**232n-1n,Mtr=2n**240n-1n,Otr=2n**248n-1n,LV=2n**256n-1n});function rg(e,t,r){let{checksumAddress:n,staticPosition:o}=r,s=jV(t.type);if(s){let[u,f]=s;return Ddt(e,{...t,type:f},{checksumAddress:n,length:u,staticPosition:o})}if(t.type===\"tuple\")return Fdt(e,t,{checksumAddress:n,staticPosition:o});if(t.type===\"address\")return Udt(e,{checksum:n});if(t.type===\"bool\")return Hdt(e);if(t.type.startsWith(\"bytes\"))return Ldt(e,t,{staticPosition:o});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return zdt(e,t);if(t.type===\"string\")return jdt(e,{staticPosition:o});throw new Mw(t.type)}function Udt(e,t={}){let{checksum:r=!1}=t,n=e.readBytes(32);return[(s=>r?eg(s):s)(sn(hpe(n,-20))),32]}function Ddt(e,t,r){let{checksumAddress:n,length:o,staticPosition:s}=r;if(!o){let d=ud(e.readBytes(zV)),m=s+d,h=m+ghe;e.setPosition(m);let y=ud(e.readBytes(ghe)),v=QS(t),E=0,C=[];for(let B=0;B<y;++B){e.setPosition(h+(v?B*32:E));let[R,M]=rg(e,t,{checksumAddress:n,staticPosition:h});E+=M,C.push(R)}return e.setPosition(s+32),[C,32]}if(QS(t)){let d=ud(e.readBytes(zV)),m=s+d,h=[];for(let y=0;y<o;++y){e.setPosition(m+y*32);let[v]=rg(e,t,{checksumAddress:n,staticPosition:m});h.push(v)}return e.setPosition(s+32),[h,32]}let u=0,f=[];for(let d=0;d<o;++d){let[m,h]=rg(e,t,{checksumAddress:n,staticPosition:s+u});u+=h,f.push(m)}return[f,u]}function Hdt(e){return[bpe(e.readBytes(32),{size:32}),32]}function Ldt(e,t,{staticPosition:r}){let[n,o]=t.type.split(\"bytes\");if(!o){let u=ud(e.readBytes(32));e.setPosition(r+u);let f=ud(e.readBytes(32));if(f===0)return e.setPosition(r+32),[\"0x\",32];let d=e.readBytes(f);return e.setPosition(r+32),[sn(d),32]}return[sn(e.readBytes(Number.parseInt(o,10),32)),32]}function zdt(e,t){let r=t.type.startsWith(\"int\"),n=Number.parseInt(t.type.split(\"int\")[1]||\"256\",10),o=e.readBytes(32);return[n>48?ype(o,{signed:r}):ud(o,{signed:r}),32]}function Fdt(e,t,r){let{checksumAddress:n,staticPosition:o}=r,s=t.components.length===0||t.components.some(({name:d})=>!d),u=s?[]:{},f=0;if(QS(t)){let d=ud(e.readBytes(zV)),m=o+d;for(let h=0;h<t.components.length;++h){let y=t.components[h];e.setPosition(m+f);let[v,E]=rg(e,y,{checksumAddress:n,staticPosition:m});f+=E,u[s?h:y?.name]=v}return e.setPosition(o+32),[u,32]}for(let d=0;d<t.components.length;++d){let m=t.components[d],[h,y]=rg(e,m,{checksumAddress:n,staticPosition:o});u[s?d:m?.name]=h,f+=y}return[u,f]}function jdt(e,{staticPosition:t}){let r=ud(e.readBytes(32)),n=t+r;e.setPosition(n);let o=ud(e.readBytes(32));if(o===0)return e.setPosition(t+32),[\"\",32];let s=e.readBytes(o,32),u=gpe($G(s));return e.setPosition(t+32),[u,32]}function xhe({checksumAddress:e,parameters:t,values:r}){let n=[];for(let o=0;o<t.length;o++)n.push(FV({checksumAddress:e,parameter:t[o],value:r[o]}));return n}function FV({checksumAddress:e=!1,parameter:t,value:r}){let n=t,o=jV(n.type);if(o){let[s,u]=o;return $dt(r,{checksumAddress:e,length:s,parameter:{...n,type:u}})}if(n.type===\"tuple\")return Qdt(r,{checksumAddress:e,parameter:n});if(n.type===\"address\")return qdt(r,{checksum:e});if(n.type===\"bool\")return Vdt(r);if(n.type.startsWith(\"uint\")||n.type.startsWith(\"int\")){let s=n.type.startsWith(\"int\"),[,,u=\"256\"]=eP.exec(n.type)??[];return Kdt(r,{signed:s,size:Number(u)})}if(n.type.startsWith(\"bytes\"))return Gdt(r,{type:n.type});if(n.type===\"string\")return Wdt(r);throw new Mw(n.type)}function rP(e){let t=0;for(let s=0;s<e.length;s++){let{dynamic:u,encoded:f}=e[s];u?t+=32:t+=Cr(f)}let r=[],n=[],o=0;for(let s=0;s<e.length;s++){let{dynamic:u,encoded:f}=e[s];u?(r.push(we(t+o,{size:32})),n.push(f),o+=Cr(f)):r.push(f)}return Jt(...r,...n)}function qdt(e,t){let{checksum:r=!1}=t;return mi(e,{strict:r}),{dynamic:!1,encoded:mm(e.toLowerCase())}}function $dt(e,t){let{checksumAddress:r,length:n,parameter:o}=t,s=n===null;if(!Array.isArray(e))throw new oP(e);if(!s&&e.length!==n)throw new nP({expectedLength:n,givenLength:e.length,type:`${o.type}[${n}]`});let u=!1,f=[];for(let d=0;d<e.length;d++){let m=FV({checksumAddress:r,parameter:o,value:e[d]});m.dynamic&&(u=!0),f.push(m)}if(s||u){let d=rP(f);if(s){let m=we(f.length,{size:32});return{dynamic:!0,encoded:f.length>0?Jt(m,d):m}}if(u)return{dynamic:!0,encoded:d}}return{dynamic:!1,encoded:Jt(...f.map(({encoded:d})=>d))}}function Gdt(e,{type:t}){let[,r]=t.split(\"bytes\"),n=Cr(e);if(!r){let o=e;return n%32!==0&&(o=ld(o,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:Jt(mm(we(n,{size:32})),o)}}if(n!==Number.parseInt(r,10))throw new ZS({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:ld(e)}}function Vdt(e){if(typeof e!=\"boolean\")throw new De(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:mm(nI(e))}}function Kdt(e,{signed:t,size:r}){if(typeof r==\"number\"){let n=2n**(BigInt(r)-(t?1n:0n))-1n,o=t?-n-1n:0n;if(e>n||e<o)throw new OS({max:n.toString(),min:o.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:we(e,{size:32,signed:t})}}function Wdt(e){let t=Il(e),r=Math.ceil(Cr(t)/32),n=[];for(let o=0;o<r;o++)n.push(ld(vt(t,o*32,(o+1)*32)));return{dynamic:!0,encoded:Jt(ld(we(Cr(t),{size:32})),...n)}}function Qdt(e,t){let{checksumAddress:r,parameter:n}=t,o=!1,s=[];for(let u=0;u<n.components.length;u++){let f=n.components[u],d=Array.isArray(e)?u:f.name,m=FV({checksumAddress:r,parameter:f,value:e[d]});s.push(m),m.dynamic&&(o=!0)}return{dynamic:o,encoded:o?rP(s):Jt(...s.map(({encoded:u})=>u))}}function jV(e){let t=e.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function QS(e){let{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(QS);let r=jV(e.type);return!!(r&&QS({...e,type:r[1]}))}var ghe,zV,vhe=x(()=>{c();Ow();bu();pu();ca();Tr();tP();ghe=32,zV=32});function YS(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(Jdt);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}var Jdt,aP,qV,$V,GV=x(()=>{c();ca();Jdt={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new $V({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new qV({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new aP({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new aP({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};aP=class extends De{constructor({offset:t}){super(`Offset \\\\`${t}\\\\` cannot be negative.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.NegativeOffsetError\"})}},qV=class extends De{constructor({length:t,position:r}){super(`Position \\\\`${r}\\\\` is out of bounds (\\\\`0 < position < ${t}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.PositionOutOfBoundsError\"})}},$V=class extends De{constructor({count:t,limit:r}){super(`Recursive read limit of \\\\`${r}\\\\` exceeded (recursive read count: \\\\`${t}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.RecursiveReadLimitExceededError\"})}}});function Nw(e,t,r={}){let{as:n=\"Array\",checksumAddress:o=!1}=r,s=typeof t==\"string\"?Ds(t):t,u=YS(s);if(du(s)===0&&e.length>0)throw new WV;if(du(s)&&du(s)<32)throw new KV({data:typeof t==\"string\"?t:sn(t),parameters:e,size:du(s)});let f=0,d=n===\"Array\"?[]:{};for(let m=0;m<e.length;++m){let h=e[m];u.setPosition(f);let[y,v]=rg(u,h,{checksumAddress:o,staticPosition:0});f+=v,n===\"Array\"?d.push(y):d[h.name??m]=y}return d}function G0(e,t,r){let{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new iP({expectedLength:e.length,givenLength:t.length});let o=xhe({checksumAddress:n,parameters:e,values:t}),s=rP(o);return s.length===0?\"0x\":s}function VV(e,t){if(e.length!==t.length)throw new iP({expectedLength:e.length,givenLength:t.length});let r=[];for(let n=0;n<e.length;n++){let o=e[n],s=t[n];r.push(VV.encode(o,s))}return Jt(...r)}function XS(e){return Array.isArray(e)&&typeof e[0]==\"string\"?T9(e):typeof e==\"string\"?T9(e):e}var KV,WV,nP,ZS,iP,oP,Mw,Ow=x(()=>{c();hv();bu();pu();ca();Tr();vhe();GV();tP();(function(e){function t(r,n,o=!1){if(r===\"address\"){let d=n;return mi(d),mm(d.toLowerCase(),o?32:0)}if(r===\"string\")return Il(n);if(r===\"bytes\")return n;if(r===\"bool\")return mm(nI(n),o?32:1);let s=r.match(eP);if(s){let[d,m,h=\"256\"]=s,y=Number.parseInt(h,10)/8;return we(n,{size:o?32:y,signed:m===\"int\"})}let u=r.match(yhe);if(u){let[d,m]=u;if(Number.parseInt(m,10)!==(n.length-2)/2)throw new ZS({expectedSize:Number.parseInt(m,10),value:n});return ld(n,o?32:0)}let f=r.match(hhe);if(f&&Array.isArray(n)){let[d,m]=f,h=[];for(let y=0;y<n.length;y++)h.push(t(m,n[y],!0));return h.length===0?\"0x\":Jt(...h)}throw new Mw(r)}e.encode=t})(VV||(VV={}));KV=class extends De{constructor({data:t,parameters:r,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${jp(r)})`,`Data:   ${t} (${n} bytes)`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.DataSizeTooSmallError\"})}},WV=class extends De{constructor(){super(\\'Cannot decode zero data (\"0x\") with ABI parameters.\\'),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.ZeroDataError\"})}},nP=class extends De{constructor({expectedLength:t,givenLength:r,type:n}){super(`Array length mismatch for type \\\\`${n}\\\\`. Expected: \\\\`${t}\\\\`. Given: \\\\`${r}\\\\`.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.ArrayLengthMismatchError\"})}},ZS=class extends De{constructor({expectedSize:t,value:r}){super(`Size of bytes \"${r}\" (bytes${Cr(r)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.BytesSizeMismatchError\"})}},iP=class extends De{constructor({expectedLength:t,givenLength:r}){super([\"ABI encoding parameters/values length mismatch.\",`Expected length (parameters): ${t}`,`Given length (values): ${r}`].join(`\\n`)),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.LengthMismatchError\"})}},oP=class extends De{constructor(t){super(`Value \\\\`${t}\\\\` is not a valid array.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidArrayError\"})}},Mw=class extends De{constructor(t){super(`Type \\\\`${t}\\\\` is not a valid ABI Type.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidTypeError\"})}}});function sP(e){return Ydt(e,\"Hex\")}function Ydt(e,t){let r=t??(typeof e==\"string\"?\"Hex\":\"Bytes\"),n=(()=>{if(typeof e==\"string\"){if(e.length>3&&e.length%2!==0)throw new rI(e);return Ds(e)}return e})(),o=YS(n,{recursiveReadLimit:Number.POSITIVE_INFINITY});return Ahe(o,r)}function Ahe(e,t=\"Hex\"){if(e.bytes.length===0)return t===\"Hex\"?sn(e.bytes):e.bytes;let r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){let o=Ehe(e,r,128),s=e.readBytes(o);return t===\"Hex\"?sn(s):s}let n=Ehe(e,r,192);return Xdt(e,n,t)}function Ehe(e,t,r){if(r===128&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new De(\"Invalid RLP prefix\")}function Xdt(e,t,r){let n=e.position,o=[];for(;e.position-n<t;)o.push(Ahe(e,r));return o}function ept(e,t){let{as:r}=t,n=She(e),o=YS(new Uint8Array(n.length));return n.encode(o),r===\"Hex\"?sn(o.bytes):o.bytes}function ng(e,t={}){let{as:r=\"Hex\"}=t;return ept(e,{as:r})}function She(e){return Array.isArray(e)?tpt(e.map(t=>She(t))):rpt(e)}function tpt(e){let t=e.reduce((o,s)=>o+s.length,0),r=Che(t);return{length:t<=55?1+t:1+r+t,encode(o){t<=55?o.pushByte(192+t):(o.pushByte(247+r),r===1?o.pushUint8(t):r===2?o.pushUint16(t):r===3?o.pushUint24(t):o.pushUint32(t));for(let{encode:s}of e)s(o)}}}function rpt(e){let t=typeof e==\"string\"?Ds(e):e,r=Che(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(o){t.length===1&&t[0]<128?o.pushBytes(t):t.length<=55?(o.pushByte(128+t.length),o.pushBytes(t)):(o.pushByte(183+r),r===1?o.pushUint8(t.length):r===2?o.pushUint16(t.length):r===3?o.pushUint24(t.length):o.pushUint32(t.length),o.pushBytes(t))}}}function Che(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=16777215)return 3;if(e<=4294967295)return 4;throw new De(\"Length is too large.\")}var cP=x(()=>{c();pu();ca();Tr();GV()});function og(e,t={}){let{recovered:r}=t;if(typeof e.r>\"u\")throw new eC({signature:e});if(typeof e.s>\"u\")throw new eC({signature:e});if(r&&typeof e.yParity>\"u\")throw new eC({signature:e});if(e.r<0n||e.r>LV)throw new JV({value:e.r});if(e.s<0n||e.s>LV)throw new YV({value:e.s});if(typeof e.yParity==\"number\"&&e.yParity!==0&&e.yParity!==1)throw new Uw({value:e.yParity})}function npt(e){return uP(sn(e))}function uP(e){if(e.length!==130&&e.length!==132)throw new ZV({signature:e});let t=BigInt(vt(e,0,32)),r=BigInt(vt(e,32,64)),n=(()=>{let o=+`0x${e.slice(130)}`;if(!Number.isNaN(o))try{return tK(o)}catch{throw new Uw({value:o})}})();return typeof n>\"u\"?{r:t,s:r}:{r:t,s:r,yParity:n}}function tC(e){if(!(typeof e.r>\"u\")&&!(typeof e.s>\"u\"))return V0(e)}function V0(e){let t=typeof e==\"string\"?uP(e):e instanceof Uint8Array?npt(e):typeof e.r==\"string\"?rC(e):e.v?opt(e):{r:e.r,s:e.s,...typeof e.yParity<\"u\"?{yParity:e.yParity}:{}};return og(t),t}function opt(e){return{r:e.r,s:e.s,yParity:tK(e.v)}}function rC(e){let t=(()=>{let r=e.v?Number(e.v):void 0,n=e.yParity?Number(e.yParity):void 0;if(typeof r==\"number\"&&typeof n!=\"number\"&&(n=tK(r)),typeof n!=\"number\")throw new Uw({value:e.yParity});return n})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function eK(e){let[t,r,n]=e;return V0({r:r===\"0x\"?0n:BigInt(r),s:n===\"0x\"?0n:BigInt(n),yParity:t===\"0x\"?0:Number(t)})}function The(e){og(e);let t=e.r,r=e.s;return Jt(we(t,{size:32}),we(r,{size:32}),typeof e.yParity==\"number\"?we(Hw(e.yParity),{size:1}):\"0x\")}function Dw(e){let{r:t,s:r,yParity:n}=e;return{r:we(t,{size:32}),s:we(r,{size:32}),yParity:n===0?\"0x0\":\"0x1\"}}function lP(e){let{r:t,s:r,yParity:n}=e;return[n?\"0x01\":\"0x\",t===0n?\"0x\":NS(we(t)),r===0n?\"0x\":NS(we(r))]}function tK(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new XV({value:e})}function Hw(e){if(e===0)return 27;if(e===1)return 28;throw new Uw({value:e})}var ZV,eC,JV,YV,Uw,XV,K0=x(()=>{c();ca();Tr();gw();tP();ZV=class extends De{constructor({signature:t}){super(`Value \\\\`${t}\\\\` is an invalid signature size.`,{metaMessages:[\"Expected: 64 bytes or 65 bytes.\",`Received ${Cr(H0(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSerializedSizeError\"})}},eC=class extends De{constructor({signature:t}){super(`Signature \\\\`${Bl(t)}\\\\` is missing either an \\\\`r\\\\`, \\\\`s\\\\`, or \\\\`yParity\\\\` property.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.MissingPropertiesError\"})}},JV=class extends De{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidRError\"})}},YV=class extends De{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSError\"})}},Uw=class extends De{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidYParityError\"})}},XV=class extends De{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidVError\"})}}});function _he(e,t={}){return typeof e.chainId==\"string\"?khe(e):{...e,...t.signature}}function khe(e){let{address:t,chainId:r,nonce:n}=e,o=tC(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...o}}function fP(e){return e.map(khe)}function Bhe(e){return apt(e,{presign:!0})}function apt(e,t={}){let{presign:r}=t;return Rc(Jt(\"0x05\",ng(spt(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function ipt(e){let{address:t,chainId:r,nonce:n,...o}=e;return{address:t,chainId:we(r),nonce:we(n),...Dw(o)}}function dP(e){return e.map(ipt)}function spt(e){let{address:t,chainId:r,nonce:n}=e,o=tC(e);return[r?we(r):\"0x\",t,n?we(n):\"0x\",...o?lP(o):[]]}var pP=x(()=>{c();$0();Tr();cP();K0()});function ig(e){return Yi(mP(e))}function mP(e){let{payload:t,signature:r}=e,{r:n,s:o,yParity:s}=r,f=new fi.Signature(BigInt(n),BigInt(o)).addRecoveryBit(s).recoverPublicKey(H0(t).substring(2));return VS(f)}function Ihe(e){let{address:t,hash:r,payload:n,publicKey:o,signature:s}=e;return t?WS(t,ig({payload:n,signature:s})):fi.verify(s,MS(n),mhe(o),...r?[{prehash:!0,lowS:!0}]:[])}var nC=x(()=>{c();S0();bu();pu();Tr();Rw()});var oC={};Wn(oC,{InvalidWrappedSignatureError:()=>yP,assert:()=>bP,from:()=>cpt,magicBytes:()=>nK,suffixParameters:()=>oK,unwrap:()=>Phe,validate:()=>lpt,wrap:()=>upt});function bP(e){if(typeof e==\"string\"){if(vt(e,-32)!==nK)throw new yP(e)}else og(e.authorization)}function cpt(e){return typeof e==\"string\"?Phe(e):e}function Phe(e){bP(e);let t=Bc(vt(e,-64,-32)),r=vt(e,-t-64,-64),n=vt(e,0,-t-64),[o,s,u]=Nw(oK,r);return{authorization:_he({address:o.delegation,chainId:Number(o.chainId),nonce:o.nonce,yParity:o.yParity,r:o.r,s:o.s}),signature:n,...u&&u!==\"0x\"?{data:u,to:s}:{}}}function upt(e){let{data:t,signature:r}=e;bP(e);let n=ig({payload:Bhe(e.authorization),signature:V0(e.authorization)}),o=G0(oK,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},e.to??n,t??\"0x\"]),s=we(Cr(o),{size:32});return Jt(r,o,s,nK)}function lpt(e){try{return bP(e),!0}catch{return!1}}var nK,oK,yP,Rhe=x(()=>{c();Ow();pP();ca();Tr();nC();K0();nK=\"0x8010801080108010801080108010801080108010801080108010801080108010\",oK=XS(\"(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data\");yP=class extends De{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureErc8010.InvalidWrappedSignatureError\"})}}});var Mhe=x(()=>{c();Rhe()});function gP(e){let{address:t,data:r,signature:n,to:o=\"hex\"}=e,s=Cn([zn([{type:\"address\"},{type:\"bytes\"},{type:\"bytes\"}],[t,r,n]),che]);return o===\"hex\"?s:Jr(s)}var Ohe=x(()=>{c();uhe();cu();Jn();bo()});var W0=x(()=>{c();Yr();za();El();Gp();Zn();tt();b1()});function dpt(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function Nhe(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?Zr(e.nonce):void 0,storageProof:e.storageProof?dpt(e.storageProof):void 0}}var Uhe=x(()=>{c();W0()});async function Dhe(e,{address:t,blockNumber:r,blockTag:n,storageKeys:o}){let s=n??\"latest\",u=r!==void 0?le(r):void 0,f=await e.request({method:\"eth_getProof\",params:[t,o,u||s]});return Nhe(f)}var Hhe=x(()=>{c();tt();Uhe()});async function Lhe(e,{address:t,blockNumber:r,blockTag:n=\"latest\",slot:o}){let s=r!==void 0?le(r):void 0;return await e.request({method:\"eth_getStorageAt\",params:[t,o,s||n]})}var zhe=x(()=>{c();tt()});async function Lw(e,{blockHash:t,blockNumber:r,blockTag:n,hash:o,index:s,sender:u,nonce:f}){let d=n||\"latest\",m=r!==void 0?le(r):void 0,h=null;if(o?h=await e.request({method:\"eth_getTransactionByHash\",params:[o]},{dedupe:!0}):t?h=await e.request({method:\"eth_getTransactionByBlockHashAndIndex\",params:[t,le(s)]},{dedupe:!0}):(m||d)&&typeof s==\"number\"?h=await e.request({method:\"eth_getTransactionByBlockNumberAndIndex\",params:[m||d,le(s)]},{dedupe:!!m}):u&&typeof f==\"number\"&&(h=await e.request({method:\"eth_getTransactionBySenderAndNonce\",params:[u,le(f)]},{dedupe:!0})),!h)throw new Mv({blockHash:t,blockNumber:r,blockTag:d,hash:o,index:s});return(e.chain?.formatters?.transaction?.format||kc)(h,\"getTransaction\")}var xP=x(()=>{c();Ac();tt();id()});async function Fhe(e,{hash:t,transactionReceipt:r}){let[n,o]=await Promise.all([Ae(e,dd,\"getBlockNumber\")({}),t?Ae(e,Lw,\"getTransaction\")({hash:t}):void 0]),s=r?.blockNumber||o?.blockNumber;return s?n-s+1n:0n}var jhe=x(()=>{c();Zt();Aw();xP()});async function zw(e,{hash:t}){let r=await e.request({method:\"eth_getTransactionReceipt\",params:[t]},{dedupe:!0});if(!r)throw new Ov({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||bm)(r,\"getTransactionReceipt\")}var aK=x(()=>{c();Ac();gm()});async function qhe(e,t){let{account:r,authorizationList:n,allowFailure:o=!0,blockNumber:s,blockOverrides:u,blockTag:f,stateOverride:d}=t,m=t.contracts,{batchSize:h=t.batchSize??1024,deployless:y=t.deployless??!1}=typeof e.batch?.multicall==\"object\"?e.batch.multicall:{},v=(()=>{if(t.multicallAddress)return t.multicallAddress;if(y)return null;if(e.chain)return mu({blockNumber:s,chain:e.chain,contract:\"multicall3\"});throw new Error(\"client chain not configured. multicallAddress is required.\")})(),E=[[]],C=0,B=0;for(let U=0;U<m.length;U++){let{abi:O,address:N,args:j,functionName:K}=m[U];try{let G=Ct({abi:O,args:j,functionName:K});B+=(G.length-2)/2,h>0&&B>h&&E[C].length>0&&(C++,B=(G.length-2)/2,E[C]=[]),E[C]=[...E[C],{allowFailure:!0,callData:G,target:N}]}catch(G){let J=Cc(G,{abi:O,address:N,args:j,docsPath:\"/docs/contract/multicall\",functionName:K,sender:r});if(!o)throw J;E[C]=[...E[C],{allowFailure:!0,callData:\"0x\",target:N}]}}let R=await Promise.allSettled(E.map(U=>Ae(e,Xr,\"readContract\")({...v===null?{code:vw}:{address:v},abi:Pl,account:r,args:[U],authorizationList:n,blockNumber:s,blockOverrides:u,blockTag:f,functionName:\"aggregate3\",stateOverride:d}))),M=[];for(let U=0;U<R.length;U++){let O=R[U];if(O.status===\"rejected\"){if(!o)throw O.reason;for(let j=0;j<E[U].length;j++)M.push({status:\"failure\",error:O.reason,result:void 0});continue}let N=O.value;for(let j=0;j<N.length;j++){let{returnData:K,success:G}=N[j],{callData:J}=E[U][j],{abi:Y,address:W,functionName:ie,args:re}=m[M.length];try{if(J===\"0x\")throw new iu;if(!G)throw new rd({data:K});let H=pi({abi:Y,args:re,data:K,functionName:ie});M.push(o?{result:H,status:\"success\"}:H)}catch(H){let A=Cc(H,{abi:Y,address:W,args:re,docsPath:\"/docs/contract/multicall\",functionName:ie});if(!o)throw A;M.push({error:A,result:void 0,status:\"failure\"})}}}if(M.length!==m.length)throw new ae(\"multicall results mismatch\");return M}var $he=x(()=>{c();fd();DS();yo();ht();Xp();dm();za();V1();D1();Zt();Ic()});async function aC(e,t){let{blockNumber:r,blockTag:n=e.experimental_blockTag??\"latest\",blocks:o,returnFullTransactions:s,traceTransfers:u,validation:f}=t;try{let d=[];for(let v of o){let E=v.blockOverrides?oI(v.blockOverrides):void 0,C=v.calls.map(R=>{let M=R,U=M.account?Xe(M.account):void 0,O=M.abi?Ct(M):M.data,N={...M,account:U,data:M.dataSuffix?mr([O||\"0x\",M.dataSuffix]):O,from:M.from??U?.address};return Vo(N),ko(N)}),B=v.stateOverrides?B0(v.stateOverrides):void 0;d.push({blockOverrides:E,calls:C,stateOverrides:B})}let h=(typeof r==\"bigint\"?le(r):void 0)||n;return(await e.request({method:\"eth_simulateV1\",params:[{blockStateCalls:d,returnFullTransactions:s,traceTransfers:u,validation:f},h]})).map((v,E)=>({...SS(v),calls:v.calls.map((C,B)=>{let{abi:R,args:M,functionName:U,to:O}=o[E].calls[B],N=C.error?.data??C.returnData,j=BigInt(C.gasUsed),K=C.logs?.map(W=>go(W)),G=C.status===\"0x1\"?\"success\":\"failure\",J=R&&G===\"success\"&&N!==\"0x\"?pi({abi:R,data:N,functionName:U}):null,Y=(()=>{if(G===\"success\")return;let W;if(N===\"0x\"?W=new iu:N&&(W=new rd({data:N})),!!W)return Cc(W,{abi:R??[],address:O??\"0x\",args:M,functionName:U??\"<unknown>\"})})();return{data:N,gasUsed:j,logs:K,status:G,...G===\"success\"?{result:J}:{error:Y}}})}))}catch(d){let m=d,h=T0(m,{});throw h instanceof fu?m:h}}var iK=x(()=>{c();WG();Yr();yo();Xp();fm();dm();za();Jn();tt();D1();vS();sw();_l();Us();ES();Cl()});function wP(e){let t=!0,r=\"\",n=0,o=\"\",s=!1;for(let u=0;u<e.length;u++){let f=e[u];if([\"(\",\")\",\",\"].includes(f)&&(t=!0),f===\"(\"&&n++,f===\")\"&&n--,!!t){if(n===0){if(f===\" \"&&[\"event\",\"function\",\"error\",\"\"].includes(o))o=\"\";else if(o+=f,f===\")\"){s=!0;break}continue}if(f===\" \"){e[u-1]!==\",\"&&r!==\",\"&&r!==\",(\"&&(r=\"\",t=!1);continue}o+=f,r+=f}}if(!s)throw new De(\"Unable to normalize signature.\");return o}function vP(e,t){let r=typeof e,n=t.type;switch(n){case\"address\":return tg(e,{strict:!1});case\"bool\":return r===\"boolean\";case\"function\":return r===\"string\";case\"string\":return r===\"string\";default:return n===\"tuple\"&&\"components\"in t?Object.values(t.components).every((o,s)=>vP(Object.values(e)[s],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?r===\"number\"||r===\"bigint\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?r===\"string\"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\\\[[0-9]{0,}\\\\])+$/.test(n)?Array.isArray(e)&&e.every(o=>vP(o,{...t,type:n.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function sK(e,t,r){for(let n in e){let o=e[n],s=t[n];if(o.type===\"tuple\"&&s.type===\"tuple\"&&\"components\"in o&&\"components\"in s)return sK(o.components,s.components,r[n]);let u=[o.type,s.type];if(u.includes(\"address\")&&u.includes(\"bytes20\")?!0:u.includes(\"address\")&&u.includes(\"string\")?tg(r[n],{strict:!1}):u.includes(\"address\")&&u.includes(\"bytes\")?tg(r[n],{strict:!1}):!1)return u}}var Ghe=x(()=>{c();bu();ca()});function EP(e,t={}){let{prepare:r=!0}=t,n=Array.isArray(e)?C9(e):typeof e==\"string\"?C9(e):e;return{...n,...r?{hash:Fw(n)}:{}}}function iC(e,t,r){let{args:n=[],prepare:o=!0}=r??{},s=Zi(t,{strict:!1}),u=e.filter(m=>s?m.type===\"function\"||m.type===\"error\"?sC(m)===vt(t,0,4):m.type===\"event\"?Fw(m)===t:!1:\"name\"in m&&m.name===t);if(u.length===0)throw new Q0({name:t});if(u.length===1)return{...u[0],...o?{hash:Fw(u[0])}:{}};let f;for(let m of u){if(!(\"inputs\"in m))continue;if(!n||n.length===0){if(!m.inputs||m.inputs.length===0)return{...m,...o?{hash:Fw(m)}:{}};continue}if(!m.inputs||m.inputs.length===0||m.inputs.length!==n.length)continue;if(n.every((y,v)=>{let E=\"inputs\"in m&&m.inputs[v];return E?vP(y,E):!1})){if(f&&\"inputs\"in f&&f.inputs){let y=sK(m.inputs,f.inputs,n);if(y)throw new cK({abiItem:m,type:y[0]},{abiItem:f,type:y[1]})}f=m}}let d=(()=>{if(f)return f;let[m,...h]=u;return{...m,overloads:h}})();if(!d)throw new Q0({name:t});return{...d,...o?{hash:Fw(d)}:{}}}function sC(...e){let t=(()=>{if(Array.isArray(e[0])){let[r,n]=e;return iC(r,n)}return e[0]})();return vt(Fw(t),0,4)}function mpt(...e){let t=(()=>{if(Array.isArray(e[0])){let[n,o]=e;return iC(n,o)}return e[0]})(),r=typeof t==\"string\"?t:l1(t);return wP(r)}function Fw(...e){let t=(()=>{if(Array.isArray(e[0])){let[r,n]=e;return iC(r,n)}return e[0]})();return typeof t!=\"string\"&&\"hash\"in t&&t.hash?t.hash:Rc(Il(mpt(t)))}var cK,Q0,AP=x(()=>{c();hv();ca();$0();Tr();Ghe();cK=class extends De{constructor(t,r){super(\"Found ambiguous types in overloaded ABI Items.\",{metaMessages:[`\\\\`${t.type}\\\\` in \\\\`${wP(l1(t.abiItem))}\\\\`, and`,`\\\\`${r.type}\\\\` in \\\\`${wP(l1(r.abiItem))}\\\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.AmbiguityError\"})}},Q0=class extends De{constructor({name:t,data:r,type:n=\"item\"}){let o=t?` with name \"${t}\"`:r?` with data \"${r}\"`:\"\";super(`ABI ${n}${o} not found.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.NotFoundError\"})}}});function Vhe(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[s,u]=e;return[hpt(s),u]}return e})(),{bytecode:n,args:o}=r;return Jt(n,t.inputs?.length&&o?.length?G0(t.inputs,o):\"0x\")}function Khe(e){return EP(e)}function hpt(e){let t=e.find(r=>r.type===\"constructor\");if(!t)throw new Q0({name:\"constructor\"});return t}var Whe=x(()=>{c();AP();Ow();Tr()});function Zhe(...e){let[t,r=[]]=(()=>{if(Array.isArray(e[0])){let[m,h,y]=e;return[Qhe(m,h,{args:y}),y]}let[f,d]=e;return[f,d]})(),{overloads:n}=t,o=n?Qhe([t,...n],t.name,{args:r}):t,s=bpt(o),u=r.length>0?G0(o.inputs,r):void 0;return u?Jt(s,u):s}function sg(e,t={}){return EP(e,t)}function Qhe(e,t,r){let n=iC(e,t,r);if(n.type!==\"function\")throw new Q0({name:t,type:\"function\"});return n}function bpt(e){return sC(e)}var Jhe=x(()=>{c();AP();Ow();Tr()});var Yhe,gu,Xhe=x(()=>{c();Yhe=\"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\",gu=\"0x0000000000000000000000000000000000000000\"});async function e0e(e,t){let{blockNumber:r,blockTag:n,calls:o,stateOverrides:s,traceAssetChanges:u,traceTransfers:f,validation:d}=t,m=t.account?Xe(t.account):void 0;if(u&&!m)throw new ae(\"`account` is required when `traceAssetChanges` is true\");let h=m?Vhe(Khe(\"constructor(bytes, bytes)\"),{bytecode:sI,args:[xpt,Zhe(sg(\"function getBalance(address)\"),[m.address])]}):void 0,y=u?await Promise.all(t.calls.map(async L=>{if(!L.data&&!L.abi)return;let{accessList:V}=await UI(e,{account:m.address,...L,data:L.abi?Ct(L):L.data});return V.map(({address:Z,storageKeys:z})=>z.length>0?Z:null)})).then(L=>L.flat().filter(Boolean)):[],v=await aC(e,{blockNumber:r,blockTag:n,blocks:[...u?[{calls:[{data:h}],stateOverrides:s},{calls:y.map((L,V)=>({abi:[sg(\"function balanceOf(address) returns (uint256)\")],functionName:\"balanceOf\",args:[m.address],to:L,from:gu,nonce:V})),stateOverrides:[{address:gu,nonce:0}]}]:[],{calls:[...o,{to:gu}].map(L=>({...L,from:m?.address})),stateOverrides:s},...u?[{calls:[{data:h}]},{calls:y.map((L,V)=>({abi:[sg(\"function balanceOf(address) returns (uint256)\")],functionName:\"balanceOf\",args:[m.address],to:L,from:gu,nonce:V})),stateOverrides:[{address:gu,nonce:0}]},{calls:y.map((L,V)=>({to:L,abi:[sg(\"function decimals() returns (uint256)\")],functionName:\"decimals\",from:gu,nonce:V})),stateOverrides:[{address:gu,nonce:0}]},{calls:y.map((L,V)=>({to:L,abi:[sg(\"function tokenURI(uint256) returns (string)\")],functionName:\"tokenURI\",args:[0n],from:gu,nonce:V})),stateOverrides:[{address:gu,nonce:0}]},{calls:y.map((L,V)=>({to:L,abi:[sg(\"function symbol() returns (string)\")],functionName:\"symbol\",from:gu,nonce:V})),stateOverrides:[{address:gu,nonce:0}]}]:[]],traceTransfers:f,validation:d}),E=u?v[2]:v[0],[C,B,,R,M,U,O,N]=u?v:[],{calls:j,...K}=E,G=j.slice(0,-1)??[],J=C?.calls??[],Y=B?.calls??[],W=[...J,...Y].map(L=>L.status===\"success\"?at(L.data):null),ie=R?.calls??[],re=M?.calls??[],H=[...ie,...re].map(L=>L.status===\"success\"?at(L.data):null),A=(U?.calls??[]).map(L=>L.status===\"success\"?L.result:null),T=(N?.calls??[]).map(L=>L.status===\"success\"?L.result:null),P=(O?.calls??[]).map(L=>L.status===\"success\"?L.result:null),D=[];for(let[L,V]of H.entries()){let Z=W[L];if(typeof V!=\"bigint\"||typeof Z!=\"bigint\")continue;let z=A[L-1],I=T[L-1],Q=P[L-1],me=L===0?{address:Yhe,decimals:18,symbol:\"ETH\"}:{address:y[L-1],decimals:Q||z?Number(z??1):void 0,symbol:I??void 0};D.some(ge=>ge.token.address===me.address)||D.push({token:me,value:{pre:Z,post:V,diff:V-Z}})}return{assetChanges:D,block:K,results:G}}var xpt,t0e=x(()=>{c();Whe();Jhe();Yr();Xhe();DS();ht();za();W0();wV();iK();xpt=\"0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033\"});var cC={};Wn(cC,{InvalidWrappedSignatureError:()=>SP,assert:()=>fK,from:()=>Ept,magicBytes:()=>lK,universalSignatureValidatorAbi:()=>wpt,universalSignatureValidatorBytecode:()=>vpt,unwrap:()=>r0e,validate:()=>Spt,wrap:()=>Apt});function fK(e){if(vt(e,-32)!==lK)throw new SP(e)}function Ept(e){return typeof e==\"string\"?r0e(e):e}function r0e(e){fK(e);let[t,r,n]=Nw(XS(\"address, bytes, bytes\"),e);return{data:r,signature:n,to:t}}function Apt(e){let{data:t,signature:r,to:n}=e;return Jt(G0(XS(\"address, bytes, bytes\"),[n,t,r]),lK)}function Spt(e){try{return fK(e),!0}catch{return!1}}var lK,vpt,wpt,SP,n0e=x(()=>{c();Ow();ca();Tr();lK=\"0x6492649264926492649264926492649264926492649264926492649264926492\",vpt=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",wpt=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\",name:\"isValidSig\"}];SP=class extends De{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureErc6492.InvalidWrappedSignatureError\"})}}});var o0e=x(()=>{c();n0e()});function a0e({r:e,s:t,to:r=\"hex\",v:n,yParity:o}){let s=(()=>{if(o===0||o===1)return o;if(n&&(n===27n||n===28n||n>=35n))return n%2n===0n?1:0;throw new Error(\"Invalid `v` or `yParity` value\")})(),u=`0x${new fi.Signature(at(e),at(t)).toCompactHex()}${s===0?\"1b\":\"1c\"}`;return r===\"hex\"?u:Jr(u)}var i0e=x(()=>{c();S0();Zn();bo()});async function bd(e,t){let{address:r,chain:n=e.chain,hash:o,erc6492VerifierAddress:s=t.universalSignatureVerifierAddress??n?.contracts?.erc6492Verifier?.address,multicallAddress:u=t.multicallAddress??n?.contracts?.multicall3?.address,mode:f=\"auto\"}=t;if(n?.verifyHash)return await n.verifyHash(e,t);let d=(()=>{let m=t.signature;return Wr(m)?m:typeof m==\"object\"&&\"r\"in m&&\"s\"in m?a0e(m):yr(m)})();try{if(f===\"eoa\")try{if(di(hn(r),await gS({hash:o,signature:d})))return!0}catch{}return oC.validate(d)?await Cpt(e,{...t,multicallAddress:u,signature:d}):await Tpt(e,{...t,verifierAddress:s,signature:d})}catch(m){if(f!==\"eoa\")try{if(di(hn(r),await gS({hash:o,signature:d})))return!0}catch{}if(m instanceof Em)return!1;throw m}}async function Cpt(e,t){let{address:r,blockNumber:n,blockTag:o,hash:s,multicallAddress:u}=t,{authorization:f,data:d,signature:m,to:h}=oC.unwrap(t.signature);if(await Ji(e,{address:r,blockNumber:n,blockTag:o})===Cn([\"0xef0100\",f.address]))return await _pt(e,{address:r,blockNumber:n,blockTag:o,hash:s,signature:m});let v={address:f.address,chainId:Number(f.chainId),nonce:Number(f.nonce),r:le(f.r,{size:32}),s:le(f.s,{size:32}),yParity:f.yParity};if(!await jme({address:r,authorization:v}))throw new Em;let C=await Ae(e,Xr,\"readContract\")({...u?{address:u}:{code:vw},authorizationList:[v],abi:Pl,blockNumber:n,blockTag:\"pending\",functionName:\"aggregate3\",args:[[...d?[{allowFailure:!0,target:h??r,callData:d}]:[],{allowFailure:!0,target:r,callData:Ct({abi:JG,functionName:\"isValidSignature\",args:[s,m]})}]]});if(C[C.length-1]?.returnData?.startsWith(\"0x1626ba7e\"))return!0;throw new Em}async function Tpt(e,t){let{address:r,factory:n,factoryData:o,hash:s,signature:u,verifierAddress:f,...d}=t,m=await(async()=>!n&&!o||cC.validate(u)?u:cC.wrap({data:o,signature:u,to:n}))(),h=f?{to:f,data:Ct({abi:US,functionName:\"isValidSig\",args:[r,s,m]}),...d}:{data:G1({abi:US,args:[r,s,m],bytecode:Bpe}),...d},{data:y}=await Ae(e,hu,\"call\")(h).catch(v=>{throw v instanceof Uv?new Em:v});if($9(y??\"0x0\"))return!0;throw new Em}async function _pt(e,t){let{address:r,blockNumber:n,blockTag:o,hash:s,signature:u}=t;if((await Ae(e,Xr,\"readContract\")({address:r,abi:JG,args:[s,u],blockNumber:n,blockTag:o,functionName:\"isValidSignature\"}).catch(d=>{throw d instanceof h0?new Em:d})).startsWith(\"0x1626ba7e\"))return!0;throw new Em}var Em,jw=x(()=>{c();o0e();Mhe();fd();DS();Xp();lI();za();El();U0();qme();Jn();au();Zn();tt();Zt();TG();i0e();W1();Q1();Ic();Em=class extends Error{}});async function s0e(e,{address:t,message:r,factory:n,factoryData:o,signature:s,...u}){let f=wm(r);return Ae(e,bd,\"verifyHash\")({address:t,factory:n,factoryData:o,hash:f,signature:s,...u})}var c0e=x(()=>{c();Zt();jI();jw()});async function u0e(e,t){let{address:r,factory:n,factoryData:o,signature:s,message:u,primaryType:f,types:d,domain:m,...h}=t,y=yd({message:u,primaryType:f,types:d,domain:m});return Ae(e,bd,\"verifyHash\")({address:r,factory:n,factoryData:o,hash:y,signature:s,...h})}var l0e=x(()=>{c();Zt();WI();jw()});function CP(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:o,poll:s,pollingInterval:u=e.pollingInterval}){let f=typeof s<\"u\"?s:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")),d;return f?(()=>{let y=or([\"watchBlockNumber\",e.uid,t,r,u]);return wa(y,{onBlockNumber:n,onError:o},v=>Hs(async()=>{try{let E=await Ae(e,dd,\"getBlockNumber\")({cacheTime:0});if(d!==void 0){if(E===d)return;if(E-d>1&&r)for(let C=d+1n;C<E;C++)v.onBlockNumber(C,d),d=C}(d===void 0||E>d)&&(v.onBlockNumber(E,d),d=E)}catch(E){v.onError?.(E)}},{emitOnBegin:t,interval:u}))})():(()=>{let y=or([\"watchBlockNumber\",e.uid,t,r]);return wa(y,{onBlockNumber:n,onError:o},v=>{let E=!0,C=()=>E=!1;return(async()=>{try{let B=(()=>{if(e.transport.type===\"fallback\"){let M=e.transport.transports.find(U=>U.config.type===\"webSocket\"||U.config.type===\"ipc\");return M?M.value:e.transport}return e.transport})(),{unsubscribe:R}=await B.subscribe({params:[\"newHeads\"],onData(M){if(!E)return;let U=at(M.result?.number);v.onBlockNumber(U,d),d=U},onError(M){v.onError?.(M)}});C=R,E||C()}catch(B){o?.(B)}})(),()=>C()})})()}var dK=x(()=>{c();Zn();Zt();ym();L0();Fa();Aw()});async function TP(e,t){let{checkReplacement:r=!0,confirmations:n=1,hash:o,onReplaced:s,retryCount:u=6,retryDelay:f=({count:j})=>~~(1<<j)*200,timeout:d=18e4}=t,m=or([\"waitForTransactionReceipt\",e.uid,o]),h=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,y,v,E,C=!1,B,R,{promise:M,resolve:U,reject:O}=Ew(),N=d?setTimeout(()=>{R?.(),B?.(),O(new hB({hash:o}))},d):void 0;return B=wa(m,{onReplaced:s,resolve:U,reject:O},async j=>{if(E=await Ae(e,zw,\"getTransactionReceipt\")({hash:o}).catch(()=>{}),E&&n<=1){clearTimeout(N),j.resolve(E),B?.();return}R=Ae(e,CP,\"watchBlockNumber\")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:h,async onBlockNumber(K){let G=Y=>{clearTimeout(N),R?.(),Y(),B?.()},J=K;if(!C)try{if(E){if(n>1&&(!E.blockNumber||J-E.blockNumber+1n<n))return;G(()=>j.resolve(E));return}if(r&&!y&&(C=!0,await hd(async()=>{y=await Ae(e,Lw,\"getTransaction\")({hash:o}),y.blockNumber&&(J=y.blockNumber)},{delay:f,retryCount:u}),C=!1),E=await Ae(e,zw,\"getTransactionReceipt\")({hash:o}),n>1&&(!E.blockNumber||J-E.blockNumber+1n<n))return;G(()=>j.resolve(E))}catch(Y){if(Y instanceof Mv||Y instanceof Ov){if(!y){C=!1;return}try{v=y,C=!0;let W=await hd(()=>Ae(e,xa,\"getBlock\")({blockNumber:J,includeTransactions:!0}),{delay:f,retryCount:u,shouldRetry:({error:H})=>H instanceof aw});C=!1;let ie=W.transactions.find(({from:H,nonce:A})=>H===v.from&&A===v.nonce);if(!ie||(E=await Ae(e,zw,\"getTransactionReceipt\")({hash:ie.hash}),n>1&&(!E.blockNumber||J-E.blockNumber+1n<n)))return;let re=\"replaced\";ie.to===v.to&&ie.value===v.value&&ie.input===v.input?re=\"repriced\":ie.from===ie.to&&ie.value===0n&&(re=\"cancelled\"),G(()=>{j.onReplaced?.({reason:re,replacedTransaction:v,transaction:ie,transactionReceipt:E}),j.resolve(E)})}catch(W){G(()=>j.reject(W))}}else G(()=>j.reject(Y))}}})}),M}var pK=x(()=>{c();_G();Ac();Zt();ym();dI();qS();Fa();R0();xP();aK();dK()});function f0e(e,{blockTag:t=e.experimental_blockTag??\"latest\",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:o,onError:s,includeTransactions:u,poll:f,pollingInterval:d=e.pollingInterval}){let m=typeof f<\"u\"?f:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")),h=u??!1,y;return m?(()=>{let C=or([\"watchBlocks\",e.uid,t,r,n,h,d]);return wa(C,{onBlock:o,onError:s},B=>Hs(async()=>{try{let R=await Ae(e,xa,\"getBlock\")({blockTag:t,includeTransactions:h});if(R.number!==null&&y?.number!=null){if(R.number===y.number)return;if(R.number-y.number>1&&r)for(let M=y?.number+1n;M<R.number;M++){let U=await Ae(e,xa,\"getBlock\")({blockNumber:M,includeTransactions:h});B.onBlock(U,y),y=U}}(y?.number==null||t===\"pending\"&&R?.number==null||R.number!==null&&R.number>y.number)&&(B.onBlock(R,y),y=R)}catch(R){B.onError?.(R)}},{emitOnBegin:n,interval:d}))})():(()=>{let C=!0,B=!0,R=()=>C=!1;return(async()=>{try{n&&Ae(e,xa,\"getBlock\")({blockTag:t,includeTransactions:h}).then(O=>{C&&B&&(o(O,void 0),B=!1)}).catch(s);let M=(()=>{if(e.transport.type===\"fallback\"){let O=e.transport.transports.find(N=>N.config.type===\"webSocket\"||N.config.type===\"ipc\");return O?O.value:e.transport}return e.transport})(),{unsubscribe:U}=await M.subscribe({params:[\"newHeads\"],async onData(O){if(!C)return;let N=await Ae(e,xa,\"getBlock\")({blockNumber:O.result?.number,includeTransactions:h}).catch(()=>{});C&&(o(N,y),B=!1,y=N)},onError(O){s?.(O)}});R=U,C||R()}catch(M){s?.(M)}})(),()=>R()})()}var d0e=x(()=>{c();Zt();ym();L0();Fa();R0()});function p0e(e,{address:t,args:r,batch:n=!0,event:o,events:s,fromBlock:u,onError:f,onLogs:d,poll:m,pollingInterval:h=e.pollingInterval,strict:y}){let v=typeof m<\"u\"?m:typeof u==\"bigint\"?!0:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")),E=y??!1;return v?(()=>{let R=or([\"watchEvent\",t,r,n,e.uid,o,h,u]);return wa(R,{onLogs:d,onError:f},M=>{let U;u!==void 0&&(U=u-1n);let O,N=!1,j=Hs(async()=>{if(!N){try{O=await Ae(e,DI,\"createEventFilter\")({address:t,args:r,event:o,events:s,strict:E,fromBlock:u})}catch{}N=!0;return}try{let K;if(O)K=await Ae(e,z0,\"getFilterChanges\")({filter:O});else{let G=await Ae(e,dd,\"getBlockNumber\")({});U&&U!==G?K=await Ae(e,yw,\"getLogs\")({address:t,args:r,event:o,events:s,fromBlock:U+1n,toBlock:G}):K=[],U=G}if(K.length===0)return;if(n)M.onLogs(K);else for(let G of K)M.onLogs([G])}catch(K){O&&K instanceof Sc&&(N=!1),M.onError?.(K)}},{emitOnBegin:!0,interval:h});return async()=>{O&&await Ae(e,F0,\"uninstallFilter\")({filter:O}),j()}})})():(()=>{let R=!0,M=()=>R=!1;return(async()=>{try{let U=(()=>{if(e.transport.type===\"fallback\"){let K=e.transport.transports.find(G=>G.config.type===\"webSocket\"||G.config.type===\"ipc\");return K?K.value:e.transport}return e.transport})(),O=s??(o?[o]:void 0),N=[];O&&(N=[O.flatMap(G=>ed({abi:[G],eventName:G.name,args:r}))],o&&(N=N[0]));let{unsubscribe:j}=await U.subscribe({params:[\"logs\",{address:t,topics:N}],onData(K){if(!R)return;let G=K.result;try{let{eventName:J,args:Y}=j1({abi:O??[],data:G.data,topics:G.topics,strict:E}),W=go(G,{args:Y,eventName:J});d([W])}catch(J){let Y,W;if(J instanceof $p||J instanceof i0){if(y)return;Y=J.abiItem.name,W=J.abiItem.inputs?.some(re=>!(\"name\"in re&&re.name))}let ie=go(G,{args:W?[]:{},eventName:Y});d([ie])}},onError(K){f?.(K)}});M=j,R||M()}catch(U){f?.(U)}})(),()=>M()})()}var m0e=x(()=>{c();yo();U1();VB();Tv();_l();Zt();ym();L0();Fa();EV();Aw();FS();KB();jS()});function h0e(e,{batch:t=!0,onError:r,onTransactions:n,poll:o,pollingInterval:s=e.pollingInterval}){return(typeof o<\"u\"?o:e.transport.type!==\"webSocket\"&&e.transport.type!==\"ipc\")?(()=>{let m=or([\"watchPendingTransactions\",e.uid,t,s]);return wa(m,{onTransactions:n,onError:r},h=>{let y,v=Hs(async()=>{try{if(!y)try{y=await Ae(e,HI,\"createPendingTransactionFilter\")({});return}catch(C){throw v(),C}let E=await Ae(e,z0,\"getFilterChanges\")({filter:y});if(E.length===0)return;if(t)h.onTransactions(E);else for(let C of E)h.onTransactions([C])}catch(E){h.onError?.(E)}},{emitOnBegin:!0,interval:s});return async()=>{y&&await Ae(e,F0,\"uninstallFilter\")({filter:y}),v()}})})():(()=>{let m=!0,h=()=>m=!1;return(async()=>{try{let{unsubscribe:y}=await e.transport.subscribe({params:[\"newPendingTransactions\"],onData(v){if(!m)return;let E=v.result;n([E])},onError(v){r?.(v)}});h=y,m||h()}catch(y){r?.(y)}})(),()=>h()})()}var y0e=x(()=>{c();Zt();ym();L0();Fa();AV();FS();jS()});function b0e(e){let{scheme:t,statement:r,...n}=e.match(kpt)?.groups??{},{chainId:o,expirationTime:s,issuedAt:u,notBefore:f,requestId:d,...m}=e.match(Bpt)?.groups??{},h=e.split(\"Resources:\")[1]?.split(`\\n- `).slice(1);return{...n,...m,...o?{chainId:Number(o)}:{},...s?{expirationTime:new Date(s)}:{},...u?{issuedAt:new Date(u)}:{},...f?{notBefore:new Date(f)}:{},...d?{requestId:d}:{},...h?{resources:h}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}var kpt,Bpt,g0e=x(()=>{c();kpt=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\\\\/\\\\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\\\\n)(?<address>0x[a-fA-F0-9]{40})\\\\n\\\\n(?:(?<statement>.*)\\\\n\\\\n)?/,Bpt=/(?:URI: (?<uri>.+))\\\\n(?:Version: (?<version>.+))\\\\n(?:Chain ID: (?<chainId>\\\\d+))\\\\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\\\\n(?:Issued At: (?<issuedAt>.+))(?:\\\\nExpiration Time: (?<expirationTime>.+))?(?:\\\\nNot Before: (?<notBefore>.+))?(?:\\\\nRequest ID: (?<requestId>.+))?/});function x0e(e){let{address:t,domain:r,message:n,nonce:o,scheme:s,time:u=new Date}=e;if(r&&n.domain!==r||o&&n.nonce!==o||s&&n.scheme!==s||n.expirationTime&&u>=n.expirationTime||n.notBefore&&u<n.notBefore)return!1;try{if(!n.address||!wt(n.address,{strict:!1})||t&&!di(n.address,t))return!1}catch{return!1}return!0}var v0e=x(()=>{c();ui();U0()});async function w0e(e,t){let{address:r,domain:n,message:o,nonce:s,scheme:u,signature:f,time:d=new Date,...m}=t,h=b0e(o);if(!h.address||!x0e({address:r,domain:n,message:h,nonce:s,scheme:u,time:d}))return!1;let v=wm(o);return bd(e,{address:h.address,hash:v,signature:f,...m})}var E0e=x(()=>{c();jI();g0e();v0e();jw()});async function qw(e,{serializedTransaction:t,throwOnReceiptRevert:r,timeout:n}){let o=await e.request({method:\"eth_sendRawTransactionSync\",params:n?[t,n]:[t]},{retryCount:0}),u=(e.chain?.formatters?.transactionReceipt?.format||bm)(o);if(u.status===\"reverted\"&&r)throw new Nv({receipt:u});return u}var _P=x(()=>{c();Ac();gm()});function $w(e){return{call:t=>hu(e,t),createAccessList:t=>UI(e,t),createBlockFilter:()=>mme(e),createContractEventFilter:t=>tB(e,t),createEventFilter:t=>DI(e,t),createPendingTransactionFilter:()=>HI(e),estimateContractGas:t=>Zde(e,t),estimateGas:t=>hw(e,t),getBalance:t=>yme(e,t),getBlobBaseFee:()=>gme(e),getBlock:t=>xa(e,t),getBlockNumber:t=>dd(e,t),getBlockTransactionCount:t=>vme(e,t),getBytecode:t=>Ji(e,t),getChainId:()=>Ko(e),getCode:t=>Ji(e,t),getContractEvents:t=>WB(e,t),getDelegation:t=>Eme(e,t),getEip712Domain:t=>Cme(e,t),getEnsAddress:t=>Ype(e,t),getEnsAvatar:t=>cme(e,t),getEnsName:t=>lme(e,t),getEnsResolver:t=>dme(e,t),getEnsText:t=>NI(e,t),getFeeHistory:t=>Bme(e,t),estimateFeesPerGas:t=>RB(e,t),getFilterChanges:t=>z0(e,t),getFilterLogs:t=>Pme(e,t),getGasPrice:()=>cw(e),getLogs:t=>yw(e,t),getProof:t=>Dhe(e,t),estimateMaxPriorityFeePerGas:t=>$de(e,t),fillTransaction:t=>pw(e,t),getStorageAt:t=>Lhe(e,t),getTransaction:t=>Lw(e,t),getTransactionConfirmations:t=>Fhe(e,t),getTransactionCount:t=>M0(e,t),getTransactionReceipt:t=>zw(e,t),multicall:t=>qhe(e,t),prepareTransactionRequest:t=>sd(e,t),readContract:t=>Xr(e,t),sendRawTransaction:t=>Cw(e,t),sendRawTransactionSync:t=>qw(e,t),simulate:t=>aC(e,t),simulateBlocks:t=>aC(e,t),simulateCalls:t=>e0e(e,t),simulateContract:t=>Lpe(e,t),verifyHash:t=>bd(e,t),verifyMessage:t=>s0e(e,t),verifySiweMessage:t=>w0e(e,t),verifyTypedData:t=>u0e(e,t),uninstallFilter:t=>F0(e,t),waitForTransactionReceipt:t=>TP(e,t),watchBlocks:t=>f0e(e,t),watchBlockNumber:t=>CP(e,t),watchContractEvent:t=>Gpe(e,t),watchEvent:t=>p0e(e,t),watchPendingTransactions:t=>h0e(e,t)}}var mK=x(()=>{c();Xpe();ume();fme();pme();vV();W1();wV();hme();$$();EV();AV();Jde();OB();GB();IG();$B();bme();xme();R0();Aw();wme();Tl();Q1();UG();Ame();Tme();Ime();FS();Rme();PB();KB();Hhe();zhe();xP();jhe();CS();aK();$he();Ic();iK();t0e();zpe();jS();jw();c0e();l0e();pK();dK();d0e();Vpe();m0e();y0e();E0e();mw();gI();_P()});function uC(e){let{key:t=\"public\",name:r=\"Public Client\"}=e;return vm({...e,key:t,name:r,type:\"publicClient\"}).extend($w)}var A0e=x(()=>{c();kI();mK()});async function S0e(e,{chain:t}){let{id:r,name:n,nativeCurrency:o,rpcUrls:s,blockExplorers:u}=t;await e.request({method:\"wallet_addEthereumChain\",params:[{chainId:le(r),chainName:n,nativeCurrency:o,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:f})=>f):void 0}]},{dedupe:!0,retryCount:0})}var C0e=x(()=>{c();tt()});function T0e(e,t){let{abi:r,args:n,bytecode:o,...s}=t,u=G1({abi:r,args:n,bytecode:o});return pd(e,{...s,...s.authorizationList?{to:null}:{},data:u})}var _0e=x(()=>{c();lI();Tw()});async function k0e(e){return e.account?.type===\"local\"?[e.account.address]:(await e.request({method:\"eth_accounts\"},{dedupe:!0})).map(r=>Jf(r))}var B0e=x(()=>{c();El()});async function I0e(e,t={}){let{account:r=e.account,chainId:n}=t,o=r?Xe(r):void 0,s=n?[o?.address,[le(n)]]:[o?.address],u=await e.request({method:\"wallet_getCapabilities\",params:s}),f={};for(let[d,m]of Object.entries(u)){f[Number(d)]={};for(let[h,y]of Object.entries(m))h===\"addSubAccount\"&&(h=\"unstable_addSubAccount\"),f[Number(d)][h]=y}return typeof n==\"number\"?f[n]:f}var P0e=x(()=>{c();Yr();tt()});async function R0e(e){return await e.request({method:\"wallet_getPermissions\"},{dedupe:!0})}var M0e=x(()=>{c()});async function cg(e,t){let{account:r=e.account,chainId:n,nonce:o}=t;if(!r)throw new On({docsPath:\"/docs/eip7702/prepareAuthorization\"});let s=Xe(r),u=(()=>{if(t.executor)return t.executor===\"self\"?t.executor:Xe(t.executor)})(),f={address:t.contractAddress??t.address,chainId:n,nonce:o};return typeof f.chainId>\"u\"&&(f.chainId=e.chain?.id??await Ae(e,Ko,\"getChainId\")({})),typeof f.nonce>\"u\"&&(f.nonce=await Ae(e,M0,\"getTransactionCount\")({address:s.address,blockTag:\"pending\"}),(u===\"self\"||u?.address&&di(u.address,s.address))&&(f.nonce+=1)),f}var kP=x(()=>{c();Yr();Pc();U0();Zt();Tl();CS()});async function O0e(e){return(await e.request({method:\"eth_requestAccounts\"},{dedupe:!0,retryCount:0})).map(r=>hn(r))}var N0e=x(()=>{c();El()});async function U0e(e,t){return e.request({method:\"wallet_requestPermissions\",params:[t]},{retryCount:0})}var D0e=x(()=>{c()});async function H0e(e,t){let{chain:r=e.chain}=t,n=t.timeout??Math.max((r?.blockTime??0)*3,5e3),o=await Ae(e,wI,\"sendCalls\")(t);return await Ae(e,xm,\"waitForCallsStatus\")({...t,id:o.id,timeout:n})}var L0e=x(()=>{c();Zt();EI();SI()});async function BP(e,t){let{account:r=e.account,assertChainId:n=!0,chain:o=e.chain,accessList:s,authorizationList:u,blobs:f,data:d,dataSuffix:m=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,gas:h,gasPrice:y,maxFeePerBlobGas:v,maxFeePerGas:E,maxPriorityFeePerGas:C,nonce:B,pollingInterval:R,throwOnReceiptRevert:M,type:U,value:O,...N}=t,j=t.timeout??Math.max((o?.blockTime??0)*3,5e3);if(typeof r>\"u\")throw new On({docsPath:\"/docs/actions/wallet/sendTransactionSync\"});let K=r?Xe(r):null;try{Vo(t);let G=await(async()=>{if(t.to)return t.to;if(t.to!==null&&u&&u.length>0)return await C0({authorization:u[0]}).catch(()=>{throw new ae(\"`to` is required. Could not infer from `authorizationList`.\")})})();if(K?.type===\"json-rpc\"||K===null){let J;o!==null&&(J=await Ae(e,Ko,\"getChainId\")({}),n&&Sw({currentChainId:J,chain:o}));let Y=e.chain?.formatters?.transactionRequest?.format,ie=(Y||ko)({...Ns(N,{format:Y}),accessList:s,account:K,authorizationList:u,blobs:f,chainId:J,data:m?mr([d??\"0x\",m]):d,gas:h,gasPrice:y,maxFeePerBlobGas:v,maxFeePerGas:E,maxPriorityFeePerGas:C,nonce:B,to:G,type:U,value:O},\"sendTransaction\"),re=hK.get(e.uid),H=re?\"wallet_sendTransaction\":\"eth_sendTransaction\",A=await(async()=>{try{return await e.request({method:H,params:[ie]},{retryCount:0})}catch(P){if(re===!1)throw P;let D=P;if(D.name===\"InvalidInputRpcError\"||D.name===\"InvalidParamsRpcError\"||D.name===\"MethodNotFoundRpcError\"||D.name===\"MethodNotSupportedRpcError\")return await e.request({method:\"wallet_sendTransaction\",params:[ie]},{retryCount:0}).then(L=>(hK.set(e.uid,!0),L)).catch(L=>{let V=L;throw V.name===\"MethodNotFoundRpcError\"||V.name===\"MethodNotSupportedRpcError\"?(hK.set(e.uid,!1),D):V});throw D}})(),T=await Ae(e,TP,\"waitForTransactionReceipt\")({checkReplacement:!1,hash:A,pollingInterval:R,timeout:j});if(M&&T.status===\"reverted\")throw new Nv({receipt:T});return T}if(K?.type===\"local\"){let J=await Ae(e,sd,\"prepareTransactionRequest\")({account:K,accessList:s,authorizationList:u,blobs:f,chain:o,data:m?mr([d??\"0x\",m]):d,gas:h,gasPrice:y,maxFeePerBlobGas:v,maxFeePerGas:E,maxPriorityFeePerGas:C,nonce:B,nonceManager:K.nonceManager,parameters:[...kS,\"sidecars\"],type:U,value:O,...N,to:G}),Y=o?.serializers?.transaction,W=await K.signTransaction(J,{serializer:Y});return await Ae(e,qw,\"sendRawTransactionSync\")({serializedTransaction:W,throwOnReceiptRevert:M,timeout:t.timeout})}throw K?.type===\"smart\"?new yu({metaMessages:[\"Consider using the `sendUserOperation` Action instead.\"],docsPath:\"/docs/actions/bundler/sendUserOperation\",type:\"smart\"}):new yu({docsPath:\"/docs/actions/wallet/sendTransactionSync\",type:K?.type})}catch(G){throw G instanceof yu?G:N0(G,{...t,account:K,chain:t.chain||void 0})}}var hK,yK=x(()=>{c();Yr();Pc();ht();Ac();xS();bI();Jn();_S();_0();Us();Zt();d0();Cl();Tl();pK();mw();_P();hK=new ci(128)});async function z0e(e,t){let{id:r}=t;await e.request({method:\"wallet_showCallsStatus\",params:[r]})}var F0e=x(()=>{c()});async function j0e(e,t){let{account:r=e.account}=t;if(!r)throw new On({docsPath:\"/docs/eip7702/signAuthorization\"});let n=Xe(r);if(!n.signAuthorization)throw new yu({docsPath:\"/docs/eip7702/signAuthorization\",metaMessages:[\"The `signAuthorization` Action does not support JSON-RPC Accounts.\"],type:n.type});let o=await cg(e,t);return n.signAuthorization(o)}var q0e=x(()=>{c();Yr();Pc();kP()});async function $0e(e,{account:t=e.account,message:r}){if(!t)throw new On({docsPath:\"/docs/actions/wallet/signMessage\"});let n=Xe(t);if(n.signMessage)return n.signMessage({message:r});let o=typeof r==\"string\"?ks(r):r.raw instanceof Uint8Array?ot(r.raw):r.raw;return e.request({method:\"personal_sign\",params:[o,n.address]},{retryCount:0})}var G0e=x(()=>{c();Yr();Pc();tt()});async function V0e(e,t){let{account:r=e.account,chain:n=e.chain,...o}=t;if(!r)throw new On({docsPath:\"/docs/actions/wallet/signTransaction\"});let s=Xe(r);Vo({account:s,...t});let u=await Ae(e,Ko,\"getChainId\")({});n!==null&&Sw({currentChainId:u,chain:n});let d=(n?.formatters||e.chain?.formatters)?.transactionRequest?.format||ko;return s.signTransaction?s.signTransaction({...o,account:s,chainId:u},{serializer:e.chain?.serializers?.transaction}):await e.request({method:\"eth_signTransaction\",params:[{...d({...o,account:s},\"signTransaction\"),chainId:le(u),from:s.address}]},{retryCount:0})}var K0e=x(()=>{c();Yr();Pc();bI();tt();Us();Zt();Cl();Tl()});async function W0e(e,t){let{account:r=e.account,domain:n,message:o,primaryType:s}=t;if(!r)throw new On({docsPath:\"/docs/actions/wallet/signTypedData\"});let u=Xe(r),f={EIP712Domain:KI({domain:n}),...t.types};if(VI({domain:n,message:o,primaryType:s,types:f}),u.signTypedData)return u.signTypedData({domain:n,message:o,primaryType:s,types:f});let d=nhe({domain:n,message:o,primaryType:s,types:f});return e.request({method:\"eth_signTypedData_v4\",params:[u.address,d]},{retryCount:0})}var Q0e=x(()=>{c();Yr();Pc();IV()});async function Z0e(e,{id:t}){await e.request({method:\"wallet_switchEthereumChain\",params:[{chainId:le(t)}]},{retryCount:0})}var J0e=x(()=>{c();tt()});async function Y0e(e,t){return await e.request({method:\"wallet_watchAsset\",params:t},{retryCount:0})}var X0e=x(()=>{c()});async function eye(e,t){return md.internal(e,BP,\"sendTransactionSync\",t)}var tye=x(()=>{c();yK();xI()});function bK(e){return{addChain:t=>S0e(e,t),deployContract:t=>T0e(e,t),fillTransaction:t=>pw(e,t),getAddresses:()=>k0e(e),getCallsStatus:t=>AI(e,t),getCapabilities:t=>I0e(e,t),getChainId:()=>Ko(e),getPermissions:()=>R0e(e),prepareAuthorization:t=>cg(e,t),prepareTransactionRequest:t=>sd(e,t),requestAddresses:()=>O0e(e),requestPermissions:t=>U0e(e,t),sendCalls:t=>wI(e,t),sendCallsSync:t=>H0e(e,t),sendRawTransaction:t=>Cw(e,t),sendRawTransactionSync:t=>qw(e,t),sendTransaction:t=>pd(e,t),sendTransactionSync:t=>BP(e,t),showCallsStatus:t=>z0e(e,t),signAuthorization:t=>j0e(e,t),signMessage:t=>$0e(e,t),signTransaction:t=>V0e(e,t),signTypedData:t=>W0e(e,t),switchChain:t=>Z0e(e,t),waitForCallsStatus:t=>xm(e,t),watchAsset:t=>Y0e(e,t),writeContract:t=>md(e,t),writeContractSync:t=>eye(e,t)}}var rye=x(()=>{c();$B();Tl();C0e();_0e();B0e();pV();P0e();M0e();kP();mw();N0e();D0e();EI();L0e();gI();_P();Tw();yK();F0e();q0e();G0e();K0e();Q0e();J0e();SI();X0e();xI();tye()});function IP({key:e,methods:t,name:r,request:n,retryCount:o=3,retryDelay:s=150,timeout:u,type:f},d){let m=_I();return{config:{key:e,methods:t,name:r,request:n,retryCount:o,retryDelay:s,timeout:u,type:f},request:Vme(n,{methods:t,retryCount:o,retryDelay:s,uid:m}),value:d}}var gK=x(()=>{c();Kme();hV()});function lC(e,t={}){let{key:r=\"custom\",methods:n,name:o=\"Custom Provider\",retryDelay:s}=t;return({retryCount:u})=>IP({key:r,methods:n,name:o,request:e.request.bind(e),retryCount:t.retryCount??u,retryDelay:s,type:\"custom\"})}var nye=x(()=>{c();gK()});var PP,oye=x(()=>{c();ht();PP=class extends ae{constructor(){super(\"No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.\",{docsPath:\"/docs/clients/intro\",name:\"UrlRequiredError\"})}}});function gd(e,t={}){let{batch:r,fetchFn:n,fetchOptions:o,key:s=\"http\",methods:u,name:f=\"HTTP JSON-RPC\",onFetchRequest:d,onFetchResponse:m,retryDelay:h,raw:y}=t;return({chain:v,retryCount:E,timeout:C})=>{let{batchSize:B=1e3,wait:R=0}=typeof r==\"object\"?r:{},M=t.retryCount??E,U=C??t.timeout??1e4,O=e||v?.rpcUrls.default.http[0];if(!O)throw new PP;let N=Zme(O,{fetchFn:n,fetchOptions:o,onRequest:d,onResponse:m,timeout:U});return IP({key:s,methods:u,name:f,async request({method:j,params:K}){let G={method:j,params:K},{schedule:J}=pI({id:O,wait:R,shouldSplitBatch(re){return re.length>B},fn:re=>N.request({body:re}),sort:(re,H)=>re.id-H.id}),Y=async re=>r?J(re):[await N.request({body:re})],[{error:W,result:ie}]=await Y(G);if(y)return{error:W,result:ie};if(W)throw new y0({body:G,error:W,url:O});return ie},retryCount:M,retryDelay:h,timeout:U,type:\"http\"},{fetchOptions:o,url:O})}}var aye=x(()=>{c();x1();oye();tV();Jme();gK()});function RP(e){let{r:t,s:r}=fi.Signature.fromCompact(e.slice(2,130)),n=+`0x${e.slice(130)}`,[o,s]=(()=>{if(n===0||n===1)return[void 0,n];if(n===27)return[BigInt(n),0];if(n===28)return[BigInt(n),1];throw new Error(\"Invalid yParityOrV value\")})();return typeof o<\"u\"?{r:le(t,{size:32}),s:le(r,{size:32}),v:o,yParity:s}:{r:le(t,{size:32}),s:le(r,{size:32}),yParity:s}}var iye=x(()=>{c();S0();tt()});var Bo=x(()=>{c();kI();A0e();mK();rye();nye();aye();fd();ht();U1();Iv();rV();cu();za();Ome();El();ui();U0();_();au();Gp();ji();Yf();Vp();Zn();bo();tt();Is();qS();kV();jI();WI();iye();sB()});var sye,cye=x(()=>{c();_();sye=g({id:16600,name:\"0G Newton Testnet\",nativeCurrency:{name:\"A0GI\",symbol:\"A0GI\",decimals:18},rpcUrls:{default:{http:[\"https://evmrpc-testnet.0g.ai\"]}},blockExplorers:{default:{name:\"0G BlockChain Explorer\",url:\"https://chainscan-newton.0g.ai\"}},testnet:!0})});var uye,lye=x(()=>{c();_();uye=g({id:16601,name:\"0G Galileo Testnet\",nativeCurrency:{name:\"A0GI\",symbol:\"A0GI\",decimals:18},rpcUrls:{default:{http:[\"https://evmrpc-testnet.0g.ai\"]}},blockExplorers:{default:{name:\"0G BlockChain Explorer\",url:\"https://chainscan-galileo.0g.ai\"}},testnet:!0})});var fye,dye=x(()=>{c();_();fye=g({id:16661,name:\"0G Mainnet\",nativeCurrency:{name:\"0G\",symbol:\"0G\",decimals:18},rpcUrls:{default:{http:[\"https://evmrpc.0g.ai\"]}},blockExplorers:{default:{name:\"0G BlockChain Explorer\",url:\"https://chainscan.0g.ai\"}},testnet:!1})});var pye,mye=x(()=>{c();_();pye=g({id:16602,name:\"0G Galileo Testnet\",nativeCurrency:{name:\"A0GI\",symbol:\"A0GI\",decimals:18},rpcUrls:{default:{http:[\"https://evmrpc-testnet.0g.ai\"]}},blockExplorers:{default:{name:\"0G BlockChain Explorer\",url:\"https://chainscan-galileo.0g.ai\"}},testnet:!0})});var hye,yye=x(()=>{c();_();hye=g({id:995,name:\"5ireChain\",nativeCurrency:{name:\"5ire Token\",symbol:\"5IRE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.5ire.network\"]}},blockExplorers:{default:{name:\"5ireChain Mainnet Explorer\",url:\"https://5irescan.io/\"}},testnet:!1})});var bye,gye=x(()=>{c();_();bye=g({id:179,name:\"ABEY Mainnet\",nativeCurrency:{name:\"ABEY\",symbol:\"ABEY\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.abeychain.com\"]}},blockExplorers:{default:{name:\"Abey Scan\",url:\"https://abeyscan.com\"}},testnet:!1})});var Gw,xK,fC=x(()=>{c();nw();Gw=50000n,xK=qde*32n});var vK,xye=x(()=>{c();Zn();bo();tt();sw();_l();id();gm();Us();fC();vK={block:iw({format(e){let t=e.transactions?.map(r=>{if(typeof r==\"string\")return r;let n=vK.transaction?.format(r);return n.typeHex===\"0x71\"?n.type=\"eip712\":n.typeHex===\"0xff\"&&(n.type=\"priority\"),n});return{l1BatchNumber:e.l1BatchNumber?at(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?at(e.l1BatchTimestamp):null,transactions:t}}}),transaction:P0({format(e){let t={};return e.type===\"0x71\"?t.type=\"eip712\":e.type===\"0xff\"&&(t.type=\"priority\"),{...t,l1BatchNumber:e.l1BatchNumber?at(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?at(e.l1BatchTxIndex):null}}}),transactionReceipt:_w({format(e){return{l1BatchNumber:e.l1BatchNumber?at(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?at(e.l1BatchTxIndex):null,logs:e.logs.map(t=>({...go(t),l1BatchNumber:t.l1BatchNumber?at(t.l1BatchNumber):null,transactionLogIndex:Zr(t.transactionLogIndex),logType:t.logType})),l2ToL1Logs:e.l2ToL1Logs.map(t=>({blockNumber:at(t.blockHash),blockHash:t.blockHash,l1BatchNumber:t.l1BatchNumber?at(t.l1BatchNumber):null,transactionIndex:at(t.transactionIndex),shardId:at(t.shardId),isService:t.isService,sender:t.sender,key:t.key,value:t.value,transactionHash:t.transactionHash,logIndex:at(t.logIndex)}))}}}),transactionRequest:rw({exclude:[\"customSignature\",\"factoryDeps\",\"gasPerPubdata\",\"paymaster\",\"paymasterInput\"],format(e){return e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:ot(e.gasPerPubdata)}:{gasPerPubdata:ot(Gw)},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from(Jr(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps.map(t=>Array.from(Jr(t)))}:{},...e.customSignature?{customSignature:Array.from(Jr(e.customSignature))}:{}},type:\"0x71\"}:{}}})}});var MP,vye=x(()=>{c();ht();MP=class extends ae{constructor(){super([\"Transaction is not an EIP712 transaction.\",\"\",\"Transaction must:\",\\'  - include `type: \"eip712\"`\\',\"  - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`\"].join(`\\n`),{name:\"InvalidEip712TransactionError\"})}}});function OP(e){return!!(e.type===\"eip712\"||\"customSignature\"in e&&e.customSignature||\"paymaster\"in e&&e.paymaster||\"paymasterInput\"in e&&e.paymasterInput||\"gasPerPubdata\"in e&&typeof e.gasPerPubdata==\"bigint\"||\"factoryDeps\"in e&&e.factoryDeps)}var wK=x(()=>{c()});function NP(e){let{chainId:t,to:r,from:n,paymaster:o,paymasterInput:s}=e;if(!OP(e))throw new MP;if(!t||t<=0)throw new Rl({chainId:t});if(r&&!wt(r))throw new vr({address:r});if(n&&!wt(n))throw new vr({address:n});if(o&&!wt(o))throw new vr({address:o});if(o&&!s)throw new ae(\"`paymasterInput` must be provided when `paymaster` is defined\");if(!o&&s)throw new ae(\"`paymaster` must be provided when `paymasterInput` is defined\")}var EK=x(()=>{c();Ec();ht();$1();ui();vye();wK()});function Ipt(e,t){return OP(e)?Ppt(e):J1(e,t)}function Ppt(e){let{chainId:t,gas:r,nonce:n,to:o,from:s,value:u,maxFeePerGas:f,maxPriorityFeePerGas:d,customSignature:m,factoryDeps:h,paymaster:y,paymasterInput:v,gasPerPubdata:E,data:C}=e;NP(e);let B=[n?ot(n):\"0x\",d?ot(d):\"0x\",f?ot(f):\"0x\",r?ot(r):\"0x\",o??\"0x\",u?ot(u):\"0x\",C??\"0x\",ot(t),ot(\"\"),ot(\"\"),ot(t),s??\"0x\",E?ot(E):ot(Gw),h??[],m??\"0x\",y&&v?[y,v]:[]];return Cn([\"0x71\",Qi(B)])}var wye,Eye=x(()=>{c();Jn();tt();Kv();Pw();fC();EK();wK();wye={transaction:Ipt}});var UP,DP,HP,Aye=x(()=>{c();ht();UP=class extends ae{constructor({givenLength:t,maxBytecodeSize:r}){super(`Bytecode cannot be longer than ${r} bytes. Given length: ${t}`,{name:\"BytecodeLengthExceedsMaxSizeError\"})}},DP=class extends ae{constructor({givenLengthInWords:t}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${t}`,{name:\"BytecodeLengthInWordsMustBeOddError\"})}},HP=class extends ae{constructor({givenLength:t}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${t}`,{name:\"BytecodeLengthMustBeDivisibleBy32Error\"})}}});function Sye(e){let t=Ha(e);if(t.length%32!==0)throw new HP({givenLength:t.length});if(t.length>xK)throw new UP({givenLength:t.length,maxBytecodeSize:xK});let r=DB(t),n=Ha(r),o=t.length/32;if(o%2===0)throw new DP({givenLengthInWords:o});let s=Ha(o),u=Qr(s,{size:2}),f=new Uint8Array([1,0]);return n.set(f,0),n.set(u,2),n}var Cye=x(()=>{c();Gp();bo();PG();fC();Aye()});function Rpt(e){let{gas:t,nonce:r,to:n,from:o,value:s,maxFeePerGas:u,maxPriorityFeePerGas:f,factoryDeps:d,paymaster:m,paymasterInput:h,gasPerPubdata:y,data:v}=e;return{txType:113n,from:BigInt(o),to:n?BigInt(n):0n,gasLimit:t??0n,gasPerPubdataByteLimit:y??Gw,maxFeePerGas:u??0n,maxPriorityFeePerGas:f??0n,paymaster:m?BigInt(m):0n,nonce:r?BigInt(r):0n,value:s??0n,data:v??\"0x\",factoryDeps:d?.map(E=>ot(Sye(E)))??[],paymasterInput:h||\"0x\"}}var Tye,_ye=x(()=>{c();tt();fC();EK();Cye();Tye=e=>{NP(e);let t=Rpt(e);return{domain:{name:\"zkSync\",version:\"2\",chainId:e.chainId},types:{Transaction:[{name:\"txType\",type:\"uint256\"},{name:\"from\",type:\"uint256\"},{name:\"to\",type:\"uint256\"},{name:\"gasLimit\",type:\"uint256\"},{name:\"gasPerPubdataByteLimit\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymaster\",type:\"uint256\"},{name:\"nonce\",type:\"uint256\"},{name:\"value\",type:\"uint256\"},{name:\"data\",type:\"bytes\"},{name:\"factoryDeps\",type:\"bytes32[]\"},{name:\"paymasterInput\",type:\"bytes\"}]},primaryType:\"Transaction\",message:t}}});var bn,Xi=x(()=>{c();xye();Eye();_ye();bn={blockTime:1e3,formatters:vK,serializers:wye,custom:{getEip712Domain:Tye}}});var kye,Bye=x(()=>{c();_();Xi();kye=g({...bn,blockTime:200,id:2741,name:\"Abstract\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://api.mainnet.abs.xyz\"],webSocket:[\"wss://api.mainnet.abs.xyz/ws\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://abscan.org\"},native:{name:\"Abstract Explorer\",url:\"https://explorer.mainnet.abs.xyz\"}},contracts:{multicall3:{address:\"0xAa4De41dba0Ca5dCBb288b7cC6b708F3aaC759E7\",blockCreated:5288},erc6492Verifier:{address:\"0xfB688330379976DA81eB64Fe4BF50d7401763B9C\",blockCreated:5263}}})});var Iye,Pye=x(()=>{c();_();Xi();Iye=g({...bn,blockTime:200,id:11124,name:\"Abstract Testnet\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://api.testnet.abs.xyz\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://sepolia.abscan.org\"},native:{name:\"Abstract Explorer\",url:\"https://explorer.testnet.abs.xyz\"}},testnet:!0,contracts:{multicall3:{address:\"0xF9cda624FBC7e059355ce98a31693d299FACd963\",blockCreated:358349},erc6492Verifier:{address:\"0xfB688330379976DA81eB64Fe4BF50d7401763B9C\",blockCreated:431682}}})});var Rye,Mye=x(()=>{c();_();Rye=g({id:787,name:\"Acala\",network:\"acala\",nativeCurrency:{name:\"Acala\",symbol:\"ACA\",decimals:18},rpcUrls:{default:{http:[\"https://eth-rpc-acala.aca-api.network\"],webSocket:[\"wss://eth-rpc-acala.aca-api.network\"]}},blockExplorers:{default:{name:\"Acala Blockscout\",url:\"https://blockscout.acala.network\",apiUrl:\"https://blockscout.acala.network/api\"}},testnet:!1})});var Oye,Nye=x(()=>{c();_();Oye=g({id:47,name:\"Acria IntelliChain\",nativeCurrency:{decimals:18,name:\"ACRIA\",symbol:\"ACRIA\"},rpcUrls:{default:{http:[\"https://aic.acria.ai\"]}},blockExplorers:{default:{name:\"Acria Explorer\",url:\"https://explorer.acria.ai\"}},testnet:!1})});var Uye,Dye=x(()=>{c();_();Uye=g({id:1215,name:\"ADF Chain\",nativeCurrency:{name:\"ADDFILL\",symbol:\"ADF\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.adftechnology.com\"]}},blockExplorers:{default:{name:\"ADF Mainnet Explorer\",url:\"https://explorer.adftechnology.com\"}},testnet:!1})});var Hye,Lye=x(()=>{c();_();Hye=g({id:36900,name:\"ADI_Chain\",nativeCurrency:{decimals:18,name:\"ADI\",symbol:\"ADI\"},rpcUrls:{default:{http:[\"https://rpc.adifoundation.ai\"]}},blockExplorers:{default:{name:\"ADI Explorer\",url:\"https://explorer.adifoundation.ai\"}},testnet:!1})});var zye,Fye=x(()=>{c();_();zye=g({id:9990,name:\"Agung Network\",nativeCurrency:{decimals:18,name:\"Agung\",symbol:\"AGNG\"},rpcUrls:{default:{http:[\"https://wss-async.agung.peaq.network\"],webSocket:[\"wss://wss-async.agung.peaq.network\"]}},blockExplorers:{default:{name:\"Subscan\",url:\"https://agung-testnet.subscan.io\"}},testnet:!0})});var jye,qye=x(()=>{c();_();jye=g({id:168,name:\"AIOZ Network\",nativeCurrency:{decimals:18,name:\"AIOZ\",symbol:\"AIOZ\"},rpcUrls:{default:{http:[\"https://eth-dataseed.aioz.network\"]}},blockExplorers:{default:{name:\"AIOZ Explorer\",url:\"https://explorer.aioz.network\"}},testnet:!1})});var $ye,Gye=x(()=>{c();_();$ye=g({id:41455,name:\"Aleph Zero\",nativeCurrency:{name:\"Aleph Zero\",symbol:\"AZERO\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.alephzero.raas.gelato.cloud\"]}},blockExplorers:{default:{name:\"Aleph Zero EVM Explorer\",url:\"https://evm-explorer.alephzero.org\",apiUrl:\"https://evm-explorer.alephzero.org/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:4603377}}})});var Vye,Kye=x(()=>{c();_();Vye=g({id:2039,name:\"Aleph Zero Testnet\",nativeCurrency:{name:\"TZERO\",symbol:\"TZERO\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.alephzero-testnet.gelato.digital\"],webSocket:[\"wss://ws.alephzero-testnet.gelato.digital\"]}},blockExplorers:{default:{name:\"Aleph Zero EVM Testnet explorer\",url:\"https://evm-explorer-testnet.alephzero.org\",apiUrl:\"https://evm-explorer-testnet.alephzero.org/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:2861745}},testnet:!0})});var Wye,Qye=x(()=>{c();_();Wye=g({id:10241024,name:\"AlienX Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.alienxchain.io/http\"]}},blockExplorers:{default:{name:\"AlienX Explorer\",url:\"https://explorer.alienxchain.io\"}},testnet:!1})});var Zye,Jye=x(()=>{c();_();Zye=g({id:10241025,name:\"ALIENX Hal Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://hal-rpc.alienxchain.io/http\"]}},blockExplorers:{default:{name:\"AlienX Explorer\",url:\"https://hal-explorer.alienxchain.io\"}},testnet:!0})});var Yye,Xye=x(()=>{c();_();Yye=g({id:8150,name:\"Alpen Testnet\",nativeCurrency:{name:\"Signet BTC\",symbol:\"sBTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.alpenlabs.io\"]}},blockExplorers:{default:{name:\"Alpen Explorer\",url:\"https://explorer.testnet.alpenlabs.io\",apiUrl:\"https://explorer.testnet.alpenlabs.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:290408}},testnet:!0})});var LP,AK=x(()=>{c();LP={gasPriceOracle:{address:\"0x420000000000000000000000000000000000000F\"},l1Block:{address:\"0x4200000000000000000000000000000000000015\"},l2CrossDomainMessenger:{address:\"0x4200000000000000000000000000000000000007\"},l2Erc721Bridge:{address:\"0x4200000000000000000000000000000000000014\"},l2StandardBridge:{address:\"0x4200000000000000000000000000000000000010\"},l2ToL1MessagePasser:{address:\"0x4200000000000000000000000000000000000016\"}}});var Vw,zP=x(()=>{c();Zn();sw();id();gm();Vw={block:iw({format(e){return{transactions:e.transactions?.map(r=>{if(typeof r==\"string\")return r;let n=kc(r);return n.typeHex===\"0x7e\"&&(n.isSystemTx=r.isSystemTx,n.mint=r.mint?at(r.mint):void 0,n.sourceHash=r.sourceHash,n.type=\"deposit\"),n}),stateRoot:e.stateRoot}}}),transaction:P0({format(e){let t={};return e.type===\"0x7e\"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?at(e.mint):void 0,t.sourceHash=e.sourceHash,t.type=\"deposit\"),t}}),transactionReceipt:_w({format(e){return{l1GasPrice:e.l1GasPrice?at(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?at(e.l1GasUsed):null,l1Fee:e.l1Fee?at(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})}});function SK(e,t){return Opt(e)?Mpt(e):J1(e,t)}function Mpt(e){Npt(e);let{sourceHash:t,data:r,from:n,gas:o,isSystemTx:s,mint:u,to:f,value:d}=e,m=[t,n,f??\"0x\",u?ot(u):\"0x\",d?ot(d):\"0x\",o?ot(o):\"0x\",s?\"0x1\":\"0x\",r??\"0x\"];return Cn([\"0x7e\",Qi(m)])}function Opt(e){return e.type===\"deposit\"||typeof e.sourceHash<\"u\"}function Npt(e){let{from:t,to:r}=e;if(t&&!wt(t))throw new vr({address:t});if(r&&!wt(r))throw new vr({address:r})}var ebe,CK=x(()=>{c();Ec();ui();Jn();tt();Kv();Pw();ebe={transaction:SK}});var de,it=x(()=>{c();AK();zP();CK();de={blockTime:2e3,contracts:LP,formatters:Vw,serializers:ebe}});var FP,tbe,rbe=x(()=>{c();it();_();FP=1,tbe=g({...de,id:888888888,name:\"Ancient8\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.ancient8.gg\"]}},blockExplorers:{default:{name:\"Ancient8 explorer\",url:\"https://scan.ancient8.gg\",apiUrl:\"https://scan.ancient8.gg/api\"}},contracts:{...de.contracts,l2OutputOracle:{[FP]:{address:\"0xB09DC08428C8b4EFB4ff9C0827386CDF34277996\"}},portal:{[FP]:{address:\"0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68\",blockCreated:19070571}},l1StandardBridge:{[FP]:{address:\"0xd5e3eDf5b68135D559D572E26bF863FBC1950033\",blockCreated:19070571}}},sourceId:FP})});var jP,nbe,obe=x(()=>{c();it();_();jP=11155111,nbe=g({...de,id:28122024,name:\"Ancient8 Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpcv2-testnet.ancient8.gg\"]}},blockExplorers:{default:{name:\"Ancient8 Celestia Testnet explorer\",url:\"https://scanv2-testnet.ancient8.gg\",apiUrl:\"https://scanv2-testnet.ancient8.gg/api\"}},contracts:{...de.contracts,l2OutputOracle:{[jP]:{address:\"0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB\"}},portal:{[jP]:{address:\"0xfa1d9E26A6aCD7b22115D27572c1221B9803c960\",blockCreated:4972908}},l1StandardBridge:{[jP]:{address:\"0xF6Bc0146d3c74D48306e79Ae134A260E418C9335\",blockCreated:4972908}}},sourceId:jP,testnet:!0})});var abe,ibe=x(()=>{c();_();abe=g({id:31337,name:\"Anvil\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"],webSocket:[\"ws://127.0.0.1:8545\"]}}})});var Upt,sbe,cbe=x(()=>{c();_();Upt=42161,sbe=g({id:33139,name:\"ApeChain\",nativeCurrency:{name:\"ApeCoin\",symbol:\"APE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.apechain.com/http\"],webSocket:[\"wss://rpc.apechain.com/ws\"]}},blockExplorers:{default:{name:\"Apescan\",url:\"https://apescan.io\",apiUrl:\"https://api.apescan.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:20889}},sourceId:Upt})});var ube,lbe=x(()=>{c();_();ube=g({id:3993,name:\"APEX Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet.apexlayer.xyz\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://exp-testnet.apexlayer.xyz\",apiUrl:\"https://exp-testnet.apexlayer.xyz/api\"}},contracts:{multicall3:{address:\"0xf7642be33a6b18D16a995657adb5a68CD0438aE2\",blockCreated:283775}},testnet:!0})});var fbe,dbe=x(()=>{c();_();fbe=g({id:62606,name:\"Apollo\",nativeCurrency:{decimals:18,name:\"Apollo\",symbol:\"APOLLO\"},rpcUrls:{default:{http:[\"https://mainnet-rpc.apolloscan.io\"]}},blockExplorers:{default:{name:\"Apollo Explorer\",url:\"https://apolloscan.io\"}}})});var pbe,mbe=x(()=>{c();_();pbe=g({id:42161,name:\"Arbitrum One\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:250,rpcUrls:{default:{http:[\"https://arb1.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://arbiscan.io\",apiUrl:\"https://api.arbiscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:7654707}}})});var hbe,ybe=x(()=>{c();_();hbe=g({id:421613,name:\"Arbitrum Goerli\",nativeCurrency:{name:\"Arbitrum Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://goerli-rollup.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://goerli.arbiscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:88114}},testnet:!0})});var bbe,gbe=x(()=>{c();_();bbe=g({id:42170,name:\"Arbitrum Nova\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://nova.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://nova.arbiscan.io\",apiUrl:\"https://api-nova.arbiscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1746963}}})});var xbe,vbe=x(()=>{c();_();xbe=g({id:421614,name:\"Arbitrum Sepolia\",blockTime:250,nativeCurrency:{name:\"Arbitrum Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia-rollup.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://sepolia.arbiscan.io\",apiUrl:\"https://api-sepolia.arbiscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:81930}},testnet:!0})});var wbe,Ebe=x(()=>{c();_();wbe=g({id:5042002,name:\"Arc Testnet\",nativeCurrency:{name:\"USDC\",symbol:\"USDC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.arc.network\",\"https://rpc.quicknode.testnet.arc.network\",\"https://rpc.blockdaemon.testnet.arc.network\"],webSocket:[\"wss://rpc.testnet.arc.network\",\"wss://rpc.quicknode.testnet.arc.network\"]}},blockExplorers:{default:{name:\"ArcScan\",url:\"https://testnet.arcscan.app\",apiUrl:\"https://testnet.arcscan.app/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},testnet:!0})});var Abe,Sbe=x(()=>{c();_();Abe=g({id:7897,name:\"Arena-Z\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.arena-z.gg\"]}},blockExplorers:{default:{name:\"Arena-Z Explorer\",url:\"https://explorer.arena-z.gg\",apiUrl:\"https://explorer.arena-z.gg\"}}})});var Cbe,Tbe=x(()=>{c();_();Cbe=g({id:463,name:\"Areon Network\",nativeCurrency:{decimals:18,name:\"AREA\",symbol:\"AREA\"},rpcUrls:{default:{http:[\"https://mainnet-rpc.areon.network\"],webSocket:[\"wss://mainnet-ws.areon.network\"]}},blockExplorers:{default:{name:\"Areonscan\",url:\"https://areonscan.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:353286}},testnet:!1})});var _be,kbe=x(()=>{c();_();_be=g({id:462,name:\"Areon Network Testnet\",nativeCurrency:{decimals:18,name:\"TAREA\",symbol:\"TAREA\"},rpcUrls:{default:{http:[\"https://testnet-rpc.areon.network\"],webSocket:[\"wss://testnet-ws.areon.network\"]}},blockExplorers:{default:{name:\"Areonscan\",url:\"https://areonscan.com\"}},testnet:!0})});var Bbe,Ibe=x(()=>{c();_();Bbe=g({id:463,name:\"Areum\",nativeCurrency:{decimals:18,name:\"AREA\",symbol:\"AREA\"},rpcUrls:{default:{http:[\"https://mainnet-rpc.areum.network\"],webSocket:[\"wss://mainnet-ws.areum.network\"]}},blockExplorers:{default:{name:\"Areum Explorer\",url:\"https://explorer.areum.network\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:353286}},testnet:!1})});var Pbe,Rbe=x(()=>{c();_();Pbe=g({id:11822,name:\"Artela Testnet\",nativeCurrency:{name:\"ART\",symbol:\"ART\",decimals:18},rpcUrls:{default:{http:[\"https://betanet-rpc1.artela.network\"]}},blockExplorers:{default:{name:\"Artela\",url:\"https://betanet-scan.artela.network\",apiUrl:\"https://betanet-scan.artela.network/api\"}},contracts:{multicall3:{address:\"0xd07c8635f76e8745Ee7092fbb6e8fbc5FeF09DD7\",blockCreated:7001871}},testnet:!0})});var Mbe,Obe=x(()=>{c();_();Mbe=g({id:10242,name:\"Arthera\",nativeCurrency:{name:\"Arthera\",symbol:\"AA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.arthera.net\"]}},blockExplorers:{default:{name:\"Arthera EVM Explorer\",url:\"https://explorer.arthera.net\",apiUrl:\"https://explorer.arthera.net/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:4502791}}})});var Nbe,Ube=x(()=>{c();_();Nbe=g({id:10243,name:\"Arthera Testnet\",nativeCurrency:{name:\"Arthera\",symbol:\"AA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-test.arthera.net\"]}},blockExplorers:{default:{name:\"Arthera EVM Explorer\",url:\"https://explorer-test.arthera.net\",apiUrl:\"https://explorer-test.arthera.net/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:22051}},testnet:!0})});var Dbe,Hbe=x(()=>{c();_();Dbe=g({id:42420,name:\"AssetChain Mainnet\",nativeCurrency:{decimals:18,name:\"Real World Asset\",symbol:\"RWA\"},rpcUrls:{default:{http:[\"https://mainnet-rpc.assetchain.org\"]}},blockExplorers:{default:{name:\"Asset Chain Explorer\",url:\"https://scan.assetchain.org\",apiUrl:\"https://scan.assetchain.org/api\"}},testnet:!1,contracts:{}})});var Lbe,zbe=x(()=>{c();_();Lbe=g({id:42421,name:\"AssetChain Testnet\",nativeCurrency:{decimals:18,name:\"Real World Asset\",symbol:\"RWA\"},rpcUrls:{default:{http:[\"https://enugu-rpc.assetchain.org\"]}},blockExplorers:{default:{name:\"Asset Chain Testnet Explorer\",url:\"https://scan-testnet.assetchain.org\",apiUrl:\"https://scan-testnet.assetchain.org/api\"}},testnet:!0,contracts:{multicall3:{address:\"0x989F832D35988cb5e3eB001Fa2Fe789469EC31Ea\",blockCreated:17177}}})});var Fbe,jbe=x(()=>{c();_();Fbe=g({id:592,name:\"Astar\",network:\"astar-mainnet\",nativeCurrency:{name:\"Astar\",symbol:\"ASTR\",decimals:18},rpcUrls:{default:{http:[\"https://astar.api.onfinality.io/public\"]}},blockExplorers:{default:{name:\"Astar Subscan\",url:\"https://astar.subscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:761794}},testnet:!1})});var qbe,$be=x(()=>{c();_();qbe=g({id:3776,name:\"Astar zkEVM\",network:\"AstarZkEVM\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-zkevm.astar.network\"]}},blockExplorers:{default:{name:\"Astar zkEVM Explorer\",url:\"https://astar-zkevm.explorer.startale.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:93528}},testnet:!1})});var Gbe,Vbe=x(()=>{c();_();Gbe=g({id:6038361,name:\"Astar zkEVM Testnet zKyoto\",network:\"zKyoto\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.startale.com/zkyoto\"]}},blockExplorers:{default:{name:\"zKyoto Explorer\",url:\"https://zkyoto.explorer.startale.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:196153}},testnet:!0})});var Kbe,Wbe=x(()=>{c();_();Kbe=g({id:2340,name:\"Atleta Olympia\",nativeCurrency:{decimals:18,name:\"Atla\",symbol:\"ATLA\"},rpcUrls:{default:{http:[\"https://testnet-rpc.atleta.network:9944\",\"https://testnet-rpc.atleta.network\"],ws:[\"wss://testnet-rpc.atleta.network:9944\"]}},blockExplorers:{default:{name:\"Atleta Olympia Explorer\",url:\"https://blockscout.atleta.network\",apiUrl:\"https://blockscout.atleta.network/api\"}},contracts:{multicall3:{address:\"0x1472ec6392180fb84F345d2455bCC75B26577115\",blockCreated:1076473}},testnet:!0})});var Qbe,Zbe=x(()=>{c();_();Qbe=g({id:1313161554,name:\"Aurora\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://mainnet.aurora.dev\"]}},blockExplorers:{default:{name:\"Aurorascan\",url:\"https://aurorascan.dev\",apiUrl:\"https://aurorascan.dev/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:62907816}}})});var Jbe,Ybe=x(()=>{c();_();Jbe=g({id:1313161555,name:\"Aurora Testnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://testnet.aurora.dev\"]}},blockExplorers:{default:{name:\"Aurorascan\",url:\"https://testnet.aurorascan.dev\",apiUrl:\"https://testnet.aurorascan.dev/api\"}},testnet:!0})});var Xbe,e1e=x(()=>{c();_();Xbe=g({id:205205,name:\"Auroria Testnet\",network:\"auroria\",nativeCurrency:{name:\"Auroria Stratis\",symbol:\"tSTRAX\",decimals:18},rpcUrls:{default:{http:[\"https://auroria.rpc.stratisevm.com\"]}},blockExplorers:{default:{name:\"Auroria Testnet Explorer\",url:\"https://auroria.explorer.stratisevm.com\"}},testnet:!0})});var t1e,r1e=x(()=>{c();_();t1e=g({id:785,name:\"Autheo Testnet\",nativeCurrency:{decimals:18,name:\"Autheo\",symbol:\"THEO\"},rpcUrls:{default:{http:[\"https://testnet-rpc1.autheo.com\",\"https://testnet-rpc2.autheo.com\"]}},blockExplorers:{default:{name:\"Autheo Testnet Block Explorer\",url:\"https://testnet-explorer.autheo.com/\"}},testnet:!0})});var n1e,o1e=x(()=>{c();_();n1e=g({id:43114,name:\"Avalanche\",blockTime:1700,nativeCurrency:{decimals:18,name:\"Avalanche\",symbol:\"AVAX\"},rpcUrls:{default:{http:[\"https://api.avax.network/ext/bc/C/rpc\"]}},blockExplorers:{default:{name:\"SnowTrace\",url:\"https://snowtrace.io\",apiUrl:\"https://api.snowtrace.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:11907934}}})});var a1e,i1e=x(()=>{c();_();a1e=g({id:43113,name:\"Avalanche Fuji\",nativeCurrency:{decimals:18,name:\"Avalanche Fuji\",symbol:\"AVAX\"},rpcUrls:{default:{http:[\"https://api.avax-test.network/ext/bc/C/rpc\"]}},blockExplorers:{default:{name:\"SnowTrace\",url:\"https://testnet.snowtrace.io\",apiUrl:\"https://api-testnet.snowtrace.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:7096959}},testnet:!0})});var Dpt,s1e,c1e=x(()=>{c();_();Dpt=8453,s1e=g({id:8333,name:\"B3\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet-rpc.b3.fun/http\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.b3.fun\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0}},sourceId:Dpt})});var Hpt,u1e,l1e=x(()=>{c();_();Hpt=168587773,u1e=g({id:1993,name:\"B3 Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.b3.fun/http\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://sepolia.explorer.b3.fun\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0}},testnet:!0,sourceId:Hpt})});var f1e,d1e=x(()=>{c();_();f1e=g({id:5165,network:\"bahamut\",name:\"Bahamut\",nativeCurrency:{name:\"Fasttoken\",symbol:\"FTN\",decimals:18},rpcUrls:{default:{http:[\"https://rpc1.bahamut.io\",\"https://bahamut-rpc.publicnode.com\",\"https://rpc2.bahamut.io\"],webSocket:[\"wss://ws1.sahara.bahamutchain.com\",\"wss://bahamut-rpc.publicnode.com\",\"wss://ws2.sahara.bahamutchain.com\"]}},blockExplorers:{default:{name:\"Ftnscan\",url:\"https://www.ftnscan.com\",apiUrl:\"https://www.ftnscan.com/api\"}}})});var dC,pC,p1e,m1e=x(()=>{c();it();_();dC=1,pC=g({...de,id:8453,name:\"Base\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.base.org\"]}},blockExplorers:{default:{name:\"Basescan\",url:\"https://basescan.org\",apiUrl:\"https://api.basescan.org/api\"}},contracts:{...de.contracts,disputeGameFactory:{[dC]:{address:\"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e\"}},l2OutputOracle:{[dC]:{address:\"0x56315b90c40730925ec5485cf004d835058518A0\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:5022},portal:{[dC]:{address:\"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e\",blockCreated:17482143}},l1StandardBridge:{[dC]:{address:\"0x3154Cf16ccdb4C6d922629664174b904d80F2C35\",blockCreated:17482143}}},sourceId:dC}),p1e=g({...pC,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://mainnet-preconf.base.org\"]}}})});var h1e,y1e=x(()=>{c();_();h1e=g({id:123420001114,name:\"Basecamp Testnet\",nativeCurrency:{decimals:18,name:\"Camp\",symbol:\"CAMP\"},rpcUrls:{default:{http:[\"https://rpc.basecamp.t.raas.gelato.cloud\"]}},blockExplorers:{default:{name:\"basecamp\",url:\"https://basecamp.cloud.blockscout.com\"}},testnet:!0})});var qP,b1e,g1e=x(()=>{c();it();_();qP=5,b1e=g({...de,id:84531,name:\"Base Goerli\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://goerli.base.org\"]}},blockExplorers:{default:{name:\"Basescan\",url:\"https://goerli.basescan.org\",apiUrl:\"https://goerli.basescan.org/api\"}},contracts:{...de.contracts,l2OutputOracle:{[qP]:{address:\"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1376988},portal:{[qP]:{address:\"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA\"}},l1StandardBridge:{[qP]:{address:\"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a\"}}},testnet:!0,sourceId:qP})});var mC,TK,x1e,v1e=x(()=>{c();it();_();mC=11155111,TK=g({...de,id:84532,network:\"base-sepolia\",name:\"Base Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.base.org\"]}},blockExplorers:{default:{name:\"Basescan\",url:\"https://sepolia.basescan.org\",apiUrl:\"https://api-sepolia.basescan.org/api\"}},contracts:{...de.contracts,disputeGameFactory:{[mC]:{address:\"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1\"}},l2OutputOracle:{[mC]:{address:\"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254\"}},portal:{[mC]:{address:\"0x49f53e41452c74589e85ca1677426ba426459e85\",blockCreated:4446677}},l1StandardBridge:{[mC]:{address:\"0xfd0Bf71F60660E2f608ed56e1659C450eB113120\",blockCreated:4446677}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1059647}},testnet:!0,sourceId:mC}),x1e=g({...TK,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://sepolia-preconf.base.org\"]}}})});var w1e,E1e=x(()=>{c();_();Xi();w1e=g({...bn,id:627,name:\"BattleChain Testnet\",network:\"battlechain-testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.battlechain.com\"]}},blockExplorers:{default:{name:\"BattleChain Explorer\",url:\"https://explorer.testnet.battlechain.com\",blockExplorerApi:\"https://block-explorer-api.testnet.battlechain.com/api\"}},testnet:!0})});var A1e,S1e=x(()=>{c();_();A1e=g({id:4337,name:\"Beam\",network:\"beam\",nativeCurrency:{decimals:18,name:\"Beam\",symbol:\"BEAM\"},rpcUrls:{default:{http:[\"https://build.onbeam.com/rpc\"],webSocket:[\"wss://build.onbeam.com/ws\"]}},blockExplorers:{default:{name:\"Beam Explorer\",url:\"https://subnets.avax.network/beam\"}},contracts:{multicall3:{address:\"0x4956f15efdc3dc16645e90cc356eafa65ffc65ec\",blockCreated:1}}})});var C1e,T1e=x(()=>{c();_();C1e=g({id:13337,name:\"Beam Testnet\",network:\"beam\",nativeCurrency:{decimals:18,name:\"Beam\",symbol:\"BEAM\"},rpcUrls:{default:{http:[\"https://build.onbeam.com/rpc/testnet\"],webSocket:[\"wss://build.onbeam.com/ws/testnet\"]}},blockExplorers:{default:{name:\"Beam Explorer\",url:\"https://subnets-test.avax.network/beam\"}},contracts:{multicall3:{address:\"0x9bf49b704ee2a095b95c1f2d4eb9010510c41c9e\",blockCreated:3}},testnet:!0})});var _1e,k1e=x(()=>{c();_();_1e=g({id:641230,name:\"Bear Network Chain Mainnet\",nativeCurrency:{decimals:18,name:\"BearNetworkChain\",symbol:\"BRNKC\"},rpcUrls:{default:{http:[\"https://brnkc-mainnet.bearnetwork.net\"]}},blockExplorers:{default:{name:\"BrnkScan\",url:\"https://brnkscan.bearnetwork.net\",apiUrl:\"https://brnkscan.bearnetwork.net/api\"}}})});var B1e,I1e=x(()=>{c();_();B1e=g({id:751230,name:\"Bear Network Chain Testnet\",nativeCurrency:{decimals:18,name:\"tBRNKC\",symbol:\"tBRNKC\"},rpcUrls:{default:{http:[\"https://brnkc-test.bearnetwork.net\"]}},blockExplorers:{default:{name:\"BrnkTestScan\",url:\"https://brnktest-scan.bearnetwork.net\",apiUrl:\"https://brnktest-scan.bearnetwork.net/api\"}},testnet:!0})});var P1e,R1e=x(()=>{c();_();P1e=g({id:80094,name:\"Berachain\",blockTime:2e3,nativeCurrency:{decimals:18,name:\"BERA Token\",symbol:\"BERA\"},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},ensRegistry:{address:\"0x5b22280886a2f5e09a49bea7e320eab0e5320e28\",blockCreated:877007},ensUniversalResolver:{address:\"0x4D41762915F83c76EcaF6776d9b08076aA32b492\",blockCreated:9310021}},rpcUrls:{default:{http:[\"https://rpc.berachain.com\"]}},blockExplorers:{default:{name:\"Berascan\",url:\"https://berascan.com\"}},ensTlds:[\".bera\"],testnet:!1})});var M1e,O1e=x(()=>{c();_();M1e=g({id:80069,blockTime:2e3,name:\"Berachain Bepolia\",nativeCurrency:{decimals:18,name:\"BERA Token\",symbol:\"BERA\"},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},rpcUrls:{default:{http:[\"https://bepolia.rpc.berachain.com\"]}},blockExplorers:{default:{name:\"Berascan\",url:\"https://bepolia.beratrail.io\"}},testnet:!0})});var N1e,U1e=x(()=>{c();_();N1e=g({id:80085,name:\"Berachain Artio\",nativeCurrency:{decimals:18,name:\"BERA Token\",symbol:\"BERA\"},rpcUrls:{default:{http:[\"https://artio.rpc.berachain.com\"]}},blockExplorers:{default:{name:\"Berachain\",url:\"https://artio.beratrail.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:866924}},testnet:!0})});var D1e,H1e=x(()=>{c();_();D1e=g({id:80084,name:\"Berachain bArtio\",nativeCurrency:{decimals:18,name:\"BERA Token\",symbol:\"BERA\"},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:109269},ensRegistry:{address:\"0xB0eef18971290b333450586D33dcA6cE122651D2\",blockCreated:7736794},ensUniversalResolver:{address:\"0x41692Ef1EA0C79E6b73077E4A67572D2BDbD7057\",blockCreated:7736795}},ensTlds:[\".bera\"],rpcUrls:{default:{http:[\"https://bartio.rpc.berachain.com\"]}},blockExplorers:{default:{name:\"Berachain bArtio Beratrail\",url:\"https://bartio.beratrail.io\"}},testnet:!0})});var L1e,z1e=x(()=>{c();_();L1e=g({id:11501,name:\"BEVM Mainnet\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-mainnet-1.bevm.io\"]}},blockExplorers:{default:{name:\"Bevmscan\",url:\"https://scan-mainnet.bevm.io\",apiUrl:\"https://scan-mainnet-api.bevm.io/api\"}}})});var F1e,j1e=x(()=>{c();_();F1e=g({id:3068,name:\"Bifrost Mainnet\",nativeCurrency:{name:\"BFC\",symbol:\"BFC\",decimals:18},rpcUrls:{default:{http:[\"https://public-01.mainnet.bifrostnetwork.com/rpc\"]}},blockExplorers:{default:{name:\"Bifrost Blockscout\",url:\"https://explorer.mainnet.bifrostnetwork.com\"}},testnet:!1})});var q1e,$1e=x(()=>{c();_();q1e=g({id:53456,name:\"BirdLayer\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.birdlayer.xyz\",\"https://rpc1.birdlayer.xyz\"],webSocket:[\"wss://rpc.birdlayer.xyz/ws\"]}},blockExplorers:{default:{name:\"BirdLayer Explorer\",url:\"https://scan.birdlayer.xyz\"}}})});var G1e,V1e=x(()=>{c();_();G1e=g({id:32520,name:\"Bitgert Mainnet\",nativeCurrency:{decimals:18,name:\"Brise\",symbol:\"Brise\"},rpcUrls:{default:{http:[\"https://rpc-bitgert.icecreamswap.com\"]}},blockExplorers:{default:{name:\"Bitgert Scan\",url:\"https://brisescan.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2118034}},testnet:!1})});var K1e,W1e=x(()=>{c();_();K1e=g({id:96,name:\"KUB Mainnet\",nativeCurrency:{name:\"KUB Coin\",symbol:\"KUB\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.bitkubchain.io\"]}},blockExplorers:{default:{name:\"KUB Chain Mainnet Explorer\",url:\"https://www.bkcscan.com\",apiUrl:\"https://www.bkcscan.com/api\"}}})});var Q1e,Z1e=x(()=>{c();_();Q1e=g({id:25925,name:\"Bitkub Testnet\",network:\"Bitkub Testnet\",nativeCurrency:{name:\"Bitkub Test\",symbol:\"tKUB\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet.bitkubchain.io\"]}},blockExplorers:{default:{name:\"Bitkub Chain Testnet Explorer\",url:\"https://testnet.bkcscan.com\",apiUrl:\"https://testnet.bkcscan.com/api\"}},testnet:!0})});var J1e,Y1e=x(()=>{c();_();J1e=g({id:200901,name:\"Bitlayer Mainnet\",nativeCurrency:{name:\"BTC\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.bitlayer.org\"],webSocket:[\"wss://ws.bitlayer.org\"]}},blockExplorers:{default:{name:\"bitlayer mainnet scan\",url:\"https://www.btrscan.com\"}},contracts:{multicall3:{address:\"0x5B256fE9e993902eCe49D138a5b1162cBb529474\",blockCreated:2421963}}})});var X1e,ege=x(()=>{c();_();X1e=g({id:200810,name:\"Bitlayer Testnet\",nativeCurrency:{name:\"BTC\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.bitlayer.org\"],webSocket:[\"wss://testnet-ws.bitlayer.org\"]}},blockExplorers:{default:{name:\"bitlayer testnet scan\",url:\"https://testnet.btrscan.com\"}},contracts:{multicall3:{address:\"0x5B256fE9e993902eCe49D138a5b1162cBb529474\",blockCreated:4135671}},testnet:!0})});var tge,rge=x(()=>{c();_();tge=g({id:7171,name:\"Bitrock Mainnet\",nativeCurrency:{name:\"BROCK\",symbol:\"BROCK\",decimals:18},rpcUrls:{default:{http:[\"https://brockrpc.io\"]}},blockExplorers:{default:{name:\"Bitrock Explorer\",url:\"https://explorer.bit-rock.io\"}},testnet:!1})});var nge,oge=x(()=>{c();_();nge=g({id:199,name:\"BitTorrent\",network:\"bittorrent-chain-mainnet\",nativeCurrency:{name:\"BitTorrent\",symbol:\"BTT\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.bittorrentchain.io\"]}},blockExplorers:{default:{name:\"Bttcscan\",url:\"https://bttcscan.com\",apiUrl:\"https://api.bttcscan.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:31078552}}})});var age,ige=x(()=>{c();_();age=g({id:1028,name:\"BitTorrent Chain Testnet\",network:\"bittorrent-chain-testnet\",nativeCurrency:{name:\"BitTorrent\",symbol:\"BTT\",decimals:18},rpcUrls:{default:{http:[\"https://testrpc.bittorrentchain.io\"]}},blockExplorers:{default:{name:\"Bttcscan\",url:\"https://testnet.bttcscan.com\",apiUrl:\"https://testnet.bttcscan.com/api\"}},testnet:!0})});var $P,sge,cge=x(()=>{c();it();_();$P=1,sge=g({...de,id:81457,name:\"Blast\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.blast.io\"]}},blockExplorers:{default:{name:\"Blastscan\",url:\"https://blastscan.io\",apiUrl:\"https://api.blastscan.io/api\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:212929},l2OutputOracle:{[$P]:{address:\"0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76\",blockCreated:19300358}},portal:{[$P]:{address:\"0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb\",blockCreated:19300357}},l1StandardBridge:{[$P]:{address:\"0x697402166Fbf2F22E970df8a6486Ef171dbfc524\",blockCreated:19300360}}},sourceId:$P})});var Lpt,uge,lge=x(()=>{c();_();Lpt=11155111,uge=g({id:168587773,name:\"Blast Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.blast.io\"]}},blockExplorers:{default:{name:\"Blastscan\",url:\"https://sepolia.blastscan.io\",apiUrl:\"https://api-sepolia.blastscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:756690}},testnet:!0,sourceId:Lpt})});var _K,fge,dge=x(()=>{c();it();_();_K=1,fge=g({...de,id:60808,name:\"BOB\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.gobob.xyz\"],webSocket:[\"wss://rpc.gobob.xyz\"]}},blockExplorers:{default:{name:\"BOB Explorer\",url:\"https://explorer.gobob.xyz\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:23131},l2OutputOracle:{[_K]:{address:\"0xdDa53E23f8a32640b04D7256e651C1db98dB11C1\",blockCreated:4462615}},portal:{[_K]:{address:\"0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E\",blockCreated:4462615}}},sourceId:_K})});var pge,mge=x(()=>{c();_();pge=g({id:288,name:\"Boba Network\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://mainnet.boba.network\"]}},blockExplorers:{default:{name:\"BOBAScan\",url:\"https://bobascan.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:446859}}})});var hge,yge=x(()=>{c();_();hge=g({id:28882,name:\"Boba Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.boba.network\"]}},blockExplorers:{default:{name:\"BOBAScan\",url:\"https://testnet.bobascan.com\"}},testnet:!0})});var kK,bge,gge=x(()=>{c();it();_();kK=11155111,bge=g({...de,id:808813,name:\"BOB Sepolia\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://bob-sepolia.rpc.gobob.xyz\"],webSocket:[\"wss://bob-sepolia.rpc.gobob.xyz\"]}},blockExplorers:{default:{name:\"BOB Sepolia Explorer\",url:\"https://bob-sepolia.explorer.gobob.xyz\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:35677},l2OutputOracle:{[kK]:{address:\"0x14D0069452b4AE2b250B395b8adAb771E4267d2f\",blockCreated:4462615}},portal:{[kK]:{address:\"0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4\",blockCreated:4462615}}},testnet:!0,sourceId:kK})});var xge,vge=x(()=>{c();_();xge=g({id:11100,name:\"Bool Beta Mainnet\",nativeCurrency:{decimals:18,name:\"BOL\",symbol:\"BOL\"},rpcUrls:{default:{http:[\"https://beta-rpc-node-http.bool.network\"]}},blockExplorers:{default:{name:\"BoolScan\",url:\"https://beta-mainnet.boolscan.com/\"}},testnet:!1})});var wge,Ege=x(()=>{c();_();wge=g({id:3637,name:\"Botanix\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.botanixlabs.com\"],webSocket:[\"wss://rpc.botanixlabs.com/ws\"]}},blockExplorers:{default:{name:\"Botanixscan\",url:\"https://botanixscan.io\"}}})});var Age,Sge=x(()=>{c();_();Age=g({id:3636,name:\"Botanix Testnet\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://node.botanixlabs.dev\"]}},blockExplorers:{default:{name:\"Botanix Testnet Explorer\",url:\"https://testnet.botanixscan.io\"}},testnet:!0})});var Cge,Tge=x(()=>{c();_();Cge=g({id:6001,name:\"BounceBit Mainnet\",nativeCurrency:{name:\"BounceBit\",symbol:\"BB\",decimals:18},rpcUrls:{default:{http:[\"https://fullnode-mainnet.bouncebitapi.com\"]}},blockExplorers:{default:{name:\"BB Scan\",url:\"https://bbscan.io\"}},testnet:!1})});var _ge,kge=x(()=>{c();_();_ge=g({id:6e3,name:\"BounceBit Testnet\",nativeCurrency:{name:\"BounceBit\",symbol:\"BB\",decimals:18},rpcUrls:{default:{http:[\"https://fullnode-testnet.bouncebitapi.com\"]}},blockExplorers:{default:{name:\"BB Scan\",url:\"https://testnet.bbscan.io\"}},testnet:!0})});var Bge,Ige=x(()=>{c();_();Bge=g({id:1039,name:\"Bronos\",nativeCurrency:{decimals:18,name:\"BRO\",symbol:\"BRO\"},rpcUrls:{default:{http:[\"https://evm.bronos.org\"]}},blockExplorers:{default:{name:\"BronoScan\",url:\"https://broscan.bronos.org\"}}})});var Pge,Rge=x(()=>{c();_();Pge=g({id:1038,name:\"Bronos Testnet\",nativeCurrency:{decimals:18,name:\"Bronos Coin\",symbol:\"tBRO\"},rpcUrls:{default:{http:[\"https://evm-testnet.bronos.org\"]}},blockExplorers:{default:{name:\"BronoScan\",url:\"https://tbroscan.bronos.org\"}},testnet:!0})});var Mge,Oge=x(()=>{c();_();Mge=g({id:56,name:\"BNB Smart Chain\",blockTime:750,nativeCurrency:{decimals:18,name:\"BNB\",symbol:\"BNB\"},rpcUrls:{default:{http:[\"https://56.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"BscScan\",url:\"https://bscscan.com\",apiUrl:\"https://api.bscscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:15921452}}})});var Nge,Uge=x(()=>{c();_();Nge=g({id:1017,name:\"BNB Greenfield Chain\",nativeCurrency:{decimals:18,name:\"BNB\",symbol:\"BNB\"},rpcUrls:{default:{http:[\"https://greenfield-chain.bnbchain.org\"]}},blockExplorers:{default:{name:\"BNB Greenfield Mainnet Scan\",url:\"https://greenfieldscan.com\"}},testnet:!1})});var Dge,Hge=x(()=>{c();_();Dge=g({id:97,name:\"BNB Smart Chain Testnet\",nativeCurrency:{decimals:18,name:\"BNB\",symbol:\"tBNB\"},rpcUrls:{default:{http:[\"https://data-seed-prebsc-1-s1.bnbchain.org:8545\"]}},blockExplorers:{default:{name:\"BscScan\",url:\"https://testnet.bscscan.com\",apiUrl:\"https://api-testnet.bscscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:17422483}},testnet:!0})});var Lge,zge=x(()=>{c();_();Lge=g({id:223,name:\"B2\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.bsquared.network\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.bsquared.network\"}}})});var Fge,jge=x(()=>{c();_();Fge=g({id:1123,name:\"B2 Testnet\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.bsquared.network\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://testnet-explorer.bsquared.network\"}},testnet:!0})});var qge,$ge=x(()=>{c();_();qge=g({id:200901,name:\"Bitlayer\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.bitlayer.org\",\"https://rpc.bitlayer-rpc.com\"],webSocket:[\"wss://ws.bitlayer.org\",\"wss://ws.bitlayer-rpc.com\"]}},blockExplorers:{default:{name:\"Bitlayer(BTR) Scan\",url:\"https://www.btrscan.com\"}}})});var Gge,Vge=x(()=>{c();_();Gge=g({id:200810,name:\"Bitlayer Testnet\",nativeCurrency:{name:\"Bitcoin\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.bitlayer.org\"],webSocket:[\"wss://testnet-ws.bitlayer.org\",\"wss://testnet-ws.bitlayer-rpc.com\"]}},blockExplorers:{default:{name:\"Bitlayer(BTR) Scan\",url:\"https://testnet.btrscan.com\"}},testnet:!0})});var Kge,Wge=x(()=>{c();_();Kge=g({id:4999,name:\"BlackFort Exchange Network\",nativeCurrency:{name:\"BlackFort Token\",symbol:\"BXN\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.blackfort.network/rpc\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.blackfort.network\",apiUrl:\"https://explorer.blackfort.network/api\"}}})});var Qge,Zge=x(()=>{c();_();Qge=g({id:4777,name:\"BlackFort Exchange Network Testnet\",nativeCurrency:{name:\"BlackFort Testnet Token\",symbol:\"TBXN\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.blackfort.network/rpc\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://testnet-explorer.blackfort.network\",apiUrl:\"https://testnet-explorer.blackfort.network/api\"}},testnet:!0})});var Jge,Yge=x(()=>{c();_();Jge=g({id:13370,name:\"Cannon\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"]}}})});var Xge,exe=x(()=>{c();_();Xge=g({id:7700,name:\"Canto\",nativeCurrency:{decimals:18,name:\"Canto\",symbol:\"CANTO\"},rpcUrls:{default:{http:[\"https://canto.gravitychain.io\"]}},blockExplorers:{default:{name:\"Tuber.Build (Blockscout)\",url:\"https://tuber.build\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:2905789}}})});async function zpt(e,t){let r=await e.request({method:\"eth_gasPrice\",params:[t]});return BigInt(r)}async function Fpt(e,t){let r=await e.request({method:\"eth_maxPriorityFeePerGas\",params:[t]});return BigInt(r)}var txe,rxe=x(()=>{c();txe={estimateFeesPerGas:async e=>{if(!e.request?.feeCurrency)return null;let[t,r]=await Promise.all([zpt(e.client,e.request.feeCurrency),Fpt(e.client,e.request.feeCurrency)]);return{maxFeePerGas:e.multiply(t-r)+r,maxPriorityFeePerGas:r}}}});function BK(e){return e===0||e===0n||e===void 0||e===null||e===\"0\"||e===\"\"||typeof e==\"string\"&&(Mn(e).toLowerCase()===\"0x\"||Mn(e).toLowerCase()===\"0x00\")}function Kw(e){return!BK(e)}function jpt(e){return typeof e.maxFeePerGas<\"u\"&&typeof e.maxPriorityFeePerGas<\"u\"}function GP(e){return e.type===\"cip64\"?!0:jpt(e)&&Kw(e.feeCurrency)}var IK=x(()=>{c();Vp()});var nxe,oxe=x(()=>{c();Zn();sw();id();Us();IK();nxe={block:iw({format(e){return{transactions:e.transactions?.map(r=>typeof r==\"string\"?r:{...kc(r),...r.gatewayFee?{gatewayFee:at(r.gatewayFee),gatewayFeeRecipient:r.gatewayFeeRecipient}:{},feeCurrency:r.feeCurrency})}}}),transaction:P0({format(e){if(e.type===\"0x7e\")return{isSystemTx:e.isSystemTx,mint:e.mint?at(e.mint):void 0,sourceHash:e.sourceHash,type:\"deposit\"};let t={feeCurrency:e.feeCurrency};return e.type===\"0x7b\"?t.type=\"cip64\":(e.type===\"0x7c\"&&(t.type=\"cip42\"),t.gatewayFee=e.gatewayFee?at(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),transactionRequest:rw({format(e){let t={};return e.feeCurrency&&(t.feeCurrency=e.feeCurrency),GP(e)&&(t.type=\"0x7b\"),t}})}});function qpt(e,t){return GP(e)?$pt(e,t):SK(e,t)}function $pt(e,t){Vpt(e);let{chainId:r,gas:n,nonce:o,to:s,value:u,maxFeePerGas:f,maxPriorityFeePerGas:d,accessList:m,feeCurrency:h,data:y}=e,v=[ot(r),o?ot(o):\"0x\",d?ot(d):\"0x\",f?ot(f):\"0x\",n?ot(n):\"0x\",s??\"0x\",u?ot(u):\"0x\",y??\"0x\",Z1(m),h,...q0(e,t)];return Cn([\"0x7b\",Qi(v)])}function Vpt(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:o,to:s,feeCurrency:u}=e;if(t<=0)throw new Rl({chainId:t});if(s&&!wt(s))throw new vr({address:s});if(n)throw new ae(\"`gasPrice` is not a valid CIP-64 Transaction attribute.\");if(Kw(o)&&o>Gpt)throw new Os({maxFeePerGas:o});if(Kw(r)&&Kw(o)&&r>o)throw new lu({maxFeePerGas:o,maxPriorityFeePerGas:r});if(Kw(u)&&!wt(u))throw new ae(\"`feeCurrency` MUST be a token address for CIP-64 transactions.\");if(BK(u))throw new ae(\"`feeCurrency` must be provided for CIP-64 transactions.\")}var axe,Gpt,ixe=x(()=>{c();nw();Ec();ht();$1();fm();CK();ui();Jn();tt();Kv();CV();Pw();IK();axe={transaction:qpt};Gpt=ad});var Z0,VP=x(()=>{c();AK();rxe();oxe();ixe();Z0={blockTime:1e3,contracts:LP,formatters:nxe,serializers:axe,fees:txe}});var sxe,cxe=x(()=>{c();VP();_();sxe=g({...Z0,id:42220,name:\"Celo\",nativeCurrency:{decimals:18,name:\"CELO\",symbol:\"CELO\"},rpcUrls:{default:{http:[\"https://forno.celo.org\"]}},blockExplorers:{default:{name:\"Celo Explorer\",url:\"https://celoscan.io\",apiUrl:\"https://api.celoscan.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:13112599}},testnet:!1})});var KP,uxe,lxe=x(()=>{c();VP();_();KP=17e3,uxe=g({...Z0,id:44787,name:\"Alfajores\",nativeCurrency:{decimals:18,name:\"CELO\",symbol:\"A-CELO\"},rpcUrls:{default:{http:[\"https://alfajores-forno.celo-testnet.org\"]}},blockExplorers:{default:{name:\"Celo Alfajores Explorer\",url:\"https://celo-alfajores.blockscout.com\",apiUrl:\"https://celo-alfajores.blockscout.com/api\"}},contracts:{...Z0.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:14569001},portal:{[KP]:{address:\"0x82527353927d8D069b3B452904c942dA149BA381\",blockCreated:2411324}},disputeGameFactory:{[KP]:{address:\"0xE28AAdcd9883746c0e5068F58f9ea06027b214cb\",blockCreated:2411324}},l2OutputOracle:{[KP]:{address:\"0x4a2635e9e4f6e45817b1D402ac4904c1d1752438\",blockCreated:2411324}},l1StandardBridge:{[KP]:{address:\"0xD1B0E0581973c9eB7f886967A606b9441A897037\",blockCreated:2411324}}},testnet:!0})});var PK,fxe,dxe=x(()=>{c();VP();_();PK=11155111,fxe=g({...Z0,id:11142220,name:\"Celo Sepolia Testnet\",nativeCurrency:{decimals:18,name:\"CELO\",symbol:\"S-CELO\"},rpcUrls:{default:{http:[\"https://forno.celo-sepolia.celo-testnet.org\"]}},blockExplorers:{default:{name:\"Celo Sepolia Explorer\",url:\"https://celo-sepolia.blockscout.com/\",apiUrl:\"https://celo-sepolia.blockscout.com/api\"}},contracts:{...Z0.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1},portal:{[PK]:{address:\"0x44ae3d41a335a7d05eb533029917aad35662dcc2\",blockCreated:8825790}},disputeGameFactory:{[PK]:{address:\"0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa\",blockCreated:8825790}},l1StandardBridge:{[PK]:{address:\"0xec18a3c30131a0db4246e785355fbc16e2eaf408\",blockCreated:8825790}}},testnet:!0})});var pxe,mxe=x(()=>{c();_();pxe=g({id:5858,name:\"Chang Chain Foundation Mainnet\",nativeCurrency:{decimals:18,name:\"CTH\",symbol:\"CTH\"},rpcUrls:{default:{http:[\"https://rpc.cthscan.com\"]}},blockExplorers:{default:{name:\"Chang Chain explorer\",url:\"https://cthscan.com\"}}})});var hxe,yxe=x(()=>{c();_();hxe=g({id:88888,name:\"Chiliz Chain\",network:\"chiliz-chain\",nativeCurrency:{decimals:18,name:\"CHZ\",symbol:\"CHZ\"},rpcUrls:{default:{http:[\"https://rpc.chiliz.com\"]}},blockExplorers:{default:{name:\"Chiliz Explorer\",url:\"https://scan.chiliz.com\",apiUrl:\"https://scan.chiliz.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:8080847}}})});var bxe,gxe=x(()=>{c();_();bxe=g({id:2882,name:\"Chips Network\",network:\"CHIPS\",nativeCurrency:{decimals:18,name:\"IOTA\",symbol:\"IOTA\"},rpcUrls:{default:{http:[\"https://node.chips.ooo/wasp/api/v1/chains/iota1pp3d3mnap3ufmgqnjsnw344sqmf5svjh26y2khnmc89sv6788y3r207a8fn/evm\"]}}})});var xxe,vxe=x(()=>{c();_();xxe=g({id:4114,name:\"Citrea Mainnet\",nativeCurrency:{name:\"Citrea Bitcoin\",symbol:\"cBTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.citrea.xyz\"]}},blockExplorers:{default:{name:\"Citrea Explorer\",url:\"https://explorer.mainnet.citrea.xyz\",apiUrl:\"https://explorer.mainnet.citrea.xyz/api\"}},testnet:!1})});var wxe,Exe=x(()=>{c();_();wxe=g({id:5115,name:\"Citrea Testnet\",nativeCurrency:{name:\"cBTC\",symbol:\"cBTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.citrea.xyz\"]}},blockExplorers:{default:{name:\"Citrea Explorer\",url:\"https://explorer.testnet.citrea.xyz\",apiUrl:\"https://explorer.testnet.citrea.xyz/api\"}},testnet:!0})});var Axe,Sxe=x(()=>{c();_();Axe=g({id:61,name:\"Ethereum Classic\",nativeCurrency:{decimals:18,name:\"ETC\",symbol:\"ETC\"},rpcUrls:{default:{http:[\"https://etc.rivet.link\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout.com/etc/mainnet\"}}})});var WP,Cxe,Txe=x(()=>{c();it();_();WP=1,Cxe=g({...de,id:81224,name:\"Codex\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.codex.xyz\"]}},blockExplorers:{default:{name:\"Codex Explorer\",url:\"https://explorer.codex.xyz\",apiUrl:\"https://explorer.codex.xyz/api\"}},contracts:{...de.contracts,disputeGameFactory:{[WP]:{address:\"0x6A3855dc26e2beA8Ac73f82Cda79f3808B6C6F6C\"}},portal:{[WP]:{address:\"0x52759C07A759c81BAab28AE1BE5A19e6450959bD\"}},l1StandardBridge:{[WP]:{address:\"0xa6b1A05a592719B0C8a70c69eac114C48410aDE4\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}},sourceId:WP})});var QP,_xe,kxe=x(()=>{c();it();_();QP=11155111,_xe=g({...de,id:812242,name:\"Codex Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.codex-stg.xyz\"]}},blockExplorers:{default:{name:\"Codex Testnet Explorer\",url:\"https://explorer.codex-stg.xyz\",apiUrl:\"https://explorer.codex-stg.xyz/api\"}},contracts:{...de.contracts,disputeGameFactory:{[QP]:{address:\"0x390e24E8324E56f13A8d48eB938b6f9De24CD205\"}},portal:{[QP]:{address:\"0x037F161D12c829A9ca4742eEd9371830CA54fcB2\"}},l1StandardBridge:{[QP]:{address:\"0xCf4df2bDB14C8FDB25FdacCEC10Ce5C4bAEDB3De\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}},sourceId:QP,testnet:!0})});var Bxe,Ixe=x(()=>{c();_();Bxe=g({id:112,name:\"Coinbit Mainnet\",nativeCurrency:{name:\"GIDR\",symbol:\"GIDR\",decimals:18},rpcUrls:{default:{http:[\"https://coinbit-rpc-mainnet.chain.sbcrypto.app\"]}},blockExplorers:{default:{name:\"Coinbit Explorer\",url:\"https://coinbit-explorer.chain.sbcrypto.app\"}},testnet:!1})});var Pxe,Rxe=x(()=>{c();_();Pxe=g({id:52,name:\"CoinEx Mainnet\",nativeCurrency:{name:\"cet\",symbol:\"cet\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.coinex.net\"]}},blockExplorers:{default:{name:\"CoinEx Explorer\",url:\"https://www.coinex.net\"}},testnet:!1})});var Mxe,Oxe=x(()=>{c();_();Mxe=g({id:1030,name:\"Conflux eSpace\",nativeCurrency:{name:\"Conflux\",symbol:\"CFX\",decimals:18},rpcUrls:{default:{http:[\"https://evm.confluxrpc.com\"],webSocket:[\"wss://evm.confluxrpc.com/ws\"]}},blockExplorers:{default:{name:\"ConfluxScan\",url:\"https://evm.confluxscan.org\"}},contracts:{multicall3:{address:\"0xEFf0078910f638cd81996cc117bccD3eDf2B072F\",blockCreated:68602935}}})});var Nxe,Uxe=x(()=>{c();_();Nxe=g({id:71,name:\"Conflux eSpace Testnet\",network:\"cfx-espace-testnet\",testnet:!0,nativeCurrency:{name:\"Conflux\",symbol:\"CFX\",decimals:18},rpcUrls:{default:{http:[\"https://evmtestnet.confluxrpc.com\"],webSocket:[\"wss://evmtestnet.confluxrpc.com/ws\"]}},blockExplorers:{default:{name:\"ConfluxScan\",url:\"https://evmtestnet.confluxscan.org\"}},contracts:{multicall3:{address:\"0xEFf0078910f638cd81996cc117bccD3eDf2B072F\",blockCreated:117499050}}})});var Dxe,Hxe=x(()=>{c();_();Dxe=g({id:1116,name:\"Core Dao\",nativeCurrency:{decimals:18,name:\"Core\",symbol:\"CORE\"},rpcUrls:{default:{http:[\"https://rpc.coredao.org\"]}},blockExplorers:{default:{name:\"CoreDao\",url:\"https://scan.coredao.org\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:11907934}},testnet:!1})});var Lxe,zxe=x(()=>{c();_();Lxe=g({id:1115,name:\"Core Testnet\",nativeCurrency:{decimals:18,name:\"tCore\",symbol:\"TCORE\"},rpcUrls:{default:{http:[\"https://rpc.test.btcs.network\"]}},blockExplorers:{default:{name:\"Core Testnet\",url:\"https://scan.test.btcs.network\",apiUrl:\"https://api.test.btcs.network/api\"}},contracts:{multicall3:{address:\"0xCcddF20A1932537123C2E48Bd8e00b108B8f7569\",blockCreated:29350509}},testnet:!0})});var Fxe,jxe=x(()=>{c();_();Fxe=g({id:1114,name:\"Core Testnet2\",nativeCurrency:{decimals:18,name:\"tCore2\",symbol:\"TCORE2\"},rpcUrls:{default:{http:[\"https://rpc.test2.btcs.network\"]}},blockExplorers:{default:{name:\"Core Testnet2\",url:\"https://scan.test2.btcs.network\",apiUrl:\"https://api.test2.btcs.network/api\"}},contracts:{multicall3:{address:\"0x3CB285ff3Cd5C7C7e570b1E7DE3De17A0f985e56\",blockCreated:3838600}},testnet:!0})});var Kpt,qxe,$xe=x(()=>{c();_();Kpt=1,qxe=g({id:21e6,name:\"Corn\",nativeCurrency:{decimals:18,name:\"Bitcorn\",symbol:\"BTCN\"},rpcUrls:{default:{http:[\"https://21000000.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"Corn Explorer\",url:\"https://cornscan.io\",apiUrl:\"https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3228}},sourceId:Kpt})});var Wpt,Gxe,Vxe=x(()=>{c();_();Wpt=11155111,Gxe=g({id:21000001,name:\"Corn Testnet\",nativeCurrency:{decimals:18,name:\"Bitcorn\",symbol:\"BTCN\"},rpcUrls:{default:{http:[\"https://21000001.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"Corn Testnet Explorer\",url:\"https://testnet.cornscan.io\",apiUrl:\"https://api.routescan.io/v2/network/testnet/evm/21000001/etherscan/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:4886}},testnet:!0,sourceId:Wpt})});var Kxe,Wxe=x(()=>{c();_();Kxe=g({id:86608,name:\"CpChain\",nativeCurrency:{decimals:18,name:\"CpChain\",symbol:\"CP\"},rpcUrls:{default:{http:[\"https://rpc.cpchain.com\"]}},blockExplorers:{default:{name:\"CpChain Explorer\",url:\"https://explorer.cpchain.com\"}},testnet:!1})});var Qxe,Zxe=x(()=>{c();_();Qxe=g({id:44,name:\"Crab Network\",nativeCurrency:{decimals:18,name:\"Crab Network Native Token\",symbol:\"CRAB\"},rpcUrls:{default:{http:[\"https://crab-rpc.darwinia.network\"],webSocket:[\"wss://crab-rpc.darwinia.network\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://crab-scan.darwinia.network\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:3032593}}})});var Jxe,Yxe=x(()=>{c();_();Jxe=g({id:66665,name:\"Creator\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.creatorchain.io\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.creatorchain.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"}},testnet:!0})});var Xxe,e2e=x(()=>{c();_();Xxe=g({id:102032,name:\"Creditcoin Devnet\",nativeCurrency:{name:\"Devnet CTC\",symbol:\"devCTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.cc3-devnet.creditcoin.network\"],webSocket:[\"wss://rpc.cc3-devnet.creditcoin.network/ws\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://creditcoin-devnet.blockscout.com\",apiUrl:\"https://creditcoin3-dev.subscan.io\"}},testnet:!0})});var t2e,r2e=x(()=>{c();_();t2e=g({id:102030,name:\"Creditcoin\",nativeCurrency:{name:\"Creditcoin\",symbol:\"CTC\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet3.creditcoin.network\"],webSocket:[\"wss://mainnet3.creditcoin.network\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://creditcoin.blockscout.com\",apiUrl:\"https://creditcoin.blockscout.com/api\"}},testnet:!1})});var n2e,o2e=x(()=>{c();_();n2e=g({id:102031,name:\"Creditcoin Testnet\",nativeCurrency:{name:\"Creditcoin Testnet\",symbol:\"tCTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.cc3-testnet.creditcoin.network\"],webSocket:[\"wss://rpc.cc3-testnet.creditcoin.network\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://creditcoin-testnet.blockscout.com\",apiUrl:\"https://creditcoin-testnet.blockscout.com/api\"}},testnet:!0})});var a2e,i2e=x(()=>{c();_();a2e=g({id:25,name:\"Cronos Mainnet\",nativeCurrency:{decimals:18,name:\"Cronos\",symbol:\"CRO\"},rpcUrls:{default:{http:[\"https://evm.cronos.org\"]}},blockExplorers:{default:{name:\"Cronos Explorer\",url:\"https://explorer.cronos.org\",apiUrl:\"https://explorer-api.cronos.org/mainnet/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1963112}}})});var s2e,c2e=x(()=>{c();_();s2e=g({id:338,name:\"Cronos Testnet\",nativeCurrency:{decimals:18,name:\"CRO\",symbol:\"tCRO\"},rpcUrls:{default:{http:[\"https://evm-t3.cronos.org\"]}},blockExplorers:{default:{name:\"Cronos Explorer (Testnet)\",url:\"https://explorer.cronos.org/testnet\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:10191251}},testnet:!0})});var u2e,l2e=x(()=>{c();_();u2e=g({id:388,name:\"Cronos zkEVM Mainnet\",nativeCurrency:{decimals:18,name:\"Cronos zkEVM CRO\",symbol:\"zkCRO\"},rpcUrls:{default:{http:[\"https://mainnet.zkevm.cronos.org\"]}},blockExplorers:{default:{name:\"Cronos zkEVM (Mainnet) Chain Explorer\",url:\"https://explorer.zkevm.cronos.org\"}},contracts:{multicall3:{address:\"0x06f4487d7c4a5983d2660db965cc6d2565e4cfaa\",blockCreated:72}}})});var f2e,d2e=x(()=>{c();_();f2e=g({id:282,name:\"Cronos zkEVM Testnet\",nativeCurrency:{decimals:18,name:\"Cronos zkEVM Test Coin\",symbol:\"zkTCRO\"},rpcUrls:{default:{http:[\"https://testnet.zkevm.cronos.org\"]}},blockExplorers:{default:{name:\"Cronos zkEVM Testnet Explorer\",url:\"https://explorer.zkevm.cronos.org/testnet\"}},testnet:!0})});var p2e,m2e=x(()=>{c();_();p2e=g({id:3737,name:\"Crossbell\",nativeCurrency:{decimals:18,name:\"CSB\",symbol:\"CSB\"},rpcUrls:{default:{http:[\"https://rpc.crossbell.io\"]}},blockExplorers:{default:{name:\"CrossScan\",url:\"https://scan.crossbell.io\",apiUrl:\"https://scan.crossbell.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:38246031}}})});var h2e,y2e=x(()=>{c();_();h2e=g({id:4158,name:\"CrossFi Mainnet\",nativeCurrency:{decimals:18,name:\"CrossFi\",symbol:\"XFI\"},rpcUrls:{default:{http:[\"https://rpc.mainnet.ms\"]}},blockExplorers:{default:{name:\"CrossFi Blockchain Explorer\",url:\"https://xfiscan.com\"}},testnet:!1})});var b2e,g2e=x(()=>{c();_();b2e=g({id:33111,name:\"Curtis\",nativeCurrency:{name:\"ApeCoin\",symbol:\"APE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.curtis.apechain.com\"]}},blockExplorers:{default:{name:\"Curtis Explorer\",url:\"https://explorer.curtis.apechain.com\"}},testnet:!0})});var x2e,v2e=x(()=>{c();_();x2e=g({id:7560,name:\"Cyber\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://cyber.alt.technology\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://cyberscan.co\",apiUrl:\"https://cyberscan.co/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}}})});var w2e,E2e=x(()=>{c();_();w2e=g({id:111557560,name:\"Cyber Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://cyber-testnet.alt.technology\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://testnet.cyberscan.co\",apiUrl:\"https://testnet.cyberscan.co/api\"}},contracts:{multicall3:{address:\"0xffc391F0018269d4758AEA1a144772E8FB99545E\",blockCreated:304545}},testnet:!0})});var A2e,S2e=x(()=>{c();_();A2e=g({id:824,name:\"Daily Network Mainnet\",nativeCurrency:{decimals:18,name:\"Daily\",symbol:\"DLY\"},rpcUrls:{default:{http:[\"https://rpc.mainnet.dailycrypto.net\"]}},blockExplorers:{default:{name:\"Daily Mainnet Explorer\",url:\"https://explorer.mainnet.dailycrypto.net\"}},testnet:!1})});var C2e,T2e=x(()=>{c();_();C2e=g({id:825,name:\"Daily Network Testnet\",nativeCurrency:{decimals:18,name:\"Daily\",symbol:\"DLY\"},rpcUrls:{default:{http:[\"https://rpc.testnet.dailycrypto.net\"]}},blockExplorers:{default:{name:\"Daily Testnet Explorer\",url:\"https://explorer.testnet.dailycrypto.net\"}},testnet:!0})});var _2e,k2e=x(()=>{c();_();_2e=g({id:46,name:\"Darwinia Network\",nativeCurrency:{decimals:18,name:\"RING\",symbol:\"RING\"},rpcUrls:{default:{http:[\"https://rpc.darwinia.network\"],webSocket:[\"wss://rpc.darwinia.network\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.darwinia.network\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:69420}}})});var B2e,I2e=x(()=>{c();_();B2e=g({id:55931,name:\"Datahaven Testnet\",nativeCurrency:{decimals:18,name:\"MOCK\",symbol:\"MOCK\"},rpcUrls:{default:{http:[\"https://services.datahaven-testnet.network/testnet\"],webSocket:[\"wss://services.datahaven-testnet.network/testnet\"]}},blockExplorers:{default:{name:\"DhScan\",url:\"https://testnet.dhscan.io/\",apiUrl:\"https://testnet.dhscan.io/api-docs\"}},contracts:{},testnet:!0})});var P2e,R2e=x(()=>{c();_();P2e=g({id:20240603,name:\"DBK chain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.dbkchain.io\"]}},blockExplorers:{default:{name:\"DBK Chain Explorer\",url:\"https://scan.dbkchain.io\"}},testnet:!1})});var M2e,O2e=x(()=>{c();it();_();M2e=g({...de,id:2716446429837e3,name:\"Dchain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://dchain-2716446429837000-1.jsonrpc.sagarpc.io\"]}},blockExplorers:{default:{name:\"Dchain Explorer\",url:\"https://dchain-2716446429837000-1.sagaexplorer.io\",apiUrl:\"https://api-dchain-2716446429837000-1.sagaexplorer.io/api\"}},contracts:{...de.contracts}})});var N2e,U2e=x(()=>{c();it();_();N2e=g({...de,id:2713017997578e3,name:\"Dchain Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://dchaintestnet-2713017997578000-1.jsonrpc.testnet.sagarpc.io\"]}},blockExplorers:{default:{name:\"Dchain Explorer\",url:\"https://dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io\",apiUrl:\"https://api-dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io/api\"}},contracts:{...de.contracts},testnet:!0})});var D2e,H2e=x(()=>{c();_();D2e=g({id:1130,network:\"defichain-evm\",name:\"DeFiChain EVM Mainnet\",nativeCurrency:{name:\"DeFiChain\",symbol:\"DFI\",decimals:18},rpcUrls:{default:{http:[\"https://eth.mainnet.ocean.jellyfishsdk.com\"]}},blockExplorers:{default:{name:\"DeFiScan\",url:\"https://meta.defiscan.live\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:137852}}})});var L2e,z2e=x(()=>{c();_();L2e=g({id:1131,network:\"defichain-evm-testnet\",name:\"DeFiChain EVM Testnet\",nativeCurrency:{name:\"DeFiChain\",symbol:\"DFI\",decimals:18},rpcUrls:{default:{http:[\"https://eth.testnet.ocean.jellyfishsdk.com\"]}},blockExplorers:{default:{name:\"DeFiScan\",url:\"https://meta.defiscan.live/?network=TestNet\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:156462}},testnet:!0})});var F2e,j2e=x(()=>{c();_();F2e=g({id:666666666,name:\"Degen\",nativeCurrency:{decimals:18,name:\"Degen\",symbol:\"DEGEN\"},rpcUrls:{default:{http:[\"https://rpc.degen.tips\"],webSocket:[\"wss://rpc.degen.tips\"]}},blockExplorers:{default:{name:\"Degen Chain Explorer\",url:\"https://explorer.degen.tips\",apiUrl:\"https://explorer.degen.tips/api/v2\"}}})});var q2e,$2e=x(()=>{c();_();q2e=g({id:53935,name:\"DFK Chain\",nativeCurrency:{decimals:18,name:\"Jewel\",symbol:\"JEWEL\"},rpcUrls:{default:{http:[\"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc\"]}},blockExplorers:{default:{name:\"DFKSubnetScan\",url:\"https://subnets.avax.network/defi-kingdoms\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14790551}}})});var G2e,V2e=x(()=>{c();_();G2e=g({id:15,name:\"Diode Prenet\",nativeCurrency:{decimals:18,name:\"DIODE\",symbol:\"DIODE\"},rpcUrls:{default:{http:[\"https://prenet.diode.io:8443\"],webSocket:[\"wss://prenet.diode.io:8443/ws\"]}},blockExplorers:{default:{name:\"Diode Explorer\",url:\"https://diode.io/prenet\"}},testnet:!1})});var K2e,W2e=x(()=>{c();_();K2e=g({id:513100,name:\"DisChain\",nativeCurrency:{decimals:18,name:\"DIS\",symbol:\"DIS\"},rpcUrls:{default:{http:[\"https://rpc.dischain.xyz\"]}},blockExplorers:{default:{name:\"DisChain Explorer\",url:\"https://www.oklink.com/dis\"}}})});var Q2e,Z2e=x(()=>{c();_();Q2e=g({id:53457,name:\"DODOchain Testnet\",nativeCurrency:{decimals:18,name:\"DODO\",symbol:\"DODO\"},rpcUrls:{default:{http:[\"https://dodochain-testnet.alt.technology\"],webSocket:[\"wss://dodochain-testnet.alt.technology/ws\"]}},blockExplorers:{default:{name:\"DODOchain Testnet (Sepolia) Explorer\",url:\"https://testnet-scan.dodochain.com\"}},testnet:!0})});var J2e,Y2e=x(()=>{c();_();J2e=g({id:2e3,name:\"Dogechain\",nativeCurrency:{decimals:18,name:\"Wrapped Dogecoin\",symbol:\"WDOGE\"},rpcUrls:{default:{http:[\"https://rpc.dogechain.dog\"]}},blockExplorers:{default:{name:\"DogeChainExplorer\",url:\"https://explorer.dogechain.dog\",apiUrl:\"https://explorer.dogechain.dog/api\"}},contracts:{multicall3:{address:\"0x68a8609a60a008EFA633dfdec592c03B030cC508\",blockCreated:25384031}}})});var X2e,eve=x(()=>{c();_();X2e=g({id:97476,name:\"Doma Testnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc-testnet.doma.xyz\"]}},blockExplorers:{default:{name:\"Doma Testnet Explorer\",url:\"https://explorer-testnet.doma.xyz\"}},testnet:!0})});var tve,rve=x(()=>{c();_();tve=g({id:42026,name:\"Donatuz\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.donatuz.com\"]}},blockExplorers:{default:{name:\"Donatuz Explorer\",url:\"https://explorer.donatuz.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0}}})});var nve,ove=x(()=>{c();_();nve=g({id:7979,name:\"DOS Chain\",nativeCurrency:{decimals:18,name:\"DOS Chain\",symbol:\"DOS\"},rpcUrls:{default:{http:[\"https://main.doschain.com\"]}},blockExplorers:{default:{name:\"DOS Chain Explorer\",url:\"https://doscan.io\",apiUrl:\"https://api.doscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:161908}}})});var ave,ive=x(()=>{c();_();ave=g({id:3939,name:\"DOS Chain Testnet\",nativeCurrency:{decimals:18,name:\"DOS Chain Testnet\",symbol:\"DOS\"},rpcUrls:{default:{http:[\"https://test.doschain.com\"]}},blockExplorers:{default:{name:\"DOS Chain Testnet Explorer\",url:\"https://test.doscan.io\",apiUrl:\"https://api-test.doscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:69623}},testnet:!0})});var sve,cve=x(()=>{c();_();sve=g({id:23451,name:\"DreyerX Mainnet\",nativeCurrency:{name:\"DreyerX\",symbol:\"DRX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.dreyerx.com\"]}},blockExplorers:{default:{name:\"DreyerX Scan\",url:\"https://scan.dreyerx.com\"}}})});var RK=x(()=>{c();_()});var uve,lve=x(()=>{c();RK();uve=g({id:23452,name:\"DreyerX Testnet\",nativeCurrency:{name:\"DreyerX\",symbol:\"DRX\",decimals:18},rpcUrls:{default:{http:[\"http://testnet-rpc.dreyerx.com\"]}},blockExplorers:{default:{name:\"DreyerX Testnet Scan\",url:\"https://testnet-scan.dreyerx.com\"}},testnet:!0})});var fve,dve=x(()=>{c();_();fve=g({id:555888,name:\"DustBoy IoT\",nativeCurrency:{name:\"Ether\",symbol:\"DST\",decimals:18},rpcUrls:{default:{http:[\"https://dustboy-rpc.jibl2.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://dustboy.jibl2.com\",apiUrl:\"https://dustboy.jibl2.com/api\"}},contracts:{multicall3:{address:\"0xFFD34aa2C62B2D52E00A361e466C229788f4eD6a\",blockCreated:526569}},testnet:!1})});var pve,mve=x(()=>{c();RK();pve=g({id:1100,name:\"Dymension\",nativeCurrency:{name:\"DYM\",symbol:\"DYM\",decimals:18},rpcUrls:{default:{http:[\"https://dymension-evm-rpc.publicnode.com\"],webSocket:[\"wss://dymension-evm-rpc.publicnode.com\"]}},blockExplorers:{default:{name:\"Dym FYI\",url:\"https://dym.fyi\"}},testnet:!1})});var hve,yve=x(()=>{c();_();hve=g({id:714,name:\"Eden\",nativeCurrency:{name:\"TIA\",symbol:\"TIA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.eden.gateway.fm\"]}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://eden.blockscout.com\",apiUrl:\"https://eden.blockscout.com/api\"}}})});var bve,gve=x(()=>{c();_();bve=g({id:5424,name:\"edeXa\",nativeCurrency:{name:\"edeXa\",symbol:\"EDX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.edexa.network\"]}},blockExplorers:{default:{name:\"edeXa Explorer\",url:\"https://explorer.edexa.network\",apiUrl:\"https://explorer.edexa.network/api/v2\"}}})});var xve,vve=x(()=>{c();_();xve=g({id:1995,name:\"edeXa Testnet\",nativeCurrency:{name:\"edeXa\",symbol:\"tEDX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.edexa.network\"]}},blockExplorers:{default:{name:\"edeXa Testnet Explorer\",url:\"https://explorer.testnet.edexa.network\",apiUrl:\"https://explorer.testnet.edexa.network/api/v2\"}},testnet:!0})});var wve,Eve=x(()=>{c();_();wve=g({id:2026,name:\"Edgeless Network\",nativeCurrency:{name:\"Edgeless Wrapped ETH\",symbol:\"EwETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.edgeless.network/http\"],webSocket:[\"wss://rpc.edgeless.network/ws\"]}},blockExplorers:{default:{name:\"Edgeless Explorer\",url:\"https://explorer.edgeless.network\"}}})});var Ave,Sve=x(()=>{c();_();Ave=g({id:202,name:\"Edgeless Testnet\",nativeCurrency:{name:\"Edgeless Wrapped ETH\",symbol:\"EwETH\",decimals:18},rpcUrls:{default:{http:[\"https://edgeless-testnet.rpc.caldera.xyz/http\"],webSocket:[\"wss://edgeless-testnet.rpc.caldera.xyz/ws\"]}},blockExplorers:{default:{name:\"Edgeless Testnet Explorer\",url:\"https://testnet.explorer.edgeless.network\"}},testnet:!0})});var Cve,Tve=x(()=>{c();_();Cve=g({id:2021,name:\"Edgeware EdgeEVM Mainnet\",nativeCurrency:{decimals:18,name:\"Edgeware\",symbol:\"EDG\"},rpcUrls:{default:{http:[\"https://edgeware-evm.jelliedowl.net\"]}},blockExplorers:{default:{name:\"Edgscan by Bharathcoorg\",url:\"https://edgscan.live\",apiUrl:\"https://edgscan.live/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:18117872}}})});var _ve,kve=x(()=>{c();_();_ve=g({id:2022,name:\"Beresheet BereEVM Testnet\",nativeCurrency:{decimals:18,name:\"Testnet EDG\",symbol:\"tEDG\"},rpcUrls:{default:{http:[\"https://beresheet-evm.jelliedowl.net\"]}},blockExplorers:{default:{name:\"Edgscan by Bharathcoorg\",url:\"https://testnet.edgscan.live\",apiUrl:\"https://testnet.edgscan.live/api\"}},testnet:!0})});var Bve,Ive=x(()=>{c();_();Bve=g({id:41923,name:\"EDU Chain\",nativeCurrency:{decimals:18,name:\"EDU\",symbol:\"EDU\"},rpcUrls:{default:{http:[\"https://rpc.edu-chain.raas.gelato.cloud\"]}},blockExplorers:{default:{name:\"EDU Chain Explorer\",url:\"https://educhain.blockscout.com/\"}},testnet:!1})});var Pve,Rve=x(()=>{c();_();Pve=g({id:656476,name:\"EDU Chain Testnet\",nativeCurrency:{decimals:18,name:\"EDU\",symbol:\"EDU\"},rpcUrls:{default:{http:[\"https://rpc.open-campus-codex.gelato.digital/\"],webSocket:[\"wss://ws.open-campus-codex.gelato.digital\"]}},blockExplorers:{default:{name:\"EDU Chain Testnet Explorer\",url:\"https://opencampus-codex.blockscout.com\",apiUrl:\"https://opencampus-codex.blockscout.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:15514133}},testnet:!0})});var Mve,Ove=x(()=>{c();_();Mve=g({id:20,name:\"Elastos Smart Chain\",nativeCurrency:{name:\"ELA\",symbol:\"ELA\",decimals:18},rpcUrls:{default:{http:[\"https://api2.elastos.io/eth\"]}},blockExplorers:{default:{name:\"Elastos Explorer\",url:\"https://esc.elastos.io\"}},testnet:!1})});var Nve,Uve=x(()=>{c();_();Nve=g({id:21,name:\"Elastos Smart Chain Testnet\",nativeCurrency:{name:\"tELA\",symbol:\"tELA\",decimals:18},rpcUrls:{default:{http:[\"https://api-testnet.elastos.io/eth\"]}},blockExplorers:{default:{name:\"Elastos Explorer\",url:\"https://esc-testnet.elastos.io\"}},testnet:!0})});var Dve,Hve=x(()=>{c();_();Dve=g({id:52014,name:\"Electroneum Mainnet\",nativeCurrency:{name:\"ETN\",symbol:\"ETN\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.electroneum.com\"]}},blockExplorers:{default:{name:\"Electroneum Block Explorer\",url:\"https://blockexplorer.electroneum.com\"}},testnet:!1})});var Lve,zve=x(()=>{c();_();Lve=g({id:5201420,name:\"Electroneum Testnet\",nativeCurrency:{name:\"ETN\",symbol:\"ETN\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.electroneum.com\"]}},blockExplorers:{default:{name:\"Electroneum Block Explorer\",url:\"https://blockexplorer.thesecurityteam.rocks\"}},testnet:!0})});var Fve,jve=x(()=>{c();it();_();Fve=g({...de,id:1338,name:\"Elysium Testnet\",nativeCurrency:{decimals:18,name:\"LAVA\",symbol:\"LAVA\"},rpcUrls:{default:{http:[\"https://elysium-test-rpc.vulcanforged.com\"]}},blockExplorers:{default:{name:\"Elysium testnet explorer\",url:\"https://elysium-explorer.vulcanforged.com\"}},testnet:!0})});var qve,$ve=x(()=>{c();_();qve=g({id:246,name:\"Energy Mainnet\",nativeCurrency:{name:\"EWT\",symbol:\"EWT\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.energyweb.org\"]}},blockExplorers:{default:{name:\"EnergyWeb Explorer\",url:\"https://explorer.energyweb.org\"}},testnet:!1})});var Gve,Vve=x(()=>{c();_();Gve=g({id:173,name:\"ENI Mainnet\",nativeCurrency:{decimals:18,name:\"ENI\",symbol:\"ENI\"},rpcUrls:{default:{http:[\"https://rpc.eniac.network\"]}},blockExplorers:{default:{name:\"ENI Explorer\",url:\"https://scan.eniac.network\"}},testnet:!1})});var Kve,Wve=x(()=>{c();_();Kve=g({id:6912115,name:\"ENI Testnet\",nativeCurrency:{decimals:18,name:\"ENI Testnet Token\",symbol:\"ENI\"},rpcUrls:{default:{http:[\"https://rpc-testnet.eniac.network\"]}},blockExplorers:{default:{name:\"ENI Testnet Explorer\",url:\"https://scan-testnet.eniac.network\"}},testnet:!0})});var Qve,Zve=x(()=>{c();_();Qve=g({id:119,name:\"ENULS Mainnet\",nativeCurrency:{decimals:18,name:\"NULS\",symbol:\"NULS\"},rpcUrls:{default:{http:[\"https://evmapi2.nuls.io\"]}},blockExplorers:{default:{name:\"ENULS Explorer\",url:\"https://evmscan.nuls.io\"}},testnet:!1})});var Jve,Yve=x(()=>{c();_();Jve=g({id:7332,name:\"Horizen EON\",nativeCurrency:{decimals:18,name:\"ZEN\",symbol:\"ZEN\"},rpcUrls:{default:{http:[\"https://eon-rpc.horizenlabs.io/ethv1\"]}},blockExplorers:{default:{name:\"EON Explorer\",url:\"https://eon-explorer.horizenlabs.io\"}},contracts:{}})});var Xve,ewe=x(()=>{c();_();Xve=g({id:17777,name:\"EOS EVM\",nativeCurrency:{decimals:18,name:\"EOS\",symbol:\"EOS\"},rpcUrls:{default:{http:[\"https://api.evm.eosnetwork.com\"]}},blockExplorers:{default:{name:\"EOS EVM Explorer\",url:\"https://explorer.evm.eosnetwork.com\",apiUrl:\"https://explorer.evm.eosnetwork.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:7943933}}})});var twe,rwe=x(()=>{c();_();twe=g({id:15557,name:\"EOS EVM Testnet\",nativeCurrency:{decimals:18,name:\"EOS\",symbol:\"EOS\"},rpcUrls:{default:{http:[\"https://api.testnet.evm.eosnetwork.com\"]}},blockExplorers:{default:{name:\"EOS EVM Testnet Explorer\",url:\"https://explorer.testnet.evm.eosnetwork.com\",apiUrl:\"https://explorer.testnet.evm.eosnetwork.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:9067940}},testnet:!0})});var nwe,owe=x(()=>{c();_();nwe=g({id:140,name:\"Eteria\",nativeCurrency:{name:\"Eteria\",symbol:\"ERA\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.eteria.io/v1\"]}},blockExplorers:{default:{name:\"Eteria Explorer\",url:\"https://explorer.eteria.io\",apiUrl:\"https://explorer.eteria.io/api\"}}})});var awe,iwe=x(()=>{c();_();awe=g({id:42793,name:\"Etherlink\",blockTime:4830,nativeCurrency:{decimals:18,name:\"Tez\",symbol:\"XTZ\"},rpcUrls:{default:{http:[\"https://node.mainnet.etherlink.com\"]}},blockExplorers:{default:{name:\"Etherlink\",url:\"https://explorer.etherlink.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:33899}}})});var swe,cwe=x(()=>{c();_();swe=g({id:127823,name:\"Etherlink Shadownet Testnet\",nativeCurrency:{decimals:18,name:\"tez\",symbol:\"XTZ\"},rpcUrls:{default:{http:[\"https://node.shadownet.etherlink.com\"]}},blockExplorers:{default:{name:\"Etherlink Shadownet Testnet Explorer\",url:\"https://shadownet.explorer.etherlink.com\"}},testnet:!0})});var uwe,lwe=x(()=>{c();_();uwe=g({id:128123,name:\"Etherlink Testnet\",nativeCurrency:{decimals:18,name:\"Tez\",symbol:\"XTZ\"},rpcUrls:{default:{http:[\"https://node.ghostnet.etherlink.com\"]}},blockExplorers:{default:{name:\"Etherlink Testnet\",url:\"https://testnet.explorer.etherlink.com\"}},testnet:!0})});var fwe,dwe=x(()=>{c();_();fwe=g({id:183,name:\"Ethernity\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://mainnet.ethernitychain.io\"]}},blockExplorers:{default:{name:\"Ethernity Explorer\",url:\"https://ernscan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},testnet:!1})});var pwe,mwe=x(()=>{c();_();pwe=g({id:20256789,name:\"ETP Mainnet\",nativeCurrency:{decimals:18,name:\"ETP Chain Native Token\",symbol:\"ETP\"},rpcUrls:{default:{http:[\"https://rpc.etpscan.xyz\"]}},blockExplorers:{default:{name:\"ETP Scan\",url:\"https://etpscan.xyz\"}}})});var hwe,ywe=x(()=>{c();_();hwe=g({id:9001,name:\"Evmos\",nativeCurrency:{decimals:18,name:\"Evmos\",symbol:\"EVMOS\"},rpcUrls:{default:{http:[\"https://eth.bd.evmos.org:8545\"]}},blockExplorers:{default:{name:\"Evmos Block Explorer\",url:\"https://escan.live\"}}})});var bwe,gwe=x(()=>{c();_();bwe=g({id:9e3,name:\"Evmos Testnet\",nativeCurrency:{decimals:18,name:\"Evmos\",symbol:\"EVMOS\"},rpcUrls:{default:{http:[\"https://eth.bd.evmos.dev:8545\"]}},blockExplorers:{default:{name:\"Evmos Testnet Block Explorer\",url:\"https://evm.evmos.dev/\"}},testnet:!0})});var xwe,vwe=x(()=>{c();_();xwe=g({id:22052002,name:\"Excelon Mainnet\",network:\"XLON\",nativeCurrency:{decimals:18,name:\"Excelon\",symbol:\"xlon\"},rpcUrls:{default:{http:[\"https://edgewallet1.xlon.org\"]}},blockExplorers:{default:{name:\"Excelon explorer\",url:\"https://explorer.excelon.io\"}}})});var wwe,Ewe=x(()=>{c();_();wwe=g({id:2,name:\"Expanse Network\",nativeCurrency:{decimals:18,name:\"EXP\",symbol:\"EXP\"},rpcUrls:{default:{http:[\"https://node.expanse.tech\"]}},blockExplorers:{default:{name:\"Expanse Explorer\",url:\"https://explorer.expanse.tech\"}},testnet:!1})});var Awe,Swe=x(()=>{c();_();Awe=g({id:7200,name:\"exSat Network\",nativeCurrency:{decimals:18,name:\"BTC\",symbol:\"BTC\"},rpcUrls:{default:{http:[\"https://evm.exsat.network\"]}},blockExplorers:{default:{name:\"exSat Explorer\",url:\"https://scan.exsat.network\",apiUrl:\"https://scan.exsat.network/api\"}}})});var Cwe,Twe=x(()=>{c();_();Cwe=g({id:839999,name:\"exSat Testnet\",nativeCurrency:{decimals:18,name:\"BTC\",symbol:\"BTC\"},rpcUrls:{default:{http:[\"https://evm-tst3.exsat.network\"]}},blockExplorers:{default:{name:\"exSat Explorer\",url:\"https://scan-testnet.exsat.network\",apiUrl:\"https://scan-testnet.exsat.network/api\"}},testnet:!0})});var _we,kwe=x(()=>{c();_();_we=g({id:250,name:\"Fantom\",nativeCurrency:{decimals:18,name:\"Fantom\",symbol:\"FTM\"},rpcUrls:{default:{http:[\"https://250.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"FTMScan\",url:\"https://ftmscan.com\",apiUrl:\"https://api.ftmscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:33001987}}})});var Bwe,Iwe=x(()=>{c();_();Bwe=g({id:64240,name:\"Fantom Sonic Open Testnet\",network:\"fantom-sonic-testnet\",nativeCurrency:{decimals:18,name:\"Fantom\",symbol:\"FTM\"},rpcUrls:{default:{http:[\"https://rpcapi.sonic.fantom.network\"]}},blockExplorers:{default:{name:\"Fantom Sonic Open Testnet Explorer\",url:\"https://public-sonic.fantom.network\"}},testnet:!0})});var Pwe,Rwe=x(()=>{c();_();Pwe=g({id:4002,name:\"Fantom Testnet\",nativeCurrency:{decimals:18,name:\"Fantom\",symbol:\"FTM\"},rpcUrls:{default:{http:[\"https://rpc.testnet.fantom.network\"]}},blockExplorers:{default:{name:\"FTMScan\",url:\"https://testnet.ftmscan.com\",apiUrl:\"https://testnet.ftmscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:8328688}},testnet:!0})});var Mwe,Owe=x(()=>{c();_();Mwe=g({id:12306,name:\"Fibo Chain\",nativeCurrency:{decimals:18,name:\"fibo\",symbol:\"FIBO\"},rpcUrls:{default:{http:[\"https://network.hzroc.art\"]}},blockExplorers:{default:{name:\"FiboScan\",url:\"https://scan.fibochain.org\"}}})});var Nwe,Uwe=x(()=>{c();_();Nwe=g({id:314,name:\"Filecoin Mainnet\",nativeCurrency:{decimals:18,name:\"filecoin\",symbol:\"FIL\"},rpcUrls:{default:{http:[\"https://api.node.glif.io/rpc/v1\"]}},blockExplorers:{default:{name:\"Filfox\",url:\"https://filfox.info/en\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3328594}}})});var Dwe,Hwe=x(()=>{c();_();Dwe=g({id:314159,name:\"Filecoin Calibration\",nativeCurrency:{decimals:18,name:\"testnet filecoin\",symbol:\"tFIL\"},rpcUrls:{default:{http:[\"https://api.calibration.node.glif.io/rpc/v1\"]}},blockExplorers:{default:{name:\"Filscan\",url:\"https://calibration.filscan.io\"}},testnet:!0})});var Lwe,zwe=x(()=>{c();_();Lwe=g({id:3141,name:\"Filecoin Hyperspace\",nativeCurrency:{decimals:18,name:\"testnet filecoin\",symbol:\"tFIL\"},rpcUrls:{default:{http:[\"https://api.hyperspace.node.glif.io/rpc/v1\"]}},blockExplorers:{default:{name:\"Filfox\",url:\"https://hyperspace.filfox.info/en\"}},testnet:!0})});var Fwe,jwe=x(()=>{c();_();Fwe=g({id:253368190,name:\"Flame\",network:\"flame\",nativeCurrency:{symbol:\"TIA\",name:\"TIA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.flame.astria.org\"],webSocket:[\"wss://ws.flame.astria.org\"]}},blockExplorers:{default:{name:\"Flame Explorer\",url:\"https://explorer.flame.astria.org\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:6829148}}})});var qwe,$we=x(()=>{c();_();qwe=g({id:14,name:\"Flare Mainnet\",nativeCurrency:{decimals:18,name:\"Flare\",symbol:\"FLR\"},rpcUrls:{default:{http:[\"https://flare-api.flare.network/ext/C/rpc\"]}},blockExplorers:{default:{name:\"Flare Explorer\",url:\"https://flare-explorer.flare.network\",apiUrl:\"https://flare-explorer.flare.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3002461}}})});var Gwe,Vwe=x(()=>{c();_();Gwe=g({id:114,name:\"Flare Testnet Coston2\",nativeCurrency:{decimals:18,name:\"Coston2 Flare\",symbol:\"C2FLR\"},rpcUrls:{default:{http:[\"https://coston2-api.flare.network/ext/C/rpc\"]}},blockExplorers:{default:{name:\"Coston2 Explorer\",url:\"https://coston2-explorer.flare.network\",apiUrl:\"https://coston2-explorer.flare.network/api\"}},testnet:!0})});var Kwe,Wwe=x(()=>{c();_();Kwe=g({id:747,name:\"Flow EVM Mainnet\",nativeCurrency:{decimals:18,name:\"Flow\",symbol:\"FLOW\"},rpcUrls:{default:{http:[\"https://mainnet.evm.nodes.onflow.org\"]}},blockExplorers:{default:{name:\"Mainnet Explorer\",url:\"https://evm.flowscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:6205}},blockTime:800})});var Qwe,Zwe=x(()=>{c();_();Qwe=g({id:646,name:\"Flow EVM Previewnet\",nativeCurrency:{decimals:18,name:\"Flow\",symbol:\"FLOW\"},rpcUrls:{default:{http:[\"https://previewnet.evm.nodes.onflow.org\"]}},blockExplorers:{default:{name:\"Previewnet Explorer\",url:\"https://previewnet.flowdiver.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:6205}},testnet:!0})});var Jwe,Ywe=x(()=>{c();_();Jwe=g({id:545,name:\"Flow EVM Testnet\",nativeCurrency:{decimals:18,name:\"Flow\",symbol:\"FLOW\"},rpcUrls:{default:{http:[\"https://testnet.evm.nodes.onflow.org\"]}},blockExplorers:{default:{name:\"Flow Diver\",url:\"https://evm-testnet.flowscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:137518}},testnet:!0,blockTime:800})});var Xwe,e6e=x(()=>{c();_();Xwe=g({id:9999999,name:\"Fluence\",nativeCurrency:{name:\"FLT\",symbol:\"FLT\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.fluence.dev\"],webSocket:[\"wss://ws.mainnet.fluence.dev\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout.mainnet.fluence.dev\",apiUrl:\"https://blockscout.mainnet.fluence.dev/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:207583}}})});var t6e,r6e=x(()=>{c();_();t6e=g({id:123420000220,name:\"Fluence Stage\",nativeCurrency:{name:\"tFLT\",symbol:\"tFLT\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.stage.fluence.dev\"],webSocket:[\"wss://ws.stage.fluence.dev\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout.stage.fluence.dev\",apiUrl:\"https://blockscout.stage.fluence.dev/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:83227}},testnet:!0})});var n6e,o6e=x(()=>{c();_();n6e=g({id:52164803,name:\"Fluence Testnet\",nativeCurrency:{name:\"tFLT\",symbol:\"tFLT\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.fluence.dev\"],webSocket:[\"wss://ws.testnet.fluence.dev\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout.testnet.fluence.dev\",apiUrl:\"https://blockscout.testnet.fluence.dev/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:96424}},testnet:!0})});var a6e,i6e=x(()=>{c();_();a6e=g({id:25363,name:\"Fluent\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.fluent.xyz\"]}},blockExplorers:{default:{name:\"Fluent Explorer\",url:\"https://fluentscan.xyz\"}},testnet:!1})});var s6e,c6e=x(()=>{c();_();s6e=g({id:20993,name:\"Fluent Devnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.devnet.fluent.xyz\"]}},blockExplorers:{default:{name:\"Fluent Devnet Explorer\",url:\"https://devnet.fluentscan.xyz\"}},testnet:!0})});var u6e,l6e=x(()=>{c();_();u6e=g({id:20994,name:\"Fluent Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.fluent.xyz\"]}},blockExplorers:{default:{name:\"Fluent Testnet Explorer\",url:\"https://testnet.fluentscan.xyz\"}},testnet:!0})});var Ww,f6e,d6e=x(()=>{c();it();_();Ww=1,f6e=g({id:478,name:\"Form Network\",nativeCurrency:{decimals:18,name:\"Ethereum\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.form.network/http\"],webSocket:[\"wss://rpc.form.network/ws\"]}},blockExplorers:{default:{name:\"Form Explorer\",url:\"https://explorer.form.network\"}},contracts:{...de.contracts,addressManager:{[Ww]:{address:\"0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B\"}},l1CrossDomainMessenger:{[Ww]:{address:\"0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c\"}},l2OutputOracle:{[Ww]:{address:\"0x4ccAAF69F41c5810cA875183648B577CaCf1F67E\"}},portal:{[Ww]:{address:\"0x4E259Ee5F4136408908160dD32295A5031Fa426F\"}},l1StandardBridge:{[Ww]:{address:\"0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"}},sourceId:Ww})});var p6e,m6e=x(()=>{c();_();p6e=g({id:984122,name:\"Forma\",network:\"forma\",nativeCurrency:{symbol:\"TIA\",name:\"TIA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.forma.art\"],webSocket:[\"wss://ws.forma.art\"]}},blockExplorers:{default:{name:\"Forma Explorer\",url:\"https://explorer.forma.art\"}},contracts:{multicall3:{address:\"0xd53C6FFB123F7349A32980F87faeD8FfDc9ef079\",blockCreated:252705}}})});var Qw,h6e,y6e=x(()=>{c();it();_();Qw=11155111,h6e=g({id:132902,name:\"Form Testnet\",nativeCurrency:{decimals:18,name:\"Ethereum\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://sepolia-rpc.form.network/http\"],webSocket:[\"wss://sepolia-rpc.form.network/ws\"]}},blockExplorers:{default:{name:\"Form Testnet Explorer\",url:\"https://sepolia-explorer.form.network\"}},contracts:{...de.contracts,addressManager:{[Qw]:{address:\"0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373\"}},l1CrossDomainMessenger:{[Qw]:{address:\"0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa\"}},l2OutputOracle:{[Qw]:{address:\"0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2\"}},portal:{[Qw]:{address:\"0x60377e3cE15dF4CCA24c4beF076b60314240b032\"}},l1StandardBridge:{[Qw]:{address:\"0xD4531f633942b2725896F47cD2aFd260b44Ab1F7\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"}},testnet:!0,sourceId:Qw})});var b6e,g6e=x(()=>{c();_();b6e=g({id:80931,name:\"Forta Chain\",nativeCurrency:{symbol:\"FORT\",name:\"FORT\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-forta-chain-8gj1qndmfc.t.conduit.xyz\"]}},blockExplorers:{default:{name:\"Forta Explorer\",url:\"https://explorer.forta.org\"}}})});var x6e,v6e=x(()=>{c();_();x6e=g({id:31337,name:\"Foundry\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"],webSocket:[\"ws://127.0.0.1:8545\"]}}})});var ZP,w6e,E6e=x(()=>{c();it();_();ZP=1,w6e=g({...de,id:252,name:\"Fraxtal\",nativeCurrency:{name:\"Frax\",symbol:\"FRAX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.frax.com\"]}},blockExplorers:{default:{name:\"fraxscan\",url:\"https://fraxscan.com\",apiUrl:\"https://api.fraxscan.com/api\"}},contracts:{...de.contracts,l2OutputOracle:{[ZP]:{address:\"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[ZP]:{address:\"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D\",blockCreated:19135323}},l1StandardBridge:{[ZP]:{address:\"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2\",blockCreated:19135323}}},sourceId:ZP})});var JP,A6e,S6e=x(()=>{c();it();_();JP=17e3,A6e=g({...de,id:2522,name:\"Fraxtal Testnet\",nativeCurrency:{name:\"Frax\",symbol:\"FRAX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.frax.com\"]}},blockExplorers:{default:{name:\"fraxscan testnet\",url:\"https://holesky.fraxscan.com\",apiUrl:\"https://api-holesky.fraxscan.com/api\"}},contracts:{...de.contracts,l2OutputOracle:{[JP]:{address:\"0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[JP]:{address:\"0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d\",blockCreated:318416}},l1StandardBridge:{[JP]:{address:\"0x0BaafC217162f64930909aD9f2B27125121d6332\",blockCreated:318416}}},sourceId:JP,testnet:!0})});var Qpt,C6e,T6e=x(()=>{c();it();_();Qpt=1,C6e=g({...de,id:33979,name:\"Funki\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-mainnet.funkichain.com\"]}},blockExplorers:{default:{name:\"Funki Mainnet Explorer\",url:\"https://funkiscan.io\"}},contracts:{...de.contracts},sourceId:Qpt})});var Zpt,_6e,k6e=x(()=>{c();it();_();Zpt=11155111,_6e=g({...de,id:3397901,network:\"funkiSepolia\",name:\"Funki Sepolia Sandbox\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://funki-testnet.alt.technology\"]}},blockExplorers:{default:{name:\"Funki Sepolia Sandbox Explorer\",url:\"https://sepolia-sandbox.funkichain.com/\"}},testnet:!0,contracts:{...de.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1620204}},sourceId:Zpt})});var B6e,I6e=x(()=>{c();_();B6e=g({id:122,name:\"Fuse\",nativeCurrency:{name:\"Fuse\",symbol:\"FUSE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.fuse.io\"]}},blockExplorers:{default:{name:\"Fuse Explorer\",url:\"https://explorer.fuse.io\",apiUrl:\"https://explorer.fuse.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:16146628}}})});var P6e,R6e=x(()=>{c();_();P6e=g({id:123,name:\"Fuse Sparknet\",nativeCurrency:{name:\"Spark\",symbol:\"SPARK\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.fusespark.io\"]}},blockExplorers:{default:{name:\"Sparkent Explorer\",url:\"https://explorer.fusespark.io\",apiUrl:\"https://explorer.fusespark.io/api\"}}})});var M6e,O6e=x(()=>{c();_();M6e=g({id:32659,name:\"Fusion Mainnet\",nativeCurrency:{name:\"Fusion\",symbol:\"FSN\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.fusionnetwork.io\"],webSocket:[\"wss://mainnet.fusionnetwork.io\"]}},blockExplorers:{default:{name:\"FSNscan\",url:\"https://fsnscan.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:10441605}},testnet:!1})});var N6e,U6e=x(()=>{c();_();N6e=g({id:46688,name:\"Fusion Testnet\",nativeCurrency:{name:\"Fusion\",symbol:\"FSN\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.fusionnetwork.io\"],webSocket:[\"wss://testnet.fusionnetwork.io\"]}},blockExplorers:{default:{name:\"FSNscan\",url:\"https://testnet.fsnscan.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:10428309}},testnet:!0})});var YP,D6e,H6e=x(()=>{c();it();_();YP=17e3,D6e=g({...de,name:\"Garnet Testnet\",testnet:!0,id:17069,sourceId:YP,nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.garnetchain.com\"],webSocket:[\"wss://rpc.garnetchain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.garnetchain.com\"}},contracts:{...de.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[YP]:{address:\"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909\",blockCreated:1274684}},l2OutputOracle:{[YP]:{address:\"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B\",blockCreated:1274684}},l1StandardBridge:{[YP]:{address:\"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE\",blockCreated:1274684}}}})});var L6e,z6e=x(()=>{c();_();L6e=g({id:86,name:\"GateChain Mainnet\",nativeCurrency:{name:\"GateChainToken\",symbol:\"GT\",decimals:18},rpcUrls:{default:{http:[\"https://evm.nodeinfo.cc\"],webSocket:[\"wss://evm-ws.gatenode.cc\"]}},blockExplorers:{default:{name:\"Gate Scan\",url:\"https://www.gatescan.org\",apiUrl:\"https://gatescan.org/api\"}},testnet:!1})});var F6e,j6e=x(()=>{c();_();F6e=g({id:63157,name:\"Geist Mainnet\",nativeCurrency:{decimals:18,name:\"Aavegotchi GHST Token\",symbol:\"GHST\"},rpcUrls:{default:{http:[\"https://geist-mainnet.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://geist-mainnet.explorer.alchemy.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:660735}}})});var q6e,$6e=x(()=>{c();_();q6e=g({id:16507,name:\"Genesys Mainnet\",nativeCurrency:{decimals:18,name:\"GSYS\",symbol:\"GSYS\"},rpcUrls:{default:{http:[\"https://rpc.genesys.network\"]}},blockExplorers:{default:{name:\"Genesys Explorer\",url:\"https://gchainexplorer.genesys.network\"}},testnet:!1})});var G6e,V6e=x(()=>{c();_();G6e=g({id:685689,name:\"Gensyn Mainnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://gensyn-mainnet.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://gensyn-mainnet.explorer.alchemy.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}}})});var XP,MK,K6e,W6e=x(()=>{c();it();_();XP=11155111,MK=g({...de,id:91342,network:\"giwa-sepolia\",name:\"GIWA Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},blockTime:1e3,rpcUrls:{default:{http:[\"https://sepolia-rpc.giwa.io\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://sepolia-explorer.giwa.io\",apiUrl:\"https://sepolia-explorer.giwa.io/api\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},disputeGameFactory:{[XP]:{address:\"0x37347caB2afaa49B776372279143D71ad1f354F6\"}},portal:{[XP]:{address:\"0x956962C34687A954e611A83619ABaA37Ce6bC78A\"}},l1StandardBridge:{[XP]:{address:\"0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7\"}}},testnet:!0,sourceId:XP}),K6e=g({...MK,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://sepolia-rpc-flashblocks.giwa.io\"]}}})});var Q6e,Z6e=x(()=>{c();_();Q6e=g({id:251,name:\"Glide L1 Protocol XP\",nativeCurrency:{name:\"GLXP\",symbol:\"GLXP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-api.glideprotocol.xyz/l1-rpc\"],webSocket:[\"wss://rpc-api.glideprotocol.xyz/l1-rpc\"]}},blockExplorers:{default:{name:\"Glide Protocol Explore\",url:\"https://blockchain-explorer.glideprotocol.xyz\"}},testnet:!1})});var J6e,Y6e=x(()=>{c();_();J6e=g({id:253,name:\"Glide L2 Protocol XP\",nativeCurrency:{name:\"GLXP\",symbol:\"GLXP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-api.glideprotocol.xyz/l2-rpc\"],webSocket:[\"wss://rpc-api.glideprotocol.xyz/l2-rpc\"]}},blockExplorers:{default:{name:\"Glide Protocol Explore\",url:\"https://blockchain-explorer.glideprotocol.xyz\"}},testnet:!1})});var X6e,e5e=x(()=>{c();_();X6e=g({id:100,name:\"Gnosis\",nativeCurrency:{decimals:18,name:\"xDAI\",symbol:\"XDAI\"},blockTime:5e3,rpcUrls:{default:{http:[\"https://rpc.gnosischain.com\"],webSocket:[\"wss://rpc.gnosischain.com/wss\"]}},blockExplorers:{default:{name:\"Gnosisscan\",url:\"https://gnosisscan.io\",apiUrl:\"https://api.gnosisscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:21022491}}})});var t5e,r5e=x(()=>{c();_();t5e=g({id:10200,name:\"Gnosis Chiado\",nativeCurrency:{decimals:18,name:\"Gnosis\",symbol:\"xDAI\"},blockTime:5e3,rpcUrls:{default:{http:[\"https://rpc.chiadochain.net\"],webSocket:[\"wss://rpc.chiadochain.net/wss\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout.chiadochain.net\",apiUrl:\"https://blockscout.chiadochain.net/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:4967313}},testnet:!0})});var n5e,o5e=x(()=>{c();_();n5e=g({id:2345,name:\"GOAT\",nativeCurrency:{decimals:18,name:\"Bitcoin\",symbol:\"BTC\"},rpcUrls:{default:{http:[\"https://rpc.goat.network\"]}},blockExplorers:{default:{name:\"Goat Explorer\",url:\"https://explorer.goat.network\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}}})});var a5e,i5e=x(()=>{c();_();a5e=g({id:1663,name:\"Horizen Gobi Testnet\",nativeCurrency:{decimals:18,name:\"Test ZEN\",symbol:\"tZEN\"},rpcUrls:{default:{http:[\"https://gobi-testnet.horizenlabs.io/ethv1\"]}},blockExplorers:{default:{name:\"Gobi Explorer\",url:\"https://gobi-explorer.horizen.io\"}},contracts:{},testnet:!0})});var s5e,c5e=x(()=>{c();_();s5e=g({id:60,name:\"GoChain\",nativeCurrency:{decimals:18,name:\"GO\",symbol:\"GO\"},rpcUrls:{default:{http:[\"https://rpc.gochain.io\"]}},blockExplorers:{default:{name:\"GoChain Explorer\",url:\"https://explorer.gochain.io\"}},testnet:!1})});var u5e,l5e=x(()=>{c();_();u5e=g({id:71402,name:\"Godwoken Mainnet\",nativeCurrency:{decimals:18,name:\"pCKB\",symbol:\"pCKB\"},rpcUrls:{default:{http:[\"https://v1.mainnet.godwoken.io/rpc\"]}},blockExplorers:{default:{name:\"GW Scan\",url:\"https://v1.gwscan.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:15034}},testnet:!1})});var f5e,d5e=x(()=>{c();_();f5e=g({id:5,name:\"Goerli\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://5.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli.etherscan.io\",apiUrl:\"https://api-goerli.etherscan.io/api\"}},contracts:{ensRegistry:{address:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},ensUniversalResolver:{address:\"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1\",blockCreated:10339206},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:6507670}},testnet:!0})});var p5e,m5e=x(()=>{c();_();p5e=g({id:440017,name:\"Graphite Network\",nativeCurrency:{name:\"Graphite\",symbol:\"@G\",decimals:18},rpcUrls:{default:{http:[\"https://anon-entrypoint-1.atgraphite.com\"],webSocket:[\"wss://ws-anon-entrypoint-1.atgraphite.com\"]}},blockExplorers:{default:{name:\"Graphite Spectre\",url:\"https://main.atgraphite.com\",apiUrl:\"https://api.main.atgraphite.com/api\"}},testnet:!1})});var h5e,y5e=x(()=>{c();_();h5e=g({id:54170,name:\"Graphite Network Testnet\",nativeCurrency:{name:\"Graphite\",symbol:\"@G\",decimals:18},rpcUrls:{default:{http:[\"https://anon-entrypoint-test-1.atgraphite.com\"],webSocket:[\"wss://ws-anon-entrypoint-test-1.atgraphite.com\"]}},blockExplorers:{default:{name:\"Graphite Testnet Spectre\",url:\"https://test.atgraphite.com\",apiUrl:\"https://api.test.atgraphite.com/api\"}},testnet:!0})});var b5e,g5e=x(()=>{c();_();b5e=g({id:1625,name:\"Gravity Alpha Mainnet\",nativeCurrency:{name:\"G\",symbol:\"G\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.gravity.xyz\"]}},blockExplorers:{default:{name:\"Gravity Explorer\",url:\"https://explorer.gravity.xyz\",apiUrl:\"https://explorer.gravity.xyz/api\"}},contracts:{multicall3:{address:\"0xf8ac4BEB2F75d2cFFb588c63251347fdD629B92c\",blockCreated:16851}}})});var x5e,v5e=x(()=>{c();_();x5e=g({id:43419,name:\"Gunz Mainnet\",nativeCurrency:{name:\"GUN\",symbol:\"GUN\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.gunzchain.io/ext/bc/2M47TxWHGnhNtq6pM5zPXdATBtuqubxn5EPFgFmEawCQr9WFML/rpc\"]}},blockExplorers:{default:{name:\"Gunz Explorer\",url:\"https://gunzscan.io/\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:70502}}})});var w5e,E5e=x(()=>{c();_();w5e=g({id:260,name:\"Guru Network Mainnet\",nativeCurrency:{name:\"GURU Token\",symbol:\"GURU\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-main.gurunetwork.ai\",\"https://rpc.gurunetwork.ai/archive/260\"]}},blockExplorers:{default:{name:\"Guruscan\",url:\"https://scan.gurunetwork.ai\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:271691}},testnet:!1})});var A5e,S5e=x(()=>{c();_();A5e=g({id:261,name:\"Guru Network Testnet\",nativeCurrency:{name:\"tGURU Token\",symbol:\"tGURU\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-test.gurunetwork.ai\",\"https://rpc.gurunetwork.ai/archive/261\"]}},blockExplorers:{default:{name:\"Guruscan\",url:\"https://sepolia.gurunetwork.ai\"}},testnet:!0})});var C5e,T5e=x(()=>{c();_();C5e=g({id:5112,name:\"Ham\",nativeCurrency:{decimals:18,name:\"Ham\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.ham.fun\"],webSocket:[\"wss://rpc.ham.fun\"]}},blockExplorers:{default:{name:\"Ham Chain Explorer\",url:\"https://explorer.ham.fun\",apiUrl:\"https://explorer.ham.fun/api/v2\"}}})});var _5e,k5e=x(()=>{c();_();_5e=g({id:216,name:\"Happychain Testnet\",nativeCurrency:{symbol:\"HAPPY\",name:\"HAPPY\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.happy.tech/http\"],webSocket:[\"wss://rpc.testnet.happy.tech/ws\"]}},blockExplorers:{default:{name:\"Happy Chain Testnet Explorer\",url:\"https://explorer.testnet.happy.tech\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1}},testnet:!0})});var B5e,I5e=x(()=>{c();_();B5e=g({id:11235,name:\"HAQQ Mainnet\",nativeCurrency:{decimals:18,name:\"Islamic Coin\",symbol:\"ISLM\"},rpcUrls:{default:{http:[\"https://rpc.eth.haqq.network\"]}},blockExplorers:{default:{name:\"HAQQ Explorer\",url:\"https://explorer.haqq.network\",apiUrl:\"https://explorer.haqq.network/api\"}}})});var P5e,R5e=x(()=>{c();_();P5e=g({id:54211,name:\"HAQQ Testedge 2\",nativeCurrency:{decimals:18,name:\"Islamic Coin\",symbol:\"ISLMT\"},rpcUrls:{default:{http:[\"https://rpc.eth.testedge2.haqq.network\"]}},blockExplorers:{default:{name:\"HAQQ Explorer\",url:\"https://explorer.testedge2.haqq.network\",apiUrl:\"https://explorer.testedge2.haqq.network/api\"}},testnet:!0})});var M5e,O5e=x(()=>{c();_();M5e=g({id:31337,name:\"Hardhat\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"]}}})});var N5e,U5e=x(()=>{c();_();N5e=g({id:16666e5,name:\"Harmony One\",nativeCurrency:{name:\"Harmony\",symbol:\"ONE\",decimals:18},rpcUrls:{default:{http:[\"https://1666600000.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"Harmony Explorer\",url:\"https://explorer.harmony.one\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:24185753}}})});var D5e,H5e=x(()=>{c();_();D5e=g({id:177,name:\"HashKey Chain\",nativeCurrency:{decimals:18,name:\"HashKey EcoPoints\",symbol:\"HSK\"},rpcUrls:{default:{http:[\"https://mainnet.hsk.xyz\"]}},blockExplorers:{default:{name:\"HashKey Chain Explorer\",url:\"https://hashkey.blockscout.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0}}})});var L5e,z5e=x(()=>{c();_();L5e=g({id:133,name:\"HashKey Chain Testnet\",nativeCurrency:{decimals:18,name:\"HashKey EcoPoints\",symbol:\"HSK\"},rpcUrls:{default:{http:[\"https://testnet.hsk.xyz\"]}},blockExplorers:{default:{name:\"HashKey Chain Testnet explorer\",url:\"https://testnet-explorer.hsk.xyz\"}},testnet:!0})});var F5e,j5e=x(()=>{c();_();F5e=g({id:1523903251,name:\"Haust Network Testnet\",nativeCurrency:{decimals:18,name:\"HAUST\",symbol:\"HAUST\"},rpcUrls:{default:{http:[\"https://rpc-testnet.haust.app\"]}},blockExplorers:{default:{name:\"Haust Network Testnet Explorer\",url:\"https://explorer-testnet.haust.app\"}},testnet:!0})});var q5e,$5e=x(()=>{c();_();q5e=g({id:295,name:\"Hedera Mainnet\",network:\"hedera-mainnet\",nativeCurrency:{symbol:\"HBAR\",name:\"HBAR\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.hashio.io/api\"]}},blockExplorers:{default:{name:\"Hashscan\",url:\"https://hashscan.io/mainnet\"}},testnet:!1})});var G5e,V5e=x(()=>{c();_();G5e=g({id:297,name:\"Hedera Previewnet\",network:\"hedera-previewnet\",nativeCurrency:{symbol:\"HBAR\",name:\"HBAR\",decimals:18},rpcUrls:{default:{http:[\"https://previewnet.hashio.io/api\"]}},blockExplorers:{default:{name:\"Hashscan\",url:\"https://hashscan.io/previewnet\"}},testnet:!0})});var K5e,W5e=x(()=>{c();_();K5e=g({id:296,name:\"Hedera Testnet\",network:\"hedera-testnet\",nativeCurrency:{symbol:\"HBAR\",name:\"HBAR\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.hashio.io/api\"]}},blockExplorers:{default:{name:\"Hashscan\",url:\"https://hashscan.io/testnet\"}},testnet:!0})});var Q5e,Z5e=x(()=>{c();_();Q5e=g({id:8668,name:\"Hela Mainnet\",nativeCurrency:{name:\"HLUSD\",symbol:\"HLUSD\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet-rpc.helachain.com\"]}},blockExplorers:{default:{name:\"Hela explorer\",url:\"https://mainnet-blockexplorer.helachain.com\"}},testnet:!1})});var J5e,Y5e=x(()=>{c();_();J5e=g({id:42e3,name:\"Helios Testnet\",network:\"helios-testnet\",nativeCurrency:{symbol:\"HLS\",name:\"Helios\",decimals:18},rpcUrls:{default:{http:[\"https://testnet1.helioschainlabs.org\"]}},blockExplorers:{default:{name:\"Helios Testnet Explorer\",url:\"https://explorer.helioschainlabs.org/\"}},testnet:!0})});var X5e,eEe=x(()=>{c();_();X5e=g({id:43111,name:\"Hemi\",network:\"Hemi\",blockTime:12e3,nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hemi.network/rpc\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.hemi.xyz\"}},testnet:!1})});var tEe,rEe=x(()=>{c();_();tEe=g({id:743111,name:\"Hemi Sepolia\",network:\"Hemi Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.rpc.hemi.network/rpc\"]}},blockExplorers:{default:{name:\"Hemi Sepolia explorer\",url:\"https://testnet.explorer.hemi.xyz\"}},testnet:!0})});var nEe,oEe=x(()=>{c();_();nEe=g({id:68414,name:\"Henesys\",nativeCurrency:{name:\"NEXPACE\",symbol:\"NXPC\",decimals:18},rpcUrls:{default:{http:[\"https://henesys-rpc.msu.io\"]}},blockExplorers:{default:{name:\"Avalanche Explorer\",url:\"https://subnets.avax.network/henesys\"}}})});var aEe,iEe=x(()=>{c();_();aEe=g({id:17e3,name:\"Holesky\",nativeCurrency:{name:\"Holesky Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://ethereum-holesky-rpc.publicnode.com\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://holesky.etherscan.io\",apiUrl:\"https://api-holesky.etherscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:77},ensUniversalResolver:{address:\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\",blockCreated:4295055}},testnet:!0})});var sEe,cEe=x(()=>{c();_();sEe=g({id:560048,name:\"Hoodi\",nativeCurrency:{name:\"Hoodi Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hoodi.ethpandaops.io\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://hoodi.etherscan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2589}},testnet:!0})});var uEe,lEe=x(()=>{c();_();uEe=g({id:2651420,name:\"Horizen Testnet\",network:\"horizen-testnet\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://horizen-testnet.rpc.caldera.xyz/http\"]}},blockExplorers:{default:{name:\"Horizen Testnet Caldera Explorer\",url:\"https://horizen-testnet.explorer.caldera.xyz\"}},testnet:!0})});var fEe,dEe=x(()=>{c();_();fEe=g({id:269,name:\"High Performance Blockchain\",nativeCurrency:{name:\"HPB\",symbol:\"HPB\",decimals:18},rpcUrls:{default:{http:[\"https://hpbnode.com\"]}},blockExplorers:{default:{name:\"hpbScan\",url:\"https://hscan.org\"}},testnet:!1})});var pEe,mEe=x(()=>{c();_();pEe=g({id:190415,name:\"HPP Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.hpp.io\"],webSocket:[\"wss://mainnet.hpp.io\"]}},blockExplorers:{default:{name:\"HPP Mainnet Explorer\",url:\"https://explorer.hpp.io\"}},testnet:!1})});var hEe,yEe=x(()=>{c();_();hEe=g({id:181228,name:\"HPP Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.hpp.io\"],webSocket:[\"wss://testnet.hpp.io\"]}},blockExplorers:{default:{name:\"HPP Sepolia Explorer\",url:\"https://sepolia-explorer.hpp.io\"}},testnet:!0})});var Jpt,bEe,gEe=x(()=>{c();_();Jpt=42161,bEe=g({id:12323,name:\"Huddle01 dRTC Chain\",nativeCurrency:{name:\"Ethereum\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://huddle01.calderachain.xyz/http\"],webSocket:[\"wss://huddle01.calderachain.xyz/ws\"]}},blockExplorers:{default:{name:\"Huddle01 Caldera Explorer\",url:\"https://huddle01.calderaexplorer.xyz\",apiUrl:\"https://huddle01.calderaexplorer.xyz/api\"}},sourceId:Jpt})});var Ypt,xEe,vEe=x(()=>{c();_();Ypt=421614,xEe=g({id:2524852,name:\"Huddle01 dRTC Chain Testnet\",nativeCurrency:{name:\"Ethereum\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://huddle-testnet.rpc.caldera.xyz/http\"],webSocket:[\"wss://huddle-testnet.rpc.caldera.xyz/ws\"]}},blockExplorers:{default:{name:\"Huddle01 Caldera Explorer\",url:\"https://huddle-testnet.explorer.caldera.xyz\",apiUrl:\"https://huddle-testnet.explorer.caldera.xyz/api\"}},sourceId:Ypt,testnet:!0})});var wEe,EEe=x(()=>{c();_();wEe=g({id:6985385,name:\"Humanity\",nativeCurrency:{name:\"H\",symbol:\"H\",decimals:18},rpcUrls:{default:{http:[\"https://humanity-mainnet.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Humanity Mainnet Explorer\",url:\"https://humanity-mainnet.explorer.alchemy.com\",apiUrl:\"https://humanity-mainnet.explorer.alchemy.com/api\"}},testnet:!1})});var AEe,SEe=x(()=>{c();_();AEe=g({id:7080969,name:\"Humanity Testnet\",nativeCurrency:{name:\"tHP\",symbol:\"tHP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.humanity.org\"]}},blockExplorers:{default:{name:\"Humanity Testnet Explorer\",url:\"https://humanity-testnet.explorer.alchemy.com\",apiUrl:\"https://humanity-testnet.explorer.alchemy.com/api\"}},testnet:!0})});var CEe,TEe=x(()=>{c();_();CEe=g({id:5234,name:\"Humanode\",nativeCurrency:{name:\"HMND\",symbol:\"HMND\",decimals:18},rpcUrls:{default:{http:[\"https://explorer-rpc-http.mainnet.stages.humanode.io\"],webSocket:[\"wss://explorer-rpc-ws.mainnet.stages.humanode.io\"]}},blockExplorers:{default:{name:\"Subscan\",url:\"https://humanode.subscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:4413097}}})});var _Ee,kEe=x(()=>{c();_();_Ee=g({id:14853,name:\"Humanode Testnet 5\",nativeCurrency:{name:\"HMND\",symbol:\"HMND\",decimals:18},rpcUrls:{default:{http:[\"https://explorer-rpc-http.testnet5.stages.humanode.io\"],webSocket:[\"wss://explorer-rpc-ws.testnet5.stages.humanode.io\"]}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}},testnet:!0})});var BEe,IEe=x(()=>{c();_();BEe=g({id:2911,name:\"HYCHAIN\",nativeCurrency:{name:\"HYTOPIA\",symbol:\"TOPIA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hychain.com/http\"]}},blockExplorers:{default:{name:\"HYCHAIN Explorer\",url:\"https://explorer.hychain.com\"}},testnet:!1})});var PEe,REe=x(()=>{c();_();PEe=g({id:29112,name:\"HYCHAIN Testnet\",nativeCurrency:{name:\"HYTOPIA\",symbol:\"TOPIA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hychain.com/http\"]}},blockExplorers:{default:{name:\"HYCHAIN Explorer\",url:\"https://testnet-rpc.hychain.com/http\"}},testnet:!0})});var OK,MEe=x(()=>{c();_();OK=g({id:999,name:\"HyperEVM\",nativeCurrency:{name:\"HYPE\",symbol:\"HYPE\",decimals:18},blockExplorers:{default:{name:\"HyperEVMScan\",url:\"https://hyperevmscan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:13051}},rpcUrls:{default:{http:[\"https://rpc.hyperliquid.xyz/evm\"]}},testnet:!1})});var OEe,NEe=x(()=>{c();_();OEe=g({id:998,name:\"Hyperliquid EVM Testnet\",nativeCurrency:{name:\"HYPE\",symbol:\"HYPE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hyperliquid-testnet.xyz/evm\"]}},testnet:!0})});var UEe,DEe=x(()=>{c();_();UEe=g({id:73115,name:\"ICB Network\",nativeCurrency:{decimals:18,name:\"ICB Native Token\",symbol:\"ICBX\"},rpcUrls:{default:{http:[\"https://rpc1-mainnet.icbnetwork.info\"]}},blockExplorers:{default:{name:\"ICB Explorer\",url:\"https://icbscan.io\",apiUrl:\"https://icbscan.io/api\"}},testnet:!1})});var HEe,LEe=x(()=>{c();_();HEe=g({id:74,name:\"IDChain Mainnet\",nativeCurrency:{decimals:18,name:\"EIDI\",symbol:\"EIDI\"},rpcUrls:{default:{http:[\"https://idchain.one/rpc\"],webSocket:[\"wss://idchain.one/ws\"]}},blockExplorers:{default:{name:\"IDChain Explorer\",url:\"https://explorer.idchain.one\"}},testnet:!1})});var zEe,FEe=x(()=>{c();_();zEe=g({id:38833,name:\"Igra Network\",nativeCurrency:{decimals:18,name:\"iKAS\",symbol:\"iKAS\"},rpcUrls:{default:{http:[\"https://rpc.igralabs.com:8545\"]}},blockExplorers:{default:{name:\"Igra Explorer\",url:\"https://explorer.igralabs.com\"}},testnet:!1})});var jEe,qEe=x(()=>{c();_();jEe=g({id:13371,name:\"Immutable zkEVM\",nativeCurrency:{decimals:18,name:\"Immutable Coin\",symbol:\"IMX\"},rpcUrls:{default:{http:[\"https://rpc.immutable.com\"]}},blockExplorers:{default:{name:\"Immutable Explorer\",url:\"https://explorer.immutable.com\",apiUrl:\"https://explorer.immutable.com/api\"}},contracts:{multicall3:{address:\"0x236bdA4589e44e6850f5aC6a74BfCa398a86c6c0\",blockCreated:4335972}}})});var $Ee,GEe=x(()=>{c();_();$Ee=g({id:13473,name:\"Immutable zkEVM Testnet\",nativeCurrency:{decimals:18,name:\"Immutable Coin\",symbol:\"IMX\"},rpcUrls:{default:{http:[\"https://rpc.testnet.immutable.com\"]}},blockExplorers:{default:{name:\"Immutable Testnet Explorer\",url:\"https://explorer.testnet.immutable.com/\"}},contracts:{multicall3:{address:\"0x2CC787Ed364600B0222361C4188308Fa8E68bA60\",blockCreated:5977391}},testnet:!0})});var VEe,KEe=x(()=>{c();_();VEe=g({id:2525,name:\"inEVM Mainnet\",nativeCurrency:{decimals:18,name:\"Injective\",symbol:\"INJ\"},rpcUrls:{default:{http:[\"https://mainnet.rpc.inevm.com/http\"]}},blockExplorers:{default:{name:\"inEVM Explorer\",url:\"https://inevm.calderaexplorer.xyz\",apiUrl:\"https://inevm.calderaexplorer.xyz/api/v2\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:118606}}})});var WEe,QEe=x(()=>{c();_();WEe=g({id:7233,name:\"InitVerse Mainnet\",nativeCurrency:{decimals:18,name:\"InitVerse\",symbol:\"INI\"},rpcUrls:{default:{http:[\"https://rpc-mainnet.inichain.com\"]}},blockExplorers:{default:{name:\"InitVerseScan\",url:\"https://www.iniscan.com\",apiUrl:\"https://explorer-api.inichain.com/api\"}},contracts:{multicall3:{address:\"0x83466BE48A067115FFF91f7b892Ed1726d032e47\",blockCreated:2318}}})});var ZEe,JEe=x(()=>{c();_();ZEe=g({id:7234,name:\"InitVerse Genesis Testnet\",nativeCurrency:{decimals:18,name:\"InitVerse\",symbol:\"INI\"},rpcUrls:{default:{http:[\"https://rpc-testnet.inichain.com\"]}},blockExplorers:{default:{name:\"InitVerseGenesisScan\",url:\"https://genesis-testnet.iniscan.com\",apiUrl:\"https://explorer-testnet-api.inichain.com/api\"}},contracts:{multicall3:{address:\"0x0cF32CBDd6c437331EA4f85ed2d881A5379B5a6F\",blockCreated:16361}},testnet:!0})});var YEe,XEe=x(()=>{c();_();YEe=g({id:1776,name:\"Injective\",nativeCurrency:{decimals:18,name:\"Injective\",symbol:\"INJ\"},rpcUrls:{default:{http:[\"https://sentry.evm-rpc.injective.network\"],webSocket:[\"wss://sentry.evm-ws.injective.network\"]}},blockExplorers:{default:{name:\"Injective Explorer\",url:\"https://blockscout.injective.network\",apiUrl:\"https://blockscout.injective.network/api\"}},testnet:!1})});var e3e,t3e=x(()=>{c();_();e3e=g({id:1439,name:\"Injective Testnet\",nativeCurrency:{decimals:18,name:\"Injective\",symbol:\"INJ\"},rpcUrls:{default:{http:[\"https://k8s.testnet.json-rpc.injective.network\"],webSocket:[\"wss://k8s.testnet.ws.injective.network\"]}},blockExplorers:{default:{name:\"Injective Explorer\",url:\"https://testnet.blockscout.injective.network\",apiUrl:\"https://testnet.blockscout.injective.network/api\"}},testnet:!0})});var eR,r3e,n3e=x(()=>{c();it();_();eR=1,r3e=g({...de,id:57073,name:\"Ink\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-gel.inkonchain.com\",\"https://rpc-qnd.inkonchain.com\"],webSocket:[\"wss://rpc-gel.inkonchain.com\",\"wss://rpc-qnd.inkonchain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.inkonchain.com\",apiUrl:\"https://explorer.inkonchain.com/api/v2\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},...de.contracts,disputeGameFactory:{[eR]:{address:\"0x10d7b35078d3baabb96dd45a9143b94be65b12cd\"}},portal:{[eR]:{address:\"0x5d66c1782664115999c47c9fa5cd031f495d3e4f\"}},l1StandardBridge:{[eR]:{address:\"0x88ff1e5b602916615391f55854588efcbb7663f0\"}}},testnet:!1,sourceId:eR})});var tR,o3e,a3e=x(()=>{c();it();_();tR=11155111,o3e=g({...de,id:763373,name:\"Ink Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-gel-sepolia.inkonchain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer-sepolia.inkonchain.com/\",apiUrl:\"https://explorer-sepolia.inkonchain.com/api/v2\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},disputeGameFactory:{[tR]:{address:\"0x860e626c700af381133d9f4af31412a2d1db3d5d\"}},portal:{[tR]:{address:\"0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7\"}},l1StandardBridge:{[tR]:{address:\"0x33f60714bbd74d62b66d79213c348614de51901c\"}}},testnet:!0,sourceId:tR})});var i3e,s3e=x(()=>{c();_();i3e=g({id:8822,name:\"IOTA EVM\",network:\"iotaevm\",nativeCurrency:{decimals:18,name:\"IOTA\",symbol:\"IOTA\"},rpcUrls:{default:{http:[\"https://json-rpc.evm.iotaledger.net\"],webSocket:[\"wss://ws.json-rpc.evm.iotaledger.net\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.evm.iota.org\",apiUrl:\"https://explorer.evm.iota.org/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:25022}}})});var c3e,u3e=x(()=>{c();_();c3e=g({id:1075,name:\"IOTA EVM Testnet\",network:\"iotaevm-testnet\",nativeCurrency:{decimals:18,name:\"IOTA\",symbol:\"IOTA\"},rpcUrls:{default:{http:[\"https://json-rpc.evm.testnet.iotaledger.net\"],webSocket:[\"wss://ws.json-rpc.evm.testnet.iotaledger.net\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.evm.testnet.iotaledger.net\",apiUrl:\"https://explorer.evm.testnet.iotaledger.net/api\"}},testnet:!0})});var l3e,f3e=x(()=>{c();_();l3e=g({id:4689,name:\"IoTeX\",nativeCurrency:{decimals:18,name:\"IoTeX\",symbol:\"IOTX\"},rpcUrls:{default:{http:[\"https://babel-api.mainnet.iotex.io\"],webSocket:[\"wss://babel-api.mainnet.iotex.io\"]}},blockExplorers:{default:{name:\"IoTeXScan\",url:\"https://iotexscan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:22163670}}})});var d3e,p3e=x(()=>{c();_();d3e=g({id:4690,name:\"IoTeX Testnet\",nativeCurrency:{decimals:18,name:\"IoTeX\",symbol:\"IOTX\"},rpcUrls:{default:{http:[\"https://babel-api.testnet.iotex.io\"],webSocket:[\"wss://babel-api.testnet.iotex.io\"]}},blockExplorers:{default:{name:\"IoTeXScan\",url:\"https://testnet.iotexscan.io\"}},contracts:{multicall3:{address:\"0xb5cecD6894c6f473Ec726A176f1512399A2e355d\",blockCreated:24347592}},testnet:!0})});var m3e,h3e=x(()=>{c();_();m3e=g({id:8017,name:\"iSunCoin Mainnet\",nativeCurrency:{decimals:18,name:\"ISC\",symbol:\"ISC\"},rpcUrls:{default:{http:[\"https://mainnet.isuncoin.com\"]}},blockExplorers:{default:{name:\"iSunCoin Explorer\",url:\"https://baifa.io/app/chains/8017\"}}})});var y3e,b3e=x(()=>{c();_();y3e=g({id:680,name:\"Jasmy Chain\",network:\"jasmyChain\",nativeCurrency:{name:\"JasmyCoin\",symbol:\"JASMY\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.jasmychain.io\"],webSocket:[\"wss://rpc.jasmychain.io\"]}},testnet:!1})});var g3e,x3e=x(()=>{c();_();g3e=g({id:681,name:\"Jasmy Chain Testnet\",network:\"jasmyChainTestnet\",nativeCurrency:{name:\"JasmyCoin\",symbol:\"JASMY\",decimals:18},rpcUrls:{default:{http:[\"https://rpc_testnet.jasmychain.io\"],webSocket:[\"wss://rpc_testnet.jasmychain.io\"]}},testnet:!0})});var v3e,w3e=x(()=>{c();_();v3e=g({id:8899,name:\"JB Chain\",network:\"jbc\",nativeCurrency:{name:\"JBC\",symbol:\"JBC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-l1.jibchain.net\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://exp-l1.jibchain.net\",apiUrl:\"https://exp-l1.jibchain.net/api\"}},contracts:{multicall3:{address:\"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC\",blockCreated:2299048}},testnet:!1})});var E3e,A3e=x(()=>{c();_();E3e=g({id:88991,name:\"Jibchain Testnet\",nativeCurrency:{name:\"tJBC\",symbol:\"tJBC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.jibchain.net\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://exp.testnet.jibchain.net\",apiUrl:\"https://exp.testnet.jibchain.net/api\"}},contracts:{multicall3:{address:\"0xa1a858ad9041B4741e620355a3F96B3c78e70ecE\",blockCreated:32848}},testnet:!0})});var S3e,C3e=x(()=>{c();_();S3e=g({id:81,name:\"Japan Open Chain Mainnet\",nativeCurrency:{decimals:18,name:\"Japan Open Chain Token\",symbol:\"JOC\"},rpcUrls:{default:{http:[\"https://rpc-1.japanopenchain.org:8545\",\"https://rpc-2.japanopenchain.org:8545\",\"https://rpc-3.japanopenchain.org\"]}},blockExplorers:{default:{name:\"Block Explorer\",url:\"https://explorer.japanopenchain.org\"}},testnet:!1})});var T3e,_3e=x(()=>{c();_();T3e=g({id:10081,name:\"Japan Open Chain Testnet\",nativeCurrency:{decimals:18,name:\"Japan Open Chain Testnet Token\",symbol:\"JOCT\"},rpcUrls:{default:{http:[\"https://rpc-1.testnet.japanopenchain.org:8545\",\"https://rpc-2.testnet.japanopenchain.org:8545\",\"https://rpc-3.testnet.japanopenchain.org\"]}},blockExplorers:{default:{name:\"Testnet Block Explorer\",url:\"https://explorer.testnet.japanopenchain.org\"}},testnet:!0})});var k3e,B3e=x(()=>{c();_();k3e=g({id:5734951,name:\"Jovay Mainnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.jovay.io\"]}},blockExplorers:{default:{name:\"Jovay Explorer\",url:\"https://explorer.jovay.io/l2\"}},testnet:!1})});var I3e,P3e=x(()=>{c();_();I3e=g({id:2019775,name:\"Jovay Sepolia Testnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://api.zan.top/public/jovay-testnet\"]}},blockExplorers:{default:{name:\"Jovay Testnet Explorer\",url:\"https://sepolia-explorer.jovay.io/l2\"}},testnet:!0})});var R3e,M3e=x(()=>{c();_();R3e=g({id:45003,name:\"Juneo JUNE-Chain\",nativeCurrency:{decimals:18,name:\"JUNE-Chain\",symbol:\"JUNE\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/JUNE/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/2\",apiUrl:\"https://juneoscan.io/chain/2/api\"}}})});var O3e,N3e=x(()=>{c();_();O3e=g({id:45013,name:\"Juneo BCH1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo BCH1-Chain\",symbol:\"BCH1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/BCH1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/12\",apiUrl:\"https://juneoscan.io/chain/12/api\"}}})});var U3e,D3e=x(()=>{c();_();U3e=g({id:45004,name:\"Juneo DAI1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo DAI1-Chain\",symbol:\"DAI1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/DAI1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/5\",apiUrl:\"https://juneoscan.io/chain/5/api\"}}})});var H3e,L3e=x(()=>{c();_();H3e=g({id:45010,name:\"Juneo DOGE1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo DOGE1-Chain\",symbol:\"DOGE1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/DOGE1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/10\",apiUrl:\"https://juneoscan.io/chain/10/api\"}}})});var z3e,F3e=x(()=>{c();_();z3e=g({id:45011,name:\"Juneo EUR1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo EUR1-Chain\",symbol:\"EUR1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/EUR1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/6\",apiUrl:\"https://juneoscan.io/chain/6/api\"}}})});var j3e,q3e=x(()=>{c();_();j3e=g({id:45008,name:\"Juneo GLD1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo GLD1-Chain\",symbol:\"GLD1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/GLD1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/8\",apiUrl:\"https://juneoscan.io/chain/8/api\"}}})});var $3e,G3e=x(()=>{c();_();$3e=g({id:45014,name:\"Juneo LINK1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo LINK1-Chain\",symbol:\"LINK1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/LINK1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/13\",apiUrl:\"https://juneoscan.io/chain/13/api\"}}})});var V3e,K3e=x(()=>{c();_();V3e=g({id:45009,name:\"Juneo LTC1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo LTC1-Chain\",symbol:\"LTC1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/LTC1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/11\",apiUrl:\"https://juneoscan.io/chain/11/api\"}}})});var W3e,Q3e=x(()=>{c();_();W3e=g({id:45007,name:\"Juneo mBTC1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo mBTC1-Chain\",symbol:\"mBTC1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/mBTC1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/9\",apiUrl:\"https://juneoscan.io/chain/9/api\"}}})});var Z3e,J3e=x(()=>{c();_();Z3e=g({id:45012,name:\"Juneo SGD1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo SGD1-Chain\",symbol:\"SGD1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/SGD1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/7\",apiUrl:\"https://juneoscan.io/chain/7/api\"}}})});var Y3e,X3e=x(()=>{c();_();Y3e=g({id:101003,name:\"Socotra JUNE-Chain\",nativeCurrency:{decimals:18,name:\"Socotra JUNE-Chain\",symbol:\"JUNE\"},rpcUrls:{default:{http:[\"https://rpc.socotra-testnet.network/ext/bc/JUNE/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://socotra.juneoscan.io/chain/2\",apiUrl:\"https://socotra.juneoscan.io/chain/2/api\"}},testnet:!0})});var e8e,t8e=x(()=>{c();_();e8e=g({id:45006,name:\"Juneo USD1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo USD1-Chain\",symbol:\"USD1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/USD1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/4\",apiUrl:\"https://juneoscan.io/chain/4/api\"}}})});var r8e,n8e=x(()=>{c();_();r8e=g({id:45005,name:\"Juneo USDT1-Chain\",nativeCurrency:{decimals:18,name:\"Juneo USDT1-Chain\",symbol:\"USDT1\"},rpcUrls:{default:{http:[\"https://rpc.juneo-mainnet.network/ext/bc/USDT1/rpc\"]}},blockExplorers:{default:{name:\"Juneo Scan\",url:\"https://juneoscan.io/chain/3\",apiUrl:\"https://juneoscan.io/chain/3/api\"}}})});var o8e,a8e=x(()=>{c();_();o8e=g({id:8217,name:\"Kaia\",nativeCurrency:{decimals:18,name:\"Kaia\",symbol:\"KAIA\"},rpcUrls:{default:{http:[\"https://public-en.node.kaia.io\"]}},blockExplorers:{default:{name:\"KaiaScan\",url:\"https://kaiascan.io\",apiUrl:\"https://api-cypress.klaytnscope.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:96002415}}})});var i8e,s8e=x(()=>{c();_();i8e=g({id:1001,name:\"Kairos Testnet\",network:\"kairos\",nativeCurrency:{decimals:18,name:\"Kairos KAIA\",symbol:\"KAIA\"},rpcUrls:{default:{http:[\"https://public-en-kairos.node.kaia.io\"]}},blockExplorers:{default:{name:\"KaiaScan\",url:\"https://kairos.kaiascan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:123390593}},testnet:!0})});var c8e,u8e=x(()=>{c();_();c8e=g({id:1802203764,name:\"Kakarot Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia-rpc.kakarot.org\"]}},blockExplorers:{default:{name:\"Kakarot Scan\",url:\"https://sepolia.kakarotscan.org\"}},testnet:!0})});var l8e,f8e=x(()=>{c();_();l8e=g({id:920637907288165,name:\"Kakarot Starknet Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia-rpc.kakarot.org\"]}},blockExplorers:{default:{name:\"Kakarot Scan\",url:\"https://sepolia.kakarotscan.org\"}},testnet:!0})});var d8e,p8e=x(()=>{c();_();d8e=g({id:24,name:\"KardiaChain Mainnet\",nativeCurrency:{name:\"KAI\",symbol:\"KAI\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.kardiachain.io\"]}},blockExplorers:{default:{name:\"KardiaChain Explorer\",url:\"https://explorer.kardiachain.io\"}},testnet:!1})});var m8e,h8e=x(()=>{c();_();m8e=g({id:686,name:\"Karura\",network:\"karura\",nativeCurrency:{name:\"Karura\",symbol:\"KAR\",decimals:18},rpcUrls:{default:{http:[\"https://eth-rpc-karura.aca-api.network\"],webSocket:[\"wss://eth-rpc-karura.aca-api.network\"]}},blockExplorers:{default:{name:\"Karura Blockscout\",url:\"https://blockscout.karura.network\",apiUrl:\"https://blockscout.karura.network/api\"}},testnet:!1})});var y8e,b8e=x(()=>{c();_();y8e=g({id:747474,name:\"Katana\",network:\"katana\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.katana.network\"]}},blockExplorers:{default:{name:\"katana explorer\",url:\"https://katanascan.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},testnet:!1})});var g8e,x8e=x(()=>{c();_();g8e=g({id:2222,name:\"Kava EVM\",network:\"kava-mainnet\",nativeCurrency:{name:\"Kava\",symbol:\"KAVA\",decimals:18},rpcUrls:{default:{http:[\"https://evm.kava.io\"]}},blockExplorers:{default:{name:\"Kava EVM Explorer\",url:\"https://kavascan.com\",apiUrl:\"https://kavascan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:3661165}},testnet:!1})});var v8e,w8e=x(()=>{c();_();v8e=g({id:2221,name:\"Kava EVM Testnet\",network:\"kava-testnet\",nativeCurrency:{name:\"Kava\",symbol:\"KAVA\",decimals:18},rpcUrls:{default:{http:[\"https://evm.testnet.kava.io\"]}},blockExplorers:{default:{name:\"Kava EVM Testnet Explorer\",url:\"https://testnet.kavascan.com/\",apiUrl:\"https://testnet.kavascan.com/api\"}},contracts:{multicall3:{address:\"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6\",blockCreated:7242179}},testnet:!0})});var E8e,A8e=x(()=>{c();_();E8e=g({id:321,name:\"KCC Mainnet\",network:\"KCC Mainnet\",nativeCurrency:{decimals:18,name:\"KCS\",symbol:\"KCS\"},rpcUrls:{default:{http:[\"https://kcc-rpc.com\"]}},blockExplorers:{default:{name:\"KCC Explorer\",url:\"https://explorer.kcc.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:11760430}},testnet:!1})});var S8e,C8e=x(()=>{c();_();S8e=g({id:1783,name:\"KiiChain\",network:\"kii-chain\",nativeCurrency:{name:\"Kii\",symbol:\"KII\",decimals:18},rpcUrls:{default:{http:[\"https://json-rpc.kiivalidator.com\"]}},blockExplorers:{default:{name:\"KiiExplorer\",url:\"https://explorer.kiichain.io\"}}})});var T8e,_8e=x(()=>{c();_();T8e=g({id:1336,name:\"Kii Testnet Oro\",network:\"kii-testnet-oro\",nativeCurrency:{name:\"Kii\",symbol:\"KII\",decimals:18},rpcUrls:{default:{http:[\"https://json-rpc.uno.sentry.testnet.v3.kiivalidator.com\"]}},blockExplorers:{default:{name:\"KiiExplorer\",url:\"https://testnet.explorer.kiichain.io\"}},testnet:!0})});var k8e,B8e=x(()=>{c();_();k8e=g({id:7887,name:\"Kinto Mainnet\",network:\"Kinto Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.kinto.xyz/http\"]}},blockExplorers:{default:{name:\"Kinto Explorer\",url:\"https://explorer.kinto.xyz\"}},testnet:!1})});var I8e,P8e=x(()=>{c();_();I8e=g({id:8217,name:\"Klaytn\",nativeCurrency:{decimals:18,name:\"Klaytn\",symbol:\"KLAY\"},rpcUrls:{default:{http:[\"https://public-en-cypress.klaytn.net\"]}},blockExplorers:{default:{name:\"KlaytnScope\",url:\"https://scope.klaytn.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:96002415}}})});var R8e,M8e=x(()=>{c();_();R8e=g({id:1001,name:\"Klaytn Baobab Testnet\",network:\"klaytn-baobab\",nativeCurrency:{decimals:18,name:\"Baobab Klaytn\",symbol:\"KLAY\"},rpcUrls:{default:{http:[\"https://public-en-baobab.klaytn.net\"]}},blockExplorers:{default:{name:\"KlaytnScope\",url:\"https://baobab.klaytnscope.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:123390593}},testnet:!0})});var O8e,N8e=x(()=>{c();_();O8e=g({id:701,name:\"Koi Network\",nativeCurrency:{decimals:18,name:\"Koi Network Native Token\",symbol:\"KRING\"},rpcUrls:{default:{http:[\"https://koi-rpc.darwinia.network\"],webSocket:[\"wss://koi-rpc.darwinia.network\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://koi-scan.darwinia.network\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:180001}},testnet:!0})});var U8e,D8e=x(()=>{c();_();U8e=g({id:255,name:\"Kroma\",nativeCurrency:{name:\"ETH\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://api.kroma.network\"]}},blockExplorers:{default:{name:\"Kroma Explorer\",url:\"https://blockscout.kroma.network\",apiUrl:\"https://blockscout.kroma.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:16054868}},testnet:!1})});var H8e,L8e=x(()=>{c();_();H8e=g({id:2358,name:\"Kroma Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://api.sepolia.kroma.network\"]}},blockExplorers:{default:{name:\"Kroma Sepolia Explorer\",url:\"https://blockscout.sepolia.kroma.network\",apiUrl:\"https://blockscout.sepolia.kroma.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:8900914}},testnet:!0})});var z8e,F8e=x(()=>{c();_();z8e=g({id:1983,name:\"Krown\",nativeCurrency:{decimals:18,name:\"Krown\",symbol:\"KROWN\"},rpcUrls:{default:{http:[\"https://mainnet.krown.network\"]}},blockExplorers:{default:{name:\"Krown Explorer\",url:\"https://explorer.krown.network\"}},testnet:!1})});var j8e,q8e=x(()=>{c();_();j8e=g({id:12324,name:\"L3X Protocol\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-mainnet.l3x.com\"],webSocket:[\"wss://rpc-mainnet.l3x.com\"]}},blockExplorers:{default:{name:\"L3X Mainnet Explorer\",url:\"https://explorer.l3x.com\",apiUrl:\"https://explorer.l3x.com/api/v2\"}},testnet:!1})});var $8e,G8e=x(()=>{c();_();$8e=g({id:12325,name:\"L3X Protocol Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet.l3x.com\"],webSocket:[\"wss://rpc-testnet.l3x.com\"]}},blockExplorers:{default:{name:\"L3X Testnet Explorer\",url:\"https://explorer-testnet.l3x.com\",apiUrl:\"https://explorer-testnet.l3x.com/api/v2\"}},testnet:!0})});var V8e,K8e=x(()=>{c();_();V8e=g({id:360890,name:\"LAVITA Mainnet\",nativeCurrency:{name:\"vTFUEL\",symbol:\"vTFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://tsub360890-eth-rpc.thetatoken.org/rpc\"]}},blockExplorers:{default:{name:\"LAVITA Explorer\",url:\"https://tsub360890-explorer.thetatoken.org\"}},testnet:!1})});var W8e,Q8e=x(()=>{c();_();W8e=g({id:232,name:\"Lens\",nativeCurrency:{name:\"GHO\",symbol:\"GHO\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.lens.xyz\"]}},blockExplorers:{default:{name:\"Lens Block Explorer\",url:\"https://explorer.lens.xyz\",apiUrl:\"https://explorer.lens.xyz/api\"}}})});var Z8e,J8e=x(()=>{c();_();Z8e=g({id:37111,name:\"Lens Testnet\",nativeCurrency:{name:\"GRASS\",symbol:\"GRASS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.lens.dev\"],webSocket:[\"wss://rpc.testnet.lens.dev/ws\"]}},blockExplorers:{default:{name:\"Lens Block Explorer\",url:\"https://block-explorer.testnet.lens.dev\",apiUrl:\"https://block-explorer-api.staging.lens.dev/api\"}},testnet:!0})});var Y8e,X8e=x(()=>{c();_();Y8e=g({id:21363,name:\"Lestnet\",nativeCurrency:{name:\"Lestnet Ether\",symbol:\"LETH\",decimals:18},rpcUrls:{default:{http:[\"https://service.lestnet.org\"]}},blockExplorers:{default:{name:\"Lestnet Explorer\",url:\"https://explore.lestnet.org\"}},testnet:!0})});var eAe,tAe=x(()=>{c();_();eAe=g({id:1891,name:\"LightLink Pegasus Testnet\",network:\"lightlink-pegasus\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://replicator.pegasus.lightlink.io/rpc/v1\"]}},blockExplorers:{default:{name:\"LightLink Pegasus Explorer\",url:\"https://pegasus.lightlink.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:127188532}},testnet:!0})});var rAe,nAe=x(()=>{c();_();rAe=g({id:1890,name:\"LightLink Phoenix Mainnet\",network:\"lightlink-phoenix\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://replicator.phoenix.lightlink.io/rpc/v1\"]}},blockExplorers:{default:{name:\"LightLink Phoenix Explorer\",url:\"https://phoenix.lightlink.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:125499184}},testnet:!1})});async function oAe(e,t){let{account:r=e.account}=t;if(!r)throw new On;let n=Xe(r);try{let{accessList:o,blockNumber:s,blockTag:u,data:f,gas:d,gasPrice:m,maxFeePerGas:h,maxPriorityFeePerGas:y,nonce:v,to:E,value:C,...B}=t,M=(typeof s==\"bigint\"?le(s):void 0)||u;Vo(t);let U=e.chain?.formatters?.transactionRequest?.format,N=(U||ko)({...Ns(B,{format:U}),account:n,accessList:o,data:f,gas:d,gasPrice:m,maxFeePerGas:h,maxPriorityFeePerGas:y,nonce:v,to:E,value:C},\"estimateGas\"),{baseFeePerGas:j,gasLimit:K,priorityFeePerGas:G}=await e.request({method:\"linea_estimateGas\",params:M?[N,M]:[N]});return{baseFeePerGas:BigInt(j),gasLimit:BigInt(K),priorityFeePerGas:BigInt(G)}}catch(o){throw ww(o,{...t,account:n,chain:e.chain})}}var aAe=x(()=>{c();Yr();Pc();tt();fI();_0();Us();Cl()});async function iAe({client:e,multiply:t,request:r,type:n}){try{let o=await oAe(e,{...r,account:r?.account}),{priorityFeePerGas:s}=o,f=t(BigInt(o.baseFeePerGas))+s;return n===\"legacy\"?{gasPrice:f}:{maxFeePerGas:f,maxPriorityFeePerGas:s}}catch{return null}}var Zw,rR=x(()=>{c();aAe();Zw={fees:{estimateFeesPerGas:iAe,async maxPriorityFeePerGas({block:e,client:t,request:r}){let n=await iAe({block:e,client:t,multiply:o=>o,request:r,type:\"eip1559\"});return n?.maxPriorityFeePerGas?n.maxPriorityFeePerGas:null}}}});var sAe,cAe=x(()=>{c();rR();_();sAe=g({...Zw,id:59144,name:\"Linea Mainnet\",blockTime:2e3,nativeCurrency:{name:\"Linea Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.linea.build\"],webSocket:[\"wss://rpc.linea.build\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://lineascan.build\",apiUrl:\"https://api.lineascan.build/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:42},ensRegistry:{address:\"0x50130b669B28C339991d8676FA73CF122a121267\",blockCreated:6682888},ensUniversalResolver:{address:\"0x4D41762915F83c76EcaF6776d9b08076aA32b492\",blockCreated:22222151}},ensTlds:[\".linea.eth\"],testnet:!1})});var uAe,lAe=x(()=>{c();_();uAe=g({id:59140,name:\"Linea Goerli Testnet\",nativeCurrency:{name:\"Linea Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.goerli.linea.build\"],webSocket:[\"wss://rpc.goerli.linea.build\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli.lineascan.build\",apiUrl:\"https://api-goerli.lineascan.build/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:498623}},testnet:!0})});var fAe,dAe=x(()=>{c();rR();_();fAe=g({...Zw,id:59141,name:\"Linea Sepolia Testnet\",nativeCurrency:{name:\"Linea Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.sepolia.linea.build\"],webSocket:[\"wss://rpc.sepolia.linea.build\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://sepolia.lineascan.build\",apiUrl:\"https://api-sepolia.lineascan.build/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:227427},ensRegistry:{address:\"0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7\",blockCreated:2395094},ensUniversalResolver:{address:\"0x4D41762915F83c76EcaF6776d9b08076aA32b492\",blockCreated:17168484}},ensTlds:[\".linea.eth\"],testnet:!0})});var pAe,mAe=x(()=>{c();_();pAe=g({id:59140,name:\"Linea Goerli Testnet\",nativeCurrency:{name:\"Linea Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.goerli.linea.build\"],webSocket:[\"wss://rpc.goerli.linea.build\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli.lineascan.build\",apiUrl:\"https://goerli.lineascan.build/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:498623}},testnet:!0})});var hC,hAe,yAe=x(()=>{c();it();_();hC=1,hAe=g({...de,id:1135,name:\"Lisk\",network:\"lisk\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.api.lisk.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout.lisk.com\",apiUrl:\"https://blockscout.lisk.com/api\"}},contracts:{...de.contracts,disputeGameFactory:{[hC]:{address:\"0x0CF7D3706a27CCE2017aEB11E8a9c8b5388c282C\"}},multicall3:{address:\"0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0\"},l2OutputOracle:{[hC]:{address:\"0x113cB99283AF242Da0A0C54347667edF531Aa7d6\"}},portal:{[hC]:{address:\"0x26dB93F8b8b4f7016240af62F7730979d353f9A7\"}},l1StandardBridge:{[hC]:{address:\"0x2658723Bf70c7667De6B25F99fcce13A16D25d08\"}}},sourceId:hC})});var nR,bAe,gAe=x(()=>{c();it();_();nR=11155111,bAe=g({...de,id:4202,network:\"lisk-sepolia\",name:\"Lisk Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.sepolia-api.lisk.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://sepolia-blockscout.lisk.com\",apiUrl:\"https://sepolia-blockscout.lisk.com/api\"}},contracts:{...de.contracts,l2OutputOracle:{[nR]:{address:\"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[nR]:{address:\"0xe3d90F21490686Ec7eF37BE788E02dfC12787264\"}},l1StandardBridge:{[nR]:{address:\"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5\"}}},testnet:!0,sourceId:nR})});var xAe,vAe=x(()=>{c();_();xAe=g({id:9496,name:\"Load Alphanet\",nativeCurrency:{name:\"Testnet LOAD\",symbol:\"tLOAD\",decimals:18},rpcUrls:{default:{http:[\"https://alphanet.load.network\"]}},blockExplorers:{default:{name:\"Load Alphanet Explorer\",url:\"https://explorer.load.network\"}},testnet:!0})});var wAe,EAe=x(()=>{c();_();wAe=g({id:1337,name:\"Localhost\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"]}}})});var AAe,SAe=x(()=>{c();_();AAe=g({id:15551,name:\"LoopNetwork Mainnet\",nativeCurrency:{name:\"LOOP\",symbol:\"LOOP\",decimals:18},rpcUrls:{default:{http:[\"https://api.mainnetloop.com\"]}},blockExplorers:{default:{name:\"LoopNetwork Blockchain Explorer\",url:\"https://explorer.mainnetloop.com/\"}},testnet:!1})});var CAe,TAe=x(()=>{c();_();CAe=g({id:42,network:\"lukso\",name:\"LUKSO\",nativeCurrency:{name:\"LUKSO\",symbol:\"LYX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.lukso.network\"],webSocket:[\"wss://ws-rpc.mainnet.lukso.network\"]}},blockExplorers:{default:{name:\"LUKSO Mainnet Explorer\",url:\"https://explorer.execution.mainnet.lukso.network\",apiUrl:\"https://api.explorer.execution.mainnet.lukso.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:468183}}})});var _Ae,kAe=x(()=>{c();_();_Ae=g({id:4201,name:\"LUKSO Testnet\",nativeCurrency:{decimals:18,name:\"LUKSO Testnet\",symbol:\"LYXt\"},rpcUrls:{default:{http:[\"https://rpc.testnet.lukso.network\"],webSocket:[\"wss://ws-rpc.testnet.lukso.network\"]}},blockExplorers:{default:{name:\"LUKSO Testnet Explorer\",url:\"https://explorer.execution.testnet.lukso.network\",apiUrl:\"https://api.explorer.execution.testnet.lukso.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:605348}},testnet:!0})});var BAe,IAe=x(()=>{c();_();BAe=g({id:994873017,name:\"Lumia Mainnet\",network:\"LumiaMainnet\",nativeCurrency:{name:\"Lumia\",symbol:\"LUMIA\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet-rpc.lumia.org\"]}},blockExplorers:{default:{name:\"Lumia Explorer\",url:\"https://explorer.lumia.org/\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3975939}},testnet:!1})});var PAe,RAe=x(()=>{c();_();PAe=g({id:1952959480,name:\"Lumia Testnet\",network:\"LumiaTestnet\",nativeCurrency:{name:\"Lumia\",symbol:\"LUMIA\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.lumia.org\"]}},blockExplorers:{default:{name:\"Lumia Testnet Explorer\",url:\"https://testnet-explorer.lumia.org/\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2235063}},testnet:!0})});var MAe,OAe=x(()=>{c();_();MAe=g({id:96370,name:\"Lumoz\",nativeCurrency:{decimals:18,name:\"Lumoz Token\",symbol:\"MOZ\"},rpcUrls:{default:{http:[\"https://rpc.lumoz.org\"]}},blockExplorers:{default:{name:\"Lumoz Scan\",url:\"https://scan.lumoz.info\"}},testnet:!1})});var NAe,UAe=x(()=>{c();_();NAe=g({id:105363,name:\"Lumoz Testnet\",nativeCurrency:{decimals:18,name:\"Lumoz Testnet Token\",symbol:\"MOZ\"},rpcUrls:{default:{http:[\"https://testnet-rpc.lumoz.org\"]}},testnet:!0})});var DAe,HAe=x(()=>{c();_();DAe=g({id:1122,name:\"LuxePorts\",network:\"luxeports\",nativeCurrency:{name:\"LuxePorts\",symbol:\"LXP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.luxeports.com\",\"https://erpc.luxeports.com\"],webSocket:[\"wss://rpc.luxeports.com/ws\",\"wss://erpc.luxeports.com/ws\"]}},blockExplorers:{default:{name:\"LXPScan\",url:\"https://lxpscan.com\"}},testnet:!1})});var LAe,zAe=x(()=>{c();_();LAe=g({id:721,name:\"Lycan\",nativeCurrency:{decimals:18,name:\"Lycan\",symbol:\"LYC\"},rpcUrls:{default:{http:[\"https://rpc.lycanchain.com\",\"https://us-east.lycanchain.com\",\"https://us-west.lycanchain.com\",\"https://eu-north.lycanchain.com\",\"https://eu-west.lycanchain.com\",\"https://asia-southeast.lycanchain.com\"],webSocket:[\"wss://rpc.lycanchain.com\",\"wss://us-east.lycanchain.com\",\"wss://us-west.lycanchain.com\",\"wss://eu-north.lycanchain.com\",\"wss://eu-west.lycanchain.com\",\"wss://asia-southeast.lycanchain.com\"]}},blockExplorers:{default:{name:\"Lycan Explorer\",url:\"https://explorer.lycanchain.com\"}}})});var FAe,jAe=x(()=>{c();_();FAe=g({id:957,name:\"Lyra Chain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.lyra.finance\"]}},blockExplorers:{default:{name:\"Lyra Explorer\",url:\"https://explorer.lyra.finance\",apiUrl:\"https://explorer.lyra.finance/api/v2\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1935198}}})});var qAe,$Ae=x(()=>{c();_();qAe=g({id:1,name:\"Ethereum\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:12e3,rpcUrls:{default:{http:[\"https://eth.merkle.io\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://etherscan.io\",apiUrl:\"https://api.etherscan.io/api\"}},contracts:{ensUniversalResolver:{address:\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\",blockCreated:23085558},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14353601}}})});var GAe,VAe=x(()=>{c();_();GAe=g({id:595,name:\"Mandala TC9\",network:\"mandala\",nativeCurrency:{name:\"Mandala\",symbol:\"mACA\",decimals:18},rpcUrls:{default:{http:[\"https://eth-rpc-tc9.aca-staging.network\"],webSocket:[\"wss://eth-rpc-tc9.aca-staging.network\"]}},blockExplorers:{default:{name:\"Mandala Blockscout\",url:\"https://blockscout.mandala.aca-staging.network\",apiUrl:\"https://blockscout.mandala.aca-staging.network/api\"}},testnet:!0})});var KAe,WAe=x(()=>{c();_();KAe=g({id:169,name:\"Manta Pacific Mainnet\",network:\"manta\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://pacific-rpc.manta.network/http\"]}},blockExplorers:{default:{name:\"Manta Explorer\",url:\"https://pacific-explorer.manta.network\",apiUrl:\"https://pacific-explorer.manta.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:332890}}})});var QAe,ZAe=x(()=>{c();_();QAe=g({id:3441006,name:\"Manta Pacific Sepolia Testnet\",network:\"manta-sepolia\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://pacific-rpc.sepolia-testnet.manta.network/http\"]}},blockExplorers:{default:{name:\"Manta Sepolia Testnet Explorer\",url:\"https://pacific-explorer.sepolia-testnet.manta.network\",apiUrl:\"https://pacific-explorer.sepolia-testnet.manta.network/api\"}},contracts:{multicall3:{address:\"0xca54918f7B525C8df894668846506767412b53E3\",blockCreated:479584}},testnet:!0})});var JAe,YAe=x(()=>{c();_();JAe=g({id:3441005,name:\"Manta Pacific Testnet\",network:\"manta-testnet\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://manta-testnet.calderachain.xyz/http\"]}},blockExplorers:{default:{name:\"Manta Testnet Explorer\",url:\"https://pacific-explorer.testnet.manta.network\",apiUrl:\"https://pacific-explorer.testnet.manta.network/api\"}},contracts:{multicall3:{address:\"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C\",blockCreated:419915}},testnet:!0})});var XAe,eSe=x(()=>{c();_();XAe=g({id:5e3,name:\"Mantle\",nativeCurrency:{decimals:18,name:\"MNT\",symbol:\"MNT\"},rpcUrls:{default:{http:[\"https://rpc.mantle.xyz\"]}},blockExplorers:{default:{name:\"Mantle Explorer\",url:\"https://mantlescan.xyz/\",apiUrl:\"https://api.mantlescan.xyz/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:304717}}})});var tSe,rSe=x(()=>{c();_();tSe=g({id:5003,name:\"Mantle Sepolia Testnet\",nativeCurrency:{decimals:18,name:\"MNT\",symbol:\"MNT\"},rpcUrls:{default:{http:[\"https://rpc.sepolia.mantle.xyz\"]}},blockExplorers:{default:{name:\"Mantle Testnet Explorer\",url:\"https://explorer.sepolia.mantle.xyz/\",apiUrl:\"https://explorer.sepolia.mantle.xyz/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:4584012}},testnet:!0})});var nSe,oSe=x(()=>{c();_();nSe=g({id:5001,name:\"Mantle Testnet\",nativeCurrency:{decimals:18,name:\"MNT\",symbol:\"MNT\"},rpcUrls:{default:{http:[\"https://rpc.testnet.mantle.xyz\"]}},blockExplorers:{default:{name:\"Mantle Testnet Explorer\",url:\"https://explorer.testnet.mantle.xyz\",apiUrl:\"https://explorer.testnet.mantle.xyz/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:561333}},testnet:!0})});var aSe,iSe=x(()=>{c();_();aSe=g({id:5887,name:\"MANTRA DuKong EVM Testnet\",nativeCurrency:{decimals:18,name:\"MANTRA\",symbol:\"MANTRA\"},rpcUrls:{default:{http:[\"https://evm.dukong.mantrachain.io\"]}},blockExplorers:{default:{name:\"MANTRAScan\",url:\"https://mantrascan.io/dukong\"}},testnet:!0})});var sSe,cSe=x(()=>{c();_();sSe=g({id:5888,name:\"MANTRA EVM\",nativeCurrency:{decimals:18,name:\"MANTRA\",symbol:\"MANTRA\"},rpcUrls:{default:{http:[\"https://evm.mantrachain.io\"],webSocket:[\"https://evm.mantrachain.io/ws\"]}},blockExplorers:{default:{name:\"MANTRA Blockscout Explorer\",url:\"https://blockscout.mantrascan.io\"}}})});var uSe,lSe=x(()=>{c();_();uSe=g({id:22776,name:\"MAP Protocol\",nativeCurrency:{decimals:18,name:\"MAPO\",symbol:\"MAPO\"},rpcUrls:{default:{http:[\"https://rpc.maplabs.io\"]}},blockExplorers:{default:{name:\"MAPO Scan\",url:\"https://maposcan.io\"}},testnet:!1})});var fSe,dSe=x(()=>{c();_();fSe=g({id:698,name:\"Matchain\",nativeCurrency:{name:\"BNB\",symbol:\"BNB\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.matchain.io\"]}},blockExplorers:{default:{name:\"Matchain Scan\",url:\"https://matchscan.io\"}}})});var pSe,mSe=x(()=>{c();_();pSe=g({id:699,name:\"Matchain Testnet\",nativeCurrency:{name:\"BNB\",symbol:\"BNB\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.matchain.io\"]}},blockExplorers:{default:{name:\"Matchain Scan\",url:\"https://testnet.matchscan.io\"}},testnet:!0})});var hSe,ySe=x(()=>{c();_();hSe=g({id:29548,name:\"MCH Verse\",nativeCurrency:{name:\"Oasys\",symbol:\"OAS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.oasys.mycryptoheroes.net\"]}},blockExplorers:{default:{name:\"MCH Verse Explorer\",url:\"https://explorer.oasys.mycryptoheroes.net\",apiUrl:\"https://explorer.oasys.mycryptoheroes.net/api\"}},testnet:!1})});var oR,bSe,gSe=x(()=>{c();it();_();oR=1,bSe=g({...de,id:4326,blockTime:1e3,name:\"MegaETH\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.megaeth.com/rpc\"],webSocket:[\"wss://mainnet.megaeth.com/ws\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://mega.etherscan.io\",apiUrl:\"https://api.etherscan.io/v2/api\"},blockscout:{name:\"Blockscout\",url:\"https://megaeth.blockscout.com\",apiUrl:\"https://megaeth.blockscout.com/api\"}},contracts:{...de.contracts,disputeGameFactory:{[oR]:{address:\"0x8546840adF796875cD9AAcc5B3B048f6B2c9D563\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},portal:{[oR]:{address:\"0x7f82f57F0Dd546519324392e408b01fcC7D709e8\",blockCreated:21644285}},l1StandardBridge:{[oR]:{address:\"0x0CA3A2FBC3D770b578223FBB6b062fa875a2eE75\",blockCreated:21644285}}},sourceId:oR})});var xSe,vSe=x(()=>{c();_();xSe=g({id:6343,blockTime:1e3,name:\"MegaETH Testnet\",nativeCurrency:{name:\"MegaETH Testnet Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://carrot.megaeth.com/rpc\"],webSocket:[\"wss://carrot.megaeth.com/ws\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://testnet-mega.etherscan.io\",apiUrl:\"https://api.etherscan.io/v2/api\"},blockscout:{name:\"Blockscout\",url:\"https://megaeth-testnet-v2.blockscout.com\",apiUrl:\"https://megaeth-testnet-v2.blockscout.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},testnet:!0})});var wSe,ESe=x(()=>{c();_();wSe=g({id:7078815900,name:\"Mekong Pectra Devnet\",nativeCurrency:{name:\"eth\",symbol:\"eth\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mekong.ethpandaops.io\"]}},blockExplorers:{default:{name:\"Block Explorer\",url:\"https://explorer.mekong.ethpandaops.io\"}},testnet:!0})});var ASe,SSe=x(()=>{c();_();ASe=g({id:333000333,name:\"Meld\",nativeCurrency:{decimals:18,name:\"Meld\",symbol:\"MELD\"},rpcUrls:{default:{http:[\"https://rpc-1.meld.com\"]}},blockExplorers:{default:{name:\"MELDscan\",url:\"https://meldscan.io\"}},contracts:{multicall3:{address:\"0x769ee5a8e82c15c1b6e358f62ac8eb6e3abe8dc5\",blockCreated:360069}}})});var CSe,TSe=x(()=>{c();_();CSe=g({id:4352,name:\"MemeCore\",nativeCurrency:{decimals:18,name:\"M\",symbol:\"M\"},rpcUrls:{default:{http:[\"https://rpc.memecore.net\"],webSocket:[\"wss://ws.memecore.net\"]}},blockExplorers:{default:{name:\"MemeCore Explorer\",url:\"https://memecorescan.io\",apiUrl:\"https://api.memecorescan.io/api\"},okx:{name:\"MemeCore Explorer\",url:\"https://web3.okx.com/explorer/memecore\"},memecore:{name:\"MemeCore Explorer\",url:\"https://blockscout.memecore.com\",apiUrl:\"https://blockscout.memecore.com/api\"}}})});var _Se,kSe=x(()=>{c();_();_Se=g({id:43521,name:\"Formicarium\",nativeCurrency:{decimals:18,name:\"M\",symbol:\"M\"},rpcUrls:{default:{http:[\"https://rpc.formicarium.memecore.net\"],webSocket:[\"wss://ws.formicarium.memecore.net\"]}},blockExplorers:{default:{name:\"MemeCore Testnet Explorer\",url:\"https://formicarium.memecorescan.io\"},okx:{name:\"MemeCore Testnet Explorer\",url:\"https://web3.okx.com/explorer/formicarium-testnet\"},memecore:{name:\"MemeCore Testnet Explorer\",url:\"https://formicarium.blockscout.memecore.com\",apiUrl:\"https://formicarium.blockscout.memecore.com/api\"}},testnet:!0})});var BSe,ISe=x(()=>{c();_();BSe=g({id:4200,name:\"Merlin\",nativeCurrency:{name:\"BTC\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.merlinchain.io\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://scan.merlinchain.io\",apiUrl:\"https://scan.merlinchain.io/api\"}}})});var PSe,RSe=x(()=>{c();_();PSe=g({id:4203,name:\"Merlin Erigon Testnet\",nativeCurrency:{name:\"BTC\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-erigon-rpc.merlinchain.io\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://testnet-erigon-scan.merlinchain.io\",apiUrl:\"https://testnet-erigon-scan.merlinchain.io/api\"}},testnet:!0})});var MSe,OSe=x(()=>{c();_();MSe=g({id:571,name:\"MetaChain Mainnet\",nativeCurrency:{name:\"Metatime Coin\",symbol:\"MTC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.metatime.com\"]}},blockExplorers:{default:{name:\"MetaExplorer\",url:\"https://explorer.metatime.com\"}},contracts:{multicall3:{address:\"0x0000000000000000000000000000000000003001\",blockCreated:0}}})});var NSe,USe=x(()=>{c();_();NSe=g({id:1453,name:\"MetaChain Istanbul\",nativeCurrency:{name:\"Metatime Coin\",symbol:\"MTC\",decimals:18},rpcUrls:{default:{http:[\"https://istanbul-rpc.metachain.dev\"]}},blockExplorers:{default:{name:\"MetaExplorer\",url:\"https://istanbul-explorer.metachain.dev\"}},contracts:{multicall3:{address:\"0x0000000000000000000000000000000000003001\",blockCreated:0}},testnet:!0})});var DSe,HSe=x(()=>{c();_();DSe=g({id:11,name:\"Metadium Network\",nativeCurrency:{decimals:18,name:\"META\",symbol:\"META\"},rpcUrls:{default:{http:[\"https://api.metadium.com/prod\"]}},blockExplorers:{default:{name:\"Metadium Explorer\",url:\"https://explorer.metadium.com\"}},testnet:!1})});var aR,LSe,zSe=x(()=>{c();it();_();aR=1,LSe=g({...de,id:1750,name:\"Metal L2\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.metall2.com\"],webSocket:[\"wss://rpc.metall2.com\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.metall2.com\",apiUrl:\"https://explorer.metall2.com/api\"}},contracts:{...de.contracts,l2OutputOracle:{[aR]:{address:\"0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},portal:{[aR]:{address:\"0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956\"}},l1StandardBridge:{[aR]:{address:\"0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3\"}}},sourceId:aR})});var FSe,jSe=x(()=>{c();_();FSe=g({id:82,name:\"Meter\",nativeCurrency:{decimals:18,name:\"MTR\",symbol:\"MTR\"},rpcUrls:{default:{http:[\"https://rpc.meter.io\"]}},blockExplorers:{default:{name:\"MeterScan\",url:\"https://scan.meter.io\"}}})});var qSe,$Se=x(()=>{c();_();qSe=g({id:83,name:\"Meter Testnet\",nativeCurrency:{decimals:18,name:\"MTR\",symbol:\"MTR\"},rpcUrls:{default:{http:[\"https://rpctest.meter.io\"]}},blockExplorers:{default:{name:\"MeterTestnetScan\",url:\"https://scan-warringstakes.meter.io\"}},testnet:!0})});var GSe,VSe=x(()=>{c();_();GSe=g({id:1088,name:\"Metis\",nativeCurrency:{decimals:18,name:\"Metis\",symbol:\"METIS\"},rpcUrls:{default:{http:[\"https://metis.rpc.hypersync.xyz\",\"https://metis-pokt.nodies.app\",\"https://api.blockeden.xyz/metis/67nCBdZQSH9z3YqDDjdm\",\"https://metis-andromeda.rpc.thirdweb.com\",\"https://metis-andromeda.gateway.tenderly.co\",\"https://metis.api.onfinality.io/public\",\"https://andromeda.metis.io/?owner=1088\",\"https://metis-mainnet.public.blastapi.io\"],webSocket:[\"wss://metis-rpc.publicnode.com\",\"wss://metis.drpc.org\"]}},blockExplorers:{default:{name:\"Metis Explorer\",url:\"https://explorer.metis.io\",apiUrl:\"https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:2338552}}})});var KSe,WSe=x(()=>{c();_();KSe=g({id:599,name:\"Metis Goerli\",nativeCurrency:{decimals:18,name:\"Metis Goerli\",symbol:\"METIS\"},rpcUrls:{default:{http:[\"https://goerli.gateway.metisdevops.link\"]}},blockExplorers:{default:{name:\"Metis Goerli Explorer\",url:\"https://goerli.explorer.metisdevops.link\",apiUrl:\"https://goerli.explorer.metisdevops.link/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1006207}},testnet:!0})});var QSe,ZSe=x(()=>{c();_();QSe=g({id:59902,name:\"Metis Sepolia\",nativeCurrency:{decimals:18,name:\"Test Metis\",symbol:\"tMETIS\"},rpcUrls:{default:{http:[\"https://sepolia.metisdevops.link\",\"https://metis-sepolia-rpc.publicnode.com\",\"https://metis-sepolia.gateway.tenderly.co\"],webSocket:[\"wss://metis-sepolia-rpc.publicnode.com\"]}},blockExplorers:{default:{name:\"Metis Sepolia Explorer\",url:\"https://sepolia-explorer.metisdevops.link\",apiUrl:\"https://sepolia-explorer.metisdevops.link/api-docs\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:224185}},testnet:!0})});var JSe,YSe=x(()=>{c();_();JSe=g({id:7518,name:\"MEVerse Chain Mainnet\",nativeCurrency:{decimals:18,name:\"MEVerse\",symbol:\"MEV\"},rpcUrls:{default:{http:[\"https://rpc.meversemainnet.io\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://www.meversescan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:86881340}}})});var XSe,eCe=x(()=>{c();_();XSe=g({id:4759,name:\"MEVerse Chain Testnet\",nativeCurrency:{decimals:18,name:\"MEVerse\",symbol:\"MEV\"},rpcUrls:{default:{http:[\"https://rpc.meversetestnet.io\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://testnet.meversescan.io/\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:64371115}},testnet:!0})});var tCe,rCe=x(()=>{c();_();tCe=g({id:31612,name:\"Mezo\",nativeCurrency:{decimals:18,name:\"Bitcoin\",symbol:\"BTC\"},rpcUrls:{default:{http:[\"https://rpc.mezo.org\"]}},blockExplorers:{default:{name:\"Mezo Explorer\",url:\"https://explorer.mezo.org\"}}})});var nCe,oCe=x(()=>{c();_();nCe=g({id:31611,name:\"Mezo Testnet\",nativeCurrency:{decimals:18,name:\"Bitcoin\",symbol:\"BTC\"},rpcUrls:{default:{http:[\"https://rpc.test.mezo.org\"]}},blockExplorers:{default:{name:\"Mezo Testnet Explorer\",url:\"https://explorer.test.mezo.org\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3328573}},testnet:!0})});var aCe,iCe=x(()=>{c();_();aCe=g({id:185,name:\"Mint Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mintchain.io\"]}},blockExplorers:{default:{name:\"Mintchain explorer\",url:\"https://explorer.mintchain.io\"}},testnet:!1})});var sCe,cCe=x(()=>{c();_();sCe=g({id:1686,name:\"Mint Sepolia Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.mintchain.io\"]}},blockExplorers:{default:{name:\"Mintchain Testnet explorer\",url:\"https://testnet-explorer.mintchain.io\"}},testnet:!0})});var uCe,lCe=x(()=>{c();_();uCe=g({id:124832,name:\"Mitosis Testnet\",nativeCurrency:{name:\"MITO\",symbol:\"MITO\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.mitosis.org\"]}},blockExplorers:{default:{name:\"Mitosis testnet explorer\",url:\"https://testnet.mitosiscan.xyz\"}},testnet:!0})});var yC,fCe,dCe=x(()=>{c();it();_();yC=1,fCe=g({...de,id:34443,name:\"Mode Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.mode.network\"]}},blockExplorers:{default:{name:\"Modescan\",url:\"https://modescan.io\"}},contracts:{...de.contracts,disputeGameFactory:{[yC]:{address:\"0x6f13EFadABD9269D6cEAd22b448d434A1f1B433E\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:2465882},l2OutputOracle:{[yC]:{address:\"0x4317ba146D4933D889518a3e5E11Fe7a53199b04\"}},portal:{[yC]:{address:\"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07\"}},l1StandardBridge:{[yC]:{address:\"0x735aDBbE72226BD52e818E7181953f42E3b0FF21\"}}},sourceId:yC})});var iR,pCe,mCe=x(()=>{c();it();_();iR=11155111,pCe=g({...de,id:919,name:\"Mode Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.mode.network\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://sepolia.explorer.mode.network\",apiUrl:\"https://sepolia.explorer.mode.network/api\"}},contracts:{...de.contracts,l2OutputOracle:{[iR]:{address:\"0x2634BD65ba27AB63811c74A63118ACb312701Bfa\",blockCreated:3778393}},portal:{[iR]:{address:\"0x320e1580effF37E008F1C92700d1eBa47c1B23fD\",blockCreated:3778395}},l1StandardBridge:{[iR]:{address:\"0xbC5C679879B2965296756CD959C3C739769995E2\",blockCreated:3778392}},multicall3:{address:\"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF\",blockCreated:3019007}},testnet:!0,sourceId:iR})});var hCe,yCe=x(()=>{c();_();hCe=g({id:143,name:\"Monad\",blockTime:400,nativeCurrency:{name:\"Monad\",symbol:\"MON\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.monad.xyz\",\"https://rpc1.monad.xyz\"],webSocket:[\"wss://rpc.monad.xyz\",\"wss://rpc1.monad.xyz\"]}},blockExplorers:{default:{name:\"MonadVision\",url:\"https://monadvision.com\"},monadscan:{name:\"Monadscan\",url:\"https://monadscan.com\",apiUrl:\"https://api.monadscan.com/api\"}},testnet:!1,contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:9248132}}})});var bCe,gCe=x(()=>{c();_();bCe=g({id:10143,name:\"Monad Testnet\",blockTime:400,nativeCurrency:{name:\"Testnet MON Token\",symbol:\"MON\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.monad.xyz\"]}},blockExplorers:{default:{name:\"Monad Testnet explorer\",url:\"https://testnet.monadexplorer.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:251449}},testnet:!0})});var xCe,vCe=x(()=>{c();_();xCe=g({id:1287,name:\"Moonbase Alpha\",nativeCurrency:{decimals:18,name:\"DEV\",symbol:\"DEV\"},rpcUrls:{default:{http:[\"https://rpc.api.moonbase.moonbeam.network\"],webSocket:[\"wss://wss.api.moonbase.moonbeam.network\"]}},blockExplorers:{default:{name:\"Moonscan\",url:\"https://moonbase.moonscan.io\",apiUrl:\"https://moonbase.moonscan.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1850686}},testnet:!0})});var wCe,ECe=x(()=>{c();_();wCe=g({id:1284,name:\"Moonbeam\",nativeCurrency:{decimals:18,name:\"Moonbeam\",symbol:\"GLMR\"},rpcUrls:{default:{http:[\"https://rpc.api.moonbeam.network\"],webSocket:[\"wss://wss.api.moonbeam.network\"]}},blockExplorers:{default:{name:\"Moonscan\",url:\"https://moonscan.io\",apiUrl:\"https://api-moonbeam.moonscan.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:609002}},testnet:!1})});var ACe,SCe=x(()=>{c();_();ACe=g({id:1281,name:\"Moonbeam Development Node\",nativeCurrency:{decimals:18,name:\"DEV\",symbol:\"DEV\"},rpcUrls:{default:{http:[\"http://127.0.0.1:9944\"],webSocket:[\"wss://127.0.0.1:9944\"]}}})});var CCe,TCe=x(()=>{c();_();CCe=g({id:1285,name:\"Moonriver\",nativeCurrency:{decimals:18,name:\"Moonriver\",symbol:\"MOVR\"},rpcUrls:{default:{http:[\"https://rpc.api.moonriver.moonbeam.network\"],webSocket:[\"wss://wss.api.moonriver.moonbeam.network\"]}},blockExplorers:{default:{name:\"Moonscan\",url:\"https://moonriver.moonscan.io\",apiUrl:\"https://api-moonriver.moonscan.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1597904}},testnet:!1})});var _Ce,kCe=x(()=>{c();_();_Ce=g({id:2818,name:\"Morph\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.morphl2.io\"],webSocket:[\"wss://rpc.morphl2.io:8443\"]}},blockExplorers:{default:{name:\"Morph Explorer\",url:\"https://explorer.morphl2.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3654913}},testnet:!1})});var BCe,ICe=x(()=>{c();_();BCe=g({id:2810,name:\"Morph Holesky\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-quicknode-holesky.morphl2.io\"],webSocket:[\"wss://rpc-quicknode-holesky.morphl2.io\"]}},blockExplorers:{default:{name:\"Morph Holesky Explorer\",url:\"https://explorer-holesky.morphl2.io\",apiUrl:\"https://explorer-api-holesky.morphl2.io/api?\"}},testnet:!0})});var PCe,RCe=x(()=>{c();_();PCe=g({id:2710,name:\"Morph Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet.morphl2.io\"]}},blockExplorers:{default:{name:\"Morph Testnet Explorer\",url:\"https://explorer-testnet.morphl2.io\",apiUrl:\"https://explorer-api-testnet.morphl2.io/api\"}},testnet:!0})});var MCe,OCe=x(()=>{c();_();MCe=g({id:5551,name:\"Nahmii 2 Mainnet\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://l2.nahmii.io\"]}},blockExplorers:{default:{name:\"Nahmii 2 Explorer\",url:\"https://explorer.n2.nahmii.io\"}},testnet:!1})});var NCe,UCe=x(()=>{c();_();NCe=g({id:22222,name:\"Nautilus Mainnet\",nativeCurrency:{name:\"ZBC\",symbol:\"ZBC\",decimals:9},rpcUrls:{default:{http:[\"https://api.nautilus.nautchain.xyz\"]}},blockExplorers:{default:{name:\"NautScan\",url:\"https://nautscan.com\"}}})});var DCe,HCe=x(()=>{c();_();DCe=g({id:397,name:\"NEAR Protocol\",nativeCurrency:{decimals:18,name:\"NEAR\",symbol:\"NEAR\"},rpcUrls:{default:{http:[\"https://eth-rpc.mainnet.near.org\"]}},blockExplorers:{default:{name:\"NEAR Explorer\",url:\"https://eth-explorer.near.org\"}},testnet:!1})});var LCe,zCe=x(()=>{c();_();LCe=g({id:398,name:\"NEAR Protocol Testnet\",nativeCurrency:{decimals:18,name:\"NEAR\",symbol:\"NEAR\"},rpcUrls:{default:{http:[\"https://eth-rpc.testnet.near.org\"]}},blockExplorers:{default:{name:\"NEAR Explorer\",url:\"https://eth-explorer-testnet.near.org\"}},testnet:!0})});var FCe,jCe=x(()=>{c();_();FCe=g({id:245022926,name:\"Neon EVM DevNet\",nativeCurrency:{name:\"NEON\",symbol:\"NEON\",decimals:18},rpcUrls:{default:{http:[\"https://devnet.neonevm.org\"]}},blockExplorers:{default:{name:\"Neonscan\",url:\"https://devnet.neonscan.org\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:205206112}},testnet:!0})});var qCe,$Ce=x(()=>{c();_();qCe=g({id:245022934,network:\"neonMainnet\",name:\"Neon EVM MainNet\",nativeCurrency:{name:\"NEON\",symbol:\"NEON\",decimals:18},rpcUrls:{default:{http:[\"https://neon-proxy-mainnet.solana.p2p.org\"]}},blockExplorers:{default:{name:\"Neonscan\",url:\"https://neonscan.org\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:206545524}},testnet:!1})});var GCe,VCe=x(()=>{c();_();GCe=g({id:47763,name:\"Neo X Mainnet\",nativeCurrency:{name:\"Gas\",symbol:\"GAS\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet-1.rpc.banelabs.org\",\"https://mainnet-2.rpc.banelabs.org\"]}},blockExplorers:{default:{name:\"Neo X - Explorer\",url:\"https://xexplorer.neo.org\"}},testnet:!1})});var KCe,WCe=x(()=>{c();_();KCe=g({id:12227332,name:\"Neo X Testnet T4\",nativeCurrency:{name:\"Gas\",symbol:\"GAS\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.rpc.banelabs.org/\"]}},blockExplorers:{default:{name:\"neox-scan\",url:\"https://xt4scan.ngd.network\"}},testnet:!0})});var QCe,ZCe=x(()=>{c();_();QCe=g({id:1012,name:\"Newton\",nativeCurrency:{name:\"Newton\",symbol:\"NEW\",decimals:18},rpcUrls:{default:{http:[\"https://global.rpc.mainnet.newtonproject.org\"]}},blockExplorers:{default:{name:\"NewFi explorer\",url:\"https://explorer.newtonproject.org/\"}},testnet:!1})});var JCe,YCe=x(()=>{c();_();JCe=g({id:4242,name:\"Nexi\",nativeCurrency:{name:\"Nexi\",symbol:\"NEXI\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.chain.nexi.technology\"]}},blockExplorers:{default:{name:\"NexiScan\",url:\"https://www.nexiscan.com\",apiUrl:\"https://www.nexiscan.com/api\"}},contracts:{multicall3:{address:\"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E\",blockCreated:25770160}}})});var XCe,eTe=x(()=>{c();_();XCe=g({id:240,name:\"Nexilix Smart Chain\",nativeCurrency:{decimals:18,name:\"Nexilix\",symbol:\"NEXILIX\"},rpcUrls:{default:{http:[\"https://rpcurl.pos.nexilix.com\"]}},blockExplorers:{default:{name:\"NexilixScan\",url:\"https://scan.nexilix.com\"}},contracts:{multicall3:{address:\"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244\",blockCreated:74448}}})});var tTe,rTe=x(()=>{c();_();tTe=g({id:6900,name:\"Nibiru\",nativeCurrency:{decimals:18,name:\"NIBI\",symbol:\"NIBI\"},rpcUrls:{default:{http:[\"https://evm-rpc.nibiru.fi\"]}},blockExplorers:{default:{name:\"NibiScan\",url:\"https://nibiscan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:19587573}}})});var nTe,oTe=x(()=>{c();_();nTe=g({id:200024,name:\"Nitrograph Testnet\",testnet:!0,rpcUrls:{default:{http:[\"https://rpc-testnet.nitrograph.foundation\"]}},nativeCurrency:{name:\"Nitro\",symbol:\"NOS\",decimals:18},blockExplorers:{default:{url:\"https://explorer-testnet.nitrograph.foundation\",name:\"Nitrograph Explorer\"}}})});var aTe,iTe=x(()=>{c();_();aTe=g({id:166,name:\"Nomina\",nativeCurrency:{name:\"Nomina\",symbol:\"NOM\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.nomina.io\"],webSocket:[\"wss://mainnet.nomina.io\"]}},blockExplorers:{default:{name:\"Nomina Explorer\",url:\"https://nomscan.io\"}},testnet:!1})});var sTe,cTe=x(()=>{c();_();sTe=g({id:4090,network:\"oasis-testnet\",name:\"Oasis Testnet\",nativeCurrency:{name:\"Fasttoken\",symbol:\"FTN\",decimals:18},rpcUrls:{default:{http:[\"https://rpc1.oasis.bahamutchain.com\"]}},blockExplorers:{default:{name:\"Ftnscan\",url:\"https://oasis.ftnscan.com\",apiUrl:\"https://oasis.ftnscan.com/api\"}},testnet:!0})});var uTe,lTe=x(()=>{c();_();uTe=g({id:248,name:\"Oasys\",nativeCurrency:{name:\"Oasys\",symbol:\"OAS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.oasys.games\"]}},blockExplorers:{default:{name:\"OasysScan\",url:\"https://scan.oasys.games\",apiUrl:\"https://scan.oasys.games/api\"}}})});var fTe,dTe=x(()=>{c();_();fTe=g({id:911867,name:\"Odyssey Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://odyssey.ithaca.xyz\"]}},blockExplorers:{default:{name:\"Odyssey Explorer\",url:\"https://odyssey-explorer.ithaca.xyz\",apiUrl:\"https://odyssey-explorer.ithaca.xyz/api\"}},testnet:!0})});var pTe,mTe=x(()=>{c();_();pTe=g({id:66,name:\"OKC\",nativeCurrency:{decimals:18,name:\"OKT\",symbol:\"OKT\"},rpcUrls:{default:{http:[\"https://exchainrpc.okex.org\"]}},blockExplorers:{default:{name:\"oklink\",url:\"https://www.oklink.com/okc\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:10364792}}})});var hTe,yTe=x(()=>{c();_();hTe=g({id:311,name:\"Omax Mainnet\",nativeCurrency:{decimals:18,name:\"OMAX\",symbol:\"OMAX\"},rpcUrls:{default:{http:[\"https://mainapi.omaxray.com\"]}},blockExplorers:{default:{name:\"Omax Explorer\",url:\"https://omaxscan.com\"}},testnet:!1})});var bTe,gTe=x(()=>{c();_();bTe=g({id:166,name:\"Omni\",nativeCurrency:{name:\"Omni\",symbol:\"OMNI\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.omni.network\"],webSocket:[\"wss://mainnet.omni.network\"]}},blockExplorers:{default:{name:\"OmniScan\",url:\"https://omniscan.network\"}},testnet:!1})});var xTe,vTe=x(()=>{c();_();xTe=g({id:164,name:\"Omni Omega\",nativeCurrency:{name:\"Omni\",symbol:\"OMNI\",decimals:18},rpcUrls:{default:{http:[\"https://omega.omni.network\"],webSocket:[\"wss://omega.omni.network\"]}},blockExplorers:{default:{name:\"Omega OmniScan\",url:\"https://omega.omniscan.network/\"}},testnet:!0})});var wTe,ETe=x(()=>{c();_();wTe=g({id:309075,name:\"One World Chain Mainnet\",nativeCurrency:{decimals:18,name:\"OWCT\",symbol:\"OWCT\"},rpcUrls:{default:{http:[\"https://mainnet-rpc.oneworldchain.org\"]}},blockExplorers:{default:{name:\"One World Explorer\",url:\"https://mainnet.oneworldchain.org\"}},testnet:!1})});var ATe,STe=x(()=>{c();_();ATe=g({id:9700,name:\"OORT MainnetDev\",nativeCurrency:{decimals:18,name:\"OORT\",symbol:\"OORT\"},rpcUrls:{default:{http:[\"https://dev-rpc.oortech.com\"]}},blockExplorers:{default:{name:\"OORT MainnetDev Explorer\",url:\"https://dev-scan.oortech.com\"}}})});var sR,CTe,TTe=x(()=>{c();it();_();sR=56,CTe=g({id:204,name:\"opBNB\",nativeCurrency:{name:\"BNB\",symbol:\"BNB\",decimals:18},rpcUrls:{default:{http:[\"https://opbnb-mainnet-rpc.bnbchain.org\"]}},blockExplorers:{default:{name:\"opBNB (BSCScan)\",url:\"https://opbnb.bscscan.com\",apiUrl:\"https://api-opbnb.bscscan.com/api\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:512881},l2OutputOracle:{[sR]:{address:\"0x153CAB79f4767E2ff862C94aa49573294B13D169\"}},portal:{[sR]:{address:\"0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519\"}},l1StandardBridge:{[sR]:{address:\"0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea\"}}},sourceId:sR})});var cR,_Te,kTe=x(()=>{c();it();_();cR=97,_Te=g({id:5611,name:\"opBNB Testnet\",nativeCurrency:{decimals:18,name:\"tBNB\",symbol:\"tBNB\"},rpcUrls:{default:{http:[\"https://opbnb-testnet-rpc.bnbchain.org\"]}},blockExplorers:{default:{name:\"opbnbscan\",url:\"https://testnet.opbnbscan.com\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3705108},l2OutputOracle:{[cR]:{address:\"0xFf2394Bb843012562f4349C6632a0EcB92fC8810\"}},portal:{[cR]:{address:\"0x4386C8ABf2009aC0c263462Da568DD9d46e52a31\"}},l1StandardBridge:{[cR]:{address:\"0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840\"}}},testnet:!0,sourceId:cR})});var BTe,ITe=x(()=>{c();_();BTe=g({id:1612,name:\"OpenLedger\",nativeCurrency:{name:\"Open\",symbol:\"OPEN\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.openledger.xyz\"]}},blockExplorers:{default:{name:\"OpenLedger Explorer\",url:\"https://scan.openledger.xyz\"}},testnet:!1})});var bC,PTe,RTe=x(()=>{c();it();_();bC=1,PTe=g({...de,id:10,name:\"OP Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.optimism.io\"]}},blockExplorers:{default:{name:\"Optimism Explorer\",url:\"https://optimistic.etherscan.io\",apiUrl:\"https://api-optimistic.etherscan.io/api\"}},contracts:{...de.contracts,disputeGameFactory:{[bC]:{address:\"0xe5965Ab5962eDc7477C8520243A95517CD252fA9\"}},l2OutputOracle:{[bC]:{address:\"0xdfe97868233d1aa22e815a266982f2cf17685a27\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:4286263},portal:{[bC]:{address:\"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed\"}},l1StandardBridge:{[bC]:{address:\"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1\"}}},sourceId:bC})});var uR,MTe,OTe=x(()=>{c();it();_();uR=5,MTe=g({...de,id:420,name:\"Optimism Goerli\",nativeCurrency:{name:\"Goerli Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://goerli.optimism.io\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://goerli-optimism.etherscan.io\",apiUrl:\"https://goerli-optimism.etherscan.io/api\"}},contracts:{...de.contracts,l2OutputOracle:{[uR]:{address:\"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:49461},portal:{[uR]:{address:\"0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383\"}},l1StandardBridge:{[uR]:{address:\"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8\"}}},testnet:!0,sourceId:uR})});var gC,NTe,UTe=x(()=>{c();it();_();gC=11155111,NTe=g({...de,id:11155420,name:\"OP Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.optimism.io\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://optimism-sepolia.blockscout.com\",apiUrl:\"https://optimism-sepolia.blockscout.com/api\"}},contracts:{...de.contracts,disputeGameFactory:{[gC]:{address:\"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1\"}},l2OutputOracle:{[gC]:{address:\"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1620204},portal:{[gC]:{address:\"0x16Fc5058F25648194471939df75CF27A2fdC48BC\"}},l1StandardBridge:{[gC]:{address:\"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1\"}}},testnet:!0,sourceId:gC})});var DTe,HTe=x(()=>{c();_();DTe=g({id:62050,name:\"Optopia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-mainnet.optopia.ai\"]}},blockExplorers:{default:{name:\"Optopia Explorer\",url:\"https://scan.optopia.ai\"}},testnet:!1})});var LTe,zTe=x(()=>{c();_();LTe=g({id:62049,name:\"Optopia Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet.optopia.ai\"]}},blockExplorers:{default:{name:\"Optopia Explorer\",url:\"https://scan-testnet.optopia.ai\"}},testnet:!0})});var FTe,jTe=x(()=>{c();_();FTe=g({id:291,name:\"Orderly\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.orderly.network\"]}},blockExplorers:{default:{name:\"Orderly Explorer\",url:\"https://explorer.orderly.network\"}},testnet:!1})});var qTe,$Te=x(()=>{c();_();qTe=g({id:4460,name:\"Orderly Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://l2-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz\"]}},blockExplorers:{default:{name:\"Orderly Explorer\",url:\"https://explorerl2new-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz\"}},testnet:!0})});var GTe,VTe=x(()=>{c();_();GTe=g({id:41144114,name:\"Otim Devnet\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://devnet.otim.xyz\"]}},contracts:{batchInvoker:{address:\"0x5FbDB2315678afecb367f032d93F642f64180aa3\"}},testnet:!0})});var KTe,WTe=x(()=>{c();_();KTe=g({id:11297108109,name:\"Palm\",nativeCurrency:{decimals:18,name:\"PALM\",symbol:\"PALM\"},rpcUrls:{default:{http:[\"https://palm-mainnet.public.blastapi.io\"],webSocket:[\"wss://palm-mainnet.public.blastapi.io\"]}},blockExplorers:{default:{name:\"Chainlens\",url:\"https://palm.chainlens.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:15429248}}})});var QTe,ZTe=x(()=>{c();_();QTe=g({id:11297108099,name:\"Palm Testnet\",nativeCurrency:{decimals:18,name:\"PALM\",symbol:\"PALM\"},rpcUrls:{default:{http:[\"https://palm-mainnet.public.blastapi.io\"],webSocket:[\"wss://palm-mainnet.public.blastapi.io\"]}},blockExplorers:{default:{name:\"Chainlens\",url:\"https://palm.chainlens.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:15429248}},testnet:!0})});var JTe,YTe=x(()=>{c();_();JTe=g({id:420420422,name:\"Paseo PassetHub\",nativeCurrency:{name:\"PAS\",symbol:\"PAS\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-passet-hub-eth-rpc.polkadot.io\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://blockscout-passet-hub.parity-testnet.parity.io\"}},testnet:!0})});var XTe,e_e=x(()=>{c();_();XTe=g({id:3338,name:\"Peaq\",nativeCurrency:{decimals:18,name:\"peaq\",symbol:\"PEAQ\"},rpcUrls:{default:{http:[\"https://quicknode1.peaq.xyz\",\"https://quicknode2.peaq.xyz\",\"https://quicknode3.peaq.xyz\"],webSocket:[\"wss://quicknode1.peaq.xyz\",\"wss://quicknode2.peaq.xyz\",\"wss://quicknode3.peaq.xyz\"]}},blockExplorers:{default:{name:\"Subscan\",url:\"https://peaq.subscan.io\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:3566354}}})});var lR,t_e,r_e=x(()=>{c();zP();_();lR=1,t_e=g({id:424,network:\"pgn\",name:\"PGN\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.publicgoods.network\"]}},blockExplorers:{default:{name:\"PGN Explorer\",url:\"https://explorer.publicgoods.network\",apiUrl:\"https://explorer.publicgoods.network/api\"}},contracts:{l2OutputOracle:{[lR]:{address:\"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3380209},portal:{[lR]:{address:\"0xb26Fd985c5959bBB382BAFdD0b879E149e48116c\"}},l1StandardBridge:{[lR]:{address:\"0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b\"}}},formatters:Vw,sourceId:lR})});var fR,n_e,o_e=x(()=>{c();zP();_();fR=11155111,n_e=g({id:58008,network:\"pgn-testnet\",name:\"PGN\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.publicgoods.network\"]}},blockExplorers:{default:{name:\"PGN Testnet Explorer\",url:\"https://explorer.sepolia.publicgoods.network\",apiUrl:\"https://explorer.sepolia.publicgoods.network/api\"}},contracts:{l2OutputOracle:{[fR]:{address:\"0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe\"}},portal:{[fR]:{address:\"0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179\"}},l1StandardBridge:{[fR]:{address:\"0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3754925}},formatters:Vw,sourceId:fR,testnet:!0})});var a_e,i_e=x(()=>{c();_();a_e=g({id:13381,name:\"Phoenix Blockchain\",nativeCurrency:{name:\"Phoenix\",symbol:\"PHX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.phoenixplorer.com\"]}},blockExplorers:{default:{name:\"Phoenixplorer\",url:\"https://phoenixplorer.com\",apiUrl:\"https://phoenixplorer.com/api\"}},contracts:{multicall3:{address:\"0x498cF757a575cFF2c2Ed9f532f56Efa797f86442\",blockCreated:5620192}}})});var s_e,c_e=x(()=>{c();_();s_e=g({id:7070,name:\"Planq Mainnet\",nativeCurrency:{decimals:18,name:\"PLQ\",symbol:\"PLQ\"},rpcUrls:{default:{http:[\"https://planq-rpc.nodies.app\",\"https://evm-rpc.planq.network\",\"https://jsonrpc.planq.nodestake.top\"]}},blockExplorers:{default:{name:\"Planq Explorer\",url:\"https://evm.planq.network\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:8470015}},testnet:!1})});var u_e,l_e=x(()=>{c();_();u_e=g({id:9745,name:\"Plasma\",blockTime:1e3,nativeCurrency:{name:\"Plasma\",symbol:\"XPL\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.plasma.to\"]}},blockExplorers:{default:{name:\"PlasmaScan\",url:\"https://plasmascan.to\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}}})});var f_e,d_e=x(()=>{c();_();f_e=g({id:9747,name:\"Plasma Devnet\",nativeCurrency:{name:\"Devnet Plasma\",symbol:\"XPL\",decimals:18},rpcUrls:{default:{http:[\"https://devnet-rpc.plasma.to\"]}},testnet:!0,contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}}})});var p_e,m_e=x(()=>{c();_();p_e=g({id:9746,name:\"Plasma Testnet\",nativeCurrency:{name:\"Testnet Plasma\",symbol:\"XPL\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.plasma.to\"]}},blockExplorers:{default:{name:\"RouteScan\",url:\"https://testnet.plasmascan.to\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},testnet:!0})});var h_e,y_e=x(()=>{c();_();Xi();h_e=g({...bn,id:1612127,name:\"PlayFi Albireo Testnet\",network:\"albireo\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://albireo-rpc.playfi.ai\"],webSocket:[\"wss://albireo-rpc-ws.playfi.ai/ws\"]}},blockExplorers:{default:{name:\"PlayFi Albireo Explorer\",url:\"https://albireo-explorer.playfi.ai\"}},contracts:{multicall3:{address:\"0xF9cda624FBC7e059355ce98a31693d299FACd963\"}},testnet:!0})});var b_e,g_e=x(()=>{c();_();b_e=g({id:242,name:\"Plinga\",nativeCurrency:{name:\"Plinga\",symbol:\"PLINGA\",decimals:18},rpcUrls:{default:{http:[\"https://rpcurl.mainnet.plgchain.com\"]}},blockExplorers:{default:{name:\"Plgscan\",url:\"https://www.plgscan.com\"}},contracts:{multicall3:{address:\"0x0989576160f2e7092908BB9479631b901060b6e4\",blockCreated:204489}}})});var Xpt,x_e,v_e=x(()=>{c();_();Xpt=1,x_e=g({id:98865,name:\"Plume (Legacy)\",nativeCurrency:{name:\"Plume Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.plumenetwork.xyz\"],webSocket:[\"wss://rpc.plumenetwork.xyz\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.plumenetwork.xyz\",apiUrl:\"https://explorer.plumenetwork.xyz/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:48577}},sourceId:Xpt})});var emt,w_e,E_e=x(()=>{c();_();emt=11155111,w_e=g({id:98864,name:\"Plume Devnet (Legacy)\",nativeCurrency:{name:\"Plume Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://test-rpc.plumenetwork.xyz\"],webSocket:[\"wss://test-rpc.plumenetwork.xyz\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://test-explorer.plumenetwork.xyz\",apiUrl:\"https://test-explorer.plumenetwork.xyz/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:481948}},testnet:!0,sourceId:emt})});var tmt,A_e,S_e=x(()=>{c();_();tmt=1,A_e=g({id:98866,name:\"Plume\",nativeCurrency:{name:\"Plume\",symbol:\"PLUME\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.plume.org\"],webSocket:[\"wss://rpc.plume.org\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.plume.org\",apiUrl:\"https://explorer.plume.org/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:39679}},sourceId:tmt})});var rmt,C_e,T_e=x(()=>{c();_();rmt=11155111,C_e=g({id:98867,name:\"Plume Testnet\",nativeCurrency:{name:\"Plume\",symbol:\"PLUME\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.plume.org\"],webSocket:[\"wss://testnet-rpc.plume.org\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://testnet-explorer.plume.org\",apiUrl:\"https://testnet-explorer.plume.org/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:199712}},testnet:!0,sourceId:rmt})});var nmt,__e,k_e=x(()=>{c();_();nmt=11155111,__e=g({id:161221135,name:\"Plume Testnet (Legacy)\",nativeCurrency:{name:\"Plume Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.plumenetwork.xyz/http\"],webSocket:[\"wss://testnet-rpc.plumenetwork.xyz/ws\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://testnet-explorer.plumenetwork.xyz\",apiUrl:\"https://testnet-explorer.plumenetwork.xyz/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:6022332}},testnet:!0,sourceId:nmt})});var B_e,I_e=x(()=>{c();_();B_e=g({id:631571,name:\"Polter Testnet\",nativeCurrency:{decimals:18,name:\"Polter GHST\",symbol:\"GHST\"},rpcUrls:{default:{http:[\"https://geist-polter.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://polter-testnet.explorer.alchemy.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:11245}},testnet:!0})});var P_e,R_e=x(()=>{c();_();P_e=g({id:137,name:\"Polygon\",blockTime:2e3,nativeCurrency:{name:\"POL\",symbol:\"POL\",decimals:18},rpcUrls:{default:{http:[\"https://polygon.drpc.org\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://polygonscan.com\",apiUrl:\"https://api.etherscan.io/v2/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:25770160}}})});var M_e,O_e=x(()=>{c();_();M_e=g({id:80002,name:\"Polygon Amoy\",nativeCurrency:{name:\"POL\",symbol:\"POL\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-amoy.polygon.technology\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://amoy.polygonscan.com\",apiUrl:\"https://api.etherscan.io/v2/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:3127388}},testnet:!0})});var N_e,U_e=x(()=>{c();_();N_e=g({id:80001,name:\"Polygon Mumbai\",nativeCurrency:{name:\"MATIC\",symbol:\"MATIC\",decimals:18},rpcUrls:{default:{http:[\"https://80001.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://mumbai.polygonscan.com\",apiUrl:\"https://api-testnet.polygonscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:25770160}},testnet:!0})});var D_e,H_e=x(()=>{c();_();D_e=g({id:1101,name:\"Polygon zkEVM\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://zkevm-rpc.com\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://zkevm.polygonscan.com\",apiUrl:\"https://api-zkevm.polygonscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:57746}}})});var L_e,z_e=x(()=>{c();_();L_e=g({id:2442,name:\"Polygon zkEVM Cardona\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.cardona.zkevm-rpc.com\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://cardona-zkevm.polygonscan.com\",apiUrl:\"https://cardona-zkevm.polygonscan.com/api\"}},testnet:!0,contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:114091}}})});var F_e,j_e=x(()=>{c();_();F_e=g({id:1442,name:\"Polygon zkEVM Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.public.zkevm-test.net\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://testnet-zkevm.polygonscan.com\",apiUrl:\"https://testnet-zkevm.polygonscan.com/api\"}},testnet:!0,contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:525686}}})});var q_e,$_e=x(()=>{c();_();q_e=g({id:8008,name:\"Polynomial\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.polynomial.fi\"]}},blockExplorers:{default:{name:\"Polynomial Scan\",url:\"https://polynomialscan.io\"}},testnet:!1,contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}}})});var G_e,V_e=x(()=>{c();_();G_e=g({id:80008,name:\"Polynomia Sepolia\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.sepolia.polynomial.fi\"]}},blockExplorers:{default:{name:\"Polynomial Scan\",url:\"https://sepolia.polynomialscan.io\"}},testnet:!0,contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}}})});var K_e,W_e=x(()=>{c();_();K_e=g({id:60603,name:\"POTOS Mainnet\",nativeCurrency:{decimals:18,name:\"POTOS Token\",symbol:\"POT\"},rpcUrls:{default:{http:[\"https://rpc.potos.hk\"]}},blockExplorers:{default:{name:\"POTOS Mainnet explorer\",url:\"https://scan.potos.hk\"}},testnet:!1})});var Q_e,Z_e=x(()=>{c();_();Q_e=g({id:60600,name:\"POTOS Testnet\",nativeCurrency:{decimals:18,name:\"POTOS Token\",symbol:\"POT\"},rpcUrls:{default:{http:[\"https://rpc-testnet.potos.hk\"]}},blockExplorers:{default:{name:\"POTOS Testnet explorer\",url:\"https://scan-testnet.potos.hk\"}},testnet:!0})});var J_e,Y_e=x(()=>{c();_();J_e=g({id:23023,name:\"PremiumBlock Testnet\",nativeCurrency:{name:\"Premium Block\",symbol:\"PBLK\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.premiumblock.org\"]}},blockExplorers:{default:{name:\"PremiumBlocks Explorer\",url:\"https://scan.premiumblock.org\"}},testnet:!0})});var X_e,e4e=x(()=>{c();_();X_e=g({id:369,name:\"PulseChain\",nativeCurrency:{name:\"Pulse\",symbol:\"PLS\",decimals:18},testnet:!1,blockTime:1e4,rpcUrls:{default:{http:[\"https://rpc.pulsechain.com\"],webSocket:[\"wss://ws.pulsechain.com\"]}},blockExplorers:{default:{name:\"PulseScan\",url:\"https://ipfs.scan.pulsechain.com\",apiUrl:\"https://api.scan.pulsechain.com/api\"}},contracts:{ensRegistry:{address:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14353601}}})});var t4e,r4e=x(()=>{c();_();t4e=g({id:943,name:\"PulseChain V4\",testnet:!0,nativeCurrency:{name:\"V4 Pulse\",symbol:\"v4PLS\",decimals:18},blockTime:1e4,rpcUrls:{default:{http:[\"https://rpc.v4.testnet.pulsechain.com\"],webSocket:[\"wss://ws.v4.testnet.pulsechain.com\"]}},blockExplorers:{default:{name:\"PulseScan\",url:\"https://scan.v4.testnet.pulsechain.com\",apiUrl:\"https://scan.v4.testnet.pulsechain.com/api\"}},contracts:{ensRegistry:{address:\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14353601}}})});var n4e,o4e=x(()=>{c();_();n4e=g({id:490092,name:\"Pumpfi Testnet\",nativeCurrency:{decimals:18,name:\"PMPT\",symbol:\"PMPT\"},rpcUrls:{default:{http:[\"https://rpc1testnet.pumpfi.me\"]}},blockExplorers:{default:{name:\"Pumpfi Testnet Scan\",url:\"https://testnetscan.pumpfi.me\"}},testnet:!0})});var a4e,i4e,s4e=x(()=>{c();it();_();a4e=11155111,i4e=g({...de,name:\"Pyrope Testnet\",testnet:!0,id:695569,sourceId:a4e,nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.pyropechain.com\"],webSocket:[\"wss://rpc.pyropechain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://pyrope.blockscout.com\"}},contracts:{...de.contracts,l1StandardBridge:{[a4e]:{address:\"0xC24932c31D9621aE9e792576152B7ef010cFC2F8\"}}}})});var c4e,u4e=x(()=>{c();_();c4e=g({id:766,name:\"QL1\",nativeCurrency:{decimals:18,name:\"QOM\",symbol:\"QOM\"},rpcUrls:{default:{http:[\"https://rpc.qom.one\"]}},blockExplorers:{default:{name:\"Ql1 Explorer\",url:\"https://scan.qom.one\"}},contracts:{multicall3:{address:\"0x7A52370716ea730585884F5BDB0f6E60C39b8C64\"}},testnet:!1})});var l4e,f4e=x(()=>{c();_();l4e=g({id:35441,name:\"Q Mainnet\",nativeCurrency:{decimals:18,name:\"Q\",symbol:\"Q\"},rpcUrls:{default:{http:[\"https://rpc.q.org\"]}},blockExplorers:{default:{name:\"Q Mainnet Explorer\",url:\"https://explorer.q.org\",apiUrl:\"https://explorer.q.org/api\"}}})});var d4e,p4e=x(()=>{c();_();d4e=g({id:35443,name:\"Q Testnet\",nativeCurrency:{decimals:18,name:\"Q\",symbol:\"Q\"},rpcUrls:{default:{http:[\"https://rpc.qtestnet.org\"]}},blockExplorers:{default:{name:\"Q Testnet Explorer\",url:\"https://explorer.qtestnet.org\",apiUrl:\"https://explorer.qtestnet.org/api\"}},testnet:!0})});var m4e,h4e=x(()=>{c();_();m4e=g({id:9,name:\"Quai Network Mainnet\",nativeCurrency:{decimals:18,name:\"Quai\",symbol:\"QUAI\"},rpcUrls:{default:{http:[\"https://rpc.quai.network/cyprus1\"]}},blockExplorers:{default:{name:\"Quaiscan\",url:\"https://quaiscan.io\",apiUrl:\"https://quaiscan.io/api\"}},testnet:!1})});var y4e,b4e=x(()=>{c();_();y4e=g({id:15e3,name:\"Quai Network Testnet\",nativeCurrency:{decimals:18,name:\"Quai\",symbol:\"QUAI\"},rpcUrls:{default:{http:[\"https://orchard.rpc.quai.network/cyprus1\"]}},blockExplorers:{default:{name:\"Orchard Quaiscan\",url:\"https://orchard.quaiscan.io\",apiUrl:\"https://orchard.quaiscan.io/api\"}},testnet:!0})});var g4e,x4e=x(()=>{c();_();g4e=g({id:723487,name:\"Radius Network\",nativeCurrency:{name:\"Radius USD\",symbol:\"RUSD\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.radiustech.xyz\"]}},blockExplorers:{default:{name:\"Radius Network Explorer\",url:\"https://network.radiustech.xyz\"}},testnet:!1})});var v4e,w4e=x(()=>{c();_();v4e=g({id:72344,name:\"Radius Test Network\",nativeCurrency:{name:\"Radius USD\",symbol:\"RUSD\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.radiustech.xyz\"]}},blockExplorers:{default:{name:\"Radius Test Network Explorer\",url:\"https://testnet.radiustech.xyz\"}},testnet:!0})});var E4e,A4e=x(()=>{c();_();E4e=g({id:5318007,name:\"Reactive Lasna Testnet\",nativeCurrency:{decimals:18,name:\"Lasna React\",symbol:\"lREACT\"},rpcUrls:{default:{http:[\"https://lasna-rpc.rnk.dev\"]}},blockExplorers:{default:{name:\"Reactscan\",url:\"https://lasna.reactscan.net\"}},testnet:!0})});var S4e,C4e=x(()=>{c();_();S4e=g({id:111188,name:\"re.al\",nativeCurrency:{name:\"reETH\",decimals:18,symbol:\"reETH\"},rpcUrls:{default:{http:[\"https://rpc.realforreal.gelato.digital\"]}},blockExplorers:{default:{name:\"re.al Explorer\",url:\"https://explorer.re.al\",apiUrl:\"https://explorer.re.al/api/v2\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:695}}})});var T4e,_4e=x(()=>{c();_();T4e=g({id:151,name:\"Redbelly Network Mainnet\",nativeCurrency:{name:\"Redbelly Native Coin\",symbol:\"RBNT\",decimals:18},rpcUrls:{default:{http:[\"https://governors.mainnet.redbelly.network\"]}},blockExplorers:{default:{name:\"Routescan\",url:\"https://redbelly.routescan.io\",apiUrl:\"https://api.routescan.io/v2/network/mainnet/evm/151/etherscan/api\"}},testnet:!1})});var k4e,B4e=x(()=>{c();_();k4e=g({id:153,name:\"Redbelly Network Testnet\",nativeCurrency:{name:\"Redbelly Native Coin\",symbol:\"RBNT\",decimals:18},rpcUrls:{default:{http:[\"https://governors.testnet.redbelly.network\"]}},blockExplorers:{default:{name:\"Routescan\",url:\"https://redbelly.testnet.routescan.io\",apiUrl:\"https://api.routescan.io/v2/network/testnet/evm/153_2/etherscan/api\"}},testnet:!0})});var I4e,P4e=x(()=>{c();_();I4e=g({id:50342,name:\"Reddio\",nativeCurrency:{name:\"Reddio\",symbol:\"RED\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.reddio.com/rpc\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://reddio.cloud.blockscout.com\",apiUrl:\"https://reddio.cloud.blockscout.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:848849}},testnet:!1})});var R4e,M4e=x(()=>{c();_();R4e=g({id:50341,name:\"Reddio Sepolia\",nativeCurrency:{name:\"Reddio\",symbol:\"RED\",decimals:18},rpcUrls:{default:{http:[\"https://reddio-dev.reddio.com\"]}},blockExplorers:{default:{name:\"Reddioscan\",url:\"https://reddio-devnet.l2scan.co\",apiUrl:\"https://reddio-devnet.l2scan.co/api\"}},testnet:!0})});var dR,O4e,N4e=x(()=>{c();it();_();dR=1,O4e=g({...de,name:\"Redstone\",id:690,sourceId:dR,nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.redstonechain.com\"],webSocket:[\"wss://rpc.redstonechain.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.redstone.xyz\"}},contracts:{...de.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[dR]:{address:\"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae\",blockCreated:19578329}},l2OutputOracle:{[dR]:{address:\"0xa426A052f657AEEefc298b3B5c35a470e4739d69\",blockCreated:19578337}},l1StandardBridge:{[dR]:{address:\"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69\",blockCreated:19578331}}}})});var U4e,D4e=x(()=>{c();_();U4e=g({id:47805,name:\"REI Mainnet\",nativeCurrency:{decimals:18,name:\"REI\",symbol:\"REI\"},rpcUrls:{default:{http:[\"https://rpc.rei.network\"],webSocket:[\"wss://rpc.rei.network\"]}},blockExplorers:{default:{name:\"REI Scan\",url:\"https://scan.rei.network\"}},testnet:!1})});var H4e,L4e=x(()=>{c();_();H4e=g({id:1729,name:\"Reya Network\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.reya.network\"],webSocket:[\"wss://ws.reya.network\"]}},blockExplorers:{default:{name:\"Reya Network Explorer\",url:\"https://explorer.reya.network\"}},testnet:!1})});var z4e,F4e=x(()=>{c();_();z4e=g({id:4153,name:\"RISE\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.risechain.com\"],webSocket:[\"wss://rpc.risechain.com/ws\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.risechain.com\",apiUrl:\"https://explorer.risechain.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}}})});var j4e,q4e=x(()=>{c();_();j4e=g({id:11155931,name:\"RISE Testnet\",nativeCurrency:{name:\"RISE Testnet Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.riselabs.xyz\"],webSocket:[\"wss://testnet.riselabs.xyz/ws\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.testnet.riselabs.xyz/\",apiUrl:\"https://explorer.testnet.riselabs.xyz/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}},testnet:!0})});var $4e,G4e=x(()=>{c();_();$4e=g({id:753,name:\"Rivalz\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rivalz.calderachain.xyz/http\"]}},blockExplorers:{default:{name:\"Rivalz Caldera Explorer\",url:\"https://rivalz.calderaexplorer.xyz\"}},testnet:!1})});var V4e,K4e=x(()=>{c();_();V4e=g({id:570,name:\"Rollux Mainnet\",nativeCurrency:{decimals:18,name:\"Syscoin\",symbol:\"SYS\"},rpcUrls:{default:{http:[\"https://rpc.rollux.com\"],webSocket:[\"wss://rpc.rollux.com/wss\"]}},blockExplorers:{default:{name:\"RolluxExplorer\",url:\"https://explorer.rollux.com\",apiUrl:\"https://explorer.rollux.com/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:119222}}})});var W4e,Q4e=x(()=>{c();_();W4e=g({id:57e3,name:\"Rollux Testnet\",nativeCurrency:{decimals:18,name:\"Syscoin\",symbol:\"SYS\"},rpcUrls:{default:{http:[\"https://rpc-tanenbaum.rollux.com/\"],webSocket:[\"wss://rpc-tanenbaum.rollux.com/wss\"]}},blockExplorers:{default:{name:\"RolluxTestnetExplorer\",url:\"https://rollux.tanenbaum.io\",apiUrl:\"https://rollux.tanenbaum.io/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1813675}},testnet:!0})});var Z4e,J4e=x(()=>{c();_();Z4e=g({id:2020,name:\"Ronin\",nativeCurrency:{name:\"RON\",symbol:\"RON\",decimals:18},rpcUrls:{default:{http:[\"https://api.roninchain.com/rpc\"]}},blockExplorers:{default:{name:\"Ronin Explorer\",url:\"https://app.roninchain.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:26023535}}})});var Y4e,X4e=x(()=>{c();_();Y4e=g({id:7668,name:\"The Root Network\",nativeCurrency:{decimals:18,name:\"XRP\",symbol:\"XRP\"},rpcUrls:{default:{http:[\"https://root.rootnet.live/archive\"],webSocket:[\"wss://root.rootnet.live/archive/ws\"]}},blockExplorers:{default:{name:\"Rootscan\",url:\"https://rootscan.io\"}},contracts:{multicall3:{address:\"0xc9C2E2429AeC354916c476B30d729deDdC94988d\",blockCreated:9218338}}})});var eke,tke=x(()=>{c();_();eke=g({id:7672,name:\"The Root Network - Porcini\",nativeCurrency:{decimals:18,name:\"XRP\",symbol:\"XRP\"},rpcUrls:{default:{http:[\"https://porcini.rootnet.app/archive\"],webSocket:[\"wss://porcini.rootnet.app/archive/ws\"]}},blockExplorers:{default:{name:\"Rootscan\",url:\"https://porcini.rootscan.io\"}},contracts:{multicall3:{address:\"0xc9C2E2429AeC354916c476B30d729deDdC94988d\",blockCreated:10555692}},testnet:!0})});var rke,nke=x(()=>{c();_();rke=g({id:30,name:\"Rootstock Mainnet\",network:\"rootstock\",nativeCurrency:{decimals:18,name:\"Rootstock Bitcoin\",symbol:\"RBTC\"},rpcUrls:{default:{http:[\"https://public-node.rsk.co\"]}},blockExplorers:{default:{name:\"RSK Explorer\",url:\"https://explorer.rsk.co\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:4249540}}})});var oke,ake=x(()=>{c();_();oke=g({id:31,name:\"Rootstock Testnet\",network:\"rootstock\",nativeCurrency:{decimals:18,name:\"Rootstock Bitcoin\",symbol:\"tRBTC\"},rpcUrls:{default:{http:[\"https://public-node.testnet.rsk.co\"]}},blockExplorers:{default:{name:\"RSK Explorer\",url:\"https://explorer.testnet.rootstock.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2771150}},testnet:!0})});var pR,ike,ske=x(()=>{c();it();_();pR=1,ike=g({...de,id:12553,name:\"RSS3 VSL Mainnet\",nativeCurrency:{name:\"RSS3\",symbol:\"RSS3\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.rss3.io\"]}},blockExplorers:{default:{name:\"RSS3 VSL Mainnet Scan\",url:\"https://scan.rss3.io\",apiUrl:\"https://scan.rss3.io/api\"}},contracts:{...de.contracts,l2OutputOracle:{[pR]:{address:\"0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14193},portal:{[pR]:{address:\"0x6A12432491bbbE8d3babf75F759766774C778Db4\",blockCreated:19387057}},l1StandardBridge:{[pR]:{address:\"0x4cbab69108Aa72151EDa5A3c164eA86845f18438\"}}},sourceId:pR})});var mR,cke,uke=x(()=>{c();it();_();mR=11155111,cke=g({...de,id:2331,name:\"RSS3 VSL Sepolia Testnet\",nativeCurrency:{name:\"RSS3\",symbol:\"RSS3\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.rss3.io\"]}},blockExplorers:{default:{name:\"RSS3 VSL Sepolia Testnet Scan\",url:\"https://scan.testnet.rss3.io\",apiUrl:\"https://scan.testnet.rss3.io/api\"}},contracts:{...de.contracts,l2OutputOracle:{[mR]:{address:\"0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:55697},portal:{[mR]:{address:\"0xcBD77E8E1E7F06B25baDe67142cdE82652Da7b57\",blockCreated:5345035}},l1StandardBridge:{[mR]:{address:\"0xdDD29bb63B0839FB1cE0eE439Ff027738595D07B\"}}},testnet:!0,sourceId:mR})});var lke,fke=x(()=>{c();_();lke=g({id:7225878,name:\"Saakuru Mainnet\",nativeCurrency:{name:\"OAS\",symbol:\"OAS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.saakuru.network\"]}},blockExplorers:{default:{name:\"Saakuru Explorer\",url:\"https://explorer.saakuru.network\"}},testnet:!1})});var dke,pke=x(()=>{c();_();dke=g({id:5464,name:\"Saga\",network:\"saga\",nativeCurrency:{decimals:18,name:\"gas\",symbol:\"GAS\"},rpcUrls:{default:{http:[\"https://sagaevm.jsonrpc.sagarpc.io\"]}},blockExplorers:{default:{name:\"Saga Explorer\",url:\"https://sagaevm.sagaexplorer.io\"}},contracts:{multicall3:{address:\"0x864DDc9B50B9A0dF676d826c9B9EDe9F8913a160\",blockCreated:467530}}})});var mke,hke=x(()=>{c();_();mke=g({id:202601,name:\"Ronin Saigon Testnet\",nativeCurrency:{name:\"RON\",symbol:\"RON\",decimals:18},rpcUrls:{default:{http:[\"https://saigon-testnet.roninchain.com/rpc\"]}},blockExplorers:{default:{name:\"Saigon Explorer\",url:\"https://saigon-explorer.roninchain.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:18736871}},testnet:!0})});var yke,bke=x(()=>{c();_();yke=g({id:1996,name:\"Sanko\",nativeCurrency:{name:\"DMT\",symbol:\"DMT\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.sanko.xyz\"]}},blockExplorers:{default:{name:\"Sanko Explorer\",url:\"https://explorer.sanko.xyz\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:37}},testnet:!1})});var gke,xke=x(()=>{c();_();gke=g({id:23294,name:\"Oasis Sapphire\",network:\"sapphire\",nativeCurrency:{name:\"Sapphire Rose\",symbol:\"ROSE\",decimals:18},rpcUrls:{default:{http:[\"https://sapphire.oasis.io\"],webSocket:[\"wss://sapphire.oasis.io/ws\"]}},blockExplorers:{default:{name:\"Oasis Explorer\",url:\"https://explorer.oasis.io/mainnet/sapphire\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:734531}}})});var vke,wke=x(()=>{c();_();vke=g({id:23295,name:\"Oasis Sapphire Testnet\",network:\"sapphire-testnet\",nativeCurrency:{name:\"Sapphire Test Rose\",symbol:\"TEST\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.sapphire.oasis.dev\"],webSocket:[\"wss://testnet.sapphire.oasis.dev/ws\"]}},blockExplorers:{default:{name:\"Oasis Explorer\",url:\"https://explorer.oasis.io/testnet/sapphire\"}},testnet:!0})});var Eke,Ake=x(()=>{c();_();Eke=g({id:3109,name:\"SatoshiVM Alpha Mainnet\",nativeCurrency:{name:\"BTC\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://alpha-rpc-node-http.svmscan.io\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://svmscan.io\",apiUrl:\"https://svmscan.io/api\"}}})});var Ske,Cke=x(()=>{c();_();Ske=g({id:3110,name:\"SatoshiVM Testnet\",nativeCurrency:{name:\"BTC\",symbol:\"BTC\",decimals:18},rpcUrls:{default:{http:[\"https://test-rpc-node-http.svmscan.io\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://testnet.svmscan.io\",apiUrl:\"https://testnet.svmscan.io/api\"}},testnet:!0})});var Tke,_ke=x(()=>{c();_();Tke=g({id:534352,name:\"Scroll\",blockTime:3e3,nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.scroll.io\"],webSocket:[\"wss://wss-rpc.scroll.io/ws\"]}},blockExplorers:{default:{name:\"Scrollscan\",url:\"https://scrollscan.com\",apiUrl:\"https://api.scrollscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14}},testnet:!1})});var kke,Bke=x(()=>{c();_();kke=g({id:534351,name:\"Scroll Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia-rpc.scroll.io\"]}},blockExplorers:{default:{name:\"Scrollscan\",url:\"https://sepolia.scrollscan.com\",apiUrl:\"https://api-sepolia.scrollscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:9473}},testnet:!0})});var Ike,Pke=x(()=>{c();_();Ike=g({id:1329,name:\"Sei Network\",nativeCurrency:{name:\"Sei\",symbol:\"SEI\",decimals:18},rpcUrls:{default:{http:[\"https://evm-rpc.sei-apis.com/\"],webSocket:[\"wss://evm-ws.sei-apis.com/\"]}},blockExplorers:{default:{name:\"Seiscan\",url:\"https://seiscan.io\",apiUrl:\"https://api.etherscan.io/v2/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"}}})});var Rke,Mke=x(()=>{c();_();Rke=g({id:5124,name:\"Seismic Devnet\",nativeCurrency:{name:\"Seismic Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://node-2.seismicdev.net/rpc\"]}},blockExplorers:{default:{name:\"Seismic Devnet Explorer\",url:\"https://explorer-2.seismicdev.net\"}},testnet:!0})});var Oke,Nke=x(()=>{c();_();Oke=g({id:1328,name:\"Sei Testnet\",nativeCurrency:{name:\"Sei\",symbol:\"SEI\",decimals:18},rpcUrls:{default:{http:[\"https://evm-rpc-testnet.sei-apis.com\"],webSocket:[\"wss://evm-ws-testnet.sei-apis.com\"]}},blockExplorers:{default:{name:\"Seiscan\",url:\"https://testnet.seiscan.io\",apiUrl:\"https://api.etherscan.io/v2/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:98697651}},testnet:!0})});var Uke,Dke=x(()=>{c();_();Uke=g({id:11155111,name:\"Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://11155111.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://sepolia.etherscan.io\",apiUrl:\"https://api-sepolia.etherscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:751532},ensUniversalResolver:{address:\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\",blockCreated:8928790}},testnet:!0})});var hR,Hke,Lke=x(()=>{c();it();_();hR=1,Hke=g({...de,id:360,name:\"Shape\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.shape.network\"]}},blockExplorers:{default:{name:\"shapescan\",url:\"https://shapescan.xyz\",apiUrl:\"https://shapescan.xyz/api\"}},contracts:{...de.contracts,l2OutputOracle:{[hR]:{address:\"0x6Ef8c69CfE4635d866e3E02732068022c06e724D\",blockCreated:20369940}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1},portal:{[hR]:{address:\"0xEB06fFa16011B5628BaB98E29776361c83741dd3\",blockCreated:20369933}},l1StandardBridge:{[hR]:{address:\"0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B\",blockCreated:20369935}}},sourceId:hR})});var omt,zke,Fke=x(()=>{c();it();_();omt=11155111,zke=g({...de,id:11011,name:\"Shape Sepolia Testnet\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.shape.network\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer-sepolia.shape.network/\",apiUrl:\"https://explorer-sepolia.shape.network/api/v2\"}},contracts:{...de.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1}},testnet:!0,sourceId:omt})});var jke,qke=x(()=>{c();_();jke=g({id:8118,name:\"Shardeum\",nativeCurrency:{name:\"Shardeum\",symbol:\"SHM\",decimals:18},rpcUrls:{default:{http:[\"https://api.shardeum.org\"]}},blockExplorers:{default:{name:\"Shardeum Explorer\",url:\"https://explorer.shardeum.org\"}},testnet:!1})});var $ke,Gke=x(()=>{c();_();$ke=g({id:8082,name:\"Shardeum Sphinx\",nativeCurrency:{name:\"SHARDEUM\",symbol:\"SHM\",decimals:18},rpcUrls:{default:{http:[\"https://sphinx.shardeum.org\"]}},blockExplorers:{default:{name:\"Shardeum Explorer\",url:\"https://explorer-sphinx.shardeum.org\"}},testnet:!0})});var Vke,Kke=x(()=>{c();_();Vke=g({id:109,name:\"Shibarium\",network:\"shibarium\",nativeCurrency:{name:\"Bone\",symbol:\"BONE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.shibrpc.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://shibariumscan.io\"}},contracts:{multicall3:{address:\"0x864Bf681ADD6052395188A89101A1B37d3B4C961\",blockCreated:265900}}})});var Wke,Qke=x(()=>{c();_();Wke=g({id:157,name:\"Puppynet Shibarium\",nativeCurrency:{decimals:18,name:\"Bone\",symbol:\"BONE\"},rpcUrls:{default:{http:[\"https://puppynet.shibrpc.com\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://puppyscan.shib.io\",apiUrl:\"https://puppyscan.shib.io/api\"}},contracts:{multicall3:{address:\"0xA4029b74FBA366c926eDFA7Dd10B21C621170a4c\",blockCreated:3035769}},testnet:!0})});var Zke,Jke=x(()=>{c();_();Zke=g({id:336,name:\"Shiden\",nativeCurrency:{decimals:18,name:\"SDN\",symbol:\"SDN\"},rpcUrls:{default:{http:[\"https://shiden.public.blastapi.io\"],webSocket:[\"wss://shiden-rpc.dwellir.com\"]}},blockExplorers:{default:{name:\"Shiden Scan\",url:\"https://shiden.subscan.io\"}},testnet:!1})});var Yke,Xke=x(()=>{c();_();Yke=g({id:148,name:\"Shimmer\",network:\"shimmer\",nativeCurrency:{decimals:18,name:\"Shimmer\",symbol:\"SMR\"},rpcUrls:{default:{http:[\"https://json-rpc.evm.shimmer.network\"]}},blockExplorers:{default:{name:\"Shimmer Network Explorer\",url:\"https://explorer.evm.shimmer.network\",apiUrl:\"https://explorer.evm.shimmer.network/api\"}}})});var e7e,t7e=x(()=>{c();_();e7e=g({id:1073,name:\"Shimmer Testnet\",network:\"shimmer-testnet\",nativeCurrency:{decimals:18,name:\"Shimmer\",symbol:\"SMR\"},rpcUrls:{default:{http:[\"https://json-rpc.evm.testnet.shimmer.network\"]}},blockExplorers:{default:{name:\"Shimmer Network Explorer\",url:\"https://explorer.evm.testnet.shimmer.network\",apiUrl:\"https://explorer.evm.testnet.shimmer.network/api\"}},testnet:!0})});var r7e,n7e=x(()=>{c();_();r7e=g({id:97453,name:\"Sidra Chain\",nativeCurrency:{decimals:18,name:\"Sidra Digital Asset\",symbol:\"SDA\"},rpcUrls:{default:{http:[\"https://node.sidrachain.com\"]}},blockExplorers:{default:{name:\"Sidra Chain Explorer\",url:\"https://ledger.sidrachain.com\"}}})});var o7e,a7e=x(()=>{c();_();o7e=g({id:380929,name:\"Silent Data Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.silentdata.com\"]}},blockExplorers:{default:{name:\"Silent Data Mainnet Explorer\",url:\"https://explorer-mainnet.rollup.silentdata.com\"}},testnet:!1})});var i7e,s7e=x(()=>{c();_();i7e=g({id:2355,name:\"Silicon zkEVM\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.silicon.network\",\"https://silicon-mainnet.nodeinfra.com\"]}},blockExplorers:{default:{name:\"SiliconScope\",url:\"https://scope.silicon.network\"}}})});var c7e,u7e=x(()=>{c();_();c7e=g({id:1722641160,name:\"Silicon Sepolia zkEVM\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-sepolia.silicon.network\",\"https://silicon-testnet.nodeinfra.com\"]}},blockExplorers:{default:{name:\"SiliconSepoliaScope\",url:\"https://scope-sepolia.silicon.network\"}},testnet:!0})});var l7e,f7e=x(()=>{c();_();l7e=g({id:98,name:\"Six Protocol\",nativeCurrency:{decimals:18,name:\"SIX\",symbol:\"SIX\"},rpcUrls:{default:{http:[\"https://sixnet-rpc-evm.sixprotocol.net\"]}},blockExplorers:{default:{name:\"Six Protocol Scan\",url:\"https://sixscan.io/sixnet\"}},testnet:!1})});var d7e,p7e=x(()=>{c();_();d7e=g({id:391845894,name:\"SKALE | Block Brawlers\",nativeCurrency:{name:\"BRAWL\",symbol:\"BRAWL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/frayed-decent-antares\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://frayed-decent-antares.explorer.mainnet.skalenodes.com\"}},contracts:{}})});var m7e,h7e=x(()=>{c();_();m7e=g({id:1564830818,name:\"SKALE Calypso Hub\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3107626}}})});var y7e,b7e=x(()=>{c();_();y7e=g({id:974399131,name:\"SKALE Calypso Testnet\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.skalenodes.com/v1/giant-half-dual-testnet\"],webSocket:[\"wss://testnet.skalenodes.com/v1/ws/giant-half-dual-testnet\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://giant-half-dual-testnet.explorer.testnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:103220}},testnet:!0})});var g7e,x7e=x(()=>{c();_();g7e=g({id:1026062157,name:\"SKALE | CryptoBlades\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com\"}},contracts:{}})});var v7e,w7e=x(()=>{c();_();v7e=g({id:1032942172,name:\"SKALE | Crypto Colosseum\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/haunting-devoted-deneb\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com\"}},contracts:{}})});var E7e,A7e=x(()=>{c();_();E7e=g({id:2046399126,name:\"SKALE Europa Hub\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/elated-tan-skat\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://elated-tan-skat.explorer.mainnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3113495}}})});var S7e,C7e=x(()=>{c();_();S7e=g({id:1444673419,name:\"SKALE Europa Testnet\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.skalenodes.com/v1/juicy-low-small-testnet\"],webSocket:[\"wss://testnet.skalenodes.com/v1/ws/juicy-low-small-testnet\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://juicy-low-small-testnet.explorer.testnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:110858}},testnet:!0})});var T7e,_7e=x(()=>{c();_();T7e=g({id:2139927552,name:\"Exorde Network\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/light-vast-diphda\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://light-vast-diphda.explorer.mainnet.skalenodes.com\"}},contracts:{}})});var k7e,B7e=x(()=>{c();_();k7e=g({id:1273227453,name:\"SKALE | Human Protocol\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/wan-red-ain\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/wan-red-ain\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://wan-red-ain.explorer.mainnet.skalenodes.com\"}},contracts:{}})});var I7e,P7e=x(()=>{c();_();I7e=g({id:1482601649,name:\"SKALE Nebula Hub\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/green-giddy-denebola\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://green-giddy-denebola.explorer.mainnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2372986}}})});var R7e,M7e=x(()=>{c();_();R7e=g({id:37084624,name:\"SKALE Nebula Testnet\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.skalenodes.com/v1/lanky-ill-funny-testnet\"],webSocket:[\"wss://testnet.skalenodes.com/v1/ws/lanky-ill-funny-testnet\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://lanky-ill-funny-testnet.explorer.testnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:105141}},testnet:!0})});var O7e,N7e=x(()=>{c();_();O7e=g({id:278611351,name:\"SKALE | Razor Network\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/turbulent-unique-scheat\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com\"}},contracts:{}})});var U7e,D7e=x(()=>{c();_();U7e=g({id:1187947933,name:\"SKALE Base\",nativeCurrency:{name:\"Credits\",symbol:\"CREDIT\",decimals:18},rpcUrls:{default:{http:[\"https://skale-base.skalenodes.com/v1/base\"],webSocket:[\"wss://skale-base.skalenodes.com/v1/ws/base\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://skale-base-explorer.skalenodes.com/\"}},testnet:!0})});var H7e,L7e=x(()=>{c();_();H7e=g({id:324705682,name:\"SKALE Base Sepolia Testnet\",nativeCurrency:{name:\"Credits\",symbol:\"CREDIT\",decimals:18},rpcUrls:{default:{http:[\"https://base-sepolia-testnet.skalenodes.com/v1/base-testnet\"],webSocket:[\"wss://base-sepolia-testnet.skalenodes.com/v1/ws/base-testnet\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://base-sepolia-testnet-explorer.skalenodes.com/\"}},testnet:!0})});var z7e,F7e=x(()=>{c();_();z7e=g({id:1350216234,name:\"SKALE Titan Hub\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.skalenodes.com/v1/parallel-stormy-spica\"],webSocket:[\"wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2076458}}})});var j7e,q7e=x(()=>{c();_();j7e=g({id:1020352220,name:\"SKALE Titan Testnet\",nativeCurrency:{name:\"sFUEL\",symbol:\"sFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.skalenodes.com/v1/aware-fake-trim-testnet\"],webSocket:[\"wss://testnet.skalenodes.com/v1/ws/aware-fake-trim-testnet\"]}},blockExplorers:{default:{name:\"SKALE Explorer\",url:\"https://aware-fake-trim-testnet.explorer.testnet.skalenodes.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:104072}},testnet:!0})});var $7e,G7e=x(()=>{c();_();$7e=g({id:984123,name:\"Forma Sketchpad\",network:\"sketchpad\",nativeCurrency:{symbol:\"TIA\",name:\"TIA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.sketchpad-1.forma.art\"],webSocket:[\"wss://ws.sketchpad-1.forma.art\"]}},blockExplorers:{default:{name:\"Sketchpad Explorer\",url:\"https://explorer.sketchpad-1.forma.art\"}},testnet:!0})});var xC,V7e,K7e=x(()=>{c();it();_();xC=1,V7e=g({...de,id:2192,network:\"snaxchain-mainnet\",name:\"SnaxChain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.snaxchain.io\"]}},blockExplorers:{default:{name:\"Snax Explorer\",url:\"https://explorer.snaxchain.io\",apiUrl:\"https://explorer.snaxchain.io/api\"}},contracts:{...de.contracts,disputeGameFactory:{[xC]:{address:\"0x472562Fcf26D6b2793f8E0b0fB660ba0E5e08A46\"}},l2OutputOracle:{[xC]:{address:\"0x2172e492Fc807F5d5645D0E3543f139ECF539294\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[xC]:{address:\"0x79f446D024d74D0Bb6E699C131c703463c5D65E9\"}},l1StandardBridge:{[xC]:{address:\"0x6534Bdb6b5c060d3e6aa833433333135eFE8E0aA\"}}},sourceId:xC})});var vC,W7e,Q7e=x(()=>{c();it();_();vC=11155111,W7e=g({...de,id:13001,network:\"snaxchain-testnet\",name:\"SnaxChain Testnet\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://testnet.snaxchain.io\"]}},blockExplorers:{default:{name:\"Snax Explorer\",url:\"https://testnet-explorer.snaxchain.io\",apiUrl:\"https://testnet-explorer.snaxchain.io/api\"}},contracts:{...de.contracts,disputeGameFactory:{[vC]:{address:\"0x206a75d89d45F146C54020F132FF93bEDD09f55E\"}},l2OutputOracle:{[vC]:{address:\"0x60e3A368a4cdCEf85ffB964e372726F56A46221e\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[vC]:{address:\"0xb5afdd0E8dDF081Ef90e8A3e0c7b5798e66E954E\"}},l1StandardBridge:{[vC]:{address:\"0xbd37E1a59D4C00C9A46F75018dffd84061bC5f74\"}}},testnet:!0,sourceId:vC})});var Z7e,J7e=x(()=>{c();_();Z7e=g({id:5031,name:\"Somnia\",nativeCurrency:{name:\"Somnia\",symbol:\"SOMI\",decimals:18},rpcUrls:{default:{http:[\"https://api.infra.mainnet.somnia.network\"]}},blockExplorers:{default:{name:\"Somnia Explorer\",url:\"https://explorer.somnia.network\",apiUrl:\"https://explorer.somnia.network/api\"}},testnet:!1})});var Y7e,X7e=x(()=>{c();_();Y7e=g({id:50312,name:\"Somnia Testnet\",nativeCurrency:{name:\"STT\",symbol:\"STT\",decimals:18},rpcUrls:{default:{http:[\"https://dream-rpc.somnia.network\"]}},blockExplorers:{default:{name:\"Somnia Testnet Explorer\",url:\"https://shannon-explorer.somnia.network/\",apiUrl:\"https://shannon-explorer.somnia.network/api\"}},contracts:{multicall3:{address:\"0x841b8199E6d3Db3C6f264f6C2bd8848b3cA64223\",blockCreated:71314235}},testnet:!0})});var wC,e9e,t9e=x(()=>{c();it();_();wC=1,e9e=g({...de,id:1868,name:\"Soneium Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.soneium.org\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://soneium.blockscout.com\",apiUrl:\"https://soneium.blockscout.com/api\"}},contracts:{...de.contracts,disputeGameFactory:{[wC]:{address:\"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0\"}},l2OutputOracle:{[wC]:{address:\"0x0000000000000000000000000000000000000000\"}},portal:{[wC]:{address:\"0x88e529a6ccd302c948689cd5156c83d4614fae92\",blockCreated:7061266}},l1StandardBridge:{[wC]:{address:\"0xeb9bf100225c214efc3e7c651ebbadcf85177607\",blockCreated:7061266}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1}},sourceId:wC})});var EC,r9e,n9e=x(()=>{c();it();_();EC=11155111,r9e=g({...de,id:1946,name:\"Soneium Minato Testnet\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.minato.soneium.org\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://soneium-minato.blockscout.com\",apiUrl:\"https://soneium-minato.blockscout.com/api\"}},contracts:{...de.contracts,disputeGameFactory:{[EC]:{address:\"0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01\"}},l2OutputOracle:{[EC]:{address:\"0x710e5286C746eC38beeB7538d0146f60D27be343\"}},portal:{[EC]:{address:\"0x65ea1489741A5D72fFdD8e6485B216bBdcC15Af3\",blockCreated:6466136}},l1StandardBridge:{[EC]:{address:\"0x5f5a404A5edabcDD80DB05E8e54A78c9EBF000C2\",blockCreated:6466136}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1}},testnet:!0,sourceId:EC})});var o9e,a9e=x(()=>{c();_();o9e=g({id:19,name:\"Songbird Canary-Network\",nativeCurrency:{decimals:18,name:\"Songbird\",symbol:\"SGB\"},rpcUrls:{default:{http:[\"https://songbird-api.flare.network/ext/C/rpc\"]}},blockExplorers:{default:{name:\"Songbird Explorer\",url:\"https://songbird-explorer.flare.network\",apiUrl:\"https://songbird-explorer.flare.network/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:13382504}}})});var i9e,s9e=x(()=>{c();_();i9e=g({id:16,name:\"Songbird Testnet Coston\",nativeCurrency:{decimals:18,name:\"Coston Flare\",symbol:\"CFLR\"},rpcUrls:{default:{http:[\"https://coston-api.flare.network/ext/C/rpc\"]}},blockExplorers:{default:{name:\"Coston Explorer\",url:\"https://coston-explorer.flare.network\",apiUrl:\"https://coston-explorer.flare.network/api\"}},testnet:!0})});var c9e,u9e=x(()=>{c();_();c9e=g({id:146,name:\"Sonic\",blockTime:630,nativeCurrency:{decimals:18,name:\"Sonic\",symbol:\"S\"},rpcUrls:{default:{http:[\"https://rpc.soniclabs.com\"]}},blockExplorers:{default:{name:\"Sonic Explorer\",url:\"https://sonicscan.org\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:60}},testnet:!1})});var l9e,f9e=x(()=>{c();_();l9e=g({id:57054,name:\"Sonic Blaze Testnet\",nativeCurrency:{decimals:18,name:\"Sonic\",symbol:\"S\"},rpcUrls:{default:{http:[\"https://rpc.blaze.soniclabs.com\"]}},blockExplorers:{default:{name:\"Sonic Blaze Testnet Explorer\",url:\"https://testnet.sonicscan.org\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1100}},testnet:!0})});var d9e,p9e=x(()=>{c();_();d9e=g({id:64165,name:\"Sonic Testnet\",nativeCurrency:{decimals:18,name:\"Sonic\",symbol:\"S\"},rpcUrls:{default:{http:[\"https://rpc.testnet.soniclabs.com\"]}},blockExplorers:{default:{name:\"Sonic Testnet Explorer\",url:\"https://testnet.soniclabs.com/\"}},testnet:!0})});var m9e,h9e=x(()=>{c();_();Xi();m9e=g({...bn,blockTime:200,id:50104,name:\"Sophon\",nativeCurrency:{decimals:18,name:\"Sophon\",symbol:\"SOPH\"},rpcUrls:{default:{http:[\"https://rpc.sophon.xyz\"],webSocket:[\"wss://rpc.sophon.xyz/ws\"]}},blockExplorers:{default:{name:\"Sophon Block Explorer\",url:\"https://explorer.sophon.xyz\"}},contracts:{multicall3:{address:\"0x5f4867441d2416cA88B1b3fd38f21811680CD2C8\",blockCreated:116}},testnet:!1})});var y9e,b9e=x(()=>{c();_();Xi();y9e=g({...bn,blockTime:200,id:531050104,name:\"Sophon Testnet\",nativeCurrency:{decimals:18,name:\"Sophon\",symbol:\"SOPH\"},rpcUrls:{default:{http:[\"https://rpc.testnet.sophon.xyz\"],webSocket:[\"wss://rpc.testnet.sophon.xyz/ws\"]}},blockExplorers:{default:{name:\"Sophon Block Explorer\",url:\"https://explorer.testnet.sophon.xyz\"}},contracts:{multicall3:{address:\"0x83c04d112adedA2C6D9037bb6ecb42E7f0b108Af\",blockCreated:15642}},testnet:!0})});var g9e,x9e=x(()=>{c();_();g9e=g({id:100021,name:\"Sova\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.sova.io\"]}},blockExplorers:{default:{name:\"Sova Block Explorer\",url:\"hhttps://explorer.sova.io\"}},testnet:!1})});var v9e,w9e=x(()=>{c();_();v9e=g({id:120893,name:\"Sova Network Sepolia\",nativeCurrency:{decimals:18,name:\"Sepolia Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.testnet.sova.io\"]}},blockExplorers:{default:{name:\"Sova Sepolia Explorer\",url:\"https://explorer.testnet.sova.io\"}},testnet:!0})});var E9e,A9e=x(()=>{c();_();E9e=g({id:88882,name:\"Chiliz Spicy Testnet\",network:\"chiliz-spicy-Testnet\",nativeCurrency:{decimals:18,name:\"CHZ\",symbol:\"CHZ\"},rpcUrls:{default:{http:[\"https://spicy-rpc.chiliz.com\",\"https://chiliz-spicy-rpc.publicnode.com\"],webSocket:[\"wss://spicy-rpc-ws.chiliz.com\",\"wss://chiliz-spicy-rpc.publicnode.com\"]}},blockExplorers:{default:{name:\"Chiliz Explorer\",url:\"http://spicy-explorer.chiliz.com\",apiUrl:\"http://spicy-explorer.chiliz.com/api\"}},testnet:!0})});var S9e,C9e=x(()=>{c();_();S9e=g({id:988,name:\"Stable Mainnet\",blockTime:700,nativeCurrency:{name:\"USDT0\",symbol:\"USDT0\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.stable.xyz\"],webSocket:[\"wss://rpc.stable.xyz\"]}},blockExplorers:{default:{name:\"Stablescan\",url:\"https://stablescan.xyz\",apiUrl:\"https://api.etherscan.io/v2/api?chainid=988\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2423647}},testnet:!1})});var T9e,_9e=x(()=>{c();_();T9e=g({id:2201,name:\"Stable Testnet\",blockTime:700,nativeCurrency:{name:\"USDT0\",symbol:\"USDT0\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.stable.xyz\"],webSocket:[\"wss://rpc.testnet.stable.xyz\"]}},blockExplorers:{default:{name:\"Stablescan\",url:\"https://testnet.stablescan.xyz\",apiUrl:\"https://api.etherscan.io/v2/api?chainid=2201\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:22364430}},testnet:!0})});var NK,k9e=x(()=>{c();rR();_();NK=g({...Zw,id:1660990954,name:\"Status Network Sepolia\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://public.sepolia.rpc.status.network\"],webSocket:[\"wss://public.sepolia.rpc.status.network/ws\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://sepoliascan.status.network\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1578364}},testnet:!0})});var B9e,I9e=x(()=>{c();_();B9e=g({id:1234,name:\"Step Network\",nativeCurrency:{name:\"FITFI\",symbol:\"FITFI\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.step.network\"]}},blockExplorers:{default:{name:\"Step Scan\",url:\"https://stepscan.io\"}},testnet:!1})});var P9e,R9e=x(()=>{c();_();P9e=g({id:1514,name:\"Story\",nativeCurrency:{decimals:18,name:\"IP Token\",symbol:\"IP\"},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:340998},ensRegistry:{address:\"0x5dc881dda4e4a8d312be3544ad13118d1a04cb17\",blockCreated:648924},ensUniversalResolver:{address:\"0xddfb18888a9466688235887dec2a10c4f5effee9\",blockCreated:649114}},rpcUrls:{default:{http:[\"https://mainnet.storyrpc.io\"]}},blockExplorers:{default:{name:\"Story explorer\",url:\"https://storyscan.io\",apiUrl:\"https://storyscan.io/api/v2\"}},ensTlds:[\".ip\"],testnet:!1})});var M9e,O9e=x(()=>{c();_();M9e=g({id:1315,name:\"Story Aeneid\",network:\"story-aeneid\",nativeCurrency:{decimals:18,name:\"IP\",symbol:\"IP\"},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1792},ensRegistry:{address:\"0x5dC881dDA4e4a8d312be3544AD13118D1a04Cb17\",blockCreated:1322033},ensUniversalResolver:{address:\"0x6D3B3F99177FB2A5de7F9E928a9BD807bF7b5BAD\",blockCreated:1322097}},rpcUrls:{default:{http:[\"https://aeneid.storyrpc.io\"]}},blockExplorers:{default:{name:\"Story Aeneid Explorer\",url:\"https://aeneid.storyscan.io\",apiUrl:\"https://aeneid.storyscan.io/api/v2\"}},ensTlds:[\".ip\"],testnet:!0})});var N9e,U9e=x(()=>{c();_();N9e=g({id:1516,name:\"Story Odyssey\",nativeCurrency:{decimals:18,name:\"IP\",symbol:\"IP\"},rpcUrls:{default:{http:[\"https://rpc.odyssey.storyrpc.io\"]}},blockExplorers:{default:{name:\"Story Odyssey Explorer\",url:\"https://odyssey.storyscan.xyz\"}},testnet:!0})});var D9e,H9e=x(()=>{c();_();D9e=g({id:1513,name:\"Story Testnet\",nativeCurrency:{decimals:18,name:\"IP\",symbol:\"IP\"},rpcUrls:{default:{http:[\"https://testnet.storyrpc.io\"]}},blockExplorers:{default:{name:\"Story Testnet Explorer\",url:\"https://testnet.storyscan.xyz\"}},testnet:!0})});var L9e,z9e=x(()=>{c();_();L9e=g({id:105105,name:\"Stratis Mainnet\",network:\"stratis\",nativeCurrency:{name:\"Stratis\",symbol:\"STRAX\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.stratisevm.com\"]}},blockExplorers:{default:{name:\"Stratis Explorer\",url:\"https://explorer.stratisevm.com\"}}})});var F9e,j9e=x(()=>{c();_();F9e=g({id:964,name:\"Subtensor EVM\",nativeCurrency:{decimals:18,name:\"TAO\",symbol:\"TAO\"},rpcUrls:{default:{http:[\"https://lite.chain.opentensor.ai\"]}},blockExplorers:{default:{name:\"Taostats EVM Explorer\",url:\"https://evm.taostats.io\",apiUrl:\"https://evm.taostats.io/api\"}},testnet:!1})});var q9e,$9e=x(()=>{c();_();q9e=g({id:8866,name:\"SuperLumio\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.lumio.io\"]}},blockExplorers:{default:{name:\"Lumio explorer\",url:\"https://explorer.lumio.io\"}},testnet:!1})});var G9e,V9e=x(()=>{c();_();G9e=g({id:55244,name:\"Superposition\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.superposition.so\"]}},blockExplorers:{default:{name:\"Superposition Explorer\",url:\"https://explorer.superposition.so\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:39}},testnet:!1})});var AC,K9e,W9e=x(()=>{c();it();_();AC=1,K9e=g({...de,id:5330,name:\"Superseed\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.superseed.xyz\"]}},blockExplorers:{default:{name:\"Superseed Explorer\",url:\"https://explorer.superseed.xyz\",apiUrl:\"https://explorer.superseed.xyz/api/v2\"}},contracts:{...de.contracts,disputeGameFactory:{[AC]:{address:\"0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0\",blockCreated:20737481}},l2OutputOracle:{[AC]:{address:\"0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949\",blockCreated:20737481}},portal:{[AC]:{address:\"0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07\",blockCreated:20737481}},l1StandardBridge:{[AC]:{address:\"0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede\",blockCreated:20737481}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"}},sourceId:AC})});var UK,Q9e,Z9e=x(()=>{c();it();_();UK=11155111,Q9e=g({...de,id:53302,name:\"Superseed Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.superseed.xyz\"]}},blockExplorers:{default:{name:\"Superseed Sepolia Explorer\",url:\"https://sepolia-explorer.superseed.xyz\",apiUrl:\"https://sepolia-explorer.superseed.xyz/api/v2\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"},portal:{[UK]:{address:\"0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB\",blockCreated:5523438}},l1StandardBridge:{[UK]:{address:\"0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C\",blockCreated:5523442}}},testnet:!0,sourceId:UK})});var J9e,Y9e=x(()=>{c();_();J9e=g({id:763375,name:\"Surge Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://l2-rpc.hoodi.surge.wtf\"],webSocket:[\"wss://l2-ws.hoodi.surge.wtf\"]}},blockExplorers:{default:{name:\"Surge Testnet Blockscout\",url:\"https://explorer.hoodi.surge.wtf\"}},testnet:!0})});var X9e,eBe=x(()=>{c();_();X9e=g({id:254,name:\"Swan Chain Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet-rpc.swanchain.org\"]}},blockExplorers:{default:{name:\"Swan Explorer\",url:\"https://swanscan.io\"}},testnet:!1})});var tBe,rBe=x(()=>{c();_();tBe=g({id:20241133,name:\"Swan Proxima Testnet\",nativeCurrency:{name:\"Swan Ether\",symbol:\"sETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-proxima.swanchain.io\"]}},blockExplorers:{default:{name:\"Swan Explorer\",url:\"https://proxima-explorer.swanchain.io\"}},testnet:!0})});var nBe,oBe=x(()=>{c();_();nBe=g({id:2024,name:\"Swan Saturn Testnet\",nativeCurrency:{name:\"Swan Ether\",symbol:\"sETH\",decimals:18},rpcUrls:{default:{http:[\"https://saturn-rpc.swanchain.io\"]}},blockExplorers:{default:{name:\"Swan Explorer\",url:\"https://saturn-explorer.swanchain.io\"}},testnet:!0})});var aBe,iBe=x(()=>{c();it();_();aBe=g({...de,id:1923,name:\"Swellchain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://swell-mainnet.alt.technology\"]}},blockExplorers:{default:{name:\"Swell Explorer\",url:\"https://explorer.swellnetwork.io\",apiUrl:\"https://explorer.swellnetwork.io/api\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1}}})});var sBe,cBe=x(()=>{c();it();_();sBe=g({...de,id:1924,name:\"Swellchain Testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://swell-testnet.alt.technology\"]}},blockExplorers:{default:{name:\"Swellchain Testnet Explorer\",url:\"https://swell-testnet-explorer.alt.technology\",apiUrl:\"https://swell-testnet-explorer.alt.technology/api\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1}},testnet:!0})});var uBe,lBe=x(()=>{c();_();uBe=g({id:94,name:\"SwissDLT Mainnet\",nativeCurrency:{decimals:18,name:\"BCTS\",symbol:\"BCTS\"},rpcUrls:{default:{http:[\"https://rpc.swissdlt.ch\"]}},blockExplorers:{default:{name:\"SwissDLT Explorer\",url:\"https://explorer.swissdlt.ch\"}},testnet:!1})});var fBe,dBe=x(()=>{c();_();fBe=g({id:57,name:\"Syscoin Mainnet\",nativeCurrency:{decimals:18,name:\"Syscoin\",symbol:\"SYS\"},rpcUrls:{default:{http:[\"https://rpc.syscoin.org\"],webSocket:[\"wss://rpc.syscoin.org/wss\"]}},blockExplorers:{default:{name:\"SyscoinExplorer\",url:\"https://explorer.syscoin.org\",apiUrl:\"https://explorer.syscoin.org/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:287139}}})});var pBe,mBe=x(()=>{c();_();pBe=g({id:5700,name:\"Syscoin Tanenbaum Testnet\",nativeCurrency:{decimals:18,name:\"Syscoin\",symbol:\"SYS\"},rpcUrls:{default:{http:[\"https://rpc.tanenbaum.io\"],webSocket:[\"wss://rpc.tanenbaum.io/wss\"]}},blockExplorers:{default:{name:\"SyscoinTestnetExplorer\",url:\"https://tanenbaum.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:271288}},testnet:!0})});var hBe,yBe=x(()=>{c();_();hBe=g({id:239,name:\"TAC\",nativeCurrency:{name:\"TAC\",symbol:\"TAC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.ankr.com/tac\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://tac.blockscout.com\",apiUrl:\"https://tac.blockscout.com/api\"},native:{name:\"TAC Explorer\",url:\"https://explorer.tac.build\",apiUrl:\"https://explorer.tac.build/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0}}})});var bBe,gBe=x(()=>{c();_();bBe=g({id:2391,name:\"TAC SPB Testnet\",nativeCurrency:{name:\"TAC\",symbol:\"TAC\",decimals:18},rpcUrls:{default:{http:[\"https://spb.rpc.tac.build\"]}},blockExplorers:{default:{name:\"TAC\",url:\"https://spb.explorer.tac.build\",apiUrl:\"https://spb.explorer.tac.build/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:471429}},testnet:!0})});var xBe,vBe=x(()=>{c();_();xBe=g({id:167e3,name:\"Taiko Mainnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.mainnet.taiko.xyz\"],webSocket:[\"wss://ws.mainnet.taiko.xyz\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://taikoscan.io\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:11269}}})});var wBe,EBe=x(()=>{c();_();wBe=g({id:167009,name:\"Taiko Hekla L2\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hekla.taiko.xyz\"]}},blockExplorers:{default:{name:\"Taikoscan\",url:\"https://hekla.taikoscan.network\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:59757}},testnet:!0})});var ABe,SBe=x(()=>{c();_();ABe=g({id:167013,name:\"Taiko Hoodi\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.hoodi.taiko.xyz\"],webSocket:[\"wss://ws.hoodi.taiko.xyz\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://hoodi.taikoscan.io/\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:581116}},testnet:!0})});var CBe,TBe=x(()=>{c();_();CBe=g({id:167007,name:\"Taiko Jolnir (Alpha-5 Testnet)\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.jolnir.taiko.xyz\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.jolnir.taiko.xyz\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:732706}},testnet:!0})});var _Be,kBe=x(()=>{c();_();_Be=g({id:167008,name:\"Taiko Katla (Alpha-6 Testnet)\",network:\"tko-katla\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.katla.taiko.xyz\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.katla.taiko.xyz\"}},testnet:!0})});var BBe,IBe=x(()=>{c();_();BBe=g({id:167005,name:\"Taiko (Alpha-3 Testnet)\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.test.taiko.xyz\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.test.taiko.xyz\"}},testnet:!0})});var PBe,RBe=x(()=>{c();_();PBe=g({id:841,name:\"Taraxa Mainnet\",nativeCurrency:{name:\"Tara\",symbol:\"TARA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.mainnet.taraxa.io\"]}},blockExplorers:{default:{name:\"Taraxa Explorer\",url:\"https://explorer.mainnet.taraxa.io\"}}})});var MBe,OBe=x(()=>{c();_();MBe=g({id:842,name:\"Taraxa Testnet\",nativeCurrency:{name:\"Tara\",symbol:\"TARA\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.taraxa.io\"]}},blockExplorers:{default:{name:\"Taraxa Explorer\",url:\"https://explorer.testnet.taraxa.io\"}},testnet:!0})});var NBe,UBe=x(()=>{c();_();NBe=g({id:10218,name:\"Tea Sepolia\",nativeCurrency:{name:\"Sepolia Tea\",symbol:\"TEA\",decimals:18},rpcUrls:{default:{http:[\"https://tea-sepolia.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Tea Sepolia Explorer\",url:\"https://sepolia.tea.xyz\"}},testnet:!0})});var DBe,HBe=x(()=>{c();_();DBe=g({id:2017,name:\"Telcoin Adiri Testnet\",nativeCurrency:{name:\"Telcoin\",symbol:\"TEL\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.telcoin.network\"]}},blockExplorers:{default:{name:\"telscan\",url:\"https://telscan.io\"}},testnet:!0})});var LBe,zBe=x(()=>{c();_();LBe=g({id:40,name:\"Telos\",nativeCurrency:{decimals:18,name:\"Telos\",symbol:\"TLOS\"},rpcUrls:{default:{http:[\"https://rpc.telos.net\"]}},blockExplorers:{default:{name:\"Teloscan\",url:\"https://www.teloscan.io/\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:246530709}}})});var FBe,jBe=x(()=>{c();_();FBe=g({id:41,name:\"Telos\",nativeCurrency:{decimals:18,name:\"Telos\",symbol:\"TLOS\"},rpcUrls:{default:{http:[\"https://rpc.testnet.telos.net\"]}},blockExplorers:{default:{name:\"Teloscan (testnet)\",url:\"https://testnet.teloscan.io/\"}},testnet:!0})});var qBe,amt,imt,$Be,GBe,smt,cmt,oDr,VBe,umt,lmt,aDr,KBe=x(()=>{c();Lv();bG();$v();qBe=cm(BigInt(\"0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff\")),amt=qBe.create(BigInt(\"-3\")),imt=BigInt(\"0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b\"),$Be=Gv({a:amt,b:imt,Fp:qBe,n:BigInt(\"0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551\"),Gx:BigInt(\"0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296\"),Gy:BigInt(\"0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5\"),h:BigInt(1),lowS:!1},Tc),GBe=cm(BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff\")),smt=GBe.create(BigInt(\"-3\")),cmt=BigInt(\"0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef\"),oDr=Gv({a:smt,b:cmt,Fp:GBe,n:BigInt(\"0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973\"),Gx:BigInt(\"0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7\"),Gy:BigInt(\"0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f\"),h:BigInt(1),lowS:!1},wB),VBe=cm(BigInt(\"0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\")),umt=VBe.create(BigInt(\"-3\")),lmt=BigInt(\"0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00\"),aDr=Gv({a:umt,b:lmt,Fp:VBe,n:BigInt(\"0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409\"),Gx:BigInt(\"0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66\"),Gy:BigInt(\"0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650\"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},vB)});var WBe,QBe=x(()=>{c();KBe();WBe=$Be});function yR(e){let{hash:t,payload:r,publicKey:n,signature:o}=e;return WBe.verify(o,r instanceof Uint8Array?r:Ds(r),X1(n).substring(2),{lowS:!0,...t?{prehash:!0}:{}})}var DK=x(()=>{c();QBe();pu();Rw()});function JBe(e){let t=e.replace(/=+$/,\"\"),r=t.length,n=new Uint8Array(r+3);fmt.encodeInto(t+\"===\",n);for(let s=0,u=0;s<t.length;s+=4,u+=3){let f=(bR[n[s]]<<18)+(bR[n[s+1]]<<12)+(bR[n[s+2]]<<6)+bR[n[s+3]];n[u]=f>>16,n[u+1]=f>>8&255,n[u+2]=f&255}let o=(r>>2)*3+(r%4&&r%4-1);return new Uint8Array(n.buffer,0,o)}var fmt,mDr,bR,YBe=x(()=>{c();fmt=new TextEncoder,mDr=Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[t,e.charCodeAt(0)])),bR={...Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63}});function XBe(e){let{challenge:t,metadata:r,origin:n,publicKey:o,rpId:s,signature:u}=e,{authenticatorData:f,clientDataJSON:d,userVerificationRequired:m}=r,h=Ds(f);if(h.length<37)return!1;if(s!==void 0){let B=h.slice(0,32),R=RV(Il(s),{as:\"Bytes\"});if(!ppe(B,R))return!1}let y=h[32];if((y&1)!==1||m&&(y&4)!==4||(y&8)!==8&&(y&16)===16)return!1;let v=JSON.parse(d);if(v.type!==\"webauthn.get\"||!v.challenge||sn(JBe(v.challenge))!==t||n!==void 0&&!(Array.isArray(n)?n:[n]).includes(v.origin))return!1;let E=RV(XB(d),{as:\"Bytes\"}),C=dpe(h,E);return yR({hash:!0,payload:C,publicKey:o,signature:u})}var eIe=x(()=>{c();YBe();pu();$0();Tr();DK()});function tIe(e){return XBe(e)}var rIe=x(()=>{c();eIe()});var Ls={};Wn(Ls,{CoercionError:()=>Y0,InvalidSerializedError:()=>J0,MissingPropertiesError:()=>SC,VerificationError:()=>xR,assert:()=>FK,deserialize:()=>Am,extractAddress:()=>vR,extractPublicKey:()=>jK,from:()=>X0,fromRpc:()=>ey,getType:()=>CC,magicBytes:()=>ug,serialize:()=>ty,toRpc:()=>ry,types:()=>hmt,validate:()=>ymt,verify:()=>bmt});function FK(e){let t=CC(e);if(t===\"secp256k1\"){og(e.signature);return}if(t===\"p256\"){let r=e,n=[];if(typeof r.signature?.r!=\"bigint\"&&n.push(\"signature.r\"),typeof r.signature?.s!=\"bigint\"&&n.push(\"signature.s\"),typeof r.prehash!=\"boolean\"&&n.push(\"prehash\"),r.publicKey?(typeof r.publicKey.x!=\"bigint\"&&n.push(\"publicKey.x\"),typeof r.publicKey.y!=\"bigint\"&&n.push(\"publicKey.y\")):n.push(\"publicKey\"),n.length>0)throw new SC({envelope:e,missing:n,type:\"p256\"});return}if(t===\"webAuthn\"){let r=e,n=[];if(typeof r.signature?.r!=\"bigint\"&&n.push(\"signature.r\"),typeof r.signature?.s!=\"bigint\"&&n.push(\"signature.s\"),r.metadata?(r.metadata.authenticatorData||n.push(\"metadata.authenticatorData\"),r.metadata.clientDataJSON||n.push(\"metadata.clientDataJSON\")):n.push(\"metadata\"),r.publicKey?(typeof r.publicKey.x!=\"bigint\"&&n.push(\"publicKey.x\"),typeof r.publicKey.y!=\"bigint\"&&n.push(\"publicKey.y\")):n.push(\"publicKey\"),n.length>0)throw new SC({envelope:e,missing:n,type:\"webAuthn\"});return}if(t===\"keychain\"){FK(e.inner);return}}function vR(e){let{signature:t,root:r}=e;return t.type===\"keychain\"?r?t.userAddress:vR({...e,signature:t.inner}):Yi(jK(e))}function jK(e){let{payload:t,signature:r}=e;switch(r.type){case\"secp256k1\":return mP({payload:t,signature:r.signature});case\"p256\":case\"webAuthn\":return r.publicKey;case\"keychain\":return jK({payload:t,signature:r.inner})}}function Am(e){let t=e.endsWith(ug.slice(2))?vt(e,0,-Cr(ug)):e;if(Cr(t)===65){let u=uP(t);return og(u),{signature:u,type:\"secp256k1\"}}let n=vt(t,0,1),o=vt(t,1),s=Cr(o);if(n===HK){if(s!==129)throw new J0({reason:`Invalid P256 signature envelope size: expected 129 bytes, got ${s} bytes`,serialized:t});return{publicKey:{prefix:4,x:br(vt(o,64,96)),y:br(vt(o,96,128))},prehash:Bc(vt(o,128,129))!==0,signature:{r:br(vt(o,0,32)),s:br(vt(o,32,64))},type:\"p256\"}}if(n===LK){if(s<128)throw new J0({reason:`Invalid WebAuthn signature envelope size: expected at least 128 bytes, got ${s} bytes`,serialized:t});let u=s-128,f=vt(o,0,u),d,m;for(let h=37;h<u;h++){let y=KG(vt(f,h));if(y.startsWith(\"{\")&&y.endsWith(\"}\"))try{JSON.parse(y),d=vt(f,0,h),m=y;break}catch{}}if(!d||!m)throw new J0({reason:\"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON\",serialized:t});return{publicKey:{prefix:4,x:br(vt(o,u+64,u+96)),y:br(vt(o,u+96,u+128))},metadata:{authenticatorData:d,clientDataJSON:m},signature:{r:br(vt(o,u,u+32)),s:br(vt(o,u+32,u+64))},type:\"webAuthn\"}}if(n===zK||n===gR){let u=vt(o,0,20),f=Am(vt(o,20));return{userAddress:u,inner:f,type:\"keychain\",version:n===gR?\"v2\":\"v1\"}}throw new J0({reason:`Unknown signature type identifier: ${n}. Expected ${HK} (P256), ${LK} (WebAuthn), ${zK} (Keychain V1), or ${gR} (Keychain V2)`,serialized:t})}function X0(e,t){if(typeof e==\"string\")return Am(e);if(typeof e==\"object\"&&e!==null&&\"r\"in e&&\"s\"in e&&\"yParity\"in e)return{signature:e,type:\"secp256k1\"};let r=CC(e);return{...e,...r===\"p256\"?{prehash:e.prehash}:{},...r===\"keychain\"?{...typeof e==\"object\"&&e!==null&&\"version\"in e&&e.version?{}:{version:\"v2\"},...typeof e==\"object\"&&\"keyId\"in e&&e.keyId?{}:(()=>{let n=e.inner;return n.type===\"p256\"||n.type===\"webAuthn\"?{keyId:Yi(n.publicKey)}:n.type===\"secp256k1\"&&t?.payload?{keyId:Yi(mP({payload:t.payload,signature:n.signature}))}:{}})()}:{},type:r}}function ey(e){if(e.type===\"secp256k1\")return{signature:rC(e),type:\"secp256k1\"};if(e.type===\"p256\")return{prehash:e.preHash,publicKey:{prefix:4,x:br(e.pubKeyX),y:br(e.pubKeyY)},signature:{r:br(e.r),s:br(e.s)},type:\"p256\"};if(e.type===\"webAuthn\"){let t=e.webauthnData,r=Cr(t),n,o;for(let s=37;s<r;s++){let u=KG(vt(t,s));if(u.startsWith(\"{\")&&u.endsWith(\"}\"))try{JSON.parse(u),n=vt(t,0,s),o=u;break}catch{}}if(!n||!o)throw new J0({reason:\"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON\",serialized:t});return{metadata:{authenticatorData:n,clientDataJSON:o},publicKey:{prefix:4,x:br(e.pubKeyX),y:br(e.pubKeyY)},signature:{r:br(e.r),s:br(e.s)},type:\"webAuthn\"}}if(e.type===\"keychain\"||\"userAddress\"in e&&\"signature\"in e)return{type:\"keychain\",userAddress:e.userAddress,inner:ey(e.signature),...e.keyId?{keyId:e.keyId}:{},...e.version?{version:e.version}:{}};throw new Y0({envelope:e})}function CC(e){if(typeof e!=\"object\"||e===null)throw new Y0({envelope:e});if(\"type\"in e&&e.type)return e.type;if(\"signature\"in e&&!(\"publicKey\"in e)&&typeof e.signature==\"object\"&&e.signature!==null&&\"r\"in e.signature&&\"s\"in e.signature&&\"yParity\"in e.signature||\"r\"in e&&\"s\"in e&&\"yParity\"in e)return\"secp256k1\";if(\"signature\"in e&&\"prehash\"in e&&\"publicKey\"in e&&typeof e.prehash==\"boolean\")return\"p256\";if(\"signature\"in e&&\"metadata\"in e&&\"publicKey\"in e)return\"webAuthn\";if(\"userAddress\"in e&&\"inner\"in e)return\"keychain\";throw new Y0({envelope:e})}function ty(e,t={}){let r=CC(e);if(r===\"secp256k1\")return Jt(The(e.signature),t.magic?ug:\"0x\");if(r===\"p256\"){let n=e;return Jt(HK,we(n.signature.r,{size:32}),we(n.signature.s,{size:32}),we(n.publicKey.x,{size:32}),we(n.publicKey.y,{size:32}),we(n.prehash?1:0,{size:1}),t.magic?ug:\"0x\")}if(r===\"webAuthn\"){let n=e,o=Jt(n.metadata.authenticatorData,Il(n.metadata.clientDataJSON));return Jt(LK,o,we(n.signature.r,{size:32}),we(n.signature.s,{size:32}),we(n.publicKey.x,{size:32}),we(n.publicKey.y,{size:32}),t.magic?ug:\"0x\")}if(r===\"keychain\"){let n=e,o=n.version===\"v1\"?zK:gR;return Jt(o,n.userAddress,ty(n.inner),t.magic?ug:\"0x\")}throw new Y0({envelope:e})}function ry(e){let t=CC(e);if(t===\"secp256k1\")return{...Dw(e.signature),type:\"secp256k1\"};if(t===\"p256\"){let r=e;return{preHash:r.prehash,pubKeyX:we(r.publicKey.x,{size:32}),pubKeyY:we(r.publicKey.y,{size:32}),r:we(r.signature.r,{size:32}),s:we(r.signature.s,{size:32}),type:\"p256\"}}if(t===\"webAuthn\"){let r=e,n=Jt(r.metadata.authenticatorData,Il(r.metadata.clientDataJSON));return{pubKeyX:we(r.publicKey.x,{size:32}),pubKeyY:we(r.publicKey.y,{size:32}),r:we(r.signature.r,{size:32}),s:we(r.signature.s,{size:32}),type:\"webAuthn\",webauthnData:n}}if(t===\"keychain\"){let r=e;return{type:\"keychain\",userAddress:r.userAddress,signature:ry(r.inner),...r.keyId?{keyId:r.keyId}:{},...r.version?{version:r.version}:{}}}throw new Y0({envelope:e})}function ymt(e){try{return FK(e),!0}catch{return!1}}function bmt(e,t){let{payload:r}=t,n=(()=>{if(t.address)return t.address;if(t.publicKey)return Yi(t.publicKey)})();if(!n)return!1;let o=X0(e);if(o.type===\"secp256k1\")return n?Ihe({address:n,payload:r,signature:o.signature}):!1;if(o.type===\"p256\"){let s=Yi(o.publicKey);return WS(s,n)?yR({hash:o.prehash,publicKey:o.publicKey,payload:r,signature:o.signature}):!1}if(o.type===\"webAuthn\"){let s=Yi(o.publicKey);return WS(s,n)?tIe({challenge:H0(r),metadata:o.metadata,publicKey:o.publicKey,signature:o.signature}):!1}throw new xR(`Unable to verify signature envelope of type \"${o.type}\".`)}var HK,LK,zK,gR,ug,hmt,Y0,SC,J0,xR,Jw=x(()=>{c();bu();ca();Tr();gw();DK();nC();K0();rIe();HK=\"0x01\",LK=\"0x02\",zK=\"0x03\",gR=\"0x04\",ug=\"0x7777777777777777777777777777777777777777777777777777777777777777\",hmt=[\"secp256k1\",\"p256\",\"webAuthn\"];Y0=class extends De{constructor({envelope:t}){super(`Unable to coerce value (\\\\`${Bl(t)}\\\\`) to a valid signature envelope.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureEnvelope.CoercionError\"})}},SC=class extends De{constructor({envelope:t,missing:r,type:n}){super(`Signature envelope of type \"${n}\" is missing required properties: ${r.map(o=>`\\\\`${o}\\\\``).join(\", \")}.\\n\\nProvided: ${Bl(t)}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureEnvelope.MissingPropertiesError\"})}},J0=class extends De{constructor({reason:t,serialized:r}){super(`Unable to deserialize signature envelope: ${t}`,{metaMessages:[`Serialized: ${r}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureEnvelope.InvalidSerializedError\"})}},xR=class extends De{constructor(){super(...arguments),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureEnvelope.VerificationError\"})}}});function ua(e){return e.startsWith(\"tempo\")?gmt(e).address:e}function gmt(e){if(!e.startsWith(\"tempox\"))throw new qK({address:e});let t=e.slice(6);return VG(t,{strict:!0}),{address:eg(t)}}var qK,lg=x(()=>{c();bu();ca();Tr();qK=class extends De{constructor({address:t}){super(`Tempo address \"${t}\" has an invalid prefix. Expected \"tempox\".`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TempoAddress.InvalidPrefixError\"})}}});function xmt(e,t={}){if(typeof e.chainId==\"string\")return nIe(e);let r={...e,address:ua(e.address)};return t.signature?{...r,signature:t.signature}:r}function nIe(e){let{address:t,chainId:r,nonce:n}=e,o=ey(e.signature);return{address:t,chainId:Number(r),nonce:BigInt(n),signature:o}}function wR(e){return e.map(t=>nIe(t))}function vmt(e){let[t,r,n,o]=e,s={address:r,chainId:t===\"0x\"?0:Number(t),nonce:n===\"0x\"?0n:BigInt(n)};return o&&(s.signature=Am(o)),xmt(s)}function oIe(e){let t=[];for(let r of e)t.push(vmt(r));return t}function wmt(e){let{address:t,chainId:r,nonce:n,signature:o}=e;return{address:t,chainId:we(r),nonce:we(n),signature:ry(o)}}function ER(e){return e.map(t=>wmt(t))}function Emt(e){let{address:t,chainId:r,nonce:n}=e,o=e.signature?ty(e.signature):void 0;return[r?we(r):\"0x\",t,n?we(n):\"0x\",...o?[o]:[]]}function aIe(e){if(!e||e.length===0)return[];let t=[];for(let r of e)t.push(Emt(r));return t}var TC=x(()=>{c();Tr();Jw();lg()});var ny={};Wn(ny,{deserialize:()=>Smt,from:()=>sIe,fromRpc:()=>Xw,fromTuple:()=>SR,getSignPayload:()=>Amt,hash:()=>cIe,serialize:()=>Cmt,toRpc:()=>kC,toTuple:()=>BC});function sIe(e,t={}){if(\"keyId\"in e)return Xw(e);let r=e,n={...r,address:ua(r.address),...r.limits?{limits:r.limits.map(o=>({...o,token:ua(o.token)}))}:{},...r.scopes?{scopes:r.scopes.map(o=>({...o,address:ua(o.address),selector:GK(o.selector),...o.recipients?{recipients:o.recipients.map(s=>ua(s))}:{}}))}:{}};return t.signature?{...n,signature:X0(t.signature)}:n}function Xw(e){let{allowedCalls:t,chainId:r,keyId:n,expiry:o,limits:s,keyType:u}=e,f=ey(e.signature),d=t?t.flatMap(m=>!m.selectorRules||m.selectorRules.length===0?[{address:m.target}]:m.selectorRules.map(h=>({address:m.target,selector:_mt(h.selector),...h.recipients&&h.recipients.length>0?{recipients:h.recipients}:{}}))):void 0;return{address:n,chainId:r===\"0x\"?0n:br(r),...o!=null?{expiry:Number(o)}:{},limits:s?.map(m=>({token:m.token,limit:BigInt(m.limit),...m.period&&_C(m.period)>0?{period:_C(m.period)}:{}})),...d?{scopes:d}:{},signature:f,type:u}}function SR(e){let[t,r]=e,[n,o,s,u,f,d]=t,m=(()=>{switch(o){case\"0x\":case\"0x00\":return\"secp256k1\";case\"0x01\":return\"p256\";case\"0x02\":return\"webAuthn\";default:throw new Error(`Invalid key type: ${o}`)}})(),h={address:s,expiry:typeof u<\"u\"&&_C(u)||void 0,type:m,chainId:n===\"0x\"?0n:br(n),...typeof u<\"u\"?{expiry:_C(u)||void 0}:{},...typeof f<\"u\"&&Array.isArray(f)&&f.length>0?{limits:f.map(y=>{let[v,E,C]=y;return{token:v,limit:Tmt(E),...typeof C<\"u\"?{period:_C(C)}:{}}})}:{},...typeof d<\"u\"&&Array.isArray(d)?{scopes:d.flatMap(y=>{let[v,E]=y;return!Array.isArray(E)||E.length===0?[{address:v}]:E.map(C=>{let[B,R]=C;return{address:v,selector:B,...Array.isArray(R)&&R.length>0?{recipients:R}:{}}})})}:{}};return r&&(h.signature=Am(r)),sIe(h)}function Amt(e){return cIe(e)}function Smt(e){let t=sP(e);return SR(t)}function cIe(e){let[t]=BC(e),r=ng(t);return Rc(r)}function Cmt(e){let t=BC(e);return ng(t)}function kC(e){let{address:t,scopes:r,chainId:n,expiry:o,limits:s,type:u,signature:f}=e,d=(()=>{if(!r)return;let m=new Map;for(let h of r){let y=h.address;m.has(y)||m.set(y,[]),h.selector&&m.get(y).push({selector:GK(h.selector),...h.recipients&&h.recipients.length>0?{recipients:h.recipients}:{}})}return[...m.entries()].map(([h,y])=>({target:h,...y.length>0?{selectorRules:y}:{}}))})();return{chainId:n===0n?\"0x\":we(n),expiry:typeof o==\"number\"?we(o):null,keyId:ua(t),keyType:u,limits:s?.map(({token:m,limit:h,period:y})=>({token:m,limit:we(h),...y?{period:$K(y)}:{}})),signature:ry(f),...d?{allowedCalls:d}:{}}}function BC(e){let{address:t,chainId:r,scopes:n,expiry:o,limits:s}=e,u=e.signature?ty(e.signature):void 0,f=(()=>{switch(e.type){case\"secp256k1\":return\"0x\";case\"p256\":return\"0x01\";case\"webAuthn\":return\"0x02\";default:throw new Error(`Invalid key type: ${e.type}`)}})(),d=s?.map(y=>{let v=[y.token,iIe(y.limit)];return y.period&&y.period>0&&v.push($K(y.period)),v}),m=(()=>{if(!n)return;let y=new Map;for(let v of n){let E=v.address;y.has(E)||y.set(E,[]),v.selector&&y.get(E).push([GK(v.selector),v.recipients??[]])}return[...y.entries()].map(([v,E])=>[v,E.map(([C,B])=>[C,B])])})();return[[iIe(r),f,t,o!=null&&o!==0||d||m?$K(o??0):void 0,d||m?d??[]:void 0,m].filter(y=>typeof y<\"u\"),...u?[u]:[]]}function iIe(e){return e===0n?\"0x\":we(e)}function $K(e){return e===0?\"0x\":we(e)}function Tmt(e){return e===\"0x\"?0n:BigInt(e)}function _C(e){return e===\"0x\"?0:Bc(e)}function _mt(e){return typeof e==\"string\"?e:Array.isArray(e)?sn(new Uint8Array(e)):e}function GK(e){if(e)return e.startsWith(\"0x\")?e:sC(e)}var IC=x(()=>{c();AP();$0();Tr();cP();Jw();lg()});var uIe=x(()=>{c()});function CR(e){if(typeof e==\"string\"){let r=ua(e);return mi(r),r}let t=we(e,{size:18});return Jt(Bmt,t)}var Bmt,TR=x(()=>{c();bu();Tr();lg();Bmt=\"0x20c0\"});var lIe=x(()=>{c()});var fIe=x(()=>{c()});var dIe=x(()=>{c()});var pIe=x(()=>{c()});function mIe(e,t={}){if(!e)return null;let r=tC(e),n={...e,...r};return n.blockNumber=e.blockNumber?BigInt(e.blockNumber):null,n.data=e.input,n.gas=BigInt(e.gas??0n),n.nonce=BigInt(e.nonce??0n),n.transactionIndex=e.transactionIndex?Number(e.transactionIndex):null,n.value=BigInt(e.value??0n),e.authorizationList&&(n.authorizationList=fP(e.authorizationList)),e.chainId&&(n.chainId=Number(e.chainId)),e.gasPrice&&(n.gasPrice=BigInt(e.gasPrice)),e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=BigInt(e.maxFeePerBlobGas)),e.maxFeePerGas&&(n.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.type&&(n.type=RC[e.type]??e.type),r&&(n.v=Hw(r.yParity)),n}function hIe(e,t){let r={};return r.blockHash=e.blockHash,r.blockNumber=typeof e.blockNumber==\"bigint\"?we(e.blockNumber):null,r.from=e.from,r.gas=we(e.gas??0n),r.hash=e.hash,r.input=e.input,r.nonce=we(e.nonce??0n),r.to=e.to,r.transactionIndex=e.transactionIndex?we(e.transactionIndex):null,r.type=PC[e.type]??e.type,r.value=we(e.value??0n),e.accessList&&(r.accessList=e.accessList),e.authorizationList&&(r.authorizationList=dP(e.authorizationList)),e.blobVersionedHashes&&(r.blobVersionedHashes=e.blobVersionedHashes),e.chainId&&(r.chainId=we(e.chainId)),typeof e.gasPrice==\"bigint\"&&(r.gasPrice=we(e.gasPrice)),typeof e.maxFeePerBlobGas==\"bigint\"&&(r.maxFeePerBlobGas=we(e.maxFeePerBlobGas)),typeof e.maxFeePerGas==\"bigint\"&&(r.maxFeePerGas=we(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas==\"bigint\"&&(r.maxPriorityFeePerGas=we(e.maxPriorityFeePerGas)),typeof e.r==\"bigint\"&&(r.r=we(e.r,{size:32})),typeof e.s==\"bigint\"&&(r.s=we(e.s,{size:32})),typeof e.v==\"number\"&&(r.v=we(e.v,{size:1})),typeof e.yParity==\"number\"&&(r.yParity=e.yParity===0?\"0x0\":\"0x1\"),r}var PC,RC,KK=x(()=>{c();pP();Tr();K0();PC={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"},RC={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"}});var e6={};Wn(e6,{fromRpc:()=>Mmt,fromRpcType:()=>kR,toRpc:()=>Omt,toRpcType:()=>_R});function Mmt(e,t={}){if(!e)return null;let r=mIe(e);return r.type=kR[e.type],e.aaAuthorizationList&&(r.authorizationList=wR(e.aaAuthorizationList),delete r.aaAuthorizationList),e.calls&&(r.calls=e.calls.map(n=>({to:n.to,value:n.value&&n.value!==\"0x\"?BigInt(n.value):void 0,data:n.input||n.data||\"0x\"}))),e.feeToken&&(r.feeToken=e.feeToken),e.nonceKey&&(r.nonceKey=BigInt(e.nonceKey)),e.signature&&(r.signature=ey(e.signature)),e.validAfter&&(r.validAfter=Number(e.validAfter)),e.validBefore&&(r.validBefore=Number(e.validBefore)),e.keyAuthorization&&(r.keyAuthorization=Xw(e.keyAuthorization)),e.feePayerSignature&&(r.feePayerSignature=rC(e.feePayerSignature),r.feePayerSignature.v=Hw(r.feePayerSignature.yParity)),r}function Omt(e,t){let r=hIe(e);return r.type=_R[e.type],e.authorizationList&&(r.aaAuthorizationList=ER(e.authorizationList)),e.calls&&(r.calls=e.calls.map(n=>({to:n.to,value:n.value?we(n.value):void 0,data:n.data}))),e.feeToken&&(r.feeToken=e.feeToken),e.keyAuthorization&&(r.keyAuthorization=kC(e.keyAuthorization)),e.feePayerSignature&&(r.feePayerSignature=Dw(e.feePayerSignature),r.feePayerSignature.v=we(Hw(e.feePayerSignature?.yParity))),e.signature&&(r.signature=ry(e.signature)),typeof e.validAfter==\"number\"&&(r.validAfter=we(e.validAfter)),typeof e.validBefore==\"number\"&&(r.validBefore=we(e.validBefore)),r}var _R,kR,WK=x(()=>{c();Tr();K0();KK();TC();IC();Jw();_R={...PC,tempo:\"0x76\"},kR={...RC,\"0x76\":\"tempo\"}});var bIe,gIe,xIe=x(()=>{c();bIe={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"},gIe={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"}});var DDr,HDr,vIe=x(()=>{c();xIe();DDr={...bIe,\"0x76\":\"tempo\"},HDr={...gIe,tempo:\"0x76\"}});function wIe(e){let t=e;return typeof e.authorizationList<\"u\"&&(t.authorizationList=fP(e.authorizationList)),typeof e.chainId<\"u\"&&(t.chainId=Bc(e.chainId)),typeof e.gas<\"u\"&&(t.gas=br(e.gas)),typeof e.gasPrice<\"u\"&&(t.gasPrice=br(e.gasPrice)),typeof e.maxFeePerBlobGas<\"u\"&&(t.maxFeePerBlobGas=br(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<\"u\"&&(t.maxFeePerGas=br(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<\"u\"&&(t.maxPriorityFeePerGas=br(e.maxPriorityFeePerGas)),typeof e.nonce<\"u\"&&(t.nonce=br(e.nonce)),typeof e.type<\"u\"&&(t.type=RC[e.type]||e.type),typeof e.value<\"u\"&&(t.value=br(e.value)),t}function EIe(e){let t={};return typeof e.accessList<\"u\"&&(t.accessList=e.accessList),typeof e.authorizationList<\"u\"&&(t.authorizationList=dP(e.authorizationList)),typeof e.blobVersionedHashes<\"u\"&&(t.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<\"u\"&&(t.blobs=e.blobs),typeof e.chainId<\"u\"&&(t.chainId=we(e.chainId)),typeof e.data<\"u\"?(t.data=e.data,t.input=e.data):typeof e.input<\"u\"&&(t.data=e.input,t.input=e.input),typeof e.from<\"u\"&&(t.from=e.from),typeof e.gas<\"u\"&&(t.gas=we(e.gas)),typeof e.gasPrice<\"u\"&&(t.gasPrice=we(e.gasPrice)),typeof e.maxFeePerBlobGas<\"u\"&&(t.maxFeePerBlobGas=we(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<\"u\"&&(t.maxFeePerGas=we(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<\"u\"&&(t.maxPriorityFeePerGas=we(e.maxPriorityFeePerGas)),typeof e.maxPriorityFeePerGas<\"u\"&&(t.maxPriorityFeePerGas=we(e.maxPriorityFeePerGas)),typeof e.nonce<\"u\"&&(t.nonce=we(e.nonce)),typeof e.to<\"u\"&&(t.to=e.to),typeof e.type<\"u\"&&(t.type=PC[e.type]||e.type),typeof e.value<\"u\"&&(t.value=we(e.value)),t}var AIe=x(()=>{c();pP();Tr();KK()});var BR={};Wn(BR,{fromRpc:()=>Hmt,toRpc:()=>Lmt});function Hmt(e){let{authorizationList:t,...r}=e,n=wIe(r);return typeof e.type<\"u\"&&(n.type=kR[e.type]||n.type),e.authorizationList&&(n.authorizationList=wR(e.authorizationList)),e.calls&&(n.calls=e.calls.map(o=>{let s={to:o.to,data:o.data};return o.value&&o.value!==\"0x\"&&(s.value=br(o.value)),s})),typeof e.feeToken<\"u\"&&(n.feeToken=e.feeToken),e.keyAuthorization&&(n.keyAuthorization=Xw(e.keyAuthorization)),typeof e.validBefore<\"u\"&&(n.validBefore=Bc(e.validBefore)),typeof e.validAfter<\"u\"&&(n.validAfter=Bc(e.validAfter)),typeof e.nonceKey<\"u\"&&(n.nonceKey=br(e.nonceKey)),n}function Lmt(e){let t=EIe({...e,authorizationList:void 0});e.authorizationList&&(t.authorizationList=ER(e.authorizationList)),e.calls?t.calls=e.calls.map(n=>({to:n.to?ua(n.to):n.to,value:n.value?we(n.value):\"0x\",data:n.data??\"0x\"})):(e.to||e.data||e.value)&&(t.calls=[{to:e.to?ua(e.to):void 0,value:e.value?we(e.value):\"0x\",data:e.data??\"0x\"}]),typeof e.feeToken<\"u\"&&(t.feeToken=CR(e.feeToken)),e.keyAuthorization&&(t.keyAuthorization=kC(e.keyAuthorization)),typeof e.validBefore<\"u\"&&(t.validBefore=we(e.validBefore)),typeof e.validAfter<\"u\"&&(t.validAfter=we(e.validAfter));let r=(()=>{if(e.nonceKey===\"random\")return vpe(6);if(typeof e.nonceKey==\"bigint\")return we(e.nonceKey)})();return r&&(t.nonceKey=r),(typeof e.calls<\"u\"||typeof e.feePayer<\"u\"||typeof e.feeToken<\"u\"||typeof e.keyAuthorization<\"u\"||typeof e.nonceKey<\"u\"||typeof e.validBefore<\"u\"||typeof e.validAfter<\"u\"||e.type===\"tempo\")&&(t.type=_R.tempo,delete t.data,delete t.input,delete t.to,delete t.value),t}var SIe=x(()=>{c();Tr();AIe();TC();IC();lg();TR();WK()});function CIe(e){let t=[];for(let r=0;r<e.length;r++){let[n,o]=e[r];n&&mi(n,{strict:!1}),t.push({address:n,storageKeys:o.map(s=>dhe(s)?s:NS(s))})}return t}function TIe(e){if(!e||e.length===0)return[];let t=[];for(let{address:r,storageKeys:n}of e){for(let o=0;o<n.length;o++)if(Cr(n[o])!==32)throw new QK({storageKey:n[o]});r&&mi(r,{strict:!1}),t.push([r,n])}return t}var QK,_Ie=x(()=>{c();bu();ca();$0();Tr();QK=class extends De{constructor({storageKey:t}){super(`Size for storage key \"${t}\" is invalid. Expected 32 bytes. Got ${Cr(t)} bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AccessList.InvalidStorageKeySizeError\"})}}});function Fmt(e,t=0){let r=e.toString(),n=r.startsWith(\"-\");n&&(r=r.slice(1)),r=r.padStart(t,\"0\");let[o,s]=[r.slice(0,r.length-t),r.slice(r.length-t)];return s=s.replace(/(0+)$/,\"\"),`${n?\"-\":\"\"}${o||\"0\"}${s?`.${s}`:\"\"}`}function IR(e,t=\"wei\"){return Fmt(e,kIe.gwei-kIe[t])}var kIe,BIe=x(()=>{c();kIe={wei:0,gwei:9,szabo:12,finney:15,ether:18}});var PR,RR,MR,OR,IIe=x(()=>{c();ca();BIe();PR=class extends De{constructor({feeCap:t}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`/\\\\`maxPriorityFeePerGas\\\\`${t?` = ${IR(t)} gwei`:\"\"}) cannot be higher than the maximum allowed value (2^256-1).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionEnvelope.FeeCapTooHighError\"})}},RR=class extends De{constructor({chainId:t}){super(typeof t<\"u\"?`Chain ID \"${t}\" is invalid.`:\"Chain ID is invalid.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionEnvelope.InvalidChainIdError\"})}},MR=class extends De{constructor({attributes:t,serialized:r,type:n}){let o=Object.entries(t).map(([s,u])=>typeof u>\"u\"?s:void 0).filter(Boolean);super(`Invalid serialized transaction of type \"${n}\" was provided.`,{metaMessages:[`Serialized Transaction: \"${r}\"`,o.length>0?`Missing Attributes: ${o.join(\", \")}`:\"\"].filter(Boolean)}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionEnvelope.InvalidSerializedError\"})}},OR=class extends De{constructor({maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super([`The provided tip (\\\\`maxPriorityFeePerGas\\\\`${t?` = ${IR(t)} gwei`:\"\"}) cannot be higher than the fee cap (\\\\`maxFeePerGas\\\\`${r?` = ${IR(r)} gwei`:\"\"}).`].join(`\\n`)),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionEnvelope.TipAboveFeeCapError\"})}}});var xd={};Wn(xd,{CallsEmptyError:()=>NR,InvalidValidityWindowError:()=>UR,assert:()=>MC,deserialize:()=>MIe,feePayerMagic:()=>PIe,from:()=>JK,getFeePayerSignPayload:()=>$mt,getSignPayload:()=>XK,hash:()=>OIe,serialize:()=>YK,serializedType:()=>RIe,type:()=>ZK,validate:()=>Gmt});function MC(e){let{calls:t,chainId:r,maxFeePerGas:n,maxPriorityFeePerGas:o,validBefore:s,validAfter:u}=e;if(!t||t.length===0)throw new NR;if(typeof s==\"number\"&&typeof u==\"number\"&&s<=u)throw new UR({validBefore:s,validAfter:u});if(t)for(let f of t)f.to&&mi(f.to,{strict:!1});if(r<=0)throw new RR({chainId:r});if(n&&BigInt(n)>2n**256n-1n)throw new PR({feeCap:n});if(o&&n&&o>n)throw new OR({maxFeePerGas:n,maxPriorityFeePerGas:o})}function MIe(e){let t=sP(vt(e,1)),[r,n,o,s,u,f,d,m,h,y,v,E,C,B,R]=t,M=Array.isArray(B)?B:void 0,U=M?R:B;if(!(t.length===13||t.length===14||t.length===15))throw new MR({attributes:{authorizationList:C,chainId:r,maxPriorityFeePerGas:n,maxFeePerGas:o,gas:s,calls:u,accessList:f,keyAuthorization:M,nonceKey:d,nonce:m,validBefore:h,validAfter:y,feeToken:v,feePayerSignatureOrSender:E,...t.length>12?{signature:U}:{}},serialized:e,type:ZK});let O={chainId:Number(r),type:ZK};if(Zi(s)&&s!==\"0x\"&&(O.gas=BigInt(s)),Zi(m)&&(O.nonce=m===\"0x\"?0n:BigInt(m)),Zi(o)&&o!==\"0x\"&&(O.maxFeePerGas=BigInt(o)),Zi(n)&&n!==\"0x\"&&(O.maxPriorityFeePerGas=BigInt(n)),Zi(d)&&(O.nonceKey=d===\"0x\"?0n:BigInt(d)),Zi(h)&&h!==\"0x\"&&(O.validBefore=Number(h)),Zi(y)&&y!==\"0x\"&&(O.validAfter=Number(y)),Zi(v)&&v!==\"0x\"&&(O.feeToken=v),u&&u!==\"0x\"){let j=u;O.calls=j.map(K=>{let[G,J,Y]=K,W={};return G&&G!==\"0x\"&&(W.to=G),J&&J!==\"0x\"&&(W.value=BigInt(J)),Y&&Y!==\"0x\"&&(W.data=Y),W})}f?.length!==0&&f!==\"0x\"&&(O.accessList=CIe(f)),C?.length!==0&&C!==\"0x\"&&(O.authorizationList=oIe(C)),E!==\"0x\"&&E!==void 0&&(E===\"0x00\"||tg(E)?(O.feePayerSignature=null,tg(E)&&(O.from=E)):O.feePayerSignature=eK(E)),M&&(O.keyAuthorization=SR(M));let N=U?Am(U):void 0;if(N&&(O={...O,signature:N}),!O.from&&N)try{O.from=vR({payload:XK(JK(O)),signature:N,root:!0})}catch{}return MC(O),O}function JK(e,t={}){let{feePayerSignature:r,signature:n}=t,o=typeof e==\"string\"?MIe(e):e;return o.from&&(o.from=ua(o.from)),o.calls&&(o.calls=o.calls.map(s=>({...s,...s.to?{to:ua(s.to)}:{}}))),MC(o),{...o,...n?{signature:X0(n)}:{},...r?{feePayerSignature:V0(r)}:{},type:\"tempo\"}}function YK(e,t={}){let{accessList:r,authorizationList:n,calls:o,chainId:s,feeToken:u,gas:f,keyAuthorization:d,nonce:m,nonceKey:h,maxFeePerGas:y,maxPriorityFeePerGas:v,validBefore:E,validAfter:C}=e;MC(e);let B=TIe(r),R=t.signature||e.signature,M=aIe(n),U=o.map(K=>[K.to?ua(K.to):\"0x\",K.value?we(K.value):\"0x\",K.data??\"0x\"]),O=!1,N=(()=>{if(t.sender)return t.sender;if(t.format===\"feePayer\"&&R){let G=X0(R);if(G.type===\"keychain\")return G.userAddress;if(G.type===\"p256\"||G.type===\"webAuthn\")return Yi(G.publicKey);if(G.type===\"secp256k1\")return ig({payload:XK(JK(e)),signature:G.signature})}let K=typeof t.feePayerSignature<\"u\"?t.feePayerSignature:e.feePayerSignature;return K===null?(O=!0,\"0x00\"):K?lP(K):\"0x\"})(),j=[we(s),v?we(v):\"0x\",y?we(y):\"0x\",f?we(f):\"0x\",U,B,h?we(h):\"0x\",m?we(m):\"0x\",typeof E==\"number\"?we(E):\"0x\",typeof C==\"number\"?we(C):\"0x\",!O&&(typeof u==\"bigint\"||typeof u==\"string\")?CR(u):\"0x\",N,M,...d?[BC(d)]:[],...R?[ty(X0(R))]:[]];return Jt(t.format===\"feePayer\"?PIe:RIe,ng(j))}function XK(e,t={}){let r=OIe(e,{presign:!0});return t.from?Rc(Jt(\"0x04\",r,ua(t.from))):r}function OIe(e,t={}){let r=YK({...e,...t.presign?{signature:void 0,...e.feePayerSignature!==void 0?{feePayerSignature:null}:{}}:{}});return Rc(r)}function $mt(e,t){let r=ua(t.sender),n=YK({...e,signature:void 0},{sender:r,format:\"feePayer\"});return Rc(n)}function Gmt(e){try{return MC(e),!0}catch{return!1}}var PIe,RIe,ZK,NR,UR,NIe=x(()=>{c();_Ie();bu();ca();$0();Tr();cP();nC();K0();IIe();TC();IC();Jw();lg();TR();PIe=\"0x78\",RIe=\"0x76\",ZK=\"tempo\";NR=class extends De{constructor(){super(\"Calls list cannot be empty.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TxEnvelopeTempo.CallsEmptyError\"})}},UR=class extends De{constructor({validBefore:t,validAfter:r}){super(`validBefore (${t}) must be greater than validAfter (${r}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TxEnvelopeTempo.InvalidValidityWindowError\"})}}});var UIe=x(()=>{c()});var DIe=x(()=>{c()});var HIe=x(()=>{c()});var LIe=x(()=>{c()});var OC=x(()=>{c();TC();IC();uIe();lIe();fIe();Jw();lg();dIe();TR();pIe();WK();vIe();SIe();NIe();UIe();DIe();HIe();LIe()});var Zmt,Jmt,Ymt,Xmt,eht,tht,rht,vd,nht,oht,aht,iht,XDr,zIe=x(()=>{c();Zmt=[{name:\"name\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"string\"}]},{name:\"symbol\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"string\"}]},{name:\"decimals\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint8\"}]},{name:\"totalSupply\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"quoteToken\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"address\"}]},{name:\"nextQuoteToken\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"address\"}]},{name:\"balanceOf\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"}],outputs:[{type:\"uint256\"}]},{name:\"transfer\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"to\"},{type:\"uint256\",name:\"amount\"}],outputs:[{type:\"bool\"}]},{name:\"approve\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"spender\"},{type:\"uint256\",name:\"amount\"}],outputs:[{type:\"bool\"}]},{name:\"allowance\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"owner\"},{type:\"address\",name:\"spender\"}],outputs:[{type:\"uint256\"}]},{name:\"transferFrom\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"from\"},{type:\"address\",name:\"to\"},{type:\"uint256\",name:\"amount\"}],outputs:[{type:\"bool\"}]},{name:\"mint\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"to\"},{type:\"uint256\",name:\"amount\"}],outputs:[]},{name:\"burn\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint256\",name:\"amount\"}],outputs:[]},{name:\"currency\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"string\"}]},{name:\"supplyCap\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"paused\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bool\"}]},{name:\"transferPolicyId\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"burnBlocked\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"from\"},{type:\"uint256\",name:\"amount\"}],outputs:[]},{name:\"mintWithMemo\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"to\"},{type:\"uint256\",name:\"amount\"},{type:\"bytes32\",name:\"memo\"}],outputs:[]},{name:\"burnWithMemo\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint256\",name:\"amount\"},{type:\"bytes32\",name:\"memo\"}],outputs:[]},{name:\"transferWithMemo\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"to\"},{type:\"uint256\",name:\"amount\"},{type:\"bytes32\",name:\"memo\"}],outputs:[]},{name:\"transferFromWithMemo\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"from\"},{type:\"address\",name:\"to\"},{type:\"uint256\",name:\"amount\"},{type:\"bytes32\",name:\"memo\"}],outputs:[{type:\"bool\"}]},{name:\"changeTransferPolicyId\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"newPolicyId\"}],outputs:[]},{name:\"setSupplyCap\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint256\",name:\"newSupplyCap\"}],outputs:[]},{name:\"pause\",type:\"function\",stateMutability:\"nonpayable\",inputs:[],outputs:[]},{name:\"unpause\",type:\"function\",stateMutability:\"nonpayable\",inputs:[],outputs:[]},{name:\"setNextQuoteToken\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"newQuoteToken\"}],outputs:[]},{name:\"completeQuoteTokenUpdate\",type:\"function\",stateMutability:\"nonpayable\",inputs:[],outputs:[]},{name:\"PAUSE_ROLE\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bytes32\"}]},{name:\"UNPAUSE_ROLE\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bytes32\"}]},{name:\"ISSUER_ROLE\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bytes32\"}]},{name:\"BURN_BLOCKED_ROLE\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bytes32\"}]},{name:\"permit\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"owner\"},{type:\"address\",name:\"spender\"},{type:\"uint256\",name:\"value\"},{type:\"uint256\",name:\"deadline\"},{type:\"uint8\",name:\"v\"},{type:\"bytes32\",name:\"r\"},{type:\"bytes32\",name:\"s\"}],outputs:[]},{name:\"nonces\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"owner\"}],outputs:[{type:\"uint256\"}]},{name:\"DOMAIN_SEPARATOR\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bytes32\"}]},{name:\"distributeReward\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint256\",name:\"amount\"}],outputs:[]},{name:\"setRewardRecipient\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"recipient\"}],outputs:[]},{name:\"claimRewards\",type:\"function\",stateMutability:\"nonpayable\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"optedInSupply\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint128\"}]},{name:\"globalRewardPerToken\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"userRewardInfo\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"}],outputs:[{type:\"tuple\",components:[{type:\"address\",name:\"rewardRecipient\"},{type:\"uint256\",name:\"rewardPerToken\"},{type:\"uint256\",name:\"rewardBalance\"}]}]},{name:\"getPendingRewards\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"}],outputs:[{type:\"uint128\"}]},{name:\"Transfer\",type:\"event\",inputs:[{type:\"address\",name:\"from\",indexed:!0},{type:\"address\",name:\"to\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"Approval\",type:\"event\",inputs:[{type:\"address\",name:\"owner\",indexed:!0},{type:\"address\",name:\"spender\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"Mint\",type:\"event\",inputs:[{type:\"address\",name:\"to\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"Burn\",type:\"event\",inputs:[{type:\"address\",name:\"from\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"BurnBlocked\",type:\"event\",inputs:[{type:\"address\",name:\"from\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"TransferWithMemo\",type:\"event\",inputs:[{type:\"address\",name:\"from\",indexed:!0},{type:\"address\",name:\"to\",indexed:!0},{type:\"uint256\",name:\"amount\"},{type:\"bytes32\",name:\"memo\",indexed:!0}]},{name:\"TransferPolicyUpdate\",type:\"event\",inputs:[{type:\"address\",name:\"updater\",indexed:!0},{type:\"uint64\",name:\"newPolicyId\",indexed:!0}]},{name:\"SupplyCapUpdate\",type:\"event\",inputs:[{type:\"address\",name:\"updater\",indexed:!0},{type:\"uint256\",name:\"newSupplyCap\",indexed:!0}]},{name:\"PauseStateUpdate\",type:\"event\",inputs:[{type:\"address\",name:\"updater\",indexed:!0},{type:\"bool\",name:\"isPaused\"}]},{name:\"NextQuoteTokenSet\",type:\"event\",inputs:[{type:\"address\",name:\"updater\",indexed:!0},{type:\"address\",name:\"nextQuoteToken\",indexed:!0}]},{name:\"QuoteTokenUpdate\",type:\"event\",inputs:[{type:\"address\",name:\"updater\",indexed:!0},{type:\"address\",name:\"newQuoteToken\",indexed:!0}]},{name:\"RewardDistributed\",type:\"event\",inputs:[{type:\"address\",name:\"funder\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"RewardRecipientSet\",type:\"event\",inputs:[{type:\"address\",name:\"holder\",indexed:!0},{type:\"address\",name:\"recipient\",indexed:!0}]},{name:\"InsufficientBalance\",type:\"error\",inputs:[{type:\"uint256\",name:\"available\"},{type:\"uint256\",name:\"required\"},{type:\"address\",name:\"token\"}]},{name:\"InsufficientAllowance\",type:\"error\",inputs:[]},{name:\"SupplyCapExceeded\",type:\"error\",inputs:[]},{name:\"InvalidSupplyCap\",type:\"error\",inputs:[]},{name:\"InvalidPayload\",type:\"error\",inputs:[]},{name:\"StringTooLong\",type:\"error\",inputs:[]},{name:\"PolicyForbids\",type:\"error\",inputs:[]},{name:\"InvalidRecipient\",type:\"error\",inputs:[]},{name:\"ContractPaused\",type:\"error\",inputs:[]},{name:\"InvalidCurrency\",type:\"error\",inputs:[]},{name:\"InvalidQuoteToken\",type:\"error\",inputs:[]},{name:\"TransfersDisabled\",type:\"error\",inputs:[]},{name:\"InvalidAmount\",type:\"error\",inputs:[]},{name:\"NoOptedInSupply\",type:\"error\",inputs:[]},{name:\"Unauthorized\",type:\"error\",inputs:[]},{name:\"ProtectedAddress\",type:\"error\",inputs:[]},{name:\"InvalidToken\",type:\"error\",inputs:[]},{name:\"Uninitialized\",type:\"error\",inputs:[]},{name:\"InvalidTransferPolicyId\",type:\"error\",inputs:[]},{name:\"PermitExpired\",type:\"error\",inputs:[]},{name:\"InvalidSignature\",type:\"error\",inputs:[]},{name:\"hasRole\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"},{type:\"bytes32\",name:\"role\"}],outputs:[{type:\"bool\"}]},{name:\"getRoleAdmin\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"role\"}],outputs:[{type:\"bytes32\"}]},{name:\"grantRole\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"bytes32\",name:\"role\"},{type:\"address\",name:\"account\"}],outputs:[]},{name:\"revokeRole\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"bytes32\",name:\"role\"},{type:\"address\",name:\"account\"}],outputs:[]},{name:\"renounceRole\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"bytes32\",name:\"role\"}],outputs:[]},{name:\"setRoleAdmin\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"bytes32\",name:\"role\"},{type:\"bytes32\",name:\"adminRole\"}],outputs:[]},{name:\"RoleMembershipUpdated\",type:\"event\",inputs:[{type:\"bytes32\",name:\"role\",indexed:!0},{type:\"address\",name:\"account\",indexed:!0},{type:\"address\",name:\"sender\",indexed:!0},{type:\"bool\",name:\"hasRole\"}]},{name:\"RoleAdminUpdated\",type:\"event\",inputs:[{type:\"bytes32\",name:\"role\",indexed:!0},{type:\"bytes32\",name:\"newAdminRole\",indexed:!0},{type:\"address\",name:\"sender\",indexed:!0}]},{name:\"Unauthorized\",type:\"error\",inputs:[]}],Jmt=[{name:\"getActiveValidators\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"tuple[]\",name:\"validators\",components:[{type:\"bytes32\",name:\"publicKey\"},{type:\"address\",name:\"validatorAddress\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"feeRecipient\"},{type:\"uint64\",name:\"index\"},{type:\"uint64\",name:\"addedAtHeight\"},{type:\"uint64\",name:\"deactivatedAtHeight\"}]}]},{name:\"getInitializedAtHeight\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"owner\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"address\"}]},{name:\"validatorCount\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"validatorByIndex\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"index\"}],outputs:[{type:\"tuple\",components:[{type:\"bytes32\",name:\"publicKey\"},{type:\"address\",name:\"validatorAddress\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"feeRecipient\"},{type:\"uint64\",name:\"index\"},{type:\"uint64\",name:\"addedAtHeight\"},{type:\"uint64\",name:\"deactivatedAtHeight\"}]}]},{name:\"validatorByAddress\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"validatorAddress\"}],outputs:[{type:\"tuple\",components:[{type:\"bytes32\",name:\"publicKey\"},{type:\"address\",name:\"validatorAddress\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"feeRecipient\"},{type:\"uint64\",name:\"index\"},{type:\"uint64\",name:\"addedAtHeight\"},{type:\"uint64\",name:\"deactivatedAtHeight\"}]}]},{name:\"validatorByPublicKey\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"publicKey\"}],outputs:[{type:\"tuple\",components:[{type:\"bytes32\",name:\"publicKey\"},{type:\"address\",name:\"validatorAddress\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"feeRecipient\"},{type:\"uint64\",name:\"index\"},{type:\"uint64\",name:\"addedAtHeight\"},{type:\"uint64\",name:\"deactivatedAtHeight\"}]}]},{name:\"getNextNetworkIdentityRotationEpoch\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"isInitialized\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"bool\"}]},{name:\"addValidator\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"validatorAddress\"},{type:\"bytes32\",name:\"publicKey\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"feeRecipient\"},{type:\"bytes\",name:\"signature\"}],outputs:[{type:\"uint64\",name:\"index\"}]},{name:\"deactivateValidator\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"idx\"}],outputs:[]},{name:\"rotateValidator\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"idx\"},{type:\"bytes32\",name:\"publicKey\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"bytes\",name:\"signature\"}],outputs:[]},{name:\"setFeeRecipient\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"idx\"},{type:\"address\",name:\"feeRecipient\"}],outputs:[]},{name:\"setIpAddresses\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"idx\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"}],outputs:[]},{name:\"transferValidatorOwnership\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"idx\"},{type:\"address\",name:\"newAddress\"}],outputs:[]},{name:\"transferOwnership\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"newOwner\"}],outputs:[]},{name:\"setNetworkIdentityRotationEpoch\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"epoch\"}],outputs:[]},{name:\"migrateValidator\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"idx\"}],outputs:[]},{name:\"initializeIfMigrated\",type:\"function\",stateMutability:\"nonpayable\",inputs:[],outputs:[]},{name:\"ValidatorAdded\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"address\",name:\"validatorAddress\",indexed:!0},{type:\"bytes32\",name:\"publicKey\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"feeRecipient\"}]},{name:\"ValidatorDeactivated\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"address\",name:\"validatorAddress\",indexed:!0}]},{name:\"ValidatorRotated\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"uint64\",name:\"deactivatedIndex\",indexed:!0},{type:\"address\",name:\"validatorAddress\",indexed:!0},{type:\"bytes32\",name:\"oldPublicKey\"},{type:\"bytes32\",name:\"newPublicKey\"},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"caller\"}]},{name:\"FeeRecipientUpdated\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"address\",name:\"feeRecipient\"},{type:\"address\",name:\"caller\"}]},{name:\"IpAddressesUpdated\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"string\",name:\"ingress\"},{type:\"string\",name:\"egress\"},{type:\"address\",name:\"caller\"}]},{name:\"ValidatorOwnershipTransferred\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"address\",name:\"oldAddress\",indexed:!0},{type:\"address\",name:\"newAddress\",indexed:!0},{type:\"address\",name:\"caller\"}]},{name:\"OwnershipTransferred\",type:\"event\",inputs:[{type:\"address\",name:\"oldOwner\",indexed:!0},{type:\"address\",name:\"newOwner\",indexed:!0}]},{name:\"ValidatorMigrated\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"address\",name:\"validatorAddress\",indexed:!0},{type:\"bytes32\",name:\"publicKey\"}]},{name:\"NetworkIdentityRotationEpochSet\",type:\"event\",inputs:[{type:\"uint64\",name:\"previousEpoch\",indexed:!0},{type:\"uint64\",name:\"nextEpoch\",indexed:!0}]},{name:\"Initialized\",type:\"event\",inputs:[{type:\"uint64\",name:\"height\"}]},{name:\"SkippedValidatorMigration\",type:\"event\",inputs:[{type:\"uint64\",name:\"index\",indexed:!0},{type:\"address\",name:\"validatorAddress\",indexed:!0},{type:\"bytes32\",name:\"publicKey\"}]},{name:\"AlreadyInitialized\",type:\"error\",inputs:[]},{name:\"IngressAlreadyExists\",type:\"error\",inputs:[{type:\"string\",name:\"ingress\"}]},{name:\"EmptyV1ValidatorSet\",type:\"error\",inputs:[]},{name:\"InvalidMigrationIndex\",type:\"error\",inputs:[]},{name:\"InvalidOwner\",type:\"error\",inputs:[]},{name:\"InvalidPublicKey\",type:\"error\",inputs:[]},{name:\"InvalidSignature\",type:\"error\",inputs:[]},{name:\"InvalidSignatureFormat\",type:\"error\",inputs:[]},{name:\"InvalidValidatorAddress\",type:\"error\",inputs:[]},{name:\"MigrationNotComplete\",type:\"error\",inputs:[]},{name:\"NotInitialized\",type:\"error\",inputs:[]},{name:\"NotIp\",type:\"error\",inputs:[{type:\"string\",name:\"input\"},{type:\"string\",name:\"backtrace\"}]},{name:\"NotIpPort\",type:\"error\",inputs:[{type:\"string\",name:\"input\"},{type:\"string\",name:\"backtrace\"}]},{name:\"PublicKeyAlreadyExists\",type:\"error\",inputs:[]},{name:\"Unauthorized\",type:\"error\",inputs:[]},{name:\"AddressAlreadyHasValidator\",type:\"error\",inputs:[]},{name:\"ValidatorAlreadyDeactivated\",type:\"error\",inputs:[]},{name:\"ValidatorNotFound\",type:\"error\",inputs:[]}],Ymt=[{name:\"recover\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"hash\"},{type:\"bytes\",name:\"signature\"}],outputs:[{type:\"address\",name:\"signer\"}]},{name:\"verify\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"signer\"},{type:\"bytes32\",name:\"hash\"},{type:\"bytes\",name:\"signature\"}],outputs:[{type:\"bool\"}]},{name:\"InvalidFormat\",type:\"error\",inputs:[]},{name:\"InvalidSignature\",type:\"error\",inputs:[]}],Xmt=[{name:\"createPair\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"base\"}],outputs:[{type:\"bytes32\",name:\"key\"}]},{name:\"place\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"token\"},{type:\"uint128\",name:\"amount\"},{type:\"bool\",name:\"isBid\"},{type:\"int16\",name:\"tick\"}],outputs:[{type:\"uint128\",name:\"orderId\"}]},{name:\"placeFlip\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"token\"},{type:\"uint128\",name:\"amount\"},{type:\"bool\",name:\"isBid\"},{type:\"int16\",name:\"tick\"},{type:\"int16\",name:\"flipTick\"}],outputs:[{type:\"uint128\",name:\"orderId\"}]},{name:\"cancel\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint128\",name:\"orderId\"}],outputs:[]},{name:\"cancelStaleOrder\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint128\",name:\"orderId\"}],outputs:[]},{name:\"swapExactAmountIn\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"tokenIn\"},{type:\"address\",name:\"tokenOut\"},{type:\"uint128\",name:\"amountIn\"},{type:\"uint128\",name:\"minAmountOut\"}],outputs:[{type:\"uint128\",name:\"amountOut\"}]},{name:\"swapExactAmountOut\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"tokenIn\"},{type:\"address\",name:\"tokenOut\"},{type:\"uint128\",name:\"amountOut\"},{type:\"uint128\",name:\"maxAmountIn\"}],outputs:[{type:\"uint128\",name:\"amountIn\"}]},{name:\"quoteSwapExactAmountIn\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"tokenIn\"},{type:\"address\",name:\"tokenOut\"},{type:\"uint128\",name:\"amountIn\"}],outputs:[{type:\"uint128\",name:\"amountOut\"}]},{name:\"quoteSwapExactAmountOut\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"tokenIn\"},{type:\"address\",name:\"tokenOut\"},{type:\"uint128\",name:\"amountOut\"}],outputs:[{type:\"uint128\",name:\"amountIn\"}]},{name:\"balanceOf\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"user\"},{type:\"address\",name:\"token\"}],outputs:[{type:\"uint128\"}]},{name:\"withdraw\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"token\"},{type:\"uint128\",name:\"amount\"}],outputs:[]},{name:\"getOrder\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint128\",name:\"orderId\"}],outputs:[{type:\"tuple\",components:[{type:\"uint128\",name:\"orderId\"},{type:\"address\",name:\"maker\"},{type:\"bytes32\",name:\"bookKey\"},{type:\"bool\",name:\"isBid\"},{type:\"int16\",name:\"tick\"},{type:\"uint128\",name:\"amount\"},{type:\"uint128\",name:\"remaining\"},{type:\"uint128\",name:\"prev\"},{type:\"uint128\",name:\"next\"},{type:\"bool\",name:\"isFlip\"},{type:\"int16\",name:\"flipTick\"}]}]},{name:\"getTickLevel\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"base\"},{type:\"int16\",name:\"tick\"},{type:\"bool\",name:\"isBid\"}],outputs:[{type:\"uint128\",name:\"head\"},{type:\"uint128\",name:\"tail\"},{type:\"uint128\",name:\"totalLiquidity\"}]},{name:\"pairKey\",type:\"function\",stateMutability:\"pure\",inputs:[{type:\"address\",name:\"tokenA\"},{type:\"address\",name:\"tokenB\"}],outputs:[{type:\"bytes32\"}]},{name:\"nextOrderId\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint128\"}]},{name:\"books\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"pairKey\"}],outputs:[{type:\"tuple\",components:[{type:\"address\",name:\"base\"},{type:\"address\",name:\"quote\"},{type:\"int16\",name:\"bestBidTick\"},{type:\"int16\",name:\"bestAskTick\"}]}]},{name:\"MIN_TICK\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"int16\"}]},{name:\"MAX_TICK\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"int16\"}]},{name:\"TICK_SPACING\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"int16\"}]},{name:\"PRICE_SCALE\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"uint32\"}]},{name:\"MIN_ORDER_AMOUNT\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"uint128\"}]},{name:\"MIN_PRICE\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"uint32\"}]},{name:\"MAX_PRICE\",type:\"function\",stateMutability:\"pure\",inputs:[],outputs:[{type:\"uint32\"}]},{name:\"tickToPrice\",type:\"function\",stateMutability:\"pure\",inputs:[{type:\"int16\",name:\"tick\"}],outputs:[{type:\"uint32\",name:\"price\"}]},{name:\"priceToTick\",type:\"function\",stateMutability:\"pure\",inputs:[{type:\"uint32\",name:\"price\"}],outputs:[{type:\"int16\",name:\"tick\"}]},{name:\"PairCreated\",type:\"event\",inputs:[{type:\"bytes32\",name:\"key\",indexed:!0},{type:\"address\",name:\"base\",indexed:!0},{type:\"address\",name:\"quote\",indexed:!0}]},{name:\"OrderPlaced\",type:\"event\",inputs:[{type:\"uint128\",name:\"orderId\",indexed:!0},{type:\"address\",name:\"maker\",indexed:!0},{type:\"address\",name:\"token\",indexed:!0},{type:\"uint128\",name:\"amount\"},{type:\"bool\",name:\"isBid\"},{type:\"int16\",name:\"tick\"},{type:\"bool\",name:\"isFlipOrder\"},{type:\"int16\",name:\"flipTick\"}]},{name:\"OrderFilled\",type:\"event\",inputs:[{type:\"uint128\",name:\"orderId\",indexed:!0},{type:\"address\",name:\"maker\",indexed:!0},{type:\"address\",name:\"taker\",indexed:!0},{type:\"uint128\",name:\"amountFilled\"},{type:\"bool\",name:\"partialFill\"}]},{name:\"OrderCancelled\",type:\"event\",inputs:[{type:\"uint128\",name:\"orderId\",indexed:!0}]},{name:\"Unauthorized\",type:\"error\",inputs:[]},{name:\"PairDoesNotExist\",type:\"error\",inputs:[]},{name:\"PairAlreadyExists\",type:\"error\",inputs:[]},{name:\"OrderDoesNotExist\",type:\"error\",inputs:[]},{name:\"IdenticalTokens\",type:\"error\",inputs:[]},{name:\"InvalidToken\",type:\"error\",inputs:[]},{name:\"TickOutOfBounds\",type:\"error\",inputs:[{type:\"int16\",name:\"tick\"}]},{name:\"InvalidTick\",type:\"error\",inputs:[]},{name:\"InvalidFlipTick\",type:\"error\",inputs:[]},{name:\"InsufficientBalance\",type:\"error\",inputs:[]},{name:\"InsufficientLiquidity\",type:\"error\",inputs:[]},{name:\"InsufficientOutput\",type:\"error\",inputs:[]},{name:\"MaxInputExceeded\",type:\"error\",inputs:[]},{name:\"BelowMinimumOrderSize\",type:\"error\",inputs:[{type:\"uint128\",name:\"amount\"}]},{name:\"InvalidBaseToken\",type:\"error\",inputs:[]},{name:\"OrderNotStale\",type:\"error\",inputs:[]}],eht=[{name:\"registerVirtualMaster\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"bytes32\",name:\"salt\"}],outputs:[{type:\"bytes4\",name:\"masterId\"}]},{name:\"getMaster\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes4\",name:\"masterId\"}],outputs:[{type:\"address\"}]},{name:\"resolveRecipient\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"to\"}],outputs:[{type:\"address\",name:\"effectiveRecipient\"}]},{name:\"resolveVirtualAddress\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"virtualAddr\"}],outputs:[{type:\"address\",name:\"master\"}]},{name:\"isVirtualAddress\",type:\"function\",stateMutability:\"pure\",inputs:[{type:\"address\",name:\"addr\"}],outputs:[{type:\"bool\"}]},{name:\"decodeVirtualAddress\",type:\"function\",stateMutability:\"pure\",inputs:[{type:\"address\",name:\"addr\"}],outputs:[{type:\"bool\",name:\"isVirtual\"},{type:\"bytes4\",name:\"masterId\"},{type:\"bytes6\",name:\"userTag\"}]},{name:\"MasterRegistered\",type:\"event\",inputs:[{type:\"bytes4\",name:\"masterId\",indexed:!0},{type:\"address\",name:\"masterAddress\",indexed:!0}]},{name:\"MasterIdCollision\",type:\"error\",inputs:[{type:\"address\",name:\"master\"}]},{name:\"InvalidMasterAddress\",type:\"error\",inputs:[]},{name:\"ProofOfWorkFailed\",type:\"error\",inputs:[]},{name:\"VirtualAddressUnregistered\",type:\"error\",inputs:[]}],tht=[{name:\"userTokens\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"user\"}],outputs:[{type:\"address\"}]},{name:\"validatorTokens\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"validator\"}],outputs:[{type:\"address\"}]},{name:\"setUserToken\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"token\"}],outputs:[]},{name:\"setValidatorToken\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"token\"}],outputs:[]},{name:\"distributeFees\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"validator\"},{type:\"address\",name:\"token\"}],outputs:[]},{name:\"collectedFees\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"validator\"},{type:\"address\",name:\"token\"}],outputs:[{type:\"uint256\"}]},{name:\"UserTokenSet\",type:\"event\",inputs:[{type:\"address\",name:\"user\",indexed:!0},{type:\"address\",name:\"token\",indexed:!0}]},{name:\"ValidatorTokenSet\",type:\"event\",inputs:[{type:\"address\",name:\"validator\",indexed:!0},{type:\"address\",name:\"token\",indexed:!0}]},{name:\"FeesDistributed\",type:\"event\",inputs:[{type:\"address\",name:\"validator\",indexed:!0},{type:\"address\",name:\"token\",indexed:!0},{type:\"uint256\",name:\"amount\"}]},{name:\"OnlyValidator\",type:\"error\",inputs:[]},{name:\"OnlySystemContract\",type:\"error\",inputs:[]},{name:\"InvalidToken\",type:\"error\",inputs:[]},{name:\"PoolDoesNotExist\",type:\"error\",inputs:[]},{name:\"InsufficientFeeTokenBalance\",type:\"error\",inputs:[]},{name:\"InternalError\",type:\"error\",inputs:[]},{name:\"CannotChangeWithinBlock\",type:\"error\",inputs:[]},{name:\"CannotChangeWithPendingFees\",type:\"error\",inputs:[]},{name:\"TokenPolicyForbids\",type:\"error\",inputs:[]}],rht=[{name:\"M\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"N\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"SCALE\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"MIN_LIQUIDITY\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{name:\"getPoolId\",type:\"function\",stateMutability:\"pure\",inputs:[{type:\"address\",name:\"userToken\"},{type:\"address\",name:\"validatorToken\"}],outputs:[{type:\"bytes32\"}]},{name:\"getPool\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"userToken\"},{type:\"address\",name:\"validatorToken\"}],outputs:[{type:\"tuple\",components:[{type:\"uint128\",name:\"reserveUserToken\"},{type:\"uint128\",name:\"reserveValidatorToken\"}]}]},{name:\"pools\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"poolId\"}],outputs:[{type:\"tuple\",components:[{type:\"uint128\",name:\"reserveUserToken\"},{type:\"uint128\",name:\"reserveValidatorToken\"}]}]},{name:\"mint\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"userToken\"},{type:\"address\",name:\"validatorToken\"},{type:\"uint256\",name:\"amountValidatorToken\"},{type:\"address\",name:\"to\"}],outputs:[{type:\"uint256\",name:\"liquidity\"}]},{name:\"burn\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"userToken\"},{type:\"address\",name:\"validatorToken\"},{type:\"uint256\",name:\"liquidity\"},{type:\"address\",name:\"to\"}],outputs:[{type:\"uint256\",name:\"amountUserToken\"},{type:\"uint256\",name:\"amountValidatorToken\"}]},{name:\"totalSupply\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"poolId\"}],outputs:[{type:\"uint256\"}]},{name:\"liquidityBalances\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes32\",name:\"poolId\"},{type:\"address\",name:\"user\"}],outputs:[{type:\"uint256\"}]},{name:\"rebalanceSwap\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"userToken\"},{type:\"address\",name:\"validatorToken\"},{type:\"uint256\",name:\"amountOut\"},{type:\"address\",name:\"to\"}],outputs:[{type:\"uint256\",name:\"amountIn\"}]},{name:\"Mint\",type:\"event\",inputs:[{type:\"address\",name:\"sender\"},{type:\"address\",name:\"to\",indexed:!0},{type:\"address\",name:\"userToken\",indexed:!0},{type:\"address\",name:\"validatorToken\",indexed:!0},{type:\"uint256\",name:\"amountValidatorToken\"},{type:\"uint256\",name:\"liquidity\"}]},{name:\"Burn\",type:\"event\",inputs:[{type:\"address\",name:\"sender\",indexed:!0},{type:\"address\",name:\"userToken\",indexed:!0},{type:\"address\",name:\"validatorToken\",indexed:!0},{type:\"uint256\",name:\"amountUserToken\"},{type:\"uint256\",name:\"amountValidatorToken\"},{type:\"uint256\",name:\"liquidity\"},{type:\"address\",name:\"to\"}]},{name:\"RebalanceSwap\",type:\"event\",inputs:[{type:\"address\",name:\"userToken\",indexed:!0},{type:\"address\",name:\"validatorToken\",indexed:!0},{type:\"address\",name:\"swapper\",indexed:!0},{type:\"uint256\",name:\"amountIn\"},{type:\"uint256\",name:\"amountOut\"}]},{name:\"IdenticalAddresses\",type:\"error\",inputs:[]},{name:\"InvalidToken\",type:\"error\",inputs:[]},{name:\"InsufficientLiquidity\",type:\"error\",inputs:[]},{name:\"InsufficientReserves\",type:\"error\",inputs:[]},{name:\"InvalidAmount\",type:\"error\",inputs:[]},{name:\"DivisionByZero\",type:\"error\",inputs:[]},{name:\"InvalidSwapCalculation\",type:\"error\",inputs:[]}],vd=[{name:\"authorizeKey\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"keyId\"},{type:\"uint8\",name:\"signatureType\"},{type:\"uint64\",name:\"expiry\"},{type:\"bool\",name:\"enforceLimits\"},{type:\"tuple[]\",name:\"limits\",components:[{type:\"address\",name:\"token\"},{type:\"uint256\",name:\"amount\"}]}],outputs:[]},{name:\"authorizeKey\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"keyId\"},{type:\"uint8\",name:\"signatureType\"},{type:\"tuple\",name:\"config\",components:[{type:\"uint64\",name:\"expiry\"},{type:\"bool\",name:\"enforceLimits\"},{type:\"tuple[]\",name:\"limits\",components:[{type:\"address\",name:\"token\"},{type:\"uint256\",name:\"amount\"},{type:\"uint64\",name:\"period\"}]},{type:\"bool\",name:\"allowAnyCalls\"},{type:\"tuple[]\",name:\"allowedCalls\",components:[{type:\"address\",name:\"target\"},{type:\"tuple[]\",name:\"selectorRules\",components:[{type:\"bytes4\",name:\"selector\"},{type:\"address[]\",name:\"recipients\"}]}]}]}],outputs:[]},{name:\"revokeKey\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"keyId\"}],outputs:[]},{name:\"updateSpendingLimit\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"keyId\"},{type:\"address\",name:\"token\"},{type:\"uint256\",name:\"newLimit\"}],outputs:[]},{name:\"setAllowedCalls\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"keyId\"},{type:\"tuple[]\",name:\"scopes\",components:[{type:\"address\",name:\"target\"},{type:\"tuple[]\",name:\"selectorRules\",components:[{type:\"bytes4\",name:\"selector\"},{type:\"address[]\",name:\"recipients\"}]}]}],outputs:[]},{name:\"removeAllowedCalls\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"keyId\"},{type:\"address\",name:\"target\"}],outputs:[]},{name:\"getKey\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"},{type:\"address\",name:\"keyId\"}],outputs:[{type:\"tuple\",components:[{type:\"uint8\",name:\"signatureType\"},{type:\"address\",name:\"keyId\"},{type:\"uint64\",name:\"expiry\"},{type:\"bool\",name:\"enforceLimits\"},{type:\"bool\",name:\"isRevoked\"}]}]},{name:\"getRemainingLimit\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"},{type:\"address\",name:\"keyId\"},{type:\"address\",name:\"token\"}],outputs:[{type:\"uint256\",name:\"remaining\"}]},{name:\"getRemainingLimitWithPeriod\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"},{type:\"address\",name:\"keyId\"},{type:\"address\",name:\"token\"}],outputs:[{type:\"uint256\",name:\"remaining\"},{type:\"uint64\",name:\"periodEnd\"}]},{name:\"getAllowedCalls\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"},{type:\"address\",name:\"keyId\"}],outputs:[{type:\"bool\",name:\"isScoped\"},{type:\"tuple[]\",name:\"scopes\",components:[{type:\"address\",name:\"target\"},{type:\"tuple[]\",name:\"selectorRules\",components:[{type:\"bytes4\",name:\"selector\"},{type:\"address[]\",name:\"recipients\"}]}]}]},{name:\"getTransactionKey\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"address\"}]},{name:\"KeyAuthorized\",type:\"event\",inputs:[{type:\"address\",name:\"account\",indexed:!0},{type:\"address\",name:\"publicKey\",indexed:!0},{type:\"uint8\",name:\"signatureType\"},{type:\"uint64\",name:\"expiry\"}]},{name:\"KeyRevoked\",type:\"event\",inputs:[{type:\"address\",name:\"account\",indexed:!0},{type:\"address\",name:\"publicKey\",indexed:!0}]},{name:\"SpendingLimitUpdated\",type:\"event\",inputs:[{type:\"address\",name:\"account\",indexed:!0},{type:\"address\",name:\"publicKey\",indexed:!0},{type:\"address\",name:\"token\",indexed:!0},{type:\"uint256\",name:\"newLimit\"}]},{name:\"AccessKeySpend\",type:\"event\",inputs:[{type:\"address\",name:\"account\",indexed:!0},{type:\"address\",name:\"publicKey\",indexed:!0},{type:\"address\",name:\"token\",indexed:!0},{type:\"uint256\",name:\"amount\"},{type:\"uint256\",name:\"remainingLimit\"}]},{name:\"UnauthorizedCaller\",type:\"error\",inputs:[]},{name:\"KeyAlreadyExists\",type:\"error\",inputs:[]},{name:\"KeyNotFound\",type:\"error\",inputs:[]},{name:\"KeyExpired\",type:\"error\",inputs:[]},{name:\"SpendingLimitExceeded\",type:\"error\",inputs:[]},{name:\"InvalidSpendingLimit\",type:\"error\",inputs:[]},{name:\"InvalidSignatureType\",type:\"error\",inputs:[]},{name:\"ZeroPublicKey\",type:\"error\",inputs:[]},{name:\"ExpiryInPast\",type:\"error\",inputs:[]},{name:\"KeyAlreadyRevoked\",type:\"error\",inputs:[]},{name:\"SignatureTypeMismatch\",type:\"error\",inputs:[{type:\"uint8\",name:\"expected\"},{type:\"uint8\",name:\"actual\"}]},{name:\"CallNotAllowed\",type:\"error\",inputs:[]},{name:\"InvalidCallScope\",type:\"error\",inputs:[]},{name:\"LegacyAuthorizeKeySelectorChanged\",type:\"error\",inputs:[{type:\"bytes4\",name:\"newSelector\"}]}],nht=[{name:\"getNonce\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"account\"},{type:\"uint256\",name:\"nonceKey\"}],outputs:[{type:\"uint64\",name:\"nonce\"}]},{name:\"NonceIncremented\",type:\"event\",inputs:[{type:\"address\",name:\"account\",indexed:!0},{type:\"uint256\",name:\"nonceKey\",indexed:!0},{type:\"uint64\",name:\"newNonce\"}]},{name:\"ProtocolNonceNotSupported\",type:\"error\",inputs:[]},{name:\"InvalidNonceKey\",type:\"error\",inputs:[]},{name:\"NonceOverflow\",type:\"error\",inputs:[]},{name:\"ExpiringNonceReplay\",type:\"error\",inputs:[]},{name:\"ExpiringNonceSetFull\",type:\"error\",inputs:[]},{name:\"InvalidExpiringNonceExpiry\",type:\"error\",inputs:[]}],oht=[{name:\"createToken\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"string\",name:\"name\"},{type:\"string\",name:\"symbol\"},{type:\"string\",name:\"currency\"},{type:\"address\",name:\"quoteToken\"},{type:\"address\",name:\"admin\"},{type:\"bytes32\",name:\"salt\"}],outputs:[{type:\"address\"}]},{name:\"isTIP20\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"token\"}],outputs:[{type:\"bool\"}]},{name:\"getTokenAddress\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"sender\"},{type:\"bytes32\",name:\"salt\"}],outputs:[{type:\"address\"}]},{name:\"TokenCreated\",type:\"event\",inputs:[{type:\"address\",name:\"token\",indexed:!0},{type:\"string\",name:\"name\"},{type:\"string\",name:\"symbol\"},{type:\"string\",name:\"currency\"},{type:\"address\",name:\"quoteToken\"},{type:\"address\",name:\"admin\"},{type:\"bytes32\",name:\"salt\"}]},{name:\"AddressReserved\",type:\"error\",inputs:[]},{name:\"AddressNotReserved\",type:\"error\",inputs:[]},{name:\"InvalidQuoteToken\",type:\"error\",inputs:[]},{name:\"TokenAlreadyExists\",type:\"error\",inputs:[{type:\"address\",name:\"token\"}]}],aht=[{name:\"policyIdCounter\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"policyExists\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"}],outputs:[{type:\"bool\"}]},{name:\"policyData\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"}],outputs:[{type:\"uint8\",name:\"policyType\"},{type:\"address\",name:\"admin\"}]},{name:\"isAuthorized\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"user\"}],outputs:[{type:\"bool\"}]},{name:\"isAuthorizedSender\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"user\"}],outputs:[{type:\"bool\"}]},{name:\"isAuthorizedRecipient\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"user\"}],outputs:[{type:\"bool\"}]},{name:\"isAuthorizedMintRecipient\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"user\"}],outputs:[{type:\"bool\"}]},{name:\"compoundPolicyData\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint64\",name:\"policyId\"}],outputs:[{type:\"uint64\",name:\"senderPolicyId\"},{type:\"uint64\",name:\"recipientPolicyId\"},{type:\"uint64\",name:\"mintRecipientPolicyId\"}]},{name:\"createPolicy\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"admin\"},{type:\"uint8\",name:\"policyType\"}],outputs:[{type:\"uint64\"}]},{name:\"createPolicyWithAccounts\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"admin\"},{type:\"uint8\",name:\"policyType\"},{type:\"address[]\",name:\"accounts\"}],outputs:[{type:\"uint64\"}]},{name:\"setPolicyAdmin\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"admin\"}],outputs:[]},{name:\"modifyPolicyWhitelist\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"account\"},{type:\"bool\",name:\"allowed\"}],outputs:[]},{name:\"modifyPolicyBlacklist\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"policyId\"},{type:\"address\",name:\"account\"},{type:\"bool\",name:\"restricted\"}],outputs:[]},{name:\"createCompoundPolicy\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"senderPolicyId\"},{type:\"uint64\",name:\"recipientPolicyId\"},{type:\"uint64\",name:\"mintRecipientPolicyId\"}],outputs:[{type:\"uint64\"}]},{name:\"PolicyAdminUpdated\",type:\"event\",inputs:[{type:\"uint64\",name:\"policyId\",indexed:!0},{type:\"address\",name:\"updater\",indexed:!0},{type:\"address\",name:\"admin\",indexed:!0}]},{name:\"PolicyCreated\",type:\"event\",inputs:[{type:\"uint64\",name:\"policyId\",indexed:!0},{type:\"address\",name:\"updater\",indexed:!0},{type:\"uint8\",name:\"policyType\"}]},{name:\"WhitelistUpdated\",type:\"event\",inputs:[{type:\"uint64\",name:\"policyId\",indexed:!0},{type:\"address\",name:\"updater\",indexed:!0},{type:\"address\",name:\"account\",indexed:!0},{type:\"bool\",name:\"allowed\"}]},{name:\"BlacklistUpdated\",type:\"event\",inputs:[{type:\"uint64\",name:\"policyId\",indexed:!0},{type:\"address\",name:\"updater\",indexed:!0},{type:\"address\",name:\"account\",indexed:!0},{type:\"bool\",name:\"restricted\"}]},{name:\"CompoundPolicyCreated\",type:\"event\",inputs:[{type:\"uint64\",name:\"policyId\",indexed:!0},{type:\"address\",name:\"creator\",indexed:!0},{type:\"uint64\",name:\"senderPolicyId\"},{type:\"uint64\",name:\"recipientPolicyId\"},{type:\"uint64\",name:\"mintRecipientPolicyId\"}]},{name:\"Unauthorized\",type:\"error\",inputs:[]},{name:\"PolicyNotFound\",type:\"error\",inputs:[]},{name:\"PolicyNotSimple\",type:\"error\",inputs:[]},{name:\"InvalidPolicyType\",type:\"error\",inputs:[]},{name:\"IncompatiblePolicyType\",type:\"error\",inputs:[]},{name:\"VirtualAddressNotAllowed\",type:\"error\",inputs:[]}],iht=[{name:\"getValidators\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"tuple[]\",name:\"validators\",components:[{type:\"bytes32\",name:\"publicKey\"},{type:\"bool\",name:\"active\"},{type:\"uint64\",name:\"index\"},{type:\"address\",name:\"validatorAddress\"},{type:\"string\",name:\"inboundAddress\"},{type:\"string\",name:\"outboundAddress\"}]}]},{name:\"addValidator\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"newValidatorAddress\"},{type:\"bytes32\",name:\"publicKey\"},{type:\"bool\",name:\"active\"},{type:\"string\",name:\"inboundAddress\"},{type:\"string\",name:\"outboundAddress\"}],outputs:[]},{name:\"updateValidator\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"newValidatorAddress\"},{type:\"bytes32\",name:\"publicKey\"},{type:\"string\",name:\"inboundAddress\"},{type:\"string\",name:\"outboundAddress\"}],outputs:[]},{name:\"changeValidatorStatus\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"validator\"},{type:\"bool\",name:\"active\"}],outputs:[]},{name:\"changeValidatorStatusByIndex\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"index\"},{type:\"bool\",name:\"active\"}],outputs:[]},{name:\"owner\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"address\"}]},{name:\"changeOwner\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"address\",name:\"newOwner\"}],outputs:[]},{name:\"getNextFullDkgCeremony\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"setNextFullDkgCeremony\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{type:\"uint64\",name:\"epoch\"}],outputs:[]},{name:\"validatorsArray\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"uint256\",name:\"index\"}],outputs:[{type:\"address\"}]},{name:\"validators\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"address\",name:\"validator\"}],outputs:[{type:\"tuple\",components:[{type:\"bytes32\",name:\"publicKey\"},{type:\"bool\",name:\"active\"},{type:\"uint64\",name:\"index\"},{type:\"address\",name:\"validatorAddress\"},{type:\"string\",name:\"inboundAddress\"},{type:\"string\",name:\"outboundAddress\"}]}]},{name:\"validatorCount\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint64\"}]},{name:\"Unauthorized\",type:\"error\",inputs:[]},{name:\"ValidatorAlreadyExists\",type:\"error\",inputs:[]},{name:\"ValidatorNotFound\",type:\"error\",inputs:[]},{name:\"InvalidPublicKey\",type:\"error\",inputs:[]},{name:\"NotHostPort\",type:\"error\",inputs:[{type:\"string\",name:\"field\"},{type:\"string\",name:\"input\"},{type:\"string\",name:\"backtrace\"}]},{name:\"NotIpPort\",type:\"error\",inputs:[{type:\"string\",name:\"field\"},{type:\"string\",name:\"input\"},{type:\"string\",name:\"backtrace\"}]}],XDr=[...Zmt,...Jmt,...Ymt,...Xmt,...eht,...tht,...rht,...vd,...nht,...oht,...aht,...iht]});function FIe(e){let t=e.account;return t?.keyType&&t.keyType!==\"secp256k1\"||t?.source===\"accessKey\"||typeof e.calls<\"u\"||typeof e.feePayer<\"u\"||typeof e.feeToken<\"u\"||typeof e.keyAuthorization<\"u\"||typeof e.nonceKey<\"u\"||typeof e.signature<\"u\"||typeof e.validBefore<\"u\"||typeof e.validAfter<\"u\"?\"tempo\":e.type?e.type:dw(e)}function DR(e){try{return FIe(e)===\"tempo\"}catch{return!1}}async function jIe(e,t){if(!DR(e)){if(t&&\"type\"in t&&t.type!==\"secp256k1\")throw new Error(\"Unsupported signature type. Expected `secp256k1` but got `\"+t.type+\"`.\");if(t&&\"type\"in t){let{r:n,s:o,yParity:s}=t?.signature;return J1(e,{r:we(n,{size:32}),s:we(o,{size:32}),yParity:s})}return J1(e,t)}if(FIe(e)===\"tempo\")return cht(e,t);throw new Error(\"Unsupported transaction type\")}async function cht(e,t){let r=(()=>{if(e.signature)return e.signature;if(t&&\"type\"in t)return t;if(t)return Ls.from({r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)})})(),{chainId:n,feePayer:o,nonce:s,...u}=e,f=(()=>{let m=e.feePayerSignature;if(m)return{r:BigInt(m.r),s:BigInt(m.s),yParity:Number(m.yParity)};if(m===null||o)return null})(),d={...u,calls:u.calls?.length?u.calls:[{to:u.to||(!u.data||u.data===\"0x\"?\"0x0000000000000000000000000000000000000000\":void 0),value:u.value,data:u.data}],chainId:Number(n),feePayerSignature:f,type:\"tempo\",...s?{nonce:BigInt(s)}:{}};if(o===!0&&delete d.feeToken,r&&typeof e.feePayer==\"object\"){let m=xd.from(d,{signature:r}),h=(()=>{if(e.from)return e.from;if(r.type===\"secp256k1\")return ig({payload:xd.getSignPayload(m),signature:r.signature});throw new Error(\"Unable to extract sender from transaction or signature.\")})(),y=xd.getFeePayerSignPayload(m,{sender:h}),v=await e.feePayer.sign({hash:y});return xd.serialize(m,{feePayerSignature:V0(v)})}return o===!0?r?xd.serialize(d,{format:\"feePayer\",sender:e.from,signature:r}):xd.serialize(d,{feePayerSignature:null}):xd.serialize({...d,...o?{feeToken:void 0}:{}},{feePayerSignature:void 0,signature:r})}var eW=x(()=>{c();Tr();nC();K0();OC();qB();Pw()});async function qIe(e,t){let{chainId:r,key:n,expiry:o,limits:s,scopes:u}=t,{accessKeyAddress:f,keyType:d}=lht(n),m=await e.sign({hash:ny.getSignPayload({address:f,chainId:r,expiry:o,limits:s,scopes:u,type:d})});return ny.from({address:f,chainId:r,expiry:o,limits:s,scopes:u,signature:Ls.from(m),type:d})}function lht(e){return\"accessKeyAddress\"in e?{accessKeyAddress:e.accessKeyAddress,keyType:e.keyType}:\"publicKey\"in e&&e.publicKey?{accessKeyAddress:Yi(YI(e.publicKey)),keyType:e.type}:{accessKeyAddress:e.address,keyType:e.type}}var $Ie=x(()=>{c();bu();Rw();OC()});var t6,GIe=x(()=>{c();t6=\"0xaAAAaaAA00000000000000000000000000000000\"});function KIe(e,t){return VIe.indexOf(e)<VIe.indexOf(t)}var VIe,WIe=x(()=>{c();VIe=[\"genesis\",\"t0\",\"t1\",\"t1a\",\"t1b\",\"t1c\",\"t2\",\"t3\"]});function r6(e){return{...e,data:Ct(e),to:e.address}}var QIe=x(()=>{c();W0()});async function tW(e,t){return tW.inner(pd,e,t)}async function rW(e,t){return rW.inner(md,e,t)}async function nW(e,t){return nW.inner(md,e,t)}async function NC(e,t){let{account:r=e.account,accessKey:n,...o}=t;if(!r)throw new Error(\"account is required.\");let s=Xe(r),u=await Xr(e,{...o,...NC.call({account:s.address,accessKey:n})});return{address:u.keyId,keyType:pht[u.signatureType]??\"secp256k1\",expiry:u.expiry,spendPolicy:mht[`${u.enforceLimits}`],isRevoked:u.isRevoked}}async function HR(e,t){let{account:r=e.account,accessKey:n,token:o,...s}=t;if(!r)throw new Error(\"account is required.\");let u=Xe(r),f=e.chain?.hardfork;if(f&&KIe(f,\"t3\"))return{remaining:await Xr(e,{...s,...HR.call({account:u.address,accessKey:n,token:o})}),periodEnd:void 0};let[d,m]=await Xr(e,{...s,...HR.callWithPeriod({account:u.address,accessKey:n,token:o})});return{remaining:d,periodEnd:m}}function UC(e){return typeof e==\"string\"?e:e.accessKeyAddress}var pht,mht,ZIe=x(()=>{c();Yr();Ic();Tw();xI();BS();zIe();$Ie();GIe();WIe();QIe();pht={0:\"secp256k1\",1:\"p256\",2:\"webAuthn\"},mht={true:\"limited\",false:\"unlimited\"};(function(e){async function t(n,o,s){let{accessKey:u,chainId:f=o.chain?.id,expiry:d,limits:m,scopes:h,...y}=s,v=y.account??o.account;if(!v)throw new Error(\"account is required.\");if(!f)throw new Error(\"chainId is required.\");let E=Xe(v),C=await qIe(E,{chainId:BigInt(f),key:u,expiry:d,limits:m,scopes:h});return await n(o,{...y,keyAuthorization:C})}e.inner=t;function r(n){let[o]=cd({abi:vd,logs:n,eventName:\"KeyAuthorized\",strict:!0});if(!o)throw new Error(\"`KeyAuthorized` event not found.\");return o}e.extractEvent=r})(tW||(tW={}));(function(e){async function t(o,s,u){let{accessKey:f,...d}=u,m=e.call({accessKey:f});return await o(s,{...d,...m})}e.inner=t;function r(o){let{accessKey:s}=o;return r6({address:t6,abi:vd,functionName:\"revokeKey\",args:[UC(s)]})}e.call=r;function n(o){let[s]=cd({abi:vd,logs:o,eventName:\"KeyRevoked\",strict:!0});if(!s)throw new Error(\"`KeyRevoked` event not found.\");return s}e.extractEvent=n})(rW||(rW={}));(function(e){async function t(o,s,u){let{accessKey:f,token:d,limit:m,...h}=u,y=e.call({accessKey:f,token:d,limit:m});return await o(s,{...h,...y})}e.inner=t;function r(o){let{accessKey:s,token:u,limit:f}=o;return r6({address:t6,abi:vd,functionName:\"updateSpendingLimit\",args:[UC(s),u,f]})}e.call=r;function n(o){let[s]=cd({abi:vd,logs:o,eventName:\"SpendingLimitUpdated\",strict:!0});if(!s)throw new Error(\"`SpendingLimitUpdated` event not found.\");return s}e.extractEvent=n})(nW||(nW={}));(function(e){function t(r){let{account:n,accessKey:o}=r;return r6({address:t6,abi:vd,functionName:\"getKey\",args:[n,UC(o)]})}e.call=t})(NC||(NC={}));(function(e){function t(n){let{account:o,accessKey:s,token:u}=n;return r6({address:t6,abi:vd,functionName:\"getRemainingLimit\",args:[o,UC(s),u]})}e.call=t;function r(n){let{account:o,accessKey:s,token:u}=n;return r6({address:t6,abi:vd,functionName:\"getRemainingLimitWithPeriod\",args:[o,UC(s),u]})}e.callWithPeriod=r})(HR||(HR={}))});function JIe(e){if(!DR(e))return kc(e);let t=e.blockTimestamp==null?void 0:BigInt(e.blockTimestamp),{feePayerSignature:r,gasPrice:n,nonce:o,...s}=e6.fromRpc(e);return{...s,accessList:s.accessList,...typeof t<\"u\"&&{blockTimestamp:t},feePayerSignature:r?{r:we(r.r,{size:32}),s:we(r.s,{size:32}),v:BigInt(r.v??27),yParity:r.yParity}:void 0,nonce:Number(o),typeHex:e6.toRpcType[s.type],type:s.type}}function YIe(e){return bm(e)}function XIe(e,t){let r=e,n=r.account?Xe(r.account):void 0;if(!DR(r))return ko(e,t);t&&(r.calls=r.calls??[{to:e.to||(!e.data||e.data===\"0x\"?\"0x0000000000000000000000000000000000000000\":void 0),value:e.value,data:e.data}]),r.feePayer===!0&&delete r.feeToken;let o=BR.toRpc({...r,type:\"tempo\"});t===\"estimateGas\"&&(o.maxFeePerGas=void 0,o.maxPriorityFeePerGas=void 0),o.to=void 0,o.data=void 0,o.value=void 0;let[s,u]=(()=>{let d=n&&\"keyType\"in n?n.keyType:n?.source;return d?d===\"webAuthn\"?[\"webAuthn\",`0x${\"ff\".repeat(1400)}`]:[\"p256\",\"secp256k1\"].includes(d)?[d,void 0]:[r.keyType,r.keyData]:[r.keyType,r.keyData]})(),f=n&&\"accessKeyAddress\"in n?n.accessKeyAddress:r.keyId;return n&&(o.from=n.address),{...o,...r.capabilities?{capabilities:r.capabilities}:{},...u?{keyData:u}:{},...f?{keyId:f}:{},...s?{keyType:s}:{},...typeof r.feePayer<\"u\"?{feePayer:typeof r.feePayer==\"object\"?Xe(r.feePayer):r.feePayer}:{},...\"feePayerSignature\"in r&&r.feePayerSignature!==void 0?{feePayerSignature:r.feePayerSignature}:{}}}var ePe=x(()=>{c();Tr();OC();Yr();id();gm();Us();eW()});async function tPe(e){n6.set(e,(n6.get(e)??0)+1),await Promise.resolve();let t=(n6.get(e)??0)>1;return queueMicrotask(()=>{let r=n6.get(e)??0;r<=1?n6.delete(e):n6.set(e,r-1)}),t}var n6,rPe=x(()=>{c();n6=new Map});var bht,oy,DC=x(()=>{c();bu();Tr();Rw();OC();Q1();jw();nw();_();id();gm();Us();Zt();Is();ZIe();ePe();rPe();eW();bht=25,oy={blockTime:1e3,extendSchema:TV(),formatters:{transaction:P0({exclude:[\"aaAuthorizationList\"],format:JIe}),transactionReceipt:_w({format:YIe}),transactionRequest:rw({format:XIe})},prepareTransactionRequest:[async(e,{phase:t})=>{let r=e;return t===\"afterFillParameters\"?(r.feePayer&&(r.keyAuthorization?.signature.type===\"webAuthn\"?r.gas=(r.gas??0n)+20000n:r.account?.source===\"accessKey\"&&(r.gas=(r.gas??0n)+10000n)),r):(await(async()=>{if(r.nonceKey===\"expiring\"||r.feePayer&&typeof r.nonceKey>\"u\")return!0;let o=r.account?.address;return o&&typeof r.nonceKey>\"u\"?await tPe(o):!1})()?(r.nonceKey=ad,r.nonce=0,typeof r.validBefore>\"u\"&&(r.validBefore=Math.floor(Date.now()/1e3)+bht)):typeof r.nonceKey<\"u\"&&(r.nonce=typeof r.nonce==\"number\"?r.nonce:0),!r.feeToken&&r.chain?.feeToken&&(r.feeToken=r.chain.feeToken),r)},{runAt:[\"beforeFillTransaction\",\"afterFillParameters\"]}],serializers:{transaction:((e,t)=>jIe(e,t))},async verifyHash(e,t){let{address:r,hash:n,signature:o,mode:s}=t,u=(()=>{if(typeof o==\"string\")try{return Ls.deserialize(o)}catch{return}})();if(u){if(u?.type===\"keychain\"&&s===\"allowAccessKey\"){let f=Yi(VS(u.inner.publicKey)),d=await NC(e,{account:r,accessKey:f,blockNumber:t.blockNumber,blockTag:t.blockTag});if(d.isRevoked||d.expiry<=BigInt(Math.floor(Date.now()/1e3)))return!1;let m=u.version===\"v2\"?Gt(Jt(\"0x04\",n,r)):n;return Ls.verify(u.inner,{address:f,payload:m})}if(u.type===\"p256\"||u.type===\"webAuthn\"){let f=await Ji(e,{address:r,blockNumber:t.blockNumber,blockTag:t.blockTag});if(!f||f===\"0xef01007702c00000000000000000000000000000000000\")return Ls.verify(u,{address:r,payload:n})}}return await Ae(e,bd,\"verifyHash\")({...t,chain:null})}}});var oW,nPe=x(()=>{c();DC();_();oW=g({...oy,id:4217,blockExplorers:{default:{name:\"Tempo Explorer\",url:\"https://explore.tempo.xyz\"}},name:\"Tempo Mainnet\",nativeCurrency:{name:\"USD\",symbol:\"USD\",decimals:6},rpcUrls:{default:{http:[\"https://rpc.tempo.xyz\"],webSocket:[\"wss://rpc.tempo.xyz\"]}}})});var oPe,aPe=x(()=>{c();DC();_();oPe=g({...oy,id:31318,name:\"Tempo Devnet\",hardfork:\"t3\",blockExplorers:{default:{name:\"Tempo Explorer\",url:\"https://explore.devnet.tempo.xyz\"}},nativeCurrency:{name:\"USD\",symbol:\"USD\",decimals:6},rpcUrls:{default:{http:[\"https://rpc.devnet.tempoxyz.dev\"],webSocket:[\"wss://rpc.devnet.tempoxyz.dev\"]}},testnet:!0})});var iPe,sPe=x(()=>{c();DC();_();iPe=g({...oy,id:1337,name:\"Tempo\",hardfork:\"t3\",nativeCurrency:{name:\"USD\",symbol:\"USD\",decimals:6},rpcUrls:{default:{http:[\"http://localhost:8545\"]}}})});var aW,cPe=x(()=>{c();DC();_();aW=g({...oy,id:42431,blockExplorers:{default:{name:\"Tempo Explorer\",url:\"https://explore.testnet.tempo.xyz\"}},name:\"Tempo Testnet (Moderato)\",nativeCurrency:{name:\"USD\",symbol:\"USD\",decimals:6},rpcUrls:{default:{http:[\"https://rpc.moderato.tempo.xyz\"],webSocket:[\"wss://rpc.moderato.tempo.xyz\"]}},testnet:!0})});var uPe,lPe=x(()=>{c();_();uPe=g({id:1559,name:\"Tenet\",network:\"tenet-mainnet\",nativeCurrency:{name:\"TENET\",symbol:\"TENET\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.tenet.org\"]}},blockExplorers:{default:{name:\"TenetScan Mainnet\",url:\"https://tenetscan.io\",apiUrl:\"https://tenetscan.io/api\"}},testnet:!1})});var fPe,dPe=x(()=>{c();_();fPe=g({id:752025,name:\"Ternoa\",nativeCurrency:{name:\"Capsule Coin\",symbol:\"CAPS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-mainnet.zkevm.ternoa.network\"]}},blockExplorers:{default:{name:\"Ternoa Explorer\",url:\"https://explorer-mainnet.zkevm.ternoa.network\"}},testnet:!1})});var pPe,mPe=x(()=>{c();_();pPe=g({id:7,name:\"ThaiChain\",nativeCurrency:{name:\"TCH\",symbol:\"TCH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.thaichain.org\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://exp.thaichain.org\",apiUrl:\"https://exp.thaichain.org/api\"}},contracts:{multicall3:{address:\"0x0DaD6130e832c21719C5CE3bae93454E16A84826\",blockCreated:4806386}},testnet:!1})});var hPe,yPe=x(()=>{c();_();hPe=g({id:8428,name:\"THAT Mainnet\",nativeCurrency:{name:\"THAT\",symbol:\"THAT\",decimals:18},rpcUrls:{default:{http:[\"https://api.thatchain.io/mainnet\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://that.blockscout.com\"}},testnet:!1})});var bPe,gPe=x(()=>{c();_();bPe=g({id:361,name:\"Theta Mainnet\",nativeCurrency:{name:\"TFUEL\",symbol:\"TFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://eth-rpc-api.thetatoken.org/rpc\"]}},blockExplorers:{default:{name:\"Theta Explorer\",url:\"https://explorer.thetatoken.org\"}},testnet:!1})});var xPe,vPe=x(()=>{c();_();xPe=g({id:365,name:\"Theta Testnet\",nativeCurrency:{name:\"TFUEL\",symbol:\"TFUEL\",decimals:18},rpcUrls:{default:{http:[\"https://eth-rpc-api-testnet.thetatoken.org/rpc\"]}},blockExplorers:{default:{name:\"Theta Explorer\",url:\"https://testnet-explorer.thetatoken.org\"}},testnet:!0})});var wPe,EPe=x(()=>{c();_();wPe=g({id:108,name:\"ThunderCore Mainnet\",nativeCurrency:{name:\"TT\",symbol:\"TT\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet-rpc.thundercore.com\"]}},blockExplorers:{default:{name:\"ThunderCore Explorer\",url:\"https://explorer-mainnet.thundercore.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0}},testnet:!1})});var APe,SPe=x(()=>{c();_();APe=g({id:997,name:\"5ireChain Thunder Testnet\",nativeCurrency:{name:\"5ire Token\",symbol:\"5IRE\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.5ire.network\"]}},blockExplorers:{default:{name:\"5ireChain Thunder Explorer\",url:\"https://testnet.5irescan.io/\"}},testnet:!0})});var CPe,TPe=x(()=>{c();_();CPe=g({id:62092,name:\"TikTrix Testnet\",nativeCurrency:{name:\"tTTX\",symbol:\"tTTX\",decimals:18},rpcUrls:{default:{http:[\"https://tiktrix-rpc.xyz\"]}},blockExplorers:{default:{name:\"TikTrix Testnet Explorer\",url:\"https://tiktrix.xyz\"}},testnet:!0})});var _Pe,kPe=x(()=>{c();_();_Pe=g({id:6969,name:\"Tomb Mainnet\",nativeCurrency:{name:\"TOMB\",symbol:\"TOMB\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.tombchain.com\"]}},blockExplorers:{default:{name:\"Tomb Explorer\",url:\"https://tombscout.com\"}},testnet:!1})});var BPe,IPe=x(()=>{c();_();Xi();BPe=g({...bn,id:61166,name:\"Treasure\",nativeCurrency:{decimals:18,name:\"MAGIC\",symbol:\"MAGIC\"},rpcUrls:{default:{http:[\"https://rpc.treasure.lol\"],webSocket:[\"wss://rpc.treasure.lol/ws\"]}},blockExplorers:{default:{name:\"Treasure Block Explorer\",url:\"https://treasurescan.io\"}},contracts:{multicall3:{address:\"0x2e29fe39496a56856D8698bD43e1dF4D0CE6266a\",blockCreated:101}},testnet:!1})});var PPe,RPe=x(()=>{c();_();Xi();PPe=g({...bn,id:978658,name:\"Treasure Topaz Testnet\",nativeCurrency:{decimals:18,name:\"MAGIC\",symbol:\"MAGIC\"},rpcUrls:{default:{http:[\"https://rpc.topaz.treasure.lol\"],webSocket:[\"wss://rpc.topaz.treasure.lol/ws\"]}},blockExplorers:{default:{name:\"Treasure Topaz Block Explorer\",url:\"https://topaz.treasurescan.io\"}},contracts:{multicall3:{address:\"0xF9cda624FBC7e059355ce98a31693d299FACd963\",blockCreated:108112}},testnet:!0})});var MPe,OPe=x(()=>{c();_();MPe=g({id:728126428,name:\"Tron\",nativeCurrency:{name:\"TRON\",symbol:\"TRX\",decimals:6},rpcUrls:{default:{http:[\"https://api.trongrid.io/jsonrpc\"]}},blockTime:3e3,blockExplorers:{default:{name:\"Tronscan\",url:\"https://tronscan.org\",apiUrl:\"https://apilist.tronscanapi.com/api\"}}})});var NPe,UPe=x(()=>{c();_();NPe=g({id:3448148188,name:\"Tron Nile\",nativeCurrency:{name:\"TRON\",symbol:\"TRX\",decimals:6},rpcUrls:{default:{http:[\"https://nile.trongrid.io/jsonrpc\"]}},blockExplorers:{default:{name:\"Tronscan\",url:\"https://nile.tronscan.org\"}},testnet:!0})});var DPe,HPe=x(()=>{c();_();DPe=g({id:2494104990,name:\"Tron Shasta\",nativeCurrency:{name:\"TRON\",symbol:\"TRX\",decimals:6},rpcUrls:{default:{http:[\"https://api.shasta.trongrid.io/jsonrpc\"]}},blockExplorers:{default:{name:\"Tronscan\",url:\"https://shasta.tronscan.org\"}},testnet:!0})});var LPe,zPe=x(()=>{c();_();LPe=g({id:8,name:\"Ubiq Mainnet\",nativeCurrency:{name:\"UBQ\",symbol:\"UBQ\",decimals:18},rpcUrls:{default:{http:[\"https://pyrus2.ubiqscan.io\"]}},blockExplorers:{default:{name:\"Ubiq Scan\",url:\"https://ubiqscan.io\"}},testnet:!1})});var FPe,jPe=x(()=>{c();_();FPe=g({id:19991,name:\"Ultra EVM\",nativeCurrency:{decimals:18,name:\"Ultra Token\",symbol:\"UOS\"},rpcUrls:{default:{http:[\"https://evm.ultra.eosusa.io\"]}},blockExplorers:{default:{name:\"Ultra EVM Explorer\",url:\"https://evmexplorer.ultra.io\"}}})});var qPe,$Pe=x(()=>{c();_();qPe=g({id:18881,name:\"Ultra EVM Testnet\",nativeCurrency:{decimals:18,name:\"Ultra Token\",symbol:\"UOS\"},rpcUrls:{default:{http:[\"https://evm.test.ultra.eosusa.io\"]}},blockExplorers:{default:{name:\"Ultra EVM Testnet Explorer\",url:\"https://evmexplorer.testnet.ultra.io\"}},testnet:!0})});var GPe,VPe=x(()=>{c();_();GPe=g({id:1231,name:\"Ultron Mainnet\",nativeCurrency:{name:\"ULX\",symbol:\"ULX\",decimals:18},rpcUrls:{default:{http:[\"https://ultron-rpc.net\"]}},blockExplorers:{default:{name:\"Ultron Scan\",url:\"https://ulxscan.com\"}},testnet:!1})});var KPe,WPe=x(()=>{c();_();KPe=g({id:1230,name:\"Ultron Testnet\",nativeCurrency:{name:\"ULX\",symbol:\"ULX\",decimals:18},rpcUrls:{default:{http:[\"https://ultron-dev.io\"]}},blockExplorers:{default:{name:\"Ultron Scan\",url:\"https://explorer.ultron-dev.io\"}},testnet:!0})});var LR,QPe,ZPe=x(()=>{c();it();_();LR=1,QPe=g({...de,id:130,name:\"Unichain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:1e3,rpcUrls:{default:{http:[\"https://mainnet.unichain.org/\"]}},blockExplorers:{default:{name:\"Uniscan\",url:\"https://uniscan.xyz\",apiUrl:\"https://api.uniscan.xyz/api\"}},contracts:{...de.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0},disputeGameFactory:{[LR]:{address:\"0x2F12d621a16e2d3285929C9996f478508951dFe4\"}},portal:{[LR]:{address:\"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2\"}},l1StandardBridge:{[LR]:{address:\"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA\"}}},sourceId:LR})});var zR,JPe,YPe=x(()=>{c();it();_();zR=11155111,JPe=g({...de,id:1301,name:\"Unichain Sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:1e3,rpcUrls:{default:{http:[\"https://sepolia.unichain.org\"]}},blockExplorers:{default:{name:\"Uniscan\",url:\"https://sepolia.uniscan.xyz\",apiUrl:\"https://api-sepolia.uniscan.xyz/api\"}},contracts:{...de.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0},portal:{[zR]:{address:\"0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD\"}},l1StandardBridge:{[zR]:{address:\"0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2\"}},disputeGameFactory:{[zR]:{address:\"0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b\"}}},testnet:!0,sourceId:zR})});var XPe,eRe=x(()=>{c();_();XPe=g({id:8880,name:\"Unique Mainnet\",nativeCurrency:{decimals:18,name:\"UNQ\",symbol:\"UNQ\"},rpcUrls:{default:{http:[\"https://rpc.unique.network\"]}},blockExplorers:{default:{name:\"Unique Subscan\",url:\"https://unique.subscan.io/\"}}})});var tRe,rRe=x(()=>{c();_();tRe=g({id:8882,name:\"Opal Testnet\",nativeCurrency:{decimals:18,name:\"OPL\",symbol:\"OPL\"},rpcUrls:{default:{http:[\"https://rpc-opal.unique.network\"]}},blockExplorers:{default:{name:\"Opal Subscan\",url:\"https://opal.subscan.io/\"}},testnet:!0})});var nRe,oRe=x(()=>{c();_();nRe=g({id:8881,name:\"Quartz Mainnet\",nativeCurrency:{decimals:18,name:\"QTZ\",symbol:\"QTZ\"},rpcUrls:{default:{http:[\"https://rpc-quartz.unique.network\"]}},blockExplorers:{default:{name:\"Quartz Subscan\",url:\"https://quartz.subscan.io/\"}}})});var aRe,iRe=x(()=>{c();_();aRe=g({id:18233,name:\"Unreal\",nativeCurrency:{name:\"reETH\",decimals:18,symbol:\"reETH\"},rpcUrls:{default:{http:[\"https://rpc.unreal-orbit.gelato.digital\"]}},blockExplorers:{default:{name:\"Unreal Explorer\",url:\"https://unreal.blockscout.com\",apiUrl:\"https://unreal.blockscout.com/api/v2\"}},testnet:!0,contracts:{multicall3:{address:\"0x8b6B0e60D8CD84898Ea8b981065A12F876eA5677\",blockCreated:1745}}})});var sRe,cRe=x(()=>{c();_();sRe=g({id:1480,name:\"Vana\",blockTime:6e3,nativeCurrency:{decimals:18,name:\"Vana\",symbol:\"VANA\"},rpcUrls:{default:{http:[\"https://rpc.vana.org/\"]}},blockExplorers:{default:{name:\"Vana Block Explorer\",url:\"https://vanascan.io\",apiUrl:\"https://vanascan.io/api\"}},contracts:{multicall3:{address:\"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E\",blockCreated:716763}}})});var uRe,lRe=x(()=>{c();_();uRe=g({id:14800,name:\"Vana Moksha Testnet\",blockTime:6e3,nativeCurrency:{decimals:18,name:\"Vana\",symbol:\"VANA\"},rpcUrls:{default:{http:[\"https://rpc.moksha.vana.org\"]}},blockExplorers:{default:{name:\"Vana Moksha Testnet\",url:\"https://moksha.vanascan.io\",apiUrl:\"https://moksha.vanascan.io/api\"}},contracts:{multicall3:{address:\"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E\",blockCreated:732283}},testnet:!0})});var fRe,dRe=x(()=>{c();_();fRe=g({id:2040,name:\"Vanar Mainnet\",nativeCurrency:{name:\"VANRY\",symbol:\"VANRY\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.vanarchain.com\"]}},blockExplorers:{default:{name:\"Vanar Mainnet Explorer\",url:\"https://explorer.vanarchain.com/\"}},testnet:!1})});var pRe,mRe=x(()=>{c();_();pRe=g({id:100009,name:\"Vechain\",nativeCurrency:{name:\"VeChain\",symbol:\"VET\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.vechain.org\"]}},blockExplorers:{default:{name:\"Vechain Explorer\",url:\"https://explore.vechain.org\"},vechainStats:{name:\"Vechain Stats\",url:\"https://vechainstats.com\"}}})});var hRe,yRe=x(()=>{c();_();hRe=g({id:106,name:\"Velas EVM Mainnet\",nativeCurrency:{name:\"VLX\",symbol:\"VLX\",decimals:18},rpcUrls:{default:{http:[\"https://evmexplorer.velas.com/rpc\"]}},blockExplorers:{default:{name:\"Velas Explorer\",url:\"https://evmexplorer.velas.com\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:55883577}},testnet:!1})});var bRe,gRe=x(()=>{c();_();bRe=g({id:88,name:\"Viction\",nativeCurrency:{name:\"Viction\",symbol:\"VIC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.viction.xyz\"]}},blockExplorers:{default:{name:\"VIC Scan\",url:\"https://vicscan.xyz\"}},testnet:!1})});var xRe,vRe=x(()=>{c();_();xRe=g({id:89,name:\"Viction Testnet\",nativeCurrency:{name:\"Viction\",symbol:\"VIC\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet.viction.xyz\"]}},blockExplorers:{default:{name:\"VIC Scan\",url:\"https://testnet.vicscan.xyz\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:12170179}},testnet:!0})});var wRe,ERe=x(()=>{c();_();wRe=g({id:888888,name:\"Vision\",nativeCurrency:{name:\"VISION\",symbol:\"VS\",decimals:18},rpcUrls:{default:{http:[\"https://infragrid.v.network/ethereum/compatible\"]}},blockExplorers:{default:{name:\"Vision Scan\",url:\"https://visionscan.org\"}},testnet:!1})});var ARe,SRe=x(()=>{c();_();ARe=g({id:666666,name:\"Vision Testnet\",nativeCurrency:{name:\"VISION\",symbol:\"VS\",decimals:18},rpcUrls:{default:{http:[\"https://vpioneer.infragrid.v.network/ethereum/compatible\"]}},blockExplorers:{default:{name:\"Vision Scan\",url:\"https://visionscan.org/?chain=vpioneer\"}},testnet:!0})});var CRe,TRe=x(()=>{c();_();CRe=g({id:888,name:\"Wanchain\",nativeCurrency:{name:\"WANCHAIN\",symbol:\"WAN\",decimals:18},rpcUrls:{default:{http:[\"https://gwan-ssl.wandevs.org:56891\",\"https://gwan2-ssl.wandevs.org\"]}},blockExplorers:{default:{name:\"WanScan\",url:\"https://wanscan.org\"}},contracts:{multicall3:{address:\"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB\",blockCreated:25312390}}})});var _Re,kRe=x(()=>{c();_();_Re=g({id:999,name:\"Wanchain Testnet\",nativeCurrency:{name:\"WANCHAIN\",symbol:\"WANt\",decimals:18},rpcUrls:{default:{http:[\"https://gwan-ssl.wandevs.org:46891\"]}},blockExplorers:{default:{name:\"WanScanTest\",url:\"https://wanscan.org\"}},contracts:{multicall3:{address:\"0x11c89bF4496c39FB80535Ffb4c92715839CC5324\",blockCreated:24743448}},testnet:!0})});var BRe,IRe=x(()=>{c();_();BRe=g({id:9496,name:\"WeaveVM Alphanet\",nativeCurrency:{name:\"Testnet WeaveVM\",symbol:\"tWVM\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-rpc.wvm.dev\"]}},blockExplorers:{default:{name:\"WeaveVM Alphanet Explorer\",url:\"https://explorer.wvm.dev\"}},testnet:!0})});var PRe,RRe=x(()=>{c();_();PRe=g({id:1111,name:\"WEMIX\",network:\"wemix-mainnet\",nativeCurrency:{name:\"WEMIX\",symbol:\"WEMIX\",decimals:18},rpcUrls:{default:{http:[\"https://api.wemix.com\"]}},blockExplorers:{default:{name:\"wemixExplorer\",url:\"https://explorer.wemix.com\"}}})});var MRe,ORe=x(()=>{c();_();MRe=g({id:1112,name:\"WEMIX Testnet\",network:\"wemix-testnet\",nativeCurrency:{name:\"WEMIX\",symbol:\"tWEMIX\",decimals:18},rpcUrls:{default:{http:[\"https://api.test.wemix.com\"]}},blockExplorers:{default:{name:\"wemixExplorer\",url:\"https://testnet.wemixscan.com\",apiUrl:\"https://testnet.wemixscan.com/api\"}},testnet:!0})});var NRe,URe=x(()=>{c();_();NRe=g({id:420420421,name:\"Westend Asset Hub\",nativeCurrency:{decimals:18,name:\"Westies\",symbol:\"WND\"},rpcUrls:{default:{http:[\"https://westend-asset-hub-eth-rpc.polkadot.io\"]}},blockExplorers:{default:{name:\"subscan\",url:\"https://westend-asset-hub-eth-explorer.parity.io\"}},testnet:!0})});var DRe,HRe=x(()=>{c();_();DRe=g({testnet:!1,name:\"Whitechain\",blockExplorers:{default:{name:\"Whitechain Explorer\",url:\"https://explorer.whitechain.io\"}},id:1875,rpcUrls:{default:{http:[\"https://rpc.whitechain.io\"]}},nativeCurrency:{decimals:18,name:\"WhiteBIT Coin\",symbol:\"WBT\"},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:25212237}}})});var LRe,zRe=x(()=>{c();_();LRe=g({testnet:!0,name:\"Whitechain Testnet\",blockExplorers:{default:{name:\"Whitechain Explorer\",url:\"https://testnet.whitechain.io\"}},id:2625,rpcUrls:{default:{http:[\"https://rpc-testnet.whitechain.io\"]}},nativeCurrency:{decimals:18,name:\"WhiteBIT Coin\",symbol:\"WBT\"}})});var FRe,jRe=x(()=>{c();_();FRe=g({id:42070,name:\"WMC Testnet\",nativeCurrency:{name:\"WMTx\",symbol:\"WMTx\",decimals:18},rpcUrls:{default:{http:[\"https://rpc-testnet-base.worldmobile.net\"]}},blockExplorers:{default:{name:\"WMC Explorer\",url:\"https://explorer2-base-testnet.worldmobile.net\"}},testnet:!0})});var HC,qRe,$Re=x(()=>{c();it();_();HC=1,qRe=g({...de,id:480,name:\"World Chain\",network:\"worldchain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://worldchain-mainnet.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Worldscan\",url:\"https://worldscan.org\",apiUrl:\"https://api.worldscan.org/api\"},blockscout:{name:\"Blockscout\",url:\"https://worldchain-mainnet.explorer.alchemy.com\",apiUrl:\"https://worldchain-mainnet.explorer.alchemy.com/api\"}},contracts:{...de.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0},disputeGameFactory:{[HC]:{address:\"0x069c4c579671f8c120b1327a73217D01Ea2EC5ea\"}},l2OutputOracle:{[HC]:{address:\"0x19A6d1E9034596196295CF148509796978343c5D\"}},portal:{[HC]:{address:\"0xd5ec14a83B7d95BE1E2Ac12523e2dEE12Cbeea6C\"}},l1StandardBridge:{[HC]:{address:\"0x470458C91978D2d929704489Ad730DC3E3001113\"}}},testnet:!1,sourceId:HC})});var LC,GRe,VRe=x(()=>{c();it();_();LC=11155111,GRe=g({...de,id:4801,name:\"World Chain Sepolia\",network:\"worldchain-sepolia\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://worldchain-sepolia.g.alchemy.com/public\"]}},blockExplorers:{default:{name:\"Worldscan Sepolia\",url:\"https://sepolia.worldscan.org\",apiUrl:\"https://api-sepolia.worldscan.org/api\"},blockscout:{name:\"Blockscout\",url:\"https://worldchain-sepolia.explorer.alchemy.com\",apiUrl:\"https://worldchain-sepolia.explorer.alchemy.com/api\"}},contracts:{...de.contracts,multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:0},disputeGameFactory:{[LC]:{address:\"0x8Ec1111f67Dad6b6A93B3F42DfBC92D81c98449A\"}},l2OutputOracle:{[LC]:{address:\"0xc8886f8BAb6Eaeb215aDB5f1c686BF699248300e\"}},portal:{[LC]:{address:\"0xFf6EBa109271fe6d4237EeeD4bAb1dD9A77dD1A4\"}},l1StandardBridge:{[LC]:{address:\"0xd7DF54b3989855eb66497301a4aAEc33Dbb3F8DE\"}}},testnet:!0,sourceId:LC})});var KRe,WRe=x(()=>{c();_();KRe=g({id:103,name:\"WorldLand Mainnet\",nativeCurrency:{decimals:18,name:\"WLC\",symbol:\"WLC\"},rpcUrls:{default:{http:[\"https://seoul.worldland.foundation\"]}},blockExplorers:{default:{name:\"WorldLand Scan\",url:\"https://scan.worldland.foundation\"}},testnet:!1})});var QRe,ZRe=x(()=>{c();_();QRe=g({id:660279,name:\"Xai Mainnet\",nativeCurrency:{name:\"Xai\",symbol:\"XAI\",decimals:18},rpcUrls:{default:{http:[\"https://xai-chain.net/rpc\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://explorer.xai-chain.net\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:222549}},testnet:!1})});var JRe,YRe=x(()=>{c();_();JRe=g({id:37714555429,name:\"Xai Testnet\",nativeCurrency:{name:\"sXai\",symbol:\"sXAI\",decimals:18},rpcUrls:{default:{http:[\"https://testnet-v2.xai-chain.net/rpc\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://testnet-explorer-v2.xai-chain.net\"}},testnet:!0})});var XRe,eMe=x(()=>{c();_();XRe=g({id:50,name:\"XDC Network\",nativeCurrency:{decimals:18,name:\"XDC\",symbol:\"XDC\"},rpcUrls:{default:{http:[\"https://rpc.xdcrpc.com\"]}},blockExplorers:{default:{name:\"XDCScan\",url:\"https://xdcscan.com\"}},contracts:{multicall3:{address:\"0x0B1795ccA8E4eC4df02346a082df54D437F8D9aF\",blockCreated:75884020}}})});var tMe,rMe=x(()=>{c();_();tMe=g({id:51,name:\"Apothem Network\",nativeCurrency:{decimals:18,name:\"TXDC\",symbol:\"TXDC\"},rpcUrls:{default:{http:[\"https://erpc.apothem.network\"]}},blockExplorers:{default:{name:\"XDCScan\",url:\"https://testnet.xdcscan.com\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:59765389}},testnet:!0})});var nMe,oMe=x(()=>{c();_();nMe=g({id:1643,name:\"XGR Mainnet\",nativeCurrency:{name:\"XGR\",symbol:\"XGR\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.xgr.network\"]}},blockExplorers:{default:{name:\"XGR Explorer\",url:\"https://explorer.xgr.network\"}}})});var aMe,iMe=x(()=>{c();_();aMe=g({id:196,name:\"X Layer Mainnet\",nativeCurrency:{decimals:18,name:\"OKB\",symbol:\"OKB\"},rpcUrls:{default:{http:[\"https://xlayerrpc.okx.com\"]}},blockExplorers:{default:{name:\"OKLink\",url:\"https://www.oklink.com/xlayer\",apiUrl:\"https://www.oklink.com/api/v5/explorer/xlayer/api\"}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:47416}}})});var iW,sMe=x(()=>{c();_();iW=g({id:1952,name:\"X1 Testnet\",nativeCurrency:{decimals:18,name:\"OKB\",symbol:\"OKB\"},rpcUrls:{default:{http:[\"https://xlayertestrpc.okx.com\"]}},blockExplorers:{default:{name:\"OKLink\",url:\"https://www.oklink.com/xlayer-test\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:624344}},testnet:!0})});var cMe,uMe=x(()=>{c();_();cMe=g({id:3721,name:\"Xone Chain Mainnet\",nativeCurrency:{decimals:18,name:\"XOC\",symbol:\"XOC\"},rpcUrls:{default:{http:[\"https://rpc.xone.org\"]}},blockExplorers:{default:{name:\"Xone Mainnet Explorer\",url:\"https://xonescan.com\",apiUrl:\"http://api.xonescan.com/api\"}},testnet:!1})});var lMe,fMe=x(()=>{c();_();lMe=g({id:33772211,name:\"Xone Chain Testnet\",nativeCurrency:{decimals:18,name:\"XOC\",symbol:\"XOC\"},rpcUrls:{default:{http:[\"https://rpc-testnet.xone.org\",\"https://rpc-testnet.xone.plus\",\"https://rpc-testnet.knight.center\"]}},blockExplorers:{default:{name:\"Xone Testnet Explorer\",url:\"https://testnet.xonescan.com\",apiUrl:\"http://api.testnet.xonescan.com/api\"}},testnet:!0})});var dMe,pMe=x(()=>{c();_();dMe=g({id:20250217,name:\"Xphere Mainnet\",nativeCurrency:{decimals:18,name:\"XP\",symbol:\"XP\"},rpcUrls:{default:{http:[\"https://en-bkk.x-phere.com\"]}},blockExplorers:{default:{name:\"Xphere Tamsa Explorer\",url:\"https://xp.tamsa.io\"}},testnet:!1})});var mMe,hMe=x(()=>{c();_();mMe=g({id:1998991,name:\"Xphere Testnet\",nativeCurrency:{decimals:18,name:\"XPT\",symbol:\"XPT\"},rpcUrls:{default:{http:[\"http://testnet.x-phere.com\"]}},blockExplorers:{default:{name:\"Xphere Tamsa Explorer\",url:\"https://xpt.tamsa.io\"}},testnet:!0})});var yMe,bMe=x(()=>{c();_();yMe=g({id:37,name:\"CONX Chain\",nativeCurrency:{decimals:18,name:\"XPLA\",symbol:\"XPLA\"},rpcUrls:{default:{http:[\"https://dimension-evm-rpc.xpla.dev\"]}},blockExplorers:{default:{name:\"CONX Explorer\",url:\"https://explorer.conx.xyz\"}},testnet:!1})});var gMe,xMe=x(()=>{c();_();gMe=g({id:273,name:\"XR One\",nativeCurrency:{decimals:18,name:\"XR1\",symbol:\"XR1\"},rpcUrls:{default:{http:[\"https://xr1.calderachain.xyz/http\"],webSocket:[\"wss://xr1.calderachain.xyz/ws\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://xr1.calderaexplorer.xyz\"}},testnet:!1})});var vMe,wMe=x(()=>{c();_();vMe=g({id:144e4,name:\"XRPL EVM\",nativeCurrency:{name:\"XRP\",symbol:\"XRP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.xrplevm.org\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.xrplevm.org\",apiUrl:\"https://explorer.xrplevm.org/api/v2\"}},testnet:!1})});var EMe,AMe=x(()=>{c();_();EMe=g({id:1440002,name:\"XRPL EVM Devnet\",nativeCurrency:{name:\"XRP\",symbol:\"XRP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.xrplevm.org/\"]},public:{http:[\"https://rpc.xrplevm.org/\"]}},blockExplorers:{default:{name:\"XRPLEVM Devnet Explorer\",url:\"https://explorer.xrplevm.org/\"}},contracts:{multicall3:{address:\"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31\",blockCreated:15237286}},testnet:!0})});var SMe,CMe=x(()=>{c();_();SMe=g({id:1449e3,name:\"XRPL EVM Testnet\",nativeCurrency:{name:\"XRP\",symbol:\"XRP\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.xrplevm.org\"]}},blockExplorers:{default:{name:\"blockscout\",url:\"https://explorer.testnet.xrplevm.org\",apiUrl:\"https://explorer.testnet.xrplevm.org/api/v2\"}},contracts:{multicall3:{address:\"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31\",blockCreated:492302}},testnet:!0})});var TMe,_Me=x(()=>{c();_();TMe=g({id:2730,name:\"XR Sepolia\",nativeCurrency:{decimals:18,name:\"tXR\",symbol:\"tXR\"},rpcUrls:{default:{http:[\"https://xr-sepolia-testnet.rpc.caldera.xyz/http\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://xr-sepolia-testnet.explorer.caldera.xyz\"}},testnet:!0})});var kMe,BMe=x(()=>{c();_();kMe=g({id:50005,name:\"Yooldo Verse\",nativeCurrency:{name:\"OAS\",symbol:\"OAS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.yooldo-verse.xyz\"]}},blockExplorers:{default:{name:\"Yooldo Verse Explorer\",url:\"https://explorer.yooldo-verse.xyz\"}}})});var IMe,PMe=x(()=>{c();_();IMe=g({id:50006,name:\"Yooldo Verse Testnet\",nativeCurrency:{name:\"OAS\",symbol:\"OAS\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.testnet.yooldo-verse.xyz\"]}},blockExplorers:{default:{name:\"Yooldo Verse Testnet Explorer\",url:\"https://explorer.testnet.yooldo-verse.xyz\"}},testnet:!0})});var RMe,MMe=x(()=>{c();_();RMe=g({id:8408,name:\"ZenChain Testnet\",nativeCurrency:{decimals:18,name:\"ZTC\",symbol:\"ZTC\"},rpcUrls:{default:{http:[\"https://zenchain-testnet.api.onfinality.io/public\"],webSocket:[\"wss://zenchain-testnet.api.onfinality.io/public-ws\"]}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:230019}},blockExplorers:{default:{name:\"Zentrace\",url:\"https://zentrace.io\"}},testnet:!0})});var OMe,NMe=x(()=>{c();_();OMe=g({id:383414847825,name:\"Zeniq Mainnet\",nativeCurrency:{name:\"ZENIQ\",symbol:\"ZENIQ\",decimals:18},rpcUrls:{default:{http:[\"https://api.zeniq.network\"]}},blockExplorers:{default:{name:\"Zeniq Explorer\",url:\"https://zeniqscan.com\"}},testnet:!1})});var UMe,DMe=x(()=>{c();_();UMe=g({id:543210,name:\"Zero Network\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.zerion.io/v1/zero\"]}},blockExplorers:{default:{name:\"Zero Network Explorer\",url:\"https://explorer.zero.network\"}},testnet:!1})});var HMe,LMe=x(()=>{c();_();HMe=g({id:7e3,name:\"ZetaChain\",nativeCurrency:{decimals:18,name:\"Zeta\",symbol:\"ZETA\"},rpcUrls:{default:{http:[\"https://zetachain-evm.blockpi.network/v1/rpc/public\"]}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1632781}},blockExplorers:{default:{name:\"ZetaScan\",url:\"https://zetascan.com\"}},testnet:!1})});var zMe,FMe=x(()=>{c();_();zMe=g({id:7001,name:\"ZetaChain Athens Testnet\",nativeCurrency:{decimals:18,name:\"Zeta\",symbol:\"aZETA\"},rpcUrls:{default:{http:[\"https://zetachain-athens-evm.blockpi.network/v1/rpc/public\"]}},contracts:{multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:2715217}},blockExplorers:{default:{name:\"ZetaScan\",url:\"https://testnet.zetascan.com\"}},testnet:!0})});var jMe,qMe=x(()=>{c();_();jMe=g({id:1337803,name:\"Zhejiang\",nativeCurrency:{name:\"Zhejiang Ether\",symbol:\"ZhejETH\",decimals:18},rpcUrls:{default:{http:[\"https://rpc.zhejiang.ethpandaops.io\"]}},blockExplorers:{default:{name:\"Beaconchain\",url:\"https://zhejiang.beaconcha.in\"}},testnet:!0})});var $Me,GMe=x(()=>{c();_();$Me=g({id:32769,name:\"Zilliqa\",network:\"zilliqa\",nativeCurrency:{name:\"Zilliqa\",symbol:\"ZIL\",decimals:18},rpcUrls:{default:{http:[\"https://api.zilliqa.com\"]}},blockExplorers:{default:{name:\"Ethernal\",url:\"https://evmx.zilliqa.com\"}},testnet:!1})});var VMe,KMe=x(()=>{c();_();VMe=g({id:33101,name:\"Zilliqa Testnet\",network:\"zilliqa-testnet\",nativeCurrency:{name:\"Zilliqa\",symbol:\"ZIL\",decimals:18},rpcUrls:{default:{http:[\"https://dev-api.zilliqa.com\"]}},blockExplorers:{default:{name:\"Ethernal\",url:\"https://evmx.testnet.zilliqa.com\"}},testnet:!0})});var sW,WMe,QMe=x(()=>{c();it();_();sW=1,WMe=g({...de,id:48900,name:\"Zircuit Mainnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://mainnet.zircuit.com\"]}},blockExplorers:{default:{name:\"Zircuit Explorer\",url:\"https://explorer.zircuit.com\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"},l2OutputOracle:{[sW]:{address:\"0x92Ef6Af472b39F1b363da45E35530c24619245A4\"}},portal:{[sW]:{address:\"0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1\"}},l1StandardBridge:{[sW]:{address:\"0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8\"}}},testnet:!1})});var cW,ZMe,JMe=x(()=>{c();it();_();cW=11155111,ZMe=g({...de,id:48898,name:\"Zircuit Garfield Testnet\",nativeCurrency:{name:\"ETH\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://garfield-testnet.zircuit.com/\"]}},blockExplorers:{default:{name:\"Zircuit Garfield Testnet Explorer\",url:\"https://explorer.garfield-testnet.zircuit.com\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"},l2OutputOracle:{[cW]:{address:\"0xd69D3AC5CA686cCF94b258291772bc520FEAf211\"}},portal:{[cW]:{address:\"0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21\"}},l1StandardBridge:{[cW]:{address:\"0x87a7E2bCA9E35BA49282E832a28A6023904460D8\"}}},testnet:!0})});var YMe,XMe=x(()=>{c();_();YMe=g({id:42766,name:\"ZKFair Mainnet\",network:\"zkfair-mainnet\",nativeCurrency:{decimals:18,name:\"USD Coin\",symbol:\"USDC\"},rpcUrls:{default:{http:[\"https://rpc.zkfair.io\"]}},blockExplorers:{default:{name:\"zkFair Explorer\",url:\"https://scan.zkfair.io\",apiUrl:\"https://scan.zkfair.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:6090959}},testnet:!1})});var eOe,tOe=x(()=>{c();_();eOe=g({id:43851,name:\"ZKFair Testnet\",network:\"zkfair-testnet\",nativeCurrency:{decimals:18,name:\"USD Coin\",symbol:\"USDC\"},rpcUrls:{default:{http:[\"https://testnet-rpc.zkfair.io\"]}},blockExplorers:{default:{name:\"zkFair Explorer\",url:\"https://testnet-scan.zkfair.io\"}},testnet:!0})});var rOe,nOe=x(()=>{c();_();rOe=g({id:810180,name:\"zkLink Nova\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.zklink.io\"]}},blockExplorers:{default:{name:\"zkLink Nova Block Explorer\",url:\"https://explorer.zklink.io\"}}})});var oOe,aOe=x(()=>{c();_();oOe=g({id:810181,name:\"zkLink Nova Sepolia Testnet\",nativeCurrency:{decimals:18,name:\"ETH\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://sepolia.rpc.zklink.io\"]}},blockExplorers:{default:{name:\"zkLink Nova Block Explorer\",url:\"https://sepolia.explorer.zklink.io\"}},testnet:!0})});var uW,iOe=x(()=>{c();_();Xi();uW=g({...bn,blockTime:200,id:324,name:\"ZKsync Era\",network:\"zksync-era\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://mainnet.era.zksync.io\"],webSocket:[\"wss://mainnet.era.zksync.io/ws\"]}},blockExplorers:{default:{name:\"ZKsync Explorer\",url:\"https://explorer.zksync.io/\",apiUrl:\"https://block-explorer-api.mainnet.zksync.io/api\"}},contracts:{multicall3:{address:\"0xF9cda624FBC7e059355ce98a31693d299FACd963\",blockCreated:3908235},erc6492Verifier:{address:\"0xfB688330379976DA81eB64Fe4BF50d7401763B9C\",blockCreated:45659388}}})});var lW,sOe=x(()=>{c();_();Xi();lW=g({...bn,id:260,name:\"ZKsync InMemory Node\",network:\"zksync-in-memory-node\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"http://localhost:8011\"]}},testnet:!0})});var cOe,uOe=x(()=>{c();_();Xi();cOe=g({...bn,id:272,name:\"ZKsync CLI Local Custom Hyperchain\",nativeCurrency:{name:\"BAT\",symbol:\"BAT\",decimals:18},rpcUrls:{default:{http:[\"http://localhost:15200\"],webSocket:[\"ws://localhost:15201\"]}},blockExplorers:{default:{name:\"ZKsync explorer\",url:\"http://localhost:15005/\",apiUrl:\"http://localhost:15005/api\"}},testnet:!0})});var lOe,fOe=x(()=>{c();_();Xi();lOe=g({...bn,id:270,name:\"ZKsync CLI Local Hyperchain\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"http://localhost:15100\"],webSocket:[\"ws://localhost:15101\"]}},blockExplorers:{default:{name:\"ZKsync explorer\",url:\"http://localhost:15005/\",apiUrl:\"http://localhost:15005/api\"}},testnet:!0})});var dOe,pOe=x(()=>{c();_();dOe=g({id:9,name:\"ZKsync CLI Local Hyperchain L1\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"http://localhost:15045\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"http://localhost:15001/\",apiUrl:\"http://localhost:15001/api/v2\"}},testnet:!0})});var fW,mOe=x(()=>{c();_();Xi();fW=g({...bn,id:270,name:\"ZKsync CLI Local Node\",network:\"zksync-cli-local-node\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"http://localhost:3050\"]}},testnet:!0})});var dW,hOe=x(()=>{c();_();Xi();dW=g({...bn,blockTime:200,id:300,name:\"ZKsync Sepolia Testnet\",network:\"zksync-sepolia-testnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.era.zksync.dev\"],webSocket:[\"wss://sepolia.era.zksync.dev/ws\"]}},blockExplorers:{default:{name:\"ZKsync Explorer\",url:\"https://sepolia.explorer.zksync.io/\",blockExplorerApi:\"https://block-explorer-api.sepolia.zksync.dev/api\"}},contracts:{multicall3:{address:\"0xF9cda624FBC7e059355ce98a31693d299FACd963\"},erc6492Verifier:{address:\"0xfB688330379976DA81eB64Fe4BF50d7401763B9C\",blockCreated:3855712}},testnet:!0})});var yOe,bOe=x(()=>{c();_();yOe=g({id:375,name:\"zkXPLA Mainnet\",network:\"zkxpla\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.zkxpla.io\"]}},blockExplorers:{default:{name:\"zkXPLA Mainnet Explorer\",url:\"https://explorer.zkxpla.io\",apiUrl:\"https://explorer.zkxpla.io/api\"}},testnet:!1})});var gOe,xOe=x(()=>{c();_();gOe=g({id:475,name:\"zkXPLA Testnet\",network:\"zkxpla-testnet\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://testnet-rpc.zkxpla.io\"]}},blockExplorers:{default:{name:\"zkXPLA Testnet Explorer\",url:\"https://testnet-explorer.zkxpla.io\",apiUrl:\"https://testnet-explorer.zkxpla.io/api\"}},testnet:!0})});var zC,vOe,wOe=x(()=>{c();it();_();zC=1,vOe=g({...de,id:7777777,name:\"Zora\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://rpc.zora.energy\"],webSocket:[\"wss://rpc.zora.energy\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://explorer.zora.energy\",apiUrl:\"https://explorer.zora.energy/api\"}},contracts:{...de.contracts,disputeGameFactory:{[zC]:{address:\"0xB0F15106fa1e473Ddb39790f197275BC979Aa37e\"}},l2OutputOracle:{[zC]:{address:\"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:5882},portal:{[zC]:{address:\"0x1a0ad011913A150f69f6A19DF447A0CfD9551054\"}},l1StandardBridge:{[zC]:{address:\"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631\"}}},sourceId:zC})});var FR,EOe,AOe=x(()=>{c();it();_();FR=11155111,EOe=g({...de,id:999999999,name:\"Zora Sepolia\",network:\"zora-sepolia\",nativeCurrency:{decimals:18,name:\"Zora Sepolia\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://sepolia.rpc.zora.energy\"],webSocket:[\"wss://sepolia.rpc.zora.energy\"]}},blockExplorers:{default:{name:\"Zora Sepolia Explorer\",url:\"https://sepolia.explorer.zora.energy/\",apiUrl:\"https://sepolia.explorer.zora.energy/api\"}},contracts:{...de.contracts,l2OutputOracle:{[FR]:{address:\"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:83160},portal:{[FR]:{address:\"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f\"}},l1StandardBridge:{[FR]:{address:\"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB\"}}},sourceId:FR,testnet:!0})});var SOe,COe,TOe=x(()=>{c();it();_();SOe=5,COe=g({...de,id:999,name:\"Zora Goerli Testnet\",nativeCurrency:{decimals:18,name:\"Zora Goerli\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"https://testnet.rpc.zora.energy\"],webSocket:[\"wss://testnet.rpc.zora.energy\"]}},blockExplorers:{default:{name:\"Explorer\",url:\"https://testnet.explorer.zora.energy\",apiUrl:\"https://testnet.explorer.zora.energy/api\"}},contracts:{...de.contracts,multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:189123},portal:{[SOe]:{address:\"0xDb9F51790365e7dc196e7D072728df39Be958ACe\"}}},sourceId:SOe,testnet:!0})});var ay={};Wn(ay,{abey:()=>bye,abstract:()=>kye,abstractTestnet:()=>Iye,acala:()=>Rye,acria:()=>Oye,adf:()=>Uye,adi:()=>Hye,agungTestnet:()=>zye,aioz:()=>jye,alephZero:()=>$ye,alephZeroTestnet:()=>Vye,alienx:()=>Wye,alienxHalTestnet:()=>Zye,alpenTestnet:()=>Yye,ancient8:()=>tbe,ancient8Sepolia:()=>nbe,anvil:()=>abe,apeChain:()=>sbe,apexTestnet:()=>ube,apollo:()=>fbe,arbitrum:()=>pbe,arbitrumGoerli:()=>hbe,arbitrumNova:()=>bbe,arbitrumSepolia:()=>xbe,arcTestnet:()=>wbe,arenaz:()=>Abe,areonNetwork:()=>Cbe,areonNetworkTestnet:()=>_be,areum:()=>Bbe,artelaTestnet:()=>Pbe,arthera:()=>Mbe,artheraTestnet:()=>Nbe,assetChain:()=>Dbe,assetChainTestnet:()=>Lbe,astar:()=>Fbe,astarZkEVM:()=>qbe,astarZkyoto:()=>Gbe,atletaOlympia:()=>Kbe,aurora:()=>Qbe,auroraTestnet:()=>Jbe,auroria:()=>Xbe,autheoTestnet:()=>t1e,avalanche:()=>n1e,avalancheFuji:()=>a1e,b3:()=>s1e,b3Sepolia:()=>u1e,bahamut:()=>f1e,base:()=>pC,baseGoerli:()=>b1e,basePreconf:()=>p1e,baseSepolia:()=>TK,baseSepoliaPreconf:()=>x1e,basecampTestnet:()=>h1e,battlechainTestnet:()=>w1e,beam:()=>A1e,beamTestnet:()=>C1e,bearNetworkChainMainnet:()=>_1e,bearNetworkChainTestnet:()=>B1e,berachain:()=>P1e,berachainBepolia:()=>M1e,berachainTestnet:()=>N1e,berachainTestnetbArtio:()=>D1e,bevmMainnet:()=>L1e,bifrost:()=>F1e,birdlayer:()=>q1e,bitTorrent:()=>nge,bitTorrentTestnet:()=>age,bitgert:()=>G1e,bitkub:()=>K1e,bitkubTestnet:()=>Q1e,bitlayer:()=>J1e,bitlayerTestnet:()=>X1e,bitrock:()=>tge,blast:()=>sge,blastSepolia:()=>uge,bob:()=>fge,bobSepolia:()=>bge,boba:()=>pge,bobaSepolia:()=>hge,boolBetaMainnet:()=>xge,botanix:()=>wge,botanixTestnet:()=>Age,bounceBit:()=>Cge,bounceBitTestnet:()=>_ge,bronos:()=>Bge,bronosTestnet:()=>Pge,bsc:()=>Mge,bscGreenfield:()=>Nge,bscTestnet:()=>Dge,bsquared:()=>Lge,bsquaredTestnet:()=>Fge,btr:()=>qge,btrTestnet:()=>Gge,bxn:()=>Kge,bxnTestnet:()=>Qge,cannon:()=>Jge,canto:()=>Xge,celo:()=>sxe,celoAlfajores:()=>uxe,celoSepolia:()=>fxe,chang:()=>pxe,chiliz:()=>hxe,chips:()=>bxe,citrea:()=>xxe,citreaTestnet:()=>wxe,classic:()=>Axe,codex:()=>Cxe,codexTestnet:()=>_xe,coinbit:()=>Bxe,coinex:()=>Pxe,confluxESpace:()=>Mxe,confluxESpaceTestnet:()=>Nxe,coreDao:()=>Dxe,coreTestnet1:()=>Lxe,coreTestnet2:()=>Fxe,corn:()=>qxe,cornTestnet:()=>Gxe,cpchain:()=>Kxe,crab:()=>Qxe,creatorTestnet:()=>Jxe,creditCoin3Devnet:()=>Xxe,creditCoin3Mainnet:()=>t2e,creditCoin3Testnet:()=>n2e,cronos:()=>a2e,cronosTestnet:()=>s2e,cronoszkEVM:()=>u2e,cronoszkEVMTestnet:()=>f2e,crossbell:()=>p2e,crossfi:()=>h2e,curtis:()=>b2e,cyber:()=>x2e,cyberTestnet:()=>w2e,dailyNetwork:()=>A2e,dailyNetworkTestnet:()=>C2e,darwinia:()=>_2e,datahavenTestnet:()=>B2e,dbkchain:()=>P2e,dchain:()=>M2e,dchainTestnet:()=>N2e,defichainEvm:()=>D2e,defichainEvmTestnet:()=>L2e,degen:()=>F2e,dfk:()=>q2e,diode:()=>G2e,disChain:()=>K2e,dodochainTestnet:()=>Q2e,dogechain:()=>J2e,domaTestnet:()=>X2e,donatuz:()=>tve,dosChain:()=>nve,dosChainTestnet:()=>ave,dreyerxMainnet:()=>sve,dreyerxTestnet:()=>uve,dustboyIoT:()=>fve,dymension:()=>pve,eden:()=>hve,edexa:()=>bve,edexaTestnet:()=>xve,edgeless:()=>wve,edgelessTestnet:()=>Ave,edgeware:()=>Cve,edgewareTestnet:()=>_ve,eduChain:()=>Bve,eduChainTestnet:()=>Pve,elastos:()=>Mve,elastosTestnet:()=>Nve,electroneum:()=>Dve,electroneumTestnet:()=>Lve,elysiumTestnet:()=>Fve,energy:()=>qve,eni:()=>Gve,eniTestnet:()=>Kve,enuls:()=>Qve,eon:()=>Jve,eos:()=>Xve,eosTestnet:()=>twe,eteria:()=>nwe,etherlink:()=>awe,etherlinkShadownetTestnet:()=>swe,etherlinkTestnet:()=>uwe,ethernity:()=>fwe,etp:()=>pwe,evmos:()=>hwe,evmosTestnet:()=>bwe,excelonMainnet:()=>xwe,expanse:()=>wwe,exsat:()=>Awe,exsatTestnet:()=>Cwe,fantom:()=>_we,fantomSonicTestnet:()=>Bwe,fantomTestnet:()=>Pwe,fibo:()=>Mwe,filecoin:()=>Nwe,filecoinCalibration:()=>Dwe,filecoinHyperspace:()=>Lwe,fireChain:()=>hye,flame:()=>Fwe,flare:()=>qwe,flareTestnet:()=>Gwe,flowMainnet:()=>Kwe,flowPreviewnet:()=>Qwe,flowTestnet:()=>Jwe,fluence:()=>Xwe,fluenceStage:()=>t6e,fluenceTestnet:()=>n6e,fluent:()=>a6e,fluentDevnet:()=>s6e,fluentTestnet:()=>u6e,form:()=>f6e,formTestnet:()=>h6e,forma:()=>p6e,formicarium:()=>_Se,forta:()=>b6e,foundry:()=>x6e,fraxtal:()=>w6e,fraxtalTestnet:()=>A6e,funkiMainnet:()=>C6e,funkiSepolia:()=>_6e,fuse:()=>B6e,fuseSparknet:()=>P6e,fusion:()=>M6e,fusionTestnet:()=>N6e,garnet:()=>D6e,gatechain:()=>L6e,geist:()=>F6e,genesys:()=>q6e,gensyn:()=>G6e,giwaSepolia:()=>MK,giwaSepoliaPreconf:()=>K6e,glideL1Protocol:()=>Q6e,glideL2Protocol:()=>J6e,gnosis:()=>X6e,gnosisChiado:()=>t5e,goChain:()=>s5e,goat:()=>n5e,gobi:()=>a5e,godwoken:()=>u5e,goerli:()=>f5e,graphite:()=>p5e,graphiteTestnet:()=>h5e,gravity:()=>b5e,gunz:()=>x5e,guruNetwork:()=>w5e,guruTestnet:()=>A5e,ham:()=>C5e,happychainTestnet:()=>_5e,haqqMainnet:()=>B5e,haqqTestedge2:()=>P5e,hardhat:()=>M5e,harmonyOne:()=>N5e,hashkey:()=>D5e,hashkeyTestnet:()=>L5e,haustTestnet:()=>F5e,hedera:()=>q5e,hederaPreviewnet:()=>G5e,hederaTestnet:()=>K5e,hela:()=>Q5e,heliosTestnet:()=>J5e,hemi:()=>X5e,hemiSepolia:()=>tEe,henesys:()=>nEe,holesky:()=>aEe,hoodi:()=>sEe,horizenTestnet:()=>uEe,hpb:()=>fEe,hpp:()=>pEe,hppSepolia:()=>hEe,huddle01Mainnet:()=>bEe,huddle01Testnet:()=>xEe,humanity:()=>wEe,humanityTestnet:()=>AEe,humanode:()=>CEe,humanodeTestnet5:()=>_Ee,hychain:()=>BEe,hychainTestnet:()=>PEe,hyperEvm:()=>OK,hyperliquid:()=>OK,hyperliquidEvmTestnet:()=>OEe,iSunCoin:()=>m3e,icbNetwork:()=>UEe,idchain:()=>HEe,igra:()=>zEe,immutableZkEvm:()=>jEe,immutableZkEvmTestnet:()=>$Ee,inEVM:()=>VEe,initVerse:()=>WEe,initVerseGenesis:()=>ZEe,injective:()=>YEe,injectiveTestnet:()=>e3e,ink:()=>r3e,inkSepolia:()=>o3e,iota:()=>i3e,iotaTestnet:()=>c3e,iotex:()=>l3e,iotexTestnet:()=>d3e,jasmyChain:()=>y3e,jasmyChainTestnet:()=>g3e,jbc:()=>v3e,jbcTestnet:()=>E3e,jocMainnet:()=>S3e,jocTestnet:()=>T3e,jovay:()=>k3e,jovaySepolia:()=>I3e,juneo:()=>R3e,juneoBCH1Chain:()=>O3e,juneoDAI1Chain:()=>U3e,juneoDOGE1Chain:()=>H3e,juneoEUR1Chain:()=>z3e,juneoGLD1Chain:()=>j3e,juneoLINK1Chain:()=>$3e,juneoLTC1Chain:()=>V3e,juneoSGD1Chain:()=>Z3e,juneoSocotraTestnet:()=>Y3e,juneoUSD1Chain:()=>e8e,juneoUSDT1Chain:()=>r8e,juneomBTC1Chain:()=>W3e,kaia:()=>o8e,kairos:()=>i8e,kakarotSepolia:()=>c8e,kakarotStarknetSepolia:()=>l8e,kardiaChain:()=>d8e,karura:()=>m8e,katana:()=>y8e,kava:()=>g8e,kavaTestnet:()=>v8e,kcc:()=>E8e,kii:()=>S8e,kiiTestnetOro:()=>T8e,kinto:()=>k8e,klaytn:()=>I8e,klaytnBaobab:()=>R8e,koi:()=>O8e,kroma:()=>U8e,kromaSepolia:()=>H8e,krown:()=>z8e,l3x:()=>j8e,l3xTestnet:()=>$8e,lavita:()=>V8e,lens:()=>W8e,lensTestnet:()=>Z8e,lestnet:()=>Y8e,lightlinkPegasus:()=>eAe,lightlinkPhoenix:()=>rAe,linea:()=>sAe,lineaGoerli:()=>uAe,lineaSepolia:()=>fAe,lineaTestnet:()=>pAe,lisk:()=>hAe,liskSepolia:()=>bAe,loadAlphanet:()=>xAe,localhost:()=>wAe,loop:()=>AAe,lukso:()=>CAe,luksoTestnet:()=>_Ae,lumiaMainnet:()=>BAe,lumiaTestnet:()=>PAe,lumoz:()=>MAe,lumozTestnet:()=>NAe,luxeports:()=>DAe,lycan:()=>LAe,lyra:()=>FAe,mainnet:()=>qAe,mandala:()=>GAe,manta:()=>KAe,mantaSepoliaTestnet:()=>QAe,mantaTestnet:()=>JAe,mantle:()=>XAe,mantleSepoliaTestnet:()=>tSe,mantleTestnet:()=>nSe,mantraDuKongEVMTestnet:()=>aSe,mantraEVM:()=>sSe,mapProtocol:()=>uSe,matchain:()=>fSe,matchainTestnet:()=>pSe,mchVerse:()=>hSe,megaeth:()=>bSe,megaethTestnet:()=>xSe,mekong:()=>wSe,meld:()=>ASe,memecore:()=>CSe,merlin:()=>BSe,merlinErigonTestnet:()=>PSe,metachain:()=>MSe,metachainIstanbul:()=>NSe,metadium:()=>DSe,metalL2:()=>LSe,meter:()=>FSe,meterTestnet:()=>qSe,metis:()=>GSe,metisGoerli:()=>KSe,metisSepolia:()=>QSe,mev:()=>JSe,mevTestnet:()=>XSe,mezo:()=>tCe,mezoTestnet:()=>nCe,mint:()=>aCe,mintSepoliaTestnet:()=>sCe,mitosisTestnet:()=>uCe,mode:()=>fCe,modeTestnet:()=>pCe,monad:()=>hCe,monadTestnet:()=>bCe,moonbaseAlpha:()=>xCe,moonbeam:()=>wCe,moonbeamDev:()=>ACe,moonriver:()=>CCe,morph:()=>_Ce,morphHolesky:()=>BCe,morphSepolia:()=>PCe,nahmii:()=>MCe,nautilus:()=>NCe,near:()=>DCe,nearTestnet:()=>LCe,neonDevnet:()=>FCe,neonMainnet:()=>qCe,neoxMainnet:()=>GCe,neoxT4:()=>KCe,newton:()=>QCe,nexi:()=>JCe,nexilix:()=>XCe,nibiru:()=>tTe,nitrographTestnet:()=>nTe,nomina:()=>aTe,oasisTestnet:()=>sTe,oasys:()=>uTe,odysseyTestnet:()=>fTe,okc:()=>pTe,omax:()=>hTe,omni:()=>bTe,omniOmega:()=>xTe,oneWorld:()=>wTe,oortMainnetDev:()=>ATe,opBNB:()=>CTe,opBNBTestnet:()=>_Te,openledger:()=>BTe,optimism:()=>PTe,optimismGoerli:()=>MTe,optimismSepolia:()=>NTe,optopia:()=>DTe,optopiaTestnet:()=>LTe,orderly:()=>FTe,orderlySepolia:()=>qTe,otimDevnet:()=>GTe,palm:()=>KTe,palmTestnet:()=>QTe,paseoPassetHub:()=>JTe,peaq:()=>XTe,pgn:()=>t_e,pgnTestnet:()=>n_e,phoenix:()=>a_e,planq:()=>s_e,plasma:()=>u_e,plasmaDevnet:()=>f_e,plasmaTestnet:()=>p_e,playfiAlbireo:()=>h_e,plinga:()=>b_e,plume:()=>x_e,plumeDevnet:()=>w_e,plumeMainnet:()=>A_e,plumeSepolia:()=>C_e,plumeTestnet:()=>__e,polterTestnet:()=>B_e,polygon:()=>P_e,polygonAmoy:()=>M_e,polygonMumbai:()=>N_e,polygonZkEvm:()=>D_e,polygonZkEvmCardona:()=>L_e,polygonZkEvmTestnet:()=>F_e,polynomial:()=>q_e,polynomialSepolia:()=>G_e,potos:()=>K_e,potosTestnet:()=>Q_e,premiumBlockTestnet:()=>J_e,pulsechain:()=>X_e,pulsechainV4:()=>t4e,pumpfiTestnet:()=>n4e,pyrope:()=>i4e,qMainnet:()=>l4e,qTestnet:()=>d4e,ql1:()=>c4e,quai:()=>m4e,quaiTestnet:()=>y4e,radius:()=>g4e,radiusTestnet:()=>v4e,reactiveTestnet:()=>E4e,real:()=>S4e,redbellyMainnet:()=>T4e,redbellyTestnet:()=>k4e,reddio:()=>I4e,reddioSepolia:()=>R4e,redstone:()=>O4e,rei:()=>U4e,reyaNetwork:()=>H4e,rise:()=>z4e,riseTestnet:()=>j4e,rivalz:()=>$4e,rollux:()=>V4e,rolluxTestnet:()=>W4e,ronin:()=>Z4e,root:()=>Y4e,rootPorcini:()=>eke,rootstock:()=>rke,rootstockTestnet:()=>oke,rss3:()=>ike,rss3Sepolia:()=>cke,saakuru:()=>lke,saga:()=>dke,saigon:()=>mke,sanko:()=>yke,sapphire:()=>gke,sapphireTestnet:()=>vke,satoshiVM:()=>Eke,satoshiVMTestnet:()=>Ske,scroll:()=>Tke,scrollSepolia:()=>kke,sei:()=>Ike,seiTestnet:()=>Oke,seismicDevnet:()=>Rke,sepolia:()=>Uke,shape:()=>Hke,shapeSepolia:()=>zke,shardeum:()=>jke,shardeumSphinx:()=>$ke,shibarium:()=>Vke,shibariumTestnet:()=>Wke,shiden:()=>Zke,shimmer:()=>Yke,shimmerTestnet:()=>e7e,sidraChain:()=>r7e,silentData:()=>o7e,silicon:()=>i7e,siliconSepolia:()=>c7e,sixProtocol:()=>l7e,skaleBase:()=>U7e,skaleBaseSepoliaTestnet:()=>H7e,skaleBlockBrawlers:()=>d7e,skaleCalypso:()=>m7e,skaleCalypsoTestnet:()=>y7e,skaleCryptoBlades:()=>g7e,skaleCryptoColosseum:()=>v7e,skaleEuropa:()=>E7e,skaleEuropaTestnet:()=>S7e,skaleExorde:()=>T7e,skaleHumanProtocol:()=>k7e,skaleNebula:()=>I7e,skaleNebulaTestnet:()=>R7e,skaleRazor:()=>O7e,skaleTitan:()=>z7e,skaleTitanTestnet:()=>j7e,sketchpad:()=>$7e,snax:()=>V7e,snaxTestnet:()=>W7e,somnia:()=>Z7e,somniaTestnet:()=>Y7e,soneium:()=>e9e,soneiumMinato:()=>r9e,songbird:()=>o9e,songbirdTestnet:()=>i9e,sonic:()=>c9e,sonicBlazeTestnet:()=>l9e,sonicTestnet:()=>d9e,sophon:()=>m9e,sophonTestnet:()=>y9e,sova:()=>g9e,sovaSepolia:()=>v9e,spicy:()=>E9e,stable:()=>S9e,stableTestnet:()=>T9e,statusNetworkSepolia:()=>NK,statusSepolia:()=>NK,step:()=>B9e,story:()=>P9e,storyAeneid:()=>M9e,storyOdyssey:()=>N9e,storyTestnet:()=>D9e,stratis:()=>L9e,subtensorEvm:()=>F9e,superlumio:()=>q9e,superposition:()=>G9e,superseed:()=>K9e,superseedSepolia:()=>Q9e,surgeTestnet:()=>J9e,swan:()=>X9e,swanProximaTestnet:()=>tBe,swanSaturnTestnet:()=>nBe,swellchain:()=>aBe,swellchainTestnet:()=>sBe,swissdlt:()=>uBe,syscoin:()=>fBe,syscoinTestnet:()=>pBe,tac:()=>hBe,tacSPB:()=>bBe,taiko:()=>xBe,taikoHekla:()=>wBe,taikoHoodi:()=>ABe,taikoJolnir:()=>CBe,taikoKatla:()=>_Be,taikoTestnetSepolia:()=>BBe,taraxa:()=>PBe,taraxaTestnet:()=>MBe,teaSepolia:()=>NBe,telcoinTestnet:()=>DBe,telos:()=>LBe,telosTestnet:()=>FBe,tempo:()=>oW,tempoDevnet:()=>oPe,tempoLocalnet:()=>iPe,tempoMainnet:()=>oW,tempoModerato:()=>aW,tempoTestnet:()=>aW,tenet:()=>uPe,ternoa:()=>fPe,thaiChain:()=>pPe,that:()=>hPe,theta:()=>bPe,thetaTestnet:()=>xPe,thunderCore:()=>wPe,thunderTestnet:()=>APe,tiktrixTestnet:()=>CPe,tomb:()=>_Pe,treasure:()=>BPe,treasureTopaz:()=>PPe,tron:()=>MPe,tronNile:()=>NPe,tronShasta:()=>DPe,ubiq:()=>LPe,ultra:()=>FPe,ultraTestnet:()=>qPe,ultron:()=>GPe,ultronTestnet:()=>KPe,unichain:()=>QPe,unichainSepolia:()=>JPe,unique:()=>XPe,uniqueOpal:()=>tRe,uniqueQuartz:()=>nRe,unreal:()=>aRe,vana:()=>sRe,vanaMoksha:()=>uRe,vanar:()=>fRe,vechain:()=>pRe,velas:()=>hRe,viction:()=>bRe,victionTestnet:()=>xRe,vision:()=>wRe,visionTestnet:()=>ARe,wanchain:()=>CRe,wanchainTestnet:()=>_Re,weaveVMAlphanet:()=>BRe,wemix:()=>PRe,wemixTestnet:()=>MRe,westendAssetHub:()=>NRe,whitechain:()=>DRe,whitechainTestnet:()=>LRe,wmcTestnet:()=>FRe,worldLand:()=>KRe,worldchain:()=>qRe,worldchainSepolia:()=>GRe,x1Testnet:()=>iW,xLayer:()=>aMe,xLayerTestnet:()=>iW,xai:()=>QRe,xaiTestnet:()=>JRe,xdc:()=>XRe,xdcTestnet:()=>tMe,xgr:()=>nMe,xoneMainnet:()=>cMe,xoneTestnet:()=>lMe,xphereMainnet:()=>dMe,xphereTestnet:()=>mMe,xpla:()=>yMe,xrOne:()=>gMe,xrSepolia:()=>TMe,xrplevm:()=>vMe,xrplevmDevnet:()=>EMe,xrplevmTestnet:()=>SMe,yooldoVerse:()=>kMe,yooldoVerseTestnet:()=>IMe,zenchainTestnet:()=>RMe,zeniq:()=>OMe,zeroG:()=>sye,zeroGGalileoTestnet:()=>uye,zeroGMainnet:()=>fye,zeroGTestnet:()=>pye,zeroNetwork:()=>UMe,zetachain:()=>HMe,zetachainAthensTestnet:()=>zMe,zhejiang:()=>jMe,zilliqa:()=>$Me,zilliqaTestnet:()=>VMe,zircuit:()=>WMe,zircuitGarfieldTestnet:()=>ZMe,zkFair:()=>YMe,zkFairTestnet:()=>eOe,zkLinkNova:()=>rOe,zkLinkNovaSepoliaTestnet:()=>oOe,zkSync:()=>uW,zkSyncInMemoryNode:()=>lW,zkSyncLocalNode:()=>fW,zkSyncSepoliaTestnet:()=>dW,zkXPLA:()=>yOe,zkXPLATestnet:()=>gOe,zksync:()=>uW,zksyncInMemoryNode:()=>lW,zksyncLocalCustomHyperchain:()=>cOe,zksyncLocalHyperchain:()=>lOe,zksyncLocalHyperchainL1:()=>dOe,zksyncLocalNode:()=>fW,zksyncSepoliaTestnet:()=>dW,zora:()=>vOe,zoraSepolia:()=>EOe,zoraTestnet:()=>COe});var jR=x(()=>{c();cye();lye();dye();mye();yye();gye();Bye();Pye();Mye();Nye();Dye();Lye();Fye();qye();Gye();Kye();Qye();Jye();Xye();rbe();obe();ibe();cbe();lbe();dbe();mbe();ybe();gbe();vbe();Ebe();Sbe();Tbe();kbe();Ibe();Rbe();Obe();Ube();Hbe();zbe();jbe();$be();Vbe();Wbe();Zbe();Ybe();e1e();r1e();o1e();i1e();c1e();l1e();d1e();m1e();y1e();g1e();v1e();E1e();S1e();T1e();k1e();I1e();R1e();O1e();U1e();H1e();z1e();j1e();$1e();V1e();W1e();Z1e();Y1e();ege();rge();oge();ige();cge();lge();dge();mge();yge();gge();vge();Ege();Sge();Tge();kge();Ige();Rge();Oge();Uge();Hge();zge();jge();$ge();Vge();Wge();Zge();Yge();exe();cxe();lxe();dxe();mxe();yxe();gxe();vxe();Exe();Sxe();Txe();kxe();Ixe();Rxe();Oxe();Uxe();Hxe();zxe();jxe();$xe();Vxe();Wxe();Zxe();Yxe();e2e();r2e();o2e();i2e();c2e();l2e();d2e();m2e();y2e();g2e();v2e();E2e();S2e();T2e();k2e();I2e();R2e();O2e();U2e();H2e();z2e();j2e();$2e();V2e();W2e();Z2e();Y2e();eve();rve();ove();ive();cve();lve();dve();mve();yve();gve();vve();Eve();Sve();Tve();kve();Ive();Rve();Ove();Uve();Hve();zve();jve();$ve();Vve();Wve();Zve();Yve();ewe();rwe();owe();iwe();cwe();lwe();dwe();mwe();ywe();gwe();vwe();Ewe();Swe();Twe();kwe();Iwe();Rwe();Owe();Uwe();Hwe();zwe();jwe();$we();Vwe();Wwe();Zwe();Ywe();e6e();r6e();o6e();i6e();c6e();l6e();d6e();m6e();y6e();g6e();v6e();E6e();S6e();T6e();k6e();I6e();R6e();O6e();U6e();H6e();z6e();j6e();$6e();V6e();W6e();Z6e();Y6e();e5e();r5e();o5e();i5e();c5e();l5e();d5e();m5e();y5e();g5e();v5e();E5e();S5e();T5e();k5e();I5e();R5e();O5e();U5e();H5e();z5e();j5e();$5e();V5e();W5e();Z5e();Y5e();eEe();rEe();oEe();iEe();cEe();lEe();dEe();mEe();yEe();gEe();vEe();EEe();SEe();TEe();kEe();IEe();REe();MEe();NEe();DEe();LEe();FEe();qEe();GEe();KEe();QEe();JEe();XEe();t3e();n3e();a3e();s3e();u3e();f3e();p3e();h3e();b3e();x3e();w3e();A3e();C3e();_3e();B3e();P3e();M3e();N3e();D3e();L3e();F3e();q3e();G3e();K3e();Q3e();J3e();X3e();t8e();n8e();a8e();s8e();u8e();f8e();p8e();h8e();b8e();x8e();w8e();A8e();C8e();_8e();B8e();P8e();M8e();N8e();D8e();L8e();F8e();q8e();G8e();K8e();Q8e();J8e();X8e();tAe();nAe();cAe();lAe();dAe();mAe();yAe();gAe();vAe();EAe();SAe();TAe();kAe();IAe();RAe();OAe();UAe();HAe();zAe();jAe();$Ae();VAe();WAe();ZAe();YAe();eSe();rSe();oSe();iSe();cSe();lSe();dSe();mSe();ySe();gSe();vSe();ESe();SSe();TSe();kSe();ISe();RSe();OSe();USe();HSe();zSe();jSe();$Se();VSe();WSe();ZSe();YSe();eCe();rCe();oCe();iCe();cCe();lCe();dCe();mCe();yCe();gCe();vCe();ECe();SCe();TCe();kCe();ICe();RCe();OCe();UCe();HCe();zCe();jCe();$Ce();VCe();WCe();ZCe();YCe();eTe();rTe();oTe();iTe();cTe();lTe();dTe();mTe();yTe();gTe();vTe();ETe();STe();TTe();kTe();ITe();RTe();OTe();UTe();HTe();zTe();jTe();$Te();VTe();WTe();ZTe();YTe();e_e();r_e();o_e();i_e();c_e();l_e();d_e();m_e();y_e();g_e();v_e();E_e();S_e();T_e();k_e();I_e();R_e();O_e();U_e();H_e();z_e();j_e();$_e();V_e();W_e();Z_e();Y_e();e4e();r4e();o4e();s4e();u4e();f4e();p4e();h4e();b4e();x4e();w4e();A4e();C4e();_4e();B4e();P4e();M4e();N4e();D4e();L4e();F4e();q4e();G4e();K4e();Q4e();J4e();X4e();tke();nke();ake();ske();uke();fke();pke();hke();bke();xke();wke();Ake();Cke();_ke();Bke();Pke();Mke();Nke();Dke();Lke();Fke();qke();Gke();Kke();Qke();Jke();Xke();t7e();n7e();a7e();s7e();u7e();f7e();p7e();h7e();b7e();x7e();w7e();A7e();C7e();_7e();B7e();P7e();M7e();N7e();D7e();L7e();F7e();q7e();G7e();K7e();Q7e();J7e();X7e();t9e();n9e();a9e();s9e();u9e();f9e();p9e();h9e();b9e();x9e();w9e();A9e();C9e();_9e();k9e();I9e();R9e();O9e();U9e();H9e();z9e();j9e();$9e();V9e();W9e();Z9e();Y9e();eBe();rBe();oBe();iBe();cBe();lBe();dBe();mBe();yBe();gBe();vBe();EBe();SBe();TBe();kBe();IBe();RBe();OBe();UBe();HBe();zBe();jBe();nPe();aPe();sPe();cPe();lPe();dPe();mPe();yPe();gPe();vPe();EPe();SPe();TPe();kPe();IPe();RPe();OPe();UPe();HPe();zPe();jPe();$Pe();VPe();WPe();ZPe();YPe();eRe();rRe();oRe();iRe();cRe();lRe();dRe();mRe();yRe();gRe();vRe();ERe();SRe();TRe();kRe();IRe();RRe();ORe();URe();HRe();zRe();jRe();$Re();VRe();WRe();ZRe();YRe();eMe();rMe();oMe();iMe();sMe();uMe();fMe();pMe();hMe();bMe();xMe();wMe();AMe();CMe();_Me();BMe();PMe();MMe();NMe();DMe();LMe();FMe();qMe();GMe();KMe();QMe();JMe();XMe();tOe();nOe();aOe();iOe();sOe();uOe();fOe();pOe();mOe();hOe();bOe();xOe();wOe();AOe();TOe()});var pW=x(()=>{c();Q1();Ic();kP()});function UOe(e){if(typeof window>\"u\")return;let t=r=>e(r.detail);return window.addEventListener(\"eip6963:announceProvider\",t),window.dispatchEvent(new CustomEvent(\"eip6963:requestProvider\")),()=>window.removeEventListener(\"eip6963:announceProvider\",t)}var DOe=x(()=>{c()});function vW(){let e=new Set,t=[],r=()=>UOe(o=>{t.some(({info:s})=>s.uuid===o.info.uuid)||(t=[...t,o],e.forEach(s=>s(t,{added:[o]})))}),n=r();return{_listeners(){return e},clear(){e.forEach(o=>o([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),n?.()},findProvider({rdns:o}){return t.find(s=>s.info.rdns===o)},getProviders(){return t},reset(){this.clear(),n?.(),n=r()},subscribe(o,{emitImmediately:s}={}){return e.add(o),s&&o(t,{added:t}),()=>e.delete(o)}}}var HOe=x(()=>{c();DOe()});var LOe=x(()=>{c();HOe()});var $Oe=X((ean,EW)=>{\"use strict\";c();var Eht=Object.prototype.hasOwnProperty,ts=\"~\";function $C(){}Object.create&&($C.prototype=Object.create(null),new $C().__proto__||(ts=!1));function Aht(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function qOe(e,t,r,n,o){if(typeof r!=\"function\")throw new TypeError(\"The listener must be a function\");var s=new Aht(r,n||e,o),u=ts?ts+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function JR(e,t){--e._eventsCount===0?e._events=new $C:delete e._events[t]}function hi(){this._events=new $C,this._eventsCount=0}hi.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)Eht.call(r,n)&&t.push(ts?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};hi.prototype.listeners=function(t){var r=ts?ts+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,s=n.length,u=new Array(s);o<s;o++)u[o]=n[o].fn;return u};hi.prototype.listenerCount=function(t){var r=ts?ts+t:t,n=this._events[r];return n?n.fn?1:n.length:0};hi.prototype.emit=function(t,r,n,o,s,u){var f=ts?ts+t:t;if(!this._events[f])return!1;var d=this._events[f],m=arguments.length,h,y;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),m){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,r),!0;case 3:return d.fn.call(d.context,r,n),!0;case 4:return d.fn.call(d.context,r,n,o),!0;case 5:return d.fn.call(d.context,r,n,o,s),!0;case 6:return d.fn.call(d.context,r,n,o,s,u),!0}for(y=1,h=new Array(m-1);y<m;y++)h[y-1]=arguments[y];d.fn.apply(d.context,h)}else{var v=d.length,E;for(y=0;y<v;y++)switch(d[y].once&&this.removeListener(t,d[y].fn,void 0,!0),m){case 1:d[y].fn.call(d[y].context);break;case 2:d[y].fn.call(d[y].context,r);break;case 3:d[y].fn.call(d[y].context,r,n);break;case 4:d[y].fn.call(d[y].context,r,n,o);break;default:if(!h)for(E=1,h=new Array(m-1);E<m;E++)h[E-1]=arguments[E];d[y].fn.apply(d[y].context,h)}}return!0};hi.prototype.on=function(t,r,n){return qOe(this,t,r,n,!1)};hi.prototype.once=function(t,r,n){return qOe(this,t,r,n,!0)};hi.prototype.removeListener=function(t,r,n,o){var s=ts?ts+t:t;if(!this._events[s])return this;if(!r)return JR(this,s),this;var u=this._events[s];if(u.fn)u.fn===r&&(!o||u.once)&&(!n||u.context===n)&&JR(this,s);else{for(var f=0,d=[],m=u.length;f<m;f++)(u[f].fn!==r||o&&!u[f].once||n&&u[f].context!==n)&&d.push(u[f]);d.length?this._events[s]=d.length===1?d[0]:d:JR(this,s)}return this};hi.prototype.removeAllListeners=function(t){var r;return t?(r=ts?ts+t:t,this._events[r]&&JR(this,r)):(this._events=new $C,this._eventsCount=0),this};hi.prototype.off=hi.prototype.removeListener;hi.prototype.addListener=hi.prototype.on;hi.prefixed=ts;hi.EventEmitter=hi;typeof EW<\"u\"&&(EW.exports=hi)});var l6,YR=x(()=>{c();l6=Sr($Oe(),1)});var tNe=X(eNe=>{\"use strict\";c();(function(){function e(E,C){return E===C&&(E!==0||1/E===1/C)||E!==E&&C!==C}function t(E,C){h||o.startTransition===void 0||(h=!0,console.error(\"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"));var B=C();if(!y){var R=C();s(B,R)||(console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"),y=!0)}R=u({inst:{value:B,getSnapshot:C}});var M=R[0].inst,U=R[1];return d(function(){M.value=B,M.getSnapshot=C,r(M)&&U({inst:M})},[E,B,C]),f(function(){return r(M)&&U({inst:M}),E(function(){r(M)&&U({inst:M})})},[E]),m(B),B}function r(E){var C=E.getSnapshot;E=E.value;try{var B=C();return!s(E,B)}catch{return!0}}function n(E,C){return C()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=oo(),s=typeof Object.is==\"function\"?Object.is:e,u=o.useState,f=o.useEffect,d=o.useLayoutEffect,m=o.useDebugValue,h=!1,y=!1,v=typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"?n:t;eNe.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var nNe=X((Cin,rNe)=>{\"use strict\";c();rNe.exports=tNe()});var aNe=X(oNe=>{\"use strict\";c();(function(){function e(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=oo(),r=nNe(),n=typeof Object.is==\"function\"?Object.is:e,o=r.useSyncExternalStore,s=t.useRef,u=t.useEffect,f=t.useMemo,d=t.useDebugValue;oNe.useSyncExternalStoreWithSelector=function(m,h,y,v,E){var C=s(null);if(C.current===null){var B={hasValue:!1,value:null};C.current=B}else B=C.current;C=f(function(){function M(K){if(!U){if(U=!0,O=K,K=v(K),E!==void 0&&B.hasValue){var G=B.value;if(E(G,K))return N=G}return N=K}if(G=N,n(O,K))return G;var J=v(K);return E!==void 0&&E(G,J)?(O=K,G):(O=K,N=J)}var U=!1,O,N,j=y===void 0?null:y;return[function(){return M(h())},j===null?void 0:function(){return M(j())}]},[h,y,v,E]);var R=o(m,C[0],C[1]);return u(function(){B.hasValue=!0,B.value=R},[R]),d(R),R},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var sNe=X((Bin,iNe)=>{\"use strict\";c();iNe.exports=aNe()});var jNe=X(bM=>{\"use strict\";c();(function(){function e(z){if(z==null)return null;if(typeof z==\"function\")return z.$$typeof===ie?null:z.displayName||z.name||null;if(typeof z==\"string\")return z;switch(z){case R:return\"Fragment\";case U:return\"Profiler\";case M:return\"StrictMode\";case K:return\"Suspense\";case G:return\"SuspenseList\";case W:return\"Activity\"}if(typeof z==\"object\")switch(typeof z.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),z.$$typeof){case B:return\"Portal\";case N:return z.displayName||\"Context\";case O:return(z._context.displayName||\"Context\")+\".Consumer\";case j:var I=z.render;return z=z.displayName,z||(z=I.displayName||I.name||\"\",z=z!==\"\"?\"ForwardRef(\"+z+\")\":\"ForwardRef\"),z;case J:return I=z.displayName||null,I!==null?I:e(z.type)||\"Memo\";case Y:I=z._payload,z=z._init;try{return e(z(I))}catch{}}return null}function t(z){return\"\"+z}function r(z){try{t(z);var I=!1}catch{I=!0}if(I){I=console;var Q=I.error,me=typeof Symbol==\"function\"&&Symbol.toStringTag&&z[Symbol.toStringTag]||z.constructor.name||\"Object\";return Q.call(I,\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",me),t(z)}}function n(z){if(z===R)return\"<>\";if(typeof z==\"object\"&&z!==null&&z.$$typeof===Y)return\"<...>\";try{var I=e(z);return I?\"<\"+I+\">\":\"<...>\"}catch{return\"<...>\"}}function o(){var z=re.A;return z===null?null:z.getOwner()}function s(){return Error(\"react-stack-top-frame\")}function u(z){if(H.call(z,\"key\")){var I=Object.getOwnPropertyDescriptor(z,\"key\").get;if(I&&I.isReactWarning)return!1}return z.key!==void 0}function f(z,I){function Q(){P||(P=!0,console.error(\"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",I))}Q.isReactWarning=!0,Object.defineProperty(z,\"key\",{get:Q,configurable:!0})}function d(){var z=e(this.type);return D[z]||(D[z]=!0,console.error(\"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\")),z=this.props.ref,z!==void 0?z:null}function m(z,I,Q,me,ge,Se){var Ce=Q.ref;return z={$$typeof:C,type:z,key:I,props:Q,_owner:me},(Ce!==void 0?Ce:null)!==null?Object.defineProperty(z,\"ref\",{enumerable:!1,get:d}):Object.defineProperty(z,\"ref\",{enumerable:!1,value:null}),z._store={},Object.defineProperty(z._store,\"validated\",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(z,\"_debugInfo\",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(z,\"_debugStack\",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(z,\"_debugTask\",{configurable:!1,enumerable:!1,writable:!0,value:Se}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z}function h(z,I,Q,me,ge,Se){var Ce=I.children;if(Ce!==void 0)if(me)if(A(Ce)){for(me=0;me<Ce.length;me++)y(Ce[me]);Object.freeze&&Object.freeze(Ce)}else console.error(\"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\");else y(Ce);if(H.call(I,\"key\")){Ce=e(z);var $e=Object.keys(I).filter(function(Ot){return Ot!==\"key\"});me=0<$e.length?\"{key: someKey, \"+$e.join(\": ..., \")+\": ...}\":\"{key: someKey}\",Z[Ce+me]||($e=0<$e.length?\"{\"+$e.join(\": ..., \")+\": ...}\":\"{}\",console.error(`A props object containing a \"key\" prop is being spread into JSX:\\n  let props = %s;\\n  <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n  let props = %s;\\n  <%s key={someKey} {...props} />`,me,Ce,$e,Ce),Z[Ce+me]=!0)}if(Ce=null,Q!==void 0&&(r(Q),Ce=\"\"+Q),u(I)&&(r(I.key),Ce=\"\"+I.key),\"key\"in I){Q={};for(var je in I)je!==\"key\"&&(Q[je]=I[je])}else Q=I;return Ce&&f(Q,typeof z==\"function\"?z.displayName||z.name||\"Unknown\":z),m(z,Ce,Q,o(),ge,Se)}function y(z){v(z)?z._store&&(z._store.validated=1):typeof z==\"object\"&&z!==null&&z.$$typeof===Y&&(z._payload.status===\"fulfilled\"?v(z._payload.value)&&z._payload.value._store&&(z._payload.value._store.validated=1):z._store&&(z._store.validated=1))}function v(z){return typeof z==\"object\"&&z!==null&&z.$$typeof===C}var E=oo(),C=Symbol.for(\"react.transitional.element\"),B=Symbol.for(\"react.portal\"),R=Symbol.for(\"react.fragment\"),M=Symbol.for(\"react.strict_mode\"),U=Symbol.for(\"react.profiler\"),O=Symbol.for(\"react.consumer\"),N=Symbol.for(\"react.context\"),j=Symbol.for(\"react.forward_ref\"),K=Symbol.for(\"react.suspense\"),G=Symbol.for(\"react.suspense_list\"),J=Symbol.for(\"react.memo\"),Y=Symbol.for(\"react.lazy\"),W=Symbol.for(\"react.activity\"),ie=Symbol.for(\"react.client.reference\"),re=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,A=Array.isArray,T=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(z){return z()}};var P,D={},L=E.react_stack_bottom_frame.bind(E,s)(),V=T(n(s)),Z={};bM.Fragment=R,bM.jsx=function(z,I,Q){var me=1e4>re.recentlyCreatedOwnerStacks++;return h(z,I,Q,!1,me?Error(\"react-stack-top-frame\"):L,me?T(n(z)):V)},bM.jsxs=function(z,I,Q){var me=1e4>re.recentlyCreatedOwnerStacks++;return h(z,I,Q,!0,me?Error(\"react-stack-top-frame\"):L,me?T(n(z)):V)}})()});var Dl=X((hun,qNe)=>{\"use strict\";c();qNe.exports=jNe()});var xUe,vUe=x(()=>{c();xUe=\"1.2.3\"});var Io,k6=x(()=>{c();vUe();Io=class e extends Error{constructor(t,r={}){let n=r.cause instanceof e?r.cause.details:r.cause?.message?r.cause.message:r.details,o=r.cause instanceof e&&r.cause.docsPath||r.docsPath,s=[t||\"An error occurred.\",\"\",...r.metaMessages?[...r.metaMessages,\"\"]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...n?[`Details: ${n}`]:[],`Version: abitype@${xUe}`].join(`\\n`);super(s),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiTypeError\"}),r.cause&&(this.cause=r.cause),this.details=n,this.docsPath=o,this.metaMessages=r.metaMessages,this.shortMessage=t}}});function Mc(e,t){return e.exec(t)?.groups}var uQ,lQ,wM,iT=x(()=>{c();uQ=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,lQ=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,wM=/^\\\\(.+?\\\\).*?$/});function EM(e){let t=e.type;if(wUe.test(e.type)&&\"components\"in e){t=\"(\";let r=e.components.length;for(let o=0;o<r;o++){let s=e.components[o];t+=EM(s),o<r-1&&(t+=\", \")}let n=Mc(wUe,e.type);return t+=`)${n?.array||\"\"}`,EM({...e,type:t})}return\"indexed\"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}var wUe,EUe=x(()=>{c();iT();wUe=/^tuple(?<array>(\\\\[(\\\\d*)\\\\])*)$/});function Rm(e){let t=\"\",r=e.length;for(let n=0;n<r;n++){let o=e[n];t+=EM(o),n!==r-1&&(t+=\", \")}return t}var fQ=x(()=>{c();EUe()});function Sg(e){return e.type===\"function\"?`function ${e.name}(${Rm(e.inputs)})${e.stateMutability&&e.stateMutability!==\"nonpayable\"?` ${e.stateMutability}`:\"\"}${e.outputs?.length?` returns (${Rm(e.outputs)})`:\"\"}`:e.type===\"event\"?`event ${e.name}(${Rm(e.inputs)})`:e.type===\"error\"?`error ${e.name}(${Rm(e.inputs)})`:e.type===\"constructor\"?`constructor(${Rm(e.inputs)})${e.stateMutability===\"payable\"?\" payable\":\"\"}`:e.type===\"fallback\"?`fallback() external${e.stateMutability===\"payable\"?\" payable\":\"\"}`:\"receive() external payable\"}var AUe=x(()=>{c();fQ()});function CUe(e){return SUe.test(e)}function TUe(e){return Mc(SUe,e)}function kUe(e){return _Ue.test(e)}function BUe(e){return Mc(_Ue,e)}function PUe(e){return IUe.test(e)}function RUe(e){return Mc(IUe,e)}function gy(e){return MUe.test(e)}function OUe(e){return Mc(MUe,e)}function UUe(e){return NUe.test(e)}function DUe(e){return Mc(NUe,e)}function LUe(e){return HUe.test(e)}function zUe(e){return Mc(HUe,e)}function FUe(e){return qht.test(e)}var SUe,_Ue,IUe,MUe,NUe,HUe,qht,dQ,jUe,AM,B6=x(()=>{c();iT();SUe=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;_Ue=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;IUe=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\\\s?\\\\((?<returns>.*?)\\\\))?$/;MUe=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\\\{(?<properties>.*?)\\\\}$/;NUe=/^constructor\\\\((?<parameters>.*?)\\\\)(?:\\\\s(?<stateMutability>payable{1}))?$/;HUe=/^fallback\\\\(\\\\) external(?:\\\\s(?<stateMutability>payable{1}))?$/;qht=/^receive\\\\(\\\\) external payable$/;dQ=new Set([\"memory\",\"indexed\",\"storage\",\"calldata\"]),jUe=new Set([\"indexed\"]),AM=new Set([\"calldata\",\"memory\",\"storage\"])});var SM,CM,TM,_M=x(()=>{c();k6();SM=class extends Io{constructor({signature:t}){super(\"Failed to parse ABI item.\",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:\"/api/human#parseabiitem-1\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiItemError\"})}},CM=class extends Io{constructor({type:t}){super(\"Unknown type.\",{metaMessages:[`Type \"${t}\" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownTypeError\"})}},TM=class extends Io{constructor({type:t}){super(\"Unknown type.\",{metaMessages:[`Type \"${t}\" is not a valid ABI type.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSolidityTypeError\"})}}});var kM,BM,IM,PM,RM,MM,OM=x(()=>{c();k6();kM=class extends Io{constructor({params:t}){super(\"Failed to parse ABI parameters.\",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:\"/api/human#parseabiparameters-1\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiParametersError\"})}},BM=class extends Io{constructor({param:t}){super(\"Invalid ABI parameter.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}},IM=class extends Io{constructor({param:t,name:r}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`\"${r}\" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SolidityProtectedKeywordError\"})}},PM=class extends Io{constructor({param:t,type:r,modifier:n}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`Modifier \"${n}\" not allowed${r?` in \"${r}\" type`:\"\"}.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidModifierError\"})}},RM=class extends Io{constructor({param:t,type:r,modifier:n}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`Modifier \"${n}\" not allowed${r?` in \"${r}\" type`:\"\"}.`,`Data location can only be specified for array, struct, or mapping types, but \"${n}\" was given.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidFunctionModifierError\"})}},MM=class extends Io{constructor({abiParameter:t}){super(\"Invalid ABI parameter.\",{details:JSON.stringify(t,null,2),metaMessages:[\"ABI parameter type is invalid.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiTypeParameterError\"})}}});var kd,NM,UM,pQ=x(()=>{c();k6();kd=class extends Io{constructor({signature:t,type:r}){super(`Invalid ${r} signature.`,{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSignatureError\"})}},NM=class extends Io{constructor({signature:t}){super(\"Unknown signature.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSignatureError\"})}},UM=class extends Io{constructor({signature:t}){super(\"Invalid struct signature.\",{details:t,metaMessages:[\"No properties exist.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidStructSignatureError\"})}}});var DM,qUe=x(()=>{c();k6();DM=class extends Io{constructor({type:t}){super(\"Circular reference detected.\",{metaMessages:[`Struct \"${t}\" is a circular reference.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CircularReferenceError\"})}}});var HM,$Ue=x(()=>{c();k6();HM=class extends Io{constructor({current:t,depth:r}){super(\"Unbalanced parentheses.\",{metaMessages:[`\"${t.trim()}\" has too many ${r>0?\"opening\":\"closing\"} parentheses.`],details:`Depth \"${r}\"`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParenthesisError\"})}}});function GUe(e,t,r){let n=\"\";if(r)for(let o of Object.entries(r)){if(!o)continue;let s=\"\";for(let u of o[1])s+=`[${u.type}${u.name?`:${u.name}`:\"\"}]`;n+=`(${o[0]}{${s}})`}return t?`${t}:${e}${n}`:`${e}${n}`}var LM,VUe=x(()=>{c();LM=new Map([[\"address\",{type:\"address\"}],[\"bool\",{type:\"bool\"}],[\"bytes\",{type:\"bytes\"}],[\"bytes32\",{type:\"bytes32\"}],[\"int\",{type:\"int256\"}],[\"int256\",{type:\"int256\"}],[\"string\",{type:\"string\"}],[\"uint\",{type:\"uint256\"}],[\"uint8\",{type:\"uint8\"}],[\"uint16\",{type:\"uint16\"}],[\"uint24\",{type:\"uint24\"}],[\"uint32\",{type:\"uint32\"}],[\"uint64\",{type:\"uint64\"}],[\"uint96\",{type:\"uint96\"}],[\"uint112\",{type:\"uint112\"}],[\"uint160\",{type:\"uint160\"}],[\"uint192\",{type:\"uint192\"}],[\"uint256\",{type:\"uint256\"}],[\"address owner\",{type:\"address\",name:\"owner\"}],[\"address to\",{type:\"address\",name:\"to\"}],[\"bool approved\",{type:\"bool\",name:\"approved\"}],[\"bytes _data\",{type:\"bytes\",name:\"_data\"}],[\"bytes data\",{type:\"bytes\",name:\"data\"}],[\"bytes signature\",{type:\"bytes\",name:\"signature\"}],[\"bytes32 hash\",{type:\"bytes32\",name:\"hash\"}],[\"bytes32 r\",{type:\"bytes32\",name:\"r\"}],[\"bytes32 root\",{type:\"bytes32\",name:\"root\"}],[\"bytes32 s\",{type:\"bytes32\",name:\"s\"}],[\"string name\",{type:\"string\",name:\"name\"}],[\"string symbol\",{type:\"string\",name:\"symbol\"}],[\"string tokenURI\",{type:\"string\",name:\"tokenURI\"}],[\"uint tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint8 v\",{type:\"uint8\",name:\"v\"}],[\"uint256 balance\",{type:\"uint256\",name:\"balance\"}],[\"uint256 tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint256 value\",{type:\"uint256\",name:\"value\"}],[\"event:address indexed from\",{type:\"address\",name:\"from\",indexed:!0}],[\"event:address indexed to\",{type:\"address\",name:\"to\",indexed:!0}],[\"event:uint indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}],[\"event:uint256 indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}]])});function sT(e,t={}){if(PUe(e))return $ht(e,t);if(kUe(e))return Ght(e,t);if(CUe(e))return Vht(e,t);if(UUe(e))return Kht(e,t);if(LUe(e))return Wht(e);if(FUe(e))return{type:\"receive\",stateMutability:\"payable\"};throw new NM({signature:e})}function $ht(e,t={}){let r=RUe(e);if(!r)throw new kd({signature:e,type:\"function\"});let n=Vs(r.parameters),o=[],s=n.length;for(let f=0;f<s;f++)o.push(Hl(n[f],{modifiers:AM,structs:t,type:\"function\"}));let u=[];if(r.returns){let f=Vs(r.returns),d=f.length;for(let m=0;m<d;m++)u.push(Hl(f[m],{modifiers:AM,structs:t,type:\"function\"}))}return{name:r.name,type:\"function\",stateMutability:r.stateMutability??\"nonpayable\",inputs:o,outputs:u}}function Ght(e,t={}){let r=BUe(e);if(!r)throw new kd({signature:e,type:\"event\"});let n=Vs(r.parameters),o=[],s=n.length;for(let u=0;u<s;u++)o.push(Hl(n[u],{modifiers:jUe,structs:t,type:\"event\"}));return{name:r.name,type:\"event\",inputs:o}}function Vht(e,t={}){let r=TUe(e);if(!r)throw new kd({signature:e,type:\"error\"});let n=Vs(r.parameters),o=[],s=n.length;for(let u=0;u<s;u++)o.push(Hl(n[u],{structs:t,type:\"error\"}));return{name:r.name,type:\"error\",inputs:o}}function Kht(e,t={}){let r=DUe(e);if(!r)throw new kd({signature:e,type:\"constructor\"});let n=Vs(r.parameters),o=[],s=n.length;for(let u=0;u<s;u++)o.push(Hl(n[u],{structs:t,type:\"constructor\"}));return{type:\"constructor\",stateMutability:r.stateMutability??\"nonpayable\",inputs:o}}function Wht(e){let t=zUe(e);if(!t)throw new kd({signature:e,type:\"fallback\"});return{type:\"fallback\",stateMutability:t.stateMutability??\"nonpayable\"}}function Hl(e,t){let r=GUe(e,t?.type,t?.structs);if(LM.has(r))return LM.get(r);let n=wM.test(e),o=Mc(n?Zht:Qht,e);if(!o)throw new BM({param:e});if(o.name&&Xht(o.name))throw new IM({param:e,name:o.name});let s=o.name?{name:o.name}:{},u=o.modifier===\"indexed\"?{indexed:!0}:{},f=t?.structs??{},d,m={};if(n){d=\"tuple\";let y=Vs(o.type),v=[],E=y.length;for(let C=0;C<E;C++)v.push(Hl(y[C],{structs:f}));m={components:v}}else if(o.type in f)d=\"tuple\",m={components:f[o.type]};else if(Jht.test(o.type))d=`${o.type}256`;else if(o.type===\"address payable\")d=\"address\";else if(d=o.type,t?.type!==\"struct\"&&!mQ(d))throw new TM({type:d});if(o.modifier){if(!t?.modifiers?.has?.(o.modifier))throw new PM({param:e,type:t?.type,modifier:o.modifier});if(AM.has(o.modifier)&&!e0t(d,!!o.array))throw new RM({param:e,type:t?.type,modifier:o.modifier})}let h={type:`${d}${o.array??\"\"}`,...s,...u,...m};return LM.set(r,h),h}function Vs(e,t=[],r=\"\",n=0){let o=e.trim().length;for(let s=0;s<o;s++){let u=e[s],f=e.slice(s+1);switch(u){case\",\":return n===0?Vs(f,[...t,r.trim()]):Vs(f,t,`${r}${u}`,n);case\"(\":return Vs(f,t,`${r}${u}`,n+1);case\")\":return Vs(f,t,`${r}${u}`,n-1);default:return Vs(f,t,`${r}${u}`,n)}}if(r===\"\")return t;if(n!==0)throw new HM({current:r,depth:n});return t.push(r.trim()),t}function mQ(e){return e===\"address\"||e===\"bool\"||e===\"function\"||e===\"string\"||uQ.test(e)||lQ.test(e)}function Xht(e){return e===\"address\"||e===\"bool\"||e===\"function\"||e===\"string\"||e===\"tuple\"||uQ.test(e)||lQ.test(e)||Yht.test(e)}function e0t(e,t){return t||e===\"bytes\"||e===\"string\"||e===\"tuple\"}var Qht,Zht,Jht,Yht,I6=x(()=>{c();iT();_M();OM();pQ();$Ue();VUe();B6();Qht=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\\\spayable)?)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Zht=/^\\\\((?<type>.+?)\\\\)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Jht=/^u?int$/;Yht=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/});function P6(e){let t={},r=e.length;for(let u=0;u<r;u++){let f=e[u];if(!gy(f))continue;let d=OUe(f);if(!d)throw new kd({signature:f,type:\"struct\"});let m=d.properties.split(\";\"),h=[],y=m.length;for(let v=0;v<y;v++){let C=m[v].trim();if(!C)continue;let B=Hl(C,{type:\"struct\"});h.push(B)}if(!h.length)throw new UM({signature:f});t[d.name]=h}let n={},o=Object.entries(t),s=o.length;for(let u=0;u<s;u++){let[f,d]=o[u];n[f]=KUe(d,t)}return n}function KUe(e=[],t={},r=new Set){let n=[],o=e.length;for(let s=0;s<o;s++){let u=e[s];if(wM.test(u.type))n.push(u);else{let d=Mc(t0t,u.type);if(!d?.type)throw new MM({abiParameter:u});let{array:m,type:h}=d;if(h in t){if(r.has(h))throw new DM({type:h});n.push({...u,type:`tuple${m??\"\"}`,components:KUe(t[h],t,new Set([...r,h]))})}else if(mQ(h))n.push(u);else throw new CM({type:h})}}return n}var t0t,zM=x(()=>{c();iT();_M();OM();pQ();qUe();B6();I6();t0t=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?$/});function FM(e){let t=P6(e),r=[],n=e.length;for(let o=0;o<n;o++){let s=e[o];gy(s)||r.push(sT(s,t))}return r}var WUe=x(()=>{c();B6();zM();I6()});function jM(e){let t;if(typeof e==\"string\")t=sT(e);else{let r=P6(e),n=e.length;for(let o=0;o<n;o++){let s=e[o];if(!gy(s)){t=sT(s,r);break}}}if(!t)throw new SM({signature:e});return t}var QUe=x(()=>{c();_M();B6();zM();I6()});function qM(e){let t=[];if(typeof e==\"string\"){let r=Vs(e),n=r.length;for(let o=0;o<n;o++)t.push(Hl(r[o],{modifiers:dQ}))}else{let r=P6(e),n=e.length;for(let o=0;o<n;o++){let s=e[o];if(gy(s))continue;let u=Vs(s),f=u.length;for(let d=0;d<f;d++)t.push(Hl(u[d],{modifiers:dQ,structs:r}))}}if(t.length===0)throw new kM({params:e});return t}var ZUe=x(()=>{c();OM();B6();zM();I6();I6()});var cT=x(()=>{c();AUe();fQ();WUe();QUe();ZUe()});function la(e,{includeName:t=!1}={}){if(e.type!==\"function\"&&e.type!==\"event\"&&e.type!==\"error\")throw new $M(e.type);return`${e.name}(${uT(e.inputs,{includeName:t})})`}function uT(e,{includeName:t=!1}={}){return e?e.map(r=>r0t(r,{includeName:t})).join(t?\", \":\",\"):\"\"}function r0t(e,{includeName:t}){return e.type.startsWith(\"tuple\")?`(${uT(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:\"\")}var Mm=x(()=>{c();Po()});function Ro(e,{strict:t=!0}={}){return!e||typeof e!=\"string\"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith(\"0x\")}var Ll=x(()=>{c()});function wr(e){return Ro(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var wu=x(()=>{c();Ll()});var hQ,YUe=x(()=>{c();hQ=\"2.48.11\"});function XUe(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause!==void 0?XUe(e.cause,t):t?null:e}var yQ,be,xr=x(()=>{c();YUe();yQ={getDocsUrl:({docsBaseUrl:e,docsPath:t=\"\",docsSlug:r})=>t?`${e??\"https://viem.sh\"}${t}${r?`#${r}`:\"\"}`:void 0,version:`viem@${hQ}`},be=class e extends Error{constructor(t,r={}){let n=r.cause instanceof e?r.cause.details:r.cause?.message?r.cause.message:r.details,o=r.cause instanceof e&&r.cause.docsPath||r.docsPath,s=yQ.getDocsUrl?.({...r,docsPath:o}),u=[t||\"An error occurred.\",\"\",...r.metaMessages?[...r.metaMessages,\"\"]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...yQ.version?[`Version: ${yQ.version}`]:[]].join(`\\n`);super(u,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),this.details=n,this.docsPath=o,this.metaMessages=r.metaMessages,this.name=r.name??this.name,this.shortMessage=t,this.version=hQ}walk(t){return XUe(this,t)}}});var GM,lT,R6,Eu,VM,KM,WM,QM,fT,M6,ZM,JM,dT,zl,O6,YM,XM,eO,Om,xy,tO,rO,N6,$M,Po=x(()=>{c();Mm();wu();xr();GM=class extends be{constructor({docsPath:t}){super([\"A constructor was not found on the ABI.\",\"Make sure you are using the correct ABI and that the constructor exists on it.\"].join(`\\n`),{docsPath:t,name:\"AbiConstructorNotFoundError\"})}},lT=class extends be{constructor({docsPath:t}){super([\"Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\",\"Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.\"].join(`\\n`),{docsPath:t,name:\"AbiConstructorParamsNotFoundError\"})}},R6=class extends be{constructor({data:t,params:r,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(`\\n`),{metaMessages:[`Params: (${uT(r,{includeName:!0})})`,`Data:   ${t} (${n} bytes)`],name:\"AbiDecodingDataSizeTooSmallError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=r,this.size=n}},Eu=class extends be{constructor({cause:t}={}){super(\\'Cannot decode zero data (\"0x\") with ABI parameters.\\',{name:\"AbiDecodingZeroDataError\",cause:t})}},VM=class extends be{constructor({expectedLength:t,givenLength:r,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${t}`,`Given length: ${r}`].join(`\\n`),{name:\"AbiEncodingArrayLengthMismatchError\"})}},KM=class extends be{constructor({expectedSize:t,value:r}){super(`Size of bytes \"${r}\" (bytes${wr(r)}) does not match expected size (bytes${t}).`,{name:\"AbiEncodingBytesSizeMismatchError\"})}},WM=class extends be{constructor({expectedLength:t,givenLength:r}){super([\"ABI encoding params/values length mismatch.\",`Expected length (params): ${t}`,`Given length (values): ${r}`].join(`\\n`),{name:\"AbiEncodingLengthMismatchError\"})}},QM=class extends be{constructor(t,{docsPath:r}){super([`Arguments (\\\\`args\\\\`) were provided to \"${t}\", but \"${t}\" on the ABI does not contain any parameters (\\\\`inputs\\\\`).`,\"Cannot encode error result without knowing what the parameter types are.\",\"Make sure you are using the correct ABI and that the inputs exist on it.\"].join(`\\n`),{docsPath:r,name:\"AbiErrorInputsNotFoundError\"})}},fT=class extends be{constructor(t,{docsPath:r}={}){super([`Error ${t?`\"${t}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\"].join(`\\n`),{docsPath:r,name:\"AbiErrorNotFoundError\"})}},M6=class extends be{constructor(t,{docsPath:r,cause:n}){super([`Encoded error signature \"${t}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`\\n`),{docsPath:r,name:\"AbiErrorSignatureNotFoundError\",cause:n}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}},ZM=class extends be{constructor({docsPath:t}){super(\"Cannot extract event signature from empty topics.\",{docsPath:t,name:\"AbiEventSignatureEmptyTopicsError\"})}},JM=class extends be{constructor(t,{docsPath:r}){super([`Encoded event signature \"${t}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the event exists on it.\",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`\\n`),{docsPath:r,name:\"AbiEventSignatureNotFoundError\"})}},dT=class extends be{constructor(t,{docsPath:r}={}){super([`Event ${t?`\"${t}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the event exists on it.\"].join(`\\n`),{docsPath:r,name:\"AbiEventNotFoundError\"})}},zl=class extends be{constructor(t,{docsPath:r}={}){super([`Function ${t?`\"${t}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the function exists on it.\"].join(`\\n`),{docsPath:r,name:\"AbiFunctionNotFoundError\"})}},O6=class extends be{constructor(t,{docsPath:r}){super([`Function \"${t}\" does not contain any \\\\`outputs\\\\` on ABI.`,\"Cannot decode function result without knowing what the parameter types are.\",\"Make sure you are using the correct ABI and that the function exists on it.\"].join(`\\n`),{docsPath:r,name:\"AbiFunctionOutputsNotFoundError\"})}},YM=class extends be{constructor(t,{docsPath:r}){super([`Encoded function signature \"${t}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the function exists on it.\",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`\\n`),{docsPath:r,name:\"AbiFunctionSignatureNotFoundError\"})}},XM=class extends be{constructor(t,r){super(\"Found ambiguous types in overloaded ABI items.\",{metaMessages:[`\\\\`${t.type}\\\\` in \\\\`${la(t.abiItem)}\\\\`, and`,`\\\\`${r.type}\\\\` in \\\\`${la(r.abiItem)}\\\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"],name:\"AbiItemAmbiguityError\"})}},eO=class extends be{constructor({expectedSize:t,givenSize:r}){super(`Expected bytes${t}, got bytes${r}.`,{name:\"BytesSizeMismatchError\"})}},Om=class extends be{constructor({abiItem:t,data:r,params:n,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join(`\\n`),{metaMessages:[`Params: (${uT(n,{includeName:!0})})`,`Data:   ${r} (${o} bytes)`],name:\"DecodeLogDataMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=r,this.params=n,this.size=o}},xy=class extends be{constructor({abiItem:t,param:r}){super([`Expected a topic for indexed event parameter${r.name?` \"${r.name}\"`:\"\"} on event \"${la(t,{includeName:!0})}\".`].join(`\\n`),{name:\"DecodeLogTopicsMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}},tO=class extends be{constructor(t,{docsPath:r}){super([`Type \"${t}\" is not a valid encoding type.`,\"Please provide a valid ABI type.\"].join(`\\n`),{docsPath:r,name:\"InvalidAbiEncodingType\"})}},rO=class extends be{constructor(t,{docsPath:r}){super([`Type \"${t}\" is not a valid decoding type.`,\"Please provide a valid ABI type.\"].join(`\\n`),{docsPath:r,name:\"InvalidAbiDecodingType\"})}},N6=class extends be{constructor(t){super([`Value \"${t}\" is not a valid array.`].join(`\\n`),{name:\"InvalidArrayError\"})}},$M=class extends be{constructor(t){super([`\"${t}\" is not a valid definition type.`,\\'Valid types: \"function\", \"event\", \"error\"\\'].join(`\\n`),{name:\"InvalidDefinitionTypeError\"})}}});var pT,mT,hT,oO=x(()=>{c();xr();pT=class extends be{constructor({offset:t,position:r,size:n}){super(`Slice ${r===\"start\"?\"starting\":\"ending\"} at offset \"${t}\" is out-of-bounds (size: ${n}).`,{name:\"SliceOffsetOutOfBoundsError\"})}},mT=class extends be{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${r}).`,{name:\"SizeExceedsPaddingSizeError\"})}},hT=class extends be{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${r} ${n} long, but is ${t} ${n} long.`,{name:\"InvalidBytesLengthError\"})}}});function vy(e,{dir:t,size:r=32}={}){return typeof e==\"string\"?Nm(e,{dir:t,size:r}):n0t(e,{dir:t,size:r})}function Nm(e,{dir:t,size:r=32}={}){if(r===null)return e;let n=e.replace(\"0x\",\"\");if(n.length>r*2)throw new mT({size:Math.ceil(n.length/2),targetSize:r,type:\"hex\"});return`0x${n[t===\"right\"?\"padEnd\":\"padStart\"](r*2,\"0\")}`}function n0t(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new mT({size:e.length,targetSize:r,type:\"bytes\"});let n=new Uint8Array(r);for(let o=0;o<r;o++){let s=t===\"right\";n[s?o:r-o-1]=e[s?o:e.length-o-1]}return n}var aO=x(()=>{c();oO()});var wy,iO,sO,cO,yT=x(()=>{c();xr();wy=class extends be{constructor({max:t,min:r,signed:n,size:o,value:s}){super(`Number \"${s}\" is not in safe ${o?`${o*8}-bit ${n?\"signed\":\"unsigned\"} `:\"\"}integer range ${t?`(${r} to ${t})`:`(above ${r})`}`,{name:\"IntegerOutOfRangeError\"})}},iO=class extends be{constructor(t){super(`Bytes value \"${t}\" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:\"InvalidBytesBooleanError\"})}},sO=class extends be{constructor(t){super(`Hex value \"${t}\" is not a valid boolean. The hex value must be \"0x0\" (false) or \"0x1\" (true).`,{name:\"InvalidHexBooleanError\"})}},cO=class extends be{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`,{name:\"SizeOverflowError\"})}}});function Fl(e,{dir:t=\"left\"}={}){let r=typeof e==\"string\"?e.replace(\"0x\",\"\"):e,n=0;for(let o=0;o<r.length-1&&r[t===\"left\"?o:r.length-o-1].toString()===\"0\";o++)n++;return r=t===\"left\"?r.slice(n):r.slice(0,r.length-n),typeof e==\"string\"?(r.length===1&&t===\"right\"&&(r=`${r}0`),`0x${r.length%2===1?`0${r}`:r}`):r}var bT=x(()=>{c()});function Ks(e,{size:t}){if(wr(e)>t)throw new cO({givenSize:wr(e),maxSize:t})}function Va(e,t={}){let{signed:r}=t;t.size&&Ks(e,{size:t.size});let n=BigInt(e);if(!r)return n;let o=(e.length-2)/2,s=(1n<<BigInt(o)*8n-1n)-1n;return n<=s?n:n-BigInt(`0x${\"f\".padStart(o*2,\"f\")}`)-1n}function bQ(e,t={}){let r=e;if(t.size&&(Ks(r,{size:t.size}),r=Fl(r)),Fl(r)===\"0x00\")return!1;if(Fl(r)===\"0x01\")return!0;throw new sO(r)}function Sa(e,t={}){let r=Va(e,t),n=Number(r);if(!Number.isSafeInteger(n))throw new wy({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${r}n`});return n}var os=x(()=>{c();yT();wu();bT()});function Wo(e,t={}){return typeof e==\"number\"||typeof e==\"bigint\"?Fe(e,t):typeof e==\"string\"?Cg(e,t):typeof e==\"boolean\"?uO(e,t):Or(e,t)}function uO(e,t={}){let r=`0x${Number(e)}`;return typeof t.size==\"number\"?(Ks(r,{size:t.size}),vy(r,{size:t.size})):r}function Or(e,t={}){let r=\"\";for(let o=0;o<e.length;o++)r+=o0t[e[o]];let n=`0x${r}`;return typeof t.size==\"number\"?(Ks(n,{size:t.size}),vy(n,{dir:\"right\",size:t.size})):n}function Fe(e,t={}){let{signed:r,size:n}=t,o=BigInt(e),s;n?r?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof e==\"number\"&&(s=BigInt(Number.MAX_SAFE_INTEGER));let u=typeof s==\"bigint\"&&r?-s-1n:0;if(s&&o>s||o<u){let d=typeof e==\"bigint\"?\"n\":\"\";throw new wy({max:s?`${s}${d}`:void 0,min:`${u}${d}`,signed:r,size:n,value:`${e}${d}`})}let f=`0x${(r&&o<0?(1n<<BigInt(n*8))+BigInt(o):o).toString(16)}`;return n?vy(f,{size:n}):f}function Cg(e,t={}){let r=a0t.encode(e);return Or(r,t)}var o0t,a0t,Ht=x(()=>{c();yT();aO();os();o0t=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));a0t=new TextEncoder});function Au(e,t={}){return typeof e==\"number\"||typeof e==\"bigint\"?c0t(e,t):typeof e==\"boolean\"?s0t(e,t):Ro(e)?Ka(e,t):jl(e,t)}function s0t(e,t={}){let r=new Uint8Array(1);return r[0]=Number(e),typeof t.size==\"number\"?(Ks(r,{size:t.size}),vy(r,{size:t.size})):r}function eDe(e){if(e>=Um.zero&&e<=Um.nine)return e-Um.zero;if(e>=Um.A&&e<=Um.F)return e-(Um.A-10);if(e>=Um.a&&e<=Um.f)return e-(Um.a-10)}function Ka(e,t={}){let r=e;t.size&&(Ks(r,{size:t.size}),r=vy(r,{dir:\"right\",size:t.size}));let n=r.slice(2);n.length%2&&(n=`0${n}`);let o=n.length/2,s=new Uint8Array(o);for(let u=0,f=0;u<o;u++){let d=eDe(n.charCodeAt(f++)),m=eDe(n.charCodeAt(f++));if(d===void 0||m===void 0)throw new be(`Invalid byte sequence (\"${n[f-2]}${n[f-1]}\" in \"${n}\").`);s[u]=d*16+m}return s}function c0t(e,t){let r=Fe(e,t);return Ka(r)}function jl(e,t={}){let r=i0t.encode(e);return typeof t.size==\"number\"?(Ks(r,{size:t.size}),vy(r,{dir:\"right\",size:t.size})):r}var i0t,Um,Wa=x(()=>{c();xr();Ll();aO();os();Ht();i0t=new TextEncoder;Um={zero:48,nine:57,A:65,F:70,a:97,f:102}});function Tn(e,t){let r=t||\"hex\",n=Zf(Ro(e,{strict:!1})?Au(e):e);return r===\"bytes\"?n:Wo(n)}var ql=x(()=>{c();Av();Ll();Wa();Ht()});function tDe(e){return u0t(e)}var u0t,rDe=x(()=>{c();Wa();ql();u0t=e=>Tn(Au(e))});function nDe(e){let t=!0,r=\"\",n=0,o=\"\",s=!1;for(let u=0;u<e.length;u++){let f=e[u];if([\"(\",\")\",\",\"].includes(f)&&(t=!0),f===\"(\"&&n++,f===\")\"&&n--,!!t){if(n===0){if(f===\" \"&&[\"event\",\"function\",\"\"].includes(o))o=\"\";else if(o+=f,f===\")\"){s=!0;break}continue}if(f===\" \"){e[u-1]!==\",\"&&r!==\",\"&&r!==\",(\"&&(r=\"\",t=!1);continue}o+=f,r+=f}}if(!s)throw new be(\"Unable to normalize signature.\");return o}var oDe=x(()=>{c();xr()});var aDe,iDe=x(()=>{c();cT();oDe();aDe=e=>{let t=typeof e==\"string\"?e:Sg(e);return nDe(t)}});function lO(e){return tDe(aDe(e))}var gQ=x(()=>{c();rDe();iDe()});var Ey,gT=x(()=>{c();gQ();Ey=lO});var yi,Tg=x(()=>{c();xr();yi=class extends be{constructor({address:t}){super(`Address \"${t}\" is invalid.`,{metaMessages:[\"- Address must be a hex value of 20 bytes (40 hex characters).\",\"- Address must match its checksum counterpart.\"],name:\"InvalidAddressError\"})}}});var Bd,xT=x(()=>{c();Bd=class extends Map{constructor(t){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let r=super.get(t);return super.has(t)&&(super.delete(t),super.set(t,r)),r}set(t,r){if(super.has(t)&&super.delete(t),super.set(t,r),this.maxSize&&this.size>this.maxSize){let n=super.keys().next().value;n!==void 0&&super.delete(n)}return this}}});function Ay(e,t){if(xQ.has(`${e}.${t}`))return xQ.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=Tn(jl(r),\"bytes\"),o=(t?r.substring(`${t}0x`.length):r).split(\"\");for(let u=0;u<40;u+=2)n[u>>1]>>4>=8&&o[u]&&(o[u]=o[u].toUpperCase()),(n[u>>1]&15)>=8&&o[u+1]&&(o[u+1]=o[u+1].toUpperCase());let s=`0x${o.join(\"\")}`;return xQ.set(`${e}.${t}`,s),s}function Nn(e,t){if(!Qo(e,{strict:!1}))throw new yi({address:e});return Ay(e,t)}var xQ,Sy=x(()=>{c();Tg();Wa();ql();xT();Dm();xQ=new Bd(8192)});function Qo(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(vQ.has(n))return vQ.get(n);let o=l0t.test(e)?e.toLowerCase()===e?!0:r?Ay(e)===e:!0:!1;return vQ.set(n,o),o}var l0t,vQ,Dm=x(()=>{c();xT();Sy();l0t=/^0x[a-fA-F0-9]{40}$/,vQ=new Bd(8192)});function Qa(e){return typeof e[0]==\"string\"?$l(e):f0t(e)}function f0t(e){let t=0;for(let o of e)t+=o.length;let r=new Uint8Array(t),n=0;for(let o of e)r.set(o,n),n+=o.length;return r}function $l(e){return`0x${e.reduce((t,r)=>t+r.replace(\"0x\",\"\"),\"\")}`}var Su=x(()=>{c()});function Cu(e,t,r,{strict:n}={}){return Ro(e,{strict:!1})?d0t(e,t,r,{strict:n}):wQ(e,t,r,{strict:n})}function sDe(e,t){if(typeof t==\"number\"&&t>0&&t>wr(e)-1)throw new pT({offset:t,position:\"start\",size:wr(e)})}function cDe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&wr(e)!==r-t)throw new pT({offset:r,position:\"end\",size:wr(e)})}function wQ(e,t,r,{strict:n}={}){sDe(e,t);let o=e.slice(t,r);return n&&cDe(o,t,r),o}function d0t(e,t,r,{strict:n}={}){sDe(e,t);let o=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(r??e.length)*2)}`;return n&&cDe(o,t,r),o}var _g=x(()=>{c();oO();Ll();wu()});var uDe,fO,EQ=x(()=>{c();uDe=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,fO=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/});function as(e,t){if(e.length!==t.length)throw new WM({expectedLength:e.length,givenLength:t.length});let r=p0t({params:e,values:t}),n=SQ(r);return n.length===0?\"0x\":n}function p0t({params:e,values:t}){let r=[];for(let n=0;n<e.length;n++)r.push(AQ({param:e[n],value:t[n]}));return r}function AQ({param:e,value:t}){let r=dO(e.type);if(r){let[n,o]=r;return h0t(t,{length:n,param:{...e,type:o}})}if(e.type===\"tuple\")return v0t(t,{param:e});if(e.type===\"address\")return m0t(t);if(e.type===\"bool\")return b0t(t);if(e.type.startsWith(\"uint\")||e.type.startsWith(\"int\")){let n=e.type.startsWith(\"int\"),[,,o=\"256\"]=fO.exec(e.type)??[];return g0t(t,{signed:n,size:Number(o)})}if(e.type.startsWith(\"bytes\"))return y0t(t,{param:e});if(e.type===\"string\")return x0t(t);throw new tO(e.type,{docsPath:\"/docs/contract/encodeAbiParameters\"})}function SQ(e){let t=0;for(let s=0;s<e.length;s++){let{dynamic:u,encoded:f}=e[s];u?t+=32:t+=wr(f)}let r=[],n=[],o=0;for(let s=0;s<e.length;s++){let{dynamic:u,encoded:f}=e[s];u?(r.push(Fe(t+o,{size:32})),n.push(f),o+=wr(f)):r.push(f)}return Qa([...r,...n])}function m0t(e){if(!Qo(e))throw new yi({address:e});return{dynamic:!1,encoded:Nm(e.toLowerCase())}}function h0t(e,{length:t,param:r}){let n=t===null;if(!Array.isArray(e))throw new N6(e);if(!n&&e.length!==t)throw new VM({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let o=!1,s=[];for(let u=0;u<e.length;u++){let f=AQ({param:r,value:e[u]});f.dynamic&&(o=!0),s.push(f)}if(n||o){let u=SQ(s);if(n){let f=Fe(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?Qa([f,u]):f}}if(o)return{dynamic:!0,encoded:u}}return{dynamic:!1,encoded:Qa(s.map(({encoded:u})=>u))}}function y0t(e,{param:t}){let[,r]=t.type.split(\"bytes\"),n=wr(e);if(!r){let o=e;return n%32!==0&&(o=Nm(o,{dir:\"right\",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Qa([Nm(Fe(n,{size:32})),o])}}if(n!==Number.parseInt(r,10))throw new KM({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:Nm(e,{dir:\"right\"})}}function b0t(e){if(typeof e!=\"boolean\")throw new be(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:Nm(uO(e))}}function g0t(e,{signed:t,size:r=256}){if(typeof r==\"number\"){let n=2n**(BigInt(r)-(t?1n:0n))-1n,o=t?-n-1n:0n;if(e>n||e<o)throw new wy({max:n.toString(),min:o.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:Fe(e,{size:32,signed:t})}}function x0t(e){let t=Cg(e),r=Math.ceil(wr(t)/32),n=[];for(let o=0;o<r;o++)n.push(Nm(Cu(t,o*32,(o+1)*32),{dir:\"right\"}));return{dynamic:!0,encoded:Qa([Nm(Fe(wr(t),{size:32})),...n])}}function v0t(e,{param:t}){let r=!1,n=[];for(let o=0;o<t.components.length;o++){let s=t.components[o],u=Array.isArray(e)?o:s.name,f=AQ({param:s,value:e[u]});n.push(f),f.dynamic&&(r=!0)}return{dynamic:r,encoded:r?SQ(n):Qa(n.map(({encoded:o})=>o))}}function dO(e){let t=e.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}var Hm=x(()=>{c();Po();Tg();xr();yT();Dm();Su();aO();wu();_g();Ht();EQ()});var Id,U6=x(()=>{c();_g();gQ();Id=e=>Cu(lO(e),0,4)});function Ws(e){let{abi:t,args:r=[],name:n}=e,o=Ro(n,{strict:!1}),s=t.filter(f=>o?f.type===\"function\"?Id(f)===n:f.type===\"event\"?Ey(f)===n:!1:\"name\"in f&&f.name===n);if(s.length===0)return;if(s.length===1)return s[0];let u;for(let f of s){if(!(\"inputs\"in f))continue;if(!r||r.length===0){if(!f.inputs||f.inputs.length===0)return f;continue}if(!f.inputs||f.inputs.length===0||f.inputs.length!==r.length)continue;if(r.every((m,h)=>{let y=\"inputs\"in f&&f.inputs[h];return y?CQ(m,y):!1})){if(u&&\"inputs\"in u&&u.inputs){let m=lDe(f.inputs,u.inputs,r);if(m)throw new XM({abiItem:f,type:m[0]},{abiItem:u,type:m[1]})}u=f}}return u||s[0]}function CQ(e,t){let r=typeof e,n=t.type;switch(n){case\"address\":return Qo(e,{strict:!1});case\"bool\":return r===\"boolean\";case\"function\":return r===\"string\";case\"string\":return r===\"string\";default:return n===\"tuple\"&&\"components\"in t?Object.values(t.components).every((o,s)=>r===\"object\"&&CQ(Object.values(e)[s],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?r===\"number\"||r===\"bigint\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?r===\"string\"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\\\[[0-9]{0,}\\\\])+$/.test(n)?Array.isArray(e)&&e.every(o=>CQ(o,{...t,type:n.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function lDe(e,t,r){for(let n in e){let o=e[n],s=t[n];if(o.type===\"tuple\"&&s.type===\"tuple\"&&\"components\"in o&&\"components\"in s)return lDe(o.components,s.components,r[n]);let u=[o.type,s.type];if(u.includes(\"address\")&&u.includes(\"bytes20\")?!0:u.includes(\"address\")&&u.includes(\"string\")?Qo(r[n],{strict:!1}):u.includes(\"address\")&&u.includes(\"bytes\")?Qo(r[n],{strict:!1}):!1)return u}}var Cy=x(()=>{c();Po();Ll();Dm();gT();U6()});function jn(e){return typeof e==\"string\"?{address:e,type:\"json-rpc\"}:e}var Oc=x(()=>{c()});function mDe(e){let{abi:t,args:r,functionName:n}=e,o=t[0];if(n){let s=Ws({abi:t,args:r,name:n});if(!s)throw new zl(n,{docsPath:pDe});o=s}if(o.type!==\"function\")throw new zl(void 0,{docsPath:pDe});return{abi:[o],functionName:Id(la(o))}}var pDe,hDe=x(()=>{c();Po();U6();Mm();Cy();pDe=\"/docs/contract/encodeFunctionData\"});function _n(e){let{args:t}=e,{abi:r,functionName:n}=e.abi.length===1&&e.functionName?.startsWith(\"0x\")?e:mDe(e),o=r[0],s=n,u=\"inputs\"in o&&o.inputs?as(o.inputs,t??[]):void 0;return $l([s,u??\"0x\"])}var Nc=x(()=>{c();Su();Hm();hDe()});var yDe,mO,bDe,hO=x(()=>{c();yDe={1:\"An `assert` condition failed.\",17:\"Arithmetic operation resulted in underflow or overflow.\",18:\"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).\",33:\"Attempted to convert to an invalid type.\",34:\"Attempted to access a storage byte array that is incorrectly encoded.\",49:\"Performed `.pop()` on an empty array\",50:\"Array index is out of bounds.\",65:\"Allocated too much memory or created an array which is too large.\",81:\"Attempted to call a zero-initialized variable of internal function type.\"},mO={inputs:[{name:\"message\",type:\"string\"}],name:\"Error\",type:\"error\"},bDe={inputs:[{name:\"reason\",type:\"uint256\"}],name:\"Panic\",type:\"error\"}});var vT,D6,yO,TQ=x(()=>{c();xr();vT=class extends be{constructor({offset:t}){super(`Offset \\\\`${t}\\\\` cannot be negative.`,{name:\"NegativeOffsetError\"})}},D6=class extends be{constructor({length:t,position:r}){super(`Position \\\\`${r}\\\\` is out of bounds (\\\\`0 < position < ${t}\\\\`).`,{name:\"PositionOutOfBoundsError\"})}},yO=class extends be{constructor({count:t,limit:r}){super(`Recursive read limit of \\\\`${r}\\\\` exceeded (recursive read count: \\\\`${t}\\\\`).`,{name:\"RecursiveReadLimitExceededError\"})}}});function H6(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(w0t);return r.bytes=e,r.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}var w0t,bO=x(()=>{c();TQ();w0t={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new yO({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new D6({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new vT({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new vT({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}}});function gDe(e,t={}){typeof t.size<\"u\"&&Ks(e,{size:t.size});let r=Or(e,t);return Va(r,t)}function xDe(e,t={}){let r=e;if(typeof t.size<\"u\"&&(Ks(r,{size:t.size}),r=Fl(r)),r.length>1||r[0]>1)throw new iO(r);return!!r[0]}function Rd(e,t={}){typeof t.size<\"u\"&&Ks(e,{size:t.size});let r=Or(e,t);return Sa(r,t)}function vDe(e,t={}){let r=e;return typeof t.size<\"u\"&&(Ks(r,{size:t.size}),r=Fl(r,{dir:\"right\"})),new TextDecoder().decode(r)}var wDe=x(()=>{c();yT();bT();os();Ht()});function Lm(e,t){let r=typeof t==\"string\"?Ka(t):t,n=H6(r);if(wr(r)===0&&e.length>0)throw new Eu;if(wr(t)&&wr(t)<32)throw new R6({data:typeof t==\"string\"?t:Or(t),params:e,size:wr(t)});let o=0,s=[];for(let u=0;u<e.length;++u){let f=e[u];n.setPosition(o);let[d,m]=L6(n,f,{staticPosition:0});o+=m,s.push(d)}return s}function L6(e,t,{staticPosition:r}){let n=dO(t.type);if(n){let[o,s]=n;return A0t(e,{...t,type:s},{length:o,staticPosition:r})}if(t.type===\"tuple\")return _0t(e,t,{staticPosition:r});if(t.type===\"address\")return E0t(e);if(t.type===\"bool\")return S0t(e);if(t.type.startsWith(\"bytes\"))return C0t(e,t,{staticPosition:r});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return T0t(e,t);if(t.type===\"string\")return k0t(e,{staticPosition:r});throw new rO(t.type,{docsPath:\"/docs/contract/decodeAbiParameters\"})}function E0t(e){let t=e.readBytes(32);return[Ay(Or(wQ(t,-20))),32]}function A0t(e,t,{length:r,staticPosition:n}){if(!r){let u=Rd(e.readBytes(_Q)),f=n+u,d=f+EDe;e.setPosition(f);let m=Rd(e.readBytes(EDe)),h=wT(t),y=0,v=[];for(let E=0;E<m;++E){e.setPosition(d+(h?E*32:y));let[C,B]=L6(e,t,{staticPosition:d});y+=B,v.push(C)}return e.setPosition(n+32),[v,32]}if(wT(t)){let u=Rd(e.readBytes(_Q)),f=n+u,d=[];for(let m=0;m<r;++m){e.setPosition(f+m*32);let[h]=L6(e,t,{staticPosition:f});d.push(h)}return e.setPosition(n+32),[d,32]}let o=0,s=[];for(let u=0;u<r;++u){let[f,d]=L6(e,t,{staticPosition:n+o});o+=d,s.push(f)}return[s,o]}function S0t(e){return[xDe(e.readBytes(32),{size:32}),32]}function C0t(e,t,{staticPosition:r}){let[n,o]=t.type.split(\"bytes\");if(!o){let u=Rd(e.readBytes(32));e.setPosition(r+u);let f=Rd(e.readBytes(32));if(f===0)return e.setPosition(r+32),[\"0x\",32];let d=e.readBytes(f);return e.setPosition(r+32),[Or(d),32]}return[Or(e.readBytes(Number.parseInt(o,10),32)),32]}function T0t(e,t){let r=t.type.startsWith(\"int\"),n=Number.parseInt(t.type.split(\"int\")[1]||\"256\",10),o=e.readBytes(32);return[n>48?gDe(o,{signed:r}):Rd(o,{signed:r}),32]}function _0t(e,t,{staticPosition:r}){let n=t.components.length===0||t.components.some(({name:u})=>!u),o=n?[]:{},s=0;if(wT(t)){let u=Rd(e.readBytes(_Q)),f=r+u;for(let d=0;d<t.components.length;++d){let m=t.components[d];e.setPosition(f+s);let[h,y]=L6(e,m,{staticPosition:f});s+=y,o[n?d:m?.name]=h}return e.setPosition(r+32),[o,32]}for(let u=0;u<t.components.length;++u){let f=t.components[u],[d,m]=L6(e,f,{staticPosition:r});o[n?u:f?.name]=d,s+=m}return[o,s]}function k0t(e,{staticPosition:t}){let r=Rd(e.readBytes(32)),n=t+r;e.setPosition(n);let o=Rd(e.readBytes(32));if(o===0)return e.setPosition(t+32),[\"\",32];let s=e.readBytes(o,32),u=vDe(Fl(s));return e.setPosition(t+32),[u,32]}function wT(e){let{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(wT);let r=dO(e.type);return!!(r&&wT({...e,type:r[1]}))}var EDe,_Q,ET=x(()=>{c();Po();Sy();bO();wu();_g();bT();wDe();Wa();Ht();Hm();EDe=32,_Q=32});function gO(e){let{abi:t,data:r,cause:n}=e,o=Cu(r,0,4);if(o===\"0x\")throw new Eu({cause:n});let u=[...t||[],mO,bDe].find(f=>f.type===\"error\"&&o===Id(la(f)));if(!u)throw new M6(o,{docsPath:\"/docs/contract/decodeErrorResult\",cause:n});return{abiItem:u,args:\"inputs\"in u&&u.inputs&&u.inputs.length>0?Lm(u.inputs,Cu(r,4)):void 0,errorName:u.name}}var kQ=x(()=>{c();hO();Po();_g();U6();ET();Mm()});var Nr,Qs=x(()=>{c();Nr=(e,t,r)=>JSON.stringify(e,(n,o)=>{let s=typeof o==\"bigint\"?o.toString():o;return typeof t==\"function\"?t(n,s):s},r)});function BQ({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if(\"name\"in e&&\"inputs\"in e&&e.inputs)return`${r?e.name:\"\"}(${e.inputs.map((o,s)=>`${n&&o.name?`${o.name}: `:\"\"}${typeof t[s]==\"object\"?Nr(t[s]):t[s]}`).join(\", \")})`}var ADe=x(()=>{c();Qs()});var SDe,CDe,IQ=x(()=>{c();SDe={gwei:9,wei:18},CDe={ether:-9,wei:9}});function xO(e,t){let r=e.toString(),n=r.startsWith(\"-\");n&&(r=r.slice(1)),r=r.padStart(t,\"0\");let[o,s]=[r.slice(0,r.length-t),r.slice(r.length-t)];return s=s.replace(/(0+)$/,\"\"),`${n?\"-\":\"\"}${o||\"0\"}${s?`.${s}`:\"\"}`}var PQ=x(()=>{c()});function z6(e,t=\"wei\"){return xO(e,SDe[t])}var vO=x(()=>{c();IQ();PQ()});function fa(e,t=\"wei\"){return xO(e,CDe[t])}var F6=x(()=>{c();IQ();PQ()});function TDe(e){return e.reduce((t,{slot:r,value:n})=>`${t}        ${r}: ${n}\\n`,\"\")}function _De(e){return e.reduce((t,{address:r,...n})=>{let o=`${t}    ${r}:\\n`;return n.nonce&&(o+=`      nonce: ${n.nonce}\\n`),n.balance&&(o+=`      balance: ${n.balance}\\n`),n.code&&(o+=`      code: ${n.code}\\n`),n.state&&(o+=`      state:\\n`,o+=TDe(n.state)),n.stateDiff&&(o+=`      stateDiff:\\n`,o+=TDe(n.stateDiff)),o},`  State Override:\\n`).slice(0,-1)}var wO,EO,RQ=x(()=>{c();xr();wO=class extends be{constructor({address:t}){super(`State for account \"${t}\" is set multiple times.`,{name:\"AccountStateConflictError\"})}},EO=class extends be{constructor(){super(\"state and stateDiff are set on the same account.\",{name:\"StateAssignmentConflictError\"})}}});function kg(e){let t=Object.entries(e).map(([n,o])=>o===void 0||o===!1?null:[n,o]).filter(Boolean),r=t.reduce((n,[o])=>Math.max(n,o.length),0);return t.map(([n,o])=>`  ${`${n}:`.padEnd(r+1)}  ${o}`).join(`\\n`)}var AO,SO,j6,q6,CO,TO,zm=x(()=>{c();vO();F6();xr();AO=class extends be{constructor({transaction:t}){super(\"Cannot infer a transaction type from provided transaction.\",{metaMessages:[\"Provided Transaction:\",\"{\",kg(t),\"}\",\"\",\"To infer the type, either provide:\",\"- a `type` to the Transaction, or\",\"- an EIP-1559 Transaction with `maxFeePerGas`, or\",\"- an EIP-2930 Transaction with `gasPrice` & `accessList`, or\",\"- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or\",\"- an EIP-7702 Transaction with `authorizationList`, or\",\"- a Legacy Transaction with `gasPrice`\"],name:\"InvalidSerializableTransactionError\"})}},SO=class extends be{constructor(t,{account:r,docsPath:n,chain:o,data:s,gas:u,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:m,nonce:h,to:y,value:v}){let E=kg({chain:o&&`${o?.name} (id: ${o?.id})`,from:r?.address,to:y,value:typeof v<\"u\"&&`${z6(v)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:s,gas:u,gasPrice:typeof f<\"u\"&&`${fa(f)} gwei`,maxFeePerGas:typeof d<\"u\"&&`${fa(d)} gwei`,maxPriorityFeePerGas:typeof m<\"u\"&&`${fa(m)} gwei`,nonce:h});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Request Arguments:\",E].filter(Boolean),name:\"TransactionExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},j6=class extends be{constructor({blockHash:t,blockNumber:r,blockTag:n,hash:o,index:s}){let u=\"Transaction\";n&&s!==void 0&&(u=`Transaction at block time \"${n}\" at index \"${s}\"`),t&&s!==void 0&&(u=`Transaction at block hash \"${t}\" at index \"${s}\"`),r&&s!==void 0&&(u=`Transaction at block number \"${r}\" at index \"${s}\"`),o&&(u=`Transaction with hash \"${o}\"`),super(`${u} could not be found.`,{name:\"TransactionNotFoundError\"})}},q6=class extends be{constructor({hash:t}){super(`Transaction receipt with hash \"${t}\" could not be found. The Transaction may not be processed on a block yet.`,{name:\"TransactionReceiptNotFoundError\"})}},CO=class extends be{constructor({receipt:t}){super(`Transaction with hash \"${t.transactionHash}\" reverted.`,{metaMessages:[\\'The receipt marked the transaction as \"reverted\". This could mean that the function on the contract you are trying to call threw an error.\\',\" \",\"You can attempt to extract the revert reason by:\",\"- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract\",\"- using the `call` Action with raw `data`\"],name:\"TransactionReceiptRevertedError\"}),Object.defineProperty(this,\"receipt\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}},TO=class extends be{constructor({hash:t}){super(`Timed out while waiting for transaction with hash \"${t}\" to be confirmed.`,{name:\"WaitForTransactionReceiptTimeoutError\"})}}});var kDe,Bg,_O=x(()=>{c();kDe=e=>e,Bg=e=>{try{let t=new URL(e);return!t.username&&!t.password?e:(t.username=\"\",t.password=\"\",t.toString())}catch{return e}}});var $6,G6,Ig,kO,BO,Md,_y=x(()=>{c();Oc();hO();kQ();Mm();ADe();Cy();vO();F6();Po();xr();RQ();zm();_O();$6=class extends be{constructor(t,{account:r,docsPath:n,chain:o,data:s,gas:u,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:m,nonce:h,to:y,value:v,stateOverride:E}){let C=r?jn(r):void 0,B=kg({from:C?.address,to:y,value:typeof v<\"u\"&&`${z6(v)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:s,gas:u,gasPrice:typeof f<\"u\"&&`${fa(f)} gwei`,maxFeePerGas:typeof d<\"u\"&&`${fa(d)} gwei`,maxPriorityFeePerGas:typeof m<\"u\"&&`${fa(m)} gwei`,nonce:h});E&&(B+=`\\n${_De(E)}`),super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Raw Call Arguments:\",B].filter(Boolean),name:\"CallExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},G6=class extends be{constructor(t,{abi:r,args:n,contractAddress:o,docsPath:s,functionName:u,sender:f}){let d=Ws({abi:r,args:n,name:u}),m=d?BQ({abiItem:d,args:n,includeFunctionName:!1,includeName:!1}):void 0,h=d?la(d,{includeName:!0}):void 0,y=kg({address:o&&kDe(o),function:h,args:m&&m!==\"()\"&&`${[...Array(u?.length??0).keys()].map(()=>\" \").join(\"\")}${m}`,sender:f});super(t.shortMessage||`An unknown error occurred while executing the contract function \"${u}\".`,{cause:t,docsPath:s,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],y&&\"Contract Call:\",y].filter(Boolean),name:\"ContractFunctionExecutionError\"}),Object.defineProperty(this,\"abi\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"args\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"contractAddress\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"formattedArgs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"functionName\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"sender\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=r,this.args=n,this.cause=t,this.contractAddress=o,this.functionName=u,this.sender=f}},Ig=class extends be{constructor({abi:t,data:r,functionName:n,message:o,cause:s}){let u,f,d,m;if(r&&r!==\"0x\")try{f=gO({abi:t,data:r,cause:s});let{abiItem:y,errorName:v,args:E}=f;if(v===\"Error\")m=E[0];else if(v===\"Panic\"){let[C]=E;m=yDe[C]}else{let C=y?la(y,{includeName:!0}):void 0,B=y&&E?BQ({abiItem:y,args:E,includeFunctionName:!1,includeName:!1}):void 0;d=[C?`Error: ${C}`:\"\",B&&B!==\"()\"?`       ${[...Array(v?.length??0).keys()].map(()=>\" \").join(\"\")}${B}`:\"\"]}}catch(y){u=y}else o&&(m=o);let h;u instanceof M6&&(h=u.signature,d=[`Unable to decode signature \"${h}\" as it was not found on the provided ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${h}.`]),super(m&&m!==\"execution reverted\"||h?[`The contract function \"${n}\" reverted with the following ${h?\"signature\":\"reason\"}:`,m||h].join(`\\n`):`The contract function \"${n}\" reverted.`,{cause:u??s,metaMessages:d,name:\"ContractFunctionRevertedError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"raw\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"reason\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=f,this.raw=r,this.reason=m,this.signature=h}},kO=class extends be{constructor({functionName:t,cause:r}){super(`The contract function \"${t}\" returned no data (\"0x\").`,{metaMessages:[\"This could be due to any of the following:\",`  - The contract does not have the function \"${t}\",`,\"  - The parameters passed to the contract function may be invalid, or\",\"  - The address is not a contract.\"],name:\"ContractFunctionZeroDataError\",cause:r})}},BO=class extends be{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory \"${t}\".`:\"\"}`,{metaMessages:[\"Please ensure:\",\"- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).\",\"- The `factoryData` is a valid encoded function call for contract deployment function on the factory.\"],name:\"CounterfactualDeploymentFailedError\"})}},Md=class extends be{constructor({data:t,message:r}){super(r||\"\",{name:\"RawContractError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}});var Tu,ky,AT,Pg=x(()=>{c();Qs();xr();_O();Tu=class extends be{constructor({body:t,cause:r,details:n,headers:o,status:s,url:u}){super(\"HTTP request failed.\",{cause:r,details:n,metaMessages:[s&&`Status: ${s}`,`URL: ${Bg(u)}`,t&&`Request body: ${Nr(t)}`].filter(Boolean),name:\"HttpRequestError\"}),Object.defineProperty(this,\"body\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"headers\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"status\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=o,this.status=s,this.url=u}},ky=class extends be{constructor({body:t,error:r,url:n}){super(\"RPC Request failed.\",{cause:r,details:r.message,metaMessages:[`URL: ${Bg(n)}`,`Request body: ${Nr(t)}`],name:\"RpcRequestError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data,this.url=n}},AT=class extends be{constructor({body:t,url:r}){super(\"The request took too long to respond.\",{details:\"The request timed out.\",metaMessages:[`URL: ${Bg(r)}`,`Request body: ${Nr(t)}`],name:\"TimeoutError\"}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=r}}});var B0t,bi,gi,V6,K6,W6,Q6,Fm,_u,Z6,J6,Y6,By,Rg,X6,Mg,e5,t5,r5,n5,o5,a5,i5,s5,c5,u5,l5,f5,d5,IO,ST=x(()=>{c();xr();Pg();B0t=-1,bi=class extends be{constructor(t,{code:r,docsPath:n,metaMessages:o,name:s,shortMessage:u}){super(u,{cause:t,docsPath:n,metaMessages:o||t?.metaMessages,name:s||\"RpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s||t.name,this.code=t instanceof ky?t.code:r??B0t}},gi=class extends bi{constructor(t,r){super(t,r),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}},V6=class e extends bi{constructor(t){super(t,{code:e.code,name:\"ParseRpcError\",shortMessage:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"})}};Object.defineProperty(V6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});K6=class e extends bi{constructor(t){super(t,{code:e.code,name:\"InvalidRequestRpcError\",shortMessage:\"JSON is not a valid request object.\"})}};Object.defineProperty(K6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});W6=class e extends bi{constructor(t,{method:r}={}){super(t,{code:e.code,name:\"MethodNotFoundRpcError\",shortMessage:`The method${r?` \"${r}\"`:\"\"} does not exist / is not available.`})}};Object.defineProperty(W6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});Q6=class e extends bi{constructor(t){super(t,{code:e.code,name:\"InvalidParamsRpcError\",shortMessage:[\"Invalid parameters were provided to the RPC method.\",\"Double check you have provided the correct parameters.\"].join(`\\n`)})}};Object.defineProperty(Q6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});Fm=class e extends bi{constructor(t){super(t,{code:e.code,name:\"InternalRpcError\",shortMessage:\"An internal error was received.\"})}};Object.defineProperty(Fm,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});_u=class e extends bi{constructor(t){super(t,{code:e.code,name:\"InvalidInputRpcError\",shortMessage:[\"Missing or invalid parameters.\",\"Double check you have provided the correct parameters.\"].join(`\\n`)})}};Object.defineProperty(_u,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});Z6=class e extends bi{constructor(t){super(t,{code:e.code,name:\"ResourceNotFoundRpcError\",shortMessage:\"Requested resource not found.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ResourceNotFoundRpcError\"})}};Object.defineProperty(Z6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});J6=class e extends bi{constructor(t){super(t,{code:e.code,name:\"ResourceUnavailableRpcError\",shortMessage:\"Requested resource not available.\"})}};Object.defineProperty(J6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});Y6=class e extends bi{constructor(t){super(t,{code:e.code,name:\"TransactionRejectedRpcError\",shortMessage:\"Transaction creation failed.\"})}};Object.defineProperty(Y6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});By=class e extends bi{constructor(t,{method:r}={}){super(t,{code:e.code,name:\"MethodNotSupportedRpcError\",shortMessage:`Method${r?` \"${r}\"`:\"\"} is not supported.`})}};Object.defineProperty(By,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});Rg=class e extends bi{constructor(t){super(t,{code:e.code,name:\"LimitExceededRpcError\",shortMessage:\"Request exceeds defined limit.\"})}};Object.defineProperty(Rg,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});X6=class e extends bi{constructor(t){super(t,{code:e.code,name:\"JsonRpcVersionUnsupportedError\",shortMessage:\"Version of JSON-RPC protocol is not supported.\"})}};Object.defineProperty(X6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});Mg=class e extends gi{constructor(t){super(t,{code:e.code,name:\"UserRejectedRequestError\",shortMessage:\"User rejected the request.\"})}};Object.defineProperty(Mg,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});e5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"UnauthorizedProviderError\",shortMessage:\"The requested method and/or account has not been authorized by the user.\"})}};Object.defineProperty(e5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});t5=class e extends gi{constructor(t,{method:r}={}){super(t,{code:e.code,name:\"UnsupportedProviderMethodError\",shortMessage:`The Provider does not support the requested method${r?` \" ${r}\"`:\"\"}.`})}};Object.defineProperty(t5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});r5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"ProviderDisconnectedError\",shortMessage:\"The Provider is disconnected from all chains.\"})}};Object.defineProperty(r5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});n5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"ChainDisconnectedError\",shortMessage:\"The Provider is not connected to the requested chain.\"})}};Object.defineProperty(n5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901});o5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"SwitchChainError\",shortMessage:\"An error occurred when attempting to switch chain.\"})}};Object.defineProperty(o5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4902});a5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"UnsupportedNonOptionalCapabilityError\",shortMessage:\"This Wallet does not support a capability that was not marked as optional.\"})}};Object.defineProperty(a5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5700});i5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"UnsupportedChainIdError\",shortMessage:\"This Wallet does not support the requested chain ID.\"})}};Object.defineProperty(i5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5710});s5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"DuplicateIdError\",shortMessage:\"There is already a bundle submitted with this ID.\"})}};Object.defineProperty(s5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5720});c5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"UnknownBundleIdError\",shortMessage:\"This bundle id is unknown / has not been submitted\"})}};Object.defineProperty(c5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5730});u5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"BundleTooLargeError\",shortMessage:\"The call bundle is too large for the Wallet to process.\"})}};Object.defineProperty(u5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5740});l5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"AtomicReadyWalletRejectedUpgradeError\",shortMessage:\"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade.\"})}};Object.defineProperty(l5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5750});f5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"AtomicityNotSupportedError\",shortMessage:\"The wallet does not support atomic execution but the request requires it.\"})}};Object.defineProperty(f5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5760});d5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"WalletConnectSessionSettlementError\",shortMessage:\"WalletConnect session settlement failed.\"})}};Object.defineProperty(d5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:7e3});IO=class extends bi{constructor(t){super(t,{name:\"UnknownRpcError\",shortMessage:\"An unknown RPC error occurred.\"})}}});var jm,Iy,p5,m5,h5,y5,b5,g5,x5,v5,Py,ku,Og=x(()=>{c();F6();xr();jm=class extends be{constructor({cause:t,message:r}={}){let n=r?.replace(\"execution reverted: \",\"\")?.replace(\"execution reverted\",\"\");super(`Execution reverted ${n?`with reason: ${n}`:\"for an unknown reason\"}.`,{cause:t,name:\"ExecutionRevertedError\"})}};Object.defineProperty(jm,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(jm,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});Iy=class extends be{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`${r?` = ${fa(r)} gwei`:\"\"}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:\"FeeCapTooHighError\"})}};Object.defineProperty(Iy,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\\\\^256-1|fee cap higher than 2\\\\^256-1/});p5=class extends be{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`${r?` = ${fa(r)}`:\"\"} gwei) cannot be lower than the block base fee.`,{cause:t,name:\"FeeCapTooLowError\"})}};Object.defineProperty(p5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});m5=class extends be{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:\"\"}is higher than the next one expected.`,{cause:t,name:\"NonceTooHighError\"})}};Object.defineProperty(m5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});h5=class extends be{constructor({cause:t,nonce:r}={}){super([`Nonce provided for the transaction ${r?`(${r}) `:\"\"}is lower than the current nonce of the account.`,\"Try increasing the nonce or find the latest nonce with `getTransactionCount`.\"].join(`\\n`),{cause:t,name:\"NonceTooLowError\"})}};Object.defineProperty(h5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});y5=class extends be{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:\"\"}exceeds the maximum allowed nonce.`,{cause:t,name:\"NonceMaxValueError\"})}};Object.defineProperty(y5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});b5=class extends be{constructor({cause:t}={}){super([\"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.\"].join(`\\n`),{cause:t,metaMessages:[\"This error could arise when the account does not have enough funds to:\",\" - pay for the total gas fee,\",\" - pay for the value to send.\",\" \",\"The cost of the transaction is calculated as `gas * gas fee + value`, where:\",\" - `gas` is the amount of gas needed for transaction to execute,\",\" - `gas fee` is the gas fee,\",\" - `value` is the amount of ether to send to the recipient.\"],name:\"InsufficientFundsError\"})}};Object.defineProperty(b5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});g5=class extends be{constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:\"\"}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:\"IntrinsicGasTooHighError\"})}};Object.defineProperty(g5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});x5=class extends be{constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:\"\"}provided for the transaction is too low.`,{cause:t,name:\"IntrinsicGasTooLowError\"})}};Object.defineProperty(x5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});v5=class extends be{constructor({cause:t}){super(\"The transaction type is not supported for this chain.\",{cause:t,name:\"TransactionTypeNotSupportedError\"})}};Object.defineProperty(v5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});Py=class extends be{constructor({cause:t,maxPriorityFeePerGas:r,maxFeePerGas:n}={}){super([`The provided tip (\\\\`maxPriorityFeePerGas\\\\`${r?` = ${fa(r)} gwei`:\"\"}) cannot be higher than the fee cap (\\\\`maxFeePerGas\\\\`${n?` = ${fa(n)} gwei`:\"\"}).`].join(`\\n`),{cause:t,name:\"TipAboveFeeCapError\"})}};Object.defineProperty(Py,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});ku=class extends be{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:\"UnknownNodeError\"})}}});function Ry(e,t){let r=(e.details||\"\").toLowerCase(),n=e instanceof be?e.walk(o=>o?.code===jm.code):e;return n instanceof be?new jm({cause:e,message:n.details}):jm.nodeMessage.test(r)?new jm({cause:e,message:e.details}):Iy.nodeMessage.test(r)?new Iy({cause:e,maxFeePerGas:t?.maxFeePerGas}):p5.nodeMessage.test(r)?new p5({cause:e,maxFeePerGas:t?.maxFeePerGas}):m5.nodeMessage.test(r)?new m5({cause:e,nonce:t?.nonce}):h5.nodeMessage.test(r)?new h5({cause:e,nonce:t?.nonce}):y5.nodeMessage.test(r)?new y5({cause:e,nonce:t?.nonce}):b5.nodeMessage.test(r)?new b5({cause:e}):g5.nodeMessage.test(r)?new g5({cause:e,gas:t?.gas}):x5.nodeMessage.test(r)?new x5({cause:e,gas:t?.gas}):v5.nodeMessage.test(r)?new v5({cause:e}):Py.nodeMessage.test(r)?new Py({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new ku({cause:e})}var TT=x(()=>{c();xr();Og()});function My(e,{format:t}){if(!t)return{};let r={};function n(s){let u=Object.keys(s);for(let f of u)f in e&&(r[f]=e[f]),s[f]&&typeof s[f]==\"object\"&&!Array.isArray(s[f])&&n(s[f])}let o=t(e||{});return n(o),r}var _T=x(()=>{c()});function Od(e,t){let r={};return typeof e.authorizationList<\"u\"&&(r.authorizationList=O0t(e.authorizationList)),typeof e.accessList<\"u\"&&(r.accessList=e.accessList),typeof e.blobVersionedHashes<\"u\"&&(r.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<\"u\"&&(typeof e.blobs[0]!=\"string\"?r.blobs=e.blobs.map(n=>Or(n)):r.blobs=e.blobs),typeof e.data<\"u\"&&(r.data=e.data),e.account&&(r.from=e.account.address),typeof e.from<\"u\"&&(r.from=e.from),typeof e.gas<\"u\"&&(r.gas=Fe(e.gas)),typeof e.gasPrice<\"u\"&&(r.gasPrice=Fe(e.gasPrice)),typeof e.maxFeePerBlobGas<\"u\"&&(r.maxFeePerBlobGas=Fe(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<\"u\"&&(r.maxFeePerGas=Fe(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<\"u\"&&(r.maxPriorityFeePerGas=Fe(e.maxPriorityFeePerGas)),typeof e.nonce<\"u\"&&(r.nonce=Fe(e.nonce)),typeof e.to<\"u\"&&(r.to=e.to),typeof e.type<\"u\"&&(r.type=M0t[e.type]),typeof e.value<\"u\"&&(r.value=Fe(e.value)),r}function O0t(e){return e.map(t=>({address:t.address,r:t.r?Fe(BigInt(t.r)):t.r,s:t.s?Fe(BigInt(t.s)):t.s,chainId:Fe(t.chainId),nonce:Fe(t.nonce),...typeof t.yParity<\"u\"?{yParity:Fe(t.yParity)}:{},...typeof t.v<\"u\"&&typeof t.yParity>\"u\"?{v:Fe(t.v)}:{}}))}var M0t,w5=x(()=>{c();Ht();M0t={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"}});function DDe(e){if(!(!e||e.length===0))return e.reduce((t,{slot:r,value:n})=>{if(r.length!==66)throw new hT({size:r.length,targetSize:66,type:\"hex\"});if(n.length!==66)throw new hT({size:n.length,targetSize:66,type:\"hex\"});return t[r]=n,t},{})}function N0t(e){let{balance:t,nonce:r,state:n,stateDiff:o,code:s}=e,u={};if(s!==void 0&&(u.code=s),t!==void 0&&(u.balance=Fe(t)),r!==void 0&&(u.nonce=Fe(r)),n!==void 0&&(u.state=DDe(n)),o!==void 0){if(u.state)throw new EO;u.stateDiff=DDe(o)}return u}function E5(e){if(!e)return;let t={};for(let{address:r,...n}of e){if(!Qo(r,{strict:!1}))throw new yi({address:r});if(t[r])throw new wO({address:r});t[r]=N0t(n)}return t}var MO=x(()=>{c();Tg();oO();RQ();Dm();Ht()});var U0t,D0t,H0t,L0t,z0t,F0t,j0t,q0t,$0t,G0t,V0t,K0t,W0t,Q0t,Z0t,J0t,Y0t,X0t,eyt,tyt,ryt,nyt,oyt,ayt,iyt,syt,cyt,uyt,lyt,fyt,dyt,pyt,myt,hyt,yyt,byt,gyt,xyt,vyt,wyt,Eyt,Ayt,Syt,Cyt,Tyt,_yt,kyt,Byt,Iyt,Pyt,Ryt,Myt,Oyt,Nyt,Uyt,Dyt,Hyt,Lyt,zyt,Fyt,jyt,qyt,$yt,Gyt,Vyt,Kyt,Wyt,Qyt,Zyt,Jyt,Yyt,Xyt,ebt,tbt,rbt,nbt,obt,abt,ibt,sbt,cbt,ubt,lbt,fbt,dbt,pbt,mbt,hbt,ybt,bbt,gbt,xbt,vbt,wbt,Ebt,A5,MQ=x(()=>{c();U0t=2n**(8n-1n)-1n,D0t=2n**(16n-1n)-1n,H0t=2n**(24n-1n)-1n,L0t=2n**(32n-1n)-1n,z0t=2n**(40n-1n)-1n,F0t=2n**(48n-1n)-1n,j0t=2n**(56n-1n)-1n,q0t=2n**(64n-1n)-1n,$0t=2n**(72n-1n)-1n,G0t=2n**(80n-1n)-1n,V0t=2n**(88n-1n)-1n,K0t=2n**(96n-1n)-1n,W0t=2n**(104n-1n)-1n,Q0t=2n**(112n-1n)-1n,Z0t=2n**(120n-1n)-1n,J0t=2n**(128n-1n)-1n,Y0t=2n**(136n-1n)-1n,X0t=2n**(144n-1n)-1n,eyt=2n**(152n-1n)-1n,tyt=2n**(160n-1n)-1n,ryt=2n**(168n-1n)-1n,nyt=2n**(176n-1n)-1n,oyt=2n**(184n-1n)-1n,ayt=2n**(192n-1n)-1n,iyt=2n**(200n-1n)-1n,syt=2n**(208n-1n)-1n,cyt=2n**(216n-1n)-1n,uyt=2n**(224n-1n)-1n,lyt=2n**(232n-1n)-1n,fyt=2n**(240n-1n)-1n,dyt=2n**(248n-1n)-1n,pyt=2n**(256n-1n)-1n,myt=-(2n**(8n-1n)),hyt=-(2n**(16n-1n)),yyt=-(2n**(24n-1n)),byt=-(2n**(32n-1n)),gyt=-(2n**(40n-1n)),xyt=-(2n**(48n-1n)),vyt=-(2n**(56n-1n)),wyt=-(2n**(64n-1n)),Eyt=-(2n**(72n-1n)),Ayt=-(2n**(80n-1n)),Syt=-(2n**(88n-1n)),Cyt=-(2n**(96n-1n)),Tyt=-(2n**(104n-1n)),_yt=-(2n**(112n-1n)),kyt=-(2n**(120n-1n)),Byt=-(2n**(128n-1n)),Iyt=-(2n**(136n-1n)),Pyt=-(2n**(144n-1n)),Ryt=-(2n**(152n-1n)),Myt=-(2n**(160n-1n)),Oyt=-(2n**(168n-1n)),Nyt=-(2n**(176n-1n)),Uyt=-(2n**(184n-1n)),Dyt=-(2n**(192n-1n)),Hyt=-(2n**(200n-1n)),Lyt=-(2n**(208n-1n)),zyt=-(2n**(216n-1n)),Fyt=-(2n**(224n-1n)),jyt=-(2n**(232n-1n)),qyt=-(2n**(240n-1n)),$yt=-(2n**(248n-1n)),Gyt=-(2n**(256n-1n)),Vyt=2n**8n-1n,Kyt=2n**16n-1n,Wyt=2n**24n-1n,Qyt=2n**32n-1n,Zyt=2n**40n-1n,Jyt=2n**48n-1n,Yyt=2n**56n-1n,Xyt=2n**64n-1n,ebt=2n**72n-1n,tbt=2n**80n-1n,rbt=2n**88n-1n,nbt=2n**96n-1n,obt=2n**104n-1n,abt=2n**112n-1n,ibt=2n**120n-1n,sbt=2n**128n-1n,cbt=2n**136n-1n,ubt=2n**144n-1n,lbt=2n**152n-1n,fbt=2n**160n-1n,dbt=2n**168n-1n,pbt=2n**176n-1n,mbt=2n**184n-1n,hbt=2n**192n-1n,ybt=2n**200n-1n,bbt=2n**208n-1n,gbt=2n**216n-1n,xbt=2n**224n-1n,vbt=2n**232n-1n,wbt=2n**240n-1n,Ebt=2n**248n-1n,A5=2n**256n-1n});function Bu(e){let{account:t,maxFeePerGas:r,maxPriorityFeePerGas:n,to:o}=e,s=t?jn(t):void 0;if(s&&!Qo(s.address))throw new yi({address:s.address});if(o&&!Qo(o))throw new yi({address:o});if(r&&r>A5)throw new Iy({maxFeePerGas:r});if(n&&r&&n>r)throw new Py({maxFeePerGas:r,maxPriorityFeePerGas:n})}var Ng=x(()=>{c();Oc();MQ();Tg();Og();Dm()});function Vl(e,t){if(!Qo(e,{strict:!1}))throw new yi({address:e});if(!Qo(t,{strict:!1}))throw new yi({address:t});return e.toLowerCase()===t.toLowerCase()}var I5=x(()=>{c();Tg();Dm()});function xi(e){let{abi:t,args:r,functionName:n,data:o}=e,s=t[0];if(n){let f=Ws({abi:t,args:r,name:n});if(!f)throw new zl(n,{docsPath:DQ});s=f}if(s.type!==\"function\")throw new zl(void 0,{docsPath:DQ});if(!s.outputs)throw new O6(s.name,{docsPath:DQ});let u=Lm(s.outputs,o);if(u&&u.length>1)return u;if(u&&u.length===1)return u[0]}var DQ,qm=x(()=>{c();Po();ET();Cy();DQ=\"/docs/contract/decodeFunctionResult\"});var ZDe,JDe=x(()=>{c();ZDe=\"0.1.1\"});function YDe(){return ZDe}var XDe=x(()=>{c();JDe()});function eHe(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?eHe(e.cause,t):t?null:e}var rt,Zs=x(()=>{c();XDe();rt=class e extends Error{static setStaticOptions(t){e.prototype.docsOrigin=t.docsOrigin,e.prototype.showVersion=t.showVersion,e.prototype.version=t.version}constructor(t,r={}){let n=(()=>{if(r.cause instanceof e){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return r.cause&&\"details\"in r.cause&&typeof r.cause.details==\"string\"?r.cause.details:r.cause?.message?r.cause.message:r.details})(),o=r.cause instanceof e&&r.cause.docsPath||r.docsPath,s=r.docsOrigin??e.prototype.docsOrigin,u=`${s}${o??\"\"}`,f=!!(r.version??e.prototype.showVersion),d=r.version??e.prototype.version,m=[t||\"An error occurred.\",...r.metaMessages?[\"\",...r.metaMessages]:[],...n||o||f?[\"\",n?`Details: ${n}`:void 0,o?`See: ${u}`:void 0,f?`Version: ${d}`:void 0]:[]].filter(h=>typeof h==\"string\").join(`\\n`);super(m,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsOrigin\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"showVersion\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),this.cause=r.cause,this.details=n,this.docs=u,this.docsOrigin=s,this.docsPath=o,this.shortMessage=t,this.showVersion=f,this.version=d}walk(t){return eHe(this,t)}};Object.defineProperty(rt,\"defaultStaticOptions\",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:\"https://oxlib.sh\",showVersion:!1,version:`ox@${YDe()}`}});rt.setStaticOptions(rt.defaultStaticOptions)});function M5(e,t){if(Iu(e)>t)throw new GO({givenSize:Iu(e),maxSize:t})}function tHe(e,t){if(typeof t==\"number\"&&t>0&&t>Iu(e)-1)throw new kT({offset:t,position:\"start\",size:Iu(e)})}function rHe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&Iu(e)!==r-t)throw new kT({offset:r,position:\"end\",size:Iu(e)})}function HQ(e){if(e>=$m.zero&&e<=$m.nine)return e-$m.zero;if(e>=$m.A&&e<=$m.F)return e-($m.A-10);if(e>=$m.a&&e<=$m.f)return e-($m.a-10)}function nHe(e,t={}){let{dir:r,size:n=32}=t;if(n===0)return e;if(e.length>n)throw new VO({size:e.length,targetSize:n,type:\"Bytes\"});let o=new Uint8Array(n);for(let s=0;s<n;s++){let u=r===\"right\";o[u?s:n-s-1]=e[u?s:e.length-s-1]}return o}function LQ(e,t={}){let{dir:r=\"left\"}=t,n=e,o=0;for(let s=0;s<n.length-1&&n[r===\"left\"?s:n.length-s-1].toString()===\"0\";s++)o++;return n=r===\"left\"?n.slice(o):n.slice(0,n.length-o),n}var $m,oHe=x(()=>{c();Ny();$m={zero:48,nine:57,A:65,F:70,a:97,f:102}});function O5(e,t){if(Yn(e)>t)throw new KO({givenSize:Yn(e),maxSize:t})}function aHe(e,t){if(typeof t==\"number\"&&t>0&&t>Yn(e)-1)throw new BT({offset:t,position:\"start\",size:Yn(e)})}function iHe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&Yn(e)!==r-t)throw new BT({offset:r,position:\"end\",size:Yn(e)})}function zQ(e,t={}){let{dir:r,size:n=32}=t;if(n===0)return e;let o=e.replace(\"0x\",\"\");if(o.length>n*2)throw new WO({size:Math.ceil(o.length/2),targetSize:n,type:\"Hex\"});return`0x${o[r===\"right\"?\"padEnd\":\"padStart\"](n*2,\"0\")}`}function sHe(e,t={}){let{dir:r=\"left\"}=t,n=e.replace(\"0x\",\"\"),o=0;for(let s=0;s<n.length-1&&n[r===\"left\"?s:n.length-s-1].toString()===\"0\";s++)o++;return n=r===\"left\"?n.slice(o):n.slice(0,n.length-o),n===\"0\"?\"0x\":r===\"right\"&&n.length%2===1?`0x${n}0`:`0x${n}`}var FQ=x(()=>{c();_a()});function Uy(e,t,r){return JSON.stringify(e,(n,o)=>typeof t==\"function\"?t(n,o):typeof o==\"bigint\"?o.toString()+Bbt:o,r)}var Bbt,IT=x(()=>{c();Bbt=\"#__bigint\"});function Rbt(e){if(!(e instanceof Uint8Array)){if(!e)throw new N5(e);if(typeof e!=\"object\")throw new N5(e);if(!(\"BYTES_PER_ELEMENT\"in e))throw new N5(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!==\"Uint8Array\")throw new N5(e)}}function uHe(e){return e instanceof Uint8Array?e:typeof e==\"string\"?U5(e):Mbt(e)}function Mbt(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function U5(e,t={}){let{size:r}=t,n=e;r&&(O5(e,r),n=Ud(e,r));let o=n.slice(2);o.length%2&&(o=`0${o}`);let s=o.length/2,u=new Uint8Array(s);for(let f=0,d=0;f<s;f++){let m=HQ(o.charCodeAt(d++)),h=HQ(o.charCodeAt(d++));if(m===void 0||h===void 0)throw new rt(`Invalid byte sequence (\"${o[d-2]}${o[d-1]}\" in \"${o}\").`);u[f]=m<<4|h}return u}function lHe(e,t={}){let{size:r}=t,n=Pbt.encode(e);return typeof r==\"number\"?(M5(n,r),Obt(n,r)):n}function Obt(e,t){return nHe(e,{dir:\"right\",size:t})}function Iu(e){return e.length}function fHe(e,t,r,n={}){let{strict:o}=n;tHe(e,t);let s=e.slice(t,r);return o&&rHe(s,t,r),s}function dHe(e,t={}){let{size:r}=t;typeof r<\"u\"&&M5(e,r);let n=Mo(e,t);return $Q(n,t)}function pHe(e,t={}){let{size:r}=t,n=e;if(typeof r<\"u\"&&(M5(n,r),n=qQ(n)),n.length>1||n[0]>1)throw new jQ(n);return!!n[0]}function Nd(e,t={}){let{size:r}=t;typeof r<\"u\"&&M5(e,r);let n=Mo(e,t);return ZO(n,t)}function mHe(e,t={}){let{size:r}=t,n=e;return typeof r<\"u\"&&(M5(n,r),n=Nbt(n)),Ibt.decode(n)}function qQ(e){return LQ(e,{dir:\"left\"})}function Nbt(e){return LQ(e,{dir:\"right\"})}function hHe(e){try{return Rbt(e),!0}catch{return!1}}var Ibt,Pbt,jQ,N5,GO,kT,VO,Ny=x(()=>{c();Zs();_a();oHe();FQ();IT();Ibt=new TextDecoder,Pbt=new TextEncoder;jQ=class extends rt{constructor(t){super(`Bytes value \\\\`${t}\\\\` is not a valid boolean.`,{metaMessages:[\"The bytes array must contain a single byte of either a `0` or `1` value.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesBooleanError\"})}},N5=class extends rt{constructor(t){super(`Value \\\\`${typeof t==\"object\"?Uy(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid Bytes value.`,{metaMessages:[\"Bytes values must be of type `Bytes`.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesTypeError\"})}},GO=class extends rt{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \\\\`${r}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeOverflowError\"})}},kT=class extends rt{constructor({offset:t,position:r,size:n}){super(`Slice ${r===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SliceOffsetOutOfBoundsError\"})}},VO=class extends rt{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeExceedsPaddingSizeError\"})}}});function Hbt(e,t={}){let{strict:r=!1}=t;if(!e)throw new JO(e);if(typeof e!=\"string\")throw new JO(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new YO(e);if(!e.startsWith(\"0x\"))throw new YO(e)}function io(...e){return`0x${e.reduce((t,r)=>t+r.replace(\"0x\",\"\"),\"\")}`}function D5(e){return e instanceof Uint8Array?Mo(e):Array.isArray(e)?Mo(new Uint8Array(e)):e}function XO(e,t={}){let r=`0x${Number(e)}`;return typeof t.size==\"number\"?(O5(r,t.size),Gm(r,t.size)):r}function Mo(e,t={}){let r=\"\";for(let o=0;o<e.length;o++)r+=Dbt[e[o]];let n=`0x${r}`;return typeof t.size==\"number\"?(O5(n,t.size),Ud(n,t.size)):n}function Ur(e,t={}){let{signed:r,size:n}=t,o=BigInt(e),s;n?r?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof e==\"number\"&&(s=BigInt(Number.MAX_SAFE_INTEGER));let u=typeof s==\"bigint\"&&r?-s-1n:0;if(s&&o>s||o<u){let m=typeof e==\"bigint\"?\"n\":\"\";throw new PT({max:s?`${s}${m}`:void 0,min:`${u}${m}`,signed:r,size:n,value:`${e}${m}`})}let d=`0x${(r&&o<0?BigInt.asUintN(n*8,BigInt(o)):o).toString(16)}`;return n?Gm(d,n):d}function H5(e,t={}){return Mo(Ubt.encode(e),t)}function Gm(e,t){return zQ(e,{dir:\"left\",size:t})}function Ud(e,t){return zQ(e,{dir:\"right\",size:t})}function Xn(e,t,r,n={}){let{strict:o}=n;aHe(e,t);let s=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(r??e.length)*2)}`;return o&&iHe(s,t,r),s}function Yn(e){return Math.ceil((e.length-2)/2)}function GQ(e){return sHe(e,{dir:\"left\"})}function $Q(e,t={}){let{signed:r}=t;t.size&&O5(e,t.size);let n=BigInt(e);if(!r)return n;let o=(e.length-2)/2,s=(1n<<BigInt(o)*8n)-1n,u=s>>1n;return n<=u?n:n-s-1n}function ZO(e,t={}){let{signed:r,size:n}=t;return Number(!r&&!n?e:$Q(e,t))}function RT(e,t={}){let{strict:r=!1}=t;try{return Hbt(e,{strict:r}),!0}catch{return!1}}var Ubt,Dbt,PT,JO,YO,KO,BT,WO,_a=x(()=>{c();Zs();FQ();IT();Ubt=new TextEncoder,Dbt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));PT=class extends rt{constructor({max:t,min:r,signed:n,size:o,value:s}){super(`Number \\\\`${s}\\\\` is not in safe${o?` ${o*8}-bit`:\"\"}${n?\" signed\":\" unsigned\"} integer range ${t?`(\\\\`${r}\\\\` to \\\\`${t}\\\\`)`:`(above \\\\`${r}\\\\`)`}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.IntegerOutOfRangeError\"})}},JO=class extends rt{constructor(t){super(`Value \\\\`${typeof t==\"object\"?Uy(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid hex type.`,{metaMessages:[\\'Hex types must be represented as `\"0x${string}\"`.\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexTypeError\"})}},YO=class extends rt{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid hex value.`,{metaMessages:[\\'Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexValueError\"})}},KO=class extends rt{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \\\\`${r}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeOverflowError\"})}},BT=class extends rt{constructor({offset:t,position:r,size:n}){super(`Slice ${r===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SliceOffsetOutOfBoundsError\"})}},WO=class extends rt{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeExceedsPaddingSizeError\"})}}});function yHe(e){return{address:e.address,amount:Ur(e.amount),index:Ur(e.index),validatorIndex:Ur(e.validatorIndex)}}var bHe=x(()=>{c();_a()});function eN(e){return{...typeof e.baseFeePerGas==\"bigint\"&&{baseFeePerGas:Ur(e.baseFeePerGas)},...typeof e.blobBaseFee==\"bigint\"&&{blobBaseFee:Ur(e.blobBaseFee)},...typeof e.feeRecipient==\"string\"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit==\"bigint\"&&{gasLimit:Ur(e.gasLimit)},...typeof e.number==\"bigint\"&&{number:Ur(e.number)},...typeof e.prevRandao==\"bigint\"&&{prevRandao:Ur(e.prevRandao)},...typeof e.time==\"bigint\"&&{time:Ur(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(yHe)}}}var VQ=x(()=>{c();_a();bHe()});var Dd,tN,xHe,rN,vHe,KQ,WQ,QQ,ZQ,Vm=x(()=>{c();Dd=[{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"allowFailure\",type:\"bool\"},{name:\"callData\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"aggregate3\",outputs:[{components:[{name:\"success\",type:\"bool\"},{name:\"returnData\",type:\"bytes\"}],name:\"returnData\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"addr\",type:\"address\"}],name:\"getEthBalance\",outputs:[{name:\"balance\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"getCurrentBlockTimestamp\",outputs:[{internalType:\"uint256\",name:\"timestamp\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"}],tN=[{name:\"query\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"tuple[]\",name:\"queries\",components:[{type:\"address\",name:\"sender\"},{type:\"string[]\",name:\"urls\"},{type:\"bytes\",name:\"data\"}]}],outputs:[{type:\"bool[]\",name:\"failures\"},{type:\"bytes[]\",name:\"responses\"}]},{name:\"HttpError\",type:\"error\",inputs:[{type:\"uint16\",name:\"status\"},{type:\"string\",name:\"message\"}]}],xHe=[{inputs:[{name:\"dns\",type:\"bytes\"}],name:\"DNSDecodingFailed\",type:\"error\"},{inputs:[{name:\"ens\",type:\"string\"}],name:\"DNSEncodingFailed\",type:\"error\"},{inputs:[],name:\"EmptyAddress\",type:\"error\"},{inputs:[{name:\"status\",type:\"uint16\"},{name:\"message\",type:\"string\"}],name:\"HttpError\",type:\"error\"},{inputs:[],name:\"InvalidBatchGatewayResponse\",type:\"error\"},{inputs:[{name:\"errorData\",type:\"bytes\"}],name:\"ResolverError\",type:\"error\"},{inputs:[{name:\"name\",type:\"bytes\"},{name:\"resolver\",type:\"address\"}],name:\"ResolverNotContract\",type:\"error\"},{inputs:[{name:\"name\",type:\"bytes\"}],name:\"ResolverNotFound\",type:\"error\"},{inputs:[{name:\"primary\",type:\"string\"},{name:\"primaryAddress\",type:\"bytes\"}],name:\"ReverseAddressMismatch\",type:\"error\"},{inputs:[{internalType:\"bytes4\",name:\"selector\",type:\"bytes4\"}],name:\"UnsupportedResolverProfile\",type:\"error\"}],rN=[...xHe,{name:\"resolveWithGateways\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes\"},{name:\"data\",type:\"bytes\"},{name:\"gateways\",type:\"string[]\"}],outputs:[{name:\"\",type:\"bytes\"},{name:\"address\",type:\"address\"}]}],vHe=[...xHe,{name:\"reverseWithGateways\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes\",name:\"reverseName\"},{type:\"uint256\",name:\"coinType\"},{type:\"string[]\",name:\"gateways\"}],outputs:[{type:\"string\",name:\"resolvedName\"},{type:\"address\",name:\"resolver\"},{type:\"address\",name:\"reverseResolver\"}]}],KQ=[{name:\"text\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"key\",type:\"string\"}],outputs:[{name:\"\",type:\"string\"}]}],WQ=[{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"}],outputs:[{name:\"\",type:\"address\"}]},{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"coinType\",type:\"uint256\"}],outputs:[{name:\"\",type:\"bytes\"}]}],QQ=[{name:\"isValidSignature\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],outputs:[{name:\"\",type:\"bytes4\"}]}],ZQ=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\",name:\"isValidSig\"}]});var wHe,EHe=x(()=>{c();wHe=\"0x82ad56cb\"});var nN,AHe,SHe,L5,MT=x(()=>{c();nN=\"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe\",AHe=\"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe\",SHe=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",L5=\"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033\"});var Hg,OT,JQ=x(()=>{c();xr();Hg=class extends be{constructor({blockNumber:t,chain:r,contract:n}){super(`Chain \"${r.name}\" does not support contract \"${n.name}\".`,{metaMessages:[\"This could be due to any of the following:\",...t&&n.blockCreated&&n.blockCreated>t?[`- The contract \"${n.name}\" was not deployed until block ${n.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract \"${n.name}\" configured.`]],name:\"ChainDoesNotSupportContract\"})}},OT=class extends be{constructor(){super(\"No chain was provided to the Client.\",{name:\"ClientChainNotConfiguredError\"})}}});function NT(e){let{abi:t,args:r,bytecode:n}=e;if(!r||r.length===0)return n;let o=t.find(u=>\"type\"in u&&u.type===\"constructor\");if(!o)throw new GM({docsPath:YQ});if(!(\"inputs\"in o))throw new lT({docsPath:YQ});if(!o.inputs||o.inputs.length===0)throw new lT({docsPath:YQ});let s=as(o.inputs,r);return $l([n,s])}var YQ,XQ=x(()=>{c();Po();Su();Hm();YQ=\"/docs/contract/encodeDeployData\"});function Pu({blockNumber:e,chain:t,contract:r}){let n=t?.contracts?.[r];if(!n)throw new Hg({chain:t,contract:{name:r}});if(e&&n.blockCreated&&n.blockCreated>e)throw new Hg({blockNumber:e,chain:t,contract:{name:r,blockCreated:n.blockCreated}});return n.address}var Lg=x(()=>{c();JQ()});function oN(e,{docsPath:t,...r}){let n=(()=>{let o=Ry(e,r);return o instanceof ku?e:o})();return new $6(n,{docsPath:t,...r})}var eZ=x(()=>{c();_y();Og();TT()});function aN(){let e=()=>{},t=()=>{};return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}var tZ=x(()=>{c()});function iN({fn:e,id:t,shouldSplitBatch:r,wait:n=0,sort:o}){let s=async()=>{let h=d();u();let y=h.map(({args:v})=>v);y.length!==0&&e(y).then(v=>{o&&Array.isArray(v)&&v.sort(o);for(let E=0;E<h.length;E++){let{resolve:C}=h[E];C?.([v[E],v])}}).catch(v=>{for(let E=0;E<h.length;E++){let{reject:C}=h[E];C?.(v)}})},u=()=>rZ.delete(t),f=()=>d().map(({args:h})=>h),d=()=>rZ.get(t)||[],m=h=>rZ.set(t,[...d(),h]);return{flush:u,async schedule(h){let{promise:y,resolve:v,reject:E}=aN();return r?.([...f(),h])&&s(),d().length>0?(m({args:h,resolve:v,reject:E}),y):(m({args:h,resolve:v,reject:E}),setTimeout(s,n),y)}}}var rZ,nZ=x(()=>{c();tZ();rZ=new Map});var sN,cN,uN,CHe=x(()=>{c();Qs();xr();_O();sN=class extends be{constructor({callbackSelector:t,cause:r,data:n,extraData:o,sender:s,urls:u}){super(r.shortMessage||\"An error occurred while fetching for an offchain result.\",{cause:r,metaMessages:[...r.metaMessages||[],r.metaMessages?.length?\"\":[],\"Offchain Gateway Call:\",u&&[\"  Gateway URL(s):\",...u.map(f=>`    ${Bg(f)}`)],`  Sender: ${s}`,`  Data: ${n}`,`  Callback selector: ${t}`,`  Extra data: ${o}`].flat(),name:\"OffchainLookupError\"})}},cN=class extends be{constructor({result:t,url:r}){super(\"Offchain gateway response is malformed. Response data must be a hex value.\",{metaMessages:[`Gateway URL: ${Bg(r)}`,`Response: ${Nr(t)}`],name:\"OffchainLookupResponseMalformedError\"})}},uN=class extends be{constructor({sender:t,to:r}){super(\"Reverted sender address does not match target contract address (`to`).\",{metaMessages:[`Contract address: ${r}`,`OffchainLookup sender address: ${t}`],name:\"OffchainLookupSenderMismatchError\"})}}});function THe(e){let{abi:t,data:r}=e,n=Cu(r,0,4),o=t.find(s=>s.type===\"function\"&&n===Id(la(s)));if(!o)throw new YM(n,{docsPath:\"/docs/contract/decodeFunctionData\"});return{functionName:o.name,args:\"inputs\"in o&&o.inputs&&o.inputs.length>0?Lm(o.inputs,Cu(r,4)):void 0}}var _He=x(()=>{c();Po();_g();U6();ET();Mm()});function aZ(e){let{abi:t,errorName:r,args:n}=e,o=t[0];if(r){let d=Ws({abi:t,args:n,name:r});if(!d)throw new fT(r,{docsPath:oZ});o=d}if(o.type!==\"error\")throw new fT(void 0,{docsPath:oZ});let s=la(o),u=Id(s),f=\"0x\";if(n&&n.length>0){if(!o.inputs)throw new QM(o.name,{docsPath:oZ});f=as(o.inputs,n)}return $l([u,f])}var oZ,kHe=x(()=>{c();Po();Su();U6();Hm();Mm();Cy();oZ=\"/docs/contract/encodeErrorResult\"});function BHe(e){let{abi:t,functionName:r,result:n}=e,o=t[0];if(r){let u=Ws({abi:t,name:r});if(!u)throw new zl(r,{docsPath:iZ});o=u}if(o.type!==\"function\")throw new zl(void 0,{docsPath:iZ});if(!o.outputs)throw new O6(o.name,{docsPath:iZ});let s=(()=>{if(o.outputs.length===0)return[];if(o.outputs.length===1)return[n];if(Array.isArray(n))return n;throw new N6(n)})();return as(o.outputs,s)}var iZ,IHe=x(()=>{c();Po();Hm();Cy();iZ=\"/docs/contract/encodeFunctionResult\"});async function sZ(e){let{data:t,ccipRequest:r}=e,{args:[n]}=THe({abi:tN,data:t}),o=[],s=[];return await Promise.all(n.map(async(u,f)=>{try{s[f]=u.urls.includes(Km)?await sZ({data:u.data,ccipRequest:r}):await r(u),o[f]=!1}catch(d){o[f]=!0,s[f]=zbt(d)}})),BHe({abi:tN,functionName:\"query\",result:[o,s]})}function zbt(e){return e.name===\"HttpRequestError\"&&e.status?aZ({abi:tN,errorName:\"HttpError\",args:[e.status,e.shortMessage]}):aZ({abi:[mO],errorName:\"Error\",args:[\"shortMessage\"in e?e.shortMessage:e.message]})}var Km,UT=x(()=>{c();Vm();hO();_He();kHe();IHe();Km=\"x-batch-gateway:true\"});var MHe={};Wn(MHe,{ccipRequest:()=>RHe,offchainLookup:()=>jbt,offchainLookupAbiItem:()=>PHe,offchainLookupSignature:()=>Fbt});async function jbt(e,{blockNumber:t,blockTag:r,data:n,to:o}){let{args:s}=gO({data:n,abi:[PHe]}),[u,f,d,m,h]=s,{ccipRead:y}=e,v=y&&typeof y?.request==\"function\"?y.request:RHe;try{if(!Vl(o,u))throw new uN({sender:u,to:o});let E=f.includes(Km)?await sZ({data:d,ccipRequest:v}):await v({data:d,sender:u,urls:f}),{data:C}=await Ru(e,{blockNumber:t,blockTag:r,data:Qa([m,as([{type:\"bytes\"},{type:\"bytes\"}],[E,h])]),to:o});return C}catch(E){throw new sN({callbackSelector:m,cause:E,data:n,extraData:h,sender:u,urls:f})}}async function RHe({data:e,sender:t,urls:r}){let n=new Error(\"An unknown error occurred.\");for(let o=0;o<r.length;o++){let s=r[o],u=s.includes(\"{data}\")?\"GET\":\"POST\",f=u===\"POST\"?{data:e,sender:t}:void 0,d=u===\"POST\"?{\"Content-Type\":\"application/json\"}:{};try{let m=await fetch(s.replace(\"{sender}\",t.toLowerCase()).replace(\"{data}\",e),{body:JSON.stringify(f),headers:d,method:u}),h;if(m.headers.get(\"Content-Type\")?.startsWith(\"application/json\")?h=(await m.json()).data:h=await m.text(),!m.ok){n=new Tu({body:f,details:h?.error?Nr(h.error):m.statusText,headers:m.headers,status:m.status,url:s});continue}if(!Ro(h)){n=new cN({result:h,url:s});continue}return h}catch(m){n=new Tu({body:f,details:m.message,url:s})}}throw n}var Fbt,PHe,OHe=x(()=>{c();zg();CHe();Pg();kQ();Hm();I5();Su();Ll();UT();Qs();Fbt=\"0x556f1830\",PHe={name:\"OffchainLookup\",type:\"error\",inputs:[{name:\"sender\",type:\"address\"},{name:\"urls\",type:\"string[]\"},{name:\"callData\",type:\"bytes\"},{name:\"callbackFunction\",type:\"bytes4\"},{name:\"extraData\",type:\"bytes\"}]}});async function Ru(e,t){let{account:r=e.account,authorizationList:n,batch:o=!!e.batch?.multicall,blockNumber:s,blockTag:u=e.experimental_blockTag??\"latest\",accessList:f,blobs:d,blockOverrides:m,code:h,data:y,factory:v,factoryData:E,gas:C,gasPrice:B,maxFeePerBlobGas:R,maxFeePerGas:M,maxPriorityFeePerGas:U,nonce:O,to:N,value:j,stateOverride:K,...G}=t,J=r?jn(r):void 0;if(h&&(v||E))throw new be(\"Cannot provide both `code` & `factory`/`factoryData` as parameters.\");if(h&&N)throw new be(\"Cannot provide both `code` & `to` as parameters.\");let Y=h&&y,W=v&&E&&N&&y,ie=Y||W,re=Y?NHe({code:h,data:y}):W?Gbt({data:y,factory:v,factoryData:E,to:N}):y;try{Bu(t);let A=(typeof s==\"bigint\"?Fe(s):void 0)||u,T=m?eN(m):void 0,P=E5(K),D=e.chain?.formatters?.transactionRequest?.format,V=(D||Od)({...My(G,{format:D}),accessList:f,account:J,authorizationList:n,blobs:d,data:re,gas:C,gasPrice:B,maxFeePerBlobGas:R,maxFeePerGas:M,maxPriorityFeePerGas:U,nonce:O,to:ie?void 0:N,value:j},\"call\");if(o&&qbt({request:V})&&!P&&!T)try{return await $bt(e,{...V,blockNumber:s,blockTag:u})}catch(I){if(!(I instanceof OT)&&!(I instanceof Hg))throw I}let Z=(()=>{let I=[V,A];return P&&T?[...I,P,T]:P?[...I,P]:T?[...I,{},T]:I})(),z=await e.request({method:\"eth_call\",params:Z});return z===\"0x\"?{data:void 0}:{data:z}}catch(H){let A=Vbt(H),{offchainLookup:T,offchainLookupSignature:P}=await Promise.resolve().then(()=>(OHe(),MHe));if(e.ccipRead!==!1&&A?.slice(0,10)===P&&N)return{data:await T(e,{data:A,to:N})};throw ie&&A?.slice(0,10)===\"0x101bb98d\"?new BO({factory:v}):oN(H,{...t,account:J,chain:e.chain})}}function qbt({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(wHe)||!r||Object.values(n).filter(o=>typeof o<\"u\").length>0)}async function $bt(e,t){let{batchSize:r=1024,deployless:n=!1,wait:o=0}=typeof e.batch?.multicall==\"object\"?e.batch.multicall:{},{blockNumber:s,blockTag:u=e.experimental_blockTag??\"latest\",data:f,to:d}=t,m=(()=>{if(n)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return Pu({blockNumber:s,chain:e.chain,contract:\"multicall3\"});throw new OT})(),y=(typeof s==\"bigint\"?Fe(s):void 0)||u,{schedule:v}=iN({id:`${e.uid}.${y}`,wait:o,shouldSplitBatch(B){return B.reduce((M,{data:U})=>M+(U.length-2),0)>r*2},fn:async B=>{let R=B.map(O=>({allowFailure:!0,callData:O.data,target:O.to})),M=_n({abi:Dd,args:[R],functionName:\"aggregate3\"}),U=await e.request({method:\"eth_call\",params:[{...m===null?{data:NHe({code:L5,data:M})}:{to:m,data:M}},y]});return xi({abi:Dd,args:[R],functionName:\"aggregate3\",data:U||\"0x\"})}}),[{returnData:E,success:C}]=await v({data:f,to:d});if(!C)throw new Md({data:E});return E===\"0x\"?{data:void 0}:{data:E}}function NHe(e){let{code:t,data:r}=e;return NT({abi:FM([\"constructor(bytes, bytes)\"]),bytecode:nN,args:[t,r]})}function Gbt(e){let{data:t,factory:r,factoryData:n,to:o}=e;return NT({abi:FM([\"constructor(address, bytes, address, bytes)\"]),bytecode:AHe,args:[o,t,r,n]})}function Vbt(e){if(!(e instanceof be))return;let t=e.walk();return typeof t?.data==\"object\"?t.data?.data:t.data}var zg=x(()=>{c();cT();VQ();Oc();Vm();EHe();MT();xr();JQ();_y();qm();XQ();Nc();Lg();Ht();eZ();_T();w5();nZ();MO();Ng()});function uJ(e,t){let r;try{r=e()}catch{return}return{getItem:o=>{var s;let u=d=>d===null?null:JSON.parse(d,t?.reviver),f=(s=r.getItem(o))!=null?s:null;return f instanceof Promise?f.then(u):u(f)},setItem:(o,s)=>r.setItem(o,JSON.stringify(s,t?.replacer)),removeItem:o=>r.removeItem(o)}}var cJ,Gxt,eFe,tFe=x(()=>{c();cJ=e=>t=>{try{let r=e(t);return r instanceof Promise?r:{then(n){return cJ(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return cJ(n)(r)}}}},Gxt=(e,t)=>(r,n,o)=>{let s={storage:uJ(()=>localStorage),partialize:B=>B,version:0,merge:(B,R)=>({...R,...B}),...t},u=!1,f=new Set,d=new Set,m=s.storage;if(!m)return e((...B)=>{console.warn(`[zustand persist middleware] Unable to update item \\'${s.name}\\', the given storage is currently unavailable.`),r(...B)},n,o);let h=()=>{let B=s.partialize({...n()});return m.setItem(s.name,{state:B,version:s.version})},y=o.setState;o.setState=(B,R)=>{y(B,R),h()};let v=e((...B)=>{r(...B),h()},n,o);o.getInitialState=()=>v;let E,C=()=>{var B,R;if(!m)return;u=!1,f.forEach(U=>{var O;return U((O=n())!=null?O:v)});let M=((R=s.onRehydrateStorage)==null?void 0:R.call(s,(B=n())!=null?B:v))||void 0;return cJ(m.getItem.bind(m))(s.name).then(U=>{if(U)if(typeof U.version==\"number\"&&U.version!==s.version){if(s.migrate){let O=s.migrate(U.state,U.version);return O instanceof Promise?O.then(N=>[!0,N]):[!0,O]}console.error(\"State loaded from storage couldn\\'t be migrated since no migrate function was provided\")}else return[!1,U.state];return[!1,void 0]}).then(U=>{var O;let[N,j]=U;if(E=s.merge(j,(O=n())!=null?O:v),r(E,!0),N)return h()}).then(()=>{M?.(E,void 0),E=n(),u=!0,d.forEach(U=>U(E))}).catch(U=>{M?.(void 0,U)})};return o.persist={setOptions:B=>{s={...s,...B},B.storage&&(m=B.storage)},clearStorage:()=>{m?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>C(),hasHydrated:()=>u,onHydrate:B=>(f.add(B),()=>{f.delete(B)}),onFinishHydration:B=>(d.add(B),()=>{d.delete(B)})},s.skipHydration||C(),E||v},eFe=Gxt});var rFe,rE,rU=x(()=>{c();rFe=e=>{let t,r=new Set,n=(m,h)=>{let y=typeof m==\"function\"?m(t):m;if(!Object.is(y,t)){let v=t;t=h??(typeof y!=\"object\"||y===null)?y:Object.assign({},t,y),r.forEach(E=>E(t,v))}},o=()=>t,f={setState:n,getState:o,getInitialState:()=>d,subscribe:m=>(r.add(m),()=>r.delete(m))},d=t=e(n,o,f);return f},rE=e=>e?rFe(e):rFe});var Hu,nU,cx=x(()=>{c();Hu=\"4.3.6\",nU=\"@coinbase/wallet-sdk\"});var Vxt,Kxt,Wxt,Qxt,Zxt,Jxt,Yxt,Oo,Xxt,e2t,t2t,r2t,n2t,o2t,lJ,a2t,Re,Lu=x(()=>{c();tFe();rU();cx();Vxt=()=>({chains:[]}),Kxt=()=>({keys:{}}),Wxt=()=>({account:{}}),Qxt=()=>({subAccount:void 0}),Zxt=()=>({subAccountConfig:{}}),Jxt=()=>({spendPermissions:[]}),Yxt=()=>({config:{version:Hu}}),Oo=rE(eFe((...e)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vxt(...e)),Kxt(...e)),Wxt(...e)),Qxt(...e)),Jxt(...e)),Yxt(...e)),Zxt(...e)),{name:\"cbwsdk.store\",storage:uJ(()=>localStorage),partialize:e=>({chains:e.chains,keys:e.keys,account:e.account,subAccount:e.subAccount,spendPermissions:e.spendPermissions,config:e.config})})),Xxt={get:()=>Oo.getState().subAccountConfig,set:e=>{Oo.setState(t=>({subAccountConfig:Object.assign(Object.assign({},t.subAccountConfig),e)}))},clear:()=>{Oo.setState({subAccountConfig:{}})}},e2t={get:()=>Oo.getState().subAccount,set:e=>{Oo.setState(t=>({subAccount:t.subAccount?Object.assign(Object.assign({},t.subAccount),e):Object.assign({address:e.address},e)}))},clear:()=>{Oo.setState({subAccount:void 0})}},t2t={get:()=>Oo.getState().spendPermissions,set:e=>{Oo.setState({spendPermissions:e})},clear:()=>{Oo.setState({spendPermissions:[]})}},r2t={get:()=>Oo.getState().account,set:e=>{Oo.setState(t=>({account:Object.assign(Object.assign({},t.account),e)}))},clear:()=>{Oo.setState({account:{}})}},n2t={get:()=>Oo.getState().chains,set:e=>{Oo.setState({chains:e})},clear:()=>{Oo.setState({chains:[]})}},o2t={get:e=>Oo.getState().keys[e],set:(e,t)=>{Oo.setState(r=>({keys:Object.assign(Object.assign({},r.keys),{[e]:t})}))},clear:()=>{Oo.setState({keys:{}})}},lJ={get:()=>Oo.getState().config,set:e=>{Oo.setState(t=>({config:Object.assign(Object.assign({},t.config),e)}))}},a2t={subAccounts:e2t,subAccountsConfig:Xxt,spendPermissions:t2t,account:r2t,chains:n2t,keys:o2t,config:lJ},Re=Object.assign(Object.assign({},Oo),a2t)});var nFe,oFe=x(()=>{c();nFe=\\'!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.ClientAnalytics=t():e.ClientAnalytics=t()}(this,(function(){return(()=>{var e={792:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join(\"\")}}};e.exports=t},562:e=>{var t,n;t=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join(\"\")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?n.push(t.charAt(i>>>6*(3-a)&63)):n.push(\"=\");return n.join(\"\")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\\\\\\\\/]/gi,\"\");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}},e.exports=n},335:e=>{function t(e){return!!e.constructor&&\"function\"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return\"function\"==typeof e.readFloatLE&&\"function\"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},762:(e,t,n)=>{var r,i,a,o,s;r=n(562),i=n(792).utf8,a=n(335),o=n(792).bin,(s=function(e,t){e.constructor==String?e=t&&\"binary\"===t.encoding?o.stringToBytes(e):i.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,u=1732584193,l=-271733879,d=-1732584194,p=271733878,m=0;m<n.length;m++)n[m]=16711935&(n[m]<<8|n[m]>>>24)|4278255360&(n[m]<<24|n[m]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var f=s._ff,v=s._gg,g=s._hh,b=s._ii;for(m=0;m<n.length;m+=16){var h=u,w=l,y=d,T=p;u=f(u,l,d,p,n[m+0],7,-680876936),p=f(p,u,l,d,n[m+1],12,-389564586),d=f(d,p,u,l,n[m+2],17,606105819),l=f(l,d,p,u,n[m+3],22,-1044525330),u=f(u,l,d,p,n[m+4],7,-176418897),p=f(p,u,l,d,n[m+5],12,1200080426),d=f(d,p,u,l,n[m+6],17,-1473231341),l=f(l,d,p,u,n[m+7],22,-45705983),u=f(u,l,d,p,n[m+8],7,1770035416),p=f(p,u,l,d,n[m+9],12,-1958414417),d=f(d,p,u,l,n[m+10],17,-42063),l=f(l,d,p,u,n[m+11],22,-1990404162),u=f(u,l,d,p,n[m+12],7,1804603682),p=f(p,u,l,d,n[m+13],12,-40341101),d=f(d,p,u,l,n[m+14],17,-1502002290),u=v(u,l=f(l,d,p,u,n[m+15],22,1236535329),d,p,n[m+1],5,-165796510),p=v(p,u,l,d,n[m+6],9,-1069501632),d=v(d,p,u,l,n[m+11],14,643717713),l=v(l,d,p,u,n[m+0],20,-373897302),u=v(u,l,d,p,n[m+5],5,-701558691),p=v(p,u,l,d,n[m+10],9,38016083),d=v(d,p,u,l,n[m+15],14,-660478335),l=v(l,d,p,u,n[m+4],20,-405537848),u=v(u,l,d,p,n[m+9],5,568446438),p=v(p,u,l,d,n[m+14],9,-1019803690),d=v(d,p,u,l,n[m+3],14,-187363961),l=v(l,d,p,u,n[m+8],20,1163531501),u=v(u,l,d,p,n[m+13],5,-1444681467),p=v(p,u,l,d,n[m+2],9,-51403784),d=v(d,p,u,l,n[m+7],14,1735328473),u=g(u,l=v(l,d,p,u,n[m+12],20,-1926607734),d,p,n[m+5],4,-378558),p=g(p,u,l,d,n[m+8],11,-2022574463),d=g(d,p,u,l,n[m+11],16,1839030562),l=g(l,d,p,u,n[m+14],23,-35309556),u=g(u,l,d,p,n[m+1],4,-1530992060),p=g(p,u,l,d,n[m+4],11,1272893353),d=g(d,p,u,l,n[m+7],16,-155497632),l=g(l,d,p,u,n[m+10],23,-1094730640),u=g(u,l,d,p,n[m+13],4,681279174),p=g(p,u,l,d,n[m+0],11,-358537222),d=g(d,p,u,l,n[m+3],16,-722521979),l=g(l,d,p,u,n[m+6],23,76029189),u=g(u,l,d,p,n[m+9],4,-640364487),p=g(p,u,l,d,n[m+12],11,-421815835),d=g(d,p,u,l,n[m+15],16,530742520),u=b(u,l=g(l,d,p,u,n[m+2],23,-995338651),d,p,n[m+0],6,-198630844),p=b(p,u,l,d,n[m+7],10,1126891415),d=b(d,p,u,l,n[m+14],15,-1416354905),l=b(l,d,p,u,n[m+5],21,-57434055),u=b(u,l,d,p,n[m+12],6,1700485571),p=b(p,u,l,d,n[m+3],10,-1894986606),d=b(d,p,u,l,n[m+10],15,-1051523),l=b(l,d,p,u,n[m+1],21,-2054922799),u=b(u,l,d,p,n[m+8],6,1873313359),p=b(p,u,l,d,n[m+15],10,-30611744),d=b(d,p,u,l,n[m+6],15,-1560198380),l=b(l,d,p,u,n[m+13],21,1309151649),u=b(u,l,d,p,n[m+4],6,-145523070),p=b(p,u,l,d,n[m+11],10,-1120210379),d=b(d,p,u,l,n[m+2],15,718787259),l=b(l,d,p,u,n[m+9],21,-343485551),u=u+h>>>0,l=l+w>>>0,d=d+y>>>0,p=p+T>>>0}return r.endian([u,l,d,p])})._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error(\"Illegal argument \"+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?o.bytesToString(n):r.bytesToHex(n)}},2:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{Perfume:()=>ze,incrementUjNavigation:()=>Le,markStep:()=>Re,markStepOnce:()=>qe});var r,i,a={isResourceTiming:!1,isElementTiming:!1,maxTime:3e4,reportOptions:{},enableNavigationTracking:!0},o=window,s=o.console,c=o.navigator,u=o.performance,l=function(){return c.deviceMemory},d=function(){return c.hardwareConcurrency},p=\"mark.\",m=function(){return u&&!!u.getEntriesByType&&!!u.now&&!!u.mark},f=\"4g\",v=!1,g={},b={value:0},h={value:{beacon:0,css:0,fetch:0,img:0,other:0,script:0,total:0,xmlhttprequest:0}},w={value:0},y={value:0},T={},k={isHidden:!1,didChange:!1},_=function(){k.isHidden=!1,document.hidden&&(k.isHidden=document.hidden,k.didChange=!0)},S=function(e,t){try{var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe({type:e,buffered:!0}),n}catch(e){s.warn(\"Perfume.js:\",e)}return null},E=function(){return!!(d()&&d()<=4)||!!(l()&&l()<=4)},x=function(e,t){switch(e){case\"slow-2g\":case\"2g\":case\"3g\":return!0;default:return E()||t}},O=function(e){return parseFloat(e.toFixed(4))},j=function(e){return\"number\"!=typeof e?null:O(e/Math.pow(1024,2))},N=function(e,t,n,r,i){var s,u=function(){a.analyticsTracker&&(k.isHidden&&![\"CLS\",\"INP\"].includes(e)||a.analyticsTracker({attribution:r,metricName:e,data:t,navigatorInformation:c?{deviceMemory:l()||0,hardwareConcurrency:d()||0,serviceWorkerStatus:\"serviceWorker\"in c?c.serviceWorker.controller?\"controlled\":\"supported\":\"unsupported\",isLowEndDevice:E(),isLowEndExperience:x(f,v)}:{},rating:n,navigationType:i}))};[\"CLS\",\"INP\"].includes(e)?u():(s=u,\"requestIdleCallback\"in o?o.requestIdleCallback(s,{timeout:3e3}):s())},I=function(e){e.forEach((function(e){if(!(\"self\"!==e.name||e.startTime<b.value)){var t=e.duration-50;t>0&&(w.value+=t,y.value+=t)}}))};!function(e){e.instant=\"instant\",e.quick=\"quick\",e.moderate=\"moderate\",e.slow=\"slow\",e.unavoidable=\"unavoidable\"}(r||(r={}));var P,M,B,C,D,A=((i={})[r.instant]={vitalsThresholds:[100,200],maxOutlierThreshold:1e4},i[r.quick]={vitalsThresholds:[200,500],maxOutlierThreshold:1e4},i[r.moderate]={vitalsThresholds:[500,1e3],maxOutlierThreshold:1e4},i[r.slow]={vitalsThresholds:[1e3,2e3],maxOutlierThreshold:1e4},i[r.unavoidable]={vitalsThresholds:[2e3,5e3],maxOutlierThreshold:2e4},i),L={RT:[100,200],TBT:[200,600],NTBT:[200,600]},U=function(e,t){return L[e]?t<=L[e][0]?\"good\":t<=L[e][1]?\"needsImprovement\":\"poor\":null},R=function(e,t,n){Object.keys(t).forEach((function(e){\"number\"==typeof t[e]&&(t[e]=O(t[e]))})),N(e,t,null,n||{})},q=function(e){var t=e.attribution,n=e.name,r=e.rating,i=e.value,o=e.navigationType;\"FCP\"===n&&(b.value=i),[\"FCP\",\"LCP\"].includes(n)&&!T[0]&&(T[0]=S(\"longtask\",I)),\"FID\"===n&&setTimeout((function(){k.didChange||(q({attribution:t,name:\"TBT\",rating:U(\"TBT\",w.value),value:w.value,navigationType:o}),R(\"dataConsumption\",h.value))}),1e4);var s=O(i);s<=a.maxTime&&s>=0&&N(n,s,r,t,o)},F=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(\"navigation\")[0]},z=function(e){if(\"loading\"===document.readyState)return\"loading\";var t=F();if(t){if(e<t.domInteractive)return\"loading\";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return\"dom-interactive\";if(0===t.domComplete||e<t.domComplete)return\"dom-content-loaded\"}return\"complete\"},K=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,\"\")},$=function(e,t){var n=\"\";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?\"#\"+r.id:K(r)+(r.className&&r.className.length?\".\"+r.className.replace(/\\\\\\\\s+/g,\".\"):\"\");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+\">\"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},Q=-1,W=function(){return Q},H=function(e){addEventListener(\"pageshow\",(function(t){t.persisted&&(Q=t.timeStamp,e(t))}),!0)},V=function(){var e=F();return e&&e.activationStart||0},J=function(e,t){var n=F(),r=\"navigate\";return W()>=0?r=\"back-forward-cache\":n&&(r=document.prerendering||V()>0?\"prerender\":document.wasDiscarded?\"restore\":n.type.replace(/_/g,\"-\")),{name:e,value:void 0===t?-1:t,rating:\"good\",delta:0,entries:[],id:\"v3-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},X=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},G=function(e,t){var n=function n(r){\"pagehide\"!==r.type&&\"hidden\"!==document.visibilityState||(e(r),t&&(removeEventListener(\"visibilitychange\",n,!0),removeEventListener(\"pagehide\",n,!0)))};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},Z=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?\"poor\":e>t[0]?\"needs-improvement\":\"good\"}(t.value,n),e(t))}},Y=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},ee=function(e){document.prerendering?addEventListener(\"prerenderingchange\",(function(){return e()}),!0):e()},te=-1,ne=function(){return\"hidden\"!==document.visibilityState||document.prerendering?1/0:0},re=function(e){\"hidden\"===document.visibilityState&&te>-1&&(te=\"visibilitychange\"===e.type?e.timeStamp:0,ae())},ie=function(){addEventListener(\"visibilitychange\",re,!0),addEventListener(\"prerenderingchange\",re,!0)},ae=function(){removeEventListener(\"visibilitychange\",re,!0),removeEventListener(\"prerenderingchange\",re,!0)},oe=function(){return te<0&&(te=ne(),ie(),H((function(){setTimeout((function(){te=ne(),ie()}),0)}))),{get firstHiddenTime(){return te}}},se=function(e,t){t=t||{},ee((function(){var n,r=[1800,3e3],i=oe(),a=J(\"FCP\"),o=X(\"paint\",(function(e){e.forEach((function(e){\"first-contentful-paint\"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-V(),0),a.entries.push(e),n(!0)))}))}));o&&(n=Z(e,a,r,t.reportAllChanges),H((function(i){a=J(\"FCP\"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,n(!0)}))})))}))},ce={passive:!0,capture:!0},ue=new Date,le=function(e,t){P||(P=t,M=e,B=new Date,me(removeEventListener),de())},de=function(){if(M>=0&&M<B-ue){var e={entryType:\"first-input\",name:P.type,target:P.target,cancelable:P.cancelable,startTime:P.timeStamp,processingStart:P.timeStamp+M};C.forEach((function(t){t(e)})),C=[]}},pe=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,t){var n=function(){le(e,t),i()},r=function(){i()},i=function(){removeEventListener(\"pointerup\",n,ce),removeEventListener(\"pointercancel\",r,ce)};addEventListener(\"pointerup\",n,ce),addEventListener(\"pointercancel\",r,ce)}(t,e):le(t,e)}},me=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(t){return e(t,pe,ce)}))},fe=0,ve=1/0,ge=0,be=function(e){e.forEach((function(e){e.interactionId&&(ve=Math.min(ve,e.interactionId),ge=Math.max(ge,e.interactionId),fe=ge?(ge-ve)/7+1:0)}))},he=function(){return D?fe:performance.interactionCount||0},we=0,ye=function(){return he()-we},Te=[],ke={},_e=function(e){var t=Te[Te.length-1],n=ke[e.interactionId];if(n||Te.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};ke[r.id]=r,Te.push(r)}Te.sort((function(e,t){return t.latency-e.latency})),Te.splice(10).forEach((function(e){delete ke[e.id]}))}},Se={},Ee=function e(t){document.prerendering?ee((function(){return e(t)})):\"complete\"!==document.readyState?addEventListener(\"load\",(function(){return e(t)}),!0):setTimeout(t,0)},xe=function(e,t){t=t||{};var n=[800,1800],r=J(\"TTFB\"),i=Z(e,r,n,t.reportAllChanges);Ee((function(){var a=F();if(a){var o=a.responseStart;if(o<=0||o>performance.now())return;r.value=Math.max(o-V(),0),r.entries=[a],i(!0),H((function(){r=J(\"TTFB\",0),(i=Z(e,r,n,t.reportAllChanges))(!0)}))}}))},Oe=function(e){e.forEach((function(e){e.identifier&&q({attribution:{identifier:e.identifier},name:\"ET\",rating:null,value:e.startTime})}))},je=function(e){e.forEach((function(e){if(a.isResourceTiming&&R(\"resourceTiming\",e),e.decodedBodySize&&e.initiatorType){var t=e.decodedBodySize/1e3;h.value[e.initiatorType]+=t,h.value.total+=t}}))},Ne=function(){!function(e,t){xe((function(e){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,r=Math.max(t.domainLookupStart-n,0),i=Math.max(t.connectStart-n,0),a=Math.max(t.requestStart-n,0);e.attribution={waitingTime:r,dnsTime:i-r,connectionTime:a-i,requestTime:e.value-a,navigationEntry:t}}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}}(e),function(e){e.value>0&&q(e)}(e)}),t)}(0,a.reportOptions.ttfb),function(e,t){!function(e,t){t=t||{},ee((function(){var e,n=[.1,.25],r=J(\"CLS\"),i=-1,a=0,o=[],s=function(e){i>-1&&function(e){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||r[0];if(n)return void(e.attribution={largestShiftTarget:$(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:z(t.startTime)})}}var r;e.attribution={}}(e),function(e){q(e)}(e)}(e)},c=function(t){t.forEach((function(t){if(!t.hadRecentInput){var n=o[0],i=o[o.length-1];a&&t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3?(a+=t.value,o.push(t)):(a=t.value,o=[t]),a>r.value&&(r.value=a,r.entries=o,e())}}))},u=X(\"layout-shift\",c);u&&(e=Z(s,r,n,t.reportAllChanges),se((function(t){i=t.value,r.value<0&&(r.value=0,e())})),G((function(){c(u.takeRecords()),e(!0)})),H((function(){a=0,i=-1,r=J(\"CLS\",0),e=Z(s,r,n,t.reportAllChanges),Y((function(){return e()}))})))}))}(0,t)}(0,a.reportOptions.cls),function(e,t){se((function(e){!function(e){if(e.entries.length){var t=F(),n=e.entries[e.entries.length-1];if(t){var r=t.activationStart||0,i=Math.max(0,t.responseStart-r);return void(e.attribution={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:z(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:z(W())}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[100,300],i=oe(),a=J(\"FID\"),o=function(e){e.startTime<i.firstHiddenTime&&(a.value=e.processingStart-e.startTime,a.entries.push(e),n(!0))},s=function(e){e.forEach(o)},c=X(\"first-input\",s);n=Z(e,a,r,t.reportAllChanges),c&&G((function(){s(c.takeRecords()),c.disconnect()}),!0),c&&H((function(){var i;a=J(\"FID\"),n=Z(e,a,r,t.reportAllChanges),C=[],M=-1,P=null,me(addEventListener),i=o,C.push(i),de()}))}))}((function(e){!function(e){var t=e.entries[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fid),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[2500,4e3],i=oe(),a=J(\"LCP\"),o=function(e){var t=e[e.length-1];if(t){var r=Math.max(t.startTime-V(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[t],n())}},s=X(\"largest-contentful-paint\",o);if(s){n=Z(e,a,r,t.reportAllChanges);var c=function(){Se[a.id]||(o(s.takeRecords()),s.disconnect(),Se[a.id]=!0,n(!0))};[\"keydown\",\"click\"].forEach((function(e){addEventListener(e,c,{once:!0,capture:!0})})),G(c,!0),H((function(i){a=J(\"LCP\"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,Se[a.id]=!0,n(!0)}))}))}}))}((function(e){!function(e){if(e.entries.length){var t=F();if(t){var n=t.activationStart||0,r=e.entries[e.entries.length-1],i=r.url&&performance.getEntriesByType(\"resource\").filter((function(e){return e.name===r.url}))[0],a=Math.max(0,t.responseStart-n),o=Math.max(a,i?(i.requestStart||i.startTime)-n:0),s=Math.max(o,i?i.responseEnd-n:0),c=Math.max(s,r?r.startTime-n:0),u={element:$(r.element),timeToFirstByte:a,resourceLoadDelay:o-a,resourceLoadTime:s-o,elementRenderDelay:c-s,navigationEntry:t,lcpEntry:r};return r.url&&(u.url=r.url),i&&(u.lcpResourceEntry=i),void(e.attribution=u)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.lcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n=[200,500];\"interactionCount\"in performance||D||(D=X(\"event\",be,{type:\"event\",buffered:!0,durationThreshold:0}));var r,i=J(\"INP\"),a=function(e){e.forEach((function(e){e.interactionId&&_e(e),\"first-input\"===e.entryType&&!Te.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&_e(e)}));var t,n=(t=Math.min(Te.length-1,Math.floor(ye()/50)),Te[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},o=X(\"event\",a,{durationThreshold:t.durationThreshold||40});r=Z(e,i,n,t.reportAllChanges),o&&(o.observe({type:\"first-input\",buffered:!0}),G((function(){a(o.takeRecords()),i.value<0&&ye()>0&&(i.value=0,i.entries=[]),r(!0)})),H((function(){Te=[],we=he(),i=J(\"INP\"),r=Z(e,i,n,t.reportAllChanges)})))}))}((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}((function(e){return q(e)}),a.reportOptions.inp),a.isResourceTiming&&S(\"resource\",je),a.isElementTiming&&S(\"element\",Oe)},Ie=function(e){var t=\"usageDetails\"in e?e.usageDetails:{};R(\"storageEstimate\",{quota:j(e.quota),usage:j(e.usage),caches:j(t.caches),indexedDB:j(t.indexedDB),serviceWorker:j(t.serviceWorkerRegistrations)})},Pe={finalMarkToStepsMap:{},startMarkToStepsMap:{},active:{},navigationSteps:{}},Me=function(e){delete Pe.active[e]},Be=function(){return Pe.navigationSteps},Ce=function(e){var t;return null!==(t=Be()[e])&&void 0!==t?t:{}},De=function(e,t,n){var r=\"step.\"+e,i=u.getEntriesByName(p+t).length>0;if(u.getEntriesByName(p+n).length>0&&a.steps){var o=A[a.steps[e].threshold],s=o.maxOutlierThreshold,c=o.vitalsThresholds;if(i){var l=u.measure(r,p+t,p+n),d=l.duration;if(d<=s){var m=function(e,t){return e<=t[0]?\"good\":e<=t[1]?\"needsImprovement\":\"poor\"}(d,c);d>=0&&(N(\"userJourneyStep\",d,m,{stepName:e},void 0),u.measure(\"step.\".concat(e,\"_vitals_\").concat(m),{start:l.startTime+l.duration,end:l.startTime+l.duration,detail:{type:\"stepVital\",duration:d}}))}}}},Ae=function(){var e=Be(),t=Pe.startMarkToStepsMap,n=Object.keys(e).length;if(0===n)return{};var r={},i=n-1,a=Ce(i);if(Object.keys(a).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))})),n>1){var o=Ce(i-1);Object.keys(o).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))}))}return r},Le=function(){var e,t=Object.keys(Pe.navigationSteps).length;Pe.navigationSteps[t]={};var n=Ae();null===(e=a.onMarkStep)||void 0===e||e.call(a,\"\",Object.keys(n))},Ue=function(e){var t,n,r,i,o,s,c;if(Pe.finalMarkToStepsMap[e]){!function(e){var t=Pe.navigationSteps,n=Pe.finalMarkToStepsMap,r=Object.keys(t).length;if(0!==r){var i=r-1,a=Ce(i);if(a&&n[e]){var o=n[e];o&&Object.keys(o).forEach((function(e){if(a[e]){var n=Ce(i)||{};n[e]=!1,t[i]=n}if(r>1){var o=i-1,s=Ce(o);s[e]&&(s[e]=!1,t[o]=s)}}))}}}(e);var u=Pe.finalMarkToStepsMap[e];Object.keys(u).forEach((function(t){var n=u[t];n.forEach(Me),Promise.all(n.map((function(n){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{o(r.next(e))}catch(e){t(e)}}function a(e){try{o(r.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}o((r=r.apply(undefined,[])).next())}))}(0,0,void 0,(function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},\"function\"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError(\"Generator is already executing.\");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(r){switch(r.label){case 0:return[4,De(n,t,e)];case 1:return r.sent(),[2]}}))}))}))).catch((function(){}))}))}else r=e,i=Pe.navigationSteps,o=Object.keys(i).length,(c=Ce(s=(o>0?o:1)-1)||[])[r]=!0,i[s]=c,function(e){var t,n=null!==(t=Pe.startMarkToStepsMap[e])&&void 0!==t?t:[];Object.keys(n).forEach((function(e){Pe.active[e]||(Pe.active[e]=!0)}))}(e);if(a.enableNavigationTracking){var l=Ae();null===(t=a.onMarkStep)||void 0===t||t.call(a,e,Object.keys(l))}else null===(n=a.onMarkStep)||void 0===n||n.call(a,e,Object.keys(Pe.active))},Re=function(e){u.mark(p+e),Ue(e)},qe=function(e){0===u.getEntriesByName(p+e).length&&(u.mark(p+e),Ue(e))},Fe=0,ze=function(){function e(e){if(void 0===e&&(e={}),this.v=\"9.0.0-rc.3\",a.analyticsTracker=e.analyticsTracker,a.isResourceTiming=!!e.resourceTiming,a.isElementTiming=!!e.elementTiming,a.maxTime=e.maxMeasureTime||a.maxTime,a.reportOptions=e.reportOptions||a.reportOptions,a.steps=e.steps,a.onMarkStep=e.onMarkStep,a.enableNavigationTracking=e.enableNavigationTracking,m()){\"PerformanceObserver\"in o&&Ne(),void 0!==document.hidden&&document.addEventListener(\"visibilitychange\",_);var t=function(){if(!m())return{};var e=u.getEntriesByType(\"navigation\")[0];if(!e)return{};var t=e.responseStart,n=e.responseEnd;return{fetchTime:n-e.fetchStart,workerTime:e.workerStart>0?n-e.workerStart:0,totalTime:n-e.requestStart,downloadTime:n-t,timeToFirstByte:t-e.requestStart,headerSize:e.transferSize-e.encodedBodySize||0,dnsLookupTime:e.domainLookupEnd-e.domainLookupStart,redirectTime:e.redirectEnd-e.redirectStart}}();R(\"navigationTiming\",t),t.redirectTime&&q({attribution:{},name:\"RT\",rating:U(\"RT\",t.redirectTime),value:t.redirectTime}),R(\"networkInformation\",function(){if(\"connection\"in c){var e=c.connection;return\"object\"!=typeof e?{}:(f=e.effectiveType,v=!!e.saveData,{downlink:e.downlink,effectiveType:e.effectiveType,rtt:e.rtt,saveData:!!e.saveData})}return{}}()),c&&c.storage&&\"function\"==typeof c.storage.estimate&&c.storage.estimate().then(Ie),a.steps&&a.steps&&(Pe.startMarkToStepsMap={},Pe.finalMarkToStepsMap={},Pe.active={},Pe.navigationSteps={},Object.entries(a.steps).forEach((function(e){var t,n,r=e[0],i=e[1].marks,a=i[0],o=i[1],s=null!==(n=Pe.startMarkToStepsMap[a])&&void 0!==n?n:{};if(s[r]=!0,Pe.startMarkToStepsMap[a]=s,Pe.finalMarkToStepsMap[o]){var c=Pe.finalMarkToStepsMap[o][a]||[];c.push(r),Pe.finalMarkToStepsMap[o][a]=c}else Pe.finalMarkToStepsMap[o]=((t={})[a]=[r],t)})))}}return e.prototype.start=function(e){m()&&!g[e]&&(g[e]=!0,u.mark(\"mark_\".concat(e,\"_start\")))},e.prototype.end=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!0),m()&&g[e]){u.mark(\"mark_\".concat(e,\"_end\")),delete g[e];var r=function(e){u.measure(e,\"mark_\".concat(e,\"_start\"),\"mark_\".concat(e,\"_end\"));var t=u.getEntriesByName(e).pop();return t&&\"measure\"===t.entryType?t.duration:-1}(e);n&&R(e,O(r),t)}},e.prototype.endPaint=function(e,t){var n=this;setTimeout((function(){n.end(e,t)}))},e.prototype.clear=function(e){delete g[e],u.clearMarks&&(u.clearMarks(\"mark_\".concat(e,\"_start\")),u.clearMarks(\"mark_\".concat(e,\"_end\")))},e.prototype.markNTBT=function(){var e=this;this.start(\"ntbt\"),y.value=0,clearTimeout(Fe),Fe=setTimeout((function(){e.end(\"ntbt\",{},!1),q({attribution:{},name:\"NTBT\",rating:U(\"NTBT\",y.value),value:y.value}),y.value=0}),2e3)},e}()},426:(e,t)=>{\"use strict\";Symbol.for(\"react.element\"),Symbol.for(\"react.portal\"),Symbol.for(\"react.fragment\"),Symbol.for(\"react.strict_mode\"),Symbol.for(\"react.profiler\"),Symbol.for(\"react.provider\"),Symbol.for(\"react.context\"),Symbol.for(\"react.forward_ref\"),Symbol.for(\"react.suspense\"),Symbol.for(\"react.memo\"),Symbol.for(\"react.lazy\"),Symbol.iterator;var n={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r=Object.assign,i={};function a(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}function o(){}function s(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(\"object\"!=typeof e&&\"function\"!=typeof e&&null!=e)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,t,\"setState\")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},o.prototype=a.prototype;var c=s.prototype=new o;c.constructor=s,r(c,a.prototype),c.isPureReactComponent=!0;Array.isArray,Object.prototype.hasOwnProperty;var u={current:null};t.useCallback=function(e,t){return u.current.useCallback(e,t)},t.useEffect=function(e,t){return u.current.useEffect(e,t)},t.useRef=function(e){return u.current.useRef(e)}},784:(e,t,n)=>{\"use strict\";e.exports=n(426)},353:function(e,t,n){var r;!function(i,a){\"use strict\";var o=\"function\",s=\"undefined\",c=\"object\",u=\"string\",l=\"major\",d=\"model\",p=\"name\",m=\"type\",f=\"vendor\",v=\"version\",g=\"architecture\",b=\"console\",h=\"mobile\",w=\"tablet\",y=\"smarttv\",T=\"wearable\",k=\"embedded\",_=\"Amazon\",S=\"Apple\",E=\"ASUS\",x=\"BlackBerry\",O=\"Browser\",j=\"Chrome\",N=\"Firefox\",I=\"Google\",P=\"Huawei\",M=\"LG\",B=\"Microsoft\",C=\"Motorola\",D=\"Opera\",A=\"Samsung\",L=\"Sharp\",U=\"Sony\",R=\"Xiaomi\",q=\"Zebra\",F=\"Facebook\",z=\"Chromium OS\",K=\"Mac OS\",$=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Q=function(e,t){return typeof e===u&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===u)return e=e.replace(/^\\\\\\\\s\\\\\\\\s*/,\"\"),typeof t===s?e:e.substring(0,350)},V=function(e,t){for(var n,r,i,s,u,l,d=0;d<t.length&&!u;){var p=t[d],m=t[d+1];for(n=r=0;n<p.length&&!u&&p[n];)if(u=p[n++].exec(e))for(i=0;i<m.length;i++)l=u[++r],typeof(s=m[i])===c&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):a:this[s[0]]=l?s[1].call(this,l,s[2]):a:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):a):this[s]=l||a;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Q(t[n][r],e))return\"?\"===n?a:n}else if(Q(t[n],e))return\"?\"===n?a:n;return e},X={ME:\"4.90\",\"NT 3.11\":\"NT3.51\",\"NT 4.0\":\"NT4.0\",2e3:\"NT 5.0\",XP:[\"NT 5.1\",\"NT 5.2\"],Vista:\"NT 6.0\",7:\"NT 6.1\",8:\"NT 6.2\",8.1:\"NT 6.3\",10:[\"NT 6.4\",\"NT 10.0\"],RT:\"ARM\"},G={browser:[[/\\\\\\\\b(?:crmo|crios)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Chrome\"]],[/edg(?:e|ios|a)?\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Edge\"]],[/(opera mini)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(opera [mobiletab]{3,6})\\\\\\\\b.+version\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(opera)(?:.+version\\\\\\\\/|[\\\\\\\\/ ]+)([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/opios[\\\\\\\\/ ]+([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Mini\"]],[/\\\\\\\\bopr\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D]],[/(kindle)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(ba?idubrowser)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i,/(?:ms|\\\\\\\\()(ie) ([\\\\\\\\w\\\\\\\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(heytap|ovi)browser\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i,/(weibo)__([\\\\\\\\d\\\\\\\\.]+)/i],[p,v],[/(?:\\\\\\\\buc? ?browser|(?:juc.+)ucweb)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"UC\"+O]],[/microm.+\\\\\\\\bqbcore\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\bqbcore\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+).+microm/i],[v,[p,\"WeChat(Win) Desktop\"]],[/micromessenger\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"WeChat\"]],[/konqueror\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Konqueror\"]],[/trident.+rv[: ]([\\\\\\\\w\\\\\\\\.]{1,9})\\\\\\\\b.+like gecko/i],[v,[p,\"IE\"]],[/ya(?:search)?browser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Yandex\"]],[/(avast|avg)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/(.+)/,\"$1 Secure \"+O],v],[/\\\\\\\\bfocus\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N+\" Focus\"]],[/\\\\\\\\bopt\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Touch\"]],[/coc_coc\\\\\\\\w+\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Coc Coc\"]],[/dolfin\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Dolphin\"]],[/coast\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Coast\"]],[/miuibrowser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"MIUI \"+O]],[/fxios\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N]],[/\\\\\\\\bqihu|(qi?ho?o?|360)browser/i],[[p,\"360 \"+O]],[/(oculus|samsung|sailfish|huawei)browser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/(.+)/,\"$1 \"+O],v],[/(comodo_dragon)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/_/g,\" \"],v],[/(electron)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\\\\\\\/(20\\\\\\\\d\\\\\\\\d\\\\\\\\.[-\\\\\\\\w\\\\\\\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/(metasr)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i,/(lbbrowser)/i,/\\\\\\\\[(linkedin)app\\\\\\\\]/i],[p],[/((?:fban\\\\\\\\/fbios|fb_iab\\\\\\\\/fb4a)(?!.+fbav)|;fbav\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+);)/i],[[p,F],v],[/(kakao(?:talk|story))[\\\\\\\\/ ]([\\\\\\\\w\\\\\\\\.]+)/i,/(naver)\\\\\\\\(.*?(\\\\\\\\d+\\\\\\\\.[\\\\\\\\w\\\\\\\\.]+).*\\\\\\\\)/i,/safari (line)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\b(line)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\/iab/i,/(chromium|instagram)[\\\\\\\\/ ]([-\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/\\\\\\\\bgsa\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) .*safari\\\\\\\\//i],[v,[p,\"GSA\"]],[/musical_ly(?:.+app_?version\\\\\\\\/|_)([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"TikTok\"]],[/headlesschrome(?:\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)| )/i],[v,[p,j+\" Headless\"]],[/ wv\\\\\\\\).+(chrome)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,j+\" WebView\"],v],[/droid.+ version\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b.+(?:mobile safari|safari)/i],[v,[p,\"Android \"+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\\\\\\\/v?([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/version\\\\\\\\/([\\\\\\\\w\\\\\\\\.\\\\\\\\,]+) .*mobile\\\\\\\\/\\\\\\\\w+ (safari)/i],[v,[p,\"Mobile Safari\"]],[/version\\\\\\\\/([\\\\\\\\w(\\\\\\\\.|\\\\\\\\,)]+) .*(mobile ?safari|safari)/i],[v,p],[/webkit.+?(mobile ?safari|safari)(\\\\\\\\/[\\\\\\\\w\\\\\\\\.]+)/i],[p,[v,J,{\"1.0\":\"/8\",1.2:\"/1\",1.3:\"/3\",\"2.0\":\"/412\",\"2.0.2\":\"/416\",\"2.0.3\":\"/417\",\"2.0.4\":\"/419\",\"?\":\"/\"}]],[/(webkit|khtml)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/(navigator|netscape\\\\\\\\d?)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i],[[p,\"Netscape\"],v],[/mobile vr; rv:([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\).+firefox/i],[v,[p,N+\" Reality\"]],[/ekiohf.+(flow)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.\\\\\\\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)$/i,/(firefox)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(mozilla)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) .+rv\\\\\\\\:.+gecko\\\\\\\\/\\\\\\\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\\\\\\\. ]?browser)[-\\\\\\\\/ ]?v?([\\\\\\\\w\\\\\\\\.]+)/i,/(links) \\\\\\\\(([\\\\\\\\w\\\\\\\\.]+)/i,/panasonic;(viera)/i],[p,v],[/(cobalt)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[p,[v,/master.|lts./,\"\"]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\\\\\\\)]/i],[[g,\"amd64\"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\\\\\\\\)]/i],[[g,\"ia32\"]],[/\\\\\\\\b(aarch64|arm(v?8e?l?|_?64))\\\\\\\\b/i],[[g,\"arm64\"]],[/\\\\\\\\b(arm(?:v[67])?ht?n?[fl]p?)\\\\\\\\b/i],[[g,\"armhf\"]],[/windows (ce|mobile); ppc;/i],[[g,\"arm\"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\\\\\\\))/i],[[g,/ower/,\"\",W]],[/(sun4\\\\\\\\w)[;\\\\\\\\)]/i],[[g,\"sparc\"]],[/((?:avr32|ia64(?=;))|68k(?=\\\\\\\\))|\\\\\\\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\\\\\\\b|pa-risc)/i],[[g,W]]],device:[[/\\\\\\\\b(sch-i[89]0\\\\\\\\d|shw-m380s|sm-[ptx]\\\\\\\\w{2,4}|gt-[pn]\\\\\\\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,A],[m,w]],[/\\\\\\\\b((?:s[cgp]h|gt|sm)-\\\\\\\\w+|sc[g-]?[\\\\\\\\d]+a?|galaxy nexus)/i,/samsung[- ]([-\\\\\\\\w]+)/i,/sec-(sgh\\\\\\\\w+)/i],[d,[f,A],[m,h]],[/(?:\\\\\\\\/|\\\\\\\\()(ip(?:hone|od)[\\\\\\\\w, ]*)(?:\\\\\\\\/|;)/i],[d,[f,S],[m,h]],[/\\\\\\\\((ipad);[-\\\\\\\\w\\\\\\\\),; ]+apple/i,/applecoremedia\\\\\\\\/[\\\\\\\\w\\\\\\\\.]+ \\\\\\\\((ipad)/i,/\\\\\\\\b(ipad)\\\\\\\\d\\\\\\\\d?,\\\\\\\\d\\\\\\\\d?[;\\\\\\\\]].+ios/i],[d,[f,S],[m,w]],[/(macintosh);/i],[d,[f,S]],[/\\\\\\\\b(sh-?[altvz]?\\\\\\\\d\\\\\\\\d[a-ekm]?)/i],[d,[f,L],[m,h]],[/\\\\\\\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\\\\\\\d{2})\\\\\\\\b(?!.+d\\\\\\\\/s)/i],[d,[f,P],[m,w]],[/(?:huawei|honor)([-\\\\\\\\w ]+)[;\\\\\\\\)]/i,/\\\\\\\\b(nexus 6p|\\\\\\\\w{2,4}e?-[atu]?[ln][\\\\\\\\dx][012359c][adn]?)\\\\\\\\b(?!.+d\\\\\\\\/s)/i],[d,[f,P],[m,h]],[/\\\\\\\\b(poco[\\\\\\\\w ]+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b; (\\\\\\\\w+) build\\\\\\\\/hm\\\\\\\\1/i,/\\\\\\\\b(hm[-_ ]?note?[_ ]?(?:\\\\\\\\d\\\\\\\\w)?) bui/i,/\\\\\\\\b(redmi[\\\\\\\\-_ ]?(?:note|k)?[\\\\\\\\w_ ]+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b(mi[-_ ]?(?:a\\\\\\\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\\\\\\\d?\\\\\\\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\\\\\\\))/i],[[d,/_/g,\" \"],[f,R],[m,h]],[/\\\\\\\\b(mi[-_ ]?(?:pad)(?:[\\\\\\\\w_ ]+))(?: bui|\\\\\\\\))/i],[[d,/_/g,\" \"],[f,R],[m,w]],[/; (\\\\\\\\w+) bui.+ oppo/i,/\\\\\\\\b(cph[12]\\\\\\\\d{3}|p(?:af|c[al]|d\\\\\\\\w|e[ar])[mt]\\\\\\\\d0|x9007|a101op)\\\\\\\\b/i],[d,[f,\"OPPO\"],[m,h]],[/vivo (\\\\\\\\w+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b(v[12]\\\\\\\\d{3}\\\\\\\\w?[at])(?: bui|;)/i],[d,[f,\"Vivo\"],[m,h]],[/\\\\\\\\b(rmx[12]\\\\\\\\d{3})(?: bui|;|\\\\\\\\))/i],[d,[f,\"Realme\"],[m,h]],[/\\\\\\\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\\\\\\\b[\\\\\\\\w ]+build\\\\\\\\//i,/\\\\\\\\bmot(?:orola)?[- ](\\\\\\\\w*)/i,/((?:moto[\\\\\\\\w\\\\\\\\(\\\\\\\\) ]+|xt\\\\\\\\d{3,4}|nexus 6)(?= bui|\\\\\\\\)))/i],[d,[f,C],[m,h]],[/\\\\\\\\b(mz60\\\\\\\\d|xoom[2 ]{0,2}) build\\\\\\\\//i],[d,[f,C],[m,w]],[/((?=lg)?[vl]k\\\\\\\\-?\\\\\\\\d{3}) bui| 3\\\\\\\\.[-\\\\\\\\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,M],[m,w]],[/(lm(?:-?f100[nv]?|-[\\\\\\\\w\\\\\\\\.]+)(?= bui|\\\\\\\\))|nexus [45])/i,/\\\\\\\\blg[-e;\\\\\\\\/ ]+((?!browser|netcast|android tv)\\\\\\\\w+)/i,/\\\\\\\\blg-?([\\\\\\\\d\\\\\\\\w]+) bui/i],[d,[f,M],[m,h]],[/(ideatab[-\\\\\\\\w ]+)/i,/lenovo ?(s[56]000[-\\\\\\\\w]+|tab(?:[\\\\\\\\w ]+)|yt[-\\\\\\\\d\\\\\\\\w]{6}|tb[-\\\\\\\\d\\\\\\\\w]{6})/i],[d,[f,\"Lenovo\"],[m,w]],[/(?:maemo|nokia).*(n900|lumia \\\\\\\\d+)/i,/nokia[-_ ]?([-\\\\\\\\w\\\\\\\\.]*)/i],[[d,/_/g,\" \"],[f,\"Nokia\"],[m,h]],[/(pixel c)\\\\\\\\b/i],[d,[f,I],[m,w]],[/droid.+; (pixel[\\\\\\\\daxl ]{0,6})(?: bui|\\\\\\\\))/i],[d,[f,I],[m,h]],[/droid.+ (a?\\\\\\\\d[0-2]{2}so|[c-g]\\\\\\\\d{4}|so[-gl]\\\\\\\\w+|xq-a\\\\\\\\w[4-7][12])(?= bui|\\\\\\\\).+chrome\\\\\\\\/(?![1-6]{0,1}\\\\\\\\d\\\\\\\\.))/i],[d,[f,U],[m,h]],[/sony tablet [ps]/i,/\\\\\\\\b(?:sony)?sgp\\\\\\\\w+(?: bui|\\\\\\\\))/i],[[d,\"Xperia Tablet\"],[f,U],[m,w]],[/ (kb2005|in20[12]5|be20[12][59])\\\\\\\\b/i,/(?:one)?(?:plus)? (a\\\\\\\\d0\\\\\\\\d\\\\\\\\d)(?: b|\\\\\\\\))/i],[d,[f,\"OnePlus\"],[m,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\\\\\\\))/i,/(kf[a-z]+)( bui|\\\\\\\\)).+silk\\\\\\\\//i],[d,[f,_],[m,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\\\\\\\)).+silk\\\\\\\\//i],[[d,/(.+)/g,\"Fire Phone $1\"],[f,_],[m,h]],[/(playbook);[-\\\\\\\\w\\\\\\\\),; ]+(rim)/i],[d,f,[m,w]],[/\\\\\\\\b((?:bb[a-f]|st[hv])100-\\\\\\\\d)/i,/\\\\\\\\(bb10; (\\\\\\\\w+)/i],[d,[f,x],[m,h]],[/(?:\\\\\\\\b|asus_)(transfo[prime ]{4,10} \\\\\\\\w+|eeepc|slider \\\\\\\\w+|nexus 7|padfone|p00[cj])/i],[d,[f,E],[m,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \\\\\\\\d\\\\\\\\w?)\\\\\\\\b/i],[d,[f,E],[m,h]],[/(nexus 9)/i],[d,[f,\"HTC\"],[m,w]],[/(htc)[-;_ ]{1,2}([\\\\\\\\w ]+(?=\\\\\\\\)| bui)|\\\\\\\\w+)/i,/(zte)[- ]([\\\\\\\\w ]+?)(?: bui|\\\\\\\\/|\\\\\\\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\\\\\\\.))|sony(?!-bra))[-_ ]?([-\\\\\\\\w]*)/i],[f,[d,/_/g,\" \"],[m,h]],[/droid.+; ([ab][1-7]-?[0178a]\\\\\\\\d\\\\\\\\d?)/i],[d,[f,\"Acer\"],[m,w]],[/droid.+; (m[1-5] note) bui/i,/\\\\\\\\bmz-([-\\\\\\\\w]{2,})/i],[d,[f,\"Meizu\"],[m,h]],[/(blackberry|benq|palm(?=\\\\\\\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\\\\\\\w]*)/i,/(hp) ([\\\\\\\\w ]+\\\\\\\\w)/i,/(asus)-?(\\\\\\\\w+)/i,/(microsoft); (lumia[\\\\\\\\w ]+)/i,/(lenovo)[-_ ]?([-\\\\\\\\w]+)/i,/(jolla)/i,/(oppo) ?([\\\\\\\\w ]+) bui/i],[f,d,[m,h]],[/(kobo)\\\\\\\\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(nook)[\\\\\\\\w ]+build\\\\\\\\/(\\\\\\\\w+)/i,/(dell) (strea[kpr\\\\\\\\d ]*[\\\\\\\\dko])/i,/(le[- ]+pan)[- ]+(\\\\\\\\w{1,9}) bui/i,/(trinity)[- ]*(t\\\\\\\\d{3}) bui/i,/(gigaset)[- ]+(q\\\\\\\\w{1,9}) bui/i,/(vodafone) ([\\\\\\\\w ]+)(?:\\\\\\\\)| bui)/i],[f,d,[m,w]],[/(surface duo)/i],[d,[f,B],[m,w]],[/droid [\\\\\\\\d\\\\\\\\.]+; (fp\\\\\\\\du?)(?: b|\\\\\\\\))/i],[d,[f,\"Fairphone\"],[m,h]],[/(u304aa)/i],[d,[f,\"AT&T\"],[m,h]],[/\\\\\\\\bsie-(\\\\\\\\w*)/i],[d,[f,\"Siemens\"],[m,h]],[/\\\\\\\\b(rct\\\\\\\\w+) b/i],[d,[f,\"RCA\"],[m,w]],[/\\\\\\\\b(venue[\\\\\\\\d ]{2,7}) b/i],[d,[f,\"Dell\"],[m,w]],[/\\\\\\\\b(q(?:mv|ta)\\\\\\\\w+) b/i],[d,[f,\"Verizon\"],[m,w]],[/\\\\\\\\b(?:barnes[& ]+noble |bn[rt])([\\\\\\\\w\\\\\\\\+ ]*) b/i],[d,[f,\"Barnes & Noble\"],[m,w]],[/\\\\\\\\b(tm\\\\\\\\d{3}\\\\\\\\w+) b/i],[d,[f,\"NuVision\"],[m,w]],[/\\\\\\\\b(k88) b/i],[d,[f,\"ZTE\"],[m,w]],[/\\\\\\\\b(nx\\\\\\\\d{3}j) b/i],[d,[f,\"ZTE\"],[m,h]],[/\\\\\\\\b(gen\\\\\\\\d{3}) b.+49h/i],[d,[f,\"Swiss\"],[m,h]],[/\\\\\\\\b(zur\\\\\\\\d{3}) b/i],[d,[f,\"Swiss\"],[m,w]],[/\\\\\\\\b((zeki)?tb.*\\\\\\\\b) b/i],[d,[f,\"Zeki\"],[m,w]],[/\\\\\\\\b([yr]\\\\\\\\d{2}) b/i,/\\\\\\\\b(dragon[- ]+touch |dt)(\\\\\\\\w{5}) b/i],[[f,\"Dragon Touch\"],d,[m,w]],[/\\\\\\\\b(ns-?\\\\\\\\w{0,9}) b/i],[d,[f,\"Insignia\"],[m,w]],[/\\\\\\\\b((nxa|next)-?\\\\\\\\w{0,9}) b/i],[d,[f,\"NextBook\"],[m,w]],[/\\\\\\\\b(xtreme\\\\\\\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,\"Voice\"],d,[m,h]],[/\\\\\\\\b(lvtel\\\\\\\\-)?(v1[12]) b/i],[[f,\"LvTel\"],d,[m,h]],[/\\\\\\\\b(ph-1) /i],[d,[f,\"Essential\"],[m,h]],[/\\\\\\\\b(v(100md|700na|7011|917g).*\\\\\\\\b) b/i],[d,[f,\"Envizen\"],[m,w]],[/\\\\\\\\b(trio[-\\\\\\\\w\\\\\\\\. ]+) b/i],[d,[f,\"MachSpeed\"],[m,w]],[/\\\\\\\\btu_(1491) b/i],[d,[f,\"Rotor\"],[m,w]],[/(shield[\\\\\\\\w ]+) b/i],[d,[f,\"Nvidia\"],[m,w]],[/(sprint) (\\\\\\\\w+)/i],[f,d,[m,h]],[/(kin\\\\\\\\.[onetw]{3})/i],[[d,/\\\\\\\\./g,\" \"],[f,B],[m,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\\\\\\\)/i],[d,[f,q],[m,w]],[/droid.+; (ec30|ps20|tc[2-8]\\\\\\\\d[kx])\\\\\\\\)/i],[d,[f,q],[m,h]],[/smart-tv.+(samsung)/i],[f,[m,y]],[/hbbtv.+maple;(\\\\\\\\d+)/i],[[d,/^/,\"SmartTV\"],[f,A],[m,y]],[/(nux; netcast.+smarttv|lg (netcast\\\\\\\\.tv-201\\\\\\\\d|android tv))/i],[[f,M],[m,y]],[/(apple) ?tv/i],[f,[d,S+\" TV\"],[m,y]],[/crkey/i],[[d,j+\"cast\"],[f,I],[m,y]],[/droid.+aft(\\\\\\\\w)( bui|\\\\\\\\))/i],[d,[f,_],[m,y]],[/\\\\\\\\(dtv[\\\\\\\\);].+(aquos)/i,/(aquos-tv[\\\\\\\\w ]+)\\\\\\\\)/i],[d,[f,L],[m,y]],[/(bravia[\\\\\\\\w ]+)( bui|\\\\\\\\))/i],[d,[f,U],[m,y]],[/(mitv-\\\\\\\\w{5}) bui/i],[d,[f,R],[m,y]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[m,y]],[/\\\\\\\\b(roku)[\\\\\\\\dx]*[\\\\\\\\)\\\\\\\\/]((?:dvp-)?[\\\\\\\\d\\\\\\\\.]*)/i,/hbbtv\\\\\\\\/\\\\\\\\d+\\\\\\\\.\\\\\\\\d+\\\\\\\\.\\\\\\\\d+ +\\\\\\\\([\\\\\\\\w\\\\\\\\+ ]*; *([\\\\\\\\w\\\\\\\\d][^;]*);([^;]*)/i],[[f,H],[d,H],[m,y]],[/\\\\\\\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\\\\\\\b/i],[[m,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[m,b]],[/droid.+; (shield) bui/i],[d,[f,\"Nvidia\"],[m,b]],[/(playstation [345portablevi]+)/i],[d,[f,U],[m,b]],[/\\\\\\\\b(xbox(?: one)?(?!; xbox))[\\\\\\\\); ]/i],[d,[f,B],[m,b]],[/((pebble))app/i],[f,d,[m,T]],[/(watch)(?: ?os[,\\\\\\\\/]|\\\\\\\\d,\\\\\\\\d\\\\\\\\/)[\\\\\\\\d\\\\\\\\.]+/i],[d,[f,S],[m,T]],[/droid.+; (glass) \\\\\\\\d/i],[d,[f,I],[m,T]],[/droid.+; (wt63?0{2,3})\\\\\\\\)/i],[d,[f,q],[m,T]],[/(quest( 2| pro)?)/i],[d,[f,F],[m,T]],[/(tesla)(?: qtcarbrowser|\\\\\\\\/[-\\\\\\\\w\\\\\\\\.]+)/i],[f,[m,k]],[/(aeobc)\\\\\\\\b/i],[d,[f,_],[m,k]],[/droid .+?; ([^;]+?)(?: bui|\\\\\\\\) applew).+? mobile safari/i],[d,[m,h]],[/droid .+?; ([^;]+?)(?: bui|\\\\\\\\) applew).+?(?! mobile) safari/i],[d,[m,w]],[/\\\\\\\\b((tablet|tab)[;\\\\\\\\/]|focus\\\\\\\\/\\\\\\\\d(?!.+mobile))/i],[[m,w]],[/(phone|mobile(?:[;\\\\\\\\/]| [ \\\\\\\\w\\\\\\\\/\\\\\\\\.]*safari)|pda(?=.+windows ce))/i],[[m,h]],[/(android[-\\\\\\\\w\\\\\\\\. ]{0,9});.+buil/i],[d,[f,\"Generic\"]]],engine:[[/windows.+ edge\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"EdgeHTML\"]],[/webkit\\\\\\\\/537\\\\\\\\.36.+chrome\\\\\\\\/(?!27)([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Blink\"]],[/(presto)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/ekioh(flow)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(khtml|tasman|links)[\\\\\\\\/ ]\\\\\\\\(?([\\\\\\\\w\\\\\\\\.]+)/i,/(icab)[\\\\\\\\/ ]([23]\\\\\\\\.[\\\\\\\\d\\\\\\\\.]+)/i,/\\\\\\\\b(libweb)/i],[p,v],[/rv\\\\\\\\:([\\\\\\\\w\\\\\\\\.]{1,9})\\\\\\\\b.+(gecko)/i],[v,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,v],[/(windows) nt 6\\\\\\\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\\\\\\\/ ]?([\\\\\\\\d\\\\\\\\.\\\\\\\\w ]*)/i,/(windows)[\\\\\\\\/ ]?([ntce\\\\\\\\d\\\\\\\\. ]+\\\\\\\\w)(?!.+xbox)/i],[p,[v,J,X]],[/(win(?=3|9|n)|win 9x )([nt\\\\\\\\d\\\\\\\\.]+)/i],[[p,\"Windows\"],[v,J,X]],[/ip[honead]{2,4}\\\\\\\\b(?:.*os ([\\\\\\\\w]+) like mac|; opera)/i,/ios;fbsv\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i,/cfnetwork\\\\\\\\/.+darwin/i],[[v,/_/g,\".\"],[p,\"iOS\"]],[/(mac os x) ?([\\\\\\\\w\\\\\\\\. ]*)/i,/(macintosh|mac_powerpc\\\\\\\\b)(?!.+haiku)/i],[[p,K],[v,/_/g,\".\"]],[/droid ([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b.+(android[- ]x86|harmonyos)/i],[v,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(blackberry)\\\\\\\\w*\\\\\\\\/([\\\\\\\\w\\\\\\\\.]*)/i,/(tizen|kaios)[\\\\\\\\/ ]([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\((series40);/i],[p,v],[/\\\\\\\\(bb(10);/i],[v,[p,x]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i],[v,[p,\"Symbian\"]],[/mozilla\\\\\\\\/[\\\\\\\\d\\\\\\\\.]+ \\\\\\\\((?:mobile|tablet|tv|mobile; [\\\\\\\\w ]+); rv:.+ gecko\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N+\" OS\"]],[/web0s;.+rt(tv)/i,/\\\\\\\\b(?:hp)?wos(?:browser)?\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"webOS\"]],[/watch(?: ?os[,\\\\\\\\/]|\\\\\\\\d,\\\\\\\\d\\\\\\\\/)([\\\\\\\\d\\\\\\\\.]+)/i],[v,[p,\"watchOS\"]],[/crkey\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i],[v,[p,j+\"cast\"]],[/(cros) [\\\\\\\\w]+(?:\\\\\\\\)| ([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b)/i],[[p,z],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\\\\\\\/(\\\\\\\\d+\\\\\\\\.[\\\\\\\\w\\\\\\\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\\\\\\\);]+)/i,/\\\\\\\\b(joli|palm)\\\\\\\\b ?(?:os)?\\\\\\\\/?([\\\\\\\\w\\\\\\\\.]*)/i,/(mint)[\\\\\\\\/\\\\\\\\(\\\\\\\\) ]?(\\\\\\\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\\\\\\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\\\\\\\/ ]?(?!chrom|package)([-\\\\\\\\w\\\\\\\\.]*)/i,/(hurd|linux) ?([\\\\\\\\w\\\\\\\\.]*)/i,/(gnu) ?([\\\\\\\\w\\\\\\\\.]*)/i,/\\\\\\\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\\\\\\\/ ]?(?!amd|[ix346]{1,2}86)([\\\\\\\\w\\\\\\\\.]*)/i,/(haiku) (\\\\\\\\w+)/i],[p,v],[/(sunos) ?([\\\\\\\\w\\\\\\\\.\\\\\\\\d]*)/i],[[p,\"Solaris\"],v],[/((?:open)?solaris)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(aix) ((\\\\\\\\d)(?=\\\\\\\\.|\\\\\\\\)| )[\\\\\\\\w\\\\\\\\.])*/i,/\\\\\\\\b(beos|os\\\\\\\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\\\\\\\w\\\\\\\\.]*)/i],[p,v]]},Z=function(e,t){if(typeof e===c&&(t=e,e=a),!(this instanceof Z))return new Z(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:a,r=e||(n&&n.userAgent?n.userAgent:\"\"),b=n&&n.userAgentData?n.userAgentData:a,y=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,T=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[p]=a,t[v]=a,V.call(t,r,y.browser),t[l]=typeof(e=t[v])===u?e.replace(/[^\\\\\\\\d\\\\\\\\.]/g,\"\").split(\".\")[0]:a,T&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[p]=\"Brave\"),t},this.getCPU=function(){var e={};return e[g]=a,V.call(e,r,y.cpu),e},this.getDevice=function(){var e={};return e[f]=a,e[d]=a,e[m]=a,V.call(e,r,y.device),T&&!e[m]&&b&&b.mobile&&(e[m]=h),T&&\"Macintosh\"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]=\"iPad\",e[m]=w),e},this.getEngine=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.engine),e},this.getOS=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.os),T&&!e[p]&&b&&\"Unknown\"!=b.platform&&(e[p]=b.platform.replace(/chrome os/i,z).replace(/macos/i,K)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>350?H(e,350):e,this},this.setUA(r),this};Z.VERSION=\"1.0.35\",Z.BROWSER=$([p,v,l]),Z.CPU=$([g]),Z.DEVICE=$([d,f,m,b,h,y,w,T,k]),Z.ENGINE=Z.OS=$([p,v]),typeof t!==s?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?(r=function(){return Z}.call(t,n,t,e))===a||(e.exports=r):typeof i!==s&&(i.UAParser=Z);var Y=typeof i!==s&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var ee=new Z;Y.ua=ee.getResult(),Y.ua.get=function(){return ee.getUA()},Y.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Y.ua[n]=t[n]}}}(\"object\"==typeof window?window:this)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var r={};return(()=>{\"use strict\";n.r(r),n.d(r,{ActionType:()=>f,AmplitudePlatformName:()=>g,AnalyticsEventImportance:()=>l,AnalyticsQueries:()=>e,AuthStatus:()=>b,ComponentType:()=>m,IThresholdTier:()=>Jt,MetricType:()=>d,PlatformName:()=>v,SessionActions:()=>h,SessionAutomatedEvents:()=>w,SessionRank:()=>y,SubjectType:()=>p,UserTypeCommerce:()=>c,UserTypeInsto:()=>i,UserTypeRetail:()=>t,UserTypeRetailBusinessBanking:()=>s,UserTypeRetailEmployeeInternal:()=>a,UserTypeRetailEmployeePersonal:()=>o,UserTypeWallet:()=>u,automatedEvents:()=>xn,automatedMappingConfig:()=>In,clearMarkEntry:()=>Vn,clearPerformanceMarkEntries:()=>Xn,config:()=>A,createEventConfig:()=>On,createNewSpan:()=>Ln,createNewTrace:()=>Un,device:()=>W,endPerfMark:()=>Jn,exposeExperiment:()=>wn,flushQueue:()=>or,generateUUID:()=>V,getAnalyticsHeaders:()=>sr,getReferrerData:()=>le,getTracingHeaders:()=>An,getTracingId:()=>Dn,getUrlHostname:()=>pe,getUrlParams:()=>me,getUrlPathname:()=>fe,getUserContext:()=>ar,identify:()=>Tn,identifyFlow:()=>xe,identity:()=>H,identityFlow:()=>Se,incrementUjNavigation:()=>an,init:()=>yn,initNextJsTrackPageview:()=>_n,initTrackPageview:()=>kn,isEventKeyFormatValid:()=>we,isSessionEnded:()=>pt,location:()=>re,logEvent:()=>$t,logMetric:()=>Ht,logPageView:()=>on,logTrace:()=>Rn,markNTBT:()=>tn,markStep:()=>nn,markStepOnce:()=>rn,onVisibilityChange:()=>ln,optIn:()=>En,optOut:()=>Sn,perfMark:()=>Wn,persistentData:()=>oe,postMessage:()=>K,recordSessionDuration:()=>pn,removeFromIdentifyFlow:()=>Ee,savePersistentData:()=>st,sendScheduledEvents:()=>Bt,setBreadcrumbs:()=>ie,setConfig:()=>U,setLocation:()=>ae,setPagePath:()=>ve,setPageview:()=>Kt,setPersistentData:()=>se,setSessionStart:()=>dt,setTime:()=>Ue,startPerfMark:()=>Hn,timeStone:()=>Le,useEventLogger:()=>Yn,useLogEventOnMount:()=>tr,usePerformanceMarks:()=>rr});let e=function(e){return e.fbclid=\"fbclid\",e.gclid=\"gclid\",e.msclkid=\"msclkid\",e.ptclid=\"ptclid\",e.ttclid=\"ttclid\",e.utm_source=\"utm_source\",e.utm_medium=\"utm_medium\",e.utm_campaign=\"utm_campaign\",e.utm_term=\"utm_term\",e.utm_content=\"utm_content\",e}({});const t=0,i=1,a=2,o=3,s=4,c=5,u=6;let l=function(e){return e.low=\"low\",e.high=\"high\",e}({}),d=function(e){return e.count=\"count\",e.rate=\"rate\",e.gauge=\"gauge\",e.distribution=\"distribution\",e.histogram=\"histogram\",e}({}),p=function(e){return e.commerce_merchant=\"commerce_merchant\",e.device=\"device\",e.edp_fingerprint_id=\"edp_fingerprint_id\",e.nft_user=\"nft_user\",e.user=\"user\",e.wallet_user=\"wallet_user\",e.uuid=\"user_uuid\",e}({}),m=function(e){return e.unknown=\"unknown\",e.banner=\"banner\",e.button=\"button\",e.card=\"card\",e.chart=\"chart\",e.content_script=\"content_script\",e.dropdown=\"dropdown\",e.link=\"link\",e.page=\"page\",e.modal=\"modal\",e.table=\"table\",e.search_bar=\"search_bar\",e.service_worker=\"service_worker\",e.text=\"text\",e.text_input=\"text_input\",e.tray=\"tray\",e.checkbox=\"checkbox\",e.icon=\"icon\",e}({}),f=function(e){return e.unknown=\"unknown\",e.blur=\"blur\",e.click=\"click\",e.change=\"change\",e.dismiss=\"dismiss\",e.focus=\"focus\",e.hover=\"hover\",e.select=\"select\",e.measurement=\"measurement\",e.move=\"move\",e.process=\"process\",e.render=\"render\",e.scroll=\"scroll\",e.view=\"view\",e.search=\"search\",e.keyPress=\"keyPress\",e}({}),v=function(e){return e.unknown=\"unknown\",e.web=\"web\",e.android=\"android\",e.ios=\"ios\",e.mobile_web=\"mobile_web\",e.tablet_web=\"tablet_web\",e.server=\"server\",e.windows=\"windows\",e.macos=\"macos\",e.extension=\"extension\",e}({}),g=function(e){return e.web=\"Web\",e.ios=\"iOS\",e.android=\"Android\",e}({}),b=function(e){return e[e.notLoggedIn=0]=\"notLoggedIn\",e[e.loggedIn=1]=\"loggedIn\",e}({}),h=function(e){return e.ac=\"ac\",e.af=\"af\",e.ah=\"ah\",e.al=\"al\",e.am=\"am\",e.ar=\"ar\",e.as=\"as\",e}({}),w=function(e){return e.pv=\"pv\",e}({}),y=function(e){return e.xs=\"xs\",e.s=\"s\",e.m=\"m\",e.l=\"l\",e.xl=\"xl\",e.xxl=\"xxl\",e}({});const T=\"https://analytics-service-dev.cbhq.net\",k=3e5,_=5e3,S=\"analytics-db\",E=\"experiment-exposure-db\",x=\"Analytics SDK:\",O=Object.values(e),j=\"pageview\",N=\"session_duration\",I={navigationTiming:{eventName:\"perf_navigation_timing\"},redirectTime:{eventName:\"perf_redirect_time\"},RT:{eventName:\"perf_redirect_time\"},TTFB:{eventName:\"perf_time_to_first_byte\"},networkInformation:{eventName:\"perf_network_information\"},storageEstimate:{eventName:\"perf_storage_estimate\"},FCP:{eventName:\"perf_first_contentful_paint\"},FID:{eventName:\"perf_first_input_delay\"},LCP:{eventName:\"perf_largest_contentful_paint\"},CLS:{eventName:\"perf_cumulative_layout_shift\"},TBT:{eventName:\"perf_total_blocking_time\"},NTBT:{eventName:\"perf_navigation_total_blocking_time\"},INP:{eventName:\"perf_interact_to_next_paint\"},ET:{eventName:\"perf_element_timing\"},userJourneyStep:{eventName:\"perf_user_journey_step\"}},P=\"1\",M=\"web\";function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}const C=/^(https?:\\\\\\\\/\\\\\\\\/)/;function D(e){return{eventsEndpoint:e+\"/amp\",metricsEndPoint:e+\"/metrics\",exposureEndpoint:e+\"/track-exposures\",tracesEndpoint:e+\"/traces\"}}const A=B({authCookie:\"logged_in\",amplitudeApiKey:\"\",batchEventsPeriod:_,batchEventsThreshold:30,batchMetricsPeriod:_,batchMetricsThreshold:30,batchTracesPeriod:_,batchTracesThreshold:30,headers:{},interactionManager:null,isAlwaysAuthed:!1,isProd:!1,isInternalApplication:!1,onError:(e,t)=>{console.error(x,e,t)},platform:v.unknown,projectName:\"\",ricTimeoutScheduleEvent:1e3,ricTimeoutSetDevice:500,showDebugLogging:!1,trackUserId:!1,version:null,apiEndpoint:T},D(T),{steps:{}}),L=[].reduce(((e,t)=>n=>e(t(n))),(e=>{if(!e.isProd)return e.isInternalApplication?(e.apiEndpoint=\"https://analytics-service-internal-dev.cbhq.net\",B({},e,D(e.apiEndpoint))):e;const t=(e=>e.apiEndpoint?C.test(e.apiEndpoint)?e.apiEndpoint:`https://${e.apiEndpoint}`:e.isInternalApplication?\"https://analytics-service-internal.cbhq.net\":\"https://as.coinbase.com\")(e);return B({},e,{apiEndpoint:t},D(t))})),U=e=>{const{batchEventsThreshold:t,batchMetricsThreshold:n,batchTracesThreshold:r}=e,i=[t,n,r];for(const e of i)if((e||0)>30){console.warn(\"You are setting the threshhold for the batch limit to be greater than 30. This may cause request overload.\");break}Object.assign(A,L(e))},R=[v.web,v.mobile_web,v.tablet_web];function q(){return\"android\"===A.platform}function F(){return\"ios\"===A.platform}function z(){return R.includes(A.platform)}function K(e){if(z()&&navigator&&\"serviceWorker\"in navigator&&navigator.serviceWorker.controller)try{navigator.serviceWorker.controller.postMessage(e)}catch(e){e instanceof Error&&A.onError(e)}}var $=n(353),Q=n.n($);const W={amplitudeOSName:null,amplitudeOSVersion:null,amplitudeDeviceModel:null,amplitudePlatform:null,browserName:null,browserMajor:null,osName:null,userAgent:null,width:null,height:null},H={countryCode:null,deviceId:null,device_os:null,isOptOut:!1,languageCode:null,locale:null,jwt:null,session_lcc_id:null,userAgent:null,userId:null},V=e=>e?(e^16*Math.random()>>e/4).toString(16):\"10000000-1000-4000-8000-100000000000\".replace(/[018]/g,V),J=()=>A.isAlwaysAuthed||!!H.userId,X=()=>{const e={};return H.countryCode&&(e.country_code=H.countryCode),e},G=()=>{const{platform:e}=A;if(e===v.web)switch(!0){case window.matchMedia(\"(max-width: 560px)\").matches:return v.mobile_web;case window.matchMedia(\"(max-width: 1024px, min-width: 561px)\").matches:return v.tablet_web}return e},Z=()=>{var e,t,n,r,i;z()?(\"requestIdleCallback\"in window?window.requestIdleCallback(ne,{timeout:A.ricTimeoutSetDevice}):ne(),W.amplitudePlatform=g.web,W.userAgent=(null==(e=window)||null==(e=e.navigator)?void 0:e.userAgent)||null,ee({height:null!=(t=null==(n=window)?void 0:n.innerHeight)?t:null,width:null!=(r=null==(i=window)?void 0:i.innerWidth)?r:null})):F()?(W.amplitudePlatform=g.ios,W.userAgent=H.userAgent,W.userAgent&&ne()):q()&&(W.userAgent=H.userAgent,W.amplitudePlatform=g.android,W.userAgent&&ne())},Y=e=>{Object.assign(H,e),z()&&K({identity:{isAuthed:!!H.userId,locale:H.locale||null}})},ee=e=>{W.height=e.height,W.width=e.width},te=()=>{U({platform:G()}),z()&&K({config:{platform:A.platform}})},ne=()=>{var e;performance.mark&&performance.mark(\"ua_parser_start\");const t=new(Q())(null!=(e=W.userAgent)?e:\"\").getResult();W.browserName=t.browser.name||null,W.browserMajor=t.browser.major||null,W.osName=t.os.name||null,W.amplitudeOSName=W.browserName,W.amplitudeOSVersion=W.browserMajor,W.amplitudeDeviceModel=W.osName,K({device:{browserName:W.browserName,osName:W.osName}}),performance.mark&&(performance.mark(\"ua_parser_end\"),performance.measure(\"ua_parser\",\"ua_parser_start\",\"ua_parser_end\"))},re={breadcrumbs:[],initialUAAData:{},pageKey:\"\",pageKeyRegex:{},pagePath:\"\",prevPageKey:\"\",prevPagePath:\"\"};function ie(e){Object.assign(re,{breadcrumbs:e})}function ae(e){Object.assign(re,e)}const oe={eventId:0,sequenceNumber:0,sessionId:0,lastEventTime:0,sessionStart:0,sessionUUID:null,userId:null,ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0};function se(e){Object.assign(oe,e)}function ce(){var e,t;return null!=(e=null==(t=document)?void 0:t.referrer)?e:\"\"}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue.apply(this,arguments)}const le=()=>{const e=ce();if(!e)return{};const t=new URL(e);return t.hostname===pe()?{}:{referrer:e,referring_domain:t.hostname}},de=()=>{const e=new URLSearchParams(me()),t={};return O.forEach((n=>{e.has(n)&&(t[n]=(e.get(n)||\"\").toLowerCase())})),t},pe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.hostname)||\"\"},me=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.search)||\"\"},fe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.pathname)||\"\"},ve=()=>{const e=A.overrideWindowLocation?re.pagePath:fe()+me();e&&e!==re.pagePath&&(e!==re.pagePath&&ge(),re.pagePath=e,re.pageKeyRegex&&Object.keys(re.pageKeyRegex).some((e=>{if(re.pageKeyRegex[e].test(re.pagePath))return re.pageKey=e,!0})))},ge=()=>{if(z()){const e=ce();if(!re.prevPagePath&&e){const t=new URL(e);if(t.hostname===pe())return void(re.prevPagePath=t.pathname)}}re.prevPagePath=re.pagePath,re.prevPageKey=re.pageKey},be=e=>{z()&&Object.assign(e,z()?(Object.keys(re.initialUAAData).length>0||(new URLSearchParams(me()),re.initialUAAData=ue({},(()=>{const e={};return O.forEach((t=>{oe[t]&&(e[t]=oe[t])})),e})(),de(),le())),re.initialUAAData):re.initialUAAData)},he=/^[a-zd]+(_[a-zd]+)*$/;function we(e){return he.test(e)}function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}const Te=[\"action\",\"component_type\",\"component_name\",\"context\",\"logging_id\"],ke=[\"num_non_hardware_accounts\",\"ujs\"],_e=\"ujs_\",Se={};function Ee(e){e.forEach((e=>{ke.includes(e)&&delete Se[e]}))}function xe(e){var t;const n=Object.entries(e).reduce(((e,t)=>{const[n,r]=t;return!Te.includes(n)&&ke.includes(n)?we(n)?ye({},e,{[n]:r}):(A.onError(new Error(\"IdentityFlow property names must have snake case format\"),{[n]:r}),e):e}),{});null!=(t=n.ujs)&&t.length&&(n.ujs=n.ujs.map((e=>`${_e}${e}`))),Object.assign(Se,n)}function Oe(){return A.platform!==v.unknown||(A.onError(new Error(\"SDK platform not initialized\")),!1)}const je={eventsQueue:[],eventsScheduled:!1,metricsQueue:[],metricsScheduled:!1,tracesQueue:[],tracesScheduled:!1};function Ne(e){Object.assign(je,e)}const Ie={ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0},Pe={ac:20,af:5,ah:1,al:1,am:0,ar:10,as:20},Me={pv:25},Be={xs:0,s:1,m:1,l:2,xl:2,xxl:2},Ce=e=>e<15?y.xs:e<60?y.s:e<240?y.m:e<960?y.l:e<3840?y.xl:y.xxl,De=e=>{Object.assign(Ie,e)};function Ae(){return(new Date).getTime()}const Le={timeStart:Ae(),timeOnPagePath:0,timeOnPageKey:0,prevTimeOnPagePath:0,prevTimeOnPageKey:0,sessionDuration:0,sessionEnd:0,sessionStart:0,prevSessionDuration:0};function Ue(e){Object.assign(Le,e)}const Re=(e,t)=>t.some((t=>e instanceof t));let qe,Fe;const ze=new WeakMap,Ke=new WeakMap,$e=new WeakMap,Qe=new WeakMap,We=new WeakMap;let He={get(e,t,n){if(e instanceof IDBTransaction){if(\"done\"===t)return Ke.get(e);if(\"objectStoreNames\"===t)return e.objectStoreNames||$e.get(e);if(\"store\"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Je(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&(\"done\"===t||\"store\"===t)||t in e};function Ve(e){return\"function\"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||\"objectStoreNames\"in IDBTransaction.prototype?(Fe||(Fe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(Xe(this),e),Je(ze.get(this))}:function(...e){return Je(t.apply(Xe(this),e))}:function(e,...n){const r=t.call(Xe(this),e,...n);return $e.set(r,e.sort?e.sort():[e]),Je(r)}:(e instanceof IDBTransaction&&function(e){if(Ke.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener(\"complete\",i),e.removeEventListener(\"error\",a),e.removeEventListener(\"abort\",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException(\"AbortError\",\"AbortError\")),r()};e.addEventListener(\"complete\",i),e.addEventListener(\"error\",a),e.addEventListener(\"abort\",a)}));Ke.set(e,t)}(e),Re(e,qe||(qe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,He):e);var t}function Je(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener(\"success\",i),e.removeEventListener(\"error\",a)},i=()=>{t(Je(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(\"success\",i),e.addEventListener(\"error\",a)}));return t.then((t=>{t instanceof IDBCursor&&ze.set(t,e)})).catch((()=>{})),We.set(t,e),t}(e);if(Qe.has(e))return Qe.get(e);const t=Ve(e);return t!==e&&(Qe.set(e,t),We.set(t,e)),t}const Xe=e=>We.get(e),Ge=[\"get\",\"getKey\",\"getAll\",\"getAllKeys\",\"count\"],Ze=[\"put\",\"add\",\"delete\",\"clear\"],Ye=new Map;function et(e,t){if(!(e instanceof IDBDatabase)||t in e||\"string\"!=typeof t)return;if(Ye.get(t))return Ye.get(t);const n=t.replace(/FromIndex$/,\"\"),r=t!==n,i=Ze.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Ge.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?\"readwrite\":\"readonly\");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return Ye.set(t,a),a}var tt;tt=He,He={...tt,get:(e,t,n)=>et(e,t)||tt.get(e,t,n),has:(e,t)=>!!et(e,t)||tt.has(e,t)};const nt={isReady:!1,idbKeyval:null};function rt(e){Object.assign(nt,e)}const it={},at=async e=>{if(!nt.idbKeyval)return Promise.resolve(null);try{return await nt.idbKeyval.get(e)}catch(e){return A.onError(new Error(\"IndexedDB:Get:InternalError\")),Promise.resolve(null)}},ot=async(e,t)=>{if(nt.idbKeyval)try{await nt.idbKeyval.set(e,t)}catch(e){A.onError(new Error(\"IndexedDB:Set:InternalError\"))}},st=()=>{\"server\"!==A.platform&&(se({sessionStart:Le.sessionStart,ac:Ie.ac,af:Ie.af,ah:Ie.ah,al:Ie.al,am:Ie.am,ar:Ie.ar,as:Ie.as,pv:Ie.pv}),H.userId&&se({userId:H.userId}),ot(S,oe))},ct=\"rgb(5,177,105)\",ut=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`%c ${x}`,a=`color:${ct};font-size:11px;`,o=`Importance: ${r}`;console.group(i,a,t,o),n.forEach((e=>{e.event_type?console.log(e.event_type,e):console.log(e)})),console.groupEnd()},lt=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`color:${ct};font-size:11px;`,a=`%c ${x}`,o=`Importance: ${r}`;console.log(a,i,t,n,o)},dt=()=>{const e=Ae();oe.sessionId&&oe.lastEventTime&&oe.sessionUUID&&!pt(e)||(oe.sessionId=e,oe.sessionUUID=V(),Ue({sessionStart:e}),lt({metricName:\"Started new session:\",data:{persistentData:oe,timeStone:Le}})),oe.lastEventTime=e},pt=e=>e-oe.lastEventTime>18e5;function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mt.apply(this,arguments)}const ft=e=>{var t;(e=>{switch(e.action){case f.click:Ie.ac+=1;break;case f.focus:Ie.af+=1;break;case f.hover:Ie.ah+=1;break;case f.move:Ie.am+=1;break;case f.scroll:Ie.al+=1;break;case f.search:Ie.ar+=1;break;case f.select:Ie.as+=1}})(t=e),t.event_type!==j?t.event_type===N&&((e=>{if(!e.session_rank)return;const t=e.session_rank;Object.values(h).forEach((e=>{Ie.sqs+=Ie[e]*Pe[e]})),Object.values(w).forEach((e=>{Ie.sqs+=Ie[e]*Me[e]})),Ie.sqs*=Be[t]})(t),Object.assign(t,Ie),De({ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0})):Ie.pv+=1;const n=e.event_type;delete e.event_type;const r=e.deviceId?e.deviceId:null,i=e.timestamp;return delete e.timestamp,se({eventId:oe.eventId+1}),se({sequenceNumber:oe.sequenceNumber+1}),dt(),st(),{device_id:H.deviceId||r||null,user_id:H.userId,timestamp:i,event_id:oe.eventId,session_id:oe.sessionId||-1,event_type:n,version_name:A.version||null,platform:W.amplitudePlatform,os_name:W.amplitudeOSName,os_version:W.amplitudeOSVersion,device_model:W.amplitudeDeviceModel,language:H.languageCode,event_properties:mt({},e,{session_uuid:oe.sessionUUID,height:W.height,width:W.width}),user_properties:X(),uuid:V(),library:{name:\"@cbhq/client-analytics\",version:\"10.6.0\"},sequence_number:oe.sequenceNumber,user_agent:W.userAgent||H.userAgent}},vt=e=>e.map((e=>ft(e)));function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gt.apply(this,arguments)}const bt=e=>e.map((e=>(e=>{const t=e.tags||{},n=gt({authed:J()?\"true\":\"false\",platform:A.platform},t,{project_name:A.projectName,version_name:A.version||null});return{metric_name:e.metricName,page_path:e.pagePath||null,value:e.value,tags:n,type:e.metricType}})(e))),ht=e=>0!==je.metricsQueue.length&&(je.metricsQueue.length>=A.batchMetricsThreshold||(je.metricsScheduled||(je.metricsScheduled=!0,setTimeout((()=>{je.metricsScheduled=!1,e(bt(je.metricsQueue)),je.metricsQueue=[]}),A.batchMetricsPeriod)),!1)),wt=e=>0!==je.tracesQueue.length&&(je.tracesQueue.length>=A.batchTracesThreshold||(je.tracesScheduled||(je.tracesScheduled=!0,setTimeout((()=>{je.tracesScheduled=!1,e(je.tracesQueue),je.tracesQueue=[]}),A.batchTracesPeriod)),!1)),yt=e=>{var t;z()&&null!=(t=window)&&t.requestIdleCallback?window.requestIdleCallback(e,{timeout:A.ricTimeoutScheduleEvent}):(q()||F())&&A.interactionManager?A.interactionManager.runAfterInteractions(e):e()};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(this,arguments)}const kt=\"application/x-www-form-urlencoded; charset=UTF-8\",_t=e=>{const{data:t,importance:n,isJSON:r,onError:i,url:a}=e,o=r?\"application/json\":kt,s=n||l.low,c=r?JSON.stringify(t):new URLSearchParams(t).toString();function u(){const e=new XMLHttpRequest;e.open(\"POST\",a,!0),Object.keys(A.headers||{}).forEach((t=>{e.setRequestHeader(t,A.headers[t])})),e.setRequestHeader(\"Content-Type\",kt),H.jwt&&e.setRequestHeader(\"authorization\",`Bearer ${H.jwt}`),e.send(c)}if(!z()||r||!(\"sendBeacon\"in navigator)||s!==l.low||A.headers&&0!==Object.keys(A.headers).length)if(z()&&!r)u();else{const e=Tt({},A.headers,{\"Content-Type\":o});H.jwt&&(e.Authorization=`Bearer ${H.jwt}`),fetch(a,{method:\"POST\",mode:\"no-cors\",headers:e,body:c}).catch((e=>{i(e,{context:\"AnalyticsSDKApiError\"})}))}else{const e=new Blob([c],{type:kt});try{navigator.sendBeacon.bind(navigator)(a,e)||u()}catch(e){console.error(e),u()}}};var St=n(762),Et=n.n(St);const xt=(e,t,n)=>{const r=e||\"\";return Et()(\"2\"+r+t+n)};function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}class jt extends Error{constructor(e){super(e),this.name=\"CircularJsonReference\",this.message=e,\"function\"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}class Nt extends jt{constructor(...e){super(...e),this.name=\"DomReferenceInAnalyticsEvent\"}}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}const Pt=(e,t=l.low)=>{var n;e&&je.eventsQueue.push(e),nt.isReady&&(!A.trackUserId||H.userId?(t===l.high||(n=Mt,0!==je.eventsQueue.length&&(je.eventsQueue.length>=A.batchEventsThreshold||(je.eventsScheduled||(je.eventsScheduled=!0,setTimeout((()=>{je.eventsScheduled=!1,n(vt(je.eventsQueue)),je.eventsQueue=[]}),A.batchEventsPeriod)),0))))&&Bt():je.eventsQueue.length>10&&(A.trackUserId=!1,A.onError(new Error(\"userId not set in Logged-in\"))))},Mt=(e,t=l.low)=>{if(H.isOptOut||0===e.length)return;let n;try{n=JSON.stringify(e)}catch(t){const r=e.map((e=>e.event_type)).join(\", \"),[i,a]=(e=>{try{const n=[];for(const r of e){const e=Ot({},r);r.event_properties&&(e.event_properties=Ot({},e.event_properties,{currentTarget:null,target:null,relatedTarget:null,_dispatchInstances:null,_targetInst:null,view:(t=r.event_properties.view,[\"string\",\"number\",\"boolean\"].includes(typeof t)?r.event_properties.view:null)})),n.push(e)}return[!0,JSON.stringify(n)]}catch(e){return[!1,\"\"]}var t})(e);if(!i)return void A.onError(new jt(t instanceof Error?t.message:\"unknown\"),{listEventType:r});n=a,A.onError(new Nt(\"Found DOM element reference\"),{listEventType:r,stringifiedEventData:n})}const r=Ae().toString(),i=It({},{e:n,v:\"2\",upload_time:r},{client:A.amplitudeApiKey,checksum:xt(A.amplitudeApiKey,n,r)});_t({url:A.eventsEndpoint,data:i,importance:t,onError:A.onError}),ut({metricName:\"Batch Events\",data:e,importance:t})},Bt=()=>{Mt(vt(je.eventsQueue)),Ne({eventsQueue:[]})};function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ct.apply(this,arguments)}const Dt=Object.values(f),At=Object.values(m),Lt=e=>Dt.includes(e)?e:f.unknown,Ut=e=>At.includes(e)?e:m.unknown,Rt=(e,t,n)=>{const r={auth:J()?b.loggedIn:b.notLoggedIn,action:Lt(e),component_type:Ut(t),logging_id:n,platform:A.platform,project_name:A.projectName};return\"number\"==typeof H.userTypeEnum&&(r.user_type_enum=H.userTypeEnum),r},qt=e=>{const t=Ae();if(!e)return A.onError(new Error(\"missing logData\")),Ct({},Rt(f.unknown,m.unknown),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});const n=Ct({},e,Rt(e.action,e.componentType,e.loggingId),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});return delete n.componentType,delete n.loggingId,n},Ft={blacklistRegex:[],isEnabled:!1};function zt(){return{page_key:re.pageKey,page_path:re.pagePath,prev_page_key:re.prevPageKey,prev_page_path:re.prevPagePath}}function Kt(e){Object.assign(Ft,e)}function $t(e,t,n=l.low){if(H.isOptOut)return;if(!Oe())return;const r=qt(t);!function(e){Ft.isEnabled&&(ve(),Object.assign(e,zt()))}(r),be(r),function(e){Object.keys(Se).length>0&&Object.assign(e,Se)}(r),r.has_double_fired=!1,r.event_type=e,n===l.high?Pt(r,n):yt((()=>{Pt(r)}))}function Qt(e,t=!1){t?_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError})})),ut({metricName:\"Batch Metrics\",data:e})}function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(this,arguments)}function Ht(e){if(!Oe())return;v.server!==A.platform&&!e.pagePath&&re.pagePath&&(e.pagePath=re.pagePath);const t=Object.keys(Se).length?Wt({},e.tags,Se):e.tags;t&&Object.assign(e,{tags:t}),je.metricsQueue.push(e),ht(Qt)&&(Qt(bt(je.metricsQueue)),je.metricsQueue=[])}function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(this,arguments)}let Jt=function(e){return e.instant=\"instant\",e.quick=\"quick\",e.moderate=\"moderate\",e.slow=\"slow\",e.unavoidable=\"unavoidable\",e}({});function Xt(e){return e.toLowerCase()}let Gt={};const Zt=(e,t)=>{null!=A&&A.onMarkStep&&A.onMarkStep(e,t),xe({ujs:t})};let Yt;const en={Perfume:()=>{},markStep:e=>{},markStepOnce:e=>{},incrementUjNavigation:()=>{}},tn=()=>{z()&&Yt&&Yt.markNTBT&&Yt.markNTBT()},nn=e=>{z()&&Yt&&en.markStep&&en.markStep(e)},rn=e=>{z()&&Yt&&en.markStepOnce&&en.markStepOnce(e)},an=()=>{z()&&Yt&&en.incrementUjNavigation&&en.incrementUjNavigation()};function on(e={callMarkNTBT:!0}){\"unknown\"!==A.platform&&(Ft.blacklistRegex.some((e=>e.test(fe())))||($t(j,{action:f.render,componentType:m.page}),e.callMarkNTBT&&tn()))}let sn=!1,cn=!1;const un=e=>{sn=!e.persisted},ln=(e,t=\"hidden\",n=!1)=>{cn||(addEventListener(\"pagehide\",un),addEventListener(\"beforeunload\",(()=>{})),cn=!0),addEventListener(\"visibilitychange\",(({timeStamp:n})=>{document.visibilityState===t&&e({timeStamp:n,isUnloading:sn})}),{capture:!0,once:n})},dn=36e3;function pn(){const e=pt(Ae());if(e&&(O.forEach((e=>{oe[e]&&delete oe[e]})),st()),!oe.lastEventTime||!Le.sessionStart||!e)return;const t=Math.round((oe.lastEventTime-Le.sessionStart)/1e3);if(t<1||t>dn)return;const n=Ce(t);$t(N,{action:f.measurement,componentType:m.page,session_duration:t,session_end:oe.lastEventTime,session_start:Le.sessionStart,session_rank:n})}function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mn.apply(this,arguments)}const fn=[],vn=[],gn=()=>{const e=fn.shift();e&&e()},bn=()=>{const e=vn.shift();e&&e()};let hn={};function wn(e){const t=function(e){return{test_name:e.testName,group_name:e.group,subject_id:e.subjectId,exposed_at:Ae(),subject_type:e.subjectType,platform:A.platform}}(e);hn[e.testName]=hn[e.testName]||0,hn[e.testName]+k>Ae()?lt({metricName:`Event: exposeExperiment ${e.testName} not sent`,data:t}):(hn[e.testName]=Ae(),ot(E,hn),lt({metricName:`Event: exposeExperiment ${e.testName} sent`,data:t}),_t({url:A.exposureEndpoint,data:[t],onError:(t,n)=>{hn[e.testName]=0,ot(E,hn),A.onError(t,n)},isJSON:!0,importance:l.high}))}const yn=e=>{var t,r,i;U(e),z()&&(H.languageCode=(null==(t=navigator)?void 0:t.languages[0])||(null==(r=navigator)?void 0:r.language)||\"\"),te(),(()=>{var e;if(z()&&null!=(e=window)&&e.indexedDB){const e=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=Je(o);return r&&o.addEventListener(\"upgradeneeded\",(e=>{r(Je(o.result),e.oldVersion,e.newVersion,Je(o.transaction),e)})),n&&o.addEventListener(\"blocked\",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{a&&e.addEventListener(\"close\",(()=>a())),i&&e.addEventListener(\"versionchange\",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(\"keyval-store\",1,{upgrade(e){e.createObjectStore(\"keyval\")}});rt({idbKeyval:{get:async t=>(await e).get(\"keyval\",t),set:async(t,n)=>(await e).put(\"keyval\",n,t),delete:async t=>(await e).delete(\"keyval\",t),keys:async()=>(await e).getAllKeys(\"keyval\")}})}else rt({idbKeyval:{get:async e=>new Promise((t=>{t(it[e])})),set:async(e,t)=>new Promise((n=>{it[e]=t,n(e)})),delete:async e=>new Promise((()=>{delete it[e]})),keys:async()=>new Promise((e=>{e(Object.keys(it))}))}})})(),lt({metricName:\"Initialized Analytics:\",data:{deviceId:H.deviceId}}),fn.push((()=>{Pt()})),(async()=>{const e=await at(S);rt({isReady:!0}),gn(),e&&(bn(),se({eventId:e.eventId||oe.eventId,sequenceNumber:e.sequenceNumber||oe.sequenceNumber,sessionId:e.sessionId||oe.sessionId,lastEventTime:e.lastEventTime||oe.lastEventTime,sessionUUID:e.sessionUUID||oe.sessionUUID}),function(e){se(mn({},function(e){const t={};return O.forEach((n=>{e[n]&&(t[n]=e[n])})),t}(e),de()))}(e),Ue({sessionStart:e.sessionStart||oe.sessionStart}),De({ac:e.ac||Ie.ac,af:e.af||Ie.af,ah:e.ah||Ie.ah,al:e.al||Ie.al,am:e.am||Ie.am,ar:e.ar||Ie.ar,as:e.as||Ie.as,pv:e.pv||Ie.pv}),A.trackUserId&&Y({userId:e.userId||H.userId}),pn(),lt({metricName:\"Initialized Analytics IndexedDB:\",data:e}))})(),async function(){at(E).then((e=>{hn=null!=e?e:{}})).catch((e=>{e instanceof Error&&A.onError(e)}))}(),Z(),z()&&(ln((()=>{se({lastEventTime:Ae()}),st(),Bt()}),\"hidden\"),ln((()=>{pn()}),\"visible\")),z()&&(i=()=>{var e,t,n,r;te(),ee({width:null!=(e=null==(t=window)?void 0:t.innerWidth)?e:null,height:null!=(n=null==(r=window)?void 0:r.innerHeight)?n:null})},addEventListener(\"resize\",(()=>{requestAnimationFrame((()=>{i()}))}))),(()=>{if(z())try{const e=n(2);en.markStep=e.markStep,en.markStepOnce=e.markStepOnce,en.incrementUjNavigation=e.incrementUjNavigation,Yt=new e.Perfume({analyticsTracker:e=>{const{data:t,attribution:n,metricName:r,navigatorInformation:i,rating:a}=e,o=I[r],s=(null==n?void 0:n.category)||null;if(!o&&!s)return;const c=(null==i?void 0:i.deviceMemory)||0,u=(null==i?void 0:i.hardwareConcurrency)||0,l=(null==i?void 0:i.isLowEndDevice)||!1,p=(null==i?void 0:i.isLowEndExperience)||!1,v=(null==i?void 0:i.serviceWorkerStatus)||\"unsupported\",g=Vt({deviceMemory:c,hardwareConcurrency:u,isLowEndDevice:l,isLowEndExperience:p,serviceWorkerStatus:v},Gt),b={is_low_end_device:l,is_low_end_experience:p,page_key:re.pageKey||\"\",save_data:t.saveData||!1,service_worker:v,is_perf_metric:!0};if(\"navigationTiming\"===r)t&&\"number\"==typeof t.redirectTime&&Ht({metricName:I.redirectTime.eventName,metricType:d.histogram,tags:b,value:t.redirectTime||0});else if(\"TTFB\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),Ht({metricName:I.TTFB.eventName,metricType:d.histogram,tags:Vt({},b),value:t}),a&&Ht({metricName:`perf_web_vitals_ttfb_${a}`,metricType:d.count,tags:b,value:1});else if(\"networkInformation\"===r)null!=t&&t.effectiveType&&(Gt=t,$t(o.eventName,{action:f.measurement,componentType:m.page,networkInformationDownlink:t.downlink,networkInformationEffectiveType:t.effectiveType,networkInformationRtt:t.rtt,networkInformationSaveData:t.saveData,navigatorDeviceMemory:c,navigatorHardwareConcurrency:u}));else if(\"storageEstimate\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page},t,g)),Ht({metricName:\"perf_storage_estimate_caches\",metricType:d.histogram,tags:b,value:t.caches}),Ht({metricName:\"perf_storage_estimate_indexed_db\",metricType:d.histogram,tags:b,value:t.indexedDB});else if(\"CLS\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,score:100*t||null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_cls_${a}`,metricType:d.count,tags:b,value:1});else if(\"FID\"===r){const e=(null==n?void 0:n.performanceEntry)||null,r=parseInt((null==e?void 0:e.processingStart)||\"\");$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,processingStart:null!=e&&e.processingStart?r:null,startTime:null!=e&&e.startTime?parseInt(e.startTime):null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_fidVitals_${a}`,metricType:d.count,tags:b,value:1})}else\"userJourneyStep\"===r?($t(\"perf_user_journey_step\",Vt({action:f.measurement,componentType:m.page,duration:t||null,rating:null!=a?a:null,step_name:(null==n?void 0:n.stepName)||\"\"},g)),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||\"\"}_vitals_${a}`,metricType:d.count,tags:b,value:1}),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||\"\"}`,metricType:d.distribution,tags:b,value:t||null})):I[r]&&t&&($t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),a&&(Ht({metricName:`perf_web_vitals_${Xt(r)}_${a}`,metricType:d.count,tags:b,value:1}),\"LCP\"===r&&Ht({metricName:`perf_web_vitals_${Xt(r)}`,metricType:d.distribution,tags:b,value:t})))},maxMeasureTime:3e4,steps:A.steps,onMarkStep:Zt})}catch(e){e instanceof Error&&A.onError(e)}})()},Tn=e=>{Y(e),e.userAgent&&Z(),lt({metricName:\"Identify:\",data:{countryCode:H.countryCode,deviceId:H.deviceId,userId:H.userId}})},kn=({blacklistRegex:e,pageKeyRegex:t,browserHistory:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.listen((()=>{on()}))},_n=({blacklistRegex:e,pageKeyRegex:t,nextJsRouter:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.events.on(\"routeChangeComplete\",(()=>{on()}))},Sn=()=>{Y({isOptOut:!0}),ot(S,{})},En=()=>{Y({isOptOut:!1})},xn={Button:{label:\"cb_button\",uuid:\"e921a074-40e6-4371-8700-134d5cd633e6\",componentType:m.button}};function On(e,t,n){return{componentName:e,actions:t,data:n}}function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function Nn(e,t,n){const{componentName:r,data:i}=n;$t(e.label,jn({componentType:e.componentType,action:t,loggingId:e.uuid,component_name:r},i))}const In={actionMapping:{onPress:f.click,onHover:f.hover},handlers:{Button:{[f.click]:e=>Nn(xn.Button,f.click,e),[f.hover]:e=>Nn(xn.Button,f.hover,e)}}};function Pn(e,t=!1){t?_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError})})),ut({metricName:\"Batch Traces\",data:e})}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn.apply(this,arguments)}const Bn=1e6;function Cn(e){return e*Bn}function Dn(e=function(){var e;return null==(e=window)?void 0:e.crypto}()){const t=new Uint32Array(2);return null==e||e.getRandomValues(t),((BigInt(t[0])<<BigInt(32))+BigInt(t[1])).toString()}function An(e,t){return{\"x-datadog-origin\":\"rum\",\"x-datadog-parent-id\":t,\"x-datadog-sampling-priority\":\"1\",\"x-datadog-trace-id\":e}}function Ln(e){var t;const{name:n,traceId:r,spanId:i,start:a,duration:o,resource:s,meta:c}=e;return{duration:o?Cn(o):0,name:n,resource:s,service:A.projectName,span_id:null!=i?i:Dn(),start:a?Cn(a):0,trace_id:null!=r?r:Dn(),parent_id:P,type:M,meta:Mn({platform:A.platform},re.pageKey?{page_key:re.pageKey}:{},null!=(t=Se.ujs)&&t.length?{last_ujs:Se.ujs[Se.ujs.length-1]}:{},null!=c?c:{})}}function Un(e){return[Ln(e)]}function Rn(e,t){Oe()&&function(e){return e.length>0}(e)&&(t&&function(e,t){e.forEach((e=>function(e,t){const n=Mn({},e.meta,t.meta),r={start:t.start?Cn(t.start):e.start,duration:t.duration?Cn(t.duration):e.duration};Object.assign(e,t,Mn({meta:n},r))}(e,t)))}(e,t),je.tracesQueue.push(e),wt(Pn)&&(Pn(je.tracesQueue),je.tracesQueue=[]))}function qn(e){var t=function(e,t){if(\"object\"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,\"string\");if(\"object\"!=typeof r)return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==typeof t?t:String(t)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}function zn(){return void 0!==typeof window&&\"performance\"in window&&\"mark\"in performance&&\"getEntriesByName\"in performance}function Kn(e,t){return`perf_${e}${null!=t&&t.label?`_${t.label}`:\"\"}`}function $n(e,t,n){return`${Kn(e,n)}__${t}`}let Qn={};function Wn(e,t,n){if(!zn())return;const r=$n(e,t,n);if(performance.mark(r),\"end\"===t){const t=Kn(e,n);!function(e,t,n){try{performance.measure(e,t,n)}catch(e){A.onError(e)}}(t,$n(e,\"start\",n),r);const i=performance.getEntriesByName(t).pop();i&&Ht(Fn({metricName:e,metricType:d.distribution,value:i.duration},null!=n&&n.tags?{tags:n.tags}:{}))}}function Hn(e,t){if(!zn())return;const n=$n(e,\"start\",t);Qn[n]||(Wn(e,\"start\",t),Qn[n]=!0)}function Vn(e,t){const n=$n(e,\"start\",t),r=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(Qn,[n].map(qn));Qn=r}function Jn(e,t){if(!zn())return;const n=$n(e,\"start\",t);Qn[n]&&(Wn(e,\"end\",t),Vn(e,t))}function Xn(){zn()&&(performance.clearMarks(),Qn={})}var Gn=n(784);function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function Yn(e,t,n=l.low){const r=(0,Gn.useRef)(t);return(0,Gn.useEffect)((()=>{r.current=t}),[t]),(0,Gn.useCallback)((t=>{$t(e,Zn({},r.current,t),n)}),[e,n])}function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},er.apply(this,arguments)}function tr(e,t,n=l.low){(0,Gn.useEffect)((()=>{const r=er({},t,{action:f.render});$t(e,r,n)}),[])}function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(this,arguments)}const rr=function(e,t){return{markStartPerf:(0,Gn.useCallback)((()=>Hn(e,t)),[e,t]),markEndPerf:(0,Gn.useCallback)((n=>Jn(e,nr({},t,n))),[e,t])}};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function ar(){return Object.entries(ir({},Se,zt(),{sessionUUID:oe.sessionUUID,userId:oe.userId})).reduce(((e,t)=>{return null!=(n=t[1])&&\"\"!==n?ir({},e,{[t[0]]:t[1]}):e;var n}),{})}async function or(){return new Promise((e=>{Mt(vt(je.eventsQueue)),Qt(bt(je.metricsQueue),!0),Pn(je.tracesQueue,!0),Ne({eventsQueue:[],metricsQueue:[],tracesQueue:[]}),e()}))}function sr(){return{\"X-CB-Device-ID\":H.deviceId||\"unknown\",\"X-CB-Is-Logged-In\":H.userId?\"true\":\"false\",\"X-CB-Pagekey\":re.pageKey||\"unknown\",\"X-CB-UJS\":(e=Se.ujs,void 0===e||0===e.length?\"\":e.join(\",\")),\"X-CB-Platform\":A.platform||\"unknown\",\"X-CB-Project-Name\":A.projectName||\"unknown\",\"X-CB-Session-UUID\":oe.sessionUUID||\"unknown\",\"X-CB-Version-Name\":A.version?String(A.version):\"unknown\"};var e}})(),r})()}));\\'});var oU,i2t,fJ=x(()=>{c();Lu();oFe();oU=()=>new Promise((e,t)=>{if(window.ClientAnalytics)return e();try{let r=document.createElement(\"script\");r.textContent=nFe,r.type=\"text/javascript\",document.head.appendChild(r),i2t(),document.head.removeChild(r),e()}catch{console.error(\"Failed to execute inlined telemetry script\"),t()}}),i2t=()=>{var e,t,r;if(typeof window<\"u\"){let n=(r=(e=Re.config.get().deviceId)!==null&&e!==void 0?e:(t=window.crypto)===null||t===void 0?void 0:t.randomUUID())!==null&&r!==void 0?r:\"\";if(window.ClientAnalytics){let{init:o,identify:s,PlatformName:u}=window.ClientAnalytics;o({isProd:!0,amplitudeApiKey:\"c66737ad47ec354ced777935b0af822e\",platform:u.web,projectName:\"base_account_sdk\",showDebugLogging:!1,version:\"1.0.0\",apiEndpoint:\"https://cca-lite.coinbase.com\"}),s({deviceId:n}),Re.config.set({deviceId:n})}}}});var qn,aU,XT=x(()=>{c();qn={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},aU={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"},4902:{standard:\"EIP-3085\",message:\"Unrecognized chain ID.\"}}});function iU(e,t=sFe){if(e&&Number.isInteger(e)){let r=e.toString();if(dJ(aU,r))return aU[r].message;if(uFe(e))return s2t}return t}function c2t(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(aU[t]||uFe(e))}function cFe(e,{shouldIncludeStack:t=!1}={}){let r={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&dJ(e,\"code\")&&c2t(e.code)){let n=e;r.code=n.code,n.message&&typeof n.message==\"string\"?(r.message=n.message,dJ(n,\"data\")&&(r.data=n.data)):(r.message=iU(r.code),r.data={originalError:aFe(e)})}else r.code=qn.rpc.internal,r.message=iFe(e,\"message\")?e.message:sFe,r.data={originalError:aFe(e)};return t&&(r.stack=iFe(e,\"stack\")?e.stack:void 0),r}function uFe(e){return e>=-32099&&e<=-32e3}function aFe(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function dJ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function iFe(e,t){return typeof e==\"object\"&&e!==null&&t in e&&typeof e[t]==\"string\"}var sFe,s2t,pJ=x(()=>{c();XT();sFe=\"Unspecified error message.\",s2t=\"Unspecified server error.\"});function zu(e,t){let[r,n]=lFe(t);return new e_(e,r||iU(e),n)}function nE(e,t){let[r,n]=lFe(t);return new sU(e,r||iU(e),n)}function lFe(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,r]}}return[]}function u2t(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function mJ(e){return typeof e==\"object\"&&e!==null&&\"code\"in e&&\"data\"in e&&e.code===-32090&&typeof e.data==\"object\"&&e.data!==null&&\"type\"in e.data&&e.data.type===\"INSUFFICIENT_FUNDS\"}function cU(e){return typeof e==\"object\"&&e!==null&&\"details\"in e}function fFe(e){try{let t=JSON.parse(e.details);return new e_(t.code,t.message,t.data)}catch{return null}}var ke,e_,sU,wi=x(()=>{c();XT();pJ();ke={rpc:{parse:e=>zu(qn.rpc.parse,e),invalidRequest:e=>zu(qn.rpc.invalidRequest,e),invalidParams:e=>zu(qn.rpc.invalidParams,e),methodNotFound:e=>zu(qn.rpc.methodNotFound,e),internal:e=>zu(qn.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return zu(t,e)},invalidInput:e=>zu(qn.rpc.invalidInput,e),resourceNotFound:e=>zu(qn.rpc.resourceNotFound,e),resourceUnavailable:e=>zu(qn.rpc.resourceUnavailable,e),transactionRejected:e=>zu(qn.rpc.transactionRejected,e),methodNotSupported:e=>zu(qn.rpc.methodNotSupported,e),limitExceeded:e=>zu(qn.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>nE(qn.provider.userRejectedRequest,e),unauthorized:e=>nE(qn.provider.unauthorized,e),unsupportedMethod:e=>nE(qn.provider.unsupportedMethod,e),disconnected:e=>nE(qn.provider.disconnected,e),chainDisconnected:e=>nE(qn.provider.chainDisconnected,e),unsupportedChain:e=>nE(qn.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:r,data:n}=e;if(!r||typeof r!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new sU(t,r,n)}}};e_=class extends Error{constructor(t,r,n){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!r||typeof r!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(r),this.code=t,n!==void 0&&(this.data=n)}},sU=class extends e_{constructor(t,r,n){if(!u2t(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,r,n)}}});function hJ(){return e=>e}function Wl(e){return Math.floor(e)}var oE,dFe,l2t,yJ=x(()=>{c();oE=hJ(),dFe=hJ();l2t=hJ()});function Xm(e){return t_(crypto.getRandomValues(new Uint8Array(e)))}function t_(e){return[...e].map(t=>t.toString(16).padStart(2,\"0\")).join(\"\")}function aE(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>Number.parseInt(t,16)))}function ux(e,t=!1){let r=e.toString(\"hex\");return oE(t?`0x${r}`:r)}function uU(e){return ux(dU(e),!0)}function Ql(e){return dFe(e.toString(10))}function eh(e){return oE(`0x${BigInt(e).toString(16)}`)}function hFe(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")}function bJ(e){return hFe(e)?e.slice(2):e}function gJ(e){return hFe(e)?`0x${e.slice(2)}`:`0x${e}`}function lU(e){if(typeof e!=\"string\")return!1;let t=bJ(e).toLowerCase();return mFe.test(t)}function fU(e,t=!1){if(typeof e==\"string\"){let r=bJ(e).toLowerCase();if(mFe.test(r))return oE(t?`0x${r}`:r)}throw ke.rpc.invalidParams(`\"${String(e)}\" is not a hexadecimal string`)}function xJ(e,t=!1){let r=fU(e,!1);return r.length%2===1&&(r=oE(`0${r}`)),t?oE(`0x${r}`):r}function th(e){if(typeof e==\"string\"){let t=bJ(e).toLowerCase();if(lU(t)&&t.length===40)return gJ(t)}throw ke.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}function dU(e){if(globalThis.Buffer.isBuffer(e))return e;if(typeof e==\"string\"){if(lU(e)){let t=xJ(e,!1);return globalThis.Buffer.from(t,\"hex\")}return globalThis.Buffer.from(e,\"utf8\")}throw ke.rpc.invalidParams(`Not binary data: ${String(e)}`)}function lx(e){if(typeof e==\"number\"&&Number.isInteger(e))return Wl(e);if(typeof e==\"string\"){if(pFe.test(e))return Wl(Number(e));if(lU(e))return Wl(Number(BigInt(xJ(e,!0))))}throw ke.rpc.invalidParams(`Not an integer: ${String(e)}`)}function iE(e){if(e!==null&&(typeof e==\"bigint\"||f2t(e)))return BigInt(e.toString(10));if(typeof e==\"number\")return BigInt(lx(e));if(typeof e==\"string\"){if(pFe.test(e))return BigInt(e);if(lU(e))return BigInt(xJ(e,!0))}throw ke.rpc.invalidParams(`Not an integer: ${String(e)}`)}function yFe(e){if(typeof e==\"string\")return JSON.parse(e);if(typeof e==\"object\")return e;throw ke.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}function f2t(e){if(e==null||typeof e.constructor!=\"function\")return!1;let{constructor:t}=e;return typeof t.config==\"function\"&&typeof t.EUCLID==\"number\"}function bFe(){let e=document.querySelector(\\'link[sizes=\"192x192\"]\\')||document.querySelector(\\'link[sizes=\"180x180\"]\\')||document.querySelector(\\'link[rel=\"icon\"]\\')||document.querySelector(\\'link[rel=\"shortcut icon\"]\\'),{protocol:t,host:r}=document.location,n=e?e.getAttribute(\"href\"):null;return!n||n.startsWith(\"javascript:\")||n.startsWith(\"vbscript:\")?`${t}//${r}/favicon.ico`:n.startsWith(\"http://\")||n.startsWith(\"https://\")||n.startsWith(\"data:\")?n:n.startsWith(\"//\")?t+n:`${t}//${r}${n}`}var pFe,mFe,Zl=x(()=>{c();wi();yJ();pFe=/^[0-9]*$/,mFe=/^[a-f0-9]*$/});var d2t,p2t,pU,gFe,mU=x(()=>{c();d2t=`Coinbase Wallet SDK requires the Cross-Origin-Opener-Policy header to not be set to \\'same-origin\\'. This is to ensure that the SDK can communicate with the Coinbase Smart Wallet app.\\n\\nPlease see https://www.smartwallet.dev/guides/tips/popup-tips#cross-origin-opener-policy for more information.`,p2t=()=>{let e;return{getCrossOriginOpenerPolicy:()=>e===void 0?\"undefined\":e,checkCrossOriginOpenerPolicy:async()=>{if(typeof window>\"u\"){e=\"non-browser-env\";return}try{let t=`${window.location.origin}${window.location.pathname}`,r=await fetch(t,{method:\"HEAD\"});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);let n=r.headers.get(\"Cross-Origin-Opener-Policy\");e=n??\"null\",e===\"same-origin\"&&console.error(d2t)}catch(t){console.error(\"Error checking Cross-Origin-Opener-Policy:\",t.message),e=\"error\"}}}},{checkCrossOriginOpenerPolicy:pU,getCrossOriginOpenerPolicy:gFe}=p2t()});async function Wy(e,t){let r=Object.assign(Object.assign({},e),{jsonrpc:\"2.0\",id:crypto.randomUUID()}),n=await window.fetch(t,{method:\"POST\",body:JSON.stringify(r),mode:\"cors\",headers:{\"Content-Type\":\"application/json\",\"X-Cbw-Sdk-Version\":Hu,\"X-Cbw-Sdk-Platform\":nU}}),{result:o,error:s}=await n.json();if(s)throw s;return o}function m2t(){return globalThis.coinbaseWalletExtension}function h2t(){var e,t;try{let r=globalThis;return(e=r.ethereum)!==null&&e!==void 0?e:(t=r.top)===null||t===void 0?void 0:t.ethereum}catch{return}}function hU({metadata:e,preference:t}){var r,n;let{appName:o,appLogoUrl:s,appChainIds:u}=e;if(t.options!==\"smartWalletOnly\"){let d=m2t();if(d)return(r=d.setAppInfo)===null||r===void 0||r.call(d,o,s,u,t),d}let f=h2t();if(f?.isCoinbaseBrowser)return(n=f.setAppInfo)===null||n===void 0||n.call(f,o,s,u,t),f}function xFe(e){if(!e||typeof e!=\"object\"||Array.isArray(e))throw ke.rpc.invalidParams({message:\"Expected a single, non-array, object argument.\",data:e});let{method:t,params:r}=e;if(typeof t!=\"string\"||t.length===0)throw ke.rpc.invalidParams({message:\"\\'args.method\\' must be a non-empty string.\",data:e});if(r!==void 0&&!Array.isArray(r)&&(typeof r!=\"object\"||r===null))throw ke.rpc.invalidParams({message:\"\\'args.params\\' must be an object or array if provided.\",data:e});switch(t){case\"eth_sign\":case\"eth_signTypedData_v2\":case\"eth_subscribe\":case\"eth_unsubscribe\":throw ke.provider.unsupportedMethod()}}var sE=x(()=>{c();cx();wi()});function yU(e){if(e){if(![\"all\",\"smartWalletOnly\",\"eoaOnly\"].includes(e.options))throw new Error(`Invalid options: ${e.options}`);if(e.attribution&&e.attribution.auto!==void 0&&e.attribution.dataSuffix!==void 0)throw new Error(\"Attribution cannot contain both auto and dataSuffix properties\");if(e.telemetry&&typeof e.telemetry!=\"boolean\")throw new Error(\"Telemetry must be a boolean\")}}function vJ(e){if(typeof e!=\"function\")throw new Error(\"toAccount is not a function\")}var wJ=x(()=>{c()});var vFe,bU,EJ,wFe,cE=x(()=>{c();vFe=\"https://keys.coinbase.com/connect\",bU=\"https://rpc.wallet.coinbase.com\",EJ=\"https://www.walletlink.org\",wFe=\"https://go.cb-w.com/walletlink\"});function zt(e,t,r){var n,o,s,u;window.ClientAnalytics&&((n=window.ClientAnalytics)===null||n===void 0||n.logEvent(e,Object.assign(Object.assign({},t),{sdkVersion:Hu,appName:(s=(o=Re.config.get().metadata)===null||o===void 0?void 0:o.appName)!==null&&s!==void 0?s:\"\",appOrigin:window.location.origin,appPreferredSigner:(u=Re.config.get().preference)===null||u===void 0?void 0:u.options}),r))}var _t,kt,Bt,Qy=x(()=>{c();Lu();cx();(function(e){e.unknown=\"unknown\",e.banner=\"banner\",e.button=\"button\",e.card=\"card\",e.chart=\"chart\",e.content_script=\"content_script\",e.dropdown=\"dropdown\",e.link=\"link\",e.page=\"page\",e.modal=\"modal\",e.table=\"table\",e.search_bar=\"search_bar\",e.service_worker=\"service_worker\",e.text=\"text\",e.text_input=\"text_input\",e.tray=\"tray\",e.checkbox=\"checkbox\",e.icon=\"icon\"})(_t||(_t={}));(function(e){e.unknown=\"unknown\",e.blur=\"blur\",e.click=\"click\",e.change=\"change\",e.dismiss=\"dismiss\",e.focus=\"focus\",e.hover=\"hover\",e.select=\"select\",e.measurement=\"measurement\",e.move=\"move\",e.process=\"process\",e.render=\"render\",e.scroll=\"scroll\",e.view=\"view\",e.search=\"search\",e.keyPress=\"keyPress\",e.error=\"error\"})(kt||(kt={}));(function(e){e.low=\"low\",e.high=\"high\"})(Bt||(Bt={}))});var EFe,AFe,SFe,CFe=x(()=>{c();Qy();EFe=()=>{zt(\"communicator.popup_setup.started\",{action:kt.unknown,componentType:_t.unknown},Bt.high)},AFe=()=>{zt(\"communicator.popup_setup.completed\",{action:kt.unknown,componentType:_t.unknown},Bt.high)},SFe=()=>{zt(\"communicator.popup_unload.received\",{action:kt.unknown,componentType:_t.unknown},Bt.high)}});var uE,rh,gU=x(()=>{c();Qy();uE=({snackbarContext:e})=>{zt(`snackbar.${e}.shown`,{action:kt.render,componentType:_t.modal,snackbarContext:e},Bt.high)},rh=({snackbarContext:e,snackbarAction:t})=>{zt(`snackbar.${e}.action_clicked`,{action:kt.click,componentType:_t.button,snackbarContext:e,snackbarAction:t},Bt.high)}});var TFe,_Fe=x(()=>{c();TFe=\\'@namespace svg \"http://www.w3.org/2000/svg\";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:\"\\\\\\\\201C\" \"\\\\\\\\201D\" \"\\\\\\\\2018\" \"\\\\\\\\2019\";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}\\'});function xU(){let e=document.createElement(\"style\");e.type=\"text/css\",e.appendChild(document.createTextNode(TFe)),document.documentElement.appendChild(e)}var AJ=x(()=>{c();_Fe()});var lE={};Wn(lE,{clsx:()=>nh,default:()=>y2t});function kFe(e){var t,r,n=\"\";if(typeof e==\"string\"||typeof e==\"number\")n+=e;else if(typeof e==\"object\")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=kFe(e[t]))&&(n&&(n+=\" \"),n+=r);else for(t in e)e[t]&&(n&&(n+=\" \"),n+=t);return n}function nh(){for(var e,t,r=0,n=\"\";r<arguments.length;)(e=arguments[r++])&&(t=kFe(e))&&(n&&(n+=\" \"),n+=t);return n}var y2t,Zy=x(()=>{c();y2t=nh});function Jy(e,t){for(var r in t)e[r]=t[r];return e}function UFe(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function tn(e,t,r){var n,o,s,u={};for(s in t)s==\"key\"?n=t[s]:s==\"ref\"?o=t[s]:u[s]=t[s];if(arguments.length>2&&(u.children=arguments.length>3?SU.call(arguments,2):r),typeof e==\"function\"&&e.defaultProps!=null)for(s in e.defaultProps)u[s]===void 0&&(u[s]=e.defaultProps[s]);return wU(e,u,n,o,null)}function wU(e,t,r,n,o){var s={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++MFe,__i:-1,__u:0};return o==null&&Un.vnode!=null&&Un.vnode(s),s}function CU(e){return e.children}function EU(e,t){this.props=e,this.context=t}function fE(e,t){if(t==null)return e.__?fE(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type==\"function\"?fE(e):null}function DFe(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return DFe(e)}}function IFe(e){(!e.__d&&(e.__d=!0)&&fx.push(e)&&!AU.__r++||BFe!==Un.debounceRendering)&&((BFe=Un.debounceRendering)||OFe)(AU)}function AU(){var e,t,r,n,o,s,u,f;for(fx.sort(SJ);e=fx.shift();)e.__d&&(t=fx.length,n=void 0,s=(o=(r=e).__v).__e,u=[],f=[],r.__P&&((n=Jy({},o)).__v=o.__v+1,Un.vnode&&Un.vnode(n),BJ(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[s]:null,u,s??fE(o),!!(32&o.__u),f),n.__v=o.__v,n.__.__k[n.__i]=n,zFe(u,n,f),n.__e!=s&&DFe(n)),fx.length>t&&fx.sort(SJ));AU.__r=0}function HFe(e,t,r,n,o,s,u,f,d,m,h){var y,v,E,C,B,R=n&&n.__k||NFe,M=t.length;for(r.__d=d,v2t(r,t,R),d=r.__d,y=0;y<M;y++)(E=r.__k[y])!=null&&(v=E.__i===-1?r_:R[E.__i]||r_,E.__i=y,BJ(e,E,v,o,s,u,f,d,m,h),C=E.__e,E.ref&&v.ref!=E.ref&&(v.ref&&IJ(v.ref,null,E),h.push(E.ref,E.__c||C,E)),B==null&&C!=null&&(B=C),65536&E.__u||v.__k===E.__k?d=LFe(E,d,e):typeof E.type==\"function\"&&E.__d!==void 0?d=E.__d:C&&(d=C.nextSibling),E.__d=void 0,E.__u&=-196609);r.__d=d,r.__e=B}function v2t(e,t,r){var n,o,s,u,f,d=t.length,m=r.length,h=m,y=0;for(e.__k=[],n=0;n<d;n++)(o=t[n])!=null&&typeof o!=\"boolean\"&&typeof o!=\"function\"?(u=n+y,(o=e.__k[n]=typeof o==\"string\"||typeof o==\"number\"||typeof o==\"bigint\"||o.constructor==String?wU(null,o,null,null,null):kJ(o)?wU(CU,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?wU(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(f=o.__i=w2t(o,r,u,h))!==-1&&(h--,(s=r[f])&&(s.__u|=131072)),s==null||s.__v===null?(f==-1&&y--,typeof o.type!=\"function\"&&(o.__u|=65536)):f!==u&&(f==u-1?y--:f==u+1?y++:(f>u?y--:y++,o.__u|=65536))):o=e.__k[n]=null;if(h)for(n=0;n<m;n++)(s=r[n])!=null&&(131072&s.__u)==0&&(s.__e==e.__d&&(e.__d=fE(s)),FFe(s,s))}function LFe(e,t,r){var n,o;if(typeof e.type==\"function\"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=LFe(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=fE(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function w2t(e,t,r,n){var o=e.key,s=e.type,u=r-1,f=r+1,d=t[r];if(d===null||d&&o==d.key&&s===d.type&&(131072&d.__u)==0)return r;if(n>(d!=null&&(131072&d.__u)==0?1:0))for(;u>=0||f<t.length;){if(u>=0){if((d=t[u])&&(131072&d.__u)==0&&o==d.key&&s===d.type)return u;u--}if(f<t.length){if((d=t[f])&&(131072&d.__u)==0&&o==d.key&&s===d.type)return f;f++}}return-1}function PFe(e,t,r){t[0]===\"-\"?e.setProperty(t,r??\"\"):e[t]=r==null?\"\":typeof r!=\"number\"||x2t.test(t)?r:r+\"px\"}function vU(e,t,r,n,o){var s;e:if(t===\"style\")if(typeof r==\"string\")e.style.cssText=r;else{if(typeof n==\"string\"&&(e.style.cssText=n=\"\"),n)for(t in n)r&&t in r||PFe(e.style,t,\"\");if(r)for(t in r)n&&r[t]===n[t]||PFe(e.style,t,r[t])}else if(t[0]===\"o\"&&t[1]===\"n\")s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,\"$1\")),t=t.toLowerCase()in e||t===\"onFocusOut\"||t===\"onFocusIn\"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=r,r?n?r.u=n.u:(r.u=_J,e.addEventListener(t,s?TJ:CJ,s)):e.removeEventListener(t,s?TJ:CJ,s);else{if(o==\"http://www.w3.org/2000/svg\")t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(t!=\"width\"&&t!=\"height\"&&t!=\"href\"&&t!=\"list\"&&t!=\"form\"&&t!=\"tabIndex\"&&t!=\"download\"&&t!=\"rowSpan\"&&t!=\"colSpan\"&&t!=\"role\"&&t!=\"popover\"&&t in e)try{e[t]=r??\"\";break e}catch{}typeof r==\"function\"||(r==null||r===!1&&t[4]!==\"-\"?e.removeAttribute(t):e.setAttribute(t,t==\"popover\"&&r==1?\"\":r))}}function RFe(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=_J++;else if(t.t<r.u)return;return r(Un.event?Un.event(t):t)}}}function BJ(e,t,r,n,o,s,u,f,d,m){var h,y,v,E,C,B,R,M,U,O,N,j,K,G,J,Y,W=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(d=!!(32&r.__u),s=[f=t.__e=r.__e]),(h=Un.__b)&&h(t);e:if(typeof W==\"function\")try{if(M=t.props,U=\"prototype\"in W&&W.prototype.render,O=(h=W.contextType)&&n[h.__c],N=h?O?O.props.value:h.__:n,r.__c?R=(y=t.__c=r.__c).__=y.__E:(U?t.__c=y=new W(M,N):(t.__c=y=new EU(M,N),y.constructor=W,y.render=A2t),O&&O.sub(y),y.props=M,y.state||(y.state={}),y.context=N,y.__n=n,v=y.__d=!0,y.__h=[],y._sb=[]),U&&y.__s==null&&(y.__s=y.state),U&&W.getDerivedStateFromProps!=null&&(y.__s==y.state&&(y.__s=Jy({},y.__s)),Jy(y.__s,W.getDerivedStateFromProps(M,y.__s))),E=y.props,C=y.state,y.__v=t,v)U&&W.getDerivedStateFromProps==null&&y.componentWillMount!=null&&y.componentWillMount(),U&&y.componentDidMount!=null&&y.__h.push(y.componentDidMount);else{if(U&&W.getDerivedStateFromProps==null&&M!==E&&y.componentWillReceiveProps!=null&&y.componentWillReceiveProps(M,N),!y.__e&&(y.shouldComponentUpdate!=null&&y.shouldComponentUpdate(M,y.__s,N)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(y.props=M,y.state=y.__s,y.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(ie){ie&&(ie.__=t)}),j=0;j<y._sb.length;j++)y.__h.push(y._sb[j]);y._sb=[],y.__h.length&&u.push(y);break e}y.componentWillUpdate!=null&&y.componentWillUpdate(M,y.__s,N),U&&y.componentDidUpdate!=null&&y.__h.push(function(){y.componentDidUpdate(E,C,B)})}if(y.context=N,y.props=M,y.__P=e,y.__e=!1,K=Un.__r,G=0,U){for(y.state=y.__s,y.__d=!1,K&&K(t),h=y.render(y.props,y.state,y.context),J=0;J<y._sb.length;J++)y.__h.push(y._sb[J]);y._sb=[]}else do y.__d=!1,K&&K(t),h=y.render(y.props,y.state,y.context),y.state=y.__s;while(y.__d&&++G<25);y.state=y.__s,y.getChildContext!=null&&(n=Jy(Jy({},n),y.getChildContext())),U&&!v&&y.getSnapshotBeforeUpdate!=null&&(B=y.getSnapshotBeforeUpdate(E,C)),HFe(e,kJ(Y=h!=null&&h.type===CU&&h.key==null?h.props.children:h)?Y:[Y],t,r,n,o,s,u,f,d,m),y.base=t.__e,t.__u&=-161,y.__h.length&&u.push(y),R&&(y.__E=y.__=null)}catch(ie){if(t.__v=null,d||s!=null){for(t.__u|=d?160:32;f&&f.nodeType===8&&f.nextSibling;)f=f.nextSibling;s[s.indexOf(f)]=null,t.__e=f}else t.__e=r.__e,t.__k=r.__k;Un.__e(ie,t,r)}else s==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=E2t(r.__e,t,r,n,o,s,u,d,m);(h=Un.diffed)&&h(t)}function zFe(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)IJ(r[n],r[++n],r[++n]);Un.__c&&Un.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){Un.__e(s,o.__v)}})}function E2t(e,t,r,n,o,s,u,f,d){var m,h,y,v,E,C,B,R=r.props,M=t.props,U=t.type;if(U===\"svg\"?o=\"http://www.w3.org/2000/svg\":U===\"math\"?o=\"http://www.w3.org/1998/Math/MathML\":o||(o=\"http://www.w3.org/1999/xhtml\"),s!=null){for(m=0;m<s.length;m++)if((E=s[m])&&\"setAttribute\"in E==!!U&&(U?E.localName===U:E.nodeType===3)){e=E,s[m]=null;break}}if(e==null){if(U===null)return document.createTextNode(M);e=document.createElementNS(o,U,M.is&&M),f&&(Un.__m&&Un.__m(t,s),f=!1),s=null}if(U===null)R===M||f&&e.data===M||(e.data=M);else{if(s=s&&SU.call(e.childNodes),R=r.props||r_,!f&&s!=null)for(R={},m=0;m<e.attributes.length;m++)R[(E=e.attributes[m]).name]=E.value;for(m in R)if(E=R[m],m!=\"children\"){if(m==\"dangerouslySetInnerHTML\")y=E;else if(!(m in M)){if(m==\"value\"&&\"defaultValue\"in M||m==\"checked\"&&\"defaultChecked\"in M)continue;vU(e,m,null,E,o)}}for(m in M)E=M[m],m==\"children\"?v=E:m==\"dangerouslySetInnerHTML\"?h=E:m==\"value\"?C=E:m==\"checked\"?B=E:f&&typeof E!=\"function\"||R[m]===E||vU(e,m,E,R[m],o);if(h)f||y&&(h.__html===y.__html||h.__html===e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(y&&(e.innerHTML=\"\"),HFe(e,kJ(v)?v:[v],t,r,n,U===\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":o,s,u,s?s[0]:r.__k&&fE(r,0),f,d),s!=null)for(m=s.length;m--;)UFe(s[m]);f||(m=\"value\",U===\"progress\"&&C==null?e.removeAttribute(\"value\"):C!==void 0&&(C!==e[m]||U===\"progress\"&&!C||U===\"option\"&&C!==R[m])&&vU(e,m,C,R[m],o),m=\"checked\",B!==void 0&&B!==e[m]&&vU(e,m,B,R[m],o))}return e}function IJ(e,t,r){try{if(typeof e==\"function\"){var n=typeof e.__u==\"function\";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){Un.__e(o,r)}}function FFe(e,t,r){var n,o;if(Un.unmount&&Un.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||IJ(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(s){Un.__e(s,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&FFe(n[o],t,r||typeof e.type!=\"function\");r||UFe(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function A2t(e,t,r){return this.constructor(e,r)}function n_(e,t,r){var n,o,s,u;Un.__&&Un.__(e,t),o=(n=typeof r==\"function\")?null:r&&r.__k||t.__k,s=[],u=[],BJ(t,e=(!n&&r||t).__k=tn(CU,null,[e]),o||r_,r_,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?SU.call(t.childNodes):null,s,!n&&r?r:o?o.__e:t.firstChild,n,u),zFe(s,e,u)}var SU,Un,MFe,b2t,fx,BFe,OFe,SJ,_J,CJ,TJ,g2t,r_,NFe,x2t,kJ,dE=x(()=>{c();r_={},NFe=[],x2t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,kJ=Array.isArray;SU=NFe.slice,Un={__e:function(e,t,r,n){for(var o,s,u;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),u=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),u=o.__d),u)return o.__E=o}catch(f){e=f}throw e}},MFe=0,b2t=function(e){return e!=null&&e.constructor==null},EU.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Jy({},this.state),typeof e==\"function\"&&(e=e(Jy({},r),this.props)),e&&Jy(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),IFe(this))},EU.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),IFe(this))},EU.prototype.render=CU,fx=[],OFe=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,SJ=function(e,t){return e.__v.__b-t.__v.__b},AU.__r=0,_J=0,CJ=RFe(!1),TJ=RFe(!0),g2t=0});function JFe(e,t){Jo.__h&&Jo.__h(No,e,RJ||t),RJ=0;var r=No.__H||(No.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function OJ(e){return RJ=1,S2t(XFe,e)}function S2t(e,t,r){var n=JFe(_U++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):XFe(void 0,t),function(f){var d=n.__N?n.__N[0]:n.__[0],m=n.t(d,f);d!==m&&(n.__N=[m,n.__[1]],n.__c.setState({}))}],n.__c=No,!No.u)){var o=function(f,d,m){if(!n.__c.__H)return!0;var h=n.__c.__H.__.filter(function(v){return!!v.__c});if(h.every(function(v){return!v.__N}))return!s||s.call(this,f,d,m);var y=!1;return h.forEach(function(v){if(v.__N){var E=v.__[0];v.__=v.__N,v.__N=void 0,E!==v.__[0]&&(y=!0)}}),!(!y&&n.__c.props===f)&&(!s||s.call(this,f,d,m))};No.u=!0;var s=No.shouldComponentUpdate,u=No.componentWillUpdate;No.componentWillUpdate=function(f,d,m){if(this.__e){var h=s;s=void 0,o(f,d,m),s=h}u&&u.call(this,f,d,m)},No.shouldComponentUpdate=o}return n.__N||n.__}function YFe(e,t){var r=JFe(_U++,3);!Jo.__s&&_2t(r.__H,t)&&(r.__=e,r.i=t,No.__H.__h.push(r))}function C2t(){for(var e;e=ZFe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(TU),e.__H.__h.forEach(MJ),e.__H.__h=[]}catch(t){e.__H.__h=[],Jo.__e(t,e.__v)}}function T2t(e){var t,r=function(){clearTimeout(n),QFe&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);QFe&&(t=requestAnimationFrame(r))}function TU(e){var t=No,r=e.__c;typeof r==\"function\"&&(e.__c=void 0,r()),No=t}function MJ(e){var t=No;e.__c=e.__(),No=t}function _2t(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function XFe(e,t){return typeof t==\"function\"?t(e):t}var _U,No,PJ,jFe,RJ,ZFe,Jo,qFe,$Fe,GFe,VFe,KFe,WFe,QFe,eje=x(()=>{c();dE();RJ=0,ZFe=[],Jo=Un,qFe=Jo.__b,$Fe=Jo.__r,GFe=Jo.diffed,VFe=Jo.__c,KFe=Jo.unmount,WFe=Jo.__;Jo.__b=function(e){No=null,qFe&&qFe(e)},Jo.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),WFe&&WFe(e,t)},Jo.__r=function(e){$Fe&&$Fe(e),_U=0;var t=(No=e.__c).__H;t&&(PJ===No?(t.__h=[],No.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0})):(t.__h.forEach(TU),t.__h.forEach(MJ),t.__h=[],_U=0)),PJ=No},Jo.diffed=function(e){GFe&&GFe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ZFe.push(t)!==1&&jFe===Jo.requestAnimationFrame||((jFe=Jo.requestAnimationFrame)||T2t)(C2t)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.i=void 0})),PJ=No=null},Jo.__c=function(e,t){t.some(function(r){try{r.__h.forEach(TU),r.__h=r.__h.filter(function(n){return!n.__||MJ(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Jo.__e(n,r.__v)}}),VFe&&VFe(e,t)},Jo.unmount=function(e){KFe&&KFe(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{TU(n)}catch(o){t=o}}),r.__H=void 0,t&&Jo.__e(t,r.__v))};QFe=typeof requestAnimationFrame==\"function\"});function k2t(){try{return window.frameElement!==null}catch{return!1}}function tje(){try{return k2t()&&window.top?window.top.location:window.location}catch{return window.location}}function rje(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((e=window?.navigator)===null||e===void 0?void 0:e.userAgent)}function kU(){var e,t;return(t=(e=window?.matchMedia)===null||e===void 0?void 0:e.call(window,\"(prefers-color-scheme: dark)\").matches)!==null&&t!==void 0?t:!1}var o_=x(()=>{c()});var nje,oje=x(()=>{c();nje=\".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}\"});var B2t,I2t,pE,NJ,P2t,BU=x(()=>{c();Zy();dE();dE();eje();o_();oje();B2t=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+\",I2t=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=\",pE=class{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=kU()}attach(t){this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-snackbar-root\",t.appendChild(this.root),this.render()}presentItem(t){let r=this.nextItemKey++;return this.items.set(r,t),this.render(),()=>{this.items.delete(r),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&n_(tn(\"div\",null,tn(NJ,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([t,r])=>tn(P2t,Object.assign({},r,{key:t}))))),this.root)}},NJ=e=>tn(\"div\",{class:nh(\"-cbwsdk-snackbar-container\")},tn(\"style\",null,nje),tn(\"div\",{class:\"-cbwsdk-snackbar\"},e.children)),P2t=({autoExpand:e,message:t,menuItems:r})=>{let[n,o]=OJ(!0),[s,u]=OJ(e??!1);YFe(()=>{let d=[window.setTimeout(()=>{o(!1)},1),window.setTimeout(()=>{u(!0)},1e4)];return()=>{d.forEach(window.clearTimeout)}});let f=()=>{u(!s)};return tn(\"div\",{class:nh(\"-cbwsdk-snackbar-instance\",n&&\"-cbwsdk-snackbar-instance-hidden\",s&&\"-cbwsdk-snackbar-instance-expanded\")},tn(\"div\",{class:\"-cbwsdk-snackbar-instance-header\",onClick:f},tn(\"img\",{src:B2t,class:\"-cbwsdk-snackbar-instance-header-cblogo\"}),\" \",tn(\"div\",{class:\"-cbwsdk-snackbar-instance-header-message\"},t),tn(\"div\",{class:\"-gear-container\"},!s&&tn(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},tn(\"circle\",{cx:\"12\",cy:\"12\",r:\"12\",fill:\"#F5F7F8\"})),tn(\"img\",{src:I2t,class:\"-gear-icon\",title:\"Expand\"}))),r&&r.length>0&&tn(\"div\",{class:\"-cbwsdk-snackbar-instance-menu\"},r.map((d,m)=>tn(\"div\",{class:nh(\"-cbwsdk-snackbar-instance-menu-item\",d.isRed&&\"-cbwsdk-snackbar-instance-menu-item-is-red\"),onClick:d.onClick,key:m},tn(\"svg\",{width:d.svgWidth,height:d.svgHeight,viewBox:\"0 0 10 11\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},tn(\"path\",{\"fill-rule\":d.defaultFillRule,\"clip-rule\":d.defaultClipRule,d:d.path,fill:\"#AAAAAA\"})),tn(\"span\",{class:nh(\"-cbwsdk-snackbar-instance-menu-item-info\",d.isRed&&\"-cbwsdk-snackbar-instance-menu-item-info-is-red\")},d.info)))))}});var UJ,IU,DJ=x(()=>{c();AJ();BU();UJ=\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",IU=class{constructor(){this.attached=!1,this.snackbar=new pE}attach(){if(this.attached)throw new Error(\"Coinbase Wallet SDK UI is already attached\");let t=document.documentElement,r=document.createElement(\"div\");r.className=\"-cbwsdk-css-reset\",t.appendChild(r),this.snackbar.attach(r),this.attached=!0,xU()}showConnecting(t){let r;return t.isUnlinkedErrorState?r={autoExpand:!0,message:\"Connection lost\",menuItems:[{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]}:r={message:\"Confirm on phone\",menuItems:[{isRed:!0,info:\"Cancel transaction\",svgWidth:\"11\",svgHeight:\"11\",path:\"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z\",defaultFillRule:\"inherit\",defaultClipRule:\"inherit\",onClick:t.onCancel},{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:UJ,defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]},this.snackbar.presentItem(r)}}});function sje(e){let t=(window.innerWidth-aje)/2+window.screenX,r=(window.innerHeight-ije)/2+window.screenY;O2t(e);function n(){let s=`wallet_${crypto.randomUUID()}`,u=window.open(e,s,`width=${aje}, height=${ije}, left=${t}, top=${r}`);return u?.focus(),u||null}let o=n();if(!o){let s=a_();return new Promise((u,f)=>{uE({snackbarContext:\"popup_blocked\"}),s.presentItem({autoExpand:!0,message:M2t,menuItems:[Object.assign(Object.assign({},R2t),{onClick:()=>{rh({snackbarContext:\"popup_blocked\",snackbarAction:\"confirm\"}),o=n(),o?u(o):f(ke.rpc.internal(\"Popup window was blocked\")),s.clear()}})]})})}return Promise.resolve(o)}function cje(e){e&&!e.closed&&e.close()}function O2t(e){let t={sdkName:nU,sdkVersion:Hu,origin:window.location.origin,coop:gFe()};for(let[r,n]of Object.entries(t))e.searchParams.has(r)||e.searchParams.append(r,n.toString())}function a_(){if(!PU){let e=document.createElement(\"div\");e.className=\"-cbwsdk-css-reset\",document.body.appendChild(e),PU=new pE,PU.attach(e)}return PU}var aje,ije,R2t,M2t,PU,RU=x(()=>{c();wi();gU();DJ();BU();cx();mU();aje=420,ije=700,R2t={isRed:!1,info:\"Retry\",svgWidth:\"10\",svgHeight:\"11\",path:UJ,defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\"},M2t=\"Popup was blocked. Try again.\",PU=null});var MU,uje=x(()=>{c();cE();wi();CFe();RU();cx();MU=class{constructor({url:t=vFe,metadata:r,preference:n}){this.popup=null,this.listeners=new Map,this.postMessage=async o=>{(await this.waitForPopupLoaded()).postMessage(o,this.url.origin)},this.postRequestAndWaitForResponse=async o=>{let s=this.onMessage(({requestId:u})=>u===o.id);return this.postMessage(o),await s},this.onMessage=async o=>new Promise((s,u)=>{let f=d=>{if(d.origin!==this.url.origin)return;let m=d.data;o(m)&&(s(m),window.removeEventListener(\"message\",f),this.listeners.delete(f))};window.addEventListener(\"message\",f),this.listeners.set(f,{reject:u})}),this.disconnect=()=>{cje(this.popup),this.popup=null,this.listeners.forEach(({reject:o},s)=>{o(ke.provider.userRejectedRequest(\"Request rejected\")),window.removeEventListener(\"message\",s)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(EFe(),this.popup=await sje(this.url),this.onMessage(({event:o})=>o===\"PopupUnload\").then(()=>{this.disconnect(),SFe()}).catch(()=>{}),this.onMessage(({event:o})=>o===\"PopupLoaded\").then(o=>{this.postMessage({requestId:o.id,data:{version:Hu,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw ke.rpc.internal();return AFe(),this.popup})),this.url=new URL(t),this.metadata=r,this.preference=n}}});function Yo(e){return e.errorMessage!==void 0}var OU=x(()=>{c()});function lje(e){let t=cFe(N2t(e),{shouldIncludeStack:!0}),r=new URL(\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\");return r.searchParams.set(\"version\",Hu),r.searchParams.set(\"code\",t.code.toString()),r.searchParams.set(\"message\",t.message),Object.assign(Object.assign({},t),{docUrl:r.href})}function N2t(e){var t;if(typeof e==\"string\")return{message:e,code:qn.rpc.internal};if(Yo(e)){let r=e.errorMessage,n=(t=e.errorCode)!==null&&t!==void 0?t:r.match(/(denied|rejected)/i)?qn.provider.userRejectedRequest:void 0;return Object.assign(Object.assign({},e),{message:r,code:n,data:{method:e.method}})}return e}var fje=x(()=>{c();cx();OU();XT();pJ()});var NU,dje=x(()=>{c();YR();NU=class extends l6.default{}});var qd,i_=x(()=>{c();qd=class e{constructor(t,r){this.scope=t,this.module=r}storeObject(t,r){this.setItem(t,JSON.stringify(r))}loadObject(t){let r=this.getItem(t);return r?JSON.parse(r):void 0}setItem(t,r){localStorage.setItem(this.scopedKey(t),r)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){let t=this.scopedKey(\"\"),r=[];for(let n=0;n<localStorage.length;n++){let o=localStorage.key(n);typeof o==\"string\"&&o.startsWith(t)&&r.push(o)}r.forEach(n=>localStorage.removeItem(n))}scopedKey(t){return`-${this.scope}${this.module?`:${this.module}`:\"\"}:${t}`}static clearAll(){new e(\"CBWSDK\").clear(),new e(\"walletlink\").clear()}}});var pje,mje,hje,yje,bje,gje=x(()=>{c();Qy();pje=({signerType:e})=>{zt(\"provider.signer.loaded_from_storage\",{action:kt.measurement,componentType:_t.unknown,signerType:e},Bt.low)},mje=({method:e,correlationId:t})=>{zt(\"provider.request.started\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t},Bt.high)},hje=({method:e,correlationId:t,signerType:r,errorMessage:n})=>{zt(\"provider.request.error\",{action:kt.error,componentType:_t.unknown,method:e,signerType:r,correlationId:t,errorMessage:n},Bt.high)},yje=({method:e,signerType:t,correlationId:r})=>{zt(\"provider.request.responded\",{action:kt.unknown,componentType:_t.unknown,method:e,signerType:t,correlationId:r},Bt.high)},bje=()=>{zt(\"provider.enable_function.called\",{action:kt.measurement,componentType:_t.unknown},Bt.high)}});var xje,vje,wje=x(()=>{c();Qy();xje=()=>{zt(\"signer.selection.requested\",{action:kt.unknown,componentType:_t.unknown},Bt.high)},vje=e=>{zt(\"signer.selection.responded\",{action:kt.unknown,componentType:_t.unknown,signerType:e},Bt.high)}});var UU,ec,DU=x(()=>{c();rU();UU=rE(()=>({correlationIds:new Map})),ec={get:e=>UU.getState().correlationIds.get(e),set:(e,t)=>{UU.setState(r=>{let n=new Map(r.correlationIds);return n.set(e,t),{correlationIds:n}})},delete:e=>{UU.setState(t=>{let r=new Map(t.correlationIds);return r.delete(e),{correlationIds:r}})},clear:()=>{UU.setState({correlationIds:new Map})}}});var Eje,Aje,Sje,Cje,Tje,_je,kje=x(()=>{c();Lu();Qy();Eje=({method:e,correlationId:t})=>{var r;zt(\"scw_signer.handshake.started\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t,enableAutoSubAccounts:(r=Re.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},Bt.high)},Aje=({method:e,correlationId:t,errorMessage:r})=>{var n;zt(\"scw_signer.handshake.error\",{action:kt.error,componentType:_t.unknown,method:e,correlationId:t,errorMessage:r,enableAutoSubAccounts:(n=Re.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},Bt.high)},Sje=({method:e,correlationId:t})=>{var r;zt(\"scw_signer.handshake.completed\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t,enableAutoSubAccounts:(r=Re.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},Bt.high)},Cje=({method:e,correlationId:t})=>{var r;zt(\"scw_signer.request.started\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t,enableAutoSubAccounts:(r=Re.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},Bt.high)},Tje=({method:e,correlationId:t,errorMessage:r})=>{var n;zt(\"scw_signer.request.error\",{action:kt.error,componentType:_t.unknown,method:e,correlationId:t,errorMessage:r,enableAutoSubAccounts:(n=Re.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},Bt.high)},_je=({method:e,correlationId:t})=>{var r;zt(\"scw_signer.request.completed\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t,enableAutoSubAccounts:(r=Re.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},Bt.high)}});var Bje,Ije,Pje,Rje,Mje,Oje,Nje,Uje,Dje,Hje=x(()=>{c();Lu();Qy();Bje=({method:e,correlationId:t})=>{var r;zt(\"scw_sub_account.request.started\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t,enableAutoSubAccounts:(r=Re.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},Bt.high)},Ije=({method:e,correlationId:t})=>{var r;zt(\"scw_sub_account.request.completed\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t,enableAutoSubAccounts:(r=Re.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},Bt.high)},Pje=({method:e,correlationId:t,errorMessage:r})=>{var n;zt(\"scw_sub_account.request.error\",{action:kt.error,componentType:_t.unknown,method:e,correlationId:t,errorMessage:r,enableAutoSubAccounts:(n=Re.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},Bt.high)},Rje=({method:e,correlationId:t})=>{var r;zt(\"scw_sub_account.add_owner.started\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t,enableAutoSubAccounts:(r=Re.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},Bt.high)},Mje=({method:e,correlationId:t})=>{var r;zt(\"scw_sub_account.add_owner.completed\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t,enableAutoSubAccounts:(r=Re.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},Bt.high)},Oje=({method:e,correlationId:t,errorMessage:r})=>{var n;zt(\"scw_sub_account.add_owner.error\",{action:kt.error,componentType:_t.unknown,method:e,correlationId:t,errorMessage:r,enableAutoSubAccounts:(n=Re.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},Bt.high)},Nje=({method:e,correlationId:t})=>{var r;zt(\"scw_sub_account.insufficient_balance.error_handling.started\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t,enableAutoSubAccounts:(r=Re.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},Bt.high)},Uje=({method:e,correlationId:t})=>{var r;zt(\"scw_sub_account.insufficient_balance.error_handling.completed\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t,enableAutoSubAccounts:(r=Re.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},Bt.high)},Dje=({method:e,correlationId:t,errorMessage:r})=>{var n;zt(\"scw_sub_account.insufficient_balance.error_handling.error\",{action:kt.error,componentType:_t.unknown,method:e,correlationId:t,errorMessage:r,enableAutoSubAccounts:(n=Re.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},Bt.high)}});var oh,HJ=x(()=>{c();oh=e=>\"message\"in e&&typeof e.message==\"string\"?e.message:\"\"});var LJ,Lje=x(()=>{c();LJ=[{inputs:[{name:\"preOpGas\",type:\"uint256\"},{name:\"paid\",type:\"uint256\"},{name:\"validAfter\",type:\"uint48\"},{name:\"validUntil\",type:\"uint48\"},{name:\"targetSuccess\",type:\"bool\"},{name:\"targetResult\",type:\"bytes\"}],name:\"ExecutionResult\",type:\"error\"},{inputs:[{name:\"opIndex\",type:\"uint256\"},{name:\"reason\",type:\"string\"}],name:\"FailedOp\",type:\"error\"},{inputs:[{name:\"sender\",type:\"address\"}],name:\"SenderAddressResult\",type:\"error\"},{inputs:[{name:\"aggregator\",type:\"address\"}],name:\"SignatureValidationFailed\",type:\"error\"},{inputs:[{components:[{name:\"preOpGas\",type:\"uint256\"},{name:\"prefund\",type:\"uint256\"},{name:\"sigFailed\",type:\"bool\"},{name:\"validAfter\",type:\"uint48\"},{name:\"validUntil\",type:\"uint48\"},{name:\"paymasterContext\",type:\"bytes\"}],name:\"returnInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"senderInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"factoryInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"paymasterInfo\",type:\"tuple\"}],name:\"ValidationResult\",type:\"error\"},{inputs:[{components:[{name:\"preOpGas\",type:\"uint256\"},{name:\"prefund\",type:\"uint256\"},{name:\"sigFailed\",type:\"bool\"},{name:\"validAfter\",type:\"uint48\"},{name:\"validUntil\",type:\"uint48\"},{name:\"paymasterContext\",type:\"bytes\"}],name:\"returnInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"senderInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"factoryInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"paymasterInfo\",type:\"tuple\"},{components:[{name:\"aggregator\",type:\"address\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"stakeInfo\",type:\"tuple\"}],name:\"aggregatorInfo\",type:\"tuple\"}],name:\"ValidationResultWithAggregation\",type:\"error\"},{anonymous:!1,inputs:[{indexed:!0,name:\"userOpHash\",type:\"bytes32\"},{indexed:!0,name:\"sender\",type:\"address\"},{indexed:!1,name:\"factory\",type:\"address\"},{indexed:!1,name:\"paymaster\",type:\"address\"}],name:\"AccountDeployed\",type:\"event\"},{anonymous:!1,inputs:[],name:\"BeforeExecution\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"totalDeposit\",type:\"uint256\"}],name:\"Deposited\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"aggregator\",type:\"address\"}],name:\"SignatureAggregatorChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"totalStaked\",type:\"uint256\"},{indexed:!1,name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"StakeLocked\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"withdrawTime\",type:\"uint256\"}],name:\"StakeUnlocked\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"withdrawAddress\",type:\"address\"},{indexed:!1,name:\"amount\",type:\"uint256\"}],name:\"StakeWithdrawn\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"userOpHash\",type:\"bytes32\"},{indexed:!0,name:\"sender\",type:\"address\"},{indexed:!0,name:\"paymaster\",type:\"address\"},{indexed:!1,name:\"nonce\",type:\"uint256\"},{indexed:!1,name:\"success\",type:\"bool\"},{indexed:!1,name:\"actualGasCost\",type:\"uint256\"},{indexed:!1,name:\"actualGasUsed\",type:\"uint256\"}],name:\"UserOperationEvent\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"userOpHash\",type:\"bytes32\"},{indexed:!0,name:\"sender\",type:\"address\"},{indexed:!1,name:\"nonce\",type:\"uint256\"},{indexed:!1,name:\"revertReason\",type:\"bytes\"}],name:\"UserOperationRevertReason\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"withdrawAddress\",type:\"address\"},{indexed:!1,name:\"amount\",type:\"uint256\"}],name:\"Withdrawn\",type:\"event\"},{inputs:[],name:\"SIG_VALIDATION_FAILED\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"initCode\",type:\"bytes\"},{name:\"sender\",type:\"address\"},{name:\"paymasterAndData\",type:\"bytes\"}],name:\"_validateSenderAndPaymaster\",outputs:[],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"unstakeDelaySec\",type:\"uint32\"}],name:\"addStake\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"balanceOf\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"depositTo\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"\",type:\"address\"}],name:\"deposits\",outputs:[{name:\"deposit\",type:\"uint112\"},{name:\"staked\",type:\"bool\"},{name:\"stake\",type:\"uint112\"},{name:\"unstakeDelaySec\",type:\"uint32\"},{name:\"withdrawTime\",type:\"uint48\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"getDepositInfo\",outputs:[{components:[{name:\"deposit\",type:\"uint112\"},{name:\"staked\",type:\"bool\"},{name:\"stake\",type:\"uint112\"},{name:\"unstakeDelaySec\",type:\"uint32\"},{name:\"withdrawTime\",type:\"uint48\"}],name:\"info\",type:\"tuple\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"sender\",type:\"address\"},{name:\"key\",type:\"uint192\"}],name:\"getNonce\",outputs:[{name:\"nonce\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"initCode\",type:\"bytes\"}],name:\"getSenderAddress\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"}],name:\"getUserOpHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{components:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOps\",type:\"tuple[]\"},{name:\"aggregator\",type:\"address\"},{name:\"signature\",type:\"bytes\"}],name:\"opsPerAggregator\",type:\"tuple[]\"},{name:\"beneficiary\",type:\"address\"}],name:\"handleAggregatedOps\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"ops\",type:\"tuple[]\"},{name:\"beneficiary\",type:\"address\"}],name:\"handleOps\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"key\",type:\"uint192\"}],name:\"incrementNonce\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"callData\",type:\"bytes\"},{components:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"paymaster\",type:\"address\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"}],name:\"mUserOp\",type:\"tuple\"},{name:\"userOpHash\",type:\"bytes32\"},{name:\"prefund\",type:\"uint256\"},{name:\"contextOffset\",type:\"uint256\"},{name:\"preOpGas\",type:\"uint256\"}],name:\"opInfo\",type:\"tuple\"},{name:\"context\",type:\"bytes\"}],name:\"innerHandleOp\",outputs:[{name:\"actualGasCost\",type:\"uint256\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"\",type:\"address\"},{name:\"\",type:\"uint192\"}],name:\"nonceSequenceNumber\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"op\",type:\"tuple\"},{name:\"target\",type:\"address\"},{name:\"targetCallData\",type:\"bytes\"}],name:\"simulateHandleOp\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"}],name:\"simulateValidation\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"unlockStake\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"withdrawAddress\",type:\"address\"}],name:\"withdrawStake\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"withdrawAddress\",type:\"address\"},{name:\"withdrawAmount\",type:\"uint256\"}],name:\"withdrawTo\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{stateMutability:\"payable\",type:\"receive\"}]});var zJ,zje=x(()=>{c();zJ=\"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789\"});function HU(e,t={}){let{forHash:r}=t,{authorization:n,factory:o,factoryData:s}=e;return r&&(o===\"0x7702\"||o===\"0x7702000000000000000000000000000000000000\")?n?mr([n.address,s??\"0x\"]):\"0x7702000000000000000000000000000000000000\":o?mr([o,s??\"0x\"]):\"0x\"}var FJ=x(()=>{c();Jn()});function LU(e,t={}){let{callGasLimit:r,callData:n,maxPriorityFeePerGas:o,maxFeePerGas:s,paymaster:u,paymasterData:f,paymasterPostOpGasLimit:d,paymasterSignature:m,paymasterVerificationGasLimit:h,sender:y,signature:v=\"0x\",verificationGasLimit:E}=e,C=mr([Qr(le(E||0n),{size:16}),Qr(le(r||0n),{size:16})]),B=HU(e,t),R=mr([Qr(le(o||0n),{size:16}),Qr(le(s||0n),{size:16})]),M=e.nonce??0n,U=u?mr([u,Qr(le(h||0n),{size:16}),Qr(le(d||0n),{size:16}),f||\"0x\",...m?t.forHash?[Fje]:[m,Qr(le($t(m)),{size:2}),Fje]:[]]):\"0x\",O=e.preVerificationGas??0n;return{accountGasLimits:C,callData:n,initCode:B,gasFees:R,nonce:M,paymasterAndData:U,preVerificationGas:O,sender:y,signature:v}}var Fje,jJ=x(()=>{c();Jn();Gp();ji();W0();FJ();Fje=\"0x22e325a297439656\"});function jje(e){let{chainId:t,entryPointAddress:r,userOperation:n}=e,o=LU(n,{forHash:!0});return{types:U2t,primaryType:\"PackedUserOperation\",domain:{name:\"ERC4337\",version:\"1\",chainId:t,verifyingContract:r},message:o}}var U2t,qje=x(()=>{c();jJ();U2t={PackedUserOperation:[{type:\"address\",name:\"sender\"},{type:\"uint256\",name:\"nonce\"},{type:\"bytes\",name:\"initCode\"},{type:\"bytes\",name:\"callData\"},{type:\"bytes32\",name:\"accountGasLimits\"},{type:\"uint256\",name:\"preVerificationGas\"},{type:\"bytes32\",name:\"gasFees\"},{type:\"bytes\",name:\"paymasterAndData\"}]}});function qJ(e){let{chainId:t,entryPointAddress:r,entryPointVersion:n}=e,o=e.userOperation,{authorization:s,callData:u=\"0x\",callGasLimit:f,maxFeePerGas:d,maxPriorityFeePerGas:m,nonce:h,paymasterAndData:y=\"0x\",preVerificationGas:v,sender:E,verificationGasLimit:C}=o;if(n===\"0.8\"||n===\"0.9\")return yd(jje({chainId:t,entryPointAddress:r,userOperation:o}));let B=(()=>{if(n===\"0.6\"){let R=o.initCode?.slice(0,42),M=o.initCode?.slice(42),U=HU({authorization:s,factory:R,factoryData:M},{forHash:!0});return zn([{type:\"address\"},{type:\"uint256\"},{type:\"bytes32\"},{type:\"bytes32\"},{type:\"uint256\"},{type:\"uint256\"},{type:\"uint256\"},{type:\"uint256\"},{type:\"uint256\"},{type:\"bytes32\"}],[E,h,Gt(U),Gt(u),f,C,v,d,m,Gt(y)])}if(n===\"0.7\"){let R=LU(o,{forHash:!0});return zn([{type:\"address\"},{type:\"uint256\"},{type:\"bytes32\"},{type:\"bytes32\"},{type:\"bytes32\"},{type:\"uint256\"},{type:\"bytes32\"},{type:\"bytes32\"}],[R.sender,R.nonce,Gt(R.initCode),Gt(R.callData),R.accountGasLimits,R.preVerificationGas,R.gasFees,Gt(R.paymasterAndData)])}throw new Error(`entryPointVersion \"${n}\" not supported.`)})();return Gt(zn([{type:\"bytes32\"},{type:\"address\"},{type:\"uint256\"}],[Gt(B),r,BigInt(t)]))}var $je=x(()=>{c();cu();Is();WI();FJ();qje();jJ()});async function $J(e){let{extend:t,nonceKeyManager:r=_V({source:{get(){return Date.now()},set(){}}}),...n}=e,o=!1,s=await e.getAddress();return{...t,...n,address:s,async getFactoryArgs(){return\"isDeployed\"in this&&await this.isDeployed()?{factory:void 0,factoryData:void 0}:e.getFactoryArgs()},async getNonce(u){let f=u?.key??BigInt(await r.consume({address:s,chainId:e.client.chain.id,client:e.client}));return e.getNonce?await e.getNonce({...u,key:f}):await Xr(e.client,{abi:mv([\"function getNonce(address, uint192) pure returns (uint256)\"]),address:e.entryPoint.address,functionName:\"getNonce\",args:[s,f]})},async isDeployed(){return o?!0:(o=!!await Ae(e.client,Ji,\"getCode\")({address:s}),o)},...e.sign?{async sign(u){let[{factory:f,factoryData:d},m]=await Promise.all([this.getFactoryArgs(),e.sign(u)]);return f&&d?gP({address:f,data:d,signature:m}):m}}:{},async signMessage(u){let[{factory:f,factoryData:d},m]=await Promise.all([this.getFactoryArgs(),e.signMessage(u)]);return f&&d&&f!==\"0x7702\"?gP({address:f,data:d,signature:m}):m},async signTypedData(u){let[{factory:f,factoryData:d},m]=await Promise.all([this.getFactoryArgs(),e.signTypedData(u)]);return f&&d&&f!==\"0x7702\"?gP({address:f,data:d,signature:m}):m},type:\"smart\"}}var Gje=x(()=>{c();hv();Q1();Ic();Zt();Wme();Ohe()});function s_(e,t=\"\"){if(typeof e!=\"boolean\"){let r=t&&`\"${t}\"`;throw new Error(r+\"expected boolean, got type=\"+typeof e)}return e}function Yy(e,t,r=\"\"){let n=u0(e),o=e?.length,s=t!==void 0;if(!n||s&&o!==t){let u=r&&`\"${r}\" `,f=s?` of length ${t}`:\"\",d=n?`length=${o}`:`type=${typeof e}`;throw new Error(u+\"expected Uint8Array\"+f+\", got \"+d)}return e}function mE(e){let t=e.toString(16);return t.length&1?\"0\"+t:t}function WJ(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);return e===\"\"?KJ:BigInt(\"0x\"+e)}function dx(e){return WJ(Qf(e))}function zU(e){return Gi(e),WJ(Qf(Uint8Array.from(e).reverse()))}function c_(e,t){return l0(e.toString(16).padStart(t*2,\"0\"))}function FU(e,t){return c_(e,t).reverse()}function Xa(e,t,r){let n;if(typeof t==\"string\")try{n=l0(t)}catch(s){throw new Error(e+\" must be hex string or Uint8Array, cause: \"+s)}else if(u0(t))n=Uint8Array.from(t);else throw new Error(e+\" must be hex string or Uint8Array\");let o=n.length;if(typeof r==\"number\"&&o!==r)throw new Error(e+\" of length \"+r+\" expected, got \"+o);return n}function Vje(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return r===0}function QJ(e,t,r){return GJ(e)&&GJ(t)&&GJ(r)&&t<=e&&e<r}function ZJ(e,t,r,n){if(!QJ(t,r,n))throw new Error(\"expected valid \"+e+\": \"+r+\" <= n < \"+n+\", got \"+t)}function u_(e){let t;for(t=0;e>KJ;e>>=VJ,t+=1);return t}function JJ(e,t,r){if(typeof e!=\"number\"||e<2)throw new Error(\"hashLen must be a number\");if(typeof t!=\"number\"||t<2)throw new Error(\"qByteLen must be a number\");if(typeof r!=\"function\")throw new Error(\"hmacFn must be a function\");let n=E=>new Uint8Array(E),o=E=>Uint8Array.of(E),s=n(e),u=n(e),f=0,d=()=>{s.fill(1),u.fill(0),f=0},m=(...E)=>r(u,s,...E),h=(E=n(0))=>{u=m(o(0),E),s=m(),E.length!==0&&(u=m(o(1),E),s=m())},y=()=>{if(f++>=1e3)throw new Error(\"drbg: tried 1000 values\");let E=0,C=[];for(;E<t;){s=m();let B=s.slice();C.push(B),E+=s.length}return Bs(...C)};return(E,C)=>{d(),h(E);let B;for(;!(B=C(y()));)h();return d(),B}}function l_(e,t,r={}){if(!e||typeof e!=\"object\")throw new Error(\"expected valid options object\");function n(o,s,u){let f=e[o];if(u&&f===void 0)return;let d=typeof f;if(d!==s||f===null)throw new Error(`param \"${o}\" is invalid: expected ${s}, got ${d}`)}Object.entries(t).forEach(([o,s])=>n(o,s,!1)),Object.entries(r).forEach(([o,s])=>n(o,s,!0))}function jU(e){let t=new WeakMap;return(r,...n)=>{let o=t.get(r);if(o!==void 0)return o;let s=e(r,...n);return t.set(r,s),s}}var KJ,VJ,GJ,ah,f_=x(()=>{c();wl();wl();KJ=BigInt(0),VJ=BigInt(1);GJ=e=>typeof e==\"bigint\"&&KJ<=e;ah=e=>(VJ<<BigInt(e))-VJ});function Fu(e,t){let r=e%t;return r>=is?r:t+r}function Dc(e,t,r){let n=e;for(;t-- >is;)n*=n,n%=r;return n}function Kje(e,t){if(e===is)throw new Error(\"invert: expected non-zero number\");if(t<=is)throw new Error(\"invert: expected positive modulus, got \"+t);let r=Fu(e,t),n=t,o=is,s=Ei,u=Ei,f=is;for(;r!==is;){let m=n/r,h=n%r,y=o-u*m,v=s-f*m;n=r,r=h,o=u,s=f,u=y,f=v}if(n!==Ei)throw new Error(\"invert: does not exist\");return Fu(o,t)}function YJ(e,t,r){if(!e.eql(e.sqr(t),r))throw new Error(\"Cannot find square root\")}function eqe(e,t){let r=(e.ORDER+Ei)/Zje,n=e.pow(t,r);return YJ(e,n,t),n}function F2t(e,t){let r=(e.ORDER-Jje)/Yje,n=e.mul(t,px),o=e.pow(n,r),s=e.mul(t,o),u=e.mul(e.mul(s,px),o),f=e.mul(s,e.sub(u,e.ONE));return YJ(e,f,t),f}function j2t(e){let t=ju(e),r=tqe(e),n=r(t,t.neg(t.ONE)),o=r(t,n),s=r(t,t.neg(n)),u=(e+L2t)/Xje;return(f,d)=>{let m=f.pow(d,u),h=f.mul(m,n),y=f.mul(m,o),v=f.mul(m,s),E=f.eql(f.sqr(h),d),C=f.eql(f.sqr(y),d);m=f.cmov(m,h,E),h=f.cmov(v,y,C);let B=f.eql(f.sqr(h),d),R=f.cmov(m,h,B);return YJ(f,R,d),R}}function tqe(e){if(e<Qje)throw new Error(\"sqrt is not defined for small field\");let t=e-Ei,r=0;for(;t%px===is;)t/=px,r++;let n=px,o=ju(e);for(;Wje(o,n)===1;)if(n++>1e3)throw new Error(\"Cannot find square root: probably non-prime P\");if(r===1)return eqe;let s=o.pow(n,t),u=(t+Ei)/px;return function(d,m){if(d.is0(m))return m;if(Wje(d,m)!==1)throw new Error(\"Cannot find square root\");let h=r,y=d.mul(d.ONE,s),v=d.pow(m,t),E=d.pow(m,u);for(;!d.eql(v,d.ONE);){if(d.is0(v))return d.ZERO;let C=1,B=d.sqr(v);for(;!d.eql(B,d.ONE);)if(C++,B=d.sqr(B),C===h)throw new Error(\"Cannot find square root\");let R=Ei<<BigInt(h-C-1),M=d.pow(y,R);h=C,y=d.sqr(M),v=d.mul(v,y),E=d.mul(E,M)}return E}}function q2t(e){return e%Zje===Qje?eqe:e%Yje===Jje?F2t:e%Xje===z2t?j2t(e):tqe(e)}function XJ(e){let t={ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"number\",BITS:\"number\"},r=$2t.reduce((n,o)=>(n[o]=\"function\",n),t);return l_(e,r),e}function G2t(e,t,r){if(r<is)throw new Error(\"invalid exponent, negatives unsupported\");if(r===is)return e.ONE;if(r===Ei)return t;let n=e.ONE,o=t;for(;r>is;)r&Ei&&(n=e.mul(n,o)),o=e.sqr(o),r>>=Ei;return n}function qU(e,t,r=!1){let n=new Array(t.length).fill(r?e.ZERO:void 0),o=t.reduce((u,f,d)=>e.is0(f)?u:(n[d]=u,e.mul(u,f)),e.ONE),s=e.inv(o);return t.reduceRight((u,f,d)=>e.is0(f)?u:(n[d]=e.mul(u,n[d]),e.mul(u,f)),s),n}function Wje(e,t){let r=(e.ORDER-Ei)/px,n=e.pow(t,r),o=e.eql(n,e.ONE),s=e.eql(n,e.ZERO),u=e.eql(n,e.neg(e.ONE));if(!o&&!s&&!u)throw new Error(\"invalid Legendre symbol result\");return o?1:s?0:-1}function $U(e,t){t!==void 0&&xl(t);let r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function ju(e,t,r=!1,n={}){if(e<=is)throw new Error(\"invalid field: expected ORDER > 0, got \"+e);let o,s,u=!1,f;if(typeof t==\"object\"&&t!=null){if(n.sqrt||r)throw new Error(\"cannot specify opts in two arguments\");let v=t;v.BITS&&(o=v.BITS),v.sqrt&&(s=v.sqrt),typeof v.isLE==\"boolean\"&&(r=v.isLE),typeof v.modFromBytes==\"boolean\"&&(u=v.modFromBytes),f=v.allowedLengths}else typeof t==\"number\"&&(o=t),n.sqrt&&(s=n.sqrt);let{nBitLength:d,nByteLength:m}=$U(e,o);if(m>2048)throw new Error(\"invalid field: expected ORDER of <= 2048 bytes\");let h,y=Object.freeze({ORDER:e,isLE:r,BITS:d,BYTES:m,MASK:ah(d),ZERO:is,ONE:Ei,allowedLengths:f,create:v=>Fu(v,e),isValid:v=>{if(typeof v!=\"bigint\")throw new Error(\"invalid field element: expected bigint, got \"+typeof v);return is<=v&&v<e},is0:v=>v===is,isValidNot0:v=>!y.is0(v)&&y.isValid(v),isOdd:v=>(v&Ei)===Ei,neg:v=>Fu(-v,e),eql:(v,E)=>v===E,sqr:v=>Fu(v*v,e),add:(v,E)=>Fu(v+E,e),sub:(v,E)=>Fu(v-E,e),mul:(v,E)=>Fu(v*E,e),pow:(v,E)=>G2t(y,v,E),div:(v,E)=>Fu(v*Kje(E,e),e),sqrN:v=>v*v,addN:(v,E)=>v+E,subN:(v,E)=>v-E,mulN:(v,E)=>v*E,inv:v=>Kje(v,e),sqrt:s||(v=>(h||(h=q2t(e)),h(y,v))),toBytes:v=>r?FU(v,m):c_(v,m),fromBytes:(v,E=!0)=>{if(f){if(!f.includes(v.length)||v.length>m)throw new Error(\"Field.fromBytes: expected \"+f+\" bytes, got \"+v.length);let B=new Uint8Array(m);B.set(v,r?0:B.length-v.length),v=B}if(v.length!==m)throw new Error(\"Field.fromBytes: expected \"+m+\" bytes, got \"+v.length);let C=r?zU(v):dx(v);if(u&&(C=Fu(C,e)),!E&&!y.isValid(C))throw new Error(\"invalid field element: outside of range 0..ORDER\");return C},invertBatch:v=>qU(y,v),cmov:(v,E,C)=>C?E:v});return Object.freeze(y)}function rqe(e){if(typeof e!=\"bigint\")throw new Error(\"field order must be bigint\");let t=e.toString(2).length;return Math.ceil(t/8)}function eY(e){let t=rqe(e);return t+Math.ceil(t/2)}function tY(e,t,r=!1){let n=e.length,o=rqe(t),s=eY(t);if(n<16||n<s||n>1024)throw new Error(\"expected \"+s+\"-1024 bytes of input, got \"+n);let u=r?zU(e):dx(e),f=Fu(u,t-Ei)+Ei;return r?FU(f,o):c_(f,o)}var is,Ei,px,Qje,Zje,Jje,L2t,Yje,z2t,Xje,$2t,d_=x(()=>{c();f_();is=BigInt(0),Ei=BigInt(1),px=BigInt(2),Qje=BigInt(3),Zje=BigInt(4),Jje=BigInt(5),L2t=BigInt(7),Yje=BigInt(8),z2t=BigInt(9),Xje=BigInt(16);$2t=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"]});function p_(e,t){let r=t.negate();return e?r:t}function VU(e,t){let r=qU(e.Fp,t.map(n=>n.Z));return t.map((n,o)=>e.fromAffine(n.toAffine(r[o])))}function iqe(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error(\"invalid window size, expected [1..\"+t+\"], got W=\"+e)}function rY(e,t){iqe(e,t);let r=Math.ceil(t/e)+1,n=2**(e-1),o=2**e,s=ah(e),u=BigInt(e);return{windows:r,windowSize:n,mask:s,maxNumber:o,shiftBy:u}}function nqe(e,t,r){let{windowSize:n,mask:o,maxNumber:s,shiftBy:u}=r,f=Number(e&o),d=e>>u;f>n&&(f-=s,d+=mx);let m=t*n,h=m+Math.abs(f)-1,y=f===0,v=f<0,E=t%2!==0;return{nextN:d,offset:h,isZero:y,isNeg:v,isNegF:E,offsetF:m}}function K2t(e,t){if(!Array.isArray(e))throw new Error(\"array expected\");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error(\"invalid point at index \"+n)})}function W2t(e,t){if(!Array.isArray(e))throw new Error(\"array of scalars expected\");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error(\"invalid scalar at index \"+n)})}function oY(e){return sqe.get(e)||1}function oqe(e){if(e!==hE)throw new Error(\"invalid wNAF\")}function cqe(e,t,r,n){let o=t,s=e.ZERO,u=e.ZERO;for(;r>hE||n>hE;)r&mx&&(s=s.add(o)),n&mx&&(u=u.add(o)),o=o.double(),r>>=mx,n>>=mx;return{p1:s,p2:u}}function uqe(e,t,r,n){K2t(r,e),W2t(n,t);let o=r.length,s=n.length;if(o!==s)throw new Error(\"arrays of points and scalars must have equal length\");let u=e.ZERO,f=u_(BigInt(o)),d=1;f>12?d=f-3:f>4?d=f-2:f>0&&(d=2);let m=ah(d),h=new Array(Number(m)+1).fill(u),y=Math.floor((t.BITS-1)/d)*d,v=u;for(let E=y;E>=0;E-=d){h.fill(u);for(let B=0;B<s;B++){let R=n[B],M=Number(R>>BigInt(E)&m);h[M]=h[M].add(r[B])}let C=u;for(let B=h.length-1,R=u;B>0;B--)R=R.add(h[B]),C=C.add(R);if(v=v.add(C),E!==0)for(let B=0;B<d;B++)v=v.double()}return v}function aqe(e,t,r){if(t){if(t.ORDER!==e)throw new Error(\"Field.ORDER must match order: Fp == p, Fn == n\");return XJ(t),t}else return ju(e,{isLE:r})}function lqe(e,t,r={},n){if(n===void 0&&(n=e===\"edwards\"),!t||typeof t!=\"object\")throw new Error(`expected valid ${e} CURVE object`);for(let d of[\"p\",\"n\",\"h\"]){let m=t[d];if(!(typeof m==\"bigint\"&&m>hE))throw new Error(`CURVE.${d} must be positive bigint`)}let o=aqe(t.p,r.Fp,n),s=aqe(t.n,r.Fn,n),f=[\"Gx\",\"Gy\",\"a\",e===\"weierstrass\"?\"b\":\"d\"];for(let d of f)if(!o.isValid(t[d]))throw new Error(`CURVE.${d} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:o,Fn:s}}var hE,mx,nY,sqe,GU,fqe=x(()=>{c();f_();d_();hE=BigInt(0),mx=BigInt(1);nY=new WeakMap,sqe=new WeakMap;GU=class{constructor(t,r){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=r}_unsafeLadder(t,r,n=this.ZERO){let o=t;for(;r>hE;)r&mx&&(n=n.add(o)),o=o.double(),r>>=mx;return n}precomputeWindow(t,r){let{windows:n,windowSize:o}=rY(r,this.bits),s=[],u=t,f=u;for(let d=0;d<n;d++){f=u,s.push(f);for(let m=1;m<o;m++)f=f.add(u),s.push(f);u=f.double()}return s}wNAF(t,r,n){if(!this.Fn.isValid(n))throw new Error(\"invalid scalar\");let o=this.ZERO,s=this.BASE,u=rY(t,this.bits);for(let f=0;f<u.windows;f++){let{nextN:d,offset:m,isZero:h,isNeg:y,isNegF:v,offsetF:E}=nqe(n,f,u);n=d,h?s=s.add(p_(v,r[E])):o=o.add(p_(y,r[m]))}return oqe(n),{p:o,f:s}}wNAFUnsafe(t,r,n,o=this.ZERO){let s=rY(t,this.bits);for(let u=0;u<s.windows&&n!==hE;u++){let{nextN:f,offset:d,isZero:m,isNeg:h}=nqe(n,u,s);if(n=f,!m){let y=r[d];o=o.add(h?y.negate():y)}}return oqe(n),o}getPrecomputes(t,r,n){let o=nY.get(r);return o||(o=this.precomputeWindow(r,t),t!==1&&(typeof n==\"function\"&&(o=n(o)),nY.set(r,o))),o}cached(t,r,n){let o=oY(t);return this.wNAF(o,this.getPrecomputes(o,t,n),r)}unsafe(t,r,n,o){let s=oY(t);return s===1?this._unsafeLadder(t,r,o):this.wNAFUnsafe(s,this.getPrecomputes(s,t,n),r,o)}createCache(t,r){iqe(r,this.bits),sqe.set(t,r),nY.delete(t)}hasCache(t){return oY(t)!==1}}});function Q2t(e,t,r){let[[n,o],[s,u]]=t,f=dqe(u*e,r),d=dqe(-o*e,r),m=e-f*n-d*s,h=-f*o-d*u,y=m<sh,v=h<sh;y&&(m=-m),v&&(h=-h);let E=ah(Math.ceil(u_(r)/2))+bE;if(m<sh||m>=E||h<sh||h>=E)throw new Error(\"splitScalar (endomorphism): failed, k=\"+e);return{k1neg:y,k1:m,k2neg:v,k2:h}}function iY(e){if(![\"compact\",\"recovered\",\"der\"].includes(e))throw new Error(\\'Signature format must be \"compact\", \"recovered\", or \"der\"\\');return e}function aY(e,t){let r={};for(let n of Object.keys(t))r[n]=e[n]===void 0?t[n]:e[n];return s_(r.lowS,\"lowS\"),s_(r.prehash,\"prehash\"),r.format!==void 0&&iY(r.format),r}function yE(e,t){let{BYTES:r}=e,n;if(typeof t==\"bigint\")n=t;else{let o=Xa(\"private key\",t);try{n=e.fromBytes(o)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof t}`)}}if(!e.isValidNot0(n))throw new Error(\"invalid private key: out of range [1..N-1]\");return n}function J2t(e,t={}){let r=lqe(\"weierstrass\",e,t),{Fp:n,Fn:o}=r,s=r.CURVE,{h:u,n:f}=s;l_(t,{},{allowInfinityPoint:\"boolean\",clearCofactor:\"function\",isTorsionFree:\"function\",fromBytes:\"function\",toBytes:\"function\",endo:\"object\",wrapPrivateKey:\"boolean\"});let{endo:d}=t;if(d&&(!n.is0(s.a)||typeof d.beta!=\"bigint\"||!Array.isArray(d.basises)))throw new Error(\\'invalid endo: expected \"beta\": bigint and \"basises\": array\\');let m=hqe(n,o);function h(){if(!n.isOdd)throw new Error(\"compression is not supported: Field does not have .isOdd()\")}function y(re,H,A){let{x:T,y:P}=H.toAffine(),D=n.toBytes(T);if(s_(A,\"isCompressed\"),A){h();let L=!n.isOdd(P);return Bs(mqe(L),D)}else return Bs(Uint8Array.of(4),D,n.toBytes(P))}function v(re){Yy(re,void 0,\"Point\");let{publicKey:H,publicKeyUncompressed:A}=m,T=re.length,P=re[0],D=re.subarray(1);if(T===H&&(P===2||P===3)){let L=n.fromBytes(D);if(!n.isValid(L))throw new Error(\"bad point: is not on curve, wrong x\");let V=B(L),Z;try{Z=n.sqrt(V)}catch(Q){let me=Q instanceof Error?\": \"+Q.message:\"\";throw new Error(\"bad point: is not on curve, sqrt error\"+me)}h();let z=n.isOdd(Z);return(P&1)===1!==z&&(Z=n.neg(Z)),{x:L,y:Z}}else if(T===A&&P===4){let L=n.BYTES,V=n.fromBytes(D.subarray(0,L)),Z=n.fromBytes(D.subarray(L,L*2));if(!R(V,Z))throw new Error(\"bad point: is not on curve\");return{x:V,y:Z}}else throw new Error(`bad point: got length ${T}, expected compressed=${H} or uncompressed=${A}`)}let E=t.toBytes||y,C=t.fromBytes||v;function B(re){let H=n.sqr(re),A=n.mul(H,re);return n.add(n.add(A,n.mul(re,s.a)),s.b)}function R(re,H){let A=n.sqr(H),T=B(re);return n.eql(A,T)}if(!R(s.Gx,s.Gy))throw new Error(\"bad curve params: generator point\");let M=n.mul(n.pow(s.a,KU),Z2t),U=n.mul(n.sqr(s.b),BigInt(27));if(n.is0(n.add(M,U)))throw new Error(\"bad curve params: a or b\");function O(re,H,A=!1){if(!n.isValid(H)||A&&n.is0(H))throw new Error(`bad point coordinate ${re}`);return H}function N(re){if(!(re instanceof Y))throw new Error(\"ProjectivePoint expected\")}function j(re){if(!d||!d.basises)throw new Error(\"no endo\");return Q2t(re,d.basises,o.ORDER)}let K=jU((re,H)=>{let{X:A,Y:T,Z:P}=re;if(n.eql(P,n.ONE))return{x:A,y:T};let D=re.is0();H==null&&(H=D?n.ONE:n.inv(P));let L=n.mul(A,H),V=n.mul(T,H),Z=n.mul(P,H);if(D)return{x:n.ZERO,y:n.ZERO};if(!n.eql(Z,n.ONE))throw new Error(\"invZ was invalid\");return{x:L,y:V}}),G=jU(re=>{if(re.is0()){if(t.allowInfinityPoint&&!n.is0(re.Y))return;throw new Error(\"bad point: ZERO\")}let{x:H,y:A}=re.toAffine();if(!n.isValid(H)||!n.isValid(A))throw new Error(\"bad point: x or y not field elements\");if(!R(H,A))throw new Error(\"bad point: equation left != right\");if(!re.isTorsionFree())throw new Error(\"bad point: not in prime-order subgroup\");return!0});function J(re,H,A,T,P){return A=new Y(n.mul(A.X,re),A.Y,A.Z),H=p_(T,H),A=p_(P,A),H.add(A)}class Y{constructor(H,A,T){this.X=O(\"x\",H),this.Y=O(\"y\",A,!0),this.Z=O(\"z\",T),Object.freeze(this)}static CURVE(){return s}static fromAffine(H){let{x:A,y:T}=H||{};if(!H||!n.isValid(A)||!n.isValid(T))throw new Error(\"invalid affine point\");if(H instanceof Y)throw new Error(\"projective point not allowed\");return n.is0(A)&&n.is0(T)?Y.ZERO:new Y(A,T,n.ONE)}static fromBytes(H){let A=Y.fromAffine(C(Yy(H,void 0,\"point\")));return A.assertValidity(),A}static fromHex(H){return Y.fromBytes(Xa(\"pointHex\",H))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(H=8,A=!0){return ie.createCache(this,H),A||this.multiply(KU),this}assertValidity(){G(this)}hasEvenY(){let{y:H}=this.toAffine();if(!n.isOdd)throw new Error(\"Field doesn\\'t support isOdd\");return!n.isOdd(H)}equals(H){N(H);let{X:A,Y:T,Z:P}=this,{X:D,Y:L,Z:V}=H,Z=n.eql(n.mul(A,V),n.mul(D,P)),z=n.eql(n.mul(T,V),n.mul(L,P));return Z&&z}negate(){return new Y(this.X,n.neg(this.Y),this.Z)}double(){let{a:H,b:A}=s,T=n.mul(A,KU),{X:P,Y:D,Z:L}=this,V=n.ZERO,Z=n.ZERO,z=n.ZERO,I=n.mul(P,P),Q=n.mul(D,D),me=n.mul(L,L),ge=n.mul(P,D);return ge=n.add(ge,ge),z=n.mul(P,L),z=n.add(z,z),V=n.mul(H,z),Z=n.mul(T,me),Z=n.add(V,Z),V=n.sub(Q,Z),Z=n.add(Q,Z),Z=n.mul(V,Z),V=n.mul(ge,V),z=n.mul(T,z),me=n.mul(H,me),ge=n.sub(I,me),ge=n.mul(H,ge),ge=n.add(ge,z),z=n.add(I,I),I=n.add(z,I),I=n.add(I,me),I=n.mul(I,ge),Z=n.add(Z,I),me=n.mul(D,L),me=n.add(me,me),I=n.mul(me,ge),V=n.sub(V,I),z=n.mul(me,Q),z=n.add(z,z),z=n.add(z,z),new Y(V,Z,z)}add(H){N(H);let{X:A,Y:T,Z:P}=this,{X:D,Y:L,Z:V}=H,Z=n.ZERO,z=n.ZERO,I=n.ZERO,Q=s.a,me=n.mul(s.b,KU),ge=n.mul(A,D),Se=n.mul(T,L),Ce=n.mul(P,V),$e=n.add(A,T),je=n.add(D,L);$e=n.mul($e,je),je=n.add(ge,Se),$e=n.sub($e,je),je=n.add(A,P);let Ot=n.add(D,V);return je=n.mul(je,Ot),Ot=n.add(ge,Ce),je=n.sub(je,Ot),Ot=n.add(T,P),Z=n.add(L,V),Ot=n.mul(Ot,Z),Z=n.add(Se,Ce),Ot=n.sub(Ot,Z),I=n.mul(Q,je),Z=n.mul(me,Ce),I=n.add(Z,I),Z=n.sub(Se,I),I=n.add(Se,I),z=n.mul(Z,I),Se=n.add(ge,ge),Se=n.add(Se,ge),Ce=n.mul(Q,Ce),je=n.mul(me,je),Se=n.add(Se,Ce),Ce=n.sub(ge,Ce),Ce=n.mul(Q,Ce),je=n.add(je,Ce),ge=n.mul(Se,je),z=n.add(z,ge),ge=n.mul(Ot,je),Z=n.mul($e,Z),Z=n.sub(Z,ge),ge=n.mul($e,Se),I=n.mul(Ot,I),I=n.add(I,ge),new Y(Z,z,I)}subtract(H){return this.add(H.negate())}is0(){return this.equals(Y.ZERO)}multiply(H){let{endo:A}=t;if(!o.isValidNot0(H))throw new Error(\"invalid scalar: out of range\");let T,P,D=L=>ie.cached(this,L,V=>VU(Y,V));if(A){let{k1neg:L,k1:V,k2neg:Z,k2:z}=j(H),{p:I,f:Q}=D(V),{p:me,f:ge}=D(z);P=Q.add(ge),T=J(A.beta,I,me,L,Z)}else{let{p:L,f:V}=D(H);T=L,P=V}return VU(Y,[T,P])[0]}multiplyUnsafe(H){let{endo:A}=t,T=this;if(!o.isValid(H))throw new Error(\"invalid scalar: out of range\");if(H===sh||T.is0())return Y.ZERO;if(H===bE)return T;if(ie.hasCache(this))return this.multiply(H);if(A){let{k1neg:P,k1:D,k2neg:L,k2:V}=j(H),{p1:Z,p2:z}=cqe(Y,T,D,V);return J(A.beta,Z,z,P,L)}else return ie.unsafe(T,H)}multiplyAndAddUnsafe(H,A,T){let P=this.multiplyUnsafe(A).add(H.multiplyUnsafe(T));return P.is0()?void 0:P}toAffine(H){return K(this,H)}isTorsionFree(){let{isTorsionFree:H}=t;return u===bE?!0:H?H(Y,this):ie.unsafe(this,f).is0()}clearCofactor(){let{clearCofactor:H}=t;return u===bE?this:H?H(Y,this):this.multiplyUnsafe(u)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}toBytes(H=!0){return s_(H,\"isCompressed\"),this.assertValidity(),E(Y,this,H)}toHex(H=!0){return Qf(this.toBytes(H))}toString(){return`<Point ${this.is0()?\"ZERO\":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(H=!0){return this.toBytes(H)}_setWindowSize(H){this.precompute(H)}static normalizeZ(H){return VU(Y,H)}static msm(H,A){return uqe(Y,o,H,A)}static fromPrivateKey(H){return Y.BASE.multiply(yE(o,H))}}Y.BASE=new Y(s.Gx,s.Gy,n.ONE),Y.ZERO=new Y(n.ZERO,n.ONE,n.ZERO),Y.Fp=n,Y.Fn=o;let W=o.BITS,ie=new GU(Y,t.endo?Math.ceil(W/2):W);return Y.BASE.precompute(8),Y}function mqe(e){return Uint8Array.of(e?2:3)}function hqe(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function Y2t(e,t={}){let{Fn:r}=e,n=t.randomBytes||Zp,o=Object.assign(hqe(e.Fp,r),{seed:eY(r.ORDER)});function s(E){try{return!!yE(r,E)}catch{return!1}}function u(E,C){let{publicKey:B,publicKeyUncompressed:R}=o;try{let M=E.length;return C===!0&&M!==B||C===!1&&M!==R?!1:!!e.fromBytes(E)}catch{return!1}}function f(E=n(o.seed)){return tY(Yy(E,o.seed,\"seed\"),r.ORDER)}function d(E,C=!0){return e.BASE.multiply(yE(r,E)).toBytes(C)}function m(E){let C=f(E);return{secretKey:C,publicKey:d(C)}}function h(E){if(typeof E==\"bigint\")return!1;if(E instanceof e)return!0;let{secretKey:C,publicKey:B,publicKeyUncompressed:R}=o;if(r.allowedLengths||C===B)return;let M=Xa(\"key\",E).length;return M===B||M===R}function y(E,C,B=!0){if(h(E)===!0)throw new Error(\"first arg must be private key\");if(h(C)===!1)throw new Error(\"second arg must be public key\");let R=yE(r,E);return e.fromHex(C).multiply(R).toBytes(B)}return Object.freeze({getPublicKey:d,getSharedSecret:y,keygen:m,Point:e,utils:{isValidSecretKey:s,isValidPublicKey:u,randomSecretKey:f,isValidPrivateKey:s,randomPrivateKey:f,normPrivateKeyToScalar:E=>yE(r,E),precompute(E=8,C=e.BASE){return C.precompute(E,!1)}},lengths:o})}function X2t(e,t,r={}){K9(t),l_(r,{},{hmac:\"function\",lowS:\"boolean\",randomBytes:\"function\",bits2int:\"function\",bits2int_modN:\"function\"});let n=r.randomBytes||Zp,o=r.hmac||((A,...T)=>lS(t,A,Bs(...T))),{Fp:s,Fn:u}=e,{ORDER:f,BITS:d}=u,{keygen:m,getPublicKey:h,getSharedSecret:y,utils:v,lengths:E}=Y2t(e,r),C={prehash:!1,lowS:typeof r.lowS==\"boolean\"?r.lowS:!1,format:void 0,extraEntropy:!1},B=\"compact\";function R(A){let T=f>>bE;return A>T}function M(A,T){if(!u.isValidNot0(T))throw new Error(`invalid signature ${A}: out of range 1..Point.Fn.ORDER`);return T}function U(A,T){iY(T);let P=E.signature,D=T===\"compact\"?P:T===\"recovered\"?P+1:void 0;return Yy(A,D,`${T} signature`)}class O{constructor(T,P,D){this.r=M(\"r\",T),this.s=M(\"s\",P),D!=null&&(this.recovery=D),Object.freeze(this)}static fromBytes(T,P=B){U(T,P);let D;if(P===\"der\"){let{r:z,s:I}=ih.toSig(Yy(T));return new O(z,I)}P===\"recovered\"&&(D=T[0],P=\"compact\",T=T.subarray(1));let L=u.BYTES,V=T.subarray(0,L),Z=T.subarray(L,L*2);return new O(u.fromBytes(V),u.fromBytes(Z),D)}static fromHex(T,P){return this.fromBytes(l0(T),P)}addRecoveryBit(T){return new O(this.r,this.s,T)}recoverPublicKey(T){let P=s.ORDER,{r:D,s:L,recovery:V}=this;if(V==null||![0,1,2,3].includes(V))throw new Error(\"recovery id invalid\");if(f*pqe<P&&V>1)throw new Error(\"recovery id is ambiguous for h>1 curve\");let z=V===2||V===3?D+f:D;if(!s.isValid(z))throw new Error(\"recovery id 2 or 3 invalid\");let I=s.toBytes(z),Q=e.fromBytes(Bs(mqe((V&1)===0),I)),me=u.inv(z),ge=j(Xa(\"msgHash\",T)),Se=u.create(-ge*me),Ce=u.create(L*me),$e=e.BASE.multiplyUnsafe(Se).add(Q.multiplyUnsafe(Ce));if($e.is0())throw new Error(\"point at infinify\");return $e.assertValidity(),$e}hasHighS(){return R(this.s)}toBytes(T=B){if(iY(T),T===\"der\")return l0(ih.hexFromSig(this));let P=u.toBytes(this.r),D=u.toBytes(this.s);if(T===\"recovered\"){if(this.recovery==null)throw new Error(\"recovery bit must be present\");return Bs(Uint8Array.of(this.recovery),P,D)}return Bs(P,D)}toHex(T){return Qf(this.toBytes(T))}assertValidity(){}static fromCompact(T){return O.fromBytes(Xa(\"sig\",T),\"compact\")}static fromDER(T){return O.fromBytes(Xa(\"sig\",T),\"der\")}normalizeS(){return this.hasHighS()?new O(this.r,u.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes(\"der\")}toDERHex(){return Qf(this.toBytes(\"der\"))}toCompactRawBytes(){return this.toBytes(\"compact\")}toCompactHex(){return Qf(this.toBytes(\"compact\"))}}let N=r.bits2int||function(T){if(T.length>8192)throw new Error(\"input is too large\");let P=dx(T),D=T.length*8-d;return D>0?P>>BigInt(D):P},j=r.bits2int_modN||function(T){return u.create(N(T))},K=ah(d);function G(A){return ZJ(\"num < 2^\"+d,A,sh,K),u.toBytes(A)}function J(A,T){return Yy(A,void 0,\"message\"),T?Yy(t(A),void 0,\"prehashed message\"):A}function Y(A,T,P){if([\"recovered\",\"canonical\"].some(Se=>Se in P))throw new Error(\"sign() legacy options not supported\");let{lowS:D,prehash:L,extraEntropy:V}=aY(P,C);A=J(A,L);let Z=j(A),z=yE(u,T),I=[G(z),G(Z)];if(V!=null&&V!==!1){let Se=V===!0?n(E.secretKey):V;I.push(Xa(\"extraEntropy\",Se))}let Q=Bs(...I),me=Z;function ge(Se){let Ce=N(Se);if(!u.isValidNot0(Ce))return;let $e=u.inv(Ce),je=e.BASE.multiply(Ce).toAffine(),Ot=u.create(je.x);if(Ot===sh)return;let Te=u.create($e*u.create(me+Ot*z));if(Te===sh)return;let It=(je.x===Ot?0:2)|Number(je.y&bE),Gn=Te;return D&&R(Te)&&(Gn=u.neg(Te),It^=1),new O(Ot,Gn,It)}return{seed:Q,k2sig:ge}}function W(A,T,P={}){A=Xa(\"message\",A);let{seed:D,k2sig:L}=Y(A,T,P);return JJ(t.outputLen,u.BYTES,o)(D,L)}function ie(A){let T,P=typeof A==\"string\"||u0(A),D=!P&&A!==null&&typeof A==\"object\"&&typeof A.r==\"bigint\"&&typeof A.s==\"bigint\";if(!P&&!D)throw new Error(\"invalid signature, expected Uint8Array, hex string or Signature instance\");if(D)T=new O(A.r,A.s);else if(P){try{T=O.fromBytes(Xa(\"sig\",A),\"der\")}catch(L){if(!(L instanceof ih.Err))throw L}if(!T)try{T=O.fromBytes(Xa(\"sig\",A),\"compact\")}catch{return!1}}return T||!1}function re(A,T,P,D={}){let{lowS:L,prehash:V,format:Z}=aY(D,C);if(P=Xa(\"publicKey\",P),T=J(Xa(\"message\",T),V),\"strict\"in D)throw new Error(\"options.strict was renamed to lowS\");let z=Z===void 0?ie(A):O.fromBytes(Xa(\"sig\",A),Z);if(z===!1)return!1;try{let I=e.fromBytes(P);if(L&&z.hasHighS())return!1;let{r:Q,s:me}=z,ge=j(T),Se=u.inv(me),Ce=u.create(ge*Se),$e=u.create(Q*Se),je=e.BASE.multiplyUnsafe(Ce).add(I.multiplyUnsafe($e));return je.is0()?!1:u.create(je.x)===Q}catch{return!1}}function H(A,T,P={}){let{prehash:D}=aY(P,C);return T=J(T,D),O.fromBytes(A,\"recovered\").recoverPublicKey(T).toBytes()}return Object.freeze({keygen:m,getPublicKey:h,getSharedSecret:y,utils:v,lengths:E,Point:e,sign:W,verify:re,recoverPublicKey:H,Signature:O,hash:t})}function evt(e){let t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r=e.Fp,n=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(u=>Math.ceil(u/2)))):void 0,o=ju(t.n,{BITS:e.nBitLength,allowedLengths:n,modFromBytes:e.wrapPrivateKey}),s={Fp:r,Fn:o,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:s}}function tvt(e){let{CURVE:t,curveOpts:r}=evt(e),n={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:r,hash:e.hash,ecdsaOpts:n}}function rvt(e,t){let r=t.Point;return Object.assign({},t,{ProjectivePoint:r,CURVE:Object.assign({},e,$U(r.Fn.ORDER,r.Fn.BITS))})}function yqe(e){let{CURVE:t,curveOpts:r,hash:n,ecdsaOpts:o}=tvt(e),s=J2t(t,r),u=X2t(s,n,o);return rvt(e,u)}var dqe,sY,ih,sh,bE,pqe,KU,Z2t,bqe=x(()=>{c();J$();wl();f_();fqe();d_();dqe=(e,t)=>(e+(e>=0?t:-t)/pqe)/t;sY=class extends Error{constructor(t=\"\"){super(t)}},ih={Err:sY,_tlv:{encode:(e,t)=>{let{Err:r}=ih;if(e<0||e>256)throw new r(\"tlv.encode: wrong tag\");if(t.length&1)throw new r(\"tlv.encode: unpadded data\");let n=t.length/2,o=mE(n);if(o.length/2&128)throw new r(\"tlv.encode: long form length too big\");let s=n>127?mE(o.length/2|128):\"\";return mE(e)+s+o+t},decode(e,t){let{Err:r}=ih,n=0;if(e<0||e>256)throw new r(\"tlv.encode: wrong tag\");if(t.length<2||t[n++]!==e)throw new r(\"tlv.decode: wrong tlv\");let o=t[n++],s=!!(o&128),u=0;if(!s)u=o;else{let d=o&127;if(!d)throw new r(\"tlv.decode(long): indefinite length not supported\");if(d>4)throw new r(\"tlv.decode(long): byte length is too big\");let m=t.subarray(n,n+d);if(m.length!==d)throw new r(\"tlv.decode: length bytes not complete\");if(m[0]===0)throw new r(\"tlv.decode(long): zero leftmost byte\");for(let h of m)u=u<<8|h;if(n+=d,u<128)throw new r(\"tlv.decode(long): not minimal encoding\")}let f=t.subarray(n,n+u);if(f.length!==u)throw new r(\"tlv.decode: wrong value length\");return{v:f,l:t.subarray(n+u)}}},_int:{encode(e){let{Err:t}=ih;if(e<sh)throw new t(\"integer: negative integers are not allowed\");let r=mE(e);if(Number.parseInt(r[0],16)&8&&(r=\"00\"+r),r.length&1)throw new t(\"unexpected DER parsing assertion: unpadded hex\");return r},decode(e){let{Err:t}=ih;if(e[0]&128)throw new t(\"invalid signature integer: negative\");if(e[0]===0&&!(e[1]&128))throw new t(\"invalid signature integer: unnecessary leading zero\");return dx(e)}},toSig(e){let{Err:t,_int:r,_tlv:n}=ih,o=Xa(\"signature\",e),{v:s,l:u}=n.decode(48,o);if(u.length)throw new t(\"invalid signature: left bytes after parsing\");let{v:f,l:d}=n.decode(2,s),{v:m,l:h}=n.decode(2,d);if(h.length)throw new t(\"invalid signature: left bytes after parsing\");return{r:r.decode(f),s:r.decode(m)}},hexFromSig(e){let{_tlv:t,_int:r}=ih,n=t.encode(2,r.encode(e.r)),o=t.encode(2,r.encode(e.s)),s=n+o;return t.encode(48,s)}},sh=BigInt(0),bE=BigInt(1),pqe=BigInt(2),KU=BigInt(3),Z2t=BigInt(4)});function gE(e,t){let r=n=>yqe({...e,hash:n});return{...r(t),create:r}}var cY=x(()=>{c();bqe();});function ovt(e){let t=lY.p,r=BigInt(3),n=BigInt(6),o=BigInt(11),s=BigInt(22),u=BigInt(23),f=BigInt(44),d=BigInt(88),m=e*e*e%t,h=m*m*e%t,y=Dc(h,r,t)*h%t,v=Dc(y,r,t)*h%t,E=Dc(v,gqe,t)*m%t,C=Dc(E,o,t)*E%t,B=Dc(C,s,t)*C%t,R=Dc(B,f,t)*B%t,M=Dc(R,d,t)*R%t,U=Dc(M,f,t)*B%t,O=Dc(U,r,t)*h%t,N=Dc(O,u,t)*C%t,j=Dc(N,n,t)*m%t,K=Dc(j,gqe,t);if(!uY.eql(uY.sqr(K),e))throw new Error(\"Cannot find square root\");return K}var lY,nvt,gqe,uY,WU,xqe=x(()=>{c();Lv();cY();d_();lY={p:BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),n:BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt(\"0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\"),Gy:BigInt(\"0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8\")},nvt={beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),basises:[[BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),-BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\")],[BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\")]]},gqe=BigInt(2);uY=ju(lY.p,{sqrt:ovt}),WU=gE({...lY,Fp:uY,lowS:!0,endo:nvt},Tc)});var vqe=x(()=>{c();});var xE,$d,vE,wE,EE,AE,SE,CE,TE,_E,kE,BE,IE,hx,PE,Gd,RE,ME,yx,bx,OE,NE,gx,UE,xx,DE,HE,LE,zE,vx,wx,Ex,Ax,QU,FE,jE,fY=x(()=>{c();ht();xE=class extends ae{constructor({cause:t}){super(\"Smart Account is not deployed.\",{cause:t,metaMessages:[\"This could arise when:\",\"- No `factory`/`factoryData` or `initCode` properties are provided for Smart Account deployment.\",\"- An incorrect `sender` address is provided.\"],name:\"AccountNotDeployedError\"})}};Object.defineProperty(xE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa20/});$d=class extends ae{constructor({cause:t,data:r,message:n}={}){let o=n?.replace(\"execution reverted: \",\"\")?.replace(\"execution reverted\",\"\");super(`Execution reverted ${o?`with reason: ${o}`:\"for an unknown reason\"}.`,{cause:t,name:\"ExecutionRevertedError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r}};Object.defineProperty($d,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32521});Object.defineProperty($d,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});vE=class extends ae{constructor({cause:t}){super(\"Failed to send funds to beneficiary.\",{cause:t,name:\"FailedToSendToBeneficiaryError\"})}};Object.defineProperty(vE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa91/});wE=class extends ae{constructor({cause:t}){super(\"Gas value overflowed.\",{cause:t,metaMessages:[\"This could arise when:\",\"- one of the gas values exceeded 2**120 (uint120)\"].filter(Boolean),name:\"GasValuesOverflowError\"})}};Object.defineProperty(wE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa94/});EE=class extends ae{constructor({cause:t}){super(\"The `handleOps` function was called by the Bundler with a gas limit too low.\",{cause:t,name:\"HandleOpsOutOfGasError\"})}};Object.defineProperty(EE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa95/});AE=class extends ae{constructor({cause:t,factory:r,factoryData:n,initCode:o}){super(\"Failed to simulate deployment for Smart Account.\",{cause:t,metaMessages:[\"This could arise when:\",\"- Invalid `factory`/`factoryData` or `initCode` properties are present\",\"- Smart Account deployment execution ran out of gas (low `verificationGasLimit` value)\",`- Smart Account deployment execution reverted with an error\\n`,r&&`factory: ${r}`,n&&`factoryData: ${n}`,o&&`initCode: ${o}`].filter(Boolean),name:\"InitCodeFailedError\"})}};Object.defineProperty(AE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa13/});SE=class extends ae{constructor({cause:t,factory:r,factoryData:n,initCode:o}){super(\"Smart Account initialization implementation did not create an account.\",{cause:t,metaMessages:[\"This could arise when:\",\"- `factory`/`factoryData` or `initCode` properties are invalid\",`- Smart Account initialization implementation is incorrect\\n`,r&&`factory: ${r}`,n&&`factoryData: ${n}`,o&&`initCode: ${o}`].filter(Boolean),name:\"InitCodeMustCreateSenderError\"})}};Object.defineProperty(SE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa15/});CE=class extends ae{constructor({cause:t,factory:r,factoryData:n,initCode:o,sender:s}){super(\"Smart Account initialization implementation does not return the expected sender.\",{cause:t,metaMessages:[\"This could arise when:\",`Smart Account initialization implementation does not return a sender address\\n`,r&&`factory: ${r}`,n&&`factoryData: ${n}`,o&&`initCode: ${o}`,s&&`sender: ${s}`].filter(Boolean),name:\"InitCodeMustReturnSenderError\"})}};Object.defineProperty(CE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa14/});TE=class extends ae{constructor({cause:t}){super(\"Smart Account does not have sufficient funds to execute the User Operation.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the Smart Account does not have sufficient funds to cover the required prefund, or\",\"- a Paymaster was not provided\"].filter(Boolean),name:\"InsufficientPrefundError\"})}};Object.defineProperty(TE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa21/});_E=class extends ae{constructor({cause:t}){super(\"Bundler attempted to call an invalid function on the EntryPoint.\",{cause:t,name:\"InternalCallOnlyError\"})}};Object.defineProperty(_E,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa92/});kE=class extends ae{constructor({cause:t}){super(\"Bundler used an invalid aggregator for handling aggregated User Operations.\",{cause:t,name:\"InvalidAggregatorError\"})}};Object.defineProperty(kE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa96/});BE=class extends ae{constructor({cause:t,nonce:r}){super(\"Invalid Smart Account nonce used for User Operation.\",{cause:t,metaMessages:[r&&`nonce: ${r}`].filter(Boolean),name:\"InvalidAccountNonceError\"})}};Object.defineProperty(BE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa25/});IE=class extends ae{constructor({cause:t}){super(\"Bundler has not set a beneficiary address.\",{cause:t,name:\"InvalidBeneficiaryError\"})}};Object.defineProperty(IE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa90/});hx=class extends ae{constructor({cause:t}){super(\"Invalid fields set on User Operation.\",{cause:t,name:\"InvalidFieldsError\"})}};Object.defineProperty(hx,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});PE=class extends ae{constructor({cause:t,paymasterAndData:r}){super(\"Paymaster properties provided are invalid.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `paymasterAndData` property is of an incorrect length\\\\n\",r&&`paymasterAndData: ${r}`].filter(Boolean),name:\"InvalidPaymasterAndDataError\"})}};Object.defineProperty(PE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa93/});Gd=class extends ae{constructor({cause:t}){super(\"Paymaster deposit for the User Operation is too low.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the Paymaster has deposited less than the expected amount via the `deposit` function\"].filter(Boolean),name:\"PaymasterDepositTooLowError\"})}};Object.defineProperty(Gd,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32508});Object.defineProperty(Gd,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa31/});RE=class extends ae{constructor({cause:t}){super(\"The `validatePaymasterUserOp` function on the Paymaster reverted.\",{cause:t,name:\"PaymasterFunctionRevertedError\"})}};Object.defineProperty(RE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa33/});ME=class extends ae{constructor({cause:t}){super(\"The Paymaster contract has not been deployed.\",{cause:t,name:\"PaymasterNotDeployedError\"})}};Object.defineProperty(ME,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa30/});yx=class extends ae{constructor({cause:t}){super(\"UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.\",{cause:t,name:\"PaymasterRateLimitError\"})}};Object.defineProperty(yx,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32504});bx=class extends ae{constructor({cause:t}){super(\"UserOperation rejected because paymaster (or signature aggregator) stake or unstake-delay is too low.\",{cause:t,name:\"PaymasterStakeTooLowError\"})}};Object.defineProperty(bx,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32505});OE=class extends ae{constructor({cause:t}){super(\"Paymaster `postOp` function reverted.\",{cause:t,name:\"PaymasterPostOpFunctionRevertedError\"})}};Object.defineProperty(OE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa50/});NE=class extends ae{constructor({cause:t,factory:r,factoryData:n,initCode:o}){super(\"Smart Account has already been deployed.\",{cause:t,metaMessages:[\"Remove the following properties and try again:\",r&&\"`factory`\",n&&\"`factoryData`\",o&&\"`initCode`\"].filter(Boolean),name:\"SenderAlreadyConstructedError\"})}};Object.defineProperty(NE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa10/});gx=class extends ae{constructor({cause:t}){super(\"UserOperation rejected because account signature check failed (or paymaster signature, if the paymaster uses its data as signature).\",{cause:t,name:\"SignatureCheckFailedError\"})}};Object.defineProperty(gx,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32507});UE=class extends ae{constructor({cause:t}){super(\"The `validateUserOp` function on the Smart Account reverted.\",{cause:t,name:\"SmartAccountFunctionRevertedError\"})}};Object.defineProperty(UE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa23/});xx=class extends ae{constructor({cause:t}){super(\"UserOperation rejected because account specified unsupported signature aggregator.\",{cause:t,name:\"UnsupportedSignatureAggregatorError\"})}};Object.defineProperty(xx,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32506});DE=class extends ae{constructor({cause:t}){super(\"User Operation expired.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `validAfter` or `validUntil` values returned from `validateUserOp` on the Smart Account are not satisfied\"].filter(Boolean),name:\"UserOperationExpiredError\"})}};Object.defineProperty(DE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa22/});HE=class extends ae{constructor({cause:t}){super(\"Paymaster for User Operation expired.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `validAfter` or `validUntil` values returned from `validatePaymasterUserOp` on the Paymaster are not satisfied\"].filter(Boolean),name:\"UserOperationPaymasterExpiredError\"})}};Object.defineProperty(HE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa32/});LE=class extends ae{constructor({cause:t}){super(\"Signature provided for the User Operation is invalid.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Smart Account\"].filter(Boolean),name:\"UserOperationSignatureError\"})}};Object.defineProperty(LE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa24/});zE=class extends ae{constructor({cause:t}){super(\"Signature provided for the User Operation is invalid.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Paymaster\"].filter(Boolean),name:\"UserOperationPaymasterSignatureError\"})}};Object.defineProperty(zE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa34/});vx=class extends ae{constructor({cause:t}){super(\"User Operation rejected by EntryPoint\\'s `simulateValidation` during account creation or validation.\",{cause:t,name:\"UserOperationRejectedByEntryPointError\"})}};Object.defineProperty(vx,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32500});wx=class extends ae{constructor({cause:t}){super(\"User Operation rejected by Paymaster\\'s `validatePaymasterUserOp`.\",{cause:t,name:\"UserOperationRejectedByPaymasterError\"})}};Object.defineProperty(wx,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32501});Ex=class extends ae{constructor({cause:t}){super(\"User Operation rejected with op code validation error.\",{cause:t,name:\"UserOperationRejectedByOpCodeError\"})}};Object.defineProperty(Ex,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32502});Ax=class extends ae{constructor({cause:t}){super(\"UserOperation out of time-range: either wallet or paymaster returned a time-range, and it is already expired (or will expire soon).\",{cause:t,name:\"UserOperationOutOfTimeRangeError\"})}};Object.defineProperty(Ax,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32503});QU=class extends ae{constructor({cause:t}){super(`An error occurred while executing user operation: ${t?.shortMessage}`,{cause:t,name:\"UnknownBundlerError\"})}},FE=class extends ae{constructor({cause:t}){super(\"User Operation verification gas limit exceeded.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the gas used for verification exceeded the `verificationGasLimit`\"].filter(Boolean),name:\"VerificationGasLimitExceededError\"})}};Object.defineProperty(FE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa40/});jE=class extends ae{constructor({cause:t}){super(\"User Operation verification gas limit is too low.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `verificationGasLimit` is too low to verify the User Operation\"].filter(Boolean),name:\"VerificationGasLimitTooLowError\"})}};Object.defineProperty(jE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa41/})});var ZU,JU,YU,m_,h_=x(()=>{c();ht();Ac();W0();ZU=class extends ae{constructor(t,{callData:r,callGasLimit:n,docsPath:o,factory:s,factoryData:u,initCode:f,maxFeePerGas:d,maxPriorityFeePerGas:m,nonce:h,paymaster:y,paymasterAndData:v,paymasterData:E,paymasterPostOpGasLimit:C,paymasterVerificationGasLimit:B,preVerificationGas:R,sender:M,signature:U,verificationGasLimit:O}){let N=Jp({callData:r,callGasLimit:n,factory:s,factoryData:u,initCode:f,maxFeePerGas:typeof d<\"u\"&&`${ao(d)} gwei`,maxPriorityFeePerGas:typeof m<\"u\"&&`${ao(m)} gwei`,nonce:h,paymaster:y,paymasterAndData:v,paymasterData:E,paymasterPostOpGasLimit:C,paymasterVerificationGasLimit:B,preVerificationGas:R,sender:M,signature:U,verificationGasLimit:O});super(t.shortMessage,{cause:t,docsPath:o,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Request Arguments:\",N].filter(Boolean),name:\"UserOperationExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},JU=class extends ae{constructor({hash:t}){super(`User Operation receipt with hash \"${t}\" could not be found. The User Operation may not have been processed yet.`,{name:\"UserOperationReceiptNotFoundError\"})}},YU=class extends ae{constructor({hash:t}){super(`User Operation with hash \"${t}\" could not be found.`,{name:\"UserOperationNotFoundError\"})}},m_=class extends ae{constructor({hash:t}){super(`Timed out while waiting for User Operation with hash \"${t}\" to be confirmed.`,{name:\"WaitForUserOperationReceiptTimeoutError\"})}}});function wqe(e,t){let r=(e.details||\"\").toLowerCase();if(xE.message.test(r))return new xE({cause:e});if(vE.message.test(r))return new vE({cause:e});if(wE.message.test(r))return new wE({cause:e});if(EE.message.test(r))return new EE({cause:e});if(AE.message.test(r))return new AE({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(SE.message.test(r))return new SE({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(CE.message.test(r))return new CE({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode,sender:t.sender});if(TE.message.test(r))return new TE({cause:e});if(_E.message.test(r))return new _E({cause:e});if(BE.message.test(r))return new BE({cause:e,nonce:t.nonce});if(kE.message.test(r))return new kE({cause:e});if(IE.message.test(r))return new IE({cause:e});if(PE.message.test(r))return new PE({cause:e});if(Gd.message.test(r))return new Gd({cause:e});if(RE.message.test(r))return new RE({cause:e});if(ME.message.test(r))return new ME({cause:e});if(OE.message.test(r))return new OE({cause:e});if(UE.message.test(r))return new UE({cause:e});if(NE.message.test(r))return new NE({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(DE.message.test(r))return new DE({cause:e});if(HE.message.test(r))return new HE({cause:e});if(zE.message.test(r))return new zE({cause:e});if(LE.message.test(r))return new LE({cause:e});if(FE.message.test(r))return new FE({cause:e});if(jE.message.test(r))return new jE({cause:e});let n=e.walk(o=>avt.some(s=>s.code===o.code));if(n){if(n.code===$d.code)return new $d({cause:e,data:n.data,message:n.details});if(n.code===hx.code)return new hx({cause:e});if(n.code===Gd.code)return new Gd({cause:e});if(n.code===yx.code)return new yx({cause:e});if(n.code===bx.code)return new bx({cause:e});if(n.code===gx.code)return new gx({cause:e});if(n.code===xx.code)return new xx({cause:e});if(n.code===Ax.code)return new Ax({cause:e});if(n.code===vx.code)return new vx({cause:e});if(n.code===wx.code)return new wx({cause:e});if(n.code===Ex.code)return new Ex({cause:e})}return new QU({cause:e})}var avt,Eqe=x(()=>{c();fY();avt=[$d,hx,Gd,yx,bx,gx,xx,Ax,vx,wx,Ex]});function XU(e,{calls:t,docsPath:r,...n}){let o=(()=>{let s=wqe(e,n);if(t&&s instanceof $d){let u=ivt(s),f=t?.filter(d=>d.abi);if(u&&f.length>0)return svt({calls:f,revertData:u})}return s})();return new ZU(o,{docsPath:r,...n})}function ivt(e){let t;return e.walk(r=>{let n=r;if(typeof n.data==\"string\"||typeof n.data?.revertData==\"string\"||!(n instanceof ae)&&typeof n.message==\"string\"){let o=(n.data?.revertData||n.data||n.message).match?.(/(0x[A-Za-z0-9]*)/);if(o)return t=o[1],!0}return!1}),t}function svt(e){let{calls:t,revertData:r}=e,{abi:n,functionName:o,args:s,to:u}=(()=>{let d=t?.filter(h=>!!h.abi);if(d.length===1)return d[0];let m=d.filter(h=>{try{return!!Pv({abi:h.abi,data:r})}catch{return!1}});return m.length===1?m[0]:{abi:[],functionName:d.reduce((h,y)=>`${h?`${h} | `:\"\"}${y.functionName}`,\"\"),args:void 0,to:void 0}})(),f=r===\"0x\"?new Dv({functionName:o}):new Yp({abi:n,data:r,functionName:o});return new h0(f,{abi:n,args:s,contractAddress:u,functionName:o})}var dY=x(()=>{c();ht();Xp();iB();fY();h_();Eqe()});function Aqe(e){let t={};return e.callGasLimit&&(t.callGasLimit=BigInt(e.callGasLimit)),e.preVerificationGas&&(t.preVerificationGas=BigInt(e.preVerificationGas)),e.verificationGasLimit&&(t.verificationGasLimit=BigInt(e.verificationGasLimit)),e.paymasterPostOpGasLimit&&(t.paymasterPostOpGasLimit=BigInt(e.paymasterPostOpGasLimit)),e.paymasterVerificationGasLimit&&(t.paymasterVerificationGasLimit=BigInt(e.paymasterVerificationGasLimit)),t}var Sqe=x(()=>{c()});function Xy(e){let t={};return typeof e.callData<\"u\"&&(t.callData=e.callData),typeof e.callGasLimit<\"u\"&&(t.callGasLimit=le(e.callGasLimit)),typeof e.factory<\"u\"&&(t.factory=e.factory),typeof e.factoryData<\"u\"&&(t.factoryData=e.factoryData),typeof e.initCode<\"u\"&&(t.initCode=e.initCode),typeof e.maxFeePerGas<\"u\"&&(t.maxFeePerGas=le(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<\"u\"&&(t.maxPriorityFeePerGas=le(e.maxPriorityFeePerGas)),typeof e.nonce<\"u\"&&(t.nonce=le(e.nonce)),typeof e.paymaster<\"u\"&&(t.paymaster=e.paymaster),typeof e.paymasterAndData<\"u\"&&(t.paymasterAndData=e.paymasterAndData||\"0x\"),typeof e.paymasterData<\"u\"&&(t.paymasterData=e.paymasterData),typeof e.paymasterPostOpGasLimit<\"u\"&&(t.paymasterPostOpGasLimit=le(e.paymasterPostOpGasLimit)),typeof e.paymasterSignature<\"u\"&&(t.paymasterSignature=e.paymasterSignature),typeof e.paymasterVerificationGasLimit<\"u\"&&(t.paymasterVerificationGasLimit=le(e.paymasterVerificationGasLimit)),typeof e.preVerificationGas<\"u\"&&(t.preVerificationGas=le(e.preVerificationGas)),typeof e.sender<\"u\"&&(t.sender=e.sender),typeof e.signature<\"u\"&&(t.signature=e.signature),typeof e.verificationGasLimit<\"u\"&&(t.verificationGasLimit=le(e.verificationGasLimit)),typeof e.authorization<\"u\"&&(t.eip7702Auth=cvt(e.authorization)),t}function cvt(e){return{address:e.address,chainId:le(e.chainId),nonce:le(e.nonce),r:e.r?le(BigInt(e.r),{size:32}):Qr(\"0x\",{size:32}),s:e.s?le(BigInt(e.s),{size:32}):Qr(\"0x\",{size:32}),yParity:e.yParity?le(e.yParity,{size:1}):Qr(\"0x\",{size:32})}}var y_=x(()=>{c();tt();W0()});async function Cqe(e,t){let{chainId:r,entryPointAddress:n,context:o,...s}=t,u=Xy(s),{paymasterPostOpGasLimit:f,paymasterVerificationGasLimit:d,...m}=await e.request({method:\"pm_getPaymasterData\",params:[{...u,callGasLimit:u.callGasLimit??\"0x0\",verificationGasLimit:u.verificationGasLimit??\"0x0\",preVerificationGas:u.preVerificationGas??\"0x0\"},n,le(r),o]});return{...m,...f&&{paymasterPostOpGasLimit:at(f)},...d&&{paymasterVerificationGasLimit:at(d)}}}var Tqe=x(()=>{c();Zn();tt();y_()});async function _qe(e,t){let{chainId:r,entryPointAddress:n,context:o,...s}=t,u=Xy(s),{paymasterPostOpGasLimit:f,paymasterVerificationGasLimit:d,...m}=await e.request({method:\"pm_getPaymasterStubData\",params:[{...u,callGasLimit:u.callGasLimit??\"0x0\",verificationGasLimit:u.verificationGasLimit??\"0x0\",preVerificationGas:u.preVerificationGas??\"0x0\"},n,le(r),o]});return{...m,...f&&{paymasterPostOpGasLimit:at(f)},...d&&{paymasterVerificationGasLimit:at(d)}}}var kqe=x(()=>{c();Zn();tt();y_()});async function qE(e,t){let r=t,{account:n=e.account,dataSuffix:o=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,parameters:s=uvt,stateOverride:u}=r;if(!n)throw new On;let f=Xe(n),d=e,m=r.paymaster??d?.paymaster,h=typeof m==\"string\"?m:void 0,{getPaymasterStubData:y,getPaymasterData:v}=(()=>{if(m===!0)return{getPaymasterStubData:G=>Ae(d,_qe,\"getPaymasterStubData\")(G),getPaymasterData:G=>Ae(d,Cqe,\"getPaymasterData\")(G)};if(typeof m==\"object\"){let{getPaymasterStubData:G,getPaymasterData:J}=m;return{getPaymasterStubData:J&&G?G:J,getPaymasterData:J&&G?J:void 0}}return{getPaymasterStubData:void 0,getPaymasterData:void 0}})(),E=r.paymasterContext?r.paymasterContext:d?.paymasterContext,C={...r,paymaster:h,sender:f.address},[B,R,M,U,O]=await Promise.all([(async()=>r.calls?f.encodeCalls(r.calls.map(G=>{let J=G;return J.abi?{data:Ct(J),to:J.to,value:J.value}:J})):r.callData)(),(async()=>{if(!s.includes(\"factory\"))return;if(r.initCode)return{initCode:r.initCode};if(r.factory&&r.factoryData)return{factory:r.factory,factoryData:r.factoryData};let{factory:G,factoryData:J}=await f.getFactoryArgs();return f.entryPoint.version===\"0.6\"?{initCode:G&&J?mr([G,J]):void 0}:{factory:G,factoryData:J}})(),(async()=>{if(s.includes(\"fees\")){if(typeof r.maxFeePerGas==\"bigint\"&&typeof r.maxPriorityFeePerGas==\"bigint\")return C;if(d?.userOperation?.estimateFeesPerGas){let G=await d.userOperation.estimateFeesPerGas({account:f,bundlerClient:d,userOperation:C});return{...C,...G}}try{let G=d.client??e,J=await Ae(G,RB,\"estimateFeesPerGas\")({chain:G.chain,type:\"eip1559\"});return{maxFeePerGas:typeof r.maxFeePerGas==\"bigint\"?r.maxFeePerGas:BigInt(2n*J.maxFeePerGas),maxPriorityFeePerGas:typeof r.maxPriorityFeePerGas==\"bigint\"?r.maxPriorityFeePerGas:BigInt(2n*J.maxPriorityFeePerGas)}}catch{return}}})(),(async()=>{if(s.includes(\"nonce\"))return typeof r.nonce==\"bigint\"?r.nonce:f.getNonce()})(),(async()=>{if(s.includes(\"authorization\")){if(typeof r.authorization==\"object\")return r.authorization;if(f.authorization&&!await f.isDeployed())return{...await cg(f.client,f.authorization),r:\"0xfffffffffffffffffffffffffffffff000000000000000000000000000000000\",s:\"0x7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",yParity:1}}})()]);typeof B<\"u\"&&(C.callData=o?mr([B,o]):B),typeof R<\"u\"&&(C={...C,...R}),typeof M<\"u\"&&(C={...C,...M}),typeof U<\"u\"&&(C.nonce=U),typeof O<\"u\"&&(C.authorization=O),s.includes(\"signature\")&&(typeof r.signature<\"u\"?C.signature=r.signature:C.signature=await f.getStubSignature(C)),f.entryPoint.version===\"0.6\"&&!C.initCode&&(C.initCode=\"0x\");let N;async function j(){return N||(e.chain?e.chain.id:(N=await Ae(e,Ko,\"getChainId\")({}),N))}let K=!1;if(s.includes(\"paymaster\")&&y&&!h&&!r.paymasterAndData){let{isFinal:G=!1,sponsor:J,...Y}=await y({chainId:await j(),entryPointAddress:f.entryPoint.address,context:E,...C});K=G,C={...C,...Y}}if(f.entryPoint.version===\"0.6\"&&!C.paymasterAndData&&(C.paymasterAndData=\"0x\"),s.includes(\"gas\")){if(f.userOperation?.estimateGas){let G=await f.userOperation.estimateGas(C);C={...C,...G}}if(typeof C.callGasLimit>\"u\"||typeof C.preVerificationGas>\"u\"||typeof C.verificationGasLimit>\"u\"||C.paymaster&&typeof C.paymasterPostOpGasLimit>\"u\"||C.paymaster&&typeof C.paymasterVerificationGasLimit>\"u\"){let G=await Ae(d,tD,\"estimateUserOperationGas\")({account:f,callGasLimit:0n,preVerificationGas:0n,verificationGasLimit:0n,stateOverride:u,...C.paymaster?{paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n}:{},...C});C={...C,callGasLimit:C.callGasLimit??G.callGasLimit,preVerificationGas:C.preVerificationGas??G.preVerificationGas,verificationGasLimit:C.verificationGasLimit??G.verificationGasLimit,paymasterPostOpGasLimit:C.paymasterPostOpGasLimit??G.paymasterPostOpGasLimit,paymasterVerificationGasLimit:C.paymasterVerificationGasLimit??G.paymasterVerificationGasLimit}}}if(s.includes(\"paymaster\")&&v&&!h&&!r.paymasterAndData&&!K){let G=await v({chainId:await j(),entryPointAddress:f.entryPoint.address,context:E,...C});C={...C,...G}}return delete C.calls,delete C.parameters,delete C.paymasterContext,typeof C.paymaster!=\"string\"&&delete C.paymaster,C}var uvt,eD=x(()=>{c();Yr();pW();OB();Tl();Pc();za();Jn();Zt();Tqe();kqe();pY();uvt=[\"factory\",\"fees\",\"gas\",\"paymaster\",\"nonce\",\"signature\",\"authorization\"]});async function tD(e,t){let{account:r=e.account,entryPointAddress:n,stateOverride:o}=t;if(!r&&!t.sender)throw new On;let s=r?Xe(r):void 0,u=B0(o),f=s?await Ae(e,qE,\"prepareUserOperation\")({...t,parameters:[\"authorization\",\"factory\",\"nonce\",\"paymaster\",\"signature\"]}):t;try{let d=[Xy(f),n??s?.entryPoint?.address],m=await e.request({method:\"eth_estimateUserOperationGas\",params:u?[...d,u]:[...d]});return Aqe(m)}catch(d){let m=t.calls;throw XU(d,{...f,...m?{calls:m}:{}})}}var pY=x(()=>{c();Yr();Pc();Zt();ES();dY();Sqe();y_();eD()});function Bqe(e){return e.request({method:\"eth_supportedEntryPoints\"})}var Iqe=x(()=>{c()});function Pqe(e){let t={...e};return e.callGasLimit&&(t.callGasLimit=BigInt(e.callGasLimit)),e.maxFeePerGas&&(t.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.nonce&&(t.nonce=BigInt(e.nonce)),e.paymasterPostOpGasLimit&&(t.paymasterPostOpGasLimit=BigInt(e.paymasterPostOpGasLimit)),e.paymasterVerificationGasLimit&&(t.paymasterVerificationGasLimit=BigInt(e.paymasterVerificationGasLimit)),e.preVerificationGas&&(t.preVerificationGas=BigInt(e.preVerificationGas)),e.verificationGasLimit&&(t.verificationGasLimit=BigInt(e.verificationGasLimit)),t}var Rqe=x(()=>{c()});async function Mqe(e,{hash:t}){let r=await e.request({method:\"eth_getUserOperationByHash\",params:[t]},{dedupe:!0});if(!r)throw new YU({hash:t});let{blockHash:n,blockNumber:o,entryPoint:s,transactionHash:u,userOperation:f}=r;return{blockHash:n,blockNumber:BigInt(o),entryPoint:s,transactionHash:u,userOperation:Pqe(f)}}var Oqe=x(()=>{c();h_();Rqe()});function Nqe(e){let t={...e};return e.actualGasCost&&(t.actualGasCost=BigInt(e.actualGasCost)),e.actualGasUsed&&(t.actualGasUsed=BigInt(e.actualGasUsed)),e.logs&&(t.logs=e.logs.map(r=>go(r))),e.receipt&&(t.receipt=bm(t.receipt)),t}var Uqe=x(()=>{c();_l();gm()});async function rD(e,{hash:t}){let r=await e.request({method:\"eth_getUserOperationReceipt\",params:[t]},{dedupe:!0});if(!r)throw new JU({hash:t});return Nqe(r)}var mY=x(()=>{c();h_();Uqe()});async function Dqe(e,t){let{account:r=e.account,entryPointAddress:n}=t;if(!r&&!t.sender)throw new On;let o=r?Xe(r):void 0,s=o?await Ae(e,qE,\"prepareUserOperation\")(t):t,u=t.signature||await o?.signUserOperation?.(s),f=Xy({...s,signature:u});try{return await e.request({method:\"eth_sendUserOperation\",params:[f,n??o?.entryPoint?.address]},{retryCount:0})}catch(d){let m=t.calls;throw XU(d,{...s,...m?{calls:m}:{},signature:u})}}var Hqe=x(()=>{c();Yr();Pc();Zt();dY();y_();eD()});function Lqe(e,t){let{hash:r,pollingInterval:n=e.pollingInterval,retryCount:o,timeout:s=12e4}=t,u=0,f=or([\"waitForUserOperationReceipt\",e.uid,r]);return new Promise((d,m)=>{let h=wa(f,{resolve:d,reject:m},y=>{let v=B=>{C(),B(),h()},E=s?setTimeout(()=>v(()=>y.reject(new m_({hash:r}))),s):void 0,C=Hs(async()=>{o&&u>=o&&(clearTimeout(E),v(()=>y.reject(new m_({hash:r}))));try{let B=await Ae(e,rD,\"getUserOperationReceipt\")({hash:r});clearTimeout(E),v(()=>y.resolve(B))}catch(B){let R=B;R.name!==\"UserOperationReceiptNotFoundError\"&&(clearTimeout(E),v(()=>y.reject(R)))}u++},{emitOnBegin:!0,interval:n});return C})})}var zqe=x(()=>{c();Zt();ym();L0();Fa();h_();mY()});function Fqe(e){return{estimateUserOperationGas:t=>tD(e,t),getChainId:()=>Ko(e),getSupportedEntryPoints:()=>Bqe(e),getUserOperation:t=>Mqe(e,t),getUserOperationReceipt:t=>rD(e,t),prepareUserOperation:t=>qE(e,t),sendUserOperation:t=>Dqe(e,t),waitForUserOperationReceipt:t=>Lqe(e,t)}}var jqe=x(()=>{c();Tl();pY();Iqe();Oqe();mY();eD();Hqe();zqe()});function hY(e){let{client:t,dataSuffix:r,key:n=\"bundler\",name:o=\"Bundler Client\",paymaster:s,paymasterContext:u,transport:f,userOperation:d}=e;return Object.assign(vm({...e,chain:e.chain??t?.chain,key:n,name:o,transport:f,type:\"bundlerClient\"}),{client:t,dataSuffix:r??t?.dataSuffix,paymaster:s,paymasterContext:u,userOperation:d}).extend(Fqe)}var qqe=x(()=>{c();kI();jqe()});var yY=x(()=>{c();Gje();qqe();Lje();zje();$je()});var bY,$qe=x(()=>{c();rU();bY=rE(()=>({}))});function gY(e){e.forEach(t=>{var r,n,o,s,u,f,d,m;if(!t.rpcUrl)return;let h=g({id:t.id,rpcUrls:{default:{http:[t.rpcUrl]}},name:(n=(r=t.nativeCurrency)===null||r===void 0?void 0:r.name)!==null&&n!==void 0?n:\"\",nativeCurrency:{name:(s=(o=t.nativeCurrency)===null||o===void 0?void 0:o.name)!==null&&s!==void 0?s:\"\",symbol:(f=(u=t.nativeCurrency)===null||u===void 0?void 0:u.symbol)!==null&&f!==void 0?f:\"\",decimals:(m=(d=t.nativeCurrency)===null||d===void 0?void 0:d.decimal)!==null&&m!==void 0?m:18}}),y=uC({chain:h,transport:gd(t.rpcUrl)}),v=hY({client:y,transport:gd(t.rpcUrl)});bY.setState({[t.id]:{client:y,bundlerClient:v}})})}function nD(e){var t;return(t=bY.getState()[e])===null||t===void 0?void 0:t.client}var xY=x(()=>{c();Bo();yY();$qe()});function ka(e,t,r){if(e==null)throw t??ke.rpc.invalidParams({message:r??\"value must be present\",data:e})}function Vd(e,t){if(!Array.isArray(e))throw ke.rpc.invalidParams({message:t??\"value must be an array\",data:e})}var $E=x(()=>{c();wi()});function b_(e){if(typeof e!=\"object\"||e===null)throw ke.rpc.internal(\"sub account info is not an object\");if(!(\"address\"in e))throw ke.rpc.internal(\"sub account is invalid\");if(\"address\"in e&&typeof e.address==\"string\"&&!wt(e.address))throw ke.rpc.internal(\"sub account address is invalid\");if(\"factory\"in e&&typeof e.factory==\"string\"&&!wt(e.factory))throw ke.rpc.internal(\"sub account factory address is invalid\");if(\"factoryData\"in e&&typeof e.factoryData==\"string\"&&!Wr(e.factoryData))throw ke.rpc.internal(\"sub account factory data is invalid\")}var Gqe=x(()=>{c();Bo();wi()});async function Vqe(){return crypto.subtle.generateKey({name:\"ECDH\",namedCurve:\"P-256\"},!0,[\"deriveKey\"])}async function Kqe(e,t){return crypto.subtle.deriveKey({name:\"ECDH\",public:t},e,{name:\"AES-GCM\",length:256},!1,[\"encrypt\",\"decrypt\"])}async function lvt(e,t){let r=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.encrypt({name:\"AES-GCM\",iv:r},e,new TextEncoder().encode(t));return{iv:r,cipherText:n}}async function fvt(e,{iv:t,cipherText:r}){let n=await crypto.subtle.decrypt({name:\"AES-GCM\",iv:t},e,r);return new TextDecoder().decode(n)}function Wqe(e){switch(e){case\"public\":return\"spki\";case\"private\":return\"pkcs8\"}}async function oD(e,t){let r=Wqe(e),n=await crypto.subtle.exportKey(r,t);return t_(new Uint8Array(n))}async function aD(e,t){let r=Wqe(e),n=aE(t).buffer;return await crypto.subtle.importKey(r,new Uint8Array(n),{name:\"ECDH\",namedCurve:\"P-256\"},!0,e===\"private\"?[\"deriveKey\"]:[])}async function Qqe(e,t){let r=JSON.stringify(e,(n,o)=>{if(!(o instanceof Error))return o;let s=o;return Object.assign(Object.assign({},s.code?{code:s.code}:{}),{message:s.message})});return lvt(t,r)}async function Zqe(e,t){return JSON.parse(await fvt(t,e))}var vY=x(()=>{c();Zl()});var Jqe=x(()=>{c()});var Yqe,Xqe=x(()=>{c();Yqe=\"0.1.1\"});function e$e(){return Yqe}var t$e=x(()=>{c();Xqe()});function r$e(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?r$e(e.cause,t):t?null:e}var Vt,ch=x(()=>{c();t$e();Vt=class e extends Error{constructor(t,r={}){let n=(()=>{if(r.cause instanceof e){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return r.cause?.message?r.cause.message:r.details})(),o=r.cause instanceof e&&r.cause.docsPath||r.docsPath,u=`https://oxlib.sh${o??\"\"}`,f=[t||\"An error occurred.\",...r.metaMessages?[\"\",...r.metaMessages]:[],...n||o?[\"\",n?`Details: ${n}`:void 0,o?`See: ${u}`:void 0]:[]].filter(d=>typeof d==\"string\").join(`\\n`);super(f,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${e$e()}`}),this.cause=r.cause,this.details=n,this.docs=u,this.docsPath=o,this.shortMessage=t}walk(t){return r$e(this,t)}}});var n$e,o$e=x(()=>{c();f_();n$e=Vje});function tb(e,t,r){return JSON.stringify(e,(n,o)=>typeof t==\"function\"?t(n,o):typeof o==\"bigint\"?o.toString()+pvt:o,r)}var pvt,GE=x(()=>{c();pvt=\"#__bigint\"});function x_(e,t){if(Sx(e)>t)throw new iD({givenSize:Sx(e),maxSize:t})}function a$e(e,t){if(typeof t==\"number\"&&t>0&&t>Sx(e)-1)throw new v_({offset:t,position:\"start\",size:Sx(e)})}function i$e(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&Sx(e)!==r-t)throw new v_({offset:r,position:\"end\",size:Sx(e)})}function wY(e){if(e>=uh.zero&&e<=uh.nine)return e-uh.zero;if(e>=uh.A&&e<=uh.F)return e-(uh.A-10);if(e>=uh.a&&e<=uh.f)return e-(uh.a-10)}function s$e(e,t={}){let{dir:r,size:n=32}=t;if(n===0)return e;if(e.length>n)throw new sD({size:e.length,targetSize:n,type:\"Bytes\"});let o=new Uint8Array(n);for(let s=0;s<n;s++){let u=r===\"right\";o[u?s:n-s-1]=e[u?s:e.length-s-1]}return o}function c$e(e,t={}){let{dir:r=\"left\"}=t,n=e,o=0;for(let s=0;s<n.length-1&&n[r===\"left\"?s:n.length-s-1].toString()===\"0\";s++)o++;return n=r===\"left\"?n.slice(o):n.slice(0,n.length-o),n}var uh,EY=x(()=>{c();qu();uh={zero:48,nine:57,A:65,F:70,a:97,f:102}});function Cx(e,t){if(ss(e)>t)throw new w_({givenSize:ss(e),maxSize:t})}function l$e(e,t){if(typeof t==\"number\"&&t>0&&t>ss(e)-1)throw new VE({offset:t,position:\"start\",size:ss(e)})}function f$e(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&ss(e)!==r-t)throw new VE({offset:r,position:\"end\",size:ss(e)})}function AY(e,t={}){let{dir:r,size:n=32}=t;if(n===0)return e;let o=e.replace(\"0x\",\"\");if(o.length>n*2)throw new E_({size:Math.ceil(o.length/2),targetSize:n,type:\"Hex\"});return`0x${o[r===\"right\"?\"padEnd\":\"padStart\"](n*2,\"0\")}`}function SY(e,t={}){let{dir:r=\"left\"}=t,n=e.replace(\"0x\",\"\"),o=0;for(let s=0;s<n.length-1&&n[r===\"left\"?s:n.length-s-1].toString()===\"0\";s++)o++;return n=r===\"left\"?n.slice(o):n.slice(0,n.length-o),n===\"0\"?\"0x\":r===\"right\"&&n.length%2===1?`0x${n}0`:`0x${n}`}var CY=x(()=>{c();Kd()});var cs={};Wn(cs,{IntegerOutOfRangeError:()=>cD,InvalidHexBooleanError:()=>uD,InvalidHexTypeError:()=>A_,InvalidHexValueError:()=>S_,InvalidLengthError:()=>TY,SizeExceedsPaddingSizeError:()=>E_,SizeOverflowError:()=>w_,SliceOffsetOutOfBoundsError:()=>VE,assert:()=>p$e,concat:()=>Yl,from:()=>KE,fromBoolean:()=>_Y,fromBytes:()=>wo,fromNumber:()=>Xo,fromString:()=>WE,isEqual:()=>yvt,padLeft:()=>QE,padRight:()=>ZE,random:()=>bvt,size:()=>ss,slice:()=>$u,toBigInt:()=>lD,toBoolean:()=>xvt,toBytes:()=>vvt,toNumber:()=>m$e,toString:()=>wvt,trimLeft:()=>C_,trimRight:()=>gvt,validate:()=>fD});function p$e(e,t={}){let{strict:r=!1}=t;if(!e)throw new A_(e);if(typeof e!=\"string\")throw new A_(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new S_(e);if(!e.startsWith(\"0x\"))throw new S_(e)}function Yl(...e){return`0x${e.reduce((t,r)=>t+r.replace(\"0x\",\"\"),\"\")}`}function KE(e){return e instanceof Uint8Array?wo(e):Array.isArray(e)?wo(new Uint8Array(e)):e}function _Y(e,t={}){let r=`0x${Number(e)}`;return typeof t.size==\"number\"?(Cx(r,t.size),QE(r,t.size)):r}function wo(e,t={}){let r=\"\";for(let o=0;o<e.length;o++)r+=hvt[e[o]];let n=`0x${r}`;return typeof t.size==\"number\"?(Cx(n,t.size),ZE(n,t.size)):n}function Xo(e,t={}){let{signed:r,size:n}=t,o=BigInt(e),s;n?r?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof e==\"number\"&&(s=BigInt(Number.MAX_SAFE_INTEGER));let u=typeof s==\"bigint\"&&r?-s-1n:0;if(s&&o>s||o<u){let m=typeof e==\"bigint\"?\"n\":\"\";throw new cD({max:s?`${s}${m}`:void 0,min:`${u}${m}`,signed:r,size:n,value:`${e}${m}`})}let d=`0x${(r&&o<0?(1n<<BigInt(n*8))+BigInt(o):o).toString(16)}`;return n?QE(d,n):d}function WE(e,t={}){return wo(mvt.encode(e),t)}function yvt(e,t){return n$e(Ba(e),Ba(t))}function QE(e,t){return AY(e,{dir:\"left\",size:t})}function ZE(e,t){return AY(e,{dir:\"right\",size:t})}function bvt(e){return wo(h$e(e))}function $u(e,t,r,n={}){let{strict:o}=n;l$e(e,t);let s=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(r??e.length)*2)}`;return o&&f$e(s,t,r),s}function ss(e){return Math.ceil((e.length-2)/2)}function C_(e){return SY(e,{dir:\"left\"})}function gvt(e){return SY(e,{dir:\"right\"})}function lD(e,t={}){let{signed:r}=t;t.size&&Cx(e,t.size);let n=BigInt(e);if(!r)return n;let o=(e.length-2)/2,s=(1n<<BigInt(o)*8n)-1n,u=s>>1n;return n<=u?n:n-s-1n}function xvt(e,t={}){t.size&&Cx(e,t.size);let r=C_(e);if(r===\"0x\")return!1;if(r===\"0x1\")return!0;throw new uD(e)}function vvt(e,t={}){return Ba(e,t)}function m$e(e,t={}){let{signed:r,size:n}=t;return Number(!r&&!n?e:lD(e,t))}function wvt(e,t={}){let{size:r}=t,n=Ba(e);return r&&(x_(n,r),n=y$e(n)),new TextDecoder().decode(n)}function fD(e,t={}){let{strict:r=!1}=t;try{return p$e(e,{strict:r}),!0}catch{return!1}}var mvt,hvt,cD,uD,A_,S_,TY,w_,VE,E_,Kd=x(()=>{c();o$e();qu();ch();GE();EY();CY();mvt=new TextEncoder,hvt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));cD=class extends Vt{constructor({max:t,min:r,signed:n,size:o,value:s}){super(`Number \\\\`${s}\\\\` is not in safe${o?` ${o*8}-bit`:\"\"}${n?\" signed\":\" unsigned\"} integer range ${t?`(\\\\`${r}\\\\` to \\\\`${t}\\\\`)`:`(above \\\\`${r}\\\\`)`}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.IntegerOutOfRangeError\"})}},uD=class extends Vt{constructor(t){super(`Hex value \\\\`\"${t}\"\\\\` is not a valid boolean.`,{metaMessages:[\\'The hex value must be `\"0x0\"` (false) or `\"0x1\"` (true).\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexBooleanError\"})}},A_=class extends Vt{constructor(t){super(`Value \\\\`${typeof t==\"object\"?tb(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid hex type.`,{metaMessages:[\\'Hex types must be represented as `\"0x${string}\"`.\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexTypeError\"})}},S_=class extends Vt{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid hex value.`,{metaMessages:[\\'Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexValueError\"})}},TY=class extends Vt{constructor(t){super(`Hex value \\\\`\"${t}\"\\\\` is an odd length (${t.length-2} nibbles).`,{metaMessages:[\"It must be an even length.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidLengthError\"})}},w_=class extends Vt{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \\\\`${r}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeOverflowError\"})}},VE=class extends Vt{constructor({offset:t,position:r,size:n}){super(`Slice ${r===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SliceOffsetOutOfBoundsError\"})}},E_=class extends Vt{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeExceedsPaddingSizeError\"})}}});function Avt(e){if(!(e instanceof Uint8Array)){if(!e)throw new JE(e);if(typeof e!=\"object\")throw new JE(e);if(!(\"BYTES_PER_ELEMENT\"in e))throw new JE(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!==\"Uint8Array\")throw new JE(e)}}function dD(...e){let t=0;for(let n of e)t+=n.length;let r=new Uint8Array(t);for(let n=0,o=0;n<e.length;n++){let s=e[n];r.set(s,o),o+=s.length}return r}function YE(e){return e instanceof Uint8Array?e:typeof e==\"string\"?Ba(e):kY(e)}function kY(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Ba(e,t={}){let{size:r}=t,n=e;r&&(Cx(e,r),n=ZE(e,r));let o=n.slice(2);o.length%2&&(o=`0${o}`);let s=o.length/2,u=new Uint8Array(s);for(let f=0,d=0;f<s;f++){let m=wY(o.charCodeAt(d++)),h=wY(o.charCodeAt(d++));if(m===void 0||h===void 0)throw new Vt(`Invalid byte sequence (\"${o[d-2]}${o[d-1]}\" in \"${o}\").`);u[f]=m*16+h}return u}function BY(e,t){let r=Xo(e,t);return Ba(r)}function XE(e,t={}){let{size:r}=t,n=Evt.encode(e);return typeof r==\"number\"?(x_(n,r),Svt(n,r)):n}function Svt(e,t){return s$e(e,{dir:\"right\",size:t})}function h$e(e){return crypto.getRandomValues(new Uint8Array(e))}function Sx(e){return e.length}function IY(e,t,r,n={}){let{strict:o}=n;a$e(e,t);let s=e.slice(t,r);return o&&i$e(s,t,r),s}function PY(e,t={}){let{size:r}=t;typeof r<\"u\"&&x_(e,r);let n=wo(e,t);return lD(n,t)}function y$e(e){return c$e(e,{dir:\"right\"})}function b$e(e){try{return Avt(e),!0}catch{return!1}}var Evt,JE,iD,v_,sD,qu=x(()=>{c();ch();Kd();GE();EY();CY();Evt=new TextEncoder;JE=class extends Vt{constructor(t){super(`Value \\\\`${typeof t==\"object\"?tb(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid Bytes value.`,{metaMessages:[\"Bytes values must be of type `Bytes`.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesTypeError\"})}},iD=class extends Vt{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \\\\`${r}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeOverflowError\"})}},v_=class extends Vt{constructor({offset:t,position:r,size:n}){super(`Slice ${r===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SliceOffsetOutOfBoundsError\"})}},sD=class extends Vt{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeExceedsPaddingSizeError\"})}}});function pD(e,t={}){let{as:r=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,n=Zf(YE(e));return r===\"Bytes\"?n:wo(n)}function mD(e,t={}){let{as:r=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,n=O0(YE(e));return r===\"Bytes\"?n:wo(n)}var hD=x(()=>{c();Av();TS();qu();Kd()});var yD,g$e=x(()=>{c();yD=class extends Map{constructor(t){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){let n=this.keys().next().value;n&&this.delete(n)}return this}}});var Cvt,bD,MY=x(()=>{c();g$e();Cvt={checksum:new yD(8192)},bD=Cvt.checksum});var Wd={};Wn(Wd,{InvalidCompressedPrefixError:()=>xD,InvalidError:()=>gD,InvalidPrefixError:()=>T_,InvalidSerializedSizeError:()=>wD,InvalidUncompressedPrefixError:()=>vD,assert:()=>ED,compress:()=>Tvt,from:()=>Tx,fromBytes:()=>v$e,fromHex:()=>OY,toBytes:()=>NY,toHex:()=>AD,validate:()=>_vt});function ED(e,t={}){let{compressed:r}=t,{prefix:n,x:o,y:s}=e;if(r===!1||typeof o==\"bigint\"&&typeof s==\"bigint\"){if(n!==4)throw new T_({prefix:n,cause:new vD});return}if(r===!0||typeof o==\"bigint\"&&typeof s>\"u\"){if(n!==3&&n!==2)throw new T_({prefix:n,cause:new xD});return}throw new gD({publicKey:e})}function Tvt(e){let{x:t,y:r}=e;return{prefix:r%2n===0n?2:3,x:t}}function Tx(e){let t=(()=>{if(fD(e))return OY(e);if(b$e(e))return v$e(e);let{prefix:r,x:n,y:o}=e;return typeof n==\"bigint\"&&typeof o==\"bigint\"?{prefix:r??4,x:n,y:o}:{prefix:r,x:n}})();return ED(t),t}function v$e(e){return OY(wo(e))}function OY(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new wD({publicKey:e});if(e.length===130){let n=BigInt($u(e,0,32)),o=BigInt($u(e,32,64));return{prefix:4,x:n,y:o}}if(e.length===132){let n=Number($u(e,0,1)),o=BigInt($u(e,1,33)),s=BigInt($u(e,33,65));return{prefix:n,x:o,y:s}}let t=Number($u(e,0,1)),r=BigInt($u(e,1,33));return{prefix:t,x:r}}function NY(e,t={}){return Ba(AD(e,t))}function AD(e,t={}){ED(e);let{prefix:r,x:n,y:o}=e,{includePrefix:s=!0}=t;return Yl(s?Xo(r,{size:1}):\"0x\",Xo(n,{size:32}),typeof o==\"bigint\"?Xo(o,{size:32}):\"0x\")}function _vt(e,t={}){try{return ED(e,t),!0}catch{return!1}}var gD,T_,xD,vD,wD,__=x(()=>{c();qu();ch();Kd();GE();gD=class extends Vt{constructor({publicKey:t}){super(`Value \\\\`${tb(t)}\\\\` is not a valid public key.`,{metaMessages:[\"Public key must contain:\",\"- an `x` and `prefix` value (compressed)\",\"- an `x`, `y`, and `prefix` value (uncompressed)\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidError\"})}},T_=class extends Vt{constructor({prefix:t,cause:r}){super(`Prefix \"${t}\" is invalid.`,{cause:r}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidPrefixError\"})}},xD=class extends Vt{constructor(){super(\"Prefix must be 2 or 3 for compressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidCompressedPrefixError\"})}},vD=class extends Vt{constructor(){super(\"Prefix must be 4 for uncompressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidUncompressedPrefixError\"})}},wD=class extends Vt{constructor({publicKey:t}){super(`Value \\\\`${t}\\\\` is an invalid public key size.`,{metaMessages:[\"Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).\",`Received ${ss(KE(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidSerializedSizeError\"})}}});function HY(e,t={}){let{strict:r=!0}=t;if(!kvt.test(e))throw new SD({address:e,cause:new UY});if(r){if(e.toLowerCase()===e)return;if(Bvt(e)!==e)throw new SD({address:e,cause:new DY})}}function Bvt(e){if(bD.has(e))return bD.get(e);HY(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=pD(XE(t),{as:\"Bytes\"}),n=t.split(\"\");for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&n[s]&&(n[s]=n[s].toUpperCase()),(r[s>>1]&15)>=8&&n[s+1]&&(n[s+1]=n[s+1].toUpperCase());let o=`0x${n.join(\"\")}`;return bD.set(e,o),o}var kvt,SD,UY,DY,LY=x(()=>{c();qu();MY();ch();hD();kvt=/^0x[a-fA-F0-9]{40}$/;SD=class extends Vt{constructor({address:t,cause:r}){super(`Address \"${t}\" is invalid.`,{cause:r}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidAddressError\"})}},UY=class extends Vt{constructor(){super(\"Address is not a 20 byte (40 hexadecimal character) value.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidInputError\"})}},DY=class extends Vt{constructor(){super(\"Address does not match its checksum counterpart.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidChecksumError\"})}}});var E$e=x(()=>{c()});var A$e,S$e,C$e,IUn,PUn,RUn,MUn,OUn,NUn,UUn,DUn,HUn,LUn,zUn,FUn,jUn,qUn,$Un,GUn,VUn,KUn,WUn,QUn,ZUn,JUn,YUn,XUn,eDn,tDn,rDn,nDn,oDn,aDn,iDn,sDn,cDn,uDn,lDn,fDn,dDn,pDn,mDn,hDn,yDn,bDn,gDn,xDn,vDn,wDn,EDn,ADn,SDn,CDn,TDn,_Dn,kDn,BDn,IDn,PDn,RDn,MDn,ODn,NDn,UDn,DDn,HDn,LDn,zDn,FDn,jDn,qDn,$Dn,GDn,VDn,KDn,WDn,QDn,ZDn,JDn,YDn,XDn,eHn,tHn,rHn,nHn,oHn,aHn,iHn,sHn,cHn,uHn,lHn,fHn,dHn,pHn,mHn,hHn,yHn,zY,CD=x(()=>{c();A$e=/^(.*)\\\\[([0-9]*)\\\\]$/,S$e=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,C$e=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,IUn=2n**(8n-1n)-1n,PUn=2n**(16n-1n)-1n,RUn=2n**(24n-1n)-1n,MUn=2n**(32n-1n)-1n,OUn=2n**(40n-1n)-1n,NUn=2n**(48n-1n)-1n,UUn=2n**(56n-1n)-1n,DUn=2n**(64n-1n)-1n,HUn=2n**(72n-1n)-1n,LUn=2n**(80n-1n)-1n,zUn=2n**(88n-1n)-1n,FUn=2n**(96n-1n)-1n,jUn=2n**(104n-1n)-1n,qUn=2n**(112n-1n)-1n,$Un=2n**(120n-1n)-1n,GUn=2n**(128n-1n)-1n,VUn=2n**(136n-1n)-1n,KUn=2n**(144n-1n)-1n,WUn=2n**(152n-1n)-1n,QUn=2n**(160n-1n)-1n,ZUn=2n**(168n-1n)-1n,JUn=2n**(176n-1n)-1n,YUn=2n**(184n-1n)-1n,XUn=2n**(192n-1n)-1n,eDn=2n**(200n-1n)-1n,tDn=2n**(208n-1n)-1n,rDn=2n**(216n-1n)-1n,nDn=2n**(224n-1n)-1n,oDn=2n**(232n-1n)-1n,aDn=2n**(240n-1n)-1n,iDn=2n**(248n-1n)-1n,sDn=2n**(256n-1n)-1n,cDn=-(2n**(8n-1n)),uDn=-(2n**(16n-1n)),lDn=-(2n**(24n-1n)),fDn=-(2n**(32n-1n)),dDn=-(2n**(40n-1n)),pDn=-(2n**(48n-1n)),mDn=-(2n**(56n-1n)),hDn=-(2n**(64n-1n)),yDn=-(2n**(72n-1n)),bDn=-(2n**(80n-1n)),gDn=-(2n**(88n-1n)),xDn=-(2n**(96n-1n)),vDn=-(2n**(104n-1n)),wDn=-(2n**(112n-1n)),EDn=-(2n**(120n-1n)),ADn=-(2n**(128n-1n)),SDn=-(2n**(136n-1n)),CDn=-(2n**(144n-1n)),TDn=-(2n**(152n-1n)),_Dn=-(2n**(160n-1n)),kDn=-(2n**(168n-1n)),BDn=-(2n**(176n-1n)),IDn=-(2n**(184n-1n)),PDn=-(2n**(192n-1n)),RDn=-(2n**(200n-1n)),MDn=-(2n**(208n-1n)),ODn=-(2n**(216n-1n)),NDn=-(2n**(224n-1n)),UDn=-(2n**(232n-1n)),DDn=-(2n**(240n-1n)),HDn=-(2n**(248n-1n)),LDn=-(2n**(256n-1n)),zDn=2n**8n-1n,FDn=2n**16n-1n,jDn=2n**24n-1n,qDn=2n**32n-1n,$Dn=2n**40n-1n,GDn=2n**48n-1n,VDn=2n**56n-1n,KDn=2n**64n-1n,WDn=2n**72n-1n,QDn=2n**80n-1n,ZDn=2n**88n-1n,JDn=2n**96n-1n,YDn=2n**104n-1n,XDn=2n**112n-1n,eHn=2n**120n-1n,tHn=2n**128n-1n,rHn=2n**136n-1n,nHn=2n**144n-1n,oHn=2n**152n-1n,aHn=2n**160n-1n,iHn=2n**168n-1n,sHn=2n**176n-1n,cHn=2n**184n-1n,uHn=2n**192n-1n,lHn=2n**200n-1n,fHn=2n**208n-1n,dHn=2n**216n-1n,pHn=2n**224n-1n,mHn=2n**232n-1n,hHn=2n**240n-1n,yHn=2n**248n-1n,zY=2n**256n-1n});function jY(e,t){if(e.length!==t.length)throw new $Y({expectedLength:e.length,givenLength:t.length});let r=[];for(let n=0;n<e.length;n++){let o=e[n],s=t[n];r.push(jY.encode(o,s))}return Yl(...r)}var qY,$Y,GY,T$e=x(()=>{c();LY();ch();Kd();CD();(function(e){function t(r,n,o=!1){if(r===\"address\"){let d=n;return HY(d),QE(d.toLowerCase(),o?32:0)}if(r===\"string\")return WE(n);if(r===\"bytes\")return n;if(r===\"bool\")return QE(_Y(n),o?32:1);let s=r.match(C$e);if(s){let[d,m,h=\"256\"]=s,y=Number.parseInt(h)/8;return Xo(n,{size:o?32:y,signed:m===\"int\"})}let u=r.match(S$e);if(u){let[d,m]=u;if(Number.parseInt(m)!==(n.length-2)/2)throw new qY({expectedSize:Number.parseInt(m),value:n});return ZE(n,o?32:0)}let f=r.match(A$e);if(f&&Array.isArray(n)){let[d,m]=f,h=[];for(let y=0;y<n.length;y++)h.push(t(m,n[y],!0));return h.length===0?\"0x\":Yl(...h)}throw new GY(r)}e.encode=t})(jY||(jY={}));qY=class extends Vt{constructor({expectedSize:t,value:r}){super(`Size of bytes \"${r}\" (bytes${ss(r)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.BytesSizeMismatchError\"})}},$Y=class extends Vt{constructor({expectedLength:t,givenLength:r}){super([\"ABI encoding parameters/values length mismatch.\",`Expected length (parameters): ${t}`,`Given length (values): ${r}`].join(`\\n`)),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.LengthMismatchError\"})}},GY=class extends Vt{constructor(t){super(`Type \\\\`${t}\\\\` is not a valid ABI Type.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidTypeError\"})}}});var _$e=x(()=>{c()});var k$e=x(()=>{c()});var B$e=x(()=>{c()});var I$e=x(()=>{c()});var P$e=x(()=>{c()});var R$e=x(()=>{c()});var M$e=x(()=>{c()});var O$e=x(()=>{c()});var kx={};Wn(kx,{InvalidRError:()=>_D,InvalidSError:()=>kD,InvalidSerializedSizeError:()=>TD,InvalidVError:()=>BD,InvalidYParityError:()=>_x,MissingPropertiesError:()=>e3,assert:()=>ID,extract:()=>Lvt,from:()=>VY,fromBytes:()=>N$e,fromDerBytes:()=>zvt,fromDerHex:()=>U$e,fromHex:()=>k_,fromLegacy:()=>D$e,fromRpc:()=>H$e,fromTuple:()=>Fvt,toBytes:()=>jvt,toDerBytes:()=>qvt,toDerHex:()=>$vt,toHex:()=>L$e,toLegacy:()=>Gvt,toRpc:()=>Vvt,toTuple:()=>Kvt,vToYParity:()=>PD,validate:()=>Wvt,yParityToV:()=>KY});function ID(e,t={}){let{recovered:r}=t;if(typeof e.r>\"u\")throw new e3({signature:e});if(typeof e.s>\"u\")throw new e3({signature:e});if(r&&typeof e.yParity>\"u\")throw new e3({signature:e});if(e.r<0n||e.r>zY)throw new _D({value:e.r});if(e.s<0n||e.s>zY)throw new kD({value:e.s});if(typeof e.yParity==\"number\"&&e.yParity!==0&&e.yParity!==1)throw new _x({value:e.yParity})}function N$e(e){return k_(wo(e))}function k_(e){if(e.length!==130&&e.length!==132)throw new TD({signature:e});let t=BigInt($u(e,0,32)),r=BigInt($u(e,32,64)),n=(()=>{let o=+`0x${e.slice(130)}`;if(!Number.isNaN(o))try{return PD(o)}catch{throw new _x({value:o})}})();return typeof n>\"u\"?{r:t,s:r}:{r:t,s:r,yParity:n}}function Lvt(e){if(!(typeof e.r>\"u\")&&!(typeof e.s>\"u\"))return VY(e)}function VY(e){let t=typeof e==\"string\"?k_(e):e instanceof Uint8Array?N$e(e):typeof e.r==\"string\"?H$e(e):e.v?D$e(e):{r:e.r,s:e.s,...typeof e.yParity<\"u\"?{yParity:e.yParity}:{}};return ID(t),t}function zvt(e){return U$e(wo(e))}function U$e(e){let{r:t,s:r}=WU.Signature.fromDER(KE(e).slice(2));return{r:t,s:r}}function D$e(e){return{r:e.r,s:e.s,yParity:PD(e.v)}}function H$e(e){let t=(()=>{let r=e.v?Number(e.v):void 0,n=e.yParity?Number(e.yParity):void 0;if(typeof r==\"number\"&&typeof n!=\"number\"&&(n=PD(r)),typeof n!=\"number\")throw new _x({value:e.yParity});return n})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function Fvt(e){let[t,r,n]=e;return VY({r:r===\"0x\"?0n:BigInt(r),s:n===\"0x\"?0n:BigInt(n),yParity:t===\"0x\"?0:Number(t)})}function jvt(e){return Ba(L$e(e))}function L$e(e){ID(e);let t=e.r,r=e.s;return Yl(Xo(t,{size:32}),Xo(r,{size:32}),typeof e.yParity==\"number\"?Xo(KY(e.yParity),{size:1}):\"0x\")}function qvt(e){return new WU.Signature(e.r,e.s).toDERRawBytes()}function $vt(e){return`0x${new WU.Signature(e.r,e.s).toDERHex()}`}function Gvt(e){return{r:e.r,s:e.s,v:KY(e.yParity)}}function Vvt(e){let{r:t,s:r,yParity:n}=e;return{r:Xo(t,{size:32}),s:Xo(r,{size:32}),yParity:n===0?\"0x0\":\"0x1\"}}function Kvt(e){let{r:t,s:r,yParity:n}=e;return[n?\"0x01\":\"0x\",t===0n?\"0x\":C_(Xo(t)),r===0n?\"0x\":C_(Xo(r))]}function Wvt(e,t={}){try{return ID(e,t),!0}catch{return!1}}function PD(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new BD({value:e})}function KY(e){if(e===0)return 27;if(e===1)return 28;throw new _x({value:e})}var TD,e3,_D,kD,_x,BD,WY=x(()=>{c();xqe();qu();ch();Kd();GE();CD();TD=class extends Vt{constructor({signature:t}){super(`Value \\\\`${t}\\\\` is an invalid signature size.`,{metaMessages:[\"Expected: 64 bytes or 65 bytes.\",`Received ${ss(KE(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSerializedSizeError\"})}},e3=class extends Vt{constructor({signature:t}){super(`Signature \\\\`${tb(t)}\\\\` is missing either an \\\\`r\\\\`, \\\\`s\\\\`, or \\\\`yParity\\\\` property.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.MissingPropertiesError\"})}},_D=class extends Vt{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidRError\"})}},kD=class extends Vt{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSError\"})}},_x=class extends Vt{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidYParityError\"})}},BD=class extends Vt{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidVError\"})}}});var z$e=x(()=>{c()});var F$e=x(()=>{c()});function Xvt(e,t={}){let{pad:r=!0,url:n=!1}=t,o=new Uint8Array(Math.ceil(e.length/3)*4);for(let d=0,m=0;m<e.length;d+=4,m+=3){let h=(e[m]<<16)+(e[m+1]<<8)+(e[m+2]|0);o[d]=RD[h>>18],o[d+1]=RD[h>>12&63],o[d+2]=RD[h>>6&63],o[d+3]=RD[h&63]}let s=e.length%3,u=Math.floor(e.length/3)*4+(s&&s+1),f=Yvt.decode(new Uint8Array(o.buffer,0,u));return r&&s===1&&(f+=\"==\"),r&&s===2&&(f+=\"=\"),n&&(f=f.replaceAll(\"+\",\"-\").replaceAll(\"/\",\"_\")),f}function j$e(e,t={}){return Xvt(Ba(e),t)}function OD(e){let t=e.replace(/=+$/,\"\"),r=t.length,n=new Uint8Array(r+3);Jvt.encodeInto(t+\"===\",n);for(let s=0,u=0;s<t.length;s+=4,u+=3){let f=(MD[n[s]]<<18)+(MD[n[s+1]]<<12)+(MD[n[s+2]]<<6)+MD[n[s+3]];n[u]=f>>16,n[u+1]=f>>8&255,n[u+2]=f&255}let o=(r>>2)*3+(r%4&&r%4-1);return new Uint8Array(n.buffer,0,o)}var Jvt,Yvt,RD,MD,QY=x(()=>{c();qu();Jvt=new TextEncoder,Yvt=new TextDecoder,RD=Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[t,e.charCodeAt(0)])),MD={...Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63}});var $$e=x(()=>{c()});var G$e=x(()=>{c()});var V$e,rwt,K$e,nwt,NHn,W$e=x(()=>{c();V$e=6,rwt=32,K$e=4096,nwt=rwt*K$e,NHn=nwt*V$e-1-1*K$e*V$e});var Q$e=x(()=>{c()});var Z$e=x(()=>{c()});var J$e=x(()=>{c()});var Y$e=x(()=>{c()});var X$e=x(()=>{c()});var eGe=x(()=>{c()});var tGe=x(()=>{c()});var rGe=x(()=>{c()});var pwt,mwt,hwt,ywt,nGe,oGe,aGe,bwt,gwt,GHn,VHn,KHn,WHn,iGe=x(()=>{c();pwt=44032,mwt=4352,hwt=4449,ywt=4519,nGe=19,oGe=21,aGe=28,bwt=oGe*aGe,gwt=nGe*bwt,GHn=pwt+gwt,VHn=mwt+nGe,KHn=hwt+oGe,WHn=ywt+aGe});var sGe=x(()=>{c();iGe()});var cGe=x(()=>{c()});var uGe=x(()=>{c()});var lGe=x(()=>{c()});var fGe=x(()=>{c()});var dGe=x(()=>{c()});var pGe=x(()=>{c();vqe()});var mGe=x(()=>{c()});var tc,ZY,JY,YY,XY,eX,tX,rX,nX,oX,aX,iX,sX,hGe=x(()=>{c();tc=class extends Error{constructor(t){let{code:r,message:n,data:o}=t;super(n),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.BaseError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r,this.data=o}},ZY=class e extends tc{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Missing or invalid parameters.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidInputError\"})}};Object.defineProperty(ZY,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});JY=class e extends tc{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Requested resource not found.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ResourceNotFoundError\"})}};Object.defineProperty(JY,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});YY=class e extends tc{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Requested resource not available.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ResourceUnavailableError\"})}};Object.defineProperty(YY,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});XY=class e extends tc{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Transaction creation failed.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.TransactionRejectedError\"})}};Object.defineProperty(XY,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});eX=class e extends tc{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Method is not implemented.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.MethodNotSupportedError\"})}};Object.defineProperty(eX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});tX=class e extends tc{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Rate limit exceeded.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.LimitExceededError\"})}};Object.defineProperty(tX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});rX=class e extends tc{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"JSON-RPC version not supported.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.VersionNotSupportedError\"})}};Object.defineProperty(rX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});nX=class e extends tc{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Input is not a valid JSON-RPC request.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidRequestError\"})}};Object.defineProperty(nX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});oX=class e extends tc{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Method does not exist.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.MethodNotFoundError\"})}};Object.defineProperty(oX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});aX=class e extends tc{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Invalid method parameters.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidParamsError\"})}};Object.defineProperty(aX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});iX=class e extends tc{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Internal JSON-RPC error.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InternalError\"})}};Object.defineProperty(iX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});sX=class e extends tc{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Failed to parse JSON-RPC response.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ParseError\"})}};Object.defineProperty(sX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700})});var Bx,cX,uX,lX,fX,dX,yGe=x(()=>{c();YR();Bx=class extends Error{constructor(t,r){super(r),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderRpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t,this.details=r}},cX=class extends Bx{constructor({message:t=\"The user rejected the request.\"}={}){super(4001,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UserRejectedRequestError\"})}};Object.defineProperty(cX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});uX=class extends Bx{constructor({message:t=\"The requested method and/or account has not been authorized by the user.\"}={}){super(4100,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UnauthorizedError\"})}};Object.defineProperty(uX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});lX=class extends Bx{constructor({message:t=\"The provider does not support the requested method.\"}={}){super(4200,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UnsupportedMethodError\"})}};Object.defineProperty(lX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});fX=class extends Bx{constructor({message:t=\"The provider is disconnected from all chains.\"}={}){super(4900,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.DisconnectedError\"})}};Object.defineProperty(fX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});dX=class extends Bx{constructor({message:t=\"The provider is not connected to the requested chain.\"}={}){super(4901,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.ChainDisconnectedError\"})}};Object.defineProperty(dX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901})});var bGe=x(()=>{c()});var gGe=x(()=>{c()});var xGe=x(()=>{c()});var vGe,wGe,EGe,Pwt,Rwt,Mwt,pX,vLn,wLn,AGe=x(()=>{c();Lv();cY();d_();vGe={p:BigInt(\"0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff\"),n:BigInt(\"0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551\"),h:BigInt(1),a:BigInt(\"0xffffffff00000001000000000000000000000000fffffffffffffffffffffffc\"),b:BigInt(\"0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b\"),Gx:BigInt(\"0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296\"),Gy:BigInt(\"0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5\")},wGe={p:BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff\"),n:BigInt(\"0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973\"),h:BigInt(1),a:BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc\"),b:BigInt(\"0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef\"),Gx:BigInt(\"0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7\"),Gy:BigInt(\"0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f\")},EGe={p:BigInt(\"0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"),n:BigInt(\"0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409\"),h:BigInt(1),a:BigInt(\"0x1fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc\"),b:BigInt(\"0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00\"),Gx:BigInt(\"0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66\"),Gy:BigInt(\"0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650\")},Pwt=ju(vGe.p),Rwt=ju(wGe.p),Mwt=ju(EGe.p),pX=gE({...vGe,Fp:Pwt,lowS:!1},Tc),vLn=gE({...wGe,Fp:Rwt,lowS:!1},wB),wLn=gE({...EGe,Fp:Mwt,lowS:!1,allowedPrivateKeyLengths:[130,131,132]},vB)});var t3,SGe,ND=x(()=>{c();AGe();t3=pX,SGe=pX});function CGe(e){let{hash:t,payload:r,publicKey:n,signature:o}=e;return SGe.verify(o,r instanceof Uint8Array?r:Ba(r),AD(n).substring(2),...t?[{prehash:!0,lowS:!0}]:[])}var mX=x(()=>{c();ND();qu();__()});var _Ge=x(()=>{c()});var kGe=x(()=>{c()});var BGe=x(()=>{c()});var IGe=x(()=>{c()});var PGe=x(()=>{c()});var RGe=x(()=>{c()});var MGe=x(()=>{c()});var OGe=x(()=>{c()});var NGe=x(()=>{c()});var UGe=x(()=>{c()});var DGe=x(()=>{c()});var HGe=x(()=>{c()});var LGe=x(()=>{c()});function zGe(e){let t=e[4]===0?5:4,r=t+32,n=e[r+2]===0?r+3:r+2,o=BigInt(wo(e.slice(t,r))),s=BigInt(wo(e.slice(n)));return{r:o,s:s>t3.CURVE.n/2n?t3.CURVE.n-s:s}}async function FGe(e){try{let t=e.getPublicKey();if(!t)throw new rb;let r=new Uint8Array(t),n=await crypto.subtle.importKey(\"spki\",new Uint8Array(r),{name:\"ECDSA\",namedCurve:\"P-256\",hash:\"SHA-256\"},!0,[\"verify\"]),o=new Uint8Array(await crypto.subtle.exportKey(\"raw\",n));return Tx(o)}catch(t){if(t.message!==\"Permission denied to access object\")throw t;let r=new Uint8Array(e.attestationObject),n=32,o=88,s=d=>{let m=new Uint8Array([d,o,n]);for(let h=0;h<r.length-m.length;h++)if(m.every((y,v)=>r[h+v]===y))return h+m.length;throw new rb},u=s(33),f=s(34);return Tx(new Uint8Array([4,...r.slice(u,u+n),...r.slice(f,f+n)]))}}var jGe=x(()=>{c();ND();Kd();__();hX()});var UD={};Wn(UD,{CredentialCreationFailedError:()=>rb,CredentialRequestFailedError:()=>B_,createChallenge:()=>qGe,createCredential:()=>Wwt,getAuthenticatorData:()=>$Ge,getClientDataJSON:()=>GGe,getCredentialCreationOptions:()=>VGe,getCredentialRequestOptions:()=>KGe,getSignPayload:()=>Qwt,sign:()=>Zwt,verify:()=>Jwt});async function Wwt(e){let{createFn:t=window.navigator.credentials.create.bind(window.navigator.credentials),...r}=e,n=VGe(r);try{let o=await t(n);if(!o)throw new rb;let s=o.response,u=await FGe(s);return{id:o.id,publicKey:u,raw:o}}catch(o){throw new rb({cause:o})}}function $Ge(e={}){let{flag:t=5,rpId:r=window.location.hostname,signCount:n=0}=e,o=mD(WE(r)),s=Xo(t,{size:1}),u=Xo(n,{size:4});return Yl(o,s,u)}function GGe(e){let{challenge:t,crossOrigin:r=!1,extraClientData:n,origin:o=window.location.origin}=e;return JSON.stringify({type:\"webauthn.get\",challenge:j$e(t,{url:!0,pad:!1}),origin:o,crossOrigin:r,...n})}function VGe(e){let{attestation:t=\"none\",authenticatorSelection:r={residentKey:\"preferred\",requireResidentKey:!1,userVerification:\"required\"},challenge:n=qGe,excludeCredentialIds:o,name:s,rp:u={id:window.location.hostname,name:window.document.title},user:f,extensions:d}=e,m=f?.name??s;return{publicKey:{attestation:t,authenticatorSelection:r,challenge:n,...o?{excludeCredentials:o?.map(h=>({id:OD(h),type:\"public-key\"}))}:{},pubKeyCredParams:[{type:\"public-key\",alg:-7}],rp:u,user:{id:f?.id??pD(XE(m),{as:\"Bytes\"}),name:m,displayName:f?.displayName??m},extensions:d}}}function KGe(e){let{credentialId:t,challenge:r,rpId:n=window.location.hostname,userVerification:o=\"required\"}=e;return{publicKey:{...t?{allowCredentials:[{id:OD(t),type:\"public-key\"}]}:{},challenge:Ba(r),rpId:n,userVerification:o}}}function Qwt(e){let{challenge:t,crossOrigin:r,extraClientData:n,flag:o,origin:s,rpId:u,signCount:f,userVerification:d=\"required\"}=e,m=$Ge({flag:o,rpId:u,signCount:f}),h=GGe({challenge:t,crossOrigin:r,extraClientData:n,origin:s}),y=mD(WE(h)),v=h.indexOf(\\'\"challenge\"\\'),E=h.indexOf(\\'\"type\"\\'),C={authenticatorData:m,clientDataJSON:h,challengeIndex:v,typeIndex:E,userVerificationRequired:d===\"required\"},B=Yl(m,y);return{metadata:C,payload:B}}async function Zwt(e){let{getFn:t=window.navigator.credentials.get.bind(window.navigator.credentials),...r}=e,n=KGe(r);try{let o=await t(n);if(!o)throw new B_;let s=o.response,u=String.fromCharCode(...new Uint8Array(s.clientDataJSON)),f=u.indexOf(\\'\"challenge\"\\'),d=u.indexOf(\\'\"type\"\\'),m=zGe(new Uint8Array(s.signature));return{metadata:{authenticatorData:wo(new Uint8Array(s.authenticatorData)),clientDataJSON:u,challengeIndex:f,typeIndex:d,userVerificationRequired:n.publicKey.userVerification===\"required\"},signature:m,raw:o}}catch(o){throw new B_({cause:o})}}function Jwt(e){let{challenge:t,hash:r=!0,metadata:n,publicKey:o,signature:s}=e,{authenticatorData:u,challengeIndex:f,clientDataJSON:d,typeIndex:m,userVerificationRequired:h}=n,y=Ba(u);if(y.length<37)return!1;let v=y[32];if((v&1)!==1||h&&(v&4)!==4||(v&8)!==8&&(v&16)===16)return!1;let E=\\'\"type\":\"webauthn.get\"\\';if(E!==d.slice(Number(m),E.length+1))return!1;let C=d.slice(Number(f)).match(/^\"challenge\":\"(.*?)\"/);if(!C)return!1;let[B,R]=C;if(wo(OD(R))!==t)return!1;let M=mD(XE(d),{as:\"Bytes\"}),U=dD(y,M);return CGe({hash:r,payload:U,publicKey:o,signature:s})}var qGe,rb,B_,hX=x(()=>{c();QY();qu();ch();hD();Kd();mX();jGe();qGe=Uint8Array.from([105,171,180,181,160,222,75,198,42,42,32,31,141,37,186,233]);rb=class extends Vt{constructor({cause:t}={}){super(\"Failed to create credential.\",{cause:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WebAuthnP256.CredentialCreationFailedError\"})}},B_=class extends Vt{constructor({cause:t}={}){super(\"Failed to request credential.\",{cause:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WebAuthnP256.CredentialRequestFailedError\"})}}});var I_={};Wn(I_,{createKeyPair:()=>Ywt,sign:()=>Xwt,verify:()=>e6t});async function Ywt(e={}){let{extractable:t=!1}=e,r=await globalThis.crypto.subtle.generateKey({name:\"ECDSA\",namedCurve:\"P-256\"},t,[\"sign\",\"verify\"]),n=await globalThis.crypto.subtle.exportKey(\"raw\",r.publicKey),o=Tx(new Uint8Array(n));return{privateKey:r.privateKey,publicKey:o}}async function Xwt(e){let{payload:t,privateKey:r}=e,n=await globalThis.crypto.subtle.sign({name:\"ECDSA\",hash:\"SHA-256\"},r,YE(t)),o=kY(new Uint8Array(n)),s=PY(IY(o,0,32)),u=PY(IY(o,32,64));return u>t3.CURVE.n/2n&&(u=t3.CURVE.n-u),{r:s,s:u}}async function e6t(e){let{payload:t,signature:r}=e,n=await globalThis.crypto.subtle.importKey(\"raw\",NY(e.publicKey),{name:\"ECDSA\",namedCurve:\"P-256\"},!0,[\"verify\"]);return await globalThis.crypto.subtle.verify({name:\"ECDSA\",hash:\"SHA-256\"},n,dD(BY(r.r),BY(r.s)),YE(t))}var WGe=x(()=>{c();ND();qu();__()});var yX=x(()=>{c();Jqe();_$e();k$e();B$e();I$e();E$e();T$e();P$e();R$e();LY();M$e();z$e();F$e();QY();$$e();W$e();J$e();Y$e();X$e();eGe();tGe();qu();MY();rGe();sGe();ch();cGe();hD();lGe();Kd();fGe();GE();G$e();dGe();pGe();mGe();yGe();__();O$e();bGe();gGe();hGe();xGe();uGe();mX();WY();_Ge();CD();kGe();Q$e();IGe();PGe();RGe();MGe();OGe();NGe();UGe();DGe();HGe();LGe();BGe();hX();WGe();Z$e()});function DD(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function gX(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let n=DD(r);return(o,s)=>n.then(u=>s(u.transaction(t,o).objectStore(t)))}function xX(){return bX||(bX=gX(\"keyval-store\",\"keyval\")),bX}function QGe(e,t=xX()){return t(\"readonly\",r=>DD(r.get(e)))}function ZGe(e,t,r=xX()){return r(\"readwrite\",n=>(n.put(t,e),DD(n.transaction)))}function JGe(e,t=xX()){return t(\"readwrite\",r=>(r.delete(e),DD(r.transaction)))}var bX,YGe=x(()=>{c()});function XGe(e,t){let r=typeof indexedDB<\"u\"?gX(e,t):void 0;return{getItem:async n=>{let o=await QGe(n,r);return o||null},removeItem:async n=>JGe(n,r),setItem:async(n,o)=>ZGe(n,o,r)}}var eVe=x(()=>{c();YGe()});async function n6t(){let e=await I_.createKeyPair({extractable:!1}),t=cs.slice(Wd.toHex(e.publicKey),1);return await nb.setItem(t,e),await nb.setItem(HD,t),e}async function tVe(){let e=await nb.getItem(HD);if(!e)return null;let t=await nb.getItem(e);return t||null}async function o6t(){let e=await tVe();if(!e){let t=await n6t(),r=cs.slice(Wd.toHex(t.publicKey),1);return await nb.setItem(r,t),await nb.setItem(HD,r),t}return e}async function a6t(){let e=await o6t(),t=cs.slice(Wd.toHex(e.publicKey),1),r=async n=>{let{payload:o,metadata:s}=UD.getSignPayload({challenge:n,origin:\"https://keys.coinbase.com\",userVerification:\"preferred\"}),u=await I_.sign({payload:o,privateKey:e.privateKey});return{signature:kx.toHex(u),raw:{},webauthn:s}};return{id:t,publicKey:t,async sign({hash:n}){return r(n)},async signMessage({message:n}){return r(wm(n))},async signTypedData(n){return r(yd(n))},type:\"webAuthn\"}}async function Ix(){return{account:await a6t()}}async function rVe(){let e=await tVe();e&&(await nb.removeItem(cs.slice(Wd.toHex(e.publicKey),1)),await nb.removeItem(HD))}var t6t,r6t,HD,nb,LD=x(()=>{c();yX();Bo();eVe();t6t=\"cbwsdk\",r6t=\"keys\",HD=\"activeId\",nb=XGe(t6t,r6t)});var nVe,oVe,aVe,zD,iVe=x(()=>{c();Lu();vY();nVe={storageKey:\"ownPrivateKey\",keyType:\"private\"},oVe={storageKey:\"ownPublicKey\",keyType:\"public\"},aVe={storageKey:\"peerPublicKey\",keyType:\"public\"},zD=class{constructor(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(t){this.sharedSecret=null,this.peerPublicKey=t,await this.storeKey(aVe,t),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,Re.keys.clear()}async generateKeyPair(){let t=await Vqe();this.ownPrivateKey=t.privateKey,this.ownPublicKey=t.publicKey,await this.storeKey(nVe,t.privateKey),await this.storeKey(oVe,t.publicKey)}async loadKeysIfNeeded(){if(this.ownPrivateKey===null&&(this.ownPrivateKey=await this.loadKey(nVe)),this.ownPublicKey===null&&(this.ownPublicKey=await this.loadKey(oVe)),(this.ownPrivateKey===null||this.ownPublicKey===null)&&await this.generateKeyPair(),this.peerPublicKey===null&&(this.peerPublicKey=await this.loadKey(aVe)),this.sharedSecret===null){if(this.ownPrivateKey===null||this.peerPublicKey===null)return;this.sharedSecret=await Kqe(this.ownPrivateKey,this.peerPublicKey)}}async loadKey(t){let r=Re.keys.get(t.storageKey);return r?aD(t.keyType,r):null}async storeKey(t,r){let n=await oD(t.keyType,r);Re.keys.set(t.storageKey,n)}}});function Px(e,t){if(!(typeof e!=\"object\"||e===null))return t.split(/[.[\\\\]]+/).filter(Boolean).reduce((r,n)=>{if(typeof r==\"object\"&&r!==null)return r[n]},e)}var vX=x(()=>{c()});var wX=x(()=>{c();SI()});var FD,EX,Ai,jD,Rx=x(()=>{c();FD=\"0x0ba5ed0c6aa8c49038f819e587e2633c4a9f428a\",EX=\"0xf85210B21cC50302F477BA56686d2019dC9b67Ad\",Ai=[{inputs:[],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"AlreadyOwner\",type:\"error\"},{inputs:[],name:\"Initialized\",type:\"error\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"InvalidEthereumAddressOwner\",type:\"error\"},{inputs:[{name:\"key\",type:\"uint256\"}],name:\"InvalidNonceKey\",type:\"error\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"InvalidOwnerBytesLength\",type:\"error\"},{inputs:[],name:\"LastOwner\",type:\"error\"},{inputs:[{name:\"index\",type:\"uint256\"}],name:\"NoOwnerAtIndex\",type:\"error\"},{inputs:[{name:\"ownersRemaining\",type:\"uint256\"}],name:\"NotLastOwner\",type:\"error\"},{inputs:[{name:\"selector\",type:\"bytes4\"}],name:\"SelectorNotAllowed\",type:\"error\"},{inputs:[],name:\"Unauthorized\",type:\"error\"},{inputs:[],name:\"UnauthorizedCallContext\",type:\"error\"},{inputs:[],name:\"UpgradeFailed\",type:\"error\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"expectedOwner\",type:\"bytes\"},{name:\"actualOwner\",type:\"bytes\"}],name:\"WrongOwnerAtIndex\",type:\"error\"},{anonymous:!1,inputs:[{indexed:!0,name:\"index\",type:\"uint256\"},{indexed:!1,name:\"owner\",type:\"bytes\"}],name:\"AddOwner\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"index\",type:\"uint256\"},{indexed:!1,name:\"owner\",type:\"bytes\"}],name:\"RemoveOwner\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"implementation\",type:\"address\"}],name:\"Upgraded\",type:\"event\"},{stateMutability:\"payable\",type:\"fallback\"},{inputs:[],name:\"REPLAYABLE_NONCE_KEY\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"owner\",type:\"address\"}],name:\"addOwnerAddress\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"x\",type:\"bytes32\"},{name:\"y\",type:\"bytes32\"}],name:\"addOwnerPublicKey\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"functionSelector\",type:\"bytes4\"}],name:\"canSkipChainIdValidation\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"pure\",type:\"function\"},{inputs:[],name:\"domainSeparator\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"eip712Domain\",outputs:[{name:\"fields\",type:\"bytes1\"},{name:\"name\",type:\"string\"},{name:\"version\",type:\"string\"},{name:\"chainId\",type:\"uint256\"},{name:\"verifyingContract\",type:\"address\"},{name:\"salt\",type:\"bytes32\"},{name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"entryPoint\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"target\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"data\",type:\"bytes\"}],name:\"execute\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"data\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"executeBatch\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"calls\",type:\"bytes[]\"}],name:\"executeWithoutChainIdValidation\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"}],name:\"getUserOpHashWithoutChainId\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"implementation\",outputs:[{name:\"$\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"owners\",type:\"bytes[]\"}],name:\"initialize\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"isOwnerAddress\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"account\",type:\"bytes\"}],name:\"isOwnerBytes\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"x\",type:\"bytes32\"},{name:\"y\",type:\"bytes32\"}],name:\"isOwnerPublicKey\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],name:\"isValidSignature\",outputs:[{name:\"result\",type:\"bytes4\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"nextOwnerIndex\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"}],name:\"ownerAtIndex\",outputs:[{name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"ownerCount\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"proxiableUUID\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"owner\",type:\"bytes\"}],name:\"removeLastOwner\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"owner\",type:\"bytes\"}],name:\"removeOwnerAtIndex\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"removedOwnersCount\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"hash\",type:\"bytes32\"}],name:\"replaySafeHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"newImplementation\",type:\"address\"},{name:\"data\",type:\"bytes\"}],name:\"upgradeToAndCall\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"},{name:\"userOpHash\",type:\"bytes32\"},{name:\"missingAccountFunds\",type:\"uint256\"}],name:\"validateUserOp\",outputs:[{name:\"validationData\",type:\"uint256\"}],stateMutability:\"nonpayable\",type:\"function\"},{stateMutability:\"payable\",type:\"receive\"}],jD=[{inputs:[{name:\"implementation_\",type:\"address\"}],stateMutability:\"payable\",type:\"constructor\"},{inputs:[],name:\"OwnerRequired\",type:\"error\"},{inputs:[{name:\"owners\",type:\"bytes[]\"},{name:\"nonce\",type:\"uint256\"}],name:\"createAccount\",outputs:[{name:\"account\",type:\"address\"}],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"owners\",type:\"bytes[]\"},{name:\"nonce\",type:\"uint256\"}],name:\"getAddress\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"implementation\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"initCodeHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"}]});function AX(e){var t;if(!Array.isArray(e.params))return null;switch(e.method){case\"personal_sign\":return e.params[1];case\"eth_signTypedData_v4\":return e.params[0];case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"wallet_sendCalls\":return(t=e.params[0])===null||t===void 0?void 0:t.from;default:return null}}function sVe(e,t){if(!Array.isArray(e.params))throw ke.rpc.invalidParams();let r=[...e.params];switch(e.method){case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"wallet_sendCalls\":r[0].from=t;break;case\"eth_signTypedData_v4\":r[0]=t;break;case\"personal_sign\":r[1]=t;break;default:break}return Object.assign(Object.assign({},e),{params:r})}function SX(e){var t;if(!e||!Array.isArray(e)||!(!((t=e[0])===null||t===void 0)&&t.chainId))throw ke.rpc.invalidParams();if(typeof e[0].chainId!=\"string\"&&typeof e[0].chainId!=\"number\")throw ke.rpc.invalidParams()}function cVe(e){if(!e||!Array.isArray(e)||e.length!==1&&e.length!==2)throw ke.rpc.invalidParams();if(typeof e[0]!=\"string\"||!wt(e[0]))throw ke.rpc.invalidParams();if(e.length===2){if(!Array.isArray(e[1]))throw ke.rpc.invalidParams();for(let t of e[1])if(typeof t!=\"string\"||!t.startsWith(\"0x\"))throw ke.rpc.invalidParams()}}function r3(e,t){let r=Object.assign({},e);if(t&&e.method.startsWith(\"wallet_\")){let n=Px(r,\"params.0.capabilities\");if(typeof n>\"u\"&&(n={}),typeof n!=\"object\")throw ke.rpc.invalidParams();n=Object.assign(Object.assign({},t),n),r.params&&Array.isArray(r.params)&&(r.params[0]=Object.assign(Object.assign({},r.params[0]),{capabilities:n}))}return r}async function qD(){var e;let t=(e=Re.subAccountsConfig.get())!==null&&e!==void 0?e:{},r={};if(t.enableAutoSubAccounts){let{account:n}=t.toOwnerAccount?await t.toOwnerAccount():await Ix();if(!n)throw ke.provider.unauthorized(\"No owner account found\");r.addSubAccount={account:{type:\"create\",keys:[{type:n.address?\"address\":\"webauthn-p256\",publicKey:n.address||n.publicKey}]}}}Re.subAccountsConfig.set({capabilities:r})}function uVe(e){if(!(e.method===\"coinbase_fetchPermissions\"&&e.params===void 0)){if(e.method===\"coinbase_fetchPermissions\"&&Array.isArray(e.params)&&e.params.length===1&&typeof e.params[0]==\"object\"){if(typeof e.params[0].account!=\"string\"||!e.params[0].chainId.startsWith(\"0x\"))throw ke.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].account must be a hex string\");if(typeof e.params[0].chainId!=\"string\"||!e.params[0].chainId.startsWith(\"0x\"))throw ke.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].chainId must be a hex string\");if(typeof e.params[0].spender!=\"string\"||!e.params[0].spender.startsWith(\"0x\"))throw ke.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].spender must be a hex string\");return}throw ke.rpc.invalidParams()}}function lVe(e){var t,r,n;if(e.params!==void 0)return e;let o=(t=Re.getState().account.accounts)===null||t===void 0?void 0:t[0],s=(r=Re.getState().account.chain)===null||r===void 0?void 0:r.id,u=(n=Re.getState().subAccount)===null||n===void 0?void 0:n.address;if(!o||!u||!s)throw ke.rpc.invalidParams(\"FetchPermissions - one or more of account, sub account, or chain id is missing, connect to sub account via wallet_connect first\");return{method:\"coinbase_fetchPermissions\",params:[{account:o,chainId:le(s),spender:u}]}}function fVe({spendPermission:e,chainId:t}){return{domain:{name:\"Spend Permission Manager\",version:\"1\",chainId:t,verifyingContract:EX},types:{SpendPermission:[{name:\"account\",type:\"address\"},{name:\"spender\",type:\"address\"},{name:\"token\",type:\"address\"},{name:\"allowance\",type:\"uint160\"},{name:\"period\",type:\"uint48\"},{name:\"start\",type:\"uint48\"},{name:\"end\",type:\"uint48\"},{name:\"salt\",type:\"uint256\"},{name:\"extraData\",type:\"bytes\"}]},primaryType:\"SpendPermission\",message:{account:e.account,spender:e.spender,token:e.token,allowance:e.allowance,period:e.period,start:e.start,end:e.end,salt:e.salt,extraData:e.extraData}}}function dVe({spendPermissionBatch:e,chainId:t}){return{domain:{name:\"Spend Permission Manager\",version:\"1\",chainId:t,verifyingContract:EX},types:{SpendPermissionBatch:[{name:\"account\",type:\"address\"},{name:\"period\",type:\"uint48\"},{name:\"start\",type:\"uint48\"},{name:\"end\",type:\"uint48\"},{name:\"permissions\",type:\"PermissionDetails[]\"}],PermissionDetails:[{name:\"spender\",type:\"address\"},{name:\"token\",type:\"address\"},{name:\"allowance\",type:\"uint160\"},{name:\"salt\",type:\"uint256\"},{name:\"extraData\",type:\"bytes\"}]},primaryType:\"SpendPermissionBatch\",message:{account:e.account,period:e.period,start:e.start,end:e.end,permissions:e.permissions.map(r=>({spender:r.spender,token:r.token,allowance:r.allowance,salt:r.salt,extraData:r.extraData}))}}}async function $D({client:e,id:t}){var r;let n=await xm(e,{id:t});if(n.status===\"success\")return(r=n.receipts)===null||r===void 0?void 0:r[0].transactionHash;throw ke.rpc.internal(\"failed to send transaction\")}function GD({calls:e,from:t,chainId:r,capabilities:n}){let o=lJ.get().paymasterUrls,s={method:\"wallet_sendCalls\",params:[{version:\"1.0\",calls:e,chainId:le(r),from:t,atomicRequired:!0,capabilities:n}]};return o?.[r]&&(s=r3(s,{paymasterService:{url:o?.[r]}})),s}async function pVe(){let e=a_();return await new Promise(r=>{uE({snackbarContext:\"sub_account_insufficient_balance\"}),e.presentItem({autoExpand:!0,message:\"Insufficient spend permission. Choose how to proceed:\",menuItems:[{isRed:!1,info:\"Create new Spend Permission\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{rh({snackbarContext:\"sub_account_insufficient_balance\",snackbarAction:\"create_permission\"}),e.clear(),r(\"update_permission\")}},{isRed:!1,info:\"Continue in Popup\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{rh({snackbarContext:\"sub_account_insufficient_balance\",snackbarAction:\"continue_in_popup\"}),e.clear(),r(\"continue_popup\")}},{isRed:!0,info:\"Cancel\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{rh({snackbarContext:\"sub_account_insufficient_balance\",snackbarAction:\"cancel\"}),e.clear(),r(\"cancel\")}}]})})}function mVe({errorData:e,sourceAddress:t}){var r;let n=[];for(let[o,{amount:s,sources:u}]of Object.entries((r=e?.required)!==null&&r!==void 0?r:{})){if(u.filter(d=>at(d.balance)>=at(s)&&d.address.toLowerCase()===t?.toLowerCase()).length===0)throw new Error(\"Source address has insufficient balance for a token\");n.push({token:o,requiredAmount:at(s)})}return n}function hVe(e){return typeof e==\"object\"&&e!==null&&\"calls\"in e}function yVe(e){return Array.isArray(e)&&e.length===1&&typeof e[0]==\"object\"&&e[0]!==null&&\"to\"in e[0]}function i6t(e){return La(Gt(ot(e)),0,16)}function bVe({attribution:e,dappOrigin:t}){if(e){if(\"auto\"in e&&e.auto&&t)return i6t(t);if(\"dataSuffix\"in e)return e.dataSuffix}}function gVe(e,t){var r;if(!Array.isArray(e?.params))return!1;let n=(r=e.params[0])===null||r===void 0?void 0:r.capabilities;return!n||typeof n!=\"object\"?!1:t in n}function P_(e,t){let r=e.filter(n=>n!==t);return[t,...r]}function R_(e,t){return[...e.filter(n=>n!==t),t]}async function xVe(){let e=Re.spendPermissions.get(),t=Re.subAccounts.get(),r=Re.account.get().accounts;return r?{accounts:r?.map(o=>({address:o,capabilities:{subAccounts:t?[t]:void 0,spendPermissions:e.length>0?{permissions:e}:void 0}}))}:null}var VD=x(()=>{c();Bo();Bo();wi();gU();Lu();vX();RU();wX();LD();Rx()});function s6t(e){return e.replaceAll(\"+\",\"-\").replaceAll(\"/\",\"_\").replace(/=+$/,\"\")}function KD(e){let t=btoa(String.fromCharCode(...new Uint8Array(e)));return s6t(t)}function vVe({webauthn:e,signature:t,id:r}){let n=kx.fromHex(t);return{id:r,rawId:KD($i(r)),response:{authenticatorData:KD(Jr(e.authenticatorData)),clientDataJSON:KD($i(e.clientDataJSON)),signature:KD(c6t(n.r,n.s))},type:JSON.parse(e.clientDataJSON).type}}function c6t(e,t){let r=Jr(Mn(le(e))),n=Jr(Mn(le(t))),o=r.length,s=n.length,u=o+s+4,f=new Uint8Array(u+2);return f[0]=48,f[1]=u,f[2]=2,f[3]=o,f.set(r,4),f[o+4]=2,f[o+5]=s,f.set(n,o+6),f}var wVe=x(()=>{c();yX();Bo()});async function EVe(e){let{owner:t,ownerIndex:r,address:n,client:o,factoryData:s}=e,u={abi:LJ,address:zJ,version:\"0.6\"},f={abi:jD,address:FD};return $J({client:o,entryPoint:u,extend:{abi:Ai,factory:f},async decodeCalls(d){let m=K1({abi:Ai,data:d});if(m.functionName===\"execute\")return[{to:m.args[0],value:m.args[1],data:m.args[2]}];if(m.functionName===\"executeBatch\")return m.args[0].map(h=>({to:h.target,value:h.value,data:h.data}));throw new ae(`unable to decode calls for \"${m.functionName}\"`)},async encodeCalls(d){var m,h;return d.length===1?Ct({abi:Ai,functionName:\"execute\",args:[d[0].to,(m=d[0].value)!==null&&m!==void 0?m:BigInt(0),(h=d[0].data)!==null&&h!==void 0?h:\"0x\"]}):Ct({abi:Ai,functionName:\"executeBatch\",args:[d.map(y=>{var v,E;return{data:(v=y.data)!==null&&v!==void 0?v:\"0x\",target:y.to,value:(E=y.value)!==null&&E!==void 0?E:BigInt(0)}})]})},async getAddress(){return n},async getFactoryArgs(){return s?{factory:f.address,factoryData:s}:{factory:f.address,factoryData:s}},async getStubSignature(){return t.type===\"webAuthn\"?\"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001949fc7c88032b9fcb5f6efc7a7b8c63668eae9871b765e23123bb473ff57aa831a7c0d9276168ebcc29f2875a0239cffdf2a9cd1c2007c5c77c071db9264df1d000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2273496a396e6164474850596759334b7156384f7a4a666c726275504b474f716d59576f4d57516869467773222c226f726967696e223a2268747470733a2f2f7369676e2e636f696e626173652e636f6d222c2263726f73734f726967696e223a66616c73657d00000000000000000000000000000000000000000000\":M_({ownerIndex:r,signature:\"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c\"})},async sign(d){let m=await this.getAddress(),h=CX({address:m,chainId:o.chain.id,hash:d.hash}),y=await WD({hash:h,owner:t});return M_({ownerIndex:r,signature:y})},async signMessage(d){let{message:m}=d,h=await this.getAddress(),y=CX({address:h,chainId:o.chain.id,hash:wm(m)}),v=await WD({hash:y,owner:t});return M_({ownerIndex:r,signature:v})},async signTypedData(d){let{domain:m,types:h,primaryType:y,message:v}=d,E=await this.getAddress(),C=CX({address:E,chainId:o.chain.id,hash:yd({domain:m,message:v,primaryType:y,types:h})}),B=await WD({hash:C,owner:t});return M_({ownerIndex:r,signature:B})},async signUserOperation(d){let{chainId:m=o.chain.id}=d,h=u6t(d,[\"chainId\"]),y=await this.getAddress(),v=qJ({chainId:m,entryPointAddress:u.address,entryPointVersion:u.version,userOperation:Object.assign(Object.assign({},h),{sender:y})}),E=await WD({hash:v,owner:t});return M_({ownerIndex:r,signature:E})},userOperation:{async estimateGas(d){var m;if(t.type===\"webAuthn\")return{verificationGasLimit:BigInt(Math.max(Number((m=d.verificationGasLimit)!==null&&m!==void 0?m:BigInt(0)),8e5))}}}})}async function WD({hash:e,owner:t}){if(t.type===\"webAuthn\"){let{signature:r,webauthn:n}=await t.sign({hash:e});return l6t({signature:r,webauthn:n})}if(t.sign)return t.sign({hash:e});throw new ae(\"`owner` does not support raw sign.\")}function CX({address:e,chainId:t,hash:r}){return yd({domain:{chainId:t,name:\"Coinbase Smart Wallet\",verifyingContract:e,version:\"1\"},types:{CoinbaseSmartWalletMessage:[{name:\"hash\",type:\"bytes32\"}]},primaryType:\"CoinbaseSmartWalletMessage\",message:{hash:r}})}function l6t({webauthn:e,signature:t}){let{r,s:n}=k_(t);return zn([{components:[{name:\"authenticatorData\",type:\"bytes\"},{name:\"clientDataJSON\",type:\"bytes\"},{name:\"challengeIndex\",type:\"uint256\"},{name:\"typeIndex\",type:\"uint256\"},{name:\"r\",type:\"uint256\"},{name:\"s\",type:\"uint256\"}],type:\"tuple\"}],[{authenticatorData:e.authenticatorData,clientDataJSON:ks(e.clientDataJSON),challengeIndex:BigInt(e.challengeIndex),typeIndex:BigInt(e.typeIndex),r,s:n}])}function M_(e){let{ownerIndex:t=0}=e,r=(()=>{if($t(e.signature)!==65)return e.signature;let n=RP(e.signature);return SV([\"bytes32\",\"bytes32\",\"uint8\"],[n.r,n.s,n.yParity===0?27:28])})();return zn([{components:[{name:\"ownerIndex\",type:\"uint8\"},{name:\"signatureData\",type:\"bytes\"}],type:\"tuple\"}],[{ownerIndex:t,signatureData:r}])}var u6t,AVe=x(()=>{c();WY();Bo();yY();Rx();u6t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}});async function SVe({address:e,client:t,factory:r,factoryData:n,owner:o,ownerIndex:s,parentAddress:u,attribution:f}){var d;let m={address:e,factory:r,factoryData:n},h=(d=t.chain)===null||d===void 0?void 0:d.id;if(!h)throw ke.rpc.internal(\"chainId not found\");let y=await EVe({owner:o,ownerIndex:s??1,address:e,client:t,factoryData:n}),v=async E=>{var C,B,R,M,U,O;try{switch(E.method){case\"wallet_addSubAccount\":return m;case\"eth_accounts\":return[m.address];case\"eth_coinbase\":return m.address;case\"net_version\":return h.toString();case\"eth_chainId\":return le(h);case\"eth_sendTransaction\":{Vd(E.params);let N=E.params[0];ka(N.to,ke.rpc.invalidParams(\"to is required\"));let j={to:N.to,data:fU((C=N.data)!==null&&C!==void 0?C:\"0x\",!0),value:fU((B=N.value)!==null&&B!==void 0?B:\"0x\",!0),from:(R=N.from)!==null&&R!==void 0?R:m.address},K=GD({calls:[j],chainId:h,from:j.from}),G=await v(K);return $D({client:t,id:G})}case\"wallet_sendCalls\":{Vd(E.params);let N=Px(E.params[0],\"chainId\");if(!N)throw ke.rpc.invalidParams(\"chainId is required\");if(!Wr(N))throw ke.rpc.invalidParams(\"chainId must be a hex encoded integer\");if(!E.params[0])throw ke.rpc.invalidParams(\"params are required\");if(!(\"calls\"in E.params[0]))throw ke.rpc.invalidParams(\"calls are required\");let j={method:\"wallet_prepareCalls\",params:[{version:\"1.0\",calls:E.params[0].calls,chainId:N,from:m.address,capabilities:\"capabilities\"in E.params[0]?E.params[0].capabilities:{}}]};u&&(j=r3(j,{funding:[{type:\"spendPermission\",data:{autoApply:!0,sources:[u],preference:\"PREFER_DIRECT_BALANCE\"}}]}));let K=await v(j),G=await((U=(M=o).sign)===null||U===void 0?void 0:U.call(M,{hash:YA(K.signatureRequest.hash)})),J;if(!G)throw ke.rpc.internal(\"signature not found\");return Wr(G)?J={type:\"secp256k1\",data:{address:o.address,signature:G}}:J={type:\"webauthn\",data:{signature:JSON.stringify(vVe(Object.assign({id:(O=o.id)!==null&&O!==void 0?O:\"1\"},G))),publicKey:o.publicKey}},(await v({method:\"wallet_sendPreparedCalls\",params:[{version:\"1.0\",type:K.type,data:K.userOp,chainId:K.chainId,signature:J}]}))[0]}case\"wallet_sendPreparedCalls\":{Vd(E.params);let N=Px(E.params[0],\"chainId\");if(!N)throw ke.rpc.invalidParams(\"chainId is required\");if(!Wr(N))throw ke.rpc.invalidParams(\"chainId must be a hex encoded integer\");return await t.request({method:\"wallet_sendPreparedCalls\",params:E.params})}case\"wallet_prepareCalls\":{Vd(E.params);let N=Px(E.params[0],\"chainId\");if(!N)throw ke.rpc.invalidParams(\"chainId is required\");if(!Wr(N))throw ke.rpc.invalidParams(\"chainId must be a hex encoded integer\");if(!E.params[0])throw ke.rpc.invalidParams(\"params are required\");if(!Px(E.params[0],\"calls\"))throw ke.rpc.invalidParams(\"calls are required\");let j=E.params[0];return f&&j.capabilities&&!(\"attribution\"in j.capabilities)&&(j.capabilities.attribution=f),await t.request({method:\"wallet_prepareCalls\",params:[Object.assign(Object.assign({},E.params[0]),{chainId:N})]})}case\"personal_sign\":{if(Vd(E.params),!Wr(E.params[0]))throw ke.rpc.invalidParams(\"message must be a hex encoded string\");let N=YA(E.params[0]);return y.signMessage({message:N})}case\"eth_signTypedData_v4\":{Vd(E.params);let N=typeof E.params[1]==\"string\"?JSON.parse(E.params[1]):E.params[1];return y.signTypedData(N)}default:throw ke.rpc.methodNotSupported()}}catch(N){if(cU(N)){let j=fFe(N);if(j)throw j}throw N}};return{request:v}}var CVe=x(()=>{c();wi();Zl();$E();wVe();vX();Bo();VD();AVe()});async function QD({address:e,client:t,publicKey:r,factory:n,factoryData:o}){if(!await Ji(t,{address:e})&&n&&o){if(hn(n)!==hn(FD))throw ke.rpc.internal(\"unknown factory address\");let f=K1({abi:jD,data:o});if(f.functionName!==\"createAccount\")throw ke.rpc.internal(\"unknown factory function\");let[d]=f.args;return d.findIndex(m=>m.toLowerCase()===TVe(r).toLowerCase())}let u=await Xr(t,{address:e,abi:Ai,functionName:\"ownerCount\"});for(let f=Number(u)-1;f>=0;f--){let d=await Xr(t,{address:e,abi:Ai,functionName:\"ownerAtIndex\",args:[BigInt(f)]}),m=TVe(r);if(d.toLowerCase()===m.toLowerCase())return f}return-1}function TVe(e){return wt(e)?Qr(e):e}var TX=x(()=>{c();wi();Bo();pW();Rx()});async function _Ve(){let e=a_();return new Promise(t=>{uE({snackbarContext:\"sub_account_add_owner\"}),e.presentItem({autoExpand:!0,message:\"App requires a signer update\",menuItems:[{isRed:!1,info:\"Confirm\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{rh({snackbarContext:\"sub_account_add_owner\",snackbarAction:\"confirm\"}),e.clear(),t(\"authenticate\")}},{isRed:!0,info:\"Cancel\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{rh({snackbarContext:\"sub_account_add_owner\",snackbarAction:\"cancel\"}),e.clear(),t(\"cancel\")}}]})})}var kVe=x(()=>{c();gU();RU()});async function BVe({ownerAccount:e,globalAccountRequest:t}){var r,n;let o=Re.account.get(),s=Re.subAccounts.get(),u=(r=o.accounts)===null||r===void 0?void 0:r.find(C=>C.toLowerCase()!==s?.address.toLowerCase());ka(u,ke.provider.unauthorized(\"no global account\")),ka((n=o.chain)===null||n===void 0?void 0:n.id,ke.provider.unauthorized(\"no chain id\")),ka(s?.address,ke.provider.unauthorized(\"no sub account\"));let f=[];if(e.type===\"local\"&&e.address&&f.push({to:s.address,data:Ct({abi:Ai,functionName:\"addOwnerAddress\",args:[e.address]}),value:ot(0)}),e.publicKey){let[C,B]=Rs([{type:\"bytes32\"},{type:\"bytes32\"}],e.publicKey);f.push({to:s.address,data:Ct({abi:Ai,functionName:\"addOwnerPublicKey\",args:[C,B]}),value:ot(0)})}let d={method:\"wallet_sendCalls\",params:[{version:\"1\",calls:f,chainId:le(84532),from:u}]};if(await _Ve()===\"cancel\")throw ke.provider.unauthorized(\"user cancelled\");let h=await t(d),y=nD(o.chain.id);if(ka(y,ke.rpc.internal(`client not found for chainId ${o.chain.id}`)),(await xm(y,{id:h})).status!==\"success\")throw ke.rpc.internal(\"add owner call failed\");let E=await QD({address:s.address,publicKey:e.type===\"local\"&&e.address?e.address:e.publicKey,client:y});if(E===-1)throw ke.rpc.internal(\"failed to find owner index\");return E}var IVe=x(()=>{c();wi();xY();Lu();$E();Bo();wX();Rx();TX();kVe()});async function PVe({errorData:e,globalAccountAddress:t,subAccountAddress:r,client:n,request:o,subAccountRequest:s,globalAccountRequest:u}){var f;let d=(f=n.chain)===null||f===void 0?void 0:f.id;ka(d,ke.rpc.internal(\"invalid chainId\"));let m=mVe({errorData:e,sourceAddress:t}),h=await pVe();if(h===\"cancel\")throw new Error(\"User cancelled funding\");let y,v=3600*24,E=3;if(h===\"update_permission\"){if(m.length===1){let O=m[0],N=fVe({spendPermission:{token:O.token,allowance:le(O.requiredAmount*BigInt(E)),period:v,account:t,spender:r,start:0,end:0xffffffffffff,salt:le(BigInt(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),extraData:\"0x\"},chainId:d});y={method:\"eth_signTypedData_v4\",params:[t,N]}}else{let O=dVe({spendPermissionBatch:{account:t,period:v,start:0,end:0xffffffffffff,permissions:m.map(N=>({token:N.token,allowance:le(N.requiredAmount*BigInt(E)),period:v,account:t,spender:r,salt:\"0x0\",extraData:\"0x\"}))},chainId:d});y={method:\"eth_signTypedData_v4\",params:[t,O]}}try{await u(y)}catch(O){throw console.error(O),new Error(\"User denied spend permission request\")}return s(o)}let C=m.map(O=>O.token.toLowerCase()===\"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE\".toLowerCase()?{to:r,value:le(O.requiredAmount),data:\"0x\"}:{to:O.token,value:\"0x0\",data:Ct({abi:YG,functionName:\"transfer\",args:[r,O.requiredAmount]})}),B;if(o.method===\"wallet_sendCalls\"&&hVe(o.params))B=o.params[0];else if(o.method===\"eth_sendTransaction\"&&yVe(o.params))B=GD({calls:[o.params[0]],chainId:d,from:o.params[0].from}).params[0];else throw new Error(\"Could not get original call\");let R=Ct({abi:Ai,functionName:\"executeBatch\",args:[B.calls.map(O=>{var N,j;return{target:O.to,value:at((N=O.value)!==null&&N!==void 0?N:\"0x0\"),data:(j=O.data)!==null&&j!==void 0?j:\"0x\"}})]}),M=[...C,{data:R,to:r,value:\"0x0\"}],U=await u({method:\"wallet_sendCalls\",params:[Object.assign(Object.assign({},B),{calls:M,from:t})]});return o.method===\"eth_sendTransaction\"?$D({client:n,id:U}):U}var RVe=x(()=>{c();wi();$E();Bo();VD();Rx()});var O_,MVe=x(()=>{c();cE();Bo();wi();kje();Hje();HJ();Zl();xY();DU();Lu();$E();Gqe();vY();sE();LD();iVe();VD();CVe();TX();IVe();RVe();O_=class{constructor(t){var r,n,o,s;this.communicator=t.communicator,this.callback=t.callback,this.keyManager=new zD;let{account:u,chains:f}=Re.getState();this.accounts=(r=u.accounts)!==null&&r!==void 0?r:[],this.chain=(n=u.chain)!==null&&n!==void 0?n:{id:(s=(o=t.metadata.appChainIds)===null||o===void 0?void 0:o[0])!==null&&s!==void 0?s:1},f&&gY(f)}async handshake(t){var r,n,o;let s=ec.get(t);Eje({method:t.method,correlationId:s});try{await((n=(r=this.communicator).waitForPopupLoaded)===null||n===void 0?void 0:n.call(r));let u=await this.createRequestMessage({handshake:{method:t.method,params:(o=t.params)!==null&&o!==void 0?o:[]}},s),f=await this.communicator.postRequestAndWaitForResponse(u);if(\"failure\"in f.content)throw f.content.failure;let d=await aD(\"public\",f.sender);await this.keyManager.setPeerPublicKey(d);let m=await this.decryptResponseMessage(f);this.handleResponse(t,m),Sje({method:t.method,correlationId:s})}catch(u){throw Aje({method:t.method,correlationId:s,errorMessage:oh(u)}),u}}async request(t){let r=ec.get(t);Cje({method:t.method,correlationId:r});try{let n=await this._request(t);return _je({method:t.method,correlationId:r}),n}catch(n){throw Tje({method:t.method,correlationId:r,errorMessage:oh(n)}),n}}async _request(t){var r,n,o,s,u,f,d,m,h,y,v,E,C,B;if(this.accounts.length===0)switch(t.method){case\"eth_requestAccounts\":return await((n=(r=this.communicator).waitForPopupLoaded)===null||n===void 0?void 0:n.call(r)),await qD(),await this.request({method:\"wallet_connect\",params:[{version:\"1\",capabilities:Object.assign({},(s=(o=Re.subAccountsConfig.get())===null||o===void 0?void 0:o.capabilities)!==null&&s!==void 0?s:{})}]}),this.accounts;case\"wallet_switchEthereumChain\":{SX(t.params),this.chain.id=Number(t.params[0].chainId);return}case\"wallet_connect\":{await((f=(u=this.communicator).waitForPopupLoaded)===null||f===void 0?void 0:f.call(u)),await qD();let R={};gVe(t,\"addSubAccount\")&&(R=(m=(d=Re.subAccountsConfig.get())===null||d===void 0?void 0:d.capabilities)!==null&&m!==void 0?m:{});let M=r3(t,R);return this.sendRequestToPopup(M)}case\"wallet_sendCalls\":case\"wallet_sign\":return this.sendRequestToPopup(t);default:throw ke.provider.unauthorized()}if(this.shouldRequestUseSubAccountSigner(t)){let R=ec.get(t);Bje({method:t.method,correlationId:R});try{let M=await this.sendRequestToSubAccountSigner(t);return Ije({method:t.method,correlationId:R}),M}catch(M){throw Pje({method:t.method,correlationId:R,errorMessage:oh(M)}),M}}switch(t.method){case\"eth_requestAccounts\":case\"eth_accounts\":{let R=Re.subAccounts.get(),M=Re.subAccountsConfig.get();return R?.address&&(this.accounts=M?.enableAutoSubAccounts?P_(this.accounts,R.address):R_(this.accounts,R.address)),(h=this.callback)===null||h===void 0||h.call(this,\"connect\",{chainId:le(this.chain.id)}),this.accounts}case\"eth_coinbase\":return this.accounts[0];case\"net_version\":return this.chain.id;case\"eth_chainId\":return le(this.chain.id);case\"wallet_getCapabilities\":return this.handleGetCapabilitiesRequest(t);case\"wallet_switchEthereumChain\":return this.handleSwitchChainRequest(t);case\"eth_ecRecover\":case\"personal_sign\":case\"wallet_sign\":case\"personal_ecRecover\":case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"eth_signTypedData_v1\":case\"eth_signTypedData_v3\":case\"eth_signTypedData_v4\":case\"eth_signTypedData\":case\"wallet_addEthereumChain\":case\"wallet_watchAsset\":case\"wallet_sendCalls\":case\"wallet_showCallsStatus\":case\"wallet_grantPermissions\":return this.sendRequestToPopup(t);case\"wallet_connect\":{let R=await xVe();if(R)return R;await((v=(y=this.communicator).waitForPopupLoaded)===null||v===void 0?void 0:v.call(y)),await qD();let M=Re.subAccountsConfig.get(),U=r3(t,(E=M?.capabilities)!==null&&E!==void 0?E:{});return(C=this.callback)===null||C===void 0||C.call(this,\"connect\",{chainId:le(this.chain.id)}),this.sendRequestToPopup(U)}case\"wallet_getSubAccounts\":{let R=Re.subAccounts.get();if(R?.address)return{subAccounts:[R]};if(!this.chain.rpcUrl)throw ke.rpc.internal(\"No RPC URL set for chain\");let M=await Wy(t,this.chain.rpcUrl);if(Vd(M.subAccounts,\"subAccounts\"),M.subAccounts.length>0){b_(M.subAccounts[0]);let U=M.subAccounts[0];Re.subAccounts.set({address:U.address,factory:U.factory,factoryData:U.factoryData})}return M}case\"wallet_addSubAccount\":return this.addSubAccount(t);case\"coinbase_fetchPermissions\":{uVe(t);let R=lVe(t),M=await Wy(R,bU),U=Zr((B=R.params)===null||B===void 0?void 0:B[0].chainId);return Re.spendPermissions.set(M.permissions.map(O=>Object.assign(Object.assign({},O),{chainId:U}))),M}default:if(!this.chain.rpcUrl)throw ke.rpc.internal(\"No RPC URL set for chain\");return Wy(t,this.chain.rpcUrl)}}async sendRequestToPopup(t){var r,n;await((n=(r=this.communicator).waitForPopupLoaded)===null||n===void 0?void 0:n.call(r));let o=await this.sendEncryptedRequest(t),s=await this.decryptResponseMessage(o);return this.handleResponse(t,s)}async handleResponse(t,r){var n,o,s,u,f;let d=r.result;if(\"error\"in d)throw d.error;switch(t.method){case\"eth_requestAccounts\":{let m=d.value;this.accounts=m,Re.account.set({accounts:m,chain:this.chain}),(n=this.callback)===null||n===void 0||n.call(this,\"accountsChanged\",m);break}case\"wallet_connect\":{let m=d.value,h=m.accounts.map(M=>M.address);this.accounts=h,Re.account.set({accounts:h});let y=m.accounts.at(0),v=y?.capabilities;if(v?.subAccounts){let M=v?.subAccounts;Vd(M,\"subAccounts\"),b_(M[0]),Re.subAccounts.set({address:M[0].address,factory:M[0].factory,factoryData:M[0].factoryData})}let E=[this.accounts[0]],C=Re.subAccounts.get(),B=Re.subAccountsConfig.get();C?.address&&(this.accounts=B?.enableAutoSubAccounts?P_(this.accounts,C.address):R_(this.accounts,C.address));let R=(s=(o=m?.accounts)===null||o===void 0?void 0:o[0].capabilities)===null||s===void 0?void 0:s.spendPermissions;R&&\"permissions\"in R&&Re.spendPermissions.set(R?.permissions),(u=this.callback)===null||u===void 0||u.call(this,\"accountsChanged\",E);break}case\"wallet_addSubAccount\":{b_(d.value);let m=d.value;Re.subAccounts.set(m);let h=Re.subAccountsConfig.get();this.accounts=h?.enableAutoSubAccounts?P_(this.accounts,m.address):R_(this.accounts,m.address),(f=this.callback)===null||f===void 0||f.call(this,\"accountsChanged\",this.accounts);break}default:break}return d.value}async cleanup(){var t,r;let n=Re.config.get().metadata;await this.keyManager.clear(),Re.account.clear(),Re.subAccounts.clear(),Re.spendPermissions.clear(),Re.chains.clear(),this.accounts=[],this.chain={id:(r=(t=n?.appChainIds)===null||t===void 0?void 0:t[0])!==null&&r!==void 0?r:1}}async handleSwitchChainRequest(t){SX(t.params);let r=lx(t.params[0].chainId);if(this.updateChain(r))return null;let o=await this.sendRequestToPopup(t);return o===null&&this.updateChain(r),o}async handleGetCapabilitiesRequest(t){cVe(t.params);let r=t.params[0],n=t.params[1];if(!this.accounts.some(f=>di(f,r)))throw ke.provider.unauthorized(\"no active account found when getting capabilities\");let o=Re.getState().account.capabilities;if(!o)return{};if(!n||n.length===0)return o;let s=new Set(n.map(f=>Zr(f)));return Object.fromEntries(Object.entries(o).filter(([f])=>{try{let d=Zr(f);return s.has(d)}catch{return!1}}))}async sendEncryptedRequest(t){let r=await this.keyManager.getSharedSecret();if(!r)throw ke.provider.unauthorized(\"No shared secret found when encrypting request\");let n=await Qqe({action:t,chainId:this.chain.id},r),o=ec.get(t),s=await this.createRequestMessage({encrypted:n},o);return this.communicator.postRequestAndWaitForResponse(s)}async createRequestMessage(t,r){let n=await oD(\"public\",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),correlationId:r,sender:n,content:t,timestamp:new Date}}async decryptResponseMessage(t){var r,n,o;let s=t.content;if(\"failure\"in s)throw s.failure;let u=await this.keyManager.getSharedSecret();if(!u)throw ke.provider.unauthorized(\"Invalid session: no shared secret found when decrypting response\");let f=await Zqe(s.encrypted,u),d=(r=f.data)===null||r===void 0?void 0:r.chains;if(d){let h=(n=f.data)===null||n===void 0?void 0:n.nativeCurrencies,y=Object.entries(d).map(([v,E])=>{let C=h?.[Number(v)];return Object.assign({id:Number(v),rpcUrl:E},C?{nativeCurrency:C}:{})});Re.chains.set(y),this.updateChain(this.chain.id,y),gY(y)}let m=(o=f.data)===null||o===void 0?void 0:o.capabilities;return m&&Re.account.set({capabilities:m}),f}updateChain(t,r){var n;let o=Re.getState(),s=r??o.chains,u=s?.find(f=>f.id===t);return u?(u!==this.chain&&(this.chain=u,Re.account.set({chain:u}),(n=this.callback)===null||n===void 0||n.call(this,\"chainChanged\",eh(u.id))),!0):!1}async addSubAccount(t){var r,n,o,s;let f=Re.getState().subAccount,d=Re.subAccountsConfig.get();if(f?.address)return this.accounts=d?.enableAutoSubAccounts?P_(this.accounts,f.address):R_(this.accounts,f.address),(r=this.callback)===null||r===void 0||r.call(this,\"accountsChanged\",this.accounts),f;if(await((o=(n=this.communicator).waitForPopupLoaded)===null||o===void 0?void 0:o.call(n)),Array.isArray(t.params)&&t.params.length>0&&t.params[0].account&&t.params[0].account.type===\"create\"){let h;if(t.params[0].account.keys&&t.params[0].account.keys.length>0)h=t.params[0].account.keys;else{let y=(s=Re.subAccountsConfig.get())!==null&&s!==void 0?s:{},{account:v}=y.toOwnerAccount?await y.toOwnerAccount():await Ix();if(!v)throw ke.provider.unauthorized(\"could not get subaccount owner account when adding sub account\");h=[{type:v.address?\"address\":\"webauthn-p256\",publicKey:v.address||v.publicKey}]}t.params[0].account.keys=h}let m=await this.sendRequestToPopup(t);return b_(m),m}shouldRequestUseSubAccountSigner(t){let r=AX(t),n=Re.subAccounts.get();return r?r.toLowerCase()===n?.address.toLowerCase():!1}async sendRequestToSubAccountSigner(t){var r;let n=Re.subAccounts.get(),o=Re.subAccountsConfig.get(),s=Re.config.get();ka(n?.address,ke.provider.unauthorized(\"no active sub account when sending request to sub account signer\"));let u=o?.toOwnerAccount?await o.toOwnerAccount():await Ix();ka(u?.account,ke.provider.unauthorized(\"no active sub account owner when sending request to sub account signer\")),AX(t)===void 0&&(t=sVe(t,n.address));let d=nD(this.chain.id);ka(d,ke.rpc.internal(`client not found for chainId ${this.chain.id} when sending request to sub account signer`));let m=this.accounts.find(C=>C.toLowerCase()!==n.address.toLowerCase());ka(m,ke.provider.unauthorized(\"no global account found when sending request to sub account signer\"));let h=bVe({attribution:(r=s.preference)===null||r===void 0?void 0:r.attribution,dappOrigin:window.location.origin}),y=u.account.type===\"local\"?u.account.address:u.account.publicKey,v=await QD({address:n.address,factory:n.factory,factoryData:n.factoryData,publicKey:y,client:d});if(v===-1){let C=ec.get(t);Rje({method:t.method,correlationId:C});try{v=await BVe({ownerAccount:u.account,globalAccountRequest:this.sendRequestToPopup.bind(this)}),Mje({method:t.method,correlationId:C})}catch(B){return Oje({method:t.method,correlationId:C,errorMessage:oh(B)}),ke.provider.unauthorized(\"failed to add sub account owner when sending request to sub account signer\")}}let{request:E}=await SVe({address:n.address,owner:u.account,client:d,factory:n.factory,factoryData:n.factoryData,parentAddress:m,attribution:h?{suffix:h}:void 0,ownerIndex:v});try{return await E(t)}catch(C){let B;if(cU(C))B=JSON.parse(C.details);else if(mJ(C))B=C;else throw C;if(!(mJ(B)&&B.data)||!B.data)throw C;let R=ec.get(t);Nje({method:t.method,correlationId:R});try{let M=await PVe({errorData:B.data,globalAccountAddress:m,subAccountAddress:n.address,client:d,request:t,subAccountRequest:E,globalAccountRequest:this.request.bind(this)});return Uje({method:t.method,correlationId:R}),M}catch(M){throw console.error(M),Dje({method:t.method,correlationId:R,errorMessage:oh(M)}),C}}}}});var OVe,NVe,UVe,DVe,HVe,LVe,_X,zVe,kX=x(()=>{c();Qy();OVe=({method:e,correlationId:t})=>{zt(\"walletlink_signer.handshake.started\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t},Bt.high)},NVe=({method:e,correlationId:t,errorMessage:r})=>{zt(\"walletlink_signer.handshake.error\",{action:kt.error,componentType:_t.unknown,method:e,correlationId:t,errorMessage:r},Bt.high)},UVe=({method:e,correlationId:t})=>{zt(\"walletlink_signer.handshake.completed\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t},Bt.high)},DVe=({method:e,correlationId:t})=>{zt(\"walletlink_signer.request.started\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t},Bt.high)},HVe=({method:e,correlationId:t,errorMessage:r})=>{zt(\"walletlink_signer.request.error\",{action:kt.error,componentType:_t.unknown,method:e,correlationId:t,errorMessage:r},Bt.high)},LVe=({method:e,correlationId:t})=>{zt(\"walletlink_signer.request.completed\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t},Bt.high)},_X=()=>{zt(\"walletlink_signer.walletlink_connection.connection_failed\",{action:kt.measurement,componentType:_t.unknown},Bt.high)},zVe=()=>{zt(\"walletlink_signer.walletlink_connection.fetch_unseen_events_failed\",{action:kt.measurement,componentType:_t.unknown},Bt.high)}});var IX=X(ei=>{\"use strict\";c();Object.defineProperty(ei,\"__esModule\",{value:!0});ei.output=ei.exists=ei.hash=ei.bytes=ei.bool=ei.number=ei.isBytes=void 0;function ZD(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}ei.number=ZD;function FVe(e){if(typeof e!=\"boolean\")throw new Error(`boolean expected, not ${e}`)}ei.bool=FVe;function jVe(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}ei.isBytes=jVe;function BX(e,...t){if(!jVe(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}ei.bytes=BX;function qVe(e){if(typeof e!=\"function\"||typeof e.create!=\"function\")throw new Error(\"Hash should be wrapped by utils.wrapConstructor\");ZD(e.outputLen),ZD(e.blockLen)}ei.hash=qVe;function $Ve(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}ei.exists=$Ve;function GVe(e,t){BX(e);let r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}ei.output=GVe;var f6t={number:ZD,bool:FVe,bytes:BX,hash:qVe,exists:$Ve,output:GVe};ei.default=f6t});var pKe=X(Et=>{\"use strict\";c();Object.defineProperty(Et,\"__esModule\",{value:!0});Et.add5L=Et.add5H=Et.add4H=Et.add4L=Et.add3H=Et.add3L=Et.add=Et.rotlBL=Et.rotlBH=Et.rotlSL=Et.rotlSH=Et.rotr32L=Et.rotr32H=Et.rotrBL=Et.rotrBH=Et.rotrSL=Et.rotrSH=Et.shrSL=Et.shrSH=Et.toBig=Et.split=Et.fromBig=void 0;var JD=BigInt(2**32-1),PX=BigInt(32);function RX(e,t=!1){return t?{h:Number(e&JD),l:Number(e>>PX&JD)}:{h:Number(e>>PX&JD)|0,l:Number(e&JD)|0}}Et.fromBig=RX;function VVe(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:s,l:u}=RX(e[o],t);[r[o],n[o]]=[s,u]}return[r,n]}Et.split=VVe;var KVe=(e,t)=>BigInt(e>>>0)<<PX|BigInt(t>>>0);Et.toBig=KVe;var WVe=(e,t,r)=>e>>>r;Et.shrSH=WVe;var QVe=(e,t,r)=>e<<32-r|t>>>r;Et.shrSL=QVe;var ZVe=(e,t,r)=>e>>>r|t<<32-r;Et.rotrSH=ZVe;var JVe=(e,t,r)=>e<<32-r|t>>>r;Et.rotrSL=JVe;var YVe=(e,t,r)=>e<<64-r|t>>>r-32;Et.rotrBH=YVe;var XVe=(e,t,r)=>e>>>r-32|t<<64-r;Et.rotrBL=XVe;var eKe=(e,t)=>t;Et.rotr32H=eKe;var tKe=(e,t)=>e;Et.rotr32L=tKe;var rKe=(e,t,r)=>e<<r|t>>>32-r;Et.rotlSH=rKe;var nKe=(e,t,r)=>t<<r|e>>>32-r;Et.rotlSL=nKe;var oKe=(e,t,r)=>t<<r-32|e>>>64-r;Et.rotlBH=oKe;var aKe=(e,t,r)=>e<<r-32|t>>>64-r;Et.rotlBL=aKe;function iKe(e,t,r,n){let o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}Et.add=iKe;var sKe=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);Et.add3L=sKe;var cKe=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;Et.add3H=cKe;var uKe=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);Et.add4L=uKe;var lKe=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0;Et.add4H=lKe;var fKe=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0);Et.add5L=fKe;var dKe=(e,t,r,n,o,s)=>t+r+n+o+s+(e/2**32|0)|0;Et.add5H=dKe;var d6t={fromBig:RX,split:VVe,toBig:KVe,shrSH:WVe,shrSL:QVe,rotrSH:ZVe,rotrSL:JVe,rotrBH:YVe,rotrBL:XVe,rotr32H:eKe,rotr32L:tKe,rotlSH:rKe,rotlSL:nKe,rotlBH:oKe,rotlBL:aKe,add:iKe,add3L:sKe,add3H:cKe,add4L:uKe,add4H:lKe,add5H:dKe,add5L:fKe};Et.default=d6t});var mKe=X(YD=>{\"use strict\";c();Object.defineProperty(YD,\"__esModule\",{value:!0});YD.crypto=void 0;YD.crypto=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0});var bKe=X(ft=>{\"use strict\";c();Object.defineProperty(ft,\"__esModule\",{value:!0});ft.randomBytes=ft.wrapXOFConstructorWithOpts=ft.wrapConstructorWithOpts=ft.wrapConstructor=ft.checkOpts=ft.Hash=ft.concatBytes=ft.toBytes=ft.utf8ToBytes=ft.asyncLoop=ft.nextTick=ft.hexToBytes=ft.bytesToHex=ft.byteSwap32=ft.byteSwapIfBE=ft.byteSwap=ft.isLE=ft.rotl=ft.rotr=ft.createView=ft.u32=ft.u8=ft.isBytes=void 0;var MX=mKe(),NX=IX();function p6t(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}ft.isBytes=p6t;var m6t=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);ft.u8=m6t;var h6t=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));ft.u32=h6t;var y6t=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);ft.createView=y6t;var b6t=(e,t)=>e<<32-t|e>>>t;ft.rotr=b6t;var g6t=(e,t)=>e<<t|e>>>32-t>>>0;ft.rotl=g6t;ft.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;var x6t=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;ft.byteSwap=x6t;ft.byteSwapIfBE=ft.isLE?e=>e:e=>(0,ft.byteSwap)(e);function v6t(e){for(let t=0;t<e.length;t++)e[t]=(0,ft.byteSwap)(e[t])}ft.byteSwap32=v6t;var w6t=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function E6t(e){(0,NX.bytes)(e);let t=\"\";for(let r=0;r<e.length;r++)t+=w6t[e[r]];return t}ft.bytesToHex=E6t;var lh={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function hKe(e){if(e>=lh._0&&e<=lh._9)return e-lh._0;if(e>=lh._A&&e<=lh._F)return e-(lh._A-10);if(e>=lh._a&&e<=lh._f)return e-(lh._a-10)}function A6t(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);let t=e.length,r=t/2;if(t%2)throw new Error(\"padded hex string expected, got unpadded hex of length \"+t);let n=new Uint8Array(r);for(let o=0,s=0;o<r;o++,s+=2){let u=hKe(e.charCodeAt(s)),f=hKe(e.charCodeAt(s+1));if(u===void 0||f===void 0){let d=e[s]+e[s+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+d+\\'\" at index \\'+s)}n[o]=u*16+f}return n}ft.hexToBytes=A6t;var S6t=async()=>{};ft.nextTick=S6t;async function C6t(e,t,r){let n=Date.now();for(let o=0;o<e;o++){r(o);let s=Date.now()-n;s>=0&&s<t||(await(0,ft.nextTick)(),n+=s)}}ft.asyncLoop=C6t;function yKe(e){if(typeof e!=\"string\")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}ft.utf8ToBytes=yKe;function XD(e){return typeof e==\"string\"&&(e=yKe(e)),(0,NX.bytes)(e),e}ft.toBytes=XD;function T6t(...e){let t=0;for(let n=0;n<e.length;n++){let o=e[n];(0,NX.bytes)(o),t+=o.length}let r=new Uint8Array(t);for(let n=0,o=0;n<e.length;n++){let s=e[n];r.set(s,o),o+=s.length}return r}ft.concatBytes=T6t;var OX=class{clone(){return this._cloneInto()}};ft.Hash=OX;var _6t={}.toString;function k6t(e,t){if(t!==void 0&&_6t.call(t)!==\"[object Object]\")throw new Error(\"Options should be object or undefined\");return Object.assign(e,t)}ft.checkOpts=k6t;function B6t(e){let t=n=>e().update(XD(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}ft.wrapConstructor=B6t;function I6t(e){let t=(n,o)=>e(o).update(XD(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}ft.wrapConstructorWithOpts=I6t;function P6t(e){let t=(n,o)=>e(o).update(XD(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}ft.wrapXOFConstructorWithOpts=P6t;function R6t(e=32){if(MX.crypto&&typeof MX.crypto.getRandomValues==\"function\")return MX.crypto.getRandomValues(new Uint8Array(e));throw new Error(\"crypto.getRandomValues must be defined\")}ft.randomBytes=R6t});var CKe=X(Dn=>{\"use strict\";c();Object.defineProperty(Dn,\"__esModule\",{value:!0});Dn.shake256=Dn.shake128=Dn.keccak_512=Dn.keccak_384=Dn.keccak_256=Dn.keccak_224=Dn.sha3_512=Dn.sha3_384=Dn.sha3_256=Dn.sha3_224=Dn.Keccak=Dn.keccakP=void 0;var n3=IX(),U_=pKe(),fh=bKe(),vKe=[],wKe=[],EKe=[],M6t=BigInt(0),N_=BigInt(1),O6t=BigInt(2),N6t=BigInt(7),U6t=BigInt(256),D6t=BigInt(113);for(let e=0,t=N_,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],vKe.push(2*(5*n+r)),wKe.push((e+1)*(e+2)/2%64);let o=M6t;for(let s=0;s<7;s++)t=(t<<N_^(t>>N6t)*D6t)%U6t,t&O6t&&(o^=N_<<(N_<<BigInt(s))-N_);EKe.push(o)}var[H6t,L6t]=(0,U_.split)(EKe,!0),gKe=(e,t,r)=>r>32?(0,U_.rotlBH)(e,t,r):(0,U_.rotlSH)(e,t,r),xKe=(e,t,r)=>r>32?(0,U_.rotlBL)(e,t,r):(0,U_.rotlSL)(e,t,r);function AKe(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let u=0;u<10;u++)r[u]=e[u]^e[u+10]^e[u+20]^e[u+30]^e[u+40];for(let u=0;u<10;u+=2){let f=(u+8)%10,d=(u+2)%10,m=r[d],h=r[d+1],y=gKe(m,h,1)^r[f],v=xKe(m,h,1)^r[f+1];for(let E=0;E<50;E+=10)e[u+E]^=y,e[u+E+1]^=v}let o=e[2],s=e[3];for(let u=0;u<24;u++){let f=wKe[u],d=gKe(o,s,f),m=xKe(o,s,f),h=vKe[u];o=e[h],s=e[h+1],e[h]=d,e[h+1]=m}for(let u=0;u<50;u+=10){for(let f=0;f<10;f++)r[f]=e[u+f];for(let f=0;f<10;f++)e[u+f]^=~r[(f+2)%10]&r[(f+4)%10]}e[0]^=H6t[n],e[1]^=L6t[n]}r.fill(0)}Dn.keccakP=AKe;var D_=class e extends fh.Hash{constructor(t,r,n,o=!1,s=24){if(super(),this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=o,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n3.number)(n),0>=this.blockLen||this.blockLen>=200)throw new Error(\"Sha3 supports only keccak-f1600 function\");this.state=new Uint8Array(200),this.state32=(0,fh.u32)(this.state)}keccak(){fh.isLE||(0,fh.byteSwap32)(this.state32),AKe(this.state32,this.rounds),fh.isLE||(0,fh.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,n3.exists)(this);let{blockLen:r,state:n}=this;t=(0,fh.toBytes)(t);let o=t.length;for(let s=0;s<o;){let u=Math.min(r-this.pos,o-s);for(let f=0;f<u;f++)n[this.pos++]^=t[s++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:r,pos:n,blockLen:o}=this;t[n]^=r,(r&128)!==0&&n===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){(0,n3.exists)(this,!1),(0,n3.bytes)(t),this.finish();let r=this.state,{blockLen:n}=this;for(let o=0,s=t.length;o<s;){this.posOut>=n&&this.keccak();let u=Math.min(n-this.posOut,s-o);t.set(r.subarray(this.posOut,this.posOut+u),o),this.posOut+=u,o+=u}return t}xofInto(t){if(!this.enableXOF)throw new Error(\"XOF is not possible for this instance\");return this.writeInto(t)}xof(t){return(0,n3.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,n3.output)(t,this),this.finished)throw new Error(\"digest() was already called\");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:r,suffix:n,outputLen:o,rounds:s,enableXOF:u}=this;return t||(t=new e(r,n,o,u,s)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=s,t.suffix=n,t.outputLen=o,t.enableXOF=u,t.destroyed=this.destroyed,t}};Dn.Keccak=D_;var ob=(e,t,r)=>(0,fh.wrapConstructor)(()=>new D_(t,e,r));Dn.sha3_224=ob(6,144,224/8);Dn.sha3_256=ob(6,136,256/8);Dn.sha3_384=ob(6,104,384/8);Dn.sha3_512=ob(6,72,512/8);Dn.keccak_224=ob(1,144,224/8);Dn.keccak_256=ob(1,136,256/8);Dn.keccak_384=ob(1,104,384/8);Dn.keccak_512=ob(1,72,512/8);var SKe=(e,t,r)=>(0,fh.wrapXOFConstructorWithOpts)((n={})=>new D_(t,e,n.dkLen===void 0?r:n.dkLen,!0));Dn.shake128=SKe(31,168,128/8);Dn.shake256=SKe(31,136,256/8)});var UX=X((sjn,RKe)=>{c();var{keccak_256:z6t}=CKe();function TKe(e){return globalThis.Buffer.allocUnsafe(e).fill(0)}function F6t(e){return`0x${e.toString(16)}`}function j6t(e){let t=F6t(e);return new globalThis.Buffer(BKe(t.slice(2)),\"hex\")}function q6t(e){return e.toString(2).length}function _Ke(e,t){let r=e.toString(16);r.length%2!==0&&(r=\"0\"+r);let n=r.match(/.{1,2}/g).map(o=>parseInt(o,16));for(;n.length<t;)n.unshift(0);return globalThis.Buffer.from(n)}function $6t(e,t){let r=e<0n,n;if(r){let o=(1n<<BigInt(t))-1n;n=(~e&o)+1n}else n=e;return n&=(1n<<BigInt(t))-1n,n}function kKe(e,t,r){let n=TKe(t);return e=eH(e),r?e.length<t?(e.copy(n),n):e.slice(0,t):e.length<t?(e.copy(n,t-e.length),n):e.slice(-t)}function G6t(e,t){return kKe(e,t,!0)}function eH(e){if(!globalThis.Buffer.isBuffer(e))if(Array.isArray(e))e=globalThis.Buffer.from(e);else if(typeof e==\"string\")IKe(e)?e=globalThis.Buffer.from(BKe(PKe(e)),\"hex\"):e=globalThis.Buffer.from(e);else if(typeof e==\"number\")e=j6t(e);else if(e==null)e=globalThis.Buffer.allocUnsafe(0);else if(typeof e==\"bigint\")e=_Ke(e);else if(e.toArray)e=globalThis.Buffer.from(e.toArray());else throw new Error(\"invalid type\");return e}function V6t(e){return e=eH(e),\"0x\"+e.toString(\"hex\")}function K6t(e,t){if(e=eH(e),t||(t=256),t!==256)throw new Error(\"unsupported\");return globalThis.Buffer.from(z6t(new Uint8Array(e)))}function BKe(e){return e.length%2?\"0\"+e:e}function IKe(e){return typeof e==\"string\"&&e.match(/^0x[0-9A-Fa-f]*$/)}function PKe(e){return typeof e==\"string\"&&e.startsWith(\"0x\")?e.slice(2):e}RKe.exports={zeros:TKe,setLength:kKe,setLengthRight:G6t,isHexString:IKe,stripHexPrefix:PKe,toBuffer:eH,bufferToHex:V6t,keccak:K6t,bitLengthFromBigInt:q6t,bufferBEFromBigInt:_Ke,twosFromBigInt:$6t}});var HKe=X((ujn,DKe)=>{c();var us=UX();function OKe(e){return e.startsWith(\"int[\")?\"int256\"+e.slice(3):e===\"int\"?\"int256\":e.startsWith(\"uint[\")?\"uint256\"+e.slice(4):e===\"uint\"?\"uint256\":e.startsWith(\"fixed[\")?\"fixed128x128\"+e.slice(5):e===\"fixed\"?\"fixed128x128\":e.startsWith(\"ufixed[\")?\"ufixed128x128\"+e.slice(6):e===\"ufixed\"?\"ufixed128x128\":e}function o3(e){return Number.parseInt(/^\\\\D+(\\\\d+)$/.exec(e)[1],10)}function MKe(e){var t=/^\\\\D+(\\\\d+)x(\\\\d+)$/.exec(e);return[Number.parseInt(t[1],10),Number.parseInt(t[2],10)]}function NKe(e){var t=e.match(/(.*)\\\\[(.*?)\\\\]$/);return t?t[2]===\"\"?\"dynamic\":Number.parseInt(t[2],10):null}function Mx(e){var t=typeof e;if(t===\"string\"||t===\"number\")return BigInt(e);if(t===\"bigint\")return e;throw new Error(\"Argument is not a number\")}function Qd(e,t){var r,n,o,s;if(e===\"address\")return Qd(\"uint160\",Mx(t));if(e===\"bool\")return Qd(\"uint8\",t?1:0);if(e===\"string\")return Qd(\"bytes\",new globalThis.Buffer(t,\"utf8\"));if(Q6t(e)){if(typeof t.length>\"u\")throw new Error(\"Not an array?\");if(r=NKe(e),r!==\"dynamic\"&&r!==0&&t.length>r)throw new Error(\"Elements exceed array size: \"+r);o=[],e=e.slice(0,e.lastIndexOf(\"[\")),typeof t==\"string\"&&(t=JSON.parse(t));for(s in t)o.push(Qd(e,t[s]));if(r===\"dynamic\"){var u=Qd(\"uint256\",t.length);o.unshift(u)}return globalThis.Buffer.concat(o)}else{if(e===\"bytes\")return t=new globalThis.Buffer(t),o=globalThis.Buffer.concat([Qd(\"uint256\",t.length),t]),t.length%32!==0&&(o=globalThis.Buffer.concat([o,us.zeros(32-t.length%32)])),o;if(e.startsWith(\"bytes\")){if(r=o3(e),r<1||r>32)throw new Error(\"Invalid bytes<N> width: \"+r);return us.setLengthRight(t,32)}else if(e.startsWith(\"uint\")){if(r=o3(e),r%8||r<8||r>256)throw new Error(\"Invalid uint<N> width: \"+r);n=Mx(t);let f=us.bitLengthFromBigInt(n);if(f>r)throw new Error(\"Supplied uint exceeds width: \"+r+\" vs \"+f);if(n<0)throw new Error(\"Supplied uint is negative\");return us.bufferBEFromBigInt(n,32)}else if(e.startsWith(\"int\")){if(r=o3(e),r%8||r<8||r>256)throw new Error(\"Invalid int<N> width: \"+r);n=Mx(t);let f=us.bitLengthFromBigInt(n);if(f>r)throw new Error(\"Supplied int exceeds width: \"+r+\" vs \"+f);let d=us.twosFromBigInt(n,256);return us.bufferBEFromBigInt(d,32)}else if(e.startsWith(\"ufixed\")){if(r=MKe(e),n=Mx(t),n<0)throw new Error(\"Supplied ufixed is negative\");return Qd(\"uint256\",n*BigInt(2)**BigInt(r[1]))}else if(e.startsWith(\"fixed\"))return r=MKe(e),Qd(\"int256\",Mx(t)*BigInt(2)**BigInt(r[1]))}throw new Error(\"Unsupported or invalid type: \"+e)}function W6t(e){return e===\"string\"||e===\"bytes\"||NKe(e)===\"dynamic\"}function Q6t(e){return e.lastIndexOf(\"]\")===e.length-1}function Z6t(e,t){var r=[],n=[],o=32*e.length;for(var s in e){var u=OKe(e[s]),f=t[s],d=Qd(u,f);W6t(u)?(r.push(Qd(\"uint256\",o)),n.push(d),o+=d.length):r.push(d)}return globalThis.Buffer.concat(r.concat(n))}function UKe(e,t){if(e.length!==t.length)throw new Error(\"Number of types are not matching the values\");for(var r,n,o=[],s=0;s<e.length;s++){var u=OKe(e[s]),f=t[s];if(u===\"bytes\")o.push(f);else if(u===\"string\")o.push(new globalThis.Buffer(f,\"utf8\"));else if(u===\"bool\")o.push(new globalThis.Buffer(f?\"01\":\"00\",\"hex\"));else if(u===\"address\")o.push(us.setLength(f,20));else if(u.startsWith(\"bytes\")){if(r=o3(u),r<1||r>32)throw new Error(\"Invalid bytes<N> width: \"+r);o.push(us.setLengthRight(f,r))}else if(u.startsWith(\"uint\")){if(r=o3(u),r%8||r<8||r>256)throw new Error(\"Invalid uint<N> width: \"+r);n=Mx(f);let d=us.bitLengthFromBigInt(n);if(d>r)throw new Error(\"Supplied uint exceeds width: \"+r+\" vs \"+d);o.push(us.bufferBEFromBigInt(n,r/8))}else if(u.startsWith(\"int\")){if(r=o3(u),r%8||r<8||r>256)throw new Error(\"Invalid int<N> width: \"+r);n=Mx(f);let d=us.bitLengthFromBigInt(n);if(d>r)throw new Error(\"Supplied int exceeds width: \"+r+\" vs \"+d);let m=us.twosFromBigInt(n,r);o.push(us.bufferBEFromBigInt(m,r/8))}else throw new Error(\"Unsupported or invalid type: \"+u)}return globalThis.Buffer.concat(o)}function J6t(e,t){return us.keccak(UKe(e,t))}DKe.exports={rawEncode:Z6t,solidityPack:UKe,soliditySHA3:J6t}});var FKe=X((fjn,zKe)=>{c();var Xl=UX(),H_=HKe(),LKe={type:\"object\",properties:{types:{type:\"object\",additionalProperties:{type:\"array\",items:{type:\"object\",properties:{name:{type:\"string\"},type:{type:\"string\"}},required:[\"name\",\"type\"]}}},primaryType:{type:\"string\"},domain:{type:\"object\"},message:{type:\"object\"}},required:[\"types\",\"primaryType\",\"domain\",\"message\"]},DX={encodeData(e,t,r,n=!0){let o=[\"bytes32\"],s=[this.hashType(e,r)];if(n){let u=(f,d,m)=>{if(r[d]!==void 0)return[\"bytes32\",m==null?\"0x0000000000000000000000000000000000000000000000000000000000000000\":Xl.keccak(this.encodeData(d,m,r,n))];if(m===void 0)throw new Error(`missing value for field ${f} of type ${d}`);if(d===\"bytes\")return[\"bytes32\",Xl.keccak(m)];if(d===\"string\")return typeof m==\"string\"&&(m=globalThis.Buffer.from(m,\"utf8\")),[\"bytes32\",Xl.keccak(m)];if(d.lastIndexOf(\"]\")===d.length-1){let h=d.slice(0,d.lastIndexOf(\"[\")),y=m.map(v=>u(f,h,v));return[\"bytes32\",Xl.keccak(H_.rawEncode(y.map(([v])=>v),y.map(([,v])=>v)))]}return[d,m]};for(let f of r[e]){let[d,m]=u(f.name,f.type,t[f.name]);o.push(d),s.push(m)}}else for(let u of r[e]){let f=t[u.name];if(f!==void 0)if(u.type===\"bytes\")o.push(\"bytes32\"),f=Xl.keccak(f),s.push(f);else if(u.type===\"string\")o.push(\"bytes32\"),typeof f==\"string\"&&(f=globalThis.Buffer.from(f,\"utf8\")),f=Xl.keccak(f),s.push(f);else if(r[u.type]!==void 0)o.push(\"bytes32\"),f=Xl.keccak(this.encodeData(u.type,f,r,n)),s.push(f);else{if(u.type.lastIndexOf(\"]\")===u.type.length-1)throw new Error(\"Arrays currently unimplemented in encodeData\");o.push(u.type),s.push(f)}}return H_.rawEncode(o,s)},encodeType(e,t){let r=\"\",n=this.findTypeDependencies(e,t).filter(o=>o!==e);n=[e].concat(n.sort());for(let o of n){if(!t[o])throw new Error(\"No type definition specified: \"+o);r+=o+\"(\"+t[o].map(({name:u,type:f})=>f+\" \"+u).join(\",\")+\")\"}return r},findTypeDependencies(e,t,r=[]){if(e=e.match(/^\\\\w*/)[0],r.includes(e)||t[e]===void 0)return r;r.push(e);for(let n of t[e])for(let o of this.findTypeDependencies(n.type,t,r))!r.includes(o)&&r.push(o);return r},hashStruct(e,t,r,n=!0){return Xl.keccak(this.encodeData(e,t,r,n))},hashType(e,t){return Xl.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let r in LKe.properties)e[r]&&(t[r]=e[r]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let r=this.sanitizeData(e),n=[globalThis.Buffer.from(\"1901\",\"hex\")];return n.push(this.hashStruct(\"EIP712Domain\",r.domain,r.types,t)),r.primaryType!==\"EIP712Domain\"&&n.push(this.hashStruct(r.primaryType,r.message,r.types,t)),Xl.keccak(globalThis.Buffer.concat(n))}};zKe.exports={TYPED_MESSAGE_SCHEMA:LKe,TypedDataUtils:DX,hashForSignTypedDataLegacy:function(e){return Y6t(e.data)},hashForSignTypedData_v3:function(e){return DX.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return DX.hash(e.data)}};function Y6t(e){let t=new Error(\"Expect argument to be non-empty array\");if(typeof e!=\"object\"||!e.length)throw t;let r=e.map(function(s){return s.type===\"bytes\"?Xl.toBuffer(s.value):s.value}),n=e.map(function(s){return s.type}),o=e.map(function(s){if(!s.name)throw t;return s.type+\" \"+s.name});return H_.soliditySHA3([\"bytes32\",\"bytes32\"],[H_.soliditySHA3(new Array(e.length).fill(\"string\"),o),H_.soliditySHA3(n,r)])}});var jKe,L_,qKe,tH=x(()=>{c();jKe=\"walletUsername\",L_=\"Addresses\",qKe=\"AppVersion\"});var rH,$Ke=x(()=>{c();Zl();rH=class{constructor(t){this.secret=t}async encrypt(t){let r=this.secret;if(r.length!==64)throw new Error(\"secret must be 256 bits\");let n=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.importKey(\"raw\",aE(r),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),s=new TextEncoder,u=await window.crypto.subtle.encrypt({name:\"AES-GCM\",iv:n},o,s.encode(t)),f=16,d=u.slice(u.byteLength-f),m=u.slice(0,u.byteLength-f),h=new Uint8Array(d),y=new Uint8Array(m),v=new Uint8Array([...n,...h,...y]);return t_(v)}async decrypt(t){let r=this.secret;if(r.length!==64)throw new Error(\"secret must be 256 bits\");return new Promise((n,o)=>{(async()=>{let s=await crypto.subtle.importKey(\"raw\",aE(r),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),u=aE(t),f=u.slice(0,12),d=u.slice(12,28),m=u.slice(28),h=new Uint8Array([...m,...d]),y={name:\"AES-GCM\",iv:new Uint8Array(f)};try{let v=await window.crypto.subtle.decrypt(y,s,h),E=new TextDecoder;n(E.decode(v))}catch(v){o(v)}})()})}}});var nH,GKe=x(()=>{c();nH=class{constructor(t,r,n){this.linkAPIUrl=t,this.sessionId=r;let o=`${r}:${n}`;this.auth=`Basic ${btoa(o)}`}async markUnseenEventsAsSeen(t){return Promise.all(t.map(r=>fetch(`${this.linkAPIUrl}/events/${r.eventId}/seen`,{method:\"POST\",headers:{Authorization:this.auth}}))).catch(r=>console.error(\"Unable to mark events as seen:\",r))}async fetchUnseenEvents(){var t;let r=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(r.ok){let{events:n,error:o}=await r.json();if(o)throw new Error(`Check unseen events failed: ${o}`);let s=(t=n?.filter(u=>u.event===\"Web3Response\").map(u=>({type:\"Event\",sessionId:this.sessionId,eventId:u.id,event:u.event,data:u.data})))!==null&&t!==void 0?t:[];return this.markUnseenEventsAsSeen(s),s}throw new Error(`Check unseen events failed: ${r.status}`)}}});var ef,Ox,VKe=x(()=>{c();(function(e){e[e.DISCONNECTED=0]=\"DISCONNECTED\",e[e.CONNECTING=1]=\"CONNECTING\",e[e.CONNECTED=2]=\"CONNECTED\"})(ef||(ef={}));Ox=class e{setConnectionStateListener(t){this.connectionStateListener=t}setIncomingDataListener(t){this.incomingDataListener=t}constructor(t,r=WebSocket){this.WebSocketClass=r,this.webSocket=null,this.isDisconnecting=!1,this.url=t.replace(/^http/,\"ws\"),this.instanceId=e.instanceCounter++,e.activeInstances.add(this.instanceId)}async connect(){if(this.webSocket)throw new Error(\"webSocket object is not null\");if(this.isDisconnecting)throw new Error(\"WebSocket is disconnecting, cannot reconnect on same instance\");return new Promise((t,r)=>{var n;let o;try{this.webSocket=o=new this.WebSocketClass(this.url)}catch(s){r(s);return}(n=this.connectionStateListener)===null||n===void 0||n.call(this,ef.CONNECTING),o.onclose=s=>{var u;this.clearWebSocket(),o.readyState!==WebSocket.OPEN&&r(new Error(`websocket error ${s.code}: ${s.reason}`)),(u=this.connectionStateListener)===null||u===void 0||u.call(this,ef.DISCONNECTED)},o.onopen=s=>{var u;t(),(u=this.connectionStateListener)===null||u===void 0||u.call(this,ef.CONNECTED),e.pendingData.length>0&&([...e.pendingData].forEach(d=>this.sendData(d)),e.pendingData=[])},o.onmessage=s=>{var u,f;if(s.data===\"h\")(u=this.incomingDataListener)===null||u===void 0||u.call(this,{type:\"Heartbeat\"});else try{let d=JSON.parse(s.data);(f=this.incomingDataListener)===null||f===void 0||f.call(this,d)}catch{}}})}disconnect(){var t;let{webSocket:r}=this;if(r){this.isDisconnecting=!0,this.clearWebSocket(),(t=this.connectionStateListener)===null||t===void 0||t.call(this,ef.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{r.close()}catch{}}}sendData(t){let{webSocket:r}=this;if(!r){e.pendingData.push(t),this.isDisconnecting||this.connect();return}if(r.readyState!==WebSocket.OPEN){e.pendingData.push(t);return}r.send(t)}clearWebSocket(){let{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}cleanup(){e.activeInstances.delete(this.instanceId)}};Ox.instanceCounter=0;Ox.activeInstances=new Set;Ox.pendingData=[]});var KKe,X6t,oH,WKe=x(()=>{c();kX();yJ();tH();$Ke();GKe();VKe();KKe=1e4,X6t=6e4,oH=class{constructor({session:t,linkAPIUrl:r,listener:n}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=Wl(1),this.reconnectAttempts=0,this.isReconnecting=!1,this._connected=!1,this._linked=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=s=>{if(!s)return;new Map([[\"__destroyed\",this.handleDestroyed],[\"EthereumAddress\",this.handleAccountUpdated],[\"WalletUsername\",this.handleWalletUsernameUpdated],[\"AppVersion\",this.handleAppVersionUpdated],[\"ChainId\",f=>s.JsonRpcUrl&&this.handleChainUpdated(f,s.JsonRpcUrl)]]).forEach((f,d)=>{let m=s[d];m!==void 0&&f(m)})},this.handleDestroyed=s=>{var u;s===\"1\"&&((u=this.listener)===null||u===void 0||u.resetAndReload())},this.handleAccountUpdated=async s=>{var u;try{let f=await this.cipher.decrypt(s);(u=this.listener)===null||u===void 0||u.accountUpdated(f)}catch{}},this.handleMetadataUpdated=async(s,u)=>{var f;try{let d=await this.cipher.decrypt(u);(f=this.listener)===null||f===void 0||f.metadataUpdated(s,d)}catch{}},this.handleWalletUsernameUpdated=async s=>{this.handleMetadataUpdated(jKe,s)},this.handleAppVersionUpdated=async s=>{this.handleMetadataUpdated(qKe,s)},this.handleChainUpdated=async(s,u)=>{var f;try{let d=await this.cipher.decrypt(s),m=await this.cipher.decrypt(u);(f=this.listener)===null||f===void 0||f.chainUpdated(d,m)}catch{}},this.session=t,this.cipher=new rH(t.secret),this.listener=n,this.linkAPIUrl=r,this.WebSocketClass=WebSocket;let o=this.createWebSocket();this.ws=o,this.http=new nH(r,t.id,t.key),this.setupVisibilityChangeHandler()}createWebSocket(){let t=new Ox(`${this.linkAPIUrl}/rpc`,this.WebSocketClass);return this.activeWsInstance=t,t.setConnectionStateListener(async r=>{if(t!==this.activeWsInstance)return;let n=!1;switch(r){case ef.DISCONNECTED:this.heartbeatIntervalId&&(clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=void 0),this.lastHeartbeatResponse=0,n=!1,this.destroyed||(async()=>{if(this.isReconnecting)return;this.isReconnecting=!0;let s=this.reconnectAttempts===0?0:3e3;await new Promise(u=>setTimeout(u,s)),!this.destroyed&&t===this.activeWsInstance?(this.reconnectAttempts++,\"cleanup\"in this.ws&&typeof this.ws.cleanup==\"function\"&&this.ws.cleanup(),this.ws=this.createWebSocket(),this.ws.connect().catch(()=>{_X()}).finally(()=>{this.isReconnecting=!1})):this.isReconnecting=!1})();break;case ef.CONNECTED:this.reconnectAttempts=0;try{n=await this.handleConnected(),this.fetchUnseenEventsAPI().catch(()=>{})}catch{break}this.connected=n,this.updateLastHeartbeat(),this.heartbeatIntervalId&&clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=window.setInterval(()=>{this.heartbeat()},KKe),setTimeout(()=>{this.heartbeat()},100);break;case ef.CONNECTING:break}r!==ef.CONNECTED&&(this.connected=n)}),t.setIncomingDataListener(r=>{var n;switch(r.type){case\"Heartbeat\":this.updateLastHeartbeat();return;case\"IsLinkedOK\":case\"Linked\":{let o=r.type===\"IsLinkedOK\"?r.linked:void 0;this.linked=o||r.onlineGuests>0;break}case\"GetSessionConfigOK\":case\"SessionConfigUpdated\":{this.handleSessionMetadataUpdated(r.metadata);break}case\"Event\":{this.handleIncomingEvent(r);break}}r.id!==void 0&&((n=this.requestResolutions.get(r.id))===null||n===void 0||n(r))}),t}setupVisibilityChangeHandler(){this.visibilityChangeHandler=()=>{!document.hidden&&!this.destroyed&&(this.connected?this.heartbeat():this.reconnectWithFreshWebSocket())},this.focusHandler=()=>{!this.destroyed&&!this.connected&&this.reconnectWithFreshWebSocket()},document.addEventListener(\"visibilitychange\",this.visibilityChangeHandler),window.addEventListener(\"focus\",this.focusHandler),window.addEventListener(\"pageshow\",t=>{t.persisted&&this.focusHandler&&this.focusHandler()})}reconnectWithFreshWebSocket(){if(this.destroyed)return;let t=this.ws;this.activeWsInstance=void 0,t.disconnect(),\"cleanup\"in t&&typeof t.cleanup==\"function\"&&t.cleanup(),this.ws=this.createWebSocket(),this.ws.connect().catch(()=>{_X()})}connect(){if(this.destroyed)throw new Error(\"instance is destroyed\");this.ws.connect()}async destroy(){this.destroyed||(await this.makeRequest({type:\"SetSessionConfig\",id:Wl(this.nextReqId++),sessionId:this.session.id,metadata:{__destroyed:\"1\"}},{timeout:1e3}),this.destroyed=!0,this.activeWsInstance=void 0,this.heartbeatIntervalId&&(clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=void 0),this.visibilityChangeHandler&&document.removeEventListener(\"visibilitychange\",this.visibilityChangeHandler),this.focusHandler&&window.removeEventListener(\"focus\",this.focusHandler),this.ws.disconnect(),\"cleanup\"in this.ws&&typeof this.ws.cleanup==\"function\"&&this.ws.cleanup(),this.listener=void 0)}get connected(){return this._connected}set connected(t){this._connected=t}get linked(){return this._linked}set linked(t){var r,n;this._linked=t,t&&((r=this.onceLinked)===null||r===void 0||r.call(this)),(n=this.listener)===null||n===void 0||n.linkedUpdated(t)}setOnceLinked(t){return new Promise(r=>{this.linked?t().then(r):this.onceLinked=()=>{t().then(r),this.onceLinked=void 0}})}async handleIncomingEvent(t){var r;if(!(t.type!==\"Event\"||t.event!==\"Web3Response\"))try{let n=await this.cipher.decrypt(t.data),o=JSON.parse(n);if(o.type!==\"WEB3_RESPONSE\")return;(r=this.listener)===null||r===void 0||r.handleWeb3ResponseMessage(o.id,o.response)}catch{}}async checkUnseenEvents(){await new Promise(t=>setTimeout(t,250));try{await this.fetchUnseenEventsAPI()}catch(t){console.error(\"Unable to check for unseen events\",t)}}async fetchUnseenEventsAPI(){try{(await this.http.fetchUnseenEvents()).forEach(r=>{this.handleIncomingEvent(r)})}catch{zVe()}}async publishEvent(t,r,n=!1){let o=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},r),{origin:location.origin,location:location.href,relaySource:\"coinbaseWalletExtension\"in window&&window.coinbaseWalletExtension?\"injected_sdk\":\"sdk\"}))),s={type:\"PublishEvent\",id:Wl(this.nextReqId++),sessionId:this.session.id,event:t,data:o,callWebhook:n};return this.setOnceLinked(async()=>{let u=await this.makeRequest(s);if(u.type===\"Fail\")throw new Error(u.error||\"failed to publish event\");return u.eventId})}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>KKe*2){this.ws.disconnect();return}if(this.connected)try{this.ws.sendData(\"h\")}catch{}}async makeRequest(t,r={timeout:X6t}){let n=t.id;this.sendData(t);let o;return Promise.race([new Promise((s,u)=>{o=window.setTimeout(()=>{u(new Error(`request ${n} timed out`))},r.timeout)}),new Promise(s=>{this.requestResolutions.set(n,u=>{clearTimeout(o),s(u),this.requestResolutions.delete(n)})})])}async handleConnected(){return(await this.makeRequest({type:\"HostSession\",id:Wl(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key})).type===\"Fail\"?!1:(this.sendData({type:\"IsLinked\",id:Wl(this.nextReqId++),sessionId:this.session.id}),this.sendData({type:\"GetSessionConfig\",id:Wl(this.nextReqId++),sessionId:this.session.id}),!0)}}});var aH,QKe=x(()=>{c();Zl();aH=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let t=this._nextRequestId,r=gJ(t.toString(16));return this.callbacks.get(r)&&this.callbacks.delete(r),t}}});function e5t(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}function iH(e,...t){if(!e5t(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function HX(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}function ZKe(e,t){iH(e);let r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}var LX=x(()=>{c()});function JKe(e){iH(e);let t=\"\";for(let r=0;r<e.length;r++)t+=t5t[e[r]];return t}function r5t(e){if(typeof e!=\"string\")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function zX(e){return typeof e==\"string\"&&(e=r5t(e)),iH(e),e}function YKe(e){let t=n=>e().update(zX(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}var cH,tf,Ujn,t5t,sH,Djn,uH=x(()=>{c();LX();cH=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),tf=(e,t)=>e<<32-t|e>>>t,Ujn=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,t5t=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));sH=class{clone(){return this._cloneInto()}},Djn={}.toString});function n5t(e,t,r,n){if(typeof e.setBigUint64==\"function\")return e.setBigUint64(t,r,n);let o=BigInt(32),s=BigInt(4294967295),u=Number(r>>o&s),f=Number(r&s),d=n?4:0,m=n?0:4;e.setUint32(t+d,u,n),e.setUint32(t+m,f,n)}var XKe,eWe,lH,tWe=x(()=>{c();LX();uH();XKe=(e,t,r)=>e&t^~e&r,eWe=(e,t,r)=>e&t^e&r^t&r,lH=class extends sH{constructor(t,r,n,o){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=cH(this.buffer)}update(t){HX(this);let{view:r,buffer:n,blockLen:o}=this;t=zX(t);let s=t.length;for(let u=0;u<s;){let f=Math.min(o-this.pos,s-u);if(f===o){let d=cH(t);for(;o<=s-u;u+=o)this.process(d,u);continue}n.set(t.subarray(u,u+f),this.pos),this.pos+=f,u+=f,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){HX(this),ZKe(t,this),this.finished=!0;let{buffer:r,view:n,blockLen:o,isLE:s}=this,{pos:u}=this;r[u++]=128,this.buffer.subarray(u).fill(0),this.padOffset>o-u&&(this.process(n,0),u=0);for(let y=u;y<o;y++)r[y]=0;n5t(n,o-8,BigInt(this.length*8),s),this.process(n,0);let f=cH(t),d=this.outputLen;if(d%4)throw new Error(\"_sha2: outputLen should be aligned to 32bit\");let m=d/4,h=this.get();if(m>h.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let y=0;y<m;y++)f.setUint32(4*y,h[y],s)}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:r,buffer:n,length:o,finished:s,destroyed:u,pos:f}=this;return t.length=o,t.pos=f,t.finished=s,t.destroyed=u,o%r&&t.buffer.set(n),t}}});var o5t,ab,ib,FX,rWe,nWe=x(()=>{c();tWe();uH();o5t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ab=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ib=new Uint32Array(64),FX=class extends lH{constructor(){super(64,32,8,!1),this.A=ab[0]|0,this.B=ab[1]|0,this.C=ab[2]|0,this.D=ab[3]|0,this.E=ab[4]|0,this.F=ab[5]|0,this.G=ab[6]|0,this.H=ab[7]|0}get(){let{A:t,B:r,C:n,D:o,E:s,F:u,G:f,H:d}=this;return[t,r,n,o,s,u,f,d]}set(t,r,n,o,s,u,f,d){this.A=t|0,this.B=r|0,this.C=n|0,this.D=o|0,this.E=s|0,this.F=u|0,this.G=f|0,this.H=d|0}process(t,r){for(let y=0;y<16;y++,r+=4)ib[y]=t.getUint32(r,!1);for(let y=16;y<64;y++){let v=ib[y-15],E=ib[y-2],C=tf(v,7)^tf(v,18)^v>>>3,B=tf(E,17)^tf(E,19)^E>>>10;ib[y]=B+ib[y-7]+C+ib[y-16]|0}let{A:n,B:o,C:s,D:u,E:f,F:d,G:m,H:h}=this;for(let y=0;y<64;y++){let v=tf(f,6)^tf(f,11)^tf(f,25),E=h+v+XKe(f,d,m)+o5t[y]+ib[y]|0,B=(tf(n,2)^tf(n,13)^tf(n,22))+eWe(n,o,s)|0;h=m,m=d,d=f,f=u+E|0,u=s,s=o,o=n,n=E+B|0}n=n+this.A|0,o=o+this.B|0,s=s+this.C|0,u=u+this.D|0,f=f+this.E|0,d=d+this.F|0,m=m+this.G|0,h=h+this.H|0,this.set(n,o,s,u,f,d,m,h)}roundClean(){ib.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},rWe=YKe(()=>new FX)});var oWe,aWe,iWe,a3,sWe=x(()=>{c();nWe();uH();Zl();oWe=\"session:id\",aWe=\"session:secret\",iWe=\"session:linked\",a3=class e{constructor(t,r,n,o=!1){this.storage=t,this.id=r,this.secret=n,this.key=JKe(rWe(`${r}, ${n} WalletLink`)),this._linked=!!o}static create(t){let r=Xm(16),n=Xm(32);return new e(t,r,n).save()}static load(t){let r=t.getItem(oWe),n=t.getItem(iWe),o=t.getItem(aWe);return r&&o?new e(t,r,o,n===\"1\"):null}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this.storage.setItem(oWe,this.id),this.storage.setItem(aWe,this.secret),this.persistLinked(),this}persistLinked(){this.storage.setItem(iWe,this._linked?\"1\":\"0\")}}});var cWe,uWe=x(()=>{c();cWe=\".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}\"});var fH,a5t,lWe=x(()=>{c();Zy();dE();dE();AJ();BU();o_();uWe();fH=class{constructor(){this.root=null,this.darkMode=kU()}attach(){let t=document.documentElement;this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-css-reset\",t.appendChild(this.root),xU()}present(t){this.render(t)}clear(){this.render(null)}render(t){this.root&&(n_(null,this.root),t&&n_(tn(a5t,Object.assign({},t,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}},a5t=({title:e,buttonText:t,darkMode:r,onButtonClick:n,onDismiss:o})=>{let s=r?\"dark\":\"light\";return tn(NJ,{darkMode:r},tn(\"div\",{class:\"-cbwsdk-redirect-dialog\"},tn(\"style\",null,cWe),tn(\"div\",{class:\"-cbwsdk-redirect-dialog-backdrop\",onClick:o}),tn(\"div\",{class:nh(\"-cbwsdk-redirect-dialog-box\",s)},tn(\"p\",null,e),tn(\"button\",{onClick:n},t))))}});var z_,fWe=x(()=>{c();cE();lWe();o_();z_=class{constructor(){this.attached=!1,this.redirectDialog=new fH}attach(){if(this.attached)throw new Error(\"Coinbase Wallet SDK UI is already attached\");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(t){let r=new URL(wFe);r.searchParams.append(\"redirect_url\",tje().href),t&&r.searchParams.append(\"wl_url\",t);let n=document.createElement(\"a\");n.target=\"cbw-opener\",n.href=r.href,n.rel=\"noreferrer noopener\",n.click()}openCoinbaseWalletDeeplink(t){this.redirectToCoinbaseWallet(t),setTimeout(()=>{this.redirectDialog.present({title:\"Redirecting to Coinbase Wallet...\",buttonText:\"Open\",onButtonClick:()=>{this.redirectToCoinbaseWallet(t)}})},99)}showConnecting(t){return()=>{this.redirectDialog.clear()}}}});var F_,dWe=x(()=>{c();wi();i_();Zl();WKe();tH();QKe();sWe();OU();o_();DJ();fWe();F_=class e{constructor(t){this.chainCallbackParams={chainId:\"\",jsonRpcUrl:\"\"},this.isMobileWeb=rje(),this.linkedUpdated=s=>{this.isLinked=s;let u=this.storage.getItem(L_);if(s&&(this._session.linked=s),this.isUnlinkedErrorState=!1,u){let f=u.split(\" \"),d=this.storage.getItem(\"IsStandaloneSigning\")===\"true\";f[0]!==\"\"&&!s&&this._session.linked&&!d&&(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(s,u)=>{this.storage.setItem(s,u)},this.chainUpdated=(s,u)=>{this.chainCallbackParams.chainId===s&&this.chainCallbackParams.jsonRpcUrl===u||(this.chainCallbackParams={chainId:s,jsonRpcUrl:u},this.chainCallback&&this.chainCallback(u,Number.parseInt(s,10)))},this.accountUpdated=s=>{this.accountsCallback&&this.accountsCallback([s]),e.accountRequestCallbackIds.size>0&&(Array.from(e.accountRequestCallbackIds.values()).forEach(u=>{this.invokeCallback(u,{method:\"requestEthereumAccounts\",result:[s]})}),e.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.metadata=t.metadata,this.accountsCallback=t.accountsCallback,this.chainCallback=t.chainCallback;let{session:r,ui:n,connection:o}=this.subscribe();this._session=r,this.connection=o,this.relayEventManager=new aH,this.ui=n,this.ui.attach()}subscribe(){let t=a3.load(this.storage)||a3.create(this.storage),{linkAPIUrl:r}=this,n=new oH({session:t,linkAPIUrl:r,listener:this}),o=this.isMobileWeb?new z_:new IU;return n.connect(),{session:t,ui:o,connection:n}}resetAndReload(){this.connection.destroy().then(()=>{let t=a3.load(this.storage);t?.id===this._session.id&&qd.clearAll(),document.location.reload()}).catch(t=>{})}signEthereumTransaction(t){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:Ql(t.weiValue),data:ux(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?Ql(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?Ql(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?Ql(t.gasPriceInWei):null,gasLimit:t.gasLimit?Ql(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:Ql(t.weiValue),data:ux(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?Ql(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?Ql(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?Ql(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?Ql(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,r){return this.sendRequest({method:\"submitEthereumTransaction\",params:{signedTransaction:ux(t,!0),chainId:r}})}getWalletLinkSession(){return this._session}sendRequest(t){let r=null,n=Xm(8),o=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,s),r?.()};return new Promise((s,u)=>{r=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:o,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(n,f=>{if(r?.(),Yo(f))return u(new Error(f.errorMessage));s(f)}),this.publishWeb3RequestEvent(n,t)})}publishWeb3RequestEvent(t,r){let n={type:\"WEB3_REQUEST\",id:t,request:r};this.publishEvent(\"Web3Request\",n,!0).then(o=>{}).catch(o=>{this.handleWeb3ResponseMessage(n.id,{method:r.method,errorMessage:o.message})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(r.method)}openCoinbaseWalletDeeplink(t){if(this.ui instanceof z_)switch(t){case\"requestEthereumAccounts\":case\"switchEthereumChain\":return;default:window.addEventListener(\"blur\",()=>{window.addEventListener(\"focus\",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink();break}}publishWeb3RequestCanceledEvent(t){let r={type:\"WEB3_REQUEST_CANCELED\",id:t};this.publishEvent(\"Web3RequestCanceled\",r,!1).then()}publishEvent(t,r,n){return this.connection.publishEvent(t,r,n)}handleWeb3ResponseMessage(t,r){if(r.method===\"requestEthereumAccounts\"){e.accountRequestCallbackIds.forEach(n=>this.invokeCallback(n,r)),e.accountRequestCallbackIds.clear();return}this.invokeCallback(t,r)}handleErrorResponse(t,r,n){var o;let s=(o=n?.message)!==null&&o!==void 0?o:\"Unspecified error message.\";this.handleWeb3ResponseMessage(t,{method:r,errorMessage:s})}invokeCallback(t,r){let n=this.relayEventManager.callbacks.get(t);n&&(n(r),this.relayEventManager.callbacks.delete(t))}requestEthereumAccounts(){let{appName:t,appLogoUrl:r}=this.metadata,n={method:\"requestEthereumAccounts\",params:{appName:t,appLogoUrl:r}},o=null,s=Xm(8);return new Promise((u,f)=>{this.relayEventManager.callbacks.set(s,d=>{if(o?.(),Yo(d))return f(new Error(d.errorMessage));u(d)}),e.accountRequestCallbackIds.add(s),this.publishWeb3RequestEvent(s,n)})}watchAsset(t,r,n,o,s,u){let f={method:\"watchAsset\",params:{type:t,options:{address:r,symbol:n,decimals:o,image:s},chainId:u}},d=null,m=Xm(8),h=y=>{this.publishWeb3RequestCanceledEvent(m),this.handleErrorResponse(m,f.method,y),d?.()};return d=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:h,onResetConnection:this.resetAndReload}),new Promise((y,v)=>{this.relayEventManager.callbacks.set(m,E=>{if(d?.(),Yo(E))return v(new Error(E.errorMessage));y(E)}),this.publishWeb3RequestEvent(m,f)})}addEthereumChain(t,r,n,o,s,u){let f={method:\"addEthereumChain\",params:{chainId:t,rpcUrls:r,blockExplorerUrls:o,chainName:s,iconUrls:n,nativeCurrency:u}},d=null,m=Xm(8),h=y=>{this.publishWeb3RequestCanceledEvent(m),this.handleErrorResponse(m,f.method,y),d?.()};return d=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:h,onResetConnection:this.resetAndReload}),new Promise((y,v)=>{this.relayEventManager.callbacks.set(m,E=>{if(d?.(),Yo(E))return v(new Error(E.errorMessage));y(E)}),this.publishWeb3RequestEvent(m,f)})}switchEthereumChain(t,r){let n={method:\"switchEthereumChain\",params:Object.assign({chainId:t},{address:r})},o=null,s=Xm(8),u=f=>{this.publishWeb3RequestCanceledEvent(s),this.handleErrorResponse(s,n.method,f),o?.()};return o=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:u,onResetConnection:this.resetAndReload}),new Promise((f,d)=>{this.relayEventManager.callbacks.set(s,m=>{if(o?.(),Yo(m)&&m.errorCode)return d(ke.provider.custom({code:m.errorCode,message:\"Unrecognized chain ID. Try adding the chain using addEthereumChain first.\"}));if(Yo(m))return d(new Error(m.errorMessage));f(m)}),this.publishWeb3RequestEvent(s,n)})}};F_.accountRequestCallbackIds=new Set});var j_,pWe,mWe,q_,hWe=x(()=>{c();cE();wi();i_();kX();HJ();Zl();DU();sE();j_=Sr(FKe(),1);dWe();tH();OU();pWe=\"DefaultChainId\",mWe=\"DefaultJsonRpcUrl\",q_=class{constructor(t){this._relay=null,this._addresses=[],this.metadata=t.metadata,this._storage=new qd(\"walletlink\",EJ),this.callback=t.callback||null;let r=this._storage.getItem(L_);if(r){let n=r.split(\" \");n[0]!==\"\"&&(this._addresses=n.map(o=>th(o)))}this.initializeRelay()}getSession(){let t=this.initializeRelay(),{id:r,secret:n}=t.getWalletLinkSession();return{id:r,secret:n}}async handshake(t){let r=\"eth_requestAccounts\",n=ec.get(t);OVe({method:r,correlationId:n});try{await this._eth_requestAccounts(),UVe({method:r,correlationId:n})}catch(o){throw NVe({method:r,correlationId:n,errorMessage:oh(o)}),o}}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var t;return(t=this._storage.getItem(mWe))!==null&&t!==void 0?t:void 0}set jsonRpcUrl(t){this._storage.setItem(mWe,t)}updateProviderInfo(t,r){var n;this.jsonRpcUrl=t;let o=this.getChainId();this._storage.setItem(pWe,r.toString(10)),lx(r)!==o&&((n=this.callback)===null||n===void 0||n.call(this,\"chainChanged\",eh(r)))}async watchAsset(t){let r=Array.isArray(t)?t[0]:t;if(!r.type)throw ke.rpc.invalidParams(\"Type is required\");if(r?.type!==\"ERC20\")throw ke.rpc.invalidParams(`Asset of type \\'${r.type}\\' is not supported`);if(!r?.options)throw ke.rpc.invalidParams(\"Options are required\");if(!r?.options.address)throw ke.rpc.invalidParams(\"Address is required\");let n=this.getChainId(),{address:o,symbol:s,image:u,decimals:f}=r.options,m=await this.initializeRelay().watchAsset(r.type,o,s,f,u,n?.toString());return Yo(m)?!1:!!m.result}async addEthereumChain(t){var r,n;let o=t[0];if(((r=o.rpcUrls)===null||r===void 0?void 0:r.length)===0)throw ke.rpc.invalidParams(\"please pass in at least 1 rpcUrl\");if(!o.chainName||o.chainName.trim()===\"\")throw ke.rpc.invalidParams(\"chainName is a required field\");if(!o.nativeCurrency)throw ke.rpc.invalidParams(\"nativeCurrency is a required field\");let s=Number.parseInt(o.chainId,16);if(s===this.getChainId())return!1;let u=this.initializeRelay(),{rpcUrls:f=[],blockExplorerUrls:d=[],chainName:m,iconUrls:h=[],nativeCurrency:y}=o,v=await u.addEthereumChain(s.toString(),f,h,d,m,y);if(Yo(v))return!1;if(((n=v.result)===null||n===void 0?void 0:n.isApproved)===!0)return this.updateProviderInfo(f[0],s),null;throw ke.rpc.internal(\"unable to add ethereum chain\")}async switchEthereumChain(t){let r=t[0],n=Number.parseInt(r.chainId,16),s=await this.initializeRelay().switchEthereumChain(n.toString(10),this.selectedAddress||void 0);if(Yo(s))throw s;let u=s.result;return u.isApproved&&u.rpcUrl.length>0&&this.updateProviderInfo(u.rpcUrl,n),null}async cleanup(){this.callback=null,this._relay&&this._relay.resetAndReload(),this._storage.clear()}_setAddresses(t,r){var n;if(!Array.isArray(t))throw new Error(\"addresses is not an array\");let o=t.map(s=>th(s));JSON.stringify(o)!==JSON.stringify(this._addresses)&&(this._addresses=o,(n=this.callback)===null||n===void 0||n.call(this,\"accountsChanged\",o),this._storage.setItem(L_,o.join(\" \")))}async request(t){let r=ec.get(t);DVe({method:t.method,correlationId:r});try{let n=await this._request(t);return LVe({method:t.method,correlationId:r}),n}catch(n){throw HVe({method:t.method,correlationId:r,errorMessage:oh(n)}),n}}async _request(t){let r=t.params||[];switch(t.method){case\"eth_accounts\":return[...this._addresses];case\"eth_coinbase\":return this.selectedAddress||null;case\"net_version\":return this.getChainId().toString(10);case\"eth_chainId\":return eh(this.getChainId());case\"eth_requestAccounts\":return this._eth_requestAccounts();case\"eth_ecRecover\":case\"personal_ecRecover\":return this.ecRecover(t);case\"personal_sign\":return this.personalSign(t);case\"eth_signTransaction\":return this._eth_signTransaction(r);case\"eth_sendRawTransaction\":return this._eth_sendRawTransaction(r);case\"eth_sendTransaction\":return this._eth_sendTransaction(r);case\"eth_signTypedData_v1\":case\"eth_signTypedData_v3\":case\"eth_signTypedData_v4\":case\"eth_signTypedData\":return this.signTypedData(t);case\"wallet_addEthereumChain\":return this.addEthereumChain(r);case\"wallet_switchEthereumChain\":return this.switchEthereumChain(r);case\"wallet_watchAsset\":return this.watchAsset(r);default:if(!this.jsonRpcUrl)throw ke.rpc.internal(\"No RPC URL set for chain\");return Wy(t,this.jsonRpcUrl)}}_ensureKnownAddress(t){let r=th(t);if(!this._addresses.map(o=>th(o)).includes(r))throw new Error(\"Unknown Ethereum address\")}_prepareTransactionParams(t){let r=t.from?th(t.from):this.selectedAddress;if(!r)throw new Error(\"Ethereum address is unavailable\");this._ensureKnownAddress(r);let n=t.to?th(t.to):null,o=t.value!=null?iE(t.value):BigInt(0),s=t.data?dU(t.data):globalThis.Buffer.alloc(0),u=t.nonce!=null?lx(t.nonce):null,f=t.gasPrice!=null?iE(t.gasPrice):null,d=t.maxFeePerGas!=null?iE(t.maxFeePerGas):null,m=t.maxPriorityFeePerGas!=null?iE(t.maxPriorityFeePerGas):null,h=t.gas!=null?iE(t.gas):null,y=t.chainId?lx(t.chainId):this.getChainId();return{fromAddress:r,toAddress:n,weiValue:o,data:s,nonce:u,gasPriceInWei:f,maxFeePerGas:d,maxPriorityFeePerGas:m,gasLimit:h,chainId:y}}async ecRecover(t){let{method:r,params:n}=t;if(!Array.isArray(n))throw ke.rpc.invalidParams();let s=await this.initializeRelay().sendRequest({method:\"ethereumAddressFromSignedMessage\",params:{message:uU(n[0]),signature:uU(n[1]),addPrefix:r===\"personal_ecRecover\"}});if(Yo(s))throw s;return s.result}getChainId(){var t;return Number.parseInt((t=this._storage.getItem(pWe))!==null&&t!==void 0?t:\"1\",10)}async _eth_requestAccounts(){var t,r;if(this._addresses.length>0)return(t=this.callback)===null||t===void 0||t.call(this,\"connect\",{chainId:eh(this.getChainId())}),this._addresses;let o=await this.initializeRelay().requestEthereumAccounts();if(Yo(o))throw o;if(!o.result)throw new Error(\"accounts received is empty\");return this._setAddresses(o.result),(r=this.callback)===null||r===void 0||r.call(this,\"connect\",{chainId:eh(this.getChainId())}),this._addresses}async personalSign({params:t}){if(!Array.isArray(t))throw ke.rpc.invalidParams();let r=t[1],n=t[0];this._ensureKnownAddress(r);let s=await this.initializeRelay().sendRequest({method:\"signEthereumMessage\",params:{address:th(r),message:uU(n),addPrefix:!0,typedDataJson:null}});if(Yo(s))throw s;return s.result}async _eth_signTransaction(t){let r=this._prepareTransactionParams(t[0]||{}),o=await this.initializeRelay().signEthereumTransaction(r);if(Yo(o))throw o;return o.result}async _eth_sendRawTransaction(t){let r=dU(t[0]),o=await this.initializeRelay().submitEthereumTransaction(r,this.getChainId());if(Yo(o))throw o;return o.result}async _eth_sendTransaction(t){let r=this._prepareTransactionParams(t[0]||{}),o=await this.initializeRelay().signAndSubmitEthereumTransaction(r);if(Yo(o))throw o;return o.result}async signTypedData(t){let{method:r,params:n}=t;if(!Array.isArray(n))throw ke.rpc.invalidParams();let o=m=>{let h={eth_signTypedData_v1:j_.default.hashForSignTypedDataLegacy,eth_signTypedData_v3:j_.default.hashForSignTypedData_v3,eth_signTypedData_v4:j_.default.hashForSignTypedData_v4,eth_signTypedData:j_.default.hashForSignTypedData_v4};return ux(h[r]({data:yFe(m)}),!0)},s=n[r===\"eth_signTypedData_v1\"?1:0],u=n[r===\"eth_signTypedData_v1\"?0:1];this._ensureKnownAddress(s);let d=await this.initializeRelay().sendRequest({method:\"signEthereumMessage\",params:{address:th(s),message:o(u),typedDataJson:JSON.stringify(u,null,2),addPrefix:!1}});if(Yo(d))throw d;return d.result}initializeRelay(){return this._relay||(this._relay=new F_({linkAPIUrl:EJ,storage:this._storage,metadata:this.metadata,accountsCallback:this._setAddresses.bind(this),chainCallback:this.updateProviderInfo.bind(this)})),this._relay}}});function gWe(){return bWe.getItem(yWe)}function xWe(e){bWe.setItem(yWe,e)}function jX(e){if(e)return e instanceof O_?\"scw\":\"walletlink\"}async function vWe(e){let{communicator:t,metadata:r,handshakeRequest:n,callback:o}=e;i5t(t,r,o,n).catch(()=>{});let s={id:crypto.randomUUID(),event:\"selectSignerType\",data:Object.assign(Object.assign({},e.preference),{handshakeRequest:n})},{data:u}=await t.postRequestAndWaitForResponse(s);return u}function wWe(e){let{signerType:t,metadata:r,communicator:n,callback:o}=e;switch(t){case\"scw\":return new O_({metadata:r,callback:o,communicator:n});case\"walletlink\":return new q_({metadata:r,callback:o})}}async function i5t(e,t,r,n){await e.onMessage(({event:s})=>s===\"WalletLinkSessionRequest\");let o=new q_({metadata:t,callback:r});e.postMessage({event:\"WalletLinkUpdate\",data:{session:o.getSession()}}),await o.handshake(n),e.postMessage({event:\"WalletLinkUpdate\",data:{connected:!0}})}var yWe,bWe,EWe=x(()=>{c();i_();MVe();hWe();yWe=\"SignerType\",bWe=new qd(\"CBWSDK\",\"SignerConfigurator\")});var s5t,i3,qX=x(()=>{c();uje();cE();XT();wi();fje();dje();i_();gje();wje();Zl();DU();Lu();sE();EWe();s5t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},i3=class extends NU{constructor(t){var{metadata:r}=t,n=t.preference,{keysUrl:o}=n,s=s5t(n,[\"keysUrl\"]);super(),this.signer=null,this.isCoinbaseWallet=!0,this.metadata=r,this.preference=s,this.communicator=new MU({url:o,metadata:r,preference:s});let u=gWe();u&&(this.signer=this.initSigner(u),pje({signerType:u}))}async request(t){let r=crypto.randomUUID();ec.set(t,r),mje({method:t.method,correlationId:r});try{let n=await this._request(t);return yje({method:t.method,signerType:jX(this.signer),correlationId:r}),n}catch(n){throw hje({method:t.method,correlationId:r,signerType:jX(this.signer),errorMessage:n instanceof Error?n.message:\"\"}),n}finally{ec.delete(t)}}async _request(t){try{if(xFe(t),!this.signer)switch(t.method){case\"eth_requestAccounts\":{let n,o=Re.subAccountsConfig.get();o?.enableAutoSubAccounts?n=\"scw\":n=await this.requestSignerSelection(t);let s=this.initSigner(n);n===\"scw\"&&o?.enableAutoSubAccounts?(await s.handshake({method:\"handshake\"}),await s.request(t)):await s.handshake(t),this.signer=s,xWe(n);break}case\"wallet_connect\":{let n=this.initSigner(\"scw\");await n.handshake({method:\"handshake\"});let o=await n.request(t);return this.signer=n,o}case\"wallet_sendCalls\":case\"wallet_sign\":{let n=this.initSigner(\"scw\");await n.handshake({method:\"handshake\"});let o=await n.request(t);return await n.cleanup(),o}case\"wallet_getCallsStatus\":return await Wy(t,bU);case\"net_version\":return 1;case\"eth_chainId\":return eh(1);default:throw ke.provider.unauthorized(\"Must call \\'eth_requestAccounts\\' before other methods\")}return await this.signer.request(t)}catch(r){let{code:n}=r;return n===qn.provider.unauthorized&&this.disconnect(),Promise.reject(lje(r))}}async enable(){return console.warn(\\'.enable() has been deprecated. Please use .request({ method: \"eth_requestAccounts\" }) instead.\\'),bje(),await this.request({method:\"eth_requestAccounts\"})}async disconnect(){var t;await((t=this.signer)===null||t===void 0?void 0:t.cleanup()),this.signer=null,qd.clearAll(),ec.clear(),this.emit(\"disconnect\",ke.provider.disconnected(\"User initiated disconnection\"))}async requestSignerSelection(t){xje();let r=await vWe({communicator:this.communicator,preference:this.preference,metadata:this.metadata,handshakeRequest:t,callback:this.emit.bind(this)});return vje(r),r}initSigner(t){return wWe({signerType:t,metadata:this.metadata,communicator:this.communicator,callback:this.emit.bind(this)})}}});var AWe,SWe=x(()=>{c();AWe=(e,t)=>{let r;switch(e){case\"standard\":return r=t,`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${r}\\' viewBox=\\'0 0 1024 1024\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3E %3Crect width=\\'1024\\' height=\\'1024\\' fill=\\'%230052FF\\'/%3E %3Cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\\' fill=\\'white\\'/%3E %3C/svg%3E `;case\"circle\":return r=t,`data:image/svg+xml,%3Csvg xmlns=\\'http://www.w3.org/2000/svg\\' width=\\'${t}\\' height=\\'${r}\\' viewBox=\\'0 0 999.81 999.81\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3Cpath class=\\'cls-2\\' d=\\'M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3Cpath class=\\'cls-3\\' d=\\'M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3C/svg%3E`;case\"text\":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${r}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 528.15 53.64\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class=\\'cls-1\\' d=\\'M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z\\'/%3E%3C/svg%3E`;case\"textWithLogo\":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${r}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 308.44 77.61\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z\\'/%3E%3C/svg%3E`;case\"textLight\":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${r}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 528.15 53.64\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class=\\'cls-1\\' d=\\'M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z\\'/%3E%3C/svg%3E`;case\"textWithLogoLight\":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${r}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 308.44 77.61\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z\\'/%3E%3C/svg%3E`;default:return r=t,`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${r}\\' viewBox=\\'0 0 1024 1024\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3E %3Crect width=\\'1024\\' height=\\'1024\\' fill=\\'%230052FF\\'/%3E %3Cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\\' fill=\\'white\\'/%3E %3C/svg%3E `}}});var s3,$X=x(()=>{c();fJ();Zl();Lu();mU();sE();wJ();qX();SWe();s3=class{constructor(t){Re.persist.rehydrate(),this.metadata={appName:t.appName||\"Dapp\",appLogoUrl:t.appLogoUrl||bFe(),appChainIds:t.appChainIds||[]},Re.config.set({metadata:this.metadata}),pU()}makeWeb3Provider(t={options:\"all\"}){var r;yU(t),t.telemetry!==!1&&oU(),Re.config.set({preference:t});let n={metadata:this.metadata,preference:t};return(r=hU(n))!==null&&r!==void 0?r:new i3(n)}getCoinbaseWalletLogo(t,r=240){return AWe(t,r)}}});function CWe(e){var t;let r={metadata:e.metadata,preference:e.preference};return(t=hU(r))!==null&&t!==void 0?t:new i3(r)}var TWe=x(()=>{c();sE();qX()});function _We(e){var t,r,n,o;let s={metadata:{appName:e.appName||\"Dapp\",appLogoUrl:e.appLogoUrl||\"\",appChainIds:e.appChainIds||[]},preference:Object.assign(c5t,(t=e.preference)!==null&&t!==void 0?t:{}),paymasterUrls:e.paymasterUrls};!((r=e.subAccounts)===null||r===void 0)&&r.toOwnerAccount&&vJ(e.subAccounts.toOwnerAccount),Re.subAccountsConfig.set({toOwnerAccount:(n=e.subAccounts)===null||n===void 0?void 0:n.toOwnerAccount,enableAutoSubAccounts:(o=e.subAccounts)===null||o===void 0?void 0:o.enableAutoSubAccounts}),Re.config.set(s),Re.persist.rehydrate(),pU(),s.preference.telemetry!==!1&&oU(),yU(s.preference);let u=null,f={getProvider(){return u||(u=CWe(s)),u.sdk=f,u},subAccount:{async create(d){var m,h;let y=Re.getState();return ka((m=y.subAccount)===null||m===void 0?void 0:m.address,new Error(\"subaccount already exists\")),await((h=f.getProvider())===null||h===void 0?void 0:h.request({method:\"wallet_addSubAccount\",params:[{version:\"1\",account:d}]}))},async get(){var d,m;let h=Re.subAccounts.get();if(h?.address)return h;let v=(m=(await((d=f.getProvider())===null||d===void 0?void 0:d.request({method:\"wallet_connect\",params:[{version:\"1\",capabilities:{}}]}))).accounts[0].capabilities)===null||m===void 0?void 0:m.subAccounts;return Array.isArray(v)?v[0]:null},async addOwner({address:d,publicKey:m,chainId:h}){var y,v;let E=Re.subAccounts.get(),C=Re.account.get();ka(C,new Error(\"account does not exist\")),ka(E?.address,new Error(\"subaccount does not exist\"));let B=[];if(m){let[R,M]=Rs([{type:\"bytes32\"},{type:\"bytes32\"}],m);B.push({to:E.address,data:Ct({abi:Ai,functionName:\"addOwnerPublicKey\",args:[R,M]}),value:ot(0)})}return d&&B.push({to:E.address,data:Ct({abi:Ai,functionName:\"addOwnerAddress\",args:[d]}),value:ot(0)}),await((y=f.getProvider())===null||y===void 0?void 0:y.request({method:\"wallet_sendCalls\",params:[{calls:B,chainId:ot(h),from:(v=C.accounts)===null||v===void 0?void 0:v[0],version:\"1\"}]}))},setToOwnerAccount(d){vJ(d),Re.subAccountsConfig.set({toOwnerAccount:d})}}};return f}var c5t,kWe=x(()=>{c();Bo();fJ();Rx();$E();mU();wJ();TWe();Lu();c5t={options:\"all\"}});var BWe={};Wn(BWe,{CoinbaseWalletSDK:()=>s3,createCoinbaseWalletSDK:()=>_We,default:()=>u5t,getCryptoKeyAccount:()=>Ix,removeCryptoKey:()=>rVe});var u5t,IWe=x(()=>{c();$X();$X();kWe();LD();u5t=s3});var PWe=X(dH=>{\"use strict\";c();Object.defineProperty(dH,\"__esModule\",{value:!0});dH.walletLogo=void 0;var l5t=(e,t)=>{let r;switch(e){case\"standard\":return r=t,`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${r}\\' viewBox=\\'0 0 1024 1024\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3E %3Crect width=\\'1024\\' height=\\'1024\\' fill=\\'%230052FF\\'/%3E %3Cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\\' fill=\\'white\\'/%3E %3C/svg%3E `;case\"circle\":return r=t,`data:image/svg+xml,%3Csvg xmlns=\\'http://www.w3.org/2000/svg\\' width=\\'${t}\\' height=\\'${r}\\' viewBox=\\'0 0 999.81 999.81\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3Cpath class=\\'cls-2\\' d=\\'M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3Cpath class=\\'cls-3\\' d=\\'M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3C/svg%3E`;case\"text\":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${r}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 528.15 53.64\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class=\\'cls-1\\' d=\\'M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z\\'/%3E%3C/svg%3E`;case\"textWithLogo\":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${r}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 308.44 77.61\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z\\'/%3E%3C/svg%3E`;case\"textLight\":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${r}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 528.15 53.64\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class=\\'cls-1\\' d=\\'M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z\\'/%3E%3C/svg%3E`;case\"textWithLogoLight\":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${r}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 308.44 77.61\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z\\'/%3E%3C/svg%3E`;default:return r=t,`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${r}\\' viewBox=\\'0 0 1024 1024\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3E %3Crect width=\\'1024\\' height=\\'1024\\' fill=\\'%230052FF\\'/%3E %3Cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\\' fill=\\'white\\'/%3E %3C/svg%3E `}};dH.walletLogo=l5t});var RWe=X(pH=>{\"use strict\";c();Object.defineProperty(pH,\"__esModule\",{value:!0});pH.LINK_API_URL=void 0;pH.LINK_API_URL=\"https://www.walletlink.org\"});var MWe=X(()=>{c()});var $_=X((OWe,GX)=>{c();(function(e,t){\"use strict\";function r(H,A){if(!H)throw new Error(A||\"Assertion failed\")}function n(H,A){H.super_=A;var T=function(){};T.prototype=A.prototype,H.prototype=new T,H.prototype.constructor=H}function o(H,A,T){if(o.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((A===\"le\"||A===\"be\")&&(T=A,A=10),this._init(H||0,A||10,T||\"be\"))}typeof e==\"object\"?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;var s;try{typeof window<\"u\"&&typeof window.Buffer<\"u\"?s=window.Buffer:s=MWe().Buffer}catch{}o.isBN=function(A){return A instanceof o?!0:A!==null&&typeof A==\"object\"&&A.constructor.wordSize===o.wordSize&&Array.isArray(A.words)},o.max=function(A,T){return A.cmp(T)>0?A:T},o.min=function(A,T){return A.cmp(T)<0?A:T},o.prototype._init=function(A,T,P){if(typeof A==\"number\")return this._initNumber(A,T,P);if(typeof A==\"object\")return this._initArray(A,T,P);T===\"hex\"&&(T=16),r(T===(T|0)&&T>=2&&T<=36),A=A.toString().replace(/\\\\s+/g,\"\");var D=0;A[0]===\"-\"&&(D++,this.negative=1),D<A.length&&(T===16?this._parseHex(A,D,P):(this._parseBase(A,T,D),P===\"le\"&&this._initArray(this.toArray(),T,P)))},o.prototype._initNumber=function(A,T,P){A<0&&(this.negative=1,A=-A),A<67108864?(this.words=[A&67108863],this.length=1):A<4503599627370496?(this.words=[A&67108863,A/67108864&67108863],this.length=2):(r(A<9007199254740992),this.words=[A&67108863,A/67108864&67108863,1],this.length=3),P===\"le\"&&this._initArray(this.toArray(),T,P)},o.prototype._initArray=function(A,T,P){if(r(typeof A.length==\"number\"),A.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(A.length/3),this.words=new Array(this.length);for(var D=0;D<this.length;D++)this.words[D]=0;var L,V,Z=0;if(P===\"be\")for(D=A.length-1,L=0;D>=0;D-=3)V=A[D]|A[D-1]<<8|A[D-2]<<16,this.words[L]|=V<<Z&67108863,this.words[L+1]=V>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,L++);else if(P===\"le\")for(D=0,L=0;D<A.length;D+=3)V=A[D]|A[D+1]<<8|A[D+2]<<16,this.words[L]|=V<<Z&67108863,this.words[L+1]=V>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,L++);return this._strip()};function u(H,A){var T=H.charCodeAt(A);if(T>=48&&T<=57)return T-48;if(T>=65&&T<=70)return T-55;if(T>=97&&T<=102)return T-87;r(!1,\"Invalid character in \"+H)}function f(H,A,T){var P=u(H,T);return T-1>=A&&(P|=u(H,T-1)<<4),P}o.prototype._parseHex=function(A,T,P){this.length=Math.ceil((A.length-T)/6),this.words=new Array(this.length);for(var D=0;D<this.length;D++)this.words[D]=0;var L=0,V=0,Z;if(P===\"be\")for(D=A.length-1;D>=T;D-=2)Z=f(A,T,D)<<L,this.words[V]|=Z&67108863,L>=18?(L-=18,V+=1,this.words[V]|=Z>>>26):L+=8;else{var z=A.length-T;for(D=z%2===0?T+1:T;D<A.length;D+=2)Z=f(A,T,D)<<L,this.words[V]|=Z&67108863,L>=18?(L-=18,V+=1,this.words[V]|=Z>>>26):L+=8}this._strip()};function d(H,A,T,P){for(var D=0,L=0,V=Math.min(H.length,T),Z=A;Z<V;Z++){var z=H.charCodeAt(Z)-48;D*=P,z>=49?L=z-49+10:z>=17?L=z-17+10:L=z,r(z>=0&&L<P,\"Invalid character\"),D+=L}return D}o.prototype._parseBase=function(A,T,P){this.words=[0],this.length=1;for(var D=0,L=1;L<=67108863;L*=T)D++;D--,L=L/T|0;for(var V=A.length-P,Z=V%D,z=Math.min(V,V-Z)+P,I=0,Q=P;Q<z;Q+=D)I=d(A,Q,Q+D,T),this.imuln(L),this.words[0]+I<67108864?this.words[0]+=I:this._iaddn(I);if(Z!==0){var me=1;for(I=d(A,Q,A.length,T),Q=0;Q<Z;Q++)me*=T;this.imuln(me),this.words[0]+I<67108864?this.words[0]+=I:this._iaddn(I)}this._strip()},o.prototype.copy=function(A){A.words=new Array(this.length);for(var T=0;T<this.length;T++)A.words[T]=this.words[T];A.length=this.length,A.negative=this.negative,A.red=this.red};function m(H,A){H.words=A.words,H.length=A.length,H.negative=A.negative,H.red=A.red}if(o.prototype._move=function(A){m(A,this)},o.prototype.clone=function(){var A=new o(null);return this.copy(A),A},o.prototype._expand=function(A){for(;this.length<A;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<\"u\"&&typeof Symbol.for==\"function\")try{o.prototype[Symbol.for(\"nodejs.util.inspect.custom\")]=h}catch{o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"}var y=[\"\",\"0\",\"00\",\"000\",\"0000\",\"00000\",\"000000\",\"0000000\",\"00000000\",\"000000000\",\"0000000000\",\"00000000000\",\"000000000000\",\"0000000000000\",\"00000000000000\",\"000000000000000\",\"0000000000000000\",\"00000000000000000\",\"000000000000000000\",\"0000000000000000000\",\"00000000000000000000\",\"000000000000000000000\",\"0000000000000000000000\",\"00000000000000000000000\",\"000000000000000000000000\",\"0000000000000000000000000\"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(A,T){A=A||10,T=T|0||1;var P;if(A===16||A===\"hex\"){P=\"\";for(var D=0,L=0,V=0;V<this.length;V++){var Z=this.words[V],z=((Z<<D|L)&16777215).toString(16);L=Z>>>24-D&16777215,D+=2,D>=26&&(D-=26,V--),L!==0||V!==this.length-1?P=y[6-z.length]+z+P:P=z+P}for(L!==0&&(P=L.toString(16)+P);P.length%T!==0;)P=\"0\"+P;return this.negative!==0&&(P=\"-\"+P),P}if(A===(A|0)&&A>=2&&A<=36){var I=v[A],Q=E[A];P=\"\";var me=this.clone();for(me.negative=0;!me.isZero();){var ge=me.modrn(Q).toString(A);me=me.idivn(Q),me.isZero()?P=ge+P:P=y[I-ge.length]+ge+P}for(this.isZero()&&(P=\"0\"+P);P.length%T!==0;)P=\"0\"+P;return this.negative!==0&&(P=\"-\"+P),P}r(!1,\"Base should be between 2 and 36\")},o.prototype.toNumber=function(){var A=this.words[0];return this.length===2?A+=this.words[1]*67108864:this.length===3&&this.words[2]===1?A+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,\"Number can only safely store up to 53 bits\"),this.negative!==0?-A:A},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(A,T){return this.toArrayLike(s,A,T)}),o.prototype.toArray=function(A,T){return this.toArrayLike(Array,A,T)};var C=function(A,T){return A.allocUnsafe?A.allocUnsafe(T):new A(T)};o.prototype.toArrayLike=function(A,T,P){this._strip();var D=this.byteLength(),L=P||Math.max(1,D);r(D<=L,\"byte array longer than desired length\"),r(L>0,\"Requested array length <= 0\");var V=C(A,L),Z=T===\"le\"?\"LE\":\"BE\";return this[\"_toArrayLike\"+Z](V,D),V},o.prototype._toArrayLikeLE=function(A,T){for(var P=0,D=0,L=0,V=0;L<this.length;L++){var Z=this.words[L]<<V|D;A[P++]=Z&255,P<A.length&&(A[P++]=Z>>8&255),P<A.length&&(A[P++]=Z>>16&255),V===6?(P<A.length&&(A[P++]=Z>>24&255),D=0,V=0):(D=Z>>>24,V+=2)}if(P<A.length)for(A[P++]=D;P<A.length;)A[P++]=0},o.prototype._toArrayLikeBE=function(A,T){for(var P=A.length-1,D=0,L=0,V=0;L<this.length;L++){var Z=this.words[L]<<V|D;A[P--]=Z&255,P>=0&&(A[P--]=Z>>8&255),P>=0&&(A[P--]=Z>>16&255),V===6?(P>=0&&(A[P--]=Z>>24&255),D=0,V=0):(D=Z>>>24,V+=2)}if(P>=0)for(A[P--]=D;P>=0;)A[P--]=0},Math.clz32?o.prototype._countBits=function(A){return 32-Math.clz32(A)}:o.prototype._countBits=function(A){var T=A,P=0;return T>=4096&&(P+=13,T>>>=13),T>=64&&(P+=7,T>>>=7),T>=8&&(P+=4,T>>>=4),T>=2&&(P+=2,T>>>=2),P+T},o.prototype._zeroBits=function(A){if(A===0)return 26;var T=A,P=0;return(T&8191)===0&&(P+=13,T>>>=13),(T&127)===0&&(P+=7,T>>>=7),(T&15)===0&&(P+=4,T>>>=4),(T&3)===0&&(P+=2,T>>>=2),(T&1)===0&&P++,P},o.prototype.bitLength=function(){var A=this.words[this.length-1],T=this._countBits(A);return(this.length-1)*26+T};function B(H){for(var A=new Array(H.bitLength()),T=0;T<A.length;T++){var P=T/26|0,D=T%26;A[T]=H.words[P]>>>D&1}return A}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var A=0,T=0;T<this.length;T++){var P=this._zeroBits(this.words[T]);if(A+=P,P!==26)break}return A},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(A){return this.negative!==0?this.abs().inotn(A).iaddn(1):this.clone()},o.prototype.fromTwos=function(A){return this.testn(A-1)?this.notn(A).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(A){for(;this.length<A.length;)this.words[this.length++]=0;for(var T=0;T<A.length;T++)this.words[T]=this.words[T]|A.words[T];return this._strip()},o.prototype.ior=function(A){return r((this.negative|A.negative)===0),this.iuor(A)},o.prototype.or=function(A){return this.length>A.length?this.clone().ior(A):A.clone().ior(this)},o.prototype.uor=function(A){return this.length>A.length?this.clone().iuor(A):A.clone().iuor(this)},o.prototype.iuand=function(A){var T;this.length>A.length?T=A:T=this;for(var P=0;P<T.length;P++)this.words[P]=this.words[P]&A.words[P];return this.length=T.length,this._strip()},o.prototype.iand=function(A){return r((this.negative|A.negative)===0),this.iuand(A)},o.prototype.and=function(A){return this.length>A.length?this.clone().iand(A):A.clone().iand(this)},o.prototype.uand=function(A){return this.length>A.length?this.clone().iuand(A):A.clone().iuand(this)},o.prototype.iuxor=function(A){var T,P;this.length>A.length?(T=this,P=A):(T=A,P=this);for(var D=0;D<P.length;D++)this.words[D]=T.words[D]^P.words[D];if(this!==T)for(;D<T.length;D++)this.words[D]=T.words[D];return this.length=T.length,this._strip()},o.prototype.ixor=function(A){return r((this.negative|A.negative)===0),this.iuxor(A)},o.prototype.xor=function(A){return this.length>A.length?this.clone().ixor(A):A.clone().ixor(this)},o.prototype.uxor=function(A){return this.length>A.length?this.clone().iuxor(A):A.clone().iuxor(this)},o.prototype.inotn=function(A){r(typeof A==\"number\"&&A>=0);var T=Math.ceil(A/26)|0,P=A%26;this._expand(T),P>0&&T--;for(var D=0;D<T;D++)this.words[D]=~this.words[D]&67108863;return P>0&&(this.words[D]=~this.words[D]&67108863>>26-P),this._strip()},o.prototype.notn=function(A){return this.clone().inotn(A)},o.prototype.setn=function(A,T){r(typeof A==\"number\"&&A>=0);var P=A/26|0,D=A%26;return this._expand(P+1),T?this.words[P]=this.words[P]|1<<D:this.words[P]=this.words[P]&~(1<<D),this._strip()},o.prototype.iadd=function(A){var T;if(this.negative!==0&&A.negative===0)return this.negative=0,T=this.isub(A),this.negative^=1,this._normSign();if(this.negative===0&&A.negative!==0)return A.negative=0,T=this.isub(A),A.negative=1,T._normSign();var P,D;this.length>A.length?(P=this,D=A):(P=A,D=this);for(var L=0,V=0;V<D.length;V++)T=(P.words[V]|0)+(D.words[V]|0)+L,this.words[V]=T&67108863,L=T>>>26;for(;L!==0&&V<P.length;V++)T=(P.words[V]|0)+L,this.words[V]=T&67108863,L=T>>>26;if(this.length=P.length,L!==0)this.words[this.length]=L,this.length++;else if(P!==this)for(;V<P.length;V++)this.words[V]=P.words[V];return this},o.prototype.add=function(A){var T;return A.negative!==0&&this.negative===0?(A.negative=0,T=this.sub(A),A.negative^=1,T):A.negative===0&&this.negative!==0?(this.negative=0,T=A.sub(this),this.negative=1,T):this.length>A.length?this.clone().iadd(A):A.clone().iadd(this)},o.prototype.isub=function(A){if(A.negative!==0){A.negative=0;var T=this.iadd(A);return A.negative=1,T._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(A),this.negative=1,this._normSign();var P=this.cmp(A);if(P===0)return this.negative=0,this.length=1,this.words[0]=0,this;var D,L;P>0?(D=this,L=A):(D=A,L=this);for(var V=0,Z=0;Z<L.length;Z++)T=(D.words[Z]|0)-(L.words[Z]|0)+V,V=T>>26,this.words[Z]=T&67108863;for(;V!==0&&Z<D.length;Z++)T=(D.words[Z]|0)+V,V=T>>26,this.words[Z]=T&67108863;if(V===0&&Z<D.length&&D!==this)for(;Z<D.length;Z++)this.words[Z]=D.words[Z];return this.length=Math.max(this.length,Z),D!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(A){return this.clone().isub(A)};function R(H,A,T){T.negative=A.negative^H.negative;var P=H.length+A.length|0;T.length=P,P=P-1|0;var D=H.words[0]|0,L=A.words[0]|0,V=D*L,Z=V&67108863,z=V/67108864|0;T.words[0]=Z;for(var I=1;I<P;I++){for(var Q=z>>>26,me=z&67108863,ge=Math.min(I,A.length-1),Se=Math.max(0,I-H.length+1);Se<=ge;Se++){var Ce=I-Se|0;D=H.words[Ce]|0,L=A.words[Se]|0,V=D*L+me,Q+=V/67108864|0,me=V&67108863}T.words[I]=me|0,z=Q|0}return z!==0?T.words[I]=z|0:T.length--,T._strip()}var M=function(A,T,P){var D=A.words,L=T.words,V=P.words,Z=0,z,I,Q,me=D[0]|0,ge=me&8191,Se=me>>>13,Ce=D[1]|0,$e=Ce&8191,je=Ce>>>13,Ot=D[2]|0,Te=Ot&8191,It=Ot>>>13,Gn=D[3]|0,tr=Gn&8191,yt=Gn>>>13,rr=D[4]|0,rn=rr&8191,Je=rr>>>13,jc=D[5]|0,dt=jc&8191,un=jc>>>13,ni=D[6]|0,Hr=ni&8191,Lr=ni>>>13,pp=D[7]|0,jr=pp&8191,qr=pp>>>13,Ii=D[8]|0,nn=Ii&8191,Ir=Ii>>>13,ys=D[9]|0,Pr=ys&8191,Rr=ys>>>13,qc=L[0]|0,Er=qc&8191,q=qc>>>13,fe=L[1]|0,Ee=fe&8191,_e=fe>>>13,We=L[2]|0,Ge=We&8191,Ve=We>>>13,Ft=L[3]|0,Ne=Ft&8191,jt=Ft>>>13,Uo=L[4]|0,Ar=Uo&8191,$r=Uo>>>13,mp=L[5]|0,on=mp&8191,an=mp>>>13,oi=L[6]|0,cr=oi&8191,xn=oi>>>13,bh=L[7]|0,ln=bh&8191,vn=bh>>>13,ol=L[8]|0,ur=ol&8191,wn=ol>>>13,sf=L[9]|0,En=sf&8191,fn=sf>>>13;P.negative=A.negative^T.negative,P.length=19,z=Math.imul(ge,Er),I=Math.imul(ge,q),I=I+Math.imul(Se,Er)|0,Q=Math.imul(Se,q);var cf=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(cf>>>26)|0,cf&=67108863,z=Math.imul($e,Er),I=Math.imul($e,q),I=I+Math.imul(je,Er)|0,Q=Math.imul(je,q),z=z+Math.imul(ge,Ee)|0,I=I+Math.imul(ge,_e)|0,I=I+Math.imul(Se,Ee)|0,Q=Q+Math.imul(Se,_e)|0;var uf=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(uf>>>26)|0,uf&=67108863,z=Math.imul(Te,Er),I=Math.imul(Te,q),I=I+Math.imul(It,Er)|0,Q=Math.imul(It,q),z=z+Math.imul($e,Ee)|0,I=I+Math.imul($e,_e)|0,I=I+Math.imul(je,Ee)|0,Q=Q+Math.imul(je,_e)|0,z=z+Math.imul(ge,Ge)|0,I=I+Math.imul(ge,Ve)|0,I=I+Math.imul(Se,Ge)|0,Q=Q+Math.imul(Se,Ve)|0;var bs=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(bs>>>26)|0,bs&=67108863,z=Math.imul(tr,Er),I=Math.imul(tr,q),I=I+Math.imul(yt,Er)|0,Q=Math.imul(yt,q),z=z+Math.imul(Te,Ee)|0,I=I+Math.imul(Te,_e)|0,I=I+Math.imul(It,Ee)|0,Q=Q+Math.imul(It,_e)|0,z=z+Math.imul($e,Ge)|0,I=I+Math.imul($e,Ve)|0,I=I+Math.imul(je,Ge)|0,Q=Q+Math.imul(je,Ve)|0,z=z+Math.imul(ge,Ne)|0,I=I+Math.imul(ge,jt)|0,I=I+Math.imul(Se,Ne)|0,Q=Q+Math.imul(Se,jt)|0;var lf=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(lf>>>26)|0,lf&=67108863,z=Math.imul(rn,Er),I=Math.imul(rn,q),I=I+Math.imul(Je,Er)|0,Q=Math.imul(Je,q),z=z+Math.imul(tr,Ee)|0,I=I+Math.imul(tr,_e)|0,I=I+Math.imul(yt,Ee)|0,Q=Q+Math.imul(yt,_e)|0,z=z+Math.imul(Te,Ge)|0,I=I+Math.imul(Te,Ve)|0,I=I+Math.imul(It,Ge)|0,Q=Q+Math.imul(It,Ve)|0,z=z+Math.imul($e,Ne)|0,I=I+Math.imul($e,jt)|0,I=I+Math.imul(je,Ne)|0,Q=Q+Math.imul(je,jt)|0,z=z+Math.imul(ge,Ar)|0,I=I+Math.imul(ge,$r)|0,I=I+Math.imul(Se,Ar)|0,Q=Q+Math.imul(Se,$r)|0;var ff=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(ff>>>26)|0,ff&=67108863,z=Math.imul(dt,Er),I=Math.imul(dt,q),I=I+Math.imul(un,Er)|0,Q=Math.imul(un,q),z=z+Math.imul(rn,Ee)|0,I=I+Math.imul(rn,_e)|0,I=I+Math.imul(Je,Ee)|0,Q=Q+Math.imul(Je,_e)|0,z=z+Math.imul(tr,Ge)|0,I=I+Math.imul(tr,Ve)|0,I=I+Math.imul(yt,Ge)|0,Q=Q+Math.imul(yt,Ve)|0,z=z+Math.imul(Te,Ne)|0,I=I+Math.imul(Te,jt)|0,I=I+Math.imul(It,Ne)|0,Q=Q+Math.imul(It,jt)|0,z=z+Math.imul($e,Ar)|0,I=I+Math.imul($e,$r)|0,I=I+Math.imul(je,Ar)|0,Q=Q+Math.imul(je,$r)|0,z=z+Math.imul(ge,on)|0,I=I+Math.imul(ge,an)|0,I=I+Math.imul(Se,on)|0,Q=Q+Math.imul(Se,an)|0;var df=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(df>>>26)|0,df&=67108863,z=Math.imul(Hr,Er),I=Math.imul(Hr,q),I=I+Math.imul(Lr,Er)|0,Q=Math.imul(Lr,q),z=z+Math.imul(dt,Ee)|0,I=I+Math.imul(dt,_e)|0,I=I+Math.imul(un,Ee)|0,Q=Q+Math.imul(un,_e)|0,z=z+Math.imul(rn,Ge)|0,I=I+Math.imul(rn,Ve)|0,I=I+Math.imul(Je,Ge)|0,Q=Q+Math.imul(Je,Ve)|0,z=z+Math.imul(tr,Ne)|0,I=I+Math.imul(tr,jt)|0,I=I+Math.imul(yt,Ne)|0,Q=Q+Math.imul(yt,jt)|0,z=z+Math.imul(Te,Ar)|0,I=I+Math.imul(Te,$r)|0,I=I+Math.imul(It,Ar)|0,Q=Q+Math.imul(It,$r)|0,z=z+Math.imul($e,on)|0,I=I+Math.imul($e,an)|0,I=I+Math.imul(je,on)|0,Q=Q+Math.imul(je,an)|0,z=z+Math.imul(ge,cr)|0,I=I+Math.imul(ge,xn)|0,I=I+Math.imul(Se,cr)|0,Q=Q+Math.imul(Se,xn)|0;var pf=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(pf>>>26)|0,pf&=67108863,z=Math.imul(jr,Er),I=Math.imul(jr,q),I=I+Math.imul(qr,Er)|0,Q=Math.imul(qr,q),z=z+Math.imul(Hr,Ee)|0,I=I+Math.imul(Hr,_e)|0,I=I+Math.imul(Lr,Ee)|0,Q=Q+Math.imul(Lr,_e)|0,z=z+Math.imul(dt,Ge)|0,I=I+Math.imul(dt,Ve)|0,I=I+Math.imul(un,Ge)|0,Q=Q+Math.imul(un,Ve)|0,z=z+Math.imul(rn,Ne)|0,I=I+Math.imul(rn,jt)|0,I=I+Math.imul(Je,Ne)|0,Q=Q+Math.imul(Je,jt)|0,z=z+Math.imul(tr,Ar)|0,I=I+Math.imul(tr,$r)|0,I=I+Math.imul(yt,Ar)|0,Q=Q+Math.imul(yt,$r)|0,z=z+Math.imul(Te,on)|0,I=I+Math.imul(Te,an)|0,I=I+Math.imul(It,on)|0,Q=Q+Math.imul(It,an)|0,z=z+Math.imul($e,cr)|0,I=I+Math.imul($e,xn)|0,I=I+Math.imul(je,cr)|0,Q=Q+Math.imul(je,xn)|0,z=z+Math.imul(ge,ln)|0,I=I+Math.imul(ge,vn)|0,I=I+Math.imul(Se,ln)|0,Q=Q+Math.imul(Se,vn)|0;var mf=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(mf>>>26)|0,mf&=67108863,z=Math.imul(nn,Er),I=Math.imul(nn,q),I=I+Math.imul(Ir,Er)|0,Q=Math.imul(Ir,q),z=z+Math.imul(jr,Ee)|0,I=I+Math.imul(jr,_e)|0,I=I+Math.imul(qr,Ee)|0,Q=Q+Math.imul(qr,_e)|0,z=z+Math.imul(Hr,Ge)|0,I=I+Math.imul(Hr,Ve)|0,I=I+Math.imul(Lr,Ge)|0,Q=Q+Math.imul(Lr,Ve)|0,z=z+Math.imul(dt,Ne)|0,I=I+Math.imul(dt,jt)|0,I=I+Math.imul(un,Ne)|0,Q=Q+Math.imul(un,jt)|0,z=z+Math.imul(rn,Ar)|0,I=I+Math.imul(rn,$r)|0,I=I+Math.imul(Je,Ar)|0,Q=Q+Math.imul(Je,$r)|0,z=z+Math.imul(tr,on)|0,I=I+Math.imul(tr,an)|0,I=I+Math.imul(yt,on)|0,Q=Q+Math.imul(yt,an)|0,z=z+Math.imul(Te,cr)|0,I=I+Math.imul(Te,xn)|0,I=I+Math.imul(It,cr)|0,Q=Q+Math.imul(It,xn)|0,z=z+Math.imul($e,ln)|0,I=I+Math.imul($e,vn)|0,I=I+Math.imul(je,ln)|0,Q=Q+Math.imul(je,vn)|0,z=z+Math.imul(ge,ur)|0,I=I+Math.imul(ge,wn)|0,I=I+Math.imul(Se,ur)|0,Q=Q+Math.imul(Se,wn)|0;var Ao=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(Ao>>>26)|0,Ao&=67108863,z=Math.imul(Pr,Er),I=Math.imul(Pr,q),I=I+Math.imul(Rr,Er)|0,Q=Math.imul(Rr,q),z=z+Math.imul(nn,Ee)|0,I=I+Math.imul(nn,_e)|0,I=I+Math.imul(Ir,Ee)|0,Q=Q+Math.imul(Ir,_e)|0,z=z+Math.imul(jr,Ge)|0,I=I+Math.imul(jr,Ve)|0,I=I+Math.imul(qr,Ge)|0,Q=Q+Math.imul(qr,Ve)|0,z=z+Math.imul(Hr,Ne)|0,I=I+Math.imul(Hr,jt)|0,I=I+Math.imul(Lr,Ne)|0,Q=Q+Math.imul(Lr,jt)|0,z=z+Math.imul(dt,Ar)|0,I=I+Math.imul(dt,$r)|0,I=I+Math.imul(un,Ar)|0,Q=Q+Math.imul(un,$r)|0,z=z+Math.imul(rn,on)|0,I=I+Math.imul(rn,an)|0,I=I+Math.imul(Je,on)|0,Q=Q+Math.imul(Je,an)|0,z=z+Math.imul(tr,cr)|0,I=I+Math.imul(tr,xn)|0,I=I+Math.imul(yt,cr)|0,Q=Q+Math.imul(yt,xn)|0,z=z+Math.imul(Te,ln)|0,I=I+Math.imul(Te,vn)|0,I=I+Math.imul(It,ln)|0,Q=Q+Math.imul(It,vn)|0,z=z+Math.imul($e,ur)|0,I=I+Math.imul($e,wn)|0,I=I+Math.imul(je,ur)|0,Q=Q+Math.imul(je,wn)|0,z=z+Math.imul(ge,En)|0,I=I+Math.imul(ge,fn)|0,I=I+Math.imul(Se,En)|0,Q=Q+Math.imul(Se,fn)|0;var gs=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(gs>>>26)|0,gs&=67108863,z=Math.imul(Pr,Ee),I=Math.imul(Pr,_e),I=I+Math.imul(Rr,Ee)|0,Q=Math.imul(Rr,_e),z=z+Math.imul(nn,Ge)|0,I=I+Math.imul(nn,Ve)|0,I=I+Math.imul(Ir,Ge)|0,Q=Q+Math.imul(Ir,Ve)|0,z=z+Math.imul(jr,Ne)|0,I=I+Math.imul(jr,jt)|0,I=I+Math.imul(qr,Ne)|0,Q=Q+Math.imul(qr,jt)|0,z=z+Math.imul(Hr,Ar)|0,I=I+Math.imul(Hr,$r)|0,I=I+Math.imul(Lr,Ar)|0,Q=Q+Math.imul(Lr,$r)|0,z=z+Math.imul(dt,on)|0,I=I+Math.imul(dt,an)|0,I=I+Math.imul(un,on)|0,Q=Q+Math.imul(un,an)|0,z=z+Math.imul(rn,cr)|0,I=I+Math.imul(rn,xn)|0,I=I+Math.imul(Je,cr)|0,Q=Q+Math.imul(Je,xn)|0,z=z+Math.imul(tr,ln)|0,I=I+Math.imul(tr,vn)|0,I=I+Math.imul(yt,ln)|0,Q=Q+Math.imul(yt,vn)|0,z=z+Math.imul(Te,ur)|0,I=I+Math.imul(Te,wn)|0,I=I+Math.imul(It,ur)|0,Q=Q+Math.imul(It,wn)|0,z=z+Math.imul($e,En)|0,I=I+Math.imul($e,fn)|0,I=I+Math.imul(je,En)|0,Q=Q+Math.imul(je,fn)|0;var Pi=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,z=Math.imul(Pr,Ge),I=Math.imul(Pr,Ve),I=I+Math.imul(Rr,Ge)|0,Q=Math.imul(Rr,Ve),z=z+Math.imul(nn,Ne)|0,I=I+Math.imul(nn,jt)|0,I=I+Math.imul(Ir,Ne)|0,Q=Q+Math.imul(Ir,jt)|0,z=z+Math.imul(jr,Ar)|0,I=I+Math.imul(jr,$r)|0,I=I+Math.imul(qr,Ar)|0,Q=Q+Math.imul(qr,$r)|0,z=z+Math.imul(Hr,on)|0,I=I+Math.imul(Hr,an)|0,I=I+Math.imul(Lr,on)|0,Q=Q+Math.imul(Lr,an)|0,z=z+Math.imul(dt,cr)|0,I=I+Math.imul(dt,xn)|0,I=I+Math.imul(un,cr)|0,Q=Q+Math.imul(un,xn)|0,z=z+Math.imul(rn,ln)|0,I=I+Math.imul(rn,vn)|0,I=I+Math.imul(Je,ln)|0,Q=Q+Math.imul(Je,vn)|0,z=z+Math.imul(tr,ur)|0,I=I+Math.imul(tr,wn)|0,I=I+Math.imul(yt,ur)|0,Q=Q+Math.imul(yt,wn)|0,z=z+Math.imul(Te,En)|0,I=I+Math.imul(Te,fn)|0,I=I+Math.imul(It,En)|0,Q=Q+Math.imul(It,fn)|0;var hf=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(hf>>>26)|0,hf&=67108863,z=Math.imul(Pr,Ne),I=Math.imul(Pr,jt),I=I+Math.imul(Rr,Ne)|0,Q=Math.imul(Rr,jt),z=z+Math.imul(nn,Ar)|0,I=I+Math.imul(nn,$r)|0,I=I+Math.imul(Ir,Ar)|0,Q=Q+Math.imul(Ir,$r)|0,z=z+Math.imul(jr,on)|0,I=I+Math.imul(jr,an)|0,I=I+Math.imul(qr,on)|0,Q=Q+Math.imul(qr,an)|0,z=z+Math.imul(Hr,cr)|0,I=I+Math.imul(Hr,xn)|0,I=I+Math.imul(Lr,cr)|0,Q=Q+Math.imul(Lr,xn)|0,z=z+Math.imul(dt,ln)|0,I=I+Math.imul(dt,vn)|0,I=I+Math.imul(un,ln)|0,Q=Q+Math.imul(un,vn)|0,z=z+Math.imul(rn,ur)|0,I=I+Math.imul(rn,wn)|0,I=I+Math.imul(Je,ur)|0,Q=Q+Math.imul(Je,wn)|0,z=z+Math.imul(tr,En)|0,I=I+Math.imul(tr,fn)|0,I=I+Math.imul(yt,En)|0,Q=Q+Math.imul(yt,fn)|0;var ac=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(ac>>>26)|0,ac&=67108863,z=Math.imul(Pr,Ar),I=Math.imul(Pr,$r),I=I+Math.imul(Rr,Ar)|0,Q=Math.imul(Rr,$r),z=z+Math.imul(nn,on)|0,I=I+Math.imul(nn,an)|0,I=I+Math.imul(Ir,on)|0,Q=Q+Math.imul(Ir,an)|0,z=z+Math.imul(jr,cr)|0,I=I+Math.imul(jr,xn)|0,I=I+Math.imul(qr,cr)|0,Q=Q+Math.imul(qr,xn)|0,z=z+Math.imul(Hr,ln)|0,I=I+Math.imul(Hr,vn)|0,I=I+Math.imul(Lr,ln)|0,Q=Q+Math.imul(Lr,vn)|0,z=z+Math.imul(dt,ur)|0,I=I+Math.imul(dt,wn)|0,I=I+Math.imul(un,ur)|0,Q=Q+Math.imul(un,wn)|0,z=z+Math.imul(rn,En)|0,I=I+Math.imul(rn,fn)|0,I=I+Math.imul(Je,En)|0,Q=Q+Math.imul(Je,fn)|0;var $c=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+($c>>>26)|0,$c&=67108863,z=Math.imul(Pr,on),I=Math.imul(Pr,an),I=I+Math.imul(Rr,on)|0,Q=Math.imul(Rr,an),z=z+Math.imul(nn,cr)|0,I=I+Math.imul(nn,xn)|0,I=I+Math.imul(Ir,cr)|0,Q=Q+Math.imul(Ir,xn)|0,z=z+Math.imul(jr,ln)|0,I=I+Math.imul(jr,vn)|0,I=I+Math.imul(qr,ln)|0,Q=Q+Math.imul(qr,vn)|0,z=z+Math.imul(Hr,ur)|0,I=I+Math.imul(Hr,wn)|0,I=I+Math.imul(Lr,ur)|0,Q=Q+Math.imul(Lr,wn)|0,z=z+Math.imul(dt,En)|0,I=I+Math.imul(dt,fn)|0,I=I+Math.imul(un,En)|0,Q=Q+Math.imul(un,fn)|0;var Ab=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(Ab>>>26)|0,Ab&=67108863,z=Math.imul(Pr,cr),I=Math.imul(Pr,xn),I=I+Math.imul(Rr,cr)|0,Q=Math.imul(Rr,xn),z=z+Math.imul(nn,ln)|0,I=I+Math.imul(nn,vn)|0,I=I+Math.imul(Ir,ln)|0,Q=Q+Math.imul(Ir,vn)|0,z=z+Math.imul(jr,ur)|0,I=I+Math.imul(jr,wn)|0,I=I+Math.imul(qr,ur)|0,Q=Q+Math.imul(qr,wn)|0,z=z+Math.imul(Hr,En)|0,I=I+Math.imul(Hr,fn)|0,I=I+Math.imul(Lr,En)|0,Q=Q+Math.imul(Lr,fn)|0;var hp=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(hp>>>26)|0,hp&=67108863,z=Math.imul(Pr,ln),I=Math.imul(Pr,vn),I=I+Math.imul(Rr,ln)|0,Q=Math.imul(Rr,vn),z=z+Math.imul(nn,ur)|0,I=I+Math.imul(nn,wn)|0,I=I+Math.imul(Ir,ur)|0,Q=Q+Math.imul(Ir,wn)|0,z=z+Math.imul(jr,En)|0,I=I+Math.imul(jr,fn)|0,I=I+Math.imul(qr,En)|0,Q=Q+Math.imul(qr,fn)|0;var yf=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(yf>>>26)|0,yf&=67108863,z=Math.imul(Pr,ur),I=Math.imul(Pr,wn),I=I+Math.imul(Rr,ur)|0,Q=Math.imul(Rr,wn),z=z+Math.imul(nn,En)|0,I=I+Math.imul(nn,fn)|0,I=I+Math.imul(Ir,En)|0,Q=Q+Math.imul(Ir,fn)|0;var Sb=(Z+z|0)+((I&8191)<<13)|0;Z=(Q+(I>>>13)|0)+(Sb>>>26)|0,Sb&=67108863,z=Math.imul(Pr,En),I=Math.imul(Pr,fn),I=I+Math.imul(Rr,En)|0,Q=Math.imul(Rr,fn);var f8=(Z+z|0)+((I&8191)<<13)|0;return Z=(Q+(I>>>13)|0)+(f8>>>26)|0,f8&=67108863,V[0]=cf,V[1]=uf,V[2]=bs,V[3]=lf,V[4]=ff,V[5]=df,V[6]=pf,V[7]=mf,V[8]=Ao,V[9]=gs,V[10]=Pi,V[11]=hf,V[12]=ac,V[13]=$c,V[14]=Ab,V[15]=hp,V[16]=yf,V[17]=Sb,V[18]=f8,Z!==0&&(V[19]=Z,P.length++),P};Math.imul||(M=R);function U(H,A,T){T.negative=A.negative^H.negative,T.length=H.length+A.length;for(var P=0,D=0,L=0;L<T.length-1;L++){var V=D;D=0;for(var Z=P&67108863,z=Math.min(L,A.length-1),I=Math.max(0,L-H.length+1);I<=z;I++){var Q=L-I,me=H.words[Q]|0,ge=A.words[I]|0,Se=me*ge,Ce=Se&67108863;V=V+(Se/67108864|0)|0,Ce=Ce+Z|0,Z=Ce&67108863,V=V+(Ce>>>26)|0,D+=V>>>26,V&=67108863}T.words[L]=Z,P=V,V=D}return P!==0?T.words[L]=P:T.length--,T._strip()}function O(H,A,T){return U(H,A,T)}o.prototype.mulTo=function(A,T){var P,D=this.length+A.length;return this.length===10&&A.length===10?P=M(this,A,T):D<63?P=R(this,A,T):D<1024?P=U(this,A,T):P=O(this,A,T),P};function N(H,A){this.x=H,this.y=A}N.prototype.makeRBT=function(A){for(var T=new Array(A),P=o.prototype._countBits(A)-1,D=0;D<A;D++)T[D]=this.revBin(D,P,A);return T},N.prototype.revBin=function(A,T,P){if(A===0||A===P-1)return A;for(var D=0,L=0;L<T;L++)D|=(A&1)<<T-L-1,A>>=1;return D},N.prototype.permute=function(A,T,P,D,L,V){for(var Z=0;Z<V;Z++)D[Z]=T[A[Z]],L[Z]=P[A[Z]]},N.prototype.transform=function(A,T,P,D,L,V){this.permute(V,A,T,P,D,L);for(var Z=1;Z<L;Z<<=1)for(var z=Z<<1,I=Math.cos(2*Math.PI/z),Q=Math.sin(2*Math.PI/z),me=0;me<L;me+=z)for(var ge=I,Se=Q,Ce=0;Ce<Z;Ce++){var $e=P[me+Ce],je=D[me+Ce],Ot=P[me+Ce+Z],Te=D[me+Ce+Z],It=ge*Ot-Se*Te;Te=ge*Te+Se*Ot,Ot=It,P[me+Ce]=$e+Ot,D[me+Ce]=je+Te,P[me+Ce+Z]=$e-Ot,D[me+Ce+Z]=je-Te,Ce!==z&&(It=I*ge-Q*Se,Se=I*Se+Q*ge,ge=It)}},N.prototype.guessLen13b=function(A,T){var P=Math.max(T,A)|1,D=P&1,L=0;for(P=P/2|0;P;P=P>>>1)L++;return 1<<L+1+D},N.prototype.conjugate=function(A,T,P){if(!(P<=1))for(var D=0;D<P/2;D++){var L=A[D];A[D]=A[P-D-1],A[P-D-1]=L,L=T[D],T[D]=-T[P-D-1],T[P-D-1]=-L}},N.prototype.normalize13b=function(A,T){for(var P=0,D=0;D<T/2;D++){var L=Math.round(A[2*D+1]/T)*8192+Math.round(A[2*D]/T)+P;A[D]=L&67108863,L<67108864?P=0:P=L/67108864|0}return A},N.prototype.convert13b=function(A,T,P,D){for(var L=0,V=0;V<T;V++)L=L+(A[V]|0),P[2*V]=L&8191,L=L>>>13,P[2*V+1]=L&8191,L=L>>>13;for(V=2*T;V<D;++V)P[V]=0;r(L===0),r((L&-8192)===0)},N.prototype.stub=function(A){for(var T=new Array(A),P=0;P<A;P++)T[P]=0;return T},N.prototype.mulp=function(A,T,P){var D=2*this.guessLen13b(A.length,T.length),L=this.makeRBT(D),V=this.stub(D),Z=new Array(D),z=new Array(D),I=new Array(D),Q=new Array(D),me=new Array(D),ge=new Array(D),Se=P.words;Se.length=D,this.convert13b(A.words,A.length,Z,D),this.convert13b(T.words,T.length,Q,D),this.transform(Z,V,z,I,D,L),this.transform(Q,V,me,ge,D,L);for(var Ce=0;Ce<D;Ce++){var $e=z[Ce]*me[Ce]-I[Ce]*ge[Ce];I[Ce]=z[Ce]*ge[Ce]+I[Ce]*me[Ce],z[Ce]=$e}return this.conjugate(z,I,D),this.transform(z,I,Se,V,D,L),this.conjugate(Se,V,D),this.normalize13b(Se,D),P.negative=A.negative^T.negative,P.length=A.length+T.length,P._strip()},o.prototype.mul=function(A){var T=new o(null);return T.words=new Array(this.length+A.length),this.mulTo(A,T)},o.prototype.mulf=function(A){var T=new o(null);return T.words=new Array(this.length+A.length),O(this,A,T)},o.prototype.imul=function(A){return this.clone().mulTo(A,this)},o.prototype.imuln=function(A){var T=A<0;T&&(A=-A),r(typeof A==\"number\"),r(A<67108864);for(var P=0,D=0;D<this.length;D++){var L=(this.words[D]|0)*A,V=(L&67108863)+(P&67108863);P>>=26,P+=L/67108864|0,P+=V>>>26,this.words[D]=V&67108863}return P!==0&&(this.words[D]=P,this.length++),this.length=A===0?1:this.length,T?this.ineg():this},o.prototype.muln=function(A){return this.clone().imuln(A)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(A){var T=B(A);if(T.length===0)return new o(1);for(var P=this,D=0;D<T.length&&T[D]===0;D++,P=P.sqr());if(++D<T.length)for(var L=P.sqr();D<T.length;D++,L=L.sqr())T[D]!==0&&(P=P.mul(L));return P},o.prototype.iushln=function(A){r(typeof A==\"number\"&&A>=0);var T=A%26,P=(A-T)/26,D=67108863>>>26-T<<26-T,L;if(T!==0){var V=0;for(L=0;L<this.length;L++){var Z=this.words[L]&D,z=(this.words[L]|0)-Z<<T;this.words[L]=z|V,V=Z>>>26-T}V&&(this.words[L]=V,this.length++)}if(P!==0){for(L=this.length-1;L>=0;L--)this.words[L+P]=this.words[L];for(L=0;L<P;L++)this.words[L]=0;this.length+=P}return this._strip()},o.prototype.ishln=function(A){return r(this.negative===0),this.iushln(A)},o.prototype.iushrn=function(A,T,P){r(typeof A==\"number\"&&A>=0);var D;T?D=(T-T%26)/26:D=0;var L=A%26,V=Math.min((A-L)/26,this.length),Z=67108863^67108863>>>L<<L,z=P;if(D-=V,D=Math.max(0,D),z){for(var I=0;I<V;I++)z.words[I]=this.words[I];z.length=V}if(V!==0)if(this.length>V)for(this.length-=V,I=0;I<this.length;I++)this.words[I]=this.words[I+V];else this.words[0]=0,this.length=1;var Q=0;for(I=this.length-1;I>=0&&(Q!==0||I>=D);I--){var me=this.words[I]|0;this.words[I]=Q<<26-L|me>>>L,Q=me&Z}return z&&Q!==0&&(z.words[z.length++]=Q),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(A,T,P){return r(this.negative===0),this.iushrn(A,T,P)},o.prototype.shln=function(A){return this.clone().ishln(A)},o.prototype.ushln=function(A){return this.clone().iushln(A)},o.prototype.shrn=function(A){return this.clone().ishrn(A)},o.prototype.ushrn=function(A){return this.clone().iushrn(A)},o.prototype.testn=function(A){r(typeof A==\"number\"&&A>=0);var T=A%26,P=(A-T)/26,D=1<<T;if(this.length<=P)return!1;var L=this.words[P];return!!(L&D)},o.prototype.imaskn=function(A){r(typeof A==\"number\"&&A>=0);var T=A%26,P=(A-T)/26;if(r(this.negative===0,\"imaskn works only with positive numbers\"),this.length<=P)return this;if(T!==0&&P++,this.length=Math.min(P,this.length),T!==0){var D=67108863^67108863>>>T<<T;this.words[this.length-1]&=D}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.maskn=function(A){return this.clone().imaskn(A)},o.prototype.iaddn=function(A){return r(typeof A==\"number\"),r(A<67108864),A<0?this.isubn(-A):this.negative!==0?this.length===1&&(this.words[0]|0)<=A?(this.words[0]=A-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(A),this.negative=1,this):this._iaddn(A)},o.prototype._iaddn=function(A){this.words[0]+=A;for(var T=0;T<this.length&&this.words[T]>=67108864;T++)this.words[T]-=67108864,T===this.length-1?this.words[T+1]=1:this.words[T+1]++;return this.length=Math.max(this.length,T+1),this},o.prototype.isubn=function(A){if(r(typeof A==\"number\"),r(A<67108864),A<0)return this.iaddn(-A);if(this.negative!==0)return this.negative=0,this.iaddn(A),this.negative=1,this;if(this.words[0]-=A,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T=0;T<this.length&&this.words[T]<0;T++)this.words[T]+=67108864,this.words[T+1]-=1;return this._strip()},o.prototype.addn=function(A){return this.clone().iaddn(A)},o.prototype.subn=function(A){return this.clone().isubn(A)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(A,T,P){var D=A.length+P,L;this._expand(D);var V,Z=0;for(L=0;L<A.length;L++){V=(this.words[L+P]|0)+Z;var z=(A.words[L]|0)*T;V-=z&67108863,Z=(V>>26)-(z/67108864|0),this.words[L+P]=V&67108863}for(;L<this.length-P;L++)V=(this.words[L+P]|0)+Z,Z=V>>26,this.words[L+P]=V&67108863;if(Z===0)return this._strip();for(r(Z===-1),Z=0,L=0;L<this.length;L++)V=-(this.words[L]|0)+Z,Z=V>>26,this.words[L]=V&67108863;return this.negative=1,this._strip()},o.prototype._wordDiv=function(A,T){var P=this.length-A.length,D=this.clone(),L=A,V=L.words[L.length-1]|0,Z=this._countBits(V);P=26-Z,P!==0&&(L=L.ushln(P),D.iushln(P),V=L.words[L.length-1]|0);var z=D.length-L.length,I;if(T!==\"mod\"){I=new o(null),I.length=z+1,I.words=new Array(I.length);for(var Q=0;Q<I.length;Q++)I.words[Q]=0}var me=D.clone()._ishlnsubmul(L,1,z);me.negative===0&&(D=me,I&&(I.words[z]=1));for(var ge=z-1;ge>=0;ge--){var Se=(D.words[L.length+ge]|0)*67108864+(D.words[L.length+ge-1]|0);for(Se=Math.min(Se/V|0,67108863),D._ishlnsubmul(L,Se,ge);D.negative!==0;)Se--,D.negative=0,D._ishlnsubmul(L,1,ge),D.isZero()||(D.negative^=1);I&&(I.words[ge]=Se)}return I&&I._strip(),D._strip(),T!==\"div\"&&P!==0&&D.iushrn(P),{div:I||null,mod:D}},o.prototype.divmod=function(A,T,P){if(r(!A.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var D,L,V;return this.negative!==0&&A.negative===0?(V=this.neg().divmod(A,T),T!==\"mod\"&&(D=V.div.neg()),T!==\"div\"&&(L=V.mod.neg(),P&&L.negative!==0&&L.iadd(A)),{div:D,mod:L}):this.negative===0&&A.negative!==0?(V=this.divmod(A.neg(),T),T!==\"mod\"&&(D=V.div.neg()),{div:D,mod:V.mod}):(this.negative&A.negative)!==0?(V=this.neg().divmod(A.neg(),T),T!==\"div\"&&(L=V.mod.neg(),P&&L.negative!==0&&L.isub(A)),{div:V.div,mod:L}):A.length>this.length||this.cmp(A)<0?{div:new o(0),mod:this}:A.length===1?T===\"div\"?{div:this.divn(A.words[0]),mod:null}:T===\"mod\"?{div:null,mod:new o(this.modrn(A.words[0]))}:{div:this.divn(A.words[0]),mod:new o(this.modrn(A.words[0]))}:this._wordDiv(A,T)},o.prototype.div=function(A){return this.divmod(A,\"div\",!1).div},o.prototype.mod=function(A){return this.divmod(A,\"mod\",!1).mod},o.prototype.umod=function(A){return this.divmod(A,\"mod\",!0).mod},o.prototype.divRound=function(A){var T=this.divmod(A);if(T.mod.isZero())return T.div;var P=T.div.negative!==0?T.mod.isub(A):T.mod,D=A.ushrn(1),L=A.andln(1),V=P.cmp(D);return V<0||L===1&&V===0?T.div:T.div.negative!==0?T.div.isubn(1):T.div.iaddn(1)},o.prototype.modrn=function(A){var T=A<0;T&&(A=-A),r(A<=67108863);for(var P=(1<<26)%A,D=0,L=this.length-1;L>=0;L--)D=(P*D+(this.words[L]|0))%A;return T?-D:D},o.prototype.modn=function(A){return this.modrn(A)},o.prototype.idivn=function(A){var T=A<0;T&&(A=-A),r(A<=67108863);for(var P=0,D=this.length-1;D>=0;D--){var L=(this.words[D]|0)+P*67108864;this.words[D]=L/A|0,P=L%A}return this._strip(),T?this.ineg():this},o.prototype.divn=function(A){return this.clone().idivn(A)},o.prototype.egcd=function(A){r(A.negative===0),r(!A.isZero());var T=this,P=A.clone();T.negative!==0?T=T.umod(A):T=T.clone();for(var D=new o(1),L=new o(0),V=new o(0),Z=new o(1),z=0;T.isEven()&&P.isEven();)T.iushrn(1),P.iushrn(1),++z;for(var I=P.clone(),Q=T.clone();!T.isZero();){for(var me=0,ge=1;(T.words[0]&ge)===0&&me<26;++me,ge<<=1);if(me>0)for(T.iushrn(me);me-- >0;)(D.isOdd()||L.isOdd())&&(D.iadd(I),L.isub(Q)),D.iushrn(1),L.iushrn(1);for(var Se=0,Ce=1;(P.words[0]&Ce)===0&&Se<26;++Se,Ce<<=1);if(Se>0)for(P.iushrn(Se);Se-- >0;)(V.isOdd()||Z.isOdd())&&(V.iadd(I),Z.isub(Q)),V.iushrn(1),Z.iushrn(1);T.cmp(P)>=0?(T.isub(P),D.isub(V),L.isub(Z)):(P.isub(T),V.isub(D),Z.isub(L))}return{a:V,b:Z,gcd:P.iushln(z)}},o.prototype._invmp=function(A){r(A.negative===0),r(!A.isZero());var T=this,P=A.clone();T.negative!==0?T=T.umod(A):T=T.clone();for(var D=new o(1),L=new o(0),V=P.clone();T.cmpn(1)>0&&P.cmpn(1)>0;){for(var Z=0,z=1;(T.words[0]&z)===0&&Z<26;++Z,z<<=1);if(Z>0)for(T.iushrn(Z);Z-- >0;)D.isOdd()&&D.iadd(V),D.iushrn(1);for(var I=0,Q=1;(P.words[0]&Q)===0&&I<26;++I,Q<<=1);if(I>0)for(P.iushrn(I);I-- >0;)L.isOdd()&&L.iadd(V),L.iushrn(1);T.cmp(P)>=0?(T.isub(P),D.isub(L)):(P.isub(T),L.isub(D))}var me;return T.cmpn(1)===0?me=D:me=L,me.cmpn(0)<0&&me.iadd(A),me},o.prototype.gcd=function(A){if(this.isZero())return A.abs();if(A.isZero())return this.abs();var T=this.clone(),P=A.clone();T.negative=0,P.negative=0;for(var D=0;T.isEven()&&P.isEven();D++)T.iushrn(1),P.iushrn(1);do{for(;T.isEven();)T.iushrn(1);for(;P.isEven();)P.iushrn(1);var L=T.cmp(P);if(L<0){var V=T;T=P,P=V}else if(L===0||P.cmpn(1)===0)break;T.isub(P)}while(!0);return P.iushln(D)},o.prototype.invm=function(A){return this.egcd(A).a.umod(A)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(A){return this.words[0]&A},o.prototype.bincn=function(A){r(typeof A==\"number\");var T=A%26,P=(A-T)/26,D=1<<T;if(this.length<=P)return this._expand(P+1),this.words[P]|=D,this;for(var L=D,V=P;L!==0&&V<this.length;V++){var Z=this.words[V]|0;Z+=L,L=Z>>>26,Z&=67108863,this.words[V]=Z}return L!==0&&(this.words[V]=L,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(A){var T=A<0;if(this.negative!==0&&!T)return-1;if(this.negative===0&&T)return 1;this._strip();var P;if(this.length>1)P=1;else{T&&(A=-A),r(A<=67108863,\"Number is too big\");var D=this.words[0]|0;P=D===A?0:D<A?-1:1}return this.negative!==0?-P|0:P},o.prototype.cmp=function(A){if(this.negative!==0&&A.negative===0)return-1;if(this.negative===0&&A.negative!==0)return 1;var T=this.ucmp(A);return this.negative!==0?-T|0:T},o.prototype.ucmp=function(A){if(this.length>A.length)return 1;if(this.length<A.length)return-1;for(var T=0,P=this.length-1;P>=0;P--){var D=this.words[P]|0,L=A.words[P]|0;if(D!==L){D<L?T=-1:D>L&&(T=1);break}}return T},o.prototype.gtn=function(A){return this.cmpn(A)===1},o.prototype.gt=function(A){return this.cmp(A)===1},o.prototype.gten=function(A){return this.cmpn(A)>=0},o.prototype.gte=function(A){return this.cmp(A)>=0},o.prototype.ltn=function(A){return this.cmpn(A)===-1},o.prototype.lt=function(A){return this.cmp(A)===-1},o.prototype.lten=function(A){return this.cmpn(A)<=0},o.prototype.lte=function(A){return this.cmp(A)<=0},o.prototype.eqn=function(A){return this.cmpn(A)===0},o.prototype.eq=function(A){return this.cmp(A)===0},o.red=function(A){return new ie(A)},o.prototype.toRed=function(A){return r(!this.red,\"Already a number in reduction context\"),r(this.negative===0,\"red works only with positives\"),A.convertTo(this)._forceRed(A)},o.prototype.fromRed=function(){return r(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},o.prototype._forceRed=function(A){return this.red=A,this},o.prototype.forceRed=function(A){return r(!this.red,\"Already a number in reduction context\"),this._forceRed(A)},o.prototype.redAdd=function(A){return r(this.red,\"redAdd works only with red numbers\"),this.red.add(this,A)},o.prototype.redIAdd=function(A){return r(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,A)},o.prototype.redSub=function(A){return r(this.red,\"redSub works only with red numbers\"),this.red.sub(this,A)},o.prototype.redISub=function(A){return r(this.red,\"redISub works only with red numbers\"),this.red.isub(this,A)},o.prototype.redShl=function(A){return r(this.red,\"redShl works only with red numbers\"),this.red.shl(this,A)},o.prototype.redMul=function(A){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,A),this.red.mul(this,A)},o.prototype.redIMul=function(A){return r(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,A),this.red.imul(this,A)},o.prototype.redSqr=function(){return r(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(A){return r(this.red&&!A.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,A)};var j={k256:null,p224:null,p192:null,p25519:null};function K(H,A){this.name=H,this.p=new o(A,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var A=new o(null);return A.words=new Array(Math.ceil(this.n/13)),A},K.prototype.ireduce=function(A){var T=A,P;do this.split(T,this.tmp),T=this.imulK(T),T=T.iadd(this.tmp),P=T.bitLength();while(P>this.n);var D=P<this.n?-1:T.ucmp(this.p);return D===0?(T.words[0]=0,T.length=1):D>0?T.isub(this.p):T.strip!==void 0?T.strip():T._strip(),T},K.prototype.split=function(A,T){A.iushrn(this.n,0,T)},K.prototype.imulK=function(A){return A.imul(this.k)};function G(){K.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}n(G,K),G.prototype.split=function(A,T){for(var P=4194303,D=Math.min(A.length,9),L=0;L<D;L++)T.words[L]=A.words[L];if(T.length=D,A.length<=9){A.words[0]=0,A.length=1;return}var V=A.words[9];for(T.words[T.length++]=V&P,L=10;L<A.length;L++){var Z=A.words[L]|0;A.words[L-10]=(Z&P)<<4|V>>>22,V=Z}V>>>=22,A.words[L-10]=V,V===0&&A.length>10?A.length-=10:A.length-=9},G.prototype.imulK=function(A){A.words[A.length]=0,A.words[A.length+1]=0,A.length+=2;for(var T=0,P=0;P<A.length;P++){var D=A.words[P]|0;T+=D*977,A.words[P]=T&67108863,T=D*64+(T/67108864|0)}return A.words[A.length-1]===0&&(A.length--,A.words[A.length-1]===0&&A.length--),A};function J(){K.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}n(J,K);function Y(){K.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}n(Y,K);function W(){K.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}n(W,K),W.prototype.imulK=function(A){for(var T=0,P=0;P<A.length;P++){var D=(A.words[P]|0)*19+T,L=D&67108863;D>>>=26,A.words[P]=L,T=D}return T!==0&&(A.words[A.length++]=T),A},o._prime=function(A){if(j[A])return j[A];var T;if(A===\"k256\")T=new G;else if(A===\"p224\")T=new J;else if(A===\"p192\")T=new Y;else if(A===\"p25519\")T=new W;else throw new Error(\"Unknown prime \"+A);return j[A]=T,T};function ie(H){if(typeof H==\"string\"){var A=o._prime(H);this.m=A.p,this.prime=A}else r(H.gtn(1),\"modulus must be greater than 1\"),this.m=H,this.prime=null}ie.prototype._verify1=function(A){r(A.negative===0,\"red works only with positives\"),r(A.red,\"red works only with red numbers\")},ie.prototype._verify2=function(A,T){r((A.negative|T.negative)===0,\"red works only with positives\"),r(A.red&&A.red===T.red,\"red works only with red numbers\")},ie.prototype.imod=function(A){return this.prime?this.prime.ireduce(A)._forceRed(this):(m(A,A.umod(this.m)._forceRed(this)),A)},ie.prototype.neg=function(A){return A.isZero()?A.clone():this.m.sub(A)._forceRed(this)},ie.prototype.add=function(A,T){this._verify2(A,T);var P=A.add(T);return P.cmp(this.m)>=0&&P.isub(this.m),P._forceRed(this)},ie.prototype.iadd=function(A,T){this._verify2(A,T);var P=A.iadd(T);return P.cmp(this.m)>=0&&P.isub(this.m),P},ie.prototype.sub=function(A,T){this._verify2(A,T);var P=A.sub(T);return P.cmpn(0)<0&&P.iadd(this.m),P._forceRed(this)},ie.prototype.isub=function(A,T){this._verify2(A,T);var P=A.isub(T);return P.cmpn(0)<0&&P.iadd(this.m),P},ie.prototype.shl=function(A,T){return this._verify1(A),this.imod(A.ushln(T))},ie.prototype.imul=function(A,T){return this._verify2(A,T),this.imod(A.imul(T))},ie.prototype.mul=function(A,T){return this._verify2(A,T),this.imod(A.mul(T))},ie.prototype.isqr=function(A){return this.imul(A,A.clone())},ie.prototype.sqr=function(A){return this.mul(A,A)},ie.prototype.sqrt=function(A){if(A.isZero())return A.clone();var T=this.m.andln(3);if(r(T%2===1),T===3){var P=this.m.add(new o(1)).iushrn(2);return this.pow(A,P)}for(var D=this.m.subn(1),L=0;!D.isZero()&&D.andln(1)===0;)L++,D.iushrn(1);r(!D.isZero());var V=new o(1).toRed(this),Z=V.redNeg(),z=this.m.subn(1).iushrn(1),I=this.m.bitLength();for(I=new o(2*I*I).toRed(this);this.pow(I,z).cmp(Z)!==0;)I.redIAdd(Z);for(var Q=this.pow(I,D),me=this.pow(A,D.addn(1).iushrn(1)),ge=this.pow(A,D),Se=L;ge.cmp(V)!==0;){for(var Ce=ge,$e=0;Ce.cmp(V)!==0;$e++)Ce=Ce.redSqr();r($e<Se);var je=this.pow(Q,new o(1).iushln(Se-$e-1));me=me.redMul(je),Q=je.redSqr(),ge=ge.redMul(Q),Se=$e}return me},ie.prototype.invm=function(A){var T=A._invmp(this.m);return T.negative!==0?(T.negative=0,this.imod(T).redNeg()):this.imod(T)},ie.prototype.pow=function(A,T){if(T.isZero())return new o(1).toRed(this);if(T.cmpn(1)===0)return A.clone();var P=4,D=new Array(1<<P);D[0]=new o(1).toRed(this),D[1]=A;for(var L=2;L<D.length;L++)D[L]=this.mul(D[L-1],A);var V=D[0],Z=0,z=0,I=T.bitLength()%26;for(I===0&&(I=26),L=T.length-1;L>=0;L--){for(var Q=T.words[L],me=I-1;me>=0;me--){var ge=Q>>me&1;if(V!==D[0]&&(V=this.sqr(V)),ge===0&&Z===0){z=0;continue}Z<<=1,Z|=ge,z++,!(z!==P&&(L!==0||me!==0))&&(V=this.mul(V,D[Z]),z=0,Z=0)}I=26}return V},ie.prototype.convertTo=function(A){var T=A.umod(this.m);return T===A?T.clone():T},ie.prototype.convertFrom=function(A){var T=A.clone();return T.red=null,T},o.mont=function(A){return new re(A)};function re(H){ie.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(re,ie),re.prototype.convertTo=function(A){return this.imod(A.ushln(this.shift))},re.prototype.convertFrom=function(A){var T=this.imod(A.mul(this.rinv));return T.red=null,T},re.prototype.imul=function(A,T){if(A.isZero()||T.isZero())return A.words[0]=0,A.length=1,A;var P=A.imul(T),D=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),L=P.isub(D).iushrn(this.shift),V=L;return L.cmp(this.m)>=0?V=L.isub(this.m):L.cmpn(0)<0&&(V=L.iadd(this.m)),V._forceRed(this)},re.prototype.mul=function(A,T){if(A.isZero()||T.isZero())return new o(0)._forceRed(this);var P=A.mul(T),D=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),L=P.isub(D).iushrn(this.shift),V=L;return L.cmp(this.m)>=0?V=L.isub(this.m):L.cmpn(0)<0&&(V=L.iadd(this.m)),V._forceRed(this)},re.prototype.invm=function(A){var T=this.imod(A._invmp(this.m).mul(this.r2));return T._forceRed(this)}})(typeof GX>\"u\"||GX,OWe)});var G_=X(c3=>{\"use strict\";c();Object.defineProperty(c3,\"__esModule\",{value:!0});c3.errorValues=c3.standardErrorCodes=void 0;c3.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}};c3.errorValues={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"},4902:{standard:\"EIP-3085\",message:\"Unrecognized chain ID.\"}}});var hH=X(Hc=>{\"use strict\";c();Object.defineProperty(Hc,\"__esModule\",{value:!0});Hc.serialize=Hc.getErrorCode=Hc.isValidCode=Hc.getMessageFromCode=Hc.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var mH=G_(),DWe=\"Unspecified error message.\";Hc.JSON_RPC_SERVER_ERROR_MESSAGE=\"Unspecified server error.\";function HWe(e,t=DWe){if(e&&Number.isInteger(e)){let r=e.toString();if(VX(mH.errorValues,r))return mH.errorValues[r].message;if(zWe(e))return Hc.JSON_RPC_SERVER_ERROR_MESSAGE}return t}Hc.getMessageFromCode=HWe;function LWe(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(mH.errorValues[t]||zWe(e))}Hc.isValidCode=LWe;function f5t(e){var t;if(typeof e==\"number\")return e;if(d5t(e))return(t=e.code)!==null&&t!==void 0?t:e.errorCode}Hc.getErrorCode=f5t;function d5t(e){return typeof e==\"object\"&&e!==null&&(typeof e.code==\"number\"||typeof e.errorCode==\"number\")}function p5t(e,{shouldIncludeStack:t=!1}={}){let r={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&VX(e,\"code\")&&LWe(e.code)){let n=e;r.code=n.code,n.message&&typeof n.message==\"string\"?(r.message=n.message,VX(n,\"data\")&&(r.data=n.data)):(r.message=HWe(r.code),r.data={originalError:NWe(e)})}else r.code=mH.standardErrorCodes.rpc.internal,r.message=UWe(e,\"message\")?e.message:DWe,r.data={originalError:NWe(e)};return t&&(r.stack=UWe(e,\"stack\")?e.stack:void 0),r}Hc.serialize=p5t;function zWe(e){return e>=-32099&&e<=-32e3}function NWe(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function VX(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function UWe(e,t){return typeof e==\"object\"&&e!==null&&t in e&&typeof e[t]==\"string\"}});var qWe=X(gH=>{\"use strict\";c();Object.defineProperty(gH,\"__esModule\",{value:!0});gH.standardErrors=void 0;var ti=G_(),FWe=hH();gH.standardErrors={rpc:{parse:e=>Gu(ti.standardErrorCodes.rpc.parse,e),invalidRequest:e=>Gu(ti.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>Gu(ti.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>Gu(ti.standardErrorCodes.rpc.methodNotFound,e),internal:e=>Gu(ti.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return Gu(t,e)},invalidInput:e=>Gu(ti.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>Gu(ti.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>Gu(ti.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>Gu(ti.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>Gu(ti.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>Gu(ti.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>u3(ti.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>u3(ti.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>u3(ti.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>u3(ti.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>u3(ti.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>u3(ti.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:r,data:n}=e;if(!r||typeof r!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new bH(t,r,n)}}};function Gu(e,t){let[r,n]=jWe(t);return new yH(e,r||(0,FWe.getMessageFromCode)(e),n)}function u3(e,t){let[r,n]=jWe(t);return new bH(e,r||(0,FWe.getMessageFromCode)(e),n)}function jWe(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,r]}}return[]}var yH=class extends Error{constructor(t,r,n){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!r||typeof r!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(r),this.code=t,n!==void 0&&(this.data=n)}},bH=class extends yH{constructor(t,r,n){if(!m5t(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,r,n)}};function m5t(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}});var vH=X(xH=>{\"use strict\";c();Object.defineProperty(xH,\"__esModule\",{value:!0});xH.isErrorResponse=void 0;function h5t(e){return e.errorMessage!==void 0}xH.isErrorResponse=h5t});var EH=X(wH=>{\"use strict\";c();Object.defineProperty(wH,\"__esModule\",{value:!0});wH.LIB_VERSION=void 0;wH.LIB_VERSION=\"3.9.3\"});var $We=X(AH=>{\"use strict\";c();Object.defineProperty(AH,\"__esModule\",{value:!0});AH.serializeError=void 0;var y5t=vH(),b5t=EH(),g5t=G_(),x5t=hH();function v5t(e,t){let r=(0,x5t.serialize)(w5t(e),{shouldIncludeStack:!0}),n=new URL(\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\");n.searchParams.set(\"version\",b5t.LIB_VERSION),n.searchParams.set(\"code\",r.code.toString());let o=E5t(r.data,t);return o&&n.searchParams.set(\"method\",o),n.searchParams.set(\"message\",r.message),Object.assign(Object.assign({},r),{docUrl:n.href})}AH.serializeError=v5t;function w5t(e){return typeof e==\"string\"?{message:e,code:g5t.standardErrorCodes.rpc.internal}:(0,y5t.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function E5t(e,t){let r=e?.method;if(r)return r;if(t!==void 0){if(typeof t==\"string\")return t;if(Array.isArray(t)){if(t.length>0)return t[0].method}else return t.method}}});var V_=X(Vu=>{\"use strict\";c();Object.defineProperty(Vu,\"__esModule\",{value:!0});Vu.standardErrors=Vu.standardErrorCodes=Vu.serializeError=Vu.getMessageFromCode=Vu.getErrorCode=void 0;var A5t=G_();Object.defineProperty(Vu,\"standardErrorCodes\",{enumerable:!0,get:function(){return A5t.standardErrorCodes}});var S5t=qWe();Object.defineProperty(Vu,\"standardErrors\",{enumerable:!0,get:function(){return S5t.standardErrors}});var C5t=$We();Object.defineProperty(Vu,\"serializeError\",{enumerable:!0,get:function(){return C5t.serializeError}});var GWe=hH();Object.defineProperty(Vu,\"getErrorCode\",{enumerable:!0,get:function(){return GWe.getErrorCode}});Object.defineProperty(Vu,\"getMessageFromCode\",{enumerable:!0,get:function(){return GWe.getMessageFromCode}})});var W_=X(Si=>{\"use strict\";c();Object.defineProperty(Si,\"__esModule\",{value:!0});Si.ProviderType=Si.RegExpString=Si.IntNumber=Si.BigIntString=Si.AddressString=Si.HexString=Si.OpaqueType=void 0;function K_(){return e=>e}Si.OpaqueType=K_;Si.HexString=K_();Si.AddressString=K_();Si.BigIntString=K_();function T5t(e){return Math.floor(e)}Si.IntNumber=T5t;Si.RegExpString=K_();var VWe;(function(e){e.CoinbaseWallet=\"CoinbaseWallet\",e.MetaMask=\"MetaMask\",e.Unselected=\"\"})(VWe||(Si.ProviderType=VWe={}))});var Zd=X(ut=>{\"use strict\";c();var _5t=ut&&ut.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ut,\"__esModule\",{value:!0});ut.isMobileWeb=ut.getLocation=ut.isInIFrame=ut.createQrUrl=ut.getFavicon=ut.range=ut.isBigNumber=ut.ensureParsedJSONObject=ut.ensureBN=ut.ensureRegExpString=ut.ensureIntNumber=ut.ensureBuffer=ut.ensureAddressString=ut.ensureEvenLengthHexString=ut.ensureHexString=ut.isHexString=ut.prepend0x=ut.strip0x=ut.has0xPrefix=ut.hexStringFromIntNumber=ut.intNumberFromHexString=ut.bigIntStringFromBN=ut.hexStringFromBuffer=ut.hexStringToUint8Array=ut.uint8ArrayToHex=ut.randomBytesHex=void 0;var sb=_5t($_()),Nx=V_(),Ku=W_(),KWe=/^[0-9]*$/,WWe=/^[a-f0-9]*$/;function k5t(e){return QWe(crypto.getRandomValues(new Uint8Array(e)))}ut.randomBytesHex=k5t;function QWe(e){return[...e].map(t=>t.toString(16).padStart(2,\"0\")).join(\"\")}ut.uint8ArrayToHex=QWe;function B5t(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}ut.hexStringToUint8Array=B5t;function I5t(e,t=!1){let r=e.toString(\"hex\");return(0,Ku.HexString)(t?`0x${r}`:r)}ut.hexStringFromBuffer=I5t;function P5t(e){return(0,Ku.BigIntString)(e.toString(10))}ut.bigIntStringFromBN=P5t;function R5t(e){return(0,Ku.IntNumber)(new sb.default(Z_(e,!1),16).toNumber())}ut.intNumberFromHexString=R5t;function M5t(e){return(0,Ku.HexString)(`0x${new sb.default(e).toString(16)}`)}ut.hexStringFromIntNumber=M5t;function KX(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")}ut.has0xPrefix=KX;function SH(e){return KX(e)?e.slice(2):e}ut.strip0x=SH;function ZWe(e){return KX(e)?`0x${e.slice(2)}`:`0x${e}`}ut.prepend0x=ZWe;function Q_(e){if(typeof e!=\"string\")return!1;let t=SH(e).toLowerCase();return WWe.test(t)}ut.isHexString=Q_;function JWe(e,t=!1){if(typeof e==\"string\"){let r=SH(e).toLowerCase();if(WWe.test(r))return(0,Ku.HexString)(t?`0x${r}`:r)}throw Nx.standardErrors.rpc.invalidParams(`\"${String(e)}\" is not a hexadecimal string`)}ut.ensureHexString=JWe;function Z_(e,t=!1){let r=JWe(e,!1);return r.length%2===1&&(r=(0,Ku.HexString)(`0${r}`)),t?(0,Ku.HexString)(`0x${r}`):r}ut.ensureEvenLengthHexString=Z_;function O5t(e){if(typeof e==\"string\"){let t=SH(e).toLowerCase();if(Q_(t)&&t.length===40)return(0,Ku.AddressString)(ZWe(t))}throw Nx.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}ut.ensureAddressString=O5t;function N5t(e){if(globalThis.Buffer.isBuffer(e))return e;if(typeof e==\"string\"){if(Q_(e)){let t=Z_(e,!1);return globalThis.Buffer.from(t,\"hex\")}return globalThis.Buffer.from(e,\"utf8\")}throw Nx.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)}ut.ensureBuffer=N5t;function YWe(e){if(typeof e==\"number\"&&Number.isInteger(e))return(0,Ku.IntNumber)(e);if(typeof e==\"string\"){if(KWe.test(e))return(0,Ku.IntNumber)(Number(e));if(Q_(e))return(0,Ku.IntNumber)(new sb.default(Z_(e,!1),16).toNumber())}throw Nx.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}ut.ensureIntNumber=YWe;function U5t(e){if(e instanceof RegExp)return(0,Ku.RegExpString)(e.toString());throw Nx.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}ut.ensureRegExpString=U5t;function D5t(e){if(e!==null&&(sb.default.isBN(e)||XWe(e)))return new sb.default(e.toString(10),10);if(typeof e==\"number\")return new sb.default(YWe(e));if(typeof e==\"string\"){if(KWe.test(e))return new sb.default(e,10);if(Q_(e))return new sb.default(Z_(e,!1),16)}throw Nx.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}ut.ensureBN=D5t;function H5t(e){if(typeof e==\"string\")return JSON.parse(e);if(typeof e==\"object\")return e;throw Nx.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}ut.ensureParsedJSONObject=H5t;function XWe(e){if(e==null||typeof e.constructor!=\"function\")return!1;let{constructor:t}=e;return typeof t.config==\"function\"&&typeof t.EUCLID==\"number\"}ut.isBigNumber=XWe;function L5t(e,t){return Array.from({length:t-e},(r,n)=>e+n)}ut.range=L5t;function z5t(){let e=document.querySelector(\\'link[sizes=\"192x192\"]\\')||document.querySelector(\\'link[sizes=\"180x180\"]\\')||document.querySelector(\\'link[rel=\"icon\"]\\')||document.querySelector(\\'link[rel=\"shortcut icon\"]\\'),{protocol:t,host:r}=document.location,n=e?e.getAttribute(\"href\"):null;return!n||n.startsWith(\"javascript:\")||n.startsWith(\"vbscript:\")?null:n.startsWith(\"http://\")||n.startsWith(\"https://\")||n.startsWith(\"data:\")?n:n.startsWith(\"//\")?t+n:`${t}//${r}${n}`}ut.getFavicon=z5t;function F5t(e,t,r,n,o,s){let u=n?\"parent-id\":\"id\",f=new URLSearchParams({[u]:e,secret:t,server:r,v:o,chainId:s.toString()}).toString();return`${r}/#/link?${f}`}ut.createQrUrl=F5t;function eQe(){try{return window.frameElement!==null}catch{return!1}}ut.isInIFrame=eQe;function j5t(){try{return eQe()&&window.top?window.top.location:window.location}catch{return window.location}}ut.getLocation=j5t;function q5t(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((e=window?.navigator)===null||e===void 0?void 0:e.userAgent)}ut.isMobileWeb=q5t});var tQe=X(CH=>{\"use strict\";c();Object.defineProperty(CH,\"__esModule\",{value:!0});CH.ScopedLocalStorage=void 0;var WX=class{constructor(t){this.scope=t}setItem(t,r){localStorage.setItem(this.scopedKey(t),r)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){let t=this.scopedKey(\"\"),r=[];for(let n=0;n<localStorage.length;n++){let o=localStorage.key(n);typeof o==\"string\"&&o.startsWith(t)&&r.push(o)}r.forEach(n=>localStorage.removeItem(n))}scopedKey(t){return`${this.scope}:${t}`}};CH.ScopedLocalStorage=WX});var nQe=X((pGn,QX)=>{\"use strict\";c();var $5t=Object.prototype.hasOwnProperty,ls=\"~\";function J_(){}Object.create&&(J_.prototype=Object.create(null),new J_().__proto__||(ls=!1));function G5t(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function rQe(e,t,r,n,o){if(typeof r!=\"function\")throw new TypeError(\"The listener must be a function\");var s=new G5t(r,n||e,o),u=ls?ls+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function TH(e,t){--e._eventsCount===0?e._events=new J_:delete e._events[t]}function Ci(){this._events=new J_,this._eventsCount=0}Ci.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)$5t.call(r,n)&&t.push(ls?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Ci.prototype.listeners=function(t){var r=ls?ls+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,s=n.length,u=new Array(s);o<s;o++)u[o]=n[o].fn;return u};Ci.prototype.listenerCount=function(t){var r=ls?ls+t:t,n=this._events[r];return n?n.fn?1:n.length:0};Ci.prototype.emit=function(t,r,n,o,s,u){var f=ls?ls+t:t;if(!this._events[f])return!1;var d=this._events[f],m=arguments.length,h,y;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),m){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,r),!0;case 3:return d.fn.call(d.context,r,n),!0;case 4:return d.fn.call(d.context,r,n,o),!0;case 5:return d.fn.call(d.context,r,n,o,s),!0;case 6:return d.fn.call(d.context,r,n,o,s,u),!0}for(y=1,h=new Array(m-1);y<m;y++)h[y-1]=arguments[y];d.fn.apply(d.context,h)}else{var v=d.length,E;for(y=0;y<v;y++)switch(d[y].once&&this.removeListener(t,d[y].fn,void 0,!0),m){case 1:d[y].fn.call(d[y].context);break;case 2:d[y].fn.call(d[y].context,r);break;case 3:d[y].fn.call(d[y].context,r,n);break;case 4:d[y].fn.call(d[y].context,r,n,o);break;default:if(!h)for(E=1,h=new Array(m-1);E<m;E++)h[E-1]=arguments[E];d[y].fn.apply(d[y].context,h)}}return!0};Ci.prototype.on=function(t,r,n){return rQe(this,t,r,n,!1)};Ci.prototype.once=function(t,r,n){return rQe(this,t,r,n,!0)};Ci.prototype.removeListener=function(t,r,n,o){var s=ls?ls+t:t;if(!this._events[s])return this;if(!r)return TH(this,s),this;var u=this._events[s];if(u.fn)u.fn===r&&(!o||u.once)&&(!n||u.context===n)&&TH(this,s);else{for(var f=0,d=[],m=u.length;f<m;f++)(u[f].fn!==r||o&&!u[f].once||n&&u[f].context!==n)&&d.push(u[f]);d.length?this._events[s]=d.length===1?d[0]:d:TH(this,s)}return this};Ci.prototype.removeAllListeners=function(t){var r;return t?(r=ls?ls+t:t,this._events[r]&&TH(this,r)):(this._events=new J_,this._eventsCount=0),this};Ci.prototype.off=Ci.prototype.removeListener;Ci.prototype.addListener=Ci.prototype.on;Ci.prefixed=ls;Ci.EventEmitter=Ci;typeof QX<\"u\"&&(QX.exports=Ci)});var kH=X(_H=>{\"use strict\";c();Object.defineProperty(_H,\"__esModule\",{value:!0});_H.EVENTS=void 0;_H.EVENTS={STARTED_CONNECTING:\"walletlink_sdk.started.connecting\",CONNECTED_STATE_CHANGE:\"walletlink_sdk.connected\",DISCONNECTED:\"walletlink_sdk.disconnected\",METADATA_DESTROYED:\"walletlink_sdk_metadata_destroyed\",LINKED:\"walletlink_sdk.linked\",FAILURE:\"walletlink_sdk.generic_failure\",SESSION_CONFIG_RECEIVED:\"walletlink_sdk.session_config_event_received\",ETH_ACCOUNTS_STATE:\"walletlink_sdk.eth_accounts_state\",SESSION_STATE_CHANGE:\"walletlink_sdk.session_state_change\",UNLINKED_ERROR_STATE:\"walletlink_sdk.unlinked_error_state\",SKIPPED_CLEARING_SESSION:\"walletlink_sdk.skipped_clearing_session\",GENERAL_ERROR:\"walletlink_sdk.general_error\",WEB3_REQUEST:\"walletlink_sdk.web3.request\",WEB3_REQUEST_PUBLISHED:\"walletlink_sdk.web3.request_published\",WEB3_RESPONSE:\"walletlink_sdk.web3.response\",METHOD_NOT_IMPLEMENTED:\"walletlink_sdk.method_not_implemented\",UNKNOWN_ADDRESS_ENCOUNTERED:\"walletlink_sdk.unknown_address_encountered\"}});var BH=X(Jd=>{\"use strict\";c();Object.defineProperty(Jd,\"__esModule\",{value:!0});Jd.RelayAbstract=Jd.APP_VERSION_KEY=Jd.LOCAL_STORAGE_ADDRESSES_KEY=Jd.WALLET_USER_NAME_KEY=void 0;var oQe=V_();Jd.WALLET_USER_NAME_KEY=\"walletUsername\";Jd.LOCAL_STORAGE_ADDRESSES_KEY=\"Addresses\";Jd.APP_VERSION_KEY=\"AppVersion\";var ZX=class{async makeEthereumJSONRPCRequest(t,r){if(!r)throw new Error(\"Error: No jsonRpcUrl provided\");return window.fetch(r,{method:\"POST\",body:JSON.stringify(t),mode:\"cors\",headers:{\"Content-Type\":\"application/json\"}}).then(n=>n.json()).then(n=>{if(!n)throw oQe.standardErrors.rpc.parse({});let o=n,{error:s}=o;if(s)throw(0,oQe.serializeError)(s,t.method);return o})}};Jd.RelayAbstract=ZX});var Wu=X((xGn,JX)=>{c();typeof Object.create==\"function\"?JX.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:JX.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var Xd=X((YX,iQe)=>{c();var IH=uv(),Yd=IH.Buffer;function aQe(e,t){for(var r in e)t[r]=e[r]}Yd.from&&Yd.alloc&&Yd.allocUnsafe&&Yd.allocUnsafeSlow?iQe.exports=IH:(aQe(IH,YX),YX.Buffer=Ux);function Ux(e,t,r){return Yd(e,t,r)}Ux.prototype=Object.create(Yd.prototype);aQe(Yd,Ux);Ux.from=function(e,t,r){if(typeof e==\"number\")throw new TypeError(\"Argument must not be a number\");return Yd(e,t,r)};Ux.alloc=function(e,t,r){if(typeof e!=\"number\")throw new TypeError(\"Argument must be a number\");var n=Yd(e);return t!==void 0?typeof r==\"string\"?n.fill(t,r):n.fill(t):n.fill(0),n};Ux.allocUnsafe=function(e){if(typeof e!=\"number\")throw new TypeError(\"Argument must be a number\");return Yd(e)};Ux.allocUnsafeSlow=function(e){if(typeof e!=\"number\")throw new TypeError(\"Argument must be a number\");return IH.SlowBuffer(e)}});var cQe=X((EGn,sQe)=>{c();var V5t={}.toString;sQe.exports=Array.isArray||function(e){return V5t.call(e)==\"[object Array]\"}});var l3=X((SGn,uQe)=>{\"use strict\";c();uQe.exports=TypeError});var XX=X((TGn,lQe)=>{\"use strict\";c();lQe.exports=Object});var dQe=X((kGn,fQe)=>{\"use strict\";c();fQe.exports=Error});var mQe=X((IGn,pQe)=>{\"use strict\";c();pQe.exports=EvalError});var yQe=X((RGn,hQe)=>{\"use strict\";c();hQe.exports=RangeError});var gQe=X((OGn,bQe)=>{\"use strict\";c();bQe.exports=ReferenceError});var eee=X((UGn,xQe)=>{\"use strict\";c();xQe.exports=SyntaxError});var wQe=X((HGn,vQe)=>{\"use strict\";c();vQe.exports=URIError});var AQe=X((zGn,EQe)=>{\"use strict\";c();EQe.exports=Math.abs});var CQe=X((jGn,SQe)=>{\"use strict\";c();SQe.exports=Math.floor});var _Qe=X(($Gn,TQe)=>{\"use strict\";c();TQe.exports=Math.max});var BQe=X((VGn,kQe)=>{\"use strict\";c();kQe.exports=Math.min});var PQe=X((WGn,IQe)=>{\"use strict\";c();IQe.exports=Math.pow});var MQe=X((ZGn,RQe)=>{\"use strict\";c();RQe.exports=Math.round});var NQe=X((YGn,OQe)=>{\"use strict\";c();OQe.exports=Number.isNaN||function(t){return t!==t}});var DQe=X((eVn,UQe)=>{\"use strict\";c();var K5t=NQe();UQe.exports=function(t){return K5t(t)||t===0?t:t<0?-1:1}});var LQe=X((rVn,HQe)=>{\"use strict\";c();HQe.exports=Object.getOwnPropertyDescriptor});var f3=X((oVn,zQe)=>{\"use strict\";c();var PH=LQe();if(PH)try{PH([],\"length\")}catch{PH=null}zQe.exports=PH});var Y_=X((iVn,FQe)=>{\"use strict\";c();var RH=Object.defineProperty||!1;if(RH)try{RH({},\"a\",{value:1})}catch{RH=!1}FQe.exports=RH});var tee=X((cVn,jQe)=>{\"use strict\";c();jQe.exports=function(){if(typeof Symbol!=\"function\"||typeof Object.getOwnPropertySymbols!=\"function\")return!1;if(typeof Symbol.iterator==\"symbol\")return!0;var t={},r=Symbol(\"test\"),n=Object(r);if(typeof r==\"string\"||Object.prototype.toString.call(r)!==\"[object Symbol]\"||Object.prototype.toString.call(n)!==\"[object Symbol]\")return!1;var o=42;t[r]=o;for(var s in t)return!1;if(typeof Object.keys==\"function\"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames==\"function\"&&Object.getOwnPropertyNames(t).length!==0)return!1;var u=Object.getOwnPropertySymbols(t);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor==\"function\"){var f=Object.getOwnPropertyDescriptor(t,r);if(f.value!==o||f.enumerable!==!0)return!1}return!0}});var GQe=X((lVn,$Qe)=>{\"use strict\";c();var qQe=typeof Symbol<\"u\"&&Symbol,W5t=tee();$Qe.exports=function(){return typeof qQe!=\"function\"||typeof Symbol!=\"function\"||typeof qQe(\"foo\")!=\"symbol\"||typeof Symbol(\"bar\")!=\"symbol\"?!1:W5t()}});var ree=X((dVn,VQe)=>{\"use strict\";c();VQe.exports=typeof Reflect<\"u\"&&Reflect.getPrototypeOf||null});var nee=X((mVn,KQe)=>{\"use strict\";c();var Q5t=XX();KQe.exports=Q5t.getPrototypeOf||null});var ZQe=X((yVn,QQe)=>{\"use strict\";c();var Z5t=\"Function.prototype.bind called on incompatible \",J5t=Object.prototype.toString,Y5t=Math.max,X5t=\"[object Function]\",WQe=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var s=0;s<r.length;s+=1)n[s+t.length]=r[s];return n},eEt=function(t,r){for(var n=[],o=r||0,s=0;o<t.length;o+=1,s+=1)n[s]=t[o];return n},tEt=function(e,t){for(var r=\"\",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};QQe.exports=function(t){var r=this;if(typeof r!=\"function\"||J5t.apply(r)!==X5t)throw new TypeError(Z5t+r);for(var n=eEt(arguments,1),o,s=function(){if(this instanceof o){var h=r.apply(this,WQe(n,arguments));return Object(h)===h?h:this}return r.apply(t,WQe(n,arguments))},u=Y5t(0,r.length-n.length),f=[],d=0;d<u;d++)f[d]=\"$\"+d;if(o=Function(\"binder\",\"return function (\"+tEt(f,\",\")+\"){ return binder.apply(this,arguments); }\")(s),r.prototype){var m=function(){};m.prototype=r.prototype,o.prototype=new m,m.prototype=null}return o}});var d3=X((gVn,JQe)=>{\"use strict\";c();var rEt=ZQe();JQe.exports=Function.prototype.bind||rEt});var MH=X((vVn,YQe)=>{\"use strict\";c();YQe.exports=Function.prototype.call});var OH=X((EVn,XQe)=>{\"use strict\";c();XQe.exports=Function.prototype.apply});var tZe=X((SVn,eZe)=>{\"use strict\";c();eZe.exports=typeof Reflect<\"u\"&&Reflect&&Reflect.apply});var oee=X((TVn,rZe)=>{\"use strict\";c();var nEt=d3(),oEt=OH(),aEt=MH(),iEt=tZe();rZe.exports=iEt||nEt.call(aEt,oEt)});var NH=X((kVn,nZe)=>{\"use strict\";c();var sEt=d3(),cEt=l3(),uEt=MH(),lEt=oee();nZe.exports=function(t){if(t.length<1||typeof t[0]!=\"function\")throw new cEt(\"a function is required\");return lEt(sEt,uEt,t)}});var uZe=X((IVn,cZe)=>{\"use strict\";c();var fEt=NH(),oZe=f3(),iZe;try{iZe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=\"object\"||!(\"code\"in e)||e.code!==\"ERR_PROTO_ACCESS\")throw e}var aee=!!iZe&&oZe&&oZe(Object.prototype,\"__proto__\"),sZe=Object,aZe=sZe.getPrototypeOf;cZe.exports=aee&&typeof aee.get==\"function\"?fEt([aee.get]):typeof aZe==\"function\"?function(t){return aZe(t==null?t:sZe(t))}:!1});var iee=X((RVn,pZe)=>{\"use strict\";c();var lZe=ree(),fZe=nee(),dZe=uZe();pZe.exports=lZe?function(t){return lZe(t)}:fZe?function(t){if(!t||typeof t!=\"object\"&&typeof t!=\"function\")throw new TypeError(\"getProto: not an object\");return fZe(t)}:dZe?function(t){return dZe(t)}:null});var hZe=X((OVn,mZe)=>{\"use strict\";c();var dEt=Function.prototype.call,pEt=Object.prototype.hasOwnProperty,mEt=d3();mZe.exports=mEt.call(dEt,pEt)});var uee=X((UVn,wZe)=>{\"use strict\";c();var pr,hEt=XX(),yEt=dQe(),bEt=mQe(),gEt=yQe(),xEt=gQe(),y3=eee(),h3=l3(),vEt=wQe(),wEt=AQe(),EEt=CQe(),AEt=_Qe(),SEt=BQe(),CEt=PQe(),TEt=MQe(),_Et=DQe(),xZe=Function,see=function(e){try{return xZe(\\'\"use strict\"; return (\\'+e+\").constructor;\")()}catch{}},X_=f3(),kEt=Y_(),cee=function(){throw new h3},BEt=X_?(function(){try{return arguments.callee,cee}catch{try{return X_(arguments,\"callee\").get}catch{return cee}}})():cee,p3=GQe()(),Ia=iee(),IEt=nee(),PEt=ree(),vZe=OH(),e4=MH(),m3={},REt=typeof Uint8Array>\"u\"||!Ia?pr:Ia(Uint8Array),Dx={__proto__:null,\"%AggregateError%\":typeof AggregateError>\"u\"?pr:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":typeof ArrayBuffer>\"u\"?pr:ArrayBuffer,\"%ArrayIteratorPrototype%\":p3&&Ia?Ia([][Symbol.iterator]()):pr,\"%AsyncFromSyncIteratorPrototype%\":pr,\"%AsyncFunction%\":m3,\"%AsyncGenerator%\":m3,\"%AsyncGeneratorFunction%\":m3,\"%AsyncIteratorPrototype%\":m3,\"%Atomics%\":typeof Atomics>\"u\"?pr:Atomics,\"%BigInt%\":typeof BigInt>\"u\"?pr:BigInt,\"%BigInt64Array%\":typeof BigInt64Array>\"u\"?pr:BigInt64Array,\"%BigUint64Array%\":typeof BigUint64Array>\"u\"?pr:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":typeof DataView>\"u\"?pr:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":yEt,\"%eval%\":eval,\"%EvalError%\":bEt,\"%Float16Array%\":typeof Float16Array>\"u\"?pr:Float16Array,\"%Float32Array%\":typeof Float32Array>\"u\"?pr:Float32Array,\"%Float64Array%\":typeof Float64Array>\"u\"?pr:Float64Array,\"%FinalizationRegistry%\":typeof FinalizationRegistry>\"u\"?pr:FinalizationRegistry,\"%Function%\":xZe,\"%GeneratorFunction%\":m3,\"%Int8Array%\":typeof Int8Array>\"u\"?pr:Int8Array,\"%Int16Array%\":typeof Int16Array>\"u\"?pr:Int16Array,\"%Int32Array%\":typeof Int32Array>\"u\"?pr:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":p3&&Ia?Ia(Ia([][Symbol.iterator]())):pr,\"%JSON%\":typeof JSON==\"object\"?JSON:pr,\"%Map%\":typeof Map>\"u\"?pr:Map,\"%MapIteratorPrototype%\":typeof Map>\"u\"||!p3||!Ia?pr:Ia(new Map()[Symbol.iterator]()),\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":hEt,\"%Object.getOwnPropertyDescriptor%\":X_,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":typeof Promise>\"u\"?pr:Promise,\"%Proxy%\":typeof Proxy>\"u\"?pr:Proxy,\"%RangeError%\":gEt,\"%ReferenceError%\":xEt,\"%Reflect%\":typeof Reflect>\"u\"?pr:Reflect,\"%RegExp%\":RegExp,\"%Set%\":typeof Set>\"u\"?pr:Set,\"%SetIteratorPrototype%\":typeof Set>\"u\"||!p3||!Ia?pr:Ia(new Set()[Symbol.iterator]()),\"%SharedArrayBuffer%\":typeof SharedArrayBuffer>\"u\"?pr:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":p3&&Ia?Ia(\"\"[Symbol.iterator]()):pr,\"%Symbol%\":p3?Symbol:pr,\"%SyntaxError%\":y3,\"%ThrowTypeError%\":BEt,\"%TypedArray%\":REt,\"%TypeError%\":h3,\"%Uint8Array%\":typeof Uint8Array>\"u\"?pr:Uint8Array,\"%Uint8ClampedArray%\":typeof Uint8ClampedArray>\"u\"?pr:Uint8ClampedArray,\"%Uint16Array%\":typeof Uint16Array>\"u\"?pr:Uint16Array,\"%Uint32Array%\":typeof Uint32Array>\"u\"?pr:Uint32Array,\"%URIError%\":vEt,\"%WeakMap%\":typeof WeakMap>\"u\"?pr:WeakMap,\"%WeakRef%\":typeof WeakRef>\"u\"?pr:WeakRef,\"%WeakSet%\":typeof WeakSet>\"u\"?pr:WeakSet,\"%Function.prototype.call%\":e4,\"%Function.prototype.apply%\":vZe,\"%Object.defineProperty%\":kEt,\"%Object.getPrototypeOf%\":IEt,\"%Math.abs%\":wEt,\"%Math.floor%\":EEt,\"%Math.max%\":AEt,\"%Math.min%\":SEt,\"%Math.pow%\":CEt,\"%Math.round%\":TEt,\"%Math.sign%\":_Et,\"%Reflect.getPrototypeOf%\":PEt};if(Ia)try{null.error}catch(e){yZe=Ia(Ia(e)),Dx[\"%Error.prototype%\"]=yZe}var yZe,MEt=function e(t){var r;if(t===\"%AsyncFunction%\")r=see(\"async function () {}\");else if(t===\"%GeneratorFunction%\")r=see(\"function* () {}\");else if(t===\"%AsyncGeneratorFunction%\")r=see(\"async function* () {}\");else if(t===\"%AsyncGenerator%\"){var n=e(\"%AsyncGeneratorFunction%\");n&&(r=n.prototype)}else if(t===\"%AsyncIteratorPrototype%\"){var o=e(\"%AsyncGenerator%\");o&&Ia&&(r=Ia(o.prototype))}return Dx[t]=r,r},bZe={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},t4=d3(),UH=hZe(),OEt=t4.call(e4,Array.prototype.concat),NEt=t4.call(vZe,Array.prototype.splice),gZe=t4.call(e4,String.prototype.replace),DH=t4.call(e4,String.prototype.slice),UEt=t4.call(e4,RegExp.prototype.exec),DEt=/[^%.[\\\\]]+|\\\\[(?:(-?\\\\d+(?:\\\\.\\\\d+)?)|([\"\\'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2)\\\\]|(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|%$))/g,HEt=/\\\\\\\\(\\\\\\\\)?/g,LEt=function(t){var r=DH(t,0,1),n=DH(t,-1);if(r===\"%\"&&n!==\"%\")throw new y3(\"invalid intrinsic syntax, expected closing `%`\");if(n===\"%\"&&r!==\"%\")throw new y3(\"invalid intrinsic syntax, expected opening `%`\");var o=[];return gZe(t,DEt,function(s,u,f,d){o[o.length]=f?gZe(d,HEt,\"$1\"):u||s}),o},zEt=function(t,r){var n=t,o;if(UH(bZe,n)&&(o=bZe[n],n=\"%\"+o[0]+\"%\"),UH(Dx,n)){var s=Dx[n];if(s===m3&&(s=MEt(n)),typeof s>\"u\"&&!r)throw new h3(\"intrinsic \"+t+\" exists, but is not available. Please file an issue!\");return{alias:o,name:n,value:s}}throw new y3(\"intrinsic \"+t+\" does not exist!\")};wZe.exports=function(t,r){if(typeof t!=\"string\"||t.length===0)throw new h3(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&typeof r!=\"boolean\")throw new h3(\\'\"allowMissing\" argument must be a boolean\\');if(UEt(/^%?[^%]*%?$/,t)===null)throw new y3(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var n=LEt(t),o=n.length>0?n[0]:\"\",s=zEt(\"%\"+o+\"%\",r),u=s.name,f=s.value,d=!1,m=s.alias;m&&(o=m[0],NEt(n,OEt([0,1],m)));for(var h=1,y=!0;h<n.length;h+=1){var v=n[h],E=DH(v,0,1),C=DH(v,-1);if((E===\\'\"\\'||E===\"\\'\"||E===\"`\"||C===\\'\"\\'||C===\"\\'\"||C===\"`\")&&E!==C)throw new y3(\"property names with quotes must have matching quotes\");if((v===\"constructor\"||!y)&&(d=!0),o+=\".\"+v,u=\"%\"+o+\"%\",UH(Dx,u))f=Dx[u];else if(f!=null){if(!(v in f)){if(!r)throw new h3(\"base intrinsic for \"+t+\" exists, but the property is not available.\");return}if(X_&&h+1>=n.length){var B=X_(f,v);y=!!B,y&&\"get\"in B&&!(\"originalValue\"in B.get)?f=B.get:f=f[v]}else y=UH(f,v),f=f[v];y&&!d&&(Dx[u]=f)}}return f}});var lee=X((HVn,SZe)=>{\"use strict\";c();var EZe=uee(),AZe=NH(),FEt=AZe([EZe(\"%String.prototype.indexOf%\")]);SZe.exports=function(t,r){var n=EZe(t,!!r);return typeof n==\"function\"&&FEt(t,\".prototype.\")>-1?AZe([n]):n}});var kZe=X((zVn,_Ze)=>{\"use strict\";c();var TZe=Function.prototype.toString,b3=typeof Reflect==\"object\"&&Reflect!==null&&Reflect.apply,dee,HH;if(typeof b3==\"function\"&&typeof Object.defineProperty==\"function\")try{dee=Object.defineProperty({},\"length\",{get:function(){throw HH}}),HH={},b3(function(){throw 42},null,dee)}catch(e){e!==HH&&(b3=null)}else b3=null;var jEt=/^\\\\s*class\\\\b/,pee=function(t){try{var r=TZe.call(t);return jEt.test(r)}catch{return!1}},fee=function(t){try{return pee(t)?!1:(TZe.call(t),!0)}catch{return!1}},LH=Object.prototype.toString,qEt=\"[object Object]\",$Et=\"[object Function]\",GEt=\"[object GeneratorFunction]\",VEt=\"[object HTMLAllCollection]\",KEt=\"[object HTML document.all class]\",WEt=\"[object HTMLCollection]\",QEt=typeof Symbol==\"function\"&&!!Symbol.toStringTag,ZEt=!(0 in[,]),mee=function(){return!1};typeof document==\"object\"&&(CZe=document.all,LH.call(CZe)===LH.call(document.all)&&(mee=function(t){if((ZEt||!t)&&(typeof t>\"u\"||typeof t==\"object\"))try{var r=LH.call(t);return(r===VEt||r===KEt||r===WEt||r===qEt)&&t(\"\")==null}catch{}return!1}));var CZe;_Ze.exports=b3?function(t){if(mee(t))return!0;if(!t||typeof t!=\"function\"&&typeof t!=\"object\")return!1;try{b3(t,null,dee)}catch(r){if(r!==HH)return!1}return!pee(t)&&fee(t)}:function(t){if(mee(t))return!0;if(!t||typeof t!=\"function\"&&typeof t!=\"object\")return!1;if(QEt)return fee(t);if(pee(t))return!1;var r=LH.call(t);return r!==$Et&&r!==GEt&&!/^\\\\[object HTML/.test(r)?!1:fee(t)}});var PZe=X((jVn,IZe)=>{\"use strict\";c();var JEt=kZe(),YEt=Object.prototype.toString,BZe=Object.prototype.hasOwnProperty,XEt=function(t,r,n){for(var o=0,s=t.length;o<s;o++)BZe.call(t,o)&&(n==null?r(t[o],o,t):r.call(n,t[o],o,t))},e3t=function(t,r,n){for(var o=0,s=t.length;o<s;o++)n==null?r(t.charAt(o),o,t):r.call(n,t.charAt(o),o,t)},t3t=function(t,r,n){for(var o in t)BZe.call(t,o)&&(n==null?r(t[o],o,t):r.call(n,t[o],o,t))};function r3t(e){return YEt.call(e)===\"[object Array]\"}IZe.exports=function(t,r,n){if(!JEt(r))throw new TypeError(\"iterator must be a function\");var o;arguments.length>=3&&(o=n),r3t(t)?XEt(t,r,o):typeof t==\"string\"?e3t(t,r,o):t3t(t,r,o)}});var MZe=X(($Vn,RZe)=>{\"use strict\";c();RZe.exports=[\"Float16Array\",\"Float32Array\",\"Float64Array\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"BigInt64Array\",\"BigUint64Array\"]});var NZe=X((VVn,OZe)=>{\"use strict\";c();var hee=MZe(),n3t=globalThis;OZe.exports=function(){for(var t=[],r=0;r<hee.length;r++)typeof n3t[hee[r]]==\"function\"&&(t[t.length]=hee[r]);return t}});var LZe=X((WVn,HZe)=>{\"use strict\";c();var UZe=Y_(),o3t=eee(),g3=l3(),DZe=f3();HZe.exports=function(t,r,n){if(!t||typeof t!=\"object\"&&typeof t!=\"function\")throw new g3(\"`obj` must be an object or a function`\");if(typeof r!=\"string\"&&typeof r!=\"symbol\")throw new g3(\"`property` must be a string or a symbol`\");if(arguments.length>3&&typeof arguments[3]!=\"boolean\"&&arguments[3]!==null)throw new g3(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&typeof arguments[4]!=\"boolean\"&&arguments[4]!==null)throw new g3(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&typeof arguments[5]!=\"boolean\"&&arguments[5]!==null)throw new g3(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&typeof arguments[6]!=\"boolean\")throw new g3(\"`loose`, if provided, must be a boolean\");var o=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,d=!!DZe&&DZe(t,r);if(UZe)UZe(t,r,{configurable:u===null&&d?d.configurable:!u,enumerable:o===null&&d?d.enumerable:!o,value:n,writable:s===null&&d?d.writable:!s});else if(f||!o&&!s&&!u)t[r]=n;else throw new o3t(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\")}});var jZe=X((ZVn,FZe)=>{\"use strict\";c();var yee=Y_(),zZe=function(){return!!yee};zZe.hasArrayLengthDefineBug=function(){if(!yee)return null;try{return yee([],\"length\",{value:1}).length!==1}catch{return!0}};FZe.exports=zZe});var KZe=X((YVn,VZe)=>{\"use strict\";c();var a3t=uee(),qZe=LZe(),i3t=jZe()(),$Ze=f3(),GZe=l3(),s3t=a3t(\"%Math.floor%\");VZe.exports=function(t,r){if(typeof t!=\"function\")throw new GZe(\"`fn` is not a function\");if(typeof r!=\"number\"||r<0||r>4294967295||s3t(r)!==r)throw new GZe(\"`length` must be a positive 32-bit integer\");var n=arguments.length>2&&!!arguments[2],o=!0,s=!0;if(\"length\"in t&&$Ze){var u=$Ze(t,\"length\");u&&!u.configurable&&(o=!1),u&&!u.writable&&(s=!1)}return(o||s||!n)&&(i3t?qZe(t,\"length\",r,!0,!0):qZe(t,\"length\",r)),t}});var QZe=X((eKn,WZe)=>{\"use strict\";c();var c3t=d3(),u3t=OH(),l3t=oee();WZe.exports=function(){return l3t(c3t,u3t,arguments)}});var YZe=X((rKn,zH)=>{\"use strict\";c();var f3t=KZe(),ZZe=Y_(),d3t=NH(),JZe=QZe();zH.exports=function(t){var r=d3t(arguments),n=t.length-(arguments.length-1);return f3t(r,1+(n>0?n:0),!0)};ZZe?ZZe(zH.exports,\"apply\",{value:JZe}):zH.exports.apply=JZe});var eJe=X((oKn,XZe)=>{\"use strict\";c();var p3t=tee();XZe.exports=function(){return p3t()&&!!Symbol.toStringTag}});var aJe=X((iKn,oJe)=>{\"use strict\";c();var qH=PZe(),m3t=NZe(),tJe=YZe(),gee=lee(),jH=f3(),FH=iee(),h3t=gee(\"Object.prototype.toString\"),nJe=eJe()(),rJe=globalThis,bee=m3t(),xee=gee(\"String.prototype.slice\"),y3t=gee(\"Array.prototype.indexOf\",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},$H={__proto__:null};nJe&&jH&&FH?qH(bee,function(e){var t=new rJe[e];if(Symbol.toStringTag in t&&FH){var r=FH(t),n=jH(r,Symbol.toStringTag);if(!n&&r){var o=FH(r);n=jH(o,Symbol.toStringTag)}$H[\"$\"+e]=tJe(n.get)}}):qH(bee,function(e){var t=new rJe[e],r=t.slice||t.set;r&&($H[\"$\"+e]=tJe(r))});var b3t=function(t){var r=!1;return qH($H,function(n,o){if(!r)try{\"$\"+n(t)===o&&(r=xee(o,1))}catch{}}),r},g3t=function(t){var r=!1;return qH($H,function(n,o){if(!r)try{n(t),r=xee(o,1)}catch{}}),r};oJe.exports=function(t){if(!t||typeof t!=\"object\")return!1;if(!nJe){var r=xee(h3t(t),8,-1);return y3t(bee,r)>-1?r:r!==\"Object\"?!1:g3t(t)}return jH?b3t(t):null}});var sJe=X((cKn,iJe)=>{\"use strict\";c();var x3t=aJe();iJe.exports=function(t){return!!x3t(t)}});var uJe=X((lKn,cJe)=>{\"use strict\";c();var v3t=l3(),w3t=lee(),E3t=w3t(\"TypedArray.prototype.buffer\",!0),A3t=sJe();cJe.exports=E3t||function(t){if(!A3t(t))throw new v3t(\"Not a Typed Array\");return t.buffer}});var dJe=X((dKn,fJe)=>{\"use strict\";c();var rf=Xd().Buffer,S3t=cQe(),C3t=uJe(),T3t=ArrayBuffer.isView||function(t){try{return C3t(t),!0}catch{return!1}},_3t=typeof Uint8Array<\"u\",lJe=typeof ArrayBuffer<\"u\"&&typeof Uint8Array<\"u\",k3t=lJe&&(rf.prototype instanceof Uint8Array||rf.TYPED_ARRAY_SUPPORT);fJe.exports=function(t,r){if(rf.isBuffer(t))return t.constructor&&!(\"isBuffer\"in t)?rf.from(t):t;if(typeof t==\"string\")return rf.from(t,r);if(lJe&&T3t(t)){if(t.byteLength===0)return rf.alloc(0);if(k3t){var n=rf.from(t.buffer,t.byteOffset,t.byteLength);if(n.byteLength===t.byteLength)return n}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),s=rf.from(o);if(s.length===t.byteLength)return s}if(_3t&&t instanceof Uint8Array)return rf.from(t);var u=S3t(t);if(u)for(var f=0;f<t.length;f+=1){var d=t[f];if(typeof d!=\"number\"||d<0||d>255||~~d!==d)throw new RangeError(\"Array items must be numbers in the range 0-255.\")}if(u||rf.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer==\"function\"&&t.constructor.isBuffer(t))return rf.from(t);throw new TypeError(\\'The \"data\" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.\\')}});var Hx=X((mKn,pJe)=>{\"use strict\";c();var B3t=Xd().Buffer,I3t=dJe();function GH(e,t){this._block=B3t.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}GH.prototype.update=function(e,t){e=I3t(e,t||\"utf8\");for(var r=this._block,n=this._blockSize,o=e.length,s=this._len,u=0;u<o;){for(var f=s%n,d=Math.min(o-u,n-f),m=0;m<d;m++)r[f+m]=e[u+m];s+=d,u+=d,s%n===0&&this._update(r)}return this._len+=o,this};GH.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(r&4294967295)>>>0,o=(r-n)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var s=this._hash();return e?s.toString(e):s};GH.prototype._update=function(){throw new Error(\"_update must be implemented by subclass\")};pJe.exports=GH});var yJe=X((yKn,hJe)=>{\"use strict\";c();var P3t=Wu(),mJe=Hx(),R3t=Xd().Buffer,M3t=[1518500249,1859775393,-1894007588,-899497514],O3t=new Array(80);function r4(){this.init(),this._w=O3t,mJe.call(this,64,56)}P3t(r4,mJe);r4.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function N3t(e){return e<<5|e>>>27}function U3t(e){return e<<30|e>>>2}function D3t(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}r4.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,o=this._c|0,s=this._d|0,u=this._e|0,f=0;f<16;++f)t[f]=e.readInt32BE(f*4);for(;f<80;++f)t[f]=t[f-3]^t[f-8]^t[f-14]^t[f-16];for(var d=0;d<80;++d){var m=~~(d/20),h=N3t(r)+D3t(m,n,o,s)+u+t[d]+M3t[m]|0;u=s,s=o,o=U3t(n),n=r,r=h}this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0};r4.prototype._hash=function(){var e=R3t.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};hJe.exports=r4});var xJe=X((gKn,gJe)=>{\"use strict\";c();var H3t=Wu(),bJe=Hx(),L3t=Xd().Buffer,z3t=[1518500249,1859775393,-1894007588,-899497514],F3t=new Array(80);function n4(){this.init(),this._w=F3t,bJe.call(this,64,56)}H3t(n4,bJe);n4.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function j3t(e){return e<<1|e>>>31}function q3t(e){return e<<5|e>>>27}function $3t(e){return e<<30|e>>>2}function G3t(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}n4.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,o=this._c|0,s=this._d|0,u=this._e|0,f=0;f<16;++f)t[f]=e.readInt32BE(f*4);for(;f<80;++f)t[f]=j3t(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var d=0;d<80;++d){var m=~~(d/20),h=q3t(r)+G3t(m,n,o,s)+u+t[d]+z3t[m]|0;u=s,s=o,o=$3t(n),n=r,r=h}this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0};n4.prototype._hash=function(){var e=L3t.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};gJe.exports=n4});var vee=X((vKn,wJe)=>{\"use strict\";c();var V3t=Wu(),vJe=Hx(),K3t=Xd().Buffer,W3t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Q3t=new Array(64);function o4(){this.init(),this._w=Q3t,vJe.call(this,64,56)}V3t(o4,vJe);o4.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function Z3t(e,t,r){return r^e&(t^r)}function J3t(e,t,r){return e&t|r&(e|t)}function Y3t(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function X3t(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function e8t(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function t8t(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}o4.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,o=this._c|0,s=this._d|0,u=this._e|0,f=this._f|0,d=this._g|0,m=this._h|0,h=0;h<16;++h)t[h]=e.readInt32BE(h*4);for(;h<64;++h)t[h]=t8t(t[h-2])+t[h-7]+e8t(t[h-15])+t[h-16]|0;for(var y=0;y<64;++y){var v=m+X3t(u)+Z3t(u,f,d)+W3t[y]+t[y]|0,E=Y3t(r)+J3t(r,n,o)|0;m=d,d=f,f=u,u=s+v|0,s=o,o=n,n=r,r=v+E|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=f+this._f|0,this._g=d+this._g|0,this._h=m+this._h|0};o4.prototype._hash=function(){var e=K3t.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};wJe.exports=o4});var AJe=X((EKn,EJe)=>{\"use strict\";c();var r8t=Wu(),n8t=vee(),o8t=Hx(),a8t=Xd().Buffer,i8t=new Array(64);function VH(){this.init(),this._w=i8t,o8t.call(this,64,56)}r8t(VH,n8t);VH.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};VH.prototype._hash=function(){var e=a8t.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};EJe.exports=VH});var wee=X((SKn,IJe)=>{\"use strict\";c();var s8t=Wu(),BJe=Hx(),c8t=Xd().Buffer,SJe=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],u8t=new Array(160);function a4(){this.init(),this._w=u8t,BJe.call(this,128,112)}s8t(a4,BJe);a4.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function CJe(e,t,r){return r^e&(t^r)}function TJe(e,t,r){return e&t|r&(e|t)}function _Je(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function kJe(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l8t(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function f8t(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function d8t(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function p8t(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Pa(e,t){return e>>>0<t>>>0?1:0}a4.prototype._update=function(e){for(var t=this._w,r=this._ah|0,n=this._bh|0,o=this._ch|0,s=this._dh|0,u=this._eh|0,f=this._fh|0,d=this._gh|0,m=this._hh|0,h=this._al|0,y=this._bl|0,v=this._cl|0,E=this._dl|0,C=this._el|0,B=this._fl|0,R=this._gl|0,M=this._hl|0,U=0;U<32;U+=2)t[U]=e.readInt32BE(U*4),t[U+1]=e.readInt32BE(U*4+4);for(;U<160;U+=2){var O=t[U-30],N=t[U-30+1],j=l8t(O,N),K=f8t(N,O);O=t[U-4],N=t[U-4+1];var G=d8t(O,N),J=p8t(N,O),Y=t[U-14],W=t[U-14+1],ie=t[U-32],re=t[U-32+1],H=K+W|0,A=j+Y+Pa(H,K)|0;H=H+J|0,A=A+G+Pa(H,J)|0,H=H+re|0,A=A+ie+Pa(H,re)|0,t[U]=A,t[U+1]=H}for(var T=0;T<160;T+=2){A=t[T],H=t[T+1];var P=TJe(r,n,o),D=TJe(h,y,v),L=_Je(r,h),V=_Je(h,r),Z=kJe(u,C),z=kJe(C,u),I=SJe[T],Q=SJe[T+1],me=CJe(u,f,d),ge=CJe(C,B,R),Se=M+z|0,Ce=m+Z+Pa(Se,M)|0;Se=Se+ge|0,Ce=Ce+me+Pa(Se,ge)|0,Se=Se+Q|0,Ce=Ce+I+Pa(Se,Q)|0,Se=Se+H|0,Ce=Ce+A+Pa(Se,H)|0;var $e=V+D|0,je=L+P+Pa($e,V)|0;m=d,M=R,d=f,R=B,f=u,B=C,C=E+Se|0,u=s+Ce+Pa(C,E)|0,s=o,E=v,o=n,v=y,n=r,y=h,h=Se+$e|0,r=Ce+je+Pa(h,Se)|0}this._al=this._al+h|0,this._bl=this._bl+y|0,this._cl=this._cl+v|0,this._dl=this._dl+E|0,this._el=this._el+C|0,this._fl=this._fl+B|0,this._gl=this._gl+R|0,this._hl=this._hl+M|0,this._ah=this._ah+r+Pa(this._al,h)|0,this._bh=this._bh+n+Pa(this._bl,y)|0,this._ch=this._ch+o+Pa(this._cl,v)|0,this._dh=this._dh+s+Pa(this._dl,E)|0,this._eh=this._eh+u+Pa(this._el,C)|0,this._fh=this._fh+f+Pa(this._fl,B)|0,this._gh=this._gh+d+Pa(this._gl,R)|0,this._hh=this._hh+m+Pa(this._hl,M)|0};a4.prototype._hash=function(){var e=c8t.allocUnsafe(64);function t(r,n,o){e.writeInt32BE(r,o),e.writeInt32BE(n,o+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};IJe.exports=a4});var RJe=X((TKn,PJe)=>{\"use strict\";c();var m8t=Wu(),h8t=wee(),y8t=Hx(),b8t=Xd().Buffer,g8t=new Array(160);function KH(){this.init(),this._w=g8t,y8t.call(this,128,112)}m8t(KH,h8t);KH.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};KH.prototype._hash=function(){var e=b8t.allocUnsafe(48);function t(r,n,o){e.writeInt32BE(r,o),e.writeInt32BE(n,o+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};PJe.exports=KH});var MJe=X((kKn,dh)=>{\"use strict\";c();dh.exports=function(t){var r=t.toLowerCase(),n=dh.exports[r];if(!n)throw new Error(r+\" is not supported (we accept pull requests)\");return new n};dh.exports.sha=yJe();dh.exports.sha1=xJe();dh.exports.sha224=AJe();dh.exports.sha256=vee();dh.exports.sha384=RJe();dh.exports.sha512=wee()});var QH=X(WH=>{\"use strict\";c();Object.defineProperty(WH,\"__esModule\",{value:!0});WH.Session=void 0;var OJe=MJe(),NJe=Zd(),UJe=\"session:id\",DJe=\"session:secret\",HJe=\"session:linked\",Eee=class e{constructor(t,r,n,o){this._storage=t,this._id=r||(0,NJe.randomBytesHex)(16),this._secret=n||(0,NJe.randomBytesHex)(32),this._key=new OJe.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest(\"hex\"),this._linked=!!o}static load(t){let r=t.getItem(UJe),n=t.getItem(HJe),o=t.getItem(DJe);return r&&o?new e(t,r,o,n===\"1\"):null}static hash(t){return new OJe.sha256().update(t).digest(\"hex\")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this._storage.setItem(UJe,this._id),this._storage.setItem(DJe,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(HJe,this._linked?\"1\":\"0\")}};WH.Session=Eee});var LJe=X(JH=>{\"use strict\";c();Object.defineProperty(JH,\"__esModule\",{value:!0});JH.Cipher=void 0;var ZH=Zd(),Aee=class{constructor(t){this.secret=t}async encrypt(t){let r=this.secret;if(r.length!==64)throw Error(\"secret must be 256 bits\");let n=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.importKey(\"raw\",(0,ZH.hexStringToUint8Array)(r),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),s=new TextEncoder,u=await window.crypto.subtle.encrypt({name:\"AES-GCM\",iv:n},o,s.encode(t)),f=16,d=u.slice(u.byteLength-f),m=u.slice(0,u.byteLength-f),h=new Uint8Array(d),y=new Uint8Array(m),v=new Uint8Array([...n,...h,...y]);return(0,ZH.uint8ArrayToHex)(v)}async decrypt(t){let r=this.secret;if(r.length!==64)throw Error(\"secret must be 256 bits\");return new Promise((n,o)=>{(async function(){let s=await crypto.subtle.importKey(\"raw\",(0,ZH.hexStringToUint8Array)(r),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),u=(0,ZH.hexStringToUint8Array)(t),f=u.slice(0,12),d=u.slice(12,28),m=u.slice(28),h=new Uint8Array([...m,...d]),y={name:\"AES-GCM\",iv:new Uint8Array(f)};try{let v=await window.crypto.subtle.decrypt(y,s,h),E=new TextDecoder;n(E.decode(v))}catch(v){o(v)}})()})}};JH.Cipher=Aee});var zJe=X(YH=>{\"use strict\";c();Object.defineProperty(YH,\"__esModule\",{value:!0});YH.WalletLinkHTTP=void 0;var See=class{constructor(t,r,n){this.linkAPIUrl=t,this.sessionId=r;let o=`${r}:${n}`;this.auth=`Basic ${btoa(o)}`}async markUnseenEventsAsSeen(t){return Promise.all(t.map(r=>fetch(`${this.linkAPIUrl}/events/${r.eventId}/seen`,{method:\"POST\",headers:{Authorization:this.auth}}))).catch(r=>console.error(\"Unabled to mark event as failed:\",r))}async fetchUnseenEvents(){var t;let r=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(r.ok){let{events:n,error:o}=await r.json();if(o)throw new Error(`Check unseen events failed: ${o}`);let s=(t=n?.filter(u=>u.event===\"Web3Response\").map(u=>({type:\"Event\",sessionId:this.sessionId,eventId:u.id,event:u.event,data:u.data})))!==null&&t!==void 0?t:[];return this.markUnseenEventsAsSeen(s),s}throw new Error(`Check unseen events failed: ${r.status}`)}};YH.WalletLinkHTTP=See});var FJe=X(v3=>{\"use strict\";c();Object.defineProperty(v3,\"__esModule\",{value:!0});v3.WalletLinkWebSocket=v3.ConnectionState=void 0;var x3;(function(e){e[e.DISCONNECTED=0]=\"DISCONNECTED\",e[e.CONNECTING=1]=\"CONNECTING\",e[e.CONNECTED=2]=\"CONNECTED\"})(x3||(v3.ConnectionState=x3={}));var Cee=class{setConnectionStateListener(t){this.connectionStateListener=t}setIncomingDataListener(t){this.incomingDataListener=t}constructor(t,r=WebSocket){this.WebSocketClass=r,this.webSocket=null,this.pendingData=[],this.url=t.replace(/^http/,\"ws\")}async connect(){if(this.webSocket)throw new Error(\"webSocket object is not null\");return new Promise((t,r)=>{var n;let o;try{this.webSocket=o=new this.WebSocketClass(this.url)}catch(s){r(s);return}(n=this.connectionStateListener)===null||n===void 0||n.call(this,x3.CONNECTING),o.onclose=s=>{var u;this.clearWebSocket(),r(new Error(`websocket error ${s.code}: ${s.reason}`)),(u=this.connectionStateListener)===null||u===void 0||u.call(this,x3.DISCONNECTED)},o.onopen=s=>{var u;t(),(u=this.connectionStateListener)===null||u===void 0||u.call(this,x3.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(d=>this.sendData(d)),this.pendingData=[])},o.onmessage=s=>{var u,f;if(s.data===\"h\")(u=this.incomingDataListener)===null||u===void 0||u.call(this,{type:\"Heartbeat\"});else try{let d=JSON.parse(s.data);(f=this.incomingDataListener)===null||f===void 0||f.call(this,d)}catch{}}})}disconnect(){var t;let{webSocket:r}=this;if(r){this.clearWebSocket(),(t=this.connectionStateListener)===null||t===void 0||t.call(this,x3.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{r.close()}catch{}}}sendData(t){let{webSocket:r}=this;if(!r){this.pendingData.push(t),this.connect();return}r.send(t)}clearWebSocket(){let{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}};v3.WalletLinkWebSocket=Cee});var $Je=X(eL=>{\"use strict\";c();Object.defineProperty(eL,\"__esModule\",{value:!0});eL.WalletLinkConnection=void 0;var w3=W_(),x8t=LJe(),ep=kH(),jJe=BH(),E3=QH(),v8t=zJe(),XH=FJe(),qJe=1e4,w8t=6e4,Tee=class{constructor({session:t,linkAPIUrl:r,listener:n,diagnostic:o,WebSocketClass:s=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,w3.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=f=>{if(!f)return;new Map([[\"__destroyed\",this.handleDestroyed],[\"EthereumAddress\",this.handleAccountUpdated],[\"WalletUsername\",this.handleWalletUsernameUpdated],[\"AppVersion\",this.handleAppVersionUpdated],[\"ChainId\",m=>f.JsonRpcUrl&&this.handleChainUpdated(m,f.JsonRpcUrl)]]).forEach((m,h)=>{let y=f[h];y!==void 0&&m(y)})},this.handleDestroyed=f=>{var d,m;f===\"1\"&&((d=this.listener)===null||d===void 0||d.resetAndReload(),(m=this.diagnostic)===null||m===void 0||m.log(ep.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:E3.Session.hash(this.session.id)}))},this.handleAccountUpdated=async f=>{var d,m;try{let h=await this.cipher.decrypt(f);(d=this.listener)===null||d===void 0||d.accountUpdated(h)}catch{(m=this.diagnostic)===null||m===void 0||m.log(ep.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:\"selectedAddress\"})}},this.handleMetadataUpdated=async(f,d)=>{var m,h;try{let y=await this.cipher.decrypt(d);(m=this.listener)===null||m===void 0||m.metadataUpdated(f,y)}catch{(h=this.diagnostic)===null||h===void 0||h.log(ep.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:f})}},this.handleWalletUsernameUpdated=async f=>{this.handleMetadataUpdated(jJe.WALLET_USER_NAME_KEY,f)},this.handleAppVersionUpdated=async f=>{this.handleMetadataUpdated(jJe.APP_VERSION_KEY,f)},this.handleChainUpdated=async(f,d)=>{var m,h;try{let y=await this.cipher.decrypt(f),v=await this.cipher.decrypt(d);(m=this.listener)===null||m===void 0||m.chainUpdated(y,v)}catch{(h=this.diagnostic)===null||h===void 0||h.log(ep.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:\"chainId|jsonRpcUrl\"})}},this.session=t,this.cipher=new x8t.Cipher(t.secret),this.diagnostic=o,this.listener=n;let u=new XH.WalletLinkWebSocket(`${r}/rpc`,s);u.setConnectionStateListener(async f=>{var d;(d=this.diagnostic)===null||d===void 0||d.log(ep.EVENTS.CONNECTED_STATE_CHANGE,{state:f,sessionIdHash:E3.Session.hash(t.id)});let m=!1;switch(f){case XH.ConnectionState.DISCONNECTED:if(!this.destroyed){let h=async()=>{await new Promise(y=>setTimeout(y,5e3)),this.destroyed||u.connect().catch(()=>{h()})};h()}break;case XH.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),m=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},qJe),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case XH.ConnectionState.CONNECTING:break}this.connected!==m&&(this.connected=m)}),u.setIncomingDataListener(f=>{var d,m,h;switch(f.type){case\"Heartbeat\":this.updateLastHeartbeat();return;case\"IsLinkedOK\":case\"Linked\":{let y=f.type===\"IsLinkedOK\"?f.linked:void 0;(d=this.diagnostic)===null||d===void 0||d.log(ep.EVENTS.LINKED,{sessionIdHash:E3.Session.hash(t.id),linked:y,type:f.type,onlineGuests:f.onlineGuests}),this.linked=y||f.onlineGuests>0;break}case\"GetSessionConfigOK\":case\"SessionConfigUpdated\":{(m=this.diagnostic)===null||m===void 0||m.log(ep.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:E3.Session.hash(t.id),metadata_keys:f&&f.metadata?Object.keys(f.metadata):void 0}),this.handleSessionMetadataUpdated(f.metadata);break}case\"Event\":{this.handleIncomingEvent(f);break}}f.id!==void 0&&((h=this.requestResolutions.get(f.id))===null||h===void 0||h(f))}),this.ws=u,this.http=new v8t.WalletLinkHTTP(r,t.id,t.key)}connect(){var t;if(this.destroyed)throw new Error(\"instance is destroyed\");(t=this.diagnostic)===null||t===void 0||t.log(ep.EVENTS.STARTED_CONNECTING,{sessionIdHash:E3.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var t;this.destroyed=!0,this.ws.disconnect(),(t=this.diagnostic)===null||t===void 0||t.log(ep.EVENTS.DISCONNECTED,{sessionIdHash:E3.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(t){var r,n;this._connected=t,t&&((r=this.onceConnected)===null||r===void 0||r.call(this)),(n=this.listener)===null||n===void 0||n.connectedUpdated(t)}setOnceConnected(t){return new Promise(r=>{this.connected?t().then(r):this.onceConnected=()=>{t().then(r),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(t){var r,n;this._linked=t,t&&((r=this.onceLinked)===null||r===void 0||r.call(this)),(n=this.listener)===null||n===void 0||n.linkedUpdated(t)}setOnceLinked(t){return new Promise(r=>{this.linked?t().then(r):this.onceLinked=()=>{t().then(r),this.onceLinked=void 0}})}async handleIncomingEvent(t){var r,n;if(!(t.type!==\"Event\"||t.event!==\"Web3Response\"))try{let o=await this.cipher.decrypt(t.data),s=JSON.parse(o);if(s.type!==\"WEB3_RESPONSE\")return;(r=this.listener)===null||r===void 0||r.handleWeb3ResponseMessage(s)}catch{(n=this.diagnostic)===null||n===void 0||n.log(ep.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:\"incomingEvent\"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(t=>setTimeout(t,250));try{await this.fetchUnseenEventsAPI()}catch(t){console.error(\"Unable to check for unseen events\",t)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(r=>this.handleIncomingEvent(r))}async setSessionMetadata(t,r){let n={type:\"SetSessionConfig\",id:(0,w3.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[t]:r}};return this.setOnceConnected(async()=>{let o=await this.makeRequest(n);if(o.type===\"Fail\")throw new Error(o.error||\"failed to set session metadata\")})}async publishEvent(t,r,n=!1){let o=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},r),{origin:location.origin,relaySource:window.coinbaseWalletExtension?\"injected_sdk\":\"sdk\"}))),s={type:\"PublishEvent\",id:(0,w3.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:t,data:o,callWebhook:n};return this.setOnceLinked(async()=>{let u=await this.makeRequest(s);if(u.type===\"Fail\")throw new Error(u.error||\"failed to publish event\");return u.eventId})}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>qJe*2){this.ws.disconnect();return}try{this.ws.sendData(\"h\")}catch{}}async makeRequest(t,r=w8t){let n=t.id;this.sendData(t);let o;return Promise.race([new Promise((s,u)=>{o=window.setTimeout(()=>{u(new Error(`request ${n} timed out`))},r)}),new Promise(s=>{this.requestResolutions.set(n,u=>{clearTimeout(o),s(u),this.requestResolutions.delete(n)})})])}async authenticate(){let t={type:\"HostSession\",id:(0,w3.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},r=await this.makeRequest(t);if(r.type===\"Fail\")throw new Error(r.error||\"failed to authentcate\")}sendIsLinked(){let t={type:\"IsLinked\",id:(0,w3.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}sendGetSessionConfig(){let t={type:\"GetSessionConfig\",id:(0,w3.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}};eL.WalletLinkConnection=Tee});var GJe=X(_ee=>{\"use strict\";c();Object.defineProperty(_ee,\"__esModule\",{value:!0});_ee.default=\\'@namespace svg \"http://www.w3.org/2000/svg\";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:\"\\\\\\\\201C\" \"\\\\\\\\201D\" \"\\\\\\\\2018\" \"\\\\\\\\2019\";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}\\'});var kee=X(A3=>{\"use strict\";c();var E8t=A3&&A3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(A3,\"__esModule\",{value:!0});A3.injectCssReset=void 0;var A8t=E8t(GJe());function S8t(){let e=document.createElement(\"style\");e.type=\"text/css\",e.appendChild(document.createTextNode(A8t.default)),document.documentElement.appendChild(e)}A3.injectCssReset=S8t});var fs={};Wn(fs,{Component:()=>c4,Fragment:()=>f4,cloneElement:()=>R8t,createContext:()=>M8t,createElement:()=>tYe,createRef:()=>T8t,h:()=>tYe,hydrate:()=>lYe,isValidElement:()=>ZJe,options:()=>kn,render:()=>uYe,toChildArray:()=>aYe});function tp(e,t){for(var r in t)e[r]=t[r];return e}function Nee(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function tYe(e,t,r){var n,o,s,u={};for(s in t)s==\"key\"?n=t[s]:s==\"ref\"?o=t[s]:u[s]=t[s];if(arguments.length>2&&(u.children=arguments.length>3?u4.call(arguments,2):r),typeof e==\"function\"&&e.defaultProps!=null)for(s in e.defaultProps)u[s]===void 0&&(u[s]=e.defaultProps[s]);return s4(e,u,n,o,null)}function s4(e,t,r,n,o){var s={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++QJe,__i:-1,__u:0};return o==null&&kn.vnode!=null&&kn.vnode(s),s}function T8t(){return{current:null}}function f4(e){return e.children}function c4(e,t){this.props=e,this.context=t}function S3(e,t){if(t==null)return e.__?S3(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type==\"function\"?S3(e):null}function _8t(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],o=[],s=tp({},t);s.__v=t.__v+1,kn.vnode&&kn.vnode(s),Uee(e.__P,s,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,r??S3(t),!!(32&t.__u),o),s.__v=t.__v,s.__.__k[s.__i]=s,iYe(n,s,o),t.__e=t.__=null,s.__e!=r&&rYe(s)}}function rYe(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),rYe(e)}function Ree(e){(!e.__d&&(e.__d=!0)&&cb.push(e)&&!aL.__r++||VJe!=kn.debounceRendering)&&((VJe=kn.debounceRendering)||JJe)(aL)}function aL(){try{for(var e,t=1;cb.length;)cb.length>t&&cb.sort(YJe),e=cb.shift(),t=cb.length,_8t(e)}finally{cb.length=aL.__r=0}}function nYe(e,t,r,n,o,s,u,f,d,m,h){var y,v,E,C,B,R,M,U=n&&n.__k||oL,O=t.length;for(d=k8t(r,t,U,d,O),y=0;y<O;y++)(E=r.__k[y])!=null&&(v=E.__i!=-1&&U[E.__i]||nL,E.__i=y,R=Uee(e,E,v,o,s,u,f,d,m,h),C=E.__e,E.ref&&v.ref!=E.ref&&(v.ref&&Dee(v.ref,null,E),h.push(E.ref,E.__c||C,E)),B==null&&C!=null&&(B=C),(M=!!(4&E.__u))||v.__k===E.__k?(d=oYe(E,d,e,M),M&&v.__e&&(v.__e=null)):typeof E.type==\"function\"&&R!==void 0?d=R:C&&(d=C.nextSibling),E.__u&=-7);return r.__e=B,d}function k8t(e,t,r,n,o){var s,u,f,d,m,h=r.length,y=h,v=0;for(e.__k=new Array(o),s=0;s<o;s++)(u=t[s])!=null&&typeof u!=\"boolean\"&&typeof u!=\"function\"?(typeof u==\"string\"||typeof u==\"number\"||typeof u==\"bigint\"||u.constructor==String?u=e.__k[s]=s4(null,u,null,null,null):l4(u)?u=e.__k[s]=s4(f4,{children:u},null,null,null):u.constructor===void 0&&u.__b>0?u=e.__k[s]=s4(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):e.__k[s]=u,d=s+v,u.__=e,u.__b=e.__b+1,f=null,(m=u.__i=B8t(u,r,d,y))!=-1&&(y--,(f=r[m])&&(f.__u|=2)),f==null||f.__v==null?(m==-1&&(o>h?v--:o<h&&v++),typeof u.type!=\"function\"&&(u.__u|=4)):m!=d&&(m==d-1?v--:m==d+1?v++:(m>d?v--:v++,u.__u|=4))):e.__k[s]=null;if(y)for(s=0;s<h;s++)(f=r[s])!=null&&(2&f.__u)==0&&(f.__e==n&&(n=S3(f)),cYe(f,f));return n}function oYe(e,t,r,n){var o,s;if(typeof e.type==\"function\"){for(o=e.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=e,t=oYe(o[s],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=S3(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function aYe(e,t){return t=t||[],e==null||typeof e==\"boolean\"||(l4(e)?e.some(function(r){aYe(r,t)}):t.push(e)),t}function B8t(e,t,r,n){var o,s,u,f=e.key,d=e.type,m=t[r],h=m!=null&&(2&m.__u)==0;if(m===null&&f==null||h&&f==m.key&&d==m.type)return r;if(n>(h?1:0)){for(o=r-1,s=r+1;o>=0||s<t.length;)if((m=t[u=o>=0?o--:s++])!=null&&(2&m.__u)==0&&f==m.key&&d==m.type)return u}return-1}function KJe(e,t,r){t[0]==\"-\"?e.setProperty(t,r??\"\"):e[t]=r==null?\"\":typeof r!=\"number\"||C8t.test(t)?r:r+\"px\"}function tL(e,t,r,n,o){var s,u;e:if(t==\"style\")if(typeof r==\"string\")e.style.cssText=r;else{if(typeof n==\"string\"&&(e.style.cssText=n=\"\"),n)for(t in n)r&&t in r||KJe(e.style,t,\"\");if(r)for(t in r)n&&r[t]==n[t]||KJe(e.style,t,r[t])}else if(t[0]==\"o\"&&t[1]==\"n\")s=t!=(t=t.replace(XJe,\"$1\")),u=t.toLowerCase(),t=u in e||t==\"onFocusOut\"||t==\"onFocusIn\"?u.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=r,r?n?r[i4]=n[i4]:(r[i4]=Oee,e.addEventListener(t,s?Pee:Iee,s)):e.removeEventListener(t,s?Pee:Iee,s);else{if(o==\"http://www.w3.org/2000/svg\")t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(t!=\"width\"&&t!=\"height\"&&t!=\"href\"&&t!=\"list\"&&t!=\"form\"&&t!=\"tabIndex\"&&t!=\"download\"&&t!=\"rowSpan\"&&t!=\"colSpan\"&&t!=\"role\"&&t!=\"popover\"&&t in e)try{e[t]=r??\"\";break e}catch{}typeof r==\"function\"||(r==null||r===!1&&t[4]!=\"-\"?e.removeAttribute(t):e.setAttribute(t,t==\"popover\"&&r==1?\"\":r))}}function WJe(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[rL]==null)t[rL]=Oee++;else if(t[rL]<r[i4])return;return r(kn.event?kn.event(t):t)}}}function Uee(e,t,r,n,o,s,u,f,d,m){var h,y,v,E,C,B,R,M,U,O,N,j,K,G,J,Y=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(d=!!(32&r.__u),s=[f=t.__e=r.__e]),(h=kn.__b)&&h(t);e:if(typeof Y==\"function\")try{if(M=t.props,U=Y.prototype&&Y.prototype.render,O=(h=Y.contextType)&&n[h.__c],N=h?O?O.props.value:h.__:n,r.__c?R=(y=t.__c=r.__c).__=y.__E:(U?t.__c=y=new Y(M,N):(t.__c=y=new c4(M,N),y.constructor=Y,y.render=P8t),O&&O.sub(y),y.state||(y.state={}),y.__n=n,v=y.__d=!0,y.__h=[],y._sb=[]),U&&y.__s==null&&(y.__s=y.state),U&&Y.getDerivedStateFromProps!=null&&(y.__s==y.state&&(y.__s=tp({},y.__s)),tp(y.__s,Y.getDerivedStateFromProps(M,y.__s))),E=y.props,C=y.state,y.__v=t,v)U&&Y.getDerivedStateFromProps==null&&y.componentWillMount!=null&&y.componentWillMount(),U&&y.componentDidMount!=null&&y.__h.push(y.componentDidMount);else{if(U&&Y.getDerivedStateFromProps==null&&M!==E&&y.componentWillReceiveProps!=null&&y.componentWillReceiveProps(M,N),t.__v==r.__v||!y.__e&&y.shouldComponentUpdate!=null&&y.shouldComponentUpdate(M,y.__s,N)===!1){t.__v!=r.__v&&(y.props=M,y.state=y.__s,y.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(W){W&&(W.__=t)}),oL.push.apply(y.__h,y._sb),y._sb=[],y.__h.length&&u.push(y);break e}y.componentWillUpdate!=null&&y.componentWillUpdate(M,y.__s,N),U&&y.componentDidUpdate!=null&&y.__h.push(function(){y.componentDidUpdate(E,C,B)})}if(y.context=N,y.props=M,y.__P=e,y.__e=!1,j=kn.__r,K=0,U)y.state=y.__s,y.__d=!1,j&&j(t),h=y.render(y.props,y.state,y.context),oL.push.apply(y.__h,y._sb),y._sb=[];else do y.__d=!1,j&&j(t),h=y.render(y.props,y.state,y.context),y.state=y.__s;while(y.__d&&++K<25);y.state=y.__s,y.getChildContext!=null&&(n=tp(tp({},n),y.getChildContext())),U&&!v&&y.getSnapshotBeforeUpdate!=null&&(B=y.getSnapshotBeforeUpdate(E,C)),G=h!=null&&h.type===f4&&h.key==null?sYe(h.props.children):h,f=nYe(e,l4(G)?G:[G],t,r,n,o,s,u,f,d,m),y.base=t.__e,t.__u&=-161,y.__h.length&&u.push(y),R&&(y.__E=y.__=null)}catch(W){if(t.__v=null,d||s!=null)if(W.then){for(t.__u|=d?160:128;f&&f.nodeType==8&&f.nextSibling;)f=f.nextSibling;s[s.indexOf(f)]=null,t.__e=f}else{for(J=s.length;J--;)Nee(s[J]);Mee(t)}else t.__e=r.__e,t.__k=r.__k,W.then||Mee(t);kn.__e(W,t,r)}else s==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):f=t.__e=I8t(r.__e,t,r,n,o,s,u,d,m);return(h=kn.diffed)&&h(t),128&t.__u?void 0:f}function Mee(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Mee))}function iYe(e,t,r){for(var n=0;n<r.length;n++)Dee(r[n],r[++n],r[++n]);kn.__c&&kn.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){kn.__e(s,o.__v)}})}function sYe(e){return typeof e!=\"object\"||e==null||e.__b>0?e:l4(e)?e.map(sYe):tp({},e)}function I8t(e,t,r,n,o,s,u,f,d){var m,h,y,v,E,C,B,R=r.props||nL,M=t.props,U=t.type;if(U==\"svg\"?o=\"http://www.w3.org/2000/svg\":U==\"math\"?o=\"http://www.w3.org/1998/Math/MathML\":o||(o=\"http://www.w3.org/1999/xhtml\"),s!=null){for(m=0;m<s.length;m++)if((E=s[m])&&\"setAttribute\"in E==!!U&&(U?E.localName==U:E.nodeType==3)){e=E,s[m]=null;break}}if(e==null){if(U==null)return document.createTextNode(M);e=document.createElementNS(o,U,M.is&&M),f&&(kn.__m&&kn.__m(t,s),f=!1),s=null}if(U==null)R===M||f&&e.data==M||(e.data=M);else{if(s=s&&u4.call(e.childNodes),!f&&s!=null)for(R={},m=0;m<e.attributes.length;m++)R[(E=e.attributes[m]).name]=E.value;for(m in R)E=R[m],m==\"dangerouslySetInnerHTML\"?y=E:m==\"children\"||m in M||m==\"value\"&&\"defaultValue\"in M||m==\"checked\"&&\"defaultChecked\"in M||tL(e,m,null,E,o);for(m in M)E=M[m],m==\"children\"?v=E:m==\"dangerouslySetInnerHTML\"?h=E:m==\"value\"?C=E:m==\"checked\"?B=E:f&&typeof E!=\"function\"||R[m]===E||tL(e,m,E,R[m],o);if(h)f||y&&(h.__html==y.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(y&&(e.innerHTML=\"\"),nYe(t.type==\"template\"?e.content:e,l4(v)?v:[v],t,r,n,U==\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":o,s,u,s?s[0]:r.__k&&S3(r,0),f,d),s!=null)for(m=s.length;m--;)Nee(s[m]);f||(m=\"value\",U==\"progress\"&&C==null?e.removeAttribute(\"value\"):C!=null&&(C!==e[m]||U==\"progress\"&&!C||U==\"option\"&&C!=R[m])&&tL(e,m,C,R[m],o),m=\"checked\",B!=null&&B!=e[m]&&tL(e,m,B,R[m],o))}return e}function Dee(e,t,r){try{if(typeof e==\"function\"){var n=typeof e.__u==\"function\";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){kn.__e(o,r)}}function cYe(e,t,r){var n,o;if(kn.unmount&&kn.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||Dee(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(s){kn.__e(s,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&cYe(n[o],t,r||typeof e.type!=\"function\");r||Nee(e.__e),e.__c=e.__=e.__e=void 0}function P8t(e,t,r){return this.constructor(e,r)}function uYe(e,t,r){var n,o,s,u;t==document&&(t=document.documentElement),kn.__&&kn.__(e,t),o=(n=typeof r==\"function\")?null:r&&r.__k||t.__k,s=[],u=[],Uee(t,e=(!n&&r||t).__k=tYe(f4,null,[e]),o||nL,nL,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?u4.call(t.childNodes):null,s,!n&&r?r:o?o.__e:t.firstChild,n,u),iYe(s,e,u)}function lYe(e,t){uYe(e,t,lYe)}function R8t(e,t,r){var n,o,s,u,f=tp({},e.props);for(s in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)s==\"key\"?n=t[s]:s==\"ref\"?o=t[s]:f[s]=t[s]===void 0&&u!=null?u[s]:t[s];return arguments.length>2&&(f.children=arguments.length>3?u4.call(arguments,2):r),s4(e.type,f,n||e.key,o||e.ref,null)}function M8t(e){function t(r){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&n.forEach(function(u){u.__e=!0,Ree(u)})},this.sub=function(s){n.add(s);var u=s.componentWillUnmount;s.componentWillUnmount=function(){n&&n.delete(s),u&&u.call(s)}}),r.children}return t.__c=\"__cC\"+eYe++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var u4,kn,QJe,ZJe,cb,VJe,JJe,YJe,Bee,rL,i4,XJe,Oee,Iee,Pee,eYe,nL,oL,C8t,l4,Ti=x(()=>{c();nL={},oL=[],C8t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,l4=Array.isArray;u4=oL.slice,kn={__e:function(e,t,r,n){for(var o,s,u;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),u=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),u=o.__d),u)return o.__E=o}catch(f){e=f}throw e}},QJe=0,ZJe=function(e){return e!=null&&e.constructor===void 0},c4.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=tp({},this.state),typeof e==\"function\"&&(e=e(tp({},r),this.props)),e&&tp(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ree(this))},c4.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ree(this))},c4.prototype.render=f4,cb=[],JJe=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,YJe=function(e,t){return e.__v.__b-t.__v.__b},aL.__r=0,Bee=Math.random().toString(8),rL=\"__d\"+Bee,i4=\"__a\"+Bee,XJe=/(PointerCapture)$|Capture$/i,Oee=0,Iee=WJe(!1),Pee=WJe(!0),eYe=0});var d4={};Wn(d4,{useCallback:()=>D8t,useContext:()=>H8t,useDebugValue:()=>L8t,useEffect:()=>O8t,useErrorBoundary:()=>z8t,useId:()=>F8t,useImperativeHandle:()=>U8t,useLayoutEffect:()=>EYe,useMemo:()=>zee,useReducer:()=>wYe,useRef:()=>N8t,useState:()=>vYe});function Lx(e,t){so.__h&&so.__h(Bn,e,C3||t),C3=0;var r=Bn.__H||(Bn.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function vYe(e){return C3=1,wYe(AYe,e)}function wYe(e,t,r){var n=Lx(ph++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):AYe(void 0,t),function(f){var d=n.__N?n.__N[0]:n.__[0],m=n.t(d,f);d!==m&&(n.__N=[m,n.__[1]],n.__c.setState({}))}],n.__c=Bn,!Bn.__f)){var o=function(f,d,m){if(!n.__c.__H)return!0;var h=n.__c.__H.__.filter(function(v){return v.__c});if(h.every(function(v){return!v.__N}))return!s||s.call(this,f,d,m);var y=n.__c.props!==f;return h.some(function(v){if(v.__N){var E=v.__[0];v.__=v.__N,v.__N=void 0,E!==v.__[0]&&(y=!0)}}),s&&s.call(this,f,d,m)||y};Bn.__f=!0;var s=Bn.shouldComponentUpdate,u=Bn.componentWillUpdate;Bn.componentWillUpdate=function(f,d,m){if(this.__e){var h=s;s=void 0,o(f,d,m),s=h}u&&u.call(this,f,d,m)},Bn.shouldComponentUpdate=o}return n.__N||n.__}function O8t(e,t){var r=Lx(ph++,3);!so.__s&&Fee(r.__H,t)&&(r.__=e,r.u=t,Bn.__H.__h.push(r))}function EYe(e,t){var r=Lx(ph++,4);!so.__s&&Fee(r.__H,t)&&(r.__=e,r.u=t,Bn.__h.push(r))}function N8t(e){return C3=5,zee(function(){return{current:e}},[])}function U8t(e,t,r){C3=6,EYe(function(){if(typeof e==\"function\"){var n=e(t());return function(){e(null),n&&typeof n==\"function\"&&n()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function zee(e,t){var r=Lx(ph++,7);return Fee(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function D8t(e,t){return C3=8,zee(function(){return e},t)}function H8t(e){var t=Bn.context[e.__c],r=Lx(ph++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Bn)),t.props.value):e.__}function L8t(e,t){so.useDebugValue&&so.useDebugValue(t?t(e):e)}function z8t(e){var t=Lx(ph++,10),r=vYe();return t.__=e,Bn.componentDidCatch||(Bn.componentDidCatch=function(n,o){t.__&&t.__(n,o),r[1](n)}),[r[0],function(){r[1](void 0)}]}function F8t(){var e=Lx(ph++,11);if(!e.__){for(var t=Bn.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__=\"P\"+r[0]+\"-\"+r[1]++}return e.__}function j8t(){for(var e;e=xYe.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(iL),t.__h.some(Lee),t.__h=[]}catch(r){t.__h=[],so.__e(r,e.__v)}}}function q8t(e){var t,r=function(){clearTimeout(n),gYe&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);gYe&&(t=requestAnimationFrame(r))}function iL(e){var t=Bn,r=e.__c;typeof r==\"function\"&&(e.__c=void 0,r()),Bn=t}function Lee(e){var t=Bn;e.__c=e.__(),Bn=t}function Fee(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function AYe(e,t){return typeof t==\"function\"?t(e):t}var ph,Bn,Hee,fYe,C3,xYe,so,dYe,pYe,mYe,hYe,yYe,bYe,gYe,p4=x(()=>{c();Ti();C3=0,xYe=[],so=kn,dYe=so.__b,pYe=so.__r,mYe=so.diffed,hYe=so.__c,yYe=so.unmount,bYe=so.__;so.__b=function(e){Bn=null,dYe&&dYe(e)},so.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),bYe&&bYe(e,t)},so.__r=function(e){pYe&&pYe(e),ph=0;var t=(Bn=e.__c).__H;t&&(Hee===Bn?(t.__h=[],Bn.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.some(iL),t.__h.some(Lee),t.__h=[],ph=0)),Hee=Bn},so.diffed=function(e){mYe&&mYe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(xYe.push(t)!==1&&fYe===so.requestAnimationFrame||((fYe=so.requestAnimationFrame)||q8t)(j8t)),t.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Hee=Bn=null},so.__c=function(e,t){t.some(function(r){try{r.__h.some(iL),r.__h=r.__h.filter(function(n){return!n.__||Lee(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],so.__e(n,r.__v)}}),hYe&&hYe(e,t)},so.unmount=function(e){yYe&&yYe(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{iL(n)}catch(o){t=o}}),r.__H=void 0,t&&so.__e(t,r.__v))};gYe=typeof requestAnimationFrame==\"function\"});var CYe=X(sL=>{\"use strict\";c();Object.defineProperty(sL,\"__esModule\",{value:!0});sL.CloseIcon=void 0;var SYe=(Ti(),Kr(fs));function $8t(e){return(0,SYe.h)(\"svg\",Object.assign({width:\"40\",height:\"40\",viewBox:\"0 0 40 40\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,SYe.h)(\"path\",{d:\"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z\"}))}sL.CloseIcon=$8t});var TYe=X(uL=>{\"use strict\";c();Object.defineProperty(uL,\"__esModule\",{value:!0});uL.CoinbaseWalletRound=void 0;var cL=(Ti(),Kr(fs));function G8t(e){return(0,cL.h)(\"svg\",Object.assign({width:\"28\",height:\"28\",viewBox:\"0 0 28 28\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,cL.h)(\"circle\",{cx:\"14\",cy:\"14\",r:\"14\",fill:\"#0052FF\"}),(0,cL.h)(\"path\",{d:\"M23.8521 14.0003C23.8521 19.455 19.455 23.8521 14.0003 23.8521C8.54559 23.8521 4.14844 19.455 4.14844 14.0003C4.14844 8.54559 8.54559 4.14844 14.0003 4.14844C19.455 4.14844 23.8521 8.54559 23.8521 14.0003Z\",fill:\"white\"}),(0,cL.h)(\"path\",{d:\"M11.1855 12.5042C11.1855 12.0477 11.1855 11.7942 11.2835 11.642C11.3814 11.4899 11.4793 11.3377 11.6261 11.287C11.8219 11.1855 12.0178 11.1855 12.5073 11.1855H15.4934C15.983 11.1855 16.1788 11.1855 16.3746 11.287C16.5215 11.3884 16.6683 11.4899 16.7173 11.642C16.8152 11.8449 16.8152 12.0477 16.8152 12.5042V15.4965C16.8152 15.953 16.8152 16.2066 16.7173 16.3587C16.6194 16.5109 16.5215 16.663 16.3746 16.7137C16.1788 16.8152 15.983 16.8152 15.4934 16.8152H12.5073C12.0178 16.8152 11.8219 16.8152 11.6261 16.7137C11.4793 16.6123 11.3324 16.5109 11.2835 16.3587C11.1855 16.1558 11.1855 15.953 11.1855 15.4965V12.5042Z\",fill:\"#0052FF\"}))}uL.CoinbaseWalletRound=G8t});var _Ye=X(lL=>{\"use strict\";c();Object.defineProperty(lL,\"__esModule\",{value:!0});lL.QRCodeIcon=void 0;var m4=(Ti(),Kr(fs));function V8t(e){return(0,m4.h)(\"svg\",Object.assign({width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,m4.h)(\"path\",{d:\"M3 3V8.99939L5 8.99996V5H9V3H3Z\"}),(0,m4.h)(\"path\",{d:\"M15 21L21 21V15.0006L19 15V19L15 19V21Z\"}),(0,m4.h)(\"path\",{d:\"M21 9H19V5H15.0006L15 3H21V9Z\"}),(0,m4.h)(\"path\",{d:\"M3 15V21H8.99939L8.99996 19H5L5 15H3Z\"}))}lL.QRCodeIcon=V8t});var RYe=X((XKn,PYe)=>{c();function kYe(e){this.mode=Lc.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,r=this.data.length;t<r;t++){var n=[],o=this.data.charCodeAt(t);o>65536?(n[0]=240|(o&1835008)>>>18,n[1]=128|(o&258048)>>>12,n[2]=128|(o&4032)>>>6,n[3]=128|o&63):o>2048?(n[0]=224|(o&61440)>>>12,n[1]=128|(o&4032)>>>6,n[2]=128|o&63):o>128?(n[0]=192|(o&1984)>>>6,n[1]=128|o&63):n[0]=o,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}kYe.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,r=this.parsedData.length;t<r;t++)e.put(this.parsedData[t],8)}};function np(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}np.prototype={addData:function(e){var t=new kYe(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+\",\"+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=np.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(0<=r&&r<=6&&(n==0||n==6)||0<=n&&n<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[e+r][t+n]=!0:this.modules[e+r][t+n]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=co.getLostPoint(this);(r==0||e>n)&&(e=n,t=r)}return t},createMovieClip:function(e,t,r){var n=e.createEmptyMovieClip(t,r),o=1;this.make();for(var s=0;s<this.modules.length;s++)for(var u=s*o,f=0;f<this.modules[s].length;f++){var d=f*o,m=this.modules[s][f];m&&(n.beginFill(0,100),n.moveTo(d,u),n.lineTo(d+o,u),n.lineTo(d+o,u+o),n.lineTo(d,u+o),n.endFill())}return n},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=co.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var n=e[t],o=e[r];if(this.modules[n][o]==null)for(var s=-2;s<=2;s++)for(var u=-2;u<=2;u++)s==-2||s==2||u==-2||u==2||s==0&&u==0?this.modules[n+s][o+u]=!0:this.modules[n+s][o+u]=!1}},setupTypeNumber:function(e){for(var t=co.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=co.getBCHTypeInfo(r),o=0;o<15;o++){var s=!e&&(n>>o&1)==1;o<6?this.modules[o][8]=s:o<8?this.modules[o+1][8]=s:this.modules[this.moduleCount-15+o][8]=s}for(var o=0;o<15;o++){var s=!e&&(n>>o&1)==1;o<8?this.modules[8][this.moduleCount-o-1]=s:o<9?this.modules[8][15-o-1+1]=s:this.modules[8][15-o-1]=s}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var r=-1,n=this.moduleCount-1,o=7,s=0,u=this.moduleCount-1;u>0;u-=2)for(u==6&&u--;;){for(var f=0;f<2;f++)if(this.modules[n][u-f]==null){var d=!1;s<e.length&&(d=(e[s]>>>o&1)==1);var m=co.getMask(t,n,u-f);m&&(d=!d),this.modules[n][u-f]=d,o--,o==-1&&(s++,o=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}};np.PAD0=236;np.PAD1=17;np.createData=function(e,t,r){for(var n=rp.getRSBlocks(e,t),o=new BYe,s=0;s<r.length;s++){var u=r[s];o.put(u.mode,4),o.put(u.getLength(),co.getLengthInBits(u.mode,e)),u.write(o)}for(var f=0,s=0;s<n.length;s++)f+=n[s].dataCount;if(o.getLengthInBits()>f*8)throw new Error(\"code length overflow. (\"+o.getLengthInBits()+\">\"+f*8+\")\");for(o.getLengthInBits()+4<=f*8&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=f*8||(o.put(np.PAD0,8),o.getLengthInBits()>=f*8));)o.put(np.PAD1,8);return np.createBytes(o,n)};np.createBytes=function(e,t){for(var r=0,n=0,o=0,s=new Array(t.length),u=new Array(t.length),f=0;f<t.length;f++){var d=t[f].dataCount,m=t[f].totalCount-d;n=Math.max(n,d),o=Math.max(o,m),s[f]=new Array(d);for(var h=0;h<s[f].length;h++)s[f][h]=255&e.buffer[h+r];r+=d;var y=co.getErrorCorrectPolynomial(m),v=new T3(s[f],y.getLength()-1),E=v.mod(y);u[f]=new Array(y.getLength()-1);for(var h=0;h<u[f].length;h++){var C=h+E.getLength()-u[f].length;u[f][h]=C>=0?E.get(C):0}}for(var B=0,h=0;h<t.length;h++)B+=t[h].totalCount;for(var R=new Array(B),M=0,h=0;h<n;h++)for(var f=0;f<t.length;f++)h<s[f].length&&(R[M++]=s[f][h]);for(var h=0;h<o;h++)for(var f=0;f<t.length;f++)h<u[f].length&&(R[M++]=u[f][h]);return R};var Lc={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},lb={L:1,M:0,Q:3,H:2},ub={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},co={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;co.getBCHDigit(t)-co.getBCHDigit(co.G15)>=0;)t^=co.G15<<co.getBCHDigit(t)-co.getBCHDigit(co.G15);return(e<<10|t)^co.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;co.getBCHDigit(t)-co.getBCHDigit(co.G18)>=0;)t^=co.G18<<co.getBCHDigit(t)-co.getBCHDigit(co.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return co.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case ub.PATTERN000:return(t+r)%2==0;case ub.PATTERN001:return t%2==0;case ub.PATTERN010:return r%3==0;case ub.PATTERN011:return(t+r)%3==0;case ub.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case ub.PATTERN101:return t*r%2+t*r%3==0;case ub.PATTERN110:return(t*r%2+t*r%3)%2==0;case ub.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error(\"bad maskPattern:\"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new T3([1],0),r=0;r<e;r++)t=t.multiply(new T3([1,Ra.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case Lc.MODE_NUMBER:return 10;case Lc.MODE_ALPHA_NUM:return 9;case Lc.MODE_8BIT_BYTE:return 8;case Lc.MODE_KANJI:return 8;default:throw new Error(\"mode:\"+e)}else if(t<27)switch(e){case Lc.MODE_NUMBER:return 12;case Lc.MODE_ALPHA_NUM:return 11;case Lc.MODE_8BIT_BYTE:return 16;case Lc.MODE_KANJI:return 10;default:throw new Error(\"mode:\"+e)}else if(t<41)switch(e){case Lc.MODE_NUMBER:return 14;case Lc.MODE_ALPHA_NUM:return 13;case Lc.MODE_8BIT_BYTE:return 16;case Lc.MODE_KANJI:return 12;default:throw new Error(\"mode:\"+e)}else throw new Error(\"type:\"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n++)for(var o=0;o<t;o++){for(var s=0,u=e.isDark(n,o),f=-1;f<=1;f++)if(!(n+f<0||t<=n+f))for(var d=-1;d<=1;d++)o+d<0||t<=o+d||f==0&&d==0||u==e.isDark(n+f,o+d)&&s++;s>5&&(r+=3+s-5)}for(var n=0;n<t-1;n++)for(var o=0;o<t-1;o++){var m=0;e.isDark(n,o)&&m++,e.isDark(n+1,o)&&m++,e.isDark(n,o+1)&&m++,e.isDark(n+1,o+1)&&m++,(m==0||m==4)&&(r+=3)}for(var n=0;n<t;n++)for(var o=0;o<t-6;o++)e.isDark(n,o)&&!e.isDark(n,o+1)&&e.isDark(n,o+2)&&e.isDark(n,o+3)&&e.isDark(n,o+4)&&!e.isDark(n,o+5)&&e.isDark(n,o+6)&&(r+=40);for(var o=0;o<t;o++)for(var n=0;n<t-6;n++)e.isDark(n,o)&&!e.isDark(n+1,o)&&e.isDark(n+2,o)&&e.isDark(n+3,o)&&e.isDark(n+4,o)&&!e.isDark(n+5,o)&&e.isDark(n+6,o)&&(r+=40);for(var h=0,o=0;o<t;o++)for(var n=0;n<t;n++)e.isDark(n,o)&&h++;var y=Math.abs(100*h/t/t-50)/5;return r+=y*10,r}},Ra={glog:function(e){if(e<1)throw new Error(\"glog(\"+e+\")\");return Ra.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Ra.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(ea=0;ea<8;ea++)Ra.EXP_TABLE[ea]=1<<ea;var ea;for(ea=8;ea<256;ea++)Ra.EXP_TABLE[ea]=Ra.EXP_TABLE[ea-4]^Ra.EXP_TABLE[ea-5]^Ra.EXP_TABLE[ea-6]^Ra.EXP_TABLE[ea-8];var ea;for(ea=0;ea<255;ea++)Ra.LOG_TABLE[Ra.EXP_TABLE[ea]]=ea;var ea;function T3(e,t){if(e.length==null)throw new Error(e.length+\"/\"+t);for(var r=0;r<e.length&&e[r]==0;)r++;this.num=new Array(e.length-r+t);for(var n=0;n<e.length-r;n++)this.num[n]=e[n+r]}T3.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var n=0;n<e.getLength();n++)t[r+n]^=Ra.gexp(Ra.glog(this.get(r))+Ra.glog(e.get(n)));return new T3(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=Ra.glog(this.get(0))-Ra.glog(e.get(0)),r=new Array(this.getLength()),n=0;n<this.getLength();n++)r[n]=this.get(n);for(var n=0;n<e.getLength();n++)r[n]^=Ra.gexp(Ra.glog(e.get(n))+t);return new T3(r,0).mod(e)}};function rp(e,t){this.totalCount=e,this.dataCount=t}rp.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];rp.getRSBlocks=function(e,t){var r=rp.getRsBlockTable(e,t);if(r==null)throw new Error(\"bad rs block @ typeNumber:\"+e+\"/errorCorrectLevel:\"+t);for(var n=r.length/3,o=[],s=0;s<n;s++)for(var u=r[s*3+0],f=r[s*3+1],d=r[s*3+2],m=0;m<u;m++)o.push(new rp(f,d));return o};rp.getRsBlockTable=function(e,t){switch(t){case lb.L:return rp.RS_BLOCK_TABLE[(e-1)*4+0];case lb.M:return rp.RS_BLOCK_TABLE[(e-1)*4+1];case lb.Q:return rp.RS_BLOCK_TABLE[(e-1)*4+2];case lb.H:return rp.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function BYe(){this.buffer=[],this.length=0}BYe.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var jee=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function IYe(e){var t=this;if(this.options={padding:4,width:256,height:256,typeNumber:4,color:\"#000000\",background:\"#ffffff\",ecl:\"M\",image:{svg:\"\",width:0,height:0}},typeof e==\"string\"&&(e={content:e}),e)for(var r in e)this.options[r]=e[r];if(typeof this.options.content!=\"string\")throw new Error(\"Expected \\'content\\' as string!\");if(this.options.content.length===0)throw new Error(\"Expected \\'content\\' to be non-empty!\");if(!(this.options.padding>=0))throw new Error(\"Expected \\'padding\\' value to be non-negative!\");if(!(this.options.width>0)||!(this.options.height>0))throw new Error(\"Expected \\'width\\' or \\'height\\' value to be higher than zero!\");function n(m){switch(m){case\"L\":return lb.L;case\"M\":return lb.M;case\"Q\":return lb.Q;case\"H\":return lb.H;default:throw new Error(\"Unknwon error correction level: \"+m)}}function o(m,h){for(var y=s(m),v=1,E=0,C=0,B=jee.length;C<=B;C++){var R=jee[C];if(!R)throw new Error(\"Content too long: expected \"+E+\" but got \"+y);switch(h){case\"L\":E=R[0];break;case\"M\":E=R[1];break;case\"Q\":E=R[2];break;case\"H\":E=R[3];break;default:throw new Error(\"Unknwon error correction level: \"+h)}if(y<=E)break;v++}if(v>jee.length)throw new Error(\"Content too long\");return v}function s(m){var h=encodeURI(m).toString().replace(/\\\\%[0-9a-fA-F]{2}/g,\"a\");return h.length+(h.length!=m?3:0)}var u=this.options.content,f=o(u,this.options.ecl),d=n(this.options.ecl);this.qrcode=new np(f,d),this.qrcode.addData(u),this.qrcode.make()}IYe.prototype.svg=function(e){var t=this.options||{},r=this.qrcode.modules;typeof e>\"u\"&&(e={container:t.container||\"svg\"});for(var n=typeof t.pretty<\"u\"?!!t.pretty:!0,o=n?\"  \":\"\",s=n?`\\\\r\\n`:\"\",u=t.width,f=t.height,d=r.length,m=u/(d+2*t.padding),h=f/(d+2*t.padding),y=typeof t.join<\"u\"?!!t.join:!1,v=typeof t.swap<\"u\"?!!t.swap:!1,E=typeof t.xmlDeclaration<\"u\"?!!t.xmlDeclaration:!0,C=typeof t.predefined<\"u\"?!!t.predefined:!1,B=C?o+\\'<defs><path id=\"qrmodule\" d=\"M0 0 h\\'+h+\" v\"+m+\\' H0 z\" style=\"fill:\\'+t.color+\\';shape-rendering:crispEdges;\" /></defs>\\'+s:\"\",R=o+\\'<rect x=\"0\" y=\"0\" width=\"\\'+u+\\'\" height=\"\\'+f+\\'\" style=\"fill:\\'+t.background+\\';shape-rendering:crispEdges;\"/>\\'+s,M=\"\",U=\"\",O=0;O<d;O++)for(var N=0;N<d;N++){var j=r[N][O];if(j){var K=N*m+t.padding*m,G=O*h+t.padding*h;if(v){var J=K;K=G,G=J}if(y){var Y=m+K,W=h+G;K=Number.isInteger(K)?Number(K):K.toFixed(2),G=Number.isInteger(G)?Number(G):G.toFixed(2),Y=Number.isInteger(Y)?Number(Y):Y.toFixed(2),W=Number.isInteger(W)?Number(W):W.toFixed(2),U+=\"M\"+K+\",\"+G+\" V\"+W+\" H\"+Y+\" V\"+G+\" H\"+K+\" Z \"}else C?M+=o+\\'<use x=\"\\'+K.toString()+\\'\" y=\"\\'+G.toString()+\\'\" href=\"#qrmodule\" />\\'+s:M+=o+\\'<rect x=\"\\'+K.toString()+\\'\" y=\"\\'+G.toString()+\\'\" width=\"\\'+m+\\'\" height=\"\\'+h+\\'\" style=\"fill:\\'+t.color+\\';shape-rendering:crispEdges;\"/>\\'+s}}y&&(M=o+\\'<path x=\"0\" y=\"0\" style=\"fill:\\'+t.color+\\';shape-rendering:crispEdges;\" d=\"\\'+U+\\'\" />\\');let ie=\"\";if(this.options.image!==void 0&&this.options.image.svg){let H=u*this.options.image.width/100,A=f*this.options.image.height/100,T=u/2-H/2,P=f/2-A/2;ie+=`<svg x=\"${T}\" y=\"${P}\" width=\"${H}\" height=\"${A}\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMinYMin meet\">`,ie+=this.options.image.svg+s,ie+=\"</svg>\"}var re=\"\";switch(e.container){case\"svg\":E&&(re+=\\'<?xml version=\"1.0\" standalone=\"yes\"?>\\'+s),re+=\\'<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"\\'+u+\\'\" height=\"\\'+f+\\'\">\\'+s,re+=B+R+M,re+=ie,re+=\"</svg>\";break;case\"svg-viewbox\":E&&(re+=\\'<?xml version=\"1.0\" standalone=\"yes\"?>\\'+s),re+=\\'<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 \\'+u+\" \"+f+\\'\">\\'+s,re+=B+R+M,re+=ie,re+=\"</svg>\";break;case\"g\":re+=\\'<g width=\"\\'+u+\\'\" height=\"\\'+f+\\'\">\\'+s,re+=B+R+M,re+=ie,re+=\"</g>\";break;default:re+=(B+R+M+ie).replace(/^\\\\s+/,\"\");break}return re};PYe.exports=IYe});var OYe=X(_3=>{\"use strict\";c();var K8t=_3&&_3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_3,\"__esModule\",{value:!0});_3.QRCode=void 0;var W8t=(Ti(),Kr(fs)),MYe=(p4(),Kr(d4)),Q8t=K8t(RYe()),Z8t=e=>{let[t,r]=(0,MYe.useState)(\"\");return(0,MYe.useEffect)(()=>{var n,o;let s=new Q8t.default({content:e.content,background:e.bgColor||\"#ffffff\",color:e.fgColor||\"#000000\",container:\"svg\",ecl:\"M\",width:(n=e.width)!==null&&n!==void 0?n:256,height:(o=e.height)!==null&&o!==void 0?o:256,padding:0,image:e.image}),u=globalThis.Buffer.from(s.svg(),\"utf8\").toString(\"base64\");r(`data:image/svg+xml;base64,${u}`)},[e.bgColor,e.content,e.fgColor,e.height,e.image,e.width]),t?(0,W8t.h)(\"img\",{src:t,alt:\"QR Code\"}):null};_3.QRCode=Z8t});var NYe=X(qee=>{\"use strict\";c();Object.defineProperty(qee,\"__esModule\",{value:!0});qee.default=\".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}\"});var UYe=X(k3=>{\"use strict\";c();var J8t=k3&&k3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(k3,\"__esModule\",{value:!0});k3.Spinner=void 0;var fL=(Ti(),Kr(fs)),Y8t=J8t(NYe()),X8t=e=>{var t;let r=(t=e.size)!==null&&t!==void 0?t:64,n=e.color||\"#000\";return(0,fL.h)(\"div\",{class:\"-cbwsdk-spinner\"},(0,fL.h)(\"style\",null,Y8t.default),(0,fL.h)(\"svg\",{viewBox:\"0 0 100 100\",xmlns:\"http://www.w3.org/2000/svg\",style:{width:r,height:r}},(0,fL.h)(\"circle\",{style:{cx:50,cy:50,r:45,stroke:n}})))};k3.Spinner=X8t});var DYe=X($ee=>{\"use strict\";c();Object.defineProperty($ee,\"__esModule\",{value:!0});$ee.default=\".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer;border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}\"});var zYe=X(fb=>{\"use strict\";c();var HYe=fb&&fb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fb,\"__esModule\",{value:!0});fb.CoinbaseWalletSteps=fb.ConnectContent=void 0;var zx=HYe((Zy(),Kr(lE))),_r=(Ti(),Kr(fs)),eAt=Zd(),tAt=EH(),rAt=CYe(),nAt=TYe(),oAt=_Ye(),aAt=OYe(),iAt=UYe(),sAt=HYe(DYe()),Gee={title:\"Coinbase Wallet app\",description:\"Connect with your self-custody wallet\",steps:LYe},cAt=e=>e===\"light\"?\"#FFFFFF\":\"#0A0B0D\";function uAt(e){let{theme:t}=e,r=(0,eAt.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId),n=Gee.steps;return(0,_r.h)(\"div\",{\"data-testid\":\"connect-content\",className:(0,zx.default)(\"-cbwsdk-connect-content\",t)},(0,_r.h)(\"style\",null,sAt.default),(0,_r.h)(\"div\",{className:\"-cbwsdk-connect-content-header\"},(0,_r.h)(\"h2\",{className:(0,zx.default)(\"-cbwsdk-connect-content-heading\",t)},\"Scan to connect with our mobile app\"),e.onCancel&&(0,_r.h)(\"button\",{type:\"button\",className:\"-cbwsdk-cancel-button\",onClick:e.onCancel},(0,_r.h)(rAt.CloseIcon,{fill:t===\"light\"?\"#0A0B0D\":\"#FFFFFF\"}))),(0,_r.h)(\"div\",{className:\"-cbwsdk-connect-content-layout\"},(0,_r.h)(\"div\",{className:\"-cbwsdk-connect-content-column-left\"},(0,_r.h)(lAt,{title:Gee.title,description:Gee.description,theme:t})),(0,_r.h)(\"div\",{className:\"-cbwsdk-connect-content-column-right\"},(0,_r.h)(\"div\",{className:\"-cbwsdk-connect-content-qr-wrapper\"},(0,_r.h)(aAt.QRCode,{content:r,width:200,height:200,fgColor:\"#000\",bgColor:\"transparent\"}),(0,_r.h)(\"input\",{type:\"hidden\",name:\"cbw-cbwsdk-version\",value:tAt.LIB_VERSION}),(0,_r.h)(\"input\",{type:\"hidden\",value:r})),(0,_r.h)(n,{theme:t}),!e.isConnected&&(0,_r.h)(\"div\",{\"data-testid\":\"connecting-spinner\",className:(0,zx.default)(\"-cbwsdk-connect-content-qr-connecting\",t)},(0,_r.h)(iAt.Spinner,{size:36,color:t===\"dark\"?\"#FFF\":\"#000\"}),(0,_r.h)(\"p\",null,\"Connecting...\")))))}fb.ConnectContent=uAt;function lAt({title:e,description:t,theme:r}){return(0,_r.h)(\"div\",{className:(0,zx.default)(\"-cbwsdk-connect-item\",r)},(0,_r.h)(\"div\",null,(0,_r.h)(nAt.CoinbaseWalletRound,null)),(0,_r.h)(\"div\",{className:\"-cbwsdk-connect-item-copy-wrapper\"},(0,_r.h)(\"h3\",{className:\"-cbwsdk-connect-item-title\"},e),(0,_r.h)(\"p\",{className:\"-cbwsdk-connect-item-description\"},t)))}function LYe({theme:e}){return(0,_r.h)(\"ol\",{className:\"-cbwsdk-wallet-steps\"},(0,_r.h)(\"li\",{className:(0,zx.default)(\"-cbwsdk-wallet-steps-item\",e)},(0,_r.h)(\"div\",{className:\"-cbwsdk-wallet-steps-item-wrapper\"},\"Open Coinbase Wallet app\")),(0,_r.h)(\"li\",{className:(0,zx.default)(\"-cbwsdk-wallet-steps-item\",e)},(0,_r.h)(\"div\",{className:\"-cbwsdk-wallet-steps-item-wrapper\"},(0,_r.h)(\"span\",null,\"Tap \",(0,_r.h)(\"strong\",null,\"Scan\"),\" \"),(0,_r.h)(\"span\",{className:(0,zx.default)(\"-cbwsdk-wallet-steps-pad-left\",\"-cbwsdk-wallet-steps-icon\",e)},(0,_r.h)(oAt.QRCodeIcon,{fill:cAt(e)})))))}fb.CoinbaseWalletSteps=LYe});var jYe=X(dL=>{\"use strict\";c();Object.defineProperty(dL,\"__esModule\",{value:!0});dL.ArrowLeftIcon=void 0;var FYe=(Ti(),Kr(fs));function fAt(e){return(0,FYe.h)(\"svg\",Object.assign({width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,FYe.h)(\"path\",{d:\"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z\"}))}dL.ArrowLeftIcon=fAt});var qYe=X(pL=>{\"use strict\";c();Object.defineProperty(pL,\"__esModule\",{value:!0});pL.LaptopIcon=void 0;var Vee=(Ti(),Kr(fs));function dAt(e){return(0,Vee.h)(\"svg\",Object.assign({width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,Vee.h)(\"path\",{d:\"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z\"}),(0,Vee.h)(\"path\",{d:\"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z\"}))}pL.LaptopIcon=dAt});var GYe=X(mL=>{\"use strict\";c();Object.defineProperty(mL,\"__esModule\",{value:!0});mL.SafeIcon=void 0;var $Ye=(Ti(),Kr(fs));function pAt(e){return(0,$Ye.h)(\"svg\",Object.assign({width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,$Ye.h)(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z\"}))}mL.SafeIcon=pAt});var VYe=X(Kee=>{\"use strict\";c();Object.defineProperty(Kee,\"__esModule\",{value:!0});Kee.default=\".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}\"});var WYe=X(B3=>{\"use strict\";c();var KYe=B3&&B3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(B3,\"__esModule\",{value:!0});B3.TryExtensionContent=void 0;var Fx=KYe((Zy(),Kr(lE))),ta=(Ti(),Kr(fs)),Wee=(p4(),Kr(d4)),mAt=jYe(),hAt=qYe(),yAt=GYe(),bAt=KYe(VYe());function gAt({theme:e}){let[t,r]=(0,Wee.useState)(!1),n=(0,Wee.useCallback)(()=>{window.open(\"https://api.wallet.coinbase.com/rpc/v2/desktop/chrome\",\"_blank\")},[]),o=(0,Wee.useCallback)(()=>{t?window.location.reload():(n(),r(!0))},[n,t]);return(0,ta.h)(\"div\",{class:(0,Fx.default)(\"-cbwsdk-try-extension\",e)},(0,ta.h)(\"style\",null,bAt.default),(0,ta.h)(\"div\",{class:\"-cbwsdk-try-extension-column-half\"},(0,ta.h)(\"h3\",{class:(0,Fx.default)(\"-cbwsdk-try-extension-heading\",e)},\"Or try the Coinbase Wallet browser extension\"),(0,ta.h)(\"div\",{class:\"-cbwsdk-try-extension-cta-wrapper\"},(0,ta.h)(\"button\",{class:(0,Fx.default)(\"-cbwsdk-try-extension-cta\",e),onClick:o},t?\"Refresh\":\"Install\"),(0,ta.h)(\"div\",null,!t&&(0,ta.h)(mAt.ArrowLeftIcon,{class:\"-cbwsdk-try-extension-cta-icon\",fill:e===\"light\"?\"#0052FF\":\"#588AF5\"})))),(0,ta.h)(\"div\",{class:\"-cbwsdk-try-extension-column-half\"},(0,ta.h)(\"ul\",{class:\"-cbwsdk-try-extension-list\"},(0,ta.h)(\"li\",{class:\"-cbwsdk-try-extension-list-item\"},(0,ta.h)(\"div\",{class:\"-cbwsdk-try-extension-list-item-icon-wrapper\"},(0,ta.h)(\"span\",{class:(0,Fx.default)(\"-cbwsdk-try-extension-list-item-icon\",e)},(0,ta.h)(hAt.LaptopIcon,{fill:e===\"light\"?\"#0A0B0D\":\"#FFFFFF\"}))),(0,ta.h)(\"div\",{class:(0,Fx.default)(\"-cbwsdk-try-extension-list-item-copy\",e)},\"Connect with dapps with just one click on your desktop browser\")),(0,ta.h)(\"li\",{class:\"-cbwsdk-try-extension-list-item\"},(0,ta.h)(\"div\",{class:\"-cbwsdk-try-extension-list-item-icon-wrapper\"},(0,ta.h)(\"span\",{class:(0,Fx.default)(\"-cbwsdk-try-extension-list-item-icon\",e)},(0,ta.h)(yAt.SafeIcon,{fill:e===\"light\"?\"#0A0B0D\":\"#FFFFFF\"}))),(0,ta.h)(\"div\",{class:(0,Fx.default)(\"-cbwsdk-try-extension-list-item-copy\",e)},\"Add an additional layer of security by using a supported Ledger hardware wallet\")))))}B3.TryExtensionContent=gAt});var QYe=X(Qee=>{\"use strict\";c();Object.defineProperty(Qee,\"__esModule\",{value:!0});Qee.default=\".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}\"});var JYe=X(I3=>{\"use strict\";c();var ZYe=I3&&I3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I3,\"__esModule\",{value:!0});I3.ConnectDialog=void 0;var Zee=ZYe((Zy(),Kr(lE))),jx=(Ti(),Kr(fs)),Jee=(p4(),Kr(d4)),xAt=zYe(),vAt=WYe(),wAt=ZYe(QYe()),EAt=e=>{let{isOpen:t,darkMode:r}=e,[n,o]=(0,Jee.useState)(!t),[s,u]=(0,Jee.useState)(!t);(0,Jee.useEffect)(()=>{let d=[window.setTimeout(()=>{u(!t)},10)];return t?o(!1):d.push(window.setTimeout(()=>{o(!0)},360)),()=>{d.forEach(window.clearTimeout)}},[t]);let f=r?\"dark\":\"light\";return(0,jx.h)(\"div\",{class:(0,Zee.default)(\"-cbwsdk-connect-dialog-container\",n&&\"-cbwsdk-connect-dialog-container-hidden\")},(0,jx.h)(\"style\",null,wAt.default),(0,jx.h)(\"div\",{class:(0,Zee.default)(\"-cbwsdk-connect-dialog-backdrop\",f,s&&\"-cbwsdk-connect-dialog-backdrop-hidden\")}),(0,jx.h)(\"div\",{class:\"-cbwsdk-connect-dialog\"},(0,jx.h)(\"div\",{class:(0,Zee.default)(\"-cbwsdk-connect-dialog-box\",s&&\"-cbwsdk-connect-dialog-box-hidden\")},e.connectDisabled?null:(0,jx.h)(xAt.ConnectContent,{theme:f,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection,chainId:e.chainId,onCancel:e.onCancel}),(0,jx.h)(vAt.TryExtensionContent,{theme:f}))))};I3.ConnectDialog=EAt});var YYe=X(hL=>{\"use strict\";c();Object.defineProperty(hL,\"__esModule\",{value:!0});hL.LinkFlow=void 0;var Yee=(Ti(),Kr(fs)),AAt=JYe(),Xee=class{constructor(t){this.connected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=t.darkMode,this.version=t.version,this.sessionId=t.sessionId,this.sessionSecret=t.sessionSecret,this.linkAPIUrl=t.linkAPIUrl,this.isParentConnection=t.isParentConnection}attach(t){this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-link-flow-root\",t.appendChild(this.root),this.render()}setConnected(t){this.connected!==t&&(this.connected=t,this.render())}setChainId(t){this.chainId!==t&&(this.chainId=t,this.render())}detach(){var t;this.root&&((0,Yee.render)(null,this.root),(t=this.root.parentElement)===null||t===void 0||t.removeChild(this.root))}setConnectDisabled(t){this.connectDisabled=t}open(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){this.root&&(0,Yee.render)((0,Yee.h)(AAt.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.connected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}};hL.LinkFlow=Xee});var XYe=X(ete=>{\"use strict\";c();Object.defineProperty(ete,\"__esModule\",{value:!0});ete.default=\".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}\"});var nte=X(Qu=>{\"use strict\";c();var eXe=Qu&&Qu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qu,\"__esModule\",{value:!0});Qu.SnackbarInstance=Qu.SnackbarContainer=Qu.Snackbar=void 0;var yL=eXe((Zy(),Kr(lE))),ra=(Ti(),Kr(fs)),tte=(p4(),Kr(d4)),SAt=eXe(XYe()),CAt=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+\",TAt=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=\",rte=class{constructor(t){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=t.darkMode}attach(t){this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-snackbar-root\",t.appendChild(this.root),this.render()}presentItem(t){let r=this.nextItemKey++;return this.items.set(r,t),this.render(),()=>{this.items.delete(r),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,ra.render)((0,ra.h)(\"div\",null,(0,ra.h)(Qu.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([t,r])=>(0,ra.h)(Qu.SnackbarInstance,Object.assign({},r,{key:t}))))),this.root)}};Qu.Snackbar=rte;var _At=e=>(0,ra.h)(\"div\",{class:(0,yL.default)(\"-cbwsdk-snackbar-container\")},(0,ra.h)(\"style\",null,SAt.default),(0,ra.h)(\"div\",{class:\"-cbwsdk-snackbar\"},e.children));Qu.SnackbarContainer=_At;var kAt=({autoExpand:e,message:t,menuItems:r})=>{let[n,o]=(0,tte.useState)(!0),[s,u]=(0,tte.useState)(e??!1);(0,tte.useEffect)(()=>{let d=[window.setTimeout(()=>{o(!1)},1),window.setTimeout(()=>{u(!0)},1e4)];return()=>{d.forEach(window.clearTimeout)}});let f=()=>{u(!s)};return(0,ra.h)(\"div\",{class:(0,yL.default)(\"-cbwsdk-snackbar-instance\",n&&\"-cbwsdk-snackbar-instance-hidden\",s&&\"-cbwsdk-snackbar-instance-expanded\")},(0,ra.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-header\",onClick:f},(0,ra.h)(\"img\",{src:CAt,class:\"-cbwsdk-snackbar-instance-header-cblogo\"}),\" \",(0,ra.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-header-message\"},t),(0,ra.h)(\"div\",{class:\"-gear-container\"},!s&&(0,ra.h)(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},(0,ra.h)(\"circle\",{cx:\"12\",cy:\"12\",r:\"12\",fill:\"#F5F7F8\"})),(0,ra.h)(\"img\",{src:TAt,class:\"-gear-icon\",title:\"Expand\"}))),r&&r.length>0&&(0,ra.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-menu\"},r.map((d,m)=>(0,ra.h)(\"div\",{class:(0,yL.default)(\"-cbwsdk-snackbar-instance-menu-item\",d.isRed&&\"-cbwsdk-snackbar-instance-menu-item-is-red\"),onClick:d.onClick,key:m},(0,ra.h)(\"svg\",{width:d.svgWidth,height:d.svgHeight,viewBox:\"0 0 10 11\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},(0,ra.h)(\"path\",{\"fill-rule\":d.defaultFillRule,\"clip-rule\":d.defaultClipRule,d:d.path,fill:\"#AAAAAA\"})),(0,ra.h)(\"span\",{class:(0,yL.default)(\"-cbwsdk-snackbar-instance-menu-item-info\",d.isRed&&\"-cbwsdk-snackbar-instance-menu-item-info-is-red\")},d.info)))))};Qu.SnackbarInstance=kAt});var ate=X(bL=>{\"use strict\";c();Object.defineProperty(bL,\"__esModule\",{value:!0});bL.WalletLinkRelayUI=void 0;var BAt=kee(),IAt=YYe(),PAt=nte(),ote=class{constructor(t){this.standalone=null,this.attached=!1,this.snackbar=new PAt.Snackbar({darkMode:t.darkMode}),this.linkFlow=new IAt.LinkFlow({darkMode:t.darkMode,version:t.version,sessionId:t.session.id,sessionSecret:t.session.secret,linkAPIUrl:t.linkAPIUrl,isParentConnection:!1})}attach(){if(this.attached)throw new Error(\"Coinbase Wallet SDK UI is already attached\");let t=document.documentElement,r=document.createElement(\"div\");r.className=\"-cbwsdk-css-reset\",t.appendChild(r),this.linkFlow.attach(r),this.snackbar.attach(r),this.attached=!0,(0,BAt.injectCssReset)()}setConnected(t){this.linkFlow.setConnected(t)}setChainId(t){this.linkFlow.setChainId(t)}setConnectDisabled(t){this.linkFlow.setConnectDisabled(t)}addEthereumChain(){}watchAsset(){}switchEthereumChain(){}requestEthereumAccounts(t){this.linkFlow.open({onCancel:t.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}showConnecting(t){let r;return t.isUnlinkedErrorState?r={autoExpand:!0,message:\"Connection lost\",menuItems:[{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]}:r={message:\"Confirm on phone\",menuItems:[{isRed:!0,info:\"Cancel transaction\",svgWidth:\"11\",svgHeight:\"11\",path:\"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z\",defaultFillRule:\"inherit\",defaultClipRule:\"inherit\",onClick:t.onCancel},{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]},this.snackbar.presentItem(r)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(t){this.standalone=t}isStandalone(){var t;return(t=this.standalone)!==null&&t!==void 0?t:!1}};bL.WalletLinkRelayUI=ote});var ite=X(xL=>{\"use strict\";c();Object.defineProperty(xL,\"__esModule\",{value:!0});xL.WalletLinkRelay=void 0;var P3=V_(),RAt=W_(),uo=Zd(),qx=kH(),tXe=BH(),db=QH(),MAt=$Je(),$x=vH(),OAt=ate(),gL=class e extends tXe.RelayAbstract{constructor(t){var r;super(),this.accountsCallback=null,this.chainCallbackParams={chainId:\"\",jsonRpcUrl:\"\"},this.chainCallback=null,this.dappDefaultChain=1,this.appName=\"\",this.appLogoUrl=null,this.linkedUpdated=u=>{var f;this.isLinked=u;let d=this.storage.getItem(tXe.LOCAL_STORAGE_ADDRESSES_KEY);if(u&&(this.session.linked=u),this.isUnlinkedErrorState=!1,d){let m=d.split(\" \"),h=this.storage.getItem(\"IsStandaloneSigning\")===\"true\";if(m[0]!==\"\"&&!u&&this.session.linked&&!h){this.isUnlinkedErrorState=!0;let y=this.getSessionIdHash();(f=this.diagnostic)===null||f===void 0||f.log(qx.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:y})}}},this.metadataUpdated=(u,f)=>{this.storage.setItem(u,f)},this.chainUpdated=(u,f)=>{this.chainCallbackParams.chainId===u&&this.chainCallbackParams.jsonRpcUrl===f||(this.chainCallbackParams={chainId:u,jsonRpcUrl:f},this.chainCallback&&this.chainCallback(u,f))},this.accountUpdated=u=>{this.accountsCallback&&this.accountsCallback([u]),e.accountRequestCallbackIds.size>0&&(Array.from(e.accountRequestCallbackIds.values()).forEach(f=>{let d={type:\"WEB3_RESPONSE\",id:f,response:{method:\"requestEthereumAccounts\",result:[u]}};this.invokeCallback(Object.assign(Object.assign({},d),{id:f}))}),e.accountRequestCallbackIds.clear())},this.connectedUpdated=u=>{this.ui.setConnected(u)},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.options=t;let{session:n,ui:o,connection:s}=this.subscribe();this._session=n,this.connection=s,this.relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this._reloadOnDisconnect=(r=t.reloadOnDisconnect)!==null&&r!==void 0?r:!0,this.ui=o}subscribe(){let t=db.Session.load(this.storage)||new db.Session(this.storage).save(),{linkAPIUrl:r,diagnostic:n}=this,o=new MAt.WalletLinkConnection({session:t,linkAPIUrl:r,diagnostic:n,listener:this}),{version:s,darkMode:u}=this.options,f=this.options.uiConstructor({linkAPIUrl:r,version:s,darkMode:u,session:t});return o.connect(),{session:t,ui:f,connection:o}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata(\"__destroyed\",\"1\"),new Promise(t=>setTimeout(()=>t(null),1e3))]).then(()=>{var t,r;let n=this.ui.isStandalone();(t=this.diagnostic)===null||t===void 0||t.log(qx.EVENTS.SESSION_STATE_CHANGE,{method:\"relay::resetAndReload\",sessionMetadataChange:\"__destroyed, 1\",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let o=db.Session.load(this.storage);if(o?.id===this._session.id?this.storage.clear():o&&((r=this.diagnostic)===null||r===void 0||r.log(qx.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:db.Session.hash(o.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:s,ui:u,connection:f}=this.subscribe();this._session=s,this.connection=f,this.ui=u,n&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.options.headlessMode||this.attachUI()}).catch(t=>{var r;(r=this.diagnostic)===null||r===void 0||r.log(qx.EVENTS.FAILURE,{method:\"relay::resetAndReload\",message:`failed to reset and reload with ${t}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(t,r){this.appName=t,this.appLogoUrl=r}getStorageItem(t){return this.storage.getItem(t)}get session(){return this._session}setStorageItem(t,r){this.storage.setItem(t,r)}signEthereumMessage(t,r,n,o){return this.sendRequest({method:\"signEthereumMessage\",params:{message:(0,uo.hexStringFromBuffer)(t,!0),address:r,addPrefix:n,typedDataJson:o||null}})}ethereumAddressFromSignedMessage(t,r,n){return this.sendRequest({method:\"ethereumAddressFromSignedMessage\",params:{message:(0,uo.hexStringFromBuffer)(t,!0),signature:(0,uo.hexStringFromBuffer)(r,!0),addPrefix:n}})}signEthereumTransaction(t){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,uo.bigIntStringFromBN)(t.weiValue),data:(0,uo.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,uo.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,uo.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,uo.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,uo.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,uo.bigIntStringFromBN)(t.weiValue),data:(0,uo.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,uo.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,uo.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,uo.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,uo.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,r){return this.sendRequest({method:\"submitEthereumTransaction\",params:{signedTransaction:(0,uo.hexStringFromBuffer)(t,!0),chainId:r}})}scanQRCode(t){return this.sendRequest({method:\"scanQRCode\",params:{regExp:t}})}getQRCodeUrl(){return(0,uo.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(t,r){return this.sendRequest({method:\"generic\",params:{action:r,data:t}})}sendGenericMessage(t){return this.sendRequest(t)}sendRequest(t){let r=null,n=(0,uo.randomBytesHex)(8),o=u=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,u),r?.()};return{promise:new Promise((u,f)=>{this.ui.isStandalone()||(r=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:o,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,d=>{if(r?.(),(0,$x.isErrorResponse)(d))return f(new Error(d.errorMessage));u(d)}),this.ui.isStandalone()?this.sendRequestStandalone(n,t):this.publishWeb3RequestEvent(n,t)}),cancel:o}}setConnectDisabled(t){this.ui.setConnectDisabled(t)}setAccountsCallback(t){this.accountsCallback=t}setChainCallback(t){this.chainCallback=t}setDappDefaultChainCallback(t){this.dappDefaultChain=t,this.ui instanceof OAt.WalletLinkRelayUI&&this.ui.setChainId(t)}publishWeb3RequestEvent(t,r){var n;let o={type:\"WEB3_REQUEST\",id:t,request:r},s=db.Session.load(this.storage);(n=this.diagnostic)===null||n===void 0||n.log(qx.EVENTS.WEB3_REQUEST,{eventId:o.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?db.Session.hash(s.id):\"\",isSessionMismatched:(s?.id!==this._session.id).toString()}),this.publishEvent(\"Web3Request\",o,!0).then(u=>{var f;(f=this.diagnostic)===null||f===void 0||f.log(qx.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:o.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?db.Session.hash(s.id):\"\",isSessionMismatched:(s?.id!==this._session.id).toString()})}).catch(u=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:o.id,response:{method:r.method,errorMessage:u.message}})})}publishWeb3RequestCanceledEvent(t){let r={type:\"WEB3_REQUEST_CANCELED\",id:t};this.publishEvent(\"Web3RequestCanceled\",r,!1).then()}publishEvent(t,r,n){return this.connection.publishEvent(t,r,n)}handleWeb3ResponseMessage(t){var r;let{response:n}=t;if((r=this.diagnostic)===null||r===void 0||r.log(qx.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),n.method===\"requestEthereumAccounts\"){e.accountRequestCallbackIds.forEach(o=>this.invokeCallback(Object.assign(Object.assign({},t),{id:o}))),e.accountRequestCallbackIds.clear();return}this.invokeCallback(t)}handleErrorResponse(t,r,n,o){var s;let u=(s=n?.message)!==null&&s!==void 0?s:(0,P3.getMessageFromCode)(o);this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:t,response:{method:r,errorMessage:u,errorCode:o}})}invokeCallback(t){let r=this.relayEventManager.callbacks.get(t.id);r&&(r(t.response),this.relayEventManager.callbacks.delete(t.id))}requestEthereumAccounts(){let t={method:\"requestEthereumAccounts\",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},r=null,n=(0,uo.randomBytesHex)(8),o=u=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,u),r?.()};return{promise:new Promise((u,f)=>{if(this.relayEventManager.callbacks.set(n,d=>{if(this.ui.hideRequestEthereumAccounts(),r?.(),(0,$x.isErrorResponse)(d))return f(new Error(d.errorMessage));u(d)}),this.ui.inlineAccountsResponse()){let d=m=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:n,response:{method:\"requestEthereumAccounts\",result:m}})};this.ui.requestEthereumAccounts({onCancel:o,onAccounts:d})}else{let d=P3.standardErrors.provider.userRejectedRequest(\"User denied account authorization\");this.ui.requestEthereumAccounts({onCancel:()=>o(d)})}e.accountRequestCallbackIds.add(n),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(n,t)}),cancel:o}}selectProvider(t){let r={method:\"selectProvider\",params:{providerOptions:t}},n=(0,uo.randomBytesHex)(8),o=u=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,r.method,u)},s=new Promise((u,f)=>{this.relayEventManager.callbacks.set(n,h=>{if((0,$x.isErrorResponse)(h))return f(new Error(h.errorMessage));u(h)});let d=h=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:n,response:{method:\"selectProvider\",result:RAt.ProviderType.Unselected}})},m=h=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:n,response:{method:\"selectProvider\",result:h}})};this.ui.selectProvider&&this.ui.selectProvider({onApprove:m,onCancel:d,providerOptions:t})});return{cancel:o,promise:s}}watchAsset(t,r,n,o,s,u){let f={method:\"watchAsset\",params:{type:t,options:{address:r,symbol:n,decimals:o,image:s},chainId:u}},d=null,m=(0,uo.randomBytesHex)(8),h=v=>{this.publishWeb3RequestCanceledEvent(m),this.handleErrorResponse(m,f.method,v),d?.()};this.ui.inlineWatchAsset()||(d=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:h,onResetConnection:this.resetAndReload}));let y=new Promise((v,E)=>{this.relayEventManager.callbacks.set(m,R=>{if(d?.(),(0,$x.isErrorResponse)(R))return E(new Error(R.errorMessage));v(R)});let C=R=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:m,response:{method:\"watchAsset\",result:!1}})},B=()=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:m,response:{method:\"watchAsset\",result:!0}})};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:B,onCancel:C,type:t,address:r,symbol:n,decimals:o,image:s,chainId:u}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(m,f)});return{cancel:h,promise:y}}addEthereumChain(t,r,n,o,s,u){let f={method:\"addEthereumChain\",params:{chainId:t,rpcUrls:r,blockExplorerUrls:o,chainName:s,iconUrls:n,nativeCurrency:u}},d=null,m=(0,uo.randomBytesHex)(8),h=v=>{this.publishWeb3RequestCanceledEvent(m),this.handleErrorResponse(m,f.method,v),d?.()};return this.ui.inlineAddEthereumChain(t)||(d=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:h,onResetConnection:this.resetAndReload})),{promise:new Promise((v,E)=>{this.relayEventManager.callbacks.set(m,R=>{if(d?.(),(0,$x.isErrorResponse)(R))return E(new Error(R.errorMessage));v(R)});let C=R=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:m,response:{method:\"addEthereumChain\",result:{isApproved:!1,rpcUrl:\"\"}}})},B=R=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:m,response:{method:\"addEthereumChain\",result:{isApproved:!0,rpcUrl:R}}})};this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:C,onApprove:B,chainId:f.params.chainId,rpcUrls:f.params.rpcUrls,blockExplorerUrls:f.params.blockExplorerUrls,chainName:f.params.chainName,iconUrls:f.params.iconUrls,nativeCurrency:f.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(t)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(m,f)}),cancel:h}}switchEthereumChain(t,r){let n={method:\"switchEthereumChain\",params:Object.assign({chainId:t},{address:r})},o=(0,uo.randomBytesHex)(8),s=f=>{this.publishWeb3RequestCanceledEvent(o),this.handleErrorResponse(o,n.method,f)};return{promise:new Promise((f,d)=>{this.relayEventManager.callbacks.set(o,y=>{if((0,$x.isErrorResponse)(y)&&y.errorCode)return d(P3.standardErrors.provider.custom({code:y.errorCode,message:\"Unrecognized chain ID. Try adding the chain using addEthereumChain first.\"}));if((0,$x.isErrorResponse)(y))return d(new Error(y.errorMessage));f(y)});let m=y=>{var v;if(y){let E=(v=(0,P3.getErrorCode)(y))!==null&&v!==void 0?v:P3.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(o,\"switchEthereumChain\",y instanceof Error?y:P3.standardErrors.provider.unsupportedChain(t),E)}else this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:o,response:{method:\"switchEthereumChain\",result:{isApproved:!1,rpcUrl:\"\"}}})},h=y=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:o,response:{method:\"switchEthereumChain\",result:{isApproved:!0,rpcUrl:y}}})};this.ui.switchEthereumChain({onCancel:m,onApprove:h,chainId:n.params.chainId,address:n.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(o,n)}),cancel:s}}inlineAddEthereumChain(t){return this.ui.inlineAddEthereumChain(t)}getSessionIdHash(){return db.Session.hash(this._session.id)}sendRequestStandalone(t,r){let n=s=>{this.handleErrorResponse(t,r.method,s)},o=s=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:t,response:s})};switch(r.method){case\"signEthereumMessage\":this.ui.signEthereumMessage({request:r,onSuccess:o,onCancel:n});break;case\"signEthereumTransaction\":this.ui.signEthereumTransaction({request:r,onSuccess:o,onCancel:n});break;case\"submitEthereumTransaction\":this.ui.submitEthereumTransaction({request:r,onSuccess:o,onCancel:n});break;case\"ethereumAddressFromSignedMessage\":this.ui.ethereumAddressFromSignedMessage({request:r,onSuccess:o});break;default:n();break}}};xL.WalletLinkRelay=gL;gL.accountRequestCallbackIds=new Set});var rXe=X(Gx=>{\"use strict\";c();var NAt=Gx&&Gx.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||(\"get\"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),UAt=Gx&&Gx.__exportStar||function(e,t){for(var r in e)r!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,r)&&NAt(t,e,r)};Object.defineProperty(Gx,\"__esModule\",{value:!0});UAt(nte(),Gx)});var nXe=X(ste=>{\"use strict\";c();Object.defineProperty(ste,\"__esModule\",{value:!0});ste.default=\".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}\"});var aXe=X(R3=>{\"use strict\";c();var oXe=R3&&R3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R3,\"__esModule\",{value:!0});R3.RedirectDialog=void 0;var DAt=oXe((Zy(),Kr(lE))),op=(Ti(),Kr(fs)),HAt=kee(),LAt=rXe(),zAt=oXe(nXe()),cte=class{constructor(){this.root=null}attach(){let t=document.documentElement;this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-css-reset\",t.appendChild(this.root),(0,HAt.injectCssReset)()}present(t){this.render(t)}clear(){this.render(null)}render(t){this.root&&((0,op.render)(null,this.root),t&&(0,op.render)((0,op.h)(FAt,Object.assign({},t,{onDismiss:()=>{this.clear()}})),this.root))}};R3.RedirectDialog=cte;var FAt=({title:e,buttonText:t,darkMode:r,onButtonClick:n,onDismiss:o})=>{let s=r?\"dark\":\"light\";return(0,op.h)(LAt.SnackbarContainer,{darkMode:r},(0,op.h)(\"div\",{class:\"-cbwsdk-redirect-dialog\"},(0,op.h)(\"style\",null,zAt.default),(0,op.h)(\"div\",{class:\"-cbwsdk-redirect-dialog-backdrop\",onClick:o}),(0,op.h)(\"div\",{class:(0,DAt.default)(\"-cbwsdk-redirect-dialog-box\",s)},(0,op.h)(\"p\",null,e),(0,op.h)(\"button\",{onClick:n},t))))}});var lte=X(vL=>{\"use strict\";c();Object.defineProperty(vL,\"__esModule\",{value:!0});vL.MobileRelayUI=void 0;var jAt=aXe(),ute=class{constructor(t){this.attached=!1,this.darkMode=!1,this.redirectDialog=new jAt.RedirectDialog,this.darkMode=t.darkMode}attach(){if(this.attached)throw new Error(\"Coinbase Wallet SDK UI is already attached\");this.redirectDialog.attach(),this.attached=!0}setConnected(t){}redirectToCoinbaseWallet(t){let r=new URL(\"https://go.cb-w.com/walletlink\");r.searchParams.append(\"redirect_url\",window.location.href),t&&r.searchParams.append(\"wl_url\",t);let n=document.createElement(\"a\");n.target=\"cbw-opener\",n.href=r.href,n.rel=\"noreferrer noopener\",n.click()}openCoinbaseWalletDeeplink(t){this.redirectDialog.present({title:\"Redirecting to Coinbase Wallet...\",buttonText:\"Open\",darkMode:this.darkMode,onButtonClick:()=>{this.redirectToCoinbaseWallet(t)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(t)},99)}showConnecting(t){return()=>{this.redirectDialog.clear()}}hideRequestEthereumAccounts(){this.redirectDialog.clear()}requestEthereumAccounts(){}addEthereumChain(){}watchAsset(){}selectProvider(){}switchEthereumChain(){}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}reloadUI(){}setStandalone(){}setConnectDisabled(){}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}isStandalone(){return!1}};vL.MobileRelayUI=ute});var dte=X(wL=>{\"use strict\";c();Object.defineProperty(wL,\"__esModule\",{value:!0});wL.MobileRelay=void 0;var qAt=Zd(),$At=ite(),GAt=lte(),fte=class extends $At.WalletLinkRelay{constructor(t){var r;super(t),this._enableMobileWalletLink=(r=t.enableMobileWalletLink)!==null&&r!==void 0?r:!1}requestEthereumAccounts(){return this._enableMobileWalletLink?super.requestEthereumAccounts():{promise:new Promise(()=>{let t=(0,qAt.getLocation)();t.href=`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(t.href)}`}),cancel:()=>{}}}publishWeb3RequestEvent(t,r){if(super.publishWeb3RequestEvent(t,r),!(this._enableMobileWalletLink&&this.ui instanceof GAt.MobileRelayUI))return;let n=!1;switch(r.method){case\"requestEthereumAccounts\":case\"connectAndSignIn\":n=!0,this.ui.openCoinbaseWalletDeeplink(this.getQRCodeUrl());break;case\"switchEthereumChain\":return;default:n=!0,this.ui.openCoinbaseWalletDeeplink();break}n&&window.addEventListener(\"blur\",()=>{window.addEventListener(\"focus\",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0})}handleWeb3ResponseMessage(t){super.handleWeb3ResponseMessage(t)}connectAndSignIn(t){if(!this._enableMobileWalletLink)throw new Error(\"connectAndSignIn is supported only when enableMobileWalletLink is on\");return this.sendRequest({method:\"connectAndSignIn\",params:{appName:this.appName,appLogoUrl:this.appLogoUrl,domain:window.location.hostname,aud:window.location.href,version:\"1\",type:\"eip4361\",nonce:t.nonce,iat:new Date().toISOString(),chainId:`eip155:${this.dappDefaultChain}`,statement:t.statement,resources:t.resources}})}};wL.MobileRelay=fte});var h4=X((GWn,pte)=>{\"use strict\";c();var M3=typeof Reflect==\"object\"?Reflect:null,iXe=M3&&typeof M3.apply==\"function\"?M3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},EL;M3&&typeof M3.ownKeys==\"function\"?EL=M3.ownKeys:Object.getOwnPropertySymbols?EL=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:EL=function(t){return Object.getOwnPropertyNames(t)};function VAt(e){console&&console.warn&&console.warn(e)}var cXe=Number.isNaN||function(t){return t!==t};function gn(){gn.init.call(this)}pte.exports=gn;pte.exports.once=ZAt;gn.EventEmitter=gn;gn.prototype._events=void 0;gn.prototype._eventsCount=0;gn.prototype._maxListeners=void 0;var sXe=10;function AL(e){if(typeof e!=\"function\")throw new TypeError(\\'The \"listener\" argument must be of type Function. Received type \\'+typeof e)}Object.defineProperty(gn,\"defaultMaxListeners\",{enumerable:!0,get:function(){return sXe},set:function(e){if(typeof e!=\"number\"||e<0||cXe(e))throw new RangeError(\\'The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received \\'+e+\".\");sXe=e}});gn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};gn.prototype.setMaxListeners=function(t){if(typeof t!=\"number\"||t<0||cXe(t))throw new RangeError(\\'The value of \"n\" is out of range. It must be a non-negative number. Received \\'+t+\".\");return this._maxListeners=t,this};function uXe(e){return e._maxListeners===void 0?gn.defaultMaxListeners:e._maxListeners}gn.prototype.getMaxListeners=function(){return uXe(this)};gn.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var o=t===\"error\",s=this._events;if(s!==void 0)o=o&&s.error===void 0;else if(!o)return!1;if(o){var u;if(r.length>0&&(u=r[0]),u instanceof Error)throw u;var f=new Error(\"Unhandled error.\"+(u?\" (\"+u.message+\")\":\"\"));throw f.context=u,f}var d=s[t];if(d===void 0)return!1;if(typeof d==\"function\")iXe(d,this,r);else for(var m=d.length,h=mXe(d,m),n=0;n<m;++n)iXe(h[n],this,r);return!0};function lXe(e,t,r,n){var o,s,u;if(AL(r),s=e._events,s===void 0?(s=e._events=Object.create(null),e._eventsCount=0):(s.newListener!==void 0&&(e.emit(\"newListener\",t,r.listener?r.listener:r),s=e._events),u=s[t]),u===void 0)u=s[t]=r,++e._eventsCount;else if(typeof u==\"function\"?u=s[t]=n?[r,u]:[u,r]:n?u.unshift(r):u.push(r),o=uXe(e),o>0&&u.length>o&&!u.warned){u.warned=!0;var f=new Error(\"Possible EventEmitter memory leak detected. \"+u.length+\" \"+String(t)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");f.name=\"MaxListenersExceededWarning\",f.emitter=e,f.type=t,f.count=u.length,VAt(f)}return e}gn.prototype.addListener=function(t,r){return lXe(this,t,r,!1)};gn.prototype.on=gn.prototype.addListener;gn.prototype.prependListener=function(t,r){return lXe(this,t,r,!0)};function KAt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function fXe(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=KAt.bind(n);return o.listener=r,n.wrapFn=o,o}gn.prototype.once=function(t,r){return AL(r),this.on(t,fXe(this,t,r)),this};gn.prototype.prependOnceListener=function(t,r){return AL(r),this.prependListener(t,fXe(this,t,r)),this};gn.prototype.removeListener=function(t,r){var n,o,s,u,f;if(AL(r),o=this._events,o===void 0)return this;if(n=o[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit(\"removeListener\",t,n.listener||r));else if(typeof n!=\"function\"){for(s=-1,u=n.length-1;u>=0;u--)if(n[u]===r||n[u].listener===r){f=n[u].listener,s=u;break}if(s<0)return this;s===0?n.shift():WAt(n,s),n.length===1&&(o[t]=n[0]),o.removeListener!==void 0&&this.emit(\"removeListener\",t,f||r)}return this};gn.prototype.off=gn.prototype.removeListener;gn.prototype.removeAllListeners=function(t){var r,n,o;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var s=Object.keys(n),u;for(o=0;o<s.length;++o)u=s[o],u!==\"removeListener\"&&this.removeAllListeners(u);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r==\"function\")this.removeListener(t,r);else if(r!==void 0)for(o=r.length-1;o>=0;o--)this.removeListener(t,r[o]);return this};function dXe(e,t,r){var n=e._events;if(n===void 0)return[];var o=n[t];return o===void 0?[]:typeof o==\"function\"?r?[o.listener||o]:[o]:r?QAt(o):mXe(o,o.length)}gn.prototype.listeners=function(t){return dXe(this,t,!0)};gn.prototype.rawListeners=function(t){return dXe(this,t,!1)};gn.listenerCount=function(e,t){return typeof e.listenerCount==\"function\"?e.listenerCount(t):pXe.call(e,t)};gn.prototype.listenerCount=pXe;function pXe(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r==\"function\")return 1;if(r!==void 0)return r.length}return 0}gn.prototype.eventNames=function(){return this._eventsCount>0?EL(this._events):[]};function mXe(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function WAt(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function QAt(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function ZAt(e,t){return new Promise(function(r,n){function o(u){e.removeListener(t,s),n(u)}function s(){typeof e.removeListener==\"function\"&&e.removeListener(\"error\",o),r([].slice.call(arguments))}hXe(e,t,s,{once:!0}),t!==\"error\"&&JAt(e,o,{once:!0})})}function JAt(e,t,r){typeof e.on==\"function\"&&hXe(e,\"error\",t,r)}function hXe(e,t,r,n){if(typeof e.on==\"function\")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener==\"function\")e.addEventListener(t,function o(s){n.once&&e.removeEventListener(t,o),r(s)});else throw new TypeError(\\'The \"emitter\" argument must be of type EventEmitter. Received type \\'+typeof e)}});var mte=X((KWn,yXe)=>{c();yXe.exports=h4().EventEmitter});var hte=X(()=>{c()});var EXe=X((YWn,wXe)=>{\"use strict\";c();function bXe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function gXe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bXe(Object(r),!0).forEach(function(n){YAt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bXe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YAt(e,t,r){return t=vXe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XAt(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function xXe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,vXe(n.key),n)}}function eSt(e,t,r){return t&&xXe(e.prototype,t),r&&xXe(e,r),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function vXe(e){var t=tSt(e,\"string\");return typeof t==\"symbol\"?t:String(t)}function tSt(e,t){if(typeof e!=\"object\"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||\"default\");if(typeof n!=\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}var rSt=uv(),SL=rSt.Buffer,nSt=hte(),yte=nSt.inspect,oSt=yte&&yte.custom||\"inspect\";function aSt(e,t,r){SL.prototype.copy.call(e,t,r)}wXe.exports=(function(){function e(){XAt(this,e),this.head=null,this.tail=null,this.length=0}return eSt(e,[{key:\"push\",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:\"unshift\",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:\"shift\",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:\"clear\",value:function(){this.head=this.tail=null,this.length=0}},{key:\"join\",value:function(r){if(this.length===0)return\"\";for(var n=this.head,o=\"\"+n.data;n=n.next;)o+=r+n.data;return o}},{key:\"concat\",value:function(r){if(this.length===0)return SL.alloc(0);for(var n=SL.allocUnsafe(r>>>0),o=this.head,s=0;o;)aSt(o.data,n,s),s+=o.data.length,o=o.next;return n}},{key:\"consume\",value:function(r,n){var o;return r<this.head.data.length?(o=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?o=this.shift():o=n?this._getString(r):this._getBuffer(r),o}},{key:\"first\",value:function(){return this.head.data}},{key:\"_getString\",value:function(r){var n=this.head,o=1,s=n.data;for(r-=s.length;n=n.next;){var u=n.data,f=r>u.length?u.length:r;if(f===u.length?s+=u:s+=u.slice(0,r),r-=f,r===0){f===u.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=u.slice(f));break}++o}return this.length-=o,s}},{key:\"_getBuffer\",value:function(r){var n=SL.allocUnsafe(r),o=this.head,s=1;for(o.data.copy(n),r-=o.data.length;o=o.next;){var u=o.data,f=r>u.length?u.length:r;if(u.copy(n,n.length-r,0,f),r-=f,r===0){f===u.length?(++s,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=u.slice(f));break}++s}return this.length-=s,n}},{key:oSt,value:function(r,n){return yte(this,gXe(gXe({},n),{},{depth:0,customInspect:!1}))}}]),e})()});var gte=X((eQn,SXe)=>{\"use strict\";c();function iSt(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return n||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(bte,this,e)):process.nextTick(bte,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(CL,r):(r._writableState.errorEmitted=!0,process.nextTick(AXe,r,s)):process.nextTick(AXe,r,s):t?(process.nextTick(CL,r),t(s)):process.nextTick(CL,r)}),this)}function AXe(e,t){bte(e,t),CL(e)}function CL(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(\"close\")}function sSt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function bte(e,t){e.emit(\"error\",t)}function cSt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit(\"error\",t)}SXe.exports={destroy:iSt,undestroy:sSt,errorOrDestroy:cSt}});var Vx=X((rQn,_Xe)=>{\"use strict\";c();function uSt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var TXe={};function Zu(e,t,r){r||(r=Error);function n(s,u,f){return typeof t==\"string\"?t:t(s,u,f)}var o=(function(s){uSt(u,s);function u(f,d,m){return s.call(this,n(f,d,m))||this}return u})(r);o.prototype.name=r.name,o.prototype.code=e,TXe[e]=o}function CXe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?\"one of \".concat(t,\" \").concat(e.slice(0,r-1).join(\", \"),\", or \")+e[r-1]:r===2?\"one of \".concat(t,\" \").concat(e[0],\" or \").concat(e[1]):\"of \".concat(t,\" \").concat(e[0])}else return\"of \".concat(t,\" \").concat(String(e))}function lSt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function fSt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function dSt(e,t,r){return typeof r!=\"number\"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Zu(\"ERR_INVALID_OPT_VALUE\",function(e,t){return\\'The value \"\\'+t+\\'\" is invalid for option \"\\'+e+\\'\"\\'},TypeError);Zu(\"ERR_INVALID_ARG_TYPE\",function(e,t,r){var n;typeof t==\"string\"&&lSt(t,\"not \")?(n=\"must not be\",t=t.replace(/^not /,\"\")):n=\"must be\";var o;if(fSt(e,\" argument\"))o=\"The \".concat(e,\" \").concat(n,\" \").concat(CXe(t,\"type\"));else{var s=dSt(e,\".\")?\"property\":\"argument\";o=\\'The \"\\'.concat(e,\\'\" \\').concat(s,\" \").concat(n,\" \").concat(CXe(t,\"type\"))}return o+=\". Received type \".concat(typeof r),o},TypeError);Zu(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\");Zu(\"ERR_METHOD_NOT_IMPLEMENTED\",function(e){return\"The \"+e+\" method is not implemented\"});Zu(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\");Zu(\"ERR_STREAM_DESTROYED\",function(e){return\"Cannot call \"+e+\" after a stream was destroyed\"});Zu(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\");Zu(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\");Zu(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\");Zu(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError);Zu(\"ERR_UNKNOWN_ENCODING\",function(e){return\"Unknown encoding: \"+e},TypeError);Zu(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\");_Xe.exports.codes=TXe});var xte=X((oQn,kXe)=>{\"use strict\";c();var pSt=Vx().codes.ERR_INVALID_OPT_VALUE;function mSt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function hSt(e,t,r,n){var o=mSt(t,n,r);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var s=n?r:\"highWaterMark\";throw new pSt(s,o)}return Math.floor(o)}return e.objectMode?16:16*1024}kXe.exports={getHighWaterMark:hSt}});var IXe=X((iQn,BXe)=>{c();BXe.exports=ySt;function ySt(e,t){if(vte(\"noDeprecation\"))return e;var r=!1;function n(){if(!r){if(vte(\"throwDeprecation\"))throw new Error(t);vte(\"traceDeprecation\")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function vte(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()===\"true\"}});var Ate=X((cQn,UXe)=>{\"use strict\";c();UXe.exports=Eo;function RXe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){qSt(t,e)}}var O3;Eo.WritableState=b4;var bSt={deprecate:IXe()},MXe=mte(),_L=uv().Buffer,gSt=(typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function xSt(e){return _L.from(e)}function vSt(e){return _L.isBuffer(e)||e instanceof gSt}var Ete=gte(),wSt=xte(),ESt=wSt.getHighWaterMark,pb=Vx().codes,ASt=pb.ERR_INVALID_ARG_TYPE,SSt=pb.ERR_METHOD_NOT_IMPLEMENTED,CSt=pb.ERR_MULTIPLE_CALLBACK,TSt=pb.ERR_STREAM_CANNOT_PIPE,_St=pb.ERR_STREAM_DESTROYED,kSt=pb.ERR_STREAM_NULL_VALUES,BSt=pb.ERR_STREAM_WRITE_AFTER_END,ISt=pb.ERR_UNKNOWN_ENCODING,N3=Ete.errorOrDestroy;Wu()(Eo,MXe);function PSt(){}function b4(e,t,r){O3=O3||Kx(),e=e||{},typeof r!=\"boolean\"&&(r=t instanceof O3),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=ESt(this,e,\"writableHighWaterMark\",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(o){HSt(t,o)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new RXe(this)}b4.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(b4.prototype,\"buffer\",{get:bSt.deprecate(function(){return this.getBuffer()},\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch{}})();var TL;typeof Symbol==\"function\"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==\"function\"?(TL=Function.prototype[Symbol.hasInstance],Object.defineProperty(Eo,Symbol.hasInstance,{value:function(t){return TL.call(this,t)?!0:this!==Eo?!1:t&&t._writableState instanceof b4}})):TL=function(t){return t instanceof this};function Eo(e){O3=O3||Kx();var t=this instanceof O3;if(!t&&!TL.call(Eo,this))return new Eo(e);this._writableState=new b4(e,this,t),this.writable=!0,e&&(typeof e.write==\"function\"&&(this._write=e.write),typeof e.writev==\"function\"&&(this._writev=e.writev),typeof e.destroy==\"function\"&&(this._destroy=e.destroy),typeof e.final==\"function\"&&(this._final=e.final)),MXe.call(this)}Eo.prototype.pipe=function(){N3(this,new TSt)};function RSt(e,t){var r=new BSt;N3(e,r),process.nextTick(t,r)}function MSt(e,t,r,n){var o;return r===null?o=new kSt:typeof r!=\"string\"&&!t.objectMode&&(o=new ASt(\"chunk\",[\"string\",\"Buffer\"],r)),o?(N3(e,o),process.nextTick(n,o),!1):!0}Eo.prototype.write=function(e,t,r){var n=this._writableState,o=!1,s=!n.objectMode&&vSt(e);return s&&!_L.isBuffer(e)&&(e=xSt(e)),typeof t==\"function\"&&(r=t,t=null),s?t=\"buffer\":t||(t=n.defaultEncoding),typeof r!=\"function\"&&(r=PSt),n.ending?RSt(this,r):(s||MSt(this,n,e,r))&&(n.pendingcb++,o=NSt(this,n,s,e,t,r)),o};Eo.prototype.cork=function(){this._writableState.corked++};Eo.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&OXe(this,e))};Eo.prototype.setDefaultEncoding=function(t){if(typeof t==\"string\"&&(t=t.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((t+\"\").toLowerCase())>-1))throw new ISt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Eo.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function OSt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==\"string\"&&(t=_L.from(t,r)),t}Object.defineProperty(Eo.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function NSt(e,t,r,n,o,s){if(!r){var u=OSt(t,n,o);n!==u&&(r=!0,o=\"buffer\",n=u)}var f=t.objectMode?1:n.length;t.length+=f;var d=t.length<t.highWaterMark;if(d||(t.needDrain=!0),t.writing||t.corked){var m=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:s,next:null},m?m.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else wte(e,t,!1,f,n,o,s);return d}function wte(e,t,r,n,o,s,u){t.writelen=n,t.writecb=u,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _St(\"write\")):r?e._writev(o,t.onwrite):e._write(o,s,t.onwrite),t.sync=!1}function USt(e,t,r,n,o){--t.pendingcb,r?(process.nextTick(o,n),process.nextTick(y4,e,t),e._writableState.errorEmitted=!0,N3(e,n)):(o(n),e._writableState.errorEmitted=!0,N3(e,n),y4(e,t))}function DSt(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function HSt(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if(typeof o!=\"function\")throw new CSt;if(DSt(r),t)USt(e,r,n,t,o);else{var s=NXe(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&OXe(e,r),n?process.nextTick(PXe,e,r,s,o):PXe(e,r,s,o)}}function PXe(e,t,r,n){r||LSt(e,t),t.pendingcb--,n(),y4(e,t)}function LSt(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(\"drain\"))}function OXe(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var u=0,f=!0;r;)o[u]=r,r.isBuf||(f=!1),r=r.next,u+=1;o.allBuffers=f,wte(e,t,!0,t.length,o,\"\",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new RXe(t),t.bufferedRequestCount=0}else{for(;r;){var d=r.chunk,m=r.encoding,h=r.callback,y=t.objectMode?1:d.length;if(wte(e,t,!1,y,d,m,h),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Eo.prototype._write=function(e,t,r){r(new SSt(\"_write()\"))};Eo.prototype._writev=null;Eo.prototype.end=function(e,t,r){var n=this._writableState;return typeof e==\"function\"?(r=e,e=null,t=null):typeof t==\"function\"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||jSt(this,n,r),this};Object.defineProperty(Eo.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}});function NXe(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function zSt(e,t){e._final(function(r){t.pendingcb--,r&&N3(e,r),t.prefinished=!0,e.emit(\"prefinish\"),y4(e,t)})}function FSt(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==\"function\"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(zSt,e,t)):(t.prefinished=!0,e.emit(\"prefinish\")))}function y4(e,t){var r=NXe(t);if(r&&(FSt(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(\"finish\"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function jSt(e,t,r){t.ending=!0,y4(e,t),r&&(t.finished?process.nextTick(r):e.once(\"finish\",r)),t.ended=!0,e.writable=!1}function qSt(e,t,r){var n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Eo.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Eo.prototype.destroy=Ete.destroy;Eo.prototype._undestroy=Ete.undestroy;Eo.prototype._destroy=function(e,t){t(e)}});var Kx=X((lQn,HXe)=>{\"use strict\";c();var $St=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};HXe.exports=ap;var DXe=Tte(),Cte=Ate();Wu()(ap,DXe);for(Ste=$St(Cte.prototype),kL=0;kL<Ste.length;kL++)BL=Ste[kL],ap.prototype[BL]||(ap.prototype[BL]=Cte.prototype[BL]);var Ste,BL,kL;function ap(e){if(!(this instanceof ap))return new ap(e);DXe.call(this,e),Cte.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(\"end\",GSt)))}Object.defineProperty(ap.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ap.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ap.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}});function GSt(){this._writableState.ended||process.nextTick(VSt,this)}function VSt(e){e.end()}Object.defineProperty(ap.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var Bte=X(zXe=>{\"use strict\";c();var kte=Xd().Buffer,LXe=kte.isEncoding||function(e){switch(e=\"\"+e,e&&e.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function KSt(e){if(!e)return\"utf8\";for(var t;;)switch(e){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return e;default:if(t)return;e=(\"\"+e).toLowerCase(),t=!0}}function WSt(e){var t=KSt(e);if(typeof t!=\"string\"&&(kte.isEncoding===LXe||!LXe(e)))throw new Error(\"Unknown encoding: \"+e);return t||e}zXe.StringDecoder=g4;function g4(e){this.encoding=WSt(e);var t;switch(this.encoding){case\"utf16le\":this.text=eCt,this.end=tCt,t=4;break;case\"utf8\":this.fillLast=JSt,t=4;break;case\"base64\":this.text=rCt,this.end=nCt,t=3;break;default:this.write=oCt,this.end=aCt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=kte.allocUnsafe(t)}g4.prototype.write=function(e){if(e.length===0)return\"\";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return\"\";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||\"\"};g4.prototype.end=XSt;g4.prototype.text=YSt;g4.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function _te(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function QSt(e,t,r){var n=t.length-1;if(n<r)return 0;var o=_te(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||o===-2?0:(o=_te(t[n]),o>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||o===-2?0:(o=_te(t[n]),o>=0?(o>0&&(o===2?o=0:e.lastNeed=o-3),o):0))}function ZSt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,\"\\\\uFFFD\";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,\"\\\\uFFFD\";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,\"\\\\uFFFD\"}}function JSt(e){var t=this.lastTotal-this.lastNeed,r=ZSt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function YSt(e,t){var r=QSt(this,e,t);if(!this.lastNeed)return e.toString(\"utf8\",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString(\"utf8\",t,n)}function XSt(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+\"\\\\uFFFD\":t}function eCt(e,t){if((e.length-t)%2===0){var r=e.toString(\"utf16le\",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(\"utf16le\",t,e.length-1)}function tCt(e){var t=e&&e.length?this.write(e):\"\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(\"utf16le\",0,r)}return t}function rCt(e,t){var r=(e.length-t)%3;return r===0?e.toString(\"base64\",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(\"base64\",t,e.length-r))}function nCt(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+this.lastChar.toString(\"base64\",0,3-this.lastNeed):t}function oCt(e){return e.toString(this.encoding)}function aCt(e){return e&&e.length?this.write(e):\"\"}});var IL=X((mQn,qXe)=>{\"use strict\";c();var FXe=Vx().codes.ERR_STREAM_PREMATURE_CLOSE;function iCt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}function sCt(){}function cCt(e){return e.setHeader&&typeof e.abort==\"function\"}function jXe(e,t,r){if(typeof t==\"function\")return jXe(e,null,t);t||(t={}),r=iCt(r||sCt);var n=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||f()},u=e._writableState&&e._writableState.finished,f=function(){o=!1,u=!0,n||r.call(e)},d=e._readableState&&e._readableState.endEmitted,m=function(){n=!1,d=!0,o||r.call(e)},h=function(C){r.call(e,C)},y=function(){var C;if(n&&!d)return(!e._readableState||!e._readableState.ended)&&(C=new FXe),r.call(e,C);if(o&&!u)return(!e._writableState||!e._writableState.ended)&&(C=new FXe),r.call(e,C)},v=function(){e.req.on(\"finish\",f)};return cCt(e)?(e.on(\"complete\",f),e.on(\"abort\",y),e.req?v():e.on(\"request\",v)):o&&!e._writableState&&(e.on(\"end\",s),e.on(\"close\",s)),e.on(\"end\",m),e.on(\"finish\",f),t.error!==!1&&e.on(\"error\",h),e.on(\"close\",y),function(){e.removeListener(\"complete\",f),e.removeListener(\"abort\",y),e.removeListener(\"request\",v),e.req&&e.req.removeListener(\"finish\",f),e.removeListener(\"end\",s),e.removeListener(\"close\",s),e.removeListener(\"finish\",f),e.removeListener(\"end\",m),e.removeListener(\"error\",h),e.removeListener(\"close\",y)}}qXe.exports=jXe});var GXe=X((yQn,$Xe)=>{\"use strict\";c();var PL;function mb(e,t,r){return t=uCt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uCt(e){var t=lCt(e,\"string\");return typeof t==\"symbol\"?t:String(t)}function lCt(e,t){if(typeof e!=\"object\"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||\"default\");if(typeof n!=\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}var fCt=IL(),hb=Symbol(\"lastResolve\"),Wx=Symbol(\"lastReject\"),x4=Symbol(\"error\"),RL=Symbol(\"ended\"),Qx=Symbol(\"lastPromise\"),Ite=Symbol(\"handlePromise\"),Zx=Symbol(\"stream\");function yb(e,t){return{value:e,done:t}}function dCt(e){var t=e[hb];if(t!==null){var r=e[Zx].read();r!==null&&(e[Qx]=null,e[hb]=null,e[Wx]=null,t(yb(r,!1)))}}function pCt(e){process.nextTick(dCt,e)}function mCt(e,t){return function(r,n){e.then(function(){if(t[RL]){r(yb(void 0,!0));return}t[Ite](r,n)},n)}}var hCt=Object.getPrototypeOf(function(){}),yCt=Object.setPrototypeOf((PL={get stream(){return this[Zx]},next:function(){var t=this,r=this[x4];if(r!==null)return Promise.reject(r);if(this[RL])return Promise.resolve(yb(void 0,!0));if(this[Zx].destroyed)return new Promise(function(u,f){process.nextTick(function(){t[x4]?f(t[x4]):u(yb(void 0,!0))})});var n=this[Qx],o;if(n)o=new Promise(mCt(n,this));else{var s=this[Zx].read();if(s!==null)return Promise.resolve(yb(s,!1));o=new Promise(this[Ite])}return this[Qx]=o,o}},mb(PL,Symbol.asyncIterator,function(){return this}),mb(PL,\"return\",function(){var t=this;return new Promise(function(r,n){t[Zx].destroy(null,function(o){if(o){n(o);return}r(yb(void 0,!0))})})}),PL),hCt),bCt=function(t){var r,n=Object.create(yCt,(r={},mb(r,Zx,{value:t,writable:!0}),mb(r,hb,{value:null,writable:!0}),mb(r,Wx,{value:null,writable:!0}),mb(r,x4,{value:null,writable:!0}),mb(r,RL,{value:t._readableState.endEmitted,writable:!0}),mb(r,Ite,{value:function(s,u){var f=n[Zx].read();f?(n[Qx]=null,n[hb]=null,n[Wx]=null,s(yb(f,!1))):(n[hb]=s,n[Wx]=u)},writable:!0}),r));return n[Qx]=null,fCt(t,function(o){if(o&&o.code!==\"ERR_STREAM_PREMATURE_CLOSE\"){var s=n[Wx];s!==null&&(n[Qx]=null,n[hb]=null,n[Wx]=null,s(o)),n[x4]=o;return}var u=n[hb];u!==null&&(n[Qx]=null,n[hb]=null,n[Wx]=null,u(yb(void 0,!0))),n[RL]=!0}),t.on(\"readable\",pCt.bind(null,n)),n};$Xe.exports=bCt});var KXe=X((gQn,VXe)=>{c();VXe.exports=function(){throw new Error(\"Readable.from is not available in the browser\")}});var Tte=X((wQn,net)=>{\"use strict\";c();net.exports=kr;var U3;kr.ReadableState=JXe;var vQn=h4().EventEmitter,ZXe=function(t,r){return t.listeners(r).length},w4=mte(),ML=uv().Buffer,gCt=(typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function xCt(e){return ML.from(e)}function vCt(e){return ML.isBuffer(e)||e instanceof gCt}var Pte=hte(),ir;Pte&&Pte.debuglog?ir=Pte.debuglog(\"stream\"):ir=function(){};var wCt=EXe(),Hte=gte(),ECt=xte(),ACt=ECt.getHighWaterMark,OL=Vx().codes,SCt=OL.ERR_INVALID_ARG_TYPE,CCt=OL.ERR_STREAM_PUSH_AFTER_EOF,TCt=OL.ERR_METHOD_NOT_IMPLEMENTED,_Ct=OL.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,D3,Rte,Mte;Wu()(kr,w4);var v4=Hte.errorOrDestroy,Ote=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function kCt(e,t,r){if(typeof e.prependListener==\"function\")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function JXe(e,t,r){U3=U3||Kx(),e=e||{},typeof r!=\"boolean\"&&(r=t instanceof U3),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=ACt(this,e,\"readableHighWaterMark\",r),this.buffer=new wCt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(D3||(D3=Bte().StringDecoder),this.decoder=new D3(e.encoding),this.encoding=e.encoding)}function kr(e){if(U3=U3||Kx(),!(this instanceof kr))return new kr(e);var t=this instanceof U3;this._readableState=new JXe(e,this,t),this.readable=!0,e&&(typeof e.read==\"function\"&&(this._read=e.read),typeof e.destroy==\"function\"&&(this._destroy=e.destroy)),w4.call(this)}Object.defineProperty(kr.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});kr.prototype.destroy=Hte.destroy;kr.prototype._undestroy=Hte.undestroy;kr.prototype._destroy=function(e,t){t(e)};kr.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e==\"string\"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=ML.from(e,t),t=\"\"),n=!0),YXe(this,e,t,!1,n)};kr.prototype.unshift=function(e){return YXe(this,e,null,!0,!1)};function YXe(e,t,r,n,o){ir(\"readableAddChunk\",t);var s=e._readableState;if(t===null)s.reading=!1,PCt(e,s);else{var u;if(o||(u=BCt(s,t)),u)v4(e,u);else if(s.objectMode||t&&t.length>0)if(typeof t!=\"string\"&&!s.objectMode&&Object.getPrototypeOf(t)!==ML.prototype&&(t=xCt(t)),n)s.endEmitted?v4(e,new _Ct):Nte(e,s,t,!0);else if(s.ended)v4(e,new CCt);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?Nte(e,s,t,!1):Dte(e,s)):Nte(e,s,t,!1)}else n||(s.reading=!1,Dte(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Nte(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(\"data\",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&NL(e)),Dte(e,t)}function BCt(e,t){var r;return!vCt(t)&&typeof t!=\"string\"&&t!==void 0&&!e.objectMode&&(r=new SCt(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],t)),r}kr.prototype.isPaused=function(){return this._readableState.flowing===!1};kr.prototype.setEncoding=function(e){D3||(D3=Bte().StringDecoder);var t=new D3(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n=\"\";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==\"\"&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var WXe=1073741824;function ICt(e){return e>=WXe?e=WXe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function QXe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=ICt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}kr.prototype.read=function(e){ir(\"read\",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return ir(\"read: emitReadable\",t.length,t.ended),t.length===0&&t.ended?Ute(this):NL(this),null;if(e=QXe(e,t),e===0&&t.ended)return t.length===0&&Ute(this),null;var n=t.needReadable;ir(\"need readable\",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,ir(\"length less than watermark\",n)),t.ended||t.reading?(n=!1,ir(\"reading or ended\",n)):n&&(ir(\"do read\"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=QXe(r,t)));var o;return e>0?o=tet(e,t):o=null,o===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Ute(this)),o!==null&&this.emit(\"data\",o),o};function PCt(e,t){if(ir(\"onEofChunk\"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?NL(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,XXe(e)))}}function NL(e){var t=e._readableState;ir(\"emitReadable\",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(ir(\"emitReadable\",t.flowing),t.emittedReadable=!0,process.nextTick(XXe,e))}function XXe(e){var t=e._readableState;ir(\"emitReadable_\",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(\"readable\"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Lte(e)}function Dte(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(RCt,e,t))}function RCt(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(ir(\"maybeReadMore read 0\"),e.read(0),r===t.length)break}t.readingMore=!1}kr.prototype._read=function(e){v4(this,new TCt(\"_read()\"))};kr.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,ir(\"pipe count=%d opts=%j\",n.pipesCount,t);var o=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=o?f:B;n.endEmitted?process.nextTick(s):r.once(\"end\",s),e.on(\"unpipe\",u);function u(R,M){ir(\"onunpipe\"),R===r&&M&&M.hasUnpiped===!1&&(M.hasUnpiped=!0,h())}function f(){ir(\"onend\"),e.end()}var d=MCt(r);e.on(\"drain\",d);var m=!1;function h(){ir(\"cleanup\"),e.removeListener(\"close\",E),e.removeListener(\"finish\",C),e.removeListener(\"drain\",d),e.removeListener(\"error\",v),e.removeListener(\"unpipe\",u),r.removeListener(\"end\",f),r.removeListener(\"end\",B),r.removeListener(\"data\",y),m=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&d()}r.on(\"data\",y);function y(R){ir(\"ondata\");var M=e.write(R);ir(\"dest.write\",M),M===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&ret(n.pipes,e)!==-1)&&!m&&(ir(\"false write response, pause\",n.awaitDrain),n.awaitDrain++),r.pause())}function v(R){ir(\"onerror\",R),B(),e.removeListener(\"error\",v),ZXe(e,\"error\")===0&&v4(e,R)}kCt(e,\"error\",v);function E(){e.removeListener(\"finish\",C),B()}e.once(\"close\",E);function C(){ir(\"onfinish\"),e.removeListener(\"close\",E),B()}e.once(\"finish\",C);function B(){ir(\"unpipe\"),r.unpipe(e)}return e.emit(\"pipe\",r),n.flowing||(ir(\"pipe resume\"),r.resume()),e};function MCt(e){return function(){var r=e._readableState;ir(\"pipeOnDrain\",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ZXe(e,\"data\")&&(r.flowing=!0,Lte(e))}}kr.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(\"unpipe\",this,r),this);if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<o;s++)n[s].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var u=ret(t.pipes,e);return u===-1?this:(t.pipes.splice(u,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(\"unpipe\",this,r),this)};kr.prototype.on=function(e,t){var r=w4.prototype.on.call(this,e,t),n=this._readableState;return e===\"data\"?(n.readableListening=this.listenerCount(\"readable\")>0,n.flowing!==!1&&this.resume()):e===\"readable\"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,ir(\"on readable\",n.length,n.reading),n.length?NL(this):n.reading||process.nextTick(OCt,this)),r};kr.prototype.addListener=kr.prototype.on;kr.prototype.removeListener=function(e,t){var r=w4.prototype.removeListener.call(this,e,t);return e===\"readable\"&&process.nextTick(eet,this),r};kr.prototype.removeAllListeners=function(e){var t=w4.prototype.removeAllListeners.apply(this,arguments);return(e===\"readable\"||e===void 0)&&process.nextTick(eet,this),t};function eet(e){var t=e._readableState;t.readableListening=e.listenerCount(\"readable\")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(\"data\")>0&&e.resume()}function OCt(e){ir(\"readable nexttick read 0\"),e.read(0)}kr.prototype.resume=function(){var e=this._readableState;return e.flowing||(ir(\"resume\"),e.flowing=!e.readableListening,NCt(this,e)),e.paused=!1,this};function NCt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(UCt,e,t))}function UCt(e,t){ir(\"resume\",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(\"resume\"),Lte(e),t.flowing&&!t.reading&&e.read(0)}kr.prototype.pause=function(){return ir(\"call pause flowing=%j\",this._readableState.flowing),this._readableState.flowing!==!1&&(ir(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState.paused=!0,this};function Lte(e){var t=e._readableState;for(ir(\"flow\",t.flowing);t.flowing&&e.read()!==null;);}kr.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on(\"end\",function(){if(ir(\"wrapped end\"),r.decoder&&!r.ended){var u=r.decoder.end();u&&u.length&&t.push(u)}t.push(null)}),e.on(\"data\",function(u){if(ir(\"wrapped data\"),r.decoder&&(u=r.decoder.write(u)),!(r.objectMode&&u==null)&&!(!r.objectMode&&(!u||!u.length))){var f=t.push(u);f||(n=!0,e.pause())}});for(var o in e)this[o]===void 0&&typeof e[o]==\"function\"&&(this[o]=(function(f){return function(){return e[f].apply(e,arguments)}})(o));for(var s=0;s<Ote.length;s++)e.on(Ote[s],this.emit.bind(this,Ote[s]));return this._read=function(u){ir(\"wrapped _read\",u),n&&(n=!1,e.resume())},this};typeof Symbol==\"function\"&&(kr.prototype[Symbol.asyncIterator]=function(){return Rte===void 0&&(Rte=GXe()),Rte(this)});Object.defineProperty(kr.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(kr.prototype,\"readableBuffer\",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(kr.prototype,\"readableFlowing\",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});kr._fromList=tet;Object.defineProperty(kr.prototype,\"readableLength\",{enumerable:!1,get:function(){return this._readableState.length}});function tet(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(\"\"):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Ute(e){var t=e._readableState;ir(\"endReadable\",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(DCt,t,e))}function DCt(e,t){if(ir(\"endReadableNT\",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(\"end\"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol==\"function\"&&(kr.from=function(e,t){return Mte===void 0&&(Mte=KXe()),Mte(kr,e,t)});function ret(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var zte=X((AQn,aet)=>{\"use strict\";c();aet.exports=mh;var UL=Vx().codes,HCt=UL.ERR_METHOD_NOT_IMPLEMENTED,LCt=UL.ERR_MULTIPLE_CALLBACK,zCt=UL.ERR_TRANSFORM_ALREADY_TRANSFORMING,FCt=UL.ERR_TRANSFORM_WITH_LENGTH_0,DL=Kx();Wu()(mh,DL);function jCt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit(\"error\",new LCt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function mh(e){if(!(this instanceof mh))return new mh(e);DL.call(this,e),this._transformState={afterTransform:jCt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==\"function\"&&(this._transform=e.transform),typeof e.flush==\"function\"&&(this._flush=e.flush)),this.on(\"prefinish\",qCt)}function qCt(){var e=this;typeof this._flush==\"function\"&&!this._readableState.destroyed?this._flush(function(t,r){oet(e,t,r)}):oet(this,null,null)}mh.prototype.push=function(e,t){return this._transformState.needTransform=!1,DL.prototype.push.call(this,e,t)};mh.prototype._transform=function(e,t,r){r(new HCt(\"_transform()\"))};mh.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}};mh.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};mh.prototype._destroy=function(e,t){DL.prototype._destroy.call(this,e,function(r){t(r)})};function oet(e,t,r){if(t)return e.emit(\"error\",t);if(r!=null&&e.push(r),e._writableState.length)throw new FCt;if(e._transformState.transforming)throw new zCt;return e.push(null)}});var cet=X((CQn,set)=>{\"use strict\";c();set.exports=E4;var iet=zte();Wu()(E4,iet);function E4(e){if(!(this instanceof E4))return new E4(e);iet.call(this,e)}E4.prototype._transform=function(e,t,r){r(null,e)}});var met=X((_Qn,pet)=>{\"use strict\";c();var Fte;function $Ct(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var det=Vx().codes,GCt=det.ERR_MISSING_ARGS,VCt=det.ERR_STREAM_DESTROYED;function uet(e){if(e)throw e}function KCt(e){return e.setHeader&&typeof e.abort==\"function\"}function WCt(e,t,r,n){n=$Ct(n);var o=!1;e.on(\"close\",function(){o=!0}),Fte===void 0&&(Fte=IL()),Fte(e,{readable:t,writable:r},function(u){if(u)return n(u);o=!0,n()});var s=!1;return function(u){if(!o&&!s){if(s=!0,KCt(e))return e.abort();if(typeof e.destroy==\"function\")return e.destroy();n(u||new VCt(\"pipe\"))}}}function fet(e){e()}function QCt(e,t){return e.pipe(t)}function ZCt(e){return!e.length||typeof e[e.length-1]!=\"function\"?uet:e.pop()}function JCt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=ZCt(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new GCt(\"streams\");var o,s=t.map(function(u,f){var d=f<t.length-1,m=f>0;return WCt(u,d,m,function(h){o||(o=h),h&&s.forEach(fet),!d&&(s.forEach(fet),n(o))})});return t.reduce(QCt)}pet.exports=JCt});var jte=X((Ju,het)=>{c();Ju=het.exports=Tte();Ju.Stream=Ju;Ju.Readable=Ju;Ju.Writable=Ate();Ju.Duplex=Kx();Ju.Transform=zte();Ju.PassThrough=cet();Ju.finished=IL();Ju.pipeline=met()});var get=X((IQn,bet)=>{c();var{Transform:YCt}=jte();bet.exports=e=>class yet extends YCt{constructor(r,n,o,s,u){super(u),this._rate=r,this._capacity=n,this._delimitedSuffix=o,this._hashBitLength=s,this._options=u,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,o){let s=null;try{this.update(r,n)}catch(u){s=u}o(s)}_flush(r){let n=null;try{this.push(this.digest())}catch(o){n=o}r(n)}update(r,n){if(!globalThis.Buffer.isBuffer(r)&&typeof r!=\"string\")throw new TypeError(\"Data must be a string or a buffer\");if(this._finalized)throw new Error(\"Digest already called\");return globalThis.Buffer.isBuffer(r)||(r=globalThis.Buffer.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error(\"Digest already called\");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let r=new yet(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}}});var wet=X((RQn,vet)=>{c();var{Transform:XCt}=jte();vet.exports=e=>class xet extends XCt{constructor(r,n,o,s){super(s),this._rate=r,this._capacity=n,this._delimitedSuffix=o,this._options=s,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,o){let s=null;try{this.update(r,n)}catch(u){s=u}o(s)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,n){if(!globalThis.Buffer.isBuffer(r)&&typeof r!=\"string\")throw new TypeError(\"Data must be a string or a buffer\");if(this._finalized)throw new Error(\"Squeeze already called\");return globalThis.Buffer.isBuffer(r)||(r=globalThis.Buffer.from(r,n)),this._state.absorb(r),this}squeeze(r,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let o=this._state.squeeze(r);return n!==void 0&&(o=o.toString(n)),o}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let r=new xet(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}}});var Aet=X((OQn,Eet)=>{c();var eTt=get(),tTt=wet();Eet.exports=function(e){let t=eTt(e),r=tTt(e);return function(n,o){switch(typeof n==\"string\"?n.toLowerCase():n){case\"keccak224\":return new t(1152,448,null,224,o);case\"keccak256\":return new t(1088,512,null,256,o);case\"keccak384\":return new t(832,768,null,384,o);case\"keccak512\":return new t(576,1024,null,512,o);case\"sha3-224\":return new t(1152,448,6,224,o);case\"sha3-256\":return new t(1088,512,6,256,o);case\"sha3-384\":return new t(832,768,6,384,o);case\"sha3-512\":return new t(576,1024,6,512,o);case\"shake128\":return new r(1344,256,31,o);case\"shake256\":return new r(1088,512,31,o);default:throw new Error(\"Invald algorithm: \"+n)}}}});var _et=X(Tet=>{c();var Cet=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];Tet.p1600=function(e){for(let t=0;t<24;++t){let r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],f=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],m=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],y=e[9]^e[19]^e[29]^e[39]^e[49],v=h^(o<<1|s>>>31),E=y^(s<<1|o>>>31),C=e[0]^v,B=e[1]^E,R=e[10]^v,M=e[11]^E,U=e[20]^v,O=e[21]^E,N=e[30]^v,j=e[31]^E,K=e[40]^v,G=e[41]^E;v=r^(u<<1|f>>>31),E=n^(f<<1|u>>>31);let J=e[2]^v,Y=e[3]^E,W=e[12]^v,ie=e[13]^E,re=e[22]^v,H=e[23]^E,A=e[32]^v,T=e[33]^E,P=e[42]^v,D=e[43]^E;v=o^(d<<1|m>>>31),E=s^(m<<1|d>>>31);let L=e[4]^v,V=e[5]^E,Z=e[14]^v,z=e[15]^E,I=e[24]^v,Q=e[25]^E,me=e[34]^v,ge=e[35]^E,Se=e[44]^v,Ce=e[45]^E;v=u^(h<<1|y>>>31),E=f^(y<<1|h>>>31);let $e=e[6]^v,je=e[7]^E,Ot=e[16]^v,Te=e[17]^E,It=e[26]^v,Gn=e[27]^E,tr=e[36]^v,yt=e[37]^E,rr=e[46]^v,rn=e[47]^E;v=d^(r<<1|n>>>31),E=m^(n<<1|r>>>31);let Je=e[8]^v,jc=e[9]^E,dt=e[18]^v,un=e[19]^E,ni=e[28]^v,Hr=e[29]^E,Lr=e[38]^v,pp=e[39]^E,jr=e[48]^v,qr=e[49]^E,Ii=C,nn=B,Ir=M<<4|R>>>28,ys=R<<4|M>>>28,Pr=U<<3|O>>>29,Rr=O<<3|U>>>29,qc=j<<9|N>>>23,Er=N<<9|j>>>23,q=K<<18|G>>>14,fe=G<<18|K>>>14,Ee=J<<1|Y>>>31,_e=Y<<1|J>>>31,We=ie<<12|W>>>20,Ge=W<<12|ie>>>20,Ve=re<<10|H>>>22,Ft=H<<10|re>>>22,Ne=T<<13|A>>>19,jt=A<<13|T>>>19,Uo=P<<2|D>>>30,Ar=D<<2|P>>>30,$r=V<<30|L>>>2,mp=L<<30|V>>>2,on=Z<<6|z>>>26,an=z<<6|Z>>>26,oi=Q<<11|I>>>21,cr=I<<11|Q>>>21,xn=me<<15|ge>>>17,bh=ge<<15|me>>>17,ln=Ce<<29|Se>>>3,vn=Se<<29|Ce>>>3,ol=$e<<28|je>>>4,ur=je<<28|$e>>>4,wn=Te<<23|Ot>>>9,sf=Ot<<23|Te>>>9,En=It<<25|Gn>>>7,fn=Gn<<25|It>>>7,cf=tr<<21|yt>>>11,uf=yt<<21|tr>>>11,bs=rn<<24|rr>>>8,lf=rr<<24|rn>>>8,ff=Je<<27|jc>>>5,df=jc<<27|Je>>>5,pf=dt<<20|un>>>12,mf=un<<20|dt>>>12,Ao=Hr<<7|ni>>>25,gs=ni<<7|Hr>>>25,Pi=Lr<<8|pp>>>24,hf=pp<<8|Lr>>>24,ac=jr<<14|qr>>>18,$c=qr<<14|jr>>>18;e[0]=Ii^~We&oi,e[1]=nn^~Ge&cr,e[10]=ol^~pf&Pr,e[11]=ur^~mf&Rr,e[20]=Ee^~on&En,e[21]=_e^~an&fn,e[30]=ff^~Ir&Ve,e[31]=df^~ys&Ft,e[40]=$r^~wn&Ao,e[41]=mp^~sf&gs,e[2]=We^~oi&cf,e[3]=Ge^~cr&uf,e[12]=pf^~Pr&Ne,e[13]=mf^~Rr&jt,e[22]=on^~En&Pi,e[23]=an^~fn&hf,e[32]=Ir^~Ve&xn,e[33]=ys^~Ft&bh,e[42]=wn^~Ao&qc,e[43]=sf^~gs&Er,e[4]=oi^~cf&ac,e[5]=cr^~uf&$c,e[14]=Pr^~Ne&ln,e[15]=Rr^~jt&vn,e[24]=En^~Pi&q,e[25]=fn^~hf&fe,e[34]=Ve^~xn&bs,e[35]=Ft^~bh&lf,e[44]=Ao^~qc&Uo,e[45]=gs^~Er&Ar,e[6]=cf^~ac&Ii,e[7]=uf^~$c&nn,e[16]=Ne^~ln&ol,e[17]=jt^~vn&ur,e[26]=Pi^~q&Ee,e[27]=hf^~fe&_e,e[36]=xn^~bs&ff,e[37]=bh^~lf&df,e[46]=qc^~Uo&$r,e[47]=Er^~Ar&mp,e[8]=ac^~Ii&We,e[9]=$c^~nn&Ge,e[18]=ln^~ol&pf,e[19]=vn^~ur&mf,e[28]=q^~Ee&on,e[29]=fe^~_e&an,e[38]=bs^~ff&Ir,e[39]=lf^~df&ys,e[48]=Uo^~$r&wn,e[49]=Ar^~mp&sf,e[0]^=Cet[t*2],e[1]^=Cet[t*2+1]}}});var Bet=X((HQn,ket)=>{c();var HL=_et();function H3(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}H3.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};H3.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(HL.p1600(this.state),this.count=0)};H3.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),(e&128)!==0&&this.count===this.blockSize-1&&HL.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),HL.p1600(this.state),this.count=0,this.squeezing=!0};H3.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);let t=globalThis.Buffer.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(HL.p1600(this.state),this.count=0);return t};H3.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};ket.exports=H3});var Pet=X((zQn,Iet)=>{c();Iet.exports=Aet()(Bet())});var qte=X((jQn,Uet)=>{c();var rTt=Pet(),nTt=$_();function Ret(e){return globalThis.Buffer.allocUnsafe(e).fill(0)}function Met(e,t,r){let n=Ret(t);return e=LL(e),r?e.length<t?(e.copy(n),n):e.slice(0,t):e.length<t?(e.copy(n,t-e.length),n):e.slice(-t)}function oTt(e,t){return Met(e,t,!0)}function LL(e){if(!globalThis.Buffer.isBuffer(e))if(Array.isArray(e))e=globalThis.Buffer.from(e);else if(typeof e==\"string\")Oet(e)?e=globalThis.Buffer.from(sTt(Net(e)),\"hex\"):e=globalThis.Buffer.from(e);else if(typeof e==\"number\")e=intToBuffer(e);else if(e==null)e=globalThis.Buffer.allocUnsafe(0);else if(nTt.isBN(e))e=e.toArrayLike(globalThis.Buffer);else if(e.toArray)e=globalThis.Buffer.from(e.toArray());else throw new Error(\"invalid type\");return e}function aTt(e){return e=LL(e),\"0x\"+e.toString(\"hex\")}function iTt(e,t){return e=LL(e),t||(t=256),rTt(\"keccak\"+t).update(e).digest()}function sTt(e){return e.length%2?\"0\"+e:e}function Oet(e){return typeof e==\"string\"&&e.match(/^0x[0-9A-Fa-f]*$/)}function Net(e){return typeof e==\"string\"&&e.startsWith(\"0x\")?e.slice(2):e}Uet.exports={zeros:Ret,setLength:Met,setLengthRight:oTt,isHexString:Oet,stripHexPrefix:Net,toBuffer:LL,bufferToHex:aTt,keccak:iTt}});var jet=X(($Qn,Fet)=>{c();var Xx=qte(),Yx=$_();function Het(e){return e.startsWith(\"int[\")?\"int256\"+e.slice(3):e===\"int\"?\"int256\":e.startsWith(\"uint[\")?\"uint256\"+e.slice(4):e===\"uint\"?\"uint256\":e.startsWith(\"fixed[\")?\"fixed128x128\"+e.slice(5):e===\"fixed\"?\"fixed128x128\":e.startsWith(\"ufixed[\")?\"ufixed128x128\"+e.slice(6):e===\"ufixed\"?\"ufixed128x128\":e}function L3(e){return parseInt(/^\\\\D+(\\\\d+)$/.exec(e)[1],10)}function Det(e){var t=/^\\\\D+(\\\\d+)x(\\\\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function Let(e){var t=e.match(/(.*)\\\\[(.*?)\\\\]$/);return t?t[2]===\"\"?\"dynamic\":parseInt(t[2],10):null}function Jx(e){var t=typeof e;if(t===\"string\")return Xx.isHexString(e)?new Yx(Xx.stripHexPrefix(e),16):new Yx(e,10);if(t===\"number\")return new Yx(e);if(e.toArray)return e;throw new Error(\"Argument is not a number\")}function ip(e,t){var r,n,o,s;if(e===\"address\")return ip(\"uint160\",Jx(t));if(e===\"bool\")return ip(\"uint8\",t?1:0);if(e===\"string\")return ip(\"bytes\",new globalThis.Buffer(t,\"utf8\"));if(uTt(e)){if(typeof t.length>\"u\")throw new Error(\"Not an array?\");if(r=Let(e),r!==\"dynamic\"&&r!==0&&t.length>r)throw new Error(\"Elements exceed array size: \"+r);o=[],e=e.slice(0,e.lastIndexOf(\"[\")),typeof t==\"string\"&&(t=JSON.parse(t));for(s in t)o.push(ip(e,t[s]));if(r===\"dynamic\"){var u=ip(\"uint256\",t.length);o.unshift(u)}return globalThis.Buffer.concat(o)}else{if(e===\"bytes\")return t=new globalThis.Buffer(t),o=globalThis.Buffer.concat([ip(\"uint256\",t.length),t]),t.length%32!==0&&(o=globalThis.Buffer.concat([o,Xx.zeros(32-t.length%32)])),o;if(e.startsWith(\"bytes\")){if(r=L3(e),r<1||r>32)throw new Error(\"Invalid bytes<N> width: \"+r);return Xx.setLengthRight(t,32)}else if(e.startsWith(\"uint\")){if(r=L3(e),r%8||r<8||r>256)throw new Error(\"Invalid uint<N> width: \"+r);if(n=Jx(t),n.bitLength()>r)throw new Error(\"Supplied uint exceeds width: \"+r+\" vs \"+n.bitLength());if(n<0)throw new Error(\"Supplied uint is negative\");return n.toArrayLike(globalThis.Buffer,\"be\",32)}else if(e.startsWith(\"int\")){if(r=L3(e),r%8||r<8||r>256)throw new Error(\"Invalid int<N> width: \"+r);if(n=Jx(t),n.bitLength()>r)throw new Error(\"Supplied int exceeds width: \"+r+\" vs \"+n.bitLength());return n.toTwos(256).toArrayLike(globalThis.Buffer,\"be\",32)}else if(e.startsWith(\"ufixed\")){if(r=Det(e),n=Jx(t),n<0)throw new Error(\"Supplied ufixed is negative\");return ip(\"uint256\",n.mul(new Yx(2).pow(new Yx(r[1]))))}else if(e.startsWith(\"fixed\"))return r=Det(e),ip(\"int256\",Jx(t).mul(new Yx(2).pow(new Yx(r[1]))))}throw new Error(\"Unsupported or invalid type: \"+e)}function cTt(e){return e===\"string\"||e===\"bytes\"||Let(e)===\"dynamic\"}function uTt(e){return e.lastIndexOf(\"]\")===e.length-1}function lTt(e,t){var r=[],n=[],o=32*e.length;for(var s in e){var u=Het(e[s]),f=t[s],d=ip(u,f);cTt(u)?(r.push(ip(\"uint256\",o)),n.push(d),o+=d.length):r.push(d)}return globalThis.Buffer.concat(r.concat(n))}function zet(e,t){if(e.length!==t.length)throw new Error(\"Number of types are not matching the values\");for(var r,n,o=[],s=0;s<e.length;s++){var u=Het(e[s]),f=t[s];if(u===\"bytes\")o.push(f);else if(u===\"string\")o.push(new globalThis.Buffer(f,\"utf8\"));else if(u===\"bool\")o.push(new globalThis.Buffer(f?\"01\":\"00\",\"hex\"));else if(u===\"address\")o.push(Xx.setLength(f,20));else if(u.startsWith(\"bytes\")){if(r=L3(u),r<1||r>32)throw new Error(\"Invalid bytes<N> width: \"+r);o.push(Xx.setLengthRight(f,r))}else if(u.startsWith(\"uint\")){if(r=L3(u),r%8||r<8||r>256)throw new Error(\"Invalid uint<N> width: \"+r);if(n=Jx(f),n.bitLength()>r)throw new Error(\"Supplied uint exceeds width: \"+r+\" vs \"+n.bitLength());o.push(n.toArrayLike(globalThis.Buffer,\"be\",r/8))}else if(u.startsWith(\"int\")){if(r=L3(u),r%8||r<8||r>256)throw new Error(\"Invalid int<N> width: \"+r);if(n=Jx(f),n.bitLength()>r)throw new Error(\"Supplied int exceeds width: \"+r+\" vs \"+n.bitLength());o.push(n.toTwos(r).toArrayLike(globalThis.Buffer,\"be\",r/8))}else throw new Error(\"Unsupported or invalid type: \"+u)}return globalThis.Buffer.concat(o)}function fTt(e,t){return Xx.keccak(zet(e,t))}Fet.exports={rawEncode:lTt,solidityPack:zet,soliditySHA3:fTt}});var Get=X((VQn,$et)=>{c();var nf=qte(),A4=jet(),qet={type:\"object\",properties:{types:{type:\"object\",additionalProperties:{type:\"array\",items:{type:\"object\",properties:{name:{type:\"string\"},type:{type:\"string\"}},required:[\"name\",\"type\"]}}},primaryType:{type:\"string\"},domain:{type:\"object\"},message:{type:\"object\"}},required:[\"types\",\"primaryType\",\"domain\",\"message\"]},$te={encodeData(e,t,r,n=!0){let o=[\"bytes32\"],s=[this.hashType(e,r)];if(n){let u=(f,d,m)=>{if(r[d]!==void 0)return[\"bytes32\",m==null?\"0x0000000000000000000000000000000000000000000000000000000000000000\":nf.keccak(this.encodeData(d,m,r,n))];if(m===void 0)throw new Error(`missing value for field ${f} of type ${d}`);if(d===\"bytes\")return[\"bytes32\",nf.keccak(m)];if(d===\"string\")return typeof m==\"string\"&&(m=globalThis.Buffer.from(m,\"utf8\")),[\"bytes32\",nf.keccak(m)];if(d.lastIndexOf(\"]\")===d.length-1){let h=d.slice(0,d.lastIndexOf(\"[\")),y=m.map(v=>u(f,h,v));return[\"bytes32\",nf.keccak(A4.rawEncode(y.map(([v])=>v),y.map(([,v])=>v)))]}return[d,m]};for(let f of r[e]){let[d,m]=u(f.name,f.type,t[f.name]);o.push(d),s.push(m)}}else for(let u of r[e]){let f=t[u.name];if(f!==void 0)if(u.type===\"bytes\")o.push(\"bytes32\"),f=nf.keccak(f),s.push(f);else if(u.type===\"string\")o.push(\"bytes32\"),typeof f==\"string\"&&(f=globalThis.Buffer.from(f,\"utf8\")),f=nf.keccak(f),s.push(f);else if(r[u.type]!==void 0)o.push(\"bytes32\"),f=nf.keccak(this.encodeData(u.type,f,r,n)),s.push(f);else{if(u.type.lastIndexOf(\"]\")===u.type.length-1)throw new Error(\"Arrays currently unimplemented in encodeData\");o.push(u.type),s.push(f)}}return A4.rawEncode(o,s)},encodeType(e,t){let r=\"\",n=this.findTypeDependencies(e,t).filter(o=>o!==e);n=[e].concat(n.sort());for(let o of n){if(!t[o])throw new Error(\"No type definition specified: \"+o);r+=o+\"(\"+t[o].map(({name:u,type:f})=>f+\" \"+u).join(\",\")+\")\"}return r},findTypeDependencies(e,t,r=[]){if(e=e.match(/^\\\\w*/)[0],r.includes(e)||t[e]===void 0)return r;r.push(e);for(let n of t[e])for(let o of this.findTypeDependencies(n.type,t,r))!r.includes(o)&&r.push(o);return r},hashStruct(e,t,r,n=!0){return nf.keccak(this.encodeData(e,t,r,n))},hashType(e,t){return nf.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let r in qet.properties)e[r]&&(t[r]=e[r]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let r=this.sanitizeData(e),n=[globalThis.Buffer.from(\"1901\",\"hex\")];return n.push(this.hashStruct(\"EIP712Domain\",r.domain,r.types,t)),r.primaryType!==\"EIP712Domain\"&&n.push(this.hashStruct(r.primaryType,r.message,r.types,t)),nf.keccak(globalThis.Buffer.concat(n))}};$et.exports={TYPED_MESSAGE_SCHEMA:qet,TypedDataUtils:$te,hashForSignTypedDataLegacy:function(e){return dTt(e.data)},hashForSignTypedData_v3:function(e){return $te.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return $te.hash(e.data)}};function dTt(e){let t=new Error(\"Expect argument to be non-empty array\");if(typeof e!=\"object\"||!e.length)throw t;let r=e.map(function(s){return s.type===\"bytes\"?nf.toBuffer(s.value):s.value}),n=e.map(function(s){return s.type}),o=e.map(function(s){if(!s.name)throw t;return s.type+\" \"+s.name});return A4.soliditySHA3([\"bytes32\",\"bytes32\"],[A4.soliditySHA3(new Array(e.length).fill(\"string\"),o),A4.soliditySHA3(n,r)])}});var Zet=X(F3=>{\"use strict\";c();Object.defineProperty(F3,\"__esModule\",{value:!0});F3.filterFromParam=F3.FilterPolyfill=void 0;var z3=W_(),ds=Zd(),pTt=300*1e3,e2={jsonrpc:\"2.0\",id:0},Gte=class{constructor(t){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,z3.IntNumber)(1),this.REQUEST_THROTTLE_INTERVAL=1e3,this.lastFetchTimestamp=new Date(0),this.resolvers=[],this.provider=t}async newFilter(t){let r=Qet(t),n=this.makeFilterId(),o=await this.setInitialCursorPosition(n,r.fromBlock);return console.info(`Installing new log filter(${n}):`,r,\"initial cursor position:\",o),this.logFilters.set(n,r),this.setFilterTimeout(n),(0,ds.hexStringFromIntNumber)(n)}async newBlockFilter(){let t=this.makeFilterId(),r=await this.setInitialCursorPosition(t,\"latest\");return console.info(`Installing new block filter (${t}) with initial cursor position:`,r),this.blockFilters.add(t),this.setFilterTimeout(t),(0,ds.hexStringFromIntNumber)(t)}async newPendingTransactionFilter(){let t=this.makeFilterId(),r=await this.setInitialCursorPosition(t,\"latest\");return console.info(`Installing new block filter (${t}) with initial cursor position:`,r),this.pendingTransactionFilters.add(t),this.setFilterTimeout(t),(0,ds.hexStringFromIntNumber)(t)}uninstallFilter(t){let r=(0,ds.intNumberFromHexString)(t);return console.info(`Uninstalling filter (${r})`),this.deleteFilter(r),!0}getFilterChanges(t){let r=(0,ds.intNumberFromHexString)(t);return this.timeouts.has(r)&&this.setFilterTimeout(r),this.logFilters.has(r)?this.getLogFilterChanges(r):this.blockFilters.has(r)?this.getBlockFilterChanges(r):this.pendingTransactionFilters.has(r)?this.getPendingTransactionFilterChanges(r):Promise.resolve(zL())}async getFilterLogs(t){let r=(0,ds.intNumberFromHexString)(t),n=this.logFilters.get(r);return n?this.sendAsyncPromise(Object.assign(Object.assign({},e2),{method:\"eth_getLogs\",params:[Vet(n)]})):zL()}makeFilterId(){return(0,z3.IntNumber)(++this.nextFilterId)}sendAsyncPromise(t){return new Promise((r,n)=>{this.provider.sendAsync(t,(o,s)=>{if(o)return n(o);if(Array.isArray(s)||s==null)return n(new Error(`unexpected response received: ${JSON.stringify(s)}`));r(s)})})}deleteFilter(t){console.info(`Deleting filter (${t})`),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}async getLogFilterChanges(t){let r=this.logFilters.get(t),n=this.cursors.get(t);if(!n||!r)return zL();let o=await this.getCurrentBlockHeight(),s=r.toBlock===\"latest\"?o:r.toBlock;if(n>o||n>Number(r.toBlock))return FL();console.info(`Fetching logs from ${n} to ${s} for filter ${t}`);let u=await this.sendAsyncPromise(Object.assign(Object.assign({},e2),{method:\"eth_getLogs\",params:[Vet(Object.assign(Object.assign({},r),{fromBlock:n,toBlock:s}))]}));if(Array.isArray(u.result)){let f=u.result.map(m=>(0,ds.intNumberFromHexString)(m.blockNumber||\"0x0\")),d=Math.max(...f);if(d&&d>n){let m=(0,z3.IntNumber)(d+1);console.info(`Moving cursor position for filter (${t}) from ${n} to ${m}`),this.cursors.set(t,m)}}return u}async getBlockFilterChanges(t){let r=this.cursors.get(t);if(!r)return zL();let n=await this.getCurrentBlockHeight();if(r>n)return FL();console.info(`Fetching blocks from ${r} to ${n} for filter (${t})`);let o=(await Promise.all((0,ds.range)(r,n+1).map(u=>this.getBlockHashByNumber((0,z3.IntNumber)(u))))).filter(u=>!!u),s=(0,z3.IntNumber)(r+o.length);return console.info(`Moving cursor position for filter (${t}) from ${r} to ${s}`),this.cursors.set(t,s),Object.assign(Object.assign({},e2),{result:o})}async getPendingTransactionFilterChanges(t){return Promise.resolve(FL())}async setInitialCursorPosition(t,r){let n=await this.getCurrentBlockHeight(),o=typeof r==\"number\"&&r>n?r:n;return this.cursors.set(t,o),o}setFilterTimeout(t){let r=this.timeouts.get(t);r&&window.clearTimeout(r);let n=window.setTimeout(()=>{console.info(`Filter (${t}) timed out`),this.deleteFilter(t)},pTt);this.timeouts.set(t,n)}async getCurrentBlockHeight(){let t=new Date;if(t.getTime()-this.lastFetchTimestamp.getTime()>this.REQUEST_THROTTLE_INTERVAL){this.lastFetchTimestamp=t;let r=await this._getCurrentBlockHeight();this.currentBlockHeight=r,this.resolvers.forEach(n=>n(r)),this.resolvers=[]}return this.currentBlockHeight?this.currentBlockHeight:new Promise(r=>this.resolvers.push(r))}async _getCurrentBlockHeight(){let{result:t}=await this.sendAsyncPromise(Object.assign(Object.assign({},e2),{method:\"eth_blockNumber\",params:[]}));return(0,ds.intNumberFromHexString)((0,ds.ensureHexString)(t))}async getBlockHashByNumber(t){let r=await this.sendAsyncPromise(Object.assign(Object.assign({},e2),{method:\"eth_getBlockByNumber\",params:[(0,ds.hexStringFromIntNumber)(t),!1]}));return r.result&&typeof r.result.hash==\"string\"?(0,ds.ensureHexString)(r.result.hash):null}};F3.FilterPolyfill=Gte;function Qet(e){return{fromBlock:Ket(e.fromBlock),toBlock:Ket(e.toBlock),addresses:e.address===void 0?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}F3.filterFromParam=Qet;function Vet(e){let t={fromBlock:Wet(e.fromBlock),toBlock:Wet(e.toBlock),topics:e.topics};return e.addresses!==null&&(t.address=e.addresses),t}function Ket(e){if(e===void 0||e===\"latest\"||e===\"pending\")return\"latest\";if(e===\"earliest\")return(0,z3.IntNumber)(0);if((0,ds.isHexString)(e))return(0,ds.intNumberFromHexString)(e);throw new Error(`Invalid block option: ${String(e)}`)}function Wet(e){return e===\"latest\"?e:(0,ds.hexStringFromIntNumber)(e)}function zL(){return Object.assign(Object.assign({},e2),{error:{code:-32e3,message:\"filter not found\"}})}function FL(){return Object.assign(Object.assign({},e2),{result:[]})}});var jL=X((ZQn,Jet)=>{c();Jet.exports=mTt;function mTt(e){e=e||{};var t=e.max||Number.MAX_SAFE_INTEGER,r=typeof e.start<\"u\"?e.start:Math.floor(Math.random()*t);return function(){return r=r%t,r++}}});var ett=X((YQn,Xet)=>{\"use strict\";c();var Yet=(e,t)=>function(){let r=t.promiseModule,n=new Array(arguments.length);for(let o=0;o<arguments.length;o++)n[o]=arguments[o];return new r((o,s)=>{t.errorFirst?n.push(function(u,f){if(t.multiArgs){let d=new Array(arguments.length-1);for(let m=1;m<arguments.length;m++)d[m-1]=arguments[m];u?(d.unshift(u),s(d)):o(d)}else u?s(u):o(f)}):n.push(function(u){if(t.multiArgs){let f=new Array(arguments.length-1);for(let d=0;d<arguments.length;d++)f[d]=arguments[d];o(f)}else o(u)}),e.apply(this,n)})};Xet.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let r=o=>{let s=u=>typeof u==\"string\"?o===u:u.test(o);return t.include?t.include.some(s):!t.exclude.some(s)},n;typeof e==\"function\"?n=function(){return t.excludeMain?e.apply(this,arguments):Yet(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(let o in e){let s=e[o];n[o]=typeof s==\"function\"&&r(o)?Yet(s,t):s}return n}});var qL=X(Kte=>{\"use strict\";c();Object.defineProperty(Kte,\"__esModule\",{value:!0});var hTt=h4();function ttt(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(()=>{throw n})}}function yTt(e){let t=e.length,r=new Array(t);for(let n=0;n<t;n+=1)r[n]=e[n];return r}var Vte=class extends hTt.EventEmitter{emit(t,...r){let n=t===\"error\",o=this._events;if(o!==void 0)n=n&&o.error===void 0;else if(!n)return!1;if(n){let u;if(r.length>0&&([u]=r),u instanceof Error)throw u;let f=new Error(`Unhandled error.${u?` (${u.message})`:\"\"}`);throw f.context=u,f}let s=o[t];if(s===void 0)return!1;if(typeof s==\"function\")ttt(s,this,r);else{let u=s.length,f=yTt(s);for(let d=0;d<u;d+=1)ttt(f[d],this,r)}return!0}};Kte.default=Vte});var Qte=X(j3=>{\"use strict\";c();var bTt=j3&&j3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(j3,\"__esModule\",{value:!0});j3.BaseBlockTracker=void 0;var gTt=bTt(qL()),xTt=1e3,vTt=(e,t)=>e+t,rtt=[\"sync\",\"latest\"],Wte=class extends gTt.default{constructor(t){super(),this._blockResetDuration=t.blockResetDuration||20*xTt,this._usePastBlocks=t.usePastBlocks||!1,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(r=>this.once(\"latest\",r))}removeAllListeners(t){return t?super.removeAllListeners(t):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener(\"newListener\",this._onNewListener),this.removeListener(\"removeListener\",this._onRemoveListener),this.on(\"newListener\",this._onNewListener),this.on(\"removeListener\",this._onRemoveListener)}_onNewListener(t){rtt.includes(t)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit(\"_started\"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit(\"_ended\"))}_getBlockTrackerEventCount(){return rtt.map(t=>this.listenerCount(t)).reduce(vTt)}_shouldUseNewBlock(t){let r=this._currentBlock;if(!r)return!0;let n=ntt(t),o=ntt(r);return this._usePastBlocks&&n<o||n>o}_newPotentialLatest(t){this._shouldUseNewBlock(t)&&this._setCurrentBlock(t)}_setCurrentBlock(t){let r=this._currentBlock;this._currentBlock=t,this.emit(\"latest\",t),this.emit(\"sync\",{oldBlock:r,newBlock:t})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};j3.BaseBlockTracker=Wte;function ntt(e){return Number.parseInt(e,16)}});var bb={};Wn(bb,{Struct:()=>lo,StructError:()=>$L,any:()=>RTt,array:()=>MTt,assert:()=>att,assign:()=>STt,bigint:()=>OTt,boolean:()=>NTt,coerce:()=>ere,create:()=>itt,date:()=>UTt,defaulted:()=>JTt,define:()=>rc,deprecated:()=>CTt,dynamic:()=>TTt,empty:()=>XTt,enums:()=>DTt,func:()=>HTt,instance:()=>LTt,integer:()=>zTt,intersection:()=>FTt,is:()=>Yte,lazy:()=>_Tt,literal:()=>jTt,map:()=>qTt,mask:()=>stt,max:()=>e_t,min:()=>t_t,never:()=>Xte,nonempty:()=>r_t,nullable:()=>$Tt,number:()=>GTt,object:()=>S4,omit:()=>kTt,optional:()=>ctt,partial:()=>BTt,pattern:()=>n_t,pick:()=>ITt,record:()=>VTt,refine:()=>t2,regexp:()=>KTt,set:()=>WTt,size:()=>o_t,string:()=>utt,struct:()=>PTt,trimmed:()=>YTt,tuple:()=>QTt,type:()=>C4,union:()=>ZTt,unknown:()=>ltt,validate:()=>q3});function wTt(e){return Yu(e)&&typeof e[Symbol.iterator]==\"function\"}function Yu(e){return typeof e==\"object\"&&e!=null}function ott(e){if(Object.prototype.toString.call(e)!==\"[object Object]\")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function da(e){return typeof e==\"symbol\"?e.toString():typeof e==\"string\"?JSON.stringify(e):`${e}`}function ETt(e){let{done:t,value:r}=e.next();return t?void 0:r}function ATt(e,t,r,n){if(e===!0)return;e===!1?e={}:typeof e==\"string\"&&(e={message:e});let{path:o,branch:s}=t,{type:u}=r,{refinement:f,message:d=`Expected a value of type \\\\`${u}\\\\`${f?` with refinement \\\\`${f}\\\\``:\"\"}, but received: \\\\`${da(n)}\\\\``}=e;return{value:n,type:u,refinement:f,key:o[o.length-1],path:o,branch:s,...e,message:d}}function*Zte(e,t,r,n){wTt(e)||(e=[e]);for(let o of e){let s=ATt(o,t,r,n);s&&(yield s)}}function*Jte(e,t,r={}){let{path:n=[],branch:o=[e],coerce:s=!1,mask:u=!1}=r,f={path:n,branch:o};if(s&&(e=t.coercer(e,f),u&&t.type!==\"type\"&&Yu(t.schema)&&Yu(e)&&!Array.isArray(e)))for(let m in e)t.schema[m]===void 0&&delete e[m];let d=\"valid\";for(let m of t.validator(e,f))m.explanation=r.message,d=\"not_valid\",yield[m,void 0];for(let[m,h,y]of t.entries(e,f)){let v=Jte(h,y,{path:m===void 0?n:[...n,m],branch:m===void 0?o:[...o,h],coerce:s,mask:u,message:r.message});for(let E of v)E[0]?(d=E[0].refinement!=null?\"not_refined\":\"not_valid\",yield[E[0],void 0]):s&&(h=E[1],m===void 0?e=h:e instanceof Map?e.set(m,h):e instanceof Set?e.add(h):Yu(e)&&(h!==void 0||m in e)&&(e[m]=h))}if(d!==\"not_valid\")for(let m of t.refiner(e,f))m.explanation=r.message,d=\"not_refined\",yield[m,void 0];d===\"valid\"&&(yield[void 0,e])}function att(e,t,r){let n=q3(e,t,{message:r});if(n[0])throw n[0]}function itt(e,t,r){let n=q3(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function stt(e,t,r){let n=q3(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function Yte(e,t){return!q3(e,t)[0]}function q3(e,t,r={}){let n=Jte(e,t,r),o=ETt(n);return o[0]?[new $L(o[0],function*(){for(let u of n)u[0]&&(yield u[0])}),void 0]:[void 0,o[1]]}function STt(...e){let t=e[0].type===\"type\",r=e.map(o=>o.schema),n=Object.assign({},...r);return t?C4(n):S4(n)}function rc(e,t){return new lo({type:e,schema:null,validator:t})}function CTt(e,t){return new lo({...e,refiner:(r,n)=>r===void 0||e.refiner(r,n),validator(r,n){return r===void 0?!0:(t(r,n),e.validator(r,n))}})}function TTt(e){return new lo({type:\"dynamic\",schema:null,*entries(t,r){yield*e(t,r).entries(t,r)},validator(t,r){return e(t,r).validator(t,r)},coercer(t,r){return e(t,r).coercer(t,r)},refiner(t,r){return e(t,r).refiner(t,r)}})}function _Tt(e){let t;return new lo({type:\"lazy\",schema:null,*entries(r,n){t??(t=e()),yield*t.entries(r,n)},validator(r,n){return t??(t=e()),t.validator(r,n)},coercer(r,n){return t??(t=e()),t.coercer(r,n)},refiner(r,n){return t??(t=e()),t.refiner(r,n)}})}function kTt(e,t){let{schema:r}=e,n={...r};for(let o of t)delete n[o];return e.type===\"type\"?C4(n):S4(n)}function BTt(e){let t=e instanceof lo,r=t?{...e.schema}:{...e};for(let n in r)r[n]=ctt(r[n]);return t&&e.type===\"type\"?C4(r):S4(r)}function ITt(e,t){let{schema:r}=e,n={};for(let o of t)n[o]=r[o];return e.type===\"type\"?C4(n):S4(n)}function PTt(e,t){return console.warn(\"superstruct@0.11 - The `struct` helper has been renamed to `define`.\"),rc(e,t)}function RTt(){return rc(\"any\",()=>!0)}function MTt(e){return new lo({type:\"array\",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[r,n]of t.entries())yield[r,n,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${da(t)}`}})}function OTt(){return rc(\"bigint\",e=>typeof e==\"bigint\")}function NTt(){return rc(\"boolean\",e=>typeof e==\"boolean\")}function UTt(){return rc(\"date\",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \\\\`Date\\\\` object, but received: ${da(e)}`)}function DTt(e){let t={},r=e.map(n=>da(n)).join();for(let n of e)t[n]=n;return new lo({type:\"enums\",schema:t,validator(n){return e.includes(n)||`Expected one of \\\\`${r}\\\\`, but received: ${da(n)}`}})}function HTt(){return rc(\"func\",e=>typeof e==\"function\"||`Expected a function, but received: ${da(e)}`)}function LTt(e){return rc(\"instance\",t=>t instanceof e||`Expected a \\\\`${e.name}\\\\` instance, but received: ${da(t)}`)}function zTt(){return rc(\"integer\",e=>typeof e==\"number\"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${da(e)}`)}function FTt(e){return new lo({type:\"intersection\",schema:null,*entries(t,r){for(let n of e)yield*n.entries(t,r)},*validator(t,r){for(let n of e)yield*n.validator(t,r)},*refiner(t,r){for(let n of e)yield*n.refiner(t,r)}})}function jTt(e){let t=da(e),r=typeof e;return new lo({type:\"literal\",schema:r===\"string\"||r===\"number\"||r===\"boolean\"?e:null,validator(n){return n===e||`Expected the literal \\\\`${t}\\\\`, but received: ${da(n)}`}})}function qTt(e,t){return new lo({type:\"map\",schema:null,*entries(r){if(e&&t&&r instanceof Map)for(let[n,o]of r.entries())yield[n,n,e],yield[n,o,t]},coercer(r){return r instanceof Map?new Map(r):r},validator(r){return r instanceof Map||`Expected a \\\\`Map\\\\` object, but received: ${da(r)}`}})}function Xte(){return rc(\"never\",()=>!1)}function $Tt(e){return new lo({...e,validator:(t,r)=>t===null||e.validator(t,r),refiner:(t,r)=>t===null||e.refiner(t,r)})}function GTt(){return rc(\"number\",e=>typeof e==\"number\"&&!isNaN(e)||`Expected a number, but received: ${da(e)}`)}function S4(e){let t=e?Object.keys(e):[],r=Xte();return new lo({type:\"object\",schema:e||null,*entries(n){if(e&&Yu(n)){let o=new Set(Object.keys(n));for(let s of t)o.delete(s),yield[s,n[s],e[s]];for(let s of o)yield[s,n[s],r]}},validator(n){return Yu(n)||`Expected an object, but received: ${da(n)}`},coercer(n){return Yu(n)?{...n}:n}})}function ctt(e){return new lo({...e,validator:(t,r)=>t===void 0||e.validator(t,r),refiner:(t,r)=>t===void 0||e.refiner(t,r)})}function VTt(e,t){return new lo({type:\"record\",schema:null,*entries(r){if(Yu(r))for(let n in r){let o=r[n];yield[n,n,e],yield[n,o,t]}},validator(r){return Yu(r)||`Expected an object, but received: ${da(r)}`}})}function KTt(){return rc(\"regexp\",e=>e instanceof RegExp)}function WTt(e){return new lo({type:\"set\",schema:null,*entries(t){if(e&&t instanceof Set)for(let r of t)yield[r,r,e]},coercer(t){return t instanceof Set?new Set(t):t},validator(t){return t instanceof Set||`Expected a \\\\`Set\\\\` object, but received: ${da(t)}`}})}function utt(){return rc(\"string\",e=>typeof e==\"string\"||`Expected a string, but received: ${da(e)}`)}function QTt(e){let t=Xte();return new lo({type:\"tuple\",schema:null,*entries(r){if(Array.isArray(r)){let n=Math.max(e.length,r.length);for(let o=0;o<n;o++)yield[o,r[o],e[o]||t]}},validator(r){return Array.isArray(r)||`Expected an array, but received: ${da(r)}`}})}function C4(e){let t=Object.keys(e);return new lo({type:\"type\",schema:e,*entries(r){if(Yu(r))for(let n of t)yield[n,r[n],e[n]]},validator(r){return Yu(r)||`Expected an object, but received: ${da(r)}`},coercer(r){return Yu(r)?{...r}:r}})}function ZTt(e){let t=e.map(r=>r.type).join(\" | \");return new lo({type:\"union\",schema:null,coercer(r){for(let n of e){let[o,s]=n.validate(r,{coerce:!0});if(!o)return s}return r},validator(r,n){let o=[];for(let s of e){let[...u]=Jte(r,s,n),[f]=u;if(f[0])for(let[d]of u)d&&o.push(d);else return[]}return[`Expected the value to satisfy a union of \\\\`${t}\\\\`, but received: ${da(r)}`,...o]}})}function ltt(){return rc(\"unknown\",()=>!0)}function ere(e,t,r){return new lo({...e,coercer:(n,o)=>Yte(n,t)?e.coercer(r(n,o),o):e.coercer(n,o)})}function JTt(e,t,r={}){return ere(e,ltt(),n=>{let o=typeof t==\"function\"?t():t;if(n===void 0)return o;if(!r.strict&&ott(n)&&ott(o)){let s={...n},u=!1;for(let f in o)s[f]===void 0&&(s[f]=o[f],u=!0);if(u)return s}return n})}function YTt(e){return ere(e,utt(),t=>t.trim())}function XTt(e){return t2(e,\"empty\",t=>{let r=ftt(t);return r===0||`Expected an empty ${e.type} but received one with a size of \\\\`${r}\\\\``})}function ftt(e){return e instanceof Map||e instanceof Set?e.size:e.length}function e_t(e,t,r={}){let{exclusive:n}=r;return t2(e,\"max\",o=>n?o<t:o<=t||`Expected a ${e.type} less than ${n?\"\":\"or equal to \"}${t} but received \\\\`${o}\\\\``)}function t_t(e,t,r={}){let{exclusive:n}=r;return t2(e,\"min\",o=>n?o>t:o>=t||`Expected a ${e.type} greater than ${n?\"\":\"or equal to \"}${t} but received \\\\`${o}\\\\``)}function r_t(e){return t2(e,\"nonempty\",t=>ftt(t)>0||`Expected a nonempty ${e.type} but received an empty one`)}function n_t(e,t){return t2(e,\"pattern\",r=>t.test(r)||`Expected a ${e.type} matching \\\\`/${t.source}/\\\\` but received \"${r}\"`)}function o_t(e,t,r=t){let n=`Expected a ${e.type}`,o=t===r?`of \\\\`${t}\\\\``:`between \\\\`${t}\\\\` and \\\\`${r}\\\\``;return t2(e,\"size\",s=>{if(typeof s==\"number\"||s instanceof Date)return t<=s&&s<=r||`${n} ${o} but received \\\\`${s}\\\\``;if(s instanceof Map||s instanceof Set){let{size:u}=s;return t<=u&&u<=r||`${n} with a size ${o} but received one with a size of \\\\`${u}\\\\``}else{let{length:u}=s;return t<=u&&u<=r||`${n} with a length ${o} but received one with a length of \\\\`${u}\\\\``}})}function t2(e,t,r){return new lo({...e,*refiner(n,o){yield*e.refiner(n,o);let s=r(n,o),u=Zte(s,o,e,n);for(let f of u)yield{...f,refinement:t}}})}var $L,lo,gb=x(()=>{c();$L=class extends TypeError{constructor(t,r){let n,{message:o,explanation:s,...u}=t,{path:f}=t,d=f.length===0?o:`At path: ${f.join(\".\")} -- ${o}`;super(s??d),s!=null&&(this.cause=d),Object.assign(this,u),this.name=this.constructor.name,this.failures=()=>n??(n=[t,...r()])}};lo=class{constructor(t){let{type:r,schema:n,validator:o,refiner:s,coercer:u=d=>d,entries:f=function*(){}}=t;this.type=r,this.schema=n,this.entries=f,this.coercer=u,o?this.validator=(d,m)=>{let h=o(d,m);return Zte(h,m,this,d)}:this.validator=()=>[],s?this.refiner=(d,m)=>{let h=s(d,m);return Zte(h,m,this,d)}:this.refiner=()=>[]}assert(t,r){return att(t,this,r)}create(t,r){return itt(t,this,r)}is(t){return Yte(t,this)}mask(t,r){return stt(t,this,r)}validate(t,r={}){return q3(t,this,r)}}});var hh=X(sp=>{\"use strict\";c();Object.defineProperty(sp,\"__esModule\",{value:!0});sp.assertExhaustive=sp.assertStruct=sp.assert=sp.AssertionError=void 0;var a_t=(gb(),Kr(bb));function i_t(e){return typeof e==\"object\"&&e!==null&&\"message\"in e}function s_t(e){var t,r;return typeof((r=(t=e?.prototype)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.name)==\"string\"}function c_t(e){let t=i_t(e)?e.message:String(e);return t.endsWith(\".\")?t.slice(0,-1):t}function dtt(e,t){return s_t(e)?new e({message:t}):e({message:t})}var T4=class extends Error{constructor(t){super(t.message),this.code=\"ERR_ASSERTION\"}};sp.AssertionError=T4;function u_t(e,t=\"Assertion failed.\",r=T4){if(!e)throw t instanceof Error?t:dtt(r,t)}sp.assert=u_t;function l_t(e,t,r=\"Assertion failed\",n=T4){try{(0,a_t.assert)(e,t)}catch(o){throw dtt(n,`${r}: ${c_t(o)}.`)}}sp.assertStruct=l_t;function f_t(e){throw new Error(\"Invalid branch reached. Should be detected during compilation.\")}sp.assertExhaustive=f_t});var tre=X(GL=>{\"use strict\";c();Object.defineProperty(GL,\"__esModule\",{value:!0});GL.base64=void 0;var d_t=(gb(),Kr(bb)),p_t=hh(),m_t=(e,t={})=>{var r,n;let o=(r=t.paddingRequired)!==null&&r!==void 0?r:!1,s=(n=t.characterSet)!==null&&n!==void 0?n:\"base64\",u;s===\"base64\"?u=String.raw`[A-Za-z0-9+\\\\/]`:((0,p_t.assert)(s===\"base64url\"),u=String.raw`[-_A-Za-z0-9]`);let f;return o?f=new RegExp(`^(?:${u}{4})*(?:${u}{3}=|${u}{2}==)?$`,\"u\"):f=new RegExp(`^(?:${u}{4})*(?:${u}{2,3}|${u}{3}=|${u}{2}==)?$`,\"u\"),(0,d_t.pattern)(e,f)};GL.base64=m_t});var _4=X(na=>{\"use strict\";c();Object.defineProperty(na,\"__esModule\",{value:!0});na.remove0x=na.add0x=na.assertIsStrictHexString=na.assertIsHexString=na.isStrictHexString=na.isHexString=na.StrictHexStruct=na.HexStruct=void 0;var $3=(gb(),Kr(bb)),ptt=hh();na.HexStruct=(0,$3.pattern)((0,$3.string)(),/^(?:0x)?[0-9a-f]+$/iu);na.StrictHexStruct=(0,$3.pattern)((0,$3.string)(),/^0x[0-9a-f]+$/iu);function mtt(e){return(0,$3.is)(e,na.HexStruct)}na.isHexString=mtt;function htt(e){return(0,$3.is)(e,na.StrictHexStruct)}na.isStrictHexString=htt;function h_t(e){(0,ptt.assert)(mtt(e),\"Value must be a hexadecimal string.\")}na.assertIsHexString=h_t;function y_t(e){(0,ptt.assert)(htt(e),\\'Value must be a hexadecimal string, starting with \"0x\".\\')}na.assertIsStrictHexString=y_t;function b_t(e){return e.startsWith(\"0x\")?e:e.startsWith(\"0X\")?`0x${e.substring(2)}`:`0x${e}`}na.add0x=b_t;function g_t(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")?e.substring(2):e}na.remove0x=g_t});var ore=X(Dr=>{\"use strict\";c();Object.defineProperty(Dr,\"__esModule\",{value:!0});Dr.createDataView=Dr.concatBytes=Dr.valueToBytes=Dr.stringToBytes=Dr.numberToBytes=Dr.signedBigIntToBytes=Dr.bigIntToBytes=Dr.hexToBytes=Dr.bytesToString=Dr.bytesToNumber=Dr.bytesToSignedBigInt=Dr.bytesToBigInt=Dr.bytesToHex=Dr.assertIsBytes=Dr.isBytes=void 0;var zc=hh(),rre=_4(),ytt=48,btt=58,gtt=87;function x_t(){let e=[];return()=>{if(e.length===0)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,\"0\"));return e}}var v_t=x_t();function nre(e){return e instanceof Uint8Array}Dr.isBytes=nre;function G3(e){(0,zc.assert)(nre(e),\"Value must be a Uint8Array.\")}Dr.assertIsBytes=G3;function xtt(e){if(G3(e),e.length===0)return\"0x\";let t=v_t(),r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=t[e[n]];return(0,rre.add0x)(r.join(\"\"))}Dr.bytesToHex=xtt;function vtt(e){G3(e);let t=xtt(e);return BigInt(t)}Dr.bytesToBigInt=vtt;function w_t(e){G3(e);let t=BigInt(0);for(let r of e)t=(t<<BigInt(8))+BigInt(r);return BigInt.asIntN(e.length*8,t)}Dr.bytesToSignedBigInt=w_t;function E_t(e){G3(e);let t=vtt(e);return(0,zc.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),\"Number is not a safe integer. Use `bytesToBigInt` instead.\"),Number(t)}Dr.bytesToNumber=E_t;function A_t(e){return G3(e),new TextDecoder().decode(e)}Dr.bytesToString=A_t;function VL(e){var t;if(((t=e?.toLowerCase)===null||t===void 0?void 0:t.call(e))===\"0x\")return new Uint8Array;(0,rre.assertIsHexString)(e);let r=(0,rre.remove0x)(e).toLowerCase(),n=r.length%2===0?r:`0${r}`,o=new Uint8Array(n.length/2);for(let s=0;s<o.length;s++){let u=n.charCodeAt(s*2),f=n.charCodeAt(s*2+1),d=u-(u<btt?ytt:gtt),m=f-(f<btt?ytt:gtt);o[s]=d*16+m}return o}Dr.hexToBytes=VL;function wtt(e){(0,zc.assert)(typeof e==\"bigint\",\"Value must be a bigint.\"),(0,zc.assert)(e>=BigInt(0),\"Value must be a non-negative bigint.\");let t=e.toString(16);return VL(t)}Dr.bigIntToBytes=wtt;function S_t(e,t){(0,zc.assert)(t>0);let r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(t*8+-1))}function C_t(e,t){(0,zc.assert)(typeof e==\"bigint\",\"Value must be a bigint.\"),(0,zc.assert)(typeof t==\"number\",\"Byte length must be a number.\"),(0,zc.assert)(t>0,\"Byte length must be greater than 0.\"),(0,zc.assert)(S_t(e,t),\"Byte length is too small to represent the given value.\");let r=e,n=new Uint8Array(t);for(let o=0;o<n.length;o++)n[o]=Number(BigInt.asUintN(8,r)),r>>=BigInt(8);return n.reverse()}Dr.signedBigIntToBytes=C_t;function Ett(e){(0,zc.assert)(typeof e==\"number\",\"Value must be a number.\"),(0,zc.assert)(e>=0,\"Value must be a non-negative number.\"),(0,zc.assert)(Number.isSafeInteger(e),\"Value is not a safe integer. Use `bigIntToBytes` instead.\");let t=e.toString(16);return VL(t)}Dr.numberToBytes=Ett;function Att(e){return(0,zc.assert)(typeof e==\"string\",\"Value must be a string.\"),new TextEncoder().encode(e)}Dr.stringToBytes=Att;function Stt(e){if(typeof e==\"bigint\")return wtt(e);if(typeof e==\"number\")return Ett(e);if(typeof e==\"string\")return e.startsWith(\"0x\")?VL(e):Att(e);if(nre(e))return e;throw new TypeError(`Unsupported value type: \"${typeof e}\".`)}Dr.valueToBytes=Stt;function T_t(e){let t=new Array(e.length),r=0;for(let o=0;o<e.length;o++){let s=Stt(e[o]);t[o]=s,r+=s.length}let n=new Uint8Array(r);for(let o=0,s=0;o<t.length;o++)n.set(t[o],s),s+=t[o].length;return n}Dr.concatBytes=T_t;function __t(e){if(typeof globalThis.Buffer<\"u\"&&e instanceof globalThis.Buffer){let t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)}Dr.createDataView=__t});var Ttt=X(KL=>{\"use strict\";c();Object.defineProperty(KL,\"__esModule\",{value:!0});KL.ChecksumStruct=void 0;var Ctt=(gb(),Kr(bb)),k_t=tre();KL.ChecksumStruct=(0,Ctt.size)((0,k_t.base64)((0,Ctt.string)(),{paddingRequired:!0}),44,44)});var Btt=X(cp=>{\"use strict\";c();Object.defineProperty(cp,\"__esModule\",{value:!0});cp.createHex=cp.createBytes=cp.createBigInt=cp.createNumber=void 0;var fo=(gb(),Kr(bb)),B_t=hh(),_tt=ore(),WL=_4(),ktt=(0,fo.union)([(0,fo.number)(),(0,fo.bigint)(),(0,fo.string)(),WL.StrictHexStruct]),I_t=(0,fo.coerce)((0,fo.number)(),ktt,Number),P_t=(0,fo.coerce)((0,fo.bigint)(),ktt,BigInt),hZn=(0,fo.union)([WL.StrictHexStruct,(0,fo.instance)(Uint8Array)]),R_t=(0,fo.coerce)((0,fo.instance)(Uint8Array),(0,fo.union)([WL.StrictHexStruct]),_tt.hexToBytes),M_t=(0,fo.coerce)(WL.StrictHexStruct,(0,fo.instance)(Uint8Array),_tt.bytesToHex);function O_t(e){try{let t=(0,fo.create)(e,I_t);return(0,B_t.assert)(Number.isFinite(t),`Expected a number-like value, got \"${e}\".`),t}catch(t){throw t instanceof fo.StructError?new Error(`Expected a number-like value, got \"${e}\".`):t}}cp.createNumber=O_t;function N_t(e){try{return(0,fo.create)(e,P_t)}catch(t){throw t instanceof fo.StructError?new Error(`Expected a number-like value, got \"${String(t.value)}\".`):t}}cp.createBigInt=N_t;function U_t(e){if(typeof e==\"string\"&&e.toLowerCase()===\"0x\")return new Uint8Array;try{return(0,fo.create)(e,R_t)}catch(t){throw t instanceof fo.StructError?new Error(`Expected a bytes-like value, got \"${String(t.value)}\".`):t}}cp.createBytes=U_t;function D_t(e){if(e instanceof Uint8Array&&e.length===0||typeof e==\"string\"&&e.toLowerCase()===\"0x\")return\"0x\";try{return(0,fo.create)(e,M_t)}catch(t){throw t instanceof fo.StructError?new Error(`Expected a bytes-like value, got \"${String(t.value)}\".`):t}}cp.createHex=D_t});var Ptt=X(lp=>{\"use strict\";c();var Itt=lp&&lp.__classPrivateFieldSet||function(e,t,r,n,o){if(n===\"m\")throw new TypeError(\"Private method is not writable\");if(n===\"a\"&&!o)throw new TypeError(\"Private accessor was defined without a setter\");if(typeof t==\"function\"?e!==t||!o:!t.has(e))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return n===\"a\"?o.call(e,r):o?o.value=r:t.set(e,r),r},ps=lp&&lp.__classPrivateFieldGet||function(e,t,r,n){if(r===\"a\"&&!n)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof t==\"function\"?e!==t||!n:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return r===\"m\"?n:r===\"a\"?n.call(e):n?n.value:t.get(e)},of,up;Object.defineProperty(lp,\"__esModule\",{value:!0});lp.FrozenSet=lp.FrozenMap=void 0;var k4=class{constructor(t){of.set(this,void 0),Itt(this,of,new Map(t),\"f\"),Object.freeze(this)}get size(){return ps(this,of,\"f\").size}[(of=new WeakMap,Symbol.iterator)](){return ps(this,of,\"f\")[Symbol.iterator]()}entries(){return ps(this,of,\"f\").entries()}forEach(t,r){return ps(this,of,\"f\").forEach((n,o,s)=>t.call(r,n,o,this))}get(t){return ps(this,of,\"f\").get(t)}has(t){return ps(this,of,\"f\").has(t)}keys(){return ps(this,of,\"f\").keys()}values(){return ps(this,of,\"f\").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([t,r])=>`${String(t)} => ${String(r)}`).join(\", \")} `:\"\"}}`}};lp.FrozenMap=k4;var B4=class{constructor(t){up.set(this,void 0),Itt(this,up,new Set(t),\"f\"),Object.freeze(this)}get size(){return ps(this,up,\"f\").size}[(up=new WeakMap,Symbol.iterator)](){return ps(this,up,\"f\")[Symbol.iterator]()}entries(){return ps(this,up,\"f\").entries()}forEach(t,r){return ps(this,up,\"f\").forEach((n,o,s)=>t.call(r,n,o,this))}has(t){return ps(this,up,\"f\").has(t)}keys(){return ps(this,up,\"f\").keys()}values(){return ps(this,up,\"f\").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(t=>String(t)).join(\", \")} `:\"\"}}`}};lp.FrozenSet=B4;Object.freeze(k4);Object.freeze(k4.prototype);Object.freeze(B4);Object.freeze(B4.prototype)});var Mtt=X(Rtt=>{\"use strict\";c();Object.defineProperty(Rtt,\"__esModule\",{value:!0})});var Ott=X(Be=>{\"use strict\";c();Object.defineProperty(Be,\"__esModule\",{value:!0});Be.getJsonRpcIdValidator=Be.assertIsJsonRpcError=Be.isJsonRpcError=Be.assertIsJsonRpcFailure=Be.isJsonRpcFailure=Be.assertIsJsonRpcSuccess=Be.isJsonRpcSuccess=Be.assertIsJsonRpcResponse=Be.isJsonRpcResponse=Be.assertIsPendingJsonRpcResponse=Be.isPendingJsonRpcResponse=Be.JsonRpcResponseStruct=Be.JsonRpcFailureStruct=Be.JsonRpcSuccessStruct=Be.PendingJsonRpcResponseStruct=Be.assertIsJsonRpcRequest=Be.isJsonRpcRequest=Be.assertIsJsonRpcNotification=Be.isJsonRpcNotification=Be.JsonRpcNotificationStruct=Be.JsonRpcRequestStruct=Be.JsonRpcParamsStruct=Be.JsonRpcErrorStruct=Be.JsonRpcIdStruct=Be.JsonRpcVersionStruct=Be.jsonrpc2=Be.getJsonSize=Be.isValidJson=Be.JsonStruct=Be.UnsafeJsonStruct=void 0;var At=(gb(),Kr(bb)),xb=hh(),H_t=()=>(0,At.define)(\"finite number\",e=>(0,At.is)(e,(0,At.number)())&&Number.isFinite(e));Be.UnsafeJsonStruct=(0,At.union)([(0,At.literal)(null),(0,At.boolean)(),H_t(),(0,At.string)(),(0,At.array)((0,At.lazy)(()=>Be.UnsafeJsonStruct)),(0,At.record)((0,At.string)(),(0,At.lazy)(()=>Be.UnsafeJsonStruct))]);Be.JsonStruct=(0,At.define)(\"Json\",(e,t)=>{function r(n,o){let u=[...o.validator(n,t)];return u.length>0?u:!0}try{let n=r(e,Be.UnsafeJsonStruct);return n!==!0?n:r(JSON.parse(JSON.stringify(e)),Be.UnsafeJsonStruct)}catch(n){return n instanceof RangeError?\"Circular reference detected\":!1}});function L_t(e){return(0,At.is)(e,Be.JsonStruct)}Be.isValidJson=L_t;function z_t(e){(0,xb.assertStruct)(e,Be.JsonStruct,\"Invalid JSON value\");let t=JSON.stringify(e);return new TextEncoder().encode(t).byteLength}Be.getJsonSize=z_t;Be.jsonrpc2=\"2.0\";Be.JsonRpcVersionStruct=(0,At.literal)(Be.jsonrpc2);Be.JsonRpcIdStruct=(0,At.nullable)((0,At.union)([(0,At.number)(),(0,At.string)()]));Be.JsonRpcErrorStruct=(0,At.object)({code:(0,At.integer)(),message:(0,At.string)(),data:(0,At.optional)(Be.JsonStruct),stack:(0,At.optional)((0,At.string)())});Be.JsonRpcParamsStruct=(0,At.optional)((0,At.union)([(0,At.record)((0,At.string)(),Be.JsonStruct),(0,At.array)(Be.JsonStruct)]));Be.JsonRpcRequestStruct=(0,At.object)({id:Be.JsonRpcIdStruct,jsonrpc:Be.JsonRpcVersionStruct,method:(0,At.string)(),params:Be.JsonRpcParamsStruct});Be.JsonRpcNotificationStruct=(0,At.omit)(Be.JsonRpcRequestStruct,[\"id\"]);function F_t(e){return(0,At.is)(e,Be.JsonRpcNotificationStruct)}Be.isJsonRpcNotification=F_t;function j_t(e,t){(0,xb.assertStruct)(e,Be.JsonRpcNotificationStruct,\"Invalid JSON-RPC notification\",t)}Be.assertIsJsonRpcNotification=j_t;function q_t(e){return(0,At.is)(e,Be.JsonRpcRequestStruct)}Be.isJsonRpcRequest=q_t;function $_t(e,t){(0,xb.assertStruct)(e,Be.JsonRpcRequestStruct,\"Invalid JSON-RPC request\",t)}Be.assertIsJsonRpcRequest=$_t;Be.PendingJsonRpcResponseStruct=(0,At.object)({id:Be.JsonRpcIdStruct,jsonrpc:Be.JsonRpcVersionStruct,result:(0,At.optional)((0,At.unknown)()),error:(0,At.optional)(Be.JsonRpcErrorStruct)});Be.JsonRpcSuccessStruct=(0,At.object)({id:Be.JsonRpcIdStruct,jsonrpc:Be.JsonRpcVersionStruct,result:Be.JsonStruct});Be.JsonRpcFailureStruct=(0,At.object)({id:Be.JsonRpcIdStruct,jsonrpc:Be.JsonRpcVersionStruct,error:Be.JsonRpcErrorStruct});Be.JsonRpcResponseStruct=(0,At.union)([Be.JsonRpcSuccessStruct,Be.JsonRpcFailureStruct]);function G_t(e){return(0,At.is)(e,Be.PendingJsonRpcResponseStruct)}Be.isPendingJsonRpcResponse=G_t;function V_t(e,t){(0,xb.assertStruct)(e,Be.PendingJsonRpcResponseStruct,\"Invalid pending JSON-RPC response\",t)}Be.assertIsPendingJsonRpcResponse=V_t;function K_t(e){return(0,At.is)(e,Be.JsonRpcResponseStruct)}Be.isJsonRpcResponse=K_t;function W_t(e,t){(0,xb.assertStruct)(e,Be.JsonRpcResponseStruct,\"Invalid JSON-RPC response\",t)}Be.assertIsJsonRpcResponse=W_t;function Q_t(e){return(0,At.is)(e,Be.JsonRpcSuccessStruct)}Be.isJsonRpcSuccess=Q_t;function Z_t(e,t){(0,xb.assertStruct)(e,Be.JsonRpcSuccessStruct,\"Invalid JSON-RPC success response\",t)}Be.assertIsJsonRpcSuccess=Z_t;function J_t(e){return(0,At.is)(e,Be.JsonRpcFailureStruct)}Be.isJsonRpcFailure=J_t;function Y_t(e,t){(0,xb.assertStruct)(e,Be.JsonRpcFailureStruct,\"Invalid JSON-RPC failure response\",t)}Be.assertIsJsonRpcFailure=Y_t;function X_t(e){return(0,At.is)(e,Be.JsonRpcErrorStruct)}Be.isJsonRpcError=X_t;function e4t(e,t){(0,xb.assertStruct)(e,Be.JsonRpcErrorStruct,\"Invalid JSON-RPC error\",t)}Be.assertIsJsonRpcError=e4t;function t4t(e){let{permitEmptyString:t,permitFractions:r,permitNull:n}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},e);return s=>!!(typeof s==\"number\"&&(r||Number.isInteger(s))||typeof s==\"string\"&&(t||s.length>0)||n&&s===null)}Be.getJsonRpcIdValidator=t4t});var Utt=X(Ntt=>{\"use strict\";c();Object.defineProperty(Ntt,\"__esModule\",{value:!0})});var Htt=X((TZn,Dtt)=>{c();var V3=1e3,K3=V3*60,W3=K3*60,r2=W3*24,r4t=r2*7,n4t=r2*365.25;Dtt.exports=function(e,t){t=t||{};var r=typeof e;if(r===\"string\"&&e.length>0)return o4t(e);if(r===\"number\"&&isFinite(e))return t.long?i4t(e):a4t(e);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(e))};function o4t(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\\\d+)?\\\\.?\\\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||\"ms\").toLowerCase();switch(n){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return r*n4t;case\"weeks\":case\"week\":case\"w\":return r*r4t;case\"days\":case\"day\":case\"d\":return r*r2;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*W3;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*K3;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*V3;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function a4t(e){var t=Math.abs(e);return t>=r2?Math.round(e/r2)+\"d\":t>=W3?Math.round(e/W3)+\"h\":t>=K3?Math.round(e/K3)+\"m\":t>=V3?Math.round(e/V3)+\"s\":e+\"ms\"}function i4t(e){var t=Math.abs(e);return t>=r2?QL(e,t,r2,\"day\"):t>=W3?QL(e,t,W3,\"hour\"):t>=K3?QL(e,t,K3,\"minute\"):t>=V3?QL(e,t,V3,\"second\"):e+\" ms\"}function QL(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+\" \"+n+(o?\"s\":\"\")}});var ztt=X((kZn,Ltt)=>{c();function s4t(e){r.debug=r,r.default=r,r.coerce=d,r.disable=u,r.enable=o,r.enabled=f,r.humanize=Htt(),r.destroy=m,Object.keys(e).forEach(h=>{r[h]=e[h]}),r.names=[],r.skips=[],r.formatters={};function t(h){let y=0;for(let v=0;v<h.length;v++)y=(y<<5)-y+h.charCodeAt(v),y|=0;return r.colors[Math.abs(y)%r.colors.length]}r.selectColor=t;function r(h){let y,v=null,E,C;function B(...R){if(!B.enabled)return;let M=B,U=Number(new Date),O=U-(y||U);M.diff=O,M.prev=y,M.curr=U,y=U,R[0]=r.coerce(R[0]),typeof R[0]!=\"string\"&&R.unshift(\"%O\");let N=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(K,G)=>{if(K===\"%%\")return\"%\";N++;let J=r.formatters[G];if(typeof J==\"function\"){let Y=R[N];K=J.call(M,Y),R.splice(N,1),N--}return K}),r.formatArgs.call(M,R),(M.log||r.log).apply(M,R)}return B.namespace=h,B.useColors=r.useColors(),B.color=r.selectColor(h),B.extend=n,B.destroy=r.destroy,Object.defineProperty(B,\"enabled\",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(E!==r.namespaces&&(E=r.namespaces,C=r.enabled(h)),C),set:R=>{v=R}}),typeof r.init==\"function\"&&r.init(B),B}function n(h,y){let v=r(this.namespace+(typeof y>\"u\"?\":\":y)+h);return v.log=this.log,v}function o(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];let y=(typeof h==\"string\"?h:\"\").trim().replace(/\\\\s+/g,\",\").split(\",\").filter(Boolean);for(let v of y)v[0]===\"-\"?r.skips.push(v.slice(1)):r.names.push(v)}function s(h,y){let v=0,E=0,C=-1,B=0;for(;v<h.length;)if(E<y.length&&(y[E]===h[v]||y[E]===\"*\"))y[E]===\"*\"?(C=E,B=v,E++):(v++,E++);else if(C!==-1)E=C+1,B++,v=B;else return!1;for(;E<y.length&&y[E]===\"*\";)E++;return E===y.length}function u(){let h=[...r.names,...r.skips.map(y=>\"-\"+y)].join(\",\");return r.enable(\"\"),h}function f(h){for(let y of r.skips)if(s(h,y))return!1;for(let y of r.names)if(s(h,y))return!0;return!1}function d(h){return h instanceof Error?h.stack||h.message:h}function m(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")}return r.enable(r.load()),r}Ltt.exports=s4t});var Ftt=X((nc,ZL)=>{c();nc.formatArgs=u4t;nc.save=l4t;nc.load=f4t;nc.useColors=c4t;nc.storage=d4t();nc.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\"))}})();nc.colors=[\"#0000CC\",\"#0000FF\",\"#0033CC\",\"#0033FF\",\"#0066CC\",\"#0066FF\",\"#0099CC\",\"#0099FF\",\"#00CC00\",\"#00CC33\",\"#00CC66\",\"#00CC99\",\"#00CCCC\",\"#00CCFF\",\"#3300CC\",\"#3300FF\",\"#3333CC\",\"#3333FF\",\"#3366CC\",\"#3366FF\",\"#3399CC\",\"#3399FF\",\"#33CC00\",\"#33CC33\",\"#33CC66\",\"#33CC99\",\"#33CCCC\",\"#33CCFF\",\"#6600CC\",\"#6600FF\",\"#6633CC\",\"#6633FF\",\"#66CC00\",\"#66CC33\",\"#9900CC\",\"#9900FF\",\"#9933CC\",\"#9933FF\",\"#99CC00\",\"#99CC33\",\"#CC0000\",\"#CC0033\",\"#CC0066\",\"#CC0099\",\"#CC00CC\",\"#CC00FF\",\"#CC3300\",\"#CC3333\",\"#CC3366\",\"#CC3399\",\"#CC33CC\",\"#CC33FF\",\"#CC6600\",\"#CC6633\",\"#CC9900\",\"#CC9933\",\"#CCCC00\",\"#CCCC33\",\"#FF0000\",\"#FF0033\",\"#FF0066\",\"#FF0099\",\"#FF00CC\",\"#FF00FF\",\"#FF3300\",\"#FF3333\",\"#FF3366\",\"#FF3399\",\"#FF33CC\",\"#FF33FF\",\"#FF6600\",\"#FF6633\",\"#FF9900\",\"#FF9933\",\"#FFCC00\",\"#FFCC33\"];function c4t(){if(typeof window<\"u\"&&window.process&&(window.process.type===\"renderer\"||window.process.__nwjs))return!0;if(typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\\\\/(\\\\d+)/))return!1;let e;return typeof document<\"u\"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<\"u\"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<\"u\"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\\\\/(\\\\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\\\/(\\\\d+)/)}function u4t(e){if(e[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+e[0]+(this.useColors?\"%c \":\" \")+\"+\"+ZL.exports.humanize(this.diff),!this.useColors)return;let t=\"color: \"+this.color;e.splice(1,0,t,\"color: inherit\");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!==\"%%\"&&(r++,o===\"%c\"&&(n=r))}),e.splice(n,0,t)}nc.log=console.debug||console.log||(()=>{});function l4t(e){try{e?nc.storage.setItem(\"debug\",e):nc.storage.removeItem(\"debug\")}catch{}}function f4t(){let e;try{e=nc.storage.getItem(\"debug\")||nc.storage.getItem(\"DEBUG\")}catch{}return!e&&typeof process<\"u\"&&\"env\"in process&&(e=process.env.DEBUG),e}function d4t(){try{return localStorage}catch{}}ZL.exports=ztt()(nc);var{formatters:p4t}=ZL.exports;p4t.j=function(e){try{return JSON.stringify(e)}catch(t){return\"[UnexpectedJSONParseError]: \"+t.message}}});var jtt=X(vb=>{\"use strict\";c();var m4t=vb&&vb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vb,\"__esModule\",{value:!0});vb.createModuleLogger=vb.createProjectLogger=void 0;var h4t=m4t(Ftt()),y4t=(0,h4t.default)(\"metamask\");function b4t(e){return y4t.extend(e)}vb.createProjectLogger=b4t;function g4t(e,t){return e.extend(t)}vb.createModuleLogger=g4t});var $tt=X(eo=>{\"use strict\";c();Object.defineProperty(eo,\"__esModule\",{value:!0});eo.calculateNumberSize=eo.calculateStringSize=eo.isASCII=eo.isPlainObject=eo.ESCAPE_CHARACTERS_REGEXP=eo.JsonSize=eo.hasProperty=eo.isObject=eo.isNullOrUndefined=eo.isNonEmptyArray=void 0;function x4t(e){return Array.isArray(e)&&e.length>0}eo.isNonEmptyArray=x4t;function v4t(e){return e==null}eo.isNullOrUndefined=v4t;function w4t(e){return!!e&&typeof e==\"object\"&&!Array.isArray(e)}eo.isObject=w4t;var E4t=(e,t)=>Object.hasOwnProperty.call(e,t);eo.hasProperty=E4t;var A4t;(function(e){e[e.Null=4]=\"Null\",e[e.Comma=1]=\"Comma\",e[e.Wrapper=1]=\"Wrapper\",e[e.True=4]=\"True\",e[e.False=5]=\"False\",e[e.Quote=1]=\"Quote\",e[e.Colon=1]=\"Colon\",e[e.Date=24]=\"Date\"})(A4t=eo.JsonSize||(eo.JsonSize={}));eo.ESCAPE_CHARACTERS_REGEXP=/\"|\\\\\\\\|\\\\n|\\\\r|\\\\t/gu;function S4t(e){if(typeof e!=\"object\"||e===null)return!1;try{let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch{return!1}}eo.isPlainObject=S4t;function qtt(e){return e.charCodeAt(0)<=127}eo.isASCII=qtt;function C4t(e){var t;return e.split(\"\").reduce((n,o)=>qtt(o)?n+1:n+2,0)+((t=e.match(eo.ESCAPE_CHARACTERS_REGEXP))!==null&&t!==void 0?t:[]).length}eo.calculateStringSize=C4t;function T4t(e){return e.toString().length}eo.calculateNumberSize=T4t});var Gtt=X(fp=>{\"use strict\";c();Object.defineProperty(fp,\"__esModule\",{value:!0});fp.hexToBigInt=fp.hexToNumber=fp.bigIntToHex=fp.numberToHex=void 0;var Q3=hh(),I4=_4(),_4t=e=>((0,Q3.assert)(typeof e==\"number\",\"Value must be a number.\"),(0,Q3.assert)(e>=0,\"Value must be a non-negative number.\"),(0,Q3.assert)(Number.isSafeInteger(e),\"Value is not a safe integer. Use `bigIntToHex` instead.\"),(0,I4.add0x)(e.toString(16)));fp.numberToHex=_4t;var k4t=e=>((0,Q3.assert)(typeof e==\"bigint\",\"Value must be a bigint.\"),(0,Q3.assert)(e>=0,\"Value must be a non-negative bigint.\"),(0,I4.add0x)(e.toString(16)));fp.bigIntToHex=k4t;var B4t=e=>{(0,I4.assertIsHexString)(e);let t=parseInt(e,16);return(0,Q3.assert)(Number.isSafeInteger(t),\"Value is not a safe integer. Use `hexToBigInt` instead.\"),t};fp.hexToNumber=B4t;var I4t=e=>((0,I4.assertIsHexString)(e),BigInt((0,I4.add0x)(e)));fp.hexToBigInt=I4t});var Ktt=X(Vtt=>{\"use strict\";c();Object.defineProperty(Vtt,\"__esModule\",{value:!0})});var Qtt=X(yh=>{\"use strict\";c();Object.defineProperty(yh,\"__esModule\",{value:!0});yh.timeSince=yh.inMilliseconds=yh.Duration=void 0;var P4t;(function(e){e[e.Millisecond=1]=\"Millisecond\",e[e.Second=1e3]=\"Second\",e[e.Minute=6e4]=\"Minute\",e[e.Hour=36e5]=\"Hour\",e[e.Day=864e5]=\"Day\",e[e.Week=6048e5]=\"Week\",e[e.Year=31536e6]=\"Year\"})(P4t=yh.Duration||(yh.Duration={}));var R4t=e=>Number.isInteger(e)&&e>=0,Wtt=(e,t)=>{if(!R4t(e))throw new Error(`\"${t}\" must be a non-negative integer. Received: \"${e}\".`)};function M4t(e,t){return Wtt(e,\"count\"),e*t}yh.inMilliseconds=M4t;function O4t(e){return Wtt(e,\"timestamp\"),Date.now()-e}yh.timeSince=O4t});var Jtt=X(Ztt=>{\"use strict\";c();Object.defineProperty(Ztt,\"__esModule\",{value:!0})});var P4=X((qZn,Ytt)=>{\"use strict\";c();var N4t=\"2.0.0\",U4t=Number.MAX_SAFE_INTEGER||9007199254740991,D4t=16,H4t=250,L4t=[\"major\",\"premajor\",\"minor\",\"preminor\",\"patch\",\"prepatch\",\"prerelease\"];Ytt.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:D4t,MAX_SAFE_BUILD_LENGTH:H4t,MAX_SAFE_INTEGER:U4t,RELEASE_TYPES:L4t,SEMVER_SPEC_VERSION:N4t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var R4=X((GZn,Xtt)=>{\"use strict\";c();var z4t=typeof process==\"object\"&&process.env&&process.env.NODE_DEBUG&&/\\\\bsemver\\\\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(\"SEMVER\",...e):()=>{};Xtt.exports=z4t});var Z3=X((dp,ert)=>{\"use strict\";c();var{MAX_SAFE_COMPONENT_LENGTH:are,MAX_SAFE_BUILD_LENGTH:F4t,MAX_LENGTH:j4t}=P4(),q4t=R4();dp=ert.exports={};var $4t=dp.re=[],G4t=dp.safeRe=[],Qe=dp.src=[],V4t=dp.safeSrc=[],Ze=dp.t={},K4t=0,ire=\"[a-zA-Z0-9-]\",W4t=[[\"\\\\\\\\s\",1],[\"\\\\\\\\d\",j4t],[ire,F4t]],Q4t=e=>{for(let[t,r]of W4t)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Mt=(e,t,r)=>{let n=Q4t(t),o=K4t++;q4t(e,o,t),Ze[e]=o,Qe[o]=t,V4t[o]=n,$4t[o]=new RegExp(t,r?\"g\":void 0),G4t[o]=new RegExp(n,r?\"g\":void 0)};Mt(\"NUMERICIDENTIFIER\",\"0|[1-9]\\\\\\\\d*\");Mt(\"NUMERICIDENTIFIERLOOSE\",\"\\\\\\\\d+\");Mt(\"NONNUMERICIDENTIFIER\",`\\\\\\\\d*[a-zA-Z-]${ire}*`);Mt(\"MAINVERSION\",`(${Qe[Ze.NUMERICIDENTIFIER]})\\\\\\\\.(${Qe[Ze.NUMERICIDENTIFIER]})\\\\\\\\.(${Qe[Ze.NUMERICIDENTIFIER]})`);Mt(\"MAINVERSIONLOOSE\",`(${Qe[Ze.NUMERICIDENTIFIERLOOSE]})\\\\\\\\.(${Qe[Ze.NUMERICIDENTIFIERLOOSE]})\\\\\\\\.(${Qe[Ze.NUMERICIDENTIFIERLOOSE]})`);Mt(\"PRERELEASEIDENTIFIER\",`(?:${Qe[Ze.NONNUMERICIDENTIFIER]}|${Qe[Ze.NUMERICIDENTIFIER]})`);Mt(\"PRERELEASEIDENTIFIERLOOSE\",`(?:${Qe[Ze.NONNUMERICIDENTIFIER]}|${Qe[Ze.NUMERICIDENTIFIERLOOSE]})`);Mt(\"PRERELEASE\",`(?:-(${Qe[Ze.PRERELEASEIDENTIFIER]}(?:\\\\\\\\.${Qe[Ze.PRERELEASEIDENTIFIER]})*))`);Mt(\"PRERELEASELOOSE\",`(?:-?(${Qe[Ze.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\\\\\.${Qe[Ze.PRERELEASEIDENTIFIERLOOSE]})*))`);Mt(\"BUILDIDENTIFIER\",`${ire}+`);Mt(\"BUILD\",`(?:\\\\\\\\+(${Qe[Ze.BUILDIDENTIFIER]}(?:\\\\\\\\.${Qe[Ze.BUILDIDENTIFIER]})*))`);Mt(\"FULLPLAIN\",`v?${Qe[Ze.MAINVERSION]}${Qe[Ze.PRERELEASE]}?${Qe[Ze.BUILD]}?`);Mt(\"FULL\",`^${Qe[Ze.FULLPLAIN]}$`);Mt(\"LOOSEPLAIN\",`[v=\\\\\\\\s]*${Qe[Ze.MAINVERSIONLOOSE]}${Qe[Ze.PRERELEASELOOSE]}?${Qe[Ze.BUILD]}?`);Mt(\"LOOSE\",`^${Qe[Ze.LOOSEPLAIN]}$`);Mt(\"GTLT\",\"((?:<|>)?=?)\");Mt(\"XRANGEIDENTIFIERLOOSE\",`${Qe[Ze.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\\\\\*`);Mt(\"XRANGEIDENTIFIER\",`${Qe[Ze.NUMERICIDENTIFIER]}|x|X|\\\\\\\\*`);Mt(\"XRANGEPLAIN\",`[v=\\\\\\\\s]*(${Qe[Ze.XRANGEIDENTIFIER]})(?:\\\\\\\\.(${Qe[Ze.XRANGEIDENTIFIER]})(?:\\\\\\\\.(${Qe[Ze.XRANGEIDENTIFIER]})(?:${Qe[Ze.PRERELEASE]})?${Qe[Ze.BUILD]}?)?)?`);Mt(\"XRANGEPLAINLOOSE\",`[v=\\\\\\\\s]*(${Qe[Ze.XRANGEIDENTIFIERLOOSE]})(?:\\\\\\\\.(${Qe[Ze.XRANGEIDENTIFIERLOOSE]})(?:\\\\\\\\.(${Qe[Ze.XRANGEIDENTIFIERLOOSE]})(?:${Qe[Ze.PRERELEASELOOSE]})?${Qe[Ze.BUILD]}?)?)?`);Mt(\"XRANGE\",`^${Qe[Ze.GTLT]}\\\\\\\\s*${Qe[Ze.XRANGEPLAIN]}$`);Mt(\"XRANGELOOSE\",`^${Qe[Ze.GTLT]}\\\\\\\\s*${Qe[Ze.XRANGEPLAINLOOSE]}$`);Mt(\"COERCEPLAIN\",`(^|[^\\\\\\\\d])(\\\\\\\\d{1,${are}})(?:\\\\\\\\.(\\\\\\\\d{1,${are}}))?(?:\\\\\\\\.(\\\\\\\\d{1,${are}}))?`);Mt(\"COERCE\",`${Qe[Ze.COERCEPLAIN]}(?:$|[^\\\\\\\\d])`);Mt(\"COERCEFULL\",Qe[Ze.COERCEPLAIN]+`(?:${Qe[Ze.PRERELEASE]})?(?:${Qe[Ze.BUILD]})?(?:$|[^\\\\\\\\d])`);Mt(\"COERCERTL\",Qe[Ze.COERCE],!0);Mt(\"COERCERTLFULL\",Qe[Ze.COERCEFULL],!0);Mt(\"LONETILDE\",\"(?:~>?)\");Mt(\"TILDETRIM\",`(\\\\\\\\s*)${Qe[Ze.LONETILDE]}\\\\\\\\s+`,!0);dp.tildeTrimReplace=\"$1~\";Mt(\"TILDE\",`^${Qe[Ze.LONETILDE]}${Qe[Ze.XRANGEPLAIN]}$`);Mt(\"TILDELOOSE\",`^${Qe[Ze.LONETILDE]}${Qe[Ze.XRANGEPLAINLOOSE]}$`);Mt(\"LONECARET\",\"(?:\\\\\\\\^)\");Mt(\"CARETTRIM\",`(\\\\\\\\s*)${Qe[Ze.LONECARET]}\\\\\\\\s+`,!0);dp.caretTrimReplace=\"$1^\";Mt(\"CARET\",`^${Qe[Ze.LONECARET]}${Qe[Ze.XRANGEPLAIN]}$`);Mt(\"CARETLOOSE\",`^${Qe[Ze.LONECARET]}${Qe[Ze.XRANGEPLAINLOOSE]}$`);Mt(\"COMPARATORLOOSE\",`^${Qe[Ze.GTLT]}\\\\\\\\s*(${Qe[Ze.LOOSEPLAIN]})$|^$`);Mt(\"COMPARATOR\",`^${Qe[Ze.GTLT]}\\\\\\\\s*(${Qe[Ze.FULLPLAIN]})$|^$`);Mt(\"COMPARATORTRIM\",`(\\\\\\\\s*)${Qe[Ze.GTLT]}\\\\\\\\s*(${Qe[Ze.LOOSEPLAIN]}|${Qe[Ze.XRANGEPLAIN]})`,!0);dp.comparatorTrimReplace=\"$1$2$3\";Mt(\"HYPHENRANGE\",`^\\\\\\\\s*(${Qe[Ze.XRANGEPLAIN]})\\\\\\\\s+-\\\\\\\\s+(${Qe[Ze.XRANGEPLAIN]})\\\\\\\\s*$`);Mt(\"HYPHENRANGELOOSE\",`^\\\\\\\\s*(${Qe[Ze.XRANGEPLAINLOOSE]})\\\\\\\\s+-\\\\\\\\s+(${Qe[Ze.XRANGEPLAINLOOSE]})\\\\\\\\s*$`);Mt(\"STAR\",\"(<|>)?=?\\\\\\\\s*\\\\\\\\*\");Mt(\"GTE0\",\"^\\\\\\\\s*>=\\\\\\\\s*0\\\\\\\\.0\\\\\\\\.0\\\\\\\\s*$\");Mt(\"GTE0PRE\",\"^\\\\\\\\s*>=\\\\\\\\s*0\\\\\\\\.0\\\\\\\\.0-0\\\\\\\\s*$\")});var JL=X((WZn,trt)=>{\"use strict\";c();var Z4t=Object.freeze({loose:!0}),J4t=Object.freeze({}),Y4t=e=>e?typeof e!=\"object\"?Z4t:e:J4t;trt.exports=Y4t});var sre=X((ZZn,ort)=>{\"use strict\";c();var rrt=/^[0-9]+$/,nrt=(e,t)=>{if(typeof e==\"number\"&&typeof t==\"number\")return e===t?0:e<t?-1:1;let r=rrt.test(e),n=rrt.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},X4t=(e,t)=>nrt(t,e);ort.exports={compareIdentifiers:nrt,rcompareIdentifiers:X4t}});var _i=X((YZn,irt)=>{\"use strict\";c();var YL=R4(),{MAX_LENGTH:art,MAX_SAFE_INTEGER:XL}=P4(),{safeRe:ez,t:tz}=Z3(),ekt=JL(),{compareIdentifiers:cre}=sre(),ure=class e{constructor(t,r){if(r=ekt(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!=\"string\")throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof t}\".`);if(t.length>art)throw new TypeError(`version is longer than ${art} characters`);YL(\"SemVer\",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?ez[tz.LOOSE]:ez[tz.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>XL||this.major<0)throw new TypeError(\"Invalid major version\");if(this.minor>XL||this.minor<0)throw new TypeError(\"Invalid minor version\");if(this.patch>XL||this.patch<0)throw new TypeError(\"Invalid patch version\");n[4]?this.prerelease=n[4].split(\".\").map(o=>{if(/^[0-9]+$/.test(o)){let s=+o;if(s>=0&&s<XL)return s}return o}):this.prerelease=[],this.build=n[5]?n[5].split(\".\"):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(\".\")}`),this.version}toString(){return this.version}compare(t){if(YL(\"SemVer.compare\",this.version,this.options,t),!(t instanceof e)){if(typeof t==\"string\"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],o=t.prerelease[r];if(YL(\"prerelease compare\",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return cre(n,o)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],o=t.build[r];if(YL(\"build compare\",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return cre(n,o)}while(++r)}inc(t,r,n){if(t.startsWith(\"pre\")){if(!r&&n===!1)throw new Error(\"invalid increment argument: identifier is empty\");if(r){let o=`-${r}`.match(this.options.loose?ez[tz.PRERELEASELOOSE]:ez[tz.PRERELEASE]);if(!o||o[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case\"premajor\":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(\"pre\",r,n);break;case\"preminor\":this.prerelease.length=0,this.patch=0,this.minor++,this.inc(\"pre\",r,n);break;case\"prepatch\":this.prerelease.length=0,this.inc(\"patch\",r,n),this.inc(\"pre\",r,n);break;case\"prerelease\":this.prerelease.length===0&&this.inc(\"patch\",r,n),this.inc(\"pre\",r,n);break;case\"release\":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case\"major\":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case\"minor\":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case\"patch\":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case\"pre\":{let o=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]==\"number\"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(\".\")&&n===!1)throw new Error(\"invalid increment argument: identifier already exists\");this.prerelease.push(o)}}if(r){let s=[r,o];n===!1&&(s=[r]),cre(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(\".\")}`),this}};irt.exports=ure});var n2=X((eJn,crt)=>{\"use strict\";c();var srt=_i(),tkt=(e,t,r=!1)=>{if(e instanceof srt)return e;try{return new srt(e,t)}catch(n){if(!r)return null;throw n}};crt.exports=tkt});var lrt=X((rJn,urt)=>{\"use strict\";c();var rkt=n2(),nkt=(e,t)=>{let r=rkt(e,t);return r?r.version:null};urt.exports=nkt});var drt=X((oJn,frt)=>{\"use strict\";c();var okt=n2(),akt=(e,t)=>{let r=okt(e.trim().replace(/^[=v]+/,\"\"),t);return r?r.version:null};frt.exports=akt});var hrt=X((iJn,mrt)=>{\"use strict\";c();var prt=_i(),ikt=(e,t,r,n,o)=>{typeof r==\"string\"&&(o=n,n=r,r=void 0);try{return new prt(e instanceof prt?e.version:e,r).inc(t,n,o).version}catch{return null}};mrt.exports=ikt});var grt=X((cJn,brt)=>{\"use strict\";c();var yrt=n2(),skt=(e,t)=>{let r=yrt(e,null,!0),n=yrt(t,null,!0),o=r.compare(n);if(o===0)return null;let s=o>0,u=s?r:n,f=s?n:r,d=!!u.prerelease.length;if(!!f.prerelease.length&&!d){if(!f.patch&&!f.minor)return\"major\";if(f.compareMain(u)===0)return f.minor&&!f.patch?\"minor\":\"patch\"}let h=d?\"pre\":\"\";return r.major!==n.major?h+\"major\":r.minor!==n.minor?h+\"minor\":r.patch!==n.patch?h+\"patch\":\"prerelease\"};brt.exports=skt});var vrt=X((lJn,xrt)=>{\"use strict\";c();var ckt=_i(),ukt=(e,t)=>new ckt(e,t).major;xrt.exports=ukt});var Ert=X((dJn,wrt)=>{\"use strict\";c();var lkt=_i(),fkt=(e,t)=>new lkt(e,t).minor;wrt.exports=fkt});var Srt=X((mJn,Art)=>{\"use strict\";c();var dkt=_i(),pkt=(e,t)=>new dkt(e,t).patch;Art.exports=pkt});var Trt=X((yJn,Crt)=>{\"use strict\";c();var mkt=n2(),hkt=(e,t)=>{let r=mkt(e,t);return r&&r.prerelease.length?r.prerelease:null};Crt.exports=hkt});var Xu=X((gJn,krt)=>{\"use strict\";c();var _rt=_i(),ykt=(e,t,r)=>new _rt(e,r).compare(new _rt(t,r));krt.exports=ykt});var Irt=X((vJn,Brt)=>{\"use strict\";c();var bkt=Xu(),gkt=(e,t,r)=>bkt(t,e,r);Brt.exports=gkt});var Rrt=X((EJn,Prt)=>{\"use strict\";c();var xkt=Xu(),vkt=(e,t)=>xkt(e,t,!0);Prt.exports=vkt});var rz=X((SJn,Ort)=>{\"use strict\";c();var Mrt=_i(),wkt=(e,t,r)=>{let n=new Mrt(e,r),o=new Mrt(t,r);return n.compare(o)||n.compareBuild(o)};Ort.exports=wkt});var Urt=X((TJn,Nrt)=>{\"use strict\";c();var Ekt=rz(),Akt=(e,t)=>e.sort((r,n)=>Ekt(r,n,t));Nrt.exports=Akt});var Hrt=X((kJn,Drt)=>{\"use strict\";c();var Skt=rz(),Ckt=(e,t)=>e.sort((r,n)=>Skt(n,r,t));Drt.exports=Ckt});var M4=X((IJn,Lrt)=>{\"use strict\";c();var Tkt=Xu(),_kt=(e,t,r)=>Tkt(e,t,r)>0;Lrt.exports=_kt});var nz=X((RJn,zrt)=>{\"use strict\";c();var kkt=Xu(),Bkt=(e,t,r)=>kkt(e,t,r)<0;zrt.exports=Bkt});var lre=X((OJn,Frt)=>{\"use strict\";c();var Ikt=Xu(),Pkt=(e,t,r)=>Ikt(e,t,r)===0;Frt.exports=Pkt});var fre=X((UJn,jrt)=>{\"use strict\";c();var Rkt=Xu(),Mkt=(e,t,r)=>Rkt(e,t,r)!==0;jrt.exports=Mkt});var oz=X((HJn,qrt)=>{\"use strict\";c();var Okt=Xu(),Nkt=(e,t,r)=>Okt(e,t,r)>=0;qrt.exports=Nkt});var az=X((zJn,$rt)=>{\"use strict\";c();var Ukt=Xu(),Dkt=(e,t,r)=>Ukt(e,t,r)<=0;$rt.exports=Dkt});var dre=X((jJn,Grt)=>{\"use strict\";c();var Hkt=lre(),Lkt=fre(),zkt=M4(),Fkt=oz(),jkt=nz(),qkt=az(),$kt=(e,t,r,n)=>{switch(t){case\"===\":return typeof e==\"object\"&&(e=e.version),typeof r==\"object\"&&(r=r.version),e===r;case\"!==\":return typeof e==\"object\"&&(e=e.version),typeof r==\"object\"&&(r=r.version),e!==r;case\"\":case\"=\":case\"==\":return Hkt(e,r,n);case\"!=\":return Lkt(e,r,n);case\">\":return zkt(e,r,n);case\">=\":return Fkt(e,r,n);case\"<\":return jkt(e,r,n);case\"<=\":return qkt(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};Grt.exports=$kt});var Krt=X(($Jn,Vrt)=>{\"use strict\";c();var Gkt=_i(),Vkt=n2(),{safeRe:iz,t:sz}=Z3(),Kkt=(e,t)=>{if(e instanceof Gkt)return e;if(typeof e==\"number\"&&(e=String(e)),typeof e!=\"string\")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?iz[sz.COERCEFULL]:iz[sz.COERCE]);else{let d=t.includePrerelease?iz[sz.COERCERTLFULL]:iz[sz.COERCERTL],m;for(;(m=d.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||m.index+m[0].length!==r.index+r[0].length)&&(r=m),d.lastIndex=m.index+m[1].length+m[2].length;d.lastIndex=-1}if(r===null)return null;let n=r[2],o=r[3]||\"0\",s=r[4]||\"0\",u=t.includePrerelease&&r[5]?`-${r[5]}`:\"\",f=t.includePrerelease&&r[6]?`+${r[6]}`:\"\";return Vkt(`${n}.${o}.${s}${u}${f}`,t)};Vrt.exports=Kkt});var Qrt=X((VJn,Wrt)=>{\"use strict\";c();var pre=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(t,r)}return this}};Wrt.exports=pre});var el=X((WJn,Xrt)=>{\"use strict\";c();var Wkt=/\\\\s+/g,mre=class e{constructor(t,r){if(r=Zkt(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof hre)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(Wkt,\" \"),this.set=this.raw.split(\"||\").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(o=>!Jrt(o[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&n7t(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=\"\";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+=\"||\");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=\" \"),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&t7t)|(this.options.loose&&r7t))+\":\"+t,o=Zrt.get(n);if(o)return o;let s=this.options.loose,u=s?ms[ki.HYPHENRANGELOOSE]:ms[ki.HYPHENRANGE];t=t.replace(u,p7t(this.options.includePrerelease)),$n(\"hyphen replace\",t),t=t.replace(ms[ki.COMPARATORTRIM],Ykt),$n(\"comparator trim\",t),t=t.replace(ms[ki.TILDETRIM],Xkt),$n(\"tilde trim\",t),t=t.replace(ms[ki.CARETTRIM],e7t),$n(\"caret trim\",t);let f=t.split(\" \").map(y=>o7t(y,this.options)).join(\" \").split(/\\\\s+/).map(y=>d7t(y,this.options));s&&(f=f.filter(y=>($n(\"loose invalid filter\",y,this.options),!!y.match(ms[ki.COMPARATORLOOSE])))),$n(\"range list\",f);let d=new Map,m=f.map(y=>new hre(y,this.options));for(let y of m){if(Jrt(y))return[y];d.set(y.value,y)}d.size>1&&d.has(\"\")&&d.delete(\"\");let h=[...d.values()];return Zrt.set(n,h),h}intersects(t,r){if(!(t instanceof e))throw new TypeError(\"a Range is required\");return this.set.some(n=>Yrt(n,r)&&t.set.some(o=>Yrt(o,r)&&n.every(s=>o.every(u=>s.intersects(u,r)))))}test(t){if(!t)return!1;if(typeof t==\"string\")try{t=new Jkt(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(m7t(this.set[r],t,this.options))return!0;return!1}};Xrt.exports=mre;var Qkt=Qrt(),Zrt=new Qkt,Zkt=JL(),hre=O4(),$n=R4(),Jkt=_i(),{safeRe:ms,t:ki,comparatorTrimReplace:Ykt,tildeTrimReplace:Xkt,caretTrimReplace:e7t}=Z3(),{FLAG_INCLUDE_PRERELEASE:t7t,FLAG_LOOSE:r7t}=P4(),Jrt=e=>e.value===\"<0.0.0-0\",n7t=e=>e.value===\"\",Yrt=(e,t)=>{let r=!0,n=e.slice(),o=n.pop();for(;r&&n.length;)r=n.every(s=>o.intersects(s,t)),o=n.pop();return r},o7t=(e,t)=>(e=e.replace(ms[ki.BUILD],\"\"),$n(\"comp\",e,t),e=s7t(e,t),$n(\"caret\",e),e=a7t(e,t),$n(\"tildes\",e),e=u7t(e,t),$n(\"xrange\",e),e=f7t(e,t),$n(\"stars\",e),e),hs=e=>!e||e.toLowerCase()===\"x\"||e===\"*\",a7t=(e,t)=>e.trim().split(/\\\\s+/).map(r=>i7t(r,t)).join(\" \"),i7t=(e,t)=>{let r=t.loose?ms[ki.TILDELOOSE]:ms[ki.TILDE];return e.replace(r,(n,o,s,u,f)=>{$n(\"tilde\",e,n,o,s,u,f);let d;return hs(o)?d=\"\":hs(s)?d=`>=${o}.0.0 <${+o+1}.0.0-0`:hs(u)?d=`>=${o}.${s}.0 <${o}.${+s+1}.0-0`:f?($n(\"replaceTilde pr\",f),d=`>=${o}.${s}.${u}-${f} <${o}.${+s+1}.0-0`):d=`>=${o}.${s}.${u} <${o}.${+s+1}.0-0`,$n(\"tilde return\",d),d})},s7t=(e,t)=>e.trim().split(/\\\\s+/).map(r=>c7t(r,t)).join(\" \"),c7t=(e,t)=>{$n(\"caret\",e,t);let r=t.loose?ms[ki.CARETLOOSE]:ms[ki.CARET],n=t.includePrerelease?\"-0\":\"\";return e.replace(r,(o,s,u,f,d)=>{$n(\"caret\",e,o,s,u,f,d);let m;return hs(s)?m=\"\":hs(u)?m=`>=${s}.0.0${n} <${+s+1}.0.0-0`:hs(f)?s===\"0\"?m=`>=${s}.${u}.0${n} <${s}.${+u+1}.0-0`:m=`>=${s}.${u}.0${n} <${+s+1}.0.0-0`:d?($n(\"replaceCaret pr\",d),s===\"0\"?u===\"0\"?m=`>=${s}.${u}.${f}-${d} <${s}.${u}.${+f+1}-0`:m=`>=${s}.${u}.${f}-${d} <${s}.${+u+1}.0-0`:m=`>=${s}.${u}.${f}-${d} <${+s+1}.0.0-0`):($n(\"no pr\"),s===\"0\"?u===\"0\"?m=`>=${s}.${u}.${f}${n} <${s}.${u}.${+f+1}-0`:m=`>=${s}.${u}.${f}${n} <${s}.${+u+1}.0-0`:m=`>=${s}.${u}.${f} <${+s+1}.0.0-0`),$n(\"caret return\",m),m})},u7t=(e,t)=>($n(\"replaceXRanges\",e,t),e.split(/\\\\s+/).map(r=>l7t(r,t)).join(\" \")),l7t=(e,t)=>{e=e.trim();let r=t.loose?ms[ki.XRANGELOOSE]:ms[ki.XRANGE];return e.replace(r,(n,o,s,u,f,d)=>{$n(\"xRange\",e,n,o,s,u,f,d);let m=hs(s),h=m||hs(u),y=h||hs(f),v=y;return o===\"=\"&&v&&(o=\"\"),d=t.includePrerelease?\"-0\":\"\",m?o===\">\"||o===\"<\"?n=\"<0.0.0-0\":n=\"*\":o&&v?(h&&(u=0),f=0,o===\">\"?(o=\">=\",h?(s=+s+1,u=0,f=0):(u=+u+1,f=0)):o===\"<=\"&&(o=\"<\",h?s=+s+1:u=+u+1),o===\"<\"&&(d=\"-0\"),n=`${o+s}.${u}.${f}${d}`):h?n=`>=${s}.0.0${d} <${+s+1}.0.0-0`:y&&(n=`>=${s}.${u}.0${d} <${s}.${+u+1}.0-0`),$n(\"xRange return\",n),n})},f7t=(e,t)=>($n(\"replaceStars\",e,t),e.trim().replace(ms[ki.STAR],\"\")),d7t=(e,t)=>($n(\"replaceGTE0\",e,t),e.trim().replace(ms[t.includePrerelease?ki.GTE0PRE:ki.GTE0],\"\")),p7t=e=>(t,r,n,o,s,u,f,d,m,h,y,v)=>(hs(n)?r=\"\":hs(o)?r=`>=${n}.0.0${e?\"-0\":\"\"}`:hs(s)?r=`>=${n}.${o}.0${e?\"-0\":\"\"}`:u?r=`>=${r}`:r=`>=${r}${e?\"-0\":\"\"}`,hs(m)?d=\"\":hs(h)?d=`<${+m+1}.0.0-0`:hs(y)?d=`<${m}.${+h+1}.0-0`:v?d=`<=${m}.${h}.${y}-${v}`:e?d=`<${m}.${h}.${+y+1}-0`:d=`<=${d}`,`${r} ${d}`.trim()),m7t=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if($n(e[n].semver),e[n].semver!==hre.ANY&&e[n].semver.prerelease.length>0){let o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}});var O4=X((ZJn,ant)=>{\"use strict\";c();var N4=Symbol(\"SemVer ANY\"),gre=class e{static get ANY(){return N4}constructor(t,r){if(r=ent(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\\\\s+/).join(\" \"),bre(\"comparator\",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===N4?this.value=\"\":this.value=this.operator+this.semver.version,bre(\"comp\",this)}parse(t){let r=this.options.loose?tnt[rnt.COMPARATORLOOSE]:tnt[rnt.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:\"\",this.operator===\"=\"&&(this.operator=\"\"),n[2]?this.semver=new nnt(n[2],this.options.loose):this.semver=N4}toString(){return this.value}test(t){if(bre(\"Comparator.test\",t,this.options.loose),this.semver===N4||t===N4)return!0;if(typeof t==\"string\")try{t=new nnt(t,this.options)}catch{return!1}return yre(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError(\"a Comparator is required\");return this.operator===\"\"?this.value===\"\"?!0:new ont(t.value,r).test(this.value):t.operator===\"\"?t.value===\"\"?!0:new ont(this.value,r).test(t.semver):(r=ent(r),r.includePrerelease&&(this.value===\"<0.0.0-0\"||t.value===\"<0.0.0-0\")||!r.includePrerelease&&(this.value.startsWith(\"<0.0.0\")||t.value.startsWith(\"<0.0.0\"))?!1:!!(this.operator.startsWith(\">\")&&t.operator.startsWith(\">\")||this.operator.startsWith(\"<\")&&t.operator.startsWith(\"<\")||this.semver.version===t.semver.version&&this.operator.includes(\"=\")&&t.operator.includes(\"=\")||yre(this.semver,\"<\",t.semver,r)&&this.operator.startsWith(\">\")&&t.operator.startsWith(\"<\")||yre(this.semver,\">\",t.semver,r)&&this.operator.startsWith(\"<\")&&t.operator.startsWith(\">\")))}};ant.exports=gre;var ent=JL(),{safeRe:tnt,t:rnt}=Z3(),yre=dre(),bre=R4(),nnt=_i(),ont=el()});var U4=X((YJn,int)=>{\"use strict\";c();var h7t=el(),y7t=(e,t,r)=>{try{t=new h7t(t,r)}catch{return!1}return t.test(e)};int.exports=y7t});var cnt=X((eYn,snt)=>{\"use strict\";c();var b7t=el(),g7t=(e,t)=>new b7t(e,t).set.map(r=>r.map(n=>n.value).join(\" \").trim().split(\" \"));snt.exports=g7t});var lnt=X((rYn,unt)=>{\"use strict\";c();var x7t=_i(),v7t=el(),w7t=(e,t,r)=>{let n=null,o=null,s=null;try{s=new v7t(t,r)}catch{return null}return e.forEach(u=>{s.test(u)&&(!n||o.compare(u)===-1)&&(n=u,o=new x7t(n,r))}),n};unt.exports=w7t});var dnt=X((oYn,fnt)=>{\"use strict\";c();var E7t=_i(),A7t=el(),S7t=(e,t,r)=>{let n=null,o=null,s=null;try{s=new A7t(t,r)}catch{return null}return e.forEach(u=>{s.test(u)&&(!n||o.compare(u)===1)&&(n=u,o=new E7t(n,r))}),n};fnt.exports=S7t});var hnt=X((iYn,mnt)=>{\"use strict\";c();var xre=_i(),C7t=el(),pnt=M4(),T7t=(e,t)=>{e=new C7t(e,t);let r=new xre(\"0.0.0\");if(e.test(r)||(r=new xre(\"0.0.0-0\"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let o=e.set[n],s=null;o.forEach(u=>{let f=new xre(u.semver.version);switch(u.operator){case\">\":f.prerelease.length===0?f.patch++:f.prerelease.push(0),f.raw=f.format();case\"\":case\">=\":(!s||pnt(f,s))&&(s=f);break;case\"<\":case\"<=\":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),s&&(!r||pnt(r,s))&&(r=s)}return r&&e.test(r)?r:null};mnt.exports=T7t});var bnt=X((cYn,ynt)=>{\"use strict\";c();var _7t=el(),k7t=(e,t)=>{try{return new _7t(e,t).range||\"*\"}catch{return null}};ynt.exports=k7t});var cz=X((lYn,wnt)=>{\"use strict\";c();var B7t=_i(),vnt=O4(),{ANY:I7t}=vnt,P7t=el(),R7t=U4(),gnt=M4(),xnt=nz(),M7t=az(),O7t=oz(),N7t=(e,t,r,n)=>{e=new B7t(e,n),t=new P7t(t,n);let o,s,u,f,d;switch(r){case\">\":o=gnt,s=M7t,u=xnt,f=\">\",d=\">=\";break;case\"<\":o=xnt,s=O7t,u=gnt,f=\"<\",d=\"<=\";break;default:throw new TypeError(\\'Must provide a hilo val of \"<\" or \">\"\\')}if(R7t(e,t,n))return!1;for(let m=0;m<t.set.length;++m){let h=t.set[m],y=null,v=null;if(h.forEach(E=>{E.semver===I7t&&(E=new vnt(\">=0.0.0\")),y=y||E,v=v||E,o(E.semver,y.semver,n)?y=E:u(E.semver,v.semver,n)&&(v=E)}),y.operator===f||y.operator===d||(!v.operator||v.operator===f)&&s(e,v.semver))return!1;if(v.operator===d&&u(e,v.semver))return!1}return!0};wnt.exports=N7t});var Ant=X((dYn,Ent)=>{\"use strict\";c();var U7t=cz(),D7t=(e,t,r)=>U7t(e,t,\">\",r);Ent.exports=D7t});var Cnt=X((mYn,Snt)=>{\"use strict\";c();var H7t=cz(),L7t=(e,t,r)=>H7t(e,t,\"<\",r);Snt.exports=L7t});var knt=X((yYn,_nt)=>{\"use strict\";c();var Tnt=el(),z7t=(e,t,r)=>(e=new Tnt(e,r),t=new Tnt(t,r),e.intersects(t,r));_nt.exports=z7t});var Int=X((gYn,Bnt)=>{\"use strict\";c();var F7t=U4(),j7t=Xu();Bnt.exports=(e,t,r)=>{let n=[],o=null,s=null,u=e.sort((h,y)=>j7t(h,y,r));for(let h of u)F7t(h,t,r)?(s=h,o||(o=h)):(s&&n.push([o,s]),s=null,o=null);o&&n.push([o,null]);let f=[];for(let[h,y]of n)h===y?f.push(h):!y&&h===u[0]?f.push(\"*\"):y?h===u[0]?f.push(`<=${y}`):f.push(`${h} - ${y}`):f.push(`>=${h}`);let d=f.join(\" || \"),m=typeof t.raw==\"string\"?t.raw:String(t);return d.length<m.length?d:t}});var Unt=X((vYn,Nnt)=>{\"use strict\";c();var Pnt=el(),wre=O4(),{ANY:vre}=wre,D4=U4(),Ere=Xu(),q7t=(e,t,r={})=>{if(e===t)return!0;e=new Pnt(e,r),t=new Pnt(t,r);let n=!1;e:for(let o of e.set){for(let s of t.set){let u=G7t(o,s,r);if(n=n||u!==null,u)continue e}if(n)return!1}return!0},$7t=[new wre(\">=0.0.0-0\")],Rnt=[new wre(\">=0.0.0\")],G7t=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===vre){if(t.length===1&&t[0].semver===vre)return!0;r.includePrerelease?e=$7t:e=Rnt}if(t.length===1&&t[0].semver===vre){if(r.includePrerelease)return!0;t=Rnt}let n=new Set,o,s;for(let E of e)E.operator===\">\"||E.operator===\">=\"?o=Mnt(o,E,r):E.operator===\"<\"||E.operator===\"<=\"?s=Ont(s,E,r):n.add(E.semver);if(n.size>1)return null;let u;if(o&&s){if(u=Ere(o.semver,s.semver,r),u>0)return null;if(u===0&&(o.operator!==\">=\"||s.operator!==\"<=\"))return null}for(let E of n){if(o&&!D4(E,String(o),r)||s&&!D4(E,String(s),r))return null;for(let C of t)if(!D4(E,String(C),r))return!1;return!0}let f,d,m,h,y=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,v=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;y&&y.prerelease.length===1&&s.operator===\"<\"&&y.prerelease[0]===0&&(y=!1);for(let E of t){if(h=h||E.operator===\">\"||E.operator===\">=\",m=m||E.operator===\"<\"||E.operator===\"<=\",o){if(v&&E.semver.prerelease&&E.semver.prerelease.length&&E.semver.major===v.major&&E.semver.minor===v.minor&&E.semver.patch===v.patch&&(v=!1),E.operator===\">\"||E.operator===\">=\"){if(f=Mnt(o,E,r),f===E&&f!==o)return!1}else if(o.operator===\">=\"&&!D4(o.semver,String(E),r))return!1}if(s){if(y&&E.semver.prerelease&&E.semver.prerelease.length&&E.semver.major===y.major&&E.semver.minor===y.minor&&E.semver.patch===y.patch&&(y=!1),E.operator===\"<\"||E.operator===\"<=\"){if(d=Ont(s,E,r),d===E&&d!==s)return!1}else if(s.operator===\"<=\"&&!D4(s.semver,String(E),r))return!1}if(!E.operator&&(s||o)&&u!==0)return!1}return!(o&&m&&!s&&u!==0||s&&h&&!o&&u!==0||v||y)},Mnt=(e,t,r)=>{if(!e)return t;let n=Ere(e.semver,t.semver,r);return n>0?e:n<0||t.operator===\">\"&&e.operator===\">=\"?t:e},Ont=(e,t,r)=>{if(!e)return t;let n=Ere(e.semver,t.semver,r);return n<0?e:n>0||t.operator===\"<\"&&e.operator===\"<=\"?t:e};Nnt.exports=q7t});var znt=X((EYn,Lnt)=>{\"use strict\";c();var Are=Z3(),Dnt=P4(),V7t=_i(),Hnt=sre(),K7t=n2(),W7t=lrt(),Q7t=drt(),Z7t=hrt(),J7t=grt(),Y7t=vrt(),X7t=Ert(),e9t=Srt(),t9t=Trt(),r9t=Xu(),n9t=Irt(),o9t=Rrt(),a9t=rz(),i9t=Urt(),s9t=Hrt(),c9t=M4(),u9t=nz(),l9t=lre(),f9t=fre(),d9t=oz(),p9t=az(),m9t=dre(),h9t=Krt(),y9t=O4(),b9t=el(),g9t=U4(),x9t=cnt(),v9t=lnt(),w9t=dnt(),E9t=hnt(),A9t=bnt(),S9t=cz(),C9t=Ant(),T9t=Cnt(),_9t=knt(),k9t=Int(),B9t=Unt();Lnt.exports={parse:K7t,valid:W7t,clean:Q7t,inc:Z7t,diff:J7t,major:Y7t,minor:X7t,patch:e9t,prerelease:t9t,compare:r9t,rcompare:n9t,compareLoose:o9t,compareBuild:a9t,sort:i9t,rsort:s9t,gt:c9t,lt:u9t,eq:l9t,neq:f9t,gte:d9t,lte:p9t,cmp:m9t,coerce:h9t,Comparator:y9t,Range:b9t,satisfies:g9t,toComparators:x9t,maxSatisfying:v9t,minSatisfying:w9t,minVersion:E9t,validRange:A9t,outside:S9t,gtr:C9t,ltr:T9t,intersects:_9t,simplifyRange:k9t,subset:B9t,SemVer:V7t,re:Are.re,src:Are.src,tokens:Are.t,SEMVER_SPEC_VERSION:Dnt.SEMVER_SPEC_VERSION,RELEASE_TYPES:Dnt.RELEASE_TYPES,compareIdentifiers:Hnt.compareIdentifiers,rcompareIdentifiers:Hnt.rcompareIdentifiers}});var jnt=X(to=>{\"use strict\";c();Object.defineProperty(to,\"__esModule\",{value:!0});to.satisfiesVersionRange=to.gtRange=to.gtVersion=to.assertIsSemVerRange=to.assertIsSemVerVersion=to.isValidSemVerRange=to.isValidSemVerVersion=to.VersionRangeStruct=to.VersionStruct=void 0;var H4=znt(),J3=(gb(),Kr(bb)),Fnt=hh();to.VersionStruct=(0,J3.refine)((0,J3.string)(),\"Version\",e=>(0,H4.valid)(e)===null?`Expected SemVer version, got \"${e}\"`:!0);to.VersionRangeStruct=(0,J3.refine)((0,J3.string)(),\"Version range\",e=>(0,H4.validRange)(e)===null?`Expected SemVer range, got \"${e}\"`:!0);function I9t(e){return(0,J3.is)(e,to.VersionStruct)}to.isValidSemVerVersion=I9t;function P9t(e){return(0,J3.is)(e,to.VersionRangeStruct)}to.isValidSemVerRange=P9t;function R9t(e){(0,Fnt.assertStruct)(e,to.VersionStruct)}to.assertIsSemVerVersion=R9t;function M9t(e){(0,Fnt.assertStruct)(e,to.VersionRangeStruct)}to.assertIsSemVerRange=M9t;function O9t(e,t){return(0,H4.gt)(e,t)}to.gtVersion=O9t;function N9t(e,t){return(0,H4.gtr)(e,t)}to.gtRange=N9t;function U9t(e,t){return(0,H4.satisfies)(e,t,{includePrerelease:!0})}to.satisfiesVersionRange=U9t});var qnt=X(po=>{\"use strict\";c();var D9t=po&&po.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||(\"get\"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),ri=po&&po.__exportStar||function(e,t){for(var r in e)r!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,r)&&D9t(t,e,r)};Object.defineProperty(po,\"__esModule\",{value:!0});ri(hh(),po);ri(tre(),po);ri(ore(),po);ri(Ttt(),po);ri(Btt(),po);ri(Ptt(),po);ri(Mtt(),po);ri(_4(),po);ri(Ott(),po);ri(Utt(),po);ri(jtt(),po);ri($tt(),po);ri(Gtt(),po);ri(Ktt(),po);ri(Qtt(),po);ri(Jtt(),po);ri(jnt(),po)});var Gnt=X(Y3=>{\"use strict\";c();Object.defineProperty(Y3,\"__esModule\",{value:!0});Y3.createModuleLogger=Y3.projectLogger=void 0;var $nt=qnt();Object.defineProperty(Y3,\"createModuleLogger\",{enumerable:!0,get:function(){return $nt.createModuleLogger}});Y3.projectLogger=(0,$nt.createProjectLogger)(\"eth-block-tracker\")});var Znt=X(X3=>{\"use strict\";c();var Qnt=X3&&X3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(X3,\"__esModule\",{value:!0});X3.PollingBlockTracker=void 0;var H9t=Qnt(jL()),L9t=Qnt(ett()),z9t=Qte(),Vnt=Gnt(),Knt=(0,Vnt.createModuleLogger)(Vnt.projectLogger,\"polling-block-tracker\"),F9t=(0,H9t.default)(),j9t=1e3,Sre=class extends z9t.BaseBlockTracker{constructor(t={}){var r;if(!t.provider)throw new Error(\"PollingBlockTracker - no provider specified.\");super(Object.assign(Object.assign({},t),{blockResetDuration:(r=t.blockResetDuration)!==null&&r!==void 0?r:t.pollingInterval})),this._provider=t.provider,this._pollingInterval=t.pollingInterval||20*j9t,this._retryTimeout=t.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=t.keepEventLoopActive===void 0?!0:t.keepEventLoopActive,this._setSkipCacheFlag=t.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var t;this._isRunning;)try{await this._updateLatestBlock();let r=Wnt(this._pollingInterval,!this._keepEventLoopActive);this.emit(\"_waitingForNextIteration\"),await r}catch(r){let n=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:\\n${(t=r.stack)!==null&&t!==void 0?t:r}`);try{this.emit(\"error\",n)}catch{console.error(n)}let o=Wnt(this._retryTimeout,!this._keepEventLoopActive);this.emit(\"_waitingForNextIteration\"),await o}}async _updateLatestBlock(){let t=await this._fetchLatestBlock();this._newPotentialLatest(t)}async _fetchLatestBlock(){let t={jsonrpc:\"2.0\",id:F9t(),method:\"eth_blockNumber\",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0),Knt(\"Making request\",t);let r=await(0,L9t.default)(n=>this._provider.sendAsync(t,n))();if(Knt(\"Got response\",r),r.error)throw new Error(`PollingBlockTracker - encountered error fetching block:\\n${r.error.message}`);return r.result}};X3.PollingBlockTracker=Sre;function Wnt(e,t){return new Promise(r=>{let n=setTimeout(r,e);n.unref&&t&&n.unref()})}});var Jnt=X(e8=>{\"use strict\";c();var q9t=e8&&e8.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e8,\"__esModule\",{value:!0});e8.SubscribeBlockTracker=void 0;var $9t=q9t(jL()),G9t=Qte(),V9t=(0,$9t.default)(),Cre=class extends G9t.BaseBlockTracker{constructor(t={}){if(!t.provider)throw new Error(\"SubscribeBlockTracker - no provider specified.\");super(t),this._provider=t.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(this._subscriptionId===void 0||this._subscriptionId===null)try{let t=await this._call(\"eth_blockNumber\");this._subscriptionId=await this._call(\"eth_subscribe\",\"newHeads\"),this._provider.on(\"data\",this._handleSubData.bind(this)),this._newPotentialLatest(t)}catch(t){this.emit(\"error\",t)}}async _end(){if(this._subscriptionId!==null&&this._subscriptionId!==void 0)try{await this._call(\"eth_unsubscribe\",this._subscriptionId),this._subscriptionId=null}catch(t){this.emit(\"error\",t)}}_call(t,...r){return new Promise((n,o)=>{this._provider.sendAsync({id:V9t(),method:t,params:r,jsonrpc:\"2.0\"},(s,u)=>{s?o(s):n(u.result)})})}_handleSubData(t,r){var n;r.method===\"eth_subscription\"&&((n=r.params)===null||n===void 0?void 0:n.subscription)===this._subscriptionId&&this._newPotentialLatest(r.params.result.number)}};e8.SubscribeBlockTracker=Cre});var Xnt=X(wb=>{\"use strict\";c();var K9t=wb&&wb.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Ynt=wb&&wb.__exportStar||function(e,t){for(var r in e)r!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,r)&&K9t(t,e,r)};Object.defineProperty(wb,\"__esModule\",{value:!0});Ynt(Znt(),wb);Ynt(Jnt(),wb)});var _re=X(uz=>{\"use strict\";c();Object.defineProperty(uz,\"__esModule\",{value:!0});uz.getUniqueId=void 0;var eot=4294967295,Tre=Math.floor(Math.random()*eot);function W9t(){return Tre=(Tre+1)%eot,Tre}uz.getUniqueId=W9t});var tot=X(lz=>{\"use strict\";c();Object.defineProperty(lz,\"__esModule\",{value:!0});lz.createIdRemapMiddleware=void 0;var Q9t=_re();function Z9t(){return(e,t,r,n)=>{let o=e.id,s=Q9t.getUniqueId();e.id=s,t.id=s,r(u=>{e.id=o,t.id=o,u()})}}lz.createIdRemapMiddleware=Z9t});var rot=X(fz=>{\"use strict\";c();Object.defineProperty(fz,\"__esModule\",{value:!0});fz.createAsyncMiddleware=void 0;function J9t(e){return async(t,r,n,o)=>{let s,u=new Promise(h=>{s=h}),f=null,d=!1,m=async()=>{d=!0,n(h=>{f=h,s()}),await u};try{await e(t,r,m),d?(await u,f(null)):o(null)}catch(h){f?f(h):o(h)}}}fz.createAsyncMiddleware=J9t});var not=X(dz=>{\"use strict\";c();Object.defineProperty(dz,\"__esModule\",{value:!0});dz.createScaffoldMiddleware=void 0;function Y9t(e){return(t,r,n,o)=>{let s=e[t.method];return s===void 0?n():typeof s==\"function\"?s(t,r,n,o):(r.result=s,o())}}dz.createScaffoldMiddleware=Y9t});var aot=X(Bre=>{\"use strict\";c();Object.defineProperty(Bre,\"__esModule\",{value:!0});var X9t=h4();function oot(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(()=>{throw n})}}function eBt(e){let t=e.length,r=new Array(t);for(let n=0;n<t;n+=1)r[n]=e[n];return r}var kre=class extends X9t.EventEmitter{emit(t,...r){let n=t===\"error\",o=this._events;if(o!==void 0)n=n&&o.error===void 0;else if(!n)return!1;if(n){let u;if(r.length>0&&([u]=r),u instanceof Error)throw u;let f=new Error(`Unhandled error.${u?` (${u.message})`:\"\"}`);throw f.context=u,f}let s=o[t];if(s===void 0)return!1;if(typeof s==\"function\")oot(s,this,r);else{let u=s.length,f=eBt(s);for(let d=0;d<u;d+=1)oot(f[d],this,r)}return!0}};Bre.default=kre});var fot=X((VYn,lot)=>{c();lot.exports=L4;L4.default=L4;L4.stable=cot;L4.stableStringify=cot;var pz=\"[...]\",iot=\"[Circular]\",a2=[],o2=[];function sot(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function L4(e,t,r,n){typeof n>\"u\"&&(n=sot()),Ire(e,\"\",0,[],void 0,0,n);var o;try{o2.length===0?o=JSON.stringify(e,t,r):o=JSON.stringify(e,uot(t),r)}catch{return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\")}finally{for(;a2.length!==0;){var s=a2.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return o}function t8(e,t,r,n){var o=Object.getOwnPropertyDescriptor(n,r);o.get!==void 0?o.configurable?(Object.defineProperty(n,r,{value:e}),a2.push([n,r,t,o])):o2.push([t,r,e]):(n[r]=e,a2.push([n,r,t]))}function Ire(e,t,r,n,o,s,u){s+=1;var f;if(typeof e==\"object\"&&e!==null){for(f=0;f<n.length;f++)if(n[f]===e){t8(iot,e,t,o);return}if(typeof u.depthLimit<\"u\"&&s>u.depthLimit){t8(pz,e,t,o);return}if(typeof u.edgesLimit<\"u\"&&r+1>u.edgesLimit){t8(pz,e,t,o);return}if(n.push(e),Array.isArray(e))for(f=0;f<e.length;f++)Ire(e[f],f,f,n,e,s,u);else{var d=Object.keys(e);for(f=0;f<d.length;f++){var m=d[f];Ire(e[m],m,f,n,e,s,u)}}n.pop()}}function tBt(e,t){return e<t?-1:e>t?1:0}function cot(e,t,r,n){typeof n>\"u\"&&(n=sot());var o=Pre(e,\"\",0,[],void 0,0,n)||e,s;try{o2.length===0?s=JSON.stringify(o,t,r):s=JSON.stringify(o,uot(t),r)}catch{return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\")}finally{for(;a2.length!==0;){var u=a2.pop();u.length===4?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function Pre(e,t,r,n,o,s,u){s+=1;var f;if(typeof e==\"object\"&&e!==null){for(f=0;f<n.length;f++)if(n[f]===e){t8(iot,e,t,o);return}try{if(typeof e.toJSON==\"function\")return}catch{return}if(typeof u.depthLimit<\"u\"&&s>u.depthLimit){t8(pz,e,t,o);return}if(typeof u.edgesLimit<\"u\"&&r+1>u.edgesLimit){t8(pz,e,t,o);return}if(n.push(e),Array.isArray(e))for(f=0;f<e.length;f++)Pre(e[f],f,f,n,e,s,u);else{var d={},m=Object.keys(e).sort(tBt);for(f=0;f<m.length;f++){var h=m[f];Pre(e[h],h,f,n,e,s,u),d[h]=e[h]}if(typeof o<\"u\")a2.push([o,t,e]),o[t]=d;else return d}n.pop()}}function uot(e){return e=typeof e<\"u\"?e:function(t,r){return r},function(t,r){if(o2.length>0)for(var n=0;n<o2.length;n++){var o=o2[n];if(o[1]===t&&o[0]===r){r=o[2],o2.splice(n,1);break}}return e.call(this,t,r)}}});var hz=X(r8=>{\"use strict\";c();Object.defineProperty(r8,\"__esModule\",{value:!0});r8.EthereumProviderError=r8.EthereumRpcError=void 0;var rBt=fot(),mz=class extends Error{constructor(t,r,n){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!r||typeof r!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(r),this.code=t,n!==void 0&&(this.data=n)}serialize(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return rBt.default(this.serialize(),oBt,2)}};r8.EthereumRpcError=mz;var Rre=class extends mz{constructor(t,r,n){if(!nBt(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,r,n)}};r8.EthereumProviderError=Rre;function nBt(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function oBt(e,t){if(t!==\"[Circular]\")return t}});var yz=X(n8=>{\"use strict\";c();Object.defineProperty(n8,\"__esModule\",{value:!0});n8.errorValues=n8.errorCodes=void 0;n8.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};n8.errorValues={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"}}});var Nre=X(af=>{\"use strict\";c();Object.defineProperty(af,\"__esModule\",{value:!0});af.serializeError=af.isValidCode=af.getMessageFromCode=af.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var bz=yz(),aBt=hz(),dot=bz.errorCodes.rpc.internal,iBt=\"Unspecified error message. This is a bug, please report it.\",sBt={code:dot,message:Ore(dot)};af.JSON_RPC_SERVER_ERROR_MESSAGE=\"Unspecified server error.\";function Ore(e,t=iBt){if(Number.isInteger(e)){let r=e.toString();if(Mre(bz.errorValues,r))return bz.errorValues[r].message;if(hot(e))return af.JSON_RPC_SERVER_ERROR_MESSAGE}return t}af.getMessageFromCode=Ore;function mot(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(bz.errorValues[t]||hot(e))}af.isValidCode=mot;function cBt(e,{fallbackError:t=sBt,shouldIncludeStack:r=!1}={}){var n,o;if(!t||!Number.isInteger(t.code)||typeof t.message!=\"string\")throw new Error(\"Must provide fallback error with integer number code and string message.\");if(e instanceof aBt.EthereumRpcError)return e.serialize();let s={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&Mre(e,\"code\")&&mot(e.code)){let f=e;s.code=f.code,f.message&&typeof f.message==\"string\"?(s.message=f.message,Mre(f,\"data\")&&(s.data=f.data)):(s.message=Ore(s.code),s.data={originalError:pot(e)})}else{s.code=t.code;let f=(n=e)===null||n===void 0?void 0:n.message;s.message=f&&typeof f==\"string\"?f:t.message,s.data={originalError:pot(e)}}let u=(o=e)===null||o===void 0?void 0:o.stack;return r&&e&&u&&typeof u==\"string\"&&(s.stack=u),s}af.serializeError=cBt;function hot(e){return e>=-32099&&e<=-32e3}function pot(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function Mre(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var got=X(gz=>{\"use strict\";c();Object.defineProperty(gz,\"__esModule\",{value:!0});gz.ethErrors=void 0;var Ure=hz(),yot=Nre(),Bi=yz();gz.ethErrors={rpc:{parse:e=>tl(Bi.errorCodes.rpc.parse,e),invalidRequest:e=>tl(Bi.errorCodes.rpc.invalidRequest,e),invalidParams:e=>tl(Bi.errorCodes.rpc.invalidParams,e),methodNotFound:e=>tl(Bi.errorCodes.rpc.methodNotFound,e),internal:e=>tl(Bi.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return tl(t,e)},invalidInput:e=>tl(Bi.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>tl(Bi.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>tl(Bi.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>tl(Bi.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>tl(Bi.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>tl(Bi.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>z4(Bi.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>z4(Bi.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>z4(Bi.errorCodes.provider.unsupportedMethod,e),disconnected:e=>z4(Bi.errorCodes.provider.disconnected,e),chainDisconnected:e=>z4(Bi.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:r,data:n}=e;if(!r||typeof r!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new Ure.EthereumProviderError(t,r,n)}}};function tl(e,t){let[r,n]=bot(t);return new Ure.EthereumRpcError(e,r||yot.getMessageFromCode(e),n)}function z4(e,t){let[r,n]=bot(t);return new Ure.EthereumProviderError(e,r||yot.getMessageFromCode(e),n)}function bot(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,r]}}return[]}});var wot=X(oc=>{\"use strict\";c();Object.defineProperty(oc,\"__esModule\",{value:!0});oc.getMessageFromCode=oc.serializeError=oc.EthereumProviderError=oc.EthereumRpcError=oc.ethErrors=oc.errorCodes=void 0;var xot=hz();Object.defineProperty(oc,\"EthereumRpcError\",{enumerable:!0,get:function(){return xot.EthereumRpcError}});Object.defineProperty(oc,\"EthereumProviderError\",{enumerable:!0,get:function(){return xot.EthereumProviderError}});var vot=Nre();Object.defineProperty(oc,\"serializeError\",{enumerable:!0,get:function(){return vot.serializeError}});Object.defineProperty(oc,\"getMessageFromCode\",{enumerable:!0,get:function(){return vot.getMessageFromCode}});var uBt=got();Object.defineProperty(oc,\"ethErrors\",{enumerable:!0,get:function(){return uBt.ethErrors}});var lBt=yz();Object.defineProperty(oc,\"errorCodes\",{enumerable:!0,get:function(){return lBt.errorCodes}})});var Lre=X(o8=>{\"use strict\";c();var fBt=o8&&o8.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(o8,\"__esModule\",{value:!0});o8.JsonRpcEngine=void 0;var dBt=fBt(aot()),rl=wot(),Hre=class e extends dBt.default{constructor(){super(),this._middleware=[]}push(t){this._middleware.push(t)}handle(t,r){if(r&&typeof r!=\"function\")throw new Error(\\'\"callback\" must be a function if provided.\\');return Array.isArray(t)?r?this._handleBatch(t,r):this._handleBatch(t):r?this._handle(t,r):this._promiseHandle(t)}asMiddleware(){return async(t,r,n,o)=>{try{let[s,u,f]=await e._runAllMiddleware(t,r,this._middleware);return u?(await e._runReturnHandlers(f),o(s)):n(async d=>{try{await e._runReturnHandlers(f)}catch(m){return d(m)}return d()})}catch(s){return o(s)}}}async _handleBatch(t,r){try{let n=await Promise.all(t.map(this._promiseHandle.bind(this)));return r?r(null,n):n}catch(n){if(r)return r(n);throw n}}_promiseHandle(t){return new Promise(r=>{this._handle(t,(n,o)=>{r(o)})})}async _handle(t,r){if(!t||Array.isArray(t)||typeof t!=\"object\"){let u=new rl.EthereumRpcError(rl.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof t}`,{request:t});return r(u,{id:void 0,jsonrpc:\"2.0\",error:u})}if(typeof t.method!=\"string\"){let u=new rl.EthereumRpcError(rl.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof t.method}`,{request:t});return r(u,{id:t.id,jsonrpc:\"2.0\",error:u})}let n=Object.assign({},t),o={id:n.id,jsonrpc:n.jsonrpc},s=null;try{await this._processRequest(n,o)}catch(u){s=u}return s&&(delete o.result,o.error||(o.error=rl.serializeError(s))),r(s,o)}async _processRequest(t,r){let[n,o,s]=await e._runAllMiddleware(t,r,this._middleware);if(e._checkForCompletion(t,r,o),await e._runReturnHandlers(s),n)throw n}static async _runAllMiddleware(t,r,n){let o=[],s=null,u=!1;for(let f of n)if([s,u]=await e._runMiddleware(t,r,f,o),u)break;return[s,u,o.reverse()]}static _runMiddleware(t,r,n,o){return new Promise(s=>{let u=d=>{let m=d||r.error;m&&(r.error=rl.serializeError(m)),s([m,!0])},f=d=>{r.error?u(r.error):(d&&(typeof d!=\"function\"&&u(new rl.EthereumRpcError(rl.errorCodes.rpc.internal,`JsonRpcEngine: \"next\" return handlers must be functions. Received \"${typeof d}\" for request:\\n${Dre(t)}`,{request:t})),o.push(d)),s([null,!1]))};try{n(t,r,f,u)}catch(d){u(d)}})}static async _runReturnHandlers(t){for(let r of t)await new Promise((n,o)=>{r(s=>s?o(s):n())})}static _checkForCompletion(t,r,n){if(!(\"result\"in r)&&!(\"error\"in r))throw new rl.EthereumRpcError(rl.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:\\n${Dre(t)}`,{request:t});if(!n)throw new rl.EthereumRpcError(rl.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:\\n${Dre(t)}`,{request:t})}};o8.JsonRpcEngine=Hre;function Dre(e){return JSON.stringify(e,null,2)}});var Eot=X(xz=>{\"use strict\";c();Object.defineProperty(xz,\"__esModule\",{value:!0});xz.mergeMiddleware=void 0;var pBt=Lre();function mBt(e){let t=new pBt.JsonRpcEngine;return e.forEach(r=>t.push(r)),t.asMiddleware()}xz.mergeMiddleware=mBt});var zre=X(nl=>{\"use strict\";c();var hBt=nl&&nl.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),a8=nl&&nl.__exportStar||function(e,t){for(var r in e)r!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,r)&&hBt(t,e,r)};Object.defineProperty(nl,\"__esModule\",{value:!0});a8(tot(),nl);a8(rot(),nl);a8(not(),nl);a8(_re(),nl);a8(Lre(),nl);a8(Eot(),nl)});var Az=X((lXn,Ez)=>{c();var Aot,Sot,Cot,Tot,_ot,kot,Bot,Iot,Pot,Rot,Mot,Oot,Not,vz,Fre,Uot,Dot,Hot,i8,Lot,zot,Fot,jot,qot,$ot,Got,Vot,Kot,wz,Wot,Qot,Zot;(function(e){var t=typeof globalThis==\"object\"?globalThis:typeof self==\"object\"?self:typeof this==\"object\"?this:{};typeof define==\"function\"&&define.amd?define(\"tslib\",[\"exports\"],function(n){e(r(t,r(n)))}):typeof Ez==\"object\"&&typeof Ez.exports==\"object\"?e(r(t,r(Ez.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create==\"function\"?Object.defineProperty(n,\"__esModule\",{value:!0}):n.__esModule=!0),function(s,u){return n[s]=o?o(s,u):u}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(s[f]=u[f])};Aot=function(s,u){if(typeof u!=\"function\"&&u!==null)throw new TypeError(\"Class extends value \"+String(u)+\" is not a constructor or null\");t(s,u);function f(){this.constructor=s}s.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)},Sot=Object.assign||function(s){for(var u,f=1,d=arguments.length;f<d;f++){u=arguments[f];for(var m in u)Object.prototype.hasOwnProperty.call(u,m)&&(s[m]=u[m])}return s},Cot=function(s,u){var f={};for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&u.indexOf(d)<0&&(f[d]=s[d]);if(s!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var m=0,d=Object.getOwnPropertySymbols(s);m<d.length;m++)u.indexOf(d[m])<0&&Object.prototype.propertyIsEnumerable.call(s,d[m])&&(f[d[m]]=s[d[m]]);return f},Tot=function(s,u,f,d){var m=arguments.length,h=m<3?u:d===null?d=Object.getOwnPropertyDescriptor(u,f):d,y;if(typeof Reflect==\"object\"&&typeof Reflect.decorate==\"function\")h=Reflect.decorate(s,u,f,d);else for(var v=s.length-1;v>=0;v--)(y=s[v])&&(h=(m<3?y(h):m>3?y(u,f,h):y(u,f))||h);return m>3&&h&&Object.defineProperty(u,f,h),h},_ot=function(s,u){return function(f,d){u(f,d,s)}},kot=function(s,u,f,d,m,h){function y(K){if(K!==void 0&&typeof K!=\"function\")throw new TypeError(\"Function expected\");return K}for(var v=d.kind,E=v===\"getter\"?\"get\":v===\"setter\"?\"set\":\"value\",C=!u&&s?d.static?s:s.prototype:null,B=u||(C?Object.getOwnPropertyDescriptor(C,d.name):{}),R,M=!1,U=f.length-1;U>=0;U--){var O={};for(var N in d)O[N]=N===\"access\"?{}:d[N];for(var N in d.access)O.access[N]=d.access[N];O.addInitializer=function(K){if(M)throw new TypeError(\"Cannot add initializers after decoration has completed\");h.push(y(K||null))};var j=(0,f[U])(v===\"accessor\"?{get:B.get,set:B.set}:B[E],O);if(v===\"accessor\"){if(j===void 0)continue;if(j===null||typeof j!=\"object\")throw new TypeError(\"Object expected\");(R=y(j.get))&&(B.get=R),(R=y(j.set))&&(B.set=R),(R=y(j.init))&&m.unshift(R)}else(R=y(j))&&(v===\"field\"?m.unshift(R):B[E]=R)}C&&Object.defineProperty(C,d.name,B),M=!0},Bot=function(s,u,f){for(var d=arguments.length>2,m=0;m<u.length;m++)f=d?u[m].call(s,f):u[m].call(s);return d?f:void 0},Iot=function(s){return typeof s==\"symbol\"?s:\"\".concat(s)},Pot=function(s,u,f){return typeof u==\"symbol\"&&(u=u.description?\"[\".concat(u.description,\"]\"):\"\"),Object.defineProperty(s,\"name\",{configurable:!0,value:f?\"\".concat(f,\" \",u):u})},Rot=function(s,u){if(typeof Reflect==\"object\"&&typeof Reflect.metadata==\"function\")return Reflect.metadata(s,u)},Mot=function(s,u,f,d){function m(h){return h instanceof f?h:new f(function(y){y(h)})}return new(f||(f=Promise))(function(h,y){function v(B){try{C(d.next(B))}catch(R){y(R)}}function E(B){try{C(d.throw(B))}catch(R){y(R)}}function C(B){B.done?h(B.value):m(B.value).then(v,E)}C((d=d.apply(s,u||[])).next())})},Oot=function(s,u){var f={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},d,m,h,y=Object.create((typeof Iterator==\"function\"?Iterator:Object).prototype);return y.next=v(0),y.throw=v(1),y.return=v(2),typeof Symbol==\"function\"&&(y[Symbol.iterator]=function(){return this}),y;function v(C){return function(B){return E([C,B])}}function E(C){if(d)throw new TypeError(\"Generator is already executing.\");for(;y&&(y=0,C[0]&&(f=0)),f;)try{if(d=1,m&&(h=C[0]&2?m.return:C[0]?m.throw||((h=m.return)&&h.call(m),0):m.next)&&!(h=h.call(m,C[1])).done)return h;switch(m=0,h&&(C=[C[0]&2,h.value]),C[0]){case 0:case 1:h=C;break;case 4:return f.label++,{value:C[1],done:!1};case 5:f.label++,m=C[1],C=[0];continue;case 7:C=f.ops.pop(),f.trys.pop();continue;default:if(h=f.trys,!(h=h.length>0&&h[h.length-1])&&(C[0]===6||C[0]===2)){f=0;continue}if(C[0]===3&&(!h||C[1]>h[0]&&C[1]<h[3])){f.label=C[1];break}if(C[0]===6&&f.label<h[1]){f.label=h[1],h=C;break}if(h&&f.label<h[2]){f.label=h[2],f.ops.push(C);break}h[2]&&f.ops.pop(),f.trys.pop();continue}C=u.call(s,f)}catch(B){C=[6,B],m=0}finally{d=h=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},Not=function(s,u){for(var f in s)f!==\"default\"&&!Object.prototype.hasOwnProperty.call(u,f)&&wz(u,s,f)},wz=Object.create?(function(s,u,f,d){d===void 0&&(d=f);var m=Object.getOwnPropertyDescriptor(u,f);(!m||(\"get\"in m?!u.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(s,d,m)}):(function(s,u,f,d){d===void 0&&(d=f),s[d]=u[f]}),vz=function(s){var u=typeof Symbol==\"function\"&&Symbol.iterator,f=u&&s[u],d=0;if(f)return f.call(s);if(s&&typeof s.length==\"number\")return{next:function(){return s&&d>=s.length&&(s=void 0),{value:s&&s[d++],done:!s}}};throw new TypeError(u?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")},Fre=function(s,u){var f=typeof Symbol==\"function\"&&s[Symbol.iterator];if(!f)return s;var d=f.call(s),m,h=[],y;try{for(;(u===void 0||u-- >0)&&!(m=d.next()).done;)h.push(m.value)}catch(v){y={error:v}}finally{try{m&&!m.done&&(f=d.return)&&f.call(d)}finally{if(y)throw y.error}}return h},Uot=function(){for(var s=[],u=0;u<arguments.length;u++)s=s.concat(Fre(arguments[u]));return s},Dot=function(){for(var s=0,u=0,f=arguments.length;u<f;u++)s+=arguments[u].length;for(var d=Array(s),m=0,u=0;u<f;u++)for(var h=arguments[u],y=0,v=h.length;y<v;y++,m++)d[m]=h[y];return d},Hot=function(s,u,f){if(f||arguments.length===2)for(var d=0,m=u.length,h;d<m;d++)(h||!(d in u))&&(h||(h=Array.prototype.slice.call(u,0,d)),h[d]=u[d]);return s.concat(h||Array.prototype.slice.call(u))},i8=function(s){return this instanceof i8?(this.v=s,this):new i8(s)},Lot=function(s,u,f){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var d=f.apply(s,u||[]),m,h=[];return m=Object.create((typeof AsyncIterator==\"function\"?AsyncIterator:Object).prototype),v(\"next\"),v(\"throw\"),v(\"return\",y),m[Symbol.asyncIterator]=function(){return this},m;function y(U){return function(O){return Promise.resolve(O).then(U,R)}}function v(U,O){d[U]&&(m[U]=function(N){return new Promise(function(j,K){h.push([U,N,j,K])>1||E(U,N)})},O&&(m[U]=O(m[U])))}function E(U,O){try{C(d[U](O))}catch(N){M(h[0][3],N)}}function C(U){U.value instanceof i8?Promise.resolve(U.value.v).then(B,R):M(h[0][2],U)}function B(U){E(\"next\",U)}function R(U){E(\"throw\",U)}function M(U,O){U(O),h.shift(),h.length&&E(h[0][0],h[0][1])}},zot=function(s){var u,f;return u={},d(\"next\"),d(\"throw\",function(m){throw m}),d(\"return\"),u[Symbol.iterator]=function(){return this},u;function d(m,h){u[m]=s[m]?function(y){return(f=!f)?{value:i8(s[m](y)),done:!1}:h?h(y):y}:h}},Fot=function(s){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var u=s[Symbol.asyncIterator],f;return u?u.call(s):(s=typeof vz==\"function\"?vz(s):s[Symbol.iterator](),f={},d(\"next\"),d(\"throw\"),d(\"return\"),f[Symbol.asyncIterator]=function(){return this},f);function d(h){f[h]=s[h]&&function(y){return new Promise(function(v,E){y=s[h](y),m(v,E,y.done,y.value)})}}function m(h,y,v,E){Promise.resolve(E).then(function(C){h({value:C,done:v})},y)}},jot=function(s,u){return Object.defineProperty?Object.defineProperty(s,\"raw\",{value:u}):s.raw=u,s};var r=Object.create?(function(s,u){Object.defineProperty(s,\"default\",{enumerable:!0,value:u})}):function(s,u){s.default=u},n=function(s){return n=Object.getOwnPropertyNames||function(u){var f=[];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(f[f.length]=d);return f},n(s)};qot=function(s){if(s&&s.__esModule)return s;var u={};if(s!=null)for(var f=n(s),d=0;d<f.length;d++)f[d]!==\"default\"&&wz(u,s,f[d]);return r(u,s),u},$ot=function(s){return s&&s.__esModule?s:{default:s}},Got=function(s,u,f,d){if(f===\"a\"&&!d)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof u==\"function\"?s!==u||!d:!u.has(s))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return f===\"m\"?d:f===\"a\"?d.call(s):d?d.value:u.get(s)},Vot=function(s,u,f,d,m){if(d===\"m\")throw new TypeError(\"Private method is not writable\");if(d===\"a\"&&!m)throw new TypeError(\"Private accessor was defined without a setter\");if(typeof u==\"function\"?s!==u||!m:!u.has(s))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return d===\"a\"?m.call(s,f):m?m.value=f:u.set(s,f),f},Kot=function(s,u){if(u===null||typeof u!=\"object\"&&typeof u!=\"function\")throw new TypeError(\"Cannot use \\'in\\' operator on non-object\");return typeof s==\"function\"?u===s:s.has(u)},Wot=function(s,u,f){if(u!=null){if(typeof u!=\"object\"&&typeof u!=\"function\")throw new TypeError(\"Object expected.\");var d,m;if(f){if(!Symbol.asyncDispose)throw new TypeError(\"Symbol.asyncDispose is not defined.\");d=u[Symbol.asyncDispose]}if(d===void 0){if(!Symbol.dispose)throw new TypeError(\"Symbol.dispose is not defined.\");d=u[Symbol.dispose],f&&(m=d)}if(typeof d!=\"function\")throw new TypeError(\"Object not disposable.\");m&&(d=function(){try{m.call(this)}catch(h){return Promise.reject(h)}}),s.stack.push({value:u,dispose:d,async:f})}else f&&s.stack.push({async:!0});return u};var o=typeof SuppressedError==\"function\"?SuppressedError:function(s,u,f){var d=new Error(f);return d.name=\"SuppressedError\",d.error=s,d.suppressed=u,d};Qot=function(s){function u(h){s.error=s.hasError?new o(h,s.error,\"An error was suppressed during disposal.\"):h,s.hasError=!0}var f,d=0;function m(){for(;f=s.stack.pop();)try{if(!f.async&&d===1)return d=0,s.stack.push(f),Promise.resolve().then(m);if(f.dispose){var h=f.dispose.call(f.value);if(f.async)return d|=2,Promise.resolve(h).then(m,function(y){return u(y),m()})}else d|=1}catch(y){u(y)}if(d===1)return s.hasError?Promise.reject(s.error):Promise.resolve();if(s.hasError)throw s.error}return m()},Zot=function(s,u){return typeof s==\"string\"&&/^\\\\.\\\\.?\\\\//.test(s)?s.replace(/\\\\.(tsx)$|((?:\\\\.d)?)((?:\\\\.[^./]+?)?)\\\\.([cm]?)ts$/i,function(f,d,m,h,y){return d?u?\".jsx\":\".js\":m&&(!h||!y)?f:m+h+\".\"+y.toLowerCase()+\"js\"}):s},e(\"__extends\",Aot),e(\"__assign\",Sot),e(\"__rest\",Cot),e(\"__decorate\",Tot),e(\"__param\",_ot),e(\"__esDecorate\",kot),e(\"__runInitializers\",Bot),e(\"__propKey\",Iot),e(\"__setFunctionName\",Pot),e(\"__metadata\",Rot),e(\"__awaiter\",Mot),e(\"__generator\",Oot),e(\"__exportStar\",Not),e(\"__createBinding\",wz),e(\"__values\",vz),e(\"__read\",Fre),e(\"__spread\",Uot),e(\"__spreadArrays\",Dot),e(\"__spreadArray\",Hot),e(\"__await\",i8),e(\"__asyncGenerator\",Lot),e(\"__asyncDelegator\",zot),e(\"__asyncValues\",Fot),e(\"__makeTemplateObject\",jot),e(\"__importStar\",qot),e(\"__importDefault\",$ot),e(\"__classPrivateFieldGet\",Got),e(\"__classPrivateFieldSet\",Vot),e(\"__classPrivateFieldIn\",Kot),e(\"__addDisposableResource\",Wot),e(\"__disposeResources\",Qot),e(\"__rewriteRelativeImportExtension\",Zot)})});var qre=X(jre=>{\"use strict\";c();Object.defineProperty(jre,\"__esModule\",{value:!0});var Jot=Az(),yBt=(function(){function e(t){if(this._maxConcurrency=t,this._queue=[],t<=0)throw new Error(\"semaphore must be initialized to a positive value\");this._value=t}return e.prototype.acquire=function(){var t=this,r=this.isLocked(),n=new Promise(function(o){return t._queue.push(o)});return r||this._dispatch(),n},e.prototype.runExclusive=function(t){return Jot.__awaiter(this,void 0,void 0,function(){var r,n,o;return Jot.__generator(this,function(s){switch(s.label){case 0:return[4,this.acquire()];case 1:r=s.sent(),n=r[0],o=r[1],s.label=2;case 2:return s.trys.push([2,,4,5]),[4,t(n)];case 3:return[2,s.sent()];case 4:return o(),[7];case 5:return[2]}})})},e.prototype.isLocked=function(){return this._value<=0},e.prototype.release=function(){if(this._maxConcurrency>1)throw new Error(\"this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead\");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},e.prototype._dispatch=function(){var t=this,r=this._queue.shift();if(r){var n=!1;this._currentReleaser=function(){n||(n=!0,t._value++,t._dispatch())},r([this._value--,this._currentReleaser])}},e})();jre.default=yBt});var Xot=X($re=>{\"use strict\";c();Object.defineProperty($re,\"__esModule\",{value:!0});var Yot=Az(),bBt=qre(),gBt=(function(){function e(){this._semaphore=new bBt.default(1)}return e.prototype.acquire=function(){return Yot.__awaiter(this,void 0,void 0,function(){var t,r;return Yot.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return t=n.sent(),r=t[1],[2,r]}})})},e.prototype.runExclusive=function(t){return this._semaphore.runExclusive(function(){return t()})},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e})();$re.default=gBt});var eat=X(Cz=>{\"use strict\";c();Object.defineProperty(Cz,\"__esModule\",{value:!0});Cz.withTimeout=void 0;var Sz=Az();function xBt(e,t,r){var n=this;return r===void 0&&(r=new Error(\"timeout\")),{acquire:function(){return new Promise(function(o,s){return Sz.__awaiter(n,void 0,void 0,function(){var u,f,d;return Sz.__generator(this,function(m){switch(m.label){case 0:return u=!1,setTimeout(function(){u=!0,s(r)},t),[4,e.acquire()];case 1:return f=m.sent(),u?(d=Array.isArray(f)?f[1]:f,d()):o(f),[2]}})})})},runExclusive:function(o){return Sz.__awaiter(this,void 0,void 0,function(){var s,u;return Sz.__generator(this,function(f){switch(f.label){case 0:s=function(){},f.label=1;case 1:return f.trys.push([1,,7,8]),[4,this.acquire()];case 2:return u=f.sent(),Array.isArray(u)?(s=u[1],[4,o(u[0])]):[3,4];case 3:return[2,f.sent()];case 4:return s=u,[4,o()];case 5:return[2,f.sent()];case 6:return[3,8];case 7:return s(),[7];case 8:return[2]}})})},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}Cz.withTimeout=xBt});var tat=X(Eb=>{\"use strict\";c();Object.defineProperty(Eb,\"__esModule\",{value:!0});Eb.withTimeout=Eb.Semaphore=Eb.Mutex=void 0;var vBt=Xot();Object.defineProperty(Eb,\"Mutex\",{enumerable:!0,get:function(){return vBt.default}});var wBt=qre();Object.defineProperty(Eb,\"Semaphore\",{enumerable:!0,get:function(){return wBt.default}});var EBt=eat();Object.defineProperty(Eb,\"withTimeout\",{enumerable:!0,get:function(){return EBt.withTimeout}})});var nat=X((vXn,rat)=>{c();rat.exports=SBt;var ABt=Object.prototype.hasOwnProperty;function SBt(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)ABt.call(r,n)&&(e[n]=r[n])}return e}});var aat=X((EXn,oat)=>{c();var CBt=nat(),TBt=jL()();oat.exports=Tt;function Tt(e){let t=this;t.currentProvider=e}Tt.prototype.getBalance=F4(2,\"eth_getBalance\");Tt.prototype.getCode=F4(2,\"eth_getCode\");Tt.prototype.getTransactionCount=F4(2,\"eth_getTransactionCount\");Tt.prototype.getStorageAt=F4(3,\"eth_getStorageAt\");Tt.prototype.call=F4(2,\"eth_call\");Tt.prototype.protocolVersion=sr(\"eth_protocolVersion\");Tt.prototype.syncing=sr(\"eth_syncing\");Tt.prototype.coinbase=sr(\"eth_coinbase\");Tt.prototype.mining=sr(\"eth_mining\");Tt.prototype.hashrate=sr(\"eth_hashrate\");Tt.prototype.gasPrice=sr(\"eth_gasPrice\");Tt.prototype.accounts=sr(\"eth_accounts\");Tt.prototype.blockNumber=sr(\"eth_blockNumber\");Tt.prototype.getBlockTransactionCountByHash=sr(\"eth_getBlockTransactionCountByHash\");Tt.prototype.getBlockTransactionCountByNumber=sr(\"eth_getBlockTransactionCountByNumber\");Tt.prototype.getUncleCountByBlockHash=sr(\"eth_getUncleCountByBlockHash\");Tt.prototype.getUncleCountByBlockNumber=sr(\"eth_getUncleCountByBlockNumber\");Tt.prototype.sign=sr(\"eth_sign\");Tt.prototype.sendTransaction=sr(\"eth_sendTransaction\");Tt.prototype.sendRawTransaction=sr(\"eth_sendRawTransaction\");Tt.prototype.estimateGas=sr(\"eth_estimateGas\");Tt.prototype.getBlockByHash=sr(\"eth_getBlockByHash\");Tt.prototype.getBlockByNumber=sr(\"eth_getBlockByNumber\");Tt.prototype.getTransactionByHash=sr(\"eth_getTransactionByHash\");Tt.prototype.getTransactionByBlockHashAndIndex=sr(\"eth_getTransactionByBlockHashAndIndex\");Tt.prototype.getTransactionByBlockNumberAndIndex=sr(\"eth_getTransactionByBlockNumberAndIndex\");Tt.prototype.getTransactionReceipt=sr(\"eth_getTransactionReceipt\");Tt.prototype.getUncleByBlockHashAndIndex=sr(\"eth_getUncleByBlockHashAndIndex\");Tt.prototype.getUncleByBlockNumberAndIndex=sr(\"eth_getUncleByBlockNumberAndIndex\");Tt.prototype.getCompilers=sr(\"eth_getCompilers\");Tt.prototype.compileLLL=sr(\"eth_compileLLL\");Tt.prototype.compileSolidity=sr(\"eth_compileSolidity\");Tt.prototype.compileSerpent=sr(\"eth_compileSerpent\");Tt.prototype.newFilter=sr(\"eth_newFilter\");Tt.prototype.newBlockFilter=sr(\"eth_newBlockFilter\");Tt.prototype.newPendingTransactionFilter=sr(\"eth_newPendingTransactionFilter\");Tt.prototype.uninstallFilter=sr(\"eth_uninstallFilter\");Tt.prototype.getFilterChanges=sr(\"eth_getFilterChanges\");Tt.prototype.getFilterLogs=sr(\"eth_getFilterLogs\");Tt.prototype.getLogs=sr(\"eth_getLogs\");Tt.prototype.getWork=sr(\"eth_getWork\");Tt.prototype.submitWork=sr(\"eth_submitWork\");Tt.prototype.submitHashrate=sr(\"eth_submitHashrate\");Tt.prototype.sendAsync=function(e,t){this.currentProvider.sendAsync(_Bt(e),function(n,o){if(!n&&o.error&&(n=new Error(\"EthQuery - RPC Error - \"+o.error.message)),n)return t(n);t(null,o.result)})};function sr(e){return function(){let t=this;var r=[].slice.call(arguments),n=r.pop();t.sendAsync({method:e,params:r},n)}}function F4(e,t){return function(){let r=this;var n=[].slice.call(arguments),o=n.pop();n.length<e&&n.push(\"latest\"),r.sendAsync({method:t,params:n},o)}}function _Bt(e){return CBt({id:TBt(),jsonrpc:\"2.0\",params:[]},e)}});var uat=X((SXn,cat)=>{\"use strict\";c();var iat=(e,t,r,n)=>function(...o){let s=t.promiseModule;return new s((u,f)=>{t.multiArgs?o.push((...m)=>{t.errorFirst?m[0]?f(m):(m.shift(),u(m)):u(m)}):t.errorFirst?o.push((m,h)=>{m?f(m):u(h)}):o.push(u),Reflect.apply(e,this===r?n:this,o)})},sat=new WeakMap;cat.exports=(e,t)=>{t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};let r=typeof e;if(!(e!==null&&(r===\"object\"||r===\"function\")))throw new TypeError(`Expected \\\\`input\\\\` to be a \\\\`Function\\\\` or \\\\`Object\\\\`, got \\\\`${e===null?\"null\":r}\\\\``);let n=(u,f)=>{let d=sat.get(u);if(d||(d={},sat.set(u,d)),f in d)return d[f];let m=C=>typeof C==\"string\"||typeof f==\"symbol\"?f===C:C.test(f),h=Reflect.getOwnPropertyDescriptor(u,f),y=h===void 0||h.writable||h.configurable,E=(t.include?t.include.some(m):!t.exclude.some(m))&&y;return d[f]=E,E},o=new WeakMap,s=new Proxy(e,{apply(u,f,d){let m=o.get(u);if(m)return Reflect.apply(m,f,d);let h=t.excludeMain?u:iat(u,t,s,u);return o.set(u,h),Reflect.apply(h,f,d)},get(u,f){let d=u[f];if(!n(u,f)||d===Function.prototype[f])return d;let m=o.get(d);if(m)return m;if(typeof d==\"function\"){let h=iat(d,t,s,u);return o.set(d,h),h}return d}});return s}});var Tz=X((TXn,lat)=>{c();var kBt=qL().default,Gre=class extends kBt{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error(\"BaseFilter - no update method specified\")}addResults(t){this.updates=this.updates.concat(t),t.forEach(r=>this.emit(\"update\",r))}addInitialResults(t){}getChangesAndClear(){let t=this.updates;return this.updates=[],t}};lat.exports=Gre});var dat=X((kXn,fat)=>{c();var BBt=Tz(),Vre=class extends BBt{constructor(){super(),this.allResults=[]}async update(){throw new Error(\"BaseFilterWithHistory - no update method specified\")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}};fat.exports=Vre});var s8=X((IXn,hat)=>{c();hat.exports={minBlockRef:IBt,maxBlockRef:PBt,sortBlockRefs:Kre,bnToHex:RBt,blockRefIsNumber:MBt,hexToInt:_z,incrementHexInt:OBt,intToHex:mat,unsafeRandomBytes:NBt};function IBt(...e){return Kre(e)[0]}function PBt(...e){let t=Kre(e);return t[t.length-1]}function Kre(e){return e.sort((t,r)=>t===\"latest\"||r===\"earliest\"?1:r===\"latest\"||t===\"earliest\"?-1:_z(t)-_z(r))}function RBt(e){return\"0x\"+e.toString(16)}function MBt(e){return e&&![\"earliest\",\"latest\",\"pending\"].includes(e)}function _z(e){return e==null?e:Number.parseInt(e,16)}function OBt(e){if(e==null)return e;let t=_z(e);return mat(t+1)}function mat(e){if(e==null)return e;let t=e.toString(16);return t.length%2&&(t=\"0\"+t),\"0x\"+t}function NBt(e){let t=\"0x\";for(let r=0;r<e;r++)t+=pat(),t+=pat();return t}function pat(){return Math.floor(Math.random()*16).toString(16)}});var bat=X((MXn,yat)=>{c();var UBt=aat(),DBt=uat(),HBt=dat(),{bnToHex:RXn,hexToInt:kz,incrementHexInt:LBt,minBlockRef:zBt,blockRefIsNumber:FBt}=s8(),Wre=class extends HBt{constructor({provider:t,params:r}){super(),this.type=\"log\",this.ethQuery=new UBt(t),this.params=Object.assign({fromBlock:\"latest\",toBlock:\"latest\",address:void 0,topics:[]},r),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(n=>n.toLowerCase()))}async initialize({currentBlock:t}){let r=this.params.fromBlock;[\"latest\",\"pending\"].includes(r)&&(r=t),r===\"earliest\"&&(r=\"0x0\"),this.params.fromBlock=r;let n=zBt(this.params.toBlock,t),o=Object.assign({},this.params,{toBlock:n}),s=await this._fetchLogs(o);this.addInitialResults(s)}async update({oldBlock:t,newBlock:r}){let n=r,o;t?o=LBt(t):o=r;let s=Object.assign({},this.params,{fromBlock:o,toBlock:n}),f=(await this._fetchLogs(s)).filter(d=>this.matchLog(d));this.addResults(f)}async _fetchLogs(t){return await DBt(n=>this.ethQuery.getLogs(t,n))()}matchLog(t){if(kz(this.params.fromBlock)>=kz(t.blockNumber)||FBt(this.params.toBlock)&&kz(this.params.toBlock)<=kz(t.blockNumber))return!1;let r=t.address&&t.address.toLowerCase();return this.params.address&&r&&!this.params.address.includes(r)?!1:this.params.topics.every((o,s)=>{let u=t.topics[s];if(!u)return!1;u=u.toLowerCase();let f=Array.isArray(o)?o:[o];return f.includes(null)?!0:(f=f.map(h=>h.toLowerCase()),f.includes(u))})}};yat.exports=Wre});var Bz=X((NXn,xat)=>{c();xat.exports=jBt;async function jBt({provider:e,fromBlock:t,toBlock:r}){t||(t=r);let n=gat(t),s=gat(r)-n+1,u=Array(s).fill().map((d,m)=>n+m).map(qBt),f=await Promise.all(u.map(d=>GBt(e,\"eth_getBlockByNumber\",[d,!1])));return f=f.filter(d=>d!==null),f}function gat(e){return e==null?e:Number.parseInt(e,16)}function qBt(e){return e==null?e:\"0x\"+e.toString(16)}function $Bt(e,t){return new Promise((r,n)=>{e.sendAsync(t,(o,s)=>{o?n(o):s.error?n(s.error):s.result?r(s.result):n(new Error(\"Result was empty\"))})})}async function GBt(e,t,r){for(let n=0;n<3;n++)try{return await $Bt(e,{id:1,jsonrpc:\"2.0\",method:t,params:r})}catch(o){console.error(`provider.sendAsync failed: ${o.stack||o.message||o}`)}return null}});var wat=X((DXn,vat)=>{c();var VBt=Tz(),KBt=Bz(),{incrementHexInt:WBt}=s8(),Qre=class extends VBt{constructor({provider:t,params:r}){super(),this.type=\"block\",this.provider=t}async update({oldBlock:t,newBlock:r}){let n=r,o=WBt(t),u=(await KBt({provider:this.provider,fromBlock:o,toBlock:n})).map(f=>f.hash);this.addResults(u)}};vat.exports=Qre});var Aat=X((LXn,Eat)=>{c();var QBt=Tz(),ZBt=Bz(),{incrementHexInt:JBt}=s8(),Zre=class extends QBt{constructor({provider:t}){super(),this.type=\"tx\",this.provider=t}async update({oldBlock:t}){let r=t,n=JBt(t),o=await ZBt({provider:this.provider,fromBlock:n,toBlock:r}),s=[];for(let u of o)s.push(...u.transactions);this.addResults(s)}};Eat.exports=Zre});var Tat=X((FXn,Cat)=>{c();var YBt=tat().Mutex,{createAsyncMiddleware:XBt,createScaffoldMiddleware:eIt}=zre(),tIt=bat(),rIt=wat(),nIt=Aat(),{intToHex:Sat,hexToInt:Jre}=s8();Cat.exports=oIt;function oIt({blockTracker:e,provider:t}){let r=0,n={},o=new YBt,s=aIt({mutex:o}),u=eIt({eth_newFilter:s(Yre(d)),eth_newBlockFilter:s(Yre(m)),eth_newPendingTransactionFilter:s(Yre(h)),eth_uninstallFilter:s(Iz(E)),eth_getFilterChanges:s(Iz(y)),eth_getFilterLogs:s(Iz(v))}),f=async({oldBlock:U,newBlock:O})=>{if(n.length===0)return;let N=await o.acquire();try{await Promise.all(c8(n).map(async j=>{try{await j.update({oldBlock:U,newBlock:O})}catch(K){console.error(K)}}))}catch(j){console.error(j)}N()};return u.newLogFilter=d,u.newBlockFilter=m,u.newPendingTransactionFilter=h,u.uninstallFilter=E,u.getFilterChanges=y,u.getFilterLogs=v,u.destroy=()=>{R()},u;async function d(U){let O=new tIt({provider:t,params:U}),N=await C(O);return O}async function m(){let U=new rIt({provider:t}),O=await C(U);return U}async function h(){let U=new nIt({provider:t}),O=await C(U);return U}async function y(U){let O=Jre(U),N=n[O];if(!N)throw new Error(`No filter for index \"${O}\"`);return N.getChangesAndClear()}async function v(U){let O=Jre(U),N=n[O];if(!N)throw new Error(`No filter for index \"${O}\"`);let j=[];return N.type===\"log\"&&(j=N.getAllResults()),j}async function E(U){let O=Jre(U),j=!!n[O];return j&&await B(O),j}async function C(U){let O=c8(n).length,N=await e.getLatestBlock();await U.initialize({currentBlock:N}),r++,n[r]=U,U.id=r,U.idHex=Sat(r);let j=c8(n).length;return M({prevFilterCount:O,newFilterCount:j}),r}async function B(U){let O=c8(n).length;delete n[U];let N=c8(n).length;M({prevFilterCount:O,newFilterCount:N})}async function R(){let U=c8(n).length;n={},M({prevFilterCount:U,newFilterCount:0})}function M({prevFilterCount:U,newFilterCount:O}){if(U===0&&O>0){e.on(\"sync\",f);return}if(U>0&&O===0){e.removeListener(\"sync\",f);return}}}function Yre(e){return Iz(async(...t)=>{let r=await e(...t);return Sat(r.id)})}function Iz(e){return XBt(async(t,r)=>{let n=await e.apply(null,t.params);r.result=n})}function aIt({mutex:e}){return t=>async(r,n,o,s)=>{(await e.acquire())(),t(r,n,o,s)}}function c8(e,t){let r=[];for(let n in e)r.push(e[n]);return r}});var Bat=X((qXn,kat)=>{c();var iIt=qL().default,{createAsyncMiddleware:_at,createScaffoldMiddleware:sIt}=zre(),cIt=Tat(),{unsafeRandomBytes:uIt,incrementHexInt:lIt}=s8(),fIt=Bz();kat.exports=dIt;function dIt({blockTracker:e,provider:t}){let r={},n=cIt({blockTracker:e,provider:t}),o=!1,s=new iIt,u=sIt({eth_subscribe:_at(f),eth_unsubscribe:_at(d)});return u.destroy=h,{events:s,middleware:u};async function f(y,v){if(o)throw new Error(\"SubscriptionManager - attempting to use after destroying\");let E=y.params[0],C=uIt(16),B;switch(E){case\"newHeads\":B=R({subId:C});break;case\"logs\":let U=y.params[1],O=await n.newLogFilter(U);B=M({subId:C,filter:O});break;default:throw new Error(`SubscriptionManager - unsupported subscription type \"${E}\"`)}r[C]=B,v.result=C;return;function R({subId:U}){let O={type:E,destroy:async()=>{e.removeListener(\"sync\",O.update)},update:async({oldBlock:N,newBlock:j})=>{let K=j,G=lIt(N);(await fIt({provider:t,fromBlock:G,toBlock:K})).map(pIt).filter(W=>W!==null).forEach(W=>{m(U,W)})}};return e.on(\"sync\",O.update),O}function M({subId:U,filter:O}){return O.on(\"update\",j=>m(U,j)),{type:E,destroy:async()=>await n.uninstallFilter(O.idHex)}}}async function d(y,v){if(o)throw new Error(\"SubscriptionManager - attempting to use after destroying\");let E=y.params[0],C=r[E];if(!C){v.result=!1;return}delete r[E],await C.destroy(),v.result=!0}function m(y,v){s.emit(\"notification\",{jsonrpc:\"2.0\",method:\"eth_subscription\",params:{subscription:y,result:v}})}function h(){s.removeAllListeners();for(let y in r)r[y].destroy(),delete r[y];o=!0}}function pIt(e){return e==null?null:{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}});var Pat=X(Pz=>{\"use strict\";c();Object.defineProperty(Pz,\"__esModule\",{value:!0});Pz.SubscriptionManager=void 0;var mIt=Xnt(),hIt=Bat(),Iat=()=>{},Xre=class{constructor(t){let r=new mIt.PollingBlockTracker({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:o}=hIt({blockTracker:r,provider:t});this.events=n,this.subscriptionMiddleware=o}async handleRequest(t){let r={};return await this.subscriptionMiddleware(t,r,Iat,Iat),r}destroy(){this.subscriptionMiddleware.destroy()}};Pz.SubscriptionManager=Xre});var Mz=X(u8=>{\"use strict\";c();var Nat=u8&&u8.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(u8,\"__esModule\",{value:!0});u8.CoinbaseWalletProvider=void 0;var yIt=Nat($_()),bIt=nQe(),Br=V_(),Xt=Zd(),gIt=dte(),Rat=BH(),Rz=QH(),Fc=vH(),ene=Nat(Get()),j4=kH(),xIt=Zet(),vIt=Pat(),Mat=\"DefaultChainId\",Oat=\"DefaultJsonRpcUrl\",tne=class extends bIt.EventEmitter{constructor(t){var r,n;super(),this._filterPolyfill=new xIt.FilterPolyfill(this),this._subscriptionManager=new vIt.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=t.chainId,this._jsonRpcUrlFromOpts=t.jsonRpcUrl,this._overrideIsMetaMask=t.overrideIsMetaMask,this._relayProvider=t.relayProvider,this._storage=t.storage,this._relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(r=t.overrideIsCoinbaseWallet)!==null&&r!==void 0?r:!0,this.isCoinbaseBrowser=(n=t.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this.qrUrl=t.qrUrl;let o=this.getChainId(),s=(0,Xt.prepend0x)(o.toString(16));this.emit(\"connect\",{chainIdStr:s});let u=this._storage.getItem(Rat.LOCAL_STORAGE_ADDRESSES_KEY);if(u){let f=u.split(\" \");f[0]!==\"\"&&(this._addresses=f.map(d=>(0,Xt.ensureAddressString)(d)),this.emit(\"accountsChanged\",f))}this._subscriptionManager.events.on(\"notification\",f=>{this.emit(\"message\",{type:f.method,data:f.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener(\"message\",f=>{var d;if(!(f.origin!==location.origin||f.source!==window)&&f.data.type===\"walletLinkMessage\"&&f.data.data.action===\"dappChainSwitched\"){let m=f.data.data.chainId,h=(d=f.data.data.jsonRpcUrl)!==null&&d!==void 0?d:this.jsonRpcUrl;this.updateProviderInfo(h,Number(m))}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,Xt.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var t;return(t=this._storage.getItem(Oat))!==null&&t!==void 0?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem(Oat,t)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(t,r){this.isCoinbaseBrowser||(this._chainIdFromOpts=r,this._jsonRpcUrlFromOpts=t),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(t,r){this.jsonRpcUrl=t;let n=this.getChainId();this._storage.setItem(Mat,r.toString(10)),((0,Xt.ensureIntNumber)(r)!==n||!this.hasMadeFirstChainChangedEmission)&&(this.emit(\"chainChanged\",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(t,r,n,o,s,u){let d=await(await this.initializeRelay()).watchAsset(t,r,n,o,s,u?.toString()).promise;return(0,Fc.isErrorResponse)(d)?!1:!!d.result}async addEthereumChain(t,r,n,o,s,u){var f,d;if((0,Xt.ensureIntNumber)(t)===this.getChainId())return!1;let m=await this.initializeRelay(),h=m.inlineAddEthereumChain(t.toString());!this._isAuthorized()&&!h&&await m.requestEthereumAccounts().promise;let y=await m.addEthereumChain(t.toString(),r,s,n,o,u).promise;return(0,Fc.isErrorResponse)(y)?!1:(((f=y.result)===null||f===void 0?void 0:f.isApproved)===!0&&this.updateProviderInfo(r[0],t),((d=y.result)===null||d===void 0?void 0:d.isApproved)===!0)}async switchEthereumChain(t){let n=await(await this.initializeRelay()).switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;if((0,Fc.isErrorResponse)(n)){if(!n.errorCode)return;throw n.errorCode===Br.standardErrorCodes.provider.unsupportedChain?Br.standardErrors.provider.unsupportedChain():Br.standardErrors.provider.custom({message:n.errorMessage,code:n.errorCode})}let o=n.result;o.isApproved&&o.rpcUrl.length>0&&this.updateProviderInfo(o.rpcUrl,t)}setAppInfo(t,r){this.initializeRelay().then(n=>n.setAppInfo(t,r))}async enable(){var t;return(t=this.diagnostic)===null||t===void 0||t.log(j4.EVENTS.ETH_ACCOUNTS_STATE,{method:\"provider::enable\",addresses_length:this._addresses.length,sessionIdHash:this._relay?Rz.Session.hash(this._relay.session.id):void 0}),this._isAuthorized()?[...this._addresses]:await this.send(\"eth_requestAccounts\")}async close(){(await this.initializeRelay()).resetAndReload()}send(t,r){try{let n=this._send(t,r);if(n instanceof Promise)return n.catch(o=>{throw(0,Br.serializeError)(o,t)})}catch(n){throw(0,Br.serializeError)(n,t)}}_send(t,r){if(typeof t==\"string\"){let o=t,s=Array.isArray(r)?r:r!==void 0?[r]:[],u={jsonrpc:\"2.0\",id:0,method:o,params:s};return this._sendRequestAsync(u).then(f=>f.result)}if(typeof r==\"function\"){let o=t,s=r;return this._sendAsync(o,s)}if(Array.isArray(t))return t.map(s=>this._sendRequest(s));let n=t;return this._sendRequest(n)}async sendAsync(t,r){try{return this._sendAsync(t,r).catch(n=>{throw(0,Br.serializeError)(n,t)})}catch(n){return Promise.reject((0,Br.serializeError)(n,t))}}async _sendAsync(t,r){if(typeof r!=\"function\")throw new Error(\"callback is required\");if(Array.isArray(t)){let o=r;this._sendMultipleRequestsAsync(t).then(s=>o(null,s)).catch(s=>o(s,null));return}let n=r;return this._sendRequestAsync(t).then(o=>n(null,o)).catch(o=>n(o,null))}async request(t){try{return this._request(t).catch(r=>{throw(0,Br.serializeError)(r,t.method)})}catch(r){return Promise.reject((0,Br.serializeError)(r,t.method))}}async _request(t){if(!t||typeof t!=\"object\"||Array.isArray(t))throw Br.standardErrors.rpc.invalidRequest({message:\"Expected a single, non-array, object argument.\",data:t});let{method:r,params:n}=t;if(typeof r!=\"string\"||r.length===0)throw Br.standardErrors.rpc.invalidRequest({message:\"\\'args.method\\' must be a non-empty string.\",data:t});if(n!==void 0&&!Array.isArray(n)&&(typeof n!=\"object\"||n===null))throw Br.standardErrors.rpc.invalidRequest({message:\"\\'args.params\\' must be an object or array if provided.\",data:t});let o=n===void 0?[]:n,s=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:r,params:o,jsonrpc:\"2.0\",id:s})).result}async scanQRCode(t){let n=await(await this.initializeRelay()).scanQRCode((0,Xt.ensureRegExpString)(t)).promise;if((0,Fc.isErrorResponse)(n))throw(0,Br.serializeError)(n.errorMessage,\"scanQRCode\");if(typeof n.result!=\"string\")throw(0,Br.serializeError)(\"result was not a string\",\"scanQRCode\");return n.result}async genericRequest(t,r){let o=await(await this.initializeRelay()).genericRequest(t,r).promise;if((0,Fc.isErrorResponse)(o))throw(0,Br.serializeError)(o.errorMessage,\"generic\");if(typeof o.result!=\"string\")throw(0,Br.serializeError)(\"result was not a string\",\"generic\");return o.result}async connectAndSignIn(t){var r;(r=this.diagnostic)===null||r===void 0||r.log(j4.EVENTS.ETH_ACCOUNTS_STATE,{method:\"provider::connectAndSignIn\",sessionIdHash:this._relay?Rz.Session.hash(this._relay.session.id):void 0});let n;try{let s=await this.initializeRelay();if(!(s instanceof gIt.MobileRelay))throw new Error(\"connectAndSignIn is only supported on mobile\");if(n=await s.connectAndSignIn(t).promise,(0,Fc.isErrorResponse)(n))throw new Error(n.errorMessage)}catch(s){throw typeof s.message==\"string\"&&s.message.match(/(denied|rejected)/i)?Br.standardErrors.provider.userRejectedRequest(\"User denied account authorization\"):s}if(!n.result)throw new Error(\"accounts received is empty\");let{accounts:o}=n.result;return this._setAddresses(o),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),n.result}async selectProvider(t){let n=await(await this.initializeRelay()).selectProvider(t).promise;if((0,Fc.isErrorResponse)(n))throw(0,Br.serializeError)(n.errorMessage,\"selectProvider\");if(typeof n.result!=\"string\")throw(0,Br.serializeError)(\"result was not a string\",\"selectProvider\");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error(\"Subscriptions are not supported\")}unsubscribe(){throw new Error(\"Subscriptions are not supported\")}disconnect(){return!0}_sendRequest(t){let r={jsonrpc:\"2.0\",id:t.id},{method:n}=t;if(r.result=this._handleSynchronousMethods(t),r.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return r}_setAddresses(t,r){if(!Array.isArray(t))throw new Error(\"addresses is not an array\");let n=t.map(o=>(0,Xt.ensureAddressString)(o));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,this.emit(\"accountsChanged\",this._addresses),this._storage.setItem(Rat.LOCAL_STORAGE_ADDRESSES_KEY,n.join(\" \")))}_sendRequestAsync(t){return new Promise((r,n)=>{try{let o=this._handleSynchronousMethods(t);if(o!==void 0)return r({jsonrpc:\"2.0\",id:t.id,result:o});let s=this._handleAsynchronousFilterMethods(t);if(s!==void 0){s.then(f=>r(Object.assign(Object.assign({},f),{id:t.id}))).catch(f=>n(f));return}let u=this._handleSubscriptionMethods(t);if(u!==void 0){u.then(f=>r({jsonrpc:\"2.0\",id:t.id,result:f.result})).catch(f=>n(f));return}}catch(o){return n(o)}this._handleAsynchronousMethods(t).then(o=>o&&r(Object.assign(Object.assign({},o),{id:t.id}))).catch(o=>n(o))})}_sendMultipleRequestsAsync(t){return Promise.all(t.map(r=>this._sendRequestAsync(r)))}_handleSynchronousMethods(t){let{method:r}=t,n=t.params||[];switch(r){case\"eth_accounts\":return this._eth_accounts();case\"eth_coinbase\":return this._eth_coinbase();case\"eth_uninstallFilter\":return this._eth_uninstallFilter(n);case\"net_version\":return this._net_version();case\"eth_chainId\":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(t){let{method:r}=t,n=t.params||[];switch(r){case\"eth_requestAccounts\":return this._eth_requestAccounts();case\"eth_sign\":return this._eth_sign(n);case\"eth_ecRecover\":return this._eth_ecRecover(n);case\"personal_sign\":return this._personal_sign(n);case\"personal_ecRecover\":return this._personal_ecRecover(n);case\"eth_signTransaction\":return this._eth_signTransaction(n);case\"eth_sendRawTransaction\":return this._eth_sendRawTransaction(n);case\"eth_sendTransaction\":return this._eth_sendTransaction(n);case\"eth_signTypedData_v1\":return this._eth_signTypedData_v1(n);case\"eth_signTypedData_v2\":return this._throwUnsupportedMethodError();case\"eth_signTypedData_v3\":return this._eth_signTypedData_v3(n);case\"eth_signTypedData_v4\":case\"eth_signTypedData\":return this._eth_signTypedData_v4(n);case\"cbWallet_arbitrary\":return this._cbwallet_arbitrary(n);case\"wallet_addEthereumChain\":return this._wallet_addEthereumChain(n);case\"wallet_switchEthereumChain\":return this._wallet_switchEthereumChain(n);case\"wallet_watchAsset\":return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(t,this.jsonRpcUrl).catch(s=>{var u;throw(s.code===Br.standardErrorCodes.rpc.methodNotFound||s.code===Br.standardErrorCodes.rpc.methodNotSupported)&&((u=this.diagnostic)===null||u===void 0||u.log(j4.EVENTS.METHOD_NOT_IMPLEMENTED,{method:t.method,sessionIdHash:this._relay?Rz.Session.hash(this._relay.session.id):void 0})),s})}_handleAsynchronousFilterMethods(t){let{method:r}=t,n=t.params||[];switch(r){case\"eth_newFilter\":return this._eth_newFilter(n);case\"eth_newBlockFilter\":return this._eth_newBlockFilter();case\"eth_newPendingTransactionFilter\":return this._eth_newPendingTransactionFilter();case\"eth_getFilterChanges\":return this._eth_getFilterChanges(n);case\"eth_getFilterLogs\":return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(t){switch(t.method){case\"eth_subscribe\":case\"eth_unsubscribe\":return this._subscriptionManager.handleRequest(t)}}_isKnownAddress(t){try{let r=(0,Xt.ensureAddressString)(t);return this._addresses.map(o=>(0,Xt.ensureAddressString)(o)).includes(r)}catch{}return!1}_ensureKnownAddress(t){var r;if(!this._isKnownAddress(t))throw(r=this.diagnostic)===null||r===void 0||r.log(j4.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error(\"Unknown Ethereum address\")}_prepareTransactionParams(t){let r=t.from?(0,Xt.ensureAddressString)(t.from):this.selectedAddress;if(!r)throw new Error(\"Ethereum address is unavailable\");this._ensureKnownAddress(r);let n=t.to?(0,Xt.ensureAddressString)(t.to):null,o=t.value!=null?(0,Xt.ensureBN)(t.value):new yIt.default(0),s=t.data?(0,Xt.ensureBuffer)(t.data):globalThis.Buffer.alloc(0),u=t.nonce!=null?(0,Xt.ensureIntNumber)(t.nonce):null,f=t.gasPrice!=null?(0,Xt.ensureBN)(t.gasPrice):null,d=t.maxFeePerGas!=null?(0,Xt.ensureBN)(t.maxFeePerGas):null,m=t.maxPriorityFeePerGas!=null?(0,Xt.ensureBN)(t.maxPriorityFeePerGas):null,h=t.gas!=null?(0,Xt.ensureBN)(t.gas):null,y=t.chainId?(0,Xt.ensureIntNumber)(t.chainId):this.getChainId();return{fromAddress:r,toAddress:n,weiValue:o,data:s,nonce:u,gasPriceInWei:f,maxFeePerGas:d,maxPriorityFeePerGas:m,gasLimit:h,chainId:y}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw Br.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw Br.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(t,r,n,o){this._ensureKnownAddress(r);try{let u=await(await this.initializeRelay()).signEthereumMessage(t,r,n,o).promise;if((0,Fc.isErrorResponse)(u))throw new Error(u.errorMessage);return{jsonrpc:\"2.0\",id:0,result:u.result}}catch(s){throw typeof s.message==\"string\"&&s.message.match(/(denied|rejected)/i)?Br.standardErrors.provider.userRejectedRequest(\"User denied message signature\"):s}}async _ethereumAddressFromSignedMessage(t,r,n){let s=await(await this.initializeRelay()).ethereumAddressFromSignedMessage(t,r,n).promise;if((0,Fc.isErrorResponse)(s))throw new Error(s.errorMessage);return{jsonrpc:\"2.0\",id:0,result:s.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,Xt.hexStringFromIntNumber)(this.getChainId())}getChainId(){let t=this._storage.getItem(Mat);if(!t)return(0,Xt.ensureIntNumber)(this._chainIdFromOpts);let r=parseInt(t,10);return(0,Xt.ensureIntNumber)(r)}async _eth_requestAccounts(){var t;if((t=this.diagnostic)===null||t===void 0||t.log(j4.EVENTS.ETH_ACCOUNTS_STATE,{method:\"provider::_eth_requestAccounts\",addresses_length:this._addresses.length,sessionIdHash:this._relay?Rz.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:\"2.0\",id:0,result:this._addresses});let r;try{if(r=await(await this.initializeRelay()).requestEthereumAccounts().promise,(0,Fc.isErrorResponse)(r))throw new Error(r.errorMessage)}catch(n){throw typeof n.message==\"string\"&&n.message.match(/(denied|rejected)/i)?Br.standardErrors.provider.userRejectedRequest(\"User denied account authorization\"):n}if(!r.result)throw new Error(\"accounts received is empty\");return this._setAddresses(r.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:\"2.0\",id:0,result:this._addresses}}_eth_sign(t){this._requireAuthorization();let r=(0,Xt.ensureAddressString)(t[0]),n=(0,Xt.ensureBuffer)(t[1]);return this._signEthereumMessage(n,r,!1)}_eth_ecRecover(t){let r=(0,Xt.ensureBuffer)(t[0]),n=(0,Xt.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(r,n,!1)}_personal_sign(t){this._requireAuthorization();let r=(0,Xt.ensureBuffer)(t[0]),n=(0,Xt.ensureAddressString)(t[1]);return this._signEthereumMessage(r,n,!0)}_personal_ecRecover(t){let r=(0,Xt.ensureBuffer)(t[0]),n=(0,Xt.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(r,n,!0)}async _eth_signTransaction(t){this._requireAuthorization();let r=this._prepareTransactionParams(t[0]||{});try{let o=await(await this.initializeRelay()).signEthereumTransaction(r).promise;if((0,Fc.isErrorResponse)(o))throw new Error(o.errorMessage);return{jsonrpc:\"2.0\",id:0,result:o.result}}catch(n){throw typeof n.message==\"string\"&&n.message.match(/(denied|rejected)/i)?Br.standardErrors.provider.userRejectedRequest(\"User denied transaction signature\"):n}}async _eth_sendRawTransaction(t){let r=(0,Xt.ensureBuffer)(t[0]),o=await(await this.initializeRelay()).submitEthereumTransaction(r,this.getChainId()).promise;if((0,Fc.isErrorResponse)(o))throw new Error(o.errorMessage);return{jsonrpc:\"2.0\",id:0,result:o.result}}async _eth_sendTransaction(t){this._requireAuthorization();let r=this._prepareTransactionParams(t[0]||{});try{let o=await(await this.initializeRelay()).signAndSubmitEthereumTransaction(r).promise;if((0,Fc.isErrorResponse)(o))throw new Error(o.errorMessage);return{jsonrpc:\"2.0\",id:0,result:o.result}}catch(n){throw typeof n.message==\"string\"&&n.message.match(/(denied|rejected)/i)?Br.standardErrors.provider.userRejectedRequest(\"User denied transaction signature\"):n}}async _eth_signTypedData_v1(t){this._requireAuthorization();let r=(0,Xt.ensureParsedJSONObject)(t[0]),n=(0,Xt.ensureAddressString)(t[1]);this._ensureKnownAddress(n);let o=ene.default.hashForSignTypedDataLegacy({data:r}),s=JSON.stringify(r,null,2);return this._signEthereumMessage(o,n,!1,s)}async _eth_signTypedData_v3(t){this._requireAuthorization();let r=(0,Xt.ensureAddressString)(t[0]),n=(0,Xt.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(r);let o=ene.default.hashForSignTypedData_v3({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(o,r,!1,s)}async _eth_signTypedData_v4(t){this._requireAuthorization();let r=(0,Xt.ensureAddressString)(t[0]),n=(0,Xt.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(r);let o=ene.default.hashForSignTypedData_v4({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(o,r,!1,s)}async _cbwallet_arbitrary(t){let r=t[0],n=t[1];if(typeof n!=\"string\")throw new Error(\"parameter must be a string\");if(typeof r!=\"object\"||r===null)throw new Error(\"parameter must be an object\");return{jsonrpc:\"2.0\",id:0,result:await this.genericRequest(r,n)}}async _wallet_addEthereumChain(t){var r,n,o,s;let u=t[0];if(((r=u.rpcUrls)===null||r===void 0?void 0:r.length)===0)return{jsonrpc:\"2.0\",id:0,error:{code:2,message:\"please pass in at least 1 rpcUrl\"}};if(!u.chainName||u.chainName.trim()===\"\")throw Br.standardErrors.rpc.invalidParams(\"chainName is a required field\");if(!u.nativeCurrency)throw Br.standardErrors.rpc.invalidParams(\"nativeCurrency is a required field\");let f=parseInt(u.chainId,16);return await this.addEthereumChain(f,(n=u.rpcUrls)!==null&&n!==void 0?n:[],(o=u.blockExplorerUrls)!==null&&o!==void 0?o:[],u.chainName,(s=u.iconUrls)!==null&&s!==void 0?s:[],u.nativeCurrency)?{jsonrpc:\"2.0\",id:0,result:null}:{jsonrpc:\"2.0\",id:0,error:{code:2,message:\"unable to add ethereum chain\"}}}async _wallet_switchEthereumChain(t){let r=t[0];return await this.switchEthereumChain(parseInt(r.chainId,16)),{jsonrpc:\"2.0\",id:0,result:null}}async _wallet_watchAsset(t){let r=Array.isArray(t)?t[0]:t;if(!r.type)throw Br.standardErrors.rpc.invalidParams(\"Type is required\");if(r?.type!==\"ERC20\")throw Br.standardErrors.rpc.invalidParams(`Asset of type \\'${r.type}\\' is not supported`);if(!r?.options)throw Br.standardErrors.rpc.invalidParams(\"Options are required\");if(!r?.options.address)throw Br.standardErrors.rpc.invalidParams(\"Address is required\");let n=this.getChainId(),{address:o,symbol:s,image:u,decimals:f}=r.options;return{jsonrpc:\"2.0\",id:0,result:await this.watchAsset(r.type,o,s,f,u,n)}}_eth_uninstallFilter(t){let r=(0,Xt.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(r)}async _eth_newFilter(t){let r=t[0];return{jsonrpc:\"2.0\",id:0,result:await this._filterPolyfill.newFilter(r)}}async _eth_newBlockFilter(){return{jsonrpc:\"2.0\",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:\"2.0\",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(t){let r=(0,Xt.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(r)}_eth_getFilterLogs(t){let r=(0,Xt.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(r)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(t=>(t.setAccountsCallback((r,n)=>this._setAddresses(r,n)),t.setChainCallback((r,n)=>{this.updateProviderInfo(n,parseInt(r,10))}),t.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=t,t))}};u8.CoinbaseWalletProvider=tne});var Uat=X(Oz=>{\"use strict\";c();Object.defineProperty(Oz,\"__esModule\",{value:!0});Oz.RelayEventManager=void 0;var wIt=Zd(),rne=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let t=this._nextRequestId,r=(0,wIt.prepend0x)(t.toString(16));return this.callbacks.get(r)&&this.callbacks.delete(r),t}};Oz.RelayEventManager=rne});var nne=X(Uz=>{\"use strict\";c();Object.defineProperty(Uz,\"__esModule\",{value:!0});Uz.CoinbaseWalletSDK=void 0;var EIt=PWe(),AIt=RWe(),Dat=Zd(),SIt=tQe(),CIt=Mz(),TIt=dte(),_It=lte(),kIt=Uat(),BIt=ate(),IIt=ite(),Hat=EH(),Nz=class e{constructor(t){var r,n,o;this._appName=\"\",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let s=t.linkAPIUrl||AIt.LINK_API_URL;typeof t.overrideIsMetaMask>\"u\"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=t.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(r=t.overrideIsCoinbaseWallet)!==null&&r!==void 0?r:!0,this._overrideIsCoinbaseBrowser=(n=t.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this._diagnosticLogger=t.diagnosticLogger,this._reloadOnDisconnect=(o=t.reloadOnDisconnect)!==null&&o!==void 0?o:!0;let u=new URL(s),f=`${u.protocol}//${u.host}`;if(this._storage=new SIt.ScopedLocalStorage(`-walletlink:${f}`),this._storage.setItem(\"version\",e.VERSION),this.walletExtension||this.coinbaseBrowser)return;this._relayEventManager=new kIt.RelayEventManager;let d=(0,Dat.isMobileWeb)(),m=t.uiConstructor||(y=>d?new _It.MobileRelayUI(y):new BIt.WalletLinkRelayUI(y)),h={linkAPIUrl:s,version:Hat.LIB_VERSION,darkMode:!!t.darkMode,headlessMode:!!t.headlessMode,uiConstructor:m,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect,enableMobileWalletLink:t.enableMobileWalletLink};this._relay=d?new TIt.MobileRelay(h):new IIt.WalletLinkRelay(h),this.setAppInfo(t.appName,t.appLogoUrl),!t.headlessMode&&this._relay.attachUI()}makeWeb3Provider(t=\"\",r=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(t,r),this._reloadOnDisconnect===!1&&typeof n.disableReloadOnDisconnect==\"function\"&&n.disableReloadOnDisconnect(),n;let o=this.coinbaseBrowser;if(o)return o;let s=this._relay;if(!s||!this._relayEventManager||!this._storage)throw new Error(\"Relay not initialized, should never happen\");return t||s.setConnectDisabled(!0),new CIt.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(s),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:t,chainId:r,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(t,r){var n;this._appName=t||\"DApp\",this._appLogoUrl=r||(0,Dat.getFavicon)();let o=this.walletExtension;o?this.isCipherProvider(o)||o.setAppInfo(this._appName,this._appLogoUrl):(n=this._relay)===null||n===void 0||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var t;let r=this===null||this===void 0?void 0:this.walletExtension;r?r.close():(t=this._relay)===null||t===void 0||t.resetAndReload()}getQrUrl(){var t,r;return(r=(t=this._relay)===null||t===void 0?void 0:t.getQRCodeUrl())!==null&&r!==void 0?r:null}getCoinbaseWalletLogo(t,r=240){return(0,EIt.walletLogo)(t,r)}get walletExtension(){var t;return(t=window.coinbaseWalletExtension)!==null&&t!==void 0?t:window.walletLinkExtension}get coinbaseBrowser(){var t,r;try{let n=(t=window.ethereum)!==null&&t!==void 0?t:(r=window.top)===null||r===void 0?void 0:r.ethereum;return n&&\"isCoinbaseBrowser\"in n&&n.isCoinbaseBrowser?n:void 0}catch{return}}isCipherProvider(t){return typeof t.isCipher==\"boolean\"&&t.isCipher}};Uz.CoinbaseWalletSDK=Nz;Nz.VERSION=Hat.LIB_VERSION});var zat=X(i2=>{\"use strict\";c();Object.defineProperty(i2,\"__esModule\",{value:!0});i2.CoinbaseWalletProvider=i2.CoinbaseWalletSDK=void 0;var one=nne(),Lat=Mz(),PIt=nne();Object.defineProperty(i2,\"CoinbaseWalletSDK\",{enumerable:!0,get:function(){return PIt.CoinbaseWalletSDK}});var RIt=Mz();Object.defineProperty(i2,\"CoinbaseWalletProvider\",{enumerable:!0,get:function(){return RIt.CoinbaseWalletProvider}});i2.default=one.CoinbaseWalletSDK;typeof window<\"u\"&&(window.CoinbaseWalletSDK=one.CoinbaseWalletSDK,window.CoinbaseWalletProvider=Lat.CoinbaseWalletProvider,window.WalletLink=one.CoinbaseWalletSDK,window.WalletLinkProvider=Lat.CoinbaseWalletProvider)});c();var jat=Sr(fle(),1);c();var Ya=Sr(oo(),1);Bo();jR();c();c();var GC=Sr(oo(),1);c();c();c();c();c();c();c();var o6=\"2.22.1\";var _Oe=()=>`@wagmi/core@${o6}`;var kOe=function(e,t,r,n){if(r===\"a\"&&!n)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof t==\"function\"?e!==t||!n:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return r===\"m\"?n:r===\"a\"?n.call(e):n?n.value:t.get(e)},qR,BOe,es=class e extends Error{get docsBaseUrl(){return\"https://wagmi.sh/core\"}get version(){return _Oe()}constructor(t,r={}){super(),qR.add(this),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WagmiCoreError\"});let n=r.cause instanceof e?r.cause.details:r.cause?.message?r.cause.message:r.details,o=r.cause instanceof e&&r.cause.docsPath||r.docsPath;this.message=[t||\"An error occurred.\",\"\",...r.metaMessages?[...r.metaMessages,\"\"]:[],...o?[`Docs: ${this.docsBaseUrl}${o}.html${r.docsSlug?`#${r.docsSlug}`:\"\"}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join(`\\n`),r.cause&&(this.cause=r.cause),this.details=n,this.docsPath=o,this.metaMessages=r.metaMessages,this.shortMessage=t}walk(t){return kOe(this,qR,\"m\",BOe).call(this,this,t)}};qR=new WeakSet,BOe=function e(t,r){return r?.(t)?t:t.cause?kOe(this,qR,\"m\",e).call(this,t.cause,r):t};var zs=class extends es{constructor(){super(\"Chain not configured.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ChainNotConfiguredError\"})}},a6=class extends es{constructor(){super(\"Connector already connected.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorAlreadyConnectedError\"})}},FC=class extends es{constructor(){super(\"Connector not connected.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorNotConnectedError\"})}};var i6=class extends es{constructor({address:t,connector:r}){super(`Account \"${t}\" not found for connector \"${r.name}\".`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorAccountNotFoundError\"})}},s6=class extends es{constructor({connectionChainId:t,connectorChainId:r}){super(`The current chain of the connector (id: ${r}) does not match the connection\\'s chain (id: ${t}).`,{metaMessages:[`Current Chain ID:  ${r}`,`Expected Chain ID: ${t}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorChainMismatchError\"})}},c6=class extends es{constructor({connector:t}){super(`Connector \"${t.name}\" unavailable while reconnecting.`,{details:[\"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.\",\"All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.\",\"This error commonly occurs for connectors that asynchronously inject after reconnection has already started.\"].join(\" \")}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorUnavailableReconnectingError\"})}};async function IOe(e,t){let r;if(typeof t.connector==\"function\"?r=e._internal.connectors.setup(t.connector):r=t.connector,r.uid===e.state.current)throw new a6;try{e.setState(u=>({...u,status:\"connecting\"})),r.emitter.emit(\"message\",{type:\"connecting\"});let{connector:n,...o}=t,s=await r.connect(o);return r.emitter.off(\"connect\",e._internal.events.connect),r.emitter.on(\"change\",e._internal.events.change),r.emitter.on(\"disconnect\",e._internal.events.disconnect),await e.storage?.setItem(\"recentConnectorId\",r.id),e.setState(u=>({...u,connections:new Map(u.connections).set(r.uid,{accounts:o.withCapabilities?s.accounts.map(f=>typeof f==\"object\"?f.address:f):s.accounts,chainId:s.chainId,connector:r}),current:r.uid,status:\"connected\"})),{accounts:o.withCapabilities?s.accounts.map(u=>typeof u==\"object\"?u:{address:u,capabilities:{}}):s.accounts,chainId:s.chainId}}catch(n){throw e.setState(o=>({...o,status:o.current?\"connected\":\"disconnected\"})),n}}c();Bo();W0();async function POe(e,t={}){let{assertChainId:r=!0}=t,n;if(t.connector){let{connector:h}=t;if(e.state.status===\"reconnecting\"&&!h.getAccounts&&!h.getChainId)throw new c6({connector:h});let[y,v]=await Promise.all([h.getAccounts().catch(E=>{if(t.account===null)return[];throw E}),h.getChainId()]);n={accounts:y,chainId:v,connector:h}}else n=e.state.connections.get(e.state.current);if(!n)throw new FC;let o=t.chainId??n.chainId,s=await n.connector.getChainId();if(r&&s!==o)throw new s6({connectionChainId:o,connectorChainId:s});let u=n.connector;if(u.getClient)return u.getClient({chainId:o});let f=Xe(t.account??n.accounts[0]);if(f&&(f.address=hn(f.address)),t.account&&!n.accounts.some(h=>h.toLowerCase()===f.address.toLowerCase()))throw new i6({address:f.address,connector:u});let d=e.chains.find(h=>h.id===o),m=await n.connector.getProvider({chainId:o});return vm({account:f,chain:d,name:\"Connector Client\",transport:h=>lC(m)({...h,retryCount:0})})}c();async function ROe(e,t={}){let r;if(t.connector)r=t.connector;else{let{connections:o,current:s}=e.state;r=o.get(s)?.connector}let n=e.state.connections;r&&(await r.disconnect(),r.emitter.off(\"change\",e._internal.events.change),r.emitter.off(\"disconnect\",e._internal.events.disconnect),r.emitter.on(\"connect\",e._internal.events.connect),n.delete(r.uid)),e.setState(o=>{if(n.size===0)return{...o,connections:new Map,current:null,status:\"disconnected\"};let s=n.values().next().value;return{...o,connections:new Map(n),current:s.connector.uid}});{let o=e.state.current;if(!o)return;let s=e.state.connections.get(o)?.connector;if(!s)return;await e.storage?.setItem(\"recentConnectorId\",s.id)}}c();function jC(e){let t=e.state.current,r=e.state.connections.get(t),n=r?.accounts,o=n?.[0],s=e.chains.find(f=>f.id===r?.chainId),u=e.state.status;switch(u){case\"connected\":return{address:o,addresses:n,chain:s,chainId:r?.chainId,connector:r?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:u};case\"reconnecting\":return{address:o,addresses:n,chain:s,chainId:r?.chainId,connector:r?.connector,isConnected:!!o,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:u};case\"connecting\":return{address:o,addresses:n,chain:s,chainId:r?.chainId,connector:r?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:u};case\"disconnected\":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:u}}}c();function $R(e){return e.state.chainId}c();c();function Fs(e,t){if(e===t)return!0;if(e&&t&&typeof e==\"object\"&&typeof t==\"object\"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)&&Array.isArray(t)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Fs(e[n],t[n]))return!1;return!0}if(typeof e.valueOf==\"function\"&&e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(typeof e.toString==\"function\"&&e.toString!==Object.prototype.toString)return e.toString()===t.toString();let o=Object.keys(e);if(r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.hasOwn(t,o[n]))return!1;for(n=r;n--!==0;){let s=o[n];if(s&&!Fs(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}var mW=[];function GR(e){let t=e.chains;return Fs(mW,t)?mW:(mW=t,t)}c();var VR=[];function u6(e){let t=[...e.state.connections.values()];return e.state.status===\"reconnecting\"||Fs(VR,t)?VR:(VR=t,t)}c();var KR=[];function WR(e){let t=e.connectors;return KR.length===t.length&&KR.every((r,n)=>r===t[n])?KR:(KR=t,t)}c();Bo();async function MOe(e,t={}){return(await POe(e,t)).extend(bK)}c();var hW=!1;async function OOe(e,t={}){if(hW)return[];hW=!0,e.setState(m=>({...m,status:m.current?\"reconnecting\":\"connecting\"}));let r=[];if(t.connectors?.length)for(let m of t.connectors){let h;typeof m==\"function\"?h=e._internal.connectors.setup(m):h=m,r.push(h)}else r.push(...e.connectors);let n;try{n=await e.storage?.getItem(\"recentConnectorId\")}catch{}let o={};for(let[,m]of e.state.connections)o[m.connector.id]=1;n&&(o[n]=0);let s=Object.keys(o).length>0?[...r].sort((m,h)=>(o[m.id]??10)-(o[h.id]??10)):r,u=!1,f=[],d=[];for(let m of s){let h=await m.getProvider().catch(()=>{});if(!h||d.some(E=>E===h)||!await m.isAuthorized())continue;let v=await m.connect({isReconnecting:!0}).catch(()=>null);v&&(m.emitter.off(\"connect\",e._internal.events.connect),m.emitter.on(\"change\",e._internal.events.change),m.emitter.on(\"disconnect\",e._internal.events.disconnect),e.setState(E=>{let C=new Map(u?E.connections:new Map).set(m.uid,{accounts:v.accounts,chainId:v.chainId,connector:m});return{...E,current:u?E.current:m.uid,connections:C}}),f.push({accounts:v.accounts,chainId:v.chainId,connector:m}),d.push(h),u=!0)}return(e.state.status===\"reconnecting\"||e.state.status===\"connecting\")&&(u?e.setState(m=>({...m,status:\"connected\"})):e.setState(m=>({...m,connections:new Map,current:null,status:\"disconnected\"}))),hW=!1,f}c();c();var wd=class extends es{constructor(){super(\"Provider not found.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderNotFoundError\"})}},qC=class extends es{constructor({connector:t}){super(`\"${t.name}\" does not support programmatic chain switching.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SwitchChainNotSupportedError\"})}};async function NOe(e,t){let{addEthereumChainParameter:r,chainId:n}=t,o=e.state.connections.get(t.connector?.uid??e.state.current);if(o){let u=o.connector;if(!u.switchChain)throw new qC({connector:u});return await u.switchChain({addEthereumChainParameter:r,chainId:n})}let s=e.chains.find(u=>u.id===n);if(!s)throw new zs;return e.setState(u=>({...u,chainId:n})),s}c();function yW(e,t){let{onChange:r}=t;return e.subscribe(()=>jC(e),r,{equalityFn(n,o){let{connector:s,...u}=n,{connector:f,...d}=o;return Fs(u,d)&&s?.id===f?.id&&s?.uid===f?.uid}})}c();function bW(e,t){let{onChange:r}=t;return e.subscribe(n=>n.chainId,r)}c();function gW(e,t){let{onChange:r}=t;return e.subscribe(()=>u6(e),r,{equalityFn:Fs})}c();function xW(e,t){let{onChange:r}=t;return e._internal.connectors.subscribe((n,o)=>{r(Object.values(n),o)})}c();Bo();Sm.type=\"injected\";function Sm(e={}){let{shimDisconnect:t=!0,unstable_shimAsyncInject:r}=e;function n(){let d=e.target;if(typeof d==\"function\"){let m=d();if(m)return m}return typeof d==\"object\"?d:typeof d==\"string\"?{...ght[d]??{id:d,name:`${d[0].toUpperCase()}${d.slice(1)}`,provider:`is${d[0].toUpperCase()}${d.slice(1)}`}}:{id:\"injected\",name:\"Injected\",provider(m){return m?.ethereum}}}let o,s,u,f;return d=>({get icon(){return n().icon},get id(){return n().id},get name(){return n().name},get supportsSimulation(){return!0},type:Sm.type,async setup(){let m=await this.getProvider();m?.on&&e.target&&(u||(u=this.onConnect.bind(this),m.on(\"connect\",u)),o||(o=this.onAccountsChanged.bind(this),m.on(\"accountsChanged\",o)))},async connect({chainId:m,isReconnecting:h,withCapabilities:y}={}){let v=await this.getProvider();if(!v)throw new wd;let E=[];if(h)E=await this.getAccounts().catch(()=>[]);else if(t)try{E=(await v.request({method:\"wallet_requestPermissions\",params:[{eth_accounts:{}}]}))[0]?.caveats?.[0]?.value?.map(B=>hn(B)),E.length>0&&(E=await this.getAccounts())}catch(C){let B=C;if(B.code===Fn.code)throw new Fn(B);if(B.code===Al.code)throw B}try{!E?.length&&!h&&(E=(await v.request({method:\"eth_requestAccounts\"})).map(R=>hn(R))),u&&(v.removeListener(\"connect\",u),u=void 0),o||(o=this.onAccountsChanged.bind(this),v.on(\"accountsChanged\",o)),s||(s=this.onChainChanged.bind(this),v.on(\"chainChanged\",s)),f||(f=this.onDisconnect.bind(this),v.on(\"disconnect\",f));let C=await this.getChainId();return m&&C!==m&&(C=(await this.switchChain({chainId:m}).catch(R=>{if(R.code===Fn.code)throw R;return{id:C}}))?.id??C),t&&await d.storage?.removeItem(`${this.id}.disconnected`),e.target||await d.storage?.setItem(\"injected.connected\",!0),{accounts:y?E.map(B=>({address:B,capabilities:{}})):E,chainId:C}}catch(C){let B=C;throw B.code===Fn.code?new Fn(B):B.code===Al.code?new Al(B):B}},async disconnect(){let m=await this.getProvider();if(!m)throw new wd;s&&(m.removeListener(\"chainChanged\",s),s=void 0),f&&(m.removeListener(\"disconnect\",f),f=void 0),u||(u=this.onConnect.bind(this),m.on(\"connect\",u));try{await GS(()=>m.request({method:\"wallet_revokePermissions\",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await d.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await d.storage?.removeItem(\"injected.connected\")},async getAccounts(){let m=await this.getProvider();if(!m)throw new wd;return(await m.request({method:\"eth_accounts\"})).map(y=>hn(y))},async getChainId(){let m=await this.getProvider();if(!m)throw new wd;let h=await m.request({method:\"eth_chainId\"});return Number(h)},async getProvider(){if(typeof window>\"u\")return;let m,h=n();return typeof h.provider==\"function\"?m=h.provider(window):typeof h.provider==\"string\"?m=QR(window,h.provider):m=h.provider,m&&!m.removeListener&&(\"off\"in m&&typeof m.off==\"function\"?m.removeListener=m.off:m.removeListener=()=>{}),m},async isAuthorized(){try{if(t&&await d.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await d.storage?.getItem(\"injected.connected\"))return!1;if(!await this.getProvider()){if(r!==void 0&&r!==!1){let v=async()=>(typeof window<\"u\"&&window.removeEventListener(\"ethereum#initialized\",v),!!await this.getProvider()),E=typeof r==\"number\"?r:1e3;if(await Promise.race([...typeof window<\"u\"?[new Promise(B=>window.addEventListener(\"ethereum#initialized\",()=>B(v()),{once:!0}))]:[],new Promise(B=>setTimeout(()=>B(v()),E))]))return!0}throw new wd}return!!(await hd(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:m,chainId:h}){let y=await this.getProvider();if(!y)throw new wd;let v=d.chains.find(C=>C.id===h);if(!v)throw new Vi(new zs);let E=new Promise(C=>{let B=(R=>{\"chainId\"in R&&R.chainId===h&&(d.emitter.off(\"change\",B),C())});d.emitter.on(\"change\",B)});try{return await Promise.all([y.request({method:\"wallet_switchEthereumChain\",params:[{chainId:le(h)}]}).then(async()=>{await this.getChainId()===h&&d.emitter.emit(\"change\",{chainId:h})}),E]),v}catch(C){let B=C;if(B.code===4902||B?.data?.originalError?.code===4902)try{let{default:R,...M}=v.blockExplorers??{},U;m?.blockExplorerUrls?U=m.blockExplorerUrls:R&&(U=[R.url,...Object.values(M).map(j=>j.url)]);let O;m?.rpcUrls?.length?O=m.rpcUrls:O=[v.rpcUrls.default?.http[0]??\"\"];let N={blockExplorerUrls:U,chainId:le(h),chainName:m?.chainName??v.name,iconUrls:m?.iconUrls,nativeCurrency:m?.nativeCurrency??v.nativeCurrency,rpcUrls:O};return await Promise.all([y.request({method:\"wallet_addEthereumChain\",params:[N]}).then(async()=>{if(await this.getChainId()===h)d.emitter.emit(\"change\",{chainId:h});else throw new Fn(new Error(\"User rejected switch after adding network.\"))}),E]),v}catch(R){throw new Fn(R)}throw B.code===Fn.code?new Fn(B):new Vi(B)}},async onAccountsChanged(m){if(m.length===0)this.onDisconnect();else if(d.emitter.listenerCount(\"connect\")){let h=(await this.getChainId()).toString();this.onConnect({chainId:h}),t&&await d.storage?.removeItem(`${this.id}.disconnected`)}else d.emitter.emit(\"change\",{accounts:m.map(h=>hn(h))})},onChainChanged(m){let h=Number(m);d.emitter.emit(\"change\",{chainId:h})},async onConnect(m){let h=await this.getAccounts();if(h.length===0)return;let y=Number(m.chainId);d.emitter.emit(\"connect\",{accounts:h,chainId:y});let v=await this.getProvider();v&&(u&&(v.removeListener(\"connect\",u),u=void 0),o||(o=this.onAccountsChanged.bind(this),v.on(\"accountsChanged\",o)),s||(s=this.onChainChanged.bind(this),v.on(\"chainChanged\",s)),f||(f=this.onDisconnect.bind(this),v.on(\"disconnect\",f)))},async onDisconnect(m){let h=await this.getProvider();m&&m.code===1013&&h&&(await this.getAccounts()).length||(d.emitter.emit(\"disconnect\"),h&&(s&&(h.removeListener(\"chainChanged\",s),s=void 0),f&&(h.removeListener(\"disconnect\",f),f=void 0),u||(u=this.onConnect.bind(this),h.on(\"connect\",u))))}})}var ght={coinbaseWallet:{id:\"coinbaseWallet\",name:\"Coinbase Wallet\",provider(e){return e?.coinbaseWalletExtension?e.coinbaseWalletExtension:QR(e,\"isCoinbaseWallet\")}},metaMask:{id:\"metaMask\",name:\"MetaMask\",provider(e){return QR(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;let r=[\"isApexWallet\",\"isAvalanche\",\"isBitKeep\",\"isBlockWallet\",\"isKuCoinWallet\",\"isMathWallet\",\"isOkxWallet\",\"isOKExWallet\",\"isOneInchIOSWallet\",\"isOneInchAndroidWallet\",\"isOpera\",\"isPhantom\",\"isPortal\",\"isRabby\",\"isTokenPocket\",\"isTokenary\",\"isUniswapWallet\",\"isZerion\"];for(let n of r)if(t[n])return!1;return!0})}},phantom:{id:\"phantom\",name:\"Phantom\",provider(e){return e?.phantom?.ethereum?e.phantom?.ethereum:QR(e,\"isPhantom\")}}};function QR(e,t){function r(o){return typeof t==\"function\"?t(o):typeof t==\"string\"?o[t]:!0}let n=e.ethereum;if(n?.providers)return n.providers.find(o=>r(o));if(n&&r(n))return n}c();LOe();Bo();c();var xht=e=>(t,r,n)=>{let o=n.subscribe;return n.subscribe=(u,f,d)=>{let m=u;if(f){let h=d?.equalityFn||Object.is,y=u(n.getState());m=v=>{let E=u(v);if(!h(y,E)){let C=y;f(y=E,C)}},d?.fireImmediately&&f(y,y)}return o(m)},e(t,r,n)},zOe=xht;function vht(e,t){let r;try{r=e()}catch{return}return{getItem:o=>{var s;let u=d=>d===null?null:JSON.parse(d,t?.reviver),f=(s=r.getItem(o))!=null?s:null;return f instanceof Promise?f.then(u):u(f)},setItem:(o,s)=>r.setItem(o,JSON.stringify(s,t?.replacer)),removeItem:o=>r.removeItem(o)}}var wW=e=>t=>{try{let r=e(t);return r instanceof Promise?r:{then(n){return wW(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return wW(n)(r)}}}},wht=(e,t)=>(r,n,o)=>{let s={storage:vht(()=>localStorage),partialize:B=>B,version:0,merge:(B,R)=>({...R,...B}),...t},u=!1,f=new Set,d=new Set,m=s.storage;if(!m)return e((...B)=>{console.warn(`[zustand persist middleware] Unable to update item \\'${s.name}\\', the given storage is currently unavailable.`),r(...B)},n,o);let h=()=>{let B=s.partialize({...n()});return m.setItem(s.name,{state:B,version:s.version})},y=o.setState;o.setState=(B,R)=>{y(B,R),h()};let v=e((...B)=>{r(...B),h()},n,o);o.getInitialState=()=>v;let E,C=()=>{var B,R;if(!m)return;u=!1,f.forEach(U=>{var O;return U((O=n())!=null?O:v)});let M=((R=s.onRehydrateStorage)==null?void 0:R.call(s,(B=n())!=null?B:v))||void 0;return wW(m.getItem.bind(m))(s.name).then(U=>{if(U)if(typeof U.version==\"number\"&&U.version!==s.version){if(s.migrate)return[!0,s.migrate(U.state,U.version)];console.error(\"State loaded from storage couldn\\'t be migrated since no migrate function was provided\")}else return[!1,U.state];return[!1,void 0]}).then(U=>{var O;let[N,j]=U;if(E=s.merge(j,(O=n())!=null?O:v),r(E,!0),N)return h()}).then(()=>{M?.(E,void 0),E=n(),u=!0,d.forEach(U=>U(E))}).catch(U=>{M?.(void 0,U)})};return o.persist={setOptions:B=>{s={...s,...B},B.storage&&(m=B.storage)},clearStorage:()=>{m?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>C(),hasHydrated:()=>u,onHydrate:B=>(f.add(B),()=>{f.delete(B)}),onFinishHydration:B=>(d.add(B),()=>{d.delete(B)})},s.skipHydration||C(),E||v},FOe=wht;c();var jOe=e=>{let t,r=new Set,n=(m,h)=>{let y=typeof m==\"function\"?m(t):m;if(!Object.is(y,t)){let v=t;t=h??(typeof y!=\"object\"||y===null)?y:Object.assign({},t,y),r.forEach(E=>E(t,v))}},o=()=>t,f={setState:n,getState:o,getInitialState:()=>d,subscribe:m=>(r.add(m),()=>r.delete(m))},d=t=e(n,o,f);return f},ZR=e=>e?jOe(e):jOe;c();YR();var AW=class{constructor(t){Object.defineProperty(this,\"uid\",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,\"_emitter\",{enumerable:!0,configurable:!0,writable:!0,value:new l6.default})}on(t,r){this._emitter.on(t,r)}once(t,r){this._emitter.once(t,r)}off(t,r){this._emitter.off(t,r)}emit(t,...r){let n=r[0];this._emitter.emit(t,{uid:this.uid,...n})}listenerCount(t){return this._emitter.listenerCount(t)}};function GOe(e){return new AW(e)}c();c();function SW(e,t){return JSON.parse(e,(r,n)=>{let o=n;return o?.__type===\"bigint\"&&(o=BigInt(o.value)),o?.__type===\"Map\"&&(o=new Map(o.value)),t?.(r,o)??o})}c();function VOe(e,t){return e.slice(0,t).join(\".\")||\".\"}function KOe(e,t){let{length:r}=e;for(let n=0;n<r;++n)if(e[n]===t)return n+1;return 0}function Sht(e,t){let r=typeof e==\"function\",n=typeof t==\"function\",o=[],s=[];return function(f,d){if(typeof d==\"object\")if(o.length){let m=KOe(o,this);m===0?o[o.length]=this:(o.splice(m),s.splice(m)),s[s.length]=f;let h=KOe(o,d);if(h!==0)return n?t.call(this,f,d,VOe(s,h)):`[ref=${VOe(s,h)}]`}else o[0]=d,s[0]=f;return r?e.call(this,f,d):d}}function CW(e,t,r,n){return JSON.stringify(e,Sht((o,s)=>{let u=s;return typeof u==\"bigint\"&&(u={__type:\"bigint\",value:s.toString()}),u instanceof Map&&(u={__type:\"Map\",value:Array.from(s.entries())}),t?.(o,u)??u},n),r??void 0)}function TW(e){let{deserialize:t=SW,key:r=\"wagmi\",serialize:n=CW,storage:o=_W}=e;function s(u){return u instanceof Promise?u.then(f=>f).catch(()=>null):u}return{...o,key:r,async getItem(u,f){let d=o.getItem(`${r}.${u}`),m=await s(d);return m?t(m)??null:f??null},async setItem(u,f){let d=`${r}.${u}`;f===null?await s(o.removeItem(d)):await s(o.setItem(d,n(f)))},async removeItem(u){await s(o.removeItem(`${r}.${u}`))}}}var _W={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function WOe(){let e=typeof window<\"u\"&&window.localStorage?window.localStorage:_W;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,r){try{e.setItem(t,r)}catch{}}}}c();var XR=256,eM;function QOe(e=11){if(!eM||XR+e>256*2){eM=\"\",XR=0;for(let t=0;t<256;t++)eM+=(256+Math.random()*256|0).toString(16).substring(1)}return eM.substring(XR,XR+++e)}function tM(e){let{multiInjectedProviderDiscovery:t=!0,storage:r=TW({storage:WOe()}),syncConnectedChain:n=!0,ssr:o=!1,...s}=e,u=typeof window<\"u\"&&t?vW():void 0,f=ZR(()=>s.chains),d=ZR(()=>{let j=[],K=new Set;for(let G of s.connectors??[]){let J=m(G);if(j.push(J),!o&&J.rdns){let Y=typeof J.rdns==\"string\"?[J.rdns]:J.rdns;for(let W of Y)K.add(W)}}if(!o&&u){let G=u.getProviders();for(let J of G)K.has(J.info.rdns)||j.push(m(h(J)))}return j});function m(j){let K=GOe(QOe()),G={...j({emitter:K,chains:f.getState(),storage:r,transports:s.transports}),emitter:K,uid:K.uid};return K.on(\"connect\",O),G.setup?.(),G}function h(j){let{info:K}=j,G=j.provider;return Sm({target:{...K,id:K.rdns,provider:G}})}let y=new Map;function v(j={}){let K=j.chainId??R.getState().chainId,G=f.getState().find(Y=>Y.id===K);if(j.chainId&&!G)throw new zs;{let Y=y.get(R.getState().chainId);if(Y&&!G)return Y;if(!G)throw new zs}{let Y=y.get(K);if(Y)return Y}let J;if(s.client)J=s.client({chain:G});else{let Y=G.id,W=f.getState().map(H=>H.id),ie={},re=Object.entries(s);for(let[H,A]of re)if(!(H===\"chains\"||H===\"client\"||H===\"connectors\"||H===\"transports\"))if(typeof A==\"object\")if(Y in A)ie[H]=A[Y];else{if(W.some(P=>P in A))continue;ie[H]=A}else ie[H]=A;J=vm({...ie,chain:G,batch:ie.batch??{multicall:!0},transport:H=>s.transports[Y]({...H,connectors:d})})}return y.set(K,J),J}function E(){return{chainId:f.getState()[0].id,connections:new Map,current:null,status:\"disconnected\"}}let C,B=\"0.0.0-canary-\";o6.startsWith(B)?C=Number.parseInt(o6.replace(B,\"\"),10):C=Number.parseInt(o6.split(\".\")[0]??\"0\",10);let R=ZR(zOe(r?FOe(E,{migrate(j,K){if(K===C)return j;let G=E(),J=M(j,G.chainId);return{...G,chainId:J}},name:\"store\",partialize(j){return{connections:{__type:\"Map\",value:Array.from(j.connections.entries()).map(([K,G])=>{let{id:J,name:Y,type:W,uid:ie}=G.connector;return[K,{...G,connector:{id:J,name:Y,type:W,uid:ie}}]})},chainId:j.chainId,current:j.current}},merge(j,K){typeof j==\"object\"&&j&&\"status\"in j&&delete j.status;let G=M(j,K.chainId);return{...K,...j,chainId:G}},skipHydration:o,storage:r,version:C}):E));R.setState(E());function M(j,K){return j&&typeof j==\"object\"&&\"chainId\"in j&&typeof j.chainId==\"number\"&&f.getState().some(G=>G.id===j.chainId)?j.chainId:K}n&&R.subscribe(({connections:j,current:K})=>K?j.get(K)?.chainId:void 0,j=>{if(f.getState().some(G=>G.id===j))return R.setState(G=>({...G,chainId:j??G.chainId}))}),u?.subscribe(j=>{let K=new Set,G=new Set;for(let Y of d.getState())if(K.add(Y.id),Y.rdns){let W=typeof Y.rdns==\"string\"?[Y.rdns]:Y.rdns;for(let ie of W)G.add(ie)}let J=[];for(let Y of j){if(G.has(Y.info.rdns))continue;let W=m(h(Y));K.has(W.id)||J.push(W)}r&&!R.persist.hasHydrated()||d.setState(Y=>[...Y,...J],!0)});function U(j){R.setState(K=>{let G=K.connections.get(j.uid);return G?{...K,connections:new Map(K.connections).set(j.uid,{accounts:j.accounts??G.accounts,chainId:j.chainId??G.chainId,connector:G.connector})}:K})}function O(j){R.getState().status===\"connecting\"||R.getState().status===\"reconnecting\"||R.setState(K=>{let G=d.getState().find(J=>J.uid===j.uid);return G?(G.emitter.listenerCount(\"connect\")&&G.emitter.off(\"connect\",U),G.emitter.listenerCount(\"change\")||G.emitter.on(\"change\",U),G.emitter.listenerCount(\"disconnect\")||G.emitter.on(\"disconnect\",N),{...K,connections:new Map(K.connections).set(j.uid,{accounts:j.accounts,chainId:j.chainId,connector:G}),current:j.uid,status:\"connected\"}):K})}function N(j){R.setState(K=>{let G=K.connections.get(j.uid);if(G){let Y=G.connector;Y.emitter.listenerCount(\"change\")&&G.connector.emitter.off(\"change\",U),Y.emitter.listenerCount(\"disconnect\")&&G.connector.emitter.off(\"disconnect\",N),Y.emitter.listenerCount(\"connect\")||G.connector.emitter.on(\"connect\",O)}if(K.connections.delete(j.uid),K.connections.size===0)return{...K,connections:new Map,current:null,status:\"disconnected\"};let J=K.connections.values().next().value;return{...K,connections:new Map(K.connections),current:J.connector.uid}})}return{get chains(){return f.getState()},get connectors(){return d.getState()},storage:r,getClient:v,get state(){return R.getState()},setState(j){let K;typeof j==\"function\"?K=j(R.getState()):K=j;let G=E();typeof K!=\"object\"&&(K=G),Object.keys(G).some(Y=>!(Y in K))&&(K=G),R.setState(K,!0)},subscribe(j,K,G){return R.subscribe(j,K,G?{...G,fireImmediately:G.emitImmediately}:void 0)},_internal:{mipd:u,async revalidate(){let j=R.getState(),K=j.connections,G=j.current;for(let[,J]of K){let Y=J.connector;Y.isAuthorized&&await Y.isAuthorized()||(K.delete(Y.uid),G===Y.uid&&(G=null))}R.setState(J=>({...J,connections:K,current:G}))},store:R,ssr:!!o,syncConnectedChain:n,transports:s.transports,chains:{setState(j){let K=typeof j==\"function\"?j(f.getState()):j;if(K.length!==0)return f.setState(K,!0)},subscribe(j){return f.subscribe(j)}},connectors:{providerDetailToConnector:h,setup:m,setState(j){return d.setState(typeof j==\"function\"?j(d.getState()):j,!0)},subscribe(j){return d.subscribe(j)}},events:{change:U,connect:O,disconnect:N}}}}c();function kW(e,t){let{initialState:r,reconnectOnMount:n}=t;return r&&!e._internal.store.persist.hasHydrated()&&e.setState({...r,chainId:e.chains.some(o=>o.id===r.chainId)?r.chainId:e.chains[0].id,connections:n?r.connections:new Map,status:n?\"reconnecting\":\"disconnected\"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(o=>{let s=new Set;for(let d of o??[])if(d.rdns){let m=Array.isArray(d.rdns)?d.rdns:[d.rdns];for(let h of m)s.add(h)}let u=[],f=e._internal.mipd?.getProviders()??[];for(let d of f){if(s.has(d.info.rdns))continue;let m=e._internal.connectors.providerDetailToConnector(d),h=e._internal.connectors.setup(m);u.push(h)}return[...o,...u]})),n?OOe(e):e.storage&&e.setState(o=>({...o,connections:new Map}))}}}Bo();var rM=Sr(oo(),1);function ZOe(e){let{children:t,config:r,initialState:n,reconnectOnMount:o=!0}=e,{onMount:s}=kW(r,{initialState:n,reconnectOnMount:o});r._internal.ssr||s();let u=(0,rM.useRef)(!0);return(0,rM.useEffect)(()=>{if(u.current&&r._internal.ssr)return s(),()=>{u.current=!1}},[]),t}var VC=(0,GC.createContext)(void 0);function nM(e){let{children:t,config:r}=e,n={value:r};return(0,GC.createElement)(ZOe,e,(0,GC.createElement)(VC.Provider,n,t))}c();c();c();var JOe=\"2.19.5\";var YOe=()=>`wagmi@${JOe}`;var oM=class extends es{constructor(){super(...arguments),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WagmiError\"})}get docsBaseUrl(){return\"https://wagmi.sh/react\"}get version(){return YOe()}};c();var aM=class extends oM{constructor(){super(\"`useConfig` must be used within `WagmiProvider`.\",{docsPath:\"/api/WagmiProvider\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WagmiProviderNotFoundError\"})}};c();c();var XOe=Sr(oo(),1);function Ea(e={}){let t=e.config??(0,XOe.useContext)(VC);if(!t)throw new aM;return t}c();c();c();function BW(e,t){let{onChange:r}=t;return e._internal.chains.subscribe((n,o)=>{r(n,o)})}var iM=Sr(oo(),1),cNe=Sr(sNe(),1),IW=e=>typeof e==\"object\"&&!Array.isArray(e);function uNe(e,t,r=t,n=Fs){let o=(0,iM.useRef)([]),s=(0,cNe.useSyncExternalStoreWithSelector)(e,t,r,u=>u,(u,f)=>{if(IW(u)&&IW(f)&&o.current.length){for(let d of o.current)if(!n(u[d],f[d]))return!1;return!0}return n(u,f)});return(0,iM.useMemo)(()=>{if(IW(s)){let u={...s},f={};for(let[d,m]of Object.entries(u))f={...f,[d]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(d)||o.current.push(d),m)}};return Object.defineProperties(u,f),u}return s},[s])}function KC(e={}){let t=Ea(e);return uNe(r=>yW(t,{onChange:r}),()=>jC(t))}c();c();c();c();c();var xu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};c();c();var _ht={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ed,fg,lNe,kht=(lNe=class{constructor(){Ye(this,Ed,_ht);Ye(this,fg,!1)}setTimeoutProvider(e){ne(this,fg)&&e!==ne(this,Ed)&&console.error(\"[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.\",{previous:ne(this,Ed),provider:e}),Me(this,Ed,e),Me(this,fg,!1)}setTimeout(e,t){return Me(this,fg,!0),ne(this,Ed).setTimeout(e,t)}clearTimeout(e){ne(this,Ed).clearTimeout(e)}setInterval(e,t){return Me(this,fg,!0),ne(this,Ed).setInterval(e,t)}clearInterval(e){ne(this,Ed).clearInterval(e)}},Ed=new WeakMap,fg=new WeakMap,lNe),Ad=new kht;function fNe(e){setTimeout(e,0)}var js=typeof window>\"u\"||\"Deno\"in globalThis;function xo(){}function mNe(e,t){return typeof e==\"function\"?e(t):e}function WC(e){return typeof e==\"number\"&&e>=0&&e!==1/0}function cM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ol(e,t){return typeof e==\"function\"?e(t):e}function qs(e,t){return typeof e==\"function\"?e(t):e}function uM(e,t){let{type:r=\"all\",exact:n,fetchStatus:o,predicate:s,queryKey:u,stale:f}=e;if(u){if(n){if(t.queryHash!==QC(u,t.options))return!1}else if(!pg(t.queryKey,u))return!1}if(r!==\"all\"){let d=t.isActive();if(r===\"active\"&&!d||r===\"inactive\"&&d)return!1}return!(typeof f==\"boolean\"&&t.isStale()!==f||o&&o!==t.state.fetchStatus||s&&!s(t))}function lM(e,t){let{exact:r,status:n,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(Sd(t.options.mutationKey)!==Sd(s))return!1}else if(!pg(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function QC(e,t){return(t?.queryKeyHashFn||Sd)(e)}function Sd(e){return JSON.stringify(e,(t,r)=>PW(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function pg(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e==\"object\"&&typeof t==\"object\"?Object.keys(t).every(r=>pg(e[r],t[r])):!1}var Bht=Object.prototype.hasOwnProperty;function sM(e,t){if(e===t)return e;let r=dNe(e)&&dNe(t);if(!r&&!(PW(e)&&PW(t)))return t;let o=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),u=s.length,f=r?new Array(u):{},d=0;for(let m=0;m<u;m++){let h=r?m:s[m],y=e[h],v=t[h];if(y===v){f[h]=y,(r?m<o:Bht.call(e,h))&&d++;continue}if(y===null||v===null||typeof y!=\"object\"||typeof v!=\"object\"){f[h]=v;continue}let E=sM(y,v);f[h]=E,E===y&&d++}return o===u&&d===o?e:f}function f6(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function dNe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function PW(e){if(!pNe(e))return!1;let t=e.constructor;if(t===void 0)return!0;let r=t.prototype;return!(!pNe(r)||!r.hasOwnProperty(\"isPrototypeOf\")||Object.getPrototypeOf(e)!==Object.prototype)}function pNe(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function hNe(e){return new Promise(t=>{Ad.setTimeout(t,e)})}function ZC(e,t,r){if(typeof r.structuralSharing==\"function\")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){try{return sM(e,t)}catch(n){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${n}`),n}return sM(e,t)}return t}function yNe(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function bNe(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var dg=Symbol();function fM(e,t){return e.queryFn===dg&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: \\'${e.queryHash}\\'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===dg?()=>Promise.reject(new Error(`Missing queryFn: \\'${e.queryHash}\\'`)):e.queryFn}function JC(e,t){return typeof e==\"function\"?e(...t):!!e}var mg,iy,d6,gNe,Iht=(gNe=class extends xu{constructor(){super();Ye(this,mg);Ye(this,iy);Ye(this,d6);Me(this,d6,t=>{if(!js&&window.addEventListener){let r=()=>t();return window.addEventListener(\"visibilitychange\",r,!1),()=>{window.removeEventListener(\"visibilitychange\",r)}}})}onSubscribe(){ne(this,iy)||this.setEventListener(ne(this,d6))}onUnsubscribe(){var t;this.hasListeners()||((t=ne(this,iy))==null||t.call(this),Me(this,iy,void 0))}setEventListener(t){var r;Me(this,d6,t),(r=ne(this,iy))==null||r.call(this),Me(this,iy,t(n=>{typeof n==\"boolean\"?this.setFocused(n):this.onFocus()}))}setFocused(t){ne(this,mg)!==t&&(Me(this,mg,t),this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){return typeof ne(this,mg)==\"boolean\"?ne(this,mg):globalThis.document?.visibilityState!==\"hidden\"}},mg=new WeakMap,iy=new WeakMap,d6=new WeakMap,gNe),p6=new Iht;c();function YC(){let e,t,r=new Promise((o,s)=>{e=o,t=s});r.status=\"pending\",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:\"fulfilled\",value:o}),e(o)},r.reject=o=>{n({status:\"rejected\",reason:o}),t(o)},r}c();c();var xNe=fNe;function Pht(){let e=[],t=0,r=f=>{f()},n=f=>{f()},o=xNe,s=f=>{t?e.push(f):o(()=>{r(f)})},u=()=>{let f=e;e=[],f.length&&o(()=>{n(()=>{f.forEach(d=>{r(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||u()}return d},batchCalls:f=>(...d)=>{s(()=>{f(...d)})},schedule:s,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{n=f},setScheduler:f=>{o=f}}}var cn=Pht();c();c();c();var m6,sy,h6,vNe,Rht=(vNe=class extends xu{constructor(){super();Ye(this,m6,!0);Ye(this,sy);Ye(this,h6);Me(this,h6,t=>{if(!js&&window.addEventListener){let r=()=>t(!0),n=()=>t(!1);return window.addEventListener(\"online\",r,!1),window.addEventListener(\"offline\",n,!1),()=>{window.removeEventListener(\"online\",r),window.removeEventListener(\"offline\",n)}}})}onSubscribe(){ne(this,sy)||this.setEventListener(ne(this,h6))}onUnsubscribe(){var t;this.hasListeners()||((t=ne(this,sy))==null||t.call(this),Me(this,sy,void 0))}setEventListener(t){var r;Me(this,h6,t),(r=ne(this,sy))==null||r.call(this),Me(this,sy,t(this.setOnline.bind(this)))}setOnline(t){ne(this,m6)!==t&&(Me(this,m6,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return ne(this,m6)}},m6=new WeakMap,sy=new WeakMap,h6=new WeakMap,vNe),y6=new Rht;function Mht(e){return Math.min(1e3*2**e,3e4)}function RW(e){return(e??\"online\")===\"online\"?y6.isOnline():!0}var dM=class extends Error{constructor(e){super(\"CancelledError\"),this.revert=e?.revert,this.silent=e?.silent}};function pM(e){let t=!1,r=0,n,o=YC(),s=()=>o.status!==\"pending\",u=B=>{if(!s()){let R=new dM(B);v(R),e.onCancel?.(R)}},f=()=>{t=!0},d=()=>{t=!1},m=()=>p6.isFocused()&&(e.networkMode===\"always\"||y6.isOnline())&&e.canRun(),h=()=>RW(e.networkMode)&&e.canRun(),y=B=>{s()||(n?.(),o.resolve(B))},v=B=>{s()||(n?.(),o.reject(B))},E=()=>new Promise(B=>{n=R=>{(s()||m())&&B(R)},e.onPause?.()}).then(()=>{n=void 0,s()||e.onContinue?.()}),C=()=>{if(s())return;let B,R=r===0?e.initialPromise:void 0;try{B=R??e.fn()}catch(M){B=Promise.reject(M)}Promise.resolve(B).then(y).catch(M=>{if(s())return;let U=e.retry??(js?0:3),O=e.retryDelay??Mht,N=typeof O==\"function\"?O(r,M):O,j=U===!0||typeof U==\"number\"&&r<U||typeof U==\"function\"&&U(r,M);if(t||!j){v(M);return}r++,e.onFail?.(r,M),hNe(N).then(()=>m()?void 0:E()).then(()=>{t?v(M):C()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(n?.(),o),cancelRetry:f,continueRetry:d,canStart:h,start:()=>(h()?C():E().then(C),o)}}c();var hg,wNe,mM=(wNe=class{constructor(){Ye(this,hg)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),WC(this.gcTime)&&Me(this,hg,Ad.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(js?1/0:300*1e3))}clearGcTimeout(){ne(this,hg)&&(Ad.clearTimeout(ne(this,hg)),Me(this,hg,void 0))}},hg=new WeakMap,wNe);var yg,b6,vu,bg,Aa,XC,gg,Nl,Cm,SNe,CNe=(SNe=class extends mM{constructor(t){super();Ye(this,Nl);Ye(this,yg);Ye(this,b6);Ye(this,vu);Ye(this,bg);Ye(this,Aa);Ye(this,XC);Ye(this,gg);Me(this,gg,!1),Me(this,XC,t.defaultOptions),this.setOptions(t.options),this.observers=[],Me(this,bg,t.client),Me(this,vu,ne(this,bg).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Me(this,yg,ANe(this.options)),this.state=t.state??ne(this,yg),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return ne(this,Aa)?.promise}setOptions(t){if(this.options={...ne(this,XC),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let r=ANe(this.options);r.data!==void 0&&(this.setState(ENe(r.data,r.dataUpdatedAt)),Me(this,yg,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===\"idle\"&&ne(this,vu).remove(this)}setData(t,r){let n=ZC(this.state.data,t,this.options);return Rt(this,Nl,Cm).call(this,{data:n,type:\"success\",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),n}setState(t,r){Rt(this,Nl,Cm).call(this,{type:\"setState\",state:t,setStateOptions:r})}cancel(t){let r=ne(this,Aa)?.promise;return ne(this,Aa)?.cancel(t),r?r.then(xo).catch(xo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ne(this,yg))}isActive(){return this.observers.some(t=>qs(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dg||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ol(t.options.staleTime,this)===\"static\"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t===\"static\"?!1:this.state.isInvalidated?!0:!cM(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),ne(this,Aa)?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),ne(this,Aa)?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ne(this,vu).notify({type:\"observerAdded\",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(ne(this,Aa)&&(ne(this,gg)?ne(this,Aa).cancel({revert:!0}):ne(this,Aa).cancelRetry()),this.scheduleGc()),ne(this,vu).notify({type:\"observerRemoved\",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Rt(this,Nl,Cm).call(this,{type:\"invalidate\"})}async fetch(t,r){if(this.state.fetchStatus!==\"idle\"&&ne(this,Aa)?.status()!==\"rejected\"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(ne(this,Aa))return ne(this,Aa).continueRetry(),ne(this,Aa).promise}if(t&&this.setOptions(t),!this.options.queryFn){let d=this.observers.find(m=>m.options.queryFn);d&&this.setOptions(d.options)}Array.isArray(this.options.queryKey)||console.error(\"As of v4, queryKey needs to be an Array. If you are using a string like \\'repoData\\', please change it to an Array, e.g. [\\'repoData\\']\");let n=new AbortController,o=d=>{Object.defineProperty(d,\"signal\",{enumerable:!0,get:()=>(Me(this,gg,!0),n.signal)})},s=()=>{let d=fM(this.options,r),h=(()=>{let y={client:ne(this,bg),queryKey:this.queryKey,meta:this.meta};return o(y),y})();return Me(this,gg,!1),this.options.persister?this.options.persister(d,h,this):d(h)},f=(()=>{let d={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:ne(this,bg),state:this.state,fetchFn:s};return o(d),d})();this.options.behavior?.onFetch(f,this),Me(this,b6,this.state),(this.state.fetchStatus===\"idle\"||this.state.fetchMeta!==f.fetchOptions?.meta)&&Rt(this,Nl,Cm).call(this,{type:\"fetch\",meta:f.fetchOptions?.meta}),Me(this,Aa,pM({initialPromise:r?.initialPromise,fn:f.fetchFn,onCancel:d=>{d instanceof dM&&d.revert&&this.setState({...ne(this,b6),fetchStatus:\"idle\"}),n.abort()},onFail:(d,m)=>{Rt(this,Nl,Cm).call(this,{type:\"failed\",failureCount:d,error:m})},onPause:()=>{Rt(this,Nl,Cm).call(this,{type:\"pause\"})},onContinue:()=>{Rt(this,Nl,Cm).call(this,{type:\"continue\"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{let d=await ne(this,Aa).start();if(d===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(d),ne(this,vu).config.onSuccess?.(d,this),ne(this,vu).config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof dM){if(d.silent)return ne(this,Aa).promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw Rt(this,Nl,Cm).call(this,{type:\"error\",error:d}),ne(this,vu).config.onError?.(d,this),ne(this,vu).config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}},yg=new WeakMap,b6=new WeakMap,vu=new WeakMap,bg=new WeakMap,Aa=new WeakMap,XC=new WeakMap,gg=new WeakMap,Nl=new WeakSet,Cm=function(t){let r=n=>{switch(t.type){case\"failed\":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case\"pause\":return{...n,fetchStatus:\"paused\"};case\"continue\":return{...n,fetchStatus:\"fetching\"};case\"fetch\":return{...n,...MW(n.data,this.options),fetchMeta:t.meta??null};case\"success\":let o={...n,...ENe(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:\"idle\",fetchFailureCount:0,fetchFailureReason:null}};return Me(this,b6,t.manual?o:void 0),o;case\"error\":let s=t.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:\"idle\",status:\"error\"};case\"invalidate\":return{...n,isInvalidated:!0};case\"setState\":return{...n,...t.state}}};this.state=r(this.state),cn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),ne(this,vu).notify({query:this,type:\"updated\",action:t})})},SNe);function MW(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:RW(t.networkMode)?\"fetching\":\"paused\",...e===void 0&&{error:null,status:\"pending\"}}}function ENe(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:\"success\"}}function ANe(e){let t=typeof e.initialData==\"function\"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt==\"function\"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?\"success\":\"pending\",fetchStatus:\"idle\"}}var $s,gr,tT,rs,xg,g6,Tm,cy,rT,x6,v6,vg,wg,uy,w6,en,eT,OW,NW,UW,DW,HW,LW,zW,BNe,kNe,jW=(kNe=class extends xu{constructor(t,r){super();Ye(this,en);Ye(this,$s);Ye(this,gr);Ye(this,tT);Ye(this,rs);Ye(this,xg);Ye(this,g6);Ye(this,Tm);Ye(this,cy);Ye(this,rT);Ye(this,x6);Ye(this,v6);Ye(this,vg);Ye(this,wg);Ye(this,uy);Ye(this,w6,new Set);this.options=r,Me(this,$s,t),Me(this,cy,null),Me(this,Tm,YC()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ne(this,gr).addObserver(this),TNe(ne(this,gr),this.options)?Rt(this,en,eT).call(this):this.updateResult(),Rt(this,en,DW).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return FW(ne(this,gr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return FW(ne(this,gr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Rt(this,en,HW).call(this),Rt(this,en,LW).call(this),ne(this,gr).removeObserver(this)}setOptions(t){let r=this.options,n=ne(this,gr);if(this.options=ne(this,$s).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!=\"boolean\"&&typeof this.options.enabled!=\"function\"&&typeof qs(this.options.enabled,ne(this,gr))!=\"boolean\")throw new Error(\"Expected enabled to be a boolean or a callback that returns a boolean\");Rt(this,en,zW).call(this),ne(this,gr).setOptions(this.options),r._defaulted&&!f6(this.options,r)&&ne(this,$s).getQueryCache().notify({type:\"observerOptionsUpdated\",query:ne(this,gr),observer:this});let o=this.hasListeners();o&&_Ne(ne(this,gr),n,this.options,r)&&Rt(this,en,eT).call(this),this.updateResult(),o&&(ne(this,gr)!==n||qs(this.options.enabled,ne(this,gr))!==qs(r.enabled,ne(this,gr))||Ol(this.options.staleTime,ne(this,gr))!==Ol(r.staleTime,ne(this,gr)))&&Rt(this,en,OW).call(this);let s=Rt(this,en,NW).call(this);o&&(ne(this,gr)!==n||qs(this.options.enabled,ne(this,gr))!==qs(r.enabled,ne(this,gr))||s!==ne(this,uy))&&Rt(this,en,UW).call(this,s)}getOptimisticResult(t){let r=ne(this,$s).getQueryCache().build(ne(this,$s),t),n=this.createResult(r,t);return Nht(this,n)&&(Me(this,rs,n),Me(this,g6,this.options),Me(this,xg,ne(this,gr).state)),n}getCurrentResult(){return ne(this,rs)}trackResult(t,r){return new Proxy(t,{get:(n,o)=>(this.trackProp(o),r?.(o),o===\"promise\"&&(this.trackProp(\"data\"),!this.options.experimental_prefetchInRender&&ne(this,Tm).status===\"pending\"&&ne(this,Tm).reject(new Error(\"experimental_prefetchInRender feature flag is not enabled\"))),Reflect.get(n,o))})}trackProp(t){ne(this,w6).add(t)}getCurrentQuery(){return ne(this,gr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let r=ne(this,$s).defaultQueryOptions(t),n=ne(this,$s).getQueryCache().build(ne(this,$s),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return Rt(this,en,eT).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ne(this,rs)))}createResult(t,r){let n=ne(this,gr),o=this.options,s=ne(this,rs),u=ne(this,xg),f=ne(this,g6),m=t!==n?t.state:ne(this,tT),{state:h}=t,y={...h},v=!1,E;if(r._optimisticResults){let Y=this.hasListeners(),W=!Y&&TNe(t,r),ie=Y&&_Ne(t,n,r,o);(W||ie)&&(y={...y,...MW(h.data,t.options)}),r._optimisticResults===\"isRestoring\"&&(y.fetchStatus=\"idle\")}let{error:C,errorUpdatedAt:B,status:R}=y;E=y.data;let M=!1;if(r.placeholderData!==void 0&&E===void 0&&R===\"pending\"){let Y;s?.isPlaceholderData&&r.placeholderData===f?.placeholderData?(Y=s.data,M=!0):Y=typeof r.placeholderData==\"function\"?r.placeholderData(ne(this,v6)?.state.data,ne(this,v6)):r.placeholderData,Y!==void 0&&(R=\"success\",E=ZC(s?.data,Y,r),v=!0)}if(r.select&&E!==void 0&&!M)if(s&&E===u?.data&&r.select===ne(this,rT))E=ne(this,x6);else try{Me(this,rT,r.select),E=r.select(E),E=ZC(s?.data,E,r),Me(this,x6,E),Me(this,cy,null)}catch(Y){Me(this,cy,Y)}ne(this,cy)&&(C=ne(this,cy),E=ne(this,x6),B=Date.now(),R=\"error\");let U=y.fetchStatus===\"fetching\",O=R===\"pending\",N=R===\"error\",j=O&&U,K=E!==void 0,J={status:R,fetchStatus:y.fetchStatus,isPending:O,isSuccess:R===\"success\",isError:N,isInitialLoading:j,isLoading:j,data:E,dataUpdatedAt:y.dataUpdatedAt,error:C,errorUpdatedAt:B,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:U,isRefetching:U&&!O,isLoadingError:N&&!K,isPaused:y.fetchStatus===\"paused\",isPlaceholderData:v,isRefetchError:N&&K,isStale:qW(t,r),refetch:this.refetch,promise:ne(this,Tm),isEnabled:qs(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){let Y=re=>{J.status===\"error\"?re.reject(J.error):J.data!==void 0&&re.resolve(J.data)},W=()=>{let re=Me(this,Tm,J.promise=YC());Y(re)},ie=ne(this,Tm);switch(ie.status){case\"pending\":t.queryHash===n.queryHash&&Y(ie);break;case\"fulfilled\":(J.status===\"error\"||J.data!==ie.value)&&W();break;case\"rejected\":(J.status!==\"error\"||J.error!==ie.reason)&&W();break}}return J}updateResult(){let t=ne(this,rs),r=this.createResult(ne(this,gr),this.options);if(Me(this,xg,ne(this,gr).state),Me(this,g6,this.options),ne(this,xg).data!==void 0&&Me(this,v6,ne(this,gr)),f6(r,t))return;Me(this,rs,r);let n=()=>{if(!t)return!0;let{notifyOnChangeProps:o}=this.options,s=typeof o==\"function\"?o():o;if(s===\"all\"||!s&&!ne(this,w6).size)return!0;let u=new Set(s??ne(this,w6));return this.options.throwOnError&&u.add(\"error\"),Object.keys(ne(this,rs)).some(f=>{let d=f;return ne(this,rs)[d]!==t[d]&&u.has(d)})};Rt(this,en,BNe).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Rt(this,en,DW).call(this)}},$s=new WeakMap,gr=new WeakMap,tT=new WeakMap,rs=new WeakMap,xg=new WeakMap,g6=new WeakMap,Tm=new WeakMap,cy=new WeakMap,rT=new WeakMap,x6=new WeakMap,v6=new WeakMap,vg=new WeakMap,wg=new WeakMap,uy=new WeakMap,w6=new WeakMap,en=new WeakSet,eT=function(t){Rt(this,en,zW).call(this);let r=ne(this,gr).fetch(this.options,t);return t?.throwOnError||(r=r.catch(xo)),r},OW=function(){Rt(this,en,HW).call(this);let t=Ol(this.options.staleTime,ne(this,gr));if(js||ne(this,rs).isStale||!WC(t))return;let n=cM(ne(this,rs).dataUpdatedAt,t)+1;Me(this,vg,Ad.setTimeout(()=>{ne(this,rs).isStale||this.updateResult()},n))},NW=function(){return(typeof this.options.refetchInterval==\"function\"?this.options.refetchInterval(ne(this,gr)):this.options.refetchInterval)??!1},UW=function(t){Rt(this,en,LW).call(this),Me(this,uy,t),!(js||qs(this.options.enabled,ne(this,gr))===!1||!WC(ne(this,uy))||ne(this,uy)===0)&&Me(this,wg,Ad.setInterval(()=>{(this.options.refetchIntervalInBackground||p6.isFocused())&&Rt(this,en,eT).call(this)},ne(this,uy)))},DW=function(){Rt(this,en,OW).call(this),Rt(this,en,UW).call(this,Rt(this,en,NW).call(this))},HW=function(){ne(this,vg)&&(Ad.clearTimeout(ne(this,vg)),Me(this,vg,void 0))},LW=function(){ne(this,wg)&&(Ad.clearInterval(ne(this,wg)),Me(this,wg,void 0))},zW=function(){let t=ne(this,$s).getQueryCache().build(ne(this,$s),this.options);if(t===ne(this,gr))return;let r=ne(this,gr);Me(this,gr,t),Me(this,tT,t.state),this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))},BNe=function(t){cn.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(ne(this,rs))}),ne(this,$s).getQueryCache().notify({query:ne(this,gr),type:\"observerResultsUpdated\"})})},kNe);function Oht(e,t){return qs(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===\"error\"&&t.retryOnMount===!1)}function TNe(e,t){return Oht(e,t)||e.state.data!==void 0&&FW(e,t,t.refetchOnMount)}function FW(e,t,r){if(qs(t.enabled,e)!==!1&&Ol(t.staleTime,e)!==\"static\"){let n=typeof r==\"function\"?r(e):r;return n===\"always\"||n!==!1&&qW(e,t)}return!1}function _Ne(e,t,r,n){return(e!==t||qs(n.enabled,e)===!1)&&(!r.suspense||e.state.status!==\"error\")&&qW(e,r)}function qW(e,t){return qs(t.enabled,e)!==!1&&e.isStaleByTime(Ol(t.staleTime,e))}function Nht(e,t){return!f6(e.getCurrentResult(),t)}c();function $W(e){return{onFetch:(t,r)=>{let n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],u=t.state.data?.pageParams||[],f={pages:[],pageParams:[]},d=0,m=async()=>{let h=!1,y=C=>{Object.defineProperty(C,\"signal\",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener(\"abort\",()=>{h=!0}),t.signal)})},v=fM(t.options,t.fetchOptions),E=async(C,B,R)=>{if(h)return Promise.reject();if(B==null&&C.pages.length)return Promise.resolve(C);let U=(()=>{let K={client:t.client,queryKey:t.queryKey,pageParam:B,direction:R?\"backward\":\"forward\",meta:t.options.meta};return y(K),K})(),O=await v(U),{maxPages:N}=t.options,j=R?bNe:yNe;return{pages:j(C.pages,O,N),pageParams:j(C.pageParams,B,N)}};if(o&&s.length){let C=o===\"backward\",B=C?Uht:INe,R={pages:s,pageParams:u},M=B(n,R);f=await E(R,M,C)}else{let C=e??s.length;do{let B=d===0?u[0]??n.initialPageParam:INe(n,f);if(d>0&&B==null)break;f=await E(f,B),d++}while(d<C)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=m}}}function INe(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Uht(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}c();c();var nT,Cd,ns,Eg,Td,ly,PNe,RNe=(PNe=class extends mM{constructor(t){super();Ye(this,Td);Ye(this,nT);Ye(this,Cd);Ye(this,ns);Ye(this,Eg);Me(this,nT,t.client),this.mutationId=t.mutationId,Me(this,ns,t.mutationCache),Me(this,Cd,[]),this.state=t.state||GW(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ne(this,Cd).includes(t)||(ne(this,Cd).push(t),this.clearGcTimeout(),ne(this,ns).notify({type:\"observerAdded\",mutation:this,observer:t}))}removeObserver(t){Me(this,Cd,ne(this,Cd).filter(r=>r!==t)),this.scheduleGc(),ne(this,ns).notify({type:\"observerRemoved\",mutation:this,observer:t})}optionalRemove(){ne(this,Cd).length||(this.state.status===\"pending\"?this.scheduleGc():ne(this,ns).remove(this))}continue(){return ne(this,Eg)?.continue()??this.execute(this.state.variables)}async execute(t){let r=()=>{Rt(this,Td,ly).call(this,{type:\"continue\"})},n={client:ne(this,nT),meta:this.options.meta,mutationKey:this.options.mutationKey};Me(this,Eg,pM({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error(\"No mutationFn found\")),onFail:(u,f)=>{Rt(this,Td,ly).call(this,{type:\"failed\",failureCount:u,error:f})},onPause:()=>{Rt(this,Td,ly).call(this,{type:\"pause\"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ne(this,ns).canRun(this)}));let o=this.state.status===\"pending\",s=!ne(this,Eg).canStart();try{if(o)r();else{Rt(this,Td,ly).call(this,{type:\"pending\",variables:t,isPaused:s}),await ne(this,ns).config.onMutate?.(t,this,n);let f=await this.options.onMutate?.(t,n);f!==this.state.context&&Rt(this,Td,ly).call(this,{type:\"pending\",context:f,variables:t,isPaused:s})}let u=await ne(this,Eg).start();return await ne(this,ns).config.onSuccess?.(u,t,this.state.context,this,n),await this.options.onSuccess?.(u,t,this.state.context,n),await ne(this,ns).config.onSettled?.(u,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(u,null,t,this.state.context,n),Rt(this,Td,ly).call(this,{type:\"success\",data:u}),u}catch(u){try{throw await ne(this,ns).config.onError?.(u,t,this.state.context,this,n),await this.options.onError?.(u,t,this.state.context,n),await ne(this,ns).config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,u,t,this.state.context,n),u}finally{Rt(this,Td,ly).call(this,{type:\"error\",error:u})}}finally{ne(this,ns).runNext(this)}}},nT=new WeakMap,Cd=new WeakMap,ns=new WeakMap,Eg=new WeakMap,Td=new WeakSet,ly=function(t){let r=n=>{switch(t.type){case\"failed\":return{...n,failureCount:t.failureCount,failureReason:t.error};case\"pause\":return{...n,isPaused:!0};case\"continue\":return{...n,isPaused:!1};case\"pending\":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:\"pending\",variables:t.variables,submittedAt:Date.now()};case\"success\":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:\"success\",isPaused:!1};case\"error\":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:\"error\"}}};this.state=r(this.state),cn.batch(()=>{ne(this,Cd).forEach(n=>{n.onMutationUpdate(t)}),ne(this,ns).notify({mutation:this,type:\"updated\",action:t})})},PNe);function GW(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:\"idle\",variables:void 0,submittedAt:0}}var _m,Ul,oT,MNe,ONe=(MNe=class extends xu{constructor(t={}){super();Ye(this,_m);Ye(this,Ul);Ye(this,oT);this.config=t,Me(this,_m,new Set),Me(this,Ul,new Map),Me(this,oT,0)}build(t,r,n){let o=new RNe({client:t,mutationCache:this,mutationId:++zA(this,oT)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){ne(this,_m).add(t);let r=hM(t);if(typeof r==\"string\"){let n=ne(this,Ul).get(r);n?n.push(t):ne(this,Ul).set(r,[t])}this.notify({type:\"added\",mutation:t})}remove(t){if(ne(this,_m).delete(t)){let r=hM(t);if(typeof r==\"string\"){let n=ne(this,Ul).get(r);if(n)if(n.length>1){let o=n.indexOf(t);o!==-1&&n.splice(o,1)}else n[0]===t&&ne(this,Ul).delete(r)}}this.notify({type:\"removed\",mutation:t})}canRun(t){let r=hM(t);if(typeof r==\"string\"){let o=ne(this,Ul).get(r)?.find(s=>s.state.status===\"pending\");return!o||o===t}else return!0}runNext(t){let r=hM(t);return typeof r==\"string\"?ne(this,Ul).get(r)?.find(o=>o!==t&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){cn.batch(()=>{ne(this,_m).forEach(t=>{this.notify({type:\"removed\",mutation:t})}),ne(this,_m).clear(),ne(this,Ul).clear()})}getAll(){return Array.from(ne(this,_m))}find(t){let r={exact:!0,...t};return this.getAll().find(n=>lM(r,n))}findAll(t={}){return this.getAll().filter(r=>lM(t,r))}notify(t){cn.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){let t=this.getAll().filter(r=>r.state.isPaused);return cn.batch(()=>Promise.all(t.map(r=>r.continue().catch(xo))))}},_m=new WeakMap,Ul=new WeakMap,oT=new WeakMap,MNe);function hM(e){return e.options.scope?.id}c();var km,fy,Gs,Bm,Im,yM,VW,NNe,KW=(NNe=class extends xu{constructor(t,r){super();Ye(this,Im);Ye(this,km);Ye(this,fy);Ye(this,Gs);Ye(this,Bm);Me(this,km,t),this.setOptions(r),this.bindMethods(),Rt(this,Im,yM).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let r=this.options;this.options=ne(this,km).defaultMutationOptions(t),f6(this.options,r)||ne(this,km).getMutationCache().notify({type:\"observerOptionsUpdated\",mutation:ne(this,Gs),observer:this}),r?.mutationKey&&this.options.mutationKey&&Sd(r.mutationKey)!==Sd(this.options.mutationKey)?this.reset():ne(this,Gs)?.state.status===\"pending\"&&ne(this,Gs).setOptions(this.options)}onUnsubscribe(){this.hasListeners()||ne(this,Gs)?.removeObserver(this)}onMutationUpdate(t){Rt(this,Im,yM).call(this),Rt(this,Im,VW).call(this,t)}getCurrentResult(){return ne(this,fy)}reset(){ne(this,Gs)?.removeObserver(this),Me(this,Gs,void 0),Rt(this,Im,yM).call(this),Rt(this,Im,VW).call(this)}mutate(t,r){return Me(this,Bm,r),ne(this,Gs)?.removeObserver(this),Me(this,Gs,ne(this,km).getMutationCache().build(ne(this,km),this.options)),ne(this,Gs).addObserver(this),ne(this,Gs).execute(t)}},km=new WeakMap,fy=new WeakMap,Gs=new WeakMap,Bm=new WeakMap,Im=new WeakSet,yM=function(){let t=ne(this,Gs)?.state??GW();Me(this,fy,{...t,isPending:t.status===\"pending\",isSuccess:t.status===\"success\",isError:t.status===\"error\",isIdle:t.status===\"idle\",mutate:this.mutate,reset:this.reset})},VW=function(t){cn.batch(()=>{if(ne(this,Bm)&&this.hasListeners()){let r=ne(this,fy).variables,n=ne(this,fy).context,o={client:ne(this,km),meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type===\"success\"?(ne(this,Bm).onSuccess?.(t.data,r,n,o),ne(this,Bm).onSettled?.(t.data,null,r,n,o)):t?.type===\"error\"&&(ne(this,Bm).onError?.(t.error,r,n,o),ne(this,Bm).onSettled?.(void 0,t.error,r,n,o))}this.listeners.forEach(r=>{r(ne(this,fy))})})},NNe);c();var _d,UNe,DNe=(UNe=class extends xu{constructor(t={}){super();Ye(this,_d);this.config=t,Me(this,_d,new Map)}build(t,r,n){let o=r.queryKey,s=r.queryHash??QC(o,r),u=this.get(s);return u||(u=new CNe({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(u)),u}add(t){ne(this,_d).has(t.queryHash)||(ne(this,_d).set(t.queryHash,t),this.notify({type:\"added\",query:t}))}remove(t){let r=ne(this,_d).get(t.queryHash);r&&(t.destroy(),r===t&&ne(this,_d).delete(t.queryHash),this.notify({type:\"removed\",query:t}))}clear(){cn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ne(this,_d).get(t)}getAll(){return[...ne(this,_d).values()]}find(t){let r={exact:!0,...t};return this.getAll().find(n=>uM(r,n))}findAll(t={}){let r=this.getAll();return Object.keys(t).length>0?r.filter(n=>uM(t,n)):r}notify(t){cn.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){cn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){cn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},_d=new WeakMap,UNe);c();var vo,dy,py,E6,A6,my,S6,C6,HNe,WW=(HNe=class{constructor(e={}){Ye(this,vo);Ye(this,dy);Ye(this,py);Ye(this,E6);Ye(this,A6);Ye(this,my);Ye(this,S6);Ye(this,C6);Me(this,vo,e.queryCache||new DNe),Me(this,dy,e.mutationCache||new ONe),Me(this,py,e.defaultOptions||{}),Me(this,E6,new Map),Me(this,A6,new Map),Me(this,my,0)}mount(){zA(this,my)._++,ne(this,my)===1&&(Me(this,S6,p6.subscribe(async e=>{e&&(await this.resumePausedMutations(),ne(this,vo).onFocus())})),Me(this,C6,y6.subscribe(async e=>{e&&(await this.resumePausedMutations(),ne(this,vo).onOnline())})))}unmount(){var e,t;zA(this,my)._--,ne(this,my)===0&&((e=ne(this,S6))==null||e.call(this),Me(this,S6,void 0),(t=ne(this,C6))==null||t.call(this),Me(this,C6,void 0))}isFetching(e){return ne(this,vo).findAll({...e,fetchStatus:\"fetching\"}).length}isMutating(e){return ne(this,dy).findAll({...e,status:\"pending\"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return ne(this,vo).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=ne(this,vo).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Ol(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return ne(this,vo).findAll(e).map(({queryKey:t,state:r})=>{let n=r.data;return[t,n]})}setQueryData(e,t,r){let n=this.defaultQueryOptions({queryKey:e}),s=ne(this,vo).get(n.queryHash)?.state.data,u=mNe(t,s);if(u!==void 0)return ne(this,vo).build(this,n).setData(u,{...r,manual:!0})}setQueriesData(e,t,r){return cn.batch(()=>ne(this,vo).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return ne(this,vo).get(t.queryHash)?.state}removeQueries(e){let t=ne(this,vo);cn.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){let r=ne(this,vo);return cn.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:\"active\",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t},n=cn.batch(()=>ne(this,vo).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(xo).catch(xo)}invalidateQueries(e,t={}){return cn.batch(()=>(ne(this,vo).findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType===\"none\"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??\"active\"},t)))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0},n=cn.batch(()=>ne(this,vo).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,r);return r.throwOnError||(s=s.catch(xo)),o.state.fetchStatus===\"paused\"?Promise.resolve():s}));return Promise.all(n).then(xo)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let r=ne(this,vo).build(this,t);return r.isStaleByTime(Ol(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xo).catch(xo)}fetchInfiniteQuery(e){return e.behavior=$W(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xo).catch(xo)}ensureInfiniteQueryData(e){return e.behavior=$W(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return y6.isOnline()?ne(this,dy).resumePausedMutations():Promise.resolve()}getQueryCache(){return ne(this,vo)}getMutationCache(){return ne(this,dy)}getDefaultOptions(){return ne(this,py)}setDefaultOptions(e){Me(this,py,e)}setQueryDefaults(e,t){ne(this,E6).set(Sd(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...ne(this,E6).values()],r={};return t.forEach(n=>{pg(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){ne(this,A6).set(Sd(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...ne(this,A6).values()],r={};return t.forEach(n=>{pg(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...ne(this,py).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=QC(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==\"always\"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=\"offlineFirst\"),t.queryFn===dg&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...ne(this,py).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ne(this,vo).clear(),ne(this,dy).clear()}},vo=new WeakMap,dy=new WeakMap,py=new WeakMap,E6=new WeakMap,A6=new WeakMap,my=new WeakMap,S6=new WeakMap,C6=new WeakMap,HNe);function QW(e){return JSON.stringify(e,(t,r)=>Dht(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):typeof r==\"bigint\"?r.toString():r)}function Dht(e){if(!LNe(e))return!1;let t=e.constructor;if(typeof t>\"u\")return!0;let r=t.prototype;return!(!LNe(r)||!r.hasOwnProperty(\"isPrototypeOf\"))}function LNe(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function zNe(e){let{_defaulted:t,behavior:r,gcTime:n,initialData:o,initialDataUpdatedAt:s,maxPages:u,meta:f,networkMode:d,queryFn:m,queryHash:h,queryKey:y,queryKeyHashFn:v,retry:E,retryDelay:C,structuralSharing:B,getPreviousPageParam:R,getNextPageParam:M,initialPageParam:U,_optimisticResults:O,enabled:N,notifyOnChangeProps:j,placeholderData:K,refetchInterval:G,refetchIntervalInBackground:J,refetchOnMount:Y,refetchOnReconnect:W,refetchOnWindowFocus:ie,retryOnMount:re,select:H,staleTime:A,suspense:T,throwOnError:P,config:D,connector:L,query:V,...Z}=e;return Z}c();function ZW(e){return{mutationFn(t){return IOe(e,t)},mutationKey:[\"connect\"]}}c();function JW(e){return{mutationFn(t){return ROe(e,t)},mutationKey:[\"disconnect\"]}}c();function YW(e,t={}){return{gcTime:0,async queryFn({queryKey:r}){let{connector:n}=t,{connectorUid:o,scopeKey:s,...u}=r[1];return MOe(e,{...u,connector:n})},queryKey:FNe(t)}}function FNe(e={}){let{connector:t,...r}=e;return[\"walletClient\",{...zNe(r),connectorUid:t?.uid}]}c();function XW(e){return{mutationFn(t){return NOe(e,t)},mutationKey:[\"switchChain\"]}}c();c();c();var T6=Sr(oo(),1),$Ne=Sr(Dl(),1),eQ=T6.createContext(void 0),Ag=e=>{let t=T6.useContext(eQ);if(e)return e;if(!t)throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");return t},tQ=({client:e,children:t})=>(T6.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,$Ne.jsx)(eQ.Provider,{value:e,children:t}));c();var gM=Sr(oo(),1),GNe=gM.createContext(!1),VNe=()=>gM.useContext(GNe),xun=GNe.Provider;c();var aT=Sr(oo(),1),Hht=Sr(Dl(),1);function Lht(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var zht=aT.createContext(Lht()),KNe=()=>aT.useContext(zht);c();var WNe=Sr(oo(),1);var QNe=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},ZNe=e=>{WNe.useEffect(()=>{e.clearReset()},[e])},JNe=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||JC(r,[e.error,n]));c();var YNe=e=>{if(e.suspense){let r=o=>o===\"static\"?o:Math.max(o??1e3,1e3),n=e.staleTime;e.staleTime=typeof n==\"function\"?(...o)=>r(n(...o)):r(n),typeof e.gcTime==\"number\"&&(e.gcTime=Math.max(e.gcTime,1e3))}},XNe=(e,t)=>e.isLoading&&e.isFetching&&!t,eUe=(e,t)=>e?.suspense&&t.isPending,rQ=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});c();c();var hy=Sr(oo(),1);function tUe(e,t,r){if(typeof e!=\"object\"||Array.isArray(e))throw new Error(\\'Bad argument type. Starting with v5, only the \"Object\" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object\\');let n=VNe(),o=KNe(),s=Ag(r),u=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u.queryFn||console.error(`[${u.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),u._optimisticResults=n?\"isRestoring\":\"optimistic\",YNe(u),QNe(u,o),ZNe(o);let f=!s.getQueryCache().get(u.queryHash),[d]=hy.useState(()=>new t(s,u)),m=d.getOptimisticResult(u),h=!n&&e.subscribed!==!1;if(hy.useSyncExternalStore(hy.useCallback(y=>{let v=h?d.subscribe(cn.batchCalls(y)):xo;return d.updateResult(),v},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),hy.useEffect(()=>{d.setOptions(u)},[u,d]),eUe(u,m))throw rQ(u,d,o);if(JNe({result:m,errorResetBoundary:o,throwOnError:u.throwOnError,query:s.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw m.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(u,m),u.experimental_prefetchInRender&&!js&&XNe(m,n)&&(f?rQ(u,d,o):s.getQueryCache().get(u.queryHash)?.promise)?.catch(xo).finally(()=>{d.updateResult()}),u.notifyOnChangeProps?m:d.trackResult(m)}function nQ(e,t){return tUe(e,jW,t)}c();var Pm=Sr(oo(),1);function yy(e,t){let r=Ag(t),[n]=Pm.useState(()=>new KW(r,e));Pm.useEffect(()=>{n.setOptions(e)},[n,e]);let o=Pm.useSyncExternalStore(Pm.useCallback(u=>n.subscribe(cn.batchCalls(u)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),s=Pm.useCallback((u,f)=>{n.mutate(u,f).catch(xo)},[n]);if(o.error&&JC(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function rUe(e){let t=nQ({...e,queryKeyHashFn:QW});return t.queryKey=e.queryKey,t}c();var nUe=Sr(oo(),1);function oUe(e={}){let t=Ea(e);return(0,nUe.useSyncExternalStore)(r=>bW(t,{onChange:r}),()=>$R(t),()=>$R(t))}c();var aUe=Sr(oo(),1);function iUe(e={}){let t=Ea(e);return(0,aUe.useSyncExternalStore)(r=>BW(t,{onChange:r}),()=>GR(t),()=>GR(t))}c();var uUe=Sr(oo(),1);c();var sUe=Sr(oo(),1);function cUe(e={}){let t=Ea(e);return(0,sUe.useSyncExternalStore)(r=>xW(t,{onChange:r}),()=>WR(t),()=>WR(t))}function oQ(e={}){let{mutation:t}=e,r=Ea(e),n=ZW(r),{mutate:o,mutateAsync:s,...u}=yy({...t,...n});return(0,uUe.useEffect)(()=>r.subscribe(({status:f})=>f,(f,d)=>{d===\"connected\"&&f===\"disconnected\"&&u.reset()}),[r,u.reset]),{...u,connect:o,connectAsync:s,connectors:cUe({config:r})}}c();var lUe=Sr(oo(),1);function fUe(e={}){let t=Ea(e);return(0,lUe.useSyncExternalStore)(r=>gW(t,{onChange:r}),()=>u6(t),()=>u6(t))}c();function aQ(e={}){let{mutation:t}=e,r=Ea(e),n=JW(r),{mutate:o,mutateAsync:s,...u}=yy({...t,...n});return{...u,connectors:fUe({config:r}).map(f=>f.connector),disconnect:o,disconnectAsync:s}}c();function iQ(e={}){let{mutation:t}=e,r=Ea(e),n=XW(r),{mutate:o,mutateAsync:s,...u}=yy({...t,...n});return{...u,chains:iUe({config:r}),switchChain:o,switchChainAsync:s}}c();var xM=Sr(oo(),1);function sQ(e={}){let{query:t={},...r}=e,n=Ea(r),o=Ag(),{address:s,connector:u,status:f}=KC({config:n}),d=oUe({config:n}),m=e.connector??u,{queryKey:h,...y}=YW(n,{...e,chainId:e.chainId??d,connector:e.connector??u}),v=!!((f===\"connected\"||f===\"reconnecting\"&&m?.getProvider)&&(t.enabled??!0)),E=(0,xM.useRef)(s);return(0,xM.useEffect)(()=>{let C=E.current;!s&&C?(o.removeQueries({queryKey:h}),E.current=void 0):s!==C&&(o.invalidateQueries({queryKey:h}),E.current=s)},[s,o]),rUe({...t,...y,queryKey:h,enabled:v,staleTime:Number.POSITIVE_INFINITY})}c();c();c();c();c();var cQ={TransferWithAuthorization:[{name:\"from\",type:\"address\"},{name:\"to\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"validAfter\",type:\"uint256\"},{name:\"validBefore\",type:\"uint256\"},{name:\"nonce\",type:\"bytes32\"}]},dUe={PermitWitnessTransferFrom:[{name:\"permitted\",type:\"TokenPermissions\"},{name:\"spender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"deadline\",type:\"uint256\"},{name:\"witness\",type:\"Witness\"}],TokenPermissions:[{name:\"token\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],Witness:[{name:\"to\",type:\"address\"},{name:\"validAfter\",type:\"uint256\"}]};var pUe={Permit:[{name:\"owner\",type:\"address\"},{name:\"spender\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"nonce\",type:\"uint256\"},{name:\"deadline\",type:\"uint256\"}]},mUe=[{type:\"function\",name:\"nonces\",inputs:[{name:\"owner\",type:\"address\"}],outputs:[{type:\"uint256\"}],stateMutability:\"view\"}],vM=[{type:\"function\",name:\"approve\",inputs:[{name:\"spender\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\"}],_6=[{type:\"function\",name:\"allowance\",inputs:[{name:\"owner\",type:\"address\"},{name:\"spender\",type:\"address\"}],outputs:[{type:\"uint256\"}],stateMutability:\"view\"}],hUe=70000n,yUe=1000000000n,bUe=100000000n,by=\"0x000000000022D473030F116dDEE9F6B43aC78BA3\",gUe=\"0x402085c248EeA27D92E8b30b2C58ed07f9E20001\";c();c();c();function Ue(e,t,r){let n=e[t.name];if(typeof n==\"function\")return n;let o=e[r];return typeof o==\"function\"?o:s=>t(e,s)}c();c();Po();c();xr();var nO=class extends be{constructor(t){super(`Filter type \"${t}\" is not supported.`,{name:\"FilterTypeNotSupportedError\"})}};Wa();ql();gT();Hm();Mm();Cy();var fDe=\"/docs/contract/encodeEventTopics\";function Pd(e){let{abi:t,eventName:r,args:n}=e,o=t[0];if(r){let d=Ws({abi:t,name:r});if(!d)throw new dT(r,{docsPath:fDe});o=d}if(o.type!==\"event\")throw new dT(void 0,{docsPath:fDe});let s=la(o),u=Ey(s),f=[];if(n&&\"inputs\"in o){let d=o.inputs?.filter(h=>\"indexed\"in h&&h.indexed),m=Array.isArray(n)?n:Object.values(n).length>0?d?.map(h=>n[h.name])??[]:[];m.length>0&&(f=d?.map((h,y)=>Array.isArray(m[y])?m[y].map((v,E)=>dDe({param:h,value:m[y][E]})):typeof m[y]<\"u\"&&m[y]!==null?dDe({param:h,value:m[y]}):null)??[])}return[u,...f]}function dDe({param:e,value:t}){if(e.type===\"string\"||e.type===\"bytes\")return Tn(Au(t));if(e.type===\"tuple\"||e.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/))throw new nO(e.type);return as([e],[t])}Ht();c();function Ty(e,{method:t}){let r={};return e.transport.type===\"fallback\"&&e.transport.onResponse?.(({method:n,response:o,status:s,transport:u})=>{s===\"success\"&&t===n&&(r[o]=u.request)}),(n=>r[n]||e.request)}async function pO(e,t){let{address:r,abi:n,args:o,eventName:s,fromBlock:u,strict:f,toBlock:d}=t,m=Ty(e,{method:\"eth_newFilter\"}),h=s?Pd({abi:n,args:o,eventName:s}):void 0,y=await e.request({method:\"eth_newFilter\",params:[{address:r,fromBlock:typeof u==\"bigint\"?Fe(u):u,toBlock:typeof d==\"bigint\"?Fe(d):d,topics:h}]});return{abi:n,args:o,eventName:s,id:y,request:m(y),strict:!!f,type:\"event\"}}c();Oc();Nc();c();Po();xr();_y();Pg();ST();var I0t=3;function Gl(e,{abi:t,address:r,args:n,docsPath:o,functionName:s,sender:u}){let f=e instanceof Md?e:e instanceof be?e.walk(C=>\"data\"in C)||e.walk():{},{code:d,data:m,details:h,message:y,shortMessage:v}=f,E=e instanceof Eu?new kO({functionName:s,cause:e}):[I0t,Fm.code].includes(d)&&(m||h||y||v)||d===_u.code&&h===\"execution reverted\"&&m?new Ig({abi:t,data:typeof m==\"object\"?m.data:m,functionName:s,message:f instanceof ky?h:v??y,cause:e}):e;return new G6(E,{abi:t,args:n,contractAddress:r,docsPath:o,functionName:s,sender:u})}c();Oc();xr();c();c();c();Sy();ql();function BDe(e){let t=Tn(`0x${e.substring(4)}`).substring(26);return Ay(`0x${t}`)}c();Ll();wu();os();Ht();async function PDe({hash:e,signature:t}){let r=Ro(e)?e:Wo(e),{secp256k1:n}=await Promise.resolve().then(()=>(S0(),CG));return`0x${(()=>{if(typeof t==\"object\"&&\"r\"in t&&\"s\"in t){let{r:m,s:h,v:y,yParity:v}=t,E=Number(v??y),C=IDe(E);return new n.Signature(Va(m),Va(h)).addRecoveryBit(C)}let u=Ro(t)?t:Wo(t);if(wr(u)!==65)throw new Error(\"invalid signature length\");let f=Sa(`0x${u.slice(130)}`),d=IDe(f);return n.Signature.fromCompact(u.substring(2,130)).addRecoveryBit(d)})().recoverPublicKey(r.substring(2)).toHex(!1)}`}function IDe(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error(\"Invalid yParityOrV value\")}async function CT({hash:e,signature:t}){return BDe(await PDe({hash:e,signature:t}))}c();Su();Wa();Ht();c();xr();bO();Wa();Ht();function RDe(e,t=\"hex\"){let r=MDe(e),n=H6(new Uint8Array(r.length));return r.encode(n),t===\"hex\"?Or(n.bytes):n.bytes}function MDe(e){return Array.isArray(e)?P0t(e.map(t=>MDe(t))):R0t(e)}function P0t(e){let t=e.reduce((o,s)=>o+s.length,0),r=ODe(t);return{length:t<=55?1+t:1+r+t,encode(o){t<=55?o.pushByte(192+t):(o.pushByte(247+r),r===1?o.pushUint8(t):r===2?o.pushUint16(t):r===3?o.pushUint24(t):o.pushUint32(t));for(let{encode:s}of e)s(o)}}}function R0t(e){let t=typeof e==\"string\"?Ka(e):e,r=ODe(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(o){t.length===1&&t[0]<128?o.pushBytes(t):t.length<=55?(o.pushByte(128+t.length),o.pushBytes(t)):(o.pushByte(183+r),r===1?o.pushUint8(t.length):r===2?o.pushUint16(t.length):r===3?o.pushUint24(t.length):o.pushUint32(t.length),o.pushBytes(t))}}}function ODe(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new be(\"Length is too large.\")}ql();function NDe(e){let{chainId:t,nonce:r,to:n}=e,o=e.contractAddress??e.address,s=Tn($l([\"0x05\",RDe([t?Fe(t):\"0x\",o,r?Fe(r):\"0x\"])]));return n===\"bytes\"?Ka(s):s}async function PO(e){let{authorization:t,signature:r}=e;return CT({hash:NDe(t),signature:r??t})}Ht();c();c();vO();F6();xr();zm();var RO=class extends be{constructor(t,{account:r,docsPath:n,chain:o,data:s,gas:u,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:m,nonce:h,to:y,value:v}){let E=kg({from:r?.address,to:y,value:typeof v<\"u\"&&`${z6(v)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:s,gas:u,gasPrice:typeof f<\"u\"&&`${fa(f)} gwei`,maxFeePerGas:typeof d<\"u\"&&`${fa(d)} gwei`,maxPriorityFeePerGas:typeof m<\"u\"&&`${fa(m)} gwei`,nonce:h});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Estimate Gas Arguments:\",E].filter(Boolean),name:\"EstimateGasExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}};Og();TT();function UDe(e,{docsPath:t,...r}){let n=(()=>{let o=Ry(e,r);return o instanceof ku?e:o})();return new RO(n,{docsPath:t,...r})}_T();w5();MO();Ng();c();Oc();c();c();F6();xr();var S5=class extends be{constructor(){super(\"`baseFeeMultiplier` must be greater than 1.\",{name:\"BaseFeeScalarError\"})}},Oy=class extends be{constructor(){super(\"Chain does not support EIP-1559 fees.\",{name:\"Eip1559FeesNotSupportedError\"})}},OO=class extends be{constructor({maxPriorityFeePerGas:t}){super(`\\\\`maxFeePerGas\\\\` cannot be less than the \\\\`maxPriorityFeePerGas\\\\` (${fa(t)} gwei).`,{name:\"MaxFeePerGasTooLowError\"})}};c();os();c();c();xr();var C5=class extends be{constructor({blockHash:t,blockNumber:r}){let n=\"Block\";t&&(n=`Block at hash \"${t}\"`),r&&(n=`Block at number \"${r}\"`),super(`${n} could not be found.`,{name:\"BlockNotFoundError\"})}};Ht();c();c();os();var OQ={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"};function T5(e,t){let r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...e.blockTimestamp!=null&&{blockTimestamp:BigInt(e.blockTimestamp)},chainId:e.chainId?Sa(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?Sa(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?OQ[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(r.authorizationList=Abt(e.authorizationList)),r.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof r.v==\"bigint\"){if(r.v===0n||r.v===27n)return 0;if(r.v===1n||r.v===28n)return 1;if(r.v>=35n)return r.v%2n===0n?1:0}})(),r.type===\"legacy\"&&(delete r.accessList,delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.yParity),r.type===\"eip2930\"&&(delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r.type===\"eip1559\"&&delete r.maxFeePerBlobGas,r}function Abt(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function NO(e,t){let r=(e.transactions??[]).map(n=>typeof n==\"string\"?n:T5(n));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function Ca(e,{blockHash:t,blockNumber:r,blockTag:n=e.experimental_blockTag??\"latest\",includeTransactions:o}={}){let s=o??!1,u=r!==void 0?Fe(r):void 0,f=null;if(t?f=await e.request({method:\"eth_getBlockByHash\",params:[t,s]},{dedupe:!0}):f=await e.request({method:\"eth_getBlockByNumber\",params:[u||n,s]},{dedupe:!!u}),!f)throw new C5({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||NO)(f,\"getBlock\")}c();async function _5(e){let t=await e.request({method:\"eth_gasPrice\"});return BigInt(t)}async function HDe(e,t){return NQ(e,t)}async function NQ(e,t){let{block:r,chain:n=e.chain,request:o}=t||{};try{let s=n?.fees?.maxPriorityFeePerGas??n?.fees?.defaultPriorityFee;if(typeof s==\"function\"){let f=r||await Ue(e,Ca,\"getBlock\")({}),d=await s({block:f,client:e,request:o});if(d===null)throw new Error;return d}if(typeof s<\"u\")return s;let u=await e.request({method:\"eth_maxPriorityFeePerGas\"});return Va(u)}catch{let[s,u]=await Promise.all([r?Promise.resolve(r):Ue(e,Ca,\"getBlock\")({}),Ue(e,_5,\"getGasPrice\")({})]);if(typeof s.baseFeePerGas!=\"bigint\")throw new Oy;let f=u-s.baseFeePerGas;return f<0n?0n:f}}async function LDe(e,t){return UO(e,t)}async function UO(e,t){let{block:r,chain:n=e.chain,request:o,type:s=\"eip1559\"}=t||{},u=await(async()=>typeof n?.fees?.baseFeeMultiplier==\"function\"?n.fees.baseFeeMultiplier({block:r,client:e,request:o}):n?.fees?.baseFeeMultiplier??1.2)();if(u<1)throw new S5;let d=10**(u.toString().split(\".\")[1]?.length??0),m=v=>v*BigInt(Math.ceil(u*d))/BigInt(d),h=r||await Ue(e,Ca,\"getBlock\")({});if(typeof n?.fees?.estimateFeesPerGas==\"function\"){let v=await n.fees.estimateFeesPerGas({block:r,client:e,multiply:m,request:o,type:s});if(v!==null)return v}if(s===\"eip1559\"){if(typeof h.baseFeePerGas!=\"bigint\")throw new Oy;let v=typeof o?.maxPriorityFeePerGas==\"bigint\"?o.maxPriorityFeePerGas:await NQ(e,{block:h,chain:n,request:o}),E=m(h.baseFeePerGas);return{maxFeePerGas:o?.maxFeePerGas??E+v,maxPriorityFeePerGas:v}}return{gasPrice:o?.gasPrice??m(await Ue(e,_5,\"getGasPrice\")({}))}}c();os();Ht();async function DO(e,{address:t,blockTag:r=\"latest\",blockNumber:n}){let o=await e.request({method:\"eth_getTransactionCount\",params:[t,typeof n==\"bigint\"?Fe(n):r]},{dedupe:!!n});return Sa(o)}c();Wa();Ht();function HO(e){let{kzg:t}=e,r=e.to??(typeof e.blobs[0]==\"string\"?\"hex\":\"bytes\"),n=typeof e.blobs[0]==\"string\"?e.blobs.map(s=>Ka(s)):e.blobs,o=[];for(let s of n)o.push(Uint8Array.from(t.blobToKzgCommitment(s)));return r===\"bytes\"?o:o.map(s=>Or(s))}c();Wa();Ht();function LO(e){let{kzg:t}=e,r=e.to??(typeof e.blobs[0]==\"string\"?\"hex\":\"bytes\"),n=typeof e.blobs[0]==\"string\"?e.blobs.map(u=>Ka(u)):e.blobs,o=typeof e.commitments[0]==\"string\"?e.commitments.map(u=>Ka(u)):e.commitments,s=[];for(let u=0;u<n.length;u++){let f=n[u],d=o[u];s.push(Uint8Array.from(t.computeBlobKzgProof(f,d)))}return r===\"bytes\"?s:s.map(u=>Or(u))}c();c();Ht();c();TS();Ll();Wa();Ht();function zDe(e,t){let r=t||\"hex\",n=O0(Ro(e,{strict:!1})?Au(e):e);return r===\"bytes\"?n:Wo(n)}function FDe(e){let{commitment:t,version:r=1}=e,n=e.to??(typeof t==\"string\"?\"hex\":\"bytes\"),o=zDe(t,\"bytes\");return o.set([r],0),n===\"bytes\"?o:Or(o)}function jDe(e){let{commitments:t,version:r}=e,n=e.to??(typeof t[0]==\"string\"?\"hex\":\"bytes\"),o=[];for(let s of t)o.push(FDe({commitment:s,to:n,version:r}));return o}c();c();c();xr();var zO=class extends be{constructor({maxSize:t,size:r}){super(\"Blob size is too large.\",{metaMessages:[`Max: ${t} bytes`,`Given: ${r} bytes`],name:\"BlobSizeTooLargeError\"})}},FO=class extends be{constructor(){super(\"Blob data must not be empty.\",{name:\"EmptyBlobError\"})}};bO();wu();Wa();Ht();function qDe(e){let t=e.to??(typeof e.data==\"string\"?\"hex\":\"bytes\"),r=typeof e.data==\"string\"?Ka(e.data):e.data,n=wr(r);if(!n)throw new FO;if(n>761855)throw new zO({maxSize:761855,size:n});let o=[],s=!0,u=0;for(;s;){let f=H6(new Uint8Array(131072)),d=0;for(;d<4096;){let m=r.slice(u,u+31);if(f.pushByte(0),f.pushBytes(m),m.length<31){f.pushByte(128),s=!1;break}d++,u+=31}o.push(f)}return t===\"bytes\"?o.map(f=>f.bytes):o.map(f=>Or(f.bytes))}function $De(e){let{data:t,kzg:r,to:n}=e,o=e.blobs??qDe({data:t,to:n}),s=e.commitments??HO({blobs:o,kzg:r,to:n}),u=e.proofs??LO({blobs:o,commitments:s,kzg:r,to:n}),f=[];for(let d=0;d<o.length;d++)f.push({blob:o[d],commitment:s[d],proof:u[d]});return f}xT();Ng();c();zm();function GDe(e){if(e.type)return e.type;if(typeof e.authorizationList<\"u\")return\"eip7702\";if(typeof e.blobs<\"u\"||typeof e.blobVersionedHashes<\"u\"||typeof e.maxFeePerBlobGas<\"u\"||typeof e.sidecars<\"u\")return\"eip4844\";if(typeof e.maxFeePerGas<\"u\"||typeof e.maxPriorityFeePerGas<\"u\")return\"eip1559\";if(typeof e.gasPrice<\"u\")return typeof e.accessList<\"u\"?\"eip2930\":\"legacy\";throw new AO({transaction:e})}c();Oc();c();Og();zm();TT();function VDe(e,{docsPath:t,...r}){let n=(()=>{let o=Ry(e,r);return o instanceof ku?e:o})();return new SO(n,{docsPath:t,...r})}_T();w5();Ng();c();os();async function k5(e){let t=await e.request({method:\"eth_chainId\"},{dedupe:!0});return Sa(t)}async function jO(e,t){let{account:r=e.account,accessList:n,authorizationList:o,chain:s=e.chain,blobVersionedHashes:u,blobs:f,data:d,gas:m,gasPrice:h,maxFeePerBlobGas:y,maxFeePerGas:v,maxPriorityFeePerGas:E,nonce:C,nonceManager:B,to:R,type:M,value:U,...O}=t,N=await(async()=>{if(!r||!B||typeof C<\"u\")return C;let J=jn(r),Y=s?s.id:await Ue(e,k5,\"getChainId\")({});return await B.consume({address:J.address,chainId:Y,client:e})})();Bu(t);let j=s?.formatters?.transactionRequest?.format,G=(j||Od)({...My(O,{format:j}),account:r?jn(r):void 0,accessList:n,authorizationList:o,blobs:f,blobVersionedHashes:u,data:d,gas:m,gasPrice:h,maxFeePerBlobGas:y,maxFeePerGas:v,maxPriorityFeePerGas:E,nonce:N,to:R,type:M,value:U},\"fillTransaction\");try{let J=await e.request({method:\"eth_fillTransaction\",params:[G]}),W=(s?.formatters?.transaction?.format||T5)(J.tx);delete W.blockHash,delete W.blockNumber,delete W.r,delete W.s,delete W.transactionIndex,delete W.v,delete W.yParity,W.data=W.input,W.gas&&(W.gas=t.gas??W.gas),W.gasPrice&&(W.gasPrice=t.gasPrice??W.gasPrice),W.maxFeePerBlobGas&&(W.maxFeePerBlobGas=t.maxFeePerBlobGas??W.maxFeePerBlobGas),W.maxFeePerGas&&(W.maxFeePerGas=t.maxFeePerGas??W.maxFeePerGas),W.maxPriorityFeePerGas&&(W.maxPriorityFeePerGas=t.maxPriorityFeePerGas??W.maxPriorityFeePerGas),typeof W.nonce<\"u\"&&(W.nonce=t.nonce??W.nonce);let ie=await(async()=>{if(typeof s?.fees?.baseFeeMultiplier==\"function\"){let T=await Ue(e,Ca,\"getBlock\")({});return s.fees.baseFeeMultiplier({block:T,client:e,request:t})}return s?.fees?.baseFeeMultiplier??1.2})();if(ie<1)throw new S5;let H=10**(ie.toString().split(\".\")[1]?.length??0),A=T=>T*BigInt(Math.ceil(ie*H))/BigInt(H);return W.feePayerSignature||(W.maxFeePerGas&&!t.maxFeePerGas&&(W.maxFeePerGas=A(W.maxFeePerGas)),W.gasPrice&&!t.gasPrice&&(W.gasPrice=A(W.gasPrice))),{raw:J.raw,transaction:{from:G.from,...W},...J.capabilities?{capabilities:J.capabilities}:{}}}catch(J){throw VDe(J,{...t,chain:e.chain})}}var Cbt=[\"blobVersionedHashes\",\"chainId\",\"fees\",\"gas\",\"nonce\",\"type\"],KDe=new Map,UQ=new Bd(128);async function qO(e,t){let r=t;r.account??(r.account=e.account),r.parameters??(r.parameters=Cbt);let{account:n,chain:o=e.chain,nonceManager:s,parameters:u}=r,f=(()=>{if(typeof o?.prepareTransactionRequest==\"function\")return{fn:o.prepareTransactionRequest,runAt:[\"beforeFillTransaction\"]};if(Array.isArray(o?.prepareTransactionRequest))return{fn:o.prepareTransactionRequest[0],runAt:o.prepareTransactionRequest[1].runAt}})(),d;async function m(){return d||(typeof r.chainId<\"u\"?r.chainId:o?o.id:(d=await Ue(e,k5,\"getChainId\")({}),d))}let h=n&&jn(n),y=r.nonce;if(u.includes(\"nonce\")&&typeof y>\"u\"&&h&&s){let N=await m();y=await s.consume({address:h.address,chainId:N,client:e})}f?.fn&&f.runAt?.includes(\"beforeFillTransaction\")&&(r=await f.fn({...r,chain:o},{phase:\"beforeFillTransaction\"}),y??(y=r.nonce));let E=((u.includes(\"blobVersionedHashes\")||u.includes(\"sidecars\"))&&r.kzg&&r.blobs||UQ.get(e.uid)===!1||![\"fees\",\"gas\"].some(j=>u.includes(j))?!1:!!(u.includes(\"chainId\")&&typeof r.chainId!=\"number\"||u.includes(\"nonce\")&&typeof y!=\"number\"||u.includes(\"fees\")&&typeof r.gasPrice!=\"bigint\"&&(typeof r.maxFeePerGas!=\"bigint\"||typeof r.maxPriorityFeePerGas!=\"bigint\")||u.includes(\"gas\")&&typeof r.gas!=\"bigint\"))?await Ue(e,jO,\"fillTransaction\")({...r,nonce:y}).then(N=>{let{chainId:j,from:K,gas:G,gasPrice:J,nonce:Y,maxFeePerBlobGas:W,maxFeePerGas:ie,maxPriorityFeePerGas:re,type:H,...A}=N.transaction;return UQ.set(e.uid,!0),{...r,...K?{from:K}:{},...H&&!r.type?{type:H}:{},...typeof j<\"u\"?{chainId:j}:{},...typeof G<\"u\"?{gas:G}:{},...typeof J<\"u\"?{gasPrice:J}:{},...typeof Y<\"u\"?{nonce:Y}:{},...typeof W<\"u\"&&r.type!==\"legacy\"&&r.type!==\"eip2930\"?{maxFeePerBlobGas:W}:{},...typeof ie<\"u\"&&r.type!==\"legacy\"&&r.type!==\"eip2930\"?{maxFeePerGas:ie}:{},...typeof re<\"u\"&&r.type!==\"legacy\"&&r.type!==\"eip2930\"?{maxPriorityFeePerGas:re}:{},...\"nonceKey\"in A&&typeof A.nonceKey<\"u\"?{nonceKey:A.nonceKey}:{},...\"keyAuthorization\"in A&&typeof A.keyAuthorization<\"u\"&&A.keyAuthorization!==null&&!(\"keyAuthorization\"in r)?{keyAuthorization:A.keyAuthorization}:{},...\"feePayerSignature\"in A&&typeof A.feePayerSignature<\"u\"&&A.feePayerSignature!==null?{feePayerSignature:A.feePayerSignature}:{},...\"feeToken\"in A&&typeof A.feeToken<\"u\"&&A.feeToken!==null&&!(\"feeToken\"in r)?{feeToken:A.feeToken}:{},...N.capabilities?{_capabilities:N.capabilities}:{}}}).catch(N=>{let j=N;if(j.name!==\"TransactionExecutionError\")return r;if(j.walk?.(J=>J.name===\"ExecutionRevertedError\"))throw N;return j.walk?.(J=>{let Y=J;return Y.name===\"MethodNotFoundRpcError\"||Y.name===\"MethodNotSupportedRpcError\"||Y.message?.includes(\"eth_fillTransaction is not available\")})&&UQ.set(e.uid,!1),r}):r;y??(y=E.nonce),r={...E,...h?{from:h?.address}:{},...typeof y<\"u\"?{nonce:y}:{}};let{blobs:C,gas:B,kzg:R,type:M}=r;f?.fn&&f.runAt?.includes(\"beforeFillParameters\")&&(r=await f.fn({...r,chain:o},{phase:\"beforeFillParameters\"}));let U;async function O(){return U||(U=await Ue(e,Ca,\"getBlock\")({blockTag:\"latest\"}),U)}if(u.includes(\"nonce\")&&typeof y>\"u\"&&h&&!s&&(r.nonce=await Ue(e,DO,\"getTransactionCount\")({address:h.address,blockTag:\"pending\"})),(u.includes(\"blobVersionedHashes\")||u.includes(\"sidecars\"))&&C&&R){let N=HO({blobs:C,kzg:R});if(u.includes(\"blobVersionedHashes\")){let j=jDe({commitments:N,to:\"hex\"});r.blobVersionedHashes=j}if(u.includes(\"sidecars\")){let j=LO({blobs:C,commitments:N,kzg:R}),K=$De({blobs:C,commitments:N,proofs:j,to:\"hex\"});r.sidecars=K}}if(u.includes(\"chainId\")&&(r.chainId=await m()),(u.includes(\"fees\")||u.includes(\"type\"))&&typeof M>\"u\")try{r.type=GDe(r)}catch{let N=KDe.get(e.uid);typeof N>\"u\"&&(N=typeof(await O())?.baseFeePerGas==\"bigint\",KDe.set(e.uid,N)),r.type=N?\"eip1559\":\"legacy\"}if(u.includes(\"fees\"))if(r.type!==\"legacy\"&&r.type!==\"eip2930\"){if(typeof r.maxFeePerGas>\"u\"||typeof r.maxPriorityFeePerGas>\"u\"){let N=await O(),{maxFeePerGas:j,maxPriorityFeePerGas:K}=await UO(e,{block:N,chain:o,request:r});if(typeof r.maxPriorityFeePerGas>\"u\"&&r.maxFeePerGas&&r.maxFeePerGas<K)throw new OO({maxPriorityFeePerGas:K});r.maxPriorityFeePerGas=K,r.maxFeePerGas=j}}else{if(typeof r.maxFeePerGas<\"u\"||typeof r.maxPriorityFeePerGas<\"u\")throw new Oy;if(typeof r.gasPrice>\"u\"){let N=await O(),{gasPrice:j}=await UO(e,{block:N,chain:o,request:r,type:\"legacy\"});r.gasPrice=j}}return u.includes(\"gas\")&&typeof B>\"u\"&&(r.gas=await Ue(e,B5,\"estimateGas\")({...r,account:h,prepare:h?.type===\"local\"?[]:[\"blobVersionedHashes\"]})),f?.fn&&f.runAt?.includes(\"afterFillParameters\")&&(r=await f.fn({...r,chain:o},{phase:\"afterFillParameters\"})),Bu(r),delete r.parameters,r}async function B5(e,t){let{account:r=e.account,prepare:n=!0}=t,o=r?jn(r):void 0,s=(()=>{if(Array.isArray(n))return n;if(o?.type!==\"local\")return[\"blobVersionedHashes\"]})();try{let u=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await PO({authorization:t.authorizationList[0]}).catch(()=>{throw new be(\"`to` is required. Could not infer from `authorizationList`\")})})(),{accessList:f,authorizationList:d,blobs:m,blobVersionedHashes:h,blockNumber:y,blockTag:v,data:E,gas:C,gasPrice:B,maxFeePerBlobGas:R,maxFeePerGas:M,maxPriorityFeePerGas:U,nonce:O,value:N,stateOverride:j,...K}=n?await qO(e,{...t,parameters:s,to:u}):t;if(C&&t.gas!==C)return C;let J=(typeof y==\"bigint\"?Fe(y):void 0)||v,Y=E5(j);Bu(t);let W=e.chain?.formatters?.transactionRequest?.format,re=(W||Od)({...My(K,{format:W}),account:o,accessList:f,authorizationList:d,blobs:m,blobVersionedHashes:h,data:E,gasPrice:B,maxFeePerBlobGas:R,maxFeePerGas:M,maxPriorityFeePerGas:U,nonce:O,to:u,value:N},\"estimateGas\");return BigInt(await e.request({method:\"eth_estimateGas\",params:Y?[re,J??e.experimental_blockTag??\"latest\",Y]:J?[re,J]:[re]}))}catch(u){throw UDe(u,{...t,account:o,chain:e.chain})}}async function WDe(e,t){let{abi:r,address:n,args:o,functionName:s,dataSuffix:u=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,...f}=t,d=_n({abi:r,args:o,functionName:s});try{return await Ue(e,B5,\"estimateGas\")({data:`${d}${u?u.replace(\"0x\",\"\"):\"\"}`,to:n,...f})}catch(m){let h=f.account?jn(f.account):void 0;throw Gl(m,{abi:r,address:n,args:o,docsPath:\"/docs/contract/estimateContractGas\",functionName:s,sender:h?.address})}}c();Cy();c();c();I5();Wa();c();function Ta(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}ql();gT();c();Po();TQ();wu();gT();ET();Mm();var QDe=\"/docs/contract/decodeEventLog\";function Ug(e){let{abi:t,data:r,strict:n,topics:o}=e,s=n??!0,[u,...f]=o;if(!u)throw new ZM({docsPath:QDe});let d=t.find(M=>M.type===\"event\"&&u===Ey(la(M)));if(!(d&&\"name\"in d)||d.type!==\"event\")throw new JM(u,{docsPath:QDe});let{name:m,inputs:h}=d,y=h?.some(M=>!(\"name\"in M&&M.name)),v=y?[]:{},E=h.map((M,U)=>[M,U]).filter(([M])=>\"indexed\"in M&&M.indexed),C=[];for(let M=0;M<E.length;M++){let[U,O]=E[M],N=f[M];if(!N){if(s)throw new xy({abiItem:d,param:U});C.push([U,O]);continue}v[y?O:U.name||O]=Tbt({param:U,value:N})}let B=h.filter(M=>!(\"indexed\"in M&&M.indexed)),R=s?B:[...C.map(([M])=>M),...B];if(R.length>0){if(r&&r!==\"0x\")try{let M=Lm(R,r);if(M){let U=0;if(!s)for(let[O,N]of C)v[y?N:O.name||N]=M[U++];if(y)for(let O=0;O<h.length;O++)v[O]===void 0&&U<M.length&&(v[O]=M[U++]);else for(let O=0;O<B.length;O++)v[B[O].name]=M[U++]}}catch(M){if(s)throw M instanceof R6||M instanceof D6?new Om({abiItem:d,data:r,params:R,size:wr(r)}):M}else if(s)throw new Om({abiItem:d,data:\"0x\",params:R,size:0})}return{eventName:m,args:Object.values(v).length>0?v:void 0}}function Tbt({param:e,value:t}){return e.type===\"string\"||e.type===\"bytes\"||e.type===\"tuple\"||e.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/)?t:(Lm([e],t)||[])[0]}function P5(e){let{abi:t,args:r,logs:n,strict:o=!0}=e,s=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),u=t.filter(f=>f.type===\"event\").map(f=>({abi:f,selector:Ey(f)}));return n.map(f=>{let d=typeof f.blockNumber==\"string\"?Ta(f):f,m=u.filter(v=>d.topics[0]===v.selector);if(m.length===0)return null;let h,y;for(let v of m)try{h=Ug({...d,abi:[v.abi],strict:!0}),y=v;break}catch{}if(!h&&!o){y=m[0];try{h=Ug({data:d.data,topics:d.topics,abi:[y.abi],strict:!1})}catch{let v=y.abi.inputs?.some(E=>!(\"name\"in E&&E.name));return{...d,args:v?[]:{},eventName:y.abi.name}}}return!h||!y||s&&!s.includes(h.eventName)||!_bt({args:h.args,inputs:y.abi.inputs,matchArgs:r})?null:{...h,...d}}).filter(Boolean)}function _bt(e){let{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;if(!t)return!1;function o(s,u,f){try{return s.type===\"address\"?Vl(u,f):s.type===\"string\"||s.type===\"bytes\"?Tn(Au(u))===f:u===f}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((s,u)=>{if(s==null)return!0;let f=r[u];return f?(Array.isArray(s)?s:[s]).some(m=>o(f,m,t[u])):!1}):typeof t==\"object\"&&!Array.isArray(t)&&typeof n==\"object\"&&!Array.isArray(n)?Object.entries(n).every(([s,u])=>{if(u==null)return!0;let f=r.find(m=>m.name===s);return f?(Array.isArray(u)?u:[u]).some(m=>o(f,m,t[s])):!1}):!1}Ht();async function R5(e,{address:t,blockHash:r,fromBlock:n,toBlock:o,event:s,events:u,args:f,strict:d}={}){let m=d??!1,h=u??(s?[s]:void 0),y=[];h&&(y=[h.flatMap(B=>Pd({abi:[B],eventName:B.name,args:u?void 0:f}))],s&&(y=y[0]));let v;r?v=await e.request({method:\"eth_getLogs\",params:[{address:t,topics:y,blockHash:r}]}):v=await e.request({method:\"eth_getLogs\",params:[{address:t,topics:y,fromBlock:typeof n==\"bigint\"?Fe(n):n,toBlock:typeof o==\"bigint\"?Fe(o):o}]});let E=v.map(C=>Ta(C));return h?P5({abi:h,args:f,logs:E,strict:m}):E}async function $O(e,t){let{abi:r,address:n,args:o,blockHash:s,eventName:u,fromBlock:f,toBlock:d,strict:m}=t,h=u?Ws({abi:r,name:u}):void 0,y=h?void 0:r.filter(v=>v.type===\"event\");return Ue(e,R5,\"getLogs\")({address:n,args:o,blockHash:s,event:h,events:y,fromBlock:f,toBlock:d,strict:m})}c();qm();Nc();zg();async function Zo(e,t){let{abi:r,address:n,args:o,functionName:s,...u}=t,f=_n({abi:r,args:o,functionName:s});try{let{data:d}=await Ue(e,Ru,\"call\")({...u,data:f,to:n});return xi({abi:r,args:o,functionName:s,data:d||\"0x\"})}catch(d){throw Gl(d,{abi:r,address:n,args:o,docsPath:\"/docs/contract/readContract\",functionName:s})}}c();Oc();qm();Nc();zg();async function UHe(e,t){let{abi:r,address:n,args:o,functionName:s,dataSuffix:u=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,...f}=t,d=f.account?jn(f.account):e.account,m=_n({abi:r,args:o,functionName:s});try{let{data:h}=await Ue(e,Ru,\"call\")({batch:!1,data:`${m}${u?u.replace(\"0x\",\"\"):\"\"}`,to:n,...f,account:d}),y=xi({abi:r,args:o,functionName:s,data:h||\"0x\"}),v=r.filter(E=>\"name\"in E&&E.name===t.functionName);return{result:y,request:{abi:v,address:n,args:o,dataSuffix:u,functionName:s,...f,account:d}}}catch(h){throw Gl(h,{abi:r,address:n,args:o,docsPath:\"/docs/contract/simulateContract\",functionName:s,sender:d?.address})}}c();Po();ST();c();var cZ=new Map,DHe=new Map,Kbt=0;function Js(e,t,r){let n=++Kbt,o=()=>cZ.get(e)||[],s=()=>{let h=o();cZ.set(e,h.filter(y=>y.id!==n))},u=()=>{let h=o();if(!h.some(v=>v.id===n))return;let y=DHe.get(e);if(h.length===1&&y){let v=y();v instanceof Promise&&v.catch(()=>{})}s()},f=o();if(cZ.set(e,[...f,{id:n,fns:t}]),f&&f.length>0)return u;let d={};for(let h in t)d[h]=((...y)=>{let v=o();if(v.length!==0)for(let E of v)E.fns[h]?.(...y)});let m=r(d);return typeof m==\"function\"&&DHe.set(e,m),u}c();c();async function DT(e){return new Promise(t=>setTimeout(t,e))}function Hd(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let o=!0,s=()=>o=!1;return(async()=>{let f;t&&(f=await e({unpoll:s}));let d=await r?.(f)??n;await DT(d);let m=async()=>{o&&(await e({unpoll:s}),await DT(n),m())};m()})(),s}Qs();c();c();var Wbt=new Map,Qbt=new Map;function HHe(e){let t=(o,s)=>({clear:()=>s.delete(o),get:()=>s.get(o),set:u=>s.set(o,u)}),r=t(e,Wbt),n=t(e,Qbt);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}async function LHe(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){let n=HHe(t),o=n.response.get();if(o&&r>0&&Date.now()-o.created.getTime()<r)return o.data;let s=n.promise.get();s||(s=e(),n.promise.set(s));try{let u=await s;return n.response.set({created:new Date,data:u}),u}finally{n.promise.clear()}}var Zbt=e=>`blockNumber.${e}`;async function Ld(e,{cacheTime:t=e.cacheTime}={}){let r=await LHe(()=>e.request({method:\"eth_blockNumber\"}),{cacheKey:Zbt(e.uid),cacheTime:t});return BigInt(r)}c();async function Dy(e,{filter:t}){let r=\"strict\"in t&&t.strict,n=await t.request({method:\"eth_getFilterChanges\",params:[t.id]});if(typeof n[0]==\"string\")return n;let o=n.map(s=>Ta(s));return!(\"abi\"in t)||!t.abi?o:P5({abi:t.abi,logs:o,strict:r})}c();async function Hy(e,{filter:t}){return t.request({method:\"eth_uninstallFilter\",params:[t.id]})}function zHe(e,t){let{abi:r,address:n,args:o,batch:s=!0,eventName:u,fromBlock:f,onError:d,onLogs:m,poll:h,pollingInterval:y=e.pollingInterval,strict:v}=t;return(typeof h<\"u\"?h:typeof f==\"bigint\"?!0:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")))?(()=>{let R=v??!1,M=Nr([\"watchContractEvent\",n,o,s,e.uid,u,y,R,f]);return Js(M,{onLogs:m,onError:d},U=>{let O;f!==void 0&&(O=f-1n);let N,j=!1,K=Hd(async()=>{if(!j){try{N=await Ue(e,pO,\"createContractEventFilter\")({abi:r,address:n,args:o,eventName:u,strict:R,fromBlock:f})}catch{}j=!0;return}try{let G;if(N)G=await Ue(e,Dy,\"getFilterChanges\")({filter:N});else{let J=await Ue(e,Ld,\"getBlockNumber\")({});O&&O<J?G=await Ue(e,$O,\"getContractEvents\")({abi:r,address:n,args:o,eventName:u,fromBlock:O+1n,toBlock:J,strict:R}):G=[],O=J}if(G.length===0)return;if(s)U.onLogs(G);else for(let J of G)U.onLogs([J])}catch(G){N&&G instanceof _u&&(j=!1),U.onError?.(G)}},{emitOnBegin:!0,interval:y});return async()=>{N&&await Ue(e,Hy,\"uninstallFilter\")({filter:N}),K()}})})():(()=>{let R=v??!1,M=Nr([\"watchContractEvent\",n,o,s,e.uid,u,y,R]),U=!0,O=()=>U=!1;return Js(M,{onLogs:m,onError:d},N=>((async()=>{try{let j=(()=>{if(e.transport.type===\"fallback\"){let J=e.transport.transports.find(Y=>Y.config.type===\"webSocket\"||Y.config.type===\"ipc\");return J?J.value:e.transport}return e.transport})(),K=u?Pd({abi:r,eventName:u,args:o}):[],{unsubscribe:G}=await j.subscribe({params:[\"logs\",{address:n,topics:K}],onData(J){if(!U)return;let Y=J.result;try{let{eventName:W,args:ie}=Ug({abi:r,data:Y.data,topics:Y.topics,strict:v}),re=Ta(Y,{args:ie,eventName:W});N.onLogs([re])}catch(W){let ie,re;if(W instanceof Om||W instanceof xy){if(v)return;ie=W.abiItem.name,re=W.abiItem.inputs?.some(A=>!(\"name\"in A&&A.name))}let H=Ta(Y,{args:re?[]:{},eventName:ie});N.onLogs([H])}},onError(J){N.onError?.(J)}});O=G,U||O()}catch(j){d?.(j)}})(),()=>O()))})()}c();async function FHe(e,{serializedTransaction:t}){return e.request({method:\"eth_sendRawTransaction\",params:[t]},{retryCount:0})}c();function HT(e,{delay:t=100,retryCount:r=2,shouldRetry:n=()=>!0}={}){return new Promise((o,s)=>{let u=async({count:f=0}={})=>{let d=async({error:m})=>{let h=typeof t==\"function\"?t({count:f,error:m}):t;h&&await DT(h),u({count:f+1})};try{let m=await e();o(m)}catch(m){if(f<r&&await n({count:f,error:m}))return d({error:m});s(m)}};u()})}c();os();var Jbt={\"0x0\":\"reverted\",\"0x1\":\"success\"};function lN(e,t){let r={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(n=>Ta(n)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Sa(e.transactionIndex):null,status:e.status?Jbt[e.status]:null,type:e.type?OQ[e.type]||e.type:null};return e.blobGasPrice&&(r.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(r.blobGasUsed=BigInt(e.blobGasUsed)),r}c();Oc();c();var fN=256,dN;function pN(e=11){if(!dN||fN+e>256*2){dN=\"\",fN=0;for(let t=0;t<256;t++)dN+=(256+Math.random()*256|0).toString(16).substring(1)}return dN.substring(fN,fN+++e)}function jHe(e){let{batch:t,chain:r,ccipRead:n,dataSuffix:o,key:s=\"base\",name:u=\"Base Client\",type:f=\"base\"}=e,d=e.experimental_blockTag??(typeof r?.experimental_preconfirmationTime==\"number\"?\"pending\":void 0),m=r?.blockTime??12e3,h=Math.min(Math.max(Math.floor(m/2),500),4e3),y=e.pollingInterval??h,v=e.cacheTime??y,E=e.account?jn(e.account):void 0,{config:C,request:B,value:R}=e.transport({account:E,chain:r,pollingInterval:y}),M={...C,...R},U={account:E,batch:t,cacheTime:v,ccipRead:n,chain:r,dataSuffix:o,key:s,name:u,pollingInterval:y,request:B,transport:M,type:f,uid:pN(),...d?{experimental_blockTag:d}:{}};function O(N){return j=>{let K=j(N);for(let J in U)delete K[J];let G={...N,...K};return Object.assign(G,{extend:O(G)})}}return Object.assign(U,{extend:O(U)})}c();c();c();Vm();qm();Nc();Lg();bT();Ht();c();xr();_y();function z5(e){if(!(e instanceof be))return!1;let t=e.walk(r=>r instanceof Ig);return t instanceof Ig?t.data?.errorName===\"HttpError\"||t.data?.errorName===\"ResolverError\"||t.data?.errorName===\"ResolverNotContract\"||t.data?.errorName===\"ResolverNotFound\"||t.data?.errorName===\"ReverseAddressMismatch\"||t.data?.errorName===\"UnsupportedResolverProfile\":!1}UT();c();Su();Wa();Ht();ql();c();Ll();function mN(e){if(e.length!==66||e.indexOf(\"[\")!==0||e.indexOf(\"]\")!==65)return null;let t=`0x${e.slice(1,65)}`;return Ro(t)?t:null}function LT(e){let t=new Uint8Array(32).fill(0);if(!e)return Or(t);let r=e.split(\".\");for(let n=r.length-1;n>=0;n-=1){let o=mN(r[n]),s=o?Au(o):Tn(jl(r[n]),\"bytes\");t=Tn(Qa([t,s]),\"bytes\")}return Or(t)}c();Wa();c();function qHe(e){return`[${e.slice(2)}]`}c();Wa();Ht();ql();function $He(e){let t=new Uint8Array(32).fill(0);return e?mN(e)||Tn(jl(e)):Or(t)}function F5(e){let t=e.replace(/^\\\\.|\\\\.$/gm,\"\");if(t.length===0)return new Uint8Array(1);let r=new Uint8Array(jl(t).byteLength+2),n=0,o=t.split(\".\");for(let s=0;s<o.length;s++){let u=jl(o[s]);u.byteLength>255&&(u=jl(qHe($He(o[s])))),r[n]=u.length,r.set(u,n+1),n+=u.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}async function GHe(e,t){let{blockNumber:r,blockTag:n,coinType:o,name:s,gatewayUrls:u,strict:f}=t,{chain:d}=e,m=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return Pu({blockNumber:r,chain:d,contract:\"ensUniversalResolver\"})})(),h=d?.ensTlds;if(h&&!h.some(v=>s.endsWith(v)))return null;let y=o!=null?[LT(s),BigInt(o)]:[LT(s)];try{let v=_n({abi:WQ,functionName:\"addr\",args:y}),E={address:m,abi:rN,functionName:\"resolveWithGateways\",args:[Wo(F5(s)),v,u??[Km]],blockNumber:r,blockTag:n},B=await Ue(e,Zo,\"readContract\")(E);if(B[0]===\"0x\")return null;let R=xi({abi:WQ,args:y,functionName:\"addr\",data:B[0]});return R===\"0x\"||Fl(R)===\"0x00\"?null:R}catch(v){if(f)throw v;if(z5(v))return null;throw v}}c();c();c();c();xr();var hN=class extends be{constructor({data:t}){super(\"Unable to extract image from metadata. The metadata may be malformed or invalid.\",{metaMessages:[\"- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.\",\"\",`Provided data: ${JSON.stringify(t)}`],name:\"EnsAvatarInvalidMetadataError\"})}},Ly=class extends be{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:\"EnsAvatarInvalidNftUriError\"})}},j5=class extends be{constructor({uri:t}){super(`Unable to resolve ENS avatar URI \"${t}\". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:\"EnsAvatarUriResolutionError\"})}},yN=class extends be{constructor({namespace:t}){super(`ENS NFT avatar namespace \"${t}\" is not supported. Must be \"erc721\" or \"erc1155\".`,{name:\"EnsAvatarUnsupportedNamespaceError\"})}};var Ybt=/(?<protocol>https?:\\\\/\\\\/[^/]*|ipfs:\\\\/|ipns:\\\\/|ar:\\\\/)?(?<root>\\\\/)?(?<subpath>ipfs\\\\/|ipns\\\\/)?(?<target>[\\\\w\\\\-.]+)(?<subtarget>\\\\/.*)?/,Xbt=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\\\\/(?<target>[\\\\w\\\\-.]+))?(?<subtarget>\\\\/.*)?$/,e1t=/^data:([a-zA-Z\\\\-/+]*);base64,([^\"].*)/,t1t=/^data:([a-zA-Z\\\\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function r1t(e){try{let t=await fetch(e,{method:\"HEAD\"});return t.status===200?t.headers.get(\"content-type\")?.startsWith(\"image/\"):!1}catch(t){return typeof t==\"object\"&&typeof t.response<\"u\"||!Object.hasOwn(globalThis,\"Image\")?!1:new Promise(r=>{let n=new Image;n.onload=()=>{r(!0)},n.onerror=()=>{r(!1)},n.src=e})}}function VHe(e,t){return e?e.endsWith(\"/\")?e.slice(0,-1):e:t}function uZ({uri:e,gatewayUrls:t}){let r=e1t.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=VHe(t?.ipfs,\"https://ipfs.io\"),o=VHe(t?.arweave,\"https://arweave.net\"),s=e.match(Ybt),{protocol:u,subpath:f,target:d,subtarget:m=\"\"}=s?.groups||{},h=u===\"ipns:/\"||f===\"ipns/\",y=u===\"ipfs:/\"||f===\"ipfs/\"||Xbt.test(e);if(e.startsWith(\"http\")&&!h&&!y){let E=e;return t?.arweave&&(E=e.replace(/https:\\\\/\\\\/arweave.net/g,t?.arweave)),{uri:E,isOnChain:!1,isEncoded:!1}}if((h||y)&&d)return{uri:`${n}/${h?\"ipns\":\"ipfs\"}/${d}${m}`,isOnChain:!1,isEncoded:!1};if(u===\"ar:/\"&&d)return{uri:`${o}/${d}${m||\"\"}`,isOnChain:!1,isEncoded:!1};let v=e.replace(t1t,\"\");if(v.startsWith(\"<svg\")&&(v=`data:image/svg+xml;base64,${btoa(v)}`),v.startsWith(\"data:\")||v.startsWith(\"{\"))return{uri:v,isOnChain:!0,isEncoded:!1};throw new j5({uri:e})}function lZ(e){if(typeof e!=\"object\"||!(\"image\"in e)&&!(\"image_url\"in e)&&!(\"image_data\"in e))throw new hN({data:e});return e.image||e.image_url||e.image_data}async function KHe({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(o=>o.json());return await bN({gatewayUrls:e,uri:lZ(r)})}catch{throw new j5({uri:t})}}async function bN({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=uZ({uri:t,gatewayUrls:e});if(n||await r1t(r))return r;throw new j5({uri:t})}function WHe(e){let t=e;t.startsWith(\"did:nft:\")&&(t=t.replace(\"did:nft:\",\"\").replace(/_/g,\"/\"));let[r,n,o]=t.split(\"/\"),[s,u]=r.split(\":\"),[f,d]=n.split(\":\");if(!s||s.toLowerCase()!==\"eip155\")throw new Ly({reason:\"Only EIP-155 supported\"});if(!u)throw new Ly({reason:\"Chain ID not found\"});if(!d)throw new Ly({reason:\"Contract address not found\"});if(!o)throw new Ly({reason:\"Token ID not found\"});if(!f)throw new Ly({reason:\"ERC namespace not found\"});return{chainID:Number.parseInt(u,10),namespace:f.toLowerCase(),contractAddress:d,tokenID:o}}async function QHe(e,{nft:t}){if(t.namespace===\"erc721\")return Zo(e,{address:t.contractAddress,abi:[{name:\"tokenURI\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"tokenId\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"tokenURI\",args:[BigInt(t.tokenID)]});if(t.namespace===\"erc1155\")return Zo(e,{address:t.contractAddress,abi:[{name:\"uri\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"_id\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"uri\",args:[BigInt(t.tokenID)]});throw new yN({namespace:t.namespace})}async function ZHe(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?n1t(e,{gatewayUrls:t,record:r}):bN({uri:r,gatewayUrls:t})}async function n1t(e,{gatewayUrls:t,record:r}){let n=WHe(r),o=await QHe(e,{nft:n}),{uri:s,isOnChain:u,isEncoded:f}=uZ({uri:o,gatewayUrls:t});if(u&&(s.includes(\"data:application/json;base64,\")||s.startsWith(\"{\"))){let m=f?atob(s.replace(\"data:application/json;base64,\",\"\")):s,h=JSON.parse(m);return bN({uri:lZ(h),gatewayUrls:t})}let d=n.tokenID;return n.namespace===\"erc1155\"&&(d=d.replace(\"0x\",\"\").padStart(64,\"0\")),KHe({gatewayUrls:t,uri:s.replace(/(?:0x)?{id}/,d)})}c();Vm();qm();Nc();Lg();Ht();UT();async function gN(e,t){let{blockNumber:r,blockTag:n,key:o,name:s,gatewayUrls:u,strict:f}=t,{chain:d}=e,m=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return Pu({blockNumber:r,chain:d,contract:\"ensUniversalResolver\"})})(),h=d?.ensTlds;if(h&&!h.some(y=>s.endsWith(y)))return null;try{let y={address:m,abi:rN,args:[Wo(F5(s)),_n({abi:KQ,functionName:\"text\",args:[LT(s),o]}),u??[Km]],functionName:\"resolveWithGateways\",blockNumber:r,blockTag:n},E=await Ue(e,Zo,\"readContract\")(y);if(E[0]===\"0x\")return null;let C=xi({abi:KQ,functionName:\"text\",data:E[0]});return C===\"\"?null:C}catch(y){if(f)throw y;if(z5(y))return null;throw y}}async function JHe(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:o,gatewayUrls:s,strict:u,universalResolverAddress:f}){let d=await Ue(e,gN,\"getEnsText\")({blockNumber:t,blockTag:r,key:\"avatar\",name:o,universalResolverAddress:f,gatewayUrls:s,strict:u});if(!d)return null;try{return await ZHe(e,{record:d,gatewayUrls:n})}catch{return null}}c();Vm();Lg();UT();async function YHe(e,t){let{address:r,blockNumber:n,blockTag:o,coinType:s=60n,gatewayUrls:u,strict:f}=t,{chain:d}=e,m=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return Pu({blockNumber:n,chain:d,contract:\"ensUniversalResolver\"})})();try{let h={address:m,abi:vHe,args:[r,s,u??[Km]],functionName:\"reverseWithGateways\",blockNumber:n,blockTag:o},y=Ue(e,Zo,\"readContract\"),[v]=await y(h);return v||null}catch(h){if(f)throw h;if(z5(h))return null;throw h}}c();Lg();Ht();async function XHe(e,t){let{blockNumber:r,blockTag:n,name:o}=t,{chain:s}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!s)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return Pu({blockNumber:r,chain:s,contract:\"ensUniversalResolver\"})})(),f=s?.ensTlds;if(f&&!f.some(m=>o.endsWith(m)))throw new Error(`${o} is not a valid ENS TLD (${f?.join(\", \")}) for chain \"${s.name}\" (id: ${s.id}).`);let[d]=await Ue(e,Zo,\"readContract\")({address:u,abi:[{inputs:[{type:\"bytes\"}],name:\"findResolver\",outputs:[{type:\"address\"},{type:\"bytes32\"},{type:\"uint256\"}],stateMutability:\"view\",type:\"function\"}],functionName:\"findResolver\",args:[Wo(F5(o))],blockNumber:r,blockTag:n});return d}zg();c();Oc();Ht();eZ();_T();w5();Ng();async function xN(e,t){let{account:r=e.account,blockNumber:n,blockTag:o=\"latest\",blobs:s,data:u,gas:f,gasPrice:d,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:y,to:v,value:E,...C}=t,B=r?jn(r):void 0;try{Bu(t);let M=(typeof n==\"bigint\"?Fe(n):void 0)||o,U=e.chain?.formatters?.transactionRequest?.format,N=(U||Od)({...My(C,{format:U}),account:B,blobs:s,data:u,gas:f,gasPrice:d,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:y,to:v,value:E},\"createAccessList\"),j=await e.request({method:\"eth_createAccessList\",params:[N,M]});return{accessList:j.accessList,gasUsed:BigInt(j.gasUsed)}}catch(R){throw oN(R,{...t,account:B,chain:e.chain})}}c();async function eLe(e){let t=Ty(e,{method:\"eth_newBlockFilter\"}),r=await e.request({method:\"eth_newBlockFilter\"});return{id:r,request:t(r),type:\"block\"}}c();Ht();async function vN(e,{address:t,args:r,event:n,events:o,fromBlock:s,strict:u,toBlock:f}={}){let d=o??(n?[n]:void 0),m=Ty(e,{method:\"eth_newFilter\"}),h=[];d&&(h=[d.flatMap(E=>Pd({abi:[E],eventName:E.name,args:r}))],n&&(h=h[0]));let y=await e.request({method:\"eth_newFilter\",params:[{address:t,fromBlock:typeof s==\"bigint\"?Fe(s):s,toBlock:typeof f==\"bigint\"?Fe(f):f,...h.length?{topics:h}:{}}]});return{abi:d,args:r,eventName:n?n.name:void 0,fromBlock:s,id:y,request:m(y),strict:!!u,toBlock:f,type:\"event\"}}c();async function wN(e){let t=Ty(e,{method:\"eth_newPendingTransactionFilter\"}),r=await e.request({method:\"eth_newPendingTransactionFilter\"});return{id:r,request:t(r),type:\"transaction\"}}c();Vm();qm();Nc();Ht();zg();async function tLe(e,{address:t,blockNumber:r,blockTag:n=e.experimental_blockTag??\"latest\"}){if(e.batch?.multicall&&e.chain?.contracts?.multicall3){let u=e.chain.contracts.multicall3.address,f=_n({abi:Dd,functionName:\"getEthBalance\",args:[t]}),{data:d}=await Ue(e,Ru,\"call\")({to:u,data:f,blockNumber:r,blockTag:n});return xi({abi:Dd,functionName:\"getEthBalance\",args:[t],data:d||\"0x\"})}let o=typeof r==\"bigint\"?Fe(r):void 0,s=await e.request({method:\"eth_getBalance\",params:[t,o||n]});return BigInt(s)}c();async function rLe(e){let t=await e.request({method:\"eth_blobBaseFee\"});return BigInt(t)}c();os();Ht();async function nLe(e,{blockHash:t,blockNumber:r,blockTag:n=\"latest\"}={}){let o=r!==void 0?Fe(r):void 0,s;return t?s=await e.request({method:\"eth_getBlockTransactionCountByHash\",params:[t]},{dedupe:!0}):s=await e.request({method:\"eth_getBlockTransactionCountByNumber\",params:[o||n]},{dedupe:!!o}),Sa(s)}c();Ht();async function Fg(e,{address:t,blockNumber:r,blockTag:n=\"latest\"}){let o=r!==void 0?Fe(r):void 0,s=await e.request({method:\"eth_getCode\",params:[t,o||n]},{dedupe:!!o});if(s!==\"0x\")return s}c();Sy();wu();_g();async function oLe(e,{address:t,blockNumber:r,blockTag:n=\"latest\"}){let o=await Fg(e,{address:t,...r!==void 0?{blockNumber:r}:{blockTag:n}});if(o&&wr(o)===23&&o.startsWith(\"0xef0100\"))return Nn(Cu(o,3,23))}c();c();xr();var EN=class extends be{constructor({address:t}){super(`No EIP-712 domain found on contract \"${t}\".`,{metaMessages:[\"Ensure that:\",`- The contract is deployed at the address \"${t}\".`,\"- `eip712Domain()` function exists on the contract.\",\"- `eip712Domain()` function matches signature to ERC-5267 specification.\"],name:\"Eip712DomainNotFoundError\"})}};async function aLe(e,t){let{address:r,factory:n,factoryData:o}=t;try{let[s,u,f,d,m,h,y]=await Ue(e,Zo,\"readContract\")({abi:o1t,address:r,functionName:\"eip712Domain\",factory:n,factoryData:o});return{domain:{name:u,version:f,chainId:Number(d),verifyingContract:m,salt:h},extensions:y,fields:s}}catch(s){let u=s;throw u.name===\"ContractFunctionExecutionError\"&&u.cause.name===\"ContractFunctionZeroDataError\"?new EN({address:r}):u}}var o1t=[{inputs:[],name:\"eip712Domain\",outputs:[{name:\"fields\",type:\"bytes1\"},{name:\"name\",type:\"string\"},{name:\"version\",type:\"string\"},{name:\"chainId\",type:\"uint256\"},{name:\"verifyingContract\",type:\"address\"},{name:\"salt\",type:\"bytes32\"},{name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"}];c();Ht();c();function iLe(e){return{baseFeePerGas:e.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(t=>t.map(r=>BigInt(r)))}}async function sLe(e,{blockCount:t,blockNumber:r,blockTag:n=\"latest\",rewardPercentiles:o}){let s=typeof r==\"bigint\"?Fe(r):void 0,u=await e.request({method:\"eth_feeHistory\",params:[Fe(t),s||n,o]},{dedupe:!!s});return iLe(u)}c();async function cLe(e,{filter:t}){let r=t.strict??!1,o=(await t.request({method:\"eth_getFilterLogs\",params:[t.id]})).map(s=>Ta(s));return t.abi?P5({abi:t.abi,logs:o,strict:r}):o}c();Ht();c();c();c();Sy();I5();async function uLe({address:e,authorization:t,signature:r}){return Vl(Nn(e),await PO({authorization:t,signature:r}))}c();xr();Pg();ST();c();xT();var AN=new Bd(8192);function lLe(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(AN.get(r))return AN.get(r);let n=e().finally(()=>AN.delete(r));return AN.set(r,n),n}Qs();function fLe(e,t={}){return async(r,n={})=>{let{dedupe:o=!1,methods:s,retryDelay:u=150,retryCount:f=3,uid:d}={...t,...n},{method:m}=r;if(s?.exclude?.includes(m))throw new By(new Error(\"method not supported\"),{method:m});if(s?.include&&!s.include.includes(m))throw new By(new Error(\"method not supported\"),{method:m});let h=o?i1t(`${d}.${Nr(r)}`):void 0;return lLe(()=>HT(async()=>{try{return await e(r)}catch(y){let v=y;switch(v.code){case V6.code:throw new V6(v);case K6.code:throw new K6(v);case W6.code:throw new W6(v,{method:r.method});case Q6.code:throw new Q6(v);case Fm.code:throw new Fm(v);case _u.code:throw new _u(v);case Z6.code:throw new Z6(v);case J6.code:throw new J6(v);case Y6.code:throw new Y6(v);case By.code:throw new By(v,{method:r.method});case Rg.code:throw new Rg(v);case X6.code:throw new X6(v);case Mg.code:throw new Mg(v);case e5.code:throw new e5(v);case t5.code:throw new t5(v);case r5.code:throw new r5(v);case n5.code:throw new n5(v);case o5.code:throw new o5(v);case a5.code:throw new a5(v);case i5.code:throw new i5(v);case s5.code:throw new s5(v);case c5.code:throw new c5(v);case u5.code:throw new u5(v);case l5.code:throw new l5(v);case f5.code:throw new f5(v);case 5e3:throw new Mg(v);case d5.code:throw new d5(v);default:throw y instanceof be?y:new IO(v)}}},{delay:({count:y,error:v})=>{if(v&&v instanceof Tu){let E=v?.headers?.get(\"Retry-After\");if(E?.match(/\\\\d/))return Number.parseInt(E,10)*1e3}return~~(1<<y)*u},retryCount:f,shouldRetry:({error:y})=>a1t(y)}),{enabled:o,id:h})}}function a1t(e){return\"code\"in e&&typeof e.code==\"number\"?e.code===-1||e.code===Rg.code||e.code===Fm.code||e.code===429:e instanceof Tu&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function i1t(e,t=0){let r=3735928559^t,n=1103547991^t;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);r=Math.imul(r^s,2654435761),n=Math.imul(n^s,1597334677)}return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>16,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>16,3266489909),(4294967296*(2097151&n)+(r>>>0)).toString(36)}os();c();Pg();c();function dLe(e,{errorInstance:t=new Error(\"timed out\"),timeout:r,signal:n}){return new Promise((o,s)=>{(async()=>{let u;try{let f=new AbortController;r>0&&(u=setTimeout(()=>{n?f.abort():s(t)},r)),o(await e({signal:f?.signal||null}))}catch(f){f?.name===\"AbortError\"&&s(t),s(f)}finally{clearTimeout(u)}})()})}Qs();c();function s1t(){return{current:0,take(){return this.current++},reset(){this.current=0}}}var fZ=s1t();function pLe(e,t={}){let{url:r,headers:n}=c1t(e);return{async request(o){let{body:s,fetchFn:u=t.fetchFn??fetch,onRequest:f=t.onRequest,onResponse:d=t.onResponse,timeout:m=t.timeout??1e4}=o,h={...t.fetchOptions??{},...o.fetchOptions??{}},{headers:y,method:v,signal:E}=h;try{let C=await dLe(async({signal:R})=>{let M={...h,body:Array.isArray(s)?Nr(s.map(j=>({jsonrpc:\"2.0\",id:j.id??fZ.take(),...j}))):Nr({jsonrpc:\"2.0\",id:s.id??fZ.take(),...s}),headers:{...n,\"Content-Type\":\"application/json\",...y},method:v||\"POST\",signal:E||(m>0?R:null)},U=new Request(r,M),O=await f?.(U,M)??{...M,url:r};return await u(O.url??r,O)},{errorInstance:new AT({body:s,url:r}),timeout:m,signal:!0});d&&await d(C);let B;if(C.headers.get(\"Content-Type\")?.startsWith(\"application/json\"))B=await C.json();else{B=await C.text();try{B=JSON.parse(B||\"{}\")}catch(R){if(C.ok)throw R;B={error:B}}}if(!C.ok){if(typeof B.error?.code==\"number\"&&typeof B.error?.message==\"string\")return B;throw new Tu({body:s,details:Nr(B.error)||C.statusText,headers:C.headers,status:C.status,url:r})}return B}catch(C){throw C instanceof Tu||C instanceof AT?C:new Tu({body:s,cause:C,url:r})}}}}function c1t(e){try{let t=new URL(e),r=(()=>{if(t.username){let n=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username=\"\",t.password=\"\",{url:t.toString(),headers:{Authorization:`Basic ${btoa(n)}`}}}})();return{url:t.toString(),...r}}catch{return{url:e}}}c();ql();c();c();var mLe=`\\u0019Ethereum Signed Message:\\n`;Su();wu();Ht();function hLe(e){let t=typeof e==\"string\"?Cg(e):typeof e.raw==\"string\"?e.raw:Or(e.raw),r=Cg(`${mLe}${wr(t)}`);return Qa([r,t])}function SN(e,t){return Tn(hLe(e),t)}c();Hm();Su();Ht();ql();c();Po();Tg();c();Qs();xr();var CN=class extends be{constructor({domain:t}){super(`Invalid domain \"${Nr(t)}\".`,{metaMessages:[\"Must be a valid EIP-712 domain.\"]})}},TN=class extends be{constructor({primaryType:t,types:r}){super(`Invalid primary type \\\\`${t}\\\\` must be one of \\\\`${JSON.stringify(Object.keys(r))}\\\\`.`,{docsPath:\"/api/glossary/Errors#typeddatainvalidprimarytypeerror\",metaMessages:[\"Check that the primary type is a key in `types`.\"]})}},_N=class extends be{constructor({type:t}){super(`Struct type \"${t}\" is invalid.`,{metaMessages:[\"Struct type must not be a Solidity type.\"],name:\"InvalidStructTypeError\"})}};Dm();wu();Ht();EQ();function yLe(e){let{domain:t,message:r,primaryType:n,types:o}=e,s=(u,f)=>{for(let d of u){let{name:m,type:h}=d,y=f[m],v=h.match(fO);if(v&&(typeof y==\"number\"||typeof y==\"bigint\")){let[B,R,M]=v;Fe(y,{signed:R===\"int\",size:Number.parseInt(M,10)/8})}if(h===\"address\"&&typeof y==\"string\"&&!Qo(y))throw new yi({address:y});let E=h.match(uDe);if(E){let[B,R]=E;if(R&&wr(y)!==Number.parseInt(R,10))throw new eO({expectedSize:Number.parseInt(R,10),givenSize:wr(y)})}let C=o[h];C&&(u1t(h),s(C,y))}};if(o.EIP712Domain&&t){if(typeof t!=\"object\")throw new CN({domain:t});s(o.EIP712Domain,t)}if(n!==\"EIP712Domain\")if(o[n])s(o[n],r);else throw new TN({primaryType:n,types:o})}function bLe({domain:e}){return[typeof e?.name==\"string\"&&{name:\"name\",type:\"string\"},e?.version&&{name:\"version\",type:\"string\"},(typeof e?.chainId==\"number\"||typeof e?.chainId==\"bigint\")&&{name:\"chainId\",type:\"uint256\"},e?.verifyingContract&&{name:\"verifyingContract\",type:\"address\"},e?.salt&&{name:\"salt\",type:\"bytes32\"}].filter(Boolean)}function u1t(e){if(e===\"address\"||e===\"bool\"||e===\"string\"||e.startsWith(\"bytes\")||e.startsWith(\"uint\")||e.startsWith(\"int\"))throw new _N({type:e})}function gLe(e){let{domain:t={},message:r,primaryType:n}=e,o={EIP712Domain:bLe({domain:t}),...e.types};yLe({domain:t,message:r,primaryType:n,types:o});let s=[\"0x1901\"];return t&&s.push(l1t({domain:t,types:o})),n!==\"EIP712Domain\"&&s.push(xLe({data:r,primaryType:n,types:o})),Tn(Qa(s))}function l1t({domain:e,types:t}){return xLe({data:e,primaryType:\"EIP712Domain\",types:t})}function xLe({data:e,primaryType:t,types:r}){let n=vLe({data:e,primaryType:t,types:r});return Tn(n)}function vLe({data:e,primaryType:t,types:r}){let n=[{type:\"bytes32\"}],o=[f1t({primaryType:t,types:r})];for(let s of r[t]){let[u,f]=ELe({types:r,name:s.name,type:s.type,value:e[s.name]});n.push(u),o.push(f)}return as(n,o)}function f1t({primaryType:e,types:t}){let r=Wo(d1t({primaryType:e,types:t}));return Tn(r)}function d1t({primaryType:e,types:t}){let r=\"\",n=wLe({primaryType:e,types:t});n.delete(e);let o=[e,...Array.from(n).sort()];for(let s of o)r+=`${s}(${t[s].map(({name:u,type:f})=>`${f} ${u}`).join(\",\")})`;return r}function wLe({primaryType:e,types:t},r=new Set){let o=e.match(/^\\\\w*/u)?.[0];if(r.has(o)||t[o]===void 0)return r;r.add(o);for(let s of t[o])wLe({primaryType:s.type,types:t},r);return r}function ELe({types:e,name:t,type:r,value:n}){if(e[r]!==void 0)return[{type:\"bytes32\"},Tn(vLe({data:n,primaryType:r,types:e}))];if(r===\"bytes\")return[{type:\"bytes32\"},Tn(n)];if(r===\"string\")return[{type:\"bytes32\"},Tn(Wo(n))];if(r.lastIndexOf(\"]\")===r.length-1){let o=r.slice(0,r.lastIndexOf(\"[\")),s=n.map(u=>ELe({name:t,type:o,types:e,value:u}));return[{type:\"bytes32\"},Tn(as(s.map(([u])=>u),s.map(([,u])=>u)))]}return[{type:r},n]}c();var VT={};Wn(VT,{InvalidWrappedSignatureError:()=>jN,assert:()=>qN,from:()=>K1t,magicBytes:()=>DZ,suffixParameters:()=>HZ,unwrap:()=>qLe,validate:()=>Q1t,wrap:()=>W1t});c();c();cT();c();Ny();c();c();var kN=class extends Map{constructor(t){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){let n=this.keys().next().value;n&&this.delete(n)}return this}};var p1t={checksum:new kN(8192)},BN=p1t.checksum;Zs();c();Av();Ny();_a();function jg(e,t={}){let{as:r=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,n=Zf(uHe(e));return r===\"Bytes\"?n:Mo(n)}c();Ny();Zs();_a();IT();function ALe(e,t={}){let{compressed:r}=t,{prefix:n,x:o,y:s}=e;if(r===!1||typeof o==\"bigint\"&&typeof s==\"bigint\"){if(n!==4)throw new IN({prefix:n,cause:new hZ});return}if(r===!0||typeof o==\"bigint\"&&typeof s>\"u\"){if(n!==3&&n!==2)throw new IN({prefix:n,cause:new mZ});return}throw new pZ({publicKey:e})}function SLe(e){let t=(()=>{if(RT(e))return CLe(e);if(hHe(e))return h1t(e);let{prefix:r,x:n,y:o}=e;return typeof n==\"bigint\"&&typeof o==\"bigint\"?{prefix:r??4,x:n,y:o}:{prefix:r,x:n}})();return ALe(t),t}function h1t(e){return CLe(Mo(e))}function CLe(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new yZ({publicKey:e});if(e.length===130){let n=BigInt(Xn(e,0,32)),o=BigInt(Xn(e,32,64));return{prefix:4,x:n,y:o}}if(e.length===132){let n=Number(Xn(e,0,1)),o=BigInt(Xn(e,1,33)),s=BigInt(Xn(e,33,65));return{prefix:n,x:o,y:s}}let t=Number(Xn(e,0,1)),r=BigInt(Xn(e,1,33));return{prefix:t,x:r}}function bZ(e,t={}){ALe(e);let{prefix:r,x:n,y:o}=e,{includePrefix:s=!0}=t;return io(s?Ur(r,{size:1}):\"0x\",Ur(n,{size:32}),typeof o==\"bigint\"?Ur(o,{size:32}):\"0x\")}var pZ=class extends rt{constructor({publicKey:t}){super(`Value \\\\`${Uy(t)}\\\\` is not a valid public key.`,{metaMessages:[\"Public key must contain:\",\"- an `x` and `prefix` value (compressed)\",\"- an `x`, `y`, and `prefix` value (uncompressed)\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidError\"})}},IN=class extends rt{constructor({prefix:t,cause:r}){super(`Prefix \"${t}\" is invalid.`,{cause:r}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidPrefixError\"})}},mZ=class extends rt{constructor(){super(\"Prefix must be 2 or 3 for compressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidCompressedPrefixError\"})}},hZ=class extends rt{constructor(){super(\"Prefix must be 4 for uncompressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidUncompressedPrefixError\"})}},yZ=class extends rt{constructor({publicKey:t}){super(`Value \\\\`${t}\\\\` is an invalid public key size.`,{metaMessages:[\"Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).\",`Received ${Yn(D5(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidSerializedSizeError\"})}};var y1t=/^0x[a-fA-F0-9]{40}$/;function qg(e,t={}){let{strict:r=!0}=t;if(!y1t.test(e))throw new PN({address:e,cause:new gZ});if(r){if(e.toLowerCase()===e)return;if(RN(e)!==e)throw new PN({address:e,cause:new xZ})}}function RN(e){if(BN.has(e))return BN.get(e);qg(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=jg(lHe(t),{as:\"Bytes\"}),n=t.split(\"\");for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&n[s]&&(n[s]=n[s].toUpperCase()),(r[s>>1]&15)>=8&&n[s+1]&&(n[s+1]=n[s+1].toUpperCase());let o=`0x${n.join(\"\")}`;return BN.set(e,o),o}function b1t(e,t={}){let{checksum:r=!1}=t;return qg(e),r?RN(e):e}function _Le(e,t={}){let r=jg(`0x${bZ(e).slice(4)}`).substring(26);return b1t(`0x${r}`,t)}function MN(e,t={}){let{strict:r=!0}=t??{};try{return qg(e,{strict:r}),!0}catch{return!1}}var PN=class extends rt{constructor({address:t,cause:r}){super(`Address \"${t}\" is invalid.`,{cause:r}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidAddressError\"})}},gZ=class extends rt{constructor(){super(\"Address is not a 20 byte (40 hexadecimal character) value.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidInputError\"})}},xZ=class extends rt{constructor(){super(\"Address does not match its checksum counterpart.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidChecksumError\"})}};Ny();Zs();_a();c();Ny();Zs();_a();c();var kLe=/^(.*)\\\\[([0-9]*)\\\\]$/,BLe=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,NN=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,$3n=2n**(8n-1n)-1n,G3n=2n**(16n-1n)-1n,V3n=2n**(24n-1n)-1n,K3n=2n**(32n-1n)-1n,W3n=2n**(40n-1n)-1n,Q3n=2n**(48n-1n)-1n,Z3n=2n**(56n-1n)-1n,J3n=2n**(64n-1n)-1n,Y3n=2n**(72n-1n)-1n,X3n=2n**(80n-1n)-1n,e8n=2n**(88n-1n)-1n,t8n=2n**(96n-1n)-1n,r8n=2n**(104n-1n)-1n,n8n=2n**(112n-1n)-1n,o8n=2n**(120n-1n)-1n,a8n=2n**(128n-1n)-1n,i8n=2n**(136n-1n)-1n,s8n=2n**(144n-1n)-1n,c8n=2n**(152n-1n)-1n,u8n=2n**(160n-1n)-1n,l8n=2n**(168n-1n)-1n,f8n=2n**(176n-1n)-1n,d8n=2n**(184n-1n)-1n,p8n=2n**(192n-1n)-1n,m8n=2n**(200n-1n)-1n,h8n=2n**(208n-1n)-1n,y8n=2n**(216n-1n)-1n,b8n=2n**(224n-1n)-1n,g8n=2n**(232n-1n)-1n,x8n=2n**(240n-1n)-1n,v8n=2n**(248n-1n)-1n,w8n=2n**(256n-1n)-1n,E8n=-(2n**(8n-1n)),A8n=-(2n**(16n-1n)),S8n=-(2n**(24n-1n)),C8n=-(2n**(32n-1n)),T8n=-(2n**(40n-1n)),_8n=-(2n**(48n-1n)),k8n=-(2n**(56n-1n)),B8n=-(2n**(64n-1n)),I8n=-(2n**(72n-1n)),P8n=-(2n**(80n-1n)),R8n=-(2n**(88n-1n)),M8n=-(2n**(96n-1n)),O8n=-(2n**(104n-1n)),N8n=-(2n**(112n-1n)),U8n=-(2n**(120n-1n)),D8n=-(2n**(128n-1n)),H8n=-(2n**(136n-1n)),L8n=-(2n**(144n-1n)),z8n=-(2n**(152n-1n)),F8n=-(2n**(160n-1n)),j8n=-(2n**(168n-1n)),q8n=-(2n**(176n-1n)),$8n=-(2n**(184n-1n)),G8n=-(2n**(192n-1n)),V8n=-(2n**(200n-1n)),K8n=-(2n**(208n-1n)),W8n=-(2n**(216n-1n)),Q8n=-(2n**(224n-1n)),Z8n=-(2n**(232n-1n)),J8n=-(2n**(240n-1n)),Y8n=-(2n**(248n-1n)),X8n=-(2n**(256n-1n)),eAn=2n**8n-1n,tAn=2n**16n-1n,rAn=2n**24n-1n,nAn=2n**32n-1n,oAn=2n**40n-1n,aAn=2n**48n-1n,iAn=2n**56n-1n,sAn=2n**64n-1n,cAn=2n**72n-1n,uAn=2n**80n-1n,lAn=2n**88n-1n,fAn=2n**96n-1n,dAn=2n**104n-1n,pAn=2n**112n-1n,mAn=2n**120n-1n,hAn=2n**128n-1n,yAn=2n**136n-1n,bAn=2n**144n-1n,gAn=2n**152n-1n,xAn=2n**160n-1n,vAn=2n**168n-1n,wAn=2n**176n-1n,EAn=2n**184n-1n,AAn=2n**192n-1n,SAn=2n**200n-1n,CAn=2n**208n-1n,TAn=2n**216n-1n,_An=2n**224n-1n,kAn=2n**232n-1n,BAn=2n**240n-1n,IAn=2n**248n-1n,vZ=2n**256n-1n;function $g(e,t,r){let{checksumAddress:n,staticPosition:o}=r,s=AZ(t.type);if(s){let[u,f]=s;return x1t(e,{...t,type:f},{checksumAddress:n,length:u,staticPosition:o})}if(t.type===\"tuple\")return A1t(e,t,{checksumAddress:n,staticPosition:o});if(t.type===\"address\")return g1t(e,{checksum:n});if(t.type===\"bool\")return v1t(e);if(t.type.startsWith(\"bytes\"))return w1t(e,t,{staticPosition:o});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return E1t(e,t);if(t.type===\"string\")return S1t(e,{staticPosition:o});throw new q5(t.type)}var PLe=32,wZ=32;function g1t(e,t={}){let{checksum:r=!1}=t,n=e.readBytes(32);return[(s=>r?RN(s):s)(Mo(fHe(n,-20))),32]}function x1t(e,t,r){let{checksumAddress:n,length:o,staticPosition:s}=r;if(!o){let d=Nd(e.readBytes(wZ)),m=s+d,h=m+PLe;e.setPosition(m);let y=Nd(e.readBytes(PLe)),v=zT(t),E=0,C=[];for(let B=0;B<y;++B){e.setPosition(h+(v?B*32:E));let[R,M]=$g(e,t,{checksumAddress:n,staticPosition:h});E+=M,C.push(R)}return e.setPosition(s+32),[C,32]}if(zT(t)){let d=Nd(e.readBytes(wZ)),m=s+d,h=[];for(let y=0;y<o;++y){e.setPosition(m+y*32);let[v]=$g(e,t,{checksumAddress:n,staticPosition:m});h.push(v)}return e.setPosition(s+32),[h,32]}let u=0,f=[];for(let d=0;d<o;++d){let[m,h]=$g(e,t,{checksumAddress:n,staticPosition:s+u});u+=h,f.push(m)}return[f,u]}function v1t(e){return[pHe(e.readBytes(32),{size:32}),32]}function w1t(e,t,{staticPosition:r}){let[n,o]=t.type.split(\"bytes\");if(!o){let u=Nd(e.readBytes(32));e.setPosition(r+u);let f=Nd(e.readBytes(32));if(f===0)return e.setPosition(r+32),[\"0x\",32];let d=e.readBytes(f);return e.setPosition(r+32),[Mo(d),32]}return[Mo(e.readBytes(Number.parseInt(o,10),32)),32]}function E1t(e,t){let r=t.type.startsWith(\"int\"),n=Number.parseInt(t.type.split(\"int\")[1]||\"256\",10),o=e.readBytes(32);return[n>48?dHe(o,{signed:r}):Nd(o,{signed:r}),32]}function A1t(e,t,r){let{checksumAddress:n,staticPosition:o}=r,s=t.components.length===0||t.components.some(({name:d})=>!d),u=s?[]:{},f=0;if(zT(t)){let d=Nd(e.readBytes(wZ)),m=o+d;for(let h=0;h<t.components.length;++h){let y=t.components[h];e.setPosition(m+f);let[v,E]=$g(e,y,{checksumAddress:n,staticPosition:m});f+=E,u[s?h:y?.name]=v}return e.setPosition(o+32),[u,32]}for(let d=0;d<t.components.length;++d){let m=t.components[d],[h,y]=$g(e,m,{checksumAddress:n,staticPosition:o});u[s?d:m?.name]=h,f+=y}return[u,f]}function S1t(e,{staticPosition:t}){let r=Nd(e.readBytes(32)),n=t+r;e.setPosition(n);let o=Nd(e.readBytes(32));if(o===0)return e.setPosition(t+32),[\"\",32];let s=e.readBytes(o,32),u=mHe(qQ(s));return e.setPosition(t+32),[u,32]}function RLe({checksumAddress:e,parameters:t,values:r}){let n=[];for(let o=0;o<t.length;o++)n.push(EZ({checksumAddress:e,parameter:t[o],value:r[o]}));return n}function EZ({checksumAddress:e=!1,parameter:t,value:r}){let n=t,o=AZ(n.type);if(o){let[s,u]=o;return T1t(r,{checksumAddress:e,length:s,parameter:{...n,type:u}})}if(n.type===\"tuple\")return P1t(r,{checksumAddress:e,parameter:n});if(n.type===\"address\")return C1t(r,{checksum:e});if(n.type===\"bool\")return k1t(r);if(n.type.startsWith(\"uint\")||n.type.startsWith(\"int\")){let s=n.type.startsWith(\"int\"),[,,u=\"256\"]=NN.exec(n.type)??[];return B1t(r,{signed:s,size:Number(u)})}if(n.type.startsWith(\"bytes\"))return _1t(r,{type:n.type});if(n.type===\"string\")return I1t(r);throw new q5(n.type)}function UN(e){let t=0;for(let s=0;s<e.length;s++){let{dynamic:u,encoded:f}=e[s];u?t+=32:t+=Yn(f)}let r=[],n=[],o=0;for(let s=0;s<e.length;s++){let{dynamic:u,encoded:f}=e[s];u?(r.push(Ur(t+o,{size:32})),n.push(f),o+=Yn(f)):r.push(f)}return io(...r,...n)}function C1t(e,t){let{checksum:r=!1}=t;return qg(e,{strict:r}),{dynamic:!1,encoded:Gm(e.toLowerCase())}}function T1t(e,t){let{checksumAddress:r,length:n,parameter:o}=t,s=n===null;if(!Array.isArray(e))throw new HN(e);if(!s&&e.length!==n)throw new DN({expectedLength:n,givenLength:e.length,type:`${o.type}[${n}]`});let u=!1,f=[];for(let d=0;d<e.length;d++){let m=EZ({checksumAddress:r,parameter:o,value:e[d]});m.dynamic&&(u=!0),f.push(m)}if(s||u){let d=UN(f);if(s){let m=Ur(f.length,{size:32});return{dynamic:!0,encoded:f.length>0?io(m,d):m}}if(u)return{dynamic:!0,encoded:d}}return{dynamic:!1,encoded:io(...f.map(({encoded:d})=>d))}}function _1t(e,{type:t}){let[,r]=t.split(\"bytes\"),n=Yn(e);if(!r){let o=e;return n%32!==0&&(o=Ud(o,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:io(Gm(Ur(n,{size:32})),o)}}if(n!==Number.parseInt(r,10))throw new FT({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:Ud(e)}}function k1t(e){if(typeof e!=\"boolean\")throw new rt(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:Gm(XO(e))}}function B1t(e,{signed:t,size:r}){if(typeof r==\"number\"){let n=2n**(BigInt(r)-(t?1n:0n))-1n,o=t?-n-1n:0n;if(e>n||e<o)throw new PT({max:n.toString(),min:o.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:Ur(e,{size:32,signed:t})}}function I1t(e){let t=H5(e),r=Math.ceil(Yn(t)/32),n=[];for(let o=0;o<r;o++)n.push(Ud(Xn(t,o*32,(o+1)*32)));return{dynamic:!0,encoded:io(Ud(Ur(Yn(t),{size:32})),...n)}}function P1t(e,t){let{checksumAddress:r,parameter:n}=t,o=!1,s=[];for(let u=0;u<n.components.length;u++){let f=n.components[u],d=Array.isArray(e)?u:f.name,m=EZ({checksumAddress:r,parameter:f,value:e[d]});s.push(m),m.dynamic&&(o=!0)}return{dynamic:o,encoded:o?UN(s):io(...s.map(({encoded:u})=>u))}}function AZ(e){let t=e.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function zT(e){let{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(zT);let r=AZ(e.type);return!!(r&&zT({...e,type:r[1]}))}c();Zs();var M1t={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new CZ({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new SZ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new LN({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new LN({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function zN(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(M1t);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}var LN=class extends rt{constructor({offset:t}){super(`Offset \\\\`${t}\\\\` cannot be negative.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.NegativeOffsetError\"})}},SZ=class extends rt{constructor({length:t,position:r}){super(`Position \\\\`${r}\\\\` is out of bounds (\\\\`0 < position < ${t}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.PositionOutOfBoundsError\"})}},CZ=class extends rt{constructor({count:t,limit:r}){super(`Recursive read limit of \\\\`${r}\\\\` exceeded (recursive read count: \\\\`${t}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.RecursiveReadLimitExceededError\"})}};function $5(e,t,r={}){let{as:n=\"Array\",checksumAddress:o=!1}=r,s=typeof t==\"string\"?U5(t):t,u=zN(s);if(Iu(s)===0&&e.length>0)throw new kZ;if(Iu(s)&&Iu(s)<32)throw new _Z({data:typeof t==\"string\"?t:Mo(t),parameters:e,size:Iu(s)});let f=0,d=n===\"Array\"?[]:{};for(let m=0;m<e.length;++m){let h=e[m];u.setPosition(f);let[y,v]=$g(u,h,{checksumAddress:o,staticPosition:0});f+=v,n===\"Array\"?d.push(y):d[h.name??m]=y}return d}function zy(e,t,r){let{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new FN({expectedLength:e.length,givenLength:t.length});let o=RLe({checksumAddress:n,parameters:e,values:t}),s=UN(o);return s.length===0?\"0x\":s}function TZ(e,t){if(e.length!==t.length)throw new FN({expectedLength:e.length,givenLength:t.length});let r=[];for(let n=0;n<e.length;n++){let o=e[n],s=t[n];r.push(TZ.encode(o,s))}return io(...r)}(function(e){function t(r,n,o=!1){if(r===\"address\"){let d=n;return qg(d),Gm(d.toLowerCase(),o?32:0)}if(r===\"string\")return H5(n);if(r===\"bytes\")return n;if(r===\"bool\")return Gm(XO(n),o?32:1);let s=r.match(NN);if(s){let[d,m,h=\"256\"]=s,y=Number.parseInt(h,10)/8;return Ur(n,{size:o?32:y,signed:m===\"int\"})}let u=r.match(BLe);if(u){let[d,m]=u;if(Number.parseInt(m,10)!==(n.length-2)/2)throw new FT({expectedSize:Number.parseInt(m,10),value:n});return Ud(n,o?32:0)}let f=r.match(kLe);if(f&&Array.isArray(n)){let[d,m]=f,h=[];for(let y=0;y<n.length;y++)h.push(t(m,n[y],!0));return h.length===0?\"0x\":io(...h)}throw new q5(r)}e.encode=t})(TZ||(TZ={}));function qT(e){return Array.isArray(e)&&typeof e[0]==\"string\"?qM(e):typeof e==\"string\"?qM(e):e}var _Z=class extends rt{constructor({data:t,parameters:r,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${Rm(r)})`,`Data:   ${t} (${n} bytes)`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.DataSizeTooSmallError\"})}},kZ=class extends rt{constructor(){super(\\'Cannot decode zero data (\"0x\") with ABI parameters.\\'),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.ZeroDataError\"})}},DN=class extends rt{constructor({expectedLength:t,givenLength:r,type:n}){super(`Array length mismatch for type \\\\`${n}\\\\`. Expected: \\\\`${t}\\\\`. Given: \\\\`${r}\\\\`.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.ArrayLengthMismatchError\"})}},FT=class extends rt{constructor({expectedSize:t,value:r}){super(`Size of bytes \"${r}\" (bytes${Yn(r)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.BytesSizeMismatchError\"})}},FN=class extends rt{constructor({expectedLength:t,givenLength:r}){super([\"ABI encoding parameters/values length mismatch.\",`Expected length (parameters): ${t}`,`Given length (values): ${r}`].join(`\\n`)),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.LengthMismatchError\"})}},HN=class extends rt{constructor(t){super(`Value \\\\`${t}\\\\` is not a valid array.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidArrayError\"})}},q5=class extends rt{constructor(t){super(`Type \\\\`${t}\\\\` is not a valid ABI Type.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidTypeError\"})}};c();_a();c();Ny();Zs();_a();function O1t(e,t){let{as:r}=t,n=NLe(e),o=zN(new Uint8Array(n.length));return n.encode(o),r===\"Hex\"?Mo(o.bytes):o.bytes}function OLe(e,t={}){let{as:r=\"Hex\"}=t;return O1t(e,{as:r})}function NLe(e){return Array.isArray(e)?N1t(e.map(t=>NLe(t))):U1t(e)}function N1t(e){let t=e.reduce((o,s)=>o+s.length,0),r=ULe(t);return{length:t<=55?1+t:1+r+t,encode(o){t<=55?o.pushByte(192+t):(o.pushByte(247+r),r===1?o.pushUint8(t):r===2?o.pushUint16(t):r===3?o.pushUint24(t):o.pushUint32(t));for(let{encode:s}of e)s(o)}}}function U1t(e){let t=typeof e==\"string\"?U5(e):e,r=ULe(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(o){t.length===1&&t[0]<128?o.pushBytes(t):t.length<=55?(o.pushByte(128+t.length),o.pushBytes(t)):(o.pushByte(183+r),r===1?o.pushUint8(t.length):r===2?o.pushUint16(t.length):r===3?o.pushUint24(t.length):o.pushUint32(t.length),o.pushBytes(t))}}}function ULe(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=16777215)return 3;if(e<=4294967295)return 4;throw new rt(\"Length is too large.\")}c();Zs();_a();IT();function MZ(e,t={}){let{recovered:r}=t;if(typeof e.r>\"u\")throw new $T({signature:e});if(typeof e.s>\"u\")throw new $T({signature:e});if(r&&typeof e.yParity>\"u\")throw new $T({signature:e});if(e.r<0n||e.r>vZ)throw new IZ({value:e.r});if(e.s<0n||e.s>vZ)throw new PZ({value:e.s});if(typeof e.yParity==\"number\"&&e.yParity!==0&&e.yParity!==1)throw new GT({value:e.yParity})}function H1t(e){return DLe(Mo(e))}function DLe(e){if(e.length!==130&&e.length!==132)throw new BZ({signature:e});let t=BigInt(Xn(e,0,32)),r=BigInt(Xn(e,32,64)),n=(()=>{let o=+`0x${e.slice(130)}`;if(!Number.isNaN(o))try{return UZ(o)}catch{throw new GT({value:o})}})();return typeof n>\"u\"?{r:t,s:r}:{r:t,s:r,yParity:n}}function OZ(e){if(!(typeof e.r>\"u\")&&!(typeof e.s>\"u\"))return NZ(e)}function NZ(e){let t=typeof e==\"string\"?DLe(e):e instanceof Uint8Array?H1t(e):typeof e.r==\"string\"?z1t(e):e.v?L1t(e):{r:e.r,s:e.s,...typeof e.yParity<\"u\"?{yParity:e.yParity}:{}};return MZ(t),t}function L1t(e){return{r:e.r,s:e.s,yParity:UZ(e.v)}}function z1t(e){let t=(()=>{let r=e.v?Number(e.v):void 0,n=e.yParity?Number(e.yParity):void 0;if(typeof r==\"number\"&&typeof n!=\"number\"&&(n=UZ(r)),typeof n!=\"number\")throw new GT({value:e.yParity});return n})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function HLe(e){let{r:t,s:r,yParity:n}=e;return[n?\"0x01\":\"0x\",t===0n?\"0x\":GQ(Ur(t)),r===0n?\"0x\":GQ(Ur(r))]}function UZ(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new RZ({value:e})}var BZ=class extends rt{constructor({signature:t}){super(`Value \\\\`${t}\\\\` is an invalid signature size.`,{metaMessages:[\"Expected: 64 bytes or 65 bytes.\",`Received ${Yn(D5(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSerializedSizeError\"})}},$T=class extends rt{constructor({signature:t}){super(`Signature \\\\`${Uy(t)}\\\\` is missing either an \\\\`r\\\\`, \\\\`s\\\\`, or \\\\`yParity\\\\` property.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.MissingPropertiesError\"})}},IZ=class extends rt{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidRError\"})}},PZ=class extends rt{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSError\"})}},GT=class extends rt{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidYParityError\"})}},RZ=class extends rt{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidVError\"})}};function zLe(e,t={}){return typeof e.chainId==\"string\"?F1t(e):{...e,...t.signature}}function F1t(e){let{address:t,chainId:r,nonce:n}=e,o=OZ(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...o}}function FLe(e){return j1t(e,{presign:!0})}function j1t(e,t={}){let{presign:r}=t;return jg(io(\"0x05\",OLe(q1t(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function q1t(e){let{address:t,chainId:r,nonce:n}=e,o=OZ(e);return[r?Ur(r):\"0x\",t,n?Ur(n):\"0x\",...o?HLe(o):[]]}Zs();_a();c();S0();_a();function jLe(e){return _Le(G1t(e))}function G1t(e){let{payload:t,signature:r}=e,{r:n,s:o,yParity:s}=r,f=new fi.Signature(BigInt(n),BigInt(o)).addRecoveryBit(s).recoverPublicKey(D5(t).substring(2));return SLe(f)}var DZ=\"0x8010801080108010801080108010801080108010801080108010801080108010\",HZ=qT(\"(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data\");function qN(e){if(typeof e==\"string\"){if(Xn(e,-32)!==DZ)throw new jN(e)}else MZ(e.authorization)}function K1t(e){return typeof e==\"string\"?qLe(e):e}function qLe(e){qN(e);let t=ZO(Xn(e,-64,-32)),r=Xn(e,-t-64,-64),n=Xn(e,0,-t-64),[o,s,u]=$5(HZ,r);return{authorization:zLe({address:o.delegation,chainId:Number(o.chainId),nonce:o.nonce,yParity:o.yParity,r:o.r,s:o.s}),signature:n,...u&&u!==\"0x\"?{data:u,to:s}:{}}}function W1t(e){let{data:t,signature:r}=e;qN(e);let n=jLe({payload:FLe(e.authorization),signature:NZ(e.authorization)}),o=zy(HZ,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},e.to??n,t??\"0x\"]),s=Ur(Yn(o),{size:32});return io(r,o,s,DZ)}function Q1t(e){try{return qN(e),!0}catch{return!1}}var jN=class extends rt{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureErc8010.InvalidWrappedSignatureError\"})}};function Z1t(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function $Le(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?Sa(e.nonce):void 0,storageProof:e.storageProof?Z1t(e.storageProof):void 0}}async function GLe(e,{address:t,blockNumber:r,blockTag:n,storageKeys:o}){let s=n??\"latest\",u=r!==void 0?Fe(r):void 0,f=await e.request({method:\"eth_getProof\",params:[t,o,u||s]});return $Le(f)}c();Ht();async function VLe(e,{address:t,blockNumber:r,blockTag:n=\"latest\",slot:o}){let s=r!==void 0?Fe(r):void 0;return await e.request({method:\"eth_getStorageAt\",params:[t,o,s||n]})}c();zm();Ht();async function G5(e,{blockHash:t,blockNumber:r,blockTag:n,hash:o,index:s,sender:u,nonce:f}){let d=n||\"latest\",m=r!==void 0?Fe(r):void 0,h=null;if(o?h=await e.request({method:\"eth_getTransactionByHash\",params:[o]},{dedupe:!0}):t?h=await e.request({method:\"eth_getTransactionByBlockHashAndIndex\",params:[t,Fe(s)]},{dedupe:!0}):(m||d)&&typeof s==\"number\"?h=await e.request({method:\"eth_getTransactionByBlockNumberAndIndex\",params:[m||d,Fe(s)]},{dedupe:!!m}):u&&typeof f==\"number\"&&(h=await e.request({method:\"eth_getTransactionBySenderAndNonce\",params:[u,Fe(f)]},{dedupe:!0})),!h)throw new j6({blockHash:t,blockNumber:r,blockTag:d,hash:o,index:s});return(e.chain?.formatters?.transaction?.format||T5)(h,\"getTransaction\")}c();async function KLe(e,{hash:t,transactionReceipt:r}){let[n,o]=await Promise.all([Ue(e,Ld,\"getBlockNumber\")({}),t?Ue(e,G5,\"getTransaction\")({hash:t}):void 0]),s=r?.blockNumber||o?.blockNumber;return s?n-s+1n:0n}c();zm();async function V5(e,{hash:t}){let r=await e.request({method:\"eth_getTransactionReceipt\",params:[t]},{dedupe:!0});if(!r)throw new q6({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||lN)(r,\"getTransactionReceipt\")}c();Vm();MT();Po();xr();_y();qm();Nc();Lg();async function WLe(e,t){let{account:r,authorizationList:n,allowFailure:o=!0,blockNumber:s,blockOverrides:u,blockTag:f,stateOverride:d}=t,m=t.contracts,{batchSize:h=t.batchSize??1024,deployless:y=t.deployless??!1}=typeof e.batch?.multicall==\"object\"?e.batch.multicall:{},v=(()=>{if(t.multicallAddress)return t.multicallAddress;if(y)return null;if(e.chain)return Pu({blockNumber:s,chain:e.chain,contract:\"multicall3\"});throw new Error(\"client chain not configured. multicallAddress is required.\")})(),E=[[]],C=0,B=0;for(let U=0;U<m.length;U++){let{abi:O,address:N,args:j,functionName:K}=m[U];try{let G=_n({abi:O,args:j,functionName:K});B+=(G.length-2)/2,h>0&&B>h&&E[C].length>0&&(C++,B=(G.length-2)/2,E[C]=[]),E[C]=[...E[C],{allowFailure:!0,callData:G,target:N}]}catch(G){let J=Gl(G,{abi:O,address:N,args:j,docsPath:\"/docs/contract/multicall\",functionName:K,sender:r});if(!o)throw J;E[C]=[...E[C],{allowFailure:!0,callData:\"0x\",target:N}]}}let R=await Promise.allSettled(E.map(U=>Ue(e,Zo,\"readContract\")({...v===null?{code:L5}:{address:v},abi:Dd,account:r,args:[U],authorizationList:n,blockNumber:s,blockOverrides:u,blockTag:f,functionName:\"aggregate3\",stateOverride:d}))),M=[];for(let U=0;U<R.length;U++){let O=R[U];if(O.status===\"rejected\"){if(!o)throw O.reason;for(let j=0;j<E[U].length;j++)M.push({status:\"failure\",error:O.reason,result:void 0});continue}let N=O.value;for(let j=0;j<N.length;j++){let{returnData:K,success:G}=N[j],{callData:J}=E[U][j],{abi:Y,address:W,functionName:ie,args:re}=m[M.length];try{if(J===\"0x\")throw new Eu;if(!G)throw new Md({data:K});let H=xi({abi:Y,args:re,data:K,functionName:ie});M.push(o?{result:H,status:\"success\"}:H)}catch(H){let A=Gl(H,{abi:Y,address:W,args:re,docsPath:\"/docs/contract/multicall\",functionName:ie});if(!o)throw A;M.push({error:A,result:void 0,status:\"failure\"})}}}if(M.length!==m.length)throw new be(\"multicall results mismatch\");return M}c();VQ();Oc();Po();_y();Og();qm();Nc();Su();Ht();TT();w5();MO();Ng();async function KT(e,t){let{blockNumber:r,blockTag:n=e.experimental_blockTag??\"latest\",blocks:o,returnFullTransactions:s,traceTransfers:u,validation:f}=t;try{let d=[];for(let v of o){let E=v.blockOverrides?eN(v.blockOverrides):void 0,C=v.calls.map(R=>{let M=R,U=M.account?jn(M.account):void 0,O=M.abi?_n(M):M.data,N={...M,account:U,data:M.dataSuffix?Qa([O||\"0x\",M.dataSuffix]):O,from:M.from??U?.address};return Bu(N),Od(N)}),B=v.stateOverrides?E5(v.stateOverrides):void 0;d.push({blockOverrides:E,calls:C,stateOverrides:B})}let h=(typeof r==\"bigint\"?Fe(r):void 0)||n;return(await e.request({method:\"eth_simulateV1\",params:[{blockStateCalls:d,returnFullTransactions:s,traceTransfers:u,validation:f},h]})).map((v,E)=>({...NO(v),calls:v.calls.map((C,B)=>{let{abi:R,args:M,functionName:U,to:O}=o[E].calls[B],N=C.error?.data??C.returnData,j=BigInt(C.gasUsed),K=C.logs?.map(W=>Ta(W)),G=C.status===\"0x1\"?\"success\":\"failure\",J=R&&G===\"success\"&&N!==\"0x\"?xi({abi:R,data:N,functionName:U}):null,Y=(()=>{if(G===\"success\")return;let W;if(N===\"0x\"?W=new Eu:N&&(W=new Md({data:N})),!!W)return Gl(W,{abi:R??[],address:O??\"0x\",args:M,functionName:U??\"<unknown>\"})})();return{data:N,gasUsed:j,logs:K,status:G,...G===\"success\"?{result:J}:{error:Y}}})}))}catch(d){let m=d,h=Ry(m,{});throw h instanceof ku?m:h}}c();c();c();cT();Zs();_a();c();Zs();function GN(e){let t=!0,r=\"\",n=0,o=\"\",s=!1;for(let u=0;u<e.length;u++){let f=e[u];if([\"(\",\")\",\",\"].includes(f)&&(t=!0),f===\"(\"&&n++,f===\")\"&&n--,!!t){if(n===0){if(f===\" \"&&[\"event\",\"function\",\"error\",\"\"].includes(o))o=\"\";else if(o+=f,f===\")\"){s=!0;break}continue}if(f===\" \"){e[u-1]!==\",\"&&r!==\",\"&&r!==\",(\"&&(r=\"\",t=!1);continue}o+=f,r+=f}}if(!s)throw new rt(\"Unable to normalize signature.\");return o}function $N(e,t){let r=typeof e,n=t.type;switch(n){case\"address\":return MN(e,{strict:!1});case\"bool\":return r===\"boolean\";case\"function\":return r===\"string\";case\"string\":return r===\"string\";default:return n===\"tuple\"&&\"components\"in t?Object.values(t.components).every((o,s)=>$N(Object.values(e)[s],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?r===\"number\"||r===\"bigint\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?r===\"string\"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\\\[[0-9]{0,}\\\\])+$/.test(n)?Array.isArray(e)&&e.every(o=>$N(o,{...t,type:n.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function LZ(e,t,r){for(let n in e){let o=e[n],s=t[n];if(o.type===\"tuple\"&&s.type===\"tuple\"&&\"components\"in o&&\"components\"in s)return LZ(o.components,s.components,r[n]);let u=[o.type,s.type];if(u.includes(\"address\")&&u.includes(\"bytes20\")?!0:u.includes(\"address\")&&u.includes(\"string\")?MN(r[n],{strict:!1}):u.includes(\"address\")&&u.includes(\"bytes\")?MN(r[n],{strict:!1}):!1)return u}}function VN(e,t={}){let{prepare:r=!0}=t,n=Array.isArray(e)?jM(e):typeof e==\"string\"?jM(e):e;return{...n,...r?{hash:K5(n)}:{}}}function WT(e,t,r){let{args:n=[],prepare:o=!0}=r??{},s=RT(t,{strict:!1}),u=e.filter(m=>s?m.type===\"function\"||m.type===\"error\"?FZ(m)===Xn(t,0,4):m.type===\"event\"?K5(m)===t:!1:\"name\"in m&&m.name===t);if(u.length===0)throw new Fy({name:t});if(u.length===1)return{...u[0],...o?{hash:K5(u[0])}:{}};let f;for(let m of u){if(!(\"inputs\"in m))continue;if(!n||n.length===0){if(!m.inputs||m.inputs.length===0)return{...m,...o?{hash:K5(m)}:{}};continue}if(!m.inputs||m.inputs.length===0||m.inputs.length!==n.length)continue;if(n.every((y,v)=>{let E=\"inputs\"in m&&m.inputs[v];return E?$N(y,E):!1})){if(f&&\"inputs\"in f&&f.inputs){let y=LZ(m.inputs,f.inputs,n);if(y)throw new zZ({abiItem:m,type:y[0]},{abiItem:f,type:y[1]})}f=m}}let d=(()=>{if(f)return f;let[m,...h]=u;return{...m,overloads:h}})();if(!d)throw new Fy({name:t});return{...d,...o?{hash:K5(d)}:{}}}function FZ(...e){let t=(()=>{if(Array.isArray(e[0])){let[r,n]=e;return WT(r,n)}return e[0]})();return Xn(K5(t),0,4)}function Y1t(...e){let t=(()=>{if(Array.isArray(e[0])){let[n,o]=e;return WT(n,o)}return e[0]})(),r=typeof t==\"string\"?t:Sg(t);return GN(r)}function K5(...e){let t=(()=>{if(Array.isArray(e[0])){let[r,n]=e;return WT(r,n)}return e[0]})();return typeof t!=\"string\"&&\"hash\"in t&&t.hash?t.hash:jg(H5(Y1t(t)))}var zZ=class extends rt{constructor(t,r){super(\"Found ambiguous types in overloaded ABI Items.\",{metaMessages:[`\\\\`${t.type}\\\\` in \\\\`${GN(Sg(t.abiItem))}\\\\`, and`,`\\\\`${r.type}\\\\` in \\\\`${GN(Sg(r.abiItem))}\\\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.AmbiguityError\"})}},Fy=class extends rt{constructor({name:t,data:r,type:n=\"item\"}){let o=t?` with name \"${t}\"`:r?` with data \"${r}\"`:\"\";super(`ABI ${n}${o} not found.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.NotFoundError\"})}};_a();function ZLe(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[s,u]=e;return[X1t(s),u]}return e})(),{bytecode:n,args:o}=r;return io(n,t.inputs?.length&&o?.length?zy(t.inputs,o):\"0x\")}function JLe(e){return VN(e)}function X1t(e){let t=e.find(r=>r.type===\"constructor\");if(!t)throw new Fy({name:\"constructor\"});return t}c();_a();function XLe(...e){let[t,r=[]]=(()=>{if(Array.isArray(e[0])){let[m,h,y]=e;return[YLe(m,h,{args:y}),y]}let[f,d]=e;return[f,d]})(),{overloads:n}=t,o=n?YLe([t,...n],t.name,{args:r}):t,s=tgt(o),u=r.length>0?zy(o.inputs,r):void 0;return u?io(s,u):s}function Gg(e,t={}){return VN(e,t)}function YLe(e,t,r){let n=WT(e,t,r);if(n.type!==\"function\")throw new Fy({name:t,type:\"function\"});return n}function tgt(e){return FZ(e)}Oc();c();var eze=\"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\",Mu=\"0x0000000000000000000000000000000000000000\";MT();xr();Nc();var ngt=\"0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033\";async function tze(e,t){let{blockNumber:r,blockTag:n,calls:o,stateOverrides:s,traceAssetChanges:u,traceTransfers:f,validation:d}=t,m=t.account?jn(t.account):void 0;if(u&&!m)throw new be(\"`account` is required when `traceAssetChanges` is true\");let h=m?ZLe(JLe(\"constructor(bytes, bytes)\"),{bytecode:nN,args:[ngt,XLe(Gg(\"function getBalance(address)\"),[m.address])]}):void 0,y=u?await Promise.all(t.calls.map(async L=>{if(!L.data&&!L.abi)return;let{accessList:V}=await xN(e,{account:m.address,...L,data:L.abi?_n(L):L.data});return V.map(({address:Z,storageKeys:z})=>z.length>0?Z:null)})).then(L=>L.flat().filter(Boolean)):[],v=await KT(e,{blockNumber:r,blockTag:n,blocks:[...u?[{calls:[{data:h}],stateOverrides:s},{calls:y.map((L,V)=>({abi:[Gg(\"function balanceOf(address) returns (uint256)\")],functionName:\"balanceOf\",args:[m.address],to:L,from:Mu,nonce:V})),stateOverrides:[{address:Mu,nonce:0}]}]:[],{calls:[...o,{to:Mu}].map(L=>({...L,from:m?.address})),stateOverrides:s},...u?[{calls:[{data:h}]},{calls:y.map((L,V)=>({abi:[Gg(\"function balanceOf(address) returns (uint256)\")],functionName:\"balanceOf\",args:[m.address],to:L,from:Mu,nonce:V})),stateOverrides:[{address:Mu,nonce:0}]},{calls:y.map((L,V)=>({to:L,abi:[Gg(\"function decimals() returns (uint256)\")],functionName:\"decimals\",from:Mu,nonce:V})),stateOverrides:[{address:Mu,nonce:0}]},{calls:y.map((L,V)=>({to:L,abi:[Gg(\"function tokenURI(uint256) returns (string)\")],functionName:\"tokenURI\",args:[0n],from:Mu,nonce:V})),stateOverrides:[{address:Mu,nonce:0}]},{calls:y.map((L,V)=>({to:L,abi:[Gg(\"function symbol() returns (string)\")],functionName:\"symbol\",from:Mu,nonce:V})),stateOverrides:[{address:Mu,nonce:0}]}]:[]],traceTransfers:f,validation:d}),E=u?v[2]:v[0],[C,B,,R,M,U,O,N]=u?v:[],{calls:j,...K}=E,G=j.slice(0,-1)??[],J=C?.calls??[],Y=B?.calls??[],W=[...J,...Y].map(L=>L.status===\"success\"?Va(L.data):null),ie=R?.calls??[],re=M?.calls??[],H=[...ie,...re].map(L=>L.status===\"success\"?Va(L.data):null),A=(U?.calls??[]).map(L=>L.status===\"success\"?L.result:null),T=(N?.calls??[]).map(L=>L.status===\"success\"?L.result:null),P=(O?.calls??[]).map(L=>L.status===\"success\"?L.result:null),D=[];for(let[L,V]of H.entries()){let Z=W[L];if(typeof V!=\"bigint\"||typeof Z!=\"bigint\")continue;let z=A[L-1],I=T[L-1],Q=P[L-1],me=L===0?{address:eze,decimals:18,symbol:\"ETH\"}:{address:y[L-1],decimals:Q||z?Number(z??1):void 0,symbol:I??void 0};D.some(ge=>ge.token.address===me.address)||D.push({token:me,value:{pre:Z,post:V,diff:V-Z}})}return{assetChanges:D,block:K,results:G}}c();c();var QT={};Wn(QT,{InvalidWrappedSignatureError:()=>KN,assert:()=>qZ,from:()=>igt,magicBytes:()=>jZ,universalSignatureValidatorAbi:()=>agt,universalSignatureValidatorBytecode:()=>ogt,unwrap:()=>rze,validate:()=>cgt,wrap:()=>sgt});c();Zs();_a();var jZ=\"0x6492649264926492649264926492649264926492649264926492649264926492\",ogt=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",agt=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\",name:\"isValidSig\"}];function qZ(e){if(Xn(e,-32)!==jZ)throw new KN(e)}function igt(e){return typeof e==\"string\"?rze(e):e}function rze(e){qZ(e);let[t,r,n]=$5(qT(\"address, bytes, bytes\"),e);return{data:r,signature:n,to:t}}function sgt(e){let{data:t,signature:r,to:n}=e;return io(zy(qT(\"address, bytes, bytes\"),[n,t,r]),jZ)}function cgt(e){try{return qZ(e),!0}catch{return!1}}var KN=class extends rt{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureErc6492.InvalidWrappedSignatureError\"})}};Vm();MT();_y();XQ();Nc();Sy();I5();Su();Ll();os();Ht();c();S0();os();Wa();function nze({r:e,s:t,to:r=\"hex\",v:n,yParity:o}){let s=(()=>{if(o===0||o===1)return o;if(n&&(n===27n||n===28n||n>=35n))return n%2n===0n?1:0;throw new Error(\"Invalid `v` or `yParity` value\")})(),u=`0x${new fi.Signature(Va(e),Va(t)).toCompactHex()}${s===0?\"1b\":\"1c\"}`;return r===\"hex\"?u:Ka(u)}zg();async function jy(e,t){let{address:r,chain:n=e.chain,hash:o,erc6492VerifierAddress:s=t.universalSignatureVerifierAddress??n?.contracts?.erc6492Verifier?.address,multicallAddress:u=t.multicallAddress??n?.contracts?.multicall3?.address,mode:f=\"auto\"}=t;if(n?.verifyHash)return await n.verifyHash(e,t);let d=(()=>{let m=t.signature;return Ro(m)?m:typeof m==\"object\"&&\"r\"in m&&\"s\"in m?nze(m):Or(m)})();try{if(f===\"eoa\")try{if(Vl(Nn(r),await CT({hash:o,signature:d})))return!0}catch{}return VT.validate(d)?await ugt(e,{...t,multicallAddress:u,signature:d}):await lgt(e,{...t,verifierAddress:s,signature:d})}catch(m){if(f!==\"eoa\")try{if(Vl(Nn(r),await CT({hash:o,signature:d})))return!0}catch{}if(m instanceof Wm)return!1;throw m}}async function ugt(e,t){let{address:r,blockNumber:n,blockTag:o,hash:s,multicallAddress:u}=t,{authorization:f,data:d,signature:m,to:h}=VT.unwrap(t.signature);if(await Fg(e,{address:r,blockNumber:n,blockTag:o})===$l([\"0xef0100\",f.address]))return await fgt(e,{address:r,blockNumber:n,blockTag:o,hash:s,signature:m});let v={address:f.address,chainId:Number(f.chainId),nonce:Number(f.nonce),r:Fe(f.r,{size:32}),s:Fe(f.s,{size:32}),yParity:f.yParity};if(!await uLe({address:r,authorization:v}))throw new Wm;let C=await Ue(e,Zo,\"readContract\")({...u?{address:u}:{code:L5},authorizationList:[v],abi:Dd,blockNumber:n,blockTag:\"pending\",functionName:\"aggregate3\",args:[[...d?[{allowFailure:!0,target:h??r,callData:d}]:[],{allowFailure:!0,target:r,callData:_n({abi:QQ,functionName:\"isValidSignature\",args:[s,m]})}]]});if(C[C.length-1]?.returnData?.startsWith(\"0x1626ba7e\"))return!0;throw new Wm}async function lgt(e,t){let{address:r,factory:n,factoryData:o,hash:s,signature:u,verifierAddress:f,...d}=t,m=await(async()=>!n&&!o||QT.validate(u)?u:QT.wrap({data:o,signature:u,to:n}))(),h=f?{to:f,data:_n({abi:ZQ,functionName:\"isValidSig\",args:[r,s,m]}),...d}:{data:NT({abi:ZQ,args:[r,s,m],bytecode:SHe}),...d},{data:y}=await Ue(e,Ru,\"call\")(h).catch(v=>{throw v instanceof $6?new Wm:v});if(bQ(y??\"0x0\"))return!0;throw new Wm}async function fgt(e,t){let{address:r,blockNumber:n,blockTag:o,hash:s,signature:u}=t;if((await Ue(e,Zo,\"readContract\")({address:r,abi:QQ,args:[s,u],blockNumber:n,blockTag:o,functionName:\"isValidSignature\"}).catch(d=>{throw d instanceof G6?new Wm:d})).startsWith(\"0x1626ba7e\"))return!0;throw new Wm}var Wm=class extends Error{};c();async function oze(e,{address:t,message:r,factory:n,factoryData:o,signature:s,...u}){let f=SN(r);return Ue(e,jy,\"verifyHash\")({address:t,factory:n,factoryData:o,hash:f,signature:s,...u})}c();async function aze(e,t){let{address:r,factory:n,factoryData:o,signature:s,message:u,primaryType:f,types:d,domain:m,...h}=t,y=gLe({message:u,primaryType:f,types:d,domain:m});return Ue(e,jy,\"verifyHash\")({address:r,factory:n,factoryData:o,hash:y,signature:s,...h})}c();zm();tZ();Qs();c();os();Qs();function WN(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:o,poll:s,pollingInterval:u=e.pollingInterval}){let f=typeof s<\"u\"?s:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")),d;return f?(()=>{let y=Nr([\"watchBlockNumber\",e.uid,t,r,u]);return Js(y,{onBlockNumber:n,onError:o},v=>Hd(async()=>{try{let E=await Ue(e,Ld,\"getBlockNumber\")({cacheTime:0});if(d!==void 0){if(E===d)return;if(E-d>1&&r)for(let C=d+1n;C<E;C++)v.onBlockNumber(C,d),d=C}(d===void 0||E>d)&&(v.onBlockNumber(E,d),d=E)}catch(E){v.onError?.(E)}},{emitOnBegin:t,interval:u}))})():(()=>{let y=Nr([\"watchBlockNumber\",e.uid,t,r]);return Js(y,{onBlockNumber:n,onError:o},v=>{let E=!0,C=()=>E=!1;return(async()=>{try{let B=(()=>{if(e.transport.type===\"fallback\"){let M=e.transport.transports.find(U=>U.config.type===\"webSocket\"||U.config.type===\"ipc\");return M?M.value:e.transport}return e.transport})(),{unsubscribe:R}=await B.subscribe({params:[\"newHeads\"],onData(M){if(!E)return;let U=Va(M.result?.number);v.onBlockNumber(U,d),d=U},onError(M){v.onError?.(M)}});C=R,E||C()}catch(B){o?.(B)}})(),()=>C()})})()}async function ize(e,t){let{checkReplacement:r=!0,confirmations:n=1,hash:o,onReplaced:s,retryCount:u=6,retryDelay:f=({count:j})=>~~(1<<j)*200,timeout:d=18e4}=t,m=Nr([\"waitForTransactionReceipt\",e.uid,o]),h=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,y,v,E,C=!1,B,R,{promise:M,resolve:U,reject:O}=aN(),N=d?setTimeout(()=>{R?.(),B?.(),O(new TO({hash:o}))},d):void 0;return B=Js(m,{onReplaced:s,resolve:U,reject:O},async j=>{if(E=await Ue(e,V5,\"getTransactionReceipt\")({hash:o}).catch(()=>{}),E&&n<=1){clearTimeout(N),j.resolve(E),B?.();return}R=Ue(e,WN,\"watchBlockNumber\")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:h,async onBlockNumber(K){let G=Y=>{clearTimeout(N),R?.(),Y(),B?.()},J=K;if(!C)try{if(E){if(n>1&&(!E.blockNumber||J-E.blockNumber+1n<n))return;G(()=>j.resolve(E));return}if(r&&!y&&(C=!0,await HT(async()=>{y=await Ue(e,G5,\"getTransaction\")({hash:o}),y.blockNumber&&(J=y.blockNumber)},{delay:f,retryCount:u}),C=!1),E=await Ue(e,V5,\"getTransactionReceipt\")({hash:o}),n>1&&(!E.blockNumber||J-E.blockNumber+1n<n))return;G(()=>j.resolve(E))}catch(Y){if(Y instanceof j6||Y instanceof q6){if(!y){C=!1;return}try{v=y,C=!0;let W=await HT(()=>Ue(e,Ca,\"getBlock\")({blockNumber:J,includeTransactions:!0}),{delay:f,retryCount:u,shouldRetry:({error:H})=>H instanceof C5});C=!1;let ie=W.transactions.find(({from:H,nonce:A})=>H===v.from&&A===v.nonce);if(!ie||(E=await Ue(e,V5,\"getTransactionReceipt\")({hash:ie.hash}),n>1&&(!E.blockNumber||J-E.blockNumber+1n<n)))return;let re=\"replaced\";ie.to===v.to&&ie.value===v.value&&ie.input===v.input?re=\"repriced\":ie.from===ie.to&&ie.value===0n&&(re=\"cancelled\"),G(()=>{j.onReplaced?.({reason:re,replacedTransaction:v,transaction:ie,transactionReceipt:E}),j.resolve(E)})}catch(W){G(()=>j.reject(W))}}else G(()=>j.reject(Y))}}})}),M}c();Qs();function sze(e,{blockTag:t=e.experimental_blockTag??\"latest\",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:o,onError:s,includeTransactions:u,poll:f,pollingInterval:d=e.pollingInterval}){let m=typeof f<\"u\"?f:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")),h=u??!1,y;return m?(()=>{let C=Nr([\"watchBlocks\",e.uid,t,r,n,h,d]);return Js(C,{onBlock:o,onError:s},B=>Hd(async()=>{try{let R=await Ue(e,Ca,\"getBlock\")({blockTag:t,includeTransactions:h});if(R.number!==null&&y?.number!=null){if(R.number===y.number)return;if(R.number-y.number>1&&r)for(let M=y?.number+1n;M<R.number;M++){let U=await Ue(e,Ca,\"getBlock\")({blockNumber:M,includeTransactions:h});B.onBlock(U,y),y=U}}(y?.number==null||t===\"pending\"&&R?.number==null||R.number!==null&&R.number>y.number)&&(B.onBlock(R,y),y=R)}catch(R){B.onError?.(R)}},{emitOnBegin:n,interval:d}))})():(()=>{let C=!0,B=!0,R=()=>C=!1;return(async()=>{try{n&&Ue(e,Ca,\"getBlock\")({blockTag:t,includeTransactions:h}).then(O=>{C&&B&&(o(O,void 0),B=!1)}).catch(s);let M=(()=>{if(e.transport.type===\"fallback\"){let O=e.transport.transports.find(N=>N.config.type===\"webSocket\"||N.config.type===\"ipc\");return O?O.value:e.transport}return e.transport})(),{unsubscribe:U}=await M.subscribe({params:[\"newHeads\"],async onData(O){if(!C)return;let N=await Ue(e,Ca,\"getBlock\")({blockNumber:O.result?.number,includeTransactions:h}).catch(()=>{});C&&(o(N,y),B=!1,y=N)},onError(O){s?.(O)}});R=U,C||R()}catch(M){s?.(M)}})(),()=>R()})()}c();Po();ST();Qs();function cze(e,{address:t,args:r,batch:n=!0,event:o,events:s,fromBlock:u,onError:f,onLogs:d,poll:m,pollingInterval:h=e.pollingInterval,strict:y}){let v=typeof m<\"u\"?m:typeof u==\"bigint\"?!0:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")),E=y??!1;return v?(()=>{let R=Nr([\"watchEvent\",t,r,n,e.uid,o,h,u]);return Js(R,{onLogs:d,onError:f},M=>{let U;u!==void 0&&(U=u-1n);let O,N=!1,j=Hd(async()=>{if(!N){try{O=await Ue(e,vN,\"createEventFilter\")({address:t,args:r,event:o,events:s,strict:E,fromBlock:u})}catch{}N=!0;return}try{let K;if(O)K=await Ue(e,Dy,\"getFilterChanges\")({filter:O});else{let G=await Ue(e,Ld,\"getBlockNumber\")({});U&&U!==G?K=await Ue(e,R5,\"getLogs\")({address:t,args:r,event:o,events:s,fromBlock:U+1n,toBlock:G}):K=[],U=G}if(K.length===0)return;if(n)M.onLogs(K);else for(let G of K)M.onLogs([G])}catch(K){O&&K instanceof _u&&(N=!1),M.onError?.(K)}},{emitOnBegin:!0,interval:h});return async()=>{O&&await Ue(e,Hy,\"uninstallFilter\")({filter:O}),j()}})})():(()=>{let R=!0,M=()=>R=!1;return(async()=>{try{let U=(()=>{if(e.transport.type===\"fallback\"){let K=e.transport.transports.find(G=>G.config.type===\"webSocket\"||G.config.type===\"ipc\");return K?K.value:e.transport}return e.transport})(),O=s??(o?[o]:void 0),N=[];O&&(N=[O.flatMap(G=>Pd({abi:[G],eventName:G.name,args:r}))],o&&(N=N[0]));let{unsubscribe:j}=await U.subscribe({params:[\"logs\",{address:t,topics:N}],onData(K){if(!R)return;let G=K.result;try{let{eventName:J,args:Y}=Ug({abi:O??[],data:G.data,topics:G.topics,strict:E}),W=Ta(G,{args:Y,eventName:J});d([W])}catch(J){let Y,W;if(J instanceof Om||J instanceof xy){if(y)return;Y=J.abiItem.name,W=J.abiItem.inputs?.some(re=>!(\"name\"in re&&re.name))}let ie=Ta(G,{args:W?[]:{},eventName:Y});d([ie])}},onError(K){f?.(K)}});M=j,R||M()}catch(U){f?.(U)}})(),()=>M()})()}c();Qs();function uze(e,{batch:t=!0,onError:r,onTransactions:n,poll:o,pollingInterval:s=e.pollingInterval}){return(typeof o<\"u\"?o:e.transport.type!==\"webSocket\"&&e.transport.type!==\"ipc\")?(()=>{let m=Nr([\"watchPendingTransactions\",e.uid,t,s]);return Js(m,{onTransactions:n,onError:r},h=>{let y,v=Hd(async()=>{try{if(!y)try{y=await Ue(e,wN,\"createPendingTransactionFilter\")({});return}catch(C){throw v(),C}let E=await Ue(e,Dy,\"getFilterChanges\")({filter:y});if(E.length===0)return;if(t)h.onTransactions(E);else for(let C of E)h.onTransactions([C])}catch(E){h.onError?.(E)}},{emitOnBegin:!0,interval:s});return async()=>{y&&await Ue(e,Hy,\"uninstallFilter\")({filter:y}),v()}})})():(()=>{let m=!0,h=()=>m=!1;return(async()=>{try{let{unsubscribe:y}=await e.transport.subscribe({params:[\"newPendingTransactions\"],onData(v){if(!m)return;let E=v.result;n([E])},onError(v){r?.(v)}});h=y,m||h()}catch(y){r?.(y)}})(),()=>h()})()}c();c();function lze(e){let{scheme:t,statement:r,...n}=e.match(dgt)?.groups??{},{chainId:o,expirationTime:s,issuedAt:u,notBefore:f,requestId:d,...m}=e.match(pgt)?.groups??{},h=e.split(\"Resources:\")[1]?.split(`\\n- `).slice(1);return{...n,...m,...o?{chainId:Number(o)}:{},...s?{expirationTime:new Date(s)}:{},...u?{issuedAt:new Date(u)}:{},...f?{notBefore:new Date(f)}:{},...d?{requestId:d}:{},...h?{resources:h}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}var dgt=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\\\\/\\\\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\\\\n)(?<address>0x[a-fA-F0-9]{40})\\\\n\\\\n(?:(?<statement>.*)\\\\n\\\\n)?/,pgt=/(?:URI: (?<uri>.+))\\\\n(?:Version: (?<version>.+))\\\\n(?:Chain ID: (?<chainId>\\\\d+))\\\\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\\\\n(?:Issued At: (?<issuedAt>.+))(?:\\\\nExpiration Time: (?<expirationTime>.+))?(?:\\\\nNot Before: (?<notBefore>.+))?(?:\\\\nRequest ID: (?<requestId>.+))?/;c();Dm();I5();function fze(e){let{address:t,domain:r,message:n,nonce:o,scheme:s,time:u=new Date}=e;if(r&&n.domain!==r||o&&n.nonce!==o||s&&n.scheme!==s||n.expirationTime&&u>=n.expirationTime||n.notBefore&&u<n.notBefore)return!1;try{if(!n.address||!Qo(n.address,{strict:!1})||t&&!Vl(n.address,t))return!1}catch{return!1}return!0}async function dze(e,t){let{address:r,domain:n,message:o,nonce:s,scheme:u,signature:f,time:d=new Date,...m}=t,h=lze(o);if(!h.address||!fze({address:r,domain:n,message:h,nonce:s,scheme:u,time:d}))return!1;let v=SN(o);return jy(e,{address:h.address,hash:v,signature:f,...m})}c();zm();async function pze(e,{serializedTransaction:t,throwOnReceiptRevert:r,timeout:n}){let o=await e.request({method:\"eth_sendRawTransactionSync\",params:n?[t,n]:[t]},{retryCount:0}),u=(e.chain?.formatters?.transactionReceipt?.format||lN)(o);if(u.status===\"reverted\"&&r)throw new CO({receipt:u});return u}function mze(e){return{call:t=>Ru(e,t),createAccessList:t=>xN(e,t),createBlockFilter:()=>eLe(e),createContractEventFilter:t=>pO(e,t),createEventFilter:t=>vN(e,t),createPendingTransactionFilter:()=>wN(e),estimateContractGas:t=>WDe(e,t),estimateGas:t=>B5(e,t),getBalance:t=>tLe(e,t),getBlobBaseFee:()=>rLe(e),getBlock:t=>Ca(e,t),getBlockNumber:t=>Ld(e,t),getBlockTransactionCount:t=>nLe(e,t),getBytecode:t=>Fg(e,t),getChainId:()=>k5(e),getCode:t=>Fg(e,t),getContractEvents:t=>$O(e,t),getDelegation:t=>oLe(e,t),getEip712Domain:t=>aLe(e,t),getEnsAddress:t=>GHe(e,t),getEnsAvatar:t=>JHe(e,t),getEnsName:t=>YHe(e,t),getEnsResolver:t=>XHe(e,t),getEnsText:t=>gN(e,t),getFeeHistory:t=>sLe(e,t),estimateFeesPerGas:t=>LDe(e,t),getFilterChanges:t=>Dy(e,t),getFilterLogs:t=>cLe(e,t),getGasPrice:()=>_5(e),getLogs:t=>R5(e,t),getProof:t=>GLe(e,t),estimateMaxPriorityFeePerGas:t=>HDe(e,t),fillTransaction:t=>jO(e,t),getStorageAt:t=>VLe(e,t),getTransaction:t=>G5(e,t),getTransactionConfirmations:t=>KLe(e,t),getTransactionCount:t=>DO(e,t),getTransactionReceipt:t=>V5(e,t),multicall:t=>WLe(e,t),prepareTransactionRequest:t=>qO(e,t),readContract:t=>Zo(e,t),sendRawTransaction:t=>FHe(e,t),sendRawTransactionSync:t=>pze(e,t),simulate:t=>KT(e,t),simulateBlocks:t=>KT(e,t),simulateCalls:t=>tze(e,t),simulateContract:t=>UHe(e,t),verifyHash:t=>jy(e,t),verifyMessage:t=>oze(e,t),verifySiweMessage:t=>dze(e,t),verifyTypedData:t=>aze(e,t),uninstallFilter:t=>Hy(e,t),waitForTransactionReceipt:t=>ize(e,t),watchBlocks:t=>sze(e,t),watchBlockNumber:t=>WN(e,t),watchContractEvent:t=>zHe(e,t),watchEvent:t=>cze(e,t),watchPendingTransactions:t=>uze(e,t)}}function $Z(e){let{key:t=\"public\",name:r=\"Public Client\"}=e;return jHe({...e,key:t,name:r,type:\"publicClient\"}).extend(mze)}c();function hze({key:e,methods:t,name:r,request:n,retryCount:o=3,retryDelay:s=150,timeout:u,type:f},d){let m=pN();return{config:{key:e,methods:t,name:r,request:n,retryCount:o,retryDelay:s,timeout:u,type:f},request:fLe(n,{methods:t,retryCount:o,retryDelay:s,uid:m}),value:d}}c();Pg();c();xr();var QN=class extends be{constructor(){super(\"No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.\",{docsPath:\"/docs/clients/intro\",name:\"UrlRequiredError\"})}};nZ();function GZ(e,t={}){let{batch:r,fetchFn:n,fetchOptions:o,key:s=\"http\",methods:u,name:f=\"HTTP JSON-RPC\",onFetchRequest:d,onFetchResponse:m,retryDelay:h,raw:y}=t;return({chain:v,retryCount:E,timeout:C})=>{let{batchSize:B=1e3,wait:R=0}=typeof r==\"object\"?r:{},M=t.retryCount??E,U=C??t.timeout??1e4,O=e||v?.rpcUrls.default.http[0];if(!O)throw new QN;let N=pLe(O,{fetchFn:n,fetchOptions:o,onRequest:d,onResponse:m,timeout:U});return hze({key:s,methods:u,name:f,async request({method:j,params:K}){let G={method:j,params:K},{schedule:J}=iN({id:O,wait:R,shouldSplitBatch(re){return re.length>B},fn:re=>N.request({body:re}),sort:(re,H)=>re.id-H.id}),Y=async re=>r?J(re):[await N.request({body:re})],[{error:W,result:ie}]=await Y(G);if(y)return{error:W,result:ie};if(W)throw new ky({body:G,error:W,url:O});return ie},retryCount:M,retryDelay:h,timeout:U,type:\"http\"},{fetchOptions:o,url:O})}}MQ();Nc();Sy();Ht();c();function qy(e){if(e.startsWith(\"eip155:\")){let t=e.split(\":\")[1],r=parseInt(t,10);if(isNaN(r))throw new Error(`Invalid CAIP-2 chain ID: ${e}`);return r}throw new Error(`Unsupported network format: ${e} (expected eip155:CHAIN_ID)`)}function yze(){let e=globalThis.crypto;if(!e)throw new Error(\"Crypto API not available\");return e}function VZ(){return Wo(yze().getRandomValues(new Uint8Array(32)))}function bze(){let e=yze().getRandomValues(new Uint8Array(32));return BigInt(Wo(e)).toString()}var bgt={ethereum:1,sepolia:11155111,abstract:2741,\"abstract-testnet\":11124,\"base-sepolia\":84532,base:8453,\"avalanche-fuji\":43113,avalanche:43114,iotex:4689,sei:1329,\"sei-testnet\":1328,polygon:137,\"polygon-amoy\":80002,peaq:3338,story:1514,educhain:41923,\"skale-base-sepolia\":324705682,megaeth:4326,monad:143,stable:988,\"stable-testnet\":2201},ggt=Object.keys(bgt);c();c();c();var KZ=\"eip2612GasSponsoring\",WZ=\"erc20ApprovalGasSponsoring\",gze=\"1\";async function xze(e,t,r,n){let o=Math.floor(Date.now()/1e3),s=bze(),u=(o-600).toString(),f=(o+n.maxTimeoutSeconds).toString(),d={from:t.address,permitted:{token:Nn(n.asset),amount:n.amount},spender:e,nonce:s,deadline:f,witness:{to:Nn(n.payTo),validAfter:u}},m=await xgt(t,d,n);return{x402Version:r,payload:{signature:m,permit2Authorization:d}}}async function xgt(e,t,r){let n=qy(r.network);return await e.signTypedData({domain:{name:\"Permit2\",chainId:n,verifyingContract:by},types:dUe,primaryType:\"PermitWitnessTransferFrom\",message:{permitted:{token:Nn(t.permitted.token),amount:BigInt(t.permitted.amount)},spender:Nn(t.spender),nonce:BigInt(t.nonce),deadline:BigInt(t.deadline),witness:{to:Nn(t.witness.to),validAfter:BigInt(t.witness.validAfter)}}})}var u7n=BigInt(\"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\");async function vze(e,t,r){return xze(gUe,e,t,r)}c();async function vgt(e,t,r,n,o,s,u){let f=e.address,d=Nn(by),m=await e.readContract({address:t,abi:mUe,functionName:\"nonces\",args:[f]}),h={name:r,version:n,chainId:o,verifyingContract:t},y=BigInt(u),v={owner:f,spender:d,value:y,nonce:m,deadline:BigInt(s)},E=await e.signTypedData({domain:h,types:pUe,primaryType:\"Permit\",message:v});return{from:f,asset:t,spender:d,amount:y.toString(),nonce:m.toString(),deadline:s,signature:E,version:\"1\"}}async function wgt(e,t,r){let n=e.address,o=Nn(by),s=_n({abi:vM,functionName:\"approve\",args:[o,A5]}),u=await e.getTransactionCount({address:n}),f,d;try{let h=await e.estimateFeesPerGas?.();if(!h)throw new Error(\"no fee estimates available\");f=h.maxFeePerGas,d=h.maxPriorityFeePerGas}catch{f=yUe,d=bUe}let m=await e.signTransaction({to:t,data:s,nonce:u,gas:hUe,maxFeePerGas:f,maxPriorityFeePerGas:d,chainId:r});return{from:n,asset:t,spender:o,amount:A5.toString(),signedTransaction:m,version:gze}}var wze=new Map;function Egt(e){let t=Object.keys(e);return t.length>0&&t.every(r=>/^\\\\d+$/.test(r))}function Agt(e){let t=wze.get(e);if(t)return t;let r=$Z({transport:GZ(e)});return wze.set(e,r),r}function Sgt(e,t){if(t){if(Egt(t)){let r=qy(e);return t[r]?.rpcUrl}return t.rpcUrl}}function Eze(e,t,r){let n={signTransaction:t.signTransaction,readContract:t.readContract,getTransactionCount:t.getTransactionCount,estimateFeesPerGas:t.estimateFeesPerGas};if(!(!n.readContract||!n.getTransactionCount||!n.estimateFeesPerGas))return n;let s=Sgt(e,r);if(!s)return n;let u=Agt(s);return n.readContract||(n.readContract=f=>u.readContract(f)),n.getTransactionCount||(n.getTransactionCount=async f=>u.getTransactionCount({address:f.address})),n.estimateFeesPerGas||(n.estimateFeesPerGas=async()=>u.estimateFeesPerGas()),n}async function Aze(e,t,r,n,o,s){let u=Eze(r.network,e,t);if(!u.readContract||!o?.extensions?.[KZ])return;let f=r.extra?.name,d=r.extra?.version;if(!f||!d)return;let m=qy(r.network),h=Nn(r.asset),y=s??r.amount;try{if(await u.readContract({address:h,abi:_6,functionName:\"allowance\",args:[e.address,by]})>=BigInt(y))return}catch{}let E=n.payload?.permit2Authorization?.deadline??Math.floor(Date.now()/1e3+r.maxTimeoutSeconds).toString(),C=await vgt({address:e.address,signTypedData:B=>e.signTypedData(B),readContract:u.readContract},h,f,d,m,E,y);return{[KZ]:{info:C}}}async function Sze(e,t,r,n,o){let s=Eze(r.network,e,t);if(!s.readContract||!n?.extensions?.[WZ]||!s.signTransaction||!s.getTransactionCount)return;let u=qy(r.network),f=Nn(r.asset),d=o??r.amount;try{if(await s.readContract({address:f,abi:_6,functionName:\"allowance\",args:[e.address,by]})>=BigInt(d))return}catch{}let m=await wgt({address:e.address,signTransaction:s.signTransaction,getTransactionCount:s.getTransactionCount,estimateFeesPerGas:s.estimateFeesPerGas},f,u);return{[WZ]:{info:m}}}async function Cgt(e,t,r){let n=VZ(),o=Math.floor(Date.now()/1e3),s={from:e.address,to:Nn(r.payTo),value:r.amount,validAfter:(o-600).toString(),validBefore:(o+r.maxTimeoutSeconds).toString(),nonce:n},u=await Tgt(e,s,r);return{x402Version:t,payload:{authorization:s,signature:u}}}async function Tgt(e,t,r){let n=qy(r.network);if(!r.extra?.name||!r.extra?.version)throw new Error(`EIP-712 domain parameters (name, version) are required in payment requirements for asset ${r.asset}`);let{name:o,version:s}=r.extra,u={name:o,version:s,chainId:n,verifyingContract:Nn(r.asset)},f={from:Nn(t.from),to:Nn(t.to),value:BigInt(t.value),validAfter:BigInt(t.validAfter),validBefore:BigInt(t.validBefore),nonce:t.nonce};return await e.signTypedData({domain:u,types:cQ,primaryType:\"TransferWithAuthorization\",message:f})}var QZ=class{constructor(e,t){this.signer=e,this.options=t,this.scheme=\"exact\"}async createPaymentPayload(e,t,r){if((t.extra?.assetTransferMethod??\"eip3009\")===\"permit2\"){let o=await vze(this.signer,e,t),s=await Aze(this.signer,this.options,t,o,r);if(s)return{...o,extensions:s};let u=await Sze(this.signer,this.options,t,r);return u?{...o,extensions:u}:o}return Cgt(this.signer,e,t)}};c();c();c();c();var He={};Wn(He,{BRAND:()=>Ygt,DIRTY:()=>Vg,EMPTY_PATH:()=>Igt,INVALID:()=>pt,NEVER:()=>Uxt,OK:()=>vi,ParseStatus:()=>Ja,Schema:()=>Yt,ZodAny:()=>Vy,ZodArray:()=>Ym,ZodBigInt:()=>Wg,ZodBoolean:()=>Qg,ZodBranded:()=>JT,ZodCatch:()=>ix,ZodDate:()=>Zg,ZodDefault:()=>ax,ZodDiscriminatedUnion:()=>YN,ZodEffects:()=>Uu,ZodEnum:()=>nx,ZodError:()=>Ys,ZodFirstPartyTypeKind:()=>bt,ZodFunction:()=>eU,ZodIntersection:()=>ex,ZodIssueCode:()=>Pe,ZodLazy:()=>tx,ZodLiteral:()=>rx,ZodMap:()=>X5,ZodNaN:()=>tE,ZodNativeEnum:()=>ox,ZodNever:()=>Kl,ZodNull:()=>Yg,ZodNullable:()=>jd,ZodNumber:()=>Kg,ZodObject:()=>Xs,ZodOptional:()=>Ou,ZodParsedType:()=>Ke,ZodPipeline:()=>YT,ZodPromise:()=>Ky,ZodReadonly:()=>sx,ZodRecord:()=>XN,ZodSchema:()=>Yt,ZodSet:()=>eE,ZodString:()=>Gy,ZodSymbol:()=>J5,ZodTransformer:()=>Uu,ZodTuple:()=>Fd,ZodType:()=>Yt,ZodUndefined:()=>Jg,ZodUnion:()=>Xg,ZodUnknown:()=>Jm,ZodVoid:()=>Y5,addIssueToContext:()=>ze,any:()=>sxt,array:()=>fxt,bigint:()=>rxt,boolean:()=>Nze,coerce:()=>Nxt,custom:()=>Rze,date:()=>nxt,datetimeRegex:()=>Ize,defaultErrorMap:()=>Qm,discriminatedUnion:()=>hxt,effect:()=>_xt,enum:()=>Sxt,function:()=>wxt,getErrorMap:()=>W5,getParsedType:()=>zd,instanceof:()=>ext,intersection:()=>yxt,isAborted:()=>ZN,isAsync:()=>Q5,isDirty:()=>JN,isValid:()=>$y,late:()=>Xgt,lazy:()=>Ext,literal:()=>Axt,makeIssue:()=>ZT,map:()=>xxt,nan:()=>txt,nativeEnum:()=>Cxt,never:()=>uxt,null:()=>ixt,nullable:()=>Bxt,number:()=>Oze,object:()=>dxt,objectUtil:()=>ZZ,oboolean:()=>Oxt,onumber:()=>Mxt,optional:()=>kxt,ostring:()=>Rxt,pipeline:()=>Pxt,preprocess:()=>Ixt,promise:()=>Txt,quotelessJson:()=>_gt,record:()=>gxt,set:()=>vxt,setErrorMap:()=>Bgt,strictObject:()=>pxt,string:()=>Mze,symbol:()=>oxt,transformer:()=>_xt,tuple:()=>bxt,undefined:()=>axt,union:()=>mxt,unknown:()=>cxt,util:()=>dr,void:()=>lxt});c();c();c();c();c();var dr;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,e.arrayToEnum=o=>{let s={};for(let u of o)s[u]=u;return s},e.getValidEnumValues=o=>{let s=e.objectKeys(o).filter(f=>typeof o[o[f]]!=\"number\"),u={};for(let f of s)u[f]=o[f];return e.objectValues(u)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys==\"function\"?o=>Object.keys(o):o=>{let s=[];for(let u in o)Object.prototype.hasOwnProperty.call(o,u)&&s.push(u);return s},e.find=(o,s)=>{for(let u of o)if(s(u))return u},e.isInteger=typeof Number.isInteger==\"function\"?o=>Number.isInteger(o):o=>typeof o==\"number\"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,s=\" | \"){return o.map(u=>typeof u==\"string\"?`\\'${u}\\'`:u).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(o,s)=>typeof s==\"bigint\"?s.toString():s})(dr||(dr={}));var ZZ;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(ZZ||(ZZ={}));var Ke=dr.arrayToEnum([\"string\",\"nan\",\"number\",\"integer\",\"float\",\"boolean\",\"date\",\"bigint\",\"symbol\",\"function\",\"undefined\",\"null\",\"array\",\"object\",\"unknown\",\"promise\",\"void\",\"never\",\"map\",\"set\"]),zd=e=>{switch(typeof e){case\"undefined\":return Ke.undefined;case\"string\":return Ke.string;case\"number\":return Number.isNaN(e)?Ke.nan:Ke.number;case\"boolean\":return Ke.boolean;case\"function\":return Ke.function;case\"bigint\":return Ke.bigint;case\"symbol\":return Ke.symbol;case\"object\":return Array.isArray(e)?Ke.array:e===null?Ke.null:e.then&&typeof e.then==\"function\"&&e.catch&&typeof e.catch==\"function\"?Ke.promise:typeof Map<\"u\"&&e instanceof Map?Ke.map:typeof Set<\"u\"&&e instanceof Set?Ke.set:typeof Date<\"u\"&&e instanceof Date?Ke.date:Ke.object;default:return Ke.unknown}};var Pe=dr.arrayToEnum([\"invalid_type\",\"invalid_literal\",\"custom\",\"invalid_union\",\"invalid_union_discriminator\",\"invalid_enum_value\",\"unrecognized_keys\",\"invalid_arguments\",\"invalid_return_type\",\"invalid_date\",\"invalid_string\",\"too_small\",\"too_big\",\"invalid_intersection_types\",\"not_multiple_of\",\"not_finite\"]),_gt=e=>JSON.stringify(e,null,2).replace(/\"([^\"]+)\":/g,\"$1:\"),Ys=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name=\"ZodError\",this.issues=t}format(t){let r=t||function(s){return s.message},n={_errors:[]},o=s=>{for(let u of s.issues)if(u.code===\"invalid_union\")u.unionErrors.map(o);else if(u.code===\"invalid_return_type\")o(u.returnTypeError);else if(u.code===\"invalid_arguments\")o(u.argumentsError);else if(u.path.length===0)n._errors.push(r(u));else{let f=n,d=0;for(;d<u.path.length;){let m=u.path[d];d===u.path.length-1?(f[m]=f[m]||{_errors:[]},f[m]._errors.push(r(u))):f[m]=f[m]||{_errors:[]},f=f[m],d++}}};return o(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,dr.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},n=[];for(let o of this.issues)if(o.path.length>0){let s=o.path[0];r[s]=r[s]||[],r[s].push(t(o))}else n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Ys.create=e=>new Ys(e);var kgt=(e,t)=>{let r;switch(e.code){case Pe.invalid_type:e.received===Ke.undefined?r=\"Required\":r=`Expected ${e.expected}, received ${e.received}`;break;case Pe.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,dr.jsonStringifyReplacer)}`;break;case Pe.unrecognized_keys:r=`Unrecognized key(s) in object: ${dr.joinValues(e.keys,\", \")}`;break;case Pe.invalid_union:r=\"Invalid input\";break;case Pe.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${dr.joinValues(e.options)}`;break;case Pe.invalid_enum_value:r=`Invalid enum value. Expected ${dr.joinValues(e.options)}, received \\'${e.received}\\'`;break;case Pe.invalid_arguments:r=\"Invalid function arguments\";break;case Pe.invalid_return_type:r=\"Invalid function return type\";break;case Pe.invalid_date:r=\"Invalid date\";break;case Pe.invalid_string:typeof e.validation==\"object\"?\"includes\"in e.validation?(r=`Invalid input: must include \"${e.validation.includes}\"`,typeof e.validation.position==\"number\"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):\"startsWith\"in e.validation?r=`Invalid input: must start with \"${e.validation.startsWith}\"`:\"endsWith\"in e.validation?r=`Invalid input: must end with \"${e.validation.endsWith}\"`:dr.assertNever(e.validation):e.validation!==\"regex\"?r=`Invalid ${e.validation}`:r=\"Invalid\";break;case Pe.too_small:e.type===\"array\"?r=`Array must contain ${e.exact?\"exactly\":e.inclusive?\"at least\":\"more than\"} ${e.minimum} element(s)`:e.type===\"string\"?r=`String must contain ${e.exact?\"exactly\":e.inclusive?\"at least\":\"over\"} ${e.minimum} character(s)`:e.type===\"number\"?r=`Number must be ${e.exact?\"exactly equal to \":e.inclusive?\"greater than or equal to \":\"greater than \"}${e.minimum}`:e.type===\"bigint\"?r=`Number must be ${e.exact?\"exactly equal to \":e.inclusive?\"greater than or equal to \":\"greater than \"}${e.minimum}`:e.type===\"date\"?r=`Date must be ${e.exact?\"exactly equal to \":e.inclusive?\"greater than or equal to \":\"greater than \"}${new Date(Number(e.minimum))}`:r=\"Invalid input\";break;case Pe.too_big:e.type===\"array\"?r=`Array must contain ${e.exact?\"exactly\":e.inclusive?\"at most\":\"less than\"} ${e.maximum} element(s)`:e.type===\"string\"?r=`String must contain ${e.exact?\"exactly\":e.inclusive?\"at most\":\"under\"} ${e.maximum} character(s)`:e.type===\"number\"?r=`Number must be ${e.exact?\"exactly\":e.inclusive?\"less than or equal to\":\"less than\"} ${e.maximum}`:e.type===\"bigint\"?r=`BigInt must be ${e.exact?\"exactly\":e.inclusive?\"less than or equal to\":\"less than\"} ${e.maximum}`:e.type===\"date\"?r=`Date must be ${e.exact?\"exactly\":e.inclusive?\"smaller than or equal to\":\"smaller than\"} ${new Date(Number(e.maximum))}`:r=\"Invalid input\";break;case Pe.custom:r=\"Invalid input\";break;case Pe.invalid_intersection_types:r=\"Intersection results could not be merged\";break;case Pe.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Pe.not_finite:r=\"Number must be finite\";break;default:r=t.defaultError,dr.assertNever(e)}return{message:r}},Qm=kgt;var Cze=Qm;function Bgt(e){Cze=e}function W5(){return Cze}c();var ZT=e=>{let{data:t,path:r,errorMaps:n,issueData:o}=e,s=[...r,...o.path||[]],u={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let f=\"\",d=n.filter(m=>!!m).slice().reverse();for(let m of d)f=m(u,{data:t,defaultError:f}).message;return{...o,path:s,message:f}},Igt=[];function ze(e,t){let r=W5(),n=ZT({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Qm?void 0:Qm].filter(o=>!!o)});e.common.issues.push(n)}var Ja=class e{constructor(){this.value=\"valid\"}dirty(){this.value===\"valid\"&&(this.value=\"dirty\")}abort(){this.value!==\"aborted\"&&(this.value=\"aborted\")}static mergeArray(t,r){let n=[];for(let o of r){if(o.status===\"aborted\")return pt;o.status===\"dirty\"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let o of r){let s=await o.key,u=await o.value;n.push({key:s,value:u})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let o of r){let{key:s,value:u}=o;if(s.status===\"aborted\"||u.status===\"aborted\")return pt;s.status===\"dirty\"&&t.dirty(),u.status===\"dirty\"&&t.dirty(),s.value!==\"__proto__\"&&(typeof u.value<\"u\"||o.alwaysSet)&&(n[s.value]=u.value)}return{status:t.value,value:n}}},pt=Object.freeze({status:\"aborted\"}),Vg=e=>({status:\"dirty\",value:e}),vi=e=>({status:\"valid\",value:e}),ZN=e=>e.status===\"aborted\",JN=e=>e.status===\"dirty\",$y=e=>e.status===\"valid\",Q5=e=>typeof Promise<\"u\"&&e instanceof Promise;c();c();var nt;(function(e){e.errToObj=t=>typeof t==\"string\"?{message:t}:t||{},e.toString=t=>typeof t==\"string\"?t:t?.message})(nt||(nt={}));var Nu=class{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Tze=(e,t)=>{if($y(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error(\"Validation failed but no issues detected.\");return{success:!1,get error(){if(this._error)return this._error;let r=new Ys(e.common.issues);return this._error=r,this._error}}};function Lt(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error(`Can\\'t use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(u,f)=>{let{message:d}=e;return u.code===\"invalid_enum_value\"?{message:d??f.defaultError}:typeof f.data>\"u\"?{message:d??n??f.defaultError}:u.code!==\"invalid_type\"?{message:f.defaultError}:{message:d??r??f.defaultError}},description:o}}var Yt=class{get description(){return this._def.description}_getType(t){return zd(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:zd(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ja,ctx:{common:t.parent.common,data:t.data,parsedType:zd(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Q5(r))throw new Error(\"Synchronous parse encountered promise.\");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:zd(t)},o=this._parseSync({data:t,path:n.path,parent:n});return Tze(n,o)}\"~validate\"(t){let r={common:{issues:[],async:!!this[\"~standard\"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:zd(t)};if(!this[\"~standard\"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return $y(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes(\"encountered\")&&(this[\"~standard\"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>$y(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:zd(t)},o=this._parse({data:t,path:n.path,parent:n}),s=await(Q5(o)?o:Promise.resolve(o));return Tze(n,s)}refine(t,r){let n=o=>typeof r==\"string\"||typeof r>\"u\"?{message:r}:typeof r==\"function\"?r(o):r;return this._refinement((o,s)=>{let u=t(o),f=()=>s.addIssue({code:Pe.custom,...n(o)});return typeof Promise<\"u\"&&u instanceof Promise?u.then(d=>d?!0:(f(),!1)):u?!0:(f(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r==\"function\"?r(n,o):r),!1))}_refinement(t){return new Uu({schema:this,typeName:bt.ZodEffects,effect:{type:\"refinement\",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[\"~standard\"]={version:1,vendor:\"zod\",validate:r=>this[\"~validate\"](r)}}optional(){return Ou.create(this,this._def)}nullable(){return jd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ym.create(this)}promise(){return Ky.create(this,this._def)}or(t){return Xg.create([this,t],this._def)}and(t){return ex.create(this,t,this._def)}transform(t){return new Uu({...Lt(this._def),schema:this,typeName:bt.ZodEffects,effect:{type:\"transform\",transform:t}})}default(t){let r=typeof t==\"function\"?t:()=>t;return new ax({...Lt(this._def),innerType:this,defaultValue:r,typeName:bt.ZodDefault})}brand(){return new JT({typeName:bt.ZodBranded,type:this,...Lt(this._def)})}catch(t){let r=typeof t==\"function\"?t:()=>t;return new ix({...Lt(this._def),innerType:this,catchValue:r,typeName:bt.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return YT.create(this,t)}readonly(){return sx.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Pgt=/^c[^\\\\s-]{8,}$/i,Rgt=/^[0-9a-z]+$/,Mgt=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Ogt=/^[0-9a-fA-F]{8}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{12}$/i,Ngt=/^[a-z0-9_-]{21}$/i,Ugt=/^[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]*$/,Dgt=/^[-+]?P(?!$)(?:(?:[-+]?\\\\d+Y)|(?:[-+]?\\\\d+[.,]\\\\d+Y$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:(?:[-+]?\\\\d+W)|(?:[-+]?\\\\d+[.,]\\\\d+W$))?(?:(?:[-+]?\\\\d+D)|(?:[-+]?\\\\d+[.,]\\\\d+D$))?(?:T(?=[\\\\d+-])(?:(?:[-+]?\\\\d+H)|(?:[-+]?\\\\d+[.,]\\\\d+H$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:[-+]?\\\\d+(?:[.,]\\\\d+)?S)?)??$/,Hgt=/^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Z0-9_\\'+\\\\-\\\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\\\-]*\\\\.)+[A-Z]{2,}$/i,Lgt=\"^(\\\\\\\\p{Extended_Pictographic}|\\\\\\\\p{Emoji_Component})+$\",JZ,zgt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Fgt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\/(3[0-2]|[12]?[0-9])$/,jgt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,qgt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$gt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ggt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,kze=\"((\\\\\\\\d\\\\\\\\d[2468][048]|\\\\\\\\d\\\\\\\\d[13579][26]|\\\\\\\\d\\\\\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\\\\\d|30)|(02)-(0[1-9]|1\\\\\\\\d|2[0-8])))\",Vgt=new RegExp(`^${kze}$`);function Bze(e){let t=\"[0-5]\\\\\\\\d\";e.precision?t=`${t}\\\\\\\\.\\\\\\\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\\\\\\\.\\\\\\\\d+)?`);let r=e.precision?\"+\":\"?\";return`([01]\\\\\\\\d|2[0-3]):[0-5]\\\\\\\\d(:${t})${r}`}function Kgt(e){return new RegExp(`^${Bze(e)}$`)}function Ize(e){let t=`${kze}T${Bze(e)}`,r=[];return r.push(e.local?\"Z?\":\"Z\"),e.offset&&r.push(\"([+-]\\\\\\\\d{2}:?\\\\\\\\d{2})\"),t=`${t}(${r.join(\"|\")})`,new RegExp(`^${t}$`)}function Wgt(e,t){return!!((t===\"v4\"||!t)&&zgt.test(e)||(t===\"v6\"||!t)&&jgt.test(e))}function Qgt(e,t){if(!Ugt.test(e))return!1;try{let[r]=e.split(\".\");if(!r)return!1;let n=r.replace(/-/g,\"+\").replace(/_/g,\"/\").padEnd(r.length+(4-r.length%4)%4,\"=\"),o=JSON.parse(atob(n));return!(typeof o!=\"object\"||o===null||\"typ\"in o&&o?.typ!==\"JWT\"||!o.alg||t&&o.alg!==t)}catch{return!1}}function Zgt(e,t){return!!((t===\"v4\"||!t)&&Fgt.test(e)||(t===\"v6\"||!t)&&qgt.test(e))}var Gy=class e extends Yt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ke.string){let s=this._getOrReturnCtx(t);return ze(s,{code:Pe.invalid_type,expected:Ke.string,received:s.parsedType}),pt}let n=new Ja,o;for(let s of this._def.checks)if(s.kind===\"min\")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),ze(o,{code:Pe.too_small,minimum:s.value,type:\"string\",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind===\"max\")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),ze(o,{code:Pe.too_big,maximum:s.value,type:\"string\",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind===\"length\"){let u=t.data.length>s.value,f=t.data.length<s.value;(u||f)&&(o=this._getOrReturnCtx(t,o),u?ze(o,{code:Pe.too_big,maximum:s.value,type:\"string\",inclusive:!0,exact:!0,message:s.message}):f&&ze(o,{code:Pe.too_small,minimum:s.value,type:\"string\",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind===\"email\")Hgt.test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"email\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"emoji\")JZ||(JZ=new RegExp(Lgt,\"u\")),JZ.test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"emoji\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"uuid\")Ogt.test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"uuid\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"nanoid\")Ngt.test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"nanoid\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"cuid\")Pgt.test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"cuid\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"cuid2\")Rgt.test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"cuid2\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"ulid\")Mgt.test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"ulid\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"url\")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),ze(o,{validation:\"url\",code:Pe.invalid_string,message:s.message}),n.dirty()}else s.kind===\"regex\"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"regex\",code:Pe.invalid_string,message:s.message}),n.dirty())):s.kind===\"trim\"?t.data=t.data.trim():s.kind===\"includes\"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),ze(o,{code:Pe.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind===\"toLowerCase\"?t.data=t.data.toLowerCase():s.kind===\"toUpperCase\"?t.data=t.data.toUpperCase():s.kind===\"startsWith\"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),ze(o,{code:Pe.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind===\"endsWith\"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),ze(o,{code:Pe.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind===\"datetime\"?Ize(s).test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{code:Pe.invalid_string,validation:\"datetime\",message:s.message}),n.dirty()):s.kind===\"date\"?Vgt.test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{code:Pe.invalid_string,validation:\"date\",message:s.message}),n.dirty()):s.kind===\"time\"?Kgt(s).test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{code:Pe.invalid_string,validation:\"time\",message:s.message}),n.dirty()):s.kind===\"duration\"?Dgt.test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"duration\",code:Pe.invalid_string,message:s.message}),n.dirty()):s.kind===\"ip\"?Wgt(t.data,s.version)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"ip\",code:Pe.invalid_string,message:s.message}),n.dirty()):s.kind===\"jwt\"?Qgt(t.data,s.alg)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"jwt\",code:Pe.invalid_string,message:s.message}),n.dirty()):s.kind===\"cidr\"?Zgt(t.data,s.version)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"cidr\",code:Pe.invalid_string,message:s.message}),n.dirty()):s.kind===\"base64\"?$gt.test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"base64\",code:Pe.invalid_string,message:s.message}),n.dirty()):s.kind===\"base64url\"?Ggt.test(t.data)||(o=this._getOrReturnCtx(t,o),ze(o,{validation:\"base64url\",code:Pe.invalid_string,message:s.message}),n.dirty()):dr.assertNever(s);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(o=>t.test(o),{validation:r,code:Pe.invalid_string,...nt.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:\"email\",...nt.errToObj(t)})}url(t){return this._addCheck({kind:\"url\",...nt.errToObj(t)})}emoji(t){return this._addCheck({kind:\"emoji\",...nt.errToObj(t)})}uuid(t){return this._addCheck({kind:\"uuid\",...nt.errToObj(t)})}nanoid(t){return this._addCheck({kind:\"nanoid\",...nt.errToObj(t)})}cuid(t){return this._addCheck({kind:\"cuid\",...nt.errToObj(t)})}cuid2(t){return this._addCheck({kind:\"cuid2\",...nt.errToObj(t)})}ulid(t){return this._addCheck({kind:\"ulid\",...nt.errToObj(t)})}base64(t){return this._addCheck({kind:\"base64\",...nt.errToObj(t)})}base64url(t){return this._addCheck({kind:\"base64url\",...nt.errToObj(t)})}jwt(t){return this._addCheck({kind:\"jwt\",...nt.errToObj(t)})}ip(t){return this._addCheck({kind:\"ip\",...nt.errToObj(t)})}cidr(t){return this._addCheck({kind:\"cidr\",...nt.errToObj(t)})}datetime(t){return typeof t==\"string\"?this._addCheck({kind:\"datetime\",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:\"datetime\",precision:typeof t?.precision>\"u\"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...nt.errToObj(t?.message)})}date(t){return this._addCheck({kind:\"date\",message:t})}time(t){return typeof t==\"string\"?this._addCheck({kind:\"time\",precision:null,message:t}):this._addCheck({kind:\"time\",precision:typeof t?.precision>\"u\"?null:t?.precision,...nt.errToObj(t?.message)})}duration(t){return this._addCheck({kind:\"duration\",...nt.errToObj(t)})}regex(t,r){return this._addCheck({kind:\"regex\",regex:t,...nt.errToObj(r)})}includes(t,r){return this._addCheck({kind:\"includes\",value:t,position:r?.position,...nt.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:\"startsWith\",value:t,...nt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:\"endsWith\",value:t,...nt.errToObj(r)})}min(t,r){return this._addCheck({kind:\"min\",value:t,...nt.errToObj(r)})}max(t,r){return this._addCheck({kind:\"max\",value:t,...nt.errToObj(r)})}length(t,r){return this._addCheck({kind:\"length\",value:t,...nt.errToObj(r)})}nonempty(t){return this.min(1,nt.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:\"trim\"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:\"toLowerCase\"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:\"toUpperCase\"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind===\"datetime\")}get isDate(){return!!this._def.checks.find(t=>t.kind===\"date\")}get isTime(){return!!this._def.checks.find(t=>t.kind===\"time\")}get isDuration(){return!!this._def.checks.find(t=>t.kind===\"duration\")}get isEmail(){return!!this._def.checks.find(t=>t.kind===\"email\")}get isURL(){return!!this._def.checks.find(t=>t.kind===\"url\")}get isEmoji(){return!!this._def.checks.find(t=>t.kind===\"emoji\")}get isUUID(){return!!this._def.checks.find(t=>t.kind===\"uuid\")}get isNANOID(){return!!this._def.checks.find(t=>t.kind===\"nanoid\")}get isCUID(){return!!this._def.checks.find(t=>t.kind===\"cuid\")}get isCUID2(){return!!this._def.checks.find(t=>t.kind===\"cuid2\")}get isULID(){return!!this._def.checks.find(t=>t.kind===\"ulid\")}get isIP(){return!!this._def.checks.find(t=>t.kind===\"ip\")}get isCIDR(){return!!this._def.checks.find(t=>t.kind===\"cidr\")}get isBase64(){return!!this._def.checks.find(t=>t.kind===\"base64\")}get isBase64url(){return!!this._def.checks.find(t=>t.kind===\"base64url\")}get minLength(){let t=null;for(let r of this._def.checks)r.kind===\"min\"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind===\"max\"&&(t===null||r.value<t)&&(t=r.value);return t}};Gy.create=e=>new Gy({checks:[],typeName:bt.ZodString,coerce:e?.coerce??!1,...Lt(e)});function Jgt(e,t){let r=(e.toString().split(\".\")[1]||\"\").length,n=(t.toString().split(\".\")[1]||\"\").length,o=r>n?r:n,s=Number.parseInt(e.toFixed(o).replace(\".\",\"\")),u=Number.parseInt(t.toFixed(o).replace(\".\",\"\"));return s%u/10**o}var Kg=class e extends Yt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ke.number){let s=this._getOrReturnCtx(t);return ze(s,{code:Pe.invalid_type,expected:Ke.number,received:s.parsedType}),pt}let n,o=new Ja;for(let s of this._def.checks)s.kind===\"int\"?dr.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),ze(n,{code:Pe.invalid_type,expected:\"integer\",received:\"float\",message:s.message}),o.dirty()):s.kind===\"min\"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),ze(n,{code:Pe.too_small,minimum:s.value,type:\"number\",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind===\"max\"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),ze(n,{code:Pe.too_big,maximum:s.value,type:\"number\",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind===\"multipleOf\"?Jgt(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),ze(n,{code:Pe.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind===\"finite\"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),ze(n,{code:Pe.not_finite,message:s.message}),o.dirty()):dr.assertNever(s);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit(\"min\",t,!0,nt.toString(r))}gt(t,r){return this.setLimit(\"min\",t,!1,nt.toString(r))}lte(t,r){return this.setLimit(\"max\",t,!0,nt.toString(r))}lt(t,r){return this.setLimit(\"max\",t,!1,nt.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:nt.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:\"int\",message:nt.toString(t)})}positive(t){return this._addCheck({kind:\"min\",value:0,inclusive:!1,message:nt.toString(t)})}negative(t){return this._addCheck({kind:\"max\",value:0,inclusive:!1,message:nt.toString(t)})}nonpositive(t){return this._addCheck({kind:\"max\",value:0,inclusive:!0,message:nt.toString(t)})}nonnegative(t){return this._addCheck({kind:\"min\",value:0,inclusive:!0,message:nt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:\"multipleOf\",value:t,message:nt.toString(r)})}finite(t){return this._addCheck({kind:\"finite\",message:nt.toString(t)})}safe(t){return this._addCheck({kind:\"min\",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:nt.toString(t)})._addCheck({kind:\"max\",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:nt.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind===\"min\"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind===\"max\"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind===\"int\"||t.kind===\"multipleOf\"&&dr.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind===\"finite\"||n.kind===\"int\"||n.kind===\"multipleOf\")return!0;n.kind===\"min\"?(r===null||n.value>r)&&(r=n.value):n.kind===\"max\"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};Kg.create=e=>new Kg({checks:[],typeName:bt.ZodNumber,coerce:e?.coerce||!1,...Lt(e)});var Wg=class e extends Yt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ke.bigint)return this._getInvalidInput(t);let n,o=new Ja;for(let s of this._def.checks)s.kind===\"min\"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),ze(n,{code:Pe.too_small,type:\"bigint\",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind===\"max\"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),ze(n,{code:Pe.too_big,type:\"bigint\",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind===\"multipleOf\"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),ze(n,{code:Pe.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):dr.assertNever(s);return{status:o.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return ze(r,{code:Pe.invalid_type,expected:Ke.bigint,received:r.parsedType}),pt}gte(t,r){return this.setLimit(\"min\",t,!0,nt.toString(r))}gt(t,r){return this.setLimit(\"min\",t,!1,nt.toString(r))}lte(t,r){return this.setLimit(\"max\",t,!0,nt.toString(r))}lt(t,r){return this.setLimit(\"max\",t,!1,nt.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:nt.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:\"min\",value:BigInt(0),inclusive:!1,message:nt.toString(t)})}negative(t){return this._addCheck({kind:\"max\",value:BigInt(0),inclusive:!1,message:nt.toString(t)})}nonpositive(t){return this._addCheck({kind:\"max\",value:BigInt(0),inclusive:!0,message:nt.toString(t)})}nonnegative(t){return this._addCheck({kind:\"min\",value:BigInt(0),inclusive:!0,message:nt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:\"multipleOf\",value:t,message:nt.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind===\"min\"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind===\"max\"&&(t===null||r.value<t)&&(t=r.value);return t}};Wg.create=e=>new Wg({checks:[],typeName:bt.ZodBigInt,coerce:e?.coerce??!1,...Lt(e)});var Qg=class extends Yt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ke.boolean){let n=this._getOrReturnCtx(t);return ze(n,{code:Pe.invalid_type,expected:Ke.boolean,received:n.parsedType}),pt}return vi(t.data)}};Qg.create=e=>new Qg({typeName:bt.ZodBoolean,coerce:e?.coerce||!1,...Lt(e)});var Zg=class e extends Yt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ke.date){let s=this._getOrReturnCtx(t);return ze(s,{code:Pe.invalid_type,expected:Ke.date,received:s.parsedType}),pt}if(Number.isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return ze(s,{code:Pe.invalid_date}),pt}let n=new Ja,o;for(let s of this._def.checks)s.kind===\"min\"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),ze(o,{code:Pe.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:\"date\"}),n.dirty()):s.kind===\"max\"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),ze(o,{code:Pe.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:\"date\"}),n.dirty()):dr.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:\"min\",value:t.getTime(),message:nt.toString(r)})}max(t,r){return this._addCheck({kind:\"max\",value:t.getTime(),message:nt.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind===\"min\"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind===\"max\"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};Zg.create=e=>new Zg({checks:[],coerce:e?.coerce||!1,typeName:bt.ZodDate,...Lt(e)});var J5=class extends Yt{_parse(t){if(this._getType(t)!==Ke.symbol){let n=this._getOrReturnCtx(t);return ze(n,{code:Pe.invalid_type,expected:Ke.symbol,received:n.parsedType}),pt}return vi(t.data)}};J5.create=e=>new J5({typeName:bt.ZodSymbol,...Lt(e)});var Jg=class extends Yt{_parse(t){if(this._getType(t)!==Ke.undefined){let n=this._getOrReturnCtx(t);return ze(n,{code:Pe.invalid_type,expected:Ke.undefined,received:n.parsedType}),pt}return vi(t.data)}};Jg.create=e=>new Jg({typeName:bt.ZodUndefined,...Lt(e)});var Yg=class extends Yt{_parse(t){if(this._getType(t)!==Ke.null){let n=this._getOrReturnCtx(t);return ze(n,{code:Pe.invalid_type,expected:Ke.null,received:n.parsedType}),pt}return vi(t.data)}};Yg.create=e=>new Yg({typeName:bt.ZodNull,...Lt(e)});var Vy=class extends Yt{constructor(){super(...arguments),this._any=!0}_parse(t){return vi(t.data)}};Vy.create=e=>new Vy({typeName:bt.ZodAny,...Lt(e)});var Jm=class extends Yt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return vi(t.data)}};Jm.create=e=>new Jm({typeName:bt.ZodUnknown,...Lt(e)});var Kl=class extends Yt{_parse(t){let r=this._getOrReturnCtx(t);return ze(r,{code:Pe.invalid_type,expected:Ke.never,received:r.parsedType}),pt}};Kl.create=e=>new Kl({typeName:bt.ZodNever,...Lt(e)});var Y5=class extends Yt{_parse(t){if(this._getType(t)!==Ke.undefined){let n=this._getOrReturnCtx(t);return ze(n,{code:Pe.invalid_type,expected:Ke.void,received:n.parsedType}),pt}return vi(t.data)}};Y5.create=e=>new Y5({typeName:bt.ZodVoid,...Lt(e)});var Ym=class e extends Yt{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==Ke.array)return ze(r,{code:Pe.invalid_type,expected:Ke.array,received:r.parsedType}),pt;if(o.exactLength!==null){let u=r.data.length>o.exactLength.value,f=r.data.length<o.exactLength.value;(u||f)&&(ze(r,{code:u?Pe.too_big:Pe.too_small,minimum:f?o.exactLength.value:void 0,maximum:u?o.exactLength.value:void 0,type:\"array\",inclusive:!0,exact:!0,message:o.exactLength.message}),n.dirty())}if(o.minLength!==null&&r.data.length<o.minLength.value&&(ze(r,{code:Pe.too_small,minimum:o.minLength.value,type:\"array\",inclusive:!0,exact:!1,message:o.minLength.message}),n.dirty()),o.maxLength!==null&&r.data.length>o.maxLength.value&&(ze(r,{code:Pe.too_big,maximum:o.maxLength.value,type:\"array\",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((u,f)=>o.type._parseAsync(new Nu(r,u,r.path,f)))).then(u=>Ja.mergeArray(n,u));let s=[...r.data].map((u,f)=>o.type._parseSync(new Nu(r,u,r.path,f)));return Ja.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:nt.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:nt.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:nt.toString(r)}})}nonempty(t){return this.min(1,t)}};Ym.create=(e,t)=>new Ym({type:e,minLength:null,maxLength:null,exactLength:null,typeName:bt.ZodArray,...Lt(t)});function Z5(e){if(e instanceof Xs){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=Ou.create(Z5(n))}return new Xs({...e._def,shape:()=>t})}else return e instanceof Ym?new Ym({...e._def,type:Z5(e.element)}):e instanceof Ou?Ou.create(Z5(e.unwrap())):e instanceof jd?jd.create(Z5(e.unwrap())):e instanceof Fd?Fd.create(e.items.map(t=>Z5(t))):e}var Xs=class e extends Yt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=dr.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==Ke.object){let m=this._getOrReturnCtx(t);return ze(m,{code:Pe.invalid_type,expected:Ke.object,received:m.parsedType}),pt}let{status:n,ctx:o}=this._processInputParams(t),{shape:s,keys:u}=this._getCached(),f=[];if(!(this._def.catchall instanceof Kl&&this._def.unknownKeys===\"strip\"))for(let m in o.data)u.includes(m)||f.push(m);let d=[];for(let m of u){let h=s[m],y=o.data[m];d.push({key:{status:\"valid\",value:m},value:h._parse(new Nu(o,y,o.path,m)),alwaysSet:m in o.data})}if(this._def.catchall instanceof Kl){let m=this._def.unknownKeys;if(m===\"passthrough\")for(let h of f)d.push({key:{status:\"valid\",value:h},value:{status:\"valid\",value:o.data[h]}});else if(m===\"strict\")f.length>0&&(ze(o,{code:Pe.unrecognized_keys,keys:f}),n.dirty());else if(m!==\"strip\")throw new Error(\"Internal ZodObject error: invalid unknownKeys value.\")}else{let m=this._def.catchall;for(let h of f){let y=o.data[h];d.push({key:{status:\"valid\",value:h},value:m._parse(new Nu(o,y,o.path,h)),alwaysSet:h in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let m=[];for(let h of d){let y=await h.key,v=await h.value;m.push({key:y,value:v,alwaysSet:h.alwaysSet})}return m}).then(m=>Ja.mergeObjectSync(n,m)):Ja.mergeObjectSync(n,d)}get shape(){return this._def.shape()}strict(t){return nt.errToObj,new e({...this._def,unknownKeys:\"strict\",...t!==void 0?{errorMap:(r,n)=>{let o=this._def.errorMap?.(r,n).message??n.defaultError;return r.code===\"unrecognized_keys\"?{message:nt.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:\"strip\"})}passthrough(){return new e({...this._def,unknownKeys:\"passthrough\"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:bt.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let n of dr.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let n of dr.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}deepPartial(){return Z5(this)}partial(t){let r={};for(let n of dr.objectKeys(this.shape)){let o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let n of dr.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Ou;)s=s._def.innerType;r[n]=s}return new e({...this._def,shape:()=>r})}keyof(){return Pze(dr.objectKeys(this.shape))}};Xs.create=(e,t)=>new Xs({shape:()=>e,unknownKeys:\"strip\",catchall:Kl.create(),typeName:bt.ZodObject,...Lt(t)});Xs.strictCreate=(e,t)=>new Xs({shape:()=>e,unknownKeys:\"strict\",catchall:Kl.create(),typeName:bt.ZodObject,...Lt(t)});Xs.lazycreate=(e,t)=>new Xs({shape:e,unknownKeys:\"strip\",catchall:Kl.create(),typeName:bt.ZodObject,...Lt(t)});var Xg=class extends Yt{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function o(s){for(let f of s)if(f.result.status===\"valid\")return f.result;for(let f of s)if(f.result.status===\"dirty\")return r.common.issues.push(...f.ctx.common.issues),f.result;let u=s.map(f=>new Ys(f.ctx.common.issues));return ze(r,{code:Pe.invalid_union,unionErrors:u}),pt}if(r.common.async)return Promise.all(n.map(async s=>{let u={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:u}),ctx:u}})).then(o);{let s,u=[];for(let d of n){let m={...r,common:{...r.common,issues:[]},parent:null},h=d._parseSync({data:r.data,path:r.path,parent:m});if(h.status===\"valid\")return h;h.status===\"dirty\"&&!s&&(s={result:h,ctx:m}),m.common.issues.length&&u.push(m.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let f=u.map(d=>new Ys(d));return ze(r,{code:Pe.invalid_union,unionErrors:f}),pt}}get options(){return this._def.options}};Xg.create=(e,t)=>new Xg({options:e,typeName:bt.ZodUnion,...Lt(t)});var Zm=e=>e instanceof tx?Zm(e.schema):e instanceof Uu?Zm(e.innerType()):e instanceof rx?[e.value]:e instanceof nx?e.options:e instanceof ox?dr.objectValues(e.enum):e instanceof ax?Zm(e._def.innerType):e instanceof Jg?[void 0]:e instanceof Yg?[null]:e instanceof Ou?[void 0,...Zm(e.unwrap())]:e instanceof jd?[null,...Zm(e.unwrap())]:e instanceof JT||e instanceof sx?Zm(e.unwrap()):e instanceof ix?Zm(e._def.innerType):[],YN=class e extends Yt{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ke.object)return ze(r,{code:Pe.invalid_type,expected:Ke.object,received:r.parsedType}),pt;let n=this.discriminator,o=r.data[n],s=this.optionsMap.get(o);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(ze(r,{code:Pe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),pt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let o=new Map;for(let s of r){let u=Zm(s.shape[t]);if(!u.length)throw new Error(`A discriminator value for key \\\\`${t}\\\\` could not be extracted from all schema options`);for(let f of u){if(o.has(f))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(f)}`);o.set(f,s)}}return new e({typeName:bt.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:o,...Lt(n)})}};function YZ(e,t){let r=zd(e),n=zd(t);if(e===t)return{valid:!0,data:e};if(r===Ke.object&&n===Ke.object){let o=dr.objectKeys(t),s=dr.objectKeys(e).filter(f=>o.indexOf(f)!==-1),u={...e,...t};for(let f of s){let d=YZ(e[f],t[f]);if(!d.valid)return{valid:!1};u[f]=d.data}return{valid:!0,data:u}}else if(r===Ke.array&&n===Ke.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let s=0;s<e.length;s++){let u=e[s],f=t[s],d=YZ(u,f);if(!d.valid)return{valid:!1};o.push(d.data)}return{valid:!0,data:o}}else return r===Ke.date&&n===Ke.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var ex=class extends Yt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),o=(s,u)=>{if(ZN(s)||ZN(u))return pt;let f=YZ(s.value,u.value);return f.valid?((JN(s)||JN(u))&&r.dirty(),{status:r.value,value:f.data}):(ze(n,{code:Pe.invalid_intersection_types}),pt)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,u])=>o(s,u)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};ex.create=(e,t,r)=>new ex({left:e,right:t,typeName:bt.ZodIntersection,...Lt(r)});var Fd=class e extends Yt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ke.array)return ze(n,{code:Pe.invalid_type,expected:Ke.array,received:n.parsedType}),pt;if(n.data.length<this._def.items.length)return ze(n,{code:Pe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:\"array\"}),pt;!this._def.rest&&n.data.length>this._def.items.length&&(ze(n,{code:Pe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:\"array\"}),r.dirty());let s=[...n.data].map((u,f)=>{let d=this._def.items[f]||this._def.rest;return d?d._parse(new Nu(n,u,n.path,f)):null}).filter(u=>!!u);return n.common.async?Promise.all(s).then(u=>Ja.mergeArray(r,u)):Ja.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Fd.create=(e,t)=>{if(!Array.isArray(e))throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");return new Fd({items:e,typeName:bt.ZodTuple,rest:null,...Lt(t)})};var XN=class e extends Yt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ke.object)return ze(n,{code:Pe.invalid_type,expected:Ke.object,received:n.parsedType}),pt;let o=[],s=this._def.keyType,u=this._def.valueType;for(let f in n.data)o.push({key:s._parse(new Nu(n,f,n.path,f)),value:u._parse(new Nu(n,n.data[f],n.path,f)),alwaysSet:f in n.data});return n.common.async?Ja.mergeObjectAsync(r,o):Ja.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Yt?new e({keyType:t,valueType:r,typeName:bt.ZodRecord,...Lt(n)}):new e({keyType:Gy.create(),valueType:t,typeName:bt.ZodRecord,...Lt(r)})}},X5=class extends Yt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ke.map)return ze(n,{code:Pe.invalid_type,expected:Ke.map,received:n.parsedType}),pt;let o=this._def.keyType,s=this._def.valueType,u=[...n.data.entries()].map(([f,d],m)=>({key:o._parse(new Nu(n,f,n.path,[m,\"key\"])),value:s._parse(new Nu(n,d,n.path,[m,\"value\"]))}));if(n.common.async){let f=new Map;return Promise.resolve().then(async()=>{for(let d of u){let m=await d.key,h=await d.value;if(m.status===\"aborted\"||h.status===\"aborted\")return pt;(m.status===\"dirty\"||h.status===\"dirty\")&&r.dirty(),f.set(m.value,h.value)}return{status:r.value,value:f}})}else{let f=new Map;for(let d of u){let m=d.key,h=d.value;if(m.status===\"aborted\"||h.status===\"aborted\")return pt;(m.status===\"dirty\"||h.status===\"dirty\")&&r.dirty(),f.set(m.value,h.value)}return{status:r.value,value:f}}}};X5.create=(e,t,r)=>new X5({valueType:t,keyType:e,typeName:bt.ZodMap,...Lt(r)});var eE=class e extends Yt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ke.set)return ze(n,{code:Pe.invalid_type,expected:Ke.set,received:n.parsedType}),pt;let o=this._def;o.minSize!==null&&n.data.size<o.minSize.value&&(ze(n,{code:Pe.too_small,minimum:o.minSize.value,type:\"set\",inclusive:!0,exact:!1,message:o.minSize.message}),r.dirty()),o.maxSize!==null&&n.data.size>o.maxSize.value&&(ze(n,{code:Pe.too_big,maximum:o.maxSize.value,type:\"set\",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());let s=this._def.valueType;function u(d){let m=new Set;for(let h of d){if(h.status===\"aborted\")return pt;h.status===\"dirty\"&&r.dirty(),m.add(h.value)}return{status:r.value,value:m}}let f=[...n.data.values()].map((d,m)=>s._parse(new Nu(n,d,n.path,m)));return n.common.async?Promise.all(f).then(d=>u(d)):u(f)}min(t,r){return new e({...this._def,minSize:{value:t,message:nt.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:nt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};eE.create=(e,t)=>new eE({valueType:e,minSize:null,maxSize:null,typeName:bt.ZodSet,...Lt(t)});var eU=class e extends Yt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ke.function)return ze(r,{code:Pe.invalid_type,expected:Ke.function,received:r.parsedType}),pt;function n(f,d){return ZT({data:f,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,W5(),Qm].filter(m=>!!m),issueData:{code:Pe.invalid_arguments,argumentsError:d}})}function o(f,d){return ZT({data:f,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,W5(),Qm].filter(m=>!!m),issueData:{code:Pe.invalid_return_type,returnTypeError:d}})}let s={errorMap:r.common.contextualErrorMap},u=r.data;if(this._def.returns instanceof Ky){let f=this;return vi(async function(...d){let m=new Ys([]),h=await f._def.args.parseAsync(d,s).catch(E=>{throw m.addIssue(n(d,E)),m}),y=await Reflect.apply(u,this,h);return await f._def.returns._def.type.parseAsync(y,s).catch(E=>{throw m.addIssue(o(y,E)),m})})}else{let f=this;return vi(function(...d){let m=f._def.args.safeParse(d,s);if(!m.success)throw new Ys([n(d,m.error)]);let h=Reflect.apply(u,this,m.data),y=f._def.returns.safeParse(h,s);if(!y.success)throw new Ys([o(h,y.error)]);return y.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Fd.create(t).rest(Jm.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||Fd.create([]).rest(Jm.create()),returns:r||Jm.create(),typeName:bt.ZodFunction,...Lt(n)})}},tx=class extends Yt{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};tx.create=(e,t)=>new tx({getter:e,typeName:bt.ZodLazy,...Lt(t)});var rx=class extends Yt{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return ze(r,{received:r.data,code:Pe.invalid_literal,expected:this._def.value}),pt}return{status:\"valid\",value:t.data}}get value(){return this._def.value}};rx.create=(e,t)=>new rx({value:e,typeName:bt.ZodLiteral,...Lt(t)});function Pze(e,t){return new nx({values:e,typeName:bt.ZodEnum,...Lt(t)})}var nx=class e extends Yt{_parse(t){if(typeof t.data!=\"string\"){let r=this._getOrReturnCtx(t),n=this._def.values;return ze(r,{expected:dr.joinValues(n),received:r.parsedType,code:Pe.invalid_type}),pt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return ze(r,{received:r.data,code:Pe.invalid_enum_value,options:n}),pt}return vi(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};nx.create=Pze;var ox=class extends Yt{_parse(t){let r=dr.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==Ke.string&&n.parsedType!==Ke.number){let o=dr.objectValues(r);return ze(n,{expected:dr.joinValues(o),received:n.parsedType,code:Pe.invalid_type}),pt}if(this._cache||(this._cache=new Set(dr.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=dr.objectValues(r);return ze(n,{received:n.data,code:Pe.invalid_enum_value,options:o}),pt}return vi(t.data)}get enum(){return this._def.values}};ox.create=(e,t)=>new ox({values:e,typeName:bt.ZodNativeEnum,...Lt(t)});var Ky=class extends Yt{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ke.promise&&r.common.async===!1)return ze(r,{code:Pe.invalid_type,expected:Ke.promise,received:r.parsedType}),pt;let n=r.parsedType===Ke.promise?r.data:Promise.resolve(r.data);return vi(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Ky.create=(e,t)=>new Ky({type:e,typeName:bt.ZodPromise,...Lt(t)});var Uu=class extends Yt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===bt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:u=>{ze(n,u),u.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),o.type===\"preprocess\"){let u=o.transform(n.data,s);if(n.common.async)return Promise.resolve(u).then(async f=>{if(r.value===\"aborted\")return pt;let d=await this._def.schema._parseAsync({data:f,path:n.path,parent:n});return d.status===\"aborted\"?pt:d.status===\"dirty\"?Vg(d.value):r.value===\"dirty\"?Vg(d.value):d});{if(r.value===\"aborted\")return pt;let f=this._def.schema._parseSync({data:u,path:n.path,parent:n});return f.status===\"aborted\"?pt:f.status===\"dirty\"?Vg(f.value):r.value===\"dirty\"?Vg(f.value):f}}if(o.type===\"refinement\"){let u=f=>{let d=o.refinement(f,s);if(n.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error(\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\");return f};if(n.common.async===!1){let f=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return f.status===\"aborted\"?pt:(f.status===\"dirty\"&&r.dirty(),u(f.value),{status:r.value,value:f.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(f=>f.status===\"aborted\"?pt:(f.status===\"dirty\"&&r.dirty(),u(f.value).then(()=>({status:r.value,value:f.value}))))}if(o.type===\"transform\")if(n.common.async===!1){let u=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!$y(u))return pt;let f=o.transform(u.value,s);if(f instanceof Promise)throw new Error(\"Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.\");return{status:r.value,value:f}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(u=>$y(u)?Promise.resolve(o.transform(u.value,s)).then(f=>({status:r.value,value:f})):pt);dr.assertNever(o)}};Uu.create=(e,t,r)=>new Uu({schema:e,typeName:bt.ZodEffects,effect:t,...Lt(r)});Uu.createWithPreprocess=(e,t,r)=>new Uu({schema:t,effect:{type:\"preprocess\",transform:e},typeName:bt.ZodEffects,...Lt(r)});var Ou=class extends Yt{_parse(t){return this._getType(t)===Ke.undefined?vi(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ou.create=(e,t)=>new Ou({innerType:e,typeName:bt.ZodOptional,...Lt(t)});var jd=class extends Yt{_parse(t){return this._getType(t)===Ke.null?vi(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};jd.create=(e,t)=>new jd({innerType:e,typeName:bt.ZodNullable,...Lt(t)});var ax=class extends Yt{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===Ke.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};ax.create=(e,t)=>new ax({innerType:e,typeName:bt.ZodDefault,defaultValue:typeof t.default==\"function\"?t.default:()=>t.default,...Lt(t)});var ix=class extends Yt{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Q5(o)?o.then(s=>({status:\"valid\",value:s.status===\"valid\"?s.value:this._def.catchValue({get error(){return new Ys(n.common.issues)},input:n.data})})):{status:\"valid\",value:o.status===\"valid\"?o.value:this._def.catchValue({get error(){return new Ys(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ix.create=(e,t)=>new ix({innerType:e,typeName:bt.ZodCatch,catchValue:typeof t.catch==\"function\"?t.catch:()=>t.catch,...Lt(t)});var tE=class extends Yt{_parse(t){if(this._getType(t)!==Ke.nan){let n=this._getOrReturnCtx(t);return ze(n,{code:Pe.invalid_type,expected:Ke.nan,received:n.parsedType}),pt}return{status:\"valid\",value:t.data}}};tE.create=e=>new tE({typeName:bt.ZodNaN,...Lt(e)});var Ygt=Symbol(\"zod_brand\"),JT=class extends Yt{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},YT=class e extends Yt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status===\"aborted\"?pt:s.status===\"dirty\"?(r.dirty(),Vg(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status===\"aborted\"?pt:o.status===\"dirty\"?(r.dirty(),{status:\"dirty\",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:bt.ZodPipeline})}},sx=class extends Yt{_parse(t){let r=this._def.innerType._parse(t),n=o=>($y(o)&&(o.value=Object.freeze(o.value)),o);return Q5(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}};sx.create=(e,t)=>new sx({innerType:e,typeName:bt.ZodReadonly,...Lt(t)});function _ze(e,t){let r=typeof e==\"function\"?e(t):typeof e==\"string\"?{message:e}:e;return typeof r==\"string\"?{message:r}:r}function Rze(e,t={},r){return e?Vy.create().superRefine((n,o)=>{let s=e(n);if(s instanceof Promise)return s.then(u=>{if(!u){let f=_ze(t,n),d=f.fatal??r??!0;o.addIssue({code:\"custom\",...f,fatal:d})}});if(!s){let u=_ze(t,n),f=u.fatal??r??!0;o.addIssue({code:\"custom\",...u,fatal:f})}}):Vy.create()}var Xgt={object:Xs.lazycreate},bt;(function(e){e.ZodString=\"ZodString\",e.ZodNumber=\"ZodNumber\",e.ZodNaN=\"ZodNaN\",e.ZodBigInt=\"ZodBigInt\",e.ZodBoolean=\"ZodBoolean\",e.ZodDate=\"ZodDate\",e.ZodSymbol=\"ZodSymbol\",e.ZodUndefined=\"ZodUndefined\",e.ZodNull=\"ZodNull\",e.ZodAny=\"ZodAny\",e.ZodUnknown=\"ZodUnknown\",e.ZodNever=\"ZodNever\",e.ZodVoid=\"ZodVoid\",e.ZodArray=\"ZodArray\",e.ZodObject=\"ZodObject\",e.ZodUnion=\"ZodUnion\",e.ZodDiscriminatedUnion=\"ZodDiscriminatedUnion\",e.ZodIntersection=\"ZodIntersection\",e.ZodTuple=\"ZodTuple\",e.ZodRecord=\"ZodRecord\",e.ZodMap=\"ZodMap\",e.ZodSet=\"ZodSet\",e.ZodFunction=\"ZodFunction\",e.ZodLazy=\"ZodLazy\",e.ZodLiteral=\"ZodLiteral\",e.ZodEnum=\"ZodEnum\",e.ZodEffects=\"ZodEffects\",e.ZodNativeEnum=\"ZodNativeEnum\",e.ZodOptional=\"ZodOptional\",e.ZodNullable=\"ZodNullable\",e.ZodDefault=\"ZodDefault\",e.ZodCatch=\"ZodCatch\",e.ZodPromise=\"ZodPromise\",e.ZodBranded=\"ZodBranded\",e.ZodPipeline=\"ZodPipeline\",e.ZodReadonly=\"ZodReadonly\"})(bt||(bt={}));var ext=(e,t={message:`Input not instance of ${e.name}`})=>Rze(r=>r instanceof e,t),Mze=Gy.create,Oze=Kg.create,txt=tE.create,rxt=Wg.create,Nze=Qg.create,nxt=Zg.create,oxt=J5.create,axt=Jg.create,ixt=Yg.create,sxt=Vy.create,cxt=Jm.create,uxt=Kl.create,lxt=Y5.create,fxt=Ym.create,dxt=Xs.create,pxt=Xs.strictCreate,mxt=Xg.create,hxt=YN.create,yxt=ex.create,bxt=Fd.create,gxt=XN.create,xxt=X5.create,vxt=eE.create,wxt=eU.create,Ext=tx.create,Axt=rx.create,Sxt=nx.create,Cxt=ox.create,Txt=Ky.create,_xt=Uu.create,kxt=Ou.create,Bxt=jd.create,Ixt=Uu.createWithPreprocess,Pxt=YT.create,Rxt=()=>Mze().optional(),Mxt=()=>Oze().optional(),Oxt=()=>Nze().optional(),Nxt={string:(e=>Gy.create({...e,coerce:!0})),number:(e=>Kg.create({...e,coerce:!0})),boolean:(e=>Qg.create({...e,coerce:!0})),bigint:(e=>Wg.create({...e,coerce:!0})),date:(e=>Zg.create({...e,coerce:!0}))};var Uxt=pt;var Du=He.string().min(1),XZ=He.record(He.unknown()),tU=He.record(He.unknown()).optional().nullable(),eJ=Du,Dze=He.string().min(3).refine(e=>e.includes(\":\"),{message:\"Network must be in CAIP-2 format (e.g., \\'eip155:84532\\')\"}),B9n=He.union([eJ,Dze]),Uze=/^[\\\\x20-\\\\x7e]+$/,Hze=He.object({url:Du,description:He.string().optional(),mimeType:He.string().optional(),serviceName:He.string().min(1).max(32).regex(Uze).optional(),tags:He.array(He.string().min(1).max(32).regex(Uze)).max(5).optional(),iconUrl:He.string().max(2048).optional()}),Lze=He.object({scheme:Du,network:eJ,maxAmountRequired:Du,resource:Du,description:He.string(),mimeType:He.string().optional(),outputSchema:XZ.optional().nullable(),payTo:Du,maxTimeoutSeconds:He.number().positive(),asset:Du,extra:tU}),Dxt=He.object({x402Version:He.literal(1),error:He.string().optional(),accepts:He.array(Lze).min(1)}),Hxt=He.object({x402Version:He.literal(1),scheme:Du,network:eJ,payload:XZ}),tJ=He.object({scheme:Du,network:Dze,amount:Du,asset:Du,payTo:Du,maxTimeoutSeconds:He.number().positive(),extra:tU}),Lxt=He.object({x402Version:He.literal(2),error:He.string().optional(),resource:Hze,accepts:He.array(tJ).min(1),extensions:tU}),zxt=He.object({x402Version:He.literal(2),resource:Hze.optional(),accepted:tJ,payload:XZ,extensions:tU}),I9n=He.union([Lze,tJ]),P9n=He.discriminatedUnion(\"x402Version\",[Dxt,Lxt]),R9n=He.discriminatedUnion(\"x402Version\",[Hxt,zxt]);c();var rJ=2;c();c();var nJ=(e,t)=>{let r=e.get(t);if(!r)for(let[n,o]of e.entries()){let s=n.replace(/[.*+?^${}()|[\\\\]\\\\\\\\]/g,\"\\\\\\\\$&\").replace(/\\\\\\\\\\\\*/g,\".*\");if(new RegExp(`^${s}$`).test(t)){r=o;break}}return r},oJ=(e,t,r)=>nJ(e,r)?.get(t);function zze(e){if(typeof globalThis<\"u\"&&typeof globalThis.btoa==\"function\"){let t=new TextEncoder().encode(e),r=Array.from(t,n=>String.fromCharCode(n)).join(\"\");return globalThis.btoa(r)}return globalThis.Buffer.from(e,\"utf8\").toString(\"base64\")}c();var tBn=He.object({isValid:He.boolean(),invalidReason:He.string().nullish().transform(e=>e??void 0),invalidMessage:He.string().nullish().transform(e=>e??void 0),payer:He.string().nullish().transform(e=>e??void 0),extensions:He.record(He.string(),He.unknown()).nullish().transform(e=>e??void 0),extra:He.record(He.string(),He.unknown()).nullish().transform(e=>e??void 0)}),rBn=He.object({success:He.boolean(),errorReason:He.string().nullish().transform(e=>e??void 0),errorMessage:He.string().nullish().transform(e=>e??void 0),payer:He.string().nullish().transform(e=>e??void 0),transaction:He.string(),network:He.custom(e=>typeof e==\"string\"),amount:He.string().nullish().transform(e=>e??void 0),extensions:He.record(He.string(),He.unknown()).nullish().transform(e=>e??void 0),extra:He.record(He.string(),He.unknown()).nullish().transform(e=>e??void 0)}),jxt=He.object({x402Version:He.number(),scheme:He.string(),network:He.custom(e=>typeof e==\"string\"),extra:He.record(He.string(),He.unknown()).nullish().transform(e=>e??void 0)}),nBn=He.object({kinds:He.array(jxt),extensions:He.array(He.string()).default([]),signers:He.record(He.string(),He.array(He.string())).default({})});function aJ(e){return zze(JSON.stringify(e))}var Fze=class jze{constructor(t){this.registeredClientSchemes=new Map,this.schemeClientHookAdapters=new Map,this.policies=[],this.registeredExtensions=new Map,this.beforePaymentCreationHooks=[],this.afterPaymentCreationHooks=[],this.onPaymentCreationFailureHooks=[],this.paymentResponseHooks=[],this.paymentRequirementsSelector=t||((r,n)=>n[0])}static fromConfig(t){let r=new jze(t.paymentRequirementsSelector);return t.schemes.forEach(n=>{n.x402Version===1?r.registerV1(n.network,n.client):r.register(n.network,n.client)}),t.policies?.forEach(n=>{r.registerPolicy(n)}),r}register(t,r){return this._registerScheme(rJ,t,r)}registerV1(t,r){return this._registerScheme(1,t,r)}registerPolicy(t){return this.policies.push(t),this}registerExtension(t){return this.registeredExtensions.set(t.key,t),this}getExtensions(){return Array.from(this.registeredExtensions.values())}onBeforePaymentCreation(t){return this.beforePaymentCreationHooks.push(t),this}onAfterPaymentCreation(t){return this.afterPaymentCreationHooks.push(t),this}onPaymentCreationFailure(t){return this.onPaymentCreationFailureHooks.push(t),this}onPaymentResponse(t){return this.paymentResponseHooks.push(t),this}async handlePaymentResponse(t){for(let r of this.getLabeledHooks(\"onPaymentResponse\",t.paymentPayload.x402Version,t.requirements,t.paymentRequired?.extensions??t.paymentPayload.extensions)){let n=await r(t);if(n&&\"recovered\"in n&&n.recovered)return{recovered:!0}}}async createPaymentPayload(t){let r=this.registeredClientSchemes.get(t.x402Version);if(!r)throw new Error(`No client registered for x402 version: ${t.x402Version}`);let n=this.selectPaymentRequirements(t.x402Version,t.accepts),o={paymentRequired:t,selectedRequirements:n};for(let s of this.getLabeledHooks(\"beforePaymentCreation\",t.x402Version,n,t.extensions)){let u=await s(o);if(u&&\"abort\"in u&&u.abort)throw new Error(`Payment creation aborted: ${u.reason}`)}try{let s=oJ(r,n.scheme,n.network);if(!s)throw new Error(`No client registered for scheme: ${n.scheme} and network: ${n.network}`);let u=await s.createPaymentPayload(t.x402Version,n,{extensions:t.extensions}),f;if(u.x402Version==1)f=u;else{let m=this.mergeExtensions(t.extensions,u.extensions);f={x402Version:u.x402Version,payload:u.payload,extensions:m,resource:t.resource,accepted:n}}f=await this.enrichPaymentPayloadWithExtensions(f,t);let d={...o,paymentPayload:f};for(let m of this.getLabeledHooks(\"afterPaymentCreation\",t.x402Version,n,t.extensions))await m(d);return f}catch(s){let u={...o,error:s};for(let f of this.getLabeledHooks(\"onPaymentCreationFailure\",t.x402Version,n,t.extensions)){let d=await f(u);if(d&&\"recovered\"in d&&d.recovered)return d.payload}throw s}}mergeExtensions(t,r){if(!r)return t;if(!t)return r;let n={...t};for(let[o,s]of Object.entries(r)){let u=n[o];u&&typeof u==\"object\"&&s&&typeof s==\"object\"?n[o]={...u,...s}:n[o]=s}return n}async enrichPaymentPayloadWithExtensions(t,r){if(!r.extensions||this.registeredExtensions.size===0)return t;let n=t;for(let[o,s]of this.registeredExtensions)o in r.extensions&&s.enrichPaymentPayload&&(n=await s.enrichPaymentPayload(n,r));return n}selectPaymentRequirements(t,r){let n=this.registeredClientSchemes.get(t);if(!n)throw new Error(`No client registered for x402 version: ${t}`);let o=r.filter(u=>{let f=nJ(n,u.network);return f?f.has(u.scheme):!1});if(o.length===0)throw new Error(`No network/scheme registered for x402 version: ${t} which comply with the payment requirements. ${JSON.stringify({x402Version:t,paymentRequirements:r,x402Versions:Array.from(this.registeredClientSchemes.keys()),networks:Array.from(n.keys()),schemes:Array.from(n.values()).map(u=>Array.from(u.keys())).flat()})}`);let s=o;for(let u of this.policies)if(s=u(t,s),s.length===0)throw new Error(`All payment requirements were filtered out by policies for x402 version: ${t}`);return this.paymentRequirementsSelector(t,s)}_registerScheme(t,r,n){this.registeredClientSchemes.has(t)||this.registeredClientSchemes.set(t,new Map);let o=this.registeredClientSchemes.get(t);o.has(r)||o.set(r,new Map),o.get(r).set(n.scheme,n),this.schemeClientHookAdapters.has(t)||this.schemeClientHookAdapters.set(t,new Map);let u=this.schemeClientHookAdapters.get(t);u.has(r)||u.set(r,new Map);let f=u.get(r),d=n.schemeHooks;if(!d)return f.delete(n.scheme),this;let m={};return d.onBeforePaymentCreation&&(m.beforePaymentCreation=d.onBeforePaymentCreation),d.onAfterPaymentCreation&&(m.afterPaymentCreation=d.onAfterPaymentCreation),d.onPaymentCreationFailure&&(m.onPaymentCreationFailure=d.onPaymentCreationFailure),d.onPaymentResponse&&(m.onPaymentResponse=d.onPaymentResponse),Object.keys(m).length>0?f.set(n.scheme,m):f.delete(n.scheme),this}getLabeledHooks(t,r,n,o){let s;switch(t){case\"beforePaymentCreation\":s=this.beforePaymentCreationHooks;break;case\"afterPaymentCreation\":s=this.afterPaymentCreationHooks;break;case\"onPaymentCreationFailure\":s=this.onPaymentCreationFailureHooks;break;case\"onPaymentResponse\":s=this.paymentResponseHooks;break}let u=[...s],f=this.schemeClientHookAdapters.get(r),m=(f?oJ(f,n.scheme,n.network):void 0)?.[t];if(m!==void 0&&u.push(m),!o)return u;let h=this.getClientExtensionHookKey(t);for(let[y,v]of this.registeredExtensions){if(!(y in o))continue;let E=v.hooks?.[h];E&&u.push((async C=>E(o[y],C)))}return u}getClientExtensionHookKey(t){switch(t){case\"beforePaymentCreation\":return\"onBeforePaymentCreation\";case\"afterPaymentCreation\":return\"onAfterPaymentCreation\";case\"onPaymentCreationFailure\":return\"onPaymentCreationFailure\";case\"onPaymentResponse\":return\"onPaymentResponse\"}}};c();c();var qze=[{name:\"balanceOf\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"account\",type:\"address\"}],outputs:[{name:\"balance\",type:\"uint256\"}]},{name:\"decimals\",type:\"function\",stateMutability:\"view\",inputs:[],outputs:[{name:\"decimals\",type:\"uint8\"}]}];async function iJ(e,t,r){try{return await e.readContract({address:r,abi:qze,functionName:\"balanceOf\",args:[t]})}catch(n){return console.error(\"Failed to fetch token balance:\",n),0n}}async function $ze(e,t){try{let r=await e.readContract({address:t,abi:qze,functionName:\"decimals\"});return Number(r)}catch(r){return console.error(\"Failed to fetch token decimals:\",r),6}}c();var sJ=Sr(Dl(),1);function Gze({className:e=\"\"}){return(0,sJ.jsx)(\"div\",{className:`spinner ${e}`,children:(0,sJ.jsx)(\"div\",{})})}c();jR();var Vze={MAINNET:\"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\",DEVNET:\"EtWTRABZaYq6iMfeYKouRu166VU2xqa1\"},Kze={MAINNET:\"wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=\",TESTNET:\"SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=\"};function Wze(e){return e.startsWith(\"eip155:\")}function Qze(e){if(e.startsWith(\"eip155:\")){let t=parseInt(e.split(\":\")[1]),r=Object.values(ay).find(n=>n.id===t);return r?r.name:`Chain ${t}`}return e.startsWith(\"solana:\")?e.split(\":\")[1]===Vze.DEVNET?\"Solana Devnet\":\"Solana Mainnet\":e.startsWith(\"algorand:\")?e.split(\":\")[1]===Kze.TESTNET?\"Algorand Testnet\":\"Algorand Mainnet\":e}function Zze(e){if(e.startsWith(\"eip155:\")){let t=parseInt(e.split(\":\")[1]);return Object.values(ay).find(n=>n.id===t)?.testnet??!1}return e.startsWith(\"solana:\")?e.split(\":\")[1]===Vze.DEVNET:e.startsWith(\"algorand:\")?e.split(\":\")[1]===Kze.TESTNET:!1}c();var $xt={\"eip155:84532\":\"https://faucet.circle.com/\",\"eip155:421614\":\"https://faucet.circle.com/\",\"eip155:31611\":\"https://faucet.test.mezo.org/\",\"eip155:2201\":\"https://faucet.stable.xyz/faucet\",\"eip155:72344\":\"https://testnet.radiustech.xyz/wallet\",\"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\":\"https://faucet.circle.com/\",\"algorand:SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=\":\"https://dispenser.testnet.aws.algodev.network/\"};function Jze(e,t){return t.faucetUrls?.[e]??$xt[e]}c();function Yze(e){if(!e.account)throw new Error(\"Wallet client must have an account\");return{address:e.account.address,signTypedData:async t=>await e.signTypedData({account:e.account,domain:t.domain,types:t.types,primaryType:t.primaryType,message:t.message})}}var ar=Sr(Dl(),1);function Xze({paymentRequired:e,onSuccessfulResponse:t}){let{address:r,isConnected:n,chainId:o}=KC(),{switchChainAsync:s}=iQ(),{data:u}=sQ(),{connectors:f,connect:d}=oQ(),{disconnect:m}=aQ(),[h,y]=(0,Ya.useState)(\"\"),[v,E]=(0,Ya.useState)(null),[C,B]=(0,Ya.useState)(!1),[R,M]=(0,Ya.useState)(\"\"),[U,O]=(0,Ya.useState)(!0),[N,j]=(0,Ya.useState)(\"\"),K=window.x402,G=K.amount,J=e.accepts[0];if(!J)throw new Error(\"No payment requirements in paymentRequired.accepts\");let Y=J.network,W=J.extra?.name||\"Token\",ie=J.asset,re=Qze(Y),H=Zze(Y),A=parseInt(Y.split(\":\")[1]),T=Object.values(ay).find(Z=>Z.id===A);if(!T)throw new Error(`Unsupported chain ID: ${A}`);let P=(0,Ya.useMemo)(()=>uC({chain:T,transport:gd()}).extend($w),[T]),D=(0,Ya.useCallback)(async()=>{if(!r)return;let[Z,z]=await Promise.all([iJ(P,r,ie),$ze(P,ie)]);M(y1(Z,z))},[r,P,ie]),L=(0,Ya.useCallback)(async()=>{if(!v)try{y(\"\"),await s({chainId:A}),await new Promise(Z=>setTimeout(Z,100))}catch(Z){y(Z instanceof Error?Z.message:\"Failed to switch network\")}},[s,A,v]);(0,Ya.useEffect)(()=>{r&&(L(),D())},[r,L,D]),(0,Ya.useEffect)(()=>{n&&A===o?(E(!0),y(\"\")):n&&A!==o?(E(!1),y(`On the wrong network. Please switch to ${re}.`)):(E(null),y(\"\"))},[A,o,n,re]),(0,Ya.useEffect)(()=>{!N&&f.length===1&&j(f[0].id)},[f,N]);let V=(0,Ya.useCallback)(async()=>{if(!r||!K)return;if(await L(),!u){y(\"Wallet client not available. Please reconnect your wallet.\");return}let Z=u.extend($w);B(!0);try{if(y(\"Checking balance...\"),await iJ(P,r,ie)===0n)throw new Error(`Insufficient balance. Make sure you have ${W} on ${re}`);y(\"Creating payment signature...\");let I=Yze(Z),Q=new Fze;Q.register(\"eip155:*\",new QZ(I));let me=await Q.createPaymentPayload(e),ge=aJ(me);y(\"Requesting content with payment...\");let Se=await fetch(K.currentUrl,{headers:{\"PAYMENT-SIGNATURE\":ge,\"Access-Control-Expose-Headers\":\"PAYMENT-RESPONSE\"}});if(Se.ok)await t(Se);else throw new Error(`Request failed: ${Se.status} ${Se.statusText}`)}catch(z){y(z instanceof Error?z.message:\"Payment failed\")}finally{B(!1)}},[r,K,e,L,u,P,re,t]);return K?(0,ar.jsxs)(\"div\",{className:\"container gap-8\",children:[(0,ar.jsxs)(\"div\",{className:\"header\",children:[(0,ar.jsx)(\"h1\",{className:\"title\",children:\"Payment Required\"}),(0,ar.jsxs)(\"p\",{children:[e.resource?.description&&`${e.resource.description}.`,\" To access this content, please pay $\",G,\" \",W,\".\"]}),H&&(()=>{let Z=Jze(Y,K);return(0,ar.jsxs)(\"p\",{className:\"instructions\",children:[\"Need \",W,\" on \",re,\"?\",\" \",Z?(0,ar.jsxs)(\"a\",{href:Z,target:\"_blank\",rel:\"noopener noreferrer\",children:[\"Request some \",(0,ar.jsx)(\"u\",{children:\"here\"}),\".\"]}):(0,ar.jsx)(\"span\",{children:\"No faucet configured.\"})]})})()]}),(0,ar.jsxs)(\"div\",{className:\"content w-full\",children:[n?(0,ar.jsx)(\"div\",{className:\"cta-container\",children:(0,ar.jsx)(\"button\",{className:\"button button-secondary\",onClick:()=>m(),children:\"Disconnect\"})}):(0,ar.jsxs)(\"div\",{className:\"cta-container\",children:[(0,ar.jsxs)(\"select\",{className:\"input\",value:N,onChange:Z=>j(Z.target.value),children:[(0,ar.jsx)(\"option\",{value:\"\",disabled:!0,children:\"Select a wallet\"}),f.map(Z=>(0,ar.jsx)(\"option\",{value:Z.id,children:Z.name},Z.id))]}),(0,ar.jsx)(\"button\",{className:\"button button-primary\",onClick:()=>{let Z=f.find(z=>z.id===N);Z&&d({connector:Z})},disabled:!N,children:\"Connect wallet\"})]}),n&&(0,ar.jsxs)(\"div\",{id:\"payment-section\",children:[(0,ar.jsxs)(\"div\",{className:\"payment-details\",children:[(0,ar.jsxs)(\"div\",{className:\"payment-row\",children:[(0,ar.jsx)(\"span\",{className:\"payment-label\",children:\"Wallet:\"}),(0,ar.jsx)(\"span\",{className:\"payment-value\",children:r?`${r.slice(0,6)}...${r.slice(-4)}`:\"Loading...\"})]}),(0,ar.jsxs)(\"div\",{className:\"payment-row\",children:[(0,ar.jsx)(\"span\",{className:\"payment-label\",children:\"Available balance:\"}),(0,ar.jsx)(\"span\",{className:\"payment-value\",children:(0,ar.jsx)(\"button\",{className:\"balance-button\",onClick:()=>O(Z=>!Z),children:R&&!U?`$${R} ${W}`:`\\\\u2022\\\\u2022\\\\u2022\\\\u2022\\\\u2022 ${W}`})})]}),(0,ar.jsxs)(\"div\",{className:\"payment-row\",children:[(0,ar.jsx)(\"span\",{className:\"payment-label\",children:\"Amount:\"}),(0,ar.jsxs)(\"span\",{className:\"payment-value\",children:[\"$\",G,\" \",W]})]}),(0,ar.jsxs)(\"div\",{className:\"payment-row\",children:[(0,ar.jsx)(\"span\",{className:\"payment-label\",children:\"Network:\"}),(0,ar.jsx)(\"span\",{className:\"payment-value\",children:re})]})]}),(0,ar.jsx)(\"div\",{className:\"cta-container\",children:v?(0,ar.jsx)(\"button\",{className:\"button button-primary\",onClick:V,disabled:C,children:C?(0,ar.jsx)(Gze,{}):\"Pay now\"}):(0,ar.jsxs)(\"button\",{className:\"button button-primary w-full\",onClick:L,children:[\"Switch to \",re]})})]}),h&&(0,ar.jsx)(\"div\",{className:\"status\",children:h})]})]}):null}c();c();c();Bo();l8.type=\"coinbaseWallet\";function l8(e={}){return e.version===\"3\"||e.headlessMode?OIt(e):MIt(e)}function MIt(e){let t,r,n,o;return s=>({id:\"coinbaseWalletSDK\",name:\"Coinbase Wallet\",rdns:\"com.coinbase.wallet\",type:l8.type,async connect({chainId:u,withCapabilities:f,...d}={}){try{let m=await this.getProvider(),h=(await m.request({method:\"eth_requestAccounts\",params:\"instantOnboarding\"in d&&d.instantOnboarding?[{onboarding:\"instant\"}]:[]})).map(v=>hn(v));r||(r=this.onAccountsChanged.bind(this),m.on(\"accountsChanged\",r)),n||(n=this.onChainChanged.bind(this),m.on(\"chainChanged\",n)),o||(o=this.onDisconnect.bind(this),m.on(\"disconnect\",o));let y=await this.getChainId();return u&&y!==u&&(y=(await this.switchChain({chainId:u}).catch(E=>{if(E.code===Fn.code)throw E;return{id:y}}))?.id??y),{accounts:f?h.map(v=>({address:v,capabilities:{}})):h,chainId:y}}catch(m){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(m.message)?new Fn(m):m}},async disconnect(){let u=await this.getProvider();r&&(u.removeListener(\"accountsChanged\",r),r=void 0),n&&(u.removeListener(\"chainChanged\",n),n=void 0),o&&(u.removeListener(\"disconnect\",o),o=void 0),u.disconnect(),u.close?.()},async getAccounts(){return(await(await this.getProvider()).request({method:\"eth_accounts\"})).map(f=>hn(f))},async getChainId(){let f=await(await this.getProvider()).request({method:\"eth_chainId\"});return Number(f)},async getProvider(){if(!t){let u=typeof e.preference==\"string\"?{options:e.preference}:{...e.preference,options:e.preference?.options??\"all\"},{createCoinbaseWalletSDK:f}=await Promise.resolve().then(()=>(IWe(),BWe));t=f({...e,appChainIds:s.chains.map(m=>m.id),preference:u}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:u,chainId:f}){let d=s.chains.find(h=>h.id===f);if(!d)throw new Vi(new zs);let m=await this.getProvider();try{return await m.request({method:\"wallet_switchEthereumChain\",params:[{chainId:le(d.id)}]}),d}catch(h){if(h.code===4902)try{let y;u?.blockExplorerUrls?y=u.blockExplorerUrls:y=d.blockExplorers?.default.url?[d.blockExplorers?.default.url]:[];let v;u?.rpcUrls?.length?v=u.rpcUrls:v=[d.rpcUrls.default?.http[0]??\"\"];let E={blockExplorerUrls:y,chainId:le(f),chainName:u?.chainName??d.name,iconUrls:u?.iconUrls,nativeCurrency:u?.nativeCurrency??d.nativeCurrency,rpcUrls:v};return await m.request({method:\"wallet_addEthereumChain\",params:[E]}),d}catch(y){throw new Fn(y)}throw new Vi(h)}},onAccountsChanged(u){u.length===0?this.onDisconnect():s.emitter.emit(\"change\",{accounts:u.map(f=>hn(f))})},onChainChanged(u){let f=Number(u);s.emitter.emit(\"change\",{chainId:f})},async onDisconnect(u){s.emitter.emit(\"disconnect\");let f=await this.getProvider();r&&(f.removeListener(\"accountsChanged\",r),r=void 0),n&&(f.removeListener(\"chainChanged\",n),n=void 0),o&&(f.removeListener(\"disconnect\",o),o=void 0)}})}function OIt(e){let r,n,o,s,u;return f=>({id:\"coinbaseWalletSDK\",name:\"Coinbase Wallet\",rdns:\"com.coinbase.wallet\",type:l8.type,async connect({chainId:d,withCapabilities:m}={}){try{let h=await this.getProvider(),y=(await h.request({method:\"eth_requestAccounts\"})).map(E=>hn(E));o||(o=this.onAccountsChanged.bind(this),h.on(\"accountsChanged\",o)),s||(s=this.onChainChanged.bind(this),h.on(\"chainChanged\",s)),u||(u=this.onDisconnect.bind(this),h.on(\"disconnect\",u));let v=await this.getChainId();return d&&v!==d&&(v=(await this.switchChain({chainId:d}).catch(C=>{if(C.code===Fn.code)throw C;return{id:v}}))?.id??v),{accounts:m?y.map(E=>({address:E,capabilities:{}})):y,chainId:v}}catch(h){throw/(user closed modal|accounts received is empty|user denied account)/i.test(h.message)?new Fn(h):h}},async disconnect(){let d=await this.getProvider();o&&(d.removeListener(\"accountsChanged\",o),o=void 0),s&&(d.removeListener(\"chainChanged\",s),s=void 0),u&&(d.removeListener(\"disconnect\",u),u=void 0),d.disconnect(),d.close()},async getAccounts(){return(await(await this.getProvider()).request({method:\"eth_accounts\"})).map(m=>hn(m))},async getChainId(){let m=await(await this.getProvider()).request({method:\"eth_chainId\"});return Number(m)},async getProvider(){if(!n){let d=await(async()=>{let{default:E}=await Promise.resolve().then(()=>Sr(zat(),1));return typeof E!=\"function\"&&typeof E.default==\"function\"?E.default:E})();r=new d({...e,reloadOnDisconnect:!1});let m=r.walletExtension?.getChainId(),h=f.chains.find(E=>e.chainId?E.id===e.chainId:E.id===m)||f.chains[0],y=e.chainId||h?.id,v=e.jsonRpcUrl||h?.rpcUrls.default.http[0];n=r.makeWeb3Provider(v,y)}return n},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:d,chainId:m}){let h=f.chains.find(v=>v.id===m);if(!h)throw new Vi(new zs);let y=await this.getProvider();try{return await y.request({method:\"wallet_switchEthereumChain\",params:[{chainId:le(h.id)}]}),h}catch(v){if(v.code===4902)try{let E;d?.blockExplorerUrls?E=d.blockExplorerUrls:E=h.blockExplorers?.default.url?[h.blockExplorers?.default.url]:[];let C;d?.rpcUrls?.length?C=d.rpcUrls:C=[h.rpcUrls.default?.http[0]??\"\"];let B={blockExplorerUrls:E,chainId:le(m),chainName:d?.chainName??h.name,iconUrls:d?.iconUrls,nativeCurrency:d?.nativeCurrency??h.nativeCurrency,rpcUrls:C};return await y.request({method:\"wallet_addEthereumChain\",params:[B]}),h}catch(E){throw new Fn(E)}throw new Vi(v)}},onAccountsChanged(d){d.length===0?this.onDisconnect():f.emitter.emit(\"change\",{accounts:d.map(m=>hn(m))})},onChainChanged(d){let m=Number(d);f.emitter.emit(\"change\",{chainId:m})},async onDisconnect(d){f.emitter.emit(\"disconnect\");let m=await this.getProvider();o&&(m.removeListener(\"accountsChanged\",o),o=void 0),s&&(m.removeListener(\"chainChanged\",s),s=void 0),u&&(m.removeListener(\"disconnect\",u),u=void 0)}})}jR();var ane=Sr(Dl(),1),NIt=new WW;function Fat({children:e}){let{paymentRequired:t}=window.x402,r=pC;if(t?.accepts?.[0]){let s=t.accepts[0].network;if(Wze(s)){let u=parseInt(s.split(\":\")[1]),f=Object.values(ay).find(d=>d.id===u);f&&(r=f)}}let n=tM({chains:[r],connectors:[Sm(),l8({appName:window.x402.appName||\"x402 Paywall\"})],transports:{[r.id]:gd()}});return(0,ane.jsx)(nM,{config:n,children:(0,ane.jsx)(tQ,{client:NIt,children:e})})}var ine=Sr(Dl(),1);window.addEventListener(\"load\",()=>{let e=document.getElementById(\"root\");if(!e){console.error(\"Root element not found\");return}let r=window.x402.paymentRequired;if(!r?.accepts?.[0]){console.error(\"No payment requirements found\");return}(0,jat.createRoot)(e).render((0,ine.jsx)(Fat,{children:(0,ine.jsx)(Xze,{paymentRequired:r,onSuccessfulResponse:async o=>{let s=o.headers.get(\"content-type\");if(s&&s.includes(\"text/html\"))document.documentElement.innerHTML=await o.text();else{let u=await o.blob(),f=window.URL.createObjectURL(u);window.location.href=f}}})}))});})();\\n/*! Bundled license information:\\n\\nieee754/index.js:\\n  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\nbuffer/index.js:\\n  (*!\\n   * The buffer module from node.js, for the browser.\\n   *\\n   * @author   Feross Aboukhadijeh <https://feross.org>\\n   * @license  MIT\\n   *)\\n\\nscheduler/cjs/scheduler.development.js:\\n  (**\\n   * @license React\\n   * scheduler.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react.development.js:\\n  (**\\n   * @license React\\n   * react.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom.development.js:\\n  (**\\n   * @license React\\n   * react-dom.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-client.development.js:\\n  (**\\n   * @license React\\n   * react-dom-client.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\n@noble/hashes/esm/utils.js:\\n@noble/hashes/utils.js:\\n@noble/hashes/esm/utils.js:\\n  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)\\n\\n@noble/curves/esm/abstract/utils.js:\\n@noble/curves/esm/abstract/modular.js:\\n@noble/curves/esm/abstract/curve.js:\\n@noble/curves/esm/abstract/weierstrass.js:\\n@noble/curves/esm/_shortw_utils.js:\\n@noble/curves/esm/secp256k1.js:\\n@noble/curves/esm/nist.js:\\n@noble/curves/esm/p256.js:\\n@noble/curves/esm/utils.js:\\n@noble/curves/esm/abstract/modular.js:\\n@noble/curves/esm/abstract/curve.js:\\n@noble/curves/esm/abstract/weierstrass.js:\\n@noble/curves/esm/_shortw_utils.js:\\n@noble/curves/esm/secp256k1.js:\\n@noble/curves/esm/nist.js:\\n@noble/curves/esm/p256.js:\\n  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)\\n\\nuse-sync-external-store/cjs/use-sync-external-store-shim.development.js:\\n  (**\\n   * @license React\\n   * use-sync-external-store-shim.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nuse-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:\\n  (**\\n   * @license React\\n   * use-sync-external-store-shim/with-selector.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react-jsx-runtime.development.js:\\n  (**\\n   * @license React\\n   * react-jsx-runtime.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\n@scure/bip39/esm/index.js:\\n  (*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)\\n\\nsafe-buffer/index.js:\\n  (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n*/\\n</script></body></html>';\n","let cachedTemplate: string | null = null;\n\nexport function getEvmTemplate(): string | null {\n  if (cachedTemplate !== null) {\n    return cachedTemplate;\n  }\n\n  try {\n    // eslint-disable-next-line @typescript-eslint/no-require-imports\n    const template = require(\"./gen/template\");\n    cachedTemplate = template.EVM_PAYWALL_TEMPLATE;\n    return cachedTemplate;\n  } catch {\n    return null;\n  }\n}\n","import type { PaymentRequired } from \"../types\";\nimport { getEvmTemplate } from \"./template-loader\";\n\n/**\n * Escapes a string for safe injection into JavaScript string literals\n *\n * @param str - The string to escape\n * @returns The escaped string\n */\nfunction escapeString(str: string): string {\n  return str\n    .replace(/\\\\/g, \"\\\\\\\\\")\n    .replace(/\"/g, '\\\\\"')\n    .replace(/'/g, \"\\\\'\")\n    .replace(/\\n/g, \"\\\\n\")\n    .replace(/\\r/g, \"\\\\r\")\n    .replace(/\\t/g, \"\\\\t\");\n}\n\n/**\n * Gets the EVM chain config\n *\n * @returns The EVM chain config\n */\nfunction getChainConfig() {\n  return {\n    base: {\n      usdcAddress: \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",\n      usdcName: \"USDC\",\n    },\n    \"base-sepolia\": {\n      usdcAddress: \"0x036CbD53842c5426634e7929541eC2318f3dCF7e\",\n      usdcName: \"USDC\",\n    },\n  };\n}\n\ninterface EvmPaywallOptions {\n  amount: number;\n  paymentRequired: PaymentRequired;\n  currentUrl: string;\n  testnet: boolean;\n  appName?: string;\n  appLogo?: string;\n  faucetUrls?: Record<string, string>;\n}\n\n/**\n * Generates EVM-specific paywall HTML\n *\n * @param options - The options for generating the paywall\n * @param options.amount - The amount to be paid in USD\n * @param options.paymentRequired - The payment required response with accepts array\n * @param options.currentUrl - The URL of the content being accessed\n * @param options.testnet - Whether to use testnet or mainnet\n * @param options.appName - The name of the application to display in the wallet connection modal\n * @param options.appLogo - The logo of the application to display in the wallet connection modal\n * @param options.faucetUrls - Per-chain (CAIP-2 keyed) override for the testnet faucet link\n * @returns HTML string for the paywall page\n */\nexport function getEvmPaywallHtml(options: EvmPaywallOptions): string {\n  const EVM_PAYWALL_TEMPLATE = getEvmTemplate();\n\n  if (!EVM_PAYWALL_TEMPLATE) {\n    return `<!DOCTYPE html><html><body><h1>EVM Paywall (run pnpm build:paywall to generate full template)</h1></body></html>`;\n  }\n\n  const { amount, testnet, paymentRequired, currentUrl, appName, appLogo, faucetUrls } = options;\n\n  const logOnTestnet = testnet\n    ? \"console.log('EVM Payment required initialized:', window.x402);\"\n    : \"\";\n\n  const config = getChainConfig();\n\n  const configScript = `\n  <script>\n    window.x402 = {\n      amount: ${amount},\n      paymentRequired: ${JSON.stringify(paymentRequired)},\n      testnet: ${testnet},\n      currentUrl: \"${escapeString(currentUrl)}\",\n      config: {\n        chainConfig: ${JSON.stringify(config)},\n      },\n      appName: \"${escapeString(appName || \"\")}\",\n      appLogo: \"${escapeString(appLogo || \"\")}\",\n      faucetUrls: ${faucetUrls ? JSON.stringify(faucetUrls) : \"undefined\"},\n    };\n    ${logOnTestnet}\n  </script>`;\n\n  return EVM_PAYWALL_TEMPLATE.replace(\"</head>\", `${configScript}\\n</head>`);\n}\n","// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n// Source: @x402/evm DEFAULT_STABLECOINS (decimals !== 6 only).\n// Regenerate via: pnpm --filter @x402/paywall run build:paywall\n\n/**\n * Per-network default token decimals that differ from the paywall fallback (6),\n * keyed by CAIP-2 network identifier. Chains whose default stablecoin uses 6\n * decimals are omitted; `getDefaultTokenDecimals` treats a missing key as 6.\n * Emitted at build time so the paywall's runtime module graph does not depend on `@x402/evm`.\n */\nexport const NETWORK_DECIMALS: Record<string, number> = {\n  \"eip155:31611\": 18,\n  \"eip155:31612\": 18,\n  \"eip155:4326\": 18,\n};\n","import { formatUnits } from \"viem\";\nimport type {\n  PaywallNetworkHandler,\n  PaymentRequirements,\n  PaymentRequired,\n  PaywallConfig,\n} from \"../types\";\nimport { getEvmPaywallHtml } from \"./paywall\";\nimport { NETWORK_DECIMALS } from \"./gen/decimals\";\n\n/**\n * Resolves the token decimals for a payment requirement by looking up the\n * network in the build-time-generated `NETWORK_DECIMALS` map. That map lists\n * only networks whose default stablecoin decimals differ from 6; it is derived\n * from `@x402/evm`'s `DEFAULT_STABLECOINS` (the same source the scheme\n * `getAssetDecimals` methods read from) and is regenerated via\n * `pnpm --filter @x402/paywall run build:paywall`. Falls back to 6 (USDC\n * default) when the network is omitted from the map or unknown.\n *\n * @param requirement - The payment requirement\n * @returns The number of decimals for the payment token\n */\nexport function getDefaultTokenDecimals(requirement: PaymentRequirements): number {\n  return NETWORK_DECIMALS[requirement.network] ?? 6;\n}\n\n/**\n * EVM paywall handler that supports EVM-based networks (CAIP-2 format only)\n */\nexport const evmPaywall: PaywallNetworkHandler = {\n  /**\n   * Check if this handler supports the given payment requirement\n   *\n   * @param requirement - Payment requirement to check\n   * @returns True if this handler can process this requirement\n   */\n  supports(requirement: PaymentRequirements): boolean {\n    return requirement.network.startsWith(\"eip155:\");\n  },\n\n  /**\n   * Generate EVM-specific paywall HTML\n   *\n   * @param requirement - The selected payment requirement\n   * @param paymentRequired - Full payment required response\n   * @param config - Paywall configuration\n   * @returns HTML string for the paywall page\n   */\n  generateHtml(\n    requirement: PaymentRequirements,\n    paymentRequired: PaymentRequired,\n    config: PaywallConfig,\n  ): string {\n    const decimals = getDefaultTokenDecimals(requirement);\n    const atomic = requirement.amount ?? requirement.maxAmountRequired;\n    // BigInt + formatUnits preserves precision through the conversion;\n    // parseFloat collapses sub-cent digits on real 18-decimal amounts.\n    const amount = atomic ? Number(formatUnits(BigInt(atomic), decimals)) : 0;\n\n    return getEvmPaywallHtml({\n      amount,\n      paymentRequired,\n      currentUrl: paymentRequired.resource?.url || config.currentUrl || \"\",\n      testnet: config.testnet ?? true,\n      appName: config.appName,\n      appLogo: config.appLogo,\n      faucetUrls: config.faucetUrls,\n    });\n  },\n};\n"]}