{"version":3,"sources":["../../../src/evm/gen/template.ts","../../../src/scriptJson.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,2pkvEAAA;AAAA,EAAA;AAAA,CAAA,CAAA;;;ACGK,SAAS,aAAa,KAAA,EAAwB;AACnD,EAAA,OAAO,KAAK,SAAA,CAAU,KAAK,CAAA,CAAE,OAAA,CAAQ,MAAM,SAAS,CAAA;AACtD;;;ACVA,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,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,YAAA,CAAa,eAAe,CAAC,CAAA;AAAA,eAAA,EACrC,OAAO,CAAA;AAAA,kBAAA,EACJ,YAAA,CAAa,UAAU,CAAC,CAAA;AAAA;AAAA,qBAAA,EAErB,IAAA,CAAK,SAAA,CAAU,MAAM,CAAC,CAAA;AAAA;AAAA,eAAA,EAE5B,YAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,eAAA,EAC3B,YAAA,CAAa,OAAA,IAAW,EAAE,CAAC,CAAA;AAAA,kBAAA,EACxB,UAAA,GAAa,YAAA,CAAa,UAAU,CAAA,GAAI,WAAW,CAAA;AAAA;AAAA,IAAA,EAEjE,YAAY;AAAA,WAAA,CAAA;AAGhB,EAAA,OAAOA,qBAAAA,CAAqB,OAAA,CAAQ,SAAA,EAAW,MAAM,GAAG,YAAY;AAAA,OAAA,CAAW,CAAA;AACjF;;;ACpEO,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 Fut=Object.create;var n9=Object.defineProperty;var zut=Object.getOwnPropertyDescriptor;var jut=Object.getOwnPropertyNames;var $ut=Object.getPrototypeOf,qut=Object.prototype.hasOwnProperty;var zue=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)n9(e,r,{get:t[r],enumerable:!0})},jue=(e,t,r,n)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of jut(t))!qut.call(e,o)&&o!==r&&n9(e,o,{get:()=>t[o],enumerable:!(n=zut(t,o))||n.enumerable});return e};var Sr=(e,t,r)=>(r=e!=null?Fut($ut(e)):{},jue(t||!e||!e.__esModule?n9(r,\"default\",{value:e,enumerable:!0}):r,e)),Kr=e=>jue(n9({},\"__esModule\",{value:!0}),e);var wq=(e,t,r)=>t.has(e)||zue(\"Cannot \"+r);var ne=(e,t,r)=>(wq(e,t,\"read from private field\"),r?r.call(e):t.get(e)),Ye=(e,t,r)=>t.has(e)?zue(\"Cannot add the same private member more than once\"):t instanceof WeakSet?t.add(e):t.set(e,r),Me=(e,t,r,n)=>(wq(e,t,\"write to private field\"),n?n.call(e,r):t.set(e,r),r),Rt=(e,t,r)=>(wq(e,t,\"access private method\"),r);var jA=(e,t,r,n)=>({set _(o){Me(e,t,o,r)},get _(){return ne(e,t,n)}});var Gue=X(o9=>{\"use strict\";c();o9.byteLength=Vut;o9.toByteArray=Wut;o9.fromByteArray=Jut;var Gf=[],ou=[],Gut=typeof Uint8Array<\"u\"?Uint8Array:Array,Eq=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";for(c1=0,$ue=Eq.length;c1<$ue;++c1)Gf[c1]=Eq[c1],ou[Eq.charCodeAt(c1)]=c1;var c1,$ue;ou[45]=62;ou[95]=63;function que(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 Vut(e){var t=que(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Kut(e,t,r){return(t+r)*3/4-r}function Wut(e){var t,r=que(e),n=r[0],o=r[1],s=new Gut(Kut(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 Qut(e){return Gf[e>>18&63]+Gf[e>>12&63]+Gf[e>>6&63]+Gf[e&63]}function Zut(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(Qut(n));return o.join(\"\")}function Jut(e){for(var t,r=e.length,n=r%3,o=[],s=16383,u=0,f=r-n;u<f;u+=s)o.push(Zut(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 Vue=X(Aq=>{c();Aq.read=function(e,t,r,n,o){var s,u,f=o*8-n-1,d=(1<<f)-1,p=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-p;else{if(s===d)return u?NaN:(E?-1:1)*(1/0);u=u+Math.pow(2,n),s=s-p}return(E?-1:1)*u*Math.pow(2,s-n)};Aq.write=function(e,t,r,n,o,s){var u,f,d,p=s*8-o-1,h=(1<<p)-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,k=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,p+=o;p>0;e[r+E]=u&255,E+=C,u/=256,p-=8);e[r+E-C]|=k*128}});var uv=X(cv=>{\"use strict\";c();var Sq=Gue(),iv=Vue(),Kue=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\"?Symbol.for(\"nodejs.util.inspect.custom\"):null;cv.Buffer=ve;cv.SlowBuffer=nlt;cv.INSPECT_MAX_BYTES=50;var a9=2147483647;cv.kMaxLength=a9;ve.TYPED_ARRAY_SUPPORT=Yut();!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 Yut(){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 zp(e){if(e>a9)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 kq(e)}return Jue(e,t,r)}ve.poolSize=8192;function Jue(e,t,r){if(typeof e==\"string\")return elt(e,t);if(ArrayBuffer.isView(e))return tlt(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 Tq(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=rlt(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 Yue(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 Xut(e,t,r){return Yue(e),e<=0?zp(e):t!==void 0?typeof r==\"string\"?zp(e).fill(t,r):zp(e).fill(t):zp(e)}ve.alloc=function(e,t,r){return Xut(e,t,r)};function kq(e){return Yue(e),zp(e<0?0:Bq(e)|0)}ve.allocUnsafe=function(e){return kq(e)};ve.allocUnsafeSlow=function(e){return kq(e)};function elt(e,t){if((typeof t!=\"string\"||t===\"\")&&(t=\"utf8\"),!ve.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);let r=Xue(e,t)|0,n=zp(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}function Cq(e){let t=e.length<0?0:Bq(e.length)|0,r=zp(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function tlt(e){if(Vf(e,Uint8Array)){let t=new Uint8Array(e);return Tq(t.buffer,t.byteOffset,t.byteLength)}return Cq(e)}function Tq(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 rlt(e){if(ve.isBuffer(e)){let t=Bq(e.length)|0,r=zp(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!=\"number\"||Pq(e.length)?zp(0):Cq(e);if(e.type===\"Buffer\"&&Array.isArray(e.data))return Cq(e.data)}function Bq(e){if(e>=a9)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+a9.toString(16)+\" bytes\");return e|0}function nlt(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 Xue(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 _q(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return r*2;case\"hex\":return r>>>1;case\"base64\":return cle(e).length;default:if(o)return n?-1:_q(e).length;t=(\"\"+t).toLowerCase(),o=!0}}ve.byteLength=Xue;function olt(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 mlt(this,t,r);case\"utf8\":case\"utf-8\":return tle(this,t,r);case\"ascii\":return dlt(this,t,r);case\"latin1\":case\"binary\":return plt(this,t,r);case\"base64\":return llt(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return hlt(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?tle(this,0,t):olt.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+\">\"};Kue&&(ve.prototype[Kue]=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),p=this.slice(o,s),h=t.slice(r,n);for(let y=0;y<d;++y)if(p[y]!==h[y]){u=p[y],f=h[y];break}return u<f?-1:f<u?1:0};function ele(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,Pq(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:Wue(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):Wue(e,[t],r,n,o);throw new TypeError(\"val must be string, number or Buffer\")}function Wue(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 p;if(o){let h=-1;for(p=r;p<u;p++)if(d(e,p)===d(t,h===-1?0:p-h)){if(h===-1&&(h=p),p-h+1===f)return h*s}else h!==-1&&(p-=p-h),h=-1}else for(r+f>u&&(r=u-f),p=r;p>=0;p--){let h=!0;for(let y=0;y<f;y++)if(d(e,p+y)!==d(t,y)){h=!1;break}if(h)return p}return-1}ve.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};ve.prototype.indexOf=function(t,r,n){return ele(this,t,r,n,!0)};ve.prototype.lastIndexOf=function(t,r,n){return ele(this,t,r,n,!1)};function alt(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(Pq(f))return u;e[r+u]=f}return u}function ilt(e,t,r,n){return i9(_q(t,e.length-r),e,r,n)}function slt(e,t,r,n){return i9(xlt(t),e,r,n)}function clt(e,t,r,n){return i9(cle(t),e,r,n)}function ult(e,t,r,n){return i9(vlt(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 alt(this,t,r,n);case\"utf8\":case\"utf-8\":return ilt(this,t,r,n);case\"ascii\":case\"latin1\":case\"binary\":return slt(this,t,r,n);case\"base64\":return clt(this,t,r,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return ult(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 llt(e,t,r){return t===0&&r===e.length?Sq.fromByteArray(e):Sq.fromByteArray(e.slice(t,r))}function tle(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,p,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],p=e[o+2],(d&192)===128&&(p&192)===128&&(y=(s&15)<<12|(d&63)<<6|p&63,y>2047&&(y<55296||y>57343)&&(u=y));break;case 4:d=e[o+1],p=e[o+2],h=e[o+3],(d&192)===128&&(p&192)===128&&(h&192)===128&&(y=(s&15)<<18|(d&63)<<12|(p&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 flt(n)}var Que=4096;function flt(e){let t=e.length;if(t<=Que)return String.fromCharCode.apply(String,e);let r=\"\",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Que));return r}function dlt(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 plt(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 mlt(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+=wlt[e[s]];return o}function hlt(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)&&$A(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)&&$A(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)&&$A(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)&&$A(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 rle(e,t,r,n,o){sle(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 nle(e,t,r,n,o){sle(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 rle(this,t,r,BigInt(0),BigInt(\"0xffffffffffffffff\"))});ve.prototype.writeBigUInt64BE=o0(function(t,r=0){return nle(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 rle(this,t,r,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))});ve.prototype.writeBigInt64BE=o0(function(t,r=0){return nle(this,t,r,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))});function ole(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 ale(e,t,r,n,o){return t=+t,r=r>>>0,o||ole(e,t,r,4,34028234663852886e22,-34028234663852886e22),iv.write(e,t,r,n,23,4),r+4}ve.prototype.writeFloatLE=function(t,r,n){return ale(this,t,r,!0,n)};ve.prototype.writeFloatBE=function(t,r,n){return ale(this,t,r,!1,n)};function ile(e,t,r,n,o){return t=+t,r=r>>>0,o||ole(e,t,r,8,17976931348623157e292,-17976931348623157e292),iv.write(e,t,r,n,52,8),r+8}ve.prototype.writeDoubleLE=function(t,r,n){return ile(this,t,r,!0,n)};ve.prototype.writeDoubleBE=function(t,r,n){return ile(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 Iq(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}`}}}Iq(\"ERR_BUFFER_OUT_OF_BOUNDS\",function(e){return e?`${e} is outside of buffer bounds`:\"Attempt to access memory outside buffer bounds\"},RangeError);Iq(\"ERR_INVALID_ARG_TYPE\",function(e,t){return`The \"${e}\" argument must be of type number. Received type ${typeof t}`},TypeError);Iq(\"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=Zue(String(r)):typeof r==\"bigint\"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=Zue(o)),o+=\"n\"),n+=` It must be ${t}. Received ${o}`,n},RangeError);function Zue(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 ylt(e,t,r){sv(t,\"offset\"),(e[t]===void 0||e[t+r]===void 0)&&$A(t,e.length-(r+1))}function sle(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)}ylt(n,o,s)}function sv(e,t){if(typeof e!=\"number\")throw new av.ERR_INVALID_ARG_TYPE(t,\"number\",e)}function $A(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 blt=/[^+/0-9A-Za-z-_]/g;function glt(e){if(e=e.split(\"=\")[0],e=e.trim().replace(blt,\"\"),e.length<2)return\"\";for(;e.length%4!==0;)e=e+\"=\";return e}function _q(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 xlt(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function vlt(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 cle(e){return Sq.toByteArray(glt(e))}function i9(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 Pq(e){return e!==e}var wlt=(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\"?Elt:e}function Elt(){throw new Error(\"BigInt not supported\")}});var ule,c=x(()=>{\"use strict\";ule=Sr(uv(),1);globalThis.Buffer=ule.Buffer});var lle=X(Qn=>{\"use strict\";c();(function(){function e(){if(N=!1,J){var T=Qn.unstable_now();ie=T;var R=!0;try{e:{U=!1,O&&(O=!1,K(Y),Y=-1),M=!0;var D=P;try{t:{for(s(T),k=r(v);k!==null&&!(k.expirationTime>T&&f());){var L=k.callback;if(typeof L==\"function\"){k.callback=null,P=k.priorityLevel;var V=L(k.expirationTime<=T);if(T=Qn.unstable_now(),typeof V==\"function\"){k.callback=V,s(T),R=!0;break t}k===r(v)&&n(v),s(T)}else n(v);k=r(v)}if(k!==null)R=!0;else{var Q=r(E);Q!==null&&d(u,Q.startTime-T),R=!1}}break e}finally{k=null,P=D,M=!1}R=void 0}}finally{R?re():J=!1}}}function t(T,R){var D=T.length;T.push(R);e:for(;0<D;){var L=D-1>>>1,V=T[L];if(0<o(V,R))T[L]=R,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 R=T[0],D=T.pop();if(D!==R){T[0]=D;e:for(var L=0,V=T.length,Q=V>>>1;L<Q;){var F=2*(L+1)-1,I=T[F],Z=F+1,me=T[Z];if(0>o(I,D))Z<V&&0>o(me,I)?(T[L]=me,T[Z]=D,L=Z):(T[L]=I,T[F]=D,L=F);else if(Z<V&&0>o(me,D))T[L]=me,T[Z]=D,L=Z;else break e}}return R}function o(T,R){var D=T.sortIndex-R.sortIndex;return D!==0?D:T.id-R.id}function s(T){for(var R=r(E);R!==null;){if(R.callback===null)n(E);else if(R.startTime<=T)n(E),R.sortIndex=R.expirationTime,t(v,R);else break;R=r(E)}}function u(T){if(O=!1,s(T),!U)if(r(v)!==null)U=!0,J||(J=!0,re());else{var R=r(E);R!==null&&d(u,R.startTime-T)}}function f(){return N?!0:!(Qn.unstable_now()-ie<W)}function d(T,R){Y=j(function(){T(Qn.unstable_now())},R)}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 p=performance;Qn.unstable_now=function(){return p.now()}}else{var h=Date,y=h.now();Qn.unstable_now=function(){return h.now()-y}}var v=[],E=[],C=1,k=null,P=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 P},Qn.unstable_next=function(T){switch(P){case 1:case 2:case 3:var R=3;break;default:R=P}var D=P;P=R;try{return T()}finally{P=D}},Qn.unstable_requestPaint=function(){N=!0},Qn.unstable_runWithPriority=function(T,R){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var D=P;P=T;try{return R()}finally{P=D}},Qn.unstable_scheduleCallback=function(T,R,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:R,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 R=P;return function(){var D=P;P=R;try{return T.apply(this,arguments)}finally{P=D}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var dle=X((APt,fle)=>{\"use strict\";c();fle.exports=lle()});var ple=X((St,s9)=>{\"use strict\";c();(function(){function e($,fe){Object.defineProperty(n.prototype,$,{get:function(){console.warn(\"%s(...) is deprecated in plain JavaScript React classes. %s\",fe[0],fe[1])}})}function t($){return $===null||typeof $!=\"object\"?null:($=Ot&&$[Ot]||$[\"@@iterator\"],typeof $==\"function\"?$:null)}function r($,fe){$=($=$.constructor)&&($.displayName||$.name)||\"ReactClass\";var Ee=$+\".\"+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,$),Te[Ee]=!0)}function n($,fe,Ee){this.props=$,this.context=fe,this.refs=tr,this.updater=Ee||It}function o(){}function s($,fe,Ee){this.props=$,this.context=fe,this.refs=tr,this.updater=Ee||It}function u(){}function f($){return\"\"+$}function d($){try{f($);var fe=!1}catch{fe=!0}if(fe){fe=console;var Ee=fe.error,_e=typeof Symbol==\"function\"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.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($)}}function p($){if($==null)return null;if(typeof $==\"function\")return $.$$typeof===rn?null:$.displayName||$.name||null;if(typeof $==\"string\")return $;switch($){case V:return\"Fragment\";case F:return\"Profiler\";case Q:return\"StrictMode\";case ge:return\"Suspense\";case Se:return\"SuspenseList\";case je:return\"Activity\"}if(typeof $==\"object\")switch(typeof $.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),$.$$typeof){case L:return\"Portal\";case Z:return $.displayName||\"Context\";case I:return($._context.displayName||\"Context\")+\".Consumer\";case me:var fe=$.render;return $=$.displayName,$||($=fe.displayName||fe.name||\"\",$=$!==\"\"?\"ForwardRef(\"+$+\")\":\"ForwardRef\"),$;case Ce:return fe=$.displayName||null,fe!==null?fe:p($.type)||\"Memo\";case qe:fe=$._payload,$=$._init;try{return p($(fe))}catch{}}return null}function h($){if($===V)return\"<>\";if(typeof $==\"object\"&&$!==null&&$.$$typeof===qe)return\"<...>\";try{var fe=p($);return fe?\"<\"+fe+\">\":\"<...>\"}catch{return\"<...>\"}}function y(){var $=Je.A;return $===null?null:$.getOwner()}function v(){return Error(\"react-stack-top-frame\")}function E($){if(jc.call($,\"key\")){var fe=Object.getOwnPropertyDescriptor($,\"key\").get;if(fe&&fe.isReactWarning)return!1}return $.key!==void 0}function C($,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($,\"key\",{get:Ee,configurable:!0})}function k(){var $=p(this.type);return Hr[$]||(Hr[$]=!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.\")),$=this.props.ref,$!==void 0?$:null}function P($,fe,Ee,_e,We,Ge){var Ve=Ee.ref;return $={$$typeof:D,type:$,key:fe,props:Ee,_owner:_e},(Ve!==void 0?Ve:null)!==null?Object.defineProperty($,\"ref\",{enumerable:!1,get:k}):Object.defineProperty($,\"ref\",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,\"validated\",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,\"_debugInfo\",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty($,\"_debugStack\",{configurable:!1,enumerable:!1,writable:!0,value:We}),Object.defineProperty($,\"_debugTask\",{configurable:!1,enumerable:!1,writable:!0,value:Ge}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function M($,fe){return fe=P($.type,fe,$.props,$._owner,$._debugStack,$._debugTask),$._store&&(fe._store.validated=$._store.validated),fe}function U($){O($)?$._store&&($._store.validated=1):typeof $==\"object\"&&$!==null&&$.$$typeof===qe&&($._payload.status===\"fulfilled\"?O($._payload.value)&&$._payload.value._store&&($._payload.value._store.validated=1):$._store&&($._store.validated=1))}function O($){return typeof $==\"object\"&&$!==null&&$.$$typeof===D}function N($){var fe={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+$.replace(/[=:]/g,function(Ee){return fe[Ee]})}function j($,fe){return typeof $==\"object\"&&$!==null&&$.key!=null?(d($.key),N(\"\"+$.key)):fe.toString(36)}function K($){switch($.status){case\"fulfilled\":return $.value;case\"rejected\":throw $.reason;default:switch(typeof $.status==\"string\"?$.then(u,u):($.status=\"pending\",$.then(function(fe){$.status===\"pending\"&&($.status=\"fulfilled\",$.value=fe)},function(fe){$.status===\"pending\"&&($.status=\"rejected\",$.reason=fe)})),$.status){case\"fulfilled\":return $.value;case\"rejected\":throw $.reason}}throw $}function G($,fe,Ee,_e,We){var Ge=typeof $;(Ge===\"undefined\"||Ge===\"boolean\")&&($=null);var Ve=!1;if($===null)Ve=!0;else switch(Ge){case\"bigint\":case\"string\":case\"number\":Ve=!0;break;case\"object\":switch($.$$typeof){case D:case L:Ve=!0;break;case qe:return Ve=$._init,G(Ve($._payload),fe,Ee,_e,We)}}if(Ve){Ve=$,We=We(Ve);var zt=_e===\"\"?\".\"+j(Ve,0):_e;return rr(We)?(Ee=\"\",zt!=null&&(Ee=zt.replace($r,\"$&/\")+\"/\"),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($r,\"$&/\")+\"/\")+zt),_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,zt=_e===\"\"?\".\":_e+\":\",rr($))for(var Ne=0;Ne<$.length;Ne++)_e=$[Ne],Ge=zt+j(_e,Ne),Ve+=G(_e,fe,Ee,Ge,We);else if(Ne=t($),typeof Ne==\"function\")for(Ne===$.entries&&(jr||console.warn(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),jr=!0),$=Ne.call($),Ne=0;!(_e=$.next()).done;)_e=_e.value,Ge=zt+j(_e,Ne++),Ve+=G(_e,fe,Ee,Ge,We);else if(Ge===\"object\"){if(typeof $.then==\"function\")return G(K($),fe,Ee,_e,We);throw fe=String($),Error(\"Objects are not valid as a React child (found: \"+(fe===\"[object Object]\"?\"object with keys {\"+Object.keys($).join(\", \")+\"}\":fe)+\"). If you meant to render a collection of children, use an array instead.\")}return Ve}function J($,fe,Ee){if($==null)return $;var _e=[],We=0;return G($,_e,\"\",\"\",function(Ge){return fe.call(Ee,Ge,We++)}),_e}function Y($){if($._status===-1){var fe=$._ioInfo;fe!=null&&(fe.start=fe.end=performance.now()),fe=$._result;var Ee=fe();if(Ee.then(function(We){if($._status===0||$._status===-1){$._status=1,$._result=We;var Ge=$._ioInfo;Ge!=null&&(Ge.end=performance.now()),Ee.status===void 0&&(Ee.status=\"fulfilled\",Ee.value=We)}},function(We){if($._status===0||$._status===-1){$._status=2,$._result=We;var Ge=$._ioInfo;Ge!=null&&(Ge.end=performance.now()),Ee.status===void 0&&(Ee.status=\"rejected\",Ee.reason=We)}}),fe=$._ioInfo,fe!=null){fe.value=Ee;var _e=Ee.displayName;typeof _e==\"string\"&&(fe.name=_e)}$._status===-1&&($._status=0,$._result=Ee)}if($._status===1)return fe=$._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 $._result}function W(){var $=Je.H;return $===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.`),$}function ie(){Je.asyncTransitions--}function re($){if(Ir===null)try{var fe=(\"require\"+Math.random()).slice(0,7);Ir=(s9&&s9[fe]).call(s9,\"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($)}function H($){return 1<$.length&&typeof AggregateError==\"function\"?new AggregateError($):$[0]}function A($,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($,fe,Ee){var _e=Je.actQueue;if(_e!==null)if(_e.length!==0)try{R(_e),re(function(){return T($,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($)}function R($){if(!Rr){Rr=!0;var fe=0;try{for(;fe<$.length;fe++){var Ee=$[fe];do{Je.didUsePromise=!1;var _e=Ee(!1);if(_e!==null){if(Je.didUsePromise){$[fe]=Ee,$.splice(0,fe);return}Ee=_e}else break}while(!0)}$.length=0}catch(We){$.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\"),Q=Symbol.for(\"react.strict_mode\"),F=Symbol.for(\"react.profiler\"),I=Symbol.for(\"react.consumer\"),Z=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\"),qe=Symbol.for(\"react.lazy\"),je=Symbol.for(\"react.activity\"),Ot=Symbol.iterator,Te={},It={isMounted:function(){return!1},enqueueForceUpdate:function($){r($,\"forceUpdate\")},enqueueReplaceState:function($){r($,\"replaceState\")},enqueueSetState:function($){r($,\"setState\")}},Gn=Object.assign,tr={};Object.freeze(tr),n.prototype.isReactComponent={},n.prototype.setState=function($,fe){if(typeof $!=\"object\"&&typeof $!=\"function\"&&$!=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,$,fe,\"setState\")},n.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,\"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($){return $()}};var un,ni,Hr={},Lr=yt.react_stack_bottom_frame.bind(yt,v)(),pp=dt(h(v)),jr=!1,$r=/\\\\/+/g,Ii=typeof reportError==\"function\"?reportError:function($){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var fe=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof $==\"object\"&&$!==null&&typeof $.message==\"string\"?String($.message):String($),error:$});if(!window.dispatchEvent(fe))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",$);return}console.error($)},nn=!1,Ir=null,ys=0,Pr=!1,Rr=!1,$c=typeof queueMicrotask==\"function\"?function($){queueMicrotask(function(){return queueMicrotask($)})}:re;yt=Object.freeze({__proto__:null,c:function($){return W().useMemoCache($)}});var Er={map:J,forEach:function($,fe,Ee){J($,function(){fe.apply(this,arguments)},Ee)},count:function($){var fe=0;return J($,function(){fe++}),fe},toArray:function($){return J($,function(fe){return fe})||[]},only:function($){if(!O($))throw Error(\"React.Children.only expected to receive a single React element child.\");return $}};St.Activity=je,St.Children=Er,St.Component=n,St.Fragment=V,St.Profiler=F,St.PureComponent=s,St.StrictMode=Q,St.Suspense=ge,St.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Je,St.__COMPILER_RUNTIME=yt,St.act=function($){var fe=Je.actQueue,Ee=ys;ys++;var _e=Je.actQueue=fe!==null?fe:[],We=!1;try{var Ge=$()}catch(Ne){Je.thrownErrors.push(Ne)}if(0<Je.thrownErrors.length)throw A(fe,Ee),$=H(Je.thrownErrors),Je.thrownErrors.length=0,$;if(Ge!==null&&typeof Ge==\"object\"&&typeof Ge.then==\"function\"){var Ve=Ge;return $c(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{R(_e),re(function(){return T(Uo,Ne,jt)})}catch(qr){Je.thrownErrors.push(qr)}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 zt=Ge;if(A(fe,Ee),Ee===0&&(R(_e),_e.length!==0&&$c(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 $=H(Je.thrownErrors),Je.thrownErrors.length=0,$;return{then:function(Ne,jt){We=!0,Ee===0?(Je.actQueue=_e,re(function(){return T(zt,Ne,jt)})):Ne(zt)}}},St.cache=function($){return function(){return $.apply(null,arguments)}},St.cacheSignal=function(){return null},St.captureOwnerStack=function(){var $=Je.getCurrentStack;return $===null?null:$()},St.cloneElement=function($,fe,Ee){if($==null)throw Error(\"The argument must be a React element, but you passed \"+$+\".\");var _e=Gn({},$.props),We=$.key,Ge=$._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(zt in fe)!jc.call(fe,zt)||zt===\"key\"||zt===\"__self\"||zt===\"__source\"||zt===\"ref\"&&fe.ref===void 0||(_e[zt]=fe[zt])}var zt=arguments.length-2;if(zt===1)_e.children=Ee;else if(1<zt){Ve=Array(zt);for(var Ne=0;Ne<zt;Ne++)Ve[Ne]=arguments[Ne+2];_e.children=Ve}for(_e=P($.type,We,_e,Ge,$._debugStack,$._debugTask),We=2;We<arguments.length;We++)U(arguments[We]);return _e},St.createContext=function($){return $={$$typeof:Z,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:I,_context:$},$._currentRenderer=null,$._currentRenderer2=null,$},St.createElement=function($,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),zt=0;zt<Ge;zt++)Ve[zt]=arguments[zt+2];Object.freeze&&Object.freeze(Ve),_e.children=Ve}if($&&$.defaultProps)for(Ne in Ge=$.defaultProps,Ge)_e[Ne]===void 0&&(_e[Ne]=Ge[Ne]);We&&C(_e,typeof $==\"function\"?$.displayName||$.name||\"Unknown\":$);var Ne=1e4>Je.recentlyCreatedOwnerStacks++;return P($,We,_e,y(),Ne?Error(\"react-stack-top-frame\"):Lr,Ne?dt(h($)):pp)},St.createRef=function(){var $={current:null};return Object.seal($),$},St.forwardRef=function($){$!=null&&$.$$typeof===Ce?console.error(\"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).\"):typeof $!=\"function\"?console.error(\"forwardRef requires a render function but was given %s.\",$===null?\"null\":typeof $):$.length!==0&&$.length!==2&&console.error(\"forwardRef render functions accept exactly two parameters: props and ref. %s\",$.length===1?\"Did you forget to use the ref parameter?\":\"Any additional parameter will be undefined.\"),$!=null&&$.defaultProps!=null&&console.error(\"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?\");var fe={$$typeof:me,render:$},Ee;return Object.defineProperty(fe,\"displayName\",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(_e){Ee=_e,$.name||$.displayName||(Object.defineProperty($,\"name\",{value:_e}),$.displayName=_e)}}),fe},St.isValidElement=O,St.lazy=function($){$={_status:-1,_result:$};var fe={$$typeof:qe,_payload:$,_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 $._ioInfo=Ee,fe._debugInfo=[{awaited:Ee}],fe},St.memo=function($,fe){$==null&&console.error(\"memo: The first argument must be a component. Instead received: %s\",$===null?\"null\":typeof $),fe={$$typeof:Ce,type:$,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,$.name||$.displayName||(Object.defineProperty($,\"name\",{value:_e}),$.displayName=_e)}}),fe},St.startTransition=function($){var fe=Je.T,Ee={};Ee._updatedFibers=new Set,Je.T=Ee;try{var _e=$(),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&&($=Ee._updatedFibers.size,Ee._updatedFibers.clear(),10<$&&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($){return W().use($)},St.useActionState=function($,fe,Ee){return W().useActionState($,fe,Ee)},St.useCallback=function($,fe){return W().useCallback($,fe)},St.useContext=function($){var fe=W();return $.$$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($)},St.useDebugValue=function($,fe){return W().useDebugValue($,fe)},St.useDeferredValue=function($,fe){return W().useDeferredValue($,fe)},St.useEffect=function($,fe){return $==null&&console.warn(\"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),W().useEffect($,fe)},St.useEffectEvent=function($){return W().useEffectEvent($)},St.useId=function(){return W().useId()},St.useImperativeHandle=function($,fe,Ee){return W().useImperativeHandle($,fe,Ee)},St.useInsertionEffect=function($,fe){return $==null&&console.warn(\"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),W().useInsertionEffect($,fe)},St.useLayoutEffect=function($,fe){return $==null&&console.warn(\"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),W().useLayoutEffect($,fe)},St.useMemo=function($,fe){return W().useMemo($,fe)},St.useOptimistic=function($,fe){return W().useOptimistic($,fe)},St.useReducer=function($,fe,Ee){return W().useReducer($,fe,Ee)},St.useRef=function($){return W().useRef($)},St.useState=function($){return W().useState($)},St.useSyncExternalStore=function($,fe,Ee){return W().useSyncExternalStore($,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((TPt,mle)=>{\"use strict\";c();mle.exports=ple()});var hle=X(zi=>{\"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 k=!1}catch{k=!0}return k&&(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:p,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},p=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\"),zi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,zi.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)},zi.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.\")}},zi.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))},zi.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)},zi.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),k=typeof v.integrity==\"string\"?v.integrity:void 0,P=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:k,fetchPriority:P}):E===\"script\"&&d.d.X(y,{crossOrigin:C,integrity:k,fetchPriority:P,nonce:typeof v.nonce==\"string\"?v.nonce:void 0})}},zi.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))},zi.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})}},zi.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))},zi.requestFormReset=function(y){d.d.r(y)},zi.unstable_batchedUpdates=function(y,v){return y(v)},zi.useFormState=function(y,v,E){return u().useFormState(y,v,E)},zi.useFormStatus=function(){return u().useHostTransitionStatus()},zi.version=\"19.2.1\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ble=X((IPt,yle)=>{\"use strict\";c();yle.exports=hle()});var gle=X(c9=>{\"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,m){if(l>=i.length)return m;var b=i[l],w=oa(a)?a.slice():Wt({},a);return w[b]=t(a[b],i,l+1,m),w}function r(a,i,l){if(i.length!==l.length)console.warn(\"copyWithRename() expects paths of the same length\");else{for(var m=0;m<l.length-1;m++)if(i[m]!==l[m]){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,m){var b=i[m],w=oa(a)?a.slice():Wt({},a);return m+1===i.length?(w[l[m]]=w[b],oa(w)?w.splice(b,1):delete w[b]):w[b]=n(a[b],i,l,m+1),w}function o(a,i,l){var m=i[l],b=oa(a)?a.slice():Wt({},a);return l+1===i.length?(oa(b)?b.splice(m,1):delete b[m],b):(b[m]=o(a[m],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 p(){}function h(){}function y(a){var i=[];return a.forEach(function(l){i.push(l)}),i.sort().join(\", \")}function v(a,i,l,m){return new kit(a,i,l,m)}function E(a,i){a.context===Dh&&(Fj(a.current,2,i,a,null,null),y2())}function C(a,i){if(Wc!==null){var l=i.staleFamilies;i=i.updatedFamilies,D8(),Kne(a.current,i,l),y2()}}function k(a){Wc=a}function P(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,m=i;;){var b=l.return;if(b===null)break;var w=b.alternate;if(w===null){if(m=b.return,m!==null){l=m;continue}break}if(b.child===w.child){for(w=b.child;w;){if(w===l)return N(b),a;if(w===m)return N(b),i;w=w.sibling}throw Error(\"Unable to find node on an unmounted component.\")}if(l.return!==m.return)l=b,m=w;else{for(var S=!1,B=b.child;B;){if(B===l){S=!0,l=b,m=w;break}if(B===m){S=!0,m=b,l=w;break}B=B.sibling}if(!S){for(B=w.child;B;){if(B===l){S=!0,l=w,m=b;break}if(B===m){S=!0,m=w,l=b;break}B=B.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!==m)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=ese&&a[ese]||a[\"@@iterator\"],typeof a==\"function\"?a:null)}function J(a){if(a==null)return null;if(typeof a==\"function\")return a.$$typeof===Zst?null:a.displayName||a.name||null;if(typeof a==\"string\")return a;switch(a){case A2:return\"Fragment\";case Kj:return\"Profiler\";case Jk:return\"StrictMode\";case Qj:return\"Suspense\";case Zj: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 Wj:return(a._context.displayName||\"Context\")+\".Consumer\";case K8:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||\"\",a=a!==\"\"?\"ForwardRef(\"+a+\")\":\"ForwardRef\"),a;case Yk: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===Jk?\"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!==Xj[Sp]&&console.error(\"Unexpected Fiber popped.\"),a.current=Yj[Sp],Yj[Sp]=null,Xj[Sp]=null,Sp--)}function H(a,i,l){Sp++,Yj[Sp]=a.current,Xj[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(W8,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)?Sie(i):Hp;break;default:if(l=i.tagName,i=i.namespaceURI)i=Sie(i),i=Cie(i,l);else switch(l){case\"svg\":i=nv;break;case\"math\":i=Z7;break;default:i=Hp}}l=l.toLowerCase(),l=gne(null,l),l={context:i,ancestorInfo:l},re(Ih,a),H(Ih,l,a)}function R(a){re(Ih,a),re(W8,a),re(Ph,a)}function D(){return A(Ih.current)}function L(a){a.memoizedState!==null&&H(Xk,a,a);var i=A(Ih.current),l=a.type,m=Cie(i.context,l);l=gne(i.ancestorInfo,l),m={context:m,ancestorInfo:l},i!==m&&(H(W8,a,a),H(Ih,m,a))}function V(a){W8.current===a&&(re(Ih,a),re(W8,a)),Xk.current===a&&(re(Xk,a),LA._currentValue=s1)}function Q(){}function F(){if(Q8===0){tse=console.log,rse=console.info,nse=console.warn,ose=console.error,ase=console.group,ise=console.groupCollapsed,sse=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Q,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}Q8++}function I(){if(Q8--,Q8===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Wt({},a,{value:tse}),info:Wt({},a,{value:rse}),warn:Wt({},a,{value:nse}),error:Wt({},a,{value:ose}),group:Wt({},a,{value:ase}),groupCollapsed:Wt({},a,{value:ise}),groupEnd:Wt({},a,{value:sse})})}0>Q8&&console.error(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\")}function Z(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(e$===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\\\\n( *(at )?)/);e$=i&&i[1]||\"\",cse=-1<l.stack.indexOf(`\\n    at`)?\" (<anonymous>)\":-1<l.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\\n`+e$+a+cse}function ge(a,i){if(!a||t$)return\"\";var l=r$.get(a);if(l!==void 0)return l;t$=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var m=null;m=ye.H,ye.H=null,F();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(),B=S[0],z=S[1];if(B&&z){var q=B.split(`\\n`),ce=z.split(`\\n`);for(S=w=0;w<q.length&&!q[w].includes(\"DetermineComponentFrameRoot\");)w++;for(;S<ce.length&&!ce[S].includes(\"DetermineComponentFrameRoot\");)S++;if(w===q.length||S===ce.length)for(w=q.length-1,S=ce.length-1;1<=w&&0<=S&&q[w]!==ce[S];)S--;for(;1<=w&&0<=S;w--,S--)if(q[w]!==ce[S]){if(w!==1||S!==1)do if(w--,S--,0>S||q[w]!==ce[S]){var ue=`\\n`+q[w].replace(\" at new \",\" at \");return a.displayName&&ue.includes(\"<anonymous>\")&&(ue=ue.replace(\"<anonymous>\",a.displayName)),typeof a==\"function\"&&r$.set(a,ue),ue}while(1<=w&&0<=S);break}}}finally{t$=!1,ye.H=m,I(),Error.prepareStackTrace=l}return q=(q=a?a.displayName||a.name:\"\")?me(q):\"\",typeof a==\"function\"&&r$.set(a,q),q}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 m=a._debugInfo;if(m)for(var b=m.length-1;0<=b;b--){var w=m[b];if(typeof w.name==\"string\"){var S=i;e:{var B=w.name,z=w.env,q=w.debugLocation;if(q!=null){var ce=Z(q),ue=ce.lastIndexOf(`\\n`),te=ue===-1?ce:ce.slice(ue+1);if(te.indexOf(B)!==-1){var pe=`\\n`+te;break e}}pe=me(B+(z?\" [\"+z+\"]\":\"\"))}i=S+pe}}l=a,a=a.return}while(a);return i}catch(Oe){return`\\nError generating stack: `+Oe.message+`\\n`+Oe.stack}}function qe(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+=qe(a.type));break;case 11:a._debugOwner||i!==\"\"||(i+=qe(a.type.render))}for(;a;)if(typeof a.tag==\"number\"){var l=a;a=l._debugOwner;var m=l._debugStack;if(a&&m){var b=Z(m);b!==\"\"&&(i+=`\\n`+b)}}else if(a.debugStack!=null){var w=a.debugStack;(a=a.owner)&&w&&(i+=`\\n`+Z(w))}else break;var S=i}catch(B){S=`\\nError generating stack: `+B.message+`\\n`+B.stack}return S}function Te(a,i,l,m,b,w,S){var B=mc;It(a);try{return a!==null&&a._debugTask?a._debugTask.run(i.bind(null,l,m,b,w,S)):i(l,m,b,w,S)}finally{It(B)}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 nct==\"function\"&&oct(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-(act(a)/ict|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 m=a.pendingLanes;if(m===0)return 0;var b=0,w=a.suspendedLanes,S=a.pingedLanes;a=a.warmLanes;var B=m&134217727;return B!==0?(m=B&~w,m!==0?b=ni(m):(S&=B,S!==0?b=ni(S):l||(l=B&~a,l!==0&&(b=ni(l))))):(B=m&~w,B!==0?b=ni(B):S!==0?b=ni(S):l||(l=m&~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=r7;return r7<<=1,(r7&62914560)===0&&(r7=4194304),a}function $r(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,m,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 B=a.entanglements,z=a.expirationTimes,q=a.hiddenUpdates;for(l=S&~l;0<l;){var ce=31-Mi(l),ue=1<<ce;B[ce]=0,z[ce]=-1;var te=q[ce];if(te!==null)for(q[ce]=null,ce=0;ce<te.length;ce++){var pe=te[ce];pe!==null&&(pe.lane&=-536870913)}l&=~ue}m!==0&&Ir(a,m,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 m=31-Mi(i);a.entangledLanes|=i,a.entanglements[m]=a.entanglements[m]|1073741824|l&261930}function ys(a,i){var l=a.entangledLanes|=i;for(a=a.entanglements;l;){var m=31-Mi(l),b=1<<m;b&i|a[m]&i&&(a[m]|=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 $c(a,i,l){if(Df)for(a=a.pendingUpdatersLaneMap;0<l;){var m=31-Mi(l),b=1<<m;a[m].add(i),l&=~b}}function Er(a,i){if(Df)for(var l=a.pendingUpdatersLaneMap,m=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&&m.has(S)||m.add(w)}),b.clear()),i&=~a}}function $(a){return a&=-a,hc!==0&&hc<a?ul!==0&&ul<a?(a&134217727)!==0?Hf:n7:ul:hc}function fe(){var a=zr.p;return a!==0?a:(a=window.event,a===void 0?Hf:Kie(a.type))}function Ee(a,i){var l=zr.p;try{return zr.p=a,i()}finally{zr.p=l}}function _e(a){delete a[Ua],delete a[Oi],delete a[s$],delete a[sct],delete a[cct]}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=Mie(a);a!==null;){if(l=a[Ua])return l;a=Mie(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 zt(a){var i=a[use];return i||(i=a[use]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Ne(a){a[Z8]=!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(c$[l]=a,a===\"onDoubleClick\"&&(c$.ondblclick=a),a=0;a<i.length;a++)lse.add(i[a])}function Ar(a,i){uct[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 qr(a){return cl.call(dse,a)?!0:cl.call(fse,a)?!1:lct.test(a)?dse[a]=!0:(fse[a]=!0,console.error(\"Invalid attribute name: `%s`\",a),!1)}function mp(a,i,l){if(qr(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(qr(i))if(l===null)a.removeAttribute(i);else{switch(typeof l){case\"undefined\":case\"function\":case\"symbol\":a.removeAttribute(i);return;case\"boolean\":var m=i.toLowerCase().slice(0,5);if(m!==\"data-\"&&m!==\"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,m){if(m===null)a.removeAttribute(l);else{switch(typeof m){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":a.removeAttribute(l);return}rr(m,l),a.setAttributeNS(i,l,\"\"+m)}}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 m=Object.getOwnPropertyDescriptor(a.constructor.prototype,i);if(!a.hasOwnProperty(i)&&typeof m<\"u\"&&typeof m.get==\"function\"&&typeof m.set==\"function\"){var b=m.get,w=m.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:m.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(),m=\"\";return a&&(m=xn(a)?a.checked?\"true\":\"false\":a.value),a=m,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(fct,function(i){return\"\\\\\\\\\"+i.charCodeAt(0).toString(16)+\" \"})}function wn(a,i){i.checked===void 0||i.defaultChecked===void 0||mse||(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),mse=!0),i.value===void 0||i.defaultValue===void 0||pse||(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),pse=!0)}function sf(a,i,l,m,b,w,S,B){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)):m!=null&&a.removeAttribute(\"value\"),b==null&&w!=null&&(a.defaultChecked=!!w),b!=null&&(a.checked=b&&typeof b!=\"function\"&&typeof b!=\"symbol\"),B!=null&&typeof B!=\"function\"&&typeof B!=\"symbol\"&&typeof B!=\"boolean\"?(rr(B,\"name\"),a.name=\"\"+cr(B)):a.removeAttribute(\"name\")}function En(a,i,l,m,b,w,S,B){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,B||i===a.value||(a.value=i),a.defaultValue=i}m=m??b,m=typeof m!=\"function\"&&typeof m!=\"symbol\"&&!!m,a.checked=B?a.checked:!!m,a.defaultChecked=!!m,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?Vj.Children.forEach(i.children,function(l){l==null||typeof l==\"string\"||typeof l==\"number\"||typeof l==\"bigint\"||yse||(yse=!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||bse||(bse=!0,console.error(\"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.\"))),i.selected==null||hse||(console.error(\"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.\"),hse=!0)}function uf(){var a=je();return a?`\\n\\nCheck the render method of \\\\``+a+\"`.\":\"\"}function bs(a,i,l,m){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&&m&&(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,m&&(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<xse.length;a++){var l=xse[a];if(i[l]!=null){var m=oa(i[l]);i.multiple&&!m?console.error(\"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s\",l,uf()):!i.multiple&&m&&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||gse||(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\"),gse=!0)}function ff(a,i){i.value===void 0||i.defaultValue===void 0||vse||(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\"),vse=!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,m){if(i==null){if(m!=null){if(l!=null)throw Error(\"If you supply `defaultValue` on a <textarea>, do not pass children.\");if(oa(m)){if(1<m.length)throw Error(\"<textarea> can only have at most one child.\");m=m[0]}l=m}l==null&&(l=\"\"),i=l}l=cr(i),a.defaultValue=l,m=a.textContent,m===l&&m!==\"\"&&m!==null&&(a.value=m),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 wse.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 qc(a,i,l){var m=120-2*l;if(i===null)return gs(l)+ac(a,m)+`\\n`;if(typeof i==\"string\"){for(var b=0;b<i.length&&b<a.length&&i.charCodeAt(b)===a.charCodeAt(b);b++);return b>m-8&&10<b&&(a=\"...\"+a.slice(b-8),i=\"...\"+i.slice(b-8)),gs(l)+ac(a,m)+`\\n`+Pi(l)+ac(i,m)+`\\n`}return Ao(l)+ac(a,m)+`\\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 m in a)if(a.hasOwnProperty(m)){var b=JSON.stringify(m);if(b!==\\'\"\\'+m+\\'\"\\'&&(m=b),i-=m.length-2,b=hp(a[m],15>i?i:15),i-=b.length,0>i){l+=l===\"\"?\"...\":\", ...\";break}l+=(l===\"\"?\"\":\",\")+m+\":\"+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\"||wse.test(a)?\"{\"+hp(a,i-2)+\"}\":a.length>i-2?5>i?\\'\"...\"\\':\\'\"\\'+a.slice(0,i-5)+\\'...\"\\':\\'\"\\'+a+\\'\"\\'}function Sb(a,i,l){var m=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);m-=w.length+S.length+2,b.push(w+\"=\"+S)}return b.length===0?l+\"<\"+a+`>\\n`:0<m?l+\"<\"+a+\" \"+b.join(\" \")+`>\\n`:l+\"<\"+a+`\\n`+l+\"  \"+b.join(`\\n`+l+\"  \")+`\\n`+l+`>\\n`}function p8(a,i,l){var m=\"\",b=Wt({},i),w;for(w in a)if(a.hasOwnProperty(w)){delete b[w];var S=120-2*l-w.length-2,B=hp(a[w],S);i.hasOwnProperty(w)?(S=hp(i[w],S),m+=gs(l)+w+\": \"+B+`\\n`,m+=Pi(l)+w+\": \"+S+`\\n`):m+=gs(l)+w+\": \"+B+`\\n`}for(var z in b)b.hasOwnProperty(z)&&(a=hp(b[z],120-2*l-z.length-2),m+=Pi(l)+z+\": \"+a+`\\n`);return m}function sit(a,i,l,m){var b=\"\",w=new Map;for(q in l)l.hasOwnProperty(q)&&w.set(q.toLowerCase(),q);if(w.size===1&&w.has(\"children\"))b+=Sb(a,i,Ao(m));else{for(var S in i)if(i.hasOwnProperty(S)&&S!==\"children\"){var B=120-2*(m+1)-S.length-1,z=w.get(S.toLowerCase());if(z!==void 0){w.delete(S.toLowerCase());var q=i[S];z=l[z];var ce=yf(q,B);B=yf(z,B),typeof q==\"object\"&&q!==null&&typeof z==\"object\"&&z!==null&&Ab(q)===\"Object\"&&Ab(z)===\"Object\"&&(2<Object.keys(q).length||2<Object.keys(z).length||-1<ce.indexOf(\"...\")||-1<B.indexOf(\"...\"))?b+=Ao(m+1)+S+`={{\\n`+p8(q,z,m+2)+Ao(m+1)+`}}\\n`:(b+=gs(m+1)+S+\"=\"+ce+`\\n`,b+=Pi(m+1)+S+\"=\"+B+`\\n`)}else b+=Ao(m+1)+S+\"=\"+yf(i[S],B)+`\\n`}w.forEach(function(ue){if(ue!==\"children\"){var te=120-2*(m+1)-ue.length-1;b+=Pi(m+1)+ue+\"=\"+yf(l[ue],te)+`\\n`}}),b=b===\"\"?Ao(m)+\"<\"+a+`>\\n`:Ao(m)+\"<\"+a+`\\n`+b+Ao(m)+`>\\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+=qc(w,\"\"+a,m+1)):(typeof i==\"string\"||typeof i==\"number\"||typeof i==\"bigint\")&&(b=a==null?b+qc(\"\"+i,null,m+1):b+qc(\"\"+i,void 0,m+1)),b}function yne(a,i){var l=hf(a);if(l===null){for(l=\"\",a=a.child;a;)l+=yne(a,i),a=a.sibling;return l}return Ao(i)+\"<\"+l+`>\\n`}function VF(a,i){var l=mf(a,i);if(l!==a&&(a.children.length!==1||a.children[0]!==l))return Ao(i)+`...\\n`+VF(l,i+1);l=\"\";var m=a.fiber._debugInfo;if(m)for(var b=0;b<m.length;b++){var w=m[b].name;typeof w==\"string\"&&(l+=Ao(i)+\"<\"+w+`>\\n`,i++)}if(m=\"\",b=a.fiber.pendingProps,a.fiber.tag===6)m=qc(b,a.serverProps,i),i++;else if(w=hf(a.fiber),w!==null)if(a.serverProps===void 0){m=i;var S=120-2*m-w.length-2,B=\"\";for(q in b)if(b.hasOwnProperty(q)&&q!==\"children\"){var z=yf(b[q],15);if(S-=q.length+z.length+2,0>S){B+=\" ...\";break}B+=\" \"+q+\"=\"+z}m=Ao(m)+\"<\"+w+B+`>\\n`,i++}else a.serverProps===null?(m=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.\"):(m=sit(w,b,a.serverProps,i),i++);var q=\"\";for(b=a.fiber.child,w=0;b&&w<a.children.length;)S=a.children[w],S.fiber===b?(q+=VF(S,i),w++):q+=yne(b,i),b=b.sibling;for(b&&0<a.children.length&&(q+=Ao(i)+`...\\n`),b=a.serverTail,a.serverProps===null&&i--,a=0;a<b.length;a++)w=b[a],q=typeof w==\"string\"?q+(Pi(i)+ac(w,120-2*i)+`\\n`):q+Sb(w.type,w.props,Pi(i));return l+m+q}function KF(a){try{return`\\n\\n`+VF(a,0)}catch{return\"\"}}function bne(a,i,l){for(var m=i,b=null,w=0;m;)m===a&&(w=0),b={fiber:m,children:b!==null?[b]:[],serverProps:m===i?l:m===a?null:void 0,serverTail:[],distanceFromLeaf:w},w++,m=m.return;return b!==null?KF(b).replaceAll(/^[+-]/gm,\">\"):\"\"}function gne(a,i){var l=Wt({},a||Ase),m={tag:i};return Ese.indexOf(i)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),pct.indexOf(i)!==-1&&(l.pTagInButtonScope=null),dct.indexOf(i)!==-1&&i!==\"address\"&&i!==\"div\"&&i!==\"p\"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=m,i===\"form\"&&(l.formTag=m),i===\"a\"&&(l.aTagInScope=m),i===\"button\"&&(l.buttonTagInScope=m),i===\"nobr\"&&(l.nobrTagInScope=m),i===\"p\"&&(l.pTagInButtonScope=m),i===\"li\"&&(l.listItemTagAutoclosing=m),(i===\"dd\"||i===\"dt\")&&(l.dlItemTagAutoclosing=m),i===\"#document\"||i===\"html\"?l.containerTagInScope=null:l.containerTagInScope||(l.containerTagInScope=m),a!==null||i!==\"#document\"&&i!==\"html\"&&i!==\"body\"?l.implicitRootScope===!0&&(l.implicitRootScope=!1):l.implicitRootScope=!0,l}function xne(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 mct.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 cit(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 vne(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 WF(a,i){i=i||Ase;var l=i.current;if(i=(l=xne(a,l&&l.tag,i.implicitRootScope)?null:l)?null:cit(a,i),i=l||i,!i)return!0;var m=i.tag;if(i=String(!!l)+\"|\"+a+\"|\"+m,o7[i])return!1;o7[i]=!0;var b=(i=mc)?vne(i.return,m):null,w=i!==null&&b!==null?bne(b,i,null):\"\",S=\"<\"+a+\">\";return l?(l=\"\",m===\"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,m,l,w)):console.error(`In HTML, %s cannot be a descendant of <%s>.\\nThis will cause a hydration error.%s`,S,m,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.`,m,S)})),!1}function K4(a,i,l){if(l||xne(\"#text\",i,!1))return!0;if(l=\"#text|\"+i,o7[l])return!1;o7[l]=!0;var m=(l=mc)?vne(l,i):null;return l=l!==null&&m!==null?bne(m,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 m8(a,i){if(i){var l=a.firstChild;if(l&&l===a.lastChild&&l.nodeType===3){l.nodeValue=i;return}}a.textContent=i}function uit(a){return a.replace(bct,function(i,l){return l.toUpperCase()})}function wne(a,i,l){var m=i.indexOf(\"--\")===0;m||(-1<i.indexOf(\"-\")?T2.hasOwnProperty(i)&&T2[i]||(T2[i]=!0,console.error(\"Unsupported style property %s. Did you mean %s?\",i,uit(i.replace(yct,\"ms-\")))):hct.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))):!Tse.test(l)||l$.hasOwnProperty(l)&&l$[l]||(l$[l]=!0,console.error(`Style property values shouldn\\'t contain a semicolon. Try \"%s: %s\" instead.`,i,l.replace(Tse,\"\"))),typeof l==\"number\"&&(isNaN(l)?_se||(_se=!0,console.error(\"`NaN` is an invalid value for the `%s` css style property.\",i)):isFinite(l)||kse||(kse=!0,console.error(\"`Infinity` is an invalid value for the `%s` css style property.\",i)))),l==null||typeof l==\"boolean\"||l===\"\"?m?a.setProperty(i,\"\"):i===\"float\"?a.cssFloat=\"\":a[i]=\"\":m?a.setProperty(i,l):typeof l!=\"number\"||l===0||Bse.has(i)?i===\"float\"?a.cssFloat=l:(rn(l,i),a[i]=(\"\"+l).trim()):a[i]=l+\"px\"}function Ene(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 m={};if(l){for(var b in l)if(l.hasOwnProperty(b)&&!i.hasOwnProperty(b))for(var w=u$[b]||[b],S=0;S<w.length;S++)m[w[S]]=b}for(var B in i)if(i.hasOwnProperty(B)&&(!l||l[B]!==i[B]))for(b=u$[B]||[B],w=0;w<b.length;w++)m[b[w]]=B;B={};for(var z in i)for(b=u$[z]||[z],w=0;w<b.length;w++)B[b[w]]=z;z={};for(var q in m)if(b=m[q],(w=B[q])&&b!==w&&(S=b+\",\"+w,!z[S])){z[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)q=i[te],i.hasOwnProperty(te)&&l[te]!==q&&wne(a,te,q)}else for(m in i)i.hasOwnProperty(m)&&wne(a,m,i[m])}function h8(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 Ane(a){return gct.get(a)||a}function lit(a,i){if(cl.call(k2,i)&&k2[i])return!0;if(vct.test(i)){if(a=\"aria-\"+i.slice(4).toLowerCase(),a=Ise.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(xct.test(i)){if(a=i.toLowerCase(),a=Ise.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 fit(a,i){var l=[],m;for(m in i)lit(a,m)||l.push(m);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 dit(a,i,l,m){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(m!=null){if(a=m.possibleRegistrationNames,m.registrationNameDependencies.hasOwnProperty(i))return!0;if(m=a.hasOwnProperty(b)?a[b]:null,m!=null)return console.error(\"Invalid event handler property `%s`. Did you mean `%s`?\",i,m),Ni[i]=!0;if(Rse.test(i))return console.error(\"Unknown event handler property `%s`. It will be ignored.\",i),Ni[i]=!0}else if(Rse.test(i))return wct.test(i)&&console.error(\"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.\",i),Ni[i]=!0;if(Ect.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(i7.hasOwnProperty(b)){if(b=i7[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 pit(a,i,l){var m=[],b;for(b in i)dit(a,b,i[b],l)||m.push(b);i=m.map(function(w){return\"`\"+w+\"`\"}).join(\", \"),m.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<m.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 y8(a){return Sct.test(\"\"+a)?\"javascript:throw new Error(\\'React has blocked a javascript: URL as a security precaution.\\')\":a}function yp(){}function QF(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function Sne(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 m=l[i];if(m!==a&&m.form===a.form){var b=m[Oi]||null;if(!b)throw Error(\"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.\");sf(m,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(i=0;i<l.length;i++)m=l[i],m.form===a.form&&vn(m)}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 Cne(a,i,l){if(f$)return a(i,l);f$=!0;try{var m=a(i);return m}finally{if(f$=!1,(B2!==null||I2!==null)&&(y2(),B2&&(i=B2,a=I2,I2=B2=null,Sne(i),a)))for(i=0;i<a.length;i++)Sne(a[i])}}function b8(a,i){var l=a.stateNode;if(l===null)return null;var m=l[Oi]||null;if(m===null)return null;l=m[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\":(m=!m.disabled)||(a=a.type,m=!(a===\"button\"||a===\"input\"||a===\"select\"||a===\"textarea\")),a=!m;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 Tne(){if(s7)return s7;var a,i=p$,l=i.length,m,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(m=1;m<=S&&i[l-m]===b[w-m];m++);return s7=b.slice(a,1<m?1-m:void 0)}function W4(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 Q4(){return!0}function _ne(){return!1}function xs(a){function i(l,m,b,w,S){this._reactName=l,this._targetInst=b,this.type=m,this.nativeEvent=w,this.target=S,this.currentTarget=null;for(var B in a)a.hasOwnProperty(B)&&(l=a[B],this[B]=l?l(w):w[B]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Q4:_ne,this.isPropagationStopped=_ne,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=Q4)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!=\"unknown\"&&(l.cancelBubble=!0),this.isPropagationStopped=Q4)},persist:function(){},isPersistent:Q4}),i}function mit(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=Dct[a])?!!i[a]:!1}function ZF(){return mit}function kne(a,i){switch(a){case\"keyup\":return Qct.indexOf(i.keyCode)!==-1;case\"keydown\":return i.keyCode!==Use;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function Bne(a){return a=a.detail,typeof a==\"object\"&&\"data\"in a?a.data:null}function hit(a,i){switch(a){case\"compositionend\":return Bne(i);case\"keypress\":return i.which!==Hse?null:(Fse=!0,Lse);case\"textInput\":return a=i.data,a===Lse&&Fse?null:a;default:return null}}function yit(a,i){if(P2)return a===\"compositionend\"||!b$&&kne(a,i)?(a=Tne(),s7=p$=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 Dse&&i.locale!==\"ko\"?null:i.data;default:return null}}function Ine(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i===\"input\"?!!Jct[a.type]:i===\"textarea\"}function bit(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 Pne(a,i,l,m){B2?I2?I2.push(m):I2=[m]:B2=m,i=zk(i,\"onChange\"),0<i.length&&(l=new c7(\"onChange\",\"change\",null,l,m),a.push({event:l,listeners:i}))}function git(a){pie(a,0)}function Z4(a){var i=Ve(a);if(vn(i))return a}function Rne(a,i){if(a===\"change\")return i}function Mne(){rA&&(rA.detachEvent(\"onpropertychange\",One),nA=rA=null)}function One(a){if(a.propertyName===\"value\"&&Z4(nA)){var i=[];Pne(i,nA,a,QF(a)),Cne(git,i)}}function xit(a,i,l){a===\"focusin\"?(Mne(),rA=i,nA=l,rA.attachEvent(\"onpropertychange\",One)):a===\"focusout\"&&Mne()}function vit(a){if(a===\"selectionchange\"||a===\"keyup\"||a===\"keydown\")return Z4(nA)}function wit(a,i){if(a===\"click\")return Z4(i)}function Eit(a,i){if(a===\"input\"||a===\"change\")return Z4(i)}function Ait(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}function g8(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),m=Object.keys(i);if(l.length!==m.length)return!1;for(m=0;m<l.length;m++){var b=l[m];if(!cl.call(i,b)||!Ui(a[b],i[b]))return!1}return!0}function Nne(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Une(a,i){var l=Nne(a);a=0;for(var m;l;){if(l.nodeType===3){if(m=a+l.textContent.length,a<=i&&m>=i)return{node:l,offset:i-a};a=m}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Nne(l)}}function Dne(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?Dne(a,i.parentNode):\"contains\"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function Hne(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 JF(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 Lne(a,i,l){var m=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;x$||R2==null||R2!==ol(m)||(m=R2,\"selectionStart\"in m&&JF(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),oA&&g8(oA,m)||(oA=m,m=zk(g$,\"onSelect\"),0<m.length&&(i=new c7(\"onSelect\",\"select\",null,i,l),a.push({event:i,listeners:m}),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(v$[a])return v$[a];if(!M2[a])return a;var i=M2[a],l;for(l in i)if(i.hasOwnProperty(l)&&l in jse)return v$[a]=i[l];return a}function al(a,i){Kse.set(a,i),jt(i,[a])}function Sit(a){for(var i=l7,l=0;l<a.length;l++){var m=a[l];if(typeof m==\"object\"&&m!==null)if(oa(m)&&m.length===2&&typeof m[0]==\"string\"){if(i!==l7&&i!==C$)return A$;i=C$}else return A$;else{if(typeof m==\"function\"||typeof m==\"string\"&&50<m.length||i!==l7&&i!==S$)return A$;i=S$}}return i}function YF(a,i,l,m){for(var b in a)cl.call(a,b)&&b[0]!==\"_\"&&bf(b,a[b],i,l,m)}function bf(a,i,l,m,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 B=Object.keys(i),z=B.length;if(S==null&&z===0){i=\"<\"+w+\" />\";break}if(3>m||z===1&&B[0]===\"children\"&&S==null){i=\"<\"+w+\" \\\\u2026 />\";break}l.push([b+\"\\\\xA0\\\\xA0\".repeat(m)+a,\"<\"+w]),S!==null&&bf(\"key\",S,l,m+1,b),a=!1;for(var q in i)q===\"children\"?i.children!=null&&(!oa(i.children)||0<i.children.length)&&(a=!0):cl.call(i,q)&&q[0]!==\"_\"&&bf(q,i[q],l,m+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(q=Sit(i),q===S$||q===l7){i=JSON.stringify(i);break}else if(q===C$){for(l.push([b+\"\\\\xA0\\\\xA0\".repeat(m)+a,\"\"]),a=0;a<i.length;a++)w=i[a],bf(w[0],w[1],l,m+1,b);return}}if(w===\"Promise\"){if(i.status===\"fulfilled\"){if(w=l.length,bf(a,i.value,l,m,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,m,b),l.length>w)){l=l[w],l[1]=\"Rejected Promise<\"+l[1]+\">\";return}l.push([\"\\\\xA0\\\\xA0\".repeat(m)+a,\"Promise\"]);return}w===\"Object\"&&(q=Object.getPrototypeOf(i))&&typeof q.constructor==\"function\"&&(w=q.constructor.name),l.push([b+\"\\\\xA0\\\\xA0\".repeat(m)+a,w===\"Object\"?3>m?\"\":\"\\\\u2026\":w]),3>m&&YF(i,l,m+1,b);return}case\"function\":i=i.name===\"\"?\"() => {}\":i.name+\"() {}\";break;case\"string\":i=i===out?\"\\\\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(m)+a,i])}function Fne(a,i,l,m){var b=!0;for(S in a)S in i||(l.push([f7+\"\\\\xA0\\\\xA0\".repeat(m)+S,\"\\\\u2026\"]),b=!1);for(var w in i)if(w in a){var S=a[w],B=i[w];if(S!==B){if(m===0&&w===\"children\")b=\"\\\\xA0\\\\xA0\".repeat(m)+w,l.push([f7+b,\"\\\\u2026\"],[d7+b,\"\\\\u2026\"]);else{if(!(3<=m)){if(typeof S==\"object\"&&typeof B==\"object\"&&S!==null&&B!==null&&S.$$typeof===B.$$typeof)if(B.$$typeof===Mf){if(S.type===B.type&&S.key===B.key){S=J(B.type)||\"\\\\u2026\",b=\"\\\\xA0\\\\xA0\".repeat(m)+w,S=\"<\"+S+\" \\\\u2026 />\",l.push([f7+b,S],[d7+b,S]),b=!1;continue}}else{var z=Object.prototype.toString.call(S),q=Object.prototype.toString.call(B);if(z===q&&(q===\"[object Object]\"||q===\"[object Array]\")){z=[Zse+\"\\\\xA0\\\\xA0\".repeat(m)+w,q===\"[object Array]\"?\"Array\":\"\"],l.push(z),q=l.length,Fne(S,B,l,m+1)?q===l.length&&(z[1]=\"Referentially unequal but deeply equal objects. Consider memoization.\"):b=!1;continue}}else if(typeof S==\"function\"&&typeof B==\"function\"&&S.name===B.name&&S.length===B.length&&(z=Function.prototype.toString.call(S),q=Function.prototype.toString.call(B),z===q)){S=B.name===\"\"?\"() => {}\":B.name+\"() {}\",l.push([Zse+\"\\\\xA0\\\\xA0\".repeat(m)+w,S+\" Referentially unequal function closure. Consider memoization.\"]);continue}}bf(w,S,l,m,f7),bf(w,B,l,m,d7)}b=!1}}else l.push([d7+\"\\\\xA0\\\\xA0\".repeat(m)+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,m){In&&(Uh.start=i,Uh.end=l,Cp.color=\"warning\",Cp.tooltipText=m,Cp.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,m,Uh)):performance.measure(m,Uh))}function J4(a,i,l){gf(a,i,l,\"Reconnect\")}function Y4(a,i,l,m,b){var w=W(a);if(w!==null&&In){var S=a.alternate,B=a.actualDuration;if(S===null||S.child!==a.child)for(var z=a.child;z!==null;z=z.sibling)B-=z.actualDuration;m=.5>B?m?\"tertiary-light\":\"primary-light\":10>B?m?\"tertiary\":\"primary\":100>B?m?\"tertiary-dark\":\"primary-dark\":\"error\";var q=a.memoizedProps;B=a._debugTask,q!==null&&S!==null&&S.memoizedProps!==q?(z=[aut],q=Fne(S.memoizedProps,q,z,0),1<z.length&&(q&&!Nh&&(S.lanes&b)===0&&100<a.actualDuration?(Nh=!0,z[0]=iut,Cp.color=\"warning\",Cp.tooltipText=Jse):(Cp.color=m,Cp.tooltipText=w),Cp.properties=z,Uh.start=i,Uh.end=l,B!=null?B.run(performance.measure.bind(performance,\"\\\\u200B\"+w,Uh)):performance.measure(\"\\\\u200B\"+w,Uh))):B!=null?B.run(console.timeStamp.bind(console,w,i,l,Vc,void 0,m)):console.timeStamp(w,i,l,Vc,void 0,m)}}function XF(a,i,l,m){if(In){var b=W(a);if(b!==null){for(var w=null,S=[],B=0;B<m.length;B++){var z=m[B];w==null&&z.source!==null&&(w=z.source._debugTask),z=z.value,S.push([\"Error\",typeof z==\"object\"&&z!==null&&typeof z.message==\"string\"?String(z.message):String(z)])}a.key!==null&&bf(\"key\",a.key,S,0,\"\"),a.memoizedProps!==null&&YF(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,m,b){if(b!==null){if(In){var w=W(a);if(w!==null){m=[];for(var S=0;S<b.length;S++){var B=b[S].value;m.push([\"Error\",typeof B==\"object\"&&B!==null&&typeof B.message==\"string\"?String(B.message):String(B)])}a.key!==null&&bf(\"key\",a.key,m,0,\"\"),a.memoizedProps!==null&&YF(a.memoizedProps,m,0,\"\"),i={start:i,end:l,detail:{devtools:{color:\"error\",track:Vc,tooltipText:\"A lifecycle or effect errored\",properties:m}}},(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>m?\"secondary-light\":100>m?\"secondary\":500>m?\"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 Cit(a,i,l,m){if(In&&!(i<=a)){var b=(l&738197653)===l?\"tertiary-dark\":\"primary-dark\";l=(l&536870912)===l?\"Prepared\":(l&201326741)===l?\"Hydrated\":\"Render\",m?m.run(console.timeStamp.bind(console,l,a,i,er,Qt,b)):console.timeStamp(l,a,i,er,Qt,b)}}function zne(a,i,l,m){!In||i<=a||(l=(l&738197653)===l?\"tertiary-dark\":\"primary-dark\",m?m.run(console.timeStamp.bind(console,\"Prewarm\",a,i,er,Qt,l)):console.timeStamp(\"Prewarm\",a,i,er,Qt,l))}function jne(a,i,l,m){!In||i<=a||(l=(l&738197653)===l?\"tertiary-dark\":\"primary-dark\",m?m.run(console.timeStamp.bind(console,\"Suspended\",a,i,er,Qt,l)):console.timeStamp(\"Suspended\",a,i,er,Qt,l))}function Tit(a,i,l,m,b,w){if(In&&!(i<=a)){l=[];for(var S=0;S<m.length;S++){var B=m[S].value;l.push([\"Recoverable Error\",typeof B==\"object\"&&B!==null&&typeof B.message==\"string\"?String(B.message):String(B)])}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 ez(a,i,l,m){!In||i<=a||(m?m.run(console.timeStamp.bind(console,\"Errored\",a,i,er,Qt,\"error\")):console.timeStamp(\"Errored\",a,i,er,Qt,\"error\"))}function _it(a,i,l,m){!In||i<=a||(m?m.run(console.timeStamp.bind(console,l,a,i,er,Qt,\"secondary-light\")):console.timeStamp(l,a,i,er,Qt,\"secondary-light\"))}function $ne(a,i,l,m,b){if(In&&!(i<=a)){for(var w=[],S=0;S<l.length;S++){var B=l[S].value;w.push([\"Error\",typeof B==\"object\"&&B!==null&&typeof B.message==\"string\"?String(B.message):String(B)])}a={start:a,end:i,detail:{devtools:{color:\"error\",track:er,trackGroup:Qt,tooltipText:m?\"Remaining Effects Errored\":\"Commit Errored\",properties:w}}},b?b.run(performance.measure.bind(performance,\"Errored\",a)):performance.measure(\"Errored\",a)}}function x8(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 X4(){for(var a=O2,i=T$=O2=0;i<a;){var l=Kc[i];Kc[i++]=null;var m=Kc[i];Kc[i++]=null;var b=Kc[i];Kc[i++]=null;var w=Kc[i];if(Kc[i++]=null,m!==null&&b!==null){var S=m.pending;S===null?b.next=b:(b.next=S.next,S.next=b),m.pending=b}w!==0&&qne(l,b,w)}}function ek(a,i,l,m){Kc[O2++]=a,Kc[O2++]=i,Kc[O2++]=l,Kc[O2++]=m,T$|=m,a.lanes|=m,a=a.alternate,a!==null&&(a.lanes|=m)}function tz(a,i,l,m){return ek(a,i,l,m),tk(a)}function ai(a,i){return ek(a,null,null,i),tk(a)}function qne(a,i,l){a.lanes|=l;var m=a.alternate;m!==null&&(m.lanes|=l);for(var b=!1,w=a.return;w!==null;)w.childLanes|=l,m=w.alternate,m!==null&&(m.childLanes|=l),w.tag===22&&(a=w.stateNode,a===null||a._visibility&aA||(b=!0)),a=w,w=w.return;return a.tag===3?(w=a.stateNode,b&&i!==null&&(b=31-Mi(l),a=w.hiddenUpdates,m=a[b],m===null?a[b]=[i]:m.push(i),i.lane=l|536870912),w):null}function tk(a){if(RA>wut)throw t1=RA=0,MA=aq=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>Eut&&(t1=0,MA=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&&iie(a);for(var i=a,l=i.return;l!==null;)i.alternate===null&&(i.flags&4098)!==0&&iie(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 rz(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:K8,render:i},a.displayName!==void 0&&(i.displayName=a.displayName),i):a:i.current}function Gne(a,i){if(Wc===null)return!1;var l=a.elementType;i=i.type;var m=!1,b=typeof i==\"object\"&&i!==null?i.$$typeof:null;switch(a.tag){case 1:typeof i==\"function\"&&(m=!0);break;case 0:(typeof i==\"function\"||b===pc)&&(m=!0);break;case 11:(b===K8||b===pc)&&(m=!0);break;case 14:case 15:(b===Yk||b===pc)&&(m=!0);break;default:return!1}return!!(m&&(a=Wc(l),a!==void 0&&a===Wc(i)))}function Vne(a){Wc!==null&&typeof WeakSet==\"function\"&&(N2===null&&(N2=new WeakSet),N2.add(a))}function Kne(a,i,l){do{var m=a,b=m.alternate,w=m.child,S=m.sibling,B=m.tag;m=m.type;var z=null;switch(B){case 0:case 15:case 1:z=m;break;case 11:z=m.render}if(Wc===null)throw Error(\"Expected resolveFamily to be set during hot reload.\");var q=!1;if(m=!1,z!==null&&(z=Wc(z),z!==void 0&&(l.has(z)?m=!0:i.has(z)&&(B===1?m=!0:q=!0))),N2!==null&&(N2.has(a)||b!==null&&N2.has(b))&&(m=!0),m&&(a._debugNeedsRemount=!0),(m||q)&&(b=ai(a,2),b!==null&&ro(b,a,2)),w===null||m||Kne(w,i,l),S===null)break;a=S}while(!0)}function kit(a,i,l,m){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=m,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,Yse||typeof Object.preventExtensions!=\"function\"||Object.preventExtensions(this)}function nz(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=rz(a.type)}return l}function Wne(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 oz(a,i,l,m,b,w){var S=0,B=a;if(typeof a==\"function\")nz(a)&&(S=1),B=_b(B);else if(typeof a==\"string\")S=D(),S=Dst(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 Jk:S=8,b|=si,b|=ll;break;case Kj:return a=l,m=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,m|Nt),i.elementType=Kj,i.lanes=w,i.stateNode={effectDuration:0,passiveEffectDuration:0},i;case Qj:return i=v(13,l,i,b),i.elementType=Qj,i.lanes=w,i;case Zj:return i=v(19,l,i,b),i.elementType=Zj,i.lanes=w,i;default:if(typeof a==\"object\"&&a!==null)switch(a.$$typeof){case Of:S=10;break e;case Wj:S=9;break e;case K8:S=11,B=rz(B);break e;case Yk:S=14;break e;case pc:S=16,B=null;break e}B=\"\",(a===void 0||typeof a==\"object\"&&a!==null&&Object.keys(a).length===0)&&(B+=\" 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\")+\" />\",B=\" Did you accidentally export a JSX literal instead of a component?\"):l=typeof a,(S=m?Y(m):null)&&(B+=`\\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+\".\"+B)),B=null}return i=v(S,l,i,b),i.elementType=a,i.type=B,i.lanes=w,i._debugOwner=m,i}function rk(a,i,l){return i=oz(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,m){return a=v(7,a,m,i),a.lanes=l,a}function az(a,i,l){return a=v(6,a,null,i),a.lanes=l,a}function Qne(a){var i=v(18,null,null,mt);return i.stateNode=a,i}function iz(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=_$.get(a);return l!==void 0?l:(i={value:a,source:i,stack:Ce(i)},_$.set(a,i),i)}return{value:a,source:i,stack:Ce(i)}}function gp(a,i){gh(),U2[D2++]=iA,U2[D2++]=p7,p7=a,iA=i}function Zne(a,i,l){gh(),Qc[Zc++]=_p,Qc[Zc++]=kp,Qc[Zc++]=zb,zb=a;var m=_p;a=kp;var b=32-Mi(m)-1;m&=~(1<<b),l+=1;var w=32-Mi(i)+b;if(30<w){var S=b-b%5;w=(m&(1<<S)-1).toString(32),m>>=S,b-=S,_p=1<<32-Mi(i)+b|l<<b|m,kp=w+a}else _p=1<<w|l<<b|m,kp=a}function sz(a){gh(),a.return!==null&&(gp(a,1),Zne(a,1,0))}function cz(a){for(;a===p7;)p7=U2[--D2],U2[D2]=null,iA=U2[--D2],U2[D2]=null;for(;a===zb;)zb=Qc[--Zc],Qc[Zc]=null,kp=Qc[--Zc],Qc[Zc]=null,_p=Qc[--Zc],Qc[Zc]=null}function Jne(){return gh(),zb!==null?{id:_p,overflow:kp}:null}function Yne(a,i){gh(),Qc[Zc++]=_p,Qc[Zc++]=kp,Qc[Zc++]=zb,_p=i.id,kp=i.overflow,zb=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 Xne(){nr&&console.error(\"We should not be hydrating here. This is a bug in React. Please file a bug.\")}function nk(a,i){Ff||(a=Bb(a,0),a.serverProps=null,i!==null&&(i=Pie(i),a.serverTail.push(i)))}function xh(a){var i=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,l=\"\",m=yc;throw m!==null&&(yc=null,l=KF(m)),v8(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)),k$}function eoe(a){var i=a.stateNode,l=a.type,m=a.memoizedProps;switch(i[Ua]=a,i[Oi]=m,kj(l,m),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<OA.length;l++)lr(OA[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\",m),lr(\"invalid\",i),wn(i,m),En(i,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case\"option\":cf(i,m);break;case\"select\":Ar(\"select\",m),lr(\"invalid\",i),lf(i,m);break;case\"textarea\":Ar(\"textarea\",m),lr(\"invalid\",i),ff(i,m),pf(i,m.value,m.defaultValue,m.children)}l=m.children,typeof l!=\"string\"&&typeof l!=\"number\"&&typeof l!=\"bigint\"||i.textContent===\"\"+l||m.suppressHydrationWarning===!0||bie(i.textContent,l)?(m.popover!=null&&(lr(\"beforetoggle\",i),lr(\"toggle\",i)),m.onScroll!=null&&lr(\"scroll\",i),m.onScrollEnd!=null&&lr(\"scrollend\",i),m.onClick!=null&&(i.onclick=yp),i=!0):i=!1,i||xh(a,!0)}function toe(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 toe(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\")||Mj(a.type,a.memoizedProps)),l=!l),l&&Pn){for(l=Pn;l;){var m=Bb(a,0),b=Pie(l);m.serverTail.push(b),l=b.type===\"Suspense\"?Dj(l):dc(l.nextSibling)}xh(a)}if(toe(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=Dj(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=Dj(a)}else i===27?(i=Pn,Bh(a.type)?(a=bq,bq=null,Pn=a):Pn=i):Pn=Da?dc(a.stateNode.nextSibling):null;return!0}function Ib(){Pn=Da=null,Ff=nr=!1}function uz(){var a=Hh;return a!==null&&(Fi===null?Fi=a:Fi.push.apply(Fi,a),Hh=null),a}function v8(a){Hh===null?Hh=[a]:Hh.push(a)}function lz(){var a=yc;if(a!==null){yc=null;for(var i=KF(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 ok(){H2=m7=null,L2=!1}function vh(a,i,l){H(B$,i._currentValue,a),i._currentValue=l,H(I$,i._currentRenderer,a),i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==ece&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),i._currentRenderer=ece}function xp(a,i){a._currentValue=B$.current;var l=I$.current;re(I$,i),a._currentRenderer=l,re(B$,i)}function fz(a,i,l){for(;a!==null;){var m=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,m!==null&&(m.childLanes|=i)):m!==null&&(m.childLanes&i)!==i&&(m.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 dz(a,i,l,m){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 B=w;w=b;for(var z=0;z<i.length;z++)if(B.context===i[z]){w.lanes|=l,B=w.alternate,B!==null&&(B.lanes|=l),fz(w.return,l,a),m||(S=null);break e}w=B.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),fz(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,m){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 B=b.type;Ui(b.pendingProps.value,S.value)||(a!==null?a.push(B):a=[B])}}else if(b===Xk.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(LA):a=[LA])}b=b.return}a!==null&&dz(i,a,l,m),i.flags|=262144}function ak(a){for(a=a.firstContext;a!==null;){if(!Ui(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Pb(a){m7=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().\"),roe(m7,a)}function ik(a,i){return m7===null&&Pb(a),roe(a,i)}function roe(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 pz(){return{controller:new uut,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 w8(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&&lut(fut,function(){a.controller.abort()})}function vf(a,i,l){(a&127)!==0?0>zf&&(zf=Lo(),cA=h7(i),P$=i,l!=null&&(R$=W(l)),(hr&(ia|xc))!==ba&&(no=!0,zh=sA),a=j8(),i=z8(),a!==F2||i!==uA?F2=-1.1:i!==null&&(zh=sA),$b=a,uA=i):(a&4194048)!==0&&0>Yc&&(Yc=Lo(),lA=h7(i),tce=i,l!=null&&(rce=W(l)),0>Pp)&&(a=j8(),i=z8(),(a!==$h||i!==qb)&&($h=-1.1),jh=a,qb=i)}function Bit(a){if(0>zf){zf=Lo(),cA=a._debugTask!=null?a._debugTask:null,(hr&(ia|xc))!==ba&&(zh=sA);var i=j8(),l=z8();i!==F2||l!==uA?F2=-1.1:l!==null&&(zh=sA),$b=i,uA=l}0>Yc&&(Yc=Lo(),lA=a._debugTask!=null?a._debugTask:null,0>Pp)&&(a=j8(),i=z8(),(a!==$h||i!==qb)&&($h=-1.1),jh=a,qb=i)}function vp(){var a=jb;return jb=0,a}function sk(a){var i=jb;return jb=a,i}function E8(a){var i=jb;return jb+=a,i}function ck(){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 mz(a){Di=Lo(),0>a.actualStartTime&&(a.actualStartTime=Di)}function hz(a){if(0<=Di){var i=Lo()-Di;a.actualDuration+=i,a.selfBaseDuration=i,Di=-1}}function noe(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 ooe(a){Ln===null&&(Ln=[]),Ln.push(a),Ip===null&&(Ip=[]),Ip.push(a)}function Tf(){Di=Lo(),0>ct&&(ct=Di)}function A8(a){for(var i=a.child;i;)a.actualDuration+=i.actualDuration,i=i.sibling}function Iit(a,i){if(dA===null){var l=dA=[];O$=0,Gb=Sj(),z2={status:\"pending\",value:void 0,then:function(m){l.push(m)}}}return O$++,i.then(aoe,aoe),i}function aoe(){if(--O$===0&&(-1<Yc||(Pp=-1.1),dA!==null)){z2!==null&&(z2.status=\"fulfilled\");var a=dA;dA=null,Gb=0,z2=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function Pit(a,i){var l=[],m={status:\"pending\",value:null,reason:null,then:function(b){l.push(b)}};return a.then(function(){m.status=\"fulfilled\",m.value=i;for(var b=0;b<l.length;b++)(0,l[b])(i)},function(b){for(m.status=\"rejected\",m.reason=b,b=0;b<l.length;b++)(0,l[b])(void 0)}),m}function yz(){var a=Vb.current;return a!==null?a:mn.pooledCache}function uk(a,i){i===null?H(Vb,Vb.current,a):H(Vb,i.pool,a)}function ioe(){var a=yz();return a===null?null:{parent:Ho._currentValue,pool:a}}function soe(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function coe(a){return a=a.status,a===\"fulfilled\"||a===\"rejected\"}function uoe(a,i,l){ye.actQueue!==null&&(ye.didUsePromise=!0);var m=a.thenables;if(l=m[l],l===void 0?m.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(),m=i.displayName;var b={name:typeof m==\"string\"?m:\"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,foe(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,foe(a),a}throw Wb=i,xA=!0,j2}}function wh(a){try{return hut(a)}catch(i){throw i!==null&&typeof i==\"object\"&&typeof i.then==\"function\"?(Wb=i,xA=!0,j2):i}}function loe(){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,xA=!1,a}function foe(a){if(a===j2||a===A7)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 bz(){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 lk(a,i,l){for(var m=Object.keys(a.props),b=0;b<m.length;b++){var w=m[b];if(w!==\"children\"&&w!==\"key\"){i===null&&(i=rk(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 fk(a){var i=vA;return vA+=1,$2===null&&($2=soe()),uoe($2,a,i)}function S8(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function doe(a,i){throw i.$$typeof===Wst?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 dk(a,i){var l=bz();l!==null?l.run(doe.bind(null,a,i)):doe(a,i)}function poe(a,i){var l=W(a)||\"Component\";Ece[l]||(Ece[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 pk(a,i){var l=bz();l!==null?l.run(poe.bind(null,a,i)):poe(a,i)}function moe(a,i){var l=W(a)||\"Component\";Ace[l]||(Ace[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 mk(a,i){var l=bz();l!==null?l.run(moe.bind(null,a,i)):moe(a,i)}function hoe(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 m(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 B(ee,oe,se,xe){return oe===null||oe.tag!==6?(oe=az(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 z(ee,oe,se,xe){var Le=se.type;return Le===A2?(oe=ce(ee,oe,se.props.children,xe,se.key),lk(se,oe,ee),oe):oe!==null&&(oe.elementType===Le||Gne(oe,se)||typeof Le==\"object\"&&Le!==null&&Le.$$typeof===pc&&wh(Le)===oe.type)?(oe=b(oe,se.props),S8(oe,se),oe.return=ee,oe._debugOwner=se._owner,oe._debugInfo=Ut,oe):(oe=rk(se,ee.mode,xe),S8(oe,se),oe.return=ee,oe._debugInfo=Ut,oe)}function q(ee,oe,se,xe){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==se.containerInfo||oe.stateNode.implementation!==se.implementation?(oe=iz(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=az(\"\"+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=rk(oe,ee.mode,se),S8(se,oe),se.return=ee,ee=Ma(oe._debugInfo),se._debugInfo=Ut,Ut=ee,se;case E2:return oe=iz(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,fk(oe),se),Ut=xe,ee;if(oe.$$typeof===Of)return ue(ee,ik(ee,oe),se);dk(ee,oe)}return typeof oe==\"function\"&&pk(ee,oe),typeof oe==\"symbol\"&&mk(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:B(ee,oe,\"\"+se,xe);if(typeof se==\"object\"&&se!==null){switch(se.$$typeof){case Mf:return se.key===Le?(Le=Ma(se._debugInfo),ee=z(ee,oe,se,xe),Ut=Le,ee):null;case E2:return se.key===Le?q(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,fk(se),xe),Ut=Le,ee;if(se.$$typeof===Of)return te(ee,oe,ik(ee,se),xe);dk(ee,se)}return typeof se==\"function\"&&pk(ee,se),typeof se==\"symbol\"&&mk(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,B(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=z(oe,se,xe,Le),Ut=ee,oe;case E2:return ee=ee.get(xe.key===null?se:xe.key)||null,q(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,fk(xe),Le),Ut=xt,oe;if(xe.$$typeof===Of)return pe(ee,oe,se,ik(oe,xe),Le);dk(oe,xe)}return typeof xe==\"function\"&&pk(oe,xe),typeof xe==\"symbol\"&&mk(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 $e(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=m(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(Fp){return i(ee,Fp)}),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 Fp=te(ee,st,Co.value,xe);if(Fp===null){st===null&&(st=Pt);break}Rn=Oe(ee,Fp,Co.value,Rn),a&&st&&Fp.alternate===null&&i(ee,st),oe=w(Fp,oe,et),xt===null?Le=Fp:xt.sibling=Fp,xt=Fp,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=m(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(Lut){return i(ee,Lut)}),nr&&gp(ee,et),Le}function fr(ee,oe,se,xe){if(typeof se==\"object\"&&se!==null&&se.type===A2&&se.key===null&&(lk(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,lk(se,xe,ee),ee=xe;break e}}else if(oe.elementType===xt||Gne(oe,se)||typeof xt==\"object\"&&xt!==null&&xt.$$typeof===pc&&wh(xt)===oe.type){l(ee,oe.sibling),xe=b(oe,se.props),S8(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,lk(se,xe,ee),ee=xe):(xe=rk(se,ee.mode,xe),S8(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=iz(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=$e(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]\")&&(vce||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.\"),vce=!0):se.entries!==xt||H$||(console.error(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),H$=!0),ee=Sn(ee,oe,st,xe),Ut=Le,ee}if(typeof se.then==\"function\")return Le=Ma(se._debugInfo),ee=fr(ee,oe,fk(se),xe),Ut=Le,ee;if(se.$$typeof===Of)return fr(ee,oe,ik(ee,se),xe);dk(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=az(Le,ee.mode,xe),xe.return=ee,xe._debugOwner=ee,xe._debugTask=ee._debugTask,xe._debugInfo=Ut,ee=xe),S(ee)):(typeof se==\"function\"&&pk(ee,se),typeof se==\"symbol\"&&mk(ee,se),l(ee,oe))}return function(ee,oe,se,xe){var Le=Ut;Ut=null;try{vA=0;var xt=fr(ee,oe,se,xe);return $2=null,xt}catch(Rn){if(Rn===j2||Rn===A7)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 yoe(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 gz(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xz(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:Cce,payload:null,callback:null,next:null}}function Ah(a,i,l){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,F$===m&&!kce){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),kce=!0}return(hr&ia)!==ba?(b=m.pending,b===null?i.next=i:(i.next=b.next,b.next=i),m.pending=i,i=tk(a),qne(a,null,l),i):(ek(a,m,i,l),tk(a))}function C8(a,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var m=i.lanes;m&=a.pendingLanes,l|=m,i.lanes=l,ys(a,l)}}function hk(a,i){var l=a.updateQueue,m=a.alternate;if(m!==null&&(m=m.updateQueue,l===m)){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:m.baseState,firstBaseUpdate:b,lastBaseUpdate:w,shared:m.shared,callbacks:m.callbacks},a.updateQueue=l;return}a=l.lastBaseUpdate,a===null?l.firstBaseUpdate=i:a.next=i,l.lastBaseUpdate=i}function T8(){if(z$){var a=z2;if(a!==null)throw a}}function _8(a,i,l,m){z$=!1;var b=a.updateQueue;qh=!1,F$=b.shared;var w=b.firstBaseUpdate,S=b.lastBaseUpdate,B=b.shared.pending;if(B!==null){b.shared.pending=null;var z=B,q=z.next;z.next=null,S===null?w=q:S.next=q,S=z;var ce=a.alternate;ce!==null&&(ce=ce.updateQueue,B=ce.lastBaseUpdate,B!==S&&(B===null?ce.firstBaseUpdate=q:B.next=q,ce.lastBaseUpdate=z))}if(w!==null){var ue=b.baseState;S=0,ce=q=z=null,B=w;do{var te=B.lane&-536870913,pe=te!==B.lane;if(pe?(Dt&te)===te:(m&te)===te){te!==0&&te===Gb&&(z$=!0),ce!==null&&(ce=ce.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{te=a;var Oe=B,$e=i,Sn=l;switch(Oe.tag){case Tce:if(Oe=Oe.payload,typeof Oe==\"function\"){L2=!0;var fr=Oe.call(Sn,ue,$e);if(te.mode&si){dt(!0);try{Oe.call(Sn,ue,$e)}finally{dt(!1)}}L2=!1,ue=fr;break e}ue=Oe;break e;case L$:te.flags=te.flags&-65537|128;case Cce:if(fr=Oe.payload,typeof fr==\"function\"){if(L2=!0,Oe=fr.call(Sn,ue,$e),te.mode&si){dt(!0);try{fr.call(Sn,ue,$e)}finally{dt(!1)}}L2=!1}else Oe=fr;if(Oe==null)break e;ue=Wt({},ue,Oe);break e;case _ce:qh=!0}}te=B.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:B.tag,payload:B.payload,callback:B.callback,next:null},ce===null?(q=ce=pe,z=ue):ce=ce.next=pe,S|=te;if(B=B.next,B===null){if(B=b.shared.pending,B===null)break;pe=B,B=pe.next,pe.next=null,b.lastBaseUpdate=pe,b.shared.pending=null}}while(!0);ce===null&&(z=ue),b.baseState=z,b.firstBaseUpdate=q,b.lastBaseUpdate=ce,w===null&&(b.shared.lanes=0),Kh|=S,a.lanes=S,a.memoizedState=ue}F$=null}function boe(a,i){if(typeof a!=\"function\")throw Error(\"Invalid argument passed as callback. Expected a function. Instead received: \"+a);a.call(i)}function Rit(a,i){var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)boe(l[a],i)}function goe(a,i){var l=a.callbacks;if(l!==null)for(a.callbacks=null,a=0;a<l.length;a++)boe(l[a],i)}function xoe(a,i){var l=qf;H(C7,l,a),H(q2,i,a),qf=l|i.baseLanes}function vz(a){H(C7,qf,a),H(q2,q2.current,a)}function wz(a){qf=C7.current,re(q2,a),re(C7,a)}function Sh(a){var i=a.alternate;H(So,So.current&G2,a),H(bc,a,a),Xc===null&&(i===null||q2.current!==null||i.memoizedState!==null)&&(Xc=a)}function Ez(a){H(So,So.current,a),H(bc,a,a),Xc===null&&(Xc=a)}function voe(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 yk(a){for(var i=a;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Nj(l)||Uj(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(!Bce.has(i)&&(Bce.add(i),tu!==null)){for(var l=\"\",m=0;m<=Np;m++){var b=tu[m],w=m===Np?a:b;for(b=m+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 bk(){var a=W(gt);Pce.has(a)||(Pce.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 Az(a,i){if(AA)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 Sz(a,i,l,m,b,w){Mp=w,gt=i,tu=a!==null?a._debugHookTypes:null,Np=-1,AA=a!==null&&a.type!==i.type,(Object.prototype.toString.call(l)===\"[object AsyncFunction]\"||Object.prototype.toString.call(l)===\"[object AsyncGeneratorFunction]\")&&(w=W(gt),j$.has(w)||(j$.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?q$:tu!==null?Rce:$$,Zb=w=(i.mode&si)!==mt;var S=N$(l,m,b);if(Zb=!1,K2&&(S=Cz(i,l,m,b)),w){dt(!0);try{S=Cz(i,l,m,b)}finally{dt(!1)}}return woe(a,i),S}function woe(a,i){i._debugHookTypes=tu,i.dependencies===null?Op!==null&&(i.dependencies={lanes:0,firstContext:null,_debugThenableState:Op}):i.dependencies._debugThenableState=Op,ye.H=SA;var l=pn!==null&&pn.next!==null;if(Mp=0,tu=he=Fo=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.\"),_7=!1,EA=0,Op=null,l)throw Error(\"Rendered fewer hooks than expected. This may be caused by an accidental early return statement.\");a===null||zo||(a=a.dependencies,a!==null&&ak(a)&&(zo=!0)),xA?(xA=!1,a=!0):a=!1,a&&(i=W(i)||\"Unknown\",Ice.has(i)||j$.has(i)||(Ice.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 Cz(a,i,l,m){gt=a;var b=0;do{if(K2&&(Op=null),EA=0,K2=!1,b>=but)throw Error(\"Too many re-renders. React limits the number of renders to prevent an infinite loop.\");if(b+=1,AA=!1,Fo=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=Mce,w=N$(i,l,m)}while(K2);return w}function Mit(){var a=ye.H,i=a.useState()[0];return i=typeof i.then==\"function\"?k8(i):i,a=a.useState()[0],(pn!==null?pn.memoizedState:null)!==a&&(gt.flags|=1024),i}function Tz(){var a=k7!==0;return k7=0,a}function _z(a,i,l){i.updateQueue=a.updateQueue,i.flags=(i.mode&ll)!==mt?i.flags&-402655237:i.flags&-2053,a.lanes&=~l}function kz(a){if(_7){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}_7=!1}Mp=0,tu=Fo=pn=gt=null,Np=-1,he=null,K2=!1,EA=k7=0,Op=null}function Ri(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fo===null?gt.memoizedState=Fo=a:Fo=Fo.next=a,Fo}function Gr(){if(pn===null){var a=gt.alternate;a=a!==null?a.memoizedState:null}else a=pn.next;var i=Fo===null?gt.memoizedState:Fo.next;if(i!==null)Fo=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},Fo===null?gt.memoizedState=Fo=a:Fo=Fo.next=a}return Fo}function gk(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function k8(a){var i=EA;return EA+=1,Op===null&&(Op=soe()),a=uoe(Op,a,i),i=gt,(Fo===null?i.memoizedState:Fo.next)===null&&(i=i.alternate,ye.H=i!==null&&i.memoizedState!==null?q$:$$),a}function Th(a){if(a!==null&&typeof a==\"object\"){if(typeof a.then==\"function\")return k8(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 m=gt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(i={data:m.data.map(function(b){return b.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=gk(),gt.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0||AA)for(l=i.data[i.index]=Array(a),m=0;m<a;m++)l[m]=Qst;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 Bz(a,i,l){var m=Ri();if(l!==void 0){var b=l(i);if(Zb){dt(!0);try{l(i)}finally{dt(!1)}}}else b=i;return m.memoizedState=m.baseState=b,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},m.queue=a,a=a.dispatch=Hit.bind(null,gt,a),[m.memoizedState,a]}function l2(a){var i=Gr();return Iz(i,pn,a)}function Iz(a,i,l){var m=a.queue;if(m===null)throw Error(\"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)\");m.lastRenderedReducer=l;var b=a.baseQueue,w=m.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,m.pending=null}if(w=a.baseState,b===null)a.memoizedState=w;else{i=b.next;var B=S=null,z=null,q=i,ce=!1;do{var ue=q.lane&-536870913;if(ue!==q.lane?(Dt&ue)===ue:(Mp&ue)===ue){var te=q.revertLane;if(te===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),ue===Gb&&(ce=!0);else if((Mp&te)===te){q=q.next,te===Gb&&(ce=!0);continue}else ue={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},z===null?(B=z=ue,S=w):z=z.next=ue,gt.lanes|=te,Kh|=te;ue=q.action,Zb&&l(w,ue),w=q.hasEagerState?q.eagerState:l(w,ue)}else te={lane:ue,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},z===null?(B=z=te,S=w):z=z.next=te,gt.lanes|=ue,Kh|=ue;q=q.next}while(q!==null&&q!==i);if(z===null?S=w:z.next=B,!Ui(w,a.memoizedState)&&(zo=!0,ce&&(l=z2,l!==null)))throw l;a.memoizedState=w,a.baseState=S,a.baseQueue=z,m.lastRenderedState=w}return b===null&&(m.lanes=0),[a.memoizedState,m.dispatch]}function B8(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 m=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)||(zo=!0),i.memoizedState=w,i.baseQueue===null&&(i.baseState=w),l.lastRenderedState=w}return[w,m]}function Pz(a,i,l){var m=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||Eoe(m,i,w)}return b.memoizedState=w,l={value:w,getSnapshot:i},b.queue=l,Ek(Soe.bind(null,m,l,a),[a]),m.flags|=2048,d2(eu|Li,{destroy:void 0},Aoe.bind(null,m,l,w,i),null),w}function xk(a,i,l){var m=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,zo=!0),b=b.queue;var B=Soe.bind(null,m,b,a);if(vs(2048,Li,B,[a]),b.getSnapshot!==i||S||Fo!==null&&Fo.memoizedState.tag&eu){if(m.flags|=2048,d2(eu|Li,{destroy:void 0},Aoe.bind(null,m,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||Eoe(m,i,l)}return l}function Eoe(a,i,l){a.flags|=16384,a={getSnapshot:i,value:l},i=gt.updateQueue,i===null?(i=gk(),gt.updateQueue=i,i.stores=[a]):(l=i.stores,l===null?i.stores=[a]:l.push(a))}function Aoe(a,i,l,m){i.value=l,i.getSnapshot=m,Coe(i)&&Toe(a)}function Soe(a,i,l){return l(function(){Coe(i)&&(vf(2,\"updateSyncExternalStore()\",a),Toe(a))})}function Coe(a){var i=a.getSnapshot;a=a.value;try{var l=i();return!Ui(a,l)}catch{return!0}}function Toe(a){var i=ai(a,2);i!==null&&ro(i,a,2)}function Rz(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 Mz(a){a=Rz(a);var i=a.queue,l=Goe.bind(null,gt,i);return i.dispatch=l,[a.memoizedState,l]}function Oz(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=Wz.bind(null,gt,!0,l),l.dispatch=i,[a,i]}function _oe(a,i){var l=Gr();return koe(l,pn,a,i)}function koe(a,i,l,m){return a.baseState=l,Iz(a,pn,typeof m==\"function\"?m:il)}function Boe(a,i){var l=Gr();return pn!==null?koe(l,pn,a,i):(l.baseState=a,[a,l.queue.dispatch])}function Oit(a,i,l,m,b){if(kk(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,m(w),l=i.pending,l===null?(w.next=i.pending=w,Ioe(i,w)):(w.next=l.next,i.pending=l.next=w)}}function Ioe(a,i){var l=i.action,m=i.payload,b=a.state;if(i.isTransition){var w=ye.T,S={};S._updatedFibers=new Set,ye.T=S;try{var B=l(b,m),z=ye.S;z!==null&&z(S,B),Poe(a,i,B)}catch(q){Nz(a,i,q)}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,m),Poe(a,i,S)}catch(q){Nz(a,i,q)}}function Poe(a,i,l){l!==null&&typeof l==\"object\"&&typeof l.then==\"function\"?(ye.asyncTransitions++,l.then(_k,_k),l.then(function(m){Roe(a,i,m)},function(m){return Nz(a,i,m)}),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.\")):Roe(a,i,l)}function Roe(a,i,l){i.status=\"fulfilled\",i.value=l,Moe(i),a.state=l,i=a.pending,i!==null&&(l=i.next,l===i?a.pending=null:(l=l.next,i.next=l,Ioe(a,l)))}function Nz(a,i,l){var m=a.pending;if(a.pending=null,m!==null){m=m.next;do i.status=\"rejected\",i.reason=l,Moe(i),i=i.next;while(i!==m)}a.action=null}function Moe(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function Ooe(a,i){return i}function f2(a,i){if(nr){var l=mn.formState;if(l!==null){e:{var m=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===pq||w===gue?b:null}if(b){Pn=dc(b.nextSibling),m=b.data===pq;break e}}xh(m)}m=!1}m&&(i=l[0])}}return l=Ri(),l.memoizedState=l.baseState=i,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ooe,lastRenderedState:i},l.queue=m,l=Goe.bind(null,gt,m),m.dispatch=l,m=Rz(!1),w=Wz.bind(null,gt,!1,m.queue),m=Ri(),b={state:i,dispatch:null,action:a,pending:null},m.queue=b,l=Oit.bind(null,gt,b,w,l),b.dispatch=l,m.memoizedState=a,[i,l,!1]}function vk(a){var i=Gr();return Noe(i,pn,a)}function Noe(a,i,l){if(i=Iz(a,i,Ooe)[0],a=l2(il)[0],typeof i==\"object\"&&i!==null&&typeof i.then==\"function\")try{var m=k8(i)}catch(S){throw S===j2?A7:S}else m=i;i=Gr();var b=i.queue,w=b.dispatch;return l!==i.memoizedState&&(gt.flags|=2048,d2(eu|Li,{destroy:void 0},Nit.bind(null,b,l),null)),[m,w,a]}function Nit(a,i){a.action=i}function wk(a){var i=Gr(),l=pn;if(l!==null)return Noe(i,l,a);Gr(),i=i.memoizedState,l=Gr();var m=l.queue.dispatch;return l.memoizedState=a,[i,m,!1]}function d2(a,i,l,m){return a={tag:a,create:l,deps:m,inst:i,next:null},i=gt.updateQueue,i===null&&(i=gk(),gt.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=a.next=a:(m=l.next,l.next=a,a.next=m,i.lastEffect=a),a}function Uz(a){var i=Ri();return a={current:a},i.memoizedState=a}function Ob(a,i,l,m){var b=Ri();gt.flags|=a,b.memoizedState=d2(eu|i,{destroy:void 0},l,m===void 0?null:m)}function vs(a,i,l,m){var b=Gr();m=m===void 0?null:m;var w=b.memoizedState.inst;pn!==null&&m!==null&&Az(m,pn.memoizedState.deps)?b.memoizedState=d2(i,w,l,m):(gt.flags|=a,b.memoizedState=d2(eu|i,w,l,m))}function Ek(a,i){(gt.mode&ll)!==mt?Ob(276826112,Li,a,i):Ob(8390656,Li,a,i)}function Uit(a){gt.flags|=4;var i=gt.updateQueue;if(i===null)i=gk(),gt.updateQueue=i,i.events=[a];else{var l=i.events;l===null?i.events=[a]:l.push(a)}}function Dz(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 Ak(a){var i=Gr().memoizedState;return Uit({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 Hz(a,i){var l=4194308;return(gt.mode&ll)!==mt&&(l|=134217728),Ob(l,gc,a,i)}function Uoe(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 Lz(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 m=4194308;(gt.mode&ll)!==mt&&(m|=134217728),Ob(m,gc,Uoe.bind(null,i,a),l)}function Sk(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,Uoe.bind(null,i,a),l)}function Fz(a,i){return Ri().memoizedState=[a,i===void 0?null:i],a}function Ck(a,i){var l=Gr();i=i===void 0?null:i;var m=l.memoizedState;return i!==null&&Az(i,m[1])?m[0]:(l.memoizedState=[a,i],a)}function zz(a,i){var l=Ri();i=i===void 0?null:i;var m=a();if(Zb){dt(!0);try{a()}finally{dt(!1)}}return l.memoizedState=[m,i],m}function Tk(a,i){var l=Gr();i=i===void 0?null:i;var m=l.memoizedState;if(i!==null&&Az(i,m[1]))return m[0];if(m=a(),Zb){dt(!0);try{a()}finally{dt(!1)}}return l.memoizedState=[m,i],m}function jz(a,i){var l=Ri();return $z(l,a,i)}function Doe(a,i){var l=Gr();return Loe(l,pn.memoizedState,a,i)}function Hoe(a,i){var l=Gr();return pn===null?$z(l,a,i):Loe(l,pn.memoizedState,a,i)}function $z(a,i,l){return l===void 0||(Mp&1073741824)!==0&&(Dt&261930)===0?a.memoizedState=i:(a.memoizedState=l,a=Fae(),gt.lanes|=a,Kh|=a,l)}function Loe(a,i,l,m){return Ui(l,i)?l:q2.current!==null?(a=$z(a,l,m),Ui(a,i)||(zo=!0),a):(Mp&42)===0||(Mp&1073741824)!==0&&(Dt&261930)===0?(zo=!0,a.memoizedState=l):(a=Fae(),gt.lanes|=a,Kh|=a,i)}function _k(){ye.asyncTransitions--}function Foe(a,i,l,m,b){var w=zr.p;zr.p=w!==0&&w<ul?w:ul;var S=ye.T,B={};B._updatedFibers=new Set,ye.T=B,Wz(a,!1,i,l);try{var z=b(),q=ye.S;if(q!==null&&q(B,z),z!==null&&typeof z==\"object\"&&typeof z.then==\"function\"){ye.asyncTransitions++,z.then(_k,_k);var ce=Pit(z,m);I8(a,i,ce,fc(a))}else I8(a,i,m,fc(a))}catch(ue){I8(a,i,{then:function(){},status:\"rejected\",reason:ue},fc(a))}finally{zr.p=w,S!==null&&B.types!==null&&(S.types!==null&&S.types!==B.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=B.types),ye.T=S,S===null&&B._updatedFibers&&(a=B._updatedFibers.size,B._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 qz(a,i,l,m){if(a.tag!==5)throw Error(\"Expected the form instance to be a HostComponent. This is a bug in React.\");var b=zoe(a).queue;Bit(a),Foe(a,b,i,s1,l===null?p:function(){return joe(a),l(m)})}function zoe(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 joe(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=zoe(a);i.next===null&&(i=a.alternate.memoizedState),I8(a,i.next.queue,{},fc(a))}function Gz(){var a=Rz(!1);return a=Foe.bind(null,gt,a.queue,!0,!1),Ri().memoizedState=a,[!1,a]}function $oe(){var a=l2(il)[0],i=Gr().memoizedState;return[typeof a==\"boolean\"?a:k8(a),i]}function qoe(){var a=B8(il)[0],i=Gr().memoizedState;return[typeof a==\"boolean\"?a:k8(a),i]}function Nb(){return Hn(LA)}function Vz(){var a=Ri(),i=mn.identifierPrefix;if(nr){var l=kp,m=_p;l=(m&~(1<<32-Mi(m)-1)).toString(32)+l,i=\"_\"+i+\"R_\"+l,l=k7++,0<l&&(i+=\"H\"+l.toString(32)),i+=\"_\"}else l=yut++,i=\"_\"+i+\"r_\"+l.toString(32)+\"_\";return a.memoizedState=i}function Kz(){return Ri().memoizedState=Dit.bind(null,gt)}function Dit(a,i){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var m=fc(l),b=Eh(m),w=Ah(l,b,m);w!==null&&(vf(m,\"refresh()\",a),ro(w,l,m),C8(w,l,m)),a=pz(),i!=null&&w!==null&&console.error(\"The seed argument is not enabled outside experimental channels.\"),b.payload={cache:a};return}l=l.return}}function Hit(a,i,l){var m=arguments;typeof m[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().\"),m=fc(a);var b={lane:m,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};kk(a)?Voe(i,b):(b=tz(a,i,b,m),b!==null&&(vf(m,\"dispatch()\",a),ro(b,a,m),Koe(b,i,m)))}function Goe(a,i,l){var m=arguments;typeof m[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().\"),m=fc(a),I8(a,i,l,m)&&vf(m,\"setState()\",a)}function I8(a,i,l,m){var b={lane:m,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(kk(a))Voe(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 B=i.lastRenderedState,z=w(B,l);if(b.hasEagerState=!0,b.eagerState=z,Ui(z,B))return ek(a,i,b,0),mn===null&&X4(),!1}catch{}finally{ye.H=S}}if(l=tz(a,i,b,m),l!==null)return ro(l,a,m),Koe(l,i,m),!0}return!1}function Wz(a,i,l,m){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.\"),m={lane:2,revertLane:Sj(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},kk(a)){if(i)throw Error(\"Cannot update optimistic state while rendering.\");console.error(\"Cannot call startTransition while rendering.\")}else i=tz(a,l,m,2),i!==null&&(vf(2,\"setOptimistic()\",a),ro(i,a,2))}function kk(a){var i=a.alternate;return a===gt||i!==null&&i===gt}function Voe(a,i){K2=_7=!0;var l=a.pending;l===null?i.next=i:(i.next=l.next,l.next=i),a.pending=i}function Koe(a,i,l){if((l&4194048)!==0){var m=i.lanes;m&=a.pendingLanes,l|=m,i.lanes=l,ys(a,l)}}function Qz(a){if(a!==null&&typeof a!=\"function\"){var i=String(a);qce.has(i)||(qce.add(i),console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",a))}}function Zz(a,i,l,m){var b=a.memoizedState,w=l(m,b);if(a.mode&si){dt(!0);try{w=l(m,b)}finally{dt(!1)}}w===void 0&&(i=J(i)||\"Component\",Fce.has(i)||(Fce.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 Woe(a,i,l,m,b,w,S){var B=a.stateNode;if(typeof B.shouldComponentUpdate==\"function\"){if(l=B.shouldComponentUpdate(m,w,S),a.mode&si){dt(!0);try{l=B.shouldComponentUpdate(m,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?!g8(l,m)||!g8(b,w):!0}function Qoe(a,i,l,m){var b=i.state;typeof i.componentWillReceiveProps==\"function\"&&i.componentWillReceiveProps(l,m),typeof i.UNSAFE_componentWillReceiveProps==\"function\"&&i.UNSAFE_componentWillReceiveProps(l,m),i.state!==b&&(a=W(a)||\"Component\",Nce.has(a)||(Nce.add(a),console.error(\"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",a)),G$.enqueueReplaceState(i,i.state,null))}function Ub(a,i){var l=i;if(\"ref\"in i){l={};for(var m in i)m!==\"ref\"&&(l[m]=i[m])}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 Zoe(a){E$(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, \"+((V$||\"Anonymous\")+\".\");if(typeof a==\"object\"&&a!==null&&typeof a.environmentName==\"string\"){var m=a.environmentName;a=[`%o\\n\\n%s\\n\\n%s\\n`,a,i,l].slice(0),typeof a[0]==\"string\"?a.splice(0,1,Tue+\" \"+a[0],_ue,X7+m+X7,kue):a.splice(0,0,Tue,_ue,X7+m+X7,kue),a.unshift(console),m=Dut.apply(console.error,a),m()}else console.error(`%o\\n\\n%s\\n\\n%s\\n`,a,i,l)}function Yoe(a){E$(a)}function Bk(a,i){try{W2=i.source?W(i.source):null,V$=null;var l=i.value;if(ye.actQueue!==null)ye.thrownErrors.push(l);else{var m=a.onUncaughtError;m(l,{componentStack:i.stack})}}catch(b){setTimeout(function(){throw b})}}function Xoe(a,i,l){try{W2=l.source?W(l.source):null,V$=W(i);var m=a.onCaughtError;m(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function Jz(a,i,l){return l=Eh(l),l.tag=L$,l.payload={element:null},l.callback=function(){Te(i.source,Bk,a,i)},l}function Yz(a){return a=Eh(a),a.tag=L$,a}function Xz(a,i,l,m){var b=l.type.getDerivedStateFromError;if(typeof b==\"function\"){var w=m.value;a.payload=function(){return b(w)},a.callback=function(){Vne(l),Te(m.source,Xoe,i,l,m)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch==\"function\"&&(a.callback=function(){Vne(l),Te(m.source,Xoe,i,l,m),typeof b!=\"function\"&&(Qh===null?Qh=new Set([this]):Qh.add(this)),dut(this,m),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 Lit(a,i,l,m,b){if(l.flags|=32768,Df&&H8(a,b),m!==null&&typeof m==\"object\"&&typeof m.then==\"function\"){if(i=l.alternate,i!==null&&c2(i,l,b,!0),nr&&(Ff=!0),l=bc.current,l!==null){switch(l.tag){case 31:case 13:return Xc===null?Hk():l.alternate===null&&Kn===Dp&&(Kn=P7),l.flags&=-257,l.flags|=65536,l.lanes=b,m===S7?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([m]):i.add(m),vj(a,m,b)),!1;case 22:return l.flags|=65536,m===S7?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([m])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([m]):l.add(m)),vj(a,m,b)),!1}throw Error(\"Unexpected Suspense handler tag (\"+l.tag+\"). This is a bug in React.\")}return vj(a,m,b),Hk(),!1}if(nr)return Ff=!0,i=bc.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=b,m!==k$&&v8(sc(Error(\"There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.\",{cause:m}),l))):(m!==k$&&v8(sc(Error(\"There was an error while hydrating but React was able to recover by instead client rendering the entire root.\",{cause:m}),l)),a=a.current.alternate,a.flags|=65536,b&=-b,a.lanes|=b,m=sc(m,l),b=Jz(a.stateNode,m,b),hk(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:m}),l);if(IA===null?IA=[w]:IA.push(w),Kn!==Gh&&(Kn=Jb),i===null)return!0;m=sc(m,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,a=b&-b,l.lanes|=a,a=Jz(l.stateNode,m,a),hk(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=Yz(b),Xz(b,a,l,m),hk(l,b),!1}l=l.return}while(l!==null);return!1}function Oa(a,i,l,m){i.child=a===null?Sce(i,null,l,m):Qb(i,a.child,l,m)}function eae(a,i,l,m,b){l=l.render;var w=i.ref;if(\"ref\"in m){var S={};for(var B in m)B!==\"ref\"&&(S[B]=m[B])}else S=m;return Pb(i),m=Sz(a,i,l,S,w,b),B=Tz(),a!==null&&!zo?(_z(a,i,b),wp(a,i,b)):(nr&&B&&sz(i),i.flags|=1,Oa(a,i,m,b),i.child)}function tae(a,i,l,m,b){if(a===null){var w=l.type;return typeof w==\"function\"&&!nz(w)&&w.defaultProps===void 0&&l.compare===null?(l=_b(w),i.tag=15,i.type=l,tj(i,w),rae(a,i,l,m,b)):(a=oz(l.type,null,m,i,i.mode,b),a.ref=i.ref,a.return=i,i.child=a)}if(w=a.child,!sj(a,b)){var S=w.memoizedProps;if(l=l.compare,l=l!==null?l:g8,l(S,m)&&a.ref===i.ref)return wp(a,i,b)}return i.flags|=1,a=bp(w,m),a.ref=i.ref,a.return=i,i.child=a}function rae(a,i,l,m,b){if(a!==null){var w=a.memoizedProps;if(g8(w,m)&&a.ref===i.ref&&i.type===a.type)if(zo=!1,i.pendingProps=m=w,sj(a,b))(a.flags&131072)!==0&&(zo=!0);else return i.lanes=a.lanes,wp(a,i,b)}return ej(a,i,l,m,b)}function nae(a,i,l,m){var b=m.children,w=a!==null?a.memoizedState:null;if(a===null&&i.stateNode===null&&(i.stateNode={_visibility:aA,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode===\"hidden\"){if((i.flags&128)!==0){if(w=w!==null?w.baseLanes|l:l,a!==null){for(m=i.child=a.child,b=0;m!==null;)b=b|m.lanes|m.childLanes,m=m.sibling;m=b&~w}else m=0,i.child=null;return oae(a,i,w,l,m)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&uk(i,w!==null?w.cachePool:null),w!==null?xoe(i,w):vz(i),voe(i);else return m=i.lanes=536870912,oae(a,i,w!==null?w.baseLanes|l:l,l,m)}else w!==null?(uk(i,w.cachePool),xoe(i,w),Ch(i),i.memoizedState=null):(a!==null&&uk(i,null),vz(i),Ch(i));return Oa(a,i,b,l),i.child}function P8(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:aA,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function oae(a,i,l,m,b){var w=yz();return w=w===null?null:{parent:Ho._currentValue,pool:w},i.memoizedState={baseLanes:l,cachePool:w},a!==null&&uk(i,null),vz(i),voe(i),a!==null&&c2(a,i,m,!0),i.childLanes=b,null}function Ik(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=Rk({mode:i.mode,children:i.children},a.mode),i.ref=a.ref,a.child=i,i.return=a,i}function aae(a,i,l){return Qb(i,a.child,null,l),a=Ik(i,i.pendingProps),a.flags|=2,lc(i),i.memoizedState=null,a}function Fit(a,i,l){var m=i.pendingProps,b=(i.flags&128)!==0;if(i.flags&=-129,a===null){if(nr){if(m.mode===\"hidden\")return a=Ik(i,m),i.lanes=536870912,P8(null,a);if(Ez(i),(a=Pn)?(l=Iie(a,Jc),l=l!==null&&l.data===n1?l:null,l!==null&&(m={dehydrated:l,treeContext:Jne(),retryLane:536870912,hydrationErrors:null},i.memoizedState=m,m=Qne(l),m.return=i,i.child=m,Da=i,Pn=null)):l=null,l===null)throw nk(i,a),xh(i);return i.lanes=536870912,null}return Ik(i,m)}var w=a.memoizedState;if(w!==null){var S=w.dehydrated;if(Ez(i),b)if(i.flags&256)i.flags&=-257,i=aae(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(Xne(),(l&536870912)!==0&&Dk(i),zo||c2(a,i,l,!1),b=(l&a.childLanes)!==0,zo||b){if(m=mn,m!==null&&(S=Pr(m,l),S!==0&&S!==w.retryLane))throw w.retryLane=S,ai(a,S),ro(m,a,S),K$;Hk(),i=aae(a,i,l)}else a=w.treeContext,Pn=dc(S.nextSibling),Da=i,nr=!0,Hh=null,Ff=!1,yc=null,Jc=!1,a!==null&&Yne(i,a),i=Ik(i,m),i.flags|=4096;return i}return w=a.child,m={mode:m.mode,children:m.children},(l&536870912)!==0&&(l&a.lanes)!==0&&Dk(i),a=bp(w,m),a.ref=i.ref,i.child=a,a.return=i,a}function Pk(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 ej(a,i,l,m,b){if(l.prototype&&typeof l.prototype.render==\"function\"){var w=J(l)||\"Unknown\";Gce[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),Gce[w]=!0)}return i.mode&si&&fl.recordLegacyContextWarning(i,null),a===null&&(tj(i,i.type),l.contextTypes&&(w=J(l)||\"Unknown\",Kce[w]||(Kce[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=Sz(a,i,l,m,void 0,b),m=Tz(),a!==null&&!zo?(_z(a,i,b),wp(a,i,b)):(nr&&m&&sz(i),i.flags|=1,Oa(a,i,l,b),i.child)}function iae(a,i,l,m,b,w){return Pb(i),Np=-1,AA=a!==null&&a.type!==i.type,i.updateQueue=null,l=Cz(i,m,l,b),woe(a,i),m=Tz(),a!==null&&!zo?(_z(a,i,w),wp(a,i,w)):(nr&&m&&sz(i),i.flags|=1,Oa(a,i,l,w),i.child)}function sae(a,i,l,m,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 B=b&-b;if(i.lanes|=B,S=mn,S===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");B=Yz(B),Xz(B,S,i,sc(w,i)),hk(i,B)}if(Pb(i),i.stateNode===null){if(S=Dh,w=l.contextType,\"contextType\"in l&&w!==null&&(w===void 0||w.$$typeof!==Of)&&!$ce.has(l)&&($ce.add(l),B=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===Wj?\" 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\",B)),typeof w==\"object\"&&w!==null&&(S=Hn(w)),w=new l(m,S),i.mode&si){dt(!0);try{w=new l(m,S)}finally{dt(!1)}}if(S=i.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=G$,i.stateNode=w,w._reactInternals=i,w._reactInternalInstance=Oce,typeof l.getDerivedStateFromProps==\"function\"&&S===null&&(S=J(l)||\"Component\",Uce.has(S)||(Uce.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 z=B=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?B=\"componentWillReceiveProps\":typeof w.UNSAFE_componentWillReceiveProps==\"function\"&&(B=\"UNSAFE_componentWillReceiveProps\"),typeof w.componentWillUpdate==\"function\"&&w.componentWillUpdate.__suppressDeprecationWarning!==!0?z=\"componentWillUpdate\":typeof w.UNSAFE_componentWillUpdate==\"function\"&&(z=\"UNSAFE_componentWillUpdate\"),S!==null||B!==null||z!==null){w=J(l)||\"Component\";var q=typeof l.getDerivedStateFromProps==\"function\"?\"getDerivedStateFromProps()\":\"getSnapshotBeforeUpdate()\";Hce.has(w)||(Hce.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,q,S!==null?`\\n  `+S:\"\",B!==null?`\\n  `+B:\"\",z!==null?`\\n  `+z:\"\"))}}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&&!jce.has(l)&&(jce.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&&!zce.has(l)&&(zce.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),B=w.props!==m,w.props!==void 0&&B&&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\"||Dce.has(l)||(Dce.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),(B=w.state)&&(typeof B!=\"object\"||oa(B))&&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=m,w.state=i.memoizedState,w.refs={},gz(i),S=l.contextType,w.context=typeof S==\"object\"&&S!==null?Hn(S):Dh,w.state===m&&(S=J(l)||\"Component\",Lce.has(S)||(Lce.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\"&&(Zz(i,l,S,m),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\"),G$.enqueueReplaceState(w,w.state,null)),_8(i,m,w,b),T8(),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;B=Ub(l,ce),w.props=B;var ue=w.context;z=l.contextType,S=Dh,typeof z==\"object\"&&z!==null&&(S=Hn(z)),q=l.getDerivedStateFromProps,z=typeof q==\"function\"||typeof w.getSnapshotBeforeUpdate==\"function\",ce=i.pendingProps!==ce,z||typeof w.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof w.componentWillReceiveProps!=\"function\"||(ce||ue!==S)&&Qoe(i,w,m,S),qh=!1;var te=i.memoizedState;w.state=te,_8(i,m,w,b),T8(),ue=i.memoizedState,ce||te!==ue||qh?(typeof q==\"function\"&&(Zz(i,l,q,m),ue=i.memoizedState),(B=qh||Woe(i,l,B,m,te,ue,S))?(z||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=m,i.memoizedState=ue),w.props=m,w.state=ue,w.context=S,w=B):(typeof w.componentDidMount==\"function\"&&(i.flags|=4194308),(i.mode&ll)!==mt&&(i.flags|=134217728),w=!1)}else{w=i.stateNode,xz(a,i),S=i.memoizedProps,z=Ub(l,S),w.props=z,q=i.pendingProps,te=w.context,ue=l.contextType,B=Dh,typeof ue==\"object\"&&ue!==null&&(B=Hn(ue)),ce=l.getDerivedStateFromProps,(ue=typeof ce==\"function\"||typeof w.getSnapshotBeforeUpdate==\"function\")||typeof w.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof w.componentWillReceiveProps!=\"function\"||(S!==q||te!==B)&&Qoe(i,w,m,B),qh=!1,te=i.memoizedState,w.state=te,_8(i,m,w,b),T8();var pe=i.memoizedState;S!==q||te!==pe||qh||a!==null&&a.dependencies!==null&&ak(a.dependencies)?(typeof ce==\"function\"&&(Zz(i,l,ce,m),pe=i.memoizedState),(z=qh||Woe(i,l,z,m,te,pe,B)||a!==null&&a.dependencies!==null&&ak(a.dependencies))?(ue||typeof w.UNSAFE_componentWillUpdate!=\"function\"&&typeof w.componentWillUpdate!=\"function\"||(typeof w.componentWillUpdate==\"function\"&&w.componentWillUpdate(m,pe,B),typeof w.UNSAFE_componentWillUpdate==\"function\"&&w.UNSAFE_componentWillUpdate(m,pe,B)),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=m,i.memoizedState=pe),w.props=m,w.state=pe,w.context=B,w=z):(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(B=w,Pk(a,i),S=(i.flags&128)!==0,B||S){if(B=i.stateNode,It(i),S&&typeof l.getDerivedStateFromError!=\"function\")l=null,Di=-1;else if(l=lce(B),i.mode&si){dt(!0);try{lce(B)}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=B.state,a=i.child}else a=wp(a,i,b);return b=i.stateNode,w&&b.props!==m&&(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 cae(a,i,l,m){return Ib(),i.flags|=256,Oa(a,i,l,m),i.child}function tj(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\",Wce[a]||(console.error(\"%s: Function components do not support getDerivedStateFromProps.\",a),Wce[a]=!0)),typeof i.contextType==\"object\"&&i.contextType!==null&&(i=J(i)||\"Unknown\",Vce[i]||(console.error(\"%s: Function components do not support contextType.\",i),Vce[i]=!0))}function rj(a){return{baseLanes:a,cachePool:ioe()}}function nj(a,i,l){return a=a!==null?a.childLanes&~l:0,i&&(a|=Cs),a}function uae(a,i,l){var m,b=i.pendingProps;s(i)&&(i.flags|=128);var w=!1,S=(i.flags&128)!==0;if((m=S)||(m=a!==null&&a.memoizedState===null?!1:(So.current&wA)!==0),m&&(w=!0,i.flags&=-129),m=(i.flags&32)!==0,i.flags&=-33,a===null){if(nr){if(w?Sh(i):Ch(i),(a=Pn)?(l=Iie(a,Jc),l=l!==null&&l.data!==n1?l:null,l!==null&&(m={dehydrated:l,treeContext:Jne(),retryLane:536870912,hydrationErrors:null},i.memoizedState=m,m=Qne(l),m.return=i,i.child=m,Da=i,Pn=null)):l=null,l===null)throw nk(i,a),xh(i);return Uj(l)?i.lanes=32:i.lanes=536870912,null}var B=b.children;if(b=b.fallback,w){Ch(i);var z=i.mode;return B=Rk({mode:\"hidden\",children:B},z),b=kb(b,z,l,null),B.return=i,b.return=i,B.sibling=b,i.child=B,b=i.child,b.memoizedState=rj(l),b.childLanes=nj(a,m,l),i.memoizedState=W$,P8(null,b)}return Sh(i),oj(i,B)}var q=a.memoizedState;if(q!==null){var ce=q.dehydrated;if(ce!==null){if(S)i.flags&256?(Sh(i),i.flags&=-257,i=aj(a,i,l)):i.memoizedState!==null?(Ch(i),i.child=a.child,i.flags|=128,i=null):(Ch(i),B=b.fallback,z=i.mode,b=Rk({mode:\"visible\",children:b.children},z),B=kb(B,z,l,null),B.flags|=2,b.return=i,B.return=i,b.sibling=B,i.child=b,Qb(i,a.child,null,l),b=i.child,b.memoizedState=rj(l),b.childLanes=nj(a,m,l),i.memoizedState=W$,i=P8(null,b));else if(Sh(i),Xne(),(l&536870912)!==0&&Dk(i),Uj(ce)){if(m=ce.nextSibling&&ce.nextSibling.dataset,m){B=m.dgst;var ue=m.msg;z=m.stck;var te=m.cstck}w=ue,m=B,b=z,ce=te,B=w,z=ce,B=Error(B||\"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.\"),B.stack=b||\"\",B.digest=m,m=z===void 0?null:z,b={value:B,source:null,stack:m},typeof m==\"string\"&&_$.set(B,b),v8(b),i=aj(a,i,l)}else if(zo||c2(a,i,l,!1),m=(l&a.childLanes)!==0,zo||m){if(m=mn,m!==null&&(b=Pr(m,l),b!==0&&b!==q.retryLane))throw q.retryLane=b,ai(a,b),ro(m,a,b),K$;Nj(ce)||Hk(),i=aj(a,i,l)}else Nj(ce)?(i.flags|=192,i.child=a.child,i=null):(a=q.treeContext,Pn=dc(ce.nextSibling),Da=i,nr=!0,Hh=null,Ff=!1,yc=null,Jc=!1,a!==null&&Yne(i,a),i=oj(i,b.children),i.flags|=4096);return i}}return w?(Ch(i),B=b.fallback,z=i.mode,te=a.child,ce=te.sibling,b=bp(te,{mode:\"hidden\",children:b.children}),b.subtreeFlags=te.subtreeFlags&65011712,ce!==null?B=bp(ce,B):(B=kb(B,z,l,null),B.flags|=2),B.return=i,b.return=i,b.sibling=B,i.child=b,P8(null,b),b=i.child,B=a.child.memoizedState,B===null?B=rj(l):(z=B.cachePool,z!==null?(te=Ho._currentValue,z=z.parent!==te?{parent:te,pool:te}:z):z=ioe(),B={baseLanes:B.baseLanes|l,cachePool:z}),b.memoizedState=B,b.childLanes=nj(a,m,l),i.memoizedState=W$,P8(a.child,b)):(q!==null&&(l&62914560)===l&&(l&a.lanes)!==0&&Dk(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&&(m=i.deletions,m===null?(i.deletions=[a],i.flags|=16):m.push(a)),i.child=l,i.memoizedState=null,l)}function oj(a,i){return i=Rk({mode:\"visible\",children:i},a.mode),i.return=a,a.child=i}function Rk(a,i){return a=v(22,a,null,i),a.lanes=0,a}function aj(a,i,l){return Qb(i,a.child,null,l),a=oj(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function lae(a,i,l){a.lanes|=i;var m=a.alternate;m!==null&&(m.lanes|=i),fz(a.return,i,l)}function ij(a,i,l,m,b,w){var S=a.memoizedState;S===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:m,tail:l,tailMode:b,treeForkCount:w}:(S.isBackwards=i,S.rendering=null,S.renderingStartTime=0,S.last=m,S.tail=l,S.tailMode=b,S.treeForkCount=w)}function fae(a,i,l){var m=i.pendingProps,b=m.revealOrder,w=m.tail,S=m.children,B=So.current;if((m=(B&wA)!==0)?(B=B&G2|wA,i.flags|=128):B&=G2,H(So,B,i),B=b??\"null\",b!==\"forwards\"&&b!==\"unstable_legacy-backwards\"&&b!==\"together\"&&b!==\"independent\"&&!Qce[B])if(Qce[B]=!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);B=w??\"null\",I7[B]||(w==null?(b===\"forwards\"||b===\"backwards\"||b===\"unstable_legacy-backwards\")&&(I7[B]=!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\"?(I7[B]=!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\"&&(I7[B]=!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(B=0;B<S.length;B++)if(!yoe(S[B],B))break e}else if(B=G(S),typeof B==\"function\"){if(B=B.call(S))for(var z=B.next(),q=0;!z.done;z=B.next()){if(!yoe(z.value,q))break e;q++}}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=iA):S=0,!m&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&lae(a,l,i);else if(a.tag===19)lae(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&&yk(a)===null&&(b=l),l=l.sibling;l=b,l===null?(b=i.child,i.child=null):(b=l.sibling,l.sibling=null),ij(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&&yk(a)===null){i.child=b;break}a=b.sibling,b.sibling=l,l=b,b=a}ij(i,!0,l,null,w,S);break;case\"together\":ij(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 sj(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&ak(a)))}function zit(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 m=i.stateNode;m.effectDuration=-0,m.passiveEffectDuration=-0;break;case 31:if(i.memoizedState!==null)return i.flags|=128,Ez(i),null;break;case 13:if(m=i.memoizedState,m!==null)return m.dehydrated!==null?(Sh(i),i.flags|=128,null):(l&i.child.childLanes)!==0?uae(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(m=(l&i.childLanes)!==0,m||(c2(a,i,l,!1),m=(l&i.childLanes)!==0),b){if(m)return fae(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),m)break;return null;case 22:return i.lanes=0,nae(a,i,l,i.pendingProps);case 24:vh(i,Ho,a.memoizedState.cache)}return wp(a,i,l)}function cj(a,i,l){if(i._debugNeedsRemount&&a!==null){l=oz(i.type,i.key,i.pendingProps,i._debugOwner||null,i.mode,i.lanes),l._debugStack=i._debugStack,l._debugTask=i._debugTask;var m=i.return;if(m===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===m.child)m.child=l;else{var b=m.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=m.deletions,i===null?(m.deletions=[a],m.flags|=16):i.push(a),l.flags|=2,l}if(a!==null)if(a.memoizedProps!==i.pendingProps||i.type!==a.type)zo=!0;else{if(!sj(a,l)&&(i.flags&128)===0)return zo=!1,zit(a,i,l);zo=(a.flags&131072)!==0}else zo=!1,(m=nr)&&(gh(),m=(i.flags&1048576)!==0),m&&(m=i.index,gh(),Zne(i,iA,m));switch(i.lanes=0,i.tag){case 16:e:if(m=i.pendingProps,a=wh(i.elementType),i.type=a,typeof a==\"function\")nz(a)?(m=Ub(a,m),i.tag=1,i.type=a=_b(a),i=sae(null,i,a,m,l)):(i.tag=0,tj(i,a),i.type=a=_b(a),i=ej(null,i,a,m,l));else{if(a!=null){if(b=a.$$typeof,b===K8){i.tag=11,i.type=a=rz(a),i=eae(null,i,a,m,l);break e}else if(b===Yk){i.tag=14,i=tae(null,i,a,m,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 ej(a,i,i.type,i.pendingProps,l);case 1:return m=i.type,b=Ub(m,i.pendingProps),sae(a,i,m,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.\");m=i.pendingProps;var w=i.memoizedState;b=w.element,xz(a,i),_8(i,m,null,l);var S=i.memoizedState;if(m=S.cache,vh(i,Ho,m),m!==w.cache&&dz(i,[Ho],l,!0),T8(),m=S.element,w.isDehydrated)if(w={element:m,isDehydrated:!1,cache:S.cache},i.updateQueue.baseState=w,i.memoizedState=w,i.flags&256){i=cae(a,i,m,l);break e}else if(m!==b){b=sc(Error(\"This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.\"),i),v8(b),i=cae(a,i,m,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,Ff=!1,yc=null,Jc=!0,l=Sce(i,null,m,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ib(),m===b){i=wp(a,i,l);break e}Oa(a,i,m,l)}i=i.child}return i;case 26:return Pk(a,i),a===null?(l=Uie(i.type,null,i.pendingProps,null))?i.memoizedState=l:nr||(l=i.type,a=i.pendingProps,m=A(Ph.current),m=jk(m).createElement(l),m[Ua]=i,m[Oi]=a,Na(m,l,a),Ne(m),i.stateNode=m):i.memoizedState=Uie(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return L(i),a===null&&nr&&(m=A(Ph.current),b=D(),m=i.stateNode=Oie(i.type,i.pendingProps,m,b,!1),Ff||(b=Eie(m,i.type,i.pendingProps,b),b!==null&&(Bb(i,0).serverProps=b)),Da=i,Jc=!0,b=Pn,Bh(i.type)?(bq=b,Pn=dc(m.firstChild)):Pn=b),Oa(a,i,i.pendingProps.children,l),Pk(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&nr&&(w=D(),m=WF(i.type,w.ancestorInfo),b=Pn,(S=!b)||(S=Bst(b,i.type,i.pendingProps,Jc),S!==null?(i.stateNode=S,Ff||(w=Eie(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&&(m&&nk(i,b),xh(i))),L(i),b=i.type,w=i.pendingProps,S=a!==null?a.memoizedProps:null,m=w.children,Mj(b,w)?m=null:S!==null&&Mj(b,S)&&(i.flags|=32),i.memoizedState!==null&&(b=Sz(a,i,Mit,null,null,l),LA._currentValue=b),Pk(a,i),Oa(a,i,m,l),i.child;case 6:return a===null&&nr&&(l=i.pendingProps,a=D(),m=a.ancestorInfo.current,l=m!=null?K4(l,m.tag,a.ancestorInfo.implicitRootScope):!0,a=Pn,(m=!a)||(m=Ist(a,i.pendingProps,Jc),m!==null?(i.stateNode=m,Da=i,Pn=null,m=!0):m=!1,m=!m),m&&(l&&nk(i,a),xh(i))),null;case 13:return uae(a,i,l);case 4:return T(i,i.stateNode.containerInfo),m=i.pendingProps,a===null?i.child=Qb(i,null,m,l):Oa(a,i,m,l),i.child;case 11:return eae(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,m=i.stateNode,m.effectDuration=-0,m.passiveEffectDuration=-0,Oa(a,i,i.pendingProps.children,l),i.child;case 10:return m=i.type,b=i.pendingProps,w=b.value,\"value\"in b||Zce||(Zce=!0,console.error(\"The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?\")),vh(i,m,w),Oa(a,i,b.children,l),i.child;case 9:return b=i.type._context,m=i.pendingProps.children,typeof m!=\"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),m=N$(m,b,void 0),i.flags|=1,Oa(a,i,m,l),i.child;case 14:return tae(a,i,i.type,i.pendingProps,l);case 15:return rae(a,i,i.type,i.pendingProps,l);case 19:return fae(a,i,l);case 31:return Fit(a,i,l);case 22:return nae(a,i,l,i.pendingProps);case 24:return Pb(i),m=Hn(Ho),a===null?(b=yz(),b===null&&(b=mn,w=pz(),b.pooledCache=w,Rb(w),w!==null&&(b.pooledCacheLanes|=l),b=w),i.memoizedState={parent:m,cache:b},gz(i),vh(i,Ho,b)):((a.lanes&l)!==0&&(xz(a,i),_8(i,null,null,l),T8()),b=a.memoizedState,w=i.memoizedState,b.parent!==m?(b={parent:m,cache:m},i.memoizedState=b,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=b),vh(i,Ho,m)):(m=w.cache,vh(i,Ho,m),m!==b.cache&&dz(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 uj(a,i,l,m,b){if((i=(a.mode&cut)!==mt)&&(i=!1),i){if(a.flags|=16777216,(b&335544128)===b)if(a.stateNode.complete)a.flags|=8192;else if(qae())a.flags|=8192;else throw Wb=S7,D$}else a.flags&=-16777217}function dae(a,i){if(i.type!==\"stylesheet\"||(i.state.loading&ru)!==i1)a.flags&=-16777217;else if(a.flags|=16777216,!zie(i))if(qae())a.flags|=8192;else throw Wb=S7,D$}function Mk(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?jr():536870912,a.lanes|=i,e1|=i)}function R8(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 m=null;l!==null;)l.alternate!==null&&(m=l),l=l.sibling;m===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function An(a){var i=a.alternate!==null&&a.alternate.child===a.child,l=0,m=0;if(i)if((a.mode&Nt)!==mt){for(var b=a.selfBaseDuration,w=a.child;w!==null;)l|=w.lanes|w.childLanes,m|=w.subtreeFlags&65011712,m|=w.flags&65011712,b+=w.treeBaseDuration,w=w.sibling;a.treeBaseDuration=b}else for(b=a.child;b!==null;)l|=b.lanes|b.childLanes,m|=b.subtreeFlags&65011712,m|=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,m|=S.subtreeFlags,m|=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,m|=b.subtreeFlags,m|=b.flags,b.return=a,b=b.sibling;return a.subtreeFlags|=m,a.childLanes=l,i}function jit(a,i,l){var m=i.pendingProps;switch(cz(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,m=null,a!==null&&(m=a.memoizedState.cache),i.memoizedState.cache!==m&&(i.flags|=2048),xp(Ho,i),R(i),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(a===null||a.child===null)&&(s2(i)?(lz(),Ep(i)):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,uz())),An(i),null;case 26:var b=i.type,w=i.memoizedState;return a===null?(Ep(i),w!==null?(An(i),dae(i,w)):(An(i),uj(i,b,null,m,l))):w?w!==a.memoizedState?(Ep(i),An(i),dae(i,w)):(An(i),i.flags&=-16777217):(a=a.memoizedProps,a!==m&&Ep(i),An(i),uj(i,b,a,m,l)),null;case 27:if(V(i),l=A(Ph.current),b=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==m&&Ep(i);else{if(!m){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)?eoe(i,a):(a=Oie(b,m,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!==m&&Ep(i);else{if(!m){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))eoe(i,S);else{switch(w=A(Ph.current),WF(b,S.ancestorInfo),S=S.context,w=jk(w),S){case nv:w=w.createElementNS(_2,b);break;case Z7:w=w.createElementNS(a7,b);break;default:switch(b){case\"svg\":w=w.createElementNS(_2,b);break;case\"math\":w=w.createElementNS(a7,b);break;case\"script\":w=w.createElement(\"div\"),w.innerHTML=\"<script><\\\\/script>\",w=w.removeChild(w.firstChild);break;case\"select\":w=typeof m.is==\"string\"?w.createElement(\"select\",{is:m.is}):w.createElement(\"select\"),m.multiple?w.multiple=!0:m.size&&(w.size=m.size);break;default:w=typeof m.is==\"string\"?w.createElement(b,{is:m.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(vue,b)||(vue[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]=m;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,m),b){case\"button\":case\"input\":case\"select\":case\"textarea\":m=!!m.autoFocus;break e;case\"img\":m=!0;break e;default:m=!1}m&&Ep(i)}}return An(i),uj(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,l),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==m&&Ep(i);else{if(typeof m!=\"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=!Ff,m=null,w=Da,w!==null)switch(w.tag){case 3:b&&(b=Rie(a,l,m),b!==null&&(Bb(i,0).serverProps=b));break;case 27:case 5:m=w.memoizedProps,b&&(b=Rie(a,l,m),b!==null&&(Bb(i,0).serverProps=b))}a[Ua]=i,a=!!(a.nodeValue===l||m!==null&&m.suppressHydrationWarning===!0||bie(a.nodeValue,l)),a||xh(i,!0)}else b=l.ancestorInfo.current,b!=null&&K4(m,b.tag,l.ancestorInfo.implicitRootScope),a=jk(a).createTextNode(m),a[Ua]=i,i.stateNode=a}return An(i),null;case 31:if(l=i.memoizedState,a===null||a.memoizedState!==null){if(m=s2(i),l!==null){if(a===null){if(!m)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 lz(),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=uz(),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(m=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(b=m,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 lz(),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=uz(),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&&A8(i),i):(l=m!==null,a=a!==null&&a.memoizedState!==null,l&&(m=i.child,b=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(b=m.alternate.memoizedState.cachePool.pool),w=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(w=m.memoizedState.cachePool.pool),w!==b&&(m.flags|=2048)),l!==a&&l&&(i.child.flags|=8192),Mk(i,i.updateQueue),An(i),(i.mode&Nt)!==mt&&l&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration)),null);case 4:return R(i),a===null&&Tj(i.stateNode.containerInfo),An(i),null;case 10:return xp(i.type,i),An(i),null;case 19:if(re(So,i),m=i.memoizedState,m===null)return An(i),null;if(b=(i.flags&128)!==0,w=m.rendering,w===null)if(b)R8(m,!1);else{if(Kn!==Dp||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(w=yk(a),w!==null){for(i.flags|=128,R8(m,!1),a=w.updateQueue,i.updateQueue=a,Mk(i,a),i.subtreeFlags=0,a=l,l=i.child;l!==null;)Wne(l,a),l=l.sibling;return H(So,So.current&G2|wA,i),nr&&gp(i,m.treeForkCount),i.child}a=a.sibling}m.tail!==null&&ma()>D7&&(i.flags|=128,b=!0,R8(m,!1),i.lanes=4194304)}else{if(!b)if(a=yk(w),a!==null){if(i.flags|=128,b=!0,a=a.updateQueue,i.updateQueue=a,Mk(i,a),R8(m,!0),m.tail===null&&m.tailMode===\"hidden\"&&!w.alternate&&!nr)return An(i),null}else 2*ma()-m.renderingStartTime>D7&&l!==536870912&&(i.flags|=128,b=!0,R8(m,!1),i.lanes=4194304);m.isBackwards?(w.sibling=i.child,i.child=w):(a=m.last,a!==null?a.sibling=w:i.child=w,m.last=w)}return m.tail!==null?(a=m.tail,m.rendering=a,m.tail=a.sibling,m.renderingStartTime=ma(),a.sibling=null,l=So.current,l=b?l&G2|wA:l&G2,H(So,l,i),nr&&gp(i,m.treeForkCount),a):(An(i),null);case 22:case 23:return lc(i),wz(i),m=i.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(i.flags|=8192):m&&(i.flags|=8192),m?(l&536870912)!==0&&(i.flags&128)===0&&(An(i),i.subtreeFlags&6&&(i.flags|=8192)):An(i),l=i.updateQueue,l!==null&&Mk(i,l.retryQueue),l=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),m=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(m=i.memoizedState.cachePool.pool),m!==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 $it(a,i){switch(cz(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&Nt)!==mt&&A8(i),i):null;case 3:return xp(Ho,i),R(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&&A8(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&&A8(i),i):null;case 19:return re(So,i),null;case 4:return R(i),null;case 10:return xp(i.type,i),null;case 22:case 23:return lc(i),wz(i),a!==null&&re(Vb,i),a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&Nt)!==mt&&A8(i),i):null;case 24:return xp(Ho,i),null;case 25:return null;default:return null}}function pae(a,i){switch(cz(i),i.tag){case 3:xp(Ho,i),R(i);break;case 26:case 27:case 5:V(i);break;case 4:R(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),wz(i),a!==null&&re(Vb,i);break;case 24:xp(Ho,i)}}function _f(a){return(a.mode&Nt)!==mt}function mae(a,i){_f(a)?(Tf(),M8(i,a),Cf()):M8(i,a)}function lj(a,i,l){_f(a)?(Tf(),p2(l,a,i),Cf()):p2(l,a,i)}function M8(a,i){try{var l=i.updateQueue,m=l!==null?l.lastEffect:null;if(m!==null){var b=m.next;l=b;do{if((l.tag&a)===a&&(m=void 0,(a&Hi)!==T7&&(ev=!0),m=Te(i,put,l),(a&Hi)!==T7&&(ev=!1),m!==void 0&&typeof m!=\"function\")){var w=void 0;w=(l.tag&gc)!==0?\"useLayoutEffect\":(l.tag&Hi)!==0?\"useInsertionEffect\":\"useEffect\";var S=void 0;S=m===null?\" You returned null. If your effect does not require clean up, return undefined (or nothing).\":typeof m.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: \"+m,Te(i,function(B,z){console.error(\"%s must not return anything besides a function, which is used for clean-up.%s\",B,z)},w,S)}l=l.next}while(l!==b)}}catch(B){Fr(i,i.return,B)}}function p2(a,i,l){try{var m=i.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var w=b.next;m=w;do{if((m.tag&a)===a){var S=m.inst,B=S.destroy;B!==void 0&&(S.destroy=void 0,(a&Hi)!==T7&&(ev=!0),b=i,Te(b,mut,b,l,B),(a&Hi)!==T7&&(ev=!1))}m=m.next}while(m!==w)}}catch(z){Fr(i,i.return,z)}}function hae(a,i){_f(a)?(Tf(),M8(i,a),Cf()):M8(i,a)}function fj(a,i,l){_f(a)?(Tf(),p2(l,a,i),Cf()):p2(l,a,i)}function yae(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,goe,i,l)}catch(m){Fr(a,a.return,m)}}}function qit(a,i,l){return a.getSnapshotBeforeUpdate(i,l)}function Git(a,i){var l=i.memoizedProps,m=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,qit,i,b,m);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){Fr(a,a.return,S)}}function bae(a,i,l){l.props=Ub(a.type,a.memoizedProps),l.state=a.memoizedState,_f(a)?(Tf(),Te(a,yce,a,i,l),Cf()):Te(a,yce,a,i,l)}function Vit(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 O8(a,i){try{Te(a,Vit,a)}catch(l){Fr(a,i,l)}}function kf(a,i){var l=a.ref,m=a.refCleanup;if(l!==null)if(typeof m==\"function\")try{if(_f(a))try{Tf(),Te(a,m)}finally{Cf(a)}else Te(a,m)}catch(b){Fr(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){Fr(a,i,b)}else l.current=null}function gae(a,i,l,m){var b=a.memoizedProps,w=b.id,S=b.onCommit;b=b.onRender,i=i===null?\"mount\":\"update\",v7&&(i=\"nested-update\"),typeof b==\"function\"&&b(w,i,a.actualDuration,a.treeBaseDuration,a.actualStartTime,l),typeof S==\"function\"&&S(w,i,m,l)}function Kit(a,i,l,m){var b=a.memoizedProps;a=b.id,b=b.onPostCommit,i=i===null?\"mount\":\"update\",v7&&(i=\"nested-update\"),typeof b==\"function\"&&b(a,i,m,l)}function xae(a){var i=a.type,l=a.memoizedProps,m=a.stateNode;try{Te(a,bst,m,i,l,a)}catch(b){Fr(a,a.return,b)}}function dj(a,i,l){try{Te(a,xst,a.stateNode,a.type,l,i,a)}catch(m){Fr(a,a.return,m)}}function vae(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Bh(a.type)||a.tag===4}function pj(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||vae(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 mj(a,i,l){var m=a.tag;if(m===5||m===6)a=a.stateNode,i?(_ie(l),(l.nodeType===9?l.body:l.nodeName===\"HTML\"?l.ownerDocument.body:l).insertBefore(a,i)):(_ie(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(m!==4&&(m===27&&Bh(a.type)&&(l=a.stateNode,i=null),a=a.child,a!==null))for(mj(a,i,l),a=a.sibling;a!==null;)mj(a,i,l),a=a.sibling}function Ok(a,i,l){var m=a.tag;if(m===5||m===6)a=a.stateNode,i?l.insertBefore(a,i):l.appendChild(a);else if(m!==4&&(m===27&&Bh(a.type)&&(l=a.stateNode),a=a.child,a!==null))for(Ok(a,i,l),a=a.sibling;a!==null;)Ok(a,i,l),a=a.sibling}function Wit(a){for(var i,l=a.return;l!==null;){if(vae(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=pj(a),Ok(a,l,i);break;case 5:l=i.stateNode,i.flags&32&&(Tie(l),i.flags&=-33),i=pj(a),Ok(a,i,l);break;case 3:case 4:i=i.stateNode.containerInfo,l=pj(a),mj(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 wae(a){var i=a.stateNode,l=a.memoizedProps;try{Te(a,Nst,a.type,l,i,a)}catch(m){Fr(a,a.return,m)}}function Eae(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 Qit(a,i){if(a=a.containerInfo,mq=e9,a=Hne(a),JF(a)){if(\"selectionStart\"in a)var l={start:a.selectionStart,end:a.selectionEnd};else e:{l=(l=a.ownerDocument)&&l.defaultView||window;var m=l.getSelection&&l.getSelection();if(m&&m.rangeCount!==0){l=m.anchorNode;var b=m.anchorOffset,w=m.focusNode;m=m.focusOffset;try{l.nodeType,w.nodeType}catch{l=null;break e}var S=0,B=-1,z=-1,q=0,ce=0,ue=a,te=null;t:for(;;){for(var pe;ue!==l||b!==0&&ue.nodeType!==3||(B=S+b),ue!==w||m!==0&&ue.nodeType!==3||(z=S+m),ue.nodeType===3&&(S+=ue.nodeValue.length),(pe=ue.firstChild)!==null;)te=ue,ue=pe;for(;;){if(ue===a)break t;if(te===l&&++q===b&&(B=S),te===w&&++ce===m&&(z=S),(pe=ue.nextSibling)!==null)break;ue=te,te=ue.parentNode}ue=pe}l=B===-1||z===-1?null:{start:B,end:z}}else l=null}l=l||{start:0,end:0}}else l=null;for(hq={focusedElem:a,selectionRange:l},e9=!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&&Git(a,l);break;case 3:if((b&1024)!==0){if(a=a.stateNode.containerInfo,l=a.nodeType,l===9)Oj(a);else if(l===1)switch(a.nodeName){case\"HEAD\":case\"HTML\":case\"BODY\":Oj(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 Aae(a,i,l){var m=cc(),b=wf(),w=Af(),S=Sf(),B=l.flags;switch(l.tag){case 0:case 11:case 15:Bf(a,l),B&4&&mae(l,gc|eu);break;case 1:if(Bf(a,l),B&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,U$,l,a),Cf()):Te(l,U$,l,a);else{var z=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,pce,l,a,z,i,a.__reactInternalSnapshotBeforeUpdate),Cf()):Te(l,pce,l,a,z,i,a.__reactInternalSnapshotBeforeUpdate)}B&64&&yae(l),B&512&&O8(l,l.return);break;case 3:if(i=vp(),Bf(a,l),B&64&&(B=l.updateQueue,B!==null)){if(z=null,l.child!==null)switch(l.child.tag){case 27:case 5:z=l.child.stateNode;break;case 1:z=l.child.stateNode}try{Te(l,goe,B,z)}catch(ce){Fr(l,l.return,ce)}}a.effectDuration+=sk(i);break;case 27:i===null&&B&4&&wae(l);case 26:case 5:if(Bf(a,l),i===null){if(B&4)xae(l);else if(B&64){a=l.type,i=l.memoizedProps,z=l.stateNode;try{Te(l,gst,z,a,i,l)}catch(ce){Fr(l,l.return,ce)}}}B&512&&O8(l,l.return);break;case 12:if(B&4){B=vp(),Bf(a,l),a=l.stateNode,a.effectDuration+=E8(B);try{Te(l,gae,l,i,Lh,a.effectDuration)}catch(ce){Fr(l,l.return,ce)}}else Bf(a,l);break;case 31:Bf(a,l),B&4&&Tae(a,l);break;case 13:Bf(a,l),B&4&&_ae(a,l),B&64&&(a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(B=ost.bind(null,l),Pst(a,B))));break;case 22:if(B=l.memoizedState!==null||Up,!B){i=i!==null&&i.memoizedState!==null||jo,z=Up;var q=jo;Up=B,(jo=i)&&!q?(If(a,l,(l.subtreeFlags&8772)!==0),(l.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&J4(l,ct,lt)):Bf(a,l),Up=z,jo=q}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&&(Eae(l.return.alternate,l.return)||gf(l,ct,lt,\"Mount\"))),uc(m),Ef(b),Ln=w,no=S}function Sae(a){var i=a.alternate;i!==null&&(a.alternate=null,Sae(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;)Cae(a,i,l),l=l.sibling}function Cae(a,i,l){if(ii&&typeof ii.onCommitFiberUnmount==\"function\")try{ii.onCommitFiberUnmount(C2,l)}catch(q){Uf||(Uf=!0,console.error(\"React instrumentation encountered an error: %o\",q))}var m=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 B=$o,z=As;Bh(l.type)&&($o=l.stateNode,As=!1),Ap(a,i,l),Te(l,$8,l.stateNode),$o=B,As=z;break;case 5:jo||kf(l,i);case 6:if(B=$o,z=As,$o=null,Ap(a,i,l),$o=B,As=z,$o!==null)if(As)try{Te(l,Est,$o,l.stateNode)}catch(q){Fr(l,i,q)}else try{Te(l,wst,$o,l.stateNode)}catch(q){Fr(l,i,q)}break;case 18:$o!==null&&(As?(a=$o,kie(a.nodeType===9?a.body:a.nodeName===\"HTML\"?a.ownerDocument.body:a,l.stateNode),w2(a)):kie($o,l.stateNode));break;case 4:B=$o,z=As,$o=l.stateNode.containerInfo,As=!0,Ap(a,i,l),$o=B,As=z;break;case 0:case 11:case 14:case 15:p2(Hi,l,i),jo||lj(l,i,gc),Ap(a,i,l);break;case 1:jo||(kf(l,i),B=l.stateNode,typeof B.componentWillUnmount==\"function\"&&bae(l,i,B)),Ap(a,i,l);break;case 21:Ap(a,i,l);break;case 22:jo=(B=jo)||l.memoizedState!==null,Ap(a,i,l),jo=B;break;default:Ap(a,i,l)}(l.mode&Nt)!==mt&&0<=ct&&0<=lt&&(no||.05<Vn)&&xf(l,ct,lt,Vn,Ln),uc(m),Ef(b),Ln=w,no=S}function Tae(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Te(i,Mst,a)}catch(l){Fr(i,i.return,l)}}}function _ae(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Te(i,Ost,a)}catch(l){Fr(i,i.return,l)}}function Zit(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new Yce),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new Yce),i;default:throw Error(\"Unexpected Suspense handler tag (\"+a.tag+\"). This is a bug in React.\")}}function Nk(a,i){var l=Zit(a);i.forEach(function(m){if(!l.has(m)){if(l.add(m),Df)if(Z2!==null&&J2!==null)H8(J2,Z2);else throw Error(\"Expected finished root and lanes to be set. This is a bug in React.\");var b=ast.bind(null,a,m);m.then(b,b)}})}function ws(a,i){var l=i.deletions;if(l!==null)for(var m=0;m<l.length;m++){var b=a,w=i,S=l[m],B=cc(),z=w;e:for(;z!==null;){switch(z.tag){case 27:if(Bh(z.type)){$o=z.stateNode,As=!1;break e}break;case 5:$o=z.stateNode,As=!1;break e;case 3:case 4:$o=z.stateNode.containerInfo,As=!0;break e}z=z.return}if($o===null)throw Error(\"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\");Cae(b,w,S),$o=null,As=!1,(S.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&gf(S,ct,lt,\"Unmount\"),uc(B),b=S,w=b.alternate,w!==null&&(w.return=null),b.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)kae(i,a),i=i.sibling}function kae(a,i){var l=cc(),m=wf(),b=Af(),w=Sf(),S=a.alternate,B=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ws(i,a),Es(a),B&4&&(p2(Hi|eu,a,a.return),M8(Hi|eu,a),lj(a,a.return,gc|eu));break;case 1:if(ws(i,a),Es(a),B&512&&(jo||S===null||kf(S,S.return)),B&64&&Up&&(B=a.updateQueue,B!==null&&(S=B.callbacks,S!==null))){var z=B.shared.hiddenCallbacks;B.shared.hiddenCallbacks=z===null?S:z.concat(S)}break;case 26:if(z=pl,ws(i,a),Es(a),B&512&&(jo||S===null||kf(S,S.return)),B&4){var q=S!==null?S.memoizedState:null;if(B=a.memoizedState,S===null)if(B===null)if(a.stateNode===null){e:{B=a.type,S=a.memoizedProps,z=z.ownerDocument||z;t:switch(B){case\"title\":q=z.getElementsByTagName(\"title\")[0],(!q||q[Z8]||q[Ua]||q.namespaceURI===_2||q.hasAttribute(\"itemprop\"))&&(q=z.createElement(B),z.head.insertBefore(q,z.querySelector(\"head > title\"))),Na(q,B,S),q[Ua]=a,Ne(q),B=q;break e;case\"link\":var ce=Lie(\"link\",\"href\",z).get(B+(S.href||\"\"));if(ce){for(var ue=0;ue<ce.length;ue++)if(q=ce[ue],q.getAttribute(\"href\")===(S.href==null||S.href===\"\"?null:S.href)&&q.getAttribute(\"rel\")===(S.rel==null?null:S.rel)&&q.getAttribute(\"title\")===(S.title==null?null:S.title)&&q.getAttribute(\"crossorigin\")===(S.crossOrigin==null?null:S.crossOrigin)){ce.splice(ue,1);break t}}q=z.createElement(B),Na(q,B,S),z.head.appendChild(q);break;case\"meta\":if(ce=Lie(\"meta\",\"content\",z).get(B+(S.content||\"\"))){for(ue=0;ue<ce.length;ue++)if(q=ce[ue],rr(S.content,\"content\"),q.getAttribute(\"content\")===(S.content==null?null:\"\"+S.content)&&q.getAttribute(\"name\")===(S.name==null?null:S.name)&&q.getAttribute(\"property\")===(S.property==null?null:S.property)&&q.getAttribute(\"http-equiv\")===(S.httpEquiv==null?null:S.httpEquiv)&&q.getAttribute(\"charset\")===(S.charSet==null?null:S.charSet)){ce.splice(ue,1);break t}}q=z.createElement(B),Na(q,B,S),z.head.appendChild(q);break;default:throw Error(\\'getNodesForType encountered a type it did not expect: \"\\'+B+\\'\". This is a bug in React.\\')}q[Ua]=a,Ne(q),B=q}a.stateNode=B}else Fie(z,a.type,a.stateNode);else a.stateNode=Hie(z,B,a.memoizedProps);else q!==B?(q===null?S.stateNode!==null&&(S=S.stateNode,S.parentNode.removeChild(S)):q.count--,B===null?Fie(z,a.type,a.stateNode):Hie(z,B,a.memoizedProps)):B===null&&a.stateNode!==null&&dj(a,a.memoizedProps,S.memoizedProps)}break;case 27:ws(i,a),Es(a),B&512&&(jo||S===null||kf(S,S.return)),S!==null&&B&4&&dj(a,a.memoizedProps,S.memoizedProps);break;case 5:if(ws(i,a),Es(a),B&512&&(jo||S===null||kf(S,S.return)),a.flags&32){z=a.stateNode;try{Te(a,Tie,z)}catch($e){Fr(a,a.return,$e)}}B&4&&a.stateNode!=null&&(z=a.memoizedProps,dj(a,z,S!==null?S.memoizedProps:z)),B&1024&&(Q$=!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),B&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.\");B=a.memoizedProps,S=S!==null?S.memoizedProps:B,z=a.stateNode;try{Te(a,vst,z,S,B)}catch($e){Fr(a,a.return,$e)}}break;case 3:if(z=vp(),J7=null,q=pl,pl=$k(i.containerInfo),ws(i,a),pl=q,Es(a),B&4&&S!==null&&S.memoizedState.isDehydrated)try{Te(a,Rst,i.containerInfo)}catch($e){Fr(a,a.return,$e)}Q$&&(Q$=!1,Bae(a)),i.effectDuration+=sk(z);break;case 4:B=pl,pl=$k(a.stateNode.containerInfo),ws(i,a),Es(a),pl=B;break;case 12:B=vp(),ws(i,a),Es(a),a.stateNode.effectDuration+=E8(B);break;case 31:ws(i,a),Es(a),B&4&&(B=a.updateQueue,B!==null&&(a.updateQueue=null,Nk(a,B)));break;case 13:ws(i,a),Es(a),a.child.flags&8192&&a.memoizedState!==null!=(S!==null&&S.memoizedState!==null)&&(U7=ma()),B&4&&(B=a.updateQueue,B!==null&&(a.updateQueue=null,Nk(a,B)));break;case 22:z=a.memoizedState!==null;var te=S!==null&&S.memoizedState!==null,pe=Up,Oe=jo;if(Up=pe||z,jo=Oe||te,ws(i,a),jo=Oe,Up=pe,te&&!z&&!pe&&!Oe&&(a.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&J4(a,ct,lt),Es(a),B&8192)e:for(i=a.stateNode,i._visibility=z?i._visibility&~aA:i._visibility|aA,!z||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{q=te.stateNode,z?Te(te,Sst,q):Te(te,_st,te.stateNode,te.memoizedProps)}catch($e){Fr(te,te.return,$e)}}}else if(i.tag===6){if(S===null){te=i;try{ce=te.stateNode,z?Te(te,Cst,ce):Te(te,kst,ce,te.memoizedProps)}catch($e){Fr(te,te.return,$e)}}}else if(i.tag===18){if(S===null){te=i;try{ue=te.stateNode,z?Te(te,Ast,ue):Te(te,Tst,te.stateNode)}catch($e){Fr(te,te.return,$e)}}}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}B&4&&(B=a.updateQueue,B!==null&&(S=B.retryQueue,S!==null&&(B.retryQueue=null,Nk(a,S))));break;case 19:ws(i,a),Es(a),B&4&&(B=a.updateQueue,B!==null&&(a.updateQueue=null,Nk(a,B)));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&&(Eae(a.return.alternate,a.return)||gf(a,ct,lt,\"Mount\"))),uc(l),Ef(m),Ln=b,no=w}function Es(a){var i=a.flags;if(i&2){try{Te(a,Wit,a)}catch(l){Fr(a,a.return,l)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function Bae(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;Bae(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;)Aae(a,i.alternate,i),i=i.sibling}function Iae(a){var i=cc(),l=wf(),m=Af(),b=Sf();switch(a.tag){case 0:case 11:case 14:case 15:lj(a,a.return,gc),Db(a);break;case 1:kf(a,a.return);var w=a.stateNode;typeof w.componentWillUnmount==\"function\"&&bae(a,a.return,w),Db(a);break;case 27:Te(a,$8,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=m,no=b}function Db(a){for(a=a.child;a!==null;)Iae(a),a=a.sibling}function Pae(a,i,l,m){var b=cc(),w=wf(),S=Af(),B=Sf(),z=l.flags;switch(l.tag){case 0:case 11:case 15:If(a,l,m),mae(l,gc);break;case 1:if(If(a,l,m),i=l.stateNode,typeof i.componentDidMount==\"function\"&&Te(l,U$,l,i),i=l.updateQueue,i!==null){a=l.stateNode;try{Te(l,Rit,i,a)}catch(q){Fr(l,l.return,q)}}m&&z&64&&yae(l),O8(l,l.return);break;case 27:wae(l);case 26:case 5:If(a,l,m),m&&i===null&&z&4&&xae(l),O8(l,l.return);break;case 12:if(m&&z&4){z=vp(),If(a,l,m),m=l.stateNode,m.effectDuration+=E8(z);try{Te(l,gae,l,i,Lh,m.effectDuration)}catch(q){Fr(l,l.return,q)}}else If(a,l,m);break;case 31:If(a,l,m),m&&z&4&&Tae(a,l);break;case 13:If(a,l,m),m&&z&4&&_ae(a,l);break;case 22:l.memoizedState===null&&If(a,l,m),O8(l,l.return);break;case 30:break;default:If(a,l,m)}(l.mode&Nt)!==mt&&0<=ct&&0<=lt&&(no||.05<Vn)&&xf(l,ct,lt,Vn,Ln),uc(b),Ef(w),Ln=S,no=B}function If(a,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;)Pae(a,i.alternate,i,l),i=i.sibling}function hj(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&&w8(l))}function yj(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(Rb(i),a!=null&&w8(a))}function sl(a,i,l,m,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;Rae(a,i,l,m,w!==null?w.actualStartTime:b),i=w}}function Rae(a,i,l,m,b){var w=cc(),S=wf(),B=Af(),z=Sf(),q=Nh,ce=i.flags;switch(i.tag){case 0:case 11:case 15:(i.mode&Nt)!==mt&&0<i.actualStartTime&&(i.flags&1)!==0&&Y4(i,i.actualStartTime,b,aa,l),sl(a,i,l,m,b),ce&2048&&hae(i,Li|eu);break;case 1:(i.mode&Nt)!==mt&&0<i.actualStartTime&&((i.flags&128)!==0?XF(i,i.actualStartTime,b,[]):(i.flags&1)!==0&&Y4(i,i.actualStartTime,b,aa,l)),sl(a,i,l,m,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,m,b),aa=te,ce&2048&&(l=null,i.alternate!==null&&(l=i.alternate.memoizedState.cache),m=i.memoizedState.cache,m!==l&&(Rb(m),l!=null&&w8(l))),a.passiveEffectDuration+=sk(ue);break;case 12:if(ce&2048){ce=vp(),sl(a,i,l,m,b),a=i.stateNode,a.passiveEffectDuration+=E8(ce);try{Te(i,Kit,i,i.alternate,Lh,a.passiveEffectDuration)}catch(pe){Fr(i,i.return,pe)}}else sl(a,i,l,m,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&&XF(i,i.actualStartTime,b,ue)):aa=!0):aa=!1,sl(a,i,l,m,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&&XF(i,i.actualStartTime,b,ue)):aa=!0),sl(a,i,l,m,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,m,b):N8(a,i,l,m,b):te._visibility&Tp?sl(a,i,l,m,b):(te._visibility|=Tp,m2(a,i,l,m,(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&&J4(i,a,b),0<=ct&&0<=lt&&.05<lt-ct&&J4(i,ct,lt))),ce&2048&&hj(ue,i);break;case 24:sl(a,i,l,m,b),ce&2048&&yj(i.alternate,i);break;default:sl(a,i,l,m,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=B,no=z,Nh=q}function m2(a,i,l,m,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;Mae(a,i,l,m,b,S!==null?S.actualStartTime:w),i=S}}function Mae(a,i,l,m,b,w){var S=cc(),B=wf(),z=Af(),q=Sf(),ce=Nh;b&&(i.mode&Nt)!==mt&&0<i.actualStartTime&&(i.flags&1)!==0&&Y4(i,i.actualStartTime,w,aa,l);var ue=i.flags;switch(i.tag){case 0:case 11:case 15:m2(a,i,l,m,b,w),hae(i,Li);break;case 23:break;case 22:var te=i.stateNode;i.memoizedState!==null?te._visibility&Tp?m2(a,i,l,m,b,w):N8(a,i,l,m,w):(te._visibility|=Tp,m2(a,i,l,m,b,w)),b&&ue&2048&&hj(i.alternate,i);break;case 24:m2(a,i,l,m,b,w),b&&ue&2048&&yj(i.alternate,i);break;default:m2(a,i,l,m,b,w)}(i.mode&Nt)!==mt&&0<=ct&&0<=lt&&(no||.05<Vn)&&xf(i,ct,lt,Vn,Ln),uc(S),Ef(B),Ln=z,no=q,Nh=ce}function N8(a,i,l,m,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,B=l,z=m,q=i!==null?i.actualStartTime:b,ce=Nh;(w.mode&Nt)!==mt&&0<w.actualStartTime&&(w.flags&1)!==0&&Y4(w,w.actualStartTime,q,aa,B);var ue=w.flags;switch(w.tag){case 22:N8(S,w,B,z,q),ue&2048&&hj(w.alternate,w);break;case 24:N8(S,w,B,z,q),ue&2048&&yj(w.alternate,w);break;default:N8(S,w,B,z,q)}Nh=ce,w=i}}function h2(a,i,l){if(a.subtreeFlags&CA)for(a=a.child;a!==null;)Oae(a,i,l),a=a.sibling}function Oae(a,i,l){switch(a.tag){case 26:h2(a,i,l),a.flags&CA&&a.memoizedState!==null&&Hst(l,pl,a.memoizedState,a.memoizedProps);break;case 5:h2(a,i,l);break;case 3:case 4:var m=pl;pl=$k(a.stateNode.containerInfo),h2(a,i,l),pl=m;break;case 22:a.memoizedState===null&&(m=a.alternate,m!==null&&m.memoizedState!==null?(m=CA,CA=16777216,h2(a,i,l),CA=m):h2(a,i,l));break;default:h2(a,i,l)}}function Nae(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 U8(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var m=i[l],b=cc();ya=m,Hae(m,a),(m.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&gf(m,ct,lt,\"Unmount\"),uc(b)}Nae(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Uae(a),a=a.sibling}function Uae(a){var i=cc(),l=wf(),m=Af(),b=Sf();switch(a.tag){case 0:case 11:case 15:U8(a),a.flags&2048&&fj(a,a.return,Li|eu);break;case 3:var w=vp();U8(a),a.stateNode.passiveEffectDuration+=sk(w);break;case 12:w=vp(),U8(a),a.stateNode.passiveEffectDuration+=E8(w);break;case 22:w=a.stateNode,a.memoizedState!==null&&w._visibility&Tp&&(a.return===null||a.return.tag!==13)?(w._visibility&=~Tp,Uk(a),(a.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&gf(a,ct,lt,\"Disconnect\")):U8(a);break;default:U8(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=m}function Uk(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var m=i[l],b=cc();ya=m,Hae(m,a),(m.mode&Nt)!==mt&&0<=ct&&0<=lt&&.05<lt-ct&&gf(m,ct,lt,\"Unmount\"),uc(b)}Nae(a)}for(a=a.child;a!==null;)Dae(a),a=a.sibling}function Dae(a){var i=cc(),l=wf(),m=Af(),b=Sf();switch(a.tag){case 0:case 11:case 15:fj(a,a.return,Li),Uk(a);break;case 22:var w=a.stateNode;w._visibility&Tp&&(w._visibility&=~Tp,Uk(a));break;default:Uk(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=m}function Hae(a,i){for(;ya!==null;){var l=ya,m=l,b=i,w=cc(),S=wf(),B=Af(),z=Sf();switch(m.tag){case 0:case 11:case 15:fj(m,b,Li);break;case 23:case 22:m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(b=m.memoizedState.cachePool.pool,b!=null&&Rb(b));break;case 24:w8(m.memoizedState.cache)}if((m.mode&Nt)!==mt&&0<=ct&&0<=lt&&(no||.05<Vn)&&xf(m,ct,lt,Vn,Ln),uc(w),Ef(S),no=z,Ln=B,m=l.child,m!==null)m.return=l,ya=m;else e:for(l=a;ya!==null;){if(m=ya,w=m.sibling,S=m.return,Sae(m),m===l){ya=null;break e}if(w!==null){w.return=S,ya=w;break e}ya=S}}}function Jit(){xut.forEach(function(a){return a()})}function Lae(){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),Sj()):fe()}function Fae(){if(Cs===0)if((Dt&536870912)===0||nr){var a=t7;t7<<=1,(t7&3932160)===0&&(t7=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.\"),iq&&(F7=!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=$t&&W($t)||\"Unknown\",pue.has(a)||(pue.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:due||(console.error(\"Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.\"),due=!0)}}else Df&&$c(a,i,l),sst(i),a===mn&&((hr&ia)===ba&&(Wh|=l),Kn===Gh&&_h(a,Dt,Cs,!1)),Pf(a)}function zae(a,i,l){if((hr&(ia|xc))!==ba)throw Error(\"Should not already be working.\");if(Dt!==0&&$t!==null){var m=$t,b=ma();switch(ace){case kA:case Yb:var w=fA;In&&((m=m._debugTask)?m.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=fA,In&&((m=m._debugTask)?m.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&&(m=b-fA,3>m||console.timeStamp(\"Blocked\",fA,b,Vc,void 0,5>m?\"primary-light\":10>m?\"primary\":100>m?\"primary-dark\":\"error\"))}}w=(l=!l&&(i&127)===0&&(i&a.expiredLanes)===0||Lr(a,i))?Xit(a,i):gj(a,i,!0);var S=l;do{if(w===Dp){Y2&&!l&&_h(a,i,0,!1),i=Vr,fA=Lo(),ace=i;break}else{if(m=ma(),b=a.current.alternate,S&&!Yit(b)){ic(i),b=ha,w=m,!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,m),w=gj(a,i,!1),S=!1;continue}if(w===Jb){if(S=i,a.errorRecoveryDisabledLanes&S)var B=0;else B=a.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){ic(i),ez(ha,m,i,ho),Hb(i,m),i=B;e:{m=a,w=S,S=IA;var z=m.current.memoizedState.isDehydrated;if(z&&(b2(m,B).flags|=256),B=gj(m,B,!1),B!==Jb){if(Y$&&!z){m.errorRecoveryDisabledLanes|=w,Wh|=w,w=Gh;break e}m=Fi,Fi=S,m!==null&&(Fi===null?Fi=m:Fi.push.apply(Fi,m))}w=B}if(S=!1,w!==Jb)continue;m=ma()}}if(w===_A){ic(i),ez(ha,m,i,ho),Hb(i,m),b2(a,0),_h(a,i,0,!0);break}e:{switch(l=a,w){case Dp:case _A:throw Error(\"Root did not complete. This is a bug in React.\");case Gh:if((i&4194048)!==i)break;case R7:ic(i),zne(ha,m,i,ho),Hb(i,m),b=i,(b&127)!==0?b7=m:(b&4194048)!==0&&(g7=m),_h(l,i,Cs,!Vh);break e;case Jb:Fi=null;break;case P7:case Xce:break;default:throw Error(\"Unknown root exit status.\")}if(ye.actQueue!==null)xj(l,b,i,Fi,PA,N7,Cs,Wh,e1,w,null,null,ha,m);else{if((i&62914560)===i&&(S=U7+rue-ma(),10<S)){if(_h(l,i,Cs,!Vh),Hr(l,0,!0)!==0)break e;ml=i,l.timeoutHandle=wue(jae.bind(null,l,b,Fi,PA,N7,i,Cs,Wh,e1,Vh,w,\"Throttled\",ha,m),S);break e}jae(l,b,Fi,PA,N7,i,Cs,Wh,e1,Vh,w,null,ha,m)}}}break}while(!0);Pf(a)}function jae(a,i,l,m,b,w,S,B,z,q,ce,ue,te,pe){a.timeoutHandle=a1;var Oe=i.subtreeFlags,$e=null;if((Oe&8192||(Oe&16785408)===16785408)&&($e={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yp},Oae(i,w,$e),Oe=(w&62914560)===w?U7-ma():(w&4194048)===w?tue-ma():0,Oe=Lst($e,Oe),Oe!==null)){ml=w,a.cancelPendingCommit=Oe(xj.bind(null,a,i,w,l,m,b,S,B,z,ce,$e,$e.waitingForViewTransition?\"Waiting for the previous Animation\":0<$e.count?0<$e.imgCount?\"Suspended on CSS and Images\":\"Suspended on CSS\":$e.imgCount===1?\"Suspended on an Image\":0<$e.imgCount?\"Suspended on Images\":null,te,pe)),_h(a,w,S,!q);return}xj(a,i,w,l,m,b,S,B,z,ce,$e,ue,te,pe)}function Yit(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 m=0;m<l.length;m++){var b=l[m],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,m){i&=~X$,i&=~Wh,a.suspendedLanes|=i,a.pingedLanes&=~i,m&&(a.warmLanes|=i),m=a.expirationTimes;for(var b=i;0<b;){var w=31-Mi(b),S=1<<w;m[w]=-1,b&=~S}l!==0&&Ir(a,l,i)}function y2(){return(hr&(ia|xc))===ba?(L8(0,!1),!1):!0}function bj(){if($t!==null){if(Vr===Ss)var a=$t.return;else a=$t,ok(),kz(a),$2=null,vA=0,a=$t;for(;a!==null;)pae(a.alternate,a),a=a.return;$t=null}}function Hb(a,i){(a&127)!==0&&(Fh=i),(a&4194048)!==0&&(jf=i),(a&62914560)!==0&&(nce=i),(a&2080374784)!==0&&(oce=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===P7||Kn===Gh)zne(l,ha,i,ho);else{var m=ha,b=ho;if(In&&!(m<=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,m,er,Qt,w)):console.timeStamp(S,l,m,er,Qt,w)}}Hb(Dt,ha)}if(l=ho,ho=null,(i&127)!==0){ho=cA,b=0<=zf&&zf<Fh?Fh:zf,m=0<=$b&&$b<Fh?Fh:$b,w=0<=m?m:0<=b?b:ha,0<=b7?(ic(2),jne(b7,w,i,l)):(x7&127)!==0&&(ic(2),x8(Fh,w,Rp)),l=b;var B=m,z=uA,q=0<F2,ce=zh===sA,ue=zh===y7;if(b=ha,m=cA,w=P$,S=R$,In){if(er=\"Blocking\",0<l?l>b&&(l=b):l=b,0<B?B>l&&(B=l):B=l,z!==null&&l>B){var te=q?\"secondary-light\":\"warning\";m?m.run(console.timeStamp.bind(console,q?\"Consecutive\":\"Event: \"+z,B,l,er,Qt,te)):console.timeStamp(q?\"Consecutive\":\"Event: \"+z,B,l,er,Qt,te)}b>l&&(B=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:B}}},m?m.run(performance.measure.bind(performance,ce,l)):performance.measure(ce,l))}zf=-1.1,zh=0,R$=P$=null,b7=-1.1,F2=$b,$b=-1.1,Fh=Lo()}if((i&4194048)!==0&&(ho=lA,b=0<=Pp&&Pp<jf?jf:Pp,l=0<=Yc&&Yc<jf?jf:Yc,m=0<=jh&&jh<jf?jf:jh,w=0<=m?m:0<=l?l:ha,0<=g7?(ic(256),jne(g7,w,i,ho)):(x7&4194048)!==0&&(ic(256),x8(jf,w,Rp)),ue=m,B=qb,z=0<$h,q=M$===y7,w=ha,m=lA,S=tce,ce=rce,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&&B!==null&&(te=z?\"secondary-light\":\"warning\",m?m.run(console.timeStamp.bind(console,z?\"Consecutive\":\"Event: \"+B,ue,b,er,Qt,te)):console.timeStamp(z?\"Consecutive\":\"Event: \"+B,ue,b,er,Qt,te)),l>b&&(m?m.run(console.timeStamp.bind(console,\"Action\",b,l,er,Qt,\"primary-dark\")):console.timeStamp(\"Action\",b,l,er,Qt,\"primary-dark\")),w>l&&(b=q?\"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\"}}},m?m.run(performance.measure.bind(performance,b,l)):performance.measure(b,l))),Yc=Pp=-1.1,M$=0,g7=-1.1,$h=jh,jh=-1.1,jf=Lo()),(i&62914560)!==0&&(x7&62914560)!==0&&(ic(4194304),x8(nce,ha,Rp)),(i&2080374784)!==0&&(x7&2080374784)!==0&&(ic(268435456),x8(oce,ha,Rp)),l=a.timeoutHandle,l!==a1&&(a.timeoutHandle=a1,Rut(l)),l=a.cancelPendingCommit,l!==null&&(a.cancelPendingCommit=null,l()),ml=0,bj(),mn=a,$t=l=bp(a.current,null),Dt=i,Vr=Ss,vc=null,Vh=!1,Y2=Lr(a,i),Y$=!1,Kn=Dp,e1=Cs=X$=Wh=Kh=0,Fi=IA=null,N7=!1,(i&8)!==0&&(i|=i&32),m=a.entangledLanes,m!==0)for(a=a.entanglements,m&=i;0<m;)b=31-Mi(m),w=1<<b,i|=a[b],m&=~w;return qf=i,X4(),a=Qse(),1e3<a-Wse&&(ye.recentlyCreatedOwnerStacks=0,Wse=a),fl.discardPendingWarnings(),l}function $ae(a,i){gt=null,ye.H=SA,ye.getCurrentStack=null,Nf=!1,mc=null,i===j2||i===A7?(i=loe(),Vr=kA):i===D$?(i=loe(),Vr=eue):Vr=i===K$?J$:i!==null&&typeof i==\"object\"&&typeof i.then==\"function\"?BA:M7,vc=i;var l=$t;l===null?(Kn=_A,Bk(a,sc(i,a.current))):l.mode&Nt&&hz(l)}function qae(){var a=bc.current;return a===null?!0:(Dt&4194048)===Dt?Xc===null:(Dt&62914560)===Dt||(Dt&536870912)!==0?a===Xc:!1}function Gae(){var a=ye.H;return ye.H=SA,a===null?SA:a}function Vae(){var a=ye.A;return ye.A=gut,a}function Dk(a){ho===null&&(ho=a._debugTask==null?null:a._debugTask)}function Hk(){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 gj(a,i,l){var m=hr;hr|=ia;var b=Gae(),w=Vae();if(mn!==a||Dt!==i){if(Df){var S=a.memoizedUpdaters;0<S.size&&(H8(a,Dt),S.clear()),Er(a,i)}PA=null,b2(a,i)}i=!1,S=Kn;e:do try{if(Vr!==Ss&&$t!==null){var B=$t,z=vc;switch(Vr){case J$:bj(),S=R7;break e;case kA:case Yb:case Xb:case BA:bc.current===null&&(i=!0);var q=Vr;if(Vr=Ss,vc=null,g2(a,B,z,q),l&&Y2){S=Dp;break e}break;default:q=Vr,Vr=Ss,vc=null,g2(a,B,z,q)}}Kae(),S=Kn;break}catch(ce){$ae(a,ce)}while(!0);return i&&a.shellSuspendCounter++,ok(),hr=m,ye.H=b,ye.A=w,$t===null&&(mn=null,Dt=0,X4()),S}function Kae(){for(;$t!==null;)Wae($t)}function Xit(a,i){var l=hr;hr|=ia;var m=Gae(),b=Vae();if(mn!==a||Dt!==i){if(Df){var w=a.memoizedUpdaters;0<w.size&&(H8(a,Dt),w.clear()),Er(a,i)}PA=null,D7=ma()+nue,b2(a,i)}else Y2=Lr(a,i);e:do try{if(Vr!==Ss&&$t!==null)t:switch(i=$t,w=vc,Vr){case M7:Vr=Ss,vc=null,g2(a,i,w,M7);break;case Yb:case Xb:if(coe(w)){Vr=Ss,vc=null,Qae(i);break}i=function(){Vr!==Yb&&Vr!==Xb||mn!==a||(Vr=O7),Pf(a)},w.then(i,i);break e;case kA:Vr=O7;break e;case eue:Vr=Z$;break e;case O7:coe(w)?(Vr=Ss,vc=null,Qae(i)):(Vr=Ss,vc=null,g2(a,i,w,O7));break;case Z$:var S=null;switch($t.tag){case 26:S=$t.memoizedState;case 5:case 27:var B=$t;if(S?zie(S):B.stateNode.complete){Vr=Ss,vc=null;var z=B.sibling;if(z!==null)$t=z;else{var q=B.return;q!==null?($t=q,Lk(q)):$t=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,Z$);break;case BA:Vr=Ss,vc=null,g2(a,i,w,BA);break;case J$:bj(),Kn=R7;break e;default:throw Error(\"Unexpected SuspendedReason. This is a bug in React.\")}ye.actQueue!==null?Kae():est();break}catch(ce){$ae(a,ce)}while(!0);return ok(),ye.H=m,ye.A=b,hr=l,$t!==null?Dp:(mn=null,Dt=0,X4(),Kn)}function est(){for(;$t!==null&&!Xst();)Wae($t)}function Wae(a){var i=a.alternate;(a.mode&Nt)!==mt?(mz(a),i=Te(a,cj,i,a,qf),hz(a)):i=Te(a,cj,i,a,qf),a.memoizedProps=a.pendingProps,i===null?Lk(a):$t=i}function Qae(a){var i=Te(a,tst,a);a.memoizedProps=a.pendingProps,i===null?Lk(a):$t=i}function tst(a){var i=a.alternate,l=(a.mode&Nt)!==mt;switch(l&&mz(a),a.tag){case 15:case 0:i=iae(i,a,a.pendingProps,a.type,void 0,Dt);break;case 11:i=iae(i,a,a.pendingProps,a.type.render,a.ref,Dt);break;case 5:kz(a);default:pae(i,a),a=$t=Wne(a,qf),i=cj(i,a,qf)}return l&&hz(a),i}function g2(a,i,l,m){ok(),kz(i),$2=null,vA=0;var b=i.return;try{if(Lit(a,b,i,l,Dt)){Kn=_A,Bk(a,sc(l,a.current)),$t=null;return}}catch(w){if(b!==null)throw $t=b,w;Kn=_A,Bk(a,sc(l,a.current)),$t=null;return}i.flags&32768?(nr||m===M7?a=!0:Y2||(Dt&536870912)!==0?a=!1:(Vh=a=!0,(m===Yb||m===Xb||m===kA||m===BA)&&(m=bc.current,m!==null&&m.tag===13&&(m.flags|=16384))),Zae(i,a)):Lk(i)}function Lk(a){var i=a;do{if((i.flags&32768)!==0){Zae(i,Vh);return}var l=i.alternate;if(a=i.return,mz(i),l=Te(i,jit,l,i,qf),(i.mode&Nt)!==mt&&noe(i),l!==null){$t=l;return}if(i=i.sibling,i!==null){$t=i;return}$t=i=a}while(i!==null);Kn===Dp&&(Kn=Xce)}function Zae(a,i){do{var l=$it(a.alternate,a);if(l!==null){l.flags&=32767,$t=l;return}if((a.mode&Nt)!==mt){noe(a),l=a.actualDuration;for(var m=a.child;m!==null;)l+=m.actualDuration,m=m.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)){$t=a;return}$t=a=l}while(a!==null);Kn=R7,$t=null}function xj(a,i,l,m,b,w,S,B,z,q,ce,ue,te,pe){a.cancelPendingCommit=null;do D8();while(qo!==Zh);if(fl.flushLegacyContextWarning(),fl.flushPendingUnsafeLifecycleWarnings(),(hr&(ia|xc))!==ba)throw Error(\"Should not already be working.\");if(ic(l),q===Jb?ez(te,pe,l,ho):m!==null?Tit(te,pe,l,m,i!==null&&i.alternate!==null&&i.alternate.memoizedState.isDehydrated&&(i.flags&256)!==0,ho):Cit(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|=T$,nn(a,l,w,S,B,z),a===mn&&($t=mn=null,Dt=0),X2=i,Jh=a,ml=l,rq=w,oq=b,uue=m,nq=pe,lue=ue,hl=H7,fue=null,i.actualDuration!==0||(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,ist(S2,function(){return DA=window.event,hl===H7&&(hl=tq),tie(),null})):(a.callbackNode=null,a.callbackPriority=0),Ip=null,Lh=Lo(),ue!==null&&_it(pe,Lh,ue,ho),m=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||m){m=ye.T,ye.T=null,b=zr.p,zr.p=hc,S=hr,hr|=xc;try{Qit(a,i,l)}finally{hr=S,zr.p=b,ye.T=m}}qo=aue,Jae(),Yae(),Xae()}}function Jae(){if(qo===aue){qo=Zh;var a=Jh,i=X2,l=ml,m=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||m){m=ye.T,ye.T=null;var b=zr.p;zr.p=hc;var w=hr;hr|=xc;try{Z2=l,J2=a,ck(),kae(i,a),J2=Z2=null,l=hq;var S=Hne(a.containerInfo),B=l.focusedElem,z=l.selectionRange;if(S!==B&&B&&B.ownerDocument&&Dne(B.ownerDocument.documentElement,B)){if(z!==null&&JF(B)){var q=z.start,ce=z.end;if(ce===void 0&&(ce=q),\"selectionStart\"in B)B.selectionStart=q,B.selectionEnd=Math.min(ce,B.value.length);else{var ue=B.ownerDocument||document,te=ue&&ue.defaultView||window;if(te.getSelection){var pe=te.getSelection(),Oe=B.textContent.length,$e=Math.min(z.start,Oe),Sn=z.end===void 0?$e:Math.min(z.end,Oe);!pe.extend&&$e>Sn&&(S=Sn,Sn=$e,$e=S);var fr=Une(B,$e),ee=Une(B,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(),$e>Sn?(pe.addRange(oe),pe.extend(ee.node,ee.offset)):(oe.setEnd(ee.node,ee.offset),pe.addRange(oe))}}}}for(ue=[],pe=B;pe=pe.parentNode;)pe.nodeType===1&&ue.push({element:pe,left:pe.scrollLeft,top:pe.scrollTop});for(typeof B.focus==\"function\"&&B.focus(),B=0;B<ue.length;B++){var se=ue[B];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}e9=!!mq,hq=mq=null}finally{hr=w,zr.p=b,ye.T=m}}a.current=i,qo=iue}}function Yae(){if(qo===iue){qo=Zh;var a=fue;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 m=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||m){m=ye.T,ye.T=null;var b=zr.p;zr.p=hc;var w=hr;hr|=xc;try{Z2=l,J2=a,ck(),Aae(a,i.alternate,i),J2=Z2=null}finally{hr=w,zr.p=b,ye.T=m}}a=nq,i=lue,Bp=Lo(),a=i===null?a:Lh,i=Bp,l=hl===eq,m=ho,Ip!==null?$ne(a,i,Ip,!1,m):!In||i<=a||(m?m.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\")),qo=sue}}function Xae(){if(qo===cue||qo===sue){if(qo===cue){var a=Bp;Bp=Lo();var i=Bp,l=hl===eq;!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!==eq&&(hl=oue)}qo=Zh,ect(),a=Jh;var m=X2;i=ml,l=uue;var b=m.actualDuration!==0||(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0;b?qo=L7:(qo=Zh,X2=Jh=null,eie(a,a.pendingLanes),t1=0,MA=null);var w=a.pendingLanes;if(w===0&&(Qh=null),b||aie(a),w=$(i),m=m.stateNode,ii&&typeof ii.onCommitFiberRoot==\"function\")try{var S=(m.current.flags&128)===128;switch(w){case hc:var B=o$;break;case ul:B=a$;break;case Hf:B=S2;break;case n7:B=i$;break;default:B=S2}ii.onCommitFiberRoot(C2,m,B,S)}catch(ue){Uf||(Uf=!0,console.error(\"React instrumentation encountered an error: %o\",ue))}if(Df&&a.memoizedUpdaters.clear(),Jit(),l!==null){S=ye.T,B=zr.p,zr.p=hc,ye.T=null;try{var z=a.onRecoverableError;for(m=0;m<l.length;m++){var q=l[m],ce=rst(q.stack);Te(q.source,z,q.value,ce)}}finally{ye.T=S,zr.p=B}}(ml&3)!==0&&D8(),Pf(a),w=a.pendingLanes,(i&261930)!==0&&(w&42)!==0?(w7=!0,a===aq?RA++:(RA=0,aq=a)):RA=0,b||Hb(i,Bp),L8(0,!1)}}function rst(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 eie(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,w8(i)))}function D8(){return Jae(),Yae(),Xae(),tie()}function tie(){if(qo!==L7)return!1;var a=Jh,i=rq;rq=0;var l=$(ml),m=Hf===0||Hf>l?Hf:l;l=ye.T;var b=zr.p;try{zr.p=m,ye.T=null;var w=oq;oq=null,m=Jh;var S=ml;if(qo=Zh,X2=Jh=null,ml=0,(hr&(ia|xc))!==ba)throw Error(\"Cannot flush passive effects while already rendering.\");ic(S),iq=!0,F7=!1;var B=0;if(Ip=null,B=ma(),hl===oue)x8(Bp,B,Rp);else{var z=Bp,q=B,ce=hl===tq;!In||q<=z||(ho?ho.run(console.timeStamp.bind(console,ce?\"Waiting for Paint\":\"Waiting\",z,q,er,Qt,\"secondary-light\")):console.timeStamp(ce?\"Waiting for Paint\":\"Waiting\",z,q,er,Qt,\"secondary-light\"))}z=hr,hr|=xc;var ue=m.current;ck(),Uae(ue);var te=m.current;ue=nq,ck(),Rae(m,te,S,w,ue),aie(m),hr=z;var pe=ma();if(te=B,ue=ho,Ip!==null?$ne(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),L8(0,!1),F7?m===MA?t1++:(t1=0,MA=m):t1=0,F7=iq=!1,ii&&typeof ii.onPostCommitFiberRoot==\"function\")try{ii.onPostCommitFiberRoot(C2,m)}catch($e){Uf||(Uf=!0,console.error(\"React instrumentation encountered an error: %o\",$e))}var Oe=m.current.stateNode;return Oe.effectDuration=0,Oe.passiveEffectDuration=0,!0}finally{zr.p=b,ye.T=l,eie(a,i)}}function rie(a,i,l){i=sc(l,i),ooe(i),i=Jz(a.stateNode,i,2),a=Ah(a,i,2),a!==null&&(Ii(a,2),Pf(a))}function Fr(a,i,l){if(ev=!1,a.tag===3)rie(a,a,l);else{for(;i!==null;){if(i.tag===3){rie(i,a,l);return}if(i.tag===1){var m=i.stateNode;if(typeof i.type.getDerivedStateFromError==\"function\"||typeof m.componentDidCatch==\"function\"&&(Qh===null||!Qh.has(m))){a=sc(l,a),ooe(a),l=Yz(2),m=Ah(i,l,2),m!==null&&(Xz(l,m,i,a),Ii(m,2),Pf(m));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 vj(a,i,l){var m=a.pingCache;if(m===null){m=a.pingCache=new vut;var b=new Set;m.set(i,b)}else b=m.get(i),b===void 0&&(b=new Set,m.set(i,b));b.has(l)||(Y$=!0,b.add(l),m=nst.bind(null,a,i,l),Df&&H8(a,l),i.then(m,m))}function nst(a,i,l){var m=a.pingCache;m!==null&&m.delete(i),a.pingedLanes|=a.suspendedLanes&l,a.warmLanes&=~l,(l&127)!==0?0>zf&&(Fh=zf=Lo(),cA=h7(\"Promise Resolved\"),zh=y7):(l&4194048)!==0&&0>Yc&&(jf=Yc=Lo(),lA=h7(\"Promise Resolved\"),M$=y7),Lae()&&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===P7&&(Dt&62914560)===Dt&&ma()-U7<rue?(hr&ia)===ba&&b2(a,0):X$|=l,e1===Dt&&(e1=0)),Pf(a)}function nie(a,i){i===0&&(i=jr()),a=ai(a,i),a!==null&&(Ii(a,i),Pf(a))}function ost(a){var i=a.memoizedState,l=0;i!==null&&(l=i.retryLane),nie(a,l)}function ast(a,i){var l=0;switch(a.tag){case 31:case 13:var m=a.stateNode,b=a.memoizedState;b!==null&&(l=b.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error(\"Pinged unknown suspense boundary type. This is probably a bug in React.\")}m!==null&&m.delete(i),nie(a,l)}function wj(a,i,l){if((i.subtreeFlags&67117056)!==0)for(i=i.child;i!==null;){var m=a,b=i,w=b.type===Jk;w=l||w,b.tag!==22?b.flags&67108864?w&&Te(b,oie,m,b):wj(m,b,w):b.memoizedState===null&&(w&&b.flags&8192?Te(b,oie,m,b):b.subtreeFlags&67108864&&Te(b,wj,m,b,w)),i=i.sibling}}function oie(a,i){dt(!0);try{Iae(i),Dae(i),Pae(a,i.alternate,i,!1),Mae(a,i,0,null,!1,0)}finally{dt(!1)}}function aie(a){var i=!0;a.current.mode&(si|ll)||(i=!1),wj(a,a.current,i)}function iie(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\",z7!==null){if(z7.has(i))return;z7.add(i)}else z7=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 H8(a,i){Df&&a.memoizedUpdaters.forEach(function(l){$c(a,l,i)})}function ist(a,i){var l=ye.actQueue;return l!==null?(l.push(i),Aut):n$(a,i)}function sst(a){Lae()&&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?j7=tv=a:tv=tv.next=a),$7=!0,ye.actQueue!==null?cq||(cq=!0,lie()):sq||(sq=!0,lie())}function L8(a,i){if(!uq&&$7){uq=!0;do for(var l=!1,m=j7;m!==null;){if(!i)if(a!==0){var b=m.pendingLanes;if(b===0)var w=0;else{var S=m.suspendedLanes,B=m.pingedLanes;w=(1<<31-Mi(42|a)+1)-1,w&=b&~(S&~B),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(l=!0,uie(m,w))}else w=Dt,w=Hr(m,m===mn?w:0,m.cancelPendingCommit!==null||m.timeoutHandle!==a1),(w&3)===0||Lr(m,w)||(l=!0,uie(m,w));m=m.next}while(l);uq=!1}}function cst(){DA=window.event,Ej()}function Ej(){$7=cq=sq=!1;var a=0;Yh!==0&&hst()&&(a=Yh);for(var i=ma(),l=null,m=j7;m!==null;){var b=m.next,w=sie(m,i);w===0?(m.next=null,l===null?j7=b:l.next=b,b===null&&(tv=l)):(l=m,(a!==0||(w&3)!==0)&&($7=!0)),m=b}qo!==Zh&&qo!==L7||L8(a,!1),Yh!==0&&(Yh=0)}function sie(a,i){for(var l=a.suspendedLanes,m=a.pingedLanes,b=a.expirationTimes,w=a.pendingLanes&-62914561;0<w;){var S=31-Mi(w),B=1<<S,z=b[S];z===-1?((B&l)===0||(B&m)!==0)&&(b[S]=pp(B,i)):z<=i&&(a.expiredLanes|=B),w&=~B}if(i=mn,l=Dt,l=Hr(a,a===i?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==a1),m=a.callbackNode,l===0||a===i&&(Vr===Yb||Vr===Xb)||a.cancelPendingCommit!==null)return m!==null&&Aj(m),a.callbackNode=null,a.callbackPriority=0;if((l&3)===0||Lr(a,l)){if(i=l&-l,i!==a.callbackPriority||ye.actQueue!==null&&m!==lq)Aj(m);else return i;switch($(l)){case hc:case ul:l=a$;break;case Hf:l=S2;break;case n7:l=i$;break;default:l=S2}return m=cie.bind(null,a),ye.actQueue!==null?(ye.actQueue.push(m),l=lq):l=n$(l,m),a.callbackPriority=i,a.callbackNode=l,i}return m!==null&&Aj(m),a.callbackPriority=2,a.callbackNode=null,2}function cie(a,i){if(w7=v7=!1,DA=window.event,qo!==Zh&&qo!==L7)return a.callbackNode=null,a.callbackPriority=0,null;var l=a.callbackNode;if(hl===H7&&(hl=tq),D8()&&a.callbackNode!==l)return null;var m=Dt;return m=Hr(a,a===mn?m:0,a.cancelPendingCommit!==null||a.timeoutHandle!==a1),m===0?null:(zae(a,m,i),sie(a,ma()),a.callbackNode!=null&&a.callbackNode===l?cie.bind(null,a):null)}function uie(a,i){if(D8())return null;v7=w7,w7=!1,zae(a,i,!0)}function Aj(a){a!==lq&&a!==null&&Yst(a)}function lie(){ye.actQueue!==null&&ye.actQueue.push(function(){return Ej(),null}),Mut(function(){(hr&(ia|xc))!==ba?n$(o$,cst):Ej()})}function Sj(){if(Yh===0){var a=Gb;a===0&&(a=e7,e7<<=1,(e7&261888)===0&&(e7=256)),Yh=a}return Yh}function fie(a){return a==null||typeof a==\"symbol\"||typeof a==\"boolean\"?null:typeof a==\"function\"?a:(rr(a,\"action\"),y8(\"\"+a))}function die(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 ust(a,i,l,m,b){if(i===\"submit\"&&l&&l.stateNode===b){var w=fie((b[Oi]||null).action),S=m.submitter;S&&(i=(i=S[Oi]||null)?fie(i.formAction):S.getAttribute(\"formAction\"),i!==null&&(w=i,S=null));var B=new c7(\"action\",\"action\",null,m,b);a.push({event:B,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Yh!==0){var z=S?die(b,S):new FormData(b),q={pending:!0,data:z,method:b.method,action:w};Object.freeze(q),qz(l,q,null,z)}}else typeof w==\"function\"&&(B.preventDefault(),z=S?die(b,S):new FormData(b),q={pending:!0,data:z,method:b.method,action:w},Object.freeze(q),qz(l,q,w,z))},currentTarget:b}]})}}function Fk(a,i,l){a.currentTarget=l;try{i(a)}catch(m){E$(m)}a.currentTarget=null}function pie(a,i){i=(i&4)!==0;for(var l=0;l<a.length;l++){var m=a[l];e:{var b=void 0,w=m.event;if(m=m.listeners,i)for(var S=m.length-1;0<=S;S--){var B=m[S],z=B.instance,q=B.currentTarget;if(B=B.listener,z!==b&&w.isPropagationStopped())break e;z!==null?Te(z,Fk,w,B,q):Fk(w,B,q),b=z}else for(S=0;S<m.length;S++){if(B=m[S],z=B.instance,q=B.currentTarget,B=B.listener,z!==b&&w.isPropagationStopped())break e;z!==null?Te(z,Fk,w,B,q):Fk(w,B,q),b=z}}}}function lr(a,i){fq.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[s$];l===void 0&&(l=i[s$]=new Set);var m=a+\"__bubble\";l.has(m)||(mie(i,a,2,!1),l.add(m))}function Cj(a,i,l){fq.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 m=0;i&&(m|=4),mie(l,a,m,i)}function Tj(a){if(!a[q7]){a[q7]=!0,lse.forEach(function(l){l!==\"selectionchange\"&&(fq.has(l)||Cj(l,!1,a),Cj(l,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[q7]||(i[q7]=!0,Cj(\"selectionchange\",!1,i))}}function mie(a,i,l,m){switch(Kie(i)){case hc:var b=$st;break;case ul:b=qst;break;default:b=jj}l=b.bind(null,i,l,a),b=void 0,!d$||i!==\"touchstart\"&&i!==\"touchmove\"&&i!==\"wheel\"||(b=!0),m?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 _j(a,i,l,m,b){var w=m;if((i&1)===0&&(i&2)===0&&m!==null)e:for(;;){if(m===null)return;var S=m.tag;if(S===3||S===4){var B=m.stateNode.containerInfo;if(B===b)break;if(S===4)for(S=m.return;S!==null;){var z=S.tag;if((z===3||z===4)&&S.stateNode.containerInfo===b)return;S=S.return}for(;B!==null;){if(S=We(B),S===null)return;if(z=S.tag,z===5||z===6||z===26||z===27){m=w=S;continue e}B=B.parentNode}}m=m.return}Cne(function(){var q=w,ce=QF(l),ue=[];e:{var te=Kse.get(a);if(te!==void 0){var pe=c7,Oe=a;switch(a){case\"keypress\":if(W4(l)===0)break e;case\"keydown\":case\"keyup\":pe=Lct;break;case\"focusin\":Oe=\"focus\",pe=y$;break;case\"focusout\":Oe=\"blur\",pe=y$;break;case\"beforeblur\":case\"afterblur\":pe=y$;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=Mse;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":pe=_ct;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":pe=jct;break;case $se:case qse:case Gse:pe=Ict;break;case Vse:pe=qct;break;case\"scroll\":case\"scrollend\":pe=Cct;break;case\"wheel\":pe=Vct;break;case\"copy\":case\"cut\":case\"paste\":pe=Rct;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":pe=Nse;break;case\"toggle\":case\"beforetoggle\":pe=Wct}var $e=(i&4)!==0,Sn=!$e&&(a===\"scroll\"||a===\"scrollend\"),fr=$e?te!==null?te+\"Capture\":null:te;$e=[];for(var ee=q,oe;ee!==null;){var se=ee;if(oe=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||oe===null||fr===null||(se=b8(ee,fr),se!=null&&$e.push(F8(ee,se,oe))),Sn)break;ee=ee.return}0<$e.length&&(te=new pe(te,Oe,null,l,ce),ue.push({event:te,listeners:$e}))}}if((i&7)===0){e:{if(te=a===\"mouseover\"||a===\"pointerover\",pe=a===\"mouseout\"||a===\"pointerout\",te&&l!==J8&&(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=q,Oe=Oe?We(Oe):null,Oe!==null&&(Sn=M(Oe),$e=Oe.tag,Oe!==Sn||$e!==5&&$e!==27&&$e!==6)&&(Oe=null)):(pe=null,Oe=q),pe!==Oe)){if($e=Mse,se=\"onMouseLeave\",fr=\"onMouseEnter\",ee=\"mouse\",(a===\"pointerout\"||a===\"pointerover\")&&($e=Nse,se=\"onPointerLeave\",fr=\"onPointerEnter\",ee=\"pointer\"),Sn=pe==null?te:Ve(pe),oe=Oe==null?te:Ve(Oe),te=new $e(se,ee+\"leave\",pe,l,ce),te.target=Sn,te.relatedTarget=oe,se=null,We(ce)===q&&($e=new $e(fr,ee+\"enter\",Oe,l,ce),$e.target=oe,$e.relatedTarget=Sn,se=$e),Sn=se,pe&&Oe)t:{for($e=lst,fr=pe,ee=Oe,oe=0,se=fr;se;se=$e(se))oe++;se=0;for(var xe=ee;xe;xe=$e(xe))se++;for(;0<oe-se;)fr=$e(fr),oe--;for(;0<se-oe;)ee=$e(ee),se--;for(;oe--;){if(fr===ee||ee!==null&&fr===ee.alternate){$e=fr;break t}fr=$e(fr),ee=$e(ee)}$e=null}else $e=null;pe!==null&&hie(ue,te,pe,$e,!1),Oe!==null&&Sn!==null&&hie(ue,Sn,Oe,$e,!0)}}e:{if(te=q?Ve(q):window,pe=te.nodeName&&te.nodeName.toLowerCase(),pe===\"select\"||pe===\"input\"&&te.type===\"file\")var Le=Rne;else if(Ine(te))if(zse)Le=Eit;else{Le=vit;var xt=xit}else pe=te.nodeName,!pe||pe.toLowerCase()!==\"input\"||te.type!==\"checkbox\"&&te.type!==\"radio\"?q&&h8(q.elementType)&&(Le=Rne):Le=wit;if(Le&&(Le=Le(a,q))){Pne(ue,Le,l,ce);break e}xt&&xt(a,te,q),a===\"focusout\"&&q&&te.type===\"number\"&&q.memoizedProps.value!=null&&fn(te,\"number\",te.value)}switch(xt=q?Ve(q):window,a){case\"focusin\":(Ine(xt)||xt.contentEditable===\"true\")&&(R2=xt,g$=q,oA=null);break;case\"focusout\":oA=g$=R2=null;break;case\"mousedown\":x$=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":x$=!1,Lne(ue,l,ce);break;case\"selectionchange\":if(Yct)break;case\"keydown\":case\"keyup\":Lne(ue,l,ce)}var st;if(b$)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?kne(a,l)&&(et=\"onCompositionEnd\"):a===\"keydown\"&&l.keyCode===Use&&(et=\"onCompositionStart\");et&&(Dse&&l.locale!==\"ko\"&&(P2||et!==\"onCompositionStart\"?et===\"onCompositionEnd\"&&P2&&(st=Tne()):(Oh=ce,p$=\"value\"in Oh?Oh.value:Oh.textContent,P2=!0)),xt=zk(q,et),0<xt.length&&(et=new Ose(et,a,null,l,ce),ue.push({event:et,listeners:xt}),st?et.data=st:(st=Bne(l),st!==null&&(et.data=st)))),(st=Zct?hit(a,l):yit(a,l))&&(et=zk(q,\"onBeforeInput\"),0<et.length&&(xt=new Oct(\"onBeforeInput\",\"beforeinput\",null,l,ce),ue.push({event:xt,listeners:et}),xt.data=st)),ust(ue,a,q,l,ce)}pie(ue,i)})}function F8(a,i,l){return{instance:a,listener:i,currentTarget:l}}function zk(a,i){for(var l=i+\"Capture\",m=[];a!==null;){var b=a,w=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||w===null||(b=b8(a,l),b!=null&&m.unshift(F8(a,b,w)),b=b8(a,i),b!=null&&m.push(F8(a,b,w))),a.tag===3)return m;a=a.return}return[]}function lst(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function hie(a,i,l,m,b){for(var w=i._reactName,S=[];l!==null&&l!==m;){var B=l,z=B.alternate,q=B.stateNode;if(B=B.tag,z!==null&&z===m)break;B!==5&&B!==26&&B!==27||q===null||(z=q,b?(q=b8(l,w),q!=null&&S.unshift(F8(l,q,z))):b||(q=b8(l,w),q!=null&&S.push(F8(l,q,z)))),l=l.return}S.length!==0&&a.push({event:i,listeners:S})}function kj(a,i){fit(a,i),a!==\"input\"&&a!==\"textarea\"&&a!==\"select\"||i==null||i.value!==null||Pse||(Pse=!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:c$};h8(a)||typeof i.is==\"string\"||pit(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,m){i!==l&&(l=kh(l),kh(i)!==l&&(m[a]=i))}function fst(a,i,l){i.forEach(function(m){l[gie(m)]=m===\"style\"?Ij(a):a.getAttribute(m)})}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 yie(a,i){return a=a.namespaceURI===a7||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(Sut,`\\n`).replace(Cut,\"\")}function bie(a,i){return i=kh(i),kh(a)===i}function dn(a,i,l,m,b,w){switch(l){case\"children\":typeof m==\"string\"?(K4(m,i,!1),i===\"body\"||i===\"textarea\"&&m===\"\"||m8(a,m)):(typeof m==\"number\"||typeof m==\"bigint\")&&(K4(\"\"+m,i,!1),i!==\"body\"&&m8(a,\"\"+m));break;case\"className\":an(a,\"class\",m);break;case\"tabIndex\":an(a,\"tabindex\",m);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":an(a,l,m);break;case\"style\":Ene(a,m,w);break;case\"data\":if(i!==\"object\"){an(a,\"data\",m);break}case\"src\":case\"href\":if(m===\"\"&&(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(m==null||typeof m==\"function\"||typeof m==\"symbol\"||typeof m==\"boolean\"){a.removeAttribute(l);break}rr(m,l),m=y8(\"\"+m),a.setAttribute(l,m);break;case\"action\":case\"formAction\":if(m!=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 m==\"function\"&&(b.encType==null&&b.method==null||K7||(K7=!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||V7||(V7=!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\"||G7?i!==\"button\"||b.type==null||b.type===\"submit\"||G7?typeof m==\"function\"&&(b.name==null||yue||(yue=!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||K7||(K7=!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||V7||(V7=!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.\"))):(G7=!0,console.error(\\'A button can only specify a formAction along with type=\"submit\" or no type.\\')):(G7=!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 m==\"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(m==null||typeof m==\"symbol\"||typeof m==\"boolean\"){a.removeAttribute(l);break}rr(m,l),m=y8(\"\"+m),a.setAttribute(l,m);break;case\"onClick\":m!=null&&(typeof m!=\"function\"&&Rf(l,m),a.onclick=yp);break;case\"onScroll\":m!=null&&(typeof m!=\"function\"&&Rf(l,m),lr(\"scroll\",a));break;case\"onScrollEnd\":m!=null&&(typeof m!=\"function\"&&Rf(l,m),lr(\"scrollend\",a));break;case\"dangerouslySetInnerHTML\":if(m!=null){if(typeof m!=\"object\"||!(\"__html\"in m))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=m.__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=m&&typeof m!=\"function\"&&typeof m!=\"symbol\";break;case\"muted\":a.muted=m&&typeof m!=\"function\"&&typeof m!=\"symbol\";break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":break;case\"autoFocus\":break;case\"xlinkHref\":if(m==null||typeof m==\"function\"||typeof m==\"boolean\"||typeof m==\"symbol\"){a.removeAttribute(\"xlink:href\");break}rr(m,l),l=y8(\"\"+m),a.setAttributeNS(r1,\"xlink:href\",l);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":m!=null&&typeof m!=\"function\"&&typeof m!=\"symbol\"?(rr(m,l),a.setAttribute(l,\"\"+m)):a.removeAttribute(l);break;case\"inert\":m!==\"\"||W7[l]||(W7[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\":m&&typeof m!=\"function\"&&typeof m!=\"symbol\"?a.setAttribute(l,\"\"):a.removeAttribute(l);break;case\"capture\":case\"download\":m===!0?a.setAttribute(l,\"\"):m!==!1&&m!=null&&typeof m!=\"function\"&&typeof m!=\"symbol\"?(rr(m,l),a.setAttribute(l,m)):a.removeAttribute(l);break;case\"cols\":case\"rows\":case\"size\":case\"span\":m!=null&&typeof m!=\"function\"&&typeof m!=\"symbol\"&&!isNaN(m)&&1<=m?(rr(m,l),a.setAttribute(l,m)):a.removeAttribute(l);break;case\"rowSpan\":case\"start\":m==null||typeof m==\"function\"||typeof m==\"symbol\"||isNaN(m)?a.removeAttribute(l):(rr(m,l),a.setAttribute(l,m));break;case\"popover\":lr(\"beforetoggle\",a),lr(\"toggle\",a),on(a,\"popover\",m);break;case\"xlinkActuate\":oi(a,r1,\"xlink:actuate\",m);break;case\"xlinkArcrole\":oi(a,r1,\"xlink:arcrole\",m);break;case\"xlinkRole\":oi(a,r1,\"xlink:role\",m);break;case\"xlinkShow\":oi(a,r1,\"xlink:show\",m);break;case\"xlinkTitle\":oi(a,r1,\"xlink:title\",m);break;case\"xlinkType\":oi(a,r1,\"xlink:type\",m);break;case\"xmlBase\":oi(a,dq,\"xml:base\",m);break;case\"xmlLang\":oi(a,dq,\"xml:lang\",m);break;case\"xmlSpace\":oi(a,dq,\"xml:space\",m);break;case\"is\":w!=null&&console.error(\\'Cannot update the \"is\" prop after it has been initialized.\\'),on(a,\"is\",m);break;case\"innerText\":case\"textContent\":break;case\"popoverTarget\":bue||m==null||typeof m!=\"object\"||(bue=!0,console.error(\"The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.\",m));default:!(2<l.length)||l[0]!==\"o\"&&l[0]!==\"O\"||l[1]!==\"n\"&&l[1]!==\"N\"?(l=Ane(l),on(a,l,m)):Lb.hasOwnProperty(l)&&m!=null&&typeof m!=\"function\"&&Rf(l,m)}}function Bj(a,i,l,m,b,w){switch(l){case\"style\":Ene(a,m,w);break;case\"dangerouslySetInnerHTML\":if(m!=null){if(typeof m!=\"object\"||!(\"__html\"in m))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=m.__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 m==\"string\"?m8(a,m):(typeof m==\"number\"||typeof m==\"bigint\")&&m8(a,\"\"+m);break;case\"onScroll\":m!=null&&(typeof m!=\"function\"&&Rf(l,m),lr(\"scroll\",a));break;case\"onScrollEnd\":m!=null&&(typeof m!=\"function\"&&Rf(l,m),lr(\"scrollend\",a));break;case\"onClick\":m!=null&&(typeof m!=\"function\"&&Rf(l,m),a.onclick=yp);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"innerHTML\":case\"ref\":break;case\"innerText\":case\"textContent\":break;default:if(Lb.hasOwnProperty(l))m!=null&&typeof m!=\"function\"&&Rf(l,m);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 m==\"function\")){typeof w!=\"function\"&&w!==null&&(l in a?a[l]=null:a.hasAttribute(l)&&a.removeAttribute(l)),a.addEventListener(i,m,b);break e}l in a?a[l]=m:m===!0?a.setAttribute(l,\"\"):on(a,l,m)}}}function Na(a,i,l){switch(kj(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 m=!1,b=!1,w;for(w in l)if(l.hasOwnProperty(w)){var S=l[w];if(S!=null)switch(w){case\"src\":m=!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),m&&dn(a,i,\"src\",l.src,l,null);return;case\"input\":Ar(\"input\",l),lr(\"invalid\",a);var B=w=S=b=null,z=null,q=null;for(m in l)if(l.hasOwnProperty(m)){var ce=l[m];if(ce!=null)switch(m){case\"name\":b=ce;break;case\"type\":S=ce;break;case\"checked\":z=ce;break;case\"defaultChecked\":q=ce;break;case\"value\":w=ce;break;case\"defaultValue\":B=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,m,ce,l,null)}}wn(a,l),En(a,w,B,z,q,S,b,!1);return;case\"select\":Ar(\"select\",l),lr(\"invalid\",a),m=S=w=null;for(b in l)if(l.hasOwnProperty(b)&&(B=l[b],B!=null))switch(b){case\"value\":w=B;break;case\"defaultValue\":S=B;break;case\"multiple\":m=B;default:dn(a,i,b,B,l,null)}lf(a,l),i=w,l=S,a.multiple=!!m,i!=null?bs(a,!!m,i,!1):l!=null&&bs(a,!!m,l,!0);return;case\"textarea\":Ar(\"textarea\",l),lr(\"invalid\",a),w=b=m=null;for(S in l)if(l.hasOwnProperty(S)&&(B=l[S],B!=null))switch(S){case\"value\":m=B;break;case\"defaultValue\":b=B;break;case\"children\":w=B;break;case\"dangerouslySetInnerHTML\":if(B!=null)throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");break;default:dn(a,i,S,B,l,null)}ff(a,l),pf(a,m,b,w);return;case\"option\":cf(a,l);for(z in l)l.hasOwnProperty(z)&&(m=l[z],m!=null)&&(z===\"selected\"?a.selected=m&&typeof m!=\"function\"&&typeof m!=\"symbol\":dn(a,i,z,m,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(m=0;m<OA.length;m++)lr(OA[m],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(q in l)if(l.hasOwnProperty(q)&&(m=l[q],m!=null))switch(q){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(i+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:dn(a,i,q,m,l,null)}return;default:if(h8(i)){for(ce in l)l.hasOwnProperty(ce)&&(m=l[ce],m!==void 0&&Bj(a,i,ce,m,l,void 0));return}}for(B in l)l.hasOwnProperty(B)&&(m=l[B],m!=null&&dn(a,i,B,m,l,null))}function dst(a,i,l,m){switch(kj(i,m),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,B=null,z=null,q=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\":z=ue;default:m.hasOwnProperty(pe)||dn(a,i,pe,null,m,ue)}}for(var te in m){var pe=m[te];if(ue=l[te],m.hasOwnProperty(te)&&(pe!=null||ue!=null))switch(te){case\"type\":w=pe;break;case\"name\":b=pe;break;case\"checked\":q=pe;break;case\"defaultChecked\":ce=pe;break;case\"value\":S=pe;break;case\"defaultValue\":B=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,m,ue)}}i=l.type===\"checkbox\"||l.type===\"radio\"?l.checked!=null:l.value!=null,m=m.type===\"checkbox\"||m.type===\"radio\"?m.checked!=null:m.value!=null,i||!m||hue||(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\"),hue=!0),!i||m||mue||(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\"),mue=!0),sf(a,S,B,z,q,ce,w,b);return;case\"select\":pe=S=B=te=null;for(w in l)if(z=l[w],l.hasOwnProperty(w)&&z!=null)switch(w){case\"value\":break;case\"multiple\":pe=z;default:m.hasOwnProperty(w)||dn(a,i,w,null,m,z)}for(b in m)if(w=m[b],z=l[b],m.hasOwnProperty(b)&&(w!=null||z!=null))switch(b){case\"value\":te=w;break;case\"defaultValue\":B=w;break;case\"multiple\":S=w;default:w!==z&&dn(a,i,b,w,m,z)}m=B,i=S,l=pe,te!=null?bs(a,!!i,te,!1):!!l!=!!i&&(m!=null?bs(a,!!i,m,!0):bs(a,!!i,i?[]:\"\",!1));return;case\"textarea\":pe=te=null;for(B in l)if(b=l[B],l.hasOwnProperty(B)&&b!=null&&!m.hasOwnProperty(B))switch(B){case\"value\":break;case\"children\":break;default:dn(a,i,B,null,m,b)}for(S in m)if(b=m[S],w=l[S],m.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,m,w)}df(a,te,pe);return;case\"option\":for(var Oe in l)te=l[Oe],l.hasOwnProperty(Oe)&&te!=null&&!m.hasOwnProperty(Oe)&&(Oe===\"selected\"?a.selected=!1:dn(a,i,Oe,null,m,te));for(z in m)te=m[z],pe=l[z],m.hasOwnProperty(z)&&te!==pe&&(te!=null||pe!=null)&&(z===\"selected\"?a.selected=te&&typeof te!=\"function\"&&typeof te!=\"symbol\":dn(a,i,z,te,m,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 $e in l)te=l[$e],l.hasOwnProperty($e)&&te!=null&&!m.hasOwnProperty($e)&&dn(a,i,$e,null,m,te);for(q in m)if(te=m[q],pe=l[q],m.hasOwnProperty(q)&&te!==pe&&(te!=null||pe!=null))switch(q){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,q,te,m,pe)}return;default:if(h8(i)){for(var Sn in l)te=l[Sn],l.hasOwnProperty(Sn)&&te!==void 0&&!m.hasOwnProperty(Sn)&&Bj(a,i,Sn,void 0,m,te);for(ce in m)te=m[ce],pe=l[ce],!m.hasOwnProperty(ce)||te===pe||te===void 0&&pe===void 0||Bj(a,i,ce,te,m,pe);return}}for(var fr in l)te=l[fr],l.hasOwnProperty(fr)&&te!=null&&!m.hasOwnProperty(fr)&&dn(a,i,fr,null,m,te);for(ue in m)te=m[ue],pe=l[ue],!m.hasOwnProperty(ue)||te===pe||te==null&&pe==null||dn(a,i,ue,te,m,pe)}function gie(a){switch(a){case\"class\":return\"className\";case\"for\":return\"htmlFor\";default:return a}}function Ij(a){var i={};a=a.style;for(var l=0;l<a.length;l++){var m=a[l];i[m]=a.getPropertyValue(m)}return i}function xie(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 m,b=m=\"\",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),m+=b+w+\":\"+(\"\"+S).trim()):typeof S!=\"number\"||S===0||Bse.has(w)?(rn(S,w),m+=b+w.replace(Sse,\"-$1\").toLowerCase().replace(Cse,\"-ms-\")+\":\"+(\"\"+S).trim()):m+=b+w.replace(Sse,\"-$1\").toLowerCase().replace(Cse,\"-ms-\")+\":\"+S+\"px\",b=\";\")}m=m||null,i=a.getAttribute(\"style\"),i!==m&&(m=kh(m),kh(i)!==m&&(l.style=Ij(a)))}}function Gc(a,i,l,m,b,w){if(b.delete(l),a=a.getAttribute(l),a===null)switch(typeof m){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return}else if(m!=null)switch(typeof m){case\"function\":case\"symbol\":case\"boolean\":break;default:if(rr(m,i),a===\"\"+m)return}pa(i,a,m,w)}function vie(a,i,l,m,b,w){if(b.delete(l),a=a.getAttribute(l),a===null){switch(typeof m){case\"function\":case\"symbol\":return}if(!m)return}else switch(typeof m){case\"function\":case\"symbol\":break;default:if(m)return}pa(i,a,m,w)}function Pj(a,i,l,m,b,w){if(b.delete(l),a=a.getAttribute(l),a===null)switch(typeof m){case\"undefined\":case\"function\":case\"symbol\":return}else if(m!=null)switch(typeof m){case\"function\":case\"symbol\":break;default:if(rr(m,l),a===\"\"+m)return}pa(i,a,m,w)}function wie(a,i,l,m,b,w){if(b.delete(l),a=a.getAttribute(l),a===null)switch(typeof m){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return;default:if(isNaN(m))return}else if(m!=null)switch(typeof m){case\"function\":case\"symbol\":case\"boolean\":break;default:if(!isNaN(m)&&(rr(m,i),a===\"\"+m))return}pa(i,a,m,w)}function Rj(a,i,l,m,b,w){if(b.delete(l),a=a.getAttribute(l),a===null)switch(typeof m){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return}else if(m!=null)switch(typeof m){case\"function\":case\"symbol\":case\"boolean\":break;default:if(rr(m,i),l=y8(\"\"+m),a===l)return}pa(i,a,m,w)}function Eie(a,i,l,m){for(var b={},w=new Set,S=a.attributes,B=0;B<S.length;B++)switch(S[B].name.toLowerCase()){case\"value\":break;case\"checked\":break;case\"selected\":break;default:w.add(S[B].name)}if(h8(i)){for(var z in l)if(l.hasOwnProperty(z)){var q=l[z];if(q!=null){if(Lb.hasOwnProperty(z))typeof q!=\"function\"&&Rf(z,q);else if(l.suppressHydrationWarning!==!0)switch(z){case\"children\":typeof q!=\"string\"&&typeof q!=\"number\"||pa(\"children\",a.textContent,q,b);continue;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":continue;case\"dangerouslySetInnerHTML\":S=a.innerHTML,q=q?q.__html:void 0,q!=null&&(q=yie(a,q),pa(z,S,q,b));continue;case\"style\":w.delete(z),xie(a,q,b);continue;case\"offsetParent\":case\"offsetTop\":case\"offsetLeft\":case\"offsetWidth\":case\"offsetHeight\":case\"isContentEditable\":case\"outerText\":case\"outerHTML\":w.delete(z.toLowerCase()),console.error(\"Assignment to read-only property will result in a no-op: `%s`\",z);continue;case\"className\":w.delete(\"class\"),S=mp(a,\"class\",q),pa(\"className\",S,q,b);continue;default:m.context===Hp&&i!==\"svg\"&&i!==\"math\"?w.delete(z.toLowerCase()):w.delete(z),S=mp(a,z,q),pa(z,S,q,b)}}}}else for(q in l)if(l.hasOwnProperty(q)&&(z=l[q],z!=null)){if(Lb.hasOwnProperty(q))typeof z!=\"function\"&&Rf(q,z);else if(l.suppressHydrationWarning!==!0)switch(q){case\"children\":typeof z!=\"string\"&&typeof z!=\"number\"||pa(\"children\",a.textContent,z,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,z=z?z.__html:void 0,z!=null&&(z=yie(a,z),S!==z&&(b[q]={__html:S}));continue;case\"className\":Gc(a,q,\"class\",z,w,b);continue;case\"tabIndex\":Gc(a,q,\"tabindex\",z,w,b);continue;case\"style\":w.delete(q),xie(a,z,b);continue;case\"multiple\":w.delete(q),pa(q,a.multiple,z,b);continue;case\"muted\":w.delete(q),pa(q,a.muted,z,b);continue;case\"autoFocus\":w.delete(\"autofocus\"),pa(q,a.autofocus,z,b);continue;case\"data\":if(i!==\"object\"){w.delete(q),S=a.getAttribute(\"data\"),pa(q,S,z,b);continue}case\"src\":case\"href\":if(!(z!==\"\"||i===\"a\"&&q===\"href\"||i===\"object\"&&q===\"data\")){console.error(q===\"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.\\',q,q);continue}Rj(a,q,q,z,w,b);continue;case\"action\":case\"formAction\":if(S=a.getAttribute(q),typeof z==\"function\"){w.delete(q.toLowerCase()),q===\"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===Tut){w.delete(q.toLowerCase()),pa(q,\"function\",z,b);continue}Rj(a,q,q.toLowerCase(),z,w,b);continue;case\"xlinkHref\":Rj(a,q,\"xlink:href\",z,w,b);continue;case\"contentEditable\":Pj(a,q,\"contenteditable\",z,w,b);continue;case\"spellCheck\":Pj(a,q,\"spellcheck\",z,w,b);continue;case\"draggable\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":Pj(a,q,q,z,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\":vie(a,q,q.toLowerCase(),z,w,b);continue;case\"capture\":case\"download\":e:{B=a;var ce=S=q,ue=b;if(w.delete(ce),B=B.getAttribute(ce),B===null)switch(typeof z){case\"undefined\":case\"function\":case\"symbol\":break e;default:if(z===!1)break e}else if(z!=null)switch(typeof z){case\"function\":case\"symbol\":break;case\"boolean\":if(z===!0&&B===\"\")break e;break;default:if(rr(z,S),B===\"\"+z)break e}pa(S,B,z,ue)}continue;case\"cols\":case\"rows\":case\"size\":case\"span\":e:{if(B=a,ce=S=q,ue=b,w.delete(ce),B=B.getAttribute(ce),B===null)switch(typeof z){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":break e;default:if(isNaN(z)||1>z)break e}else if(z!=null)switch(typeof z){case\"function\":case\"symbol\":case\"boolean\":break;default:if(!(isNaN(z)||1>z)&&(rr(z,S),B===\"\"+z))break e}pa(S,B,z,ue)}continue;case\"rowSpan\":wie(a,q,\"rowspan\",z,w,b);continue;case\"start\":wie(a,q,q,z,w,b);continue;case\"xHeight\":Gc(a,q,\"x-height\",z,w,b);continue;case\"xlinkActuate\":Gc(a,q,\"xlink:actuate\",z,w,b);continue;case\"xlinkArcrole\":Gc(a,q,\"xlink:arcrole\",z,w,b);continue;case\"xlinkRole\":Gc(a,q,\"xlink:role\",z,w,b);continue;case\"xlinkShow\":Gc(a,q,\"xlink:show\",z,w,b);continue;case\"xlinkTitle\":Gc(a,q,\"xlink:title\",z,w,b);continue;case\"xlinkType\":Gc(a,q,\"xlink:type\",z,w,b);continue;case\"xmlBase\":Gc(a,q,\"xml:base\",z,w,b);continue;case\"xmlLang\":Gc(a,q,\"xml:lang\",z,w,b);continue;case\"xmlSpace\":Gc(a,q,\"xml:space\",z,w,b);continue;case\"inert\":z!==\"\"||W7[q]||(W7[q]=!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.\",q)),vie(a,q,q,z,w,b);continue;default:if(!(2<q.length)||q[0]!==\"o\"&&q[0]!==\"O\"||q[1]!==\"n\"&&q[1]!==\"N\"){B=Ane(q),S=!1,m.context===Hp&&i!==\"svg\"&&i!==\"math\"?w.delete(B.toLowerCase()):(ce=q.toLowerCase(),ce=i7.hasOwnProperty(ce)&&i7[ce]||null,ce!==null&&ce!==q&&(S=!0,w.delete(ce)),w.delete(B));e:if(ce=a,ue=B,B=z,qr(ue))if(ce.hasAttribute(ue))ce=ce.getAttribute(ue),rr(B,ue),B=ce===\"\"+B?B:ce;else{switch(typeof B){case\"function\":case\"symbol\":break e;case\"boolean\":if(ce=ue.toLowerCase().slice(0,5),ce!==\"data-\"&&ce!==\"aria-\")break e}B=B===void 0?void 0:null}else B=void 0;S||pa(q,B,z,b)}}}return 0<w.size&&l.suppressHydrationWarning!==!0&&fst(a,w,b),Object.keys(b).length===0?null:b}function pst(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 Aie(a){switch(a){case\"css\":case\"script\":case\"font\":case\"img\":case\"image\":case\"input\":case\"link\":return!0;default:return!1}}function mst(){if(typeof performance.getEntriesByType==\"function\"){for(var a=0,i=0,l=performance.getEntriesByType(\"resource\"),m=0;m<l.length;m++){var b=l[m],w=b.transferSize,S=b.initiatorType,B=b.duration;if(w&&B&&Aie(S)){for(S=0,B=b.responseEnd,m+=1;m<l.length;m++){var z=l[m],q=z.startTime;if(q>B)break;var ce=z.transferSize,ue=z.initiatorType;ce&&Aie(ue)&&(z=z.responseEnd,S+=ce*(z<B?1:(B-q)/(z-q)))}if(--m,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 jk(a){return a.nodeType===9?a:a.ownerDocument}function Sie(a){switch(a){case _2:return nv;case a7:return Z7;default:return Hp}}function Cie(a,i){if(a===Hp)switch(i){case\"svg\":return nv;case\"math\":return Z7;default:return Hp}return a===nv&&i===\"foreignObject\"?Hp:a}function Mj(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 hst(){var a=window.event;return a&&a.type===\"popstate\"?a===yq?!1:(yq=a,!0):(yq=null,!1)}function z8(){var a=window.event;return a&&a!==DA?a.type:null}function j8(){var a=window.event;return a&&a!==DA?a.timeStamp:-1.1}function yst(a){setTimeout(function(){throw a})}function bst(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 gst(){}function xst(a,i,l,m){dst(a,i,l,m),a[Oi]=m}function Tie(a){m8(a,\"\")}function vst(a,i,l){a.nodeValue=l}function _ie(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 wst(a,i){a.removeChild(i)}function Est(a,i){(a.nodeType===9?a.body:a.nodeName===\"HTML\"?a.ownerDocument.body:a).removeChild(i)}function kie(a,i){var l=i,m=0;do{var b=l.nextSibling;if(a.removeChild(l),b&&b.nodeType===8)if(l=b.data,l===UA||l===Q7){if(m===0){a.removeChild(b),w2(i);return}m--}else if(l===NA||l===Xh||l===o1||l===rv||l===n1)m++;else if(l===kut)$8(a.ownerDocument.documentElement);else if(l===Iut){l=a.ownerDocument.head,$8(l);for(var w=l.firstChild;w;){var S=w.nextSibling,B=w.nodeName;w[Z8]||B===\"SCRIPT\"||B===\"STYLE\"||B===\"LINK\"&&w.rel.toLowerCase()===\"stylesheet\"||l.removeChild(w),w=S}}else l===But&&$8(a.ownerDocument.body);l=b}while(l);w2(i)}function Bie(a,i){var l=a;a=0;do{var m=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||\"\"),m&&m.nodeType===8)if(l=m.data,l===UA){if(a===0)break;a--}else l!==NA&&l!==Xh&&l!==o1&&l!==rv||a++;l=m}while(l)}function Ast(a){Bie(a,!0)}function Sst(a){a=a.style,typeof a.setProperty==\"function\"?a.setProperty(\"display\",\"none\",\"important\"):a.display=\"none\"}function Cst(a){a.nodeValue=\"\"}function Tst(a){Bie(a,!1)}function _st(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 kst(a,i){a.nodeValue=i}function Oj(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\":Oj(l),_e(l);continue;case\"SCRIPT\":case\"STYLE\":continue;case\"LINK\":if(l.rel.toLowerCase()===\"stylesheet\")continue}a.removeChild(l)}}function Bst(a,i,l,m){for(;a.nodeType===1;){var b=l;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!m&&(a.nodeName!==\"INPUT\"||a.type!==\"hidden\"))break}else if(m){if(!a[Z8])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 Ist(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 Iie(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 Nj(a){return a.data===Xh||a.data===o1}function Uj(a){return a.data===rv||a.data===Xh&&a.ownerDocument.readyState!==xue}function Pst(a,i){var l=a.ownerDocument;if(a.data===o1)a._reactRetry=i;else if(a.data!==Xh||l.readyState!==xue)i();else{var m=function(){i(),l.removeEventListener(\"DOMContentLoaded\",m)};l.addEventListener(\"DOMContentLoaded\",m),a._reactRetry=m}}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===NA||i===rv||i===Xh||i===o1||i===n1||i===pq||i===gue)break;if(i===UA||i===Q7)return null}}return a}function Pie(a){if(a.nodeType===1){for(var i=a.nodeName.toLowerCase(),l={},m=a.attributes,b=0;b<m.length;b++){var w=m[b];l[gie(w.name)]=w.name.toLowerCase()===\"style\"?Ij(a):w.value}return{type:i,props:l}}return a.nodeType===8?a.data===n1?{type:\"Activity\",props:{}}:{type:\"Suspense\",props:{}}:a.nodeValue}function Rie(a,i,l){return l===null||l[_ut]!==!0?(a.nodeValue===i?a=null:(i=kh(i),a=kh(a.nodeValue)===i?null:a.nodeValue),a):null}function Dj(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===UA||l===Q7){if(i===0)return dc(a.nextSibling);i--}else l!==NA&&l!==rv&&l!==Xh&&l!==o1&&l!==n1||i++}a=a.nextSibling}return null}function Mie(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===NA||l===rv||l===Xh||l===o1||l===n1){if(i===0)return a;i--}else l!==UA&&l!==Q7||i++}a=a.previousSibling}return null}function Rst(a){w2(a)}function Mst(a){w2(a)}function Ost(a){w2(a)}function Oie(a,i,l,m,b){switch(b&&WF(a,m.ancestorInfo),i=jk(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 Nst(a,i,l,m){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]=m,l[Oi]=i}function $8(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);_e(a)}function $k(a){return typeof a.getRootNode==\"function\"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}function Nie(a,i,l){var m=ov;if(m&&typeof i==\"string\"&&i){var b=ur(i);b=\\'link[rel=\"\\'+a+\\'\"][href=\"\\'+b+\\'\"]\\',typeof l==\"string\"&&(b+=\\'[crossorigin=\"\\'+l+\\'\"]\\'),Cue.has(b)||(Cue.add(b),a={rel:a,crossOrigin:l,href:i},m.querySelector(b)===null&&(i=m.createElement(\"link\"),Na(i,\"link\",a),Ne(i),m.head.appendChild(i)))}}function Uie(a,i,l,m){var b=(b=Ph.current)?$k(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=zt(b).hoistableStyles,m=i.get(l),m||(m={type:\"style\",instance:null,count:0,state:null},i.set(l,m)),m):{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=zt(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(q8(a)))&&!w._p&&(S.instance=w,S.state.loading=HA|ru),!nu.has(a))){var B={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,B),w||Ust(b,a,B,S.state)}if(i&&m===null)throw l=`\\n\\n  - `+qk(i)+`\\n  + `+qk(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&&m!==null)throw l=`\\n\\n  - `+qk(i)+`\\n  + `+qk(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=zt(b).hoistableScripts,m=i.get(l),m||(m={type:\"script\",instance:null,count:0,state:null},i.set(l,m)),m):{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 qk(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 q8(a){return\\'link[rel=\"stylesheet\"][\\'+a+\"]\"}function Die(a){return Wt({},a,{\"data-precedence\":a.precedence,precedence:null})}function Ust(a,i,l,m){a.querySelector(\\'link[rel=\"preload\"][as=\"style\"][\\'+i+\"]\")?m.loading=HA:(i=a.createElement(\"link\"),m.preload=i,i.addEventListener(\"load\",function(){return m.loading|=HA}),i.addEventListener(\"error\",function(){return m.loading|=Aue}),Na(i,\"link\",l),Ne(i),a.head.appendChild(i))}function v2(a){return\\'[src=\"\\'+ur(a)+\\'\"]\\'}function G8(a){return\"script[async]\"+a}function Hie(a,i,l){if(i.count++,i.instance===null)switch(i.type){case\"style\":var m=a.querySelector(\\'style[data-href~=\"\\'+ur(l.href)+\\'\"]\\');if(m)return i.instance=m,Ne(m),m;var b=Wt({},l,{\"data-href\":l.href,\"data-precedence\":l.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement(\"style\"),Ne(m),Na(m,\"style\",b),Gk(m,l.precedence,a),i.instance=m;case\"stylesheet\":b=x2(l.href);var w=a.querySelector(q8(b));if(w)return i.state.loading|=ru,i.instance=w,Ne(w),w;m=Die(l),(b=nu.get(b))&&Hj(m,b),w=(a.ownerDocument||a).createElement(\"link\"),Ne(w);var S=w;return S._p=new Promise(function(B,z){S.onload=B,S.onerror=z}),Na(w,\"link\",m),i.state.loading|=ru,Gk(w,l.precedence,a),i.instance=w;case\"script\":return w=v2(l.src),(b=a.querySelector(G8(w)))?(i.instance=b,Ne(b),b):(m=l,(b=nu.get(w))&&(m=Wt({},l),Lj(m,b)),a=a.ownerDocument||a,b=a.createElement(\"script\"),Ne(b),Na(b,\"link\",m),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&&(m=i.instance,i.state.loading|=ru,Gk(m,l.precedence,a));return i.instance}function Gk(a,i,l){for(var m=l.querySelectorAll(\\'link[rel=\"stylesheet\"][data-precedence],style[data-precedence]\\'),b=m.length?m[m.length-1]:null,w=b,S=0;S<m.length;S++){var B=m[S];if(B.dataset.precedence===i)w=B;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 Hj(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function Lj(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}function Lie(a,i,l){if(J7===null){var m=new Map,b=J7=new Map;b.set(l,m)}else b=J7,m=b.get(l),m||(m=new Map,b.set(l,m));if(m.has(a))return m;for(m.set(a,null),l=l.getElementsByTagName(a),b=0;b<l.length;b++){var w=l[b];if(!(w[Z8]||w[Ua]||a===\"link\"&&w.getAttribute(\"rel\")===\"stylesheet\")&&w.namespaceURI!==_2){var S=w.getAttribute(i)||\"\";S=a+S;var B=m.get(S);B?B.push(w):m.set(S,[w])}}return m}function Fie(a,i,l){a=a.ownerDocument||a,a.head.insertBefore(l,i===\"title\"?a.querySelector(\"head > title\"):null)}function Dst(a,i,l){var m=!l.ancestorInfo.containerTagInScope;if(l.context===nv||i.itemProp!=null)return!m||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===\"\"){m&&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=pst(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)}m&&(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\"&&m&&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\"){m&&(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\":m&&console.error(\"Cannot render <%s> outside the main document. Try moving it into the root <head> tag.\",a)}return!1}function zie(a){return!(a.type===\"stylesheet\"&&(a.state.loading&Sue)===i1)}function Hst(a,i,l,m){if(l.type===\"stylesheet\"&&(typeof m.media!=\"string\"||matchMedia(m.media).matches!==!1)&&(l.state.loading&ru)===i1){if(l.instance===null){var b=x2(m.href),w=i.querySelector(q8(b));if(w){i=w._p,i!==null&&typeof i==\"object\"&&typeof i.then==\"function\"&&(a.count++,a=Vk.bind(a),i.then(a,a)),l.state.loading|=ru,l.instance=w,Ne(w);return}w=i.ownerDocument||i,m=Die(m),(b=nu.get(b))&&Hj(m,b),w=w.createElement(\"link\"),Ne(w);var S=w;S._p=new Promise(function(B,z){S.onload=B,S.onerror=z}),Na(w,\"link\",m),l.instance=w}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&Sue)===i1&&(a.count++,l=Vk.bind(a),i.addEventListener(\"load\",l),i.addEventListener(\"error\",l))}}function Lst(a,i){return a.stylesheets&&a.count===0&&Kk(a,a.stylesheets),0<a.count||0<a.imgCount?function(l){var m=setTimeout(function(){if(a.stylesheets&&Kk(a,a.stylesheets),a.unsuspend){var w=a.unsuspend;a.unsuspend=null,w()}},Out+i);0<a.imgBytes&&gq===0&&(gq=125*mst()*Uut);var b=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Kk(a,a.stylesheets),a.unsuspend)){var w=a.unsuspend;a.unsuspend=null,w()}},(a.imgBytes>gq?50:Nut)+i);return a.unsuspend=l,function(){a.unsuspend=null,clearTimeout(m),clearTimeout(b)}}:null}function Vk(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kk(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}function Kk(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Y7=new Map,i.forEach(Fst,a),Y7=null,Vk.call(a))}function Fst(a,i){if(!(i.state.loading&ru)){var l=Y7.get(a);if(l)var m=l.get(xq);else{l=new Map,Y7.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),m=S)}m&&l.set(xq,m)}b=i.instance,S=b.getAttribute(\"data-precedence\"),w=l.get(S)||m,w===m&&l.set(xq,b),l.set(S,b),this.count++,m=Vk.bind(this),b.addEventListener(\"load\",m),b.addEventListener(\"error\",m),w?w.parentNode.insertBefore(b,w.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(b,a.firstChild)),i.state.loading|=ru}}function zst(a,i,l,m,b,w,S,B,z){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=$r(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$r(0),this.hiddenUpdates=$r(null),this.identifierPrefix=m,this.onUncaughtError=b,this.onCaughtError=w,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,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 jie(a,i,l,m,b,w,S,B,z,q,ce,ue){return a=new zst(a,i,l,S,z,q,ce,ue,B),i=sut,w===!0&&(i|=si|ll),i|=Nt,w=v(3,null,null,i),a.current=w,w.stateNode=a,i=pz(),Rb(i),a.pooledCache=i,Rb(i),w.memoizedState={element:m,isDehydrated:l,cache:i},gz(w),a}function $ie(a){return a?(a=Dh,a):Dh}function Fj(a,i,l,m,b,w){if(ii&&typeof ii.onScheduleFiberRoot==\"function\")try{ii.onScheduleFiberRoot(C2,m,l)}catch(S){Uf||(Uf=!0,console.error(\"React instrumentation encountered an error: %o\",S))}b=$ie(b),m.context===null?m.context=b:m.pendingContext=b,Nf&&mc!==null&&!Bue&&(Bue=!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\")),m=Eh(i),m.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),m.callback=w),l=Ah(a,m,i),l!==null&&(vf(i,\"root.render()\",null),ro(l,a,i),C8(l,a,i))}function qie(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var l=a.retryLane;a.retryLane=l!==0&&l<i?l:i}}function zj(a,i){qie(a,i),(a=a.alternate)&&qie(a,i)}function Gie(a){if(a.tag===13||a.tag===31){var i=ai(a,67108864);i!==null&&ro(i,a,67108864),zj(a,67108864)}}function Vie(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),zj(a,i)}}function jst(){return mc}function $st(a,i,l,m){var b=ye.T;ye.T=null;var w=zr.p;try{zr.p=hc,jj(a,i,l,m)}finally{zr.p=w,ye.T=b}}function qst(a,i,l,m){var b=ye.T;ye.T=null;var w=zr.p;try{zr.p=ul,jj(a,i,l,m)}finally{zr.p=w,ye.T=b}}function jj(a,i,l,m){if(e9){var b=$j(m);if(b===null)_j(a,i,m,t9,l),Wie(a,m);else if(Gst(b,a,i,l,m))m.stopPropagation();else if(Wie(a,m),i&4&&-1<Hut.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 B=w;for(B.pendingLanes|=2,B.entangledLanes|=2;S;){var z=1<<31-Mi(S);B.entanglements[1]|=z,S&=~z}Pf(w),(hr&(ia|xc))===ba&&(D7=ma()+nue,L8(0,!1))}}break;case 31:case 13:B=ai(w,2),B!==null&&ro(B,w,2),y2(),zj(w,2)}if(w=$j(m),w===null&&_j(a,i,m,t9,l),w===b)break;b=w}b!==null&&m.stopPropagation()}else _j(a,i,m,null,l)}}function $j(a){return a=QF(a),qj(a)}function qj(a){if(t9=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 t9=a,null}function Kie(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(tct()){case o$:return hc;case a$:return ul;case S2:case rct:return Hf;case i$:return n7;default:return Hf}default:return Hf}}function Wie(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\":FA.delete(i.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":zA.delete(i.pointerId)}}function V8(a,i,l,m,b,w){return a===null||a.nativeEvent!==w?(a={blockedOn:i,domEventName:l,eventSystemFlags:m,nativeEvent:w,targetContainers:[b]},i!==null&&(i=Ge(i),i!==null&&Gie(i)),a):(a.eventSystemFlags|=m,i=a.targetContainers,b!==null&&i.indexOf(b)===-1&&i.push(b),a)}function Gst(a,i,l,m,b){switch(i){case\"focusin\":return e0=V8(e0,a,i,l,m,b),!0;case\"dragenter\":return t0=V8(t0,a,i,l,m,b),!0;case\"mouseover\":return r0=V8(r0,a,i,l,m,b),!0;case\"pointerover\":var w=b.pointerId;return FA.set(w,V8(FA.get(w)||null,a,i,l,m,b)),!0;case\"gotpointercapture\":return w=b.pointerId,zA.set(w,V8(zA.get(w)||null,a,i,l,m,b)),!0}return!1}function Qie(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(){Vie(l)});return}}else if(i===31){if(i=O(l),i!==null){a.blockedOn=i,Ee(a.priority,function(){Vie(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 Wk(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var l=$j(a.nativeEvent);if(l===null){l=a.nativeEvent;var m=new l.constructor(l.type,l),b=m;J8!==null&&console.error(\"Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.\"),J8=b,l.target.dispatchEvent(m),J8===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.\"),J8=null}else return i=Ge(l),i!==null&&Gie(i),a.blockedOn=l,!1;i.shift()}return!0}function Zie(a,i,l){Wk(a)&&l.delete(i)}function Vst(){vq=!1,e0!==null&&Wk(e0)&&(e0=null),t0!==null&&Wk(t0)&&(t0=null),r0!==null&&Wk(r0)&&(r0=null),FA.forEach(Zie),zA.forEach(Zie)}function Qk(a,i){a.blockedOn===i&&(a.blockedOn=null,vq||(vq=!0,Do.unstable_scheduleCallback(Do.unstable_NormalPriority,Vst)))}function Jie(a){r9!==a&&(r9=a,Do.unstable_scheduleCallback(Do.unstable_NormalPriority,function(){r9===a&&(r9=null);for(var i=0;i<a.length;i+=3){var l=a[i],m=a[i+1],b=a[i+2];if(typeof m!=\"function\"){if(qj(m||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:m},Object.freeze(l),qz(w,l,m,b))}}))}function w2(a){function i(z){return Qk(z,a)}e0!==null&&Qk(e0,a),t0!==null&&Qk(t0,a),r0!==null&&Qk(r0,a),FA.forEach(i),zA.forEach(i);for(var l=0;l<n0.length;l++){var m=n0[l];m.blockedOn===a&&(m.blockedOn=null)}for(;0<n0.length&&(l=n0[0],l.blockedOn===null);)Qie(l),l.blockedOn===null&&n0.shift();if(l=(a.ownerDocument||a).$$reactFormReplay,l!=null)for(m=0;m<l.length;m+=3){var b=l[m],w=l[m+1],S=b[Oi]||null;if(typeof w==\"function\")S||Jie(l);else if(S){var B=null;if(w&&w.hasAttribute(\"formAction\")){if(b=w,S=w[Oi]||null)B=S.formAction;else if(qj(b)!==null)continue}else B=S.action;typeof B==\"function\"?l[m+1]=B:(l.splice(m,3),m-=3),Jie(l)}}}function Yie(){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),m||setTimeout(l,20)}function l(){if(!m&&!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 m=!1,b=null;return navigation.addEventListener(\"navigate\",a),navigation.addEventListener(\"navigatesuccess\",i),navigation.addEventListener(\"navigateerror\",i),setTimeout(l,100),function(){m=!0,navigation.removeEventListener(\"navigate\",a),navigation.removeEventListener(\"navigatesuccess\",i),navigation.removeEventListener(\"navigateerror\",i),b!==null&&(b(),b=null)}}}function Gj(a){this._internalRoot=a}function Zk(a){this._internalRoot=a}function Xie(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=dle(),Vj=oo(),Kst=ble(),Wt=Object.assign,Wst=Symbol.for(\"react.element\"),Mf=Symbol.for(\"react.transitional.element\"),E2=Symbol.for(\"react.portal\"),A2=Symbol.for(\"react.fragment\"),Jk=Symbol.for(\"react.strict_mode\"),Kj=Symbol.for(\"react.profiler\"),Wj=Symbol.for(\"react.consumer\"),Of=Symbol.for(\"react.context\"),K8=Symbol.for(\"react.forward_ref\"),Qj=Symbol.for(\"react.suspense\"),Zj=Symbol.for(\"react.suspense_list\"),Yk=Symbol.for(\"react.memo\"),pc=Symbol.for(\"react.lazy\"),Jj=Symbol.for(\"react.activity\"),Qst=Symbol.for(\"react.memo_cache_sentinel\"),ese=Symbol.iterator,Zst=Symbol.for(\"react.client.reference\"),oa=Array.isArray,ye=Vj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,zr=Kst.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Jst=Object.freeze({pending:!1,data:null,method:null,action:null}),Yj=[],Xj=[],Sp=-1,Ih=ie(null),W8=ie(null),Ph=ie(null),Xk=ie(null),Q8=0,tse,rse,nse,ose,ase,ise,sse;Q.__reactDisabledLog=!0;var e$,cse,t$=!1,r$=new(typeof WeakMap==\"function\"?WeakMap:Map),mc=null,Nf=!1,cl=Object.prototype.hasOwnProperty,n$=Do.unstable_scheduleCallback,Yst=Do.unstable_cancelCallback,Xst=Do.unstable_shouldYield,ect=Do.unstable_requestPaint,ma=Do.unstable_now,tct=Do.unstable_getCurrentPriorityLevel,o$=Do.unstable_ImmediatePriority,a$=Do.unstable_UserBlockingPriority,S2=Do.unstable_NormalPriority,rct=Do.unstable_LowPriority,i$=Do.unstable_IdlePriority,nct=Do.log,oct=Do.unstable_setDisableYieldValue,C2=null,ii=null,Uf=!1,Df=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\",Mi=Math.clz32?Math.clz32:un,act=Math.log,ict=Math.LN2,e7=256,t7=262144,r7=4194304,hc=2,ul=8,Hf=32,n7=268435456,Rh=Math.random().toString(36).slice(2),Ua=\"__reactFiber$\"+Rh,Oi=\"__reactProps$\"+Rh,Mh=\"__reactContainer$\"+Rh,s$=\"__reactEvents$\"+Rh,sct=\"__reactListeners$\"+Rh,cct=\"__reactHandles$\"+Rh,use=\"__reactResources$\"+Rh,Z8=\"__reactMarker$\"+Rh,lse=new Set,Lb={},c$={},uct={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},lct=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]*$\"),fse={},dse={},fct=/[\\\\n\"\\\\\\\\]/g,pse=!1,mse=!1,hse=!1,yse=!1,bse=!1,gse=!1,xse=[\"value\",\"defaultValue\"],vse=!1,wse=/[\"\\'&<>\\\\n\\\\t]|^\\\\s|\\\\s$/,dct=\"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(\" \"),Ese=\"applet caption html table td th marquee object template foreignObject desc title\".split(\" \"),pct=Ese.concat([\"button\"]),mct=\"dd dt li option optgroup p rp rt\".split(\" \"),Ase={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},o7={},u$={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\"]},Sse=/([A-Z])/g,Cse=/^ms-/,hct=/^(?:webkit|moz|o)[A-Z]/,yct=/^-ms-/,bct=/-(.)/g,Tse=/;\\\\s*$/,T2={},l$={},_se=!1,kse=!1,Bse=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(\" \")),a7=\"http://www.w3.org/1998/Math/MathML\",_2=\"http://www.w3.org/2000/svg\",gct=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\"]]),i7={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\"},Ise={\"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={},xct=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]*$\"),vct=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]*$\"),Pse=!1,Ni={},Rse=/^on./,wct=/^on[^A-Z]/,Ect=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]*$\"),Sct=/^[\\\\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,J8=null,B2=null,I2=null,f$=!1,Lf=!(typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"),d$=!1;if(Lf)try{var Y8={};Object.defineProperty(Y8,\"passive\",{get:function(){d$=!0}}),window.addEventListener(\"test\",Y8,Y8),window.removeEventListener(\"test\",Y8,Y8)}catch{d$=!1}var Oh=null,p$=null,s7=null,Fb={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},c7=xs(Fb),X8=Wt({},Fb,{view:0,detail:0}),Cct=xs(X8),m$,h$,eA,u7=Wt({},X8,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ZF,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!==eA&&(eA&&a.type===\"mousemove\"?(m$=a.screenX-eA.screenX,h$=a.screenY-eA.screenY):h$=m$=0,eA=a),m$)},movementY:function(a){return\"movementY\"in a?a.movementY:h$}}),Mse=xs(u7),Tct=Wt({},u7,{dataTransfer:0}),_ct=xs(Tct),kct=Wt({},X8,{relatedTarget:0}),y$=xs(kct),Bct=Wt({},Fb,{animationName:0,elapsedTime:0,pseudoElement:0}),Ict=xs(Bct),Pct=Wt({},Fb,{clipboardData:function(a){return\"clipboardData\"in a?a.clipboardData:window.clipboardData}}),Rct=xs(Pct),Mct=Wt({},Fb,{data:0}),Ose=xs(Mct),Oct=Ose,Nct={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},Uct={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\"},Dct={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"},Hct=Wt({},X8,{key:function(a){if(a.key){var i=Nct[a.key]||a.key;if(i!==\"Unidentified\")return i}return a.type===\"keypress\"?(a=W4(a),a===13?\"Enter\":String.fromCharCode(a)):a.type===\"keydown\"||a.type===\"keyup\"?Uct[a.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ZF,charCode:function(a){return a.type===\"keypress\"?W4(a):0},keyCode:function(a){return a.type===\"keydown\"||a.type===\"keyup\"?a.keyCode:0},which:function(a){return a.type===\"keypress\"?W4(a):a.type===\"keydown\"||a.type===\"keyup\"?a.keyCode:0}}),Lct=xs(Hct),Fct=Wt({},u7,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nse=xs(Fct),zct=Wt({},X8,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ZF}),jct=xs(zct),$ct=Wt({},Fb,{propertyName:0,elapsedTime:0,pseudoElement:0}),qct=xs($ct),Gct=Wt({},u7,{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}),Vct=xs(Gct),Kct=Wt({},Fb,{newState:0,oldState:0}),Wct=xs(Kct),Qct=[9,13,27,32],Use=229,b$=Lf&&\"CompositionEvent\"in window,tA=null;Lf&&\"documentMode\"in document&&(tA=document.documentMode);var Zct=Lf&&\"TextEvent\"in window&&!tA,Dse=Lf&&(!b$||tA&&8<tA&&11>=tA),Hse=32,Lse=String.fromCharCode(Hse),Fse=!1,P2=!1,Jct={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},rA=null,nA=null,zse=!1;Lf&&(zse=bit(\"input\")&&(!document.documentMode||9<document.documentMode));var Ui=typeof Object.is==\"function\"?Object.is:Ait,Yct=Lf&&\"documentMode\"in document&&11>=document.documentMode,R2=null,g$=null,oA=null,x$=!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\")},v$={},jse={};Lf&&(jse=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 $se=Tb(\"animationend\"),qse=Tb(\"animationiteration\"),Gse=Tb(\"animationstart\"),Xct=Tb(\"transitionrun\"),eut=Tb(\"transitionstart\"),tut=Tb(\"transitioncancel\"),Vse=Tb(\"transitionend\"),Kse=new Map,w$=\"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(\" \");w$.push(\"scrollEnd\");var Wse=0;if(typeof performance==\"object\"&&typeof performance.now==\"function\")var rut=performance,Qse=function(){return rut.now()};else{var nut=Date;Qse=function(){return nut.now()}}var E$=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)},out=\"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.\",l7=0,A$=1,S$=2,C$=3,f7=\"\\\\u2013\\\\xA0\",d7=\"+\\\\xA0\",Zse=\"\\\\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}},aut=[\"Changed Props\",\"\"],Jse=\"This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.\",iut=[\"Changed Props\",Jse],aA=1,Tp=2,Kc=[],O2=0,T$=0,Dh={};Object.freeze(Dh);var Wc=null,N2=null,mt=0,sut=1,Nt=2,si=8,ll=16,cut=32,Yse=!1;try{var Xse=Object.preventExtensions({})}catch{Yse=!0}var _$=new WeakMap,U2=[],D2=0,p7=null,iA=0,Qc=[],Zc=0,zb=null,_p=1,kp=\"\",Da=null,Pn=null,nr=!1,Ff=!1,yc=null,Hh=null,Jc=!1,k$=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.\"),B$=ie(null),I$=ie(null),ece={},m7=null,H2=null,L2=!1,uut=typeof AbortController<\"u\"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(l,m){a.push(m)}};this.abort=function(){i.aborted=!0,a.forEach(function(l){return l()})}},lut=Do.unstable_scheduleCallback,fut=Do.unstable_NormalPriority,Ho={$$typeof:Of,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Lo=Do.unstable_now,h7=console.createTask?console.createTask:function(){return null},sA=1,y7=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,Fh=-0,zf=-1.1,cA=null,zh=0,P$=null,R$=null,$b=-1.1,uA=null,F2=-1.1,b7=-1.1,jf=-0,Pp=-1.1,Yc=-1.1,M$=0,lA=null,tce=null,rce=null,jh=-1.1,qb=null,$h=-1.1,g7=-1.1,nce=-0,oce=-0,x7=0,Rp=null,ace=0,fA=-1.1,v7=!1,w7=!1,dA=null,O$=0,Gb=0,z2=null,ice=ye.S;ye.S=function(a,i){if(tue=ma(),typeof i==\"object\"&&i!==null&&typeof i.then==\"function\"){if(0>Pp&&0>Yc){Pp=Lo();var l=j8(),m=z8();(l!==$h||m!==qb)&&($h=-1.1),jh=l,qb=m}Iit(a,i)}ice!==null&&ice(a,i)};var Vb=ie(null),fl={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},pA=[],mA=[],hA=[],yA=[],bA=[],gA=[],Kb=new Set;fl.recordUnsafeLifecycleWarnings=function(a,i){Kb.has(a.type)||(typeof i.componentWillMount==\"function\"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&pA.push(a),a.mode&si&&typeof i.UNSAFE_componentWillMount==\"function\"&&mA.push(a),typeof i.componentWillReceiveProps==\"function\"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&hA.push(a),a.mode&si&&typeof i.UNSAFE_componentWillReceiveProps==\"function\"&&yA.push(a),typeof i.componentWillUpdate==\"function\"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&bA.push(a),a.mode&si&&typeof i.UNSAFE_componentWillUpdate==\"function\"&&gA.push(a))},fl.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;0<pA.length&&(pA.forEach(function(B){a.add(W(B)||\"Component\"),Kb.add(B.type)}),pA=[]);var i=new Set;0<mA.length&&(mA.forEach(function(B){i.add(W(B)||\"Component\"),Kb.add(B.type)}),mA=[]);var l=new Set;0<hA.length&&(hA.forEach(function(B){l.add(W(B)||\"Component\"),Kb.add(B.type)}),hA=[]);var m=new Set;0<yA.length&&(yA.forEach(function(B){m.add(W(B)||\"Component\"),Kb.add(B.type)}),yA=[]);var b=new Set;0<bA.length&&(bA.forEach(function(B){b.add(W(B)||\"Component\"),Kb.add(B.type)}),bA=[]);var w=new Set;if(0<gA.length&&(gA.forEach(function(B){w.add(W(B)||\"Component\"),Kb.add(B.type)}),gA=[]),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<m.size&&(S=y(m),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 E7=new Map,sce=new Set;fl.recordLegacyContextWarning=function(a,i){for(var l=null,m=a;m!==null;)m.mode&si&&(l=m),m=m.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.\"):!sce.has(a.type)&&(m=E7.get(l),a.type.contextTypes!=null||a.type.childContextTypes!=null||i!==null&&typeof i.getChildContext==\"function\")&&(m===void 0&&(m=[],E7.set(l,m)),m.push(a))},fl.flushLegacyContextWarning=function(){E7.forEach(function(a){if(a.length!==0){var i=a[0],l=new Set;a.forEach(function(b){l.add(W(b)||\"Component\"),sce.add(b.type)});var m=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`,m)})}})},fl.discardPendingWarnings=function(){pA=[],mA=[],hA=[],yA=[],bA=[],gA=[],E7=new Map};var cce={react_stack_bottom_frame:function(a,i,l){var m=Nf;Nf=!0;try{return a(i,l)}finally{Nf=m}}},N$=cce.react_stack_bottom_frame.bind(cce),uce={react_stack_bottom_frame:function(a){var i=Nf;Nf=!0;try{return a.render()}finally{Nf=i}}},lce=uce.react_stack_bottom_frame.bind(uce),fce={react_stack_bottom_frame:function(a,i){try{i.componentDidMount()}catch(l){Fr(a,a.return,l)}}},U$=fce.react_stack_bottom_frame.bind(fce),dce={react_stack_bottom_frame:function(a,i,l,m,b){try{i.componentDidUpdate(l,m,b)}catch(w){Fr(a,a.return,w)}}},pce=dce.react_stack_bottom_frame.bind(dce),mce={react_stack_bottom_frame:function(a,i){var l=i.stack;a.componentDidCatch(i.value,{componentStack:l!==null?l:\"\"})}},dut=mce.react_stack_bottom_frame.bind(mce),hce={react_stack_bottom_frame:function(a,i,l){try{l.componentWillUnmount()}catch(m){Fr(a,i,m)}}},yce=hce.react_stack_bottom_frame.bind(hce),bce={react_stack_bottom_frame:function(a){var i=a.create;return a=a.inst,i=i(),a.destroy=i}},put=bce.react_stack_bottom_frame.bind(bce),gce={react_stack_bottom_frame:function(a,i,l){try{l()}catch(m){Fr(a,i,m)}}},mut=gce.react_stack_bottom_frame.bind(gce),xce={react_stack_bottom_frame:function(a){var i=a._init;return i(a._payload)}},hut=xce.react_stack_bottom_frame.bind(xce),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`.\"),D$=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.\"),A7=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.\"),S7={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,xA=!1,$2=null,vA=0,Ut=null,H$,vce=H$=!1,wce={},Ece={},Ace={};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 m=W(a),b=m||\"null\";if(!wce[b]){wce[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||m&&(w=`\\n\\nCheck the top-level render call using <`+m+\">.\");var S=\"\";l!=null&&a!==l&&(m=null,typeof l.tag==\"number\"?m=W(l):typeof l.name==\"string\"&&(m=l.name),m&&(S=\" It was passed a child from \"+m+\".\")),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=hoe(!0),Sce=hoe(!1),Cce=0,Tce=1,_ce=2,L$=3,qh=!1,kce=!1,F$=null,z$=!1,q2=ie(null),C7=ie(0),bc=ie(null),Xc=null,G2=1,wA=2,So=ie(0),T7=0,eu=1,Hi=2,gc=4,Li=8,V2,Bce=new Set,Ice=new Set,j$=new Set,Pce=new Set,Mp=0,gt=null,pn=null,Fo=null,_7=!1,K2=!1,Zb=!1,k7=0,EA=0,Op=null,yut=0,but=25,he=null,tu=null,Np=-1,AA=!1,SA={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};SA.useEffectEvent=mo;var $$=null,Rce=null,q$=null,Mce=null,$f=null,dl=null,B7=null;$$={readContext:function(a){return Hn(a)},use:Th,useCallback:function(a,i){return he=\"useCallback\",Kt(),u2(i),Fz(a,i)},useContext:function(a){return he=\"useContext\",Kt(),Hn(a)},useEffect:function(a,i){return he=\"useEffect\",Kt(),u2(i),Ek(a,i)},useImperativeHandle:function(a,i,l){return he=\"useImperativeHandle\",Kt(),u2(l),Lz(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),Hz(a,i)},useMemo:function(a,i){he=\"useMemo\",Kt(),u2(i);var l=ye.H;ye.H=$f;try{return zz(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",Kt();var m=ye.H;ye.H=$f;try{return Bz(a,i,l)}finally{ye.H=m}},useRef:function(a){return he=\"useRef\",Kt(),Uz(a)},useState:function(a){he=\"useState\",Kt();var i=ye.H;ye.H=$f;try{return Mz(a)}finally{ye.H=i}},useDebugValue:function(){he=\"useDebugValue\",Kt()},useDeferredValue:function(a,i){return he=\"useDeferredValue\",Kt(),jz(a,i)},useTransition:function(){return he=\"useTransition\",Kt(),Gz()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",Kt(),Pz(a,i,l)},useId:function(){return he=\"useId\",Kt(),Vz()},useFormState:function(a,i){return he=\"useFormState\",Kt(),bk(),f2(a,i)},useActionState:function(a,i){return he=\"useActionState\",Kt(),f2(a,i)},useOptimistic:function(a){return he=\"useOptimistic\",Kt(),Oz(a)},useHostTransitionStatus:Nb,useMemoCache:Mb,useCacheRefresh:function(){return he=\"useCacheRefresh\",Kt(),Kz()},useEffectEvent:function(a){return he=\"useEffectEvent\",Kt(),Dz(a)}},Rce={readContext:function(a){return Hn(a)},use:Th,useCallback:function(a,i){return he=\"useCallback\",Ie(),Fz(a,i)},useContext:function(a){return he=\"useContext\",Ie(),Hn(a)},useEffect:function(a,i){return he=\"useEffect\",Ie(),Ek(a,i)},useImperativeHandle:function(a,i,l){return he=\"useImperativeHandle\",Ie(),Lz(a,i,l)},useInsertionEffect:function(a,i){he=\"useInsertionEffect\",Ie(),Ob(4,Hi,a,i)},useLayoutEffect:function(a,i){return he=\"useLayoutEffect\",Ie(),Hz(a,i)},useMemo:function(a,i){he=\"useMemo\",Ie();var l=ye.H;ye.H=$f;try{return zz(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",Ie();var m=ye.H;ye.H=$f;try{return Bz(a,i,l)}finally{ye.H=m}},useRef:function(a){return he=\"useRef\",Ie(),Uz(a)},useState:function(a){he=\"useState\",Ie();var i=ye.H;ye.H=$f;try{return Mz(a)}finally{ye.H=i}},useDebugValue:function(){he=\"useDebugValue\",Ie()},useDeferredValue:function(a,i){return he=\"useDeferredValue\",Ie(),jz(a,i)},useTransition:function(){return he=\"useTransition\",Ie(),Gz()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",Ie(),Pz(a,i,l)},useId:function(){return he=\"useId\",Ie(),Vz()},useActionState:function(a,i){return he=\"useActionState\",Ie(),f2(a,i)},useFormState:function(a,i){return he=\"useFormState\",Ie(),bk(),f2(a,i)},useOptimistic:function(a){return he=\"useOptimistic\",Ie(),Oz(a)},useHostTransitionStatus:Nb,useMemoCache:Mb,useCacheRefresh:function(){return he=\"useCacheRefresh\",Ie(),Kz()},useEffectEvent:function(a){return he=\"useEffectEvent\",Ie(),Dz(a)}},q$={readContext:function(a){return Hn(a)},use:Th,useCallback:function(a,i){return he=\"useCallback\",Ie(),Ck(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(),Sk(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 Tk(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",Ie();var m=ye.H;ye.H=dl;try{return l2(a,i,l)}finally{ye.H=m}},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(),Doe(a,i)},useTransition:function(){return he=\"useTransition\",Ie(),$oe()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",Ie(),xk(a,i,l)},useId:function(){return he=\"useId\",Ie(),Gr().memoizedState},useFormState:function(a){return he=\"useFormState\",Ie(),bk(),vk(a)},useActionState:function(a){return he=\"useActionState\",Ie(),vk(a)},useOptimistic:function(a,i){return he=\"useOptimistic\",Ie(),_oe(a,i)},useHostTransitionStatus:Nb,useMemoCache:Mb,useCacheRefresh:function(){return he=\"useCacheRefresh\",Ie(),Gr().memoizedState},useEffectEvent:function(a){return he=\"useEffectEvent\",Ie(),Ak(a)}},Mce={readContext:function(a){return Hn(a)},use:Th,useCallback:function(a,i){return he=\"useCallback\",Ie(),Ck(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(),Sk(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=B7;try{return Tk(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",Ie();var m=ye.H;ye.H=B7;try{return B8(a,i,l)}finally{ye.H=m}},useRef:function(){return he=\"useRef\",Ie(),Gr().memoizedState},useState:function(){he=\"useState\",Ie();var a=ye.H;ye.H=B7;try{return B8(il)}finally{ye.H=a}},useDebugValue:function(){he=\"useDebugValue\",Ie()},useDeferredValue:function(a,i){return he=\"useDeferredValue\",Ie(),Hoe(a,i)},useTransition:function(){return he=\"useTransition\",Ie(),qoe()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",Ie(),xk(a,i,l)},useId:function(){return he=\"useId\",Ie(),Gr().memoizedState},useFormState:function(a){return he=\"useFormState\",Ie(),bk(),wk(a)},useActionState:function(a){return he=\"useActionState\",Ie(),wk(a)},useOptimistic:function(a,i){return he=\"useOptimistic\",Ie(),Boe(a,i)},useHostTransitionStatus:Nb,useMemoCache:Mb,useCacheRefresh:function(){return he=\"useCacheRefresh\",Ie(),Gr().memoizedState},useEffectEvent:function(a){return he=\"useEffectEvent\",Ie(),Ak(a)}},$f={readContext:function(a){return d(),Hn(a)},use:function(a){return f(),Th(a)},useCallback:function(a,i){return he=\"useCallback\",f(),Kt(),Fz(a,i)},useContext:function(a){return he=\"useContext\",f(),Kt(),Hn(a)},useEffect:function(a,i){return he=\"useEffect\",f(),Kt(),Ek(a,i)},useImperativeHandle:function(a,i,l){return he=\"useImperativeHandle\",f(),Kt(),Lz(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(),Hz(a,i)},useMemo:function(a,i){he=\"useMemo\",f(),Kt();var l=ye.H;ye.H=$f;try{return zz(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",f(),Kt();var m=ye.H;ye.H=$f;try{return Bz(a,i,l)}finally{ye.H=m}},useRef:function(a){return he=\"useRef\",f(),Kt(),Uz(a)},useState:function(a){he=\"useState\",f(),Kt();var i=ye.H;ye.H=$f;try{return Mz(a)}finally{ye.H=i}},useDebugValue:function(){he=\"useDebugValue\",f(),Kt()},useDeferredValue:function(a,i){return he=\"useDeferredValue\",f(),Kt(),jz(a,i)},useTransition:function(){return he=\"useTransition\",f(),Kt(),Gz()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",f(),Kt(),Pz(a,i,l)},useId:function(){return he=\"useId\",f(),Kt(),Vz()},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(),Oz(a)},useMemoCache:function(a){return f(),Mb(a)},useHostTransitionStatus:Nb,useCacheRefresh:function(){return he=\"useCacheRefresh\",Kt(),Kz()},useEffectEvent:function(a){return he=\"useEffectEvent\",f(),Kt(),Dz(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(),Ck(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(),Sk(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 Tk(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",f(),Ie();var m=ye.H;ye.H=dl;try{return l2(a,i,l)}finally{ye.H=m}},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(),Doe(a,i)},useTransition:function(){return he=\"useTransition\",f(),Ie(),$oe()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",f(),Ie(),xk(a,i,l)},useId:function(){return he=\"useId\",f(),Ie(),Gr().memoizedState},useFormState:function(a){return he=\"useFormState\",f(),Ie(),vk(a)},useActionState:function(a){return he=\"useActionState\",f(),Ie(),vk(a)},useOptimistic:function(a,i){return he=\"useOptimistic\",f(),Ie(),_oe(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(),Ak(a)}},B7={readContext:function(a){return d(),Hn(a)},use:function(a){return f(),Th(a)},useCallback:function(a,i){return he=\"useCallback\",f(),Ie(),Ck(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(),Sk(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 Tk(a,i)}finally{ye.H=l}},useReducer:function(a,i,l){he=\"useReducer\",f(),Ie();var m=ye.H;ye.H=dl;try{return B8(a,i,l)}finally{ye.H=m}},useRef:function(){return he=\"useRef\",f(),Ie(),Gr().memoizedState},useState:function(){he=\"useState\",f(),Ie();var a=ye.H;ye.H=dl;try{return B8(il)}finally{ye.H=a}},useDebugValue:function(){he=\"useDebugValue\",f(),Ie()},useDeferredValue:function(a,i){return he=\"useDeferredValue\",f(),Ie(),Hoe(a,i)},useTransition:function(){return he=\"useTransition\",f(),Ie(),qoe()},useSyncExternalStore:function(a,i,l){return he=\"useSyncExternalStore\",f(),Ie(),xk(a,i,l)},useId:function(){return he=\"useId\",f(),Ie(),Gr().memoizedState},useFormState:function(a){return he=\"useFormState\",f(),Ie(),wk(a)},useActionState:function(a){return he=\"useActionState\",f(),Ie(),wk(a)},useOptimistic:function(a,i){return he=\"useOptimistic\",f(),Ie(),Boe(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(),Ak(a)}};var Oce={},Nce=new Set,Uce=new Set,Dce=new Set,Hce=new Set,Lce=new Set,Fce=new Set,zce=new Set,jce=new Set,$ce=new Set,qce=new Set;Object.freeze(Oce);var G$={enqueueSetState:function(a,i,l){a=a._reactInternals;var m=fc(a),b=Eh(m);b.payload=i,l!=null&&(Qz(l),b.callback=l),i=Ah(a,b,m),i!==null&&(vf(m,\"this.setState()\",a),ro(i,a,m),C8(i,a,m))},enqueueReplaceState:function(a,i,l){a=a._reactInternals;var m=fc(a),b=Eh(m);b.tag=Tce,b.payload=i,l!=null&&(Qz(l),b.callback=l),i=Ah(a,b,m),i!==null&&(vf(m,\"this.replaceState()\",a),ro(i,a,m),C8(i,a,m))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var l=fc(a),m=Eh(l);m.tag=_ce,i!=null&&(Qz(i),m.callback=i),i=Ah(a,m,l),i!==null&&(vf(l,\"this.forceUpdate()\",a),ro(i,a,l),C8(i,a,l))}},W2=null,V$=null,K$=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.\"),zo=!1,Gce={},Vce={},Kce={},Wce={},Q2=!1,Qce={},I7={},W$={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Zce=!1,Jce=null;Jce=new Set;var Up=!1,jo=!1,Q$=!1,Yce=typeof WeakSet==\"function\"?WeakSet:Set,ya=null,Z2=null,J2=null,$o=null,As=!1,pl=null,aa=!1,CA=8192,gut={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 TA=Symbol.for;TA(\"selector.component\"),TA(\"selector.has_pseudo_class\"),TA(\"selector.role\"),TA(\"selector.test_id\"),TA(\"selector.text\")}var xut=[],vut=typeof WeakMap==\"function\"?WeakMap:Map,ba=0,ia=2,xc=4,Dp=0,_A=1,Jb=2,P7=3,Gh=4,R7=6,Xce=5,hr=ba,mn=null,$t=null,Dt=0,Ss=0,M7=1,Yb=2,kA=3,eue=4,Z$=5,BA=6,O7=7,J$=8,Xb=9,Vr=Ss,vc=null,Vh=!1,Y2=!1,Y$=!1,qf=0,Kn=Dp,Kh=0,Wh=0,X$=0,Cs=0,e1=0,IA=null,Fi=null,N7=!1,U7=0,tue=0,rue=300,D7=1/0,nue=500,PA=null,ho=null,Qh=null,H7=0,eq=1,tq=2,oue=3,Zh=0,aue=1,iue=2,sue=3,cue=4,L7=5,qo=0,Jh=null,X2=null,ml=0,rq=0,nq=-0,oq=null,uue=null,lue=null,hl=H7,fue=null,wut=50,RA=0,aq=null,iq=!1,F7=!1,Eut=50,t1=0,MA=null,ev=!1,z7=null,due=!1,pue=new Set,Aut={},j7=null,tv=null,sq=!1,cq=!1,$7=!1,uq=!1,Yh=0,lq={};(function(){for(var a=0;a<w$.length;a++){var i=w$[a],l=i.toLowerCase();i=i[0].toUpperCase()+i.slice(1),al(l,\"on\"+i)}al($se,\"onAnimationEnd\"),al(qse,\"onAnimationIteration\"),al(Gse,\"onAnimationStart\"),al(\"dblclick\",\"onDoubleClick\"),al(\"focusin\",\"onFocus\"),al(\"focusout\",\"onBlur\"),al(Xct,\"onTransitionRun\"),al(eut,\"onTransitionStart\"),al(tut,\"onTransitionCancel\"),al(Vse,\"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 OA=\"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(\" \"),fq=new Set(\"beforetoggle cancel close invalid load scroll scrollend toggle\".split(\" \").concat(OA)),q7=\"_reactListening\"+Math.random().toString(36).slice(2),mue=!1,hue=!1,G7=!1,yue=!1,V7=!1,K7=!1,bue=!1,W7={},Sut=/\\\\r\\\\n?/g,Cut=/\\\\u0000|\\\\uFFFD/g,r1=\"http://www.w3.org/1999/xlink\",dq=\"http://www.w3.org/XML/1998/namespace\",Tut=\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\",_ut=\"suppressHydrationWarning\",n1=\"&\",Q7=\"/&\",NA=\"$\",UA=\"/$\",Xh=\"$?\",o1=\"$~\",rv=\"$!\",kut=\"html\",But=\"body\",Iut=\"head\",pq=\"F!\",gue=\"F\",xue=\"loading\",Put=\"style\",Hp=0,nv=1,Z7=2,mq=null,hq=null,vue={dialog:!0,webview:!0},yq=null,DA=void 0,wue=typeof setTimeout==\"function\"?setTimeout:void 0,Rut=typeof clearTimeout==\"function\"?clearTimeout:void 0,a1=-1,Eue=typeof Promise==\"function\"?Promise:void 0,Mut=typeof queueMicrotask==\"function\"?queueMicrotask:typeof Eue<\"u\"?function(a){return Eue.resolve(null).then(a).catch(yst)}:wue,bq=null,i1=0,HA=1,Aue=2,Sue=3,ru=4,nu=new Map,Cue=new Set,Lp=zr.d;zr.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\"?joe(i):Lp.r(a)},D:function(a){Lp.D(a),Nie(\"dns-prefetch\",a,null)},C:function(a,i){Lp.C(a,i),Nie(\"preconnect\",a,i)},L:function(a,i,l){Lp.L(a,i,l);var m=ov;if(m&&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),m.querySelector(b)!==null||i===\"style\"&&m.querySelector(q8(w))||i===\"script\"&&m.querySelector(G8(w))||(i=m.createElement(\"link\"),Na(i,\"link\",a),Ne(i),m.head.appendChild(i)))}},m:function(a,i){Lp.m(a,i);var l=ov;if(l&&a){var m=i&&typeof i.as==\"string\"?i.as:\"script\",b=\\'link[rel=\"modulepreload\"][as=\"\\'+ur(m)+\\'\"][href=\"\\'+ur(a)+\\'\"]\\',w=b;switch(m){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(m){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":if(l.querySelector(G8(w)))return}m=l.createElement(\"link\"),Na(m,\"link\",a),Ne(m),l.head.appendChild(m)}}},X:function(a,i){Lp.X(a,i);var l=ov;if(l&&a){var m=zt(l).hoistableScripts,b=v2(a),w=m.get(b);w||(w=l.querySelector(G8(b)),w||(a=Wt({src:a,async:!0},i),(i=nu.get(b))&&Lj(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},m.set(b,w))}},S:function(a,i,l){Lp.S(a,i,l);var m=ov;if(m&&a){var b=zt(m).hoistableStyles,w=x2(a);i=i||\"default\";var S=b.get(w);if(!S){var B={loading:i1,preload:null};if(S=m.querySelector(q8(w)))B.loading=HA|ru;else{a=Wt({rel:\"stylesheet\",href:a,\"data-precedence\":i},l),(l=nu.get(w))&&Hj(a,l);var z=S=m.createElement(\"link\");Ne(z),Na(z,\"link\",a),z._p=new Promise(function(q,ce){z.onload=q,z.onerror=ce}),z.addEventListener(\"load\",function(){B.loading|=HA}),z.addEventListener(\"error\",function(){B.loading|=Aue}),B.loading|=ru,Gk(S,i,m)}S={type:\"stylesheet\",instance:S,count:1,state:B},b.set(w,S)}}},M:function(a,i){Lp.M(a,i);var l=ov;if(l&&a){var m=zt(l).hoistableScripts,b=v2(a),w=m.get(b);w||(w=l.querySelector(G8(b)),w||(a=Wt({src:a,async:!0,type:\"module\"},i),(i=nu.get(b))&&Lj(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},m.set(b,w))}}};var ov=typeof document>\"u\"?null:document,J7=null,Out=6e4,Nut=800,Uut=500,gq=0,xq=null,Y7=null,s1=Jst,LA={$$typeof:Of,Provider:null,Consumer:null,_currentValue:s1,_currentValue2:s1,_threadCount:0},Tue=\"%c%s%c\",_ue=\"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\",kue=\"\",X7=\" \",Dut=Function.prototype.bind,Bue=!1,Iue=null,Pue=null,Rue=null,Mue=null,Oue=null,Nue=null,Uue=null,Due=null,Hue=null,Lue=null;Iue=function(a,i,l,m){i=e(a,i),i!==null&&(l=t(i.memoizedState,l,0,m),i.memoizedState=l,i.baseState=l,a.memoizedProps=Wt({},a.memoizedProps),l=ai(a,2),l!==null&&ro(l,a,2))},Pue=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))},Rue=function(a,i,l,m){i=e(a,i),i!==null&&(l=r(i.memoizedState,l,m),i.memoizedState=l,i.baseState=l,a.memoizedProps=Wt({},a.memoizedProps),l=ai(a,2),l!==null&&ro(l,a,2))},Mue=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)},Oue=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)},Nue=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)},Uue=function(a){var i=ai(a,2);i!==null&&ro(i,a,2)},Due=function(a){var i=jr(),l=ai(a,i);l!==null&&ro(l,a,i)},Hue=function(a){u=a},Lue=function(a){s=a};var e9=!0,t9=null,vq=!1,e0=null,t0=null,r0=null,FA=new Map,zA=new Map,n0=[],Hut=\"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(\" \"),r9=null;if(Zk.prototype.render=Gj.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().\"):P(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 m=i.current,b=fc(m);Fj(m,b,l,i,null,null)},Zk.prototype.unmount=Gj.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.\"),Fj(a.current,2,null,a,null,null),y2(),i[Mh]=null}},Zk.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&&Qie(a)}},(function(){var a=Vj.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\"),zr.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=Iue,a.overrideHookStateDeletePath=Pue,a.overrideHookStateRenamePath=Rue,a.overrideProps=Mue,a.overridePropsDeletePath=Oue,a.overridePropsRenamePath=Nue,a.scheduleUpdate=Uue,a.scheduleRetry=Due,a.setErrorHandler=Hue,a.setSuspenseHandler=Lue,a.scheduleRefresh=C,a.scheduleRoot=E,a.setRefreshHandler=k,a.getCurrentFiber=jst,jc(a)})()&&Lf&&window.top===window.self&&(-1<navigator.userAgent.indexOf(\"Chrome\")&&navigator.userAgent.indexOf(\"Edge\")===-1||-1<navigator.userAgent.indexOf(\"Firefox\"))){var Fue=window.location.protocol;/^(https?|file):$/.test(Fue)&&console.info(\"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools\"+(Fue===\"file:\"?`\\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:\"\"),\"font-weight:bold\")}c9.createRoot=function(a,i){if(!P(a))throw Error(\"Target container is not a DOM element.\");Xie(a);var l=!1,m=\"\",b=Zoe,w=Joe,S=Yoe;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&&(m=i.identifierPrefix),i.onUncaughtError!==void 0&&(b=i.onUncaughtError),i.onCaughtError!==void 0&&(w=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError)),i=jie(a,1,!1,null,null,l,m,null,b,w,S,Yie),a[Mh]=i.current,Tj(a),new Gj(i)},c9.hydrateRoot=function(a,i,l){if(!P(a))throw Error(\"Target container is not a DOM element.\");Xie(a),i===void 0&&console.error(\"Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)\");var m=!1,b=\"\",w=Zoe,S=Joe,B=Yoe,z=null;return l!=null&&(l.unstable_strictMode===!0&&(m=!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&&(B=l.onRecoverableError),l.formState!==void 0&&(z=l.formState)),i=jie(a,1,!0,i,l??null,m,b,z,w,S,B,Yie),i.context=$ie(null),l=i.current,m=fc(l),m=Rr(m),b=Eh(m),b.callback=null,Ah(l,b,m),vf(m,\"hydrateRoot()\",null),l=m,i.current.lanes=l,Ii(i,l),Pf(i),a[Mh]=i.current,Tj(a),new Zk(i)},c9.version=\"19.2.1\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var vle=X((OPt,xle)=>{\"use strict\";c();xle.exports=gle()});var wle,Ele=x(()=>{c();wle=\"1.2.3\"});var To,lv=x(()=>{c();Ele();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@${wle}`].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 Rq,Mq,u9,qA=x(()=>{c();Rq=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Mq=/^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)?$/,u9=/^\\\\(.+?\\\\).*?$/});function l9(e){let t=e.type;if(Ale.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+=l9(s),o<r-1&&(t+=\", \")}let n=wc(Ale,e.type);return t+=`)${n?.array||\"\"}`,l9({...e,type:t})}return\"indexed\"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}var Ale,Sle=x(()=>{c();qA();Ale=/^tuple(?<array>(\\\\[(\\\\d*)\\\\])*)$/});function jp(e){let t=\"\",r=e.length;for(let n=0;n<r;n++){let o=e[n];t+=l9(o),n!==r-1&&(t+=\", \")}return t}var Oq=x(()=>{c();Sle()});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 Cle=x(()=>{c();Oq()});function _le(e){return Tle.test(e)}function kle(e){return wc(Tle,e)}function Ile(e){return Ble.test(e)}function Ple(e){return wc(Ble,e)}function Mle(e){return Rle.test(e)}function Ole(e){return wc(Rle,e)}function a0(e){return Nle.test(e)}function Ule(e){return wc(Nle,e)}function Hle(e){return Dle.test(e)}function Lle(e){return wc(Dle,e)}function zle(e){return Fle.test(e)}function jle(e){return wc(Fle,e)}function $le(e){return Alt.test(e)}var Tle,Ble,Rle,Nle,Dle,Fle,Alt,Nq,qle,f9,fv=x(()=>{c();qA();Tle=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;Ble=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;Rle=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\\\s?\\\\((?<returns>.*?)\\\\))?$/;Nle=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\\\{(?<properties>.*?)\\\\}$/;Dle=/^constructor\\\\((?<parameters>.*?)\\\\)(?:\\\\s(?<stateMutability>payable{1}))?$/;Fle=/^fallback\\\\(\\\\) external(?:\\\\s(?<stateMutability>payable{1}))?$/;Alt=/^receive\\\\(\\\\) external payable$/;Nq=new Set([\"memory\",\"indexed\",\"storage\",\"calldata\"]),qle=new Set([\"indexed\"]),f9=new Set([\"calldata\",\"memory\",\"storage\"])});var d9,p9,m9,h9=x(()=>{c();lv();d9=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\"})}},p9=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\"})}},m9=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 y9,b9,g9,x9,v9,w9,E9=x(()=>{c();lv();y9=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\"})}},b9=class extends To{constructor({param:t}){super(\"Invalid ABI parameter.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}},g9=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\"})}},x9=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\"})}},v9=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\"})}},w9=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,A9,S9,Uq=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\"})}},A9=class extends To{constructor({signature:t}){super(\"Unknown signature.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSignatureError\"})}},S9=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 C9,Gle=x(()=>{c();lv();C9=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 T9,Vle=x(()=>{c();lv();T9=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 Kle(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 _9,Wle=x(()=>{c();_9=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 GA(e,t={}){if(Mle(e))return Slt(e,t);if(Ile(e))return Clt(e,t);if(_le(e))return Tlt(e,t);if(Hle(e))return _lt(e,t);if(zle(e))return klt(e);if($le(e))return{type:\"receive\",stateMutability:\"payable\"};throw new A9({signature:e})}function Slt(e,t={}){let r=Ole(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:f9,structs:t,type:\"function\"}));let u=[];if(r.returns){let f=_s(r.returns),d=f.length;for(let p=0;p<d;p++)u.push(yl(f[p],{modifiers:f9,structs:t,type:\"function\"}))}return{name:r.name,type:\"function\",stateMutability:r.stateMutability??\"nonpayable\",inputs:o,outputs:u}}function Clt(e,t={}){let r=Ple(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:qle,structs:t,type:\"event\"}));return{name:r.name,type:\"event\",inputs:o}}function Tlt(e,t={}){let r=kle(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 _lt(e,t={}){let r=Lle(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 klt(e){let t=jle(e);if(!t)throw new Kf({signature:e,type:\"fallback\"});return{type:\"fallback\",stateMutability:t.stateMutability??\"nonpayable\"}}function yl(e,t){let r=Kle(e,t?.type,t?.structs);if(_9.has(r))return _9.get(r);let n=u9.test(e),o=wc(n?Ilt:Blt,e);if(!o)throw new b9({param:e});if(o.name&&Mlt(o.name))throw new g9({param:e,name:o.name});let s=o.name?{name:o.name}:{},u=o.modifier===\"indexed\"?{indexed:!0}:{},f=t?.structs??{},d,p={};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}));p={components:v}}else if(o.type in f)d=\"tuple\",p={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\"&&!Dq(d))throw new m9({type:d});if(o.modifier){if(!t?.modifiers?.has?.(o.modifier))throw new x9({param:e,type:t?.type,modifier:o.modifier});if(f9.has(o.modifier)&&!Olt(d,!!o.array))throw new v9({param:e,type:t?.type,modifier:o.modifier})}let h={type:`${d}${o.array??\"\"}`,...s,...u,...p};return _9.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 T9({current:r,depth:n});return t.push(r.trim()),t}function Dq(e){return e===\"address\"||e===\"bool\"||e===\"function\"||e===\"string\"||Rq.test(e)||Mq.test(e)}function Mlt(e){return e===\"address\"||e===\"bool\"||e===\"function\"||e===\"string\"||e===\"tuple\"||Rq.test(e)||Mq.test(e)||Rlt.test(e)}function Olt(e,t){return t||e===\"bytes\"||e===\"string\"||e===\"tuple\"}var Blt,Ilt,Plt,Rlt,dv=x(()=>{c();qA();h9();E9();Uq();Vle();Wle();fv();Blt=/^(?<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$_]*))?$/,Ilt=/^\\\\((?<type>.+?)\\\\)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Plt=/^u?int$/;Rlt=/^(?: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=Ule(f);if(!d)throw new Kf({signature:f,type:\"struct\"});let p=d.properties.split(\";\"),h=[],y=p.length;for(let v=0;v<y;v++){let C=p[v].trim();if(!C)continue;let k=yl(C,{type:\"struct\"});h.push(k)}if(!h.length)throw new S9({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]=Qle(d,t)}return n}function Qle(e=[],t={},r=new Set){let n=[],o=e.length;for(let s=0;s<o;s++){let u=e[s];if(u9.test(u.type))n.push(u);else{let d=wc(Nlt,u.type);if(!d?.type)throw new w9({abiParameter:u});let{array:p,type:h}=d;if(h in t){if(r.has(h))throw new C9({type:h});n.push({...u,type:`tuple${p??\"\"}`,components:Qle(t[h],t,new Set([...r,h]))})}else if(Dq(h))n.push(u);else throw new p9({type:h})}}return n}var Nlt,k9=x(()=>{c();qA();h9();E9();Uq();Gle();fv();dv();Nlt=/^(?<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(GA(s,t))}return r}var Zle=x(()=>{c();fv();k9();dv()});function B9(e){let t;if(typeof e==\"string\")t=GA(e);else{let r=pv(e),n=e.length;for(let o=0;o<n;o++){let s=e[o];if(!a0(s)){t=GA(s,r);break}}}if(!t)throw new d9({signature:e});return t}var Jle=x(()=>{c();h9();fv();k9();dv()});function I9(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:Nq}))}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:Nq,structs:r}))}}if(t.length===0)throw new y9({params:e});return t}var Yle=x(()=>{c();E9();fv();k9();dv();dv()});var hv=x(()=>{c();Cle();Oq();Zle();Jle();Yle()});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 P9(e.type);return`${e.name}(${VA(e.inputs,{includeName:t})})`}function VA(e,{includeName:t=!1}={}){return e?e.map(r=>Ult(r,{includeName:t})).join(t?\", \":\",\"):\"\"}function Ult(e,{includeName:t}){return e.type.startsWith(\"tuple\")?`(${VA(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:\"\")}var $p=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 qt(e){return Wr(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var ji=x(()=>{c();au()});var Hq,efe=x(()=>{c();Hq=\"2.48.11\"});function tfe(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause!==void 0?tfe(e.cause,t):t?null:e}var Lq,ae,ht=x(()=>{c();efe();Lq={getDocsUrl:({docsBaseUrl:e,docsPath:t=\"\",docsSlug:r})=>t?`${e??\"https://viem.sh\"}${t}${r?`#${r}`:\"\"}`:void 0,version:`viem@${Hq}`},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=Lq.getDocsUrl?.({...r,docsPath:o}),u=[t||\"An error occurred.\",\"\",...r.metaMessages?[...r.metaMessages,\"\"]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...Lq.version?[`Version: ${Lq.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 tfe(this,t)}}});var R9,KA,yv,iu,M9,O9,bv,N9,WA,gv,U9,D9,QA,bl,xv,H9,L9,vv,qp,i0,F9,z9,wv,P9,j9,yo=x(()=>{c();$p();ji();ht();R9=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\"})}},KA=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: (${VA(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})}},M9=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\"})}},O9=class extends ae{constructor({expectedSize:t,value:r}){super(`Size of bytes \"${r}\" (bytes${qt(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\"})}},N9=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\"})}},WA=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}},U9=class extends ae{constructor({docsPath:t}){super(\"Cannot extract event signature from empty topics.\",{docsPath:t,name:\"AbiEventSignatureEmptyTopicsError\"})}},D9=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\"})}},QA=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\"})}},H9=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\"})}},L9=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\"})}},qp=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: (${VA(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}},F9=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\"})}},z9=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\"})}},P9=class extends ae{constructor(t){super([`\"${t}\" is not a valid definition type.`,\\'Valid types: \"function\", \"event\", \"error\"\\'].join(`\\n`),{name:\"InvalidDefinitionTypeError\"})}},j9=class extends ae{constructor(t){super(`Type \"${t}\" is not supported for packed encoding.`,{name:\"UnsupportedPackedAbiType\"})}}});var $9,rfe=x(()=>{c();ht();$9=class extends ae{constructor(t){super(`Filter type \"${t}\" is not supported.`,{name:\"FilterTypeNotSupportedError\"})}}});var ZA,JA,YA,q9=x(()=>{c();ht();ZA=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\"})}},JA=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\"})}},YA=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}):Fq(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 JA({size:Math.ceil(n.length/2),targetSize:r,type:\"hex\"});return`0x${n[t===\"right\"?\"padEnd\":\"padStart\"](r*2,\"0\")}`}function Fq(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new JA({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();q9()});var s0,G9,V9,K9,XA=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\"})}},G9=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\"})}},V9=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\"})}},K9=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 $i(e,{size:t}){if(qt(e)>t)throw new K9({givenSize:qt(e),maxSize:t})}function at(e,t={}){let{signed:r}=t;t.size&&$i(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 W9(e,t={}){let r=e;if(t.size&&($i(r,{size:t.size}),r=Mn(r)),Mn(r)===\"0x00\")return!1;if(Mn(r)===\"0x01\")return!0;throw new V9(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 eS(e,t={}){let r=Jr(e);return t.size&&($i(r,{size:t.size}),r=Mn(r,{dir:\"right\"})),new TextDecoder().decode(r)}var Zn=x(()=>{c();XA();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\"?($i(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+=Dlt[e[o]];let n=`0x${r}`;return typeof t.size==\"number\"?($i(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=Hlt.encode(e);return yr(r,t)}var Dlt,Hlt,tt=x(()=>{c();XA();Gp();Zn();Dlt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));Hlt=new TextEncoder});function Ha(e,t={}){return typeof e==\"number\"||typeof e==\"bigint\"?afe(e,t):typeof e==\"boolean\"?ofe(e,t):Wr(e)?Jr(e,t):qi(e,t)}function ofe(e,t={}){let r=new Uint8Array(1);return r[0]=Number(e),typeof t.size==\"number\"?($i(r,{size:t.size}),Qr(r,{size:t.size})):r}function nfe(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&&($i(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=nfe(n.charCodeAt(f++)),p=nfe(n.charCodeAt(f++));if(d===void 0||p===void 0)throw new ae(`Invalid byte sequence (\"${n[f-2]}${n[f-1]}\" in \"${n}\").`);s[u]=d*16+p}return s}function afe(e,t){let r=le(e,t);return Jr(r)}function qi(e,t={}){let r=Llt.encode(e);return typeof t.size==\"number\"?($i(r,{size:t.size}),Qr(r,{dir:\"right\",size:t.size})):r}var Llt,Kp,bo=x(()=>{c();ht();au();Gp();Zn();tt();Llt=new TextEncoder;Kp={zero:48,nine:57,A:65,F:70,a:97,f:102}});function Flt(e,t=!1){return t?{h:Number(e&Q9),l:Number(e>>ife&Q9)}:{h:Number(e>>ife&Q9)|0,l:Number(e&Q9)|0}}function Z9(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}=Flt(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 Q9,ife,zq,jq,d1,p1,tS,rS,sfe,cfe,ufe,lfe,ffe,dfe,pfe,mfe,hfe,yfe,$q=x(()=>{c();Q9=BigInt(4294967295),ife=BigInt(32);zq=(e,t,r)=>e>>>r,jq=(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,tS=(e,t,r)=>e<<64-r|t>>>r-32,rS=(e,t,r)=>e>>>r-32|t<<64-r,sfe=(e,t,r)=>e<<r|t>>>32-r,cfe=(e,t,r)=>t<<r|e>>>32-r,ufe=(e,t,r)=>t<<r-32|e>>>64-r,lfe=(e,t,r)=>e<<r-32|t>>>64-r;ffe=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),dfe=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,pfe=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),mfe=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,hfe=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),yfe=(e,t,r,n,o,s)=>t+r+n+o+s+(e/2**32|0)|0});var m1,bfe=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 J9(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 Y9(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 xfe(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 X9(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function vl(e,t){return e<<32-t|e>>>t}function $lt(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function qlt(e){for(let t=0;t<e.length;t++)e[t]=$lt(e[t]);return e}function Qf(e){if(Gi(e),vfe)return e.toHex();let t=\"\";for(let r=0;r<e.length;r++)t+=Glt[e[r]];return t}function gfe(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(vfe)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=gfe(e.charCodeAt(s)),f=gfe(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 Gq(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=Gq(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 jlt,qq,vfe,Glt,Wp,c0,wl=x(()=>{c();bfe();jlt=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;qq=jlt?e=>e:qlt,vfe=typeof Uint8Array.from([]).toHex==\"function\"&&typeof Uint8Array.fromHex==\"function\",Glt=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 Xlt(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,p=r[d],h=r[d+1],y=wfe(p,h,1)^r[f],v=Efe(p,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=Sfe[u],d=wfe(o,s,f),p=Efe(o,s,f),h=Afe[u];o=e[h],s=e[h+1],e[h]=d,e[h+1]=p}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]^=Jlt[n],e[1]^=Ylt[n]}su(r)}var Vlt,nS,Klt,Wlt,Qlt,Zlt,Afe,Sfe,Cfe,Tfe,Jlt,Ylt,wfe,Efe,Vq,eft,Zf,Av=x(()=>{c();$q();wl();Vlt=BigInt(0),nS=BigInt(1),Klt=BigInt(2),Wlt=BigInt(7),Qlt=BigInt(256),Zlt=BigInt(113),Afe=[],Sfe=[],Cfe=[];for(let e=0,t=nS,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],Afe.push(2*(5*n+r)),Sfe.push((e+1)*(e+2)/2%64);let o=Vlt;for(let s=0;s<7;s++)t=(t<<nS^(t>>Wlt)*Zlt)%Qlt,t&Klt&&(o^=nS<<(nS<<BigInt(s))-nS);Cfe.push(o)}Tfe=Z9(Cfe,!0),Jlt=Tfe[0],Ylt=Tfe[1],wfe=(e,t,r)=>r>32?ufe(e,t,r):sfe(e,t,r),Efe=(e,t,r)=>r>32?lfe(e,t,r):cfe(e,t,r);Vq=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=xfe(this.state)}clone(){return this._cloneInto()}keccak(){qq(this.state32),Xlt(this.state32,this.rounds),qq(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(Y9(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}},eft=(e,t,r)=>Ev(()=>new Vq(t,e,r)),Zf=eft(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 _fe(e){return tft(e)}var tft,kfe=x(()=>{c();bo();Is();tft=e=>Gt(Ha(e))});function Bfe(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 Ife=x(()=>{c();ht()});var Pfe,Rfe=x(()=>{c();hv();Ife();Pfe=e=>{let t=typeof e==\"string\"?e:l1(e);return Bfe(t)}});function eB(e){return _fe(Pfe(e))}var Kq=x(()=>{c();kfe();Rfe()});var f0,oS=x(()=>{c();Kq();f0=eB});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(Wq.has(`${e}.${t}`))return Wq.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=Gt(qi(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 Wq.set(`${e}.${t}`,s),s}function hn(e,t){if(!wt(e,{strict:!1}))throw new vr({address:e});return Jf(e,t)}var Wq,El=x(()=>{c();Ec();bo();Is();d0();ui();Wq=new ci(8192)});function wt(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(Qq.has(n))return Qq.get(n);let o=rft.test(e)?e.toLowerCase()===e?!0:r?Jf(e)===e:!0:!1;return Qq.set(n,o),o}var rft,Qq,ui=x(()=>{c();d0();El();rft=/^0x[a-fA-F0-9]{40}$/,Qq=new ci(8192)});function mr(e){return typeof e[0]==\"string\"?Cn(e):nft(e)}function nft(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})?aS(e,t,r,{strict:n}):tB(e,t,r,{strict:n})}function Mfe(e,t){if(typeof t==\"number\"&&t>0&&t>qt(e)-1)throw new ZA({offset:t,position:\"start\",size:qt(e)})}function Ofe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&qt(e)!==r-t)throw new ZA({offset:r,position:\"end\",size:qt(e)})}function tB(e,t,r,{strict:n}={}){Mfe(e,t);let o=e.slice(t,r);return n&&Ofe(o,t,r),o}function aS(e,t,r,{strict:n}={}){Mfe(e,t);let o=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(r??e.length)*2)}`;return n&&Ofe(o,t,r),o}var Yf=x(()=>{c();q9();au();ji()});var Nfe,rB,Sv,nB=x(()=>{c();Nfe=/^(.*)\\\\[([0-9]*)\\\\]$/,rB=/^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 Fn(e,t){if(e.length!==t.length)throw new bv({expectedLength:e.length,givenLength:t.length});let r=oft({params:e,values:t}),n=Jq(r);return n.length===0?\"0x\":n}function oft({params:e,values:t}){let r=[];for(let n=0;n<e.length;n++)r.push(Zq({param:e[n],value:t[n]}));return r}function Zq({param:e,value:t}){let r=oB(e.type);if(r){let[n,o]=r;return ift(t,{length:n,param:{...e,type:o}})}if(e.type===\"tuple\")return fft(t,{param:e});if(e.type===\"address\")return aft(t);if(e.type===\"bool\")return cft(t);if(e.type.startsWith(\"uint\")||e.type.startsWith(\"int\")){let n=e.type.startsWith(\"int\"),[,,o=\"256\"]=Sv.exec(e.type)??[];return uft(t,{signed:n,size:Number(o)})}if(e.type.startsWith(\"bytes\"))return sft(t,{param:e});if(e.type===\"string\")return lft(t);throw new F9(e.type,{docsPath:\"/docs/contract/encodeAbiParameters\"})}function Jq(e){let t=0;for(let s=0;s<e.length;s++){let{dynamic:u,encoded:f}=e[s];u?t+=32:t+=qt(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+=qt(f)):r.push(f)}return mr([...r,...n])}function aft(e){if(!wt(e))throw new vr({address:e});return{dynamic:!1,encoded:gl(e.toLowerCase())}}function ift(e,{length:t,param:r}){let n=t===null;if(!Array.isArray(e))throw new wv(e);if(!n&&e.length!==t)throw new M9({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let o=!1,s=[];for(let u=0;u<e.length;u++){let f=Zq({param:r,value:e[u]});f.dynamic&&(o=!0),s.push(f)}if(n||o){let u=Jq(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 sft(e,{param:t}){let[,r]=t.type.split(\"bytes\"),n=qt(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 O9({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:gl(e,{dir:\"right\"})}}function cft(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 uft(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 lft(e){let t=ks(e),r=Math.ceil(qt(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(qt(t),{size:32})),...n])}}function fft(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=Zq({param:s,value:e[u]});n.push(f),f.dynamic&&(r=!0)}return{dynamic:r,encoded:r?Jq(n):mr(n.map(({encoded:o})=>o))}}function oB(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();XA();ui();Jn();Gp();ji();Yf();tt();nB()});var Xf,Cv=x(()=>{c();Yf();Kq();Xf=e=>La(eB(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((p,h)=>{let y=\"inputs\"in f&&f.inputs[h];return y?Yq(p,y):!1})){if(u&&\"inputs\"in u&&u.inputs){let p=Ufe(f.inputs,u.inputs,r);if(p)throw new L9({abiItem:f,type:p[0]},{abiItem:u,type:p[1]})}u=f}}return u||s[0]}function Yq(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\"&&Yq(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=>Yq(o,{...t,type:n.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function Ufe(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 Ufe(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();oS();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 QA(r,{docsPath:Dfe});o=d}if(o.type!==\"event\")throw new QA(void 0,{docsPath:Dfe});let s=sa(o),u=f0(s),f=[];if(n&&\"inputs\"in o){let d=o.inputs?.filter(h=>\"indexed\"in h&&h.indexed),p=Array.isArray(n)?n:Object.values(n).length>0?d?.map(h=>n[h.name])??[]:[];p.length>0&&(f=d?.map((h,y)=>Array.isArray(p[y])?p[y].map((v,E)=>Hfe({param:h,value:p[y][E]})):typeof p[y]<\"u\"&&p[y]!==null?Hfe({param:h,value:p[y]}):null)??[])}return[u,...f]}function Hfe({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 $9(e.type);return Fn([e],[t])}var Dfe,Tv=x(()=>{c();yo();rfe();bo();Is();oS();cu();$p();p0();Dfe=\"/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 iS=x(()=>{c()});async function aB(e,t){let{address:r,abi:n,args:o,eventName:s,fromBlock:u,strict:f,toBlock:d}=t,p=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:p(y),strict:!!f,type:\"event\"}}var Xq=x(()=>{c();Tv();tt();iS()});function Xe(e){return typeof e==\"string\"?{address:e,type:\"json-rpc\"}:e}var Yr=x(()=>{c()});function Ffe(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:Lfe});o=s}if(o.type!==\"function\")throw new bl(void 0,{docsPath:Lfe});return{abi:[o],functionName:Xf(sa(o))}}var Lfe,zfe=x(()=>{c();yo();Cv();$p();p0();Lfe=\"/docs/contract/encodeFunctionData\"});function Ct(e){let{args:t}=e,{abi:r,functionName:n}=e.abi.length===1&&e.functionName?.startsWith(\"0x\")?e:Ffe(e),o=r[0],s=n,u=\"inputs\"in o&&o.inputs?Fn(o.inputs,t??[]):void 0;return Cn([s,u??\"0x\"])}var Fa=x(()=>{c();Jn();cu();zfe()});var jfe,iB,$fe,sB=x(()=>{c();jfe={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.\"},iB={inputs:[{name:\"message\",type:\"string\"}],name:\"Error\",type:\"error\"},$fe={inputs:[{name:\"reason\",type:\"uint256\"}],name:\"Panic\",type:\"error\"}});var sS,_v,cB,eG=x(()=>{c();ht();sS=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\"})}},cB=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(dft);return r.bytes=e,r.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}var dft,uB=x(()=>{c();eG();dft={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 cB({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 sS({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 sS({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 qfe(e,t={}){typeof t.size<\"u\"&&$i(e,{size:t.size});let r=yr(e,t);return at(r,t)}function Gfe(e,t={}){let r=e;if(typeof t.size<\"u\"&&($i(r,{size:t.size}),r=Mn(r)),r.length>1||r[0]>1)throw new G9(r);return!!r[0]}function td(e,t={}){typeof t.size<\"u\"&&$i(e,{size:t.size});let r=yr(e,t);return Zr(r,t)}function Vfe(e,t={}){let r=e;return typeof t.size<\"u\"&&($i(r,{size:t.size}),r=Mn(r,{dir:\"right\"})),new TextDecoder().decode(r)}var Kfe=x(()=>{c();XA();Vp();Zn();tt()});function Rs(e,t){let r=typeof t==\"string\"?Jr(t):t,n=kv(r);if(qt(r)===0&&e.length>0)throw new iu;if(qt(t)&&qt(t)<32)throw new yv({data:typeof t==\"string\"?t:yr(t),params:e,size:qt(t)});let o=0,s=[];for(let u=0;u<e.length;++u){let f=e[u];n.setPosition(o);let[d,p]=Bv(n,f,{staticPosition:0});o+=p,s.push(d)}return s}function Bv(e,t,{staticPosition:r}){let n=oB(t.type);if(n){let[o,s]=n;return mft(e,{...t,type:s},{length:o,staticPosition:r})}if(t.type===\"tuple\")return gft(e,t,{staticPosition:r});if(t.type===\"address\")return pft(e);if(t.type===\"bool\")return hft(e);if(t.type.startsWith(\"bytes\"))return yft(e,t,{staticPosition:r});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return bft(e,t);if(t.type===\"string\")return xft(e,{staticPosition:r});throw new z9(t.type,{docsPath:\"/docs/contract/decodeAbiParameters\"})}function pft(e){let t=e.readBytes(32);return[Jf(yr(tB(t,-20))),32]}function mft(e,t,{length:r,staticPosition:n}){if(!r){let u=td(e.readBytes(tG)),f=n+u,d=f+Wfe;e.setPosition(f);let p=td(e.readBytes(Wfe)),h=cS(t),y=0,v=[];for(let E=0;E<p;++E){e.setPosition(d+(h?E*32:y));let[C,k]=Bv(e,t,{staticPosition:d});y+=k,v.push(C)}return e.setPosition(n+32),[v,32]}if(cS(t)){let u=td(e.readBytes(tG)),f=n+u,d=[];for(let p=0;p<r;++p){e.setPosition(f+p*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 hft(e){return[Gfe(e.readBytes(32),{size:32}),32]}function yft(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 bft(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?qfe(o,{signed:r}):td(o,{signed:r}),32]}function gft(e,t,{staticPosition:r}){let n=t.components.length===0||t.components.some(({name:u})=>!u),o=n?[]:{},s=0;if(cS(t)){let u=td(e.readBytes(tG)),f=r+u;for(let d=0;d<t.components.length;++d){let p=t.components[d];e.setPosition(f+s);let[h,y]=Bv(e,p,{staticPosition:f});s+=y,o[n?d:p?.name]=h}return e.setPosition(r+32),[o,32]}for(let u=0;u<t.components.length;++u){let f=t.components[u],[d,p]=Bv(e,f,{staticPosition:r});o[n?u:f?.name]=d,s+=p}return[o,s]}function xft(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=Vfe(Mn(s));return e.setPosition(t+32),[u,32]}function cS(e){let{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(cS);let r=oB(e.type);return!!(r&&cS({...e,type:r[1]}))}var Wfe,tG,Iv=x(()=>{c();yo();El();uB();ji();Yf();Vp();Kfe();bo();tt();cu();Wfe=32,tG=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||[],iB,$fe].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 lB=x(()=>{c();sB();yo();Yf();Cv();Iv();$p()});var or,za=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 rG({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 Qfe=x(()=>{c();za()});var Zfe,Jfe,nG=x(()=>{c();Zfe={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 fB=x(()=>{c()});function Rv(e,t=\"wei\"){return y1(e,Zfe[t])}var dB=x(()=>{c();nG();fB()});function ao(e,t=\"wei\"){return y1(e,Jfe[t])}var b1=x(()=>{c();nG();fB()});function Yfe(e){return e.reduce((t,{slot:r,value:n})=>`${t}        ${r}: ${n}\\n`,\"\")}function Xfe(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+=Yfe(n.state)),n.stateDiff&&(o+=`      stateDiff:\\n`,o+=Yfe(n.stateDiff)),o},`  State Override:\\n`).slice(0,-1)}var pB,mB,oG=x(()=>{c();ht();pB=class extends ae{constructor({address:t}){super(`State for account \"${t}\" is set multiple times.`,{name:\"AccountStateConflictError\"})}},mB=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 hB,yB,bB,gB,Mv,Ov,Nv,xB,Ac=x(()=>{c();dB();b1();ht();hB=class extends ae{constructor({v:t}){super(`Invalid \\\\`v\\\\` value \"${t}\". Expected 27 or 28.`,{name:\"InvalidLegacyVError\"})}},yB=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\"})}},bB=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\"})}},gB=class extends ae{constructor(t,{account:r,docsPath:n,chain:o,data:s,gas:u,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:p,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 p<\"u\"&&`${ao(p)} 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}},xB=class extends ae{constructor({hash:t}){super(`Timed out while waiting for transaction with hash \"${t}\" to be confirmed.`,{name:\"WaitForTransactionReceiptTimeoutError\"})}}});var ede,g1,vB=x(()=>{c();ede=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,wB,rd,Xp=x(()=>{c();Yr();sB();lB();$p();Qfe();p0();dB();b1();yo();ht();oG();Ac();vB();Uv=class extends ae{constructor(t,{account:r,docsPath:n,chain:o,data:s,gas:u,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,to:y,value:v,stateOverride:E}){let C=r?Xe(r):void 0,k=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 p<\"u\"&&`${ao(p)} gwei`,nonce:h});E&&(k+=`\\n${Xfe(E)}`),super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Raw Call Arguments:\",k].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}),p=d?rG({abiItem:d,args:n,includeFunctionName:!1,includeName:!1}):void 0,h=d?sa(d,{includeName:!0}):void 0,y=Jp({address:o&&ede(o),function:h,args:p&&p!==\"()\"&&`${[...Array(u?.length??0).keys()].map(()=>\" \").join(\"\")}${p}`,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,p;if(r&&r!==\"0x\")try{f=Pv({abi:t,data:r,cause:s});let{abiItem:y,errorName:v,args:E}=f;if(v===\"Error\")p=E[0];else if(v===\"Panic\"){let[C]=E;p=jfe[C]}else{let C=y?sa(y,{includeName:!0}):void 0,k=y&&E?rG({abiItem:y,args:E,includeFunctionName:!1,includeName:!1}):void 0;d=[C?`Error: ${C}`:\"\",k&&k!==\"()\"?`       ${[...Array(v?.length??0).keys()].map(()=>\" \").join(\"\")}${k}`:\"\"]}}catch(y){u=y}else o&&(p=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(p&&p!==\"execution reverted\"||h?[`The contract function \"${n}\" reverted with the following ${h?\"signature\":\"reason\"}:`,p||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=p,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})}},wB=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,uS,x1=x(()=>{c();za();ht();vB();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}},uS=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 vft,ja,$a,v1,w1,E1,A1,nd,Sc,S1,Al,C1,em,b0,T1,zn,_1,k1,B1,I1,Vi,tm,P1,R1,M1,O1,N1,rm,Hv,lS,U1=x(()=>{c();ht();x1();vft=-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??vft}},$a=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});zn=class e extends $a{constructor(t){super(t,{code:e.code,name:\"UserRejectedRequestError\",shortMessage:\"User rejected the request.\"})}};Object.defineProperty(zn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});_1=class e extends $a{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 $a{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 $a{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 $a{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 $a{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 $a{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 $a{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 $a{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 $a{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 $a{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 $a{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 $a{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 $a{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});lS=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:p,details:h,message:y,shortMessage:v}=f,E=e instanceof iu?new Dv({functionName:s,cause:e}):[wft,nd.code].includes(d)&&(p||h||y||v)||d===Sc.code&&h===\"execution reverted\"&&p?new Yp({abi:t,data:typeof p==\"object\"?p.data:p,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 wft,D1=x(()=>{c();yo();ht();Xp();x1();U1();wft=3});function tde(e){let t=Gt(`0x${e.substring(4)}`).substring(26);return Jf(`0x${t}`)}var rde=x(()=>{c();El();Is()});function Eft(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,p=n?0:4;e.setUint32(t+d,u,n),e.setUint32(t+p,f,n)}function nde(e,t,r){return e&t^~e&r}function ode(e,t,r){return e&t^e&r^t&r}var fS,nm,qa,Ga,ade=x(()=>{c();wl();fS=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=X9(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=X9(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),Y9(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;Eft(n,o-8,BigInt(this.length*8),s),this.process(n,0);let f=X9(t),d=this.outputLen;if(d%4)throw new Error(\"_sha2: outputLen should be aligned to 32bit\");let p=d/4,h=this.get();if(p>h.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let y=0;y<p;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]),qa=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,EB,ide,Sft,Cft,x0,v0,AB,aG,Tc,SB,CB,Lv=x(()=>{c();ade();$q();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),EB=class extends fS{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,k=vl(E,17)^vl(E,19)^E>>>10;g0[y]=k+g0[y-7]+C+g0[y-16]|0}let{A:n,B:o,C:s,D:u,E:f,F:d,G:p,H:h}=this;for(let y=0;y<64;y++){let v=vl(f,6)^vl(f,11)^vl(f,25),E=h+v+nde(f,d,p)+Aft[y]+g0[y]|0,k=(vl(n,2)^vl(n,13)^vl(n,22))+ode(n,o,s)|0;h=p,p=d,d=f,f=u+E|0,u=s,s=o,o=n,n=E+k|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,p=p+this.G|0,h=h+this.H|0,this.set(n,o,s,u,f,d,p,h)}roundClean(){su(g0)}destroy(){this.set(0,0,0,0,0,0,0,0),su(this.buffer)}},ide=Z9([\"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))),Sft=ide[0],Cft=ide[1],x0=new Uint32Array(80),v0=new Uint32Array(80),AB=class extends fS{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:p,El:h,Fh:y,Fl:v,Gh:E,Gl:C,Hh:k,Hl:P}=this;return[t,r,n,o,s,u,f,d,p,h,y,v,E,C,k,P]}set(t,r,n,o,s,u,f,d,p,h,y,v,E,C,k,P){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=p|0,this.El=h|0,this.Fh=y|0,this.Fl=v|0,this.Gh=E|0,this.Gl=C|0,this.Hh=k|0,this.Hl=P|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)^zq(N,j,7),G=p1(N,j,1)^p1(N,j,8)^jq(N,j,7),J=x0[O-2]|0,Y=v0[O-2]|0,W=d1(J,Y,19)^tS(J,Y,61)^zq(J,Y,6),ie=p1(J,Y,19)^rS(J,Y,61)^jq(J,Y,6),re=pfe(G,ie,v0[O-7],v0[O-16]),H=mfe(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:p,Dl:h,Eh:y,El:v,Fh:E,Fl:C,Gh:k,Gl:P,Hh:M,Hl:U}=this;for(let O=0;O<80;O++){let N=d1(y,v,14)^d1(y,v,18)^tS(y,v,41),j=p1(y,v,14)^p1(y,v,18)^rS(y,v,41),K=y&E^~y&k,G=v&C^~v&P,J=hfe(U,j,G,Cft[O],v0[O]),Y=yfe(J,M,N,K,Sft[O],x0[O]),W=J|0,ie=d1(n,o,28)^tS(n,o,34)^tS(n,o,39),re=p1(n,o,28)^rS(n,o,34)^rS(n,o,39),H=n&s^n&f^s&f,A=o&u^o&d^u&d;M=k|0,U=P|0,k=E|0,P=C|0,E=y|0,C=v|0,{h:y,l:v}=Wf(p|0,h|0,Y|0,W|0),p=f|0,h=d|0,f=s|0,d=u|0,s=n|0,u=o|0;let T=ffe(W,re,A);n=dfe(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:p,l:h}=Wf(this.Dh|0,this.Dl|0,p|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:k,l:P}=Wf(this.Gh|0,this.Gl|0,k|0,P|0),{h:M,l:U}=Wf(this.Hh|0,this.Hl|0,M|0,U|0),this.set(n,o,s,u,f,d,p,h,y,v,E,C,k,P,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)}},aG=class extends AB{constructor(){super(48),this.Ah=qa[0]|0,this.Al=qa[1]|0,this.Bh=qa[2]|0,this.Bl=qa[3]|0,this.Ch=qa[4]|0,this.Cl=qa[5]|0,this.Dh=qa[6]|0,this.Dl=qa[7]|0,this.Eh=qa[8]|0,this.El=qa[9]|0,this.Fh=qa[10]|0,this.Fl=qa[11]|0,this.Gh=qa[12]|0,this.Gl=qa[13]|0,this.Hh=qa[14]|0,this.Hl=qa[15]|0}},Tc=Ev(()=>new EB),SB=Ev(()=>new AB),CB=Ev(()=>new aG)});var TB,dS,iG=x(()=>{c();wl();TB=class extends c0{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,J9(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()}},dS=(e,t,r)=>new TB(e,t).update(r).digest();dS.create=(e,t)=>new TB(e,t)});function Fv(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===\"Uint8Array\"}function am(e){if(!Fv(e))throw new Error(\"Uint8Array expected\")}function zv(e,t){if(typeof t!=\"boolean\")throw new Error(e+\" boolean expected, got \"+t)}function pS(e){let t=e.toString(16);return t.length&1?\"0\"+t:t}function ude(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);return e===\"\"?lG:BigInt(\"0x\"+e)}function jv(e){if(am(e),lde)return e.toHex();let t=\"\";for(let r=0;r<e.length;r++)t+=Tft[e[r]];return t}function sde(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 mS(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);if(lde)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=sde(e.charCodeAt(s)),f=sde(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 ude(jv(e))}function fG(e){return am(e),ude(jv(Uint8Array.from(e).reverse()))}function od(e,t){return mS(e.toString(16).padStart(t*2,\"0\"))}function dG(e,t){return od(e,t).reverse()}function Go(e,t,r){let n;if(typeof t==\"string\")try{n=mS(t)}catch(s){throw new Error(e+\" must be hex string or Uint8Array, cause: \"+s)}else if(Fv(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 fde(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 _B(e){if(typeof e!=\"string\")throw new Error(\"string expected\");return new Uint8Array(new TextEncoder().encode(e))}function H1(e,t,r){return sG(e)&&sG(t)&&sG(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 dde(e){let t;for(t=0;e>lG;e>>=uG,t+=1);return t}function pde(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=cG(e),o=cG(e),s=0,u=()=>{n.fill(1),o.fill(0),s=0},f=(...y)=>r(o,n,...y),d=(y=cG(0))=>{o=f(cde([0]),y),n=f(),y.length!==0&&(o=f(cde([1]),y),n=f())},p=()=>{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(p()));)d();return u(),E}}function sm(e,t,r={}){let n=(o,s,u)=>{let f=_ft[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 pG(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 lG,uG,lde,Tft,om,sG,L1,cG,cde,_ft,F1=x(()=>{c();lG=BigInt(0),uG=BigInt(1);lde=typeof Uint8Array.from([]).toHex==\"function\"&&typeof Uint8Array.fromHex==\"function\",Tft=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};sG=e=>typeof e==\"bigint\"&&lG<=e;L1=e=>(uG<<BigInt(e))-uG,cG=e=>new Uint8Array(e),cde=e=>Uint8Array.from(e);_ft={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\"||Fv(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 kB(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 p=n/r,h=n%r,y=o-u*p,v=s-f*p;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 gde(e,t){let r=(e.ORDER+li)/hde,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw new Error(\"Cannot find square root\");return n}function Bft(e,t){let r=(e.ORDER-yde)/bde,n=e.mul(t,z1),o=e.pow(n,r),s=e.mul(t,o),u=e.mul(e.mul(s,z1),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 Ift(e){if(e<BigInt(3))throw new Error(\"sqrt is not defined for small field\");let t=e-li,r=0;for(;t%z1===Wi;)t/=z1,r++;let n=z1,o=cm(e);for(;mde(o,n)===1;)if(n++>1e3)throw new Error(\"Cannot find square root: probably non-prime P\");if(r===1)return gde;let s=o.pow(n,t),u=(t+li)/z1;return function(d,p){if(d.is0(p))return p;if(mde(d,p)!==1)throw new Error(\"Cannot find square root\");let h=r,y=d.mul(d.ONE,s),v=d.pow(p,t),E=d.pow(p,u);for(;!d.eql(v,d.ONE);){if(d.is0(v))return d.ZERO;let C=1,k=d.sqr(v);for(;!d.eql(k,d.ONE);)if(C++,k=d.sqr(k),C===h)throw new Error(\"Cannot find square root\");let P=li<<BigInt(h-C-1),M=d.pow(y,P);h=C,y=d.sqr(M),v=d.mul(v,y),E=d.mul(E,M)}return E}}function Pft(e){return e%hde===kft?gde:e%bde===yde?Bft:Ift(e)}function BB(e){let t={ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"isSafeInteger\",BITS:\"isSafeInteger\"},r=Rft.reduce((n,o)=>(n[o]=\"function\",n),t);return sm(e,r)}function Mft(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 $v(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 mde(e,t){let r=(e.ORDER-li)/z1,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 mG(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}=mG(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,p)=>d===p,sqr:d=>_o(d*d,e),add:(d,p)=>_o(d+p,e),sub:(d,p)=>_o(d-p,e),mul:(d,p)=>_o(d*p,e),pow:(d,p)=>Mft(f,d,p),div:(d,p)=>_o(d*kB(p,e),e),sqrN:d=>d*d,addN:(d,p)=>d+p,subN:(d,p)=>d-p,mulN:(d,p)=>d*p,inv:d=>kB(d,e),sqrt:n.sqrt||(d=>(u||(u=Pft(e)),u(f,d))),toBytes:d=>r?dG(d,s):od(d,s),fromBytes:d=>{if(d.length!==s)throw new Error(\"Field.fromBytes: expected \"+s+\" bytes, got \"+d.length);return r?fG(d):Ms(d)},invertBatch:d=>$v(f,d),cmov:(d,p,h)=>h?p:d});return Object.freeze(f)}function xde(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 hG(e){let t=xde(e);return t+Math.ceil(t/2)}function vde(e,t,r=!1){let n=e.length,o=xde(t),s=hG(t);if(n<16||n<s||n>1024)throw new Error(\"expected \"+s+\"-1024 bytes of input, got \"+n);let u=r?fG(e):Ms(e),f=_o(u,t-li)+li;return r?dG(f,o):od(f,o)}var Wi,li,z1,kft,hde,yde,bde,Rft,qv=x(()=>{c();wl();F1();Wi=BigInt(0),li=BigInt(1),z1=BigInt(2),kft=BigInt(3),hde=BigInt(4),yde=BigInt(5),bde=BigInt(8);Rft=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"]});function yG(e,t){let r=t.negate();return e?r:t}function Ade(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error(\"invalid window size, expected [1..\"+t+\"], got W=\"+e)}function bG(e,t){Ade(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 Ede(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+=vG);let p=t*n,h=p+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:p}}function Oft(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 Nft(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 xG(e){return Sde.get(e)||1}function Cde(e,t){return{constTimeNegate:yG,hasPrecomputes(r){return xG(r)!==1},unsafeLadder(r,n,o=e.ZERO){let s=r;for(;n>wde;)n&vG&&(o=o.add(s)),s=s.double(),n>>=vG;return o},precomputeWindow(r,n){let{windows:o,windowSize:s}=bG(n,t),u=[],f=r,d=f;for(let p=0;p<o;p++){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=bG(r,t);for(let d=0;d<f.windows;d++){let{nextN:p,offset:h,isZero:y,isNeg:v,isNegF:E,offsetF:C}=Ede(o,d,f);o=p,y?u=u.add(yG(E,n[C])):s=s.add(yG(v,n[h]))}return{p:s,f:u}},wNAFUnsafe(r,n,o,s=e.ZERO){let u=bG(r,t);for(let f=0;f<u.windows&&o!==wde;f++){let{nextN:d,offset:p,isZero:h,isNeg:y}=Ede(o,f,u);if(o=d,!h){let v=n[p];s=s.add(y?v.negate():v)}}return s},getPrecomputes(r,n,o){let s=gG.get(n);return s||(s=this.precomputeWindow(n,r),r!==1&&gG.set(n,o(s))),s},wNAFCached(r,n,o){let s=xG(r);return this.wNAF(s,this.getPrecomputes(s,r,o),n)},wNAFCachedUnsafe(r,n,o,s){let u=xG(r);return u===1?this.unsafeLadder(r,n,s):this.wNAFUnsafe(u,this.getPrecomputes(u,r,o),n,s)},setWindowSize(r,n){Ade(n,t),Sde.set(r,n),gG.delete(r)}}}function Tde(e,t,r,n){Oft(r,e),Nft(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=dde(BigInt(o)),d=1;f>12?d=f-3:f>4?d=f-2:f>0&&(d=2);let p=L1(d),h=new Array(Number(p)+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 k=0;k<s;k++){let P=n[k],M=Number(P>>BigInt(E)&p);h[M]=h[M].add(r[k])}let C=u;for(let k=h.length-1,P=u;k>0;k--)P=P.add(h[k]),C=C.add(P);if(v=v.add(C),E!==0)for(let k=0;k<d;k++)v=v.double()}return v}function wG(e){return BB(e.Fp),sm(e,{n:\"bigint\",h:\"bigint\",Gx:\"field\",Gy:\"field\"},{nBitLength:\"isSafeInteger\",nByteLength:\"isSafeInteger\"}),Object.freeze({...mG(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}var wde,vG,gG,Sde,_de=x(()=>{c();qv();F1();wde=BigInt(0),vG=BigInt(1);gG=new WeakMap,Sde=new WeakMap});function kde(e){e.lowS!==void 0&&zv(\"lowS\",e.lowS),e.prehash!==void 0&&zv(\"prehash\",e.prehash)}function Uft(e){let t=wG(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 EG(e,t){return jv(od(e,t))}function Dft(e){let t=Uft(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,hS),SG),p=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(d,p)))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(Fv(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 k))throw new Error(\"ProjectivePoint expected\")}let E=pG((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=pG(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 k{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 k)throw new Error(\"projective point not allowed\");let G=J=>r.eql(J,r.ZERO);return G(j)&&G(K)?k.ZERO:new k(j,K,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(N){let j=$v(r,N.map(K=>K.pz));return N.map((K,G)=>K.toAffine(j[G])).map(k.fromAffine)}static fromHex(N){let j=k.fromAffine(s(Go(\"pointHex\",N)));return j.assertValidity(),j}static fromPrivateKey(N){return k.BASE.multiply(y(N))}static msm(N,j){return Tde(k,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 k(this.px,r.neg(this.py),this.pz)}double(){let{a:N,b:j}=t,K=r.mul(j,hS),{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),R=r.mul(G,J);return R=r.add(R,R),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(R,W),re=r.mul(K,re),T=r.mul(N,T),R=r.sub(H,T),R=r.mul(N,R),R=r.add(R,re),re=r.add(H,H),H=r.add(re,H),H=r.add(H,T),H=r.mul(H,R),ie=r.add(ie,H),T=r.mul(J,Y),T=r.add(T,T),H=r.mul(T,R),W=r.sub(W,H),re=r.mul(T,A),re=r.add(re,re),re=r.add(re,re),new k(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,hS),R=r.mul(j,J),D=r.mul(K,Y),L=r.mul(G,W),V=r.add(j,K),Q=r.add(J,Y);V=r.mul(V,Q),Q=r.add(R,D),V=r.sub(V,Q),Q=r.add(j,G);let F=r.add(J,W);return Q=r.mul(Q,F),F=r.add(R,L),Q=r.sub(Q,F),F=r.add(K,G),ie=r.add(Y,W),F=r.mul(F,ie),ie=r.add(D,L),F=r.sub(F,ie),H=r.mul(A,Q),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(R,R),D=r.add(D,R),L=r.mul(A,L),Q=r.mul(T,Q),D=r.add(D,L),L=r.sub(R,L),L=r.mul(A,L),Q=r.add(Q,L),R=r.mul(D,Q),re=r.add(re,R),R=r.mul(F,Q),ie=r.mul(V,ie),ie=r.sub(ie,R),R=r.mul(V,D),H=r.mul(F,H),H=r.add(H,R),new k(ie,re,H)}subtract(N){return this.add(N.negate())}is0(){return this.equals(k.ZERO)}wNAF(N){return U.wNAFCached(this,N,k.normalizeZ)}multiplyUnsafe(N){let{endo:j,n:K}=t;im(\"scalar\",N,Sl,K);let G=k.ZERO;if(N===Sl)return G;if(this.is0()||N===yn)return this;if(!j||U.hasPrecomputes(this))return U.wNAFCachedUnsafe(this,N,k.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 k(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:R}=this.wNAF(re);H=U.constTimeNegate(Y,H),T=U.constTimeNegate(ie,T),T=new k(r.mul(T.px,j.beta),T.py,T.pz),G=H.add(T),J=A.add(R)}else{let{p:Y,f:W}=this.wNAF(N);G=Y,J=W}return k.normalizeZ([G,J])[0]}multiplyAndAddUnsafe(N,j,K){let G=k.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(k,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(k,this):this.multiplyUnsafe(t.h)}toRawBytes(N=!0){return zv(\"isCompressed\",N),this.assertValidity(),o(k,this,N)}toHex(N=!0){return zv(\"isCompressed\",N),jv(this.toRawBytes(N))}}k.BASE=new k(t.Gx,t.Gy,r.ONE),k.ZERO=new k(r.ZERO,r.ONE,r.ZERO);let{endo:P,nBitLength:M}=t,U=Cde(k,P?Math.ceil(M/2):M);return{CURVE:t,ProjectivePoint:k,normPrivateKeyToScalar:y,weierstrassEquation:u,isWithinCurveOrder:h}}function Hft(e){let t=wG(e);return sm(t,{hash:\"hash\",hmac:\"function\",randomBytes:\"function\"},{bits2int:\"function\",bits2int_modN:\"function\",lowS:\"boolean\"}),Object.freeze({lowS:!0,...t})}function Bde(e){let t=Hft(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 p(T){return kB(T,n)}let{ProjectivePoint:h,normPrivateKeyToScalar:y,weierstrassEquation:v,isWithinCurveOrder:E}=Dft({...t,toBytes(T,R,D){let L=R.toAffine(),V=r.toBytes(L.x),Q=Ki;return zv(\"isCompressed\",D),D?Q(Uint8Array.from([R.hasEvenY()?2:3]),V):Q(Uint8Array.from([4]),V,r.toBytes(L.y))},fromBytes(T){let R=T.length,D=T[0],L=T.subarray(1);if(R===u&&(D===2||D===3)){let V=Ms(L);if(!H1(V,yn,r.ORDER))throw new Error(\"Point is not on curve\");let Q=v(V),F;try{F=r.sqrt(Q)}catch(me){let ge=me instanceof Error?\": \"+me.message:\"\";throw new Error(\"Point is not on curve\"+ge)}let I=(F&yn)===yn;return(D&1)===1!==I&&(F=r.neg(F)),{x:V,y:F}}else if(R===f&&D===4){let V=r.fromBytes(L.subarray(0,r.BYTES)),Q=r.fromBytes(L.subarray(r.BYTES,2*r.BYTES));return{x:V,y:Q}}else{let V=u,Q=f;throw new Error(\"invalid Point, expected length of \"+V+\", or uncompressed \"+Q+\", got \"+R)}}});function C(T){let R=n>>yn;return T>R}function k(T){return C(T)?d(-T):T}let P=(T,R,D)=>Ms(T.slice(R,D));class M{constructor(R,D,L){im(\"r\",R,yn,n),im(\"s\",D,yn,n),this.r=R,this.s=D,L!=null&&(this.recovery=L),Object.freeze(this)}static fromCompact(R){let D=o;return R=Go(\"compactSignature\",R,D*2),new M(P(R,0,D),P(R,D,2*D))}static fromDER(R){let{r:D,s:L}=um.toSig(Go(\"DER\",R));return new M(D,L)}assertValidity(){}addRecoveryBit(R){return new M(this.r,this.s,R)}recoverPublicKey(R){let{r:D,s:L,recovery:V}=this,Q=G(Go(\"msgHash\",R));if(V==null||![0,1,2,3].includes(V))throw new Error(\"recovery id invalid\");let F=V===2||V===3?D+t.n:D;if(F>=r.ORDER)throw new Error(\"recovery id 2 or 3 invalid\");let I=(V&1)===0?\"02\":\"03\",Z=h.fromHex(I+EG(F,r.BYTES)),me=p(F),ge=d(-Q*me),Se=d(L*me),Ce=h.BASE.multiplyAndAddUnsafe(Z,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 mS(this.toDERHex())}toDERHex(){return um.hexFromSig(this)}toCompactRawBytes(){return mS(this.toCompactHex())}toCompactHex(){let R=o;return EG(this.r,R)+EG(this.s,R)}}let U={isValidPrivateKey(T){try{return y(T),!0}catch{return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{let T=hG(t.n);return vde(t.randomBytes(T),t.n)},precompute(T=8,R=h.BASE){return R._setWindowSize(T),R.multiply(BigInt(3)),R}};function O(T,R=!0){return h.fromPrivateKey(T).toRawBytes(R)}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,Q=2*L+1;if(!(t.allowedPrivateKeyLengths||o===V))return D===V||D===Q}function j(T,R,D=!0){if(N(T)===!0)throw new Error(\"first arg must be private key\");if(N(R)===!1)throw new Error(\"second arg must be public key\");return h.fromHex(R).multiply(y(T)).toRawBytes(D)}let K=t.bits2int||function(T){if(T.length>8192)throw new Error(\"input is too large\");let R=Ms(T),D=T.length*8-s;return D>0?R>>BigInt(D):R},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,R,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:Q,prehash:F,extraEntropy:I}=D;Q==null&&(Q=!0),T=Go(\"msgHash\",T),kde(D),F&&(T=Go(\"prehashed msgHash\",L(T)));let Z=G(T),me=y(R),ge=[Y(me),Y(Z)];if(I!=null&&I!==!1){let je=I===!0?V(r.BYTES):I;ge.push(Go(\"extraEntropy\",je))}let Se=Ki(...ge),Ce=Z;function qe(je){let Ot=K(je);if(!E(Ot))return;let Te=p(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 Q&&C(tr)&&(rr=k(tr),yt^=1),new M(Gn,rr,yt)}return{seed:Se,k2sig:qe}}let ie={lowS:t.lowS,prehash:!1},re={lowS:t.lowS,prehash:!1};function H(T,R,D=ie){let{seed:L,k2sig:V}=W(T,R,D),Q=t;return pde(Q.hash.outputLen,Q.nByteLength,Q.hmac)(L,V)}h.BASE._setWindowSize(8);function A(T,R,D,L=re){let V=T;R=Go(\"msgHash\",R),D=Go(\"publicKey\",D);let{lowS:Q,prehash:F,format:I}=L;if(kde(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 Z=typeof V==\"string\"||Fv(V),me=!Z&&!I&&typeof V==\"object\"&&V!==null&&typeof V.r==\"bigint\"&&typeof V.s==\"bigint\";if(!Z&&!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)),Z){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||Q&&ge.hasHighS())return!1;F&&(R=t.hash(R));let{r:Ce,s:qe}=ge,je=G(R),Ot=p(qe),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 Lft(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,p=u-yn,h=s,y=e.pow(t,f),v=e.pow(t,(f+yn)/w0),E=(C,k)=>{let P=y,M=e.pow(k,p),U=e.sqr(M);U=e.mul(U,k);let O=e.mul(C,U);O=e.pow(O,d),O=e.mul(O,M),M=e.mul(O,k),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,P),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,P),P=e.mul(P,P),J=e.mul(N,P),U=e.cmov(M,U,Y),N=e.cmov(J,N,Y)}return{isValid:j,value:U}};if(e.ORDER%SG===hS){let C=(e.ORDER-hS)/SG,k=e.sqrt(e.neg(t));E=(P,M)=>{let U=e.sqr(M),O=e.mul(P,M);U=e.mul(U,O);let N=e.pow(U,C);N=e.mul(N,O);let j=e.mul(N,k),K=e.mul(e.sqr(N),M),G=e.eql(K,P),J=e.cmov(j,N,G);return{isValid:G,value:J}}}return E}function Ide(e,t){if(BB(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error(\"mapToCurveSimpleSWU: invalid opts\");let r=Lft(e,t.Z);if(!e.isOdd)throw new Error(\"Fp.isOdd is not implemented!\");return n=>{let o,s,u,f,d,p,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),p=e.sqr(f),d=e.mul(p,t.A),s=e.add(s,d),s=e.mul(s,u),p=e.mul(p,f),d=e.mul(p,t.B),s=e.add(s,d),h=e.mul(o,u);let{isValid:v,value:E}=r(s,p);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 k=$v(e,[f],!0)[0];return h=e.mul(h,k),{x:h,y}}}var AG,um,Sl,yn,w0,hS,SG,CG=x(()=>{c();_de();qv();F1();AG=class extends Error{constructor(t=\"\"){super(t)}},um={Err:AG,_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=pS(n);if(o.length/2&128)throw new r(\"tlv.encode: long form length too big\");let s=n>127?pS(o.length/2|128):\"\";return pS(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 p=t.subarray(n,n+d);if(p.length!==d)throw new r(\"tlv.decode: length bytes not complete\");if(p[0]===0)throw new r(\"tlv.decode(long): zero leftmost byte\");for(let h of p)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=pS(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:p,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(p)}},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),hS=BigInt(3),SG=BigInt(4)});function Fft(e){return{hash:e,hmac:(t,...r)=>dS(e,t,Bs(...r)),randomBytes:Zp}}function Gv(e,t){let r=n=>Bde({...e,...Fft(n)});return{...r(t),create:r}}var TG=x(()=>{c();iG();wl();CG();});function E0(e,t){if(yS(e),yS(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 jft(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 yS(e){if(!Number.isSafeInteger(e))throw new Error(\"number expected\")}function $ft(e,t,r,n){am(e),am(t),yS(r),t.length>255&&(t=n(Ki(_B(\"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),p=E0(r,2),h=new Array(u),y=n(Ki(d,e,p,E0(0,1),f));h[0]=n(Ki(y,E0(1,1),f));for(let E=1;E<=u;E++){let C=[jft(y,h[E-1]),E0(E+1,1),f];h[E]=n(Ki(...C))}return Ki(...h).slice(0,r)}function qft(e,t,r,n,o){if(am(e),am(t),yS(r),t.length>255){let s=Math.ceil(2*n/8);t=o.create({dkLen:s}).update(_B(\"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 Pde(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),yS(t);let p=typeof d==\"string\"?_B(d):d,h=n.toString(2).length,y=Math.ceil((h+o)/8),v=t*s*y,E;if(f===\"xmd\")E=$ft(e,p,v,u);else if(f===\"xof\")E=qft(e,p,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 k=0;k<t;k++){let P=new Array(s);for(let M=0;M<s;M++){let U=y*(M+k*s),O=E.subarray(U,U+y);P[M]=_o(zft(O),n)}C[k]=P}return C}function Rde(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))),[p,h]=$v(e,[u,d],!0);return n=e.mul(s,p),o=e.mul(o,e.mul(f,h)),{x:n,y:o}}}function Mde(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=Pde(s,2,{...r,DST:r.DST,...u}),d=n(f[0]),p=n(f[1]);return o(d.add(p))},encodeToCurve(s,u){let f=Pde(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 zft,Ode=x(()=>{c();qv();F1();zft=Ms});var OG={};Wn(OG,{encodeToCurve:()=>Yft,hashToCurve:()=>Jft,schnorr:()=>Wft,secp256k1:()=>fi,secp256k1_hasher:()=>MG});function Dde(e){let t=xS,r=BigInt(3),n=BigInt(6),o=BigInt(11),s=BigInt(22),u=BigInt(23),f=BigInt(44),d=BigInt(88),p=e*e*e%t,h=p*p*e%t,y=_c(h,r,t)*h%t,v=_c(y,r,t)*h%t,E=_c(v,PB,t)*p%t,C=_c(E,o,t)*E%t,k=_c(C,s,t)*C%t,P=_c(k,f,t)*k%t,M=_c(P,d,t)*P%t,U=_c(M,f,t)*k%t,O=_c(U,r,t)*h%t,N=_c(O,u,t)*C%t,j=_c(N,n,t)*p%t,K=_c(j,PB,t);if(!A0.eql(A0.sqr(K),e))throw new Error(\"Cannot find square root\");return K}function RB(e,...t){let r=Ude[e];if(r===void 0){let n=Tc(Uint8Array.from(e,o=>o.charCodeAt(0)));r=Ki(n,n),Ude[e]=r}return Tc(Ki(r,...t))}function BG(e){let t=fi.utils.normPrivateKeyToScalar(e),r=RG.fromPrivateKey(t);return{scalar:r.hasEvenY()?t:gS(-t),bytes:PG(r)}}function Hde(e){im(\"x\",e,bS,xS);let t=_G(e*e),r=_G(t*e+BigInt(7)),n=Dde(r);n%PB!==IG&&(n=_G(-n));let o=new RG(e,n,bS);return o.assertValidity(),o}function Lde(...e){return gS(Vv(RB(\"BIP0340/challenge\",...e)))}function Vft(e){return BG(e).bytes}function Kft(e,t,r=Zp(32)){let n=Go(\"message\",e),{bytes:o,scalar:s}=BG(t),u=Go(\"auxRand\",r,32),f=kG(s^Vv(RB(\"BIP0340/aux\",u))),d=RB(\"BIP0340/nonce\",f,o,n),p=gS(Vv(d));if(p===IG)throw new Error(\"sign failed: k is zero\");let{bytes:h,scalar:y}=BG(p),v=Lde(h,o,n),E=new Uint8Array(64);if(E.set(h,0),E.set(kG(gS(y+v*s)),32),!Fde(E,n,o))throw new Error(\"sign: Invalid signature produced\");return E}function Fde(e,t,r){let n=Go(\"signature\",e,64),o=Go(\"message\",t),s=Go(\"publicKey\",r,32);try{let u=Hde(Vv(s)),f=Vv(n.subarray(0,32));if(!H1(f,bS,xS))return!1;let d=Vv(n.subarray(32,64));if(!H1(d,bS,IB))return!1;let p=Lde(kG(f),PG(u),o),h=Gft(u,d,gS(-p));return!(!h||!h.hasEvenY()||h.toAffine().x!==f)}catch{return!1}}var xS,IB,IG,bS,PB,Nde,A0,fi,Ude,PG,kG,_G,gS,RG,Gft,Vv,Wft,Qft,Zft,MG,Jft,Yft,S0=x(()=>{c();Lv();wl();TG();Ode();qv();F1();CG();xS=BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),IB=BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),IG=BigInt(0),bS=BigInt(1),PB=BigInt(2),Nde=(e,t)=>(e+t/PB)/t;A0=cm(xS,void 0,void 0,{sqrt:Dde}),fi=Gv({a:IG,b:BigInt(7),Fp:A0,n:IB,Gx:BigInt(\"55066263022277343669578718895168534326250603453777594175500187360389116729240\"),Gy:BigInt(\"32670510020758816978083085130507043184471273380659243275938904335757337482424\"),h:BigInt(1),lowS:!0,endo:{beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),splitScalar:e=>{let t=IB,r=BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),n=-bS*BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\"),o=BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),s=r,u=BigInt(\"0x100000000000000000000000000000000\"),f=Nde(s*e,t),d=Nde(-n*e,t),p=_o(e-f*r-d*o,t),h=_o(-f*n-d*s,t),y=p>u,v=h>u;if(y&&(p=t-p),v&&(h=t-h),p>u||h>u)throw new Error(\"splitScalar: Endomorphism failed, k=\"+e);return{k1neg:y,k1:p,k2neg:v,k2:h}}}},Tc),Ude={};PG=e=>e.toRawBytes(!0).slice(1),kG=e=>od(e,32),_G=e=>_o(e,xS),gS=e=>_o(e,IB),RG=fi.ProjectivePoint,Gft=(e,t,r)=>RG.BASE.multiplyAndAddUnsafe(e,t,r);Vv=Ms;Wft={getPublicKey:Vft,sign:Kft,verify:Fde,utils:{randomPrivateKey:fi.utils.randomPrivateKey,lift_x:Hde,pointToBytes:PG,numberToBytesBE:od,bytesToNumberBE:Ms,taggedHash:RB,mod:_o}},Qft=Rde(A0,[[\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7\",\"0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581\",\"0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262\",\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c\"],[\"0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b\",\"0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"],[\"0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c\",\"0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3\",\"0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931\",\"0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84\"],[\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b\",\"0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573\",\"0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"]].map(e=>e.map(t=>BigInt(t)))),Zft=Ide(A0,{A:BigInt(\"0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533\"),B:BigInt(\"1771\"),Z:A0.create(BigInt(\"-11\"))}),MG=Mde(fi.ProjectivePoint,e=>{let{x:t,y:r}=Zft(A0.create(e[0]));return Qft(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}),Jft=MG.hashToCurve,Yft=MG.encodeToCurve});async function jde({hash:e,signature:t}){let r=Wr(e)?e:ot(e),{secp256k1:n}=await Promise.resolve().then(()=>(S0(),OG));return`0x${(()=>{if(typeof t==\"object\"&&\"r\"in t&&\"s\"in t){let{r:p,s:h,v:y,yParity:v}=t,E=Number(v??y),C=zde(E);return new n.Signature(at(p),at(h)).addRecoveryBit(C)}let u=Wr(t)?t:ot(t);if(qt(u)!==65)throw new Error(\"invalid signature length\");let f=Zr(`0x${u.slice(130)}`),d=zde(f);return n.Signature.fromCompact(u.substring(2,130)).addRecoveryBit(d)})().recoverPublicKey(r.substring(2)).toHex(!1)}`}function zde(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 $de=x(()=>{c();au();ji();Zn();tt()});async function vS({hash:e,signature:t}){return tde(await jde({hash:e,signature:t}))}var NG=x(()=>{c();rde();$de()});function Qi(e,t=\"hex\"){let r=qde(e),n=kv(new Uint8Array(r.length));return r.encode(n),t===\"hex\"?yr(n.bytes):n.bytes}function qde(e){return Array.isArray(e)?Xft(e.map(t=>qde(t))):edt(e)}function Xft(e){let t=e.reduce((o,s)=>o+s.length,0),r=Gde(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 edt(e){let t=typeof e==\"string\"?Jr(e):e,r=Gde(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 Gde(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();uB();bo();tt()});function Vde(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 Kde=x(()=>{c();Jn();bo();tt();Kv();Is()});async function C0(e){let{authorization:t,signature:r}=e;return vS({hash:Vde(t),signature:r??t})}var wS=x(()=>{c();NG();Kde()});var MB,Wde=x(()=>{c();dB();b1();ht();Ac();MB=class extends ae{constructor(t,{account:r,docsPath:n,chain:o,data:s,gas:u,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:p,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 p<\"u\"&&`${ao(p)} 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 ES=x(()=>{c();ht();fm()});function Qde(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 Zde=x(()=>{c();Wde();fm();ES()});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 AS=x(()=>{c()});function ko(e,t){let r={};return typeof e.authorizationList<\"u\"&&(r.authorizationList=rdt(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=tdt[e.type]),typeof e.value<\"u\"&&(r.value=le(e.value)),r}function rdt(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 tdt,rw,Us=x(()=>{c();tt();AS();tdt={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 YA({size:r.length,targetSize:66,type:\"hex\"});if(n.length!==66)throw new YA({size:n.length,targetSize:66,type:\"hex\"});return t[r]=n,t},{})}function ndt(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 mB;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 pB({address:r});t[r]=ndt(n)}return t}var SS=x(()=>{c();Ec();q9();oG();ui();tt()});var WLt,QLt,ZLt,JLt,YLt,XLt,eFt,tFt,rFt,nFt,oFt,aFt,iFt,sFt,cFt,uFt,lFt,fFt,dFt,pFt,mFt,hFt,yFt,bFt,gFt,xFt,vFt,wFt,EFt,AFt,SFt,CFt,TFt,_Ft,kFt,BFt,IFt,PFt,RFt,MFt,OFt,NFt,UFt,DFt,HFt,LFt,FFt,zFt,jFt,$Ft,qFt,GFt,VFt,KFt,WFt,QFt,ZFt,JFt,YFt,XFt,ezt,tzt,rzt,nzt,ozt,Yde,azt,izt,szt,czt,uzt,lzt,fzt,dzt,pzt,mzt,hzt,yzt,bzt,gzt,xzt,vzt,wzt,Ezt,Azt,Szt,Czt,Tzt,_zt,kzt,Bzt,Izt,Pzt,Rzt,Mzt,ad,nw=x(()=>{c();WLt=2n**(8n-1n)-1n,QLt=2n**(16n-1n)-1n,ZLt=2n**(24n-1n)-1n,JLt=2n**(32n-1n)-1n,YLt=2n**(40n-1n)-1n,XLt=2n**(48n-1n)-1n,eFt=2n**(56n-1n)-1n,tFt=2n**(64n-1n)-1n,rFt=2n**(72n-1n)-1n,nFt=2n**(80n-1n)-1n,oFt=2n**(88n-1n)-1n,aFt=2n**(96n-1n)-1n,iFt=2n**(104n-1n)-1n,sFt=2n**(112n-1n)-1n,cFt=2n**(120n-1n)-1n,uFt=2n**(128n-1n)-1n,lFt=2n**(136n-1n)-1n,fFt=2n**(144n-1n)-1n,dFt=2n**(152n-1n)-1n,pFt=2n**(160n-1n)-1n,mFt=2n**(168n-1n)-1n,hFt=2n**(176n-1n)-1n,yFt=2n**(184n-1n)-1n,bFt=2n**(192n-1n)-1n,gFt=2n**(200n-1n)-1n,xFt=2n**(208n-1n)-1n,vFt=2n**(216n-1n)-1n,wFt=2n**(224n-1n)-1n,EFt=2n**(232n-1n)-1n,AFt=2n**(240n-1n)-1n,SFt=2n**(248n-1n)-1n,CFt=2n**(256n-1n)-1n,TFt=-(2n**(8n-1n)),_Ft=-(2n**(16n-1n)),kFt=-(2n**(24n-1n)),BFt=-(2n**(32n-1n)),IFt=-(2n**(40n-1n)),PFt=-(2n**(48n-1n)),RFt=-(2n**(56n-1n)),MFt=-(2n**(64n-1n)),OFt=-(2n**(72n-1n)),NFt=-(2n**(80n-1n)),UFt=-(2n**(88n-1n)),DFt=-(2n**(96n-1n)),HFt=-(2n**(104n-1n)),LFt=-(2n**(112n-1n)),FFt=-(2n**(120n-1n)),zFt=-(2n**(128n-1n)),jFt=-(2n**(136n-1n)),$Ft=-(2n**(144n-1n)),qFt=-(2n**(152n-1n)),GFt=-(2n**(160n-1n)),VFt=-(2n**(168n-1n)),KFt=-(2n**(176n-1n)),WFt=-(2n**(184n-1n)),QFt=-(2n**(192n-1n)),ZFt=-(2n**(200n-1n)),JFt=-(2n**(208n-1n)),YFt=-(2n**(216n-1n)),XFt=-(2n**(224n-1n)),ezt=-(2n**(232n-1n)),tzt=-(2n**(240n-1n)),rzt=-(2n**(248n-1n)),nzt=-(2n**(256n-1n)),ozt=2n**8n-1n,Yde=2n**16n-1n,azt=2n**24n-1n,izt=2n**32n-1n,szt=2n**40n-1n,czt=2n**48n-1n,uzt=2n**56n-1n,lzt=2n**64n-1n,fzt=2n**72n-1n,dzt=2n**80n-1n,pzt=2n**88n-1n,mzt=2n**96n-1n,hzt=2n**104n-1n,yzt=2n**112n-1n,bzt=2n**120n-1n,gzt=2n**128n-1n,xzt=2n**136n-1n,vzt=2n**144n-1n,wzt=2n**152n-1n,Ezt=2n**160n-1n,Azt=2n**168n-1n,Szt=2n**176n-1n,Czt=2n**184n-1n,Tzt=2n**192n-1n,_zt=2n**200n-1n,kzt=2n**208n-1n,Bzt=2n**216n-1n,Izt=2n**224n-1n,Pzt=2n**232n-1n,Rzt=2n**240n-1n,Mzt=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,OB,CS=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\"})}},OB=class extends ae{constructor({maxPriorityFeePerGas:t}){super(`\\\\`maxFeePerGas\\\\` cannot be less than the \\\\`maxPriorityFeePerGas\\\\` (${ao(t)} gwei).`,{name:\"MaxFeePerGasTooLowError\"})}}});var aw,UG=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?DG[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=odt(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 odt(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 DG,P0,id=x(()=>{c();Zn();AS();DG={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"};P0=k0(\"transaction\",kc)});function TS(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();AS();id();iw=k0(\"block\",TS)});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||TS)(f,\"getBlock\")}var R0=x(()=>{c();UG();tt();sw()});async function cw(e){let t=await e.request({method:\"eth_gasPrice\"});return BigInt(t)}var NB=x(()=>{c()});async function Xde(e,t){return HG(e,t)}async function HG(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 LG=x(()=>{c();CS();Zn();Zt();R0();NB()});async function UB(e,t){return DB(e,t)}async function DB(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),p=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:p,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 HG(e,{block:h,chain:n,request:o}),E=p(h.baseFeePerGas);return{maxFeePerGas:o?.maxFeePerGas??E+v,maxPriorityFeePerGas:v}}return{gasPrice:o?.gasPrice??p(await Ae(e,cw,\"getGasPrice\")({}))}}var HB=x(()=>{c();CS();Zt();LG();R0();NB()});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 _S=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 LB=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 FB=x(()=>{c();bo();tt()});var O0,kS=x(()=>{c();Lv();O0=Tc});function zB(e,t){let r=t||\"hex\",n=O0(Wr(e,{strict:!1})?Ha(e):e);return r===\"bytes\"?n:ot(n)}var FG=x(()=>{c();kS();au();bo();tt()});function epe(e){let{commitment:t,version:r=1}=e,n=e.to??(typeof t==\"string\"?\"hex\":\"bytes\"),o=zB(t,\"bytes\");return o.set([r],0),n===\"bytes\"?o:yr(o)}var tpe=x(()=>{c();tt();FG()});function jB(e){let{commitments:t,version:r}=e,n=e.to??(typeof t[0]==\"string\"?\"hex\":\"bytes\"),o=[];for(let s of t)o.push(epe({commitment:s,to:n,version:r}));return o}var zG=x(()=>{c();tpe()});var $B,fw,qB,GB,jG=x(()=>{c();ht();$B=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\"})}},qB=class extends ae{constructor({hash:t,size:r}){super(`Versioned hash \"${t}\" size is invalid.`,{metaMessages:[\"Expected: 32\",`Received: ${r}`],name:\"InvalidVersionedHashSizeError\"})}},GB=class extends ae{constructor({hash:t,version:r}){super(`Versioned hash \"${t}\" version is invalid.`,{metaMessages:[`Expected: ${1}`,`Received: ${r}`],name:\"InvalidVersionedHashVersionError\"})}}});function rpe(e){let t=e.to??(typeof e.data==\"string\"?\"hex\":\"bytes\"),r=typeof e.data==\"string\"?Jr(e.data):e.data,n=qt(r);if(!n)throw new fw;if(n>761855)throw new $B({maxSize:761855,size:n});let o=[],s=!0,u=0;for(;s;){let f=kv(new Uint8Array(131072)),d=0;for(;d<4096;){let p=r.slice(u,u+31);if(f.pushByte(0),f.pushBytes(p),p.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 npe=x(()=>{c();jG();uB();ji();bo();tt()});function VB(e){let{data:t,kzg:r,to:n}=e,o=e.blobs??rpe({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 $G=x(()=>{c();LB();FB();npe()});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 yB({transaction:e})}var KB=x(()=>{c();Ac()});function N0(e,{docsPath:t,...r}){let n=(()=>{let o=T0(e,r);return o instanceof fu?e:o})();return new gB(n,{docsPath:t,...r})}var BS=x(()=>{c();fm();Ac();ES()});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:p,gasPrice:h,maxFeePerBlobGas:y,maxFeePerGas:v,maxPriorityFeePerGas:E,nonce:C,nonceManager:k,to:P,type:M,value:U,...O}=t,N=await(async()=>{if(!r||!k||typeof C<\"u\")return C;let J=Xe(r),Y=s?s.id:await Ae(e,Ko,\"getChainId\")({});return await k.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:p,gasPrice:h,maxFeePerBlobGas:y,maxFeePerGas:v,maxPriorityFeePerGas:E,nonce:N,to:P,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 WB=x(()=>{c();Yr();CS();BS();_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=IS);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 p(){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 p();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||qG.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 qG.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\")})&&qG.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:k,kzg:P,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&&P){let N=uw({blobs:C,kzg:P});if(u.includes(\"blobVersionedHashes\")){let j=jB({commitments:N,to:\"hex\"});r.blobVersionedHashes=j}if(u.includes(\"sidecars\")){let j=lw({blobs:C,commitments:N,kzg:P}),K=VB({blobs:C,commitments:N,proofs:j,to:\"hex\"});r.sidecars=K}}if(u.includes(\"chainId\")&&(r.chainId=await p()),(u.includes(\"fees\")||u.includes(\"type\"))&&typeof M>\"u\")try{r.type=dw(r)}catch{let N=ope.get(e.uid);typeof N>\"u\"&&(N=typeof(await O())?.baseFeePerGas==\"bigint\",ope.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 DB(e,{block:N,chain:o,request:r});if(typeof r.maxPriorityFeePerGas>\"u\"&&r.maxFeePerGas&&r.maxFeePerGas<K)throw new OB({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 DB(e,{block:N,chain:o,request:r,type:\"legacy\"});r.gasPrice=j}}return u.includes(\"gas\")&&typeof k>\"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 IS,ope,qG,mw=x(()=>{c();Yr();HB();QB();R0();_S();CS();LB();FB();zG();$G();Zt();d0();Cl();KB();WB();Tl();IS=[\"blobVersionedHashes\",\"chainId\",\"fees\",\"gas\",\"nonce\",\"type\"],ope=new Map,qG=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:p,blobVersionedHashes:h,blockNumber:y,blockTag:v,data:E,gas:C,gasPrice:k,maxFeePerBlobGas:P,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:p,blobVersionedHashes:h,data:E,gasPrice:k,maxFeePerBlobGas:P,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 Qde(u,{...t,account:o,chain:e.chain})}}var QB=x(()=>{c();Yr();ht();wS();tt();Zde();_0();Us();SS();Cl();mw()});async function ape(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(p){let h=f.account?Xe(f.account):void 0;throw Cc(p,{abi:r,address:n,args:o,docsPath:\"/docs/contract/estimateContractGas\",functionName:s,sender:h?.address})}}var ipe=x(()=>{c();Yr();Fa();D1();Zt();QB()});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 U9({docsPath:spe});let d=t.find(M=>M.type===\"event\"&&u===f0(sa(M)));if(!(d&&\"name\"in d)||d.type!==\"event\")throw new D9(u,{docsPath:spe});let{name:p,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]=sdt({param:U,value:N})}let k=h.filter(M=>!(\"indexed\"in M&&M.indexed)),P=s?k:[...C.map(([M])=>M),...k];if(P.length>0){if(r&&r!==\"0x\")try{let M=Rs(P,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<k.length;O++)v[k[O].name]=M[U++]}}catch(M){if(s)throw M instanceof yv||M instanceof _v?new qp({abiItem:d,data:r,params:P,size:qt(r)}):M}else if(s)throw new qp({abiItem:d,data:\"0x\",params:P,size:0})}return{eventName:p,args:Object.values(v).length>0?v:void 0}}function sdt({param:e,value:t}){return e.type===\"string\"||e.type===\"bytes\"||e.type===\"tuple\"||e.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/)?t:(Rs([e],t)||[])[0]}var spe,ZB=x(()=>{c();yo();eG();ji();oS();Iv();$p();spe=\"/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,p=u.filter(v=>d.topics[0]===v.selector);if(p.length===0)return null;let h,y;for(let v of p)try{h=j1({...d,abi:[v.abi],strict:!0}),y=v;break}catch{}if(!h&&!o){y=p[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)||!cdt({args:h.args,inputs:y.abi.inputs,matchArgs:r})?null:{...h,...d}}).filter(Boolean)}function cdt(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(p=>o(f,p,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(p=>p.name===s);return f?(Array.isArray(u)?u:[u]).some(p=>o(f,p,t[s])):!1}):!1}var PS=x(()=>{c();U0();bo();_l();Is();oS();ZB()});async function yw(e,{address:t,blockHash:r,fromBlock:n,toBlock:o,event:s,events:u,args:f,strict:d}={}){let p=d??!1,h=u??(s?[s]:void 0),y=[];h&&(y=[h.flatMap(k=>ed({abi:[k],eventName:k.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:p}):E}var JB=x(()=>{c();Tv();PS();tt();_l()});async function YB(e,t){let{abi:r,address:n,args:o,blockHash:s,eventName:u,fromBlock:f,toBlock:d,strict:p}=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:p})}var GG=x(()=>{c();p0();Zt();JB()});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:VG});s=f}if(s.type!==\"function\")throw new bl(void 0,{docsPath:VG});if(!s.outputs)throw new xv(s.name,{docsPath:VG});let u=Rs(s.outputs,o);if(u&&u.length>1)return u;if(u&&u.length===1)return u[0]}var VG,dm=x(()=>{c();yo();Iv();p0();VG=\"/docs/contract/decodeFunctionResult\"});var cpe,upe=x(()=>{c();cpe=\"0.1.1\"});function lpe(){return cpe}var fpe=x(()=>{c();upe()});function dpe(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?dpe(e.cause,t):t?null:e}var De,ca=x(()=>{c();fpe();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,p=[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(p,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 dpe(this,t)}};Object.defineProperty(De,\"defaultStaticOptions\",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:\"https://oxlib.sh\",showVersion:!1,version:`ox@${lpe()}`}});De.setStaticOptions(De.defaultStaticOptions)});function D0(e,t){if(du(e)>t)throw new XB({givenSize:du(e),maxSize:t})}function ppe(e,t){if(typeof t==\"number\"&&t>0&&t>du(e)-1)throw new RS({offset:t,position:\"start\",size:du(e)})}function mpe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&du(e)!==r-t)throw new RS({offset:r,position:\"end\",size:du(e)})}function KG(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 hpe(e,t={}){let{dir:r,size:n=32}=t;if(n===0)return e;if(e.length>n)throw new eI({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 WG(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,QG=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 tI({givenSize:Cr(e),maxSize:t})}function bpe(e,t){if(typeof t==\"number\"&&t>0&&t>Cr(e)-1)throw new MS({offset:t,position:\"start\",size:Cr(e)})}function gpe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&Cr(e)!==r-t)throw new MS({offset:r,position:\"end\",size:Cr(e)})}function ZG(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 rI({size:Math.ceil(o.length/2),targetSize:n,type:\"Hex\"});return`0x${o[r===\"right\"?\"padEnd\":\"padStart\"](n*2,\"0\")}`}function xpe(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()+udt:o,r)}var udt,gw=x(()=>{c();udt=\"#__bigint\"});function ddt(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 wpe(...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 NS(e){return e instanceof Uint8Array?e:typeof e==\"string\"?Ds(e):pdt(e)}function pdt(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 p=KG(o.charCodeAt(d++)),h=KG(o.charCodeAt(d++));if(p===void 0||h===void 0)throw new De(`Invalid byte sequence (\"${o[d-2]}${o[d-1]}\" in \"${o}\").`);u[f]=p<<4|h}return u}function nI(e,t={}){let{size:r}=t,n=fdt.encode(e);return typeof r==\"number\"?(D0(n,r),mdt(n,r)):n}function Epe(e,t){return fde(e,t)}function mdt(e,t){return hpe(e,{dir:\"right\",size:t})}function Ape(e){return crypto.getRandomValues(new Uint8Array(e))}function du(e){return e.length}function Spe(e,t,r,n={}){let{strict:o}=n;ppe(e,t);let s=e.slice(t,r);return o&&mpe(s,t,r),s}function Cpe(e,t={}){let{size:r}=t;typeof r<\"u\"&&D0(e,r);let n=sn(e,t);return br(n,t)}function Tpe(e,t={}){let{size:r}=t,n=e;if(typeof r<\"u\"&&(D0(n,r),n=XG(n)),n.length>1||n[0]>1)throw new YG(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 _pe(e,t={}){let{size:r}=t,n=e;return typeof r<\"u\"&&(D0(n,r),n=eV(n)),ldt.decode(n)}function XG(e){return WG(e,{dir:\"left\"})}function eV(e){return WG(e,{dir:\"right\"})}function kpe(e){try{return ddt(e),!0}catch{return!1}}var ldt,fdt,YG,xw,XB,RS,eI,pu=x(()=>{c();F1();ca();Tr();QG();JG();gw();ldt=new TextDecoder,fdt=new TextEncoder;YG=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\"})}},XB=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\"})}},RS=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\"})}},eI=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 tV(e,t={}){let{strict:r=!1}=t;if(!e)throw new oI(e);if(typeof e!=\"string\")throw new oI(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new aI(e);if(!e.startsWith(\"0x\"))throw new aI(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 sI(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+=ydt[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 p=typeof e==\"bigint\"?\"n\":\"\";throw new US({max:s?`${s}${p}`:void 0,min:`${u}${p}`,signed:r,size:n,value:`${e}${p}`})}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(hdt.encode(e),t)}function mm(e,t){return ZG(e,{dir:\"left\",size:t})}function ld(e,t){return ZG(e,{dir:\"right\",size:t})}function Bpe(e){return sn(Ape(e))}function vt(e,t,r,n={}){let{strict:o}=n;bpe(e,t);let s=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(r??e.length)*2)}`;return o&&gpe(s,t,r),s}function Cr(e){return Math.ceil((e.length-2)/2)}function DS(e){return xpe(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 rV(e,t={}){let{size:r}=t,n=Ds(e);return r&&(D0(n,r),n=eV(n)),new TextDecoder().decode(n)}function Zi(e,t={}){let{strict:r=!1}=t;try{return tV(e,{strict:r}),!0}catch{return!1}}var hdt,ydt,US,oI,aI,iI,tI,MS,rI,Tr=x(()=>{c();pu();ca();QG();JG();gw();hdt=new TextEncoder,ydt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));US=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\"})}},oI=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\"})}},aI=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\"})}},iI=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\"})}},tI=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\"})}},MS=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\"})}},rI=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 Ipe(e){return{address:e.address,amount:we(e.amount),index:we(e.index),validatorIndex:we(e.validatorIndex)}}var Ppe=x(()=>{c();Tr()});function cI(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(Ipe)}}}var nV=x(()=>{c();Tr();Ppe()});var Pl,uI,Mpe,lI,Ope,oV,aV,iV,HS,sV,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\"}],uI=[{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\"}]}],Mpe=[{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\"}],lI=[...Mpe,{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\"}]}],Ope=[...Mpe,{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\"}]}],oV=[{name:\"text\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"key\",type:\"string\"}],outputs:[{name:\"\",type:\"string\"}]}],aV=[{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\"}]}],iV=[{name:\"isValidSignature\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],outputs:[{name:\"\",type:\"bytes4\"}]}],HS=[{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\"}],sV=[{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 Npe,Upe=x(()=>{c();Npe=\"0x82ad56cb\"});var fI,Dpe,Hpe,vw,LS=x(()=>{c();fI=\"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe\",Dpe=\"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe\",Hpe=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",vw=\"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033\"});var $1,dI,pI,FS,Rl,q1=x(()=>{c();ht();$1=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\"})}},dI=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\"})}},pI=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\"})}},FS=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 R9({docsPath:cV});if(!(\"inputs\"in o))throw new KA({docsPath:cV});if(!o.inputs||o.inputs.length===0)throw new KA({docsPath:cV});let s=Fn(o.inputs,r);return Cn([n,s])}var cV,mI=x(()=>{c();yo();Jn();cu();cV=\"/docs/contract/encodeDeployData\"});function mu({blockNumber:e,chain:t,contract:r}){let n=t?.contracts?.[r];if(!n)throw new $1({chain:t,contract:{name:r}});if(e&&n.blockCreated&&n.blockCreated>e)throw new $1({blockNumber:e,chain:t,contract:{name:r,blockCreated:n.blockCreated}});return n.address}var V1=x(()=>{c();q1()});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 hI=x(()=>{c();Xp();fm();ES()});function Ew(){let e=()=>{},t=()=>{};return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}var yI=x(()=>{c()});function bI({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=()=>uV.delete(t),f=()=>d().map(({args:h})=>h),d=()=>uV.get(t)||[],p=h=>uV.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?(p({args:h,resolve:v,reject:E}),y):(p({args:h,resolve:v,reject:E}),setTimeout(s,n),y)}}}var uV,lV=x(()=>{c();yI();uV=new Map});var gI,xI,vI,Lpe=x(()=>{c();za();ht();vB();gI=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\"})}},xI=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\"})}},vI=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 H9(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 fV=x(()=>{c();yo();Yf();Cv();Iv();$p()});function pV(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 WA(r,{docsPath:dV});o=d}if(o.type!==\"error\")throw new WA(void 0,{docsPath:dV});let s=sa(o),u=Xf(s),f=\"0x\";if(n&&n.length>0){if(!o.inputs)throw new N9(o.name,{docsPath:dV});f=Fn(o.inputs,n)}return Cn([u,f])}var dV,Fpe=x(()=>{c();yo();Jn();Cv();cu();$p();p0();dV=\"/docs/contract/encodeErrorResult\"});function zpe(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:mV});o=u}if(o.type!==\"function\")throw new bl(void 0,{docsPath:mV});if(!o.outputs)throw new xv(o.name,{docsPath:mV});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 Fn(o.outputs,s)}var mV,jpe=x(()=>{c();yo();cu();p0();mV=\"/docs/contract/encodeFunctionResult\"});async function hV(e){let{data:t,ccipRequest:r}=e,{args:[n]}=K1({abi:uI,data:t}),o=[],s=[];return await Promise.all(n.map(async(u,f)=>{try{s[f]=u.urls.includes(hm)?await hV({data:u.data,ccipRequest:r}):await r(u),o[f]=!1}catch(d){o[f]=!0,s[f]=gdt(d)}})),zpe({abi:uI,functionName:\"query\",result:[o,s]})}function gdt(e){return e.name===\"HttpRequestError\"&&e.status?pV({abi:uI,errorName:\"HttpError\",args:[e.status,e.shortMessage]}):pV({abi:[iB],errorName:\"Error\",args:[\"shortMessage\"in e?e.shortMessage:e.message]})}var hm,zS=x(()=>{c();fd();sB();fV();Fpe();jpe();hm=\"x-batch-gateway:true\"});var Gpe={};Wn(Gpe,{ccipRequest:()=>qpe,offchainLookup:()=>vdt,offchainLookupAbiItem:()=>$pe,offchainLookupSignature:()=>xdt});async function vdt(e,{blockNumber:t,blockTag:r,data:n,to:o}){let{args:s}=Pv({data:n,abi:[$pe]}),[u,f,d,p,h]=s,{ccipRead:y}=e,v=y&&typeof y?.request==\"function\"?y.request:qpe;try{if(!di(o,u))throw new vI({sender:u,to:o});let E=f.includes(hm)?await hV({data:d,ccipRequest:v}):await v({data:d,sender:u,urls:f}),{data:C}=await hu(e,{blockNumber:t,blockTag:r,data:mr([p,Fn([{type:\"bytes\"},{type:\"bytes\"}],[E,h])]),to:o});return C}catch(E){throw new gI({callbackSelector:p,cause:E,data:n,extraData:h,sender:u,urls:f})}}async function qpe({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 p=await fetch(s.replace(\"{sender}\",t.toLowerCase()).replace(\"{data}\",e),{body:JSON.stringify(f),headers:d,method:u}),h;if(p.headers.get(\"Content-Type\")?.startsWith(\"application/json\")?h=(await p.json()).data:h=await p.text(),!p.ok){n=new uu({body:f,details:h?.error?or(h.error):p.statusText,headers:p.headers,status:p.status,url:s});continue}if(!Wr(h)){n=new xI({result:h,url:s});continue}return h}catch(p){n=new uu({body:f,details:p.message,url:s})}}throw n}var xdt,$pe,Vpe=x(()=>{c();W1();Lpe();x1();lB();cu();U0();Jn();au();zS();za();xdt=\"0x556f1830\",$pe={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:p,code:h,data:y,factory:v,factoryData:E,gas:C,gasPrice:k,maxFeePerBlobGas:P,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?Kpe({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=p?cI(p):void 0,R=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:k,maxFeePerBlobGas:P,maxFeePerGas:M,maxPriorityFeePerGas:U,nonce:O,to:ie?void 0:N,value:j},\"call\");if(o&&wdt({request:V})&&!R&&!T)try{return await Edt(e,{...V,blockNumber:s,blockTag:u})}catch(I){if(!(I instanceof FS)&&!(I instanceof $1))throw I}let Q=(()=>{let I=[V,A];return R&&T?[...I,R,T]:R?[...I,R]:T?[...I,{},T]:I})(),F=await e.request({method:\"eth_call\",params:Q});return F===\"0x\"?{data:void 0}:{data:F}}catch(H){let A=Sdt(H),{offchainLookup:T,offchainLookupSignature:R}=await Promise.resolve().then(()=>(Vpe(),Gpe));if(e.ccipRead!==!1&&A?.slice(0,10)===R&&N)return{data:await T(e,{data:A,to:N})};throw ie&&A?.slice(0,10)===\"0x101bb98d\"?new wB({factory:v}):ww(H,{...t,account:J,chain:e.chain})}}function wdt({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(Npe)||!r||Object.values(n).filter(o=>typeof o<\"u\").length>0)}async function Edt(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,p=(()=>{if(n)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return mu({blockNumber:s,chain:e.chain,contract:\"multicall3\"});throw new FS})(),y=(typeof s==\"bigint\"?le(s):void 0)||u,{schedule:v}=bI({id:`${e.uid}.${y}`,wait:o,shouldSplitBatch(k){return k.reduce((M,{data:U})=>M+(U.length-2),0)>r*2},fn:async k=>{let P=k.map(O=>({allowFailure:!0,callData:O.data,target:O.to})),M=Ct({abi:Pl,args:[P],functionName:\"aggregate3\"}),U=await e.request({method:\"eth_call\",params:[{...p===null?{data:Kpe({code:vw,data:M})}:{to:p,data:M}},y]});return pi({abi:Pl,args:[P],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 Kpe(e){let{code:t,data:r}=e;return G1({abi:mv([\"constructor(bytes, bytes)\"]),bytecode:fI,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:Dpe,args:[o,t,r,n]})}function Sdt(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();nV();Yr();fd();Upe();LS();ht();q1();Xp();dm();mI();Fa();V1();tt();hI();_0();Us();lV();SS();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();Fa();D1();Zt();W1()});async function Wpe(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,p=Ct({abi:r,args:o,functionName:s});try{let{data:h}=await Ae(e,hu,\"call\")({batch:!1,data:`${p}${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 Qpe=x(()=>{c();Yr();dm();Fa();D1();Zt();W1()});function wa(e,t,r){let n=++Cdt,o=()=>yV.get(e)||[],s=()=>{let h=o();yV.set(e,h.filter(y=>y.id!==n))},u=()=>{let h=o();if(!h.some(v=>v.id===n))return;let y=Zpe.get(e);if(h.length===1&&y){let v=y();v instanceof Promise&&v.catch(()=>{})}s()},f=o();if(yV.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 p=r(d);return typeof p==\"function\"&&Zpe.set(e,p),u}var yV,Zpe,Cdt,ym=x(()=>{c();yV=new Map,Zpe=new Map,Cdt=0});async function jS(e){return new Promise(t=>setTimeout(t,e))}var bV=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 jS(d);let p=async()=>{o&&(await e({unpoll:s}),await jS(n),p())};p()})(),s}var L0=x(()=>{c();bV()});function Jpe(e){let t=(o,s)=>({clear:()=>s.delete(o),get:()=>s.get(o),set:u=>s.set(o,u)}),r=t(e,Tdt),n=t(e,_dt);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}async function Ype(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 Tdt,_dt,Xpe=x(()=>{c();Tdt=new Map,_dt=new Map});async function dd(e,{cacheTime:t=e.cacheTime}={}){let r=await Ype(()=>e.request({method:\"eth_blockNumber\"}),{cacheKey:kdt(e.uid),cacheTime:t});return BigInt(r)}var kdt,Aw=x(()=>{c();Xpe();kdt=e=>`blockNumber.${e}`});async function F0(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 $S=x(()=>{c();PS();_l()});async function z0(e,{filter:t}){return t.request({method:\"eth_uninstallFilter\",params:[t.id]})}var qS=x(()=>{c()});function eme(e,t){let{abi:r,address:n,args:o,batch:s=!0,eventName:u,fromBlock:f,onError:d,onLogs:p,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 P=v??!1,M=or([\"watchContractEvent\",n,o,s,e.uid,u,y,P,f]);return wa(M,{onLogs:p,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,aB,\"createContractEventFilter\")({abi:r,address:n,args:o,eventName:u,strict:P,fromBlock:f})}catch{}j=!0;return}try{let G;if(N)G=await Ae(e,F0,\"getFilterChanges\")({filter:N});else{let J=await Ae(e,dd,\"getBlockNumber\")({});O&&O<J?G=await Ae(e,YB,\"getContractEvents\")({abi:r,address:n,args:o,eventName:u,fromBlock:O+1n,toBlock:J,strict:P}):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,z0,\"uninstallFilter\")({filter:N}),K()}})})():(()=>{let P=v??!1,M=or([\"watchContractEvent\",n,o,s,e.uid,u,y,P]),U=!0,O=()=>U=!1;return wa(M,{onLogs:p,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 qp||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 tme=x(()=>{c();yo();U1();ZB();Tv();_l();Zt();ym();L0();za();Xq();Aw();GG();$S();qS()});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 pI;if(t!==e.id)throw new dI({chain:e,currentChainId:t})}var wI=x(()=>{c();q1()});async function Cw(e,{serializedTransaction:t}){return e.request({method:\"eth_sendRawTransaction\",params:[t]},{retryCount:0})}var EI=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:p=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,gas:h,gasPrice:y,maxFeePerBlobGas:v,maxFeePerGas:E,maxPriorityFeePerGas:C,nonce:k,type:P,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:p?mr([d??\"0x\",p]):d,gas:h,gasPrice:y,maxFeePerBlobGas:v,maxFeePerGas:E,maxPriorityFeePerGas:C,nonce:k,to:N,type:P,value:M},\"sendTransaction\"),Y=gV.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=>(gV.set(e.uid,!0),H)).catch(H=>{let A=H;throw A.name===\"MethodNotFoundRpcError\"||A.name===\"MethodNotSupportedRpcError\"?(gV.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:p?mr([d??\"0x\",p]):d,gas:h,gasPrice:y,maxFeePerBlobGas:v,maxFeePerGas:E,maxPriorityFeePerGas:C,nonce:k,nonceManager:O.nonceManager,parameters:[...IS,\"sidecars\"],type:P,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 gV,Tw=x(()=>{c();Yr();Pc();ht();wS();wI();Jn();BS();_0();Us();Zt();d0();Cl();Tl();mw();EI();gV=new ci(128)});async function md(e,t){return md.internal(e,pd,\"sendTransaction\",t)}var AI=x(()=>{c();Yr();Pc();Fa();D1();Zt();Tw();(function(e){async function t(r,n,o,s){let{abi:u,account:f=r.account,address:d,args:p,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:p,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:p,docsPath:\"/docs/contract/writeContract\",functionName:h,sender:v?.address})}}e.internal=t})(md||(md={}))});var SI,rme=x(()=>{c();ht();SI=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:p})=>{let h=typeof t==\"function\"?t({count:f,error:p}):t;h&&await jS(h),u({count:f+1})};try{let p=await e();o(p)}catch(p){if(f<r&&await n({count:f,error:p}))return d({error:p});s(p)}};u()})}var GS=x(()=>{c();bV()});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?xV[e.status]:null,type:e.type?DG[e.type]||e.type:null};return e.blobGasPrice&&(r.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(r.blobGasUsed=BigInt(e.blobGasUsed)),r}var xV,_w,gm=x(()=>{c();Zn();AS();_l();id();xV={\"0x0\":\"reverted\",\"0x1\":\"success\"};_w=k0(\"transactionReceipt\",bm)});async function CI(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,p=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:p?.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:p,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 k=await Promise.allSettled(C);if(k.every(M=>M.status===\"rejected\"))throw k[0].reason;let P=k.map(M=>M.status===\"fulfilled\"?M.value:wV);return{id:mr([...P,le(n.id,{size:32}),vV])}}throw N0(v,{...t,account:p,chain:t.chain})}}var vV,wV,TI=x(()=>{c();Yr();ht();U1();Fa();Jn();Zn();tt();BS();Tw();vV=\"0x5792579257925792579257925792579257925792579257925792579257925792\",wV=le(0,{size:32})});async function _I(e,t){async function r(h){if(h.endsWith(vV.slice(2))){let v=Mn(aS(h,-64,-32)),E=aS(h,0,-64).slice(2).match(/.{1,64}/g),C=await Promise.all(E.map(P=>wV.slice(2)!==P?e.request({method:\"eth_getTransactionReceipt\",params:[`0x${P}`]},{dedupe:!0}):void 0)),k=C.some(P=>P===null)?100:C.every(P=>P?.status===\"0x1\")?200:C.every(P=>P?.status===\"0x0\")?500:600;return{atomic:!1,chainId:Zr(v),receipts:C.filter(Boolean),status:k,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,p]=(()=>{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:xV[h.status]}))??[],statusCode:p,status:d,version:u}}var EV=x(()=>{c();Yf();Vp();Zn();gm();TI()});async function xm(e,t){let{id:r,pollingInterval:n=e.pollingInterval,status:o=({statusCode:k})=>k===200||k>=300,retryCount:s=4,retryDelay:u=({count:k})=>~~(1<<k)*200,timeout:f=6e4,throwOnFailure:d=!1}=t,p=or([\"waitForCallsStatus\",e.uid,r]),{promise:h,resolve:y,reject:v}=Ew(),E,C=wa(p,{resolve:y,reject:v},k=>{let P=Hs(async()=>{let M=U=>{clearTimeout(E),P(),U(),C()};try{let U=await hd(async()=>{let O=await Ae(e,_I,\"getCallsStatus\")({id:r});if(d&&O.status===\"failure\")throw new SI(O);return O},{retryCount:s,delay:u});if(!o(U))return;M(()=>k.resolve(U))}catch(U){M(()=>k.reject(U))}},{interval:n,emitOnBegin:!0});return P});return E=f?setTimeout(()=>{C(),clearTimeout(E),v(new AV({id:r}))},f):void 0,await h}var AV,kI=x(()=>{c();ht();rme();Zt();ym();L0();yI();GS();za();EV();AV=class extends ae{constructor({id:t}){super(`Timed out while waiting for call bundle with id \"${t}\" to be confirmed.`,{name:\"WaitForCallsStatusTimeoutError\"})}}});function PI(e=11){if(!II||BI+e>256*2){II=\"\",BI=0;for(let t=0;t<256;t++)II+=(256+Math.random()*256|0).toString(16).substring(1)}return II.substring(BI,BI+++e)}var BI,II,SV=x(()=>{c();BI=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),p=r?.blockTime??12e3,h=Math.min(Math.max(Math.floor(p/2),500),4e3),y=e.pollingInterval??h,v=e.cacheTime??y,E=e.account?Xe(e.account):void 0,{config:C,request:k,value:P}=e.transport({account:E,chain:r,pollingInterval:y}),M={...C,...P},U={account:E,batch:t,cacheTime:v,ccipRead:n,chain:r,dataSuffix:o,key:s,name:u,pollingInterval:y,request:k,transport:M,type:f,uid:PI(),...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 RI=x(()=>{c();Yr();SV()});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 MI=x(()=>{c();ht();Xp()});function OI(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 CV=x(()=>{c();au()});function VS(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=OI(r[n]),s=o?Ha(o):Gt(qi(r[n]),\"bytes\");t=Gt(mr([t,s]),\"bytes\")}return yr(t)}var TV=x(()=>{c();Jn();bo();tt();Is();CV()});function nme(e){return`[${e.slice(2)}]`}var ome=x(()=>{c()});function ame(e){let t=new Uint8Array(32).fill(0);return e?OI(e)||Gt(qi(e)):yr(t)}var ime=x(()=>{c();bo();tt();Is();CV()});function Bw(e){let t=e.replace(/^\\\\.|\\\\.$/gm,\"\");if(t.length===0)return new Uint8Array(1);let r=new Uint8Array(qi(t).byteLength+2),n=0,o=t.split(\".\");for(let s=0;s<o.length;s++){let u=qi(o[s]);u.byteLength>255&&(u=qi(nme(ame(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 NI=x(()=>{c();bo();ome();ime()});async function sme(e,t){let{blockNumber:r,blockTag:n,coinType:o,name:s,gatewayUrls:u,strict:f}=t,{chain:d}=e,p=(()=>{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?[VS(s),BigInt(o)]:[VS(s)];try{let v=Ct({abi:aV,functionName:\"addr\",args:y}),E={address:p,abi:lI,functionName:\"resolveWithGateways\",args:[ot(Bw(s)),v,u??[hm]],blockNumber:r,blockTag:n},k=await Ae(e,Xr,\"readContract\")(E);if(k[0]===\"0x\")return null;let P=pi({abi:aV,args:y,functionName:\"addr\",data:k[0]});return P===\"0x\"||Mn(P)===\"0x00\"?null:P}catch(v){if(f)throw v;if(kw(v))return null;throw v}}var cme=x(()=>{c();fd();dm();Fa();V1();Vp();tt();MI();zS();TV();NI();Zt();Ic()});var UI,j0,Iw,DI,ume=x(()=>{c();ht();UI=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\"})}},DI=class extends ae{constructor({namespace:t}){super(`ENS NFT avatar namespace \"${t}\" is not supported. Must be \"erc721\" or \"erc1155\".`,{name:\"EnsAvatarUnsupportedNamespaceError\"})}}});async function Mdt(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 lme(e,t){return e?e.endsWith(\"/\")?e.slice(0,-1):e:t}function _V({uri:e,gatewayUrls:t}){let r=Pdt.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=lme(t?.ipfs,\"https://ipfs.io\"),o=lme(t?.arweave,\"https://arweave.net\"),s=e.match(Bdt),{protocol:u,subpath:f,target:d,subtarget:p=\"\"}=s?.groups||{},h=u===\"ipns:/\"||f===\"ipns/\",y=u===\"ipfs:/\"||f===\"ipfs/\"||Idt.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}${p}`,isOnChain:!1,isEncoded:!1};if(u===\"ar:/\"&&d)return{uri:`${o}/${d}${p||\"\"}`,isOnChain:!1,isEncoded:!1};let v=e.replace(Rdt,\"\");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 kV(e){if(typeof e!=\"object\"||!(\"image\"in e)&&!(\"image_url\"in e)&&!(\"image_data\"in e))throw new UI({data:e});return e.image||e.image_url||e.image_data}async function fme({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(o=>o.json());return await HI({gatewayUrls:e,uri:kV(r)})}catch{throw new Iw({uri:t})}}async function HI({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=_V({uri:t,gatewayUrls:e});if(n||await Mdt(r))return r;throw new Iw({uri:t})}function dme(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 pme(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 DI({namespace:t.namespace})}var Bdt,Idt,Pdt,Rdt,mme=x(()=>{c();Ic();ume();Bdt=/(?<protocol>https?:\\\\/\\\\/[^/]*|ipfs:\\\\/|ipns:\\\\/|ar:\\\\/)?(?<root>\\\\/)?(?<subpath>ipfs\\\\/|ipns\\\\/)?(?<target>[\\\\w\\\\-.]+)(?<subtarget>\\\\/.*)?/,Idt=/^(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,([^\"].*)/,Rdt=/^data:([a-zA-Z\\\\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/});async function hme(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?Odt(e,{gatewayUrls:t,record:r}):HI({uri:r,gatewayUrls:t})}async function Odt(e,{gatewayUrls:t,record:r}){let n=dme(r),o=await pme(e,{nft:n}),{uri:s,isOnChain:u,isEncoded:f}=_V({uri:o,gatewayUrls:t});if(u&&(s.includes(\"data:application/json;base64,\")||s.startsWith(\"{\"))){let p=f?atob(s.replace(\"data:application/json;base64,\",\"\")):s,h=JSON.parse(p);return HI({uri:kV(h),gatewayUrls:t})}let d=n.tokenID;return n.namespace===\"erc1155\"&&(d=d.replace(\"0x\",\"\").padStart(64,\"0\")),fme({gatewayUrls:t,uri:s.replace(/(?:0x)?{id}/,d)})}var yme=x(()=>{c();mme()});async function LI(e,t){let{blockNumber:r,blockTag:n,key:o,name:s,gatewayUrls:u,strict:f}=t,{chain:d}=e,p=(()=>{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:p,abi:lI,args:[ot(Bw(s)),Ct({abi:oV,functionName:\"text\",args:[VS(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:oV,functionName:\"text\",data:E[0]});return C===\"\"?null:C}catch(y){if(f)throw y;if(kw(y))return null;throw y}}var BV=x(()=>{c();fd();dm();Fa();V1();tt();MI();zS();TV();NI();Zt();Ic()});async function bme(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:o,gatewayUrls:s,strict:u,universalResolverAddress:f}){let d=await Ae(e,LI,\"getEnsText\")({blockNumber:t,blockTag:r,key:\"avatar\",name:o,universalResolverAddress:f,gatewayUrls:s,strict:u});if(!d)return null;try{return await hme(e,{record:d,gatewayUrls:n})}catch{return null}}var gme=x(()=>{c();yme();Zt();BV()});async function xme(e,t){let{address:r,blockNumber:n,blockTag:o,coinType:s=60n,gatewayUrls:u,strict:f}=t,{chain:d}=e,p=(()=>{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:p,abi:Ope,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 vme=x(()=>{c();fd();V1();MI();zS();Zt();Ic()});async function wme(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(p=>o.endsWith(p)))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 Eme=x(()=>{c();V1();tt();NI();Zt();Ic()});async function FI(e,t){let{account:r=e.account,blockNumber:n,blockTag:o=\"latest\",blobs:s,data:u,gas:f,gasPrice:d,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:y,to:v,value:E,...C}=t,k=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:k,blobs:s,data:u,gas:f,gasPrice:d,maxFeePerBlobGas:p,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(P){throw ww(P,{...t,account:k,chain:e.chain})}}var IV=x(()=>{c();Yr();tt();hI();_0();Us();Cl()});async function Ame(e){let t=m0(e,{method:\"eth_newBlockFilter\"}),r=await e.request({method:\"eth_newBlockFilter\"});return{id:r,request:t(r),type:\"block\"}}var Sme=x(()=>{c();iS()});async function zI(e,{address:t,args:r,event:n,events:o,fromBlock:s,strict:u,toBlock:f}={}){let d=o??(n?[n]:void 0),p=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:p(y),strict:!!u,toBlock:f,type:\"event\"}}var PV=x(()=>{c();Tv();tt();iS()});async function jI(e){let t=m0(e,{method:\"eth_newPendingTransactionFilter\"}),r=await e.request({method:\"eth_newPendingTransactionFilter\"});return{id:r,request:t(r),type:\"transaction\"}}var RV=x(()=>{c();iS()});async function Cme(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 Tme=x(()=>{c();fd();dm();Fa();tt();Zt();W1()});async function _me(e){let t=await e.request({method:\"eth_blobBaseFee\"});return BigInt(t)}var kme=x(()=>{c()});async function Bme(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 Ime=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 Pme(e,{address:t,blockNumber:r,blockTag:n=\"latest\"}){let o=await Ji(e,{address:t,...r!==void 0?{blockNumber:r}:{blockTag:n}});if(o&&qt(o)===23&&o.startsWith(\"0xef0100\"))return hn(La(o,3,23))}var Rme=x(()=>{c();El();ji();Yf();Q1()});var $I,Mme=x(()=>{c();ht();$I=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 Ome(e,t){let{address:r,factory:n,factoryData:o}=t;try{let[s,u,f,d,p,h,y]=await Ae(e,Xr,\"readContract\")({abi:Ndt,address:r,functionName:\"eip712Domain\",factory:n,factoryData:o});return{domain:{name:u,version:f,chainId:Number(d),verifyingContract:p,salt:h},extensions:y,fields:s}}catch(s){let u=s;throw u.name===\"ContractFunctionExecutionError\"&&u.cause.name===\"ContractFunctionZeroDataError\"?new $I({address:r}):u}}var Ndt,Nme=x(()=>{c();Mme();Zt();Ic();Ndt=[{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 Ume(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 Dme=x(()=>{c()});async function Hme(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 Ume(u)}var Lme=x(()=>{c();tt();Dme()});async function Fme(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 zme=x(()=>{c();PS();_l()});function MV(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(jme(o,s))}return Cn(r)}function jme(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,p=Number.parseInt(d,10)/8;return le(t,{size:r?32:p,signed:f===\"int\"})}let o=e.match(rB);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(Nfe);if(s&&Array.isArray(t)){let[u,f]=s,d=[];for(let p=0;p<t.length;p++)d.push(jme(f,t[p],!0));return d.length===0?\"0x\":Cn(d)}throw new j9(e)}var $me=x(()=>{c();yo();Ec();ui();Jn();Gp();tt();nB()});function qme(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})}qI(e)}function Gme(e){let{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new fw;for(let r of t){let n=qt(r),o=Zr(La(r,0,1));if(n!==32)throw new qB({hash:r,size:n});if(o!==1)throw new GB({hash:r,version:o})}}qI(e)}function qI(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 Vme(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 Kme(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 Wme=x(()=>{c();nw();Ec();ht();jG();q1();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 bB({storageKey:o[s]});if(!wt(n,{strict:!1}))throw new vr({address:n});t.push([n,o])}return t}var OV=x(()=>{c();Ec();Ac();ui()});function J1(e,t){let r=dw(e);return r===\"eip1559\"?Hdt(e,t):r===\"eip2930\"?Ldt(e,t):r===\"eip4844\"?Ddt(e,t):r===\"eip7702\"?Udt(e,t):Fdt(e,t)}function Udt(e,t){let{authorizationList:r,chainId:n,gas:o,nonce:s,to:u,value:f,maxFeePerGas:d,maxPriorityFeePerGas:p,accessList:h,data:y}=e;qme(e);let v=Z1(h),E=Qme(r);return Cn([\"0x04\",Qi([le(n),s?le(s):\"0x\",p?le(p):\"0x\",d?le(d):\"0x\",o?le(o):\"0x\",u??\"0x\",f?le(f):\"0x\",y??\"0x\",v,E,...$0(e,t)])])}function Ddt(e,t){let{chainId:r,gas:n,nonce:o,to:s,value:u,maxFeePerBlobGas:f,maxFeePerGas:d,maxPriorityFeePerGas:p,accessList:h,data:y}=e;Gme(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=jB({commitments:j})),typeof E>\"u\"){let K=lw({blobs:O,commitments:j,kzg:N});E=VB({blobs:O,commitments:j,proofs:K})}}let C=Z1(h),k=[le(r),o?le(o):\"0x\",p?le(p):\"0x\",d?le(d):\"0x\",n?le(n):\"0x\",s??\"0x\",u?le(u):\"0x\",y??\"0x\",C,f?le(f):\"0x\",v??[],...$0(e,t)],P=[],M=[],U=[];if(E)for(let O=0;O<E.length;O++){let{blob:N,commitment:j,proof:K}=E[O];P.push(N),M.push(j),U.push(K)}return Cn([\"0x03\",E?Qi([k,P,M,U]):Qi(k)])}function Hdt(e,t){let{chainId:r,gas:n,nonce:o,to:s,value:u,maxFeePerGas:f,maxPriorityFeePerGas:d,accessList:p,data:h}=e;qI(e);let y=Z1(p),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,...$0(e,t)];return Cn([\"0x02\",Qi(v)])}function Ldt(e,t){let{chainId:r,gas:n,data:o,nonce:s,to:u,value:f,accessList:d,gasPrice:p}=e;Vme(e);let h=Z1(d),y=[le(r),s?le(s):\"0x\",p?le(p):\"0x\",n?le(n):\"0x\",u??\"0x\",f?le(f):\"0x\",o??\"0x\",h,...$0(e,t)];return Cn([\"0x01\",Qi(y)])}function Fdt(e,t){let{chainId:r=0,gas:n,data:o,nonce:s,to:u,value:f,gasPrice:d}=e;Kme(e);let p=[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 hB({v:t.v});return E})(),y=Mn(t.r),v=Mn(t.s);p=[...p,le(h),y===\"0x00\"?\"0x\":y,v===\"0x00\"?\"0x\":v]}else r>0&&(p=[...p,le(r),\"0x\",\"0x\"]);return Qi(p)}function $0(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();Zme();LB();FB();zG();$G();Jn();Vp();tt();Kv();Wme();KB();OV()});function Qme(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\",...$0({},s)])}return t}var Zme=x(()=>{c();tt();Pw()});async function Jme({address:e,authorization:t,signature:r}){return di(hn(e),await C0({authorization:t,signature:r}))}var Yme=x(()=>{c();El();U0();wS()});function Xme(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(GI.get(r))return GI.get(r);let n=e().finally(()=>GI.delete(r));return GI.set(r,n),n}var GI,ehe=x(()=>{c();d0();GI=new ci(8192)});function the(e,t={}){return async(r,n={})=>{let{dedupe:o=!1,methods:s,retryDelay:u=150,retryCount:f=3,uid:d}={...t,...n},{method:p}=r;if(s?.exclude?.includes(p))throw new em(new Error(\"method not supported\"),{method:p});if(s?.include&&!s.include.includes(p))throw new em(new Error(\"method not supported\"),{method:p});let h=o?jdt(`${d}.${or(r)}`):void 0;return Xme(()=>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 zn.code:throw new zn(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 zn(v);case Hv.code:throw new Hv(v);default:throw y instanceof ae?y:new lS(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})=>zdt(y)}),{enabled:o,id:h})}}function zdt(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 jdt(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 rhe=x(()=>{c();ht();x1();U1();ehe();GS();za()});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 NV(){return{}}var _=x(()=>{c()});function UV(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 p=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(p,y),y},async increment({address:u,chainId:f}){let d=s({address:u,chainId:f}),p=r.get(d)??0;r.set(d,p+1)},async get({address:u,chainId:f,client:d}){let p=s({address:u,chainId:f}),h=o.get(p);return h||(h=(async()=>{try{let v=await t.get({address:u,chainId:f,client:d}),E=n.get(p)??0;return E>0&&v<=E?E+1:(n.delete(p),v)}finally{this.reset({address:u,chainId:f})}})(),o.set(p,h)),(r.get(p)??0)+await h},reset({address:u,chainId:f}){let d=s({address:u,chainId:f});r.delete(d),o.delete(d)}}}function $dt(){return{async get(e){let{address:t,client:r}=e;return M0(r,{address:t,blockTag:\"pending\"})},set(){}}}var EXt,nhe=x(()=>{c();_S();d0();EXt=UV({source:$dt()})});function KS(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 DV=x(()=>{c()});function qdt(){return{current:0,take(){return this.current++},reset(){this.current=0}}}var HV,ohe=x(()=>{c();HV=qdt()});function ahe(e,t={}){let{url:r,headers:n}=Gdt(e);return{async request(o){let{body:s,fetchFn:u=t.fetchFn??fetch,onRequest:f=t.onRequest,onResponse:d=t.onResponse,timeout:p=t.timeout??1e4}=o,h={...t.fetchOptions??{},...o.fetchOptions??{}},{headers:y,method:v,signal:E}=h;try{let C=await KS(async({signal:P})=>{let M={...h,body:Array.isArray(s)?or(s.map(j=>({jsonrpc:\"2.0\",id:j.id??HV.take(),...j}))):or({jsonrpc:\"2.0\",id:s.id??HV.take(),...s}),headers:{...n,\"Content-Type\":\"application/json\",...y},method:v||\"POST\",signal:E||(p>0?P:null)},U=new Request(r,M),O=await f?.(U,M)??{...M,url:r};return await u(O.url??r,O)},{errorInstance:new uS({body:s,url:r}),timeout:p,signal:!0});d&&await d(C);let k;if(C.headers.get(\"Content-Type\")?.startsWith(\"application/json\"))k=await C.json();else{k=await C.text();try{k=JSON.parse(k||\"{}\")}catch(P){if(C.ok)throw P;k={error:k}}}if(!C.ok){if(typeof k.error?.code==\"number\"&&typeof k.error?.message==\"string\")return k;throw new uu({body:s,details:or(k.error)||C.statusText,headers:C.headers,status:C.status,url:r})}return k}catch(C){throw C instanceof uu||C instanceof uS?C:new uu({body:s,cause:C,url:r})}}}}function Gdt(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 ihe=x(()=>{c();x1();DV();za();ohe()});var she,che=x(()=>{c();she=`\\u0019Ethereum Signed Message:\\n`});function uhe(e){let t=typeof e==\"string\"?ks(e):typeof e.raw==\"string\"?e.raw:yr(e.raw),r=ks(`${she}${qt(t)}`);return mr([r,t])}var lhe=x(()=>{c();che();Jn();ji();tt()});function wm(e,t){return Gt(uhe(e),t)}var VI=x(()=>{c();Is();lhe()});var KI,WI,QI,fhe=x(()=>{c();za();ht();KI=class extends ae{constructor({domain:t}){super(`Invalid domain \"${or(t)}\".`,{metaMessages:[\"Must be a valid EIP-712 domain.\"]})}},WI=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`.\"]})}},QI=class extends ae{constructor({type:t}){super(`Struct type \"${t}\" is invalid.`,{metaMessages:[\"Struct type must not be a Solidity type.\"],name:\"InvalidStructTypeError\"})}}});function dhe(e){let{domain:t,message:r,primaryType:n,types:o}=e,s=(d,p)=>{let h={...p};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 ZI(e){let{domain:t,message:r,primaryType:n,types:o}=e,s=(u,f)=>{for(let d of u){let{name:p,type:h}=d,y=f[p],v=h.match(Sv);if(v&&(typeof y==\"number\"||typeof y==\"bigint\")){let[k,P,M]=v;le(y,{signed:P===\"int\",size:Number.parseInt(M,10)/8})}if(h===\"address\"&&typeof y==\"string\"&&!wt(y))throw new vr({address:y});let E=h.match(rB);if(E){let[k,P]=E;if(P&&qt(y)!==Number.parseInt(P,10))throw new vv({expectedSize:Number.parseInt(P,10),givenSize:qt(y)})}let C=o[h];C&&(Vdt(h),s(C,y))}};if(o.EIP712Domain&&t){if(typeof t!=\"object\")throw new KI({domain:t});s(o.EIP712Domain,t)}if(n!==\"EIP712Domain\")if(o[n])s(o[n],r);else throw new WI({primaryType:n,types:o})}function JI({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 Vdt(e){if(e===\"address\"||e===\"bool\"||e===\"string\"||e.startsWith(\"bytes\")||e.startsWith(\"uint\")||e.startsWith(\"int\"))throw new QI({type:e})}var LV=x(()=>{c();yo();Ec();fhe();ui();ji();tt();nB();za()});function yd(e){let{domain:t={},message:r,primaryType:n}=e,o={EIP712Domain:JI({domain:t}),...e.types};ZI({domain:t,message:r,primaryType:n,types:o});let s=[\"0x1901\"];return t&&s.push(phe({domain:t,types:o})),n!==\"EIP712Domain\"&&s.push(FV({data:r,primaryType:n,types:o})),Gt(mr(s))}function phe({domain:e,types:t}){return FV({data:e,primaryType:\"EIP712Domain\",types:t})}function FV({data:e,primaryType:t,types:r}){let n=mhe({data:e,primaryType:t,types:r});return Gt(n)}function mhe({data:e,primaryType:t,types:r}){let n=[{type:\"bytes32\"}],o=[Kdt({primaryType:t,types:r})];for(let s of r[t]){let[u,f]=yhe({types:r,name:s.name,type:s.type,value:e[s.name]});n.push(u),o.push(f)}return Fn(n,o)}function Kdt({primaryType:e,types:t}){let r=ot(Wdt({primaryType:e,types:t}));return Gt(r)}function Wdt({primaryType:e,types:t}){let r=\"\",n=hhe({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 hhe({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])hhe({primaryType:s.type,types:t},r);return r}function yhe({types:e,name:t,type:r,value:n}){if(e[r]!==void 0)return[{type:\"bytes32\"},Gt(mhe({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=>yhe({name:t,type:o,types:e,value:u}));return[{type:\"bytes32\"},Gt(Fn(s.map(([u])=>u),s.map(([,u])=>u)))]}return[{type:r},n]}var YI=x(()=>{c();cu();Jn();tt();Is();LV()});var bhe,ghe=x(()=>{c();bhe=\"0x6492649264926492649264926492649264926492649264926492649264926492\"});var XI,xhe=x(()=>{c();XI=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 Qdt,eP,vhe=x(()=>{c();xhe();Qdt={checksum:new XI(8192)},eP=Qdt.checksum});function Rc(e,t={}){let{as:r=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,n=Zf(NS(e));return r===\"Bytes\"?n:sn(n)}function zV(e,t={}){let{as:r=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,n=O0(NS(e));return r===\"Bytes\"?n:sn(n)}function whe(e){return Zi(e)&&Cr(e)===32}var q0=x(()=>{c();Av();kS();pu();Tr()});function Ehe(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 tP({prefix:n,cause:new qV});return}if(r===!0||typeof o==\"bigint\"&&typeof s>\"u\"){if(n!==3&&n!==2)throw new tP({prefix:n,cause:new $V});return}throw new jV({publicKey:e})}function WS(e){let t=(()=>{if(Zi(e))return rP(e);if(kpe(e))return Jdt(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 Ehe(t),t}function Jdt(e){return rP(sn(e))}function rP(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new GV({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 Ahe(e,t={}){return Ds(X1(e,t))}function X1(e,t={}){Ehe(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 jV,tP,$V,qV,GV,Rw=x(()=>{c();pu();ca();Tr();gw();jV=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\"})}},tP=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\"})}},$V=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\"})}},qV=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\"})}},GV=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(!Ydt.test(e))throw new nP({address:e,cause:new VV});if(r){if(e.toLowerCase()===e)return;if(eg(e)!==e)throw new nP({address:e,cause:new KV})}}function eg(e){if(eP.has(e))return eP.get(e);mi(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=Rc(nI(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 eP.set(e,o),o}function Xdt(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 Xdt(`0x${r}`,t)}function ZS(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 Ydt,nP,VV,KV,bu=x(()=>{c();pu();vhe();ca();q0();Rw();Ydt=/^0x[a-fA-F0-9]{40}$/;nP=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\"})}},VV=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\"})}},KV=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 She,Che,oP,Cer,Ter,_er,ker,Ber,Ier,Per,Rer,Mer,Oer,Ner,Uer,Der,Her,Ler,Fer,zer,jer,$er,qer,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,Ntr,Utr,Dtr,Htr,Ltr,Ftr,ztr,jtr,$tr,qtr,Gtr,Vtr,Ktr,Wtr,Qtr,Ztr,Jtr,Ytr,Xtr,err,trr,rrr,nrr,orr,arr,irr,srr,crr,urr,lrr,frr,WV,aP=x(()=>{c();She=/^(.*)\\\\[([0-9]*)\\\\]$/,Che=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,oP=/^(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)?$/,Cer=2n**(8n-1n)-1n,Ter=2n**(16n-1n)-1n,_er=2n**(24n-1n)-1n,ker=2n**(32n-1n)-1n,Ber=2n**(40n-1n)-1n,Ier=2n**(48n-1n)-1n,Per=2n**(56n-1n)-1n,Rer=2n**(64n-1n)-1n,Mer=2n**(72n-1n)-1n,Oer=2n**(80n-1n)-1n,Ner=2n**(88n-1n)-1n,Uer=2n**(96n-1n)-1n,Der=2n**(104n-1n)-1n,Her=2n**(112n-1n)-1n,Ler=2n**(120n-1n)-1n,Fer=2n**(128n-1n)-1n,zer=2n**(136n-1n)-1n,jer=2n**(144n-1n)-1n,$er=2n**(152n-1n)-1n,qer=2n**(160n-1n)-1n,Ger=2n**(168n-1n)-1n,Ver=2n**(176n-1n)-1n,Ker=2n**(184n-1n)-1n,Wer=2n**(192n-1n)-1n,Qer=2n**(200n-1n)-1n,Zer=2n**(208n-1n)-1n,Jer=2n**(216n-1n)-1n,Yer=2n**(224n-1n)-1n,Xer=2n**(232n-1n)-1n,etr=2n**(240n-1n)-1n,ttr=2n**(248n-1n)-1n,rtr=2n**(256n-1n)-1n,ntr=-(2n**(8n-1n)),otr=-(2n**(16n-1n)),atr=-(2n**(24n-1n)),itr=-(2n**(32n-1n)),str=-(2n**(40n-1n)),ctr=-(2n**(48n-1n)),utr=-(2n**(56n-1n)),ltr=-(2n**(64n-1n)),ftr=-(2n**(72n-1n)),dtr=-(2n**(80n-1n)),ptr=-(2n**(88n-1n)),mtr=-(2n**(96n-1n)),htr=-(2n**(104n-1n)),ytr=-(2n**(112n-1n)),btr=-(2n**(120n-1n)),gtr=-(2n**(128n-1n)),xtr=-(2n**(136n-1n)),vtr=-(2n**(144n-1n)),wtr=-(2n**(152n-1n)),Etr=-(2n**(160n-1n)),Atr=-(2n**(168n-1n)),Str=-(2n**(176n-1n)),Ctr=-(2n**(184n-1n)),Ttr=-(2n**(192n-1n)),_tr=-(2n**(200n-1n)),ktr=-(2n**(208n-1n)),Btr=-(2n**(216n-1n)),Itr=-(2n**(224n-1n)),Ptr=-(2n**(232n-1n)),Rtr=-(2n**(240n-1n)),Mtr=-(2n**(248n-1n)),Otr=-(2n**(256n-1n)),Ntr=2n**8n-1n,Utr=2n**16n-1n,Dtr=2n**24n-1n,Htr=2n**32n-1n,Ltr=2n**40n-1n,Ftr=2n**48n-1n,ztr=2n**56n-1n,jtr=2n**64n-1n,$tr=2n**72n-1n,qtr=2n**80n-1n,Gtr=2n**88n-1n,Vtr=2n**96n-1n,Ktr=2n**104n-1n,Wtr=2n**112n-1n,Qtr=2n**120n-1n,Ztr=2n**128n-1n,Jtr=2n**136n-1n,Ytr=2n**144n-1n,Xtr=2n**152n-1n,err=2n**160n-1n,trr=2n**168n-1n,rrr=2n**176n-1n,nrr=2n**184n-1n,orr=2n**192n-1n,arr=2n**200n-1n,irr=2n**208n-1n,srr=2n**216n-1n,crr=2n**224n-1n,urr=2n**232n-1n,lrr=2n**240n-1n,frr=2n**248n-1n,WV=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 tpt(e,{...t,type:f},{checksumAddress:n,length:u,staticPosition:o})}if(t.type===\"tuple\")return apt(e,t,{checksumAddress:n,staticPosition:o});if(t.type===\"address\")return ept(e,{checksum:n});if(t.type===\"bool\")return rpt(e);if(t.type.startsWith(\"bytes\"))return npt(e,t,{staticPosition:o});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return opt(e,t);if(t.type===\"string\")return ipt(e,{staticPosition:o});throw new Mw(t.type)}function ept(e,t={}){let{checksum:r=!1}=t,n=e.readBytes(32);return[(s=>r?eg(s):s)(sn(Spe(n,-20))),32]}function tpt(e,t,r){let{checksumAddress:n,length:o,staticPosition:s}=r;if(!o){let d=ud(e.readBytes(QV)),p=s+d,h=p+_he;e.setPosition(p);let y=ud(e.readBytes(_he)),v=JS(t),E=0,C=[];for(let k=0;k<y;++k){e.setPosition(h+(v?k*32:E));let[P,M]=rg(e,t,{checksumAddress:n,staticPosition:h});E+=M,C.push(P)}return e.setPosition(s+32),[C,32]}if(JS(t)){let d=ud(e.readBytes(QV)),p=s+d,h=[];for(let y=0;y<o;++y){e.setPosition(p+y*32);let[v]=rg(e,t,{checksumAddress:n,staticPosition:p});h.push(v)}return e.setPosition(s+32),[h,32]}let u=0,f=[];for(let d=0;d<o;++d){let[p,h]=rg(e,t,{checksumAddress:n,staticPosition:s+u});u+=h,f.push(p)}return[f,u]}function rpt(e){return[Tpe(e.readBytes(32),{size:32}),32]}function npt(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 opt(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?Cpe(o,{signed:r}):ud(o,{signed:r}),32]}function apt(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(JS(t)){let d=ud(e.readBytes(QV)),p=o+d;for(let h=0;h<t.components.length;++h){let y=t.components[h];e.setPosition(p+f);let[v,E]=rg(e,y,{checksumAddress:n,staticPosition:p});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 p=t.components[d],[h,y]=rg(e,p,{checksumAddress:n,staticPosition:o});u[s?d:p?.name]=h,f+=y}return[u,f]}function ipt(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=_pe(XG(s));return e.setPosition(t+32),[u,32]}function khe({checksumAddress:e,parameters:t,values:r}){let n=[];for(let o=0;o<t.length;o++)n.push(ZV({checksumAddress:e,parameter:t[o],value:r[o]}));return n}function ZV({checksumAddress:e=!1,parameter:t,value:r}){let n=t,o=JV(n.type);if(o){let[s,u]=o;return cpt(r,{checksumAddress:e,length:s,parameter:{...n,type:u}})}if(n.type===\"tuple\")return ppt(r,{checksumAddress:e,parameter:n});if(n.type===\"address\")return spt(r,{checksum:e});if(n.type===\"bool\")return lpt(r);if(n.type.startsWith(\"uint\")||n.type.startsWith(\"int\")){let s=n.type.startsWith(\"int\"),[,,u=\"256\"]=oP.exec(n.type)??[];return fpt(r,{signed:s,size:Number(u)})}if(n.type.startsWith(\"bytes\"))return upt(r,{type:n.type});if(n.type===\"string\")return dpt(r);throw new Mw(n.type)}function iP(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 spt(e,t){let{checksum:r=!1}=t;return mi(e,{strict:r}),{dynamic:!1,encoded:mm(e.toLowerCase())}}function cpt(e,t){let{checksumAddress:r,length:n,parameter:o}=t,s=n===null;if(!Array.isArray(e))throw new cP(e);if(!s&&e.length!==n)throw new sP({expectedLength:n,givenLength:e.length,type:`${o.type}[${n}]`});let u=!1,f=[];for(let d=0;d<e.length;d++){let p=ZV({checksumAddress:r,parameter:o,value:e[d]});p.dynamic&&(u=!0),f.push(p)}if(s||u){let d=iP(f);if(s){let p=we(f.length,{size:32});return{dynamic:!0,encoded:f.length>0?Jt(p,d):p}}if(u)return{dynamic:!0,encoded:d}}return{dynamic:!1,encoded:Jt(...f.map(({encoded:d})=>d))}}function upt(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 YS({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:ld(e)}}function lpt(e){if(typeof e!=\"boolean\")throw new De(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:mm(sI(e))}}function fpt(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 US({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 dpt(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 ppt(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,p=ZV({checksumAddress:r,parameter:f,value:e[d]});s.push(p),p.dynamic&&(o=!0)}return{dynamic:o,encoded:o?iP(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 JS(e){let{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(JS);let r=JV(e.type);return!!(r&&JS({...e,type:r[1]}))}var _he,QV,Bhe=x(()=>{c();Ow();bu();pu();ca();Tr();aP();_he=32,QV=32});function eC(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(hpt);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}var hpt,uP,YV,XV,eK=x(()=>{c();ca();hpt={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 XV({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new YV({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new uP({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 uP({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++}};uP=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\"})}},YV=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\"})}},XV=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=eC(s);if(du(s)===0&&e.length>0)throw new nK;if(du(s)&&du(s)<32)throw new rK({data:typeof t==\"string\"?t:sn(t),parameters:e,size:du(s)});let f=0,d=n===\"Array\"?[]:{};for(let p=0;p<e.length;++p){let h=e[p];u.setPosition(f);let[y,v]=rg(u,h,{checksumAddress:o,staticPosition:0});f+=v,n===\"Array\"?d.push(y):d[h.name??p]=y}return d}function G0(e,t,r){let{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new lP({expectedLength:e.length,givenLength:t.length});let o=khe({checksumAddress:n,parameters:e,values:t}),s=iP(o);return s.length===0?\"0x\":s}function tK(e,t){if(e.length!==t.length)throw new lP({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(tK.encode(o,s))}return Jt(...r)}function tC(e){return Array.isArray(e)&&typeof e[0]==\"string\"?I9(e):typeof e==\"string\"?I9(e):e}var rK,nK,sP,YS,lP,cP,Mw,Ow=x(()=>{c();hv();bu();pu();ca();Tr();Bhe();eK();aP();(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(sI(n),o?32:1);let s=r.match(oP);if(s){let[d,p,h=\"256\"]=s,y=Number.parseInt(h,10)/8;return we(n,{size:o?32:y,signed:p===\"int\"})}let u=r.match(Che);if(u){let[d,p]=u;if(Number.parseInt(p,10)!==(n.length-2)/2)throw new YS({expectedSize:Number.parseInt(p,10),value:n});return ld(n,o?32:0)}let f=r.match(She);if(f&&Array.isArray(n)){let[d,p]=f,h=[];for(let y=0;y<n.length;y++)h.push(t(p,n[y],!0));return h.length===0?\"0x\":Jt(...h)}throw new Mw(r)}e.encode=t})(tK||(tK={}));rK=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\"})}},nK=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\"})}},sP=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\"})}},YS=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\"})}},lP=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\"})}},cP=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 fP(e){return ypt(e,\"Hex\")}function ypt(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 iI(e);return Ds(e)}return e})(),o=eC(n,{recursiveReadLimit:Number.POSITIVE_INFINITY});return Rhe(o,r)}function Rhe(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=Phe(e,r,128),s=e.readBytes(o);return t===\"Hex\"?sn(s):s}let n=Phe(e,r,192);return bpt(e,n,t)}function Phe(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 bpt(e,t,r){let n=e.position,o=[];for(;e.position-n<t;)o.push(Rhe(e,r));return o}function gpt(e,t){let{as:r}=t,n=Mhe(e),o=eC(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 gpt(e,{as:r})}function Mhe(e){return Array.isArray(e)?xpt(e.map(t=>Mhe(t))):vpt(e)}function xpt(e){let t=e.reduce((o,s)=>o+s.length,0),r=Ohe(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 vpt(e){let t=typeof e==\"string\"?Ds(e):e,r=Ohe(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 Ohe(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 dP=x(()=>{c();pu();ca();Tr();eK()});function og(e,t={}){let{recovered:r}=t;if(typeof e.r>\"u\")throw new rC({signature:e});if(typeof e.s>\"u\")throw new rC({signature:e});if(r&&typeof e.yParity>\"u\")throw new rC({signature:e});if(e.r<0n||e.r>WV)throw new iK({value:e.r});if(e.s<0n||e.s>WV)throw new sK({value:e.s});if(typeof e.yParity==\"number\"&&e.yParity!==0&&e.yParity!==1)throw new Uw({value:e.yParity})}function wpt(e){return pP(sn(e))}function pP(e){if(e.length!==130&&e.length!==132)throw new aK({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 lK(o)}catch{throw new Uw({value:o})}})();return typeof n>\"u\"?{r:t,s:r}:{r:t,s:r,yParity:n}}function nC(e){if(!(typeof e.r>\"u\")&&!(typeof e.s>\"u\"))return V0(e)}function V0(e){let t=typeof e==\"string\"?pP(e):e instanceof Uint8Array?wpt(e):typeof e.r==\"string\"?oC(e):e.v?Ept(e):{r:e.r,s:e.s,...typeof e.yParity<\"u\"?{yParity:e.yParity}:{}};return og(t),t}function Ept(e){return{r:e.r,s:e.s,yParity:lK(e.v)}}function oC(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=lK(r)),typeof n!=\"number\")throw new Uw({value:e.yParity});return n})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function uK(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 Nhe(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 mP(e){let{r:t,s:r,yParity:n}=e;return[n?\"0x01\":\"0x\",t===0n?\"0x\":DS(we(t)),r===0n?\"0x\":DS(we(r))]}function lK(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 cK({value:e})}function Hw(e){if(e===0)return 27;if(e===1)return 28;throw new Uw({value:e})}var aK,rC,iK,sK,Uw,cK,K0=x(()=>{c();ca();Tr();gw();aP();aK=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\"})}},rC=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\"})}},iK=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\"})}},sK=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\"})}},cK=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 Uhe(e,t={}){return typeof e.chainId==\"string\"?Dhe(e):{...e,...t.signature}}function Dhe(e){let{address:t,chainId:r,nonce:n}=e,o=nC(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...o}}function hP(e){return e.map(Dhe)}function Hhe(e){return Apt(e,{presign:!0})}function Apt(e,t={}){let{presign:r}=t;return Rc(Jt(\"0x05\",ng(Cpt(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function Spt(e){let{address:t,chainId:r,nonce:n,...o}=e;return{address:t,chainId:we(r),nonce:we(n),...Dw(o)}}function yP(e){return e.map(Spt)}function Cpt(e){let{address:t,chainId:r,nonce:n}=e,o=nC(e);return[r?we(r):\"0x\",t,n?we(n):\"0x\",...o?mP(o):[]]}var bP=x(()=>{c();q0();Tr();dP();K0()});function ig(e){return Yi(gP(e))}function gP(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 WS(f)}function Lhe(e){let{address:t,hash:r,payload:n,publicKey:o,signature:s}=e;return t?ZS(t,ig({payload:n,signature:s})):fi.verify(s,NS(n),Ahe(o),...r?[{prehash:!0,lowS:!0}]:[])}var aC=x(()=>{c();S0();bu();pu();Tr();Rw()});var iC={};Wn(iC,{InvalidWrappedSignatureError:()=>vP,assert:()=>wP,from:()=>Tpt,magicBytes:()=>dK,suffixParameters:()=>pK,unwrap:()=>Fhe,validate:()=>kpt,wrap:()=>_pt});function wP(e){if(typeof e==\"string\"){if(vt(e,-32)!==dK)throw new vP(e)}else og(e.authorization)}function Tpt(e){return typeof e==\"string\"?Fhe(e):e}function Fhe(e){wP(e);let t=Bc(vt(e,-64,-32)),r=vt(e,-t-64,-64),n=vt(e,0,-t-64),[o,s,u]=Nw(pK,r);return{authorization:Uhe({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 _pt(e){let{data:t,signature:r}=e;wP(e);let n=ig({payload:Hhe(e.authorization),signature:V0(e.authorization)}),o=G0(pK,[{...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,dK)}function kpt(e){try{return wP(e),!0}catch{return!1}}var dK,pK,vP,zhe=x(()=>{c();Ow();bP();ca();Tr();aC();K0();dK=\"0x8010801080108010801080108010801080108010801080108010801080108010\",pK=tC(\"(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data\");vP=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 jhe=x(()=>{c();zhe()});function EP(e){let{address:t,data:r,signature:n,to:o=\"hex\"}=e,s=Cn([Fn([{type:\"address\"},{type:\"bytes\"},{type:\"bytes\"}],[t,r,n]),bhe]);return o===\"hex\"?s:Jr(s)}var $he=x(()=>{c();ghe();cu();Jn();bo()});var W0=x(()=>{c();Yr();Fa();El();Gp();Zn();tt();b1()});function Ipt(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function qhe(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?Zr(e.nonce):void 0,storageProof:e.storageProof?Ipt(e.storageProof):void 0}}var Ghe=x(()=>{c();W0()});async function Vhe(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 qhe(f)}var Khe=x(()=>{c();tt();Ghe()});async function Whe(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 Qhe=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\",p=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}):(p||d)&&typeof s==\"number\"?h=await e.request({method:\"eth_getTransactionByBlockNumberAndIndex\",params:[p||d,le(s)]},{dedupe:!!p}):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 AP=x(()=>{c();Ac();tt();id()});async function Zhe(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();AP()});async function Fw(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 mK=x(()=>{c();Ac();gm()});async function Yhe(e,t){let{account:r,authorizationList:n,allowFailure:o=!0,blockNumber:s,blockOverrides:u,blockTag:f,stateOverride:d}=t,p=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,k=0;for(let U=0;U<p.length;U++){let{abi:O,address:N,args:j,functionName:K}=p[U];try{let G=Ct({abi:O,args:j,functionName:K});k+=(G.length-2)/2,h>0&&k>h&&E[C].length>0&&(C++,k=(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 P=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<P.length;U++){let O=P[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}=p[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!==p.length)throw new ae(\"multicall results mismatch\");return M}var Xhe=x(()=>{c();fd();LS();yo();ht();Xp();dm();Fa();V1();D1();Zt();Ic()});async function sC(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?cI(v.blockOverrides):void 0,C=v.calls.map(P=>{let M=P,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)}),k=v.stateOverrides?B0(v.stateOverrides):void 0;d.push({blockOverrides:E,calls:C,stateOverrides:k})}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)=>({...TS(v),calls:v.calls.map((C,k)=>{let{abi:P,args:M,functionName:U,to:O}=o[E].calls[k],N=C.error?.data??C.returnData,j=BigInt(C.gasUsed),K=C.logs?.map(W=>go(W)),G=C.status===\"0x1\"?\"success\":\"failure\",J=P&&G===\"success\"&&N!==\"0x\"?pi({abi:P,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:P??[],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 p=d,h=T0(p,{});throw h instanceof fu?p:h}}var hK=x(()=>{c();nV();Yr();yo();Xp();fm();dm();Fa();Jn();tt();D1();ES();sw();_l();Us();SS();Cl()});function CP(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 SP(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)=>SP(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=>SP(o,{...t,type:n.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function yK(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 yK(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 e0e=x(()=>{c();bu();ca()});function TP(e,t={}){let{prepare:r=!0}=t,n=Array.isArray(e)?B9(e):typeof e==\"string\"?B9(e):e;return{...n,...r?{hash:zw(n)}:{}}}function cC(e,t,r){let{args:n=[],prepare:o=!0}=r??{},s=Zi(t,{strict:!1}),u=e.filter(p=>s?p.type===\"function\"||p.type===\"error\"?uC(p)===vt(t,0,4):p.type===\"event\"?zw(p)===t:!1:\"name\"in p&&p.name===t);if(u.length===0)throw new Q0({name:t});if(u.length===1)return{...u[0],...o?{hash:zw(u[0])}:{}};let f;for(let p of u){if(!(\"inputs\"in p))continue;if(!n||n.length===0){if(!p.inputs||p.inputs.length===0)return{...p,...o?{hash:zw(p)}:{}};continue}if(!p.inputs||p.inputs.length===0||p.inputs.length!==n.length)continue;if(n.every((y,v)=>{let E=\"inputs\"in p&&p.inputs[v];return E?SP(y,E):!1})){if(f&&\"inputs\"in f&&f.inputs){let y=yK(p.inputs,f.inputs,n);if(y)throw new bK({abiItem:p,type:y[0]},{abiItem:f,type:y[1]})}f=p}}let d=(()=>{if(f)return f;let[p,...h]=u;return{...p,overloads:h}})();if(!d)throw new Q0({name:t});return{...d,...o?{hash:zw(d)}:{}}}function uC(...e){let t=(()=>{if(Array.isArray(e[0])){let[r,n]=e;return cC(r,n)}return e[0]})();return vt(zw(t),0,4)}function Rpt(...e){let t=(()=>{if(Array.isArray(e[0])){let[n,o]=e;return cC(n,o)}return e[0]})(),r=typeof t==\"string\"?t:l1(t);return CP(r)}function zw(...e){let t=(()=>{if(Array.isArray(e[0])){let[r,n]=e;return cC(r,n)}return e[0]})();return typeof t!=\"string\"&&\"hash\"in t&&t.hash?t.hash:Rc(Il(Rpt(t)))}var bK,Q0,_P=x(()=>{c();hv();ca();q0();Tr();e0e();bK=class extends De{constructor(t,r){super(\"Found ambiguous types in overloaded ABI Items.\",{metaMessages:[`\\\\`${t.type}\\\\` in \\\\`${CP(l1(t.abiItem))}\\\\`, and`,`\\\\`${r.type}\\\\` in \\\\`${CP(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 t0e(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[s,u]=e;return[Mpt(s),u]}return e})(),{bytecode:n,args:o}=r;return Jt(n,t.inputs?.length&&o?.length?G0(t.inputs,o):\"0x\")}function r0e(e){return TP(e)}function Mpt(e){let t=e.find(r=>r.type===\"constructor\");if(!t)throw new Q0({name:\"constructor\"});return t}var n0e=x(()=>{c();_P();Ow();Tr()});function a0e(...e){let[t,r=[]]=(()=>{if(Array.isArray(e[0])){let[p,h,y]=e;return[o0e(p,h,{args:y}),y]}let[f,d]=e;return[f,d]})(),{overloads:n}=t,o=n?o0e([t,...n],t.name,{args:r}):t,s=Npt(o),u=r.length>0?G0(o.inputs,r):void 0;return u?Jt(s,u):s}function sg(e,t={}){return TP(e,t)}function o0e(e,t,r){let n=cC(e,t,r);if(n.type!==\"function\")throw new Q0({name:t,type:\"function\"});return n}function Npt(e){return uC(e)}var i0e=x(()=>{c();_P();Ow();Tr()});var s0e,gu,c0e=x(()=>{c();s0e=\"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\",gu=\"0x0000000000000000000000000000000000000000\"});async function u0e(e,t){let{blockNumber:r,blockTag:n,calls:o,stateOverrides:s,traceAssetChanges:u,traceTransfers:f,validation:d}=t,p=t.account?Xe(t.account):void 0;if(u&&!p)throw new ae(\"`account` is required when `traceAssetChanges` is true\");let h=p?t0e(r0e(\"constructor(bytes, bytes)\"),{bytecode:fI,args:[Dpt,a0e(sg(\"function getBalance(address)\"),[p.address])]}):void 0,y=u?await Promise.all(t.calls.map(async L=>{if(!L.data&&!L.abi)return;let{accessList:V}=await FI(e,{account:p.address,...L,data:L.abi?Ct(L):L.data});return V.map(({address:Q,storageKeys:F})=>F.length>0?Q:null)})).then(L=>L.flat().filter(Boolean)):[],v=await sC(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:[p.address],to:L,from:gu,nonce:V})),stateOverrides:[{address:gu,nonce:0}]}]:[],{calls:[...o,{to:gu}].map(L=>({...L,from:p?.address})),stateOverrides:s},...u?[{calls:[{data:h}]},{calls:y.map((L,V)=>({abi:[sg(\"function balanceOf(address) returns (uint256)\")],functionName:\"balanceOf\",args:[p.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,k,,P,M,U,O,N]=u?v:[],{calls:j,...K}=E,G=j.slice(0,-1)??[],J=C?.calls??[],Y=k?.calls??[],W=[...J,...Y].map(L=>L.status===\"success\"?at(L.data):null),ie=P?.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),R=(O?.calls??[]).map(L=>L.status===\"success\"?L.result:null),D=[];for(let[L,V]of H.entries()){let Q=W[L];if(typeof V!=\"bigint\"||typeof Q!=\"bigint\")continue;let F=A[L-1],I=T[L-1],Z=R[L-1],me=L===0?{address:s0e,decimals:18,symbol:\"ETH\"}:{address:y[L-1],decimals:Z||F?Number(F??1):void 0,symbol:I??void 0};D.some(ge=>ge.token.address===me.address)||D.push({token:me,value:{pre:Q,post:V,diff:V-Q}})}return{assetChanges:D,block:K,results:G}}var Dpt,l0e=x(()=>{c();n0e();i0e();Yr();c0e();LS();ht();Fa();W0();IV();hK();Dpt=\"0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033\"});var lC={};Wn(lC,{InvalidWrappedSignatureError:()=>kP,assert:()=>vK,from:()=>Fpt,magicBytes:()=>xK,universalSignatureValidatorAbi:()=>Lpt,universalSignatureValidatorBytecode:()=>Hpt,unwrap:()=>f0e,validate:()=>jpt,wrap:()=>zpt});function vK(e){if(vt(e,-32)!==xK)throw new kP(e)}function Fpt(e){return typeof e==\"string\"?f0e(e):e}function f0e(e){vK(e);let[t,r,n]=Nw(tC(\"address, bytes, bytes\"),e);return{data:r,signature:n,to:t}}function zpt(e){let{data:t,signature:r,to:n}=e;return Jt(G0(tC(\"address, bytes, bytes\"),[n,t,r]),xK)}function jpt(e){try{return vK(e),!0}catch{return!1}}var xK,Hpt,Lpt,kP,d0e=x(()=>{c();Ow();ca();Tr();xK=\"0x6492649264926492649264926492649264926492649264926492649264926492\",Hpt=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",Lpt=[{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\"}];kP=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 p0e=x(()=>{c();d0e()});function m0e({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 h0e=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 p=t.signature;return Wr(p)?p:typeof p==\"object\"&&\"r\"in p&&\"s\"in p?m0e(p):yr(p)})();try{if(f===\"eoa\")try{if(di(hn(r),await vS({hash:o,signature:d})))return!0}catch{}return iC.validate(d)?await $pt(e,{...t,multicallAddress:u,signature:d}):await qpt(e,{...t,verifierAddress:s,signature:d})}catch(p){if(f!==\"eoa\")try{if(di(hn(r),await vS({hash:o,signature:d})))return!0}catch{}if(p instanceof Em)return!1;throw p}}async function $pt(e,t){let{address:r,blockNumber:n,blockTag:o,hash:s,multicallAddress:u}=t,{authorization:f,data:d,signature:p,to:h}=iC.unwrap(t.signature);if(await Ji(e,{address:r,blockNumber:n,blockTag:o})===Cn([\"0xef0100\",f.address]))return await Gpt(e,{address:r,blockNumber:n,blockTag:o,hash:s,signature:p});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:iV,functionName:\"isValidSignature\",args:[s,p]})}]]});if(C[C.length-1]?.returnData?.startsWith(\"0x1626ba7e\"))return!0;throw new Em}async function qpt(e,t){let{address:r,factory:n,factoryData:o,hash:s,signature:u,verifierAddress:f,...d}=t,p=await(async()=>!n&&!o||lC.validate(u)?u:lC.wrap({data:o,signature:u,to:n}))(),h=f?{to:f,data:Ct({abi:HS,functionName:\"isValidSig\",args:[r,s,p]}),...d}:{data:G1({abi:HS,args:[r,s,p],bytecode:Hpe}),...d},{data:y}=await Ae(e,hu,\"call\")(h).catch(v=>{throw v instanceof Uv?new Em:v});if(W9(y??\"0x0\"))return!0;throw new Em}async function Gpt(e,t){let{address:r,blockNumber:n,blockTag:o,hash:s,signature:u}=t;if((await Ae(e,Xr,\"readContract\")({address:r,abi:iV,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();p0e();jhe();fd();LS();Xp();mI();Fa();El();U0();Yme();Jn();au();Zn();tt();Zt();NG();h0e();W1();Q1();Ic();Em=class extends Error{}});async function y0e(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 b0e=x(()=>{c();Zt();VI();jw()});async function g0e(e,t){let{address:r,factory:n,factoryData:o,signature:s,message:u,primaryType:f,types:d,domain:p,...h}=t,y=yd({message:u,primaryType:f,types:d,domain:p});return Ae(e,bd,\"verifyHash\")({address:r,factory:n,factoryData:o,hash:y,signature:s,...h})}var x0e=x(()=>{c();Zt();YI();jw()});function BP(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 k=(()=>{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:P}=await k.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=P,E||C()}catch(k){o?.(k)}})(),()=>C()})})()}var wK=x(()=>{c();Zn();Zt();ym();L0();za();Aw()});async function IP(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,p=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,k,P,{promise:M,resolve:U,reject:O}=Ew(),N=d?setTimeout(()=>{P?.(),k?.(),O(new xB({hash:o}))},d):void 0;return k=wa(p,{onReplaced:s,resolve:U,reject:O},async j=>{if(E=await Ae(e,Fw,\"getTransactionReceipt\")({hash:o}).catch(()=>{}),E&&n<=1){clearTimeout(N),j.resolve(E),k?.();return}P=Ae(e,BP,\"watchBlockNumber\")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:h,async onBlockNumber(K){let G=Y=>{clearTimeout(N),P?.(),Y(),k?.()},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,Fw,\"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,Fw,\"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 EK=x(()=>{c();UG();Ac();Zt();ym();yI();GS();za();R0();AP();mK();wK()});function v0e(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 p=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 p?(()=>{let C=or([\"watchBlocks\",e.uid,t,r,n,h,d]);return wa(C,{onBlock:o,onError:s},k=>Hs(async()=>{try{let P=await Ae(e,xa,\"getBlock\")({blockTag:t,includeTransactions:h});if(P.number!==null&&y?.number!=null){if(P.number===y.number)return;if(P.number-y.number>1&&r)for(let M=y?.number+1n;M<P.number;M++){let U=await Ae(e,xa,\"getBlock\")({blockNumber:M,includeTransactions:h});k.onBlock(U,y),y=U}}(y?.number==null||t===\"pending\"&&P?.number==null||P.number!==null&&P.number>y.number)&&(k.onBlock(P,y),y=P)}catch(P){k.onError?.(P)}},{emitOnBegin:n,interval:d}))})():(()=>{let C=!0,k=!0,P=()=>C=!1;return(async()=>{try{n&&Ae(e,xa,\"getBlock\")({blockTag:t,includeTransactions:h}).then(O=>{C&&k&&(o(O,void 0),k=!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),k=!1,y=N)},onError(O){s?.(O)}});P=U,C||P()}catch(M){s?.(M)}})(),()=>P()})()}var w0e=x(()=>{c();Zt();ym();L0();za();R0()});function E0e(e,{address:t,args:r,batch:n=!0,event:o,events:s,fromBlock:u,onError:f,onLogs:d,poll:p,pollingInterval:h=e.pollingInterval,strict:y}){let v=typeof p<\"u\"?p: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 P=or([\"watchEvent\",t,r,n,e.uid,o,h,u]);return wa(P,{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,zI,\"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,F0,\"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,z0,\"uninstallFilter\")({filter:O}),j()}})})():(()=>{let P=!0,M=()=>P=!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(!P)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 qp||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,P||M()}catch(U){f?.(U)}})(),()=>M()})()}var A0e=x(()=>{c();yo();U1();ZB();Tv();_l();Zt();ym();L0();za();PV();Aw();$S();JB();qS()});function S0e(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 p=or([\"watchPendingTransactions\",e.uid,t,s]);return wa(p,{onTransactions:n,onError:r},h=>{let y,v=Hs(async()=>{try{if(!y)try{y=await Ae(e,jI,\"createPendingTransactionFilter\")({});return}catch(C){throw v(),C}let E=await Ae(e,F0,\"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,z0,\"uninstallFilter\")({filter:y}),v()}})})():(()=>{let p=!0,h=()=>p=!1;return(async()=>{try{let{unsubscribe:y}=await e.transport.subscribe({params:[\"newPendingTransactions\"],onData(v){if(!p)return;let E=v.result;n([E])},onError(v){r?.(v)}});h=y,p||h()}catch(y){r?.(y)}})(),()=>h()})()}var C0e=x(()=>{c();Zt();ym();L0();za();RV();$S();qS()});function T0e(e){let{scheme:t,statement:r,...n}=e.match(Vpt)?.groups??{},{chainId:o,expirationTime:s,issuedAt:u,notBefore:f,requestId:d,...p}=e.match(Kpt)?.groups??{},h=e.split(\"Resources:\")[1]?.split(`\\n- `).slice(1);return{...n,...p,...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 Vpt,Kpt,_0e=x(()=>{c();Vpt=/^(?:(?<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)?/,Kpt=/(?: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 k0e(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 B0e=x(()=>{c();ui();U0()});async function I0e(e,t){let{address:r,domain:n,message:o,nonce:s,scheme:u,signature:f,time:d=new Date,...p}=t,h=T0e(o);if(!h.address||!k0e({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,...p})}var P0e=x(()=>{c();VI();_0e();B0e();jw()});async function $w(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 PP=x(()=>{c();Ac();gm()});function qw(e){return{call:t=>hu(e,t),createAccessList:t=>FI(e,t),createBlockFilter:()=>Ame(e),createContractEventFilter:t=>aB(e,t),createEventFilter:t=>zI(e,t),createPendingTransactionFilter:()=>jI(e),estimateContractGas:t=>ape(e,t),estimateGas:t=>hw(e,t),getBalance:t=>Cme(e,t),getBlobBaseFee:()=>_me(e),getBlock:t=>xa(e,t),getBlockNumber:t=>dd(e,t),getBlockTransactionCount:t=>Bme(e,t),getBytecode:t=>Ji(e,t),getChainId:()=>Ko(e),getCode:t=>Ji(e,t),getContractEvents:t=>YB(e,t),getDelegation:t=>Pme(e,t),getEip712Domain:t=>Ome(e,t),getEnsAddress:t=>sme(e,t),getEnsAvatar:t=>bme(e,t),getEnsName:t=>xme(e,t),getEnsResolver:t=>wme(e,t),getEnsText:t=>LI(e,t),getFeeHistory:t=>Hme(e,t),estimateFeesPerGas:t=>UB(e,t),getFilterChanges:t=>F0(e,t),getFilterLogs:t=>Fme(e,t),getGasPrice:()=>cw(e),getLogs:t=>yw(e,t),getProof:t=>Vhe(e,t),estimateMaxPriorityFeePerGas:t=>Xde(e,t),fillTransaction:t=>pw(e,t),getStorageAt:t=>Whe(e,t),getTransaction:t=>Lw(e,t),getTransactionConfirmations:t=>Zhe(e,t),getTransactionCount:t=>M0(e,t),getTransactionReceipt:t=>Fw(e,t),multicall:t=>Yhe(e,t),prepareTransactionRequest:t=>sd(e,t),readContract:t=>Xr(e,t),sendRawTransaction:t=>Cw(e,t),sendRawTransactionSync:t=>$w(e,t),simulate:t=>sC(e,t),simulateBlocks:t=>sC(e,t),simulateCalls:t=>u0e(e,t),simulateContract:t=>Wpe(e,t),verifyHash:t=>bd(e,t),verifyMessage:t=>y0e(e,t),verifySiweMessage:t=>I0e(e,t),verifyTypedData:t=>g0e(e,t),uninstallFilter:t=>z0(e,t),waitForTransactionReceipt:t=>IP(e,t),watchBlocks:t=>v0e(e,t),watchBlockNumber:t=>BP(e,t),watchContractEvent:t=>eme(e,t),watchEvent:t=>E0e(e,t),watchPendingTransactions:t=>S0e(e,t)}}var AK=x(()=>{c();cme();gme();vme();Eme();BV();W1();IV();Sme();Xq();PV();RV();ipe();HB();QB();LG();WB();Tme();kme();R0();Aw();Ime();Tl();Q1();GG();Rme();Nme();Lme();$S();zme();NB();JB();Khe();Qhe();AP();Jhe();_S();mK();Xhe();Ic();hK();l0e();Qpe();qS();jw();b0e();x0e();EK();wK();w0e();tme();A0e();C0e();P0e();mw();EI();PP()});function fC(e){let{key:t=\"public\",name:r=\"Public Client\"}=e;return vm({...e,key:t,name:r,type:\"publicClient\"}).extend(qw)}var R0e=x(()=>{c();RI();AK()});async function M0e(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 O0e=x(()=>{c();tt()});function N0e(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 U0e=x(()=>{c();mI();Tw()});async function D0e(e){return e.account?.type===\"local\"?[e.account.address]:(await e.request({method:\"eth_accounts\"},{dedupe:!0})).map(r=>Jf(r))}var H0e=x(()=>{c();El()});async function L0e(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,p]of Object.entries(u)){f[Number(d)]={};for(let[h,y]of Object.entries(p))h===\"addSubAccount\"&&(h=\"unstable_addSubAccount\"),f[Number(d)][h]=y}return typeof n==\"number\"?f[n]:f}var F0e=x(()=>{c();Yr();tt()});async function z0e(e){return await e.request({method:\"wallet_getPermissions\"},{dedupe:!0})}var j0e=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 RP=x(()=>{c();Yr();Pc();U0();Zt();Tl();_S()});async function $0e(e){return(await e.request({method:\"eth_requestAccounts\"},{dedupe:!0,retryCount:0})).map(r=>hn(r))}var q0e=x(()=>{c();El()});async function G0e(e,t){return e.request({method:\"wallet_requestPermissions\",params:[t]},{retryCount:0})}var V0e=x(()=>{c()});async function K0e(e,t){let{chain:r=e.chain}=t,n=t.timeout??Math.max((r?.blockTime??0)*3,5e3),o=await Ae(e,CI,\"sendCalls\")(t);return await Ae(e,xm,\"waitForCallsStatus\")({...t,id:o.id,timeout:n})}var W0e=x(()=>{c();Zt();TI();kI()});async function MP(e,t){let{account:r=e.account,assertChainId:n=!0,chain:o=e.chain,accessList:s,authorizationList:u,blobs:f,data:d,dataSuffix:p=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,gas:h,gasPrice:y,maxFeePerBlobGas:v,maxFeePerGas:E,maxPriorityFeePerGas:C,nonce:k,pollingInterval:P,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:p?mr([d??\"0x\",p]):d,gas:h,gasPrice:y,maxFeePerBlobGas:v,maxFeePerGas:E,maxPriorityFeePerGas:C,nonce:k,to:G,type:U,value:O},\"sendTransaction\"),re=SK.get(e.uid),H=re?\"wallet_sendTransaction\":\"eth_sendTransaction\",A=await(async()=>{try{return await e.request({method:H,params:[ie]},{retryCount:0})}catch(R){if(re===!1)throw R;let D=R;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=>(SK.set(e.uid,!0),L)).catch(L=>{let V=L;throw V.name===\"MethodNotFoundRpcError\"||V.name===\"MethodNotSupportedRpcError\"?(SK.set(e.uid,!1),D):V});throw D}})(),T=await Ae(e,IP,\"waitForTransactionReceipt\")({checkReplacement:!1,hash:A,pollingInterval:P,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:p?mr([d??\"0x\",p]):d,gas:h,gasPrice:y,maxFeePerBlobGas:v,maxFeePerGas:E,maxPriorityFeePerGas:C,nonce:k,nonceManager:K.nonceManager,parameters:[...IS,\"sidecars\"],type:U,value:O,...N,to:G}),Y=o?.serializers?.transaction,W=await K.signTransaction(J,{serializer:Y});return await Ae(e,$w,\"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 SK,CK=x(()=>{c();Yr();Pc();ht();Ac();wS();wI();Jn();BS();_0();Us();Zt();d0();Cl();Tl();EK();mw();PP();SK=new ci(128)});async function Q0e(e,t){let{id:r}=t;await e.request({method:\"wallet_showCallsStatus\",params:[r]})}var Z0e=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 Y0e=x(()=>{c();Yr();Pc();RP()});async function X0e(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 eye=x(()=>{c();Yr();Pc();tt()});async function tye(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 rye=x(()=>{c();Yr();Pc();wI();tt();Us();Zt();Cl();Tl()});async function nye(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:JI({domain:n}),...t.types};if(ZI({domain:n,message:o,primaryType:s,types:f}),u.signTypedData)return u.signTypedData({domain:n,message:o,primaryType:s,types:f});let d=dhe({domain:n,message:o,primaryType:s,types:f});return e.request({method:\"eth_signTypedData_v4\",params:[u.address,d]},{retryCount:0})}var oye=x(()=>{c();Yr();Pc();LV()});async function aye(e,{id:t}){await e.request({method:\"wallet_switchEthereumChain\",params:[{chainId:le(t)}]},{retryCount:0})}var iye=x(()=>{c();tt()});async function sye(e,t){return await e.request({method:\"wallet_watchAsset\",params:t},{retryCount:0})}var cye=x(()=>{c()});async function uye(e,t){return md.internal(e,MP,\"sendTransactionSync\",t)}var lye=x(()=>{c();CK();AI()});function TK(e){return{addChain:t=>M0e(e,t),deployContract:t=>N0e(e,t),fillTransaction:t=>pw(e,t),getAddresses:()=>D0e(e),getCallsStatus:t=>_I(e,t),getCapabilities:t=>L0e(e,t),getChainId:()=>Ko(e),getPermissions:()=>z0e(e),prepareAuthorization:t=>cg(e,t),prepareTransactionRequest:t=>sd(e,t),requestAddresses:()=>$0e(e),requestPermissions:t=>G0e(e,t),sendCalls:t=>CI(e,t),sendCallsSync:t=>K0e(e,t),sendRawTransaction:t=>Cw(e,t),sendRawTransactionSync:t=>$w(e,t),sendTransaction:t=>pd(e,t),sendTransactionSync:t=>MP(e,t),showCallsStatus:t=>Q0e(e,t),signAuthorization:t=>J0e(e,t),signMessage:t=>X0e(e,t),signTransaction:t=>tye(e,t),signTypedData:t=>nye(e,t),switchChain:t=>aye(e,t),waitForCallsStatus:t=>xm(e,t),watchAsset:t=>sye(e,t),writeContract:t=>md(e,t),writeContractSync:t=>uye(e,t)}}var fye=x(()=>{c();WB();Tl();O0e();U0e();H0e();EV();F0e();j0e();RP();mw();q0e();V0e();TI();W0e();EI();PP();Tw();CK();Z0e();Y0e();eye();rye();oye();iye();kI();cye();AI();lye()});function OP({key:e,methods:t,name:r,request:n,retryCount:o=3,retryDelay:s=150,timeout:u,type:f},d){let p=PI();return{config:{key:e,methods:t,name:r,request:n,retryCount:o,retryDelay:s,timeout:u,type:f},request:the(n,{methods:t,retryCount:o,retryDelay:s,uid:p}),value:d}}var _K=x(()=>{c();rhe();SV()});function dC(e,t={}){let{key:r=\"custom\",methods:n,name:o=\"Custom Provider\",retryDelay:s}=t;return({retryCount:u})=>OP({key:r,methods:n,name:o,request:e.request.bind(e),retryCount:t.retryCount??u,retryDelay:s,type:\"custom\"})}var dye=x(()=>{c();_K()});var NP,pye=x(()=>{c();ht();NP=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:p,retryDelay:h,raw:y}=t;return({chain:v,retryCount:E,timeout:C})=>{let{batchSize:k=1e3,wait:P=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 NP;let N=ahe(O,{fetchFn:n,fetchOptions:o,onRequest:d,onResponse:p,timeout:U});return OP({key:s,methods:u,name:f,async request({method:j,params:K}){let G={method:j,params:K},{schedule:J}=bI({id:O,wait:P,shouldSplitBatch(re){return re.length>k},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 mye=x(()=>{c();x1();pye();lV();ihe();_K()});function UP(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 hye=x(()=>{c();S0();tt()});var Bo=x(()=>{c();RI();R0e();AK();fye();dye();mye();fd();ht();U1();Iv();fV();cu();Fa();$me();El();ui();U0();_();au();Gp();ji();Yf();Vp();Zn();bo();tt();Is();GS();DV();VI();YI();hye();fB()});var yye,bye=x(()=>{c();_();yye=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 gye,xye=x(()=>{c();_();gye=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 vye,wye=x(()=>{c();_();vye=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 Eye,Aye=x(()=>{c();_();Eye=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 Sye,Cye=x(()=>{c();_();Sye=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 Tye,_ye=x(()=>{c();_();Tye=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,kK,pC=x(()=>{c();nw();Gw=50000n,kK=Yde*32n});var BK,kye=x(()=>{c();Zn();bo();tt();sw();_l();id();gm();Us();pC();BK={block:iw({format(e){let t=e.transactions?.map(r=>{if(typeof r==\"string\")return r;let n=BK.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 DP,Bye=x(()=>{c();ht();DP=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 HP(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 IK=x(()=>{c()});function LP(e){let{chainId:t,to:r,from:n,paymaster:o,paymasterInput:s}=e;if(!HP(e))throw new DP;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 PK=x(()=>{c();Ec();ht();q1();ui();Bye();IK()});function Wpt(e,t){return HP(e)?Qpt(e):J1(e,t)}function Qpt(e){let{chainId:t,gas:r,nonce:n,to:o,from:s,value:u,maxFeePerGas:f,maxPriorityFeePerGas:d,customSignature:p,factoryDeps:h,paymaster:y,paymasterInput:v,gasPerPubdata:E,data:C}=e;LP(e);let k=[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??[],p??\"0x\",y&&v?[y,v]:[]];return Cn([\"0x71\",Qi(k)])}var Iye,Pye=x(()=>{c();Jn();tt();Kv();Pw();pC();PK();IK();Iye={transaction:Wpt}});var FP,zP,jP,Rye=x(()=>{c();ht();FP=class extends ae{constructor({givenLength:t,maxBytecodeSize:r}){super(`Bytecode cannot be longer than ${r} bytes. Given length: ${t}`,{name:\"BytecodeLengthExceedsMaxSizeError\"})}},zP=class extends ae{constructor({givenLengthInWords:t}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${t}`,{name:\"BytecodeLengthInWordsMustBeOddError\"})}},jP=class extends ae{constructor({givenLength:t}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${t}`,{name:\"BytecodeLengthMustBeDivisibleBy32Error\"})}}});function Mye(e){let t=Ha(e);if(t.length%32!==0)throw new jP({givenLength:t.length});if(t.length>kK)throw new FP({givenLength:t.length,maxBytecodeSize:kK});let r=zB(t),n=Ha(r),o=t.length/32;if(o%2===0)throw new zP({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 Oye=x(()=>{c();Gp();bo();FG();pC();Rye()});function Zpt(e){let{gas:t,nonce:r,to:n,from:o,value:s,maxFeePerGas:u,maxPriorityFeePerGas:f,factoryDeps:d,paymaster:p,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:p?BigInt(p):0n,nonce:r?BigInt(r):0n,value:s??0n,data:v??\"0x\",factoryDeps:d?.map(E=>ot(Mye(E)))??[],paymasterInput:h||\"0x\"}}var Nye,Uye=x(()=>{c();tt();pC();PK();Oye();Nye=e=>{LP(e);let t=Zpt(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();kye();Pye();Uye();bn={blockTime:1e3,formatters:BK,serializers:Iye,custom:{getEip712Domain:Nye}}});var Dye,Hye=x(()=>{c();_();Xi();Dye=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 Lye,Fye=x(()=>{c();_();Xi();Lye=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 zye,jye=x(()=>{c();_();zye=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 $ye,qye=x(()=>{c();_();$ye=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 Gye,Vye=x(()=>{c();_();Gye=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 Kye,Wye=x(()=>{c();_();Kye=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 Qye,Zye=x(()=>{c();_();Qye=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,Yye=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 Xye,ebe=x(()=>{c();_();Xye=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 tbe,rbe=x(()=>{c();_();tbe=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 nbe,obe=x(()=>{c();_();nbe=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 abe,ibe=x(()=>{c();_();abe=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 sbe,cbe=x(()=>{c();_();sbe=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 $P,RK=x(()=>{c();$P={gasPriceOracle:{address:\"0x420000000000000000000000000000000000000F\"},l1Block:{address:\"0x4200000000000000000000000000000000000015\"},l2CrossDomainMessenger:{address:\"0x4200000000000000000000000000000000000007\"},l2Erc721Bridge:{address:\"0x4200000000000000000000000000000000000014\"},l2StandardBridge:{address:\"0x4200000000000000000000000000000000000010\"},l2ToL1MessagePasser:{address:\"0x4200000000000000000000000000000000000016\"}}});var Vw,qP=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 MK(e,t){return Ypt(e)?Jpt(e):J1(e,t)}function Jpt(e){Xpt(e);let{sourceHash:t,data:r,from:n,gas:o,isSystemTx:s,mint:u,to:f,value:d}=e,p=[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(p)])}function Ypt(e){return e.type===\"deposit\"||typeof e.sourceHash<\"u\"}function Xpt(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 ube,OK=x(()=>{c();Ec();ui();Jn();tt();Kv();Pw();ube={transaction:MK}});var de,it=x(()=>{c();RK();qP();OK();de={blockTime:2e3,contracts:$P,formatters:Vw,serializers:ube}});var GP,lbe,fbe=x(()=>{c();it();_();GP=1,lbe=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:{[GP]:{address:\"0xB09DC08428C8b4EFB4ff9C0827386CDF34277996\"}},portal:{[GP]:{address:\"0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68\",blockCreated:19070571}},l1StandardBridge:{[GP]:{address:\"0xd5e3eDf5b68135D559D572E26bF863FBC1950033\",blockCreated:19070571}}},sourceId:GP})});var VP,dbe,pbe=x(()=>{c();it();_();VP=11155111,dbe=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:{[VP]:{address:\"0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB\"}},portal:{[VP]:{address:\"0xfa1d9E26A6aCD7b22115D27572c1221B9803c960\",blockCreated:4972908}},l1StandardBridge:{[VP]:{address:\"0xF6Bc0146d3c74D48306e79Ae134A260E418C9335\",blockCreated:4972908}}},sourceId:VP,testnet:!0})});var mbe,hbe=x(()=>{c();_();mbe=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 emt,ybe,bbe=x(()=>{c();_();emt=42161,ybe=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:emt})});var gbe,xbe=x(()=>{c();_();gbe=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 vbe,wbe=x(()=>{c();_();vbe=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 Ebe,Abe=x(()=>{c();_();Ebe=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 Sbe,Cbe=x(()=>{c();_();Sbe=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 Tbe,_be=x(()=>{c();_();Tbe=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 kbe,Bbe=x(()=>{c();_();kbe=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 Ibe,Pbe=x(()=>{c();_();Ibe=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 Rbe,Mbe=x(()=>{c();_();Rbe=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 Obe,Nbe=x(()=>{c();_();Obe=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 Ube,Dbe=x(()=>{c();_();Ube=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 Hbe,Lbe=x(()=>{c();_();Hbe=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 Fbe,zbe=x(()=>{c();_();Fbe=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 jbe,$be=x(()=>{c();_();jbe=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 qbe,Gbe=x(()=>{c();_();qbe=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 Vbe,Kbe=x(()=>{c();_();Vbe=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 Wbe,Qbe=x(()=>{c();_();Wbe=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 Zbe,Jbe=x(()=>{c();_();Zbe=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 Ybe,Xbe=x(()=>{c();_();Ybe=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 e1e,t1e=x(()=>{c();_();e1e=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 r1e,n1e=x(()=>{c();_();r1e=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 o1e,a1e=x(()=>{c();_();o1e=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 i1e,s1e=x(()=>{c();_();i1e=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 c1e,u1e=x(()=>{c();_();c1e=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 l1e,f1e=x(()=>{c();_();l1e=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 d1e,p1e=x(()=>{c();_();d1e=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 m1e,h1e=x(()=>{c();_();m1e=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 tmt,y1e,b1e=x(()=>{c();_();tmt=8453,y1e=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:tmt})});var rmt,g1e,x1e=x(()=>{c();_();rmt=168587773,g1e=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:rmt})});var v1e,w1e=x(()=>{c();_();v1e=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 mC,hC,E1e,A1e=x(()=>{c();it();_();mC=1,hC=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:{[mC]:{address:\"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e\"}},l2OutputOracle:{[mC]:{address:\"0x56315b90c40730925ec5485cf004d835058518A0\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:5022},portal:{[mC]:{address:\"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e\",blockCreated:17482143}},l1StandardBridge:{[mC]:{address:\"0x3154Cf16ccdb4C6d922629664174b904d80F2C35\",blockCreated:17482143}}},sourceId:mC}),E1e=g({...hC,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://mainnet-preconf.base.org\"]}}})});var S1e,C1e=x(()=>{c();_();S1e=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 KP,T1e,_1e=x(()=>{c();it();_();KP=5,T1e=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:{[KP]:{address:\"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1376988},portal:{[KP]:{address:\"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA\"}},l1StandardBridge:{[KP]:{address:\"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a\"}}},testnet:!0,sourceId:KP})});var yC,NK,k1e,B1e=x(()=>{c();it();_();yC=11155111,NK=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:{[yC]:{address:\"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1\"}},l2OutputOracle:{[yC]:{address:\"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254\"}},portal:{[yC]:{address:\"0x49f53e41452c74589e85ca1677426ba426459e85\",blockCreated:4446677}},l1StandardBridge:{[yC]:{address:\"0xfd0Bf71F60660E2f608ed56e1659C450eB113120\",blockCreated:4446677}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1059647}},testnet:!0,sourceId:yC}),k1e=g({...NK,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://sepolia-preconf.base.org\"]}}})});var I1e,P1e=x(()=>{c();_();Xi();I1e=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 R1e,M1e=x(()=>{c();_();R1e=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 O1e,N1e=x(()=>{c();_();O1e=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 U1e,D1e=x(()=>{c();_();U1e=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 H1e,L1e=x(()=>{c();_();H1e=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 F1e,z1e=x(()=>{c();_();F1e=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 j1e,$1e=x(()=>{c();_();j1e=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 q1e,G1e=x(()=>{c();_();q1e=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 V1e,K1e=x(()=>{c();_();V1e=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 W1e,Q1e=x(()=>{c();_();W1e=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 Z1e,J1e=x(()=>{c();_();Z1e=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 Y1e,X1e=x(()=>{c();_();Y1e=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 ege,tge=x(()=>{c();_();ege=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 rge,nge=x(()=>{c();_();rge=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 oge,age=x(()=>{c();_();oge=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 ige,sge=x(()=>{c();_();ige=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 cge,uge=x(()=>{c();_();cge=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 lge,fge=x(()=>{c();_();lge=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 dge,pge=x(()=>{c();_();dge=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 mge,hge=x(()=>{c();_();mge=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 WP,yge,bge=x(()=>{c();it();_();WP=1,yge=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:{[WP]:{address:\"0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76\",blockCreated:19300358}},portal:{[WP]:{address:\"0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb\",blockCreated:19300357}},l1StandardBridge:{[WP]:{address:\"0x697402166Fbf2F22E970df8a6486Ef171dbfc524\",blockCreated:19300360}}},sourceId:WP})});var nmt,gge,xge=x(()=>{c();_();nmt=11155111,gge=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:nmt})});var UK,vge,wge=x(()=>{c();it();_();UK=1,vge=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:{[UK]:{address:\"0xdDa53E23f8a32640b04D7256e651C1db98dB11C1\",blockCreated:4462615}},portal:{[UK]:{address:\"0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E\",blockCreated:4462615}}},sourceId:UK})});var Ege,Age=x(()=>{c();_();Ege=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 Sge,Cge=x(()=>{c();_();Sge=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 DK,Tge,_ge=x(()=>{c();it();_();DK=11155111,Tge=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:{[DK]:{address:\"0x14D0069452b4AE2b250B395b8adAb771E4267d2f\",blockCreated:4462615}},portal:{[DK]:{address:\"0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4\",blockCreated:4462615}}},testnet:!0,sourceId:DK})});var kge,Bge=x(()=>{c();_();kge=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 Ige,Pge=x(()=>{c();_();Ige=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 Rge,Mge=x(()=>{c();_();Rge=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 Oge,Nge=x(()=>{c();_();Oge=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 Uge,Dge=x(()=>{c();_();Uge=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 Hge,Lge=x(()=>{c();_();Hge=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 Fge,zge=x(()=>{c();_();Fge=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 jge,$ge=x(()=>{c();_();jge=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 qge,Gge=x(()=>{c();_();qge=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 Vge,Kge=x(()=>{c();_();Vge=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 Wge,Qge=x(()=>{c();_();Wge=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 Zge,Jge=x(()=>{c();_();Zge=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 Yge,Xge=x(()=>{c();_();Yge=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 exe,txe=x(()=>{c();_();exe=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 rxe,nxe=x(()=>{c();_();rxe=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 oxe,axe=x(()=>{c();_();oxe=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 ixe,sxe=x(()=>{c();_();ixe=g({id:13370,name:\"Cannon\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"]}}})});var cxe,uxe=x(()=>{c();_();cxe=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 omt(e,t){let r=await e.request({method:\"eth_gasPrice\",params:[t]});return BigInt(r)}async function amt(e,t){let r=await e.request({method:\"eth_maxPriorityFeePerGas\",params:[t]});return BigInt(r)}var lxe,fxe=x(()=>{c();lxe={estimateFeesPerGas:async e=>{if(!e.request?.feeCurrency)return null;let[t,r]=await Promise.all([omt(e.client,e.request.feeCurrency),amt(e.client,e.request.feeCurrency)]);return{maxFeePerGas:e.multiply(t-r)+r,maxPriorityFeePerGas:r}}}});function HK(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!HK(e)}function imt(e){return typeof e.maxFeePerGas<\"u\"&&typeof e.maxPriorityFeePerGas<\"u\"}function QP(e){return e.type===\"cip64\"?!0:imt(e)&&Kw(e.feeCurrency)}var LK=x(()=>{c();Vp()});var dxe,pxe=x(()=>{c();Zn();sw();id();Us();LK();dxe={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),QP(e)&&(t.type=\"0x7b\"),t}})}});function smt(e,t){return QP(e)?cmt(e,t):MK(e,t)}function cmt(e,t){lmt(e);let{chainId:r,gas:n,nonce:o,to:s,value:u,maxFeePerGas:f,maxPriorityFeePerGas:d,accessList:p,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(p),h,...$0(e,t)];return Cn([\"0x7b\",Qi(v)])}function lmt(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>umt)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(HK(u))throw new ae(\"`feeCurrency` must be provided for CIP-64 transactions.\")}var mxe,umt,hxe=x(()=>{c();nw();Ec();ht();q1();fm();OK();ui();Jn();tt();Kv();OV();Pw();LK();mxe={transaction:smt};umt=ad});var Z0,ZP=x(()=>{c();RK();fxe();pxe();hxe();Z0={blockTime:1e3,contracts:$P,formatters:dxe,serializers:mxe,fees:lxe}});var yxe,bxe=x(()=>{c();ZP();_();yxe=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 JP,gxe,xxe=x(()=>{c();ZP();_();JP=17e3,gxe=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:{[JP]:{address:\"0x82527353927d8D069b3B452904c942dA149BA381\",blockCreated:2411324}},disputeGameFactory:{[JP]:{address:\"0xE28AAdcd9883746c0e5068F58f9ea06027b214cb\",blockCreated:2411324}},l2OutputOracle:{[JP]:{address:\"0x4a2635e9e4f6e45817b1D402ac4904c1d1752438\",blockCreated:2411324}},l1StandardBridge:{[JP]:{address:\"0xD1B0E0581973c9eB7f886967A606b9441A897037\",blockCreated:2411324}}},testnet:!0})});var FK,vxe,wxe=x(()=>{c();ZP();_();FK=11155111,vxe=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:{[FK]:{address:\"0x44ae3d41a335a7d05eb533029917aad35662dcc2\",blockCreated:8825790}},disputeGameFactory:{[FK]:{address:\"0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa\",blockCreated:8825790}},l1StandardBridge:{[FK]:{address:\"0xec18a3c30131a0db4246e785355fbc16e2eaf408\",blockCreated:8825790}}},testnet:!0})});var Exe,Axe=x(()=>{c();_();Exe=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 Sxe,Cxe=x(()=>{c();_();Sxe=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 Txe,_xe=x(()=>{c();_();Txe=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 kxe,Bxe=x(()=>{c();_();kxe=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 Ixe,Pxe=x(()=>{c();_();Ixe=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 Rxe,Mxe=x(()=>{c();_();Rxe=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 YP,Oxe,Nxe=x(()=>{c();it();_();YP=1,Oxe=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:{[YP]:{address:\"0x6A3855dc26e2beA8Ac73f82Cda79f3808B6C6F6C\"}},portal:{[YP]:{address:\"0x52759C07A759c81BAab28AE1BE5A19e6450959bD\"}},l1StandardBridge:{[YP]:{address:\"0xa6b1A05a592719B0C8a70c69eac114C48410aDE4\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}},sourceId:YP})});var XP,Uxe,Dxe=x(()=>{c();it();_();XP=11155111,Uxe=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:{[XP]:{address:\"0x390e24E8324E56f13A8d48eB938b6f9De24CD205\"}},portal:{[XP]:{address:\"0x037F161D12c829A9ca4742eEd9371830CA54fcB2\"}},l1StandardBridge:{[XP]:{address:\"0xCf4df2bDB14C8FDB25FdacCEC10Ce5C4bAEDB3De\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"}},sourceId:XP,testnet:!0})});var Hxe,Lxe=x(()=>{c();_();Hxe=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 Fxe,zxe=x(()=>{c();_();Fxe=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 jxe,$xe=x(()=>{c();_();jxe=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 qxe,Gxe=x(()=>{c();_();qxe=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 Vxe,Kxe=x(()=>{c();_();Vxe=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 Wxe,Qxe=x(()=>{c();_();Wxe=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 Zxe,Jxe=x(()=>{c();_();Zxe=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 fmt,Yxe,Xxe=x(()=>{c();_();fmt=1,Yxe=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:fmt})});var dmt,e2e,t2e=x(()=>{c();_();dmt=11155111,e2e=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:dmt})});var r2e,n2e=x(()=>{c();_();r2e=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 o2e,a2e=x(()=>{c();_();o2e=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 i2e,s2e=x(()=>{c();_();i2e=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 c2e,u2e=x(()=>{c();_();c2e=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 l2e,f2e=x(()=>{c();_();l2e=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 d2e,p2e=x(()=>{c();_();d2e=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 m2e,h2e=x(()=>{c();_();m2e=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 y2e,b2e=x(()=>{c();_();y2e=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 g2e,x2e=x(()=>{c();_();g2e=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 v2e,w2e=x(()=>{c();_();v2e=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 E2e,A2e=x(()=>{c();_();E2e=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 S2e,C2e=x(()=>{c();_();S2e=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 T2e,_2e=x(()=>{c();_();T2e=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 k2e,B2e=x(()=>{c();_();k2e=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 I2e,P2e=x(()=>{c();_();I2e=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 R2e,M2e=x(()=>{c();_();R2e=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 O2e,N2e=x(()=>{c();_();O2e=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 U2e,D2e=x(()=>{c();_();U2e=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 H2e,L2e=x(()=>{c();_();H2e=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 F2e,z2e=x(()=>{c();_();F2e=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 j2e,$2e=x(()=>{c();it();_();j2e=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 q2e,G2e=x(()=>{c();it();_();q2e=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 V2e,K2e=x(()=>{c();_();V2e=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 W2e,Q2e=x(()=>{c();_();W2e=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 Z2e,J2e=x(()=>{c();_();Z2e=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 Y2e,X2e=x(()=>{c();_();Y2e=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 eve,tve=x(()=>{c();_();eve=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 rve,nve=x(()=>{c();_();rve=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 ove,ave=x(()=>{c();_();ove=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 ive,sve=x(()=>{c();_();ive=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 cve,uve=x(()=>{c();_();cve=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 lve,fve=x(()=>{c();_();lve=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 dve,pve=x(()=>{c();_();dve=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 mve,hve=x(()=>{c();_();mve=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 yve,bve=x(()=>{c();_();yve=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 zK=x(()=>{c();_()});var gve,xve=x(()=>{c();zK();gve=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 vve,wve=x(()=>{c();_();vve=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 Eve,Ave=x(()=>{c();zK();Eve=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 Sve,Cve=x(()=>{c();_();Sve=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 Tve,_ve=x(()=>{c();_();Tve=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 kve,Bve=x(()=>{c();_();kve=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 Ive,Pve=x(()=>{c();_();Ive=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 Rve,Mve=x(()=>{c();_();Rve=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 Ove,Nve=x(()=>{c();_();Ove=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 Uve,Dve=x(()=>{c();_();Uve=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 Hve,Lve=x(()=>{c();_();Hve=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 Fve,zve=x(()=>{c();_();Fve=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 jve,$ve=x(()=>{c();_();jve=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 qve,Gve=x(()=>{c();_();qve=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 Vve,Kve=x(()=>{c();_();Vve=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 Wve,Qve=x(()=>{c();_();Wve=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 Zve,Jve=x(()=>{c();it();_();Zve=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 Yve,Xve=x(()=>{c();_();Yve=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 ewe,twe=x(()=>{c();_();ewe=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 rwe,nwe=x(()=>{c();_();rwe=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 owe,awe=x(()=>{c();_();owe=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 iwe,swe=x(()=>{c();_();iwe=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 cwe,uwe=x(()=>{c();_();cwe=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 lwe,fwe=x(()=>{c();_();lwe=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 dwe,pwe=x(()=>{c();_();dwe=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 mwe,hwe=x(()=>{c();_();mwe=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 ywe,bwe=x(()=>{c();_();ywe=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 gwe,xwe=x(()=>{c();_();gwe=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 vwe,wwe=x(()=>{c();_();vwe=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 Ewe,Awe=x(()=>{c();_();Ewe=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 Swe,Cwe=x(()=>{c();_();Swe=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 Twe,_we=x(()=>{c();_();Twe=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 kwe,Bwe=x(()=>{c();_();kwe=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 Iwe,Pwe=x(()=>{c();_();Iwe=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 Rwe,Mwe=x(()=>{c();_();Rwe=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 Owe,Nwe=x(()=>{c();_();Owe=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 Uwe,Dwe=x(()=>{c();_();Uwe=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 Hwe,Lwe=x(()=>{c();_();Hwe=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 Fwe,zwe=x(()=>{c();_();Fwe=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 jwe,$we=x(()=>{c();_();jwe=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 qwe,Gwe=x(()=>{c();_();qwe=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 Vwe,Kwe=x(()=>{c();_();Vwe=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 Wwe,Qwe=x(()=>{c();_();Wwe=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 Zwe,Jwe=x(()=>{c();_();Zwe=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 Ywe,Xwe=x(()=>{c();_();Ywe=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 e6e,t6e=x(()=>{c();_();e6e=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 r6e,n6e=x(()=>{c();_();r6e=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 o6e,a6e=x(()=>{c();_();o6e=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 i6e,s6e=x(()=>{c();_();i6e=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 c6e,u6e=x(()=>{c();_();c6e=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 l6e,f6e=x(()=>{c();_();l6e=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 d6e,p6e=x(()=>{c();_();d6e=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 m6e,h6e=x(()=>{c();_();m6e=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 y6e,b6e=x(()=>{c();_();y6e=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 g6e,x6e=x(()=>{c();_();g6e=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,v6e,w6e=x(()=>{c();it();_();Ww=1,v6e=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 E6e,A6e=x(()=>{c();_();E6e=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,S6e,C6e=x(()=>{c();it();_();Qw=11155111,S6e=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 T6e,_6e=x(()=>{c();_();T6e=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 k6e,B6e=x(()=>{c();_();k6e=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 eR,I6e,P6e=x(()=>{c();it();_();eR=1,I6e=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:{[eR]:{address:\"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[eR]:{address:\"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D\",blockCreated:19135323}},l1StandardBridge:{[eR]:{address:\"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2\",blockCreated:19135323}}},sourceId:eR})});var tR,R6e,M6e=x(()=>{c();it();_();tR=17e3,R6e=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:{[tR]:{address:\"0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[tR]:{address:\"0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d\",blockCreated:318416}},l1StandardBridge:{[tR]:{address:\"0x0BaafC217162f64930909aD9f2B27125121d6332\",blockCreated:318416}}},sourceId:tR,testnet:!0})});var pmt,O6e,N6e=x(()=>{c();it();_();pmt=1,O6e=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:pmt})});var mmt,U6e,D6e=x(()=>{c();it();_();mmt=11155111,U6e=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:mmt})});var H6e,L6e=x(()=>{c();_();H6e=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 F6e,z6e=x(()=>{c();_();F6e=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 j6e,$6e=x(()=>{c();_();j6e=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 q6e,G6e=x(()=>{c();_();q6e=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 rR,V6e,K6e=x(()=>{c();it();_();rR=17e3,V6e=g({...de,name:\"Garnet Testnet\",testnet:!0,id:17069,sourceId:rR,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:{[rR]:{address:\"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909\",blockCreated:1274684}},l2OutputOracle:{[rR]:{address:\"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B\",blockCreated:1274684}},l1StandardBridge:{[rR]:{address:\"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE\",blockCreated:1274684}}}})});var W6e,Q6e=x(()=>{c();_();W6e=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 Z6e,J6e=x(()=>{c();_();Z6e=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 Y6e,X6e=x(()=>{c();_();Y6e=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 e5e,t5e=x(()=>{c();_();e5e=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 nR,jK,r5e,n5e=x(()=>{c();it();_();nR=11155111,jK=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:{[nR]:{address:\"0x37347caB2afaa49B776372279143D71ad1f354F6\"}},portal:{[nR]:{address:\"0x956962C34687A954e611A83619ABaA37Ce6bC78A\"}},l1StandardBridge:{[nR]:{address:\"0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7\"}}},testnet:!0,sourceId:nR}),r5e=g({...jK,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://sepolia-rpc-flashblocks.giwa.io\"]}}})});var o5e,a5e=x(()=>{c();_();o5e=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 i5e,s5e=x(()=>{c();_();i5e=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 c5e,u5e=x(()=>{c();_();c5e=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 l5e,f5e=x(()=>{c();_();l5e=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 d5e,p5e=x(()=>{c();_();d5e=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 m5e,h5e=x(()=>{c();_();m5e=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 y5e,b5e=x(()=>{c();_();y5e=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 g5e,x5e=x(()=>{c();_();g5e=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 v5e,w5e=x(()=>{c();_();v5e=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 E5e,A5e=x(()=>{c();_();E5e=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 S5e,C5e=x(()=>{c();_();S5e=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 T5e,_5e=x(()=>{c();_();T5e=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 k5e,B5e=x(()=>{c();_();k5e=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 I5e,P5e=x(()=>{c();_();I5e=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 R5e,M5e=x(()=>{c();_();R5e=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 O5e,N5e=x(()=>{c();_();O5e=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 U5e,D5e=x(()=>{c();_();U5e=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 H5e,L5e=x(()=>{c();_();H5e=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 F5e,z5e=x(()=>{c();_();F5e=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 j5e,$5e=x(()=>{c();_();j5e=g({id:31337,name:\"Hardhat\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"]}}})});var q5e,G5e=x(()=>{c();_();q5e=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 V5e,K5e=x(()=>{c();_();V5e=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 W5e,Q5e=x(()=>{c();_();W5e=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 Z5e,J5e=x(()=>{c();_();Z5e=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 Y5e,X5e=x(()=>{c();_();Y5e=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 eEe,tEe=x(()=>{c();_();eEe=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 rEe,nEe=x(()=>{c();_();rEe=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 oEe,aEe=x(()=>{c();_();oEe=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 iEe,sEe=x(()=>{c();_();iEe=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 cEe,uEe=x(()=>{c();_();cEe=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 lEe,fEe=x(()=>{c();_();lEe=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 dEe,pEe=x(()=>{c();_();dEe=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 mEe,hEe=x(()=>{c();_();mEe=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 yEe,bEe=x(()=>{c();_();yEe=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 gEe,xEe=x(()=>{c();_();gEe=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 vEe,wEe=x(()=>{c();_();vEe=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 EEe,AEe=x(()=>{c();_();EEe=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 SEe,CEe=x(()=>{c();_();SEe=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 hmt,TEe,_Ee=x(()=>{c();_();hmt=42161,TEe=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:hmt})});var ymt,kEe,BEe=x(()=>{c();_();ymt=421614,kEe=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:ymt,testnet:!0})});var IEe,PEe=x(()=>{c();_();IEe=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 REe,MEe=x(()=>{c();_();REe=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 OEe,NEe=x(()=>{c();_();OEe=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 UEe,DEe=x(()=>{c();_();UEe=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 HEe,LEe=x(()=>{c();_();HEe=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 FEe,zEe=x(()=>{c();_();FEe=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 $K,jEe=x(()=>{c();_();$K=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 $Ee,qEe=x(()=>{c();_();$Ee=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 GEe,VEe=x(()=>{c();_();GEe=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 KEe,WEe=x(()=>{c();_();KEe=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 QEe,ZEe=x(()=>{c();_();QEe=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,YEe=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 XEe,e3e=x(()=>{c();_();XEe=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 t3e,r3e=x(()=>{c();_();t3e=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 n3e,o3e=x(()=>{c();_();n3e=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 a3e,i3e=x(()=>{c();_();a3e=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 s3e,c3e=x(()=>{c();_();s3e=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 u3e,l3e=x(()=>{c();_();u3e=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 oR,f3e,d3e=x(()=>{c();it();_();oR=1,f3e=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:{[oR]:{address:\"0x10d7b35078d3baabb96dd45a9143b94be65b12cd\"}},portal:{[oR]:{address:\"0x5d66c1782664115999c47c9fa5cd031f495d3e4f\"}},l1StandardBridge:{[oR]:{address:\"0x88ff1e5b602916615391f55854588efcbb7663f0\"}}},testnet:!1,sourceId:oR})});var aR,p3e,m3e=x(()=>{c();it();_();aR=11155111,p3e=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:{[aR]:{address:\"0x860e626c700af381133d9f4af31412a2d1db3d5d\"}},portal:{[aR]:{address:\"0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7\"}},l1StandardBridge:{[aR]:{address:\"0x33f60714bbd74d62b66d79213c348614de51901c\"}}},testnet:!0,sourceId:aR})});var h3e,y3e=x(()=>{c();_();h3e=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 b3e,g3e=x(()=>{c();_();b3e=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 x3e,v3e=x(()=>{c();_();x3e=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 w3e,E3e=x(()=>{c();_();w3e=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 A3e,S3e=x(()=>{c();_();A3e=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 C3e,T3e=x(()=>{c();_();C3e=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 _3e,k3e=x(()=>{c();_();_3e=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 B3e,I3e=x(()=>{c();_();B3e=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 P3e,R3e=x(()=>{c();_();P3e=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 M3e,O3e=x(()=>{c();_();M3e=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 N3e,U3e=x(()=>{c();_();N3e=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 D3e,H3e=x(()=>{c();_();D3e=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 L3e,F3e=x(()=>{c();_();L3e=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 z3e,j3e=x(()=>{c();_();z3e=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 $3e,q3e=x(()=>{c();_();$3e=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 G3e,V3e=x(()=>{c();_();G3e=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 K3e,W3e=x(()=>{c();_();K3e=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 Q3e,Z3e=x(()=>{c();_();Q3e=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,Y3e=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 X3e,e8e=x(()=>{c();_();X3e=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 t8e,r8e=x(()=>{c();_();t8e=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 n8e,o8e=x(()=>{c();_();n8e=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 a8e,i8e=x(()=>{c();_();a8e=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 s8e,c8e=x(()=>{c();_();s8e=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 u8e,l8e=x(()=>{c();_();u8e=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 f8e,d8e=x(()=>{c();_();f8e=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 p8e,m8e=x(()=>{c();_();p8e=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 h8e,y8e=x(()=>{c();_();h8e=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 b8e,g8e=x(()=>{c();_();b8e=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 x8e,v8e=x(()=>{c();_();x8e=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 w8e,E8e=x(()=>{c();_();w8e=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 A8e,S8e=x(()=>{c();_();A8e=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 C8e,T8e=x(()=>{c();_();C8e=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 _8e,k8e=x(()=>{c();_();_8e=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 B8e,I8e=x(()=>{c();_();B8e=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 P8e,R8e=x(()=>{c();_();P8e=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 M8e,O8e=x(()=>{c();_();M8e=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 N8e,U8e=x(()=>{c();_();N8e=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 D8e,H8e=x(()=>{c();_();D8e=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 L8e,F8e=x(()=>{c();_();L8e=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 z8e,j8e=x(()=>{c();_();z8e=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 $8e,q8e=x(()=>{c();_();$8e=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 G8e,V8e=x(()=>{c();_();G8e=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 K8e,W8e=x(()=>{c();_();K8e=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 Q8e,Z8e=x(()=>{c();_();Q8e=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,Y8e=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 X8e,eAe=x(()=>{c();_();X8e=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 tAe,rAe=x(()=>{c();_();tAe=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 nAe,oAe=x(()=>{c();_();nAe=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 aAe,iAe=x(()=>{c();_();aAe=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 sAe,cAe=x(()=>{c();_();sAe=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 uAe,lAe=x(()=>{c();_();uAe=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 fAe,dAe=x(()=>{c();_();fAe=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 pAe(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:p,maxFeePerGas:h,maxPriorityFeePerGas:y,nonce:v,to:E,value:C,...k}=t,M=(typeof s==\"bigint\"?le(s):void 0)||u;Vo(t);let U=e.chain?.formatters?.transactionRequest?.format,N=(U||ko)({...Ns(k,{format:U}),account:n,accessList:o,data:f,gas:d,gasPrice:p,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 mAe=x(()=>{c();Yr();Pc();tt();hI();_0();Us();Cl()});async function hAe({client:e,multiply:t,request:r,type:n}){try{let o=await pAe(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,iR=x(()=>{c();mAe();Zw={fees:{estimateFeesPerGas:hAe,async maxPriorityFeePerGas({block:e,client:t,request:r}){let n=await hAe({block:e,client:t,multiply:o=>o,request:r,type:\"eip1559\"});return n?.maxPriorityFeePerGas?n.maxPriorityFeePerGas:null}}}});var yAe,bAe=x(()=>{c();iR();_();yAe=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 gAe,xAe=x(()=>{c();_();gAe=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 vAe,wAe=x(()=>{c();iR();_();vAe=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 EAe,AAe=x(()=>{c();_();EAe=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 bC,SAe,CAe=x(()=>{c();it();_();bC=1,SAe=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:{[bC]:{address:\"0x0CF7D3706a27CCE2017aEB11E8a9c8b5388c282C\"}},multicall3:{address:\"0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0\"},l2OutputOracle:{[bC]:{address:\"0x113cB99283AF242Da0A0C54347667edF531Aa7d6\"}},portal:{[bC]:{address:\"0x26dB93F8b8b4f7016240af62F7730979d353f9A7\"}},l1StandardBridge:{[bC]:{address:\"0x2658723Bf70c7667De6B25F99fcce13A16D25d08\"}}},sourceId:bC})});var sR,TAe,_Ae=x(()=>{c();it();_();sR=11155111,TAe=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:{[sR]:{address:\"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[sR]:{address:\"0xe3d90F21490686Ec7eF37BE788E02dfC12787264\"}},l1StandardBridge:{[sR]:{address:\"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5\"}}},testnet:!0,sourceId:sR})});var kAe,BAe=x(()=>{c();_();kAe=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 IAe,PAe=x(()=>{c();_();IAe=g({id:1337,name:\"Localhost\",nativeCurrency:{decimals:18,name:\"Ether\",symbol:\"ETH\"},rpcUrls:{default:{http:[\"http://127.0.0.1:8545\"]}}})});var RAe,MAe=x(()=>{c();_();RAe=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 OAe,NAe=x(()=>{c();_();OAe=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 UAe,DAe=x(()=>{c();_();UAe=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 HAe,LAe=x(()=>{c();_();HAe=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 FAe,zAe=x(()=>{c();_();FAe=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 jAe,$Ae=x(()=>{c();_();jAe=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 qAe,GAe=x(()=>{c();_();qAe=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 VAe,KAe=x(()=>{c();_();VAe=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 WAe,QAe=x(()=>{c();_();WAe=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 ZAe,JAe=x(()=>{c();_();ZAe=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 YAe,XAe=x(()=>{c();_();YAe=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 eSe,tSe=x(()=>{c();_();eSe=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 rSe,nSe=x(()=>{c();_();rSe=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 oSe,aSe=x(()=>{c();_();oSe=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 iSe,sSe=x(()=>{c();_();iSe=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 cSe,uSe=x(()=>{c();_();cSe=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 lSe,fSe=x(()=>{c();_();lSe=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 dSe,pSe=x(()=>{c();_();dSe=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 mSe,hSe=x(()=>{c();_();mSe=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 ySe,bSe=x(()=>{c();_();ySe=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 gSe,xSe=x(()=>{c();_();gSe=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 vSe,wSe=x(()=>{c();_();vSe=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 ESe,ASe=x(()=>{c();_();ESe=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 SSe,CSe=x(()=>{c();_();SSe=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 cR,TSe,_Se=x(()=>{c();it();_();cR=1,TSe=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:{[cR]:{address:\"0x8546840adF796875cD9AAcc5B3B048f6B2c9D563\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},portal:{[cR]:{address:\"0x7f82f57F0Dd546519324392e408b01fcC7D709e8\",blockCreated:21644285}},l1StandardBridge:{[cR]:{address:\"0x0CA3A2FBC3D770b578223FBB6b062fa875a2eE75\",blockCreated:21644285}}},sourceId:cR})});var kSe,BSe=x(()=>{c();_();kSe=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 ISe,PSe=x(()=>{c();_();ISe=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 RSe,MSe=x(()=>{c();_();RSe=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 OSe,NSe=x(()=>{c();_();OSe=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 USe,DSe=x(()=>{c();_();USe=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 HSe,LSe=x(()=>{c();_();HSe=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 FSe,zSe=x(()=>{c();_();FSe=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 jSe,$Se=x(()=>{c();_();jSe=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 qSe,GSe=x(()=>{c();_();qSe=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 VSe,KSe=x(()=>{c();_();VSe=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 uR,WSe,QSe=x(()=>{c();it();_();uR=1,WSe=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:{[uR]:{address:\"0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:0},portal:{[uR]:{address:\"0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956\"}},l1StandardBridge:{[uR]:{address:\"0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3\"}}},sourceId:uR})});var ZSe,JSe=x(()=>{c();_();ZSe=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 YSe,XSe=x(()=>{c();_();YSe=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 eCe,tCe=x(()=>{c();_();eCe=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 rCe,nCe=x(()=>{c();_();rCe=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 oCe,aCe=x(()=>{c();_();oCe=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 iCe,sCe=x(()=>{c();_();iCe=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 cCe,uCe=x(()=>{c();_();cCe=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 lCe,fCe=x(()=>{c();_();lCe=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 dCe,pCe=x(()=>{c();_();dCe=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 mCe,hCe=x(()=>{c();_();mCe=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 yCe,bCe=x(()=>{c();_();yCe=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 gCe,xCe=x(()=>{c();_();gCe=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 gC,vCe,wCe=x(()=>{c();it();_();gC=1,vCe=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:{[gC]:{address:\"0x6f13EFadABD9269D6cEAd22b448d434A1f1B433E\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:2465882},l2OutputOracle:{[gC]:{address:\"0x4317ba146D4933D889518a3e5E11Fe7a53199b04\"}},portal:{[gC]:{address:\"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07\"}},l1StandardBridge:{[gC]:{address:\"0x735aDBbE72226BD52e818E7181953f42E3b0FF21\"}}},sourceId:gC})});var lR,ECe,ACe=x(()=>{c();it();_();lR=11155111,ECe=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:{[lR]:{address:\"0x2634BD65ba27AB63811c74A63118ACb312701Bfa\",blockCreated:3778393}},portal:{[lR]:{address:\"0x320e1580effF37E008F1C92700d1eBa47c1B23fD\",blockCreated:3778395}},l1StandardBridge:{[lR]:{address:\"0xbC5C679879B2965296756CD959C3C739769995E2\",blockCreated:3778392}},multicall3:{address:\"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF\",blockCreated:3019007}},testnet:!0,sourceId:lR})});var SCe,CCe=x(()=>{c();_();SCe=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 TCe,_Ce=x(()=>{c();_();TCe=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 kCe,BCe=x(()=>{c();_();kCe=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 ICe,PCe=x(()=>{c();_();ICe=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 RCe,MCe=x(()=>{c();_();RCe=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 OCe,NCe=x(()=>{c();_();OCe=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 UCe,DCe=x(()=>{c();_();UCe=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 HCe,LCe=x(()=>{c();_();HCe=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 FCe,zCe=x(()=>{c();_();FCe=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 jCe,$Ce=x(()=>{c();_();jCe=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 qCe,GCe=x(()=>{c();_();qCe=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 VCe,KCe=x(()=>{c();_();VCe=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 WCe,QCe=x(()=>{c();_();WCe=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 ZCe,JCe=x(()=>{c();_();ZCe=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 YCe,XCe=x(()=>{c();_();YCe=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 eTe,tTe=x(()=>{c();_();eTe=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 rTe,nTe=x(()=>{c();_();rTe=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 oTe,aTe=x(()=>{c();_();oTe=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 iTe,sTe=x(()=>{c();_();iTe=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 cTe,uTe=x(()=>{c();_();cTe=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 lTe,fTe=x(()=>{c();_();lTe=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 dTe,pTe=x(()=>{c();_();dTe=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 mTe,hTe=x(()=>{c();_();mTe=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 yTe,bTe=x(()=>{c();_();yTe=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 gTe,xTe=x(()=>{c();_();gTe=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 vTe,wTe=x(()=>{c();_();vTe=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 ETe,ATe=x(()=>{c();_();ETe=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 STe,CTe=x(()=>{c();_();STe=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 TTe,_Te=x(()=>{c();_();TTe=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 kTe,BTe=x(()=>{c();_();kTe=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 ITe,PTe=x(()=>{c();_();ITe=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 RTe,MTe=x(()=>{c();_();RTe=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 fR,OTe,NTe=x(()=>{c();it();_();fR=56,OTe=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:{[fR]:{address:\"0x153CAB79f4767E2ff862C94aa49573294B13D169\"}},portal:{[fR]:{address:\"0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519\"}},l1StandardBridge:{[fR]:{address:\"0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea\"}}},sourceId:fR})});var dR,UTe,DTe=x(()=>{c();it();_();dR=97,UTe=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:{[dR]:{address:\"0xFf2394Bb843012562f4349C6632a0EcB92fC8810\"}},portal:{[dR]:{address:\"0x4386C8ABf2009aC0c263462Da568DD9d46e52a31\"}},l1StandardBridge:{[dR]:{address:\"0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840\"}}},testnet:!0,sourceId:dR})});var HTe,LTe=x(()=>{c();_();HTe=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 xC,FTe,zTe=x(()=>{c();it();_();xC=1,FTe=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:{[xC]:{address:\"0xe5965Ab5962eDc7477C8520243A95517CD252fA9\"}},l2OutputOracle:{[xC]:{address:\"0xdfe97868233d1aa22e815a266982f2cf17685a27\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:4286263},portal:{[xC]:{address:\"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed\"}},l1StandardBridge:{[xC]:{address:\"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1\"}}},sourceId:xC})});var pR,jTe,$Te=x(()=>{c();it();_();pR=5,jTe=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:{[pR]:{address:\"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:49461},portal:{[pR]:{address:\"0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383\"}},l1StandardBridge:{[pR]:{address:\"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8\"}}},testnet:!0,sourceId:pR})});var vC,qTe,GTe=x(()=>{c();it();_();vC=11155111,qTe=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:{[vC]:{address:\"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1\"}},l2OutputOracle:{[vC]:{address:\"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1620204},portal:{[vC]:{address:\"0x16Fc5058F25648194471939df75CF27A2fdC48BC\"}},l1StandardBridge:{[vC]:{address:\"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1\"}}},testnet:!0,sourceId:vC})});var VTe,KTe=x(()=>{c();_();VTe=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 WTe,QTe=x(()=>{c();_();WTe=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 ZTe,JTe=x(()=>{c();_();ZTe=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 YTe,XTe=x(()=>{c();_();YTe=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 e_e,t_e=x(()=>{c();_();e_e=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 r_e,n_e=x(()=>{c();_();r_e=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 o_e,a_e=x(()=>{c();_();o_e=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 i_e,s_e=x(()=>{c();_();i_e=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 c_e,u_e=x(()=>{c();_();c_e=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 mR,l_e,f_e=x(()=>{c();qP();_();mR=1,l_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:{[mR]:{address:\"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3380209},portal:{[mR]:{address:\"0xb26Fd985c5959bBB382BAFdD0b879E149e48116c\"}},l1StandardBridge:{[mR]:{address:\"0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b\"}}},formatters:Vw,sourceId:mR})});var hR,d_e,p_e=x(()=>{c();qP();_();hR=11155111,d_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:{[hR]:{address:\"0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe\"}},portal:{[hR]:{address:\"0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179\"}},l1StandardBridge:{[hR]:{address:\"0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:3754925}},formatters:Vw,sourceId:hR,testnet:!0})});var m_e,h_e=x(()=>{c();_();m_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 y_e,b_e=x(()=>{c();_();y_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 g_e,x_e=x(()=>{c();_();g_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 v_e,w_e=x(()=>{c();_();v_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 E_e,A_e=x(()=>{c();_();E_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 S_e,C_e=x(()=>{c();_();Xi();S_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 T_e,__e=x(()=>{c();_();T_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 bmt,k_e,B_e=x(()=>{c();_();bmt=1,k_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:bmt})});var gmt,I_e,P_e=x(()=>{c();_();gmt=11155111,I_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:gmt})});var xmt,R_e,M_e=x(()=>{c();_();xmt=1,R_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:xmt})});var vmt,O_e,N_e=x(()=>{c();_();vmt=11155111,O_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:vmt})});var wmt,U_e,D_e=x(()=>{c();_();wmt=11155111,U_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:wmt})});var H_e,L_e=x(()=>{c();_();H_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 F_e,z_e=x(()=>{c();_();F_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 j_e,$_e=x(()=>{c();_();j_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 q_e,G_e=x(()=>{c();_();q_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 V_e,K_e=x(()=>{c();_();V_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 W_e,Q_e=x(()=>{c();_();W_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 Z_e,J_e=x(()=>{c();_();Z_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 Y_e,X_e=x(()=>{c();_();Y_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 e4e,t4e=x(()=>{c();_();e4e=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 r4e,n4e=x(()=>{c();_();r4e=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 o4e,a4e=x(()=>{c();_();o4e=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 i4e,s4e=x(()=>{c();_();i4e=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 c4e,u4e=x(()=>{c();_();c4e=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 l4e,f4e=x(()=>{c();_();l4e=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 d4e,p4e=x(()=>{c();_();d4e=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 m4e,h4e,y4e=x(()=>{c();it();_();m4e=11155111,h4e=g({...de,name:\"Pyrope Testnet\",testnet:!0,id:695569,sourceId:m4e,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:{[m4e]:{address:\"0xC24932c31D9621aE9e792576152B7ef010cFC2F8\"}}}})});var b4e,g4e=x(()=>{c();_();b4e=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 x4e,v4e=x(()=>{c();_();x4e=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 w4e,E4e=x(()=>{c();_();w4e=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 A4e,S4e=x(()=>{c();_();A4e=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 C4e,T4e=x(()=>{c();_();C4e=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 _4e,k4e=x(()=>{c();_();_4e=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 B4e,I4e=x(()=>{c();_();B4e=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 P4e,R4e=x(()=>{c();_();P4e=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 M4e,O4e=x(()=>{c();_();M4e=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 N4e,U4e=x(()=>{c();_();N4e=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 D4e,H4e=x(()=>{c();_();D4e=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 L4e,F4e=x(()=>{c();_();L4e=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 z4e,j4e=x(()=>{c();_();z4e=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 yR,$4e,q4e=x(()=>{c();it();_();yR=1,$4e=g({...de,name:\"Redstone\",id:690,sourceId:yR,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:{[yR]:{address:\"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae\",blockCreated:19578329}},l2OutputOracle:{[yR]:{address:\"0xa426A052f657AEEefc298b3B5c35a470e4739d69\",blockCreated:19578337}},l1StandardBridge:{[yR]:{address:\"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69\",blockCreated:19578331}}}})});var G4e,V4e=x(()=>{c();_();G4e=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 K4e,W4e=x(()=>{c();_();K4e=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 Q4e,Z4e=x(()=>{c();_();Q4e=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,Y4e=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 X4e,eke=x(()=>{c();_();X4e=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 tke,rke=x(()=>{c();_();tke=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 nke,oke=x(()=>{c();_();nke=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 ake,ike=x(()=>{c();_();ake=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 ske,cke=x(()=>{c();_();ske=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 uke,lke=x(()=>{c();_();uke=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 fke,dke=x(()=>{c();_();fke=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 pke,mke=x(()=>{c();_();pke=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 bR,hke,yke=x(()=>{c();it();_();bR=1,hke=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:{[bR]:{address:\"0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14193},portal:{[bR]:{address:\"0x6A12432491bbbE8d3babf75F759766774C778Db4\",blockCreated:19387057}},l1StandardBridge:{[bR]:{address:\"0x4cbab69108Aa72151EDa5A3c164eA86845f18438\"}}},sourceId:bR})});var gR,bke,gke=x(()=>{c();it();_();gR=11155111,bke=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:{[gR]:{address:\"0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:55697},portal:{[gR]:{address:\"0xcBD77E8E1E7F06B25baDe67142cdE82652Da7b57\",blockCreated:5345035}},l1StandardBridge:{[gR]:{address:\"0xdDD29bb63B0839FB1cE0eE439Ff027738595D07B\"}}},testnet:!0,sourceId:gR})});var xke,vke=x(()=>{c();_();xke=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 wke,Eke=x(()=>{c();_();wke=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 Ake,Ske=x(()=>{c();_();Ake=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 Cke,Tke=x(()=>{c();_();Cke=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 _ke,kke=x(()=>{c();_();_ke=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 Bke,Ike=x(()=>{c();_();Bke=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 Pke,Rke=x(()=>{c();_();Pke=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 Mke,Oke=x(()=>{c();_();Mke=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 Nke,Uke=x(()=>{c();_();Nke=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 Dke,Hke=x(()=>{c();_();Dke=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 Lke,Fke=x(()=>{c();_();Lke=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 zke,jke=x(()=>{c();_();zke=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 $ke,qke=x(()=>{c();_();$ke=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 Gke,Vke=x(()=>{c();_();Gke=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 xR,Kke,Wke=x(()=>{c();it();_();xR=1,Kke=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:{[xR]:{address:\"0x6Ef8c69CfE4635d866e3E02732068022c06e724D\",blockCreated:20369940}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1},portal:{[xR]:{address:\"0xEB06fFa16011B5628BaB98E29776361c83741dd3\",blockCreated:20369933}},l1StandardBridge:{[xR]:{address:\"0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B\",blockCreated:20369935}}},sourceId:xR})});var Emt,Qke,Zke=x(()=>{c();it();_();Emt=11155111,Qke=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:Emt})});var Jke,Yke=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 Xke,e7e=x(()=>{c();_();Xke=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 t7e,r7e=x(()=>{c();_();t7e=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 n7e,o7e=x(()=>{c();_();n7e=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 a7e,i7e=x(()=>{c();_();a7e=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 s7e,c7e=x(()=>{c();_();s7e=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 u7e,l7e=x(()=>{c();_();u7e=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 f7e,d7e=x(()=>{c();_();f7e=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 p7e,m7e=x(()=>{c();_();p7e=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 h7e,y7e=x(()=>{c();_();h7e=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 b7e,g7e=x(()=>{c();_();b7e=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 x7e,v7e=x(()=>{c();_();x7e=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 w7e,E7e=x(()=>{c();_();w7e=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 A7e,S7e=x(()=>{c();_();A7e=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 C7e,T7e=x(()=>{c();_();C7e=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 _7e,k7e=x(()=>{c();_();_7e=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 B7e,I7e=x(()=>{c();_();B7e=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 P7e,R7e=x(()=>{c();_();P7e=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 M7e,O7e=x(()=>{c();_();M7e=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 N7e,U7e=x(()=>{c();_();N7e=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 D7e,H7e=x(()=>{c();_();D7e=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 L7e,F7e=x(()=>{c();_();L7e=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 z7e,j7e=x(()=>{c();_();z7e=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 $7e,q7e=x(()=>{c();_();$7e=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 G7e,V7e=x(()=>{c();_();G7e=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 K7e,W7e=x(()=>{c();_();K7e=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 Q7e,Z7e=x(()=>{c();_();Q7e=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,Y7e=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 X7e,e9e=x(()=>{c();_();X7e=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 wC,t9e,r9e=x(()=>{c();it();_();wC=1,t9e=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:{[wC]:{address:\"0x472562Fcf26D6b2793f8E0b0fB660ba0E5e08A46\"}},l2OutputOracle:{[wC]:{address:\"0x2172e492Fc807F5d5645D0E3543f139ECF539294\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[wC]:{address:\"0x79f446D024d74D0Bb6E699C131c703463c5D65E9\"}},l1StandardBridge:{[wC]:{address:\"0x6534Bdb6b5c060d3e6aa833433333135eFE8E0aA\"}}},sourceId:wC})});var EC,n9e,o9e=x(()=>{c();it();_();EC=11155111,n9e=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:{[EC]:{address:\"0x206a75d89d45F146C54020F132FF93bEDD09f55E\"}},l2OutputOracle:{[EC]:{address:\"0x60e3A368a4cdCEf85ffB964e372726F56A46221e\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\"},portal:{[EC]:{address:\"0xb5afdd0E8dDF081Ef90e8A3e0c7b5798e66E954E\"}},l1StandardBridge:{[EC]:{address:\"0xbd37E1a59D4C00C9A46F75018dffd84061bC5f74\"}}},testnet:!0,sourceId:EC})});var a9e,i9e=x(()=>{c();_();a9e=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 s9e,c9e=x(()=>{c();_();s9e=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 AC,u9e,l9e=x(()=>{c();it();_();AC=1,u9e=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:{[AC]:{address:\"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0\"}},l2OutputOracle:{[AC]:{address:\"0x0000000000000000000000000000000000000000\"}},portal:{[AC]:{address:\"0x88e529a6ccd302c948689cd5156c83d4614fae92\",blockCreated:7061266}},l1StandardBridge:{[AC]:{address:\"0xeb9bf100225c214efc3e7c651ebbadcf85177607\",blockCreated:7061266}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1}},sourceId:AC})});var SC,f9e,d9e=x(()=>{c();it();_();SC=11155111,f9e=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:{[SC]:{address:\"0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01\"}},l2OutputOracle:{[SC]:{address:\"0x710e5286C746eC38beeB7538d0146f60D27be343\"}},portal:{[SC]:{address:\"0x65ea1489741A5D72fFdD8e6485B216bBdcC15Af3\",blockCreated:6466136}},l1StandardBridge:{[SC]:{address:\"0x5f5a404A5edabcDD80DB05E8e54A78c9EBF000C2\",blockCreated:6466136}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:1}},testnet:!0,sourceId:SC})});var p9e,m9e=x(()=>{c();_();p9e=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 h9e,y9e=x(()=>{c();_();h9e=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 b9e,g9e=x(()=>{c();_();b9e=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 x9e,v9e=x(()=>{c();_();x9e=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 w9e,E9e=x(()=>{c();_();w9e=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 A9e,S9e=x(()=>{c();_();Xi();A9e=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 C9e,T9e=x(()=>{c();_();Xi();C9e=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 _9e,k9e=x(()=>{c();_();_9e=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 B9e,I9e=x(()=>{c();_();B9e=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 P9e,R9e=x(()=>{c();_();P9e=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 M9e,O9e=x(()=>{c();_();M9e=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 N9e,U9e=x(()=>{c();_();N9e=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 qK,D9e=x(()=>{c();iR();_();qK=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 H9e,L9e=x(()=>{c();_();H9e=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 F9e,z9e=x(()=>{c();_();F9e=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 j9e,$9e=x(()=>{c();_();j9e=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 q9e,G9e=x(()=>{c();_();q9e=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 V9e,K9e=x(()=>{c();_();V9e=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 W9e,Q9e=x(()=>{c();_();W9e=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 Z9e,J9e=x(()=>{c();_();Z9e=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 Y9e,X9e=x(()=>{c();_();Y9e=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 eBe,tBe=x(()=>{c();_();eBe=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 CC,rBe,nBe=x(()=>{c();it();_();CC=1,rBe=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:{[CC]:{address:\"0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0\",blockCreated:20737481}},l2OutputOracle:{[CC]:{address:\"0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949\",blockCreated:20737481}},portal:{[CC]:{address:\"0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07\",blockCreated:20737481}},l1StandardBridge:{[CC]:{address:\"0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede\",blockCreated:20737481}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\"}},sourceId:CC})});var GK,oBe,aBe=x(()=>{c();it();_();GK=11155111,oBe=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:{[GK]:{address:\"0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB\",blockCreated:5523438}},l1StandardBridge:{[GK]:{address:\"0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C\",blockCreated:5523442}}},testnet:!0,sourceId:GK})});var iBe,sBe=x(()=>{c();_();iBe=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 cBe,uBe=x(()=>{c();_();cBe=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 lBe,fBe=x(()=>{c();_();lBe=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 dBe,pBe=x(()=>{c();_();dBe=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 mBe,hBe=x(()=>{c();it();_();mBe=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 yBe,bBe=x(()=>{c();it();_();yBe=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 gBe,xBe=x(()=>{c();_();gBe=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 vBe,wBe=x(()=>{c();_();vBe=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 EBe,ABe=x(()=>{c();_();EBe=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 SBe,CBe=x(()=>{c();_();SBe=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 TBe,_Be=x(()=>{c();_();TBe=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 kBe,BBe=x(()=>{c();_();kBe=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 IBe,PBe=x(()=>{c();_();IBe=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 RBe,MBe=x(()=>{c();_();RBe=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 OBe,NBe=x(()=>{c();_();OBe=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 UBe,DBe=x(()=>{c();_();UBe=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 HBe,LBe=x(()=>{c();_();HBe=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 FBe,zBe=x(()=>{c();_();FBe=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 jBe,$Be=x(()=>{c();_();jBe=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 qBe,GBe=x(()=>{c();_();qBe=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 VBe,KBe=x(()=>{c();_();VBe=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 WBe,QBe=x(()=>{c();_();WBe=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 ZBe,JBe=x(()=>{c();_();ZBe=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 YBe,Amt,Smt,XBe,eIe,Cmt,Tmt,NDr,tIe,_mt,kmt,UDr,rIe=x(()=>{c();Lv();TG();qv();YBe=cm(BigInt(\"0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff\")),Amt=YBe.create(BigInt(\"-3\")),Smt=BigInt(\"0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b\"),XBe=Gv({a:Amt,b:Smt,Fp:YBe,n:BigInt(\"0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551\"),Gx:BigInt(\"0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296\"),Gy:BigInt(\"0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5\"),h:BigInt(1),lowS:!1},Tc),eIe=cm(BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff\")),Cmt=eIe.create(BigInt(\"-3\")),Tmt=BigInt(\"0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef\"),NDr=Gv({a:Cmt,b:Tmt,Fp:eIe,n:BigInt(\"0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973\"),Gx:BigInt(\"0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7\"),Gy:BigInt(\"0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f\"),h:BigInt(1),lowS:!1},CB),tIe=cm(BigInt(\"0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\")),_mt=tIe.create(BigInt(\"-3\")),kmt=BigInt(\"0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00\"),UDr=Gv({a:_mt,b:kmt,Fp:tIe,n:BigInt(\"0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409\"),Gx:BigInt(\"0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66\"),Gy:BigInt(\"0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650\"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},SB)});var nIe,oIe=x(()=>{c();rIe();nIe=XBe});function vR(e){let{hash:t,payload:r,publicKey:n,signature:o}=e;return nIe.verify(o,r instanceof Uint8Array?r:Ds(r),X1(n).substring(2),{lowS:!0,...t?{prehash:!0}:{}})}var VK=x(()=>{c();oIe();pu();Rw()});function iIe(e){let t=e.replace(/=+$/,\"\"),r=t.length,n=new Uint8Array(r+3);Bmt.encodeInto(t+\"===\",n);for(let s=0,u=0;s<t.length;s+=4,u+=3){let f=(wR[n[s]]<<18)+(wR[n[s+1]]<<12)+(wR[n[s+2]]<<6)+wR[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 Bmt,GDr,wR,sIe=x(()=>{c();Bmt=new TextEncoder,GDr=Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[t,e.charCodeAt(0)])),wR={...Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63}});function cIe(e){let{challenge:t,metadata:r,origin:n,publicKey:o,rpId:s,signature:u}=e,{authenticatorData:f,clientDataJSON:d,userVerificationRequired:p}=r,h=Ds(f);if(h.length<37)return!1;if(s!==void 0){let k=h.slice(0,32),P=zV(Il(s),{as:\"Bytes\"});if(!Epe(k,P))return!1}let y=h[32];if((y&1)!==1||p&&(y&4)!==4||(y&8)!==8&&(y&16)===16)return!1;let v=JSON.parse(d);if(v.type!==\"webauthn.get\"||!v.challenge||sn(iIe(v.challenge))!==t||n!==void 0&&!(Array.isArray(n)?n:[n]).includes(v.origin))return!1;let E=zV(nI(d),{as:\"Bytes\"}),C=wpe(h,E);return vR({hash:!0,payload:C,publicKey:o,signature:u})}var uIe=x(()=>{c();sIe();pu();q0();Tr();VK()});function lIe(e){return cIe(e)}var fIe=x(()=>{c();uIe()});var Ls={};Wn(Ls,{CoercionError:()=>Y0,InvalidSerializedError:()=>J0,MissingPropertiesError:()=>TC,VerificationError:()=>AR,assert:()=>ZK,deserialize:()=>Am,extractAddress:()=>SR,extractPublicKey:()=>JK,from:()=>X0,fromRpc:()=>ey,getType:()=>_C,magicBytes:()=>ug,serialize:()=>ty,toRpc:()=>ry,types:()=>Mmt,validate:()=>Omt,verify:()=>Nmt});function ZK(e){let t=_C(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 TC({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 TC({envelope:e,missing:n,type:\"webAuthn\"});return}if(t===\"keychain\"){ZK(e.inner);return}}function SR(e){let{signature:t,root:r}=e;return t.type===\"keychain\"?r?t.userAddress:SR({...e,signature:t.inner}):Yi(JK(e))}function JK(e){let{payload:t,signature:r}=e;switch(r.type){case\"secp256k1\":return gP({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=pP(t);return og(u),{signature:u,type:\"secp256k1\"}}let n=vt(t,0,1),o=vt(t,1),s=Cr(o);if(n===KK){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===WK){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,p;for(let h=37;h<u;h++){let y=rV(vt(f,h));if(y.startsWith(\"{\")&&y.endsWith(\"}\"))try{JSON.parse(y),d=vt(f,0,h),p=y;break}catch{}}if(!d||!p)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:p},signature:{r:br(vt(o,u,u+32)),s:br(vt(o,u+32,u+64))},type:\"webAuthn\"}}if(n===QK||n===ER){let u=vt(o,0,20),f=Am(vt(o,20));return{userAddress:u,inner:f,type:\"keychain\",version:n===ER?\"v2\":\"v1\"}}throw new J0({reason:`Unknown signature type identifier: ${n}. Expected ${KK} (P256), ${WK} (WebAuthn), ${QK} (Keychain V1), or ${ER} (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=_C(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(gP({payload:t.payload,signature:n.signature}))}:{}})()}:{},type:r}}function ey(e){if(e.type===\"secp256k1\")return{signature:oC(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=rV(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 _C(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=_C(e);if(r===\"secp256k1\")return Jt(Nhe(e.signature),t.magic?ug:\"0x\");if(r===\"p256\"){let n=e;return Jt(KK,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(WK,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\"?QK:ER;return Jt(o,n.userAddress,ty(n.inner),t.magic?ug:\"0x\")}throw new Y0({envelope:e})}function ry(e){let t=_C(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 Omt(e){try{return ZK(e),!0}catch{return!1}}function Nmt(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?Lhe({address:n,payload:r,signature:o.signature}):!1;if(o.type===\"p256\"){let s=Yi(o.publicKey);return ZS(s,n)?vR({hash:o.prehash,publicKey:o.publicKey,payload:r,signature:o.signature}):!1}if(o.type===\"webAuthn\"){let s=Yi(o.publicKey);return ZS(s,n)?lIe({challenge:H0(r),metadata:o.metadata,publicKey:o.publicKey,signature:o.signature}):!1}throw new AR(`Unable to verify signature envelope of type \"${o.type}\".`)}var KK,WK,QK,ER,ug,Mmt,Y0,TC,J0,AR,Jw=x(()=>{c();bu();ca();Tr();gw();VK();aC();K0();fIe();KK=\"0x01\",WK=\"0x02\",QK=\"0x03\",ER=\"0x04\",ug=\"0x7777777777777777777777777777777777777777777777777777777777777777\",Mmt=[\"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\"})}},TC=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\"})}},AR=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\")?Umt(e).address:e}function Umt(e){if(!e.startsWith(\"tempox\"))throw new YK({address:e});let t=e.slice(6);return tV(t,{strict:!0}),{address:eg(t)}}var YK,lg=x(()=>{c();bu();ca();Tr();YK=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 Dmt(e,t={}){if(typeof e.chainId==\"string\")return dIe(e);let r={...e,address:ua(e.address)};return t.signature?{...r,signature:t.signature}:r}function dIe(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 CR(e){return e.map(t=>dIe(t))}function Hmt(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)),Dmt(s)}function pIe(e){let t=[];for(let r of e)t.push(Hmt(r));return t}function Lmt(e){let{address:t,chainId:r,nonce:n,signature:o}=e;return{address:t,chainId:we(r),nonce:we(n),signature:ry(o)}}function TR(e){return e.map(t=>Lmt(t))}function Fmt(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 mIe(e){if(!e||e.length===0)return[];let t=[];for(let r of e)t.push(Fmt(r));return t}var kC=x(()=>{c();Tr();Jw();lg()});var ny={};Wn(ny,{deserialize:()=>jmt,from:()=>yIe,fromRpc:()=>Xw,fromTuple:()=>kR,getSignPayload:()=>zmt,hash:()=>bIe,serialize:()=>$mt,toRpc:()=>IC,toTuple:()=>PC});function yIe(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:eW(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(p=>!p.selectorRules||p.selectorRules.length===0?[{address:p.target}]:p.selectorRules.map(h=>({address:p.target,selector:Gmt(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(p=>({token:p.token,limit:BigInt(p.limit),...p.period&&BC(p.period)>0?{period:BC(p.period)}:{}})),...d?{scopes:d}:{},signature:f,type:u}}function kR(e){let[t,r]=e,[n,o,s,u,f,d]=t,p=(()=>{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\"&&BC(u)||void 0,type:p,chainId:n===\"0x\"?0n:br(n),...typeof u<\"u\"?{expiry:BC(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:qmt(E),...typeof C<\"u\"?{period:BC(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[k,P]=C;return{address:v,selector:k,...Array.isArray(P)&&P.length>0?{recipients:P}:{}}})})}:{}};return r&&(h.signature=Am(r)),yIe(h)}function zmt(e){return bIe(e)}function jmt(e){let t=fP(e);return kR(t)}function bIe(e){let[t]=PC(e),r=ng(t);return Rc(r)}function $mt(e){let t=PC(e);return ng(t)}function IC(e){let{address:t,scopes:r,chainId:n,expiry:o,limits:s,type:u,signature:f}=e,d=(()=>{if(!r)return;let p=new Map;for(let h of r){let y=h.address;p.has(y)||p.set(y,[]),h.selector&&p.get(y).push({selector:eW(h.selector),...h.recipients&&h.recipients.length>0?{recipients:h.recipients}:{}})}return[...p.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:p,limit:h,period:y})=>({token:p,limit:we(h),...y?{period:XK(y)}:{}})),signature:ry(f),...d?{allowedCalls:d}:{}}}function PC(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,hIe(y.limit)];return y.period&&y.period>0&&v.push(XK(y.period)),v}),p=(()=>{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([eW(v.selector),v.recipients??[]])}return[...y.entries()].map(([v,E])=>[v,E.map(([C,k])=>[C,k])])})();return[[hIe(r),f,t,o!=null&&o!==0||d||p?XK(o??0):void 0,d||p?d??[]:void 0,p].filter(y=>typeof y<\"u\"),...u?[u]:[]]}function hIe(e){return e===0n?\"0x\":we(e)}function XK(e){return e===0?\"0x\":we(e)}function qmt(e){return e===\"0x\"?0n:BigInt(e)}function BC(e){return e===\"0x\"?0:Bc(e)}function Gmt(e){return typeof e==\"string\"?e:Array.isArray(e)?sn(new Uint8Array(e)):e}function eW(e){if(e)return e.startsWith(\"0x\")?e:uC(e)}var RC=x(()=>{c();_P();q0();Tr();dP();Jw();lg()});var gIe=x(()=>{c()});function BR(e){if(typeof e==\"string\"){let r=ua(e);return mi(r),r}let t=we(e,{size:18});return Jt(Kmt,t)}var Kmt,IR=x(()=>{c();bu();Tr();lg();Kmt=\"0x20c0\"});var xIe=x(()=>{c()});var vIe=x(()=>{c()});var wIe=x(()=>{c()});var EIe=x(()=>{c()});function AIe(e,t={}){if(!e)return null;let r=nC(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=hP(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=OC[e.type]??e.type),r&&(n.v=Hw(r.yParity)),n}function SIe(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=MC[e.type]??e.type,r.value=we(e.value??0n),e.accessList&&(r.accessList=e.accessList),e.authorizationList&&(r.authorizationList=yP(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 MC,OC,rW=x(()=>{c();bP();Tr();K0();MC={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"},OC={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"}});var e6={};Wn(e6,{fromRpc:()=>Jmt,fromRpcType:()=>RR,toRpc:()=>Ymt,toRpcType:()=>PR});function Jmt(e,t={}){if(!e)return null;let r=AIe(e);return r.type=RR[e.type],e.aaAuthorizationList&&(r.authorizationList=CR(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=oC(e.feePayerSignature),r.feePayerSignature.v=Hw(r.feePayerSignature.yParity)),r}function Ymt(e,t){let r=SIe(e);return r.type=PR[e.type],e.authorizationList&&(r.aaAuthorizationList=TR(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=IC(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 PR,RR,nW=x(()=>{c();Tr();K0();rW();kC();RC();Jw();PR={...MC,tempo:\"0x76\"},RR={...OC,\"0x76\":\"tempo\"}});var TIe,_Ie,kIe=x(()=>{c();TIe={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"},_Ie={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"}});var mHr,hHr,BIe=x(()=>{c();kIe();mHr={...TIe,\"0x76\":\"tempo\"},hHr={..._Ie,tempo:\"0x76\"}});function IIe(e){let t=e;return typeof e.authorizationList<\"u\"&&(t.authorizationList=hP(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=OC[e.type]||e.type),typeof e.value<\"u\"&&(t.value=br(e.value)),t}function PIe(e){let t={};return typeof e.accessList<\"u\"&&(t.accessList=e.accessList),typeof e.authorizationList<\"u\"&&(t.authorizationList=yP(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=MC[e.type]||e.type),typeof e.value<\"u\"&&(t.value=we(e.value)),t}var RIe=x(()=>{c();bP();Tr();rW()});var MR={};Wn(MR,{fromRpc:()=>rht,toRpc:()=>nht});function rht(e){let{authorizationList:t,...r}=e,n=IIe(r);return typeof e.type<\"u\"&&(n.type=RR[e.type]||n.type),e.authorizationList&&(n.authorizationList=CR(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 nht(e){let t=PIe({...e,authorizationList:void 0});e.authorizationList&&(t.authorizationList=TR(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=BR(e.feeToken)),e.keyAuthorization&&(t.keyAuthorization=IC(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 Bpe(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=PR.tempo,delete t.data,delete t.input,delete t.to,delete t.value),t}var MIe=x(()=>{c();Tr();RIe();kC();RC();lg();IR();nW()});function OIe(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=>whe(s)?s:DS(s))})}return t}function NIe(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 oW({storageKey:n[o]});r&&mi(r,{strict:!1}),t.push([r,n])}return t}var oW,UIe=x(()=>{c();bu();ca();q0();Tr();oW=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 aht(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 OR(e,t=\"wei\"){return aht(e,DIe.gwei-DIe[t])}var DIe,HIe=x(()=>{c();DIe={wei:0,gwei:9,szabo:12,finney:15,ether:18}});var NR,UR,DR,HR,LIe=x(()=>{c();ca();HIe();NR=class extends De{constructor({feeCap:t}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`/\\\\`maxPriorityFeePerGas\\\\`${t?` = ${OR(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\"})}},UR=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\"})}},DR=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\"})}},HR=class extends De{constructor({maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super([`The provided tip (\\\\`maxPriorityFeePerGas\\\\`${t?` = ${OR(t)} gwei`:\"\"}) cannot be higher than the fee cap (\\\\`maxFeePerGas\\\\`${r?` = ${OR(r)} gwei`:\"\"}).`].join(`\\n`)),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionEnvelope.TipAboveFeeCapError\"})}}});var xd={};Wn(xd,{CallsEmptyError:()=>LR,InvalidValidityWindowError:()=>FR,assert:()=>NC,deserialize:()=>jIe,feePayerMagic:()=>FIe,from:()=>iW,getFeePayerSignPayload:()=>cht,getSignPayload:()=>cW,hash:()=>$Ie,serialize:()=>sW,serializedType:()=>zIe,type:()=>aW,validate:()=>uht});function NC(e){let{calls:t,chainId:r,maxFeePerGas:n,maxPriorityFeePerGas:o,validBefore:s,validAfter:u}=e;if(!t||t.length===0)throw new LR;if(typeof s==\"number\"&&typeof u==\"number\"&&s<=u)throw new FR({validBefore:s,validAfter:u});if(t)for(let f of t)f.to&&mi(f.to,{strict:!1});if(r<=0)throw new UR({chainId:r});if(n&&BigInt(n)>2n**256n-1n)throw new NR({feeCap:n});if(o&&n&&o>n)throw new HR({maxFeePerGas:n,maxPriorityFeePerGas:o})}function jIe(e){let t=fP(vt(e,1)),[r,n,o,s,u,f,d,p,h,y,v,E,C,k,P]=t,M=Array.isArray(k)?k:void 0,U=M?P:k;if(!(t.length===13||t.length===14||t.length===15))throw new DR({attributes:{authorizationList:C,chainId:r,maxPriorityFeePerGas:n,maxFeePerGas:o,gas:s,calls:u,accessList:f,keyAuthorization:M,nonceKey:d,nonce:p,validBefore:h,validAfter:y,feeToken:v,feePayerSignatureOrSender:E,...t.length>12?{signature:U}:{}},serialized:e,type:aW});let O={chainId:Number(r),type:aW};if(Zi(s)&&s!==\"0x\"&&(O.gas=BigInt(s)),Zi(p)&&(O.nonce=p===\"0x\"?0n:BigInt(p)),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=OIe(f)),C?.length!==0&&C!==\"0x\"&&(O.authorizationList=pIe(C)),E!==\"0x\"&&E!==void 0&&(E===\"0x00\"||tg(E)?(O.feePayerSignature=null,tg(E)&&(O.from=E)):O.feePayerSignature=uK(E)),M&&(O.keyAuthorization=kR(M));let N=U?Am(U):void 0;if(N&&(O={...O,signature:N}),!O.from&&N)try{O.from=SR({payload:cW(iW(O)),signature:N,root:!0})}catch{}return NC(O),O}function iW(e,t={}){let{feePayerSignature:r,signature:n}=t,o=typeof e==\"string\"?jIe(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)}:{}}))),NC(o),{...o,...n?{signature:X0(n)}:{},...r?{feePayerSignature:V0(r)}:{},type:\"tempo\"}}function sW(e,t={}){let{accessList:r,authorizationList:n,calls:o,chainId:s,feeToken:u,gas:f,keyAuthorization:d,nonce:p,nonceKey:h,maxFeePerGas:y,maxPriorityFeePerGas:v,validBefore:E,validAfter:C}=e;NC(e);let k=NIe(r),P=t.signature||e.signature,M=mIe(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\"&&P){let G=X0(P);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:cW(iW(e)),signature:G.signature})}let K=typeof t.feePayerSignature<\"u\"?t.feePayerSignature:e.feePayerSignature;return K===null?(O=!0,\"0x00\"):K?mP(K):\"0x\"})(),j=[we(s),v?we(v):\"0x\",y?we(y):\"0x\",f?we(f):\"0x\",U,k,h?we(h):\"0x\",p?we(p):\"0x\",typeof E==\"number\"?we(E):\"0x\",typeof C==\"number\"?we(C):\"0x\",!O&&(typeof u==\"bigint\"||typeof u==\"string\")?BR(u):\"0x\",N,M,...d?[PC(d)]:[],...P?[ty(X0(P))]:[]];return Jt(t.format===\"feePayer\"?FIe:zIe,ng(j))}function cW(e,t={}){let r=$Ie(e,{presign:!0});return t.from?Rc(Jt(\"0x04\",r,ua(t.from))):r}function $Ie(e,t={}){let r=sW({...e,...t.presign?{signature:void 0,...e.feePayerSignature!==void 0?{feePayerSignature:null}:{}}:{}});return Rc(r)}function cht(e,t){let r=ua(t.sender),n=sW({...e,signature:void 0},{sender:r,format:\"feePayer\"});return Rc(n)}function uht(e){try{return NC(e),!0}catch{return!1}}var FIe,zIe,aW,LR,FR,qIe=x(()=>{c();UIe();bu();ca();q0();Tr();dP();aC();K0();LIe();kC();RC();Jw();lg();IR();FIe=\"0x78\",zIe=\"0x76\",aW=\"tempo\";LR=class extends De{constructor(){super(\"Calls list cannot be empty.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TxEnvelopeTempo.CallsEmptyError\"})}},FR=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 GIe=x(()=>{c()});var VIe=x(()=>{c()});var KIe=x(()=>{c()});var WIe=x(()=>{c()});var UC=x(()=>{c();kC();RC();gIe();xIe();vIe();Jw();lg();wIe();IR();EIe();nW();BIe();MIe();qIe();GIe();VIe();KIe();WIe()});var mht,hht,yht,bht,ght,xht,vht,vd,wht,Eht,Aht,Sht,IHr,QIe=x(()=>{c();mht=[{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:[]}],hht=[{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:[]}],yht=[{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:[]}],bht=[{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:[]}],ght=[{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:[]}],xht=[{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:[]}],vht=[{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\"}]}],wht=[{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:[]}],Eht=[{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:[]}],Sht=[{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\"}]}],IHr=[...mht,...hht,...yht,...bht,...ght,...xht,...vht,...vd,...wht,...Eht,...Aht,...Sht]});function ZIe(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 zR(e){try{return ZIe(e)===\"tempo\"}catch{return!1}}async function JIe(e,t){if(!zR(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(ZIe(e)===\"tempo\")return Tht(e,t);throw new Error(\"Unsupported transaction type\")}async function Tht(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 p=e.feePayerSignature;if(p)return{r:BigInt(p.r),s:BigInt(p.s),yParity:Number(p.yParity)};if(p===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 p=xd.from(d,{signature:r}),h=(()=>{if(e.from)return e.from;if(r.type===\"secp256k1\")return ig({payload:xd.getSignPayload(p),signature:r.signature});throw new Error(\"Unable to extract sender from transaction or signature.\")})(),y=xd.getFeePayerSignPayload(p,{sender:h}),v=await e.feePayer.sign({hash:y});return xd.serialize(p,{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 uW=x(()=>{c();Tr();aC();K0();UC();KB();Pw()});async function YIe(e,t){let{chainId:r,key:n,expiry:o,limits:s,scopes:u}=t,{accessKeyAddress:f,keyType:d}=kht(n),p=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(p),type:d})}function kht(e){return\"accessKeyAddress\"in e?{accessKeyAddress:e.accessKeyAddress,keyType:e.keyType}:\"publicKey\"in e&&e.publicKey?{accessKeyAddress:Yi(rP(e.publicKey)),keyType:e.type}:{accessKeyAddress:e.address,keyType:e.type}}var XIe=x(()=>{c();bu();Rw();UC()});var t6,ePe=x(()=>{c();t6=\"0xaAAAaaAA00000000000000000000000000000000\"});function rPe(e,t){return tPe.indexOf(e)<tPe.indexOf(t)}var tPe,nPe=x(()=>{c();tPe=[\"genesis\",\"t0\",\"t1\",\"t1a\",\"t1b\",\"t1c\",\"t2\",\"t3\"]});function r6(e){return{...e,data:Ct(e),to:e.address}}var oPe=x(()=>{c();W0()});async function lW(e,t){return lW.inner(pd,e,t)}async function fW(e,t){return fW.inner(md,e,t)}async function dW(e,t){return dW.inner(md,e,t)}async function DC(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,...DC.call({account:s.address,accessKey:n})});return{address:u.keyId,keyType:Pht[u.signatureType]??\"secp256k1\",expiry:u.expiry,spendPolicy:Rht[`${u.enforceLimits}`],isRevoked:u.isRevoked}}async function jR(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&&rPe(f,\"t3\"))return{remaining:await Xr(e,{...s,...jR.call({account:u.address,accessKey:n,token:o})}),periodEnd:void 0};let[d,p]=await Xr(e,{...s,...jR.callWithPeriod({account:u.address,accessKey:n,token:o})});return{remaining:d,periodEnd:p}}function HC(e){return typeof e==\"string\"?e:e.accessKeyAddress}var Pht,Rht,aPe=x(()=>{c();Yr();Ic();Tw();AI();PS();QIe();XIe();ePe();nPe();oPe();Pht={0:\"secp256k1\",1:\"p256\",2:\"webAuthn\"},Rht={true:\"limited\",false:\"unlimited\"};(function(e){async function t(n,o,s){let{accessKey:u,chainId:f=o.chain?.id,expiry:d,limits:p,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 YIe(E,{chainId:BigInt(f),key:u,expiry:d,limits:p,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})(lW||(lW={}));(function(e){async function t(o,s,u){let{accessKey:f,...d}=u,p=e.call({accessKey:f});return await o(s,{...d,...p})}e.inner=t;function r(o){let{accessKey:s}=o;return r6({address:t6,abi:vd,functionName:\"revokeKey\",args:[HC(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})(fW||(fW={}));(function(e){async function t(o,s,u){let{accessKey:f,token:d,limit:p,...h}=u,y=e.call({accessKey:f,token:d,limit:p});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:[HC(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})(dW||(dW={}));(function(e){function t(r){let{account:n,accessKey:o}=r;return r6({address:t6,abi:vd,functionName:\"getKey\",args:[n,HC(o)]})}e.call=t})(DC||(DC={}));(function(e){function t(n){let{account:o,accessKey:s,token:u}=n;return r6({address:t6,abi:vd,functionName:\"getRemainingLimit\",args:[o,HC(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,HC(s),u]})}e.callWithPeriod=r})(jR||(jR={}))});function iPe(e){if(!zR(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 sPe(e){return bm(e)}function cPe(e,t){let r=e,n=r.account?Xe(r.account):void 0;if(!zR(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=MR.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 uPe=x(()=>{c();Tr();UC();Yr();id();gm();Us();uW()});async function lPe(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,fPe=x(()=>{c();n6=new Map});var Nht,oy,LC=x(()=>{c();bu();Tr();Rw();UC();Q1();jw();nw();_();id();gm();Us();Zt();Is();aPe();uPe();fPe();uW();Nht=25,oy={blockTime:1e3,extendSchema:NV(),formatters:{transaction:P0({exclude:[\"aaAuthorizationList\"],format:iPe}),transactionReceipt:_w({format:sPe}),transactionRequest:rw({format:cPe})},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 lPe(o):!1})()?(r.nonceKey=ad,r.nonce=0,typeof r.validBefore>\"u\"&&(r.validBefore=Math.floor(Date.now()/1e3)+Nht)):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(WS(u.inner.publicKey)),d=await DC(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 p=u.version===\"v2\"?Gt(Jt(\"0x04\",n,r)):n;return Ls.verify(u.inner,{address:f,payload:p})}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 pW,dPe=x(()=>{c();LC();_();pW=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 pPe,mPe=x(()=>{c();LC();_();pPe=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 hPe,yPe=x(()=>{c();LC();_();hPe=g({...oy,id:1337,name:\"Tempo\",hardfork:\"t3\",nativeCurrency:{name:\"USD\",symbol:\"USD\",decimals:6},rpcUrls:{default:{http:[\"http://localhost:8545\"]}}})});var mW,bPe=x(()=>{c();LC();_();mW=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 gPe,xPe=x(()=>{c();_();gPe=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 vPe,wPe=x(()=>{c();_();vPe=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 EPe,APe=x(()=>{c();_();EPe=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 SPe,CPe=x(()=>{c();_();SPe=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 TPe,_Pe=x(()=>{c();_();TPe=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 kPe,BPe=x(()=>{c();_();kPe=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 IPe,PPe=x(()=>{c();_();IPe=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 RPe,MPe=x(()=>{c();_();RPe=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 OPe,NPe=x(()=>{c();_();OPe=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 UPe,DPe=x(()=>{c();_();UPe=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 HPe,LPe=x(()=>{c();_();Xi();HPe=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 FPe,zPe=x(()=>{c();_();Xi();FPe=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 jPe,$Pe=x(()=>{c();_();jPe=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 qPe,GPe=x(()=>{c();_();qPe=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 VPe,KPe=x(()=>{c();_();VPe=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 WPe,QPe=x(()=>{c();_();WPe=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 ZPe,JPe=x(()=>{c();_();ZPe=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 YPe,XPe=x(()=>{c();_();YPe=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 eRe,tRe=x(()=>{c();_();eRe=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 rRe,nRe=x(()=>{c();_();rRe=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 $R,oRe,aRe=x(()=>{c();it();_();$R=1,oRe=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:{[$R]:{address:\"0x2F12d621a16e2d3285929C9996f478508951dFe4\"}},portal:{[$R]:{address:\"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2\"}},l1StandardBridge:{[$R]:{address:\"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA\"}}},sourceId:$R})});var qR,iRe,sRe=x(()=>{c();it();_();qR=11155111,iRe=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:{[qR]:{address:\"0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD\"}},l1StandardBridge:{[qR]:{address:\"0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2\"}},disputeGameFactory:{[qR]:{address:\"0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b\"}}},testnet:!0,sourceId:qR})});var cRe,uRe=x(()=>{c();_();cRe=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 lRe,fRe=x(()=>{c();_();lRe=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 dRe,pRe=x(()=>{c();_();dRe=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 mRe,hRe=x(()=>{c();_();mRe=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 yRe,bRe=x(()=>{c();_();yRe=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 gRe,xRe=x(()=>{c();_();gRe=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 vRe,wRe=x(()=>{c();_();vRe=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 ERe,ARe=x(()=>{c();_();ERe=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 SRe,CRe=x(()=>{c();_();SRe=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 TRe,_Re=x(()=>{c();_();TRe=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 kRe,BRe=x(()=>{c();_();kRe=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 IRe,PRe=x(()=>{c();_();IRe=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 RRe,MRe=x(()=>{c();_();RRe=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 ORe,NRe=x(()=>{c();_();ORe=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 URe,DRe=x(()=>{c();_();URe=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 HRe,LRe=x(()=>{c();_();HRe=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 FRe,zRe=x(()=>{c();_();FRe=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 jRe,$Re=x(()=>{c();_();jRe=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 qRe,GRe=x(()=>{c();_();qRe=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 VRe,KRe=x(()=>{c();_();VRe=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 WRe,QRe=x(()=>{c();_();WRe=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 ZRe,JRe=x(()=>{c();_();ZRe=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 FC,YRe,XRe=x(()=>{c();it();_();FC=1,YRe=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:{[FC]:{address:\"0x069c4c579671f8c120b1327a73217D01Ea2EC5ea\"}},l2OutputOracle:{[FC]:{address:\"0x19A6d1E9034596196295CF148509796978343c5D\"}},portal:{[FC]:{address:\"0xd5ec14a83B7d95BE1E2Ac12523e2dEE12Cbeea6C\"}},l1StandardBridge:{[FC]:{address:\"0x470458C91978D2d929704489Ad730DC3E3001113\"}}},testnet:!1,sourceId:FC})});var zC,eMe,tMe=x(()=>{c();it();_();zC=11155111,eMe=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:{[zC]:{address:\"0x8Ec1111f67Dad6b6A93B3F42DfBC92D81c98449A\"}},l2OutputOracle:{[zC]:{address:\"0xc8886f8BAb6Eaeb215aDB5f1c686BF699248300e\"}},portal:{[zC]:{address:\"0xFf6EBa109271fe6d4237EeeD4bAb1dD9A77dD1A4\"}},l1StandardBridge:{[zC]:{address:\"0xd7DF54b3989855eb66497301a4aAEc33Dbb3F8DE\"}}},testnet:!0,sourceId:zC})});var rMe,nMe=x(()=>{c();_();rMe=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 oMe,aMe=x(()=>{c();_();oMe=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 iMe,sMe=x(()=>{c();_();iMe=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 cMe,uMe=x(()=>{c();_();cMe=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 lMe,fMe=x(()=>{c();_();lMe=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 dMe,pMe=x(()=>{c();_();dMe=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 mMe,hMe=x(()=>{c();_();mMe=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 hW,yMe=x(()=>{c();_();hW=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 bMe,gMe=x(()=>{c();_();bMe=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 xMe,vMe=x(()=>{c();_();xMe=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 wMe,EMe=x(()=>{c();_();wMe=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 AMe,SMe=x(()=>{c();_();AMe=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 CMe,TMe=x(()=>{c();_();CMe=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 _Me,kMe=x(()=>{c();_();_Me=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 BMe,IMe=x(()=>{c();_();BMe=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 PMe,RMe=x(()=>{c();_();PMe=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 MMe,OMe=x(()=>{c();_();MMe=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 NMe,UMe=x(()=>{c();_();NMe=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 DMe,HMe=x(()=>{c();_();DMe=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 LMe,FMe=x(()=>{c();_();LMe=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 zMe,jMe=x(()=>{c();_();zMe=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 $Me,qMe=x(()=>{c();_();$Me=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 GMe,VMe=x(()=>{c();_();GMe=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 KMe,WMe=x(()=>{c();_();KMe=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 QMe,ZMe=x(()=>{c();_();QMe=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,YMe=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 XMe,eOe=x(()=>{c();_();XMe=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 tOe,rOe=x(()=>{c();_();tOe=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 yW,nOe,oOe=x(()=>{c();it();_();yW=1,nOe=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:{[yW]:{address:\"0x92Ef6Af472b39F1b363da45E35530c24619245A4\"}},portal:{[yW]:{address:\"0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1\"}},l1StandardBridge:{[yW]:{address:\"0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8\"}}},testnet:!1})});var bW,aOe,iOe=x(()=>{c();it();_();bW=11155111,aOe=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:{[bW]:{address:\"0xd69D3AC5CA686cCF94b258291772bc520FEAf211\"}},portal:{[bW]:{address:\"0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21\"}},l1StandardBridge:{[bW]:{address:\"0x87a7E2bCA9E35BA49282E832a28A6023904460D8\"}}},testnet:!0})});var sOe,cOe=x(()=>{c();_();sOe=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 uOe,lOe=x(()=>{c();_();uOe=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 fOe,dOe=x(()=>{c();_();fOe=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 pOe,mOe=x(()=>{c();_();pOe=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 gW,hOe=x(()=>{c();_();Xi();gW=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 xW,yOe=x(()=>{c();_();Xi();xW=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 bOe,gOe=x(()=>{c();_();Xi();bOe=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 xOe,vOe=x(()=>{c();_();Xi();xOe=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 wOe,EOe=x(()=>{c();_();wOe=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 vW,AOe=x(()=>{c();_();Xi();vW=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 wW,SOe=x(()=>{c();_();Xi();wW=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 COe,TOe=x(()=>{c();_();COe=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 _Oe,kOe=x(()=>{c();_();_Oe=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 jC,BOe,IOe=x(()=>{c();it();_();jC=1,BOe=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:{[jC]:{address:\"0xB0F15106fa1e473Ddb39790f197275BC979Aa37e\"}},l2OutputOracle:{[jC]:{address:\"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:5882},portal:{[jC]:{address:\"0x1a0ad011913A150f69f6A19DF447A0CfD9551054\"}},l1StandardBridge:{[jC]:{address:\"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631\"}}},sourceId:jC})});var GR,POe,ROe=x(()=>{c();it();_();GR=11155111,POe=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:{[GR]:{address:\"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9\"}},multicall3:{address:\"0xcA11bde05977b3631167028862bE2a173976CA11\",blockCreated:83160},portal:{[GR]:{address:\"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f\"}},l1StandardBridge:{[GR]:{address:\"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB\"}}},sourceId:GR,testnet:!0})});var MOe,OOe,NOe=x(()=>{c();it();_();MOe=5,OOe=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:{[MOe]:{address:\"0xDb9F51790365e7dc196e7D072728df39Be958ACe\"}}},sourceId:MOe,testnet:!0})});var ay={};Wn(ay,{abey:()=>Tye,abstract:()=>Dye,abstractTestnet:()=>Lye,acala:()=>zye,acria:()=>$ye,adf:()=>Gye,adi:()=>Kye,agungTestnet:()=>Qye,aioz:()=>Jye,alephZero:()=>Xye,alephZeroTestnet:()=>tbe,alienx:()=>nbe,alienxHalTestnet:()=>abe,alpenTestnet:()=>sbe,ancient8:()=>lbe,ancient8Sepolia:()=>dbe,anvil:()=>mbe,apeChain:()=>ybe,apexTestnet:()=>gbe,apollo:()=>vbe,arbitrum:()=>Ebe,arbitrumGoerli:()=>Sbe,arbitrumNova:()=>Tbe,arbitrumSepolia:()=>kbe,arcTestnet:()=>Ibe,arenaz:()=>Rbe,areonNetwork:()=>Obe,areonNetworkTestnet:()=>Ube,areum:()=>Hbe,artelaTestnet:()=>Fbe,arthera:()=>jbe,artheraTestnet:()=>qbe,assetChain:()=>Vbe,assetChainTestnet:()=>Wbe,astar:()=>Zbe,astarZkEVM:()=>Ybe,astarZkyoto:()=>e1e,atletaOlympia:()=>r1e,aurora:()=>o1e,auroraTestnet:()=>i1e,auroria:()=>c1e,autheoTestnet:()=>l1e,avalanche:()=>d1e,avalancheFuji:()=>m1e,b3:()=>y1e,b3Sepolia:()=>g1e,bahamut:()=>v1e,base:()=>hC,baseGoerli:()=>T1e,basePreconf:()=>E1e,baseSepolia:()=>NK,baseSepoliaPreconf:()=>k1e,basecampTestnet:()=>S1e,battlechainTestnet:()=>I1e,beam:()=>R1e,beamTestnet:()=>O1e,bearNetworkChainMainnet:()=>U1e,bearNetworkChainTestnet:()=>H1e,berachain:()=>F1e,berachainBepolia:()=>j1e,berachainTestnet:()=>q1e,berachainTestnetbArtio:()=>V1e,bevmMainnet:()=>W1e,bifrost:()=>Z1e,birdlayer:()=>Y1e,bitTorrent:()=>dge,bitTorrentTestnet:()=>mge,bitgert:()=>ege,bitkub:()=>rge,bitkubTestnet:()=>oge,bitlayer:()=>ige,bitlayerTestnet:()=>cge,bitrock:()=>lge,blast:()=>yge,blastSepolia:()=>gge,bob:()=>vge,bobSepolia:()=>Tge,boba:()=>Ege,bobaSepolia:()=>Sge,boolBetaMainnet:()=>kge,botanix:()=>Ige,botanixTestnet:()=>Rge,bounceBit:()=>Oge,bounceBitTestnet:()=>Uge,bronos:()=>Hge,bronosTestnet:()=>Fge,bsc:()=>jge,bscGreenfield:()=>qge,bscTestnet:()=>Vge,bsquared:()=>Wge,bsquaredTestnet:()=>Zge,btr:()=>Yge,btrTestnet:()=>exe,bxn:()=>rxe,bxnTestnet:()=>oxe,cannon:()=>ixe,canto:()=>cxe,celo:()=>yxe,celoAlfajores:()=>gxe,celoSepolia:()=>vxe,chang:()=>Exe,chiliz:()=>Sxe,chips:()=>Txe,citrea:()=>kxe,citreaTestnet:()=>Ixe,classic:()=>Rxe,codex:()=>Oxe,codexTestnet:()=>Uxe,coinbit:()=>Hxe,coinex:()=>Fxe,confluxESpace:()=>jxe,confluxESpaceTestnet:()=>qxe,coreDao:()=>Vxe,coreTestnet1:()=>Wxe,coreTestnet2:()=>Zxe,corn:()=>Yxe,cornTestnet:()=>e2e,cpchain:()=>r2e,crab:()=>o2e,creatorTestnet:()=>i2e,creditCoin3Devnet:()=>c2e,creditCoin3Mainnet:()=>l2e,creditCoin3Testnet:()=>d2e,cronos:()=>m2e,cronosTestnet:()=>y2e,cronoszkEVM:()=>g2e,cronoszkEVMTestnet:()=>v2e,crossbell:()=>E2e,crossfi:()=>S2e,curtis:()=>T2e,cyber:()=>k2e,cyberTestnet:()=>I2e,dailyNetwork:()=>R2e,dailyNetworkTestnet:()=>O2e,darwinia:()=>U2e,datahavenTestnet:()=>H2e,dbkchain:()=>F2e,dchain:()=>j2e,dchainTestnet:()=>q2e,defichainEvm:()=>V2e,defichainEvmTestnet:()=>W2e,degen:()=>Z2e,dfk:()=>Y2e,diode:()=>eve,disChain:()=>rve,dodochainTestnet:()=>ove,dogechain:()=>ive,domaTestnet:()=>cve,donatuz:()=>lve,dosChain:()=>dve,dosChainTestnet:()=>mve,dreyerxMainnet:()=>yve,dreyerxTestnet:()=>gve,dustboyIoT:()=>vve,dymension:()=>Eve,eden:()=>Sve,edexa:()=>Tve,edexaTestnet:()=>kve,edgeless:()=>Ive,edgelessTestnet:()=>Rve,edgeware:()=>Ove,edgewareTestnet:()=>Uve,eduChain:()=>Hve,eduChainTestnet:()=>Fve,elastos:()=>jve,elastosTestnet:()=>qve,electroneum:()=>Vve,electroneumTestnet:()=>Wve,elysiumTestnet:()=>Zve,energy:()=>Yve,eni:()=>ewe,eniTestnet:()=>rwe,enuls:()=>owe,eon:()=>iwe,eos:()=>cwe,eosTestnet:()=>lwe,eteria:()=>dwe,etherlink:()=>mwe,etherlinkShadownetTestnet:()=>ywe,etherlinkTestnet:()=>gwe,ethernity:()=>vwe,etp:()=>Ewe,evmos:()=>Swe,evmosTestnet:()=>Twe,excelonMainnet:()=>kwe,expanse:()=>Iwe,exsat:()=>Rwe,exsatTestnet:()=>Owe,fantom:()=>Uwe,fantomSonicTestnet:()=>Hwe,fantomTestnet:()=>Fwe,fibo:()=>jwe,filecoin:()=>qwe,filecoinCalibration:()=>Vwe,filecoinHyperspace:()=>Wwe,fireChain:()=>Sye,flame:()=>Zwe,flare:()=>Ywe,flareTestnet:()=>e6e,flowMainnet:()=>r6e,flowPreviewnet:()=>o6e,flowTestnet:()=>i6e,fluence:()=>c6e,fluenceStage:()=>l6e,fluenceTestnet:()=>d6e,fluent:()=>m6e,fluentDevnet:()=>y6e,fluentTestnet:()=>g6e,form:()=>v6e,formTestnet:()=>S6e,forma:()=>E6e,formicarium:()=>USe,forta:()=>T6e,foundry:()=>k6e,fraxtal:()=>I6e,fraxtalTestnet:()=>R6e,funkiMainnet:()=>O6e,funkiSepolia:()=>U6e,fuse:()=>H6e,fuseSparknet:()=>F6e,fusion:()=>j6e,fusionTestnet:()=>q6e,garnet:()=>V6e,gatechain:()=>W6e,geist:()=>Z6e,genesys:()=>Y6e,gensyn:()=>e5e,giwaSepolia:()=>jK,giwaSepoliaPreconf:()=>r5e,glideL1Protocol:()=>o5e,glideL2Protocol:()=>i5e,gnosis:()=>c5e,gnosisChiado:()=>l5e,goChain:()=>y5e,goat:()=>d5e,gobi:()=>m5e,godwoken:()=>g5e,goerli:()=>v5e,graphite:()=>E5e,graphiteTestnet:()=>S5e,gravity:()=>T5e,gunz:()=>k5e,guruNetwork:()=>I5e,guruTestnet:()=>R5e,ham:()=>O5e,happychainTestnet:()=>U5e,haqqMainnet:()=>H5e,haqqTestedge2:()=>F5e,hardhat:()=>j5e,harmonyOne:()=>q5e,hashkey:()=>V5e,hashkeyTestnet:()=>W5e,haustTestnet:()=>Z5e,hedera:()=>Y5e,hederaPreviewnet:()=>eEe,hederaTestnet:()=>rEe,hela:()=>oEe,heliosTestnet:()=>iEe,hemi:()=>cEe,hemiSepolia:()=>lEe,henesys:()=>dEe,holesky:()=>mEe,hoodi:()=>yEe,horizenTestnet:()=>gEe,hpb:()=>vEe,hpp:()=>EEe,hppSepolia:()=>SEe,huddle01Mainnet:()=>TEe,huddle01Testnet:()=>kEe,humanity:()=>IEe,humanityTestnet:()=>REe,humanode:()=>OEe,humanodeTestnet5:()=>UEe,hychain:()=>HEe,hychainTestnet:()=>FEe,hyperEvm:()=>$K,hyperliquid:()=>$K,hyperliquidEvmTestnet:()=>$Ee,iSunCoin:()=>A3e,icbNetwork:()=>GEe,idchain:()=>KEe,igra:()=>QEe,immutableZkEvm:()=>JEe,immutableZkEvmTestnet:()=>XEe,inEVM:()=>t3e,initVerse:()=>n3e,initVerseGenesis:()=>a3e,injective:()=>s3e,injectiveTestnet:()=>u3e,ink:()=>f3e,inkSepolia:()=>p3e,iota:()=>h3e,iotaTestnet:()=>b3e,iotex:()=>x3e,iotexTestnet:()=>w3e,jasmyChain:()=>C3e,jasmyChainTestnet:()=>_3e,jbc:()=>B3e,jbcTestnet:()=>P3e,jocMainnet:()=>M3e,jocTestnet:()=>N3e,jovay:()=>D3e,jovaySepolia:()=>L3e,juneo:()=>z3e,juneoBCH1Chain:()=>$3e,juneoDAI1Chain:()=>G3e,juneoDOGE1Chain:()=>K3e,juneoEUR1Chain:()=>Q3e,juneoGLD1Chain:()=>J3e,juneoLINK1Chain:()=>X3e,juneoLTC1Chain:()=>t8e,juneoSGD1Chain:()=>a8e,juneoSocotraTestnet:()=>s8e,juneoUSD1Chain:()=>u8e,juneoUSDT1Chain:()=>f8e,juneomBTC1Chain:()=>n8e,kaia:()=>p8e,kairos:()=>h8e,kakarotSepolia:()=>b8e,kakarotStarknetSepolia:()=>x8e,kardiaChain:()=>w8e,karura:()=>A8e,katana:()=>C8e,kava:()=>_8e,kavaTestnet:()=>B8e,kcc:()=>P8e,kii:()=>M8e,kiiTestnetOro:()=>N8e,kinto:()=>D8e,klaytn:()=>L8e,klaytnBaobab:()=>z8e,koi:()=>$8e,kroma:()=>G8e,kromaSepolia:()=>K8e,krown:()=>Q8e,l3x:()=>J8e,l3xTestnet:()=>X8e,lavita:()=>tAe,lens:()=>nAe,lensTestnet:()=>aAe,lestnet:()=>sAe,lightlinkPegasus:()=>uAe,lightlinkPhoenix:()=>fAe,linea:()=>yAe,lineaGoerli:()=>gAe,lineaSepolia:()=>vAe,lineaTestnet:()=>EAe,lisk:()=>SAe,liskSepolia:()=>TAe,loadAlphanet:()=>kAe,localhost:()=>IAe,loop:()=>RAe,lukso:()=>OAe,luksoTestnet:()=>UAe,lumiaMainnet:()=>HAe,lumiaTestnet:()=>FAe,lumoz:()=>jAe,lumozTestnet:()=>qAe,luxeports:()=>VAe,lycan:()=>WAe,lyra:()=>ZAe,mainnet:()=>YAe,mandala:()=>eSe,manta:()=>rSe,mantaSepoliaTestnet:()=>oSe,mantaTestnet:()=>iSe,mantle:()=>cSe,mantleSepoliaTestnet:()=>lSe,mantleTestnet:()=>dSe,mantraDuKongEVMTestnet:()=>mSe,mantraEVM:()=>ySe,mapProtocol:()=>gSe,matchain:()=>vSe,matchainTestnet:()=>ESe,mchVerse:()=>SSe,megaeth:()=>TSe,megaethTestnet:()=>kSe,mekong:()=>ISe,meld:()=>RSe,memecore:()=>OSe,merlin:()=>HSe,merlinErigonTestnet:()=>FSe,metachain:()=>jSe,metachainIstanbul:()=>qSe,metadium:()=>VSe,metalL2:()=>WSe,meter:()=>ZSe,meterTestnet:()=>YSe,metis:()=>eCe,metisGoerli:()=>rCe,metisSepolia:()=>oCe,mev:()=>iCe,mevTestnet:()=>cCe,mezo:()=>lCe,mezoTestnet:()=>dCe,mint:()=>mCe,mintSepoliaTestnet:()=>yCe,mitosisTestnet:()=>gCe,mode:()=>vCe,modeTestnet:()=>ECe,monad:()=>SCe,monadTestnet:()=>TCe,moonbaseAlpha:()=>kCe,moonbeam:()=>ICe,moonbeamDev:()=>RCe,moonriver:()=>OCe,morph:()=>UCe,morphHolesky:()=>HCe,morphSepolia:()=>FCe,nahmii:()=>jCe,nautilus:()=>qCe,near:()=>VCe,nearTestnet:()=>WCe,neonDevnet:()=>ZCe,neonMainnet:()=>YCe,neoxMainnet:()=>eTe,neoxT4:()=>rTe,newton:()=>oTe,nexi:()=>iTe,nexilix:()=>cTe,nibiru:()=>lTe,nitrographTestnet:()=>dTe,nomina:()=>mTe,oasisTestnet:()=>yTe,oasys:()=>gTe,odysseyTestnet:()=>vTe,okc:()=>ETe,omax:()=>STe,omni:()=>TTe,omniOmega:()=>kTe,oneWorld:()=>ITe,oortMainnetDev:()=>RTe,opBNB:()=>OTe,opBNBTestnet:()=>UTe,openledger:()=>HTe,optimism:()=>FTe,optimismGoerli:()=>jTe,optimismSepolia:()=>qTe,optopia:()=>VTe,optopiaTestnet:()=>WTe,orderly:()=>ZTe,orderlySepolia:()=>YTe,otimDevnet:()=>e_e,palm:()=>r_e,palmTestnet:()=>o_e,paseoPassetHub:()=>i_e,peaq:()=>c_e,pgn:()=>l_e,pgnTestnet:()=>d_e,phoenix:()=>m_e,planq:()=>y_e,plasma:()=>g_e,plasmaDevnet:()=>v_e,plasmaTestnet:()=>E_e,playfiAlbireo:()=>S_e,plinga:()=>T_e,plume:()=>k_e,plumeDevnet:()=>I_e,plumeMainnet:()=>R_e,plumeSepolia:()=>O_e,plumeTestnet:()=>U_e,polterTestnet:()=>H_e,polygon:()=>F_e,polygonAmoy:()=>j_e,polygonMumbai:()=>q_e,polygonZkEvm:()=>V_e,polygonZkEvmCardona:()=>W_e,polygonZkEvmTestnet:()=>Z_e,polynomial:()=>Y_e,polynomialSepolia:()=>e4e,potos:()=>r4e,potosTestnet:()=>o4e,premiumBlockTestnet:()=>i4e,pulsechain:()=>c4e,pulsechainV4:()=>l4e,pumpfiTestnet:()=>d4e,pyrope:()=>h4e,qMainnet:()=>x4e,qTestnet:()=>w4e,ql1:()=>b4e,quai:()=>A4e,quaiTestnet:()=>C4e,radius:()=>_4e,radiusTestnet:()=>B4e,reactiveTestnet:()=>P4e,real:()=>M4e,redbellyMainnet:()=>N4e,redbellyTestnet:()=>D4e,reddio:()=>L4e,reddioSepolia:()=>z4e,redstone:()=>$4e,rei:()=>G4e,reyaNetwork:()=>K4e,rise:()=>Q4e,riseTestnet:()=>J4e,rivalz:()=>X4e,rollux:()=>tke,rolluxTestnet:()=>nke,ronin:()=>ake,root:()=>ske,rootPorcini:()=>uke,rootstock:()=>fke,rootstockTestnet:()=>pke,rss3:()=>hke,rss3Sepolia:()=>bke,saakuru:()=>xke,saga:()=>wke,saigon:()=>Ake,sanko:()=>Cke,sapphire:()=>_ke,sapphireTestnet:()=>Bke,satoshiVM:()=>Pke,satoshiVMTestnet:()=>Mke,scroll:()=>Nke,scrollSepolia:()=>Dke,sei:()=>Lke,seiTestnet:()=>$ke,seismicDevnet:()=>zke,sepolia:()=>Gke,shape:()=>Kke,shapeSepolia:()=>Qke,shardeum:()=>Jke,shardeumSphinx:()=>Xke,shibarium:()=>t7e,shibariumTestnet:()=>n7e,shiden:()=>a7e,shimmer:()=>s7e,shimmerTestnet:()=>u7e,sidraChain:()=>f7e,silentData:()=>p7e,silicon:()=>h7e,siliconSepolia:()=>b7e,sixProtocol:()=>x7e,skaleBase:()=>G7e,skaleBaseSepoliaTestnet:()=>K7e,skaleBlockBrawlers:()=>w7e,skaleCalypso:()=>A7e,skaleCalypsoTestnet:()=>C7e,skaleCryptoBlades:()=>_7e,skaleCryptoColosseum:()=>B7e,skaleEuropa:()=>P7e,skaleEuropaTestnet:()=>M7e,skaleExorde:()=>N7e,skaleHumanProtocol:()=>D7e,skaleNebula:()=>L7e,skaleNebulaTestnet:()=>z7e,skaleRazor:()=>$7e,skaleTitan:()=>Q7e,skaleTitanTestnet:()=>J7e,sketchpad:()=>X7e,snax:()=>t9e,snaxTestnet:()=>n9e,somnia:()=>a9e,somniaTestnet:()=>s9e,soneium:()=>u9e,soneiumMinato:()=>f9e,songbird:()=>p9e,songbirdTestnet:()=>h9e,sonic:()=>b9e,sonicBlazeTestnet:()=>x9e,sonicTestnet:()=>w9e,sophon:()=>A9e,sophonTestnet:()=>C9e,sova:()=>_9e,sovaSepolia:()=>B9e,spicy:()=>P9e,stable:()=>M9e,stableTestnet:()=>N9e,statusNetworkSepolia:()=>qK,statusSepolia:()=>qK,step:()=>H9e,story:()=>F9e,storyAeneid:()=>j9e,storyOdyssey:()=>q9e,storyTestnet:()=>V9e,stratis:()=>W9e,subtensorEvm:()=>Z9e,superlumio:()=>Y9e,superposition:()=>eBe,superseed:()=>rBe,superseedSepolia:()=>oBe,surgeTestnet:()=>iBe,swan:()=>cBe,swanProximaTestnet:()=>lBe,swanSaturnTestnet:()=>dBe,swellchain:()=>mBe,swellchainTestnet:()=>yBe,swissdlt:()=>gBe,syscoin:()=>vBe,syscoinTestnet:()=>EBe,tac:()=>SBe,tacSPB:()=>TBe,taiko:()=>kBe,taikoHekla:()=>IBe,taikoHoodi:()=>RBe,taikoJolnir:()=>OBe,taikoKatla:()=>UBe,taikoTestnetSepolia:()=>HBe,taraxa:()=>FBe,taraxaTestnet:()=>jBe,teaSepolia:()=>qBe,telcoinTestnet:()=>VBe,telos:()=>WBe,telosTestnet:()=>ZBe,tempo:()=>pW,tempoDevnet:()=>pPe,tempoLocalnet:()=>hPe,tempoMainnet:()=>pW,tempoModerato:()=>mW,tempoTestnet:()=>mW,tenet:()=>gPe,ternoa:()=>vPe,thaiChain:()=>EPe,that:()=>SPe,theta:()=>TPe,thetaTestnet:()=>kPe,thunderCore:()=>IPe,thunderTestnet:()=>RPe,tiktrixTestnet:()=>OPe,tomb:()=>UPe,treasure:()=>HPe,treasureTopaz:()=>FPe,tron:()=>jPe,tronNile:()=>qPe,tronShasta:()=>VPe,ubiq:()=>WPe,ultra:()=>ZPe,ultraTestnet:()=>YPe,ultron:()=>eRe,ultronTestnet:()=>rRe,unichain:()=>oRe,unichainSepolia:()=>iRe,unique:()=>cRe,uniqueOpal:()=>lRe,uniqueQuartz:()=>dRe,unreal:()=>mRe,vana:()=>yRe,vanaMoksha:()=>gRe,vanar:()=>vRe,vechain:()=>ERe,velas:()=>SRe,viction:()=>TRe,victionTestnet:()=>kRe,vision:()=>IRe,visionTestnet:()=>RRe,wanchain:()=>ORe,wanchainTestnet:()=>URe,weaveVMAlphanet:()=>HRe,wemix:()=>FRe,wemixTestnet:()=>jRe,westendAssetHub:()=>qRe,whitechain:()=>VRe,whitechainTestnet:()=>WRe,wmcTestnet:()=>ZRe,worldLand:()=>rMe,worldchain:()=>YRe,worldchainSepolia:()=>eMe,x1Testnet:()=>hW,xLayer:()=>mMe,xLayerTestnet:()=>hW,xai:()=>oMe,xaiTestnet:()=>iMe,xdc:()=>cMe,xdcTestnet:()=>lMe,xgr:()=>dMe,xoneMainnet:()=>bMe,xoneTestnet:()=>xMe,xphereMainnet:()=>wMe,xphereTestnet:()=>AMe,xpla:()=>CMe,xrOne:()=>_Me,xrSepolia:()=>NMe,xrplevm:()=>BMe,xrplevmDevnet:()=>PMe,xrplevmTestnet:()=>MMe,yooldoVerse:()=>DMe,yooldoVerseTestnet:()=>LMe,zenchainTestnet:()=>zMe,zeniq:()=>$Me,zeroG:()=>yye,zeroGGalileoTestnet:()=>gye,zeroGMainnet:()=>vye,zeroGTestnet:()=>Eye,zeroNetwork:()=>GMe,zetachain:()=>KMe,zetachainAthensTestnet:()=>QMe,zhejiang:()=>JMe,zilliqa:()=>XMe,zilliqaTestnet:()=>tOe,zircuit:()=>nOe,zircuitGarfieldTestnet:()=>aOe,zkFair:()=>sOe,zkFairTestnet:()=>uOe,zkLinkNova:()=>fOe,zkLinkNovaSepoliaTestnet:()=>pOe,zkSync:()=>gW,zkSyncInMemoryNode:()=>xW,zkSyncLocalNode:()=>vW,zkSyncSepoliaTestnet:()=>wW,zkXPLA:()=>COe,zkXPLATestnet:()=>_Oe,zksync:()=>gW,zksyncInMemoryNode:()=>xW,zksyncLocalCustomHyperchain:()=>bOe,zksyncLocalHyperchain:()=>xOe,zksyncLocalHyperchainL1:()=>wOe,zksyncLocalNode:()=>vW,zksyncSepoliaTestnet:()=>wW,zora:()=>BOe,zoraSepolia:()=>POe,zoraTestnet:()=>OOe});var VR=x(()=>{c();bye();xye();wye();Aye();Cye();_ye();Hye();Fye();jye();qye();Vye();Wye();Zye();Yye();ebe();rbe();obe();ibe();cbe();fbe();pbe();hbe();bbe();xbe();wbe();Abe();Cbe();_be();Bbe();Pbe();Mbe();Nbe();Dbe();Lbe();zbe();$be();Gbe();Kbe();Qbe();Jbe();Xbe();t1e();n1e();a1e();s1e();u1e();f1e();p1e();h1e();b1e();x1e();w1e();A1e();C1e();_1e();B1e();P1e();M1e();N1e();D1e();L1e();z1e();$1e();G1e();K1e();Q1e();J1e();X1e();tge();nge();age();sge();uge();fge();pge();hge();bge();xge();wge();Age();Cge();_ge();Bge();Pge();Mge();Nge();Dge();Lge();zge();$ge();Gge();Kge();Qge();Jge();Xge();txe();nxe();axe();sxe();uxe();bxe();xxe();wxe();Axe();Cxe();_xe();Bxe();Pxe();Mxe();Nxe();Dxe();Lxe();zxe();$xe();Gxe();Kxe();Qxe();Jxe();Xxe();t2e();n2e();a2e();s2e();u2e();f2e();p2e();h2e();b2e();x2e();w2e();A2e();C2e();_2e();B2e();P2e();M2e();N2e();D2e();L2e();z2e();$2e();G2e();K2e();Q2e();J2e();X2e();tve();nve();ave();sve();uve();fve();pve();hve();bve();xve();wve();Ave();Cve();_ve();Bve();Pve();Mve();Nve();Dve();Lve();zve();$ve();Gve();Kve();Qve();Jve();Xve();twe();nwe();awe();swe();uwe();fwe();pwe();hwe();bwe();xwe();wwe();Awe();Cwe();_we();Bwe();Pwe();Mwe();Nwe();Dwe();Lwe();zwe();$we();Gwe();Kwe();Qwe();Jwe();Xwe();t6e();n6e();a6e();s6e();u6e();f6e();p6e();h6e();b6e();x6e();w6e();A6e();C6e();_6e();B6e();P6e();M6e();N6e();D6e();L6e();z6e();$6e();G6e();K6e();Q6e();J6e();X6e();t5e();n5e();a5e();s5e();u5e();f5e();p5e();h5e();b5e();x5e();w5e();A5e();C5e();_5e();B5e();P5e();M5e();N5e();D5e();L5e();z5e();$5e();G5e();K5e();Q5e();J5e();X5e();tEe();nEe();aEe();sEe();uEe();fEe();pEe();hEe();bEe();xEe();wEe();AEe();CEe();_Ee();BEe();PEe();MEe();NEe();DEe();LEe();zEe();jEe();qEe();VEe();WEe();ZEe();YEe();e3e();r3e();o3e();i3e();c3e();l3e();d3e();m3e();y3e();g3e();v3e();E3e();S3e();T3e();k3e();I3e();R3e();O3e();U3e();H3e();F3e();j3e();q3e();V3e();W3e();Z3e();Y3e();e8e();r8e();o8e();i8e();c8e();l8e();d8e();m8e();y8e();g8e();v8e();E8e();S8e();T8e();k8e();I8e();R8e();O8e();U8e();H8e();F8e();j8e();q8e();V8e();W8e();Z8e();Y8e();eAe();rAe();oAe();iAe();cAe();lAe();dAe();bAe();xAe();wAe();AAe();CAe();_Ae();BAe();PAe();MAe();NAe();DAe();LAe();zAe();$Ae();GAe();KAe();QAe();JAe();XAe();tSe();nSe();aSe();sSe();uSe();fSe();pSe();hSe();bSe();xSe();wSe();ASe();CSe();_Se();BSe();PSe();MSe();NSe();DSe();LSe();zSe();$Se();GSe();KSe();QSe();JSe();XSe();tCe();nCe();aCe();sCe();uCe();fCe();pCe();hCe();bCe();xCe();wCe();ACe();CCe();_Ce();BCe();PCe();MCe();NCe();DCe();LCe();zCe();$Ce();GCe();KCe();QCe();JCe();XCe();tTe();nTe();aTe();sTe();uTe();fTe();pTe();hTe();bTe();xTe();wTe();ATe();CTe();_Te();BTe();PTe();MTe();NTe();DTe();LTe();zTe();$Te();GTe();KTe();QTe();JTe();XTe();t_e();n_e();a_e();s_e();u_e();f_e();p_e();h_e();b_e();x_e();w_e();A_e();C_e();__e();B_e();P_e();M_e();N_e();D_e();L_e();z_e();$_e();G_e();K_e();Q_e();J_e();X_e();t4e();n4e();a4e();s4e();u4e();f4e();p4e();y4e();g4e();v4e();E4e();S4e();T4e();k4e();I4e();R4e();O4e();U4e();H4e();F4e();j4e();q4e();V4e();W4e();Z4e();Y4e();eke();rke();oke();ike();cke();lke();dke();mke();yke();gke();vke();Eke();Ske();Tke();kke();Ike();Rke();Oke();Uke();Hke();Fke();jke();qke();Vke();Wke();Zke();Yke();e7e();r7e();o7e();i7e();c7e();l7e();d7e();m7e();y7e();g7e();v7e();E7e();S7e();T7e();k7e();I7e();R7e();O7e();U7e();H7e();F7e();j7e();q7e();V7e();W7e();Z7e();Y7e();e9e();r9e();o9e();i9e();c9e();l9e();d9e();m9e();y9e();g9e();v9e();E9e();S9e();T9e();k9e();I9e();R9e();O9e();U9e();D9e();L9e();z9e();$9e();G9e();K9e();Q9e();J9e();X9e();tBe();nBe();aBe();sBe();uBe();fBe();pBe();hBe();bBe();xBe();wBe();ABe();CBe();_Be();BBe();PBe();MBe();NBe();DBe();LBe();zBe();$Be();GBe();KBe();QBe();JBe();dPe();mPe();yPe();bPe();xPe();wPe();APe();CPe();_Pe();BPe();PPe();MPe();NPe();DPe();LPe();zPe();$Pe();GPe();KPe();QPe();JPe();XPe();tRe();nRe();aRe();sRe();uRe();fRe();pRe();hRe();bRe();xRe();wRe();ARe();CRe();_Re();BRe();PRe();MRe();NRe();DRe();LRe();zRe();$Re();GRe();KRe();QRe();JRe();XRe();tMe();nMe();aMe();sMe();uMe();fMe();pMe();hMe();yMe();gMe();vMe();EMe();SMe();TMe();kMe();IMe();RMe();OMe();UMe();HMe();FMe();jMe();qMe();VMe();WMe();ZMe();YMe();eOe();rOe();oOe();iOe();cOe();lOe();dOe();mOe();hOe();yOe();gOe();vOe();EOe();AOe();SOe();TOe();kOe();IOe();ROe();NOe()});var EW=x(()=>{c();Q1();Ic();RP()});function GOe(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 VOe=x(()=>{c()});function BW(){let e=new Set,t=[],r=()=>GOe(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 KOe=x(()=>{c();VOe()});var WOe=x(()=>{c();KOe()});var XOe=X((Pan,PW)=>{\"use strict\";c();var Fht=Object.prototype.hasOwnProperty,ts=\"~\";function VC(){}Object.create&&(VC.prototype=Object.create(null),new VC().__proto__||(ts=!1));function zht(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function YOe(e,t,r,n,o){if(typeof r!=\"function\")throw new TypeError(\"The listener must be a function\");var s=new zht(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 tM(e,t){--e._eventsCount===0?e._events=new VC:delete e._events[t]}function hi(){this._events=new VC,this._eventsCount=0}hi.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)Fht.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],p=arguments.length,h,y;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),p){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(p-1);y<p;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),p){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(p-1);E<p;E++)h[E-1]=arguments[E];d[y].fn.apply(d[y].context,h)}}return!0};hi.prototype.on=function(t,r,n){return YOe(this,t,r,n,!1)};hi.prototype.once=function(t,r,n){return YOe(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 tM(this,s),this;var u=this._events[s];if(u.fn)u.fn===r&&(!o||u.once)&&(!n||u.context===n)&&tM(this,s);else{for(var f=0,d=[],p=u.length;f<p;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:tM(this,s)}return this};hi.prototype.removeAllListeners=function(t){var r;return t?(r=ts?ts+t:t,this._events[r]&&tM(this,r)):(this._events=new VC,this._eventsCount=0),this};hi.prototype.off=hi.prototype.removeListener;hi.prototype.addListener=hi.prototype.on;hi.prefixed=ts;hi.EventEmitter=hi;typeof PW<\"u\"&&(PW.exports=hi)});var l6,rM=x(()=>{c();l6=Sr(XOe(),1)});var lNe=X(uNe=>{\"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 k=C();if(!y){var P=C();s(k,P)||(console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"),y=!0)}P=u({inst:{value:k,getSnapshot:C}});var M=P[0].inst,U=P[1];return d(function(){M.value=k,M.getSnapshot=C,r(M)&&U({inst:M})},[E,k,C]),f(function(){return r(M)&&U({inst:M}),E(function(){r(M)&&U({inst:M})})},[E]),p(k),k}function r(E){var C=E.getSnapshot;E=E.value;try{var k=C();return!s(E,k)}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,p=o.useDebugValue,h=!1,y=!1,v=typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"?n:t;uNe.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 dNe=X((rsn,fNe)=>{\"use strict\";c();fNe.exports=lNe()});var mNe=X(pNe=>{\"use strict\";c();(function(){function e(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&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=dNe(),n=typeof Object.is==\"function\"?Object.is:e,o=r.useSyncExternalStore,s=t.useRef,u=t.useEffect,f=t.useMemo,d=t.useDebugValue;pNe.useSyncExternalStoreWithSelector=function(p,h,y,v,E){var C=s(null);if(C.current===null){var k={hasValue:!1,value:null};C.current=k}else k=C.current;C=f(function(){function M(K){if(!U){if(U=!0,O=K,K=v(K),E!==void 0&&k.hasValue){var G=k.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 P=o(p,C[0],C[1]);return u(function(){k.hasValue=!0,k.value=P},[P]),d(P),P},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var yNe=X((isn,hNe)=>{\"use strict\";c();hNe.exports=mNe()});var JNe=X(wM=>{\"use strict\";c();(function(){function e(F){if(F==null)return null;if(typeof F==\"function\")return F.$$typeof===ie?null:F.displayName||F.name||null;if(typeof F==\"string\")return F;switch(F){case P:return\"Fragment\";case U:return\"Profiler\";case M:return\"StrictMode\";case K:return\"Suspense\";case G:return\"SuspenseList\";case W:return\"Activity\"}if(typeof F==\"object\")switch(typeof F.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),F.$$typeof){case k:return\"Portal\";case N:return F.displayName||\"Context\";case O:return(F._context.displayName||\"Context\")+\".Consumer\";case j:var I=F.render;return F=F.displayName,F||(F=I.displayName||I.name||\"\",F=F!==\"\"?\"ForwardRef(\"+F+\")\":\"ForwardRef\"),F;case J:return I=F.displayName||null,I!==null?I:e(F.type)||\"Memo\";case Y:I=F._payload,F=F._init;try{return e(F(I))}catch{}}return null}function t(F){return\"\"+F}function r(F){try{t(F);var I=!1}catch{I=!0}if(I){I=console;var Z=I.error,me=typeof Symbol==\"function\"&&Symbol.toStringTag&&F[Symbol.toStringTag]||F.constructor.name||\"Object\";return Z.call(I,\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",me),t(F)}}function n(F){if(F===P)return\"<>\";if(typeof F==\"object\"&&F!==null&&F.$$typeof===Y)return\"<...>\";try{var I=e(F);return I?\"<\"+I+\">\":\"<...>\"}catch{return\"<...>\"}}function o(){var F=re.A;return F===null?null:F.getOwner()}function s(){return Error(\"react-stack-top-frame\")}function u(F){if(H.call(F,\"key\")){var I=Object.getOwnPropertyDescriptor(F,\"key\").get;if(I&&I.isReactWarning)return!1}return F.key!==void 0}function f(F,I){function Z(){R||(R=!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))}Z.isReactWarning=!0,Object.defineProperty(F,\"key\",{get:Z,configurable:!0})}function d(){var F=e(this.type);return D[F]||(D[F]=!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.\")),F=this.props.ref,F!==void 0?F:null}function p(F,I,Z,me,ge,Se){var Ce=Z.ref;return F={$$typeof:C,type:F,key:I,props:Z,_owner:me},(Ce!==void 0?Ce:null)!==null?Object.defineProperty(F,\"ref\",{enumerable:!1,get:d}):Object.defineProperty(F,\"ref\",{enumerable:!1,value:null}),F._store={},Object.defineProperty(F._store,\"validated\",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(F,\"_debugInfo\",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(F,\"_debugStack\",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(F,\"_debugTask\",{configurable:!1,enumerable:!1,writable:!0,value:Se}),Object.freeze&&(Object.freeze(F.props),Object.freeze(F)),F}function h(F,I,Z,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(F);var qe=Object.keys(I).filter(function(Ot){return Ot!==\"key\"});me=0<qe.length?\"{key: someKey, \"+qe.join(\": ..., \")+\": ...}\":\"{key: someKey}\",Q[Ce+me]||(qe=0<qe.length?\"{\"+qe.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,qe,Ce),Q[Ce+me]=!0)}if(Ce=null,Z!==void 0&&(r(Z),Ce=\"\"+Z),u(I)&&(r(I.key),Ce=\"\"+I.key),\"key\"in I){Z={};for(var je in I)je!==\"key\"&&(Z[je]=I[je])}else Z=I;return Ce&&f(Z,typeof F==\"function\"?F.displayName||F.name||\"Unknown\":F),p(F,Ce,Z,o(),ge,Se)}function y(F){v(F)?F._store&&(F._store.validated=1):typeof F==\"object\"&&F!==null&&F.$$typeof===Y&&(F._payload.status===\"fulfilled\"?v(F._payload.value)&&F._payload.value._store&&(F._payload.value._store.validated=1):F._store&&(F._store.validated=1))}function v(F){return typeof F==\"object\"&&F!==null&&F.$$typeof===C}var E=oo(),C=Symbol.for(\"react.transitional.element\"),k=Symbol.for(\"react.portal\"),P=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(F){return F()}};var R,D={},L=E.react_stack_bottom_frame.bind(E,s)(),V=T(n(s)),Q={};wM.Fragment=P,wM.jsx=function(F,I,Z){var me=1e4>re.recentlyCreatedOwnerStacks++;return h(F,I,Z,!1,me?Error(\"react-stack-top-frame\"):L,me?T(n(F)):V)},wM.jsxs=function(F,I,Z){var me=1e4>re.recentlyCreatedOwnerStacks++;return h(F,I,Z,!0,me?Error(\"react-stack-top-frame\"):L,me?T(n(F)):V)}})()});var Dl=X((Vun,YNe)=>{\"use strict\";c();YNe.exports=JNe()});var wUe,EUe=x(()=>{c();wUe=\"1.2.3\"});var Io,_6=x(()=>{c();EUe();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@${wUe}`].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 bQ,gQ,SM,cT=x(()=>{c();bQ=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,gQ=/^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)?$/,SM=/^\\\\(.+?\\\\).*?$/});function CM(e){let t=e.type;if(AUe.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+=CM(s),o<r-1&&(t+=\", \")}let n=Mc(AUe,e.type);return t+=`)${n?.array||\"\"}`,CM({...e,type:t})}return\"indexed\"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}var AUe,SUe=x(()=>{c();cT();AUe=/^tuple(?<array>(\\\\[(\\\\d*)\\\\])*)$/});function Rm(e){let t=\"\",r=e.length;for(let n=0;n<r;n++){let o=e[n];t+=CM(o),n!==r-1&&(t+=\", \")}return t}var xQ=x(()=>{c();SUe()});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 CUe=x(()=>{c();xQ()});function _Ue(e){return TUe.test(e)}function kUe(e){return Mc(TUe,e)}function IUe(e){return BUe.test(e)}function PUe(e){return Mc(BUe,e)}function MUe(e){return RUe.test(e)}function OUe(e){return Mc(RUe,e)}function by(e){return NUe.test(e)}function UUe(e){return Mc(NUe,e)}function HUe(e){return DUe.test(e)}function LUe(e){return Mc(DUe,e)}function zUe(e){return FUe.test(e)}function jUe(e){return Mc(FUe,e)}function $Ue(e){return s0t.test(e)}var TUe,BUe,RUe,NUe,DUe,FUe,s0t,vQ,qUe,TM,k6=x(()=>{c();cT();TUe=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;BUe=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;RUe=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\\\s?\\\\((?<returns>.*?)\\\\))?$/;NUe=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\\\{(?<properties>.*?)\\\\}$/;DUe=/^constructor\\\\((?<parameters>.*?)\\\\)(?:\\\\s(?<stateMutability>payable{1}))?$/;FUe=/^fallback\\\\(\\\\) external(?:\\\\s(?<stateMutability>payable{1}))?$/;s0t=/^receive\\\\(\\\\) external payable$/;vQ=new Set([\"memory\",\"indexed\",\"storage\",\"calldata\"]),qUe=new Set([\"indexed\"]),TM=new Set([\"calldata\",\"memory\",\"storage\"])});var _M,kM,BM,IM=x(()=>{c();_6();_M=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\"})}},kM=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\"})}},BM=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 PM,RM,MM,OM,NM,UM,DM=x(()=>{c();_6();PM=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\"})}},RM=class extends Io{constructor({param:t}){super(\"Invalid ABI parameter.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}},MM=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\"})}},OM=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\"})}},NM=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\"})}},UM=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,HM,LM,wQ=x(()=>{c();_6();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\"})}},HM=class extends Io{constructor({signature:t}){super(\"Unknown signature.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSignatureError\"})}},LM=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 FM,GUe=x(()=>{c();_6();FM=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 zM,VUe=x(()=>{c();_6();zM=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 KUe(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 jM,WUe=x(()=>{c();jM=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 uT(e,t={}){if(MUe(e))return c0t(e,t);if(IUe(e))return u0t(e,t);if(_Ue(e))return l0t(e,t);if(HUe(e))return f0t(e,t);if(zUe(e))return d0t(e);if($Ue(e))return{type:\"receive\",stateMutability:\"payable\"};throw new HM({signature:e})}function c0t(e,t={}){let r=OUe(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:TM,structs:t,type:\"function\"}));let u=[];if(r.returns){let f=Vs(r.returns),d=f.length;for(let p=0;p<d;p++)u.push(Hl(f[p],{modifiers:TM,structs:t,type:\"function\"}))}return{name:r.name,type:\"function\",stateMutability:r.stateMutability??\"nonpayable\",inputs:o,outputs:u}}function u0t(e,t={}){let r=PUe(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:qUe,structs:t,type:\"event\"}));return{name:r.name,type:\"event\",inputs:o}}function l0t(e,t={}){let r=kUe(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 f0t(e,t={}){let r=LUe(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 d0t(e){let t=jUe(e);if(!t)throw new kd({signature:e,type:\"fallback\"});return{type:\"fallback\",stateMutability:t.stateMutability??\"nonpayable\"}}function Hl(e,t){let r=KUe(e,t?.type,t?.structs);if(jM.has(r))return jM.get(r);let n=SM.test(e),o=Mc(n?m0t:p0t,e);if(!o)throw new RM({param:e});if(o.name&&b0t(o.name))throw new MM({param:e,name:o.name});let s=o.name?{name:o.name}:{},u=o.modifier===\"indexed\"?{indexed:!0}:{},f=t?.structs??{},d,p={};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}));p={components:v}}else if(o.type in f)d=\"tuple\",p={components:f[o.type]};else if(h0t.test(o.type))d=`${o.type}256`;else if(o.type===\"address payable\")d=\"address\";else if(d=o.type,t?.type!==\"struct\"&&!EQ(d))throw new BM({type:d});if(o.modifier){if(!t?.modifiers?.has?.(o.modifier))throw new OM({param:e,type:t?.type,modifier:o.modifier});if(TM.has(o.modifier)&&!g0t(d,!!o.array))throw new NM({param:e,type:t?.type,modifier:o.modifier})}let h={type:`${d}${o.array??\"\"}`,...s,...u,...p};return jM.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 zM({current:r,depth:n});return t.push(r.trim()),t}function EQ(e){return e===\"address\"||e===\"bool\"||e===\"function\"||e===\"string\"||bQ.test(e)||gQ.test(e)}function b0t(e){return e===\"address\"||e===\"bool\"||e===\"function\"||e===\"string\"||e===\"tuple\"||bQ.test(e)||gQ.test(e)||y0t.test(e)}function g0t(e,t){return t||e===\"bytes\"||e===\"string\"||e===\"tuple\"}var p0t,m0t,h0t,y0t,B6=x(()=>{c();cT();IM();DM();wQ();VUe();WUe();k6();p0t=/^(?<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$_]*))?$/,m0t=/^\\\\((?<type>.+?)\\\\)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h0t=/^u?int$/;y0t=/^(?: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 I6(e){let t={},r=e.length;for(let u=0;u<r;u++){let f=e[u];if(!by(f))continue;let d=UUe(f);if(!d)throw new kd({signature:f,type:\"struct\"});let p=d.properties.split(\";\"),h=[],y=p.length;for(let v=0;v<y;v++){let C=p[v].trim();if(!C)continue;let k=Hl(C,{type:\"struct\"});h.push(k)}if(!h.length)throw new LM({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]=QUe(d,t)}return n}function QUe(e=[],t={},r=new Set){let n=[],o=e.length;for(let s=0;s<o;s++){let u=e[s];if(SM.test(u.type))n.push(u);else{let d=Mc(x0t,u.type);if(!d?.type)throw new UM({abiParameter:u});let{array:p,type:h}=d;if(h in t){if(r.has(h))throw new FM({type:h});n.push({...u,type:`tuple${p??\"\"}`,components:QUe(t[h],t,new Set([...r,h]))})}else if(EQ(h))n.push(u);else throw new kM({type:h})}}return n}var x0t,$M=x(()=>{c();cT();IM();DM();wQ();GUe();k6();B6();x0t=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?$/});function qM(e){let t=I6(e),r=[],n=e.length;for(let o=0;o<n;o++){let s=e[o];by(s)||r.push(uT(s,t))}return r}var ZUe=x(()=>{c();k6();$M();B6()});function GM(e){let t;if(typeof e==\"string\")t=uT(e);else{let r=I6(e),n=e.length;for(let o=0;o<n;o++){let s=e[o];if(!by(s)){t=uT(s,r);break}}}if(!t)throw new _M({signature:e});return t}var JUe=x(()=>{c();IM();k6();$M();B6()});function VM(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:vQ}))}else{let r=I6(e),n=e.length;for(let o=0;o<n;o++){let s=e[o];if(by(s))continue;let u=Vs(s),f=u.length;for(let d=0;d<f;d++)t.push(Hl(u[d],{modifiers:vQ,structs:r}))}}if(t.length===0)throw new PM({params:e});return t}var YUe=x(()=>{c();DM();k6();$M();B6();B6()});var lT=x(()=>{c();CUe();xQ();ZUe();JUe();YUe()});function la(e,{includeName:t=!1}={}){if(e.type!==\"function\"&&e.type!==\"event\"&&e.type!==\"error\")throw new KM(e.type);return`${e.name}(${fT(e.inputs,{includeName:t})})`}function fT(e,{includeName:t=!1}={}){return e?e.map(r=>v0t(r,{includeName:t})).join(t?\", \":\",\"):\"\"}function v0t(e,{includeName:t}){return e.type.startsWith(\"tuple\")?`(${fT(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 AQ,eDe=x(()=>{c();AQ=\"2.48.11\"});function tDe(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause!==void 0?tDe(e.cause,t):t?null:e}var SQ,be,xr=x(()=>{c();eDe();SQ={getDocsUrl:({docsBaseUrl:e,docsPath:t=\"\",docsSlug:r})=>t?`${e??\"https://viem.sh\"}${t}${r?`#${r}`:\"\"}`:void 0,version:`viem@${AQ}`},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=SQ.getDocsUrl?.({...r,docsPath:o}),u=[t||\"An error occurred.\",\"\",...r.metaMessages?[...r.metaMessages,\"\"]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...SQ.version?[`Version: ${SQ.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=AQ}walk(t){return tDe(this,t)}}});var WM,dT,P6,Eu,QM,ZM,JM,YM,pT,R6,XM,eO,mT,Fl,M6,tO,rO,nO,Om,gy,oO,aO,O6,KM,Po=x(()=>{c();Mm();wu();xr();WM=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\"})}},dT=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\"})}},P6=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: (${fT(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})}},QM=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\"})}},ZM=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\"})}},JM=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\"})}},YM=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\"})}},pT=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\"})}},R6=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}},XM=class extends be{constructor({docsPath:t}){super(\"Cannot extract event signature from empty topics.\",{docsPath:t,name:\"AbiEventSignatureEmptyTopicsError\"})}},eO=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\"})}},mT=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\"})}},Fl=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\"})}},M6=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\"})}},tO=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\"})}},rO=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\"})}},nO=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: (${fT(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}},gy=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}},oO=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\"})}},aO=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\"})}},O6=class extends be{constructor(t){super([`Value \"${t}\" is not a valid array.`].join(`\\n`),{name:\"InvalidArrayError\"})}},KM=class extends be{constructor(t){super([`\"${t}\" is not a valid definition type.`,\\'Valid types: \"function\", \"event\", \"error\"\\'].join(`\\n`),{name:\"InvalidDefinitionTypeError\"})}}});var hT,yT,bT,sO=x(()=>{c();xr();hT=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\"})}},yT=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\"})}},bT=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 xy(e,{dir:t,size:r=32}={}){return typeof e==\"string\"?Nm(e,{dir:t,size:r}):w0t(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 yT({size:Math.ceil(n.length/2),targetSize:r,type:\"hex\"});return`0x${n[t===\"right\"?\"padEnd\":\"padStart\"](r*2,\"0\")}`}function w0t(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new yT({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 cO=x(()=>{c();sO()});var vy,uO,lO,fO,gT=x(()=>{c();xr();vy=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\"})}},uO=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\"})}},lO=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\"})}},fO=class extends be{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`,{name:\"SizeOverflowError\"})}}});function zl(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 xT=x(()=>{c()});function Ks(e,{size:t}){if(wr(e)>t)throw new fO({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 CQ(e,t={}){let r=e;if(t.size&&(Ks(r,{size:t.size}),r=zl(r)),zl(r)===\"0x00\")return!1;if(zl(r)===\"0x01\")return!0;throw new lO(r)}function Sa(e,t={}){let r=Va(e,t),n=Number(r);if(!Number.isSafeInteger(n))throw new vy({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();gT();wu();xT()});function Wo(e,t={}){return typeof e==\"number\"||typeof e==\"bigint\"?ze(e,t):typeof e==\"string\"?Cg(e,t):typeof e==\"boolean\"?dO(e,t):Or(e,t)}function dO(e,t={}){let r=`0x${Number(e)}`;return typeof t.size==\"number\"?(Ks(r,{size:t.size}),xy(r,{size:t.size})):r}function Or(e,t={}){let r=\"\";for(let o=0;o<e.length;o++)r+=E0t[e[o]];let n=`0x${r}`;return typeof t.size==\"number\"?(Ks(n,{size:t.size}),xy(n,{dir:\"right\",size:t.size})):n}function ze(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 vy({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?xy(f,{size:n}):f}function Cg(e,t={}){let r=A0t.encode(e);return Or(r,t)}var E0t,A0t,Ht=x(()=>{c();gT();cO();os();E0t=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\"?T0t(e,t):typeof e==\"boolean\"?C0t(e,t):Ro(e)?Ka(e,t):jl(e,t)}function C0t(e,t={}){let r=new Uint8Array(1);return r[0]=Number(e),typeof t.size==\"number\"?(Ks(r,{size:t.size}),xy(r,{size:t.size})):r}function rDe(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=xy(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=rDe(n.charCodeAt(f++)),p=rDe(n.charCodeAt(f++));if(d===void 0||p===void 0)throw new be(`Invalid byte sequence (\"${n[f-2]}${n[f-1]}\" in \"${n}\").`);s[u]=d*16+p}return s}function T0t(e,t){let r=ze(e,t);return Ka(r)}function jl(e,t={}){let r=S0t.encode(e);return typeof t.size==\"number\"?(Ks(r,{size:t.size}),xy(r,{dir:\"right\",size:t.size})):r}var S0t,Um,Wa=x(()=>{c();xr();Ll();cO();os();Ht();S0t=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 $l=x(()=>{c();Av();Ll();Wa();Ht()});function nDe(e){return _0t(e)}var _0t,oDe=x(()=>{c();Wa();$l();_0t=e=>Tn(Au(e))});function aDe(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 iDe=x(()=>{c();xr()});var sDe,cDe=x(()=>{c();lT();iDe();sDe=e=>{let t=typeof e==\"string\"?e:Sg(e);return aDe(t)}});function pO(e){return nDe(sDe(e))}var TQ=x(()=>{c();oDe();cDe()});var wy,vT=x(()=>{c();TQ();wy=pO});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,wT=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 Ey(e,t){if(_Q.has(`${e}.${t}`))return _Q.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 _Q.set(`${e}.${t}`,s),s}function Nn(e,t){if(!Qo(e,{strict:!1}))throw new yi({address:e});return Ey(e,t)}var _Q,Ay=x(()=>{c();Tg();Wa();$l();wT();Dm();_Q=new Bd(8192)});function Qo(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(kQ.has(n))return kQ.get(n);let o=k0t.test(e)?e.toLowerCase()===e?!0:r?Ey(e)===e:!0:!1;return kQ.set(n,o),o}var k0t,kQ,Dm=x(()=>{c();wT();Ay();k0t=/^0x[a-fA-F0-9]{40}$/,kQ=new Bd(8192)});function Qa(e){return typeof e[0]==\"string\"?ql(e):B0t(e)}function B0t(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 ql(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})?I0t(e,t,r,{strict:n}):BQ(e,t,r,{strict:n})}function uDe(e,t){if(typeof t==\"number\"&&t>0&&t>wr(e)-1)throw new hT({offset:t,position:\"start\",size:wr(e)})}function lDe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&wr(e)!==r-t)throw new hT({offset:r,position:\"end\",size:wr(e)})}function BQ(e,t,r,{strict:n}={}){uDe(e,t);let o=e.slice(t,r);return n&&lDe(o,t,r),o}function I0t(e,t,r,{strict:n}={}){uDe(e,t);let o=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(r??e.length)*2)}`;return n&&lDe(o,t,r),o}var _g=x(()=>{c();sO();Ll();wu()});var fDe,mO,IQ=x(()=>{c();fDe=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,mO=/^(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 JM({expectedLength:e.length,givenLength:t.length});let r=P0t({params:e,values:t}),n=RQ(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(PQ({param:e[n],value:t[n]}));return r}function PQ({param:e,value:t}){let r=hO(e.type);if(r){let[n,o]=r;return M0t(t,{length:n,param:{...e,type:o}})}if(e.type===\"tuple\")return H0t(t,{param:e});if(e.type===\"address\")return R0t(t);if(e.type===\"bool\")return N0t(t);if(e.type.startsWith(\"uint\")||e.type.startsWith(\"int\")){let n=e.type.startsWith(\"int\"),[,,o=\"256\"]=mO.exec(e.type)??[];return U0t(t,{signed:n,size:Number(o)})}if(e.type.startsWith(\"bytes\"))return O0t(t,{param:e});if(e.type===\"string\")return D0t(t);throw new oO(e.type,{docsPath:\"/docs/contract/encodeAbiParameters\"})}function RQ(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(ze(t+o,{size:32})),n.push(f),o+=wr(f)):r.push(f)}return Qa([...r,...n])}function R0t(e){if(!Qo(e))throw new yi({address:e});return{dynamic:!1,encoded:Nm(e.toLowerCase())}}function M0t(e,{length:t,param:r}){let n=t===null;if(!Array.isArray(e))throw new O6(e);if(!n&&e.length!==t)throw new QM({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let o=!1,s=[];for(let u=0;u<e.length;u++){let f=PQ({param:r,value:e[u]});f.dynamic&&(o=!0),s.push(f)}if(n||o){let u=RQ(s);if(n){let f=ze(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 O0t(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(ze(n,{size:32})),o])}}if(n!==Number.parseInt(r,10))throw new ZM({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:Nm(e,{dir:\"right\"})}}function N0t(e){if(typeof e!=\"boolean\")throw new be(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:Nm(dO(e))}}function U0t(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 vy({max:n.toString(),min:o.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:ze(e,{size:32,signed:t})}}function D0t(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(ze(wr(t),{size:32})),...n])}}function H0t(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=PQ({param:s,value:e[u]});n.push(f),f.dynamic&&(r=!0)}return{dynamic:r,encoded:r?RQ(n):Qa(n.map(({encoded:o})=>o))}}function hO(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();gT();Dm();Su();cO();wu();_g();Ht();IQ()});var Id,N6=x(()=>{c();_g();TQ();Id=e=>Cu(pO(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\"?wy(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((p,h)=>{let y=\"inputs\"in f&&f.inputs[h];return y?MQ(p,y):!1})){if(u&&\"inputs\"in u&&u.inputs){let p=dDe(f.inputs,u.inputs,r);if(p)throw new rO({abiItem:f,type:p[0]},{abiItem:u,type:p[1]})}u=f}}return u||s[0]}function MQ(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\"&&MQ(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=>MQ(o,{...t,type:n.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function dDe(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 dDe(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 Sy=x(()=>{c();Po();Ll();Dm();vT();N6()});function jn(e){return typeof e==\"string\"?{address:e,type:\"json-rpc\"}:e}var Oc=x(()=>{c()});function yDe(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 Fl(n,{docsPath:hDe});o=s}if(o.type!==\"function\")throw new Fl(void 0,{docsPath:hDe});return{abi:[o],functionName:Id(la(o))}}var hDe,bDe=x(()=>{c();Po();N6();Mm();Sy();hDe=\"/docs/contract/encodeFunctionData\"});function _n(e){let{args:t}=e,{abi:r,functionName:n}=e.abi.length===1&&e.functionName?.startsWith(\"0x\")?e:yDe(e),o=r[0],s=n,u=\"inputs\"in o&&o.inputs?as(o.inputs,t??[]):void 0;return ql([s,u??\"0x\"])}var Nc=x(()=>{c();Su();Hm();bDe()});var gDe,bO,xDe,gO=x(()=>{c();gDe={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.\"},bO={inputs:[{name:\"message\",type:\"string\"}],name:\"Error\",type:\"error\"},xDe={inputs:[{name:\"reason\",type:\"uint256\"}],name:\"Panic\",type:\"error\"}});var ET,U6,xO,OQ=x(()=>{c();xr();ET=class extends be{constructor({offset:t}){super(`Offset \\\\`${t}\\\\` cannot be negative.`,{name:\"NegativeOffsetError\"})}},U6=class extends be{constructor({length:t,position:r}){super(`Position \\\\`${r}\\\\` is out of bounds (\\\\`0 < position < ${t}\\\\`).`,{name:\"PositionOutOfBoundsError\"})}},xO=class extends be{constructor({count:t,limit:r}){super(`Recursive read limit of \\\\`${r}\\\\` exceeded (recursive read count: \\\\`${t}\\\\`).`,{name:\"RecursiveReadLimitExceededError\"})}}});function D6(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(L0t);return r.bytes=e,r.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}var L0t,vO=x(()=>{c();OQ();L0t={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 xO({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new U6({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new ET({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 ET({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 vDe(e,t={}){typeof t.size<\"u\"&&Ks(e,{size:t.size});let r=Or(e,t);return Va(r,t)}function wDe(e,t={}){let r=e;if(typeof t.size<\"u\"&&(Ks(r,{size:t.size}),r=zl(r)),r.length>1||r[0]>1)throw new uO(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 EDe(e,t={}){let r=e;return typeof t.size<\"u\"&&(Ks(r,{size:t.size}),r=zl(r,{dir:\"right\"})),new TextDecoder().decode(r)}var ADe=x(()=>{c();gT();xT();os();Ht()});function Lm(e,t){let r=typeof t==\"string\"?Ka(t):t,n=D6(r);if(wr(r)===0&&e.length>0)throw new Eu;if(wr(t)&&wr(t)<32)throw new P6({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,p]=H6(n,f,{staticPosition:0});o+=p,s.push(d)}return s}function H6(e,t,{staticPosition:r}){let n=hO(t.type);if(n){let[o,s]=n;return z0t(e,{...t,type:s},{length:o,staticPosition:r})}if(t.type===\"tuple\")return G0t(e,t,{staticPosition:r});if(t.type===\"address\")return F0t(e);if(t.type===\"bool\")return j0t(e);if(t.type.startsWith(\"bytes\"))return $0t(e,t,{staticPosition:r});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return q0t(e,t);if(t.type===\"string\")return V0t(e,{staticPosition:r});throw new aO(t.type,{docsPath:\"/docs/contract/decodeAbiParameters\"})}function F0t(e){let t=e.readBytes(32);return[Ey(Or(BQ(t,-20))),32]}function z0t(e,t,{length:r,staticPosition:n}){if(!r){let u=Rd(e.readBytes(NQ)),f=n+u,d=f+SDe;e.setPosition(f);let p=Rd(e.readBytes(SDe)),h=AT(t),y=0,v=[];for(let E=0;E<p;++E){e.setPosition(d+(h?E*32:y));let[C,k]=H6(e,t,{staticPosition:d});y+=k,v.push(C)}return e.setPosition(n+32),[v,32]}if(AT(t)){let u=Rd(e.readBytes(NQ)),f=n+u,d=[];for(let p=0;p<r;++p){e.setPosition(f+p*32);let[h]=H6(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]=H6(e,t,{staticPosition:n+o});o+=d,s.push(f)}return[s,o]}function j0t(e){return[wDe(e.readBytes(32),{size:32}),32]}function $0t(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 q0t(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?vDe(o,{signed:r}):Rd(o,{signed:r}),32]}function G0t(e,t,{staticPosition:r}){let n=t.components.length===0||t.components.some(({name:u})=>!u),o=n?[]:{},s=0;if(AT(t)){let u=Rd(e.readBytes(NQ)),f=r+u;for(let d=0;d<t.components.length;++d){let p=t.components[d];e.setPosition(f+s);let[h,y]=H6(e,p,{staticPosition:f});s+=y,o[n?d:p?.name]=h}return e.setPosition(r+32),[o,32]}for(let u=0;u<t.components.length;++u){let f=t.components[u],[d,p]=H6(e,f,{staticPosition:r});o[n?u:f?.name]=d,s+=p}return[o,s]}function V0t(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=EDe(zl(s));return e.setPosition(t+32),[u,32]}function AT(e){let{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(AT);let r=hO(e.type);return!!(r&&AT({...e,type:r[1]}))}var SDe,NQ,ST=x(()=>{c();Po();Ay();vO();wu();_g();xT();ADe();Wa();Ht();Hm();SDe=32,NQ=32});function wO(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||[],bO,xDe].find(f=>f.type===\"error\"&&o===Id(la(f)));if(!u)throw new R6(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 UQ=x(()=>{c();gO();Po();_g();N6();ST();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 DQ({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 CDe=x(()=>{c();Qs()});var TDe,_De,HQ=x(()=>{c();TDe={gwei:9,wei:18},_De={ether:-9,wei:9}});function EO(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 LQ=x(()=>{c()});function L6(e,t=\"wei\"){return EO(e,TDe[t])}var AO=x(()=>{c();HQ();LQ()});function fa(e,t=\"wei\"){return EO(e,_De[t])}var F6=x(()=>{c();HQ();LQ()});function kDe(e){return e.reduce((t,{slot:r,value:n})=>`${t}        ${r}: ${n}\\n`,\"\")}function BDe(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+=kDe(n.state)),n.stateDiff&&(o+=`      stateDiff:\\n`,o+=kDe(n.stateDiff)),o},`  State Override:\\n`).slice(0,-1)}var SO,CO,FQ=x(()=>{c();xr();SO=class extends be{constructor({address:t}){super(`State for account \"${t}\" is set multiple times.`,{name:\"AccountStateConflictError\"})}},CO=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 TO,_O,z6,j6,kO,BO,Fm=x(()=>{c();AO();F6();xr();TO=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\"})}},_O=class extends be{constructor(t,{account:r,docsPath:n,chain:o,data:s,gas:u,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:p,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\"&&`${L6(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 p<\"u\"&&`${fa(p)} 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}},z6=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\"})}},j6=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\"})}},kO=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}},BO=class extends be{constructor({hash:t}){super(`Timed out while waiting for transaction with hash \"${t}\" to be confirmed.`,{name:\"WaitForTransactionReceiptTimeoutError\"})}}});var IDe,Bg,IO=x(()=>{c();IDe=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,q6,Ig,PO,RO,Md,Ty=x(()=>{c();Oc();gO();UQ();Mm();CDe();Sy();AO();F6();Po();xr();FQ();Fm();IO();$6=class extends be{constructor(t,{account:r,docsPath:n,chain:o,data:s,gas:u,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,to:y,value:v,stateOverride:E}){let C=r?jn(r):void 0,k=kg({from:C?.address,to:y,value:typeof v<\"u\"&&`${L6(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 p<\"u\"&&`${fa(p)} gwei`,nonce:h});E&&(k+=`\\n${BDe(E)}`),super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Raw Call Arguments:\",k].filter(Boolean),name:\"CallExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},q6=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}),p=d?DQ({abiItem:d,args:n,includeFunctionName:!1,includeName:!1}):void 0,h=d?la(d,{includeName:!0}):void 0,y=kg({address:o&&IDe(o),function:h,args:p&&p!==\"()\"&&`${[...Array(u?.length??0).keys()].map(()=>\" \").join(\"\")}${p}`,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,p;if(r&&r!==\"0x\")try{f=wO({abi:t,data:r,cause:s});let{abiItem:y,errorName:v,args:E}=f;if(v===\"Error\")p=E[0];else if(v===\"Panic\"){let[C]=E;p=gDe[C]}else{let C=y?la(y,{includeName:!0}):void 0,k=y&&E?DQ({abiItem:y,args:E,includeFunctionName:!1,includeName:!1}):void 0;d=[C?`Error: ${C}`:\"\",k&&k!==\"()\"?`       ${[...Array(v?.length??0).keys()].map(()=>\" \").join(\"\")}${k}`:\"\"]}}catch(y){u=y}else o&&(p=o);let h;u instanceof R6&&(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(p&&p!==\"execution reverted\"||h?[`The contract function \"${n}\" reverted with the following ${h?\"signature\":\"reason\"}:`,p||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=p,this.signature=h}},PO=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})}},RO=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,_y,CT,Pg=x(()=>{c();Qs();xr();IO();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}},_y=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}},CT=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 K0t,bi,gi,G6,V6,K6,W6,zm,_u,Q6,Z6,J6,ky,Rg,Y6,Mg,X6,e5,t5,r5,n5,o5,a5,i5,s5,c5,u5,l5,f5,MO,TT=x(()=>{c();xr();Pg();K0t=-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 _y?t.code:r??K0t}},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}},G6=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(G6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});V6=class e extends bi{constructor(t){super(t,{code:e.code,name:\"InvalidRequestRpcError\",shortMessage:\"JSON is not a valid request object.\"})}};Object.defineProperty(V6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});K6=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(K6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});W6=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(W6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});zm=class e extends bi{constructor(t){super(t,{code:e.code,name:\"InternalRpcError\",shortMessage:\"An internal error was received.\"})}};Object.defineProperty(zm,\"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});Q6=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(Q6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});Z6=class e extends bi{constructor(t){super(t,{code:e.code,name:\"ResourceUnavailableRpcError\",shortMessage:\"Requested resource not available.\"})}};Object.defineProperty(Z6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});J6=class e extends bi{constructor(t){super(t,{code:e.code,name:\"TransactionRejectedRpcError\",shortMessage:\"Transaction creation failed.\"})}};Object.defineProperty(J6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});ky=class e extends bi{constructor(t,{method:r}={}){super(t,{code:e.code,name:\"MethodNotSupportedRpcError\",shortMessage:`Method${r?` \"${r}\"`:\"\"} is not supported.`})}};Object.defineProperty(ky,\"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});Y6=class e extends bi{constructor(t){super(t,{code:e.code,name:\"JsonRpcVersionUnsupportedError\",shortMessage:\"Version of JSON-RPC protocol is not supported.\"})}};Object.defineProperty(Y6,\"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});X6=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(X6,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});e5=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(e5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});t5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"ProviderDisconnectedError\",shortMessage:\"The Provider is disconnected from all chains.\"})}};Object.defineProperty(t5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});r5=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(r5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901});n5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"SwitchChainError\",shortMessage:\"An error occurred when attempting to switch chain.\"})}};Object.defineProperty(n5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4902});o5=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(o5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5700});a5=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(a5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5710});i5=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(i5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5720});s5=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(s5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5730});c5=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(c5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5740});u5=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(u5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5750});l5=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(l5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5760});f5=class e extends gi{constructor(t){super(t,{code:e.code,name:\"WalletConnectSessionSettlementError\",shortMessage:\"WalletConnect session settlement failed.\"})}};Object.defineProperty(f5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:7e3});MO=class extends bi{constructor(t){super(t,{name:\"UnknownRpcError\",shortMessage:\"An unknown RPC error occurred.\"})}}});var jm,By,d5,p5,m5,h5,y5,b5,g5,x5,Iy,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/});By=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(By,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\\\\^256-1|fee cap higher than 2\\\\^256-1/});d5=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(d5,\"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/});p5=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(p5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});m5=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(m5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});h5=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(h5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});y5=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(y5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});b5=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(b5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});g5=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(g5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});x5=class extends be{constructor({cause:t}){super(\"The transaction type is not supported for this chain.\",{cause:t,name:\"TransactionTypeNotSupportedError\"})}};Object.defineProperty(x5,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});Iy=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(Iy,\"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 Py(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}):By.nodeMessage.test(r)?new By({cause:e,maxFeePerGas:t?.maxFeePerGas}):d5.nodeMessage.test(r)?new d5({cause:e,maxFeePerGas:t?.maxFeePerGas}):p5.nodeMessage.test(r)?new p5({cause:e,nonce:t?.nonce}):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}):b5.nodeMessage.test(r)?new b5({cause:e,gas:t?.gas}):g5.nodeMessage.test(r)?new g5({cause:e,gas:t?.gas}):x5.nodeMessage.test(r)?new x5({cause:e}):Iy.nodeMessage.test(r)?new Iy({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new ku({cause:e})}var kT=x(()=>{c();xr();Og()});function Ry(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 BT=x(()=>{c()});function Od(e,t){let r={};return typeof e.authorizationList<\"u\"&&(r.authorizationList=Y0t(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=ze(e.gas)),typeof e.gasPrice<\"u\"&&(r.gasPrice=ze(e.gasPrice)),typeof e.maxFeePerBlobGas<\"u\"&&(r.maxFeePerBlobGas=ze(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<\"u\"&&(r.maxFeePerGas=ze(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<\"u\"&&(r.maxPriorityFeePerGas=ze(e.maxPriorityFeePerGas)),typeof e.nonce<\"u\"&&(r.nonce=ze(e.nonce)),typeof e.to<\"u\"&&(r.to=e.to),typeof e.type<\"u\"&&(r.type=J0t[e.type]),typeof e.value<\"u\"&&(r.value=ze(e.value)),r}function Y0t(e){return e.map(t=>({address:t.address,r:t.r?ze(BigInt(t.r)):t.r,s:t.s?ze(BigInt(t.s)):t.s,chainId:ze(t.chainId),nonce:ze(t.nonce),...typeof t.yParity<\"u\"?{yParity:ze(t.yParity)}:{},...typeof t.v<\"u\"&&typeof t.yParity>\"u\"?{v:ze(t.v)}:{}}))}var J0t,v5=x(()=>{c();Ht();J0t={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"}});function LDe(e){if(!(!e||e.length===0))return e.reduce((t,{slot:r,value:n})=>{if(r.length!==66)throw new bT({size:r.length,targetSize:66,type:\"hex\"});if(n.length!==66)throw new bT({size:n.length,targetSize:66,type:\"hex\"});return t[r]=n,t},{})}function X0t(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=ze(t)),r!==void 0&&(u.nonce=ze(r)),n!==void 0&&(u.state=LDe(n)),o!==void 0){if(u.state)throw new CO;u.stateDiff=LDe(o)}return u}function w5(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 SO({address:r});t[r]=X0t(n)}return t}var UO=x(()=>{c();Tg();sO();FQ();Dm();Ht()});var 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,Fyt,zyt,jyt,$yt,qyt,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,Abt,Sbt,Cbt,Tbt,_bt,kbt,Bbt,Ibt,Pbt,Rbt,Mbt,Obt,Nbt,Ubt,Dbt,Hbt,Lbt,Fbt,E5,zQ=x(()=>{c();eyt=2n**(8n-1n)-1n,tyt=2n**(16n-1n)-1n,ryt=2n**(24n-1n)-1n,nyt=2n**(32n-1n)-1n,oyt=2n**(40n-1n)-1n,ayt=2n**(48n-1n)-1n,iyt=2n**(56n-1n)-1n,syt=2n**(64n-1n)-1n,cyt=2n**(72n-1n)-1n,uyt=2n**(80n-1n)-1n,lyt=2n**(88n-1n)-1n,fyt=2n**(96n-1n)-1n,dyt=2n**(104n-1n)-1n,pyt=2n**(112n-1n)-1n,myt=2n**(120n-1n)-1n,hyt=2n**(128n-1n)-1n,yyt=2n**(136n-1n)-1n,byt=2n**(144n-1n)-1n,gyt=2n**(152n-1n)-1n,xyt=2n**(160n-1n)-1n,vyt=2n**(168n-1n)-1n,wyt=2n**(176n-1n)-1n,Eyt=2n**(184n-1n)-1n,Ayt=2n**(192n-1n)-1n,Syt=2n**(200n-1n)-1n,Cyt=2n**(208n-1n)-1n,Tyt=2n**(216n-1n)-1n,_yt=2n**(224n-1n)-1n,kyt=2n**(232n-1n)-1n,Byt=2n**(240n-1n)-1n,Iyt=2n**(248n-1n)-1n,Pyt=2n**(256n-1n)-1n,Ryt=-(2n**(8n-1n)),Myt=-(2n**(16n-1n)),Oyt=-(2n**(24n-1n)),Nyt=-(2n**(32n-1n)),Uyt=-(2n**(40n-1n)),Dyt=-(2n**(48n-1n)),Hyt=-(2n**(56n-1n)),Lyt=-(2n**(64n-1n)),Fyt=-(2n**(72n-1n)),zyt=-(2n**(80n-1n)),jyt=-(2n**(88n-1n)),$yt=-(2n**(96n-1n)),qyt=-(2n**(104n-1n)),Gyt=-(2n**(112n-1n)),Vyt=-(2n**(120n-1n)),Kyt=-(2n**(128n-1n)),Wyt=-(2n**(136n-1n)),Qyt=-(2n**(144n-1n)),Zyt=-(2n**(152n-1n)),Jyt=-(2n**(160n-1n)),Yyt=-(2n**(168n-1n)),Xyt=-(2n**(176n-1n)),ebt=-(2n**(184n-1n)),tbt=-(2n**(192n-1n)),rbt=-(2n**(200n-1n)),nbt=-(2n**(208n-1n)),obt=-(2n**(216n-1n)),abt=-(2n**(224n-1n)),ibt=-(2n**(232n-1n)),sbt=-(2n**(240n-1n)),cbt=-(2n**(248n-1n)),ubt=-(2n**(256n-1n)),lbt=2n**8n-1n,fbt=2n**16n-1n,dbt=2n**24n-1n,pbt=2n**32n-1n,mbt=2n**40n-1n,hbt=2n**48n-1n,ybt=2n**56n-1n,bbt=2n**64n-1n,gbt=2n**72n-1n,xbt=2n**80n-1n,vbt=2n**88n-1n,wbt=2n**96n-1n,Ebt=2n**104n-1n,Abt=2n**112n-1n,Sbt=2n**120n-1n,Cbt=2n**128n-1n,Tbt=2n**136n-1n,_bt=2n**144n-1n,kbt=2n**152n-1n,Bbt=2n**160n-1n,Ibt=2n**168n-1n,Pbt=2n**176n-1n,Rbt=2n**184n-1n,Mbt=2n**192n-1n,Obt=2n**200n-1n,Nbt=2n**208n-1n,Ubt=2n**216n-1n,Dbt=2n**224n-1n,Hbt=2n**232n-1n,Lbt=2n**240n-1n,Fbt=2n**248n-1n,E5=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>E5)throw new By({maxFeePerGas:r});if(n&&r&&n>r)throw new Iy({maxFeePerGas:r,maxPriorityFeePerGas:n})}var Ng=x(()=>{c();Oc();zQ();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 B5=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 Fl(n,{docsPath:GQ});s=f}if(s.type!==\"function\")throw new Fl(void 0,{docsPath:GQ});if(!s.outputs)throw new M6(s.name,{docsPath:GQ});let u=Lm(s.outputs,o);if(u&&u.length>1)return u;if(u&&u.length===1)return u[0]}var GQ,$m=x(()=>{c();Po();ST();Sy();GQ=\"/docs/contract/decodeFunctionResult\"});var YDe,XDe=x(()=>{c();YDe=\"0.1.1\"});function eHe(){return YDe}var tHe=x(()=>{c();XDe()});function rHe(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?rHe(e.cause,t):t?null:e}var rt,Zs=x(()=>{c();tHe();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,p=[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(p,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 rHe(this,t)}};Object.defineProperty(rt,\"defaultStaticOptions\",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:\"https://oxlib.sh\",showVersion:!1,version:`ox@${eHe()}`}});rt.setStaticOptions(rt.defaultStaticOptions)});function R5(e,t){if(Iu(e)>t)throw new WO({givenSize:Iu(e),maxSize:t})}function nHe(e,t){if(typeof t==\"number\"&&t>0&&t>Iu(e)-1)throw new IT({offset:t,position:\"start\",size:Iu(e)})}function oHe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&Iu(e)!==r-t)throw new IT({offset:r,position:\"end\",size:Iu(e)})}function VQ(e){if(e>=qm.zero&&e<=qm.nine)return e-qm.zero;if(e>=qm.A&&e<=qm.F)return e-(qm.A-10);if(e>=qm.a&&e<=qm.f)return e-(qm.a-10)}function aHe(e,t={}){let{dir:r,size:n=32}=t;if(n===0)return e;if(e.length>n)throw new QO({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 KQ(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 qm,iHe=x(()=>{c();Oy();qm={zero:48,nine:57,A:65,F:70,a:97,f:102}});function M5(e,t){if(Yn(e)>t)throw new ZO({givenSize:Yn(e),maxSize:t})}function sHe(e,t){if(typeof t==\"number\"&&t>0&&t>Yn(e)-1)throw new PT({offset:t,position:\"start\",size:Yn(e)})}function cHe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&Yn(e)!==r-t)throw new PT({offset:r,position:\"end\",size:Yn(e)})}function WQ(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 JO({size:Math.ceil(o.length/2),targetSize:n,type:\"Hex\"});return`0x${o[r===\"right\"?\"padEnd\":\"padStart\"](n*2,\"0\")}`}function uHe(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 QQ=x(()=>{c();_a()});function Ny(e,t,r){return JSON.stringify(e,(n,o)=>typeof t==\"function\"?t(n,o):typeof o==\"bigint\"?o.toString()+Kbt:o,r)}var Kbt,RT=x(()=>{c();Kbt=\"#__bigint\"});function Zbt(e){if(!(e instanceof Uint8Array)){if(!e)throw new O5(e);if(typeof e!=\"object\")throw new O5(e);if(!(\"BYTES_PER_ELEMENT\"in e))throw new O5(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!==\"Uint8Array\")throw new O5(e)}}function fHe(e){return e instanceof Uint8Array?e:typeof e==\"string\"?N5(e):Jbt(e)}function Jbt(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function N5(e,t={}){let{size:r}=t,n=e;r&&(M5(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 p=VQ(o.charCodeAt(d++)),h=VQ(o.charCodeAt(d++));if(p===void 0||h===void 0)throw new rt(`Invalid byte sequence (\"${o[d-2]}${o[d-1]}\" in \"${o}\").`);u[f]=p<<4|h}return u}function dHe(e,t={}){let{size:r}=t,n=Qbt.encode(e);return typeof r==\"number\"?(R5(n,r),Ybt(n,r)):n}function Ybt(e,t){return aHe(e,{dir:\"right\",size:t})}function Iu(e){return e.length}function pHe(e,t,r,n={}){let{strict:o}=n;nHe(e,t);let s=e.slice(t,r);return o&&oHe(s,t,r),s}function mHe(e,t={}){let{size:r}=t;typeof r<\"u\"&&R5(e,r);let n=Mo(e,t);return YQ(n,t)}function hHe(e,t={}){let{size:r}=t,n=e;if(typeof r<\"u\"&&(R5(n,r),n=JQ(n)),n.length>1||n[0]>1)throw new ZQ(n);return!!n[0]}function Nd(e,t={}){let{size:r}=t;typeof r<\"u\"&&R5(e,r);let n=Mo(e,t);return XO(n,t)}function yHe(e,t={}){let{size:r}=t,n=e;return typeof r<\"u\"&&(R5(n,r),n=Xbt(n)),Wbt.decode(n)}function JQ(e){return KQ(e,{dir:\"left\"})}function Xbt(e){return KQ(e,{dir:\"right\"})}function bHe(e){try{return Zbt(e),!0}catch{return!1}}var Wbt,Qbt,ZQ,O5,WO,IT,QO,Oy=x(()=>{c();Zs();_a();iHe();QQ();RT();Wbt=new TextDecoder,Qbt=new TextEncoder;ZQ=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\"})}},O5=class extends rt{constructor(t){super(`Value \\\\`${typeof t==\"object\"?Ny(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\"})}},WO=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\"})}},IT=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\"})}},QO=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 r1t(e,t={}){let{strict:r=!1}=t;if(!e)throw new eN(e);if(typeof e!=\"string\")throw new eN(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new tN(e);if(!e.startsWith(\"0x\"))throw new tN(e)}function io(...e){return`0x${e.reduce((t,r)=>t+r.replace(\"0x\",\"\"),\"\")}`}function U5(e){return e instanceof Uint8Array?Mo(e):Array.isArray(e)?Mo(new Uint8Array(e)):e}function rN(e,t={}){let r=`0x${Number(e)}`;return typeof t.size==\"number\"?(M5(r,t.size),Gm(r,t.size)):r}function Mo(e,t={}){let r=\"\";for(let o=0;o<e.length;o++)r+=t1t[e[o]];let n=`0x${r}`;return typeof t.size==\"number\"?(M5(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 p=typeof e==\"bigint\"?\"n\":\"\";throw new MT({max:s?`${s}${p}`:void 0,min:`${u}${p}`,signed:r,size:n,value:`${e}${p}`})}let d=`0x${(r&&o<0?BigInt.asUintN(n*8,BigInt(o)):o).toString(16)}`;return n?Gm(d,n):d}function D5(e,t={}){return Mo(e1t.encode(e),t)}function Gm(e,t){return WQ(e,{dir:\"left\",size:t})}function Ud(e,t){return WQ(e,{dir:\"right\",size:t})}function Xn(e,t,r,n={}){let{strict:o}=n;sHe(e,t);let s=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(r??e.length)*2)}`;return o&&cHe(s,t,r),s}function Yn(e){return Math.ceil((e.length-2)/2)}function XQ(e){return uHe(e,{dir:\"left\"})}function YQ(e,t={}){let{signed:r}=t;t.size&&M5(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 XO(e,t={}){let{signed:r,size:n}=t;return Number(!r&&!n?e:YQ(e,t))}function OT(e,t={}){let{strict:r=!1}=t;try{return r1t(e,{strict:r}),!0}catch{return!1}}var e1t,t1t,MT,eN,tN,ZO,PT,JO,_a=x(()=>{c();Zs();QQ();RT();e1t=new TextEncoder,t1t=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));MT=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\"})}},eN=class extends rt{constructor(t){super(`Value \\\\`${typeof t==\"object\"?Ny(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\"})}},tN=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\"})}},ZO=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\"})}},PT=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\"})}},JO=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 gHe(e){return{address:e.address,amount:Ur(e.amount),index:Ur(e.index),validatorIndex:Ur(e.validatorIndex)}}var xHe=x(()=>{c();_a()});function nN(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(gHe)}}}var eZ=x(()=>{c();_a();xHe()});var Dd,oN,wHe,aN,EHe,tZ,rZ,nZ,oZ,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\"}],oN=[{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\"}]}],wHe=[{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\"}],aN=[...wHe,{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\"}]}],EHe=[...wHe,{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\"}]}],tZ=[{name:\"text\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"key\",type:\"string\"}],outputs:[{name:\"\",type:\"string\"}]}],rZ=[{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\"}]}],nZ=[{name:\"isValidSignature\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],outputs:[{name:\"\",type:\"bytes4\"}]}],oZ=[{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 AHe,SHe=x(()=>{c();AHe=\"0x82ad56cb\"});var iN,CHe,THe,H5,NT=x(()=>{c();iN=\"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe\",CHe=\"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe\",THe=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",H5=\"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033\"});var Hg,UT,aZ=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\"})}},UT=class extends be{constructor(){super(\"No chain was provided to the Client.\",{name:\"ClientChainNotConfiguredError\"})}}});function DT(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 WM({docsPath:iZ});if(!(\"inputs\"in o))throw new dT({docsPath:iZ});if(!o.inputs||o.inputs.length===0)throw new dT({docsPath:iZ});let s=as(o.inputs,r);return ql([n,s])}var iZ,sZ=x(()=>{c();Po();Su();Hm();iZ=\"/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();aZ()});function sN(e,{docsPath:t,...r}){let n=(()=>{let o=Py(e,r);return o instanceof ku?e:o})();return new $6(n,{docsPath:t,...r})}var cZ=x(()=>{c();Ty();Og();kT()});function cN(){let e=()=>{},t=()=>{};return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}var uZ=x(()=>{c()});function uN({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=()=>lZ.delete(t),f=()=>d().map(({args:h})=>h),d=()=>lZ.get(t)||[],p=h=>lZ.set(t,[...d(),h]);return{flush:u,async schedule(h){let{promise:y,resolve:v,reject:E}=cN();return r?.([...f(),h])&&s(),d().length>0?(p({args:h,resolve:v,reject:E}),y):(p({args:h,resolve:v,reject:E}),setTimeout(s,n),y)}}}var lZ,fZ=x(()=>{c();uZ();lZ=new Map});var lN,fN,dN,_He=x(()=>{c();Qs();xr();IO();lN=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\"})}},fN=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\"})}},dN=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 kHe(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 tO(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 BHe=x(()=>{c();Po();_g();N6();ST();Mm()});function pZ(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 pT(r,{docsPath:dZ});o=d}if(o.type!==\"error\")throw new pT(void 0,{docsPath:dZ});let s=la(o),u=Id(s),f=\"0x\";if(n&&n.length>0){if(!o.inputs)throw new YM(o.name,{docsPath:dZ});f=as(o.inputs,n)}return ql([u,f])}var dZ,IHe=x(()=>{c();Po();Su();N6();Hm();Mm();Sy();dZ=\"/docs/contract/encodeErrorResult\"});function PHe(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 Fl(r,{docsPath:mZ});o=u}if(o.type!==\"function\")throw new Fl(void 0,{docsPath:mZ});if(!o.outputs)throw new M6(o.name,{docsPath:mZ});let s=(()=>{if(o.outputs.length===0)return[];if(o.outputs.length===1)return[n];if(Array.isArray(n))return n;throw new O6(n)})();return as(o.outputs,s)}var mZ,RHe=x(()=>{c();Po();Hm();Sy();mZ=\"/docs/contract/encodeFunctionResult\"});async function hZ(e){let{data:t,ccipRequest:r}=e,{args:[n]}=kHe({abi:oN,data:t}),o=[],s=[];return await Promise.all(n.map(async(u,f)=>{try{s[f]=u.urls.includes(Km)?await hZ({data:u.data,ccipRequest:r}):await r(u),o[f]=!1}catch(d){o[f]=!0,s[f]=o1t(d)}})),PHe({abi:oN,functionName:\"query\",result:[o,s]})}function o1t(e){return e.name===\"HttpRequestError\"&&e.status?pZ({abi:oN,errorName:\"HttpError\",args:[e.status,e.shortMessage]}):pZ({abi:[bO],errorName:\"Error\",args:[\"shortMessage\"in e?e.shortMessage:e.message]})}var Km,HT=x(()=>{c();Vm();gO();BHe();IHe();RHe();Km=\"x-batch-gateway:true\"});var NHe={};Wn(NHe,{ccipRequest:()=>OHe,offchainLookup:()=>i1t,offchainLookupAbiItem:()=>MHe,offchainLookupSignature:()=>a1t});async function i1t(e,{blockNumber:t,blockTag:r,data:n,to:o}){let{args:s}=wO({data:n,abi:[MHe]}),[u,f,d,p,h]=s,{ccipRead:y}=e,v=y&&typeof y?.request==\"function\"?y.request:OHe;try{if(!Vl(o,u))throw new dN({sender:u,to:o});let E=f.includes(Km)?await hZ({data:d,ccipRequest:v}):await v({data:d,sender:u,urls:f}),{data:C}=await Ru(e,{blockNumber:t,blockTag:r,data:Qa([p,as([{type:\"bytes\"},{type:\"bytes\"}],[E,h])]),to:o});return C}catch(E){throw new lN({callbackSelector:p,cause:E,data:n,extraData:h,sender:u,urls:f})}}async function OHe({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 p=await fetch(s.replace(\"{sender}\",t.toLowerCase()).replace(\"{data}\",e),{body:JSON.stringify(f),headers:d,method:u}),h;if(p.headers.get(\"Content-Type\")?.startsWith(\"application/json\")?h=(await p.json()).data:h=await p.text(),!p.ok){n=new Tu({body:f,details:h?.error?Nr(h.error):p.statusText,headers:p.headers,status:p.status,url:s});continue}if(!Ro(h)){n=new fN({result:h,url:s});continue}return h}catch(p){n=new Tu({body:f,details:p.message,url:s})}}throw n}var a1t,MHe,UHe=x(()=>{c();Fg();_He();Pg();UQ();Hm();B5();Su();Ll();HT();Qs();a1t=\"0x556f1830\",MHe={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:p,code:h,data:y,factory:v,factoryData:E,gas:C,gasPrice:k,maxFeePerBlobGas:P,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?DHe({code:h,data:y}):W?u1t({data:y,factory:v,factoryData:E,to:N}):y;try{Bu(t);let A=(typeof s==\"bigint\"?ze(s):void 0)||u,T=p?nN(p):void 0,R=w5(K),D=e.chain?.formatters?.transactionRequest?.format,V=(D||Od)({...Ry(G,{format:D}),accessList:f,account:J,authorizationList:n,blobs:d,data:re,gas:C,gasPrice:k,maxFeePerBlobGas:P,maxFeePerGas:M,maxPriorityFeePerGas:U,nonce:O,to:ie?void 0:N,value:j},\"call\");if(o&&s1t({request:V})&&!R&&!T)try{return await c1t(e,{...V,blockNumber:s,blockTag:u})}catch(I){if(!(I instanceof UT)&&!(I instanceof Hg))throw I}let Q=(()=>{let I=[V,A];return R&&T?[...I,R,T]:R?[...I,R]:T?[...I,{},T]:I})(),F=await e.request({method:\"eth_call\",params:Q});return F===\"0x\"?{data:void 0}:{data:F}}catch(H){let A=l1t(H),{offchainLookup:T,offchainLookupSignature:R}=await Promise.resolve().then(()=>(UHe(),NHe));if(e.ccipRead!==!1&&A?.slice(0,10)===R&&N)return{data:await T(e,{data:A,to:N})};throw ie&&A?.slice(0,10)===\"0x101bb98d\"?new RO({factory:v}):sN(H,{...t,account:J,chain:e.chain})}}function s1t({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(AHe)||!r||Object.values(n).filter(o=>typeof o<\"u\").length>0)}async function c1t(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,p=(()=>{if(n)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return Pu({blockNumber:s,chain:e.chain,contract:\"multicall3\"});throw new UT})(),y=(typeof s==\"bigint\"?ze(s):void 0)||u,{schedule:v}=uN({id:`${e.uid}.${y}`,wait:o,shouldSplitBatch(k){return k.reduce((M,{data:U})=>M+(U.length-2),0)>r*2},fn:async k=>{let P=k.map(O=>({allowFailure:!0,callData:O.data,target:O.to})),M=_n({abi:Dd,args:[P],functionName:\"aggregate3\"}),U=await e.request({method:\"eth_call\",params:[{...p===null?{data:DHe({code:H5,data:M})}:{to:p,data:M}},y]});return xi({abi:Dd,args:[P],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 DHe(e){let{code:t,data:r}=e;return DT({abi:qM([\"constructor(bytes, bytes)\"]),bytecode:iN,args:[t,r]})}function u1t(e){let{data:t,factory:r,factoryData:n,to:o}=e;return DT({abi:qM([\"constructor(address, bytes, address, bytes)\"]),bytecode:CHe,args:[o,t,r,n]})}function l1t(e){if(!(e instanceof be))return;let t=e.walk();return typeof t?.data==\"object\"?t.data?.data:t.data}var Fg=x(()=>{c();lT();eZ();Oc();Vm();SHe();NT();xr();aZ();Ty();$m();sZ();Nc();Lg();Ht();cZ();BT();v5();fZ();UO();Ng()});function gJ(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 bJ,E2t,gze,xze=x(()=>{c();bJ=e=>t=>{try{let r=e(t);return r instanceof Promise?r:{then(n){return bJ(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return bJ(n)(r)}}}},E2t=(e,t)=>(r,n,o)=>{let s={storage:gJ(()=>localStorage),partialize:k=>k,version:0,merge:(k,P)=>({...P,...k}),...t},u=!1,f=new Set,d=new Set,p=s.storage;if(!p)return e((...k)=>{console.warn(`[zustand persist middleware] Unable to update item \\'${s.name}\\', the given storage is currently unavailable.`),r(...k)},n,o);let h=()=>{let k=s.partialize({...n()});return p.setItem(s.name,{state:k,version:s.version})},y=o.setState;o.setState=(k,P)=>{y(k,P),h()};let v=e((...k)=>{r(...k),h()},n,o);o.getInitialState=()=>v;let E,C=()=>{var k,P;if(!p)return;u=!1,f.forEach(U=>{var O;return U((O=n())!=null?O:v)});let M=((P=s.onRehydrateStorage)==null?void 0:P.call(s,(k=n())!=null?k:v))||void 0;return bJ(p.getItem.bind(p))(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:k=>{s={...s,...k},k.storage&&(p=k.storage)},clearStorage:()=>{p?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>C(),hasHydrated:()=>u,onHydrate:k=>(f.add(k),()=>{f.delete(k)}),onFinishHydration:k=>(d.add(k),()=>{d.delete(k)})},s.skipHydration||C(),E||v},gze=E2t});var vze,oE,fU=x(()=>{c();vze=e=>{let t,r=new Set,n=(p,h)=>{let y=typeof p==\"function\"?p(t):p;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:p=>(r.add(p),()=>r.delete(p))},d=t=e(n,o,f);return f},oE=e=>e?vze(e):vze});var Hu,dU,cx=x(()=>{c();Hu=\"4.3.6\",dU=\"@coinbase/wallet-sdk\"});var A2t,S2t,C2t,T2t,_2t,k2t,B2t,Oo,I2t,P2t,R2t,M2t,O2t,N2t,xJ,U2t,Re,Lu=x(()=>{c();xze();fU();cx();A2t=()=>({chains:[]}),S2t=()=>({keys:{}}),C2t=()=>({account:{}}),T2t=()=>({subAccount:void 0}),_2t=()=>({subAccountConfig:{}}),k2t=()=>({spendPermissions:[]}),B2t=()=>({config:{version:Hu}}),Oo=oE(gze((...e)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A2t(...e)),S2t(...e)),C2t(...e)),T2t(...e)),k2t(...e)),B2t(...e)),_2t(...e)),{name:\"cbwsdk.store\",storage:gJ(()=>localStorage),partialize:e=>({chains:e.chains,keys:e.keys,account:e.account,subAccount:e.subAccount,spendPermissions:e.spendPermissions,config:e.config})})),I2t={get:()=>Oo.getState().subAccountConfig,set:e=>{Oo.setState(t=>({subAccountConfig:Object.assign(Object.assign({},t.subAccountConfig),e)}))},clear:()=>{Oo.setState({subAccountConfig:{}})}},P2t={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})}},R2t={get:()=>Oo.getState().spendPermissions,set:e=>{Oo.setState({spendPermissions:e})},clear:()=>{Oo.setState({spendPermissions:[]})}},M2t={get:()=>Oo.getState().account,set:e=>{Oo.setState(t=>({account:Object.assign(Object.assign({},t.account),e)}))},clear:()=>{Oo.setState({account:{}})}},O2t={get:()=>Oo.getState().chains,set:e=>{Oo.setState({chains:e})},clear:()=>{Oo.setState({chains:[]})}},N2t={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:{}})}},xJ={get:()=>Oo.getState().config,set:e=>{Oo.setState(t=>({config:Object.assign(Object.assign({},t.config),e)}))}},U2t={subAccounts:P2t,subAccountsConfig:I2t,spendPermissions:R2t,account:M2t,chains:O2t,keys:N2t,config:xJ},Re=Object.assign(Object.assign({},Oo),U2t)});var wze,Eze=x(()=>{c();wze=\\'!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 pU,D2t,vJ=x(()=>{c();Lu();Eze();pU=()=>new Promise((e,t)=>{if(window.ClientAnalytics)return e();try{let r=document.createElement(\"script\");r.textContent=wze,r.type=\"text/javascript\",document.head.appendChild(r),D2t(),document.head.removeChild(r),e()}catch{console.error(\"Failed to execute inlined telemetry script\"),t()}}),D2t=()=>{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 $n,mU,n_=x(()=>{c();$n={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}},mU={\"-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 hU(e,t=Cze){if(e&&Number.isInteger(e)){let r=e.toString();if(wJ(mU,r))return mU[r].message;if(_ze(e))return H2t}return t}function L2t(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(mU[t]||_ze(e))}function Tze(e,{shouldIncludeStack:t=!1}={}){let r={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&wJ(e,\"code\")&&L2t(e.code)){let n=e;r.code=n.code,n.message&&typeof n.message==\"string\"?(r.message=n.message,wJ(n,\"data\")&&(r.data=n.data)):(r.message=hU(r.code),r.data={originalError:Aze(e)})}else r.code=$n.rpc.internal,r.message=Sze(e,\"message\")?e.message:Cze,r.data={originalError:Aze(e)};return t&&(r.stack=Sze(e,\"stack\")?e.stack:void 0),r}function _ze(e){return e>=-32099&&e<=-32e3}function Aze(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function wJ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Sze(e,t){return typeof e==\"object\"&&e!==null&&t in e&&typeof e[t]==\"string\"}var Cze,H2t,EJ=x(()=>{c();n_();Cze=\"Unspecified error message.\",H2t=\"Unspecified server error.\"});function Fu(e,t){let[r,n]=kze(t);return new o_(e,r||hU(e),n)}function aE(e,t){let[r,n]=kze(t);return new yU(e,r||hU(e),n)}function kze(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 F2t(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function AJ(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 bU(e){return typeof e==\"object\"&&e!==null&&\"details\"in e}function Bze(e){try{let t=JSON.parse(e.details);return new o_(t.code,t.message,t.data)}catch{return null}}var ke,o_,yU,wi=x(()=>{c();n_();EJ();ke={rpc:{parse:e=>Fu($n.rpc.parse,e),invalidRequest:e=>Fu($n.rpc.invalidRequest,e),invalidParams:e=>Fu($n.rpc.invalidParams,e),methodNotFound:e=>Fu($n.rpc.methodNotFound,e),internal:e=>Fu($n.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 Fu(t,e)},invalidInput:e=>Fu($n.rpc.invalidInput,e),resourceNotFound:e=>Fu($n.rpc.resourceNotFound,e),resourceUnavailable:e=>Fu($n.rpc.resourceUnavailable,e),transactionRejected:e=>Fu($n.rpc.transactionRejected,e),methodNotSupported:e=>Fu($n.rpc.methodNotSupported,e),limitExceeded:e=>Fu($n.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>aE($n.provider.userRejectedRequest,e),unauthorized:e=>aE($n.provider.unauthorized,e),unsupportedMethod:e=>aE($n.provider.unsupportedMethod,e),disconnected:e=>aE($n.provider.disconnected,e),chainDisconnected:e=>aE($n.provider.chainDisconnected,e),unsupportedChain:e=>aE($n.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 yU(t,r,n)}}};o_=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)}},yU=class extends o_{constructor(t,r,n){if(!F2t(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,r,n)}}});function SJ(){return e=>e}function Wl(e){return Math.floor(e)}var iE,Ize,z2t,CJ=x(()=>{c();iE=SJ(),Ize=SJ();z2t=SJ()});function Xm(e){return a_(crypto.getRandomValues(new Uint8Array(e)))}function a_(e){return[...e].map(t=>t.toString(16).padStart(2,\"0\")).join(\"\")}function sE(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 iE(t?`0x${r}`:r)}function gU(e){return ux(wU(e),!0)}function Ql(e){return Ize(e.toString(10))}function eh(e){return iE(`0x${BigInt(e).toString(16)}`)}function Mze(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")}function TJ(e){return Mze(e)?e.slice(2):e}function _J(e){return Mze(e)?`0x${e.slice(2)}`:`0x${e}`}function xU(e){if(typeof e!=\"string\")return!1;let t=TJ(e).toLowerCase();return Rze.test(t)}function vU(e,t=!1){if(typeof e==\"string\"){let r=TJ(e).toLowerCase();if(Rze.test(r))return iE(t?`0x${r}`:r)}throw ke.rpc.invalidParams(`\"${String(e)}\" is not a hexadecimal string`)}function kJ(e,t=!1){let r=vU(e,!1);return r.length%2===1&&(r=iE(`0${r}`)),t?iE(`0x${r}`):r}function th(e){if(typeof e==\"string\"){let t=TJ(e).toLowerCase();if(xU(t)&&t.length===40)return _J(t)}throw ke.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}function wU(e){if(globalThis.Buffer.isBuffer(e))return e;if(typeof e==\"string\"){if(xU(e)){let t=kJ(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(Pze.test(e))return Wl(Number(e));if(xU(e))return Wl(Number(BigInt(kJ(e,!0))))}throw ke.rpc.invalidParams(`Not an integer: ${String(e)}`)}function cE(e){if(e!==null&&(typeof e==\"bigint\"||j2t(e)))return BigInt(e.toString(10));if(typeof e==\"number\")return BigInt(lx(e));if(typeof e==\"string\"){if(Pze.test(e))return BigInt(e);if(xU(e))return BigInt(kJ(e,!0))}throw ke.rpc.invalidParams(`Not an integer: ${String(e)}`)}function Oze(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 j2t(e){if(e==null||typeof e.constructor!=\"function\")return!1;let{constructor:t}=e;return typeof t.config==\"function\"&&typeof t.EUCLID==\"number\"}function Nze(){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 Pze,Rze,Zl=x(()=>{c();wi();CJ();Pze=/^[0-9]*$/,Rze=/^[a-f0-9]*$/});var $2t,q2t,EU,Uze,AU=x(()=>{c();$2t=`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.`,q2t=()=>{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($2t)}catch(t){console.error(\"Error checking Cross-Origin-Opener-Policy:\",t.message),e=\"error\"}}}},{checkCrossOriginOpenerPolicy:EU,getCrossOriginOpenerPolicy:Uze}=q2t()});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\":dU}}),{result:o,error:s}=await n.json();if(s)throw s;return o}function G2t(){return globalThis.coinbaseWalletExtension}function V2t(){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 SU({metadata:e,preference:t}){var r,n;let{appName:o,appLogoUrl:s,appChainIds:u}=e;if(t.options!==\"smartWalletOnly\"){let d=G2t();if(d)return(r=d.setAppInfo)===null||r===void 0||r.call(d,o,s,u,t),d}let f=V2t();if(f?.isCoinbaseBrowser)return(n=f.setAppInfo)===null||n===void 0||n.call(f,o,s,u,t),f}function Dze(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 uE=x(()=>{c();cx();wi()});function CU(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 BJ(e){if(typeof e!=\"function\")throw new Error(\"toAccount is not a function\")}var IJ=x(()=>{c()});var Hze,TU,PJ,Lze,lE=x(()=>{c();Hze=\"https://keys.coinbase.com/connect\",TU=\"https://rpc.wallet.coinbase.com\",PJ=\"https://www.walletlink.org\",Lze=\"https://go.cb-w.com/walletlink\"});function Ft(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 Fze,zze,jze,$ze=x(()=>{c();Qy();Fze=()=>{Ft(\"communicator.popup_setup.started\",{action:kt.unknown,componentType:_t.unknown},Bt.high)},zze=()=>{Ft(\"communicator.popup_setup.completed\",{action:kt.unknown,componentType:_t.unknown},Bt.high)},jze=()=>{Ft(\"communicator.popup_unload.received\",{action:kt.unknown,componentType:_t.unknown},Bt.high)}});var fE,rh,_U=x(()=>{c();Qy();fE=({snackbarContext:e})=>{Ft(`snackbar.${e}.shown`,{action:kt.render,componentType:_t.modal,snackbarContext:e},Bt.high)},rh=({snackbarContext:e,snackbarAction:t})=>{Ft(`snackbar.${e}.action_clicked`,{action:kt.click,componentType:_t.button,snackbarContext:e,snackbarAction:t},Bt.high)}});var qze,Gze=x(()=>{c();qze=\\'@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 kU(){let e=document.createElement(\"style\");e.type=\"text/css\",e.appendChild(document.createTextNode(qze)),document.documentElement.appendChild(e)}var RJ=x(()=>{c();Gze()});var dE={};Wn(dE,{clsx:()=>nh,default:()=>K2t});function Vze(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=Vze(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=Vze(e))&&(n&&(n+=\" \"),n+=t);return n}var K2t,Zy=x(()=>{c();K2t=nh});function Jy(e,t){for(var r in t)e[r]=t[r];return e}function eje(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?MU.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 IU(e,u,n,o,null)}function IU(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??++Jze,__i:-1,__u:0};return o==null&&Un.vnode!=null&&Un.vnode(s),s}function OU(e){return e.children}function PU(e,t){this.props=e,this.context=t}function pE(e,t){if(t==null)return e.__?pE(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\"?pE(e):null}function tje(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 tje(e)}}function Wze(e){(!e.__d&&(e.__d=!0)&&fx.push(e)&&!RU.__r++||Kze!==Un.debounceRendering)&&((Kze=Un.debounceRendering)||Yze)(RU)}function RU(){var e,t,r,n,o,s,u,f;for(fx.sort(MJ);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),HJ(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[s]:null,u,s??pE(o),!!(32&o.__u),f),n.__v=o.__v,n.__.__k[n.__i]=n,oje(u,n,f),n.__e!=s&&tje(n)),fx.length>t&&fx.sort(MJ));RU.__r=0}function rje(e,t,r,n,o,s,u,f,d,p,h){var y,v,E,C,k,P=n&&n.__k||Xze,M=t.length;for(r.__d=d,J2t(r,t,P),d=r.__d,y=0;y<M;y++)(E=r.__k[y])!=null&&(v=E.__i===-1?i_:P[E.__i]||i_,E.__i=y,HJ(e,E,v,o,s,u,f,d,p,h),C=E.__e,E.ref&&v.ref!=E.ref&&(v.ref&&LJ(v.ref,null,E),h.push(E.ref,E.__c||C,E)),k==null&&C!=null&&(k=C),65536&E.__u||v.__k===E.__k?d=nje(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=k}function J2t(e,t,r){var n,o,s,u,f,d=t.length,p=r.length,h=p,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?IU(null,o,null,null,null):DJ(o)?IU(OU,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?IU(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=Y2t(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<p;n++)(s=r[n])!=null&&(131072&s.__u)==0&&(s.__e==e.__d&&(e.__d=pE(s)),aje(s,s))}function nje(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=nje(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=pE(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Y2t(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 Qze(e,t,r){t[0]===\"-\"?e.setProperty(t,r??\"\"):e[t]=r==null?\"\":typeof r!=\"number\"||Z2t.test(t)?r:r+\"px\"}function BU(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||Qze(e.style,t,\"\");if(r)for(t in r)n&&r[t]===n[t]||Qze(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=UJ,e.addEventListener(t,s?NJ:OJ,s)):e.removeEventListener(t,s?NJ:OJ,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 Zze(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=UJ++;else if(t.t<r.u)return;return r(Un.event?Un.event(t):t)}}}function HJ(e,t,r,n,o,s,u,f,d,p){var h,y,v,E,C,k,P,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?P=(y=t.__c=r.__c).__=y.__E:(U?t.__c=y=new W(M,N):(t.__c=y=new PU(M,N),y.constructor=W,y.render=evt),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,k)})}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&&(k=y.getSnapshotBeforeUpdate(E,C)),rje(e,DJ(Y=h!=null&&h.type===OU&&h.key==null?h.props.children:h)?Y:[Y],t,r,n,o,s,u,f,d,p),y.base=t.__e,t.__u&=-161,y.__h.length&&u.push(y),P&&(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=X2t(r.__e,t,r,n,o,s,u,d,p);(h=Un.diffed)&&h(t)}function oje(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)LJ(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 X2t(e,t,r,n,o,s,u,f,d){var p,h,y,v,E,C,k,P=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(p=0;p<s.length;p++)if((E=s[p])&&\"setAttribute\"in E==!!U&&(U?E.localName===U:E.nodeType===3)){e=E,s[p]=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)P===M||f&&e.data===M||(e.data=M);else{if(s=s&&MU.call(e.childNodes),P=r.props||i_,!f&&s!=null)for(P={},p=0;p<e.attributes.length;p++)P[(E=e.attributes[p]).name]=E.value;for(p in P)if(E=P[p],p!=\"children\"){if(p==\"dangerouslySetInnerHTML\")y=E;else if(!(p in M)){if(p==\"value\"&&\"defaultValue\"in M||p==\"checked\"&&\"defaultChecked\"in M)continue;BU(e,p,null,E,o)}}for(p in M)E=M[p],p==\"children\"?v=E:p==\"dangerouslySetInnerHTML\"?h=E:p==\"value\"?C=E:p==\"checked\"?k=E:f&&typeof E!=\"function\"||P[p]===E||BU(e,p,E,P[p],o);if(h)f||y&&(h.__html===y.__html||h.__html===e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(y&&(e.innerHTML=\"\"),rje(e,DJ(v)?v:[v],t,r,n,U===\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":o,s,u,s?s[0]:r.__k&&pE(r,0),f,d),s!=null)for(p=s.length;p--;)eje(s[p]);f||(p=\"value\",U===\"progress\"&&C==null?e.removeAttribute(\"value\"):C!==void 0&&(C!==e[p]||U===\"progress\"&&!C||U===\"option\"&&C!==P[p])&&BU(e,p,C,P[p],o),p=\"checked\",k!==void 0&&k!==e[p]&&BU(e,p,k,P[p],o))}return e}function LJ(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 aje(e,t,r){var n,o;if(Un.unmount&&Un.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||LJ(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]&&aje(n[o],t,r||typeof e.type!=\"function\");r||eje(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function evt(e,t,r){return this.constructor(e,r)}function s_(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=[],HJ(t,e=(!n&&r||t).__k=tn(OU,null,[e]),o||i_,i_,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?MU.call(t.childNodes):null,s,!n&&r?r:o?o.__e:t.firstChild,n,u),oje(s,e,u)}var MU,Un,Jze,W2t,fx,Kze,Yze,MJ,UJ,OJ,NJ,Q2t,i_,Xze,Z2t,DJ,mE=x(()=>{c();i_={},Xze=[],Z2t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,DJ=Array.isArray;MU=Xze.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}},Jze=0,W2t=function(e){return e!=null&&e.constructor==null},PU.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),Wze(this))},PU.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Wze(this))},PU.prototype.render=OU,fx=[],Yze=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,MJ=function(e,t){return e.__v.__b-t.__v.__b},RU.__r=0,UJ=0,OJ=Zze(!1),NJ=Zze(!0),Q2t=0});function hje(e,t){Jo.__h&&Jo.__h(No,e,zJ||t),zJ=0;var r=No.__H||(No.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function $J(e){return zJ=1,tvt(bje,e)}function tvt(e,t,r){var n=hje(UU++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):bje(void 0,t),function(f){var d=n.__N?n.__N[0]:n.__[0],p=n.t(d,f);d!==p&&(n.__N=[p,n.__[1]],n.__c.setState({}))}],n.__c=No,!No.u)){var o=function(f,d,p){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,p);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,p))};No.u=!0;var s=No.shouldComponentUpdate,u=No.componentWillUpdate;No.componentWillUpdate=function(f,d,p){if(this.__e){var h=s;s=void 0,o(f,d,p),s=h}u&&u.call(this,f,d,p)},No.shouldComponentUpdate=o}return n.__N||n.__}function yje(e,t){var r=hje(UU++,3);!Jo.__s&&ovt(r.__H,t)&&(r.__=e,r.i=t,No.__H.__h.push(r))}function rvt(){for(var e;e=mje.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(NU),e.__H.__h.forEach(jJ),e.__H.__h=[]}catch(t){e.__H.__h=[],Jo.__e(t,e.__v)}}function nvt(e){var t,r=function(){clearTimeout(n),pje&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);pje&&(t=requestAnimationFrame(r))}function NU(e){var t=No,r=e.__c;typeof r==\"function\"&&(e.__c=void 0,r()),No=t}function jJ(e){var t=No;e.__c=e.__(),No=t}function ovt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function bje(e,t){return typeof t==\"function\"?t(e):t}var UU,No,FJ,ije,zJ,mje,Jo,sje,cje,uje,lje,fje,dje,pje,gje=x(()=>{c();mE();zJ=0,mje=[],Jo=Un,sje=Jo.__b,cje=Jo.__r,uje=Jo.diffed,lje=Jo.__c,fje=Jo.unmount,dje=Jo.__;Jo.__b=function(e){No=null,sje&&sje(e)},Jo.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),dje&&dje(e,t)},Jo.__r=function(e){cje&&cje(e),UU=0;var t=(No=e.__c).__H;t&&(FJ===No?(t.__h=[],No.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0})):(t.__h.forEach(NU),t.__h.forEach(jJ),t.__h=[],UU=0)),FJ=No},Jo.diffed=function(e){uje&&uje(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(mje.push(t)!==1&&ije===Jo.requestAnimationFrame||((ije=Jo.requestAnimationFrame)||nvt)(rvt)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.i=void 0})),FJ=No=null},Jo.__c=function(e,t){t.some(function(r){try{r.__h.forEach(NU),r.__h=r.__h.filter(function(n){return!n.__||jJ(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Jo.__e(n,r.__v)}}),lje&&lje(e,t)},Jo.unmount=function(e){fje&&fje(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{NU(n)}catch(o){t=o}}),r.__H=void 0,t&&Jo.__e(t,r.__v))};pje=typeof requestAnimationFrame==\"function\"});function avt(){try{return window.frameElement!==null}catch{return!1}}function xje(){try{return avt()&&window.top?window.top.location:window.location}catch{return window.location}}function vje(){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 DU(){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 c_=x(()=>{c()});var wje,Eje=x(()=>{c();wje=\".-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 ivt,svt,hE,qJ,cvt,HU=x(()=>{c();Zy();mE();mE();gje();c_();Eje();ivt=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+\",svt=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=\",hE=class{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=DU()}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&&s_(tn(\"div\",null,tn(qJ,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([t,r])=>tn(cvt,Object.assign({},r,{key:t}))))),this.root)}},qJ=e=>tn(\"div\",{class:nh(\"-cbwsdk-snackbar-container\")},tn(\"style\",null,wje),tn(\"div\",{class:\"-cbwsdk-snackbar\"},e.children)),cvt=({autoExpand:e,message:t,menuItems:r})=>{let[n,o]=$J(!0),[s,u]=$J(e??!1);yje(()=>{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:ivt,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:svt,class:\"-gear-icon\",title:\"Expand\"}))),r&&r.length>0&&tn(\"div\",{class:\"-cbwsdk-snackbar-instance-menu\"},r.map((d,p)=>tn(\"div\",{class:nh(\"-cbwsdk-snackbar-instance-menu-item\",d.isRed&&\"-cbwsdk-snackbar-instance-menu-item-is-red\"),onClick:d.onClick,key:p},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 GJ,LU,VJ=x(()=>{c();RJ();HU();GJ=\"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\",LU=class{constructor(){this.attached=!1,this.snackbar=new hE}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,kU()}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:GJ,defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]},this.snackbar.presentItem(r)}}});function Cje(e){let t=(window.innerWidth-Aje)/2+window.screenX,r=(window.innerHeight-Sje)/2+window.screenY;fvt(e);function n(){let s=`wallet_${crypto.randomUUID()}`,u=window.open(e,s,`width=${Aje}, height=${Sje}, left=${t}, top=${r}`);return u?.focus(),u||null}let o=n();if(!o){let s=u_();return new Promise((u,f)=>{fE({snackbarContext:\"popup_blocked\"}),s.presentItem({autoExpand:!0,message:lvt,menuItems:[Object.assign(Object.assign({},uvt),{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 Tje(e){e&&!e.closed&&e.close()}function fvt(e){let t={sdkName:dU,sdkVersion:Hu,origin:window.location.origin,coop:Uze()};for(let[r,n]of Object.entries(t))e.searchParams.has(r)||e.searchParams.append(r,n.toString())}function u_(){if(!FU){let e=document.createElement(\"div\");e.className=\"-cbwsdk-css-reset\",document.body.appendChild(e),FU=new hE,FU.attach(e)}return FU}var Aje,Sje,uvt,lvt,FU,zU=x(()=>{c();wi();_U();VJ();HU();cx();AU();Aje=420,Sje=700,uvt={isRed:!1,info:\"Retry\",svgWidth:\"10\",svgHeight:\"11\",path:GJ,defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\"},lvt=\"Popup was blocked. Try again.\",FU=null});var jU,_je=x(()=>{c();lE();wi();$ze();zU();cx();jU=class{constructor({url:t=Hze,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 p=d.data;o(p)&&(s(p),window.removeEventListener(\"message\",f),this.listeners.delete(f))};window.addEventListener(\"message\",f),this.listeners.set(f,{reject:u})}),this.disconnect=()=>{Tje(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):(Fze(),this.popup=await Cje(this.url),this.onMessage(({event:o})=>o===\"PopupUnload\").then(()=>{this.disconnect(),jze()}).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 zze(),this.popup})),this.url=new URL(t),this.metadata=r,this.preference=n}}});function Yo(e){return e.errorMessage!==void 0}var $U=x(()=>{c()});function kje(e){let t=Tze(dvt(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 dvt(e){var t;if(typeof e==\"string\")return{message:e,code:$n.rpc.internal};if(Yo(e)){let r=e.errorMessage,n=(t=e.errorCode)!==null&&t!==void 0?t:r.match(/(denied|rejected)/i)?$n.provider.userRejectedRequest:void 0;return Object.assign(Object.assign({},e),{message:r,code:n,data:{method:e.method}})}return e}var Bje=x(()=>{c();cx();$U();n_();EJ()});var qU,Ije=x(()=>{c();rM();qU=class extends l6.default{}});var $d,l_=x(()=>{c();$d=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,Rje,Mje,Oje,Nje,Uje=x(()=>{c();Qy();Pje=({signerType:e})=>{Ft(\"provider.signer.loaded_from_storage\",{action:kt.measurement,componentType:_t.unknown,signerType:e},Bt.low)},Rje=({method:e,correlationId:t})=>{Ft(\"provider.request.started\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t},Bt.high)},Mje=({method:e,correlationId:t,signerType:r,errorMessage:n})=>{Ft(\"provider.request.error\",{action:kt.error,componentType:_t.unknown,method:e,signerType:r,correlationId:t,errorMessage:n},Bt.high)},Oje=({method:e,signerType:t,correlationId:r})=>{Ft(\"provider.request.responded\",{action:kt.unknown,componentType:_t.unknown,method:e,signerType:t,correlationId:r},Bt.high)},Nje=()=>{Ft(\"provider.enable_function.called\",{action:kt.measurement,componentType:_t.unknown},Bt.high)}});var Dje,Hje,Lje=x(()=>{c();Qy();Dje=()=>{Ft(\"signer.selection.requested\",{action:kt.unknown,componentType:_t.unknown},Bt.high)},Hje=e=>{Ft(\"signer.selection.responded\",{action:kt.unknown,componentType:_t.unknown,signerType:e},Bt.high)}});var GU,ec,VU=x(()=>{c();fU();GU=oE(()=>({correlationIds:new Map})),ec={get:e=>GU.getState().correlationIds.get(e),set:(e,t)=>{GU.setState(r=>{let n=new Map(r.correlationIds);return n.set(e,t),{correlationIds:n}})},delete:e=>{GU.setState(t=>{let r=new Map(t.correlationIds);return r.delete(e),{correlationIds:r}})},clear:()=>{GU.setState({correlationIds:new Map})}}});var Fje,zje,jje,$je,qje,Gje,Vje=x(()=>{c();Lu();Qy();Fje=({method:e,correlationId:t})=>{var r;Ft(\"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)},zje=({method:e,correlationId:t,errorMessage:r})=>{var n;Ft(\"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)},jje=({method:e,correlationId:t})=>{var r;Ft(\"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)},$je=({method:e,correlationId:t})=>{var r;Ft(\"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)},qje=({method:e,correlationId:t,errorMessage:r})=>{var n;Ft(\"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)},Gje=({method:e,correlationId:t})=>{var r;Ft(\"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 Kje,Wje,Qje,Zje,Jje,Yje,Xje,e$e,t$e,r$e=x(()=>{c();Lu();Qy();Kje=({method:e,correlationId:t})=>{var r;Ft(\"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)},Wje=({method:e,correlationId:t})=>{var r;Ft(\"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)},Qje=({method:e,correlationId:t,errorMessage:r})=>{var n;Ft(\"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)},Zje=({method:e,correlationId:t})=>{var r;Ft(\"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)},Jje=({method:e,correlationId:t})=>{var r;Ft(\"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)},Yje=({method:e,correlationId:t,errorMessage:r})=>{var n;Ft(\"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)},Xje=({method:e,correlationId:t})=>{var r;Ft(\"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)},e$e=({method:e,correlationId:t})=>{var r;Ft(\"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)},t$e=({method:e,correlationId:t,errorMessage:r})=>{var n;Ft(\"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,KJ=x(()=>{c();oh=e=>\"message\"in e&&typeof e.message==\"string\"?e.message:\"\"});var WJ,n$e=x(()=>{c();WJ=[{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 QJ,o$e=x(()=>{c();QJ=\"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789\"});function KU(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 ZJ=x(()=>{c();Jn()});function WU(e,t={}){let{callGasLimit:r,callData:n,maxPriorityFeePerGas:o,maxFeePerGas:s,paymaster:u,paymasterData:f,paymasterPostOpGasLimit:d,paymasterSignature:p,paymasterVerificationGasLimit:h,sender:y,signature:v=\"0x\",verificationGasLimit:E}=e,C=mr([Qr(le(E||0n),{size:16}),Qr(le(r||0n),{size:16})]),k=KU(e,t),P=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\",...p?t.forHash?[a$e]:[p,Qr(le(qt(p)),{size:2}),a$e]:[]]):\"0x\",O=e.preVerificationGas??0n;return{accountGasLimits:C,callData:n,initCode:k,gasFees:P,nonce:M,paymasterAndData:U,preVerificationGas:O,sender:y,signature:v}}var a$e,JJ=x(()=>{c();Jn();Gp();ji();W0();ZJ();a$e=\"0x22e325a297439656\"});function i$e(e){let{chainId:t,entryPointAddress:r,userOperation:n}=e,o=WU(n,{forHash:!0});return{types:pvt,primaryType:\"PackedUserOperation\",domain:{name:\"ERC4337\",version:\"1\",chainId:t,verifyingContract:r},message:o}}var pvt,s$e=x(()=>{c();JJ();pvt={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 YJ(e){let{chainId:t,entryPointAddress:r,entryPointVersion:n}=e,o=e.userOperation,{authorization:s,callData:u=\"0x\",callGasLimit:f,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,paymasterAndData:y=\"0x\",preVerificationGas:v,sender:E,verificationGasLimit:C}=o;if(n===\"0.8\"||n===\"0.9\")return yd(i$e({chainId:t,entryPointAddress:r,userOperation:o}));let k=(()=>{if(n===\"0.6\"){let P=o.initCode?.slice(0,42),M=o.initCode?.slice(42),U=KU({authorization:s,factory:P,factoryData:M},{forHash:!0});return Fn([{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,p,Gt(y)])}if(n===\"0.7\"){let P=WU(o,{forHash:!0});return Fn([{type:\"address\"},{type:\"uint256\"},{type:\"bytes32\"},{type:\"bytes32\"},{type:\"bytes32\"},{type:\"uint256\"},{type:\"bytes32\"},{type:\"bytes32\"}],[P.sender,P.nonce,Gt(P.initCode),Gt(P.callData),P.accountGasLimits,P.preVerificationGas,P.gasFees,Gt(P.paymasterAndData)])}throw new Error(`entryPointVersion \"${n}\" not supported.`)})();return Gt(Fn([{type:\"bytes32\"},{type:\"address\"},{type:\"uint256\"}],[Gt(k),r,BigInt(t)]))}var c$e=x(()=>{c();cu();Is();YI();ZJ();s$e();JJ()});async function XJ(e){let{extend:t,nonceKeyManager:r=UV({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},p]=await Promise.all([this.getFactoryArgs(),e.sign(u)]);return f&&d?EP({address:f,data:d,signature:p}):p}}:{},async signMessage(u){let[{factory:f,factoryData:d},p]=await Promise.all([this.getFactoryArgs(),e.signMessage(u)]);return f&&d&&f!==\"0x7702\"?EP({address:f,data:d,signature:p}):p},async signTypedData(u){let[{factory:f,factoryData:d},p]=await Promise.all([this.getFactoryArgs(),e.signTypedData(u)]);return f&&d&&f!==\"0x7702\"?EP({address:f,data:d,signature:p}):p},type:\"smart\"}}var u$e=x(()=>{c();hv();Q1();Ic();Zt();nhe();$he()});function f_(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 yE(e){let t=e.toString(16);return t.length&1?\"0\"+t:t}function nY(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);return e===\"\"?rY:BigInt(\"0x\"+e)}function dx(e){return nY(Qf(e))}function QU(e){return Gi(e),nY(Qf(Uint8Array.from(e).reverse()))}function d_(e,t){return l0(e.toString(16).padStart(t*2,\"0\"))}function ZU(e,t){return d_(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 l$e(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 oY(e,t,r){return eY(e)&&eY(t)&&eY(r)&&t<=e&&e<r}function aY(e,t,r,n){if(!oY(t,r,n))throw new Error(\"expected valid \"+e+\": \"+r+\" <= n < \"+n+\", got \"+t)}function p_(e){let t;for(t=0;e>rY;e>>=tY,t+=1);return t}function iY(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},p=(...E)=>r(u,s,...E),h=(E=n(0))=>{u=p(o(0),E),s=p(),E.length!==0&&(u=p(o(1),E),s=p())},y=()=>{if(f++>=1e3)throw new Error(\"drbg: tried 1000 values\");let E=0,C=[];for(;E<t;){s=p();let k=s.slice();C.push(k),E+=s.length}return Bs(...C)};return(E,C)=>{d(),h(E);let k;for(;!(k=C(y()));)h();return d(),k}}function m_(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 rY,tY,eY,ah,h_=x(()=>{c();wl();wl();rY=BigInt(0),tY=BigInt(1);eY=e=>typeof e==\"bigint\"&&rY<=e;ah=e=>(tY<<BigInt(e))-tY});function zu(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 f$e(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=zu(e,t),n=t,o=is,s=Ei,u=Ei,f=is;for(;r!==is;){let p=n/r,h=n%r,y=o-u*p,v=s-f*p;n=r,r=h,o=u,s=f,u=y,f=v}if(n!==Ei)throw new Error(\"invert: does not exist\");return zu(o,t)}function sY(e,t,r){if(!e.eql(e.sqr(t),r))throw new Error(\"Cannot find square root\")}function g$e(e,t){let r=(e.ORDER+Ei)/m$e,n=e.pow(t,r);return sY(e,n,t),n}function gvt(e,t){let r=(e.ORDER-h$e)/y$e,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 sY(e,f,t),f}function xvt(e){let t=ju(e),r=x$e(e),n=r(t,t.neg(t.ONE)),o=r(t,n),s=r(t,t.neg(n)),u=(e+yvt)/b$e;return(f,d)=>{let p=f.pow(d,u),h=f.mul(p,n),y=f.mul(p,o),v=f.mul(p,s),E=f.eql(f.sqr(h),d),C=f.eql(f.sqr(y),d);p=f.cmov(p,h,E),h=f.cmov(v,y,C);let k=f.eql(f.sqr(h),d),P=f.cmov(p,h,k);return sY(f,P,d),P}}function x$e(e){if(e<p$e)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(;d$e(o,n)===1;)if(n++>1e3)throw new Error(\"Cannot find square root: probably non-prime P\");if(r===1)return g$e;let s=o.pow(n,t),u=(t+Ei)/px;return function(d,p){if(d.is0(p))return p;if(d$e(d,p)!==1)throw new Error(\"Cannot find square root\");let h=r,y=d.mul(d.ONE,s),v=d.pow(p,t),E=d.pow(p,u);for(;!d.eql(v,d.ONE);){if(d.is0(v))return d.ZERO;let C=1,k=d.sqr(v);for(;!d.eql(k,d.ONE);)if(C++,k=d.sqr(k),C===h)throw new Error(\"Cannot find square root\");let P=Ei<<BigInt(h-C-1),M=d.pow(y,P);h=C,y=d.sqr(M),v=d.mul(v,y),E=d.mul(E,M)}return E}}function vvt(e){return e%m$e===p$e?g$e:e%y$e===h$e?gvt:e%b$e===bvt?xvt(e):x$e(e)}function cY(e){let t={ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"number\",BITS:\"number\"},r=wvt.reduce((n,o)=>(n[o]=\"function\",n),t);return m_(e,r),e}function Evt(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 YU(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 d$e(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 XU(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:p}=XU(e,o);if(p>2048)throw new Error(\"invalid field: expected ORDER of <= 2048 bytes\");let h,y=Object.freeze({ORDER:e,isLE:r,BITS:d,BYTES:p,MASK:ah(d),ZERO:is,ONE:Ei,allowedLengths:f,create:v=>zu(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=>zu(-v,e),eql:(v,E)=>v===E,sqr:v=>zu(v*v,e),add:(v,E)=>zu(v+E,e),sub:(v,E)=>zu(v-E,e),mul:(v,E)=>zu(v*E,e),pow:(v,E)=>Evt(y,v,E),div:(v,E)=>zu(v*f$e(E,e),e),sqrN:v=>v*v,addN:(v,E)=>v+E,subN:(v,E)=>v-E,mulN:(v,E)=>v*E,inv:v=>f$e(v,e),sqrt:s||(v=>(h||(h=vvt(e)),h(y,v))),toBytes:v=>r?ZU(v,p):d_(v,p),fromBytes:(v,E=!0)=>{if(f){if(!f.includes(v.length)||v.length>p)throw new Error(\"Field.fromBytes: expected \"+f+\" bytes, got \"+v.length);let k=new Uint8Array(p);k.set(v,r?0:k.length-v.length),v=k}if(v.length!==p)throw new Error(\"Field.fromBytes: expected \"+p+\" bytes, got \"+v.length);let C=r?QU(v):dx(v);if(u&&(C=zu(C,e)),!E&&!y.isValid(C))throw new Error(\"invalid field element: outside of range 0..ORDER\");return C},invertBatch:v=>YU(y,v),cmov:(v,E,C)=>C?E:v});return Object.freeze(y)}function v$e(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 uY(e){let t=v$e(e);return t+Math.ceil(t/2)}function lY(e,t,r=!1){let n=e.length,o=v$e(t),s=uY(t);if(n<16||n<s||n>1024)throw new Error(\"expected \"+s+\"-1024 bytes of input, got \"+n);let u=r?QU(e):dx(e),f=zu(u,t-Ei)+Ei;return r?ZU(f,o):d_(f,o)}var is,Ei,px,p$e,m$e,h$e,yvt,y$e,bvt,b$e,wvt,y_=x(()=>{c();h_();is=BigInt(0),Ei=BigInt(1),px=BigInt(2),p$e=BigInt(3),m$e=BigInt(4),h$e=BigInt(5),yvt=BigInt(7),y$e=BigInt(8),bvt=BigInt(9),b$e=BigInt(16);wvt=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"]});function b_(e,t){let r=t.negate();return e?r:t}function tD(e,t){let r=YU(e.Fp,t.map(n=>n.Z));return t.map((n,o)=>e.fromAffine(n.toAffine(r[o])))}function S$e(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error(\"invalid window size, expected [1..\"+t+\"], got W=\"+e)}function fY(e,t){S$e(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 w$e(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 p=t*n,h=p+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:p}}function Svt(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 Cvt(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 pY(e){return C$e.get(e)||1}function E$e(e){if(e!==bE)throw new Error(\"invalid wNAF\")}function T$e(e,t,r,n){let o=t,s=e.ZERO,u=e.ZERO;for(;r>bE||n>bE;)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 _$e(e,t,r,n){Svt(r,e),Cvt(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=p_(BigInt(o)),d=1;f>12?d=f-3:f>4?d=f-2:f>0&&(d=2);let p=ah(d),h=new Array(Number(p)+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 k=0;k<s;k++){let P=n[k],M=Number(P>>BigInt(E)&p);h[M]=h[M].add(r[k])}let C=u;for(let k=h.length-1,P=u;k>0;k--)P=P.add(h[k]),C=C.add(P);if(v=v.add(C),E!==0)for(let k=0;k<d;k++)v=v.double()}return v}function A$e(e,t,r){if(t){if(t.ORDER!==e)throw new Error(\"Field.ORDER must match order: Fp == p, Fn == n\");return cY(t),t}else return ju(e,{isLE:r})}function k$e(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 p=t[d];if(!(typeof p==\"bigint\"&&p>bE))throw new Error(`CURVE.${d} must be positive bigint`)}let o=A$e(t.p,r.Fp,n),s=A$e(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 bE,mx,dY,C$e,eD,B$e=x(()=>{c();h_();y_();bE=BigInt(0),mx=BigInt(1);dY=new WeakMap,C$e=new WeakMap;eD=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>bE;)r&mx&&(n=n.add(o)),o=o.double(),r>>=mx;return n}precomputeWindow(t,r){let{windows:n,windowSize:o}=fY(r,this.bits),s=[],u=t,f=u;for(let d=0;d<n;d++){f=u,s.push(f);for(let p=1;p<o;p++)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=fY(t,this.bits);for(let f=0;f<u.windows;f++){let{nextN:d,offset:p,isZero:h,isNeg:y,isNegF:v,offsetF:E}=w$e(n,f,u);n=d,h?s=s.add(b_(v,r[E])):o=o.add(b_(y,r[p]))}return E$e(n),{p:o,f:s}}wNAFUnsafe(t,r,n,o=this.ZERO){let s=fY(t,this.bits);for(let u=0;u<s.windows&&n!==bE;u++){let{nextN:f,offset:d,isZero:p,isNeg:h}=w$e(n,u,s);if(n=f,!p){let y=r[d];o=o.add(h?y.negate():y)}}return E$e(n),o}getPrecomputes(t,r,n){let o=dY.get(r);return o||(o=this.precomputeWindow(r,t),t!==1&&(typeof n==\"function\"&&(o=n(o)),dY.set(r,o))),o}cached(t,r,n){let o=pY(t);return this.wNAF(o,this.getPrecomputes(o,t,n),r)}unsafe(t,r,n,o){let s=pY(t);return s===1?this._unsafeLadder(t,r,o):this.wNAFUnsafe(s,this.getPrecomputes(s,t,n),r,o)}createCache(t,r){S$e(r,this.bits),C$e.set(t,r),dY.delete(t)}hasCache(t){return pY(t)!==1}}});function Tvt(e,t,r){let[[n,o],[s,u]]=t,f=I$e(u*e,r),d=I$e(-o*e,r),p=e-f*n-d*s,h=-f*o-d*u,y=p<sh,v=h<sh;y&&(p=-p),v&&(h=-h);let E=ah(Math.ceil(p_(r)/2))+xE;if(p<sh||p>=E||h<sh||h>=E)throw new Error(\"splitScalar (endomorphism): failed, k=\"+e);return{k1neg:y,k1:p,k2neg:v,k2:h}}function hY(e){if(![\"compact\",\"recovered\",\"der\"].includes(e))throw new Error(\\'Signature format must be \"compact\", \"recovered\", or \"der\"\\');return e}function mY(e,t){let r={};for(let n of Object.keys(t))r[n]=e[n]===void 0?t[n]:e[n];return f_(r.lowS,\"lowS\"),f_(r.prehash,\"prehash\"),r.format!==void 0&&hY(r.format),r}function gE(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 kvt(e,t={}){let r=k$e(\"weierstrass\",e,t),{Fp:n,Fn:o}=r,s=r.CURVE,{h:u,n:f}=s;m_(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 p=M$e(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:R}=H.toAffine(),D=n.toBytes(T);if(f_(A,\"isCompressed\"),A){h();let L=!n.isOdd(R);return Bs(R$e(L),D)}else return Bs(Uint8Array.of(4),D,n.toBytes(R))}function v(re){Yy(re,void 0,\"Point\");let{publicKey:H,publicKeyUncompressed:A}=p,T=re.length,R=re[0],D=re.subarray(1);if(T===H&&(R===2||R===3)){let L=n.fromBytes(D);if(!n.isValid(L))throw new Error(\"bad point: is not on curve, wrong x\");let V=k(L),Q;try{Q=n.sqrt(V)}catch(Z){let me=Z instanceof Error?\": \"+Z.message:\"\";throw new Error(\"bad point: is not on curve, sqrt error\"+me)}h();let F=n.isOdd(Q);return(R&1)===1!==F&&(Q=n.neg(Q)),{x:L,y:Q}}else if(T===A&&R===4){let L=n.BYTES,V=n.fromBytes(D.subarray(0,L)),Q=n.fromBytes(D.subarray(L,L*2));if(!P(V,Q))throw new Error(\"bad point: is not on curve\");return{x:V,y:Q}}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 k(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 P(re,H){let A=n.sqr(H),T=k(re);return n.eql(A,T)}if(!P(s.Gx,s.Gy))throw new Error(\"bad curve params: generator point\");let M=n.mul(n.pow(s.a,rD),_vt),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 Tvt(re,d.basises,o.ORDER)}let K=JU((re,H)=>{let{X:A,Y:T,Z:R}=re;if(n.eql(R,n.ONE))return{x:A,y:T};let D=re.is0();H==null&&(H=D?n.ONE:n.inv(R));let L=n.mul(A,H),V=n.mul(T,H),Q=n.mul(R,H);if(D)return{x:n.ZERO,y:n.ZERO};if(!n.eql(Q,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(!P(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,R){return A=new Y(n.mul(A.X,re),A.Y,A.Z),H=b_(T,H),A=b_(R,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(rD),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:R}=this,{X:D,Y:L,Z:V}=H,Q=n.eql(n.mul(A,V),n.mul(D,R)),F=n.eql(n.mul(T,V),n.mul(L,R));return Q&&F}negate(){return new Y(this.X,n.neg(this.Y),this.Z)}double(){let{a:H,b:A}=s,T=n.mul(A,rD),{X:R,Y:D,Z:L}=this,V=n.ZERO,Q=n.ZERO,F=n.ZERO,I=n.mul(R,R),Z=n.mul(D,D),me=n.mul(L,L),ge=n.mul(R,D);return ge=n.add(ge,ge),F=n.mul(R,L),F=n.add(F,F),V=n.mul(H,F),Q=n.mul(T,me),Q=n.add(V,Q),V=n.sub(Z,Q),Q=n.add(Z,Q),Q=n.mul(V,Q),V=n.mul(ge,V),F=n.mul(T,F),me=n.mul(H,me),ge=n.sub(I,me),ge=n.mul(H,ge),ge=n.add(ge,F),F=n.add(I,I),I=n.add(F,I),I=n.add(I,me),I=n.mul(I,ge),Q=n.add(Q,I),me=n.mul(D,L),me=n.add(me,me),I=n.mul(me,ge),V=n.sub(V,I),F=n.mul(me,Z),F=n.add(F,F),F=n.add(F,F),new Y(V,Q,F)}add(H){N(H);let{X:A,Y:T,Z:R}=this,{X:D,Y:L,Z:V}=H,Q=n.ZERO,F=n.ZERO,I=n.ZERO,Z=s.a,me=n.mul(s.b,rD),ge=n.mul(A,D),Se=n.mul(T,L),Ce=n.mul(R,V),qe=n.add(A,T),je=n.add(D,L);qe=n.mul(qe,je),je=n.add(ge,Se),qe=n.sub(qe,je),je=n.add(A,R);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,R),Q=n.add(L,V),Ot=n.mul(Ot,Q),Q=n.add(Se,Ce),Ot=n.sub(Ot,Q),I=n.mul(Z,je),Q=n.mul(me,Ce),I=n.add(Q,I),Q=n.sub(Se,I),I=n.add(Se,I),F=n.mul(Q,I),Se=n.add(ge,ge),Se=n.add(Se,ge),Ce=n.mul(Z,Ce),je=n.mul(me,je),Se=n.add(Se,Ce),Ce=n.sub(ge,Ce),Ce=n.mul(Z,Ce),je=n.add(je,Ce),ge=n.mul(Se,je),F=n.add(F,ge),ge=n.mul(Ot,je),Q=n.mul(qe,Q),Q=n.sub(Q,ge),ge=n.mul(qe,Se),I=n.mul(Ot,I),I=n.add(I,ge),new Y(Q,F,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,R,D=L=>ie.cached(this,L,V=>tD(Y,V));if(A){let{k1neg:L,k1:V,k2neg:Q,k2:F}=j(H),{p:I,f:Z}=D(V),{p:me,f:ge}=D(F);R=Z.add(ge),T=J(A.beta,I,me,L,Q)}else{let{p:L,f:V}=D(H);T=L,R=V}return tD(Y,[T,R])[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===xE)return T;if(ie.hasCache(this))return this.multiply(H);if(A){let{k1neg:R,k1:D,k2neg:L,k2:V}=j(H),{p1:Q,p2:F}=T$e(Y,T,D,V);return J(A.beta,Q,F,R,L)}else return ie.unsafe(T,H)}multiplyAndAddUnsafe(H,A,T){let R=this.multiplyUnsafe(A).add(H.multiplyUnsafe(T));return R.is0()?void 0:R}toAffine(H){return K(this,H)}isTorsionFree(){let{isTorsionFree:H}=t;return u===xE?!0:H?H(Y,this):ie.unsafe(this,f).is0()}clearCofactor(){let{clearCofactor:H}=t;return u===xE?this:H?H(Y,this):this.multiplyUnsafe(u)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}toBytes(H=!0){return f_(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 tD(Y,H)}static msm(H,A){return _$e(Y,o,H,A)}static fromPrivateKey(H){return Y.BASE.multiply(gE(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 eD(Y,t.endo?Math.ceil(W/2):W);return Y.BASE.precompute(8),Y}function R$e(e){return Uint8Array.of(e?2:3)}function M$e(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function Bvt(e,t={}){let{Fn:r}=e,n=t.randomBytes||Zp,o=Object.assign(M$e(e.Fp,r),{seed:uY(r.ORDER)});function s(E){try{return!!gE(r,E)}catch{return!1}}function u(E,C){let{publicKey:k,publicKeyUncompressed:P}=o;try{let M=E.length;return C===!0&&M!==k||C===!1&&M!==P?!1:!!e.fromBytes(E)}catch{return!1}}function f(E=n(o.seed)){return lY(Yy(E,o.seed,\"seed\"),r.ORDER)}function d(E,C=!0){return e.BASE.multiply(gE(r,E)).toBytes(C)}function p(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:k,publicKeyUncompressed:P}=o;if(r.allowedLengths||C===k)return;let M=Xa(\"key\",E).length;return M===k||M===P}function y(E,C,k=!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 P=gE(r,E);return e.fromHex(C).multiply(P).toBytes(k)}return Object.freeze({getPublicKey:d,getSharedSecret:y,keygen:p,Point:e,utils:{isValidSecretKey:s,isValidPublicKey:u,randomSecretKey:f,isValidPrivateKey:s,randomPrivateKey:f,normPrivateKeyToScalar:E=>gE(r,E),precompute(E=8,C=e.BASE){return C.precompute(E,!1)}},lengths:o})}function Ivt(e,t,r={}){J9(t),m_(r,{},{hmac:\"function\",lowS:\"boolean\",randomBytes:\"function\",bits2int:\"function\",bits2int_modN:\"function\"});let n=r.randomBytes||Zp,o=r.hmac||((A,...T)=>dS(t,A,Bs(...T))),{Fp:s,Fn:u}=e,{ORDER:f,BITS:d}=u,{keygen:p,getPublicKey:h,getSharedSecret:y,utils:v,lengths:E}=Bvt(e,r),C={prehash:!1,lowS:typeof r.lowS==\"boolean\"?r.lowS:!1,format:void 0,extraEntropy:!1},k=\"compact\";function P(A){let T=f>>xE;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){hY(T);let R=E.signature,D=T===\"compact\"?R:T===\"recovered\"?R+1:void 0;return Yy(A,D,`${T} signature`)}class O{constructor(T,R,D){this.r=M(\"r\",T),this.s=M(\"s\",R),D!=null&&(this.recovery=D),Object.freeze(this)}static fromBytes(T,R=k){U(T,R);let D;if(R===\"der\"){let{r:F,s:I}=ih.toSig(Yy(T));return new O(F,I)}R===\"recovered\"&&(D=T[0],R=\"compact\",T=T.subarray(1));let L=u.BYTES,V=T.subarray(0,L),Q=T.subarray(L,L*2);return new O(u.fromBytes(V),u.fromBytes(Q),D)}static fromHex(T,R){return this.fromBytes(l0(T),R)}addRecoveryBit(T){return new O(this.r,this.s,T)}recoverPublicKey(T){let R=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*P$e<R&&V>1)throw new Error(\"recovery id is ambiguous for h>1 curve\");let F=V===2||V===3?D+f:D;if(!s.isValid(F))throw new Error(\"recovery id 2 or 3 invalid\");let I=s.toBytes(F),Z=e.fromBytes(Bs(R$e((V&1)===0),I)),me=u.inv(F),ge=j(Xa(\"msgHash\",T)),Se=u.create(-ge*me),Ce=u.create(L*me),qe=e.BASE.multiplyUnsafe(Se).add(Z.multiplyUnsafe(Ce));if(qe.is0())throw new Error(\"point at infinify\");return qe.assertValidity(),qe}hasHighS(){return P(this.s)}toBytes(T=k){if(hY(T),T===\"der\")return l0(ih.hexFromSig(this));let R=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),R,D)}return Bs(R,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 R=dx(T),D=T.length*8-d;return D>0?R>>BigInt(D):R},j=r.bits2int_modN||function(T){return u.create(N(T))},K=ah(d);function G(A){return aY(\"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,R){if([\"recovered\",\"canonical\"].some(Se=>Se in R))throw new Error(\"sign() legacy options not supported\");let{lowS:D,prehash:L,extraEntropy:V}=mY(R,C);A=J(A,L);let Q=j(A),F=gE(u,T),I=[G(F),G(Q)];if(V!=null&&V!==!1){let Se=V===!0?n(E.secretKey):V;I.push(Xa(\"extraEntropy\",Se))}let Z=Bs(...I),me=Q;function ge(Se){let Ce=N(Se);if(!u.isValidNot0(Ce))return;let qe=u.inv(Ce),je=e.BASE.multiply(Ce).toAffine(),Ot=u.create(je.x);if(Ot===sh)return;let Te=u.create(qe*u.create(me+Ot*F));if(Te===sh)return;let It=(je.x===Ot?0:2)|Number(je.y&xE),Gn=Te;return D&&P(Te)&&(Gn=u.neg(Te),It^=1),new O(Ot,Gn,It)}return{seed:Z,k2sig:ge}}function W(A,T,R={}){A=Xa(\"message\",A);let{seed:D,k2sig:L}=Y(A,T,R);return iY(t.outputLen,u.BYTES,o)(D,L)}function ie(A){let T,R=typeof A==\"string\"||u0(A),D=!R&&A!==null&&typeof A==\"object\"&&typeof A.r==\"bigint\"&&typeof A.s==\"bigint\";if(!R&&!D)throw new Error(\"invalid signature, expected Uint8Array, hex string or Signature instance\");if(D)T=new O(A.r,A.s);else if(R){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,R,D={}){let{lowS:L,prehash:V,format:Q}=mY(D,C);if(R=Xa(\"publicKey\",R),T=J(Xa(\"message\",T),V),\"strict\"in D)throw new Error(\"options.strict was renamed to lowS\");let F=Q===void 0?ie(A):O.fromBytes(Xa(\"sig\",A),Q);if(F===!1)return!1;try{let I=e.fromBytes(R);if(L&&F.hasHighS())return!1;let{r:Z,s:me}=F,ge=j(T),Se=u.inv(me),Ce=u.create(ge*Se),qe=u.create(Z*Se),je=e.BASE.multiplyUnsafe(Ce).add(I.multiplyUnsafe(qe));return je.is0()?!1:u.create(je.x)===Z}catch{return!1}}function H(A,T,R={}){let{prehash:D}=mY(R,C);return T=J(T,D),O.fromBytes(A,\"recovered\").recoverPublicKey(T).toBytes()}return Object.freeze({keygen:p,getPublicKey:h,getSharedSecret:y,utils:v,lengths:E,Point:e,sign:W,verify:re,recoverPublicKey:H,Signature:O,hash:t})}function Pvt(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 Rvt(e){let{CURVE:t,curveOpts:r}=Pvt(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 Mvt(e,t){let r=t.Point;return Object.assign({},t,{ProjectivePoint:r,CURVE:Object.assign({},e,XU(r.Fn.ORDER,r.Fn.BITS))})}function O$e(e){let{CURVE:t,curveOpts:r,hash:n,ecdsaOpts:o}=Rvt(e),s=kvt(t,r),u=Ivt(s,n,o);return Mvt(e,u)}var I$e,yY,ih,sh,xE,P$e,rD,_vt,N$e=x(()=>{c();iG();wl();h_();B$e();y_();I$e=(e,t)=>(e+(e>=0?t:-t)/P$e)/t;yY=class extends Error{constructor(t=\"\"){super(t)}},ih={Err:yY,_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=yE(n);if(o.length/2&128)throw new r(\"tlv.encode: long form length too big\");let s=n>127?yE(o.length/2|128):\"\";return yE(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 p=t.subarray(n,n+d);if(p.length!==d)throw new r(\"tlv.decode: length bytes not complete\");if(p[0]===0)throw new r(\"tlv.decode(long): zero leftmost byte\");for(let h of p)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=yE(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:p,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(p)}},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),xE=BigInt(1),P$e=BigInt(2),rD=BigInt(3),_vt=BigInt(4)});function vE(e,t){let r=n=>O$e({...e,hash:n});return{...r(t),create:r}}var bY=x(()=>{c();N$e();});function Nvt(e){let t=xY.p,r=BigInt(3),n=BigInt(6),o=BigInt(11),s=BigInt(22),u=BigInt(23),f=BigInt(44),d=BigInt(88),p=e*e*e%t,h=p*p*e%t,y=Dc(h,r,t)*h%t,v=Dc(y,r,t)*h%t,E=Dc(v,U$e,t)*p%t,C=Dc(E,o,t)*E%t,k=Dc(C,s,t)*C%t,P=Dc(k,f,t)*k%t,M=Dc(P,d,t)*P%t,U=Dc(M,f,t)*k%t,O=Dc(U,r,t)*h%t,N=Dc(O,u,t)*C%t,j=Dc(N,n,t)*p%t,K=Dc(j,U$e,t);if(!gY.eql(gY.sqr(K),e))throw new Error(\"Cannot find square root\");return K}var xY,Ovt,U$e,gY,nD,D$e=x(()=>{c();Lv();bY();y_();xY={p:BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),n:BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt(\"0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\"),Gy:BigInt(\"0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8\")},Ovt={beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),basises:[[BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),-BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\")],[BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\")]]},U$e=BigInt(2);gY=ju(xY.p,{sqrt:Nvt}),nD=vE({...xY,Fp:gY,lowS:!0,endo:Ovt},Tc)});var H$e=x(()=>{c();});var wE,qd,EE,AE,SE,CE,TE,_E,kE,BE,IE,PE,RE,hx,ME,Gd,OE,NE,yx,bx,UE,DE,gx,HE,xx,LE,FE,zE,jE,vx,wx,Ex,Ax,oD,$E,qE,vY=x(()=>{c();ht();wE=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(wE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa20/});qd=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(qd,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32521});Object.defineProperty(qd,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});EE=class extends ae{constructor({cause:t}){super(\"Failed to send funds to beneficiary.\",{cause:t,name:\"FailedToSendToBeneficiaryError\"})}};Object.defineProperty(EE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa91/});AE=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(AE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa94/});SE=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(SE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa95/});CE=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(CE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa13/});TE=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(TE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa15/});_E=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(_E,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa14/});kE=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(kE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa21/});BE=class extends ae{constructor({cause:t}){super(\"Bundler attempted to call an invalid function on the EntryPoint.\",{cause:t,name:\"InternalCallOnlyError\"})}};Object.defineProperty(BE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa92/});IE=class extends ae{constructor({cause:t}){super(\"Bundler used an invalid aggregator for handling aggregated User Operations.\",{cause:t,name:\"InvalidAggregatorError\"})}};Object.defineProperty(IE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa96/});PE=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(PE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa25/});RE=class extends ae{constructor({cause:t}){super(\"Bundler has not set a beneficiary address.\",{cause:t,name:\"InvalidBeneficiaryError\"})}};Object.defineProperty(RE,\"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});ME=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(ME,\"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/});OE=class extends ae{constructor({cause:t}){super(\"The `validatePaymasterUserOp` function on the Paymaster reverted.\",{cause:t,name:\"PaymasterFunctionRevertedError\"})}};Object.defineProperty(OE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa33/});NE=class extends ae{constructor({cause:t}){super(\"The Paymaster contract has not been deployed.\",{cause:t,name:\"PaymasterNotDeployedError\"})}};Object.defineProperty(NE,\"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});UE=class extends ae{constructor({cause:t}){super(\"Paymaster `postOp` function reverted.\",{cause:t,name:\"PaymasterPostOpFunctionRevertedError\"})}};Object.defineProperty(UE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa50/});DE=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(DE,\"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});HE=class extends ae{constructor({cause:t}){super(\"The `validateUserOp` function on the Smart Account reverted.\",{cause:t,name:\"SmartAccountFunctionRevertedError\"})}};Object.defineProperty(HE,\"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});LE=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(LE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa22/});FE=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(FE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa32/});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 Smart Account\"].filter(Boolean),name:\"UserOperationSignatureError\"})}};Object.defineProperty(zE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa24/});jE=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(jE,\"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});oD=class extends ae{constructor({cause:t}){super(`An error occurred while executing user operation: ${t?.shortMessage}`,{cause:t,name:\"UnknownBundlerError\"})}},$E=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($E,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa40/});qE=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(qE,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa41/})});var aD,iD,sD,g_,x_=x(()=>{c();ht();Ac();W0();aD=class extends ae{constructor(t,{callData:r,callGasLimit:n,docsPath:o,factory:s,factoryData:u,initCode:f,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,paymaster:y,paymasterAndData:v,paymasterData:E,paymasterPostOpGasLimit:C,paymasterVerificationGasLimit:k,preVerificationGas:P,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 p<\"u\"&&`${ao(p)} gwei`,nonce:h,paymaster:y,paymasterAndData:v,paymasterData:E,paymasterPostOpGasLimit:C,paymasterVerificationGasLimit:k,preVerificationGas:P,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}},iD=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\"})}},sD=class extends ae{constructor({hash:t}){super(`User Operation with hash \"${t}\" could not be found.`,{name:\"UserOperationNotFoundError\"})}},g_=class extends ae{constructor({hash:t}){super(`Timed out while waiting for User Operation with hash \"${t}\" to be confirmed.`,{name:\"WaitForUserOperationReceiptTimeoutError\"})}}});function L$e(e,t){let r=(e.details||\"\").toLowerCase();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});if(SE.message.test(r))return new SE({cause:e});if(CE.message.test(r))return new CE({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(TE.message.test(r))return new TE({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(_E.message.test(r))return new _E({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode,sender:t.sender});if(kE.message.test(r))return new kE({cause:e});if(BE.message.test(r))return new BE({cause:e});if(PE.message.test(r))return new PE({cause:e,nonce:t.nonce});if(IE.message.test(r))return new IE({cause:e});if(RE.message.test(r))return new RE({cause:e});if(ME.message.test(r))return new ME({cause:e});if(Gd.message.test(r))return new Gd({cause:e});if(OE.message.test(r))return new OE({cause:e});if(NE.message.test(r))return new NE({cause:e});if(UE.message.test(r))return new UE({cause:e});if(HE.message.test(r))return new HE({cause:e});if(DE.message.test(r))return new DE({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});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});if(zE.message.test(r))return new zE({cause:e});if($E.message.test(r))return new $E({cause:e});if(qE.message.test(r))return new qE({cause:e});let n=e.walk(o=>Uvt.some(s=>s.code===o.code));if(n){if(n.code===qd.code)return new qd({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 oD({cause:e})}var Uvt,F$e=x(()=>{c();vY();Uvt=[qd,hx,Gd,yx,bx,gx,xx,Ax,vx,wx,Ex]});function cD(e,{calls:t,docsPath:r,...n}){let o=(()=>{let s=L$e(e,n);if(t&&s instanceof qd){let u=Dvt(s),f=t?.filter(d=>d.abi);if(u&&f.length>0)return Hvt({calls:f,revertData:u})}return s})();return new aD(o,{docsPath:r,...n})}function Dvt(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 Hvt(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 p=d.filter(h=>{try{return!!Pv({abi:h.abi,data:r})}catch{return!1}});return p.length===1?p[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 wY=x(()=>{c();ht();Xp();lB();vY();x_();F$e()});function z$e(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 j$e=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=Lvt(e.authorization)),t}function Lvt(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 v_=x(()=>{c();tt();W0()});async function $$e(e,t){let{chainId:r,entryPointAddress:n,context:o,...s}=t,u=Xy(s),{paymasterPostOpGasLimit:f,paymasterVerificationGasLimit:d,...p}=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{...p,...f&&{paymasterPostOpGasLimit:at(f)},...d&&{paymasterVerificationGasLimit:at(d)}}}var q$e=x(()=>{c();Zn();tt();v_()});async function G$e(e,t){let{chainId:r,entryPointAddress:n,context:o,...s}=t,u=Xy(s),{paymasterPostOpGasLimit:f,paymasterVerificationGasLimit:d,...p}=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{...p,...f&&{paymasterPostOpGasLimit:at(f)},...d&&{paymasterVerificationGasLimit:at(d)}}}var V$e=x(()=>{c();Zn();tt();v_()});async function GE(e,t){let r=t,{account:n=e.account,dataSuffix:o=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,parameters:s=Fvt,stateOverride:u}=r;if(!n)throw new On;let f=Xe(n),d=e,p=r.paymaster??d?.paymaster,h=typeof p==\"string\"?p:void 0,{getPaymasterStubData:y,getPaymasterData:v}=(()=>{if(p===!0)return{getPaymasterStubData:G=>Ae(d,G$e,\"getPaymasterStubData\")(G),getPaymasterData:G=>Ae(d,$$e,\"getPaymasterData\")(G)};if(typeof p==\"object\"){let{getPaymasterStubData:G,getPaymasterData:J}=p;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},[k,P,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,UB,\"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 k<\"u\"&&(C.callData=o?mr([k,o]):k),typeof P<\"u\"&&(C={...C,...P}),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,lD,\"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 Fvt,uD=x(()=>{c();Yr();EW();HB();Tl();Pc();Fa();Jn();Zt();q$e();V$e();EY();Fvt=[\"factory\",\"fees\",\"gas\",\"paymaster\",\"nonce\",\"signature\",\"authorization\"]});async function lD(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,GE,\"prepareUserOperation\")({...t,parameters:[\"authorization\",\"factory\",\"nonce\",\"paymaster\",\"signature\"]}):t;try{let d=[Xy(f),n??s?.entryPoint?.address],p=await e.request({method:\"eth_estimateUserOperationGas\",params:u?[...d,u]:[...d]});return z$e(p)}catch(d){let p=t.calls;throw cD(d,{...f,...p?{calls:p}:{}})}}var EY=x(()=>{c();Yr();Pc();Zt();SS();wY();j$e();v_();uD()});function K$e(e){return e.request({method:\"eth_supportedEntryPoints\"})}var W$e=x(()=>{c()});function Q$e(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 Z$e=x(()=>{c()});async function J$e(e,{hash:t}){let r=await e.request({method:\"eth_getUserOperationByHash\",params:[t]},{dedupe:!0});if(!r)throw new sD({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:Q$e(f)}}var Y$e=x(()=>{c();x_();Z$e()});function X$e(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 eqe=x(()=>{c();_l();gm()});async function fD(e,{hash:t}){let r=await e.request({method:\"eth_getUserOperationReceipt\",params:[t]},{dedupe:!0});if(!r)throw new iD({hash:t});return X$e(r)}var AY=x(()=>{c();x_();eqe()});async function tqe(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,GE,\"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 p=t.calls;throw cD(d,{...s,...p?{calls:p}:{},signature:u})}}var rqe=x(()=>{c();Yr();Pc();Zt();wY();v_();uD()});function nqe(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,p)=>{let h=wa(f,{resolve:d,reject:p},y=>{let v=k=>{C(),k(),h()},E=s?setTimeout(()=>v(()=>y.reject(new g_({hash:r}))),s):void 0,C=Hs(async()=>{o&&u>=o&&(clearTimeout(E),v(()=>y.reject(new g_({hash:r}))));try{let k=await Ae(e,fD,\"getUserOperationReceipt\")({hash:r});clearTimeout(E),v(()=>y.resolve(k))}catch(k){let P=k;P.name!==\"UserOperationReceiptNotFoundError\"&&(clearTimeout(E),v(()=>y.reject(P)))}u++},{emitOnBegin:!0,interval:n});return C})})}var oqe=x(()=>{c();Zt();ym();L0();za();x_();AY()});function aqe(e){return{estimateUserOperationGas:t=>lD(e,t),getChainId:()=>Ko(e),getSupportedEntryPoints:()=>K$e(e),getUserOperation:t=>J$e(e,t),getUserOperationReceipt:t=>fD(e,t),prepareUserOperation:t=>GE(e,t),sendUserOperation:t=>tqe(e,t),waitForUserOperationReceipt:t=>nqe(e,t)}}var iqe=x(()=>{c();Tl();EY();W$e();Y$e();AY();uD();rqe();oqe()});function SY(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(aqe)}var sqe=x(()=>{c();RI();iqe()});var CY=x(()=>{c();u$e();sqe();n$e();o$e();c$e()});var TY,cqe=x(()=>{c();fU();TY=oE(()=>({}))});function _Y(e){e.forEach(t=>{var r,n,o,s,u,f,d,p;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:(p=(d=t.nativeCurrency)===null||d===void 0?void 0:d.decimal)!==null&&p!==void 0?p:18}}),y=fC({chain:h,transport:gd(t.rpcUrl)}),v=SY({client:y,transport:gd(t.rpcUrl)});TY.setState({[t.id]:{client:y,bundlerClient:v}})})}function dD(e){var t;return(t=TY.getState()[e])===null||t===void 0?void 0:t.client}var kY=x(()=>{c();Bo();CY();cqe()});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 VE=x(()=>{c();wi()});function w_(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 uqe=x(()=>{c();Bo();wi()});async function lqe(){return crypto.subtle.generateKey({name:\"ECDH\",namedCurve:\"P-256\"},!0,[\"deriveKey\"])}async function fqe(e,t){return crypto.subtle.deriveKey({name:\"ECDH\",public:t},e,{name:\"AES-GCM\",length:256},!1,[\"encrypt\",\"decrypt\"])}async function zvt(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 jvt(e,{iv:t,cipherText:r}){let n=await crypto.subtle.decrypt({name:\"AES-GCM\",iv:t},e,r);return new TextDecoder().decode(n)}function dqe(e){switch(e){case\"public\":return\"spki\";case\"private\":return\"pkcs8\"}}async function pD(e,t){let r=dqe(e),n=await crypto.subtle.exportKey(r,t);return a_(new Uint8Array(n))}async function mD(e,t){let r=dqe(e),n=sE(t).buffer;return await crypto.subtle.importKey(r,new Uint8Array(n),{name:\"ECDH\",namedCurve:\"P-256\"},!0,e===\"private\"?[\"deriveKey\"]:[])}async function pqe(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 zvt(t,r)}async function mqe(e,t){return JSON.parse(await jvt(t,e))}var BY=x(()=>{c();Zl()});var hqe=x(()=>{c()});var yqe,bqe=x(()=>{c();yqe=\"0.1.1\"});function gqe(){return yqe}var xqe=x(()=>{c();bqe()});function vqe(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?vqe(e.cause,t):t?null:e}var Vt,ch=x(()=>{c();xqe();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@${gqe()}`}),this.cause=r.cause,this.details=n,this.docs=u,this.docsPath=o,this.shortMessage=t}walk(t){return vqe(this,t)}}});var wqe,Eqe=x(()=>{c();h_();wqe=l$e});function tb(e,t,r){return JSON.stringify(e,(n,o)=>typeof t==\"function\"?t(n,o):typeof o==\"bigint\"?o.toString()+qvt:o,r)}var qvt,KE=x(()=>{c();qvt=\"#__bigint\"});function A_(e,t){if(Sx(e)>t)throw new hD({givenSize:Sx(e),maxSize:t})}function Aqe(e,t){if(typeof t==\"number\"&&t>0&&t>Sx(e)-1)throw new S_({offset:t,position:\"start\",size:Sx(e)})}function Sqe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&Sx(e)!==r-t)throw new S_({offset:r,position:\"end\",size:Sx(e)})}function IY(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 Cqe(e,t={}){let{dir:r,size:n=32}=t;if(n===0)return e;if(e.length>n)throw new yD({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 Tqe(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,PY=x(()=>{c();$u();uh={zero:48,nine:57,A:65,F:70,a:97,f:102}});function Cx(e,t){if(ss(e)>t)throw new C_({givenSize:ss(e),maxSize:t})}function kqe(e,t){if(typeof t==\"number\"&&t>0&&t>ss(e)-1)throw new WE({offset:t,position:\"start\",size:ss(e)})}function Bqe(e,t,r){if(typeof t==\"number\"&&typeof r==\"number\"&&ss(e)!==r-t)throw new WE({offset:r,position:\"end\",size:ss(e)})}function RY(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 T_({size:Math.ceil(o.length/2),targetSize:n,type:\"Hex\"});return`0x${o[r===\"right\"?\"padEnd\":\"padStart\"](n*2,\"0\")}`}function MY(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 OY=x(()=>{c();Kd()});var cs={};Wn(cs,{IntegerOutOfRangeError:()=>bD,InvalidHexBooleanError:()=>gD,InvalidHexTypeError:()=>__,InvalidHexValueError:()=>k_,InvalidLengthError:()=>NY,SizeExceedsPaddingSizeError:()=>T_,SizeOverflowError:()=>C_,SliceOffsetOutOfBoundsError:()=>WE,assert:()=>Pqe,concat:()=>Yl,from:()=>QE,fromBoolean:()=>UY,fromBytes:()=>wo,fromNumber:()=>Xo,fromString:()=>ZE,isEqual:()=>Kvt,padLeft:()=>JE,padRight:()=>YE,random:()=>Wvt,size:()=>ss,slice:()=>qu,toBigInt:()=>xD,toBoolean:()=>Zvt,toBytes:()=>Jvt,toNumber:()=>Rqe,toString:()=>Yvt,trimLeft:()=>B_,trimRight:()=>Qvt,validate:()=>vD});function Pqe(e,t={}){let{strict:r=!1}=t;if(!e)throw new __(e);if(typeof e!=\"string\")throw new __(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new k_(e);if(!e.startsWith(\"0x\"))throw new k_(e)}function Yl(...e){return`0x${e.reduce((t,r)=>t+r.replace(\"0x\",\"\"),\"\")}`}function QE(e){return e instanceof Uint8Array?wo(e):Array.isArray(e)?wo(new Uint8Array(e)):e}function UY(e,t={}){let r=`0x${Number(e)}`;return typeof t.size==\"number\"?(Cx(r,t.size),JE(r,t.size)):r}function wo(e,t={}){let r=\"\";for(let o=0;o<e.length;o++)r+=Vvt[e[o]];let n=`0x${r}`;return typeof t.size==\"number\"?(Cx(n,t.size),YE(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 p=typeof e==\"bigint\"?\"n\":\"\";throw new bD({max:s?`${s}${p}`:void 0,min:`${u}${p}`,signed:r,size:n,value:`${e}${p}`})}let d=`0x${(r&&o<0?(1n<<BigInt(n*8))+BigInt(o):o).toString(16)}`;return n?JE(d,n):d}function ZE(e,t={}){return wo(Gvt.encode(e),t)}function Kvt(e,t){return wqe(Ba(e),Ba(t))}function JE(e,t){return RY(e,{dir:\"left\",size:t})}function YE(e,t){return RY(e,{dir:\"right\",size:t})}function Wvt(e){return wo(Mqe(e))}function qu(e,t,r,n={}){let{strict:o}=n;kqe(e,t);let s=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(r??e.length)*2)}`;return o&&Bqe(s,t,r),s}function ss(e){return Math.ceil((e.length-2)/2)}function B_(e){return MY(e,{dir:\"left\"})}function Qvt(e){return MY(e,{dir:\"right\"})}function xD(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 Zvt(e,t={}){t.size&&Cx(e,t.size);let r=B_(e);if(r===\"0x\")return!1;if(r===\"0x1\")return!0;throw new gD(e)}function Jvt(e,t={}){return Ba(e,t)}function Rqe(e,t={}){let{signed:r,size:n}=t;return Number(!r&&!n?e:xD(e,t))}function Yvt(e,t={}){let{size:r}=t,n=Ba(e);return r&&(A_(n,r),n=Oqe(n)),new TextDecoder().decode(n)}function vD(e,t={}){let{strict:r=!1}=t;try{return Pqe(e,{strict:r}),!0}catch{return!1}}var Gvt,Vvt,bD,gD,__,k_,NY,C_,WE,T_,Kd=x(()=>{c();Eqe();$u();ch();KE();PY();OY();Gvt=new TextEncoder,Vvt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));bD=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\"})}},gD=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\"})}},__=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\"})}},k_=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\"})}},NY=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\"})}},C_=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\"})}},WE=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\"})}},T_=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 ewt(e){if(!(e instanceof Uint8Array)){if(!e)throw new XE(e);if(typeof e!=\"object\")throw new XE(e);if(!(\"BYTES_PER_ELEMENT\"in e))throw new XE(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!==\"Uint8Array\")throw new XE(e)}}function wD(...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 e3(e){return e instanceof Uint8Array?e:typeof e==\"string\"?Ba(e):DY(e)}function DY(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Ba(e,t={}){let{size:r}=t,n=e;r&&(Cx(e,r),n=YE(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 p=IY(o.charCodeAt(d++)),h=IY(o.charCodeAt(d++));if(p===void 0||h===void 0)throw new Vt(`Invalid byte sequence (\"${o[d-2]}${o[d-1]}\" in \"${o}\").`);u[f]=p*16+h}return u}function HY(e,t){let r=Xo(e,t);return Ba(r)}function t3(e,t={}){let{size:r}=t,n=Xvt.encode(e);return typeof r==\"number\"?(A_(n,r),twt(n,r)):n}function twt(e,t){return Cqe(e,{dir:\"right\",size:t})}function Mqe(e){return crypto.getRandomValues(new Uint8Array(e))}function Sx(e){return e.length}function LY(e,t,r,n={}){let{strict:o}=n;Aqe(e,t);let s=e.slice(t,r);return o&&Sqe(s,t,r),s}function FY(e,t={}){let{size:r}=t;typeof r<\"u\"&&A_(e,r);let n=wo(e,t);return xD(n,t)}function Oqe(e){return Tqe(e,{dir:\"right\"})}function Nqe(e){try{return ewt(e),!0}catch{return!1}}var Xvt,XE,hD,S_,yD,$u=x(()=>{c();ch();Kd();KE();PY();OY();Xvt=new TextEncoder;XE=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\"})}},hD=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\"})}},S_=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\"})}},yD=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 ED(e,t={}){let{as:r=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,n=Zf(e3(e));return r===\"Bytes\"?n:wo(n)}function AD(e,t={}){let{as:r=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,n=O0(e3(e));return r===\"Bytes\"?n:wo(n)}var SD=x(()=>{c();Av();kS();$u();Kd()});var CD,Uqe=x(()=>{c();CD=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 rwt,TD,jY=x(()=>{c();Uqe();rwt={checksum:new CD(8192)},TD=rwt.checksum});var Wd={};Wn(Wd,{InvalidCompressedPrefixError:()=>kD,InvalidError:()=>_D,InvalidPrefixError:()=>I_,InvalidSerializedSizeError:()=>ID,InvalidUncompressedPrefixError:()=>BD,assert:()=>PD,compress:()=>nwt,from:()=>Tx,fromBytes:()=>Hqe,fromHex:()=>$Y,toBytes:()=>qY,toHex:()=>RD,validate:()=>owt});function PD(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 I_({prefix:n,cause:new BD});return}if(r===!0||typeof o==\"bigint\"&&typeof s>\"u\"){if(n!==3&&n!==2)throw new I_({prefix:n,cause:new kD});return}throw new _D({publicKey:e})}function nwt(e){let{x:t,y:r}=e;return{prefix:r%2n===0n?2:3,x:t}}function Tx(e){let t=(()=>{if(vD(e))return $Y(e);if(Nqe(e))return Hqe(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 PD(t),t}function Hqe(e){return $Y(wo(e))}function $Y(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new ID({publicKey:e});if(e.length===130){let n=BigInt(qu(e,0,32)),o=BigInt(qu(e,32,64));return{prefix:4,x:n,y:o}}if(e.length===132){let n=Number(qu(e,0,1)),o=BigInt(qu(e,1,33)),s=BigInt(qu(e,33,65));return{prefix:n,x:o,y:s}}let t=Number(qu(e,0,1)),r=BigInt(qu(e,1,33));return{prefix:t,x:r}}function qY(e,t={}){return Ba(RD(e,t))}function RD(e,t={}){PD(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 owt(e,t={}){try{return PD(e,t),!0}catch{return!1}}var _D,I_,kD,BD,ID,P_=x(()=>{c();$u();ch();Kd();KE();_D=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\"})}},I_=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\"})}},kD=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\"})}},BD=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\"})}},ID=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(QE(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidSerializedSizeError\"})}}});function KY(e,t={}){let{strict:r=!0}=t;if(!awt.test(e))throw new MD({address:e,cause:new GY});if(r){if(e.toLowerCase()===e)return;if(iwt(e)!==e)throw new MD({address:e,cause:new VY})}}function iwt(e){if(TD.has(e))return TD.get(e);KY(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=ED(t3(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 TD.set(e,o),o}var awt,MD,GY,VY,WY=x(()=>{c();$u();jY();ch();SD();awt=/^0x[a-fA-F0-9]{40}$/;MD=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\"})}},GY=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\"})}},VY=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 Fqe=x(()=>{c()});var zqe,jqe,$qe,NDn,UDn,DDn,HDn,LDn,FDn,zDn,jDn,$Dn,qDn,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,bHn,gHn,xHn,vHn,wHn,EHn,AHn,SHn,CHn,THn,_Hn,kHn,BHn,IHn,PHn,RHn,MHn,OHn,NHn,UHn,DHn,HHn,LHn,FHn,zHn,jHn,$Hn,qHn,GHn,VHn,KHn,WHn,QHn,ZHn,JHn,YHn,XHn,eLn,tLn,rLn,nLn,oLn,aLn,iLn,sLn,cLn,uLn,lLn,fLn,dLn,pLn,mLn,hLn,yLn,bLn,gLn,xLn,vLn,wLn,QY,OD=x(()=>{c();zqe=/^(.*)\\\\[([0-9]*)\\\\]$/,jqe=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,$qe=/^(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)?$/,NDn=2n**(8n-1n)-1n,UDn=2n**(16n-1n)-1n,DDn=2n**(24n-1n)-1n,HDn=2n**(32n-1n)-1n,LDn=2n**(40n-1n)-1n,FDn=2n**(48n-1n)-1n,zDn=2n**(56n-1n)-1n,jDn=2n**(64n-1n)-1n,$Dn=2n**(72n-1n)-1n,qDn=2n**(80n-1n)-1n,GDn=2n**(88n-1n)-1n,VDn=2n**(96n-1n)-1n,KDn=2n**(104n-1n)-1n,WDn=2n**(112n-1n)-1n,QDn=2n**(120n-1n)-1n,ZDn=2n**(128n-1n)-1n,JDn=2n**(136n-1n)-1n,YDn=2n**(144n-1n)-1n,XDn=2n**(152n-1n)-1n,eHn=2n**(160n-1n)-1n,tHn=2n**(168n-1n)-1n,rHn=2n**(176n-1n)-1n,nHn=2n**(184n-1n)-1n,oHn=2n**(192n-1n)-1n,aHn=2n**(200n-1n)-1n,iHn=2n**(208n-1n)-1n,sHn=2n**(216n-1n)-1n,cHn=2n**(224n-1n)-1n,uHn=2n**(232n-1n)-1n,lHn=2n**(240n-1n)-1n,fHn=2n**(248n-1n)-1n,dHn=2n**(256n-1n)-1n,pHn=-(2n**(8n-1n)),mHn=-(2n**(16n-1n)),hHn=-(2n**(24n-1n)),yHn=-(2n**(32n-1n)),bHn=-(2n**(40n-1n)),gHn=-(2n**(48n-1n)),xHn=-(2n**(56n-1n)),vHn=-(2n**(64n-1n)),wHn=-(2n**(72n-1n)),EHn=-(2n**(80n-1n)),AHn=-(2n**(88n-1n)),SHn=-(2n**(96n-1n)),CHn=-(2n**(104n-1n)),THn=-(2n**(112n-1n)),_Hn=-(2n**(120n-1n)),kHn=-(2n**(128n-1n)),BHn=-(2n**(136n-1n)),IHn=-(2n**(144n-1n)),PHn=-(2n**(152n-1n)),RHn=-(2n**(160n-1n)),MHn=-(2n**(168n-1n)),OHn=-(2n**(176n-1n)),NHn=-(2n**(184n-1n)),UHn=-(2n**(192n-1n)),DHn=-(2n**(200n-1n)),HHn=-(2n**(208n-1n)),LHn=-(2n**(216n-1n)),FHn=-(2n**(224n-1n)),zHn=-(2n**(232n-1n)),jHn=-(2n**(240n-1n)),$Hn=-(2n**(248n-1n)),qHn=-(2n**(256n-1n)),GHn=2n**8n-1n,VHn=2n**16n-1n,KHn=2n**24n-1n,WHn=2n**32n-1n,QHn=2n**40n-1n,ZHn=2n**48n-1n,JHn=2n**56n-1n,YHn=2n**64n-1n,XHn=2n**72n-1n,eLn=2n**80n-1n,tLn=2n**88n-1n,rLn=2n**96n-1n,nLn=2n**104n-1n,oLn=2n**112n-1n,aLn=2n**120n-1n,iLn=2n**128n-1n,sLn=2n**136n-1n,cLn=2n**144n-1n,uLn=2n**152n-1n,lLn=2n**160n-1n,fLn=2n**168n-1n,dLn=2n**176n-1n,pLn=2n**184n-1n,mLn=2n**192n-1n,hLn=2n**200n-1n,yLn=2n**208n-1n,bLn=2n**216n-1n,gLn=2n**224n-1n,xLn=2n**232n-1n,vLn=2n**240n-1n,wLn=2n**248n-1n,QY=2n**256n-1n});function JY(e,t){if(e.length!==t.length)throw new XY({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 YY,XY,eX,qqe=x(()=>{c();WY();ch();Kd();OD();(function(e){function t(r,n,o=!1){if(r===\"address\"){let d=n;return KY(d),JE(d.toLowerCase(),o?32:0)}if(r===\"string\")return ZE(n);if(r===\"bytes\")return n;if(r===\"bool\")return JE(UY(n),o?32:1);let s=r.match($qe);if(s){let[d,p,h=\"256\"]=s,y=Number.parseInt(h)/8;return Xo(n,{size:o?32:y,signed:p===\"int\"})}let u=r.match(jqe);if(u){let[d,p]=u;if(Number.parseInt(p)!==(n.length-2)/2)throw new YY({expectedSize:Number.parseInt(p),value:n});return YE(n,o?32:0)}let f=r.match(zqe);if(f&&Array.isArray(n)){let[d,p]=f,h=[];for(let y=0;y<n.length;y++)h.push(t(p,n[y],!0));return h.length===0?\"0x\":Yl(...h)}throw new eX(r)}e.encode=t})(JY||(JY={}));YY=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\"})}},XY=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\"})}},eX=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 Gqe=x(()=>{c()});var Vqe=x(()=>{c()});var Kqe=x(()=>{c()});var Wqe=x(()=>{c()});var Qqe=x(()=>{c()});var Zqe=x(()=>{c()});var Jqe=x(()=>{c()});var Yqe=x(()=>{c()});var kx={};Wn(kx,{InvalidRError:()=>UD,InvalidSError:()=>DD,InvalidSerializedSizeError:()=>ND,InvalidVError:()=>HD,InvalidYParityError:()=>_x,MissingPropertiesError:()=>r3,assert:()=>LD,extract:()=>ywt,from:()=>tX,fromBytes:()=>Xqe,fromDerBytes:()=>bwt,fromDerHex:()=>eGe,fromHex:()=>R_,fromLegacy:()=>tGe,fromRpc:()=>rGe,fromTuple:()=>gwt,toBytes:()=>xwt,toDerBytes:()=>vwt,toDerHex:()=>wwt,toHex:()=>nGe,toLegacy:()=>Ewt,toRpc:()=>Awt,toTuple:()=>Swt,vToYParity:()=>FD,validate:()=>Cwt,yParityToV:()=>rX});function LD(e,t={}){let{recovered:r}=t;if(typeof e.r>\"u\")throw new r3({signature:e});if(typeof e.s>\"u\")throw new r3({signature:e});if(r&&typeof e.yParity>\"u\")throw new r3({signature:e});if(e.r<0n||e.r>QY)throw new UD({value:e.r});if(e.s<0n||e.s>QY)throw new DD({value:e.s});if(typeof e.yParity==\"number\"&&e.yParity!==0&&e.yParity!==1)throw new _x({value:e.yParity})}function Xqe(e){return R_(wo(e))}function R_(e){if(e.length!==130&&e.length!==132)throw new ND({signature:e});let t=BigInt(qu(e,0,32)),r=BigInt(qu(e,32,64)),n=(()=>{let o=+`0x${e.slice(130)}`;if(!Number.isNaN(o))try{return FD(o)}catch{throw new _x({value:o})}})();return typeof n>\"u\"?{r:t,s:r}:{r:t,s:r,yParity:n}}function ywt(e){if(!(typeof e.r>\"u\")&&!(typeof e.s>\"u\"))return tX(e)}function tX(e){let t=typeof e==\"string\"?R_(e):e instanceof Uint8Array?Xqe(e):typeof e.r==\"string\"?rGe(e):e.v?tGe(e):{r:e.r,s:e.s,...typeof e.yParity<\"u\"?{yParity:e.yParity}:{}};return LD(t),t}function bwt(e){return eGe(wo(e))}function eGe(e){let{r:t,s:r}=nD.Signature.fromDER(QE(e).slice(2));return{r:t,s:r}}function tGe(e){return{r:e.r,s:e.s,yParity:FD(e.v)}}function rGe(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=FD(r)),typeof n!=\"number\")throw new _x({value:e.yParity});return n})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function gwt(e){let[t,r,n]=e;return tX({r:r===\"0x\"?0n:BigInt(r),s:n===\"0x\"?0n:BigInt(n),yParity:t===\"0x\"?0:Number(t)})}function xwt(e){return Ba(nGe(e))}function nGe(e){LD(e);let t=e.r,r=e.s;return Yl(Xo(t,{size:32}),Xo(r,{size:32}),typeof e.yParity==\"number\"?Xo(rX(e.yParity),{size:1}):\"0x\")}function vwt(e){return new nD.Signature(e.r,e.s).toDERRawBytes()}function wwt(e){return`0x${new nD.Signature(e.r,e.s).toDERHex()}`}function Ewt(e){return{r:e.r,s:e.s,v:rX(e.yParity)}}function Awt(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 Swt(e){let{r:t,s:r,yParity:n}=e;return[n?\"0x01\":\"0x\",t===0n?\"0x\":B_(Xo(t)),r===0n?\"0x\":B_(Xo(r))]}function Cwt(e,t={}){try{return LD(e,t),!0}catch{return!1}}function FD(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 HD({value:e})}function rX(e){if(e===0)return 27;if(e===1)return 28;throw new _x({value:e})}var ND,r3,UD,DD,_x,HD,nX=x(()=>{c();D$e();$u();ch();Kd();KE();OD();ND=class extends Vt{constructor({signature:t}){super(`Value \\\\`${t}\\\\` is an invalid signature size.`,{metaMessages:[\"Expected: 64 bytes or 65 bytes.\",`Received ${ss(QE(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSerializedSizeError\"})}},r3=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\"})}},UD=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\"})}},DD=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\"})}},HD=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 oGe=x(()=>{c()});var aGe=x(()=>{c()});function Iwt(e,t={}){let{pad:r=!0,url:n=!1}=t,o=new Uint8Array(Math.ceil(e.length/3)*4);for(let d=0,p=0;p<e.length;d+=4,p+=3){let h=(e[p]<<16)+(e[p+1]<<8)+(e[p+2]|0);o[d]=zD[h>>18],o[d+1]=zD[h>>12&63],o[d+2]=zD[h>>6&63],o[d+3]=zD[h&63]}let s=e.length%3,u=Math.floor(e.length/3)*4+(s&&s+1),f=Bwt.decode(new Uint8Array(o.buffer,0,u));return r&&s===1&&(f+=\"==\"),r&&s===2&&(f+=\"=\"),n&&(f=f.replaceAll(\"+\",\"-\").replaceAll(\"/\",\"_\")),f}function iGe(e,t={}){return Iwt(Ba(e),t)}function $D(e){let t=e.replace(/=+$/,\"\"),r=t.length,n=new Uint8Array(r+3);kwt.encodeInto(t+\"===\",n);for(let s=0,u=0;s<t.length;s+=4,u+=3){let f=(jD[n[s]]<<18)+(jD[n[s+1]]<<12)+(jD[n[s+2]]<<6)+jD[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 kwt,Bwt,zD,jD,oX=x(()=>{c();$u();kwt=new TextEncoder,Bwt=new TextDecoder,zD=Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[t,e.charCodeAt(0)])),jD={...Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63}});var cGe=x(()=>{c()});var uGe=x(()=>{c()});var lGe,Mwt,fGe,Owt,FLn,dGe=x(()=>{c();lGe=6,Mwt=32,fGe=4096,Owt=Mwt*fGe,FLn=Owt*lGe-1-1*fGe*lGe});var pGe=x(()=>{c()});var mGe=x(()=>{c()});var hGe=x(()=>{c()});var yGe=x(()=>{c()});var bGe=x(()=>{c()});var gGe=x(()=>{c()});var xGe=x(()=>{c()});var vGe=x(()=>{c()});var qwt,Gwt,Vwt,Kwt,wGe,EGe,AGe,Wwt,Qwt,ZLn,JLn,YLn,XLn,SGe=x(()=>{c();qwt=44032,Gwt=4352,Vwt=4449,Kwt=4519,wGe=19,EGe=21,AGe=28,Wwt=EGe*AGe,Qwt=wGe*Wwt,ZLn=qwt+Qwt,JLn=Gwt+wGe,YLn=Vwt+EGe,XLn=Kwt+AGe});var CGe=x(()=>{c();SGe()});var TGe=x(()=>{c()});var _Ge=x(()=>{c()});var kGe=x(()=>{c()});var BGe=x(()=>{c()});var IGe=x(()=>{c()});var PGe=x(()=>{c();H$e()});var RGe=x(()=>{c()});var tc,aX,iX,sX,cX,uX,lX,fX,dX,pX,mX,hX,yX,MGe=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}},aX=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(aX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});iX=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(iX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});sX=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(sX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});cX=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(cX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});uX=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(uX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});lX=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(lX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});fX=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(fX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});dX=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(dX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});pX=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(pX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});mX=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(mX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});hX=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(hX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});yX=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(yX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700})});var Bx,bX,gX,xX,vX,wX,OGe=x(()=>{c();rM();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}},bX=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(bX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});gX=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(gX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});xX=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(xX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});vX=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(vX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});wX=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(wX,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901})});var NGe=x(()=>{c()});var UGe=x(()=>{c()});var DGe=x(()=>{c()});var HGe,LGe,FGe,c6t,u6t,l6t,EX,CFn,TFn,zGe=x(()=>{c();Lv();bY();y_();HGe={p:BigInt(\"0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff\"),n:BigInt(\"0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551\"),h:BigInt(1),a:BigInt(\"0xffffffff00000001000000000000000000000000fffffffffffffffffffffffc\"),b:BigInt(\"0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b\"),Gx:BigInt(\"0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296\"),Gy:BigInt(\"0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5\")},LGe={p:BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff\"),n:BigInt(\"0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973\"),h:BigInt(1),a:BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc\"),b:BigInt(\"0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef\"),Gx:BigInt(\"0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7\"),Gy:BigInt(\"0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f\")},FGe={p:BigInt(\"0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"),n:BigInt(\"0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409\"),h:BigInt(1),a:BigInt(\"0x1fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc\"),b:BigInt(\"0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00\"),Gx:BigInt(\"0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66\"),Gy:BigInt(\"0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650\")},c6t=ju(HGe.p),u6t=ju(LGe.p),l6t=ju(FGe.p),EX=vE({...HGe,Fp:c6t,lowS:!1},Tc),CFn=vE({...LGe,Fp:u6t,lowS:!1},CB),TFn=vE({...FGe,Fp:l6t,lowS:!1,allowedPrivateKeyLengths:[130,131,132]},SB)});var n3,jGe,qD=x(()=>{c();zGe();n3=EX,jGe=EX});function $Ge(e){let{hash:t,payload:r,publicKey:n,signature:o}=e;return jGe.verify(o,r instanceof Uint8Array?r:Ba(r),RD(n).substring(2),...t?[{prehash:!0,lowS:!0}]:[])}var AX=x(()=>{c();qD();$u();P_()});var GGe=x(()=>{c()});var VGe=x(()=>{c()});var KGe=x(()=>{c()});var WGe=x(()=>{c()});var QGe=x(()=>{c()});var ZGe=x(()=>{c()});var JGe=x(()=>{c()});var YGe=x(()=>{c()});var XGe=x(()=>{c()});var eVe=x(()=>{c()});var tVe=x(()=>{c()});var rVe=x(()=>{c()});var nVe=x(()=>{c()});function oVe(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>n3.CURVE.n/2n?n3.CURVE.n-s:s}}async function aVe(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 p=new Uint8Array([d,o,n]);for(let h=0;h<r.length-p.length;h++)if(p.every((y,v)=>r[h+v]===y))return h+p.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 iVe=x(()=>{c();qD();Kd();P_();SX()});var GD={};Wn(GD,{CredentialCreationFailedError:()=>rb,CredentialRequestFailedError:()=>M_,createChallenge:()=>sVe,createCredential:()=>C6t,getAuthenticatorData:()=>cVe,getClientDataJSON:()=>uVe,getCredentialCreationOptions:()=>lVe,getCredentialRequestOptions:()=>fVe,getSignPayload:()=>T6t,sign:()=>_6t,verify:()=>k6t});async function C6t(e){let{createFn:t=window.navigator.credentials.create.bind(window.navigator.credentials),...r}=e,n=lVe(r);try{let o=await t(n);if(!o)throw new rb;let s=o.response,u=await aVe(s);return{id:o.id,publicKey:u,raw:o}}catch(o){throw new rb({cause:o})}}function cVe(e={}){let{flag:t=5,rpId:r=window.location.hostname,signCount:n=0}=e,o=AD(ZE(r)),s=Xo(t,{size:1}),u=Xo(n,{size:4});return Yl(o,s,u)}function uVe(e){let{challenge:t,crossOrigin:r=!1,extraClientData:n,origin:o=window.location.origin}=e;return JSON.stringify({type:\"webauthn.get\",challenge:iGe(t,{url:!0,pad:!1}),origin:o,crossOrigin:r,...n})}function lVe(e){let{attestation:t=\"none\",authenticatorSelection:r={residentKey:\"preferred\",requireResidentKey:!1,userVerification:\"required\"},challenge:n=sVe,excludeCredentialIds:o,name:s,rp:u={id:window.location.hostname,name:window.document.title},user:f,extensions:d}=e,p=f?.name??s;return{publicKey:{attestation:t,authenticatorSelection:r,challenge:n,...o?{excludeCredentials:o?.map(h=>({id:$D(h),type:\"public-key\"}))}:{},pubKeyCredParams:[{type:\"public-key\",alg:-7}],rp:u,user:{id:f?.id??ED(t3(p),{as:\"Bytes\"}),name:p,displayName:f?.displayName??p},extensions:d}}}function fVe(e){let{credentialId:t,challenge:r,rpId:n=window.location.hostname,userVerification:o=\"required\"}=e;return{publicKey:{...t?{allowCredentials:[{id:$D(t),type:\"public-key\"}]}:{},challenge:Ba(r),rpId:n,userVerification:o}}}function T6t(e){let{challenge:t,crossOrigin:r,extraClientData:n,flag:o,origin:s,rpId:u,signCount:f,userVerification:d=\"required\"}=e,p=cVe({flag:o,rpId:u,signCount:f}),h=uVe({challenge:t,crossOrigin:r,extraClientData:n,origin:s}),y=AD(ZE(h)),v=h.indexOf(\\'\"challenge\"\\'),E=h.indexOf(\\'\"type\"\\'),C={authenticatorData:p,clientDataJSON:h,challengeIndex:v,typeIndex:E,userVerificationRequired:d===\"required\"},k=Yl(p,y);return{metadata:C,payload:k}}async function _6t(e){let{getFn:t=window.navigator.credentials.get.bind(window.navigator.credentials),...r}=e,n=fVe(r);try{let o=await t(n);if(!o)throw new M_;let s=o.response,u=String.fromCharCode(...new Uint8Array(s.clientDataJSON)),f=u.indexOf(\\'\"challenge\"\\'),d=u.indexOf(\\'\"type\"\\'),p=oVe(new Uint8Array(s.signature));return{metadata:{authenticatorData:wo(new Uint8Array(s.authenticatorData)),clientDataJSON:u,challengeIndex:f,typeIndex:d,userVerificationRequired:n.publicKey.userVerification===\"required\"},signature:p,raw:o}}catch(o){throw new M_({cause:o})}}function k6t(e){let{challenge:t,hash:r=!0,metadata:n,publicKey:o,signature:s}=e,{authenticatorData:u,challengeIndex:f,clientDataJSON:d,typeIndex:p,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(p),E.length+1))return!1;let C=d.slice(Number(f)).match(/^\"challenge\":\"(.*?)\"/);if(!C)return!1;let[k,P]=C;if(wo($D(P))!==t)return!1;let M=AD(t3(d),{as:\"Bytes\"}),U=wD(y,M);return $Ge({hash:r,payload:U,publicKey:o,signature:s})}var sVe,rb,M_,SX=x(()=>{c();oX();$u();ch();SD();Kd();AX();iVe();sVe=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\"})}},M_=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 O_={};Wn(O_,{createKeyPair:()=>B6t,sign:()=>I6t,verify:()=>P6t});async function B6t(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 I6t(e){let{payload:t,privateKey:r}=e,n=await globalThis.crypto.subtle.sign({name:\"ECDSA\",hash:\"SHA-256\"},r,e3(t)),o=DY(new Uint8Array(n)),s=FY(LY(o,0,32)),u=FY(LY(o,32,64));return u>n3.CURVE.n/2n&&(u=n3.CURVE.n-u),{r:s,s:u}}async function P6t(e){let{payload:t,signature:r}=e,n=await globalThis.crypto.subtle.importKey(\"raw\",qY(e.publicKey),{name:\"ECDSA\",namedCurve:\"P-256\"},!0,[\"verify\"]);return await globalThis.crypto.subtle.verify({name:\"ECDSA\",hash:\"SHA-256\"},n,wD(HY(r.r),HY(r.s)),e3(t))}var dVe=x(()=>{c();qD();$u();P_()});var CX=x(()=>{c();hqe();Gqe();Vqe();Kqe();Wqe();Fqe();qqe();Qqe();Zqe();WY();Jqe();oGe();aGe();oX();cGe();dGe();hGe();yGe();bGe();gGe();xGe();$u();jY();vGe();CGe();ch();TGe();SD();kGe();Kd();BGe();KE();uGe();IGe();PGe();RGe();OGe();P_();Yqe();NGe();UGe();MGe();DGe();_Ge();AX();nX();GGe();OD();VGe();pGe();WGe();QGe();ZGe();JGe();YGe();XGe();eVe();tVe();rVe();nVe();KGe();SX();dVe();mGe()});function VD(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function _X(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let n=VD(r);return(o,s)=>n.then(u=>s(u.transaction(t,o).objectStore(t)))}function kX(){return TX||(TX=_X(\"keyval-store\",\"keyval\")),TX}function pVe(e,t=kX()){return t(\"readonly\",r=>VD(r.get(e)))}function mVe(e,t,r=kX()){return r(\"readwrite\",n=>(n.put(t,e),VD(n.transaction)))}function hVe(e,t=kX()){return t(\"readwrite\",r=>(r.delete(e),VD(r.transaction)))}var TX,yVe=x(()=>{c()});function bVe(e,t){let r=typeof indexedDB<\"u\"?_X(e,t):void 0;return{getItem:async n=>{let o=await pVe(n,r);return o||null},removeItem:async n=>hVe(n,r),setItem:async(n,o)=>mVe(n,o,r)}}var gVe=x(()=>{c();yVe()});async function O6t(){let e=await O_.createKeyPair({extractable:!1}),t=cs.slice(Wd.toHex(e.publicKey),1);return await nb.setItem(t,e),await nb.setItem(KD,t),e}async function xVe(){let e=await nb.getItem(KD);if(!e)return null;let t=await nb.getItem(e);return t||null}async function N6t(){let e=await xVe();if(!e){let t=await O6t(),r=cs.slice(Wd.toHex(t.publicKey),1);return await nb.setItem(r,t),await nb.setItem(KD,r),t}return e}async function U6t(){let e=await N6t(),t=cs.slice(Wd.toHex(e.publicKey),1),r=async n=>{let{payload:o,metadata:s}=GD.getSignPayload({challenge:n,origin:\"https://keys.coinbase.com\",userVerification:\"preferred\"}),u=await O_.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 U6t()}}async function vVe(){let e=await xVe();e&&(await nb.removeItem(cs.slice(Wd.toHex(e.publicKey),1)),await nb.removeItem(KD))}var R6t,M6t,KD,nb,WD=x(()=>{c();CX();Bo();gVe();R6t=\"cbwsdk\",M6t=\"keys\",KD=\"activeId\",nb=bVe(R6t,M6t)});var wVe,EVe,AVe,QD,SVe=x(()=>{c();Lu();BY();wVe={storageKey:\"ownPrivateKey\",keyType:\"private\"},EVe={storageKey:\"ownPublicKey\",keyType:\"public\"},AVe={storageKey:\"peerPublicKey\",keyType:\"public\"},QD=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 lqe();this.ownPrivateKey=t.privateKey,this.ownPublicKey=t.publicKey,await this.storeKey(wVe,t.privateKey),await this.storeKey(EVe,t.publicKey)}async loadKeysIfNeeded(){if(this.ownPrivateKey===null&&(this.ownPrivateKey=await this.loadKey(wVe)),this.ownPublicKey===null&&(this.ownPublicKey=await this.loadKey(EVe)),(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 fqe(this.ownPrivateKey,this.peerPublicKey)}}async loadKey(t){let r=Re.keys.get(t.storageKey);return r?mD(t.keyType,r):null}async storeKey(t,r){let n=await pD(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 BX=x(()=>{c()});var IX=x(()=>{c();kI()});var ZD,PX,Ai,JD,Rx=x(()=>{c();ZD=\"0x0ba5ed0c6aa8c49038f819e587e2633c4a9f428a\",PX=\"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 RX(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 CVe(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 MX(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 TVe(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 o3(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 YD(){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 _Ve(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 kVe(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 BVe({spendPermission:e,chainId:t}){return{domain:{name:\"Spend Permission Manager\",version:\"1\",chainId:t,verifyingContract:PX},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 IVe({spendPermissionBatch:e,chainId:t}){return{domain:{name:\"Spend Permission Manager\",version:\"1\",chainId:t,verifyingContract:PX},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 XD({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 eH({calls:e,from:t,chainId:r,capabilities:n}){let o=xJ.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=o3(s,{paymasterService:{url:o?.[r]}})),s}async function PVe(){let e=u_();return await new Promise(r=>{fE({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 RVe({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 MVe(e){return typeof e==\"object\"&&e!==null&&\"calls\"in e}function OVe(e){return Array.isArray(e)&&e.length===1&&typeof e[0]==\"object\"&&e[0]!==null&&\"to\"in e[0]}function D6t(e){return La(Gt(ot(e)),0,16)}function NVe({attribution:e,dappOrigin:t}){if(e){if(\"auto\"in e&&e.auto&&t)return D6t(t);if(\"dataSuffix\"in e)return e.dataSuffix}}function UVe(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 N_(e,t){let r=e.filter(n=>n!==t);return[t,...r]}function U_(e,t){return[...e.filter(n=>n!==t),t]}async function DVe(){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 tH=x(()=>{c();Bo();Bo();wi();_U();Lu();BX();zU();IX();WD();Rx()});function H6t(e){return e.replaceAll(\"+\",\"-\").replaceAll(\"/\",\"_\").replace(/=+$/,\"\")}function rH(e){let t=btoa(String.fromCharCode(...new Uint8Array(e)));return H6t(t)}function HVe({webauthn:e,signature:t,id:r}){let n=kx.fromHex(t);return{id:r,rawId:rH(qi(r)),response:{authenticatorData:rH(Jr(e.authenticatorData)),clientDataJSON:rH(qi(e.clientDataJSON)),signature:rH(L6t(n.r,n.s))},type:JSON.parse(e.clientDataJSON).type}}function L6t(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 LVe=x(()=>{c();CX();Bo()});async function FVe(e){let{owner:t,ownerIndex:r,address:n,client:o,factoryData:s}=e,u={abi:WJ,address:QJ,version:\"0.6\"},f={abi:JD,address:ZD};return XJ({client:o,entryPoint:u,extend:{abi:Ai,factory:f},async decodeCalls(d){let p=K1({abi:Ai,data:d});if(p.functionName===\"execute\")return[{to:p.args[0],value:p.args[1],data:p.args[2]}];if(p.functionName===\"executeBatch\")return p.args[0].map(h=>({to:h.target,value:h.value,data:h.data}));throw new ae(`unable to decode calls for \"${p.functionName}\"`)},async encodeCalls(d){var p,h;return d.length===1?Ct({abi:Ai,functionName:\"execute\",args:[d[0].to,(p=d[0].value)!==null&&p!==void 0?p: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\":D_({ownerIndex:r,signature:\"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c\"})},async sign(d){let p=await this.getAddress(),h=OX({address:p,chainId:o.chain.id,hash:d.hash}),y=await nH({hash:h,owner:t});return D_({ownerIndex:r,signature:y})},async signMessage(d){let{message:p}=d,h=await this.getAddress(),y=OX({address:h,chainId:o.chain.id,hash:wm(p)}),v=await nH({hash:y,owner:t});return D_({ownerIndex:r,signature:v})},async signTypedData(d){let{domain:p,types:h,primaryType:y,message:v}=d,E=await this.getAddress(),C=OX({address:E,chainId:o.chain.id,hash:yd({domain:p,message:v,primaryType:y,types:h})}),k=await nH({hash:C,owner:t});return D_({ownerIndex:r,signature:k})},async signUserOperation(d){let{chainId:p=o.chain.id}=d,h=F6t(d,[\"chainId\"]),y=await this.getAddress(),v=YJ({chainId:p,entryPointAddress:u.address,entryPointVersion:u.version,userOperation:Object.assign(Object.assign({},h),{sender:y})}),E=await nH({hash:v,owner:t});return D_({ownerIndex:r,signature:E})},userOperation:{async estimateGas(d){var p;if(t.type===\"webAuthn\")return{verificationGasLimit:BigInt(Math.max(Number((p=d.verificationGasLimit)!==null&&p!==void 0?p:BigInt(0)),8e5))}}}})}async function nH({hash:e,owner:t}){if(t.type===\"webAuthn\"){let{signature:r,webauthn:n}=await t.sign({hash:e});return z6t({signature:r,webauthn:n})}if(t.sign)return t.sign({hash:e});throw new ae(\"`owner` does not support raw sign.\")}function OX({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 z6t({webauthn:e,signature:t}){let{r,s:n}=R_(t);return Fn([{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 D_(e){let{ownerIndex:t=0}=e,r=(()=>{if(qt(e.signature)!==65)return e.signature;let n=UP(e.signature);return MV([\"bytes32\",\"bytes32\",\"uint8\"],[n.r,n.s,n.yParity===0?27:28])})();return Fn([{components:[{name:\"ownerIndex\",type:\"uint8\"},{name:\"signatureData\",type:\"bytes\"}],type:\"tuple\"}],[{ownerIndex:t,signatureData:r}])}var F6t,zVe=x(()=>{c();nX();Bo();CY();Rx();F6t=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 jVe({address:e,client:t,factory:r,factoryData:n,owner:o,ownerIndex:s,parentAddress:u,attribution:f}){var d;let p={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 FVe({owner:o,ownerIndex:s??1,address:e,client:t,factoryData:n}),v=async E=>{var C,k,P,M,U,O;try{switch(E.method){case\"wallet_addSubAccount\":return p;case\"eth_accounts\":return[p.address];case\"eth_coinbase\":return p.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:vU((C=N.data)!==null&&C!==void 0?C:\"0x\",!0),value:vU((k=N.value)!==null&&k!==void 0?k:\"0x\",!0),from:(P=N.from)!==null&&P!==void 0?P:p.address},K=eH({calls:[j],chainId:h,from:j.from}),G=await v(K);return XD({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:p.address,capabilities:\"capabilities\"in E.params[0]?E.params[0].capabilities:{}}]};u&&(j=o3(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:eS(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(HVe(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=eS(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(bU(N)){let j=Bze(N);if(j)throw j}throw N}};return{request:v}}var $Ve=x(()=>{c();wi();Zl();VE();LVe();BX();Bo();tH();zVe()});async function oH({address:e,client:t,publicKey:r,factory:n,factoryData:o}){if(!await Ji(t,{address:e})&&n&&o){if(hn(n)!==hn(ZD))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(p=>p.toLowerCase()===qVe(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)]}),p=qVe(r);if(d.toLowerCase()===p.toLowerCase())return f}return-1}function qVe(e){return wt(e)?Qr(e):e}var NX=x(()=>{c();wi();Bo();EW();Rx()});async function GVe(){let e=u_();return new Promise(t=>{fE({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 VVe=x(()=>{c();_U();zU()});async function KVe({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,k]=Rs([{type:\"bytes32\"},{type:\"bytes32\"}],e.publicKey);f.push({to:s.address,data:Ct({abi:Ai,functionName:\"addOwnerPublicKey\",args:[C,k]}),value:ot(0)})}let d={method:\"wallet_sendCalls\",params:[{version:\"1\",calls:f,chainId:le(84532),from:u}]};if(await GVe()===\"cancel\")throw ke.provider.unauthorized(\"user cancelled\");let h=await t(d),y=dD(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 oH({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 WVe=x(()=>{c();wi();kY();Lu();VE();Bo();IX();Rx();NX();VVe()});async function QVe({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 p=RVe({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(p.length===1){let O=p[0],N=BVe({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=IVe({spendPermissionBatch:{account:t,period:v,start:0,end:0xffffffffffff,permissions:p.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=p.map(O=>O.token.toLowerCase()===\"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE\".toLowerCase()?{to:r,value:le(O.requiredAmount),data:\"0x\"}:{to:O.token,value:\"0x0\",data:Ct({abi:sV,functionName:\"transfer\",args:[r,O.requiredAmount]})}),k;if(o.method===\"wallet_sendCalls\"&&MVe(o.params))k=o.params[0];else if(o.method===\"eth_sendTransaction\"&&OVe(o.params))k=eH({calls:[o.params[0]],chainId:d,from:o.params[0].from}).params[0];else throw new Error(\"Could not get original call\");let P=Ct({abi:Ai,functionName:\"executeBatch\",args:[k.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:P,to:r,value:\"0x0\"}],U=await u({method:\"wallet_sendCalls\",params:[Object.assign(Object.assign({},k),{calls:M,from:t})]});return o.method===\"eth_sendTransaction\"?XD({client:n,id:U}):U}var ZVe=x(()=>{c();wi();VE();Bo();tH();Rx()});var H_,JVe=x(()=>{c();lE();Bo();wi();Vje();r$e();KJ();Zl();kY();VU();Lu();VE();uqe();BY();uE();WD();SVe();tH();$Ve();NX();WVe();ZVe();H_=class{constructor(t){var r,n,o,s;this.communicator=t.communicator,this.callback=t.callback,this.keyManager=new QD;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&&_Y(f)}async handshake(t){var r,n,o;let s=ec.get(t);Fje({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 mD(\"public\",f.sender);await this.keyManager.setPeerPublicKey(d);let p=await this.decryptResponseMessage(f);this.handleResponse(t,p),jje({method:t.method,correlationId:s})}catch(u){throw zje({method:t.method,correlationId:s,errorMessage:oh(u)}),u}}async request(t){let r=ec.get(t);$je({method:t.method,correlationId:r});try{let n=await this._request(t);return Gje({method:t.method,correlationId:r}),n}catch(n){throw qje({method:t.method,correlationId:r,errorMessage:oh(n)}),n}}async _request(t){var r,n,o,s,u,f,d,p,h,y,v,E,C,k;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 YD(),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\":{MX(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 YD();let P={};UVe(t,\"addSubAccount\")&&(P=(p=(d=Re.subAccountsConfig.get())===null||d===void 0?void 0:d.capabilities)!==null&&p!==void 0?p:{});let M=o3(t,P);return this.sendRequestToPopup(M)}case\"wallet_sendCalls\":case\"wallet_sign\":return this.sendRequestToPopup(t);default:throw ke.provider.unauthorized()}if(this.shouldRequestUseSubAccountSigner(t)){let P=ec.get(t);Kje({method:t.method,correlationId:P});try{let M=await this.sendRequestToSubAccountSigner(t);return Wje({method:t.method,correlationId:P}),M}catch(M){throw Qje({method:t.method,correlationId:P,errorMessage:oh(M)}),M}}switch(t.method){case\"eth_requestAccounts\":case\"eth_accounts\":{let P=Re.subAccounts.get(),M=Re.subAccountsConfig.get();return P?.address&&(this.accounts=M?.enableAutoSubAccounts?N_(this.accounts,P.address):U_(this.accounts,P.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 P=await DVe();if(P)return P;await((v=(y=this.communicator).waitForPopupLoaded)===null||v===void 0?void 0:v.call(y)),await YD();let M=Re.subAccountsConfig.get(),U=o3(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 P=Re.subAccounts.get();if(P?.address)return{subAccounts:[P]};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){w_(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\":{_Ve(t);let P=kVe(t),M=await Wy(P,TU),U=Zr((k=P.params)===null||k===void 0?void 0:k[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 p=d.value;this.accounts=p,Re.account.set({accounts:p,chain:this.chain}),(n=this.callback)===null||n===void 0||n.call(this,\"accountsChanged\",p);break}case\"wallet_connect\":{let p=d.value,h=p.accounts.map(M=>M.address);this.accounts=h,Re.account.set({accounts:h});let y=p.accounts.at(0),v=y?.capabilities;if(v?.subAccounts){let M=v?.subAccounts;Vd(M,\"subAccounts\"),w_(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(),k=Re.subAccountsConfig.get();C?.address&&(this.accounts=k?.enableAutoSubAccounts?N_(this.accounts,C.address):U_(this.accounts,C.address));let P=(s=(o=p?.accounts)===null||o===void 0?void 0:o[0].capabilities)===null||s===void 0?void 0:s.spendPermissions;P&&\"permissions\"in P&&Re.spendPermissions.set(P?.permissions),(u=this.callback)===null||u===void 0||u.call(this,\"accountsChanged\",E);break}case\"wallet_addSubAccount\":{w_(d.value);let p=d.value;Re.subAccounts.set(p);let h=Re.subAccountsConfig.get();this.accounts=h?.enableAutoSubAccounts?N_(this.accounts,p.address):U_(this.accounts,p.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){MX(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){TVe(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 pqe({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 pD(\"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 mqe(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),_Y(y)}let p=(o=f.data)===null||o===void 0?void 0:o.capabilities;return p&&Re.account.set({capabilities:p}),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?N_(this.accounts,f.address):U_(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 p=await this.sendRequestToPopup(t);return w_(p),p}shouldRequestUseSubAccountSigner(t){let r=RX(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\")),RX(t)===void 0&&(t=CVe(t,n.address));let d=dD(this.chain.id);ka(d,ke.rpc.internal(`client not found for chainId ${this.chain.id} when sending request to sub account signer`));let p=this.accounts.find(C=>C.toLowerCase()!==n.address.toLowerCase());ka(p,ke.provider.unauthorized(\"no global account found when sending request to sub account signer\"));let h=NVe({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 oH({address:n.address,factory:n.factory,factoryData:n.factoryData,publicKey:y,client:d});if(v===-1){let C=ec.get(t);Zje({method:t.method,correlationId:C});try{v=await KVe({ownerAccount:u.account,globalAccountRequest:this.sendRequestToPopup.bind(this)}),Jje({method:t.method,correlationId:C})}catch(k){return Yje({method:t.method,correlationId:C,errorMessage:oh(k)}),ke.provider.unauthorized(\"failed to add sub account owner when sending request to sub account signer\")}}let{request:E}=await jVe({address:n.address,owner:u.account,client:d,factory:n.factory,factoryData:n.factoryData,parentAddress:p,attribution:h?{suffix:h}:void 0,ownerIndex:v});try{return await E(t)}catch(C){let k;if(bU(C))k=JSON.parse(C.details);else if(AJ(C))k=C;else throw C;if(!(AJ(k)&&k.data)||!k.data)throw C;let P=ec.get(t);Xje({method:t.method,correlationId:P});try{let M=await QVe({errorData:k.data,globalAccountAddress:p,subAccountAddress:n.address,client:d,request:t,subAccountRequest:E,globalAccountRequest:this.request.bind(this)});return e$e({method:t.method,correlationId:P}),M}catch(M){throw console.error(M),t$e({method:t.method,correlationId:P,errorMessage:oh(M)}),C}}}}});var YVe,XVe,eKe,tKe,rKe,nKe,UX,oKe,DX=x(()=>{c();Qy();YVe=({method:e,correlationId:t})=>{Ft(\"walletlink_signer.handshake.started\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t},Bt.high)},XVe=({method:e,correlationId:t,errorMessage:r})=>{Ft(\"walletlink_signer.handshake.error\",{action:kt.error,componentType:_t.unknown,method:e,correlationId:t,errorMessage:r},Bt.high)},eKe=({method:e,correlationId:t})=>{Ft(\"walletlink_signer.handshake.completed\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t},Bt.high)},tKe=({method:e,correlationId:t})=>{Ft(\"walletlink_signer.request.started\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t},Bt.high)},rKe=({method:e,correlationId:t,errorMessage:r})=>{Ft(\"walletlink_signer.request.error\",{action:kt.error,componentType:_t.unknown,method:e,correlationId:t,errorMessage:r},Bt.high)},nKe=({method:e,correlationId:t})=>{Ft(\"walletlink_signer.request.completed\",{action:kt.unknown,componentType:_t.unknown,method:e,correlationId:t},Bt.high)},UX=()=>{Ft(\"walletlink_signer.walletlink_connection.connection_failed\",{action:kt.measurement,componentType:_t.unknown},Bt.high)},oKe=()=>{Ft(\"walletlink_signer.walletlink_connection.fetch_unseen_events_failed\",{action:kt.measurement,componentType:_t.unknown},Bt.high)}});var LX=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 aH(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}ei.number=aH;function aKe(e){if(typeof e!=\"boolean\")throw new Error(`boolean expected, not ${e}`)}ei.bool=aKe;function iKe(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}ei.isBytes=iKe;function HX(e,...t){if(!iKe(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=HX;function sKe(e){if(typeof e!=\"function\"||typeof e.create!=\"function\")throw new Error(\"Hash should be wrapped by utils.wrapConstructor\");aH(e.outputLen),aH(e.blockLen)}ei.hash=sKe;function cKe(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=cKe;function uKe(e,t){HX(e);let r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}ei.output=uKe;var j6t={number:aH,bool:aKe,bytes:HX,hash:sKe,exists:cKe,output:uKe};ei.default=j6t});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 iH=BigInt(2**32-1),FX=BigInt(32);function zX(e,t=!1){return t?{h:Number(e&iH),l:Number(e>>FX&iH)}:{h:Number(e>>FX&iH)|0,l:Number(e&iH)|0}}Et.fromBig=zX;function lKe(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}=zX(e[o],t);[r[o],n[o]]=[s,u]}return[r,n]}Et.split=lKe;var fKe=(e,t)=>BigInt(e>>>0)<<FX|BigInt(t>>>0);Et.toBig=fKe;var dKe=(e,t,r)=>e>>>r;Et.shrSH=dKe;var pKe=(e,t,r)=>e<<32-r|t>>>r;Et.shrSL=pKe;var mKe=(e,t,r)=>e>>>r|t<<32-r;Et.rotrSH=mKe;var hKe=(e,t,r)=>e<<32-r|t>>>r;Et.rotrSL=hKe;var yKe=(e,t,r)=>e<<64-r|t>>>r-32;Et.rotrBH=yKe;var bKe=(e,t,r)=>e>>>r-32|t<<64-r;Et.rotrBL=bKe;var gKe=(e,t)=>t;Et.rotr32H=gKe;var xKe=(e,t)=>e;Et.rotr32L=xKe;var vKe=(e,t,r)=>e<<r|t>>>32-r;Et.rotlSH=vKe;var wKe=(e,t,r)=>t<<r|e>>>32-r;Et.rotlSL=wKe;var EKe=(e,t,r)=>t<<r-32|e>>>64-r;Et.rotlBH=EKe;var AKe=(e,t,r)=>e<<r-32|t>>>64-r;Et.rotlBL=AKe;function SKe(e,t,r,n){let o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}Et.add=SKe;var CKe=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);Et.add3L=CKe;var TKe=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;Et.add3H=TKe;var _Ke=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);Et.add4L=_Ke;var kKe=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0;Et.add4H=kKe;var BKe=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0);Et.add5L=BKe;var IKe=(e,t,r,n,o,s)=>t+r+n+o+s+(e/2**32|0)|0;Et.add5H=IKe;var $6t={fromBig:zX,split:lKe,toBig:fKe,shrSH:dKe,shrSL:pKe,rotrSH:mKe,rotrSL:hKe,rotrBH:yKe,rotrBL:bKe,rotr32H:gKe,rotr32L:xKe,rotlSH:vKe,rotlSL:wKe,rotlBH:EKe,rotlBL:AKe,add:SKe,add3L:CKe,add3H:TKe,add4L:_Ke,add4H:kKe,add5H:IKe,add5L:BKe};Et.default=$6t});var RKe=X(sH=>{\"use strict\";c();Object.defineProperty(sH,\"__esModule\",{value:!0});sH.crypto=void 0;sH.crypto=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0});var NKe=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 jX=RKe(),qX=LX();function q6t(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}ft.isBytes=q6t;var G6t=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);ft.u8=G6t;var V6t=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));ft.u32=V6t;var K6t=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);ft.createView=K6t;var W6t=(e,t)=>e<<32-t|e>>>t;ft.rotr=W6t;var Q6t=(e,t)=>e<<t|e>>>32-t>>>0;ft.rotl=Q6t;ft.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;var Z6t=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;ft.byteSwap=Z6t;ft.byteSwapIfBE=ft.isLE?e=>e:e=>(0,ft.byteSwap)(e);function J6t(e){for(let t=0;t<e.length;t++)e[t]=(0,ft.byteSwap)(e[t])}ft.byteSwap32=J6t;var Y6t=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function X6t(e){(0,qX.bytes)(e);let t=\"\";for(let r=0;r<e.length;r++)t+=Y6t[e[r]];return t}ft.bytesToHex=X6t;var lh={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function MKe(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 e5t(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=MKe(e.charCodeAt(s)),f=MKe(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=e5t;var t5t=async()=>{};ft.nextTick=t5t;async function r5t(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=r5t;function OKe(e){if(typeof e!=\"string\")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}ft.utf8ToBytes=OKe;function cH(e){return typeof e==\"string\"&&(e=OKe(e)),(0,qX.bytes)(e),e}ft.toBytes=cH;function n5t(...e){let t=0;for(let n=0;n<e.length;n++){let o=e[n];(0,qX.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=n5t;var $X=class{clone(){return this._cloneInto()}};ft.Hash=$X;var o5t={}.toString;function a5t(e,t){if(t!==void 0&&o5t.call(t)!==\"[object Object]\")throw new Error(\"Options should be object or undefined\");return Object.assign(e,t)}ft.checkOpts=a5t;function i5t(e){let t=n=>e().update(cH(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}ft.wrapConstructor=i5t;function s5t(e){let t=(n,o)=>e(o).update(cH(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}ft.wrapConstructorWithOpts=s5t;function c5t(e){let t=(n,o)=>e(o).update(cH(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}ft.wrapXOFConstructorWithOpts=c5t;function u5t(e=32){if(jX.crypto&&typeof jX.crypto.getRandomValues==\"function\")return jX.crypto.getRandomValues(new Uint8Array(e));throw new Error(\"crypto.getRandomValues must be defined\")}ft.randomBytes=u5t});var $Ke=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 a3=LX(),F_=PKe(),fh=NKe(),HKe=[],LKe=[],FKe=[],l5t=BigInt(0),L_=BigInt(1),f5t=BigInt(2),d5t=BigInt(7),p5t=BigInt(256),m5t=BigInt(113);for(let e=0,t=L_,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],HKe.push(2*(5*n+r)),LKe.push((e+1)*(e+2)/2%64);let o=l5t;for(let s=0;s<7;s++)t=(t<<L_^(t>>d5t)*m5t)%p5t,t&f5t&&(o^=L_<<(L_<<BigInt(s))-L_);FKe.push(o)}var[h5t,y5t]=(0,F_.split)(FKe,!0),UKe=(e,t,r)=>r>32?(0,F_.rotlBH)(e,t,r):(0,F_.rotlSH)(e,t,r),DKe=(e,t,r)=>r>32?(0,F_.rotlBL)(e,t,r):(0,F_.rotlSL)(e,t,r);function zKe(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,p=r[d],h=r[d+1],y=UKe(p,h,1)^r[f],v=DKe(p,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=LKe[u],d=UKe(o,s,f),p=DKe(o,s,f),h=HKe[u];o=e[h],s=e[h+1],e[h]=d,e[h+1]=p}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]^=h5t[n],e[1]^=y5t[n]}r.fill(0)}Dn.keccakP=zKe;var z_=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,a3.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),zKe(this.state32,this.rounds),fh.isLE||(0,fh.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,a3.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,a3.exists)(this,!1),(0,a3.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,a3.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,a3.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=z_;var ob=(e,t,r)=>(0,fh.wrapConstructor)(()=>new z_(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 jKe=(e,t,r)=>(0,fh.wrapXOFConstructorWithOpts)((n={})=>new z_(t,e,n.dkLen===void 0?r:n.dkLen,!0));Dn.shake128=jKe(31,168,128/8);Dn.shake256=jKe(31,136,256/8)});var GX=X((d$n,ZKe)=>{c();var{keccak_256:b5t}=$Ke();function qKe(e){return globalThis.Buffer.allocUnsafe(e).fill(0)}function g5t(e){return`0x${e.toString(16)}`}function x5t(e){let t=g5t(e);return new globalThis.Buffer(KKe(t.slice(2)),\"hex\")}function v5t(e){return e.toString(2).length}function GKe(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 w5t(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 VKe(e,t,r){let n=qKe(t);return e=uH(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 E5t(e,t){return VKe(e,t,!0)}function uH(e){if(!globalThis.Buffer.isBuffer(e))if(Array.isArray(e))e=globalThis.Buffer.from(e);else if(typeof e==\"string\")WKe(e)?e=globalThis.Buffer.from(KKe(QKe(e)),\"hex\"):e=globalThis.Buffer.from(e);else if(typeof e==\"number\")e=x5t(e);else if(e==null)e=globalThis.Buffer.allocUnsafe(0);else if(typeof e==\"bigint\")e=GKe(e);else if(e.toArray)e=globalThis.Buffer.from(e.toArray());else throw new Error(\"invalid type\");return e}function A5t(e){return e=uH(e),\"0x\"+e.toString(\"hex\")}function S5t(e,t){if(e=uH(e),t||(t=256),t!==256)throw new Error(\"unsupported\");return globalThis.Buffer.from(b5t(new Uint8Array(e)))}function KKe(e){return e.length%2?\"0\"+e:e}function WKe(e){return typeof e==\"string\"&&e.match(/^0x[0-9A-Fa-f]*$/)}function QKe(e){return typeof e==\"string\"&&e.startsWith(\"0x\")?e.slice(2):e}ZKe.exports={zeros:qKe,setLength:VKe,setLengthRight:E5t,isHexString:WKe,stripHexPrefix:QKe,toBuffer:uH,bufferToHex:A5t,keccak:S5t,bitLengthFromBigInt:v5t,bufferBEFromBigInt:GKe,twosFromBigInt:w5t}});var rWe=X((m$n,tWe)=>{c();var us=GX();function YKe(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 i3(e){return Number.parseInt(/^\\\\D+(\\\\d+)$/.exec(e)[1],10)}function JKe(e){var t=/^\\\\D+(\\\\d+)x(\\\\d+)$/.exec(e);return[Number.parseInt(t[1],10),Number.parseInt(t[2],10)]}function XKe(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(T5t(e)){if(typeof t.length>\"u\")throw new Error(\"Not an array?\");if(r=XKe(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=i3(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=i3(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=i3(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=JKe(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=JKe(e),Qd(\"int256\",Mx(t)*BigInt(2)**BigInt(r[1]))}throw new Error(\"Unsupported or invalid type: \"+e)}function C5t(e){return e===\"string\"||e===\"bytes\"||XKe(e)===\"dynamic\"}function T5t(e){return e.lastIndexOf(\"]\")===e.length-1}function _5t(e,t){var r=[],n=[],o=32*e.length;for(var s in e){var u=YKe(e[s]),f=t[s],d=Qd(u,f);C5t(u)?(r.push(Qd(\"uint256\",o)),n.push(d),o+=d.length):r.push(d)}return globalThis.Buffer.concat(r.concat(n))}function eWe(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=YKe(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=i3(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=i3(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=i3(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 p=us.twosFromBigInt(n,r);o.push(us.bufferBEFromBigInt(p,r/8))}else throw new Error(\"Unsupported or invalid type: \"+u)}return globalThis.Buffer.concat(o)}function k5t(e,t){return us.keccak(eWe(e,t))}tWe.exports={rawEncode:_5t,solidityPack:eWe,soliditySHA3:k5t}});var aWe=X((y$n,oWe)=>{c();var Xl=GX(),j_=rWe(),nWe={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\"]},VX={encodeData(e,t,r,n=!0){let o=[\"bytes32\"],s=[this.hashType(e,r)];if(n){let u=(f,d,p)=>{if(r[d]!==void 0)return[\"bytes32\",p==null?\"0x0000000000000000000000000000000000000000000000000000000000000000\":Xl.keccak(this.encodeData(d,p,r,n))];if(p===void 0)throw new Error(`missing value for field ${f} of type ${d}`);if(d===\"bytes\")return[\"bytes32\",Xl.keccak(p)];if(d===\"string\")return typeof p==\"string\"&&(p=globalThis.Buffer.from(p,\"utf8\")),[\"bytes32\",Xl.keccak(p)];if(d.lastIndexOf(\"]\")===d.length-1){let h=d.slice(0,d.lastIndexOf(\"[\")),y=p.map(v=>u(f,h,v));return[\"bytes32\",Xl.keccak(j_.rawEncode(y.map(([v])=>v),y.map(([,v])=>v)))]}return[d,p]};for(let f of r[e]){let[d,p]=u(f.name,f.type,t[f.name]);o.push(d),s.push(p)}}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 j_.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 nWe.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))}};oWe.exports={TYPED_MESSAGE_SCHEMA:nWe,TypedDataUtils:VX,hashForSignTypedDataLegacy:function(e){return B5t(e.data)},hashForSignTypedData_v3:function(e){return VX.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return VX.hash(e.data)}};function B5t(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 j_.soliditySHA3([\"bytes32\",\"bytes32\"],[j_.soliditySHA3(new Array(e.length).fill(\"string\"),o),j_.soliditySHA3(n,r)])}});var iWe,$_,sWe,lH=x(()=>{c();iWe=\"walletUsername\",$_=\"Addresses\",sWe=\"AppVersion\"});var fH,cWe=x(()=>{c();Zl();fH=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\",sE(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),p=u.slice(0,u.byteLength-f),h=new Uint8Array(d),y=new Uint8Array(p),v=new Uint8Array([...n,...h,...y]);return a_(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\",sE(r),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),u=sE(t),f=u.slice(0,12),d=u.slice(12,28),p=u.slice(28),h=new Uint8Array([...p,...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 dH,uWe=x(()=>{c();dH=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,lWe=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 fWe,I5t,pH,dWe=x(()=>{c();DX();CJ();lH();cWe();uWe();lWe();fWe=1e4,I5t=6e4,pH=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 p=s[d];p!==void 0&&f(p)})},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(iWe,s)},this.handleAppVersionUpdated=async s=>{this.handleMetadataUpdated(sWe,s)},this.handleChainUpdated=async(s,u)=>{var f;try{let d=await this.cipher.decrypt(s),p=await this.cipher.decrypt(u);(f=this.listener)===null||f===void 0||f.chainUpdated(d,p)}catch{}},this.session=t,this.cipher=new fH(t.secret),this.listener=n,this.linkAPIUrl=r,this.WebSocketClass=WebSocket;let o=this.createWebSocket();this.ws=o,this.http=new dH(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(()=>{UX()}).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()},fWe),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(()=>{UX()})}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{oKe()}}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>fWe*2){this.ws.disconnect();return}if(this.connected)try{this.ws.sendData(\"h\")}catch{}}async makeRequest(t,r={timeout:I5t}){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 mH,pWe=x(()=>{c();Zl();mH=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let t=this._nextRequestId,r=_J(t.toString(16));return this.callbacks.get(r)&&this.callbacks.delete(r),t}}});function P5t(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}function hH(e,...t){if(!P5t(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 KX(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 mWe(e,t){hH(e);let r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}var WX=x(()=>{c()});function hWe(e){hH(e);let t=\"\";for(let r=0;r<e.length;r++)t+=R5t[e[r]];return t}function M5t(e){if(typeof e!=\"string\")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function QX(e){return typeof e==\"string\"&&(e=M5t(e)),hH(e),e}function yWe(e){let t=n=>e().update(QX(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}var bH,tf,z$n,R5t,yH,j$n,gH=x(()=>{c();WX();bH=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),tf=(e,t)=>e<<32-t|e>>>t,z$n=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,R5t=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));yH=class{clone(){return this._cloneInto()}},j$n={}.toString});function O5t(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,p=n?0:4;e.setUint32(t+d,u,n),e.setUint32(t+p,f,n)}var bWe,gWe,xH,xWe=x(()=>{c();WX();gH();bWe=(e,t,r)=>e&t^~e&r,gWe=(e,t,r)=>e&t^e&r^t&r,xH=class extends yH{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=bH(this.buffer)}update(t){KX(this);let{view:r,buffer:n,blockLen:o}=this;t=QX(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=bH(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){KX(this),mWe(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;O5t(n,o-8,BigInt(this.length*8),s),this.process(n,0);let f=bH(t),d=this.outputLen;if(d%4)throw new Error(\"_sha2: outputLen should be aligned to 32bit\");let p=d/4,h=this.get();if(p>h.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let y=0;y<p;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 N5t,ab,ib,ZX,vWe,wWe=x(()=>{c();xWe();gH();N5t=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),ZX=class extends xH{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,k=tf(E,17)^tf(E,19)^E>>>10;ib[y]=k+ib[y-7]+C+ib[y-16]|0}let{A:n,B:o,C:s,D:u,E:f,F:d,G:p,H:h}=this;for(let y=0;y<64;y++){let v=tf(f,6)^tf(f,11)^tf(f,25),E=h+v+bWe(f,d,p)+N5t[y]+ib[y]|0,k=(tf(n,2)^tf(n,13)^tf(n,22))+gWe(n,o,s)|0;h=p,p=d,d=f,f=u+E|0,u=s,s=o,o=n,n=E+k|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,p=p+this.G|0,h=h+this.H|0,this.set(n,o,s,u,f,d,p,h)}roundClean(){ib.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},vWe=yWe(()=>new ZX)});var EWe,AWe,SWe,s3,CWe=x(()=>{c();wWe();gH();Zl();EWe=\"session:id\",AWe=\"session:secret\",SWe=\"session:linked\",s3=class e{constructor(t,r,n,o=!1){this.storage=t,this.id=r,this.secret=n,this.key=hWe(vWe(`${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(EWe),n=t.getItem(SWe),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(EWe,this.id),this.storage.setItem(AWe,this.secret),this.persistLinked(),this}persistLinked(){this.storage.setItem(SWe,this._linked?\"1\":\"0\")}}});var TWe,_We=x(()=>{c();TWe=\".-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 vH,U5t,kWe=x(()=>{c();Zy();mE();mE();RJ();HU();c_();_We();vH=class{constructor(){this.root=null,this.darkMode=DU()}attach(){let t=document.documentElement;this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-css-reset\",t.appendChild(this.root),kU()}present(t){this.render(t)}clear(){this.render(null)}render(t){this.root&&(s_(null,this.root),t&&s_(tn(U5t,Object.assign({},t,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}},U5t=({title:e,buttonText:t,darkMode:r,onButtonClick:n,onDismiss:o})=>{let s=r?\"dark\":\"light\";return tn(qJ,{darkMode:r},tn(\"div\",{class:\"-cbwsdk-redirect-dialog\"},tn(\"style\",null,TWe),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 q_,BWe=x(()=>{c();lE();kWe();c_();q_=class{constructor(){this.attached=!1,this.redirectDialog=new vH}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(Lze);r.searchParams.append(\"redirect_url\",xje().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 G_,IWe=x(()=>{c();wi();l_();Zl();dWe();lH();pWe();CWe();$U();c_();VJ();BWe();G_=class e{constructor(t){this.chainCallbackParams={chainId:\"\",jsonRpcUrl:\"\"},this.isMobileWeb=vje(),this.linkedUpdated=s=>{this.isLinked=s;let u=this.storage.getItem($_);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 mH,this.ui=n,this.ui.attach()}subscribe(){let t=s3.load(this.storage)||s3.create(this.storage),{linkAPIUrl:r}=this,n=new pH({session:t,linkAPIUrl:r,listener:this}),o=this.isMobileWeb?new q_:new LU;return n.connect(),{session:t,ui:o,connection:n}}resetAndReload(){this.connection.destroy().then(()=>{let t=s3.load(this.storage);t?.id===this._session.id&&$d.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 q_)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,p=Xm(8),h=y=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,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(p,E=>{if(d?.(),Yo(E))return v(new Error(E.errorMessage));y(E)}),this.publishWeb3RequestEvent(p,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,p=Xm(8),h=y=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,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(p,E=>{if(d?.(),Yo(E))return v(new Error(E.errorMessage));y(E)}),this.publishWeb3RequestEvent(p,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,p=>{if(o?.(),Yo(p)&&p.errorCode)return d(ke.provider.custom({code:p.errorCode,message:\"Unrecognized chain ID. Try adding the chain using addEthereumChain first.\"}));if(Yo(p))return d(new Error(p.errorMessage));f(p)}),this.publishWeb3RequestEvent(s,n)})}};G_.accountRequestCallbackIds=new Set});var V_,PWe,RWe,K_,MWe=x(()=>{c();lE();wi();l_();DX();KJ();Zl();VU();uE();V_=Sr(aWe(),1);IWe();lH();$U();PWe=\"DefaultChainId\",RWe=\"DefaultJsonRpcUrl\",K_=class{constructor(t){this._relay=null,this._addresses=[],this.metadata=t.metadata,this._storage=new $d(\"walletlink\",PJ),this.callback=t.callback||null;let r=this._storage.getItem($_);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);YVe({method:r,correlationId:n});try{await this._eth_requestAccounts(),eKe({method:r,correlationId:n})}catch(o){throw XVe({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(RWe))!==null&&t!==void 0?t:void 0}set jsonRpcUrl(t){this._storage.setItem(RWe,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,p=await this.initializeRelay().watchAsset(r.type,o,s,f,u,n?.toString());return Yo(p)?!1:!!p.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:p,iconUrls:h=[],nativeCurrency:y}=o,v=await u.addEthereumChain(s.toString(),f,h,d,p,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($_,o.join(\" \")))}async request(t){let r=ec.get(t);tKe({method:t.method,correlationId:r});try{let n=await this._request(t);return nKe({method:t.method,correlationId:r}),n}catch(n){throw rKe({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?cE(t.value):BigInt(0),s=t.data?wU(t.data):globalThis.Buffer.alloc(0),u=t.nonce!=null?lx(t.nonce):null,f=t.gasPrice!=null?cE(t.gasPrice):null,d=t.maxFeePerGas!=null?cE(t.maxFeePerGas):null,p=t.maxPriorityFeePerGas!=null?cE(t.maxPriorityFeePerGas):null,h=t.gas!=null?cE(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:p,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:gU(n[0]),signature:gU(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:gU(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=wU(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=p=>{let h={eth_signTypedData_v1:V_.default.hashForSignTypedDataLegacy,eth_signTypedData_v3:V_.default.hashForSignTypedData_v3,eth_signTypedData_v4:V_.default.hashForSignTypedData_v4,eth_signTypedData:V_.default.hashForSignTypedData_v4};return ux(h[r]({data:Oze(p)}),!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 G_({linkAPIUrl:PJ,storage:this._storage,metadata:this.metadata,accountsCallback:this._setAddresses.bind(this),chainCallback:this.updateProviderInfo.bind(this)})),this._relay}}});function UWe(){return NWe.getItem(OWe)}function DWe(e){NWe.setItem(OWe,e)}function JX(e){if(e)return e instanceof H_?\"scw\":\"walletlink\"}async function HWe(e){let{communicator:t,metadata:r,handshakeRequest:n,callback:o}=e;D5t(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 LWe(e){let{signerType:t,metadata:r,communicator:n,callback:o}=e;switch(t){case\"scw\":return new H_({metadata:r,callback:o,communicator:n});case\"walletlink\":return new K_({metadata:r,callback:o})}}async function D5t(e,t,r,n){await e.onMessage(({event:s})=>s===\"WalletLinkSessionRequest\");let o=new K_({metadata:t,callback:r});e.postMessage({event:\"WalletLinkUpdate\",data:{session:o.getSession()}}),await o.handshake(n),e.postMessage({event:\"WalletLinkUpdate\",data:{connected:!0}})}var OWe,NWe,FWe=x(()=>{c();l_();JVe();MWe();OWe=\"SignerType\",NWe=new $d(\"CBWSDK\",\"SignerConfigurator\")});var H5t,c3,YX=x(()=>{c();_je();lE();n_();wi();Bje();Ije();l_();Uje();Lje();Zl();VU();Lu();uE();FWe();H5t=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},c3=class extends qU{constructor(t){var{metadata:r}=t,n=t.preference,{keysUrl:o}=n,s=H5t(n,[\"keysUrl\"]);super(),this.signer=null,this.isCoinbaseWallet=!0,this.metadata=r,this.preference=s,this.communicator=new jU({url:o,metadata:r,preference:s});let u=UWe();u&&(this.signer=this.initSigner(u),Pje({signerType:u}))}async request(t){let r=crypto.randomUUID();ec.set(t,r),Rje({method:t.method,correlationId:r});try{let n=await this._request(t);return Oje({method:t.method,signerType:JX(this.signer),correlationId:r}),n}catch(n){throw Mje({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(Dze(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,DWe(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,TU);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===$n.provider.unauthorized&&this.disconnect(),Promise.reject(kje(r))}}async enable(){return console.warn(\\'.enable() has been deprecated. Please use .request({ method: \"eth_requestAccounts\" }) instead.\\'),Nje(),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,$d.clearAll(),ec.clear(),this.emit(\"disconnect\",ke.provider.disconnected(\"User initiated disconnection\"))}async requestSignerSelection(t){Dje();let r=await HWe({communicator:this.communicator,preference:this.preference,metadata:this.metadata,handshakeRequest:t,callback:this.emit.bind(this)});return Hje(r),r}initSigner(t){return LWe({signerType:t,metadata:this.metadata,communicator:this.communicator,callback:this.emit.bind(this)})}}});var zWe,jWe=x(()=>{c();zWe=(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 u3,XX=x(()=>{c();vJ();Zl();Lu();AU();uE();IJ();YX();jWe();u3=class{constructor(t){Re.persist.rehydrate(),this.metadata={appName:t.appName||\"Dapp\",appLogoUrl:t.appLogoUrl||Nze(),appChainIds:t.appChainIds||[]},Re.config.set({metadata:this.metadata}),EU()}makeWeb3Provider(t={options:\"all\"}){var r;CU(t),t.telemetry!==!1&&pU(),Re.config.set({preference:t});let n={metadata:this.metadata,preference:t};return(r=SU(n))!==null&&r!==void 0?r:new c3(n)}getCoinbaseWalletLogo(t,r=240){return zWe(t,r)}}});function $We(e){var t;let r={metadata:e.metadata,preference:e.preference};return(t=SU(r))!==null&&t!==void 0?t:new c3(r)}var qWe=x(()=>{c();uE();YX()});function GWe(e){var t,r,n,o;let s={metadata:{appName:e.appName||\"Dapp\",appLogoUrl:e.appLogoUrl||\"\",appChainIds:e.appChainIds||[]},preference:Object.assign(L5t,(t=e.preference)!==null&&t!==void 0?t:{}),paymasterUrls:e.paymasterUrls};!((r=e.subAccounts)===null||r===void 0)&&r.toOwnerAccount&&BJ(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(),EU(),s.preference.telemetry!==!1&&pU(),CU(s.preference);let u=null,f={getProvider(){return u||(u=$We(s)),u.sdk=f,u},subAccount:{async create(d){var p,h;let y=Re.getState();return ka((p=y.subAccount)===null||p===void 0?void 0:p.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,p;let h=Re.subAccounts.get();if(h?.address)return h;let v=(p=(await((d=f.getProvider())===null||d===void 0?void 0:d.request({method:\"wallet_connect\",params:[{version:\"1\",capabilities:{}}]}))).accounts[0].capabilities)===null||p===void 0?void 0:p.subAccounts;return Array.isArray(v)?v[0]:null},async addOwner({address:d,publicKey:p,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 k=[];if(p){let[P,M]=Rs([{type:\"bytes32\"},{type:\"bytes32\"}],p);k.push({to:E.address,data:Ct({abi:Ai,functionName:\"addOwnerPublicKey\",args:[P,M]}),value:ot(0)})}return d&&k.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:k,chainId:ot(h),from:(v=C.accounts)===null||v===void 0?void 0:v[0],version:\"1\"}]}))},setToOwnerAccount(d){BJ(d),Re.subAccountsConfig.set({toOwnerAccount:d})}}};return f}var L5t,VWe=x(()=>{c();Bo();vJ();Rx();VE();AU();IJ();qWe();Lu();L5t={options:\"all\"}});var KWe={};Wn(KWe,{CoinbaseWalletSDK:()=>u3,createCoinbaseWalletSDK:()=>GWe,default:()=>F5t,getCryptoKeyAccount:()=>Ix,removeCryptoKey:()=>vVe});var F5t,WWe=x(()=>{c();XX();XX();VWe();WD();F5t=u3});var QWe=X(wH=>{\"use strict\";c();Object.defineProperty(wH,\"__esModule\",{value:!0});wH.walletLogo=void 0;var z5t=(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 `}};wH.walletLogo=z5t});var ZWe=X(EH=>{\"use strict\";c();Object.defineProperty(EH,\"__esModule\",{value:!0});EH.LINK_API_URL=void 0;EH.LINK_API_URL=\"https://www.walletlink.org\"});var JWe=X(()=>{c()});var W_=X((YWe,eee)=>{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=JWe().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,R){if(typeof A==\"number\")return this._initNumber(A,T,R);if(typeof A==\"object\")return this._initArray(A,T,R);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,R):(this._parseBase(A,T,D),R===\"le\"&&this._initArray(this.toArray(),T,R)))},o.prototype._initNumber=function(A,T,R){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),R===\"le\"&&this._initArray(this.toArray(),T,R)},o.prototype._initArray=function(A,T,R){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,Q=0;if(R===\"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<<Q&67108863,this.words[L+1]=V>>>26-Q&67108863,Q+=24,Q>=26&&(Q-=26,L++);else if(R===\"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<<Q&67108863,this.words[L+1]=V>>>26-Q&67108863,Q+=24,Q>=26&&(Q-=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 R=u(H,T);return T-1>=A&&(R|=u(H,T-1)<<4),R}o.prototype._parseHex=function(A,T,R){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,Q;if(R===\"be\")for(D=A.length-1;D>=T;D-=2)Q=f(A,T,D)<<L,this.words[V]|=Q&67108863,L>=18?(L-=18,V+=1,this.words[V]|=Q>>>26):L+=8;else{var F=A.length-T;for(D=F%2===0?T+1:T;D<A.length;D+=2)Q=f(A,T,D)<<L,this.words[V]|=Q&67108863,L>=18?(L-=18,V+=1,this.words[V]|=Q>>>26):L+=8}this._strip()};function d(H,A,T,R){for(var D=0,L=0,V=Math.min(H.length,T),Q=A;Q<V;Q++){var F=H.charCodeAt(Q)-48;D*=R,F>=49?L=F-49+10:F>=17?L=F-17+10:L=F,r(F>=0&&L<R,\"Invalid character\"),D+=L}return D}o.prototype._parseBase=function(A,T,R){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-R,Q=V%D,F=Math.min(V,V-Q)+R,I=0,Z=R;Z<F;Z+=D)I=d(A,Z,Z+D,T),this.imuln(L),this.words[0]+I<67108864?this.words[0]+=I:this._iaddn(I);if(Q!==0){var me=1;for(I=d(A,Z,A.length,T),Z=0;Z<Q;Z++)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 p(H,A){H.words=A.words,H.length=A.length,H.negative=A.negative,H.red=A.red}if(o.prototype._move=function(A){p(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 R;if(A===16||A===\"hex\"){R=\"\";for(var D=0,L=0,V=0;V<this.length;V++){var Q=this.words[V],F=((Q<<D|L)&16777215).toString(16);L=Q>>>24-D&16777215,D+=2,D>=26&&(D-=26,V--),L!==0||V!==this.length-1?R=y[6-F.length]+F+R:R=F+R}for(L!==0&&(R=L.toString(16)+R);R.length%T!==0;)R=\"0\"+R;return this.negative!==0&&(R=\"-\"+R),R}if(A===(A|0)&&A>=2&&A<=36){var I=v[A],Z=E[A];R=\"\";var me=this.clone();for(me.negative=0;!me.isZero();){var ge=me.modrn(Z).toString(A);me=me.idivn(Z),me.isZero()?R=ge+R:R=y[I-ge.length]+ge+R}for(this.isZero()&&(R=\"0\"+R);R.length%T!==0;)R=\"0\"+R;return this.negative!==0&&(R=\"-\"+R),R}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,R){this._strip();var D=this.byteLength(),L=R||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),Q=T===\"le\"?\"LE\":\"BE\";return this[\"_toArrayLike\"+Q](V,D),V},o.prototype._toArrayLikeLE=function(A,T){for(var R=0,D=0,L=0,V=0;L<this.length;L++){var Q=this.words[L]<<V|D;A[R++]=Q&255,R<A.length&&(A[R++]=Q>>8&255),R<A.length&&(A[R++]=Q>>16&255),V===6?(R<A.length&&(A[R++]=Q>>24&255),D=0,V=0):(D=Q>>>24,V+=2)}if(R<A.length)for(A[R++]=D;R<A.length;)A[R++]=0},o.prototype._toArrayLikeBE=function(A,T){for(var R=A.length-1,D=0,L=0,V=0;L<this.length;L++){var Q=this.words[L]<<V|D;A[R--]=Q&255,R>=0&&(A[R--]=Q>>8&255),R>=0&&(A[R--]=Q>>16&255),V===6?(R>=0&&(A[R--]=Q>>24&255),D=0,V=0):(D=Q>>>24,V+=2)}if(R>=0)for(A[R--]=D;R>=0;)A[R--]=0},Math.clz32?o.prototype._countBits=function(A){return 32-Math.clz32(A)}:o.prototype._countBits=function(A){var T=A,R=0;return T>=4096&&(R+=13,T>>>=13),T>=64&&(R+=7,T>>>=7),T>=8&&(R+=4,T>>>=4),T>=2&&(R+=2,T>>>=2),R+T},o.prototype._zeroBits=function(A){if(A===0)return 26;var T=A,R=0;return(T&8191)===0&&(R+=13,T>>>=13),(T&127)===0&&(R+=7,T>>>=7),(T&15)===0&&(R+=4,T>>>=4),(T&3)===0&&(R+=2,T>>>=2),(T&1)===0&&R++,R},o.prototype.bitLength=function(){var A=this.words[this.length-1],T=this._countBits(A);return(this.length-1)*26+T};function k(H){for(var A=new Array(H.bitLength()),T=0;T<A.length;T++){var R=T/26|0,D=T%26;A[T]=H.words[R]>>>D&1}return A}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var A=0,T=0;T<this.length;T++){var R=this._zeroBits(this.words[T]);if(A+=R,R!==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 R=0;R<T.length;R++)this.words[R]=this.words[R]&A.words[R];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,R;this.length>A.length?(T=this,R=A):(T=A,R=this);for(var D=0;D<R.length;D++)this.words[D]=T.words[D]^R.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,R=A%26;this._expand(T),R>0&&T--;for(var D=0;D<T;D++)this.words[D]=~this.words[D]&67108863;for(R>0&&(this.words[D]=~this.words[D]&67108863>>26-R,D++);D<this.length;D++)this.words[D]=0;return 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 R=A/26|0,D=A%26;return this._expand(R+1),T?this.words[R]=this.words[R]|1<<D:this.words[R]=this.words[R]&~(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 R,D;this.length>A.length?(R=this,D=A):(R=A,D=this);for(var L=0,V=0;V<D.length;V++)T=(R.words[V]|0)+(D.words[V]|0)+L,this.words[V]=T&67108863,L=T>>>26;for(;L!==0&&V<R.length;V++)T=(R.words[V]|0)+L,this.words[V]=T&67108863,L=T>>>26;if(this.length=R.length,L!==0)this.words[this.length]=L,this.length++;else if(R!==this)for(;V<R.length;V++)this.words[V]=R.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 R=this.cmp(A);if(R===0)return this.negative=0,this.length=1,this.words[0]=0,this;var D,L;R>0?(D=this,L=A):(D=A,L=this);for(var V=0,Q=0;Q<L.length;Q++)T=(D.words[Q]|0)-(L.words[Q]|0)+V,V=T>>26,this.words[Q]=T&67108863;for(;V!==0&&Q<D.length;Q++)T=(D.words[Q]|0)+V,V=T>>26,this.words[Q]=T&67108863;if(V===0&&Q<D.length&&D!==this)for(;Q<D.length;Q++)this.words[Q]=D.words[Q];return this.length=Math.max(this.length,Q),D!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(A){return this.clone().isub(A)};function P(H,A,T){T.negative=A.negative^H.negative;var R=H.length+A.length|0;T.length=R,R=R-1|0;var D=H.words[0]|0,L=A.words[0]|0,V=D*L,Q=V&67108863,F=V/67108864|0;T.words[0]=Q;for(var I=1;I<R;I++){for(var Z=F>>>26,me=F&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,Z+=V/67108864|0,me=V&67108863}T.words[I]=me|0,F=Z|0}return F!==0?T.words[I]=F|0:T.length--,T._strip()}var M=function(A,T,R){var D=A.words,L=T.words,V=R.words,Q=0,F,I,Z,me=D[0]|0,ge=me&8191,Se=me>>>13,Ce=D[1]|0,qe=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,$r=pp>>>13,Ii=D[8]|0,nn=Ii&8191,Ir=Ii>>>13,ys=D[9]|0,Pr=ys&8191,Rr=ys>>>13,$c=L[0]|0,Er=$c&8191,$=$c>>>13,fe=L[1]|0,Ee=fe&8191,_e=fe>>>13,We=L[2]|0,Ge=We&8191,Ve=We>>>13,zt=L[3]|0,Ne=zt&8191,jt=zt>>>13,Uo=L[4]|0,Ar=Uo&8191,qr=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;R.negative=A.negative^T.negative,R.length=19,F=Math.imul(ge,Er),I=Math.imul(ge,$),I=I+Math.imul(Se,Er)|0,Z=Math.imul(Se,$);var cf=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(cf>>>26)|0,cf&=67108863,F=Math.imul(qe,Er),I=Math.imul(qe,$),I=I+Math.imul(je,Er)|0,Z=Math.imul(je,$),F=F+Math.imul(ge,Ee)|0,I=I+Math.imul(ge,_e)|0,I=I+Math.imul(Se,Ee)|0,Z=Z+Math.imul(Se,_e)|0;var uf=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(uf>>>26)|0,uf&=67108863,F=Math.imul(Te,Er),I=Math.imul(Te,$),I=I+Math.imul(It,Er)|0,Z=Math.imul(It,$),F=F+Math.imul(qe,Ee)|0,I=I+Math.imul(qe,_e)|0,I=I+Math.imul(je,Ee)|0,Z=Z+Math.imul(je,_e)|0,F=F+Math.imul(ge,Ge)|0,I=I+Math.imul(ge,Ve)|0,I=I+Math.imul(Se,Ge)|0,Z=Z+Math.imul(Se,Ve)|0;var bs=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(bs>>>26)|0,bs&=67108863,F=Math.imul(tr,Er),I=Math.imul(tr,$),I=I+Math.imul(yt,Er)|0,Z=Math.imul(yt,$),F=F+Math.imul(Te,Ee)|0,I=I+Math.imul(Te,_e)|0,I=I+Math.imul(It,Ee)|0,Z=Z+Math.imul(It,_e)|0,F=F+Math.imul(qe,Ge)|0,I=I+Math.imul(qe,Ve)|0,I=I+Math.imul(je,Ge)|0,Z=Z+Math.imul(je,Ve)|0,F=F+Math.imul(ge,Ne)|0,I=I+Math.imul(ge,jt)|0,I=I+Math.imul(Se,Ne)|0,Z=Z+Math.imul(Se,jt)|0;var lf=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(lf>>>26)|0,lf&=67108863,F=Math.imul(rn,Er),I=Math.imul(rn,$),I=I+Math.imul(Je,Er)|0,Z=Math.imul(Je,$),F=F+Math.imul(tr,Ee)|0,I=I+Math.imul(tr,_e)|0,I=I+Math.imul(yt,Ee)|0,Z=Z+Math.imul(yt,_e)|0,F=F+Math.imul(Te,Ge)|0,I=I+Math.imul(Te,Ve)|0,I=I+Math.imul(It,Ge)|0,Z=Z+Math.imul(It,Ve)|0,F=F+Math.imul(qe,Ne)|0,I=I+Math.imul(qe,jt)|0,I=I+Math.imul(je,Ne)|0,Z=Z+Math.imul(je,jt)|0,F=F+Math.imul(ge,Ar)|0,I=I+Math.imul(ge,qr)|0,I=I+Math.imul(Se,Ar)|0,Z=Z+Math.imul(Se,qr)|0;var ff=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(ff>>>26)|0,ff&=67108863,F=Math.imul(dt,Er),I=Math.imul(dt,$),I=I+Math.imul(un,Er)|0,Z=Math.imul(un,$),F=F+Math.imul(rn,Ee)|0,I=I+Math.imul(rn,_e)|0,I=I+Math.imul(Je,Ee)|0,Z=Z+Math.imul(Je,_e)|0,F=F+Math.imul(tr,Ge)|0,I=I+Math.imul(tr,Ve)|0,I=I+Math.imul(yt,Ge)|0,Z=Z+Math.imul(yt,Ve)|0,F=F+Math.imul(Te,Ne)|0,I=I+Math.imul(Te,jt)|0,I=I+Math.imul(It,Ne)|0,Z=Z+Math.imul(It,jt)|0,F=F+Math.imul(qe,Ar)|0,I=I+Math.imul(qe,qr)|0,I=I+Math.imul(je,Ar)|0,Z=Z+Math.imul(je,qr)|0,F=F+Math.imul(ge,on)|0,I=I+Math.imul(ge,an)|0,I=I+Math.imul(Se,on)|0,Z=Z+Math.imul(Se,an)|0;var df=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(df>>>26)|0,df&=67108863,F=Math.imul(Hr,Er),I=Math.imul(Hr,$),I=I+Math.imul(Lr,Er)|0,Z=Math.imul(Lr,$),F=F+Math.imul(dt,Ee)|0,I=I+Math.imul(dt,_e)|0,I=I+Math.imul(un,Ee)|0,Z=Z+Math.imul(un,_e)|0,F=F+Math.imul(rn,Ge)|0,I=I+Math.imul(rn,Ve)|0,I=I+Math.imul(Je,Ge)|0,Z=Z+Math.imul(Je,Ve)|0,F=F+Math.imul(tr,Ne)|0,I=I+Math.imul(tr,jt)|0,I=I+Math.imul(yt,Ne)|0,Z=Z+Math.imul(yt,jt)|0,F=F+Math.imul(Te,Ar)|0,I=I+Math.imul(Te,qr)|0,I=I+Math.imul(It,Ar)|0,Z=Z+Math.imul(It,qr)|0,F=F+Math.imul(qe,on)|0,I=I+Math.imul(qe,an)|0,I=I+Math.imul(je,on)|0,Z=Z+Math.imul(je,an)|0,F=F+Math.imul(ge,cr)|0,I=I+Math.imul(ge,xn)|0,I=I+Math.imul(Se,cr)|0,Z=Z+Math.imul(Se,xn)|0;var pf=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(pf>>>26)|0,pf&=67108863,F=Math.imul(jr,Er),I=Math.imul(jr,$),I=I+Math.imul($r,Er)|0,Z=Math.imul($r,$),F=F+Math.imul(Hr,Ee)|0,I=I+Math.imul(Hr,_e)|0,I=I+Math.imul(Lr,Ee)|0,Z=Z+Math.imul(Lr,_e)|0,F=F+Math.imul(dt,Ge)|0,I=I+Math.imul(dt,Ve)|0,I=I+Math.imul(un,Ge)|0,Z=Z+Math.imul(un,Ve)|0,F=F+Math.imul(rn,Ne)|0,I=I+Math.imul(rn,jt)|0,I=I+Math.imul(Je,Ne)|0,Z=Z+Math.imul(Je,jt)|0,F=F+Math.imul(tr,Ar)|0,I=I+Math.imul(tr,qr)|0,I=I+Math.imul(yt,Ar)|0,Z=Z+Math.imul(yt,qr)|0,F=F+Math.imul(Te,on)|0,I=I+Math.imul(Te,an)|0,I=I+Math.imul(It,on)|0,Z=Z+Math.imul(It,an)|0,F=F+Math.imul(qe,cr)|0,I=I+Math.imul(qe,xn)|0,I=I+Math.imul(je,cr)|0,Z=Z+Math.imul(je,xn)|0,F=F+Math.imul(ge,ln)|0,I=I+Math.imul(ge,vn)|0,I=I+Math.imul(Se,ln)|0,Z=Z+Math.imul(Se,vn)|0;var mf=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(mf>>>26)|0,mf&=67108863,F=Math.imul(nn,Er),I=Math.imul(nn,$),I=I+Math.imul(Ir,Er)|0,Z=Math.imul(Ir,$),F=F+Math.imul(jr,Ee)|0,I=I+Math.imul(jr,_e)|0,I=I+Math.imul($r,Ee)|0,Z=Z+Math.imul($r,_e)|0,F=F+Math.imul(Hr,Ge)|0,I=I+Math.imul(Hr,Ve)|0,I=I+Math.imul(Lr,Ge)|0,Z=Z+Math.imul(Lr,Ve)|0,F=F+Math.imul(dt,Ne)|0,I=I+Math.imul(dt,jt)|0,I=I+Math.imul(un,Ne)|0,Z=Z+Math.imul(un,jt)|0,F=F+Math.imul(rn,Ar)|0,I=I+Math.imul(rn,qr)|0,I=I+Math.imul(Je,Ar)|0,Z=Z+Math.imul(Je,qr)|0,F=F+Math.imul(tr,on)|0,I=I+Math.imul(tr,an)|0,I=I+Math.imul(yt,on)|0,Z=Z+Math.imul(yt,an)|0,F=F+Math.imul(Te,cr)|0,I=I+Math.imul(Te,xn)|0,I=I+Math.imul(It,cr)|0,Z=Z+Math.imul(It,xn)|0,F=F+Math.imul(qe,ln)|0,I=I+Math.imul(qe,vn)|0,I=I+Math.imul(je,ln)|0,Z=Z+Math.imul(je,vn)|0,F=F+Math.imul(ge,ur)|0,I=I+Math.imul(ge,wn)|0,I=I+Math.imul(Se,ur)|0,Z=Z+Math.imul(Se,wn)|0;var Ao=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(Ao>>>26)|0,Ao&=67108863,F=Math.imul(Pr,Er),I=Math.imul(Pr,$),I=I+Math.imul(Rr,Er)|0,Z=Math.imul(Rr,$),F=F+Math.imul(nn,Ee)|0,I=I+Math.imul(nn,_e)|0,I=I+Math.imul(Ir,Ee)|0,Z=Z+Math.imul(Ir,_e)|0,F=F+Math.imul(jr,Ge)|0,I=I+Math.imul(jr,Ve)|0,I=I+Math.imul($r,Ge)|0,Z=Z+Math.imul($r,Ve)|0,F=F+Math.imul(Hr,Ne)|0,I=I+Math.imul(Hr,jt)|0,I=I+Math.imul(Lr,Ne)|0,Z=Z+Math.imul(Lr,jt)|0,F=F+Math.imul(dt,Ar)|0,I=I+Math.imul(dt,qr)|0,I=I+Math.imul(un,Ar)|0,Z=Z+Math.imul(un,qr)|0,F=F+Math.imul(rn,on)|0,I=I+Math.imul(rn,an)|0,I=I+Math.imul(Je,on)|0,Z=Z+Math.imul(Je,an)|0,F=F+Math.imul(tr,cr)|0,I=I+Math.imul(tr,xn)|0,I=I+Math.imul(yt,cr)|0,Z=Z+Math.imul(yt,xn)|0,F=F+Math.imul(Te,ln)|0,I=I+Math.imul(Te,vn)|0,I=I+Math.imul(It,ln)|0,Z=Z+Math.imul(It,vn)|0,F=F+Math.imul(qe,ur)|0,I=I+Math.imul(qe,wn)|0,I=I+Math.imul(je,ur)|0,Z=Z+Math.imul(je,wn)|0,F=F+Math.imul(ge,En)|0,I=I+Math.imul(ge,fn)|0,I=I+Math.imul(Se,En)|0,Z=Z+Math.imul(Se,fn)|0;var gs=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(gs>>>26)|0,gs&=67108863,F=Math.imul(Pr,Ee),I=Math.imul(Pr,_e),I=I+Math.imul(Rr,Ee)|0,Z=Math.imul(Rr,_e),F=F+Math.imul(nn,Ge)|0,I=I+Math.imul(nn,Ve)|0,I=I+Math.imul(Ir,Ge)|0,Z=Z+Math.imul(Ir,Ve)|0,F=F+Math.imul(jr,Ne)|0,I=I+Math.imul(jr,jt)|0,I=I+Math.imul($r,Ne)|0,Z=Z+Math.imul($r,jt)|0,F=F+Math.imul(Hr,Ar)|0,I=I+Math.imul(Hr,qr)|0,I=I+Math.imul(Lr,Ar)|0,Z=Z+Math.imul(Lr,qr)|0,F=F+Math.imul(dt,on)|0,I=I+Math.imul(dt,an)|0,I=I+Math.imul(un,on)|0,Z=Z+Math.imul(un,an)|0,F=F+Math.imul(rn,cr)|0,I=I+Math.imul(rn,xn)|0,I=I+Math.imul(Je,cr)|0,Z=Z+Math.imul(Je,xn)|0,F=F+Math.imul(tr,ln)|0,I=I+Math.imul(tr,vn)|0,I=I+Math.imul(yt,ln)|0,Z=Z+Math.imul(yt,vn)|0,F=F+Math.imul(Te,ur)|0,I=I+Math.imul(Te,wn)|0,I=I+Math.imul(It,ur)|0,Z=Z+Math.imul(It,wn)|0,F=F+Math.imul(qe,En)|0,I=I+Math.imul(qe,fn)|0,I=I+Math.imul(je,En)|0,Z=Z+Math.imul(je,fn)|0;var Pi=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,F=Math.imul(Pr,Ge),I=Math.imul(Pr,Ve),I=I+Math.imul(Rr,Ge)|0,Z=Math.imul(Rr,Ve),F=F+Math.imul(nn,Ne)|0,I=I+Math.imul(nn,jt)|0,I=I+Math.imul(Ir,Ne)|0,Z=Z+Math.imul(Ir,jt)|0,F=F+Math.imul(jr,Ar)|0,I=I+Math.imul(jr,qr)|0,I=I+Math.imul($r,Ar)|0,Z=Z+Math.imul($r,qr)|0,F=F+Math.imul(Hr,on)|0,I=I+Math.imul(Hr,an)|0,I=I+Math.imul(Lr,on)|0,Z=Z+Math.imul(Lr,an)|0,F=F+Math.imul(dt,cr)|0,I=I+Math.imul(dt,xn)|0,I=I+Math.imul(un,cr)|0,Z=Z+Math.imul(un,xn)|0,F=F+Math.imul(rn,ln)|0,I=I+Math.imul(rn,vn)|0,I=I+Math.imul(Je,ln)|0,Z=Z+Math.imul(Je,vn)|0,F=F+Math.imul(tr,ur)|0,I=I+Math.imul(tr,wn)|0,I=I+Math.imul(yt,ur)|0,Z=Z+Math.imul(yt,wn)|0,F=F+Math.imul(Te,En)|0,I=I+Math.imul(Te,fn)|0,I=I+Math.imul(It,En)|0,Z=Z+Math.imul(It,fn)|0;var hf=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(hf>>>26)|0,hf&=67108863,F=Math.imul(Pr,Ne),I=Math.imul(Pr,jt),I=I+Math.imul(Rr,Ne)|0,Z=Math.imul(Rr,jt),F=F+Math.imul(nn,Ar)|0,I=I+Math.imul(nn,qr)|0,I=I+Math.imul(Ir,Ar)|0,Z=Z+Math.imul(Ir,qr)|0,F=F+Math.imul(jr,on)|0,I=I+Math.imul(jr,an)|0,I=I+Math.imul($r,on)|0,Z=Z+Math.imul($r,an)|0,F=F+Math.imul(Hr,cr)|0,I=I+Math.imul(Hr,xn)|0,I=I+Math.imul(Lr,cr)|0,Z=Z+Math.imul(Lr,xn)|0,F=F+Math.imul(dt,ln)|0,I=I+Math.imul(dt,vn)|0,I=I+Math.imul(un,ln)|0,Z=Z+Math.imul(un,vn)|0,F=F+Math.imul(rn,ur)|0,I=I+Math.imul(rn,wn)|0,I=I+Math.imul(Je,ur)|0,Z=Z+Math.imul(Je,wn)|0,F=F+Math.imul(tr,En)|0,I=I+Math.imul(tr,fn)|0,I=I+Math.imul(yt,En)|0,Z=Z+Math.imul(yt,fn)|0;var ac=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(ac>>>26)|0,ac&=67108863,F=Math.imul(Pr,Ar),I=Math.imul(Pr,qr),I=I+Math.imul(Rr,Ar)|0,Z=Math.imul(Rr,qr),F=F+Math.imul(nn,on)|0,I=I+Math.imul(nn,an)|0,I=I+Math.imul(Ir,on)|0,Z=Z+Math.imul(Ir,an)|0,F=F+Math.imul(jr,cr)|0,I=I+Math.imul(jr,xn)|0,I=I+Math.imul($r,cr)|0,Z=Z+Math.imul($r,xn)|0,F=F+Math.imul(Hr,ln)|0,I=I+Math.imul(Hr,vn)|0,I=I+Math.imul(Lr,ln)|0,Z=Z+Math.imul(Lr,vn)|0,F=F+Math.imul(dt,ur)|0,I=I+Math.imul(dt,wn)|0,I=I+Math.imul(un,ur)|0,Z=Z+Math.imul(un,wn)|0,F=F+Math.imul(rn,En)|0,I=I+Math.imul(rn,fn)|0,I=I+Math.imul(Je,En)|0,Z=Z+Math.imul(Je,fn)|0;var qc=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(qc>>>26)|0,qc&=67108863,F=Math.imul(Pr,on),I=Math.imul(Pr,an),I=I+Math.imul(Rr,on)|0,Z=Math.imul(Rr,an),F=F+Math.imul(nn,cr)|0,I=I+Math.imul(nn,xn)|0,I=I+Math.imul(Ir,cr)|0,Z=Z+Math.imul(Ir,xn)|0,F=F+Math.imul(jr,ln)|0,I=I+Math.imul(jr,vn)|0,I=I+Math.imul($r,ln)|0,Z=Z+Math.imul($r,vn)|0,F=F+Math.imul(Hr,ur)|0,I=I+Math.imul(Hr,wn)|0,I=I+Math.imul(Lr,ur)|0,Z=Z+Math.imul(Lr,wn)|0,F=F+Math.imul(dt,En)|0,I=I+Math.imul(dt,fn)|0,I=I+Math.imul(un,En)|0,Z=Z+Math.imul(un,fn)|0;var Ab=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(Ab>>>26)|0,Ab&=67108863,F=Math.imul(Pr,cr),I=Math.imul(Pr,xn),I=I+Math.imul(Rr,cr)|0,Z=Math.imul(Rr,xn),F=F+Math.imul(nn,ln)|0,I=I+Math.imul(nn,vn)|0,I=I+Math.imul(Ir,ln)|0,Z=Z+Math.imul(Ir,vn)|0,F=F+Math.imul(jr,ur)|0,I=I+Math.imul(jr,wn)|0,I=I+Math.imul($r,ur)|0,Z=Z+Math.imul($r,wn)|0,F=F+Math.imul(Hr,En)|0,I=I+Math.imul(Hr,fn)|0,I=I+Math.imul(Lr,En)|0,Z=Z+Math.imul(Lr,fn)|0;var hp=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(hp>>>26)|0,hp&=67108863,F=Math.imul(Pr,ln),I=Math.imul(Pr,vn),I=I+Math.imul(Rr,ln)|0,Z=Math.imul(Rr,vn),F=F+Math.imul(nn,ur)|0,I=I+Math.imul(nn,wn)|0,I=I+Math.imul(Ir,ur)|0,Z=Z+Math.imul(Ir,wn)|0,F=F+Math.imul(jr,En)|0,I=I+Math.imul(jr,fn)|0,I=I+Math.imul($r,En)|0,Z=Z+Math.imul($r,fn)|0;var yf=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(yf>>>26)|0,yf&=67108863,F=Math.imul(Pr,ur),I=Math.imul(Pr,wn),I=I+Math.imul(Rr,ur)|0,Z=Math.imul(Rr,wn),F=F+Math.imul(nn,En)|0,I=I+Math.imul(nn,fn)|0,I=I+Math.imul(Ir,En)|0,Z=Z+Math.imul(Ir,fn)|0;var Sb=(Q+F|0)+((I&8191)<<13)|0;Q=(Z+(I>>>13)|0)+(Sb>>>26)|0,Sb&=67108863,F=Math.imul(Pr,En),I=Math.imul(Pr,fn),I=I+Math.imul(Rr,En)|0,Z=Math.imul(Rr,fn);var p8=(Q+F|0)+((I&8191)<<13)|0;return Q=(Z+(I>>>13)|0)+(p8>>>26)|0,p8&=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]=qc,V[14]=Ab,V[15]=hp,V[16]=yf,V[17]=Sb,V[18]=p8,Q!==0&&(V[19]=Q,R.length++),R};Math.imul||(M=P);function U(H,A,T){T.negative=A.negative^H.negative,T.length=H.length+A.length;for(var R=0,D=0,L=0;L<T.length-1;L++){var V=D;D=0;for(var Q=R&67108863,F=Math.min(L,A.length-1),I=Math.max(0,L-H.length+1);I<=F;I++){var Z=L-I,me=H.words[Z]|0,ge=A.words[I]|0,Se=me*ge,Ce=Se&67108863;V=V+(Se/67108864|0)|0,Ce=Ce+Q|0,Q=Ce&67108863,V=V+(Ce>>>26)|0,D+=V>>>26,V&=67108863}T.words[L]=Q,R=V,V=D}return R!==0?T.words[L]=R:T.length--,T._strip()}function O(H,A,T){return U(H,A,T)}o.prototype.mulTo=function(A,T){var R,D=this.length+A.length;return this.length===10&&A.length===10?R=M(this,A,T):D<63?R=P(this,A,T):D<1024?R=U(this,A,T):R=O(this,A,T),R};function N(H,A){this.x=H,this.y=A}N.prototype.makeRBT=function(A){for(var T=new Array(A),R=o.prototype._countBits(A)-1,D=0;D<A;D++)T[D]=this.revBin(D,R,A);return T},N.prototype.revBin=function(A,T,R){if(A===0||A===R-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,R,D,L,V){for(var Q=0;Q<V;Q++)D[Q]=T[A[Q]],L[Q]=R[A[Q]]},N.prototype.transform=function(A,T,R,D,L,V){this.permute(V,A,T,R,D,L);for(var Q=1;Q<L;Q<<=1)for(var F=Q<<1,I=Math.cos(2*Math.PI/F),Z=Math.sin(2*Math.PI/F),me=0;me<L;me+=F)for(var ge=I,Se=Z,Ce=0;Ce<Q;Ce++){var qe=R[me+Ce],je=D[me+Ce],Ot=R[me+Ce+Q],Te=D[me+Ce+Q],It=ge*Ot-Se*Te;Te=ge*Te+Se*Ot,Ot=It,R[me+Ce]=qe+Ot,D[me+Ce]=je+Te,R[me+Ce+Q]=qe-Ot,D[me+Ce+Q]=je-Te,Ce!==F&&(It=I*ge-Z*Se,Se=I*Se+Z*ge,ge=It)}},N.prototype.guessLen13b=function(A,T){var R=Math.max(T,A)|1,D=R&1,L=0;for(R=R/2|0;R;R=R>>>1)L++;return 1<<L+1+D},N.prototype.conjugate=function(A,T,R){if(!(R<=1))for(var D=0;D<R/2;D++){var L=A[D];A[D]=A[R-D-1],A[R-D-1]=L,L=T[D],T[D]=-T[R-D-1],T[R-D-1]=-L}},N.prototype.normalize13b=function(A,T){for(var R=0,D=0;D<T/2;D++){var L=Math.round(A[2*D+1]/T)*8192+Math.round(A[2*D]/T)+R;A[D]=L&67108863,L<67108864?R=0:R=L/67108864|0}return A},N.prototype.convert13b=function(A,T,R,D){for(var L=0,V=0;V<T;V++)L=L+(A[V]|0),R[2*V]=L&8191,L=L>>>13,R[2*V+1]=L&8191,L=L>>>13;for(V=2*T;V<D;++V)R[V]=0;r(L===0),r((L&-8192)===0)},N.prototype.stub=function(A){for(var T=new Array(A),R=0;R<A;R++)T[R]=0;return T},N.prototype.mulp=function(A,T,R){var D=2*this.guessLen13b(A.length,T.length),L=this.makeRBT(D),V=this.stub(D),Q=new Array(D),F=new Array(D),I=new Array(D),Z=new Array(D),me=new Array(D),ge=new Array(D),Se=R.words;Se.length=D,this.convert13b(A.words,A.length,Q,D),this.convert13b(T.words,T.length,Z,D),this.transform(Q,V,F,I,D,L),this.transform(Z,V,me,ge,D,L);for(var Ce=0;Ce<D;Ce++){var qe=F[Ce]*me[Ce]-I[Ce]*ge[Ce];I[Ce]=F[Ce]*ge[Ce]+I[Ce]*me[Ce],F[Ce]=qe}return this.conjugate(F,I,D),this.transform(F,I,Se,V,D,L),this.conjugate(Se,V,D),this.normalize13b(Se,D),R.negative=A.negative^T.negative,R.length=A.length+T.length,R._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 R=0,D=0;D<this.length;D++){var L=(this.words[D]|0)*A,V=(L&67108863)+(R&67108863);R>>=26,R+=L/67108864|0,R+=V>>>26,this.words[D]=V&67108863}return R!==0&&(this.words[D]=R,this.length++),A===0&&(this.length=1,this._normSign()),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=k(A);if(T.length===0)return new o(1);for(var R=this,D=0;D<T.length&&T[D]===0;D++,R=R.sqr());if(++D<T.length)for(var L=R.sqr();D<T.length;D++,L=L.sqr())T[D]!==0&&(R=R.mul(L));return R},o.prototype.iushln=function(A){r(typeof A==\"number\"&&A>=0);var T=A%26,R=(A-T)/26,D=67108863>>>26-T<<26-T,L;if(T!==0){var V=0;for(L=0;L<this.length;L++){var Q=this.words[L]&D,F=(this.words[L]|0)-Q<<T;this.words[L]=F|V,V=Q>>>26-T}V&&(this.words[L]=V,this.length++)}if(R!==0){for(L=this.length-1;L>=0;L--)this.words[L+R]=this.words[L];for(L=0;L<R;L++)this.words[L]=0;this.length+=R}return this._strip()},o.prototype.ishln=function(A){return r(this.negative===0),this.iushln(A)},o.prototype.iushrn=function(A,T,R){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),Q=67108863^67108863>>>L<<L,F=R;if(D-=V,D=Math.max(0,D),F){for(var I=0;I<V;I++)F.words[I]=this.words[I];F.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 Z=0;for(I=this.length-1;I>=0&&(Z!==0||I>=D);I--){var me=this.words[I]|0;this.words[I]=Z<<26-L|me>>>L,Z=me&Q}return F&&Z!==0&&(F.words[F.length++]=Z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(A,T,R){return r(this.negative===0),this.iushrn(A,T,R)},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,R=(A-T)/26,D=1<<T;if(this.length<=R)return!1;var L=this.words[R];return!!(L&D)},o.prototype.imaskn=function(A){r(typeof A==\"number\"&&A>=0);var T=A%26,R=(A-T)/26;if(r(this.negative===0,\"imaskn works only with positive numbers\"),this.length<=R)return this;if(T!==0&&R++,this.length=Math.min(R,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,R){var D=A.length+R,L;this._expand(D);var V,Q=0;for(L=0;L<A.length;L++){V=(this.words[L+R]|0)+Q;var F=(A.words[L]|0)*T;V-=F&67108863,Q=(V>>26)-(F/67108864|0),this.words[L+R]=V&67108863}for(;L<this.length-R;L++)V=(this.words[L+R]|0)+Q,Q=V>>26,this.words[L+R]=V&67108863;if(Q===0)return this._strip();for(r(Q===-1),Q=0,L=0;L<this.length;L++)V=-(this.words[L]|0)+Q,Q=V>>26,this.words[L]=V&67108863;return this.negative=1,this._strip()},o.prototype._wordDiv=function(A,T){var R=this.length-A.length,D=this.clone(),L=A,V=L.words[L.length-1]|0,Q=this._countBits(V);R=26-Q,R!==0&&(L=L.ushln(R),D.iushln(R),V=L.words[L.length-1]|0);var F=D.length-L.length,I;if(T!==\"mod\"){I=new o(null),I.length=F+1,I.words=new Array(I.length);for(var Z=0;Z<I.length;Z++)I.words[Z]=0}var me=D.clone()._ishlnsubmul(L,1,F);me.negative===0&&(D=me,I&&(I.words[F]=1));for(var ge=F-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\"&&R!==0&&D.iushrn(R),{div:I||null,mod:D}},o.prototype.divmod=function(A,T,R){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(),R&&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(),R&&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 R=T.mod.abs(),D=A.abs().iushrn(1),L=A.words[0]&1,V=R.cmp(D);if(V<0||L===1&&V===0)return T.div;var Q=new o(1);return Q.negative=this.negative^A.negative,T.div.iadd(Q)},o.prototype.modrn=function(A){var T=A<0;T&&(A=-A),r(A<=67108863);for(var R=(1<<26)%A,D=0,L=this.length-1;L>=0;L--)D=(R*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 R=0,D=this.length-1;D>=0;D--){var L=(this.words[D]|0)+R*67108864;this.words[D]=L/A|0,R=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,R=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),Q=new o(1),F=0;T.isEven()&&R.isEven();)T.iushrn(1),R.iushrn(1),++F;for(var I=R.clone(),Z=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(Z)),D.iushrn(1),L.iushrn(1);for(var Se=0,Ce=1;(R.words[0]&Ce)===0&&Se<26;++Se,Ce<<=1);if(Se>0)for(R.iushrn(Se);Se-- >0;)(V.isOdd()||Q.isOdd())&&(V.iadd(I),Q.isub(Z)),V.iushrn(1),Q.iushrn(1);T.cmp(R)>=0?(T.isub(R),D.isub(V),L.isub(Q)):(R.isub(T),V.isub(D),Q.isub(L))}return{a:V,b:Q,gcd:R.iushln(F)}},o.prototype._invmp=function(A){r(A.negative===0),r(!A.isZero());var T=this,R=A.clone();T.negative!==0?T=T.umod(A):T=T.clone();for(var D=new o(1),L=new o(0),V=R.clone();T.cmpn(1)>0&&R.cmpn(1)>0;){for(var Q=0,F=1;(T.words[0]&F)===0&&Q<26;++Q,F<<=1);if(Q>0)for(T.iushrn(Q);Q-- >0;)D.isOdd()&&D.iadd(V),D.iushrn(1);for(var I=0,Z=1;(R.words[0]&Z)===0&&I<26;++I,Z<<=1);if(I>0)for(R.iushrn(I);I-- >0;)L.isOdd()&&L.iadd(V),L.iushrn(1);T.cmp(R)>=0?(T.isub(R),D.isub(L)):(R.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(),R=A.clone();T.negative=0,R.negative=0;for(var D=0;T.isEven()&&R.isEven();D++)T.iushrn(1),R.iushrn(1);do{for(;T.isEven();)T.iushrn(1);for(;R.isEven();)R.iushrn(1);var L=T.cmp(R);if(L<0){var V=T;T=R,R=V}else if(L===0||R.cmpn(1)===0)break;T.isub(R)}while(!0);return R.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,R=(A-T)/26,D=1<<T;if(this.length<=R)return this._expand(R+1),this.words[R]|=D,this;for(var L=D,V=R;L!==0&&V<this.length;V++){var Q=this.words[V]|0;Q+=L,L=Q>>>26,Q&=67108863,this.words[V]=Q}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 R;if(this.length>1)R=1;else{T&&(A=-A),r(A<=67108863,\"Number is too big\");var D=this.words[0]|0;R=D===A?0:D<A?-1:1}return this.negative!==0?-R|0:R},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,R=this.length-1;R>=0;R--){var D=this.words[R]|0,L=A.words[R]|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,R;do this.split(T,this.tmp),T=this.imulK(T),T=T.iadd(this.tmp),R=T.bitLength();while(R>this.n);var D=R<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 R=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&R,L=10;L<A.length;L++){var Q=A.words[L]|0;A.words[L-10]=(Q&R)<<4|V>>>22,V=Q}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,R=0;R<A.length;R++){var D=A.words[R]|0;T+=D*977,A.words[R]=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,R=0;R<A.length;R++){var D=(A.words[R]|0)*19+T,L=D&67108863;D>>>=26,A.words[R]=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):(p(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 R=A.add(T);return R.cmp(this.m)>=0&&R.isub(this.m),R._forceRed(this)},ie.prototype.iadd=function(A,T){this._verify2(A,T);var R=A.iadd(T);return R.cmp(this.m)>=0&&R.isub(this.m),R},ie.prototype.sub=function(A,T){this._verify2(A,T);var R=A.sub(T);return R.cmpn(0)<0&&R.iadd(this.m),R._forceRed(this)},ie.prototype.isub=function(A,T){this._verify2(A,T);var R=A.isub(T);return R.cmpn(0)<0&&R.iadd(this.m),R},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 R=this.m.add(new o(1)).iushrn(2);return this.pow(A,R)}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),Q=V.redNeg(),F=this.m.subn(1).iushrn(1),I=this.m.bitLength();for(I=new o(2*I*I).toRed(this);this.pow(I,F).cmp(Q)!==0;)I.redIAdd(Q);for(var Z=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,qe=0;Ce.cmp(V)!==0;qe++)Ce=Ce.redSqr();r(qe<Se);var je=this.pow(Z,new o(1).iushln(Se-qe-1));me=me.redMul(je),Z=je.redSqr(),ge=ge.redMul(Z),Se=qe}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 R=4,D=new Array(1<<R);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],Q=0,F=0,I=T.bitLength()%26;for(I===0&&(I=26),L=T.length-1;L>=0;L--){for(var Z=T.words[L],me=I-1;me>=0;me--){var ge=Z>>me&1;if(V!==D[0]&&(V=this.sqr(V)),ge===0&&Q===0){F=0;continue}Q<<=1,Q|=ge,F++,!(F!==R&&(L!==0||me!==0))&&(V=this.mul(V,D[Q]),F=0,Q=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 R=A.imul(T),D=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),L=R.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 R=A.mul(T),D=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),L=R.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 eee>\"u\"||eee,YWe)});var Q_=X(l3=>{\"use strict\";c();Object.defineProperty(l3,\"__esModule\",{value:!0});l3.errorValues=l3.standardErrorCodes=void 0;l3.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}};l3.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 SH=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 AH=Q_(),tQe=\"Unspecified error message.\";Hc.JSON_RPC_SERVER_ERROR_MESSAGE=\"Unspecified server error.\";function rQe(e,t=tQe){if(e&&Number.isInteger(e)){let r=e.toString();if(tee(AH.errorValues,r))return AH.errorValues[r].message;if(oQe(e))return Hc.JSON_RPC_SERVER_ERROR_MESSAGE}return t}Hc.getMessageFromCode=rQe;function nQe(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(AH.errorValues[t]||oQe(e))}Hc.isValidCode=nQe;function j5t(e){var t;if(typeof e==\"number\")return e;if($5t(e))return(t=e.code)!==null&&t!==void 0?t:e.errorCode}Hc.getErrorCode=j5t;function $5t(e){return typeof e==\"object\"&&e!==null&&(typeof e.code==\"number\"||typeof e.errorCode==\"number\")}function q5t(e,{shouldIncludeStack:t=!1}={}){let r={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&tee(e,\"code\")&&nQe(e.code)){let n=e;r.code=n.code,n.message&&typeof n.message==\"string\"?(r.message=n.message,tee(n,\"data\")&&(r.data=n.data)):(r.message=rQe(r.code),r.data={originalError:XWe(e)})}else r.code=AH.standardErrorCodes.rpc.internal,r.message=eQe(e,\"message\")?e.message:tQe,r.data={originalError:XWe(e)};return t&&(r.stack=eQe(e,\"stack\")?e.stack:void 0),r}Hc.serialize=q5t;function oQe(e){return e>=-32099&&e<=-32e3}function XWe(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function tee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function eQe(e,t){return typeof e==\"object\"&&e!==null&&t in e&&typeof e[t]==\"string\"}});var sQe=X(_H=>{\"use strict\";c();Object.defineProperty(_H,\"__esModule\",{value:!0});_H.standardErrors=void 0;var ti=Q_(),aQe=SH();_H.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=>f3(ti.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>f3(ti.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>f3(ti.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>f3(ti.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>f3(ti.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>f3(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 TH(t,r,n)}}};function Gu(e,t){let[r,n]=iQe(t);return new CH(e,r||(0,aQe.getMessageFromCode)(e),n)}function f3(e,t){let[r,n]=iQe(t);return new TH(e,r||(0,aQe.getMessageFromCode)(e),n)}function iQe(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 CH=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)}},TH=class extends CH{constructor(t,r,n){if(!G5t(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,r,n)}};function G5t(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}});var BH=X(kH=>{\"use strict\";c();Object.defineProperty(kH,\"__esModule\",{value:!0});kH.isErrorResponse=void 0;function V5t(e){return e.errorMessage!==void 0}kH.isErrorResponse=V5t});var PH=X(IH=>{\"use strict\";c();Object.defineProperty(IH,\"__esModule\",{value:!0});IH.LIB_VERSION=void 0;IH.LIB_VERSION=\"3.9.3\"});var cQe=X(RH=>{\"use strict\";c();Object.defineProperty(RH,\"__esModule\",{value:!0});RH.serializeError=void 0;var K5t=BH(),W5t=PH(),Q5t=Q_(),Z5t=SH();function J5t(e,t){let r=(0,Z5t.serialize)(Y5t(e),{shouldIncludeStack:!0}),n=new URL(\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\");n.searchParams.set(\"version\",W5t.LIB_VERSION),n.searchParams.set(\"code\",r.code.toString());let o=X5t(r.data,t);return o&&n.searchParams.set(\"method\",o),n.searchParams.set(\"message\",r.message),Object.assign(Object.assign({},r),{docUrl:n.href})}RH.serializeError=J5t;function Y5t(e){return typeof e==\"string\"?{message:e,code:Q5t.standardErrorCodes.rpc.internal}:(0,K5t.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function X5t(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 Z_=X(Vu=>{\"use strict\";c();Object.defineProperty(Vu,\"__esModule\",{value:!0});Vu.standardErrors=Vu.standardErrorCodes=Vu.serializeError=Vu.getMessageFromCode=Vu.getErrorCode=void 0;var eEt=Q_();Object.defineProperty(Vu,\"standardErrorCodes\",{enumerable:!0,get:function(){return eEt.standardErrorCodes}});var tEt=sQe();Object.defineProperty(Vu,\"standardErrors\",{enumerable:!0,get:function(){return tEt.standardErrors}});var rEt=cQe();Object.defineProperty(Vu,\"serializeError\",{enumerable:!0,get:function(){return rEt.serializeError}});var uQe=SH();Object.defineProperty(Vu,\"getErrorCode\",{enumerable:!0,get:function(){return uQe.getErrorCode}});Object.defineProperty(Vu,\"getMessageFromCode\",{enumerable:!0,get:function(){return uQe.getMessageFromCode}})});var Y_=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 J_(){return e=>e}Si.OpaqueType=J_;Si.HexString=J_();Si.AddressString=J_();Si.BigIntString=J_();function nEt(e){return Math.floor(e)}Si.IntNumber=nEt;Si.RegExpString=J_();var lQe;(function(e){e.CoinbaseWallet=\"CoinbaseWallet\",e.MetaMask=\"MetaMask\",e.Unselected=\"\"})(lQe||(Si.ProviderType=lQe={}))});var Zd=X(ut=>{\"use strict\";c();var oEt=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=oEt(W_()),Nx=Z_(),Ku=Y_(),fQe=/^[0-9]*$/,dQe=/^[a-f0-9]*$/;function aEt(e){return pQe(crypto.getRandomValues(new Uint8Array(e)))}ut.randomBytesHex=aEt;function pQe(e){return[...e].map(t=>t.toString(16).padStart(2,\"0\")).join(\"\")}ut.uint8ArrayToHex=pQe;function iEt(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}ut.hexStringToUint8Array=iEt;function sEt(e,t=!1){let r=e.toString(\"hex\");return(0,Ku.HexString)(t?`0x${r}`:r)}ut.hexStringFromBuffer=sEt;function cEt(e){return(0,Ku.BigIntString)(e.toString(10))}ut.bigIntStringFromBN=cEt;function uEt(e){return(0,Ku.IntNumber)(new sb.default(e4(e,!1),16).toNumber())}ut.intNumberFromHexString=uEt;function lEt(e){return(0,Ku.HexString)(`0x${new sb.default(e).toString(16)}`)}ut.hexStringFromIntNumber=lEt;function ree(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")}ut.has0xPrefix=ree;function MH(e){return ree(e)?e.slice(2):e}ut.strip0x=MH;function mQe(e){return ree(e)?`0x${e.slice(2)}`:`0x${e}`}ut.prepend0x=mQe;function X_(e){if(typeof e!=\"string\")return!1;let t=MH(e).toLowerCase();return dQe.test(t)}ut.isHexString=X_;function hQe(e,t=!1){if(typeof e==\"string\"){let r=MH(e).toLowerCase();if(dQe.test(r))return(0,Ku.HexString)(t?`0x${r}`:r)}throw Nx.standardErrors.rpc.invalidParams(`\"${String(e)}\" is not a hexadecimal string`)}ut.ensureHexString=hQe;function e4(e,t=!1){let r=hQe(e,!1);return r.length%2===1&&(r=(0,Ku.HexString)(`0${r}`)),t?(0,Ku.HexString)(`0x${r}`):r}ut.ensureEvenLengthHexString=e4;function fEt(e){if(typeof e==\"string\"){let t=MH(e).toLowerCase();if(X_(t)&&t.length===40)return(0,Ku.AddressString)(mQe(t))}throw Nx.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}ut.ensureAddressString=fEt;function dEt(e){if(globalThis.Buffer.isBuffer(e))return e;if(typeof e==\"string\"){if(X_(e)){let t=e4(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=dEt;function yQe(e){if(typeof e==\"number\"&&Number.isInteger(e))return(0,Ku.IntNumber)(e);if(typeof e==\"string\"){if(fQe.test(e))return(0,Ku.IntNumber)(Number(e));if(X_(e))return(0,Ku.IntNumber)(new sb.default(e4(e,!1),16).toNumber())}throw Nx.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}ut.ensureIntNumber=yQe;function pEt(e){if(e instanceof RegExp)return(0,Ku.RegExpString)(e.toString());throw Nx.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}ut.ensureRegExpString=pEt;function mEt(e){if(e!==null&&(sb.default.isBN(e)||bQe(e)))return new sb.default(e.toString(10),10);if(typeof e==\"number\")return new sb.default(yQe(e));if(typeof e==\"string\"){if(fQe.test(e))return new sb.default(e,10);if(X_(e))return new sb.default(e4(e,!1),16)}throw Nx.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}ut.ensureBN=mEt;function hEt(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=hEt;function bQe(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=bQe;function yEt(e,t){return Array.from({length:t-e},(r,n)=>e+n)}ut.range=yEt;function bEt(){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=bEt;function gEt(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=gEt;function gQe(){try{return window.frameElement!==null}catch{return!1}}ut.isInIFrame=gQe;function xEt(){try{return gQe()&&window.top?window.top.location:window.location}catch{return window.location}}ut.getLocation=xEt;function vEt(){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=vEt});var xQe=X(OH=>{\"use strict\";c();Object.defineProperty(OH,\"__esModule\",{value:!0});OH.ScopedLocalStorage=void 0;var nee=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}`}};OH.ScopedLocalStorage=nee});var wQe=X((gVn,oee)=>{\"use strict\";c();var wEt=Object.prototype.hasOwnProperty,ls=\"~\";function t4(){}Object.create&&(t4.prototype=Object.create(null),new t4().__proto__||(ls=!1));function EEt(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function vQe(e,t,r,n,o){if(typeof r!=\"function\")throw new TypeError(\"The listener must be a function\");var s=new EEt(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 NH(e,t){--e._eventsCount===0?e._events=new t4:delete e._events[t]}function Ci(){this._events=new t4,this._eventsCount=0}Ci.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)wEt.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],p=arguments.length,h,y;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),p){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(p-1);y<p;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),p){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(p-1);E<p;E++)h[E-1]=arguments[E];d[y].fn.apply(d[y].context,h)}}return!0};Ci.prototype.on=function(t,r,n){return vQe(this,t,r,n,!1)};Ci.prototype.once=function(t,r,n){return vQe(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 NH(this,s),this;var u=this._events[s];if(u.fn)u.fn===r&&(!o||u.once)&&(!n||u.context===n)&&NH(this,s);else{for(var f=0,d=[],p=u.length;f<p;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:NH(this,s)}return this};Ci.prototype.removeAllListeners=function(t){var r;return t?(r=ls?ls+t:t,this._events[r]&&NH(this,r)):(this._events=new t4,this._eventsCount=0),this};Ci.prototype.off=Ci.prototype.removeListener;Ci.prototype.addListener=Ci.prototype.on;Ci.prefixed=ls;Ci.EventEmitter=Ci;typeof oee<\"u\"&&(oee.exports=Ci)});var DH=X(UH=>{\"use strict\";c();Object.defineProperty(UH,\"__esModule\",{value:!0});UH.EVENTS=void 0;UH.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 HH=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 EQe=Z_();Jd.WALLET_USER_NAME_KEY=\"walletUsername\";Jd.LOCAL_STORAGE_ADDRESSES_KEY=\"Addresses\";Jd.APP_VERSION_KEY=\"AppVersion\";var aee=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 EQe.standardErrors.rpc.parse({});let o=n,{error:s}=o;if(s)throw(0,EQe.serializeError)(s,t.method);return o})}};Jd.RelayAbstract=aee});var Wu=X((SVn,iee)=>{c();typeof Object.create==\"function\"?iee.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:iee.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((see,SQe)=>{c();var LH=uv(),Yd=LH.Buffer;function AQe(e,t){for(var r in e)t[r]=e[r]}Yd.from&&Yd.alloc&&Yd.allocUnsafe&&Yd.allocUnsafeSlow?SQe.exports=LH:(AQe(LH,see),see.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 LH.SlowBuffer(e)}});var TQe=X((_Vn,CQe)=>{c();var AEt={}.toString;CQe.exports=Array.isArray||function(e){return AEt.call(e)==\"[object Array]\"}});var d3=X((BVn,_Qe)=>{\"use strict\";c();_Qe.exports=TypeError});var cee=X((PVn,kQe)=>{\"use strict\";c();kQe.exports=Object});var IQe=X((MVn,BQe)=>{\"use strict\";c();BQe.exports=Error});var RQe=X((NVn,PQe)=>{\"use strict\";c();PQe.exports=EvalError});var OQe=X((DVn,MQe)=>{\"use strict\";c();MQe.exports=RangeError});var UQe=X((LVn,NQe)=>{\"use strict\";c();NQe.exports=ReferenceError});var uee=X((zVn,DQe)=>{\"use strict\";c();DQe.exports=SyntaxError});var LQe=X(($Vn,HQe)=>{\"use strict\";c();HQe.exports=URIError});var zQe=X((GVn,FQe)=>{\"use strict\";c();FQe.exports=Math.abs});var $Qe=X((KVn,jQe)=>{\"use strict\";c();jQe.exports=Math.floor});var GQe=X((QVn,qQe)=>{\"use strict\";c();qQe.exports=Math.max});var KQe=X((JVn,VQe)=>{\"use strict\";c();VQe.exports=Math.min});var QQe=X((XVn,WQe)=>{\"use strict\";c();WQe.exports=Math.pow});var JQe=X((tKn,ZQe)=>{\"use strict\";c();ZQe.exports=Math.round});var XQe=X((nKn,YQe)=>{\"use strict\";c();YQe.exports=Number.isNaN||function(t){return t!==t}});var tZe=X((aKn,eZe)=>{\"use strict\";c();var SEt=XQe();eZe.exports=function(t){return SEt(t)||t===0?t:t<0?-1:1}});var nZe=X((sKn,rZe)=>{\"use strict\";c();rZe.exports=Object.getOwnPropertyDescriptor});var p3=X((uKn,oZe)=>{\"use strict\";c();var FH=nZe();if(FH)try{FH([],\"length\")}catch{FH=null}oZe.exports=FH});var r4=X((fKn,aZe)=>{\"use strict\";c();var zH=Object.defineProperty||!1;if(zH)try{zH({},\"a\",{value:1})}catch{zH=!1}aZe.exports=zH});var lee=X((pKn,iZe)=>{\"use strict\";c();iZe.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 uZe=X((hKn,cZe)=>{\"use strict\";c();var sZe=typeof Symbol<\"u\"&&Symbol,CEt=lee();cZe.exports=function(){return typeof sZe!=\"function\"||typeof Symbol!=\"function\"||typeof sZe(\"foo\")!=\"symbol\"||typeof Symbol(\"bar\")!=\"symbol\"?!1:CEt()}});var fee=X((bKn,lZe)=>{\"use strict\";c();lZe.exports=typeof Reflect<\"u\"&&Reflect.getPrototypeOf||null});var dee=X((xKn,fZe)=>{\"use strict\";c();var TEt=cee();fZe.exports=TEt.getPrototypeOf||null});var mZe=X((wKn,pZe)=>{\"use strict\";c();var _Et=\"Function.prototype.bind called on incompatible \",kEt=Object.prototype.toString,BEt=Math.max,IEt=\"[object Function]\",dZe=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},PEt=function(t,r){for(var n=[],o=r||0,s=0;o<t.length;o+=1,s+=1)n[s]=t[o];return n},REt=function(e,t){for(var r=\"\",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};pZe.exports=function(t){var r=this;if(typeof r!=\"function\"||kEt.apply(r)!==IEt)throw new TypeError(_Et+r);for(var n=PEt(arguments,1),o,s=function(){if(this instanceof o){var h=r.apply(this,dZe(n,arguments));return Object(h)===h?h:this}return r.apply(t,dZe(n,arguments))},u=BEt(0,r.length-n.length),f=[],d=0;d<u;d++)f[d]=\"$\"+d;if(o=Function(\"binder\",\"return function (\"+REt(f,\",\")+\"){ return binder.apply(this,arguments); }\")(s),r.prototype){var p=function(){};p.prototype=r.prototype,o.prototype=new p,p.prototype=null}return o}});var m3=X((AKn,hZe)=>{\"use strict\";c();var MEt=mZe();hZe.exports=Function.prototype.bind||MEt});var jH=X((CKn,yZe)=>{\"use strict\";c();yZe.exports=Function.prototype.call});var $H=X((_Kn,bZe)=>{\"use strict\";c();bZe.exports=Function.prototype.apply});var xZe=X((BKn,gZe)=>{\"use strict\";c();gZe.exports=typeof Reflect<\"u\"&&Reflect&&Reflect.apply});var pee=X((PKn,vZe)=>{\"use strict\";c();var OEt=m3(),NEt=$H(),UEt=jH(),DEt=xZe();vZe.exports=DEt||OEt.call(UEt,NEt)});var qH=X((MKn,wZe)=>{\"use strict\";c();var HEt=m3(),LEt=d3(),FEt=jH(),zEt=pee();wZe.exports=function(t){if(t.length<1||typeof t[0]!=\"function\")throw new LEt(\"a function is required\");return zEt(HEt,FEt,t)}});var _Ze=X((NKn,TZe)=>{\"use strict\";c();var jEt=qH(),EZe=p3(),SZe;try{SZe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=\"object\"||!(\"code\"in e)||e.code!==\"ERR_PROTO_ACCESS\")throw e}var mee=!!SZe&&EZe&&EZe(Object.prototype,\"__proto__\"),CZe=Object,AZe=CZe.getPrototypeOf;TZe.exports=mee&&typeof mee.get==\"function\"?jEt([mee.get]):typeof AZe==\"function\"?function(t){return AZe(t==null?t:CZe(t))}:!1});var hee=X((DKn,PZe)=>{\"use strict\";c();var kZe=fee(),BZe=dee(),IZe=_Ze();PZe.exports=kZe?function(t){return kZe(t)}:BZe?function(t){if(!t||typeof t!=\"object\"&&typeof t!=\"function\")throw new TypeError(\"getProto: not an object\");return BZe(t)}:IZe?function(t){return IZe(t)}:null});var MZe=X((LKn,RZe)=>{\"use strict\";c();var $Et=Function.prototype.call,qEt=Object.prototype.hasOwnProperty,GEt=m3();RZe.exports=GEt.call($Et,qEt)});var gee=X((zKn,LZe)=>{\"use strict\";c();var pr,VEt=cee(),KEt=IQe(),WEt=RQe(),QEt=OQe(),ZEt=UQe(),g3=uee(),b3=d3(),JEt=LQe(),YEt=zQe(),XEt=$Qe(),e3t=GQe(),t3t=KQe(),r3t=QQe(),n3t=JQe(),o3t=tZe(),DZe=Function,yee=function(e){try{return DZe(\\'\"use strict\"; return (\\'+e+\").constructor;\")()}catch{}},n4=p3(),a3t=r4(),bee=function(){throw new b3},i3t=n4?(function(){try{return arguments.callee,bee}catch{try{return n4(arguments,\"callee\").get}catch{return bee}}})():bee,h3=uZe()(),Ia=hee(),s3t=dee(),c3t=fee(),HZe=$H(),o4=jH(),y3={},u3t=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%\":h3&&Ia?Ia([][Symbol.iterator]()):pr,\"%AsyncFromSyncIteratorPrototype%\":pr,\"%AsyncFunction%\":y3,\"%AsyncGenerator%\":y3,\"%AsyncGeneratorFunction%\":y3,\"%AsyncIteratorPrototype%\":y3,\"%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%\":KEt,\"%eval%\":eval,\"%EvalError%\":WEt,\"%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%\":DZe,\"%GeneratorFunction%\":y3,\"%Int8Array%\":typeof Int8Array>\"u\"?pr:Int8Array,\"%Int16Array%\":typeof Int16Array>\"u\"?pr:Int16Array,\"%Int32Array%\":typeof Int32Array>\"u\"?pr:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":h3&&Ia?Ia(Ia([][Symbol.iterator]())):pr,\"%JSON%\":typeof JSON==\"object\"?JSON:pr,\"%Map%\":typeof Map>\"u\"?pr:Map,\"%MapIteratorPrototype%\":typeof Map>\"u\"||!h3||!Ia?pr:Ia(new Map()[Symbol.iterator]()),\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":VEt,\"%Object.getOwnPropertyDescriptor%\":n4,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":typeof Promise>\"u\"?pr:Promise,\"%Proxy%\":typeof Proxy>\"u\"?pr:Proxy,\"%RangeError%\":QEt,\"%ReferenceError%\":ZEt,\"%Reflect%\":typeof Reflect>\"u\"?pr:Reflect,\"%RegExp%\":RegExp,\"%Set%\":typeof Set>\"u\"?pr:Set,\"%SetIteratorPrototype%\":typeof Set>\"u\"||!h3||!Ia?pr:Ia(new Set()[Symbol.iterator]()),\"%SharedArrayBuffer%\":typeof SharedArrayBuffer>\"u\"?pr:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":h3&&Ia?Ia(\"\"[Symbol.iterator]()):pr,\"%Symbol%\":h3?Symbol:pr,\"%SyntaxError%\":g3,\"%ThrowTypeError%\":i3t,\"%TypedArray%\":u3t,\"%TypeError%\":b3,\"%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%\":JEt,\"%WeakMap%\":typeof WeakMap>\"u\"?pr:WeakMap,\"%WeakRef%\":typeof WeakRef>\"u\"?pr:WeakRef,\"%WeakSet%\":typeof WeakSet>\"u\"?pr:WeakSet,\"%Function.prototype.call%\":o4,\"%Function.prototype.apply%\":HZe,\"%Object.defineProperty%\":a3t,\"%Object.getPrototypeOf%\":s3t,\"%Math.abs%\":YEt,\"%Math.floor%\":XEt,\"%Math.max%\":e3t,\"%Math.min%\":t3t,\"%Math.pow%\":r3t,\"%Math.round%\":n3t,\"%Math.sign%\":o3t,\"%Reflect.getPrototypeOf%\":c3t};if(Ia)try{null.error}catch(e){OZe=Ia(Ia(e)),Dx[\"%Error.prototype%\"]=OZe}var OZe,l3t=function e(t){var r;if(t===\"%AsyncFunction%\")r=yee(\"async function () {}\");else if(t===\"%GeneratorFunction%\")r=yee(\"function* () {}\");else if(t===\"%AsyncGeneratorFunction%\")r=yee(\"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},NZe={__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\"]},a4=m3(),GH=MZe(),f3t=a4.call(o4,Array.prototype.concat),d3t=a4.call(HZe,Array.prototype.splice),UZe=a4.call(o4,String.prototype.replace),VH=a4.call(o4,String.prototype.slice),p3t=a4.call(o4,RegExp.prototype.exec),m3t=/[^%.[\\\\]]+|\\\\[(?:(-?\\\\d+(?:\\\\.\\\\d+)?)|([\"\\'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2)\\\\]|(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|%$))/g,h3t=/\\\\\\\\(\\\\\\\\)?/g,y3t=function(t){var r=VH(t,0,1),n=VH(t,-1);if(r===\"%\"&&n!==\"%\")throw new g3(\"invalid intrinsic syntax, expected closing `%`\");if(n===\"%\"&&r!==\"%\")throw new g3(\"invalid intrinsic syntax, expected opening `%`\");var o=[];return UZe(t,m3t,function(s,u,f,d){o[o.length]=f?UZe(d,h3t,\"$1\"):u||s}),o},b3t=function(t,r){var n=t,o;if(GH(NZe,n)&&(o=NZe[n],n=\"%\"+o[0]+\"%\"),GH(Dx,n)){var s=Dx[n];if(s===y3&&(s=l3t(n)),typeof s>\"u\"&&!r)throw new b3(\"intrinsic \"+t+\" exists, but is not available. Please file an issue!\");return{alias:o,name:n,value:s}}throw new g3(\"intrinsic \"+t+\" does not exist!\")};LZe.exports=function(t,r){if(typeof t!=\"string\"||t.length===0)throw new b3(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&typeof r!=\"boolean\")throw new b3(\\'\"allowMissing\" argument must be a boolean\\');if(p3t(/^%?[^%]*%?$/,t)===null)throw new g3(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var n=y3t(t),o=n.length>0?n[0]:\"\",s=b3t(\"%\"+o+\"%\",r),u=s.name,f=s.value,d=!1,p=s.alias;p&&(o=p[0],d3t(n,f3t([0,1],p)));for(var h=1,y=!0;h<n.length;h+=1){var v=n[h],E=VH(v,0,1),C=VH(v,-1);if((E===\\'\"\\'||E===\"\\'\"||E===\"`\"||C===\\'\"\\'||C===\"\\'\"||C===\"`\")&&E!==C)throw new g3(\"property names with quotes must have matching quotes\");if((v===\"constructor\"||!y)&&(d=!0),o+=\".\"+v,u=\"%\"+o+\"%\",GH(Dx,u))f=Dx[u];else if(f!=null){if(!(v in f)){if(!r)throw new b3(\"base intrinsic for \"+t+\" exists, but the property is not available.\");return}if(n4&&h+1>=n.length){var k=n4(f,v);y=!!k,y&&\"get\"in k&&!(\"originalValue\"in k.get)?f=k.get:f=f[v]}else y=GH(f,v),f=f[v];y&&!d&&(Dx[u]=f)}}return f}});var xee=X(($Kn,jZe)=>{\"use strict\";c();var FZe=gee(),zZe=qH(),g3t=zZe([FZe(\"%String.prototype.indexOf%\")]);jZe.exports=function(t,r){var n=FZe(t,!!r);return typeof n==\"function\"&&g3t(t,\".prototype.\")>-1?zZe([n]):n}});var VZe=X((GKn,GZe)=>{\"use strict\";c();var qZe=Function.prototype.toString,x3=typeof Reflect==\"object\"&&Reflect!==null&&Reflect.apply,wee,KH;if(typeof x3==\"function\"&&typeof Object.defineProperty==\"function\")try{wee=Object.defineProperty({},\"length\",{get:function(){throw KH}}),KH={},x3(function(){throw 42},null,wee)}catch(e){e!==KH&&(x3=null)}else x3=null;var x3t=/^\\\\s*class\\\\b/,Eee=function(t){try{var r=qZe.call(t);return x3t.test(r)}catch{return!1}},vee=function(t){try{return Eee(t)?!1:(qZe.call(t),!0)}catch{return!1}},WH=Object.prototype.toString,v3t=\"[object Object]\",w3t=\"[object Function]\",E3t=\"[object GeneratorFunction]\",A3t=\"[object HTMLAllCollection]\",S3t=\"[object HTML document.all class]\",C3t=\"[object HTMLCollection]\",T3t=typeof Symbol==\"function\"&&!!Symbol.toStringTag,_3t=!(0 in[,]),Aee=function(){return!1};typeof document==\"object\"&&($Ze=document.all,WH.call($Ze)===WH.call(document.all)&&(Aee=function(t){if((_3t||!t)&&(typeof t>\"u\"||typeof t==\"object\"))try{var r=WH.call(t);return(r===A3t||r===S3t||r===C3t||r===v3t)&&t(\"\")==null}catch{}return!1}));var $Ze;GZe.exports=x3?function(t){if(Aee(t))return!0;if(!t||typeof t!=\"function\"&&typeof t!=\"object\")return!1;try{x3(t,null,wee)}catch(r){if(r!==KH)return!1}return!Eee(t)&&vee(t)}:function(t){if(Aee(t))return!0;if(!t||typeof t!=\"function\"&&typeof t!=\"object\")return!1;if(T3t)return vee(t);if(Eee(t))return!1;var r=WH.call(t);return r!==w3t&&r!==E3t&&!/^\\\\[object HTML/.test(r)?!1:vee(t)}});var QZe=X((KKn,WZe)=>{\"use strict\";c();var k3t=VZe(),B3t=Object.prototype.toString,KZe=Object.prototype.hasOwnProperty,I3t=function(t,r,n){for(var o=0,s=t.length;o<s;o++)KZe.call(t,o)&&(n==null?r(t[o],o,t):r.call(n,t[o],o,t))},P3t=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)},R3t=function(t,r,n){for(var o in t)KZe.call(t,o)&&(n==null?r(t[o],o,t):r.call(n,t[o],o,t))};function M3t(e){return B3t.call(e)===\"[object Array]\"}WZe.exports=function(t,r,n){if(!k3t(r))throw new TypeError(\"iterator must be a function\");var o;arguments.length>=3&&(o=n),M3t(t)?I3t(t,r,o):typeof t==\"string\"?P3t(t,r,o):R3t(t,r,o)}});var JZe=X((QKn,ZZe)=>{\"use strict\";c();ZZe.exports=[\"Float16Array\",\"Float32Array\",\"Float64Array\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"BigInt64Array\",\"BigUint64Array\"]});var XZe=X((JKn,YZe)=>{\"use strict\";c();var See=JZe(),O3t=globalThis;YZe.exports=function(){for(var t=[],r=0;r<See.length;r++)typeof O3t[See[r]]==\"function\"&&(t[t.length]=See[r]);return t}});var nJe=X((XKn,rJe)=>{\"use strict\";c();var eJe=r4(),N3t=uee(),v3=d3(),tJe=p3();rJe.exports=function(t,r,n){if(!t||typeof t!=\"object\"&&typeof t!=\"function\")throw new v3(\"`obj` must be an object or a function`\");if(typeof r!=\"string\"&&typeof r!=\"symbol\")throw new v3(\"`property` must be a string or a symbol`\");if(arguments.length>3&&typeof arguments[3]!=\"boolean\"&&arguments[3]!==null)throw new v3(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&typeof arguments[4]!=\"boolean\"&&arguments[4]!==null)throw new v3(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&typeof arguments[5]!=\"boolean\"&&arguments[5]!==null)throw new v3(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&typeof arguments[6]!=\"boolean\")throw new v3(\"`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=!!tJe&&tJe(t,r);if(eJe)eJe(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 N3t(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\")}});var iJe=X((tWn,aJe)=>{\"use strict\";c();var Cee=r4(),oJe=function(){return!!Cee};oJe.hasArrayLengthDefineBug=function(){if(!Cee)return null;try{return Cee([],\"length\",{value:1}).length!==1}catch{return!0}};aJe.exports=oJe});var fJe=X((nWn,lJe)=>{\"use strict\";c();var U3t=gee(),sJe=nJe(),D3t=iJe()(),cJe=p3(),uJe=d3(),H3t=U3t(\"%Math.floor%\");lJe.exports=function(t,r){if(typeof t!=\"function\")throw new uJe(\"`fn` is not a function\");if(typeof r!=\"number\"||r<0||r>4294967295||H3t(r)!==r)throw new uJe(\"`length` must be a positive 32-bit integer\");var n=arguments.length>2&&!!arguments[2],o=!0,s=!0;if(\"length\"in t&&cJe){var u=cJe(t,\"length\");u&&!u.configurable&&(o=!1),u&&!u.writable&&(s=!1)}return(o||s||!n)&&(D3t?sJe(t,\"length\",r,!0,!0):sJe(t,\"length\",r)),t}});var pJe=X((aWn,dJe)=>{\"use strict\";c();var L3t=m3(),F3t=$H(),z3t=pee();dJe.exports=function(){return z3t(L3t,F3t,arguments)}});var yJe=X((sWn,QH)=>{\"use strict\";c();var j3t=fJe(),mJe=r4(),$3t=qH(),hJe=pJe();QH.exports=function(t){var r=$3t(arguments),n=t.length-(arguments.length-1);return j3t(r,1+(n>0?n:0),!0)};mJe?mJe(QH.exports,\"apply\",{value:hJe}):QH.exports.apply=hJe});var gJe=X((uWn,bJe)=>{\"use strict\";c();var q3t=lee();bJe.exports=function(){return q3t()&&!!Symbol.toStringTag}});var AJe=X((fWn,EJe)=>{\"use strict\";c();var YH=QZe(),G3t=XZe(),xJe=yJe(),_ee=xee(),JH=p3(),ZH=hee(),V3t=_ee(\"Object.prototype.toString\"),wJe=gJe()(),vJe=globalThis,Tee=G3t(),kee=_ee(\"String.prototype.slice\"),K3t=_ee(\"Array.prototype.indexOf\",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},XH={__proto__:null};wJe&&JH&&ZH?YH(Tee,function(e){var t=new vJe[e];if(Symbol.toStringTag in t&&ZH){var r=ZH(t),n=JH(r,Symbol.toStringTag);if(!n&&r){var o=ZH(r);n=JH(o,Symbol.toStringTag)}XH[\"$\"+e]=xJe(n.get)}}):YH(Tee,function(e){var t=new vJe[e],r=t.slice||t.set;r&&(XH[\"$\"+e]=xJe(r))});var W3t=function(t){var r=!1;return YH(XH,function(n,o){if(!r)try{\"$\"+n(t)===o&&(r=kee(o,1))}catch{}}),r},Q3t=function(t){var r=!1;return YH(XH,function(n,o){if(!r)try{n(t),r=kee(o,1)}catch{}}),r};EJe.exports=function(t){if(!t||typeof t!=\"object\")return!1;if(!wJe){var r=kee(V3t(t),8,-1);return K3t(Tee,r)>-1?r:r!==\"Object\"?!1:Q3t(t)}return JH?W3t(t):null}});var CJe=X((pWn,SJe)=>{\"use strict\";c();var Z3t=AJe();SJe.exports=function(t){return!!Z3t(t)}});var _Je=X((hWn,TJe)=>{\"use strict\";c();var J3t=d3(),Y3t=xee(),X3t=Y3t(\"TypedArray.prototype.buffer\",!0),e8t=CJe();TJe.exports=X3t||function(t){if(!e8t(t))throw new J3t(\"Not a Typed Array\");return t.buffer}});var IJe=X((bWn,BJe)=>{\"use strict\";c();var rf=Xd().Buffer,t8t=TQe(),r8t=_Je(),n8t=ArrayBuffer.isView||function(t){try{return r8t(t),!0}catch{return!1}},o8t=typeof Uint8Array<\"u\",kJe=typeof ArrayBuffer<\"u\"&&typeof Uint8Array<\"u\",a8t=kJe&&(rf.prototype instanceof Uint8Array||rf.TYPED_ARRAY_SUPPORT);BJe.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(kJe&&n8t(t)){if(t.byteLength===0)return rf.alloc(0);if(a8t){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(o8t&&t instanceof Uint8Array)return rf.from(t);var u=t8t(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((xWn,PJe)=>{\"use strict\";c();var i8t=Xd().Buffer,s8t=IJe();function eL(e,t){this._block=i8t.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}eL.prototype.update=function(e,t){e=s8t(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),p=0;p<d;p++)r[f+p]=e[u+p];s+=d,u+=d,s%n===0&&this._update(r)}return this._len+=o,this};eL.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};eL.prototype._update=function(){throw new Error(\"_update must be implemented by subclass\")};PJe.exports=eL});var OJe=X((wWn,MJe)=>{\"use strict\";c();var c8t=Wu(),RJe=Hx(),u8t=Xd().Buffer,l8t=[1518500249,1859775393,-1894007588,-899497514],f8t=new Array(80);function i4(){this.init(),this._w=f8t,RJe.call(this,64,56)}c8t(i4,RJe);i4.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function d8t(e){return e<<5|e>>>27}function p8t(e){return e<<30|e>>>2}function m8t(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}i4.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 p=~~(d/20),h=d8t(r)+m8t(p,n,o,s)+u+t[d]+l8t[p]|0;u=s,s=o,o=p8t(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};i4.prototype._hash=function(){var e=u8t.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};MJe.exports=i4});var DJe=X((AWn,UJe)=>{\"use strict\";c();var h8t=Wu(),NJe=Hx(),y8t=Xd().Buffer,b8t=[1518500249,1859775393,-1894007588,-899497514],g8t=new Array(80);function s4(){this.init(),this._w=g8t,NJe.call(this,64,56)}h8t(s4,NJe);s4.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function x8t(e){return e<<1|e>>>31}function v8t(e){return e<<5|e>>>27}function w8t(e){return e<<30|e>>>2}function E8t(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}s4.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]=x8t(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var d=0;d<80;++d){var p=~~(d/20),h=v8t(r)+E8t(p,n,o,s)+u+t[d]+b8t[p]|0;u=s,s=o,o=w8t(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};s4.prototype._hash=function(){var e=y8t.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};UJe.exports=s4});var Bee=X((CWn,LJe)=>{\"use strict\";c();var A8t=Wu(),HJe=Hx(),S8t=Xd().Buffer,C8t=[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],T8t=new Array(64);function c4(){this.init(),this._w=T8t,HJe.call(this,64,56)}A8t(c4,HJe);c4.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 _8t(e,t,r){return r^e&(t^r)}function k8t(e,t,r){return e&t|r&(e|t)}function B8t(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function I8t(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function P8t(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function R8t(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}c4.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,p=this._h|0,h=0;h<16;++h)t[h]=e.readInt32BE(h*4);for(;h<64;++h)t[h]=R8t(t[h-2])+t[h-7]+P8t(t[h-15])+t[h-16]|0;for(var y=0;y<64;++y){var v=p+I8t(u)+_8t(u,f,d)+C8t[y]+t[y]|0,E=B8t(r)+k8t(r,n,o)|0;p=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=p+this._h|0};c4.prototype._hash=function(){var e=S8t.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};LJe.exports=c4});var zJe=X((_Wn,FJe)=>{\"use strict\";c();var M8t=Wu(),O8t=Bee(),N8t=Hx(),U8t=Xd().Buffer,D8t=new Array(64);function tL(){this.init(),this._w=D8t,N8t.call(this,64,56)}M8t(tL,O8t);tL.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};tL.prototype._hash=function(){var e=U8t.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};FJe.exports=tL});var Iee=X((BWn,WJe)=>{\"use strict\";c();var H8t=Wu(),KJe=Hx(),L8t=Xd().Buffer,jJe=[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],F8t=new Array(160);function u4(){this.init(),this._w=F8t,KJe.call(this,128,112)}H8t(u4,KJe);u4.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 $Je(e,t,r){return r^e&(t^r)}function qJe(e,t,r){return e&t|r&(e|t)}function GJe(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function VJe(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function z8t(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function j8t(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function $8t(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function q8t(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}u4.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,p=this._hh|0,h=this._al|0,y=this._bl|0,v=this._cl|0,E=this._dl|0,C=this._el|0,k=this._fl|0,P=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=z8t(O,N),K=j8t(N,O);O=t[U-4],N=t[U-4+1];var G=$8t(O,N),J=q8t(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 R=qJe(r,n,o),D=qJe(h,y,v),L=GJe(r,h),V=GJe(h,r),Q=VJe(u,C),F=VJe(C,u),I=jJe[T],Z=jJe[T+1],me=$Je(u,f,d),ge=$Je(C,k,P),Se=M+F|0,Ce=p+Q+Pa(Se,M)|0;Se=Se+ge|0,Ce=Ce+me+Pa(Se,ge)|0,Se=Se+Z|0,Ce=Ce+I+Pa(Se,Z)|0,Se=Se+H|0,Ce=Ce+A+Pa(Se,H)|0;var qe=V+D|0,je=L+R+Pa(qe,V)|0;p=d,M=P,d=f,P=k,f=u,k=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+qe|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+k|0,this._gl=this._gl+P|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,k)|0,this._gh=this._gh+d+Pa(this._gl,P)|0,this._hh=this._hh+p+Pa(this._hl,M)|0};u4.prototype._hash=function(){var e=L8t.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};WJe.exports=u4});var ZJe=X((PWn,QJe)=>{\"use strict\";c();var G8t=Wu(),V8t=Iee(),K8t=Hx(),W8t=Xd().Buffer,Q8t=new Array(160);function rL(){this.init(),this._w=Q8t,K8t.call(this,128,112)}G8t(rL,V8t);rL.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};rL.prototype._hash=function(){var e=W8t.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};QJe.exports=rL});var JJe=X((MWn,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=OJe();dh.exports.sha1=DJe();dh.exports.sha224=zJe();dh.exports.sha256=Bee();dh.exports.sha384=ZJe();dh.exports.sha512=Iee()});var oL=X(nL=>{\"use strict\";c();Object.defineProperty(nL,\"__esModule\",{value:!0});nL.Session=void 0;var YJe=JJe(),XJe=Zd(),eYe=\"session:id\",tYe=\"session:secret\",rYe=\"session:linked\",Pee=class e{constructor(t,r,n,o){this._storage=t,this._id=r||(0,XJe.randomBytesHex)(16),this._secret=n||(0,XJe.randomBytesHex)(32),this._key=new YJe.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest(\"hex\"),this._linked=!!o}static load(t){let r=t.getItem(eYe),n=t.getItem(rYe),o=t.getItem(tYe);return r&&o?new e(t,r,o,n===\"1\"):null}static hash(t){return new YJe.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(eYe,this._id),this._storage.setItem(tYe,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(rYe,this._linked?\"1\":\"0\")}};nL.Session=Pee});var nYe=X(iL=>{\"use strict\";c();Object.defineProperty(iL,\"__esModule\",{value:!0});iL.Cipher=void 0;var aL=Zd(),Ree=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,aL.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),p=u.slice(0,u.byteLength-f),h=new Uint8Array(d),y=new Uint8Array(p),v=new Uint8Array([...n,...h,...y]);return(0,aL.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,aL.hexStringToUint8Array)(r),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),u=(0,aL.hexStringToUint8Array)(t),f=u.slice(0,12),d=u.slice(12,28),p=u.slice(28),h=new Uint8Array([...p,...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)}})()})}};iL.Cipher=Ree});var oYe=X(sL=>{\"use strict\";c();Object.defineProperty(sL,\"__esModule\",{value:!0});sL.WalletLinkHTTP=void 0;var Mee=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}`)}};sL.WalletLinkHTTP=Mee});var aYe=X(E3=>{\"use strict\";c();Object.defineProperty(E3,\"__esModule\",{value:!0});E3.WalletLinkWebSocket=E3.ConnectionState=void 0;var w3;(function(e){e[e.DISCONNECTED=0]=\"DISCONNECTED\",e[e.CONNECTING=1]=\"CONNECTING\",e[e.CONNECTED=2]=\"CONNECTED\"})(w3||(E3.ConnectionState=w3={}));var Oee=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,w3.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,w3.DISCONNECTED)},o.onopen=s=>{var u;t(),(u=this.connectionStateListener)===null||u===void 0||u.call(this,w3.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,w3.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)}};E3.WalletLinkWebSocket=Oee});var cYe=X(uL=>{\"use strict\";c();Object.defineProperty(uL,\"__esModule\",{value:!0});uL.WalletLinkConnection=void 0;var A3=Y_(),Z8t=nYe(),ep=DH(),iYe=HH(),S3=oL(),J8t=oYe(),cL=aYe(),sYe=1e4,Y8t=6e4,Nee=class{constructor({session:t,linkAPIUrl:r,listener:n,diagnostic:o,WebSocketClass:s=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,A3.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\",p=>f.JsonRpcUrl&&this.handleChainUpdated(p,f.JsonRpcUrl)]]).forEach((p,h)=>{let y=f[h];y!==void 0&&p(y)})},this.handleDestroyed=f=>{var d,p;f===\"1\"&&((d=this.listener)===null||d===void 0||d.resetAndReload(),(p=this.diagnostic)===null||p===void 0||p.log(ep.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:S3.Session.hash(this.session.id)}))},this.handleAccountUpdated=async f=>{var d,p;try{let h=await this.cipher.decrypt(f);(d=this.listener)===null||d===void 0||d.accountUpdated(h)}catch{(p=this.diagnostic)===null||p===void 0||p.log(ep.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:\"selectedAddress\"})}},this.handleMetadataUpdated=async(f,d)=>{var p,h;try{let y=await this.cipher.decrypt(d);(p=this.listener)===null||p===void 0||p.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(iYe.WALLET_USER_NAME_KEY,f)},this.handleAppVersionUpdated=async f=>{this.handleMetadataUpdated(iYe.APP_VERSION_KEY,f)},this.handleChainUpdated=async(f,d)=>{var p,h;try{let y=await this.cipher.decrypt(f),v=await this.cipher.decrypt(d);(p=this.listener)===null||p===void 0||p.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 Z8t.Cipher(t.secret),this.diagnostic=o,this.listener=n;let u=new cL.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:S3.Session.hash(t.id)});let p=!1;switch(f){case cL.ConnectionState.DISCONNECTED:if(!this.destroyed){let h=async()=>{await new Promise(y=>setTimeout(y,5e3)),this.destroyed||u.connect().catch(()=>{h()})};h()}break;case cL.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),p=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},sYe),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case cL.ConnectionState.CONNECTING:break}this.connected!==p&&(this.connected=p)}),u.setIncomingDataListener(f=>{var d,p,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:S3.Session.hash(t.id),linked:y,type:f.type,onlineGuests:f.onlineGuests}),this.linked=y||f.onlineGuests>0;break}case\"GetSessionConfigOK\":case\"SessionConfigUpdated\":{(p=this.diagnostic)===null||p===void 0||p.log(ep.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:S3.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 J8t.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:S3.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:S3.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,A3.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,A3.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>sYe*2){this.ws.disconnect();return}try{this.ws.sendData(\"h\")}catch{}}async makeRequest(t,r=Y8t){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,A3.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,A3.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}sendGetSessionConfig(){let t={type:\"GetSessionConfig\",id:(0,A3.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}};uL.WalletLinkConnection=Nee});var uYe=X(Uee=>{\"use strict\";c();Object.defineProperty(Uee,\"__esModule\",{value:!0});Uee.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 Dee=X(C3=>{\"use strict\";c();var X8t=C3&&C3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(C3,\"__esModule\",{value:!0});C3.injectCssReset=void 0;var eAt=X8t(uYe());function tAt(){let e=document.createElement(\"style\");e.type=\"text/css\",e.appendChild(document.createTextNode(eAt.default)),document.documentElement.appendChild(e)}C3.injectCssReset=tAt});var fs={};Wn(fs,{Component:()=>d4,Fragment:()=>h4,cloneElement:()=>uAt,createContext:()=>lAt,createElement:()=>xYe,createRef:()=>nAt,h:()=>xYe,hydrate:()=>kYe,isValidElement:()=>mYe,options:()=>kn,render:()=>_Ye,toChildArray:()=>AYe});function tp(e,t){for(var r in t)e[r]=t[r];return e}function qee(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function xYe(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?p4.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 f4(e,u,n,o,null)}function f4(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??++pYe,__i:-1,__u:0};return o==null&&kn.vnode!=null&&kn.vnode(s),s}function nAt(){return{current:null}}function h4(e){return e.children}function d4(e,t){this.props=e,this.context=t}function T3(e,t){if(t==null)return e.__?T3(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\"?T3(e):null}function oAt(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),Gee(e.__P,s,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,r??T3(t),!!(32&t.__u),o),s.__v=t.__v,s.__.__k[s.__i]=s,SYe(n,s,o),t.__e=t.__=null,s.__e!=r&&vYe(s)}}function vYe(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}),vYe(e)}function zee(e){(!e.__d&&(e.__d=!0)&&cb.push(e)&&!mL.__r++||lYe!=kn.debounceRendering)&&((lYe=kn.debounceRendering)||hYe)(mL)}function mL(){try{for(var e,t=1;cb.length;)cb.length>t&&cb.sort(yYe),e=cb.shift(),t=cb.length,oAt(e)}finally{cb.length=mL.__r=0}}function wYe(e,t,r,n,o,s,u,f,d,p,h){var y,v,E,C,k,P,M,U=n&&n.__k||pL,O=t.length;for(d=aAt(r,t,U,d,O),y=0;y<O;y++)(E=r.__k[y])!=null&&(v=E.__i!=-1&&U[E.__i]||dL,E.__i=y,P=Gee(e,E,v,o,s,u,f,d,p,h),C=E.__e,E.ref&&v.ref!=E.ref&&(v.ref&&Vee(v.ref,null,E),h.push(E.ref,E.__c||C,E)),k==null&&C!=null&&(k=C),(M=!!(4&E.__u))||v.__k===E.__k?(d=EYe(E,d,e,M),M&&v.__e&&(v.__e=null)):typeof E.type==\"function\"&&P!==void 0?d=P:C&&(d=C.nextSibling),E.__u&=-7);return r.__e=k,d}function aAt(e,t,r,n,o){var s,u,f,d,p,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]=f4(null,u,null,null,null):m4(u)?u=e.__k[s]=f4(h4,{children:u},null,null,null):u.constructor===void 0&&u.__b>0?u=e.__k[s]=f4(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,(p=u.__i=iAt(u,r,d,y))!=-1&&(y--,(f=r[p])&&(f.__u|=2)),f==null||f.__v==null?(p==-1&&(o>h?v--:o<h&&v++),typeof u.type!=\"function\"&&(u.__u|=4)):p!=d&&(p==d-1?v--:p==d+1?v++:(p>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=T3(f)),TYe(f,f));return n}function EYe(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=EYe(o[s],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=T3(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\"||(m4(e)?e.some(function(r){AYe(r,t)}):t.push(e)),t}function iAt(e,t,r,n){var o,s,u,f=e.key,d=e.type,p=t[r],h=p!=null&&(2&p.__u)==0;if(p===null&&f==null||h&&f==p.key&&d==p.type)return r;if(n>(h?1:0)){for(o=r-1,s=r+1;o>=0||s<t.length;)if((p=t[u=o>=0?o--:s++])!=null&&(2&p.__u)==0&&f==p.key&&d==p.type)return u}return-1}function fYe(e,t,r){t[0]==\"-\"?e.setProperty(t,r??\"\"):e[t]=r==null?\"\":typeof r!=\"number\"||rAt.test(t)?r:r+\"px\"}function lL(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||fYe(e.style,t,\"\");if(r)for(t in r)n&&r[t]==n[t]||fYe(e.style,t,r[t])}else if(t[0]==\"o\"&&t[1]==\"n\")s=t!=(t=t.replace(bYe,\"$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[l4]=n[l4]:(r[l4]=$ee,e.addEventListener(t,s?Fee:Lee,s)):e.removeEventListener(t,s?Fee:Lee,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 dYe(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[fL]==null)t[fL]=$ee++;else if(t[fL]<r[l4])return;return r(kn.event?kn.event(t):t)}}}function Gee(e,t,r,n,o,s,u,f,d,p){var h,y,v,E,C,k,P,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?P=(y=t.__c=r.__c).__=y.__E:(U?t.__c=y=new Y(M,N):(t.__c=y=new d4(M,N),y.constructor=Y,y.render=cAt),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)}),pL.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,k)})}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),pL.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&&(k=y.getSnapshotBeforeUpdate(E,C)),G=h!=null&&h.type===h4&&h.key==null?CYe(h.props.children):h,f=wYe(e,m4(G)?G:[G],t,r,n,o,s,u,f,d,p),y.base=t.__e,t.__u&=-161,y.__h.length&&u.push(y),P&&(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--;)qee(s[J]);jee(t)}else t.__e=r.__e,t.__k=r.__k,W.then||jee(t);kn.__e(W,t,r)}else s==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):f=t.__e=sAt(r.__e,t,r,n,o,s,u,d,p);return(h=kn.diffed)&&h(t),128&t.__u?void 0:f}function jee(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(jee))}function SYe(e,t,r){for(var n=0;n<r.length;n++)Vee(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 CYe(e){return typeof e!=\"object\"||e==null||e.__b>0?e:m4(e)?e.map(CYe):tp({},e)}function sAt(e,t,r,n,o,s,u,f,d){var p,h,y,v,E,C,k,P=r.props||dL,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(p=0;p<s.length;p++)if((E=s[p])&&\"setAttribute\"in E==!!U&&(U?E.localName==U:E.nodeType==3)){e=E,s[p]=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)P===M||f&&e.data==M||(e.data=M);else{if(s=s&&p4.call(e.childNodes),!f&&s!=null)for(P={},p=0;p<e.attributes.length;p++)P[(E=e.attributes[p]).name]=E.value;for(p in P)E=P[p],p==\"dangerouslySetInnerHTML\"?y=E:p==\"children\"||p in M||p==\"value\"&&\"defaultValue\"in M||p==\"checked\"&&\"defaultChecked\"in M||lL(e,p,null,E,o);for(p in M)E=M[p],p==\"children\"?v=E:p==\"dangerouslySetInnerHTML\"?h=E:p==\"value\"?C=E:p==\"checked\"?k=E:f&&typeof E!=\"function\"||P[p]===E||lL(e,p,E,P[p],o);if(h)f||y&&(h.__html==y.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(y&&(e.innerHTML=\"\"),wYe(t.type==\"template\"?e.content:e,m4(v)?v:[v],t,r,n,U==\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":o,s,u,s?s[0]:r.__k&&T3(r,0),f,d),s!=null)for(p=s.length;p--;)qee(s[p]);f||(p=\"value\",U==\"progress\"&&C==null?e.removeAttribute(\"value\"):C!=null&&(C!==e[p]||U==\"progress\"&&!C||U==\"option\"&&C!=P[p])&&lL(e,p,C,P[p],o),p=\"checked\",k!=null&&k!=e[p]&&lL(e,p,k,P[p],o))}return e}function Vee(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 TYe(e,t,r){var n,o;if(kn.unmount&&kn.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||Vee(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]&&TYe(n[o],t,r||typeof e.type!=\"function\");r||qee(e.__e),e.__c=e.__=e.__e=void 0}function cAt(e,t,r){return this.constructor(e,r)}function _Ye(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=[],Gee(t,e=(!n&&r||t).__k=xYe(h4,null,[e]),o||dL,dL,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?p4.call(t.childNodes):null,s,!n&&r?r:o?o.__e:t.firstChild,n,u),SYe(s,e,u)}function kYe(e,t){_Ye(e,t,kYe)}function uAt(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?p4.call(arguments,2):r),f4(e.type,f,n||e.key,o||e.ref,null)}function lAt(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,zee(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\"+gYe++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var p4,kn,pYe,mYe,cb,lYe,hYe,yYe,Hee,fL,l4,bYe,$ee,Lee,Fee,gYe,dL,pL,rAt,m4,Ti=x(()=>{c();dL={},pL=[],rAt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m4=Array.isArray;p4=pL.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}},pYe=0,mYe=function(e){return e!=null&&e.constructor===void 0},d4.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),zee(this))},d4.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),zee(this))},d4.prototype.render=h4,cb=[],hYe=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,yYe=function(e,t){return e.__v.__b-t.__v.__b},mL.__r=0,Hee=Math.random().toString(8),fL=\"__d\"+Hee,l4=\"__a\"+Hee,bYe=/(PointerCapture)$|Capture$/i,$ee=0,Lee=dYe(!1),Fee=dYe(!0),gYe=0});var y4={};Wn(y4,{useCallback:()=>mAt,useContext:()=>hAt,useDebugValue:()=>yAt,useEffect:()=>fAt,useErrorBoundary:()=>bAt,useId:()=>gAt,useImperativeHandle:()=>pAt,useLayoutEffect:()=>FYe,useMemo:()=>Qee,useReducer:()=>LYe,useRef:()=>dAt,useState:()=>HYe});function Lx(e,t){so.__h&&so.__h(Bn,e,_3||t),_3=0;var r=Bn.__H||(Bn.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function HYe(e){return _3=1,LYe(zYe,e)}function LYe(e,t,r){var n=Lx(ph++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):zYe(void 0,t),function(f){var d=n.__N?n.__N[0]:n.__[0],p=n.t(d,f);d!==p&&(n.__N=[p,n.__[1]],n.__c.setState({}))}],n.__c=Bn,!Bn.__f)){var o=function(f,d,p){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,p);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,p)||y};Bn.__f=!0;var s=Bn.shouldComponentUpdate,u=Bn.componentWillUpdate;Bn.componentWillUpdate=function(f,d,p){if(this.__e){var h=s;s=void 0,o(f,d,p),s=h}u&&u.call(this,f,d,p)},Bn.shouldComponentUpdate=o}return n.__N||n.__}function fAt(e,t){var r=Lx(ph++,3);!so.__s&&Zee(r.__H,t)&&(r.__=e,r.u=t,Bn.__H.__h.push(r))}function FYe(e,t){var r=Lx(ph++,4);!so.__s&&Zee(r.__H,t)&&(r.__=e,r.u=t,Bn.__h.push(r))}function dAt(e){return _3=5,Qee(function(){return{current:e}},[])}function pAt(e,t,r){_3=6,FYe(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 Qee(e,t){var r=Lx(ph++,7);return Zee(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function mAt(e,t){return _3=8,Qee(function(){return e},t)}function hAt(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 yAt(e,t){so.useDebugValue&&so.useDebugValue(t?t(e):e)}function bAt(e){var t=Lx(ph++,10),r=HYe();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 gAt(){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 xAt(){for(var e;e=DYe.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(hL),t.__h.some(Wee),t.__h=[]}catch(r){t.__h=[],so.__e(r,e.__v)}}}function vAt(e){var t,r=function(){clearTimeout(n),UYe&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);UYe&&(t=requestAnimationFrame(r))}function hL(e){var t=Bn,r=e.__c;typeof r==\"function\"&&(e.__c=void 0,r()),Bn=t}function Wee(e){var t=Bn;e.__c=e.__(),Bn=t}function Zee(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function zYe(e,t){return typeof t==\"function\"?t(e):t}var ph,Bn,Kee,BYe,_3,DYe,so,IYe,PYe,RYe,MYe,OYe,NYe,UYe,b4=x(()=>{c();Ti();_3=0,DYe=[],so=kn,IYe=so.__b,PYe=so.__r,RYe=so.diffed,MYe=so.__c,OYe=so.unmount,NYe=so.__;so.__b=function(e){Bn=null,IYe&&IYe(e)},so.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),NYe&&NYe(e,t)},so.__r=function(e){PYe&&PYe(e),ph=0;var t=(Bn=e.__c).__H;t&&(Kee===Bn?(t.__h=[],Bn.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.some(hL),t.__h.some(Wee),t.__h=[],ph=0)),Kee=Bn},so.diffed=function(e){RYe&&RYe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(DYe.push(t)!==1&&BYe===so.requestAnimationFrame||((BYe=so.requestAnimationFrame)||vAt)(xAt)),t.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Kee=Bn=null},so.__c=function(e,t){t.some(function(r){try{r.__h.some(hL),r.__h=r.__h.filter(function(n){return!n.__||Wee(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],so.__e(n,r.__v)}}),MYe&&MYe(e,t)},so.unmount=function(e){OYe&&OYe(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{hL(n)}catch(o){t=o}}),r.__H=void 0,t&&so.__e(t,r.__v))};UYe=typeof requestAnimationFrame==\"function\"});var $Ye=X(yL=>{\"use strict\";c();Object.defineProperty(yL,\"__esModule\",{value:!0});yL.CloseIcon=void 0;var jYe=(Ti(),Kr(fs));function wAt(e){return(0,jYe.h)(\"svg\",Object.assign({width:\"40\",height:\"40\",viewBox:\"0 0 40 40\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,jYe.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\"}))}yL.CloseIcon=wAt});var qYe=X(gL=>{\"use strict\";c();Object.defineProperty(gL,\"__esModule\",{value:!0});gL.CoinbaseWalletRound=void 0;var bL=(Ti(),Kr(fs));function EAt(e){return(0,bL.h)(\"svg\",Object.assign({width:\"28\",height:\"28\",viewBox:\"0 0 28 28\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,bL.h)(\"circle\",{cx:\"14\",cy:\"14\",r:\"14\",fill:\"#0052FF\"}),(0,bL.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,bL.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\"}))}gL.CoinbaseWalletRound=EAt});var GYe=X(xL=>{\"use strict\";c();Object.defineProperty(xL,\"__esModule\",{value:!0});xL.QRCodeIcon=void 0;var g4=(Ti(),Kr(fs));function AAt(e){return(0,g4.h)(\"svg\",Object.assign({width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,g4.h)(\"path\",{d:\"M3 3V8.99939L5 8.99996V5H9V3H3Z\"}),(0,g4.h)(\"path\",{d:\"M15 21L21 21V15.0006L19 15V19L15 19V21Z\"}),(0,g4.h)(\"path\",{d:\"M21 9H19V5H15.0006L15 3H21V9Z\"}),(0,g4.h)(\"path\",{d:\"M3 15V21H8.99939L8.99996 19H5L5 15H3Z\"}))}xL.QRCodeIcon=AAt});var ZYe=X((oQn,QYe)=>{c();function VYe(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))}VYe.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 VYe(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,p=this.modules[s][f];p&&(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 p=co.getMask(t,n,u-f);p&&(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 KYe,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,p=t[f].totalCount-d;n=Math.max(n,d),o=Math.max(o,p),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(p),v=new k3(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 k=0,h=0;h<t.length;h++)k+=t[h].totalCount;for(var P=new Array(k),M=0,h=0;h<n;h++)for(var f=0;f<t.length;f++)h<s[f].length&&(P[M++]=s[f][h]);for(var h=0;h<o;h++)for(var f=0;f<t.length;f++)h<u[f].length&&(P[M++]=u[f][h]);return P};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 k3([1],0),r=0;r<e;r++)t=t.multiply(new k3([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 p=0;e.isDark(n,o)&&p++,e.isDark(n+1,o)&&p++,e.isDark(n,o+1)&&p++,e.isDark(n+1,o+1)&&p++,(p==0||p==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 k3(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]}k3.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 k3(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 k3(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],p=0;p<u;p++)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 KYe(){this.buffer=[],this.length=0}KYe.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 WYe(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(p){switch(p){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: \"+p)}}function o(p,h){for(var y=s(p),v=1,E=0,C=0,k=Jee.length;C<=k;C++){var P=Jee[C];if(!P)throw new Error(\"Content too long: expected \"+E+\" but got \"+y);switch(h){case\"L\":E=P[0];break;case\"M\":E=P[1];break;case\"Q\":E=P[2];break;case\"H\":E=P[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(p){var h=encodeURI(p).toString().replace(/\\\\%[0-9a-fA-F]{2}/g,\"a\");return h.length+(h.length!=p?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()}WYe.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,p=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,k=C?o+\\'<defs><path id=\"qrmodule\" d=\"M0 0 h\\'+h+\" v\"+p+\\' H0 z\" style=\"fill:\\'+t.color+\\';shape-rendering:crispEdges;\" /></defs>\\'+s:\"\",P=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*p+t.padding*p,G=O*h+t.padding*h;if(v){var J=K;K=G,G=J}if(y){var Y=p+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=\"\\'+p+\\'\" 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,R=f/2-A/2;ie+=`<svg x=\"${T}\" y=\"${R}\" 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+=k+P+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+=k+P+M,re+=ie,re+=\"</svg>\";break;case\"g\":re+=\\'<g width=\"\\'+u+\\'\" height=\"\\'+f+\\'\">\\'+s,re+=k+P+M,re+=ie,re+=\"</g>\";break;default:re+=(k+P+M+ie).replace(/^\\\\s+/,\"\");break}return re};QYe.exports=WYe});var YYe=X(B3=>{\"use strict\";c();var SAt=B3&&B3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(B3,\"__esModule\",{value:!0});B3.QRCode=void 0;var CAt=(Ti(),Kr(fs)),JYe=(b4(),Kr(y4)),TAt=SAt(ZYe()),_At=e=>{let[t,r]=(0,JYe.useState)(\"\");return(0,JYe.useEffect)(()=>{var n,o;let s=new TAt.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,CAt.h)(\"img\",{src:t,alt:\"QR Code\"}):null};B3.QRCode=_At});var XYe=X(Yee=>{\"use strict\";c();Object.defineProperty(Yee,\"__esModule\",{value:!0});Yee.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 eXe=X(I3=>{\"use strict\";c();var kAt=I3&&I3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I3,\"__esModule\",{value:!0});I3.Spinner=void 0;var vL=(Ti(),Kr(fs)),BAt=kAt(XYe()),IAt=e=>{var t;let r=(t=e.size)!==null&&t!==void 0?t:64,n=e.color||\"#000\";return(0,vL.h)(\"div\",{class:\"-cbwsdk-spinner\"},(0,vL.h)(\"style\",null,BAt.default),(0,vL.h)(\"svg\",{viewBox:\"0 0 100 100\",xmlns:\"http://www.w3.org/2000/svg\",style:{width:r,height:r}},(0,vL.h)(\"circle\",{style:{cx:50,cy:50,r:45,stroke:n}})))};I3.Spinner=IAt});var tXe=X(Xee=>{\"use strict\";c();Object.defineProperty(Xee,\"__esModule\",{value:!0});Xee.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 oXe=X(fb=>{\"use strict\";c();var rXe=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 Fx=rXe((Zy(),Kr(dE))),_r=(Ti(),Kr(fs)),PAt=Zd(),RAt=PH(),MAt=$Ye(),OAt=qYe(),NAt=GYe(),UAt=YYe(),DAt=eXe(),HAt=rXe(tXe()),ete={title:\"Coinbase Wallet app\",description:\"Connect with your self-custody wallet\",steps:nXe},LAt=e=>e===\"light\"?\"#FFFFFF\":\"#0A0B0D\";function FAt(e){let{theme:t}=e,r=(0,PAt.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId),n=ete.steps;return(0,_r.h)(\"div\",{\"data-testid\":\"connect-content\",className:(0,Fx.default)(\"-cbwsdk-connect-content\",t)},(0,_r.h)(\"style\",null,HAt.default),(0,_r.h)(\"div\",{className:\"-cbwsdk-connect-content-header\"},(0,_r.h)(\"h2\",{className:(0,Fx.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)(MAt.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)(zAt,{title:ete.title,description:ete.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)(UAt.QRCode,{content:r,width:200,height:200,fgColor:\"#000\",bgColor:\"transparent\"}),(0,_r.h)(\"input\",{type:\"hidden\",name:\"cbw-cbwsdk-version\",value:RAt.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,Fx.default)(\"-cbwsdk-connect-content-qr-connecting\",t)},(0,_r.h)(DAt.Spinner,{size:36,color:t===\"dark\"?\"#FFF\":\"#000\"}),(0,_r.h)(\"p\",null,\"Connecting...\")))))}fb.ConnectContent=FAt;function zAt({title:e,description:t,theme:r}){return(0,_r.h)(\"div\",{className:(0,Fx.default)(\"-cbwsdk-connect-item\",r)},(0,_r.h)(\"div\",null,(0,_r.h)(OAt.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 nXe({theme:e}){return(0,_r.h)(\"ol\",{className:\"-cbwsdk-wallet-steps\"},(0,_r.h)(\"li\",{className:(0,Fx.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,Fx.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,Fx.default)(\"-cbwsdk-wallet-steps-pad-left\",\"-cbwsdk-wallet-steps-icon\",e)},(0,_r.h)(NAt.QRCodeIcon,{fill:LAt(e)})))))}fb.CoinbaseWalletSteps=nXe});var iXe=X(wL=>{\"use strict\";c();Object.defineProperty(wL,\"__esModule\",{value:!0});wL.ArrowLeftIcon=void 0;var aXe=(Ti(),Kr(fs));function jAt(e){return(0,aXe.h)(\"svg\",Object.assign({width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,aXe.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\"}))}wL.ArrowLeftIcon=jAt});var sXe=X(EL=>{\"use strict\";c();Object.defineProperty(EL,\"__esModule\",{value:!0});EL.LaptopIcon=void 0;var tte=(Ti(),Kr(fs));function $At(e){return(0,tte.h)(\"svg\",Object.assign({width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,tte.h)(\"path\",{d:\"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z\"}),(0,tte.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\"}))}EL.LaptopIcon=$At});var uXe=X(AL=>{\"use strict\";c();Object.defineProperty(AL,\"__esModule\",{value:!0});AL.SafeIcon=void 0;var cXe=(Ti(),Kr(fs));function qAt(e){return(0,cXe.h)(\"svg\",Object.assign({width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,cXe.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\"}))}AL.SafeIcon=qAt});var lXe=X(rte=>{\"use strict\";c();Object.defineProperty(rte,\"__esModule\",{value:!0});rte.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 dXe=X(P3=>{\"use strict\";c();var fXe=P3&&P3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(P3,\"__esModule\",{value:!0});P3.TryExtensionContent=void 0;var zx=fXe((Zy(),Kr(dE))),ta=(Ti(),Kr(fs)),nte=(b4(),Kr(y4)),GAt=iXe(),VAt=sXe(),KAt=uXe(),WAt=fXe(lXe());function QAt({theme:e}){let[t,r]=(0,nte.useState)(!1),n=(0,nte.useCallback)(()=>{window.open(\"https://api.wallet.coinbase.com/rpc/v2/desktop/chrome\",\"_blank\")},[]),o=(0,nte.useCallback)(()=>{t?window.location.reload():(n(),r(!0))},[n,t]);return(0,ta.h)(\"div\",{class:(0,zx.default)(\"-cbwsdk-try-extension\",e)},(0,ta.h)(\"style\",null,WAt.default),(0,ta.h)(\"div\",{class:\"-cbwsdk-try-extension-column-half\"},(0,ta.h)(\"h3\",{class:(0,zx.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,zx.default)(\"-cbwsdk-try-extension-cta\",e),onClick:o},t?\"Refresh\":\"Install\"),(0,ta.h)(\"div\",null,!t&&(0,ta.h)(GAt.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,zx.default)(\"-cbwsdk-try-extension-list-item-icon\",e)},(0,ta.h)(VAt.LaptopIcon,{fill:e===\"light\"?\"#0A0B0D\":\"#FFFFFF\"}))),(0,ta.h)(\"div\",{class:(0,zx.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,zx.default)(\"-cbwsdk-try-extension-list-item-icon\",e)},(0,ta.h)(KAt.SafeIcon,{fill:e===\"light\"?\"#0A0B0D\":\"#FFFFFF\"}))),(0,ta.h)(\"div\",{class:(0,zx.default)(\"-cbwsdk-try-extension-list-item-copy\",e)},\"Add an additional layer of security by using a supported Ledger hardware wallet\")))))}P3.TryExtensionContent=QAt});var pXe=X(ote=>{\"use strict\";c();Object.defineProperty(ote,\"__esModule\",{value:!0});ote.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 hXe=X(R3=>{\"use strict\";c();var mXe=R3&&R3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R3,\"__esModule\",{value:!0});R3.ConnectDialog=void 0;var ate=mXe((Zy(),Kr(dE))),jx=(Ti(),Kr(fs)),ite=(b4(),Kr(y4)),ZAt=oXe(),JAt=dXe(),YAt=mXe(pXe()),XAt=e=>{let{isOpen:t,darkMode:r}=e,[n,o]=(0,ite.useState)(!t),[s,u]=(0,ite.useState)(!t);(0,ite.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,ate.default)(\"-cbwsdk-connect-dialog-container\",n&&\"-cbwsdk-connect-dialog-container-hidden\")},(0,jx.h)(\"style\",null,YAt.default),(0,jx.h)(\"div\",{class:(0,ate.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,ate.default)(\"-cbwsdk-connect-dialog-box\",s&&\"-cbwsdk-connect-dialog-box-hidden\")},e.connectDisabled?null:(0,jx.h)(ZAt.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)(JAt.TryExtensionContent,{theme:f}))))};R3.ConnectDialog=XAt});var yXe=X(SL=>{\"use strict\";c();Object.defineProperty(SL,\"__esModule\",{value:!0});SL.LinkFlow=void 0;var ste=(Ti(),Kr(fs)),eSt=hXe(),cte=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,ste.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,ste.render)((0,ste.h)(eSt.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)}};SL.LinkFlow=cte});var bXe=X(ute=>{\"use strict\";c();Object.defineProperty(ute,\"__esModule\",{value:!0});ute.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 dte=X(Qu=>{\"use strict\";c();var gXe=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 CL=gXe((Zy(),Kr(dE))),ra=(Ti(),Kr(fs)),lte=(b4(),Kr(y4)),tSt=gXe(bXe()),rSt=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+\",nSt=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=\",fte=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=fte;var oSt=e=>(0,ra.h)(\"div\",{class:(0,CL.default)(\"-cbwsdk-snackbar-container\")},(0,ra.h)(\"style\",null,tSt.default),(0,ra.h)(\"div\",{class:\"-cbwsdk-snackbar\"},e.children));Qu.SnackbarContainer=oSt;var aSt=({autoExpand:e,message:t,menuItems:r})=>{let[n,o]=(0,lte.useState)(!0),[s,u]=(0,lte.useState)(e??!1);(0,lte.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,CL.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:rSt,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:nSt,class:\"-gear-icon\",title:\"Expand\"}))),r&&r.length>0&&(0,ra.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-menu\"},r.map((d,p)=>(0,ra.h)(\"div\",{class:(0,CL.default)(\"-cbwsdk-snackbar-instance-menu-item\",d.isRed&&\"-cbwsdk-snackbar-instance-menu-item-is-red\"),onClick:d.onClick,key:p},(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,CL.default)(\"-cbwsdk-snackbar-instance-menu-item-info\",d.isRed&&\"-cbwsdk-snackbar-instance-menu-item-info-is-red\")},d.info)))))};Qu.SnackbarInstance=aSt});var mte=X(TL=>{\"use strict\";c();Object.defineProperty(TL,\"__esModule\",{value:!0});TL.WalletLinkRelayUI=void 0;var iSt=Dee(),sSt=yXe(),cSt=dte(),pte=class{constructor(t){this.standalone=null,this.attached=!1,this.snackbar=new cSt.Snackbar({darkMode:t.darkMode}),this.linkFlow=new sSt.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,iSt.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}};TL.WalletLinkRelayUI=pte});var hte=X(kL=>{\"use strict\";c();Object.defineProperty(kL,\"__esModule\",{value:!0});kL.WalletLinkRelay=void 0;var M3=Z_(),uSt=Y_(),uo=Zd(),$x=DH(),xXe=HH(),db=oL(),lSt=cYe(),qx=BH(),fSt=mte(),_L=class e extends xXe.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(xXe.LOCAL_STORAGE_ADDRESSES_KEY);if(u&&(this.session.linked=u),this.isUnlinkedErrorState=!1,d){let p=d.split(\" \"),h=this.storage.getItem(\"IsStandaloneSigning\")===\"true\";if(p[0]!==\"\"&&!u&&this.session.linked&&!h){this.isUnlinkedErrorState=!0;let y=this.getSessionIdHash();(f=this.diagnostic)===null||f===void 0||f.log($x.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 lSt.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($x.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($x.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($x.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,qx.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 fSt.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($x.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($x.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($x.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,M3.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,qx.isErrorResponse)(d))return f(new Error(d.errorMessage));u(d)}),this.ui.inlineAccountsResponse()){let d=p=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:n,response:{method:\"requestEthereumAccounts\",result:p}})};this.ui.requestEthereumAccounts({onCancel:o,onAccounts:d})}else{let d=M3.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,qx.isErrorResponse)(h))return f(new Error(h.errorMessage));u(h)});let d=h=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:n,response:{method:\"selectProvider\",result:uSt.ProviderType.Unselected}})},p=h=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:n,response:{method:\"selectProvider\",result:h}})};this.ui.selectProvider&&this.ui.selectProvider({onApprove:p,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,p=(0,uo.randomBytesHex)(8),h=v=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,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(p,P=>{if(d?.(),(0,qx.isErrorResponse)(P))return E(new Error(P.errorMessage));v(P)});let C=P=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:p,response:{method:\"watchAsset\",result:!1}})},k=()=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:p,response:{method:\"watchAsset\",result:!0}})};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:k,onCancel:C,type:t,address:r,symbol:n,decimals:o,image:s,chainId:u}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(p,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,p=(0,uo.randomBytesHex)(8),h=v=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,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(p,P=>{if(d?.(),(0,qx.isErrorResponse)(P))return E(new Error(P.errorMessage));v(P)});let C=P=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:p,response:{method:\"addEthereumChain\",result:{isApproved:!1,rpcUrl:\"\"}}})},k=P=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:p,response:{method:\"addEthereumChain\",result:{isApproved:!0,rpcUrl:P}}})};this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:C,onApprove:k,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(p,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,qx.isErrorResponse)(y)&&y.errorCode)return d(M3.standardErrors.provider.custom({code:y.errorCode,message:\"Unrecognized chain ID. Try adding the chain using addEthereumChain first.\"}));if((0,qx.isErrorResponse)(y))return d(new Error(y.errorMessage));f(y)});let p=y=>{var v;if(y){let E=(v=(0,M3.getErrorCode)(y))!==null&&v!==void 0?v:M3.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(o,\"switchEthereumChain\",y instanceof Error?y:M3.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:p,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}}};kL.WalletLinkRelay=_L;_L.accountRequestCallbackIds=new Set});var vXe=X(Gx=>{\"use strict\";c();var dSt=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]})),pSt=Gx&&Gx.__exportStar||function(e,t){for(var r in e)r!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,r)&&dSt(t,e,r)};Object.defineProperty(Gx,\"__esModule\",{value:!0});pSt(dte(),Gx)});var wXe=X(yte=>{\"use strict\";c();Object.defineProperty(yte,\"__esModule\",{value:!0});yte.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(O3=>{\"use strict\";c();var EXe=O3&&O3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(O3,\"__esModule\",{value:!0});O3.RedirectDialog=void 0;var mSt=EXe((Zy(),Kr(dE))),op=(Ti(),Kr(fs)),hSt=Dee(),ySt=vXe(),bSt=EXe(wXe()),bte=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,hSt.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)(gSt,Object.assign({},t,{onDismiss:()=>{this.clear()}})),this.root))}};O3.RedirectDialog=bte;var gSt=({title:e,buttonText:t,darkMode:r,onButtonClick:n,onDismiss:o})=>{let s=r?\"dark\":\"light\";return(0,op.h)(ySt.SnackbarContainer,{darkMode:r},(0,op.h)(\"div\",{class:\"-cbwsdk-redirect-dialog\"},(0,op.h)(\"style\",null,bSt.default),(0,op.h)(\"div\",{class:\"-cbwsdk-redirect-dialog-backdrop\",onClick:o}),(0,op.h)(\"div\",{class:(0,mSt.default)(\"-cbwsdk-redirect-dialog-box\",s)},(0,op.h)(\"p\",null,e),(0,op.h)(\"button\",{onClick:n},t))))}});var xte=X(BL=>{\"use strict\";c();Object.defineProperty(BL,\"__esModule\",{value:!0});BL.MobileRelayUI=void 0;var xSt=AXe(),gte=class{constructor(t){this.attached=!1,this.darkMode=!1,this.redirectDialog=new xSt.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}};BL.MobileRelayUI=gte});var wte=X(IL=>{\"use strict\";c();Object.defineProperty(IL,\"__esModule\",{value:!0});IL.MobileRelay=void 0;var vSt=Zd(),wSt=hte(),ESt=xte(),vte=class extends wSt.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,vSt.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 ESt.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}})}};IL.MobileRelay=vte});var x4=X((ZQn,Ete)=>{\"use strict\";c();var N3=typeof Reflect==\"object\"?Reflect:null,SXe=N3&&typeof N3.apply==\"function\"?N3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},PL;N3&&typeof N3.ownKeys==\"function\"?PL=N3.ownKeys:Object.getOwnPropertySymbols?PL=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:PL=function(t){return Object.getOwnPropertyNames(t)};function ASt(e){console&&console.warn&&console.warn(e)}var TXe=Number.isNaN||function(t){return t!==t};function gn(){gn.init.call(this)}Ete.exports=gn;Ete.exports.once=_St;gn.EventEmitter=gn;gn.prototype._events=void 0;gn.prototype._eventsCount=0;gn.prototype._maxListeners=void 0;var CXe=10;function RL(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 CXe},set:function(e){if(typeof e!=\"number\"||e<0||TXe(e))throw new RangeError(\\'The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received \\'+e+\".\");CXe=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||TXe(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 _Xe(e){return e._maxListeners===void 0?gn.defaultMaxListeners:e._maxListeners}gn.prototype.getMaxListeners=function(){return _Xe(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\")SXe(d,this,r);else for(var p=d.length,h=RXe(d,p),n=0;n<p;++n)SXe(h[n],this,r);return!0};function kXe(e,t,r,n){var o,s,u;if(RL(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=_Xe(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,ASt(f)}return e}gn.prototype.addListener=function(t,r){return kXe(this,t,r,!1)};gn.prototype.on=gn.prototype.addListener;gn.prototype.prependListener=function(t,r){return kXe(this,t,r,!0)};function SSt(){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 BXe(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=SSt.bind(n);return o.listener=r,n.wrapFn=o,o}gn.prototype.once=function(t,r){return RL(r),this.on(t,BXe(this,t,r)),this};gn.prototype.prependOnceListener=function(t,r){return RL(r),this.prependListener(t,BXe(this,t,r)),this};gn.prototype.removeListener=function(t,r){var n,o,s,u,f;if(RL(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():CSt(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 IXe(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?TSt(o):RXe(o,o.length)}gn.prototype.listeners=function(t){return IXe(this,t,!0)};gn.prototype.rawListeners=function(t){return IXe(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?PL(this._events):[]};function RXe(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function CSt(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function TSt(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function _St(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))}MXe(e,t,s,{once:!0}),t!==\"error\"&&kSt(e,o,{once:!0})})}function kSt(e,t,r){typeof e.on==\"function\"&&MXe(e,\"error\",t,r)}function MXe(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 Ate=X((YQn,OXe)=>{c();OXe.exports=x4().EventEmitter});var Ste=X(()=>{c()});var FXe=X((nZn,LXe)=>{\"use strict\";c();function NXe(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 UXe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NXe(Object(r),!0).forEach(function(n){BSt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NXe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BSt(e,t,r){return t=HXe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ISt(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function DXe(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,HXe(n.key),n)}}function PSt(e,t,r){return t&&DXe(e.prototype,t),r&&DXe(e,r),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function HXe(e){var t=RSt(e,\"string\");return typeof t==\"symbol\"?t:String(t)}function RSt(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 MSt=uv(),ML=MSt.Buffer,OSt=Ste(),Cte=OSt.inspect,NSt=Cte&&Cte.custom||\"inspect\";function USt(e,t,r){ML.prototype.copy.call(e,t,r)}LXe.exports=(function(){function e(){ISt(this,e),this.head=null,this.tail=null,this.length=0}return PSt(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 ML.alloc(0);for(var n=ML.allocUnsafe(r>>>0),o=this.head,s=0;o;)USt(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=ML.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:NSt,value:function(r,n){return Cte(this,UXe(UXe({},n),{},{depth:0,customInspect:!1}))}}]),e})()});var _te=X((aZn,jXe)=>{\"use strict\";c();function DSt(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(Tte,this,e)):process.nextTick(Tte,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(OL,r):(r._writableState.errorEmitted=!0,process.nextTick(zXe,r,s)):process.nextTick(zXe,r,s):t?(process.nextTick(OL,r),t(s)):process.nextTick(OL,r)}),this)}function zXe(e,t){Tte(e,t),OL(e)}function OL(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(\"close\")}function HSt(){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 Tte(e,t){e.emit(\"error\",t)}function LSt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit(\"error\",t)}jXe.exports={destroy:DSt,undestroy:HSt,errorOrDestroy:LSt}});var Vx=X((sZn,GXe)=>{\"use strict\";c();function FSt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var qXe={};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){FSt(u,s);function u(f,d,p){return s.call(this,n(f,d,p))||this}return u})(r);o.prototype.name=r.name,o.prototype.code=e,qXe[e]=o}function $Xe(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 zSt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function jSt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function $St(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\"&&zSt(t,\"not \")?(n=\"must not be\",t=t.replace(/^not /,\"\")):n=\"must be\";var o;if(jSt(e,\" argument\"))o=\"The \".concat(e,\" \").concat(n,\" \").concat($Xe(t,\"type\"));else{var s=$St(e,\".\")?\"property\":\"argument\";o=\\'The \"\\'.concat(e,\\'\" \\').concat(s,\" \").concat(n,\" \").concat($Xe(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\");GXe.exports.codes=qXe});var kte=X((uZn,VXe)=>{\"use strict\";c();var qSt=Vx().codes.ERR_INVALID_OPT_VALUE;function GSt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function VSt(e,t,r,n){var o=GSt(t,n,r);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var s=n?r:\"highWaterMark\";throw new qSt(s,o)}return Math.floor(o)}return e.objectMode?16:16*1024}VXe.exports={getHighWaterMark:VSt}});var WXe=X((fZn,KXe)=>{c();KXe.exports=KSt;function KSt(e,t){if(Bte(\"noDeprecation\"))return e;var r=!1;function n(){if(!r){if(Bte(\"throwDeprecation\"))throw new Error(t);Bte(\"traceDeprecation\")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function Bte(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()===\"true\"}});var Rte=X((pZn,eet)=>{\"use strict\";c();eet.exports=Eo;function ZXe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){vCt(t,e)}}var U3;Eo.WritableState=w4;var WSt={deprecate:WXe()},JXe=Ate(),UL=uv().Buffer,QSt=(typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function ZSt(e){return UL.from(e)}function JSt(e){return UL.isBuffer(e)||e instanceof QSt}var Pte=_te(),YSt=kte(),XSt=YSt.getHighWaterMark,pb=Vx().codes,eCt=pb.ERR_INVALID_ARG_TYPE,tCt=pb.ERR_METHOD_NOT_IMPLEMENTED,rCt=pb.ERR_MULTIPLE_CALLBACK,nCt=pb.ERR_STREAM_CANNOT_PIPE,oCt=pb.ERR_STREAM_DESTROYED,aCt=pb.ERR_STREAM_NULL_VALUES,iCt=pb.ERR_STREAM_WRITE_AFTER_END,sCt=pb.ERR_UNKNOWN_ENCODING,D3=Pte.errorOrDestroy;Wu()(Eo,JXe);function cCt(){}function w4(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.writableObjectMode),this.highWaterMark=XSt(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){hCt(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 ZXe(this)}w4.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(w4.prototype,\"buffer\",{get:WSt.deprecate(function(){return this.getBuffer()},\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch{}})();var NL;typeof Symbol==\"function\"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==\"function\"?(NL=Function.prototype[Symbol.hasInstance],Object.defineProperty(Eo,Symbol.hasInstance,{value:function(t){return NL.call(this,t)?!0:this!==Eo?!1:t&&t._writableState instanceof w4}})):NL=function(t){return t instanceof this};function Eo(e){U3=U3||Kx();var t=this instanceof U3;if(!t&&!NL.call(Eo,this))return new Eo(e);this._writableState=new w4(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)),JXe.call(this)}Eo.prototype.pipe=function(){D3(this,new nCt)};function uCt(e,t){var r=new iCt;D3(e,r),process.nextTick(t,r)}function lCt(e,t,r,n){var o;return r===null?o=new aCt:typeof r!=\"string\"&&!t.objectMode&&(o=new eCt(\"chunk\",[\"string\",\"Buffer\"],r)),o?(D3(e,o),process.nextTick(n,o),!1):!0}Eo.prototype.write=function(e,t,r){var n=this._writableState,o=!1,s=!n.objectMode&&JSt(e);return s&&!UL.isBuffer(e)&&(e=ZSt(e)),typeof t==\"function\"&&(r=t,t=null),s?t=\"buffer\":t||(t=n.defaultEncoding),typeof r!=\"function\"&&(r=cCt),n.ending?uCt(this,r):(s||lCt(this,n,e,r))&&(n.pendingcb++,o=dCt(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&&YXe(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 sCt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Eo.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function fCt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==\"string\"&&(t=UL.from(t,r)),t}Object.defineProperty(Eo.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function dCt(e,t,r,n,o,s){if(!r){var u=fCt(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 p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:s,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Ite(e,t,!1,f,n,o,s);return d}function Ite(e,t,r,n,o,s,u){t.writelen=n,t.writecb=u,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new oCt(\"write\")):r?e._writev(o,t.onwrite):e._write(o,s,t.onwrite),t.sync=!1}function pCt(e,t,r,n,o){--t.pendingcb,r?(process.nextTick(o,n),process.nextTick(v4,e,t),e._writableState.errorEmitted=!0,D3(e,n)):(o(n),e._writableState.errorEmitted=!0,D3(e,n),v4(e,t))}function mCt(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function hCt(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if(typeof o!=\"function\")throw new rCt;if(mCt(r),t)pCt(e,r,n,t,o);else{var s=XXe(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&YXe(e,r),n?process.nextTick(QXe,e,r,s,o):QXe(e,r,s,o)}}function QXe(e,t,r,n){r||yCt(e,t),t.pendingcb--,n(),v4(e,t)}function yCt(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(\"drain\"))}function YXe(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,Ite(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 ZXe(t),t.bufferedRequestCount=0}else{for(;r;){var d=r.chunk,p=r.encoding,h=r.callback,y=t.objectMode?1:d.length;if(Ite(e,t,!1,y,d,p,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 tCt(\"_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||xCt(this,n,r),this};Object.defineProperty(Eo.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}});function XXe(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function bCt(e,t){e._final(function(r){t.pendingcb--,r&&D3(e,r),t.prefinished=!0,e.emit(\"prefinish\"),v4(e,t)})}function gCt(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==\"function\"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(bCt,e,t)):(t.prefinished=!0,e.emit(\"prefinish\")))}function v4(e,t){var r=XXe(t);if(r&&(gCt(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 xCt(e,t,r){t.ending=!0,v4(e,t),r&&(t.finished?process.nextTick(r):e.once(\"finish\",r)),t.ended=!0,e.writable=!1}function vCt(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=Pte.destroy;Eo.prototype._undestroy=Pte.undestroy;Eo.prototype._destroy=function(e,t){t(e)}});var Kx=X((hZn,ret)=>{\"use strict\";c();var wCt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};ret.exports=ap;var tet=Nte(),Ote=Rte();Wu()(ap,tet);for(Mte=wCt(Ote.prototype),DL=0;DL<Mte.length;DL++)HL=Mte[DL],ap.prototype[HL]||(ap.prototype[HL]=Ote.prototype[HL]);var Mte,HL,DL;function ap(e){if(!(this instanceof ap))return new ap(e);tet.call(this,e),Ote.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\",ECt)))}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 ECt(){this._writableState.ended||process.nextTick(ACt,this)}function ACt(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 Hte=X(oet=>{\"use strict\";c();var Dte=Xd().Buffer,net=Dte.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 SCt(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 CCt(e){var t=SCt(e);if(typeof t!=\"string\"&&(Dte.isEncoding===net||!net(e)))throw new Error(\"Unknown encoding: \"+e);return t||e}oet.StringDecoder=E4;function E4(e){this.encoding=CCt(e);var t;switch(this.encoding){case\"utf16le\":this.text=PCt,this.end=RCt,t=4;break;case\"utf8\":this.fillLast=kCt,t=4;break;case\"base64\":this.text=MCt,this.end=OCt,t=3;break;default:this.write=NCt,this.end=UCt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Dte.allocUnsafe(t)}E4.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||\"\"};E4.prototype.end=ICt;E4.prototype.text=BCt;E4.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 Ute(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function TCt(e,t,r){var n=t.length-1;if(n<r)return 0;var o=Ute(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||o===-2?0:(o=Ute(t[n]),o>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||o===-2?0:(o=Ute(t[n]),o>=0?(o>0&&(o===2?o=0:e.lastNeed=o-3),o):0))}function _Ct(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 kCt(e){var t=this.lastTotal-this.lastNeed,r=_Ct(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 BCt(e,t){var r=TCt(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 ICt(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+\"\\\\uFFFD\":t}function PCt(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 RCt(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 MCt(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 OCt(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+this.lastChar.toString(\"base64\",0,3-this.lastNeed):t}function NCt(e){return e.toString(this.encoding)}function UCt(e){return e&&e.length?this.write(e):\"\"}});var LL=X((xZn,set)=>{\"use strict\";c();var aet=Vx().codes.ERR_STREAM_PREMATURE_CLOSE;function DCt(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 HCt(){}function LCt(e){return e.setHeader&&typeof e.abort==\"function\"}function iet(e,t,r){if(typeof t==\"function\")return iet(e,null,t);t||(t={}),r=DCt(r||HCt);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,p=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 aet),r.call(e,C);if(o&&!u)return(!e._writableState||!e._writableState.ended)&&(C=new aet),r.call(e,C)},v=function(){e.req.on(\"finish\",f)};return LCt(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\",p),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\",p),e.removeListener(\"error\",h),e.removeListener(\"close\",y)}}set.exports=iet});var uet=X((wZn,cet)=>{\"use strict\";c();var FL;function mb(e,t,r){return t=FCt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FCt(e){var t=zCt(e,\"string\");return typeof t==\"symbol\"?t:String(t)}function zCt(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 jCt=LL(),hb=Symbol(\"lastResolve\"),Wx=Symbol(\"lastReject\"),A4=Symbol(\"error\"),zL=Symbol(\"ended\"),Qx=Symbol(\"lastPromise\"),Lte=Symbol(\"handlePromise\"),Zx=Symbol(\"stream\");function yb(e,t){return{value:e,done:t}}function $Ct(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 qCt(e){process.nextTick($Ct,e)}function GCt(e,t){return function(r,n){e.then(function(){if(t[zL]){r(yb(void 0,!0));return}t[Lte](r,n)},n)}}var VCt=Object.getPrototypeOf(function(){}),KCt=Object.setPrototypeOf((FL={get stream(){return this[Zx]},next:function(){var t=this,r=this[A4];if(r!==null)return Promise.reject(r);if(this[zL])return Promise.resolve(yb(void 0,!0));if(this[Zx].destroyed)return new Promise(function(u,f){process.nextTick(function(){t[A4]?f(t[A4]):u(yb(void 0,!0))})});var n=this[Qx],o;if(n)o=new Promise(GCt(n,this));else{var s=this[Zx].read();if(s!==null)return Promise.resolve(yb(s,!1));o=new Promise(this[Lte])}return this[Qx]=o,o}},mb(FL,Symbol.asyncIterator,function(){return this}),mb(FL,\"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))})})}),FL),VCt),WCt=function(t){var r,n=Object.create(KCt,(r={},mb(r,Zx,{value:t,writable:!0}),mb(r,hb,{value:null,writable:!0}),mb(r,Wx,{value:null,writable:!0}),mb(r,A4,{value:null,writable:!0}),mb(r,zL,{value:t._readableState.endEmitted,writable:!0}),mb(r,Lte,{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,jCt(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[A4]=o;return}var u=n[hb];u!==null&&(n[Qx]=null,n[hb]=null,n[Wx]=null,u(yb(void 0,!0))),n[zL]=!0}),t.on(\"readable\",qCt.bind(null,n)),n};cet.exports=WCt});var det=X((AZn,fet)=>{c();fet.exports=function(){throw new Error(\"Readable.from is not available in the browser\")}});var Nte=X((TZn,Eet)=>{\"use strict\";c();Eet.exports=kr;var H3;kr.ReadableState=yet;var CZn=x4().EventEmitter,het=function(t,r){return t.listeners(r).length},C4=Ate(),jL=uv().Buffer,QCt=(typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function ZCt(e){return jL.from(e)}function JCt(e){return jL.isBuffer(e)||e instanceof QCt}var Fte=Ste(),ir;Fte&&Fte.debuglog?ir=Fte.debuglog(\"stream\"):ir=function(){};var YCt=FXe(),Kte=_te(),XCt=kte(),eTt=XCt.getHighWaterMark,$L=Vx().codes,tTt=$L.ERR_INVALID_ARG_TYPE,rTt=$L.ERR_STREAM_PUSH_AFTER_EOF,nTt=$L.ERR_METHOD_NOT_IMPLEMENTED,oTt=$L.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,L3,zte,jte;Wu()(kr,C4);var S4=Kte.errorOrDestroy,$te=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function aTt(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 yet(e,t,r){H3=H3||Kx(),e=e||{},typeof r!=\"boolean\"&&(r=t instanceof H3),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=eTt(this,e,\"readableHighWaterMark\",r),this.buffer=new YCt,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&&(L3||(L3=Hte().StringDecoder),this.decoder=new L3(e.encoding),this.encoding=e.encoding)}function kr(e){if(H3=H3||Kx(),!(this instanceof kr))return new kr(e);var t=this instanceof H3;this._readableState=new yet(e,this,t),this.readable=!0,e&&(typeof e.read==\"function\"&&(this._read=e.read),typeof e.destroy==\"function\"&&(this._destroy=e.destroy)),C4.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=Kte.destroy;kr.prototype._undestroy=Kte.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=jL.from(e,t),t=\"\"),n=!0),bet(this,e,t,!1,n)};kr.prototype.unshift=function(e){return bet(this,e,null,!0,!1)};function bet(e,t,r,n,o){ir(\"readableAddChunk\",t);var s=e._readableState;if(t===null)s.reading=!1,cTt(e,s);else{var u;if(o||(u=iTt(s,t)),u)S4(e,u);else if(s.objectMode||t&&t.length>0)if(typeof t!=\"string\"&&!s.objectMode&&Object.getPrototypeOf(t)!==jL.prototype&&(t=ZCt(t)),n)s.endEmitted?S4(e,new oTt):qte(e,s,t,!0);else if(s.ended)S4(e,new rTt);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?qte(e,s,t,!1):Vte(e,s)):qte(e,s,t,!1)}else n||(s.reading=!1,Vte(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function qte(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&&qL(e)),Vte(e,t)}function iTt(e,t){var r;return!JCt(t)&&typeof t!=\"string\"&&t!==void 0&&!e.objectMode&&(r=new tTt(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],t)),r}kr.prototype.isPaused=function(){return this._readableState.flowing===!1};kr.prototype.setEncoding=function(e){L3||(L3=Hte().StringDecoder);var t=new L3(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 pet=1073741824;function sTt(e){return e>=pet?e=pet:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function met(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=sTt(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?Gte(this):qL(this),null;if(e=met(e,t),e===0&&t.ended)return t.length===0&&Gte(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=met(r,t)));var o;return e>0?o=vet(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&&Gte(this)),o!==null&&this.emit(\"data\",o),o};function cTt(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?qL(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,get(e)))}}function qL(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(get,e))}function get(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,Wte(e)}function Vte(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(uTt,e,t))}function uTt(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){S4(this,new nTt(\"_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:k;n.endEmitted?process.nextTick(s):r.once(\"end\",s),e.on(\"unpipe\",u);function u(P,M){ir(\"onunpipe\"),P===r&&M&&M.hasUnpiped===!1&&(M.hasUnpiped=!0,h())}function f(){ir(\"onend\"),e.end()}var d=lTt(r);e.on(\"drain\",d);var p=!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\",k),r.removeListener(\"data\",y),p=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&d()}r.on(\"data\",y);function y(P){ir(\"ondata\");var M=e.write(P);ir(\"dest.write\",M),M===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&wet(n.pipes,e)!==-1)&&!p&&(ir(\"false write response, pause\",n.awaitDrain),n.awaitDrain++),r.pause())}function v(P){ir(\"onerror\",P),k(),e.removeListener(\"error\",v),het(e,\"error\")===0&&S4(e,P)}aTt(e,\"error\",v);function E(){e.removeListener(\"finish\",C),k()}e.once(\"close\",E);function C(){ir(\"onfinish\"),e.removeListener(\"close\",E),k()}e.once(\"finish\",C);function k(){ir(\"unpipe\"),r.unpipe(e)}return e.emit(\"pipe\",r),n.flowing||(ir(\"pipe resume\"),r.resume()),e};function lTt(e){return function(){var r=e._readableState;ir(\"pipeOnDrain\",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&het(e,\"data\")&&(r.flowing=!0,Wte(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=wet(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=C4.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?qL(this):n.reading||process.nextTick(fTt,this)),r};kr.prototype.addListener=kr.prototype.on;kr.prototype.removeListener=function(e,t){var r=C4.prototype.removeListener.call(this,e,t);return e===\"readable\"&&process.nextTick(xet,this),r};kr.prototype.removeAllListeners=function(e){var t=C4.prototype.removeAllListeners.apply(this,arguments);return(e===\"readable\"||e===void 0)&&process.nextTick(xet,this),t};function xet(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 fTt(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,dTt(this,e)),e.paused=!1,this};function dTt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(pTt,e,t))}function pTt(e,t){ir(\"resume\",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(\"resume\"),Wte(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 Wte(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<$te.length;s++)e.on($te[s],this.emit.bind(this,$te[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 zte===void 0&&(zte=uet()),zte(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=vet;Object.defineProperty(kr.prototype,\"readableLength\",{enumerable:!1,get:function(){return this._readableState.length}});function vet(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 Gte(e){var t=e._readableState;ir(\"endReadable\",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(mTt,t,e))}function mTt(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 jte===void 0&&(jte=det()),jte(kr,e,t)});function wet(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var Qte=X((kZn,Cet)=>{\"use strict\";c();Cet.exports=mh;var GL=Vx().codes,hTt=GL.ERR_METHOD_NOT_IMPLEMENTED,yTt=GL.ERR_MULTIPLE_CALLBACK,bTt=GL.ERR_TRANSFORM_ALREADY_TRANSFORMING,gTt=GL.ERR_TRANSFORM_WITH_LENGTH_0,VL=Kx();Wu()(mh,VL);function xTt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit(\"error\",new yTt);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);VL.call(this,e),this._transformState={afterTransform:xTt.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\",vTt)}function vTt(){var e=this;typeof this._flush==\"function\"&&!this._readableState.destroyed?this._flush(function(t,r){Aet(e,t,r)}):Aet(this,null,null)}mh.prototype.push=function(e,t){return this._transformState.needTransform=!1,VL.prototype.push.call(this,e,t)};mh.prototype._transform=function(e,t,r){r(new hTt(\"_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){VL.prototype._destroy.call(this,e,function(r){t(r)})};function Aet(e,t,r){if(t)return e.emit(\"error\",t);if(r!=null&&e.push(r),e._writableState.length)throw new gTt;if(e._transformState.transforming)throw new bTt;return e.push(null)}});var ket=X((IZn,_et)=>{\"use strict\";c();_et.exports=T4;var Tet=Qte();Wu()(T4,Tet);function T4(e){if(!(this instanceof T4))return new T4(e);Tet.call(this,e)}T4.prototype._transform=function(e,t,r){r(null,e)}});var Met=X((RZn,Ret)=>{\"use strict\";c();var Zte;function wTt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Pet=Vx().codes,ETt=Pet.ERR_MISSING_ARGS,ATt=Pet.ERR_STREAM_DESTROYED;function Bet(e){if(e)throw e}function STt(e){return e.setHeader&&typeof e.abort==\"function\"}function CTt(e,t,r,n){n=wTt(n);var o=!1;e.on(\"close\",function(){o=!0}),Zte===void 0&&(Zte=LL()),Zte(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,STt(e))return e.abort();if(typeof e.destroy==\"function\")return e.destroy();n(u||new ATt(\"pipe\"))}}}function Iet(e){e()}function TTt(e,t){return e.pipe(t)}function _Tt(e){return!e.length||typeof e[e.length-1]!=\"function\"?Bet:e.pop()}function kTt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=_Tt(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new ETt(\"streams\");var o,s=t.map(function(u,f){var d=f<t.length-1,p=f>0;return CTt(u,d,p,function(h){o||(o=h),h&&s.forEach(Iet),!d&&(s.forEach(Iet),n(o))})});return t.reduce(TTt)}Ret.exports=kTt});var Jte=X((Ju,Oet)=>{c();Ju=Oet.exports=Nte();Ju.Stream=Ju;Ju.Readable=Ju;Ju.Writable=Rte();Ju.Duplex=Kx();Ju.Transform=Qte();Ju.PassThrough=ket();Ju.finished=LL();Ju.pipeline=Met()});var Det=X((NZn,Uet)=>{c();var{Transform:BTt}=Jte();Uet.exports=e=>class Net extends BTt{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 Net(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}}});var Fet=X((DZn,Let)=>{c();var{Transform:ITt}=Jte();Let.exports=e=>class Het extends ITt{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 Het(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}}});var jet=X((LZn,zet)=>{c();var PTt=Det(),RTt=Fet();zet.exports=function(e){let t=PTt(e),r=RTt(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 Get=X(qet=>{c();var $et=[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];qet.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],p=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,k=e[1]^E,P=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,R=e[42]^v,D=e[43]^E;v=o^(d<<1|p>>>31),E=s^(p<<1|d>>>31);let L=e[4]^v,V=e[5]^E,Q=e[14]^v,F=e[15]^E,I=e[24]^v,Z=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 qe=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=p^(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,$r=e[49]^E,Ii=C,nn=k,Ir=M<<4|P>>>28,ys=P<<4|M>>>28,Pr=U<<3|O>>>29,Rr=O<<3|U>>>29,$c=j<<9|N>>>23,Er=N<<9|j>>>23,$=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,zt=H<<10|re>>>22,Ne=T<<13|A>>>19,jt=A<<13|T>>>19,Uo=R<<2|D>>>30,Ar=D<<2|R>>>30,qr=V<<30|L>>>2,mp=L<<30|V>>>2,on=Q<<6|F>>>26,an=F<<6|Q>>>26,oi=Z<<11|I>>>21,cr=I<<11|Z>>>21,xn=me<<15|ge>>>17,bh=ge<<15|me>>>17,ln=Ce<<29|Se>>>3,vn=Se<<29|Ce>>>3,ol=qe<<28|je>>>4,ur=je<<28|qe>>>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|$r>>>18,qc=$r<<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&zt,e[40]=qr^~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^~zt&bh,e[42]=wn^~Ao&$c,e[43]=sf^~gs&Er,e[4]=oi^~cf&ac,e[5]=cr^~uf&qc,e[14]=Pr^~Ne&ln,e[15]=Rr^~jt&vn,e[24]=En^~Pi&$,e[25]=fn^~hf&fe,e[34]=Ve^~xn&bs,e[35]=zt^~bh&lf,e[44]=Ao^~$c&Uo,e[45]=gs^~Er&Ar,e[6]=cf^~ac&Ii,e[7]=uf^~qc&nn,e[16]=Ne^~ln&ol,e[17]=jt^~vn&ur,e[26]=Pi^~$&Ee,e[27]=hf^~fe&_e,e[36]=xn^~bs&ff,e[37]=bh^~lf&df,e[46]=$c^~Uo&qr,e[47]=Er^~Ar&mp,e[8]=ac^~Ii&We,e[9]=qc^~nn&Ge,e[18]=ln^~ol&pf,e[19]=vn^~ur&mf,e[28]=$^~Ee&on,e[29]=fe^~_e&an,e[38]=bs^~ff&Ir,e[39]=lf^~df&ys,e[48]=Uo^~qr&wn,e[49]=Ar^~mp&sf,e[0]^=$et[t*2],e[1]^=$et[t*2+1]}}});var Ket=X(($Zn,Vet)=>{c();var KL=Get();function F3(){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}F3.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};F3.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&&(KL.p1600(this.state),this.count=0)};F3.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),(e&128)!==0&&this.count===this.blockSize-1&&KL.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),KL.p1600(this.state),this.count=0,this.squeezing=!0};F3.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&&(KL.p1600(this.state),this.count=0);return t};F3.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};Vet.exports=F3});var Qet=X((GZn,Wet)=>{c();Wet.exports=jet()(Ket())});var Yte=X((KZn,ett)=>{c();var MTt=Qet(),OTt=W_();function Zet(e){return globalThis.Buffer.allocUnsafe(e).fill(0)}function Jet(e,t,r){let n=Zet(t);return e=WL(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 NTt(e,t){return Jet(e,t,!0)}function WL(e){if(!globalThis.Buffer.isBuffer(e))if(Array.isArray(e))e=globalThis.Buffer.from(e);else if(typeof e==\"string\")Yet(e)?e=globalThis.Buffer.from(HTt(Xet(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(OTt.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 UTt(e){return e=WL(e),\"0x\"+e.toString(\"hex\")}function DTt(e,t){return e=WL(e),t||(t=256),MTt(\"keccak\"+t).update(e).digest()}function HTt(e){return e.length%2?\"0\"+e:e}function Yet(e){return typeof e==\"string\"&&e.match(/^0x[0-9A-Fa-f]*$/)}function Xet(e){return typeof e==\"string\"&&e.startsWith(\"0x\")?e.slice(2):e}ett.exports={zeros:Zet,setLength:Jet,setLengthRight:NTt,isHexString:Yet,stripHexPrefix:Xet,toBuffer:WL,bufferToHex:UTt,keccak:DTt}});var itt=X((QZn,att)=>{c();var Xx=Yte(),Yx=W_();function rtt(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 z3(e){return parseInt(/^\\\\D+(\\\\d+)$/.exec(e)[1],10)}function ttt(e){var t=/^\\\\D+(\\\\d+)x(\\\\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function ntt(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(FTt(e)){if(typeof t.length>\"u\")throw new Error(\"Not an array?\");if(r=ntt(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=z3(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=z3(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=z3(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=ttt(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=ttt(e),ip(\"int256\",Jx(t).mul(new Yx(2).pow(new Yx(r[1]))))}throw new Error(\"Unsupported or invalid type: \"+e)}function LTt(e){return e===\"string\"||e===\"bytes\"||ntt(e)===\"dynamic\"}function FTt(e){return e.lastIndexOf(\"]\")===e.length-1}function zTt(e,t){var r=[],n=[],o=32*e.length;for(var s in e){var u=rtt(e[s]),f=t[s],d=ip(u,f);LTt(u)?(r.push(ip(\"uint256\",o)),n.push(d),o+=d.length):r.push(d)}return globalThis.Buffer.concat(r.concat(n))}function ott(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=rtt(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=z3(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=z3(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=z3(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 jTt(e,t){return Xx.keccak(ott(e,t))}att.exports={rawEncode:zTt,solidityPack:ott,soliditySHA3:jTt}});var utt=X((JZn,ctt)=>{c();var nf=Yte(),_4=itt(),stt={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\"]},Xte={encodeData(e,t,r,n=!0){let o=[\"bytes32\"],s=[this.hashType(e,r)];if(n){let u=(f,d,p)=>{if(r[d]!==void 0)return[\"bytes32\",p==null?\"0x0000000000000000000000000000000000000000000000000000000000000000\":nf.keccak(this.encodeData(d,p,r,n))];if(p===void 0)throw new Error(`missing value for field ${f} of type ${d}`);if(d===\"bytes\")return[\"bytes32\",nf.keccak(p)];if(d===\"string\")return typeof p==\"string\"&&(p=globalThis.Buffer.from(p,\"utf8\")),[\"bytes32\",nf.keccak(p)];if(d.lastIndexOf(\"]\")===d.length-1){let h=d.slice(0,d.lastIndexOf(\"[\")),y=p.map(v=>u(f,h,v));return[\"bytes32\",nf.keccak(_4.rawEncode(y.map(([v])=>v),y.map(([,v])=>v)))]}return[d,p]};for(let f of r[e]){let[d,p]=u(f.name,f.type,t[f.name]);o.push(d),s.push(p)}}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 _4.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 stt.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))}};ctt.exports={TYPED_MESSAGE_SCHEMA:stt,TypedDataUtils:Xte,hashForSignTypedDataLegacy:function(e){return $Tt(e.data)},hashForSignTypedData_v3:function(e){return Xte.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return Xte.hash(e.data)}};function $Tt(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 _4.soliditySHA3([\"bytes32\",\"bytes32\"],[_4.soliditySHA3(new Array(e.length).fill(\"string\"),o),_4.soliditySHA3(n,r)])}});var mtt=X($3=>{\"use strict\";c();Object.defineProperty($3,\"__esModule\",{value:!0});$3.filterFromParam=$3.FilterPolyfill=void 0;var j3=Y_(),ds=Zd(),qTt=300*1e3,e2={jsonrpc:\"2.0\",id:0},ere=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,j3.IntNumber)(1),this.REQUEST_THROTTLE_INTERVAL=1e3,this.lastFetchTimestamp=new Date(0),this.resolvers=[],this.provider=t}async newFilter(t){let r=ptt(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(QL())}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:[ltt(n)]})):QL()}makeFilterId(){return(0,j3.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 QL();let o=await this.getCurrentBlockHeight(),s=r.toBlock===\"latest\"?o:r.toBlock;if(n>o||n>Number(r.toBlock))return ZL();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:[ltt(Object.assign(Object.assign({},r),{fromBlock:n,toBlock:s}))]}));if(Array.isArray(u.result)){let f=u.result.map(p=>(0,ds.intNumberFromHexString)(p.blockNumber||\"0x0\")),d=Math.max(...f);if(d&&d>n){let p=(0,j3.IntNumber)(d+1);console.info(`Moving cursor position for filter (${t}) from ${n} to ${p}`),this.cursors.set(t,p)}}return u}async getBlockFilterChanges(t){let r=this.cursors.get(t);if(!r)return QL();let n=await this.getCurrentBlockHeight();if(r>n)return ZL();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,j3.IntNumber)(u))))).filter(u=>!!u),s=(0,j3.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(ZL())}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)},qTt);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}};$3.FilterPolyfill=ere;function ptt(e){return{fromBlock:ftt(e.fromBlock),toBlock:ftt(e.toBlock),addresses:e.address===void 0?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}$3.filterFromParam=ptt;function ltt(e){let t={fromBlock:dtt(e.fromBlock),toBlock:dtt(e.toBlock),topics:e.topics};return e.addresses!==null&&(t.address=e.addresses),t}function ftt(e){if(e===void 0||e===\"latest\"||e===\"pending\")return\"latest\";if(e===\"earliest\")return(0,j3.IntNumber)(0);if((0,ds.isHexString)(e))return(0,ds.intNumberFromHexString)(e);throw new Error(`Invalid block option: ${String(e)}`)}function dtt(e){return e===\"latest\"?e:(0,ds.hexStringFromIntNumber)(e)}function QL(){return Object.assign(Object.assign({},e2),{error:{code:-32e3,message:\"filter not found\"}})}function ZL(){return Object.assign(Object.assign({},e2),{result:[]})}});var JL=X((tJn,htt)=>{c();htt.exports=GTt;function GTt(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 gtt=X((nJn,btt)=>{\"use strict\";c();var ytt=(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 p=1;p<arguments.length;p++)d[p-1]=arguments[p];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)})};btt.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):ytt(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)?ytt(s,t):s}return n}});var YL=X(rre=>{\"use strict\";c();Object.defineProperty(rre,\"__esModule\",{value:!0});var VTt=x4();function xtt(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(()=>{throw n})}}function KTt(e){let t=e.length,r=new Array(t);for(let n=0;n<t;n+=1)r[n]=e[n];return r}var tre=class extends VTt.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\")xtt(s,this,r);else{let u=s.length,f=KTt(s);for(let d=0;d<u;d+=1)xtt(f[d],this,r)}return!0}};rre.default=tre});var ore=X(q3=>{\"use strict\";c();var WTt=q3&&q3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(q3,\"__esModule\",{value:!0});q3.BaseBlockTracker=void 0;var QTt=WTt(YL()),ZTt=1e3,JTt=(e,t)=>e+t,vtt=[\"sync\",\"latest\"],nre=class extends QTt.default{constructor(t){super(),this._blockResetDuration=t.blockResetDuration||20*ZTt,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){vtt.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 vtt.map(t=>this.listenerCount(t)).reduce(JTt)}_shouldUseNewBlock(t){let r=this._currentBlock;if(!r)return!0;let n=wtt(t),o=wtt(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}};q3.BaseBlockTracker=nre;function wtt(e){return Number.parseInt(e,16)}});var bb={};Wn(bb,{Struct:()=>lo,StructError:()=>XL,any:()=>u_t,array:()=>l_t,assert:()=>Att,assign:()=>t_t,bigint:()=>f_t,boolean:()=>d_t,coerce:()=>ure,create:()=>Stt,date:()=>p_t,defaulted:()=>k_t,define:()=>rc,deprecated:()=>r_t,dynamic:()=>n_t,empty:()=>I_t,enums:()=>m_t,func:()=>h_t,instance:()=>y_t,integer:()=>b_t,intersection:()=>g_t,is:()=>sre,lazy:()=>o_t,literal:()=>x_t,map:()=>v_t,mask:()=>Ctt,max:()=>P_t,min:()=>R_t,never:()=>cre,nonempty:()=>M_t,nullable:()=>w_t,number:()=>E_t,object:()=>k4,omit:()=>a_t,optional:()=>Ttt,partial:()=>i_t,pattern:()=>O_t,pick:()=>s_t,record:()=>A_t,refine:()=>t2,regexp:()=>S_t,set:()=>C_t,size:()=>N_t,string:()=>_tt,struct:()=>c_t,trimmed:()=>B_t,tuple:()=>T_t,type:()=>B4,union:()=>__t,unknown:()=>ktt,validate:()=>G3});function YTt(e){return Yu(e)&&typeof e[Symbol.iterator]==\"function\"}function Yu(e){return typeof e==\"object\"&&e!=null}function Ett(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 XTt(e){let{done:t,value:r}=e.next();return t?void 0:r}function e_t(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*are(e,t,r,n){YTt(e)||(e=[e]);for(let o of e){let s=e_t(o,t,r,n);s&&(yield s)}}function*ire(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 p in e)t.schema[p]===void 0&&delete e[p];let d=\"valid\";for(let p of t.validator(e,f))p.explanation=r.message,d=\"not_valid\",yield[p,void 0];for(let[p,h,y]of t.entries(e,f)){let v=ire(h,y,{path:p===void 0?n:[...n,p],branch:p===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],p===void 0?e=h:e instanceof Map?e.set(p,h):e instanceof Set?e.add(h):Yu(e)&&(h!==void 0||p in e)&&(e[p]=h))}if(d!==\"not_valid\")for(let p of t.refiner(e,f))p.explanation=r.message,d=\"not_refined\",yield[p,void 0];d===\"valid\"&&(yield[void 0,e])}function Att(e,t,r){let n=G3(e,t,{message:r});if(n[0])throw n[0]}function Stt(e,t,r){let n=G3(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function Ctt(e,t,r){let n=G3(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function sre(e,t){return!G3(e,t)[0]}function G3(e,t,r={}){let n=ire(e,t,r),o=XTt(n);return o[0]?[new XL(o[0],function*(){for(let u of n)u[0]&&(yield u[0])}),void 0]:[void 0,o[1]]}function t_t(...e){let t=e[0].type===\"type\",r=e.map(o=>o.schema),n=Object.assign({},...r);return t?B4(n):k4(n)}function rc(e,t){return new lo({type:e,schema:null,validator:t})}function r_t(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 n_t(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 o_t(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 a_t(e,t){let{schema:r}=e,n={...r};for(let o of t)delete n[o];return e.type===\"type\"?B4(n):k4(n)}function i_t(e){let t=e instanceof lo,r=t?{...e.schema}:{...e};for(let n in r)r[n]=Ttt(r[n]);return t&&e.type===\"type\"?B4(r):k4(r)}function s_t(e,t){let{schema:r}=e,n={};for(let o of t)n[o]=r[o];return e.type===\"type\"?B4(n):k4(n)}function c_t(e,t){return console.warn(\"superstruct@0.11 - The `struct` helper has been renamed to `define`.\"),rc(e,t)}function u_t(){return rc(\"any\",()=>!0)}function l_t(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 f_t(){return rc(\"bigint\",e=>typeof e==\"bigint\")}function d_t(){return rc(\"boolean\",e=>typeof e==\"boolean\")}function p_t(){return rc(\"date\",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \\\\`Date\\\\` object, but received: ${da(e)}`)}function m_t(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 h_t(){return rc(\"func\",e=>typeof e==\"function\"||`Expected a function, but received: ${da(e)}`)}function y_t(e){return rc(\"instance\",t=>t instanceof e||`Expected a \\\\`${e.name}\\\\` instance, but received: ${da(t)}`)}function b_t(){return rc(\"integer\",e=>typeof e==\"number\"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${da(e)}`)}function g_t(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 x_t(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 v_t(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 cre(){return rc(\"never\",()=>!1)}function w_t(e){return new lo({...e,validator:(t,r)=>t===null||e.validator(t,r),refiner:(t,r)=>t===null||e.refiner(t,r)})}function E_t(){return rc(\"number\",e=>typeof e==\"number\"&&!isNaN(e)||`Expected a number, but received: ${da(e)}`)}function k4(e){let t=e?Object.keys(e):[],r=cre();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 Ttt(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 A_t(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 S_t(){return rc(\"regexp\",e=>e instanceof RegExp)}function C_t(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 _tt(){return rc(\"string\",e=>typeof e==\"string\"||`Expected a string, but received: ${da(e)}`)}function T_t(e){let t=cre();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 B4(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 __t(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]=ire(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 ktt(){return rc(\"unknown\",()=>!0)}function ure(e,t,r){return new lo({...e,coercer:(n,o)=>sre(n,t)?e.coercer(r(n,o),o):e.coercer(n,o)})}function k_t(e,t,r={}){return ure(e,ktt(),n=>{let o=typeof t==\"function\"?t():t;if(n===void 0)return o;if(!r.strict&&Ett(n)&&Ett(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 B_t(e){return ure(e,_tt(),t=>t.trim())}function I_t(e){return t2(e,\"empty\",t=>{let r=Btt(t);return r===0||`Expected an empty ${e.type} but received one with a size of \\\\`${r}\\\\``})}function Btt(e){return e instanceof Map||e instanceof Set?e.size:e.length}function P_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 R_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 M_t(e){return t2(e,\"nonempty\",t=>Btt(t)>0||`Expected a nonempty ${e.type} but received an empty one`)}function O_t(e,t){return t2(e,\"pattern\",r=>t.test(r)||`Expected a ${e.type} matching \\\\`/${t.source}/\\\\` but received \"${r}\"`)}function N_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=are(s,o,e,n);for(let f of u)yield{...f,refinement:t}}})}var XL,lo,gb=x(()=>{c();XL=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,p)=>{let h=o(d,p);return are(h,p,this,d)}:this.validator=()=>[],s?this.refiner=(d,p)=>{let h=s(d,p);return are(h,p,this,d)}:this.refiner=()=>[]}assert(t,r){return Att(t,this,r)}create(t,r){return Stt(t,this,r)}is(t){return sre(t,this)}mask(t,r){return Ctt(t,this,r)}validate(t,r={}){return G3(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 U_t=(gb(),Kr(bb));function D_t(e){return typeof e==\"object\"&&e!==null&&\"message\"in e}function H_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 L_t(e){let t=D_t(e)?e.message:String(e);return t.endsWith(\".\")?t.slice(0,-1):t}function Itt(e,t){return H_t(e)?new e({message:t}):e({message:t})}var I4=class extends Error{constructor(t){super(t.message),this.code=\"ERR_ASSERTION\"}};sp.AssertionError=I4;function F_t(e,t=\"Assertion failed.\",r=I4){if(!e)throw t instanceof Error?t:Itt(r,t)}sp.assert=F_t;function z_t(e,t,r=\"Assertion failed\",n=I4){try{(0,U_t.assert)(e,t)}catch(o){throw Itt(n,`${r}: ${L_t(o)}.`)}}sp.assertStruct=z_t;function j_t(e){throw new Error(\"Invalid branch reached. Should be detected during compilation.\")}sp.assertExhaustive=j_t});var lre=X(eF=>{\"use strict\";c();Object.defineProperty(eF,\"__esModule\",{value:!0});eF.base64=void 0;var $_t=(gb(),Kr(bb)),q_t=hh(),G_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,q_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,$_t.pattern)(e,f)};eF.base64=G_t});var P4=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 V3=(gb(),Kr(bb)),Ptt=hh();na.HexStruct=(0,V3.pattern)((0,V3.string)(),/^(?:0x)?[0-9a-f]+$/iu);na.StrictHexStruct=(0,V3.pattern)((0,V3.string)(),/^0x[0-9a-f]+$/iu);function Rtt(e){return(0,V3.is)(e,na.HexStruct)}na.isHexString=Rtt;function Mtt(e){return(0,V3.is)(e,na.StrictHexStruct)}na.isStrictHexString=Mtt;function V_t(e){(0,Ptt.assert)(Rtt(e),\"Value must be a hexadecimal string.\")}na.assertIsHexString=V_t;function K_t(e){(0,Ptt.assert)(Mtt(e),\\'Value must be a hexadecimal string, starting with \"0x\".\\')}na.assertIsStrictHexString=K_t;function W_t(e){return e.startsWith(\"0x\")?e:e.startsWith(\"0X\")?`0x${e.substring(2)}`:`0x${e}`}na.add0x=W_t;function Q_t(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")?e.substring(2):e}na.remove0x=Q_t});var pre=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 Fc=hh(),fre=P4(),Ott=48,Ntt=58,Utt=87;function Z_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 J_t=Z_t();function dre(e){return e instanceof Uint8Array}Dr.isBytes=dre;function K3(e){(0,Fc.assert)(dre(e),\"Value must be a Uint8Array.\")}Dr.assertIsBytes=K3;function Dtt(e){if(K3(e),e.length===0)return\"0x\";let t=J_t(),r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=t[e[n]];return(0,fre.add0x)(r.join(\"\"))}Dr.bytesToHex=Dtt;function Htt(e){K3(e);let t=Dtt(e);return BigInt(t)}Dr.bytesToBigInt=Htt;function Y_t(e){K3(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=Y_t;function X_t(e){K3(e);let t=Htt(e);return(0,Fc.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),\"Number is not a safe integer. Use `bytesToBigInt` instead.\"),Number(t)}Dr.bytesToNumber=X_t;function e4t(e){return K3(e),new TextDecoder().decode(e)}Dr.bytesToString=e4t;function tF(e){var t;if(((t=e?.toLowerCase)===null||t===void 0?void 0:t.call(e))===\"0x\")return new Uint8Array;(0,fre.assertIsHexString)(e);let r=(0,fre.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<Ntt?Ott:Utt),p=f-(f<Ntt?Ott:Utt);o[s]=d*16+p}return o}Dr.hexToBytes=tF;function Ltt(e){(0,Fc.assert)(typeof e==\"bigint\",\"Value must be a bigint.\"),(0,Fc.assert)(e>=BigInt(0),\"Value must be a non-negative bigint.\");let t=e.toString(16);return tF(t)}Dr.bigIntToBytes=Ltt;function t4t(e,t){(0,Fc.assert)(t>0);let r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(t*8+-1))}function r4t(e,t){(0,Fc.assert)(typeof e==\"bigint\",\"Value must be a bigint.\"),(0,Fc.assert)(typeof t==\"number\",\"Byte length must be a number.\"),(0,Fc.assert)(t>0,\"Byte length must be greater than 0.\"),(0,Fc.assert)(t4t(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=r4t;function Ftt(e){(0,Fc.assert)(typeof e==\"number\",\"Value must be a number.\"),(0,Fc.assert)(e>=0,\"Value must be a non-negative number.\"),(0,Fc.assert)(Number.isSafeInteger(e),\"Value is not a safe integer. Use `bigIntToBytes` instead.\");let t=e.toString(16);return tF(t)}Dr.numberToBytes=Ftt;function ztt(e){return(0,Fc.assert)(typeof e==\"string\",\"Value must be a string.\"),new TextEncoder().encode(e)}Dr.stringToBytes=ztt;function jtt(e){if(typeof e==\"bigint\")return Ltt(e);if(typeof e==\"number\")return Ftt(e);if(typeof e==\"string\")return e.startsWith(\"0x\")?tF(e):ztt(e);if(dre(e))return e;throw new TypeError(`Unsupported value type: \"${typeof e}\".`)}Dr.valueToBytes=jtt;function n4t(e){let t=new Array(e.length),r=0;for(let o=0;o<e.length;o++){let s=jtt(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=n4t;function o4t(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=o4t});var qtt=X(rF=>{\"use strict\";c();Object.defineProperty(rF,\"__esModule\",{value:!0});rF.ChecksumStruct=void 0;var $tt=(gb(),Kr(bb)),a4t=lre();rF.ChecksumStruct=(0,$tt.size)((0,a4t.base64)((0,$tt.string)(),{paddingRequired:!0}),44,44)});var Ktt=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)),i4t=hh(),Gtt=pre(),nF=P4(),Vtt=(0,fo.union)([(0,fo.number)(),(0,fo.bigint)(),(0,fo.string)(),nF.StrictHexStruct]),s4t=(0,fo.coerce)((0,fo.number)(),Vtt,Number),c4t=(0,fo.coerce)((0,fo.bigint)(),Vtt,BigInt),vJn=(0,fo.union)([nF.StrictHexStruct,(0,fo.instance)(Uint8Array)]),u4t=(0,fo.coerce)((0,fo.instance)(Uint8Array),(0,fo.union)([nF.StrictHexStruct]),Gtt.hexToBytes),l4t=(0,fo.coerce)(nF.StrictHexStruct,(0,fo.instance)(Uint8Array),Gtt.bytesToHex);function f4t(e){try{let t=(0,fo.create)(e,s4t);return(0,i4t.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=f4t;function d4t(e){try{return(0,fo.create)(e,c4t)}catch(t){throw t instanceof fo.StructError?new Error(`Expected a number-like value, got \"${String(t.value)}\".`):t}}cp.createBigInt=d4t;function p4t(e){if(typeof e==\"string\"&&e.toLowerCase()===\"0x\")return new Uint8Array;try{return(0,fo.create)(e,u4t)}catch(t){throw t instanceof fo.StructError?new Error(`Expected a bytes-like value, got \"${String(t.value)}\".`):t}}cp.createBytes=p4t;function m4t(e){if(e instanceof Uint8Array&&e.length===0||typeof e==\"string\"&&e.toLowerCase()===\"0x\")return\"0x\";try{return(0,fo.create)(e,l4t)}catch(t){throw t instanceof fo.StructError?new Error(`Expected a bytes-like value, got \"${String(t.value)}\".`):t}}cp.createHex=m4t});var Qtt=X(lp=>{\"use strict\";c();var Wtt=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 R4=class{constructor(t){of.set(this,void 0),Wtt(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=R4;var M4=class{constructor(t){up.set(this,void 0),Wtt(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=M4;Object.freeze(R4);Object.freeze(R4.prototype);Object.freeze(M4);Object.freeze(M4.prototype)});var Jtt=X(Ztt=>{\"use strict\";c();Object.defineProperty(Ztt,\"__esModule\",{value:!0})});var Ytt=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(),h4t=()=>(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)(),h4t(),(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 y4t(e){return(0,At.is)(e,Be.JsonStruct)}Be.isValidJson=y4t;function b4t(e){(0,xb.assertStruct)(e,Be.JsonStruct,\"Invalid JSON value\");let t=JSON.stringify(e);return new TextEncoder().encode(t).byteLength}Be.getJsonSize=b4t;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 g4t(e){return(0,At.is)(e,Be.JsonRpcNotificationStruct)}Be.isJsonRpcNotification=g4t;function x4t(e,t){(0,xb.assertStruct)(e,Be.JsonRpcNotificationStruct,\"Invalid JSON-RPC notification\",t)}Be.assertIsJsonRpcNotification=x4t;function v4t(e){return(0,At.is)(e,Be.JsonRpcRequestStruct)}Be.isJsonRpcRequest=v4t;function w4t(e,t){(0,xb.assertStruct)(e,Be.JsonRpcRequestStruct,\"Invalid JSON-RPC request\",t)}Be.assertIsJsonRpcRequest=w4t;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 E4t(e){return(0,At.is)(e,Be.PendingJsonRpcResponseStruct)}Be.isPendingJsonRpcResponse=E4t;function A4t(e,t){(0,xb.assertStruct)(e,Be.PendingJsonRpcResponseStruct,\"Invalid pending JSON-RPC response\",t)}Be.assertIsPendingJsonRpcResponse=A4t;function S4t(e){return(0,At.is)(e,Be.JsonRpcResponseStruct)}Be.isJsonRpcResponse=S4t;function C4t(e,t){(0,xb.assertStruct)(e,Be.JsonRpcResponseStruct,\"Invalid JSON-RPC response\",t)}Be.assertIsJsonRpcResponse=C4t;function T4t(e){return(0,At.is)(e,Be.JsonRpcSuccessStruct)}Be.isJsonRpcSuccess=T4t;function _4t(e,t){(0,xb.assertStruct)(e,Be.JsonRpcSuccessStruct,\"Invalid JSON-RPC success response\",t)}Be.assertIsJsonRpcSuccess=_4t;function k4t(e){return(0,At.is)(e,Be.JsonRpcFailureStruct)}Be.isJsonRpcFailure=k4t;function B4t(e,t){(0,xb.assertStruct)(e,Be.JsonRpcFailureStruct,\"Invalid JSON-RPC failure response\",t)}Be.assertIsJsonRpcFailure=B4t;function I4t(e){return(0,At.is)(e,Be.JsonRpcErrorStruct)}Be.isJsonRpcError=I4t;function P4t(e,t){(0,xb.assertStruct)(e,Be.JsonRpcErrorStruct,\"Invalid JSON-RPC error\",t)}Be.assertIsJsonRpcError=P4t;function R4t(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=R4t});var ert=X(Xtt=>{\"use strict\";c();Object.defineProperty(Xtt,\"__esModule\",{value:!0})});var rrt=X((PJn,trt)=>{c();var W3=1e3,Q3=W3*60,Z3=Q3*60,r2=Z3*24,M4t=r2*7,O4t=r2*365.25;trt.exports=function(e,t){t=t||{};var r=typeof e;if(r===\"string\"&&e.length>0)return N4t(e);if(r===\"number\"&&isFinite(e))return t.long?D4t(e):U4t(e);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(e))};function N4t(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*O4t;case\"weeks\":case\"week\":case\"w\":return r*M4t;case\"days\":case\"day\":case\"d\":return r*r2;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*Z3;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*Q3;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*W3;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function U4t(e){var t=Math.abs(e);return t>=r2?Math.round(e/r2)+\"d\":t>=Z3?Math.round(e/Z3)+\"h\":t>=Q3?Math.round(e/Q3)+\"m\":t>=W3?Math.round(e/W3)+\"s\":e+\"ms\"}function D4t(e){var t=Math.abs(e);return t>=r2?oF(e,t,r2,\"day\"):t>=Z3?oF(e,t,Z3,\"hour\"):t>=Q3?oF(e,t,Q3,\"minute\"):t>=W3?oF(e,t,W3,\"second\"):e+\" ms\"}function oF(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+\" \"+n+(o?\"s\":\"\")}});var ort=X((MJn,nrt)=>{c();function H4t(e){r.debug=r,r.default=r,r.coerce=d,r.disable=u,r.enable=o,r.enabled=f,r.humanize=rrt(),r.destroy=p,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 k(...P){if(!k.enabled)return;let M=k,U=Number(new Date),O=U-(y||U);M.diff=O,M.prev=y,M.curr=U,y=U,P[0]=r.coerce(P[0]),typeof P[0]!=\"string\"&&P.unshift(\"%O\");let N=0;P[0]=P[0].replace(/%([a-zA-Z%])/g,(K,G)=>{if(K===\"%%\")return\"%\";N++;let J=r.formatters[G];if(typeof J==\"function\"){let Y=P[N];K=J.call(M,Y),P.splice(N,1),N--}return K}),r.formatArgs.call(M,P),(M.log||r.log).apply(M,P)}return k.namespace=h,k.useColors=r.useColors(),k.color=r.selectColor(h),k.extend=n,k.destroy=r.destroy,Object.defineProperty(k,\"enabled\",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(E!==r.namespaces&&(E=r.namespaces,C=r.enabled(h)),C),set:P=>{v=P}}),typeof r.init==\"function\"&&r.init(k),k}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,k=0;for(;v<h.length;)if(E<y.length&&(y[E]===h[v]||y[E]===\"*\"))y[E]===\"*\"?(C=E,k=v,E++):(v++,E++);else if(C!==-1)E=C+1,k++,v=k;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 p(){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}nrt.exports=H4t});var art=X((nc,aF)=>{c();nc.formatArgs=F4t;nc.save=z4t;nc.load=j4t;nc.useColors=L4t;nc.storage=$4t();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 L4t(){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 F4t(e){if(e[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+e[0]+(this.useColors?\"%c \":\" \")+\"+\"+aF.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 z4t(e){try{e?nc.storage.setItem(\"debug\",e):nc.storage.removeItem(\"debug\")}catch{}}function j4t(){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 $4t(){try{return localStorage}catch{}}aF.exports=ort()(nc);var{formatters:q4t}=aF.exports;q4t.j=function(e){try{return JSON.stringify(e)}catch(t){return\"[UnexpectedJSONParseError]: \"+t.message}}});var irt=X(vb=>{\"use strict\";c();var G4t=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 V4t=G4t(art()),K4t=(0,V4t.default)(\"metamask\");function W4t(e){return K4t.extend(e)}vb.createProjectLogger=W4t;function Q4t(e,t){return e.extend(t)}vb.createModuleLogger=Q4t});var crt=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 Z4t(e){return Array.isArray(e)&&e.length>0}eo.isNonEmptyArray=Z4t;function J4t(e){return e==null}eo.isNullOrUndefined=J4t;function Y4t(e){return!!e&&typeof e==\"object\"&&!Array.isArray(e)}eo.isObject=Y4t;var X4t=(e,t)=>Object.hasOwnProperty.call(e,t);eo.hasProperty=X4t;var ekt;(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\"})(ekt=eo.JsonSize||(eo.JsonSize={}));eo.ESCAPE_CHARACTERS_REGEXP=/\"|\\\\\\\\|\\\\n|\\\\r|\\\\t/gu;function tkt(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=tkt;function srt(e){return e.charCodeAt(0)<=127}eo.isASCII=srt;function rkt(e){var t;return e.split(\"\").reduce((n,o)=>srt(o)?n+1:n+2,0)+((t=e.match(eo.ESCAPE_CHARACTERS_REGEXP))!==null&&t!==void 0?t:[]).length}eo.calculateStringSize=rkt;function nkt(e){return e.toString().length}eo.calculateNumberSize=nkt});var urt=X(fp=>{\"use strict\";c();Object.defineProperty(fp,\"__esModule\",{value:!0});fp.hexToBigInt=fp.hexToNumber=fp.bigIntToHex=fp.numberToHex=void 0;var J3=hh(),O4=P4(),okt=e=>((0,J3.assert)(typeof e==\"number\",\"Value must be a number.\"),(0,J3.assert)(e>=0,\"Value must be a non-negative number.\"),(0,J3.assert)(Number.isSafeInteger(e),\"Value is not a safe integer. Use `bigIntToHex` instead.\"),(0,O4.add0x)(e.toString(16)));fp.numberToHex=okt;var akt=e=>((0,J3.assert)(typeof e==\"bigint\",\"Value must be a bigint.\"),(0,J3.assert)(e>=0,\"Value must be a non-negative bigint.\"),(0,O4.add0x)(e.toString(16)));fp.bigIntToHex=akt;var ikt=e=>{(0,O4.assertIsHexString)(e);let t=parseInt(e,16);return(0,J3.assert)(Number.isSafeInteger(t),\"Value is not a safe integer. Use `hexToBigInt` instead.\"),t};fp.hexToNumber=ikt;var skt=e=>((0,O4.assertIsHexString)(e),BigInt((0,O4.add0x)(e)));fp.hexToBigInt=skt});var frt=X(lrt=>{\"use strict\";c();Object.defineProperty(lrt,\"__esModule\",{value:!0})});var prt=X(yh=>{\"use strict\";c();Object.defineProperty(yh,\"__esModule\",{value:!0});yh.timeSince=yh.inMilliseconds=yh.Duration=void 0;var ckt;(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\"})(ckt=yh.Duration||(yh.Duration={}));var ukt=e=>Number.isInteger(e)&&e>=0,drt=(e,t)=>{if(!ukt(e))throw new Error(`\"${t}\" must be a non-negative integer. Received: \"${e}\".`)};function lkt(e,t){return drt(e,\"count\"),e*t}yh.inMilliseconds=lkt;function fkt(e){return drt(e,\"timestamp\"),Date.now()-e}yh.timeSince=fkt});var hrt=X(mrt=>{\"use strict\";c();Object.defineProperty(mrt,\"__esModule\",{value:!0})});var N4=X((WJn,yrt)=>{\"use strict\";c();var dkt=\"2.0.0\",pkt=Number.MAX_SAFE_INTEGER||9007199254740991,mkt=16,hkt=250,ykt=[\"major\",\"premajor\",\"minor\",\"preminor\",\"patch\",\"prepatch\",\"prerelease\"];yrt.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:mkt,MAX_SAFE_BUILD_LENGTH:hkt,MAX_SAFE_INTEGER:pkt,RELEASE_TYPES:ykt,SEMVER_SPEC_VERSION:dkt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var U4=X((ZJn,brt)=>{\"use strict\";c();var bkt=typeof process==\"object\"&&process.env&&process.env.NODE_DEBUG&&/\\\\bsemver\\\\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(\"SEMVER\",...e):()=>{};brt.exports=bkt});var Y3=X((dp,grt)=>{\"use strict\";c();var{MAX_SAFE_COMPONENT_LENGTH:mre,MAX_SAFE_BUILD_LENGTH:gkt,MAX_LENGTH:xkt}=N4(),vkt=U4();dp=grt.exports={};var wkt=dp.re=[],Ekt=dp.safeRe=[],Qe=dp.src=[],Akt=dp.safeSrc=[],Ze=dp.t={},Skt=0,hre=\"[a-zA-Z0-9-]\",Ckt=[[\"\\\\\\\\s\",1],[\"\\\\\\\\d\",xkt],[hre,gkt]],Tkt=e=>{for(let[t,r]of Ckt)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Mt=(e,t,r)=>{let n=Tkt(t),o=Skt++;vkt(e,o,t),Ze[e]=o,Qe[o]=t,Akt[o]=n,wkt[o]=new RegExp(t,r?\"g\":void 0),Ekt[o]=new RegExp(n,r?\"g\":void 0)};Mt(\"NUMERICIDENTIFIER\",\"0|[1-9]\\\\\\\\d*\");Mt(\"NUMERICIDENTIFIERLOOSE\",\"\\\\\\\\d+\");Mt(\"NONNUMERICIDENTIFIER\",`\\\\\\\\d*[a-zA-Z-]${hre}*`);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\",`${hre}+`);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,${mre}})(?:\\\\\\\\.(\\\\\\\\d{1,${mre}}))?(?:\\\\\\\\.(\\\\\\\\d{1,${mre}}))?`);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 iF=X((XJn,xrt)=>{\"use strict\";c();var _kt=Object.freeze({loose:!0}),kkt=Object.freeze({}),Bkt=e=>e?typeof e!=\"object\"?_kt:e:kkt;xrt.exports=Bkt});var yre=X((tYn,Ert)=>{\"use strict\";c();var vrt=/^[0-9]+$/,wrt=(e,t)=>{if(typeof e==\"number\"&&typeof t==\"number\")return e===t?0:e<t?-1:1;let r=vrt.test(e),n=vrt.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Ikt=(e,t)=>wrt(t,e);Ert.exports={compareIdentifiers:wrt,rcompareIdentifiers:Ikt}});var _i=X((nYn,Srt)=>{\"use strict\";c();var sF=U4(),{MAX_LENGTH:Art,MAX_SAFE_INTEGER:cF}=N4(),{safeRe:uF,t:lF}=Y3(),Pkt=iF(),{compareIdentifiers:bre}=yre(),gre=class e{constructor(t,r){if(r=Pkt(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`);sF(\"SemVer\",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?uF[lF.LOOSE]:uF[lF.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>cF||this.major<0)throw new TypeError(\"Invalid major version\");if(this.minor>cF||this.minor<0)throw new TypeError(\"Invalid minor version\");if(this.patch>cF||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<cF)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(sF(\"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(sF(\"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 bre(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(sF(\"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 bre(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?uF[lF.PRERELEASELOOSE]:uF[lF.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]),bre(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}};Srt.exports=gre});var n2=X((aYn,Trt)=>{\"use strict\";c();var Crt=_i(),Rkt=(e,t,r=!1)=>{if(e instanceof Crt)return e;try{return new Crt(e,t)}catch(n){if(!r)return null;throw n}};Trt.exports=Rkt});var krt=X((sYn,_rt)=>{\"use strict\";c();var Mkt=n2(),Okt=(e,t)=>{let r=Mkt(e,t);return r?r.version:null};_rt.exports=Okt});var Irt=X((uYn,Brt)=>{\"use strict\";c();var Nkt=n2(),Ukt=(e,t)=>{let r=Nkt(e.trim().replace(/^[=v]+/,\"\"),t);return r?r.version:null};Brt.exports=Ukt});var Mrt=X((fYn,Rrt)=>{\"use strict\";c();var Prt=_i(),Dkt=(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}};Rrt.exports=Dkt});var Urt=X((pYn,Nrt)=>{\"use strict\";c();var Ort=n2(),Hkt=(e,t)=>{let r=Ort(e,null,!0),n=Ort(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\"};Nrt.exports=Hkt});var Hrt=X((hYn,Drt)=>{\"use strict\";c();var Lkt=_i(),Fkt=(e,t)=>new Lkt(e,t).major;Drt.exports=Fkt});var Frt=X((bYn,Lrt)=>{\"use strict\";c();var zkt=_i(),jkt=(e,t)=>new zkt(e,t).minor;Lrt.exports=jkt});var jrt=X((xYn,zrt)=>{\"use strict\";c();var $kt=_i(),qkt=(e,t)=>new $kt(e,t).patch;zrt.exports=qkt});var qrt=X((wYn,$rt)=>{\"use strict\";c();var Gkt=n2(),Vkt=(e,t)=>{let r=Gkt(e,t);return r&&r.prerelease.length?r.prerelease:null};$rt.exports=Vkt});var Xu=X((AYn,Vrt)=>{\"use strict\";c();var Grt=_i(),Kkt=(e,t,r)=>new Grt(e,r).compare(new Grt(t,r));Vrt.exports=Kkt});var Wrt=X((CYn,Krt)=>{\"use strict\";c();var Wkt=Xu(),Qkt=(e,t,r)=>Wkt(t,e,r);Krt.exports=Qkt});var Zrt=X((_Yn,Qrt)=>{\"use strict\";c();var Zkt=Xu(),Jkt=(e,t)=>Zkt(e,t,!0);Qrt.exports=Jkt});var fF=X((BYn,Yrt)=>{\"use strict\";c();var Jrt=_i(),Ykt=(e,t,r)=>{let n=new Jrt(e,r),o=new Jrt(t,r);return n.compare(o)||n.compareBuild(o)};Yrt.exports=Ykt});var ent=X((PYn,Xrt)=>{\"use strict\";c();var Xkt=fF(),e7t=(e,t)=>e.sort((r,n)=>Xkt(r,n,t));Xrt.exports=e7t});var rnt=X((MYn,tnt)=>{\"use strict\";c();var t7t=fF(),r7t=(e,t)=>e.sort((r,n)=>t7t(n,r,t));tnt.exports=r7t});var D4=X((NYn,nnt)=>{\"use strict\";c();var n7t=Xu(),o7t=(e,t,r)=>n7t(e,t,r)>0;nnt.exports=o7t});var dF=X((DYn,ont)=>{\"use strict\";c();var a7t=Xu(),i7t=(e,t,r)=>a7t(e,t,r)<0;ont.exports=i7t});var xre=X((LYn,ant)=>{\"use strict\";c();var s7t=Xu(),c7t=(e,t,r)=>s7t(e,t,r)===0;ant.exports=c7t});var vre=X((zYn,int)=>{\"use strict\";c();var u7t=Xu(),l7t=(e,t,r)=>u7t(e,t,r)!==0;int.exports=l7t});var pF=X(($Yn,snt)=>{\"use strict\";c();var f7t=Xu(),d7t=(e,t,r)=>f7t(e,t,r)>=0;snt.exports=d7t});var mF=X((GYn,cnt)=>{\"use strict\";c();var p7t=Xu(),m7t=(e,t,r)=>p7t(e,t,r)<=0;cnt.exports=m7t});var wre=X((KYn,unt)=>{\"use strict\";c();var h7t=xre(),y7t=vre(),b7t=D4(),g7t=pF(),x7t=dF(),v7t=mF(),w7t=(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 h7t(e,r,n);case\"!=\":return y7t(e,r,n);case\">\":return b7t(e,r,n);case\">=\":return g7t(e,r,n);case\"<\":return x7t(e,r,n);case\"<=\":return v7t(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};unt.exports=w7t});var fnt=X((QYn,lnt)=>{\"use strict\";c();var E7t=_i(),A7t=n2(),{safeRe:hF,t:yF}=Y3(),S7t=(e,t)=>{if(e instanceof E7t)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?hF[yF.COERCEFULL]:hF[yF.COERCE]);else{let d=t.includePrerelease?hF[yF.COERCERTLFULL]:hF[yF.COERCERTL],p;for(;(p=d.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||p.index+p[0].length!==r.index+r[0].length)&&(r=p),d.lastIndex=p.index+p[1].length+p[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 A7t(`${n}.${o}.${s}${u}${f}`,t)};lnt.exports=S7t});var pnt=X((JYn,dnt)=>{\"use strict\";c();var Ere=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}};dnt.exports=Ere});var el=X((XYn,bnt)=>{\"use strict\";c();var C7t=/\\\\s+/g,Are=class e{constructor(t,r){if(r=_7t(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof Sre)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(C7t,\" \"),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=>!hnt(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&&O7t(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&&R7t)|(this.options.loose&&M7t))+\":\"+t,o=mnt.get(n);if(o)return o;let s=this.options.loose,u=s?ms[ki.HYPHENRANGELOOSE]:ms[ki.HYPHENRANGE];t=t.replace(u,q7t(this.options.includePrerelease)),qn(\"hyphen replace\",t),t=t.replace(ms[ki.COMPARATORTRIM],B7t),qn(\"comparator trim\",t),t=t.replace(ms[ki.TILDETRIM],I7t),qn(\"tilde trim\",t),t=t.replace(ms[ki.CARETTRIM],P7t),qn(\"caret trim\",t);let f=t.split(\" \").map(y=>N7t(y,this.options)).join(\" \").split(/\\\\s+/).map(y=>$7t(y,this.options));s&&(f=f.filter(y=>(qn(\"loose invalid filter\",y,this.options),!!y.match(ms[ki.COMPARATORLOOSE])))),qn(\"range list\",f);let d=new Map,p=f.map(y=>new Sre(y,this.options));for(let y of p){if(hnt(y))return[y];d.set(y.value,y)}d.size>1&&d.has(\"\")&&d.delete(\"\");let h=[...d.values()];return mnt.set(n,h),h}intersects(t,r){if(!(t instanceof e))throw new TypeError(\"a Range is required\");return this.set.some(n=>ynt(n,r)&&t.set.some(o=>ynt(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 k7t(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(G7t(this.set[r],t,this.options))return!0;return!1}};bnt.exports=Are;var T7t=pnt(),mnt=new T7t,_7t=iF(),Sre=H4(),qn=U4(),k7t=_i(),{safeRe:ms,t:ki,comparatorTrimReplace:B7t,tildeTrimReplace:I7t,caretTrimReplace:P7t}=Y3(),{FLAG_INCLUDE_PRERELEASE:R7t,FLAG_LOOSE:M7t}=N4(),hnt=e=>e.value===\"<0.0.0-0\",O7t=e=>e.value===\"\",ynt=(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},N7t=(e,t)=>(e=e.replace(ms[ki.BUILD],\"\"),qn(\"comp\",e,t),e=H7t(e,t),qn(\"caret\",e),e=U7t(e,t),qn(\"tildes\",e),e=F7t(e,t),qn(\"xrange\",e),e=j7t(e,t),qn(\"stars\",e),e),hs=e=>!e||e.toLowerCase()===\"x\"||e===\"*\",U7t=(e,t)=>e.trim().split(/\\\\s+/).map(r=>D7t(r,t)).join(\" \"),D7t=(e,t)=>{let r=t.loose?ms[ki.TILDELOOSE]:ms[ki.TILDE];return e.replace(r,(n,o,s,u,f)=>{qn(\"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?(qn(\"replaceTilde pr\",f),d=`>=${o}.${s}.${u}-${f} <${o}.${+s+1}.0-0`):d=`>=${o}.${s}.${u} <${o}.${+s+1}.0-0`,qn(\"tilde return\",d),d})},H7t=(e,t)=>e.trim().split(/\\\\s+/).map(r=>L7t(r,t)).join(\" \"),L7t=(e,t)=>{qn(\"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)=>{qn(\"caret\",e,o,s,u,f,d);let p;return hs(s)?p=\"\":hs(u)?p=`>=${s}.0.0${n} <${+s+1}.0.0-0`:hs(f)?s===\"0\"?p=`>=${s}.${u}.0${n} <${s}.${+u+1}.0-0`:p=`>=${s}.${u}.0${n} <${+s+1}.0.0-0`:d?(qn(\"replaceCaret pr\",d),s===\"0\"?u===\"0\"?p=`>=${s}.${u}.${f}-${d} <${s}.${u}.${+f+1}-0`:p=`>=${s}.${u}.${f}-${d} <${s}.${+u+1}.0-0`:p=`>=${s}.${u}.${f}-${d} <${+s+1}.0.0-0`):(qn(\"no pr\"),s===\"0\"?u===\"0\"?p=`>=${s}.${u}.${f}${n} <${s}.${u}.${+f+1}-0`:p=`>=${s}.${u}.${f}${n} <${s}.${+u+1}.0-0`:p=`>=${s}.${u}.${f} <${+s+1}.0.0-0`),qn(\"caret return\",p),p})},F7t=(e,t)=>(qn(\"replaceXRanges\",e,t),e.split(/\\\\s+/).map(r=>z7t(r,t)).join(\" \")),z7t=(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)=>{qn(\"xRange\",e,n,o,s,u,f,d);let p=hs(s),h=p||hs(u),y=h||hs(f),v=y;return o===\"=\"&&v&&(o=\"\"),d=t.includePrerelease?\"-0\":\"\",p?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`),qn(\"xRange return\",n),n})},j7t=(e,t)=>(qn(\"replaceStars\",e,t),e.trim().replace(ms[ki.STAR],\"\")),$7t=(e,t)=>(qn(\"replaceGTE0\",e,t),e.trim().replace(ms[t.includePrerelease?ki.GTE0PRE:ki.GTE0],\"\")),q7t=e=>(t,r,n,o,s,u,f,d,p,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(p)?d=\"\":hs(h)?d=`<${+p+1}.0.0-0`:hs(y)?d=`<${p}.${+h+1}.0-0`:v?d=`<=${p}.${h}.${y}-${v}`:e?d=`<${p}.${h}.${+y+1}-0`:d=`<=${d}`,`${r} ${d}`.trim()),G7t=(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(qn(e[n].semver),e[n].semver!==Sre.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 H4=X((tXn,Ant)=>{\"use strict\";c();var L4=Symbol(\"SemVer ANY\"),_re=class e{static get ANY(){return L4}constructor(t,r){if(r=gnt(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\\\\s+/).join(\" \"),Tre(\"comparator\",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===L4?this.value=\"\":this.value=this.operator+this.semver.version,Tre(\"comp\",this)}parse(t){let r=this.options.loose?xnt[vnt.COMPARATORLOOSE]:xnt[vnt.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 wnt(n[2],this.options.loose):this.semver=L4}toString(){return this.value}test(t){if(Tre(\"Comparator.test\",t,this.options.loose),this.semver===L4||t===L4)return!0;if(typeof t==\"string\")try{t=new wnt(t,this.options)}catch{return!1}return Cre(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 Ent(t.value,r).test(this.value):t.operator===\"\"?t.value===\"\"?!0:new Ent(this.value,r).test(t.semver):(r=gnt(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(\"=\")||Cre(this.semver,\"<\",t.semver,r)&&this.operator.startsWith(\">\")&&t.operator.startsWith(\"<\")||Cre(this.semver,\">\",t.semver,r)&&this.operator.startsWith(\"<\")&&t.operator.startsWith(\">\")))}};Ant.exports=_re;var gnt=iF(),{safeRe:xnt,t:vnt}=Y3(),Cre=wre(),Tre=U4(),wnt=_i(),Ent=el()});var F4=X((nXn,Snt)=>{\"use strict\";c();var V7t=el(),K7t=(e,t,r)=>{try{t=new V7t(t,r)}catch{return!1}return t.test(e)};Snt.exports=K7t});var Tnt=X((aXn,Cnt)=>{\"use strict\";c();var W7t=el(),Q7t=(e,t)=>new W7t(e,t).set.map(r=>r.map(n=>n.value).join(\" \").trim().split(\" \"));Cnt.exports=Q7t});var knt=X((sXn,_nt)=>{\"use strict\";c();var Z7t=_i(),J7t=el(),Y7t=(e,t,r)=>{let n=null,o=null,s=null;try{s=new J7t(t,r)}catch{return null}return e.forEach(u=>{s.test(u)&&(!n||o.compare(u)===-1)&&(n=u,o=new Z7t(n,r))}),n};_nt.exports=Y7t});var Int=X((uXn,Bnt)=>{\"use strict\";c();var X7t=_i(),e9t=el(),t9t=(e,t,r)=>{let n=null,o=null,s=null;try{s=new e9t(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};Bnt.exports=t9t});var Mnt=X((fXn,Rnt)=>{\"use strict\";c();var kre=_i(),r9t=el(),Pnt=D4(),n9t=(e,t)=>{e=new r9t(e,t);let r=new kre(\"0.0.0\");if(e.test(r)||(r=new kre(\"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 kre(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};Rnt.exports=n9t});var Nnt=X((pXn,Ont)=>{\"use strict\";c();var o9t=el(),a9t=(e,t)=>{try{return new o9t(e,t).range||\"*\"}catch{return null}};Ont.exports=a9t});var bF=X((hXn,Lnt)=>{\"use strict\";c();var i9t=_i(),Hnt=H4(),{ANY:s9t}=Hnt,c9t=el(),u9t=F4(),Unt=D4(),Dnt=dF(),l9t=mF(),f9t=pF(),d9t=(e,t,r,n)=>{e=new i9t(e,n),t=new c9t(t,n);let o,s,u,f,d;switch(r){case\">\":o=Unt,s=l9t,u=Dnt,f=\">\",d=\">=\";break;case\"<\":o=Dnt,s=f9t,u=Unt,f=\"<\",d=\"<=\";break;default:throw new TypeError(\\'Must provide a hilo val of \"<\" or \">\"\\')}if(u9t(e,t,n))return!1;for(let p=0;p<t.set.length;++p){let h=t.set[p],y=null,v=null;if(h.forEach(E=>{E.semver===s9t&&(E=new Hnt(\">=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};Lnt.exports=d9t});var znt=X((bXn,Fnt)=>{\"use strict\";c();var p9t=bF(),m9t=(e,t,r)=>p9t(e,t,\">\",r);Fnt.exports=m9t});var $nt=X((xXn,jnt)=>{\"use strict\";c();var h9t=bF(),y9t=(e,t,r)=>h9t(e,t,\"<\",r);jnt.exports=y9t});var Vnt=X((wXn,Gnt)=>{\"use strict\";c();var qnt=el(),b9t=(e,t,r)=>(e=new qnt(e,r),t=new qnt(t,r),e.intersects(t,r));Gnt.exports=b9t});var Wnt=X((AXn,Knt)=>{\"use strict\";c();var g9t=F4(),x9t=Xu();Knt.exports=(e,t,r)=>{let n=[],o=null,s=null,u=e.sort((h,y)=>x9t(h,y,r));for(let h of u)g9t(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(\" || \"),p=typeof t.raw==\"string\"?t.raw:String(t);return d.length<p.length?d:t}});var eot=X((CXn,Xnt)=>{\"use strict\";c();var Qnt=el(),Ire=H4(),{ANY:Bre}=Ire,z4=F4(),Pre=Xu(),v9t=(e,t,r={})=>{if(e===t)return!0;e=new Qnt(e,r),t=new Qnt(t,r);let n=!1;e:for(let o of e.set){for(let s of t.set){let u=E9t(o,s,r);if(n=n||u!==null,u)continue e}if(n)return!1}return!0},w9t=[new Ire(\">=0.0.0-0\")],Znt=[new Ire(\">=0.0.0\")],E9t=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Bre){if(t.length===1&&t[0].semver===Bre)return!0;r.includePrerelease?e=w9t:e=Znt}if(t.length===1&&t[0].semver===Bre){if(r.includePrerelease)return!0;t=Znt}let n=new Set,o,s;for(let E of e)E.operator===\">\"||E.operator===\">=\"?o=Jnt(o,E,r):E.operator===\"<\"||E.operator===\"<=\"?s=Ynt(s,E,r):n.add(E.semver);if(n.size>1)return null;let u;if(o&&s){if(u=Pre(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&&!z4(E,String(o),r)||s&&!z4(E,String(s),r))return null;for(let C of t)if(!z4(E,String(C),r))return!1;return!0}let f,d,p,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===\">=\",p=p||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=Jnt(o,E,r),f===E&&f!==o)return!1}else if(o.operator===\">=\"&&!z4(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=Ynt(s,E,r),d===E&&d!==s)return!1}else if(s.operator===\"<=\"&&!z4(s.semver,String(E),r))return!1}if(!E.operator&&(s||o)&&u!==0)return!1}return!(o&&p&&!s&&u!==0||s&&h&&!o&&u!==0||v||y)},Jnt=(e,t,r)=>{if(!e)return t;let n=Pre(e.semver,t.semver,r);return n>0?e:n<0||t.operator===\">\"&&e.operator===\">=\"?t:e},Ynt=(e,t,r)=>{if(!e)return t;let n=Pre(e.semver,t.semver,r);return n<0?e:n>0||t.operator===\"<\"&&e.operator===\"<=\"?t:e};Xnt.exports=v9t});var oot=X((_Xn,not)=>{\"use strict\";c();var Rre=Y3(),tot=N4(),A9t=_i(),rot=yre(),S9t=n2(),C9t=krt(),T9t=Irt(),_9t=Mrt(),k9t=Urt(),B9t=Hrt(),I9t=Frt(),P9t=jrt(),R9t=qrt(),M9t=Xu(),O9t=Wrt(),N9t=Zrt(),U9t=fF(),D9t=ent(),H9t=rnt(),L9t=D4(),F9t=dF(),z9t=xre(),j9t=vre(),$9t=pF(),q9t=mF(),G9t=wre(),V9t=fnt(),K9t=H4(),W9t=el(),Q9t=F4(),Z9t=Tnt(),J9t=knt(),Y9t=Int(),X9t=Mnt(),eBt=Nnt(),tBt=bF(),rBt=znt(),nBt=$nt(),oBt=Vnt(),aBt=Wnt(),iBt=eot();not.exports={parse:S9t,valid:C9t,clean:T9t,inc:_9t,diff:k9t,major:B9t,minor:I9t,patch:P9t,prerelease:R9t,compare:M9t,rcompare:O9t,compareLoose:N9t,compareBuild:U9t,sort:D9t,rsort:H9t,gt:L9t,lt:F9t,eq:z9t,neq:j9t,gte:$9t,lte:q9t,cmp:G9t,coerce:V9t,Comparator:K9t,Range:W9t,satisfies:Q9t,toComparators:Z9t,maxSatisfying:J9t,minSatisfying:Y9t,minVersion:X9t,validRange:eBt,outside:tBt,gtr:rBt,ltr:nBt,intersects:oBt,simplifyRange:aBt,subset:iBt,SemVer:A9t,re:Rre.re,src:Rre.src,tokens:Rre.t,SEMVER_SPEC_VERSION:tot.SEMVER_SPEC_VERSION,RELEASE_TYPES:tot.RELEASE_TYPES,compareIdentifiers:rot.compareIdentifiers,rcompareIdentifiers:rot.rcompareIdentifiers}});var iot=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 j4=oot(),X3=(gb(),Kr(bb)),aot=hh();to.VersionStruct=(0,X3.refine)((0,X3.string)(),\"Version\",e=>(0,j4.valid)(e)===null?`Expected SemVer version, got \"${e}\"`:!0);to.VersionRangeStruct=(0,X3.refine)((0,X3.string)(),\"Version range\",e=>(0,j4.validRange)(e)===null?`Expected SemVer range, got \"${e}\"`:!0);function sBt(e){return(0,X3.is)(e,to.VersionStruct)}to.isValidSemVerVersion=sBt;function cBt(e){return(0,X3.is)(e,to.VersionRangeStruct)}to.isValidSemVerRange=cBt;function uBt(e){(0,aot.assertStruct)(e,to.VersionStruct)}to.assertIsSemVerVersion=uBt;function lBt(e){(0,aot.assertStruct)(e,to.VersionRangeStruct)}to.assertIsSemVerRange=lBt;function fBt(e,t){return(0,j4.gt)(e,t)}to.gtVersion=fBt;function dBt(e,t){return(0,j4.gtr)(e,t)}to.gtRange=dBt;function pBt(e,t){return(0,j4.satisfies)(e,t,{includePrerelease:!0})}to.satisfiesVersionRange=pBt});var sot=X(po=>{\"use strict\";c();var mBt=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)&&mBt(t,e,r)};Object.defineProperty(po,\"__esModule\",{value:!0});ri(hh(),po);ri(lre(),po);ri(pre(),po);ri(qtt(),po);ri(Ktt(),po);ri(Qtt(),po);ri(Jtt(),po);ri(P4(),po);ri(Ytt(),po);ri(ert(),po);ri(irt(),po);ri(crt(),po);ri(urt(),po);ri(frt(),po);ri(prt(),po);ri(hrt(),po);ri(iot(),po)});var uot=X(e8=>{\"use strict\";c();Object.defineProperty(e8,\"__esModule\",{value:!0});e8.createModuleLogger=e8.projectLogger=void 0;var cot=sot();Object.defineProperty(e8,\"createModuleLogger\",{enumerable:!0,get:function(){return cot.createModuleLogger}});e8.projectLogger=(0,cot.createProjectLogger)(\"eth-block-tracker\")});var mot=X(t8=>{\"use strict\";c();var pot=t8&&t8.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t8,\"__esModule\",{value:!0});t8.PollingBlockTracker=void 0;var hBt=pot(JL()),yBt=pot(gtt()),bBt=ore(),lot=uot(),fot=(0,lot.createModuleLogger)(lot.projectLogger,\"polling-block-tracker\"),gBt=(0,hBt.default)(),xBt=1e3,Mre=class extends bBt.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*xBt,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=dot(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=dot(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:gBt(),method:\"eth_blockNumber\",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0),fot(\"Making request\",t);let r=await(0,yBt.default)(n=>this._provider.sendAsync(t,n))();if(fot(\"Got response\",r),r.error)throw new Error(`PollingBlockTracker - encountered error fetching block:\\n${r.error.message}`);return r.result}};t8.PollingBlockTracker=Mre;function dot(e,t){return new Promise(r=>{let n=setTimeout(r,e);n.unref&&t&&n.unref()})}});var hot=X(r8=>{\"use strict\";c();var vBt=r8&&r8.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r8,\"__esModule\",{value:!0});r8.SubscribeBlockTracker=void 0;var wBt=vBt(JL()),EBt=ore(),ABt=(0,wBt.default)(),Ore=class extends EBt.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:ABt(),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)}};r8.SubscribeBlockTracker=Ore});var bot=X(wb=>{\"use strict\";c();var SBt=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]})),yot=wb&&wb.__exportStar||function(e,t){for(var r in e)r!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,r)&&SBt(t,e,r)};Object.defineProperty(wb,\"__esModule\",{value:!0});yot(mot(),wb);yot(hot(),wb)});var Ure=X(gF=>{\"use strict\";c();Object.defineProperty(gF,\"__esModule\",{value:!0});gF.getUniqueId=void 0;var got=4294967295,Nre=Math.floor(Math.random()*got);function CBt(){return Nre=(Nre+1)%got,Nre}gF.getUniqueId=CBt});var xot=X(xF=>{\"use strict\";c();Object.defineProperty(xF,\"__esModule\",{value:!0});xF.createIdRemapMiddleware=void 0;var TBt=Ure();function _Bt(){return(e,t,r,n)=>{let o=e.id,s=TBt.getUniqueId();e.id=s,t.id=s,r(u=>{e.id=o,t.id=o,u()})}}xF.createIdRemapMiddleware=_Bt});var vot=X(vF=>{\"use strict\";c();Object.defineProperty(vF,\"__esModule\",{value:!0});vF.createAsyncMiddleware=void 0;function kBt(e){return async(t,r,n,o)=>{let s,u=new Promise(h=>{s=h}),f=null,d=!1,p=async()=>{d=!0,n(h=>{f=h,s()}),await u};try{await e(t,r,p),d?(await u,f(null)):o(null)}catch(h){f?f(h):o(h)}}}vF.createAsyncMiddleware=kBt});var wot=X(wF=>{\"use strict\";c();Object.defineProperty(wF,\"__esModule\",{value:!0});wF.createScaffoldMiddleware=void 0;function BBt(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())}}wF.createScaffoldMiddleware=BBt});var Aot=X(Hre=>{\"use strict\";c();Object.defineProperty(Hre,\"__esModule\",{value:!0});var IBt=x4();function Eot(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(()=>{throw n})}}function PBt(e){let t=e.length,r=new Array(t);for(let n=0;n<t;n+=1)r[n]=e[n];return r}var Dre=class extends IBt.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\")Eot(s,this,r);else{let u=s.length,f=PBt(s);for(let d=0;d<u;d+=1)Eot(f[d],this,r)}return!0}};Hre.default=Dre});var Bot=X((JXn,kot)=>{c();kot.exports=$4;$4.default=$4;$4.stable=Tot;$4.stableStringify=Tot;var EF=\"[...]\",Sot=\"[Circular]\",a2=[],o2=[];function Cot(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function $4(e,t,r,n){typeof n>\"u\"&&(n=Cot()),Lre(e,\"\",0,[],void 0,0,n);var o;try{o2.length===0?o=JSON.stringify(e,t,r):o=JSON.stringify(e,_ot(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 n8(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 Lre(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){n8(Sot,e,t,o);return}if(typeof u.depthLimit<\"u\"&&s>u.depthLimit){n8(EF,e,t,o);return}if(typeof u.edgesLimit<\"u\"&&r+1>u.edgesLimit){n8(EF,e,t,o);return}if(n.push(e),Array.isArray(e))for(f=0;f<e.length;f++)Lre(e[f],f,f,n,e,s,u);else{var d=Object.keys(e);for(f=0;f<d.length;f++){var p=d[f];Lre(e[p],p,f,n,e,s,u)}}n.pop()}}function RBt(e,t){return e<t?-1:e>t?1:0}function Tot(e,t,r,n){typeof n>\"u\"&&(n=Cot());var o=Fre(e,\"\",0,[],void 0,0,n)||e,s;try{o2.length===0?s=JSON.stringify(o,t,r):s=JSON.stringify(o,_ot(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 Fre(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){n8(Sot,e,t,o);return}try{if(typeof e.toJSON==\"function\")return}catch{return}if(typeof u.depthLimit<\"u\"&&s>u.depthLimit){n8(EF,e,t,o);return}if(typeof u.edgesLimit<\"u\"&&r+1>u.edgesLimit){n8(EF,e,t,o);return}if(n.push(e),Array.isArray(e))for(f=0;f<e.length;f++)Fre(e[f],f,f,n,e,s,u);else{var d={},p=Object.keys(e).sort(RBt);for(f=0;f<p.length;f++){var h=p[f];Fre(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 _ot(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 SF=X(o8=>{\"use strict\";c();Object.defineProperty(o8,\"__esModule\",{value:!0});o8.EthereumProviderError=o8.EthereumRpcError=void 0;var MBt=Bot(),AF=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 MBt.default(this.serialize(),NBt,2)}};o8.EthereumRpcError=AF;var zre=class extends AF{constructor(t,r,n){if(!OBt(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,r,n)}};o8.EthereumProviderError=zre;function OBt(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function NBt(e,t){if(t!==\"[Circular]\")return t}});var CF=X(a8=>{\"use strict\";c();Object.defineProperty(a8,\"__esModule\",{value:!0});a8.errorValues=a8.errorCodes=void 0;a8.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}};a8.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 qre=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 TF=CF(),UBt=SF(),Iot=TF.errorCodes.rpc.internal,DBt=\"Unspecified error message. This is a bug, please report it.\",HBt={code:Iot,message:$re(Iot)};af.JSON_RPC_SERVER_ERROR_MESSAGE=\"Unspecified server error.\";function $re(e,t=DBt){if(Number.isInteger(e)){let r=e.toString();if(jre(TF.errorValues,r))return TF.errorValues[r].message;if(Mot(e))return af.JSON_RPC_SERVER_ERROR_MESSAGE}return t}af.getMessageFromCode=$re;function Rot(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(TF.errorValues[t]||Mot(e))}af.isValidCode=Rot;function LBt(e,{fallbackError:t=HBt,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 UBt.EthereumRpcError)return e.serialize();let s={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&jre(e,\"code\")&&Rot(e.code)){let f=e;s.code=f.code,f.message&&typeof f.message==\"string\"?(s.message=f.message,jre(f,\"data\")&&(s.data=f.data)):(s.message=$re(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=LBt;function Mot(e){return e>=-32099&&e<=-32e3}function Pot(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function jre(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var Uot=X(_F=>{\"use strict\";c();Object.defineProperty(_F,\"__esModule\",{value:!0});_F.ethErrors=void 0;var Gre=SF(),Oot=qre(),Bi=CF();_F.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=>q4(Bi.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>q4(Bi.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>q4(Bi.errorCodes.provider.unsupportedMethod,e),disconnected:e=>q4(Bi.errorCodes.provider.disconnected,e),chainDisconnected:e=>q4(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 Gre.EthereumProviderError(t,r,n)}}};function tl(e,t){let[r,n]=Not(t);return new Gre.EthereumRpcError(e,r||Oot.getMessageFromCode(e),n)}function q4(e,t){let[r,n]=Not(t);return new Gre.EthereumProviderError(e,r||Oot.getMessageFromCode(e),n)}function Not(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 Lot=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 Dot=SF();Object.defineProperty(oc,\"EthereumRpcError\",{enumerable:!0,get:function(){return Dot.EthereumRpcError}});Object.defineProperty(oc,\"EthereumProviderError\",{enumerable:!0,get:function(){return Dot.EthereumProviderError}});var Hot=qre();Object.defineProperty(oc,\"serializeError\",{enumerable:!0,get:function(){return Hot.serializeError}});Object.defineProperty(oc,\"getMessageFromCode\",{enumerable:!0,get:function(){return Hot.getMessageFromCode}});var FBt=Uot();Object.defineProperty(oc,\"ethErrors\",{enumerable:!0,get:function(){return FBt.ethErrors}});var zBt=CF();Object.defineProperty(oc,\"errorCodes\",{enumerable:!0,get:function(){return zBt.errorCodes}})});var Wre=X(i8=>{\"use strict\";c();var jBt=i8&&i8.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i8,\"__esModule\",{value:!0});i8.JsonRpcEngine=void 0;var $Bt=jBt(Aot()),rl=Lot(),Kre=class e extends $Bt.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(p){return d(p)}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 p=d||r.error;p&&(r.error=rl.serializeError(p)),s([p,!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${Vre(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${Vre(t)}`,{request:t});if(!n)throw new rl.EthereumRpcError(rl.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:\\n${Vre(t)}`,{request:t})}};i8.JsonRpcEngine=Kre;function Vre(e){return JSON.stringify(e,null,2)}});var Fot=X(kF=>{\"use strict\";c();Object.defineProperty(kF,\"__esModule\",{value:!0});kF.mergeMiddleware=void 0;var qBt=Wre();function GBt(e){let t=new qBt.JsonRpcEngine;return e.forEach(r=>t.push(r)),t.asMiddleware()}kF.mergeMiddleware=GBt});var Qre=X(nl=>{\"use strict\";c();var VBt=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]})),s8=nl&&nl.__exportStar||function(e,t){for(var r in e)r!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,r)&&VBt(t,e,r)};Object.defineProperty(nl,\"__esModule\",{value:!0});s8(xot(),nl);s8(vot(),nl);s8(wot(),nl);s8(Ure(),nl);s8(Wre(),nl);s8(Fot(),nl)});var RF=X((heo,PF)=>{c();var zot,jot,$ot,qot,Got,Vot,Kot,Wot,Qot,Zot,Jot,Yot,Xot,BF,Zre,eat,tat,rat,c8,nat,oat,aat,iat,sat,cat,uat,lat,fat,IF,dat,pat,mat;(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 PF==\"object\"&&typeof PF.exports==\"object\"?e(r(t,r(PF.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])};zot=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)},jot=Object.assign||function(s){for(var u,f=1,d=arguments.length;f<d;f++){u=arguments[f];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(s[p]=u[p])}return s},$ot=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 p=0,d=Object.getOwnPropertySymbols(s);p<d.length;p++)u.indexOf(d[p])<0&&Object.prototype.propertyIsEnumerable.call(s,d[p])&&(f[d[p]]=s[d[p]]);return f},qot=function(s,u,f,d){var p=arguments.length,h=p<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=(p<3?y(h):p>3?y(u,f,h):y(u,f))||h);return p>3&&h&&Object.defineProperty(u,f,h),h},Got=function(s,u){return function(f,d){u(f,d,s)}},Vot=function(s,u,f,d,p,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,k=u||(C?Object.getOwnPropertyDescriptor(C,d.name):{}),P,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:k.get,set:k.set}:k[E],O);if(v===\"accessor\"){if(j===void 0)continue;if(j===null||typeof j!=\"object\")throw new TypeError(\"Object expected\");(P=y(j.get))&&(k.get=P),(P=y(j.set))&&(k.set=P),(P=y(j.init))&&p.unshift(P)}else(P=y(j))&&(v===\"field\"?p.unshift(P):k[E]=P)}C&&Object.defineProperty(C,d.name,k),M=!0},Kot=function(s,u,f){for(var d=arguments.length>2,p=0;p<u.length;p++)f=d?u[p].call(s,f):u[p].call(s);return d?f:void 0},Wot=function(s){return typeof s==\"symbol\"?s:\"\".concat(s)},Qot=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})},Zot=function(s,u){if(typeof Reflect==\"object\"&&typeof Reflect.metadata==\"function\")return Reflect.metadata(s,u)},Jot=function(s,u,f,d){function p(h){return h instanceof f?h:new f(function(y){y(h)})}return new(f||(f=Promise))(function(h,y){function v(k){try{C(d.next(k))}catch(P){y(P)}}function E(k){try{C(d.throw(k))}catch(P){y(P)}}function C(k){k.done?h(k.value):p(k.value).then(v,E)}C((d=d.apply(s,u||[])).next())})},Yot=function(s,u){var f={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},d,p,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(k){return E([C,k])}}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,p&&(h=C[0]&2?p.return:C[0]?p.throw||((h=p.return)&&h.call(p),0):p.next)&&!(h=h.call(p,C[1])).done)return h;switch(p=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++,p=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(k){C=[6,k],p=0}finally{d=h=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},Xot=function(s,u){for(var f in s)f!==\"default\"&&!Object.prototype.hasOwnProperty.call(u,f)&&IF(u,s,f)},IF=Object.create?(function(s,u,f,d){d===void 0&&(d=f);var p=Object.getOwnPropertyDescriptor(u,f);(!p||(\"get\"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(s,d,p)}):(function(s,u,f,d){d===void 0&&(d=f),s[d]=u[f]}),BF=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.\")},Zre=function(s,u){var f=typeof Symbol==\"function\"&&s[Symbol.iterator];if(!f)return s;var d=f.call(s),p,h=[],y;try{for(;(u===void 0||u-- >0)&&!(p=d.next()).done;)h.push(p.value)}catch(v){y={error:v}}finally{try{p&&!p.done&&(f=d.return)&&f.call(d)}finally{if(y)throw y.error}}return h},eat=function(){for(var s=[],u=0;u<arguments.length;u++)s=s.concat(Zre(arguments[u]));return s},tat=function(){for(var s=0,u=0,f=arguments.length;u<f;u++)s+=arguments[u].length;for(var d=Array(s),p=0,u=0;u<f;u++)for(var h=arguments[u],y=0,v=h.length;y<v;y++,p++)d[p]=h[y];return d},rat=function(s,u,f){if(f||arguments.length===2)for(var d=0,p=u.length,h;d<p;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))},c8=function(s){return this instanceof c8?(this.v=s,this):new c8(s)},nat=function(s,u,f){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var d=f.apply(s,u||[]),p,h=[];return p=Object.create((typeof AsyncIterator==\"function\"?AsyncIterator:Object).prototype),v(\"next\"),v(\"throw\"),v(\"return\",y),p[Symbol.asyncIterator]=function(){return this},p;function y(U){return function(O){return Promise.resolve(O).then(U,P)}}function v(U,O){d[U]&&(p[U]=function(N){return new Promise(function(j,K){h.push([U,N,j,K])>1||E(U,N)})},O&&(p[U]=O(p[U])))}function E(U,O){try{C(d[U](O))}catch(N){M(h[0][3],N)}}function C(U){U.value instanceof c8?Promise.resolve(U.value.v).then(k,P):M(h[0][2],U)}function k(U){E(\"next\",U)}function P(U){E(\"throw\",U)}function M(U,O){U(O),h.shift(),h.length&&E(h[0][0],h[0][1])}},oat=function(s){var u,f;return u={},d(\"next\"),d(\"throw\",function(p){throw p}),d(\"return\"),u[Symbol.iterator]=function(){return this},u;function d(p,h){u[p]=s[p]?function(y){return(f=!f)?{value:c8(s[p](y)),done:!1}:h?h(y):y}:h}},aat=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 BF==\"function\"?BF(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),p(v,E,y.done,y.value)})}}function p(h,y,v,E){Promise.resolve(E).then(function(C){h({value:C,done:v})},y)}},iat=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)};sat=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\"&&IF(u,s,f[d]);return r(u,s),u},cat=function(s){return s&&s.__esModule?s:{default:s}},uat=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)},lat=function(s,u,f,d,p){if(d===\"m\")throw new TypeError(\"Private method is not writable\");if(d===\"a\"&&!p)throw new TypeError(\"Private accessor was defined without a setter\");if(typeof u==\"function\"?s!==u||!p:!u.has(s))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return d===\"a\"?p.call(s,f):p?p.value=f:u.set(s,f),f},fat=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)},dat=function(s,u,f){if(u!=null){if(typeof u!=\"object\"&&typeof u!=\"function\")throw new TypeError(\"Object expected.\");var d,p;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&&(p=d)}if(typeof d!=\"function\")throw new TypeError(\"Object not disposable.\");p&&(d=function(){try{p.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};pat=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 p(){for(;f=s.stack.pop();)try{if(!f.async&&d===1)return d=0,s.stack.push(f),Promise.resolve().then(p);if(f.dispose){var h=f.dispose.call(f.value);if(f.async)return d|=2,Promise.resolve(h).then(p,function(y){return u(y),p()})}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 p()},mat=function(s,u){return typeof s==\"string\"&&/^\\\\.\\\\.?\\\\//.test(s)?s.replace(/\\\\.(tsx)$|((?:\\\\.d)?)((?:\\\\.[^./]+?)?)\\\\.([cm]?)ts$/i,function(f,d,p,h,y){return d?u?\".jsx\":\".js\":p&&(!h||!y)?f:p+h+\".\"+y.toLowerCase()+\"js\"}):s},e(\"__extends\",zot),e(\"__assign\",jot),e(\"__rest\",$ot),e(\"__decorate\",qot),e(\"__param\",Got),e(\"__esDecorate\",Vot),e(\"__runInitializers\",Kot),e(\"__propKey\",Wot),e(\"__setFunctionName\",Qot),e(\"__metadata\",Zot),e(\"__awaiter\",Jot),e(\"__generator\",Yot),e(\"__exportStar\",Xot),e(\"__createBinding\",IF),e(\"__values\",BF),e(\"__read\",Zre),e(\"__spread\",eat),e(\"__spreadArrays\",tat),e(\"__spreadArray\",rat),e(\"__await\",c8),e(\"__asyncGenerator\",nat),e(\"__asyncDelegator\",oat),e(\"__asyncValues\",aat),e(\"__makeTemplateObject\",iat),e(\"__importStar\",sat),e(\"__importDefault\",cat),e(\"__classPrivateFieldGet\",uat),e(\"__classPrivateFieldSet\",lat),e(\"__classPrivateFieldIn\",fat),e(\"__addDisposableResource\",dat),e(\"__disposeResources\",pat),e(\"__rewriteRelativeImportExtension\",mat)})});var Yre=X(Jre=>{\"use strict\";c();Object.defineProperty(Jre,\"__esModule\",{value:!0});var hat=RF(),KBt=(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 hat.__awaiter(this,void 0,void 0,function(){var r,n,o;return hat.__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=KBt});var bat=X(Xre=>{\"use strict\";c();Object.defineProperty(Xre,\"__esModule\",{value:!0});var yat=RF(),WBt=Yre(),QBt=(function(){function e(){this._semaphore=new WBt.default(1)}return e.prototype.acquire=function(){return yat.__awaiter(this,void 0,void 0,function(){var t,r;return yat.__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})();Xre.default=QBt});var gat=X(OF=>{\"use strict\";c();Object.defineProperty(OF,\"__esModule\",{value:!0});OF.withTimeout=void 0;var MF=RF();function ZBt(e,t,r){var n=this;return r===void 0&&(r=new Error(\"timeout\")),{acquire:function(){return new Promise(function(o,s){return MF.__awaiter(n,void 0,void 0,function(){var u,f,d;return MF.__generator(this,function(p){switch(p.label){case 0:return u=!1,setTimeout(function(){u=!0,s(r)},t),[4,e.acquire()];case 1:return f=p.sent(),u?(d=Array.isArray(f)?f[1]:f,d()):o(f),[2]}})})})},runExclusive:function(o){return MF.__awaiter(this,void 0,void 0,function(){var s,u;return MF.__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()}}}OF.withTimeout=ZBt});var xat=X(Eb=>{\"use strict\";c();Object.defineProperty(Eb,\"__esModule\",{value:!0});Eb.withTimeout=Eb.Semaphore=Eb.Mutex=void 0;var JBt=bat();Object.defineProperty(Eb,\"Mutex\",{enumerable:!0,get:function(){return JBt.default}});var YBt=Yre();Object.defineProperty(Eb,\"Semaphore\",{enumerable:!0,get:function(){return YBt.default}});var XBt=gat();Object.defineProperty(Eb,\"withTimeout\",{enumerable:!0,get:function(){return XBt.withTimeout}})});var wat=X((Ceo,vat)=>{c();vat.exports=tIt;var eIt=Object.prototype.hasOwnProperty;function tIt(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)eIt.call(r,n)&&(e[n]=r[n])}return e}});var Aat=X((_eo,Eat)=>{c();var rIt=wat(),nIt=JL()();Eat.exports=Tt;function Tt(e){let t=this;t.currentProvider=e}Tt.prototype.getBalance=G4(2,\"eth_getBalance\");Tt.prototype.getCode=G4(2,\"eth_getCode\");Tt.prototype.getTransactionCount=G4(2,\"eth_getTransactionCount\");Tt.prototype.getStorageAt=G4(3,\"eth_getStorageAt\");Tt.prototype.call=G4(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(oIt(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 G4(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 oIt(e){return rIt({id:nIt(),jsonrpc:\"2.0\",params:[]},e)}});var _at=X((Beo,Tat)=>{\"use strict\";c();var Sat=(e,t,r,n)=>function(...o){let s=t.promiseModule;return new s((u,f)=>{t.multiArgs?o.push((...p)=>{t.errorFirst?p[0]?f(p):(p.shift(),u(p)):u(p)}):t.errorFirst?o.push((p,h)=>{p?f(p):u(h)}):o.push(u),Reflect.apply(e,this===r?n:this,o)})},Cat=new WeakMap;Tat.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=Cat.get(u);if(d||(d={},Cat.set(u,d)),f in d)return d[f];let p=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(p):!t.exclude.some(p))&&y;return d[f]=E,E},o=new WeakMap,s=new Proxy(e,{apply(u,f,d){let p=o.get(u);if(p)return Reflect.apply(p,f,d);let h=t.excludeMain?u:Sat(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 p=o.get(d);if(p)return p;if(typeof d==\"function\"){let h=Sat(d,t,s,u);return o.set(d,h),h}return d}});return s}});var NF=X((Peo,kat)=>{c();var aIt=YL().default,ene=class extends aIt{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}};kat.exports=ene});var Iat=X((Meo,Bat)=>{c();var iIt=NF(),tne=class extends iIt{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}};Bat.exports=tne});var u8=X((Neo,Mat)=>{c();Mat.exports={minBlockRef:sIt,maxBlockRef:cIt,sortBlockRefs:rne,bnToHex:uIt,blockRefIsNumber:lIt,hexToInt:UF,incrementHexInt:fIt,intToHex:Rat,unsafeRandomBytes:dIt};function sIt(...e){return rne(e)[0]}function cIt(...e){let t=rne(e);return t[t.length-1]}function rne(e){return e.sort((t,r)=>t===\"latest\"||r===\"earliest\"?1:r===\"latest\"||t===\"earliest\"?-1:UF(t)-UF(r))}function uIt(e){return\"0x\"+e.toString(16)}function lIt(e){return e&&![\"earliest\",\"latest\",\"pending\"].includes(e)}function UF(e){return e==null?e:Number.parseInt(e,16)}function fIt(e){if(e==null)return e;let t=UF(e);return Rat(t+1)}function Rat(e){if(e==null)return e;let t=e.toString(16);return t.length%2&&(t=\"0\"+t),\"0x\"+t}function dIt(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 Nat=X((Heo,Oat)=>{c();var pIt=Aat(),mIt=_at(),hIt=Iat(),{bnToHex:Deo,hexToInt:DF,incrementHexInt:yIt,minBlockRef:bIt,blockRefIsNumber:gIt}=u8(),nne=class extends hIt{constructor({provider:t,params:r}){super(),this.type=\"log\",this.ethQuery=new pIt(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=bIt(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=yIt(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 mIt(n=>this.ethQuery.getLogs(t,n))()}matchLog(t){if(DF(this.params.fromBlock)>=DF(t.blockNumber)||gIt(this.params.toBlock)&&DF(this.params.toBlock)<=DF(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))})}};Oat.exports=nne});var HF=X((Feo,Dat)=>{c();Dat.exports=xIt;async function xIt({provider:e,fromBlock:t,toBlock:r}){t||(t=r);let n=Uat(t),s=Uat(r)-n+1,u=Array(s).fill().map((d,p)=>n+p).map(vIt),f=await Promise.all(u.map(d=>EIt(e,\"eth_getBlockByNumber\",[d,!1])));return f=f.filter(d=>d!==null),f}function Uat(e){return e==null?e:Number.parseInt(e,16)}function vIt(e){return e==null?e:\"0x\"+e.toString(16)}function wIt(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 EIt(e,t,r){for(let n=0;n<3;n++)try{return await wIt(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 Lat=X((jeo,Hat)=>{c();var AIt=NF(),SIt=HF(),{incrementHexInt:CIt}=u8(),one=class extends AIt{constructor({provider:t,params:r}){super(),this.type=\"block\",this.provider=t}async update({oldBlock:t,newBlock:r}){let n=r,o=CIt(t),u=(await SIt({provider:this.provider,fromBlock:o,toBlock:n})).map(f=>f.hash);this.addResults(u)}};Hat.exports=one});var zat=X((qeo,Fat)=>{c();var TIt=NF(),_It=HF(),{incrementHexInt:kIt}=u8(),ane=class extends TIt{constructor({provider:t}){super(),this.type=\"tx\",this.provider=t}async update({oldBlock:t}){let r=t,n=kIt(t),o=await _It({provider:this.provider,fromBlock:n,toBlock:r}),s=[];for(let u of o)s.push(...u.transactions);this.addResults(s)}};Fat.exports=ane});var qat=X((Veo,$at)=>{c();var BIt=xat().Mutex,{createAsyncMiddleware:IIt,createScaffoldMiddleware:PIt}=Qre(),RIt=Nat(),MIt=Lat(),OIt=zat(),{intToHex:jat,hexToInt:ine}=u8();$at.exports=NIt;function NIt({blockTracker:e,provider:t}){let r=0,n={},o=new BIt,s=UIt({mutex:o}),u=PIt({eth_newFilter:s(sne(d)),eth_newBlockFilter:s(sne(p)),eth_newPendingTransactionFilter:s(sne(h)),eth_uninstallFilter:s(LF(E)),eth_getFilterChanges:s(LF(y)),eth_getFilterLogs:s(LF(v))}),f=async({oldBlock:U,newBlock:O})=>{if(n.length===0)return;let N=await o.acquire();try{await Promise.all(l8(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=p,u.newPendingTransactionFilter=h,u.uninstallFilter=E,u.getFilterChanges=y,u.getFilterLogs=v,u.destroy=()=>{P()},u;async function d(U){let O=new RIt({provider:t,params:U}),N=await C(O);return O}async function p(){let U=new MIt({provider:t}),O=await C(U);return U}async function h(){let U=new OIt({provider:t}),O=await C(U);return U}async function y(U){let O=ine(U),N=n[O];if(!N)throw new Error(`No filter for index \"${O}\"`);return N.getChangesAndClear()}async function v(U){let O=ine(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=ine(U),j=!!n[O];return j&&await k(O),j}async function C(U){let O=l8(n).length,N=await e.getLatestBlock();await U.initialize({currentBlock:N}),r++,n[r]=U,U.id=r,U.idHex=jat(r);let j=l8(n).length;return M({prevFilterCount:O,newFilterCount:j}),r}async function k(U){let O=l8(n).length;delete n[U];let N=l8(n).length;M({prevFilterCount:O,newFilterCount:N})}async function P(){let U=l8(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 sne(e){return LF(async(...t)=>{let r=await e(...t);return jat(r.id)})}function LF(e){return IIt(async(t,r)=>{let n=await e.apply(null,t.params);r.result=n})}function UIt({mutex:e}){return t=>async(r,n,o,s)=>{(await e.acquire())(),t(r,n,o,s)}}function l8(e,t){let r=[];for(let n in e)r.push(e[n]);return r}});var Kat=X((Weo,Vat)=>{c();var DIt=YL().default,{createAsyncMiddleware:Gat,createScaffoldMiddleware:HIt}=Qre(),LIt=qat(),{unsafeRandomBytes:FIt,incrementHexInt:zIt}=u8(),jIt=HF();Vat.exports=$It;function $It({blockTracker:e,provider:t}){let r={},n=LIt({blockTracker:e,provider:t}),o=!1,s=new DIt,u=HIt({eth_subscribe:Gat(f),eth_unsubscribe:Gat(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=FIt(16),k;switch(E){case\"newHeads\":k=P({subId:C});break;case\"logs\":let U=y.params[1],O=await n.newLogFilter(U);k=M({subId:C,filter:O});break;default:throw new Error(`SubscriptionManager - unsupported subscription type \"${E}\"`)}r[C]=k,v.result=C;return;function P({subId:U}){let O={type:E,destroy:async()=>{e.removeListener(\"sync\",O.update)},update:async({oldBlock:N,newBlock:j})=>{let K=j,G=zIt(N);(await jIt({provider:t,fromBlock:G,toBlock:K})).map(qIt).filter(W=>W!==null).forEach(W=>{p(U,W)})}};return e.on(\"sync\",O.update),O}function M({subId:U,filter:O}){return O.on(\"update\",j=>p(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 p(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 qIt(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 Qat=X(FF=>{\"use strict\";c();Object.defineProperty(FF,\"__esModule\",{value:!0});FF.SubscriptionManager=void 0;var GIt=bot(),VIt=Kat(),Wat=()=>{},cne=class{constructor(t){let r=new GIt.PollingBlockTracker({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:o}=VIt({blockTracker:r,provider:t});this.events=n,this.subscriptionMiddleware=o}async handleRequest(t){let r={};return await this.subscriptionMiddleware(t,r,Wat,Wat),r}destroy(){this.subscriptionMiddleware.destroy()}};FF.SubscriptionManager=cne});var jF=X(f8=>{\"use strict\";c();var Xat=f8&&f8.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(f8,\"__esModule\",{value:!0});f8.CoinbaseWalletProvider=void 0;var KIt=Xat(W_()),WIt=wQe(),Br=Z_(),Xt=Zd(),QIt=wte(),Zat=HH(),zF=oL(),zc=BH(),une=Xat(utt()),V4=DH(),ZIt=mtt(),JIt=Qat(),Jat=\"DefaultChainId\",Yat=\"DefaultJsonRpcUrl\",lne=class extends WIt.EventEmitter{constructor(t){var r,n;super(),this._filterPolyfill=new ZIt.FilterPolyfill(this),this._subscriptionManager=new JIt.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(Zat.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 p=f.data.data.chainId,h=(d=f.data.data.jsonRpcUrl)!==null&&d!==void 0?d:this.jsonRpcUrl;this.updateProviderInfo(h,Number(p))}})}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(Yat))!==null&&t!==void 0?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem(Yat,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(Jat,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,zc.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 p=await this.initializeRelay(),h=p.inlineAddEthereumChain(t.toString());!this._isAuthorized()&&!h&&await p.requestEthereumAccounts().promise;let y=await p.addEthereumChain(t.toString(),r,s,n,o,u).promise;return(0,zc.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,zc.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(V4.EVENTS.ETH_ACCOUNTS_STATE,{method:\"provider::enable\",addresses_length:this._addresses.length,sessionIdHash:this._relay?zF.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,zc.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,zc.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(V4.EVENTS.ETH_ACCOUNTS_STATE,{method:\"provider::connectAndSignIn\",sessionIdHash:this._relay?zF.Session.hash(this._relay.session.id):void 0});let n;try{let s=await this.initializeRelay();if(!(s instanceof QIt.MobileRelay))throw new Error(\"connectAndSignIn is only supported on mobile\");if(n=await s.connectAndSignIn(t).promise,(0,zc.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,zc.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(Zat.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(V4.EVENTS.METHOD_NOT_IMPLEMENTED,{method:t.method,sessionIdHash:this._relay?zF.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(V4.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 KIt.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,p=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:p,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,zc.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,zc.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(Jat);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(V4.EVENTS.ETH_ACCOUNTS_STATE,{method:\"provider::_eth_requestAccounts\",addresses_length:this._addresses.length,sessionIdHash:this._relay?zF.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,zc.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,zc.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,zc.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,zc.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=une.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=une.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=une.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))}};f8.CoinbaseWalletProvider=lne});var eit=X($F=>{\"use strict\";c();Object.defineProperty($F,\"__esModule\",{value:!0});$F.RelayEventManager=void 0;var YIt=Zd(),fne=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let t=this._nextRequestId,r=(0,YIt.prepend0x)(t.toString(16));return this.callbacks.get(r)&&this.callbacks.delete(r),t}};$F.RelayEventManager=fne});var dne=X(GF=>{\"use strict\";c();Object.defineProperty(GF,\"__esModule\",{value:!0});GF.CoinbaseWalletSDK=void 0;var XIt=QWe(),ePt=ZWe(),tit=Zd(),tPt=xQe(),rPt=jF(),nPt=wte(),oPt=xte(),aPt=eit(),iPt=mte(),sPt=hte(),rit=PH(),qF=class e{constructor(t){var r,n,o;this._appName=\"\",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let s=t.linkAPIUrl||ePt.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 tPt.ScopedLocalStorage(`-walletlink:${f}`),this._storage.setItem(\"version\",e.VERSION),this.walletExtension||this.coinbaseBrowser)return;this._relayEventManager=new aPt.RelayEventManager;let d=(0,tit.isMobileWeb)(),p=t.uiConstructor||(y=>d?new oPt.MobileRelayUI(y):new iPt.WalletLinkRelayUI(y)),h={linkAPIUrl:s,version:rit.LIB_VERSION,darkMode:!!t.darkMode,headlessMode:!!t.headlessMode,uiConstructor:p,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect,enableMobileWalletLink:t.enableMobileWalletLink};this._relay=d?new nPt.MobileRelay(h):new sPt.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 rPt.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,tit.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,XIt.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}};GF.CoinbaseWalletSDK=qF;qF.VERSION=rit.LIB_VERSION});var oit=X(i2=>{\"use strict\";c();Object.defineProperty(i2,\"__esModule\",{value:!0});i2.CoinbaseWalletProvider=i2.CoinbaseWalletSDK=void 0;var pne=dne(),nit=jF(),cPt=dne();Object.defineProperty(i2,\"CoinbaseWalletSDK\",{enumerable:!0,get:function(){return cPt.CoinbaseWalletSDK}});var uPt=jF();Object.defineProperty(i2,\"CoinbaseWalletProvider\",{enumerable:!0,get:function(){return uPt.CoinbaseWalletProvider}});i2.default=pne.CoinbaseWalletSDK;typeof window<\"u\"&&(window.CoinbaseWalletSDK=pne.CoinbaseWalletSDK,window.CoinbaseWalletProvider=nit.CoinbaseWalletProvider,window.WalletLink=pne.CoinbaseWalletSDK,window.WalletLinkProvider=nit.CoinbaseWalletProvider)});c();var iit=Sr(vle(),1);c();var Ya=Sr(oo(),1);Bo();VR();c();c();var KC=Sr(oo(),1);c();c();c();c();c();c();c();var o6=\"2.22.1\";var UOe=()=>`@wagmi/core@${o6}`;var DOe=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)},KR,HOe,es=class e extends Error{get docsBaseUrl(){return\"https://wagmi.sh/core\"}get version(){return UOe()}constructor(t,r={}){super(),KR.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 DOe(this,KR,\"m\",HOe).call(this,this,t)}};KR=new WeakSet,HOe=function e(t,r){return r?.(t)?t:t.cause?DOe(this,KR,\"m\",e).call(this,t.cause,r):t};var Fs=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\"})}},$C=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 LOe(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 FOe(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 $C;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),p=await n.connector.getProvider({chainId:o});return vm({account:f,chain:d,name:\"Connector Client\",transport:h=>dC(p)({...h,retryCount:0})})}c();async function zOe(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 qC(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 WR(e){return e.state.chainId}c();c();function zs(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(!zs(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&&!zs(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}var AW=[];function QR(e){let t=e.chains;return zs(AW,t)?AW:(AW=t,t)}c();var ZR=[];function u6(e){let t=[...e.state.connections.values()];return e.state.status===\"reconnecting\"||zs(ZR,t)?ZR:(ZR=t,t)}c();var JR=[];function YR(e){let t=e.connectors;return JR.length===t.length&&JR.every((r,n)=>r===t[n])?JR:(JR=t,t)}c();Bo();async function jOe(e,t={}){return(await FOe(e,t)).extend(TK)}c();var SW=!1;async function $Oe(e,t={}){if(SW)return[];SW=!0,e.setState(p=>({...p,status:p.current?\"reconnecting\":\"connecting\"}));let r=[];if(t.connectors?.length)for(let p of t.connectors){let h;typeof p==\"function\"?h=e._internal.connectors.setup(p):h=p,r.push(h)}else r.push(...e.connectors);let n;try{n=await e.storage?.getItem(\"recentConnectorId\")}catch{}let o={};for(let[,p]of e.state.connections)o[p.connector.id]=1;n&&(o[n]=0);let s=Object.keys(o).length>0?[...r].sort((p,h)=>(o[p.id]??10)-(o[h.id]??10)):r,u=!1,f=[],d=[];for(let p of s){let h=await p.getProvider().catch(()=>{});if(!h||d.some(E=>E===h)||!await p.isAuthorized())continue;let v=await p.connect({isReconnecting:!0}).catch(()=>null);v&&(p.emitter.off(\"connect\",e._internal.events.connect),p.emitter.on(\"change\",e._internal.events.change),p.emitter.on(\"disconnect\",e._internal.events.disconnect),e.setState(E=>{let C=new Map(u?E.connections:new Map).set(p.uid,{accounts:v.accounts,chainId:v.chainId,connector:p});return{...E,current:u?E.current:p.uid,connections:C}}),f.push({accounts:v.accounts,chainId:v.chainId,connector:p}),d.push(h),u=!0)}return(e.state.status===\"reconnecting\"||e.state.status===\"connecting\")&&(u?e.setState(p=>({...p,status:\"connected\"})):e.setState(p=>({...p,connections:new Map,current:null,status:\"disconnected\"}))),SW=!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\"})}},GC=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 qOe(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 GC({connector:u});return await u.switchChain({addEthereumChainParameter:r,chainId:n})}let s=e.chains.find(u=>u.id===n);if(!s)throw new Fs;return e.setState(u=>({...u,chainId:n})),s}c();function CW(e,t){let{onChange:r}=t;return e.subscribe(()=>qC(e),r,{equalityFn(n,o){let{connector:s,...u}=n,{connector:f,...d}=o;return zs(u,d)&&s?.id===f?.id&&s?.uid===f?.uid}})}c();function TW(e,t){let{onChange:r}=t;return e.subscribe(n=>n.chainId,r)}c();function _W(e,t){let{onChange:r}=t;return e.subscribe(()=>u6(e),r,{equalityFn:zs})}c();function kW(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 p=d();if(p)return p}return typeof d==\"object\"?d:typeof d==\"string\"?{...Uht[d]??{id:d,name:`${d[0].toUpperCase()}${d.slice(1)}`,provider:`is${d[0].toUpperCase()}${d.slice(1)}`}}:{id:\"injected\",name:\"Injected\",provider(p){return p?.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 p=await this.getProvider();p?.on&&e.target&&(u||(u=this.onConnect.bind(this),p.on(\"connect\",u)),o||(o=this.onAccountsChanged.bind(this),p.on(\"accountsChanged\",o)))},async connect({chainId:p,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(k=>hn(k)),E.length>0&&(E=await this.getAccounts())}catch(C){let k=C;if(k.code===zn.code)throw new zn(k);if(k.code===Al.code)throw k}try{!E?.length&&!h&&(E=(await v.request({method:\"eth_requestAccounts\"})).map(P=>hn(P))),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 p&&C!==p&&(C=(await this.switchChain({chainId:p}).catch(P=>{if(P.code===zn.code)throw P;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(k=>({address:k,capabilities:{}})):E,chainId:C}}catch(C){let k=C;throw k.code===zn.code?new zn(k):k.code===Al.code?new Al(k):k}},async disconnect(){let p=await this.getProvider();if(!p)throw new wd;s&&(p.removeListener(\"chainChanged\",s),s=void 0),f&&(p.removeListener(\"disconnect\",f),f=void 0),u||(u=this.onConnect.bind(this),p.on(\"connect\",u));try{await KS(()=>p.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 p=await this.getProvider();if(!p)throw new wd;return(await p.request({method:\"eth_accounts\"})).map(y=>hn(y))},async getChainId(){let p=await this.getProvider();if(!p)throw new wd;let h=await p.request({method:\"eth_chainId\"});return Number(h)},async getProvider(){if(typeof window>\"u\")return;let p,h=n();return typeof h.provider==\"function\"?p=h.provider(window):typeof h.provider==\"string\"?p=XR(window,h.provider):p=h.provider,p&&!p.removeListener&&(\"off\"in p&&typeof p.off==\"function\"?p.removeListener=p.off:p.removeListener=()=>{}),p},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(k=>window.addEventListener(\"ethereum#initialized\",()=>k(v()),{once:!0}))]:[],new Promise(k=>setTimeout(()=>k(v()),E))]))return!0}throw new wd}return!!(await hd(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:p,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 Fs);let E=new Promise(C=>{let k=(P=>{\"chainId\"in P&&P.chainId===h&&(d.emitter.off(\"change\",k),C())});d.emitter.on(\"change\",k)});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 k=C;if(k.code===4902||k?.data?.originalError?.code===4902)try{let{default:P,...M}=v.blockExplorers??{},U;p?.blockExplorerUrls?U=p.blockExplorerUrls:P&&(U=[P.url,...Object.values(M).map(j=>j.url)]);let O;p?.rpcUrls?.length?O=p.rpcUrls:O=[v.rpcUrls.default?.http[0]??\"\"];let N={blockExplorerUrls:U,chainId:le(h),chainName:p?.chainName??v.name,iconUrls:p?.iconUrls,nativeCurrency:p?.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 zn(new Error(\"User rejected switch after adding network.\"))}),E]),v}catch(P){throw new zn(P)}throw k.code===zn.code?new zn(k):new Vi(k)}},async onAccountsChanged(p){if(p.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:p.map(h=>hn(h))})},onChainChanged(p){let h=Number(p);d.emitter.emit(\"change\",{chainId:h})},async onConnect(p){let h=await this.getAccounts();if(h.length===0)return;let y=Number(p.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(p){let h=await this.getProvider();p&&p.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 Uht={coinbaseWallet:{id:\"coinbaseWallet\",name:\"Coinbase Wallet\",provider(e){return e?.coinbaseWalletExtension?e.coinbaseWalletExtension:XR(e,\"isCoinbaseWallet\")}},metaMask:{id:\"metaMask\",name:\"MetaMask\",provider(e){return XR(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:XR(e,\"isPhantom\")}}};function XR(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();WOe();Bo();c();var Dht=e=>(t,r,n)=>{let o=n.subscribe;return n.subscribe=(u,f,d)=>{let p=u;if(f){let h=d?.equalityFn||Object.is,y=u(n.getState());p=v=>{let E=u(v);if(!h(y,E)){let C=y;f(y=E,C)}},d?.fireImmediately&&f(y,y)}return o(p)},e(t,r,n)},QOe=Dht;function Hht(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 IW=e=>t=>{try{let r=e(t);return r instanceof Promise?r:{then(n){return IW(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return IW(n)(r)}}}},Lht=(e,t)=>(r,n,o)=>{let s={storage:Hht(()=>localStorage),partialize:k=>k,version:0,merge:(k,P)=>({...P,...k}),...t},u=!1,f=new Set,d=new Set,p=s.storage;if(!p)return e((...k)=>{console.warn(`[zustand persist middleware] Unable to update item \\'${s.name}\\', the given storage is currently unavailable.`),r(...k)},n,o);let h=()=>{let k=s.partialize({...n()});return p.setItem(s.name,{state:k,version:s.version})},y=o.setState;o.setState=(k,P)=>{y(k,P),h()};let v=e((...k)=>{r(...k),h()},n,o);o.getInitialState=()=>v;let E,C=()=>{var k,P;if(!p)return;u=!1,f.forEach(U=>{var O;return U((O=n())!=null?O:v)});let M=((P=s.onRehydrateStorage)==null?void 0:P.call(s,(k=n())!=null?k:v))||void 0;return IW(p.getItem.bind(p))(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:k=>{s={...s,...k},k.storage&&(p=k.storage)},clearStorage:()=>{p?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>C(),hasHydrated:()=>u,onHydrate:k=>(f.add(k),()=>{f.delete(k)}),onFinishHydration:k=>(d.add(k),()=>{d.delete(k)})},s.skipHydration||C(),E||v},ZOe=Lht;c();var JOe=e=>{let t,r=new Set,n=(p,h)=>{let y=typeof p==\"function\"?p(t):p;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:p=>(r.add(p),()=>r.delete(p))},d=t=e(n,o,f);return f},eM=e=>e?JOe(e):JOe;c();rM();var RW=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 eNe(e){return new RW(e)}c();c();function MW(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 tNe(e,t){return e.slice(0,t).join(\".\")||\".\"}function rNe(e,t){let{length:r}=e;for(let n=0;n<r;++n)if(e[n]===t)return n+1;return 0}function jht(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 p=rNe(o,this);p===0?o[o.length]=this:(o.splice(p),s.splice(p)),s[s.length]=f;let h=rNe(o,d);if(h!==0)return n?t.call(this,f,d,tNe(s,h)):`[ref=${tNe(s,h)}]`}else o[0]=d,s[0]=f;return r?e.call(this,f,d):d}}function OW(e,t,r,n){return JSON.stringify(e,jht((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 NW(e){let{deserialize:t=MW,key:r=\"wagmi\",serialize:n=OW,storage:o=UW}=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}`),p=await s(d);return p?t(p)??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 UW={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function nNe(){let e=typeof window<\"u\"&&window.localStorage?window.localStorage:UW;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,r){try{e.setItem(t,r)}catch{}}}}c();var nM=256,oM;function oNe(e=11){if(!oM||nM+e>256*2){oM=\"\",nM=0;for(let t=0;t<256;t++)oM+=(256+Math.random()*256|0).toString(16).substring(1)}return oM.substring(nM,nM+++e)}function aM(e){let{multiInjectedProviderDiscovery:t=!0,storage:r=NW({storage:nNe()}),syncConnectedChain:n=!0,ssr:o=!1,...s}=e,u=typeof window<\"u\"&&t?BW():void 0,f=eM(()=>s.chains),d=eM(()=>{let j=[],K=new Set;for(let G of s.connectors??[]){let J=p(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(p(h(J)))}return j});function p(j){let K=eNe(oNe()),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??P.getState().chainId,G=f.getState().find(Y=>Y.id===K);if(j.chainId&&!G)throw new Fs;{let Y=y.get(P.getState().chainId);if(Y&&!G)return Y;if(!G)throw new Fs}{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(R=>R 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,k=\"0.0.0-canary-\";o6.startsWith(k)?C=Number.parseInt(o6.replace(k,\"\"),10):C=Number.parseInt(o6.split(\".\")[0]??\"0\",10);let P=eM(QOe(r?ZOe(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));P.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&&P.subscribe(({connections:j,current:K})=>K?j.get(K)?.chainId:void 0,j=>{if(f.getState().some(G=>G.id===j))return P.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=p(h(Y));K.has(W.id)||J.push(W)}r&&!P.persist.hasHydrated()||d.setState(Y=>[...Y,...J],!0)});function U(j){P.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){P.getState().status===\"connecting\"||P.getState().status===\"reconnecting\"||P.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){P.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 P.getState()},setState(j){let K;typeof j==\"function\"?K=j(P.getState()):K=j;let G=E();typeof K!=\"object\"&&(K=G),Object.keys(G).some(Y=>!(Y in K))&&(K=G),P.setState(K,!0)},subscribe(j,K,G){return P.subscribe(j,K,G?{...G,fireImmediately:G.emitImmediately}:void 0)},_internal:{mipd:u,async revalidate(){let j=P.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))}P.setState(J=>({...J,connections:K,current:G}))},store:P,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:p,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 DW(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 p=Array.isArray(d.rdns)?d.rdns:[d.rdns];for(let h of p)s.add(h)}let u=[],f=e._internal.mipd?.getProviders()??[];for(let d of f){if(s.has(d.info.rdns))continue;let p=e._internal.connectors.providerDetailToConnector(d),h=e._internal.connectors.setup(p);u.push(h)}return[...o,...u]})),n?$Oe(e):e.storage&&e.setState(o=>({...o,connections:new Map}))}}}Bo();var iM=Sr(oo(),1);function aNe(e){let{children:t,config:r,initialState:n,reconnectOnMount:o=!0}=e,{onMount:s}=DW(r,{initialState:n,reconnectOnMount:o});r._internal.ssr||s();let u=(0,iM.useRef)(!0);return(0,iM.useEffect)(()=>{if(u.current&&r._internal.ssr)return s(),()=>{u.current=!1}},[]),t}var WC=(0,KC.createContext)(void 0);function sM(e){let{children:t,config:r}=e,n={value:r};return(0,KC.createElement)(aNe,e,(0,KC.createElement)(WC.Provider,n,t))}c();c();c();var iNe=\"2.19.5\";var sNe=()=>`wagmi@${iNe}`;var cM=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 sNe()}};c();var uM=class extends cM{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 cNe=Sr(oo(),1);function Ea(e={}){let t=e.config??(0,cNe.useContext)(WC);if(!t)throw new uM;return t}c();c();c();function HW(e,t){let{onChange:r}=t;return e._internal.chains.subscribe((n,o)=>{r(n,o)})}var lM=Sr(oo(),1),bNe=Sr(yNe(),1),LW=e=>typeof e==\"object\"&&!Array.isArray(e);function gNe(e,t,r=t,n=zs){let o=(0,lM.useRef)([]),s=(0,bNe.useSyncExternalStoreWithSelector)(e,t,r,u=>u,(u,f)=>{if(LW(u)&&LW(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,lM.useMemo)(()=>{if(LW(s)){let u={...s},f={};for(let[d,p]of Object.entries(u))f={...f,[d]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(d)||o.current.push(d),p)}};return Object.defineProperties(u,f),u}return s},[s])}function QC(e={}){let t=Ea(e);return gNe(r=>CW(t,{onChange:r}),()=>qC(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 Ght={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ed,fg,xNe,Vht=(xNe=class{constructor(){Ye(this,Ed,Ght);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,xNe),Ad=new Vht;function vNe(e){setTimeout(e,0)}var js=typeof window>\"u\"||\"Deno\"in globalThis;function xo(){}function ANe(e,t){return typeof e==\"function\"?e(t):e}function ZC(e){return typeof e==\"number\"&&e>=0&&e!==1/0}function dM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ol(e,t){return typeof e==\"function\"?e(t):e}function $s(e,t){return typeof e==\"function\"?e(t):e}function pM(e,t){let{type:r=\"all\",exact:n,fetchStatus:o,predicate:s,queryKey:u,stale:f}=e;if(u){if(n){if(t.queryHash!==JC(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 mM(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 JC(e,t){return(t?.queryKeyHashFn||Sd)(e)}function Sd(e){return JSON.stringify(e,(t,r)=>FW(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 Kht=Object.prototype.hasOwnProperty;function fM(e,t){if(e===t)return e;let r=wNe(e)&&wNe(t);if(!r&&!(FW(e)&&FW(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 p=0;p<u;p++){let h=r?p:s[p],y=e[h],v=t[h];if(y===v){f[h]=y,(r?p<o:Kht.call(e,h))&&d++;continue}if(y===null||v===null||typeof y!=\"object\"||typeof v!=\"object\"){f[h]=v;continue}let E=fM(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 wNe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function FW(e){if(!ENe(e))return!1;let t=e.constructor;if(t===void 0)return!0;let r=t.prototype;return!(!ENe(r)||!r.hasOwnProperty(\"isPrototypeOf\")||Object.getPrototypeOf(e)!==Object.prototype)}function ENe(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function SNe(e){return new Promise(t=>{Ad.setTimeout(t,e)})}function YC(e,t,r){if(typeof r.structuralSharing==\"function\")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){try{return fM(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 fM(e,t)}return t}function CNe(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function TNe(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var dg=Symbol();function hM(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 XC(e,t){return typeof e==\"function\"?e(...t):!!e}var mg,iy,d6,_Ne,Wht=(_Ne=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,_Ne),p6=new Wht;c();function eT(){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 kNe=vNe;function Qht(){let e=[],t=0,r=f=>{f()},n=f=>{f()},o=kNe,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=Qht();c();c();c();var m6,sy,h6,BNe,Zht=(BNe=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,BNe),y6=new Zht;function Jht(e){return Math.min(1e3*2**e,3e4)}function zW(e){return(e??\"online\")===\"online\"?y6.isOnline():!0}var yM=class extends Error{constructor(e){super(\"CancelledError\"),this.revert=e?.revert,this.silent=e?.silent}};function bM(e){let t=!1,r=0,n,o=eT(),s=()=>o.status!==\"pending\",u=k=>{if(!s()){let P=new yM(k);v(P),e.onCancel?.(P)}},f=()=>{t=!0},d=()=>{t=!1},p=()=>p6.isFocused()&&(e.networkMode===\"always\"||y6.isOnline())&&e.canRun(),h=()=>zW(e.networkMode)&&e.canRun(),y=k=>{s()||(n?.(),o.resolve(k))},v=k=>{s()||(n?.(),o.reject(k))},E=()=>new Promise(k=>{n=P=>{(s()||p())&&k(P)},e.onPause?.()}).then(()=>{n=void 0,s()||e.onContinue?.()}),C=()=>{if(s())return;let k,P=r===0?e.initialPromise:void 0;try{k=P??e.fn()}catch(M){k=Promise.reject(M)}Promise.resolve(k).then(y).catch(M=>{if(s())return;let U=e.retry??(js?0:3),O=e.retryDelay??Jht,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),SNe(N).then(()=>p()?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,INe,gM=(INe=class{constructor(){Ye(this,hg)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ZC(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,INe);var yg,b6,vu,bg,Aa,tT,gg,Nl,Cm,MNe,ONe=(MNe=class extends gM{constructor(t){super();Ye(this,Nl);Ye(this,yg);Ye(this,b6);Ye(this,vu);Ye(this,bg);Ye(this,Aa);Ye(this,tT);Ye(this,gg);Me(this,gg,!1),Me(this,tT,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,RNe(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,tT),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let r=RNe(this.options);r.data!==void 0&&(this.setState(PNe(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=YC(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=>$s(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:!dM(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(p=>p.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=hM(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,bM({initialPromise:r?.initialPromise,fn:f.fetchFn,onCancel:d=>{d instanceof yM&&d.revert&&this.setState({...ne(this,b6),fetchStatus:\"idle\"}),n.abort()},onFail:(d,p)=>{Rt(this,Nl,Cm).call(this,{type:\"failed\",failureCount:d,error:p})},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 yM){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,tT=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,...jW(n.data,this.options),fetchMeta:t.meta??null};case\"success\":let o={...n,...PNe(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})})},MNe);function jW(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zW(t.networkMode)?\"fetching\":\"paused\",...e===void 0&&{error:null,status:\"pending\"}}}function PNe(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:\"success\"}}function RNe(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 qs,gr,nT,rs,xg,g6,Tm,cy,oT,x6,v6,vg,wg,uy,w6,en,rT,$W,qW,GW,VW,KW,WW,QW,HNe,DNe,JW=(DNe=class extends xu{constructor(t,r){super();Ye(this,en);Ye(this,qs);Ye(this,gr);Ye(this,nT);Ye(this,rs);Ye(this,xg);Ye(this,g6);Ye(this,Tm);Ye(this,cy);Ye(this,oT);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,qs,t),Me(this,cy,null),Me(this,Tm,eT()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ne(this,gr).addObserver(this),NNe(ne(this,gr),this.options)?Rt(this,en,rT).call(this):this.updateResult(),Rt(this,en,VW).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ZW(ne(this,gr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ZW(ne(this,gr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Rt(this,en,KW).call(this),Rt(this,en,WW).call(this),ne(this,gr).removeObserver(this)}setOptions(t){let r=this.options,n=ne(this,gr);if(this.options=ne(this,qs).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!=\"boolean\"&&typeof this.options.enabled!=\"function\"&&typeof $s(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,QW).call(this),ne(this,gr).setOptions(this.options),r._defaulted&&!f6(this.options,r)&&ne(this,qs).getQueryCache().notify({type:\"observerOptionsUpdated\",query:ne(this,gr),observer:this});let o=this.hasListeners();o&&UNe(ne(this,gr),n,this.options,r)&&Rt(this,en,rT).call(this),this.updateResult(),o&&(ne(this,gr)!==n||$s(this.options.enabled,ne(this,gr))!==$s(r.enabled,ne(this,gr))||Ol(this.options.staleTime,ne(this,gr))!==Ol(r.staleTime,ne(this,gr)))&&Rt(this,en,$W).call(this);let s=Rt(this,en,qW).call(this);o&&(ne(this,gr)!==n||$s(this.options.enabled,ne(this,gr))!==$s(r.enabled,ne(this,gr))||s!==ne(this,uy))&&Rt(this,en,GW).call(this,s)}getOptimisticResult(t){let r=ne(this,qs).getQueryCache().build(ne(this,qs),t),n=this.createResult(r,t);return Xht(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,qs).defaultQueryOptions(t),n=ne(this,qs).getQueryCache().build(ne(this,qs),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return Rt(this,en,rT).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),p=t!==n?t.state:ne(this,nT),{state:h}=t,y={...h},v=!1,E;if(r._optimisticResults){let Y=this.hasListeners(),W=!Y&&NNe(t,r),ie=Y&&UNe(t,n,r,o);(W||ie)&&(y={...y,...jW(h.data,t.options)}),r._optimisticResults===\"isRestoring\"&&(y.fetchStatus=\"idle\")}let{error:C,errorUpdatedAt:k,status:P}=y;E=y.data;let M=!1;if(r.placeholderData!==void 0&&E===void 0&&P===\"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&&(P=\"success\",E=YC(s?.data,Y,r),v=!0)}if(r.select&&E!==void 0&&!M)if(s&&E===u?.data&&r.select===ne(this,oT))E=ne(this,x6);else try{Me(this,oT,r.select),E=r.select(E),E=YC(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),k=Date.now(),P=\"error\");let U=y.fetchStatus===\"fetching\",O=P===\"pending\",N=P===\"error\",j=O&&U,K=E!==void 0,J={status:P,fetchStatus:y.fetchStatus,isPending:O,isSuccess:P===\"success\",isError:N,isInitialLoading:j,isLoading:j,data:E,dataUpdatedAt:y.dataUpdatedAt,error:C,errorUpdatedAt:k,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:U,isRefetching:U&&!O,isLoadingError:N&&!K,isPaused:y.fetchStatus===\"paused\",isPlaceholderData:v,isRefetchError:N&&K,isStale:YW(t,r),refetch:this.refetch,promise:ne(this,Tm),isEnabled:$s(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=eT());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,HNe).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Rt(this,en,VW).call(this)}},qs=new WeakMap,gr=new WeakMap,nT=new WeakMap,rs=new WeakMap,xg=new WeakMap,g6=new WeakMap,Tm=new WeakMap,cy=new WeakMap,oT=new WeakMap,x6=new WeakMap,v6=new WeakMap,vg=new WeakMap,wg=new WeakMap,uy=new WeakMap,w6=new WeakMap,en=new WeakSet,rT=function(t){Rt(this,en,QW).call(this);let r=ne(this,gr).fetch(this.options,t);return t?.throwOnError||(r=r.catch(xo)),r},$W=function(){Rt(this,en,KW).call(this);let t=Ol(this.options.staleTime,ne(this,gr));if(js||ne(this,rs).isStale||!ZC(t))return;let n=dM(ne(this,rs).dataUpdatedAt,t)+1;Me(this,vg,Ad.setTimeout(()=>{ne(this,rs).isStale||this.updateResult()},n))},qW=function(){return(typeof this.options.refetchInterval==\"function\"?this.options.refetchInterval(ne(this,gr)):this.options.refetchInterval)??!1},GW=function(t){Rt(this,en,WW).call(this),Me(this,uy,t),!(js||$s(this.options.enabled,ne(this,gr))===!1||!ZC(ne(this,uy))||ne(this,uy)===0)&&Me(this,wg,Ad.setInterval(()=>{(this.options.refetchIntervalInBackground||p6.isFocused())&&Rt(this,en,rT).call(this)},ne(this,uy)))},VW=function(){Rt(this,en,$W).call(this),Rt(this,en,GW).call(this,Rt(this,en,qW).call(this))},KW=function(){ne(this,vg)&&(Ad.clearTimeout(ne(this,vg)),Me(this,vg,void 0))},WW=function(){ne(this,wg)&&(Ad.clearInterval(ne(this,wg)),Me(this,wg,void 0))},QW=function(){let t=ne(this,qs).getQueryCache().build(ne(this,qs),this.options);if(t===ne(this,gr))return;let r=ne(this,gr);Me(this,gr,t),Me(this,nT,t.state),this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))},HNe=function(t){cn.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(ne(this,rs))}),ne(this,qs).getQueryCache().notify({query:ne(this,gr),type:\"observerResultsUpdated\"})})},DNe);function Yht(e,t){return $s(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===\"error\"&&t.retryOnMount===!1)}function NNe(e,t){return Yht(e,t)||e.state.data!==void 0&&ZW(e,t,t.refetchOnMount)}function ZW(e,t,r){if($s(t.enabled,e)!==!1&&Ol(t.staleTime,e)!==\"static\"){let n=typeof r==\"function\"?r(e):r;return n===\"always\"||n!==!1&&YW(e,t)}return!1}function UNe(e,t,r,n){return(e!==t||$s(n.enabled,e)===!1)&&(!r.suspense||e.state.status!==\"error\")&&YW(e,r)}function YW(e,t){return $s(t.enabled,e)!==!1&&e.isStaleByTime(Ol(t.staleTime,e))}function Xht(e,t){return!f6(e.getCurrentResult(),t)}c();function XW(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,p=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=hM(t.options,t.fetchOptions),E=async(C,k,P)=>{if(h)return Promise.reject();if(k==null&&C.pages.length)return Promise.resolve(C);let U=(()=>{let K={client:t.client,queryKey:t.queryKey,pageParam:k,direction:P?\"backward\":\"forward\",meta:t.options.meta};return y(K),K})(),O=await v(U),{maxPages:N}=t.options,j=P?TNe:CNe;return{pages:j(C.pages,O,N),pageParams:j(C.pageParams,k,N)}};if(o&&s.length){let C=o===\"backward\",k=C?e0t:LNe,P={pages:s,pageParams:u},M=k(n,P);f=await E(P,M,C)}else{let C=e??s.length;do{let k=d===0?u[0]??n.initialPageParam:LNe(n,f);if(d>0&&k==null)break;f=await E(f,k),d++}while(d<C)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=p}}}function LNe(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 e0t(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}c();c();var aT,Cd,ns,Eg,Td,ly,FNe,zNe=(FNe=class extends gM{constructor(t){super();Ye(this,Td);Ye(this,aT);Ye(this,Cd);Ye(this,ns);Ye(this,Eg);Me(this,aT,t.client),this.mutationId=t.mutationId,Me(this,ns,t.mutationCache),Me(this,Cd,[]),this.state=t.state||eQ(),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,aT),meta:this.options.meta,mutationKey:this.options.mutationKey};Me(this,Eg,bM({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)}}},aT=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})})},FNe);function eQ(){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,iT,jNe,$Ne=(jNe=class extends xu{constructor(t={}){super();Ye(this,_m);Ye(this,Ul);Ye(this,iT);this.config=t,Me(this,_m,new Set),Me(this,Ul,new Map),Me(this,iT,0)}build(t,r,n){let o=new zNe({client:t,mutationCache:this,mutationId:++jA(this,iT)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){ne(this,_m).add(t);let r=xM(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=xM(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=xM(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=xM(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=>mM(r,n))}findAll(t={}){return this.getAll().filter(r=>mM(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,iT=new WeakMap,jNe);function xM(e){return e.options.scope?.id}c();var km,fy,Gs,Bm,Im,vM,tQ,qNe,rQ=(qNe=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,vM).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,vM).call(this),Rt(this,Im,tQ).call(this,t)}getCurrentResult(){return ne(this,fy)}reset(){ne(this,Gs)?.removeObserver(this),Me(this,Gs,void 0),Rt(this,Im,vM).call(this),Rt(this,Im,tQ).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,vM=function(){let t=ne(this,Gs)?.state??eQ();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})},tQ=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))})})},qNe);c();var _d,GNe,VNe=(GNe=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??JC(o,r),u=this.get(s);return u||(u=new ONe({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=>pM(r,n))}findAll(t={}){let r=this.getAll();return Object.keys(t).length>0?r.filter(n=>pM(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,GNe);c();var vo,dy,py,E6,A6,my,S6,C6,KNe,nQ=(KNe=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 VNe),Me(this,dy,e.mutationCache||new $Ne),Me(this,py,e.defaultOptions||{}),Me(this,E6,new Map),Me(this,A6,new Map),Me(this,my,0)}mount(){jA(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;jA(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=ANe(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=XW(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xo).catch(xo)}ensureInfiniteQueryData(e){return e.behavior=XW(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=JC(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,KNe);function oQ(e){return JSON.stringify(e,(t,r)=>t0t(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):typeof r==\"bigint\"?r.toString():r)}function t0t(e){if(!WNe(e))return!1;let t=e.constructor;if(typeof t>\"u\")return!0;let r=t.prototype;return!(!WNe(r)||!r.hasOwnProperty(\"isPrototypeOf\"))}function WNe(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function QNe(e){let{_defaulted:t,behavior:r,gcTime:n,initialData:o,initialDataUpdatedAt:s,maxPages:u,meta:f,networkMode:d,queryFn:p,queryHash:h,queryKey:y,queryKeyHashFn:v,retry:E,retryDelay:C,structuralSharing:k,getPreviousPageParam:P,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:R,config:D,connector:L,query:V,...Q}=e;return Q}c();function aQ(e){return{mutationFn(t){return LOe(e,t)},mutationKey:[\"connect\"]}}c();function iQ(e){return{mutationFn(t){return zOe(e,t)},mutationKey:[\"disconnect\"]}}c();function sQ(e,t={}){return{gcTime:0,async queryFn({queryKey:r}){let{connector:n}=t,{connectorUid:o,scopeKey:s,...u}=r[1];return jOe(e,{...u,connector:n})},queryKey:ZNe(t)}}function ZNe(e={}){let{connector:t,...r}=e;return[\"walletClient\",{...QNe(r),connectorUid:t?.uid}]}c();function cQ(e){return{mutationFn(t){return qOe(e,t)},mutationKey:[\"switchChain\"]}}c();c();c();var T6=Sr(oo(),1),XNe=Sr(Dl(),1),uQ=T6.createContext(void 0),Ag=e=>{let t=T6.useContext(uQ);if(e)return e;if(!t)throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");return t},lQ=({client:e,children:t})=>(T6.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,XNe.jsx)(uQ.Provider,{value:e,children:t}));c();var EM=Sr(oo(),1),eUe=EM.createContext(!1),tUe=()=>EM.useContext(eUe),Zun=eUe.Provider;c();var sT=Sr(oo(),1),r0t=Sr(Dl(),1);function n0t(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var o0t=sT.createContext(n0t()),rUe=()=>sT.useContext(o0t);c();var nUe=Sr(oo(),1);var oUe=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},aUe=e=>{nUe.useEffect(()=>{e.clearReset()},[e])},iUe=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||XC(r,[e.error,n]));c();var sUe=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))}},cUe=(e,t)=>e.isLoading&&e.isFetching&&!t,uUe=(e,t)=>e?.suspense&&t.isPending,fQ=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});c();c();var hy=Sr(oo(),1);function lUe(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=tUe(),o=rUe(),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\",sUe(u),oUe(u,o),aUe(o);let f=!s.getQueryCache().get(u.queryHash),[d]=hy.useState(()=>new t(s,u)),p=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]),uUe(u,p))throw fQ(u,d,o);if(iUe({result:p,errorResetBoundary:o,throwOnError:u.throwOnError,query:s.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw p.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(u,p),u.experimental_prefetchInRender&&!js&&cUe(p,n)&&(f?fQ(u,d,o):s.getQueryCache().get(u.queryHash)?.promise)?.catch(xo).finally(()=>{d.updateResult()}),u.notifyOnChangeProps?p:d.trackResult(p)}function dQ(e,t){return lUe(e,JW,t)}c();var Pm=Sr(oo(),1);function yy(e,t){let r=Ag(t),[n]=Pm.useState(()=>new rQ(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&&XC(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function fUe(e){let t=dQ({...e,queryKeyHashFn:oQ});return t.queryKey=e.queryKey,t}c();var dUe=Sr(oo(),1);function pUe(e={}){let t=Ea(e);return(0,dUe.useSyncExternalStore)(r=>TW(t,{onChange:r}),()=>WR(t),()=>WR(t))}c();var mUe=Sr(oo(),1);function hUe(e={}){let t=Ea(e);return(0,mUe.useSyncExternalStore)(r=>HW(t,{onChange:r}),()=>QR(t),()=>QR(t))}c();var gUe=Sr(oo(),1);c();var yUe=Sr(oo(),1);function bUe(e={}){let t=Ea(e);return(0,yUe.useSyncExternalStore)(r=>kW(t,{onChange:r}),()=>YR(t),()=>YR(t))}function pQ(e={}){let{mutation:t}=e,r=Ea(e),n=aQ(r),{mutate:o,mutateAsync:s,...u}=yy({...t,...n});return(0,gUe.useEffect)(()=>r.subscribe(({status:f})=>f,(f,d)=>{d===\"connected\"&&f===\"disconnected\"&&u.reset()}),[r,u.reset]),{...u,connect:o,connectAsync:s,connectors:bUe({config:r})}}c();var xUe=Sr(oo(),1);function vUe(e={}){let t=Ea(e);return(0,xUe.useSyncExternalStore)(r=>_W(t,{onChange:r}),()=>u6(t),()=>u6(t))}c();function mQ(e={}){let{mutation:t}=e,r=Ea(e),n=iQ(r),{mutate:o,mutateAsync:s,...u}=yy({...t,...n});return{...u,connectors:vUe({config:r}).map(f=>f.connector),disconnect:o,disconnectAsync:s}}c();function hQ(e={}){let{mutation:t}=e,r=Ea(e),n=cQ(r),{mutate:o,mutateAsync:s,...u}=yy({...t,...n});return{...u,chains:hUe({config:r}),switchChain:o,switchChainAsync:s}}c();var AM=Sr(oo(),1);function yQ(e={}){let{query:t={},...r}=e,n=Ea(r),o=Ag(),{address:s,connector:u,status:f}=QC({config:n}),d=pUe({config:n}),p=e.connector??u,{queryKey:h,...y}=sQ(n,{...e,chainId:e.chainId??d,connector:e.connector??u}),v=!!((f===\"connected\"||f===\"reconnecting\"&&p?.getProvider)&&(t.enabled??!0)),E=(0,AM.useRef)(s);return(0,AM.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]),fUe({...t,...y,queryKey:h,enabled:v,staleTime:Number.POSITIVE_INFINITY})}c();c();c();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 iO=class extends be{constructor(t){super(`Filter type \"${t}\" is not supported.`,{name:\"FilterTypeNotSupportedError\"})}};Wa();$l();vT();Hm();Mm();Sy();var pDe=\"/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 mT(r,{docsPath:pDe});o=d}if(o.type!==\"event\")throw new mT(void 0,{docsPath:pDe});let s=la(o),u=wy(s),f=[];if(n&&\"inputs\"in o){let d=o.inputs?.filter(h=>\"indexed\"in h&&h.indexed),p=Array.isArray(n)?n:Object.values(n).length>0?d?.map(h=>n[h.name])??[]:[];p.length>0&&(f=d?.map((h,y)=>Array.isArray(p[y])?p[y].map((v,E)=>mDe({param:h,value:p[y][E]})):typeof p[y]<\"u\"&&p[y]!==null?mDe({param:h,value:p[y]}):null)??[])}return[u,...f]}function mDe({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 iO(e.type);return as([e],[t])}Ht();c();function Cy(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 yO(e,t){let{address:r,abi:n,args:o,eventName:s,fromBlock:u,strict:f,toBlock:d}=t,p=Cy(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\"?ze(u):u,toBlock:typeof d==\"bigint\"?ze(d):d,topics:h}]});return{abi:n,args:o,eventName:s,id:y,request:p(y),strict:!!f,type:\"event\"}}c();Oc();Nc();c();Po();xr();Ty();Pg();TT();var W0t=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:p,details:h,message:y,shortMessage:v}=f,E=e instanceof Eu?new PO({functionName:s,cause:e}):[W0t,zm.code].includes(d)&&(p||h||y||v)||d===_u.code&&h===\"execution reverted\"&&p?new Ig({abi:t,data:typeof p==\"object\"?p.data:p,functionName:s,message:f instanceof _y?h:v??y,cause:e}):e;return new q6(E,{abi:t,args:n,contractAddress:r,docsPath:o,functionName:s,sender:u})}c();Oc();xr();c();c();c();Ay();$l();function PDe(e){let t=Tn(`0x${e.substring(4)}`).substring(26);return Ey(`0x${t}`)}c();Ll();wu();os();Ht();async function MDe({hash:e,signature:t}){let r=Ro(e)?e:Wo(e),{secp256k1:n}=await Promise.resolve().then(()=>(S0(),OG));return`0x${(()=>{if(typeof t==\"object\"&&\"r\"in t&&\"s\"in t){let{r:p,s:h,v:y,yParity:v}=t,E=Number(v??y),C=RDe(E);return new n.Signature(Va(p),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=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\")}async function _T({hash:e,signature:t}){return PDe(await MDe({hash:e,signature:t}))}c();Su();Wa();Ht();c();xr();vO();Wa();Ht();function ODe(e,t=\"hex\"){let r=NDe(e),n=D6(new Uint8Array(r.length));return r.encode(n),t===\"hex\"?Or(n.bytes):n.bytes}function NDe(e){return Array.isArray(e)?Q0t(e.map(t=>NDe(t))):Z0t(e)}function Q0t(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 Z0t(e){let t=typeof e==\"string\"?Ka(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 be(\"Length is too large.\")}$l();function DDe(e){let{chainId:t,nonce:r,to:n}=e,o=e.contractAddress??e.address,s=Tn(ql([\"0x05\",ODe([t?ze(t):\"0x\",o,r?ze(r):\"0x\"])]));return n===\"bytes\"?Ka(s):s}async function OO(e){let{authorization:t,signature:r}=e;return _T({hash:DDe(t),signature:r??t})}Ht();c();c();AO();F6();xr();Fm();var NO=class extends be{constructor(t,{account:r,docsPath:n,chain:o,data:s,gas:u,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,to:y,value:v}){let E=kg({from:r?.address,to:y,value:typeof v<\"u\"&&`${L6(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 p<\"u\"&&`${fa(p)} 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();kT();function HDe(e,{docsPath:t,...r}){let n=(()=>{let o=Py(e,r);return o instanceof ku?e:o})();return new NO(n,{docsPath:t,...r})}BT();v5();UO();Ng();c();Oc();c();c();F6();xr();var A5=class extends be{constructor(){super(\"`baseFeeMultiplier` must be greater than 1.\",{name:\"BaseFeeScalarError\"})}},My=class extends be{constructor(){super(\"Chain does not support EIP-1559 fees.\",{name:\"Eip1559FeesNotSupportedError\"})}},DO=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 S5=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 jQ={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"};function C5(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?jQ[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=zbt(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 zbt(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 HO(e,t){let r=(e.transactions??[]).map(n=>typeof n==\"string\"?n:C5(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?ze(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 S5({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||HO)(f,\"getBlock\")}c();async function T5(e){let t=await e.request({method:\"eth_gasPrice\"});return BigInt(t)}async function FDe(e,t){return $Q(e,t)}async function $Q(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,T5,\"getGasPrice\")({})]);if(typeof s.baseFeePerGas!=\"bigint\")throw new My;let f=u-s.baseFeePerGas;return f<0n?0n:f}}async function zDe(e,t){return LO(e,t)}async function LO(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 A5;let d=10**(u.toString().split(\".\")[1]?.length??0),p=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:p,request:o,type:s});if(v!==null)return v}if(s===\"eip1559\"){if(typeof h.baseFeePerGas!=\"bigint\")throw new My;let v=typeof o?.maxPriorityFeePerGas==\"bigint\"?o.maxPriorityFeePerGas:await $Q(e,{block:h,chain:n,request:o}),E=p(h.baseFeePerGas);return{maxFeePerGas:o?.maxFeePerGas??E+v,maxPriorityFeePerGas:v}}return{gasPrice:o?.gasPrice??p(await Ue(e,T5,\"getGasPrice\")({}))}}c();os();Ht();async function FO(e,{address:t,blockTag:r=\"latest\",blockNumber:n}){let o=await e.request({method:\"eth_getTransactionCount\",params:[t,typeof n==\"bigint\"?ze(n):r]},{dedupe:!!n});return Sa(o)}c();Wa();Ht();function zO(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 jO(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();kS();Ll();Wa();Ht();function jDe(e,t){let r=t||\"hex\",n=O0(Ro(e,{strict:!1})?Au(e):e);return r===\"bytes\"?n:Wo(n)}function $De(e){let{commitment:t,version:r=1}=e,n=e.to??(typeof t==\"string\"?\"hex\":\"bytes\"),o=jDe(t,\"bytes\");return o.set([r],0),n===\"bytes\"?o:Or(o)}function qDe(e){let{commitments:t,version:r}=e,n=e.to??(typeof t[0]==\"string\"?\"hex\":\"bytes\"),o=[];for(let s of t)o.push($De({commitment:s,to:n,version:r}));return o}c();c();c();xr();var $O=class extends be{constructor({maxSize:t,size:r}){super(\"Blob size is too large.\",{metaMessages:[`Max: ${t} bytes`,`Given: ${r} bytes`],name:\"BlobSizeTooLargeError\"})}},qO=class extends be{constructor(){super(\"Blob data must not be empty.\",{name:\"EmptyBlobError\"})}};vO();wu();Wa();Ht();function GDe(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 qO;if(n>761855)throw new $O({maxSize:761855,size:n});let o=[],s=!0,u=0;for(;s;){let f=D6(new Uint8Array(131072)),d=0;for(;d<4096;){let p=r.slice(u,u+31);if(f.pushByte(0),f.pushBytes(p),p.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 VDe(e){let{data:t,kzg:r,to:n}=e,o=e.blobs??GDe({data:t,to:n}),s=e.commitments??zO({blobs:o,kzg:r,to:n}),u=e.proofs??jO({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}wT();Ng();c();Fm();function KDe(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 TO({transaction:e})}c();Oc();c();Og();Fm();kT();function WDe(e,{docsPath:t,...r}){let n=(()=>{let o=Py(e,r);return o instanceof ku?e:o})();return new _O(n,{docsPath:t,...r})}BT();v5();Ng();c();os();async function _5(e){let t=await e.request({method:\"eth_chainId\"},{dedupe:!0});return Sa(t)}async function GO(e,t){let{account:r=e.account,accessList:n,authorizationList:o,chain:s=e.chain,blobVersionedHashes:u,blobs:f,data:d,gas:p,gasPrice:h,maxFeePerBlobGas:y,maxFeePerGas:v,maxPriorityFeePerGas:E,nonce:C,nonceManager:k,to:P,type:M,value:U,...O}=t,N=await(async()=>{if(!r||!k||typeof C<\"u\")return C;let J=jn(r),Y=s?s.id:await Ue(e,_5,\"getChainId\")({});return await k.consume({address:J.address,chainId:Y,client:e})})();Bu(t);let j=s?.formatters?.transactionRequest?.format,G=(j||Od)({...Ry(O,{format:j}),account:r?jn(r):void 0,accessList:n,authorizationList:o,blobs:f,blobVersionedHashes:u,data:d,gas:p,gasPrice:h,maxFeePerBlobGas:y,maxFeePerGas:v,maxPriorityFeePerGas:E,nonce:N,to:P,type:M,value:U},\"fillTransaction\");try{let J=await e.request({method:\"eth_fillTransaction\",params:[G]}),W=(s?.formatters?.transaction?.format||C5)(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 A5;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 WDe(J,{...t,chain:e.chain})}}var $bt=[\"blobVersionedHashes\",\"chainId\",\"fees\",\"gas\",\"nonce\",\"type\"],QDe=new Map,qQ=new Bd(128);async function VO(e,t){let r=t;r.account??(r.account=e.account),r.parameters??(r.parameters=$bt);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 p(){return d||(typeof r.chainId<\"u\"?r.chainId:o?o.id:(d=await Ue(e,_5,\"getChainId\")({}),d))}let h=n&&jn(n),y=r.nonce;if(u.includes(\"nonce\")&&typeof y>\"u\"&&h&&s){let N=await p();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||qQ.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,GO,\"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 qQ.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\")})&&qQ.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:k,kzg:P,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,FO,\"getTransactionCount\")({address:h.address,blockTag:\"pending\"})),(u.includes(\"blobVersionedHashes\")||u.includes(\"sidecars\"))&&C&&P){let N=zO({blobs:C,kzg:P});if(u.includes(\"blobVersionedHashes\")){let j=qDe({commitments:N,to:\"hex\"});r.blobVersionedHashes=j}if(u.includes(\"sidecars\")){let j=jO({blobs:C,commitments:N,kzg:P}),K=VDe({blobs:C,commitments:N,proofs:j,to:\"hex\"});r.sidecars=K}}if(u.includes(\"chainId\")&&(r.chainId=await p()),(u.includes(\"fees\")||u.includes(\"type\"))&&typeof M>\"u\")try{r.type=KDe(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 LO(e,{block:N,chain:o,request:r});if(typeof r.maxPriorityFeePerGas>\"u\"&&r.maxFeePerGas&&r.maxFeePerGas<K)throw new DO({maxPriorityFeePerGas:K});r.maxPriorityFeePerGas=K,r.maxFeePerGas=j}}else{if(typeof r.maxFeePerGas<\"u\"||typeof r.maxPriorityFeePerGas<\"u\")throw new My;if(typeof r.gasPrice>\"u\"){let N=await O(),{gasPrice:j}=await LO(e,{block:N,chain:o,request:r,type:\"legacy\"});r.gasPrice=j}}return u.includes(\"gas\")&&typeof k>\"u\"&&(r.gas=await Ue(e,k5,\"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 k5(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 OO({authorization:t.authorizationList[0]}).catch(()=>{throw new be(\"`to` is required. Could not infer from `authorizationList`\")})})(),{accessList:f,authorizationList:d,blobs:p,blobVersionedHashes:h,blockNumber:y,blockTag:v,data:E,gas:C,gasPrice:k,maxFeePerBlobGas:P,maxFeePerGas:M,maxPriorityFeePerGas:U,nonce:O,value:N,stateOverride:j,...K}=n?await VO(e,{...t,parameters:s,to:u}):t;if(C&&t.gas!==C)return C;let J=(typeof y==\"bigint\"?ze(y):void 0)||v,Y=w5(j);Bu(t);let W=e.chain?.formatters?.transactionRequest?.format,re=(W||Od)({...Ry(K,{format:W}),account:o,accessList:f,authorizationList:d,blobs:p,blobVersionedHashes:h,data:E,gasPrice:k,maxFeePerBlobGas:P,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 HDe(u,{...t,account:o,chain:e.chain})}}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=_n({abi:r,args:o,functionName:s});try{return await Ue(e,k5,\"estimateGas\")({data:`${d}${u?u.replace(\"0x\",\"\"):\"\"}`,to:n,...f})}catch(p){let h=f.account?jn(f.account):void 0;throw Gl(p,{abi:r,address:n,args:o,docsPath:\"/docs/contract/estimateContractGas\",functionName:s,sender:h?.address})}}c();Sy();c();c();B5();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}:{}}}$l();vT();c();Po();OQ();wu();vT();ST();Mm();var JDe=\"/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 XM({docsPath:JDe});let d=t.find(M=>M.type===\"event\"&&u===wy(la(M)));if(!(d&&\"name\"in d)||d.type!==\"event\")throw new eO(u,{docsPath:JDe});let{name:p,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 gy({abiItem:d,param:U});C.push([U,O]);continue}v[y?O:U.name||O]=qbt({param:U,value:N})}let k=h.filter(M=>!(\"indexed\"in M&&M.indexed)),P=s?k:[...C.map(([M])=>M),...k];if(P.length>0){if(r&&r!==\"0x\")try{let M=Lm(P,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<k.length;O++)v[k[O].name]=M[U++]}}catch(M){if(s)throw M instanceof P6||M instanceof U6?new Om({abiItem:d,data:r,params:P,size:wr(r)}):M}else if(s)throw new Om({abiItem:d,data:\"0x\",params:P,size:0})}return{eventName:p,args:Object.values(v).length>0?v:void 0}}function qbt({param:e,value:t}){return e.type===\"string\"||e.type===\"bytes\"||e.type===\"tuple\"||e.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/)?t:(Lm([e],t)||[])[0]}function I5(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:wy(f)}));return n.map(f=>{let d=typeof f.blockNumber==\"string\"?Ta(f):f,p=u.filter(v=>d.topics[0]===v.selector);if(p.length===0)return null;let h,y;for(let v of p)try{h=Ug({...d,abi:[v.abi],strict:!0}),y=v;break}catch{}if(!h&&!o){y=p[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)||!Gbt({args:h.args,inputs:y.abi.inputs,matchArgs:r})?null:{...h,...d}}).filter(Boolean)}function Gbt(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(p=>o(f,p,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(p=>p.name===s);return f?(Array.isArray(u)?u:[u]).some(p=>o(f,p,t[s])):!1}):!1}Ht();async function P5(e,{address:t,blockHash:r,fromBlock:n,toBlock:o,event:s,events:u,args:f,strict:d}={}){let p=d??!1,h=u??(s?[s]:void 0),y=[];h&&(y=[h.flatMap(k=>Pd({abi:[k],eventName:k.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\"?ze(n):n,toBlock:typeof o==\"bigint\"?ze(o):o}]});let E=v.map(C=>Ta(C));return h?I5({abi:h,args:f,logs:E,strict:p}):E}async function KO(e,t){let{abi:r,address:n,args:o,blockHash:s,eventName:u,fromBlock:f,toBlock:d,strict:p}=t,h=u?Ws({abi:r,name:u}):void 0,y=h?void 0:r.filter(v=>v.type===\"event\");return Ue(e,P5,\"getLogs\")({address:n,args:o,blockHash:s,event:h,events:y,fromBlock:f,toBlock:d,strict:p})}c();$m();Nc();Fg();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();$m();Nc();Fg();async function HHe(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,p=_n({abi:r,args:o,functionName:s});try{let{data:h}=await Ue(e,Ru,\"call\")({batch:!1,data:`${p}${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();TT();c();var yZ=new Map,LHe=new Map,f1t=0;function Js(e,t,r){let n=++f1t,o=()=>yZ.get(e)||[],s=()=>{let h=o();yZ.set(e,h.filter(y=>y.id!==n))},u=()=>{let h=o();if(!h.some(v=>v.id===n))return;let y=LHe.get(e);if(h.length===1&&y){let v=y();v instanceof Promise&&v.catch(()=>{})}s()},f=o();if(yZ.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 p=r(d);return typeof p==\"function\"&&LHe.set(e,p),u}c();c();async function LT(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 LT(d);let p=async()=>{o&&(await e({unpoll:s}),await LT(n),p())};p()})(),s}Qs();c();c();var d1t=new Map,p1t=new Map;function FHe(e){let t=(o,s)=>({clear:()=>s.delete(o),get:()=>s.get(o),set:u=>s.set(o,u)}),r=t(e,d1t),n=t(e,p1t);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}async function zHe(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){let n=FHe(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 m1t=e=>`blockNumber.${e}`;async function Ld(e,{cacheTime:t=e.cacheTime}={}){let r=await zHe(()=>e.request({method:\"eth_blockNumber\"}),{cacheKey:m1t(e.uid),cacheTime:t});return BigInt(r)}c();async function Uy(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:I5({abi:t.abi,logs:o,strict:r})}c();async function Dy(e,{filter:t}){return t.request({method:\"eth_uninstallFilter\",params:[t.id]})}function jHe(e,t){let{abi:r,address:n,args:o,batch:s=!0,eventName:u,fromBlock:f,onError:d,onLogs:p,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 P=v??!1,M=Nr([\"watchContractEvent\",n,o,s,e.uid,u,y,P,f]);return Js(M,{onLogs:p,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,yO,\"createContractEventFilter\")({abi:r,address:n,args:o,eventName:u,strict:P,fromBlock:f})}catch{}j=!0;return}try{let G;if(N)G=await Ue(e,Uy,\"getFilterChanges\")({filter:N});else{let J=await Ue(e,Ld,\"getBlockNumber\")({});O&&O<J?G=await Ue(e,KO,\"getContractEvents\")({abi:r,address:n,args:o,eventName:u,fromBlock:O+1n,toBlock:J,strict:P}):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,Dy,\"uninstallFilter\")({filter:N}),K()}})})():(()=>{let P=v??!1,M=Nr([\"watchContractEvent\",n,o,s,e.uid,u,y,P]),U=!0,O=()=>U=!1;return Js(M,{onLogs:p,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 gy){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 $He(e,{serializedTransaction:t}){return e.request({method:\"eth_sendRawTransaction\",params:[t]},{retryCount:0})}c();function FT(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:p})=>{let h=typeof t==\"function\"?t({count:f,error:p}):t;h&&await LT(h),u({count:f+1})};try{let p=await e();o(p)}catch(p){if(f<r&&await n({count:f,error:p}))return d({error:p});s(p)}};u()})}c();os();var h1t={\"0x0\":\"reverted\",\"0x1\":\"success\"};function pN(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?h1t[e.status]:null,type:e.type?jQ[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 mN=256,hN;function yN(e=11){if(!hN||mN+e>256*2){hN=\"\",mN=0;for(let t=0;t<256;t++)hN+=(256+Math.random()*256|0).toString(16).substring(1)}return hN.substring(mN,mN+++e)}function qHe(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),p=r?.blockTime??12e3,h=Math.min(Math.max(Math.floor(p/2),500),4e3),y=e.pollingInterval??h,v=e.cacheTime??y,E=e.account?jn(e.account):void 0,{config:C,request:k,value:P}=e.transport({account:E,chain:r,pollingInterval:y}),M={...C,...P},U={account:E,batch:t,cacheTime:v,ccipRead:n,chain:r,dataSuffix:o,key:s,name:u,pollingInterval:y,request:k,transport:M,type:f,uid:yN(),...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();$m();Nc();Lg();xT();Ht();c();xr();Ty();function L5(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}HT();c();Su();Wa();Ht();$l();c();Ll();function bN(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 zT(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=bN(r[n]),s=o?Au(o):Tn(jl(r[n]),\"bytes\");t=Tn(Qa([t,s]),\"bytes\")}return Or(t)}c();Wa();c();function GHe(e){return`[${e.slice(2)}]`}c();Wa();Ht();$l();function VHe(e){let t=new Uint8Array(32).fill(0);return e?bN(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(GHe(VHe(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 KHe(e,t){let{blockNumber:r,blockTag:n,coinType:o,name:s,gatewayUrls:u,strict:f}=t,{chain:d}=e,p=(()=>{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?[zT(s),BigInt(o)]:[zT(s)];try{let v=_n({abi:rZ,functionName:\"addr\",args:y}),E={address:p,abi:aN,functionName:\"resolveWithGateways\",args:[Wo(F5(s)),v,u??[Km]],blockNumber:r,blockTag:n},k=await Ue(e,Zo,\"readContract\")(E);if(k[0]===\"0x\")return null;let P=xi({abi:rZ,args:y,functionName:\"addr\",data:k[0]});return P===\"0x\"||zl(P)===\"0x00\"?null:P}catch(v){if(f)throw v;if(L5(v))return null;throw v}}c();c();c();c();xr();var gN=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\"})}},Hy=class extends be{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:\"EnsAvatarInvalidNftUriError\"})}},z5=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\"})}},xN=class extends be{constructor({namespace:t}){super(`ENS NFT avatar namespace \"${t}\" is not supported. Must be \"erc721\" or \"erc1155\".`,{name:\"EnsAvatarUnsupportedNamespaceError\"})}};var y1t=/(?<protocol>https?:\\\\/\\\\/[^/]*|ipfs:\\\\/|ipns:\\\\/|ar:\\\\/)?(?<root>\\\\/)?(?<subpath>ipfs\\\\/|ipns\\\\/)?(?<target>[\\\\w\\\\-.]+)(?<subtarget>\\\\/.*)?/,b1t=/^(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>\\\\/.*)?$/,g1t=/^data:([a-zA-Z\\\\-/+]*);base64,([^\"].*)/,x1t=/^data:([a-zA-Z\\\\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function v1t(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 WHe(e,t){return e?e.endsWith(\"/\")?e.slice(0,-1):e:t}function bZ({uri:e,gatewayUrls:t}){let r=g1t.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=WHe(t?.ipfs,\"https://ipfs.io\"),o=WHe(t?.arweave,\"https://arweave.net\"),s=e.match(y1t),{protocol:u,subpath:f,target:d,subtarget:p=\"\"}=s?.groups||{},h=u===\"ipns:/\"||f===\"ipns/\",y=u===\"ipfs:/\"||f===\"ipfs/\"||b1t.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}${p}`,isOnChain:!1,isEncoded:!1};if(u===\"ar:/\"&&d)return{uri:`${o}/${d}${p||\"\"}`,isOnChain:!1,isEncoded:!1};let v=e.replace(x1t,\"\");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 z5({uri:e})}function gZ(e){if(typeof e!=\"object\"||!(\"image\"in e)&&!(\"image_url\"in e)&&!(\"image_data\"in e))throw new gN({data:e});return e.image||e.image_url||e.image_data}async function QHe({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(o=>o.json());return await vN({gatewayUrls:e,uri:gZ(r)})}catch{throw new z5({uri:t})}}async function vN({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=bZ({uri:t,gatewayUrls:e});if(n||await v1t(r))return r;throw new z5({uri:t})}function ZHe(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 Hy({reason:\"Only EIP-155 supported\"});if(!u)throw new Hy({reason:\"Chain ID not found\"});if(!d)throw new Hy({reason:\"Contract address not found\"});if(!o)throw new Hy({reason:\"Token ID not found\"});if(!f)throw new Hy({reason:\"ERC namespace not found\"});return{chainID:Number.parseInt(u,10),namespace:f.toLowerCase(),contractAddress:d,tokenID:o}}async function JHe(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 xN({namespace:t.namespace})}async function YHe(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?w1t(e,{gatewayUrls:t,record:r}):vN({uri:r,gatewayUrls:t})}async function w1t(e,{gatewayUrls:t,record:r}){let n=ZHe(r),o=await JHe(e,{nft:n}),{uri:s,isOnChain:u,isEncoded:f}=bZ({uri:o,gatewayUrls:t});if(u&&(s.includes(\"data:application/json;base64,\")||s.startsWith(\"{\"))){let p=f?atob(s.replace(\"data:application/json;base64,\",\"\")):s,h=JSON.parse(p);return vN({uri:gZ(h),gatewayUrls:t})}let d=n.tokenID;return n.namespace===\"erc1155\"&&(d=d.replace(\"0x\",\"\").padStart(64,\"0\")),QHe({gatewayUrls:t,uri:s.replace(/(?:0x)?{id}/,d)})}c();Vm();$m();Nc();Lg();Ht();HT();async function wN(e,t){let{blockNumber:r,blockTag:n,key:o,name:s,gatewayUrls:u,strict:f}=t,{chain:d}=e,p=(()=>{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:p,abi:aN,args:[Wo(F5(s)),_n({abi:tZ,functionName:\"text\",args:[zT(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:tZ,functionName:\"text\",data:E[0]});return C===\"\"?null:C}catch(y){if(f)throw y;if(L5(y))return null;throw y}}async function XHe(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:o,gatewayUrls:s,strict:u,universalResolverAddress:f}){let d=await Ue(e,wN,\"getEnsText\")({blockNumber:t,blockTag:r,key:\"avatar\",name:o,universalResolverAddress:f,gatewayUrls:s,strict:u});if(!d)return null;try{return await YHe(e,{record:d,gatewayUrls:n})}catch{return null}}c();Vm();Lg();HT();async function eLe(e,t){let{address:r,blockNumber:n,blockTag:o,coinType:s=60n,gatewayUrls:u,strict:f}=t,{chain:d}=e,p=(()=>{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:p,abi:EHe,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(L5(h))return null;throw h}}c();Lg();Ht();async function tLe(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(p=>o.endsWith(p)))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}Fg();c();Oc();Ht();cZ();BT();v5();Ng();async function EN(e,t){let{account:r=e.account,blockNumber:n,blockTag:o=\"latest\",blobs:s,data:u,gas:f,gasPrice:d,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:y,to:v,value:E,...C}=t,k=r?jn(r):void 0;try{Bu(t);let M=(typeof n==\"bigint\"?ze(n):void 0)||o,U=e.chain?.formatters?.transactionRequest?.format,N=(U||Od)({...Ry(C,{format:U}),account:k,blobs:s,data:u,gas:f,gasPrice:d,maxFeePerBlobGas:p,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(P){throw sN(P,{...t,account:k,chain:e.chain})}}c();async function rLe(e){let t=Cy(e,{method:\"eth_newBlockFilter\"}),r=await e.request({method:\"eth_newBlockFilter\"});return{id:r,request:t(r),type:\"block\"}}c();Ht();async function AN(e,{address:t,args:r,event:n,events:o,fromBlock:s,strict:u,toBlock:f}={}){let d=o??(n?[n]:void 0),p=Cy(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\"?ze(s):s,toBlock:typeof f==\"bigint\"?ze(f):f,...h.length?{topics:h}:{}}]});return{abi:d,args:r,eventName:n?n.name:void 0,fromBlock:s,id:y,request:p(y),strict:!!u,toBlock:f,type:\"event\"}}c();async function SN(e){let t=Cy(e,{method:\"eth_newPendingTransactionFilter\"}),r=await e.request({method:\"eth_newPendingTransactionFilter\"});return{id:r,request:t(r),type:\"transaction\"}}c();Vm();$m();Nc();Ht();Fg();async function nLe(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\"?ze(r):void 0,s=await e.request({method:\"eth_getBalance\",params:[t,o||n]});return BigInt(s)}c();async function oLe(e){let t=await e.request({method:\"eth_blobBaseFee\"});return BigInt(t)}c();os();Ht();async function aLe(e,{blockHash:t,blockNumber:r,blockTag:n=\"latest\"}={}){let o=r!==void 0?ze(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 zg(e,{address:t,blockNumber:r,blockTag:n=\"latest\"}){let o=r!==void 0?ze(r):void 0,s=await e.request({method:\"eth_getCode\",params:[t,o||n]},{dedupe:!!o});if(s!==\"0x\")return s}c();Ay();wu();_g();async function iLe(e,{address:t,blockNumber:r,blockTag:n=\"latest\"}){let o=await zg(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 CN=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 sLe(e,t){let{address:r,factory:n,factoryData:o}=t;try{let[s,u,f,d,p,h,y]=await Ue(e,Zo,\"readContract\")({abi:E1t,address:r,functionName:\"eip712Domain\",factory:n,factoryData:o});return{domain:{name:u,version:f,chainId:Number(d),verifyingContract:p,salt:h},extensions:y,fields:s}}catch(s){let u=s;throw u.name===\"ContractFunctionExecutionError\"&&u.cause.name===\"ContractFunctionZeroDataError\"?new CN({address:r}):u}}var E1t=[{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 cLe(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 uLe(e,{blockCount:t,blockNumber:r,blockTag:n=\"latest\",rewardPercentiles:o}){let s=typeof r==\"bigint\"?ze(r):void 0,u=await e.request({method:\"eth_feeHistory\",params:[ze(t),s||n,o]},{dedupe:!!s});return cLe(u)}c();async function lLe(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?I5({abi:t.abi,logs:o,strict:r}):o}c();Ht();c();c();c();Ay();B5();async function fLe({address:e,authorization:t,signature:r}){return Vl(Nn(e),await OO({authorization:t,signature:r}))}c();xr();Pg();TT();c();wT();var TN=new Bd(8192);function dLe(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(TN.get(r))return TN.get(r);let n=e().finally(()=>TN.delete(r));return TN.set(r,n),n}Qs();function pLe(e,t={}){return async(r,n={})=>{let{dedupe:o=!1,methods:s,retryDelay:u=150,retryCount:f=3,uid:d}={...t,...n},{method:p}=r;if(s?.exclude?.includes(p))throw new ky(new Error(\"method not supported\"),{method:p});if(s?.include&&!s.include.includes(p))throw new ky(new Error(\"method not supported\"),{method:p});let h=o?S1t(`${d}.${Nr(r)}`):void 0;return dLe(()=>FT(async()=>{try{return await e(r)}catch(y){let v=y;switch(v.code){case G6.code:throw new G6(v);case V6.code:throw new V6(v);case K6.code:throw new K6(v,{method:r.method});case W6.code:throw new W6(v);case zm.code:throw new zm(v);case _u.code:throw new _u(v);case Q6.code:throw new Q6(v);case Z6.code:throw new Z6(v);case J6.code:throw new J6(v);case ky.code:throw new ky(v,{method:r.method});case Rg.code:throw new Rg(v);case Y6.code:throw new Y6(v);case Mg.code:throw new Mg(v);case X6.code:throw new X6(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 5e3:throw new Mg(v);case f5.code:throw new f5(v);default:throw y instanceof be?y:new MO(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===zm.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 S1t(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 mLe(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 C1t(){return{current:0,take(){return this.current++},reset(){this.current=0}}}var xZ=C1t();function hLe(e,t={}){let{url:r,headers:n}=T1t(e);return{async request(o){let{body:s,fetchFn:u=t.fetchFn??fetch,onRequest:f=t.onRequest,onResponse:d=t.onResponse,timeout:p=t.timeout??1e4}=o,h={...t.fetchOptions??{},...o.fetchOptions??{}},{headers:y,method:v,signal:E}=h;try{let C=await mLe(async({signal:P})=>{let M={...h,body:Array.isArray(s)?Nr(s.map(j=>({jsonrpc:\"2.0\",id:j.id??xZ.take(),...j}))):Nr({jsonrpc:\"2.0\",id:s.id??xZ.take(),...s}),headers:{...n,\"Content-Type\":\"application/json\",...y},method:v||\"POST\",signal:E||(p>0?P:null)},U=new Request(r,M),O=await f?.(U,M)??{...M,url:r};return await u(O.url??r,O)},{errorInstance:new CT({body:s,url:r}),timeout:p,signal:!0});d&&await d(C);let k;if(C.headers.get(\"Content-Type\")?.startsWith(\"application/json\"))k=await C.json();else{k=await C.text();try{k=JSON.parse(k||\"{}\")}catch(P){if(C.ok)throw P;k={error:k}}}if(!C.ok){if(typeof k.error?.code==\"number\"&&typeof k.error?.message==\"string\")return k;throw new Tu({body:s,details:Nr(k.error)||C.statusText,headers:C.headers,status:C.status,url:r})}return k}catch(C){throw C instanceof Tu||C instanceof CT?C:new Tu({body:s,cause:C,url:r})}}}}function T1t(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();$l();c();c();var yLe=`\\u0019Ethereum Signed Message:\\n`;Su();wu();Ht();function bLe(e){let t=typeof e==\"string\"?Cg(e):typeof e.raw==\"string\"?e.raw:Or(e.raw),r=Cg(`${yLe}${wr(t)}`);return Qa([r,t])}function _N(e,t){return Tn(bLe(e),t)}c();Hm();Su();Ht();$l();c();Po();Tg();c();Qs();xr();var kN=class extends be{constructor({domain:t}){super(`Invalid domain \"${Nr(t)}\".`,{metaMessages:[\"Must be a valid EIP-712 domain.\"]})}},BN=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`.\"]})}},IN=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();IQ();function gLe(e){let{domain:t,message:r,primaryType:n,types:o}=e,s=(u,f)=>{for(let d of u){let{name:p,type:h}=d,y=f[p],v=h.match(mO);if(v&&(typeof y==\"number\"||typeof y==\"bigint\")){let[k,P,M]=v;ze(y,{signed:P===\"int\",size:Number.parseInt(M,10)/8})}if(h===\"address\"&&typeof y==\"string\"&&!Qo(y))throw new yi({address:y});let E=h.match(fDe);if(E){let[k,P]=E;if(P&&wr(y)!==Number.parseInt(P,10))throw new nO({expectedSize:Number.parseInt(P,10),givenSize:wr(y)})}let C=o[h];C&&(_1t(h),s(C,y))}};if(o.EIP712Domain&&t){if(typeof t!=\"object\")throw new kN({domain:t});s(o.EIP712Domain,t)}if(n!==\"EIP712Domain\")if(o[n])s(o[n],r);else throw new BN({primaryType:n,types:o})}function xLe({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 _1t(e){if(e===\"address\"||e===\"bool\"||e===\"string\"||e.startsWith(\"bytes\")||e.startsWith(\"uint\")||e.startsWith(\"int\"))throw new IN({type:e})}function vLe(e){let{domain:t={},message:r,primaryType:n}=e,o={EIP712Domain:xLe({domain:t}),...e.types};gLe({domain:t,message:r,primaryType:n,types:o});let s=[\"0x1901\"];return t&&s.push(k1t({domain:t,types:o})),n!==\"EIP712Domain\"&&s.push(wLe({data:r,primaryType:n,types:o})),Tn(Qa(s))}function k1t({domain:e,types:t}){return wLe({data:e,primaryType:\"EIP712Domain\",types:t})}function wLe({data:e,primaryType:t,types:r}){let n=ELe({data:e,primaryType:t,types:r});return Tn(n)}function ELe({data:e,primaryType:t,types:r}){let n=[{type:\"bytes32\"}],o=[B1t({primaryType:t,types:r})];for(let s of r[t]){let[u,f]=SLe({types:r,name:s.name,type:s.type,value:e[s.name]});n.push(u),o.push(f)}return as(n,o)}function B1t({primaryType:e,types:t}){let r=Wo(I1t({primaryType:e,types:t}));return Tn(r)}function I1t({primaryType:e,types:t}){let r=\"\",n=ALe({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 ALe({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])ALe({primaryType:s.type,types:t},r);return r}function SLe({types:e,name:t,type:r,value:n}){if(e[r]!==void 0)return[{type:\"bytes32\"},Tn(ELe({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=>SLe({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 WT={};Wn(WT,{InvalidWrappedSignatureError:()=>GN,assert:()=>VN,from:()=>fgt,magicBytes:()=>GZ,suffixParameters:()=>VZ,unwrap:()=>GLe,validate:()=>pgt,wrap:()=>dgt});c();c();lT();c();Oy();c();c();var PN=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 PN(8192)},RN=P1t.checksum;Zs();c();Av();Oy();_a();function jg(e,t={}){let{as:r=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,n=Zf(fHe(e));return r===\"Bytes\"?n:Mo(n)}c();Oy();Zs();_a();RT();function CLe(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 MN({prefix:n,cause:new AZ});return}if(r===!0||typeof o==\"bigint\"&&typeof s>\"u\"){if(n!==3&&n!==2)throw new MN({prefix:n,cause:new EZ});return}throw new wZ({publicKey:e})}function TLe(e){let t=(()=>{if(OT(e))return _Le(e);if(bHe(e))return M1t(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 CLe(t),t}function M1t(e){return _Le(Mo(e))}function _Le(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new SZ({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 CZ(e,t={}){CLe(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 wZ=class extends rt{constructor({publicKey:t}){super(`Value \\\\`${Ny(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\"})}},MN=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\"})}},EZ=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\"})}},AZ=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\"})}},SZ=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(U5(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidSerializedSizeError\"})}};var O1t=/^0x[a-fA-F0-9]{40}$/;function $g(e,t={}){let{strict:r=!0}=t;if(!O1t.test(e))throw new ON({address:e,cause:new TZ});if(r){if(e.toLowerCase()===e)return;if(NN(e)!==e)throw new ON({address:e,cause:new _Z})}}function NN(e){if(RN.has(e))return RN.get(e);$g(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=jg(dHe(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 RN.set(e,o),o}function N1t(e,t={}){let{checksum:r=!1}=t;return $g(e),r?NN(e):e}function BLe(e,t={}){let r=jg(`0x${CZ(e).slice(4)}`).substring(26);return N1t(`0x${r}`,t)}function UN(e,t={}){let{strict:r=!0}=t??{};try{return $g(e,{strict:r}),!0}catch{return!1}}var ON=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\"})}},TZ=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\"})}},_Z=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\"})}};Oy();Zs();_a();c();Oy();Zs();_a();c();var ILe=/^(.*)\\\\[([0-9]*)\\\\]$/,PLe=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,HN=/^(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)?$/,b8n=2n**(8n-1n)-1n,g8n=2n**(16n-1n)-1n,x8n=2n**(24n-1n)-1n,v8n=2n**(32n-1n)-1n,w8n=2n**(40n-1n)-1n,E8n=2n**(48n-1n)-1n,A8n=2n**(56n-1n)-1n,S8n=2n**(64n-1n)-1n,C8n=2n**(72n-1n)-1n,T8n=2n**(80n-1n)-1n,_8n=2n**(88n-1n)-1n,k8n=2n**(96n-1n)-1n,B8n=2n**(104n-1n)-1n,I8n=2n**(112n-1n)-1n,P8n=2n**(120n-1n)-1n,R8n=2n**(128n-1n)-1n,M8n=2n**(136n-1n)-1n,O8n=2n**(144n-1n)-1n,N8n=2n**(152n-1n)-1n,U8n=2n**(160n-1n)-1n,D8n=2n**(168n-1n)-1n,H8n=2n**(176n-1n)-1n,L8n=2n**(184n-1n)-1n,F8n=2n**(192n-1n)-1n,z8n=2n**(200n-1n)-1n,j8n=2n**(208n-1n)-1n,$8n=2n**(216n-1n)-1n,q8n=2n**(224n-1n)-1n,G8n=2n**(232n-1n)-1n,V8n=2n**(240n-1n)-1n,K8n=2n**(248n-1n)-1n,W8n=2n**(256n-1n)-1n,Q8n=-(2n**(8n-1n)),Z8n=-(2n**(16n-1n)),J8n=-(2n**(24n-1n)),Y8n=-(2n**(32n-1n)),X8n=-(2n**(40n-1n)),eAn=-(2n**(48n-1n)),tAn=-(2n**(56n-1n)),rAn=-(2n**(64n-1n)),nAn=-(2n**(72n-1n)),oAn=-(2n**(80n-1n)),aAn=-(2n**(88n-1n)),iAn=-(2n**(96n-1n)),sAn=-(2n**(104n-1n)),cAn=-(2n**(112n-1n)),uAn=-(2n**(120n-1n)),lAn=-(2n**(128n-1n)),fAn=-(2n**(136n-1n)),dAn=-(2n**(144n-1n)),pAn=-(2n**(152n-1n)),mAn=-(2n**(160n-1n)),hAn=-(2n**(168n-1n)),yAn=-(2n**(176n-1n)),bAn=-(2n**(184n-1n)),gAn=-(2n**(192n-1n)),xAn=-(2n**(200n-1n)),vAn=-(2n**(208n-1n)),wAn=-(2n**(216n-1n)),EAn=-(2n**(224n-1n)),AAn=-(2n**(232n-1n)),SAn=-(2n**(240n-1n)),CAn=-(2n**(248n-1n)),TAn=-(2n**(256n-1n)),_An=2n**8n-1n,kAn=2n**16n-1n,BAn=2n**24n-1n,IAn=2n**32n-1n,PAn=2n**40n-1n,RAn=2n**48n-1n,MAn=2n**56n-1n,OAn=2n**64n-1n,NAn=2n**72n-1n,UAn=2n**80n-1n,DAn=2n**88n-1n,HAn=2n**96n-1n,LAn=2n**104n-1n,FAn=2n**112n-1n,zAn=2n**120n-1n,jAn=2n**128n-1n,$An=2n**136n-1n,qAn=2n**144n-1n,GAn=2n**152n-1n,VAn=2n**160n-1n,KAn=2n**168n-1n,WAn=2n**176n-1n,QAn=2n**184n-1n,ZAn=2n**192n-1n,JAn=2n**200n-1n,YAn=2n**208n-1n,XAn=2n**216n-1n,eSn=2n**224n-1n,tSn=2n**232n-1n,rSn=2n**240n-1n,nSn=2n**248n-1n,kZ=2n**256n-1n;function qg(e,t,r){let{checksumAddress:n,staticPosition:o}=r,s=PZ(t.type);if(s){let[u,f]=s;return D1t(e,{...t,type:f},{checksumAddress:n,length:u,staticPosition:o})}if(t.type===\"tuple\")return z1t(e,t,{checksumAddress:n,staticPosition:o});if(t.type===\"address\")return U1t(e,{checksum:n});if(t.type===\"bool\")return H1t(e);if(t.type.startsWith(\"bytes\"))return L1t(e,t,{staticPosition:o});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return F1t(e,t);if(t.type===\"string\")return j1t(e,{staticPosition:o});throw new j5(t.type)}var MLe=32,BZ=32;function U1t(e,t={}){let{checksum:r=!1}=t,n=e.readBytes(32);return[(s=>r?NN(s):s)(Mo(pHe(n,-20))),32]}function D1t(e,t,r){let{checksumAddress:n,length:o,staticPosition:s}=r;if(!o){let d=Nd(e.readBytes(BZ)),p=s+d,h=p+MLe;e.setPosition(p);let y=Nd(e.readBytes(MLe)),v=jT(t),E=0,C=[];for(let k=0;k<y;++k){e.setPosition(h+(v?k*32:E));let[P,M]=qg(e,t,{checksumAddress:n,staticPosition:h});E+=M,C.push(P)}return e.setPosition(s+32),[C,32]}if(jT(t)){let d=Nd(e.readBytes(BZ)),p=s+d,h=[];for(let y=0;y<o;++y){e.setPosition(p+y*32);let[v]=qg(e,t,{checksumAddress:n,staticPosition:p});h.push(v)}return e.setPosition(s+32),[h,32]}let u=0,f=[];for(let d=0;d<o;++d){let[p,h]=qg(e,t,{checksumAddress:n,staticPosition:s+u});u+=h,f.push(p)}return[f,u]}function H1t(e){return[hHe(e.readBytes(32),{size:32}),32]}function L1t(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 F1t(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?mHe(o,{signed:r}):Nd(o,{signed:r}),32]}function z1t(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(jT(t)){let d=Nd(e.readBytes(BZ)),p=o+d;for(let h=0;h<t.components.length;++h){let y=t.components[h];e.setPosition(p+f);let[v,E]=qg(e,y,{checksumAddress:n,staticPosition:p});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 p=t.components[d],[h,y]=qg(e,p,{checksumAddress:n,staticPosition:o});u[s?d:p?.name]=h,f+=y}return[u,f]}function j1t(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=yHe(JQ(s));return e.setPosition(t+32),[u,32]}function OLe({checksumAddress:e,parameters:t,values:r}){let n=[];for(let o=0;o<t.length;o++)n.push(IZ({checksumAddress:e,parameter:t[o],value:r[o]}));return n}function IZ({checksumAddress:e=!1,parameter:t,value:r}){let n=t,o=PZ(n.type);if(o){let[s,u]=o;return q1t(r,{checksumAddress:e,length:s,parameter:{...n,type:u}})}if(n.type===\"tuple\")return Q1t(r,{checksumAddress:e,parameter:n});if(n.type===\"address\")return $1t(r,{checksum:e});if(n.type===\"bool\")return V1t(r);if(n.type.startsWith(\"uint\")||n.type.startsWith(\"int\")){let s=n.type.startsWith(\"int\"),[,,u=\"256\"]=HN.exec(n.type)??[];return K1t(r,{signed:s,size:Number(u)})}if(n.type.startsWith(\"bytes\"))return G1t(r,{type:n.type});if(n.type===\"string\")return W1t(r);throw new j5(n.type)}function LN(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 $1t(e,t){let{checksum:r=!1}=t;return $g(e,{strict:r}),{dynamic:!1,encoded:Gm(e.toLowerCase())}}function q1t(e,t){let{checksumAddress:r,length:n,parameter:o}=t,s=n===null;if(!Array.isArray(e))throw new zN(e);if(!s&&e.length!==n)throw new FN({expectedLength:n,givenLength:e.length,type:`${o.type}[${n}]`});let u=!1,f=[];for(let d=0;d<e.length;d++){let p=IZ({checksumAddress:r,parameter:o,value:e[d]});p.dynamic&&(u=!0),f.push(p)}if(s||u){let d=LN(f);if(s){let p=Ur(f.length,{size:32});return{dynamic:!0,encoded:f.length>0?io(p,d):p}}if(u)return{dynamic:!0,encoded:d}}return{dynamic:!1,encoded:io(...f.map(({encoded:d})=>d))}}function G1t(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 $T({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:Ud(e)}}function V1t(e){if(typeof e!=\"boolean\")throw new rt(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:Gm(rN(e))}}function K1t(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 MT({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 W1t(e){let t=D5(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 Q1t(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,p=IZ({checksumAddress:r,parameter:f,value:e[d]});s.push(p),p.dynamic&&(o=!0)}return{dynamic:o,encoded:o?LN(s):io(...s.map(({encoded:u})=>u))}}function PZ(e){let t=e.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function jT(e){let{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(jT);let r=PZ(e.type);return!!(r&&jT({...e,type:r[1]}))}c();Zs();var J1t={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 MZ({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new RZ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new jN({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 jN({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 $N(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(J1t);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}var jN=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\"})}},RZ=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\"})}},MZ=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\"?N5(t):t,u=$N(s);if(Iu(s)===0&&e.length>0)throw new UZ;if(Iu(s)&&Iu(s)<32)throw new NZ({data:typeof t==\"string\"?t:Mo(t),parameters:e,size:Iu(s)});let f=0,d=n===\"Array\"?[]:{};for(let p=0;p<e.length;++p){let h=e[p];u.setPosition(f);let[y,v]=qg(u,h,{checksumAddress:o,staticPosition:0});f+=v,n===\"Array\"?d.push(y):d[h.name??p]=y}return d}function Ly(e,t,r){let{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new qN({expectedLength:e.length,givenLength:t.length});let o=OLe({checksumAddress:n,parameters:e,values:t}),s=LN(o);return s.length===0?\"0x\":s}function OZ(e,t){if(e.length!==t.length)throw new qN({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(OZ.encode(o,s))}return io(...r)}(function(e){function t(r,n,o=!1){if(r===\"address\"){let d=n;return $g(d),Gm(d.toLowerCase(),o?32:0)}if(r===\"string\")return D5(n);if(r===\"bytes\")return n;if(r===\"bool\")return Gm(rN(n),o?32:1);let s=r.match(HN);if(s){let[d,p,h=\"256\"]=s,y=Number.parseInt(h,10)/8;return Ur(n,{size:o?32:y,signed:p===\"int\"})}let u=r.match(PLe);if(u){let[d,p]=u;if(Number.parseInt(p,10)!==(n.length-2)/2)throw new $T({expectedSize:Number.parseInt(p,10),value:n});return Ud(n,o?32:0)}let f=r.match(ILe);if(f&&Array.isArray(n)){let[d,p]=f,h=[];for(let y=0;y<n.length;y++)h.push(t(p,n[y],!0));return h.length===0?\"0x\":io(...h)}throw new j5(r)}e.encode=t})(OZ||(OZ={}));function GT(e){return Array.isArray(e)&&typeof e[0]==\"string\"?VM(e):typeof e==\"string\"?VM(e):e}var NZ=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\"})}},UZ=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\"})}},FN=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\"})}},$T=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\"})}},qN=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\"})}},zN=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\"})}},j5=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();Oy();Zs();_a();function Y1t(e,t){let{as:r}=t,n=DLe(e),o=$N(new Uint8Array(n.length));return n.encode(o),r===\"Hex\"?Mo(o.bytes):o.bytes}function ULe(e,t={}){let{as:r=\"Hex\"}=t;return Y1t(e,{as:r})}function DLe(e){return Array.isArray(e)?X1t(e.map(t=>DLe(t))):egt(e)}function X1t(e){let t=e.reduce((o,s)=>o+s.length,0),r=HLe(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 egt(e){let t=typeof e==\"string\"?N5(e):e,r=HLe(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 HLe(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();RT();function zZ(e,t={}){let{recovered:r}=t;if(typeof e.r>\"u\")throw new VT({signature:e});if(typeof e.s>\"u\")throw new VT({signature:e});if(r&&typeof e.yParity>\"u\")throw new VT({signature:e});if(e.r<0n||e.r>kZ)throw new HZ({value:e.r});if(e.s<0n||e.s>kZ)throw new LZ({value:e.s});if(typeof e.yParity==\"number\"&&e.yParity!==0&&e.yParity!==1)throw new KT({value:e.yParity})}function rgt(e){return LLe(Mo(e))}function LLe(e){if(e.length!==130&&e.length!==132)throw new DZ({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 qZ(o)}catch{throw new KT({value:o})}})();return typeof n>\"u\"?{r:t,s:r}:{r:t,s:r,yParity:n}}function jZ(e){if(!(typeof e.r>\"u\")&&!(typeof e.s>\"u\"))return $Z(e)}function $Z(e){let t=typeof e==\"string\"?LLe(e):e instanceof Uint8Array?rgt(e):typeof e.r==\"string\"?ogt(e):e.v?ngt(e):{r:e.r,s:e.s,...typeof e.yParity<\"u\"?{yParity:e.yParity}:{}};return zZ(t),t}function ngt(e){return{r:e.r,s:e.s,yParity:qZ(e.v)}}function ogt(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=qZ(r)),typeof n!=\"number\")throw new KT({value:e.yParity});return n})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function FLe(e){let{r:t,s:r,yParity:n}=e;return[n?\"0x01\":\"0x\",t===0n?\"0x\":XQ(Ur(t)),r===0n?\"0x\":XQ(Ur(r))]}function qZ(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 FZ({value:e})}var DZ=class extends rt{constructor({signature:t}){super(`Value \\\\`${t}\\\\` is an invalid signature size.`,{metaMessages:[\"Expected: 64 bytes or 65 bytes.\",`Received ${Yn(U5(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSerializedSizeError\"})}},VT=class extends rt{constructor({signature:t}){super(`Signature \\\\`${Ny(t)}\\\\` is missing either an \\\\`r\\\\`, \\\\`s\\\\`, or \\\\`yParity\\\\` property.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.MissingPropertiesError\"})}},HZ=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\"})}},LZ=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\"})}},KT=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\"})}},FZ=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 jLe(e,t={}){return typeof e.chainId==\"string\"?agt(e):{...e,...t.signature}}function agt(e){let{address:t,chainId:r,nonce:n}=e,o=jZ(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...o}}function $Le(e){return igt(e,{presign:!0})}function igt(e,t={}){let{presign:r}=t;return jg(io(\"0x05\",ULe(sgt(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function sgt(e){let{address:t,chainId:r,nonce:n}=e,o=jZ(e);return[r?Ur(r):\"0x\",t,n?Ur(n):\"0x\",...o?FLe(o):[]]}Zs();_a();c();S0();_a();function qLe(e){return BLe(ugt(e))}function ugt(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(U5(t).substring(2));return TLe(f)}var GZ=\"0x8010801080108010801080108010801080108010801080108010801080108010\",VZ=GT(\"(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data\");function VN(e){if(typeof e==\"string\"){if(Xn(e,-32)!==GZ)throw new GN(e)}else zZ(e.authorization)}function fgt(e){return typeof e==\"string\"?GLe(e):e}function GLe(e){VN(e);let t=XO(Xn(e,-64,-32)),r=Xn(e,-t-64,-64),n=Xn(e,0,-t-64),[o,s,u]=$5(VZ,r);return{authorization:jLe({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 dgt(e){let{data:t,signature:r}=e;VN(e);let n=qLe({payload:$Le(e.authorization),signature:$Z(e.authorization)}),o=Ly(VZ,[{...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,GZ)}function pgt(e){try{return VN(e),!0}catch{return!1}}var GN=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 mgt(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function VLe(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?Sa(e.nonce):void 0,storageProof:e.storageProof?mgt(e.storageProof):void 0}}async function KLe(e,{address:t,blockNumber:r,blockTag:n,storageKeys:o}){let s=n??\"latest\",u=r!==void 0?ze(r):void 0,f=await e.request({method:\"eth_getProof\",params:[t,o,u||s]});return VLe(f)}c();Ht();async function WLe(e,{address:t,blockNumber:r,blockTag:n=\"latest\",slot:o}){let s=r!==void 0?ze(r):void 0;return await e.request({method:\"eth_getStorageAt\",params:[t,o,s||n]})}c();Fm();Ht();async function q5(e,{blockHash:t,blockNumber:r,blockTag:n,hash:o,index:s,sender:u,nonce:f}){let d=n||\"latest\",p=r!==void 0?ze(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,ze(s)]},{dedupe:!0}):(p||d)&&typeof s==\"number\"?h=await e.request({method:\"eth_getTransactionByBlockNumberAndIndex\",params:[p||d,ze(s)]},{dedupe:!!p}):u&&typeof f==\"number\"&&(h=await e.request({method:\"eth_getTransactionBySenderAndNonce\",params:[u,ze(f)]},{dedupe:!0})),!h)throw new z6({blockHash:t,blockNumber:r,blockTag:d,hash:o,index:s});return(e.chain?.formatters?.transaction?.format||C5)(h,\"getTransaction\")}c();async function QLe(e,{hash:t,transactionReceipt:r}){let[n,o]=await Promise.all([Ue(e,Ld,\"getBlockNumber\")({}),t?Ue(e,q5,\"getTransaction\")({hash:t}):void 0]),s=r?.blockNumber||o?.blockNumber;return s?n-s+1n:0n}c();Fm();async function G5(e,{hash:t}){let r=await e.request({method:\"eth_getTransactionReceipt\",params:[t]},{dedupe:!0});if(!r)throw new j6({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||pN)(r,\"getTransactionReceipt\")}c();Vm();NT();Po();xr();Ty();$m();Nc();Lg();async function ZLe(e,t){let{account:r,authorizationList:n,allowFailure:o=!0,blockNumber:s,blockOverrides:u,blockTag:f,stateOverride:d}=t,p=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,k=0;for(let U=0;U<p.length;U++){let{abi:O,address:N,args:j,functionName:K}=p[U];try{let G=_n({abi:O,args:j,functionName:K});k+=(G.length-2)/2,h>0&&k>h&&E[C].length>0&&(C++,k=(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 P=await Promise.allSettled(E.map(U=>Ue(e,Zo,\"readContract\")({...v===null?{code:H5}:{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<P.length;U++){let O=P[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}=p[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!==p.length)throw new be(\"multicall results mismatch\");return M}c();eZ();Oc();Po();Ty();Og();$m();Nc();Su();Ht();kT();v5();UO();Ng();async function QT(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?nN(v.blockOverrides):void 0,C=v.calls.map(P=>{let M=P,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)}),k=v.stateOverrides?w5(v.stateOverrides):void 0;d.push({blockOverrides:E,calls:C,stateOverrides:k})}let h=(typeof r==\"bigint\"?ze(r):void 0)||n;return(await e.request({method:\"eth_simulateV1\",params:[{blockStateCalls:d,returnFullTransactions:s,traceTransfers:u,validation:f},h]})).map((v,E)=>({...HO(v),calls:v.calls.map((C,k)=>{let{abi:P,args:M,functionName:U,to:O}=o[E].calls[k],N=C.error?.data??C.returnData,j=BigInt(C.gasUsed),K=C.logs?.map(W=>Ta(W)),G=C.status===\"0x1\"?\"success\":\"failure\",J=P&&G===\"success\"&&N!==\"0x\"?xi({abi:P,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:P??[],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 p=d,h=Py(p,{});throw h instanceof ku?p:h}}c();c();c();lT();Zs();_a();c();Zs();function WN(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 KN(e,t){let r=typeof e,n=t.type;switch(n){case\"address\":return UN(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)=>KN(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=>KN(o,{...t,type:n.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function KZ(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 KZ(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\")?UN(r[n],{strict:!1}):u.includes(\"address\")&&u.includes(\"bytes\")?UN(r[n],{strict:!1}):!1)return u}}function QN(e,t={}){let{prepare:r=!0}=t,n=Array.isArray(e)?GM(e):typeof e==\"string\"?GM(e):e;return{...n,...r?{hash:V5(n)}:{}}}function ZT(e,t,r){let{args:n=[],prepare:o=!0}=r??{},s=OT(t,{strict:!1}),u=e.filter(p=>s?p.type===\"function\"||p.type===\"error\"?QZ(p)===Xn(t,0,4):p.type===\"event\"?V5(p)===t:!1:\"name\"in p&&p.name===t);if(u.length===0)throw new Fy({name:t});if(u.length===1)return{...u[0],...o?{hash:V5(u[0])}:{}};let f;for(let p of u){if(!(\"inputs\"in p))continue;if(!n||n.length===0){if(!p.inputs||p.inputs.length===0)return{...p,...o?{hash:V5(p)}:{}};continue}if(!p.inputs||p.inputs.length===0||p.inputs.length!==n.length)continue;if(n.every((y,v)=>{let E=\"inputs\"in p&&p.inputs[v];return E?KN(y,E):!1})){if(f&&\"inputs\"in f&&f.inputs){let y=KZ(p.inputs,f.inputs,n);if(y)throw new WZ({abiItem:p,type:y[0]},{abiItem:f,type:y[1]})}f=p}}let d=(()=>{if(f)return f;let[p,...h]=u;return{...p,overloads:h}})();if(!d)throw new Fy({name:t});return{...d,...o?{hash:V5(d)}:{}}}function QZ(...e){let t=(()=>{if(Array.isArray(e[0])){let[r,n]=e;return ZT(r,n)}return e[0]})();return Xn(V5(t),0,4)}function ygt(...e){let t=(()=>{if(Array.isArray(e[0])){let[n,o]=e;return ZT(n,o)}return e[0]})(),r=typeof t==\"string\"?t:Sg(t);return WN(r)}function V5(...e){let t=(()=>{if(Array.isArray(e[0])){let[r,n]=e;return ZT(r,n)}return e[0]})();return typeof t!=\"string\"&&\"hash\"in t&&t.hash?t.hash:jg(D5(ygt(t)))}var WZ=class extends rt{constructor(t,r){super(\"Found ambiguous types in overloaded ABI Items.\",{metaMessages:[`\\\\`${t.type}\\\\` in \\\\`${WN(Sg(t.abiItem))}\\\\`, and`,`\\\\`${r.type}\\\\` in \\\\`${WN(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 YLe(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[s,u]=e;return[bgt(s),u]}return e})(),{bytecode:n,args:o}=r;return io(n,t.inputs?.length&&o?.length?Ly(t.inputs,o):\"0x\")}function XLe(e){return QN(e)}function bgt(e){let t=e.find(r=>r.type===\"constructor\");if(!t)throw new Fy({name:\"constructor\"});return t}c();_a();function tFe(...e){let[t,r=[]]=(()=>{if(Array.isArray(e[0])){let[p,h,y]=e;return[eFe(p,h,{args:y}),y]}let[f,d]=e;return[f,d]})(),{overloads:n}=t,o=n?eFe([t,...n],t.name,{args:r}):t,s=xgt(o),u=r.length>0?Ly(o.inputs,r):void 0;return u?io(s,u):s}function Gg(e,t={}){return QN(e,t)}function eFe(e,t,r){let n=ZT(e,t,r);if(n.type!==\"function\")throw new Fy({name:t,type:\"function\"});return n}function xgt(e){return QZ(e)}Oc();c();var rFe=\"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\",Mu=\"0x0000000000000000000000000000000000000000\";NT();xr();Nc();var wgt=\"0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033\";async function nFe(e,t){let{blockNumber:r,blockTag:n,calls:o,stateOverrides:s,traceAssetChanges:u,traceTransfers:f,validation:d}=t,p=t.account?jn(t.account):void 0;if(u&&!p)throw new be(\"`account` is required when `traceAssetChanges` is true\");let h=p?YLe(XLe(\"constructor(bytes, bytes)\"),{bytecode:iN,args:[wgt,tFe(Gg(\"function getBalance(address)\"),[p.address])]}):void 0,y=u?await Promise.all(t.calls.map(async L=>{if(!L.data&&!L.abi)return;let{accessList:V}=await EN(e,{account:p.address,...L,data:L.abi?_n(L):L.data});return V.map(({address:Q,storageKeys:F})=>F.length>0?Q:null)})).then(L=>L.flat().filter(Boolean)):[],v=await QT(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:[p.address],to:L,from:Mu,nonce:V})),stateOverrides:[{address:Mu,nonce:0}]}]:[],{calls:[...o,{to:Mu}].map(L=>({...L,from:p?.address})),stateOverrides:s},...u?[{calls:[{data:h}]},{calls:y.map((L,V)=>({abi:[Gg(\"function balanceOf(address) returns (uint256)\")],functionName:\"balanceOf\",args:[p.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,k,,P,M,U,O,N]=u?v:[],{calls:j,...K}=E,G=j.slice(0,-1)??[],J=C?.calls??[],Y=k?.calls??[],W=[...J,...Y].map(L=>L.status===\"success\"?Va(L.data):null),ie=P?.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),R=(O?.calls??[]).map(L=>L.status===\"success\"?L.result:null),D=[];for(let[L,V]of H.entries()){let Q=W[L];if(typeof V!=\"bigint\"||typeof Q!=\"bigint\")continue;let F=A[L-1],I=T[L-1],Z=R[L-1],me=L===0?{address:rFe,decimals:18,symbol:\"ETH\"}:{address:y[L-1],decimals:Z||F?Number(F??1):void 0,symbol:I??void 0};D.some(ge=>ge.token.address===me.address)||D.push({token:me,value:{pre:Q,post:V,diff:V-Q}})}return{assetChanges:D,block:K,results:G}}c();c();var JT={};Wn(JT,{InvalidWrappedSignatureError:()=>ZN,assert:()=>JZ,from:()=>Sgt,magicBytes:()=>ZZ,universalSignatureValidatorAbi:()=>Agt,universalSignatureValidatorBytecode:()=>Egt,unwrap:()=>oFe,validate:()=>Tgt,wrap:()=>Cgt});c();Zs();_a();var ZZ=\"0x6492649264926492649264926492649264926492649264926492649264926492\",Egt=\"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 JZ(e){if(Xn(e,-32)!==ZZ)throw new ZN(e)}function Sgt(e){return typeof e==\"string\"?oFe(e):e}function oFe(e){JZ(e);let[t,r,n]=$5(GT(\"address, bytes, bytes\"),e);return{data:r,signature:n,to:t}}function Cgt(e){let{data:t,signature:r,to:n}=e;return io(Ly(GT(\"address, bytes, bytes\"),[n,t,r]),ZZ)}function Tgt(e){try{return JZ(e),!0}catch{return!1}}var ZN=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();NT();Ty();sZ();Nc();Ay();B5();Su();Ll();os();Ht();c();S0();os();Wa();function aFe({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)}Fg();async function zy(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 p=t.signature;return Ro(p)?p:typeof p==\"object\"&&\"r\"in p&&\"s\"in p?aFe(p):Or(p)})();try{if(f===\"eoa\")try{if(Vl(Nn(r),await _T({hash:o,signature:d})))return!0}catch{}return WT.validate(d)?await _gt(e,{...t,multicallAddress:u,signature:d}):await kgt(e,{...t,verifierAddress:s,signature:d})}catch(p){if(f!==\"eoa\")try{if(Vl(Nn(r),await _T({hash:o,signature:d})))return!0}catch{}if(p instanceof Wm)return!1;throw p}}async function _gt(e,t){let{address:r,blockNumber:n,blockTag:o,hash:s,multicallAddress:u}=t,{authorization:f,data:d,signature:p,to:h}=WT.unwrap(t.signature);if(await zg(e,{address:r,blockNumber:n,blockTag:o})===ql([\"0xef0100\",f.address]))return await Bgt(e,{address:r,blockNumber:n,blockTag:o,hash:s,signature:p});let v={address:f.address,chainId:Number(f.chainId),nonce:Number(f.nonce),r:ze(f.r,{size:32}),s:ze(f.s,{size:32}),yParity:f.yParity};if(!await fLe({address:r,authorization:v}))throw new Wm;let C=await Ue(e,Zo,\"readContract\")({...u?{address:u}:{code:H5},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:nZ,functionName:\"isValidSignature\",args:[s,p]})}]]});if(C[C.length-1]?.returnData?.startsWith(\"0x1626ba7e\"))return!0;throw new Wm}async function kgt(e,t){let{address:r,factory:n,factoryData:o,hash:s,signature:u,verifierAddress:f,...d}=t,p=await(async()=>!n&&!o||JT.validate(u)?u:JT.wrap({data:o,signature:u,to:n}))(),h=f?{to:f,data:_n({abi:oZ,functionName:\"isValidSig\",args:[r,s,p]}),...d}:{data:DT({abi:oZ,args:[r,s,p],bytecode:THe}),...d},{data:y}=await Ue(e,Ru,\"call\")(h).catch(v=>{throw v instanceof $6?new Wm:v});if(CQ(y??\"0x0\"))return!0;throw new Wm}async function Bgt(e,t){let{address:r,blockNumber:n,blockTag:o,hash:s,signature:u}=t;if((await Ue(e,Zo,\"readContract\")({address:r,abi:nZ,args:[s,u],blockNumber:n,blockTag:o,functionName:\"isValidSignature\"}).catch(d=>{throw d instanceof q6?new Wm:d})).startsWith(\"0x1626ba7e\"))return!0;throw new Wm}var Wm=class extends Error{};c();async function iFe(e,{address:t,message:r,factory:n,factoryData:o,signature:s,...u}){let f=_N(r);return Ue(e,zy,\"verifyHash\")({address:t,factory:n,factoryData:o,hash:f,signature:s,...u})}c();async function sFe(e,t){let{address:r,factory:n,factoryData:o,signature:s,message:u,primaryType:f,types:d,domain:p,...h}=t,y=vLe({message:u,primaryType:f,types:d,domain:p});return Ue(e,zy,\"verifyHash\")({address:r,factory:n,factoryData:o,hash:y,signature:s,...h})}c();Fm();uZ();Qs();c();os();Qs();function JN(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 k=(()=>{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:P}=await k.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=P,E||C()}catch(k){o?.(k)}})(),()=>C()})})()}async function cFe(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,p=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,k,P,{promise:M,resolve:U,reject:O}=cN(),N=d?setTimeout(()=>{P?.(),k?.(),O(new BO({hash:o}))},d):void 0;return k=Js(p,{onReplaced:s,resolve:U,reject:O},async j=>{if(E=await Ue(e,G5,\"getTransactionReceipt\")({hash:o}).catch(()=>{}),E&&n<=1){clearTimeout(N),j.resolve(E),k?.();return}P=Ue(e,JN,\"watchBlockNumber\")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:h,async onBlockNumber(K){let G=Y=>{clearTimeout(N),P?.(),Y(),k?.()},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 FT(async()=>{y=await Ue(e,q5,\"getTransaction\")({hash:o}),y.blockNumber&&(J=y.blockNumber)},{delay:f,retryCount:u}),C=!1),E=await Ue(e,G5,\"getTransactionReceipt\")({hash:o}),n>1&&(!E.blockNumber||J-E.blockNumber+1n<n))return;G(()=>j.resolve(E))}catch(Y){if(Y instanceof z6||Y instanceof j6){if(!y){C=!1;return}try{v=y,C=!0;let W=await FT(()=>Ue(e,Ca,\"getBlock\")({blockNumber:J,includeTransactions:!0}),{delay:f,retryCount:u,shouldRetry:({error:H})=>H instanceof S5});C=!1;let ie=W.transactions.find(({from:H,nonce:A})=>H===v.from&&A===v.nonce);if(!ie||(E=await Ue(e,G5,\"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 uFe(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 p=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 p?(()=>{let C=Nr([\"watchBlocks\",e.uid,t,r,n,h,d]);return Js(C,{onBlock:o,onError:s},k=>Hd(async()=>{try{let P=await Ue(e,Ca,\"getBlock\")({blockTag:t,includeTransactions:h});if(P.number!==null&&y?.number!=null){if(P.number===y.number)return;if(P.number-y.number>1&&r)for(let M=y?.number+1n;M<P.number;M++){let U=await Ue(e,Ca,\"getBlock\")({blockNumber:M,includeTransactions:h});k.onBlock(U,y),y=U}}(y?.number==null||t===\"pending\"&&P?.number==null||P.number!==null&&P.number>y.number)&&(k.onBlock(P,y),y=P)}catch(P){k.onError?.(P)}},{emitOnBegin:n,interval:d}))})():(()=>{let C=!0,k=!0,P=()=>C=!1;return(async()=>{try{n&&Ue(e,Ca,\"getBlock\")({blockTag:t,includeTransactions:h}).then(O=>{C&&k&&(o(O,void 0),k=!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),k=!1,y=N)},onError(O){s?.(O)}});P=U,C||P()}catch(M){s?.(M)}})(),()=>P()})()}c();Po();TT();Qs();function lFe(e,{address:t,args:r,batch:n=!0,event:o,events:s,fromBlock:u,onError:f,onLogs:d,poll:p,pollingInterval:h=e.pollingInterval,strict:y}){let v=typeof p<\"u\"?p: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 P=Nr([\"watchEvent\",t,r,n,e.uid,o,h,u]);return Js(P,{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,AN,\"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,Uy,\"getFilterChanges\")({filter:O});else{let G=await Ue(e,Ld,\"getBlockNumber\")({});U&&U!==G?K=await Ue(e,P5,\"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,Dy,\"uninstallFilter\")({filter:O}),j()}})})():(()=>{let P=!0,M=()=>P=!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(!P)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 gy){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,P||M()}catch(U){f?.(U)}})(),()=>M()})()}c();Qs();function fFe(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 p=Nr([\"watchPendingTransactions\",e.uid,t,s]);return Js(p,{onTransactions:n,onError:r},h=>{let y,v=Hd(async()=>{try{if(!y)try{y=await Ue(e,SN,\"createPendingTransactionFilter\")({});return}catch(C){throw v(),C}let E=await Ue(e,Uy,\"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,Dy,\"uninstallFilter\")({filter:y}),v()}})})():(()=>{let p=!0,h=()=>p=!1;return(async()=>{try{let{unsubscribe:y}=await e.transport.subscribe({params:[\"newPendingTransactions\"],onData(v){if(!p)return;let E=v.result;n([E])},onError(v){r?.(v)}});h=y,p||h()}catch(y){r?.(y)}})(),()=>h()})()}c();c();function dFe(e){let{scheme:t,statement:r,...n}=e.match(Igt)?.groups??{},{chainId:o,expirationTime:s,issuedAt:u,notBefore:f,requestId:d,...p}=e.match(Pgt)?.groups??{},h=e.split(\"Resources:\")[1]?.split(`\\n- `).slice(1);return{...n,...p,...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 Igt=/^(?:(?<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();B5();function pFe(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 mFe(e,t){let{address:r,domain:n,message:o,nonce:s,scheme:u,signature:f,time:d=new Date,...p}=t,h=dFe(o);if(!h.address||!pFe({address:r,domain:n,message:h,nonce:s,scheme:u,time:d}))return!1;let v=_N(o);return zy(e,{address:h.address,hash:v,signature:f,...p})}c();Fm();async function hFe(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||pN)(o);if(u.status===\"reverted\"&&r)throw new kO({receipt:u});return u}function yFe(e){return{call:t=>Ru(e,t),createAccessList:t=>EN(e,t),createBlockFilter:()=>rLe(e),createContractEventFilter:t=>yO(e,t),createEventFilter:t=>AN(e,t),createPendingTransactionFilter:()=>SN(e),estimateContractGas:t=>ZDe(e,t),estimateGas:t=>k5(e,t),getBalance:t=>nLe(e,t),getBlobBaseFee:()=>oLe(e),getBlock:t=>Ca(e,t),getBlockNumber:t=>Ld(e,t),getBlockTransactionCount:t=>aLe(e,t),getBytecode:t=>zg(e,t),getChainId:()=>_5(e),getCode:t=>zg(e,t),getContractEvents:t=>KO(e,t),getDelegation:t=>iLe(e,t),getEip712Domain:t=>sLe(e,t),getEnsAddress:t=>KHe(e,t),getEnsAvatar:t=>XHe(e,t),getEnsName:t=>eLe(e,t),getEnsResolver:t=>tLe(e,t),getEnsText:t=>wN(e,t),getFeeHistory:t=>uLe(e,t),estimateFeesPerGas:t=>zDe(e,t),getFilterChanges:t=>Uy(e,t),getFilterLogs:t=>lLe(e,t),getGasPrice:()=>T5(e),getLogs:t=>P5(e,t),getProof:t=>KLe(e,t),estimateMaxPriorityFeePerGas:t=>FDe(e,t),fillTransaction:t=>GO(e,t),getStorageAt:t=>WLe(e,t),getTransaction:t=>q5(e,t),getTransactionConfirmations:t=>QLe(e,t),getTransactionCount:t=>FO(e,t),getTransactionReceipt:t=>G5(e,t),multicall:t=>ZLe(e,t),prepareTransactionRequest:t=>VO(e,t),readContract:t=>Zo(e,t),sendRawTransaction:t=>$He(e,t),sendRawTransactionSync:t=>hFe(e,t),simulate:t=>QT(e,t),simulateBlocks:t=>QT(e,t),simulateCalls:t=>nFe(e,t),simulateContract:t=>HHe(e,t),verifyHash:t=>zy(e,t),verifyMessage:t=>iFe(e,t),verifySiweMessage:t=>mFe(e,t),verifyTypedData:t=>sFe(e,t),uninstallFilter:t=>Dy(e,t),waitForTransactionReceipt:t=>cFe(e,t),watchBlocks:t=>uFe(e,t),watchBlockNumber:t=>JN(e,t),watchContractEvent:t=>jHe(e,t),watchEvent:t=>lFe(e,t),watchPendingTransactions:t=>fFe(e,t)}}function YZ(e){let{key:t=\"public\",name:r=\"Public Client\"}=e;return qHe({...e,key:t,name:r,type:\"publicClient\"}).extend(yFe)}c();function bFe({key:e,methods:t,name:r,request:n,retryCount:o=3,retryDelay:s=150,timeout:u,type:f},d){let p=yN();return{config:{key:e,methods:t,name:r,request:n,retryCount:o,retryDelay:s,timeout:u,type:f},request:pLe(n,{methods:t,retryCount:o,retryDelay:s,uid:p}),value:d}}c();Pg();c();xr();var YN=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\"})}};fZ();function XZ(e,t={}){let{batch:r,fetchFn:n,fetchOptions:o,key:s=\"http\",methods:u,name:f=\"HTTP JSON-RPC\",onFetchRequest:d,onFetchResponse:p,retryDelay:h,raw:y}=t;return({chain:v,retryCount:E,timeout:C})=>{let{batchSize:k=1e3,wait:P=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 YN;let N=hLe(O,{fetchFn:n,fetchOptions:o,onRequest:d,onResponse:p,timeout:U});return bFe({key:s,methods:u,name:f,async request({method:j,params:K}){let G={method:j,params:K},{schedule:J}=uN({id:O,wait:P,shouldSplitBatch(re){return re.length>k},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 _y({body:G,error:W,url:O});return ie},retryCount:M,retryDelay:h,timeout:U,type:\"http\"},{fetchOptions:o,url:O})}}zQ();Nc();Ay();Ht();c();c();c();var Rgt=/^eip155:(\\\\d+)$/;function jy(e){if(!e.startsWith(\"eip155:\"))throw new Error(`Unsupported network format: ${e} (expected eip155:CHAIN_ID)`);let t=Rgt.exec(e);if(!t)throw new Error(`Invalid CAIP-2 chain ID: ${e}`);let r=Number(t[1]);if(!Number.isSafeInteger(r))throw new Error(`Invalid CAIP-2 chain ID: ${e}`);return r}function gFe(){let e=globalThis.crypto;if(!e)throw new Error(\"Crypto API not available\");return e}function eJ(){return Wo(gFe().getRandomValues(new Uint8Array(32)))}function xFe(){let e=gFe().getRandomValues(new Uint8Array(32));return BigInt(Wo(e)).toString()}c();var tJ={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,\"monad-testnet\":10143,stable:988,\"stable-testnet\":2201,celo:42220,flare:14},Mgt=Object.keys(tJ);var rJ={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\"}]},vFe={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 wFe={Permit:[{name:\"owner\",type:\"address\"},{name:\"spender\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"nonce\",type:\"uint256\"},{name:\"deadline\",type:\"uint256\"}]},EFe=[{type:\"function\",name:\"nonces\",inputs:[{name:\"owner\",type:\"address\"}],outputs:[{type:\"uint256\"}],stateMutability:\"view\"}],XN=[{type:\"function\",name:\"approve\",inputs:[{name:\"spender\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\"}],K5=[{type:\"function\",name:\"allowance\",inputs:[{name:\"owner\",type:\"address\"},{name:\"spender\",type:\"address\"}],outputs:[{type:\"uint256\"}],stateMutability:\"view\"}],AFe=70000n,SFe=1000000000n,CFe=100000000n,$y=\"0x000000000022D473030F116dDEE9F6B43aC78BA3\",TFe=\"0x402085c248EeA27D92E8b30b2C58ed07f9E20001\";var _Fe=\"eip2612GasSponsoring\",kFe=\"erc20ApprovalGasSponsoring\",Ogt=\"1\";async function Ngt(e,t,r,n,o,s,u){let f=e.address,d=Nn($y),p=await e.readContract({address:t,abi:EFe,functionName:\"nonces\",args:[f]}),h={name:r,version:n,chainId:o,verifyingContract:t},y=BigInt(u),v={owner:f,spender:d,value:y,nonce:p,deadline:BigInt(s)},E=await e.signTypedData({domain:h,types:wFe,primaryType:\"Permit\",message:v});return{from:f,asset:t,spender:d,amount:y.toString(),nonce:p.toString(),deadline:s,signature:E,version:\"1\"}}async function Ugt(e,t,r){let n=e.address,o=Nn($y),s=_n({abi:XN,functionName:\"approve\",args:[o,E5]}),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=SFe,d=CFe}let p=await e.signTransaction({to:t,data:s,nonce:u,gas:AFe,maxFeePerGas:f,maxPriorityFeePerGas:d,chainId:r});return{from:n,asset:t,spender:o,amount:E5.toString(),signedTransaction:p,version:Ogt}}var BFe=new Map;function Dgt(e){let t=Object.keys(e);return t.length>0&&t.every(r=>/^\\\\d+$/.test(r))}function Hgt(e){let t=BFe.get(e);if(t)return t;let r=YZ({transport:XZ(e)});return BFe.set(e,r),r}function Lgt(e,t){if(t){if(Dgt(t)){let r=jy(e);return t[r]?.rpcUrl}return t.rpcUrl}}function PFe(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=Lgt(e,r);if(!s)return n;let u=Hgt(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}var IFe=new Set;function RFe(e){IFe.has(e)||(IFe.add(e),console.warn(`[x402] gas sponsoring is advertised for ${e} but the client cannot read the chain, so the sponsored permit/approval will not be signed and a fresh wallet will get 412 permit2_allowance_required. Pass { rpcUrl } to ExactEvmScheme, or use a signer with readContract (e.g. toClientEvmSigner(account, publicClient)).`))}async function MFe(e,t,r,n,o,s){if(!o?.extensions?.[_Fe])return;let u=PFe(r.network,e,t);if(!u.readContract){RFe(r.network);return}let f=r.extra?.name,d=r.extra?.version;if(!f||!d)return;let p=jy(r.network),h=Nn(r.asset),y=s??r.amount;try{if(await u.readContract({address:h,abi:K5,functionName:\"allowance\",args:[e.address,$y]})>=BigInt(y))return}catch{}let E=n.payload?.permit2Authorization?.deadline??Math.floor(Date.now()/1e3+r.maxTimeoutSeconds).toString(),C=await Ngt({address:e.address,signTypedData:k=>e.signTypedData(k),readContract:u.readContract},h,f,d,p,E,y);return{[_Fe]:{info:C}}}async function OFe(e,t,r,n,o){if(!n?.extensions?.[kFe])return;let s=PFe(r.network,e,t);if(!s.readContract){RFe(r.network);return}if(!s.signTransaction||!s.getTransactionCount)return;let u=jy(r.network),f=Nn(r.asset),d=o??r.amount;try{if(await s.readContract({address:f,abi:K5,functionName:\"allowance\",args:[e.address,$y]})>=BigInt(d))return}catch{}let p=await Ugt({address:e.address,signTransaction:s.signTransaction,getTransactionCount:s.getTransactionCount,estimateFeesPerGas:s.estimateFeesPerGas},f,u);return{[kFe]:{info:p}}}c();c();var NFe={\"eip155:8453\":[{asset:\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",name:\"USD Coin\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:84532\":[{asset:\"0x036CbD53842c5426634e7929541eC2318f3dCF7e\",name:\"USDC\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:1\":[{asset:\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",name:\"USD Coin\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:43114\":[{asset:\"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E\",name:\"USD Coin\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:4326\":[{asset:\"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7\",name:\"MegaUSD\",version:\"1\",decimals:18,symbol:\"MegaUSD\",assetTransferMethod:\"permit2\",supportsEip2612:!0}],\"eip155:143\":[{asset:\"0x754704Bc059F8C67012fEd69BC8A327a5aafb603\",name:\"USDC\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:10143\":[{asset:\"0x534b2f3A21130d7a60830c2Df862319e593943A3\",name:\"USDC\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:988\":[{asset:\"0x779Ded0c9e1022225f8E0630b35a9b54bE713736\",name:\"USDT0\",version:\"1\",decimals:6,symbol:\"USDT0\"}],\"eip155:2201\":[{asset:\"0x78Cf24370174180738C5B8E352B6D14c83a6c9A9\",name:\"USDT0\",version:\"1\",decimals:6,symbol:\"USDT0\"}],\"eip155:137\":[{asset:\"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359\",name:\"USD Coin\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:42161\":[{asset:\"0xaf88d065e77c8cC2239327C5EDb3A432268e5831\",name:\"USD Coin\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:421614\":[{asset:\"0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d\",name:\"USD Coin\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:31612\":[{asset:\"0xdD468A1DDc392dcdbEf6db6e34E89AA338F9F186\",name:\"Mezo USD\",version:\"1\",decimals:18,symbol:\"mUSD\",assetTransferMethod:\"permit2\",supportsEip2612:!0}],\"eip155:31611\":[{asset:\"0x118917a40FAF1CD7a13dB0Ef56C86De7973Ac503\",name:\"Mezo USD\",version:\"1\",decimals:18,symbol:\"mUSD\",assetTransferMethod:\"permit2\",supportsEip2612:!0}],\"eip155:723487\":[{asset:\"0x33ad9e4BD16B69B5BFdED37D8B5D9fF9aba014Fb\",name:\"Stable Coin\",version:\"1\",decimals:6,symbol:\"SBC\",assetTransferMethod:\"permit2\",supportsEip2612:!0}],\"eip155:72344\":[{asset:\"0x33ad9e4BD16B69B5BFdED37D8B5D9fF9aba014Fb\",name:\"Stable Coin\",version:\"1\",decimals:6,symbol:\"SBC\",assetTransferMethod:\"permit2\",supportsEip2612:!0}],\"eip155:36900\":[{asset:\"0x9cb8142aEBBcdc60AF7c97Af897A67A8f3CA71C2\",name:\"USDC.e\",version:\"2\",decimals:6,symbol:\"USDC.e\"}],\"eip155:190415\":[{asset:\"0x401eCb1D350407f13ba348573E5630B83638E30D\",name:\"Bridged USDC\",version:\"2\",decimals:6,symbol:\"USDC.e\"}],\"eip155:181228\":[{asset:\"0x401eCb1D350407f13ba348573E5630B83638E30D\",name:\"Bridged USDC\",version:\"2\",decimals:6,symbol:\"USDC.e\"}],\"eip155:50\":[{asset:\"0xfA2958CB79b0491CC627c1557F441eF849Ca8eb1\",name:\"USDC\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:51\":[{asset:\"0xb5AB69F7bBada22B28e79C8FFAECe55eF1c771D4\",name:\"USDC\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:38833\":[{asset:\"0xA5b8BF902b2844dA17d4506cc827F7F1681735E7\",name:\"USDC\",version:\"1\",decimals:6,symbol:\"USDC\",assetTransferMethod:\"permit2\"}],\"eip155:14\":[{asset:\"0xe7cd86e13AC4309349F30B3435a9d337750fC82D\",name:\"USD\\\\u20AE0\",version:\"1\",decimals:6,symbol:\"USDT0\"}],\"eip155:42220\":[{asset:\"0xcebA9300f2b948710d2653dD7B07f33A8B32118C\",name:\"USDC\",version:\"2\",decimals:6,symbol:\"USDC\"},{asset:\"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e\",name:\"Tether USD\",version:\"1\",decimals:6,symbol:\"USDT\"},{asset:\"0xD2ab3C9A02DBBAB236BfEC45D1d755DF4267F771\",name:\"Tether America USD\",version:\"1\",decimals:6,symbol:\"USAT\"}],\"eip155:11142220\":[{asset:\"0x01C5C0122039549AD1493B8220cABEdD739BC44E\",name:\"USDC\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:1329\":[{asset:\"0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392\",name:\"USDC\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:1328\":[{asset:\"0x4fCF1784B31630811181f670Aea7A7bEF803eaED\",name:\"USDC\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:5042\":[{asset:\"0x3600000000000000000000000000000000000000\",name:\"USDC\",version:\"2\",decimals:6,symbol:\"USDC\"}],\"eip155:5042002\":[{asset:\"0x3600000000000000000000000000000000000000\",name:\"USDC\",version:\"2\",decimals:6,symbol:\"USDC\"}]};function Fgt(e){if(e in NFe)return e;let t=tJ[e];return t!==void 0?`eip155:${t}`:e}var nJ=(e,t)=>{let r=Fgt(t),n=NFe[r];if(!n)return;let o=e.toLowerCase();return n.find(s=>s.asset.toLowerCase()===o)};c();c();async function UFe(e,t,r,n){let o=Math.floor(Date.now()/1e3),s=xFe(),u=\"0\",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}},p=await Ggt(t,d,n);return{x402Version:r,payload:{signature:p,permit2Authorization:d}}}async function Ggt(e,t,r){let n=jy(r.network);return await e.signTypedData({domain:{name:\"Permit2\",chainId:n,verifyingContract:$y},types:vFe,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 l9n=BigInt(\"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\");async function DFe(e,t,r){return UFe(TFe,e,t,r)}c();c();function HFe(e){let t=e.toString();if(!/[eE]/.test(t))return t;let[r,n]=t.split(/[eE]/),o=parseInt(n,10),s=r.startsWith(\"-\"),u=s?r.slice(1):r,[f,d=\"\"]=u.split(\".\"),p=f+d,h=f.length+o,y;return h<=0?y=\"0.\"+\"0\".repeat(-h)+p:h>=p.length?y=p+\"0\".repeat(h-p.length):y=p.slice(0,h)+\".\"+p.slice(h),(s?\"-\":\"\")+y}function LFe(e){let t=e.replace(/^\\\\$/,\"\").trim();if(!/^\\\\d+(?:\\\\.\\\\d+)?$/.test(t)||/[eE]/.test(t))throw new Error(`Invalid money format: ${e}`);return t}function eU(e){if(typeof e==\"number\"){if(!Number.isFinite(e)||e<0)throw new Error(`Invalid money format: ${e}`);return{amount:HFe(e)}}let r=e.trim().match(/^\\\\$?\\\\s*(-?\\\\d+(?:\\\\.\\\\d+)?)(?:\\\\s+([A-Za-z][A-Za-z0-9.]*))?$/);if(!r)throw new Error(`Invalid money format: ${e}`);let n=LFe(r[1]),o=r[2];return!o||o.toUpperCase()===\"USD\"?{amount:n}:{amount:n,symbol:o.toUpperCase()}}function W5(e,t){if(/[eE]/.test(e))throw new Error(`Invalid amount: ${e} \\\\u2014 use decimal notation, not scientific notation`);if(!/^-?\\\\d+\\\\.?\\\\d*$/.test(e))throw new Error(`Invalid amount: ${e}`);let[r,n=\"\"]=e.split(\".\"),o=n.padEnd(t,\"0\").slice(0,t);return(r+o).replace(/^0+/,\"\")||\"0\"}var Vgt=e=>e.replace(/[.*+?^${}()|[\\\\]\\\\\\\\]/g,\"\\\\\\\\$&\"),Kgt=e=>{let t=Vgt(e).replace(/\\\\\\\\\\\\*/g,\".*\");return new RegExp(`^${t}$`)},YT=(e,t)=>Kgt(e).test(t),tU=(e,t)=>{let r=e.get(t);if(!r){for(let[n,o]of e.entries())if(YT(n,t)){r=o;break}}return r},Q5=(e,t,r)=>tU(e,r)?.get(t);function oJ(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\")}function rU(e,t){let r=n=>{if(n==null||typeof n!=\"object\")return JSON.stringify(n);if(Array.isArray(n))return JSON.stringify(n.map(s=>typeof s==\"object\"&&s!==null?JSON.parse(r(s)):s));let o={};return Object.keys(n).sort().forEach(s=>{let u=n[s];o[s]=typeof u==\"object\"&&u!==null?JSON.parse(r(u)):u}),JSON.stringify(o)};try{return r(e)===r(t)}catch{return JSON.stringify(e)===JSON.stringify(t)}}function XT(e){if(Array.isArray(e))return e;if(!(e==null||typeof e==\"object\"))return[e]}var nU={\"builder-code\":new Set([\"s\"])};c();async function Ygt(e,t,r){let n=eJ(),o=Math.floor(Date.now()/1e3),s={from:e.address,to:Nn(r.payTo),value:r.amount,validAfter:\"0\",validBefore:(o+r.maxTimeoutSeconds).toString(),nonce:n},u=await Xgt(e,s,r);return{x402Version:t,payload:{authorization:s,signature:u}}}async function Xgt(e,t,r){let n=jy(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:rJ,primaryType:\"TransferWithAuthorization\",message:f})}var aJ=class{constructor(e,t){this.signer=e,this.options=t,this.scheme=\"exact\",this.findDefaultAsset=nJ}async createPaymentPayload(e,t,r){if((t.extra?.assetTransferMethod??\"eip3009\")===\"permit2\"){let o=await DFe(this.signer,e,t),s=await MFe(this.signer,this.options,t,o,r);if(s)return{...o,extensions:s};let u=await OFe(this.signer,this.options,t,r);return u?{...o,extensions:u}:o}return Ygt(this.signer,e,t)}};c();c();c();c();var He={};Wn(He,{BRAND:()=>Cxt,DIRTY:()=>Vg,EMPTY_PATH:()=>nxt,INVALID:()=>pt,NEVER:()=>u2t,OK:()=>vi,ParseStatus:()=>Ja,Schema:()=>Yt,ZodAny:()=>Vy,ZodArray:()=>Ym,ZodBigInt:()=>Wg,ZodBoolean:()=>Qg,ZodBranded:()=>t_,ZodCatch:()=>ix,ZodDate:()=>Zg,ZodDefault:()=>ax,ZodDiscriminatedUnion:()=>iU,ZodEffects:()=>Uu,ZodEnum:()=>nx,ZodError:()=>Ys,ZodFirstPartyTypeKind:()=>bt,ZodFunction:()=>cU,ZodIntersection:()=>ex,ZodIssueCode:()=>Pe,ZodLazy:()=>tx,ZodLiteral:()=>rx,ZodMap:()=>tE,ZodNaN:()=>nE,ZodNativeEnum:()=>ox,ZodNever:()=>Kl,ZodNull:()=>Yg,ZodNullable:()=>jd,ZodNumber:()=>Kg,ZodObject:()=>Xs,ZodOptional:()=>Ou,ZodParsedType:()=>Ke,ZodPipeline:()=>r_,ZodPromise:()=>Ky,ZodReadonly:()=>sx,ZodRecord:()=>sU,ZodSchema:()=>Yt,ZodSet:()=>rE,ZodString:()=>Gy,ZodSymbol:()=>X5,ZodTransformer:()=>Uu,ZodTuple:()=>zd,ZodType:()=>Yt,ZodUndefined:()=>Jg,ZodUnion:()=>Xg,ZodUnknown:()=>Jm,ZodVoid:()=>eE,addIssueToContext:()=>Fe,any:()=>Oxt,array:()=>Hxt,bigint:()=>Bxt,boolean:()=>ZFe,coerce:()=>c2t,custom:()=>KFe,date:()=>Ixt,datetimeRegex:()=>GFe,defaultErrorMap:()=>Qm,discriminatedUnion:()=>jxt,effect:()=>e2t,enum:()=>Jxt,function:()=>Wxt,getErrorMap:()=>Z5,getParsedType:()=>Fd,instanceof:()=>_xt,intersection:()=>$xt,isAborted:()=>oU,isAsync:()=>J5,isDirty:()=>aU,isValid:()=>qy,late:()=>Txt,lazy:()=>Qxt,literal:()=>Zxt,makeIssue:()=>e_,map:()=>Vxt,nan:()=>kxt,nativeEnum:()=>Yxt,never:()=>Uxt,null:()=>Mxt,nullable:()=>r2t,number:()=>QFe,object:()=>Lxt,objectUtil:()=>iJ,oboolean:()=>s2t,onumber:()=>i2t,optional:()=>t2t,ostring:()=>a2t,pipeline:()=>o2t,preprocess:()=>n2t,promise:()=>Xxt,quotelessJson:()=>ext,record:()=>Gxt,set:()=>Kxt,setErrorMap:()=>rxt,strictObject:()=>Fxt,string:()=>WFe,symbol:()=>Pxt,transformer:()=>e2t,tuple:()=>qxt,undefined:()=>Rxt,union:()=>zxt,unknown:()=>Nxt,util:()=>dr,void:()=>Dxt});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 iJ;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(iJ||(iJ={}));var Ke=dr.arrayToEnum([\"string\",\"nan\",\"number\",\"integer\",\"float\",\"boolean\",\"date\",\"bigint\",\"symbol\",\"function\",\"undefined\",\"null\",\"array\",\"object\",\"unknown\",\"promise\",\"void\",\"never\",\"map\",\"set\"]),Fd=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\"]),ext=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 p=u.path[d];d===u.path.length-1?(f[p]=f[p]||{_errors:[]},f[p]._errors.push(r(u))):f[p]=f[p]||{_errors:[]},f=f[p],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 txt=(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=txt;var FFe=Qm;function rxt(e){FFe=e}function Z5(){return FFe}c();var e_=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(p=>!!p).slice().reverse();for(let p of d)f=p(u,{data:t,defaultError:f}).message;return{...o,path:s,message:f}},nxt=[];function Fe(e,t){let r=Z5(),n=e_({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}),oU=e=>e.status===\"aborted\",aU=e=>e.status===\"dirty\",qy=e=>e.status===\"valid\",J5=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}},zFe=(e,t)=>{if(qy(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 Fd(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Fd(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:Fd(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(J5(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:Fd(t)},o=this._parseSync({data:t,path:n.path,parent:n});return zFe(n,o)}\"~validate\"(t){let r={common:{issues:[],async:!!this[\"~standard\"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Fd(t)};if(!this[\"~standard\"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return qy(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=>qy(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:Fd(t)},o=this._parse({data:t,path:n.path,parent:n}),s=await(J5(o)?o:Promise.resolve(o));return zFe(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 t_({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 r_.create(this,t)}readonly(){return sx.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},oxt=/^c[^\\\\s-]{8,}$/i,axt=/^[0-9a-z]+$/,ixt=/^[0-9A-HJKMNP-TV-Z]{26}$/i,sxt=/^[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,cxt=/^[a-z0-9_-]{21}$/i,uxt=/^[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]*$/,lxt=/^[-+]?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)?)??$/,fxt=/^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Z0-9_\\'+\\\\-\\\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\\\-]*\\\\.)+[A-Z]{2,}$/i,dxt=\"^(\\\\\\\\p{Extended_Pictographic}|\\\\\\\\p{Emoji_Component})+$\",sJ,pxt=/^(?:(?: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])$/,mxt=/^(?:(?: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])$/,hxt=/^(([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]))$/,yxt=/^(([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])$/,bxt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gxt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,$Fe=\"((\\\\\\\\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])))\",xxt=new RegExp(`^${$Fe}$`);function qFe(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 vxt(e){return new RegExp(`^${qFe(e)}$`)}function GFe(e){let t=`${$Fe}T${qFe(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 wxt(e,t){return!!((t===\"v4\"||!t)&&pxt.test(e)||(t===\"v6\"||!t)&&hxt.test(e))}function Ext(e,t){if(!uxt.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 Axt(e,t){return!!((t===\"v4\"||!t)&&mxt.test(e)||(t===\"v6\"||!t)&&yxt.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 Fe(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),Fe(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),Fe(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?Fe(o,{code:Pe.too_big,maximum:s.value,type:\"string\",inclusive:!0,exact:!0,message:s.message}):f&&Fe(o,{code:Pe.too_small,minimum:s.value,type:\"string\",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind===\"email\")fxt.test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(o,{validation:\"email\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"emoji\")sJ||(sJ=new RegExp(dxt,\"u\")),sJ.test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(o,{validation:\"emoji\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"uuid\")sxt.test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(o,{validation:\"uuid\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"nanoid\")cxt.test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(o,{validation:\"nanoid\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"cuid\")oxt.test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(o,{validation:\"cuid\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"cuid2\")axt.test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(o,{validation:\"cuid2\",code:Pe.invalid_string,message:s.message}),n.dirty());else if(s.kind===\"ulid\")ixt.test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(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),Fe(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),Fe(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),Fe(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),Fe(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),Fe(o,{code:Pe.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind===\"datetime\"?GFe(s).test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(o,{code:Pe.invalid_string,validation:\"datetime\",message:s.message}),n.dirty()):s.kind===\"date\"?xxt.test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(o,{code:Pe.invalid_string,validation:\"date\",message:s.message}),n.dirty()):s.kind===\"time\"?vxt(s).test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(o,{code:Pe.invalid_string,validation:\"time\",message:s.message}),n.dirty()):s.kind===\"duration\"?lxt.test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(o,{validation:\"duration\",code:Pe.invalid_string,message:s.message}),n.dirty()):s.kind===\"ip\"?wxt(t.data,s.version)||(o=this._getOrReturnCtx(t,o),Fe(o,{validation:\"ip\",code:Pe.invalid_string,message:s.message}),n.dirty()):s.kind===\"jwt\"?Ext(t.data,s.alg)||(o=this._getOrReturnCtx(t,o),Fe(o,{validation:\"jwt\",code:Pe.invalid_string,message:s.message}),n.dirty()):s.kind===\"cidr\"?Axt(t.data,s.version)||(o=this._getOrReturnCtx(t,o),Fe(o,{validation:\"cidr\",code:Pe.invalid_string,message:s.message}),n.dirty()):s.kind===\"base64\"?bxt.test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(o,{validation:\"base64\",code:Pe.invalid_string,message:s.message}),n.dirty()):s.kind===\"base64url\"?gxt.test(t.data)||(o=this._getOrReturnCtx(t,o),Fe(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 Sxt(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 Fe(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),Fe(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),Fe(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),Fe(n,{code:Pe.too_big,maximum:s.value,type:\"number\",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind===\"multipleOf\"?Sxt(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),Fe(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),Fe(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),Fe(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),Fe(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),Fe(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 Fe(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 Fe(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 Fe(s,{code:Pe.invalid_type,expected:Ke.date,received:s.parsedType}),pt}if(Number.isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return Fe(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),Fe(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),Fe(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 X5=class extends Yt{_parse(t){if(this._getType(t)!==Ke.symbol){let n=this._getOrReturnCtx(t);return Fe(n,{code:Pe.invalid_type,expected:Ke.symbol,received:n.parsedType}),pt}return vi(t.data)}};X5.create=e=>new X5({typeName:bt.ZodSymbol,...Lt(e)});var Jg=class extends Yt{_parse(t){if(this._getType(t)!==Ke.undefined){let n=this._getOrReturnCtx(t);return Fe(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 Fe(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 Fe(r,{code:Pe.invalid_type,expected:Ke.never,received:r.parsedType}),pt}};Kl.create=e=>new Kl({typeName:bt.ZodNever,...Lt(e)});var eE=class extends Yt{_parse(t){if(this._getType(t)!==Ke.undefined){let n=this._getOrReturnCtx(t);return Fe(n,{code:Pe.invalid_type,expected:Ke.void,received:n.parsedType}),pt}return vi(t.data)}};eE.create=e=>new eE({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 Fe(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)&&(Fe(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&&(Fe(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&&(Fe(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 Y5(e){if(e instanceof Xs){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=Ou.create(Y5(n))}return new Xs({...e._def,shape:()=>t})}else return e instanceof Ym?new Ym({...e._def,type:Y5(e.element)}):e instanceof Ou?Ou.create(Y5(e.unwrap())):e instanceof jd?jd.create(Y5(e.unwrap())):e instanceof zd?zd.create(e.items.map(t=>Y5(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 p=this._getOrReturnCtx(t);return Fe(p,{code:Pe.invalid_type,expected:Ke.object,received:p.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 p in o.data)u.includes(p)||f.push(p);let d=[];for(let p of u){let h=s[p],y=o.data[p];d.push({key:{status:\"valid\",value:p},value:h._parse(new Nu(o,y,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof Kl){let p=this._def.unknownKeys;if(p===\"passthrough\")for(let h of f)d.push({key:{status:\"valid\",value:h},value:{status:\"valid\",value:o.data[h]}});else if(p===\"strict\")f.length>0&&(Fe(o,{code:Pe.unrecognized_keys,keys:f}),n.dirty());else if(p!==\"strip\")throw new Error(\"Internal ZodObject error: invalid unknownKeys value.\")}else{let p=this._def.catchall;for(let h of f){let y=o.data[h];d.push({key:{status:\"valid\",value:h},value:p._parse(new Nu(o,y,o.path,h)),alwaysSet:h in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let p=[];for(let h of d){let y=await h.key,v=await h.value;p.push({key:y,value:v,alwaysSet:h.alwaysSet})}return p}).then(p=>Ja.mergeObjectSync(n,p)):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 Y5(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 VFe(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 Fe(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 p={...r,common:{...r.common,issues:[]},parent:null},h=d._parseSync({data:r.data,path:r.path,parent:p});if(h.status===\"valid\")return h;h.status===\"dirty\"&&!s&&(s={result:h,ctx:p}),p.common.issues.length&&u.push(p.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let f=u.map(d=>new Ys(d));return Fe(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 t_||e instanceof sx?Zm(e.unwrap()):e instanceof ix?Zm(e._def.innerType):[],iU=class e extends Yt{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ke.object)return Fe(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}):(Fe(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 cJ(e,t){let r=Fd(e),n=Fd(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=cJ(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=cJ(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(oU(s)||oU(u))return pt;let f=cJ(s.value,u.value);return f.valid?((aU(s)||aU(u))&&r.dirty(),{status:r.value,value:f.data}):(Fe(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 zd=class e extends Yt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ke.array)return Fe(n,{code:Pe.invalid_type,expected:Ke.array,received:n.parsedType}),pt;if(n.data.length<this._def.items.length)return Fe(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&&(Fe(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})}};zd.create=(e,t)=>{if(!Array.isArray(e))throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");return new zd({items:e,typeName:bt.ZodTuple,rest:null,...Lt(t)})};var sU=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 Fe(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)})}},tE=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 Fe(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],p)=>({key:o._parse(new Nu(n,f,n.path,[p,\"key\"])),value:s._parse(new Nu(n,d,n.path,[p,\"value\"]))}));if(n.common.async){let f=new Map;return Promise.resolve().then(async()=>{for(let d of u){let p=await d.key,h=await d.value;if(p.status===\"aborted\"||h.status===\"aborted\")return pt;(p.status===\"dirty\"||h.status===\"dirty\")&&r.dirty(),f.set(p.value,h.value)}return{status:r.value,value:f}})}else{let f=new Map;for(let d of u){let p=d.key,h=d.value;if(p.status===\"aborted\"||h.status===\"aborted\")return pt;(p.status===\"dirty\"||h.status===\"dirty\")&&r.dirty(),f.set(p.value,h.value)}return{status:r.value,value:f}}}};tE.create=(e,t,r)=>new tE({valueType:t,keyType:e,typeName:bt.ZodMap,...Lt(r)});var rE=class e extends Yt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ke.set)return Fe(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&&(Fe(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&&(Fe(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 p=new Set;for(let h of d){if(h.status===\"aborted\")return pt;h.status===\"dirty\"&&r.dirty(),p.add(h.value)}return{status:r.value,value:p}}let f=[...n.data.values()].map((d,p)=>s._parse(new Nu(n,d,n.path,p)));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)}};rE.create=(e,t)=>new rE({valueType:e,minSize:null,maxSize:null,typeName:bt.ZodSet,...Lt(t)});var cU=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 Fe(r,{code:Pe.invalid_type,expected:Ke.function,received:r.parsedType}),pt;function n(f,d){return e_({data:f,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Z5(),Qm].filter(p=>!!p),issueData:{code:Pe.invalid_arguments,argumentsError:d}})}function o(f,d){return e_({data:f,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Z5(),Qm].filter(p=>!!p),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 p=new Ys([]),h=await f._def.args.parseAsync(d,s).catch(E=>{throw p.addIssue(n(d,E)),p}),y=await Reflect.apply(u,this,h);return await f._def.returns._def.type.parseAsync(y,s).catch(E=>{throw p.addIssue(o(y,E)),p})})}else{let f=this;return vi(function(...d){let p=f._def.args.safeParse(d,s);if(!p.success)throw new Ys([n(d,p.error)]);let h=Reflect.apply(u,this,p.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:zd.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||zd.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 Fe(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 VFe(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 Fe(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 Fe(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=VFe;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 Fe(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 Fe(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 Fe(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=>{Fe(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(!qy(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=>qy(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 J5(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 nE=class extends Yt{_parse(t){if(this._getType(t)!==Ke.nan){let n=this._getOrReturnCtx(t);return Fe(n,{code:Pe.invalid_type,expected:Ke.nan,received:n.parsedType}),pt}return{status:\"valid\",value:t.data}}};nE.create=e=>new nE({typeName:bt.ZodNaN,...Lt(e)});var Cxt=Symbol(\"zod_brand\"),t_=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}},r_=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=>(qy(o)&&(o.value=Object.freeze(o.value)),o);return J5(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 jFe(e,t){let r=typeof e==\"function\"?e(t):typeof e==\"string\"?{message:e}:e;return typeof r==\"string\"?{message:r}:r}function KFe(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=jFe(t,n),d=f.fatal??r??!0;o.addIssue({code:\"custom\",...f,fatal:d})}});if(!s){let u=jFe(t,n),f=u.fatal??r??!0;o.addIssue({code:\"custom\",...u,fatal:f})}}):Vy.create()}var Txt={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 _xt=(e,t={message:`Input not instance of ${e.name}`})=>KFe(r=>r instanceof e,t),WFe=Gy.create,QFe=Kg.create,kxt=nE.create,Bxt=Wg.create,ZFe=Qg.create,Ixt=Zg.create,Pxt=X5.create,Rxt=Jg.create,Mxt=Yg.create,Oxt=Vy.create,Nxt=Jm.create,Uxt=Kl.create,Dxt=eE.create,Hxt=Ym.create,Lxt=Xs.create,Fxt=Xs.strictCreate,zxt=Xg.create,jxt=iU.create,$xt=ex.create,qxt=zd.create,Gxt=sU.create,Vxt=tE.create,Kxt=rE.create,Wxt=cU.create,Qxt=tx.create,Zxt=rx.create,Jxt=nx.create,Yxt=ox.create,Xxt=Ky.create,e2t=Uu.create,t2t=Ou.create,r2t=jd.create,n2t=Uu.createWithPreprocess,o2t=r_.create,a2t=()=>WFe().optional(),i2t=()=>QFe().optional(),s2t=()=>ZFe().optional(),c2t={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 u2t=pt;var Du=He.string().min(1),uJ=He.record(He.unknown()),uU=He.record(He.unknown()).optional().nullable(),lJ=Du,YFe=He.string().regex(/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/,{message:\"Network must be in CAIP-2 format (e.g., \\'eip155:84532\\')\"}),NBn=He.union([lJ,YFe]),JFe=/^[\\\\x20-\\\\x7e]+$/,XFe=He.object({url:Du,description:He.string().nullish().transform(e=>e??void 0),mimeType:He.string().nullish().transform(e=>e??void 0),serviceName:He.string().min(1).max(32).regex(JFe).nullish().transform(e=>e??void 0),tags:He.array(He.string().min(1).max(32).regex(JFe)).max(5).nullish().transform(e=>e??void 0),iconUrl:He.string().max(2048).nullish().transform(e=>e??void 0)}),eze=He.object({scheme:Du,network:lJ,maxAmountRequired:Du,resource:Du,description:He.string(),mimeType:He.string().optional(),outputSchema:uJ.optional().nullable(),payTo:Du,maxTimeoutSeconds:He.number().positive(),asset:Du,extra:uU}),l2t=He.object({x402Version:He.literal(1),error:He.string().optional(),accepts:He.array(eze).min(1)}),f2t=He.object({x402Version:He.literal(1),scheme:Du,network:lJ,payload:uJ}),fJ=He.object({scheme:Du,network:YFe,amount:Du,asset:Du,payTo:Du,maxTimeoutSeconds:He.number().positive(),extra:uU}),d2t=He.object({x402Version:He.literal(2),error:He.string().nullish().transform(e=>e??void 0),resource:XFe,accepts:He.array(fJ).min(1),extensions:uU}),p2t=He.object({x402Version:He.literal(2),resource:XFe.nullish().transform(e=>e??void 0),accepted:fJ,payload:uJ,extensions:uU}),UBn=He.union([eze,fJ]),DBn=He.discriminatedUnion(\"x402Version\",[l2t,d2t]),HBn=He.discriminatedUnion(\"x402Version\",[f2t,p2t]);c();var dJ=2;c();var b2t=1<<20;var XBn=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)}),eIn=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)}),g2t=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)}),tIn=He.object({kinds:He.array(g2t),extensions:He.array(He.string()).default([]),signers:He.record(He.string(),He.array(He.string())).default({})});function pJ(e){return oJ(JSON.stringify(e))}var rze=\"$1\";function nze(e){return/^\\\\d+$/.test(e)}function mJ(e,t,r){if(e.allowedAssets!==!0)return e.allowedAssets?.find(n=>YT(n.network,t.network)?n.asset.toLowerCase()===t.asset.toLowerCase()?!0:r!=null&&r.symbol.toLowerCase()===n.asset.toLowerCase():!1)}function tze(e,t,r){if(e===!1)return;let n=mJ(e,t,r);if(n?.maxAmountPerPayment!=null){if(!nze(n.maxAmountPerPayment))throw new Error(`spendControls.allowedAssets[].maxAmountPerPayment must be an integer atomic amount, not a dollar value; got ${JSON.stringify(n.maxAmountPerPayment)}`);return n.maxAmountPerPayment}if(!r||e.maxAmountPerPayment===!1)return;let o=e.maxAmountPerPayment??rze;return W5(eU(o).amount,r.decimals)}var oze=class aze{constructor(t){this.registeredClientSchemes=new Map,this.schemeClientHookAdapters=new Map,this.policies=[],this.registeredExtensions=new Map,this.spendControls={},this.beforePaymentCreationHooks=[],this.afterPaymentCreationHooks=[],this.onPaymentCreationFailureHooks=[],this.paymentResponseHooks=[],this.paymentRequirementsSelector=t||((r,n)=>n[0])}static fromConfig(t){let r=new aze(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)}),t.spendControls!==void 0&&r.setSpendControls(t.spendControls),r}register(t,r){return this._registerScheme(dJ,t,r)}registerV1(t,r){return this._registerScheme(1,t,r)}registerPolicy(t){return this.policies.push(t),this}setSpendControls(t){return this.spendControls=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=Q5(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,maxAmountPerPayment:tze(this.spendControls,n,s.findDefaultAsset?.(n.asset,n.network))}),f;if(u.x402Version==1)f=u;else{let p=this.mergeExtensions(t.extensions,u.extensions);f={x402Version:u.x402Version,payload:u.payload,extensions:p,resource:t.resource,accepted:n}}f=await this.enrichPaymentPayloadWithExtensions(f,t);let d={...o,paymentPayload:f};for(let p of this.getLabeledHooks(\"afterPaymentCreation\",t.x402Version,n,t.extensions))await p(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];if(u===null||typeof u!=\"object\"||Array.isArray(u)||s===null||typeof s!=\"object\"||Array.isArray(s)){n[o]=s;continue}let f=u,d=s,p=nU[o],h={...f},y=[{target:h,source:d}];for(let v of y)for(let[E,C]of Object.entries(v.source)){let k=v.target[E];if(k!==null&&typeof k==\"object\"&&!Array.isArray(k)&&C!==null&&typeof C==\"object\"&&!Array.isArray(C)){let P={...k};v.target[E]=P,y.push({target:P,source:C});continue}if(p?.has(E)&&(Array.isArray(k)||Array.isArray(C))){let P=XT(k),M=XT(C);if(P&&M){v.target[E]=v2t(M,P);continue}}Object.prototype.hasOwnProperty.call(v.target,E)||(v.target[E]=C)}n[o]=h}return n}async enrichPaymentPayloadWithExtensions(t,r){if(this.registeredExtensions.size===0)return t;let n=t;for(let[,o]of this.registeredExtensions)o.enrichPaymentPayload&&(n=await o.enrichPaymentPayload(n,r));return{...n,extensions:this.mergeExtensions(r.extensions,n.extensions)}}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(d=>{let p=tU(n,d.network);return p?p.has(d.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(d=>Array.from(d.keys())).flat()})}`);let s=o.filter(d=>{let p=d.extra?.paymentFlow;return p==null||p===\"authorization\"||p===\"upfront\"||p===\"escrow\"});if(s.length===0)throw new Error(`No payment requirements with a recognized paymentFlow for x402 version: ${t}`);let u=this.applySpendControls(t,s,n);for(let d of this.policies)if(u=d(t,u),u.length===0)throw new Error(`All payment requirements were filtered out by policies for x402 version: ${t}`);let f=u.filter(d=>d.extra?.paymentFlow==null||d.extra?.paymentFlow===\"authorization\");return f.length>0&&(u=f),this.paymentRequirementsSelector(t,u)}applySpendControls(t,r,n){let o=this.spendControls;if(o===!1)return r;let s=k=>t===1?k.maxAmountRequired:k.amount,u=k=>Q5(n,k.scheme,k.network),f=k=>u(k)?.findDefaultAsset?.(k.asset,k.network),d=k=>mJ(o,k,f(k)),h=o.allowedAssets===!0?r:r.filter(k=>f(k)!=null?!0:d(k)!=null);if(h.length===0)throw new Error(\"All payment requirements were rejected by spendControls: only default assets or entries in spendControls.allowedAssets are allowed. Add an allowedAssets entry for non-default tokens, set allowedAssets: true, or set spendControls: false.\");let y=o.maxAmountPerPayment===!1?!1:o.maxAmountPerPayment??rze,v=h,E=!1,C;if(h=h.filter(k=>{let P=f(k),M=mJ(o,k,P),U=tze(o,k,P);if(U===void 0)return!0;let O=s(k);if(!nze(O)){if(M?.maxAmountPerPayment!=null)return E=!0,!1;if(y===!1)return!0;let j=BigInt(W5(O,18)),K=BigInt(W5(eU(y).amount,18)),G=j<=K;return G||(C=P?.symbol),G}let N=BigInt(O)<=BigInt(U);return N||(M?.maxAmountPerPayment!=null?E=!0:C=P?.symbol),N}),h.length===0)throw E&&v.every(k=>d(k)?.maxAmountPerPayment!=null)?new Error(\"All payment requirements were rejected by spendControls.allowedAssets maxAmountPerPayment. Raise the per-asset cap, or omit maxAmountPerPayment to allow uncapped (default assets then fall back to the top-level USD cap).\"):new Error(`All payment requirements were rejected by spendControls.maxAmountPerPayment (${String(y)}${C?`, including ${C}`:\"\"}). Raise maxAmountPerPayment, set it to false to disable, set allowedAssets[].maxAmountPerPayment for a per-asset atomic cap, or set spendControls: false to disable all spend controls.`);return h}_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 p={};return d.onBeforePaymentCreation&&(p.beforePaymentCreation=d.onBeforePaymentCreation),d.onAfterPaymentCreation&&(p.afterPaymentCreation=d.onAfterPaymentCreation),d.onPaymentCreationFailure&&(p.onPaymentCreationFailure=d.onPaymentCreationFailure),d.onPaymentResponse&&(p.onPaymentResponse=d.onPaymentResponse),Object.keys(p).length>0?f.set(n.scheme,p):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),p=(f?Q5(f,n.scheme,n.network):void 0)?.[t];if(p!==void 0&&u.push(p),!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\"}}};function v2t(e,t){let r=[];for(let n of[...e,...t])r.some(o=>rU(o,n))||r.push(n);return r}c();c();var ize=[{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 hJ(e,t,r){try{return await e.readContract({address:r,abi:ize,functionName:\"balanceOf\",args:[t]})}catch(n){return console.error(\"Failed to fetch token balance:\",n),0n}}async function sze(e,t){try{let r=await e.readContract({address:t,abi:ize,functionName:\"decimals\"});return Number(r)}catch(r){return console.error(\"Failed to fetch token decimals:\",r),6}}c();var yJ=Sr(Dl(),1);function cze({className:e=\"\"}){return(0,yJ.jsx)(\"div\",{className:`spinner ${e}`,children:(0,yJ.jsx)(\"div\",{})})}c();VR();var lze={MAINNET:\"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\",DEVNET:\"EtWTRABZaYq6iMfeYKouRu166VU2xqa1\"},uze={MAINNET:\"wGHE2Pwdvd7S12BL5FaOP20EGYesN73k\",TESTNET:\"SGO1GKSzyE7IEPItTxCByw9x8FmnrCDe\"},lU={MAINNET:\"wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=\",TESTNET:\"SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=\"};function fze(e){if(e===`algorand:${uze.MAINNET}`)return lU.MAINNET;if(e===`algorand:${uze.TESTNET}`)return lU.TESTNET;throw new Error(`Unsupported Algorand network: ${e}`)}function dze(e){return e.startsWith(\"eip155:\")}function pze(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}`}if(e.startsWith(\"solana:\"))return e.split(\":\")[1]===lze.DEVNET?\"Solana Devnet\":\"Solana Mainnet\";if(e.startsWith(\"algorand:\"))try{return fze(e)===lU.TESTNET?\"Algorand Testnet\":\"Algorand Mainnet\"}catch{return e}return e}function mze(e){if(e.startsWith(\"eip155:\")){let t=parseInt(e.split(\":\")[1]);return Object.values(ay).find(n=>n.id===t)?.testnet??!1}if(e.startsWith(\"solana:\"))return e.split(\":\")[1]===lze.DEVNET;if(e.startsWith(\"algorand:\"))try{return fze(e)===lU.TESTNET}catch{return!1}return!1}c();var w2t={\"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\",\"eip155:11142220\":\"https://faucet.circle.com/\",\"eip155:1328\":\"https://faucet.circle.com/\",\"eip155:10143\":\"https://faucet.circle.com/\",\"eip155:5042002\":\"https://faucet.circle.com/\",\"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\":\"https://faucet.circle.com/\",\"algorand:SGO1GKSzyE7IEPItTxCByw9x8FmnrCDe\":\"https://dispenser.testnet.aws.algodev.network/\"};function hze(e,t){return t.faucetUrls?.[e]??w2t[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 bze({paymentRequired:e,onSuccessfulResponse:t}){let{address:r,isConnected:n,chainId:o}=QC(),{switchChainAsync:s}=hQ(),{data:u}=yQ(),{connectors:f,connect:d}=pQ(),{disconnect:p}=mQ(),[h,y]=(0,Ya.useState)(\"\"),[v,E]=(0,Ya.useState)(null),[C,k]=(0,Ya.useState)(!1),[P,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=pze(Y),H=mze(Y),A=parseInt(Y.split(\":\")[1]),T=Object.values(ay).find(Q=>Q.id===A);if(!T)throw new Error(`Unsupported chain ID: ${A}`);let R=(0,Ya.useMemo)(()=>fC({chain:T,transport:gd()}).extend(qw),[T]),D=(0,Ya.useCallback)(async()=>{if(!r)return;let[Q,F]=await Promise.all([hJ(R,r,ie),sze(R,ie)]);M(y1(Q,F))},[r,R,ie]),L=(0,Ya.useCallback)(async()=>{if(!v)try{y(\"\"),await s({chainId:A}),await new Promise(Q=>setTimeout(Q,100))}catch(Q){y(Q instanceof Error?Q.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 Q=u.extend(qw);k(!0);try{if(y(\"Checking balance...\"),await hJ(R,r,ie)===0n)throw new Error(`Insufficient balance. Make sure you have ${W} on ${re}`);y(\"Creating payment signature...\");let I=yze(Q),Z=new oze;Z.setSpendControls(!1),Z.register(\"eip155:*\",new aJ(I));let me=await Z.createPaymentPayload(e),ge=pJ(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(F){y(F instanceof Error?F.message:\"Payment failed\")}finally{k(!1)}},[r,K,e,L,u,R,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 Q=hze(Y,K);return(0,ar.jsxs)(\"p\",{className:\"instructions\",children:[\"Need \",W,\" on \",re,\"?\",\" \",Q?(0,ar.jsxs)(\"a\",{href:Q,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:()=>p(),children:\"Disconnect\"})}):(0,ar.jsxs)(\"div\",{className:\"cta-container\",children:[(0,ar.jsxs)(\"select\",{className:\"input\",value:N,onChange:Q=>j(Q.target.value),children:[(0,ar.jsx)(\"option\",{value:\"\",disabled:!0,children:\"Select a wallet\"}),f.map(Q=>(0,ar.jsx)(\"option\",{value:Q.id,children:Q.name},Q.id))]}),(0,ar.jsx)(\"button\",{className:\"button button-primary\",onClick:()=>{let Q=f.find(F=>F.id===N);Q&&d({connector:Q})},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(Q=>!Q),children:P&&!U?`$${P} ${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)(cze,{}):\"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();d8.type=\"coinbaseWallet\";function d8(e={}){return e.version===\"3\"||e.headlessMode?fPt(e):lPt(e)}function lPt(e){let t,r,n,o;return s=>({id:\"coinbaseWalletSDK\",name:\"Coinbase Wallet\",rdns:\"com.coinbase.wallet\",type:d8.type,async connect({chainId:u,withCapabilities:f,...d}={}){try{let p=await this.getProvider(),h=(await p.request({method:\"eth_requestAccounts\",params:\"instantOnboarding\"in d&&d.instantOnboarding?[{onboarding:\"instant\"}]:[]})).map(v=>hn(v));r||(r=this.onAccountsChanged.bind(this),p.on(\"accountsChanged\",r)),n||(n=this.onChainChanged.bind(this),p.on(\"chainChanged\",n)),o||(o=this.onDisconnect.bind(this),p.on(\"disconnect\",o));let y=await this.getChainId();return u&&y!==u&&(y=(await this.switchChain({chainId:u}).catch(E=>{if(E.code===zn.code)throw E;return{id:y}}))?.id??y),{accounts:f?h.map(v=>({address:v,capabilities:{}})):h,chainId:y}}catch(p){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(p.message)?new zn(p):p}},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(()=>(WWe(),KWe));t=f({...e,appChainIds:s.chains.map(p=>p.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 Fs);let p=await this.getProvider();try{return await p.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 p.request({method:\"wallet_addEthereumChain\",params:[E]}),d}catch(y){throw new zn(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 fPt(e){let r,n,o,s,u;return f=>({id:\"coinbaseWalletSDK\",name:\"Coinbase Wallet\",rdns:\"com.coinbase.wallet\",type:d8.type,async connect({chainId:d,withCapabilities:p}={}){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===zn.code)throw C;return{id:v}}))?.id??v),{accounts:p?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 zn(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(p=>hn(p))},async getChainId(){let p=await(await this.getProvider()).request({method:\"eth_chainId\"});return Number(p)},async getProvider(){if(!n){let d=await(async()=>{let{default:E}=await Promise.resolve().then(()=>Sr(oit(),1));return typeof E!=\"function\"&&typeof E.default==\"function\"?E.default:E})();r=new d({...e,reloadOnDisconnect:!1});let p=r.walletExtension?.getChainId(),h=f.chains.find(E=>e.chainId?E.id===e.chainId:E.id===p)||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:p}){let h=f.chains.find(v=>v.id===p);if(!h)throw new Vi(new Fs);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 k={blockExplorerUrls:E,chainId:le(p),chainName:d?.chainName??h.name,iconUrls:d?.iconUrls,nativeCurrency:d?.nativeCurrency??h.nativeCurrency,rpcUrls:C};return await y.request({method:\"wallet_addEthereumChain\",params:[k]}),h}catch(E){throw new zn(E)}throw new Vi(v)}},onAccountsChanged(d){d.length===0?this.onDisconnect():f.emitter.emit(\"change\",{accounts:d.map(p=>hn(p))})},onChainChanged(d){let p=Number(d);f.emitter.emit(\"change\",{chainId:p})},async onDisconnect(d){f.emitter.emit(\"disconnect\");let p=await this.getProvider();o&&(p.removeListener(\"accountsChanged\",o),o=void 0),s&&(p.removeListener(\"chainChanged\",s),s=void 0),u&&(p.removeListener(\"disconnect\",u),u=void 0)}})}VR();var mne=Sr(Dl(),1),dPt=new nQ;function ait({children:e}){let{paymentRequired:t}=window.x402,r=hC;if(t?.accepts?.[0]){let s=t.accepts[0].network;if(dze(s)){let u=parseInt(s.split(\":\")[1]),f=Object.values(ay).find(d=>d.id===u);f&&(r=f)}}let n=aM({chains:[r],connectors:[Sm(),d8({appName:window.x402.appName||\"x402 Paywall\"})],transports:{[r.id]:gd()}});return(0,mne.jsx)(sM,{config:n,children:(0,mne.jsx)(lQ,{client:dPt,children:e})})}var hne=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,iit.createRoot)(e).render((0,hne.jsx)(ait,{children:(0,hne.jsx)(bze,{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","/**\n * Serializes a value as JSON for an inline <script>. JSON.stringify leaves \"<\"\n * as is, so a string containing \"</script>\" would close the element; inside a\n * JS string \"<\" is the same character.\n *\n * @param value - Value to serialize\n * @returns JSON with every \"<\" escaped\n */\nexport function toScriptJson(value: unknown): string {\n  return JSON.stringify(value).replace(/</g, \"\\\\u003c\");\n}\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 { toScriptJson } from \"../scriptJson\";\nimport { getEvmTemplate } from \"./template-loader\";\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: ${toScriptJson(paymentRequired)},\n      testnet: ${testnet},\n      currentUrl: ${toScriptJson(currentUrl)},\n      config: {\n        chainConfig: ${JSON.stringify(config)},\n      },\n      appName: ${toScriptJson(appName || \"\")},\n      appLogo: ${toScriptJson(appLogo || \"\")},\n      faucetUrls: ${faucetUrls ? toScriptJson(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_ASSETS (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_ASSETS` (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"]}