From c36118dc5edb7ca6ab531f2bbbcf2abe4f6ec210 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 10 Dec 2023 03:46:52 +0330 Subject: [PATCH] Updates --- ...rowser-L9xZ4E6G.js => browser-RXMF2uUL.js} | 2 +- assets/{http-gDbOmFlM.js => http-EUccMvXZ.js} | 2 +- .../{index-Gnz09uoc.js => index-0aC6Xlgc.js} | 148 +++++++++--------- assets/index-3VXKPAHU.js | 7 + .../{index-_MKzDFaS.js => index-6napdEcA.js} | 2 +- assets/index-9riKKNzS.js | 7 - .../{index-v-w47Mu0.js => index-k-2Y-z04.js} | 2 +- .../{index-N1Lyn32V.js => index-pUtMfZxn.js} | 2 +- .../{index-Y_z407jB.js => index-ynIz-0vY.js} | 2 +- ...ex.es-fegywn_p.js => index.es-tEmxzH1T.js} | 6 +- index.html | 2 +- 11 files changed, 91 insertions(+), 91 deletions(-) rename assets/{browser-L9xZ4E6G.js => browser-RXMF2uUL.js} (99%) rename assets/{http-gDbOmFlM.js => http-EUccMvXZ.js} (99%) rename assets/{index-Gnz09uoc.js => index-0aC6Xlgc.js} (57%) create mode 100644 assets/index-3VXKPAHU.js rename assets/{index-_MKzDFaS.js => index-6napdEcA.js} (99%) delete mode 100644 assets/index-9riKKNzS.js rename assets/{index-v-w47Mu0.js => index-k-2Y-z04.js} (55%) rename assets/{index-N1Lyn32V.js => index-pUtMfZxn.js} (99%) rename assets/{index-Y_z407jB.js => index-ynIz-0vY.js} (99%) rename assets/{index.es-fegywn_p.js => index.es-tEmxzH1T.js} (99%) diff --git a/assets/browser-L9xZ4E6G.js b/assets/browser-RXMF2uUL.js similarity index 99% rename from assets/browser-L9xZ4E6G.js rename to assets/browser-RXMF2uUL.js index 2e21f02..3cb48b7 100644 --- a/assets/browser-L9xZ4E6G.js +++ b/assets/browser-RXMF2uUL.js @@ -1,4 +1,4 @@ -import{aV as bt,aW as Pt}from"./index-Gnz09uoc.js";var O={},Rt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},dt={},T={};let it;const Lt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];T.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};T.getSymbolTotalCodewords=function(t){return Lt[t]};T.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};T.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');it=t};T.isKanjiModeEnabled=function(){return typeof it<"u"};T.toSJIS=function(t){return it(t)};var G={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,n){if(e.isValid(o))return o;try{return t(o)}catch{return n}}})(G);function ht(){this.buffer=[],this.length=0}ht.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const 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 Ut=ht;function K(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}K.prototype.set=function(e,t,i,o){const n=e*this.size+t;this.data[n]=i,o&&(this.reservedBit[n]=!0)};K.prototype.get=function(e,t){return this.data[e*this.size+t]};K.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};K.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Dt=K,wt={};(function(e){const t=T.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const n=Math.floor(o/7)+2,r=t(o),s=r===145?26:Math.ceil((r-13)/(2*n-2))*2,c=[r-7];for(let u=1;u=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const r=n.size;let s=0,c=0,u=0,l=null,a=null;for(let A=0;A=5&&(s+=t.N1+(c-5)),l=g,c=1),g=n.get(w,A),g===a?u++:(u>=5&&(s+=t.N1+(u-5)),a=g,u=1)}c>=5&&(s+=t.N1+(c-5)),u>=5&&(s+=t.N1+(u-5))}return s},e.getPenaltyN2=function(n){const r=n.size;let s=0;for(let c=0;c=10&&(c===1488||c===93)&&s++,u=u<<1&2047|n.get(a,l),a>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(n){let r=0;const s=n.data.length;for(let u=0;u=0;){const s=r[0];for(let u=0;u0){const r=new Uint8Array(this.degree);return r.set(o,n),r}return o};var kt=st,Bt={},L={},ut={};ut.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var S={};const At="[0-9]+",zt="[A-Z $%*+\\-./:]+";let H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");const Vt="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r +import{aV as bt,aW as Pt}from"./index-0aC6Xlgc.js";var O={},Rt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},dt={},T={};let it;const Lt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];T.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};T.getSymbolTotalCodewords=function(t){return Lt[t]};T.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};T.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');it=t};T.isKanjiModeEnabled=function(){return typeof it<"u"};T.toSJIS=function(t){return it(t)};var G={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,n){if(e.isValid(o))return o;try{return t(o)}catch{return n}}})(G);function ht(){this.buffer=[],this.length=0}ht.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const 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 Ut=ht;function K(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}K.prototype.set=function(e,t,i,o){const n=e*this.size+t;this.data[n]=i,o&&(this.reservedBit[n]=!0)};K.prototype.get=function(e,t){return this.data[e*this.size+t]};K.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};K.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Dt=K,wt={};(function(e){const t=T.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const n=Math.floor(o/7)+2,r=t(o),s=r===145?26:Math.ceil((r-13)/(2*n-2))*2,c=[r-7];for(let u=1;u=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const r=n.size;let s=0,c=0,u=0,l=null,a=null;for(let A=0;A=5&&(s+=t.N1+(c-5)),l=g,c=1),g=n.get(w,A),g===a?u++:(u>=5&&(s+=t.N1+(u-5)),a=g,u=1)}c>=5&&(s+=t.N1+(c-5)),u>=5&&(s+=t.N1+(u-5))}return s},e.getPenaltyN2=function(n){const r=n.size;let s=0;for(let c=0;c=10&&(c===1488||c===93)&&s++,u=u<<1&2047|n.get(a,l),a>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(n){let r=0;const s=n.data.length;for(let u=0;u=0;){const s=r[0];for(let u=0;u0){const r=new Uint8Array(this.degree);return r.set(o,n),r}return o};var kt=st,Bt={},L={},ut={};ut.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var S={};const At="[0-9]+",zt="[A-Z $%*+\\-./:]+";let H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");const Vt="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r ]))+`;S.KANJI=new RegExp(H,"g");S.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");S.BYTE=new RegExp(Vt,"g");S.NUMERIC=new RegExp(At,"g");S.ALPHANUMERIC=new RegExp(zt,"g");const Ht=new RegExp("^"+H+"$"),Kt=new RegExp("^"+At+"$"),Jt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");S.testKanji=function(t){return Ht.test(t)};S.testNumeric=function(t){return Kt.test(t)};S.testAlphanumeric=function(t){return Jt.test(t)};(function(e){const t=ut,i=S;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(r,s){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?r.ccBits[0]:s<27?r.ccBits[1]:r.ccBits[2]},e.getBestModeForData=function(r){return i.testNumeric(r)?e.NUMERIC:i.testAlphanumeric(r)?e.ALPHANUMERIC:i.testKanji(r)?e.KANJI:e.BYTE},e.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},e.isValid=function(r){return r&&r.bit&&r.ccBits};function o(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+n)}}e.from=function(r,s){if(e.isValid(r))return r;try{return o(r)}catch{return s}}})(L);(function(e){const t=T,i=j,o=G,n=L,r=ut,s=7973,c=t.getBCHDigit(s);function u(w,g,E){for(let C=1;C<=40;C++)if(g<=e.getCapacity(C,E,w))return C}function l(w,g){return n.getCharCountIndicator(w,g)+4}function a(w,g){let E=0;return w.forEach(function(C){const N=l(C.mode,g);E+=N+C.getBitsLength()}),E}function A(w,g){for(let E=1;E<=40;E++)if(a(w,E)<=e.getCapacity(E,g,n.MIXED))return E}e.from=function(g,E){return r.isValid(g)?parseInt(g,10):E},e.getCapacity=function(g,E,C){if(!r.isValid(g))throw new Error("Invalid QR Code version");typeof C>"u"&&(C=n.BYTE);const N=t.getSymbolTotalCodewords(g),h=i.getTotalCodewordsCount(g,E),m=(N-h)*8;if(C===n.MIXED)return m;const d=m-l(C,g);switch(C){case n.NUMERIC:return Math.floor(d/10*3);case n.ALPHANUMERIC:return Math.floor(d/11*2);case n.KANJI:return Math.floor(d/13);case n.BYTE:default:return Math.floor(d/8)}},e.getBestVersionForData=function(g,E){let C;const N=o.from(E,o.M);if(Array.isArray(g)){if(g.length>1)return A(g,N);if(g.length===0)return 1;C=g[0]}else C=g;return u(C.mode,C.getLength(),N)},e.getEncodedBits=function(g){if(!r.isValid(g)||g<7)throw new Error("Invalid QR Code version");let E=g<<12;for(;t.getBCHDigit(E)-c>=0;)E^=s<=0;)n^=Nt<0&&(o=this.data.substr(i),n=parseInt(o,10),t.put(n,r*3+1))};var _t=U;const Ot=L,q=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function D(e){this.mode=Ot.ALPHANUMERIC,this.data=e}D.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let o=q.indexOf(this.data[i])*45;o+=q.indexOf(this.data[i+1]),t.put(o,11)}this.data.length%2&&t.put(q.indexOf(this.data[i]),6)};var Gt=D;const jt=bt,vt=L;function F(e){this.mode=vt.BYTE,typeof e=="string"&&(e=jt(e)),this.data=new Uint8Array(e)}F.getBitsLength=function(t){return t*8};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(e){for(let t=0,i=this.data.length;t=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var Zt=k;(function(e){const t=L,i=_t,o=Gt,n=Qt,r=Zt,s=S,c=T,u=Pt;function l(h){return unescape(encodeURIComponent(h)).length}function a(h,m,d){const f=[];let y;for(;(y=h.exec(d))!==null;)f.push({data:y[0],index:y.index,mode:m,length:y[0].length});return f}function A(h){const m=a(s.NUMERIC,t.NUMERIC,h),d=a(s.ALPHANUMERIC,t.ALPHANUMERIC,h);let f,y;return c.isKanjiModeEnabled()?(f=a(s.BYTE,t.BYTE,h),y=a(s.KANJI,t.KANJI,h)):(f=a(s.BYTE_KANJI,t.BYTE,h),y=[]),m.concat(d,f,y).sort(function(I,p){return I.index-p.index}).map(function(I){return{data:I.data,mode:I.mode,length:I.length}})}function w(h,m){switch(m){case t.NUMERIC:return i.getBitsLength(h);case t.ALPHANUMERIC:return o.getBitsLength(h);case t.KANJI:return r.getBitsLength(h);case t.BYTE:return n.getBitsLength(h)}}function g(h){return h.reduce(function(m,d){const f=m.length-1>=0?m[m.length-1]:null;return f&&f.mode===d.mode?(m[m.length-1].data+=d.data,m):(m.push(d),m)},[])}function E(h){const m=[];for(let d=0;d=0&&c<=6&&(u===0||u===6)||u>=0&&u<=6&&(c===0||c===6)||c>=2&&c<=4&&u>=2&&u<=4?e.set(r+c,s+u,!0,!0):e.set(r+c,s+u,!1,!0))}}function se(e){const t=e.size;for(let i=8;i>c&1)===1,e.set(n,r,s,!0),e.set(r,n,s,!0)}function x(e,t,i){const o=e.size,n=oe.getEncodedBits(t,i);let r,s;for(r=0;r<15;r++)s=(n>>r&1)===1,r<6?e.set(r,8,s,!0):r<8?e.set(r+1,8,s,!0):e.set(o-15+r,8,s,!0),r<8?e.set(8,o-r-1,s,!0):r<9?e.set(8,15-r-1+1,s,!0):e.set(8,15-r-1,s,!0);e.set(o-8,8,1,!0)}function le(e,t){const i=e.size;let o=-1,n=i-1,r=7,s=0;for(let c=i-1;c>0;c-=2)for(c===6&&c--;;){for(let u=0;u<2;u++)if(!e.isReserved(n,c-u)){let l=!1;s>>r&1)===1),e.set(n,c-u,l),r--,r===-1&&(s++,r=7)}if(n+=o,n<0||i<=n){n-=o,o=-o;break}}}function ae(e,t,i){const o=new Xt;i.forEach(function(u){o.put(u.mode.bit,4),o.put(u.getLength(),re.getCharCountIndicator(u.mode,e)),u.write(o)});const n=Q.getSymbolTotalCodewords(e),r=ot.getTotalCodewordsCount(e,t),s=(n-r)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const c=(s-o.getLengthInBits())/8;for(let u=0;uJSON.stringify(r,(t,s)=>typeof s=="bigint"?s.toString()+"n":s),ue=r=>{const t=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,s=r.replace(t,'$1"$2n"$3');return JSON.parse(s,(c,f)=>typeof f=="string"&&f.match(/^\d+n$/)?BigInt(f.substring(0,f.length-1)):f)};function he(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return ue(r)}catch{return r}}function I(r){return typeof r=="string"?r:fe(r)||""}const de="PARSE_ERROR",le="INVALID_REQUEST",pe="METHOD_NOT_FOUND",ye="INVALID_PARAMS",$="INTERNAL_ERROR",S="SERVER_ERROR",be=[-32700,-32600,-32601,-32602,-32603],R={[de]:{code:-32700,message:"Parse error"},[le]:{code:-32600,message:"Invalid Request"},[pe]:{code:-32601,message:"Method not found"},[ye]:{code:-32602,message:"Invalid params"},[$]:{code:-32603,message:"Internal error"},[S]:{code:-32e3,message:"Server error"}},V=S;function me(r){return be.includes(r)}function U(r){return Object.keys(R).includes(r)?R[r]:R[V]}function ve(r){const t=Object.values(R).find(s=>s.code===r);return t||R[V]}function Ee(r,t,s){return r.message.includes("getaddrinfo ENOTFOUND")||r.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${s} RPC url at ${t}`):r}var ge={},b={},M;function we(){if(M)return b;M=1,Object.defineProperty(b,"__esModule",{value:!0}),b.isBrowserCryptoAvailable=b.getSubtleCrypto=b.getBrowerCrypto=void 0;function r(){return(E===null||E===void 0?void 0:E.crypto)||(E===null||E===void 0?void 0:E.msCrypto)||{}}b.getBrowerCrypto=r;function t(){const c=r();return c.subtle||c.webkitSubtle}b.getSubtleCrypto=t;function s(){return!!r()&&!!t()}return b.isBrowserCryptoAvailable=s,b}var m={},j;function Re(){if(j)return m;j=1,Object.defineProperty(m,"__esModule",{value:!0}),m.isBrowser=m.isNode=m.isReactNative=void 0;function r(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}m.isReactNative=r;function t(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}m.isNode=t;function s(){return!r()&&!t()}return m.isBrowser=s,m}(function(r){Object.defineProperty(r,"__esModule",{value:!0});const t=ae;t.__exportStar(we(),r),t.__exportStar(Re(),r)})(ge);function k(r=3){const t=Date.now()*Math.pow(10,r),s=Math.floor(Math.random()*Math.pow(10,r));return t+s}function _e(r=6){return BigInt(k(r))}function Ae(r,t,s){return{id:s||k(),jsonrpc:"2.0",method:r,params:t}}function Ne(r,t){return{id:r,jsonrpc:"2.0",result:t}}function Te(r,t,s){return{id:r,jsonrpc:"2.0",error:Oe(t,s)}}function Oe(r,t){return typeof r>"u"?U($):(typeof r=="string"&&(r=Object.assign(Object.assign({},U(S)),{message:r})),typeof t<"u"&&(r.data=t),me(r.code)&&(r=ve(r.code)),r)}class G{}class Fe extends G{constructor(t){super()}}class Pe extends G{constructor(){super()}}class Be extends Pe{constructor(t){super()}}const Se="^https?:",De="^wss?:";function xe(r){const t=r.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function X(r,t){const s=xe(r);return typeof s>"u"?!1:new RegExp(t).test(s)}function N(r){return X(r,Se)}function He(r){return X(r,De)}function qe(r){return new RegExp("wss?://localhost(:d{2,5})?").test(r)}function z(r){return typeof r=="object"&&"id"in r&&"jsonrpc"in r&&r.jsonrpc==="2.0"}function Je(r){return z(r)&&"method"in r}function Ce(r){return z(r)&&(Le(r)||W(r))}function Le(r){return"result"in r}function W(r){return"error"in r}class $e extends Be{constructor(t){super(t),this.events=new J.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,s){this.events.on(t,s)}once(t,s){this.events.once(t,s)}off(t,s){this.events.off(t,s)}removeListener(t,s){this.events.removeListener(t,s)}async request(t,s){return this.requestStrict(Ae(t.method,t.params||[],t.id||_e().toString()),s)}async requestStrict(t,s){return new Promise(async(c,f)=>{if(!this.connection.connected)try{await this.open()}catch(o){f(o)}this.events.on(`${t.id}`,o=>{W(o)?f(o.error):c(o.result)});try{await this.connection.send(t,s)}catch(o){f(o)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),Ce(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}onClose(t){t&&t.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason?`(${t.reason})`:""}`)),this.events.emit("disconnect")}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),typeof t=="string"&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",t=>this.onPayload(t)),this.connection.on("close",t=>this.onClose(t)),this.connection.on("error",t=>this.events.emit("error",t)),this.connection.on("register_error",t=>this.onClose()),this.hasRegisteredEventListeners=!0)}}var B={exports:{}};(function(r,t){var s=typeof self<"u"?self:E,c=function(){function o(){this.fetch=!1,this.DOMException=s.DOMException}return o.prototype=s,new o}();(function(o){(function(l){var p={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function Q(e){return e&&DataView.prototype.isPrototypeOf(e)}if(p.arrayBuffer)var K=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Y=ArrayBuffer.isView||function(e){return e&&K.indexOf(Object.prototype.toString.call(e))>-1};function g(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function D(e){return typeof e!="string"&&(e=String(e)),e}function A(e){var n={next:function(){var i=e.shift();return{done:i===void 0,value:i}}};return p.iterable&&(n[Symbol.iterator]=function(){return n}),n}function u(e){this.map={},e instanceof u?e.forEach(function(n,i){this.append(i,n)},this):Array.isArray(e)?e.forEach(function(n){this.append(n[0],n[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(n){this.append(n,e[n])},this)}u.prototype.append=function(e,n){e=g(e),n=D(n);var i=this.map[e];this.map[e]=i?i+", "+n:n},u.prototype.delete=function(e){delete this.map[g(e)]},u.prototype.get=function(e){return e=g(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(g(e))},u.prototype.set=function(e,n){this.map[g(e)]=D(n)},u.prototype.forEach=function(e,n){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(n,this.map[i],i,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(n,i){e.push(i)}),A(e)},u.prototype.values=function(){var e=[];return this.forEach(function(n){e.push(n)}),A(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(n,i){e.push([i,n])}),A(e)},p.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function T(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function x(e){return new Promise(function(n,i){e.onload=function(){n(e.result)},e.onerror=function(){i(e.error)}})}function Z(e){var n=new FileReader,i=x(n);return n.readAsArrayBuffer(e),i}function ee(e){var n=new FileReader,i=x(n);return n.readAsText(e),i}function te(e){for(var n=new Uint8Array(e),i=new Array(n.length),d=0;d-1?n:e}function v(e,n){n=n||{};var i=n.body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!i&&e._bodyInit!=null&&(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",(n.headers||!this.headers)&&(this.headers=new u(n.headers)),this.method=ne(n.method||this.method||"GET"),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})};function se(e){var n=new FormData;return e.trim().split("&").forEach(function(i){if(i){var d=i.split("="),h=d.shift().replace(/\+/g," "),a=d.join("=").replace(/\+/g," ");n.append(decodeURIComponent(h),decodeURIComponent(a))}}),n}function ie(e){var n=new u,i=e.replace(/\r?\n[\t ]+/g," ");return i.split(/\r?\n/).forEach(function(d){var h=d.split(":"),a=h.shift().trim();if(a){var _=h.join(":").trim();n.append(a,_)}}),n}L.call(v.prototype);function y(e,n){n||(n={}),this.type="default",this.status=n.status===void 0?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"OK",this.headers=new u(n.headers),this.url=n.url||"",this._initBody(e)}L.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var oe=[301,302,303,307,308];y.redirect=function(e,n){if(oe.indexOf(n)===-1)throw new RangeError("Invalid status code");return new y(null,{status:n,headers:{location:e}})},l.DOMException=o.DOMException;try{new l.DOMException}catch{l.DOMException=function(n,i){this.message=n,this.name=i;var d=Error(n);this.stack=d.stack},l.DOMException.prototype=Object.create(Error.prototype),l.DOMException.prototype.constructor=l.DOMException}function O(e,n){return new Promise(function(i,d){var h=new v(e,n);if(h.signal&&h.signal.aborted)return d(new l.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function _(){a.abort()}a.onload=function(){var w={status:a.status,statusText:a.statusText,headers:ie(a.getAllResponseHeaders()||"")};w.url="responseURL"in a?a.responseURL:w.headers.get("X-Request-URL");var P="response"in a?a.response:a.responseText;i(new y(P,w))},a.onerror=function(){d(new TypeError("Network request failed"))},a.ontimeout=function(){d(new TypeError("Network request failed"))},a.onabort=function(){d(new l.DOMException("Aborted","AbortError"))},a.open(h.method,h.url,!0),h.credentials==="include"?a.withCredentials=!0:h.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&p.blob&&(a.responseType="blob"),h.headers.forEach(function(w,P){a.setRequestHeader(P,w)}),h.signal&&(h.signal.addEventListener("abort",_),a.onreadystatechange=function(){a.readyState===4&&h.signal.removeEventListener("abort",_)}),a.send(typeof h._bodyInit>"u"?null:h._bodyInit)})}return O.polyfill=!0,o.fetch||(o.fetch=O,o.Headers=u,o.Request=v,o.Response=y),l.Headers=u,l.Request=v,l.Response=y,l.fetch=O,Object.defineProperty(l,"__esModule",{value:!0}),l})({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var f=c;t=f.fetch,t.default=f.fetch,t.fetch=f.fetch,t.Headers=f.Headers,t.Request=f.Request,t.Response=f.Response,r.exports=t})(B,B.exports);var Ie=B.exports;const F=ce(Ie),Ue={Accept:"application/json","Content-Type":"application/json"},Me="POST",H={headers:Ue,method:Me},q=10;class Ve{constructor(t,s=!1){if(this.url=t,this.disableProviderPing=s,this.events=new J.EventEmitter,this.isAvailable=!1,this.registering=!1,!N(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t,this.disableProviderPing=s}get connected(){return this.isAvailable}get connecting(){return this.registering}on(t,s){this.events.on(t,s)}once(t,s){this.events.once(t,s)}off(t,s){this.events.off(t,s)}removeListener(t,s){this.events.removeListener(t,s)}async open(t=this.url){await this.register(t)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(t,s){this.isAvailable||await this.register();try{const c=I(t),o=await(await F(this.url,Object.assign(Object.assign({},H),{body:c}))).json();this.onPayload({data:o})}catch(c){this.onError(t.id,c)}}async register(t=this.url){if(!N(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){const s=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=s||this.events.listenerCount("open")>=s)&&this.events.setMaxListeners(s+1),new Promise((c,f)=>{this.events.once("register_error",o=>{this.resetMaxListeners(),f(o)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return f(new Error("HTTP connection is missing or invalid"));c()})})}this.url=t,this.registering=!0;try{if(!this.disableProviderPing){const s=I({id:1,jsonrpc:"2.0",method:"test",params:[]});await F(t,Object.assign(Object.assign({},H),{body:s}))}this.onOpen()}catch(s){const c=this.parseError(s);throw this.events.emit("register_error",c),this.onClose(),c}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(t){if(typeof t.data>"u")return;const s=typeof t.data=="string"?he(t.data):t.data;this.events.emit("payload",s)}onError(t,s){const c=this.parseError(s),f=c.message||c.toString(),o=Te(t,f);this.events.emit("payload",o)}parseError(t,s=this.url){return Ee(t,s,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>q&&this.events.setMaxListeners(q)}}export{Ve as H,Fe as I,$e as J,he as a,qe as b,ge as c,Je as d,Ce as e,Te as f,Ne as g,Le as h,He as i,W as j,Ae as k,_e as l,k as m,Ee as p,I as s}; +import{p as E,r as ae,i as J,q as ce}from"./index-0aC6Xlgc.js";const fe=r=>JSON.stringify(r,(t,s)=>typeof s=="bigint"?s.toString()+"n":s),ue=r=>{const t=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,s=r.replace(t,'$1"$2n"$3');return JSON.parse(s,(c,f)=>typeof f=="string"&&f.match(/^\d+n$/)?BigInt(f.substring(0,f.length-1)):f)};function he(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return ue(r)}catch{return r}}function I(r){return typeof r=="string"?r:fe(r)||""}const de="PARSE_ERROR",le="INVALID_REQUEST",pe="METHOD_NOT_FOUND",ye="INVALID_PARAMS",$="INTERNAL_ERROR",S="SERVER_ERROR",be=[-32700,-32600,-32601,-32602,-32603],R={[de]:{code:-32700,message:"Parse error"},[le]:{code:-32600,message:"Invalid Request"},[pe]:{code:-32601,message:"Method not found"},[ye]:{code:-32602,message:"Invalid params"},[$]:{code:-32603,message:"Internal error"},[S]:{code:-32e3,message:"Server error"}},V=S;function me(r){return be.includes(r)}function U(r){return Object.keys(R).includes(r)?R[r]:R[V]}function ve(r){const t=Object.values(R).find(s=>s.code===r);return t||R[V]}function Ee(r,t,s){return r.message.includes("getaddrinfo ENOTFOUND")||r.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${s} RPC url at ${t}`):r}var ge={},b={},M;function we(){if(M)return b;M=1,Object.defineProperty(b,"__esModule",{value:!0}),b.isBrowserCryptoAvailable=b.getSubtleCrypto=b.getBrowerCrypto=void 0;function r(){return(E===null||E===void 0?void 0:E.crypto)||(E===null||E===void 0?void 0:E.msCrypto)||{}}b.getBrowerCrypto=r;function t(){const c=r();return c.subtle||c.webkitSubtle}b.getSubtleCrypto=t;function s(){return!!r()&&!!t()}return b.isBrowserCryptoAvailable=s,b}var m={},j;function Re(){if(j)return m;j=1,Object.defineProperty(m,"__esModule",{value:!0}),m.isBrowser=m.isNode=m.isReactNative=void 0;function r(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}m.isReactNative=r;function t(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}m.isNode=t;function s(){return!r()&&!t()}return m.isBrowser=s,m}(function(r){Object.defineProperty(r,"__esModule",{value:!0});const t=ae;t.__exportStar(we(),r),t.__exportStar(Re(),r)})(ge);function k(r=3){const t=Date.now()*Math.pow(10,r),s=Math.floor(Math.random()*Math.pow(10,r));return t+s}function _e(r=6){return BigInt(k(r))}function Ae(r,t,s){return{id:s||k(),jsonrpc:"2.0",method:r,params:t}}function Ne(r,t){return{id:r,jsonrpc:"2.0",result:t}}function Te(r,t,s){return{id:r,jsonrpc:"2.0",error:Oe(t,s)}}function Oe(r,t){return typeof r>"u"?U($):(typeof r=="string"&&(r=Object.assign(Object.assign({},U(S)),{message:r})),typeof t<"u"&&(r.data=t),me(r.code)&&(r=ve(r.code)),r)}class G{}class Fe extends G{constructor(t){super()}}class Pe extends G{constructor(){super()}}class Be extends Pe{constructor(t){super()}}const Se="^https?:",De="^wss?:";function xe(r){const t=r.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function X(r,t){const s=xe(r);return typeof s>"u"?!1:new RegExp(t).test(s)}function N(r){return X(r,Se)}function He(r){return X(r,De)}function qe(r){return new RegExp("wss?://localhost(:d{2,5})?").test(r)}function z(r){return typeof r=="object"&&"id"in r&&"jsonrpc"in r&&r.jsonrpc==="2.0"}function Je(r){return z(r)&&"method"in r}function Ce(r){return z(r)&&(Le(r)||W(r))}function Le(r){return"result"in r}function W(r){return"error"in r}class $e extends Be{constructor(t){super(t),this.events=new J.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,s){this.events.on(t,s)}once(t,s){this.events.once(t,s)}off(t,s){this.events.off(t,s)}removeListener(t,s){this.events.removeListener(t,s)}async request(t,s){return this.requestStrict(Ae(t.method,t.params||[],t.id||_e().toString()),s)}async requestStrict(t,s){return new Promise(async(c,f)=>{if(!this.connection.connected)try{await this.open()}catch(o){f(o)}this.events.on(`${t.id}`,o=>{W(o)?f(o.error):c(o.result)});try{await this.connection.send(t,s)}catch(o){f(o)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),Ce(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}onClose(t){t&&t.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason?`(${t.reason})`:""}`)),this.events.emit("disconnect")}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),typeof t=="string"&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",t=>this.onPayload(t)),this.connection.on("close",t=>this.onClose(t)),this.connection.on("error",t=>this.events.emit("error",t)),this.connection.on("register_error",t=>this.onClose()),this.hasRegisteredEventListeners=!0)}}var B={exports:{}};(function(r,t){var s=typeof self<"u"?self:E,c=function(){function o(){this.fetch=!1,this.DOMException=s.DOMException}return o.prototype=s,new o}();(function(o){(function(l){var p={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function Q(e){return e&&DataView.prototype.isPrototypeOf(e)}if(p.arrayBuffer)var K=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Y=ArrayBuffer.isView||function(e){return e&&K.indexOf(Object.prototype.toString.call(e))>-1};function g(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function D(e){return typeof e!="string"&&(e=String(e)),e}function A(e){var n={next:function(){var i=e.shift();return{done:i===void 0,value:i}}};return p.iterable&&(n[Symbol.iterator]=function(){return n}),n}function u(e){this.map={},e instanceof u?e.forEach(function(n,i){this.append(i,n)},this):Array.isArray(e)?e.forEach(function(n){this.append(n[0],n[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(n){this.append(n,e[n])},this)}u.prototype.append=function(e,n){e=g(e),n=D(n);var i=this.map[e];this.map[e]=i?i+", "+n:n},u.prototype.delete=function(e){delete this.map[g(e)]},u.prototype.get=function(e){return e=g(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(g(e))},u.prototype.set=function(e,n){this.map[g(e)]=D(n)},u.prototype.forEach=function(e,n){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(n,this.map[i],i,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(n,i){e.push(i)}),A(e)},u.prototype.values=function(){var e=[];return this.forEach(function(n){e.push(n)}),A(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(n,i){e.push([i,n])}),A(e)},p.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function T(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function x(e){return new Promise(function(n,i){e.onload=function(){n(e.result)},e.onerror=function(){i(e.error)}})}function Z(e){var n=new FileReader,i=x(n);return n.readAsArrayBuffer(e),i}function ee(e){var n=new FileReader,i=x(n);return n.readAsText(e),i}function te(e){for(var n=new Uint8Array(e),i=new Array(n.length),d=0;d-1?n:e}function v(e,n){n=n||{};var i=n.body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!i&&e._bodyInit!=null&&(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",(n.headers||!this.headers)&&(this.headers=new u(n.headers)),this.method=ne(n.method||this.method||"GET"),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})};function se(e){var n=new FormData;return e.trim().split("&").forEach(function(i){if(i){var d=i.split("="),h=d.shift().replace(/\+/g," "),a=d.join("=").replace(/\+/g," ");n.append(decodeURIComponent(h),decodeURIComponent(a))}}),n}function ie(e){var n=new u,i=e.replace(/\r?\n[\t ]+/g," ");return i.split(/\r?\n/).forEach(function(d){var h=d.split(":"),a=h.shift().trim();if(a){var _=h.join(":").trim();n.append(a,_)}}),n}L.call(v.prototype);function y(e,n){n||(n={}),this.type="default",this.status=n.status===void 0?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"OK",this.headers=new u(n.headers),this.url=n.url||"",this._initBody(e)}L.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var oe=[301,302,303,307,308];y.redirect=function(e,n){if(oe.indexOf(n)===-1)throw new RangeError("Invalid status code");return new y(null,{status:n,headers:{location:e}})},l.DOMException=o.DOMException;try{new l.DOMException}catch{l.DOMException=function(n,i){this.message=n,this.name=i;var d=Error(n);this.stack=d.stack},l.DOMException.prototype=Object.create(Error.prototype),l.DOMException.prototype.constructor=l.DOMException}function O(e,n){return new Promise(function(i,d){var h=new v(e,n);if(h.signal&&h.signal.aborted)return d(new l.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function _(){a.abort()}a.onload=function(){var w={status:a.status,statusText:a.statusText,headers:ie(a.getAllResponseHeaders()||"")};w.url="responseURL"in a?a.responseURL:w.headers.get("X-Request-URL");var P="response"in a?a.response:a.responseText;i(new y(P,w))},a.onerror=function(){d(new TypeError("Network request failed"))},a.ontimeout=function(){d(new TypeError("Network request failed"))},a.onabort=function(){d(new l.DOMException("Aborted","AbortError"))},a.open(h.method,h.url,!0),h.credentials==="include"?a.withCredentials=!0:h.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&p.blob&&(a.responseType="blob"),h.headers.forEach(function(w,P){a.setRequestHeader(P,w)}),h.signal&&(h.signal.addEventListener("abort",_),a.onreadystatechange=function(){a.readyState===4&&h.signal.removeEventListener("abort",_)}),a.send(typeof h._bodyInit>"u"?null:h._bodyInit)})}return O.polyfill=!0,o.fetch||(o.fetch=O,o.Headers=u,o.Request=v,o.Response=y),l.Headers=u,l.Request=v,l.Response=y,l.fetch=O,Object.defineProperty(l,"__esModule",{value:!0}),l})({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var f=c;t=f.fetch,t.default=f.fetch,t.fetch=f.fetch,t.Headers=f.Headers,t.Request=f.Request,t.Response=f.Response,r.exports=t})(B,B.exports);var Ie=B.exports;const F=ce(Ie),Ue={Accept:"application/json","Content-Type":"application/json"},Me="POST",H={headers:Ue,method:Me},q=10;class Ve{constructor(t,s=!1){if(this.url=t,this.disableProviderPing=s,this.events=new J.EventEmitter,this.isAvailable=!1,this.registering=!1,!N(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t,this.disableProviderPing=s}get connected(){return this.isAvailable}get connecting(){return this.registering}on(t,s){this.events.on(t,s)}once(t,s){this.events.once(t,s)}off(t,s){this.events.off(t,s)}removeListener(t,s){this.events.removeListener(t,s)}async open(t=this.url){await this.register(t)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(t,s){this.isAvailable||await this.register();try{const c=I(t),o=await(await F(this.url,Object.assign(Object.assign({},H),{body:c}))).json();this.onPayload({data:o})}catch(c){this.onError(t.id,c)}}async register(t=this.url){if(!N(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){const s=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=s||this.events.listenerCount("open")>=s)&&this.events.setMaxListeners(s+1),new Promise((c,f)=>{this.events.once("register_error",o=>{this.resetMaxListeners(),f(o)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return f(new Error("HTTP connection is missing or invalid"));c()})})}this.url=t,this.registering=!0;try{if(!this.disableProviderPing){const s=I({id:1,jsonrpc:"2.0",method:"test",params:[]});await F(t,Object.assign(Object.assign({},H),{body:s}))}this.onOpen()}catch(s){const c=this.parseError(s);throw this.events.emit("register_error",c),this.onClose(),c}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(t){if(typeof t.data>"u")return;const s=typeof t.data=="string"?he(t.data):t.data;this.events.emit("payload",s)}onError(t,s){const c=this.parseError(s),f=c.message||c.toString(),o=Te(t,f);this.events.emit("payload",o)}parseError(t,s=this.url){return Ee(t,s,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>q&&this.events.setMaxListeners(q)}}export{Ve as H,Fe as I,$e as J,he as a,qe as b,ge as c,Je as d,Ce as e,Te as f,Ne as g,Le as h,He as i,W as j,Ae as k,_e as l,k as m,Ee as p,I as s}; diff --git a/assets/index-Gnz09uoc.js b/assets/index-0aC6Xlgc.js similarity index 57% rename from assets/index-Gnz09uoc.js rename to assets/index-0aC6Xlgc.js index 57e4bd2..6208079 100644 --- a/assets/index-Gnz09uoc.js +++ b/assets/index-0aC6Xlgc.js @@ -1,4 +1,4 @@ -var xz=Object.defineProperty;var kz=(u,e,t)=>e in u?xz(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t;var Z=(u,e,t)=>(kz(u,typeof e!="symbol"?e+"":e,t),t),jd=(u,e,t)=>{if(!e.has(u))throw TypeError("Cannot "+t)};var x=(u,e,t)=>(jd(u,e,"read from private field"),t?t.call(u):e.get(u)),X=(u,e,t)=>{if(e.has(u))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(u):e.set(u,t)},I=(u,e,t,n)=>(jd(u,e,"write to private field"),n?n.call(u,t):e.set(u,t),t);var Cf=(u,e,t,n)=>({set _(r){I(u,e,r,t)},get _(){return x(u,e,n)}}),A0=(u,e,t)=>(jd(u,e,"access private method"),t);function _z(u,e){for(var t=0;tn[r]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=t(r);fetch(r.href,i)}})();var x0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kc(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function V9(u){if(u.__esModule)return u;var e=u.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(u).forEach(function(n){var r=Object.getOwnPropertyDescriptor(u,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return u[n]}})}),t}var xx={exports:{}},K9={},kx={exports:{}},H0={};/** +var Oz=Object.defineProperty;var Iz=(u,e,t)=>e in u?Oz(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t;var Z=(u,e,t)=>(Iz(u,typeof e!="symbol"?e+"":e,t),t),jd=(u,e,t)=>{if(!e.has(u))throw TypeError("Cannot "+t)};var x=(u,e,t)=>(jd(u,e,"read from private field"),t?t.call(u):e.get(u)),X=(u,e,t)=>{if(e.has(u))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(u):e.set(u,t)},I=(u,e,t,n)=>(jd(u,e,"write to private field"),n?n.call(u,t):e.set(u,t),t);var b3=(u,e,t,n)=>({set _(r){I(u,e,r,t)},get _(){return x(u,e,n)}}),A0=(u,e,t)=>(jd(u,e,"access private method"),t);function Nz(u,e){for(var t=0;tn[r]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=t(r);fetch(r.href,i)}})();var x0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _1(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function V2(u){if(u.__esModule)return u;var e=u.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(u).forEach(function(n){var r=Object.getOwnPropertyDescriptor(u,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return u[n]}})}),t}var Sx={exports:{}},K2={},Tx={exports:{}},H0={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var xz=Object.defineProperty;var kz=(u,e,t)=>e in u?xz(u,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var _c=Symbol.for("react.element"),Sz=Symbol.for("react.portal"),Tz=Symbol.for("react.fragment"),Pz=Symbol.for("react.strict_mode"),Oz=Symbol.for("react.profiler"),Iz=Symbol.for("react.provider"),Nz=Symbol.for("react.context"),Rz=Symbol.for("react.forward_ref"),Mz=Symbol.for("react.suspense"),jz=Symbol.for("react.memo"),zz=Symbol.for("react.lazy"),LA=Symbol.iterator;function Lz(u){return u===null||typeof u!="object"?null:(u=LA&&u[LA]||u["@@iterator"],typeof u=="function"?u:null)}var _x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sx=Object.assign,Tx={};function R3(u,e,t){this.props=u,this.context=e,this.refs=Tx,this.updater=t||_x}R3.prototype.isReactComponent={};R3.prototype.setState=function(u,e){if(typeof u!="object"&&typeof u!="function"&&u!=null)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,u,e,"setState")};R3.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function Px(){}Px.prototype=R3.prototype;function wm(u,e,t){this.props=u,this.context=e,this.refs=Tx,this.updater=t||_x}var xm=wm.prototype=new Px;xm.constructor=wm;Sx(xm,R3.prototype);xm.isPureReactComponent=!0;var $A=Array.isArray,Ox=Object.prototype.hasOwnProperty,km={current:null},Ix={key:!0,ref:!0,__self:!0,__source:!0};function Nx(u,e,t){var n,r={},i=null,a=null;if(e!=null)for(n in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)Ox.call(e,n)&&!Ix.hasOwnProperty(n)&&(r[n]=e[n]);var o=arguments.length-2;if(o===1)r.children=t;else if(1e in u?xz(u,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Hz=w,Gz=Symbol.for("react.element"),Vz=Symbol.for("react.fragment"),Kz=Object.prototype.hasOwnProperty,Qz=Hz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Jz={key:!0,ref:!0,__self:!0,__source:!0};function Rx(u,e,t){var n,r={},i=null,a=null;t!==void 0&&(i=""+t),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(n in e)Kz.call(e,n)&&!Jz.hasOwnProperty(n)&&(r[n]=e[n]);if(u&&u.defaultProps)for(n in e=u.defaultProps,e)r[n]===void 0&&(r[n]=e[n]);return{$$typeof:Gz,type:u,key:i,ref:a,props:r,_owner:Qz.current}}K9.Fragment=Vz;K9.jsx=Rx;K9.jsxs=Rx;xx.exports=K9;var c0=xx.exports,R8={},Mx={exports:{}},Lt={},jx={exports:{}},zx={};/** + */var Yz=w,Zz=Symbol.for("react.element"),Xz=Symbol.for("react.fragment"),uL=Object.prototype.hasOwnProperty,eL=Yz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tL={key:!0,ref:!0,__self:!0,__source:!0};function zx(u,e,t){var n,r={},i=null,a=null;t!==void 0&&(i=""+t),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(n in e)uL.call(e,n)&&!tL.hasOwnProperty(n)&&(r[n]=e[n]);if(u&&u.defaultProps)for(n in e=u.defaultProps,e)r[n]===void 0&&(r[n]=e[n]);return{$$typeof:Zz,type:u,key:i,ref:a,props:r,_owner:eL.current}}K2.Fragment=Xz;K2.jsx=zx;K2.jsxs=zx;Sx.exports=K2;var f0=Sx.exports,Rp={},Lx={exports:{}},Lt={},$x={exports:{}},Ux={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var xz=Object.defineProperty;var kz=(u,e,t)=>e in u?xz(u,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(u){function e(G,H){var L=G.length;G.push(H);u:for(;0>>1,s0=G[n0];if(0>>1;n0r(v0,L))_0r(O0,v0)?(G[n0]=O0,G[_0]=L,n0=_0):(G[n0]=v0,G[K]=L,n0=K);else if(_0r(O0,L))G[n0]=O0,G[_0]=L,n0=_0;else break u}}return H}function r(G,H){var L=G.sortIndex-H.sortIndex;return L!==0?L:G.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;u.unstable_now=function(){return i.now()}}else{var a=Date,o=a.now();u.unstable_now=function(){return a.now()-o}}var s=[],f=[],l=1,c=null,E=3,d=!1,p=!1,h=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(G){for(var H=t(f);H!==null;){if(H.callback===null)n(f);else if(H.startTime<=G)n(f),H.sortIndex=H.expirationTime,e(s,H);else break;H=t(f)}}function y(G){if(h=!1,A(G),!p)if(t(s)!==null)p=!0,R(B);else{var H=t(f);H!==null&&V(y,H.startTime-G)}}function B(G,H){p=!1,h&&(h=!1,g(D),D=-1),d=!0;var L=E;try{for(A(H),c=t(s);c!==null&&(!(c.expirationTime>H)||G&&!$());){var n0=c.callback;if(typeof n0=="function"){c.callback=null,E=c.priorityLevel;var s0=n0(c.expirationTime<=H);H=u.unstable_now(),typeof s0=="function"?c.callback=s0:c===t(s)&&n(s),A(H)}else n(s);c=t(s)}if(c!==null)var a0=!0;else{var K=t(f);K!==null&&V(y,K.startTime-H),a0=!1}return a0}finally{c=null,E=L,d=!1}}var v=!1,C=null,D=-1,T=5,_=-1;function $(){return!(u.unstable_now()-_G||125n0?(G.sortIndex=L,e(f,G),t(s)===null&&G===t(f)&&(h?(g(D),D=-1):h=!0,V(y,L-n0))):(G.sortIndex=s0,e(s,G),p||d||(p=!0,R(B))),G},u.unstable_shouldYield=$,u.unstable_wrapCallback=function(G){var H=E;return function(){var L=E;E=H;try{return G.apply(this,arguments)}finally{E=L}}}})(zx);jx.exports=zx;var Yz=jx.exports;/** + */(function(u){function e(G,H){var L=G.length;G.push(H);u:for(;0>>1,s0=G[n0];if(0>>1;n0r(v0,L))_0r(O0,v0)?(G[n0]=O0,G[_0]=L,n0=_0):(G[n0]=v0,G[K]=L,n0=K);else if(_0r(O0,L))G[n0]=O0,G[_0]=L,n0=_0;else break u}}return H}function r(G,H){var L=G.sortIndex-H.sortIndex;return L!==0?L:G.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;u.unstable_now=function(){return i.now()}}else{var a=Date,o=a.now();u.unstable_now=function(){return a.now()-o}}var s=[],f=[],l=1,c=null,E=3,d=!1,p=!1,h=!1,g=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(G){for(var H=t(f);H!==null;){if(H.callback===null)n(f);else if(H.startTime<=G)n(f),H.sortIndex=H.expirationTime,e(s,H);else break;H=t(f)}}function y(G){if(h=!1,A(G),!p)if(t(s)!==null)p=!0,R(B);else{var H=t(f);H!==null&&V(y,H.startTime-G)}}function B(G,H){p=!1,h&&(h=!1,b(D),D=-1),d=!0;var L=E;try{for(A(H),c=t(s);c!==null&&(!(c.expirationTime>H)||G&&!$());){var n0=c.callback;if(typeof n0=="function"){c.callback=null,E=c.priorityLevel;var s0=n0(c.expirationTime<=H);H=u.unstable_now(),typeof s0=="function"?c.callback=s0:c===t(s)&&n(s),A(H)}else n(s);c=t(s)}if(c!==null)var a0=!0;else{var K=t(f);K!==null&&V(y,K.startTime-H),a0=!1}return a0}finally{c=null,E=L,d=!1}}var v=!1,C=null,D=-1,T=5,_=-1;function $(){return!(u.unstable_now()-_G||125n0?(G.sortIndex=L,e(f,G),t(s)===null&&G===t(f)&&(h?(b(D),D=-1):h=!0,V(y,L-n0))):(G.sortIndex=s0,e(s,G),p||d||(p=!0,R(B))),G},u.unstable_shouldYield=$,u.unstable_wrapCallback=function(G){var H=E;return function(){var L=E;E=H;try{return G.apply(this,arguments)}finally{E=L}}}})(Ux);$x.exports=Ux;var nL=$x.exports;/** * @license React * react-dom.production.min.js * @@ -30,18 +30,18 @@ var xz=Object.defineProperty;var kz=(u,e,t)=>e in u?xz(u,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Lx=w,zt=Yz;function d0(u){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+u,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M8=Object.prototype.hasOwnProperty,Zz=/^[: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]*$/,WA={},qA={};function Xz(u){return M8.call(qA,u)?!0:M8.call(WA,u)?!1:Zz.test(u)?qA[u]=!0:(WA[u]=!0,!1)}function uL(u,e,t,n){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:t!==null?!t.acceptsBooleans:(u=u.toLowerCase().slice(0,5),u!=="data-"&&u!=="aria-");default:return!1}}function eL(u,e,t,n){if(e===null||typeof e>"u"||uL(u,e,t,n))return!0;if(n)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Ze(u,e,t,n,r,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=t,this.propertyName=u,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){be[u]=new Ze(u,0,!1,u,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var e=u[0];be[e]=new Ze(e,1,!1,u[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(u){be[u]=new Ze(u,2,!1,u.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){be[u]=new Ze(u,2,!1,u,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(u){be[u]=new Ze(u,3,!1,u.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(u){be[u]=new Ze(u,3,!0,u,null,!1,!1)});["capture","download"].forEach(function(u){be[u]=new Ze(u,4,!1,u,null,!1,!1)});["cols","rows","size","span"].forEach(function(u){be[u]=new Ze(u,6,!1,u,null,!1,!1)});["rowSpan","start"].forEach(function(u){be[u]=new Ze(u,5,!1,u.toLowerCase(),null,!1,!1)});var Sm=/[\-:]([a-z])/g;function Tm(u){return u[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(u){var e=u.replace(Sm,Tm);be[e]=new Ze(e,1,!1,u,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var e=u.replace(Sm,Tm);be[e]=new Ze(e,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(u){var e=u.replace(Sm,Tm);be[e]=new Ze(e,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(u){be[u]=new Ze(u,1,!1,u.toLowerCase(),null,!1,!1)});be.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(u){be[u]=new Ze(u,1,!1,u.toLowerCase(),null,!0,!0)});function Pm(u,e,t,n){var r=be.hasOwnProperty(e)?be[e]:null;(r!==null?r.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mp=Object.prototype.hasOwnProperty,rL=/^[: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]*$/,WA={},qA={};function iL(u){return Mp.call(qA,u)?!0:Mp.call(WA,u)?!1:rL.test(u)?qA[u]=!0:(WA[u]=!0,!1)}function aL(u,e,t,n){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:t!==null?!t.acceptsBooleans:(u=u.toLowerCase().slice(0,5),u!=="data-"&&u!=="aria-");default:return!1}}function oL(u,e,t,n){if(e===null||typeof e>"u"||aL(u,e,t,n))return!0;if(n)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Ze(u,e,t,n,r,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=t,this.propertyName=u,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){ge[u]=new Ze(u,0,!1,u,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var e=u[0];ge[e]=new Ze(e,1,!1,u[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(u){ge[u]=new Ze(u,2,!1,u.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){ge[u]=new Ze(u,2,!1,u,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(u){ge[u]=new Ze(u,3,!1,u.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(u){ge[u]=new Ze(u,3,!0,u,null,!1,!1)});["capture","download"].forEach(function(u){ge[u]=new Ze(u,4,!1,u,null,!1,!1)});["cols","rows","size","span"].forEach(function(u){ge[u]=new Ze(u,6,!1,u,null,!1,!1)});["rowSpan","start"].forEach(function(u){ge[u]=new Ze(u,5,!1,u.toLowerCase(),null,!1,!1)});var S7=/[\-:]([a-z])/g;function T7(u){return u[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(u){var e=u.replace(S7,T7);ge[e]=new Ze(e,1,!1,u,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var e=u.replace(S7,T7);ge[e]=new Ze(e,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(u){var e=u.replace(S7,T7);ge[e]=new Ze(e,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(u){ge[u]=new Ze(u,1,!1,u.toLowerCase(),null,!1,!1)});ge.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(u){ge[u]=new Ze(u,1,!1,u.toLowerCase(),null,!0,!0)});function P7(u,e,t,n){var r=ge.hasOwnProperty(e)?ge[e]:null;(r!==null?r.type!==0:n||!(2o||r[a]!==i[o]){var s=` -`+r[a].replace(" at new "," at ");return u.displayName&&s.includes("")&&(s=s.replace("",u.displayName)),s}while(1<=a&&0<=o);break}}}finally{$d=!1,Error.prepareStackTrace=t}return(u=u?u.displayName||u.name:"")?zf(u):""}function tL(u){switch(u.tag){case 5:return zf(u.type);case 16:return zf("Lazy");case 13:return zf("Suspense");case 19:return zf("SuspenseList");case 0:case 2:case 15:return u=Ud(u.type,!1),u;case 11:return u=Ud(u.type.render,!1),u;case 1:return u=Ud(u.type,!0),u;default:return""}}function $8(u){if(u==null)return null;if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case xs:return"Fragment";case ws:return"Portal";case j8:return"Profiler";case Om:return"StrictMode";case z8:return"Suspense";case L8:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case Wx:return(u.displayName||"Context")+".Consumer";case Ux:return(u._context.displayName||"Context")+".Provider";case Im:var e=u.render;return u=u.displayName,u||(u=e.displayName||e.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case Nm:return e=u.displayName||null,e!==null?e:$8(u.type)||"Memo";case bi:e=u._payload,u=u._init;try{return $8(u(e))}catch{}}return null}function nL(u){var e=u.type;switch(u.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return u=e.render,u=u.displayName||u.name||"",e.displayName||(u!==""?"ForwardRef("+u+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $8(e);case 8:return e===Om?"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 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ra(u){switch(typeof u){case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function Hx(u){var e=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function rL(u){var e=Hx(u)?"checked":"value",t=Object.getOwnPropertyDescriptor(u.constructor.prototype,e),n=""+u[e];if(!u.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var r=t.get,i=t.set;return Object.defineProperty(u,e,{configurable:!0,get:function(){return r.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(u,e,{enumerable:t.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){u._valueTracker=null,delete u[e]}}}}function k1(u){u._valueTracker||(u._valueTracker=rL(u))}function Gx(u){if(!u)return!1;var e=u._valueTracker;if(!e)return!0;var t=e.getValue(),n="";return u&&(n=Hx(u)?u.checked?"true":"false":u.value),u=n,u!==t?(e.setValue(u),!0):!1}function o2(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}function U8(u,e){var t=e.checked;return Tu({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??u._wrapperState.initialChecked})}function GA(u,e){var t=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;t=ra(e.value!=null?e.value:t),u._wrapperState={initialChecked:n,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Vx(u,e){e=e.checked,e!=null&&Pm(u,"checked",e,!1)}function W8(u,e){Vx(u,e);var t=ra(e.value),n=e.type;if(t!=null)n==="number"?(t===0&&u.value===""||u.value!=t)&&(u.value=""+t):u.value!==""+t&&(u.value=""+t);else if(n==="submit"||n==="reset"){u.removeAttribute("value");return}e.hasOwnProperty("value")?q8(u,e.type,t):e.hasOwnProperty("defaultValue")&&q8(u,e.type,ra(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(u.defaultChecked=!!e.defaultChecked)}function VA(u,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+u._wrapperState.initialValue,t||e===u.value||(u.value=e),u.defaultValue=e}t=u.name,t!==""&&(u.name=""),u.defaultChecked=!!u._wrapperState.initialChecked,t!==""&&(u.name=t)}function q8(u,e,t){(e!=="number"||o2(u.ownerDocument)!==u)&&(t==null?u.defaultValue=""+u._wrapperState.initialValue:u.defaultValue!==""+t&&(u.defaultValue=""+t))}var Lf=Array.isArray;function Ks(u,e,t,n){if(u=u.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=_1.firstChild;u.firstChild;)u.removeChild(u.firstChild);for(;e.firstChild;)u.appendChild(e.firstChild)}});function yl(u,e){if(e){var t=u.firstChild;if(t&&t===u.lastChild&&t.nodeType===3){t.nodeValue=e;return}}u.textContent=e}var tl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iL=["Webkit","ms","Moz","O"];Object.keys(tl).forEach(function(u){iL.forEach(function(e){e=e+u.charAt(0).toUpperCase()+u.substring(1),tl[e]=tl[u]})});function Yx(u,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||tl.hasOwnProperty(u)&&tl[u]?(""+e).trim():e+"px"}function Zx(u,e){u=u.style;for(var t in e)if(e.hasOwnProperty(t)){var n=t.indexOf("--")===0,r=Yx(t,e[t],n);t==="float"&&(t="cssFloat"),n?u.setProperty(t,r):u[t]=r}}var aL=Tu({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function V8(u,e){if(e){if(aL[u]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(d0(137,u));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(d0(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(d0(61))}if(e.style!=null&&typeof e.style!="object")throw Error(d0(62))}}function K8(u,e){if(u.indexOf("-")===-1)return typeof e.is=="string";switch(u){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}}var Q8=null;function Rm(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var J8=null,Qs=null,Js=null;function JA(u){if(u=Pc(u)){if(typeof J8!="function")throw Error(d0(280));var e=u.stateNode;e&&(e=X9(e),J8(u.stateNode,u.type,e))}}function Xx(u){Qs?Js?Js.push(u):Js=[u]:Qs=u}function uk(){if(Qs){var u=Qs,e=Js;if(Js=Qs=null,JA(u),e)for(u=0;u>>=0,u===0?32:31-(mL(u)/gL|0)|0}var S1=64,T1=4194304;function $f(u){switch(u&-u){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: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 u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function c2(u,e){var t=u.pendingLanes;if(t===0)return 0;var n=0,r=u.suspendedLanes,i=u.pingedLanes,a=t&268435455;if(a!==0){var o=a&~r;o!==0?n=$f(o):(i&=a,i!==0&&(n=$f(i)))}else a=t&~r,a!==0?n=$f(a):i!==0&&(n=$f(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&r)&&(r=n&-n,i=e&-e,r>=i||r===16&&(i&4194240)!==0))return e;if(n&4&&(n|=t&16),e=u.entangledLanes,e!==0)for(u=u.entanglements,e&=n;0t;t++)e.push(u);return e}function Sc(u,e,t){u.pendingLanes|=e,e!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,e=31-On(e),u[e]=t}function vL(u,e){var t=u.pendingLanes&~e;u.pendingLanes=e,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=e,u.mutableReadLanes&=e,u.entangledLanes&=e,e=u.entanglements;var n=u.eventTimes;for(u=u.expirationTimes;0=rl),iy=" ",ay=!1;function Ak(u,e){switch(u){case"keyup":return JL.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yk(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var ks=!1;function ZL(u,e){switch(u){case"compositionend":return yk(e);case"keypress":return e.which!==32?null:(ay=!0,iy);case"textInput":return u=e.data,u===iy&&ay?null:u;default:return null}}function XL(u,e){if(ks)return u==="compositionend"||!qm&&Ak(u,e)?(u=gk(),x6=$m=Wi=null,ks=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-u};u=n}u:{for(;t;){if(t.nextSibling){t=t.nextSibling;break u}t=t.parentNode}t=void 0}t=ly(t)}}function Dk(u,e){return u&&e?u===e?!0:u&&u.nodeType===3?!1:e&&e.nodeType===3?Dk(u,e.parentNode):"contains"in u?u.contains(e):u.compareDocumentPosition?!!(u.compareDocumentPosition(e)&16):!1:!1}function wk(){for(var u=window,e=o2();e instanceof u.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)u=e.contentWindow;else break;e=o2(u.document)}return e}function Hm(u){var e=u&&u.nodeName&&u.nodeName.toLowerCase();return e&&(e==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||e==="textarea"||u.contentEditable==="true")}function s$(u){var e=wk(),t=u.focusedElem,n=u.selectionRange;if(e!==t&&t&&t.ownerDocument&&Dk(t.ownerDocument.documentElement,t)){if(n!==null&&Hm(t)){if(e=n.start,u=n.end,u===void 0&&(u=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(u,t.value.length);else if(u=(e=t.ownerDocument||document)&&e.defaultView||window,u.getSelection){u=u.getSelection();var r=t.textContent.length,i=Math.min(n.start,r);n=n.end===void 0?i:Math.min(n.end,r),!u.extend&&i>n&&(r=n,n=i,i=r),r=cy(t,i);var a=cy(t,n);r&&a&&(u.rangeCount!==1||u.anchorNode!==r.node||u.anchorOffset!==r.offset||u.focusNode!==a.node||u.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),u.removeAllRanges(),i>n?(u.addRange(e),u.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),u.addRange(e)))}}for(e=[],u=t;u=u.parentNode;)u.nodeType===1&&e.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,_s=null,th=null,al=null,nh=!1;function Ey(u,e,t){var n=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;nh||_s==null||_s!==o2(n)||(n=_s,"selectionStart"in n&&Hm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),al&&xl(al,n)||(al=n,n=p2(th,"onSelect"),0Ps||(u.current=fh[Ps],fh[Ps]=null,Ps--)}function hu(u,e){Ps++,fh[Ps]=u.current,u.current=e}var ia={},Ie=ha(ia),st=ha(!1),yo=ia;function Q4(u,e){var t=u.type.contextTypes;if(!t)return ia;var n=u.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in t)r[i]=e[i];return n&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=e,u.__reactInternalMemoizedMaskedChildContext=r),r}function ft(u){return u=u.childContextTypes,u!=null}function C2(){gu(st),gu(Ie)}function by(u,e,t){if(Ie.current!==ia)throw Error(d0(168));hu(Ie,e),hu(st,t)}function Nk(u,e,t){var n=u.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return t;n=n.getChildContext();for(var r in n)if(!(r in e))throw Error(d0(108,nL(u)||"Unknown",r));return Tu({},t,n)}function m2(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||ia,yo=Ie.current,hu(Ie,u),hu(st,st.current),!0}function Ay(u,e,t){var n=u.stateNode;if(!n)throw Error(d0(169));t?(u=Nk(u,e,yo),n.__reactInternalMemoizedMergedChildContext=u,gu(st),gu(Ie),hu(Ie,u)):gu(st),hu(st,t)}var Fr=null,uE=!1,tp=!1;function Rk(u){Fr===null?Fr=[u]:Fr.push(u)}function A$(u){uE=!0,Rk(u)}function Ca(){if(!tp&&Fr!==null){tp=!0;var u=0,e=iu;try{var t=Fr;for(iu=1;u>=a,r-=a,Lr=1<<32-On(e)+r|t<D?(T=C,C=null):T=C.sibling;var _=E(g,C,A[D],y);if(_===null){C===null&&(C=T);break}u&&C&&_.alternate===null&&e(g,C),m=i(_,m,D),v===null?B=_:v.sibling=_,v=_,C=T}if(D===A.length)return t(g,C),Au&&wa(g,D),B;if(C===null){for(;DD?(T=C,C=null):T=C.sibling;var $=E(g,C,_.value,y);if($===null){C===null&&(C=T);break}u&&C&&$.alternate===null&&e(g,C),m=i($,m,D),v===null?B=$:v.sibling=$,v=$,C=T}if(_.done)return t(g,C),Au&&wa(g,D),B;if(C===null){for(;!_.done;D++,_=A.next())_=c(g,_.value,y),_!==null&&(m=i(_,m,D),v===null?B=_:v.sibling=_,v=_);return Au&&wa(g,D),B}for(C=n(g,C);!_.done;D++,_=A.next())_=d(C,g,D,_.value,y),_!==null&&(u&&_.alternate!==null&&C.delete(_.key===null?D:_.key),m=i(_,m,D),v===null?B=_:v.sibling=_,v=_);return u&&C.forEach(function(u0){return e(g,u0)}),Au&&wa(g,D),B}function b(g,m,A,y){if(typeof A=="object"&&A!==null&&A.type===xs&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case x1:u:{for(var B=A.key,v=m;v!==null;){if(v.key===B){if(B=A.type,B===xs){if(v.tag===7){t(g,v.sibling),m=r(v,A.props.children),m.return=g,g=m;break u}}else if(v.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===bi&&xy(B)===v.type){t(g,v.sibling),m=r(v,A.props),m.ref=vf(g,v,A),m.return=g,g=m;break u}t(g,v);break}else e(g,v);v=v.sibling}A.type===xs?(m=co(A.props.children,g.mode,y,A.key),m.return=g,g=m):(y=N6(A.type,A.key,A.props,null,g.mode,y),y.ref=vf(g,m,A),y.return=g,g=y)}return a(g);case ws:u:{for(v=A.key;m!==null;){if(m.key===v)if(m.tag===4&&m.stateNode.containerInfo===A.containerInfo&&m.stateNode.implementation===A.implementation){t(g,m.sibling),m=r(m,A.children||[]),m.return=g,g=m;break u}else{t(g,m);break}else e(g,m);m=m.sibling}m=lp(A,g.mode,y),m.return=g,g=m}return a(g);case bi:return v=A._init,b(g,m,v(A._payload),y)}if(Lf(A))return p(g,m,A,y);if(mf(A))return h(g,m,A,y);j1(g,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,m!==null&&m.tag===6?(t(g,m.sibling),m=r(m,A),m.return=g,g=m):(t(g,m),m=fp(A,g.mode,y),m.return=g,g=m),a(g)):t(g,m)}return b}var Y4=qk(!0),Hk=qk(!1),Oc={},lr=ha(Oc),Tl=ha(Oc),Pl=ha(Oc);function Ma(u){if(u===Oc)throw Error(d0(174));return u}function u7(u,e){switch(hu(Pl,e),hu(Tl,u),hu(lr,Oc),u=e.nodeType,u){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:G8(null,"");break;default:u=u===8?e.parentNode:e,e=u.namespaceURI||null,u=u.tagName,e=G8(e,u)}gu(lr),hu(lr,e)}function Z4(){gu(lr),gu(Tl),gu(Pl)}function Gk(u){Ma(Pl.current);var e=Ma(lr.current),t=G8(e,u.type);e!==t&&(hu(Tl,u),hu(lr,t))}function e7(u){Tl.current===u&&(gu(lr),gu(Tl))}var Bu=ha(0);function B2(u){for(var e=u;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===u)break;for(;e.sibling===null;){if(e.return===null||e.return===u)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var np=[];function t7(){for(var u=0;ut?t:4,u(!0);var n=rp.transition;rp.transition={};try{u(!1),e()}finally{iu=t,rp.transition=n}}function s_(){return ln().memoizedState}function F$(u,e,t){var n=Xi(u);if(t={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null},f_(u))l_(e,t);else if(t=Lk(u,e,t,n),t!==null){var r=qe();In(t,u,n,r),c_(t,e,n)}}function D$(u,e,t){var n=Xi(u),r={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null};if(f_(u))l_(e,r);else{var i=u.alternate;if(u.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,o=i(a,t);if(r.hasEagerState=!0,r.eagerState=o,Mn(o,a)){var s=e.interleaved;s===null?(r.next=r,Zm(e)):(r.next=s.next,s.next=r),e.interleaved=r;return}}catch{}finally{}t=Lk(u,e,r,n),t!==null&&(r=qe(),In(t,u,n,r),c_(t,e,n))}}function f_(u){var e=u.alternate;return u===_u||e!==null&&e===_u}function l_(u,e){ol=F2=!0;var t=u.pending;t===null?e.next=e:(e.next=t.next,t.next=e),u.pending=e}function c_(u,e,t){if(t&4194240){var n=e.lanes;n&=u.pendingLanes,t|=n,e.lanes=t,jm(u,t)}}var D2={readContext:fn,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},w$={readContext:fn,useCallback:function(u,e){return Vn().memoizedState=[u,e===void 0?null:e],u},useContext:fn,useEffect:_y,useImperativeHandle:function(u,e,t){return t=t!=null?t.concat([u]):null,T6(4194308,4,n_.bind(null,e,u),t)},useLayoutEffect:function(u,e){return T6(4194308,4,u,e)},useInsertionEffect:function(u,e){return T6(4,2,u,e)},useMemo:function(u,e){var t=Vn();return e=e===void 0?null:e,u=u(),t.memoizedState=[u,e],u},useReducer:function(u,e,t){var n=Vn();return e=t!==void 0?t(e):e,n.memoizedState=n.baseState=e,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:e},n.queue=u,u=u.dispatch=F$.bind(null,_u,u),[n.memoizedState,u]},useRef:function(u){var e=Vn();return u={current:u},e.memoizedState=u},useState:ky,useDebugValue:o7,useDeferredValue:function(u){return Vn().memoizedState=u},useTransition:function(){var u=ky(!1),e=u[0];return u=B$.bind(null,u[1]),Vn().memoizedState=u,[e,u]},useMutableSource:function(){},useSyncExternalStore:function(u,e,t){var n=_u,r=Vn();if(Au){if(t===void 0)throw Error(d0(407));t=t()}else{if(t=e(),se===null)throw Error(d0(349));Bo&30||Qk(n,e,t)}r.memoizedState=t;var i={value:t,getSnapshot:e};return r.queue=i,_y(Yk.bind(null,n,i,u),[u]),n.flags|=2048,Nl(9,Jk.bind(null,n,i,t,e),void 0,null),t},useId:function(){var u=Vn(),e=se.identifierPrefix;if(Au){var t=$r,n=Lr;t=(n&~(1<<32-On(n)-1)).toString(32)+t,e=":"+e+"R"+t,t=Ol++,0")&&(s=s.replace("",u.displayName)),s}while(1<=a&&0<=o);break}}}finally{$d=!1,Error.prepareStackTrace=t}return(u=u?u.displayName||u.name:"")?$3(u):""}function sL(u){switch(u.tag){case 5:return $3(u.type);case 16:return $3("Lazy");case 13:return $3("Suspense");case 19:return $3("SuspenseList");case 0:case 2:case 15:return u=Ud(u.type,!1),u;case 11:return u=Ud(u.type.render,!1),u;case 1:return u=Ud(u.type,!0),u;default:return""}}function $p(u){if(u==null)return null;if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case xs:return"Fragment";case ws:return"Portal";case jp:return"Profiler";case O7:return"StrictMode";case zp:return"Suspense";case Lp:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case Gx:return(u.displayName||"Context")+".Consumer";case Hx:return(u._context.displayName||"Context")+".Provider";case I7:var e=u.render;return u=u.displayName,u||(u=e.displayName||e.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case N7:return e=u.displayName||null,e!==null?e:$p(u.type)||"Memo";case gi:e=u._payload,u=u._init;try{return $p(u(e))}catch{}}return null}function fL(u){var e=u.type;switch(u.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return u=e.render,u=u.displayName||u.name||"",e.displayName||(u!==""?"ForwardRef("+u+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $p(e);case 8:return e===O7?"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 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ra(u){switch(typeof u){case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function Kx(u){var e=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function lL(u){var e=Kx(u)?"checked":"value",t=Object.getOwnPropertyDescriptor(u.constructor.prototype,e),n=""+u[e];if(!u.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var r=t.get,i=t.set;return Object.defineProperty(u,e,{configurable:!0,get:function(){return r.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(u,e,{enumerable:t.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){u._valueTracker=null,delete u[e]}}}}function kc(u){u._valueTracker||(u._valueTracker=lL(u))}function Qx(u){if(!u)return!1;var e=u._valueTracker;if(!e)return!0;var t=e.getValue(),n="";return u&&(n=Kx(u)?u.checked?"true":"false":u.value),u=n,u!==t?(e.setValue(u),!0):!1}function o5(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}function Up(u,e){var t=e.checked;return Tu({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??u._wrapperState.initialChecked})}function GA(u,e){var t=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;t=ra(e.value!=null?e.value:t),u._wrapperState={initialChecked:n,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Jx(u,e){e=e.checked,e!=null&&P7(u,"checked",e,!1)}function Wp(u,e){Jx(u,e);var t=ra(e.value),n=e.type;if(t!=null)n==="number"?(t===0&&u.value===""||u.value!=t)&&(u.value=""+t):u.value!==""+t&&(u.value=""+t);else if(n==="submit"||n==="reset"){u.removeAttribute("value");return}e.hasOwnProperty("value")?qp(u,e.type,t):e.hasOwnProperty("defaultValue")&&qp(u,e.type,ra(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(u.defaultChecked=!!e.defaultChecked)}function VA(u,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+u._wrapperState.initialValue,t||e===u.value||(u.value=e),u.defaultValue=e}t=u.name,t!==""&&(u.name=""),u.defaultChecked=!!u._wrapperState.initialChecked,t!==""&&(u.name=t)}function qp(u,e,t){(e!=="number"||o5(u.ownerDocument)!==u)&&(t==null?u.defaultValue=""+u._wrapperState.initialValue:u.defaultValue!==""+t&&(u.defaultValue=""+t))}var U3=Array.isArray;function Ks(u,e,t,n){if(u=u.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=_c.firstChild;u.firstChild;)u.removeChild(u.firstChild);for(;e.firstChild;)u.appendChild(e.firstChild)}});function Bl(u,e){if(e){var t=u.firstChild;if(t&&t===u.lastChild&&t.nodeType===3){t.nodeValue=e;return}}u.textContent=e}var rl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cL=["Webkit","ms","Moz","O"];Object.keys(rl).forEach(function(u){cL.forEach(function(e){e=e+u.charAt(0).toUpperCase()+u.substring(1),rl[e]=rl[u]})});function uk(u,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||rl.hasOwnProperty(u)&&rl[u]?(""+e).trim():e+"px"}function ek(u,e){u=u.style;for(var t in e)if(e.hasOwnProperty(t)){var n=t.indexOf("--")===0,r=uk(t,e[t],n);t==="float"&&(t="cssFloat"),n?u.setProperty(t,r):u[t]=r}}var EL=Tu({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vp(u,e){if(e){if(EL[u]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(d0(137,u));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(d0(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(d0(61))}if(e.style!=null&&typeof e.style!="object")throw Error(d0(62))}}function Kp(u,e){if(u.indexOf("-")===-1)return typeof e.is=="string";switch(u){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}}var Qp=null;function R7(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var Jp=null,Qs=null,Js=null;function JA(u){if(u=O1(u)){if(typeof Jp!="function")throw Error(d0(280));var e=u.stateNode;e&&(e=X2(e),Jp(u.stateNode,u.type,e))}}function tk(u){Qs?Js?Js.push(u):Js=[u]:Qs=u}function nk(){if(Qs){var u=Qs,e=Js;if(Js=Qs=null,JA(u),e)for(u=0;u>>=0,u===0?32:31-(BL(u)/FL|0)|0}var Sc=64,Tc=4194304;function W3(u){switch(u&-u){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: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 u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function c5(u,e){var t=u.pendingLanes;if(t===0)return 0;var n=0,r=u.suspendedLanes,i=u.pingedLanes,a=t&268435455;if(a!==0){var o=a&~r;o!==0?n=W3(o):(i&=a,i!==0&&(n=W3(i)))}else a=t&~r,a!==0?n=W3(a):i!==0&&(n=W3(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&r)&&(r=n&-n,i=e&-e,r>=i||r===16&&(i&4194240)!==0))return e;if(n&4&&(n|=t&16),e=u.entangledLanes,e!==0)for(u=u.entanglements,e&=n;0t;t++)e.push(u);return e}function T1(u,e,t){u.pendingLanes|=e,e!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,e=31-On(e),u[e]=t}function kL(u,e){var t=u.pendingLanes&~e;u.pendingLanes=e,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=e,u.mutableReadLanes&=e,u.entangledLanes&=e,e=u.entanglements;var n=u.eventTimes;for(u=u.expirationTimes;0=al),iy=" ",ay=!1;function Bk(u,e){switch(u){case"keyup":return t$.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fk(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var ks=!1;function r$(u,e){switch(u){case"compositionend":return Fk(e);case"keypress":return e.which!==32?null:(ay=!0,iy);case"textInput":return u=e.data,u===iy&&ay?null:u;default:return null}}function i$(u,e){if(ks)return u==="compositionend"||!q7&&Bk(u,e)?(u=yk(),x6=$7=Wi=null,ks=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-u};u=n}u:{for(;t;){if(t.nextSibling){t=t.nextSibling;break u}t=t.parentNode}t=void 0}t=ly(t)}}function kk(u,e){return u&&e?u===e?!0:u&&u.nodeType===3?!1:e&&e.nodeType===3?kk(u,e.parentNode):"contains"in u?u.contains(e):u.compareDocumentPosition?!!(u.compareDocumentPosition(e)&16):!1:!1}function _k(){for(var u=window,e=o5();e instanceof u.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)u=e.contentWindow;else break;e=o5(u.document)}return e}function H7(u){var e=u&&u.nodeName&&u.nodeName.toLowerCase();return e&&(e==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||e==="textarea"||u.contentEditable==="true")}function p$(u){var e=_k(),t=u.focusedElem,n=u.selectionRange;if(e!==t&&t&&t.ownerDocument&&kk(t.ownerDocument.documentElement,t)){if(n!==null&&H7(t)){if(e=n.start,u=n.end,u===void 0&&(u=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(u,t.value.length);else if(u=(e=t.ownerDocument||document)&&e.defaultView||window,u.getSelection){u=u.getSelection();var r=t.textContent.length,i=Math.min(n.start,r);n=n.end===void 0?i:Math.min(n.end,r),!u.extend&&i>n&&(r=n,n=i,i=r),r=cy(t,i);var a=cy(t,n);r&&a&&(u.rangeCount!==1||u.anchorNode!==r.node||u.anchorOffset!==r.offset||u.focusNode!==a.node||u.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),u.removeAllRanges(),i>n?(u.addRange(e),u.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),u.addRange(e)))}}for(e=[],u=t;u=u.parentNode;)u.nodeType===1&&e.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,_s=null,th=null,sl=null,nh=!1;function Ey(u,e,t){var n=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;nh||_s==null||_s!==o5(n)||(n=_s,"selectionStart"in n&&H7(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),sl&&_l(sl,n)||(sl=n,n=p5(th,"onSelect"),0Ps||(u.current=fh[Ps],fh[Ps]=null,Ps--)}function hu(u,e){Ps++,fh[Ps]=u.current,u.current=e}var ia={},Ie=ha(ia),st=ha(!1),yo=ia;function Q4(u,e){var t=u.type.contextTypes;if(!t)return ia;var n=u.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in t)r[i]=e[i];return n&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=e,u.__reactInternalMemoizedMaskedChildContext=r),r}function ft(u){return u=u.childContextTypes,u!=null}function C5(){bu(st),bu(Ie)}function gy(u,e,t){if(Ie.current!==ia)throw Error(d0(168));hu(Ie,e),hu(st,t)}function jk(u,e,t){var n=u.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return t;n=n.getChildContext();for(var r in n)if(!(r in e))throw Error(d0(108,fL(u)||"Unknown",r));return Tu({},t,n)}function m5(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||ia,yo=Ie.current,hu(Ie,u),hu(st,st.current),!0}function Ay(u,e,t){var n=u.stateNode;if(!n)throw Error(d0(169));t?(u=jk(u,e,yo),n.__reactInternalMemoizedMergedChildContext=u,bu(st),bu(Ie),hu(Ie,u)):bu(st),hu(st,t)}var Fr=null,u9=!1,t8=!1;function zk(u){Fr===null?Fr=[u]:Fr.push(u)}function w$(u){u9=!0,zk(u)}function Ca(){if(!t8&&Fr!==null){t8=!0;var u=0,e=iu;try{var t=Fr;for(iu=1;u>=a,r-=a,Lr=1<<32-On(e)+r|t<D?(T=C,C=null):T=C.sibling;var _=E(b,C,A[D],y);if(_===null){C===null&&(C=T);break}u&&C&&_.alternate===null&&e(b,C),m=i(_,m,D),v===null?B=_:v.sibling=_,v=_,C=T}if(D===A.length)return t(b,C),Au&&wa(b,D),B;if(C===null){for(;DD?(T=C,C=null):T=C.sibling;var $=E(b,C,_.value,y);if($===null){C===null&&(C=T);break}u&&C&&$.alternate===null&&e(b,C),m=i($,m,D),v===null?B=$:v.sibling=$,v=$,C=T}if(_.done)return t(b,C),Au&&wa(b,D),B;if(C===null){for(;!_.done;D++,_=A.next())_=c(b,_.value,y),_!==null&&(m=i(_,m,D),v===null?B=_:v.sibling=_,v=_);return Au&&wa(b,D),B}for(C=n(b,C);!_.done;D++,_=A.next())_=d(C,b,D,_.value,y),_!==null&&(u&&_.alternate!==null&&C.delete(_.key===null?D:_.key),m=i(_,m,D),v===null?B=_:v.sibling=_,v=_);return u&&C.forEach(function(u0){return e(b,u0)}),Au&&wa(b,D),B}function g(b,m,A,y){if(typeof A=="object"&&A!==null&&A.type===xs&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case xc:u:{for(var B=A.key,v=m;v!==null;){if(v.key===B){if(B=A.type,B===xs){if(v.tag===7){t(b,v.sibling),m=r(v,A.props.children),m.return=b,b=m;break u}}else if(v.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===gi&&xy(B)===v.type){t(b,v.sibling),m=r(v,A.props),m.ref=F3(b,v,A),m.return=b,b=m;break u}t(b,v);break}else e(b,v);v=v.sibling}A.type===xs?(m=co(A.props.children,b.mode,y,A.key),m.return=b,b=m):(y=N6(A.type,A.key,A.props,null,b.mode,y),y.ref=F3(b,m,A),y.return=b,b=y)}return a(b);case ws:u:{for(v=A.key;m!==null;){if(m.key===v)if(m.tag===4&&m.stateNode.containerInfo===A.containerInfo&&m.stateNode.implementation===A.implementation){t(b,m.sibling),m=r(m,A.children||[]),m.return=b,b=m;break u}else{t(b,m);break}else e(b,m);m=m.sibling}m=l8(A,b.mode,y),m.return=b,b=m}return a(b);case gi:return v=A._init,g(b,m,v(A._payload),y)}if(U3(A))return p(b,m,A,y);if(g3(A))return h(b,m,A,y);jc(b,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,m!==null&&m.tag===6?(t(b,m.sibling),m=r(m,A),m.return=b,b=m):(t(b,m),m=f8(A,b.mode,y),m.return=b,b=m),a(b)):t(b,m)}return g}var Y4=Vk(!0),Kk=Vk(!1),I1={},lr=ha(I1),Ol=ha(I1),Il=ha(I1);function Ma(u){if(u===I1)throw Error(d0(174));return u}function um(u,e){switch(hu(Il,e),hu(Ol,u),hu(lr,I1),u=e.nodeType,u){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Gp(null,"");break;default:u=u===8?e.parentNode:e,e=u.namespaceURI||null,u=u.tagName,e=Gp(e,u)}bu(lr),hu(lr,e)}function Z4(){bu(lr),bu(Ol),bu(Il)}function Qk(u){Ma(Il.current);var e=Ma(lr.current),t=Gp(e,u.type);e!==t&&(hu(Ol,u),hu(lr,t))}function em(u){Ol.current===u&&(bu(lr),bu(Ol))}var Bu=ha(0);function B5(u){for(var e=u;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===u)break;for(;e.sibling===null;){if(e.return===null||e.return===u)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var n8=[];function tm(){for(var u=0;ut?t:4,u(!0);var n=r8.transition;r8.transition={};try{u(!1),e()}finally{iu=t,r8.transition=n}}function c_(){return ln().memoizedState}function S$(u,e,t){var n=Xi(u);if(t={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null},E_(u))d_(e,t);else if(t=Wk(u,e,t,n),t!==null){var r=qe();In(t,u,n,r),p_(t,e,n)}}function T$(u,e,t){var n=Xi(u),r={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null};if(E_(u))d_(e,r);else{var i=u.alternate;if(u.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,o=i(a,t);if(r.hasEagerState=!0,r.eagerState=o,Mn(o,a)){var s=e.interleaved;s===null?(r.next=r,Z7(e)):(r.next=s.next,s.next=r),e.interleaved=r;return}}catch{}finally{}t=Wk(u,e,r,n),t!==null&&(r=qe(),In(t,u,n,r),p_(t,e,n))}}function E_(u){var e=u.alternate;return u===_u||e!==null&&e===_u}function d_(u,e){fl=F5=!0;var t=u.pending;t===null?e.next=e:(e.next=t.next,t.next=e),u.pending=e}function p_(u,e,t){if(t&4194240){var n=e.lanes;n&=u.pendingLanes,t|=n,e.lanes=t,j7(u,t)}}var D5={readContext:fn,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},P$={readContext:fn,useCallback:function(u,e){return Vn().memoizedState=[u,e===void 0?null:e],u},useContext:fn,useEffect:_y,useImperativeHandle:function(u,e,t){return t=t!=null?t.concat([u]):null,T6(4194308,4,a_.bind(null,e,u),t)},useLayoutEffect:function(u,e){return T6(4194308,4,u,e)},useInsertionEffect:function(u,e){return T6(4,2,u,e)},useMemo:function(u,e){var t=Vn();return e=e===void 0?null:e,u=u(),t.memoizedState=[u,e],u},useReducer:function(u,e,t){var n=Vn();return e=t!==void 0?t(e):e,n.memoizedState=n.baseState=e,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:e},n.queue=u,u=u.dispatch=S$.bind(null,_u,u),[n.memoizedState,u]},useRef:function(u){var e=Vn();return u={current:u},e.memoizedState=u},useState:ky,useDebugValue:om,useDeferredValue:function(u){return Vn().memoizedState=u},useTransition:function(){var u=ky(!1),e=u[0];return u=_$.bind(null,u[1]),Vn().memoizedState=u,[e,u]},useMutableSource:function(){},useSyncExternalStore:function(u,e,t){var n=_u,r=Vn();if(Au){if(t===void 0)throw Error(d0(407));t=t()}else{if(t=e(),se===null)throw Error(d0(349));Bo&30||Zk(n,e,t)}r.memoizedState=t;var i={value:t,getSnapshot:e};return r.queue=i,_y(u_.bind(null,n,i,u),[u]),n.flags|=2048,Ml(9,Xk.bind(null,n,i,t,e),void 0,null),t},useId:function(){var u=Vn(),e=se.identifierPrefix;if(Au){var t=$r,n=Lr;t=(n&~(1<<32-On(n)-1)).toString(32)+t,e=":"+e+"R"+t,t=Nl++,0<\/script>",u=u.removeChild(u.firstChild)):typeof n.is=="string"?u=a.createElement(t,{is:n.is}):(u=a.createElement(t),t==="select"&&(a=u,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):u=a.createElementNS(u,t),u[nr]=e,u[Sl]=n,A_(u,e,!1,!1),e.stateNode=u;u:{switch(a=K8(t,n),t){case"dialog":Cu("cancel",u),Cu("close",u),r=n;break;case"iframe":case"object":case"embed":Cu("load",u),r=n;break;case"video":case"audio":for(r=0;ru3&&(e.flags|=128,n=!0,Bf(i,!1),e.lanes=4194304)}else{if(!n)if(u=B2(a),u!==null){if(e.flags|=128,n=!0,t=u.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Bf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Au)return Be(e),null}else 2*zu()-i.renderingStartTime>u3&&t!==1073741824&&(e.flags|=128,n=!0,Bf(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(t=i.last,t!==null?t.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=zu(),e.sibling=null,t=Bu.current,hu(Bu,n?t&1|2:t&1),e):(Be(e),null);case 22:case 23:return d7(),n=e.memoizedState!==null,u!==null&&u.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?_t&1073741824&&(Be(e),e.subtreeFlags&6&&(e.flags|=8192)):Be(e),null;case 24:return null;case 25:return null}throw Error(d0(156,e.tag))}function I$(u,e){switch(Vm(e),e.tag){case 1:return ft(e.type)&&C2(),u=e.flags,u&65536?(e.flags=u&-65537|128,e):null;case 3:return Z4(),gu(st),gu(Ie),t7(),u=e.flags,u&65536&&!(u&128)?(e.flags=u&-65537|128,e):null;case 5:return e7(e),null;case 13:if(gu(Bu),u=e.memoizedState,u!==null&&u.dehydrated!==null){if(e.alternate===null)throw Error(d0(340));J4()}return u=e.flags,u&65536?(e.flags=u&-65537|128,e):null;case 19:return gu(Bu),null;case 4:return Z4(),null;case 10:return Ym(e.type._context),null;case 22:case 23:return d7(),null;case 24:return null;default:return null}}var L1=!1,Te=!1,N$=typeof WeakSet=="function"?WeakSet:Set,D0=null;function Rs(u,e){var t=u.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Mu(u,e,n)}else t.current=null}function yh(u,e,t){try{t()}catch(n){Mu(u,e,n)}}var jy=!1;function R$(u,e){if(rh=E2,u=wk(),Hm(u)){if("selectionStart"in u)var t={start:u.selectionStart,end:u.selectionEnd};else u:{t=(t=u.ownerDocument)&&t.defaultView||window;var n=t.getSelection&&t.getSelection();if(n&&n.rangeCount!==0){t=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break u}var a=0,o=-1,s=-1,f=0,l=0,c=u,E=null;e:for(;;){for(var d;c!==t||r!==0&&c.nodeType!==3||(o=a+r),c!==i||n!==0&&c.nodeType!==3||(s=a+n),c.nodeType===3&&(a+=c.nodeValue.length),(d=c.firstChild)!==null;)E=c,c=d;for(;;){if(c===u)break e;if(E===t&&++f===r&&(o=a),E===i&&++l===n&&(s=a),(d=c.nextSibling)!==null)break;c=E,E=c.parentNode}c=d}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(ih={focusedElem:u,selectionRange:t},E2=!1,D0=e;D0!==null;)if(e=D0,u=e.child,(e.subtreeFlags&1028)!==0&&u!==null)u.return=e,D0=u;else for(;D0!==null;){e=D0;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var h=p.memoizedProps,b=p.memoizedState,g=e.stateNode,m=g.getSnapshotBeforeUpdate(e.elementType===e.type?h:vn(e.type,h),b);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var A=e.stateNode.containerInfo;A.nodeType===1?A.textContent="":A.nodeType===9&&A.documentElement&&A.removeChild(A.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(d0(163))}}catch(y){Mu(e,e.return,y)}if(u=e.sibling,u!==null){u.return=e.return,D0=u;break}D0=e.return}return p=jy,jy=!1,p}function sl(u,e,t){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do{if((r.tag&u)===u){var i=r.destroy;r.destroy=void 0,i!==void 0&&yh(e,t,i)}r=r.next}while(r!==n)}}function nE(u,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&u)===u){var n=t.create;t.destroy=n()}t=t.next}while(t!==e)}}function vh(u){var e=u.ref;if(e!==null){var t=u.stateNode;switch(u.tag){case 5:u=t;break;default:u=t}typeof e=="function"?e(u):e.current=u}}function B_(u){var e=u.alternate;e!==null&&(u.alternate=null,B_(e)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(e=u.stateNode,e!==null&&(delete e[nr],delete e[Sl],delete e[sh],delete e[g$],delete e[b$])),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function F_(u){return u.tag===5||u.tag===3||u.tag===4}function zy(u){u:for(;;){for(;u.sibling===null;){if(u.return===null||F_(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue u;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function Bh(u,e,t){var n=u.tag;if(n===5||n===6)u=u.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(u,e):t.insertBefore(u,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(u,t)):(e=t,e.appendChild(u)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=h2));else if(n!==4&&(u=u.child,u!==null))for(Bh(u,e,t),u=u.sibling;u!==null;)Bh(u,e,t),u=u.sibling}function Fh(u,e,t){var n=u.tag;if(n===5||n===6)u=u.stateNode,e?t.insertBefore(u,e):t.appendChild(u);else if(n!==4&&(u=u.child,u!==null))for(Fh(u,e,t),u=u.sibling;u!==null;)Fh(u,e,t),u=u.sibling}var pe=null,xn=!1;function Ei(u,e,t){for(t=t.child;t!==null;)D_(u,e,t),t=t.sibling}function D_(u,e,t){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Q9,t)}catch{}switch(t.tag){case 5:Te||Rs(t,e);case 6:var n=pe,r=xn;pe=null,Ei(u,e,t),pe=n,xn=r,pe!==null&&(xn?(u=pe,t=t.stateNode,u.nodeType===8?u.parentNode.removeChild(t):u.removeChild(t)):pe.removeChild(t.stateNode));break;case 18:pe!==null&&(xn?(u=pe,t=t.stateNode,u.nodeType===8?ep(u.parentNode,t):u.nodeType===1&&ep(u,t),Dl(u)):ep(pe,t.stateNode));break;case 4:n=pe,r=xn,pe=t.stateNode.containerInfo,xn=!0,Ei(u,e,t),pe=n,xn=r;break;case 0:case 11:case 14:case 15:if(!Te&&(n=t.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){r=n=n.next;do{var i=r,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&yh(t,e,a),r=r.next}while(r!==n)}Ei(u,e,t);break;case 1:if(!Te&&(Rs(t,e),n=t.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(o){Mu(t,e,o)}Ei(u,e,t);break;case 21:Ei(u,e,t);break;case 22:t.mode&1?(Te=(n=Te)||t.memoizedState!==null,Ei(u,e,t),Te=n):Ei(u,e,t);break;default:Ei(u,e,t)}}function Ly(u){var e=u.updateQueue;if(e!==null){u.updateQueue=null;var t=u.stateNode;t===null&&(t=u.stateNode=new N$),e.forEach(function(n){var r=H$.bind(null,u,n);t.has(n)||(t.add(n),n.then(r,r))})}}function bn(u,e){var t=e.deletions;if(t!==null)for(var n=0;nr&&(r=a),n&=~i}if(n=r,n=zu()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*j$(n/1960))-n,10u?16:u,qi===null)var n=!1;else{if(u=qi,qi=null,k2=0,Y0&6)throw Error(d0(331));var r=Y0;for(Y0|=4,D0=u.current;D0!==null;){var i=D0,a=i.child;if(D0.flags&16){var o=i.deletions;if(o!==null){for(var s=0;szu()-c7?lo(u,0):l7|=t),lt(u,e)}function O_(u,e){e===0&&(u.mode&1?(e=T1,T1<<=1,!(T1&130023424)&&(T1=4194304)):e=1);var t=qe();u=Qr(u,e),u!==null&&(Sc(u,e,t),lt(u,t))}function q$(u){var e=u.memoizedState,t=0;e!==null&&(t=e.retryLane),O_(u,t)}function H$(u,e){var t=0;switch(u.tag){case 13:var n=u.stateNode,r=u.memoizedState;r!==null&&(t=r.retryLane);break;case 19:n=u.stateNode;break;default:throw Error(d0(314))}n!==null&&n.delete(e),O_(u,t)}var I_;I_=function(u,e,t){if(u!==null)if(u.memoizedProps!==e.pendingProps||st.current)ot=!0;else{if(!(u.lanes&t)&&!(e.flags&128))return ot=!1,P$(u,e,t);ot=!!(u.flags&131072)}else ot=!1,Au&&e.flags&1048576&&Mk(e,b2,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;P6(u,e),u=e.pendingProps;var r=Q4(e,Ie.current);Zs(e,t),r=r7(null,e,n,u,r,t);var i=i7();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ft(n)?(i=!0,m2(e)):i=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Xm(e),r.updater=eE,e.stateNode=r,r._reactInternals=e,ph(e,n,u,t),e=mh(null,e,n,!0,i,t)):(e.tag=0,Au&&i&&Gm(e),Me(null,e,r,t),e=e.child),e;case 16:n=e.elementType;u:{switch(P6(u,e),u=e.pendingProps,r=n._init,n=r(n._payload),e.type=n,r=e.tag=V$(n),u=vn(n,u),r){case 0:e=Ch(null,e,n,u,t);break u;case 1:e=Ny(null,e,n,u,t);break u;case 11:e=Oy(null,e,n,u,t);break u;case 14:e=Iy(null,e,n,vn(n.type,u),t);break u}throw Error(d0(306,n,""))}return e;case 0:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:vn(n,r),Ch(u,e,n,r,t);case 1:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:vn(n,r),Ny(u,e,n,r,t);case 3:u:{if(m_(e),u===null)throw Error(d0(387));n=e.pendingProps,i=e.memoizedState,r=i.element,$k(u,e),v2(e,n,null,t);var a=e.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){r=X4(Error(d0(423)),e),e=Ry(u,e,n,t,r);break u}else if(n!==r){r=X4(Error(d0(424)),e),e=Ry(u,e,n,t,r);break u}else for(Ot=Ji(e.stateNode.containerInfo.firstChild),Rt=e,Au=!0,kn=null,t=Hk(e,null,n,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(J4(),n===r){e=Jr(u,e,t);break u}Me(u,e,n,t)}e=e.child}return e;case 5:return Gk(e),u===null&&ch(e),n=e.type,r=e.pendingProps,i=u!==null?u.memoizedProps:null,a=r.children,ah(n,r)?a=null:i!==null&&ah(n,i)&&(e.flags|=32),C_(u,e),Me(u,e,a,t),e.child;case 6:return u===null&&ch(e),null;case 13:return g_(u,e,t);case 4:return u7(e,e.stateNode.containerInfo),n=e.pendingProps,u===null?e.child=Y4(e,null,n,t):Me(u,e,n,t),e.child;case 11:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:vn(n,r),Oy(u,e,n,r,t);case 7:return Me(u,e,e.pendingProps,t),e.child;case 8:return Me(u,e,e.pendingProps.children,t),e.child;case 12:return Me(u,e,e.pendingProps.children,t),e.child;case 10:u:{if(n=e.type._context,r=e.pendingProps,i=e.memoizedProps,a=r.value,hu(A2,n._currentValue),n._currentValue=a,i!==null)if(Mn(i.value,a)){if(i.children===r.children&&!st.current){e=Jr(u,e,t);break u}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){a=i.child;for(var s=o.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=Wr(-1,t&-t),s.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var l=f.pending;l===null?s.next=s:(s.next=l.next,l.next=s),f.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),Eh(i.return,t,e),o.lanes|=t;break}s=s.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(d0(341));a.lanes|=t,o=a.alternate,o!==null&&(o.lanes|=t),Eh(a,t,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Me(u,e,r.children,t),e=e.child}return e;case 9:return r=e.type,n=e.pendingProps.children,Zs(e,t),r=fn(r),n=n(r),e.flags|=1,Me(u,e,n,t),e.child;case 14:return n=e.type,r=vn(n,e.pendingProps),r=vn(n.type,r),Iy(u,e,n,r,t);case 15:return p_(u,e,e.type,e.pendingProps,t);case 17:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:vn(n,r),P6(u,e),e.tag=1,ft(n)?(u=!0,m2(e)):u=!1,Zs(e,t),Wk(e,n,r),ph(e,n,r,t),mh(null,e,n,!0,u,t);case 19:return b_(u,e,t);case 22:return h_(u,e,t)}throw Error(d0(156,e.tag))};function N_(u,e){return ok(u,e)}function G$(u,e,t,n){this.tag=u,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(u,e,t,n){return new G$(u,e,t,n)}function h7(u){return u=u.prototype,!(!u||!u.isReactComponent)}function V$(u){if(typeof u=="function")return h7(u)?1:0;if(u!=null){if(u=u.$$typeof,u===Im)return 11;if(u===Nm)return 14}return 2}function ua(u,e){var t=u.alternate;return t===null?(t=nn(u.tag,e,u.key,u.mode),t.elementType=u.elementType,t.type=u.type,t.stateNode=u.stateNode,t.alternate=u,u.alternate=t):(t.pendingProps=e,t.type=u.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=u.flags&14680064,t.childLanes=u.childLanes,t.lanes=u.lanes,t.child=u.child,t.memoizedProps=u.memoizedProps,t.memoizedState=u.memoizedState,t.updateQueue=u.updateQueue,e=u.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=u.sibling,t.index=u.index,t.ref=u.ref,t}function N6(u,e,t,n,r,i){var a=2;if(n=u,typeof u=="function")h7(u)&&(a=1);else if(typeof u=="string")a=5;else u:switch(u){case xs:return co(t.children,r,i,e);case Om:a=8,r|=8;break;case j8:return u=nn(12,t,e,r|2),u.elementType=j8,u.lanes=i,u;case z8:return u=nn(13,t,e,r),u.elementType=z8,u.lanes=i,u;case L8:return u=nn(19,t,e,r),u.elementType=L8,u.lanes=i,u;case qx:return iE(t,r,i,e);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case Ux:a=10;break u;case Wx:a=9;break u;case Im:a=11;break u;case Nm:a=14;break u;case bi:a=16,n=null;break u}throw Error(d0(130,u==null?u:typeof u,""))}return e=nn(a,t,e,r),e.elementType=u,e.type=n,e.lanes=i,e}function co(u,e,t,n){return u=nn(7,u,n,e),u.lanes=t,u}function iE(u,e,t,n){return u=nn(22,u,n,e),u.elementType=qx,u.lanes=t,u.stateNode={isHidden:!1},u}function fp(u,e,t){return u=nn(6,u,null,e),u.lanes=t,u}function lp(u,e,t){return e=nn(4,u.children!==null?u.children:[],u.key,e),e.lanes=t,e.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},e}function K$(u,e,t,n,r){this.tag=e,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qd(0),this.expirationTimes=qd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qd(0),this.identifierPrefix=n,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function C7(u,e,t,n,r,i,a,o,s){return u=new K$(u,e,t,o,s),e===1?(e=1,i===!0&&(e|=8)):e=0,i=nn(3,null,null,e),u.current=i,i.stateNode=u,i.memoizedState={element:n,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xm(i),u}function Q$(u,e,t){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(z_)}catch(u){console.error(u)}}z_(),Mx.exports=Lt;var A7=Mx.exports,Ky=A7;R8.createRoot=Ky.createRoot,R8.hydrateRoot=Ky.hydrateRoot;function L_(u){var e,t,n="";if(typeof u=="string"||typeof u=="number")n+=u;else if(typeof u=="object")if(Array.isArray(u))for(e=0;etypeof window=="object"?((u?u.querySelector("#_goober"):window._goober)||Object.assign((u||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:u||uU,tU=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,nU=/\/\*[^]*?\*\/| +/g,Qy=/\n+/g,Pa=(u,e)=>{let t="",n="",r="";for(let i in u){let a=u[i];i[0]=="@"?i[1]=="i"?t=i+" "+a+";":n+=i[1]=="f"?Pa(a,i):i+"{"+Pa(a,i[1]=="k"?"":e)+"}":typeof a=="object"?n+=Pa(a,e?e.replace(/([^,])+/g,o=>i.replace(/(^:.*)|([^,])+/g,s=>/&/.test(s)?s.replace(/&/g,o):o?o+" "+s:s)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=Pa.p?Pa.p(i,a):i+":"+a+";")}return t+(e&&r?e+"{"+r+"}":r)+n},mr={},$_=u=>{if(typeof u=="object"){let e="";for(let t in u)e+=t+$_(u[t]);return e}return u},rU=(u,e,t,n,r)=>{let i=$_(u),a=mr[i]||(mr[i]=(s=>{let f=0,l=11;for(;f>>0;return"go"+l})(i));if(!mr[a]){let s=i!==u?u:(f=>{let l,c,E=[{}];for(;l=tU.exec(f.replace(nU,""));)l[4]?E.shift():l[3]?(c=l[3].replace(Qy," ").trim(),E.unshift(E[0][c]=E[0][c]||{})):E[0][l[1]]=l[2].replace(Qy," ").trim();return E[0]})(u);mr[a]=Pa(r?{["@keyframes "+a]:s}:s,t?"":"."+a)}let o=t&&mr.g?mr.g:null;return t&&(mr.g=mr[a]),((s,f,l,c)=>{c?f.data=f.data.replace(c,s):f.data.indexOf(s)===-1&&(f.data=l?s+f.data:f.data+s)})(mr[a],e,n,o),a},iU=(u,e,t)=>u.reduce((n,r,i)=>{let a=e[i];if(a&&a.call){let o=a(t),s=o&&o.props&&o.props.className||/^go/.test(o)&&o;a=s?"."+s:o&&typeof o=="object"?o.props?"":Pa(o,""):o===!1?"":o}return n+r+(a??"")},"");function y7(u){let e=this||{},t=u.call?u(e.p):u;return rU(t.unshift?t.raw?iU(t,[].slice.call(arguments,1),e.p):t.reduce((n,r)=>Object.assign(n,r&&r.call?r(e.p):r),{}):t,eU(e.target),e.g,e.o,e.k)}y7.bind({g:1});y7.bind({k:1});function Jy(u,e){for(var t=0;t=0)&&(t[r]=u[r]);return t}function Yy(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}var Zy=function(){return""},aU=F.createContext({enqueueSnackbar:Zy,closeSnackbar:Zy}),ka={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},Xy=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},v7=function(e){return""+Xy(e.vertical)+Xy(e.horizontal)},W1=function(e){return!!e||e===0},q1="unmounted",rs="exited",is="entering",Df="entered",uv="exiting",B7=function(u){W_(e,u);function e(n){var r;r=u.call(this,n)||this;var i=n.appear,a;return r.appearStatus=null,n.in?i?(a=rs,r.appearStatus=is):a=Df:n.unmountOnExit||n.mountOnEnter?a=q1:a=rs,r.state={status:a},r.nextCallback=null,r}e.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===q1?{status:rs}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==is&&a!==Df&&(i=is):(a===is||a===Df)&&(i=uv)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var r=this.props.timeout,i=r,a=r;return r!=null&&typeof r!="number"&&typeof r!="string"&&(a=r.exit,i=r.enter),{exit:a,enter:i}},t.updateStatus=function(r,i){r===void 0&&(r=!1),i!==null?(this.cancelNextCallback(),i===is?this.performEnter(r):this.performExit()):this.props.unmountOnExit&&this.state.status===rs&&this.setState({status:q1})},t.performEnter=function(r){var i=this,a=this.props.enter,o=r,s=this.getTimeouts();if(!r&&!a){this.safeSetState({status:Df},function(){i.props.onEntered&&i.props.onEntered(i.node,o)});return}this.props.onEnter&&this.props.onEnter(this.node,o),this.safeSetState({status:is},function(){i.props.onEntering&&i.props.onEntering(i.node,o),i.onTransitionEnd(s.enter,function(){i.safeSetState({status:Df},function(){i.props.onEntered&&i.props.onEntered(i.node,o)})})})},t.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:rs},function(){r.props.onExited&&r.props.onExited(r.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:uv},function(){r.props.onExiting&&r.props.onExiting(r.node),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:rs},function(){r.props.onExited&&r.props.onExited(r.node)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},t.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(){a&&(a=!1,i.nextCallback=null,r())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=r==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),r!=null&&setTimeout(this.nextCallback,r)},t.render=function(){var r=this.state.status;if(r===q1)return null;var i=this.props,a=i.children,o=Ic(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(r,o)},U_(e,[{key:"node",get:function(){var r,i=(r=this.props.nodeRef)===null||r===void 0?void 0:r.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),e}(F.Component);function as(){}B7.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:as,onEntering:as,onEntered:as,onExit:as,onExiting:as,onExited:as};function ev(u,e){typeof u=="function"?u(e):u&&(u.current=e)}function _h(u,e){return w.useMemo(function(){return u==null&&e==null?null:function(t){ev(u,t),ev(e,t)}},[u,e])}function T2(u){var e=u.timeout,t=u.style,n=t===void 0?{}:t,r=u.mode;return{duration:typeof e=="object"?e[r]||0:e,easing:n.transitionTimingFunction,delay:n.transitionDelay}}var Sh={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},q_=function(e){e.scrollTop=e.scrollTop},tv=function(e){return Math.round(e)+"ms"};function js(u,e){u===void 0&&(u=["all"]);var t=e||{},n=t.duration,r=n===void 0?300:n,i=t.easing,a=i===void 0?Sh.easeInOut:i,o=t.delay,s=o===void 0?0:o,f=Array.isArray(u)?u:[u];return f.map(function(l){var c=typeof r=="string"?r:tv(r),E=typeof s=="string"?s:tv(s);return l+" "+c+" "+a+" "+E}).join(",")}function oU(u){return u&&u.ownerDocument||document}function H_(u){var e=oU(u);return e.defaultView||window}function sU(u,e){e===void 0&&(e=166);var t;function n(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o<\/script>",u=u.removeChild(u.firstChild)):typeof n.is=="string"?u=a.createElement(t,{is:n.is}):(u=a.createElement(t),t==="select"&&(a=u,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):u=a.createElementNS(u,t),u[nr]=e,u[Pl]=n,B_(u,e,!1,!1),e.stateNode=u;u:{switch(a=Kp(t,n),t){case"dialog":Cu("cancel",u),Cu("close",u),r=n;break;case"iframe":case"object":case"embed":Cu("load",u),r=n;break;case"video":case"audio":for(r=0;ruf&&(e.flags|=128,n=!0,D3(i,!1),e.lanes=4194304)}else{if(!n)if(u=B5(a),u!==null){if(e.flags|=128,n=!0,t=u.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),D3(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Au)return Be(e),null}else 2*zu()-i.renderingStartTime>uf&&t!==1073741824&&(e.flags|=128,n=!0,D3(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(t=i.last,t!==null?t.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=zu(),e.sibling=null,t=Bu.current,hu(Bu,n?t&1|2:t&1),e):(Be(e),null);case 22:case 23:return dm(),n=e.memoizedState!==null,u!==null&&u.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?_t&1073741824&&(Be(e),e.subtreeFlags&6&&(e.flags|=8192)):Be(e),null;case 24:return null;case 25:return null}throw Error(d0(156,e.tag))}function L$(u,e){switch(V7(e),e.tag){case 1:return ft(e.type)&&C5(),u=e.flags,u&65536?(e.flags=u&-65537|128,e):null;case 3:return Z4(),bu(st),bu(Ie),tm(),u=e.flags,u&65536&&!(u&128)?(e.flags=u&-65537|128,e):null;case 5:return em(e),null;case 13:if(bu(Bu),u=e.memoizedState,u!==null&&u.dehydrated!==null){if(e.alternate===null)throw Error(d0(340));J4()}return u=e.flags,u&65536?(e.flags=u&-65537|128,e):null;case 19:return bu(Bu),null;case 4:return Z4(),null;case 10:return Y7(e.type._context),null;case 22:case 23:return dm(),null;case 24:return null;default:return null}}var Lc=!1,Te=!1,$$=typeof WeakSet=="function"?WeakSet:Set,D0=null;function Rs(u,e){var t=u.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Mu(u,e,n)}else t.current=null}function yh(u,e,t){try{t()}catch(n){Mu(u,e,n)}}var jy=!1;function U$(u,e){if(rh=E5,u=_k(),H7(u)){if("selectionStart"in u)var t={start:u.selectionStart,end:u.selectionEnd};else u:{t=(t=u.ownerDocument)&&t.defaultView||window;var n=t.getSelection&&t.getSelection();if(n&&n.rangeCount!==0){t=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break u}var a=0,o=-1,s=-1,f=0,l=0,c=u,E=null;e:for(;;){for(var d;c!==t||r!==0&&c.nodeType!==3||(o=a+r),c!==i||n!==0&&c.nodeType!==3||(s=a+n),c.nodeType===3&&(a+=c.nodeValue.length),(d=c.firstChild)!==null;)E=c,c=d;for(;;){if(c===u)break e;if(E===t&&++f===r&&(o=a),E===i&&++l===n&&(s=a),(d=c.nextSibling)!==null)break;c=E,E=c.parentNode}c=d}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(ih={focusedElem:u,selectionRange:t},E5=!1,D0=e;D0!==null;)if(e=D0,u=e.child,(e.subtreeFlags&1028)!==0&&u!==null)u.return=e,D0=u;else for(;D0!==null;){e=D0;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var h=p.memoizedProps,g=p.memoizedState,b=e.stateNode,m=b.getSnapshotBeforeUpdate(e.elementType===e.type?h:vn(e.type,h),g);b.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var A=e.stateNode.containerInfo;A.nodeType===1?A.textContent="":A.nodeType===9&&A.documentElement&&A.removeChild(A.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(d0(163))}}catch(y){Mu(e,e.return,y)}if(u=e.sibling,u!==null){u.return=e.return,D0=u;break}D0=e.return}return p=jy,jy=!1,p}function ll(u,e,t){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do{if((r.tag&u)===u){var i=r.destroy;r.destroy=void 0,i!==void 0&&yh(e,t,i)}r=r.next}while(r!==n)}}function n9(u,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&u)===u){var n=t.create;t.destroy=n()}t=t.next}while(t!==e)}}function vh(u){var e=u.ref;if(e!==null){var t=u.stateNode;switch(u.tag){case 5:u=t;break;default:u=t}typeof e=="function"?e(u):e.current=u}}function w_(u){var e=u.alternate;e!==null&&(u.alternate=null,w_(e)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(e=u.stateNode,e!==null&&(delete e[nr],delete e[Pl],delete e[sh],delete e[F$],delete e[D$])),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function x_(u){return u.tag===5||u.tag===3||u.tag===4}function zy(u){u:for(;;){for(;u.sibling===null;){if(u.return===null||x_(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue u;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function Bh(u,e,t){var n=u.tag;if(n===5||n===6)u=u.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(u,e):t.insertBefore(u,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(u,t)):(e=t,e.appendChild(u)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=h5));else if(n!==4&&(u=u.child,u!==null))for(Bh(u,e,t),u=u.sibling;u!==null;)Bh(u,e,t),u=u.sibling}function Fh(u,e,t){var n=u.tag;if(n===5||n===6)u=u.stateNode,e?t.insertBefore(u,e):t.appendChild(u);else if(n!==4&&(u=u.child,u!==null))for(Fh(u,e,t),u=u.sibling;u!==null;)Fh(u,e,t),u=u.sibling}var pe=null,xn=!1;function Ei(u,e,t){for(t=t.child;t!==null;)k_(u,e,t),t=t.sibling}function k_(u,e,t){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Q2,t)}catch{}switch(t.tag){case 5:Te||Rs(t,e);case 6:var n=pe,r=xn;pe=null,Ei(u,e,t),pe=n,xn=r,pe!==null&&(xn?(u=pe,t=t.stateNode,u.nodeType===8?u.parentNode.removeChild(t):u.removeChild(t)):pe.removeChild(t.stateNode));break;case 18:pe!==null&&(xn?(u=pe,t=t.stateNode,u.nodeType===8?e8(u.parentNode,t):u.nodeType===1&&e8(u,t),xl(u)):e8(pe,t.stateNode));break;case 4:n=pe,r=xn,pe=t.stateNode.containerInfo,xn=!0,Ei(u,e,t),pe=n,xn=r;break;case 0:case 11:case 14:case 15:if(!Te&&(n=t.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){r=n=n.next;do{var i=r,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&yh(t,e,a),r=r.next}while(r!==n)}Ei(u,e,t);break;case 1:if(!Te&&(Rs(t,e),n=t.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(o){Mu(t,e,o)}Ei(u,e,t);break;case 21:Ei(u,e,t);break;case 22:t.mode&1?(Te=(n=Te)||t.memoizedState!==null,Ei(u,e,t),Te=n):Ei(u,e,t);break;default:Ei(u,e,t)}}function Ly(u){var e=u.updateQueue;if(e!==null){u.updateQueue=null;var t=u.stateNode;t===null&&(t=u.stateNode=new $$),e.forEach(function(n){var r=Y$.bind(null,u,n);t.has(n)||(t.add(n),n.then(r,r))})}}function gn(u,e){var t=e.deletions;if(t!==null)for(var n=0;nr&&(r=a),n&=~i}if(n=r,n=zu()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*q$(n/1960))-n,10u?16:u,qi===null)var n=!1;else{if(u=qi,qi=null,k5=0,Y0&6)throw Error(d0(331));var r=Y0;for(Y0|=4,D0=u.current;D0!==null;){var i=D0,a=i.child;if(D0.flags&16){var o=i.deletions;if(o!==null){for(var s=0;szu()-cm?lo(u,0):lm|=t),lt(u,e)}function R_(u,e){e===0&&(u.mode&1?(e=Tc,Tc<<=1,!(Tc&130023424)&&(Tc=4194304)):e=1);var t=qe();u=Qr(u,e),u!==null&&(T1(u,e,t),lt(u,t))}function J$(u){var e=u.memoizedState,t=0;e!==null&&(t=e.retryLane),R_(u,t)}function Y$(u,e){var t=0;switch(u.tag){case 13:var n=u.stateNode,r=u.memoizedState;r!==null&&(t=r.retryLane);break;case 19:n=u.stateNode;break;default:throw Error(d0(314))}n!==null&&n.delete(e),R_(u,t)}var M_;M_=function(u,e,t){if(u!==null)if(u.memoizedProps!==e.pendingProps||st.current)ot=!0;else{if(!(u.lanes&t)&&!(e.flags&128))return ot=!1,j$(u,e,t);ot=!!(u.flags&131072)}else ot=!1,Au&&e.flags&1048576&&Lk(e,g5,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;P6(u,e),u=e.pendingProps;var r=Q4(e,Ie.current);Zs(e,t),r=rm(null,e,n,u,r,t);var i=im();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ft(n)?(i=!0,m5(e)):i=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,X7(e),r.updater=e9,e.stateNode=r,r._reactInternals=e,ph(e,n,u,t),e=mh(null,e,n,!0,i,t)):(e.tag=0,Au&&i&&G7(e),Me(null,e,r,t),e=e.child),e;case 16:n=e.elementType;u:{switch(P6(u,e),u=e.pendingProps,r=n._init,n=r(n._payload),e.type=n,r=e.tag=X$(n),u=vn(n,u),r){case 0:e=Ch(null,e,n,u,t);break u;case 1:e=Ny(null,e,n,u,t);break u;case 11:e=Oy(null,e,n,u,t);break u;case 14:e=Iy(null,e,n,vn(n.type,u),t);break u}throw Error(d0(306,n,""))}return e;case 0:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:vn(n,r),Ch(u,e,n,r,t);case 1:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:vn(n,r),Ny(u,e,n,r,t);case 3:u:{if(A_(e),u===null)throw Error(d0(387));n=e.pendingProps,i=e.memoizedState,r=i.element,qk(u,e),v5(e,n,null,t);var a=e.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){r=X4(Error(d0(423)),e),e=Ry(u,e,n,t,r);break u}else if(n!==r){r=X4(Error(d0(424)),e),e=Ry(u,e,n,t,r);break u}else for(Ot=Ji(e.stateNode.containerInfo.firstChild),Rt=e,Au=!0,kn=null,t=Kk(e,null,n,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(J4(),n===r){e=Jr(u,e,t);break u}Me(u,e,n,t)}e=e.child}return e;case 5:return Qk(e),u===null&&ch(e),n=e.type,r=e.pendingProps,i=u!==null?u.memoizedProps:null,a=r.children,ah(n,r)?a=null:i!==null&&ah(n,i)&&(e.flags|=32),g_(u,e),Me(u,e,a,t),e.child;case 6:return u===null&&ch(e),null;case 13:return y_(u,e,t);case 4:return um(e,e.stateNode.containerInfo),n=e.pendingProps,u===null?e.child=Y4(e,null,n,t):Me(u,e,n,t),e.child;case 11:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:vn(n,r),Oy(u,e,n,r,t);case 7:return Me(u,e,e.pendingProps,t),e.child;case 8:return Me(u,e,e.pendingProps.children,t),e.child;case 12:return Me(u,e,e.pendingProps.children,t),e.child;case 10:u:{if(n=e.type._context,r=e.pendingProps,i=e.memoizedProps,a=r.value,hu(A5,n._currentValue),n._currentValue=a,i!==null)if(Mn(i.value,a)){if(i.children===r.children&&!st.current){e=Jr(u,e,t);break u}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){a=i.child;for(var s=o.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=Wr(-1,t&-t),s.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var l=f.pending;l===null?s.next=s:(s.next=l.next,l.next=s),f.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),Eh(i.return,t,e),o.lanes|=t;break}s=s.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(d0(341));a.lanes|=t,o=a.alternate,o!==null&&(o.lanes|=t),Eh(a,t,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Me(u,e,r.children,t),e=e.child}return e;case 9:return r=e.type,n=e.pendingProps.children,Zs(e,t),r=fn(r),n=n(r),e.flags|=1,Me(u,e,n,t),e.child;case 14:return n=e.type,r=vn(n,e.pendingProps),r=vn(n.type,r),Iy(u,e,n,r,t);case 15:return m_(u,e,e.type,e.pendingProps,t);case 17:return n=e.type,r=e.pendingProps,r=e.elementType===n?r:vn(n,r),P6(u,e),e.tag=1,ft(n)?(u=!0,m5(e)):u=!1,Zs(e,t),Gk(e,n,r),ph(e,n,r,t),mh(null,e,n,!0,u,t);case 19:return v_(u,e,t);case 22:return b_(u,e,t)}throw Error(d0(156,e.tag))};function j_(u,e){return lk(u,e)}function Z$(u,e,t,n){this.tag=u,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(u,e,t,n){return new Z$(u,e,t,n)}function hm(u){return u=u.prototype,!(!u||!u.isReactComponent)}function X$(u){if(typeof u=="function")return hm(u)?1:0;if(u!=null){if(u=u.$$typeof,u===I7)return 11;if(u===N7)return 14}return 2}function ua(u,e){var t=u.alternate;return t===null?(t=nn(u.tag,e,u.key,u.mode),t.elementType=u.elementType,t.type=u.type,t.stateNode=u.stateNode,t.alternate=u,u.alternate=t):(t.pendingProps=e,t.type=u.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=u.flags&14680064,t.childLanes=u.childLanes,t.lanes=u.lanes,t.child=u.child,t.memoizedProps=u.memoizedProps,t.memoizedState=u.memoizedState,t.updateQueue=u.updateQueue,e=u.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=u.sibling,t.index=u.index,t.ref=u.ref,t}function N6(u,e,t,n,r,i){var a=2;if(n=u,typeof u=="function")hm(u)&&(a=1);else if(typeof u=="string")a=5;else u:switch(u){case xs:return co(t.children,r,i,e);case O7:a=8,r|=8;break;case jp:return u=nn(12,t,e,r|2),u.elementType=jp,u.lanes=i,u;case zp:return u=nn(13,t,e,r),u.elementType=zp,u.lanes=i,u;case Lp:return u=nn(19,t,e,r),u.elementType=Lp,u.lanes=i,u;case Vx:return i9(t,r,i,e);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case Hx:a=10;break u;case Gx:a=9;break u;case I7:a=11;break u;case N7:a=14;break u;case gi:a=16,n=null;break u}throw Error(d0(130,u==null?u:typeof u,""))}return e=nn(a,t,e,r),e.elementType=u,e.type=n,e.lanes=i,e}function co(u,e,t,n){return u=nn(7,u,n,e),u.lanes=t,u}function i9(u,e,t,n){return u=nn(22,u,n,e),u.elementType=Vx,u.lanes=t,u.stateNode={isHidden:!1},u}function f8(u,e,t){return u=nn(6,u,null,e),u.lanes=t,u}function l8(u,e,t){return e=nn(4,u.children!==null?u.children:[],u.key,e),e.lanes=t,e.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},e}function uU(u,e,t,n,r){this.tag=e,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qd(0),this.expirationTimes=qd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qd(0),this.identifierPrefix=n,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Cm(u,e,t,n,r,i,a,o,s){return u=new uU(u,e,t,o,s),e===1?(e=1,i===!0&&(e|=8)):e=0,i=nn(3,null,null,e),u.current=i,i.stateNode=u,i.memoizedState={element:n,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},X7(i),u}function eU(u,e,t){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(U_)}catch(u){console.error(u)}}U_(),Lx.exports=Lt;var Am=Lx.exports,Ky=Am;Rp.createRoot=Ky.createRoot,Rp.hydrateRoot=Ky.hydrateRoot;function W_(u){var e,t,n="";if(typeof u=="string"||typeof u=="number")n+=u;else if(typeof u=="object")if(Array.isArray(u))for(e=0;etypeof window=="object"?((u?u.querySelector("#_goober"):window._goober)||Object.assign((u||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:u||aU,sU=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,fU=/\/\*[^]*?\*\/| +/g,Qy=/\n+/g,Pa=(u,e)=>{let t="",n="",r="";for(let i in u){let a=u[i];i[0]=="@"?i[1]=="i"?t=i+" "+a+";":n+=i[1]=="f"?Pa(a,i):i+"{"+Pa(a,i[1]=="k"?"":e)+"}":typeof a=="object"?n+=Pa(a,e?e.replace(/([^,])+/g,o=>i.replace(/(^:.*)|([^,])+/g,s=>/&/.test(s)?s.replace(/&/g,o):o?o+" "+s:s)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=Pa.p?Pa.p(i,a):i+":"+a+";")}return t+(e&&r?e+"{"+r+"}":r)+n},mr={},q_=u=>{if(typeof u=="object"){let e="";for(let t in u)e+=t+q_(u[t]);return e}return u},lU=(u,e,t,n,r)=>{let i=q_(u),a=mr[i]||(mr[i]=(s=>{let f=0,l=11;for(;f>>0;return"go"+l})(i));if(!mr[a]){let s=i!==u?u:(f=>{let l,c,E=[{}];for(;l=sU.exec(f.replace(fU,""));)l[4]?E.shift():l[3]?(c=l[3].replace(Qy," ").trim(),E.unshift(E[0][c]=E[0][c]||{})):E[0][l[1]]=l[2].replace(Qy," ").trim();return E[0]})(u);mr[a]=Pa(r?{["@keyframes "+a]:s}:s,t?"":"."+a)}let o=t&&mr.g?mr.g:null;return t&&(mr.g=mr[a]),((s,f,l,c)=>{c?f.data=f.data.replace(c,s):f.data.indexOf(s)===-1&&(f.data=l?s+f.data:f.data+s)})(mr[a],e,n,o),a},cU=(u,e,t)=>u.reduce((n,r,i)=>{let a=e[i];if(a&&a.call){let o=a(t),s=o&&o.props&&o.props.className||/^go/.test(o)&&o;a=s?"."+s:o&&typeof o=="object"?o.props?"":Pa(o,""):o===!1?"":o}return n+r+(a??"")},"");function ym(u){let e=this||{},t=u.call?u(e.p):u;return lU(t.unshift?t.raw?cU(t,[].slice.call(arguments,1),e.p):t.reduce((n,r)=>Object.assign(n,r&&r.call?r(e.p):r),{}):t,oU(e.target),e.g,e.o,e.k)}ym.bind({g:1});ym.bind({k:1});function Jy(u,e){for(var t=0;t=0)&&(t[r]=u[r]);return t}function Yy(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}var Zy=function(){return""},EU=F.createContext({enqueueSnackbar:Zy,closeSnackbar:Zy}),ka={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},Xy=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},vm=function(e){return""+Xy(e.vertical)+Xy(e.horizontal)},Wc=function(e){return!!e||e===0},qc="unmounted",rs="exited",is="entering",x3="entered",uv="exiting",Bm=function(u){G_(e,u);function e(n){var r;r=u.call(this,n)||this;var i=n.appear,a;return r.appearStatus=null,n.in?i?(a=rs,r.appearStatus=is):a=x3:n.unmountOnExit||n.mountOnEnter?a=qc:a=rs,r.state={status:a},r.nextCallback=null,r}e.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===qc?{status:rs}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==is&&a!==x3&&(i=is):(a===is||a===x3)&&(i=uv)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var r=this.props.timeout,i=r,a=r;return r!=null&&typeof r!="number"&&typeof r!="string"&&(a=r.exit,i=r.enter),{exit:a,enter:i}},t.updateStatus=function(r,i){r===void 0&&(r=!1),i!==null?(this.cancelNextCallback(),i===is?this.performEnter(r):this.performExit()):this.props.unmountOnExit&&this.state.status===rs&&this.setState({status:qc})},t.performEnter=function(r){var i=this,a=this.props.enter,o=r,s=this.getTimeouts();if(!r&&!a){this.safeSetState({status:x3},function(){i.props.onEntered&&i.props.onEntered(i.node,o)});return}this.props.onEnter&&this.props.onEnter(this.node,o),this.safeSetState({status:is},function(){i.props.onEntering&&i.props.onEntering(i.node,o),i.onTransitionEnd(s.enter,function(){i.safeSetState({status:x3},function(){i.props.onEntered&&i.props.onEntered(i.node,o)})})})},t.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:rs},function(){r.props.onExited&&r.props.onExited(r.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:uv},function(){r.props.onExiting&&r.props.onExiting(r.node),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:rs},function(){r.props.onExited&&r.props.onExited(r.node)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},t.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(){a&&(a=!1,i.nextCallback=null,r())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=r==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),r!=null&&setTimeout(this.nextCallback,r)},t.render=function(){var r=this.state.status;if(r===qc)return null;var i=this.props,a=i.children,o=N1(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(r,o)},H_(e,[{key:"node",get:function(){var r,i=(r=this.props.nodeRef)===null||r===void 0?void 0:r.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),e}(F.Component);function as(){}Bm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:as,onEntering:as,onEntered:as,onExit:as,onExiting:as,onExited:as};function ev(u,e){typeof u=="function"?u(e):u&&(u.current=e)}function _h(u,e){return w.useMemo(function(){return u==null&&e==null?null:function(t){ev(u,t),ev(e,t)}},[u,e])}function T5(u){var e=u.timeout,t=u.style,n=t===void 0?{}:t,r=u.mode;return{duration:typeof e=="object"?e[r]||0:e,easing:n.transitionTimingFunction,delay:n.transitionDelay}}var Sh={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},V_=function(e){e.scrollTop=e.scrollTop},tv=function(e){return Math.round(e)+"ms"};function js(u,e){u===void 0&&(u=["all"]);var t=e||{},n=t.duration,r=n===void 0?300:n,i=t.easing,a=i===void 0?Sh.easeInOut:i,o=t.delay,s=o===void 0?0:o,f=Array.isArray(u)?u:[u];return f.map(function(l){var c=typeof r=="string"?r:tv(r),E=typeof s=="string"?s:tv(s);return l+" "+c+" "+a+" "+E}).join(",")}function dU(u){return u&&u.ownerDocument||document}function K_(u){var e=dU(u);return e.defaultView||window}function pU(u,e){e===void 0&&(e=166);var t;function n(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o-1,A=b.snacks.findIndex(g)>-1;if(m||A)return b}return r.handleDisplaySnack(ou({},b,{queue:[].concat(b.queue,[h])}))}),d},r.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=r.maxSnack?r.handleDismissOldest(i):r.processQueue(i)},r.processQueue=function(i){var a=i.queue,o=i.snacks;return a.length>0?ou({},i,{snacks:[].concat(o,[a[0]]),queue:a.slice(1,a.length)}):i},r.handleDismissOldest=function(i){if(i.snacks.some(function(l){return!l.open||l.requestClose}))return i;var a=!1,o=!1,s=i.snacks.reduce(function(l,c){return l+(c.open&&c.persist?1:0)},0);s===r.maxSnack&&(o=!0);var f=i.snacks.map(function(l){return!a&&(!l.persist||o)?(a=!0,l.entered?(l.onClose&&l.onClose(null,"maxsnack",l.id),r.props.onClose&&r.props.onClose(null,"maxsnack",l.id),ou({},l,{open:!1})):ou({},l,{requestClose:!0})):ou({},l)});return ou({},i,{snacks:f})},r.handleEnteredSnack=function(i,a,o){if(!W1(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");r.setState(function(s){var f=s.snacks;return{snacks:f.map(function(l){return l.id===o?ou({},l,{entered:!0}):ou({},l)})}})},r.handleCloseSnack=function(i,a,o){r.props.onClose&&r.props.onClose(i,a,o);var s=o===void 0;r.setState(function(f){var l=f.snacks,c=f.queue;return{snacks:l.map(function(E){return!s&&E.id!==o?ou({},E):E.entered?ou({},E,{open:!1}):ou({},E,{requestClose:!0})}),queue:c.filter(function(E){return E.id!==o})}})},r.closeSnackbar=function(i){var a=r.state.snacks.find(function(o){return o.id===i});W1(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),r.handleCloseSnack(null,"instructed",i)},r.handleExitedSnack=function(i,a){if(!W1(a))throw new Error("handleExitedSnack Cannot be called with undefined key");r.setState(function(o){var s=r.processQueue(ou({},o,{snacks:o.snacks.filter(function(f){return f.id!==a})}));return s.queue.length===0?s:r.handleDismissOldest(s)})},r.enqueueSnackbar,r.closeSnackbar,r.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:r.enqueueSnackbar.bind(Yy(r)),closeSnackbar:r.closeSnackbar.bind(Yy(r))}},r}var t=e.prototype;return t.render=function(){var r=this,i=this.state.contextValue,a=this.props,o=a.domRoot,s=a.children,f=a.dense,l=f===void 0?!1:f,c=a.Components,E=c===void 0?{}:c,d=a.classes,p=this.state.snacks.reduce(function(b,g){var m,A=v7(g.anchorOrigin),y=b[A]||[];return ou({},b,(m={},m[A]=[].concat(y,[g]),m))},{}),h=Object.keys(p).map(function(b){var g=p[b],m=g[0];return F.createElement(kU,{key:b,dense:l,anchorOrigin:m.anchorOrigin,classes:d},g.map(function(A){return F.createElement(wU,{key:A.id,snack:A,classes:d,Component:E[A.variant],onClose:r.handleCloseSnack,onEnter:r.props.onEnter,onExit:r.props.onExit,onExited:cl([r.handleExitedSnack,r.props.onExited],A.id),onEntered:cl([r.handleEnteredSnack,r.props.onEntered],A.id)})}))});return F.createElement(aU.Provider,{value:i},s,o?A7.createPortal(h,o):h)},U_(e,[{key:"maxSnack",get:function(){return this.props.maxSnack||Eo.maxSnack}}]),e}(w.Component);/** + 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},gU=function(){return F.createElement(l9,null,F.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, + 0 22,12A10,10 0 0,0 12,2Z`}))},AU={default:void 0,success:F.createElement(CU,null),warning:F.createElement(mU,null),error:F.createElement(bU,null),info:F.createElement(gU,null)},Eo={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:AU,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Q_,transitionDuration:{enter:225,exit:195}},yU=function(e,t){var n=function(i){return typeof i=="number"||i===null};return n(e)?e:n(t)?t:Eo.autoHideDuration},vU=function(e,t){var n=function(i,a){return a.some(function(o){return typeof i===o})};return n(e,["string","number"])?e:n(e,["object"])?ou({},Eo.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?ou({},Eo.transitionDuration,{},t):Eo.transitionDuration},BU=function(e,t){return function(n,r){return r===void 0&&(r=!1),r?ou({},Eo[n],{},t[n],{},e[n]):n==="autoHideDuration"?yU(e.autoHideDuration,t.autoHideDuration):n==="transitionDuration"?vU(e.transitionDuration,t.transitionDuration):e[n]||t[n]||Eo[n]}};function R1(u){return Object.entries(u).reduce(function(e,t){var n,r=t[0],i=t[1];return ou({},e,(n={},n[r]=ym(i),n))},{})}var ef={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(e){return"notistack-MuiContent-"+e}},nv=R1({root:{height:0},entered:{height:"auto"}}),c8="0px",E8=175,J_=w.forwardRef(function(u,e){var t=u.children,n=u.in,r=u.onExited,i=w.useRef(null),a=w.useRef(null),o=_h(e,a),s=function(){return i.current?i.current.clientHeight:0},f=function(h){h.style.height=c8},l=function(h){var g=s(),b=T5({timeout:E8,mode:"enter"}),m=b.duration,A=b.easing;h.style.transitionDuration=typeof m=="string"?m:m+"ms",h.style.height=g+"px",h.style.transitionTimingFunction=A||""},c=function(h){h.style.height="auto"},E=function(h){h.style.height=s()+"px"},d=function(h){V_(h);var g=T5({timeout:E8,mode:"exit"}),b=g.duration,m=g.easing;h.style.transitionDuration=typeof b=="string"?b:b+"ms",h.style.height=c8,h.style.transitionTimingFunction=m||""};return w.createElement(Bm,{in:n,unmountOnExit:!0,onEnter:f,onEntered:c,onEntering:l,onExit:E,onExited:r,onExiting:d,nodeRef:a,timeout:E8},function(p,h){return w.createElement("div",Object.assign({ref:o,className:Lo(nv.root,p==="entered"&&nv.entered),style:ou({pointerEvents:"all",overflow:"hidden",minHeight:c8,transition:js("height")},p==="entered"&&{overflow:"visible"},{},p==="exited"&&!n&&{visibility:"hidden"})},h),w.createElement("div",{ref:i,className:ef.CollapseWrapper,style:{display:"flex",width:"100%"}},t))})});J_.displayName="Collapse";var rv={right:"left",left:"right",bottom:"up",top:"down"},FU=function(e){return e.horizontal!=="center"?rv[e.horizontal]:rv[e.vertical]},DU=function(e){return"anchorOrigin"+vm(e)},wU=function(e){e===void 0&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter(function(n){return!t[n]}).reduce(function(n,r){var i;return ou({},n,(i={},i[r]=e[r],i))},{})},xU=function(){};function dl(u,e){return u.reduce(function(t,n){return n==null?t:function(){for(var i=arguments.length,a=new Array(i),o=0;o-1,A=g.snacks.findIndex(b)>-1;if(m||A)return g}return r.handleDisplaySnack(ou({},g,{queue:[].concat(g.queue,[h])}))}),d},r.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=r.maxSnack?r.handleDismissOldest(i):r.processQueue(i)},r.processQueue=function(i){var a=i.queue,o=i.snacks;return a.length>0?ou({},i,{snacks:[].concat(o,[a[0]]),queue:a.slice(1,a.length)}):i},r.handleDismissOldest=function(i){if(i.snacks.some(function(l){return!l.open||l.requestClose}))return i;var a=!1,o=!1,s=i.snacks.reduce(function(l,c){return l+(c.open&&c.persist?1:0)},0);s===r.maxSnack&&(o=!0);var f=i.snacks.map(function(l){return!a&&(!l.persist||o)?(a=!0,l.entered?(l.onClose&&l.onClose(null,"maxsnack",l.id),r.props.onClose&&r.props.onClose(null,"maxsnack",l.id),ou({},l,{open:!1})):ou({},l,{requestClose:!0})):ou({},l)});return ou({},i,{snacks:f})},r.handleEnteredSnack=function(i,a,o){if(!Wc(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");r.setState(function(s){var f=s.snacks;return{snacks:f.map(function(l){return l.id===o?ou({},l,{entered:!0}):ou({},l)})}})},r.handleCloseSnack=function(i,a,o){r.props.onClose&&r.props.onClose(i,a,o);var s=o===void 0;r.setState(function(f){var l=f.snacks,c=f.queue;return{snacks:l.map(function(E){return!s&&E.id!==o?ou({},E):E.entered?ou({},E,{open:!1}):ou({},E,{requestClose:!0})}),queue:c.filter(function(E){return E.id!==o})}})},r.closeSnackbar=function(i){var a=r.state.snacks.find(function(o){return o.id===i});Wc(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),r.handleCloseSnack(null,"instructed",i)},r.handleExitedSnack=function(i,a){if(!Wc(a))throw new Error("handleExitedSnack Cannot be called with undefined key");r.setState(function(o){var s=r.processQueue(ou({},o,{snacks:o.snacks.filter(function(f){return f.id!==a})}));return s.queue.length===0?s:r.handleDismissOldest(s)})},r.enqueueSnackbar,r.closeSnackbar,r.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:r.enqueueSnackbar.bind(Yy(r)),closeSnackbar:r.closeSnackbar.bind(Yy(r))}},r}var t=e.prototype;return t.render=function(){var r=this,i=this.state.contextValue,a=this.props,o=a.domRoot,s=a.children,f=a.dense,l=f===void 0?!1:f,c=a.Components,E=c===void 0?{}:c,d=a.classes,p=this.state.snacks.reduce(function(g,b){var m,A=vm(b.anchorOrigin),y=g[A]||[];return ou({},g,(m={},m[A]=[].concat(y,[b]),m))},{}),h=Object.keys(p).map(function(g){var b=p[g],m=b[0];return F.createElement(IU,{key:g,dense:l,anchorOrigin:m.anchorOrigin,classes:d},b.map(function(A){return F.createElement(PU,{key:A.id,snack:A,classes:d,Component:E[A.variant],onClose:r.handleCloseSnack,onEnter:r.props.onEnter,onExit:r.props.onExit,onExited:dl([r.handleExitedSnack,r.props.onExited],A.id),onEntered:dl([r.handleEnteredSnack,r.props.onEntered],A.id)})}))});return F.createElement(EU.Provider,{value:i},s,o?Am.createPortal(h,o):h)},H_(e,[{key:"maxSnack",get:function(){return this.props.maxSnack||Eo.maxSnack}}]),e}(w.Component);/** * @remix-run/router v1.13.0 * * Copyright (c) Remix Software Inc. @@ -50,7 +50,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ml(){return Ml=Object.assign?Object.assign.bind():function(u){for(var e=1;e"u")throw new Error(e)}function F7(u,e){if(!u){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function TU(){return Math.random().toString(36).substr(2,8)}function lv(u,e){return{usr:u.state,key:u.key,idx:e}}function Th(u,e,t,n){return t===void 0&&(t=null),Ml({pathname:typeof u=="string"?u:u.pathname,search:"",hash:""},typeof e=="string"?z3(e):e,{state:t,key:e&&e.key||n||TU()})}function Y_(u){let{pathname:e="/",search:t="",hash:n=""}=u;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function z3(u){let e={};if(u){let t=u.indexOf("#");t>=0&&(e.hash=u.substr(t),u=u.substr(0,t));let n=u.indexOf("?");n>=0&&(e.search=u.substr(n),u=u.substr(0,n)),u&&(e.pathname=u)}return e}function PU(u,e,t,n){n===void 0&&(n={});let{window:r=document.defaultView,v5Compat:i=!1}=n,a=r.history,o=Hi.Pop,s=null,f=l();f==null&&(f=0,a.replaceState(Ml({},a.state,{idx:f}),""));function l(){return(a.state||{idx:null}).idx}function c(){o=Hi.Pop;let b=l(),g=b==null?null:b-f;f=b,s&&s({action:o,location:h.location,delta:g})}function E(b,g){o=Hi.Push;let m=Th(h.location,b,g);t&&t(m,b),f=l()+1;let A=lv(m,f),y=h.createHref(m);try{a.pushState(A,"",y)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;r.location.assign(y)}i&&s&&s({action:o,location:h.location,delta:1})}function d(b,g){o=Hi.Replace;let m=Th(h.location,b,g);t&&t(m,b),f=l();let A=lv(m,f),y=h.createHref(m);a.replaceState(A,"",y),i&&s&&s({action:o,location:h.location,delta:0})}function p(b){let g=r.location.origin!=="null"?r.location.origin:r.location.href,m=typeof b=="string"?b:Y_(b);return ue(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let h={get action(){return o},get location(){return u(r,a)},listen(b){if(s)throw new Error("A history only accepts one active listener");return r.addEventListener(fv,c),s=b,()=>{r.removeEventListener(fv,c),s=null}},createHref(b){return e(r,b)},createURL:p,encodeLocation(b){let g=p(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:E,replace:d,go(b){return a.go(b)}};return h}var cv;(function(u){u.data="data",u.deferred="deferred",u.redirect="redirect",u.error="error"})(cv||(cv={}));function OU(u,e,t){t===void 0&&(t="/");let n=typeof e=="string"?z3(e):e,r=uS(n.pathname||"/",t);if(r==null)return null;let i=Z_(u);IU(i);let a=null;for(let o=0;a==null&&o{let s={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(ue(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let f=po([n,s.relativePath]),l=t.concat(s);i.children&&i.children.length>0&&(ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),Z_(i.children,e,l,f)),!(i.path==null&&!i.index)&&e.push({path:f,score:$U(f,i.index),routesMeta:l})};return u.forEach((i,a)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))r(i,a);else for(let s of X_(i.path))r(i,a,s)}),e}function X_(u){let e=u.split("/");if(e.length===0)return[];let[t,...n]=e,r=t.endsWith("?"),i=t.replace(/\?$/,"");if(n.length===0)return r?[i,""]:[i];let a=X_(n.join("/")),o=[];return o.push(...a.map(s=>s===""?i:[i,s].join("/"))),r&&o.push(...a),o.map(s=>u.startsWith("/")&&s===""?"/":s)}function IU(u){u.sort((e,t)=>e.score!==t.score?t.score-e.score:UU(e.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}const NU=/^:\w+$/,RU=3,MU=2,jU=1,zU=10,LU=-2,Ev=u=>u==="*";function $U(u,e){let t=u.split("/"),n=t.length;return t.some(Ev)&&(n+=LU),e&&(n+=MU),t.filter(r=>!Ev(r)).reduce((r,i)=>r+(NU.test(i)?RU:i===""?jU:zU),n)}function UU(u,e){return u.length===e.length&&u.slice(0,-1).every((n,r)=>n===e[r])?u[u.length-1]-e[e.length-1]:0}function WU(u,e){let{routesMeta:t}=u,n={},r="/",i=[];for(let a=0;a{let{paramName:E,isOptional:d}=l;if(E==="*"){let h=o[c]||"";a=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}const p=o[c];return d&&!p?f[E]=void 0:f[E]=VU(p||"",E),f},{}),pathname:i,pathnameBase:a,pattern:u}}function HU(u,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),F7(u==="*"||!u.endsWith("*")||u.endsWith("/*"),'Route path "'+u+'" will be treated as if it were '+('"'+u.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+u.replace(/\*$/,"/*")+'".'));let n=[],r="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(a,o,s)=>(n.push({paramName:o,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return u.endsWith("*")?(n.push({paramName:"*"}),r+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?r+="\\/*$":u!==""&&u!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),n]}function GU(u){try{return decodeURI(u)}catch(e){return F7(!1,'The URL path "'+u+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),u}}function VU(u,e){try{return decodeURIComponent(u)}catch(t){return F7(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+u+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),u}}function uS(u,e){if(e==="/")return u;if(!u.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,n=u.charAt(t);return n&&n!=="/"?null:u.slice(t)||"/"}function KU(u,e){e===void 0&&(e="/");let{pathname:t,search:n="",hash:r=""}=typeof u=="string"?z3(u):u;return{pathname:t?t.startsWith("/")?t:QU(t,e):e,search:uW(n),hash:eW(r)}}function QU(u,e){let t=e.replace(/\/+$/,"").split("/");return u.split("/").forEach(r=>{r===".."?t.length>1&&t.pop():r!=="."&&t.push(r)}),t.length>1?t.join("/"):"/"}function mp(u,e,t,n){return"Cannot include a '"+u+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function JU(u){return u.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function YU(u){return JU(u).map((e,t)=>t===u.length-1?e.pathname:e.pathnameBase)}function ZU(u,e,t,n){n===void 0&&(n=!1);let r;typeof u=="string"?r=z3(u):(r=Ml({},u),ue(!r.pathname||!r.pathname.includes("?"),mp("?","pathname","search",r)),ue(!r.pathname||!r.pathname.includes("#"),mp("#","pathname","hash",r)),ue(!r.search||!r.search.includes("#"),mp("#","search","hash",r)));let i=u===""||r.pathname==="",a=i?"/":r.pathname,o;if(a==null)o=t;else if(n){let c=e[e.length-1].replace(/^\//,"").split("/");if(a.startsWith("..")){let E=a.split("/");for(;E[0]==="..";)E.shift(),c.pop();r.pathname=E.join("/")}o="/"+c.join("/")}else{let c=e.length-1;if(a.startsWith("..")){let E=a.split("/");for(;E[0]==="..";)E.shift(),c-=1;r.pathname=E.join("/")}o=c>=0?e[c]:"/"}let s=KU(r,o),f=a&&a!=="/"&&a.endsWith("/"),l=(i||a===".")&&t.endsWith("/");return!s.pathname.endsWith("/")&&(f||l)&&(s.pathname+="/"),s}const po=u=>u.join("/").replace(/\/\/+/g,"/"),XU=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),uW=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,eW=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u;function tW(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}const eS=["post","put","patch","delete"];new Set(eS);const nW=["get",...eS];new Set(nW);/** + */function zl(){return zl=Object.assign?Object.assign.bind():function(u){for(var e=1;e"u")throw new Error(e)}function Fm(u,e){if(!u){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function MU(){return Math.random().toString(36).substr(2,8)}function lv(u,e){return{usr:u.state,key:u.key,idx:e}}function Th(u,e,t,n){return t===void 0&&(t=null),zl({pathname:typeof u=="string"?u:u.pathname,search:"",hash:""},typeof e=="string"?Uf(e):e,{state:t,key:e&&e.key||n||MU()})}function uS(u){let{pathname:e="/",search:t="",hash:n=""}=u;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Uf(u){let e={};if(u){let t=u.indexOf("#");t>=0&&(e.hash=u.substr(t),u=u.substr(0,t));let n=u.indexOf("?");n>=0&&(e.search=u.substr(n),u=u.substr(0,n)),u&&(e.pathname=u)}return e}function jU(u,e,t,n){n===void 0&&(n={});let{window:r=document.defaultView,v5Compat:i=!1}=n,a=r.history,o=Hi.Pop,s=null,f=l();f==null&&(f=0,a.replaceState(zl({},a.state,{idx:f}),""));function l(){return(a.state||{idx:null}).idx}function c(){o=Hi.Pop;let g=l(),b=g==null?null:g-f;f=g,s&&s({action:o,location:h.location,delta:b})}function E(g,b){o=Hi.Push;let m=Th(h.location,g,b);t&&t(m,g),f=l()+1;let A=lv(m,f),y=h.createHref(m);try{a.pushState(A,"",y)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;r.location.assign(y)}i&&s&&s({action:o,location:h.location,delta:1})}function d(g,b){o=Hi.Replace;let m=Th(h.location,g,b);t&&t(m,g),f=l();let A=lv(m,f),y=h.createHref(m);a.replaceState(A,"",y),i&&s&&s({action:o,location:h.location,delta:0})}function p(g){let b=r.location.origin!=="null"?r.location.origin:r.location.href,m=typeof g=="string"?g:uS(g);return ue(b,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,b)}let h={get action(){return o},get location(){return u(r,a)},listen(g){if(s)throw new Error("A history only accepts one active listener");return r.addEventListener(fv,c),s=g,()=>{r.removeEventListener(fv,c),s=null}},createHref(g){return e(r,g)},createURL:p,encodeLocation(g){let b=p(g);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:E,replace:d,go(g){return a.go(g)}};return h}var cv;(function(u){u.data="data",u.deferred="deferred",u.redirect="redirect",u.error="error"})(cv||(cv={}));function zU(u,e,t){t===void 0&&(t="/");let n=typeof e=="string"?Uf(e):e,r=nS(n.pathname||"/",t);if(r==null)return null;let i=eS(u);LU(i);let a=null;for(let o=0;a==null&&o{let s={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(ue(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let f=po([n,s.relativePath]),l=t.concat(s);i.children&&i.children.length>0&&(ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),eS(i.children,e,l,f)),!(i.path==null&&!i.index)&&e.push({path:f,score:VU(f,i.index),routesMeta:l})};return u.forEach((i,a)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))r(i,a);else for(let s of tS(i.path))r(i,a,s)}),e}function tS(u){let e=u.split("/");if(e.length===0)return[];let[t,...n]=e,r=t.endsWith("?"),i=t.replace(/\?$/,"");if(n.length===0)return r?[i,""]:[i];let a=tS(n.join("/")),o=[];return o.push(...a.map(s=>s===""?i:[i,s].join("/"))),r&&o.push(...a),o.map(s=>u.startsWith("/")&&s===""?"/":s)}function LU(u){u.sort((e,t)=>e.score!==t.score?t.score-e.score:KU(e.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}const $U=/^:\w+$/,UU=3,WU=2,qU=1,HU=10,GU=-2,Ev=u=>u==="*";function VU(u,e){let t=u.split("/"),n=t.length;return t.some(Ev)&&(n+=GU),e&&(n+=WU),t.filter(r=>!Ev(r)).reduce((r,i)=>r+($U.test(i)?UU:i===""?qU:HU),n)}function KU(u,e){return u.length===e.length&&u.slice(0,-1).every((n,r)=>n===e[r])?u[u.length-1]-e[e.length-1]:0}function QU(u,e){let{routesMeta:t}=u,n={},r="/",i=[];for(let a=0;a{let{paramName:E,isOptional:d}=l;if(E==="*"){let h=o[c]||"";a=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}const p=o[c];return d&&!p?f[E]=void 0:f[E]=XU(p||"",E),f},{}),pathname:i,pathnameBase:a,pattern:u}}function YU(u,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),Fm(u==="*"||!u.endsWith("*")||u.endsWith("/*"),'Route path "'+u+'" will be treated as if it were '+('"'+u.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+u.replace(/\*$/,"/*")+'".'));let n=[],r="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(a,o,s)=>(n.push({paramName:o,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return u.endsWith("*")?(n.push({paramName:"*"}),r+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?r+="\\/*$":u!==""&&u!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),n]}function ZU(u){try{return decodeURI(u)}catch(e){return Fm(!1,'The URL path "'+u+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),u}}function XU(u,e){try{return decodeURIComponent(u)}catch(t){return Fm(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+u+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),u}}function nS(u,e){if(e==="/")return u;if(!u.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,n=u.charAt(t);return n&&n!=="/"?null:u.slice(t)||"/"}function uW(u,e){e===void 0&&(e="/");let{pathname:t,search:n="",hash:r=""}=typeof u=="string"?Uf(u):u;return{pathname:t?t.startsWith("/")?t:eW(t,e):e,search:aW(n),hash:oW(r)}}function eW(u,e){let t=e.replace(/\/+$/,"").split("/");return u.split("/").forEach(r=>{r===".."?t.length>1&&t.pop():r!=="."&&t.push(r)}),t.length>1?t.join("/"):"/"}function m8(u,e,t,n){return"Cannot include a '"+u+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function tW(u){return u.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function nW(u){return tW(u).map((e,t)=>t===u.length-1?e.pathname:e.pathnameBase)}function rW(u,e,t,n){n===void 0&&(n=!1);let r;typeof u=="string"?r=Uf(u):(r=zl({},u),ue(!r.pathname||!r.pathname.includes("?"),m8("?","pathname","search",r)),ue(!r.pathname||!r.pathname.includes("#"),m8("#","pathname","hash",r)),ue(!r.search||!r.search.includes("#"),m8("#","search","hash",r)));let i=u===""||r.pathname==="",a=i?"/":r.pathname,o;if(a==null)o=t;else if(n){let c=e[e.length-1].replace(/^\//,"").split("/");if(a.startsWith("..")){let E=a.split("/");for(;E[0]==="..";)E.shift(),c.pop();r.pathname=E.join("/")}o="/"+c.join("/")}else{let c=e.length-1;if(a.startsWith("..")){let E=a.split("/");for(;E[0]==="..";)E.shift(),c-=1;r.pathname=E.join("/")}o=c>=0?e[c]:"/"}let s=uW(r,o),f=a&&a!=="/"&&a.endsWith("/"),l=(i||a===".")&&t.endsWith("/");return!s.pathname.endsWith("/")&&(f||l)&&(s.pathname+="/"),s}const po=u=>u.join("/").replace(/\/\/+/g,"/"),iW=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),aW=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,oW=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u;function sW(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}const rS=["post","put","patch","delete"];new Set(rS);const fW=["get",...rS];new Set(fW);/** * React Router v6.20.0 * * Copyright (c) Remix Software Inc. @@ -59,7 +59,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function P2(){return P2=Object.assign?Object.assign.bind():function(u){for(var e=1;e{a.current=!0}),w.useCallback(function(s,f){if(f===void 0&&(f={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let l=ZU(s,JSON.parse(i),r,f.relative==="path");u==null&&e!=="/"&&(l.pathname=l.pathname==="/"?e:po([e,l.pathname])),(f.replace?t.replace:t.push)(l,f.state,f)},[e,t,i,r,u])}function aS(){let{matches:u}=w.useContext($o),e=u[u.length-1];return e?e.params:{}}function aW(u,e){return oW(u,e)}function oW(u,e,t){dE()||ue(!1);let{navigator:n}=w.useContext(cE),{matches:r}=w.useContext($o),i=r[r.length-1],a=i?i.params:{};i&&i.pathname;let o=i?i.pathnameBase:"/";i&&i.route;let s=nS(),f;if(e){var l;let h=typeof e=="string"?z3(e):e;o==="/"||(l=h.pathname)!=null&&l.startsWith(o)||ue(!1),f=h}else f=s;let c=f.pathname||"/",E=o==="/"?c:c.slice(o.length)||"/",d=OU(u,{pathname:E}),p=EW(d&&d.map(h=>Object.assign({},h,{params:Object.assign({},a,h.params),pathname:po([o,n.encodeLocation?n.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?o:po([o,n.encodeLocation?n.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),r,t);return e&&p?w.createElement(EE.Provider,{value:{location:P2({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Hi.Pop}},p):p}function sW(){let u=CW(),e=tW(u)?u.status+" "+u.statusText:u instanceof Error?u.message:JSON.stringify(u),t=u instanceof Error?u.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},e),t?w.createElement("pre",{style:r},t):null,i)}const fW=w.createElement(sW,null);class lW extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?w.createElement($o.Provider,{value:this.props.routeContext},w.createElement(tS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cW(u){let{routeContext:e,match:t,children:n}=u,r=w.useContext(D7);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement($o.Provider,{value:e},n)}function EW(u,e,t){var n;if(e===void 0&&(e=[]),t===void 0&&(t=null),u==null){var r;if((r=t)!=null&&r.errors)u=t.matches;else return null}let i=u,a=(n=t)==null?void 0:n.errors;if(a!=null){let o=i.findIndex(s=>s.route.id&&(a==null?void 0:a[s.route.id]));o>=0||ue(!1),i=i.slice(0,Math.min(i.length,o+1))}return i.reduceRight((o,s,f)=>{let l=s.route.id?a==null?void 0:a[s.route.id]:null,c=null;t&&(c=s.route.errorElement||fW);let E=e.concat(i.slice(0,f+1)),d=()=>{let p;return l?p=c:s.route.Component?p=w.createElement(s.route.Component,null):s.route.element?p=s.route.element:p=o,w.createElement(cW,{match:s,routeContext:{outlet:o,matches:E,isDataRoute:t!=null},children:p})};return t&&(s.route.ErrorBoundary||s.route.errorElement||f===0)?w.createElement(lW,{location:t.location,revalidation:t.revalidation,component:c,error:l,children:d(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):d()},null)}var oS=function(u){return u.UseBlocker="useBlocker",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u}(oS||{}),O2=function(u){return u.UseBlocker="useBlocker",u.UseLoaderData="useLoaderData",u.UseActionData="useActionData",u.UseRouteError="useRouteError",u.UseNavigation="useNavigation",u.UseRouteLoaderData="useRouteLoaderData",u.UseMatches="useMatches",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u.UseRouteId="useRouteId",u}(O2||{});function dW(u){let e=w.useContext(D7);return e||ue(!1),e}function pW(u){let e=w.useContext(rW);return e||ue(!1),e}function hW(u){let e=w.useContext($o);return e||ue(!1),e}function sS(u){let e=hW(),t=e.matches[e.matches.length-1];return t.route.id||ue(!1),t.route.id}function CW(){var u;let e=w.useContext(tS),t=pW(O2.UseRouteError),n=sS(O2.UseRouteError);return e||((u=t.errors)==null?void 0:u[n])}function mW(){let{router:u}=dW(oS.UseNavigateStable),e=sS(O2.UseNavigateStable),t=w.useRef(!1);return rS(()=>{t.current=!0}),w.useCallback(function(r,i){i===void 0&&(i={}),t.current&&(typeof r=="number"?u.navigate(r):u.navigate(r,P2({fromRouteId:e},i)))},[u,e])}function Wf(u){ue(!1)}function gW(u){let{basename:e="/",children:t=null,location:n,navigationType:r=Hi.Pop,navigator:i,static:a=!1}=u;dE()&&ue(!1);let o=e.replace(/^\/*/,"/"),s=w.useMemo(()=>({basename:o,navigator:i,static:a}),[o,i,a]);typeof n=="string"&&(n=z3(n));let{pathname:f="/",search:l="",hash:c="",state:E=null,key:d="default"}=n,p=w.useMemo(()=>{let h=uS(f,o);return h==null?null:{location:{pathname:h,search:l,hash:c,state:E,key:d},navigationType:r}},[o,f,l,c,E,d,r]);return p==null?null:w.createElement(cE.Provider,{value:s},w.createElement(EE.Provider,{children:t,value:p}))}function bW(u){let{children:e,location:t}=u;return aW(Ph(e),t)}new Promise(()=>{});function Ph(u,e){e===void 0&&(e=[]);let t=[];return w.Children.forEach(u,(n,r)=>{if(!w.isValidElement(n))return;let i=[...e,r];if(n.type===w.Fragment){t.push.apply(t,Ph(n.props.children,i));return}n.type!==Wf&&ue(!1),!n.props.index||!n.props.children||ue(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=Ph(n.props.children,i)),t.push(a)}),t}/** + */function P5(){return P5=Object.assign?Object.assign.bind():function(u){for(var e=1;e{a.current=!0}),w.useCallback(function(s,f){if(f===void 0&&(f={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let l=rW(s,JSON.parse(i),r,f.relative==="path");u==null&&e!=="/"&&(l.pathname=l.pathname==="/"?e:po([e,l.pathname])),(f.replace?t.replace:t.push)(l,f.state,f)},[e,t,i,r,u])}function fS(){let{matches:u}=w.useContext($o),e=u[u.length-1];return e?e.params:{}}function EW(u,e){return dW(u,e)}function dW(u,e,t){d9()||ue(!1);let{navigator:n}=w.useContext(c9),{matches:r}=w.useContext($o),i=r[r.length-1],a=i?i.params:{};i&&i.pathname;let o=i?i.pathnameBase:"/";i&&i.route;let s=aS(),f;if(e){var l;let h=typeof e=="string"?Uf(e):e;o==="/"||(l=h.pathname)!=null&&l.startsWith(o)||ue(!1),f=h}else f=s;let c=f.pathname||"/",E=o==="/"?c:c.slice(o.length)||"/",d=zU(u,{pathname:E}),p=bW(d&&d.map(h=>Object.assign({},h,{params:Object.assign({},a,h.params),pathname:po([o,n.encodeLocation?n.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?o:po([o,n.encodeLocation?n.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),r,t);return e&&p?w.createElement(E9.Provider,{value:{location:P5({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Hi.Pop}},p):p}function pW(){let u=vW(),e=sW(u)?u.status+" "+u.statusText:u instanceof Error?u.message:JSON.stringify(u),t=u instanceof Error?u.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},e),t?w.createElement("pre",{style:r},t):null,i)}const hW=w.createElement(pW,null);class CW extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?w.createElement($o.Provider,{value:this.props.routeContext},w.createElement(iS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mW(u){let{routeContext:e,match:t,children:n}=u,r=w.useContext(Dm);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement($o.Provider,{value:e},n)}function bW(u,e,t){var n;if(e===void 0&&(e=[]),t===void 0&&(t=null),u==null){var r;if((r=t)!=null&&r.errors)u=t.matches;else return null}let i=u,a=(n=t)==null?void 0:n.errors;if(a!=null){let o=i.findIndex(s=>s.route.id&&(a==null?void 0:a[s.route.id]));o>=0||ue(!1),i=i.slice(0,Math.min(i.length,o+1))}return i.reduceRight((o,s,f)=>{let l=s.route.id?a==null?void 0:a[s.route.id]:null,c=null;t&&(c=s.route.errorElement||hW);let E=e.concat(i.slice(0,f+1)),d=()=>{let p;return l?p=c:s.route.Component?p=w.createElement(s.route.Component,null):s.route.element?p=s.route.element:p=o,w.createElement(mW,{match:s,routeContext:{outlet:o,matches:E,isDataRoute:t!=null},children:p})};return t&&(s.route.ErrorBoundary||s.route.errorElement||f===0)?w.createElement(CW,{location:t.location,revalidation:t.revalidation,component:c,error:l,children:d(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):d()},null)}var lS=function(u){return u.UseBlocker="useBlocker",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u}(lS||{}),O5=function(u){return u.UseBlocker="useBlocker",u.UseLoaderData="useLoaderData",u.UseActionData="useActionData",u.UseRouteError="useRouteError",u.UseNavigation="useNavigation",u.UseRouteLoaderData="useRouteLoaderData",u.UseMatches="useMatches",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u.UseRouteId="useRouteId",u}(O5||{});function gW(u){let e=w.useContext(Dm);return e||ue(!1),e}function AW(u){let e=w.useContext(lW);return e||ue(!1),e}function yW(u){let e=w.useContext($o);return e||ue(!1),e}function cS(u){let e=yW(),t=e.matches[e.matches.length-1];return t.route.id||ue(!1),t.route.id}function vW(){var u;let e=w.useContext(iS),t=AW(O5.UseRouteError),n=cS(O5.UseRouteError);return e||((u=t.errors)==null?void 0:u[n])}function BW(){let{router:u}=gW(lS.UseNavigateStable),e=cS(O5.UseNavigateStable),t=w.useRef(!1);return oS(()=>{t.current=!0}),w.useCallback(function(r,i){i===void 0&&(i={}),t.current&&(typeof r=="number"?u.navigate(r):u.navigate(r,P5({fromRouteId:e},i)))},[u,e])}function H3(u){ue(!1)}function FW(u){let{basename:e="/",children:t=null,location:n,navigationType:r=Hi.Pop,navigator:i,static:a=!1}=u;d9()&&ue(!1);let o=e.replace(/^\/*/,"/"),s=w.useMemo(()=>({basename:o,navigator:i,static:a}),[o,i,a]);typeof n=="string"&&(n=Uf(n));let{pathname:f="/",search:l="",hash:c="",state:E=null,key:d="default"}=n,p=w.useMemo(()=>{let h=nS(f,o);return h==null?null:{location:{pathname:h,search:l,hash:c,state:E,key:d},navigationType:r}},[o,f,l,c,E,d,r]);return p==null?null:w.createElement(c9.Provider,{value:s},w.createElement(E9.Provider,{children:t,value:p}))}function DW(u){let{children:e,location:t}=u;return EW(Ph(e),t)}new Promise(()=>{});function Ph(u,e){e===void 0&&(e=[]);let t=[];return w.Children.forEach(u,(n,r)=>{if(!w.isValidElement(n))return;let i=[...e,r];if(n.type===w.Fragment){t.push.apply(t,Ph(n.props.children,i));return}n.type!==H3&&ue(!1),!n.props.index||!n.props.children||ue(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=Ph(n.props.children,i)),t.push(a)}),t}/** * React Router DOM v6.20.0 * * Copyright (c) Remix Software Inc. @@ -68,14 +68,14 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */const AW="startTransition",dv=N8[AW];function yW(u){let{basename:e,children:t,future:n,window:r}=u,i=w.useRef();i.current==null&&(i.current=SU({window:r,v5Compat:!0}));let a=i.current,[o,s]=w.useState({action:a.action,location:a.location}),{v7_startTransition:f}=n||{},l=w.useCallback(c=>{f&&dv?dv(()=>s(c)):s(c)},[s,f]);return w.useLayoutEffect(()=>a.listen(l),[a,l]),w.createElement(gW,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}var pv;(function(u){u.UseScrollRestoration="useScrollRestoration",u.UseSubmit="useSubmit",u.UseSubmitFetcher="useSubmitFetcher",u.UseFetcher="useFetcher",u.useViewTransitionState="useViewTransitionState"})(pv||(pv={}));var hv;(function(u){u.UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration"})(hv||(hv={}));function cu(u,e){if(u==null)return{};var t={},n=Object.keys(u),r,i;for(i=0;i=0)&&(t[r]=u[r]);return t}function r0(){return r0=Object.assign?Object.assign.bind():function(u){for(var e=1;e{e[t]=lS(u[t])}),e}function Mt(u,e,t={clone:!0}){const n=t.clone?r0({},u):u;return zr(u)&&zr(e)&&Object.keys(e).forEach(r=>{r!=="__proto__"&&(zr(e[r])&&r in u&&zr(u[r])?n[r]=Mt(u[r],e[r],t):t.clone?n[r]=zr(e[r])?lS(e[r]):e[r]:n[r]=e[r])}),n}function t3(u){let e="https://mui.com/production-error/?code="+u;for(let t=1;t{e.current=u}),w.useRef((...t)=>(0,e.current)(...t)).current}function I2(...u){return w.useMemo(()=>u.every(e=>e==null)?null:e=>{u.forEach(t=>{vW(t,e)})},u)}let pE=!0,Oh=!1,Cv;const DW={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function wW(u){const{type:e,tagName:t}=u;return!!(t==="INPUT"&&DW[e]&&!u.readOnly||t==="TEXTAREA"&&!u.readOnly||u.isContentEditable)}function xW(u){u.metaKey||u.altKey||u.ctrlKey||(pE=!0)}function gp(){pE=!1}function kW(){this.visibilityState==="hidden"&&Oh&&(pE=!0)}function _W(u){u.addEventListener("keydown",xW,!0),u.addEventListener("mousedown",gp,!0),u.addEventListener("pointerdown",gp,!0),u.addEventListener("touchstart",gp,!0),u.addEventListener("visibilitychange",kW,!0)}function SW(u){const{target:e}=u;try{return e.matches(":focus-visible")}catch{}return pE||wW(e)}function cS(){const u=w.useCallback(r=>{r!=null&&_W(r.ownerDocument)},[]),e=w.useRef(!1);function t(){return e.current?(Oh=!0,window.clearTimeout(Cv),Cv=window.setTimeout(()=>{Oh=!1},100),e.current=!1,!0):!1}function n(r){return SW(r)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:n,onBlur:t,ref:u}}function w7(u,e){const t=r0({},e);return Object.keys(u).forEach(n=>{if(n.toString().match(/^(components|slots)$/))t[n]=r0({},u[n],t[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const r=u[n]||{},i=e[n];t[n]={},!i||!Object.keys(i)?t[n]=r:!r||!Object.keys(r)?t[n]=i:(t[n]=r0({},i),Object.keys(r).forEach(a=>{t[n][a]=w7(r[a],i[a])}))}else t[n]===void 0&&(t[n]=u[n])}),t}function mt(u,e,t=void 0){const n={};return Object.keys(u).forEach(r=>{n[r]=u[r].reduce((i,a)=>{if(a){const o=e(a);o!==""&&i.push(o),t&&t[a]&&i.push(t[a])}return i},[]).join(" ")}),n}const mv=u=>u,TW=()=>{let u=mv;return{configure(e){u=e},generate(e){return u(e)},reset(){u=mv}}},PW=TW(),ES=PW,OW={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Xe(u,e,t="Mui"){const n=OW[e];return n?`${t}-${n}`:`${ES.generate(u)}-${e}`}function gt(u,e,t="Mui"){const n={};return e.forEach(r=>{n[r]=Xe(u,r,t)}),n}function dS(u){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=u(t)),e[t]}}var IW=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,NW=dS(function(u){return IW.test(u)||u.charCodeAt(0)===111&&u.charCodeAt(1)===110&&u.charCodeAt(2)<91});function RW(u){if(u.sheet)return u.sheet;for(var e=0;e0?he(L3,--Et):0,n3--,Wu===10&&(n3=1,CE--),Wu}function jt(){return Wu=Et2||zl(Wu)>3?"":" "}function QW(u,e){for(;--e&&jt()&&!(Wu<48||Wu>102||Wu>57&&Wu<65||Wu>70&&Wu<97););return Rc(u,R6()+(e<6&&cr()==32&&jt()==32))}function Nh(u){for(;jt();)switch(Wu){case u:return Et;case 34:case 39:u!==34&&u!==39&&Nh(Wu);break;case 40:u===41&&Nh(u);break;case 92:jt();break}return Et}function JW(u,e){for(;jt()&&u+Wu!==57;)if(u+Wu===84&&cr()===47)break;return"/*"+Rc(e,Et-1)+"*"+hE(u===47?u:jt())}function YW(u){for(;!zl(cr());)jt();return Rc(u,Et)}function ZW(u){return bS(j6("",null,null,null,[""],u=gS(u),0,[0],u))}function j6(u,e,t,n,r,i,a,o,s){for(var f=0,l=0,c=a,E=0,d=0,p=0,h=1,b=1,g=1,m=0,A="",y=r,B=i,v=n,C=A;b;)switch(p=m,m=jt()){case 40:if(p!=108&&he(C,c-1)==58){Ih(C+=eu(M6(m),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:C+=M6(m);break;case 9:case 10:case 13:case 32:C+=KW(p);break;case 92:C+=QW(R6()-1,7);continue;case 47:switch(cr()){case 42:case 47:J1(XW(JW(jt(),R6()),e,t),s);break;default:C+="/"}break;case 123*h:o[f++]=er(C)*g;case 125*h:case 59:case 0:switch(m){case 0:case 125:b=0;case 59+l:g==-1&&(C=eu(C,/\f/g,"")),d>0&&er(C)-c&&J1(d>32?bv(C+";",n,t,c-1):bv(eu(C," ","")+";",n,t,c-2),s);break;case 59:C+=";";default:if(J1(v=gv(C,e,t,f,l,r,o,A,y=[],B=[],c),i),m===123)if(l===0)j6(C,e,v,v,y,i,c,o,B);else switch(E===99&&he(C,3)===110?100:E){case 100:case 108:case 109:case 115:j6(u,v,v,n&&J1(gv(u,v,v,0,0,r,o,A,r,y=[],c),B),r,B,c,o,n?y:B);break;default:j6(C,v,v,v,[""],B,0,o,B)}}f=l=d=0,h=g=1,A=C="",c=a;break;case 58:c=1+er(C),d=p;default:if(h<1){if(m==123)--h;else if(m==125&&h++==0&&VW()==125)continue}switch(C+=hE(m),m*h){case 38:g=l>0?1:(C+="\f",-1);break;case 44:o[f++]=(er(C)-1)*g,g=1;break;case 64:cr()===45&&(C+=M6(jt())),E=cr(),l=c=er(A=C+=YW(R6())),m++;break;case 45:p===45&&er(C)==2&&(h=0)}}return i}function gv(u,e,t,n,r,i,a,o,s,f,l){for(var c=r-1,E=r===0?i:[""],d=_7(E),p=0,h=0,b=0;p0?E[g]+" "+m:eu(m,/&\f/g,E[g])))&&(s[b++]=A);return mE(u,e,t,r===0?x7:o,s,f,l)}function XW(u,e,t){return mE(u,e,t,pS,hE(GW()),jl(u,2,-2),0)}function bv(u,e,t,n){return mE(u,e,t,k7,jl(u,0,n),jl(u,n+1,-1),n)}function u4(u,e){for(var t="",n=_7(u),r=0;r6)switch(he(u,e+1)){case 109:if(he(u,e+4)!==45)break;case 102:return eu(u,/(.+:)(.+)-([^]+)/,"$1"+uu+"$2-$3$1"+N2+(he(u,e+3)==108?"$3":"$2-$3"))+u;case 115:return~Ih(u,"stretch")?AS(eu(u,"stretch","fill-available"),e)+u:u}break;case 4949:if(he(u,e+1)!==115)break;case 6444:switch(he(u,er(u)-3-(~Ih(u,"!important")&&10))){case 107:return eu(u,":",":"+uu)+u;case 101:return eu(u,/(.+:)([^;!]+)(;|!.+)?/,"$1"+uu+(he(u,14)===45?"inline-":"")+"box$3$1"+uu+"$2$3$1"+De+"$2box$3")+u}break;case 5936:switch(he(u,e+11)){case 114:return uu+u+De+eu(u,/[svh]\w+-[tblr]{2}/,"tb")+u;case 108:return uu+u+De+eu(u,/[svh]\w+-[tblr]{2}/,"tb-rl")+u;case 45:return uu+u+De+eu(u,/[svh]\w+-[tblr]{2}/,"lr")+u}return uu+u+De+u+u}return u}var sq=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case k7:e.return=AS(e.value,e.length);break;case hS:return u4([kf(e,{value:eu(e.value,"@","@"+uu)})],r);case x7:if(e.length)return HW(e.props,function(i){switch(qW(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return u4([kf(e,{props:[eu(i,/:(read-\w+)/,":"+N2+"$1")]})],r);case"::placeholder":return u4([kf(e,{props:[eu(i,/:(plac\w+)/,":"+uu+"input-$1")]}),kf(e,{props:[eu(i,/:(plac\w+)/,":"+N2+"$1")]}),kf(e,{props:[eu(i,/:(plac\w+)/,De+"input-$1")]})],r)}return""})}},fq=[sq],lq=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(h){var b=h.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var r=e.stylisPlugins||fq,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var b=h.getAttribute("data-emotion").split(" "),g=1;g{f&&dv?dv(()=>s(c)):s(c)},[s,f]);return w.useLayoutEffect(()=>a.listen(l),[a,l]),w.createElement(FW,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}var pv;(function(u){u.UseScrollRestoration="useScrollRestoration",u.UseSubmit="useSubmit",u.UseSubmitFetcher="useSubmitFetcher",u.UseFetcher="useFetcher",u.useViewTransitionState="useViewTransitionState"})(pv||(pv={}));var hv;(function(u){u.UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration"})(hv||(hv={}));function cu(u,e){if(u==null)return{};var t={},n=Object.keys(u),r,i;for(i=0;i=0)&&(t[r]=u[r]);return t}function r0(){return r0=Object.assign?Object.assign.bind():function(u){for(var e=1;e{e[t]=dS(u[t])}),e}function Mt(u,e,t={clone:!0}){const n=t.clone?r0({},u):u;return zr(u)&&zr(e)&&Object.keys(e).forEach(r=>{r!=="__proto__"&&(zr(e[r])&&r in u&&zr(u[r])?n[r]=Mt(u[r],e[r],t):t.clone?n[r]=zr(e[r])?dS(e[r]):e[r]:n[r]=e[r])}),n}function tf(u){let e="https://mui.com/production-error/?code="+u;for(let t=1;t{e.current=u}),w.useRef((...t)=>(0,e.current)(...t)).current}function I5(...u){return w.useMemo(()=>u.every(e=>e==null)?null:e=>{u.forEach(t=>{kW(t,e)})},u)}let p9=!0,Oh=!1,Cv;const TW={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function PW(u){const{type:e,tagName:t}=u;return!!(t==="INPUT"&&TW[e]&&!u.readOnly||t==="TEXTAREA"&&!u.readOnly||u.isContentEditable)}function OW(u){u.metaKey||u.altKey||u.ctrlKey||(p9=!0)}function b8(){p9=!1}function IW(){this.visibilityState==="hidden"&&Oh&&(p9=!0)}function NW(u){u.addEventListener("keydown",OW,!0),u.addEventListener("mousedown",b8,!0),u.addEventListener("pointerdown",b8,!0),u.addEventListener("touchstart",b8,!0),u.addEventListener("visibilitychange",IW,!0)}function RW(u){const{target:e}=u;try{return e.matches(":focus-visible")}catch{}return p9||PW(e)}function pS(){const u=w.useCallback(r=>{r!=null&&NW(r.ownerDocument)},[]),e=w.useRef(!1);function t(){return e.current?(Oh=!0,window.clearTimeout(Cv),Cv=window.setTimeout(()=>{Oh=!1},100),e.current=!1,!0):!1}function n(r){return RW(r)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:n,onBlur:t,ref:u}}function wm(u,e){const t=r0({},e);return Object.keys(u).forEach(n=>{if(n.toString().match(/^(components|slots)$/))t[n]=r0({},u[n],t[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const r=u[n]||{},i=e[n];t[n]={},!i||!Object.keys(i)?t[n]=r:!r||!Object.keys(r)?t[n]=i:(t[n]=r0({},i),Object.keys(r).forEach(a=>{t[n][a]=wm(r[a],i[a])}))}else t[n]===void 0&&(t[n]=u[n])}),t}function mt(u,e,t=void 0){const n={};return Object.keys(u).forEach(r=>{n[r]=u[r].reduce((i,a)=>{if(a){const o=e(a);o!==""&&i.push(o),t&&t[a]&&i.push(t[a])}return i},[]).join(" ")}),n}const mv=u=>u,MW=()=>{let u=mv;return{configure(e){u=e},generate(e){return u(e)},reset(){u=mv}}},jW=MW(),hS=jW,zW={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Xe(u,e,t="Mui"){const n=zW[e];return n?`${t}-${n}`:`${hS.generate(u)}-${e}`}function bt(u,e,t="Mui"){const n={};return e.forEach(r=>{n[r]=Xe(u,r,t)}),n}function CS(u){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=u(t)),e[t]}}var LW=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$W=CS(function(u){return LW.test(u)||u.charCodeAt(0)===111&&u.charCodeAt(1)===110&&u.charCodeAt(2)<91});function UW(u){if(u.sheet)return u.sheet;for(var e=0;e0?he(Wf,--Et):0,nf--,Wu===10&&(nf=1,C9--),Wu}function jt(){return Wu=Et2||$l(Wu)>3?"":" "}function eq(u,e){for(;--e&&jt()&&!(Wu<48||Wu>102||Wu>57&&Wu<65||Wu>70&&Wu<97););return M1(u,R6()+(e<6&&cr()==32&&jt()==32))}function Nh(u){for(;jt();)switch(Wu){case u:return Et;case 34:case 39:u!==34&&u!==39&&Nh(Wu);break;case 40:u===41&&Nh(u);break;case 92:jt();break}return Et}function tq(u,e){for(;jt()&&u+Wu!==57;)if(u+Wu===84&&cr()===47)break;return"/*"+M1(e,Et-1)+"*"+h9(u===47?u:jt())}function nq(u){for(;!$l(cr());)jt();return M1(u,Et)}function rq(u){return vS(j6("",null,null,null,[""],u=yS(u),0,[0],u))}function j6(u,e,t,n,r,i,a,o,s){for(var f=0,l=0,c=a,E=0,d=0,p=0,h=1,g=1,b=1,m=0,A="",y=r,B=i,v=n,C=A;g;)switch(p=m,m=jt()){case 40:if(p!=108&&he(C,c-1)==58){Ih(C+=eu(M6(m),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=M6(m);break;case 9:case 10:case 13:case 32:C+=uq(p);break;case 92:C+=eq(R6()-1,7);continue;case 47:switch(cr()){case 42:case 47:Jc(iq(tq(jt(),R6()),e,t),s);break;default:C+="/"}break;case 123*h:o[f++]=er(C)*b;case 125*h:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+l:b==-1&&(C=eu(C,/\f/g,"")),d>0&&er(C)-c&&Jc(d>32?gv(C+";",n,t,c-1):gv(eu(C," ","")+";",n,t,c-2),s);break;case 59:C+=";";default:if(Jc(v=bv(C,e,t,f,l,r,o,A,y=[],B=[],c),i),m===123)if(l===0)j6(C,e,v,v,y,i,c,o,B);else switch(E===99&&he(C,3)===110?100:E){case 100:case 108:case 109:case 115:j6(u,v,v,n&&Jc(bv(u,v,v,0,0,r,o,A,r,y=[],c),B),r,B,c,o,n?y:B);break;default:j6(C,v,v,v,[""],B,0,o,B)}}f=l=d=0,h=b=1,A=C="",c=a;break;case 58:c=1+er(C),d=p;default:if(h<1){if(m==123)--h;else if(m==125&&h++==0&&XW()==125)continue}switch(C+=h9(m),m*h){case 38:b=l>0?1:(C+="\f",-1);break;case 44:o[f++]=(er(C)-1)*b,b=1;break;case 64:cr()===45&&(C+=M6(jt())),E=cr(),l=c=er(A=C+=nq(R6())),m++;break;case 45:p===45&&er(C)==2&&(h=0)}}return i}function bv(u,e,t,n,r,i,a,o,s,f,l){for(var c=r-1,E=r===0?i:[""],d=_m(E),p=0,h=0,g=0;p0?E[b]+" "+m:eu(m,/&\f/g,E[b])))&&(s[g++]=A);return m9(u,e,t,r===0?xm:o,s,f,l)}function iq(u,e,t){return m9(u,e,t,mS,h9(ZW()),Ll(u,2,-2),0)}function gv(u,e,t,n){return m9(u,e,t,km,Ll(u,0,n),Ll(u,n+1,-1),n)}function u4(u,e){for(var t="",n=_m(u),r=0;r6)switch(he(u,e+1)){case 109:if(he(u,e+4)!==45)break;case 102:return eu(u,/(.+:)(.+)-([^]+)/,"$1"+uu+"$2-$3$1"+N5+(he(u,e+3)==108?"$3":"$2-$3"))+u;case 115:return~Ih(u,"stretch")?BS(eu(u,"stretch","fill-available"),e)+u:u}break;case 4949:if(he(u,e+1)!==115)break;case 6444:switch(he(u,er(u)-3-(~Ih(u,"!important")&&10))){case 107:return eu(u,":",":"+uu)+u;case 101:return eu(u,/(.+:)([^;!]+)(;|!.+)?/,"$1"+uu+(he(u,14)===45?"inline-":"")+"box$3$1"+uu+"$2$3$1"+De+"$2box$3")+u}break;case 5936:switch(he(u,e+11)){case 114:return uu+u+De+eu(u,/[svh]\w+-[tblr]{2}/,"tb")+u;case 108:return uu+u+De+eu(u,/[svh]\w+-[tblr]{2}/,"tb-rl")+u;case 45:return uu+u+De+eu(u,/[svh]\w+-[tblr]{2}/,"lr")+u}return uu+u+De+u+u}return u}var pq=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case km:e.return=BS(e.value,e.length);break;case bS:return u4([S3(e,{value:eu(e.value,"@","@"+uu)})],r);case xm:if(e.length)return YW(e.props,function(i){switch(JW(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return u4([S3(e,{props:[eu(i,/:(read-\w+)/,":"+N5+"$1")]})],r);case"::placeholder":return u4([S3(e,{props:[eu(i,/:(plac\w+)/,":"+uu+"input-$1")]}),S3(e,{props:[eu(i,/:(plac\w+)/,":"+N5+"$1")]}),S3(e,{props:[eu(i,/:(plac\w+)/,De+"input-$1")]})],r)}return""})}},hq=[pq],Cq=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(h){var g=h.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var r=e.stylisPlugins||hq,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var g=h.getAttribute("data-emotion").split(" "),b=1;b=4;++n,r-=4)t=u.charCodeAt(n)&255|(u.charCodeAt(++n)&255)<<8|(u.charCodeAt(++n)&255)<<16|(u.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(u.charCodeAt(n+2)&255)<<16;case 2:e^=(u.charCodeAt(n+1)&255)<<8;case 1:e^=u.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var vq={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bq=/[A-Z]|^ms/g,Fq=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xS=function(e){return e.charCodeAt(1)===45},yv=function(e){return e!=null&&typeof e!="boolean"},bp=dS(function(u){return xS(u)?u:u.replace(Bq,"-$&").toLowerCase()}),vv=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Fq,function(n,r,i){return tr={name:r,styles:i,next:tr},r})}return vq[e]!==1&&!xS(e)&&typeof t=="number"&&t!==0?t+"px":t};function Ll(u,e,t){if(t==null)return"";if(t.__emotion_styles!==void 0)return t;switch(typeof t){case"boolean":return"";case"object":{if(t.anim===1)return tr={name:t.name,styles:t.styles,next:tr},t.name;if(t.styles!==void 0){var n=t.next;if(n!==void 0)for(;n!==void 0;)tr={name:n.name,styles:n.styles,next:tr},n=n.next;var r=t.styles+";";return r}return Dq(u,e,t)}case"function":{if(u!==void 0){var i=tr,a=t(u);return tr=i,Ll(u,e,a)}break}}if(e==null)return t;var o=e[t];return o!==void 0?o:t}function Dq(u,e,t){var n="";if(Array.isArray(t))for(var r=0;r96?Sq:Tq},wv=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(a){return e.__emotion_forwardProp(a)&&i(a)}:i}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r},Pq=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return DS(t,n,r),xq(function(){return wS(t,n,r)}),null},Oq=function u(e,t){var n=e.__emotion_real===e,r=n&&e.__emotion_base||e,i,a;t!==void 0&&(i=t.label,a=t.target);var o=wv(e,t,n),s=o||Dv(r),f=!s("as");return function(){var l=arguments,c=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&c.push("label:"+i+";"),l[0]==null||l[0].raw===void 0)c.push.apply(c,l);else{c.push(l[0][0]);for(var E=l.length,d=1;de(Nq(r)?t:r):e;return c0.jsx(kq,{styles:n})}function TS(u,e){return Rh(u,e)}const Mq=(u,e)=>{Array.isArray(u.__emotion_styles)&&(u.__emotion_styles=e(u.__emotion_styles))},jq=["values","unit","step"],zq=u=>{const e=Object.keys(u).map(t=>({key:t,val:u[t]}))||[];return e.sort((t,n)=>t.val-n.val),e.reduce((t,n)=>r0({},t,{[n.key]:n.val}),{})};function Lq(u){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5}=u,r=cu(u,jq),i=zq(e),a=Object.keys(i);function o(E){return`@media (min-width:${typeof e[E]=="number"?e[E]:E}${t})`}function s(E){return`@media (max-width:${(typeof e[E]=="number"?e[E]:E)-n/100}${t})`}function f(E,d){const p=a.indexOf(d);return`@media (min-width:${typeof e[E]=="number"?e[E]:E}${t}) and (max-width:${(p!==-1&&typeof e[a[p]]=="number"?e[a[p]]:d)-n/100}${t})`}function l(E){return a.indexOf(E)+1`@media (min-width:${N7[u]}px)`};function dt(u,e,t){const n=u.theme||{};if(Array.isArray(e)){const i=n.breakpoints||xv;return e.reduce((a,o,s)=>(a[i.up(i.keys[s])]=t(e[s]),a),{})}if(typeof e=="object"){const i=n.breakpoints||xv;return Object.keys(e).reduce((a,o)=>{if(Object.keys(i.values||N7).indexOf(o)!==-1){const s=i.up(o);a[s]=t(e[o],o)}else{const s=o;a[s]=e[s]}return a},{})}return t(e)}function PS(u={}){var e;return((e=u.keys)==null?void 0:e.reduce((n,r)=>{const i=u.up(r);return n[i]={},n},{}))||{}}function OS(u,e){return u.reduce((t,n)=>{const r=t[n];return(!r||Object.keys(r).length===0)&&delete t[n],t},e)}function Wq(u,...e){const t=PS(u),n=[t,...e].reduce((r,i)=>Mt(r,i),{});return OS(Object.keys(t),n)}function qq(u,e){if(typeof u!="object")return{};const t={},n=Object.keys(e);return Array.isArray(u)?n.forEach((r,i)=>{i{u[r]!=null&&(t[r]=!0)}),t}function ho({values:u,breakpoints:e,base:t}){const n=t||qq(u,e),r=Object.keys(n);if(r.length===0)return u;let i;return r.reduce((a,o,s)=>(Array.isArray(u)?(a[o]=u[s]!=null?u[s]:u[i],i=s):typeof u=="object"?(a[o]=u[o]!=null?u[o]:u[i],i=o):a[o]=u,a),{})}function _E(u,e,t=!0){if(!e||typeof e!="string")return null;if(u&&u.vars&&t){const n=`vars.${e}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,u);if(n!=null)return n}return e.split(".").reduce((n,r)=>n&&n[r]!=null?n[r]:null,u)}function R2(u,e,t,n=t){let r;return typeof u=="function"?r=u(t):Array.isArray(u)?r=u[t]||n:r=_E(u,t)||n,e&&(r=e(r,n,u)),r}function Uu(u){const{prop:e,cssProperty:t=u.prop,themeKey:n,transform:r}=u,i=a=>{if(a[e]==null)return null;const o=a[e],s=a.theme,f=_E(s,n)||{};return dt(a,o,c=>{let E=R2(f,r,c);return c===E&&typeof c=="string"&&(E=R2(f,r,`${e}${c==="default"?"":su(c)}`,c)),t===!1?E:{[t]:E}})};return i.propTypes={},i.filterProps=[e],i}function Hq(u){const e={};return t=>(e[t]===void 0&&(e[t]=u(t)),e[t])}const Gq={m:"margin",p:"padding"},Vq={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kq=Hq(u=>{if(u.length>2)if(kv[u])u=kv[u];else return[u];const[e,t]=u.split(""),n=Gq[e],r=Vq[t]||"";return Array.isArray(r)?r.map(i=>n+i):[n+r]}),R7=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],M7=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...R7,...M7];function Mc(u,e,t,n){var r;const i=(r=_E(u,e,!1))!=null?r:t;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function j7(u){return Mc(u,"spacing",8)}function wo(u,e){if(typeof e=="string"||e==null)return e;const t=Math.abs(e),n=u(t);return e>=0?n:typeof n=="number"?-n:`-${n}`}function Qq(u,e){return t=>u.reduce((n,r)=>(n[r]=wo(e,t),n),{})}function Jq(u,e,t,n){if(e.indexOf(t)===-1)return null;const r=Kq(t),i=Qq(r,n),a=u[t];return dt(u,a,i)}function IS(u,e){const t=j7(u.theme);return Object.keys(u).map(n=>Jq(u,e,n,t)).reduce(El,{})}function Ou(u){return IS(u,R7)}Ou.propTypes={};Ou.filterProps=R7;function Iu(u){return IS(u,M7)}Iu.propTypes={};Iu.filterProps=M7;function Yq(u=8){if(u.mui)return u;const e=j7({spacing:u}),t=(...n)=>(n.length===0?[1]:n).map(i=>{const a=e(i);return typeof a=="number"?`${a}px`:a}).join(" ");return t.mui=!0,t}function SE(...u){const e=u.reduce((n,r)=>(r.filterProps.forEach(i=>{n[i]=r}),n),{}),t=n=>Object.keys(n).reduce((r,i)=>e[i]?El(r,e[i](n)):r,{});return t.propTypes={},t.filterProps=u.reduce((n,r)=>n.concat(r.filterProps),[]),t}function tn(u){return typeof u!="number"?u:`${u}px solid`}function pn(u,e){return Uu({prop:u,themeKey:"borders",transform:e})}const Zq=pn("border",tn),Xq=pn("borderTop",tn),uH=pn("borderRight",tn),eH=pn("borderBottom",tn),tH=pn("borderLeft",tn),nH=pn("borderColor"),rH=pn("borderTopColor"),iH=pn("borderRightColor"),aH=pn("borderBottomColor"),oH=pn("borderLeftColor"),sH=pn("outline",tn),fH=pn("outlineColor"),TE=u=>{if(u.borderRadius!==void 0&&u.borderRadius!==null){const e=Mc(u.theme,"shape.borderRadius",4),t=n=>({borderRadius:wo(e,n)});return dt(u,u.borderRadius,t)}return null};TE.propTypes={};TE.filterProps=["borderRadius"];SE(Zq,Xq,uH,eH,tH,nH,rH,iH,aH,oH,TE,sH,fH);const PE=u=>{if(u.gap!==void 0&&u.gap!==null){const e=Mc(u.theme,"spacing",8),t=n=>({gap:wo(e,n)});return dt(u,u.gap,t)}return null};PE.propTypes={};PE.filterProps=["gap"];const OE=u=>{if(u.columnGap!==void 0&&u.columnGap!==null){const e=Mc(u.theme,"spacing",8),t=n=>({columnGap:wo(e,n)});return dt(u,u.columnGap,t)}return null};OE.propTypes={};OE.filterProps=["columnGap"];const IE=u=>{if(u.rowGap!==void 0&&u.rowGap!==null){const e=Mc(u.theme,"spacing",8),t=n=>({rowGap:wo(e,n)});return dt(u,u.rowGap,t)}return null};IE.propTypes={};IE.filterProps=["rowGap"];const lH=Uu({prop:"gridColumn"}),cH=Uu({prop:"gridRow"}),EH=Uu({prop:"gridAutoFlow"}),dH=Uu({prop:"gridAutoColumns"}),pH=Uu({prop:"gridAutoRows"}),hH=Uu({prop:"gridTemplateColumns"}),CH=Uu({prop:"gridTemplateRows"}),mH=Uu({prop:"gridTemplateAreas"}),gH=Uu({prop:"gridArea"});SE(PE,OE,IE,lH,cH,EH,dH,pH,hH,CH,mH,gH);function e4(u,e){return e==="grey"?e:u}const bH=Uu({prop:"color",themeKey:"palette",transform:e4}),AH=Uu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:e4}),yH=Uu({prop:"backgroundColor",themeKey:"palette",transform:e4});SE(bH,AH,yH);function Tt(u){return u<=1&&u!==0?`${u*100}%`:u}const vH=Uu({prop:"width",transform:Tt}),z7=u=>{if(u.maxWidth!==void 0&&u.maxWidth!==null){const e=t=>{var n,r;const i=((n=u.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[t])||N7[t];return i?((r=u.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:`${i}${u.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Tt(t)}};return dt(u,u.maxWidth,e)}return null};z7.filterProps=["maxWidth"];const BH=Uu({prop:"minWidth",transform:Tt}),FH=Uu({prop:"height",transform:Tt}),DH=Uu({prop:"maxHeight",transform:Tt}),wH=Uu({prop:"minHeight",transform:Tt});Uu({prop:"size",cssProperty:"width",transform:Tt});Uu({prop:"size",cssProperty:"height",transform:Tt});const xH=Uu({prop:"boxSizing"});SE(vH,z7,BH,FH,DH,wH,xH);const kH={border:{themeKey:"borders",transform:tn},borderTop:{themeKey:"borders",transform:tn},borderRight:{themeKey:"borders",transform:tn},borderBottom:{themeKey:"borders",transform:tn},borderLeft:{themeKey:"borders",transform:tn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:TE},color:{themeKey:"palette",transform:e4},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:e4},backgroundColor:{themeKey:"palette",transform:e4},p:{style:Iu},pt:{style:Iu},pr:{style:Iu},pb:{style:Iu},pl:{style:Iu},px:{style:Iu},py:{style:Iu},padding:{style:Iu},paddingTop:{style:Iu},paddingRight:{style:Iu},paddingBottom:{style:Iu},paddingLeft:{style:Iu},paddingX:{style:Iu},paddingY:{style:Iu},paddingInline:{style:Iu},paddingInlineStart:{style:Iu},paddingInlineEnd:{style:Iu},paddingBlock:{style:Iu},paddingBlockStart:{style:Iu},paddingBlockEnd:{style:Iu},m:{style:Ou},mt:{style:Ou},mr:{style:Ou},mb:{style:Ou},ml:{style:Ou},mx:{style:Ou},my:{style:Ou},margin:{style:Ou},marginTop:{style:Ou},marginRight:{style:Ou},marginBottom:{style:Ou},marginLeft:{style:Ou},marginX:{style:Ou},marginY:{style:Ou},marginInline:{style:Ou},marginInlineStart:{style:Ou},marginInlineEnd:{style:Ou},marginBlock:{style:Ou},marginBlockStart:{style:Ou},marginBlockEnd:{style:Ou},displayPrint:{cssProperty:!1,transform:u=>({"@media print":{display:u}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:PE},rowGap:{style:IE},columnGap:{style:OE},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tt},maxWidth:{style:z7},minWidth:{transform:Tt},height:{transform:Tt},maxHeight:{transform:Tt},minHeight:{transform:Tt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},NE=kH;function _H(...u){const e=u.reduce((n,r)=>n.concat(Object.keys(r)),[]),t=new Set(e);return u.every(n=>t.size===Object.keys(n).length)}function SH(u,e){return typeof u=="function"?u(e):u}function TH(){function u(t,n,r,i){const a={[t]:n,theme:r},o=i[t];if(!o)return{[t]:n};const{cssProperty:s=t,themeKey:f,transform:l,style:c}=o;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[t]:n};const E=_E(r,f)||{};return c?c(a):dt(a,n,p=>{let h=R2(E,l,p);return p===h&&typeof p=="string"&&(h=R2(E,l,`${t}${p==="default"?"":su(p)}`,p)),s===!1?h:{[s]:h}})}function e(t){var n;const{sx:r,theme:i={}}=t||{};if(!r)return null;const a=(n=i.unstable_sxConfig)!=null?n:NE;function o(s){let f=s;if(typeof s=="function")f=s(i);else if(typeof s!="object")return s;if(!f)return null;const l=PS(i.breakpoints),c=Object.keys(l);let E=l;return Object.keys(f).forEach(d=>{const p=SH(f[d],i);if(p!=null)if(typeof p=="object")if(a[d])E=El(E,u(d,p,i,a));else{const h=dt({theme:i},p,b=>({[d]:b}));_H(h,p)?E[d]=e({sx:p,theme:i}):E=El(E,h)}else E=El(E,u(d,p,i,a))}),OS(c,E)}return Array.isArray(r)?r.map(o):o(r)}return e}const NS=TH();NS.filterProps=["sx"];const RE=NS,PH=["breakpoints","palette","spacing","shape"];function jc(u={},...e){const{breakpoints:t={},palette:n={},spacing:r,shape:i={}}=u,a=cu(u,PH),o=Lq(t),s=Yq(r);let f=Mt({breakpoints:o,direction:"ltr",components:{},palette:r0({mode:"light"},n),spacing:s,shape:r0({},Uq,i)},a);return f=e.reduce((l,c)=>Mt(l,c),f),f.unstable_sxConfig=r0({},NE,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(c){return RE({sx:c,theme:this})},f}function OH(u){return Object.keys(u).length===0}function RS(u=null){const e=w.useContext(kE);return!e||OH(e)?u:e}const IH=jc();function ME(u=IH){return RS(u)}function NH({styles:u,themeId:e,defaultTheme:t={}}){const n=ME(t),r=typeof u=="function"?u(e&&n[e]||n):u;return c0.jsx(Rq,{styles:r})}const RH=["sx"],MH=u=>{var e,t;const n={systemProps:{},otherProps:{}},r=(e=u==null||(t=u.theme)==null?void 0:t.unstable_sxConfig)!=null?e:NE;return Object.keys(u).forEach(i=>{r[i]?n.systemProps[i]=u[i]:n.otherProps[i]=u[i]}),n};function jE(u){const{sx:e}=u,t=cu(u,RH),{systemProps:n,otherProps:r}=MH(t);let i;return Array.isArray(e)?i=[n,...e]:typeof e=="function"?i=(...a)=>{const o=e(...a);return zr(o)?r0({},n,o):n}:i=r0({},n,e),r0({},r,{sx:i})}const jH=["className","component"];function zH(u={}){const{themeId:e,defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=u,i=TS("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(RE);return w.forwardRef(function(s,f){const l=ME(t),c=jE(s),{className:E,component:d="div"}=c,p=cu(c,jH);return c0.jsx(i,r0({as:d,ref:f,className:pu(E,r?r(n):n),theme:e&&l[e]||l},p))})}const LH=["variant"];function _v(u){return u.length===0}function MS(u){const{variant:e}=u,t=cu(u,LH);let n=e||"";return Object.keys(t).sort().forEach(r=>{r==="color"?n+=_v(n)?u[r]:su(u[r]):n+=`${_v(n)?r:su(r)}${su(u[r].toString())}`}),n}const $H=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function UH(u){return Object.keys(u).length===0}function WH(u){return typeof u=="string"&&u.charCodeAt(0)>96}const qH=(u,e)=>e.components&&e.components[u]&&e.components[u].styleOverrides?e.components[u].styleOverrides:null,M2=u=>{const e={};return u&&u.forEach(t=>{const n=MS(t.props);e[n]=t.style}),e},HH=(u,e)=>{let t=[];return e&&e.components&&e.components[u]&&e.components[u].variants&&(t=e.components[u].variants),M2(t)},j2=(u,e,t)=>{const{ownerState:n={}}=u,r=[];return t&&t.forEach(i=>{let a=!0;Object.keys(i.props).forEach(o=>{n[o]!==i.props[o]&&u[o]!==i.props[o]&&(a=!1)}),a&&r.push(e[MS(i.props)])}),r},GH=(u,e,t,n)=>{var r;const i=t==null||(r=t.components)==null||(r=r[n])==null?void 0:r.variants;return j2(u,e,i)};function z6(u){return u!=="ownerState"&&u!=="theme"&&u!=="sx"&&u!=="as"}const VH=jc(),KH=u=>u&&u.charAt(0).toLowerCase()+u.slice(1);function L6({defaultTheme:u,theme:e,themeId:t}){return UH(e)?u:e[t]||e}function QH(u){return u?(e,t)=>t[u]:null}const Sv=({styledArg:u,props:e,defaultTheme:t,themeId:n})=>{const r=u(r0({},e,{theme:L6(r0({},e,{defaultTheme:t,themeId:n}))}));let i;if(r&&r.variants&&(i=r.variants,delete r.variants),i){const a=j2(e,M2(i),i);return[r,...a]}return r};function jS(u={}){const{themeId:e,defaultTheme:t=VH,rootShouldForwardProp:n=z6,slotShouldForwardProp:r=z6}=u,i=a=>RE(r0({},a,{theme:L6(r0({},a,{defaultTheme:t,themeId:e}))}));return i.__mui_systemSx=!0,(a,o={})=>{Mq(a,y=>y.filter(B=>!(B!=null&&B.__mui_systemSx)));const{name:s,slot:f,skipVariantsResolver:l,skipSx:c,overridesResolver:E=QH(KH(f))}=o,d=cu(o,$H),p=l!==void 0?l:f&&f!=="Root"&&f!=="root"||!1,h=c||!1;let b,g=z6;f==="Root"||f==="root"?g=n:f?g=r:WH(a)&&(g=void 0);const m=TS(a,r0({shouldForwardProp:g,label:b},d)),A=(y,...B)=>{const v=B?B.map(_=>{if(typeof _=="function"&&_.__emotion_real!==_)return $=>Sv({styledArg:_,props:$,defaultTheme:t,themeId:e});if(zr(_)){let $=_,u0;return _&&_.variants&&(u0=_.variants,delete $.variants,$=e0=>{let o0=_;return j2(e0,M2(u0),u0).forEach(R=>{o0=Mt(o0,R)}),o0}),$}return _}):[];let C=y;if(zr(y)){let _;y&&y.variants&&(_=y.variants,delete C.variants,C=$=>{let u0=y;return j2($,M2(_),_).forEach(o0=>{u0=Mt(u0,o0)}),u0})}else typeof y=="function"&&y.__emotion_real!==y&&(C=_=>Sv({styledArg:y,props:_,defaultTheme:t,themeId:e}));s&&E&&v.push(_=>{const $=L6(r0({},_,{defaultTheme:t,themeId:e})),u0=qH(s,$);if(u0){const e0={};return Object.entries(u0).forEach(([o0,N])=>{e0[o0]=typeof N=="function"?N(r0({},_,{theme:$})):N}),E(_,e0)}return null}),s&&!p&&v.push(_=>{const $=L6(r0({},_,{defaultTheme:t,themeId:e}));return GH(_,HH(s,$),$,s)}),h||v.push(i);const D=v.length-B.length;if(Array.isArray(y)&&D>0){const _=new Array(D).fill("");C=[...y,..._],C.raw=[...y.raw,..._]}const T=m(C,...v);return a.muiName&&(T.muiName=a.muiName),T};return m.withConfig&&(A.withConfig=m.withConfig),A}}const JH=jS(),zS=JH;function YH(u){const{theme:e,name:t,props:n}=u;return!e||!e.components||!e.components[t]||!e.components[t].defaultProps?n:w7(e.components[t].defaultProps,n)}function L7({props:u,name:e,defaultTheme:t,themeId:n}){let r=ME(t);return n&&(r=r[n]||r),YH({theme:r,name:e,props:u})}function $7(u,e=0,t=1){return Math.min(Math.max(e,u),t)}function ZH(u){u=u.slice(1);const e=new RegExp(`.{1,${u.length>=6?2:1}}`,"g");let t=u.match(e);return t&&t[0].length===1&&(t=t.map(n=>n+n)),t?`rgb${t.length===4?"a":""}(${t.map((n,r)=>r<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function xo(u){if(u.type)return u;if(u.charAt(0)==="#")return xo(ZH(u));const e=u.indexOf("("),t=u.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error(t3(9,u));let n=u.substring(e+1,u.length-1),r;if(t==="color"){if(n=n.split(" "),r=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(t3(10,r))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:t,values:n,colorSpace:r}}function zE(u){const{type:e,colorSpace:t}=u;let{values:n}=u;return e.indexOf("rgb")!==-1?n=n.map((r,i)=>i<3?parseInt(r,10):r):e.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.indexOf("color")!==-1?n=`${t} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function XH(u){u=xo(u);const{values:e}=u,t=e[0],n=e[1]/100,r=e[2]/100,i=n*Math.min(r,1-r),a=(f,l=(f+t/30)%12)=>r-i*Math.max(Math.min(l-3,9-l,1),-1);let o="rgb";const s=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return u.type==="hsla"&&(o+="a",s.push(e[3])),zE({type:o,values:s})}function Tv(u){u=xo(u);let e=u.type==="hsl"||u.type==="hsla"?xo(XH(u)).values:u.values;return e=e.map(t=>(u.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function uG(u,e){const t=Tv(u),n=Tv(e);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function zs(u,e){return u=xo(u),e=$7(e),(u.type==="rgb"||u.type==="hsl")&&(u.type+="a"),u.type==="color"?u.values[3]=`/${e}`:u.values[3]=e,zE(u)}function eG(u,e){if(u=xo(u),e=$7(e),u.type.indexOf("hsl")!==-1)u.values[2]*=1-e;else if(u.type.indexOf("rgb")!==-1||u.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)u.values[t]*=1-e;return zE(u)}function tG(u,e){if(u=xo(u),e=$7(e),u.type.indexOf("hsl")!==-1)u.values[2]+=(100-u.values[2])*e;else if(u.type.indexOf("rgb")!==-1)for(let t=0;t<3;t+=1)u.values[t]+=(255-u.values[t])*e;else if(u.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)u.values[t]+=(1-u.values[t])*e;return zE(u)}const nG=w.createContext(null),LS=nG;function $S(){return w.useContext(LS)}const rG=typeof Symbol=="function"&&Symbol.for,iG=rG?Symbol.for("mui.nested"):"__THEME_NESTED__";function aG(u,e){return typeof e=="function"?e(u):r0({},u,e)}function oG(u){const{children:e,theme:t}=u,n=$S(),r=w.useMemo(()=>{const i=n===null?t:aG(n,t);return i!=null&&(i[iG]=n!==null),i},[t,n]);return c0.jsx(LS.Provider,{value:r,children:e})}const Pv={};function Ov(u,e,t,n=!1){return w.useMemo(()=>{const r=u&&e[u]||e;if(typeof t=="function"){const i=t(r),a=u?r0({},e,{[u]:i}):i;return n?()=>a:a}return u?r0({},e,{[u]:t}):r0({},e,t)},[u,e,t,n])}function sG(u){const{children:e,theme:t,themeId:n}=u,r=RS(Pv),i=$S()||Pv,a=Ov(n,r,t),o=Ov(n,i,t,!0);return c0.jsx(oG,{theme:o,children:c0.jsx(kE.Provider,{value:a,children:e})})}const fG=["className","component","disableGutters","fixed","maxWidth","classes"],lG=jc(),cG=zS("div",{name:"MuiContainer",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[`maxWidth${su(String(t.maxWidth))}`],t.fixed&&e.fixed,t.disableGutters&&e.disableGutters]}}),EG=u=>L7({props:u,name:"MuiContainer",defaultTheme:lG}),dG=(u,e)=>{const t=s=>Xe(e,s),{classes:n,fixed:r,disableGutters:i,maxWidth:a}=u,o={root:["root",a&&`maxWidth${su(String(a))}`,r&&"fixed",i&&"disableGutters"]};return mt(o,t,n)};function pG(u={}){const{createStyledComponent:e=cG,useThemeProps:t=EG,componentName:n="MuiContainer"}=u,r=e(({theme:a,ownerState:o})=>r0({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:o})=>o.fixed&&Object.keys(a.breakpoints.values).reduce((s,f)=>{const l=f,c=a.breakpoints.values[l];return c!==0&&(s[a.breakpoints.up(l)]={maxWidth:`${c}${a.breakpoints.unit}`}),s},{}),({theme:a,ownerState:o})=>r0({},o.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[a.breakpoints.up(o.maxWidth)]:{maxWidth:`${a.breakpoints.values[o.maxWidth]}${a.breakpoints.unit}`}}));return w.forwardRef(function(o,s){const f=t(o),{className:l,component:c="div",disableGutters:E=!1,fixed:d=!1,maxWidth:p="lg"}=f,h=cu(f,fG),b=r0({},f,{component:c,disableGutters:E,fixed:d,maxWidth:p}),g=dG(b,n);return c0.jsx(r,r0({as:c,ownerState:b,className:pu(g.root,l),ref:s},h))})}const hG=["component","direction","spacing","divider","children","className","useFlexGap"],CG=jc(),mG=zS("div",{name:"MuiStack",slot:"Root",overridesResolver:(u,e)=>e.root});function gG(u){return L7({props:u,name:"MuiStack",defaultTheme:CG})}function bG(u,e){const t=w.Children.toArray(u).filter(Boolean);return t.reduce((n,r,i)=>(n.push(r),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[u],yG=({ownerState:u,theme:e})=>{let t=r0({display:"flex",flexDirection:"column"},dt({theme:e},ho({values:u.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n})));if(u.spacing){const n=j7(e),r=Object.keys(e.breakpoints.values).reduce((s,f)=>((typeof u.spacing=="object"&&u.spacing[f]!=null||typeof u.direction=="object"&&u.direction[f]!=null)&&(s[f]=!0),s),{}),i=ho({values:u.direction,base:r}),a=ho({values:u.spacing,base:r});typeof i=="object"&&Object.keys(i).forEach((s,f,l)=>{if(!i[s]){const E=f>0?i[l[f-1]]:"column";i[s]=E}}),t=Mt(t,dt({theme:e},a,(s,f)=>u.useFlexGap?{gap:wo(n,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${AG(f?i[f]:u.direction)}`]:wo(n,s)}}))}return t=Wq(e.breakpoints,t),t};function vG(u={}){const{createStyledComponent:e=mG,useThemeProps:t=gG,componentName:n="MuiStack"}=u,r=()=>mt({root:["root"]},s=>Xe(n,s),{}),i=e(yG);return w.forwardRef(function(s,f){const l=t(s),c=jE(l),{component:E="div",direction:d="column",spacing:p=0,divider:h,children:b,className:g,useFlexGap:m=!1}=c,A=cu(c,hG),y={direction:d,spacing:p,useFlexGap:m},B=r();return c0.jsx(i,r0({as:E,ownerState:y,ref:f,className:pu(B.root,g)},A,{children:h?bG(b,h):b}))})}const BG=vG(),FG=BG;function DG(u,e){return r0({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},e)}const wG={black:"#000",white:"#fff"},$l=wG,xG={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},kG=xG,_G={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},os=_G,SG={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},_a=SG,TG={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},_f=TG,PG={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ss=PG,OG={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},fs=OG,IG={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ls=IG,NG=["mode","contrastThreshold","tonalOffset"],Iv={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$l.white,default:$l.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ap={text:{primary:$l.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:$l.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Nv(u,e,t,n){const r=n.light||n,i=n.dark||n*1.5;u[e]||(u.hasOwnProperty(t)?u[e]=u[t]:e==="light"?u.light=tG(u.main,r):e==="dark"&&(u.dark=eG(u.main,i)))}function RG(u="light"){return u==="dark"?{main:ss[200],light:ss[50],dark:ss[400]}:{main:ss[700],light:ss[400],dark:ss[800]}}function MG(u="light"){return u==="dark"?{main:os[200],light:os[50],dark:os[400]}:{main:os[500],light:os[300],dark:os[700]}}function jG(u="light"){return u==="dark"?{main:_a[500],light:_a[300],dark:_a[700]}:{main:_a[700],light:_a[400],dark:_a[800]}}function zG(u="light"){return u==="dark"?{main:fs[400],light:fs[300],dark:fs[700]}:{main:fs[700],light:fs[500],dark:fs[900]}}function LG(u="light"){return u==="dark"?{main:ls[400],light:ls[300],dark:ls[700]}:{main:ls[800],light:ls[500],dark:ls[900]}}function $G(u="light"){return u==="dark"?{main:_f[400],light:_f[300],dark:_f[700]}:{main:"#ed6c02",light:_f[500],dark:_f[900]}}function UG(u){const{mode:e="light",contrastThreshold:t=3,tonalOffset:n=.2}=u,r=cu(u,NG),i=u.primary||RG(e),a=u.secondary||MG(e),o=u.error||jG(e),s=u.info||zG(e),f=u.success||LG(e),l=u.warning||$G(e);function c(h){return uG(h,Ap.text.primary)>=t?Ap.text.primary:Iv.text.primary}const E=({color:h,name:b,mainShade:g=500,lightShade:m=300,darkShade:A=700})=>{if(h=r0({},h),!h.main&&h[g]&&(h.main=h[g]),!h.hasOwnProperty("main"))throw new Error(t3(11,b?` (${b})`:"",g));if(typeof h.main!="string")throw new Error(t3(12,b?` (${b})`:"",JSON.stringify(h.main)));return Nv(h,"light",m,n),Nv(h,"dark",A,n),h.contrastText||(h.contrastText=c(h.main)),h},d={dark:Ap,light:Iv};return Mt(r0({common:r0({},$l),mode:e,primary:E({color:i,name:"primary"}),secondary:E({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:E({color:o,name:"error"}),warning:E({color:l,name:"warning"}),info:E({color:s,name:"info"}),success:E({color:f,name:"success"}),grey:kG,contrastThreshold:t,getContrastText:c,augmentColor:E,tonalOffset:n},d[e]),r)}const WG=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function qG(u){return Math.round(u*1e5)/1e5}const Rv={textTransform:"uppercase"},Mv='"Roboto", "Helvetica", "Arial", sans-serif';function HG(u,e){const t=typeof e=="function"?e(u):e,{fontFamily:n=Mv,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:f=16,allVariants:l,pxToRem:c}=t,E=cu(t,WG),d=r/14,p=c||(g=>`${g/f*d}rem`),h=(g,m,A,y,B)=>r0({fontFamily:n,fontWeight:g,fontSize:p(m),lineHeight:A},n===Mv?{letterSpacing:`${qG(y/m)}em`}:{},B,l),b={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(o,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(o,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(o,14,1.75,.4,Rv),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Rv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mt(r0({htmlFontSize:f,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s},b),E,{clone:!1})}const GG=.2,VG=.14,KG=.12;function bu(...u){return[`${u[0]}px ${u[1]}px ${u[2]}px ${u[3]}px rgba(0,0,0,${GG})`,`${u[4]}px ${u[5]}px ${u[6]}px ${u[7]}px rgba(0,0,0,${VG})`,`${u[8]}px ${u[9]}px ${u[10]}px ${u[11]}px rgba(0,0,0,${KG})`].join(",")}const QG=["none",bu(0,2,1,-1,0,1,1,0,0,1,3,0),bu(0,3,1,-2,0,2,2,0,0,1,5,0),bu(0,3,3,-2,0,3,4,0,0,1,8,0),bu(0,2,4,-1,0,4,5,0,0,1,10,0),bu(0,3,5,-1,0,5,8,0,0,1,14,0),bu(0,3,5,-1,0,6,10,0,0,1,18,0),bu(0,4,5,-2,0,7,10,1,0,2,16,1),bu(0,5,5,-3,0,8,10,1,0,3,14,2),bu(0,5,6,-3,0,9,12,1,0,3,16,2),bu(0,6,6,-3,0,10,14,1,0,4,18,3),bu(0,6,7,-4,0,11,15,1,0,4,20,3),bu(0,7,8,-4,0,12,17,2,0,5,22,4),bu(0,7,8,-4,0,13,19,2,0,5,24,4),bu(0,7,9,-4,0,14,21,2,0,5,26,4),bu(0,8,9,-5,0,15,22,2,0,6,28,5),bu(0,8,10,-5,0,16,24,2,0,6,30,5),bu(0,8,11,-5,0,17,26,2,0,6,32,5),bu(0,9,11,-5,0,18,28,2,0,7,34,6),bu(0,9,12,-6,0,19,29,2,0,7,36,6),bu(0,10,13,-6,0,20,31,3,0,8,38,7),bu(0,10,13,-6,0,21,33,3,0,8,40,7),bu(0,10,14,-6,0,22,35,3,0,8,42,7),bu(0,11,14,-7,0,23,36,3,0,9,44,8),bu(0,11,15,-7,0,24,38,3,0,9,46,8)],JG=QG,YG=["duration","easing","delay"],ZG={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},XG={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jv(u){return`${Math.round(u)}ms`}function uV(u){if(!u)return 0;const e=u/36;return Math.round((4+15*e**.25+e/5)*10)}function eV(u){const e=r0({},ZG,u.easing),t=r0({},XG,u.duration);return r0({getAutoHeightDuration:uV,create:(r=["all"],i={})=>{const{duration:a=t.standard,easing:o=e.easeInOut,delay:s=0}=i;return cu(i,YG),(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:jv(a)} ${o} ${typeof s=="string"?s:jv(s)}`).join(",")}},u,{easing:e,duration:t})}const tV={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},nV=tV,rV=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function U7(u={},...e){const{mixins:t={},palette:n={},transitions:r={},typography:i={}}=u,a=cu(u,rV);if(u.vars)throw new Error(t3(18));const o=UG(n),s=jc(u);let f=Mt(s,{mixins:DG(s.breakpoints,t),palette:o,shadows:JG.slice(),typography:HG(o,i),transitions:eV(r),zIndex:r0({},nV)});return f=Mt(f,a),f=e.reduce((l,c)=>Mt(l,c),f),f.unstable_sxConfig=r0({},NE,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(c){return RE({sx:c,theme:this})},f}const iV=U7(),LE=iV,ko="$$material",US=u=>z6(u)&&u!=="classes",aV=jS({themeId:ko,defaultTheme:LE,rootShouldForwardProp:US}),Ee=aV;function bt({props:u,name:e}){return L7({props:u,name:e,defaultTheme:LE,themeId:ko})}function Mh(u,e){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Mh(u,e)}function oV(u,e){u.prototype=Object.create(e.prototype),u.prototype.constructor=u,Mh(u,e)}const zv=F.createContext(null);function sV(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function W7(u,e){var t=function(i){return e&&w.isValidElement(i)?e(i):i},n=Object.create(null);return u&&w.Children.map(u,function(r){return r}).forEach(function(r){n[r.key]=t(r)}),n}function fV(u,e){u=u||{},e=e||{};function t(l){return l in e?e[l]:u[l]}var n=Object.create(null),r=[];for(var i in u)i in e?r.length&&(n[i]=r,r=[]):r.push(i);var a,o={};for(var s in e){if(n[s])for(a=0;a{if(!o&&s!=null){const h=setTimeout(s,f);return()=>{clearTimeout(h)}}},[s,o,f]),c0.jsx("span",{className:E,style:d,children:c0.jsx("span",{className:p})})}const CV=gt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xt=CV,mV=["center","classes","className"];let $E=u=>u,Lv,$v,Uv,Wv;const jh=550,gV=80,bV=I7(Lv||(Lv=$E` + */var ce=typeof Symbol=="function"&&Symbol.for,Sm=ce?Symbol.for("react.element"):60103,Tm=ce?Symbol.for("react.portal"):60106,b9=ce?Symbol.for("react.fragment"):60107,g9=ce?Symbol.for("react.strict_mode"):60108,A9=ce?Symbol.for("react.profiler"):60114,y9=ce?Symbol.for("react.provider"):60109,v9=ce?Symbol.for("react.context"):60110,Pm=ce?Symbol.for("react.async_mode"):60111,B9=ce?Symbol.for("react.concurrent_mode"):60111,F9=ce?Symbol.for("react.forward_ref"):60112,D9=ce?Symbol.for("react.suspense"):60113,mq=ce?Symbol.for("react.suspense_list"):60120,w9=ce?Symbol.for("react.memo"):60115,x9=ce?Symbol.for("react.lazy"):60116,bq=ce?Symbol.for("react.block"):60121,gq=ce?Symbol.for("react.fundamental"):60117,Aq=ce?Symbol.for("react.responder"):60118,yq=ce?Symbol.for("react.scope"):60119;function Ut(u){if(typeof u=="object"&&u!==null){var e=u.$$typeof;switch(e){case Sm:switch(u=u.type,u){case Pm:case B9:case b9:case A9:case g9:case D9:return u;default:switch(u=u&&u.$$typeof,u){case v9:case F9:case x9:case w9:case y9:return u;default:return e}}case Tm:return e}}}function DS(u){return Ut(u)===B9}au.AsyncMode=Pm;au.ConcurrentMode=B9;au.ContextConsumer=v9;au.ContextProvider=y9;au.Element=Sm;au.ForwardRef=F9;au.Fragment=b9;au.Lazy=x9;au.Memo=w9;au.Portal=Tm;au.Profiler=A9;au.StrictMode=g9;au.Suspense=D9;au.isAsyncMode=function(u){return DS(u)||Ut(u)===Pm};au.isConcurrentMode=DS;au.isContextConsumer=function(u){return Ut(u)===v9};au.isContextProvider=function(u){return Ut(u)===y9};au.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===Sm};au.isForwardRef=function(u){return Ut(u)===F9};au.isFragment=function(u){return Ut(u)===b9};au.isLazy=function(u){return Ut(u)===x9};au.isMemo=function(u){return Ut(u)===w9};au.isPortal=function(u){return Ut(u)===Tm};au.isProfiler=function(u){return Ut(u)===A9};au.isStrictMode=function(u){return Ut(u)===g9};au.isSuspense=function(u){return Ut(u)===D9};au.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===b9||u===B9||u===A9||u===g9||u===D9||u===mq||typeof u=="object"&&u!==null&&(u.$$typeof===x9||u.$$typeof===w9||u.$$typeof===y9||u.$$typeof===v9||u.$$typeof===F9||u.$$typeof===gq||u.$$typeof===Aq||u.$$typeof===yq||u.$$typeof===bq)};au.typeOf=Ut;FS.exports=au;var vq=FS.exports,wS=vq,Bq={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fq={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xS={};xS[wS.ForwardRef]=Bq;xS[wS.Memo]=Fq;var Dq=!0;function wq(u,e,t){var n="";return t.split(" ").forEach(function(r){u[r]!==void 0?e.push(u[r]+";"):n+=r+" "}),n}var kS=function(e,t,n){var r=e.key+"-"+t.name;(n===!1||Dq===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},_S=function(e,t,n){kS(e,t,n);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};function xq(u){for(var e=0,t,n=0,r=u.length;r>=4;++n,r-=4)t=u.charCodeAt(n)&255|(u.charCodeAt(++n)&255)<<8|(u.charCodeAt(++n)&255)<<16|(u.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(u.charCodeAt(n+2)&255)<<16;case 2:e^=(u.charCodeAt(n+1)&255)<<8;case 1:e^=u.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var kq={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_q=/[A-Z]|^ms/g,Sq=/_EMO_([^_]+?)_([^]*?)_EMO_/g,SS=function(e){return e.charCodeAt(1)===45},yv=function(e){return e!=null&&typeof e!="boolean"},g8=CS(function(u){return SS(u)?u:u.replace(_q,"-$&").toLowerCase()}),vv=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Sq,function(n,r,i){return tr={name:r,styles:i,next:tr},r})}return kq[e]!==1&&!SS(e)&&typeof t=="number"&&t!==0?t+"px":t};function Ul(u,e,t){if(t==null)return"";if(t.__emotion_styles!==void 0)return t;switch(typeof t){case"boolean":return"";case"object":{if(t.anim===1)return tr={name:t.name,styles:t.styles,next:tr},t.name;if(t.styles!==void 0){var n=t.next;if(n!==void 0)for(;n!==void 0;)tr={name:n.name,styles:n.styles,next:tr},n=n.next;var r=t.styles+";";return r}return Tq(u,e,t)}case"function":{if(u!==void 0){var i=tr,a=t(u);return tr=i,Ul(u,e,a)}break}}if(e==null)return t;var o=e[t];return o!==void 0?o:t}function Tq(u,e,t){var n="";if(Array.isArray(t))for(var r=0;r96?Rq:Mq},wv=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(a){return e.__emotion_forwardProp(a)&&i(a)}:i}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r},jq=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return kS(t,n,r),Oq(function(){return _S(t,n,r)}),null},zq=function u(e,t){var n=e.__emotion_real===e,r=n&&e.__emotion_base||e,i,a;t!==void 0&&(i=t.label,a=t.target);var o=wv(e,t,n),s=o||Dv(r),f=!s("as");return function(){var l=arguments,c=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&c.push("label:"+i+";"),l[0]==null||l[0].raw===void 0)c.push.apply(c,l);else{c.push(l[0][0]);for(var E=l.length,d=1;de($q(r)?t:r):e;return f0.jsx(Iq,{styles:n})}function IS(u,e){return Rh(u,e)}const Wq=(u,e)=>{Array.isArray(u.__emotion_styles)&&(u.__emotion_styles=e(u.__emotion_styles))},qq=["values","unit","step"],Hq=u=>{const e=Object.keys(u).map(t=>({key:t,val:u[t]}))||[];return e.sort((t,n)=>t.val-n.val),e.reduce((t,n)=>r0({},t,{[n.key]:n.val}),{})};function Gq(u){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5}=u,r=cu(u,qq),i=Hq(e),a=Object.keys(i);function o(E){return`@media (min-width:${typeof e[E]=="number"?e[E]:E}${t})`}function s(E){return`@media (max-width:${(typeof e[E]=="number"?e[E]:E)-n/100}${t})`}function f(E,d){const p=a.indexOf(d);return`@media (min-width:${typeof e[E]=="number"?e[E]:E}${t}) and (max-width:${(p!==-1&&typeof e[a[p]]=="number"?e[a[p]]:d)-n/100}${t})`}function l(E){return a.indexOf(E)+1`@media (min-width:${Nm[u]}px)`};function dt(u,e,t){const n=u.theme||{};if(Array.isArray(e)){const i=n.breakpoints||xv;return e.reduce((a,o,s)=>(a[i.up(i.keys[s])]=t(e[s]),a),{})}if(typeof e=="object"){const i=n.breakpoints||xv;return Object.keys(e).reduce((a,o)=>{if(Object.keys(i.values||Nm).indexOf(o)!==-1){const s=i.up(o);a[s]=t(e[o],o)}else{const s=o;a[s]=e[s]}return a},{})}return t(e)}function NS(u={}){var e;return((e=u.keys)==null?void 0:e.reduce((n,r)=>{const i=u.up(r);return n[i]={},n},{}))||{}}function RS(u,e){return u.reduce((t,n)=>{const r=t[n];return(!r||Object.keys(r).length===0)&&delete t[n],t},e)}function Qq(u,...e){const t=NS(u),n=[t,...e].reduce((r,i)=>Mt(r,i),{});return RS(Object.keys(t),n)}function Jq(u,e){if(typeof u!="object")return{};const t={},n=Object.keys(e);return Array.isArray(u)?n.forEach((r,i)=>{i{u[r]!=null&&(t[r]=!0)}),t}function ho({values:u,breakpoints:e,base:t}){const n=t||Jq(u,e),r=Object.keys(n);if(r.length===0)return u;let i;return r.reduce((a,o,s)=>(Array.isArray(u)?(a[o]=u[s]!=null?u[s]:u[i],i=s):typeof u=="object"?(a[o]=u[o]!=null?u[o]:u[i],i=o):a[o]=u,a),{})}function _9(u,e,t=!0){if(!e||typeof e!="string")return null;if(u&&u.vars&&t){const n=`vars.${e}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,u);if(n!=null)return n}return e.split(".").reduce((n,r)=>n&&n[r]!=null?n[r]:null,u)}function R5(u,e,t,n=t){let r;return typeof u=="function"?r=u(t):Array.isArray(u)?r=u[t]||n:r=_9(u,t)||n,e&&(r=e(r,n,u)),r}function Uu(u){const{prop:e,cssProperty:t=u.prop,themeKey:n,transform:r}=u,i=a=>{if(a[e]==null)return null;const o=a[e],s=a.theme,f=_9(s,n)||{};return dt(a,o,c=>{let E=R5(f,r,c);return c===E&&typeof c=="string"&&(E=R5(f,r,`${e}${c==="default"?"":su(c)}`,c)),t===!1?E:{[t]:E}})};return i.propTypes={},i.filterProps=[e],i}function Yq(u){const e={};return t=>(e[t]===void 0&&(e[t]=u(t)),e[t])}const Zq={m:"margin",p:"padding"},Xq={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uH=Yq(u=>{if(u.length>2)if(kv[u])u=kv[u];else return[u];const[e,t]=u.split(""),n=Zq[e],r=Xq[t]||"";return Array.isArray(r)?r.map(i=>n+i):[n+r]}),Rm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Mm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Rm,...Mm];function j1(u,e,t,n){var r;const i=(r=_9(u,e,!1))!=null?r:t;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function jm(u){return j1(u,"spacing",8)}function wo(u,e){if(typeof e=="string"||e==null)return e;const t=Math.abs(e),n=u(t);return e>=0?n:typeof n=="number"?-n:`-${n}`}function eH(u,e){return t=>u.reduce((n,r)=>(n[r]=wo(e,t),n),{})}function tH(u,e,t,n){if(e.indexOf(t)===-1)return null;const r=uH(t),i=eH(r,n),a=u[t];return dt(u,a,i)}function MS(u,e){const t=jm(u.theme);return Object.keys(u).map(n=>tH(u,e,n,t)).reduce(pl,{})}function Ou(u){return MS(u,Rm)}Ou.propTypes={};Ou.filterProps=Rm;function Iu(u){return MS(u,Mm)}Iu.propTypes={};Iu.filterProps=Mm;function nH(u=8){if(u.mui)return u;const e=jm({spacing:u}),t=(...n)=>(n.length===0?[1]:n).map(i=>{const a=e(i);return typeof a=="number"?`${a}px`:a}).join(" ");return t.mui=!0,t}function S9(...u){const e=u.reduce((n,r)=>(r.filterProps.forEach(i=>{n[i]=r}),n),{}),t=n=>Object.keys(n).reduce((r,i)=>e[i]?pl(r,e[i](n)):r,{});return t.propTypes={},t.filterProps=u.reduce((n,r)=>n.concat(r.filterProps),[]),t}function tn(u){return typeof u!="number"?u:`${u}px solid`}function pn(u,e){return Uu({prop:u,themeKey:"borders",transform:e})}const rH=pn("border",tn),iH=pn("borderTop",tn),aH=pn("borderRight",tn),oH=pn("borderBottom",tn),sH=pn("borderLeft",tn),fH=pn("borderColor"),lH=pn("borderTopColor"),cH=pn("borderRightColor"),EH=pn("borderBottomColor"),dH=pn("borderLeftColor"),pH=pn("outline",tn),hH=pn("outlineColor"),T9=u=>{if(u.borderRadius!==void 0&&u.borderRadius!==null){const e=j1(u.theme,"shape.borderRadius",4),t=n=>({borderRadius:wo(e,n)});return dt(u,u.borderRadius,t)}return null};T9.propTypes={};T9.filterProps=["borderRadius"];S9(rH,iH,aH,oH,sH,fH,lH,cH,EH,dH,T9,pH,hH);const P9=u=>{if(u.gap!==void 0&&u.gap!==null){const e=j1(u.theme,"spacing",8),t=n=>({gap:wo(e,n)});return dt(u,u.gap,t)}return null};P9.propTypes={};P9.filterProps=["gap"];const O9=u=>{if(u.columnGap!==void 0&&u.columnGap!==null){const e=j1(u.theme,"spacing",8),t=n=>({columnGap:wo(e,n)});return dt(u,u.columnGap,t)}return null};O9.propTypes={};O9.filterProps=["columnGap"];const I9=u=>{if(u.rowGap!==void 0&&u.rowGap!==null){const e=j1(u.theme,"spacing",8),t=n=>({rowGap:wo(e,n)});return dt(u,u.rowGap,t)}return null};I9.propTypes={};I9.filterProps=["rowGap"];const CH=Uu({prop:"gridColumn"}),mH=Uu({prop:"gridRow"}),bH=Uu({prop:"gridAutoFlow"}),gH=Uu({prop:"gridAutoColumns"}),AH=Uu({prop:"gridAutoRows"}),yH=Uu({prop:"gridTemplateColumns"}),vH=Uu({prop:"gridTemplateRows"}),BH=Uu({prop:"gridTemplateAreas"}),FH=Uu({prop:"gridArea"});S9(P9,O9,I9,CH,mH,bH,gH,AH,yH,vH,BH,FH);function e4(u,e){return e==="grey"?e:u}const DH=Uu({prop:"color",themeKey:"palette",transform:e4}),wH=Uu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:e4}),xH=Uu({prop:"backgroundColor",themeKey:"palette",transform:e4});S9(DH,wH,xH);function Tt(u){return u<=1&&u!==0?`${u*100}%`:u}const kH=Uu({prop:"width",transform:Tt}),zm=u=>{if(u.maxWidth!==void 0&&u.maxWidth!==null){const e=t=>{var n,r;const i=((n=u.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[t])||Nm[t];return i?((r=u.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:`${i}${u.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Tt(t)}};return dt(u,u.maxWidth,e)}return null};zm.filterProps=["maxWidth"];const _H=Uu({prop:"minWidth",transform:Tt}),SH=Uu({prop:"height",transform:Tt}),TH=Uu({prop:"maxHeight",transform:Tt}),PH=Uu({prop:"minHeight",transform:Tt});Uu({prop:"size",cssProperty:"width",transform:Tt});Uu({prop:"size",cssProperty:"height",transform:Tt});const OH=Uu({prop:"boxSizing"});S9(kH,zm,_H,SH,TH,PH,OH);const IH={border:{themeKey:"borders",transform:tn},borderTop:{themeKey:"borders",transform:tn},borderRight:{themeKey:"borders",transform:tn},borderBottom:{themeKey:"borders",transform:tn},borderLeft:{themeKey:"borders",transform:tn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:T9},color:{themeKey:"palette",transform:e4},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:e4},backgroundColor:{themeKey:"palette",transform:e4},p:{style:Iu},pt:{style:Iu},pr:{style:Iu},pb:{style:Iu},pl:{style:Iu},px:{style:Iu},py:{style:Iu},padding:{style:Iu},paddingTop:{style:Iu},paddingRight:{style:Iu},paddingBottom:{style:Iu},paddingLeft:{style:Iu},paddingX:{style:Iu},paddingY:{style:Iu},paddingInline:{style:Iu},paddingInlineStart:{style:Iu},paddingInlineEnd:{style:Iu},paddingBlock:{style:Iu},paddingBlockStart:{style:Iu},paddingBlockEnd:{style:Iu},m:{style:Ou},mt:{style:Ou},mr:{style:Ou},mb:{style:Ou},ml:{style:Ou},mx:{style:Ou},my:{style:Ou},margin:{style:Ou},marginTop:{style:Ou},marginRight:{style:Ou},marginBottom:{style:Ou},marginLeft:{style:Ou},marginX:{style:Ou},marginY:{style:Ou},marginInline:{style:Ou},marginInlineStart:{style:Ou},marginInlineEnd:{style:Ou},marginBlock:{style:Ou},marginBlockStart:{style:Ou},marginBlockEnd:{style:Ou},displayPrint:{cssProperty:!1,transform:u=>({"@media print":{display:u}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:P9},rowGap:{style:I9},columnGap:{style:O9},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tt},maxWidth:{style:zm},minWidth:{transform:Tt},height:{transform:Tt},maxHeight:{transform:Tt},minHeight:{transform:Tt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},N9=IH;function NH(...u){const e=u.reduce((n,r)=>n.concat(Object.keys(r)),[]),t=new Set(e);return u.every(n=>t.size===Object.keys(n).length)}function RH(u,e){return typeof u=="function"?u(e):u}function MH(){function u(t,n,r,i){const a={[t]:n,theme:r},o=i[t];if(!o)return{[t]:n};const{cssProperty:s=t,themeKey:f,transform:l,style:c}=o;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[t]:n};const E=_9(r,f)||{};return c?c(a):dt(a,n,p=>{let h=R5(E,l,p);return p===h&&typeof p=="string"&&(h=R5(E,l,`${t}${p==="default"?"":su(p)}`,p)),s===!1?h:{[s]:h}})}function e(t){var n;const{sx:r,theme:i={}}=t||{};if(!r)return null;const a=(n=i.unstable_sxConfig)!=null?n:N9;function o(s){let f=s;if(typeof s=="function")f=s(i);else if(typeof s!="object")return s;if(!f)return null;const l=NS(i.breakpoints),c=Object.keys(l);let E=l;return Object.keys(f).forEach(d=>{const p=RH(f[d],i);if(p!=null)if(typeof p=="object")if(a[d])E=pl(E,u(d,p,i,a));else{const h=dt({theme:i},p,g=>({[d]:g}));NH(h,p)?E[d]=e({sx:p,theme:i}):E=pl(E,h)}else E=pl(E,u(d,p,i,a))}),RS(c,E)}return Array.isArray(r)?r.map(o):o(r)}return e}const jS=MH();jS.filterProps=["sx"];const R9=jS,jH=["breakpoints","palette","spacing","shape"];function z1(u={},...e){const{breakpoints:t={},palette:n={},spacing:r,shape:i={}}=u,a=cu(u,jH),o=Gq(t),s=nH(r);let f=Mt({breakpoints:o,direction:"ltr",components:{},palette:r0({mode:"light"},n),spacing:s,shape:r0({},Kq,i)},a);return f=e.reduce((l,c)=>Mt(l,c),f),f.unstable_sxConfig=r0({},N9,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(c){return R9({sx:c,theme:this})},f}function zH(u){return Object.keys(u).length===0}function zS(u=null){const e=w.useContext(k9);return!e||zH(e)?u:e}const LH=z1();function M9(u=LH){return zS(u)}function $H({styles:u,themeId:e,defaultTheme:t={}}){const n=M9(t),r=typeof u=="function"?u(e&&n[e]||n):u;return f0.jsx(Uq,{styles:r})}const UH=["sx"],WH=u=>{var e,t;const n={systemProps:{},otherProps:{}},r=(e=u==null||(t=u.theme)==null?void 0:t.unstable_sxConfig)!=null?e:N9;return Object.keys(u).forEach(i=>{r[i]?n.systemProps[i]=u[i]:n.otherProps[i]=u[i]}),n};function j9(u){const{sx:e}=u,t=cu(u,UH),{systemProps:n,otherProps:r}=WH(t);let i;return Array.isArray(e)?i=[n,...e]:typeof e=="function"?i=(...a)=>{const o=e(...a);return zr(o)?r0({},n,o):n}:i=r0({},n,e),r0({},r,{sx:i})}const qH=["className","component"];function HH(u={}){const{themeId:e,defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=u,i=IS("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(R9);return w.forwardRef(function(s,f){const l=M9(t),c=j9(s),{className:E,component:d="div"}=c,p=cu(c,qH);return f0.jsx(i,r0({as:d,ref:f,className:pu(E,r?r(n):n),theme:e&&l[e]||l},p))})}const GH=["variant"];function _v(u){return u.length===0}function LS(u){const{variant:e}=u,t=cu(u,GH);let n=e||"";return Object.keys(t).sort().forEach(r=>{r==="color"?n+=_v(n)?u[r]:su(u[r]):n+=`${_v(n)?r:su(r)}${su(u[r].toString())}`}),n}const VH=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function KH(u){return Object.keys(u).length===0}function QH(u){return typeof u=="string"&&u.charCodeAt(0)>96}const JH=(u,e)=>e.components&&e.components[u]&&e.components[u].styleOverrides?e.components[u].styleOverrides:null,M5=u=>{const e={};return u&&u.forEach(t=>{const n=LS(t.props);e[n]=t.style}),e},YH=(u,e)=>{let t=[];return e&&e.components&&e.components[u]&&e.components[u].variants&&(t=e.components[u].variants),M5(t)},j5=(u,e,t)=>{const{ownerState:n={}}=u,r=[];return t&&t.forEach(i=>{let a=!0;Object.keys(i.props).forEach(o=>{n[o]!==i.props[o]&&u[o]!==i.props[o]&&(a=!1)}),a&&r.push(e[LS(i.props)])}),r},ZH=(u,e,t,n)=>{var r;const i=t==null||(r=t.components)==null||(r=r[n])==null?void 0:r.variants;return j5(u,e,i)};function z6(u){return u!=="ownerState"&&u!=="theme"&&u!=="sx"&&u!=="as"}const XH=z1(),uG=u=>u&&u.charAt(0).toLowerCase()+u.slice(1);function L6({defaultTheme:u,theme:e,themeId:t}){return KH(e)?u:e[t]||e}function eG(u){return u?(e,t)=>t[u]:null}const Sv=({styledArg:u,props:e,defaultTheme:t,themeId:n})=>{const r=u(r0({},e,{theme:L6(r0({},e,{defaultTheme:t,themeId:n}))}));let i;if(r&&r.variants&&(i=r.variants,delete r.variants),i){const a=j5(e,M5(i),i);return[r,...a]}return r};function $S(u={}){const{themeId:e,defaultTheme:t=XH,rootShouldForwardProp:n=z6,slotShouldForwardProp:r=z6}=u,i=a=>R9(r0({},a,{theme:L6(r0({},a,{defaultTheme:t,themeId:e}))}));return i.__mui_systemSx=!0,(a,o={})=>{Wq(a,y=>y.filter(B=>!(B!=null&&B.__mui_systemSx)));const{name:s,slot:f,skipVariantsResolver:l,skipSx:c,overridesResolver:E=eG(uG(f))}=o,d=cu(o,VH),p=l!==void 0?l:f&&f!=="Root"&&f!=="root"||!1,h=c||!1;let g,b=z6;f==="Root"||f==="root"?b=n:f?b=r:QH(a)&&(b=void 0);const m=IS(a,r0({shouldForwardProp:b,label:g},d)),A=(y,...B)=>{const v=B?B.map(_=>{if(typeof _=="function"&&_.__emotion_real!==_)return $=>Sv({styledArg:_,props:$,defaultTheme:t,themeId:e});if(zr(_)){let $=_,u0;return _&&_.variants&&(u0=_.variants,delete $.variants,$=e0=>{let o0=_;return j5(e0,M5(u0),u0).forEach(R=>{o0=Mt(o0,R)}),o0}),$}return _}):[];let C=y;if(zr(y)){let _;y&&y.variants&&(_=y.variants,delete C.variants,C=$=>{let u0=y;return j5($,M5(_),_).forEach(o0=>{u0=Mt(u0,o0)}),u0})}else typeof y=="function"&&y.__emotion_real!==y&&(C=_=>Sv({styledArg:y,props:_,defaultTheme:t,themeId:e}));s&&E&&v.push(_=>{const $=L6(r0({},_,{defaultTheme:t,themeId:e})),u0=JH(s,$);if(u0){const e0={};return Object.entries(u0).forEach(([o0,N])=>{e0[o0]=typeof N=="function"?N(r0({},_,{theme:$})):N}),E(_,e0)}return null}),s&&!p&&v.push(_=>{const $=L6(r0({},_,{defaultTheme:t,themeId:e}));return ZH(_,YH(s,$),$,s)}),h||v.push(i);const D=v.length-B.length;if(Array.isArray(y)&&D>0){const _=new Array(D).fill("");C=[...y,..._],C.raw=[...y.raw,..._]}const T=m(C,...v);return a.muiName&&(T.muiName=a.muiName),T};return m.withConfig&&(A.withConfig=m.withConfig),A}}const tG=$S(),US=tG;function nG(u){const{theme:e,name:t,props:n}=u;return!e||!e.components||!e.components[t]||!e.components[t].defaultProps?n:wm(e.components[t].defaultProps,n)}function Lm({props:u,name:e,defaultTheme:t,themeId:n}){let r=M9(t);return n&&(r=r[n]||r),nG({theme:r,name:e,props:u})}function $m(u,e=0,t=1){return Math.min(Math.max(e,u),t)}function rG(u){u=u.slice(1);const e=new RegExp(`.{1,${u.length>=6?2:1}}`,"g");let t=u.match(e);return t&&t[0].length===1&&(t=t.map(n=>n+n)),t?`rgb${t.length===4?"a":""}(${t.map((n,r)=>r<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function xo(u){if(u.type)return u;if(u.charAt(0)==="#")return xo(rG(u));const e=u.indexOf("("),t=u.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error(tf(9,u));let n=u.substring(e+1,u.length-1),r;if(t==="color"){if(n=n.split(" "),r=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(tf(10,r))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:t,values:n,colorSpace:r}}function z9(u){const{type:e,colorSpace:t}=u;let{values:n}=u;return e.indexOf("rgb")!==-1?n=n.map((r,i)=>i<3?parseInt(r,10):r):e.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.indexOf("color")!==-1?n=`${t} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function iG(u){u=xo(u);const{values:e}=u,t=e[0],n=e[1]/100,r=e[2]/100,i=n*Math.min(r,1-r),a=(f,l=(f+t/30)%12)=>r-i*Math.max(Math.min(l-3,9-l,1),-1);let o="rgb";const s=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return u.type==="hsla"&&(o+="a",s.push(e[3])),z9({type:o,values:s})}function Tv(u){u=xo(u);let e=u.type==="hsl"||u.type==="hsla"?xo(iG(u)).values:u.values;return e=e.map(t=>(u.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function aG(u,e){const t=Tv(u),n=Tv(e);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function zs(u,e){return u=xo(u),e=$m(e),(u.type==="rgb"||u.type==="hsl")&&(u.type+="a"),u.type==="color"?u.values[3]=`/${e}`:u.values[3]=e,z9(u)}function oG(u,e){if(u=xo(u),e=$m(e),u.type.indexOf("hsl")!==-1)u.values[2]*=1-e;else if(u.type.indexOf("rgb")!==-1||u.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)u.values[t]*=1-e;return z9(u)}function sG(u,e){if(u=xo(u),e=$m(e),u.type.indexOf("hsl")!==-1)u.values[2]+=(100-u.values[2])*e;else if(u.type.indexOf("rgb")!==-1)for(let t=0;t<3;t+=1)u.values[t]+=(255-u.values[t])*e;else if(u.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)u.values[t]+=(1-u.values[t])*e;return z9(u)}const fG=w.createContext(null),WS=fG;function qS(){return w.useContext(WS)}const lG=typeof Symbol=="function"&&Symbol.for,cG=lG?Symbol.for("mui.nested"):"__THEME_NESTED__";function EG(u,e){return typeof e=="function"?e(u):r0({},u,e)}function dG(u){const{children:e,theme:t}=u,n=qS(),r=w.useMemo(()=>{const i=n===null?t:EG(n,t);return i!=null&&(i[cG]=n!==null),i},[t,n]);return f0.jsx(WS.Provider,{value:r,children:e})}const Pv={};function Ov(u,e,t,n=!1){return w.useMemo(()=>{const r=u&&e[u]||e;if(typeof t=="function"){const i=t(r),a=u?r0({},e,{[u]:i}):i;return n?()=>a:a}return u?r0({},e,{[u]:t}):r0({},e,t)},[u,e,t,n])}function pG(u){const{children:e,theme:t,themeId:n}=u,r=zS(Pv),i=qS()||Pv,a=Ov(n,r,t),o=Ov(n,i,t,!0);return f0.jsx(dG,{theme:o,children:f0.jsx(k9.Provider,{value:a,children:e})})}const hG=["className","component","disableGutters","fixed","maxWidth","classes"],CG=z1(),mG=US("div",{name:"MuiContainer",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[`maxWidth${su(String(t.maxWidth))}`],t.fixed&&e.fixed,t.disableGutters&&e.disableGutters]}}),bG=u=>Lm({props:u,name:"MuiContainer",defaultTheme:CG}),gG=(u,e)=>{const t=s=>Xe(e,s),{classes:n,fixed:r,disableGutters:i,maxWidth:a}=u,o={root:["root",a&&`maxWidth${su(String(a))}`,r&&"fixed",i&&"disableGutters"]};return mt(o,t,n)};function AG(u={}){const{createStyledComponent:e=mG,useThemeProps:t=bG,componentName:n="MuiContainer"}=u,r=e(({theme:a,ownerState:o})=>r0({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:o})=>o.fixed&&Object.keys(a.breakpoints.values).reduce((s,f)=>{const l=f,c=a.breakpoints.values[l];return c!==0&&(s[a.breakpoints.up(l)]={maxWidth:`${c}${a.breakpoints.unit}`}),s},{}),({theme:a,ownerState:o})=>r0({},o.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[a.breakpoints.up(o.maxWidth)]:{maxWidth:`${a.breakpoints.values[o.maxWidth]}${a.breakpoints.unit}`}}));return w.forwardRef(function(o,s){const f=t(o),{className:l,component:c="div",disableGutters:E=!1,fixed:d=!1,maxWidth:p="lg"}=f,h=cu(f,hG),g=r0({},f,{component:c,disableGutters:E,fixed:d,maxWidth:p}),b=gG(g,n);return f0.jsx(r,r0({as:c,ownerState:g,className:pu(b.root,l),ref:s},h))})}const yG=["component","direction","spacing","divider","children","className","useFlexGap"],vG=z1(),BG=US("div",{name:"MuiStack",slot:"Root",overridesResolver:(u,e)=>e.root});function FG(u){return Lm({props:u,name:"MuiStack",defaultTheme:vG})}function DG(u,e){const t=w.Children.toArray(u).filter(Boolean);return t.reduce((n,r,i)=>(n.push(r),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[u],xG=({ownerState:u,theme:e})=>{let t=r0({display:"flex",flexDirection:"column"},dt({theme:e},ho({values:u.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n})));if(u.spacing){const n=jm(e),r=Object.keys(e.breakpoints.values).reduce((s,f)=>((typeof u.spacing=="object"&&u.spacing[f]!=null||typeof u.direction=="object"&&u.direction[f]!=null)&&(s[f]=!0),s),{}),i=ho({values:u.direction,base:r}),a=ho({values:u.spacing,base:r});typeof i=="object"&&Object.keys(i).forEach((s,f,l)=>{if(!i[s]){const E=f>0?i[l[f-1]]:"column";i[s]=E}}),t=Mt(t,dt({theme:e},a,(s,f)=>u.useFlexGap?{gap:wo(n,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${wG(f?i[f]:u.direction)}`]:wo(n,s)}}))}return t=Qq(e.breakpoints,t),t};function kG(u={}){const{createStyledComponent:e=BG,useThemeProps:t=FG,componentName:n="MuiStack"}=u,r=()=>mt({root:["root"]},s=>Xe(n,s),{}),i=e(xG);return w.forwardRef(function(s,f){const l=t(s),c=j9(l),{component:E="div",direction:d="column",spacing:p=0,divider:h,children:g,className:b,useFlexGap:m=!1}=c,A=cu(c,yG),y={direction:d,spacing:p,useFlexGap:m},B=r();return f0.jsx(i,r0({as:E,ownerState:y,ref:f,className:pu(B.root,b)},A,{children:h?DG(g,h):g}))})}const _G=kG(),SG=_G;function TG(u,e){return r0({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},e)}const PG={black:"#000",white:"#fff"},Wl=PG,OG={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},IG=OG,NG={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},os=NG,RG={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},_a=RG,MG={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},T3=MG,jG={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ss=jG,zG={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},fs=zG,LG={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ls=LG,$G=["mode","contrastThreshold","tonalOffset"],Iv={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Wl.white,default:Wl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},A8={text:{primary:Wl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Wl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Nv(u,e,t,n){const r=n.light||n,i=n.dark||n*1.5;u[e]||(u.hasOwnProperty(t)?u[e]=u[t]:e==="light"?u.light=sG(u.main,r):e==="dark"&&(u.dark=oG(u.main,i)))}function UG(u="light"){return u==="dark"?{main:ss[200],light:ss[50],dark:ss[400]}:{main:ss[700],light:ss[400],dark:ss[800]}}function WG(u="light"){return u==="dark"?{main:os[200],light:os[50],dark:os[400]}:{main:os[500],light:os[300],dark:os[700]}}function qG(u="light"){return u==="dark"?{main:_a[500],light:_a[300],dark:_a[700]}:{main:_a[700],light:_a[400],dark:_a[800]}}function HG(u="light"){return u==="dark"?{main:fs[400],light:fs[300],dark:fs[700]}:{main:fs[700],light:fs[500],dark:fs[900]}}function GG(u="light"){return u==="dark"?{main:ls[400],light:ls[300],dark:ls[700]}:{main:ls[800],light:ls[500],dark:ls[900]}}function VG(u="light"){return u==="dark"?{main:T3[400],light:T3[300],dark:T3[700]}:{main:"#ed6c02",light:T3[500],dark:T3[900]}}function KG(u){const{mode:e="light",contrastThreshold:t=3,tonalOffset:n=.2}=u,r=cu(u,$G),i=u.primary||UG(e),a=u.secondary||WG(e),o=u.error||qG(e),s=u.info||HG(e),f=u.success||GG(e),l=u.warning||VG(e);function c(h){return aG(h,A8.text.primary)>=t?A8.text.primary:Iv.text.primary}const E=({color:h,name:g,mainShade:b=500,lightShade:m=300,darkShade:A=700})=>{if(h=r0({},h),!h.main&&h[b]&&(h.main=h[b]),!h.hasOwnProperty("main"))throw new Error(tf(11,g?` (${g})`:"",b));if(typeof h.main!="string")throw new Error(tf(12,g?` (${g})`:"",JSON.stringify(h.main)));return Nv(h,"light",m,n),Nv(h,"dark",A,n),h.contrastText||(h.contrastText=c(h.main)),h},d={dark:A8,light:Iv};return Mt(r0({common:r0({},Wl),mode:e,primary:E({color:i,name:"primary"}),secondary:E({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:E({color:o,name:"error"}),warning:E({color:l,name:"warning"}),info:E({color:s,name:"info"}),success:E({color:f,name:"success"}),grey:IG,contrastThreshold:t,getContrastText:c,augmentColor:E,tonalOffset:n},d[e]),r)}const QG=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function JG(u){return Math.round(u*1e5)/1e5}const Rv={textTransform:"uppercase"},Mv='"Roboto", "Helvetica", "Arial", sans-serif';function YG(u,e){const t=typeof e=="function"?e(u):e,{fontFamily:n=Mv,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:f=16,allVariants:l,pxToRem:c}=t,E=cu(t,QG),d=r/14,p=c||(b=>`${b/f*d}rem`),h=(b,m,A,y,B)=>r0({fontFamily:n,fontWeight:b,fontSize:p(m),lineHeight:A},n===Mv?{letterSpacing:`${JG(y/m)}em`}:{},B,l),g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(o,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(o,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(o,14,1.75,.4,Rv),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Rv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mt(r0({htmlFontSize:f,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s},g),E,{clone:!1})}const ZG=.2,XG=.14,uV=.12;function gu(...u){return[`${u[0]}px ${u[1]}px ${u[2]}px ${u[3]}px rgba(0,0,0,${ZG})`,`${u[4]}px ${u[5]}px ${u[6]}px ${u[7]}px rgba(0,0,0,${XG})`,`${u[8]}px ${u[9]}px ${u[10]}px ${u[11]}px rgba(0,0,0,${uV})`].join(",")}const eV=["none",gu(0,2,1,-1,0,1,1,0,0,1,3,0),gu(0,3,1,-2,0,2,2,0,0,1,5,0),gu(0,3,3,-2,0,3,4,0,0,1,8,0),gu(0,2,4,-1,0,4,5,0,0,1,10,0),gu(0,3,5,-1,0,5,8,0,0,1,14,0),gu(0,3,5,-1,0,6,10,0,0,1,18,0),gu(0,4,5,-2,0,7,10,1,0,2,16,1),gu(0,5,5,-3,0,8,10,1,0,3,14,2),gu(0,5,6,-3,0,9,12,1,0,3,16,2),gu(0,6,6,-3,0,10,14,1,0,4,18,3),gu(0,6,7,-4,0,11,15,1,0,4,20,3),gu(0,7,8,-4,0,12,17,2,0,5,22,4),gu(0,7,8,-4,0,13,19,2,0,5,24,4),gu(0,7,9,-4,0,14,21,2,0,5,26,4),gu(0,8,9,-5,0,15,22,2,0,6,28,5),gu(0,8,10,-5,0,16,24,2,0,6,30,5),gu(0,8,11,-5,0,17,26,2,0,6,32,5),gu(0,9,11,-5,0,18,28,2,0,7,34,6),gu(0,9,12,-6,0,19,29,2,0,7,36,6),gu(0,10,13,-6,0,20,31,3,0,8,38,7),gu(0,10,13,-6,0,21,33,3,0,8,40,7),gu(0,10,14,-6,0,22,35,3,0,8,42,7),gu(0,11,14,-7,0,23,36,3,0,9,44,8),gu(0,11,15,-7,0,24,38,3,0,9,46,8)],tV=eV,nV=["duration","easing","delay"],rV={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},iV={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jv(u){return`${Math.round(u)}ms`}function aV(u){if(!u)return 0;const e=u/36;return Math.round((4+15*e**.25+e/5)*10)}function oV(u){const e=r0({},rV,u.easing),t=r0({},iV,u.duration);return r0({getAutoHeightDuration:aV,create:(r=["all"],i={})=>{const{duration:a=t.standard,easing:o=e.easeInOut,delay:s=0}=i;return cu(i,nV),(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:jv(a)} ${o} ${typeof s=="string"?s:jv(s)}`).join(",")}},u,{easing:e,duration:t})}const sV={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},fV=sV,lV=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Um(u={},...e){const{mixins:t={},palette:n={},transitions:r={},typography:i={}}=u,a=cu(u,lV);if(u.vars)throw new Error(tf(18));const o=KG(n),s=z1(u);let f=Mt(s,{mixins:TG(s.breakpoints,t),palette:o,shadows:tV.slice(),typography:YG(o,i),transitions:oV(r),zIndex:r0({},fV)});return f=Mt(f,a),f=e.reduce((l,c)=>Mt(l,c),f),f.unstable_sxConfig=r0({},N9,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(c){return R9({sx:c,theme:this})},f}const cV=Um(),L9=cV,ko="$$material",HS=u=>z6(u)&&u!=="classes",EV=$S({themeId:ko,defaultTheme:L9,rootShouldForwardProp:HS}),Ee=EV;function gt({props:u,name:e}){return Lm({props:u,name:e,defaultTheme:L9,themeId:ko})}function Mh(u,e){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Mh(u,e)}function dV(u,e){u.prototype=Object.create(e.prototype),u.prototype.constructor=u,Mh(u,e)}const zv=F.createContext(null);function pV(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function Wm(u,e){var t=function(i){return e&&w.isValidElement(i)?e(i):i},n=Object.create(null);return u&&w.Children.map(u,function(r){return r}).forEach(function(r){n[r.key]=t(r)}),n}function hV(u,e){u=u||{},e=e||{};function t(l){return l in e?e[l]:u[l]}var n=Object.create(null),r=[];for(var i in u)i in e?r.length&&(n[i]=r,r=[]):r.push(i);var a,o={};for(var s in e){if(n[s])for(a=0;a{if(!o&&s!=null){const h=setTimeout(s,f);return()=>{clearTimeout(h)}}},[s,o,f]),f0.jsx("span",{className:E,style:d,children:f0.jsx("span",{className:p})})}const vV=bt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xt=vV,BV=["center","classes","className"];let $9=u=>u,Lv,$v,Uv,Wv;const jh=550,FV=80,DV=Im(Lv||(Lv=$9` 0% { transform: scale(0); opacity: 0.1; @@ -85,7 +85,7 @@ Error generating stack: `+i.message+` transform: scale(1); opacity: 0.3; } -`)),AV=I7($v||($v=$E` +`)),wV=Im($v||($v=$9` 0% { opacity: 1; } @@ -93,7 +93,7 @@ Error generating stack: `+i.message+` 100% { opacity: 0; } -`)),yV=I7(Uv||(Uv=$E` +`)),xV=Im(Uv||(Uv=$9` 0% { transform: scale(1); } @@ -105,7 +105,7 @@ Error generating stack: `+i.message+` 100% { transform: scale(1); } -`)),vV=Ee("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),BV=Ee(hV,{name:"MuiTouchRipple",slot:"Ripple"})(Wv||(Wv=$E` +`)),kV=Ee("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_V=Ee(yV,{name:"MuiTouchRipple",slot:"Ripple"})(Wv||(Wv=$9` opacity: 0; position: absolute; @@ -148,7 +148,7 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Xt.rippleVisible,bV,jh,({theme:u})=>u.transitions.easing.easeInOut,Xt.ripplePulsate,({theme:u})=>u.transitions.duration.shorter,Xt.child,Xt.childLeaving,AV,jh,({theme:u})=>u.transitions.easing.easeInOut,Xt.childPulsate,yV,({theme:u})=>u.transitions.easing.easeInOut),FV=w.forwardRef(function(e,t){const n=bt({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a}=n,o=cu(n,mV),[s,f]=w.useState([]),l=w.useRef(0),c=w.useRef(null);w.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const E=w.useRef(!1),d=w.useRef(0),p=w.useRef(null),h=w.useRef(null);w.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const b=w.useCallback(y=>{const{pulsate:B,rippleX:v,rippleY:C,rippleSize:D,cb:T}=y;f(_=>[..._,c0.jsx(BV,{classes:{ripple:pu(i.ripple,Xt.ripple),rippleVisible:pu(i.rippleVisible,Xt.rippleVisible),ripplePulsate:pu(i.ripplePulsate,Xt.ripplePulsate),child:pu(i.child,Xt.child),childLeaving:pu(i.childLeaving,Xt.childLeaving),childPulsate:pu(i.childPulsate,Xt.childPulsate)},timeout:jh,pulsate:B,rippleX:v,rippleY:C,rippleSize:D},l.current)]),l.current+=1,c.current=T},[i]),g=w.useCallback((y={},B={},v=()=>{})=>{const{pulsate:C=!1,center:D=r||B.pulsate,fakeElement:T=!1}=B;if((y==null?void 0:y.type)==="mousedown"&&E.current){E.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(E.current=!0);const _=T?null:h.current,$=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u0,e0,o0;if(D||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)u0=Math.round($.width/2),e0=Math.round($.height/2);else{const{clientX:N,clientY:R}=y.touches&&y.touches.length>0?y.touches[0]:y;u0=Math.round(N-$.left),e0=Math.round(R-$.top)}if(D)o0=Math.sqrt((2*$.width**2+$.height**2)/3),o0%2===0&&(o0+=1);else{const N=Math.max(Math.abs((_?_.clientWidth:0)-u0),u0)*2+2,R=Math.max(Math.abs((_?_.clientHeight:0)-e0),e0)*2+2;o0=Math.sqrt(N**2+R**2)}y!=null&&y.touches?p.current===null&&(p.current=()=>{b({pulsate:C,rippleX:u0,rippleY:e0,rippleSize:o0,cb:v})},d.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},gV)):b({pulsate:C,rippleX:u0,rippleY:e0,rippleSize:o0,cb:v})},[r,b]),m=w.useCallback(()=>{g({},{pulsate:!0})},[g]),A=w.useCallback((y,B)=>{if(clearTimeout(d.current),(y==null?void 0:y.type)==="touchend"&&p.current){p.current(),p.current=null,d.current=setTimeout(()=>{A(y,B)});return}p.current=null,f(v=>v.length>0?v.slice(1):v),c.current=B},[]);return w.useImperativeHandle(t,()=>({pulsate:m,start:g,stop:A}),[m,g,A]),c0.jsx(vV,r0({className:pu(Xt.root,i.root,a),ref:h},o,{children:c0.jsx(pV,{component:null,exit:!0,children:s})}))}),DV=FV;function wV(u){return Xe("MuiButtonBase",u)}const xV=gt("MuiButtonBase",["root","disabled","focusVisible"]),kV=xV,_V=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],SV=u=>{const{disabled:e,focusVisible:t,focusVisibleClassName:n,classes:r}=u,a=mt({root:["root",e&&"disabled",t&&"focusVisible"]},wV,r);return t&&n&&(a.root+=` ${n}`),a},TV=Ee("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(u,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kV.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),PV=w.forwardRef(function(e,t){const n=bt({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:o,component:s="button",disabled:f=!1,disableRipple:l=!1,disableTouchRipple:c=!1,focusRipple:E=!1,LinkComponent:d="a",onBlur:p,onClick:h,onContextMenu:b,onDragLeave:g,onFocus:m,onFocusVisible:A,onKeyDown:y,onKeyUp:B,onMouseDown:v,onMouseLeave:C,onMouseUp:D,onTouchEnd:T,onTouchMove:_,onTouchStart:$,tabIndex:u0=0,TouchRippleProps:e0,touchRippleRef:o0,type:N}=n,R=cu(n,_V),V=w.useRef(null),G=w.useRef(null),H=I2(G,o0),{isFocusVisibleRef:L,onFocus:n0,onBlur:s0,ref:a0}=cS(),[K,v0]=w.useState(!1);f&&K&&v0(!1),w.useImperativeHandle(r,()=>({focusVisible:()=>{v0(!0),V.current.focus()}}),[]);const[_0,O0]=w.useState(!1);w.useEffect(()=>{O0(!0)},[]);const T0=_0&&!l&&!f;w.useEffect(()=>{K&&E&&!l&&_0&&G.current.pulsate()},[l,E,K,_0]);function w0(h0,G0,M0=c){return Q1(y0=>(G0&&G0(y0),!M0&&G.current&&G.current[h0](y0),!0))}const k=w0("start",v),S=w0("stop",b),P=w0("stop",g),z=w0("stop",D),M=w0("stop",h0=>{K&&h0.preventDefault(),C&&C(h0)}),q=w0("start",$),J=w0("stop",T),j=w0("stop",_),U=w0("stop",h0=>{s0(h0),L.current===!1&&v0(!1),p&&p(h0)},!1),Y=Q1(h0=>{V.current||(V.current=h0.currentTarget),n0(h0),L.current===!0&&(v0(!0),A&&A(h0)),m&&m(h0)}),W=()=>{const h0=V.current;return s&&s!=="button"&&!(h0.tagName==="A"&&h0.href)},t0=w.useRef(!1),p0=Q1(h0=>{E&&!t0.current&&K&&G.current&&h0.key===" "&&(t0.current=!0,G.current.stop(h0,()=>{G.current.start(h0)})),h0.target===h0.currentTarget&&W()&&h0.key===" "&&h0.preventDefault(),y&&y(h0),h0.target===h0.currentTarget&&W()&&h0.key==="Enter"&&!f&&(h0.preventDefault(),h&&h(h0))}),m0=Q1(h0=>{E&&h0.key===" "&&G.current&&K&&!h0.defaultPrevented&&(t0.current=!1,G.current.stop(h0,()=>{G.current.pulsate(h0)})),B&&B(h0),h&&h0.target===h0.currentTarget&&W()&&h0.key===" "&&!h0.defaultPrevented&&h(h0)});let P0=s;P0==="button"&&(R.href||R.to)&&(P0=d);const C0={};P0==="button"?(C0.type=N===void 0?"button":N,C0.disabled=f):(!R.href&&!R.to&&(C0.role="button"),f&&(C0["aria-disabled"]=f));const B0=I2(t,a0,V),E0=r0({},n,{centerRipple:i,component:s,disabled:f,disableRipple:l,disableTouchRipple:c,focusRipple:E,tabIndex:u0,focusVisible:K}),b0=SV(E0);return c0.jsxs(TV,r0({as:P0,className:pu(b0.root,o),ownerState:E0,onBlur:U,onClick:h,onContextMenu:S,onFocus:Y,onKeyDown:p0,onKeyUp:m0,onMouseDown:k,onMouseLeave:M,onMouseUp:z,onDragLeave:P,onTouchEnd:J,onTouchMove:j,onTouchStart:q,ref:B0,tabIndex:f?-1:u0,type:N},C0,R,{children:[a,T0?c0.jsx(DV,r0({ref:H,center:i},e0)):null]}))}),OV=PV;function IV(u){return Xe("MuiButton",u)}const NV=gt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Y1=NV,RV=w.createContext({}),MV=RV,jV=w.createContext(void 0),zV=jV,LV=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$V=u=>{const{color:e,disableElevation:t,fullWidth:n,size:r,variant:i,classes:a}=u,o={root:["root",i,`${i}${su(e)}`,`size${su(r)}`,`${i}Size${su(r)}`,e==="inherit"&&"colorInherit",t&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${su(r)}`],endIcon:["endIcon",`iconSize${su(r)}`]},s=mt(o,IV,a);return r0({},a,s)},WS=u=>r0({},u.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},u.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},u.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),UV=Ee(OV,{shouldForwardProp:u=>US(u)||u==="classes",name:"MuiButton",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[t.variant],e[`${t.variant}${su(t.color)}`],e[`size${su(t.size)}`],e[`${t.variant}Size${su(t.size)}`],t.color==="inherit"&&e.colorInherit,t.disableElevation&&e.disableElevation,t.fullWidth&&e.fullWidth]}})(({theme:u,ownerState:e})=>{var t,n;const r=u.palette.mode==="light"?u.palette.grey[300]:u.palette.grey[800],i=u.palette.mode==="light"?u.palette.grey.A100:u.palette.grey[700];return r0({},u.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(u.vars||u).shape.borderRadius,transition:u.transitions.create(["background-color","box-shadow","border-color","color"],{duration:u.transitions.duration.short}),"&:hover":r0({textDecoration:"none",backgroundColor:u.vars?`rgba(${u.vars.palette.text.primaryChannel} / ${u.vars.palette.action.hoverOpacity})`:zs(u.palette.text.primary,u.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="text"&&e.color!=="inherit"&&{backgroundColor:u.vars?`rgba(${u.vars.palette[e.color].mainChannel} / ${u.vars.palette.action.hoverOpacity})`:zs(u.palette[e.color].main,u.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="outlined"&&e.color!=="inherit"&&{border:`1px solid ${(u.vars||u).palette[e.color].main}`,backgroundColor:u.vars?`rgba(${u.vars.palette[e.color].mainChannel} / ${u.vars.palette.action.hoverOpacity})`:zs(u.palette[e.color].main,u.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="contained"&&{backgroundColor:u.vars?u.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(u.vars||u).shadows[4],"@media (hover: none)":{boxShadow:(u.vars||u).shadows[2],backgroundColor:(u.vars||u).palette.grey[300]}},e.variant==="contained"&&e.color!=="inherit"&&{backgroundColor:(u.vars||u).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(u.vars||u).palette[e.color].main}}),"&:active":r0({},e.variant==="contained"&&{boxShadow:(u.vars||u).shadows[8]}),[`&.${Y1.focusVisible}`]:r0({},e.variant==="contained"&&{boxShadow:(u.vars||u).shadows[6]}),[`&.${Y1.disabled}`]:r0({color:(u.vars||u).palette.action.disabled},e.variant==="outlined"&&{border:`1px solid ${(u.vars||u).palette.action.disabledBackground}`},e.variant==="contained"&&{color:(u.vars||u).palette.action.disabled,boxShadow:(u.vars||u).shadows[0],backgroundColor:(u.vars||u).palette.action.disabledBackground})},e.variant==="text"&&{padding:"6px 8px"},e.variant==="text"&&e.color!=="inherit"&&{color:(u.vars||u).palette[e.color].main},e.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},e.variant==="outlined"&&e.color!=="inherit"&&{color:(u.vars||u).palette[e.color].main,border:u.vars?`1px solid rgba(${u.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${zs(u.palette[e.color].main,.5)}`},e.variant==="contained"&&{color:u.vars?u.vars.palette.text.primary:(t=(n=u.palette).getContrastText)==null?void 0:t.call(n,u.palette.grey[300]),backgroundColor:u.vars?u.vars.palette.Button.inheritContainedBg:r,boxShadow:(u.vars||u).shadows[2]},e.variant==="contained"&&e.color!=="inherit"&&{color:(u.vars||u).palette[e.color].contrastText,backgroundColor:(u.vars||u).palette[e.color].main},e.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},e.size==="small"&&e.variant==="text"&&{padding:"4px 5px",fontSize:u.typography.pxToRem(13)},e.size==="large"&&e.variant==="text"&&{padding:"8px 11px",fontSize:u.typography.pxToRem(15)},e.size==="small"&&e.variant==="outlined"&&{padding:"3px 9px",fontSize:u.typography.pxToRem(13)},e.size==="large"&&e.variant==="outlined"&&{padding:"7px 21px",fontSize:u.typography.pxToRem(15)},e.size==="small"&&e.variant==="contained"&&{padding:"4px 10px",fontSize:u.typography.pxToRem(13)},e.size==="large"&&e.variant==="contained"&&{padding:"8px 22px",fontSize:u.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})},({ownerState:u})=>u.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Y1.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Y1.disabled}`]:{boxShadow:"none"}}),WV=Ee("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.startIcon,e[`iconSize${su(t.size)}`]]}})(({ownerState:u})=>r0({display:"inherit",marginRight:8,marginLeft:-4},u.size==="small"&&{marginLeft:-2},WS(u))),qV=Ee("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.endIcon,e[`iconSize${su(t.size)}`]]}})(({ownerState:u})=>r0({display:"inherit",marginRight:-4,marginLeft:8},u.size==="small"&&{marginRight:-2},WS(u))),HV=w.forwardRef(function(e,t){const n=w.useContext(MV),r=w.useContext(zV),i=w7(n,e),a=bt({props:i,name:"MuiButton"}),{children:o,color:s="primary",component:f="button",className:l,disabled:c=!1,disableElevation:E=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:h,fullWidth:b=!1,size:g="medium",startIcon:m,type:A,variant:y="text"}=a,B=cu(a,LV),v=r0({},a,{color:s,component:f,disabled:c,disableElevation:E,disableFocusRipple:d,fullWidth:b,size:g,type:A,variant:y}),C=$V(v),D=m&&c0.jsx(WV,{className:C.startIcon,ownerState:v,children:m}),T=p&&c0.jsx(qV,{className:C.endIcon,ownerState:v,children:p}),_=r||"";return c0.jsxs(UV,r0({ownerState:v,className:pu(n.className,C.root,l,_),component:f,disabled:c,focusRipple:!d,focusVisibleClassName:pu(C.focusVisible,h),ref:t,type:A},B,{classes:C,children:[D,o,T]}))}),zc=HV,GV=u=>{let e;return u<1?e=5.11916*u**2:e=4.5*Math.log(u+1)+2,(e/100).toFixed(2)},qv=GV;function VV(){const u=ME(LE);return u[ko]||u}function KV(u){return Xe("MuiPaper",u)}gt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const QV=["className","component","elevation","square","variant"],JV=u=>{const{square:e,elevation:t,variant:n,classes:r}=u,i={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${t}`]};return mt(i,KV,r)},YV=Ee("div",{name:"MuiPaper",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[t.variant],!t.square&&e.rounded,t.variant==="elevation"&&e[`elevation${t.elevation}`]]}})(({theme:u,ownerState:e})=>{var t;return r0({backgroundColor:(u.vars||u).palette.background.paper,color:(u.vars||u).palette.text.primary,transition:u.transitions.create("box-shadow")},!e.square&&{borderRadius:u.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(u.vars||u).palette.divider}`},e.variant==="elevation"&&r0({boxShadow:(u.vars||u).shadows[e.elevation]},!u.vars&&u.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${zs("#fff",qv(e.elevation))}, ${zs("#fff",qv(e.elevation))})`},u.vars&&{backgroundImage:(t=u.vars.overlays)==null?void 0:t[e.elevation]}))}),ZV=w.forwardRef(function(e,t){const n=bt({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:a=1,square:o=!1,variant:s="elevation"}=n,f=cu(n,QV),l=r0({},n,{component:i,elevation:a,square:o,variant:s}),c=JV(l);return c0.jsx(YV,r0({as:i,ownerState:l,className:pu(c.root,r),ref:t},f))}),qS=ZV;function XV(u){return Xe("MuiAppBar",u)}gt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const uK=["className","color","enableColorOnDark","position"],eK=u=>{const{color:e,position:t,classes:n}=u,r={root:["root",`color${su(e)}`,`position${su(t)}`]};return mt(r,XV,n)},Z1=(u,e)=>u?`${u==null?void 0:u.replace(")","")}, ${e})`:e,tK=Ee(qS,{name:"MuiAppBar",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[`position${su(t.position)}`],e[`color${su(t.color)}`]]}})(({theme:u,ownerState:e})=>{const t=u.palette.mode==="light"?u.palette.grey[100]:u.palette.grey[900];return r0({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},e.position==="fixed"&&{position:"fixed",zIndex:(u.vars||u).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},e.position==="absolute"&&{position:"absolute",zIndex:(u.vars||u).zIndex.appBar,top:0,left:"auto",right:0},e.position==="sticky"&&{position:"sticky",zIndex:(u.vars||u).zIndex.appBar,top:0,left:"auto",right:0},e.position==="static"&&{position:"static"},e.position==="relative"&&{position:"relative"},!u.vars&&r0({},e.color==="default"&&{backgroundColor:t,color:u.palette.getContrastText(t)},e.color&&e.color!=="default"&&e.color!=="inherit"&&e.color!=="transparent"&&{backgroundColor:u.palette[e.color].main,color:u.palette[e.color].contrastText},e.color==="inherit"&&{color:"inherit"},u.palette.mode==="dark"&&!e.enableColorOnDark&&{backgroundColor:null,color:null},e.color==="transparent"&&r0({backgroundColor:"transparent",color:"inherit"},u.palette.mode==="dark"&&{backgroundImage:"none"})),u.vars&&r0({},e.color==="default"&&{"--AppBar-background":e.enableColorOnDark?u.vars.palette.AppBar.defaultBg:Z1(u.vars.palette.AppBar.darkBg,u.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?u.vars.palette.text.primary:Z1(u.vars.palette.AppBar.darkColor,u.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?u.vars.palette[e.color].main:Z1(u.vars.palette.AppBar.darkBg,u.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?u.vars.palette[e.color].contrastText:Z1(u.vars.palette.AppBar.darkColor,u.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:e.color==="inherit"?"inherit":"var(--AppBar-color)"},e.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),nK=w.forwardRef(function(e,t){const n=bt({props:e,name:"MuiAppBar"}),{className:r,color:i="primary",enableColorOnDark:a=!1,position:o="fixed"}=n,s=cu(n,uK),f=r0({},n,{color:i,position:o,enableColorOnDark:a}),l=eK(f);return c0.jsx(tK,r0({square:!0,component:"header",ownerState:f,elevation:4,className:pu(l.root,r,o==="fixed"&&"mui-fixed"),ref:t},s))}),rK=nK;function iK(u){return Xe("MuiToolbar",u)}gt("MuiToolbar",["root","gutters","regular","dense"]);const aK=["className","component","disableGutters","variant"],oK=u=>{const{classes:e,disableGutters:t,variant:n}=u;return mt({root:["root",!t&&"gutters",n]},iK,e)},sK=Ee("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,!t.disableGutters&&e.gutters,e[t.variant]]}})(({theme:u,ownerState:e})=>r0({position:"relative",display:"flex",alignItems:"center"},!e.disableGutters&&{paddingLeft:u.spacing(2),paddingRight:u.spacing(2),[u.breakpoints.up("sm")]:{paddingLeft:u.spacing(3),paddingRight:u.spacing(3)}},e.variant==="dense"&&{minHeight:48}),({theme:u,ownerState:e})=>e.variant==="regular"&&u.mixins.toolbar),fK=w.forwardRef(function(e,t){const n=bt({props:e,name:"MuiToolbar"}),{className:r,component:i="div",disableGutters:a=!1,variant:o="regular"}=n,s=cu(n,aK),f=r0({},n,{component:i,disableGutters:a,variant:o}),l=oK(f);return c0.jsx(sK,r0({as:i,className:pu(l.root,r),ref:t,ownerState:f},s))}),lK=fK,cK=pG({createStyledComponent:Ee("div",{name:"MuiContainer",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[`maxWidth${su(String(t.maxWidth))}`],t.fixed&&e.fixed,t.disableGutters&&e.disableGutters]}}),useThemeProps:u=>bt({props:u,name:"MuiContainer"})}),EK=cK,dK=["theme"];function pK(u){let{theme:e}=u,t=cu(u,dK);const n=e[ko];return c0.jsx(sG,r0({},t,{themeId:n?ko:void 0,theme:n||e}))}const hK=gt("MuiBox",["root"]),CK=hK,mK=U7(),gK=zH({themeId:ko,defaultTheme:mK,defaultClassName:CK.root,generateClassName:ES.generate}),bK=gK,AK="/real-token/Logo.svg",yK="modulepreload",vK=function(u){return"/real-token/"+u},Hv={},L0=function(e,t,n){if(!t||t.length===0)return e();const r=document.getElementsByTagName("link");return Promise.all(t.map(i=>{if(i=vK(i),i in Hv)return;Hv[i]=!0;const a=i.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let l=r.length-1;l>=0;l--){const c=r[l];if(c.href===i&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${o}`))return;const f=document.createElement("link");if(f.rel=a?"stylesheet":yK,a||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),a)return new Promise((l,c)=>{f.addEventListener("load",l),f.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};var Gv='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',BK={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${Gv}`,system:Gv},Sf={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},FK={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},DK=({borderRadius:u="large",fontStack:e="rounded",overlayBlur:t="none"})=>({blurs:{modalOverlay:FK[t].modalOverlay},fonts:{body:BK[e]},radii:{actionButton:Sf[u].actionButton,connectButton:Sf[u].connectButton,menuButton:Sf[u].connectButton,modal:Sf[u].modal,modalMobile:Sf[u].modalMobile}}),HS={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},Vv=HS.blue,GS=({accentColor:u=Vv.accentColor,accentColorForeground:e=Vv.accentColorForeground,...t}={})=>({...DK(t),colors:{accentColor:u,accentColorForeground:e,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});GS.accentColors=HS;function wK(u,e){return Object.defineProperty(u,"__recipe__",{value:e,writable:!1}),u}var VS=wK;function KS(u){var{conditions:e}=u;if(!e)throw new Error("Styles have no conditions");function t(n){if(typeof n=="string"||typeof n=="number"||typeof n=="boolean"){if(!e.defaultCondition)throw new Error("No default condition");return{[e.defaultCondition]:n}}if(Array.isArray(n)){if(!("responsiveArray"in e))throw new Error("Responsive arrays are not supported");var r={};for(var i in e.responsiveArray)n[i]!=null&&(r[e.responsiveArray[i]]=n[i]);return r}return n}return VS(t,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:u.conditions}]})}function xK(u){var{conditions:e}=u;if(!e)throw new Error("Styles have no conditions");var t=KS(u);function n(r,i){if(typeof r=="string"||typeof r=="number"||typeof r=="boolean"){if(!e.defaultCondition)throw new Error("No default condition");return i(r,e.defaultCondition)}var a=Array.isArray(r)?t(r):r,o={};for(var s in a)a[s]!=null&&(o[s]=i(a[s],s));return o}return VS(n,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:u.conditions}]})}function kK(u,e,t){return e in u?Object.defineProperty(u,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):u[e]=t,u}function Kv(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(u);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(u,r).enumerable})),t.push.apply(t,n)}return t}function yp(u){for(var e=1;efunction(){for(var e=arguments.length,t=new Array(e),n=0;ns.styles)),i=Object.keys(r),a=i.filter(s=>"mappings"in r[s]),o=s=>{var f=[],l={},c=yp({},s),E=!1;for(var d of a){var p=s[d];if(p!=null){var h=r[d];E=!0;for(var b of h.mappings)l[b]=p,c[b]==null&&delete c[b]}}var g=E?yp(yp({},l),c):s;for(var m in g){var A=g[m],y=r[m];try{if(y.mappings)continue;if(typeof A=="string"||typeof A=="number")f.push(y.values[A].defaultClass);else if(Array.isArray(A))for(var B=0;Bu,TK=function(){return _K(SK)(...arguments)};function PK({storage:u,key:e="REACT_QUERY_OFFLINE_CACHE",throttleTime:t=1e3,serialize:n=JSON.stringify,deserialize:r=JSON.parse,retry:i}){if(u){const a=o=>{try{u.setItem(e,n(o));return}catch(s){return s}};return{persistClient:OK(o=>{let s=o,f=a(s),l=0;for(;f&&s;)l++,s=i==null?void 0:i({persistedClient:s,error:f,errorCount:l}),s&&(f=a(s))},t),restoreClient:()=>{const o=u.getItem(e);if(o)return r(o)},removeClient:()=>{u.removeItem(e)}}}return{persistClient:Qv,restoreClient:()=>{},removeClient:Qv}}function OK(u,e=100){let t=null,n;return function(...r){n=r,t===null&&(t=setTimeout(()=>{u(...n),t=null},e))}}function Qv(){}class $3{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Ul=typeof window>"u"||"Deno"in window;function Zt(){}function IK(u,e){return typeof u=="function"?u(e):u}function zh(u){return typeof u=="number"&&u>=0&&u!==1/0}function QS(u,e){return Math.max(u+(e||0)-Date.now(),0)}function X1(u,e,t){return Lc(u)?typeof e=="function"?{...t,queryKey:u,queryFn:e}:{...e,queryKey:u}:u}function JS(u,e,t){return Lc(u)?typeof e=="function"?{...t,mutationKey:u,mutationFn:e}:{...e,mutationKey:u}:typeof u=="function"?{...e,mutationFn:u}:{...u}}function yi(u,e,t){return Lc(u)?[{...e,queryKey:u},t]:[u||{},e]}function Jv(u,e){const{type:t="all",exact:n,fetchStatus:r,predicate:i,queryKey:a,stale:o}=u;if(Lc(a)){if(n){if(e.queryHash!==H7(a,e.options))return!1}else if(!z2(e.queryKey,a))return!1}if(t!=="all"){const s=e.isActive();if(t==="active"&&!s||t==="inactive"&&s)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||typeof r<"u"&&r!==e.state.fetchStatus||i&&!i(e))}function Yv(u,e){const{exact:t,fetching:n,predicate:r,mutationKey:i}=u;if(Lc(i)){if(!e.options.mutationKey)return!1;if(t){if(za(e.options.mutationKey)!==za(i))return!1}else if(!z2(e.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&e.state.status==="loading"!==n||r&&!r(e))}function H7(u,e){return((e==null?void 0:e.queryKeyHashFn)||za)(u)}function za(u){return JSON.stringify(u,(e,t)=>Lh(t)?Object.keys(t).sort().reduce((n,r)=>(n[r]=t[r],n),{}):t)}function z2(u,e){return YS(u,e)}function YS(u,e){return u===e?!0:typeof u!=typeof e?!1:u&&e&&typeof u=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!YS(u[t],e[t])):!1}function ZS(u,e){if(u===e)return u;const t=Zv(u)&&Zv(e);if(t||Lh(u)&&Lh(e)){const n=t?u.length:Object.keys(u).length,r=t?e:Object.keys(e),i=r.length,a=t?[]:{};let o=0;for(let s=0;s"u")return!0;const t=e.prototype;return!(!Xv(t)||!t.hasOwnProperty("isPrototypeOf"))}function Xv(u){return Object.prototype.toString.call(u)==="[object Object]"}function Lc(u){return Array.isArray(u)}function XS(u){return new Promise(e=>{setTimeout(e,u)})}function uB(u){XS(0).then(u)}function NK(){if(typeof AbortController=="function")return new AbortController}function $h(u,e,t){return t.isDataEqual!=null&&t.isDataEqual(u,e)?u:typeof t.structuralSharing=="function"?t.structuralSharing(u,e):t.structuralSharing!==!1?ZS(u,e):e}class RK extends $3{constructor(){super(),this.setup=e=>{if(!Ul&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const $2=new RK,eB=["online","offline"];class MK extends $3{constructor(){super(),this.setup=e=>{if(!Ul&&window.addEventListener){const t=()=>e();return eB.forEach(n=>{window.addEventListener(n,t,!1)}),()=>{eB.forEach(n=>{window.removeEventListener(n,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const U2=new MK;function jK(u){return Math.min(1e3*2**u,3e4)}function UE(u){return(u??"online")==="online"?U2.isOnline():!0}class uT{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function $6(u){return u instanceof uT}function eT(u){let e=!1,t=0,n=!1,r,i,a;const o=new Promise((b,g)=>{i=b,a=g}),s=b=>{n||(d(new uT(b)),u.abort==null||u.abort())},f=()=>{e=!0},l=()=>{e=!1},c=()=>!$2.isFocused()||u.networkMode!=="always"&&!U2.isOnline(),E=b=>{n||(n=!0,u.onSuccess==null||u.onSuccess(b),r==null||r(),i(b))},d=b=>{n||(n=!0,u.onError==null||u.onError(b),r==null||r(),a(b))},p=()=>new Promise(b=>{r=g=>{const m=n||!c();return m&&b(g),m},u.onPause==null||u.onPause()}).then(()=>{r=void 0,n||u.onContinue==null||u.onContinue()}),h=()=>{if(n)return;let b;try{b=u.fn()}catch(g){b=Promise.reject(g)}Promise.resolve(b).then(E).catch(g=>{var m,A;if(n)return;const y=(m=u.retry)!=null?m:3,B=(A=u.retryDelay)!=null?A:jK,v=typeof B=="function"?B(t,g):B,C=y===!0||typeof y=="number"&&t{if(c())return p()}).then(()=>{e?d(g):h()})})};return UE(u.networkMode)?h():p().then(h),{promise:o,cancel:s,continue:()=>(r==null?void 0:r())?o:Promise.resolve(),cancelRetry:f,continueRetry:l}}const G7=console;function zK(){let u=[],e=0,t=l=>{l()},n=l=>{l()};const r=l=>{let c;e++;try{c=l()}finally{e--,e||o()}return c},i=l=>{e?u.push(l):uB(()=>{t(l)})},a=l=>(...c)=>{i(()=>{l(...c)})},o=()=>{const l=u;u=[],l.length&&uB(()=>{n(()=>{l.forEach(c=>{t(c)})})})};return{batch:r,batchCalls:a,schedule:i,setNotifyFunction:l=>{t=l},setBatchNotifyFunction:l=>{n=l}}}const ju=zK();class tT{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zh(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(Ul?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class LK extends tT{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||G7,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||$K(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const n=$h(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return(t=this.retryer)==null||t.cancel(e),n?n.then(Zt).catch(Zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!QS(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const a=NK(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(o);const f=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:f};if(s(l),(n=this.options.behavior)==null||n.onFetch(l),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((r=l.fetchOptions)==null?void 0:r.meta)){var c;this.dispatch({type:"fetch",meta:(c=l.fetchOptions)==null?void 0:c.meta})}const E=d=>{if($6(d)&&d.silent||this.dispatch({type:"error",error:d}),!$6(d)){var p,h,b,g;(p=(h=this.cache.config).onError)==null||p.call(h,d,this),(b=(g=this.cache.config).onSettled)==null||b.call(g,this.state.data,d,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=eT({fn:l.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:d=>{var p,h,b,g;if(typeof d>"u"){E(new Error(this.queryHash+" data is undefined"));return}this.setData(d),(p=(h=this.cache.config).onSuccess)==null||p.call(h,d,this),(b=(g=this.cache.config).onSettled)==null||b.call(g,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:E,onFail:(d,p)=>{this.dispatch({type:"failed",failureCount:d,error:p})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=n=>{var r,i;switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(r=e.meta)!=null?r:null,fetchStatus:UE(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=e.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return $6(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),ju.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function $K(u){const e=typeof u.initialData=="function"?u.initialData():u.initialData,t=typeof e<"u",n=t?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class UK extends $3{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,a=(r=t.queryHash)!=null?r:H7(i,t);let o=this.get(a);return o||(o=new LK({cache:this,logger:e.getLogger(),queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(n=>n!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){ju.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=yi(e,t);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(r=>Jv(n,r))}findAll(e,t){const[n]=yi(e,t);return Object.keys(n).length>0?this.queries.filter(r=>Jv(n,r)):this.queries}notify(e){ju.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){ju.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){ju.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class WK extends tT{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||G7,this.observers=[],this.state=e.state||nT(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var C;return this.retryer=eT({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(D,T)=>{this.dispatch({type:"failed",failureCount:D,error:T})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(C=this.options.retry)!=null?C:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var n,r,i,a,o,s,f,l;if(!t){var c,E,d,p;this.dispatch({type:"loading",variables:this.options.variables}),await((c=(E=this.mutationCache.config).onMutate)==null?void 0:c.call(E,this.state.variables,this));const D=await((d=(p=this.options).onMutate)==null?void 0:d.call(p,this.state.variables));D!==this.state.context&&this.dispatch({type:"loading",context:D,variables:this.state.variables})}const C=await e();return await((n=(r=this.mutationCache.config).onSuccess)==null?void 0:n.call(r,C,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,C,this.state.variables,this.state.context)),await((o=(s=this.mutationCache.config).onSettled)==null?void 0:o.call(s,C,null,this.state.variables,this.state.context,this)),await((f=(l=this.options).onSettled)==null?void 0:f.call(l,C,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:C}),C}catch(C){try{var h,b,g,m,A,y,B,v;throw await((h=(b=this.mutationCache.config).onError)==null?void 0:h.call(b,C,this.state.variables,this.state.context,this)),await((g=(m=this.options).onError)==null?void 0:g.call(m,C,this.state.variables,this.state.context)),await((A=(y=this.mutationCache.config).onSettled)==null?void 0:A.call(y,void 0,C,this.state.variables,this.state.context,this)),await((B=(v=this.options).onSettled)==null?void 0:B.call(v,void 0,C,this.state.variables,this.state.context)),C}finally{this.dispatch({type:"error",error:C})}}}dispatch(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!UE(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...n,...e.state}}};this.state=t(this.state),ju.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function nT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class qK extends $3{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new WK({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){ju.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>Yv(e,t))}findAll(e){return this.mutations.filter(t=>Yv(e,t))}notify(e){ju.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(n=>n.state.isPaused);return ju.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Zt)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function HK(){return{onFetch:u=>{u.fetchFn=()=>{var e,t,n,r,i,a;const o=(e=u.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,s=(n=u.fetchOptions)==null||(r=n.meta)==null?void 0:r.fetchMore,f=s==null?void 0:s.pageParam,l=(s==null?void 0:s.direction)==="forward",c=(s==null?void 0:s.direction)==="backward",E=((i=u.state.data)==null?void 0:i.pages)||[],d=((a=u.state.data)==null?void 0:a.pageParams)||[];let p=d,h=!1;const b=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>{var C;if((C=u.signal)!=null&&C.aborted)h=!0;else{var D;(D=u.signal)==null||D.addEventListener("abort",()=>{h=!0})}return u.signal}})},g=u.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+u.options.queryHash+"'")),m=(v,C,D,T)=>(p=T?[C,...p]:[...p,C],T?[D,...v]:[...v,D]),A=(v,C,D,T)=>{if(h)return Promise.reject("Cancelled");if(typeof D>"u"&&!C&&v.length)return Promise.resolve(v);const _={queryKey:u.queryKey,pageParam:D,meta:u.options.meta};b(_);const $=g(_);return Promise.resolve($).then(e0=>m(v,D,e0,T))};let y;if(!E.length)y=A([]);else if(l){const v=typeof f<"u",C=v?f:tB(u.options,E);y=A(E,v,C)}else if(c){const v=typeof f<"u",C=v?f:GK(u.options,E);y=A(E,v,C,!0)}else{p=[];const v=typeof u.options.getNextPageParam>"u";y=(o&&E[0]?o(E[0],0,E):!0)?A([],v,d[0]):Promise.resolve(m([],d[0],E[0]));for(let D=1;D{if(o&&E[D]?o(E[D],D,E):!0){const $=v?d[D]:tB(u.options,T);return A(T,v,$)}return Promise.resolve(m(T,d[D],E[D]))})}return y.then(v=>({pages:v,pageParams:p}))}}}}function tB(u,e){return u.getNextPageParam==null?void 0:u.getNextPageParam(e[e.length-1],e)}function GK(u,e){return u.getPreviousPageParam==null?void 0:u.getPreviousPageParam(e[0],e)}class VK{constructor(e={}){this.queryCache=e.queryCache||new UK,this.mutationCache=e.mutationCache||new qK,this.logger=e.logger||G7,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=$2.subscribe(()=>{$2.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=U2.subscribe(()=>{U2.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=yi(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state.data}ensureQueryData(e,t,n){const r=X1(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.queryCache.find(e),i=r==null?void 0:r.state.data,a=IK(t,i);if(typeof a>"u")return;const o=X1(e),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ju.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state}removeQueries(e,t){const[n]=yi(e,t),r=this.queryCache;ju.batch(()=>{r.findAll(n).forEach(i=>{r.remove(i)})})}resetQueries(e,t,n){const[r,i]=yi(e,t,n),a=this.queryCache,o={type:"active",...r};return ju.batch(()=>(a.findAll(r).forEach(s=>{s.reset()}),this.refetchQueries(o,i)))}cancelQueries(e,t,n){const[r,i={}]=yi(e,t,n);typeof i.revert>"u"&&(i.revert=!0);const a=ju.batch(()=>this.queryCache.findAll(r).map(o=>o.cancel(i)));return Promise.all(a).then(Zt).catch(Zt)}invalidateQueries(e,t,n){const[r,i]=yi(e,t,n);return ju.batch(()=>{var a,o;if(this.queryCache.findAll(r).forEach(f=>{f.invalidate()}),r.refetchType==="none")return Promise.resolve();const s={...r,type:(a=(o=r.refetchType)!=null?o:r.type)!=null?a:"active"};return this.refetchQueries(s,i)})}refetchQueries(e,t,n){const[r,i]=yi(e,t,n),a=ju.batch(()=>this.queryCache.findAll(r).filter(s=>!s.isDisabled()).map(s=>{var f;return s.fetch(void 0,{...i,cancelRefetch:(f=i==null?void 0:i.cancelRefetch)!=null?f:!0,meta:{refetchPage:r.refetchPage}})}));let o=Promise.all(a).then(Zt);return i!=null&&i.throwOnError||(o=o.catch(Zt)),o}fetchQuery(e,t,n){const r=X1(e,t,n),i=this.defaultQueryOptions(r);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Zt).catch(Zt)}fetchInfiniteQuery(e,t,n){const r=X1(e,t,n);return r.behavior=HK(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Zt).catch(Zt)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(r=>za(e)===za(r.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(n=>z2(e,n.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(r=>za(e)===za(r.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(n=>z2(e,n.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=H7(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class KK extends $3{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),nB(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Uh(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Uh(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),L2(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&rB(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return JK(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Zt)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Ul||this.currentResult.isStale||!zh(this.options.staleTime))return;const t=QS(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(Ul||this.options.enabled===!1||!zh(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||$2.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,i=this.currentResult,a=this.currentResultState,o=this.currentResultOptions,s=e!==n,f=s?e.state:this.currentQueryInitialState,l=s?this.currentResult:this.previousQueryResult,{state:c}=e;let{dataUpdatedAt:E,error:d,errorUpdatedAt:p,fetchStatus:h,status:b}=c,g=!1,m=!1,A;if(t._optimisticResults){const D=this.hasListeners(),T=!D&&nB(e,t),_=D&&rB(e,n,t,r);(T||_)&&(h=UE(e.options.networkMode)?"fetching":"paused",E||(b="loading")),t._optimisticResults==="isRestoring"&&(h="idle")}if(t.keepPreviousData&&!c.dataUpdatedAt&&l!=null&&l.isSuccess&&b!=="error")A=l.data,E=l.dataUpdatedAt,b=l.status,g=!0;else if(t.select&&typeof c.data<"u")if(i&&c.data===(a==null?void 0:a.data)&&t.select===this.selectFn)A=this.selectResult;else try{this.selectFn=t.select,A=t.select(c.data),A=$h(i==null?void 0:i.data,A,t),this.selectResult=A,this.selectError=null}catch(D){this.selectError=D}else A=c.data;if(typeof t.placeholderData<"u"&&typeof A>"u"&&b==="loading"){let D;if(i!=null&&i.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData))D=i.data;else if(D=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof D<"u")try{D=t.select(D),this.selectError=null}catch(T){this.selectError=T}typeof D<"u"&&(b="success",A=$h(i==null?void 0:i.data,D,t),m=!0)}this.selectError&&(d=this.selectError,A=this.selectResult,p=Date.now(),b="error");const y=h==="fetching",B=b==="loading",v=b==="error";return{status:b,fetchStatus:h,isLoading:B,isSuccess:b==="success",isError:v,isInitialLoading:B&&y,data:A,dataUpdatedAt:E,error:d,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>f.dataUpdateCount||c.errorUpdateCount>f.errorUpdateCount,isFetching:y,isRefetching:y&&!B,isLoadingError:v&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:m,isPreviousData:g,isRefetchError:v&&c.dataUpdatedAt!==0,isStale:V7(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,L2(n,t))return;this.currentResult=n;const r={cache:!0},i=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.trackedProps.size)return!0;const s=new Set(o??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(f=>{const l=f;return this.currentResult[l]!==t[l]&&s.has(l)})};(e==null?void 0:e.listeners)!==!1&&i()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!$6(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ju.batch(()=>{if(e.onSuccess){var t,n,r,i;(t=(n=this.options).onSuccess)==null||t.call(n,this.currentResult.data),(r=(i=this.options).onSettled)==null||r.call(i,this.currentResult.data,null)}else if(e.onError){var a,o,s,f;(a=(o=this.options).onError)==null||a.call(o,this.currentResult.error),(s=(f=this.options).onSettled)==null||s.call(f,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:l})=>{l(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function QK(u,e){return e.enabled!==!1&&!u.state.dataUpdatedAt&&!(u.state.status==="error"&&e.retryOnMount===!1)}function nB(u,e){return QK(u,e)||u.state.dataUpdatedAt>0&&Uh(u,e,e.refetchOnMount)}function Uh(u,e,t){if(e.enabled!==!1){const n=typeof t=="function"?t(u):t;return n==="always"||n!==!1&&V7(u,e)}return!1}function rB(u,e,t,n){return t.enabled!==!1&&(u!==e||n.enabled===!1)&&(!t.suspense||u.state.status!=="error")&&V7(u,t)}function V7(u,e){return u.isStaleByTime(e.staleTime)}function JK(u,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!L2(u.getCurrentResult(),e)}let YK=class extends $3{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),L2(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(t=this.currentMutation)==null||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.currentMutation)==null||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();const t={listeners:!0};e.type==="success"?t.onSuccess=!0:e.type==="error"&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof e<"u"?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:nT(),t={...e,isLoading:e.status==="loading",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){ju.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(e.onSuccess){var t,n,r,i;(t=(n=this.mutateOptions).onSuccess)==null||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(r=(i=this.mutateOptions).onSettled)==null||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(e.onError){var a,o,s,f;(a=(o=this.mutateOptions).onError)==null||a.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(s=(f=this.mutateOptions).onSettled)==null||s.call(f,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}e.listeners&&this.listeners.forEach(({listener:l})=>{l(this.currentResult)})})}};function ZK(u){return{mutationKey:u.options.mutationKey,state:u.state}}function XK(u){return{state:u.state,queryKey:u.queryKey,queryHash:u.queryHash}}function uQ(u){return u.state.isPaused}function eQ(u){return u.state.status==="success"}function tQ(u,e={}){const t=[],n=[];if(e.dehydrateMutations!==!1){const r=e.shouldDehydrateMutation||uQ;u.getMutationCache().getAll().forEach(i=>{r(i)&&t.push(ZK(i))})}if(e.dehydrateQueries!==!1){const r=e.shouldDehydrateQuery||eQ;u.getQueryCache().getAll().forEach(i=>{r(i)&&n.push(XK(i))})}return{mutations:t,queries:n}}function nQ(u,e,t){if(typeof e!="object"||e===null)return;const n=u.getMutationCache(),r=u.getQueryCache(),i=e.mutations||[],a=e.queries||[];i.forEach(o=>{var s;n.build(u,{...t==null||(s=t.defaultOptions)==null?void 0:s.mutations,mutationKey:o.mutationKey},o.state)}),a.forEach(({queryKey:o,state:s,queryHash:f})=>{var l;const c=r.get(f);if(c){if(c.state.dataUpdatedAtu.transitions.easing.easeInOut,Xt.ripplePulsate,({theme:u})=>u.transitions.duration.shorter,Xt.child,Xt.childLeaving,wV,jh,({theme:u})=>u.transitions.easing.easeInOut,Xt.childPulsate,xV,({theme:u})=>u.transitions.easing.easeInOut),SV=w.forwardRef(function(e,t){const n=gt({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a}=n,o=cu(n,BV),[s,f]=w.useState([]),l=w.useRef(0),c=w.useRef(null);w.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const E=w.useRef(!1),d=w.useRef(0),p=w.useRef(null),h=w.useRef(null);w.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const g=w.useCallback(y=>{const{pulsate:B,rippleX:v,rippleY:C,rippleSize:D,cb:T}=y;f(_=>[..._,f0.jsx(_V,{classes:{ripple:pu(i.ripple,Xt.ripple),rippleVisible:pu(i.rippleVisible,Xt.rippleVisible),ripplePulsate:pu(i.ripplePulsate,Xt.ripplePulsate),child:pu(i.child,Xt.child),childLeaving:pu(i.childLeaving,Xt.childLeaving),childPulsate:pu(i.childPulsate,Xt.childPulsate)},timeout:jh,pulsate:B,rippleX:v,rippleY:C,rippleSize:D},l.current)]),l.current+=1,c.current=T},[i]),b=w.useCallback((y={},B={},v=()=>{})=>{const{pulsate:C=!1,center:D=r||B.pulsate,fakeElement:T=!1}=B;if((y==null?void 0:y.type)==="mousedown"&&E.current){E.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(E.current=!0);const _=T?null:h.current,$=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u0,e0,o0;if(D||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)u0=Math.round($.width/2),e0=Math.round($.height/2);else{const{clientX:N,clientY:R}=y.touches&&y.touches.length>0?y.touches[0]:y;u0=Math.round(N-$.left),e0=Math.round(R-$.top)}if(D)o0=Math.sqrt((2*$.width**2+$.height**2)/3),o0%2===0&&(o0+=1);else{const N=Math.max(Math.abs((_?_.clientWidth:0)-u0),u0)*2+2,R=Math.max(Math.abs((_?_.clientHeight:0)-e0),e0)*2+2;o0=Math.sqrt(N**2+R**2)}y!=null&&y.touches?p.current===null&&(p.current=()=>{g({pulsate:C,rippleX:u0,rippleY:e0,rippleSize:o0,cb:v})},d.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},FV)):g({pulsate:C,rippleX:u0,rippleY:e0,rippleSize:o0,cb:v})},[r,g]),m=w.useCallback(()=>{b({},{pulsate:!0})},[b]),A=w.useCallback((y,B)=>{if(clearTimeout(d.current),(y==null?void 0:y.type)==="touchend"&&p.current){p.current(),p.current=null,d.current=setTimeout(()=>{A(y,B)});return}p.current=null,f(v=>v.length>0?v.slice(1):v),c.current=B},[]);return w.useImperativeHandle(t,()=>({pulsate:m,start:b,stop:A}),[m,b,A]),f0.jsx(kV,r0({className:pu(Xt.root,i.root,a),ref:h},o,{children:f0.jsx(AV,{component:null,exit:!0,children:s})}))}),TV=SV;function PV(u){return Xe("MuiButtonBase",u)}const OV=bt("MuiButtonBase",["root","disabled","focusVisible"]),IV=OV,NV=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],RV=u=>{const{disabled:e,focusVisible:t,focusVisibleClassName:n,classes:r}=u,a=mt({root:["root",e&&"disabled",t&&"focusVisible"]},PV,r);return t&&n&&(a.root+=` ${n}`),a},MV=Ee("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(u,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${IV.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jV=w.forwardRef(function(e,t){const n=gt({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:o,component:s="button",disabled:f=!1,disableRipple:l=!1,disableTouchRipple:c=!1,focusRipple:E=!1,LinkComponent:d="a",onBlur:p,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:m,onFocusVisible:A,onKeyDown:y,onKeyUp:B,onMouseDown:v,onMouseLeave:C,onMouseUp:D,onTouchEnd:T,onTouchMove:_,onTouchStart:$,tabIndex:u0=0,TouchRippleProps:e0,touchRippleRef:o0,type:N}=n,R=cu(n,NV),V=w.useRef(null),G=w.useRef(null),H=I5(G,o0),{isFocusVisibleRef:L,onFocus:n0,onBlur:s0,ref:a0}=pS(),[K,v0]=w.useState(!1);f&&K&&v0(!1),w.useImperativeHandle(r,()=>({focusVisible:()=>{v0(!0),V.current.focus()}}),[]);const[_0,O0]=w.useState(!1);w.useEffect(()=>{O0(!0)},[]);const T0=_0&&!l&&!f;w.useEffect(()=>{K&&E&&!l&&_0&&G.current.pulsate()},[l,E,K,_0]);function w0(h0,G0,M0=c){return Qc(y0=>(G0&&G0(y0),!M0&&G.current&&G.current[h0](y0),!0))}const k=w0("start",v),S=w0("stop",g),P=w0("stop",b),z=w0("stop",D),M=w0("stop",h0=>{K&&h0.preventDefault(),C&&C(h0)}),q=w0("start",$),J=w0("stop",T),j=w0("stop",_),U=w0("stop",h0=>{s0(h0),L.current===!1&&v0(!1),p&&p(h0)},!1),Y=Qc(h0=>{V.current||(V.current=h0.currentTarget),n0(h0),L.current===!0&&(v0(!0),A&&A(h0)),m&&m(h0)}),W=()=>{const h0=V.current;return s&&s!=="button"&&!(h0.tagName==="A"&&h0.href)},t0=w.useRef(!1),p0=Qc(h0=>{E&&!t0.current&&K&&G.current&&h0.key===" "&&(t0.current=!0,G.current.stop(h0,()=>{G.current.start(h0)})),h0.target===h0.currentTarget&&W()&&h0.key===" "&&h0.preventDefault(),y&&y(h0),h0.target===h0.currentTarget&&W()&&h0.key==="Enter"&&!f&&(h0.preventDefault(),h&&h(h0))}),m0=Qc(h0=>{E&&h0.key===" "&&G.current&&K&&!h0.defaultPrevented&&(t0.current=!1,G.current.stop(h0,()=>{G.current.pulsate(h0)})),B&&B(h0),h&&h0.target===h0.currentTarget&&W()&&h0.key===" "&&!h0.defaultPrevented&&h(h0)});let P0=s;P0==="button"&&(R.href||R.to)&&(P0=d);const C0={};P0==="button"?(C0.type=N===void 0?"button":N,C0.disabled=f):(!R.href&&!R.to&&(C0.role="button"),f&&(C0["aria-disabled"]=f));const B0=I5(t,a0,V),E0=r0({},n,{centerRipple:i,component:s,disabled:f,disableRipple:l,disableTouchRipple:c,focusRipple:E,tabIndex:u0,focusVisible:K}),g0=RV(E0);return f0.jsxs(MV,r0({as:P0,className:pu(g0.root,o),ownerState:E0,onBlur:U,onClick:h,onContextMenu:S,onFocus:Y,onKeyDown:p0,onKeyUp:m0,onMouseDown:k,onMouseLeave:M,onMouseUp:z,onDragLeave:P,onTouchEnd:J,onTouchMove:j,onTouchStart:q,ref:B0,tabIndex:f?-1:u0,type:N},C0,R,{children:[a,T0?f0.jsx(TV,r0({ref:H,center:i},e0)):null]}))}),zV=jV;function LV(u){return Xe("MuiButton",u)}const $V=bt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Yc=$V,UV=w.createContext({}),WV=UV,qV=w.createContext(void 0),HV=qV,GV=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],VV=u=>{const{color:e,disableElevation:t,fullWidth:n,size:r,variant:i,classes:a}=u,o={root:["root",i,`${i}${su(e)}`,`size${su(r)}`,`${i}Size${su(r)}`,e==="inherit"&&"colorInherit",t&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${su(r)}`],endIcon:["endIcon",`iconSize${su(r)}`]},s=mt(o,LV,a);return r0({},a,s)},GS=u=>r0({},u.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},u.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},u.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),KV=Ee(zV,{shouldForwardProp:u=>HS(u)||u==="classes",name:"MuiButton",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[t.variant],e[`${t.variant}${su(t.color)}`],e[`size${su(t.size)}`],e[`${t.variant}Size${su(t.size)}`],t.color==="inherit"&&e.colorInherit,t.disableElevation&&e.disableElevation,t.fullWidth&&e.fullWidth]}})(({theme:u,ownerState:e})=>{var t,n;const r=u.palette.mode==="light"?u.palette.grey[300]:u.palette.grey[800],i=u.palette.mode==="light"?u.palette.grey.A100:u.palette.grey[700];return r0({},u.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(u.vars||u).shape.borderRadius,transition:u.transitions.create(["background-color","box-shadow","border-color","color"],{duration:u.transitions.duration.short}),"&:hover":r0({textDecoration:"none",backgroundColor:u.vars?`rgba(${u.vars.palette.text.primaryChannel} / ${u.vars.palette.action.hoverOpacity})`:zs(u.palette.text.primary,u.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="text"&&e.color!=="inherit"&&{backgroundColor:u.vars?`rgba(${u.vars.palette[e.color].mainChannel} / ${u.vars.palette.action.hoverOpacity})`:zs(u.palette[e.color].main,u.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="outlined"&&e.color!=="inherit"&&{border:`1px solid ${(u.vars||u).palette[e.color].main}`,backgroundColor:u.vars?`rgba(${u.vars.palette[e.color].mainChannel} / ${u.vars.palette.action.hoverOpacity})`:zs(u.palette[e.color].main,u.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="contained"&&{backgroundColor:u.vars?u.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(u.vars||u).shadows[4],"@media (hover: none)":{boxShadow:(u.vars||u).shadows[2],backgroundColor:(u.vars||u).palette.grey[300]}},e.variant==="contained"&&e.color!=="inherit"&&{backgroundColor:(u.vars||u).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(u.vars||u).palette[e.color].main}}),"&:active":r0({},e.variant==="contained"&&{boxShadow:(u.vars||u).shadows[8]}),[`&.${Yc.focusVisible}`]:r0({},e.variant==="contained"&&{boxShadow:(u.vars||u).shadows[6]}),[`&.${Yc.disabled}`]:r0({color:(u.vars||u).palette.action.disabled},e.variant==="outlined"&&{border:`1px solid ${(u.vars||u).palette.action.disabledBackground}`},e.variant==="contained"&&{color:(u.vars||u).palette.action.disabled,boxShadow:(u.vars||u).shadows[0],backgroundColor:(u.vars||u).palette.action.disabledBackground})},e.variant==="text"&&{padding:"6px 8px"},e.variant==="text"&&e.color!=="inherit"&&{color:(u.vars||u).palette[e.color].main},e.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},e.variant==="outlined"&&e.color!=="inherit"&&{color:(u.vars||u).palette[e.color].main,border:u.vars?`1px solid rgba(${u.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${zs(u.palette[e.color].main,.5)}`},e.variant==="contained"&&{color:u.vars?u.vars.palette.text.primary:(t=(n=u.palette).getContrastText)==null?void 0:t.call(n,u.palette.grey[300]),backgroundColor:u.vars?u.vars.palette.Button.inheritContainedBg:r,boxShadow:(u.vars||u).shadows[2]},e.variant==="contained"&&e.color!=="inherit"&&{color:(u.vars||u).palette[e.color].contrastText,backgroundColor:(u.vars||u).palette[e.color].main},e.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},e.size==="small"&&e.variant==="text"&&{padding:"4px 5px",fontSize:u.typography.pxToRem(13)},e.size==="large"&&e.variant==="text"&&{padding:"8px 11px",fontSize:u.typography.pxToRem(15)},e.size==="small"&&e.variant==="outlined"&&{padding:"3px 9px",fontSize:u.typography.pxToRem(13)},e.size==="large"&&e.variant==="outlined"&&{padding:"7px 21px",fontSize:u.typography.pxToRem(15)},e.size==="small"&&e.variant==="contained"&&{padding:"4px 10px",fontSize:u.typography.pxToRem(13)},e.size==="large"&&e.variant==="contained"&&{padding:"8px 22px",fontSize:u.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})},({ownerState:u})=>u.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Yc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Yc.disabled}`]:{boxShadow:"none"}}),QV=Ee("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.startIcon,e[`iconSize${su(t.size)}`]]}})(({ownerState:u})=>r0({display:"inherit",marginRight:8,marginLeft:-4},u.size==="small"&&{marginLeft:-2},GS(u))),JV=Ee("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.endIcon,e[`iconSize${su(t.size)}`]]}})(({ownerState:u})=>r0({display:"inherit",marginRight:-4,marginLeft:8},u.size==="small"&&{marginRight:-2},GS(u))),YV=w.forwardRef(function(e,t){const n=w.useContext(WV),r=w.useContext(HV),i=wm(n,e),a=gt({props:i,name:"MuiButton"}),{children:o,color:s="primary",component:f="button",className:l,disabled:c=!1,disableElevation:E=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:h,fullWidth:g=!1,size:b="medium",startIcon:m,type:A,variant:y="text"}=a,B=cu(a,GV),v=r0({},a,{color:s,component:f,disabled:c,disableElevation:E,disableFocusRipple:d,fullWidth:g,size:b,type:A,variant:y}),C=VV(v),D=m&&f0.jsx(QV,{className:C.startIcon,ownerState:v,children:m}),T=p&&f0.jsx(JV,{className:C.endIcon,ownerState:v,children:p}),_=r||"";return f0.jsxs(KV,r0({ownerState:v,className:pu(n.className,C.root,l,_),component:f,disabled:c,focusRipple:!d,focusVisibleClassName:pu(C.focusVisible,h),ref:t,type:A},B,{classes:C,children:[D,o,T]}))}),rf=YV,ZV=u=>{let e;return u<1?e=5.11916*u**2:e=4.5*Math.log(u+1)+2,(e/100).toFixed(2)},qv=ZV;function XV(){const u=M9(L9);return u[ko]||u}function uK(u){return Xe("MuiPaper",u)}bt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const eK=["className","component","elevation","square","variant"],tK=u=>{const{square:e,elevation:t,variant:n,classes:r}=u,i={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${t}`]};return mt(i,uK,r)},nK=Ee("div",{name:"MuiPaper",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[t.variant],!t.square&&e.rounded,t.variant==="elevation"&&e[`elevation${t.elevation}`]]}})(({theme:u,ownerState:e})=>{var t;return r0({backgroundColor:(u.vars||u).palette.background.paper,color:(u.vars||u).palette.text.primary,transition:u.transitions.create("box-shadow")},!e.square&&{borderRadius:u.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(u.vars||u).palette.divider}`},e.variant==="elevation"&&r0({boxShadow:(u.vars||u).shadows[e.elevation]},!u.vars&&u.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${zs("#fff",qv(e.elevation))}, ${zs("#fff",qv(e.elevation))})`},u.vars&&{backgroundImage:(t=u.vars.overlays)==null?void 0:t[e.elevation]}))}),rK=w.forwardRef(function(e,t){const n=gt({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:a=1,square:o=!1,variant:s="elevation"}=n,f=cu(n,eK),l=r0({},n,{component:i,elevation:a,square:o,variant:s}),c=tK(l);return f0.jsx(nK,r0({as:i,ownerState:l,className:pu(c.root,r),ref:t},f))}),VS=rK;function iK(u){return Xe("MuiAppBar",u)}bt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const aK=["className","color","enableColorOnDark","position"],oK=u=>{const{color:e,position:t,classes:n}=u,r={root:["root",`color${su(e)}`,`position${su(t)}`]};return mt(r,iK,n)},Zc=(u,e)=>u?`${u==null?void 0:u.replace(")","")}, ${e})`:e,sK=Ee(VS,{name:"MuiAppBar",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[`position${su(t.position)}`],e[`color${su(t.color)}`]]}})(({theme:u,ownerState:e})=>{const t=u.palette.mode==="light"?u.palette.grey[100]:u.palette.grey[900];return r0({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},e.position==="fixed"&&{position:"fixed",zIndex:(u.vars||u).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},e.position==="absolute"&&{position:"absolute",zIndex:(u.vars||u).zIndex.appBar,top:0,left:"auto",right:0},e.position==="sticky"&&{position:"sticky",zIndex:(u.vars||u).zIndex.appBar,top:0,left:"auto",right:0},e.position==="static"&&{position:"static"},e.position==="relative"&&{position:"relative"},!u.vars&&r0({},e.color==="default"&&{backgroundColor:t,color:u.palette.getContrastText(t)},e.color&&e.color!=="default"&&e.color!=="inherit"&&e.color!=="transparent"&&{backgroundColor:u.palette[e.color].main,color:u.palette[e.color].contrastText},e.color==="inherit"&&{color:"inherit"},u.palette.mode==="dark"&&!e.enableColorOnDark&&{backgroundColor:null,color:null},e.color==="transparent"&&r0({backgroundColor:"transparent",color:"inherit"},u.palette.mode==="dark"&&{backgroundImage:"none"})),u.vars&&r0({},e.color==="default"&&{"--AppBar-background":e.enableColorOnDark?u.vars.palette.AppBar.defaultBg:Zc(u.vars.palette.AppBar.darkBg,u.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?u.vars.palette.text.primary:Zc(u.vars.palette.AppBar.darkColor,u.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?u.vars.palette[e.color].main:Zc(u.vars.palette.AppBar.darkBg,u.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?u.vars.palette[e.color].contrastText:Zc(u.vars.palette.AppBar.darkColor,u.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:e.color==="inherit"?"inherit":"var(--AppBar-color)"},e.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),fK=w.forwardRef(function(e,t){const n=gt({props:e,name:"MuiAppBar"}),{className:r,color:i="primary",enableColorOnDark:a=!1,position:o="fixed"}=n,s=cu(n,aK),f=r0({},n,{color:i,position:o,enableColorOnDark:a}),l=oK(f);return f0.jsx(sK,r0({square:!0,component:"header",ownerState:f,elevation:4,className:pu(l.root,r,o==="fixed"&&"mui-fixed"),ref:t},s))}),lK=fK;function cK(u){return Xe("MuiToolbar",u)}bt("MuiToolbar",["root","gutters","regular","dense"]);const EK=["className","component","disableGutters","variant"],dK=u=>{const{classes:e,disableGutters:t,variant:n}=u;return mt({root:["root",!t&&"gutters",n]},cK,e)},pK=Ee("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,!t.disableGutters&&e.gutters,e[t.variant]]}})(({theme:u,ownerState:e})=>r0({position:"relative",display:"flex",alignItems:"center"},!e.disableGutters&&{paddingLeft:u.spacing(2),paddingRight:u.spacing(2),[u.breakpoints.up("sm")]:{paddingLeft:u.spacing(3),paddingRight:u.spacing(3)}},e.variant==="dense"&&{minHeight:48}),({theme:u,ownerState:e})=>e.variant==="regular"&&u.mixins.toolbar),hK=w.forwardRef(function(e,t){const n=gt({props:e,name:"MuiToolbar"}),{className:r,component:i="div",disableGutters:a=!1,variant:o="regular"}=n,s=cu(n,EK),f=r0({},n,{component:i,disableGutters:a,variant:o}),l=dK(f);return f0.jsx(pK,r0({as:i,className:pu(l.root,r),ref:t,ownerState:f},s))}),CK=hK,mK=AG({createStyledComponent:Ee("div",{name:"MuiContainer",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[`maxWidth${su(String(t.maxWidth))}`],t.fixed&&e.fixed,t.disableGutters&&e.disableGutters]}}),useThemeProps:u=>gt({props:u,name:"MuiContainer"})}),bK=mK,gK=["theme"];function AK(u){let{theme:e}=u,t=cu(u,gK);const n=e[ko];return f0.jsx(pG,r0({},t,{themeId:n?ko:void 0,theme:n||e}))}const yK=bt("MuiBox",["root"]),vK=yK,BK=Um(),FK=HH({themeId:ko,defaultTheme:BK,defaultClassName:vK.root,generateClassName:hS.generate}),DK=FK,wK="/real-token/Logo.svg",xK="modulepreload",kK=function(u){return"/real-token/"+u},Hv={},L0=function(e,t,n){if(!t||t.length===0)return e();const r=document.getElementsByTagName("link");return Promise.all(t.map(i=>{if(i=kK(i),i in Hv)return;Hv[i]=!0;const a=i.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let l=r.length-1;l>=0;l--){const c=r[l];if(c.href===i&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${o}`))return;const f=document.createElement("link");if(f.rel=a?"stylesheet":xK,a||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),a)return new Promise((l,c)=>{f.addEventListener("load",l),f.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};var Gv='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',_K={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${Gv}`,system:Gv},P3={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},SK={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},TK=({borderRadius:u="large",fontStack:e="rounded",overlayBlur:t="none"})=>({blurs:{modalOverlay:SK[t].modalOverlay},fonts:{body:_K[e]},radii:{actionButton:P3[u].actionButton,connectButton:P3[u].connectButton,menuButton:P3[u].connectButton,modal:P3[u].modal,modalMobile:P3[u].modalMobile}}),KS={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},Vv=KS.blue,QS=({accentColor:u=Vv.accentColor,accentColorForeground:e=Vv.accentColorForeground,...t}={})=>({...TK(t),colors:{accentColor:u,accentColorForeground:e,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});QS.accentColors=KS;function PK(u,e){return Object.defineProperty(u,"__recipe__",{value:e,writable:!1}),u}var JS=PK;function YS(u){var{conditions:e}=u;if(!e)throw new Error("Styles have no conditions");function t(n){if(typeof n=="string"||typeof n=="number"||typeof n=="boolean"){if(!e.defaultCondition)throw new Error("No default condition");return{[e.defaultCondition]:n}}if(Array.isArray(n)){if(!("responsiveArray"in e))throw new Error("Responsive arrays are not supported");var r={};for(var i in e.responsiveArray)n[i]!=null&&(r[e.responsiveArray[i]]=n[i]);return r}return n}return JS(t,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:u.conditions}]})}function OK(u){var{conditions:e}=u;if(!e)throw new Error("Styles have no conditions");var t=YS(u);function n(r,i){if(typeof r=="string"||typeof r=="number"||typeof r=="boolean"){if(!e.defaultCondition)throw new Error("No default condition");return i(r,e.defaultCondition)}var a=Array.isArray(r)?t(r):r,o={};for(var s in a)a[s]!=null&&(o[s]=i(a[s],s));return o}return JS(n,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:u.conditions}]})}function IK(u,e,t){return e in u?Object.defineProperty(u,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):u[e]=t,u}function Kv(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(u);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(u,r).enumerable})),t.push.apply(t,n)}return t}function y8(u){for(var e=1;efunction(){for(var e=arguments.length,t=new Array(e),n=0;ns.styles)),i=Object.keys(r),a=i.filter(s=>"mappings"in r[s]),o=s=>{var f=[],l={},c=y8({},s),E=!1;for(var d of a){var p=s[d];if(p!=null){var h=r[d];E=!0;for(var g of h.mappings)l[g]=p,c[g]==null&&delete c[g]}}var b=E?y8(y8({},l),c):s;for(var m in b){var A=b[m],y=r[m];try{if(y.mappings)continue;if(typeof A=="string"||typeof A=="number")f.push(y.values[A].defaultClass);else if(Array.isArray(A))for(var B=0;Bu,MK=function(){return NK(RK)(...arguments)};function jK({storage:u,key:e="REACT_QUERY_OFFLINE_CACHE",throttleTime:t=1e3,serialize:n=JSON.stringify,deserialize:r=JSON.parse,retry:i}){if(u){const a=o=>{try{u.setItem(e,n(o));return}catch(s){return s}};return{persistClient:zK(o=>{let s=o,f=a(s),l=0;for(;f&&s;)l++,s=i==null?void 0:i({persistedClient:s,error:f,errorCount:l}),s&&(f=a(s))},t),restoreClient:()=>{const o=u.getItem(e);if(o)return r(o)},removeClient:()=>{u.removeItem(e)}}}return{persistClient:Qv,restoreClient:()=>{},removeClient:Qv}}function zK(u,e=100){let t=null,n;return function(...r){n=r,t===null&&(t=setTimeout(()=>{u(...n),t=null},e))}}function Qv(){}class qf{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const ql=typeof window>"u"||"Deno"in window;function Zt(){}function LK(u,e){return typeof u=="function"?u(e):u}function zh(u){return typeof u=="number"&&u>=0&&u!==1/0}function ZS(u,e){return Math.max(u+(e||0)-Date.now(),0)}function Xc(u,e,t){return L1(u)?typeof e=="function"?{...t,queryKey:u,queryFn:e}:{...e,queryKey:u}:u}function XS(u,e,t){return L1(u)?typeof e=="function"?{...t,mutationKey:u,mutationFn:e}:{...e,mutationKey:u}:typeof u=="function"?{...e,mutationFn:u}:{...u}}function yi(u,e,t){return L1(u)?[{...e,queryKey:u},t]:[u||{},e]}function Jv(u,e){const{type:t="all",exact:n,fetchStatus:r,predicate:i,queryKey:a,stale:o}=u;if(L1(a)){if(n){if(e.queryHash!==Hm(a,e.options))return!1}else if(!z5(e.queryKey,a))return!1}if(t!=="all"){const s=e.isActive();if(t==="active"&&!s||t==="inactive"&&s)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||typeof r<"u"&&r!==e.state.fetchStatus||i&&!i(e))}function Yv(u,e){const{exact:t,fetching:n,predicate:r,mutationKey:i}=u;if(L1(i)){if(!e.options.mutationKey)return!1;if(t){if(za(e.options.mutationKey)!==za(i))return!1}else if(!z5(e.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&e.state.status==="loading"!==n||r&&!r(e))}function Hm(u,e){return((e==null?void 0:e.queryKeyHashFn)||za)(u)}function za(u){return JSON.stringify(u,(e,t)=>Lh(t)?Object.keys(t).sort().reduce((n,r)=>(n[r]=t[r],n),{}):t)}function z5(u,e){return uT(u,e)}function uT(u,e){return u===e?!0:typeof u!=typeof e?!1:u&&e&&typeof u=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!uT(u[t],e[t])):!1}function eT(u,e){if(u===e)return u;const t=Zv(u)&&Zv(e);if(t||Lh(u)&&Lh(e)){const n=t?u.length:Object.keys(u).length,r=t?e:Object.keys(e),i=r.length,a=t?[]:{};let o=0;for(let s=0;s"u")return!0;const t=e.prototype;return!(!Xv(t)||!t.hasOwnProperty("isPrototypeOf"))}function Xv(u){return Object.prototype.toString.call(u)==="[object Object]"}function L1(u){return Array.isArray(u)}function tT(u){return new Promise(e=>{setTimeout(e,u)})}function uB(u){tT(0).then(u)}function $K(){if(typeof AbortController=="function")return new AbortController}function $h(u,e,t){return t.isDataEqual!=null&&t.isDataEqual(u,e)?u:typeof t.structuralSharing=="function"?t.structuralSharing(u,e):t.structuralSharing!==!1?eT(u,e):e}class UK extends qf{constructor(){super(),this.setup=e=>{if(!ql&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const $5=new UK,eB=["online","offline"];class WK extends qf{constructor(){super(),this.setup=e=>{if(!ql&&window.addEventListener){const t=()=>e();return eB.forEach(n=>{window.addEventListener(n,t,!1)}),()=>{eB.forEach(n=>{window.removeEventListener(n,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const U5=new WK;function qK(u){return Math.min(1e3*2**u,3e4)}function U9(u){return(u??"online")==="online"?U5.isOnline():!0}class nT{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function $6(u){return u instanceof nT}function rT(u){let e=!1,t=0,n=!1,r,i,a;const o=new Promise((g,b)=>{i=g,a=b}),s=g=>{n||(d(new nT(g)),u.abort==null||u.abort())},f=()=>{e=!0},l=()=>{e=!1},c=()=>!$5.isFocused()||u.networkMode!=="always"&&!U5.isOnline(),E=g=>{n||(n=!0,u.onSuccess==null||u.onSuccess(g),r==null||r(),i(g))},d=g=>{n||(n=!0,u.onError==null||u.onError(g),r==null||r(),a(g))},p=()=>new Promise(g=>{r=b=>{const m=n||!c();return m&&g(b),m},u.onPause==null||u.onPause()}).then(()=>{r=void 0,n||u.onContinue==null||u.onContinue()}),h=()=>{if(n)return;let g;try{g=u.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(E).catch(b=>{var m,A;if(n)return;const y=(m=u.retry)!=null?m:3,B=(A=u.retryDelay)!=null?A:qK,v=typeof B=="function"?B(t,b):B,C=y===!0||typeof y=="number"&&t{if(c())return p()}).then(()=>{e?d(b):h()})})};return U9(u.networkMode)?h():p().then(h),{promise:o,cancel:s,continue:()=>(r==null?void 0:r())?o:Promise.resolve(),cancelRetry:f,continueRetry:l}}const Gm=console;function HK(){let u=[],e=0,t=l=>{l()},n=l=>{l()};const r=l=>{let c;e++;try{c=l()}finally{e--,e||o()}return c},i=l=>{e?u.push(l):uB(()=>{t(l)})},a=l=>(...c)=>{i(()=>{l(...c)})},o=()=>{const l=u;u=[],l.length&&uB(()=>{n(()=>{l.forEach(c=>{t(c)})})})};return{batch:r,batchCalls:a,schedule:i,setNotifyFunction:l=>{t=l},setBatchNotifyFunction:l=>{n=l}}}const ju=HK();class iT{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zh(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(ql?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class GK extends iT{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Gm,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||VK(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const n=$h(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return(t=this.retryer)==null||t.cancel(e),n?n.then(Zt).catch(Zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!ZS(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const a=$K(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(o);const f=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:f};if(s(l),(n=this.options.behavior)==null||n.onFetch(l),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((r=l.fetchOptions)==null?void 0:r.meta)){var c;this.dispatch({type:"fetch",meta:(c=l.fetchOptions)==null?void 0:c.meta})}const E=d=>{if($6(d)&&d.silent||this.dispatch({type:"error",error:d}),!$6(d)){var p,h,g,b;(p=(h=this.cache.config).onError)==null||p.call(h,d,this),(g=(b=this.cache.config).onSettled)==null||g.call(b,this.state.data,d,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=rT({fn:l.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:d=>{var p,h,g,b;if(typeof d>"u"){E(new Error(this.queryHash+" data is undefined"));return}this.setData(d),(p=(h=this.cache.config).onSuccess)==null||p.call(h,d,this),(g=(b=this.cache.config).onSettled)==null||g.call(b,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:E,onFail:(d,p)=>{this.dispatch({type:"failed",failureCount:d,error:p})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=n=>{var r,i;switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(r=e.meta)!=null?r:null,fetchStatus:U9(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=e.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return $6(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),ju.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function VK(u){const e=typeof u.initialData=="function"?u.initialData():u.initialData,t=typeof e<"u",n=t?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class KK extends qf{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,a=(r=t.queryHash)!=null?r:Hm(i,t);let o=this.get(a);return o||(o=new GK({cache:this,logger:e.getLogger(),queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(n=>n!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){ju.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=yi(e,t);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(r=>Jv(n,r))}findAll(e,t){const[n]=yi(e,t);return Object.keys(n).length>0?this.queries.filter(r=>Jv(n,r)):this.queries}notify(e){ju.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){ju.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){ju.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class QK extends iT{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Gm,this.observers=[],this.state=e.state||aT(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var C;return this.retryer=rT({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(D,T)=>{this.dispatch({type:"failed",failureCount:D,error:T})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(C=this.options.retry)!=null?C:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var n,r,i,a,o,s,f,l;if(!t){var c,E,d,p;this.dispatch({type:"loading",variables:this.options.variables}),await((c=(E=this.mutationCache.config).onMutate)==null?void 0:c.call(E,this.state.variables,this));const D=await((d=(p=this.options).onMutate)==null?void 0:d.call(p,this.state.variables));D!==this.state.context&&this.dispatch({type:"loading",context:D,variables:this.state.variables})}const C=await e();return await((n=(r=this.mutationCache.config).onSuccess)==null?void 0:n.call(r,C,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,C,this.state.variables,this.state.context)),await((o=(s=this.mutationCache.config).onSettled)==null?void 0:o.call(s,C,null,this.state.variables,this.state.context,this)),await((f=(l=this.options).onSettled)==null?void 0:f.call(l,C,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:C}),C}catch(C){try{var h,g,b,m,A,y,B,v;throw await((h=(g=this.mutationCache.config).onError)==null?void 0:h.call(g,C,this.state.variables,this.state.context,this)),await((b=(m=this.options).onError)==null?void 0:b.call(m,C,this.state.variables,this.state.context)),await((A=(y=this.mutationCache.config).onSettled)==null?void 0:A.call(y,void 0,C,this.state.variables,this.state.context,this)),await((B=(v=this.options).onSettled)==null?void 0:B.call(v,void 0,C,this.state.variables,this.state.context)),C}finally{this.dispatch({type:"error",error:C})}}}dispatch(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!U9(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...n,...e.state}}};this.state=t(this.state),ju.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function aT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class JK extends qf{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new QK({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){ju.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>Yv(e,t))}findAll(e){return this.mutations.filter(t=>Yv(e,t))}notify(e){ju.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(n=>n.state.isPaused);return ju.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Zt)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function YK(){return{onFetch:u=>{u.fetchFn=()=>{var e,t,n,r,i,a;const o=(e=u.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,s=(n=u.fetchOptions)==null||(r=n.meta)==null?void 0:r.fetchMore,f=s==null?void 0:s.pageParam,l=(s==null?void 0:s.direction)==="forward",c=(s==null?void 0:s.direction)==="backward",E=((i=u.state.data)==null?void 0:i.pages)||[],d=((a=u.state.data)==null?void 0:a.pageParams)||[];let p=d,h=!1;const g=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>{var C;if((C=u.signal)!=null&&C.aborted)h=!0;else{var D;(D=u.signal)==null||D.addEventListener("abort",()=>{h=!0})}return u.signal}})},b=u.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+u.options.queryHash+"'")),m=(v,C,D,T)=>(p=T?[C,...p]:[...p,C],T?[D,...v]:[...v,D]),A=(v,C,D,T)=>{if(h)return Promise.reject("Cancelled");if(typeof D>"u"&&!C&&v.length)return Promise.resolve(v);const _={queryKey:u.queryKey,pageParam:D,meta:u.options.meta};g(_);const $=b(_);return Promise.resolve($).then(e0=>m(v,D,e0,T))};let y;if(!E.length)y=A([]);else if(l){const v=typeof f<"u",C=v?f:tB(u.options,E);y=A(E,v,C)}else if(c){const v=typeof f<"u",C=v?f:ZK(u.options,E);y=A(E,v,C,!0)}else{p=[];const v=typeof u.options.getNextPageParam>"u";y=(o&&E[0]?o(E[0],0,E):!0)?A([],v,d[0]):Promise.resolve(m([],d[0],E[0]));for(let D=1;D{if(o&&E[D]?o(E[D],D,E):!0){const $=v?d[D]:tB(u.options,T);return A(T,v,$)}return Promise.resolve(m(T,d[D],E[D]))})}return y.then(v=>({pages:v,pageParams:p}))}}}}function tB(u,e){return u.getNextPageParam==null?void 0:u.getNextPageParam(e[e.length-1],e)}function ZK(u,e){return u.getPreviousPageParam==null?void 0:u.getPreviousPageParam(e[0],e)}class XK{constructor(e={}){this.queryCache=e.queryCache||new KK,this.mutationCache=e.mutationCache||new JK,this.logger=e.logger||Gm,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=$5.subscribe(()=>{$5.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=U5.subscribe(()=>{U5.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=yi(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state.data}ensureQueryData(e,t,n){const r=Xc(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.queryCache.find(e),i=r==null?void 0:r.state.data,a=LK(t,i);if(typeof a>"u")return;const o=Xc(e),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ju.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state}removeQueries(e,t){const[n]=yi(e,t),r=this.queryCache;ju.batch(()=>{r.findAll(n).forEach(i=>{r.remove(i)})})}resetQueries(e,t,n){const[r,i]=yi(e,t,n),a=this.queryCache,o={type:"active",...r};return ju.batch(()=>(a.findAll(r).forEach(s=>{s.reset()}),this.refetchQueries(o,i)))}cancelQueries(e,t,n){const[r,i={}]=yi(e,t,n);typeof i.revert>"u"&&(i.revert=!0);const a=ju.batch(()=>this.queryCache.findAll(r).map(o=>o.cancel(i)));return Promise.all(a).then(Zt).catch(Zt)}invalidateQueries(e,t,n){const[r,i]=yi(e,t,n);return ju.batch(()=>{var a,o;if(this.queryCache.findAll(r).forEach(f=>{f.invalidate()}),r.refetchType==="none")return Promise.resolve();const s={...r,type:(a=(o=r.refetchType)!=null?o:r.type)!=null?a:"active"};return this.refetchQueries(s,i)})}refetchQueries(e,t,n){const[r,i]=yi(e,t,n),a=ju.batch(()=>this.queryCache.findAll(r).filter(s=>!s.isDisabled()).map(s=>{var f;return s.fetch(void 0,{...i,cancelRefetch:(f=i==null?void 0:i.cancelRefetch)!=null?f:!0,meta:{refetchPage:r.refetchPage}})}));let o=Promise.all(a).then(Zt);return i!=null&&i.throwOnError||(o=o.catch(Zt)),o}fetchQuery(e,t,n){const r=Xc(e,t,n),i=this.defaultQueryOptions(r);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Zt).catch(Zt)}fetchInfiniteQuery(e,t,n){const r=Xc(e,t,n);return r.behavior=YK(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Zt).catch(Zt)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(r=>za(e)===za(r.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(n=>z5(e,n.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(r=>za(e)===za(r.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(n=>z5(e,n.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Hm(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class uQ extends qf{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),nB(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Uh(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Uh(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),L5(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&rB(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return tQ(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Zt)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),ql||this.currentResult.isStale||!zh(this.options.staleTime))return;const t=ZS(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(ql||this.options.enabled===!1||!zh(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||$5.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,i=this.currentResult,a=this.currentResultState,o=this.currentResultOptions,s=e!==n,f=s?e.state:this.currentQueryInitialState,l=s?this.currentResult:this.previousQueryResult,{state:c}=e;let{dataUpdatedAt:E,error:d,errorUpdatedAt:p,fetchStatus:h,status:g}=c,b=!1,m=!1,A;if(t._optimisticResults){const D=this.hasListeners(),T=!D&&nB(e,t),_=D&&rB(e,n,t,r);(T||_)&&(h=U9(e.options.networkMode)?"fetching":"paused",E||(g="loading")),t._optimisticResults==="isRestoring"&&(h="idle")}if(t.keepPreviousData&&!c.dataUpdatedAt&&l!=null&&l.isSuccess&&g!=="error")A=l.data,E=l.dataUpdatedAt,g=l.status,b=!0;else if(t.select&&typeof c.data<"u")if(i&&c.data===(a==null?void 0:a.data)&&t.select===this.selectFn)A=this.selectResult;else try{this.selectFn=t.select,A=t.select(c.data),A=$h(i==null?void 0:i.data,A,t),this.selectResult=A,this.selectError=null}catch(D){this.selectError=D}else A=c.data;if(typeof t.placeholderData<"u"&&typeof A>"u"&&g==="loading"){let D;if(i!=null&&i.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData))D=i.data;else if(D=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof D<"u")try{D=t.select(D),this.selectError=null}catch(T){this.selectError=T}typeof D<"u"&&(g="success",A=$h(i==null?void 0:i.data,D,t),m=!0)}this.selectError&&(d=this.selectError,A=this.selectResult,p=Date.now(),g="error");const y=h==="fetching",B=g==="loading",v=g==="error";return{status:g,fetchStatus:h,isLoading:B,isSuccess:g==="success",isError:v,isInitialLoading:B&&y,data:A,dataUpdatedAt:E,error:d,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>f.dataUpdateCount||c.errorUpdateCount>f.errorUpdateCount,isFetching:y,isRefetching:y&&!B,isLoadingError:v&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:m,isPreviousData:b,isRefetchError:v&&c.dataUpdatedAt!==0,isStale:Vm(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,L5(n,t))return;this.currentResult=n;const r={cache:!0},i=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.trackedProps.size)return!0;const s=new Set(o??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(f=>{const l=f;return this.currentResult[l]!==t[l]&&s.has(l)})};(e==null?void 0:e.listeners)!==!1&&i()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!$6(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ju.batch(()=>{if(e.onSuccess){var t,n,r,i;(t=(n=this.options).onSuccess)==null||t.call(n,this.currentResult.data),(r=(i=this.options).onSettled)==null||r.call(i,this.currentResult.data,null)}else if(e.onError){var a,o,s,f;(a=(o=this.options).onError)==null||a.call(o,this.currentResult.error),(s=(f=this.options).onSettled)==null||s.call(f,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:l})=>{l(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function eQ(u,e){return e.enabled!==!1&&!u.state.dataUpdatedAt&&!(u.state.status==="error"&&e.retryOnMount===!1)}function nB(u,e){return eQ(u,e)||u.state.dataUpdatedAt>0&&Uh(u,e,e.refetchOnMount)}function Uh(u,e,t){if(e.enabled!==!1){const n=typeof t=="function"?t(u):t;return n==="always"||n!==!1&&Vm(u,e)}return!1}function rB(u,e,t,n){return t.enabled!==!1&&(u!==e||n.enabled===!1)&&(!t.suspense||u.state.status!=="error")&&Vm(u,t)}function Vm(u,e){return u.isStaleByTime(e.staleTime)}function tQ(u,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!L5(u.getCurrentResult(),e)}let nQ=class extends qf{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),L5(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(t=this.currentMutation)==null||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.currentMutation)==null||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();const t={listeners:!0};e.type==="success"?t.onSuccess=!0:e.type==="error"&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof e<"u"?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:aT(),t={...e,isLoading:e.status==="loading",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){ju.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(e.onSuccess){var t,n,r,i;(t=(n=this.mutateOptions).onSuccess)==null||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(r=(i=this.mutateOptions).onSettled)==null||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(e.onError){var a,o,s,f;(a=(o=this.mutateOptions).onError)==null||a.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(s=(f=this.mutateOptions).onSettled)==null||s.call(f,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}e.listeners&&this.listeners.forEach(({listener:l})=>{l(this.currentResult)})})}};function rQ(u){return{mutationKey:u.options.mutationKey,state:u.state}}function iQ(u){return{state:u.state,queryKey:u.queryKey,queryHash:u.queryHash}}function aQ(u){return u.state.isPaused}function oQ(u){return u.state.status==="success"}function sQ(u,e={}){const t=[],n=[];if(e.dehydrateMutations!==!1){const r=e.shouldDehydrateMutation||aQ;u.getMutationCache().getAll().forEach(i=>{r(i)&&t.push(rQ(i))})}if(e.dehydrateQueries!==!1){const r=e.shouldDehydrateQuery||oQ;u.getQueryCache().getAll().forEach(i=>{r(i)&&n.push(iQ(i))})}return{mutations:t,queries:n}}function fQ(u,e,t){if(typeof e!="object"||e===null)return;const n=u.getMutationCache(),r=u.getQueryCache(),i=e.mutations||[],a=e.queries||[];i.forEach(o=>{var s;n.build(u,{...t==null||(s=t.defaultOptions)==null?void 0:s.mutations,mutationKey:o.mutationKey},o.state)}),a.forEach(({queryKey:o,state:s,queryHash:f})=>{var l;const c=r.get(f);if(c){if(c.state.dataUpdatedAt"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?cQ:lQ;iT.useSyncExternalStore=r3.useSyncExternalStore!==void 0?r3.useSyncExternalStore:EQ;rT.exports=iT;var K7=rT.exports;const dQ=K7.useSyncExternalStore,iB=w.createContext(void 0),aT=w.createContext(!1);function oT(u,e){return u||(e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=iB),window.ReactQueryClientContext):iB)}const Q7=({context:u}={})=>{const e=w.useContext(oT(u,w.useContext(aT)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},pQ=({client:u,children:e,context:t,contextSharing:n=!1})=>{w.useEffect(()=>(u.mount(),()=>{u.unmount()}),[u]);const r=oT(t,n);return w.createElement(aT.Provider,{value:!t&&n},w.createElement(r.Provider,{value:u},e))},sT=w.createContext(!1),hQ=()=>w.useContext(sT);sT.Provider;function CQ(){let u=!1;return{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u}}const mQ=w.createContext(CQ()),gQ=()=>w.useContext(mQ);function bQ(u,e){return typeof u=="function"?u(...e):!!u}function AQ(u,e,t){const n=JS(u,e,t),r=Q7({context:n.context}),[i]=w.useState(()=>new YK(r,n));w.useEffect(()=>{i.setOptions(n)},[i,n]);const a=dQ(w.useCallback(s=>i.subscribe(ju.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=w.useCallback((s,f)=>{i.mutate(s,f).catch(yQ)},[i]);if(a.error&&bQ(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}function yQ(){}const vQ=["added","removed","updated"];function aB(u){return vQ.includes(u)}async function BQ({queryClient:u,persister:e,maxAge:t=1e3*60*60*24,buster:n="",hydrateOptions:r}){try{const i=await e.restoreClient();if(i)if(i.timestamp){const a=Date.now()-i.timestamp>t,o=i.buster!==n;a||o?e.removeClient():nQ(u,i.clientState,r)}else e.removeClient()}catch{e.removeClient()}}async function oB({queryClient:u,persister:e,buster:t="",dehydrateOptions:n}){const r={buster:t,timestamp:Date.now(),clientState:tQ(u,n)};await e.persistClient(r)}function FQ(u){const e=u.queryClient.getQueryCache().subscribe(n=>{aB(n.type)&&oB(u)}),t=u.queryClient.getMutationCache().subscribe(n=>{aB(n.type)&&oB(u)});return()=>{e(),t()}}function DQ(u){let e=!1,t;const n=()=>{e=!0,t==null||t()},r=BQ(u).then(()=>{e||(t=FQ(u))});return[n,r]}function WE(u,e={}){const{fees:t=u.fees,formatters:n=u.formatters,serializers:r=u.serializers}=e;return{...u,fees:t,formatters:n,serializers:r}}const wQ="1.19.10",xQ=u=>u,U3=u=>u,kQ=()=>`viem@${wQ}`;let f0=class Wh extends Error{constructor(e,t={}){var i;super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:kQ()});const n=t.cause instanceof Wh?t.cause.details:(i=t.cause)!=null&&i.message?t.cause.message:t.details,r=t.cause instanceof Wh&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...r?[`Docs: https://viem.sh${r}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join(` -`),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=r,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return fT(this,e)}};function fT(u,e){return e!=null&&e(u)?u:u&&typeof u=="object"&&"cause"in u?fT(u.cause,e):e?null:u}class _Q extends f0{constructor({consumed:e,length:t}){super(`Consumed bytes (${e}) is shorter than data length (${t-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooLongError"})}}class SQ extends f0{constructor({length:e,dataLength:t}){super(`Data length (${t-1}) is shorter than consumed bytes length (${e-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooShortError"})}}class lT extends f0{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${r*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class cT extends f0{constructor(e){super(`Bytes value "${e}" is not a valid boolean. 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:"InvalidBytesBooleanError"})}}class ET extends f0{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class dT extends f0{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexValueError"})}}class TQ extends f0{constructor({nextOffset:e,offset:t}){super(`Next offset (${e}) is greater than previous offset + consumed bytes (${t})`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffsetOutOfBoundsError"})}}class pT extends f0{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}function K0(u,{strict:e=!0}={}){return!u||typeof u!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(u):u.startsWith("0x")}function $u(u){return K0(u,{strict:!1})?Math.ceil((u.length-2)/2):u.length}function He(u,{dir:e="left"}={}){let t=typeof u=="string"?u.replace("0x",""):u,n=0;for(let r=0;rt*2)throw new Y7({size:Math.ceil(n.length/2),targetSize:t,type:"hex"});return`0x${n[e==="right"?"padEnd":"padStart"](t*2,"0")}`}function hT(u,{dir:e,size:t=32}={}){if(t===null)return u;if(u.length>t)throw new Y7({size:u.length,targetSize:t,type:"bytes"});const n=new Uint8Array(t);for(let r=0;re.toString(16).padStart(2,"0"));function J0(u,e={}){return typeof u=="number"||typeof u=="bigint"?S0(u,e):typeof u=="string"?$c(u,e):typeof u=="boolean"?qE(u,e):pt(u,e)}function qE(u,e={}){const t=`0x${Number(u)}`;return typeof e.size=="number"?(hn(t,{size:e.size}),Nn(t,{size:e.size})):t}function pt(u,e={}){let t="";for(let r=0;ri||r=br.zero&&u<=br.nine)return u-br.zero;if(u>=br.A&&u<=br.F)return u-(br.A-10);if(u>=br.a&&u<=br.f)return u-(br.a-10)}function ni(u,e={}){let t=u;e.size&&(hn(t,{size:e.size}),t=Nn(t,{dir:"right",size:e.size}));let n=t.slice(2);n.length%2&&(n=`0${n}`);const r=n.length/2,i=new Uint8Array(r);for(let a=0,o=0;ae)throw new pT({givenSize:$u(u),maxSize:e})}function NQ(u,e){const t=typeof e=="string"?{to:e}:e,n=t.to;return n==="number"?fu(u,t):n==="bigint"?xu(u,t):n==="string"?Uc(u,t):n==="boolean"?Z7(u,t):ni(u,t)}function xu(u,e={}){const{signed:t}=e;e.size&&hn(u,{size:e.size});const n=BigInt(u);if(!t)return n;const r=(u.length-2)/2,i=(1n<({exclude:t,format:r=>{const i=e(r);if(t)for(const a of t)delete i[a];return{...i,...n(r)}},type:u})}const X7={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function GE(u){const e={...u,blockHash:u.blockHash?u.blockHash:null,blockNumber:u.blockNumber?BigInt(u.blockNumber):null,chainId:u.chainId?fu(u.chainId):void 0,gas:u.gas?BigInt(u.gas):void 0,gasPrice:u.gasPrice?BigInt(u.gasPrice):void 0,maxFeePerGas:u.maxFeePerGas?BigInt(u.maxFeePerGas):void 0,maxPriorityFeePerGas:u.maxPriorityFeePerGas?BigInt(u.maxPriorityFeePerGas):void 0,nonce:u.nonce?fu(u.nonce):void 0,to:u.to?u.to:null,transactionIndex:u.transactionIndex?Number(u.transactionIndex):null,type:u.type?X7[u.type]:void 0,typeHex:u.type?u.type:void 0,value:u.value?BigInt(u.value):void 0,v:u.v?BigInt(u.v):void 0};return e.yParity=(()=>{if(u.yParity)return Number(u.yParity);if(typeof e.v=="bigint"){if(e.v===0n||e.v===27n)return 0;if(e.v===1n||e.v===28n)return 1;if(e.v>=35n)return e.v%2n===0n?1:0}})(),e.type==="legacy"&&(delete e.accessList,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas,delete e.yParity),e.type==="eip2930"&&(delete e.maxFeePerGas,delete e.maxPriorityFeePerGas),e}const RQ=HE("transaction",GE);function VE(u){var t;const e=(t=u.transactions)==null?void 0:t.map(n=>typeof n=="string"?n:GE(n));return{...u,baseFeePerGas:u.baseFeePerGas?BigInt(u.baseFeePerGas):null,difficulty:u.difficulty?BigInt(u.difficulty):void 0,gasLimit:u.gasLimit?BigInt(u.gasLimit):void 0,gasUsed:u.gasUsed?BigInt(u.gasUsed):void 0,hash:u.hash?u.hash:null,logsBloom:u.logsBloom?u.logsBloom:null,nonce:u.nonce?u.nonce:null,number:u.number?BigInt(u.number):null,size:u.size?BigInt(u.size):void 0,timestamp:u.timestamp?BigInt(u.timestamp):void 0,transactions:e,totalDifficulty:u.totalDifficulty?BigInt(u.totalDifficulty):null}}const MQ=HE("block",VE);function cn(u,{args:e,eventName:t}={}){return{...u,blockHash:u.blockHash?u.blockHash:null,blockNumber:u.blockNumber?BigInt(u.blockNumber):null,logIndex:u.logIndex?Number(u.logIndex):null,transactionHash:u.transactionHash?u.transactionHash:null,transactionIndex:u.transactionIndex?Number(u.transactionIndex):null,...t?{args:e,eventName:t}:{}}}const jQ={"0x0":"reverted","0x1":"success"};function ug(u){return{...u,blockNumber:u.blockNumber?BigInt(u.blockNumber):null,contractAddress:u.contractAddress?u.contractAddress:null,cumulativeGasUsed:u.cumulativeGasUsed?BigInt(u.cumulativeGasUsed):null,effectiveGasPrice:u.effectiveGasPrice?BigInt(u.effectiveGasPrice):null,gasUsed:u.gasUsed?BigInt(u.gasUsed):null,logs:u.logs?u.logs.map(e=>cn(e)):null,to:u.to?u.to:null,transactionIndex:u.transactionIndex?fu(u.transactionIndex):null,status:u.status?jQ[u.status]:null,type:u.type?X7[u.type]||u.type:null}}const zQ=HE("transactionReceipt",ug),gT={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function Uo(u){return{...u,gas:typeof u.gas<"u"?S0(u.gas):void 0,gasPrice:typeof u.gasPrice<"u"?S0(u.gasPrice):void 0,maxFeePerGas:typeof u.maxFeePerGas<"u"?S0(u.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof u.maxPriorityFeePerGas<"u"?S0(u.maxPriorityFeePerGas):void 0,nonce:typeof u.nonce<"u"?S0(u.nonce):void 0,type:typeof u.type<"u"?gT[u.type]:void 0,value:typeof u.value<"u"?S0(u.value):void 0}}const LQ=HE("transactionRequest",Uo);class ht extends f0{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}class W2 extends f0{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}let bT=class extends f0{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}};class AT extends f0{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(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class eg extends f0{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class KE extends f0{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}const tg={gwei:9,wei:18},ng={ether:-9,wei:9},yT={ether:-18,gwei:-9};function Wl(u,e){let t=u.toString();const n=t.startsWith("-");n&&(t=t.slice(1)),t=t.padStart(e,"0");let[r,i]=[t.slice(0,t.length-e),t.slice(t.length-e)];return i=i.replace(/(0+)$/,""),`${n?"-":""}${r||"0"}${i?`.${i}`:""}`}function Ge(u,e="wei"){return Wl(u,ng[e])}class La extends f0{constructor({cause:e,message:t}={}){var r;const n=(r=t==null?void 0:t.replace("execution reverted: ",""))==null?void 0:r.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(La,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(La,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class aa extends f0{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Ge(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(aa,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class q2 extends f0{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Ge(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(q2,"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/});class H2 extends f0{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(H2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class G2 extends f0{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(` -`),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(G2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class V2 extends f0{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(V2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class K2 extends f0{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` -`),{cause:e,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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(K2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class Q2 extends f0{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(Q2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class J2 extends f0{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(J2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Y2 extends f0{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Y2,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class i3 extends f0{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${Ge(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${Ge(n)} gwei`:""}).`].join(` -`),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(i3,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class Wc extends f0{constructor({cause:e}){super(`An error occurred while executing: ${e==null?void 0:e.shortMessage}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}const $Q=/^0x[a-fA-F0-9]{40}$/;function Qe(u){return $Q.test(u)}function En(u){return typeof u[0]=="string"?ri(u):vT(u)}function vT(u){let e=0;for(const r of u)e+=r.length;const t=new Uint8Array(e);let n=0;for(const r of u)t.set(r,n),n+=r.length;return t}function ri(u){return`0x${u.reduce((e,t)=>e+t.replace("0x",""),"")}`}const UQ="0.9.8";class le extends Error{constructor(e,t={}){var a;const n=t.cause instanceof le?t.cause.details:(a=t.cause)!=null&&a.message?t.cause.message:t.details,r=t.cause instanceof le&&t.cause.docsPath||t.docsPath,i=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...r?[`Docs: https://abitype.dev${r}`]:[],...n?[`Details: ${n}`]:[],`Version: abitype@${UQ}`].join(` -`);super(i),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"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=r,this.metaMessages=t.metaMessages,this.shortMessage=e}}function ma(u,e){const t=u.exec(e);return t==null?void 0:t.groups}const BT=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,FT=/^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)?$/,DT=/^\(.+?\).*?$/,fB=/^tuple(?(\[(\d*)\])*)$/;function qh(u){let e=u.type;if(fB.test(u.type)&&"components"in u){e="(";const t=u.components.length;for(let r=0;r[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function qQ(u){return wT.test(u)}function HQ(u){return ma(wT,u)}const xT=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function GQ(u){return xT.test(u)}function VQ(u){return ma(xT,u)}const kT=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;function KQ(u){return kT.test(u)}function QQ(u){return ma(kT,u)}const _T=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;function qc(u){return _T.test(u)}function JQ(u){return ma(_T,u)}const ST=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;function YQ(u){return ST.test(u)}function ZQ(u){return ma(ST,u)}const XQ=/^fallback\(\)$/;function uJ(u){return XQ.test(u)}const eJ=/^receive\(\) external payable$/;function tJ(u){return eJ.test(u)}const Z2=new Set(["memory","indexed","storage","calldata"]),nJ=new Set(["indexed"]),Hh=new Set(["calldata","memory","storage"]);class TT extends le{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class PT extends le{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" 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"})}}class rJ extends le{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class OT extends le{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}class IT extends le{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class NT extends le{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class RT extends le{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" 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"})}}class MT extends le{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class jT extends le{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" 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"})}}class zT extends le{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Ls extends le{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class LT extends le{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class $T extends le{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class UT extends le{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class WT extends le{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function iJ(u,e){return e?`${e}:${u}`:u}const Bp=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 Gh(u,e={}){if(KQ(u)){const t=QQ(u);if(!t)throw new Ls({signature:u,type:"function"});const n=Pt(t.parameters),r=[],i=n.length;for(let o=0;o[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,oJ=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,sJ=/^u?int$/;function _n(u,e){var c,E;const t=iJ(u,e==null?void 0:e.type);if(Bp.has(t))return Bp.get(t);const n=DT.test(u),r=ma(n?oJ:aJ,u);if(!r)throw new NT({param:u});if(r.name&&lJ(r.name))throw new RT({param:u,name:r.name});const i=r.name?{name:r.name}:{},a=r.modifier==="indexed"?{indexed:!0}:{},o=(e==null?void 0:e.structs)??{};let s,f={};if(n){s="tuple";const d=Pt(r.type),p=[],h=d.length;for(let b=0;b[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function HT(u,e,t=new Set){const n=[],r=u.length;for(let i=0;i{var r;return((r=u[e.name||t])==null?void 0:r.call(u,n))??e(u,n)}}function ii(u,{includeName:e=!1}={}){if(u.type!=="function"&&u.type!=="event"&&u.type!=="error")throw new eP(u.type);return`${u.name}(${JE(u.inputs,{includeName:e})})`}function JE(u,{includeName:e=!1}={}){return u?u.map(t=>mJ(t,{includeName:e})).join(e?", ":","):""}function mJ(u,{includeName:e}){return u.type.startsWith("tuple")?`(${JE(u.components,{includeName:e})})${u.type.slice(5)}`:u.type+(e&&u.name?` ${u.name}`:"")}class rg extends f0{constructor({docsPath:e}){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(` -`),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class ql extends f0{constructor({docsPath:e}){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(` -`),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class gJ extends f0{constructor({data:e,size:t}){super([`Data size of ${t} bytes is invalid.`,"Size must be in increments of 32 bytes (size % 32 === 0)."].join(` -`),{metaMessages:[`Data: ${e} (${t} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}}class YE extends f0{constructor({data:e,params:t,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(` -`),{metaMessages:[`Params: (${JE(t,{includeName:!0})})`,`Data: ${e} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=e,this.params=t,this.size=n}}class Hc extends f0{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class GT extends f0{constructor({expectedLength:e,givenLength:t,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${e}`,`Given length: ${t}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class VT extends f0{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${$u(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class ig extends f0{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class KT extends f0{constructor(e,{docsPath:t}){super([`Arguments (\`args\`) were provided to "${e}", but "${e}" 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(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}}class Vh extends f0{constructor(e,{docsPath:t}={}){super([`Error ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}}class ag extends f0{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" 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://openchain.xyz/signatures?query=${e}.`].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class QT extends f0{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class JT extends f0{constructor(e,{docsPath:t}){super([`Encoded event signature "${e}" 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://openchain.xyz/signatures?query=${e}.`].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class Kh extends f0{constructor(e,{docsPath:t}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class _o extends f0{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class og extends f0{constructor(e,{docsPath:t}){super([`Function "${e}" 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(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class YT extends f0{constructor(e,{docsPath:t}){super([`Encoded function signature "${e}" 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://openchain.xyz/signatures?query=${e}.`].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}}class sg extends f0{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class oa extends f0{constructor({abiItem:e,data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for non-indexed event parameters.`].join(` -`),{metaMessages:[`Params: (${JE(n,{includeName:!0})})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=e,this.data=t,this.params=n,this.size=r}}class Wo extends f0{constructor({abiItem:e,param:t}){super([`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${ii(e,{includeName:!0})}".`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class ZT extends f0{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class XT extends f0{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` -`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class uP extends f0{constructor(e){super([`Value "${e}" is not a valid array.`].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class eP extends f0{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}class tP extends f0{constructor(e){super(`Type "${e}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}class nP extends f0{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}function bJ(u){let e=!0,t="",n=0,r="",i=!1;for(let a=0;a{const e=typeof u=="string"?u:WQ(u);return bJ(e)},rP=u=>fg(u);function X2(u){if(!Number.isSafeInteger(u)||u<0)throw new Error(`Wrong positive integer: ${u}`)}function lg(u,...e){if(!(u instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(u.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${u.length}`)}function AJ(u){if(typeof u!="function"||typeof u.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");X2(u.outputLen),X2(u.blockLen)}function a3(u,e=!0){if(u.destroyed)throw new Error("Hash instance has been destroyed");if(e&&u.finished)throw new Error("Hash#digest() has already been called")}function iP(u,e){lg(u);const t=e.outputLen;if(u.length>lB&u6)}:{h:Number(u>>lB&u6)|0,l:Number(u&u6)|0}}function vJ(u,e=!1){let t=new Uint32Array(u.length),n=new Uint32Array(u.length);for(let r=0;ru<>>32-t,FJ=(u,e,t)=>e<>>32-t,DJ=(u,e,t)=>e<>>64-t,wJ=(u,e,t)=>u<>>64-t,Fp=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const aP=u=>u instanceof Uint8Array,xJ=u=>new Uint32Array(u.buffer,u.byteOffset,Math.floor(u.byteLength/4)),Dp=u=>new DataView(u.buffer,u.byteOffset,u.byteLength),Hn=(u,e)=>u<<32-e|u>>>e,kJ=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!kJ)throw new Error("Non little-endian hardware is not supported");function _J(u){if(typeof u!="string")throw new Error(`utf8ToBytes expected string, got ${typeof u}`);return new Uint8Array(new TextEncoder().encode(u))}function ZE(u){if(typeof u=="string"&&(u=_J(u)),!aP(u))throw new Error(`expected Uint8Array, got ${typeof u}`);return u}function SJ(...u){const e=new Uint8Array(u.reduce((n,r)=>n+r.length,0));let t=0;return u.forEach(n=>{if(!aP(n))throw new Error("Uint8Array expected");e.set(n,t),t+=n.length}),e}let cg=class{clone(){return this._cloneInto()}};function oP(u){const e=n=>u().update(ZE(n)).digest(),t=u();return e.outputLen=t.outputLen,e.blockLen=t.blockLen,e.create=()=>u(),e}function sP(u=32){if(Fp&&typeof Fp.getRandomValues=="function")return Fp.getRandomValues(new Uint8Array(u));throw new Error("crypto.getRandomValues must be defined")}const[fP,lP,cP]=[[],[],[]],TJ=BigInt(0),Pf=BigInt(1),PJ=BigInt(2),OJ=BigInt(7),IJ=BigInt(256),NJ=BigInt(113);for(let u=0,e=Pf,t=1,n=0;u<24;u++){[t,n]=[n,(2*t+3*n)%5],fP.push(2*(5*n+t)),lP.push((u+1)*(u+2)/2%64);let r=TJ;for(let i=0;i<7;i++)e=(e<>OJ)*NJ)%IJ,e&PJ&&(r^=Pf<<(Pf<t>32?DJ(u,e,t):BJ(u,e,t),EB=(u,e,t)=>t>32?wJ(u,e,t):FJ(u,e,t);function jJ(u,e=24){const t=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let a=0;a<10;a++)t[a]=u[a]^u[a+10]^u[a+20]^u[a+30]^u[a+40];for(let a=0;a<10;a+=2){const o=(a+8)%10,s=(a+2)%10,f=t[s],l=t[s+1],c=cB(f,l,1)^t[o],E=EB(f,l,1)^t[o+1];for(let d=0;d<50;d+=10)u[a+d]^=c,u[a+d+1]^=E}let r=u[2],i=u[3];for(let a=0;a<24;a++){const o=lP[a],s=cB(r,i,o),f=EB(r,i,o),l=fP[a];r=u[l],i=u[l+1],u[l]=s,u[l+1]=f}for(let a=0;a<50;a+=10){for(let o=0;o<10;o++)t[o]=u[a+o];for(let o=0;o<10;o++)u[a+o]^=~t[(o+2)%10]&t[(o+4)%10]}u[0]^=RJ[n],u[1]^=MJ[n]}t.fill(0)}class Eg extends cg{constructor(e,t,n,r=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,X2(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=xJ(this.state)}keccak(){jJ(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){a3(this);const{blockLen:t,state:n}=this;e=ZE(e);const r=e.length;for(let i=0;i=n&&this.keccak();const a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return X2(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(iP(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new Eg(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}const zJ=(u,e,t)=>oP(()=>new Eg(e,u,t)),EP=zJ(1,136,256/8);function Hu(u,e){const t=e||"hex",n=EP(K0(u,{strict:!1})?Le(u):u);return t==="bytes"?n:J0(n)}const LJ=u=>Hu(Le(u)),XE=u=>LJ(rP(u));function yu(u,e,t,{strict:n}={}){return K0(u,{strict:!1})?dg(u,e,t,{strict:n}):hP(u,e,t,{strict:n})}function dP(u,e){if(typeof e=="number"&&e>0&&e>$u(u)-1)throw new J7({offset:e,position:"start",size:$u(u)})}function pP(u,e,t){if(typeof e=="number"&&typeof t=="number"&&$u(u)!==t-e)throw new J7({offset:t,position:"end",size:$u(u)})}function hP(u,e,t,{strict:n}={}){dP(u,e);const r=u.slice(e,t);return n&&pP(r,e,t),r}function dg(u,e,t,{strict:n}={}){dP(u,e);const r=`0x${u.replace("0x","").slice((e??0)*2,(t??u.length)*2)}`;return n&&pP(r,e,t),r}function ai(u,e){if(u.length!==e.length)throw new ig({expectedLength:u.length,givenLength:e.length});const t=$J({params:u,values:e}),n=hg(t);return n.length===0?"0x":n}function $J({params:u,values:e}){const t=[];for(let n=0;n0?En([o,a]):o}}if(r)return{dynamic:!0,encoded:a}}return{dynamic:!1,encoded:En(i.map(({encoded:a})=>a))}}function qJ(u,{param:e}){const[,t]=e.type.split("bytes"),n=$u(u);if(!t){let r=u;return n%32!==0&&(r=Rn(r,{dir:"right",size:Math.ceil((u.length-2)/2/32)*32})),{dynamic:!0,encoded:En([Rn(S0(n,{size:32})),r])}}if(n!==parseInt(t))throw new VT({expectedSize:parseInt(t),value:u});return{dynamic:!1,encoded:Rn(u,{dir:"right"})}}function HJ(u){return{dynamic:!1,encoded:Rn(qE(u))}}function GJ(u,{signed:e}){return{dynamic:!1,encoded:S0(u,{size:32,signed:e})}}function VJ(u){const e=$c(u),t=Math.ceil($u(e)/32),n=[];for(let r=0;rr))}}function u5(u){const e=u.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}const QJ=u=>Hu(Le(u)),W3=u=>yu(QJ(fg(u)),0,4);function ga({abi:u,args:e=[],name:t}){const n=K0(t,{strict:!1}),r=u.filter(i=>n?i.type==="function"?W3(i)===t:i.type==="event"?XE(i)===t:!1:"name"in i&&i.name===t);if(r.length!==0){if(r.length===1)return r[0];for(const i of r){if(!("inputs"in i))continue;if(!e||e.length===0){if(!i.inputs||i.inputs.length===0)return i;continue}if(!i.inputs||i.inputs.length===0||i.inputs.length!==e.length)continue;if(e.every((o,s)=>{const f="inputs"in i&&i.inputs[s];return f?Qh(o,f):!1}))return i}return r[0]}}function Qh(u,e){const t=typeof u,n=e.type;switch(n){case"address":return Qe(u);case"bool":return t==="boolean";case"function":return t==="string";case"string":return t==="string";default:return n==="tuple"&&"components"in e?Object.values(e.components).every((r,i)=>Qh(Object.values(u)[i],r)):/^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)?t==="number"||t==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?t==="string"||u instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)?Array.isArray(u)&&u.every(r=>Qh(r,{...e,type:n.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function q3({abi:u,eventName:e,args:t}){var o;let n=u[0];if(e&&(n=ga({abi:u,args:t,name:e}),!n))throw new Kh(e,{docsPath:"/docs/contract/encodeEventTopics"});if(n.type!=="event")throw new Kh(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const r=ii(n),i=XE(r);let a=[];if(t&&"inputs"in n){const s=(o=n.inputs)==null?void 0:o.filter(l=>"indexed"in l&&l.indexed),f=Array.isArray(t)?t:Object.values(t).length>0?(s==null?void 0:s.map(l=>t[l.name]))??[]:[];f.length>0&&(a=(s==null?void 0:s.map((l,c)=>Array.isArray(f[c])?f[c].map((E,d)=>dB({param:l,value:f[c][d]})):f[c]?dB({param:l,value:f[c]}):null))??[])}return[i,...a]}function dB({param:u,value:e}){if(u.type==="string"||u.type==="bytes")return Hu(Le(e));if(u.type==="tuple"||u.type.match(/^(.*)\[(\d+)?\]$/))throw new nP(u.type);return ai([u],[e])}function e5(u,{method:e}){var n,r;const t={};return u.transport.type==="fallback"&&((r=(n=u.transport).onResponse)==null||r.call(n,({method:i,response:a,status:o,transport:s})=>{o==="success"&&e===i&&(t[a]=s.request)})),i=>t[i]||u.request}async function Cg(u,{address:e,abi:t,args:n,eventName:r,fromBlock:i,strict:a,toBlock:o}){const s=e5(u,{method:"eth_newFilter"}),f=r?q3({abi:t,args:n,eventName:r}):void 0,l=await u.request({method:"eth_newFilter",params:[{address:e,fromBlock:typeof i=="bigint"?S0(i):i,toBlock:typeof o=="bigint"?S0(o):o,topics:f}]});return{abi:t,args:n,eventName:r,id:l,request:s(l),strict:a,type:"event"}}function Cn(u){return typeof u=="string"?{address:u,type:"json-rpc"}:u}function oi({abi:u,args:e,functionName:t}){let n=u[0];if(t&&(n=ga({abi:u,args:e,name:t}),!n))throw new _o(t,{docsPath:"/docs/contract/encodeFunctionData"});if(n.type!=="function")throw new _o(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const r=ii(n),i=W3(r),a="inputs"in n&&n.inputs?ai(n.inputs,e??[]):void 0;return ri([i,a??"0x"])}const CP={1:"An `assert` condition failed.",17:"Arithmic 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."},JJ={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},YJ={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function Gc(u,e){const t=e?`${e}${u.toLowerCase()}`:u.substring(2).toLowerCase(),n=Hu(Er(t),"bytes"),r=(e?t.substring(`${e}0x`.length):t).split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());return`0x${r.join("")}`}function Su(u,e){if(!Qe(u))throw new ht({address:u});return Gc(u,e)}function qo(u,e){if(e==="0x"&&u.length>0)throw new Hc;if($u(e)&&$u(e)<32)throw new YE({data:e,params:u,size:$u(e)});return ZJ({data:e,params:u})}function ZJ({data:u,params:e}){const t=[];let n=0;for(let r=0;r=$u(u))throw new YE({data:u,params:e,size:$u(u)});const i=e[r],{consumed:a,value:o}=t4({data:u,param:i,position:n});t.push(o),n+=a}return t}function t4({data:u,param:e,position:t}){const n=u5(e.type);if(n){const[i,a]=n;return uY(u,{length:i,param:{...e,type:a},position:t})}if(e.type==="tuple")return iY(u,{param:e,position:t});if(e.type==="string")return rY(u,{position:t});if(e.type.startsWith("bytes"))return tY(u,{param:e,position:t});const r=yu(u,t,t+32,{strict:!0});if(e.type.startsWith("uint")||e.type.startsWith("int"))return nY(r,{param:e});if(e.type==="address")return XJ(r);if(e.type==="bool")return eY(r);throw new XT(e.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function XJ(u){return{consumed:32,value:Gc(yu(u,-20))}}function uY(u,{param:e,length:t,position:n}){if(!t){const a=fu(yu(u,n,n+32,{strict:!0})),o=fu(yu(u,a,a+32,{strict:!0}));let s=0;const f=[];for(let l=0;l48?xu(u,{signed:t}):fu(u,{signed:t})}}function rY(u,{position:e}){const t=fu(yu(u,e,e+32,{strict:!0})),n=fu(yu(u,t,t+32,{strict:!0}));return n===0?{consumed:32,value:""}:{consumed:32,value:Uc(He(yu(u,t+32,t+32+n,{strict:!0})))}}function iY(u,{param:e,position:t}){const n=e.components.length===0||e.components.some(({name:a})=>!a),r=n?[]:{};let i=0;if(u9(e)){const a=fu(yu(u,t,t+32,{strict:!0}));for(let o=0;oi.type==="error"&&t===W3(ii(i)));if(!r)throw new ag(t,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:r,args:"inputs"in r&&r.inputs&&r.inputs.length>0?qo(r.inputs,yu(e,4)):void 0,errorName:r.name}}const fe=(u,e,t)=>JSON.stringify(u,(n,r)=>{const i=typeof r=="bigint"?r.toString():r;return typeof e=="function"?e(n,i):i},t);function mP({abiItem:u,args:e,includeFunctionName:t=!0,includeName:n=!1}){if("name"in u&&"inputs"in u&&u.inputs)return`${t?u.name:""}(${u.inputs.map((r,i)=>`${n&&r.name?`${r.name}: `:""}${typeof e[i]=="object"?fe(e[i]):e[i]}`).join(", ")})`}function t5(u,e="wei"){return Wl(u,tg[e])}function Vc(u){const e=Object.entries(u).map(([n,r])=>r===void 0||r===!1?null:[n,r]).filter(Boolean),t=e.reduce((n,[r])=>Math.max(n,r.length),0);return e.map(([n,r])=>` ${`${n}:`.padEnd(t+1)} ${r}`).join(` -`)}class gP extends f0{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class gg extends f0{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class bP extends f0{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Vc(e),"}","","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","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class AP extends f0{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}class n5 extends f0{constructor({attributes:e,serializedTransaction:t,type:n}){const r=Object.entries(e).map(([i,a])=>typeof a>"u"?i:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${n}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,r.length>0?`Missing Attributes: ${r.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=n}}class yP extends f0{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class vP extends f0{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:E}){var p;const d=Vc({chain:r&&`${r==null?void 0:r.name} (id: ${r==null?void 0:r.id})`,from:t==null?void 0:t.address,to:c,value:typeof E<"u"&&`${t5(E)} ${((p=r==null?void 0:r.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:i,gas:a,gasPrice:typeof o<"u"&&`${Ge(o)} gwei`,maxFeePerGas:typeof s<"u"&&`${Ge(s)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ge(f)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",d].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class bg extends f0{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let a="Transaction";n&&i!==void 0&&(a=`Transaction at block time "${n}" at index "${i}"`),e&&i!==void 0&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&i!==void 0&&(a=`Transaction at block number "${t}" at index "${i}"`),r&&(a=`Transaction with hash "${r}"`),super(`${a} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class Ag extends f0{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class BP extends f0{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}class yg extends f0{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:E}){var h;const d=t?Cn(t):void 0,p=Vc({from:d==null?void 0:d.address,to:c,value:typeof E<"u"&&`${t5(E)} ${((h=r==null?void 0:r.nativeCurrency)==null?void 0:h.symbol)||"ETH"}`,data:i,gas:a,gasPrice:typeof o<"u"&&`${Ge(o)} gwei`,maxFeePerGas:typeof s<"u"&&`${Ge(s)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ge(f)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",p].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class r5 extends f0{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:a,sender:o}){const s=ga({abi:t,args:n,name:a}),f=s?mP({abiItem:s,args:n,includeFunctionName:!1,includeName:!1}):void 0,l=s?ii(s,{includeName:!0}):void 0,c=Vc({address:r&&xQ(r),function:l,args:f&&f!=="()"&&`${[...Array((a==null?void 0:a.length)??0).keys()].map(()=>" ").join("")}${f}`,sender:o});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",c].filter(Boolean)}),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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=a,this.sender=o}}class e9 extends f0{constructor({abi:e,data:t,functionName:n,message:r}){let i,a,o,s;if(t&&t!=="0x")try{a=mg({abi:e,data:t});const{abiItem:l,errorName:c,args:E}=a;if(c==="Error")s=E[0];else if(c==="Panic"){const[d]=E;s=CP[d]}else{const d=l?ii(l,{includeName:!0}):void 0,p=l&&E?mP({abiItem:l,args:E,includeFunctionName:!1,includeName:!1}):void 0;o=[d?`Error: ${d}`:"",p&&p!=="()"?` ${[...Array((c==null?void 0:c.length)??0).keys()].map(()=>" ").join("")}${p}`:""]}}catch(l){i=l}else r&&(s=r);let f;i instanceof ag&&(f=i.signature,o=[`Unable to decode signature "${f}" 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://openchain.xyz/signatures?query=${f}.`]),super(s&&s!=="execution reverted"||f?[`The contract function "${n}" reverted with the following ${f?"signature":"reason"}:`,s||f].join(` -`):`The contract function "${n}" reverted.`,{cause:i,metaMessages:o}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{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=a,this.reason=s,this.signature=f}}class FP extends f0{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class i5 extends f0{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}class ea extends f0{constructor({body:e,details:t,headers:n,status:r,url:i}){super("HTTP request failed.",{details:t,metaMessages:[r&&`Status: ${r}`,`URL: ${U3(i)}`,e&&`Request body: ${fe(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=e,this.headers=n,this.status=r,this.url=i}}class DP extends f0{constructor({body:e,details:t,url:n}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${U3(n)}`,`Request body: ${fe(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class a5 extends f0{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${U3(n)}`,`Request body: ${fe(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class t9 extends f0{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${U3(t)}`,`Request body: ${fe(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}const aY=-1;class ut extends f0{constructor(e,{code:t,docsPath:n,metaMessages:r,shortMessage:i}){super(i,{cause:e,docsPath:n,metaMessages:r||(e==null?void 0:e.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof a5?e.code:t??aY}}class Ho extends ut{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class o3 extends ut{constructor(e){super(e,{code:o3.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(o3,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class s3 extends ut{constructor(e){super(e,{code:s3.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(s3,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class f3 extends ut{constructor(e){super(e,{code:f3.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(f3,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l3 extends ut{constructor(e){super(e,{code:l3.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(l3,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class So extends ut{constructor(e){super(e,{code:So.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(So,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class sa extends ut{constructor(e){super(e,{code:sa.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(sa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class c3 extends ut{constructor(e){super(e,{code:c3.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(c3,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Yr extends ut{constructor(e){super(e,{code:Yr.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(Yr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class E3 extends ut{constructor(e){super(e,{code:E3.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(E3,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class d3 extends ut{constructor(e){super(e,{code:d3.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(d3,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class p3 extends ut{constructor(e){super(e,{code:p3.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(p3,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class h3 extends ut{constructor(e){super(e,{code:h3.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(h3,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Gu extends Ho{constructor(e){super(e,{code:Gu.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(Gu,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class C3 extends Ho{constructor(e){super(e,{code:C3.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(C3,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class m3 extends Ho{constructor(e){super(e,{code:m3.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(m3,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class g3 extends Ho{constructor(e){super(e,{code:g3.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(g3,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class b3 extends Ho{constructor(e){super(e,{code:b3.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(b3,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class jn extends Ho{constructor(e){super(e,{code:jn.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(jn,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class wP extends ut{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}const oY=3;function A3(u,{abi:e,address:t,args:n,docsPath:r,functionName:i,sender:a}){const{code:o,data:s,message:f,shortMessage:l}=u instanceof i5?u:u instanceof f0?u.walk(E=>"data"in E)||u.walk():{},c=u instanceof Hc?new FP({functionName:i}):[oY,So.code].includes(o)&&(s||f||l)?new e9({abi:e,data:typeof s=="object"?s.data:s,functionName:i,message:l??f}):u;return new r5(c,{abi:e,args:n,contractAddress:t,docsPath:r,functionName:i,sender:a})}class H3 extends f0{constructor({docsPath:e}={}){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 WalletClient."].join(` -`),{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}class xP extends f0{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:E}){var p;const d=Vc({from:t==null?void 0:t.address,to:c,value:typeof E<"u"&&`${t5(E)} ${((p=r==null?void 0:r.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:i,gas:a,gasPrice:typeof o<"u"&&`${Ge(o)} gwei`,maxFeePerGas:typeof s<"u"&&`${Ge(s)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ge(f)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",d].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}function vg(u,e){const t=(u.details||"").toLowerCase(),n=u.walk(r=>r.code===La.code);return n instanceof f0?new La({cause:u,message:n.details}):La.nodeMessage.test(t)?new La({cause:u,message:u.details}):aa.nodeMessage.test(t)?new aa({cause:u,maxFeePerGas:e==null?void 0:e.maxFeePerGas}):q2.nodeMessage.test(t)?new q2({cause:u,maxFeePerGas:e==null?void 0:e.maxFeePerGas}):H2.nodeMessage.test(t)?new H2({cause:u,nonce:e==null?void 0:e.nonce}):G2.nodeMessage.test(t)?new G2({cause:u,nonce:e==null?void 0:e.nonce}):V2.nodeMessage.test(t)?new V2({cause:u,nonce:e==null?void 0:e.nonce}):K2.nodeMessage.test(t)?new K2({cause:u}):Q2.nodeMessage.test(t)?new Q2({cause:u,gas:e==null?void 0:e.gas}):J2.nodeMessage.test(t)?new J2({cause:u,gas:e==null?void 0:e.gas}):Y2.nodeMessage.test(t)?new Y2({cause:u}):i3.nodeMessage.test(t)?new i3({cause:u,maxFeePerGas:e==null?void 0:e.maxFeePerGas,maxPriorityFeePerGas:e==null?void 0:e.maxPriorityFeePerGas}):new Wc({cause:u})}function sY(u,{docsPath:e,...t}){const n=(()=>{const r=vg(u,t);return r instanceof Wc?u:r})();return new xP(n,{docsPath:e,...t})}function o5(u,{format:e}){if(!e)return{};const t={};function n(i){const a=Object.keys(i);for(const o of a)o in u&&(t[o]=u[o]),i[o]&&typeof i[o]=="object"&&!Array.isArray(i[o])&&n(i[o])}const r=e(u||{});return n(r),t}function G3(u){const{account:e,gasPrice:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:i}=u,a=e?Cn(e):void 0;if(a&&!Qe(a.address))throw new ht({address:a.address});if(i&&!Qe(i))throw new ht({address:i});if(typeof t<"u"&&(typeof n<"u"||typeof r<"u"))throw new gP;if(n&&n>2n**256n-1n)throw new aa({maxFeePerGas:n});if(r&&n&&r>n)throw new i3({maxFeePerGas:n,maxPriorityFeePerGas:r})}class kP extends f0{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class s5 extends f0{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class _P extends f0{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Ge(e)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}class Bg extends f0{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}async function fa(u,{blockHash:e,blockNumber:t,blockTag:n,includeTransactions:r}={}){var l,c,E;const i=n??"latest",a=r??!1,o=t!==void 0?S0(t):void 0;let s=null;if(e?s=await u.request({method:"eth_getBlockByHash",params:[e,a]}):s=await u.request({method:"eth_getBlockByNumber",params:[o||i,a]}),!s)throw new Bg({blockHash:e,blockNumber:t});return(((E=(c=(l=u.chain)==null?void 0:l.formatters)==null?void 0:c.block)==null?void 0:E.format)||VE)(s)}async function Fg(u){const e=await u.request({method:"eth_gasPrice"});return BigInt(e)}async function fY(u,e){return SP(u,e)}async function SP(u,e){var i,a,o;const{block:t,chain:n=u.chain,request:r}=e||{};if(typeof((i=n==null?void 0:n.fees)==null?void 0:i.defaultPriorityFee)=="function"){const s=t||await R0(u,fa,"getBlock")({});return n.fees.defaultPriorityFee({block:s,client:u,request:r})}if(typeof((a=n==null?void 0:n.fees)==null?void 0:a.defaultPriorityFee)<"u")return(o=n==null?void 0:n.fees)==null?void 0:o.defaultPriorityFee;try{const s=await u.request({method:"eth_maxPriorityFeePerGas"});return xu(s)}catch{const[s,f]=await Promise.all([t?Promise.resolve(t):R0(u,fa,"getBlock")({}),R0(u,Fg,"getGasPrice")({})]);if(typeof s.baseFeePerGas!="bigint")throw new s5;const l=f-s.baseFeePerGas;return l<0n?0n:l}}async function lY(u,e){return Jh(u,e)}async function Jh(u,e){var E,d;const{block:t,chain:n=u.chain,request:r,type:i="eip1559"}=e||{},a=await(async()=>{var p,h;return typeof((p=n==null?void 0:n.fees)==null?void 0:p.baseFeeMultiplier)=="function"?n.fees.baseFeeMultiplier({block:t,client:u,request:r}):((h=n==null?void 0:n.fees)==null?void 0:h.baseFeeMultiplier)??1.2})();if(a<1)throw new kP;const s=10**(((E=a.toString().split(".")[1])==null?void 0:E.length)??0),f=p=>p*BigInt(Math.ceil(a*s))/BigInt(s),l=t||await R0(u,fa,"getBlock")({});if(typeof((d=n==null?void 0:n.fees)==null?void 0:d.estimateFeesPerGas)=="function")return n.fees.estimateFeesPerGas({block:t,client:u,multiply:f,request:r,type:i});if(i==="eip1559"){if(typeof l.baseFeePerGas!="bigint")throw new s5;const p=r!=null&&r.maxPriorityFeePerGas?r.maxPriorityFeePerGas:await SP(u,{block:l,chain:n,request:r}),h=f(l.baseFeePerGas);return{maxFeePerGas:(r==null?void 0:r.maxFeePerGas)??h+p,maxPriorityFeePerGas:p}}return{gasPrice:(r==null?void 0:r.gasPrice)??f(await R0(u,Fg,"getGasPrice")({}))}}async function TP(u,{address:e,blockTag:t="latest",blockNumber:n}){const r=await u.request({method:"eth_getTransactionCount",params:[e,n?S0(n):t]});return fu(r)}function Dg(u){if(u.type)return u.type;if(typeof u.maxFeePerGas<"u"||typeof u.maxPriorityFeePerGas<"u")return"eip1559";if(typeof u.gasPrice<"u")return typeof u.accessList<"u"?"eip2930":"legacy";throw new bP({transaction:u})}async function f5(u,e){const{account:t=u.account,chain:n,gas:r,nonce:i,type:a}=e;if(!t)throw new H3;const o=Cn(t),s=await R0(u,fa,"getBlock")({blockTag:"latest"}),f={...e,from:o.address};if(typeof i>"u"&&(f.nonce=await R0(u,TP,"getTransactionCount")({address:o.address,blockTag:"pending"})),typeof a>"u")try{f.type=Dg(f)}catch{f.type=typeof s.baseFeePerGas=="bigint"?"eip1559":"legacy"}if(f.type==="eip1559"){const{maxFeePerGas:l,maxPriorityFeePerGas:c}=await Jh(u,{block:s,chain:n,request:f});if(typeof e.maxPriorityFeePerGas>"u"&&e.maxFeePerGas&&e.maxFeePerGas"u"&&(f.gas=await R0(u,wg,"estimateGas")({...f,account:{address:o.address,type:"json-rpc"}})),G3(f),f}async function wg(u,e){var r,i,a;const t=e.account??u.account;if(!t)throw new H3({docsPath:"/docs/actions/public/estimateGas"});const n=Cn(t);try{const{accessList:o,blockNumber:s,blockTag:f,data:l,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,to:b,value:g,...m}=n.type==="local"?await f5(u,e):e,y=(s?S0(s):void 0)||f;G3(e);const B=(a=(i=(r=u.chain)==null?void 0:r.formatters)==null?void 0:i.transactionRequest)==null?void 0:a.format,C=(B||Uo)({...o5(m,{format:B}),from:n.address,accessList:o,data:l,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,to:b,value:g}),D=await u.request({method:"eth_estimateGas",params:y?[C,y]:[C]});return BigInt(D)}catch(o){throw sY(o,{...e,account:n,chain:u.chain})}}async function PP(u,{abi:e,address:t,args:n,functionName:r,...i}){const a=oi({abi:e,args:n,functionName:r});try{return await R0(u,wg,"estimateGas")({data:a,to:t,...i})}catch(o){const s=i.account?Cn(i.account):void 0;throw A3(o,{abi:e,address:t,args:n,docsPath:"/docs/contract/estimateContractGas",functionName:r,sender:s==null?void 0:s.address})}}const pB="/docs/contract/decodeEventLog";function V3({abi:u,data:e,strict:t,topics:n}){const r=t??!0,[i,...a]=n;if(!i)throw new QT({docsPath:pB});const o=u.find(p=>p.type==="event"&&i===XE(ii(p)));if(!(o&&"name"in o)||o.type!=="event")throw new JT(i,{docsPath:pB});const{name:s,inputs:f}=o,l=f==null?void 0:f.some(p=>!("name"in p&&p.name));let c=l?[]:{};const E=f.filter(p=>"indexed"in p&&p.indexed);for(let p=0;p!("indexed"in p&&p.indexed));if(d.length>0){if(e&&e!=="0x")try{const p=qo(d,e);if(p)if(l)c=[...c,...p];else for(let h=0;h0?c:void 0}}function cY({param:u,value:e}){return u.type==="string"||u.type==="bytes"||u.type==="tuple"||u.type.match(/^(.*)\[(\d+)?\]$/)?e:(qo([u],e)||[])[0]}async function xg(u,{address:e,blockHash:t,fromBlock:n,toBlock:r,event:i,events:a,args:o,strict:s}={}){const f=s??!1,l=a??(i?[i]:void 0);let c=[];l&&(c=[l.flatMap(d=>q3({abi:[d],eventName:d.name,args:o}))],i&&(c=c[0]));let E;return t?E=await u.request({method:"eth_getLogs",params:[{address:e,topics:c,blockHash:t}]}):E=await u.request({method:"eth_getLogs",params:[{address:e,topics:c,fromBlock:typeof n=="bigint"?S0(n):n,toBlock:typeof r=="bigint"?S0(r):r}]}),E.map(d=>{var p;try{const{eventName:h,args:b}=l?V3({abi:l,data:d.data,topics:d.topics,strict:f}):{eventName:void 0,args:void 0};return cn(d,{args:b,eventName:h})}catch(h){let b,g;if(h instanceof oa||h instanceof Wo){if(f)return;b=h.abiItem.name,g=(p=h.abiItem.inputs)==null?void 0:p.some(m=>!("name"in m&&m.name))}return cn(d,{args:g?[]:{},eventName:b})}}).filter(Boolean)}async function kg(u,{abi:e,address:t,args:n,blockHash:r,eventName:i,fromBlock:a,toBlock:o,strict:s}){const f=i?ga({abi:e,name:i}):void 0,l=f?void 0:e.filter(c=>c.type==="event");return R0(u,xg,"getLogs")({address:t,args:n,blockHash:r,event:f,events:l,fromBlock:a,toBlock:o,strict:s})}const wp="/docs/contract/decodeFunctionResult";function Go({abi:u,args:e,functionName:t,data:n}){let r=u[0];if(t&&(r=ga({abi:u,args:e,name:t}),!r))throw new _o(t,{docsPath:wp});if(r.type!=="function")throw new _o(void 0,{docsPath:wp});if(!r.outputs)throw new og(r.name,{docsPath:wp});const i=qo(r.outputs,n);if(i&&i.length>1)return i;if(i&&i.length===1)return i[0]}const n9=[{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"}],OP=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],IP=[...OP,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],EY=[...OP,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],hB=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],CB=[{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"}]}],dY=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],pY="0x82ad56cb";function Vo({blockNumber:u,chain:e,contract:t}){var r;const n=(r=e==null?void 0:e.contracts)==null?void 0:r[t];if(!n)throw new W2({chain:e,contract:{name:t}});if(u&&n.blockCreated&&n.blockCreated>u)throw new W2({blockNumber:u,chain:e,contract:{name:t,blockCreated:n.blockCreated}});return n.address}function hY(u,{docsPath:e,...t}){const n=(()=>{const r=vg(u,t);return r instanceof Wc?u:r})();return new yg(n,{docsPath:e,...t})}const xp=new Map;function _g({fn:u,id:e,shouldSplitBatch:t,wait:n=0,sort:r}){const i=async()=>{const l=s();a();const c=l.map(({args:E})=>E);c.length!==0&&u(c).then(E=>{var d;r&&Array.isArray(E)&&E.sort(r);for(let p=0;p{var d;for(let p=0;pxp.delete(e),o=()=>s().map(({args:l})=>l),s=()=>xp.get(e)||[],f=l=>xp.set(e,[...s(),l]);return{flush:a,async schedule(l){const c={},E=new Promise((h,b)=>{c.resolve=h,c.reject=b});return(t==null?void 0:t([...o(),l]))&&i(),s().length>0?(f({args:l,pendingPromise:c}),E):(f({args:l,pendingPromise:c}),setTimeout(i,n),E)}}}async function Kc(u,e){var g,m,A,y;const{account:t=u.account,batch:n=!!((g=u.batch)!=null&&g.multicall),blockNumber:r,blockTag:i="latest",accessList:a,data:o,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:E,to:d,value:p,...h}=e,b=t?Cn(t):void 0;try{G3(e);const v=(r?S0(r):void 0)||i,C=(y=(A=(m=u.chain)==null?void 0:m.formatters)==null?void 0:A.transactionRequest)==null?void 0:y.format,T=(C||Uo)({...o5(h,{format:C}),from:b==null?void 0:b.address,accessList:a,data:o,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:E,to:d,value:p});if(n&&CY({request:T}))try{return await mY(u,{...T,blockNumber:r,blockTag:i})}catch($){if(!($ instanceof eg)&&!($ instanceof W2))throw $}const _=await u.request({method:"eth_call",params:v?[T,v]:[T]});return _==="0x"?{data:void 0}:{data:_}}catch(B){const v=gY(B),{offchainLookup:C,offchainLookupSignature:D}=await L0(()=>Promise.resolve().then(()=>sZ),void 0);if((v==null?void 0:v.slice(0,10))===D&&d)return{data:await C(u,{data:v,to:d})};throw hY(B,{...e,account:b,chain:u.chain})}}function CY({request:u}){const{data:e,to:t,...n}=u;return!(!e||e.startsWith(pY)||!t||Object.values(n).filter(r=>typeof r<"u").length>0)}async function mY(u,e){var h;const{batchSize:t=1024,wait:n=0}=typeof((h=u.batch)==null?void 0:h.multicall)=="object"?u.batch.multicall:{},{blockNumber:r,blockTag:i="latest",data:a,multicallAddress:o,to:s}=e;let f=o;if(!f){if(!u.chain)throw new eg;f=Vo({blockNumber:r,chain:u.chain,contract:"multicall3"})}const c=(r?S0(r):void 0)||i,{schedule:E}=_g({id:`${u.uid}.${c}`,wait:n,shouldSplitBatch(b){return b.reduce((m,{data:A})=>m+(A.length-2),0)>t*2},fn:async b=>{const g=b.map(y=>({allowFailure:!0,callData:y.data,target:y.to})),m=oi({abi:n9,args:[g],functionName:"aggregate3"}),A=await u.request({method:"eth_call",params:[{data:m,to:f},c]});return Go({abi:n9,args:[g],functionName:"aggregate3",data:A||"0x"})}}),[{returnData:d,success:p}]=await E({data:a,to:s});if(!p)throw new i5({data:d});return d==="0x"?{data:void 0}:{data:d}}function gY(u){if(!(u instanceof f0))return;const e=u.walk();return typeof e.data=="object"?e.data.data:e.data}async function Zr(u,{abi:e,address:t,args:n,functionName:r,...i}){const a=oi({abi:e,args:n,functionName:r});try{const{data:o}=await R0(u,Kc,"call")({data:a,to:t,...i});return Go({abi:e,args:n,functionName:r,data:o||"0x"})}catch(o){throw A3(o,{abi:e,address:t,args:n,docsPath:"/docs/contract/readContract",functionName:r})}}async function NP(u,{abi:e,address:t,args:n,dataSuffix:r,functionName:i,...a}){const o=a.account?Cn(a.account):void 0,s=oi({abi:e,args:n,functionName:i});try{const{data:f}=await R0(u,Kc,"call")({batch:!1,data:`${s}${r?r.replace("0x",""):""}`,to:t,...a});return{result:Go({abi:e,args:n,functionName:i,data:f||"0x"}),request:{abi:e,address:t,args:n,dataSuffix:r,functionName:i,...a}}}catch(f){throw A3(f,{abi:e,address:t,args:n,docsPath:"/docs/contract/simulateContract",functionName:i,sender:o==null?void 0:o.address})}}const kp=new Map,mB=new Map;let bY=0;function K3(u,e,t){const n=++bY,r=()=>kp.get(u)||[],i=()=>{const l=r();kp.set(u,l.filter(c=>c.id!==n))},a=()=>{const l=mB.get(u);r().length===1&&l&&l(),i()},o=r();if(kp.set(u,[...o,{id:n,fns:e}]),o&&o.length>0)return a;const s={};for(const l in e)s[l]=(...c)=>{var d,p;const E=r();if(E.length!==0)for(const h of E)(p=(d=h.fns)[l])==null||p.call(d,...c)};const f=t(s);return typeof f=="function"&&mB.set(u,f),a}async function r9(u){return new Promise(e=>setTimeout(e,u))}function Qc(u,{emitOnBegin:e,initialWaitTime:t,interval:n}){let r=!0;const i=()=>r=!1;return(async()=>{let o;e&&(o=await u({unpoll:i}));const s=await(t==null?void 0:t(o))??n;await r9(s);const f=async()=>{r&&(await u({unpoll:i}),await r9(n),f())};f()})(),i}const AY=new Map,yY=new Map;function vY(u){const e=(r,i)=>({clear:()=>i.delete(r),get:()=>i.get(r),set:a=>i.set(r,a)}),t=e(u,AY),n=e(u,yY);return{clear:()=>{t.clear(),n.clear()},promise:t,response:n}}async function BY(u,{cacheKey:e,cacheTime:t=1/0}){const n=vY(e),r=n.response.get();if(r&&t>0&&new Date().getTime()-r.created.getTime()`blockNumber.${u}`;async function Jc(u,{cacheTime:e=u.cacheTime,maxAge:t}={}){const n=await BY(()=>u.request({method:"eth_blockNumber"}),{cacheKey:FY(u.uid),cacheTime:t??e});return BigInt(n)}async function l5(u,{filter:e}){const t="strict"in e&&e.strict;return(await e.request({method:"eth_getFilterChanges",params:[e.id]})).map(r=>{var i;if(typeof r=="string")return r;try{const{eventName:a,args:o}="abi"in e&&e.abi?V3({abi:e.abi,data:r.data,topics:r.topics,strict:t}):{eventName:void 0,args:void 0};return cn(r,{args:o,eventName:a})}catch(a){let o,s;if(a instanceof oa||a instanceof Wo){if("strict"in e&&e.strict)return;o=a.abiItem.name,s=(i=a.abiItem.inputs)==null?void 0:i.some(f=>!("name"in f&&f.name))}return cn(r,{args:s?[]:{},eventName:o})}}).filter(Boolean)}async function c5(u,{filter:e}){return e.request({method:"eth_uninstallFilter",params:[e.id]})}function RP(u,{abi:e,address:t,args:n,batch:r=!0,eventName:i,onError:a,onLogs:o,poll:s,pollingInterval:f=u.pollingInterval,strict:l}){return(typeof s<"u"?s:u.transport.type!=="webSocket")?(()=>{const p=fe(["watchContractEvent",t,n,r,u.uid,i,f]),h=l??!1;return K3(p,{onLogs:o,onError:a},b=>{let g,m,A=!1;const y=Qc(async()=>{var B;if(!A){try{m=await R0(u,Cg,"createContractEventFilter")({abi:e,address:t,args:n,eventName:i,strict:h})}catch{}A=!0;return}try{let v;if(m)v=await R0(u,l5,"getFilterChanges")({filter:m});else{const C=await R0(u,Jc,"getBlockNumber")({});g&&g!==C?v=await R0(u,kg,"getContractEvents")({abi:e,address:t,args:n,eventName:i,fromBlock:g+1n,toBlock:C,strict:h}):v=[],g=C}if(v.length===0)return;if(r)b.onLogs(v);else for(const C of v)b.onLogs([C])}catch(v){m&&v instanceof sa&&(A=!1),(B=b.onError)==null||B.call(b,v)}},{emitOnBegin:!0,interval:f});return async()=>{m&&await R0(u,c5,"uninstallFilter")({filter:m}),y()}})})():(()=>{let p=!0,h=()=>p=!1;return(async()=>{try{const b=i?q3({abi:e,eventName:i,args:n}):[],{unsubscribe:g}=await u.transport.subscribe({params:["logs",{address:t,topics:b}],onData(m){var y;if(!p)return;const A=m.result;try{const{eventName:B,args:v}=V3({abi:e,data:A.data,topics:A.topics,strict:l}),C=cn(A,{args:v,eventName:B});o([C])}catch(B){let v,C;if(B instanceof oa||B instanceof Wo){if(l)return;v=B.abiItem.name,C=(y=B.abiItem.inputs)==null?void 0:y.some(T=>!("name"in T&&T.name))}const D=cn(A,{args:C?[]:{},eventName:v});o([D])}},onError(m){a==null||a(m)}});h=g,p||h()}catch(b){a==null||a(b)}})(),h})()}function Sg({chain:u,currentChainId:e}){if(!u)throw new AT;if(e!==u.id)throw new bT({chain:u,currentChainId:e})}function DY(u,{docsPath:e,...t}){const n=(()=>{const r=vg(u,t);return r instanceof Wc?u:r})();return new vP(n,{docsPath:e,...t})}async function Hl(u){const e=await u.request({method:"eth_chainId"});return fu(e)}async function Tg(u,{serializedTransaction:e}){return u.request({method:"eth_sendRawTransaction",params:[e]})}async function Pg(u,e){var h,b,g,m;const{account:t=u.account,chain:n=u.chain,accessList:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:E,...d}=e;if(!t)throw new H3({docsPath:"/docs/actions/wallet/sendTransaction"});const p=Cn(t);try{G3(e);let A;if(n!==null&&(A=await R0(u,Hl,"getChainId")({}),Sg({currentChainId:A,chain:n})),p.type==="local"){const C=await R0(u,f5,"prepareTransactionRequest")({account:p,accessList:r,chain:n,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:E,...d});A||(A=await R0(u,Hl,"getChainId")({}));const D=(h=n==null?void 0:n.serializers)==null?void 0:h.transaction,T=await p.signTransaction({...C,chainId:A},{serializer:D});return await R0(u,Tg,"sendRawTransaction")({serializedTransaction:T})}const y=(m=(g=(b=u.chain)==null?void 0:b.formatters)==null?void 0:g.transactionRequest)==null?void 0:m.format,v=(y||Uo)({...o5(d,{format:y}),accessList:r,data:i,from:p.address,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:E});return await u.request({method:"eth_sendTransaction",params:[v]})}catch(A){throw DY(A,{...e,account:p,chain:e.chain||void 0})}}async function MP(u,{abi:e,address:t,args:n,dataSuffix:r,functionName:i,...a}){const o=oi({abi:e,args:n,functionName:i});return await R0(u,Pg,"sendTransaction")({data:`${o}${r?r.replace("0x",""):""}`,to:t,...a})}function wY({abi:u,address:e,publicClient:t,walletClient:n}){const r=t!=null,i=n!=null,a={};let o=!1,s=!1,f=!1;for(const l of u)if(l.type==="function"?l.stateMutability==="view"||l.stateMutability==="pure"?o=!0:s=!0:l.type==="event"&&(f=!0),o&&s&&f)break;return r&&(o&&(a.read=new Proxy({},{get(l,c){return(...E)=>{const{args:d,options:p}=e6(E);return R0(t,Zr,"readContract")({abi:u,address:e,functionName:c,args:d,...p})}}})),s&&(a.simulate=new Proxy({},{get(l,c){return(...E)=>{const{args:d,options:p}=e6(E);return R0(t,NP,"simulateContract")({abi:u,address:e,functionName:c,args:d,...p})}}})),f&&(a.createEventFilter=new Proxy({},{get(l,c){return(...E)=>{const d=u.find(b=>b.type==="event"&&b.name===c),{args:p,options:h}=_p(E,d);return R0(t,Cg,"createContractEventFilter")({abi:u,address:e,eventName:c,args:p,...h})}}}),a.getEvents=new Proxy({},{get(l,c){return(...E)=>{const d=u.find(b=>b.type==="event"&&b.name===c),{args:p,options:h}=_p(E,d);return R0(t,kg,"getContractEvents")({abi:u,address:e,eventName:c,args:p,...h})}}}),a.watchEvent=new Proxy({},{get(l,c){return(...E)=>{const d=u.find(b=>b.type==="event"&&b.name===c),{args:p,options:h}=_p(E,d);return R0(t,RP,"watchContractEvent")({abi:u,address:e,eventName:c,args:p,...h})}}}))),i&&s&&(a.write=new Proxy({},{get(l,c){return(...E)=>{const{args:d,options:p}=e6(E);return R0(n,MP,"writeContract")({abi:u,address:e,functionName:c,args:d,...p})}}})),(r||i)&&s&&(a.estimateGas=new Proxy({},{get(l,c){return(...E)=>{const{args:d,options:p}=e6(E);return R0(t??n,PP,"estimateContractGas")({abi:u,address:e,functionName:c,args:d,...p,account:p.account??n.account})}}})),a.address=e,a.abi=u,a}function e6(u){const e=u.length&&Array.isArray(u[0]),t=e?u[0]:[],n=(e?u[1]:u[0])??{};return{args:t,options:n}}function _p(u,e){let t=!1;Array.isArray(u[0])?t=!0:u.length===1?t=e.inputs.some(i=>i.indexed):u.length===2&&(t=!0);const n=t?u[0]:void 0,r=(t?u[1]:u[0])??{};return{args:n,options:r}}async function xY(u,{chain:e}){const{id:t,name:n,nativeCurrency:r,rpcUrls:i,blockExplorers:a}=e;await u.request({method:"wallet_addEthereumChain",params:[{chainId:S0(t),chainName:n,nativeCurrency:r,rpcUrls:i.default.http,blockExplorerUrls:a?Object.values(a).map(({url:o})=>o):void 0}]})}function kY(u){const e=Hu(`0x${u.substring(4)}`).substring(26);return Gc(`0x${e}`)}const Yh=256;let t6=Yh,n6;function _Y(u=11){if(!n6||t6+u>Yh*2){n6="",t6=0;for(let e=0;e{const g=b(h);for(const A in d)delete g[A];const m={...h,...g};return Object.assign(m,{extend:p(m)})}}return Object.assign(d,{extend:p(d)})}function Zh(u,{delay:e=100,retryCount:t=2,shouldRetry:n=()=>!0}={}){return new Promise((r,i)=>{const a=async({count:o=0}={})=>{const s=async({error:f})=>{const l=typeof e=="function"?e({count:o,error:f}):e;l&&await r9(l),a({count:o+1})};try{const f=await u();r(f)}catch(f){if(o"code"in u?u.code!==-1&&u.code!==-32004&&u.code!==-32005&&u.code!==-32042&&u.code!==-32603:u instanceof ea&&u.status?u.status!==403&&u.status!==408&&u.status!==413&&u.status!==429&&u.status!==500&&u.status!==502&&u.status!==503&&u.status!==504:!1;function SY(u,{retryDelay:e=150,retryCount:t=3}={}){return async n=>Zh(async()=>{try{return await u(n)}catch(r){const i=r;switch(i.code){case o3.code:throw new o3(i);case s3.code:throw new s3(i);case f3.code:throw new f3(i);case l3.code:throw new l3(i);case So.code:throw new So(i);case sa.code:throw new sa(i);case c3.code:throw new c3(i);case Yr.code:throw new Yr(i);case E3.code:throw new E3(i);case d3.code:throw new d3(i);case p3.code:throw new p3(i);case h3.code:throw new h3(i);case Gu.code:throw new Gu(i);case C3.code:throw new C3(i);case m3.code:throw new m3(i);case g3.code:throw new g3(i);case b3.code:throw new b3(i);case jn.code:throw new jn(i);case 5e3:throw new Gu(i);default:throw r instanceof f0?r:new wP(i)}}},{delay:({count:r,error:i})=>{var a;if(i&&i instanceof ea){const o=(a=i==null?void 0:i.headers)==null?void 0:a.get("Retry-After");if(o!=null&&o.match(/\d/))return parseInt(o)*1e3}return~~(1<!jP(r)})}function Yc({key:u,name:e,request:t,retryCount:n=3,retryDelay:r=150,timeout:i,type:a},o){return{config:{key:u,name:e,request:t,retryCount:n,retryDelay:r,timeout:i,type:a},request:SY(t,{retryCount:n,retryDelay:r}),value:o}}function Q3(u,e={}){const{key:t="custom",name:n="Custom Provider",retryDelay:r}=e;return({retryCount:i})=>Yc({key:t,name:n,request:u.request.bind(u),retryCount:e.retryCount??i,retryDelay:r,type:"custom"})}function Xh(u,e={}){const{key:t="fallback",name:n="Fallback",rank:r=!1,retryCount:i,retryDelay:a}=e;return({chain:o,pollingInterval:s=4e3,timeout:f})=>{let l=u,c=()=>{};const E=Yc({key:t,name:n,async request({method:d,params:p}){const h=async(b=0)=>{const g=l[b]({chain:o,retryCount:0,timeout:f});try{const m=await g.request({method:d,params:p});return c({method:d,params:p,response:m,transport:g,status:"success"}),m}catch(m){if(c({error:m,method:d,params:p,transport:g,status:"error"}),jP(m)||b===l.length-1)throw m;return h(b+1)}};return h()},retryCount:i,retryDelay:a,type:"fallback"},{onResponse:d=>c=d,transports:l.map(d=>d({chain:o,retryCount:0}))});if(r){const d=typeof r=="object"?r:{};TY({chain:o,interval:d.interval??s,onTransports:p=>l=p,sampleCount:d.sampleCount,timeout:d.timeout,transports:l,weights:d.weights})}return E}}function TY({chain:u,interval:e=4e3,onTransports:t,sampleCount:n=10,timeout:r=1e3,transports:i,weights:a={}}){const{stability:o=.7,latency:s=.3}=a,f=[],l=async()=>{const c=await Promise.all(i.map(async p=>{const h=p({chain:u,retryCount:0,timeout:r}),b=Date.now();let g,m;try{await h.request({method:"net_listening"}),m=1}catch{m=0}finally{g=Date.now()}return{latency:g-b,success:m}}));f.push(c),f.length>n&&f.shift();const E=Math.max(...f.map(p=>Math.max(...p.map(({latency:h})=>h)))),d=i.map((p,h)=>{const b=f.map(B=>B[h].latency),m=1-b.reduce((B,v)=>B+v,0)/b.length/E,A=f.map(B=>B[h].success),y=A.reduce((B,v)=>B+v,0)/A.length;return y===0?[0,h]:[s*m+o*y,h]}).sort((p,h)=>h[0]-p[0]);t(d.map(([,p])=>i[p])),await r9(e),l()};l()}class Og extends f0{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}function PY(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const gB=PY();function zP(u,{errorInstance:e=new Error("timed out"),timeout:t,signal:n}){return new Promise((r,i)=>{(async()=>{let a;try{const o=new AbortController;t>0&&(a=setTimeout(()=>{n?o.abort():i(e)},t)),r(await u({signal:o==null?void 0:o.signal}))}catch(o){o.name==="AbortError"&&i(e),i(o)}finally{clearTimeout(a)}})()})}let uC=0;async function OY(u,{body:e,fetchOptions:t={},timeout:n=1e4}){var o;const{headers:r,method:i,signal:a}=t;try{const s=await zP(async({signal:l})=>await fetch(u,{...t,body:Array.isArray(e)?fe(e.map(E=>({jsonrpc:"2.0",id:E.id??uC++,...E}))):fe({jsonrpc:"2.0",id:e.id??uC++,...e}),headers:{...r,"Content-Type":"application/json"},method:i||"POST",signal:a||(n>0?l:void 0)}),{errorInstance:new t9({body:e,url:u}),timeout:n,signal:!0});let f;if((o=s.headers.get("Content-Type"))!=null&&o.startsWith("application/json")?f=await s.json():f=await s.text(),!s.ok)throw new ea({body:e,details:fe(f.error)||s.statusText,headers:s.headers,status:s.status,url:u});return f}catch(s){throw s instanceof ea||s instanceof t9?s:new ea({body:e,details:s.message,url:u})}}const Sp=new Map;async function Tp(u){let e=Sp.get(u);if(e)return e;const{schedule:t}=_g({id:u,fn:async()=>{const i=new gB(u),a=new Map,o=new Map,s=({data:l})=>{const c=JSON.parse(l),E=c.method==="eth_subscription",d=E?c.params.subscription:c.id,p=E?o:a,h=p.get(d);h&&h({data:l}),E||p.delete(d)},f=()=>{Sp.delete(u),i.removeEventListener("close",f),i.removeEventListener("message",s)};return i.addEventListener("close",f),i.addEventListener("message",s),i.readyState===gB.CONNECTING&&await new Promise((l,c)=>{i&&(i.onopen=l,i.onerror=c)}),e=Object.assign(i,{requests:a,subscriptions:o}),Sp.set(u,e),[e]}}),[n,[r]]=await t();return r}function IY(u,{body:e,onResponse:t}){if(u.readyState===u.CLOSED||u.readyState===u.CLOSING)throw new DP({body:e,url:u.url,details:"Socket is closed."});const n=uC++,r=({data:i})=>{var o;const a=JSON.parse(i);typeof a.id=="number"&&n!==a.id||(t==null||t(a),e.method==="eth_subscribe"&&typeof a.result=="string"&&u.subscriptions.set(a.result,r),e.method==="eth_unsubscribe"&&u.subscriptions.delete((o=e.params)==null?void 0:o[0]))};return u.requests.set(n,r),u.send(JSON.stringify({jsonrpc:"2.0",...e,id:n})),u}async function NY(u,{body:e,timeout:t=1e4}){return zP(()=>new Promise(n=>n4.webSocket(u,{body:e,onResponse:n})),{errorInstance:new t9({body:e,url:u.url}),timeout:t})}const n4={http:OY,webSocket:IY,webSocketAsync:NY};function LP(u,e={}){const{batch:t,fetchOptions:n,key:r="http",name:i="HTTP JSON-RPC",retryDelay:a}=e;return({chain:o,retryCount:s,timeout:f})=>{const{batchSize:l=1e3,wait:c=0}=typeof t=="object"?t:{},E=e.retryCount??s,d=f??e.timeout??1e4,p=u||(o==null?void 0:o.rpcUrls.default.http[0]);if(!p)throw new Og;return Yc({key:r,name:i,async request({method:h,params:b}){const g={method:h,params:b},{schedule:m}=_g({id:`${u}`,wait:c,shouldSplitBatch(v){return v.length>l},fn:v=>n4.http(p,{body:v,fetchOptions:n,timeout:d}),sort:(v,C)=>v.id-C.id}),A=async v=>t?m(v):[await n4.http(p,{body:v,fetchOptions:n,timeout:d})],[{error:y,result:B}]=await A(g);if(y)throw new a5({body:g,error:y,url:p});return B},retryCount:E,retryDelay:a,timeout:d,type:"http"},{fetchOptions:n,url:u})}}function Ig(u,e){var n,r,i;if(!(u instanceof f0))return!1;const t=u.walk(a=>a instanceof e9);return t instanceof e9?!!(((n=t.data)==null?void 0:n.errorName)==="ResolverNotFound"||((r=t.data)==null?void 0:r.errorName)==="ResolverWildcardNotSupported"||(i=t.reason)!=null&&i.includes("Wildcard on non-extended resolvers is not supported")||e==="reverse"&&t.reason===CP[50]):!1}function $P(u){if(u.length!==66||u.indexOf("[")!==0||u.indexOf("]")!==65)return null;const e=`0x${u.slice(1,65)}`;return K0(e)?e:null}function dl(u){let e=new Uint8Array(32).fill(0);if(!u)return pt(e);const t=u.split(".");for(let n=t.length-1;n>=0;n-=1){const r=$P(t[n]),i=r?Le(r):Hu(Er(t[n]),"bytes");e=Hu(En([e,i]),"bytes")}return pt(e)}function RY(u){return`[${u.slice(2)}]`}function UP(u){const e=new Uint8Array(32).fill(0);return u?$P(u)||Hu(Er(u)):pt(e)}function d5(u){const e=u.replace(/^\.|\.$/gm,"");if(e.length===0)return new Uint8Array(1);const t=new Uint8Array(Er(e).byteLength+2);let n=0;const r=e.split(".");for(let i=0;i255&&(a=Er(RY(UP(r[i])))),t[n]=a.length,t.set(a,n+1),n+=a.length+1}return t.byteLength!==n+1?t.slice(0,n+1):t}async function MY(u,{blockNumber:e,blockTag:t,coinType:n,name:r,universalResolverAddress:i}){let a=i;if(!a){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=Vo({blockNumber:e,chain:u.chain,contract:"ensUniversalResolver"})}try{const o=oi({abi:CB,functionName:"addr",...n!=null?{args:[dl(r),BigInt(n)]}:{args:[dl(r)]}}),s=await R0(u,Zr,"readContract")({address:a,abi:IP,functionName:"resolve",args:[J0(d5(r)),o],blockNumber:e,blockTag:t});if(s[0]==="0x")return null;const f=Go({abi:CB,args:n!=null?[dl(r),BigInt(n)]:void 0,functionName:"addr",data:s[0]});return f==="0x"||He(f)==="0x00"?null:f}catch(o){if(Ig(o,"resolve"))return null;throw o}}class jY extends f0{constructor({data:e}){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(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class gs extends f0{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class p5 extends f0{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class WP extends f0{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const zY=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,LY=/^(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,})(\/(?[\w\-.]+))?(?\/.*)?$/,$Y=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,UY=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function WY(u){try{const e=await fetch(u,{method:"HEAD"});if(e.status===200){const t=e.headers.get("content-type");return t==null?void 0:t.startsWith("image/")}return!1}catch(e){return typeof e=="object"&&typeof e.response<"u"||!globalThis.hasOwnProperty("Image")?!1:new Promise(t=>{const n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=u})}}function bB(u,e){return u?u.endsWith("/")?u.slice(0,-1):u:e}function qP({uri:u,gatewayUrls:e}){const t=$Y.test(u);if(t)return{uri:u,isOnChain:!0,isEncoded:t};const n=bB(e==null?void 0:e.ipfs,"https://ipfs.io"),r=bB(e==null?void 0:e.arweave,"https://arweave.net"),i=u.match(zY),{protocol:a,subpath:o,target:s,subtarget:f=""}=(i==null?void 0:i.groups)||{},l=a==="ipns:/"||o==="ipns/",c=a==="ipfs:/"||o==="ipfs/"||LY.test(u);if(u.startsWith("http")&&!l&&!c){let d=u;return e!=null&&e.arweave&&(d=u.replace(/https:\/\/arweave.net/g,e==null?void 0:e.arweave)),{uri:d,isOnChain:!1,isEncoded:!1}}if((l||c)&&s)return{uri:`${n}/${l?"ipns":"ipfs"}/${s}${f}`,isOnChain:!1,isEncoded:!1};if(a==="ar:/"&&s)return{uri:`${r}/${s}${f||""}`,isOnChain:!1,isEncoded:!1};let E=u.replace(UY,"");if(E.startsWith("r.json());return await Ng({gatewayUrls:u,uri:HP(t)})}catch{throw new p5({uri:e})}}async function Ng({gatewayUrls:u,uri:e}){const{uri:t,isOnChain:n}=qP({uri:e,gatewayUrls:u});if(n||await WY(t))return t;throw new p5({uri:e})}function HY(u){let e=u;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[t,n,r]=e.split("/"),[i,a]=t.split(":"),[o,s]=n.split(":");if(!i||i.toLowerCase()!=="eip155")throw new gs({reason:"Only EIP-155 supported"});if(!a)throw new gs({reason:"Chain ID not found"});if(!s)throw new gs({reason:"Contract address not found"});if(!r)throw new gs({reason:"Token ID not found"});if(!o)throw new gs({reason:"ERC namespace not found"});return{chainID:parseInt(a),namespace:o.toLowerCase(),contractAddress:s,tokenID:r}}async function GY(u,{nft:e}){if(e.namespace==="erc721")return Zr(u,{address:e.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(e.tokenID)]});if(e.namespace==="erc1155")return Zr(u,{address:e.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(e.tokenID)]});throw new WP({namespace:e.namespace})}async function VY(u,{gatewayUrls:e,record:t}){return/eip155:/i.test(t)?KY(u,{gatewayUrls:e,record:t}):Ng({uri:t,gatewayUrls:e})}async function KY(u,{gatewayUrls:e,record:t}){const n=HY(t),r=await GY(u,{nft:n}),{uri:i,isOnChain:a,isEncoded:o}=qP({uri:r,gatewayUrls:e});if(a&&(i.includes("data:application/json;base64,")||i.startsWith("{"))){const f=o?atob(i.replace("data:application/json;base64,","")):i,l=JSON.parse(f);return Ng({uri:HP(l),gatewayUrls:e})}let s=n.tokenID;return n.namespace==="erc1155"&&(s=s.replace("0x","").padStart(64,"0")),qY({gatewayUrls:e,uri:i.replace(/(?:0x)?{id}/,s)})}async function GP(u,{blockNumber:e,blockTag:t,name:n,key:r,universalResolverAddress:i}){let a=i;if(!a){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=Vo({blockNumber:e,chain:u.chain,contract:"ensUniversalResolver"})}try{const o=await R0(u,Zr,"readContract")({address:a,abi:IP,functionName:"resolve",args:[J0(d5(n)),oi({abi:hB,functionName:"text",args:[dl(n),r]})],blockNumber:e,blockTag:t});if(o[0]==="0x")return null;const s=Go({abi:hB,functionName:"text",data:o[0]});return s===""?null:s}catch(o){if(Ig(o,"resolve"))return null;throw o}}async function QY(u,{blockNumber:e,blockTag:t,gatewayUrls:n,name:r,universalResolverAddress:i}){const a=await R0(u,GP,"getEnsText")({blockNumber:e,blockTag:t,key:"avatar",name:r,universalResolverAddress:i});if(!a)return null;try{return await VY(u,{record:a,gatewayUrls:n})}catch{return null}}async function JY(u,{address:e,blockNumber:t,blockTag:n,universalResolverAddress:r}){let i=r;if(!i){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=Vo({blockNumber:t,chain:u.chain,contract:"ensUniversalResolver"})}const a=`${e.toLowerCase().substring(2)}.addr.reverse`;try{return(await R0(u,Zr,"readContract")({address:i,abi:EY,functionName:"reverse",args:[J0(d5(a))],blockNumber:t,blockTag:n}))[0]}catch(o){if(Ig(o,"reverse"))return null;throw o}}async function YY(u,{blockNumber:e,blockTag:t,name:n,universalResolverAddress:r}){let i=r;if(!i){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=Vo({blockNumber:e,chain:u.chain,contract:"ensUniversalResolver"})}const[a]=await R0(u,Zr,"readContract")({address:i,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[J0(d5(n))],blockNumber:e,blockTag:t});return a}async function ZY(u){const e=e5(u,{method:"eth_newBlockFilter"}),t=await u.request({method:"eth_newBlockFilter"});return{id:t,request:e(t),type:"block"}}async function VP(u,{address:e,args:t,event:n,events:r,fromBlock:i,strict:a,toBlock:o}={}){const s=r??(n?[n]:void 0),f=e5(u,{method:"eth_newFilter"});let l=[];s&&(l=[s.flatMap(E=>q3({abi:[E],eventName:E.name,args:t}))],n&&(l=l[0]));const c=await u.request({method:"eth_newFilter",params:[{address:e,fromBlock:typeof i=="bigint"?S0(i):i,toBlock:typeof o=="bigint"?S0(o):o,...l.length?{topics:l}:{}}]});return{abi:s,args:t,eventName:n?n.name:void 0,fromBlock:i,id:c,request:f(c),strict:a,toBlock:o,type:"event"}}async function KP(u){const e=e5(u,{method:"eth_newPendingTransactionFilter"}),t=await u.request({method:"eth_newPendingTransactionFilter"});return{id:t,request:e(t),type:"transaction"}}async function XY(u,{address:e,blockNumber:t,blockTag:n="latest"}){const r=t?S0(t):void 0,i=await u.request({method:"eth_getBalance",params:[e,r||n]});return BigInt(i)}async function uZ(u,{blockHash:e,blockNumber:t,blockTag:n="latest"}={}){const r=t!==void 0?S0(t):void 0;let i;return e?i=await u.request({method:"eth_getBlockTransactionCountByHash",params:[e]}):i=await u.request({method:"eth_getBlockTransactionCountByNumber",params:[r||n]}),fu(i)}async function eZ(u,{address:e,blockNumber:t,blockTag:n="latest"}){const r=t!==void 0?S0(t):void 0,i=await u.request({method:"eth_getCode",params:[e,r||n]});if(i!=="0x")return i}function tZ(u){var e;return{baseFeePerGas:u.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:u.gasUsedRatio,oldestBlock:BigInt(u.oldestBlock),reward:(e=u.reward)==null?void 0:e.map(t=>t.map(n=>BigInt(n)))}}async function nZ(u,{blockCount:e,blockNumber:t,blockTag:n="latest",rewardPercentiles:r}){const i=t?S0(t):void 0,a=await u.request({method:"eth_feeHistory",params:[S0(e),i||n,r]});return tZ(a)}async function rZ(u,{filter:e}){const t=e.strict??!1;return(await e.request({method:"eth_getFilterLogs",params:[e.id]})).map(r=>{var i;try{const{eventName:a,args:o}="abi"in e&&e.abi?V3({abi:e.abi,data:r.data,topics:r.topics,strict:t}):{eventName:void 0,args:void 0};return cn(r,{args:o,eventName:a})}catch(a){let o,s;if(a instanceof oa||a instanceof Wo){if("strict"in e&&e.strict)return;o=a.abiItem.name,s=(i=a.abiItem.inputs)==null?void 0:i.some(f=>!("name"in f&&f.name))}return cn(r,{args:s?[]:{},eventName:o})}}).filter(Boolean)}class iZ extends f0{constructor({callbackSelector:e,cause:t,data:n,extraData:r,sender:i,urls:a}){var o;super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],(o=t.metaMessages)!=null&&o.length?"":[],"Offchain Gateway Call:",a&&[" Gateway URL(s):",...a.map(s=>` ${U3(s)}`)],` Sender: ${i}`,` Data: ${n}`,` Callback selector: ${e}`,` Extra data: ${r}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class aZ extends f0{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${U3(t)}`,`Response: ${fe(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class oZ extends f0{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}function h5(u,e){if(!Qe(u))throw new ht({address:u});if(!Qe(e))throw new ht({address:e});return u.toLowerCase()===e.toLowerCase()}const QP="0x556f1830",Rg={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 JP(u,{blockNumber:e,blockTag:t,data:n,to:r}){const{args:i}=mg({data:n,abi:[Rg]}),[a,o,s,f,l]=i;try{if(!h5(r,a))throw new oZ({sender:a,to:r});const c=await Mg({data:s,sender:a,urls:o}),{data:E}=await Kc(u,{blockNumber:e,blockTag:t,data:En([f,ai([{type:"bytes"},{type:"bytes"}],[c,l])]),to:r});return E}catch(c){throw new iZ({callbackSelector:f,cause:c,data:n,extraData:l,sender:a,urls:o})}}async function Mg({data:u,sender:e,urls:t}){var r;let n=new Error("An unknown error occurred.");for(let i=0;it.id===e)}const lZ=/^(.*)\[([0-9]*)\]$/,YP=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,ZP=/^(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 jg({domain:u,message:e,primaryType:t,types:n}){const r=typeof u>"u"?{}:u,i={EIP712Domain:C5({domain:r}),...n};Lg({domain:r,message:e,primaryType:t,types:i});const a=["0x1901"];return r&&a.push(zg({domain:r,types:i})),t!=="EIP712Domain"&&a.push(XP({data:e,primaryType:t,types:i})),Hu(En(a))}function zg({domain:u,types:e}){return XP({data:u,primaryType:"EIP712Domain",types:e})}function XP({data:u,primaryType:e,types:t}){const n=uO({data:u,primaryType:e,types:t});return Hu(n)}function uO({data:u,primaryType:e,types:t}){const n=[{type:"bytes32"}],r=[cZ({primaryType:e,types:t})];for(const i of t[e]){const[a,o]=tO({types:t,name:i.name,type:i.type,value:u[i.name]});n.push(a),r.push(o)}return ai(n,r)}function cZ({primaryType:u,types:e}){const t=J0(EZ({primaryType:u,types:e}));return Hu(t)}function EZ({primaryType:u,types:e}){let t="";const n=eO({primaryType:u,types:e});n.delete(u);const r=[u,...Array.from(n).sort()];for(const i of r)t+=`${i}(${e[i].map(({name:a,type:o})=>`${o} ${a}`).join(",")})`;return t}function eO({primaryType:u,types:e},t=new Set){const n=u.match(/^\w*/u),r=n==null?void 0:n[0];if(t.has(r)||e[r]===void 0)return t;t.add(r);for(const i of e[r])eO({primaryType:i.type,types:e},t);return t}function tO({types:u,name:e,type:t,value:n}){if(u[t]!==void 0)return[{type:"bytes32"},Hu(uO({data:n,primaryType:t,types:u}))];if(t==="bytes")return n=`0x${(n.length%2?"0":"")+n.slice(2)}`,[{type:"bytes32"},Hu(n)];if(t==="string")return[{type:"bytes32"},Hu(J0(n))];if(t.lastIndexOf("]")===t.length-1){const r=t.slice(0,t.lastIndexOf("[")),i=n.map(a=>tO({name:e,type:r,types:u,value:a}));return[{type:"bytes32"},Hu(ai(i.map(([a])=>a),i.map(([,a])=>a)))]}return[{type:t},n]}function Lg({domain:u,message:e,primaryType:t,types:n}){const r=n,i=(a,o)=>{for(const s of a){const{name:f,type:l}=s,c=l,E=o[f],d=c.match(ZP);if(d&&(typeof E=="number"||typeof E=="bigint")){const[b,g,m]=d;S0(E,{signed:g==="int",size:parseInt(m)/8})}if(c==="address"&&typeof E=="string"&&!Qe(E))throw new ht({address:E});const p=c.match(YP);if(p){const[b,g]=p;if(g&&$u(E)!==parseInt(g))throw new sg({expectedSize:parseInt(g),givenSize:$u(E)})}const h=r[c];h&&i(h,E)}};if(r.EIP712Domain&&u&&i(r.EIP712Domain,u),t!=="EIP712Domain"){const a=r[t];i(a,e)}}function C5({domain:u}){return[typeof(u==null?void 0:u.name)=="string"&&{name:"name",type:"string"},(u==null?void 0:u.version)&&{name:"version",type:"string"},typeof(u==null?void 0:u.chainId)=="number"&&{name:"chainId",type:"uint256"},(u==null?void 0:u.verifyingContract)&&{name:"verifyingContract",type:"address"},(u==null?void 0:u.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function dZ({domain:u}){return zg({domain:u,types:{EIP712Domain:C5({domain:u})}})}function pZ({abi:u,data:e}){const t=yu(e,0,4),n=u.find(r=>r.type==="function"&&t===W3(ii(r)));if(!n)throw new YT(t,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:n.name,args:"inputs"in n&&n.inputs&&n.inputs.length>0?qo(n.inputs,yu(e,4)):void 0}}const Pp="/docs/contract/encodeDeployData";function $g({abi:u,args:e,bytecode:t}){if(!e||e.length===0)return t;const n=u.find(i=>"type"in i&&i.type==="constructor");if(!n)throw new rg({docsPath:Pp});if(!("inputs"in n))throw new ql({docsPath:Pp});if(!n.inputs||n.inputs.length===0)throw new ql({docsPath:Pp});const r=ai(n.inputs,e);return ri([t,r])}const Op="/docs/contract/encodeErrorResult";function hZ({abi:u,errorName:e,args:t}){let n=u[0];if(e&&(n=ga({abi:u,args:t,name:e}),!n))throw new Vh(e,{docsPath:Op});if(n.type!=="error")throw new Vh(void 0,{docsPath:Op});const r=ii(n),i=W3(r);let a="0x";if(t&&t.length>0){if(!n.inputs)throw new KT(n.name,{docsPath:Op});a=ai(n.inputs,t)}return ri([i,a])}const CZ="/docs/contract/encodeFunctionResult";function mZ({abi:u,functionName:e,result:t}){let n=u[0];if(e&&(n=ga({abi:u,name:e}),!n))throw new _o(e,{docsPath:"/docs/contract/encodeFunctionResult"});if(n.type!=="function")throw new _o(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!n.outputs)throw new og(n.name,{docsPath:CZ});let r=Array.isArray(t)?t:[t];return n.outputs.length===0&&!r[0]&&(r=[]),ai(n.outputs,r)}function gZ(u,e){if(u.length!==e.length)throw new ig({expectedLength:u.length,givenLength:e.length});const t=[];for(let n=0;n1||t[0]>1)throw new cT(t);return!!t[0]}function oO(u,e={}){typeof e.size<"u"&&hn(u,{size:e.size});const t=pt(u,e);return fu(t)}function sO(u,e={}){let t=u;return typeof e.size<"u"&&(hn(t,{size:e.size}),t=He(t,{dir:"right"})),new TextDecoder().decode(t)}class AB extends f0{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class yZ extends f0{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}const vZ={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,assertPosition(u){if(u<0||u>this.bytes.length-1)throw new yZ({length:this.bytes.length,position:u})},decrementPosition(u){if(u<0)throw new AB({offset:u});const e=this.position-u;this.assertPosition(e),this.position=e},incrementPosition(u){if(u<0)throw new AB({offset:u});const e=this.position+u;this.assertPosition(e),this.position=e},inspectByte(u){const e=u??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(u,e){const t=e??this.position;return this.assertPosition(t+u-1),this.bytes.subarray(t,t+u)},inspectUint8(u){const e=u??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(u){const e=u??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(u){const e=u??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(u){const e=u??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(u){this.assertPosition(this.position),this.bytes[this.position]=u,this.position++},pushBytes(u){this.assertPosition(this.position+u.length-1),this.bytes.set(u,this.position),this.position+=u.length},pushUint8(u){this.assertPosition(this.position),this.bytes[this.position]=u,this.position++},pushUint16(u){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,u),this.position+=2},pushUint24(u){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,u>>8),this.dataView.setUint8(this.position+2,u&255),this.position+=3},pushUint32(u){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,u),this.position+=4},readByte(){const u=this.inspectByte();return this.position++,u},readBytes(u){const e=this.inspectBytes(u);return this.position+=u,e},readUint8(){const u=this.inspectUint8();return this.position+=1,u},readUint16(){const u=this.inspectUint16();return this.position+=2,u},readUint24(){const u=this.inspectUint24();return this.position+=3,u},readUint32(){const u=this.inspectUint32();return this.position+=4,u},setPosition(u){this.assertPosition(u),this.position=u}};function fO(u){const e=Object.create(vZ);return e.bytes=u,e.dataView=new DataView(u.buffer,u.byteOffset,u.byteLength),e}function Ug(u,e="hex"){const t=(()=>{if(typeof u=="string"){if(u.length>3&&u.length%2!==0)throw new dT(u);return ni(u)}return u})(),n=fO(t);return lO(n,e)}function lO(u,e="hex"){if(u.bytes.length===0)return e==="hex"?pt(u.bytes):u.bytes;const t=u.readByte();if(t<128&&u.decrementPosition(1),t<192){const r=yB(u,t,128),i=u.readBytes(r);return e==="hex"?pt(i):i}const n=yB(u,t,192);return BZ(u,n,e)}function yB(u,e,t){if(t===128&&e<128)return 1;if(e<=t+55)return e-t;if(e===t+55+1)return u.readUint8();if(e===t+55+2)return u.readUint16();if(e===t+55+3)return u.readUint24();if(e===t+55+4)return u.readUint32();throw new f0("Invalid RLP prefix")}function BZ(u,e,t){const n=u.position,r=[];for(;u.position-nPromise.resolve().then(()=>we0),void 0);return`0x${i.Signature.fromCompact(t.substring(2,130)).addRecoveryBit(r-27).recoverPublicKey(n.substring(2)).toHex(!1)}`}async function Wg({hash:u,signature:e}){return kY(await EO({hash:u,signature:e}))}const dO=`Ethereum Signed Message: -`;function qg(u,e){const t=typeof u=="string"?Er(u):u.raw instanceof Uint8Array?u.raw:Le(u.raw),n=Er(`${dO}${t.length}`);return Hu(En([n,t]),e)}async function pO({message:u,signature:e}){return Wg({hash:qg(u),signature:e})}async function hO({domain:u,message:e,primaryType:t,signature:n,types:r}){return Wg({hash:jg({domain:u,message:e,primaryType:t,types:r}),signature:n})}async function FZ({address:u,message:e,signature:t}){return h5(Su(u),await pO({message:e,signature:t}))}async function DZ({address:u,domain:e,message:t,primaryType:n,signature:r,types:i}){return h5(Su(u),await hO({domain:e,message:t,primaryType:n,signature:r,types:i}))}function CO(u){const e=dg(u,0,1);if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&fu(e)>=192)return"legacy";throw new AP({serializedType:e})}function Hg(u){const{chainId:e,maxPriorityFeePerGas:t,gasPrice:n,maxFeePerGas:r,to:i}=u;if(e<=0)throw new KE({chainId:e});if(i&&!Qe(i))throw new ht({address:i});if(n)throw new f0("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(r&&r>2n**256n-1n)throw new aa({maxFeePerGas:r});if(t&&r&&t>r)throw new i3({maxFeePerGas:r,maxPriorityFeePerGas:t})}function Gg(u){const{chainId:e,maxPriorityFeePerGas:t,gasPrice:n,maxFeePerGas:r,to:i}=u;if(e<=0)throw new KE({chainId:e});if(i&&!Qe(i))throw new ht({address:i});if(t||r)throw new f0("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>2n**256n-1n)throw new aa({maxFeePerGas:n})}function Vg(u){const{chainId:e,maxPriorityFeePerGas:t,gasPrice:n,maxFeePerGas:r,to:i,accessList:a}=u;if(i&&!Qe(i))throw new ht({address:i});if(typeof e<"u"&&e<=0)throw new KE({chainId:e});if(t||r)throw new f0("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>2n**256n-1n)throw new aa({maxFeePerGas:n});if(a)throw new f0("`accessList` is not a valid Legacy Transaction attribute.")}function wZ(u){const e=CO(u);return e==="eip1559"?xZ(u):e==="eip2930"?kZ(u):_Z(u)}function xZ(u){const e=mO(u),[t,n,r,i,a,o,s,f,l,c,E,d]=e;if(!(e.length===9||e.length===12))throw new n5({attributes:{chainId:t,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:i,gas:a,to:o,value:s,data:f,accessList:l,...e.length>9?{v:c,r:E,s:d}:{}},serializedTransaction:u,type:"eip1559"});const p={chainId:fu(t),type:"eip1559"};return K0(o)&&o!=="0x"&&(p.to=o),K0(a)&&a!=="0x"&&(p.gas=xu(a)),K0(f)&&f!=="0x"&&(p.data=f),K0(n)&&n!=="0x"&&(p.nonce=fu(n)),K0(s)&&s!=="0x"&&(p.value=xu(s)),K0(i)&&i!=="0x"&&(p.maxFeePerGas=xu(i)),K0(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=xu(r)),l.length!==0&&l!=="0x"&&(p.accessList=gO(l)),Hg(p),{...e.length===12?bO(e):void 0,...p}}function kZ(u){const e=mO(u),[t,n,r,i,a,o,s,f,l,c,E]=e;if(!(e.length===8||e.length===11))throw new n5({attributes:{chainId:t,nonce:n,gasPrice:r,gas:i,to:a,value:o,data:s,accessList:f,...e.length>8?{v:l,r:c,s:E}:{}},serializedTransaction:u,type:"eip2930"});const d={chainId:fu(t),type:"eip2930"};return K0(a)&&a!=="0x"&&(d.to=a),K0(i)&&i!=="0x"&&(d.gas=xu(i)),K0(s)&&s!=="0x"&&(d.data=s),K0(n)&&n!=="0x"&&(d.nonce=fu(n)),K0(o)&&o!=="0x"&&(d.value=xu(o)),K0(r)&&r!=="0x"&&(d.gasPrice=xu(r)),f.length!==0&&f!=="0x"&&(d.accessList=gO(f)),Gg(d),{...e.length===11?bO(e):void 0,...d}}function _Z(u){const e=Ug(u,"hex"),[t,n,r,i,a,o,s,f,l]=e;if(!(e.length===6||e.length===9))throw new n5({attributes:{nonce:t,gasPrice:n,gas:r,to:i,value:a,data:o,...e.length>6?{v:s,r:f,s:l}:{}},serializedTransaction:u,type:"legacy"});const c={type:"legacy"};if(K0(i)&&i!=="0x"&&(c.to=i),K0(r)&&r!=="0x"&&(c.gas=xu(r)),K0(o)&&o!=="0x"&&(c.data=o),K0(t)&&t!=="0x"&&(c.nonce=fu(t)),K0(a)&&a!=="0x"&&(c.value=xu(a)),K0(n)&&n!=="0x"&&(c.gasPrice=xu(n)),Vg(c),e.length===6)return c;const E=K0(s)&&s!=="0x"?xu(s):0n;if(l==="0x"&&f==="0x")return E>0&&(c.chainId=Number(E)),c;const d=E,p=Number((d-35n)/2n);if(p>0)c.chainId=p;else if(d!==27n&&d!==28n)throw new gg({v:d});return c.v=d,c.s=l,c.r=f,c}function mO(u){return Ug(`0x${u.slice(4)}`,"hex")}function gO(u){const e=[];for(let t=0;tcO(i)?i:He(i))})}return e}function bO(u){const e=u.slice(-3),t=e[0]==="0x"||xu(e[0])===0n?27n:28n;return{r:Rn(e[1],{size:32}),s:Rn(e[2],{size:32}),v:t,yParity:t===27n?0:1}}function Kg(u){if(!u||u.length===0)return[];const e=[];for(let t=0;t{if(t>0)return BigInt(t*2)+BigInt(35n+e.v-27n);if(e.v>=35n)return(e.v-35n)/2n>0?e.v:27n+(e.v===35n?0n:1n);const c=27n+(e.v===27n?0n:1n);if(e.v!==c)throw new gg({v:e.v});return c})();f=[...f,J0(l),e.r,e.s]}else t>0&&(f=[...f,J0(t),"0x","0x"]);return Ko(f)}function Qg(u,e){let[t,n="0"]=u.split(".");const r=t.startsWith("-");if(r&&(t=t.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(t=`${BigInt(t)+1n}`),n="";else if(n.length>e){const[i,a,o]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],s=Math.round(+`${a}.${o}`);s>9?n=`${BigInt(i)+BigInt(1)}0`.padStart(i.length+1,"0"):n=`${i}${s}`,n.length>e&&(n=n.slice(1),t=`${BigInt(t)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${t}${n}`)}function IZ(u,e="wei"){return Qg(u,tg[e])}function NZ(u,e="wei"){return Qg(u,ng[e])}function RZ(u){return u.map(e=>({...e,value:BigInt(e.value)}))}function MZ(u){return{...u,balance:u.balance?BigInt(u.balance):void 0,nonce:u.nonce?fu(u.nonce):void 0,storageProof:u.storageProof?RZ(u.storageProof):void 0}}async function jZ(u,{address:e,blockNumber:t,blockTag:n,storageKeys:r}){const i=n??"latest",a=t!==void 0?S0(t):void 0,o=await u.request({method:"eth_getProof",params:[e,r,a||i]});return MZ(o)}async function zZ(u,{address:e,blockNumber:t,blockTag:n="latest",slot:r}){const i=t!==void 0?S0(t):void 0;return await u.request({method:"eth_getStorageAt",params:[e,r,i||n]})}async function Jg(u,{blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){var l,c,E;const a=n||"latest",o=t!==void 0?S0(t):void 0;let s=null;if(r?s=await u.request({method:"eth_getTransactionByHash",params:[r]}):e?s=await u.request({method:"eth_getTransactionByBlockHashAndIndex",params:[e,S0(i)]}):(o||a)&&(s=await u.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[o||a,S0(i)]})),!s)throw new bg({blockHash:e,blockNumber:t,blockTag:a,hash:r,index:i});return(((E=(c=(l=u.chain)==null?void 0:l.formatters)==null?void 0:c.transaction)==null?void 0:E.format)||GE)(s)}async function LZ(u,{hash:e,transactionReceipt:t}){const[n,r]=await Promise.all([R0(u,Jc,"getBlockNumber")({}),e?R0(u,Jg,"getBlockNumber")({hash:e}):void 0]),i=(t==null?void 0:t.blockNumber)||(r==null?void 0:r.blockNumber);return i?n-i+1n:0n}async function nC(u,{hash:e}){var r,i,a;const t=await u.request({method:"eth_getTransactionReceipt",params:[e]});if(!t)throw new Ag({hash:e});return(((a=(i=(r=u.chain)==null?void 0:r.formatters)==null?void 0:i.transactionReceipt)==null?void 0:a.format)||ug)(t)}async function $Z(u,e){var h;const{allowFailure:t=!0,batchSize:n,blockNumber:r,blockTag:i,contracts:a,multicallAddress:o}=e,s=n??(typeof((h=u.batch)==null?void 0:h.multicall)=="object"&&u.batch.multicall.batchSize||1024);let f=o;if(!f){if(!u.chain)throw new Error("client chain not configured. multicallAddress is required.");f=Vo({blockNumber:r,chain:u.chain,contract:"multicall3"})}const l=[[]];let c=0,E=0;for(let b=0;b0&&E>s&&l[c].length>0&&(c++,E=(B.length-2)/2,l[c]=[]),l[c]=[...l[c],{allowFailure:!0,callData:B,target:m}]}catch(B){const v=A3(B,{abi:g,address:m,args:A,docsPath:"/docs/contract/multicall",functionName:y});if(!t)throw v;l[c]=[...l[c],{allowFailure:!0,callData:"0x",target:m}]}}const d=await Promise.allSettled(l.map(b=>R0(u,Zr,"readContract")({abi:n9,address:f,args:[b],blockNumber:r,blockTag:i,functionName:"aggregate3"}))),p=[];for(let b=0;bu instanceof Uint8Array,qZ=Array.from({length:256},(u,e)=>e.toString(16).padStart(2,"0"));function y3(u){if(!g5(u))throw new Error("Uint8Array expected");let e="";for(let t=0;tn+r.length,0));let t=0;return u.forEach(n=>{if(!g5(n))throw new Error("Uint8Array expected");e.set(n,t),t+=n.length}),e}function vO(u,e){if(u.length!==e.length)return!1;for(let t=0;tAO;u>>=m5,e+=1);return e}function VZ(u,e){return u>>BigInt(e)&m5}const KZ=(u,e,t)=>u|(t?m5:AO)<(WZ<new Uint8Array(u),vB=u=>Uint8Array.from(u);function BO(u,e,t){if(typeof u!="number"||u<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");let n=Ip(u),r=Ip(u),i=0;const a=()=>{n.fill(1),r.fill(0),i=0},o=(...c)=>t(r,n,...c),s=(c=Ip())=>{r=o(vB([0]),c),n=o(),c.length!==0&&(r=o(vB([1]),c),n=o())},f=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let c=0;const E=[];for(;c{a(),s(c);let d;for(;!(d=E(f()));)s();return a(),d}}const QZ={bigint:u=>typeof u=="bigint",function:u=>typeof u=="function",boolean:u=>typeof u=="boolean",string:u=>typeof u=="string",stringOrUint8Array:u=>typeof u=="string"||u instanceof Uint8Array,isSafeInteger:u=>Number.isSafeInteger(u),array:u=>Array.isArray(u),field:(u,e)=>e.Fp.isValid(u),hash:u=>typeof u=="function"&&Number.isSafeInteger(u.outputLen)};function J3(u,e,t={}){const n=(r,i,a)=>{const o=QZ[i];if(typeof o!="function")throw new Error(`Invalid validator "${i}", expected function`);const s=u[r];if(!(a&&s===void 0)&&!o(s,u))throw new Error(`Invalid param ${String(r)}=${s} (${typeof s}), expected ${i}`)};for(const[r,i]of Object.entries(e))n(r,i,!1);for(const[r,i]of Object.entries(t))n(r,i,!0);return u}const JZ=Object.freeze(Object.defineProperty({__proto__:null,bitGet:VZ,bitLen:GZ,bitMask:ub,bitSet:KZ,bytesToHex:y3,bytesToNumberBE:Ve,bytesToNumberLE:Zg,concatBytes:St,createHmacDrbg:BO,ensureBytes:_e,equalBytes:vO,hexToBytes:v3,hexToNumber:Yg,numberToBytesBE:la,numberToBytesLE:Xg,numberToHexUnpadded:yO,numberToVarBytesBE:HZ,utf8ToBytes:b5,validateObject:J3},Symbol.toStringTag,{value:"Module"}));function YZ(u,e){const t=K0(u)?Le(u):u,n=K0(e)?Le(e):e;return vO(t,n)}async function FO(u,{address:e,hash:t,signature:n,...r}){const i=K0(n)?n:J0(n);try{const{data:a}=await R0(u,Kc,"call")({data:$g({abi:dY,args:[e,t,i],bytecode:UZ}),...r});return YZ(a??"0x0","0x1")}catch(a){if(a instanceof yg)return!1;throw a}}async function ZZ(u,{address:e,message:t,signature:n,...r}){const i=qg(t);return FO(u,{address:e,hash:i,signature:n,...r})}async function XZ(u,{address:e,signature:t,message:n,primaryType:r,types:i,domain:a,...o}){const s=jg({message:n,primaryType:r,types:i,domain:a});return FO(u,{address:e,hash:s,signature:t,...o})}function DO(u,{emitOnBegin:e=!1,emitMissed:t=!1,onBlockNumber:n,onError:r,poll:i,pollingInterval:a=u.pollingInterval}){const o=typeof i<"u"?i:u.transport.type!=="webSocket";let s;return o?(()=>{const c=fe(["watchBlockNumber",u.uid,e,t,a]);return K3(c,{onBlockNumber:n,onError:r},E=>Qc(async()=>{var d;try{const p=await R0(u,Jc,"getBlockNumber")({cacheTime:0});if(s){if(p===s)return;if(p-s>1&&t)for(let h=s+1n;hs)&&(E.onBlockNumber(p,s),s=p)}catch(p){(d=E.onError)==null||d.call(E,p)}},{emitOnBegin:e,interval:a}))})():(()=>{let c=!0,E=()=>c=!1;return(async()=>{try{const{unsubscribe:d}=await u.transport.subscribe({params:["newHeads"],onData(p){var b;if(!c)return;const h=xu((b=p.result)==null?void 0:b.number);n(h,s),s=h},onError(p){r==null||r(p)}});E=d,c||E()}catch(d){r==null||r(d)}})(),E})()}async function uX(u,{confirmations:e=1,hash:t,onReplaced:n,pollingInterval:r=u.pollingInterval,timeout:i}){const a=fe(["waitForTransactionReceipt",u.uid,t]);let o,s,f,l=!1;return new Promise((c,E)=>{i&&setTimeout(()=>E(new BP({hash:t})),i);const d=K3(a,{onReplaced:n,resolve:c,reject:E},p=>{const h=R0(u,DO,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:r,async onBlockNumber(b){if(l)return;let g=b;const m=A=>{h(),A(),d()};try{if(f){if(e>1&&(!f.blockNumber||g-f.blockNumber+1np.resolve(f));return}if(o||(l=!0,await Zh(async()=>{o=await R0(u,Jg,"getTransaction")({hash:t}),o.blockNumber&&(g=o.blockNumber)},{delay:({count:A})=>~~(1<1&&(!f.blockNumber||g-f.blockNumber+1np.resolve(f))}catch(A){if(o&&(A instanceof bg||A instanceof Ag))try{s=o,l=!0;const y=await Zh(()=>R0(u,fa,"getBlock")({blockNumber:g,includeTransactions:!0}),{delay:({count:C})=>~~(1<C instanceof Bg});l=!1;const B=y.transactions.find(({from:C,nonce:D})=>C===s.from&&D===s.nonce);if(!B||(f=await R0(u,nC,"getTransactionReceipt")({hash:B.hash}),e>1&&(!f.blockNumber||g-f.blockNumber+1n{var C;(C=p.onReplaced)==null||C.call(p,{reason:v,replacedTransaction:s,transaction:B,transactionReceipt:f}),p.resolve(f)})}catch(y){m(()=>p.reject(y))}else m(()=>p.reject(A))}}})})})}function eX(u,{blockTag:e="latest",emitMissed:t=!1,emitOnBegin:n=!1,onBlock:r,onError:i,includeTransactions:a,poll:o,pollingInterval:s=u.pollingInterval}){const f=typeof o<"u"?o:u.transport.type!=="webSocket",l=a??!1;let c;return f?(()=>{const p=fe(["watchBlocks",u.uid,t,n,l,s]);return K3(p,{onBlock:r,onError:i},h=>Qc(async()=>{var b;try{const g=await R0(u,fa,"getBlock")({blockTag:e,includeTransactions:l});if(g.number&&(c!=null&&c.number)){if(g.number===c.number)return;if(g.number-c.number>1&&t)for(let m=(c==null?void 0:c.number)+1n;mc.number)&&(h.onBlock(g,c),c=g)}catch(g){(b=h.onError)==null||b.call(h,g)}},{emitOnBegin:n,interval:s}))})():(()=>{let p=!0,h=()=>p=!1;return(async()=>{try{const{unsubscribe:b}=await u.transport.subscribe({params:["newHeads"],onData(g){var y,B,v;if(!p)return;const A=(((v=(B=(y=u.chain)==null?void 0:y.formatters)==null?void 0:B.block)==null?void 0:v.format)||VE)(g.result);r(A,c),c=A},onError(g){i==null||i(g)}});h=b,p||h()}catch(b){i==null||i(b)}})(),h})()}function tX(u,{address:e,args:t,batch:n=!0,event:r,events:i,onError:a,onLogs:o,poll:s,pollingInterval:f=u.pollingInterval,strict:l}){const c=typeof s<"u"?s:u.transport.type!=="webSocket",E=l??!1;return c?(()=>{const h=fe(["watchEvent",e,t,n,u.uid,r,f]);return K3(h,{onLogs:o,onError:a},b=>{let g,m,A=!1;const y=Qc(async()=>{var B;if(!A){try{m=await R0(u,VP,"createEventFilter")({address:e,args:t,event:r,events:i,strict:E})}catch{}A=!0;return}try{let v;if(m)v=await R0(u,l5,"getFilterChanges")({filter:m});else{const C=await R0(u,Jc,"getBlockNumber")({});g&&g!==C?v=await R0(u,xg,"getLogs")({address:e,args:t,event:r,events:i,fromBlock:g+1n,toBlock:C}):v=[],g=C}if(v.length===0)return;if(n)b.onLogs(v);else for(const C of v)b.onLogs([C])}catch(v){m&&v instanceof sa&&(A=!1),(B=b.onError)==null||B.call(b,v)}},{emitOnBegin:!0,interval:f});return async()=>{m&&await R0(u,c5,"uninstallFilter")({filter:m}),y()}})})():(()=>{let h=!0,b=()=>h=!1;return(async()=>{try{const g=i??(r?[r]:void 0);let m=[];g&&(m=[g.flatMap(y=>q3({abi:[y],eventName:y.name,args:t}))],r&&(m=m[0]));const{unsubscribe:A}=await u.transport.subscribe({params:["logs",{address:e,topics:m}],onData(y){var v;if(!h)return;const B=y.result;try{const{eventName:C,args:D}=V3({abi:g,data:B.data,topics:B.topics,strict:E}),T=cn(B,{args:D,eventName:C});o([T])}catch(C){let D,T;if(C instanceof oa||C instanceof Wo){if(l)return;D=C.abiItem.name,T=(v=C.abiItem.inputs)==null?void 0:v.some($=>!("name"in $&&$.name))}const _=cn(B,{args:T?[]:{},eventName:D});o([_])}},onError(y){a==null||a(y)}});b=A,h||b()}catch(g){a==null||a(g)}})(),b})()}function nX(u,{batch:e=!0,onError:t,onTransactions:n,poll:r,pollingInterval:i=u.pollingInterval}){return(typeof r<"u"?r:u.transport.type!=="webSocket")?(()=>{const f=fe(["watchPendingTransactions",u.uid,e,i]);return K3(f,{onTransactions:n,onError:t},l=>{let c;const E=Qc(async()=>{var d;try{if(!c)try{c=await R0(u,KP,"createPendingTransactionFilter")({});return}catch(h){throw E(),h}const p=await R0(u,l5,"getFilterChanges")({filter:c});if(p.length===0)return;if(e)l.onTransactions(p);else for(const h of p)l.onTransactions([h])}catch(p){(d=l.onError)==null||d.call(l,p)}},{emitOnBegin:!0,interval:i});return async()=>{c&&await R0(u,c5,"uninstallFilter")({filter:c}),E()}})})():(()=>{let f=!0,l=()=>f=!1;return(async()=>{try{const{unsubscribe:c}=await u.transport.subscribe({params:["newPendingTransactions"],onData(E){if(!f)return;const d=E.result;n([d])},onError(E){t==null||t(E)}});l=c,f||l()}catch(c){t==null||t(c)}})(),l})()}function wO(u){return{call:e=>Kc(u,e),createBlockFilter:()=>ZY(u),createContractEventFilter:e=>Cg(u,e),createEventFilter:e=>VP(u,e),createPendingTransactionFilter:()=>KP(u),estimateContractGas:e=>PP(u,e),estimateGas:e=>wg(u,e),getBalance:e=>XY(u,e),getBlock:e=>fa(u,e),getBlockNumber:e=>Jc(u,e),getBlockTransactionCount:e=>uZ(u,e),getBytecode:e=>eZ(u,e),getChainId:()=>Hl(u),getContractEvents:e=>kg(u,e),getEnsAddress:e=>MY(u,e),getEnsAvatar:e=>QY(u,e),getEnsName:e=>JY(u,e),getEnsResolver:e=>YY(u,e),getEnsText:e=>GP(u,e),getFeeHistory:e=>nZ(u,e),estimateFeesPerGas:e=>lY(u,e),getFilterChanges:e=>l5(u,e),getFilterLogs:e=>rZ(u,e),getGasPrice:()=>Fg(u),getLogs:e=>xg(u,e),getProof:e=>jZ(u,e),estimateMaxPriorityFeePerGas:e=>fY(u,e),getStorageAt:e=>zZ(u,e),getTransaction:e=>Jg(u,e),getTransactionConfirmations:e=>LZ(u,e),getTransactionCount:e=>TP(u,e),getTransactionReceipt:e=>nC(u,e),multicall:e=>$Z(u,e),prepareTransactionRequest:e=>f5(u,e),readContract:e=>Zr(u,e),sendRawTransaction:e=>Tg(u,e),simulateContract:e=>NP(u,e),verifyMessage:e=>ZZ(u,e),verifyTypedData:e=>XZ(u,e),uninstallFilter:e=>c5(u,e),waitForTransactionReceipt:e=>uX(u,e),watchBlocks:e=>eX(u,e),watchBlockNumber:e=>DO(u,e),watchContractEvent:e=>RP(u,e),watchEvent:e=>tX(u,e),watchPendingTransactions:e=>nX(u,e)}}function rC(u){const{key:e="public",name:t="Public Client"}=u;return E5({...u,key:e,name:t,type:"publicClient"}).extend(wO)}async function rX(u,{hash:e}){await u.request({method:`${u.mode}_dropTransaction`,params:[e]})}async function iX(u){return u.request({method:`${u.mode}_dumpState`})}async function aX(u){return u.mode==="ganache"?await u.request({method:"eth_mining"}):await u.request({method:`${u.mode}_getAutomine`})}async function oX(u){return await u.request({method:"txpool_content"})}async function sX(u){const{pending:e,queued:t}=await u.request({method:"txpool_status"});return{pending:fu(e),queued:fu(t)}}async function fX(u,{address:e}){await u.request({method:`${u.mode}_impersonateAccount`,params:[e]})}async function lX(u,{seconds:e}){return await u.request({method:"evm_increaseTime",params:[S0(e)]})}async function cX(u){return await u.request({method:"txpool_inspect"})}async function EX(u,{state:e}){await u.request({method:`${u.mode}_loadState`,params:[e]})}async function dX(u,{blocks:e,interval:t}){u.mode==="ganache"?await u.request({method:"evm_mine",params:[{blocks:S0(e)}]}):await u.request({method:`${u.mode}_mine`,params:[S0(e),S0(t||0)]})}async function pX(u){await u.request({method:`${u.mode}_removeBlockTimestampInterval`})}async function hX(u,{blockNumber:e,jsonRpcUrl:t}={}){await u.request({method:`${u.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:t}}]})}async function CX(u,{id:e}){await u.request({method:"evm_revert",params:[e]})}async function mX(u,e){var g,m,A;const{accessList:t,data:n,from:r,gas:i,gasPrice:a,maxFeePerGas:o,maxPriorityFeePerGas:s,nonce:f,to:l,value:c,...E}=e,d=(A=(m=(g=u.chain)==null?void 0:g.formatters)==null?void 0:m.transactionRequest)==null?void 0:A.format,h=(d||Uo)({...o5(E,{format:d}),accessList:t,data:n,from:r,gas:i,gasPrice:a,maxFeePerGas:o,maxPriorityFeePerGas:s,nonce:f,to:l,value:c});return await u.request({method:"eth_sendUnsignedTransaction",params:[h]})}async function gX(u,e){u.mode==="ganache"?e?await u.request({method:"miner_start"}):await u.request({method:"miner_stop"}):await u.request({method:"evm_setAutomine",params:[e]})}async function bX(u,{address:e,value:t}){u.mode==="ganache"?await u.request({method:"evm_setAccountBalance",params:[e,S0(t)]}):await u.request({method:`${u.mode}_setBalance`,params:[e,S0(t)]})}async function AX(u,{gasLimit:e}){await u.request({method:"evm_setBlockGasLimit",params:[S0(e)]})}async function yX(u,{interval:e}){const t=u.mode==="hardhat"?e*1e3:e;await u.request({method:`${u.mode}_setBlockTimestampInterval`,params:[t]})}async function vX(u,{address:e,bytecode:t}){await u.request({method:`${u.mode}_setCode`,params:[e,t]})}async function BX(u,{address:e}){await u.request({method:`${u.mode}_setCoinbase`,params:[e]})}async function FX(u,{interval:e}){const t=u.mode==="hardhat"?e*1e3:e;await u.request({method:"evm_setIntervalMining",params:[t]})}async function DX(u,e){await u.request({method:`${u.mode}_setLoggingEnabled`,params:[e]})}async function wX(u,{gasPrice:e}){await u.request({method:`${u.mode}_setMinGasPrice`,params:[S0(e)]})}async function xX(u,{baseFeePerGas:e}){await u.request({method:`${u.mode}_setNextBlockBaseFeePerGas`,params:[S0(e)]})}async function kX(u,{timestamp:e}){await u.request({method:"evm_setNextBlockTimestamp",params:[S0(e)]})}async function _X(u,{address:e,nonce:t}){await u.request({method:`${u.mode}_setNonce`,params:[e,S0(t)]})}async function SX(u,e){await u.request({method:`${u.mode}_setRpcUrl`,params:[e]})}async function TX(u,{address:e,index:t,value:n}){await u.request({method:`${u.mode}_setStorageAt`,params:[e,typeof t=="number"?S0(t):t,n]})}async function PX(u){return await u.request({method:"evm_snapshot"})}async function OX(u,{address:e}){await u.request({method:`${u.mode}_stopImpersonatingAccount`,params:[e]})}function xO({mode:u}){return e=>{const t=e.extend(()=>({mode:u}));return{dropTransaction:n=>rX(t,n),dumpState:()=>iX(t),getAutomine:()=>aX(t),getTxpoolContent:()=>oX(t),getTxpoolStatus:()=>sX(t),impersonateAccount:n=>fX(t,n),increaseTime:n=>lX(t,n),inspectTxpool:()=>cX(t),loadState:n=>EX(t,n),mine:n=>dX(t,n),removeBlockTimestampInterval:()=>pX(t),reset:n=>hX(t,n),revert:n=>CX(t,n),sendUnsignedTransaction:n=>mX(t,n),setAutomine:n=>gX(t,n),setBalance:n=>bX(t,n),setBlockGasLimit:n=>AX(t,n),setBlockTimestampInterval:n=>yX(t,n),setCode:n=>vX(t,n),setCoinbase:n=>BX(t,n),setIntervalMining:n=>FX(t,n),setLoggingEnabled:n=>DX(t,n),setMinGasPrice:n=>wX(t,n),setNextBlockBaseFeePerGas:n=>xX(t,n),setNextBlockTimestamp:n=>kX(t,n),setNonce:n=>_X(t,n),setRpcUrl:n=>SX(t,n),setStorageAt:n=>TX(t,n),snapshot:()=>PX(t),stopImpersonatingAccount:n=>OX(t,n)}}}function IX(u){const{key:e="test",name:t="Test Client",mode:n}=u;return E5({...u,key:e,name:t,type:"testClient"}).extend(i=>({mode:n,...xO({mode:n})(i)}))}function NX(u,{abi:e,args:t,bytecode:n,...r}){const i=$g({abi:e,args:t,bytecode:n});return Pg(u,{...r,data:i})}async function RX(u){var t;return((t=u.account)==null?void 0:t.type)==="local"?[u.account.address]:(await u.request({method:"eth_accounts"})).map(n=>Gc(n))}async function MX(u){return await u.request({method:"wallet_getPermissions"})}async function jX(u){return(await u.request({method:"eth_requestAccounts"})).map(t=>Su(t))}async function zX(u,e){return u.request({method:"wallet_requestPermissions",params:[e]})}async function LX(u,{account:e=u.account,message:t}){if(!e)throw new H3({docsPath:"/docs/actions/wallet/signMessage"});const n=Cn(e);if(n.type==="local")return n.signMessage({message:t});const r=typeof t=="string"?$c(t):t.raw instanceof Uint8Array?J0(t.raw):t.raw;return u.request({method:"personal_sign",params:[r,n.address]})}async function $X(u,e){var f,l,c,E;const{account:t=u.account,chain:n=u.chain,...r}=e;if(!t)throw new H3({docsPath:"/docs/actions/wallet/signTransaction"});const i=Cn(t);G3({account:i,...e});const a=await R0(u,Hl,"getChainId")({});n!==null&&Sg({currentChainId:a,chain:n});const o=(n==null?void 0:n.formatters)||((f=u.chain)==null?void 0:f.formatters),s=((l=o==null?void 0:o.transactionRequest)==null?void 0:l.format)||Uo;return i.type==="local"?i.signTransaction({...r,chainId:a},{serializer:(E=(c=u.chain)==null?void 0:c.serializers)==null?void 0:E.transaction}):await u.request({method:"eth_signTransaction",params:[{...s(r),chainId:S0(a),from:i.address}]})}async function UX(u,{account:e=u.account,domain:t,message:n,primaryType:r,types:i}){if(!e)throw new H3({docsPath:"/docs/actions/wallet/signTypedData"});const a=Cn(e),o={EIP712Domain:C5({domain:t}),...i};if(Lg({domain:t,message:n,primaryType:r,types:o}),a.type==="local")return a.signTypedData({domain:t,primaryType:r,types:o,message:n});const s=fe({domain:t??{},primaryType:r,types:o,message:n},(f,l)=>K0(l)?l.toLowerCase():l);return u.request({method:"eth_signTypedData_v4",params:[a.address,s]})}async function WX(u,{id:e}){await u.request({method:"wallet_switchEthereumChain",params:[{chainId:S0(e)}]})}async function qX(u,e){return await u.request({method:"wallet_watchAsset",params:e})}function kO(u){return{addChain:e=>xY(u,e),deployContract:e=>NX(u,e),getAddresses:()=>RX(u),getChainId:()=>Hl(u),getPermissions:()=>MX(u),prepareTransactionRequest:e=>f5(u,e),requestAddresses:()=>jX(u),requestPermissions:e=>zX(u,e),sendRawTransaction:e=>Tg(u,e),sendTransaction:e=>Pg(u,e),signMessage:e=>LX(u,e),signTransaction:e=>$X(u,e),signTypedData:e=>UX(u,e),switchChain:e=>WX(u,e),watchAsset:e=>qX(u,e),writeContract:e=>MP(u,e)}}function Y3(u){const{key:e="wallet",name:t="Wallet Client",transport:n}=u;return E5({...u,key:e,name:t,transport:i=>n({...i,retryCount:0}),type:"walletClient"}).extend(kO)}function _O(u,e={}){const{key:t="webSocket",name:n="WebSocket JSON-RPC",retryDelay:r}=e;return({chain:i,retryCount:a,timeout:o})=>{var c;const s=e.retryCount??a,f=o??e.timeout??1e4,l=u||((c=i==null?void 0:i.rpcUrls.default.webSocket)==null?void 0:c[0]);if(!l)throw new Og;return Yc({key:t,name:n,async request({method:E,params:d}){const p={method:E,params:d},h=await Tp(l),{error:b,result:g}=await n4.webSocketAsync(h,{body:p,timeout:f});if(b)throw new a5({body:p,error:b,url:l});return g},retryCount:s,retryDelay:r,timeout:f,type:"webSocket"},{getSocket(){return Tp(l)},async subscribe({params:E,onData:d,onError:p}){const h=await Tp(l),{result:b}=await new Promise((g,m)=>n4.webSocket(h,{body:{method:"eth_subscribe",params:E},onResponse(A){if(A.error){m(A.error),p==null||p(A.error);return}if(typeof A.id=="number"){g(A);return}A.method==="eth_subscription"&&d(A.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(g=>n4.webSocket(h,{body:{method:"eth_unsubscribe",params:[b]},onResponse:g}))}}}})}}const HX="0x0000000000000000000000000000000000000000",GX=2n**(8n-1n)-1n,VX=2n**(16n-1n)-1n,KX=2n**(24n-1n)-1n,QX=2n**(32n-1n)-1n,JX=2n**(40n-1n)-1n,YX=2n**(48n-1n)-1n,ZX=2n**(56n-1n)-1n,XX=2n**(64n-1n)-1n,u00=2n**(72n-1n)-1n,e00=2n**(80n-1n)-1n,t00=2n**(88n-1n)-1n,n00=2n**(96n-1n)-1n,r00=2n**(104n-1n)-1n,i00=2n**(112n-1n)-1n,a00=2n**(120n-1n)-1n,o00=2n**(128n-1n)-1n,s00=2n**(136n-1n)-1n,f00=2n**(144n-1n)-1n,l00=2n**(152n-1n)-1n,c00=2n**(160n-1n)-1n,E00=2n**(168n-1n)-1n,d00=2n**(176n-1n)-1n,p00=2n**(184n-1n)-1n,h00=2n**(192n-1n)-1n,C00=2n**(200n-1n)-1n,m00=2n**(208n-1n)-1n,g00=2n**(216n-1n)-1n,b00=2n**(224n-1n)-1n,A00=2n**(232n-1n)-1n,y00=2n**(240n-1n)-1n,v00=2n**(248n-1n)-1n,B00=2n**(256n-1n)-1n,F00=-(2n**(8n-1n)),D00=-(2n**(16n-1n)),w00=-(2n**(24n-1n)),x00=-(2n**(32n-1n)),k00=-(2n**(40n-1n)),_00=-(2n**(48n-1n)),S00=-(2n**(56n-1n)),T00=-(2n**(64n-1n)),P00=-(2n**(72n-1n)),O00=-(2n**(80n-1n)),I00=-(2n**(88n-1n)),N00=-(2n**(96n-1n)),R00=-(2n**(104n-1n)),M00=-(2n**(112n-1n)),j00=-(2n**(120n-1n)),z00=-(2n**(128n-1n)),L00=-(2n**(136n-1n)),$00=-(2n**(144n-1n)),U00=-(2n**(152n-1n)),W00=-(2n**(160n-1n)),q00=-(2n**(168n-1n)),H00=-(2n**(176n-1n)),G00=-(2n**(184n-1n)),V00=-(2n**(192n-1n)),K00=-(2n**(200n-1n)),Q00=-(2n**(208n-1n)),J00=-(2n**(216n-1n)),Y00=-(2n**(224n-1n)),Z00=-(2n**(232n-1n)),X00=-(2n**(240n-1n)),uu0=-(2n**(248n-1n)),eu0=-(2n**(256n-1n)),tu0=2n**8n-1n,nu0=2n**16n-1n,ru0=2n**24n-1n,iu0=2n**32n-1n,au0=2n**40n-1n,ou0=2n**48n-1n,su0=2n**56n-1n,fu0=2n**64n-1n,lu0=2n**72n-1n,cu0=2n**80n-1n,Eu0=2n**88n-1n,du0=2n**96n-1n,pu0=2n**104n-1n,hu0=2n**112n-1n,Cu0=2n**120n-1n,mu0=2n**128n-1n,gu0=2n**136n-1n,bu0=2n**144n-1n,Au0=2n**152n-1n,yu0=2n**160n-1n,vu0=2n**168n-1n,Bu0=2n**176n-1n,Fu0=2n**184n-1n,Du0=2n**192n-1n,wu0=2n**200n-1n,xu0=2n**208n-1n,ku0=2n**216n-1n,_u0=2n**224n-1n,Su0=2n**232n-1n,Tu0=2n**240n-1n,Pu0=2n**248n-1n,Ou0=2n**256n-1n,Iu0="0x0000000000000000000000000000000000000000000000000000000000000000",Np="/docs/contract/decodeDeployData";function Nu0({abi:u,bytecode:e,data:t}){if(t===e)return{bytecode:e};const n=u.find(i=>"type"in i&&i.type==="constructor");if(!n)throw new rg({docsPath:Np});if(!("inputs"in n))throw new ql({docsPath:Np});if(!n.inputs||n.inputs.length===0)throw new ql({docsPath:Np});return{args:qo(n.inputs,`0x${t.replace(e,"")}`),bytecode:e}}function Ru0({r:u,yParityAndS:e}){const t=ni(e),n=t[0]&128?28n:27n,r=t;return n===28n&&(r[0]&=127),{r:u,s:pt(r),v:n}}function Mu0(u,e,t,n){if(typeof u.setBigUint64=="function")return u.setBigUint64(e,t,n);const r=BigInt(32),i=BigInt(4294967295),a=Number(t>>r&i),o=Number(t&i),s=n?4:0,f=n?0:4;u.setUint32(e+s,a,n),u.setUint32(e+f,o,n)}class ju0 extends cg{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Dp(this.buffer)}update(e){a3(this);const{view:t,buffer:n,blockLen:r}=this;e=ZE(e);const i=e.length;for(let a=0;ar-a&&(this.process(n,0),a=0);for(let c=a;cl.length)throw new Error("_sha2: outputLen bigger than state");for(let c=0;cu&e^~u&t,Lu0=(u,e,t)=>u&e^u&t^e&t,$u0=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]),di=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),pi=new Uint32Array(64);class Uu0 extends ju0{constructor(){super(64,32,8,!1),this.A=di[0]|0,this.B=di[1]|0,this.C=di[2]|0,this.D=di[3]|0,this.E=di[4]|0,this.F=di[5]|0,this.G=di[6]|0,this.H=di[7]|0}get(){const{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let c=0;c<16;c++,t+=4)pi[c]=e.getUint32(t,!1);for(let c=16;c<64;c++){const E=pi[c-15],d=pi[c-2],p=Hn(E,7)^Hn(E,18)^E>>>3,h=Hn(d,17)^Hn(d,19)^d>>>10;pi[c]=h+pi[c-7]+p+pi[c-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:f,H:l}=this;for(let c=0;c<64;c++){const E=Hn(o,6)^Hn(o,11)^Hn(o,25),d=l+E+zu0(o,s,f)+$u0[c]+pi[c]|0,h=(Hn(n,2)^Hn(n,13)^Hn(n,22))+Lu0(n,r,i)|0;l=f,f=s,s=o,o=a+d|0,a=i,i=r,r=n,n=d+h|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,f=f+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,f,l)}roundClean(){pi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const i9=oP(()=>new Uu0);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const oe=BigInt(0),Lu=BigInt(1),Oa=BigInt(2),Wu0=BigInt(3),iC=BigInt(4),BB=BigInt(5),FB=BigInt(8);BigInt(9);BigInt(16);function ae(u,e){const t=u%e;return t>=oe?t:e+t}function qu0(u,e,t){if(t<=oe||e 0");if(t===Lu)return oe;let n=Lu;for(;e>oe;)e&Lu&&(n=n*u%t),u=u*u%t,e>>=Lu;return n}function qt(u,e,t){let n=u;for(;e-- >oe;)n*=n,n%=t;return n}function aC(u,e){if(u===oe||e<=oe)throw new Error(`invert: expected positive integers, got n=${u} mod=${e}`);let t=ae(u,e),n=e,r=oe,i=Lu;for(;t!==oe;){const o=n/t,s=n%t,f=r-i*o;n=t,t=s,r=i,i=f}if(n!==Lu)throw new Error("invert: does not exist");return ae(r,e)}function Hu0(u){const e=(u-Lu)/Oa;let t,n,r;for(t=u-Lu,n=0;t%Oa===oe;t/=Oa,n++);for(r=Oa;r(n[r]="function",n),e);return J3(u,t)}function Ku0(u,e,t){if(t 0");if(t===oe)return u.ONE;if(t===Lu)return e;let n=u.ONE,r=e;for(;t>oe;)t&Lu&&(n=u.mul(n,r)),r=u.sqr(r),t>>=Lu;return n}function Qu0(u,e){const t=new Array(e.length),n=e.reduce((i,a,o)=>u.is0(a)?i:(t[o]=i,u.mul(i,a)),u.ONE),r=u.inv(n);return e.reduceRight((i,a,o)=>u.is0(a)?i:(t[o]=u.mul(i,t[o]),u.mul(i,a)),r),t}function TO(u,e){const t=e!==void 0?e:u.toString(2).length,n=Math.ceil(t/8);return{nBitLength:t,nByteLength:n}}function Ju0(u,e,t=!1,n={}){if(u<=oe)throw new Error(`Expected Field ORDER > 0, got ${u}`);const{nBitLength:r,nByteLength:i}=TO(u,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const a=Gu0(u),o=Object.freeze({ORDER:u,BITS:r,BYTES:i,MASK:ub(r),ZERO:oe,ONE:Lu,create:s=>ae(s,u),isValid:s=>{if(typeof s!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof s}`);return oe<=s&&ss===oe,isOdd:s=>(s&Lu)===Lu,neg:s=>ae(-s,u),eql:(s,f)=>s===f,sqr:s=>ae(s*s,u),add:(s,f)=>ae(s+f,u),sub:(s,f)=>ae(s-f,u),mul:(s,f)=>ae(s*f,u),pow:(s,f)=>Ku0(o,s,f),div:(s,f)=>ae(s*aC(f,u),u),sqrN:s=>s*s,addN:(s,f)=>s+f,subN:(s,f)=>s-f,mulN:(s,f)=>s*f,inv:s=>aC(s,u),sqrt:n.sqrt||(s=>a(o,s)),invertBatch:s=>Qu0(o,s),cmov:(s,f,l)=>l?f:s,toBytes:s=>t?Xg(s,i):la(s,i),fromBytes:s=>{if(s.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${s.length}`);return t?Zg(s):Ve(s)}});return Object.freeze(o)}function PO(u){if(typeof u!="bigint")throw new Error("field order must be bigint");const e=u.toString(2).length;return Math.ceil(e/8)}function OO(u){const e=PO(u);return e+Math.ceil(e/2)}function Yu0(u,e,t=!1){const n=u.length,r=PO(e),i=OO(e);if(n<16||n1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const a=t?Ve(u):Zg(u),o=ae(a,e-Lu)+Lu;return t?Xg(o,r):la(o,r)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Zu0=BigInt(0),Rp=BigInt(1);function Xu0(u,e){const t=(r,i)=>{const a=i.negate();return r?a:i},n=r=>{const i=Math.ceil(e/r)+1,a=2**(r-1);return{windows:i,windowSize:a}};return{constTimeNegate:t,unsafeLadder(r,i){let a=u.ZERO,o=r;for(;i>Zu0;)i&Rp&&(a=a.add(o)),o=o.double(),i>>=Rp;return a},precomputeWindow(r,i){const{windows:a,windowSize:o}=n(i),s=[];let f=r,l=f;for(let c=0;c>=d,b>s&&(b-=E,a+=Rp);const g=h,m=h+Math.abs(b)-1,A=p%2!==0,y=b<0;b===0?l=l.add(t(A,i[g])):f=f.add(t(y,i[m]))}return{p:f,f:l}},wNAFCached(r,i,a,o){const s=r._WINDOW_SIZE||1;let f=i.get(r);return f||(f=this.precomputeWindow(r,s),s!==1&&i.set(r,o(f))),this.wNAF(s,f,a)}}}function IO(u){return SO(u.Fp),J3(u,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...TO(u.n,u.nBitLength),...u,p:u.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function ue0(u){const e=IO(u);J3(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:t,Fp:n,a:r}=e;if(t){if(!n.eql(r,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof t!="object"||typeof t.beta!="bigint"||typeof t.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:ee0,hexToBytes:te0}=JZ,$a={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(u){const{Err:e}=$a;if(u.length<2||u[0]!==2)throw new e("Invalid signature integer tag");const t=u[1],n=u.subarray(2,t+2);if(!t||n.length!==t)throw new e("Invalid signature integer: wrong length");if(n[0]&128)throw new e("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:ee0(n),l:u.subarray(t+2)}},toSig(u){const{Err:e}=$a,t=typeof u=="string"?te0(u):u;if(!(t instanceof Uint8Array))throw new Error("ui8a expected");let n=t.length;if(n<2||t[0]!=48)throw new e("Invalid signature tag");if(t[1]!==n-2)throw new e("Invalid signature: incorrect length");const{d:r,l:i}=$a._parseInt(t.subarray(2)),{d:a,l:o}=$a._parseInt(i);if(o.length)throw new e("Invalid signature: left bytes after parsing");return{r,s:a}},hexFromSig(u){const e=f=>Number.parseInt(f[0],16)&8?"00"+f:f,t=f=>{const l=f.toString(16);return l.length&1?`0${l}`:l},n=e(t(u.s)),r=e(t(u.r)),i=n.length/2,a=r.length/2,o=t(i),s=t(a);return`30${t(a+i+4)}02${s}${r}02${o}${n}`}},Sn=BigInt(0),Nu=BigInt(1),hi=BigInt(2),a9=BigInt(3),DB=BigInt(4);function ne0(u){const e=ue0(u),{Fp:t}=e,n=e.toBytes||((p,h,b)=>{const g=h.toAffine();return St(Uint8Array.from([4]),t.toBytes(g.x),t.toBytes(g.y))}),r=e.fromBytes||(p=>{const h=p.subarray(1),b=t.fromBytes(h.subarray(0,t.BYTES)),g=t.fromBytes(h.subarray(t.BYTES,2*t.BYTES));return{x:b,y:g}});function i(p){const{a:h,b}=e,g=t.sqr(p),m=t.mul(g,p);return t.add(t.add(m,t.mul(p,h)),b)}if(!t.eql(t.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function a(p){return typeof p=="bigint"&&Snt.eql(A,t.ZERO);return m(b)&&m(g)?c.ZERO:new c(b,g,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(h){const b=t.invertBatch(h.map(g=>g.pz));return h.map((g,m)=>g.toAffine(b[m])).map(c.fromAffine)}static fromHex(h){const b=c.fromAffine(r(_e("pointHex",h)));return b.assertValidity(),b}static fromPrivateKey(h){return c.BASE.multiply(s(h))}_setWindowSize(h){this._WINDOW_SIZE=h,f.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!t.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:h,y:b}=this.toAffine();if(!t.isValid(h)||!t.isValid(b))throw new Error("bad point: x or y not FE");const g=t.sqr(b),m=i(h);if(!t.eql(g,m))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:h}=this.toAffine();if(t.isOdd)return!t.isOdd(h);throw new Error("Field doesn't support isOdd")}equals(h){l(h);const{px:b,py:g,pz:m}=this,{px:A,py:y,pz:B}=h,v=t.eql(t.mul(b,B),t.mul(A,m)),C=t.eql(t.mul(g,B),t.mul(y,m));return v&&C}negate(){return new c(this.px,t.neg(this.py),this.pz)}double(){const{a:h,b}=e,g=t.mul(b,a9),{px:m,py:A,pz:y}=this;let B=t.ZERO,v=t.ZERO,C=t.ZERO,D=t.mul(m,m),T=t.mul(A,A),_=t.mul(y,y),$=t.mul(m,A);return $=t.add($,$),C=t.mul(m,y),C=t.add(C,C),B=t.mul(h,C),v=t.mul(g,_),v=t.add(B,v),B=t.sub(T,v),v=t.add(T,v),v=t.mul(B,v),B=t.mul($,B),C=t.mul(g,C),_=t.mul(h,_),$=t.sub(D,_),$=t.mul(h,$),$=t.add($,C),C=t.add(D,D),D=t.add(C,D),D=t.add(D,_),D=t.mul(D,$),v=t.add(v,D),_=t.mul(A,y),_=t.add(_,_),D=t.mul(_,$),B=t.sub(B,D),C=t.mul(_,T),C=t.add(C,C),C=t.add(C,C),new c(B,v,C)}add(h){l(h);const{px:b,py:g,pz:m}=this,{px:A,py:y,pz:B}=h;let v=t.ZERO,C=t.ZERO,D=t.ZERO;const T=e.a,_=t.mul(e.b,a9);let $=t.mul(b,A),u0=t.mul(g,y),e0=t.mul(m,B),o0=t.add(b,g),N=t.add(A,y);o0=t.mul(o0,N),N=t.add($,u0),o0=t.sub(o0,N),N=t.add(b,m);let R=t.add(A,B);return N=t.mul(N,R),R=t.add($,e0),N=t.sub(N,R),R=t.add(g,m),v=t.add(y,B),R=t.mul(R,v),v=t.add(u0,e0),R=t.sub(R,v),D=t.mul(T,N),v=t.mul(_,e0),D=t.add(v,D),v=t.sub(u0,D),D=t.add(u0,D),C=t.mul(v,D),u0=t.add($,$),u0=t.add(u0,$),e0=t.mul(T,e0),N=t.mul(_,N),u0=t.add(u0,e0),e0=t.sub($,e0),e0=t.mul(T,e0),N=t.add(N,e0),$=t.mul(u0,N),C=t.add(C,$),$=t.mul(R,N),v=t.mul(o0,v),v=t.sub(v,$),$=t.mul(o0,u0),D=t.mul(R,D),D=t.add(D,$),new c(v,C,D)}subtract(h){return this.add(h.negate())}is0(){return this.equals(c.ZERO)}wNAF(h){return d.wNAFCached(this,f,h,b=>{const g=t.invertBatch(b.map(m=>m.pz));return b.map((m,A)=>m.toAffine(g[A])).map(c.fromAffine)})}multiplyUnsafe(h){const b=c.ZERO;if(h===Sn)return b;if(o(h),h===Nu)return this;const{endo:g}=e;if(!g)return d.unsafeLadder(this,h);let{k1neg:m,k1:A,k2neg:y,k2:B}=g.splitScalar(h),v=b,C=b,D=this;for(;A>Sn||B>Sn;)A&Nu&&(v=v.add(D)),B&Nu&&(C=C.add(D)),D=D.double(),A>>=Nu,B>>=Nu;return m&&(v=v.negate()),y&&(C=C.negate()),C=new c(t.mul(C.px,g.beta),C.py,C.pz),v.add(C)}multiply(h){o(h);let b=h,g,m;const{endo:A}=e;if(A){const{k1neg:y,k1:B,k2neg:v,k2:C}=A.splitScalar(b);let{p:D,f:T}=this.wNAF(B),{p:_,f:$}=this.wNAF(C);D=d.constTimeNegate(y,D),_=d.constTimeNegate(v,_),_=new c(t.mul(_.px,A.beta),_.py,_.pz),g=D.add(_),m=T.add($)}else{const{p:y,f:B}=this.wNAF(b);g=y,m=B}return c.normalizeZ([g,m])[0]}multiplyAndAddUnsafe(h,b,g){const m=c.BASE,A=(B,v)=>v===Sn||v===Nu||!B.equals(m)?B.multiplyUnsafe(v):B.multiply(v),y=A(this,b).add(A(h,g));return y.is0()?void 0:y}toAffine(h){const{px:b,py:g,pz:m}=this,A=this.is0();h==null&&(h=A?t.ONE:t.inv(m));const y=t.mul(b,h),B=t.mul(g,h),v=t.mul(m,h);if(A)return{x:t.ZERO,y:t.ZERO};if(!t.eql(v,t.ONE))throw new Error("invZ was invalid");return{x:y,y:B}}isTorsionFree(){const{h,isTorsionFree:b}=e;if(h===Nu)return!0;if(b)return b(c,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h,clearCofactor:b}=e;return h===Nu?this:b?b(c,this):this.multiplyUnsafe(e.h)}toRawBytes(h=!0){return this.assertValidity(),n(c,this,h)}toHex(h=!0){return y3(this.toRawBytes(h))}}c.BASE=new c(e.Gx,e.Gy,t.ONE),c.ZERO=new c(t.ZERO,t.ONE,t.ZERO);const E=e.nBitLength,d=Xu0(c,e.endo?Math.ceil(E/2):E);return{CURVE:e,ProjectivePoint:c,normPrivateKeyToScalar:s,weierstrassEquation:i,isWithinCurveOrder:a}}function re0(u){const e=IO(u);return J3(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function ie0(u){const e=re0(u),{Fp:t,n}=e,r=t.BYTES+1,i=2*t.BYTES+1;function a(N){return Sny3(la(N,e.nByteLength));function p(N){const R=n>>Nu;return N>R}function h(N){return p(N)?o(-N):N}const b=(N,R,V)=>Ve(N.slice(R,V));class g{constructor(R,V,G){this.r=R,this.s=V,this.recovery=G,this.assertValidity()}static fromCompact(R){const V=e.nByteLength;return R=_e("compactSignature",R,V*2),new g(b(R,0,V),b(R,V,2*V))}static fromDER(R){const{r:V,s:G}=$a.toSig(_e("DER",R));return new g(V,G)}assertValidity(){if(!E(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!E(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(R){return new g(this.r,this.s,R)}recoverPublicKey(R){const{r:V,s:G,recovery:H}=this,L=C(_e("msgHash",R));if(H==null||![0,1,2,3].includes(H))throw new Error("recovery id invalid");const n0=H===2||H===3?V+e.n:V;if(n0>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const s0=H&1?"03":"02",a0=f.fromHex(s0+d(n0)),K=s(n0),v0=o(-L*K),_0=o(G*K),O0=f.BASE.multiplyAndAddUnsafe(a0,v0,_0);if(!O0)throw new Error("point at infinify");return O0.assertValidity(),O0}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new g(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return v3(this.toDERHex())}toDERHex(){return $a.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return v3(this.toCompactHex())}toCompactHex(){return d(this.r)+d(this.s)}}const m={isValidPrivateKey(N){try{return l(N),!0}catch{return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{const N=OO(e.n);return Yu0(e.randomBytes(N),e.n)},precompute(N=8,R=f.BASE){return R._setWindowSize(N),R.multiply(BigInt(3)),R}};function A(N,R=!0){return f.fromPrivateKey(N).toRawBytes(R)}function y(N){const R=N instanceof Uint8Array,V=typeof N=="string",G=(R||V)&&N.length;return R?G===r||G===i:V?G===2*r||G===2*i:N instanceof f}function B(N,R,V=!0){if(y(N))throw new Error("first arg must be private key");if(!y(R))throw new Error("second arg must be public key");return f.fromHex(R).multiply(l(N)).toRawBytes(V)}const v=e.bits2int||function(N){const R=Ve(N),V=N.length*8-e.nBitLength;return V>0?R>>BigInt(V):R},C=e.bits2int_modN||function(N){return o(v(N))},D=ub(e.nBitLength);function T(N){if(typeof N!="bigint")throw new Error("bigint expected");if(!(Sn<=N&&Nw0 in V))throw new Error("sign() legacy options not supported");const{hash:G,randomBytes:H}=e;let{lowS:L,prehash:n0,extraEntropy:s0}=V;L==null&&(L=!0),N=_e("msgHash",N),n0&&(N=_e("prehashed msgHash",G(N)));const a0=C(N),K=l(R),v0=[T(K),T(a0)];if(s0!=null){const w0=s0===!0?H(t.BYTES):s0;v0.push(_e("extraEntropy",w0))}const _0=St(...v0),O0=a0;function T0(w0){const k=v(w0);if(!E(k))return;const S=s(k),P=f.BASE.multiply(k).toAffine(),z=o(P.x);if(z===Sn)return;const M=o(S*o(O0+z*K));if(M===Sn)return;let q=(P.x===z?0:2)|Number(P.y&Nu),J=M;return L&&p(M)&&(J=h(M),q^=1),new g(z,J,q)}return{seed:_0,k2sig:T0}}const $={lowS:e.lowS,prehash:!1},u0={lowS:e.lowS,prehash:!1};function e0(N,R,V=$){const{seed:G,k2sig:H}=_(N,R,V),L=e;return BO(L.hash.outputLen,L.nByteLength,L.hmac)(G,H)}f.BASE._setWindowSize(8);function o0(N,R,V,G=u0){var P;const H=N;if(R=_e("msgHash",R),V=_e("publicKey",V),"strict"in G)throw new Error("options.strict was renamed to lowS");const{lowS:L,prehash:n0}=G;let s0,a0;try{if(typeof H=="string"||H instanceof Uint8Array)try{s0=g.fromDER(H)}catch(z){if(!(z instanceof $a.Err))throw z;s0=g.fromCompact(H)}else if(typeof H=="object"&&typeof H.r=="bigint"&&typeof H.s=="bigint"){const{r:z,s:M}=H;s0=new g(z,M)}else throw new Error("PARSE");a0=f.fromHex(V)}catch(z){if(z.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(L&&s0.hasHighS())return!1;n0&&(R=e.hash(R));const{r:K,s:v0}=s0,_0=C(R),O0=s(v0),T0=o(_0*O0),w0=o(K*O0),k=(P=f.BASE.multiplyAndAddUnsafe(a0,T0,w0))==null?void 0:P.toAffine();return k?o(k.x)===K:!1}return{CURVE:e,getPublicKey:A,getSharedSecret:B,sign:e0,verify:o0,ProjectivePoint:f,Signature:g,utils:m}}function ae0(u,e){const t=u.ORDER;let n=Sn;for(let p=t-Nu;p%hi===Sn;p/=hi)n+=Nu;const r=n,i=hi<{let b=c,g=u.pow(h,f),m=u.sqr(g);m=u.mul(m,h);let A=u.mul(p,m);A=u.pow(A,s),A=u.mul(A,g),g=u.mul(A,h),m=u.mul(A,p);let y=u.mul(m,g);A=u.pow(y,l);let B=u.eql(A,u.ONE);g=u.mul(m,E),A=u.mul(y,b),m=u.cmov(g,m,B),y=u.cmov(A,y,B);for(let v=r;v>Nu;v--){let C=v-hi;C=hi<{let m=u.sqr(g);const A=u.mul(b,g);m=u.mul(m,A);let y=u.pow(m,p);y=u.mul(y,A);const B=u.mul(y,h),v=u.mul(u.sqr(y),g),C=u.eql(v,b);let D=u.cmov(B,y,C);return{isValid:C,value:D}}}return d}function oe0(u,e){if(SO(u),!u.isValid(e.A)||!u.isValid(e.B)||!u.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const t=ae0(u,e.Z);if(!u.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let r,i,a,o,s,f,l,c;r=u.sqr(n),r=u.mul(r,e.Z),i=u.sqr(r),i=u.add(i,r),a=u.add(i,u.ONE),a=u.mul(a,e.B),o=u.cmov(e.Z,u.neg(i),!u.eql(i,u.ZERO)),o=u.mul(o,e.A),i=u.sqr(a),f=u.sqr(o),s=u.mul(f,e.A),i=u.add(i,s),i=u.mul(i,a),f=u.mul(f,o),s=u.mul(f,e.B),i=u.add(i,s),l=u.mul(r,a);const{isValid:E,value:d}=t(i,f);c=u.mul(r,n),c=u.mul(c,d),l=u.cmov(l,a,E),c=u.cmov(c,d,E);const p=u.isOdd(n)===u.isOdd(c);return c=u.cmov(u.neg(c),c,p),l=u.div(l,o),{x:l,y:c}}}function se0(u){if(u instanceof Uint8Array)return u;if(typeof u=="string")return b5(u);throw new Error("DST must be Uint8Array or string")}const fe0=Ve;function vi(u,e){if(u<0||u>=1<<8*e)throw new Error(`bad I2OSP call: value=${u} length=${e}`);const t=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)t[n]=u&255,u>>>=8;return new Uint8Array(t)}function le0(u,e){const t=new Uint8Array(u.length);for(let n=0;n255&&(e=n(St(b5("H2C-OVERSIZE-DST-"),e)));const{outputLen:r,blockLen:i}=n,a=Math.ceil(t/r);if(a>255)throw new Error("Invalid xmd length");const o=St(e,vi(e.length,1)),s=vi(0,i),f=vi(t,2),l=new Array(a),c=n(St(s,u,f,vi(0,1),o));l[0]=n(St(c,vi(1,1),o));for(let d=1;d<=a;d++){const p=[le0(c,l[d-1]),vi(d+1,1),o];l[d]=n(St(...p))}return St(...l).slice(0,t)}function Ee0(u,e,t,n,r){if(Gl(u),Gl(e),eb(t),e.length>255){const i=Math.ceil(2*n/8);e=r.create({dkLen:i}).update(b5("H2C-OVERSIZE-DST-")).update(e).digest()}if(t>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return r.create({dkLen:t}).update(u).update(vi(t,2)).update(e).update(vi(e.length,1)).digest()}function wB(u,e,t){J3(t,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:n,k:r,m:i,hash:a,expand:o,DST:s}=t;Gl(u),eb(e);const f=se0(s),l=n.toString(2).length,c=Math.ceil((l+r)/8),E=e*i*c;let d;if(o==="xmd")d=ce0(u,f,E,a);else if(o==="xof")d=Ee0(u,f,E,r,a);else if(o==="_internal_pass")d=u;else throw new Error('expand must be "xmd" or "xof"');const p=new Array(e);for(let h=0;hArray.from(n).reverse());return(n,r)=>{const[i,a,o,s]=t.map(f=>f.reduce((l,c)=>u.add(u.mul(l,n),c)));return n=u.div(i,a),r=u.mul(r,u.div(o,s)),{x:n,y:r}}}function pe0(u,e,t){if(typeof e!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(n,r){const i=wB(n,2,{...t,DST:t.DST,...r}),a=u.fromAffine(e(i[0])),o=u.fromAffine(e(i[1])),s=a.add(o).clearCofactor();return s.assertValidity(),s},encodeToCurve(n,r){const i=wB(n,1,{...t,DST:t.encodeDST,...r}),a=u.fromAffine(e(i[0])).clearCofactor();return a.assertValidity(),a}}}let NO=class extends cg{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,AJ(e);const n=ZE(t);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let a=0;anew NO(u,e).update(t).digest();RO.create=(u,e)=>new NO(u,e);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function he0(u){return{hash:u,hmac:(e,...t)=>RO(u,e,SJ(...t)),randomBytes:sP}}function Ce0(u,e){const t=n=>ie0({...u,...he0(n)});return Object.freeze({...t(e),create:t})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const A5=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),o9=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),MO=BigInt(1),s9=BigInt(2),xB=(u,e)=>(u+e/s9)/e;function jO(u){const e=A5,t=BigInt(3),n=BigInt(6),r=BigInt(11),i=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),f=u*u*u%e,l=f*f*u%e,c=qt(l,t,e)*l%e,E=qt(c,t,e)*l%e,d=qt(E,s9,e)*f%e,p=qt(d,r,e)*d%e,h=qt(p,i,e)*p%e,b=qt(h,o,e)*h%e,g=qt(b,s,e)*b%e,m=qt(g,o,e)*h%e,A=qt(m,t,e)*l%e,y=qt(A,a,e)*p%e,B=qt(y,n,e)*f%e,v=qt(B,s9,e);if(!ca.eql(ca.sqr(v),u))throw new Error("Cannot find square root");return v}const ca=Ju0(A5,void 0,void 0,{sqrt:jO}),Se=Ce0({a:BigInt(0),b:BigInt(7),Fp:ca,n:o9,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:u=>{const e=o9,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-MO*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=t,a=BigInt("0x100000000000000000000000000000000"),o=xB(i*u,e),s=xB(-n*u,e);let f=ae(u-o*t-s*r,e),l=ae(-o*n-s*i,e);const c=f>a,E=l>a;if(c&&(f=e-f),E&&(l=e-l),f>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+u);return{k1neg:c,k1:f,k2neg:E,k2:l}}}},i9),y5=BigInt(0),zO=u=>typeof u=="bigint"&&y5typeof u=="bigint"&&y5r.charCodeAt(0)));t=St(n,n),kB[u]=t}return i9(St(t,...e))}const tb=u=>u.toRawBytes(!0).slice(1),oC=u=>la(u,32),Mp=u=>ae(u,A5),Vl=u=>ae(u,o9),nb=Se.ProjectivePoint,ge0=(u,e,t)=>nb.BASE.multiplyAndAddUnsafe(u,e,t);function sC(u){let e=Se.utils.normPrivateKeyToScalar(u),t=nb.fromPrivateKey(e);return{scalar:t.hasEvenY()?e:Vl(-e),bytes:tb(t)}}function LO(u){if(!zO(u))throw new Error("bad x: need 0 < x < p");const e=Mp(u*u),t=Mp(e*u+BigInt(7));let n=jO(t);n%s9!==y5&&(n=Mp(-n));const r=new nb(u,n,MO);return r.assertValidity(),r}function $O(...u){return Vl(Ve(f9("BIP0340/challenge",...u)))}function be0(u){return sC(u).bytes}function Ae0(u,e,t=sP(32)){const n=_e("message",u),{bytes:r,scalar:i}=sC(e),a=_e("auxRand",t,32),o=oC(i^Ve(f9("BIP0340/aux",a))),s=f9("BIP0340/nonce",o,r,n),f=Vl(Ve(s));if(f===y5)throw new Error("sign failed: k is zero");const{bytes:l,scalar:c}=sC(f),E=$O(l,r,n),d=new Uint8Array(64);if(d.set(l,0),d.set(oC(Vl(c+E*i)),32),!UO(d,n,r))throw new Error("sign: Invalid signature produced");return d}function UO(u,e,t){const n=_e("signature",u,64),r=_e("message",e),i=_e("publicKey",t,32);try{const a=LO(Ve(i)),o=Ve(n.subarray(0,32));if(!zO(o))return!1;const s=Ve(n.subarray(32,64));if(!me0(s))return!1;const f=$O(oC(o),tb(a),r),l=ge0(a,s,Vl(-f));return!(!l||!l.hasEvenY()||l.toAffine().x!==o)}catch{return!1}}const ye0={getPublicKey:be0,sign:Ae0,verify:UO,utils:{randomPrivateKey:Se.utils.randomPrivateKey,lift_x:LO,pointToBytes:tb,numberToBytesBE:la,bytesToNumberBE:Ve,taggedHash:f9,mod:ae}},ve0=de0(ca,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(u=>u.map(e=>BigInt(e)))),Be0=oe0(ca,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:ca.create(BigInt("-11"))}),WO=pe0(Se.ProjectivePoint,u=>{const{x:e,y:t}=Be0(ca.create(u[0]));return ve0(e,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:ca.ORDER,m:1,k:128,expand:"xmd",hash:i9}),Fe0=WO.hashToCurve,De0=WO.encodeToCurve,we0=Object.freeze(Object.defineProperty({__proto__:null,encodeToCurve:De0,hashToCurve:Fe0,schnorr:ye0,secp256k1:Se},Symbol.toStringTag,{value:"Module"}));function xe0(u){const{r:e,s:t}=Se.Signature.fromCompact(u.slice(2,130));return{r:S0(e,{size:32}),yParityAndS:S0(t,{size:32})}}function ke0(u){const{r:e,s:t}=Se.Signature.fromCompact(u.slice(2,130)),n=BigInt(`0x${u.slice(130)}`);return{r:S0(e,{size:32}),s:S0(t,{size:32}),v:n}}function _e0(u){const{r:e,s:t,v:n}=u,r=n-27n;let i=t;if(r===1n){const a=ni(t);a[0]|=128,i=pt(a)}return{r:e,yParityAndS:i}}function Se0({r:u,yParityAndS:e}){return`0x${new Se.Signature(xu(u),xu(e)).toCompactHex()}`}function Te0({r:u,s:e,v:t}){return`0x${new Se.Signature(xu(u),xu(e)).toCompactHex()}${J0(t).slice(2)}`}const Pe0=Object.freeze(Object.defineProperty({__proto__:null,AbiConstructorNotFoundError:rg,AbiConstructorParamsNotFoundError:ql,AbiDecodingDataSizeInvalidError:gJ,AbiDecodingDataSizeTooSmallError:YE,AbiDecodingZeroDataError:Hc,AbiEncodingArrayLengthMismatchError:GT,AbiEncodingBytesSizeMismatchError:VT,AbiEncodingLengthMismatchError:ig,AbiErrorInputsNotFoundError:KT,AbiErrorNotFoundError:Vh,AbiErrorSignatureNotFoundError:ag,AbiEventNotFoundError:Kh,AbiEventSignatureEmptyTopicsError:QT,AbiEventSignatureNotFoundError:JT,AbiFunctionNotFoundError:_o,AbiFunctionOutputsNotFoundError:og,AbiFunctionSignatureNotFoundError:YT,BaseError:f0,BaseFeeScalarError:kP,BlockNotFoundError:Bg,BytesSizeMismatchError:sg,CallExecutionError:yg,ChainDisconnectedError:b3,ChainDoesNotSupportContract:W2,ChainMismatchError:bT,ChainNotFoundError:AT,CircularReferenceError:UT,ClientChainNotConfiguredError:eg,ContractFunctionExecutionError:r5,ContractFunctionRevertedError:e9,ContractFunctionZeroDataError:FP,DataLengthTooLongError:_Q,DataLengthTooShortError:SQ,DecodeLogDataMismatch:oa,DecodeLogTopicsMismatch:Wo,Eip1559FeesNotSupportedError:s5,EnsAvatarInvalidNftUriError:gs,EnsAvatarUnsupportedNamespaceError:WP,EnsAvatarUriResolutionError:p5,EstimateGasExecutionError:xP,ExecutionRevertedError:La,FeeCapTooHighError:aa,FeeCapTooLowError:q2,FeeConflictError:gP,FilterTypeNotSupportedError:nP,HttpRequestError:ea,InsufficientFundsError:K2,IntegerOutOfRangeError:lT,InternalRpcError:So,IntrinsicGasTooHighError:Q2,IntrinsicGasTooLowError:J2,InvalidAbiDecodingTypeError:XT,InvalidAbiEncodingTypeError:ZT,InvalidAbiItemError:TT,InvalidAbiParameterError:OT,InvalidAbiParametersError:IT,InvalidAbiTypeParameterError:zT,InvalidAddressError:ht,InvalidArrayError:uP,InvalidBytesBooleanError:cT,InvalidChainIdError:KE,InvalidDefinitionTypeError:eP,InvalidFunctionModifierError:jT,InvalidHexBooleanError:ET,InvalidHexValueError:dT,InvalidInputRpcError:sa,InvalidLegacyVError:gg,InvalidModifierError:MT,InvalidParameterError:NT,InvalidParamsRpcError:l3,InvalidParenthesisError:WT,InvalidRequestRpcError:s3,InvalidSerializableTransactionError:bP,InvalidSerializedTransactionError:n5,InvalidSerializedTransactionTypeError:AP,InvalidSignatureError:Ls,InvalidStorageKeySizeError:yP,InvalidStructSignatureError:$T,JsonRpcVersionUnsupportedError:h3,LimitExceededRpcError:p3,MaxFeePerGasTooLowError:_P,MethodNotFoundRpcError:f3,MethodNotSupportedRpcError:d3,NonceMaxValueError:V2,NonceTooHighError:H2,NonceTooLowError:G2,OffsetOutOfBoundsError:TQ,ParseRpcError:o3,ProviderDisconnectedError:g3,ProviderRpcError:Ho,RawContractError:i5,ResourceNotFoundRpcError:c3,ResourceUnavailableRpcError:Yr,RpcError:ut,RpcRequestError:a5,SizeExceedsPaddingSizeError:Y7,SizeOverflowError:pT,SliceOffsetOutOfBoundsError:J7,SolidityProtectedKeywordError:RT,SwitchChainError:jn,TimeoutError:t9,TipAboveFeeCapError:i3,TransactionExecutionError:vP,TransactionNotFoundError:bg,TransactionReceiptNotFoundError:Ag,TransactionRejectedRpcError:E3,TransactionTypeNotSupportedError:Y2,UnauthorizedProviderError:C3,UnknownNodeError:Wc,UnknownRpcError:wP,UnknownSignatureError:LT,UnknownTypeError:PT,UnsupportedPackedAbiType:tP,UnsupportedProviderMethodError:m3,UrlRequiredError:Og,UserRejectedRequestError:Gu,WaitForTransactionReceiptTimeoutError:BP,WebSocketRequestError:DP,assertCurrentChain:Sg,assertRequest:G3,assertTransactionEIP1559:Hg,assertTransactionEIP2930:Gg,assertTransactionLegacy:Vg,boolToBytes:CT,boolToHex:qE,bytesToBigInt:tC,bytesToBigint:tC,bytesToBool:aO,bytesToHex:pt,bytesToNumber:oO,bytesToRlp:Oe0,bytesToString:sO,ccipFetch:Mg,checksumAddress:Gc,compactSignatureToHex:Se0,compactSignatureToSignature:Ru0,concat:En,concatBytes:vT,concatHex:ri,createClient:E5,createPublicClient:rC,createTestClient:IX,createTransport:Yc,createWalletClient:Y3,custom:Q3,decodeAbiParameters:qo,decodeDeployData:Nu0,decodeErrorResult:mg,decodeEventLog:V3,decodeFunctionData:pZ,decodeFunctionResult:Go,defineBlock:MQ,defineChain:WE,defineTransaction:RQ,defineTransactionReceipt:zQ,defineTransactionRequest:LQ,domainSeparator:dZ,encodeAbiParameters:ai,encodeDeployData:$g,encodeErrorResult:hZ,encodeEventTopics:q3,encodeFunctionData:oi,encodeFunctionResult:mZ,encodePacked:gZ,etherUnits:tg,extractChain:fZ,fallback:Xh,formatBlock:VE,formatEther:t5,formatGwei:Ge,formatLog:cn,formatTransaction:GE,formatTransactionReceipt:ug,formatTransactionRequest:Uo,formatUnits:Wl,fromBytes:AZ,fromHex:NQ,fromRlp:Ug,getAbiItem:ga,getAddress:Su,getChainContractAddress:Vo,getContract:wY,getContractAddress:bZ,getContractError:A3,getCreate2Address:iO,getCreateAddress:rO,getEventSelector:XE,getEventSignature:rP,getFunctionSelector:W3,getFunctionSignature:fg,getSerializedTransactionType:CO,getTransactionType:Dg,getTypesForEIP712Domain:C5,gweiUnits:ng,hashDomain:zg,hashMessage:qg,hashTypedData:jg,hexToBigInt:xu,hexToBool:Z7,hexToBytes:ni,hexToCompactSignature:xe0,hexToNumber:fu,hexToRlp:Ie0,hexToSignature:ke0,hexToString:Uc,http:LP,isAddress:Qe,isAddressEqual:h5,isBytes:eC,isHash:cO,isHex:K0,keccak256:Hu,labelhash:UP,maxInt104:r00,maxInt112:i00,maxInt120:a00,maxInt128:o00,maxInt136:s00,maxInt144:f00,maxInt152:l00,maxInt16:VX,maxInt160:c00,maxInt168:E00,maxInt176:d00,maxInt184:p00,maxInt192:h00,maxInt200:C00,maxInt208:m00,maxInt216:g00,maxInt224:b00,maxInt232:A00,maxInt24:KX,maxInt240:y00,maxInt248:v00,maxInt256:B00,maxInt32:QX,maxInt40:JX,maxInt48:YX,maxInt56:ZX,maxInt64:XX,maxInt72:u00,maxInt8:GX,maxInt80:e00,maxInt88:t00,maxInt96:n00,maxUint104:pu0,maxUint112:hu0,maxUint120:Cu0,maxUint128:mu0,maxUint136:gu0,maxUint144:bu0,maxUint152:Au0,maxUint16:nu0,maxUint160:yu0,maxUint168:vu0,maxUint176:Bu0,maxUint184:Fu0,maxUint192:Du0,maxUint200:wu0,maxUint208:xu0,maxUint216:ku0,maxUint224:_u0,maxUint232:Su0,maxUint24:ru0,maxUint240:Tu0,maxUint248:Pu0,maxUint256:Ou0,maxUint32:iu0,maxUint40:au0,maxUint48:ou0,maxUint56:su0,maxUint64:fu0,maxUint72:lu0,maxUint8:tu0,maxUint80:cu0,maxUint88:Eu0,maxUint96:du0,minInt104:R00,minInt112:M00,minInt120:j00,minInt128:z00,minInt136:L00,minInt144:$00,minInt152:U00,minInt16:D00,minInt160:W00,minInt168:q00,minInt176:H00,minInt184:G00,minInt192:V00,minInt200:K00,minInt208:Q00,minInt216:J00,minInt224:Y00,minInt232:Z00,minInt24:w00,minInt240:X00,minInt248:uu0,minInt256:eu0,minInt32:x00,minInt40:k00,minInt48:_00,minInt56:S00,minInt64:T00,minInt72:P00,minInt8:F00,minInt80:O00,minInt88:I00,minInt96:N00,multicall3Abi:n9,namehash:dl,numberToBytes:mT,numberToHex:S0,offchainLookup:JP,offchainLookupAbiItem:Rg,offchainLookupSignature:QP,pad:Nn,padBytes:hT,padHex:Rn,parseAbi:dJ,parseAbiItem:pJ,parseAbiParameter:hJ,parseAbiParameters:CJ,parseEther:IZ,parseGwei:NZ,parseTransaction:wZ,parseUnits:Qg,presignMessagePrefix:dO,publicActions:wO,recoverAddress:Wg,recoverMessageAddress:pO,recoverPublicKey:EO,recoverTypedDataAddress:hO,rpcTransactionType:gT,serializeAccessList:Kg,serializeTransaction:SZ,signatureToCompactSignature:_e0,signatureToHex:Te0,size:$u,slice:yu,sliceBytes:hP,sliceHex:dg,stringToBytes:Er,stringToHex:$c,stringify:fe,testActions:xO,toBytes:Le,toHex:J0,toRlp:Ko,transactionType:X7,trim:He,validateTypedData:Lg,verifyMessage:FZ,verifyTypedData:DZ,walletActions:kO,webSocket:_O,weiUnits:yT,zeroAddress:HX,zeroHash:Iu0},Symbol.toStringTag,{value:"Module"}));function Ko(u,e="hex"){const t=qO(u),n=fO(new Uint8Array(t.length));return t.encode(n),e==="hex"?pt(n.bytes):n.bytes}function Oe0(u,e="bytes"){return Ko(u,e)}function Ie0(u,e="hex"){return Ko(u,e)}function qO(u){return Array.isArray(u)?Ne0(u.map(e=>qO(e))):Re0(u)}function Ne0(u){const e=u.reduce((r,i)=>r+i.length,0),t=HO(e);return{length:e<=55?1+e:1+t+e,encode(r){e<=55?r.pushByte(192+e):(r.pushByte(247+t),t===1?r.pushUint8(e):t===2?r.pushUint16(e):t===3?r.pushUint24(e):r.pushUint32(e));for(const{encode:i}of u)i(r)}}}function Re0(u){const e=typeof u=="string"?ni(u):u,t=HO(e.length);return{length:e.length===1&&e[0]<128?1:e.length<=55?1+e.length:1+t+e.length,encode(r){e.length===1&&e[0]<128?r.pushBytes(e):e.length<=55?(r.pushByte(128+e.length),r.pushBytes(e)):(r.pushByte(183+t),t===1?r.pushUint8(e.length):t===2?r.pushUint16(e.length):t===3?r.pushUint24(e.length):r.pushUint32(e.length),r.pushBytes(e))}}}function HO(u){if(u<2**8)return 1;if(u<2**16)return 2;if(u<2**24)return 3;if(u<2**32)return 4;throw new f0("Length is too large.")}const Me0=WE({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),GO=WE({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),je0=WE({id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/polygon_mumbai"]},public:{http:["https://rpc.ankr.com/polygon_mumbai"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0});var VO=class extends Error{constructor({chainId:u,connectorId:e}){super(`Chain "${u}" not configured for connector "${e}".`),this.name="ChainNotConfiguredForConnectorError"}},nt=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}};function To(u){return typeof u=="string"?Number.parseInt(u,u.trim().substring(0,2)==="0x"?16:10):typeof u=="bigint"?Number(u):u}var KO={exports:{}};(function(u){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(s,f,l){this.fn=s,this.context=f,this.once=l||!1}function i(s,f,l,c,E){if(typeof l!="function")throw new TypeError("The listener must be a function");var d=new r(l,c||s,E),p=t?t+f:f;return s._events[p]?s._events[p].fn?s._events[p]=[s._events[p],d]:s._events[p].push(d):(s._events[p]=d,s._eventsCount++),s}function a(s,f){--s._eventsCount===0?s._events=new n:delete s._events[f]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var f=[],l,c;if(this._eventsCount===0)return f;for(c in l=this._events)e.call(l,c)&&f.push(t?c.slice(1):c);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(l)):f},o.prototype.listeners=function(f){var l=t?t+f:f,c=this._events[l];if(!c)return[];if(c.fn)return[c.fn];for(var E=0,d=c.length,p=new Array(d);E{if(!e.has(u))throw TypeError("Cannot "+t)},W0=(u,e,t)=>(rb(u,e,"read from private field"),t?t.call(u):e.get(u)),Yu=(u,e,t)=>{if(e.has(u))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(u):e.set(u,t)},Xr=(u,e,t,n)=>(rb(u,e,"write to private field"),n?n.call(u,t):e.set(u,t),t),Qu=(u,e,t)=>(rb(u,e,"access private method"),t),Zc=class extends Le0{constructor({chains:u=[GO,Me0],options:e}){super(),this.chains=u,this.options=e}getBlockExplorerUrls(u){const{default:e,...t}=u.blockExplorers??{};if(e)return[e.url,...Object.values(t).map(n=>n.url)]}isChainUnsupported(u){return!this.chains.some(e=>e.id===u)}setStorage(u){this.storage=u}};function $e0(u){var t;if(!u)return"Injected";const e=n=>{if(n.isApexWallet)return"Apex Wallet";if(n.isAvalanche)return"Core Wallet";if(n.isBackpack)return"Backpack";if(n.isBifrost)return"Bifrost Wallet";if(n.isBitKeep)return"BitKeep";if(n.isBitski)return"Bitski";if(n.isBlockWallet)return"BlockWallet";if(n.isBraveWallet)return"Brave Wallet";if(n.isCoin98)return"Coin98 Wallet";if(n.isCoinbaseWallet)return"Coinbase Wallet";if(n.isDawn)return"Dawn Wallet";if(n.isDefiant)return"Defiant";if(n.isDesig)return"Desig Wallet";if(n.isEnkrypt)return"Enkrypt";if(n.isExodus)return"Exodus";if(n.isFordefi)return"Fordefi";if(n.isFrame)return"Frame";if(n.isFrontier)return"Frontier Wallet";if(n.isGamestop)return"GameStop Wallet";if(n.isHaqqWallet)return"HAQQ Wallet";if(n.isHyperPay)return"HyperPay Wallet";if(n.isImToken)return"ImToken";if(n.isHaloWallet)return"Halo Wallet";if(n.isKuCoinWallet)return"KuCoin Wallet";if(n.isMathWallet)return"MathWallet";if(n.isNovaWallet)return"Nova Wallet";if(n.isOkxWallet||n.isOKExWallet)return"OKX Wallet";if(n.isOneInchIOSWallet||n.isOneInchAndroidWallet)return"1inch Wallet";if(n.isOpera)return"Opera";if(n.isPhantom)return"Phantom";if(n.isPortal)return"Ripio Portal";if(n.isRabby)return"Rabby Wallet";if(n.isRainbow)return"Rainbow";if(n.isSafePal)return"SafePal Wallet";if(n.isStatus)return"Status";if(n.isSubWallet)return"SubWallet";if(n.isTalisman)return"Talisman";if(n.isTally)return"Taho";if(n.isTokenPocket)return"TokenPocket";if(n.isTokenary)return"Tokenary";if(n.isTrust||n.isTrustWallet)return"Trust Wallet";if(n.isTTWallet)return"TTWallet";if(n.isXDEFI)return"XDEFI Wallet";if(n.isZeal)return"Zeal";if(n.isZerion)return"Zerion";if(n.isMetaMask)return"MetaMask"};if((t=u.providers)!=null&&t.length){const n=new Set;let r=1;for(const a of u.providers){let o=e(a);o||(o=`Unknown Wallet #${r}`,r+=1),n.add(o)}const i=[...n];return i.length?i:i[0]??"Injected"}return e(u)??"Injected"}var U6,B3=class extends Zc{constructor({chains:u,options:e}={}){const t={shimDisconnect:!0,getProvider(){if(typeof window>"u")return;const r=window.ethereum;return r!=null&&r.providers&&r.providers.length>0?r.providers[0]:r},...e};super({chains:u,options:t}),this.id="injected",Yu(this,U6,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=r=>{r.length===0?this.emit("disconnect"):this.emit("change",{account:Su(r[0])})},this.onChainChanged=r=>{const i=To(r),a=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:a}})},this.onDisconnect=async r=>{var i;r.code===1013&&await this.getProvider()&&await this.getAccount()||(this.emit("disconnect"),this.options.shimDisconnect&&((i=this.storage)==null||i.removeItem(this.shimDisconnectKey)))};const n=t.getProvider();if(typeof t.name=="string")this.name=t.name;else if(n){const r=$e0(n);t.name?this.name=t.name(r):typeof r=="string"?this.name=r:this.name=r[0]}else this.name="Injected";this.ready=!!n}async connect({chainId:u}={}){var e;try{const t=await this.getProvider();if(!t)throw new nt;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const n=await t.request({method:"eth_requestAccounts"}),r=Su(n[0]);let i=await this.getChainId(),a=this.isChainUnsupported(i);return u&&i!==u&&(i=(await this.switchChain(u)).id,a=this.isChainUnsupported(i)),this.options.shimDisconnect&&((e=this.storage)==null||e.setItem(this.shimDisconnectKey,!0)),{account:r,chain:{id:i,unsupported:a}}}catch(t){throw this.isUserRejectedRequestError(t)?new Gu(t):t.code===-32002?new Yr(t):t}}async disconnect(){var e;const u=await this.getProvider();u!=null&&u.removeListener&&(u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((e=this.storage)==null||e.removeItem(this.shimDisconnectKey)))}async getAccount(){const u=await this.getProvider();if(!u)throw new nt;const e=await u.request({method:"eth_accounts"});return Su(e[0])}async getChainId(){const u=await this.getProvider();if(!u)throw new nt;return u.request({method:"eth_chainId"}).then(To)}async getProvider(){const u=this.options.getProvider();return u&&Xr(this,U6,u),W0(this,U6)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return Y3({account:t,chain:n,transport:Q3(e)})}async isAuthorized(){var u;try{if(this.options.shimDisconnect&&!((u=this.storage)!=null&&u.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new nt;return!!await this.getAccount()}catch{return!1}}async switchChain(u){var n,r,i;const e=await this.getProvider();if(!e)throw new nt;const t=S0(u);try{return await Promise.all([e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),new Promise(a=>this.on("change",({chain:o})=>{(o==null?void 0:o.id)===u&&a()}))]),this.chains.find(a=>a.id===u)??{id:u,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(a){const o=this.chains.find(s=>s.id===u);if(!o)throw new VO({chainId:u,connectorId:this.id});if(a.code===4902||((r=(n=a==null?void 0:a.data)==null?void 0:n.originalError)==null?void 0:r.code)===4902)try{if(await e.request({method:"wallet_addEthereumChain",params:[{chainId:t,chainName:o.name,nativeCurrency:o.nativeCurrency,rpcUrls:[((i=o.rpcUrls.public)==null?void 0:i.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(o)}]}),await this.getChainId()!==u)throw new Gu(new Error("User rejected switch after adding network."));return o}catch(s){throw new Gu(s)}throw this.isUserRejectedRequestError(a)?new Gu(a):new jn(a)}}async watchAsset({address:u,decimals:e=18,image:t,symbol:n}){const r=await this.getProvider();if(!r)throw new nt;return r.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:u,decimals:e,image:t,symbol:n}}})}isUserRejectedRequestError(u){return u.code===4001}};U6=new WeakMap;var ib=(u,e,t)=>{if(!e.has(u))throw TypeError("Cannot "+t)},jp=(u,e,t)=>(ib(u,e,"read from private field"),t?t.call(u):e.get(u)),zp=(u,e,t)=>{if(e.has(u))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(u):e.set(u,t)},r6=(u,e,t,n)=>(ib(u,e,"write to private field"),n?n.call(u,t):e.set(u,t),t),Ue0=(u,e,t)=>(ib(u,e,"access private method"),t),We0={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const qe0=u=>(e,t,n)=>{const r=n.subscribe;return n.subscribe=(a,o,s)=>{let f=a;if(o){const l=(s==null?void 0:s.equalityFn)||Object.is;let c=a(n.getState());f=E=>{const d=a(E);if(!l(c,d)){const p=c;o(c=d,p)}},s!=null&&s.fireImmediately&&o(c,c)}return r(f)},u(e,t,n)},He0=qe0;function Ge0(u,e){let t;try{t=u()}catch{return}return{getItem:r=>{var i;const a=s=>s===null?null:JSON.parse(s,e==null?void 0:e.reviver),o=(i=t.getItem(r))!=null?i:null;return o instanceof Promise?o.then(a):a(o)},setItem:(r,i)=>t.setItem(r,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:r=>t.removeItem(r)}}const Kl=u=>e=>{try{const t=u(e);return t instanceof Promise?t:{then(n){return Kl(n)(t)},catch(n){return this}}}catch(t){return{then(n){return this},catch(n){return Kl(n)(t)}}}},Ve0=(u,e)=>(t,n,r)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:b=>b,version:0,merge:(b,g)=>({...g,...b}),...e},a=!1;const o=new Set,s=new Set;let f;try{f=i.getStorage()}catch{}if(!f)return u((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...b)},n,r);const l=Kl(i.serialize),c=()=>{const b=i.partialize({...n()});let g;const m=l({state:b,version:i.version}).then(A=>f.setItem(i.name,A)).catch(A=>{g=A});if(g)throw g;return m},E=r.setState;r.setState=(b,g)=>{E(b,g),c()};const d=u((...b)=>{t(...b),c()},n,r);let p;const h=()=>{var b;if(!f)return;a=!1,o.forEach(m=>m(n()));const g=((b=i.onRehydrateStorage)==null?void 0:b.call(i,n()))||void 0;return Kl(f.getItem.bind(f))(i.name).then(m=>{if(m)return i.deserialize(m)}).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==i.version){if(i.migrate)return i.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var A;return p=i.merge(m,(A=n())!=null?A:d),t(p,!0),c()}).then(()=>{g==null||g(p,void 0),a=!0,s.forEach(m=>m(p))}).catch(m=>{g==null||g(void 0,m)})};return r.persist={setOptions:b=>{i={...i,...b},b.getStorage&&(f=b.getStorage())},clearStorage:()=>{f==null||f.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>a,onHydrate:b=>(o.add(b),()=>{o.delete(b)}),onFinishHydration:b=>(s.add(b),()=>{s.delete(b)})},h(),p||d},Ke0=(u,e)=>(t,n,r)=>{let i={storage:Ge0(()=>localStorage),partialize:h=>h,version:0,merge:(h,b)=>({...b,...h}),...e},a=!1;const o=new Set,s=new Set;let f=i.storage;if(!f)return u((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...h)},n,r);const l=()=>{const h=i.partialize({...n()});return f.setItem(i.name,{state:h,version:i.version})},c=r.setState;r.setState=(h,b)=>{c(h,b),l()};const E=u((...h)=>{t(...h),l()},n,r);let d;const p=()=>{var h,b;if(!f)return;a=!1,o.forEach(m=>{var A;return m((A=n())!=null?A:E)});const g=((b=i.onRehydrateStorage)==null?void 0:b.call(i,(h=n())!=null?h:E))||void 0;return Kl(f.getItem.bind(f))(i.name).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==i.version){if(i.migrate)return i.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var A;return d=i.merge(m,(A=n())!=null?A:E),t(d,!0),l()}).then(()=>{g==null||g(d,void 0),d=n(),a=!0,s.forEach(m=>m(d))}).catch(m=>{g==null||g(void 0,m)})};return r.persist={setOptions:h=>{i={...i,...h},h.storage&&(f=h.storage)},clearStorage:()=>{f==null||f.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>a,onHydrate:h=>(o.add(h),()=>{o.delete(h)}),onFinishHydration:h=>(s.add(h),()=>{s.delete(h)})},i.skipHydration||p(),d||E},Qe0=(u,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((We0?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Ve0(u,e)):Ke0(u,e),Je0=Qe0;var Ye0={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const _B=u=>{let e;const t=new Set,n=(s,f)=>{const l=typeof s=="function"?s(e):s;if(!Object.is(l,e)){const c=e;e=f??(typeof l!="object"||l===null)?l:Object.assign({},e,l),t.forEach(E=>E(e,c))}},r=()=>e,o={setState:n,getState:r,subscribe:s=>(t.add(s),()=>t.delete(s)),destroy:()=>{(Ye0?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=u(n,r,o),o},Ze0=u=>u?_B(u):_B;function ab(u,e){if(Object.is(u,e))return!0;if(typeof u!="object"||u===null||typeof e!="object"||e===null)return!1;if(u instanceof Map&&e instanceof Map){if(u.size!==e.size)return!1;for(const[n,r]of u)if(!Object.is(r,e.get(n)))return!1;return!0}if(u instanceof Set&&e instanceof Set){if(u.size!==e.size)return!1;for(const n of u)if(!e.has(n))return!1;return!0}const t=Object.keys(u);if(t.length!==Object.keys(e).length)return!1;for(let n=0;nh===c.id)||(s=[...s,p.chain]),f[c.id]=[...f[c.id]||[],...p.rpcUrls.http],p.rpcUrls.webSocket&&(l[c.id]=[...l[c.id]||[],...p.rpcUrls.webSocket]))}if(!E)throw new Error([`Could not find valid provider configuration for chain "${c.name}". + */var af=w;function lQ(u,e){return u===e&&(u!==0||1/u===1/e)||u!==u&&e!==e}var cQ=typeof Object.is=="function"?Object.is:lQ,EQ=af.useState,dQ=af.useEffect,pQ=af.useLayoutEffect,hQ=af.useDebugValue;function CQ(u,e){var t=e(),n=EQ({inst:{value:t,getSnapshot:e}}),r=n[0].inst,i=n[1];return pQ(function(){r.value=t,r.getSnapshot=e,v8(r)&&i({inst:r})},[u,t,e]),dQ(function(){return v8(r)&&i({inst:r}),u(function(){v8(r)&&i({inst:r})})},[u]),hQ(t),t}function v8(u){var e=u.getSnapshot;u=u.value;try{var t=e();return!cQ(u,t)}catch{return!0}}function mQ(u,e){return e()}var bQ=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?mQ:CQ;sT.useSyncExternalStore=af.useSyncExternalStore!==void 0?af.useSyncExternalStore:bQ;oT.exports=sT;var Km=oT.exports;const gQ=Km.useSyncExternalStore,iB=w.createContext(void 0),fT=w.createContext(!1);function lT(u,e){return u||(e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=iB),window.ReactQueryClientContext):iB)}const Qm=({context:u}={})=>{const e=w.useContext(lT(u,w.useContext(fT)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},AQ=({client:u,children:e,context:t,contextSharing:n=!1})=>{w.useEffect(()=>(u.mount(),()=>{u.unmount()}),[u]);const r=lT(t,n);return w.createElement(fT.Provider,{value:!t&&n},w.createElement(r.Provider,{value:u},e))},cT=w.createContext(!1),yQ=()=>w.useContext(cT);cT.Provider;function vQ(){let u=!1;return{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u}}const BQ=w.createContext(vQ()),FQ=()=>w.useContext(BQ);function DQ(u,e){return typeof u=="function"?u(...e):!!u}function wQ(u,e,t){const n=XS(u,e,t),r=Qm({context:n.context}),[i]=w.useState(()=>new nQ(r,n));w.useEffect(()=>{i.setOptions(n)},[i,n]);const a=gQ(w.useCallback(s=>i.subscribe(ju.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=w.useCallback((s,f)=>{i.mutate(s,f).catch(xQ)},[i]);if(a.error&&DQ(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}function xQ(){}const kQ=["added","removed","updated"];function aB(u){return kQ.includes(u)}async function _Q({queryClient:u,persister:e,maxAge:t=1e3*60*60*24,buster:n="",hydrateOptions:r}){try{const i=await e.restoreClient();if(i)if(i.timestamp){const a=Date.now()-i.timestamp>t,o=i.buster!==n;a||o?e.removeClient():fQ(u,i.clientState,r)}else e.removeClient()}catch{e.removeClient()}}async function oB({queryClient:u,persister:e,buster:t="",dehydrateOptions:n}){const r={buster:t,timestamp:Date.now(),clientState:sQ(u,n)};await e.persistClient(r)}function SQ(u){const e=u.queryClient.getQueryCache().subscribe(n=>{aB(n.type)&&oB(u)}),t=u.queryClient.getMutationCache().subscribe(n=>{aB(n.type)&&oB(u)});return()=>{e(),t()}}function TQ(u){let e=!1,t;const n=()=>{e=!0,t==null||t()},r=_Q(u).then(()=>{e||(t=SQ(u))});return[n,r]}function W9(u,e={}){const{fees:t=u.fees,formatters:n=u.formatters,serializers:r=u.serializers}=e;return{...u,fees:t,formatters:n,serializers:r}}const PQ="1.19.10",OQ=u=>u,Hf=u=>u,IQ=()=>`viem@${PQ}`;let l0=class Wh extends Error{constructor(e,t={}){var i;super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:IQ()});const n=t.cause instanceof Wh?t.cause.details:(i=t.cause)!=null&&i.message?t.cause.message:t.details,r=t.cause instanceof Wh&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...r?[`Docs: https://viem.sh${r}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join(` +`),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=r,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return ET(this,e)}};function ET(u,e){return e!=null&&e(u)?u:u&&typeof u=="object"&&"cause"in u?ET(u.cause,e):e?null:u}class NQ extends l0{constructor({consumed:e,length:t}){super(`Consumed bytes (${e}) is shorter than data length (${t-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooLongError"})}}class RQ extends l0{constructor({length:e,dataLength:t}){super(`Data length (${t-1}) is shorter than consumed bytes length (${e-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooShortError"})}}class dT extends l0{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${r*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class pT extends l0{constructor(e){super(`Bytes value "${e}" is not a valid boolean. 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:"InvalidBytesBooleanError"})}}class hT extends l0{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class CT extends l0{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexValueError"})}}class MQ extends l0{constructor({nextOffset:e,offset:t}){super(`Next offset (${e}) is greater than previous offset + consumed bytes (${t})`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffsetOutOfBoundsError"})}}class mT extends l0{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}function K0(u,{strict:e=!0}={}){return!u||typeof u!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(u):u.startsWith("0x")}function $u(u){return K0(u,{strict:!1})?Math.ceil((u.length-2)/2):u.length}function He(u,{dir:e="left"}={}){let t=typeof u=="string"?u.replace("0x",""):u,n=0;for(let r=0;rt*2)throw new Ym({size:Math.ceil(n.length/2),targetSize:t,type:"hex"});return`0x${n[e==="right"?"padEnd":"padStart"](t*2,"0")}`}function bT(u,{dir:e,size:t=32}={}){if(t===null)return u;if(u.length>t)throw new Ym({size:u.length,targetSize:t,type:"bytes"});const n=new Uint8Array(t);for(let r=0;re.toString(16).padStart(2,"0"));function J0(u,e={}){return typeof u=="number"||typeof u=="bigint"?S0(u,e):typeof u=="string"?$1(u,e):typeof u=="boolean"?q9(u,e):pt(u,e)}function q9(u,e={}){const t=`0x${Number(u)}`;return typeof e.size=="number"?(hn(t,{size:e.size}),Nn(t,{size:e.size})):t}function pt(u,e={}){let t="";for(let r=0;ri||r=gr.zero&&u<=gr.nine)return u-gr.zero;if(u>=gr.A&&u<=gr.F)return u-(gr.A-10);if(u>=gr.a&&u<=gr.f)return u-(gr.a-10)}function ni(u,e={}){let t=u;e.size&&(hn(t,{size:e.size}),t=Nn(t,{dir:"right",size:e.size}));let n=t.slice(2);n.length%2&&(n=`0${n}`);const r=n.length/2,i=new Uint8Array(r);for(let a=0,o=0;ae)throw new mT({givenSize:$u(u),maxSize:e})}function $Q(u,e){const t=typeof e=="string"?{to:e}:e,n=t.to;return n==="number"?fu(u,t):n==="bigint"?xu(u,t):n==="string"?U1(u,t):n==="boolean"?Zm(u,t):ni(u,t)}function xu(u,e={}){const{signed:t}=e;e.size&&hn(u,{size:e.size});const n=BigInt(u);if(!t)return n;const r=(u.length-2)/2,i=(1n<({exclude:t,format:r=>{const i=e(r);if(t)for(const a of t)delete i[a];return{...i,...n(r)}},type:u})}const Xm={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function G9(u){const e={...u,blockHash:u.blockHash?u.blockHash:null,blockNumber:u.blockNumber?BigInt(u.blockNumber):null,chainId:u.chainId?fu(u.chainId):void 0,gas:u.gas?BigInt(u.gas):void 0,gasPrice:u.gasPrice?BigInt(u.gasPrice):void 0,maxFeePerGas:u.maxFeePerGas?BigInt(u.maxFeePerGas):void 0,maxPriorityFeePerGas:u.maxPriorityFeePerGas?BigInt(u.maxPriorityFeePerGas):void 0,nonce:u.nonce?fu(u.nonce):void 0,to:u.to?u.to:null,transactionIndex:u.transactionIndex?Number(u.transactionIndex):null,type:u.type?Xm[u.type]:void 0,typeHex:u.type?u.type:void 0,value:u.value?BigInt(u.value):void 0,v:u.v?BigInt(u.v):void 0};return e.yParity=(()=>{if(u.yParity)return Number(u.yParity);if(typeof e.v=="bigint"){if(e.v===0n||e.v===27n)return 0;if(e.v===1n||e.v===28n)return 1;if(e.v>=35n)return e.v%2n===0n?1:0}})(),e.type==="legacy"&&(delete e.accessList,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas,delete e.yParity),e.type==="eip2930"&&(delete e.maxFeePerGas,delete e.maxPriorityFeePerGas),e}const UQ=H9("transaction",G9);function V9(u){var t;const e=(t=u.transactions)==null?void 0:t.map(n=>typeof n=="string"?n:G9(n));return{...u,baseFeePerGas:u.baseFeePerGas?BigInt(u.baseFeePerGas):null,difficulty:u.difficulty?BigInt(u.difficulty):void 0,gasLimit:u.gasLimit?BigInt(u.gasLimit):void 0,gasUsed:u.gasUsed?BigInt(u.gasUsed):void 0,hash:u.hash?u.hash:null,logsBloom:u.logsBloom?u.logsBloom:null,nonce:u.nonce?u.nonce:null,number:u.number?BigInt(u.number):null,size:u.size?BigInt(u.size):void 0,timestamp:u.timestamp?BigInt(u.timestamp):void 0,transactions:e,totalDifficulty:u.totalDifficulty?BigInt(u.totalDifficulty):null}}const WQ=H9("block",V9);function cn(u,{args:e,eventName:t}={}){return{...u,blockHash:u.blockHash?u.blockHash:null,blockNumber:u.blockNumber?BigInt(u.blockNumber):null,logIndex:u.logIndex?Number(u.logIndex):null,transactionHash:u.transactionHash?u.transactionHash:null,transactionIndex:u.transactionIndex?Number(u.transactionIndex):null,...t?{args:e,eventName:t}:{}}}const qQ={"0x0":"reverted","0x1":"success"};function ub(u){return{...u,blockNumber:u.blockNumber?BigInt(u.blockNumber):null,contractAddress:u.contractAddress?u.contractAddress:null,cumulativeGasUsed:u.cumulativeGasUsed?BigInt(u.cumulativeGasUsed):null,effectiveGasPrice:u.effectiveGasPrice?BigInt(u.effectiveGasPrice):null,gasUsed:u.gasUsed?BigInt(u.gasUsed):null,logs:u.logs?u.logs.map(e=>cn(e)):null,to:u.to?u.to:null,transactionIndex:u.transactionIndex?fu(u.transactionIndex):null,status:u.status?qQ[u.status]:null,type:u.type?Xm[u.type]||u.type:null}}const HQ=H9("transactionReceipt",ub),yT={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function Uo(u){return{...u,gas:typeof u.gas<"u"?S0(u.gas):void 0,gasPrice:typeof u.gasPrice<"u"?S0(u.gasPrice):void 0,maxFeePerGas:typeof u.maxFeePerGas<"u"?S0(u.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof u.maxPriorityFeePerGas<"u"?S0(u.maxPriorityFeePerGas):void 0,nonce:typeof u.nonce<"u"?S0(u.nonce):void 0,type:typeof u.type<"u"?yT[u.type]:void 0,value:typeof u.value<"u"?S0(u.value):void 0}}const GQ=H9("transactionRequest",Uo);class ht extends l0{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}class W5 extends l0{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}let vT=class extends l0{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}};class BT extends l0{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(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class eb extends l0{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class K9 extends l0{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}const tb={gwei:9,wei:18},nb={ether:-9,wei:9},FT={ether:-18,gwei:-9};function Hl(u,e){let t=u.toString();const n=t.startsWith("-");n&&(t=t.slice(1)),t=t.padStart(e,"0");let[r,i]=[t.slice(0,t.length-e),t.slice(t.length-e)];return i=i.replace(/(0+)$/,""),`${n?"-":""}${r||"0"}${i?`.${i}`:""}`}function Ge(u,e="wei"){return Hl(u,nb[e])}class La extends l0{constructor({cause:e,message:t}={}){var r;const n=(r=t==null?void 0:t.replace("execution reverted: ",""))==null?void 0:r.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(La,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(La,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class aa extends l0{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Ge(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(aa,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class q5 extends l0{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Ge(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(q5,"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/});class H5 extends l0{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(H5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class G5 extends l0{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(` +`),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(G5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class V5 extends l0{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(V5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class K5 extends l0{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` +`),{cause:e,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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(K5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class Q5 extends l0{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(Q5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class J5 extends l0{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(J5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Y5 extends l0{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Y5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class of extends l0{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${Ge(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${Ge(n)} gwei`:""}).`].join(` +`),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(of,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class W1 extends l0{constructor({cause:e}){super(`An error occurred while executing: ${e==null?void 0:e.shortMessage}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}const VQ=/^0x[a-fA-F0-9]{40}$/;function Qe(u){return VQ.test(u)}function En(u){return typeof u[0]=="string"?ri(u):DT(u)}function DT(u){let e=0;for(const r of u)e+=r.length;const t=new Uint8Array(e);let n=0;for(const r of u)t.set(r,n),n+=r.length;return t}function ri(u){return`0x${u.reduce((e,t)=>e+t.replace("0x",""),"")}`}const KQ="0.9.8";class le extends Error{constructor(e,t={}){var a;const n=t.cause instanceof le?t.cause.details:(a=t.cause)!=null&&a.message?t.cause.message:t.details,r=t.cause instanceof le&&t.cause.docsPath||t.docsPath,i=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...r?[`Docs: https://abitype.dev${r}`]:[],...n?[`Details: ${n}`]:[],`Version: abitype@${KQ}`].join(` +`);super(i),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"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=r,this.metaMessages=t.metaMessages,this.shortMessage=e}}function ma(u,e){const t=u.exec(e);return t==null?void 0:t.groups}const wT=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,xT=/^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)?$/,kT=/^\(.+?\).*?$/,fB=/^tuple(?(\[(\d*)\])*)$/;function qh(u){let e=u.type;if(fB.test(u.type)&&"components"in u){e="(";const t=u.components.length;for(let r=0;r[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function JQ(u){return _T.test(u)}function YQ(u){return ma(_T,u)}const ST=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function ZQ(u){return ST.test(u)}function XQ(u){return ma(ST,u)}const TT=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;function uJ(u){return TT.test(u)}function eJ(u){return ma(TT,u)}const PT=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;function q1(u){return PT.test(u)}function tJ(u){return ma(PT,u)}const OT=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;function nJ(u){return OT.test(u)}function rJ(u){return ma(OT,u)}const iJ=/^fallback\(\)$/;function aJ(u){return iJ.test(u)}const oJ=/^receive\(\) external payable$/;function sJ(u){return oJ.test(u)}const Z5=new Set(["memory","indexed","storage","calldata"]),fJ=new Set(["indexed"]),Hh=new Set(["calldata","memory","storage"]);class IT extends le{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class NT extends le{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" 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"})}}class lJ extends le{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class RT extends le{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}class MT extends le{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class jT extends le{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class zT extends le{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" 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"})}}class LT extends le{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class $T extends le{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" 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"})}}class UT extends le{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Ls extends le{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class WT extends le{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class qT extends le{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class HT extends le{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class GT extends le{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function cJ(u,e){return e?`${e}:${u}`:u}const B8=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 Gh(u,e={}){if(uJ(u)){const t=eJ(u);if(!t)throw new Ls({signature:u,type:"function"});const n=Pt(t.parameters),r=[],i=n.length;for(let o=0;o[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,dJ=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,pJ=/^u?int$/;function _n(u,e){var c,E;const t=cJ(u,e==null?void 0:e.type);if(B8.has(t))return B8.get(t);const n=kT.test(u),r=ma(n?dJ:EJ,u);if(!r)throw new jT({param:u});if(r.name&&CJ(r.name))throw new zT({param:u,name:r.name});const i=r.name?{name:r.name}:{},a=r.modifier==="indexed"?{indexed:!0}:{},o=(e==null?void 0:e.structs)??{};let s,f={};if(n){s="tuple";const d=Pt(r.type),p=[],h=d.length;for(let g=0;g[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function KT(u,e,t=new Set){const n=[],r=u.length;for(let i=0;i{var r;return((r=u[e.name||t])==null?void 0:r.call(u,n))??e(u,n)}}function ii(u,{includeName:e=!1}={}){if(u.type!=="function"&&u.type!=="event"&&u.type!=="error")throw new rP(u.type);return`${u.name}(${J9(u.inputs,{includeName:e})})`}function J9(u,{includeName:e=!1}={}){return u?u.map(t=>BJ(t,{includeName:e})).join(e?", ":","):""}function BJ(u,{includeName:e}){return u.type.startsWith("tuple")?`(${J9(u.components,{includeName:e})})${u.type.slice(5)}`:u.type+(e&&u.name?` ${u.name}`:"")}class rb extends l0{constructor({docsPath:e}){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(` +`),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class Gl extends l0{constructor({docsPath:e}){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(` +`),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class FJ extends l0{constructor({data:e,size:t}){super([`Data size of ${t} bytes is invalid.`,"Size must be in increments of 32 bytes (size % 32 === 0)."].join(` +`),{metaMessages:[`Data: ${e} (${t} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}}class Y9 extends l0{constructor({data:e,params:t,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(` +`),{metaMessages:[`Params: (${J9(t,{includeName:!0})})`,`Data: ${e} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=e,this.params=t,this.size=n}}class H1 extends l0{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class QT extends l0{constructor({expectedLength:e,givenLength:t,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${e}`,`Given length: ${t}`].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class JT extends l0{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${$u(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class ib extends l0{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class YT extends l0{constructor(e,{docsPath:t}){super([`Arguments (\`args\`) were provided to "${e}", but "${e}" 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(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}}class Vh extends l0{constructor(e,{docsPath:t}={}){super([`Error ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}}class ab extends l0{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" 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://openchain.xyz/signatures?query=${e}.`].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class ZT extends l0{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class XT extends l0{constructor(e,{docsPath:t}){super([`Encoded event signature "${e}" 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://openchain.xyz/signatures?query=${e}.`].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class Kh extends l0{constructor(e,{docsPath:t}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class _o extends l0{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class ob extends l0{constructor(e,{docsPath:t}){super([`Function "${e}" 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(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class uP extends l0{constructor(e,{docsPath:t}){super([`Encoded function signature "${e}" 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://openchain.xyz/signatures?query=${e}.`].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}}class sb extends l0{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class oa extends l0{constructor({abiItem:e,data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for non-indexed event parameters.`].join(` +`),{metaMessages:[`Params: (${J9(n,{includeName:!0})})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=e,this.data=t,this.params=n,this.size=r}}class Wo extends l0{constructor({abiItem:e,param:t}){super([`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${ii(e,{includeName:!0})}".`].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class eP extends l0{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class tP extends l0{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` +`),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class nP extends l0{constructor(e){super([`Value "${e}" is not a valid array.`].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class rP extends l0{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}class iP extends l0{constructor(e){super(`Type "${e}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}class aP extends l0{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}function DJ(u){let e=!0,t="",n=0,r="",i=!1;for(let a=0;a{const e=typeof u=="string"?u:QQ(u);return DJ(e)},oP=u=>fb(u);function X5(u){if(!Number.isSafeInteger(u)||u<0)throw new Error(`Wrong positive integer: ${u}`)}function lb(u,...e){if(!(u instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(u.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${u.length}`)}function wJ(u){if(typeof u!="function"||typeof u.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");X5(u.outputLen),X5(u.blockLen)}function sf(u,e=!0){if(u.destroyed)throw new Error("Hash instance has been destroyed");if(e&&u.finished)throw new Error("Hash#digest() has already been called")}function sP(u,e){lb(u);const t=e.outputLen;if(u.length>lB&u6)}:{h:Number(u>>lB&u6)|0,l:Number(u&u6)|0}}function kJ(u,e=!1){let t=new Uint32Array(u.length),n=new Uint32Array(u.length);for(let r=0;ru<>>32-t,SJ=(u,e,t)=>e<>>32-t,TJ=(u,e,t)=>e<>>64-t,PJ=(u,e,t)=>u<>>64-t,F8=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const fP=u=>u instanceof Uint8Array,OJ=u=>new Uint32Array(u.buffer,u.byteOffset,Math.floor(u.byteLength/4)),D8=u=>new DataView(u.buffer,u.byteOffset,u.byteLength),Hn=(u,e)=>u<<32-e|u>>>e,IJ=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!IJ)throw new Error("Non little-endian hardware is not supported");function NJ(u){if(typeof u!="string")throw new Error(`utf8ToBytes expected string, got ${typeof u}`);return new Uint8Array(new TextEncoder().encode(u))}function Z9(u){if(typeof u=="string"&&(u=NJ(u)),!fP(u))throw new Error(`expected Uint8Array, got ${typeof u}`);return u}function RJ(...u){const e=new Uint8Array(u.reduce((n,r)=>n+r.length,0));let t=0;return u.forEach(n=>{if(!fP(n))throw new Error("Uint8Array expected");e.set(n,t),t+=n.length}),e}let cb=class{clone(){return this._cloneInto()}};function lP(u){const e=n=>u().update(Z9(n)).digest(),t=u();return e.outputLen=t.outputLen,e.blockLen=t.blockLen,e.create=()=>u(),e}function cP(u=32){if(F8&&typeof F8.getRandomValues=="function")return F8.getRandomValues(new Uint8Array(u));throw new Error("crypto.getRandomValues must be defined")}const[EP,dP,pP]=[[],[],[]],MJ=BigInt(0),I3=BigInt(1),jJ=BigInt(2),zJ=BigInt(7),LJ=BigInt(256),$J=BigInt(113);for(let u=0,e=I3,t=1,n=0;u<24;u++){[t,n]=[n,(2*t+3*n)%5],EP.push(2*(5*n+t)),dP.push((u+1)*(u+2)/2%64);let r=MJ;for(let i=0;i<7;i++)e=(e<>zJ)*$J)%LJ,e&jJ&&(r^=I3<<(I3<t>32?TJ(u,e,t):_J(u,e,t),EB=(u,e,t)=>t>32?PJ(u,e,t):SJ(u,e,t);function qJ(u,e=24){const t=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let a=0;a<10;a++)t[a]=u[a]^u[a+10]^u[a+20]^u[a+30]^u[a+40];for(let a=0;a<10;a+=2){const o=(a+8)%10,s=(a+2)%10,f=t[s],l=t[s+1],c=cB(f,l,1)^t[o],E=EB(f,l,1)^t[o+1];for(let d=0;d<50;d+=10)u[a+d]^=c,u[a+d+1]^=E}let r=u[2],i=u[3];for(let a=0;a<24;a++){const o=dP[a],s=cB(r,i,o),f=EB(r,i,o),l=EP[a];r=u[l],i=u[l+1],u[l]=s,u[l+1]=f}for(let a=0;a<50;a+=10){for(let o=0;o<10;o++)t[o]=u[a+o];for(let o=0;o<10;o++)u[a+o]^=~t[(o+2)%10]&t[(o+4)%10]}u[0]^=UJ[n],u[1]^=WJ[n]}t.fill(0)}class Eb extends cb{constructor(e,t,n,r=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,X5(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=OJ(this.state)}keccak(){qJ(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){sf(this);const{blockLen:t,state:n}=this;e=Z9(e);const r=e.length;for(let i=0;i=n&&this.keccak();const a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return X5(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(sP(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new Eb(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}const HJ=(u,e,t)=>lP(()=>new Eb(e,u,t)),hP=HJ(1,136,256/8);function Hu(u,e){const t=e||"hex",n=hP(K0(u,{strict:!1})?Le(u):u);return t==="bytes"?n:J0(n)}const GJ=u=>Hu(Le(u)),X9=u=>GJ(oP(u));function yu(u,e,t,{strict:n}={}){return K0(u,{strict:!1})?db(u,e,t,{strict:n}):bP(u,e,t,{strict:n})}function CP(u,e){if(typeof e=="number"&&e>0&&e>$u(u)-1)throw new Jm({offset:e,position:"start",size:$u(u)})}function mP(u,e,t){if(typeof e=="number"&&typeof t=="number"&&$u(u)!==t-e)throw new Jm({offset:t,position:"end",size:$u(u)})}function bP(u,e,t,{strict:n}={}){CP(u,e);const r=u.slice(e,t);return n&&mP(r,e,t),r}function db(u,e,t,{strict:n}={}){CP(u,e);const r=`0x${u.replace("0x","").slice((e??0)*2,(t??u.length)*2)}`;return n&&mP(r,e,t),r}function ai(u,e){if(u.length!==e.length)throw new ib({expectedLength:u.length,givenLength:e.length});const t=VJ({params:u,values:e}),n=hb(t);return n.length===0?"0x":n}function VJ({params:u,values:e}){const t=[];for(let n=0;n0?En([o,a]):o}}if(r)return{dynamic:!0,encoded:a}}return{dynamic:!1,encoded:En(i.map(({encoded:a})=>a))}}function JJ(u,{param:e}){const[,t]=e.type.split("bytes"),n=$u(u);if(!t){let r=u;return n%32!==0&&(r=Rn(r,{dir:"right",size:Math.ceil((u.length-2)/2/32)*32})),{dynamic:!0,encoded:En([Rn(S0(n,{size:32})),r])}}if(n!==parseInt(t))throw new JT({expectedSize:parseInt(t),value:u});return{dynamic:!1,encoded:Rn(u,{dir:"right"})}}function YJ(u){return{dynamic:!1,encoded:Rn(q9(u))}}function ZJ(u,{signed:e}){return{dynamic:!1,encoded:S0(u,{size:32,signed:e})}}function XJ(u){const e=$1(u),t=Math.ceil($u(e)/32),n=[];for(let r=0;rr))}}function uE(u){const e=u.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}const eY=u=>Hu(Le(u)),Gf=u=>yu(eY(fb(u)),0,4);function ba({abi:u,args:e=[],name:t}){const n=K0(t,{strict:!1}),r=u.filter(i=>n?i.type==="function"?Gf(i)===t:i.type==="event"?X9(i)===t:!1:"name"in i&&i.name===t);if(r.length!==0){if(r.length===1)return r[0];for(const i of r){if(!("inputs"in i))continue;if(!e||e.length===0){if(!i.inputs||i.inputs.length===0)return i;continue}if(!i.inputs||i.inputs.length===0||i.inputs.length!==e.length)continue;if(e.every((o,s)=>{const f="inputs"in i&&i.inputs[s];return f?Qh(o,f):!1}))return i}return r[0]}}function Qh(u,e){const t=typeof u,n=e.type;switch(n){case"address":return Qe(u);case"bool":return t==="boolean";case"function":return t==="string";case"string":return t==="string";default:return n==="tuple"&&"components"in e?Object.values(e.components).every((r,i)=>Qh(Object.values(u)[i],r)):/^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)?t==="number"||t==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?t==="string"||u instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)?Array.isArray(u)&&u.every(r=>Qh(r,{...e,type:n.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Vf({abi:u,eventName:e,args:t}){var o;let n=u[0];if(e&&(n=ba({abi:u,args:t,name:e}),!n))throw new Kh(e,{docsPath:"/docs/contract/encodeEventTopics"});if(n.type!=="event")throw new Kh(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const r=ii(n),i=X9(r);let a=[];if(t&&"inputs"in n){const s=(o=n.inputs)==null?void 0:o.filter(l=>"indexed"in l&&l.indexed),f=Array.isArray(t)?t:Object.values(t).length>0?(s==null?void 0:s.map(l=>t[l.name]))??[]:[];f.length>0&&(a=(s==null?void 0:s.map((l,c)=>Array.isArray(f[c])?f[c].map((E,d)=>dB({param:l,value:f[c][d]})):f[c]?dB({param:l,value:f[c]}):null))??[])}return[i,...a]}function dB({param:u,value:e}){if(u.type==="string"||u.type==="bytes")return Hu(Le(e));if(u.type==="tuple"||u.type.match(/^(.*)\[(\d+)?\]$/))throw new aP(u.type);return ai([u],[e])}function eE(u,{method:e}){var n,r;const t={};return u.transport.type==="fallback"&&((r=(n=u.transport).onResponse)==null||r.call(n,({method:i,response:a,status:o,transport:s})=>{o==="success"&&e===i&&(t[a]=s.request)})),i=>t[i]||u.request}async function Cb(u,{address:e,abi:t,args:n,eventName:r,fromBlock:i,strict:a,toBlock:o}){const s=eE(u,{method:"eth_newFilter"}),f=r?Vf({abi:t,args:n,eventName:r}):void 0,l=await u.request({method:"eth_newFilter",params:[{address:e,fromBlock:typeof i=="bigint"?S0(i):i,toBlock:typeof o=="bigint"?S0(o):o,topics:f}]});return{abi:t,args:n,eventName:r,id:l,request:s(l),strict:a,type:"event"}}function Cn(u){return typeof u=="string"?{address:u,type:"json-rpc"}:u}function oi({abi:u,args:e,functionName:t}){let n=u[0];if(t&&(n=ba({abi:u,args:e,name:t}),!n))throw new _o(t,{docsPath:"/docs/contract/encodeFunctionData"});if(n.type!=="function")throw new _o(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const r=ii(n),i=Gf(r),a="inputs"in n&&n.inputs?ai(n.inputs,e??[]):void 0;return ri([i,a??"0x"])}const gP={1:"An `assert` condition failed.",17:"Arithmic 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."},tY={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},nY={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function G1(u,e){const t=e?`${e}${u.toLowerCase()}`:u.substring(2).toLowerCase(),n=Hu(Er(t),"bytes"),r=(e?t.substring(`${e}0x`.length):t).split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());return`0x${r.join("")}`}function Su(u,e){if(!Qe(u))throw new ht({address:u});return G1(u,e)}function qo(u,e){if(e==="0x"&&u.length>0)throw new H1;if($u(e)&&$u(e)<32)throw new Y9({data:e,params:u,size:$u(e)});return rY({data:e,params:u})}function rY({data:u,params:e}){const t=[];let n=0;for(let r=0;r=$u(u))throw new Y9({data:u,params:e,size:$u(u)});const i=e[r],{consumed:a,value:o}=t4({data:u,param:i,position:n});t.push(o),n+=a}return t}function t4({data:u,param:e,position:t}){const n=uE(e.type);if(n){const[i,a]=n;return aY(u,{length:i,param:{...e,type:a},position:t})}if(e.type==="tuple")return cY(u,{param:e,position:t});if(e.type==="string")return lY(u,{position:t});if(e.type.startsWith("bytes"))return sY(u,{param:e,position:t});const r=yu(u,t,t+32,{strict:!0});if(e.type.startsWith("uint")||e.type.startsWith("int"))return fY(r,{param:e});if(e.type==="address")return iY(r);if(e.type==="bool")return oY(r);throw new tP(e.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function iY(u){return{consumed:32,value:G1(yu(u,-20))}}function aY(u,{param:e,length:t,position:n}){if(!t){const a=fu(yu(u,n,n+32,{strict:!0})),o=fu(yu(u,a,a+32,{strict:!0}));let s=0;const f=[];for(let l=0;l48?xu(u,{signed:t}):fu(u,{signed:t})}}function lY(u,{position:e}){const t=fu(yu(u,e,e+32,{strict:!0})),n=fu(yu(u,t,t+32,{strict:!0}));return n===0?{consumed:32,value:""}:{consumed:32,value:U1(He(yu(u,t+32,t+32+n,{strict:!0})))}}function cY(u,{param:e,position:t}){const n=e.components.length===0||e.components.some(({name:a})=>!a),r=n?[]:{};let i=0;if(u2(e)){const a=fu(yu(u,t,t+32,{strict:!0}));for(let o=0;oi.type==="error"&&t===Gf(ii(i)));if(!r)throw new ab(t,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:r,args:"inputs"in r&&r.inputs&&r.inputs.length>0?qo(r.inputs,yu(e,4)):void 0,errorName:r.name}}const fe=(u,e,t)=>JSON.stringify(u,(n,r)=>{const i=typeof r=="bigint"?r.toString():r;return typeof e=="function"?e(n,i):i},t);function AP({abiItem:u,args:e,includeFunctionName:t=!0,includeName:n=!1}){if("name"in u&&"inputs"in u&&u.inputs)return`${t?u.name:""}(${u.inputs.map((r,i)=>`${n&&r.name?`${r.name}: `:""}${typeof e[i]=="object"?fe(e[i]):e[i]}`).join(", ")})`}function tE(u,e="wei"){return Hl(u,tb[e])}function V1(u){const e=Object.entries(u).map(([n,r])=>r===void 0||r===!1?null:[n,r]).filter(Boolean),t=e.reduce((n,[r])=>Math.max(n,r.length),0);return e.map(([n,r])=>` ${`${n}:`.padEnd(t+1)} ${r}`).join(` +`)}class yP extends l0{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class bb extends l0{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class vP extends l0{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",V1(e),"}","","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","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class BP extends l0{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}class nE extends l0{constructor({attributes:e,serializedTransaction:t,type:n}){const r=Object.entries(e).map(([i,a])=>typeof a>"u"?i:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${n}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,r.length>0?`Missing Attributes: ${r.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=n}}class FP extends l0{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class DP extends l0{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:E}){var p;const d=V1({chain:r&&`${r==null?void 0:r.name} (id: ${r==null?void 0:r.id})`,from:t==null?void 0:t.address,to:c,value:typeof E<"u"&&`${tE(E)} ${((p=r==null?void 0:r.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:i,gas:a,gasPrice:typeof o<"u"&&`${Ge(o)} gwei`,maxFeePerGas:typeof s<"u"&&`${Ge(s)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ge(f)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",d].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class gb extends l0{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let a="Transaction";n&&i!==void 0&&(a=`Transaction at block time "${n}" at index "${i}"`),e&&i!==void 0&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&i!==void 0&&(a=`Transaction at block number "${t}" at index "${i}"`),r&&(a=`Transaction with hash "${r}"`),super(`${a} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class Ab extends l0{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class wP extends l0{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}class yb extends l0{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:E}){var h;const d=t?Cn(t):void 0,p=V1({from:d==null?void 0:d.address,to:c,value:typeof E<"u"&&`${tE(E)} ${((h=r==null?void 0:r.nativeCurrency)==null?void 0:h.symbol)||"ETH"}`,data:i,gas:a,gasPrice:typeof o<"u"&&`${Ge(o)} gwei`,maxFeePerGas:typeof s<"u"&&`${Ge(s)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ge(f)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",p].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class rE extends l0{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:a,sender:o}){const s=ba({abi:t,args:n,name:a}),f=s?AP({abiItem:s,args:n,includeFunctionName:!1,includeName:!1}):void 0,l=s?ii(s,{includeName:!0}):void 0,c=V1({address:r&&OQ(r),function:l,args:f&&f!=="()"&&`${[...Array((a==null?void 0:a.length)??0).keys()].map(()=>" ").join("")}${f}`,sender:o});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",c].filter(Boolean)}),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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=a,this.sender=o}}class e2 extends l0{constructor({abi:e,data:t,functionName:n,message:r}){let i,a,o,s;if(t&&t!=="0x")try{a=mb({abi:e,data:t});const{abiItem:l,errorName:c,args:E}=a;if(c==="Error")s=E[0];else if(c==="Panic"){const[d]=E;s=gP[d]}else{const d=l?ii(l,{includeName:!0}):void 0,p=l&&E?AP({abiItem:l,args:E,includeFunctionName:!1,includeName:!1}):void 0;o=[d?`Error: ${d}`:"",p&&p!=="()"?` ${[...Array((c==null?void 0:c.length)??0).keys()].map(()=>" ").join("")}${p}`:""]}}catch(l){i=l}else r&&(s=r);let f;i instanceof ab&&(f=i.signature,o=[`Unable to decode signature "${f}" 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://openchain.xyz/signatures?query=${f}.`]),super(s&&s!=="execution reverted"||f?[`The contract function "${n}" reverted with the following ${f?"signature":"reason"}:`,s||f].join(` +`):`The contract function "${n}" reverted.`,{cause:i,metaMessages:o}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{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=a,this.reason=s,this.signature=f}}class xP extends l0{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class iE extends l0{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}class ea extends l0{constructor({body:e,details:t,headers:n,status:r,url:i}){super("HTTP request failed.",{details:t,metaMessages:[r&&`Status: ${r}`,`URL: ${Hf(i)}`,e&&`Request body: ${fe(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=e,this.headers=n,this.status=r,this.url=i}}class kP extends l0{constructor({body:e,details:t,url:n}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${Hf(n)}`,`Request body: ${fe(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class aE extends l0{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${Hf(n)}`,`Request body: ${fe(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class t2 extends l0{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${Hf(t)}`,`Request body: ${fe(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}const EY=-1;class ut extends l0{constructor(e,{code:t,docsPath:n,metaMessages:r,shortMessage:i}){super(i,{cause:e,docsPath:n,metaMessages:r||(e==null?void 0:e.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof aE?e.code:t??EY}}class Ho extends ut{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class ff extends ut{constructor(e){super(e,{code:ff.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(ff,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class lf extends ut{constructor(e){super(e,{code:lf.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(lf,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class cf extends ut{constructor(e){super(e,{code:cf.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(cf,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Ef extends ut{constructor(e){super(e,{code:Ef.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` +`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(Ef,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class So extends ut{constructor(e){super(e,{code:So.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(So,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class sa extends ut{constructor(e){super(e,{code:sa.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` +`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(sa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class df extends ut{constructor(e){super(e,{code:df.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(df,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Yr extends ut{constructor(e){super(e,{code:Yr.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(Yr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class pf extends ut{constructor(e){super(e,{code:pf.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(pf,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class hf extends ut{constructor(e){super(e,{code:hf.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(hf,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Cf extends ut{constructor(e){super(e,{code:Cf.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(Cf,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class mf extends ut{constructor(e){super(e,{code:mf.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(mf,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Gu extends Ho{constructor(e){super(e,{code:Gu.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(Gu,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class bf extends Ho{constructor(e){super(e,{code:bf.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(bf,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class gf extends Ho{constructor(e){super(e,{code:gf.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(gf,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Af extends Ho{constructor(e){super(e,{code:Af.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(Af,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class yf extends Ho{constructor(e){super(e,{code:yf.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(yf,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class jn extends Ho{constructor(e){super(e,{code:jn.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(jn,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class _P extends ut{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}const dY=3;function vf(u,{abi:e,address:t,args:n,docsPath:r,functionName:i,sender:a}){const{code:o,data:s,message:f,shortMessage:l}=u instanceof iE?u:u instanceof l0?u.walk(E=>"data"in E)||u.walk():{},c=u instanceof H1?new xP({functionName:i}):[dY,So.code].includes(o)&&(s||f||l)?new e2({abi:e,data:typeof s=="object"?s.data:s,functionName:i,message:l??f}):u;return new rE(c,{abi:e,args:n,contractAddress:t,docsPath:r,functionName:i,sender:a})}class Kf extends l0{constructor({docsPath:e}={}){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 WalletClient."].join(` +`),{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}class SP extends l0{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:E}){var p;const d=V1({from:t==null?void 0:t.address,to:c,value:typeof E<"u"&&`${tE(E)} ${((p=r==null?void 0:r.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:i,gas:a,gasPrice:typeof o<"u"&&`${Ge(o)} gwei`,maxFeePerGas:typeof s<"u"&&`${Ge(s)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ge(f)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",d].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}function vb(u,e){const t=(u.details||"").toLowerCase(),n=u.walk(r=>r.code===La.code);return n instanceof l0?new La({cause:u,message:n.details}):La.nodeMessage.test(t)?new La({cause:u,message:u.details}):aa.nodeMessage.test(t)?new aa({cause:u,maxFeePerGas:e==null?void 0:e.maxFeePerGas}):q5.nodeMessage.test(t)?new q5({cause:u,maxFeePerGas:e==null?void 0:e.maxFeePerGas}):H5.nodeMessage.test(t)?new H5({cause:u,nonce:e==null?void 0:e.nonce}):G5.nodeMessage.test(t)?new G5({cause:u,nonce:e==null?void 0:e.nonce}):V5.nodeMessage.test(t)?new V5({cause:u,nonce:e==null?void 0:e.nonce}):K5.nodeMessage.test(t)?new K5({cause:u}):Q5.nodeMessage.test(t)?new Q5({cause:u,gas:e==null?void 0:e.gas}):J5.nodeMessage.test(t)?new J5({cause:u,gas:e==null?void 0:e.gas}):Y5.nodeMessage.test(t)?new Y5({cause:u}):of.nodeMessage.test(t)?new of({cause:u,maxFeePerGas:e==null?void 0:e.maxFeePerGas,maxPriorityFeePerGas:e==null?void 0:e.maxPriorityFeePerGas}):new W1({cause:u})}function pY(u,{docsPath:e,...t}){const n=(()=>{const r=vb(u,t);return r instanceof W1?u:r})();return new SP(n,{docsPath:e,...t})}function oE(u,{format:e}){if(!e)return{};const t={};function n(i){const a=Object.keys(i);for(const o of a)o in u&&(t[o]=u[o]),i[o]&&typeof i[o]=="object"&&!Array.isArray(i[o])&&n(i[o])}const r=e(u||{});return n(r),t}function Qf(u){const{account:e,gasPrice:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:i}=u,a=e?Cn(e):void 0;if(a&&!Qe(a.address))throw new ht({address:a.address});if(i&&!Qe(i))throw new ht({address:i});if(typeof t<"u"&&(typeof n<"u"||typeof r<"u"))throw new yP;if(n&&n>2n**256n-1n)throw new aa({maxFeePerGas:n});if(r&&n&&r>n)throw new of({maxFeePerGas:n,maxPriorityFeePerGas:r})}class TP extends l0{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class sE extends l0{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class PP extends l0{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Ge(e)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}class Bb extends l0{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}async function fa(u,{blockHash:e,blockNumber:t,blockTag:n,includeTransactions:r}={}){var l,c,E;const i=n??"latest",a=r??!1,o=t!==void 0?S0(t):void 0;let s=null;if(e?s=await u.request({method:"eth_getBlockByHash",params:[e,a]}):s=await u.request({method:"eth_getBlockByNumber",params:[o||i,a]}),!s)throw new Bb({blockHash:e,blockNumber:t});return(((E=(c=(l=u.chain)==null?void 0:l.formatters)==null?void 0:c.block)==null?void 0:E.format)||V9)(s)}async function Fb(u){const e=await u.request({method:"eth_gasPrice"});return BigInt(e)}async function hY(u,e){return OP(u,e)}async function OP(u,e){var i,a,o;const{block:t,chain:n=u.chain,request:r}=e||{};if(typeof((i=n==null?void 0:n.fees)==null?void 0:i.defaultPriorityFee)=="function"){const s=t||await R0(u,fa,"getBlock")({});return n.fees.defaultPriorityFee({block:s,client:u,request:r})}if(typeof((a=n==null?void 0:n.fees)==null?void 0:a.defaultPriorityFee)<"u")return(o=n==null?void 0:n.fees)==null?void 0:o.defaultPriorityFee;try{const s=await u.request({method:"eth_maxPriorityFeePerGas"});return xu(s)}catch{const[s,f]=await Promise.all([t?Promise.resolve(t):R0(u,fa,"getBlock")({}),R0(u,Fb,"getGasPrice")({})]);if(typeof s.baseFeePerGas!="bigint")throw new sE;const l=f-s.baseFeePerGas;return l<0n?0n:l}}async function CY(u,e){return Jh(u,e)}async function Jh(u,e){var E,d;const{block:t,chain:n=u.chain,request:r,type:i="eip1559"}=e||{},a=await(async()=>{var p,h;return typeof((p=n==null?void 0:n.fees)==null?void 0:p.baseFeeMultiplier)=="function"?n.fees.baseFeeMultiplier({block:t,client:u,request:r}):((h=n==null?void 0:n.fees)==null?void 0:h.baseFeeMultiplier)??1.2})();if(a<1)throw new TP;const s=10**(((E=a.toString().split(".")[1])==null?void 0:E.length)??0),f=p=>p*BigInt(Math.ceil(a*s))/BigInt(s),l=t||await R0(u,fa,"getBlock")({});if(typeof((d=n==null?void 0:n.fees)==null?void 0:d.estimateFeesPerGas)=="function")return n.fees.estimateFeesPerGas({block:t,client:u,multiply:f,request:r,type:i});if(i==="eip1559"){if(typeof l.baseFeePerGas!="bigint")throw new sE;const p=r!=null&&r.maxPriorityFeePerGas?r.maxPriorityFeePerGas:await OP(u,{block:l,chain:n,request:r}),h=f(l.baseFeePerGas);return{maxFeePerGas:(r==null?void 0:r.maxFeePerGas)??h+p,maxPriorityFeePerGas:p}}return{gasPrice:(r==null?void 0:r.gasPrice)??f(await R0(u,Fb,"getGasPrice")({}))}}async function IP(u,{address:e,blockTag:t="latest",blockNumber:n}){const r=await u.request({method:"eth_getTransactionCount",params:[e,n?S0(n):t]});return fu(r)}function Db(u){if(u.type)return u.type;if(typeof u.maxFeePerGas<"u"||typeof u.maxPriorityFeePerGas<"u")return"eip1559";if(typeof u.gasPrice<"u")return typeof u.accessList<"u"?"eip2930":"legacy";throw new vP({transaction:u})}async function fE(u,e){const{account:t=u.account,chain:n,gas:r,nonce:i,type:a}=e;if(!t)throw new Kf;const o=Cn(t),s=await R0(u,fa,"getBlock")({blockTag:"latest"}),f={...e,from:o.address};if(typeof i>"u"&&(f.nonce=await R0(u,IP,"getTransactionCount")({address:o.address,blockTag:"pending"})),typeof a>"u")try{f.type=Db(f)}catch{f.type=typeof s.baseFeePerGas=="bigint"?"eip1559":"legacy"}if(f.type==="eip1559"){const{maxFeePerGas:l,maxPriorityFeePerGas:c}=await Jh(u,{block:s,chain:n,request:f});if(typeof e.maxPriorityFeePerGas>"u"&&e.maxFeePerGas&&e.maxFeePerGas"u"&&(f.gas=await R0(u,wb,"estimateGas")({...f,account:{address:o.address,type:"json-rpc"}})),Qf(f),f}async function wb(u,e){var r,i,a;const t=e.account??u.account;if(!t)throw new Kf({docsPath:"/docs/actions/public/estimateGas"});const n=Cn(t);try{const{accessList:o,blockNumber:s,blockTag:f,data:l,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,to:g,value:b,...m}=n.type==="local"?await fE(u,e):e,y=(s?S0(s):void 0)||f;Qf(e);const B=(a=(i=(r=u.chain)==null?void 0:r.formatters)==null?void 0:i.transactionRequest)==null?void 0:a.format,C=(B||Uo)({...oE(m,{format:B}),from:n.address,accessList:o,data:l,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,to:g,value:b}),D=await u.request({method:"eth_estimateGas",params:y?[C,y]:[C]});return BigInt(D)}catch(o){throw pY(o,{...e,account:n,chain:u.chain})}}async function NP(u,{abi:e,address:t,args:n,functionName:r,...i}){const a=oi({abi:e,args:n,functionName:r});try{return await R0(u,wb,"estimateGas")({data:a,to:t,...i})}catch(o){const s=i.account?Cn(i.account):void 0;throw vf(o,{abi:e,address:t,args:n,docsPath:"/docs/contract/estimateContractGas",functionName:r,sender:s==null?void 0:s.address})}}const pB="/docs/contract/decodeEventLog";function Jf({abi:u,data:e,strict:t,topics:n}){const r=t??!0,[i,...a]=n;if(!i)throw new ZT({docsPath:pB});const o=u.find(p=>p.type==="event"&&i===X9(ii(p)));if(!(o&&"name"in o)||o.type!=="event")throw new XT(i,{docsPath:pB});const{name:s,inputs:f}=o,l=f==null?void 0:f.some(p=>!("name"in p&&p.name));let c=l?[]:{};const E=f.filter(p=>"indexed"in p&&p.indexed);for(let p=0;p!("indexed"in p&&p.indexed));if(d.length>0){if(e&&e!=="0x")try{const p=qo(d,e);if(p)if(l)c=[...c,...p];else for(let h=0;h0?c:void 0}}function mY({param:u,value:e}){return u.type==="string"||u.type==="bytes"||u.type==="tuple"||u.type.match(/^(.*)\[(\d+)?\]$/)?e:(qo([u],e)||[])[0]}async function xb(u,{address:e,blockHash:t,fromBlock:n,toBlock:r,event:i,events:a,args:o,strict:s}={}){const f=s??!1,l=a??(i?[i]:void 0);let c=[];l&&(c=[l.flatMap(d=>Vf({abi:[d],eventName:d.name,args:o}))],i&&(c=c[0]));let E;return t?E=await u.request({method:"eth_getLogs",params:[{address:e,topics:c,blockHash:t}]}):E=await u.request({method:"eth_getLogs",params:[{address:e,topics:c,fromBlock:typeof n=="bigint"?S0(n):n,toBlock:typeof r=="bigint"?S0(r):r}]}),E.map(d=>{var p;try{const{eventName:h,args:g}=l?Jf({abi:l,data:d.data,topics:d.topics,strict:f}):{eventName:void 0,args:void 0};return cn(d,{args:g,eventName:h})}catch(h){let g,b;if(h instanceof oa||h instanceof Wo){if(f)return;g=h.abiItem.name,b=(p=h.abiItem.inputs)==null?void 0:p.some(m=>!("name"in m&&m.name))}return cn(d,{args:b?[]:{},eventName:g})}}).filter(Boolean)}async function kb(u,{abi:e,address:t,args:n,blockHash:r,eventName:i,fromBlock:a,toBlock:o,strict:s}){const f=i?ba({abi:e,name:i}):void 0,l=f?void 0:e.filter(c=>c.type==="event");return R0(u,xb,"getLogs")({address:t,args:n,blockHash:r,event:f,events:l,fromBlock:a,toBlock:o,strict:s})}const w8="/docs/contract/decodeFunctionResult";function Go({abi:u,args:e,functionName:t,data:n}){let r=u[0];if(t&&(r=ba({abi:u,args:e,name:t}),!r))throw new _o(t,{docsPath:w8});if(r.type!=="function")throw new _o(void 0,{docsPath:w8});if(!r.outputs)throw new ob(r.name,{docsPath:w8});const i=qo(r.outputs,n);if(i&&i.length>1)return i;if(i&&i.length===1)return i[0]}const n2=[{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"}],RP=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],MP=[...RP,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],bY=[...RP,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],hB=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],CB=[{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"}]}],gY=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],AY="0x82ad56cb";function Vo({blockNumber:u,chain:e,contract:t}){var r;const n=(r=e==null?void 0:e.contracts)==null?void 0:r[t];if(!n)throw new W5({chain:e,contract:{name:t}});if(u&&n.blockCreated&&n.blockCreated>u)throw new W5({blockNumber:u,chain:e,contract:{name:t,blockCreated:n.blockCreated}});return n.address}function yY(u,{docsPath:e,...t}){const n=(()=>{const r=vb(u,t);return r instanceof W1?u:r})();return new yb(n,{docsPath:e,...t})}const x8=new Map;function _b({fn:u,id:e,shouldSplitBatch:t,wait:n=0,sort:r}){const i=async()=>{const l=s();a();const c=l.map(({args:E})=>E);c.length!==0&&u(c).then(E=>{var d;r&&Array.isArray(E)&&E.sort(r);for(let p=0;p{var d;for(let p=0;px8.delete(e),o=()=>s().map(({args:l})=>l),s=()=>x8.get(e)||[],f=l=>x8.set(e,[...s(),l]);return{flush:a,async schedule(l){const c={},E=new Promise((h,g)=>{c.resolve=h,c.reject=g});return(t==null?void 0:t([...o(),l]))&&i(),s().length>0?(f({args:l,pendingPromise:c}),E):(f({args:l,pendingPromise:c}),setTimeout(i,n),E)}}}async function K1(u,e){var b,m,A,y;const{account:t=u.account,batch:n=!!((b=u.batch)!=null&&b.multicall),blockNumber:r,blockTag:i="latest",accessList:a,data:o,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:E,to:d,value:p,...h}=e,g=t?Cn(t):void 0;try{Qf(e);const v=(r?S0(r):void 0)||i,C=(y=(A=(m=u.chain)==null?void 0:m.formatters)==null?void 0:A.transactionRequest)==null?void 0:y.format,T=(C||Uo)({...oE(h,{format:C}),from:g==null?void 0:g.address,accessList:a,data:o,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:E,to:d,value:p});if(n&&vY({request:T}))try{return await BY(u,{...T,blockNumber:r,blockTag:i})}catch($){if(!($ instanceof eb)&&!($ instanceof W5))throw $}const _=await u.request({method:"eth_call",params:v?[T,v]:[T]});return _==="0x"?{data:void 0}:{data:_}}catch(B){const v=FY(B),{offchainLookup:C,offchainLookupSignature:D}=await L0(()=>Promise.resolve().then(()=>pZ),void 0);if((v==null?void 0:v.slice(0,10))===D&&d)return{data:await C(u,{data:v,to:d})};throw yY(B,{...e,account:g,chain:u.chain})}}function vY({request:u}){const{data:e,to:t,...n}=u;return!(!e||e.startsWith(AY)||!t||Object.values(n).filter(r=>typeof r<"u").length>0)}async function BY(u,e){var h;const{batchSize:t=1024,wait:n=0}=typeof((h=u.batch)==null?void 0:h.multicall)=="object"?u.batch.multicall:{},{blockNumber:r,blockTag:i="latest",data:a,multicallAddress:o,to:s}=e;let f=o;if(!f){if(!u.chain)throw new eb;f=Vo({blockNumber:r,chain:u.chain,contract:"multicall3"})}const c=(r?S0(r):void 0)||i,{schedule:E}=_b({id:`${u.uid}.${c}`,wait:n,shouldSplitBatch(g){return g.reduce((m,{data:A})=>m+(A.length-2),0)>t*2},fn:async g=>{const b=g.map(y=>({allowFailure:!0,callData:y.data,target:y.to})),m=oi({abi:n2,args:[b],functionName:"aggregate3"}),A=await u.request({method:"eth_call",params:[{data:m,to:f},c]});return Go({abi:n2,args:[b],functionName:"aggregate3",data:A||"0x"})}}),[{returnData:d,success:p}]=await E({data:a,to:s});if(!p)throw new iE({data:d});return d==="0x"?{data:void 0}:{data:d}}function FY(u){if(!(u instanceof l0))return;const e=u.walk();return typeof e.data=="object"?e.data.data:e.data}async function Zr(u,{abi:e,address:t,args:n,functionName:r,...i}){const a=oi({abi:e,args:n,functionName:r});try{const{data:o}=await R0(u,K1,"call")({data:a,to:t,...i});return Go({abi:e,args:n,functionName:r,data:o||"0x"})}catch(o){throw vf(o,{abi:e,address:t,args:n,docsPath:"/docs/contract/readContract",functionName:r})}}async function jP(u,{abi:e,address:t,args:n,dataSuffix:r,functionName:i,...a}){const o=a.account?Cn(a.account):void 0,s=oi({abi:e,args:n,functionName:i});try{const{data:f}=await R0(u,K1,"call")({batch:!1,data:`${s}${r?r.replace("0x",""):""}`,to:t,...a});return{result:Go({abi:e,args:n,functionName:i,data:f||"0x"}),request:{abi:e,address:t,args:n,dataSuffix:r,functionName:i,...a}}}catch(f){throw vf(f,{abi:e,address:t,args:n,docsPath:"/docs/contract/simulateContract",functionName:i,sender:o==null?void 0:o.address})}}const k8=new Map,mB=new Map;let DY=0;function Yf(u,e,t){const n=++DY,r=()=>k8.get(u)||[],i=()=>{const l=r();k8.set(u,l.filter(c=>c.id!==n))},a=()=>{const l=mB.get(u);r().length===1&&l&&l(),i()},o=r();if(k8.set(u,[...o,{id:n,fns:e}]),o&&o.length>0)return a;const s={};for(const l in e)s[l]=(...c)=>{var d,p;const E=r();if(E.length!==0)for(const h of E)(p=(d=h.fns)[l])==null||p.call(d,...c)};const f=t(s);return typeof f=="function"&&mB.set(u,f),a}async function r2(u){return new Promise(e=>setTimeout(e,u))}function Q1(u,{emitOnBegin:e,initialWaitTime:t,interval:n}){let r=!0;const i=()=>r=!1;return(async()=>{let o;e&&(o=await u({unpoll:i}));const s=await(t==null?void 0:t(o))??n;await r2(s);const f=async()=>{r&&(await u({unpoll:i}),await r2(n),f())};f()})(),i}const wY=new Map,xY=new Map;function kY(u){const e=(r,i)=>({clear:()=>i.delete(r),get:()=>i.get(r),set:a=>i.set(r,a)}),t=e(u,wY),n=e(u,xY);return{clear:()=>{t.clear(),n.clear()},promise:t,response:n}}async function _Y(u,{cacheKey:e,cacheTime:t=1/0}){const n=kY(e),r=n.response.get();if(r&&t>0&&new Date().getTime()-r.created.getTime()`blockNumber.${u}`;async function J1(u,{cacheTime:e=u.cacheTime,maxAge:t}={}){const n=await _Y(()=>u.request({method:"eth_blockNumber"}),{cacheKey:SY(u.uid),cacheTime:t??e});return BigInt(n)}async function lE(u,{filter:e}){const t="strict"in e&&e.strict;return(await e.request({method:"eth_getFilterChanges",params:[e.id]})).map(r=>{var i;if(typeof r=="string")return r;try{const{eventName:a,args:o}="abi"in e&&e.abi?Jf({abi:e.abi,data:r.data,topics:r.topics,strict:t}):{eventName:void 0,args:void 0};return cn(r,{args:o,eventName:a})}catch(a){let o,s;if(a instanceof oa||a instanceof Wo){if("strict"in e&&e.strict)return;o=a.abiItem.name,s=(i=a.abiItem.inputs)==null?void 0:i.some(f=>!("name"in f&&f.name))}return cn(r,{args:s?[]:{},eventName:o})}}).filter(Boolean)}async function cE(u,{filter:e}){return e.request({method:"eth_uninstallFilter",params:[e.id]})}function zP(u,{abi:e,address:t,args:n,batch:r=!0,eventName:i,onError:a,onLogs:o,poll:s,pollingInterval:f=u.pollingInterval,strict:l}){return(typeof s<"u"?s:u.transport.type!=="webSocket")?(()=>{const p=fe(["watchContractEvent",t,n,r,u.uid,i,f]),h=l??!1;return Yf(p,{onLogs:o,onError:a},g=>{let b,m,A=!1;const y=Q1(async()=>{var B;if(!A){try{m=await R0(u,Cb,"createContractEventFilter")({abi:e,address:t,args:n,eventName:i,strict:h})}catch{}A=!0;return}try{let v;if(m)v=await R0(u,lE,"getFilterChanges")({filter:m});else{const C=await R0(u,J1,"getBlockNumber")({});b&&b!==C?v=await R0(u,kb,"getContractEvents")({abi:e,address:t,args:n,eventName:i,fromBlock:b+1n,toBlock:C,strict:h}):v=[],b=C}if(v.length===0)return;if(r)g.onLogs(v);else for(const C of v)g.onLogs([C])}catch(v){m&&v instanceof sa&&(A=!1),(B=g.onError)==null||B.call(g,v)}},{emitOnBegin:!0,interval:f});return async()=>{m&&await R0(u,cE,"uninstallFilter")({filter:m}),y()}})})():(()=>{let p=!0,h=()=>p=!1;return(async()=>{try{const g=i?Vf({abi:e,eventName:i,args:n}):[],{unsubscribe:b}=await u.transport.subscribe({params:["logs",{address:t,topics:g}],onData(m){var y;if(!p)return;const A=m.result;try{const{eventName:B,args:v}=Jf({abi:e,data:A.data,topics:A.topics,strict:l}),C=cn(A,{args:v,eventName:B});o([C])}catch(B){let v,C;if(B instanceof oa||B instanceof Wo){if(l)return;v=B.abiItem.name,C=(y=B.abiItem.inputs)==null?void 0:y.some(T=>!("name"in T&&T.name))}const D=cn(A,{args:C?[]:{},eventName:v});o([D])}},onError(m){a==null||a(m)}});h=b,p||h()}catch(g){a==null||a(g)}})(),h})()}function Sb({chain:u,currentChainId:e}){if(!u)throw new BT;if(e!==u.id)throw new vT({chain:u,currentChainId:e})}function TY(u,{docsPath:e,...t}){const n=(()=>{const r=vb(u,t);return r instanceof W1?u:r})();return new DP(n,{docsPath:e,...t})}async function Vl(u){const e=await u.request({method:"eth_chainId"});return fu(e)}async function Tb(u,{serializedTransaction:e}){return u.request({method:"eth_sendRawTransaction",params:[e]})}async function Pb(u,e){var h,g,b,m;const{account:t=u.account,chain:n=u.chain,accessList:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:E,...d}=e;if(!t)throw new Kf({docsPath:"/docs/actions/wallet/sendTransaction"});const p=Cn(t);try{Qf(e);let A;if(n!==null&&(A=await R0(u,Vl,"getChainId")({}),Sb({currentChainId:A,chain:n})),p.type==="local"){const C=await R0(u,fE,"prepareTransactionRequest")({account:p,accessList:r,chain:n,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:E,...d});A||(A=await R0(u,Vl,"getChainId")({}));const D=(h=n==null?void 0:n.serializers)==null?void 0:h.transaction,T=await p.signTransaction({...C,chainId:A},{serializer:D});return await R0(u,Tb,"sendRawTransaction")({serializedTransaction:T})}const y=(m=(b=(g=u.chain)==null?void 0:g.formatters)==null?void 0:b.transactionRequest)==null?void 0:m.format,v=(y||Uo)({...oE(d,{format:y}),accessList:r,data:i,from:p.address,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:f,nonce:l,to:c,value:E});return await u.request({method:"eth_sendTransaction",params:[v]})}catch(A){throw TY(A,{...e,account:p,chain:e.chain||void 0})}}async function LP(u,{abi:e,address:t,args:n,dataSuffix:r,functionName:i,...a}){const o=oi({abi:e,args:n,functionName:i});return await R0(u,Pb,"sendTransaction")({data:`${o}${r?r.replace("0x",""):""}`,to:t,...a})}function PY({abi:u,address:e,publicClient:t,walletClient:n}){const r=t!=null,i=n!=null,a={};let o=!1,s=!1,f=!1;for(const l of u)if(l.type==="function"?l.stateMutability==="view"||l.stateMutability==="pure"?o=!0:s=!0:l.type==="event"&&(f=!0),o&&s&&f)break;return r&&(o&&(a.read=new Proxy({},{get(l,c){return(...E)=>{const{args:d,options:p}=e6(E);return R0(t,Zr,"readContract")({abi:u,address:e,functionName:c,args:d,...p})}}})),s&&(a.simulate=new Proxy({},{get(l,c){return(...E)=>{const{args:d,options:p}=e6(E);return R0(t,jP,"simulateContract")({abi:u,address:e,functionName:c,args:d,...p})}}})),f&&(a.createEventFilter=new Proxy({},{get(l,c){return(...E)=>{const d=u.find(g=>g.type==="event"&&g.name===c),{args:p,options:h}=_8(E,d);return R0(t,Cb,"createContractEventFilter")({abi:u,address:e,eventName:c,args:p,...h})}}}),a.getEvents=new Proxy({},{get(l,c){return(...E)=>{const d=u.find(g=>g.type==="event"&&g.name===c),{args:p,options:h}=_8(E,d);return R0(t,kb,"getContractEvents")({abi:u,address:e,eventName:c,args:p,...h})}}}),a.watchEvent=new Proxy({},{get(l,c){return(...E)=>{const d=u.find(g=>g.type==="event"&&g.name===c),{args:p,options:h}=_8(E,d);return R0(t,zP,"watchContractEvent")({abi:u,address:e,eventName:c,args:p,...h})}}}))),i&&s&&(a.write=new Proxy({},{get(l,c){return(...E)=>{const{args:d,options:p}=e6(E);return R0(n,LP,"writeContract")({abi:u,address:e,functionName:c,args:d,...p})}}})),(r||i)&&s&&(a.estimateGas=new Proxy({},{get(l,c){return(...E)=>{const{args:d,options:p}=e6(E);return R0(t??n,NP,"estimateContractGas")({abi:u,address:e,functionName:c,args:d,...p,account:p.account??n.account})}}})),a.address=e,a.abi=u,a}function e6(u){const e=u.length&&Array.isArray(u[0]),t=e?u[0]:[],n=(e?u[1]:u[0])??{};return{args:t,options:n}}function _8(u,e){let t=!1;Array.isArray(u[0])?t=!0:u.length===1?t=e.inputs.some(i=>i.indexed):u.length===2&&(t=!0);const n=t?u[0]:void 0,r=(t?u[1]:u[0])??{};return{args:n,options:r}}async function OY(u,{chain:e}){const{id:t,name:n,nativeCurrency:r,rpcUrls:i,blockExplorers:a}=e;await u.request({method:"wallet_addEthereumChain",params:[{chainId:S0(t),chainName:n,nativeCurrency:r,rpcUrls:i.default.http,blockExplorerUrls:a?Object.values(a).map(({url:o})=>o):void 0}]})}function IY(u){const e=Hu(`0x${u.substring(4)}`).substring(26);return G1(`0x${e}`)}const Yh=256;let t6=Yh,n6;function NY(u=11){if(!n6||t6+u>Yh*2){n6="",t6=0;for(let e=0;e{const b=g(h);for(const A in d)delete b[A];const m={...h,...b};return Object.assign(m,{extend:p(m)})}}return Object.assign(d,{extend:p(d)})}function Zh(u,{delay:e=100,retryCount:t=2,shouldRetry:n=()=>!0}={}){return new Promise((r,i)=>{const a=async({count:o=0}={})=>{const s=async({error:f})=>{const l=typeof e=="function"?e({count:o,error:f}):e;l&&await r2(l),a({count:o+1})};try{const f=await u();r(f)}catch(f){if(o"code"in u?u.code!==-1&&u.code!==-32004&&u.code!==-32005&&u.code!==-32042&&u.code!==-32603:u instanceof ea&&u.status?u.status!==403&&u.status!==408&&u.status!==413&&u.status!==429&&u.status!==500&&u.status!==502&&u.status!==503&&u.status!==504:!1;function RY(u,{retryDelay:e=150,retryCount:t=3}={}){return async n=>Zh(async()=>{try{return await u(n)}catch(r){const i=r;switch(i.code){case ff.code:throw new ff(i);case lf.code:throw new lf(i);case cf.code:throw new cf(i);case Ef.code:throw new Ef(i);case So.code:throw new So(i);case sa.code:throw new sa(i);case df.code:throw new df(i);case Yr.code:throw new Yr(i);case pf.code:throw new pf(i);case hf.code:throw new hf(i);case Cf.code:throw new Cf(i);case mf.code:throw new mf(i);case Gu.code:throw new Gu(i);case bf.code:throw new bf(i);case gf.code:throw new gf(i);case Af.code:throw new Af(i);case yf.code:throw new yf(i);case jn.code:throw new jn(i);case 5e3:throw new Gu(i);default:throw r instanceof l0?r:new _P(i)}}},{delay:({count:r,error:i})=>{var a;if(i&&i instanceof ea){const o=(a=i==null?void 0:i.headers)==null?void 0:a.get("Retry-After");if(o!=null&&o.match(/\d/))return parseInt(o)*1e3}return~~(1<!$P(r)})}function Y1({key:u,name:e,request:t,retryCount:n=3,retryDelay:r=150,timeout:i,type:a},o){return{config:{key:u,name:e,request:t,retryCount:n,retryDelay:r,timeout:i,type:a},request:RY(t,{retryCount:n,retryDelay:r}),value:o}}function Zf(u,e={}){const{key:t="custom",name:n="Custom Provider",retryDelay:r}=e;return({retryCount:i})=>Y1({key:t,name:n,request:u.request.bind(u),retryCount:e.retryCount??i,retryDelay:r,type:"custom"})}function Xh(u,e={}){const{key:t="fallback",name:n="Fallback",rank:r=!1,retryCount:i,retryDelay:a}=e;return({chain:o,pollingInterval:s=4e3,timeout:f})=>{let l=u,c=()=>{};const E=Y1({key:t,name:n,async request({method:d,params:p}){const h=async(g=0)=>{const b=l[g]({chain:o,retryCount:0,timeout:f});try{const m=await b.request({method:d,params:p});return c({method:d,params:p,response:m,transport:b,status:"success"}),m}catch(m){if(c({error:m,method:d,params:p,transport:b,status:"error"}),$P(m)||g===l.length-1)throw m;return h(g+1)}};return h()},retryCount:i,retryDelay:a,type:"fallback"},{onResponse:d=>c=d,transports:l.map(d=>d({chain:o,retryCount:0}))});if(r){const d=typeof r=="object"?r:{};MY({chain:o,interval:d.interval??s,onTransports:p=>l=p,sampleCount:d.sampleCount,timeout:d.timeout,transports:l,weights:d.weights})}return E}}function MY({chain:u,interval:e=4e3,onTransports:t,sampleCount:n=10,timeout:r=1e3,transports:i,weights:a={}}){const{stability:o=.7,latency:s=.3}=a,f=[],l=async()=>{const c=await Promise.all(i.map(async p=>{const h=p({chain:u,retryCount:0,timeout:r}),g=Date.now();let b,m;try{await h.request({method:"net_listening"}),m=1}catch{m=0}finally{b=Date.now()}return{latency:b-g,success:m}}));f.push(c),f.length>n&&f.shift();const E=Math.max(...f.map(p=>Math.max(...p.map(({latency:h})=>h)))),d=i.map((p,h)=>{const g=f.map(B=>B[h].latency),m=1-g.reduce((B,v)=>B+v,0)/g.length/E,A=f.map(B=>B[h].success),y=A.reduce((B,v)=>B+v,0)/A.length;return y===0?[0,h]:[s*m+o*y,h]}).sort((p,h)=>h[0]-p[0]);t(d.map(([,p])=>i[p])),await r2(e),l()};l()}class Ob extends l0{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}function jY(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const bB=jY();function UP(u,{errorInstance:e=new Error("timed out"),timeout:t,signal:n}){return new Promise((r,i)=>{(async()=>{let a;try{const o=new AbortController;t>0&&(a=setTimeout(()=>{n?o.abort():i(e)},t)),r(await u({signal:o==null?void 0:o.signal}))}catch(o){o.name==="AbortError"&&i(e),i(o)}finally{clearTimeout(a)}})()})}let uC=0;async function zY(u,{body:e,fetchOptions:t={},timeout:n=1e4}){var o;const{headers:r,method:i,signal:a}=t;try{const s=await UP(async({signal:l})=>await fetch(u,{...t,body:Array.isArray(e)?fe(e.map(E=>({jsonrpc:"2.0",id:E.id??uC++,...E}))):fe({jsonrpc:"2.0",id:e.id??uC++,...e}),headers:{...r,"Content-Type":"application/json"},method:i||"POST",signal:a||(n>0?l:void 0)}),{errorInstance:new t2({body:e,url:u}),timeout:n,signal:!0});let f;if((o=s.headers.get("Content-Type"))!=null&&o.startsWith("application/json")?f=await s.json():f=await s.text(),!s.ok)throw new ea({body:e,details:fe(f.error)||s.statusText,headers:s.headers,status:s.status,url:u});return f}catch(s){throw s instanceof ea||s instanceof t2?s:new ea({body:e,details:s.message,url:u})}}const S8=new Map;async function T8(u){let e=S8.get(u);if(e)return e;const{schedule:t}=_b({id:u,fn:async()=>{const i=new bB(u),a=new Map,o=new Map,s=({data:l})=>{const c=JSON.parse(l),E=c.method==="eth_subscription",d=E?c.params.subscription:c.id,p=E?o:a,h=p.get(d);h&&h({data:l}),E||p.delete(d)},f=()=>{S8.delete(u),i.removeEventListener("close",f),i.removeEventListener("message",s)};return i.addEventListener("close",f),i.addEventListener("message",s),i.readyState===bB.CONNECTING&&await new Promise((l,c)=>{i&&(i.onopen=l,i.onerror=c)}),e=Object.assign(i,{requests:a,subscriptions:o}),S8.set(u,e),[e]}}),[n,[r]]=await t();return r}function LY(u,{body:e,onResponse:t}){if(u.readyState===u.CLOSED||u.readyState===u.CLOSING)throw new kP({body:e,url:u.url,details:"Socket is closed."});const n=uC++,r=({data:i})=>{var o;const a=JSON.parse(i);typeof a.id=="number"&&n!==a.id||(t==null||t(a),e.method==="eth_subscribe"&&typeof a.result=="string"&&u.subscriptions.set(a.result,r),e.method==="eth_unsubscribe"&&u.subscriptions.delete((o=e.params)==null?void 0:o[0]))};return u.requests.set(n,r),u.send(JSON.stringify({jsonrpc:"2.0",...e,id:n})),u}async function $Y(u,{body:e,timeout:t=1e4}){return UP(()=>new Promise(n=>n4.webSocket(u,{body:e,onResponse:n})),{errorInstance:new t2({body:e,url:u.url}),timeout:t})}const n4={http:zY,webSocket:LY,webSocketAsync:$Y};function WP(u,e={}){const{batch:t,fetchOptions:n,key:r="http",name:i="HTTP JSON-RPC",retryDelay:a}=e;return({chain:o,retryCount:s,timeout:f})=>{const{batchSize:l=1e3,wait:c=0}=typeof t=="object"?t:{},E=e.retryCount??s,d=f??e.timeout??1e4,p=u||(o==null?void 0:o.rpcUrls.default.http[0]);if(!p)throw new Ob;return Y1({key:r,name:i,async request({method:h,params:g}){const b={method:h,params:g},{schedule:m}=_b({id:`${u}`,wait:c,shouldSplitBatch(v){return v.length>l},fn:v=>n4.http(p,{body:v,fetchOptions:n,timeout:d}),sort:(v,C)=>v.id-C.id}),A=async v=>t?m(v):[await n4.http(p,{body:v,fetchOptions:n,timeout:d})],[{error:y,result:B}]=await A(b);if(y)throw new aE({body:b,error:y,url:p});return B},retryCount:E,retryDelay:a,timeout:d,type:"http"},{fetchOptions:n,url:u})}}function Ib(u,e){var n,r,i;if(!(u instanceof l0))return!1;const t=u.walk(a=>a instanceof e2);return t instanceof e2?!!(((n=t.data)==null?void 0:n.errorName)==="ResolverNotFound"||((r=t.data)==null?void 0:r.errorName)==="ResolverWildcardNotSupported"||(i=t.reason)!=null&&i.includes("Wildcard on non-extended resolvers is not supported")||e==="reverse"&&t.reason===gP[50]):!1}function qP(u){if(u.length!==66||u.indexOf("[")!==0||u.indexOf("]")!==65)return null;const e=`0x${u.slice(1,65)}`;return K0(e)?e:null}function hl(u){let e=new Uint8Array(32).fill(0);if(!u)return pt(e);const t=u.split(".");for(let n=t.length-1;n>=0;n-=1){const r=qP(t[n]),i=r?Le(r):Hu(Er(t[n]),"bytes");e=Hu(En([e,i]),"bytes")}return pt(e)}function UY(u){return`[${u.slice(2)}]`}function HP(u){const e=new Uint8Array(32).fill(0);return u?qP(u)||Hu(Er(u)):pt(e)}function dE(u){const e=u.replace(/^\.|\.$/gm,"");if(e.length===0)return new Uint8Array(1);const t=new Uint8Array(Er(e).byteLength+2);let n=0;const r=e.split(".");for(let i=0;i255&&(a=Er(UY(HP(r[i])))),t[n]=a.length,t.set(a,n+1),n+=a.length+1}return t.byteLength!==n+1?t.slice(0,n+1):t}async function WY(u,{blockNumber:e,blockTag:t,coinType:n,name:r,universalResolverAddress:i}){let a=i;if(!a){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=Vo({blockNumber:e,chain:u.chain,contract:"ensUniversalResolver"})}try{const o=oi({abi:CB,functionName:"addr",...n!=null?{args:[hl(r),BigInt(n)]}:{args:[hl(r)]}}),s=await R0(u,Zr,"readContract")({address:a,abi:MP,functionName:"resolve",args:[J0(dE(r)),o],blockNumber:e,blockTag:t});if(s[0]==="0x")return null;const f=Go({abi:CB,args:n!=null?[hl(r),BigInt(n)]:void 0,functionName:"addr",data:s[0]});return f==="0x"||He(f)==="0x00"?null:f}catch(o){if(Ib(o,"resolve"))return null;throw o}}class qY extends l0{constructor({data:e}){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(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class bs extends l0{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class pE extends l0{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class GP extends l0{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const HY=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,GY=/^(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,})(\/(?[\w\-.]+))?(?\/.*)?$/,VY=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,KY=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function QY(u){try{const e=await fetch(u,{method:"HEAD"});if(e.status===200){const t=e.headers.get("content-type");return t==null?void 0:t.startsWith("image/")}return!1}catch(e){return typeof e=="object"&&typeof e.response<"u"||!globalThis.hasOwnProperty("Image")?!1:new Promise(t=>{const n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=u})}}function gB(u,e){return u?u.endsWith("/")?u.slice(0,-1):u:e}function VP({uri:u,gatewayUrls:e}){const t=VY.test(u);if(t)return{uri:u,isOnChain:!0,isEncoded:t};const n=gB(e==null?void 0:e.ipfs,"https://ipfs.io"),r=gB(e==null?void 0:e.arweave,"https://arweave.net"),i=u.match(HY),{protocol:a,subpath:o,target:s,subtarget:f=""}=(i==null?void 0:i.groups)||{},l=a==="ipns:/"||o==="ipns/",c=a==="ipfs:/"||o==="ipfs/"||GY.test(u);if(u.startsWith("http")&&!l&&!c){let d=u;return e!=null&&e.arweave&&(d=u.replace(/https:\/\/arweave.net/g,e==null?void 0:e.arweave)),{uri:d,isOnChain:!1,isEncoded:!1}}if((l||c)&&s)return{uri:`${n}/${l?"ipns":"ipfs"}/${s}${f}`,isOnChain:!1,isEncoded:!1};if(a==="ar:/"&&s)return{uri:`${r}/${s}${f||""}`,isOnChain:!1,isEncoded:!1};let E=u.replace(KY,"");if(E.startsWith("r.json());return await Nb({gatewayUrls:u,uri:KP(t)})}catch{throw new pE({uri:e})}}async function Nb({gatewayUrls:u,uri:e}){const{uri:t,isOnChain:n}=VP({uri:e,gatewayUrls:u});if(n||await QY(t))return t;throw new pE({uri:e})}function YY(u){let e=u;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[t,n,r]=e.split("/"),[i,a]=t.split(":"),[o,s]=n.split(":");if(!i||i.toLowerCase()!=="eip155")throw new bs({reason:"Only EIP-155 supported"});if(!a)throw new bs({reason:"Chain ID not found"});if(!s)throw new bs({reason:"Contract address not found"});if(!r)throw new bs({reason:"Token ID not found"});if(!o)throw new bs({reason:"ERC namespace not found"});return{chainID:parseInt(a),namespace:o.toLowerCase(),contractAddress:s,tokenID:r}}async function ZY(u,{nft:e}){if(e.namespace==="erc721")return Zr(u,{address:e.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(e.tokenID)]});if(e.namespace==="erc1155")return Zr(u,{address:e.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(e.tokenID)]});throw new GP({namespace:e.namespace})}async function XY(u,{gatewayUrls:e,record:t}){return/eip155:/i.test(t)?uZ(u,{gatewayUrls:e,record:t}):Nb({uri:t,gatewayUrls:e})}async function uZ(u,{gatewayUrls:e,record:t}){const n=YY(t),r=await ZY(u,{nft:n}),{uri:i,isOnChain:a,isEncoded:o}=VP({uri:r,gatewayUrls:e});if(a&&(i.includes("data:application/json;base64,")||i.startsWith("{"))){const f=o?atob(i.replace("data:application/json;base64,","")):i,l=JSON.parse(f);return Nb({uri:KP(l),gatewayUrls:e})}let s=n.tokenID;return n.namespace==="erc1155"&&(s=s.replace("0x","").padStart(64,"0")),JY({gatewayUrls:e,uri:i.replace(/(?:0x)?{id}/,s)})}async function QP(u,{blockNumber:e,blockTag:t,name:n,key:r,universalResolverAddress:i}){let a=i;if(!a){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=Vo({blockNumber:e,chain:u.chain,contract:"ensUniversalResolver"})}try{const o=await R0(u,Zr,"readContract")({address:a,abi:MP,functionName:"resolve",args:[J0(dE(n)),oi({abi:hB,functionName:"text",args:[hl(n),r]})],blockNumber:e,blockTag:t});if(o[0]==="0x")return null;const s=Go({abi:hB,functionName:"text",data:o[0]});return s===""?null:s}catch(o){if(Ib(o,"resolve"))return null;throw o}}async function eZ(u,{blockNumber:e,blockTag:t,gatewayUrls:n,name:r,universalResolverAddress:i}){const a=await R0(u,QP,"getEnsText")({blockNumber:e,blockTag:t,key:"avatar",name:r,universalResolverAddress:i});if(!a)return null;try{return await XY(u,{record:a,gatewayUrls:n})}catch{return null}}async function tZ(u,{address:e,blockNumber:t,blockTag:n,universalResolverAddress:r}){let i=r;if(!i){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=Vo({blockNumber:t,chain:u.chain,contract:"ensUniversalResolver"})}const a=`${e.toLowerCase().substring(2)}.addr.reverse`;try{return(await R0(u,Zr,"readContract")({address:i,abi:bY,functionName:"reverse",args:[J0(dE(a))],blockNumber:t,blockTag:n}))[0]}catch(o){if(Ib(o,"reverse"))return null;throw o}}async function nZ(u,{blockNumber:e,blockTag:t,name:n,universalResolverAddress:r}){let i=r;if(!i){if(!u.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=Vo({blockNumber:e,chain:u.chain,contract:"ensUniversalResolver"})}const[a]=await R0(u,Zr,"readContract")({address:i,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[J0(dE(n))],blockNumber:e,blockTag:t});return a}async function rZ(u){const e=eE(u,{method:"eth_newBlockFilter"}),t=await u.request({method:"eth_newBlockFilter"});return{id:t,request:e(t),type:"block"}}async function JP(u,{address:e,args:t,event:n,events:r,fromBlock:i,strict:a,toBlock:o}={}){const s=r??(n?[n]:void 0),f=eE(u,{method:"eth_newFilter"});let l=[];s&&(l=[s.flatMap(E=>Vf({abi:[E],eventName:E.name,args:t}))],n&&(l=l[0]));const c=await u.request({method:"eth_newFilter",params:[{address:e,fromBlock:typeof i=="bigint"?S0(i):i,toBlock:typeof o=="bigint"?S0(o):o,...l.length?{topics:l}:{}}]});return{abi:s,args:t,eventName:n?n.name:void 0,fromBlock:i,id:c,request:f(c),strict:a,toBlock:o,type:"event"}}async function YP(u){const e=eE(u,{method:"eth_newPendingTransactionFilter"}),t=await u.request({method:"eth_newPendingTransactionFilter"});return{id:t,request:e(t),type:"transaction"}}async function iZ(u,{address:e,blockNumber:t,blockTag:n="latest"}){const r=t?S0(t):void 0,i=await u.request({method:"eth_getBalance",params:[e,r||n]});return BigInt(i)}async function aZ(u,{blockHash:e,blockNumber:t,blockTag:n="latest"}={}){const r=t!==void 0?S0(t):void 0;let i;return e?i=await u.request({method:"eth_getBlockTransactionCountByHash",params:[e]}):i=await u.request({method:"eth_getBlockTransactionCountByNumber",params:[r||n]}),fu(i)}async function oZ(u,{address:e,blockNumber:t,blockTag:n="latest"}){const r=t!==void 0?S0(t):void 0,i=await u.request({method:"eth_getCode",params:[e,r||n]});if(i!=="0x")return i}function sZ(u){var e;return{baseFeePerGas:u.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:u.gasUsedRatio,oldestBlock:BigInt(u.oldestBlock),reward:(e=u.reward)==null?void 0:e.map(t=>t.map(n=>BigInt(n)))}}async function fZ(u,{blockCount:e,blockNumber:t,blockTag:n="latest",rewardPercentiles:r}){const i=t?S0(t):void 0,a=await u.request({method:"eth_feeHistory",params:[S0(e),i||n,r]});return sZ(a)}async function lZ(u,{filter:e}){const t=e.strict??!1;return(await e.request({method:"eth_getFilterLogs",params:[e.id]})).map(r=>{var i;try{const{eventName:a,args:o}="abi"in e&&e.abi?Jf({abi:e.abi,data:r.data,topics:r.topics,strict:t}):{eventName:void 0,args:void 0};return cn(r,{args:o,eventName:a})}catch(a){let o,s;if(a instanceof oa||a instanceof Wo){if("strict"in e&&e.strict)return;o=a.abiItem.name,s=(i=a.abiItem.inputs)==null?void 0:i.some(f=>!("name"in f&&f.name))}return cn(r,{args:s?[]:{},eventName:o})}}).filter(Boolean)}class cZ extends l0{constructor({callbackSelector:e,cause:t,data:n,extraData:r,sender:i,urls:a}){var o;super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],(o=t.metaMessages)!=null&&o.length?"":[],"Offchain Gateway Call:",a&&[" Gateway URL(s):",...a.map(s=>` ${Hf(s)}`)],` Sender: ${i}`,` Data: ${n}`,` Callback selector: ${e}`,` Extra data: ${r}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class EZ extends l0{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${Hf(t)}`,`Response: ${fe(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class dZ extends l0{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}function hE(u,e){if(!Qe(u))throw new ht({address:u});if(!Qe(e))throw new ht({address:e});return u.toLowerCase()===e.toLowerCase()}const ZP="0x556f1830",Rb={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 XP(u,{blockNumber:e,blockTag:t,data:n,to:r}){const{args:i}=mb({data:n,abi:[Rb]}),[a,o,s,f,l]=i;try{if(!hE(r,a))throw new dZ({sender:a,to:r});const c=await Mb({data:s,sender:a,urls:o}),{data:E}=await K1(u,{blockNumber:e,blockTag:t,data:En([f,ai([{type:"bytes"},{type:"bytes"}],[c,l])]),to:r});return E}catch(c){throw new cZ({callbackSelector:f,cause:c,data:n,extraData:l,sender:a,urls:o})}}async function Mb({data:u,sender:e,urls:t}){var r;let n=new Error("An unknown error occurred.");for(let i=0;it.id===e)}const CZ=/^(.*)\[([0-9]*)\]$/,uO=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,eO=/^(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 jb({domain:u,message:e,primaryType:t,types:n}){const r=typeof u>"u"?{}:u,i={EIP712Domain:CE({domain:r}),...n};Lb({domain:r,message:e,primaryType:t,types:i});const a=["0x1901"];return r&&a.push(zb({domain:r,types:i})),t!=="EIP712Domain"&&a.push(tO({data:e,primaryType:t,types:i})),Hu(En(a))}function zb({domain:u,types:e}){return tO({data:u,primaryType:"EIP712Domain",types:e})}function tO({data:u,primaryType:e,types:t}){const n=nO({data:u,primaryType:e,types:t});return Hu(n)}function nO({data:u,primaryType:e,types:t}){const n=[{type:"bytes32"}],r=[mZ({primaryType:e,types:t})];for(const i of t[e]){const[a,o]=iO({types:t,name:i.name,type:i.type,value:u[i.name]});n.push(a),r.push(o)}return ai(n,r)}function mZ({primaryType:u,types:e}){const t=J0(bZ({primaryType:u,types:e}));return Hu(t)}function bZ({primaryType:u,types:e}){let t="";const n=rO({primaryType:u,types:e});n.delete(u);const r=[u,...Array.from(n).sort()];for(const i of r)t+=`${i}(${e[i].map(({name:a,type:o})=>`${o} ${a}`).join(",")})`;return t}function rO({primaryType:u,types:e},t=new Set){const n=u.match(/^\w*/u),r=n==null?void 0:n[0];if(t.has(r)||e[r]===void 0)return t;t.add(r);for(const i of e[r])rO({primaryType:i.type,types:e},t);return t}function iO({types:u,name:e,type:t,value:n}){if(u[t]!==void 0)return[{type:"bytes32"},Hu(nO({data:n,primaryType:t,types:u}))];if(t==="bytes")return n=`0x${(n.length%2?"0":"")+n.slice(2)}`,[{type:"bytes32"},Hu(n)];if(t==="string")return[{type:"bytes32"},Hu(J0(n))];if(t.lastIndexOf("]")===t.length-1){const r=t.slice(0,t.lastIndexOf("[")),i=n.map(a=>iO({name:e,type:r,types:u,value:a}));return[{type:"bytes32"},Hu(ai(i.map(([a])=>a),i.map(([,a])=>a)))]}return[{type:t},n]}function Lb({domain:u,message:e,primaryType:t,types:n}){const r=n,i=(a,o)=>{for(const s of a){const{name:f,type:l}=s,c=l,E=o[f],d=c.match(eO);if(d&&(typeof E=="number"||typeof E=="bigint")){const[g,b,m]=d;S0(E,{signed:b==="int",size:parseInt(m)/8})}if(c==="address"&&typeof E=="string"&&!Qe(E))throw new ht({address:E});const p=c.match(uO);if(p){const[g,b]=p;if(b&&$u(E)!==parseInt(b))throw new sb({expectedSize:parseInt(b),givenSize:$u(E)})}const h=r[c];h&&i(h,E)}};if(r.EIP712Domain&&u&&i(r.EIP712Domain,u),t!=="EIP712Domain"){const a=r[t];i(a,e)}}function CE({domain:u}){return[typeof(u==null?void 0:u.name)=="string"&&{name:"name",type:"string"},(u==null?void 0:u.version)&&{name:"version",type:"string"},typeof(u==null?void 0:u.chainId)=="number"&&{name:"chainId",type:"uint256"},(u==null?void 0:u.verifyingContract)&&{name:"verifyingContract",type:"address"},(u==null?void 0:u.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function gZ({domain:u}){return zb({domain:u,types:{EIP712Domain:CE({domain:u})}})}function AZ({abi:u,data:e}){const t=yu(e,0,4),n=u.find(r=>r.type==="function"&&t===Gf(ii(r)));if(!n)throw new uP(t,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:n.name,args:"inputs"in n&&n.inputs&&n.inputs.length>0?qo(n.inputs,yu(e,4)):void 0}}const P8="/docs/contract/encodeDeployData";function $b({abi:u,args:e,bytecode:t}){if(!e||e.length===0)return t;const n=u.find(i=>"type"in i&&i.type==="constructor");if(!n)throw new rb({docsPath:P8});if(!("inputs"in n))throw new Gl({docsPath:P8});if(!n.inputs||n.inputs.length===0)throw new Gl({docsPath:P8});const r=ai(n.inputs,e);return ri([t,r])}const O8="/docs/contract/encodeErrorResult";function yZ({abi:u,errorName:e,args:t}){let n=u[0];if(e&&(n=ba({abi:u,args:t,name:e}),!n))throw new Vh(e,{docsPath:O8});if(n.type!=="error")throw new Vh(void 0,{docsPath:O8});const r=ii(n),i=Gf(r);let a="0x";if(t&&t.length>0){if(!n.inputs)throw new YT(n.name,{docsPath:O8});a=ai(n.inputs,t)}return ri([i,a])}const vZ="/docs/contract/encodeFunctionResult";function BZ({abi:u,functionName:e,result:t}){let n=u[0];if(e&&(n=ba({abi:u,name:e}),!n))throw new _o(e,{docsPath:"/docs/contract/encodeFunctionResult"});if(n.type!=="function")throw new _o(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!n.outputs)throw new ob(n.name,{docsPath:vZ});let r=Array.isArray(t)?t:[t];return n.outputs.length===0&&!r[0]&&(r=[]),ai(n.outputs,r)}function FZ(u,e){if(u.length!==e.length)throw new ib({expectedLength:u.length,givenLength:e.length});const t=[];for(let n=0;n1||t[0]>1)throw new pT(t);return!!t[0]}function lO(u,e={}){typeof e.size<"u"&&hn(u,{size:e.size});const t=pt(u,e);return fu(t)}function cO(u,e={}){let t=u;return typeof e.size<"u"&&(hn(t,{size:e.size}),t=He(t,{dir:"right"})),new TextDecoder().decode(t)}class AB extends l0{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class xZ extends l0{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}const kZ={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,assertPosition(u){if(u<0||u>this.bytes.length-1)throw new xZ({length:this.bytes.length,position:u})},decrementPosition(u){if(u<0)throw new AB({offset:u});const e=this.position-u;this.assertPosition(e),this.position=e},incrementPosition(u){if(u<0)throw new AB({offset:u});const e=this.position+u;this.assertPosition(e),this.position=e},inspectByte(u){const e=u??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(u,e){const t=e??this.position;return this.assertPosition(t+u-1),this.bytes.subarray(t,t+u)},inspectUint8(u){const e=u??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(u){const e=u??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(u){const e=u??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(u){const e=u??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(u){this.assertPosition(this.position),this.bytes[this.position]=u,this.position++},pushBytes(u){this.assertPosition(this.position+u.length-1),this.bytes.set(u,this.position),this.position+=u.length},pushUint8(u){this.assertPosition(this.position),this.bytes[this.position]=u,this.position++},pushUint16(u){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,u),this.position+=2},pushUint24(u){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,u>>8),this.dataView.setUint8(this.position+2,u&255),this.position+=3},pushUint32(u){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,u),this.position+=4},readByte(){const u=this.inspectByte();return this.position++,u},readBytes(u){const e=this.inspectBytes(u);return this.position+=u,e},readUint8(){const u=this.inspectUint8();return this.position+=1,u},readUint16(){const u=this.inspectUint16();return this.position+=2,u},readUint24(){const u=this.inspectUint24();return this.position+=3,u},readUint32(){const u=this.inspectUint32();return this.position+=4,u},setPosition(u){this.assertPosition(u),this.position=u}};function EO(u){const e=Object.create(kZ);return e.bytes=u,e.dataView=new DataView(u.buffer,u.byteOffset,u.byteLength),e}function Ub(u,e="hex"){const t=(()=>{if(typeof u=="string"){if(u.length>3&&u.length%2!==0)throw new CT(u);return ni(u)}return u})(),n=EO(t);return dO(n,e)}function dO(u,e="hex"){if(u.bytes.length===0)return e==="hex"?pt(u.bytes):u.bytes;const t=u.readByte();if(t<128&&u.decrementPosition(1),t<192){const r=yB(u,t,128),i=u.readBytes(r);return e==="hex"?pt(i):i}const n=yB(u,t,192);return _Z(u,n,e)}function yB(u,e,t){if(t===128&&e<128)return 1;if(e<=t+55)return e-t;if(e===t+55+1)return u.readUint8();if(e===t+55+2)return u.readUint16();if(e===t+55+3)return u.readUint24();if(e===t+55+4)return u.readUint32();throw new l0("Invalid RLP prefix")}function _Z(u,e,t){const n=u.position,r=[];for(;u.position-nPromise.resolve().then(()=>Pe0),void 0);return`0x${i.Signature.fromCompact(t.substring(2,130)).addRecoveryBit(r-27).recoverPublicKey(n.substring(2)).toHex(!1)}`}async function Wb({hash:u,signature:e}){return IY(await hO({hash:u,signature:e}))}const CO=`Ethereum Signed Message: +`;function qb(u,e){const t=typeof u=="string"?Er(u):u.raw instanceof Uint8Array?u.raw:Le(u.raw),n=Er(`${CO}${t.length}`);return Hu(En([n,t]),e)}async function mO({message:u,signature:e}){return Wb({hash:qb(u),signature:e})}async function bO({domain:u,message:e,primaryType:t,signature:n,types:r}){return Wb({hash:jb({domain:u,message:e,primaryType:t,types:r}),signature:n})}async function SZ({address:u,message:e,signature:t}){return hE(Su(u),await mO({message:e,signature:t}))}async function TZ({address:u,domain:e,message:t,primaryType:n,signature:r,types:i}){return hE(Su(u),await bO({domain:e,message:t,primaryType:n,signature:r,types:i}))}function gO(u){const e=db(u,0,1);if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&fu(e)>=192)return"legacy";throw new BP({serializedType:e})}function Hb(u){const{chainId:e,maxPriorityFeePerGas:t,gasPrice:n,maxFeePerGas:r,to:i}=u;if(e<=0)throw new K9({chainId:e});if(i&&!Qe(i))throw new ht({address:i});if(n)throw new l0("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(r&&r>2n**256n-1n)throw new aa({maxFeePerGas:r});if(t&&r&&t>r)throw new of({maxFeePerGas:r,maxPriorityFeePerGas:t})}function Gb(u){const{chainId:e,maxPriorityFeePerGas:t,gasPrice:n,maxFeePerGas:r,to:i}=u;if(e<=0)throw new K9({chainId:e});if(i&&!Qe(i))throw new ht({address:i});if(t||r)throw new l0("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>2n**256n-1n)throw new aa({maxFeePerGas:n})}function Vb(u){const{chainId:e,maxPriorityFeePerGas:t,gasPrice:n,maxFeePerGas:r,to:i,accessList:a}=u;if(i&&!Qe(i))throw new ht({address:i});if(typeof e<"u"&&e<=0)throw new K9({chainId:e});if(t||r)throw new l0("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>2n**256n-1n)throw new aa({maxFeePerGas:n});if(a)throw new l0("`accessList` is not a valid Legacy Transaction attribute.")}function PZ(u){const e=gO(u);return e==="eip1559"?OZ(u):e==="eip2930"?IZ(u):NZ(u)}function OZ(u){const e=AO(u),[t,n,r,i,a,o,s,f,l,c,E,d]=e;if(!(e.length===9||e.length===12))throw new nE({attributes:{chainId:t,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:i,gas:a,to:o,value:s,data:f,accessList:l,...e.length>9?{v:c,r:E,s:d}:{}},serializedTransaction:u,type:"eip1559"});const p={chainId:fu(t),type:"eip1559"};return K0(o)&&o!=="0x"&&(p.to=o),K0(a)&&a!=="0x"&&(p.gas=xu(a)),K0(f)&&f!=="0x"&&(p.data=f),K0(n)&&n!=="0x"&&(p.nonce=fu(n)),K0(s)&&s!=="0x"&&(p.value=xu(s)),K0(i)&&i!=="0x"&&(p.maxFeePerGas=xu(i)),K0(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=xu(r)),l.length!==0&&l!=="0x"&&(p.accessList=yO(l)),Hb(p),{...e.length===12?vO(e):void 0,...p}}function IZ(u){const e=AO(u),[t,n,r,i,a,o,s,f,l,c,E]=e;if(!(e.length===8||e.length===11))throw new nE({attributes:{chainId:t,nonce:n,gasPrice:r,gas:i,to:a,value:o,data:s,accessList:f,...e.length>8?{v:l,r:c,s:E}:{}},serializedTransaction:u,type:"eip2930"});const d={chainId:fu(t),type:"eip2930"};return K0(a)&&a!=="0x"&&(d.to=a),K0(i)&&i!=="0x"&&(d.gas=xu(i)),K0(s)&&s!=="0x"&&(d.data=s),K0(n)&&n!=="0x"&&(d.nonce=fu(n)),K0(o)&&o!=="0x"&&(d.value=xu(o)),K0(r)&&r!=="0x"&&(d.gasPrice=xu(r)),f.length!==0&&f!=="0x"&&(d.accessList=yO(f)),Gb(d),{...e.length===11?vO(e):void 0,...d}}function NZ(u){const e=Ub(u,"hex"),[t,n,r,i,a,o,s,f,l]=e;if(!(e.length===6||e.length===9))throw new nE({attributes:{nonce:t,gasPrice:n,gas:r,to:i,value:a,data:o,...e.length>6?{v:s,r:f,s:l}:{}},serializedTransaction:u,type:"legacy"});const c={type:"legacy"};if(K0(i)&&i!=="0x"&&(c.to=i),K0(r)&&r!=="0x"&&(c.gas=xu(r)),K0(o)&&o!=="0x"&&(c.data=o),K0(t)&&t!=="0x"&&(c.nonce=fu(t)),K0(a)&&a!=="0x"&&(c.value=xu(a)),K0(n)&&n!=="0x"&&(c.gasPrice=xu(n)),Vb(c),e.length===6)return c;const E=K0(s)&&s!=="0x"?xu(s):0n;if(l==="0x"&&f==="0x")return E>0&&(c.chainId=Number(E)),c;const d=E,p=Number((d-35n)/2n);if(p>0)c.chainId=p;else if(d!==27n&&d!==28n)throw new bb({v:d});return c.v=d,c.s=l,c.r=f,c}function AO(u){return Ub(`0x${u.slice(4)}`,"hex")}function yO(u){const e=[];for(let t=0;tpO(i)?i:He(i))})}return e}function vO(u){const e=u.slice(-3),t=e[0]==="0x"||xu(e[0])===0n?27n:28n;return{r:Rn(e[1],{size:32}),s:Rn(e[2],{size:32}),v:t,yParity:t===27n?0:1}}function Kb(u){if(!u||u.length===0)return[];const e=[];for(let t=0;t{if(t>0)return BigInt(t*2)+BigInt(35n+e.v-27n);if(e.v>=35n)return(e.v-35n)/2n>0?e.v:27n+(e.v===35n?0n:1n);const c=27n+(e.v===27n?0n:1n);if(e.v!==c)throw new bb({v:e.v});return c})();f=[...f,J0(l),e.r,e.s]}else t>0&&(f=[...f,J0(t),"0x","0x"]);return Ko(f)}function Qb(u,e){let[t,n="0"]=u.split(".");const r=t.startsWith("-");if(r&&(t=t.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(t=`${BigInt(t)+1n}`),n="";else if(n.length>e){const[i,a,o]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],s=Math.round(+`${a}.${o}`);s>9?n=`${BigInt(i)+BigInt(1)}0`.padStart(i.length+1,"0"):n=`${i}${s}`,n.length>e&&(n=n.slice(1),t=`${BigInt(t)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${t}${n}`)}function LZ(u,e="wei"){return Qb(u,tb[e])}function $Z(u,e="wei"){return Qb(u,nb[e])}function UZ(u){return u.map(e=>({...e,value:BigInt(e.value)}))}function WZ(u){return{...u,balance:u.balance?BigInt(u.balance):void 0,nonce:u.nonce?fu(u.nonce):void 0,storageProof:u.storageProof?UZ(u.storageProof):void 0}}async function qZ(u,{address:e,blockNumber:t,blockTag:n,storageKeys:r}){const i=n??"latest",a=t!==void 0?S0(t):void 0,o=await u.request({method:"eth_getProof",params:[e,r,a||i]});return WZ(o)}async function HZ(u,{address:e,blockNumber:t,blockTag:n="latest",slot:r}){const i=t!==void 0?S0(t):void 0;return await u.request({method:"eth_getStorageAt",params:[e,r,i||n]})}async function Jb(u,{blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){var l,c,E;const a=n||"latest",o=t!==void 0?S0(t):void 0;let s=null;if(r?s=await u.request({method:"eth_getTransactionByHash",params:[r]}):e?s=await u.request({method:"eth_getTransactionByBlockHashAndIndex",params:[e,S0(i)]}):(o||a)&&(s=await u.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[o||a,S0(i)]})),!s)throw new gb({blockHash:e,blockNumber:t,blockTag:a,hash:r,index:i});return(((E=(c=(l=u.chain)==null?void 0:l.formatters)==null?void 0:c.transaction)==null?void 0:E.format)||G9)(s)}async function GZ(u,{hash:e,transactionReceipt:t}){const[n,r]=await Promise.all([R0(u,J1,"getBlockNumber")({}),e?R0(u,Jb,"getBlockNumber")({hash:e}):void 0]),i=(t==null?void 0:t.blockNumber)||(r==null?void 0:r.blockNumber);return i?n-i+1n:0n}async function nC(u,{hash:e}){var r,i,a;const t=await u.request({method:"eth_getTransactionReceipt",params:[e]});if(!t)throw new Ab({hash:e});return(((a=(i=(r=u.chain)==null?void 0:r.formatters)==null?void 0:i.transactionReceipt)==null?void 0:a.format)||ub)(t)}async function VZ(u,e){var h;const{allowFailure:t=!0,batchSize:n,blockNumber:r,blockTag:i,contracts:a,multicallAddress:o}=e,s=n??(typeof((h=u.batch)==null?void 0:h.multicall)=="object"&&u.batch.multicall.batchSize||1024);let f=o;if(!f){if(!u.chain)throw new Error("client chain not configured. multicallAddress is required.");f=Vo({blockNumber:r,chain:u.chain,contract:"multicall3"})}const l=[[]];let c=0,E=0;for(let g=0;g0&&E>s&&l[c].length>0&&(c++,E=(B.length-2)/2,l[c]=[]),l[c]=[...l[c],{allowFailure:!0,callData:B,target:m}]}catch(B){const v=vf(B,{abi:b,address:m,args:A,docsPath:"/docs/contract/multicall",functionName:y});if(!t)throw v;l[c]=[...l[c],{allowFailure:!0,callData:"0x",target:m}]}}const d=await Promise.allSettled(l.map(g=>R0(u,Zr,"readContract")({abi:n2,address:f,args:[g],blockNumber:r,blockTag:i,functionName:"aggregate3"}))),p=[];for(let g=0;gu instanceof Uint8Array,JZ=Array.from({length:256},(u,e)=>e.toString(16).padStart(2,"0"));function Bf(u){if(!bE(u))throw new Error("Uint8Array expected");let e="";for(let t=0;tn+r.length,0));let t=0;return u.forEach(n=>{if(!bE(n))throw new Error("Uint8Array expected");e.set(n,t),t+=n.length}),e}function DO(u,e){if(u.length!==e.length)return!1;for(let t=0;tBO;u>>=mE,e+=1);return e}function XZ(u,e){return u>>BigInt(e)&mE}const uX=(u,e,t)=>u|(t?mE:BO)<(QZ<new Uint8Array(u),vB=u=>Uint8Array.from(u);function wO(u,e,t){if(typeof u!="number"||u<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");let n=I8(u),r=I8(u),i=0;const a=()=>{n.fill(1),r.fill(0),i=0},o=(...c)=>t(r,n,...c),s=(c=I8())=>{r=o(vB([0]),c),n=o(),c.length!==0&&(r=o(vB([1]),c),n=o())},f=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let c=0;const E=[];for(;c{a(),s(c);let d;for(;!(d=E(f()));)s();return a(),d}}const eX={bigint:u=>typeof u=="bigint",function:u=>typeof u=="function",boolean:u=>typeof u=="boolean",string:u=>typeof u=="string",stringOrUint8Array:u=>typeof u=="string"||u instanceof Uint8Array,isSafeInteger:u=>Number.isSafeInteger(u),array:u=>Array.isArray(u),field:(u,e)=>e.Fp.isValid(u),hash:u=>typeof u=="function"&&Number.isSafeInteger(u.outputLen)};function Xf(u,e,t={}){const n=(r,i,a)=>{const o=eX[i];if(typeof o!="function")throw new Error(`Invalid validator "${i}", expected function`);const s=u[r];if(!(a&&s===void 0)&&!o(s,u))throw new Error(`Invalid param ${String(r)}=${s} (${typeof s}), expected ${i}`)};for(const[r,i]of Object.entries(e))n(r,i,!1);for(const[r,i]of Object.entries(t))n(r,i,!0);return u}const tX=Object.freeze(Object.defineProperty({__proto__:null,bitGet:XZ,bitLen:ZZ,bitMask:ug,bitSet:uX,bytesToHex:Bf,bytesToNumberBE:Ve,bytesToNumberLE:Zb,concatBytes:St,createHmacDrbg:wO,ensureBytes:_e,equalBytes:DO,hexToBytes:Ff,hexToNumber:Yb,numberToBytesBE:la,numberToBytesLE:Xb,numberToHexUnpadded:FO,numberToVarBytesBE:YZ,utf8ToBytes:gE,validateObject:Xf},Symbol.toStringTag,{value:"Module"}));function nX(u,e){const t=K0(u)?Le(u):u,n=K0(e)?Le(e):e;return DO(t,n)}async function xO(u,{address:e,hash:t,signature:n,...r}){const i=K0(n)?n:J0(n);try{const{data:a}=await R0(u,K1,"call")({data:$b({abi:gY,args:[e,t,i],bytecode:KZ}),...r});return nX(a??"0x0","0x1")}catch(a){if(a instanceof yb)return!1;throw a}}async function rX(u,{address:e,message:t,signature:n,...r}){const i=qb(t);return xO(u,{address:e,hash:i,signature:n,...r})}async function iX(u,{address:e,signature:t,message:n,primaryType:r,types:i,domain:a,...o}){const s=jb({message:n,primaryType:r,types:i,domain:a});return xO(u,{address:e,hash:s,signature:t,...o})}function kO(u,{emitOnBegin:e=!1,emitMissed:t=!1,onBlockNumber:n,onError:r,poll:i,pollingInterval:a=u.pollingInterval}){const o=typeof i<"u"?i:u.transport.type!=="webSocket";let s;return o?(()=>{const c=fe(["watchBlockNumber",u.uid,e,t,a]);return Yf(c,{onBlockNumber:n,onError:r},E=>Q1(async()=>{var d;try{const p=await R0(u,J1,"getBlockNumber")({cacheTime:0});if(s){if(p===s)return;if(p-s>1&&t)for(let h=s+1n;hs)&&(E.onBlockNumber(p,s),s=p)}catch(p){(d=E.onError)==null||d.call(E,p)}},{emitOnBegin:e,interval:a}))})():(()=>{let c=!0,E=()=>c=!1;return(async()=>{try{const{unsubscribe:d}=await u.transport.subscribe({params:["newHeads"],onData(p){var g;if(!c)return;const h=xu((g=p.result)==null?void 0:g.number);n(h,s),s=h},onError(p){r==null||r(p)}});E=d,c||E()}catch(d){r==null||r(d)}})(),E})()}async function aX(u,{confirmations:e=1,hash:t,onReplaced:n,pollingInterval:r=u.pollingInterval,timeout:i}){const a=fe(["waitForTransactionReceipt",u.uid,t]);let o,s,f,l=!1;return new Promise((c,E)=>{i&&setTimeout(()=>E(new wP({hash:t})),i);const d=Yf(a,{onReplaced:n,resolve:c,reject:E},p=>{const h=R0(u,kO,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:r,async onBlockNumber(g){if(l)return;let b=g;const m=A=>{h(),A(),d()};try{if(f){if(e>1&&(!f.blockNumber||b-f.blockNumber+1np.resolve(f));return}if(o||(l=!0,await Zh(async()=>{o=await R0(u,Jb,"getTransaction")({hash:t}),o.blockNumber&&(b=o.blockNumber)},{delay:({count:A})=>~~(1<1&&(!f.blockNumber||b-f.blockNumber+1np.resolve(f))}catch(A){if(o&&(A instanceof gb||A instanceof Ab))try{s=o,l=!0;const y=await Zh(()=>R0(u,fa,"getBlock")({blockNumber:b,includeTransactions:!0}),{delay:({count:C})=>~~(1<C instanceof Bb});l=!1;const B=y.transactions.find(({from:C,nonce:D})=>C===s.from&&D===s.nonce);if(!B||(f=await R0(u,nC,"getTransactionReceipt")({hash:B.hash}),e>1&&(!f.blockNumber||b-f.blockNumber+1n{var C;(C=p.onReplaced)==null||C.call(p,{reason:v,replacedTransaction:s,transaction:B,transactionReceipt:f}),p.resolve(f)})}catch(y){m(()=>p.reject(y))}else m(()=>p.reject(A))}}})})})}function oX(u,{blockTag:e="latest",emitMissed:t=!1,emitOnBegin:n=!1,onBlock:r,onError:i,includeTransactions:a,poll:o,pollingInterval:s=u.pollingInterval}){const f=typeof o<"u"?o:u.transport.type!=="webSocket",l=a??!1;let c;return f?(()=>{const p=fe(["watchBlocks",u.uid,t,n,l,s]);return Yf(p,{onBlock:r,onError:i},h=>Q1(async()=>{var g;try{const b=await R0(u,fa,"getBlock")({blockTag:e,includeTransactions:l});if(b.number&&(c!=null&&c.number)){if(b.number===c.number)return;if(b.number-c.number>1&&t)for(let m=(c==null?void 0:c.number)+1n;mc.number)&&(h.onBlock(b,c),c=b)}catch(b){(g=h.onError)==null||g.call(h,b)}},{emitOnBegin:n,interval:s}))})():(()=>{let p=!0,h=()=>p=!1;return(async()=>{try{const{unsubscribe:g}=await u.transport.subscribe({params:["newHeads"],onData(b){var y,B,v;if(!p)return;const A=(((v=(B=(y=u.chain)==null?void 0:y.formatters)==null?void 0:B.block)==null?void 0:v.format)||V9)(b.result);r(A,c),c=A},onError(b){i==null||i(b)}});h=g,p||h()}catch(g){i==null||i(g)}})(),h})()}function sX(u,{address:e,args:t,batch:n=!0,event:r,events:i,onError:a,onLogs:o,poll:s,pollingInterval:f=u.pollingInterval,strict:l}){const c=typeof s<"u"?s:u.transport.type!=="webSocket",E=l??!1;return c?(()=>{const h=fe(["watchEvent",e,t,n,u.uid,r,f]);return Yf(h,{onLogs:o,onError:a},g=>{let b,m,A=!1;const y=Q1(async()=>{var B;if(!A){try{m=await R0(u,JP,"createEventFilter")({address:e,args:t,event:r,events:i,strict:E})}catch{}A=!0;return}try{let v;if(m)v=await R0(u,lE,"getFilterChanges")({filter:m});else{const C=await R0(u,J1,"getBlockNumber")({});b&&b!==C?v=await R0(u,xb,"getLogs")({address:e,args:t,event:r,events:i,fromBlock:b+1n,toBlock:C}):v=[],b=C}if(v.length===0)return;if(n)g.onLogs(v);else for(const C of v)g.onLogs([C])}catch(v){m&&v instanceof sa&&(A=!1),(B=g.onError)==null||B.call(g,v)}},{emitOnBegin:!0,interval:f});return async()=>{m&&await R0(u,cE,"uninstallFilter")({filter:m}),y()}})})():(()=>{let h=!0,g=()=>h=!1;return(async()=>{try{const b=i??(r?[r]:void 0);let m=[];b&&(m=[b.flatMap(y=>Vf({abi:[y],eventName:y.name,args:t}))],r&&(m=m[0]));const{unsubscribe:A}=await u.transport.subscribe({params:["logs",{address:e,topics:m}],onData(y){var v;if(!h)return;const B=y.result;try{const{eventName:C,args:D}=Jf({abi:b,data:B.data,topics:B.topics,strict:E}),T=cn(B,{args:D,eventName:C});o([T])}catch(C){let D,T;if(C instanceof oa||C instanceof Wo){if(l)return;D=C.abiItem.name,T=(v=C.abiItem.inputs)==null?void 0:v.some($=>!("name"in $&&$.name))}const _=cn(B,{args:T?[]:{},eventName:D});o([_])}},onError(y){a==null||a(y)}});g=A,h||g()}catch(b){a==null||a(b)}})(),g})()}function fX(u,{batch:e=!0,onError:t,onTransactions:n,poll:r,pollingInterval:i=u.pollingInterval}){return(typeof r<"u"?r:u.transport.type!=="webSocket")?(()=>{const f=fe(["watchPendingTransactions",u.uid,e,i]);return Yf(f,{onTransactions:n,onError:t},l=>{let c;const E=Q1(async()=>{var d;try{if(!c)try{c=await R0(u,YP,"createPendingTransactionFilter")({});return}catch(h){throw E(),h}const p=await R0(u,lE,"getFilterChanges")({filter:c});if(p.length===0)return;if(e)l.onTransactions(p);else for(const h of p)l.onTransactions([h])}catch(p){(d=l.onError)==null||d.call(l,p)}},{emitOnBegin:!0,interval:i});return async()=>{c&&await R0(u,cE,"uninstallFilter")({filter:c}),E()}})})():(()=>{let f=!0,l=()=>f=!1;return(async()=>{try{const{unsubscribe:c}=await u.transport.subscribe({params:["newPendingTransactions"],onData(E){if(!f)return;const d=E.result;n([d])},onError(E){t==null||t(E)}});l=c,f||l()}catch(c){t==null||t(c)}})(),l})()}function _O(u){return{call:e=>K1(u,e),createBlockFilter:()=>rZ(u),createContractEventFilter:e=>Cb(u,e),createEventFilter:e=>JP(u,e),createPendingTransactionFilter:()=>YP(u),estimateContractGas:e=>NP(u,e),estimateGas:e=>wb(u,e),getBalance:e=>iZ(u,e),getBlock:e=>fa(u,e),getBlockNumber:e=>J1(u,e),getBlockTransactionCount:e=>aZ(u,e),getBytecode:e=>oZ(u,e),getChainId:()=>Vl(u),getContractEvents:e=>kb(u,e),getEnsAddress:e=>WY(u,e),getEnsAvatar:e=>eZ(u,e),getEnsName:e=>tZ(u,e),getEnsResolver:e=>nZ(u,e),getEnsText:e=>QP(u,e),getFeeHistory:e=>fZ(u,e),estimateFeesPerGas:e=>CY(u,e),getFilterChanges:e=>lE(u,e),getFilterLogs:e=>lZ(u,e),getGasPrice:()=>Fb(u),getLogs:e=>xb(u,e),getProof:e=>qZ(u,e),estimateMaxPriorityFeePerGas:e=>hY(u,e),getStorageAt:e=>HZ(u,e),getTransaction:e=>Jb(u,e),getTransactionConfirmations:e=>GZ(u,e),getTransactionCount:e=>IP(u,e),getTransactionReceipt:e=>nC(u,e),multicall:e=>VZ(u,e),prepareTransactionRequest:e=>fE(u,e),readContract:e=>Zr(u,e),sendRawTransaction:e=>Tb(u,e),simulateContract:e=>jP(u,e),verifyMessage:e=>rX(u,e),verifyTypedData:e=>iX(u,e),uninstallFilter:e=>cE(u,e),waitForTransactionReceipt:e=>aX(u,e),watchBlocks:e=>oX(u,e),watchBlockNumber:e=>kO(u,e),watchContractEvent:e=>zP(u,e),watchEvent:e=>sX(u,e),watchPendingTransactions:e=>fX(u,e)}}function rC(u){const{key:e="public",name:t="Public Client"}=u;return EE({...u,key:e,name:t,type:"publicClient"}).extend(_O)}async function lX(u,{hash:e}){await u.request({method:`${u.mode}_dropTransaction`,params:[e]})}async function cX(u){return u.request({method:`${u.mode}_dumpState`})}async function EX(u){return u.mode==="ganache"?await u.request({method:"eth_mining"}):await u.request({method:`${u.mode}_getAutomine`})}async function dX(u){return await u.request({method:"txpool_content"})}async function pX(u){const{pending:e,queued:t}=await u.request({method:"txpool_status"});return{pending:fu(e),queued:fu(t)}}async function hX(u,{address:e}){await u.request({method:`${u.mode}_impersonateAccount`,params:[e]})}async function CX(u,{seconds:e}){return await u.request({method:"evm_increaseTime",params:[S0(e)]})}async function mX(u){return await u.request({method:"txpool_inspect"})}async function bX(u,{state:e}){await u.request({method:`${u.mode}_loadState`,params:[e]})}async function gX(u,{blocks:e,interval:t}){u.mode==="ganache"?await u.request({method:"evm_mine",params:[{blocks:S0(e)}]}):await u.request({method:`${u.mode}_mine`,params:[S0(e),S0(t||0)]})}async function AX(u){await u.request({method:`${u.mode}_removeBlockTimestampInterval`})}async function yX(u,{blockNumber:e,jsonRpcUrl:t}={}){await u.request({method:`${u.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:t}}]})}async function vX(u,{id:e}){await u.request({method:"evm_revert",params:[e]})}async function BX(u,e){var b,m,A;const{accessList:t,data:n,from:r,gas:i,gasPrice:a,maxFeePerGas:o,maxPriorityFeePerGas:s,nonce:f,to:l,value:c,...E}=e,d=(A=(m=(b=u.chain)==null?void 0:b.formatters)==null?void 0:m.transactionRequest)==null?void 0:A.format,h=(d||Uo)({...oE(E,{format:d}),accessList:t,data:n,from:r,gas:i,gasPrice:a,maxFeePerGas:o,maxPriorityFeePerGas:s,nonce:f,to:l,value:c});return await u.request({method:"eth_sendUnsignedTransaction",params:[h]})}async function FX(u,e){u.mode==="ganache"?e?await u.request({method:"miner_start"}):await u.request({method:"miner_stop"}):await u.request({method:"evm_setAutomine",params:[e]})}async function DX(u,{address:e,value:t}){u.mode==="ganache"?await u.request({method:"evm_setAccountBalance",params:[e,S0(t)]}):await u.request({method:`${u.mode}_setBalance`,params:[e,S0(t)]})}async function wX(u,{gasLimit:e}){await u.request({method:"evm_setBlockGasLimit",params:[S0(e)]})}async function xX(u,{interval:e}){const t=u.mode==="hardhat"?e*1e3:e;await u.request({method:`${u.mode}_setBlockTimestampInterval`,params:[t]})}async function kX(u,{address:e,bytecode:t}){await u.request({method:`${u.mode}_setCode`,params:[e,t]})}async function _X(u,{address:e}){await u.request({method:`${u.mode}_setCoinbase`,params:[e]})}async function SX(u,{interval:e}){const t=u.mode==="hardhat"?e*1e3:e;await u.request({method:"evm_setIntervalMining",params:[t]})}async function TX(u,e){await u.request({method:`${u.mode}_setLoggingEnabled`,params:[e]})}async function PX(u,{gasPrice:e}){await u.request({method:`${u.mode}_setMinGasPrice`,params:[S0(e)]})}async function OX(u,{baseFeePerGas:e}){await u.request({method:`${u.mode}_setNextBlockBaseFeePerGas`,params:[S0(e)]})}async function IX(u,{timestamp:e}){await u.request({method:"evm_setNextBlockTimestamp",params:[S0(e)]})}async function NX(u,{address:e,nonce:t}){await u.request({method:`${u.mode}_setNonce`,params:[e,S0(t)]})}async function RX(u,e){await u.request({method:`${u.mode}_setRpcUrl`,params:[e]})}async function MX(u,{address:e,index:t,value:n}){await u.request({method:`${u.mode}_setStorageAt`,params:[e,typeof t=="number"?S0(t):t,n]})}async function jX(u){return await u.request({method:"evm_snapshot"})}async function zX(u,{address:e}){await u.request({method:`${u.mode}_stopImpersonatingAccount`,params:[e]})}function SO({mode:u}){return e=>{const t=e.extend(()=>({mode:u}));return{dropTransaction:n=>lX(t,n),dumpState:()=>cX(t),getAutomine:()=>EX(t),getTxpoolContent:()=>dX(t),getTxpoolStatus:()=>pX(t),impersonateAccount:n=>hX(t,n),increaseTime:n=>CX(t,n),inspectTxpool:()=>mX(t),loadState:n=>bX(t,n),mine:n=>gX(t,n),removeBlockTimestampInterval:()=>AX(t),reset:n=>yX(t,n),revert:n=>vX(t,n),sendUnsignedTransaction:n=>BX(t,n),setAutomine:n=>FX(t,n),setBalance:n=>DX(t,n),setBlockGasLimit:n=>wX(t,n),setBlockTimestampInterval:n=>xX(t,n),setCode:n=>kX(t,n),setCoinbase:n=>_X(t,n),setIntervalMining:n=>SX(t,n),setLoggingEnabled:n=>TX(t,n),setMinGasPrice:n=>PX(t,n),setNextBlockBaseFeePerGas:n=>OX(t,n),setNextBlockTimestamp:n=>IX(t,n),setNonce:n=>NX(t,n),setRpcUrl:n=>RX(t,n),setStorageAt:n=>MX(t,n),snapshot:()=>jX(t),stopImpersonatingAccount:n=>zX(t,n)}}}function LX(u){const{key:e="test",name:t="Test Client",mode:n}=u;return EE({...u,key:e,name:t,type:"testClient"}).extend(i=>({mode:n,...SO({mode:n})(i)}))}function $X(u,{abi:e,args:t,bytecode:n,...r}){const i=$b({abi:e,args:t,bytecode:n});return Pb(u,{...r,data:i})}async function UX(u){var t;return((t=u.account)==null?void 0:t.type)==="local"?[u.account.address]:(await u.request({method:"eth_accounts"})).map(n=>G1(n))}async function WX(u){return await u.request({method:"wallet_getPermissions"})}async function qX(u){return(await u.request({method:"eth_requestAccounts"})).map(t=>Su(t))}async function HX(u,e){return u.request({method:"wallet_requestPermissions",params:[e]})}async function GX(u,{account:e=u.account,message:t}){if(!e)throw new Kf({docsPath:"/docs/actions/wallet/signMessage"});const n=Cn(e);if(n.type==="local")return n.signMessage({message:t});const r=typeof t=="string"?$1(t):t.raw instanceof Uint8Array?J0(t.raw):t.raw;return u.request({method:"personal_sign",params:[r,n.address]})}async function VX(u,e){var f,l,c,E;const{account:t=u.account,chain:n=u.chain,...r}=e;if(!t)throw new Kf({docsPath:"/docs/actions/wallet/signTransaction"});const i=Cn(t);Qf({account:i,...e});const a=await R0(u,Vl,"getChainId")({});n!==null&&Sb({currentChainId:a,chain:n});const o=(n==null?void 0:n.formatters)||((f=u.chain)==null?void 0:f.formatters),s=((l=o==null?void 0:o.transactionRequest)==null?void 0:l.format)||Uo;return i.type==="local"?i.signTransaction({...r,chainId:a},{serializer:(E=(c=u.chain)==null?void 0:c.serializers)==null?void 0:E.transaction}):await u.request({method:"eth_signTransaction",params:[{...s(r),chainId:S0(a),from:i.address}]})}async function KX(u,{account:e=u.account,domain:t,message:n,primaryType:r,types:i}){if(!e)throw new Kf({docsPath:"/docs/actions/wallet/signTypedData"});const a=Cn(e),o={EIP712Domain:CE({domain:t}),...i};if(Lb({domain:t,message:n,primaryType:r,types:o}),a.type==="local")return a.signTypedData({domain:t,primaryType:r,types:o,message:n});const s=fe({domain:t??{},primaryType:r,types:o,message:n},(f,l)=>K0(l)?l.toLowerCase():l);return u.request({method:"eth_signTypedData_v4",params:[a.address,s]})}async function QX(u,{id:e}){await u.request({method:"wallet_switchEthereumChain",params:[{chainId:S0(e)}]})}async function JX(u,e){return await u.request({method:"wallet_watchAsset",params:e})}function TO(u){return{addChain:e=>OY(u,e),deployContract:e=>$X(u,e),getAddresses:()=>UX(u),getChainId:()=>Vl(u),getPermissions:()=>WX(u),prepareTransactionRequest:e=>fE(u,e),requestAddresses:()=>qX(u),requestPermissions:e=>HX(u,e),sendRawTransaction:e=>Tb(u,e),sendTransaction:e=>Pb(u,e),signMessage:e=>GX(u,e),signTransaction:e=>VX(u,e),signTypedData:e=>KX(u,e),switchChain:e=>QX(u,e),watchAsset:e=>JX(u,e),writeContract:e=>LP(u,e)}}function u3(u){const{key:e="wallet",name:t="Wallet Client",transport:n}=u;return EE({...u,key:e,name:t,transport:i=>n({...i,retryCount:0}),type:"walletClient"}).extend(TO)}function PO(u,e={}){const{key:t="webSocket",name:n="WebSocket JSON-RPC",retryDelay:r}=e;return({chain:i,retryCount:a,timeout:o})=>{var c;const s=e.retryCount??a,f=o??e.timeout??1e4,l=u||((c=i==null?void 0:i.rpcUrls.default.webSocket)==null?void 0:c[0]);if(!l)throw new Ob;return Y1({key:t,name:n,async request({method:E,params:d}){const p={method:E,params:d},h=await T8(l),{error:g,result:b}=await n4.webSocketAsync(h,{body:p,timeout:f});if(g)throw new aE({body:p,error:g,url:l});return b},retryCount:s,retryDelay:r,timeout:f,type:"webSocket"},{getSocket(){return T8(l)},async subscribe({params:E,onData:d,onError:p}){const h=await T8(l),{result:g}=await new Promise((b,m)=>n4.webSocket(h,{body:{method:"eth_subscribe",params:E},onResponse(A){if(A.error){m(A.error),p==null||p(A.error);return}if(typeof A.id=="number"){b(A);return}A.method==="eth_subscription"&&d(A.params)}}));return{subscriptionId:g,async unsubscribe(){return new Promise(b=>n4.webSocket(h,{body:{method:"eth_unsubscribe",params:[g]},onResponse:b}))}}}})}}const YX="0x0000000000000000000000000000000000000000",ZX=2n**(8n-1n)-1n,XX=2n**(16n-1n)-1n,u00=2n**(24n-1n)-1n,e00=2n**(32n-1n)-1n,t00=2n**(40n-1n)-1n,n00=2n**(48n-1n)-1n,r00=2n**(56n-1n)-1n,i00=2n**(64n-1n)-1n,a00=2n**(72n-1n)-1n,o00=2n**(80n-1n)-1n,s00=2n**(88n-1n)-1n,f00=2n**(96n-1n)-1n,l00=2n**(104n-1n)-1n,c00=2n**(112n-1n)-1n,E00=2n**(120n-1n)-1n,d00=2n**(128n-1n)-1n,p00=2n**(136n-1n)-1n,h00=2n**(144n-1n)-1n,C00=2n**(152n-1n)-1n,m00=2n**(160n-1n)-1n,b00=2n**(168n-1n)-1n,g00=2n**(176n-1n)-1n,A00=2n**(184n-1n)-1n,y00=2n**(192n-1n)-1n,v00=2n**(200n-1n)-1n,B00=2n**(208n-1n)-1n,F00=2n**(216n-1n)-1n,D00=2n**(224n-1n)-1n,w00=2n**(232n-1n)-1n,x00=2n**(240n-1n)-1n,k00=2n**(248n-1n)-1n,_00=2n**(256n-1n)-1n,S00=-(2n**(8n-1n)),T00=-(2n**(16n-1n)),P00=-(2n**(24n-1n)),O00=-(2n**(32n-1n)),I00=-(2n**(40n-1n)),N00=-(2n**(48n-1n)),R00=-(2n**(56n-1n)),M00=-(2n**(64n-1n)),j00=-(2n**(72n-1n)),z00=-(2n**(80n-1n)),L00=-(2n**(88n-1n)),$00=-(2n**(96n-1n)),U00=-(2n**(104n-1n)),W00=-(2n**(112n-1n)),q00=-(2n**(120n-1n)),H00=-(2n**(128n-1n)),G00=-(2n**(136n-1n)),V00=-(2n**(144n-1n)),K00=-(2n**(152n-1n)),Q00=-(2n**(160n-1n)),J00=-(2n**(168n-1n)),Y00=-(2n**(176n-1n)),Z00=-(2n**(184n-1n)),X00=-(2n**(192n-1n)),uu0=-(2n**(200n-1n)),eu0=-(2n**(208n-1n)),tu0=-(2n**(216n-1n)),nu0=-(2n**(224n-1n)),ru0=-(2n**(232n-1n)),iu0=-(2n**(240n-1n)),au0=-(2n**(248n-1n)),ou0=-(2n**(256n-1n)),su0=2n**8n-1n,fu0=2n**16n-1n,lu0=2n**24n-1n,cu0=2n**32n-1n,Eu0=2n**40n-1n,du0=2n**48n-1n,pu0=2n**56n-1n,hu0=2n**64n-1n,Cu0=2n**72n-1n,mu0=2n**80n-1n,bu0=2n**88n-1n,gu0=2n**96n-1n,Au0=2n**104n-1n,yu0=2n**112n-1n,vu0=2n**120n-1n,Bu0=2n**128n-1n,Fu0=2n**136n-1n,Du0=2n**144n-1n,wu0=2n**152n-1n,xu0=2n**160n-1n,ku0=2n**168n-1n,_u0=2n**176n-1n,Su0=2n**184n-1n,Tu0=2n**192n-1n,Pu0=2n**200n-1n,Ou0=2n**208n-1n,Iu0=2n**216n-1n,Nu0=2n**224n-1n,Ru0=2n**232n-1n,Mu0=2n**240n-1n,ju0=2n**248n-1n,zu0=2n**256n-1n,Lu0="0x0000000000000000000000000000000000000000000000000000000000000000",N8="/docs/contract/decodeDeployData";function $u0({abi:u,bytecode:e,data:t}){if(t===e)return{bytecode:e};const n=u.find(i=>"type"in i&&i.type==="constructor");if(!n)throw new rb({docsPath:N8});if(!("inputs"in n))throw new Gl({docsPath:N8});if(!n.inputs||n.inputs.length===0)throw new Gl({docsPath:N8});return{args:qo(n.inputs,`0x${t.replace(e,"")}`),bytecode:e}}function Uu0({r:u,yParityAndS:e}){const t=ni(e),n=t[0]&128?28n:27n,r=t;return n===28n&&(r[0]&=127),{r:u,s:pt(r),v:n}}function Wu0(u,e,t,n){if(typeof u.setBigUint64=="function")return u.setBigUint64(e,t,n);const r=BigInt(32),i=BigInt(4294967295),a=Number(t>>r&i),o=Number(t&i),s=n?4:0,f=n?0:4;u.setUint32(e+s,a,n),u.setUint32(e+f,o,n)}class qu0 extends cb{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=D8(this.buffer)}update(e){sf(this);const{view:t,buffer:n,blockLen:r}=this;e=Z9(e);const i=e.length;for(let a=0;ar-a&&(this.process(n,0),a=0);for(let c=a;cl.length)throw new Error("_sha2: outputLen bigger than state");for(let c=0;cu&e^~u&t,Gu0=(u,e,t)=>u&e^u&t^e&t,Vu0=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]),di=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),pi=new Uint32Array(64);class Ku0 extends qu0{constructor(){super(64,32,8,!1),this.A=di[0]|0,this.B=di[1]|0,this.C=di[2]|0,this.D=di[3]|0,this.E=di[4]|0,this.F=di[5]|0,this.G=di[6]|0,this.H=di[7]|0}get(){const{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let c=0;c<16;c++,t+=4)pi[c]=e.getUint32(t,!1);for(let c=16;c<64;c++){const E=pi[c-15],d=pi[c-2],p=Hn(E,7)^Hn(E,18)^E>>>3,h=Hn(d,17)^Hn(d,19)^d>>>10;pi[c]=h+pi[c-7]+p+pi[c-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:f,H:l}=this;for(let c=0;c<64;c++){const E=Hn(o,6)^Hn(o,11)^Hn(o,25),d=l+E+Hu0(o,s,f)+Vu0[c]+pi[c]|0,h=(Hn(n,2)^Hn(n,13)^Hn(n,22))+Gu0(n,r,i)|0;l=f,f=s,s=o,o=a+d|0,a=i,i=r,r=n,n=d+h|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,f=f+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,f,l)}roundClean(){pi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const i2=lP(()=>new Ku0);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const oe=BigInt(0),Lu=BigInt(1),Oa=BigInt(2),Qu0=BigInt(3),iC=BigInt(4),BB=BigInt(5),FB=BigInt(8);BigInt(9);BigInt(16);function ae(u,e){const t=u%e;return t>=oe?t:e+t}function Ju0(u,e,t){if(t<=oe||e 0");if(t===Lu)return oe;let n=Lu;for(;e>oe;)e&Lu&&(n=n*u%t),u=u*u%t,e>>=Lu;return n}function qt(u,e,t){let n=u;for(;e-- >oe;)n*=n,n%=t;return n}function aC(u,e){if(u===oe||e<=oe)throw new Error(`invert: expected positive integers, got n=${u} mod=${e}`);let t=ae(u,e),n=e,r=oe,i=Lu;for(;t!==oe;){const o=n/t,s=n%t,f=r-i*o;n=t,t=s,r=i,i=f}if(n!==Lu)throw new Error("invert: does not exist");return ae(r,e)}function Yu0(u){const e=(u-Lu)/Oa;let t,n,r;for(t=u-Lu,n=0;t%Oa===oe;t/=Oa,n++);for(r=Oa;r(n[r]="function",n),e);return Xf(u,t)}function ue0(u,e,t){if(t 0");if(t===oe)return u.ONE;if(t===Lu)return e;let n=u.ONE,r=e;for(;t>oe;)t&Lu&&(n=u.mul(n,r)),r=u.sqr(r),t>>=Lu;return n}function ee0(u,e){const t=new Array(e.length),n=e.reduce((i,a,o)=>u.is0(a)?i:(t[o]=i,u.mul(i,a)),u.ONE),r=u.inv(n);return e.reduceRight((i,a,o)=>u.is0(a)?i:(t[o]=u.mul(i,t[o]),u.mul(i,a)),r),t}function IO(u,e){const t=e!==void 0?e:u.toString(2).length,n=Math.ceil(t/8);return{nBitLength:t,nByteLength:n}}function te0(u,e,t=!1,n={}){if(u<=oe)throw new Error(`Expected Field ORDER > 0, got ${u}`);const{nBitLength:r,nByteLength:i}=IO(u,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const a=Zu0(u),o=Object.freeze({ORDER:u,BITS:r,BYTES:i,MASK:ug(r),ZERO:oe,ONE:Lu,create:s=>ae(s,u),isValid:s=>{if(typeof s!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof s}`);return oe<=s&&ss===oe,isOdd:s=>(s&Lu)===Lu,neg:s=>ae(-s,u),eql:(s,f)=>s===f,sqr:s=>ae(s*s,u),add:(s,f)=>ae(s+f,u),sub:(s,f)=>ae(s-f,u),mul:(s,f)=>ae(s*f,u),pow:(s,f)=>ue0(o,s,f),div:(s,f)=>ae(s*aC(f,u),u),sqrN:s=>s*s,addN:(s,f)=>s+f,subN:(s,f)=>s-f,mulN:(s,f)=>s*f,inv:s=>aC(s,u),sqrt:n.sqrt||(s=>a(o,s)),invertBatch:s=>ee0(o,s),cmov:(s,f,l)=>l?f:s,toBytes:s=>t?Xb(s,i):la(s,i),fromBytes:s=>{if(s.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${s.length}`);return t?Zb(s):Ve(s)}});return Object.freeze(o)}function NO(u){if(typeof u!="bigint")throw new Error("field order must be bigint");const e=u.toString(2).length;return Math.ceil(e/8)}function RO(u){const e=NO(u);return e+Math.ceil(e/2)}function ne0(u,e,t=!1){const n=u.length,r=NO(e),i=RO(e);if(n<16||n1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const a=t?Ve(u):Zb(u),o=ae(a,e-Lu)+Lu;return t?Xb(o,r):la(o,r)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const re0=BigInt(0),R8=BigInt(1);function ie0(u,e){const t=(r,i)=>{const a=i.negate();return r?a:i},n=r=>{const i=Math.ceil(e/r)+1,a=2**(r-1);return{windows:i,windowSize:a}};return{constTimeNegate:t,unsafeLadder(r,i){let a=u.ZERO,o=r;for(;i>re0;)i&R8&&(a=a.add(o)),o=o.double(),i>>=R8;return a},precomputeWindow(r,i){const{windows:a,windowSize:o}=n(i),s=[];let f=r,l=f;for(let c=0;c>=d,g>s&&(g-=E,a+=R8);const b=h,m=h+Math.abs(g)-1,A=p%2!==0,y=g<0;g===0?l=l.add(t(A,i[b])):f=f.add(t(y,i[m]))}return{p:f,f:l}},wNAFCached(r,i,a,o){const s=r._WINDOW_SIZE||1;let f=i.get(r);return f||(f=this.precomputeWindow(r,s),s!==1&&i.set(r,o(f))),this.wNAF(s,f,a)}}}function MO(u){return OO(u.Fp),Xf(u,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...IO(u.n,u.nBitLength),...u,p:u.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function ae0(u){const e=MO(u);Xf(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:t,Fp:n,a:r}=e;if(t){if(!n.eql(r,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof t!="object"||typeof t.beta!="bigint"||typeof t.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:oe0,hexToBytes:se0}=tX,$a={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(u){const{Err:e}=$a;if(u.length<2||u[0]!==2)throw new e("Invalid signature integer tag");const t=u[1],n=u.subarray(2,t+2);if(!t||n.length!==t)throw new e("Invalid signature integer: wrong length");if(n[0]&128)throw new e("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:oe0(n),l:u.subarray(t+2)}},toSig(u){const{Err:e}=$a,t=typeof u=="string"?se0(u):u;if(!(t instanceof Uint8Array))throw new Error("ui8a expected");let n=t.length;if(n<2||t[0]!=48)throw new e("Invalid signature tag");if(t[1]!==n-2)throw new e("Invalid signature: incorrect length");const{d:r,l:i}=$a._parseInt(t.subarray(2)),{d:a,l:o}=$a._parseInt(i);if(o.length)throw new e("Invalid signature: left bytes after parsing");return{r,s:a}},hexFromSig(u){const e=f=>Number.parseInt(f[0],16)&8?"00"+f:f,t=f=>{const l=f.toString(16);return l.length&1?`0${l}`:l},n=e(t(u.s)),r=e(t(u.r)),i=n.length/2,a=r.length/2,o=t(i),s=t(a);return`30${t(a+i+4)}02${s}${r}02${o}${n}`}},Sn=BigInt(0),Nu=BigInt(1),hi=BigInt(2),a2=BigInt(3),DB=BigInt(4);function fe0(u){const e=ae0(u),{Fp:t}=e,n=e.toBytes||((p,h,g)=>{const b=h.toAffine();return St(Uint8Array.from([4]),t.toBytes(b.x),t.toBytes(b.y))}),r=e.fromBytes||(p=>{const h=p.subarray(1),g=t.fromBytes(h.subarray(0,t.BYTES)),b=t.fromBytes(h.subarray(t.BYTES,2*t.BYTES));return{x:g,y:b}});function i(p){const{a:h,b:g}=e,b=t.sqr(p),m=t.mul(b,p);return t.add(t.add(m,t.mul(p,h)),g)}if(!t.eql(t.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function a(p){return typeof p=="bigint"&&Snt.eql(A,t.ZERO);return m(g)&&m(b)?c.ZERO:new c(g,b,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(h){const g=t.invertBatch(h.map(b=>b.pz));return h.map((b,m)=>b.toAffine(g[m])).map(c.fromAffine)}static fromHex(h){const g=c.fromAffine(r(_e("pointHex",h)));return g.assertValidity(),g}static fromPrivateKey(h){return c.BASE.multiply(s(h))}_setWindowSize(h){this._WINDOW_SIZE=h,f.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!t.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:h,y:g}=this.toAffine();if(!t.isValid(h)||!t.isValid(g))throw new Error("bad point: x or y not FE");const b=t.sqr(g),m=i(h);if(!t.eql(b,m))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:h}=this.toAffine();if(t.isOdd)return!t.isOdd(h);throw new Error("Field doesn't support isOdd")}equals(h){l(h);const{px:g,py:b,pz:m}=this,{px:A,py:y,pz:B}=h,v=t.eql(t.mul(g,B),t.mul(A,m)),C=t.eql(t.mul(b,B),t.mul(y,m));return v&&C}negate(){return new c(this.px,t.neg(this.py),this.pz)}double(){const{a:h,b:g}=e,b=t.mul(g,a2),{px:m,py:A,pz:y}=this;let B=t.ZERO,v=t.ZERO,C=t.ZERO,D=t.mul(m,m),T=t.mul(A,A),_=t.mul(y,y),$=t.mul(m,A);return $=t.add($,$),C=t.mul(m,y),C=t.add(C,C),B=t.mul(h,C),v=t.mul(b,_),v=t.add(B,v),B=t.sub(T,v),v=t.add(T,v),v=t.mul(B,v),B=t.mul($,B),C=t.mul(b,C),_=t.mul(h,_),$=t.sub(D,_),$=t.mul(h,$),$=t.add($,C),C=t.add(D,D),D=t.add(C,D),D=t.add(D,_),D=t.mul(D,$),v=t.add(v,D),_=t.mul(A,y),_=t.add(_,_),D=t.mul(_,$),B=t.sub(B,D),C=t.mul(_,T),C=t.add(C,C),C=t.add(C,C),new c(B,v,C)}add(h){l(h);const{px:g,py:b,pz:m}=this,{px:A,py:y,pz:B}=h;let v=t.ZERO,C=t.ZERO,D=t.ZERO;const T=e.a,_=t.mul(e.b,a2);let $=t.mul(g,A),u0=t.mul(b,y),e0=t.mul(m,B),o0=t.add(g,b),N=t.add(A,y);o0=t.mul(o0,N),N=t.add($,u0),o0=t.sub(o0,N),N=t.add(g,m);let R=t.add(A,B);return N=t.mul(N,R),R=t.add($,e0),N=t.sub(N,R),R=t.add(b,m),v=t.add(y,B),R=t.mul(R,v),v=t.add(u0,e0),R=t.sub(R,v),D=t.mul(T,N),v=t.mul(_,e0),D=t.add(v,D),v=t.sub(u0,D),D=t.add(u0,D),C=t.mul(v,D),u0=t.add($,$),u0=t.add(u0,$),e0=t.mul(T,e0),N=t.mul(_,N),u0=t.add(u0,e0),e0=t.sub($,e0),e0=t.mul(T,e0),N=t.add(N,e0),$=t.mul(u0,N),C=t.add(C,$),$=t.mul(R,N),v=t.mul(o0,v),v=t.sub(v,$),$=t.mul(o0,u0),D=t.mul(R,D),D=t.add(D,$),new c(v,C,D)}subtract(h){return this.add(h.negate())}is0(){return this.equals(c.ZERO)}wNAF(h){return d.wNAFCached(this,f,h,g=>{const b=t.invertBatch(g.map(m=>m.pz));return g.map((m,A)=>m.toAffine(b[A])).map(c.fromAffine)})}multiplyUnsafe(h){const g=c.ZERO;if(h===Sn)return g;if(o(h),h===Nu)return this;const{endo:b}=e;if(!b)return d.unsafeLadder(this,h);let{k1neg:m,k1:A,k2neg:y,k2:B}=b.splitScalar(h),v=g,C=g,D=this;for(;A>Sn||B>Sn;)A&Nu&&(v=v.add(D)),B&Nu&&(C=C.add(D)),D=D.double(),A>>=Nu,B>>=Nu;return m&&(v=v.negate()),y&&(C=C.negate()),C=new c(t.mul(C.px,b.beta),C.py,C.pz),v.add(C)}multiply(h){o(h);let g=h,b,m;const{endo:A}=e;if(A){const{k1neg:y,k1:B,k2neg:v,k2:C}=A.splitScalar(g);let{p:D,f:T}=this.wNAF(B),{p:_,f:$}=this.wNAF(C);D=d.constTimeNegate(y,D),_=d.constTimeNegate(v,_),_=new c(t.mul(_.px,A.beta),_.py,_.pz),b=D.add(_),m=T.add($)}else{const{p:y,f:B}=this.wNAF(g);b=y,m=B}return c.normalizeZ([b,m])[0]}multiplyAndAddUnsafe(h,g,b){const m=c.BASE,A=(B,v)=>v===Sn||v===Nu||!B.equals(m)?B.multiplyUnsafe(v):B.multiply(v),y=A(this,g).add(A(h,b));return y.is0()?void 0:y}toAffine(h){const{px:g,py:b,pz:m}=this,A=this.is0();h==null&&(h=A?t.ONE:t.inv(m));const y=t.mul(g,h),B=t.mul(b,h),v=t.mul(m,h);if(A)return{x:t.ZERO,y:t.ZERO};if(!t.eql(v,t.ONE))throw new Error("invZ was invalid");return{x:y,y:B}}isTorsionFree(){const{h,isTorsionFree:g}=e;if(h===Nu)return!0;if(g)return g(c,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h,clearCofactor:g}=e;return h===Nu?this:g?g(c,this):this.multiplyUnsafe(e.h)}toRawBytes(h=!0){return this.assertValidity(),n(c,this,h)}toHex(h=!0){return Bf(this.toRawBytes(h))}}c.BASE=new c(e.Gx,e.Gy,t.ONE),c.ZERO=new c(t.ZERO,t.ONE,t.ZERO);const E=e.nBitLength,d=ie0(c,e.endo?Math.ceil(E/2):E);return{CURVE:e,ProjectivePoint:c,normPrivateKeyToScalar:s,weierstrassEquation:i,isWithinCurveOrder:a}}function le0(u){const e=MO(u);return Xf(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function ce0(u){const e=le0(u),{Fp:t,n}=e,r=t.BYTES+1,i=2*t.BYTES+1;function a(N){return SnBf(la(N,e.nByteLength));function p(N){const R=n>>Nu;return N>R}function h(N){return p(N)?o(-N):N}const g=(N,R,V)=>Ve(N.slice(R,V));class b{constructor(R,V,G){this.r=R,this.s=V,this.recovery=G,this.assertValidity()}static fromCompact(R){const V=e.nByteLength;return R=_e("compactSignature",R,V*2),new b(g(R,0,V),g(R,V,2*V))}static fromDER(R){const{r:V,s:G}=$a.toSig(_e("DER",R));return new b(V,G)}assertValidity(){if(!E(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!E(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(R){return new b(this.r,this.s,R)}recoverPublicKey(R){const{r:V,s:G,recovery:H}=this,L=C(_e("msgHash",R));if(H==null||![0,1,2,3].includes(H))throw new Error("recovery id invalid");const n0=H===2||H===3?V+e.n:V;if(n0>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const s0=H&1?"03":"02",a0=f.fromHex(s0+d(n0)),K=s(n0),v0=o(-L*K),_0=o(G*K),O0=f.BASE.multiplyAndAddUnsafe(a0,v0,_0);if(!O0)throw new Error("point at infinify");return O0.assertValidity(),O0}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new b(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return Ff(this.toDERHex())}toDERHex(){return $a.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Ff(this.toCompactHex())}toCompactHex(){return d(this.r)+d(this.s)}}const m={isValidPrivateKey(N){try{return l(N),!0}catch{return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{const N=RO(e.n);return ne0(e.randomBytes(N),e.n)},precompute(N=8,R=f.BASE){return R._setWindowSize(N),R.multiply(BigInt(3)),R}};function A(N,R=!0){return f.fromPrivateKey(N).toRawBytes(R)}function y(N){const R=N instanceof Uint8Array,V=typeof N=="string",G=(R||V)&&N.length;return R?G===r||G===i:V?G===2*r||G===2*i:N instanceof f}function B(N,R,V=!0){if(y(N))throw new Error("first arg must be private key");if(!y(R))throw new Error("second arg must be public key");return f.fromHex(R).multiply(l(N)).toRawBytes(V)}const v=e.bits2int||function(N){const R=Ve(N),V=N.length*8-e.nBitLength;return V>0?R>>BigInt(V):R},C=e.bits2int_modN||function(N){return o(v(N))},D=ug(e.nBitLength);function T(N){if(typeof N!="bigint")throw new Error("bigint expected");if(!(Sn<=N&&Nw0 in V))throw new Error("sign() legacy options not supported");const{hash:G,randomBytes:H}=e;let{lowS:L,prehash:n0,extraEntropy:s0}=V;L==null&&(L=!0),N=_e("msgHash",N),n0&&(N=_e("prehashed msgHash",G(N)));const a0=C(N),K=l(R),v0=[T(K),T(a0)];if(s0!=null){const w0=s0===!0?H(t.BYTES):s0;v0.push(_e("extraEntropy",w0))}const _0=St(...v0),O0=a0;function T0(w0){const k=v(w0);if(!E(k))return;const S=s(k),P=f.BASE.multiply(k).toAffine(),z=o(P.x);if(z===Sn)return;const M=o(S*o(O0+z*K));if(M===Sn)return;let q=(P.x===z?0:2)|Number(P.y&Nu),J=M;return L&&p(M)&&(J=h(M),q^=1),new b(z,J,q)}return{seed:_0,k2sig:T0}}const $={lowS:e.lowS,prehash:!1},u0={lowS:e.lowS,prehash:!1};function e0(N,R,V=$){const{seed:G,k2sig:H}=_(N,R,V),L=e;return wO(L.hash.outputLen,L.nByteLength,L.hmac)(G,H)}f.BASE._setWindowSize(8);function o0(N,R,V,G=u0){var P;const H=N;if(R=_e("msgHash",R),V=_e("publicKey",V),"strict"in G)throw new Error("options.strict was renamed to lowS");const{lowS:L,prehash:n0}=G;let s0,a0;try{if(typeof H=="string"||H instanceof Uint8Array)try{s0=b.fromDER(H)}catch(z){if(!(z instanceof $a.Err))throw z;s0=b.fromCompact(H)}else if(typeof H=="object"&&typeof H.r=="bigint"&&typeof H.s=="bigint"){const{r:z,s:M}=H;s0=new b(z,M)}else throw new Error("PARSE");a0=f.fromHex(V)}catch(z){if(z.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(L&&s0.hasHighS())return!1;n0&&(R=e.hash(R));const{r:K,s:v0}=s0,_0=C(R),O0=s(v0),T0=o(_0*O0),w0=o(K*O0),k=(P=f.BASE.multiplyAndAddUnsafe(a0,T0,w0))==null?void 0:P.toAffine();return k?o(k.x)===K:!1}return{CURVE:e,getPublicKey:A,getSharedSecret:B,sign:e0,verify:o0,ProjectivePoint:f,Signature:b,utils:m}}function Ee0(u,e){const t=u.ORDER;let n=Sn;for(let p=t-Nu;p%hi===Sn;p/=hi)n+=Nu;const r=n,i=hi<{let g=c,b=u.pow(h,f),m=u.sqr(b);m=u.mul(m,h);let A=u.mul(p,m);A=u.pow(A,s),A=u.mul(A,b),b=u.mul(A,h),m=u.mul(A,p);let y=u.mul(m,b);A=u.pow(y,l);let B=u.eql(A,u.ONE);b=u.mul(m,E),A=u.mul(y,g),m=u.cmov(b,m,B),y=u.cmov(A,y,B);for(let v=r;v>Nu;v--){let C=v-hi;C=hi<{let m=u.sqr(b);const A=u.mul(g,b);m=u.mul(m,A);let y=u.pow(m,p);y=u.mul(y,A);const B=u.mul(y,h),v=u.mul(u.sqr(y),b),C=u.eql(v,g);let D=u.cmov(B,y,C);return{isValid:C,value:D}}}return d}function de0(u,e){if(OO(u),!u.isValid(e.A)||!u.isValid(e.B)||!u.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const t=Ee0(u,e.Z);if(!u.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let r,i,a,o,s,f,l,c;r=u.sqr(n),r=u.mul(r,e.Z),i=u.sqr(r),i=u.add(i,r),a=u.add(i,u.ONE),a=u.mul(a,e.B),o=u.cmov(e.Z,u.neg(i),!u.eql(i,u.ZERO)),o=u.mul(o,e.A),i=u.sqr(a),f=u.sqr(o),s=u.mul(f,e.A),i=u.add(i,s),i=u.mul(i,a),f=u.mul(f,o),s=u.mul(f,e.B),i=u.add(i,s),l=u.mul(r,a);const{isValid:E,value:d}=t(i,f);c=u.mul(r,n),c=u.mul(c,d),l=u.cmov(l,a,E),c=u.cmov(c,d,E);const p=u.isOdd(n)===u.isOdd(c);return c=u.cmov(u.neg(c),c,p),l=u.div(l,o),{x:l,y:c}}}function pe0(u){if(u instanceof Uint8Array)return u;if(typeof u=="string")return gE(u);throw new Error("DST must be Uint8Array or string")}const he0=Ve;function vi(u,e){if(u<0||u>=1<<8*e)throw new Error(`bad I2OSP call: value=${u} length=${e}`);const t=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)t[n]=u&255,u>>>=8;return new Uint8Array(t)}function Ce0(u,e){const t=new Uint8Array(u.length);for(let n=0;n255&&(e=n(St(gE("H2C-OVERSIZE-DST-"),e)));const{outputLen:r,blockLen:i}=n,a=Math.ceil(t/r);if(a>255)throw new Error("Invalid xmd length");const o=St(e,vi(e.length,1)),s=vi(0,i),f=vi(t,2),l=new Array(a),c=n(St(s,u,f,vi(0,1),o));l[0]=n(St(c,vi(1,1),o));for(let d=1;d<=a;d++){const p=[Ce0(c,l[d-1]),vi(d+1,1),o];l[d]=n(St(...p))}return St(...l).slice(0,t)}function be0(u,e,t,n,r){if(Kl(u),Kl(e),eg(t),e.length>255){const i=Math.ceil(2*n/8);e=r.create({dkLen:i}).update(gE("H2C-OVERSIZE-DST-")).update(e).digest()}if(t>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return r.create({dkLen:t}).update(u).update(vi(t,2)).update(e).update(vi(e.length,1)).digest()}function wB(u,e,t){Xf(t,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:n,k:r,m:i,hash:a,expand:o,DST:s}=t;Kl(u),eg(e);const f=pe0(s),l=n.toString(2).length,c=Math.ceil((l+r)/8),E=e*i*c;let d;if(o==="xmd")d=me0(u,f,E,a);else if(o==="xof")d=be0(u,f,E,r,a);else if(o==="_internal_pass")d=u;else throw new Error('expand must be "xmd" or "xof"');const p=new Array(e);for(let h=0;hArray.from(n).reverse());return(n,r)=>{const[i,a,o,s]=t.map(f=>f.reduce((l,c)=>u.add(u.mul(l,n),c)));return n=u.div(i,a),r=u.mul(r,u.div(o,s)),{x:n,y:r}}}function Ae0(u,e,t){if(typeof e!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(n,r){const i=wB(n,2,{...t,DST:t.DST,...r}),a=u.fromAffine(e(i[0])),o=u.fromAffine(e(i[1])),s=a.add(o).clearCofactor();return s.assertValidity(),s},encodeToCurve(n,r){const i=wB(n,1,{...t,DST:t.encodeDST,...r}),a=u.fromAffine(e(i[0])).clearCofactor();return a.assertValidity(),a}}}let jO=class extends cb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,wJ(e);const n=Z9(t);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let a=0;anew jO(u,e).update(t).digest();zO.create=(u,e)=>new jO(u,e);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function ye0(u){return{hash:u,hmac:(e,...t)=>zO(u,e,RJ(...t)),randomBytes:cP}}function ve0(u,e){const t=n=>ce0({...u,...ye0(n)});return Object.freeze({...t(e),create:t})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const AE=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),o2=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),LO=BigInt(1),s2=BigInt(2),xB=(u,e)=>(u+e/s2)/e;function $O(u){const e=AE,t=BigInt(3),n=BigInt(6),r=BigInt(11),i=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),f=u*u*u%e,l=f*f*u%e,c=qt(l,t,e)*l%e,E=qt(c,t,e)*l%e,d=qt(E,s2,e)*f%e,p=qt(d,r,e)*d%e,h=qt(p,i,e)*p%e,g=qt(h,o,e)*h%e,b=qt(g,s,e)*g%e,m=qt(b,o,e)*h%e,A=qt(m,t,e)*l%e,y=qt(A,a,e)*p%e,B=qt(y,n,e)*f%e,v=qt(B,s2,e);if(!ca.eql(ca.sqr(v),u))throw new Error("Cannot find square root");return v}const ca=te0(AE,void 0,void 0,{sqrt:$O}),Se=ve0({a:BigInt(0),b:BigInt(7),Fp:ca,n:o2,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:u=>{const e=o2,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-LO*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=t,a=BigInt("0x100000000000000000000000000000000"),o=xB(i*u,e),s=xB(-n*u,e);let f=ae(u-o*t-s*r,e),l=ae(-o*n-s*i,e);const c=f>a,E=l>a;if(c&&(f=e-f),E&&(l=e-l),f>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+u);return{k1neg:c,k1:f,k2neg:E,k2:l}}}},i2),yE=BigInt(0),UO=u=>typeof u=="bigint"&&yEtypeof u=="bigint"&&yEr.charCodeAt(0)));t=St(n,n),kB[u]=t}return i2(St(t,...e))}const tg=u=>u.toRawBytes(!0).slice(1),oC=u=>la(u,32),M8=u=>ae(u,AE),Ql=u=>ae(u,o2),ng=Se.ProjectivePoint,Fe0=(u,e,t)=>ng.BASE.multiplyAndAddUnsafe(u,e,t);function sC(u){let e=Se.utils.normPrivateKeyToScalar(u),t=ng.fromPrivateKey(e);return{scalar:t.hasEvenY()?e:Ql(-e),bytes:tg(t)}}function WO(u){if(!UO(u))throw new Error("bad x: need 0 < x < p");const e=M8(u*u),t=M8(e*u+BigInt(7));let n=$O(t);n%s2!==yE&&(n=M8(-n));const r=new ng(u,n,LO);return r.assertValidity(),r}function qO(...u){return Ql(Ve(f2("BIP0340/challenge",...u)))}function De0(u){return sC(u).bytes}function we0(u,e,t=cP(32)){const n=_e("message",u),{bytes:r,scalar:i}=sC(e),a=_e("auxRand",t,32),o=oC(i^Ve(f2("BIP0340/aux",a))),s=f2("BIP0340/nonce",o,r,n),f=Ql(Ve(s));if(f===yE)throw new Error("sign failed: k is zero");const{bytes:l,scalar:c}=sC(f),E=qO(l,r,n),d=new Uint8Array(64);if(d.set(l,0),d.set(oC(Ql(c+E*i)),32),!HO(d,n,r))throw new Error("sign: Invalid signature produced");return d}function HO(u,e,t){const n=_e("signature",u,64),r=_e("message",e),i=_e("publicKey",t,32);try{const a=WO(Ve(i)),o=Ve(n.subarray(0,32));if(!UO(o))return!1;const s=Ve(n.subarray(32,64));if(!Be0(s))return!1;const f=qO(oC(o),tg(a),r),l=Fe0(a,s,Ql(-f));return!(!l||!l.hasEvenY()||l.toAffine().x!==o)}catch{return!1}}const xe0={getPublicKey:De0,sign:we0,verify:HO,utils:{randomPrivateKey:Se.utils.randomPrivateKey,lift_x:WO,pointToBytes:tg,numberToBytesBE:la,bytesToNumberBE:Ve,taggedHash:f2,mod:ae}},ke0=ge0(ca,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(u=>u.map(e=>BigInt(e)))),_e0=de0(ca,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:ca.create(BigInt("-11"))}),GO=Ae0(Se.ProjectivePoint,u=>{const{x:e,y:t}=_e0(ca.create(u[0]));return ke0(e,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:ca.ORDER,m:1,k:128,expand:"xmd",hash:i2}),Se0=GO.hashToCurve,Te0=GO.encodeToCurve,Pe0=Object.freeze(Object.defineProperty({__proto__:null,encodeToCurve:Te0,hashToCurve:Se0,schnorr:xe0,secp256k1:Se},Symbol.toStringTag,{value:"Module"}));function Oe0(u){const{r:e,s:t}=Se.Signature.fromCompact(u.slice(2,130));return{r:S0(e,{size:32}),yParityAndS:S0(t,{size:32})}}function Ie0(u){const{r:e,s:t}=Se.Signature.fromCompact(u.slice(2,130)),n=BigInt(`0x${u.slice(130)}`);return{r:S0(e,{size:32}),s:S0(t,{size:32}),v:n}}function Ne0(u){const{r:e,s:t,v:n}=u,r=n-27n;let i=t;if(r===1n){const a=ni(t);a[0]|=128,i=pt(a)}return{r:e,yParityAndS:i}}function Re0({r:u,yParityAndS:e}){return`0x${new Se.Signature(xu(u),xu(e)).toCompactHex()}`}function Me0({r:u,s:e,v:t}){return`0x${new Se.Signature(xu(u),xu(e)).toCompactHex()}${J0(t).slice(2)}`}const je0=Object.freeze(Object.defineProperty({__proto__:null,AbiConstructorNotFoundError:rb,AbiConstructorParamsNotFoundError:Gl,AbiDecodingDataSizeInvalidError:FJ,AbiDecodingDataSizeTooSmallError:Y9,AbiDecodingZeroDataError:H1,AbiEncodingArrayLengthMismatchError:QT,AbiEncodingBytesSizeMismatchError:JT,AbiEncodingLengthMismatchError:ib,AbiErrorInputsNotFoundError:YT,AbiErrorNotFoundError:Vh,AbiErrorSignatureNotFoundError:ab,AbiEventNotFoundError:Kh,AbiEventSignatureEmptyTopicsError:ZT,AbiEventSignatureNotFoundError:XT,AbiFunctionNotFoundError:_o,AbiFunctionOutputsNotFoundError:ob,AbiFunctionSignatureNotFoundError:uP,BaseError:l0,BaseFeeScalarError:TP,BlockNotFoundError:Bb,BytesSizeMismatchError:sb,CallExecutionError:yb,ChainDisconnectedError:yf,ChainDoesNotSupportContract:W5,ChainMismatchError:vT,ChainNotFoundError:BT,CircularReferenceError:HT,ClientChainNotConfiguredError:eb,ContractFunctionExecutionError:rE,ContractFunctionRevertedError:e2,ContractFunctionZeroDataError:xP,DataLengthTooLongError:NQ,DataLengthTooShortError:RQ,DecodeLogDataMismatch:oa,DecodeLogTopicsMismatch:Wo,Eip1559FeesNotSupportedError:sE,EnsAvatarInvalidNftUriError:bs,EnsAvatarUnsupportedNamespaceError:GP,EnsAvatarUriResolutionError:pE,EstimateGasExecutionError:SP,ExecutionRevertedError:La,FeeCapTooHighError:aa,FeeCapTooLowError:q5,FeeConflictError:yP,FilterTypeNotSupportedError:aP,HttpRequestError:ea,InsufficientFundsError:K5,IntegerOutOfRangeError:dT,InternalRpcError:So,IntrinsicGasTooHighError:Q5,IntrinsicGasTooLowError:J5,InvalidAbiDecodingTypeError:tP,InvalidAbiEncodingTypeError:eP,InvalidAbiItemError:IT,InvalidAbiParameterError:RT,InvalidAbiParametersError:MT,InvalidAbiTypeParameterError:UT,InvalidAddressError:ht,InvalidArrayError:nP,InvalidBytesBooleanError:pT,InvalidChainIdError:K9,InvalidDefinitionTypeError:rP,InvalidFunctionModifierError:$T,InvalidHexBooleanError:hT,InvalidHexValueError:CT,InvalidInputRpcError:sa,InvalidLegacyVError:bb,InvalidModifierError:LT,InvalidParameterError:jT,InvalidParamsRpcError:Ef,InvalidParenthesisError:GT,InvalidRequestRpcError:lf,InvalidSerializableTransactionError:vP,InvalidSerializedTransactionError:nE,InvalidSerializedTransactionTypeError:BP,InvalidSignatureError:Ls,InvalidStorageKeySizeError:FP,InvalidStructSignatureError:qT,JsonRpcVersionUnsupportedError:mf,LimitExceededRpcError:Cf,MaxFeePerGasTooLowError:PP,MethodNotFoundRpcError:cf,MethodNotSupportedRpcError:hf,NonceMaxValueError:V5,NonceTooHighError:H5,NonceTooLowError:G5,OffsetOutOfBoundsError:MQ,ParseRpcError:ff,ProviderDisconnectedError:Af,ProviderRpcError:Ho,RawContractError:iE,ResourceNotFoundRpcError:df,ResourceUnavailableRpcError:Yr,RpcError:ut,RpcRequestError:aE,SizeExceedsPaddingSizeError:Ym,SizeOverflowError:mT,SliceOffsetOutOfBoundsError:Jm,SolidityProtectedKeywordError:zT,SwitchChainError:jn,TimeoutError:t2,TipAboveFeeCapError:of,TransactionExecutionError:DP,TransactionNotFoundError:gb,TransactionReceiptNotFoundError:Ab,TransactionRejectedRpcError:pf,TransactionTypeNotSupportedError:Y5,UnauthorizedProviderError:bf,UnknownNodeError:W1,UnknownRpcError:_P,UnknownSignatureError:WT,UnknownTypeError:NT,UnsupportedPackedAbiType:iP,UnsupportedProviderMethodError:gf,UrlRequiredError:Ob,UserRejectedRequestError:Gu,WaitForTransactionReceiptTimeoutError:wP,WebSocketRequestError:kP,assertCurrentChain:Sb,assertRequest:Qf,assertTransactionEIP1559:Hb,assertTransactionEIP2930:Gb,assertTransactionLegacy:Vb,boolToBytes:gT,boolToHex:q9,bytesToBigInt:tC,bytesToBigint:tC,bytesToBool:fO,bytesToHex:pt,bytesToNumber:lO,bytesToRlp:ze0,bytesToString:cO,ccipFetch:Mb,checksumAddress:G1,compactSignatureToHex:Re0,compactSignatureToSignature:Uu0,concat:En,concatBytes:DT,concatHex:ri,createClient:EE,createPublicClient:rC,createTestClient:LX,createTransport:Y1,createWalletClient:u3,custom:Zf,decodeAbiParameters:qo,decodeDeployData:$u0,decodeErrorResult:mb,decodeEventLog:Jf,decodeFunctionData:AZ,decodeFunctionResult:Go,defineBlock:WQ,defineChain:W9,defineTransaction:UQ,defineTransactionReceipt:HQ,defineTransactionRequest:GQ,domainSeparator:gZ,encodeAbiParameters:ai,encodeDeployData:$b,encodeErrorResult:yZ,encodeEventTopics:Vf,encodeFunctionData:oi,encodeFunctionResult:BZ,encodePacked:FZ,etherUnits:tb,extractChain:hZ,fallback:Xh,formatBlock:V9,formatEther:tE,formatGwei:Ge,formatLog:cn,formatTransaction:G9,formatTransactionReceipt:ub,formatTransactionRequest:Uo,formatUnits:Hl,fromBytes:wZ,fromHex:$Q,fromRlp:Ub,getAbiItem:ba,getAddress:Su,getChainContractAddress:Vo,getContract:PY,getContractAddress:DZ,getContractError:vf,getCreate2Address:sO,getCreateAddress:oO,getEventSelector:X9,getEventSignature:oP,getFunctionSelector:Gf,getFunctionSignature:fb,getSerializedTransactionType:gO,getTransactionType:Db,getTypesForEIP712Domain:CE,gweiUnits:nb,hashDomain:zb,hashMessage:qb,hashTypedData:jb,hexToBigInt:xu,hexToBool:Zm,hexToBytes:ni,hexToCompactSignature:Oe0,hexToNumber:fu,hexToRlp:Le0,hexToSignature:Ie0,hexToString:U1,http:WP,isAddress:Qe,isAddressEqual:hE,isBytes:eC,isHash:pO,isHex:K0,keccak256:Hu,labelhash:HP,maxInt104:l00,maxInt112:c00,maxInt120:E00,maxInt128:d00,maxInt136:p00,maxInt144:h00,maxInt152:C00,maxInt16:XX,maxInt160:m00,maxInt168:b00,maxInt176:g00,maxInt184:A00,maxInt192:y00,maxInt200:v00,maxInt208:B00,maxInt216:F00,maxInt224:D00,maxInt232:w00,maxInt24:u00,maxInt240:x00,maxInt248:k00,maxInt256:_00,maxInt32:e00,maxInt40:t00,maxInt48:n00,maxInt56:r00,maxInt64:i00,maxInt72:a00,maxInt8:ZX,maxInt80:o00,maxInt88:s00,maxInt96:f00,maxUint104:Au0,maxUint112:yu0,maxUint120:vu0,maxUint128:Bu0,maxUint136:Fu0,maxUint144:Du0,maxUint152:wu0,maxUint16:fu0,maxUint160:xu0,maxUint168:ku0,maxUint176:_u0,maxUint184:Su0,maxUint192:Tu0,maxUint200:Pu0,maxUint208:Ou0,maxUint216:Iu0,maxUint224:Nu0,maxUint232:Ru0,maxUint24:lu0,maxUint240:Mu0,maxUint248:ju0,maxUint256:zu0,maxUint32:cu0,maxUint40:Eu0,maxUint48:du0,maxUint56:pu0,maxUint64:hu0,maxUint72:Cu0,maxUint8:su0,maxUint80:mu0,maxUint88:bu0,maxUint96:gu0,minInt104:U00,minInt112:W00,minInt120:q00,minInt128:H00,minInt136:G00,minInt144:V00,minInt152:K00,minInt16:T00,minInt160:Q00,minInt168:J00,minInt176:Y00,minInt184:Z00,minInt192:X00,minInt200:uu0,minInt208:eu0,minInt216:tu0,minInt224:nu0,minInt232:ru0,minInt24:P00,minInt240:iu0,minInt248:au0,minInt256:ou0,minInt32:O00,minInt40:I00,minInt48:N00,minInt56:R00,minInt64:M00,minInt72:j00,minInt8:S00,minInt80:z00,minInt88:L00,minInt96:$00,multicall3Abi:n2,namehash:hl,numberToBytes:AT,numberToHex:S0,offchainLookup:XP,offchainLookupAbiItem:Rb,offchainLookupSignature:ZP,pad:Nn,padBytes:bT,padHex:Rn,parseAbi:gJ,parseAbiItem:AJ,parseAbiParameter:yJ,parseAbiParameters:vJ,parseEther:LZ,parseGwei:$Z,parseTransaction:PZ,parseUnits:Qb,presignMessagePrefix:CO,publicActions:_O,recoverAddress:Wb,recoverMessageAddress:mO,recoverPublicKey:hO,recoverTypedDataAddress:bO,rpcTransactionType:yT,serializeAccessList:Kb,serializeTransaction:RZ,signatureToCompactSignature:Ne0,signatureToHex:Me0,size:$u,slice:yu,sliceBytes:bP,sliceHex:db,stringToBytes:Er,stringToHex:$1,stringify:fe,testActions:SO,toBytes:Le,toHex:J0,toRlp:Ko,transactionType:Xm,trim:He,validateTypedData:Lb,verifyMessage:SZ,verifyTypedData:TZ,walletActions:TO,webSocket:PO,weiUnits:FT,zeroAddress:YX,zeroHash:Lu0},Symbol.toStringTag,{value:"Module"}));function Ko(u,e="hex"){const t=VO(u),n=EO(new Uint8Array(t.length));return t.encode(n),e==="hex"?pt(n.bytes):n.bytes}function ze0(u,e="bytes"){return Ko(u,e)}function Le0(u,e="hex"){return Ko(u,e)}function VO(u){return Array.isArray(u)?$e0(u.map(e=>VO(e))):Ue0(u)}function $e0(u){const e=u.reduce((r,i)=>r+i.length,0),t=KO(e);return{length:e<=55?1+e:1+t+e,encode(r){e<=55?r.pushByte(192+e):(r.pushByte(247+t),t===1?r.pushUint8(e):t===2?r.pushUint16(e):t===3?r.pushUint24(e):r.pushUint32(e));for(const{encode:i}of u)i(r)}}}function Ue0(u){const e=typeof u=="string"?ni(u):u,t=KO(e.length);return{length:e.length===1&&e[0]<128?1:e.length<=55?1+e.length:1+t+e.length,encode(r){e.length===1&&e[0]<128?r.pushBytes(e):e.length<=55?(r.pushByte(128+e.length),r.pushBytes(e)):(r.pushByte(183+t),t===1?r.pushUint8(e.length):t===2?r.pushUint16(e.length):t===3?r.pushUint24(e.length):r.pushUint32(e.length),r.pushBytes(e))}}}function KO(u){if(u<2**8)return 1;if(u<2**16)return 2;if(u<2**24)return 3;if(u<2**32)return 4;throw new l0("Length is too large.")}const We0=W9({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),QO=W9({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),qe0=W9({id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/polygon_mumbai"]},public:{http:["https://rpc.ankr.com/polygon_mumbai"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0});var JO=class extends Error{constructor({chainId:u,connectorId:e}){super(`Chain "${u}" not configured for connector "${e}".`),this.name="ChainNotConfiguredForConnectorError"}},nt=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}};function To(u){return typeof u=="string"?Number.parseInt(u,u.trim().substring(0,2)==="0x"?16:10):typeof u=="bigint"?Number(u):u}var YO={exports:{}};(function(u){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(s,f,l){this.fn=s,this.context=f,this.once=l||!1}function i(s,f,l,c,E){if(typeof l!="function")throw new TypeError("The listener must be a function");var d=new r(l,c||s,E),p=t?t+f:f;return s._events[p]?s._events[p].fn?s._events[p]=[s._events[p],d]:s._events[p].push(d):(s._events[p]=d,s._eventsCount++),s}function a(s,f){--s._eventsCount===0?s._events=new n:delete s._events[f]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var f=[],l,c;if(this._eventsCount===0)return f;for(c in l=this._events)e.call(l,c)&&f.push(t?c.slice(1):c);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(l)):f},o.prototype.listeners=function(f){var l=t?t+f:f,c=this._events[l];if(!c)return[];if(c.fn)return[c.fn];for(var E=0,d=c.length,p=new Array(d);E{if(!e.has(u))throw TypeError("Cannot "+t)},W0=(u,e,t)=>(rg(u,e,"read from private field"),t?t.call(u):e.get(u)),Yu=(u,e,t)=>{if(e.has(u))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(u):e.set(u,t)},Xr=(u,e,t,n)=>(rg(u,e,"write to private field"),n?n.call(u,t):e.set(u,t),t),Qu=(u,e,t)=>(rg(u,e,"access private method"),t),Z1=class extends Ge0{constructor({chains:u=[QO,We0],options:e}){super(),this.chains=u,this.options=e}getBlockExplorerUrls(u){const{default:e,...t}=u.blockExplorers??{};if(e)return[e.url,...Object.values(t).map(n=>n.url)]}isChainUnsupported(u){return!this.chains.some(e=>e.id===u)}setStorage(u){this.storage=u}};function Ve0(u){var t;if(!u)return"Injected";const e=n=>{if(n.isApexWallet)return"Apex Wallet";if(n.isAvalanche)return"Core Wallet";if(n.isBackpack)return"Backpack";if(n.isBifrost)return"Bifrost Wallet";if(n.isBitKeep)return"BitKeep";if(n.isBitski)return"Bitski";if(n.isBlockWallet)return"BlockWallet";if(n.isBraveWallet)return"Brave Wallet";if(n.isCoin98)return"Coin98 Wallet";if(n.isCoinbaseWallet)return"Coinbase Wallet";if(n.isDawn)return"Dawn Wallet";if(n.isDefiant)return"Defiant";if(n.isDesig)return"Desig Wallet";if(n.isEnkrypt)return"Enkrypt";if(n.isExodus)return"Exodus";if(n.isFordefi)return"Fordefi";if(n.isFrame)return"Frame";if(n.isFrontier)return"Frontier Wallet";if(n.isGamestop)return"GameStop Wallet";if(n.isHaqqWallet)return"HAQQ Wallet";if(n.isHyperPay)return"HyperPay Wallet";if(n.isImToken)return"ImToken";if(n.isHaloWallet)return"Halo Wallet";if(n.isKuCoinWallet)return"KuCoin Wallet";if(n.isMathWallet)return"MathWallet";if(n.isNovaWallet)return"Nova Wallet";if(n.isOkxWallet||n.isOKExWallet)return"OKX Wallet";if(n.isOneInchIOSWallet||n.isOneInchAndroidWallet)return"1inch Wallet";if(n.isOpera)return"Opera";if(n.isPhantom)return"Phantom";if(n.isPortal)return"Ripio Portal";if(n.isRabby)return"Rabby Wallet";if(n.isRainbow)return"Rainbow";if(n.isSafePal)return"SafePal Wallet";if(n.isStatus)return"Status";if(n.isSubWallet)return"SubWallet";if(n.isTalisman)return"Talisman";if(n.isTally)return"Taho";if(n.isTokenPocket)return"TokenPocket";if(n.isTokenary)return"Tokenary";if(n.isTrust||n.isTrustWallet)return"Trust Wallet";if(n.isTTWallet)return"TTWallet";if(n.isXDEFI)return"XDEFI Wallet";if(n.isZeal)return"Zeal";if(n.isZerion)return"Zerion";if(n.isMetaMask)return"MetaMask"};if((t=u.providers)!=null&&t.length){const n=new Set;let r=1;for(const a of u.providers){let o=e(a);o||(o=`Unknown Wallet #${r}`,r+=1),n.add(o)}const i=[...n];return i.length?i:i[0]??"Injected"}return e(u)??"Injected"}var U6,Df=class extends Z1{constructor({chains:u,options:e}={}){const t={shimDisconnect:!0,getProvider(){if(typeof window>"u")return;const r=window.ethereum;return r!=null&&r.providers&&r.providers.length>0?r.providers[0]:r},...e};super({chains:u,options:t}),this.id="injected",Yu(this,U6,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=r=>{r.length===0?this.emit("disconnect"):this.emit("change",{account:Su(r[0])})},this.onChainChanged=r=>{const i=To(r),a=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:a}})},this.onDisconnect=async r=>{var i;r.code===1013&&await this.getProvider()&&await this.getAccount()||(this.emit("disconnect"),this.options.shimDisconnect&&((i=this.storage)==null||i.removeItem(this.shimDisconnectKey)))};const n=t.getProvider();if(typeof t.name=="string")this.name=t.name;else if(n){const r=Ve0(n);t.name?this.name=t.name(r):typeof r=="string"?this.name=r:this.name=r[0]}else this.name="Injected";this.ready=!!n}async connect({chainId:u}={}){var e;try{const t=await this.getProvider();if(!t)throw new nt;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const n=await t.request({method:"eth_requestAccounts"}),r=Su(n[0]);let i=await this.getChainId(),a=this.isChainUnsupported(i);return u&&i!==u&&(i=(await this.switchChain(u)).id,a=this.isChainUnsupported(i)),this.options.shimDisconnect&&((e=this.storage)==null||e.setItem(this.shimDisconnectKey,!0)),{account:r,chain:{id:i,unsupported:a}}}catch(t){throw this.isUserRejectedRequestError(t)?new Gu(t):t.code===-32002?new Yr(t):t}}async disconnect(){var e;const u=await this.getProvider();u!=null&&u.removeListener&&(u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((e=this.storage)==null||e.removeItem(this.shimDisconnectKey)))}async getAccount(){const u=await this.getProvider();if(!u)throw new nt;const e=await u.request({method:"eth_accounts"});return Su(e[0])}async getChainId(){const u=await this.getProvider();if(!u)throw new nt;return u.request({method:"eth_chainId"}).then(To)}async getProvider(){const u=this.options.getProvider();return u&&Xr(this,U6,u),W0(this,U6)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return u3({account:t,chain:n,transport:Zf(e)})}async isAuthorized(){var u;try{if(this.options.shimDisconnect&&!((u=this.storage)!=null&&u.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new nt;return!!await this.getAccount()}catch{return!1}}async switchChain(u){var n,r,i;const e=await this.getProvider();if(!e)throw new nt;const t=S0(u);try{return await Promise.all([e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),new Promise(a=>this.on("change",({chain:o})=>{(o==null?void 0:o.id)===u&&a()}))]),this.chains.find(a=>a.id===u)??{id:u,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(a){const o=this.chains.find(s=>s.id===u);if(!o)throw new JO({chainId:u,connectorId:this.id});if(a.code===4902||((r=(n=a==null?void 0:a.data)==null?void 0:n.originalError)==null?void 0:r.code)===4902)try{if(await e.request({method:"wallet_addEthereumChain",params:[{chainId:t,chainName:o.name,nativeCurrency:o.nativeCurrency,rpcUrls:[((i=o.rpcUrls.public)==null?void 0:i.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(o)}]}),await this.getChainId()!==u)throw new Gu(new Error("User rejected switch after adding network."));return o}catch(s){throw new Gu(s)}throw this.isUserRejectedRequestError(a)?new Gu(a):new jn(a)}}async watchAsset({address:u,decimals:e=18,image:t,symbol:n}){const r=await this.getProvider();if(!r)throw new nt;return r.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:u,decimals:e,image:t,symbol:n}}})}isUserRejectedRequestError(u){return u.code===4001}};U6=new WeakMap;var ig=(u,e,t)=>{if(!e.has(u))throw TypeError("Cannot "+t)},j8=(u,e,t)=>(ig(u,e,"read from private field"),t?t.call(u):e.get(u)),z8=(u,e,t)=>{if(e.has(u))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(u):e.set(u,t)},r6=(u,e,t,n)=>(ig(u,e,"write to private field"),n?n.call(u,t):e.set(u,t),t),Ke0=(u,e,t)=>(ig(u,e,"access private method"),t),Qe0={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_MUMBAI_RPC:"https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",VITE_PINATA_GET_URL:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/",VITE_PINATA_PIN_FILE_URL:"https://api.pinata.cloud/pinning/pinFileToIPFS",VITE_PINATA_PIN_JSON_URL:"https://api.pinata.cloud/pinning/pinJSONToIPFS",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Je0=u=>(e,t,n)=>{const r=n.subscribe;return n.subscribe=(a,o,s)=>{let f=a;if(o){const l=(s==null?void 0:s.equalityFn)||Object.is;let c=a(n.getState());f=E=>{const d=a(E);if(!l(c,d)){const p=c;o(c=d,p)}},s!=null&&s.fireImmediately&&o(c,c)}return r(f)},u(e,t,n)},Ye0=Je0;function Ze0(u,e){let t;try{t=u()}catch{return}return{getItem:r=>{var i;const a=s=>s===null?null:JSON.parse(s,e==null?void 0:e.reviver),o=(i=t.getItem(r))!=null?i:null;return o instanceof Promise?o.then(a):a(o)},setItem:(r,i)=>t.setItem(r,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:r=>t.removeItem(r)}}const Jl=u=>e=>{try{const t=u(e);return t instanceof Promise?t:{then(n){return Jl(n)(t)},catch(n){return this}}}catch(t){return{then(n){return this},catch(n){return Jl(n)(t)}}}},Xe0=(u,e)=>(t,n,r)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},a=!1;const o=new Set,s=new Set;let f;try{f=i.getStorage()}catch{}if(!f)return u((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},n,r);const l=Jl(i.serialize),c=()=>{const g=i.partialize({...n()});let b;const m=l({state:g,version:i.version}).then(A=>f.setItem(i.name,A)).catch(A=>{b=A});if(b)throw b;return m},E=r.setState;r.setState=(g,b)=>{E(g,b),c()};const d=u((...g)=>{t(...g),c()},n,r);let p;const h=()=>{var g;if(!f)return;a=!1,o.forEach(m=>m(n()));const b=((g=i.onRehydrateStorage)==null?void 0:g.call(i,n()))||void 0;return Jl(f.getItem.bind(f))(i.name).then(m=>{if(m)return i.deserialize(m)}).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==i.version){if(i.migrate)return i.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var A;return p=i.merge(m,(A=n())!=null?A:d),t(p,!0),c()}).then(()=>{b==null||b(p,void 0),a=!0,s.forEach(m=>m(p))}).catch(m=>{b==null||b(void 0,m)})};return r.persist={setOptions:g=>{i={...i,...g},g.getStorage&&(f=g.getStorage())},clearStorage:()=>{f==null||f.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>a,onHydrate:g=>(o.add(g),()=>{o.delete(g)}),onFinishHydration:g=>(s.add(g),()=>{s.delete(g)})},h(),p||d},ut0=(u,e)=>(t,n,r)=>{let i={storage:Ze0(()=>localStorage),partialize:h=>h,version:0,merge:(h,g)=>({...g,...h}),...e},a=!1;const o=new Set,s=new Set;let f=i.storage;if(!f)return u((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...h)},n,r);const l=()=>{const h=i.partialize({...n()});return f.setItem(i.name,{state:h,version:i.version})},c=r.setState;r.setState=(h,g)=>{c(h,g),l()};const E=u((...h)=>{t(...h),l()},n,r);let d;const p=()=>{var h,g;if(!f)return;a=!1,o.forEach(m=>{var A;return m((A=n())!=null?A:E)});const b=((g=i.onRehydrateStorage)==null?void 0:g.call(i,(h=n())!=null?h:E))||void 0;return Jl(f.getItem.bind(f))(i.name).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==i.version){if(i.migrate)return i.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var A;return d=i.merge(m,(A=n())!=null?A:E),t(d,!0),l()}).then(()=>{b==null||b(d,void 0),d=n(),a=!0,s.forEach(m=>m(d))}).catch(m=>{b==null||b(void 0,m)})};return r.persist={setOptions:h=>{i={...i,...h},h.storage&&(f=h.storage)},clearStorage:()=>{f==null||f.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>a,onHydrate:h=>(o.add(h),()=>{o.delete(h)}),onFinishHydration:h=>(s.add(h),()=>{s.delete(h)})},i.skipHydration||p(),d||E},et0=(u,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((Qe0?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Xe0(u,e)):ut0(u,e),tt0=et0;var nt0={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_MUMBAI_RPC:"https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",VITE_PINATA_GET_URL:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/",VITE_PINATA_PIN_FILE_URL:"https://api.pinata.cloud/pinning/pinFileToIPFS",VITE_PINATA_PIN_JSON_URL:"https://api.pinata.cloud/pinning/pinJSONToIPFS",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const _B=u=>{let e;const t=new Set,n=(s,f)=>{const l=typeof s=="function"?s(e):s;if(!Object.is(l,e)){const c=e;e=f??(typeof l!="object"||l===null)?l:Object.assign({},e,l),t.forEach(E=>E(e,c))}},r=()=>e,o={setState:n,getState:r,subscribe:s=>(t.add(s),()=>t.delete(s)),destroy:()=>{(nt0?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=u(n,r,o),o},rt0=u=>u?_B(u):_B;function ag(u,e){if(Object.is(u,e))return!0;if(typeof u!="object"||u===null||typeof e!="object"||e===null)return!1;if(u instanceof Map&&e instanceof Map){if(u.size!==e.size)return!1;for(const[n,r]of u)if(!Object.is(r,e.get(n)))return!1;return!0}if(u instanceof Set&&e instanceof Set){if(u.size!==e.size)return!1;for(const n of u)if(!e.has(n))return!1;return!0}const t=Object.keys(u);if(t.length!==Object.keys(e).length)return!1;for(let n=0;nh===c.id)||(s=[...s,p.chain]),f[c.id]=[...f[c.id]||[],...p.rpcUrls.http],p.rpcUrls.webSocket&&(l[c.id]=[...l[c.id]||[],...p.rpcUrls.webSocket]))}if(!E)throw new Error([`Could not find valid provider configuration for chain "${c.name}". `,"You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.","Read more: https://wagmi.sh/core/providers/jsonRpc"].join(` -`))}return{chains:s,publicClient:({chainId:c})=>{const E=s.find(h=>h.id===c)??u[0],d=f[E.id];if(!d||!d[0])throw new Error(`No providers configured for chain "${E.id}"`);const p=rC({batch:t,chain:E,transport:Xh(d.map(h=>LP(h,{timeout:o})),{rank:r,retryCount:i,retryDelay:a}),pollingInterval:n});return Object.assign(p,{chains:s})},webSocketPublicClient:({chainId:c})=>{const E=s.find(h=>h.id===c)??u[0],d=l[E.id];if(!d||!d[0])return;const p=rC({batch:t,chain:E,transport:Xh(d.map(h=>_O(h,{timeout:o})),{rank:r,retryCount:i,retryDelay:a}),pollingInterval:n});return Object.assign(p,{chains:s})}}}var ut0=class extends Error{constructor({activeChain:u,targetChain:e}){super(`Chain mismatch: Expected "${e}", received "${u}".`),this.name="ChainMismatchError"}},et0=class extends Error{constructor({chainId:u,connectorId:e}){super(`Chain "${u}" not configured${e?` for connector "${e}"`:""}.`),this.name="ChainNotConfigured"}},tt0=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},nt0=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},rt0=class extends Error{constructor({connector:u}){super(`"${u.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}};function fC(u,e){if(u===e)return!0;if(u&&e&&typeof u=="object"&&typeof e=="object"){if(u.constructor!==e.constructor)return!1;let t,n;if(Array.isArray(u)&&Array.isArray(e)){if(t=u.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!fC(u[n],e[n]))return!1;return!0}if(u.valueOf!==Object.prototype.valueOf)return u.valueOf()===e.valueOf();if(u.toString!==Object.prototype.toString)return u.toString()===e.toString();const r=Object.keys(u);if(t=r.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[n]))return!1;for(n=t;n--!==0;){const i=r[n];if(i&&!fC(u[i],e[i]))return!1}return!0}return u!==u&&e!==e}var lC=(u,{find:e,replace:t})=>u&&e(u)?t(u):typeof u!="object"?u:Array.isArray(u)?u.map(n=>lC(n,{find:e,replace:t})):u instanceof Object?Object.entries(u).reduce((n,[r,i])=>({...n,[r]:lC(i,{find:e,replace:t})}),{}):u;function it0(u){const e=JSON.parse(u);return lC(e,{find:n=>typeof n=="string"&&n.startsWith("#bigint."),replace:n=>BigInt(n.replace("#bigint.",""))})}function QO(u){return{accessList:u.accessList,account:u.account,blockNumber:u.blockNumber,blockTag:u.blockTag,data:u.data,gas:u.gas,gasPrice:u.gasPrice,maxFeePerGas:u.maxFeePerGas,maxPriorityFeePerGas:u.maxPriorityFeePerGas,nonce:u.nonce,to:u.to,value:u.value}}function at0(u){return{accessList:u.accessList,account:u.account,data:u.data,gas:u.gas,gasPrice:u.gasPrice,maxFeePerGas:u.maxFeePerGas,maxPriorityFeePerGas:u.maxPriorityFeePerGas,nonce:u.nonce,to:u.to,value:u.value}}function SB(u){return typeof u=="number"?u:u==="wei"?0:Math.abs(yT[u])}function TB(u,e){return u.slice(0,e).join(".")||"."}function PB(u,e){const{length:t}=u;for(let n=0;n{const a=typeof i=="bigint"?`#bigint.${i.toString()}`:i;return(e==null?void 0:e(r,a))||a},n),t??void 0)}var JO={getItem:u=>"",setItem:(u,e)=>null,removeItem:u=>null};function YO({deserialize:u=it0,key:e="wagmi",serialize:t=st0,storage:n}){return{...n,getItem:(r,i=null)=>{const a=n.getItem(`${e}.${r}`);try{return a?u(a):i}catch(o){return console.warn(o),i}},setItem:(r,i)=>{if(i===null)n.removeItem(`${e}.${r}`);else try{n.setItem(`${e}.${r}`,t(i))}catch(a){console.error(a)}},removeItem:r=>n.removeItem(`${e}.${r}`)}}var OB="store",bs,qf,cC,ZO,ft0=class{constructor({autoConnect:u=!1,connectors:e=[new B3],publicClient:t,storage:n=YO({storage:typeof window<"u"?window.localStorage:JO}),logger:r={warn:console.warn},webSocketPublicClient:i}){var f,l;zp(this,cC),this.publicClients=new Map,this.webSocketPublicClients=new Map,zp(this,bs,void 0),zp(this,qf,void 0),this.args={autoConnect:u,connectors:e,logger:r,publicClient:t,storage:n,webSocketPublicClient:i};let a="disconnected",o;if(u)try{const c=n.getItem(OB),E=(f=c==null?void 0:c.state)==null?void 0:f.data;a=E!=null&&E.account?"reconnecting":"connecting",o=(l=E==null?void 0:E.chain)==null?void 0:l.id}catch{}const s=typeof e=="function"?e():e;s.forEach(c=>c.setStorage(n)),this.store=Ze0(He0(Je0(()=>({connectors:s,publicClient:this.getPublicClient({chainId:o}),status:a,webSocketPublicClient:this.getWebSocketPublicClient({chainId:o})}),{name:OB,storage:n,partialize:c=>{var E,d;return{...u&&{data:{account:(E=c==null?void 0:c.data)==null?void 0:E.account,chain:(d=c==null?void 0:c.data)==null?void 0:d.chain}},chains:c==null?void 0:c.chains}},version:2}))),this.storage=n,r6(this,qf,n==null?void 0:n.getItem("wallet")),Ue0(this,cC,ZO).call(this),u&&typeof window<"u"&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){var u,e;return(e=(u=this.data)==null?void 0:u.chain)==null?void 0:e.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(u){const e=typeof u=="function"?u(this.store.getState()):u;this.store.setState(e,!0)}clearState(){this.setState(u=>({...u,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){var u,e;this.connector&&await((e=(u=this.connector).disconnect)==null?void 0:e.call(u)),r6(this,bs,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(jp(this,bs))return;r6(this,bs,!0),this.setState(t=>{var n;return{...t,status:(n=t.data)!=null&&n.account?"reconnecting":"connecting"}});const u=jp(this,qf)?[...this.connectors].sort(t=>t.id===jp(this,qf)?-1:1):this.connectors;let e=!1;for(const t of u){if(!t.ready||!t.isAuthorized||!await t.isAuthorized())continue;const r=await t.connect();this.setState(i=>({...i,connector:t,chains:t==null?void 0:t.chains,data:r,status:"connected"})),e=!0;break}return e||this.setState(t=>({...t,data:void 0,status:"disconnected"})),r6(this,bs,!1),this.data}setConnectors(u){this.args={...this.args,connectors:u};const e=typeof u=="function"?u():u;e.forEach(t=>t.setStorage(this.args.storage)),this.setState(t=>({...t,connectors:e}))}getPublicClient({chainId:u}={}){let e=this.publicClients.get(-1);if(e&&(e==null?void 0:e.chain.id)===u||(e=this.publicClients.get(u??-1),e))return e;const{publicClient:t}=this.args;return e=typeof t=="function"?t({chainId:u}):t,this.publicClients.set(u??-1,e),e}setPublicClient(u){var t,n;const e=(n=(t=this.data)==null?void 0:t.chain)==null?void 0:n.id;this.args={...this.args,publicClient:u},this.publicClients.clear(),this.setState(r=>({...r,publicClient:this.getPublicClient({chainId:e})}))}getWebSocketPublicClient({chainId:u}={}){let e=this.webSocketPublicClients.get(-1);if(e&&(e==null?void 0:e.chain.id)===u||(e=this.webSocketPublicClients.get(u??-1),e))return e;const{webSocketPublicClient:t}=this.args;return e=typeof t=="function"?t({chainId:u}):t,e&&this.webSocketPublicClients.set(u??-1,e),e}setWebSocketPublicClient(u){var t,n;const e=(n=(t=this.data)==null?void 0:t.chain)==null?void 0:n.id;this.args={...this.args,webSocketPublicClient:u},this.webSocketPublicClients.clear(),this.setState(r=>({...r,webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})}))}setLastUsedConnector(u=null){var e;(e=this.storage)==null||e.setItem("wallet",u)}};bs=new WeakMap;qf=new WeakMap;cC=new WeakSet;ZO=function(){const u=o=>{this.setState(s=>({...s,data:{...s.data,...o}}))},e=()=>{this.clearState()},t=o=>{this.setState(s=>({...s,error:o}))};this.store.subscribe(({connector:o})=>o,(o,s)=>{var f,l,c,E,d,p;(f=s==null?void 0:s.off)==null||f.call(s,"change",u),(l=s==null?void 0:s.off)==null||l.call(s,"disconnect",e),(c=s==null?void 0:s.off)==null||c.call(s,"error",t),o&&((E=o.on)==null||E.call(o,"change",u),(d=o.on)==null||d.call(o,"disconnect",e),(p=o.on)==null||p.call(o,"error",t))});const{publicClient:n,webSocketPublicClient:r}=this.args;(typeof n=="function"||typeof r=="function")&&this.store.subscribe(({data:o})=>{var s;return(s=o==null?void 0:o.chain)==null?void 0:s.id},o=>{this.setState(s=>({...s,publicClient:this.getPublicClient({chainId:o}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:o})}))})};var EC;function lt0(u){const e=new ft0(u);return EC=e,e}function Je(){if(!EC)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return EC}async function ct0({chainId:u,connector:e}){const t=Je(),n=t.connector;if(n&&e.id===n.id)throw new tt0;try{t.setState(i=>({...i,status:"connecting"}));const r=await e.connect({chainId:u});return t.setLastUsedConnector(e.id),t.setState(i=>({...i,connector:e,chains:e==null?void 0:e.chains,data:r,status:"connected"})),t.storage.setItem("connected",!0),{...r,connector:e}}catch(r){throw t.setState(i=>({...i,status:i.connector?"connected":"disconnected"})),r}}async function Et0(){const u=Je();u.connector&&await u.connector.disconnect(),u.clearState(),u.storage.removeItem("connected")}var dt0=[{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:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],pt0=[{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:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function dn({chainId:u}={}){const e=Je();return u&&e.getPublicClient({chainId:u})||e.publicClient}async function Xc({chainId:u}={}){var n,r;return await((r=(n=Je().connector)==null?void 0:n.getWalletClient)==null?void 0:r.call(n,{chainId:u}))||null}function dC({chainId:u}={}){const e=Je();return u&&e.getWebSocketPublicClient({chainId:u})||e.webSocketPublicClient}function ht0(u,e){const t=Je(),n=async()=>e(dn(u));return t.subscribe(({publicClient:i})=>i,n)}function Ct0({chainId:u},e){const t=Je(),n=async({chainId:i})=>{if(u&&i&&u!==i)return;const a=await Xc({chainId:u});return Je().connector?e(a):e(null)};return t.subscribe(({data:i,connector:a})=>{var o;return{account:i==null?void 0:i.account,chainId:(o=i==null?void 0:i.chain)==null?void 0:o.id,connector:a}},n,{equalityFn:ab})}function mt0(u,e){const t=Je(),n=async()=>e(dC(u));return t.subscribe(({webSocketPublicClient:i})=>i,n)}async function XO({abi:u,address:e,args:t,chainId:n,dataSuffix:r,functionName:i,walletClient:a,...o}){const s=dn({chainId:n}),f=a??await Xc({chainId:n});if(!f)throw new nt;n&&eI({chainId:n});const{account:l,accessList:c,blockNumber:E,blockTag:d,gas:p,gasPrice:h,maxFeePerGas:b,maxPriorityFeePerGas:g,nonce:m,value:A}=QO(o),{result:y,request:B}=await s.simulateContract({abi:u,address:e,functionName:i,args:t,account:l||f.account,accessList:c,blockNumber:E,blockTag:d,dataSuffix:r,gas:p,gasPrice:h,maxFeePerGas:b,maxPriorityFeePerGas:g,nonce:m,value:A}),v=u.filter(C=>"name"in C&&C.name===i);return{mode:"prepared",request:{...B,abi:v,chainId:n},result:y}}async function gt0({chainId:u,contracts:e,blockNumber:t,blockTag:n,...r}){const i=dn({chainId:u});if(!i.chains)throw new nt0;if(u&&i.chain.id!==u)throw new et0({chainId:u});return i.multicall({allowFailure:r.allowFailure??!0,blockNumber:t,blockTag:n,contracts:e})}async function bt0({address:u,account:e,chainId:t,abi:n,args:r,functionName:i,blockNumber:a,blockTag:o}){return dn({chainId:t}).readContract({abi:n,address:u,account:e,functionName:i,args:r,blockNumber:a,blockTag:o})}async function At0({contracts:u,blockNumber:e,blockTag:t,...n}){const{allowFailure:r=!0}=n;try{const i=dn(),a=u.reduce((l,c,E)=>{const d=c.chainId??i.chain.id;return{...l,[d]:[...l[d]||[],{contract:c,index:E}]}},{}),o=()=>Object.entries(a).map(([l,c])=>gt0({allowFailure:r,chainId:parseInt(l),contracts:c.map(({contract:E})=>E),blockNumber:e,blockTag:t})),s=(await Promise.all(o())).flat(),f=Object.values(a).flatMap(l=>l.map(({index:c})=>c));return s.reduce((l,c,E)=>(l&&(l[f[E]]=c),l),[])}catch(i){if(i instanceof r5)throw i;const a=()=>u.map(o=>bt0({...o,blockNumber:e,blockTag:t}));return r?(await Promise.allSettled(a())).map(o=>o.status==="fulfilled"?{result:o.value,status:"success"}:{error:o.reason,result:void 0,status:"failure"}):await Promise.all(a())}}async function IB(u){const e=await Xc({chainId:u.chainId});if(!e)throw new nt;u.chainId&&eI({chainId:u.chainId});let t;if(u.mode==="prepared")t=u.request;else{const{chainId:r,mode:i,...a}=u;t=(await XO(a)).request}return{hash:await e.writeContract({...t,chain:u.chainId?{id:u.chainId}:null})}}async function yt0({address:u,chainId:e,formatUnits:t,token:n}){const r=Je(),i=dn({chainId:e});if(n){const f=async({abi:l})=>{const c={abi:l,address:n,chainId:e},[E,d,p]=await At0({allowFailure:!1,contracts:[{...c,functionName:"balanceOf",args:[u]},{...c,functionName:"decimals"},{...c,functionName:"symbol"}]});return{decimals:d,formatted:Wl(E??"0",SB(t??d)),symbol:p,value:E}};try{return await f({abi:dt0})}catch(l){if(l instanceof r5){const{symbol:c,...E}=await f({abi:pt0});return{symbol:Uc(He(c,{dir:"right"})),...E}}throw l}}const a=[...r.publicClient.chains||[],...r.chains??[]],o=await i.getBalance({address:u}),s=a.find(f=>f.id===i.chain.id);return{decimals:(s==null?void 0:s.nativeCurrency.decimals)??18,formatted:Wl(o??"0",SB(t??18)),symbol:(s==null?void 0:s.nativeCurrency.symbol)??"ETH",value:o}}function uI(){const{data:u,connector:e,status:t}=Je();switch(t){case"connected":return{address:u==null?void 0:u.account,connector:e,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:t};case"reconnecting":return{address:u==null?void 0:u.account,connector:e,isConnected:!!(u!=null&&u.account),isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:t};case"connecting":return{address:u==null?void 0:u.account,connector:e,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:t};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:t}}}function ob(){var r,i,a,o;const u=Je(),e=(i=(r=u.data)==null?void 0:r.chain)==null?void 0:i.id,t=u.chains??[],n=[...((a=u.publicClient)==null?void 0:a.chains)||[],...t].find(s=>s.id===e)??{id:e,name:`Chain ${e}`,network:`${e}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:e?{...n,...(o=u.data)==null?void 0:o.chain,id:e}:void 0,chains:t}}async function vt0(u){const e=await Xc();if(!e)throw new nt;return await e.signMessage({message:u.message})}async function Bt0({chainId:u}){const{connector:e}=Je();if(!e)throw new nt;if(!e.switchChain)throw new rt0({connector:e});return e.switchChain(u)}function Ft0(u,{selector:e=t=>t}={}){const t=Je(),n=()=>u(uI());return t.subscribe(({data:i,connector:a,status:o})=>e({address:i==null?void 0:i.account,connector:a,status:o}),n,{equalityFn:ab})}function Dt0(u,{selector:e=t=>t}={}){const t=Je(),n=()=>u(ob());return t.subscribe(({data:i,chains:a})=>{var o;return e({chainId:(o=i==null?void 0:i.chain)==null?void 0:o.id,chains:a})},n,{equalityFn:ab})}async function wt0({name:u,chainId:e}){const{normalize:t}=await L0(()=>import("./index-v-w47Mu0.js"),__vite__mapDeps([]));return await dn({chainId:e}).getEnsAvatar({name:t(u)})}async function xt0({address:u,chainId:e}){return dn({chainId:e}).getEnsName({address:Su(u)})}async function kt0({chainId:u}={}){return await dn({chainId:u}).getBlockNumber()}async function _t0({chainId:u,confirmations:e=1,hash:t,onReplaced:n,timeout:r=0}){const i=dn({chainId:u}),a=await i.waitForTransactionReceipt({hash:t,confirmations:e,onReplaced:n,timeout:r});if(a.status==="reverted"){const o=await i.getTransaction({hash:a.transactionHash}),s=await i.call({...o,gasPrice:o.type!=="eip1559"?o.gasPrice:void 0,maxFeePerGas:o.type==="eip1559"?o.maxFeePerGas:void 0,maxPriorityFeePerGas:o.type==="eip1559"?o.maxPriorityFeePerGas:void 0}),f=Uc(`0x${s.substring(138)}`);throw new Error(f)}return a}function eI({chainId:u}){var r,i;const{chain:e,chains:t}=ob(),n=e==null?void 0:e.id;if(n&&u!==n)throw new ut0({activeChain:((r=t.find(a=>a.id===n))==null?void 0:r.name)??`Chain ${n}`,targetChain:((i=t.find(a=>a.id===u))==null?void 0:i.name)??`Chain ${u}`})}var tI={exports:{}},nI={};/** +`))}return{chains:s,publicClient:({chainId:c})=>{const E=s.find(h=>h.id===c)??u[0],d=f[E.id];if(!d||!d[0])throw new Error(`No providers configured for chain "${E.id}"`);const p=rC({batch:t,chain:E,transport:Xh(d.map(h=>WP(h,{timeout:o})),{rank:r,retryCount:i,retryDelay:a}),pollingInterval:n});return Object.assign(p,{chains:s})},webSocketPublicClient:({chainId:c})=>{const E=s.find(h=>h.id===c)??u[0],d=l[E.id];if(!d||!d[0])return;const p=rC({batch:t,chain:E,transport:Xh(d.map(h=>PO(h,{timeout:o})),{rank:r,retryCount:i,retryDelay:a}),pollingInterval:n});return Object.assign(p,{chains:s})}}}var at0=class extends Error{constructor({activeChain:u,targetChain:e}){super(`Chain mismatch: Expected "${e}", received "${u}".`),this.name="ChainMismatchError"}},ot0=class extends Error{constructor({chainId:u,connectorId:e}){super(`Chain "${u}" not configured${e?` for connector "${e}"`:""}.`),this.name="ChainNotConfigured"}},st0=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},ft0=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},lt0=class extends Error{constructor({connector:u}){super(`"${u.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}};function fC(u,e){if(u===e)return!0;if(u&&e&&typeof u=="object"&&typeof e=="object"){if(u.constructor!==e.constructor)return!1;let t,n;if(Array.isArray(u)&&Array.isArray(e)){if(t=u.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!fC(u[n],e[n]))return!1;return!0}if(u.valueOf!==Object.prototype.valueOf)return u.valueOf()===e.valueOf();if(u.toString!==Object.prototype.toString)return u.toString()===e.toString();const r=Object.keys(u);if(t=r.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[n]))return!1;for(n=t;n--!==0;){const i=r[n];if(i&&!fC(u[i],e[i]))return!1}return!0}return u!==u&&e!==e}var lC=(u,{find:e,replace:t})=>u&&e(u)?t(u):typeof u!="object"?u:Array.isArray(u)?u.map(n=>lC(n,{find:e,replace:t})):u instanceof Object?Object.entries(u).reduce((n,[r,i])=>({...n,[r]:lC(i,{find:e,replace:t})}),{}):u;function ct0(u){const e=JSON.parse(u);return lC(e,{find:n=>typeof n=="string"&&n.startsWith("#bigint."),replace:n=>BigInt(n.replace("#bigint.",""))})}function ZO(u){return{accessList:u.accessList,account:u.account,blockNumber:u.blockNumber,blockTag:u.blockTag,data:u.data,gas:u.gas,gasPrice:u.gasPrice,maxFeePerGas:u.maxFeePerGas,maxPriorityFeePerGas:u.maxPriorityFeePerGas,nonce:u.nonce,to:u.to,value:u.value}}function Et0(u){return{accessList:u.accessList,account:u.account,data:u.data,gas:u.gas,gasPrice:u.gasPrice,maxFeePerGas:u.maxFeePerGas,maxPriorityFeePerGas:u.maxPriorityFeePerGas,nonce:u.nonce,to:u.to,value:u.value}}function SB(u){return typeof u=="number"?u:u==="wei"?0:Math.abs(FT[u])}function TB(u,e){return u.slice(0,e).join(".")||"."}function PB(u,e){const{length:t}=u;for(let n=0;n{const a=typeof i=="bigint"?`#bigint.${i.toString()}`:i;return(e==null?void 0:e(r,a))||a},n),t??void 0)}var XO={getItem:u=>"",setItem:(u,e)=>null,removeItem:u=>null};function uI({deserialize:u=ct0,key:e="wagmi",serialize:t=pt0,storage:n}){return{...n,getItem:(r,i=null)=>{const a=n.getItem(`${e}.${r}`);try{return a?u(a):i}catch(o){return console.warn(o),i}},setItem:(r,i)=>{if(i===null)n.removeItem(`${e}.${r}`);else try{n.setItem(`${e}.${r}`,t(i))}catch(a){console.error(a)}},removeItem:r=>n.removeItem(`${e}.${r}`)}}var OB="store",gs,G3,cC,eI,ht0=class{constructor({autoConnect:u=!1,connectors:e=[new Df],publicClient:t,storage:n=uI({storage:typeof window<"u"?window.localStorage:XO}),logger:r={warn:console.warn},webSocketPublicClient:i}){var f,l;z8(this,cC),this.publicClients=new Map,this.webSocketPublicClients=new Map,z8(this,gs,void 0),z8(this,G3,void 0),this.args={autoConnect:u,connectors:e,logger:r,publicClient:t,storage:n,webSocketPublicClient:i};let a="disconnected",o;if(u)try{const c=n.getItem(OB),E=(f=c==null?void 0:c.state)==null?void 0:f.data;a=E!=null&&E.account?"reconnecting":"connecting",o=(l=E==null?void 0:E.chain)==null?void 0:l.id}catch{}const s=typeof e=="function"?e():e;s.forEach(c=>c.setStorage(n)),this.store=rt0(Ye0(tt0(()=>({connectors:s,publicClient:this.getPublicClient({chainId:o}),status:a,webSocketPublicClient:this.getWebSocketPublicClient({chainId:o})}),{name:OB,storage:n,partialize:c=>{var E,d;return{...u&&{data:{account:(E=c==null?void 0:c.data)==null?void 0:E.account,chain:(d=c==null?void 0:c.data)==null?void 0:d.chain}},chains:c==null?void 0:c.chains}},version:2}))),this.storage=n,r6(this,G3,n==null?void 0:n.getItem("wallet")),Ke0(this,cC,eI).call(this),u&&typeof window<"u"&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){var u,e;return(e=(u=this.data)==null?void 0:u.chain)==null?void 0:e.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(u){const e=typeof u=="function"?u(this.store.getState()):u;this.store.setState(e,!0)}clearState(){this.setState(u=>({...u,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){var u,e;this.connector&&await((e=(u=this.connector).disconnect)==null?void 0:e.call(u)),r6(this,gs,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(j8(this,gs))return;r6(this,gs,!0),this.setState(t=>{var n;return{...t,status:(n=t.data)!=null&&n.account?"reconnecting":"connecting"}});const u=j8(this,G3)?[...this.connectors].sort(t=>t.id===j8(this,G3)?-1:1):this.connectors;let e=!1;for(const t of u){if(!t.ready||!t.isAuthorized||!await t.isAuthorized())continue;const r=await t.connect();this.setState(i=>({...i,connector:t,chains:t==null?void 0:t.chains,data:r,status:"connected"})),e=!0;break}return e||this.setState(t=>({...t,data:void 0,status:"disconnected"})),r6(this,gs,!1),this.data}setConnectors(u){this.args={...this.args,connectors:u};const e=typeof u=="function"?u():u;e.forEach(t=>t.setStorage(this.args.storage)),this.setState(t=>({...t,connectors:e}))}getPublicClient({chainId:u}={}){let e=this.publicClients.get(-1);if(e&&(e==null?void 0:e.chain.id)===u||(e=this.publicClients.get(u??-1),e))return e;const{publicClient:t}=this.args;return e=typeof t=="function"?t({chainId:u}):t,this.publicClients.set(u??-1,e),e}setPublicClient(u){var t,n;const e=(n=(t=this.data)==null?void 0:t.chain)==null?void 0:n.id;this.args={...this.args,publicClient:u},this.publicClients.clear(),this.setState(r=>({...r,publicClient:this.getPublicClient({chainId:e})}))}getWebSocketPublicClient({chainId:u}={}){let e=this.webSocketPublicClients.get(-1);if(e&&(e==null?void 0:e.chain.id)===u||(e=this.webSocketPublicClients.get(u??-1),e))return e;const{webSocketPublicClient:t}=this.args;return e=typeof t=="function"?t({chainId:u}):t,e&&this.webSocketPublicClients.set(u??-1,e),e}setWebSocketPublicClient(u){var t,n;const e=(n=(t=this.data)==null?void 0:t.chain)==null?void 0:n.id;this.args={...this.args,webSocketPublicClient:u},this.webSocketPublicClients.clear(),this.setState(r=>({...r,webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})}))}setLastUsedConnector(u=null){var e;(e=this.storage)==null||e.setItem("wallet",u)}};gs=new WeakMap;G3=new WeakMap;cC=new WeakSet;eI=function(){const u=o=>{this.setState(s=>({...s,data:{...s.data,...o}}))},e=()=>{this.clearState()},t=o=>{this.setState(s=>({...s,error:o}))};this.store.subscribe(({connector:o})=>o,(o,s)=>{var f,l,c,E,d,p;(f=s==null?void 0:s.off)==null||f.call(s,"change",u),(l=s==null?void 0:s.off)==null||l.call(s,"disconnect",e),(c=s==null?void 0:s.off)==null||c.call(s,"error",t),o&&((E=o.on)==null||E.call(o,"change",u),(d=o.on)==null||d.call(o,"disconnect",e),(p=o.on)==null||p.call(o,"error",t))});const{publicClient:n,webSocketPublicClient:r}=this.args;(typeof n=="function"||typeof r=="function")&&this.store.subscribe(({data:o})=>{var s;return(s=o==null?void 0:o.chain)==null?void 0:s.id},o=>{this.setState(s=>({...s,publicClient:this.getPublicClient({chainId:o}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:o})}))})};var EC;function Ct0(u){const e=new ht0(u);return EC=e,e}function Je(){if(!EC)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return EC}async function mt0({chainId:u,connector:e}){const t=Je(),n=t.connector;if(n&&e.id===n.id)throw new st0;try{t.setState(i=>({...i,status:"connecting"}));const r=await e.connect({chainId:u});return t.setLastUsedConnector(e.id),t.setState(i=>({...i,connector:e,chains:e==null?void 0:e.chains,data:r,status:"connected"})),t.storage.setItem("connected",!0),{...r,connector:e}}catch(r){throw t.setState(i=>({...i,status:i.connector?"connected":"disconnected"})),r}}async function bt0(){const u=Je();u.connector&&await u.connector.disconnect(),u.clearState(),u.storage.removeItem("connected")}var gt0=[{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:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],At0=[{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:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function dn({chainId:u}={}){const e=Je();return u&&e.getPublicClient({chainId:u})||e.publicClient}async function X1({chainId:u}={}){var n,r;return await((r=(n=Je().connector)==null?void 0:n.getWalletClient)==null?void 0:r.call(n,{chainId:u}))||null}function dC({chainId:u}={}){const e=Je();return u&&e.getWebSocketPublicClient({chainId:u})||e.webSocketPublicClient}function yt0(u,e){const t=Je(),n=async()=>e(dn(u));return t.subscribe(({publicClient:i})=>i,n)}function vt0({chainId:u},e){const t=Je(),n=async({chainId:i})=>{if(u&&i&&u!==i)return;const a=await X1({chainId:u});return Je().connector?e(a):e(null)};return t.subscribe(({data:i,connector:a})=>{var o;return{account:i==null?void 0:i.account,chainId:(o=i==null?void 0:i.chain)==null?void 0:o.id,connector:a}},n,{equalityFn:ag})}function Bt0(u,e){const t=Je(),n=async()=>e(dC(u));return t.subscribe(({webSocketPublicClient:i})=>i,n)}async function tI({abi:u,address:e,args:t,chainId:n,dataSuffix:r,functionName:i,walletClient:a,...o}){const s=dn({chainId:n}),f=a??await X1({chainId:n});if(!f)throw new nt;n&&rI({chainId:n});const{account:l,accessList:c,blockNumber:E,blockTag:d,gas:p,gasPrice:h,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:m,value:A}=ZO(o),{result:y,request:B}=await s.simulateContract({abi:u,address:e,functionName:i,args:t,account:l||f.account,accessList:c,blockNumber:E,blockTag:d,dataSuffix:r,gas:p,gasPrice:h,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:m,value:A}),v=u.filter(C=>"name"in C&&C.name===i);return{mode:"prepared",request:{...B,abi:v,chainId:n},result:y}}async function Ft0({chainId:u,contracts:e,blockNumber:t,blockTag:n,...r}){const i=dn({chainId:u});if(!i.chains)throw new ft0;if(u&&i.chain.id!==u)throw new ot0({chainId:u});return i.multicall({allowFailure:r.allowFailure??!0,blockNumber:t,blockTag:n,contracts:e})}async function Dt0({address:u,account:e,chainId:t,abi:n,args:r,functionName:i,blockNumber:a,blockTag:o}){return dn({chainId:t}).readContract({abi:n,address:u,account:e,functionName:i,args:r,blockNumber:a,blockTag:o})}async function wt0({contracts:u,blockNumber:e,blockTag:t,...n}){const{allowFailure:r=!0}=n;try{const i=dn(),a=u.reduce((l,c,E)=>{const d=c.chainId??i.chain.id;return{...l,[d]:[...l[d]||[],{contract:c,index:E}]}},{}),o=()=>Object.entries(a).map(([l,c])=>Ft0({allowFailure:r,chainId:parseInt(l),contracts:c.map(({contract:E})=>E),blockNumber:e,blockTag:t})),s=(await Promise.all(o())).flat(),f=Object.values(a).flatMap(l=>l.map(({index:c})=>c));return s.reduce((l,c,E)=>(l&&(l[f[E]]=c),l),[])}catch(i){if(i instanceof rE)throw i;const a=()=>u.map(o=>Dt0({...o,blockNumber:e,blockTag:t}));return r?(await Promise.allSettled(a())).map(o=>o.status==="fulfilled"?{result:o.value,status:"success"}:{error:o.reason,result:void 0,status:"failure"}):await Promise.all(a())}}async function IB(u){const e=await X1({chainId:u.chainId});if(!e)throw new nt;u.chainId&&rI({chainId:u.chainId});let t;if(u.mode==="prepared")t=u.request;else{const{chainId:r,mode:i,...a}=u;t=(await tI(a)).request}return{hash:await e.writeContract({...t,chain:u.chainId?{id:u.chainId}:null})}}async function xt0({address:u,chainId:e,formatUnits:t,token:n}){const r=Je(),i=dn({chainId:e});if(n){const f=async({abi:l})=>{const c={abi:l,address:n,chainId:e},[E,d,p]=await wt0({allowFailure:!1,contracts:[{...c,functionName:"balanceOf",args:[u]},{...c,functionName:"decimals"},{...c,functionName:"symbol"}]});return{decimals:d,formatted:Hl(E??"0",SB(t??d)),symbol:p,value:E}};try{return await f({abi:gt0})}catch(l){if(l instanceof rE){const{symbol:c,...E}=await f({abi:At0});return{symbol:U1(He(c,{dir:"right"})),...E}}throw l}}const a=[...r.publicClient.chains||[],...r.chains??[]],o=await i.getBalance({address:u}),s=a.find(f=>f.id===i.chain.id);return{decimals:(s==null?void 0:s.nativeCurrency.decimals)??18,formatted:Hl(o??"0",SB(t??18)),symbol:(s==null?void 0:s.nativeCurrency.symbol)??"ETH",value:o}}function nI(){const{data:u,connector:e,status:t}=Je();switch(t){case"connected":return{address:u==null?void 0:u.account,connector:e,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:t};case"reconnecting":return{address:u==null?void 0:u.account,connector:e,isConnected:!!(u!=null&&u.account),isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:t};case"connecting":return{address:u==null?void 0:u.account,connector:e,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:t};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:t}}}function og(){var r,i,a,o;const u=Je(),e=(i=(r=u.data)==null?void 0:r.chain)==null?void 0:i.id,t=u.chains??[],n=[...((a=u.publicClient)==null?void 0:a.chains)||[],...t].find(s=>s.id===e)??{id:e,name:`Chain ${e}`,network:`${e}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:e?{...n,...(o=u.data)==null?void 0:o.chain,id:e}:void 0,chains:t}}async function kt0(u){const e=await X1();if(!e)throw new nt;return await e.signMessage({message:u.message})}async function _t0({chainId:u}){const{connector:e}=Je();if(!e)throw new nt;if(!e.switchChain)throw new lt0({connector:e});return e.switchChain(u)}function St0(u,{selector:e=t=>t}={}){const t=Je(),n=()=>u(nI());return t.subscribe(({data:i,connector:a,status:o})=>e({address:i==null?void 0:i.account,connector:a,status:o}),n,{equalityFn:ag})}function Tt0(u,{selector:e=t=>t}={}){const t=Je(),n=()=>u(og());return t.subscribe(({data:i,chains:a})=>{var o;return e({chainId:(o=i==null?void 0:i.chain)==null?void 0:o.id,chains:a})},n,{equalityFn:ag})}async function Pt0({name:u,chainId:e}){const{normalize:t}=await L0(()=>import("./index-k-2Y-z04.js"),__vite__mapDeps([]));return await dn({chainId:e}).getEnsAvatar({name:t(u)})}async function Ot0({address:u,chainId:e}){return dn({chainId:e}).getEnsName({address:Su(u)})}async function It0({chainId:u}={}){return await dn({chainId:u}).getBlockNumber()}async function Nt0({chainId:u,confirmations:e=1,hash:t,onReplaced:n,timeout:r=0}){const i=dn({chainId:u}),a=await i.waitForTransactionReceipt({hash:t,confirmations:e,onReplaced:n,timeout:r});if(a.status==="reverted"){const o=await i.getTransaction({hash:a.transactionHash}),s=await i.call({...o,gasPrice:o.type!=="eip1559"?o.gasPrice:void 0,maxFeePerGas:o.type==="eip1559"?o.maxFeePerGas:void 0,maxPriorityFeePerGas:o.type==="eip1559"?o.maxPriorityFeePerGas:void 0}),f=U1(`0x${s.substring(138)}`);throw new Error(f)}return a}function rI({chainId:u}){var r,i;const{chain:e,chains:t}=og(),n=e==null?void 0:e.id;if(n&&u!==n)throw new at0({activeChain:((r=t.find(a=>a.id===n))==null?void 0:r.name)??`Chain ${n}`,targetChain:((i=t.find(a=>a.id===u))==null?void 0:i.name)??`Chain ${u}`})}var iI={exports:{}},aI={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -199,9 +199,9 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var v5=w,St0=K7;function Tt0(u,e){return u===e&&(u!==0||1/u===1/e)||u!==u&&e!==e}var Pt0=typeof Object.is=="function"?Object.is:Tt0,Ot0=St0.useSyncExternalStore,It0=v5.useRef,Nt0=v5.useEffect,Rt0=v5.useMemo,Mt0=v5.useDebugValue;nI.useSyncExternalStoreWithSelector=function(u,e,t,n,r){var i=It0(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Rt0(function(){function s(d){if(!f){if(f=!0,l=d,d=n(d),r!==void 0&&a.hasValue){var p=a.value;if(r(p,d))return c=p}return c=d}if(p=c,Pt0(l,d))return p;var h=n(d);return r!==void 0&&r(p,h)?p:(l=d,c=h)}var f=!1,l,c,E=t===void 0?null:t;return[function(){return s(e())},E===null?void 0:function(){return s(E())}]},[e,t,n,r]);var o=Ot0(u,i[0],i[1]);return Nt0(function(){a.hasValue=!0,a.value=o},[o]),Mt0(o),o};tI.exports=nI;var sb=tI.exports;function jt0({queryClient:u=new VK({defaultOptions:{queries:{cacheTime:1e3*60*60*24,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:e=YO({storage:typeof window<"u"&&window.localStorage?window.localStorage:JO}),persister:t=typeof window<"u"?PK({key:"cache",storage:e,serialize:r=>r,deserialize:r=>r}):void 0,...n}){const r=lt0({...n,storage:e});return t&&DQ({queryClient:u,persister:t,dehydrateOptions:{shouldDehydrateQuery:i=>i.cacheTime!==0&&i.queryKey[0].persist!==!1}}),Object.assign(r,{queryClient:u})}var rI=w.createContext(void 0),B5=w.createContext(void 0);function zt0({children:u,config:e}){return w.createElement(rI.Provider,{children:w.createElement(pQ,{children:u,client:e.queryClient,context:B5}),value:e})}function F5(){const u=w.useContext(rI);if(!u)throw new Error(["`useConfig` must be used within `WagmiConfig`.\n","Read more: https://wagmi.sh/react/WagmiConfig"].join(` -`));return u}var Lt0=K7.useSyncExternalStore;function $t0(u){return Array.isArray(u)}function Ut0(u){if(!NB(u))return!1;const e=u.constructor;if(typeof e>"u")return!0;const t=e.prototype;return!(!NB(t)||!t.hasOwnProperty("isPrototypeOf"))}function NB(u){return Object.prototype.toString.call(u)==="[object Object]"}function Wt0(u,e,t){return $t0(u)?typeof e=="function"?{...t,queryKey:u,queryFn:e}:{...e,queryKey:u}:u}function qt0(u){return JSON.stringify(u,(e,t)=>Ut0(t)?Object.keys(t).sort().reduce((n,r)=>(n[r]=t[r],n),{}):typeof t=="bigint"?t.toString():t)}function Ht0(u,e){return typeof u=="function"?u(...e):!!u}function Gt0(u,e){const t={};return Object.keys(u).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(e.trackedProps.add(n),u[n])})}),t}function Vt0(u,e){const t=Q7({context:u.context}),n=hQ(),r=gQ(),i=t.defaultQueryOptions({...u,queryKeyHashFn:qt0});i._optimisticResults=n?"isRestoring":"optimistic",i.onError&&(i.onError=ju.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ju.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ju.batchCalls(i.onSettled)),i.suspense&&typeof i.staleTime!="number"&&(i.staleTime=1e3),(i.suspense||i.useErrorBoundary)&&(r.isReset()||(i.retryOnMount=!1));const[a]=w.useState(()=>new e(t,i)),o=a.getOptimisticResult(i);if(Lt0(w.useCallback(c=>n?()=>{}:a.subscribe(ju.batchCalls(c)),[a,n]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),w.useEffect(()=>{r.clearReset()},[r]),w.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),i.suspense&&o.isLoading&&o.isFetching&&!n)throw a.fetchOptimistic(i).then(({data:c})=>{var E,d;(E=i.onSuccess)==null||E.call(i,c),(d=i.onSettled)==null||d.call(i,c,null)}).catch(c=>{var E,d;r.clearReset(),(E=i.onError)==null||E.call(i,c),(d=i.onSettled)==null||d.call(i,void 0,c)});if(o.isError&&!r.isReset()&&!o.isFetching&&Ht0(i.useErrorBoundary,[o.error,a.getCurrentQuery()]))throw o.error;const s=o.status==="loading"&&o.fetchStatus==="idle"?"idle":o.status,f=s==="idle",l=s==="loading"&&o.fetchStatus==="fetching";return{...o,defaultedOptions:i,isIdle:f,isLoading:l,observer:a,status:s}}function u1(u,e,t){const n=JS(u,e,t);return AQ({context:B5,...n})}function Qo(u,e,t){const n=Wt0(u,e,t),r=Vt0({context:B5,...n},KK),i={data:r.data,error:r.error,fetchStatus:r.fetchStatus,isError:r.isError,isFetched:r.isFetched,isFetchedAfterMount:r.isFetchedAfterMount,isFetching:r.isFetching,isIdle:r.isIdle,isLoading:r.isLoading,isRefetching:r.isRefetching,isSuccess:r.isSuccess,refetch:r.refetch,status:r.status,internal:{dataUpdatedAt:r.dataUpdatedAt,errorUpdatedAt:r.errorUpdatedAt,failureCount:r.failureCount,isFetchedAfterMount:r.isFetchedAfterMount,isLoadingError:r.isLoadingError,isPaused:r.isPaused,isPlaceholderData:r.isPlaceholderData,isPreviousData:r.isPreviousData,isRefetchError:r.isRefetchError,isStale:r.isStale,remove:r.remove}};return r.defaultedOptions.notifyOnChangeProps?i:Gt0(i,r.observer)}var fb=()=>Q7({context:B5});function D5({chainId:u}={}){return sb.useSyncExternalStoreWithSelector(e=>ht0({chainId:u},e),()=>dn({chainId:u}),()=>dn({chainId:u}),e=>e,(e,t)=>e.uid===t.uid)}function Lp({chainId:u}){return[{entity:"walletClient",chainId:u,persist:!1}]}function Kt0({queryKey:[{chainId:u}]}){return Xc({chainId:u})}function Qt0({chainId:u,suspense:e,onError:t,onSettled:n,onSuccess:r}={}){const{connector:i}=At(),a=Z3({chainId:u}),o=Qo(Lp({chainId:a}),Kt0,{cacheTime:0,enabled:!!i,staleTime:1/0,suspense:e,onError:t,onSettled:n,onSuccess:r}),s=fb();return w.useEffect(()=>Ct0({chainId:a},l=>{l?s.invalidateQueries(Lp({chainId:a})):s.removeQueries(Lp({chainId:a}))}),[s,a]),o}function Jt0({chainId:u}={}){return sb.useSyncExternalStoreWithSelector(e=>mt0({chainId:u},e),()=>dC({chainId:u}),()=>dC({chainId:u}),e=>e,(e,t)=>(e==null?void 0:e.uid)===(t==null?void 0:t.uid))}function Z3({chainId:u}={}){return D5({chainId:u}).chain.id}function Yt0(){const[,u]=w.useReducer(e=>e+1,0);return u}function RB({chainId:u,scopeKey:e}){return[{entity:"blockNumber",chainId:u,scopeKey:e}]}function Zt0({queryKey:[{chainId:u}]}){return kt0({chainId:u})}function Xt0({cacheTime:u=0,chainId:e,enabled:t=!0,scopeKey:n,staleTime:r,suspense:i,watch:a=!1,onBlock:o,onError:s,onSettled:f,onSuccess:l}={}){const c=Z3({chainId:e}),E=D5({chainId:c}),d=Jt0({chainId:c}),p=fb();return w.useEffect(()=>!t||!a&&!o?void 0:(d??E).watchBlockNumber({onBlockNumber:g=>{a&&p.setQueryData(RB({chainId:c,scopeKey:n}),g),o&&o(g)},emitOnBegin:!0}),[c,n,o,E,p,a,d,t]),Qo(RB({scopeKey:n,chainId:c}),Zt0,{cacheTime:u,enabled:t,staleTime:r,suspense:i,onError:s,onSettled:f,onSuccess:l})}function un0({chainId:u,enabled:e,queryKey:t}){const n=fb(),r=w.useCallback(()=>n.invalidateQueries({queryKey:t},{cancelRefetch:!1}),[n,t]);Xt0({chainId:u,enabled:e,onBlock:e?r:void 0,scopeKey:e?void 0:"idle"})}var $p=u=>typeof u=="object"&&!Array.isArray(u);function iI(u,e,t=e,n=fC){const r=w.useRef([]),i=sb.useSyncExternalStoreWithSelector(u,e,t,a=>a,(a,o)=>{if($p(a)&&$p(o)&&r.current.length){for(const s of r.current)if(!n(a[s],o[s]))return!1;return!0}return n(a,o)});if($p(i)){const a={...i};return Object.defineProperties(a,Object.entries(a).reduce((o,[s,f])=>({...o,[s]:{configurable:!1,enumerable:!0,get:()=>(r.current.includes(s)||r.current.push(s),f)}}),{})),a}return i}function At({onConnect:u,onDisconnect:e}={}){const t=F5(),n=w.useCallback(o=>Ft0(o),[t]),r=iI(n,uI),i=w.useRef(),a=i.current;return w.useEffect(()=>{(a==null?void 0:a.status)!=="connected"&&r.status==="connected"&&(u==null||u({address:r.address,connector:r.connector,isReconnected:(a==null?void 0:a.status)==="reconnecting"||(a==null?void 0:a.status)===void 0})),(a==null?void 0:a.status)==="connected"&&r.status==="disconnected"&&(e==null||e()),i.current=r},[u,e,a,r]),r}function en0({address:u,chainId:e,formatUnits:t,scopeKey:n,token:r}){return[{entity:"balance",address:u,chainId:e,formatUnits:t,scopeKey:n,token:r}]}function tn0({queryKey:[{address:u,chainId:e,formatUnits:t,token:n}]}){if(!u)throw new Error("address is required");return yt0({address:u,chainId:e,formatUnits:t,token:n})}function aI({address:u,cacheTime:e,chainId:t,enabled:n=!0,formatUnits:r,scopeKey:i,staleTime:a,suspense:o,token:s,watch:f,onError:l,onSettled:c,onSuccess:E}={}){const d=Z3({chainId:t}),p=w.useMemo(()=>en0({address:u,chainId:d,formatUnits:r,scopeKey:i,token:s}),[u,d,r,i,s]),h=Qo(p,tn0,{cacheTime:e,enabled:!!(n&&u),staleTime:a,suspense:o,onError:l,onSettled:c,onSuccess:E});return un0({chainId:d,enabled:!!(n&&f&&u),queryKey:p}),h}var nn0=u=>[{entity:"connect",...u}],rn0=u=>{const{connector:e,chainId:t}=u;if(!e)throw new Error("connector is required");return ct0({connector:e,chainId:t})};function in0({chainId:u,connector:e,onError:t,onMutate:n,onSettled:r,onSuccess:i}={}){const a=F5(),{data:o,error:s,isError:f,isIdle:l,isLoading:c,isSuccess:E,mutate:d,mutateAsync:p,reset:h,status:b,variables:g}=u1(nn0({connector:e,chainId:u}),rn0,{onError:t,onMutate:n,onSettled:r,onSuccess:i}),m=w.useCallback(y=>d({chainId:(y==null?void 0:y.chainId)??u,connector:(y==null?void 0:y.connector)??e}),[u,e,d]),A=w.useCallback(y=>p({chainId:(y==null?void 0:y.chainId)??u,connector:(y==null?void 0:y.connector)??e}),[u,e,p]);return{connect:m,connectAsync:A,connectors:a.connectors,data:o,error:s,isError:f,isIdle:l,isLoading:c,isSuccess:E,pendingConnector:g==null?void 0:g.connector,reset:h,status:b,variables:g}}var an0=[{entity:"disconnect"}],on0=()=>Et0();function lb({onError:u,onMutate:e,onSettled:t,onSuccess:n}={}){const{error:r,isError:i,isIdle:a,isLoading:o,isSuccess:s,mutate:f,mutateAsync:l,reset:c,status:E}=u1(an0,on0,{...u?{onError(d,p,h){u(d,h)}}:{},onMutate:e,...t?{onSettled(d,p,h,b){t(p,b)}}:{},...n?{onSuccess(d,p,h){n(h)}}:{}});return{disconnect:f,disconnectAsync:l,error:r,isError:i,isIdle:a,isLoading:o,isSuccess:s,reset:c,status:E}}function ba(){const u=F5(),e=w.useCallback(t=>Dt0(t),[u]);return iI(e,ob)}var sn0=u=>[{entity:"signMessage",...u}],fn0=u=>{const{message:e}=u;if(!e)throw new Error("message is required");return vt0({message:e})};function ln0({message:u,onError:e,onMutate:t,onSettled:n,onSuccess:r}={}){const{data:i,error:a,isError:o,isIdle:s,isLoading:f,isSuccess:l,mutate:c,mutateAsync:E,reset:d,status:p,variables:h}=u1(sn0({message:u}),fn0,{onError:e,onMutate:t,onSettled:n,onSuccess:r}),b=w.useCallback(m=>c(m||{message:u}),[u,c]),g=w.useCallback(m=>E(m||{message:u}),[u,E]);return{data:i,error:a,isError:o,isIdle:s,isLoading:f,isSuccess:l,reset:d,signMessage:b,signMessageAsync:g,status:p,variables:h}}var cn0=u=>[{entity:"switchNetwork",...u}],En0=u=>{const{chainId:e}=u;if(!e)throw new Error("chainId is required");return Bt0({chainId:e})};function dn0({chainId:u,throwForSwitchChainNotSupported:e,onError:t,onMutate:n,onSettled:r,onSuccess:i}={}){var D;const a=F5(),o=Yt0(),{data:s,error:f,isError:l,isIdle:c,isLoading:E,isSuccess:d,mutate:p,mutateAsync:h,reset:b,status:g,variables:m}=u1(cn0({chainId:u}),En0,{onError:t,onMutate:n,onSettled:r,onSuccess:i}),A=w.useCallback(T=>p({chainId:T??u}),[u,p]),y=w.useCallback(T=>h({chainId:T??u}),[u,h]);w.useEffect(()=>a.subscribe(({chains:_,connector:$})=>({chains:_,connector:$}),o),[a,o]);let B,v;const C=!!((D=a.connector)!=null&&D.switchChain);return(e||C)&&(B=A,v=y),{chains:a.chains??[],data:s,error:f,isError:l,isIdle:c,isLoading:E,isSuccess:d,pendingChainId:m==null?void 0:m.chainId,reset:b,status:g,switchNetwork:B,switchNetworkAsync:v,variables:m}}function pn0({address:u,abi:e,functionName:t,...n}){const{args:r,accessList:i,account:a,dataSuffix:o,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:E,request:d,value:p}=n;return[{entity:"writeContract",address:u,args:r,abi:e,accessList:i,account:a,dataSuffix:o,functionName:t,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:E,request:d,value:p}]}function hn0(u){if(u.mode==="prepared"){if(!u.request)throw new Error("request is required");return IB({mode:"prepared",request:u.request})}if(!u.address)throw new Error("address is required");if(!u.abi)throw new Error("abi is required");if(!u.functionName)throw new Error("functionName is required");return IB({address:u.address,args:u.args,chainId:u.chainId,abi:u.abi,functionName:u.functionName,accessList:u.accessList,account:u.account,dataSuffix:u.dataSuffix,gas:u.gas,gasPrice:u.gasPrice,maxFeePerGas:u.maxFeePerGas,maxPriorityFeePerGas:u.maxPriorityFeePerGas,nonce:u.nonce,value:u.value})}function Cn0(u){const{address:e,abi:t,args:n,chainId:r,functionName:i,mode:a,request:o,dataSuffix:s}=u,{accessList:f,account:l,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,value:b}=at0(u),{data:g,error:m,isError:A,isIdle:y,isLoading:B,isSuccess:v,mutate:C,mutateAsync:D,reset:T,status:_,variables:$}=u1(pn0({address:e,abi:t,functionName:i,chainId:r,mode:a,args:n,accessList:f,account:l,dataSuffix:s,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,request:o,value:b}),hn0,{onError:u.onError,onMutate:u.onMutate,onSettled:u.onSettled,onSuccess:u.onSuccess}),u0=w.useMemo(()=>u.mode==="prepared"?o?()=>C({mode:"prepared",request:u.request,chainId:u.chainId}):void 0:o0=>C({address:e,args:n,abi:t,functionName:i,chainId:r,accessList:f,account:l,dataSuffix:s,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,value:b,...o0}),[f,l,t,e,n,r,u.chainId,u.mode,u.request,s,i,c,E,d,p,C,h,o,b]),e0=w.useMemo(()=>u.mode==="prepared"?o?()=>D({mode:"prepared",request:u.request}):void 0:o0=>D({address:e,args:n,abi:t,chainId:r,functionName:i,accessList:f,account:l,dataSuffix:s,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,value:b,...o0}),[f,l,t,e,n,r,u.mode,u.request,s,i,c,E,d,p,D,h,o,b]);return{data:g,error:m,isError:A,isIdle:y,isLoading:B,isSuccess:v,reset:T,status:_,variables:$,write:u0,writeAsync:e0}}function mn0({accessList:u,account:e,activeChainId:t,args:n,address:r,blockNumber:i,blockTag:a,chainId:o,dataSuffix:s,functionName:f,gas:l,gasPrice:c,maxFeePerGas:E,maxPriorityFeePerGas:d,nonce:p,scopeKey:h,walletClientAddress:b,value:g}){return[{entity:"prepareContractTransaction",accessList:u,account:e,activeChainId:t,address:r,args:n,blockNumber:i,blockTag:a,chainId:o,dataSuffix:s,functionName:f,gas:l,gasPrice:c,maxFeePerGas:E,maxPriorityFeePerGas:d,nonce:p,scopeKey:h,walletClientAddress:b,value:g}]}function gn0({abi:u,walletClient:e}){return({queryKey:[{accessList:t,account:n,args:r,address:i,blockNumber:a,blockTag:o,chainId:s,dataSuffix:f,functionName:l,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,value:b}]})=>{if(!u)throw new Error("abi is required");if(!i)throw new Error("address is required");if(!l)throw new Error("functionName is required");return XO({abi:u,accessList:t,account:n,args:r,address:i,blockNumber:a,blockTag:o,chainId:s,dataSuffix:f,functionName:l,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,walletClient:e,value:b})}}function bn0({address:u,abi:e,functionName:t,chainId:n,args:r,cacheTime:i,dataSuffix:a,enabled:o=!0,scopeKey:s,staleTime:f,suspense:l,onError:c,onSettled:E,onSuccess:d,...p}={}){const{chain:h}=ba(),{data:b}=Qt0({chainId:n}),{accessList:g,account:m,blockNumber:A,blockTag:y,gas:B,gasPrice:v,maxFeePerGas:C,maxPriorityFeePerGas:D,nonce:T,value:_}=QO(p),$=Qo(mn0({accessList:g,account:m,activeChainId:h==null?void 0:h.id,address:u,args:r,blockNumber:A,blockTag:y,chainId:n,dataSuffix:a,functionName:t,gas:B,gasPrice:v,maxFeePerGas:C,maxPriorityFeePerGas:D,nonce:T,scopeKey:s,walletClientAddress:b==null?void 0:b.account.address,value:_}),gn0({abi:e,walletClient:b}),{cacheTime:i,enabled:!!(o&&e&&u&&t&&b),staleTime:f,suspense:l,onError:c,onSettled:E,onSuccess:d});return Object.assign($,{config:{chainId:n,mode:"prepared",request:void 0,...$.data}})}function An0({name:u,chainId:e,scopeKey:t}){return[{entity:"ensAvatar",name:u,chainId:e,scopeKey:t}]}function yn0({queryKey:[{name:u,chainId:e}]}){if(!u)throw new Error("name is required");return wt0({name:u,chainId:e})}function vn0({cacheTime:u,chainId:e,enabled:t=!0,name:n,scopeKey:r,staleTime:i=1e3*60*60*24,suspense:a,onError:o,onSettled:s,onSuccess:f}={}){const l=Z3({chainId:e});return Qo(An0({name:n,chainId:l,scopeKey:r}),yn0,{cacheTime:u,enabled:!!(t&&n&&l),staleTime:i,suspense:a,onError:o,onSettled:s,onSuccess:f})}function Bn0({address:u,chainId:e,scopeKey:t}){return[{entity:"ensName",address:u,chainId:e,scopeKey:t}]}function Fn0({queryKey:[{address:u,chainId:e}]}){if(!u)throw new Error("address is required");return xt0({address:u,chainId:e})}function Dn0({address:u,cacheTime:e,chainId:t,enabled:n=!0,scopeKey:r,staleTime:i=1e3*60*60*24,suspense:a,onError:o,onSettled:s,onSuccess:f}={}){const l=Z3({chainId:t});return Qo(Bn0({address:u,chainId:l,scopeKey:r}),Fn0,{cacheTime:e,enabled:!!(n&&u&&l),staleTime:i,suspense:a,onError:o,onSettled:s,onSuccess:f})}function wn0({confirmations:u,chainId:e,hash:t,scopeKey:n,timeout:r}){return[{entity:"waitForTransaction",confirmations:u,chainId:e,hash:t,scopeKey:n,timeout:r}]}function xn0({onReplaced:u}){return({queryKey:[{chainId:e,confirmations:t,hash:n,timeout:r}]})=>{if(!n)throw new Error("hash is required");return _t0({chainId:e,confirmations:t,hash:n,onReplaced:u,timeout:r})}}function kn0({chainId:u,confirmations:e,hash:t,timeout:n,cacheTime:r,enabled:i=!0,scopeKey:a,staleTime:o,suspense:s,onError:f,onReplaced:l,onSettled:c,onSuccess:E}={}){const d=Z3({chainId:u});return Qo(wn0({chainId:d,confirmations:e,hash:t,scopeKey:a,timeout:n}),xn0({onReplaced:l}),{cacheTime:r,enabled:!!(i&&t),staleTime:o,suspense:s,onError:f,onSettled:c,onSuccess:E})}function oI(u){var e,t,n="";if(typeof u=="string"||typeof u=="number")n+=u;else if(typeof u=="object")if(Array.isArray(u))for(e=0;e-1}var xi0=wi0,ki0=_5;function _i0(u,e){var t=this.__data__,n=ki0(t,u);return n<0?(++this.size,t.push([u,e])):t[n][1]=e,this}var Si0=_i0,Ti0=di0,Pi0=yi0,Oi0=Fi0,Ii0=xi0,Ni0=Si0;function uf(u){var e=-1,t=u==null?0:u.length;for(this.clear();++e-1&&u%1==0&&u-1&&u%1==0&&u<=ro0}var bb=io0,ao0=hb,oo0=gb,so0=pr,fo0=P5,lo0=bb,co0=i1;function Eo0(u,e,t){e=ao0(e,u);for(var n=-1,r=e.length,i=!1;++n-1}var rs0=ns0;function is0(u,e,t){for(var n=-1,r=u==null?0:u.length;++n=Ds0){var f=e?null:Bs0(u);if(f)return Fs0(f);a=!1,r=vs0,s=new bs0}else s=e?[]:o;u:for(;++n{const o=[],s=[];return o.push(a),a||o.push(i.locale),i.enableFallback&&o.push(i.defaultLocale),o.filter(Boolean).map(f=>f.toString()).forEach(function(f){if(s.includes(f)||s.push(f),!i.enableFallback)return;const l=f.split("-");l.length===3&&s.push(`${l[0]}-${l[1]}`),s.push(l[0])}),(0,t.default)(s)};u.defaultLocaleResolver=n;class r{constructor(a){this.i18n=a,this.registry={},this.register("default",u.defaultLocaleResolver)}register(a,o){if(typeof o!="function"){const s=o;o=()=>s}this.registry[a]=o}get(a){let o=this.registry[a]||this.registry[this.i18n.locale]||this.registry.default;return typeof o=="function"&&(o=o(this.i18n,a)),o instanceof Array||(o=[o]),o}}u.Locales=r})(Ab);var vb={};const g0=(u,e)=>e?"other":u==1?"one":"other",fi=(u,e)=>e?"other":u==0||u==1?"one":"other",nf=(u,e)=>e?"other":u>=0&&u<=1?"one":"other",mn=(u,e)=>{const t=String(u).split("."),n=!t[1];return e?"other":u==1&&n?"one":"other"},nu=(u,e)=>"other",li=(u,e)=>e?"other":u==1?"one":u==2?"two":"other",Ts0=g0,Ps0=fi,Os0=nf,Is0=g0,Ns0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2);return e?"other":u==0?"zero":u==1?"one":u==2?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},Rs0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2);return e?"other":u==0?"zero":u==1?"one":u==2?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},Ms0=(u,e)=>e?u==1||u==5||u==7||u==8||u==9||u==10?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",js0=g0,zs0=mn,Ls0=(u,e)=>{const t=String(u).split("."),n=t[0],r=n.slice(-1),i=n.slice(-2),a=n.slice(-3);return e?r==1||r==2||r==5||r==7||r==8||i==20||i==50||i==70||i==80?"one":r==3||r==4||a==100||a==200||a==300||a==400||a==500||a==600||a==700||a==800||a==900?"few":n==0||r==6||i==40||i==60||i==90?"many":"other":u==1?"one":"other"},$s0=(u,e)=>u==1?"one":"other",Us0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2);return e?(r==2||r==3)&&i!=12&&i!=13?"few":"other":r==1&&i!=11?"one":r>=2&&r<=4&&(i<12||i>14)?"few":n&&r==0||r>=5&&r<=9||i>=11&&i<=14?"many":"other"},Ws0=g0,qs0=g0,Hs0=g0,Gs0=fi,Vs0=nu,Ks0=(u,e)=>e?u==1||u==5||u==7||u==8||u==9||u==10?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",Qs0=nu,Js0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2),a=n&&t[0].slice(-6);return e?"other":r==1&&i!=11&&i!=71&&i!=91?"one":r==2&&i!=12&&i!=72&&i!=92?"two":(r==3||r==4||r==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":u!=0&&n&&a==0?"many":"other"},Ys0=g0,Zs0=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},Xs0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==1||u==3?"one":u==2?"two":u==4?"few":"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},u40=g0,e40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return e?"other":i&&(n==1||n==2||n==3)||i&&a!=4&&a!=6&&a!=9||!i&&o!=4&&o!=6&&o!=9?"one":"other"},t40=g0,n40=g0,r40=g0,i40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1];return e?"other":u==1&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},a40=(u,e)=>e?u==0||u==7||u==8||u==9?"zero":u==1?"one":u==2?"two":u==3||u==4?"few":u==5||u==6?"many":"other":u==0?"zero":u==1?"one":u==2?"two":u==3?"few":u==6?"many":"other",o40=(u,e)=>{const t=String(u).split("."),n=t[0],r=Number(t[0])==u;return e?"other":u==1||!r&&(n==0||n==1)?"one":"other"},s40=mn,f40=nf,l40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-2),o=r.slice(-2);return e?"other":i&&a==1||o==1?"one":i&&a==2||o==2?"two":i&&(a==3||a==4)||o==3||o==4?"few":"other"},c40=g0,E40=nu,d40=g0,p40=g0,h40=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return e?i==1&&a!=11?"one":i==2&&a!=12?"two":i==3&&a!=13?"few":"other":u==1&&n?"one":"other"},C40=g0,m40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?"other":u==1?"one":n!=0&&i==0&&r?"many":"other"},g40=mn,b40=g0,A40=nf,y40=(u,e)=>e?"other":u>=0&&u<2?"one":"other",v40=mn,B40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return e?u==1?"one":"other":i&&(n==1||n==2||n==3)||i&&a!=4&&a!=6&&a!=9||!i&&o!=4&&o!=6&&o!=9?"one":"other"},F40=g0,D40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==1?"one":"other":u>=0&&u<2?"one":n!=0&&i==0&&r?"many":"other"},w40=g0,x40=mn,k40=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?u==1?"one":"other":u==1?"one":u==2?"two":n&&u>=3&&u<=6?"few":n&&u>=7&&u<=10?"many":"other"},_40=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?u==1||u==11?"one":u==2||u==12?"two":u==3||u==13?"few":"other":u==1||u==11?"one":u==2||u==12?"two":n&&u>=3&&u<=10||n&&u>=13&&u<=19?"few":"other"},S40=mn,T40=g0,P40=(u,e)=>e?u==1?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",O40=fi,I40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return e?"other":r&&i==1?"one":r&&i==2?"two":r&&(a==0||a==20||a==40||a==60||a==80)?"few":r?"other":"many"},N40=g0,R40=g0,M40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1];return e?"other":n==1&&r||n==0&&!r?"one":n==2&&r?"two":"other"},j40=(u,e)=>e?u==1?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",z40=nu,L40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},$40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-2),o=r.slice(-2);return e?"other":i&&a==1||o==1?"one":i&&a==2||o==2?"two":i&&(a==3||a==4)||o==3||o==4?"few":"other"},U40=(u,e)=>e?u==1||u==5?"one":"other":u==1?"one":"other",W40=(u,e)=>e?u==1?"one":"other":u>=0&&u<2?"one":"other",q40=mn,H40=nu,G40=nu,V40=nu,K40=mn,Q40=(u,e)=>{const t=String(u).split("."),n=t[0],r=(t[1]||"").replace(/0+$/,""),i=Number(t[0])==u,a=n.slice(-1),o=n.slice(-2);return e?"other":i&&a==1&&o!=11||r%10==1&&r%100!=11?"one":"other"},J40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},Y40=li,Z40=nu,X40=nu,u30=g0,e30=g0,t30=nu,n30=nu,r30=(u,e)=>{const t=String(u).split("."),n=t[0],r=n.slice(-2);return e?n==1?"one":n==0||r>=2&&r<=20||r==40||r==60||r==80?"many":"other":u==1?"one":"other"},i30=(u,e)=>e?"other":u>=0&&u<2?"one":"other",a30=g0,o30=g0,s30=nu,f30=nu,l30=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1);return e?r==6||r==9||n&&r==0&&u!=0?"many":"other":u==1?"one":"other"},c30=g0,E30=g0,d30=nu,p30=nf,h30=nu,C30=g0,m30=g0,g30=(u,e)=>e?"other":u==0?"zero":u==1?"one":"other",b30=g0,A30=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2),i=n&&t[0].slice(-3),a=n&&t[0].slice(-5),o=n&&t[0].slice(-6);return e?n&&u>=1&&u<=4||r>=1&&r<=4||r>=21&&r<=24||r>=41&&r<=44||r>=61&&r<=64||r>=81&&r<=84?"one":u==5||r==5?"many":"other":u==0?"zero":u==1?"one":r==2||r==22||r==42||r==62||r==82||n&&i==0&&(a>=1e3&&a<=2e4||a==4e4||a==6e4||a==8e4)||u!=0&&o==1e5?"two":r==3||r==23||r==43||r==63||r==83?"few":u!=1&&(r==1||r==21||r==41||r==61||r==81)?"many":"other"},y30=g0,v30=(u,e)=>{const t=String(u).split("."),n=t[0];return e?"other":u==0?"zero":(n==0||n==1)&&u!=0?"one":"other"},B30=g0,F30=g0,D30=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u;return e?u==11||u==8||r&&u>=80&&u<=89||r&&u>=800&&u<=899?"many":"other":u==1&&n?"one":"other"},w30=nu,x30=fi,k30=(u,e)=>e&&u==1?"one":"other",_30=(u,e)=>{const t=String(u).split("."),n=t[1]||"",r=Number(t[0])==u,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return e?"other":i==1&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":n!=0?"many":"other"},S30=(u,e)=>{const t=String(u).split("."),n=t[1]||"",r=n.length,i=Number(t[0])==u,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-2),f=n.slice(-1);return e?"other":i&&a==0||o>=11&&o<=19||r==2&&s>=11&&s<=19?"zero":a==1&&o!=11||r==2&&f==1&&s!=11||r!=2&&f==1?"one":"other"},T30=g0,P30=fi,O30=g0,I30=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?a==1&&o!=11?"one":a==2&&o!=12?"two":(a==7||a==8)&&o!=17&&o!=18?"many":"other":i&&a==1&&o!=11||s==1&&f!=11?"one":"other"},N30=g0,R30=g0,M30=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-2);return e?u==1?"one":"other":u==1&&n?"one":!n||u==0||u!=1&&i>=1&&i<=19?"few":"other"},j30=(u,e)=>e?u==1?"one":u==2||u==3?"two":u==4?"few":"other":u==1?"one":"other",z30=(u,e)=>e&&u==1?"one":"other",L30=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2);return e?"other":u==1?"one":u==2?"two":u==0||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},$30=nu,U30=g0,W30=li,q30=g0,H30=g0,G30=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?n&&u>=1&&u<=4?"one":"other":u==1?"one":"other"},V30=mn,K30=g0,Q30=g0,J30=g0,Y30=nu,Z30=g0,X30=fi,uf0=g0,ef0=g0,tf0=g0,nf0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?u==1||u==5||n&&u>=7&&u<=9?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u==1?"one":"other"},rf0=g0,if0=nu,af0=fi,of0=g0,sf0=nf,ff0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return e?"other":u==1&&r?"one":r&&i>=2&&i<=4&&(a<12||a>14)?"few":r&&n!=1&&(i==0||i==1)||r&&i>=5&&i<=9||r&&a>=12&&a<=14?"many":"other"},lf0=(u,e)=>{const t=String(u).split("."),n=t[1]||"",r=n.length,i=Number(t[0])==u,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-2),f=n.slice(-1);return e?"other":i&&a==0||o>=11&&o<=19||r==2&&s>=11&&s<=19?"zero":a==1&&o!=11||r==2&&f==1&&s!=11||r!=2&&f==1?"one":"other"},cf0=g0,Ef0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?"other":n==0||n==1?"one":n!=0&&i==0&&r?"many":"other"},df0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},pf0=g0,hf0=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-2);return e?u==1?"one":"other":u==1&&n?"one":!n||u==0||u!=1&&i>=1&&i<=19?"few":"other"},Cf0=g0,mf0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return e?"other":r&&i==1&&a!=11?"one":r&&i>=2&&i<=4&&(a<12||a>14)?"few":r&&i==0||r&&i>=5&&i<=9||r&&a>=11&&a<=14?"many":"other"},gf0=g0,bf0=nu,Af0=g0,yf0=li,vf0=(u,e)=>{const t=String(u).split("."),n=!t[1];return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&n?"one":"other"},Bf0=(u,e)=>{const t=String(u).split("."),n=!t[1];return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&n?"one":"other"},Ff0=g0,Df0=g0,wf0=li,xf0=g0,kf0=nu,_f0=nu,Sf0=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},Tf0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?"other":u>=0&&u<=1?"one":n&&u>=2&&u<=10?"few":"other"},Pf0=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"";return e?"other":u==0||u==1||n==0&&r==1?"one":"other"},Of0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1];return e?"other":u==1&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},If0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-2);return e?"other":r&&i==1?"one":r&&i==2?"two":r&&(i==3||i==4)||!r?"few":"other"},Nf0=li,Rf0=li,Mf0=li,jf0=li,zf0=li,Lf0=g0,$f0=g0,Uf0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2);return e?u==1?"one":r==4&&i!=14?"many":"other":u==1?"one":"other"},Wf0=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},qf0=g0,Hf0=g0,Gf0=g0,Vf0=nu,Kf0=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return e?(i==1||i==2)&&a!=11&&a!=12?"one":"other":u==1&&n?"one":"other"},Qf0=mn,Jf0=g0,Yf0=g0,Zf0=g0,Xf0=g0,ul0=nu,el0=fi,tl0=g0,nl0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1);return e?r==6||r==9||u==10?"few":"other":u==1?"one":"other"},rl0=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return e?u==1?"one":"other":i&&(n==1||n==2||n==3)||i&&a!=4&&a!=6&&a!=9||!i&&o!=4&&o!=6&&o!=9?"one":"other"},il0=g0,al0=nu,ol0=nu,sl0=g0,fl0=g0,ll0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?"other":u==0||u==1||n&&u>=11&&u<=99?"one":"other"},cl0=g0,El0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=Number(t[0])==u,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-1),f=n.slice(-2);return e?a==3&&o!=13?"few":"other":r&&s==1&&f!=11?"one":r&&s>=2&&s<=4&&(f<12||f>14)?"few":r&&s==0||r&&s>=5&&s<=9||r&&f>=11&&f<=14?"many":"other"},dl0=nu,pl0=mn,hl0=g0,Cl0=g0,ml0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},gl0=(u,e)=>e&&u==1?"one":"other",bl0=g0,Al0=g0,yl0=fi,vl0=g0,Bl0=nu,Fl0=g0,Dl0=g0,wl0=mn,xl0=nu,kl0=nu,_l0=nu,Sl0=nf,Tl0=Object.freeze(Object.defineProperty({__proto__:null,af:Ts0,ak:Ps0,am:Os0,an:Is0,ar:Ns0,ars:Rs0,as:Ms0,asa:js0,ast:zs0,az:Ls0,bal:$s0,be:Us0,bem:Ws0,bez:qs0,bg:Hs0,bho:Gs0,bm:Vs0,bn:Ks0,bo:Qs0,br:Js0,brx:Ys0,bs:Zs0,ca:Xs0,ce:u40,ceb:e40,cgg:t40,chr:n40,ckb:r40,cs:i40,cy:a40,da:o40,de:s40,doi:f40,dsb:l40,dv:c40,dz:E40,ee:d40,el:p40,en:h40,eo:C40,es:m40,et:g40,eu:b40,fa:A40,ff:y40,fi:v40,fil:B40,fo:F40,fr:D40,fur:w40,fy:x40,ga:k40,gd:_40,gl:S40,gsw:T40,gu:P40,guw:O40,gv:I40,ha:N40,haw:R40,he:M40,hi:j40,hnj:z40,hr:L40,hsb:$40,hu:U40,hy:W40,ia:q40,id:H40,ig:G40,ii:V40,io:K40,is:Q40,it:J40,iu:Y40,ja:Z40,jbo:X40,jgo:u30,jmc:e30,jv:t30,jw:n30,ka:r30,kab:i30,kaj:a30,kcg:o30,kde:s30,kea:f30,kk:l30,kkj:c30,kl:E30,km:d30,kn:p30,ko:h30,ks:C30,ksb:m30,ksh:g30,ku:b30,kw:A30,ky:y30,lag:v30,lb:B30,lg:F30,lij:D30,lkt:w30,ln:x30,lo:k30,lt:_30,lv:S30,mas:T30,mg:P30,mgo:O30,mk:I30,ml:N30,mn:R30,mo:M30,mr:j30,ms:z30,mt:L30,my:$30,nah:U30,naq:W30,nb:q30,nd:H30,ne:G30,nl:V30,nn:K30,nnh:Q30,no:J30,nqo:Y30,nr:Z30,nso:X30,ny:uf0,nyn:ef0,om:tf0,or:nf0,os:rf0,osa:if0,pa:af0,pap:of0,pcm:sf0,pl:ff0,prg:lf0,ps:cf0,pt:Ef0,pt_PT:df0,rm:pf0,ro:hf0,rof:Cf0,ru:mf0,rwk:gf0,sah:bf0,saq:Af0,sat:yf0,sc:vf0,scn:Bf0,sd:Ff0,sdh:Df0,se:wf0,seh:xf0,ses:kf0,sg:_f0,sh:Sf0,shi:Tf0,si:Pf0,sk:Of0,sl:If0,sma:Nf0,smi:Rf0,smj:Mf0,smn:jf0,sms:zf0,sn:Lf0,so:$f0,sq:Uf0,sr:Wf0,ss:qf0,ssy:Hf0,st:Gf0,su:Vf0,sv:Kf0,sw:Qf0,syr:Jf0,ta:Yf0,te:Zf0,teo:Xf0,th:ul0,ti:el0,tig:tl0,tk:nl0,tl:rl0,tn:il0,to:al0,tpi:ol0,tr:sl0,ts:fl0,tzm:ll0,ug:cl0,uk:El0,und:dl0,ur:pl0,uz:hl0,ve:Cl0,vec:ml0,vi:gl0,vo:bl0,vun:Al0,wa:yl0,wae:vl0,wo:Bl0,xh:Fl0,xog:Dl0,yi:wl0,yo:xl0,yue:kl0,zh:_l0,zu:Sl0},Symbol.toStringTag,{value:"Module"})),Pl0=V9(Tl0);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Pluralization=u.defaultPluralizer=u.useMakePlural=void 0;const e=Pl0;function t({pluralizer:r,includeZero:i=!0,ordinal:a=!1}){return function(o,s){return[i&&s===0?"zero":"",r(s,a)].filter(Boolean)}}u.useMakePlural=t,u.defaultPluralizer=t({pluralizer:e.en,includeZero:!0});class n{constructor(i){this.i18n=i,this.registry={},this.register("default",u.defaultPluralizer)}register(i,a){this.registry[i]=a}get(i){return this.registry[i]||this.registry[this.i18n.locale]||this.registry.default}}u.Pluralization=n})(vb);var Bb={},Fb={},O5={};function Ol0(u,e,t){var n=-1,r=u.length;e<0&&(e=-e>r?0:r+e),t=t>r?r:t,t<0&&(t+=r),r=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(r);++n=n?u:Nl0(u,e,t)}var Ml0=Rl0,jl0="\\ud800-\\udfff",zl0="\\u0300-\\u036f",Ll0="\\ufe20-\\ufe2f",$l0="\\u20d0-\\u20ff",Ul0=zl0+Ll0+$l0,Wl0="\\ufe0e\\ufe0f",ql0="\\u200d",Hl0=RegExp("["+ql0+jl0+Ul0+Wl0+"]");function Gl0(u){return Hl0.test(u)}var DI=Gl0;function Vl0(u){return u.split("")}var Kl0=Vl0,wI="\\ud800-\\udfff",Ql0="\\u0300-\\u036f",Jl0="\\ufe20-\\ufe2f",Yl0="\\u20d0-\\u20ff",Zl0=Ql0+Jl0+Yl0,Xl0="\\ufe0e\\ufe0f",uc0="["+wI+"]",pC="["+Zl0+"]",hC="\\ud83c[\\udffb-\\udfff]",ec0="(?:"+pC+"|"+hC+")",xI="[^"+wI+"]",kI="(?:\\ud83c[\\udde6-\\uddff]){2}",_I="[\\ud800-\\udbff][\\udc00-\\udfff]",tc0="\\u200d",SI=ec0+"?",TI="["+Xl0+"]?",nc0="(?:"+tc0+"(?:"+[xI,kI,_I].join("|")+")"+TI+SI+")*",rc0=TI+SI+nc0,ic0="(?:"+[xI+pC+"?",pC,kI,_I,uc0].join("|")+")",ac0=RegExp(hC+"(?="+hC+")|"+ic0+rc0,"g");function oc0(u){return u.match(ac0)||[]}var sc0=oc0,fc0=Kl0,lc0=DI,cc0=sc0;function Ec0(u){return lc0(u)?cc0(u):fc0(u)}var dc0=Ec0,pc0=Ml0,hc0=DI,Cc0=dc0,mc0=tf;function gc0(u){return function(e){e=mc0(e);var t=hc0(e)?Cc0(e):void 0,n=t?t[0]:e.charAt(0),r=t?pc0(t,1).join(""):e.slice(1);return n[u]()+r}}var bc0=gc0,Ac0=bc0,yc0=Ac0("toUpperCase"),vc0=yc0,Bc0=tf,Fc0=vc0;function Dc0(u){return Fc0(Bc0(u).toLowerCase())}var wc0=Dc0;function xc0(u,e,t,n){var r=-1,i=u==null?0:u.length;for(n&&i&&(t=u[++r]);++r(e[(0,L10.default)(t)]=u[t],e),{}):{}}O5.camelCaseKeys=$10;var I5={},Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.isSet=void 0;function U10(u){return u!=null}Aa.isSet=U10;Object.defineProperty(I5,"__esModule",{value:!0});I5.createTranslationOptions=void 0;const XB=Aa;function W10(u,e,t){let n=[{scope:e}];if((0,XB.isSet)(t.defaults)&&(n=n.concat(t.defaults)),(0,XB.isSet)(t.defaultValue)){const r=typeof t.defaultValue=="function"?t.defaultValue(u,e,t):t.defaultValue;n.push({message:r}),delete t.defaultValue}return n}I5.createTranslationOptions=W10;var rf={},HI={exports:{}};(function(u){(function(e){var t,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,i=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",s=1e14,f=14,l=9007199254740991,c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],E=1e7,d=1e9;function p(v){var C,D,T,_=K.prototype={constructor:K,toString:null,valueOf:null},$=new K(1),u0=20,e0=4,o0=-7,N=21,R=-1e7,V=1e7,G=!1,H=1,L=0,n0={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},s0="0123456789abcdefghijklmnopqrstuvwxyz",a0=!0;function K(k,S){var P,z,M,q,J,j,U,Y,W=this;if(!(W instanceof K))return new K(k,S);if(S==null){if(k&&k._isBigNumber===!0){W.s=k.s,!k.c||k.e>V?W.c=W.e=null:k.e=10;J/=10,q++);q>V?W.c=W.e=null:(W.e=q,W.c=[k]);return}Y=String(k)}else{if(!n.test(Y=String(k)))return T(W,Y,j);W.s=Y.charCodeAt(0)==45?(Y=Y.slice(1),-1):1}(q=Y.indexOf("."))>-1&&(Y=Y.replace(".","")),(J=Y.search(/e/i))>0?(q<0&&(q=J),q+=+Y.slice(J+1),Y=Y.substring(0,J)):q<0&&(q=Y.length)}else{if(m(S,2,s0.length,"Base"),S==10&&a0)return W=new K(k),T0(W,u0+W.e+1,e0);if(Y=String(k),j=typeof k=="number"){if(k*0!=0)return T(W,Y,j,S);if(W.s=1/k<0?(Y=Y.slice(1),-1):1,K.DEBUG&&Y.replace(/^0\.0*|\./,"").length>15)throw Error(o+k)}else W.s=Y.charCodeAt(0)===45?(Y=Y.slice(1),-1):1;for(P=s0.slice(0,S),q=J=0,U=Y.length;Jq){q=U;continue}}else if(!M&&(Y==Y.toUpperCase()&&(Y=Y.toLowerCase())||Y==Y.toLowerCase()&&(Y=Y.toUpperCase()))){M=!0,J=-1,q=0;continue}return T(W,String(k),j,S)}j=!1,Y=D(Y,S,10,W.s),(q=Y.indexOf("."))>-1?Y=Y.replace(".",""):q=Y.length}for(J=0;Y.charCodeAt(J)===48;J++);for(U=Y.length;Y.charCodeAt(--U)===48;);if(Y=Y.slice(J,++U)){if(U-=J,j&&K.DEBUG&&U>15&&(k>l||k!==i(k)))throw Error(o+W.s*k);if((q=q-J-1)>V)W.c=W.e=null;else if(q=-d&&M<=d&&M===i(M)){if(z[0]===0){if(M===0&&z.length===1)return!0;break u}if(S=(M+1)%f,S<1&&(S+=f),String(z[0]).length==S){for(S=0;S=s||P!==i(P))break u;if(P!==0)return!0}}}else if(z===null&&M===null&&(q===null||q===1||q===-1))return!0;throw Error(a+"Invalid BigNumber: "+k)},K.maximum=K.max=function(){return _0(arguments,-1)},K.minimum=K.min=function(){return _0(arguments,1)},K.random=function(){var k=9007199254740992,S=Math.random()*k&2097151?function(){return i(Math.random()*k)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(P){var z,M,q,J,j,U=0,Y=[],W=new K($);if(P==null?P=u0:m(P,0,d),J=r(P/f),G)if(crypto.getRandomValues){for(z=crypto.getRandomValues(new Uint32Array(J*=2));U>>11),j>=9e15?(M=crypto.getRandomValues(new Uint32Array(2)),z[U]=M[0],z[U+1]=M[1]):(Y.push(j%1e14),U+=2);U=J/2}else if(crypto.randomBytes){for(z=crypto.randomBytes(J*=7);U=9e15?crypto.randomBytes(7).copy(z,U):(Y.push(j%1e14),U+=7);U=J/7}else throw G=!1,Error(a+"crypto unavailable");if(!G)for(;U=10;j/=10,U++);UM-1&&(j[J+1]==null&&(j[J+1]=0),j[J+1]+=j[J]/M|0,j[J]%=M)}return j.reverse()}return function(P,z,M,q,J){var j,U,Y,W,t0,p0,m0,P0,C0=P.indexOf("."),B0=u0,E0=e0;for(C0>=0&&(W=L,L=0,P=P.replace(".",""),P0=new K(z),p0=P0.pow(P.length-C0),L=W,P0.c=S(B(b(p0.c),p0.e,"0"),10,M,k),P0.e=P0.c.length),m0=S(P,z,M,J?(j=s0,k):(j=k,s0)),Y=W=m0.length;m0[--W]==0;m0.pop());if(!m0[0])return j.charAt(0);if(C0<0?--Y:(p0.c=m0,p0.e=Y,p0.s=q,p0=C(p0,P0,B0,E0,M),m0=p0.c,t0=p0.r,Y=p0.e),U=Y+B0+1,C0=m0[U],W=M/2,t0=t0||U<0||m0[U+1]!=null,t0=E0<4?(C0!=null||t0)&&(E0==0||E0==(p0.s<0?3:2)):C0>W||C0==W&&(E0==4||t0||E0==6&&m0[U-1]&1||E0==(p0.s<0?8:7)),U<1||!m0[0])P=t0?B(j.charAt(1),-B0,j.charAt(0)):j.charAt(0);else{if(m0.length=U,t0)for(--M;++m0[--U]>M;)m0[U]=0,U||(++Y,m0=[1].concat(m0));for(W=m0.length;!m0[--W];);for(C0=0,P="";C0<=W;P+=j.charAt(m0[C0++]));P=B(P,Y,j.charAt(0))}return P}}(),C=function(){function k(z,M,q){var J,j,U,Y,W=0,t0=z.length,p0=M%E,m0=M/E|0;for(z=z.slice();t0--;)U=z[t0]%E,Y=z[t0]/E|0,J=m0*U+Y*p0,j=p0*U+J%E*E+W,W=(j/q|0)+(J/E|0)+m0*Y,z[t0]=j%q;return W&&(z=[W].concat(z)),z}function S(z,M,q,J){var j,U;if(q!=J)U=q>J?1:-1;else for(j=U=0;jM[j]?1:-1;break}return U}function P(z,M,q,J){for(var j=0;q--;)z[q]-=j,j=z[q]1;z.splice(0,1));}return function(z,M,q,J,j){var U,Y,W,t0,p0,m0,P0,C0,B0,E0,b0,h0,G0,M0,y0,U0,Eu,Z0=z.s==M.s?1:-1,Ne=z.c,Pu=M.c;if(!Ne||!Ne[0]||!Pu||!Pu[0])return new K(!z.s||!M.s||(Ne?Pu&&Ne[0]==Pu[0]:!Pu)?NaN:Ne&&Ne[0]==0||!Pu?Z0*0:Z0/0);for(C0=new K(Z0),B0=C0.c=[],Y=z.e-M.e,Z0=q+Y+1,j||(j=s,Y=h(z.e/f)-h(M.e/f),Z0=Z0/f|0),W=0;Pu[W]==(Ne[W]||0);W++);if(Pu[W]>(Ne[W]||0)&&Y--,Z0<0)B0.push(1),t0=!0;else{for(M0=Ne.length,U0=Pu.length,W=0,Z0+=2,p0=i(j/(Pu[0]+1)),p0>1&&(Pu=k(Pu,p0,j),Ne=k(Ne,p0,j),U0=Pu.length,M0=Ne.length),G0=U0,E0=Ne.slice(0,U0),b0=E0.length;b0=j/2&&y0++;do{if(p0=0,U=S(Pu,E0,U0,b0),U<0){if(h0=E0[0],U0!=b0&&(h0=h0*j+(E0[1]||0)),p0=i(h0/y0),p0>1)for(p0>=j&&(p0=j-1),m0=k(Pu,p0,j),P0=m0.length,b0=E0.length;S(m0,E0,P0,b0)==1;)p0--,P(m0,U0=10;Z0/=10,W++);T0(C0,q+(C0.e=W+Y*f-1)+1,J,t0)}else C0.e=Y,C0.r=+t0;return C0}}();function v0(k,S,P,z){var M,q,J,j,U;if(P==null?P=e0:m(P,0,8),!k.c)return k.toString();if(M=k.c[0],J=k.e,S==null)U=b(k.c),U=z==1||z==2&&(J<=o0||J>=N)?y(U,J):B(U,J,"0");else if(k=T0(new K(k),S,P),q=k.e,U=b(k.c),j=U.length,z==1||z==2&&(S<=q||q<=o0)){for(;jj){if(--S>0)for(U+=".";S--;U+="0");}else if(S+=q-j,S>0)for(q+1==j&&(U+=".");S--;U+="0");return k.s<0&&M?"-"+U:U}function _0(k,S){for(var P,z,M=1,q=new K(k[0]);M=10;M/=10,z++);return(P=z+P*f-1)>V?k.c=k.e=null:P=10;j/=10,M++);if(q=S-M,q<0)q+=f,J=S,U=t0[Y=0],W=i(U/p0[M-J-1]%10);else if(Y=r((q+1)/f),Y>=t0.length)if(z){for(;t0.length<=Y;t0.push(0));U=W=0,M=1,q%=f,J=q-f+1}else break u;else{for(U=j=t0[Y],M=1;j>=10;j/=10,M++);q%=f,J=q-f+M,W=J<0?0:i(U/p0[M-J-1]%10)}if(z=z||S<0||t0[Y+1]!=null||(J<0?U:U%p0[M-J-1]),z=P<4?(W||z)&&(P==0||P==(k.s<0?3:2)):W>5||W==5&&(P==4||z||P==6&&(q>0?J>0?U/p0[M-J]:0:t0[Y-1])%10&1||P==(k.s<0?8:7)),S<1||!t0[0])return t0.length=0,z?(S-=k.e+1,t0[0]=p0[(f-S%f)%f],k.e=-S||0):t0[0]=k.e=0,k;if(q==0?(t0.length=Y,j=1,Y--):(t0.length=Y+1,j=p0[f-q],t0[Y]=J>0?i(U/p0[M-J]%p0[J])*j:0),z)for(;;)if(Y==0){for(q=1,J=t0[0];J>=10;J/=10,q++);for(J=t0[0]+=j,j=1;J>=10;J/=10,j++);q!=j&&(k.e++,t0[0]==s&&(t0[0]=1));break}else{if(t0[Y]+=j,t0[Y]!=s)break;t0[Y--]=0,j=1}for(q=t0.length;t0[--q]===0;t0.pop());}k.e>V?k.c=k.e=null:k.e=N?y(S,P):B(S,P,"0"),k.s<0?"-"+S:S)}return _.absoluteValue=_.abs=function(){var k=new K(this);return k.s<0&&(k.s=1),k},_.comparedTo=function(k,S){return g(this,new K(k,S))},_.decimalPlaces=_.dp=function(k,S){var P,z,M,q=this;if(k!=null)return m(k,0,d),S==null?S=e0:m(S,0,8),T0(new K(q),k+q.e+1,S);if(!(P=q.c))return null;if(z=((M=P.length-1)-h(this.e/f))*f,M=P[M])for(;M%10==0;M/=10,z--);return z<0&&(z=0),z},_.dividedBy=_.div=function(k,S){return C(this,new K(k,S),u0,e0)},_.dividedToIntegerBy=_.idiv=function(k,S){return C(this,new K(k,S),0,1)},_.exponentiatedBy=_.pow=function(k,S){var P,z,M,q,J,j,U,Y,W,t0=this;if(k=new K(k),k.c&&!k.isInteger())throw Error(a+"Exponent not an integer: "+w0(k));if(S!=null&&(S=new K(S)),j=k.e>14,!t0.c||!t0.c[0]||t0.c[0]==1&&!t0.e&&t0.c.length==1||!k.c||!k.c[0])return W=new K(Math.pow(+w0(t0),j?k.s*(2-A(k)):+w0(k))),S?W.mod(S):W;if(U=k.s<0,S){if(S.c?!S.c[0]:!S.s)return new K(NaN);z=!U&&t0.isInteger()&&S.isInteger(),z&&(t0=t0.mod(S))}else{if(k.e>9&&(t0.e>0||t0.e<-1||(t0.e==0?t0.c[0]>1||j&&t0.c[1]>=24e7:t0.c[0]<8e13||j&&t0.c[0]<=9999975e7)))return q=t0.s<0&&A(k)?-0:0,t0.e>-1&&(q=1/q),new K(U?1/q:q);L&&(q=r(L/f+2))}for(j?(P=new K(.5),U&&(k.s=1),Y=A(k)):(M=Math.abs(+w0(k)),Y=M%2),W=new K($);;){if(Y){if(W=W.times(t0),!W.c)break;q?W.c.length>q&&(W.c.length=q):z&&(W=W.mod(S))}if(M){if(M=i(M/2),M===0)break;Y=M%2}else if(k=k.times(P),T0(k,k.e+1,1),k.e>14)Y=A(k);else{if(M=+w0(k),M===0)break;Y=M%2}t0=t0.times(t0),q?t0.c&&t0.c.length>q&&(t0.c.length=q):z&&(t0=t0.mod(S))}return z?W:(U&&(W=$.div(W)),S?W.mod(S):q?T0(W,L,e0,J):W)},_.integerValue=function(k){var S=new K(this);return k==null?k=e0:m(k,0,8),T0(S,S.e+1,k)},_.isEqualTo=_.eq=function(k,S){return g(this,new K(k,S))===0},_.isFinite=function(){return!!this.c},_.isGreaterThan=_.gt=function(k,S){return g(this,new K(k,S))>0},_.isGreaterThanOrEqualTo=_.gte=function(k,S){return(S=g(this,new K(k,S)))===1||S===0},_.isInteger=function(){return!!this.c&&h(this.e/f)>this.c.length-2},_.isLessThan=_.lt=function(k,S){return g(this,new K(k,S))<0},_.isLessThanOrEqualTo=_.lte=function(k,S){return(S=g(this,new K(k,S)))===-1||S===0},_.isNaN=function(){return!this.s},_.isNegative=function(){return this.s<0},_.isPositive=function(){return this.s>0},_.isZero=function(){return!!this.c&&this.c[0]==0},_.minus=function(k,S){var P,z,M,q,J=this,j=J.s;if(k=new K(k,S),S=k.s,!j||!S)return new K(NaN);if(j!=S)return k.s=-S,J.plus(k);var U=J.e/f,Y=k.e/f,W=J.c,t0=k.c;if(!U||!Y){if(!W||!t0)return W?(k.s=-S,k):new K(t0?J:NaN);if(!W[0]||!t0[0])return t0[0]?(k.s=-S,k):new K(W[0]?J:e0==3?-0:0)}if(U=h(U),Y=h(Y),W=W.slice(),j=U-Y){for((q=j<0)?(j=-j,M=W):(Y=U,M=t0),M.reverse(),S=j;S--;M.push(0));M.reverse()}else for(z=(q=(j=W.length)<(S=t0.length))?j:S,j=S=0;S0)for(;S--;W[P++]=0);for(S=s-1;z>j;){if(W[--z]=0;){for(P=0,p0=h0[M]%B0,m0=h0[M]/B0|0,J=U,q=M+J;q>M;)Y=b0[--J]%B0,W=b0[J]/B0|0,j=m0*Y+W*p0,Y=p0*Y+j%B0*B0+P0[q]+P,P=(Y/C0|0)+(j/B0|0)+m0*W,P0[q--]=Y%C0;P0[q]=P}return P?++z:P0.splice(0,1),O0(k,P0,z)},_.negated=function(){var k=new K(this);return k.s=-k.s||null,k},_.plus=function(k,S){var P,z=this,M=z.s;if(k=new K(k,S),S=k.s,!M||!S)return new K(NaN);if(M!=S)return k.s=-S,z.minus(k);var q=z.e/f,J=k.e/f,j=z.c,U=k.c;if(!q||!J){if(!j||!U)return new K(M/0);if(!j[0]||!U[0])return U[0]?k:new K(j[0]?z:M*0)}if(q=h(q),J=h(J),j=j.slice(),M=q-J){for(M>0?(J=q,P=U):(M=-M,P=j),P.reverse();M--;P.push(0));P.reverse()}for(M=j.length,S=U.length,M-S<0&&(P=U,U=j,j=P,S=M),M=0;S;)M=(j[--S]=j[S]+U[S]+M)/s|0,j[S]=s===j[S]?0:j[S]%s;return M&&(j=[M].concat(j),++J),O0(k,j,J)},_.precision=_.sd=function(k,S){var P,z,M,q=this;if(k!=null&&k!==!!k)return m(k,1,d),S==null?S=e0:m(S,0,8),T0(new K(q),k,S);if(!(P=q.c))return null;if(M=P.length-1,z=M*f+1,M=P[M]){for(;M%10==0;M/=10,z--);for(M=P[0];M>=10;M/=10,z++);}return k&&q.e+1>z&&(z=q.e+1),z},_.shiftedBy=function(k){return m(k,-l,l),this.times("1e"+k)},_.squareRoot=_.sqrt=function(){var k,S,P,z,M,q=this,J=q.c,j=q.s,U=q.e,Y=u0+4,W=new K("0.5");if(j!==1||!J||!J[0])return new K(!j||j<0&&(!J||J[0])?NaN:J?q:1/0);if(j=Math.sqrt(+w0(q)),j==0||j==1/0?(S=b(J),(S.length+U)%2==0&&(S+="0"),j=Math.sqrt(+S),U=h((U+1)/2)-(U<0||U%2),j==1/0?S="5e"+U:(S=j.toExponential(),S=S.slice(0,S.indexOf("e")+1)+U),P=new K(S)):P=new K(j+""),P.c[0]){for(U=P.e,j=U+Y,j<3&&(j=0);;)if(M=P,P=W.times(M.plus(C(q,M,Y,1))),b(M.c).slice(0,j)===(S=b(P.c)).slice(0,j))if(P.e0&&P0>0){for(q=P0%j||j,W=m0.substr(0,q);q0&&(W+=Y+m0.slice(q)),p0&&(W="-"+W)}z=t0?W+(P.decimalSeparator||"")+((U=+P.fractionGroupSize)?t0.replace(new RegExp("\\d{"+U+"}\\B","g"),"$&"+(P.fractionGroupSeparator||"")):t0):W}return(P.prefix||"")+z+(P.suffix||"")},_.toFraction=function(k){var S,P,z,M,q,J,j,U,Y,W,t0,p0,m0=this,P0=m0.c;if(k!=null&&(j=new K(k),!j.isInteger()&&(j.c||j.s!==1)||j.lt($)))throw Error(a+"Argument "+(j.isInteger()?"out of range: ":"not an integer: ")+w0(j));if(!P0)return new K(m0);for(S=new K($),Y=P=new K($),z=U=new K($),p0=b(P0),q=S.e=p0.length-m0.e-1,S.c[0]=c[(J=q%f)<0?f+J:J],k=!k||j.comparedTo(S)>0?q>0?S:Y:j,J=V,V=1/0,j=new K(p0),U.c[0]=0;W=C(j,S,0,1),M=P.plus(W.times(z)),M.comparedTo(k)!=1;)P=z,z=M,Y=U.plus(W.times(M=Y)),U=M,S=j.minus(W.times(M=S)),j=M;return M=C(k.minus(P),z,0,1),U=U.plus(M.times(Y)),P=P.plus(M.times(z)),U.s=Y.s=m0.s,q=q*2,t0=C(Y,z,q,e0).minus(m0).abs().comparedTo(C(U,P,q,e0).minus(m0).abs())<1?[Y,z]:[U,P],V=J,t0},_.toNumber=function(){return+w0(this)},_.toPrecision=function(k,S){return k!=null&&m(k,1,d),v0(this,k,S,2)},_.toString=function(k){var S,P=this,z=P.s,M=P.e;return M===null?z?(S="Infinity",z<0&&(S="-"+S)):S="NaN":(k==null?S=M<=o0||M>=N?y(b(P.c),M):B(b(P.c),M,"0"):k===10&&a0?(P=T0(new K(P),u0+M+1,e0),S=B(b(P.c),P.e,"0")):(m(k,2,s0.length,"Base"),S=D(B(b(P.c),M,"0"),10,k,z,!0)),z<0&&P.c[0]&&(S="-"+S)),S},_.valueOf=_.toJSON=function(){return w0(this)},_._isBigNumber=!0,v!=null&&K.set(v),K}function h(v){var C=v|0;return v>0||v===C?C:C-1}function b(v){for(var C,D,T=1,_=v.length,$=v[0]+"";T<_;){for(C=v[T++]+"",D=f-C.length;D--;C="0"+C);$+=C}for(_=$.length;$.charCodeAt(--_)===48;);return $.slice(0,_+1||1)}function g(v,C){var D,T,_=v.c,$=C.c,u0=v.s,e0=C.s,o0=v.e,N=C.e;if(!u0||!e0)return null;if(D=_&&!_[0],T=$&&!$[0],D||T)return D?T?0:-e0:u0;if(u0!=e0)return u0;if(D=u0<0,T=o0==N,!_||!$)return T?0:!_^D?1:-1;if(!T)return o0>N^D?1:-1;for(e0=(o0=_.length)<(N=$.length)?o0:N,u0=0;u0$[u0]^D?1:-1;return o0==N?0:o0>N^D?1:-1}function m(v,C,D,T){if(vD||v!==i(v))throw Error(a+(T||"Argument")+(typeof v=="number"?vD?" out of range: ":" not an integer: ":" not a primitive number: ")+String(v))}function A(v){var C=v.c.length-1;return h(v.e/f)==C&&v.c[C]%2!=0}function y(v,C){return(v.length>1?v.charAt(0)+"."+v.slice(1):v)+(C<0?"e":"e+")+C}function B(v,C,D){var T,_;if(C<0){for(_=D+".";++C;_+=D);v=_+v}else if(T=v.length,++C>T){for(_=D,C-=T;--C;_+=D);v+=_}else CG10)return t;do e%2&&(t+=u),e=V10(e/2),e&&(u+=u);while(e);return t}var Q10=K10,J10=EI,Y10=bb;function Z10(u){return u!=null&&Y10(u.length)&&!J10(u)}var R5=Z10,X10=k5,u60=R5,e60=P5,t60=Jo;function n60(u,e,t){if(!t60(t))return!1;var n=typeof e;return(n=="number"?u60(t)&&e60(e,t.length):n=="string"&&e in t)?X10(t[e],u):!1}var Db=n60,r60=/\s/;function i60(u){for(var e=u.length;e--&&r60.test(u.charAt(e)););return e}var a60=i60,o60=a60,s60=/^\s+/;function f60(u){return u&&u.slice(0,o60(u)+1).replace(s60,"")}var l60=f60,c60=l60,uF=Jo,E60=r1,eF=NaN,d60=/^[-+]0x[0-9a-f]+$/i,p60=/^0b[01]+$/i,h60=/^0o[0-7]+$/i,C60=parseInt;function m60(u){if(typeof u=="number")return u;if(E60(u))return eF;if(uF(u)){var e=typeof u.valueOf=="function"?u.valueOf():u;u=uF(e)?e+"":e}if(typeof u!="string")return u===0?u:+u;u=c60(u);var t=p60.test(u);return t||h60.test(u)?C60(u.slice(2),t?2:8):d60.test(u)?eF:+u}var g60=m60,b60=g60,tF=1/0,A60=17976931348623157e292;function y60(u){if(!u)return u===0?u:0;if(u=b60(u),u===tF||u===-tF){var e=u<0?-1:1;return e*A60}return u===u?u:0}var GI=y60,v60=GI;function B60(u){var e=v60(u),t=e%1;return e===e?t?e-t:e:0}var F60=B60,D60=Q10,w60=Db,x60=F60,k60=tf;function _60(u,e,t){return(t?w60(u,e,t):e===void 0)?e=1:e=x60(e),D60(k60(u),e)}var S60=_60,Zo={},T60=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.roundNumber=void 0;const P60=T60(af),O60=rf;function I60(u){return u.isZero()?1:Math.floor(Math.log10(u.abs().toNumber())+1)}function N60(u,{precision:e,significant:t}){return t&&e!==null&&e>0?e-I60(u):e}function R60(u,e){const t=N60(u,e);if(t===null)return u.toString();const n=(0,O60.expandRoundMode)(e.roundMode);if(t>=0)return u.toFixed(t,n);const r=Math.pow(10,Math.abs(t));return u=new P60.default(u.div(r).toFixed(0,n)).times(r),u.toString()}Zo.roundNumber=R60;var VI=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(N5,"__esModule",{value:!0});N5.formatNumber=void 0;const nF=VI(af),M60=VI(S60),j60=Zo;function z60(u,{formattedNumber:e,unit:t}){return u.replace("%n",e).replace("%u",t)}function L60({significand:u,whole:e,precision:t}){if(e==="0"||t===null)return u;const n=Math.max(0,t-e.length);return(u??"").substr(0,n)}function $60(u,e){var t,n,r;const i=new nF.default(u);if(e.raise&&!i.isFinite())throw new Error(`"${u}" is not a valid numeric value`);const a=(0,j60.roundNumber)(i,e),o=new nF.default(a),s=o.lt(0),f=o.isZero();let[l,c]=a.split(".");const E=[];let d;const p=(t=e.format)!==null&&t!==void 0?t:"%n",h=(n=e.negativeFormat)!==null&&n!==void 0?n:`-${p}`,b=s&&!f?h:p;for(l=l.replace("-","");l.length>0;)E.unshift(l.substr(Math.max(0,l.length-3),3)),l=l.substr(0,l.length-3);return l=E.join(""),d=E.join(e.delimiter),e.significant?c=L60({whole:l,significand:c,precision:e.precision}):c=c??(0,M60.default)("0",(r=e.precision)!==null&&r!==void 0?r:0),e.stripInsignificantZeros&&c&&(c=c.replace(/0+$/,"")),i.isNaN()&&(d=u.toString()),c&&i.isFinite()&&(d+=(e.separator||".")+c),z60(b,{formattedNumber:d,unit:e.unit})}N5.formatNumber=$60;var of={};Object.defineProperty(of,"__esModule",{value:!0});of.getFullScope=void 0;function U60(u,e,t){let n="";return(e instanceof String||typeof e=="string")&&(n=e),e instanceof Array&&(n=e.join(u.defaultSeparator)),t.scope&&(n=[t.scope,n].join(u.defaultSeparator)),n}of.getFullScope=U60;var sf={};Object.defineProperty(sf,"__esModule",{value:!0});sf.inferType=void 0;function W60(u){var e,t;if(u===null)return"null";const n=typeof u;return n!=="object"?n:((t=(e=u==null?void 0:u.constructor)===null||e===void 0?void 0:e.name)===null||t===void 0?void 0:t.toLowerCase())||"object"}sf.inferType=W60;var M5={};Object.defineProperty(M5,"__esModule",{value:!0});M5.interpolate=void 0;const q60=Aa;function H60(u,e,t){t=Object.keys(t).reduce((r,i)=>(r[u.transformKey(i)]=t[i],r),{});const n=e.match(u.placeholder);if(!n)return e;for(;n.length;){let r;const i=n.shift(),a=i.replace(u.placeholder,"$1");(0,q60.isSet)(t[a])?r=t[a].toString().replace(/\$/gm,"_#$#_"):a in t?r=u.nullPlaceholder(u,i,e,t):r=u.missingPlaceholder(u,i,e,t);const o=new RegExp(i.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));e=e.replace(o,r)}return e.replace(/_#\$#_/g,"$")}M5.interpolate=H60;var ff={},G60=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ff,"__esModule",{value:!0});ff.lookup=void 0;const V60=G60(mb),K60=Aa,Q60=of,J60=sf;function Y60(u,e,t={}){t=Object.assign({},t);const n="locale"in t?t.locale:u.locale,r=(0,J60.inferType)(n),i=u.locales.get(r==="string"?n:typeof n).slice();e=(0,Q60.getFullScope)(u,e,t).split(u.defaultSeparator).map(o=>u.transformKey(o)).join(".");const a=i.map(o=>(0,V60.default)(u.translations,[o,e].join(".")));return a.push(t.defaultValue),a.find(o=>(0,K60.isSet)(o))}ff.lookup=Y60;var j5={},Z60=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(j5,"__esModule",{value:!0});j5.numberToDelimited=void 0;const X60=Z60(af);function u20(u,e){const t=new X60.default(u);if(!t.isFinite())return u.toString();if(!e.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${e.delimiterPattern}`);let[n,r]=t.toString().split(".");return n=n.replace(e.delimiterPattern,i=>`${i}${e.delimiter}`),[n,r].filter(Boolean).join(e.separator)}j5.numberToDelimited=u20;var z5={};function e20(u,e){for(var t=-1,n=e.length,r=u.length;++t0&&t(o)?e>1?QI(o,e-1,t,n,r):a20(r,o):n||(r[r.length]=o)}return r}var JI=QI,s20=S5;function f20(){this.__data__=new s20,this.size=0}var l20=f20;function c20(u){var e=this.__data__,t=e.delete(u);return this.size=e.size,t}var E20=c20;function d20(u){return this.__data__.get(u)}var p20=d20;function h20(u){return this.__data__.has(u)}var C20=h20,m20=S5,g20=Eb,b20=db,A20=200;function y20(u,e){var t=this.__data__;if(t instanceof m20){var n=t.__data__;if(!g20||n.lengtho))return!1;var f=i.get(u),l=i.get(e);if(f&&l)return f==e&&l==u;var c=-1,E=!0,d=t&N20?new T20:void 0;for(i.set(u,e),i.set(e,u);++ce||i&&a&&s&&!o&&!f||n&&a&&s||!t&&s||!r)return 1;if(!n&&!i&&!f&&u=o)return s;var f=t[n];return s*(f=="desc"?-1:1)}}return u.index-e.index}var Wd0=Ud0,Gp=hI,qd0=Cb,Hd0=Cd0,Gd0=Rd0,Vd0=jd0,Kd0=uN,Qd0=Wd0,Jd0=L5,Yd0=pr;function Zd0(u,e,t){e.length?e=Gp(e,function(i){return Yd0(i)?function(a){return qd0(a,i.length===1?i[0]:i)}:i}):e=[Jd0];var n=-1;e=Gp(e,Kd0(Hd0));var r=Gd0(u,function(i,a,o){var s=Gp(e,function(f){return f(i)});return{criteria:s,index:++n,value:i}});return Vd0(r,function(i,a){return Qd0(i,a,t)})}var Xd0=Zd0;function up0(u,e,t){switch(t.length){case 0:return u.call(e);case 1:return u.call(e,t[0]);case 2:return u.call(e,t[0],t[1]);case 3:return u.call(e,t[0],t[1],t[2])}return u.apply(e,t)}var ep0=up0,tp0=ep0,wF=Math.max;function np0(u,e,t){return e=wF(e===void 0?u.length-1:e,0),function(){for(var n=arguments,r=-1,i=wF(n.length-e,0),a=Array(i);++r0){if(++e>=cp0)return arguments[0]}else e=0;return u.apply(void 0,arguments)}}var hp0=pp0,Cp0=lp0,mp0=hp0,gp0=mp0(Cp0),bp0=gp0,Ap0=L5,yp0=rp0,vp0=bp0;function Bp0(u,e){return vp0(yp0(u,e,Ap0),u+"")}var Fp0=Bp0,Dp0=JI,wp0=Xd0,xp0=Fp0,kF=Db,kp0=xp0(function(u,e){if(u==null)return[];var t=e.length;return t>1&&kF(u,e[0],e[1])?e=[]:t>2&&kF(e[0],e[1],e[2])&&(e=[e[0]]),wp0(u,Dp0(e,1),[])}),_p0=kp0;function Sp0(u,e,t){for(var n=-1,r=u.length,i=e.length,a={};++nparseInt(u,10)));function Up0(u,e,t){const n={roundMode:t.roundMode,precision:t.precision,significant:t.significant};let r;if((0,Lp0.inferType)(t.units)==="string"){const c=t.units;if(r=(0,zp0.lookup)(u,c),!r)throw new Error(`The scope "${u.locale}${u.defaultSeparator}${(0,jp0.getFullScope)(u,c,{})}" couldn't be found`)}else r=t.units;let i=(0,_F.roundNumber)(new Vp.default(e),n);const a=c=>(0,Rp0.default)(Object.keys(c).map(E=>$p0[E]),E=>E*-1),o=(c,E)=>{const d=c.isZero()?0:Math.floor(Math.log10(c.abs().toNumber()));return a(E).find(p=>d>=p)||0},s=(c,E)=>{const d=yC[E.toString()];return c[d]||""},f=o(new Vp.default(i),r),l=s(r,f);if(i=(0,_F.roundNumber)(new Vp.default(i).div(Math.pow(10,f)),n),t.stripInsignificantZeros){let[c,E]=i.split(".");E=(E||"").replace(/0+$/,""),i=c,E&&(i+=`${t.separator}${E}`)}return t.format.replace("%n",i||"0").replace("%u",l).trim()}z5.numberToHuman=Up0;var $5={},Wp0=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty($5,"__esModule",{value:!0});$5.numberToHumanSize=void 0;const a6=Wp0(af),qp0=Zo,Hp0=rf,SF=["byte","kb","mb","gb","tb","pb","eb"];function Gp0(u,e,t){const n=(0,Hp0.expandRoundMode)(t.roundMode),r=1024,i=new a6.default(e).abs(),a=i.lt(r);let o;const s=(p,h)=>{const b=h.length-1,g=new a6.default(Math.log(p.toNumber())).div(Math.log(r)).integerValue(a6.default.ROUND_DOWN).toNumber();return Math.min(b,g)},f=p=>`number.human.storage_units.units.${a?"byte":p[l]}`,l=s(i,SF);a?o=i.integerValue():o=new a6.default((0,qp0.roundNumber)(i.div(Math.pow(r,l)),{significant:t.significant,precision:t.precision,roundMode:t.roundMode}));const c=u.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),E=u.translate(f(SF),{count:i.integerValue().toNumber()});let d=o.toFixed(t.precision,n);return t.stripInsignificantZeros&&(d=d.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),c.replace("%n",d).replace("%u",E)}$5.numberToHumanSize=Gp0;var a1={};Object.defineProperty(a1,"__esModule",{value:!0});a1.parseDate=void 0;function Vp0(u){if(u instanceof Date)return u;if(typeof u=="number"){const n=new Date;return n.setTime(u),n}const e=new String(u).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(e){const n=e.slice(1,8).map(E=>parseInt(E,10)||0);n[1]-=1;const[r,i,a,o,s,f,l]=n;return e[8]?new Date(Date.UTC(r,i,a,o,s,f,l)):new Date(r,i,a,o,s,f,l)}u.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)&&new Date().setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")));const t=new Date;return t.setTime(Date.parse(u)),t}a1.parseDate=Vp0;var U5={};Object.defineProperty(U5,"__esModule",{value:!0});U5.pluralize=void 0;const TF=Aa,Kp0=ff;function Qp0({i18n:u,count:e,scope:t,options:n,baseScope:r}){n=Object.assign({},n);let i,a;if(typeof t=="object"&&t?i=t:i=(0,Kp0.lookup)(u,t,n),!i)return u.missingTranslation.get(t,n);const s=u.pluralization.get(n.locale)(u,e),f=[];for(;s.length;){const l=s.shift();if((0,TF.isSet)(i[l])){a=i[l];break}f.push(l)}return(0,TF.isSet)(a)?(n.count=e,u.interpolate(u,a,n)):u.missingTranslation.get(r.split(u.defaultSeparator).concat([f[0]]),n)}U5.pluralize=Qp0;var W5={},Jp0=JI,Yp0=1/0;function Zp0(u){var e=u==null?0:u.length;return e?Jp0(u,Yp0):[]}var Xp0=Zp0,oN=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(W5,"__esModule",{value:!0});W5.propertyFlatList=void 0;const u80=oN(Jo),e80=oN(Xp0);class t80{constructor(e){this.target=e}call(){const e=(0,e80.default)(Object.keys(this.target).map(t=>this.compute(this.target[t],t)));return e.sort(),e}compute(e,t){return!Array.isArray(e)&&(0,u80.default)(e)?Object.keys(e).map(n=>this.compute(e[n],`${t}.${n}`)):t}}function n80(u){return new t80(u).call()}W5.propertyFlatList=n80;var q5={};Object.defineProperty(q5,"__esModule",{value:!0});q5.strftime=void 0;const r80={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};function i80(u,e,t={}){const{abbrDayNames:n,dayNames:r,abbrMonthNames:i,monthNames:a,meridian:o}=Object.assign(Object.assign({},r80),t);if(isNaN(u.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const s=u.getDay(),f=u.getDate(),l=u.getFullYear(),c=u.getMonth()+1,E=u.getHours();let d=E;const p=E>11?"pm":"am",h=u.getSeconds(),b=u.getMinutes(),g=u.getTimezoneOffset(),m=Math.floor(Math.abs(g/60)),A=Math.abs(g)-m*60,y=(g>0?"-":"+")+(m.toString().length<2?"0"+m:m)+(A.toString().length<2?"0"+A:A);return d>12?d=d-12:d===0&&(d=12),e=e.replace("%a",n[s]),e=e.replace("%A",r[s]),e=e.replace("%b",i[c]),e=e.replace("%B",a[c]),e=e.replace("%d",f.toString().padStart(2,"0")),e=e.replace("%e",f.toString()),e=e.replace("%-d",f.toString()),e=e.replace("%H",E.toString().padStart(2,"0")),e=e.replace("%-H",E.toString()),e=e.replace("%k",E.toString()),e=e.replace("%I",d.toString().padStart(2,"0")),e=e.replace("%-I",d.toString()),e=e.replace("%l",d.toString()),e=e.replace("%m",c.toString().padStart(2,"0")),e=e.replace("%-m",c.toString()),e=e.replace("%M",b.toString().padStart(2,"0")),e=e.replace("%-M",b.toString()),e=e.replace("%p",o[p]),e=e.replace("%P",o[p].toLowerCase()),e=e.replace("%S",h.toString().padStart(2,"0")),e=e.replace("%-S",h.toString()),e=e.replace("%w",s.toString()),e=e.replace("%y",l.toString().padStart(2,"0").substr(-2)),e=e.replace("%-y",l.toString().padStart(2,"0").substr(-2).replace(/^0+/,"")),e=e.replace("%Y",l.toString()),e=e.replace(/%z/i,y),e}q5.strftime=i80;var H5={},a80=Math.ceil,o80=Math.max;function s80(u,e,t,n){for(var r=-1,i=o80(a80((e-u)/(t||1)),0),a=Array(i);i--;)a[n?i:++r]=u,u+=t;return a}var f80=s80,l80=f80,c80=Db,Kp=GI;function E80(u){return function(e,t,n){return n&&typeof n!="number"&&c80(e,t,n)&&(t=n=void 0),e=Kp(e),t===void 0?(t=e,e=0):t=Kp(t),n=n===void 0?et>=u&&t<=e;function b80(u,e,t,n={}){const r=n.scope||"datetime.distance_in_words",i=(C,D=0)=>u.t(C,{count:D,scope:r});e=(0,PF.parseDate)(e),t=(0,PF.parseDate)(t);let a=e.getTime()/1e3,o=t.getTime()/1e3;a>o&&([e,t,a,o]=[t,e,o,a]);const s=Math.round(o-a),f=Math.round((o-a)/60),c=f/60/24,E=Math.round(f/60),d=Math.round(c),p=Math.round(d/30);if(yt(0,1,f))return n.includeSeconds?yt(0,4,s)?i("less_than_x_seconds",5):yt(5,9,s)?i("less_than_x_seconds",10):yt(10,19,s)?i("less_than_x_seconds",20):yt(20,39,s)?i("half_a_minute"):yt(40,59,s)?i("less_than_x_minutes",1):i("x_minutes",1):f===0?i("less_than_x_minutes",1):i("x_minutes",f);if(yt(2,44,f))return i("x_minutes",f);if(yt(45,89,f))return i("about_x_hours",1);if(yt(90,1439,f))return i("about_x_hours",E);if(yt(1440,2519,f))return i("x_days",1);if(yt(2520,43199,f))return i("x_days",d);if(yt(43200,86399,f))return i("about_x_months",Math.round(f/43200));if(yt(86400,525599,f))return i("x_months",p);let h=e.getFullYear();e.getMonth()+1>=3&&(h+=1);let b=t.getFullYear();t.getMonth()+1<3&&(b-=1);const g=h>b?0:(0,g80.default)(h,b).filter(C=>new Date(C,1,29).getMonth()==1).length,m=525600,A=g*1440,y=f-A,B=Math.trunc(y/m),v=parseFloat((y/m-B).toPrecision(3));return v<.25?i("about_x_years",B):v<.75?i("over_x_years",B):i("almost_x_years",B+1)}H5.timeAgoInWords=b80;(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.timeAgoInWords=u.strftime=u.roundNumber=u.propertyFlatList=u.pluralize=u.parseDate=u.numberToHumanSize=u.numberToHuman=u.numberToDelimited=u.lookup=u.isSet=u.interpolate=u.inferType=u.getFullScope=u.formatNumber=u.expandRoundMode=u.createTranslationOptions=u.camelCaseKeys=void 0;var e=O5;Object.defineProperty(u,"camelCaseKeys",{enumerable:!0,get:function(){return e.camelCaseKeys}});var t=I5;Object.defineProperty(u,"createTranslationOptions",{enumerable:!0,get:function(){return t.createTranslationOptions}});var n=rf;Object.defineProperty(u,"expandRoundMode",{enumerable:!0,get:function(){return n.expandRoundMode}});var r=N5;Object.defineProperty(u,"formatNumber",{enumerable:!0,get:function(){return r.formatNumber}});var i=of;Object.defineProperty(u,"getFullScope",{enumerable:!0,get:function(){return i.getFullScope}});var a=sf;Object.defineProperty(u,"inferType",{enumerable:!0,get:function(){return a.inferType}});var o=M5;Object.defineProperty(u,"interpolate",{enumerable:!0,get:function(){return o.interpolate}});var s=Aa;Object.defineProperty(u,"isSet",{enumerable:!0,get:function(){return s.isSet}});var f=ff;Object.defineProperty(u,"lookup",{enumerable:!0,get:function(){return f.lookup}});var l=j5;Object.defineProperty(u,"numberToDelimited",{enumerable:!0,get:function(){return l.numberToDelimited}});var c=z5;Object.defineProperty(u,"numberToHuman",{enumerable:!0,get:function(){return c.numberToHuman}});var E=$5;Object.defineProperty(u,"numberToHumanSize",{enumerable:!0,get:function(){return E.numberToHumanSize}});var d=a1;Object.defineProperty(u,"parseDate",{enumerable:!0,get:function(){return d.parseDate}});var p=U5;Object.defineProperty(u,"pluralize",{enumerable:!0,get:function(){return p.pluralize}});var h=W5;Object.defineProperty(u,"propertyFlatList",{enumerable:!0,get:function(){return h.propertyFlatList}});var b=Zo;Object.defineProperty(u,"roundNumber",{enumerable:!0,get:function(){return b.roundNumber}});var g=q5;Object.defineProperty(u,"strftime",{enumerable:!0,get:function(){return g.strftime}});var m=H5;Object.defineProperty(u,"timeAgoInWords",{enumerable:!0,get:function(){return m.timeAgoInWords}})})(Fb);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.MissingTranslation=u.errorStrategy=u.messageStrategy=u.guessStrategy=void 0;const e=Fb,t=function(a,o){o instanceof Array&&(o=o.join(a.defaultSeparator));const s=o.split(a.defaultSeparator).slice(-1)[0];return a.missingTranslationPrefix+s.replace("_"," ").replace(/([a-z])([A-Z])/g,(f,l,c)=>`${l} ${c.toLowerCase()}`)};u.guessStrategy=t;const n=(a,o,s)=>{const f=(0,e.getFullScope)(a,o,s),l="locale"in s?s.locale:a.locale,c=(0,e.inferType)(l);return`[missing "${[c=="string"?l:c,f].join(a.defaultSeparator)}" translation]`};u.messageStrategy=n;const r=(a,o,s)=>{const f=(0,e.getFullScope)(a,o,s),l=[a.locale,f].join(a.defaultSeparator);throw new Error(`Missing translation: ${l}`)};u.errorStrategy=r;class i{constructor(o){this.i18n=o,this.registry={},this.register("guess",u.guessStrategy),this.register("message",u.messageStrategy),this.register("error",u.errorStrategy)}register(o,s){this.registry[o]=s}get(o,s){var f;return this.registry[(f=s.missingBehavior)!==null&&f!==void 0?f:this.i18n.missingBehavior](this.i18n,o,s)}}u.MissingTranslation=i})(Bb);var A80=x0&&x0.__awaiter||function(u,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(l){try{f(n.next(l))}catch(c){a(c)}}function s(l){try{f(n.throw(l))}catch(c){a(c)}}function f(l){l.done?i(l.value):r(l.value).then(o,s)}f((n=n.apply(u,e||[])).next())})},G5=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(w5,"__esModule",{value:!0});w5.I18n=void 0;const OF=G5(mb),y80=G5(Co0),v80=G5(Oo0),B80=G5(Ro0),F80=Ab,D80=vb,w80=Bb,z0=Fb,Qp={defaultLocale:"en",availableLocales:["en"],locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(u,e)=>`[missing "${e}" value]`,nullPlaceholder:(u,e,t,n)=>u.missingPlaceholder(u,e,t,n),transformKey:u=>u};class x80{constructor(e={},t={}){this._locale=Qp.locale,this._defaultLocale=Qp.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.availableLocales=[],this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:n,enableFallback:r,missingBehavior:i,missingTranslationPrefix:a,missingPlaceholder:o,nullPlaceholder:s,defaultLocale:f,defaultSeparator:l,placeholder:c,transformKey:E}=Object.assign(Object.assign({},Qp),t);this.locale=n,this.defaultLocale=f,this.defaultSeparator=l,this.enableFallback=r,this.locale=n,this.missingBehavior=i,this.missingTranslationPrefix=a,this.missingPlaceholder=o,this.nullPlaceholder=s,this.placeholder=c,this.pluralization=new D80.Pluralization(this),this.locales=new F80.Locales(this),this.missingTranslation=new w80.MissingTranslation(this),this.transformKey=E,this.interpolate=z0.interpolate,this.store(e)}store(e){(0,z0.propertyFlatList)(e).forEach(n=>(0,B80.default)(this.translations,n,(0,OF.default)(e,n),Object)),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if(typeof e!="string")throw new Error(`Expected newLocale to be a string; got ${(0,z0.inferType)(e)}`);const t=this._locale!==e;this._locale=e,t&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if(typeof e!="string")throw new Error(`Expected newLocale to be a string; got ${(0,z0.inferType)(e)}`);const t=this._defaultLocale!==e;this._defaultLocale=e,t&&this.hasChanged()}translate(e,t){t=Object.assign({},t);const n=(0,z0.createTranslationOptions)(this,e,t);let r;return n.some(a=>((0,z0.isSet)(a.scope)?r=(0,z0.lookup)(this,a.scope,t):(0,z0.isSet)(a.message)&&(r=a.message),r!=null))?(typeof r=="string"?r=this.interpolate(this,r,t):typeof r=="object"&&r&&(0,z0.isSet)(t.count)&&(r=(0,z0.pluralize)({i18n:this,count:t.count||0,scope:r,options:t,baseScope:(0,z0.getFullScope)(this,e,t)})),t&&r instanceof Array&&(r=r.map(a=>typeof a=="string"?(0,z0.interpolate)(this,a,t):a)),r):this.missingTranslation.get(e,t)}pluralize(e,t,n){return(0,z0.pluralize)({i18n:this,count:e,scope:t,options:Object.assign({},n),baseScope:(0,z0.getFullScope)(this,t,n??{})})}localize(e,t,n){if(n=Object.assign({},n),t==null)return"";switch(e){case"currency":return this.numberToCurrency(t);case"number":return(0,z0.formatNumber)(t,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},(0,z0.lookup)(this,"number.format")));case"percentage":return this.numberToPercentage(t);default:{let r;return e.match(/^(date|time)/)?r=this.toTime(e,t):r=t.toString(),(0,z0.interpolate)(this,r,n)}}}toTime(e,t){const n=(0,z0.parseDate)(t),r=(0,z0.lookup)(this,e);return n.toString().match(/invalid/i)||!r?n.toString():this.strftime(n,r)}numberToCurrency(e,t={}){return(0,z0.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},(0,z0.camelCaseKeys)(this.get("number.format"))),(0,z0.camelCaseKeys)(this.get("number.currency.format"))),t))}numberToPercentage(e,t={}){return(0,z0.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},(0,z0.camelCaseKeys)(this.get("number.format"))),(0,z0.camelCaseKeys)(this.get("number.percentage.format"))),t))}numberToHumanSize(e,t={}){return(0,z0.numberToHumanSize)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,z0.camelCaseKeys)(this.get("number.human.format"))),(0,z0.camelCaseKeys)(this.get("number.human.storage_units"))),t))}numberToHuman(e,t={}){return(0,z0.numberToHuman)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,z0.camelCaseKeys)(this.get("number.human.format"))),(0,z0.camelCaseKeys)(this.get("number.human.decimal_units"))),t))}numberToRounded(e,t){return(0,z0.formatNumber)(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},t))}numberToDelimited(e,t={}){return(0,z0.numberToDelimited)(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},t))}withLocale(e,t){return A80(this,void 0,void 0,function*(){const n=this.locale;try{this.locale=e,yield t()}finally{this.locale=n}})}strftime(e,t,n={}){return(0,z0.strftime)(e,t,Object.assign(Object.assign(Object.assign({},(0,z0.camelCaseKeys)((0,z0.lookup)(this,"date"))),{meridian:{am:(0,z0.lookup)(this,"time.am")||"AM",pm:(0,z0.lookup)(this,"time.pm")||"PM"}}),n))}update(e,t,n={strict:!1}){if(n.strict&&!(0,y80.default)(this.translations,e))throw new Error(`The path "${e}" is not currently defined`);const r=(0,OF.default)(this.translations,e),i=(0,z0.inferType)(r),a=(0,z0.inferType)(t);if(n.strict&&i!==a)throw new Error(`The current type for "${e}" is "${i}", but you're trying to override it with "${a}"`);let o;a==="object"?o=Object.assign(Object.assign({},r),t):o=t,(0,v80.default)(this.translations,e,o),this.hasChanged()}toSentence(e,t={}){const{wordsConnector:n,twoWordsConnector:r,lastWordConnector:i}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},(0,z0.camelCaseKeys)((0,z0.lookup)(this,"support.array"))),t),a=e.length;switch(a){case 0:return"";case 1:return`${e[0]}`;case 2:return e.join(r);default:return[e.slice(0,a-1).join(n),i,e[a-1]].join("")}}timeAgoInWords(e,t,n={}){return(0,z0.timeAgoInWords)(this,e,t,n)}onChange(e){return this.onChangeHandlers.push(e),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}}get version(){return this._version}formatNumber(e,t){return(0,z0.formatNumber)(e,t)}get(e){return(0,z0.lookup)(this,e)}runCallbacks(){this.onChangeHandlers.forEach(e=>e(this))}hasChanged(){this._version+=1,this.runCallbacks()}}w5.I18n=x80;var sN={};Object.defineProperty(sN,"__esModule",{value:!0});(function(u){var e=x0&&x0.__createBinding||(Object.create?function(o,s,f,l){l===void 0&&(l=f);var c=Object.getOwnPropertyDescriptor(s,f);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(o,l,c)}:function(o,s,f,l){l===void 0&&(l=f),o[l]=s[f]}),t=x0&&x0.__exportStar||function(o,s){for(var f in o)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&e(s,o,f)};Object.defineProperty(u,"__esModule",{value:!0}),u.useMakePlural=u.Pluralization=u.MissingTranslation=u.Locales=u.I18n=void 0;var n=w5;Object.defineProperty(u,"I18n",{enumerable:!0,get:function(){return n.I18n}});var r=Ab;Object.defineProperty(u,"Locales",{enumerable:!0,get:function(){return r.Locales}});var i=Bb;Object.defineProperty(u,"MissingTranslation",{enumerable:!0,get:function(){return i.MissingTranslation}});var a=vb;Object.defineProperty(u,"Pluralization",{enumerable:!0,get:function(){return a.Pluralization}}),Object.defineProperty(u,"useMakePlural",{enumerable:!0,get:function(){return a.useMakePlural}}),t(sN,u)})(fI);var wi=function(){return wi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u")return G80;var e=V80(u),t=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-t+e[2]-e[0])}},Q80=cN(),J80=function(u,e,t,n){var r=u.left,i=u.top,a=u.right,o=u.gap;return t===void 0&&(t="margin"),` - .`.concat(S80,` { + */var vE=w,Rt0=Km;function Mt0(u,e){return u===e&&(u!==0||1/u===1/e)||u!==u&&e!==e}var jt0=typeof Object.is=="function"?Object.is:Mt0,zt0=Rt0.useSyncExternalStore,Lt0=vE.useRef,$t0=vE.useEffect,Ut0=vE.useMemo,Wt0=vE.useDebugValue;aI.useSyncExternalStoreWithSelector=function(u,e,t,n,r){var i=Lt0(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Ut0(function(){function s(d){if(!f){if(f=!0,l=d,d=n(d),r!==void 0&&a.hasValue){var p=a.value;if(r(p,d))return c=p}return c=d}if(p=c,jt0(l,d))return p;var h=n(d);return r!==void 0&&r(p,h)?p:(l=d,c=h)}var f=!1,l,c,E=t===void 0?null:t;return[function(){return s(e())},E===null?void 0:function(){return s(E())}]},[e,t,n,r]);var o=zt0(u,i[0],i[1]);return $t0(function(){a.hasValue=!0,a.value=o},[o]),Wt0(o),o};iI.exports=aI;var sg=iI.exports;function qt0({queryClient:u=new XK({defaultOptions:{queries:{cacheTime:1e3*60*60*24,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:e=uI({storage:typeof window<"u"&&window.localStorage?window.localStorage:XO}),persister:t=typeof window<"u"?jK({key:"cache",storage:e,serialize:r=>r,deserialize:r=>r}):void 0,...n}){const r=Ct0({...n,storage:e});return t&&TQ({queryClient:u,persister:t,dehydrateOptions:{shouldDehydrateQuery:i=>i.cacheTime!==0&&i.queryKey[0].persist!==!1}}),Object.assign(r,{queryClient:u})}var oI=w.createContext(void 0),BE=w.createContext(void 0);function Ht0({children:u,config:e}){return w.createElement(oI.Provider,{children:w.createElement(AQ,{children:u,client:e.queryClient,context:BE}),value:e})}function FE(){const u=w.useContext(oI);if(!u)throw new Error(["`useConfig` must be used within `WagmiConfig`.\n","Read more: https://wagmi.sh/react/WagmiConfig"].join(` +`));return u}var Gt0=Km.useSyncExternalStore;function Vt0(u){return Array.isArray(u)}function Kt0(u){if(!NB(u))return!1;const e=u.constructor;if(typeof e>"u")return!0;const t=e.prototype;return!(!NB(t)||!t.hasOwnProperty("isPrototypeOf"))}function NB(u){return Object.prototype.toString.call(u)==="[object Object]"}function Qt0(u,e,t){return Vt0(u)?typeof e=="function"?{...t,queryKey:u,queryFn:e}:{...e,queryKey:u}:u}function Jt0(u){return JSON.stringify(u,(e,t)=>Kt0(t)?Object.keys(t).sort().reduce((n,r)=>(n[r]=t[r],n),{}):typeof t=="bigint"?t.toString():t)}function Yt0(u,e){return typeof u=="function"?u(...e):!!u}function Zt0(u,e){const t={};return Object.keys(u).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(e.trackedProps.add(n),u[n])})}),t}function Xt0(u,e){const t=Qm({context:u.context}),n=yQ(),r=FQ(),i=t.defaultQueryOptions({...u,queryKeyHashFn:Jt0});i._optimisticResults=n?"isRestoring":"optimistic",i.onError&&(i.onError=ju.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ju.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ju.batchCalls(i.onSettled)),i.suspense&&typeof i.staleTime!="number"&&(i.staleTime=1e3),(i.suspense||i.useErrorBoundary)&&(r.isReset()||(i.retryOnMount=!1));const[a]=w.useState(()=>new e(t,i)),o=a.getOptimisticResult(i);if(Gt0(w.useCallback(c=>n?()=>{}:a.subscribe(ju.batchCalls(c)),[a,n]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),w.useEffect(()=>{r.clearReset()},[r]),w.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),i.suspense&&o.isLoading&&o.isFetching&&!n)throw a.fetchOptimistic(i).then(({data:c})=>{var E,d;(E=i.onSuccess)==null||E.call(i,c),(d=i.onSettled)==null||d.call(i,c,null)}).catch(c=>{var E,d;r.clearReset(),(E=i.onError)==null||E.call(i,c),(d=i.onSettled)==null||d.call(i,void 0,c)});if(o.isError&&!r.isReset()&&!o.isFetching&&Yt0(i.useErrorBoundary,[o.error,a.getCurrentQuery()]))throw o.error;const s=o.status==="loading"&&o.fetchStatus==="idle"?"idle":o.status,f=s==="idle",l=s==="loading"&&o.fetchStatus==="fetching";return{...o,defaultedOptions:i,isIdle:f,isLoading:l,observer:a,status:s}}function uc(u,e,t){const n=XS(u,e,t);return wQ({context:BE,...n})}function Qo(u,e,t){const n=Qt0(u,e,t),r=Xt0({context:BE,...n},uQ),i={data:r.data,error:r.error,fetchStatus:r.fetchStatus,isError:r.isError,isFetched:r.isFetched,isFetchedAfterMount:r.isFetchedAfterMount,isFetching:r.isFetching,isIdle:r.isIdle,isLoading:r.isLoading,isRefetching:r.isRefetching,isSuccess:r.isSuccess,refetch:r.refetch,status:r.status,internal:{dataUpdatedAt:r.dataUpdatedAt,errorUpdatedAt:r.errorUpdatedAt,failureCount:r.failureCount,isFetchedAfterMount:r.isFetchedAfterMount,isLoadingError:r.isLoadingError,isPaused:r.isPaused,isPlaceholderData:r.isPlaceholderData,isPreviousData:r.isPreviousData,isRefetchError:r.isRefetchError,isStale:r.isStale,remove:r.remove}};return r.defaultedOptions.notifyOnChangeProps?i:Zt0(i,r.observer)}var fg=()=>Qm({context:BE});function DE({chainId:u}={}){return sg.useSyncExternalStoreWithSelector(e=>yt0({chainId:u},e),()=>dn({chainId:u}),()=>dn({chainId:u}),e=>e,(e,t)=>e.uid===t.uid)}function L8({chainId:u}){return[{entity:"walletClient",chainId:u,persist:!1}]}function un0({queryKey:[{chainId:u}]}){return X1({chainId:u})}function en0({chainId:u,suspense:e,onError:t,onSettled:n,onSuccess:r}={}){const{connector:i}=At(),a=e3({chainId:u}),o=Qo(L8({chainId:a}),un0,{cacheTime:0,enabled:!!i,staleTime:1/0,suspense:e,onError:t,onSettled:n,onSuccess:r}),s=fg();return w.useEffect(()=>vt0({chainId:a},l=>{l?s.invalidateQueries(L8({chainId:a})):s.removeQueries(L8({chainId:a}))}),[s,a]),o}function tn0({chainId:u}={}){return sg.useSyncExternalStoreWithSelector(e=>Bt0({chainId:u},e),()=>dC({chainId:u}),()=>dC({chainId:u}),e=>e,(e,t)=>(e==null?void 0:e.uid)===(t==null?void 0:t.uid))}function e3({chainId:u}={}){return DE({chainId:u}).chain.id}function nn0(){const[,u]=w.useReducer(e=>e+1,0);return u}function RB({chainId:u,scopeKey:e}){return[{entity:"blockNumber",chainId:u,scopeKey:e}]}function rn0({queryKey:[{chainId:u}]}){return It0({chainId:u})}function in0({cacheTime:u=0,chainId:e,enabled:t=!0,scopeKey:n,staleTime:r,suspense:i,watch:a=!1,onBlock:o,onError:s,onSettled:f,onSuccess:l}={}){const c=e3({chainId:e}),E=DE({chainId:c}),d=tn0({chainId:c}),p=fg();return w.useEffect(()=>!t||!a&&!o?void 0:(d??E).watchBlockNumber({onBlockNumber:b=>{a&&p.setQueryData(RB({chainId:c,scopeKey:n}),b),o&&o(b)},emitOnBegin:!0}),[c,n,o,E,p,a,d,t]),Qo(RB({scopeKey:n,chainId:c}),rn0,{cacheTime:u,enabled:t,staleTime:r,suspense:i,onError:s,onSettled:f,onSuccess:l})}function an0({chainId:u,enabled:e,queryKey:t}){const n=fg(),r=w.useCallback(()=>n.invalidateQueries({queryKey:t},{cancelRefetch:!1}),[n,t]);in0({chainId:u,enabled:e,onBlock:e?r:void 0,scopeKey:e?void 0:"idle"})}var $8=u=>typeof u=="object"&&!Array.isArray(u);function sI(u,e,t=e,n=fC){const r=w.useRef([]),i=sg.useSyncExternalStoreWithSelector(u,e,t,a=>a,(a,o)=>{if($8(a)&&$8(o)&&r.current.length){for(const s of r.current)if(!n(a[s],o[s]))return!1;return!0}return n(a,o)});if($8(i)){const a={...i};return Object.defineProperties(a,Object.entries(a).reduce((o,[s,f])=>({...o,[s]:{configurable:!1,enumerable:!0,get:()=>(r.current.includes(s)||r.current.push(s),f)}}),{})),a}return i}function At({onConnect:u,onDisconnect:e}={}){const t=FE(),n=w.useCallback(o=>St0(o),[t]),r=sI(n,nI),i=w.useRef(),a=i.current;return w.useEffect(()=>{(a==null?void 0:a.status)!=="connected"&&r.status==="connected"&&(u==null||u({address:r.address,connector:r.connector,isReconnected:(a==null?void 0:a.status)==="reconnecting"||(a==null?void 0:a.status)===void 0})),(a==null?void 0:a.status)==="connected"&&r.status==="disconnected"&&(e==null||e()),i.current=r},[u,e,a,r]),r}function on0({address:u,chainId:e,formatUnits:t,scopeKey:n,token:r}){return[{entity:"balance",address:u,chainId:e,formatUnits:t,scopeKey:n,token:r}]}function sn0({queryKey:[{address:u,chainId:e,formatUnits:t,token:n}]}){if(!u)throw new Error("address is required");return xt0({address:u,chainId:e,formatUnits:t,token:n})}function fI({address:u,cacheTime:e,chainId:t,enabled:n=!0,formatUnits:r,scopeKey:i,staleTime:a,suspense:o,token:s,watch:f,onError:l,onSettled:c,onSuccess:E}={}){const d=e3({chainId:t}),p=w.useMemo(()=>on0({address:u,chainId:d,formatUnits:r,scopeKey:i,token:s}),[u,d,r,i,s]),h=Qo(p,sn0,{cacheTime:e,enabled:!!(n&&u),staleTime:a,suspense:o,onError:l,onSettled:c,onSuccess:E});return an0({chainId:d,enabled:!!(n&&f&&u),queryKey:p}),h}var fn0=u=>[{entity:"connect",...u}],ln0=u=>{const{connector:e,chainId:t}=u;if(!e)throw new Error("connector is required");return mt0({connector:e,chainId:t})};function cn0({chainId:u,connector:e,onError:t,onMutate:n,onSettled:r,onSuccess:i}={}){const a=FE(),{data:o,error:s,isError:f,isIdle:l,isLoading:c,isSuccess:E,mutate:d,mutateAsync:p,reset:h,status:g,variables:b}=uc(fn0({connector:e,chainId:u}),ln0,{onError:t,onMutate:n,onSettled:r,onSuccess:i}),m=w.useCallback(y=>d({chainId:(y==null?void 0:y.chainId)??u,connector:(y==null?void 0:y.connector)??e}),[u,e,d]),A=w.useCallback(y=>p({chainId:(y==null?void 0:y.chainId)??u,connector:(y==null?void 0:y.connector)??e}),[u,e,p]);return{connect:m,connectAsync:A,connectors:a.connectors,data:o,error:s,isError:f,isIdle:l,isLoading:c,isSuccess:E,pendingConnector:b==null?void 0:b.connector,reset:h,status:g,variables:b}}var En0=[{entity:"disconnect"}],dn0=()=>bt0();function lg({onError:u,onMutate:e,onSettled:t,onSuccess:n}={}){const{error:r,isError:i,isIdle:a,isLoading:o,isSuccess:s,mutate:f,mutateAsync:l,reset:c,status:E}=uc(En0,dn0,{...u?{onError(d,p,h){u(d,h)}}:{},onMutate:e,...t?{onSettled(d,p,h,g){t(p,g)}}:{},...n?{onSuccess(d,p,h){n(h)}}:{}});return{disconnect:f,disconnectAsync:l,error:r,isError:i,isIdle:a,isLoading:o,isSuccess:s,reset:c,status:E}}function ga(){const u=FE(),e=w.useCallback(t=>Tt0(t),[u]);return sI(e,og)}var pn0=u=>[{entity:"signMessage",...u}],hn0=u=>{const{message:e}=u;if(!e)throw new Error("message is required");return kt0({message:e})};function Cn0({message:u,onError:e,onMutate:t,onSettled:n,onSuccess:r}={}){const{data:i,error:a,isError:o,isIdle:s,isLoading:f,isSuccess:l,mutate:c,mutateAsync:E,reset:d,status:p,variables:h}=uc(pn0({message:u}),hn0,{onError:e,onMutate:t,onSettled:n,onSuccess:r}),g=w.useCallback(m=>c(m||{message:u}),[u,c]),b=w.useCallback(m=>E(m||{message:u}),[u,E]);return{data:i,error:a,isError:o,isIdle:s,isLoading:f,isSuccess:l,reset:d,signMessage:g,signMessageAsync:b,status:p,variables:h}}var mn0=u=>[{entity:"switchNetwork",...u}],bn0=u=>{const{chainId:e}=u;if(!e)throw new Error("chainId is required");return _t0({chainId:e})};function gn0({chainId:u,throwForSwitchChainNotSupported:e,onError:t,onMutate:n,onSettled:r,onSuccess:i}={}){var D;const a=FE(),o=nn0(),{data:s,error:f,isError:l,isIdle:c,isLoading:E,isSuccess:d,mutate:p,mutateAsync:h,reset:g,status:b,variables:m}=uc(mn0({chainId:u}),bn0,{onError:t,onMutate:n,onSettled:r,onSuccess:i}),A=w.useCallback(T=>p({chainId:T??u}),[u,p]),y=w.useCallback(T=>h({chainId:T??u}),[u,h]);w.useEffect(()=>a.subscribe(({chains:_,connector:$})=>({chains:_,connector:$}),o),[a,o]);let B,v;const C=!!((D=a.connector)!=null&&D.switchChain);return(e||C)&&(B=A,v=y),{chains:a.chains??[],data:s,error:f,isError:l,isIdle:c,isLoading:E,isSuccess:d,pendingChainId:m==null?void 0:m.chainId,reset:g,status:b,switchNetwork:B,switchNetworkAsync:v,variables:m}}function An0({address:u,abi:e,functionName:t,...n}){const{args:r,accessList:i,account:a,dataSuffix:o,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:E,request:d,value:p}=n;return[{entity:"writeContract",address:u,args:r,abi:e,accessList:i,account:a,dataSuffix:o,functionName:t,gas:s,gasPrice:f,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:E,request:d,value:p}]}function yn0(u){if(u.mode==="prepared"){if(!u.request)throw new Error("request is required");return IB({mode:"prepared",request:u.request})}if(!u.address)throw new Error("address is required");if(!u.abi)throw new Error("abi is required");if(!u.functionName)throw new Error("functionName is required");return IB({address:u.address,args:u.args,chainId:u.chainId,abi:u.abi,functionName:u.functionName,accessList:u.accessList,account:u.account,dataSuffix:u.dataSuffix,gas:u.gas,gasPrice:u.gasPrice,maxFeePerGas:u.maxFeePerGas,maxPriorityFeePerGas:u.maxPriorityFeePerGas,nonce:u.nonce,value:u.value})}function MB(u){const{address:e,abi:t,args:n,chainId:r,functionName:i,mode:a,request:o,dataSuffix:s}=u,{accessList:f,account:l,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,value:g}=Et0(u),{data:b,error:m,isError:A,isIdle:y,isLoading:B,isSuccess:v,mutate:C,mutateAsync:D,reset:T,status:_,variables:$}=uc(An0({address:e,abi:t,functionName:i,chainId:r,mode:a,args:n,accessList:f,account:l,dataSuffix:s,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,request:o,value:g}),yn0,{onError:u.onError,onMutate:u.onMutate,onSettled:u.onSettled,onSuccess:u.onSuccess}),u0=w.useMemo(()=>u.mode==="prepared"?o?()=>C({mode:"prepared",request:u.request,chainId:u.chainId}):void 0:o0=>C({address:e,args:n,abi:t,functionName:i,chainId:r,accessList:f,account:l,dataSuffix:s,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,value:g,...o0}),[f,l,t,e,n,r,u.chainId,u.mode,u.request,s,i,c,E,d,p,C,h,o,g]),e0=w.useMemo(()=>u.mode==="prepared"?o?()=>D({mode:"prepared",request:u.request}):void 0:o0=>D({address:e,args:n,abi:t,chainId:r,functionName:i,accessList:f,account:l,dataSuffix:s,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,value:g,...o0}),[f,l,t,e,n,r,u.mode,u.request,s,i,c,E,d,p,D,h,o,g]);return{data:b,error:m,isError:A,isIdle:y,isLoading:B,isSuccess:v,reset:T,status:_,variables:$,write:u0,writeAsync:e0}}function vn0({accessList:u,account:e,activeChainId:t,args:n,address:r,blockNumber:i,blockTag:a,chainId:o,dataSuffix:s,functionName:f,gas:l,gasPrice:c,maxFeePerGas:E,maxPriorityFeePerGas:d,nonce:p,scopeKey:h,walletClientAddress:g,value:b}){return[{entity:"prepareContractTransaction",accessList:u,account:e,activeChainId:t,address:r,args:n,blockNumber:i,blockTag:a,chainId:o,dataSuffix:s,functionName:f,gas:l,gasPrice:c,maxFeePerGas:E,maxPriorityFeePerGas:d,nonce:p,scopeKey:h,walletClientAddress:g,value:b}]}function Bn0({abi:u,walletClient:e}){return({queryKey:[{accessList:t,account:n,args:r,address:i,blockNumber:a,blockTag:o,chainId:s,dataSuffix:f,functionName:l,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,value:g}]})=>{if(!u)throw new Error("abi is required");if(!i)throw new Error("address is required");if(!l)throw new Error("functionName is required");return tI({abi:u,accessList:t,account:n,args:r,address:i,blockNumber:a,blockTag:o,chainId:s,dataSuffix:f,functionName:l,gas:c,gasPrice:E,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,walletClient:e,value:g})}}function jB({address:u,abi:e,functionName:t,chainId:n,args:r,cacheTime:i,dataSuffix:a,enabled:o=!0,scopeKey:s,staleTime:f,suspense:l,onError:c,onSettled:E,onSuccess:d,...p}={}){const{chain:h}=ga(),{data:g}=en0({chainId:n}),{accessList:b,account:m,blockNumber:A,blockTag:y,gas:B,gasPrice:v,maxFeePerGas:C,maxPriorityFeePerGas:D,nonce:T,value:_}=ZO(p),$=Qo(vn0({accessList:b,account:m,activeChainId:h==null?void 0:h.id,address:u,args:r,blockNumber:A,blockTag:y,chainId:n,dataSuffix:a,functionName:t,gas:B,gasPrice:v,maxFeePerGas:C,maxPriorityFeePerGas:D,nonce:T,scopeKey:s,walletClientAddress:g==null?void 0:g.account.address,value:_}),Bn0({abi:e,walletClient:g}),{cacheTime:i,enabled:!!(o&&e&&u&&t&&g),staleTime:f,suspense:l,onError:c,onSettled:E,onSuccess:d});return Object.assign($,{config:{chainId:n,mode:"prepared",request:void 0,...$.data}})}function Fn0({name:u,chainId:e,scopeKey:t}){return[{entity:"ensAvatar",name:u,chainId:e,scopeKey:t}]}function Dn0({queryKey:[{name:u,chainId:e}]}){if(!u)throw new Error("name is required");return Pt0({name:u,chainId:e})}function wn0({cacheTime:u,chainId:e,enabled:t=!0,name:n,scopeKey:r,staleTime:i=1e3*60*60*24,suspense:a,onError:o,onSettled:s,onSuccess:f}={}){const l=e3({chainId:e});return Qo(Fn0({name:n,chainId:l,scopeKey:r}),Dn0,{cacheTime:u,enabled:!!(t&&n&&l),staleTime:i,suspense:a,onError:o,onSettled:s,onSuccess:f})}function xn0({address:u,chainId:e,scopeKey:t}){return[{entity:"ensName",address:u,chainId:e,scopeKey:t}]}function kn0({queryKey:[{address:u,chainId:e}]}){if(!u)throw new Error("address is required");return Ot0({address:u,chainId:e})}function _n0({address:u,cacheTime:e,chainId:t,enabled:n=!0,scopeKey:r,staleTime:i=1e3*60*60*24,suspense:a,onError:o,onSettled:s,onSuccess:f}={}){const l=e3({chainId:t});return Qo(xn0({address:u,chainId:l,scopeKey:r}),kn0,{cacheTime:e,enabled:!!(n&&u&&l),staleTime:i,suspense:a,onError:o,onSettled:s,onSuccess:f})}function Sn0({confirmations:u,chainId:e,hash:t,scopeKey:n,timeout:r}){return[{entity:"waitForTransaction",confirmations:u,chainId:e,hash:t,scopeKey:n,timeout:r}]}function Tn0({onReplaced:u}){return({queryKey:[{chainId:e,confirmations:t,hash:n,timeout:r}]})=>{if(!n)throw new Error("hash is required");return Nt0({chainId:e,confirmations:t,hash:n,onReplaced:u,timeout:r})}}function zB({chainId:u,confirmations:e,hash:t,timeout:n,cacheTime:r,enabled:i=!0,scopeKey:a,staleTime:o,suspense:s,onError:f,onReplaced:l,onSettled:c,onSuccess:E}={}){const d=e3({chainId:u});return Qo(Sn0({chainId:d,confirmations:e,hash:t,scopeKey:a,timeout:n}),Tn0({onReplaced:l}),{cacheTime:r,enabled:!!(i&&t),staleTime:o,suspense:s,onError:f,onSettled:c,onSuccess:E})}function lI(u){var e,t,n="";if(typeof u=="string"||typeof u=="number")n+=u;else if(typeof u=="object")if(Array.isArray(u))for(e=0;e-1}var Si0=_i0,Ti0=_E;function Pi0(u,e){var t=this.__data__,n=Ti0(t,u);return n<0?(++this.size,t.push([u,e])):t[n][1]=e,this}var Oi0=Pi0,Ii0=Ci0,Ni0=Fi0,Ri0=xi0,Mi0=Si0,ji0=Oi0;function n3(u){var e=-1,t=u==null?0:u.length;for(this.clear();++e-1&&u%1==0&&u-1&&u%1==0&&u<=oo0}var gg=so0,fo0=hg,lo0=bg,co0=pr,Eo0=PE,do0=gg,po0=ic;function ho0(u,e,t){e=fo0(e,u);for(var n=-1,r=e.length,i=!1;++n-1}var os0=as0;function ss0(u,e,t){for(var n=-1,r=u==null?0:u.length;++n=ks0){var f=e?null:ws0(u);if(f)return xs0(f);a=!1,r=Ds0,s=new vs0}else s=e?[]:o;u:for(;++n{const o=[],s=[];return o.push(a),a||o.push(i.locale),i.enableFallback&&o.push(i.defaultLocale),o.filter(Boolean).map(f=>f.toString()).forEach(function(f){if(s.includes(f)||s.push(f),!i.enableFallback)return;const l=f.split("-");l.length===3&&s.push(`${l[0]}-${l[1]}`),s.push(l[0])}),(0,t.default)(s)};u.defaultLocaleResolver=n;class r{constructor(a){this.i18n=a,this.registry={},this.register("default",u.defaultLocaleResolver)}register(a,o){if(typeof o!="function"){const s=o;o=()=>s}this.registry[a]=o}get(a){let o=this.registry[a]||this.registry[this.i18n.locale]||this.registry.default;return typeof o=="function"&&(o=o(this.i18n,a)),o instanceof Array||(o=[o]),o}}u.Locales=r})(Ag);var vg={};const b0=(u,e)=>e?"other":u==1?"one":"other",fi=(u,e)=>e?"other":u==0||u==1?"one":"other",a3=(u,e)=>e?"other":u>=0&&u<=1?"one":"other",mn=(u,e)=>{const t=String(u).split("."),n=!t[1];return e?"other":u==1&&n?"one":"other"},nu=(u,e)=>"other",li=(u,e)=>e?"other":u==1?"one":u==2?"two":"other",Is0=b0,Ns0=fi,Rs0=a3,Ms0=b0,js0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2);return e?"other":u==0?"zero":u==1?"one":u==2?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},zs0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2);return e?"other":u==0?"zero":u==1?"one":u==2?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},Ls0=(u,e)=>e?u==1||u==5||u==7||u==8||u==9||u==10?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",$s0=b0,Us0=mn,Ws0=(u,e)=>{const t=String(u).split("."),n=t[0],r=n.slice(-1),i=n.slice(-2),a=n.slice(-3);return e?r==1||r==2||r==5||r==7||r==8||i==20||i==50||i==70||i==80?"one":r==3||r==4||a==100||a==200||a==300||a==400||a==500||a==600||a==700||a==800||a==900?"few":n==0||r==6||i==40||i==60||i==90?"many":"other":u==1?"one":"other"},qs0=(u,e)=>u==1?"one":"other",Hs0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2);return e?(r==2||r==3)&&i!=12&&i!=13?"few":"other":r==1&&i!=11?"one":r>=2&&r<=4&&(i<12||i>14)?"few":n&&r==0||r>=5&&r<=9||i>=11&&i<=14?"many":"other"},Gs0=b0,Vs0=b0,Ks0=b0,Qs0=fi,Js0=nu,Ys0=(u,e)=>e?u==1||u==5||u==7||u==8||u==9||u==10?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",Zs0=nu,Xs0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2),a=n&&t[0].slice(-6);return e?"other":r==1&&i!=11&&i!=71&&i!=91?"one":r==2&&i!=12&&i!=72&&i!=92?"two":(r==3||r==4||r==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":u!=0&&n&&a==0?"many":"other"},u40=b0,e40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},t40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==1||u==3?"one":u==2?"two":u==4?"few":"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},n40=b0,r40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return e?"other":i&&(n==1||n==2||n==3)||i&&a!=4&&a!=6&&a!=9||!i&&o!=4&&o!=6&&o!=9?"one":"other"},i40=b0,a40=b0,o40=b0,s40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1];return e?"other":u==1&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},f40=(u,e)=>e?u==0||u==7||u==8||u==9?"zero":u==1?"one":u==2?"two":u==3||u==4?"few":u==5||u==6?"many":"other":u==0?"zero":u==1?"one":u==2?"two":u==3?"few":u==6?"many":"other",l40=(u,e)=>{const t=String(u).split("."),n=t[0],r=Number(t[0])==u;return e?"other":u==1||!r&&(n==0||n==1)?"one":"other"},c40=mn,E40=a3,d40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-2),o=r.slice(-2);return e?"other":i&&a==1||o==1?"one":i&&a==2||o==2?"two":i&&(a==3||a==4)||o==3||o==4?"few":"other"},p40=b0,h40=nu,C40=b0,m40=b0,b40=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return e?i==1&&a!=11?"one":i==2&&a!=12?"two":i==3&&a!=13?"few":"other":u==1&&n?"one":"other"},g40=b0,A40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?"other":u==1?"one":n!=0&&i==0&&r?"many":"other"},y40=mn,v40=b0,B40=a3,F40=(u,e)=>e?"other":u>=0&&u<2?"one":"other",D40=mn,w40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return e?u==1?"one":"other":i&&(n==1||n==2||n==3)||i&&a!=4&&a!=6&&a!=9||!i&&o!=4&&o!=6&&o!=9?"one":"other"},x40=b0,k40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==1?"one":"other":u>=0&&u<2?"one":n!=0&&i==0&&r?"many":"other"},_40=b0,S40=mn,T40=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?u==1?"one":"other":u==1?"one":u==2?"two":n&&u>=3&&u<=6?"few":n&&u>=7&&u<=10?"many":"other"},P40=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?u==1||u==11?"one":u==2||u==12?"two":u==3||u==13?"few":"other":u==1||u==11?"one":u==2||u==12?"two":n&&u>=3&&u<=10||n&&u>=13&&u<=19?"few":"other"},O40=mn,I40=b0,N40=(u,e)=>e?u==1?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",R40=fi,M40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return e?"other":r&&i==1?"one":r&&i==2?"two":r&&(a==0||a==20||a==40||a==60||a==80)?"few":r?"other":"many"},j40=b0,z40=b0,L40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1];return e?"other":n==1&&r||n==0&&!r?"one":n==2&&r?"two":"other"},$40=(u,e)=>e?u==1?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u>=0&&u<=1?"one":"other",U40=nu,W40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},q40=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-2),o=r.slice(-2);return e?"other":i&&a==1||o==1?"one":i&&a==2||o==2?"two":i&&(a==3||a==4)||o==3||o==4?"few":"other"},H40=(u,e)=>e?u==1||u==5?"one":"other":u==1?"one":"other",G40=(u,e)=>e?u==1?"one":"other":u>=0&&u<2?"one":"other",V40=mn,K40=nu,Q40=nu,J40=nu,Y40=mn,Z40=(u,e)=>{const t=String(u).split("."),n=t[0],r=(t[1]||"").replace(/0+$/,""),i=Number(t[0])==u,a=n.slice(-1),o=n.slice(-2);return e?"other":i&&a==1&&o!=11||r%10==1&&r%100!=11?"one":"other"},X40=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},uf0=li,ef0=nu,tf0=nu,nf0=b0,rf0=b0,if0=nu,af0=nu,of0=(u,e)=>{const t=String(u).split("."),n=t[0],r=n.slice(-2);return e?n==1?"one":n==0||r>=2&&r<=20||r==40||r==60||r==80?"many":"other":u==1?"one":"other"},sf0=(u,e)=>e?"other":u>=0&&u<2?"one":"other",ff0=b0,lf0=b0,cf0=nu,Ef0=nu,df0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1);return e?r==6||r==9||n&&r==0&&u!=0?"many":"other":u==1?"one":"other"},pf0=b0,hf0=b0,Cf0=nu,mf0=a3,bf0=nu,gf0=b0,Af0=b0,yf0=(u,e)=>e?"other":u==0?"zero":u==1?"one":"other",vf0=b0,Bf0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2),i=n&&t[0].slice(-3),a=n&&t[0].slice(-5),o=n&&t[0].slice(-6);return e?n&&u>=1&&u<=4||r>=1&&r<=4||r>=21&&r<=24||r>=41&&r<=44||r>=61&&r<=64||r>=81&&r<=84?"one":u==5||r==5?"many":"other":u==0?"zero":u==1?"one":r==2||r==22||r==42||r==62||r==82||n&&i==0&&(a>=1e3&&a<=2e4||a==4e4||a==6e4||a==8e4)||u!=0&&o==1e5?"two":r==3||r==23||r==43||r==63||r==83?"few":u!=1&&(r==1||r==21||r==41||r==61||r==81)?"many":"other"},Ff0=b0,Df0=(u,e)=>{const t=String(u).split("."),n=t[0];return e?"other":u==0?"zero":(n==0||n==1)&&u!=0?"one":"other"},wf0=b0,xf0=b0,kf0=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u;return e?u==11||u==8||r&&u>=80&&u<=89||r&&u>=800&&u<=899?"many":"other":u==1&&n?"one":"other"},_f0=nu,Sf0=fi,Tf0=(u,e)=>e&&u==1?"one":"other",Pf0=(u,e)=>{const t=String(u).split("."),n=t[1]||"",r=Number(t[0])==u,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return e?"other":i==1&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":n!=0?"many":"other"},Of0=(u,e)=>{const t=String(u).split("."),n=t[1]||"",r=n.length,i=Number(t[0])==u,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-2),f=n.slice(-1);return e?"other":i&&a==0||o>=11&&o<=19||r==2&&s>=11&&s<=19?"zero":a==1&&o!=11||r==2&&f==1&&s!=11||r!=2&&f==1?"one":"other"},If0=b0,Nf0=fi,Rf0=b0,Mf0=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?a==1&&o!=11?"one":a==2&&o!=12?"two":(a==7||a==8)&&o!=17&&o!=18?"many":"other":i&&a==1&&o!=11||s==1&&f!=11?"one":"other"},jf0=b0,zf0=b0,Lf0=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-2);return e?u==1?"one":"other":u==1&&n?"one":!n||u==0||u!=1&&i>=1&&i<=19?"few":"other"},$f0=(u,e)=>e?u==1?"one":u==2||u==3?"two":u==4?"few":"other":u==1?"one":"other",Uf0=(u,e)=>e&&u==1?"one":"other",Wf0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-2);return e?"other":u==1?"one":u==2?"two":u==0||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},qf0=nu,Hf0=b0,Gf0=li,Vf0=b0,Kf0=b0,Qf0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?n&&u>=1&&u<=4?"one":"other":u==1?"one":"other"},Jf0=mn,Yf0=b0,Zf0=b0,Xf0=b0,u30=nu,e30=b0,t30=fi,n30=b0,r30=b0,i30=b0,a30=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?u==1||u==5||n&&u>=7&&u<=9?"one":u==2||u==3?"two":u==4?"few":u==6?"many":"other":u==1?"one":"other"},o30=b0,s30=nu,f30=fi,l30=b0,c30=a3,E30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return e?"other":u==1&&r?"one":r&&i>=2&&i<=4&&(a<12||a>14)?"few":r&&n!=1&&(i==0||i==1)||r&&i>=5&&i<=9||r&&a>=12&&a<=14?"many":"other"},d30=(u,e)=>{const t=String(u).split("."),n=t[1]||"",r=n.length,i=Number(t[0])==u,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-2),f=n.slice(-1);return e?"other":i&&a==0||o>=11&&o<=19||r==2&&s>=11&&s<=19?"zero":a==1&&o!=11||r==2&&f==1&&s!=11||r!=2&&f==1?"one":"other"},p30=b0,h30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?"other":n==0||n==1?"one":n!=0&&i==0&&r?"many":"other"},C30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},m30=b0,b30=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-2);return e?u==1?"one":"other":u==1&&n?"one":!n||u==0||u!=1&&i>=1&&i<=19?"few":"other"},g30=b0,A30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return e?"other":r&&i==1&&a!=11?"one":r&&i>=2&&i<=4&&(a<12||a>14)?"few":r&&i==0||r&&i>=5&&i<=9||r&&a>=11&&a<=14?"many":"other"},y30=b0,v30=nu,B30=b0,F30=li,D30=(u,e)=>{const t=String(u).split("."),n=!t[1];return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&n?"one":"other"},w30=(u,e)=>{const t=String(u).split("."),n=!t[1];return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&n?"one":"other"},x30=b0,k30=b0,_30=li,S30=b0,T30=nu,P30=nu,O30=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},I30=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?"other":u>=0&&u<=1?"one":n&&u>=2&&u<=10?"few":"other"},N30=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"";return e?"other":u==0||u==1||n==0&&r==1?"one":"other"},R30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1];return e?"other":u==1&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},M30=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-2);return e?"other":r&&i==1?"one":r&&i==2?"two":r&&(i==3||i==4)||!r?"few":"other"},j30=li,z30=li,L30=li,$30=li,U30=li,W30=b0,q30=b0,H30=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2);return e?u==1?"one":r==4&&i!=14?"many":"other":u==1?"one":"other"},G30=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),f=r.slice(-2);return e?"other":i&&a==1&&o!=11||s==1&&f!=11?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(f<12||f>14)?"few":"other"},V30=b0,K30=b0,Q30=b0,J30=nu,Y30=(u,e)=>{const t=String(u).split("."),n=!t[1],r=Number(t[0])==u,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return e?(i==1||i==2)&&a!=11&&a!=12?"one":"other":u==1&&n?"one":"other"},Z30=mn,X30=b0,ul0=b0,el0=b0,tl0=b0,nl0=nu,rl0=fi,il0=b0,al0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u,r=n&&t[0].slice(-1);return e?r==6||r==9||u==10?"few":"other":u==1?"one":"other"},ol0=(u,e)=>{const t=String(u).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return e?u==1?"one":"other":i&&(n==1||n==2||n==3)||i&&a!=4&&a!=6&&a!=9||!i&&o!=4&&o!=6&&o!=9?"one":"other"},sl0=b0,fl0=nu,ll0=nu,cl0=b0,El0=b0,dl0=(u,e)=>{const t=String(u).split("."),n=Number(t[0])==u;return e?"other":u==0||u==1||n&&u>=11&&u<=99?"one":"other"},pl0=b0,hl0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=Number(t[0])==u,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-1),f=n.slice(-2);return e?a==3&&o!=13?"few":"other":r&&s==1&&f!=11?"one":r&&s>=2&&s<=4&&(f<12||f>14)?"few":r&&s==0||r&&s>=5&&s<=9||r&&f>=11&&f<=14?"many":"other"},Cl0=nu,ml0=mn,bl0=b0,gl0=b0,Al0=(u,e)=>{const t=String(u).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e?u==11||u==8||u==80||u==800?"many":"other":u==1&&r?"one":n!=0&&i==0&&r?"many":"other"},yl0=(u,e)=>e&&u==1?"one":"other",vl0=b0,Bl0=b0,Fl0=fi,Dl0=b0,wl0=nu,xl0=b0,kl0=b0,_l0=mn,Sl0=nu,Tl0=nu,Pl0=nu,Ol0=a3,Il0=Object.freeze(Object.defineProperty({__proto__:null,af:Is0,ak:Ns0,am:Rs0,an:Ms0,ar:js0,ars:zs0,as:Ls0,asa:$s0,ast:Us0,az:Ws0,bal:qs0,be:Hs0,bem:Gs0,bez:Vs0,bg:Ks0,bho:Qs0,bm:Js0,bn:Ys0,bo:Zs0,br:Xs0,brx:u40,bs:e40,ca:t40,ce:n40,ceb:r40,cgg:i40,chr:a40,ckb:o40,cs:s40,cy:f40,da:l40,de:c40,doi:E40,dsb:d40,dv:p40,dz:h40,ee:C40,el:m40,en:b40,eo:g40,es:A40,et:y40,eu:v40,fa:B40,ff:F40,fi:D40,fil:w40,fo:x40,fr:k40,fur:_40,fy:S40,ga:T40,gd:P40,gl:O40,gsw:I40,gu:N40,guw:R40,gv:M40,ha:j40,haw:z40,he:L40,hi:$40,hnj:U40,hr:W40,hsb:q40,hu:H40,hy:G40,ia:V40,id:K40,ig:Q40,ii:J40,io:Y40,is:Z40,it:X40,iu:uf0,ja:ef0,jbo:tf0,jgo:nf0,jmc:rf0,jv:if0,jw:af0,ka:of0,kab:sf0,kaj:ff0,kcg:lf0,kde:cf0,kea:Ef0,kk:df0,kkj:pf0,kl:hf0,km:Cf0,kn:mf0,ko:bf0,ks:gf0,ksb:Af0,ksh:yf0,ku:vf0,kw:Bf0,ky:Ff0,lag:Df0,lb:wf0,lg:xf0,lij:kf0,lkt:_f0,ln:Sf0,lo:Tf0,lt:Pf0,lv:Of0,mas:If0,mg:Nf0,mgo:Rf0,mk:Mf0,ml:jf0,mn:zf0,mo:Lf0,mr:$f0,ms:Uf0,mt:Wf0,my:qf0,nah:Hf0,naq:Gf0,nb:Vf0,nd:Kf0,ne:Qf0,nl:Jf0,nn:Yf0,nnh:Zf0,no:Xf0,nqo:u30,nr:e30,nso:t30,ny:n30,nyn:r30,om:i30,or:a30,os:o30,osa:s30,pa:f30,pap:l30,pcm:c30,pl:E30,prg:d30,ps:p30,pt:h30,pt_PT:C30,rm:m30,ro:b30,rof:g30,ru:A30,rwk:y30,sah:v30,saq:B30,sat:F30,sc:D30,scn:w30,sd:x30,sdh:k30,se:_30,seh:S30,ses:T30,sg:P30,sh:O30,shi:I30,si:N30,sk:R30,sl:M30,sma:j30,smi:z30,smj:L30,smn:$30,sms:U30,sn:W30,so:q30,sq:H30,sr:G30,ss:V30,ssy:K30,st:Q30,su:J30,sv:Y30,sw:Z30,syr:X30,ta:ul0,te:el0,teo:tl0,th:nl0,ti:rl0,tig:il0,tk:al0,tl:ol0,tn:sl0,to:fl0,tpi:ll0,tr:cl0,ts:El0,tzm:dl0,ug:pl0,uk:hl0,und:Cl0,ur:ml0,uz:bl0,ve:gl0,vec:Al0,vi:yl0,vo:vl0,vun:Bl0,wa:Fl0,wae:Dl0,wo:wl0,xh:xl0,xog:kl0,yi:_l0,yo:Sl0,yue:Tl0,zh:Pl0,zu:Ol0},Symbol.toStringTag,{value:"Module"})),Nl0=V2(Il0);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Pluralization=u.defaultPluralizer=u.useMakePlural=void 0;const e=Nl0;function t({pluralizer:r,includeZero:i=!0,ordinal:a=!1}){return function(o,s){return[i&&s===0?"zero":"",r(s,a)].filter(Boolean)}}u.useMakePlural=t,u.defaultPluralizer=t({pluralizer:e.en,includeZero:!0});class n{constructor(i){this.i18n=i,this.registry={},this.register("default",u.defaultPluralizer)}register(i,a){this.registry[i]=a}get(i){return this.registry[i]||this.registry[this.i18n.locale]||this.registry.default}}u.Pluralization=n})(vg);var Bg={},Fg={},OE={};function Rl0(u,e,t){var n=-1,r=u.length;e<0&&(e=-e>r?0:r+e),t=t>r?r:t,t<0&&(t+=r),r=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(r);++n=n?u:jl0(u,e,t)}var Ll0=zl0,$l0="\\ud800-\\udfff",Ul0="\\u0300-\\u036f",Wl0="\\ufe20-\\ufe2f",ql0="\\u20d0-\\u20ff",Hl0=Ul0+Wl0+ql0,Gl0="\\ufe0e\\ufe0f",Vl0="\\u200d",Kl0=RegExp("["+Vl0+$l0+Hl0+Gl0+"]");function Ql0(u){return Kl0.test(u)}var kI=Ql0;function Jl0(u){return u.split("")}var Yl0=Jl0,_I="\\ud800-\\udfff",Zl0="\\u0300-\\u036f",Xl0="\\ufe20-\\ufe2f",u10="\\u20d0-\\u20ff",e10=Zl0+Xl0+u10,t10="\\ufe0e\\ufe0f",n10="["+_I+"]",pC="["+e10+"]",hC="\\ud83c[\\udffb-\\udfff]",r10="(?:"+pC+"|"+hC+")",SI="[^"+_I+"]",TI="(?:\\ud83c[\\udde6-\\uddff]){2}",PI="[\\ud800-\\udbff][\\udc00-\\udfff]",i10="\\u200d",OI=r10+"?",II="["+t10+"]?",a10="(?:"+i10+"(?:"+[SI,TI,PI].join("|")+")"+II+OI+")*",o10=II+OI+a10,s10="(?:"+[SI+pC+"?",pC,TI,PI,n10].join("|")+")",f10=RegExp(hC+"(?="+hC+")|"+s10+o10,"g");function l10(u){return u.match(f10)||[]}var c10=l10,E10=Yl0,d10=kI,p10=c10;function h10(u){return d10(u)?p10(u):E10(u)}var C10=h10,m10=Ll0,b10=kI,g10=C10,A10=i3;function y10(u){return function(e){e=A10(e);var t=b10(e)?g10(e):void 0,n=t?t[0]:e.charAt(0),r=t?m10(t,1).join(""):e.slice(1);return n[u]()+r}}var v10=y10,B10=v10,F10=B10("toUpperCase"),D10=F10,w10=i3,x10=D10;function k10(u){return x10(w10(u).toLowerCase())}var _10=k10;function S10(u,e,t,n){var r=-1,i=u==null?0:u.length;for(n&&i&&(t=u[++r]);++r(e[(0,Wc0.default)(t)]=u[t],e),{}):{}}OE.camelCaseKeys=qc0;var IE={},Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.isSet=void 0;function Hc0(u){return u!=null}Aa.isSet=Hc0;Object.defineProperty(IE,"__esModule",{value:!0});IE.createTranslationOptions=void 0;const tF=Aa;function Gc0(u,e,t){let n=[{scope:e}];if((0,tF.isSet)(t.defaults)&&(n=n.concat(t.defaults)),(0,tF.isSet)(t.defaultValue)){const r=typeof t.defaultValue=="function"?t.defaultValue(u,e,t):t.defaultValue;n.push({message:r}),delete t.defaultValue}return n}IE.createTranslationOptions=Gc0;var o3={},KI={exports:{}};(function(u){(function(e){var t,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,i=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",s=1e14,f=14,l=9007199254740991,c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],E=1e7,d=1e9;function p(v){var C,D,T,_=K.prototype={constructor:K,toString:null,valueOf:null},$=new K(1),u0=20,e0=4,o0=-7,N=21,R=-1e7,V=1e7,G=!1,H=1,L=0,n0={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},s0="0123456789abcdefghijklmnopqrstuvwxyz",a0=!0;function K(k,S){var P,z,M,q,J,j,U,Y,W=this;if(!(W instanceof K))return new K(k,S);if(S==null){if(k&&k._isBigNumber===!0){W.s=k.s,!k.c||k.e>V?W.c=W.e=null:k.e=10;J/=10,q++);q>V?W.c=W.e=null:(W.e=q,W.c=[k]);return}Y=String(k)}else{if(!n.test(Y=String(k)))return T(W,Y,j);W.s=Y.charCodeAt(0)==45?(Y=Y.slice(1),-1):1}(q=Y.indexOf("."))>-1&&(Y=Y.replace(".","")),(J=Y.search(/e/i))>0?(q<0&&(q=J),q+=+Y.slice(J+1),Y=Y.substring(0,J)):q<0&&(q=Y.length)}else{if(m(S,2,s0.length,"Base"),S==10&&a0)return W=new K(k),T0(W,u0+W.e+1,e0);if(Y=String(k),j=typeof k=="number"){if(k*0!=0)return T(W,Y,j,S);if(W.s=1/k<0?(Y=Y.slice(1),-1):1,K.DEBUG&&Y.replace(/^0\.0*|\./,"").length>15)throw Error(o+k)}else W.s=Y.charCodeAt(0)===45?(Y=Y.slice(1),-1):1;for(P=s0.slice(0,S),q=J=0,U=Y.length;Jq){q=U;continue}}else if(!M&&(Y==Y.toUpperCase()&&(Y=Y.toLowerCase())||Y==Y.toLowerCase()&&(Y=Y.toUpperCase()))){M=!0,J=-1,q=0;continue}return T(W,String(k),j,S)}j=!1,Y=D(Y,S,10,W.s),(q=Y.indexOf("."))>-1?Y=Y.replace(".",""):q=Y.length}for(J=0;Y.charCodeAt(J)===48;J++);for(U=Y.length;Y.charCodeAt(--U)===48;);if(Y=Y.slice(J,++U)){if(U-=J,j&&K.DEBUG&&U>15&&(k>l||k!==i(k)))throw Error(o+W.s*k);if((q=q-J-1)>V)W.c=W.e=null;else if(q=-d&&M<=d&&M===i(M)){if(z[0]===0){if(M===0&&z.length===1)return!0;break u}if(S=(M+1)%f,S<1&&(S+=f),String(z[0]).length==S){for(S=0;S=s||P!==i(P))break u;if(P!==0)return!0}}}else if(z===null&&M===null&&(q===null||q===1||q===-1))return!0;throw Error(a+"Invalid BigNumber: "+k)},K.maximum=K.max=function(){return _0(arguments,-1)},K.minimum=K.min=function(){return _0(arguments,1)},K.random=function(){var k=9007199254740992,S=Math.random()*k&2097151?function(){return i(Math.random()*k)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(P){var z,M,q,J,j,U=0,Y=[],W=new K($);if(P==null?P=u0:m(P,0,d),J=r(P/f),G)if(crypto.getRandomValues){for(z=crypto.getRandomValues(new Uint32Array(J*=2));U>>11),j>=9e15?(M=crypto.getRandomValues(new Uint32Array(2)),z[U]=M[0],z[U+1]=M[1]):(Y.push(j%1e14),U+=2);U=J/2}else if(crypto.randomBytes){for(z=crypto.randomBytes(J*=7);U=9e15?crypto.randomBytes(7).copy(z,U):(Y.push(j%1e14),U+=7);U=J/7}else throw G=!1,Error(a+"crypto unavailable");if(!G)for(;U=10;j/=10,U++);UM-1&&(j[J+1]==null&&(j[J+1]=0),j[J+1]+=j[J]/M|0,j[J]%=M)}return j.reverse()}return function(P,z,M,q,J){var j,U,Y,W,t0,p0,m0,P0,C0=P.indexOf("."),B0=u0,E0=e0;for(C0>=0&&(W=L,L=0,P=P.replace(".",""),P0=new K(z),p0=P0.pow(P.length-C0),L=W,P0.c=S(B(g(p0.c),p0.e,"0"),10,M,k),P0.e=P0.c.length),m0=S(P,z,M,J?(j=s0,k):(j=k,s0)),Y=W=m0.length;m0[--W]==0;m0.pop());if(!m0[0])return j.charAt(0);if(C0<0?--Y:(p0.c=m0,p0.e=Y,p0.s=q,p0=C(p0,P0,B0,E0,M),m0=p0.c,t0=p0.r,Y=p0.e),U=Y+B0+1,C0=m0[U],W=M/2,t0=t0||U<0||m0[U+1]!=null,t0=E0<4?(C0!=null||t0)&&(E0==0||E0==(p0.s<0?3:2)):C0>W||C0==W&&(E0==4||t0||E0==6&&m0[U-1]&1||E0==(p0.s<0?8:7)),U<1||!m0[0])P=t0?B(j.charAt(1),-B0,j.charAt(0)):j.charAt(0);else{if(m0.length=U,t0)for(--M;++m0[--U]>M;)m0[U]=0,U||(++Y,m0=[1].concat(m0));for(W=m0.length;!m0[--W];);for(C0=0,P="";C0<=W;P+=j.charAt(m0[C0++]));P=B(P,Y,j.charAt(0))}return P}}(),C=function(){function k(z,M,q){var J,j,U,Y,W=0,t0=z.length,p0=M%E,m0=M/E|0;for(z=z.slice();t0--;)U=z[t0]%E,Y=z[t0]/E|0,J=m0*U+Y*p0,j=p0*U+J%E*E+W,W=(j/q|0)+(J/E|0)+m0*Y,z[t0]=j%q;return W&&(z=[W].concat(z)),z}function S(z,M,q,J){var j,U;if(q!=J)U=q>J?1:-1;else for(j=U=0;jM[j]?1:-1;break}return U}function P(z,M,q,J){for(var j=0;q--;)z[q]-=j,j=z[q]1;z.splice(0,1));}return function(z,M,q,J,j){var U,Y,W,t0,p0,m0,P0,C0,B0,E0,g0,h0,G0,M0,y0,U0,Eu,Z0=z.s==M.s?1:-1,Ne=z.c,Pu=M.c;if(!Ne||!Ne[0]||!Pu||!Pu[0])return new K(!z.s||!M.s||(Ne?Pu&&Ne[0]==Pu[0]:!Pu)?NaN:Ne&&Ne[0]==0||!Pu?Z0*0:Z0/0);for(C0=new K(Z0),B0=C0.c=[],Y=z.e-M.e,Z0=q+Y+1,j||(j=s,Y=h(z.e/f)-h(M.e/f),Z0=Z0/f|0),W=0;Pu[W]==(Ne[W]||0);W++);if(Pu[W]>(Ne[W]||0)&&Y--,Z0<0)B0.push(1),t0=!0;else{for(M0=Ne.length,U0=Pu.length,W=0,Z0+=2,p0=i(j/(Pu[0]+1)),p0>1&&(Pu=k(Pu,p0,j),Ne=k(Ne,p0,j),U0=Pu.length,M0=Ne.length),G0=U0,E0=Ne.slice(0,U0),g0=E0.length;g0=j/2&&y0++;do{if(p0=0,U=S(Pu,E0,U0,g0),U<0){if(h0=E0[0],U0!=g0&&(h0=h0*j+(E0[1]||0)),p0=i(h0/y0),p0>1)for(p0>=j&&(p0=j-1),m0=k(Pu,p0,j),P0=m0.length,g0=E0.length;S(m0,E0,P0,g0)==1;)p0--,P(m0,U0=10;Z0/=10,W++);T0(C0,q+(C0.e=W+Y*f-1)+1,J,t0)}else C0.e=Y,C0.r=+t0;return C0}}();function v0(k,S,P,z){var M,q,J,j,U;if(P==null?P=e0:m(P,0,8),!k.c)return k.toString();if(M=k.c[0],J=k.e,S==null)U=g(k.c),U=z==1||z==2&&(J<=o0||J>=N)?y(U,J):B(U,J,"0");else if(k=T0(new K(k),S,P),q=k.e,U=g(k.c),j=U.length,z==1||z==2&&(S<=q||q<=o0)){for(;jj){if(--S>0)for(U+=".";S--;U+="0");}else if(S+=q-j,S>0)for(q+1==j&&(U+=".");S--;U+="0");return k.s<0&&M?"-"+U:U}function _0(k,S){for(var P,z,M=1,q=new K(k[0]);M=10;M/=10,z++);return(P=z+P*f-1)>V?k.c=k.e=null:P=10;j/=10,M++);if(q=S-M,q<0)q+=f,J=S,U=t0[Y=0],W=i(U/p0[M-J-1]%10);else if(Y=r((q+1)/f),Y>=t0.length)if(z){for(;t0.length<=Y;t0.push(0));U=W=0,M=1,q%=f,J=q-f+1}else break u;else{for(U=j=t0[Y],M=1;j>=10;j/=10,M++);q%=f,J=q-f+M,W=J<0?0:i(U/p0[M-J-1]%10)}if(z=z||S<0||t0[Y+1]!=null||(J<0?U:U%p0[M-J-1]),z=P<4?(W||z)&&(P==0||P==(k.s<0?3:2)):W>5||W==5&&(P==4||z||P==6&&(q>0?J>0?U/p0[M-J]:0:t0[Y-1])%10&1||P==(k.s<0?8:7)),S<1||!t0[0])return t0.length=0,z?(S-=k.e+1,t0[0]=p0[(f-S%f)%f],k.e=-S||0):t0[0]=k.e=0,k;if(q==0?(t0.length=Y,j=1,Y--):(t0.length=Y+1,j=p0[f-q],t0[Y]=J>0?i(U/p0[M-J]%p0[J])*j:0),z)for(;;)if(Y==0){for(q=1,J=t0[0];J>=10;J/=10,q++);for(J=t0[0]+=j,j=1;J>=10;J/=10,j++);q!=j&&(k.e++,t0[0]==s&&(t0[0]=1));break}else{if(t0[Y]+=j,t0[Y]!=s)break;t0[Y--]=0,j=1}for(q=t0.length;t0[--q]===0;t0.pop());}k.e>V?k.c=k.e=null:k.e=N?y(S,P):B(S,P,"0"),k.s<0?"-"+S:S)}return _.absoluteValue=_.abs=function(){var k=new K(this);return k.s<0&&(k.s=1),k},_.comparedTo=function(k,S){return b(this,new K(k,S))},_.decimalPlaces=_.dp=function(k,S){var P,z,M,q=this;if(k!=null)return m(k,0,d),S==null?S=e0:m(S,0,8),T0(new K(q),k+q.e+1,S);if(!(P=q.c))return null;if(z=((M=P.length-1)-h(this.e/f))*f,M=P[M])for(;M%10==0;M/=10,z--);return z<0&&(z=0),z},_.dividedBy=_.div=function(k,S){return C(this,new K(k,S),u0,e0)},_.dividedToIntegerBy=_.idiv=function(k,S){return C(this,new K(k,S),0,1)},_.exponentiatedBy=_.pow=function(k,S){var P,z,M,q,J,j,U,Y,W,t0=this;if(k=new K(k),k.c&&!k.isInteger())throw Error(a+"Exponent not an integer: "+w0(k));if(S!=null&&(S=new K(S)),j=k.e>14,!t0.c||!t0.c[0]||t0.c[0]==1&&!t0.e&&t0.c.length==1||!k.c||!k.c[0])return W=new K(Math.pow(+w0(t0),j?k.s*(2-A(k)):+w0(k))),S?W.mod(S):W;if(U=k.s<0,S){if(S.c?!S.c[0]:!S.s)return new K(NaN);z=!U&&t0.isInteger()&&S.isInteger(),z&&(t0=t0.mod(S))}else{if(k.e>9&&(t0.e>0||t0.e<-1||(t0.e==0?t0.c[0]>1||j&&t0.c[1]>=24e7:t0.c[0]<8e13||j&&t0.c[0]<=9999975e7)))return q=t0.s<0&&A(k)?-0:0,t0.e>-1&&(q=1/q),new K(U?1/q:q);L&&(q=r(L/f+2))}for(j?(P=new K(.5),U&&(k.s=1),Y=A(k)):(M=Math.abs(+w0(k)),Y=M%2),W=new K($);;){if(Y){if(W=W.times(t0),!W.c)break;q?W.c.length>q&&(W.c.length=q):z&&(W=W.mod(S))}if(M){if(M=i(M/2),M===0)break;Y=M%2}else if(k=k.times(P),T0(k,k.e+1,1),k.e>14)Y=A(k);else{if(M=+w0(k),M===0)break;Y=M%2}t0=t0.times(t0),q?t0.c&&t0.c.length>q&&(t0.c.length=q):z&&(t0=t0.mod(S))}return z?W:(U&&(W=$.div(W)),S?W.mod(S):q?T0(W,L,e0,J):W)},_.integerValue=function(k){var S=new K(this);return k==null?k=e0:m(k,0,8),T0(S,S.e+1,k)},_.isEqualTo=_.eq=function(k,S){return b(this,new K(k,S))===0},_.isFinite=function(){return!!this.c},_.isGreaterThan=_.gt=function(k,S){return b(this,new K(k,S))>0},_.isGreaterThanOrEqualTo=_.gte=function(k,S){return(S=b(this,new K(k,S)))===1||S===0},_.isInteger=function(){return!!this.c&&h(this.e/f)>this.c.length-2},_.isLessThan=_.lt=function(k,S){return b(this,new K(k,S))<0},_.isLessThanOrEqualTo=_.lte=function(k,S){return(S=b(this,new K(k,S)))===-1||S===0},_.isNaN=function(){return!this.s},_.isNegative=function(){return this.s<0},_.isPositive=function(){return this.s>0},_.isZero=function(){return!!this.c&&this.c[0]==0},_.minus=function(k,S){var P,z,M,q,J=this,j=J.s;if(k=new K(k,S),S=k.s,!j||!S)return new K(NaN);if(j!=S)return k.s=-S,J.plus(k);var U=J.e/f,Y=k.e/f,W=J.c,t0=k.c;if(!U||!Y){if(!W||!t0)return W?(k.s=-S,k):new K(t0?J:NaN);if(!W[0]||!t0[0])return t0[0]?(k.s=-S,k):new K(W[0]?J:e0==3?-0:0)}if(U=h(U),Y=h(Y),W=W.slice(),j=U-Y){for((q=j<0)?(j=-j,M=W):(Y=U,M=t0),M.reverse(),S=j;S--;M.push(0));M.reverse()}else for(z=(q=(j=W.length)<(S=t0.length))?j:S,j=S=0;S0)for(;S--;W[P++]=0);for(S=s-1;z>j;){if(W[--z]=0;){for(P=0,p0=h0[M]%B0,m0=h0[M]/B0|0,J=U,q=M+J;q>M;)Y=g0[--J]%B0,W=g0[J]/B0|0,j=m0*Y+W*p0,Y=p0*Y+j%B0*B0+P0[q]+P,P=(Y/C0|0)+(j/B0|0)+m0*W,P0[q--]=Y%C0;P0[q]=P}return P?++z:P0.splice(0,1),O0(k,P0,z)},_.negated=function(){var k=new K(this);return k.s=-k.s||null,k},_.plus=function(k,S){var P,z=this,M=z.s;if(k=new K(k,S),S=k.s,!M||!S)return new K(NaN);if(M!=S)return k.s=-S,z.minus(k);var q=z.e/f,J=k.e/f,j=z.c,U=k.c;if(!q||!J){if(!j||!U)return new K(M/0);if(!j[0]||!U[0])return U[0]?k:new K(j[0]?z:M*0)}if(q=h(q),J=h(J),j=j.slice(),M=q-J){for(M>0?(J=q,P=U):(M=-M,P=j),P.reverse();M--;P.push(0));P.reverse()}for(M=j.length,S=U.length,M-S<0&&(P=U,U=j,j=P,S=M),M=0;S;)M=(j[--S]=j[S]+U[S]+M)/s|0,j[S]=s===j[S]?0:j[S]%s;return M&&(j=[M].concat(j),++J),O0(k,j,J)},_.precision=_.sd=function(k,S){var P,z,M,q=this;if(k!=null&&k!==!!k)return m(k,1,d),S==null?S=e0:m(S,0,8),T0(new K(q),k,S);if(!(P=q.c))return null;if(M=P.length-1,z=M*f+1,M=P[M]){for(;M%10==0;M/=10,z--);for(M=P[0];M>=10;M/=10,z++);}return k&&q.e+1>z&&(z=q.e+1),z},_.shiftedBy=function(k){return m(k,-l,l),this.times("1e"+k)},_.squareRoot=_.sqrt=function(){var k,S,P,z,M,q=this,J=q.c,j=q.s,U=q.e,Y=u0+4,W=new K("0.5");if(j!==1||!J||!J[0])return new K(!j||j<0&&(!J||J[0])?NaN:J?q:1/0);if(j=Math.sqrt(+w0(q)),j==0||j==1/0?(S=g(J),(S.length+U)%2==0&&(S+="0"),j=Math.sqrt(+S),U=h((U+1)/2)-(U<0||U%2),j==1/0?S="5e"+U:(S=j.toExponential(),S=S.slice(0,S.indexOf("e")+1)+U),P=new K(S)):P=new K(j+""),P.c[0]){for(U=P.e,j=U+Y,j<3&&(j=0);;)if(M=P,P=W.times(M.plus(C(q,M,Y,1))),g(M.c).slice(0,j)===(S=g(P.c)).slice(0,j))if(P.e0&&P0>0){for(q=P0%j||j,W=m0.substr(0,q);q0&&(W+=Y+m0.slice(q)),p0&&(W="-"+W)}z=t0?W+(P.decimalSeparator||"")+((U=+P.fractionGroupSize)?t0.replace(new RegExp("\\d{"+U+"}\\B","g"),"$&"+(P.fractionGroupSeparator||"")):t0):W}return(P.prefix||"")+z+(P.suffix||"")},_.toFraction=function(k){var S,P,z,M,q,J,j,U,Y,W,t0,p0,m0=this,P0=m0.c;if(k!=null&&(j=new K(k),!j.isInteger()&&(j.c||j.s!==1)||j.lt($)))throw Error(a+"Argument "+(j.isInteger()?"out of range: ":"not an integer: ")+w0(j));if(!P0)return new K(m0);for(S=new K($),Y=P=new K($),z=U=new K($),p0=g(P0),q=S.e=p0.length-m0.e-1,S.c[0]=c[(J=q%f)<0?f+J:J],k=!k||j.comparedTo(S)>0?q>0?S:Y:j,J=V,V=1/0,j=new K(p0),U.c[0]=0;W=C(j,S,0,1),M=P.plus(W.times(z)),M.comparedTo(k)!=1;)P=z,z=M,Y=U.plus(W.times(M=Y)),U=M,S=j.minus(W.times(M=S)),j=M;return M=C(k.minus(P),z,0,1),U=U.plus(M.times(Y)),P=P.plus(M.times(z)),U.s=Y.s=m0.s,q=q*2,t0=C(Y,z,q,e0).minus(m0).abs().comparedTo(C(U,P,q,e0).minus(m0).abs())<1?[Y,z]:[U,P],V=J,t0},_.toNumber=function(){return+w0(this)},_.toPrecision=function(k,S){return k!=null&&m(k,1,d),v0(this,k,S,2)},_.toString=function(k){var S,P=this,z=P.s,M=P.e;return M===null?z?(S="Infinity",z<0&&(S="-"+S)):S="NaN":(k==null?S=M<=o0||M>=N?y(g(P.c),M):B(g(P.c),M,"0"):k===10&&a0?(P=T0(new K(P),u0+M+1,e0),S=B(g(P.c),P.e,"0")):(m(k,2,s0.length,"Base"),S=D(B(g(P.c),M,"0"),10,k,z,!0)),z<0&&P.c[0]&&(S="-"+S)),S},_.valueOf=_.toJSON=function(){return w0(this)},_._isBigNumber=!0,v!=null&&K.set(v),K}function h(v){var C=v|0;return v>0||v===C?C:C-1}function g(v){for(var C,D,T=1,_=v.length,$=v[0]+"";T<_;){for(C=v[T++]+"",D=f-C.length;D--;C="0"+C);$+=C}for(_=$.length;$.charCodeAt(--_)===48;);return $.slice(0,_+1||1)}function b(v,C){var D,T,_=v.c,$=C.c,u0=v.s,e0=C.s,o0=v.e,N=C.e;if(!u0||!e0)return null;if(D=_&&!_[0],T=$&&!$[0],D||T)return D?T?0:-e0:u0;if(u0!=e0)return u0;if(D=u0<0,T=o0==N,!_||!$)return T?0:!_^D?1:-1;if(!T)return o0>N^D?1:-1;for(e0=(o0=_.length)<(N=$.length)?o0:N,u0=0;u0$[u0]^D?1:-1;return o0==N?0:o0>N^D?1:-1}function m(v,C,D,T){if(vD||v!==i(v))throw Error(a+(T||"Argument")+(typeof v=="number"?vD?" out of range: ":" not an integer: ":" not a primitive number: ")+String(v))}function A(v){var C=v.c.length-1;return h(v.e/f)==C&&v.c[C]%2!=0}function y(v,C){return(v.length>1?v.charAt(0)+"."+v.slice(1):v)+(C<0?"e":"e+")+C}function B(v,C,D){var T,_;if(C<0){for(_=D+".";++C;_+=D);v=_+v}else if(T=v.length,++C>T){for(_=D,C-=T;--C;_+=D);v+=_}else CQc0)return t;do e%2&&(t+=u),e=Jc0(e/2),e&&(u+=u);while(e);return t}var Zc0=Yc0,Xc0=hI,u60=gg;function e60(u){return u!=null&&u60(u.length)&&!Xc0(u)}var RE=e60,t60=kE,n60=RE,r60=PE,i60=Jo;function a60(u,e,t){if(!i60(t))return!1;var n=typeof e;return(n=="number"?n60(t)&&r60(e,t.length):n=="string"&&e in t)?t60(t[e],u):!1}var Dg=a60,o60=/\s/;function s60(u){for(var e=u.length;e--&&o60.test(u.charAt(e)););return e}var f60=s60,l60=f60,c60=/^\s+/;function E60(u){return u&&u.slice(0,l60(u)+1).replace(c60,"")}var d60=E60,p60=d60,nF=Jo,h60=rc,rF=NaN,C60=/^[-+]0x[0-9a-f]+$/i,m60=/^0b[01]+$/i,b60=/^0o[0-7]+$/i,g60=parseInt;function A60(u){if(typeof u=="number")return u;if(h60(u))return rF;if(nF(u)){var e=typeof u.valueOf=="function"?u.valueOf():u;u=nF(e)?e+"":e}if(typeof u!="string")return u===0?u:+u;u=p60(u);var t=m60.test(u);return t||b60.test(u)?g60(u.slice(2),t?2:8):C60.test(u)?rF:+u}var y60=A60,v60=y60,iF=1/0,B60=17976931348623157e292;function F60(u){if(!u)return u===0?u:0;if(u=v60(u),u===iF||u===-iF){var e=u<0?-1:1;return e*B60}return u===u?u:0}var QI=F60,D60=QI;function w60(u){var e=D60(u),t=e%1;return e===e?t?e-t:e:0}var x60=w60,k60=Zc0,_60=Dg,S60=x60,T60=i3;function P60(u,e,t){return(t?_60(u,e,t):e===void 0)?e=1:e=S60(e),k60(T60(u),e)}var O60=P60,Zo={},I60=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.roundNumber=void 0;const N60=I60(s3),R60=o3;function M60(u){return u.isZero()?1:Math.floor(Math.log10(u.abs().toNumber())+1)}function j60(u,{precision:e,significant:t}){return t&&e!==null&&e>0?e-M60(u):e}function z60(u,e){const t=j60(u,e);if(t===null)return u.toString();const n=(0,R60.expandRoundMode)(e.roundMode);if(t>=0)return u.toFixed(t,n);const r=Math.pow(10,Math.abs(t));return u=new N60.default(u.div(r).toFixed(0,n)).times(r),u.toString()}Zo.roundNumber=z60;var JI=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(NE,"__esModule",{value:!0});NE.formatNumber=void 0;const aF=JI(s3),L60=JI(O60),$60=Zo;function U60(u,{formattedNumber:e,unit:t}){return u.replace("%n",e).replace("%u",t)}function W60({significand:u,whole:e,precision:t}){if(e==="0"||t===null)return u;const n=Math.max(0,t-e.length);return(u??"").substr(0,n)}function q60(u,e){var t,n,r;const i=new aF.default(u);if(e.raise&&!i.isFinite())throw new Error(`"${u}" is not a valid numeric value`);const a=(0,$60.roundNumber)(i,e),o=new aF.default(a),s=o.lt(0),f=o.isZero();let[l,c]=a.split(".");const E=[];let d;const p=(t=e.format)!==null&&t!==void 0?t:"%n",h=(n=e.negativeFormat)!==null&&n!==void 0?n:`-${p}`,g=s&&!f?h:p;for(l=l.replace("-","");l.length>0;)E.unshift(l.substr(Math.max(0,l.length-3),3)),l=l.substr(0,l.length-3);return l=E.join(""),d=E.join(e.delimiter),e.significant?c=W60({whole:l,significand:c,precision:e.precision}):c=c??(0,L60.default)("0",(r=e.precision)!==null&&r!==void 0?r:0),e.stripInsignificantZeros&&c&&(c=c.replace(/0+$/,"")),i.isNaN()&&(d=u.toString()),c&&i.isFinite()&&(d+=(e.separator||".")+c),U60(g,{formattedNumber:d,unit:e.unit})}NE.formatNumber=q60;var f3={};Object.defineProperty(f3,"__esModule",{value:!0});f3.getFullScope=void 0;function H60(u,e,t){let n="";return(e instanceof String||typeof e=="string")&&(n=e),e instanceof Array&&(n=e.join(u.defaultSeparator)),t.scope&&(n=[t.scope,n].join(u.defaultSeparator)),n}f3.getFullScope=H60;var l3={};Object.defineProperty(l3,"__esModule",{value:!0});l3.inferType=void 0;function G60(u){var e,t;if(u===null)return"null";const n=typeof u;return n!=="object"?n:((t=(e=u==null?void 0:u.constructor)===null||e===void 0?void 0:e.name)===null||t===void 0?void 0:t.toLowerCase())||"object"}l3.inferType=G60;var ME={};Object.defineProperty(ME,"__esModule",{value:!0});ME.interpolate=void 0;const V60=Aa;function K60(u,e,t){t=Object.keys(t).reduce((r,i)=>(r[u.transformKey(i)]=t[i],r),{});const n=e.match(u.placeholder);if(!n)return e;for(;n.length;){let r;const i=n.shift(),a=i.replace(u.placeholder,"$1");(0,V60.isSet)(t[a])?r=t[a].toString().replace(/\$/gm,"_#$#_"):a in t?r=u.nullPlaceholder(u,i,e,t):r=u.missingPlaceholder(u,i,e,t);const o=new RegExp(i.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));e=e.replace(o,r)}return e.replace(/_#\$#_/g,"$")}ME.interpolate=K60;var c3={},Q60=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(c3,"__esModule",{value:!0});c3.lookup=void 0;const J60=Q60(mg),Y60=Aa,Z60=f3,X60=l3;function u50(u,e,t={}){t=Object.assign({},t);const n="locale"in t?t.locale:u.locale,r=(0,X60.inferType)(n),i=u.locales.get(r==="string"?n:typeof n).slice();e=(0,Z60.getFullScope)(u,e,t).split(u.defaultSeparator).map(o=>u.transformKey(o)).join(".");const a=i.map(o=>(0,J60.default)(u.translations,[o,e].join(".")));return a.push(t.defaultValue),a.find(o=>(0,Y60.isSet)(o))}c3.lookup=u50;var jE={},e50=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(jE,"__esModule",{value:!0});jE.numberToDelimited=void 0;const t50=e50(s3);function n50(u,e){const t=new t50.default(u);if(!t.isFinite())return u.toString();if(!e.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${e.delimiterPattern}`);let[n,r]=t.toString().split(".");return n=n.replace(e.delimiterPattern,i=>`${i}${e.delimiter}`),[n,r].filter(Boolean).join(e.separator)}jE.numberToDelimited=n50;var zE={};function r50(u,e){for(var t=-1,n=e.length,r=u.length;++t0&&t(o)?e>1?ZI(o,e-1,t,n,r):f50(r,o):n||(r[r.length]=o)}return r}var XI=ZI,c50=SE;function E50(){this.__data__=new c50,this.size=0}var d50=E50;function p50(u){var e=this.__data__,t=e.delete(u);return this.size=e.size,t}var h50=p50;function C50(u){return this.__data__.get(u)}var m50=C50;function b50(u){return this.__data__.has(u)}var g50=b50,A50=SE,y50=Eg,v50=dg,B50=200;function F50(u,e){var t=this.__data__;if(t instanceof A50){var n=t.__data__;if(!y50||n.lengtho))return!1;var f=i.get(u),l=i.get(e);if(f&&l)return f==e&&l==u;var c=-1,E=!0,d=t&j50?new I50:void 0;for(i.set(u,e),i.set(e,u);++ce||i&&a&&s&&!o&&!f||n&&a&&s||!t&&s||!r)return 1;if(!n&&!i&&!f&&u=o)return s;var f=t[n];return s*(f=="desc"?-1:1)}}return u.index-e.index}var Gd0=Hd0,G8=bI,Vd0=Cg,Kd0=gd0,Qd0=zd0,Jd0=$d0,Yd0=nN,Zd0=Gd0,Xd0=LE,u80=pr;function e80(u,e,t){e.length?e=G8(e,function(i){return u80(i)?function(a){return Vd0(a,i.length===1?i[0]:i)}:i}):e=[Xd0];var n=-1;e=G8(e,Yd0(Kd0));var r=Qd0(u,function(i,a,o){var s=G8(e,function(f){return f(i)});return{criteria:s,index:++n,value:i}});return Jd0(r,function(i,a){return Zd0(i,a,t)})}var t80=e80;function n80(u,e,t){switch(t.length){case 0:return u.call(e);case 1:return u.call(e,t[0]);case 2:return u.call(e,t[0],t[1]);case 3:return u.call(e,t[0],t[1],t[2])}return u.apply(e,t)}var r80=n80,i80=r80,_F=Math.max;function a80(u,e,t){return e=_F(e===void 0?u.length-1:e,0),function(){for(var n=arguments,r=-1,i=_F(n.length-e,0),a=Array(i);++r0){if(++e>=p80)return arguments[0]}else e=0;return u.apply(void 0,arguments)}}var b80=m80,g80=d80,A80=b80,y80=A80(g80),v80=y80,B80=LE,F80=o80,D80=v80;function w80(u,e){return D80(F80(u,e,B80),u+"")}var x80=w80,k80=XI,_80=t80,S80=x80,TF=Dg,T80=S80(function(u,e){if(u==null)return[];var t=e.length;return t>1&&TF(u,e[0],e[1])?e=[]:t>2&&TF(e[0],e[1],e[2])&&(e=[e[0]]),_80(u,k80(e,1),[])}),P80=T80;function O80(u,e,t){for(var n=-1,r=u.length,i=e.length,a={};++nparseInt(u,10)));function H80(u,e,t){const n={roundMode:t.roundMode,precision:t.precision,significant:t.significant};let r;if((0,W80.inferType)(t.units)==="string"){const c=t.units;if(r=(0,U80.lookup)(u,c),!r)throw new Error(`The scope "${u.locale}${u.defaultSeparator}${(0,$80.getFullScope)(u,c,{})}" couldn't be found`)}else r=t.units;let i=(0,PF.roundNumber)(new V8.default(e),n);const a=c=>(0,z80.default)(Object.keys(c).map(E=>q80[E]),E=>E*-1),o=(c,E)=>{const d=c.isZero()?0:Math.floor(Math.log10(c.abs().toNumber()));return a(E).find(p=>d>=p)||0},s=(c,E)=>{const d=yC[E.toString()];return c[d]||""},f=o(new V8.default(i),r),l=s(r,f);if(i=(0,PF.roundNumber)(new V8.default(i).div(Math.pow(10,f)),n),t.stripInsignificantZeros){let[c,E]=i.split(".");E=(E||"").replace(/0+$/,""),i=c,E&&(i+=`${t.separator}${E}`)}return t.format.replace("%n",i||"0").replace("%u",l).trim()}zE.numberToHuman=H80;var $E={},G80=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty($E,"__esModule",{value:!0});$E.numberToHumanSize=void 0;const a6=G80(s3),V80=Zo,K80=o3,OF=["byte","kb","mb","gb","tb","pb","eb"];function Q80(u,e,t){const n=(0,K80.expandRoundMode)(t.roundMode),r=1024,i=new a6.default(e).abs(),a=i.lt(r);let o;const s=(p,h)=>{const g=h.length-1,b=new a6.default(Math.log(p.toNumber())).div(Math.log(r)).integerValue(a6.default.ROUND_DOWN).toNumber();return Math.min(g,b)},f=p=>`number.human.storage_units.units.${a?"byte":p[l]}`,l=s(i,OF);a?o=i.integerValue():o=new a6.default((0,V80.roundNumber)(i.div(Math.pow(r,l)),{significant:t.significant,precision:t.precision,roundMode:t.roundMode}));const c=u.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),E=u.translate(f(OF),{count:i.integerValue().toNumber()});let d=o.toFixed(t.precision,n);return t.stripInsignificantZeros&&(d=d.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),c.replace("%n",d).replace("%u",E)}$E.numberToHumanSize=Q80;var ac={};Object.defineProperty(ac,"__esModule",{value:!0});ac.parseDate=void 0;function J80(u){if(u instanceof Date)return u;if(typeof u=="number"){const n=new Date;return n.setTime(u),n}const e=new String(u).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(e){const n=e.slice(1,8).map(E=>parseInt(E,10)||0);n[1]-=1;const[r,i,a,o,s,f,l]=n;return e[8]?new Date(Date.UTC(r,i,a,o,s,f,l)):new Date(r,i,a,o,s,f,l)}u.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)&&new Date().setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")));const t=new Date;return t.setTime(Date.parse(u)),t}ac.parseDate=J80;var UE={};Object.defineProperty(UE,"__esModule",{value:!0});UE.pluralize=void 0;const IF=Aa,Y80=c3;function Z80({i18n:u,count:e,scope:t,options:n,baseScope:r}){n=Object.assign({},n);let i,a;if(typeof t=="object"&&t?i=t:i=(0,Y80.lookup)(u,t,n),!i)return u.missingTranslation.get(t,n);const s=u.pluralization.get(n.locale)(u,e),f=[];for(;s.length;){const l=s.shift();if((0,IF.isSet)(i[l])){a=i[l];break}f.push(l)}return(0,IF.isSet)(a)?(n.count=e,u.interpolate(u,a,n)):u.missingTranslation.get(r.split(u.defaultSeparator).concat([f[0]]),n)}UE.pluralize=Z80;var WE={},X80=XI,up0=1/0;function ep0(u){var e=u==null?0:u.length;return e?X80(u,up0):[]}var tp0=ep0,lN=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(WE,"__esModule",{value:!0});WE.propertyFlatList=void 0;const np0=lN(Jo),rp0=lN(tp0);class ip0{constructor(e){this.target=e}call(){const e=(0,rp0.default)(Object.keys(this.target).map(t=>this.compute(this.target[t],t)));return e.sort(),e}compute(e,t){return!Array.isArray(e)&&(0,np0.default)(e)?Object.keys(e).map(n=>this.compute(e[n],`${t}.${n}`)):t}}function ap0(u){return new ip0(u).call()}WE.propertyFlatList=ap0;var qE={};Object.defineProperty(qE,"__esModule",{value:!0});qE.strftime=void 0;const op0={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};function sp0(u,e,t={}){const{abbrDayNames:n,dayNames:r,abbrMonthNames:i,monthNames:a,meridian:o}=Object.assign(Object.assign({},op0),t);if(isNaN(u.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const s=u.getDay(),f=u.getDate(),l=u.getFullYear(),c=u.getMonth()+1,E=u.getHours();let d=E;const p=E>11?"pm":"am",h=u.getSeconds(),g=u.getMinutes(),b=u.getTimezoneOffset(),m=Math.floor(Math.abs(b/60)),A=Math.abs(b)-m*60,y=(b>0?"-":"+")+(m.toString().length<2?"0"+m:m)+(A.toString().length<2?"0"+A:A);return d>12?d=d-12:d===0&&(d=12),e=e.replace("%a",n[s]),e=e.replace("%A",r[s]),e=e.replace("%b",i[c]),e=e.replace("%B",a[c]),e=e.replace("%d",f.toString().padStart(2,"0")),e=e.replace("%e",f.toString()),e=e.replace("%-d",f.toString()),e=e.replace("%H",E.toString().padStart(2,"0")),e=e.replace("%-H",E.toString()),e=e.replace("%k",E.toString()),e=e.replace("%I",d.toString().padStart(2,"0")),e=e.replace("%-I",d.toString()),e=e.replace("%l",d.toString()),e=e.replace("%m",c.toString().padStart(2,"0")),e=e.replace("%-m",c.toString()),e=e.replace("%M",g.toString().padStart(2,"0")),e=e.replace("%-M",g.toString()),e=e.replace("%p",o[p]),e=e.replace("%P",o[p].toLowerCase()),e=e.replace("%S",h.toString().padStart(2,"0")),e=e.replace("%-S",h.toString()),e=e.replace("%w",s.toString()),e=e.replace("%y",l.toString().padStart(2,"0").substr(-2)),e=e.replace("%-y",l.toString().padStart(2,"0").substr(-2).replace(/^0+/,"")),e=e.replace("%Y",l.toString()),e=e.replace(/%z/i,y),e}qE.strftime=sp0;var HE={},fp0=Math.ceil,lp0=Math.max;function cp0(u,e,t,n){for(var r=-1,i=lp0(fp0((e-u)/(t||1)),0),a=Array(i);i--;)a[n?i:++r]=u,u+=t;return a}var Ep0=cp0,dp0=Ep0,pp0=Dg,K8=QI;function hp0(u){return function(e,t,n){return n&&typeof n!="number"&&pp0(e,t,n)&&(t=n=void 0),e=K8(e),t===void 0?(t=e,e=0):t=K8(t),n=n===void 0?et>=u&&t<=e;function vp0(u,e,t,n={}){const r=n.scope||"datetime.distance_in_words",i=(C,D=0)=>u.t(C,{count:D,scope:r});e=(0,NF.parseDate)(e),t=(0,NF.parseDate)(t);let a=e.getTime()/1e3,o=t.getTime()/1e3;a>o&&([e,t,a,o]=[t,e,o,a]);const s=Math.round(o-a),f=Math.round((o-a)/60),c=f/60/24,E=Math.round(f/60),d=Math.round(c),p=Math.round(d/30);if(yt(0,1,f))return n.includeSeconds?yt(0,4,s)?i("less_than_x_seconds",5):yt(5,9,s)?i("less_than_x_seconds",10):yt(10,19,s)?i("less_than_x_seconds",20):yt(20,39,s)?i("half_a_minute"):yt(40,59,s)?i("less_than_x_minutes",1):i("x_minutes",1):f===0?i("less_than_x_minutes",1):i("x_minutes",f);if(yt(2,44,f))return i("x_minutes",f);if(yt(45,89,f))return i("about_x_hours",1);if(yt(90,1439,f))return i("about_x_hours",E);if(yt(1440,2519,f))return i("x_days",1);if(yt(2520,43199,f))return i("x_days",d);if(yt(43200,86399,f))return i("about_x_months",Math.round(f/43200));if(yt(86400,525599,f))return i("x_months",p);let h=e.getFullYear();e.getMonth()+1>=3&&(h+=1);let g=t.getFullYear();t.getMonth()+1<3&&(g-=1);const b=h>g?0:(0,yp0.default)(h,g).filter(C=>new Date(C,1,29).getMonth()==1).length,m=525600,A=b*1440,y=f-A,B=Math.trunc(y/m),v=parseFloat((y/m-B).toPrecision(3));return v<.25?i("about_x_years",B):v<.75?i("over_x_years",B):i("almost_x_years",B+1)}HE.timeAgoInWords=vp0;(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.timeAgoInWords=u.strftime=u.roundNumber=u.propertyFlatList=u.pluralize=u.parseDate=u.numberToHumanSize=u.numberToHuman=u.numberToDelimited=u.lookup=u.isSet=u.interpolate=u.inferType=u.getFullScope=u.formatNumber=u.expandRoundMode=u.createTranslationOptions=u.camelCaseKeys=void 0;var e=OE;Object.defineProperty(u,"camelCaseKeys",{enumerable:!0,get:function(){return e.camelCaseKeys}});var t=IE;Object.defineProperty(u,"createTranslationOptions",{enumerable:!0,get:function(){return t.createTranslationOptions}});var n=o3;Object.defineProperty(u,"expandRoundMode",{enumerable:!0,get:function(){return n.expandRoundMode}});var r=NE;Object.defineProperty(u,"formatNumber",{enumerable:!0,get:function(){return r.formatNumber}});var i=f3;Object.defineProperty(u,"getFullScope",{enumerable:!0,get:function(){return i.getFullScope}});var a=l3;Object.defineProperty(u,"inferType",{enumerable:!0,get:function(){return a.inferType}});var o=ME;Object.defineProperty(u,"interpolate",{enumerable:!0,get:function(){return o.interpolate}});var s=Aa;Object.defineProperty(u,"isSet",{enumerable:!0,get:function(){return s.isSet}});var f=c3;Object.defineProperty(u,"lookup",{enumerable:!0,get:function(){return f.lookup}});var l=jE;Object.defineProperty(u,"numberToDelimited",{enumerable:!0,get:function(){return l.numberToDelimited}});var c=zE;Object.defineProperty(u,"numberToHuman",{enumerable:!0,get:function(){return c.numberToHuman}});var E=$E;Object.defineProperty(u,"numberToHumanSize",{enumerable:!0,get:function(){return E.numberToHumanSize}});var d=ac;Object.defineProperty(u,"parseDate",{enumerable:!0,get:function(){return d.parseDate}});var p=UE;Object.defineProperty(u,"pluralize",{enumerable:!0,get:function(){return p.pluralize}});var h=WE;Object.defineProperty(u,"propertyFlatList",{enumerable:!0,get:function(){return h.propertyFlatList}});var g=Zo;Object.defineProperty(u,"roundNumber",{enumerable:!0,get:function(){return g.roundNumber}});var b=qE;Object.defineProperty(u,"strftime",{enumerable:!0,get:function(){return b.strftime}});var m=HE;Object.defineProperty(u,"timeAgoInWords",{enumerable:!0,get:function(){return m.timeAgoInWords}})})(Fg);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.MissingTranslation=u.errorStrategy=u.messageStrategy=u.guessStrategy=void 0;const e=Fg,t=function(a,o){o instanceof Array&&(o=o.join(a.defaultSeparator));const s=o.split(a.defaultSeparator).slice(-1)[0];return a.missingTranslationPrefix+s.replace("_"," ").replace(/([a-z])([A-Z])/g,(f,l,c)=>`${l} ${c.toLowerCase()}`)};u.guessStrategy=t;const n=(a,o,s)=>{const f=(0,e.getFullScope)(a,o,s),l="locale"in s?s.locale:a.locale,c=(0,e.inferType)(l);return`[missing "${[c=="string"?l:c,f].join(a.defaultSeparator)}" translation]`};u.messageStrategy=n;const r=(a,o,s)=>{const f=(0,e.getFullScope)(a,o,s),l=[a.locale,f].join(a.defaultSeparator);throw new Error(`Missing translation: ${l}`)};u.errorStrategy=r;class i{constructor(o){this.i18n=o,this.registry={},this.register("guess",u.guessStrategy),this.register("message",u.messageStrategy),this.register("error",u.errorStrategy)}register(o,s){this.registry[o]=s}get(o,s){var f;return this.registry[(f=s.missingBehavior)!==null&&f!==void 0?f:this.i18n.missingBehavior](this.i18n,o,s)}}u.MissingTranslation=i})(Bg);var Bp0=x0&&x0.__awaiter||function(u,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(l){try{f(n.next(l))}catch(c){a(c)}}function s(l){try{f(n.throw(l))}catch(c){a(c)}}function f(l){l.done?i(l.value):r(l.value).then(o,s)}f((n=n.apply(u,e||[])).next())})},GE=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(wE,"__esModule",{value:!0});wE.I18n=void 0;const RF=GE(mg),Fp0=GE(go0),Dp0=GE(Ro0),wp0=GE(zo0),xp0=Ag,kp0=vg,_p0=Bg,z0=Fg,Q8={defaultLocale:"en",availableLocales:["en"],locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(u,e)=>`[missing "${e}" value]`,nullPlaceholder:(u,e,t,n)=>u.missingPlaceholder(u,e,t,n),transformKey:u=>u};class Sp0{constructor(e={},t={}){this._locale=Q8.locale,this._defaultLocale=Q8.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.availableLocales=[],this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:n,enableFallback:r,missingBehavior:i,missingTranslationPrefix:a,missingPlaceholder:o,nullPlaceholder:s,defaultLocale:f,defaultSeparator:l,placeholder:c,transformKey:E}=Object.assign(Object.assign({},Q8),t);this.locale=n,this.defaultLocale=f,this.defaultSeparator=l,this.enableFallback=r,this.locale=n,this.missingBehavior=i,this.missingTranslationPrefix=a,this.missingPlaceholder=o,this.nullPlaceholder=s,this.placeholder=c,this.pluralization=new kp0.Pluralization(this),this.locales=new xp0.Locales(this),this.missingTranslation=new _p0.MissingTranslation(this),this.transformKey=E,this.interpolate=z0.interpolate,this.store(e)}store(e){(0,z0.propertyFlatList)(e).forEach(n=>(0,wp0.default)(this.translations,n,(0,RF.default)(e,n),Object)),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if(typeof e!="string")throw new Error(`Expected newLocale to be a string; got ${(0,z0.inferType)(e)}`);const t=this._locale!==e;this._locale=e,t&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if(typeof e!="string")throw new Error(`Expected newLocale to be a string; got ${(0,z0.inferType)(e)}`);const t=this._defaultLocale!==e;this._defaultLocale=e,t&&this.hasChanged()}translate(e,t){t=Object.assign({},t);const n=(0,z0.createTranslationOptions)(this,e,t);let r;return n.some(a=>((0,z0.isSet)(a.scope)?r=(0,z0.lookup)(this,a.scope,t):(0,z0.isSet)(a.message)&&(r=a.message),r!=null))?(typeof r=="string"?r=this.interpolate(this,r,t):typeof r=="object"&&r&&(0,z0.isSet)(t.count)&&(r=(0,z0.pluralize)({i18n:this,count:t.count||0,scope:r,options:t,baseScope:(0,z0.getFullScope)(this,e,t)})),t&&r instanceof Array&&(r=r.map(a=>typeof a=="string"?(0,z0.interpolate)(this,a,t):a)),r):this.missingTranslation.get(e,t)}pluralize(e,t,n){return(0,z0.pluralize)({i18n:this,count:e,scope:t,options:Object.assign({},n),baseScope:(0,z0.getFullScope)(this,t,n??{})})}localize(e,t,n){if(n=Object.assign({},n),t==null)return"";switch(e){case"currency":return this.numberToCurrency(t);case"number":return(0,z0.formatNumber)(t,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},(0,z0.lookup)(this,"number.format")));case"percentage":return this.numberToPercentage(t);default:{let r;return e.match(/^(date|time)/)?r=this.toTime(e,t):r=t.toString(),(0,z0.interpolate)(this,r,n)}}}toTime(e,t){const n=(0,z0.parseDate)(t),r=(0,z0.lookup)(this,e);return n.toString().match(/invalid/i)||!r?n.toString():this.strftime(n,r)}numberToCurrency(e,t={}){return(0,z0.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},(0,z0.camelCaseKeys)(this.get("number.format"))),(0,z0.camelCaseKeys)(this.get("number.currency.format"))),t))}numberToPercentage(e,t={}){return(0,z0.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},(0,z0.camelCaseKeys)(this.get("number.format"))),(0,z0.camelCaseKeys)(this.get("number.percentage.format"))),t))}numberToHumanSize(e,t={}){return(0,z0.numberToHumanSize)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,z0.camelCaseKeys)(this.get("number.human.format"))),(0,z0.camelCaseKeys)(this.get("number.human.storage_units"))),t))}numberToHuman(e,t={}){return(0,z0.numberToHuman)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,z0.camelCaseKeys)(this.get("number.human.format"))),(0,z0.camelCaseKeys)(this.get("number.human.decimal_units"))),t))}numberToRounded(e,t){return(0,z0.formatNumber)(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},t))}numberToDelimited(e,t={}){return(0,z0.numberToDelimited)(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},t))}withLocale(e,t){return Bp0(this,void 0,void 0,function*(){const n=this.locale;try{this.locale=e,yield t()}finally{this.locale=n}})}strftime(e,t,n={}){return(0,z0.strftime)(e,t,Object.assign(Object.assign(Object.assign({},(0,z0.camelCaseKeys)((0,z0.lookup)(this,"date"))),{meridian:{am:(0,z0.lookup)(this,"time.am")||"AM",pm:(0,z0.lookup)(this,"time.pm")||"PM"}}),n))}update(e,t,n={strict:!1}){if(n.strict&&!(0,Fp0.default)(this.translations,e))throw new Error(`The path "${e}" is not currently defined`);const r=(0,RF.default)(this.translations,e),i=(0,z0.inferType)(r),a=(0,z0.inferType)(t);if(n.strict&&i!==a)throw new Error(`The current type for "${e}" is "${i}", but you're trying to override it with "${a}"`);let o;a==="object"?o=Object.assign(Object.assign({},r),t):o=t,(0,Dp0.default)(this.translations,e,o),this.hasChanged()}toSentence(e,t={}){const{wordsConnector:n,twoWordsConnector:r,lastWordConnector:i}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},(0,z0.camelCaseKeys)((0,z0.lookup)(this,"support.array"))),t),a=e.length;switch(a){case 0:return"";case 1:return`${e[0]}`;case 2:return e.join(r);default:return[e.slice(0,a-1).join(n),i,e[a-1]].join("")}}timeAgoInWords(e,t,n={}){return(0,z0.timeAgoInWords)(this,e,t,n)}onChange(e){return this.onChangeHandlers.push(e),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}}get version(){return this._version}formatNumber(e,t){return(0,z0.formatNumber)(e,t)}get(e){return(0,z0.lookup)(this,e)}runCallbacks(){this.onChangeHandlers.forEach(e=>e(this))}hasChanged(){this._version+=1,this.runCallbacks()}}wE.I18n=Sp0;var cN={};Object.defineProperty(cN,"__esModule",{value:!0});(function(u){var e=x0&&x0.__createBinding||(Object.create?function(o,s,f,l){l===void 0&&(l=f);var c=Object.getOwnPropertyDescriptor(s,f);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(o,l,c)}:function(o,s,f,l){l===void 0&&(l=f),o[l]=s[f]}),t=x0&&x0.__exportStar||function(o,s){for(var f in o)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&e(s,o,f)};Object.defineProperty(u,"__esModule",{value:!0}),u.useMakePlural=u.Pluralization=u.MissingTranslation=u.Locales=u.I18n=void 0;var n=wE;Object.defineProperty(u,"I18n",{enumerable:!0,get:function(){return n.I18n}});var r=Ag;Object.defineProperty(u,"Locales",{enumerable:!0,get:function(){return r.Locales}});var i=Bg;Object.defineProperty(u,"MissingTranslation",{enumerable:!0,get:function(){return i.MissingTranslation}});var a=vg;Object.defineProperty(u,"Pluralization",{enumerable:!0,get:function(){return a.Pluralization}}),Object.defineProperty(u,"useMakePlural",{enumerable:!0,get:function(){return a.useMakePlural}}),t(cN,u)})(EI);var wi=function(){return wi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u")return Qp0;var e=Jp0(u),t=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-t+e[2]-e[0])}},Zp0=pN(),Xp0=function(u,e,t,n){var r=u.left,i=u.top,a=u.right,o=u.gap;return t===void 0&&(t="margin"),` + .`.concat(Op0,` { overflow: hidden `).concat(n,`; padding-right: `).concat(o,"px ").concat(n,`; } @@ -235,20 +235,20 @@ Error generating stack: `+i.message+` } body { - `).concat(T80,": ").concat(o,`px; + `).concat(Ip0,": ").concat(o,`px; } -`)},Y80=function(u){var e=u.noRelative,t=u.noImportant,n=u.gapMode,r=n===void 0?"margin":n,i=w.useMemo(function(){return K80(r)},[r]);return w.createElement(Q80,{styles:J80(i,!e,r,t?"":"!important")})},vC=!1;if(typeof window<"u")try{var o6=Object.defineProperty({},"passive",{get:function(){return vC=!0,!0}});window.addEventListener("test",o6,o6),window.removeEventListener("test",o6,o6)}catch{vC=!1}var cs=vC?{passive:!1}:!1,Z80=function(u){var e=window.getComputedStyle(u);return e.overflowY!=="hidden"&&!(e.overflowY===e.overflowX&&e.overflowY==="visible")},X80=function(u){var e=window.getComputedStyle(u);return e.overflowX!=="hidden"&&!(e.overflowY===e.overflowX&&e.overflowX==="visible")},NF=function(u,e){var t=e;do{typeof ShadowRoot<"u"&&t instanceof ShadowRoot&&(t=t.host);var n=EN(u,t);if(n){var r=dN(u,t),i=r[1],a=r[2];if(i>a)return!0}t=t.parentNode}while(t&&t!==document.body);return!1},uh0=function(u){var e=u.scrollTop,t=u.scrollHeight,n=u.clientHeight;return[e,t,n]},eh0=function(u){var e=u.scrollLeft,t=u.scrollWidth,n=u.clientWidth;return[e,t,n]},EN=function(u,e){return u==="v"?Z80(e):X80(e)},dN=function(u,e){return u==="v"?uh0(e):eh0(e)},th0=function(u,e){return u==="h"&&e==="rtl"?-1:1},nh0=function(u,e,t,n,r){var i=th0(u,window.getComputedStyle(e).direction),a=i*n,o=t.target,s=e.contains(o),f=!1,l=a>0,c=0,E=0;do{var d=dN(u,o),p=d[0],h=d[1],b=d[2],g=h-b-i*p;(p||g)&&EN(u,o)&&(c+=g,E+=p),o=o.parentNode}while(!s&&o!==document.body||s&&(e.contains(o)||e===o));return(l&&(r&&c===0||!r&&a>c)||!l&&(r&&E===0||!r&&-a>E))&&(f=!0),f},s6=function(u){return"changedTouches"in u?[u.changedTouches[0].clientX,u.changedTouches[0].clientY]:[0,0]},RF=function(u){return[u.deltaX,u.deltaY]},MF=function(u){return u&&"current"in u?u.current:u},rh0=function(u,e){return u[0]===e[0]&&u[1]===e[1]},ih0=function(u){return` +`)},uh0=function(u){var e=u.noRelative,t=u.noImportant,n=u.gapMode,r=n===void 0?"margin":n,i=w.useMemo(function(){return Yp0(r)},[r]);return w.createElement(Zp0,{styles:Xp0(i,!e,r,t?"":"!important")})},vC=!1;if(typeof window<"u")try{var o6=Object.defineProperty({},"passive",{get:function(){return vC=!0,!0}});window.addEventListener("test",o6,o6),window.removeEventListener("test",o6,o6)}catch{vC=!1}var cs=vC?{passive:!1}:!1,eh0=function(u){var e=window.getComputedStyle(u);return e.overflowY!=="hidden"&&!(e.overflowY===e.overflowX&&e.overflowY==="visible")},th0=function(u){var e=window.getComputedStyle(u);return e.overflowX!=="hidden"&&!(e.overflowY===e.overflowX&&e.overflowX==="visible")},jF=function(u,e){var t=e;do{typeof ShadowRoot<"u"&&t instanceof ShadowRoot&&(t=t.host);var n=hN(u,t);if(n){var r=CN(u,t),i=r[1],a=r[2];if(i>a)return!0}t=t.parentNode}while(t&&t!==document.body);return!1},nh0=function(u){var e=u.scrollTop,t=u.scrollHeight,n=u.clientHeight;return[e,t,n]},rh0=function(u){var e=u.scrollLeft,t=u.scrollWidth,n=u.clientWidth;return[e,t,n]},hN=function(u,e){return u==="v"?eh0(e):th0(e)},CN=function(u,e){return u==="v"?nh0(e):rh0(e)},ih0=function(u,e){return u==="h"&&e==="rtl"?-1:1},ah0=function(u,e,t,n,r){var i=ih0(u,window.getComputedStyle(e).direction),a=i*n,o=t.target,s=e.contains(o),f=!1,l=a>0,c=0,E=0;do{var d=CN(u,o),p=d[0],h=d[1],g=d[2],b=h-g-i*p;(p||b)&&hN(u,o)&&(c+=b,E+=p),o=o.parentNode}while(!s&&o!==document.body||s&&(e.contains(o)||e===o));return(l&&(r&&c===0||!r&&a>c)||!l&&(r&&E===0||!r&&-a>E))&&(f=!0),f},s6=function(u){return"changedTouches"in u?[u.changedTouches[0].clientX,u.changedTouches[0].clientY]:[0,0]},zF=function(u){return[u.deltaX,u.deltaY]},LF=function(u){return u&&"current"in u?u.current:u},oh0=function(u,e){return u[0]===e[0]&&u[1]===e[1]},sh0=function(u){return` .block-interactivity-`.concat(u,` {pointer-events: none;} .allow-interactivity-`).concat(u,` {pointer-events: all;} -`)},ah0=0,Es=[];function oh0(u){var e=w.useRef([]),t=w.useRef([0,0]),n=w.useRef(),r=w.useState(ah0++)[0],i=w.useState(function(){return cN()})[0],a=w.useRef(u);w.useEffect(function(){a.current=u},[u]),w.useEffect(function(){if(u.inert){document.body.classList.add("block-interactivity-".concat(r));var h=_80([u.lockRef.current],(u.shards||[]).map(MF),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(r))})}}},[u.inert,u.lockRef.current,u.shards]);var o=w.useCallback(function(h,b){if("touches"in h&&h.touches.length===2)return!a.current.allowPinchZoom;var g=s6(h),m=t.current,A="deltaX"in h?h.deltaX:m[0]-g[0],y="deltaY"in h?h.deltaY:m[1]-g[1],B,v=h.target,C=Math.abs(A)>Math.abs(y)?"h":"v";if("touches"in h&&C==="h"&&v.type==="range")return!1;var D=NF(C,v);if(!D)return!0;if(D?B=C:(B=C==="v"?"h":"v",D=NF(C,v)),!D)return!1;if(!n.current&&"changedTouches"in h&&(A||y)&&(n.current=B),!B)return!0;var T=n.current||B;return nh0(T,b,h,T==="h"?A:y,!0)},[]),s=w.useCallback(function(h){var b=h;if(!(!Es.length||Es[Es.length-1]!==i)){var g="deltaY"in b?RF(b):s6(b),m=e.current.filter(function(B){return B.name===b.type&&B.target===b.target&&rh0(B.delta,g)})[0];if(m&&m.should){b.preventDefault();return}if(!m){var A=(a.current.shards||[]).map(MF).filter(Boolean).filter(function(B){return B.contains(b.target)}),y=A.length>0?o(b,A[0]):!a.current.noIsolation;y&&b.preventDefault()}}},[]),f=w.useCallback(function(h,b,g,m){var A={name:h,delta:b,target:g,should:m};e.current.push(A),setTimeout(function(){e.current=e.current.filter(function(y){return y!==A})},1)},[]),l=w.useCallback(function(h){t.current=s6(h),n.current=void 0},[]),c=w.useCallback(function(h){f(h.type,RF(h),h.target,o(h,u.lockRef.current))},[]),E=w.useCallback(function(h){f(h.type,s6(h),h.target,o(h,u.lockRef.current))},[]);w.useEffect(function(){return Es.push(i),u.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:E}),document.addEventListener("wheel",s,cs),document.addEventListener("touchmove",s,cs),document.addEventListener("touchstart",l,cs),function(){Es=Es.filter(function(h){return h!==i}),document.removeEventListener("wheel",s,cs),document.removeEventListener("touchmove",s,cs),document.removeEventListener("touchstart",l,cs)}},[]);var d=u.removeScrollBar,p=u.inert;return w.createElement(w.Fragment,null,p?w.createElement(i,{styles:ih0(r)}):null,d?w.createElement(Y80,{gapMode:"margin"}):null)}const sh0=z80(lN,oh0);var pN=w.forwardRef(function(u,e){return w.createElement(V5,wi({},u,{ref:e,sideCar:sh0}))});pN.classNames=V5.classNames;const fh0=pN;function jF(u){var e=u.match(/^var\((.*)\)$/);return e?e[1]:u}function lh0(u,e){var t=u;for(var n of e){if(!(n in t))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));t=t[n]}return t}function hN(u,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=u.constructor();for(var r in u){var i=u[r],a=[...t,r];typeof i=="string"||typeof i=="number"||i==null?n[r]=e(i,a):typeof i=="object"&&!Array.isArray(i)?n[r]=hN(i,e,a):console.warn('Skipping invalid key "'.concat(a.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return n}function zF(u,e){var t={};if(typeof e=="object"){var n=u;hN(e,(a,o)=>{var s=lh0(n,o);t[jF(s)]=String(a)})}else{var r=u;for(var i in r)t[jF(i)]=r[i]}return Object.defineProperty(t,"toString",{value:function(){return Object.keys(this).map(o=>"".concat(o,":").concat(this[o])).join(";")},writable:!1}),t}var BC={exports:{}};(function(u,e){(function(t,n){var r="1.0.37",i="",a="?",o="function",s="undefined",f="object",l="string",c="major",E="model",d="name",p="type",h="vendor",b="version",g="architecture",m="console",A="mobile",y="tablet",B="smarttv",v="wearable",C="embedded",D=500,T="Amazon",_="Apple",$="ASUS",u0="BlackBerry",e0="Browser",o0="Chrome",N="Edge",R="Firefox",V="Google",G="Huawei",H="LG",L="Microsoft",n0="Motorola",s0="Opera",a0="Samsung",K="Sharp",v0="Sony",_0="Xiaomi",O0="Zebra",T0="Facebook",w0="Chromium OS",k="Mac OS",S=function(C0,B0){var E0={};for(var b0 in C0)B0[b0]&&B0[b0].length%2===0?E0[b0]=B0[b0].concat(C0[b0]):E0[b0]=C0[b0];return E0},P=function(C0){for(var B0={},E0=0;E00?M0.length===2?typeof M0[1]==o?this[M0[0]]=M0[1].call(this,U0):this[M0[0]]=M0[1]:M0.length===3?typeof M0[1]===o&&!(M0[1].exec&&M0[1].test)?this[M0[0]]=U0?M0[1].call(this,U0,M0[2]):n:this[M0[0]]=U0?U0.replace(M0[1],M0[2]):n:M0.length===4&&(this[M0[0]]=U0?M0[3].call(this,U0.replace(M0[1],M0[2])):n):this[M0]=U0||n;E0+=2}},U=function(C0,B0){for(var E0 in B0)if(typeof B0[E0]===f&&B0[E0].length>0){for(var b0=0;b02&&(y0[E]="iPad",y0[p]=y),y0},this.getEngine=function(){var y0={};return y0[d]=n,y0[b]=n,j.call(y0,b0,G0.engine),y0},this.getOS=function(){var y0={};return y0[d]=n,y0[b]=n,j.call(y0,b0,G0.os),M0&&!y0[d]&&h0&&h0.platform!="Unknown"&&(y0[d]=h0.platform.replace(/chrome os/i,w0).replace(/macos/i,k)),y0},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 b0},this.setUA=function(y0){return b0=typeof y0===l&&y0.length>D?J(y0,D):y0,this},this.setUA(b0),this};p0.VERSION=r,p0.BROWSER=P([d,b,c]),p0.CPU=P([g]),p0.DEVICE=P([E,h,p,m,A,B,y,v,C]),p0.ENGINE=p0.OS=P([d,b]),u.exports&&(e=u.exports=p0),e.UAParser=p0;var m0=typeof t!==s&&(t.jQuery||t.Zepto);if(m0&&!m0.ua){var P0=new p0;m0.ua=P0.getResult(),m0.ua.get=function(){return P0.getUA()},m0.ua.set=function(C0){P0.setUA(C0);var B0=P0.getResult();for(var E0 in B0)m0.ua[E0]=B0[E0]}}})(typeof window=="object"?window:x0)})(BC,BC.exports);var ch0=BC.exports,o1={},Eh0=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},CN={},Wt={};let kb;const dh0=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Wt.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Wt.getSymbolTotalCodewords=function(e){return dh0[e]};Wt.getBCHDigit=function(u){let e=0;for(;u!==0;)e++,u>>>=1;return e};Wt.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');kb=e};Wt.isKanjiModeEnabled=function(){return typeof kb<"u"};Wt.toSJIS=function(e){return kb(e)};var K5={};(function(u){u.L={bit:1},u.M={bit:0},u.Q={bit:3},u.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return u.L;case"m":case"medium":return u.M;case"q":case"quartile":return u.Q;case"h":case"high":return u.H;default:throw new Error("Unknown EC Level: "+t)}}u.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},u.from=function(n,r){if(u.isValid(n))return n;try{return e(n)}catch{return r}}})(K5);function mN(){this.buffer=[],this.length=0}mN.prototype={get:function(u){const e=Math.floor(u/8);return(this.buffer[e]>>>7-u%8&1)===1},put:function(u,e){for(let t=0;t>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(u){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),u&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var ph0=mN;function s1(u){if(!u||u<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=u,this.data=new Uint8Array(u*u),this.reservedBit=new Uint8Array(u*u)}s1.prototype.set=function(u,e,t,n){const r=u*this.size+e;this.data[r]=t,n&&(this.reservedBit[r]=!0)};s1.prototype.get=function(u,e){return this.data[u*this.size+e]};s1.prototype.xor=function(u,e,t){this.data[u*this.size+e]^=t};s1.prototype.isReserved=function(u,e){return this.reservedBit[u*this.size+e]};var hh0=s1,gN={};(function(u){const e=Wt.getSymbolSize;u.getRowColCoords=function(n){if(n===1)return[];const r=Math.floor(n/7)+2,i=e(n),a=i===145?26:Math.ceil((i-13)/(2*r-2))*2,o=[i-7];for(let s=1;s=0&&r<=7},u.from=function(r){return u.isValid(r)?parseInt(r,10):void 0},u.getPenaltyN1=function(r){const i=r.size;let a=0,o=0,s=0,f=null,l=null;for(let c=0;c=5&&(a+=e.N1+(o-5)),f=d,o=1),d=r.get(E,c),d===l?s++:(s>=5&&(a+=e.N1+(s-5)),l=d,s=1)}o>=5&&(a+=e.N1+(o-5)),s>=5&&(a+=e.N1+(s-5))}return a},u.getPenaltyN2=function(r){const i=r.size;let a=0;for(let o=0;o=10&&(o===1488||o===93)&&a++,s=s<<1&2047|r.get(l,f),l>=10&&(s===1488||s===93)&&a++}return a*e.N3},u.getPenaltyN4=function(r){let i=0;const a=r.data.length;for(let s=0;s=0;){const a=i[0];for(let s=0;s0){const i=new Uint8Array(this.degree);return i.set(n,r),i}return n};var mh0=_b,BN={},ya={},Sb={};Sb.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var hr={};const FN="[0-9]+",gh0="[A-Z $%*+\\-./:]+";let Ql="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ql=Ql.replace(/u/g,"\\u");const bh0="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ql+`)(?:.|[\r -]))+`;hr.KANJI=new RegExp(Ql,"g");hr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");hr.BYTE=new RegExp(bh0,"g");hr.NUMERIC=new RegExp(FN,"g");hr.ALPHANUMERIC=new RegExp(gh0,"g");const Ah0=new RegExp("^"+Ql+"$"),yh0=new RegExp("^"+FN+"$"),vh0=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");hr.testKanji=function(e){return Ah0.test(e)};hr.testNumeric=function(e){return yh0.test(e)};hr.testAlphanumeric=function(e){return vh0.test(e)};(function(u){const e=Sb,t=hr;u.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},u.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},u.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},u.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},u.MIXED={bit:-1},u.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!e.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},u.getBestModeForData=function(i){return t.testNumeric(i)?u.NUMERIC:t.testAlphanumeric(i)?u.ALPHANUMERIC:t.testKanji(i)?u.KANJI:u.BYTE},u.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},u.isValid=function(i){return i&&i.bit&&i.ccBits};function n(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return u.NUMERIC;case"alphanumeric":return u.ALPHANUMERIC;case"kanji":return u.KANJI;case"byte":return u.BYTE;default:throw new Error("Unknown mode: "+r)}}u.from=function(i,a){if(u.isValid(i))return i;try{return n(i)}catch{return a}}})(ya);(function(u){const e=Wt,t=Q5,n=K5,r=ya,i=Sb,a=7973,o=e.getBCHDigit(a);function s(E,d,p){for(let h=1;h<=40;h++)if(d<=u.getCapacity(h,p,E))return h}function f(E,d){return r.getCharCountIndicator(E,d)+4}function l(E,d){let p=0;return E.forEach(function(h){const b=f(h.mode,d);p+=b+h.getBitsLength()}),p}function c(E,d){for(let p=1;p<=40;p++)if(l(E,p)<=u.getCapacity(p,d,r.MIXED))return p}u.from=function(d,p){return i.isValid(d)?parseInt(d,10):p},u.getCapacity=function(d,p,h){if(!i.isValid(d))throw new Error("Invalid QR Code version");typeof h>"u"&&(h=r.BYTE);const b=e.getSymbolTotalCodewords(d),g=t.getTotalCodewordsCount(d,p),m=(b-g)*8;if(h===r.MIXED)return m;const A=m-f(h,d);switch(h){case r.NUMERIC:return Math.floor(A/10*3);case r.ALPHANUMERIC:return Math.floor(A/11*2);case r.KANJI:return Math.floor(A/13);case r.BYTE:default:return Math.floor(A/8)}},u.getBestVersionForData=function(d,p){let h;const b=n.from(p,n.M);if(Array.isArray(d)){if(d.length>1)return c(d,b);if(d.length===0)return 1;h=d[0]}else h=d;return s(h.mode,h.getLength(),b)},u.getEncodedBits=function(d){if(!i.isValid(d)||d<7)throw new Error("Invalid QR Code version");let p=d<<12;for(;e.getBCHDigit(p)-o>=0;)p^=a<=0;)r^=wN<0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))};var Dh0=F3;const wh0=ya,Zp=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function D3(u){this.mode=wh0.ALPHANUMERIC,this.data=u}D3.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};D3.prototype.getLength=function(){return this.data.length};D3.prototype.getBitsLength=function(){return D3.getBitsLength(this.data.length)};D3.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=Zp.indexOf(this.data[t])*45;n+=Zp.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(Zp.indexOf(this.data[t]),6)};var xh0=D3,kh0=function(e){for(var t=[],n=e.length,r=0;r=55296&&i<=56319&&n>r+1){var a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,r+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(i&63|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(i&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer};const _h0=kh0,Sh0=ya;function w3(u){this.mode=Sh0.BYTE,this.data=new Uint8Array(_h0(u))}w3.getBitsLength=function(e){return e*8};w3.prototype.getLength=function(){return this.data.length};w3.prototype.getBitsLength=function(){return w3.getBitsLength(this.data.length)};w3.prototype.write=function(u){for(let e=0,t=this.data.length;e=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` -Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),u.put(t,13)}};var Ih0=x3,kN={exports:{}};(function(u){var e={single_source_shortest_paths:function(t,n,r){var i={},a={};a[n]=0;var o=e.PriorityQueue.make();o.push(n,0);for(var s,f,l,c,E,d,p,h,b;!o.empty();){s=o.pop(),f=s.value,c=s.cost,E=t[f]||{};for(l in E)E.hasOwnProperty(l)&&(d=E[l],p=c+d,h=a[l],b=typeof a[l]>"u",(b||h>p)&&(a[l]=p,o.push(l,p),i[l]=f))}if(typeof r<"u"&&typeof a[r]>"u"){var g=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(g)}return i},extract_shortest_path_from_predecessor_list:function(t,n){for(var r=[],i=n;i;)r.push(i),t[i],i=t[i];return r.reverse(),r},find_path:function(t,n,r){var i=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(t){var n=e.PriorityQueue,r={},i;t=t||{};for(i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){var r={value:t,cost:n};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};u.exports=e})(kN);var Nh0=kN.exports;(function(u){const e=ya,t=Dh0,n=xh0,r=Th0,i=Ih0,a=hr,o=Wt,s=Nh0;function f(g){return unescape(encodeURIComponent(g)).length}function l(g,m,A){const y=[];let B;for(;(B=g.exec(A))!==null;)y.push({data:B[0],index:B.index,mode:m,length:B[0].length});return y}function c(g){const m=l(a.NUMERIC,e.NUMERIC,g),A=l(a.ALPHANUMERIC,e.ALPHANUMERIC,g);let y,B;return o.isKanjiModeEnabled()?(y=l(a.BYTE,e.BYTE,g),B=l(a.KANJI,e.KANJI,g)):(y=l(a.BYTE_KANJI,e.BYTE,g),B=[]),m.concat(A,y,B).sort(function(C,D){return C.index-D.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function E(g,m){switch(m){case e.NUMERIC:return t.getBitsLength(g);case e.ALPHANUMERIC:return n.getBitsLength(g);case e.KANJI:return i.getBitsLength(g);case e.BYTE:return r.getBitsLength(g)}}function d(g){return g.reduce(function(m,A){const y=m.length-1>=0?m[m.length-1]:null;return y&&y.mode===A.mode?(m[m.length-1].data+=A.data,m):(m.push(A),m)},[])}function p(g){const m=[];for(let A=0;A=0&&o<=6&&(s===0||s===6)||s>=0&&s<=6&&(o===0||o===6)||o>=2&&o<=4&&s>=2&&s<=4?u.set(i+o,a+s,!0,!0):u.set(i+o,a+s,!1,!0))}}function qh0(u){const e=u.size;for(let t=8;t>o&1)===1,u.set(r,i,a,!0),u.set(i,r,a,!0)}function e8(u,e,t){const n=u.size,r=$h0.getEncodedBits(e,t);let i,a;for(i=0;i<15;i++)a=(r>>i&1)===1,i<6?u.set(i,8,a,!0):i<8?u.set(i+1,8,a,!0):u.set(n-15+i,8,a,!0),i<8?u.set(8,n-i-1,a,!0):i<9?u.set(8,15-i-1+1,a,!0):u.set(8,15-i-1,a,!0);u.set(n-8,8,1,!0)}function Vh0(u,e){const t=u.size;let n=-1,r=t-1,i=7,a=0;for(let o=t-1;o>0;o-=2)for(o===6&&o--;;){for(let s=0;s<2;s++)if(!u.isReserved(r,o-s)){let f=!1;a>>i&1)===1),u.set(r,o-s,f),i--,i===-1&&(a++,i=7)}if(r+=n,r<0||t<=r){r-=n,n=-n;break}}}function Kh0(u,e,t){const n=new Rh0;t.forEach(function(s){n.put(s.mode.bit,4),n.put(s.getLength(),Uh0.getCharCountIndicator(s.mode,u)),s.write(n)});const r=Y5.getSymbolTotalCodewords(u),i=wC.getTotalCodewordsCount(u,e),a=(r-i)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const o=(a-n.getLengthInBits())/8;for(let s=0;sMath.abs(y)?"h":"v";if("touches"in h&&C==="h"&&v.type==="range")return!1;var D=jF(C,v);if(!D)return!0;if(D?B=C:(B=C==="v"?"h":"v",D=jF(C,v)),!D)return!1;if(!n.current&&"changedTouches"in h&&(A||y)&&(n.current=B),!B)return!0;var T=n.current||B;return ah0(T,g,h,T==="h"?A:y,!0)},[]),s=w.useCallback(function(h){var g=h;if(!(!Es.length||Es[Es.length-1]!==i)){var b="deltaY"in g?zF(g):s6(g),m=e.current.filter(function(B){return B.name===g.type&&B.target===g.target&&oh0(B.delta,b)})[0];if(m&&m.should){g.preventDefault();return}if(!m){var A=(a.current.shards||[]).map(LF).filter(Boolean).filter(function(B){return B.contains(g.target)}),y=A.length>0?o(g,A[0]):!a.current.noIsolation;y&&g.preventDefault()}}},[]),f=w.useCallback(function(h,g,b,m){var A={name:h,delta:g,target:b,should:m};e.current.push(A),setTimeout(function(){e.current=e.current.filter(function(y){return y!==A})},1)},[]),l=w.useCallback(function(h){t.current=s6(h),n.current=void 0},[]),c=w.useCallback(function(h){f(h.type,zF(h),h.target,o(h,u.lockRef.current))},[]),E=w.useCallback(function(h){f(h.type,s6(h),h.target,o(h,u.lockRef.current))},[]);w.useEffect(function(){return Es.push(i),u.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:E}),document.addEventListener("wheel",s,cs),document.addEventListener("touchmove",s,cs),document.addEventListener("touchstart",l,cs),function(){Es=Es.filter(function(h){return h!==i}),document.removeEventListener("wheel",s,cs),document.removeEventListener("touchmove",s,cs),document.removeEventListener("touchstart",l,cs)}},[]);var d=u.removeScrollBar,p=u.inert;return w.createElement(w.Fragment,null,p?w.createElement(i,{styles:sh0(r)}):null,d?w.createElement(uh0,{gapMode:"margin"}):null)}const ch0=Up0(dN,lh0);var mN=w.forwardRef(function(u,e){return w.createElement(VE,wi({},u,{ref:e,sideCar:ch0}))});mN.classNames=VE.classNames;const Eh0=mN;function $F(u){var e=u.match(/^var\((.*)\)$/);return e?e[1]:u}function dh0(u,e){var t=u;for(var n of e){if(!(n in t))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));t=t[n]}return t}function bN(u,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=u.constructor();for(var r in u){var i=u[r],a=[...t,r];typeof i=="string"||typeof i=="number"||i==null?n[r]=e(i,a):typeof i=="object"&&!Array.isArray(i)?n[r]=bN(i,e,a):console.warn('Skipping invalid key "'.concat(a.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return n}function UF(u,e){var t={};if(typeof e=="object"){var n=u;bN(e,(a,o)=>{var s=dh0(n,o);t[$F(s)]=String(a)})}else{var r=u;for(var i in r)t[$F(i)]=r[i]}return Object.defineProperty(t,"toString",{value:function(){return Object.keys(this).map(o=>"".concat(o,":").concat(this[o])).join(";")},writable:!1}),t}var BC={exports:{}};(function(u,e){(function(t,n){var r="1.0.37",i="",a="?",o="function",s="undefined",f="object",l="string",c="major",E="model",d="name",p="type",h="vendor",g="version",b="architecture",m="console",A="mobile",y="tablet",B="smarttv",v="wearable",C="embedded",D=500,T="Amazon",_="Apple",$="ASUS",u0="BlackBerry",e0="Browser",o0="Chrome",N="Edge",R="Firefox",V="Google",G="Huawei",H="LG",L="Microsoft",n0="Motorola",s0="Opera",a0="Samsung",K="Sharp",v0="Sony",_0="Xiaomi",O0="Zebra",T0="Facebook",w0="Chromium OS",k="Mac OS",S=function(C0,B0){var E0={};for(var g0 in C0)B0[g0]&&B0[g0].length%2===0?E0[g0]=B0[g0].concat(C0[g0]):E0[g0]=C0[g0];return E0},P=function(C0){for(var B0={},E0=0;E00?M0.length===2?typeof M0[1]==o?this[M0[0]]=M0[1].call(this,U0):this[M0[0]]=M0[1]:M0.length===3?typeof M0[1]===o&&!(M0[1].exec&&M0[1].test)?this[M0[0]]=U0?M0[1].call(this,U0,M0[2]):n:this[M0[0]]=U0?U0.replace(M0[1],M0[2]):n:M0.length===4&&(this[M0[0]]=U0?M0[3].call(this,U0.replace(M0[1],M0[2])):n):this[M0]=U0||n;E0+=2}},U=function(C0,B0){for(var E0 in B0)if(typeof B0[E0]===f&&B0[E0].length>0){for(var g0=0;g02&&(y0[E]="iPad",y0[p]=y),y0},this.getEngine=function(){var y0={};return y0[d]=n,y0[g]=n,j.call(y0,g0,G0.engine),y0},this.getOS=function(){var y0={};return y0[d]=n,y0[g]=n,j.call(y0,g0,G0.os),M0&&!y0[d]&&h0&&h0.platform!="Unknown"&&(y0[d]=h0.platform.replace(/chrome os/i,w0).replace(/macos/i,k)),y0},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 g0},this.setUA=function(y0){return g0=typeof y0===l&&y0.length>D?J(y0,D):y0,this},this.setUA(g0),this};p0.VERSION=r,p0.BROWSER=P([d,g,c]),p0.CPU=P([b]),p0.DEVICE=P([E,h,p,m,A,B,y,v,C]),p0.ENGINE=p0.OS=P([d,g]),u.exports&&(e=u.exports=p0),e.UAParser=p0;var m0=typeof t!==s&&(t.jQuery||t.Zepto);if(m0&&!m0.ua){var P0=new p0;m0.ua=P0.getResult(),m0.ua.get=function(){return P0.getUA()},m0.ua.set=function(C0){P0.setUA(C0);var B0=P0.getResult();for(var E0 in B0)m0.ua[E0]=B0[E0]}}})(typeof window=="object"?window:x0)})(BC,BC.exports);var ph0=BC.exports,oc={},hh0=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},gN={},Wt={};let kg;const Ch0=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Wt.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Wt.getSymbolTotalCodewords=function(e){return Ch0[e]};Wt.getBCHDigit=function(u){let e=0;for(;u!==0;)e++,u>>>=1;return e};Wt.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');kg=e};Wt.isKanjiModeEnabled=function(){return typeof kg<"u"};Wt.toSJIS=function(e){return kg(e)};var KE={};(function(u){u.L={bit:1},u.M={bit:0},u.Q={bit:3},u.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return u.L;case"m":case"medium":return u.M;case"q":case"quartile":return u.Q;case"h":case"high":return u.H;default:throw new Error("Unknown EC Level: "+t)}}u.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},u.from=function(n,r){if(u.isValid(n))return n;try{return e(n)}catch{return r}}})(KE);function AN(){this.buffer=[],this.length=0}AN.prototype={get:function(u){const e=Math.floor(u/8);return(this.buffer[e]>>>7-u%8&1)===1},put:function(u,e){for(let t=0;t>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(u){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),u&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var mh0=AN;function sc(u){if(!u||u<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=u,this.data=new Uint8Array(u*u),this.reservedBit=new Uint8Array(u*u)}sc.prototype.set=function(u,e,t,n){const r=u*this.size+e;this.data[r]=t,n&&(this.reservedBit[r]=!0)};sc.prototype.get=function(u,e){return this.data[u*this.size+e]};sc.prototype.xor=function(u,e,t){this.data[u*this.size+e]^=t};sc.prototype.isReserved=function(u,e){return this.reservedBit[u*this.size+e]};var bh0=sc,yN={};(function(u){const e=Wt.getSymbolSize;u.getRowColCoords=function(n){if(n===1)return[];const r=Math.floor(n/7)+2,i=e(n),a=i===145?26:Math.ceil((i-13)/(2*r-2))*2,o=[i-7];for(let s=1;s=0&&r<=7},u.from=function(r){return u.isValid(r)?parseInt(r,10):void 0},u.getPenaltyN1=function(r){const i=r.size;let a=0,o=0,s=0,f=null,l=null;for(let c=0;c=5&&(a+=e.N1+(o-5)),f=d,o=1),d=r.get(E,c),d===l?s++:(s>=5&&(a+=e.N1+(s-5)),l=d,s=1)}o>=5&&(a+=e.N1+(o-5)),s>=5&&(a+=e.N1+(s-5))}return a},u.getPenaltyN2=function(r){const i=r.size;let a=0;for(let o=0;o=10&&(o===1488||o===93)&&a++,s=s<<1&2047|r.get(l,f),l>=10&&(s===1488||s===93)&&a++}return a*e.N3},u.getPenaltyN4=function(r){let i=0;const a=r.data.length;for(let s=0;s=0;){const a=i[0];for(let s=0;s0){const i=new Uint8Array(this.degree);return i.set(n,r),i}return n};var Ah0=_g,wN={},ya={},Sg={};Sg.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var hr={};const xN="[0-9]+",yh0="[A-Z $%*+\\-./:]+";let Yl="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Yl=Yl.replace(/u/g,"\\u");const vh0="(?:(?![A-Z0-9 $%*+\\-./:]|"+Yl+`)(?:.|[\r +]))+`;hr.KANJI=new RegExp(Yl,"g");hr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");hr.BYTE=new RegExp(vh0,"g");hr.NUMERIC=new RegExp(xN,"g");hr.ALPHANUMERIC=new RegExp(yh0,"g");const Bh0=new RegExp("^"+Yl+"$"),Fh0=new RegExp("^"+xN+"$"),Dh0=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");hr.testKanji=function(e){return Bh0.test(e)};hr.testNumeric=function(e){return Fh0.test(e)};hr.testAlphanumeric=function(e){return Dh0.test(e)};(function(u){const e=Sg,t=hr;u.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},u.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},u.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},u.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},u.MIXED={bit:-1},u.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!e.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},u.getBestModeForData=function(i){return t.testNumeric(i)?u.NUMERIC:t.testAlphanumeric(i)?u.ALPHANUMERIC:t.testKanji(i)?u.KANJI:u.BYTE},u.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},u.isValid=function(i){return i&&i.bit&&i.ccBits};function n(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return u.NUMERIC;case"alphanumeric":return u.ALPHANUMERIC;case"kanji":return u.KANJI;case"byte":return u.BYTE;default:throw new Error("Unknown mode: "+r)}}u.from=function(i,a){if(u.isValid(i))return i;try{return n(i)}catch{return a}}})(ya);(function(u){const e=Wt,t=QE,n=KE,r=ya,i=Sg,a=7973,o=e.getBCHDigit(a);function s(E,d,p){for(let h=1;h<=40;h++)if(d<=u.getCapacity(h,p,E))return h}function f(E,d){return r.getCharCountIndicator(E,d)+4}function l(E,d){let p=0;return E.forEach(function(h){const g=f(h.mode,d);p+=g+h.getBitsLength()}),p}function c(E,d){for(let p=1;p<=40;p++)if(l(E,p)<=u.getCapacity(p,d,r.MIXED))return p}u.from=function(d,p){return i.isValid(d)?parseInt(d,10):p},u.getCapacity=function(d,p,h){if(!i.isValid(d))throw new Error("Invalid QR Code version");typeof h>"u"&&(h=r.BYTE);const g=e.getSymbolTotalCodewords(d),b=t.getTotalCodewordsCount(d,p),m=(g-b)*8;if(h===r.MIXED)return m;const A=m-f(h,d);switch(h){case r.NUMERIC:return Math.floor(A/10*3);case r.ALPHANUMERIC:return Math.floor(A/11*2);case r.KANJI:return Math.floor(A/13);case r.BYTE:default:return Math.floor(A/8)}},u.getBestVersionForData=function(d,p){let h;const g=n.from(p,n.M);if(Array.isArray(d)){if(d.length>1)return c(d,g);if(d.length===0)return 1;h=d[0]}else h=d;return s(h.mode,h.getLength(),g)},u.getEncodedBits=function(d){if(!i.isValid(d)||d<7)throw new Error("Invalid QR Code version");let p=d<<12;for(;e.getBCHDigit(p)-o>=0;)p^=a<=0;)r^=_N<0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))};var kh0=wf;const _h0=ya,Z8=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function xf(u){this.mode=_h0.ALPHANUMERIC,this.data=u}xf.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};xf.prototype.getLength=function(){return this.data.length};xf.prototype.getBitsLength=function(){return xf.getBitsLength(this.data.length)};xf.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=Z8.indexOf(this.data[t])*45;n+=Z8.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(Z8.indexOf(this.data[t]),6)};var Sh0=xf,Th0=function(e){for(var t=[],n=e.length,r=0;r=55296&&i<=56319&&n>r+1){var a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,r+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(i&63|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(i&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer};const Ph0=Th0,Oh0=ya;function kf(u){this.mode=Oh0.BYTE,this.data=new Uint8Array(Ph0(u))}kf.getBitsLength=function(e){return e*8};kf.prototype.getLength=function(){return this.data.length};kf.prototype.getBitsLength=function(){return kf.getBitsLength(this.data.length)};kf.prototype.write=function(u){for(let e=0,t=this.data.length;e=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` +Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),u.put(t,13)}};var Mh0=_f,TN={exports:{}};(function(u){var e={single_source_shortest_paths:function(t,n,r){var i={},a={};a[n]=0;var o=e.PriorityQueue.make();o.push(n,0);for(var s,f,l,c,E,d,p,h,g;!o.empty();){s=o.pop(),f=s.value,c=s.cost,E=t[f]||{};for(l in E)E.hasOwnProperty(l)&&(d=E[l],p=c+d,h=a[l],g=typeof a[l]>"u",(g||h>p)&&(a[l]=p,o.push(l,p),i[l]=f))}if(typeof r<"u"&&typeof a[r]>"u"){var b=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(b)}return i},extract_shortest_path_from_predecessor_list:function(t,n){for(var r=[],i=n;i;)r.push(i),t[i],i=t[i];return r.reverse(),r},find_path:function(t,n,r){var i=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(t){var n=e.PriorityQueue,r={},i;t=t||{};for(i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){var r={value:t,cost:n};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};u.exports=e})(TN);var jh0=TN.exports;(function(u){const e=ya,t=kh0,n=Sh0,r=Ih0,i=Mh0,a=hr,o=Wt,s=jh0;function f(b){return unescape(encodeURIComponent(b)).length}function l(b,m,A){const y=[];let B;for(;(B=b.exec(A))!==null;)y.push({data:B[0],index:B.index,mode:m,length:B[0].length});return y}function c(b){const m=l(a.NUMERIC,e.NUMERIC,b),A=l(a.ALPHANUMERIC,e.ALPHANUMERIC,b);let y,B;return o.isKanjiModeEnabled()?(y=l(a.BYTE,e.BYTE,b),B=l(a.KANJI,e.KANJI,b)):(y=l(a.BYTE_KANJI,e.BYTE,b),B=[]),m.concat(A,y,B).sort(function(C,D){return C.index-D.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function E(b,m){switch(m){case e.NUMERIC:return t.getBitsLength(b);case e.ALPHANUMERIC:return n.getBitsLength(b);case e.KANJI:return i.getBitsLength(b);case e.BYTE:return r.getBitsLength(b)}}function d(b){return b.reduce(function(m,A){const y=m.length-1>=0?m[m.length-1]:null;return y&&y.mode===A.mode?(m[m.length-1].data+=A.data,m):(m.push(A),m)},[])}function p(b){const m=[];for(let A=0;A=0&&o<=6&&(s===0||s===6)||s>=0&&s<=6&&(o===0||o===6)||o>=2&&o<=4&&s>=2&&s<=4?u.set(i+o,a+s,!0,!0):u.set(i+o,a+s,!1,!0))}}function Vh0(u){const e=u.size;for(let t=8;t>o&1)===1,u.set(r,i,a,!0),u.set(i,r,a,!0)}function ep(u,e,t){const n=u.size,r=qh0.getEncodedBits(e,t);let i,a;for(i=0;i<15;i++)a=(r>>i&1)===1,i<6?u.set(i,8,a,!0):i<8?u.set(i+1,8,a,!0):u.set(n-15+i,8,a,!0),i<8?u.set(8,n-i-1,a,!0):i<9?u.set(8,15-i-1+1,a,!0):u.set(8,15-i-1,a,!0);u.set(n-8,8,1,!0)}function Jh0(u,e){const t=u.size;let n=-1,r=t-1,i=7,a=0;for(let o=t-1;o>0;o-=2)for(o===6&&o--;;){for(let s=0;s<2;s++)if(!u.isReserved(r,o-s)){let f=!1;a>>i&1)===1),u.set(r,o-s,f),i--,i===-1&&(a++,i=7)}if(r+=n,r<0||t<=r){r-=n,n=-n;break}}}function Yh0(u,e,t){const n=new zh0;t.forEach(function(s){n.put(s.mode.bit,4),n.put(s.getLength(),Hh0.getCharCountIndicator(s.mode,u)),s.write(n)});const r=YE.getSymbolTotalCodewords(u),i=wC.getTotalCodewordsCount(u,e),a=(r-i)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const o=(a-n.getLengthInBits())/8;for(let s=0;s=7&&Gh0(s,e),Vh0(s,a),isNaN(n)&&(n=DC.getBestMask(s,e8.bind(null,s,t))),DC.applyMask(n,s),e8(s,t,n),{modules:s,version:e,errorCorrectionLevel:t,maskPattern:n,segments:r}}CN.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Xp.M,r,i;return typeof t<"u"&&(n=Xp.from(t.errorCorrectionLevel,Xp.M),r=C9.from(t.version),i=DC.from(t.maskPattern),t.toSJISFunc&&Y5.setToSJISFunction(t.toSJISFunc)),Jh0(e,r,n,i)};var _N={},Tb={};(function(u){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let n=t.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+t);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");const r=parseInt(n.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+n.slice(0,6).join("")}}u.getOptions=function(n){n||(n={}),n.color||(n.color={});const r=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,a=n.scale||4;return{width:i,scale:i?4:a,margin:r,color:{dark:e(n.color.dark||"#000000ff"),light:e(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},u.getScale=function(n,r){return r.width&&r.width>=n+r.margin*2?r.width/(n+r.margin*2):r.scale},u.getImageWidth=function(n,r){const i=u.getScale(n,r);return Math.floor((n+r.margin*2)*i)},u.qrToImageData=function(n,r,i){const a=r.modules.size,o=r.modules.data,s=u.getScale(a,i),f=Math.floor((a+i.margin*2)*s),l=i.margin*s,c=[i.color.light,i.color.dark];for(let E=0;E=l&&d>=l&&E"u"&&(!a||!a.getContext)&&(s=a,a=void 0),a||(f=n()),s=e.getOptions(s);const l=e.getImageWidth(i.modules.size,s),c=f.getContext("2d"),E=c.createImageData(l,l);return e.qrToImageData(E.data,i,s),t(c,f,l),c.putImageData(E,0,0),f},u.renderToDataURL=function(i,a,o){let s=o;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),s||(s={});const f=u.render(i,a,s),l=s.type||"image/png",c=s.rendererOpts||{};return f.toDataURL(l,c.quality)}})(_N);var SN={};const Yh0=Tb;function UF(u,e){const t=u.a/255,n=e+'="'+u.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function t8(u,e,t){let n=u+e;return typeof t<"u"&&(n+=" "+t),n}function Zh0(u,e,t){let n="",r=0,i=!1,a=0;for(let o=0;o0&&s>0&&u[o-1]||(n+=i?t8("M",s+t,.5+f+t):t8("m",r,0),r=0,i=!1),s+1':"",f="',l='viewBox="0 0 '+o+" "+o+'"',E=''+s+f+` -`;return typeof n=="function"&&n(null,E),E};const Xh0=Eh0,xC=CN,TN=_N,uC0=SN;function Pb(u,e,t,n,r){const i=[].slice.call(arguments,1),a=i.length,o=typeof i[a-1]=="function";if(!o&&!Xh0())throw new Error("Callback required as last argument");if(o){if(a<2)throw new Error("Too few arguments provided");a===2?(r=t,t=e,e=n=void 0):a===3&&(e.getContext&&typeof r>"u"?(r=n,n=void 0):(r=n,n=t,t=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(t=e,e=n=void 0):a===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(s,f){try{const l=xC.create(t,n);s(u(l,e,n))}catch(l){f(l)}})}try{const s=xC.create(t,n);r(null,u(s,e,n))}catch(s){r(s)}}o1.create=xC.create;o1.toCanvas=Pb.bind(null,TN.render);o1.toDataURL=Pb.bind(null,TN.renderToDataURL);o1.toString=Pb.bind(null,function(u,e,t){return uC0.render(u,t)});var eC0=768,ds=xK({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),tC0=KS({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),kC=TK({conditions:{defaultCondition:"base",conditionNames:["base","hover","active"],responsiveArray:void 0},styles:{background:{values:{accentColor:{conditions:{base:"ju367v9h",hover:"ju367v9i",active:"ju367v9j"},defaultClass:"ju367v9h"},accentColorForeground:{conditions:{base:"ju367v9k",hover:"ju367v9l",active:"ju367v9m"},defaultClass:"ju367v9k"},actionButtonBorder:{conditions:{base:"ju367v9n",hover:"ju367v9o",active:"ju367v9p"},defaultClass:"ju367v9n"},actionButtonBorderMobile:{conditions:{base:"ju367v9q",hover:"ju367v9r",active:"ju367v9s"},defaultClass:"ju367v9q"},actionButtonSecondaryBackground:{conditions:{base:"ju367v9t",hover:"ju367v9u",active:"ju367v9v"},defaultClass:"ju367v9t"},closeButton:{conditions:{base:"ju367v9w",hover:"ju367v9x",active:"ju367v9y"},defaultClass:"ju367v9w"},closeButtonBackground:{conditions:{base:"ju367v9z",hover:"ju367va0",active:"ju367va1"},defaultClass:"ju367v9z"},connectButtonBackground:{conditions:{base:"ju367va2",hover:"ju367va3",active:"ju367va4"},defaultClass:"ju367va2"},connectButtonBackgroundError:{conditions:{base:"ju367va5",hover:"ju367va6",active:"ju367va7"},defaultClass:"ju367va5"},connectButtonInnerBackground:{conditions:{base:"ju367va8",hover:"ju367va9",active:"ju367vaa"},defaultClass:"ju367va8"},connectButtonText:{conditions:{base:"ju367vab",hover:"ju367vac",active:"ju367vad"},defaultClass:"ju367vab"},connectButtonTextError:{conditions:{base:"ju367vae",hover:"ju367vaf",active:"ju367vag"},defaultClass:"ju367vae"},connectionIndicator:{conditions:{base:"ju367vah",hover:"ju367vai",active:"ju367vaj"},defaultClass:"ju367vah"},downloadBottomCardBackground:{conditions:{base:"ju367vak",hover:"ju367val",active:"ju367vam"},defaultClass:"ju367vak"},downloadTopCardBackground:{conditions:{base:"ju367van",hover:"ju367vao",active:"ju367vap"},defaultClass:"ju367van"},error:{conditions:{base:"ju367vaq",hover:"ju367var",active:"ju367vas"},defaultClass:"ju367vaq"},generalBorder:{conditions:{base:"ju367vat",hover:"ju367vau",active:"ju367vav"},defaultClass:"ju367vat"},generalBorderDim:{conditions:{base:"ju367vaw",hover:"ju367vax",active:"ju367vay"},defaultClass:"ju367vaw"},menuItemBackground:{conditions:{base:"ju367vaz",hover:"ju367vb0",active:"ju367vb1"},defaultClass:"ju367vaz"},modalBackdrop:{conditions:{base:"ju367vb2",hover:"ju367vb3",active:"ju367vb4"},defaultClass:"ju367vb2"},modalBackground:{conditions:{base:"ju367vb5",hover:"ju367vb6",active:"ju367vb7"},defaultClass:"ju367vb5"},modalBorder:{conditions:{base:"ju367vb8",hover:"ju367vb9",active:"ju367vba"},defaultClass:"ju367vb8"},modalText:{conditions:{base:"ju367vbb",hover:"ju367vbc",active:"ju367vbd"},defaultClass:"ju367vbb"},modalTextDim:{conditions:{base:"ju367vbe",hover:"ju367vbf",active:"ju367vbg"},defaultClass:"ju367vbe"},modalTextSecondary:{conditions:{base:"ju367vbh",hover:"ju367vbi",active:"ju367vbj"},defaultClass:"ju367vbh"},profileAction:{conditions:{base:"ju367vbk",hover:"ju367vbl",active:"ju367vbm"},defaultClass:"ju367vbk"},profileActionHover:{conditions:{base:"ju367vbn",hover:"ju367vbo",active:"ju367vbp"},defaultClass:"ju367vbn"},profileForeground:{conditions:{base:"ju367vbq",hover:"ju367vbr",active:"ju367vbs"},defaultClass:"ju367vbq"},selectedOptionBorder:{conditions:{base:"ju367vbt",hover:"ju367vbu",active:"ju367vbv"},defaultClass:"ju367vbt"},standby:{conditions:{base:"ju367vbw",hover:"ju367vbx",active:"ju367vby"},defaultClass:"ju367vbw"}}},borderColor:{values:{accentColor:{conditions:{base:"ju367vbz",hover:"ju367vc0",active:"ju367vc1"},defaultClass:"ju367vbz"},accentColorForeground:{conditions:{base:"ju367vc2",hover:"ju367vc3",active:"ju367vc4"},defaultClass:"ju367vc2"},actionButtonBorder:{conditions:{base:"ju367vc5",hover:"ju367vc6",active:"ju367vc7"},defaultClass:"ju367vc5"},actionButtonBorderMobile:{conditions:{base:"ju367vc8",hover:"ju367vc9",active:"ju367vca"},defaultClass:"ju367vc8"},actionButtonSecondaryBackground:{conditions:{base:"ju367vcb",hover:"ju367vcc",active:"ju367vcd"},defaultClass:"ju367vcb"},closeButton:{conditions:{base:"ju367vce",hover:"ju367vcf",active:"ju367vcg"},defaultClass:"ju367vce"},closeButtonBackground:{conditions:{base:"ju367vch",hover:"ju367vci",active:"ju367vcj"},defaultClass:"ju367vch"},connectButtonBackground:{conditions:{base:"ju367vck",hover:"ju367vcl",active:"ju367vcm"},defaultClass:"ju367vck"},connectButtonBackgroundError:{conditions:{base:"ju367vcn",hover:"ju367vco",active:"ju367vcp"},defaultClass:"ju367vcn"},connectButtonInnerBackground:{conditions:{base:"ju367vcq",hover:"ju367vcr",active:"ju367vcs"},defaultClass:"ju367vcq"},connectButtonText:{conditions:{base:"ju367vct",hover:"ju367vcu",active:"ju367vcv"},defaultClass:"ju367vct"},connectButtonTextError:{conditions:{base:"ju367vcw",hover:"ju367vcx",active:"ju367vcy"},defaultClass:"ju367vcw"},connectionIndicator:{conditions:{base:"ju367vcz",hover:"ju367vd0",active:"ju367vd1"},defaultClass:"ju367vcz"},downloadBottomCardBackground:{conditions:{base:"ju367vd2",hover:"ju367vd3",active:"ju367vd4"},defaultClass:"ju367vd2"},downloadTopCardBackground:{conditions:{base:"ju367vd5",hover:"ju367vd6",active:"ju367vd7"},defaultClass:"ju367vd5"},error:{conditions:{base:"ju367vd8",hover:"ju367vd9",active:"ju367vda"},defaultClass:"ju367vd8"},generalBorder:{conditions:{base:"ju367vdb",hover:"ju367vdc",active:"ju367vdd"},defaultClass:"ju367vdb"},generalBorderDim:{conditions:{base:"ju367vde",hover:"ju367vdf",active:"ju367vdg"},defaultClass:"ju367vde"},menuItemBackground:{conditions:{base:"ju367vdh",hover:"ju367vdi",active:"ju367vdj"},defaultClass:"ju367vdh"},modalBackdrop:{conditions:{base:"ju367vdk",hover:"ju367vdl",active:"ju367vdm"},defaultClass:"ju367vdk"},modalBackground:{conditions:{base:"ju367vdn",hover:"ju367vdo",active:"ju367vdp"},defaultClass:"ju367vdn"},modalBorder:{conditions:{base:"ju367vdq",hover:"ju367vdr",active:"ju367vds"},defaultClass:"ju367vdq"},modalText:{conditions:{base:"ju367vdt",hover:"ju367vdu",active:"ju367vdv"},defaultClass:"ju367vdt"},modalTextDim:{conditions:{base:"ju367vdw",hover:"ju367vdx",active:"ju367vdy"},defaultClass:"ju367vdw"},modalTextSecondary:{conditions:{base:"ju367vdz",hover:"ju367ve0",active:"ju367ve1"},defaultClass:"ju367vdz"},profileAction:{conditions:{base:"ju367ve2",hover:"ju367ve3",active:"ju367ve4"},defaultClass:"ju367ve2"},profileActionHover:{conditions:{base:"ju367ve5",hover:"ju367ve6",active:"ju367ve7"},defaultClass:"ju367ve5"},profileForeground:{conditions:{base:"ju367ve8",hover:"ju367ve9",active:"ju367vea"},defaultClass:"ju367ve8"},selectedOptionBorder:{conditions:{base:"ju367veb",hover:"ju367vec",active:"ju367ved"},defaultClass:"ju367veb"},standby:{conditions:{base:"ju367vee",hover:"ju367vef",active:"ju367veg"},defaultClass:"ju367vee"}}},boxShadow:{values:{connectButton:{conditions:{base:"ju367veh",hover:"ju367vei",active:"ju367vej"},defaultClass:"ju367veh"},dialog:{conditions:{base:"ju367vek",hover:"ju367vel",active:"ju367vem"},defaultClass:"ju367vek"},profileDetailsAction:{conditions:{base:"ju367ven",hover:"ju367veo",active:"ju367vep"},defaultClass:"ju367ven"},selectedOption:{conditions:{base:"ju367veq",hover:"ju367ver",active:"ju367ves"},defaultClass:"ju367veq"},selectedWallet:{conditions:{base:"ju367vet",hover:"ju367veu",active:"ju367vev"},defaultClass:"ju367vet"},walletLogo:{conditions:{base:"ju367vew",hover:"ju367vex",active:"ju367vey"},defaultClass:"ju367vew"}}},color:{values:{accentColor:{conditions:{base:"ju367vez",hover:"ju367vf0",active:"ju367vf1"},defaultClass:"ju367vez"},accentColorForeground:{conditions:{base:"ju367vf2",hover:"ju367vf3",active:"ju367vf4"},defaultClass:"ju367vf2"},actionButtonBorder:{conditions:{base:"ju367vf5",hover:"ju367vf6",active:"ju367vf7"},defaultClass:"ju367vf5"},actionButtonBorderMobile:{conditions:{base:"ju367vf8",hover:"ju367vf9",active:"ju367vfa"},defaultClass:"ju367vf8"},actionButtonSecondaryBackground:{conditions:{base:"ju367vfb",hover:"ju367vfc",active:"ju367vfd"},defaultClass:"ju367vfb"},closeButton:{conditions:{base:"ju367vfe",hover:"ju367vff",active:"ju367vfg"},defaultClass:"ju367vfe"},closeButtonBackground:{conditions:{base:"ju367vfh",hover:"ju367vfi",active:"ju367vfj"},defaultClass:"ju367vfh"},connectButtonBackground:{conditions:{base:"ju367vfk",hover:"ju367vfl",active:"ju367vfm"},defaultClass:"ju367vfk"},connectButtonBackgroundError:{conditions:{base:"ju367vfn",hover:"ju367vfo",active:"ju367vfp"},defaultClass:"ju367vfn"},connectButtonInnerBackground:{conditions:{base:"ju367vfq",hover:"ju367vfr",active:"ju367vfs"},defaultClass:"ju367vfq"},connectButtonText:{conditions:{base:"ju367vft",hover:"ju367vfu",active:"ju367vfv"},defaultClass:"ju367vft"},connectButtonTextError:{conditions:{base:"ju367vfw",hover:"ju367vfx",active:"ju367vfy"},defaultClass:"ju367vfw"},connectionIndicator:{conditions:{base:"ju367vfz",hover:"ju367vg0",active:"ju367vg1"},defaultClass:"ju367vfz"},downloadBottomCardBackground:{conditions:{base:"ju367vg2",hover:"ju367vg3",active:"ju367vg4"},defaultClass:"ju367vg2"},downloadTopCardBackground:{conditions:{base:"ju367vg5",hover:"ju367vg6",active:"ju367vg7"},defaultClass:"ju367vg5"},error:{conditions:{base:"ju367vg8",hover:"ju367vg9",active:"ju367vga"},defaultClass:"ju367vg8"},generalBorder:{conditions:{base:"ju367vgb",hover:"ju367vgc",active:"ju367vgd"},defaultClass:"ju367vgb"},generalBorderDim:{conditions:{base:"ju367vge",hover:"ju367vgf",active:"ju367vgg"},defaultClass:"ju367vge"},menuItemBackground:{conditions:{base:"ju367vgh",hover:"ju367vgi",active:"ju367vgj"},defaultClass:"ju367vgh"},modalBackdrop:{conditions:{base:"ju367vgk",hover:"ju367vgl",active:"ju367vgm"},defaultClass:"ju367vgk"},modalBackground:{conditions:{base:"ju367vgn",hover:"ju367vgo",active:"ju367vgp"},defaultClass:"ju367vgn"},modalBorder:{conditions:{base:"ju367vgq",hover:"ju367vgr",active:"ju367vgs"},defaultClass:"ju367vgq"},modalText:{conditions:{base:"ju367vgt",hover:"ju367vgu",active:"ju367vgv"},defaultClass:"ju367vgt"},modalTextDim:{conditions:{base:"ju367vgw",hover:"ju367vgx",active:"ju367vgy"},defaultClass:"ju367vgw"},modalTextSecondary:{conditions:{base:"ju367vgz",hover:"ju367vh0",active:"ju367vh1"},defaultClass:"ju367vgz"},profileAction:{conditions:{base:"ju367vh2",hover:"ju367vh3",active:"ju367vh4"},defaultClass:"ju367vh2"},profileActionHover:{conditions:{base:"ju367vh5",hover:"ju367vh6",active:"ju367vh7"},defaultClass:"ju367vh5"},profileForeground:{conditions:{base:"ju367vh8",hover:"ju367vh9",active:"ju367vha"},defaultClass:"ju367vh8"},selectedOptionBorder:{conditions:{base:"ju367vhb",hover:"ju367vhc",active:"ju367vhd"},defaultClass:"ju367vhb"},standby:{conditions:{base:"ju367vhe",hover:"ju367vhf",active:"ju367vhg"},defaultClass:"ju367vhe"}}}}},{conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0},styles:{alignItems:{values:{"flex-start":{conditions:{smallScreen:"ju367v0",largeScreen:"ju367v1"},defaultClass:"ju367v0"},"flex-end":{conditions:{smallScreen:"ju367v2",largeScreen:"ju367v3"},defaultClass:"ju367v2"},center:{conditions:{smallScreen:"ju367v4",largeScreen:"ju367v5"},defaultClass:"ju367v4"}}},display:{values:{none:{conditions:{smallScreen:"ju367v6",largeScreen:"ju367v7"},defaultClass:"ju367v6"},block:{conditions:{smallScreen:"ju367v8",largeScreen:"ju367v9"},defaultClass:"ju367v8"},flex:{conditions:{smallScreen:"ju367va",largeScreen:"ju367vb"},defaultClass:"ju367va"},inline:{conditions:{smallScreen:"ju367vc",largeScreen:"ju367vd"},defaultClass:"ju367vc"}}}}},{conditions:void 0,styles:{margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},alignSelf:{values:{"flex-start":{defaultClass:"ju367ve"},"flex-end":{defaultClass:"ju367vf"},center:{defaultClass:"ju367vg"}}},backgroundSize:{values:{cover:{defaultClass:"ju367vh"}}},borderRadius:{values:{1:{defaultClass:"ju367vi"},6:{defaultClass:"ju367vj"},10:{defaultClass:"ju367vk"},13:{defaultClass:"ju367vl"},actionButton:{defaultClass:"ju367vm"},connectButton:{defaultClass:"ju367vn"},menuButton:{defaultClass:"ju367vo"},modal:{defaultClass:"ju367vp"},modalMobile:{defaultClass:"ju367vq"},"25%":{defaultClass:"ju367vr"},full:{defaultClass:"ju367vs"}}},borderStyle:{values:{solid:{defaultClass:"ju367vt"}}},borderWidth:{values:{0:{defaultClass:"ju367vu"},1:{defaultClass:"ju367vv"},2:{defaultClass:"ju367vw"},4:{defaultClass:"ju367vx"}}},cursor:{values:{pointer:{defaultClass:"ju367vy"},none:{defaultClass:"ju367vz"}}},pointerEvents:{values:{none:{defaultClass:"ju367v10"},all:{defaultClass:"ju367v11"}}},minHeight:{values:{8:{defaultClass:"ju367v12"},44:{defaultClass:"ju367v13"}}},flexDirection:{values:{row:{defaultClass:"ju367v14"},column:{defaultClass:"ju367v15"}}},fontFamily:{values:{body:{defaultClass:"ju367v16"}}},fontSize:{values:{12:{defaultClass:"ju367v17"},13:{defaultClass:"ju367v18"},14:{defaultClass:"ju367v19"},16:{defaultClass:"ju367v1a"},18:{defaultClass:"ju367v1b"},20:{defaultClass:"ju367v1c"},23:{defaultClass:"ju367v1d"}}},fontWeight:{values:{regular:{defaultClass:"ju367v1e"},medium:{defaultClass:"ju367v1f"},semibold:{defaultClass:"ju367v1g"},bold:{defaultClass:"ju367v1h"},heavy:{defaultClass:"ju367v1i"}}},gap:{values:{0:{defaultClass:"ju367v1j"},1:{defaultClass:"ju367v1k"},2:{defaultClass:"ju367v1l"},3:{defaultClass:"ju367v1m"},4:{defaultClass:"ju367v1n"},5:{defaultClass:"ju367v1o"},6:{defaultClass:"ju367v1p"},8:{defaultClass:"ju367v1q"},10:{defaultClass:"ju367v1r"},12:{defaultClass:"ju367v1s"},14:{defaultClass:"ju367v1t"},16:{defaultClass:"ju367v1u"},18:{defaultClass:"ju367v1v"},20:{defaultClass:"ju367v1w"},24:{defaultClass:"ju367v1x"},28:{defaultClass:"ju367v1y"},32:{defaultClass:"ju367v1z"},36:{defaultClass:"ju367v20"},44:{defaultClass:"ju367v21"},64:{defaultClass:"ju367v22"},"-1":{defaultClass:"ju367v23"}}},height:{values:{1:{defaultClass:"ju367v24"},2:{defaultClass:"ju367v25"},4:{defaultClass:"ju367v26"},8:{defaultClass:"ju367v27"},12:{defaultClass:"ju367v28"},20:{defaultClass:"ju367v29"},24:{defaultClass:"ju367v2a"},28:{defaultClass:"ju367v2b"},30:{defaultClass:"ju367v2c"},32:{defaultClass:"ju367v2d"},34:{defaultClass:"ju367v2e"},36:{defaultClass:"ju367v2f"},40:{defaultClass:"ju367v2g"},44:{defaultClass:"ju367v2h"},48:{defaultClass:"ju367v2i"},54:{defaultClass:"ju367v2j"},60:{defaultClass:"ju367v2k"},200:{defaultClass:"ju367v2l"},full:{defaultClass:"ju367v2m"},max:{defaultClass:"ju367v2n"}}},justifyContent:{values:{"flex-start":{defaultClass:"ju367v2o"},"flex-end":{defaultClass:"ju367v2p"},center:{defaultClass:"ju367v2q"},"space-between":{defaultClass:"ju367v2r"},"space-around":{defaultClass:"ju367v2s"}}},textAlign:{values:{left:{defaultClass:"ju367v2t"},center:{defaultClass:"ju367v2u"},inherit:{defaultClass:"ju367v2v"}}},marginBottom:{values:{0:{defaultClass:"ju367v2w"},1:{defaultClass:"ju367v2x"},2:{defaultClass:"ju367v2y"},3:{defaultClass:"ju367v2z"},4:{defaultClass:"ju367v30"},5:{defaultClass:"ju367v31"},6:{defaultClass:"ju367v32"},8:{defaultClass:"ju367v33"},10:{defaultClass:"ju367v34"},12:{defaultClass:"ju367v35"},14:{defaultClass:"ju367v36"},16:{defaultClass:"ju367v37"},18:{defaultClass:"ju367v38"},20:{defaultClass:"ju367v39"},24:{defaultClass:"ju367v3a"},28:{defaultClass:"ju367v3b"},32:{defaultClass:"ju367v3c"},36:{defaultClass:"ju367v3d"},44:{defaultClass:"ju367v3e"},64:{defaultClass:"ju367v3f"},"-1":{defaultClass:"ju367v3g"}}},marginLeft:{values:{0:{defaultClass:"ju367v3h"},1:{defaultClass:"ju367v3i"},2:{defaultClass:"ju367v3j"},3:{defaultClass:"ju367v3k"},4:{defaultClass:"ju367v3l"},5:{defaultClass:"ju367v3m"},6:{defaultClass:"ju367v3n"},8:{defaultClass:"ju367v3o"},10:{defaultClass:"ju367v3p"},12:{defaultClass:"ju367v3q"},14:{defaultClass:"ju367v3r"},16:{defaultClass:"ju367v3s"},18:{defaultClass:"ju367v3t"},20:{defaultClass:"ju367v3u"},24:{defaultClass:"ju367v3v"},28:{defaultClass:"ju367v3w"},32:{defaultClass:"ju367v3x"},36:{defaultClass:"ju367v3y"},44:{defaultClass:"ju367v3z"},64:{defaultClass:"ju367v40"},"-1":{defaultClass:"ju367v41"}}},marginRight:{values:{0:{defaultClass:"ju367v42"},1:{defaultClass:"ju367v43"},2:{defaultClass:"ju367v44"},3:{defaultClass:"ju367v45"},4:{defaultClass:"ju367v46"},5:{defaultClass:"ju367v47"},6:{defaultClass:"ju367v48"},8:{defaultClass:"ju367v49"},10:{defaultClass:"ju367v4a"},12:{defaultClass:"ju367v4b"},14:{defaultClass:"ju367v4c"},16:{defaultClass:"ju367v4d"},18:{defaultClass:"ju367v4e"},20:{defaultClass:"ju367v4f"},24:{defaultClass:"ju367v4g"},28:{defaultClass:"ju367v4h"},32:{defaultClass:"ju367v4i"},36:{defaultClass:"ju367v4j"},44:{defaultClass:"ju367v4k"},64:{defaultClass:"ju367v4l"},"-1":{defaultClass:"ju367v4m"}}},marginTop:{values:{0:{defaultClass:"ju367v4n"},1:{defaultClass:"ju367v4o"},2:{defaultClass:"ju367v4p"},3:{defaultClass:"ju367v4q"},4:{defaultClass:"ju367v4r"},5:{defaultClass:"ju367v4s"},6:{defaultClass:"ju367v4t"},8:{defaultClass:"ju367v4u"},10:{defaultClass:"ju367v4v"},12:{defaultClass:"ju367v4w"},14:{defaultClass:"ju367v4x"},16:{defaultClass:"ju367v4y"},18:{defaultClass:"ju367v4z"},20:{defaultClass:"ju367v50"},24:{defaultClass:"ju367v51"},28:{defaultClass:"ju367v52"},32:{defaultClass:"ju367v53"},36:{defaultClass:"ju367v54"},44:{defaultClass:"ju367v55"},64:{defaultClass:"ju367v56"},"-1":{defaultClass:"ju367v57"}}},maxWidth:{values:{1:{defaultClass:"ju367v58"},2:{defaultClass:"ju367v59"},4:{defaultClass:"ju367v5a"},8:{defaultClass:"ju367v5b"},12:{defaultClass:"ju367v5c"},20:{defaultClass:"ju367v5d"},24:{defaultClass:"ju367v5e"},28:{defaultClass:"ju367v5f"},30:{defaultClass:"ju367v5g"},32:{defaultClass:"ju367v5h"},34:{defaultClass:"ju367v5i"},36:{defaultClass:"ju367v5j"},40:{defaultClass:"ju367v5k"},44:{defaultClass:"ju367v5l"},48:{defaultClass:"ju367v5m"},54:{defaultClass:"ju367v5n"},60:{defaultClass:"ju367v5o"},200:{defaultClass:"ju367v5p"},full:{defaultClass:"ju367v5q"},max:{defaultClass:"ju367v5r"}}},minWidth:{values:{1:{defaultClass:"ju367v5s"},2:{defaultClass:"ju367v5t"},4:{defaultClass:"ju367v5u"},8:{defaultClass:"ju367v5v"},12:{defaultClass:"ju367v5w"},20:{defaultClass:"ju367v5x"},24:{defaultClass:"ju367v5y"},28:{defaultClass:"ju367v5z"},30:{defaultClass:"ju367v60"},32:{defaultClass:"ju367v61"},34:{defaultClass:"ju367v62"},36:{defaultClass:"ju367v63"},40:{defaultClass:"ju367v64"},44:{defaultClass:"ju367v65"},48:{defaultClass:"ju367v66"},54:{defaultClass:"ju367v67"},60:{defaultClass:"ju367v68"},200:{defaultClass:"ju367v69"},full:{defaultClass:"ju367v6a"},max:{defaultClass:"ju367v6b"}}},overflow:{values:{hidden:{defaultClass:"ju367v6c"}}},paddingBottom:{values:{0:{defaultClass:"ju367v6d"},1:{defaultClass:"ju367v6e"},2:{defaultClass:"ju367v6f"},3:{defaultClass:"ju367v6g"},4:{defaultClass:"ju367v6h"},5:{defaultClass:"ju367v6i"},6:{defaultClass:"ju367v6j"},8:{defaultClass:"ju367v6k"},10:{defaultClass:"ju367v6l"},12:{defaultClass:"ju367v6m"},14:{defaultClass:"ju367v6n"},16:{defaultClass:"ju367v6o"},18:{defaultClass:"ju367v6p"},20:{defaultClass:"ju367v6q"},24:{defaultClass:"ju367v6r"},28:{defaultClass:"ju367v6s"},32:{defaultClass:"ju367v6t"},36:{defaultClass:"ju367v6u"},44:{defaultClass:"ju367v6v"},64:{defaultClass:"ju367v6w"},"-1":{defaultClass:"ju367v6x"}}},paddingLeft:{values:{0:{defaultClass:"ju367v6y"},1:{defaultClass:"ju367v6z"},2:{defaultClass:"ju367v70"},3:{defaultClass:"ju367v71"},4:{defaultClass:"ju367v72"},5:{defaultClass:"ju367v73"},6:{defaultClass:"ju367v74"},8:{defaultClass:"ju367v75"},10:{defaultClass:"ju367v76"},12:{defaultClass:"ju367v77"},14:{defaultClass:"ju367v78"},16:{defaultClass:"ju367v79"},18:{defaultClass:"ju367v7a"},20:{defaultClass:"ju367v7b"},24:{defaultClass:"ju367v7c"},28:{defaultClass:"ju367v7d"},32:{defaultClass:"ju367v7e"},36:{defaultClass:"ju367v7f"},44:{defaultClass:"ju367v7g"},64:{defaultClass:"ju367v7h"},"-1":{defaultClass:"ju367v7i"}}},paddingRight:{values:{0:{defaultClass:"ju367v7j"},1:{defaultClass:"ju367v7k"},2:{defaultClass:"ju367v7l"},3:{defaultClass:"ju367v7m"},4:{defaultClass:"ju367v7n"},5:{defaultClass:"ju367v7o"},6:{defaultClass:"ju367v7p"},8:{defaultClass:"ju367v7q"},10:{defaultClass:"ju367v7r"},12:{defaultClass:"ju367v7s"},14:{defaultClass:"ju367v7t"},16:{defaultClass:"ju367v7u"},18:{defaultClass:"ju367v7v"},20:{defaultClass:"ju367v7w"},24:{defaultClass:"ju367v7x"},28:{defaultClass:"ju367v7y"},32:{defaultClass:"ju367v7z"},36:{defaultClass:"ju367v80"},44:{defaultClass:"ju367v81"},64:{defaultClass:"ju367v82"},"-1":{defaultClass:"ju367v83"}}},paddingTop:{values:{0:{defaultClass:"ju367v84"},1:{defaultClass:"ju367v85"},2:{defaultClass:"ju367v86"},3:{defaultClass:"ju367v87"},4:{defaultClass:"ju367v88"},5:{defaultClass:"ju367v89"},6:{defaultClass:"ju367v8a"},8:{defaultClass:"ju367v8b"},10:{defaultClass:"ju367v8c"},12:{defaultClass:"ju367v8d"},14:{defaultClass:"ju367v8e"},16:{defaultClass:"ju367v8f"},18:{defaultClass:"ju367v8g"},20:{defaultClass:"ju367v8h"},24:{defaultClass:"ju367v8i"},28:{defaultClass:"ju367v8j"},32:{defaultClass:"ju367v8k"},36:{defaultClass:"ju367v8l"},44:{defaultClass:"ju367v8m"},64:{defaultClass:"ju367v8n"},"-1":{defaultClass:"ju367v8o"}}},position:{values:{absolute:{defaultClass:"ju367v8p"},fixed:{defaultClass:"ju367v8q"},relative:{defaultClass:"ju367v8r"}}},right:{values:{0:{defaultClass:"ju367v8s"}}},transition:{values:{default:{defaultClass:"ju367v8t"},transform:{defaultClass:"ju367v8u"}}},userSelect:{values:{none:{defaultClass:"ju367v8v"}}},width:{values:{1:{defaultClass:"ju367v8w"},2:{defaultClass:"ju367v8x"},4:{defaultClass:"ju367v8y"},8:{defaultClass:"ju367v8z"},12:{defaultClass:"ju367v90"},20:{defaultClass:"ju367v91"},24:{defaultClass:"ju367v92"},28:{defaultClass:"ju367v93"},30:{defaultClass:"ju367v94"},32:{defaultClass:"ju367v95"},34:{defaultClass:"ju367v96"},36:{defaultClass:"ju367v97"},40:{defaultClass:"ju367v98"},44:{defaultClass:"ju367v99"},48:{defaultClass:"ju367v9a"},54:{defaultClass:"ju367v9b"},60:{defaultClass:"ju367v9c"},200:{defaultClass:"ju367v9d"},full:{defaultClass:"ju367v9e"},max:{defaultClass:"ju367v9f"}}},backdropFilter:{values:{modalOverlay:{defaultClass:"ju367v9g"}}}}}),WF={colors:{accentColor:"var(--rk-colors-accentColor)",accentColorForeground:"var(--rk-colors-accentColorForeground)",actionButtonBorder:"var(--rk-colors-actionButtonBorder)",actionButtonBorderMobile:"var(--rk-colors-actionButtonBorderMobile)",actionButtonSecondaryBackground:"var(--rk-colors-actionButtonSecondaryBackground)",closeButton:"var(--rk-colors-closeButton)",closeButtonBackground:"var(--rk-colors-closeButtonBackground)",connectButtonBackground:"var(--rk-colors-connectButtonBackground)",connectButtonBackgroundError:"var(--rk-colors-connectButtonBackgroundError)",connectButtonInnerBackground:"var(--rk-colors-connectButtonInnerBackground)",connectButtonText:"var(--rk-colors-connectButtonText)",connectButtonTextError:"var(--rk-colors-connectButtonTextError)",connectionIndicator:"var(--rk-colors-connectionIndicator)",downloadBottomCardBackground:"var(--rk-colors-downloadBottomCardBackground)",downloadTopCardBackground:"var(--rk-colors-downloadTopCardBackground)",error:"var(--rk-colors-error)",generalBorder:"var(--rk-colors-generalBorder)",generalBorderDim:"var(--rk-colors-generalBorderDim)",menuItemBackground:"var(--rk-colors-menuItemBackground)",modalBackdrop:"var(--rk-colors-modalBackdrop)",modalBackground:"var(--rk-colors-modalBackground)",modalBorder:"var(--rk-colors-modalBorder)",modalText:"var(--rk-colors-modalText)",modalTextDim:"var(--rk-colors-modalTextDim)",modalTextSecondary:"var(--rk-colors-modalTextSecondary)",profileAction:"var(--rk-colors-profileAction)",profileActionHover:"var(--rk-colors-profileActionHover)",profileForeground:"var(--rk-colors-profileForeground)",selectedOptionBorder:"var(--rk-colors-selectedOptionBorder)",standby:"var(--rk-colors-standby)"},fonts:{body:"var(--rk-fonts-body)"},radii:{actionButton:"var(--rk-radii-actionButton)",connectButton:"var(--rk-radii-connectButton)",menuButton:"var(--rk-radii-menuButton)",modal:"var(--rk-radii-modal)",modalMobile:"var(--rk-radii-modalMobile)"},shadows:{connectButton:"var(--rk-shadows-connectButton)",dialog:"var(--rk-shadows-dialog)",profileDetailsAction:"var(--rk-shadows-profileDetailsAction)",selectedOption:"var(--rk-shadows-selectedOption)",selectedWallet:"var(--rk-shadows-selectedWallet)",walletLogo:"var(--rk-shadows-walletLogo)"},blurs:{modalOverlay:"var(--rk-blurs-modalOverlay)"}},nC0={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},rC0="_12cbo8i3 ju367v8r",iC0={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function Vu({active:u,hover:e}){return[rC0,e&&iC0[e],nC0[u]]}var PN=w.createContext(null);function aC0(){var u;const{adapter:e}=(u=w.useContext(PN))!=null?u:{};if(!e)throw new Error("No authentication adapter found");return e}function Z5(){var u;const e=w.useContext(PN);return(u=e==null?void 0:e.status)!=null?u:null}function Ob(){const u=Z5(),{isConnected:e}=At();return e?u&&(u==="loading"||u==="unauthenticated")?u:"connected":"disconnected"}function Ib(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function oC0(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function sC0(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function Xo(){return oC0()||sC0()}function Ae(){return Ib()||Xo()}var fC0="iekbcc0",lC0={a:"iekbcca",blockquote:"iekbcc2",button:"iekbcc9",input:"iekbcc8 iekbcc5 iekbcc4",mark:"iekbcc6",ol:"iekbcc1",q:"iekbcc2",select:"iekbcc7 iekbcc5 iekbcc4",table:"iekbcc3",textarea:"iekbcc5 iekbcc4",ul:"iekbcc1"},cC0=({reset:u,...e})=>{if(!u)return kC(e);const t=lC0[u],n=kC(e);return sI(fC0,t,n)},O=w.forwardRef(({as:u="div",className:e,testId:t,...n},r)=>{const i={},a={};for(const s in n)kC.properties.has(s)?i[s]=n[s]:a[s]=n[s];const o=cC0({reset:typeof u=="string"?u:"div",...i});return w.createElement(u,{className:sI(o,e),...a,"data-testid":t?`rk-${t.replace(/^rk-/,"")}`:void 0,ref:r})});O.displayName="Box";var ON=new Map,n8=new Map;async function IN(u){const e=n8.get(u);if(e)return e;const t=async()=>u().then(async r=>(ON.set(u,r),r)),n=t().catch(r=>t().catch(i=>{n8.delete(u)}));return n8.set(u,n),n}async function dr(...u){return await Promise.all(u.map(e=>typeof e=="function"?IN(e):e))}function EC0(){const[,u]=w.useReducer(e=>e+1,0);return u}function Nb(u){const e=typeof u=="function"?ON.get(u):void 0,t=EC0();return w.useEffect(()=>{typeof u=="function"&&!e&&IN(u).then(t)},[u,e,t]),typeof u=="function"?e:u}function ee({alt:u,background:e,borderColor:t,borderRadius:n,boxShadow:r,height:i,src:a,width:o,testId:s}){const f=Nb(a),l=f&&/^http/.test(f),[c,E]=w.useReducer(()=>!0,!1);return F.createElement(O,{"aria-label":u,borderRadius:n,boxShadow:r,height:typeof i=="string"?i:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:e,height:typeof i=="number"?i:void 0,width:typeof o=="number"?o:void 0},width:typeof o=="string"?o:void 0,testId:s},F.createElement(O,{...l?{"aria-hidden":!0,as:"img",onLoad:E,src:f}:{backgroundSize:"cover"},height:"full",position:"absolute",style:{touchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...l?{opacity:c?1:0}:{backgroundImage:f?`url(${f})`:void 0,backgroundRepeat:"no-repeat",opacity:f?1:0}},width:"full"}),t?F.createElement(O,{...typeof t=="object"&&"custom"in t?{style:{borderColor:t.custom}}:{borderColor:t},borderRadius:n,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var dC0="_1luule42",pC0="_1luule43",hC0=u=>w.useMemo(()=>`${u}_${Math.round(Math.random()*1e9)}`,[u]),Jl=({height:u=21,width:e=21})=>{const t=hC0("spinner");return F.createElement("svg",{className:dC0,fill:"none",height:u,viewBox:"0 0 21 21",width:e,xmlns:"http://www.w3.org/2000/svg"},F.createElement("clipPath",{id:t},F.createElement("path",{d:"M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z"})),F.createElement("foreignObject",{clipPath:`url(#${t})`,height:"21",width:"21",x:"0",y:"0"},F.createElement("div",{className:pC0})))},V0=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],qF=[{color:V0[0],emoji:"🌶"},{color:V0[1],emoji:"🤑"},{color:V0[2],emoji:"🐙"},{color:V0[3],emoji:"🫐"},{color:V0[4],emoji:"🐳"},{color:V0[0],emoji:"🤶"},{color:V0[5],emoji:"🌲"},{color:V0[6],emoji:"🌞"},{color:V0[7],emoji:"🐒"},{color:V0[8],emoji:"🐵"},{color:V0[9],emoji:"🦊"},{color:V0[10],emoji:"🐼"},{color:V0[11],emoji:"🦄"},{color:V0[12],emoji:"🐷"},{color:V0[13],emoji:"🐧"},{color:V0[8],emoji:"🦩"},{color:V0[14],emoji:"👽"},{color:V0[0],emoji:"🎈"},{color:V0[8],emoji:"🍉"},{color:V0[1],emoji:"🎉"},{color:V0[15],emoji:"🐲"},{color:V0[16],emoji:"🌎"},{color:V0[17],emoji:"🍊"},{color:V0[18],emoji:"🐭"},{color:V0[19],emoji:"🍣"},{color:V0[1],emoji:"🐥"},{color:V0[20],emoji:"👾"},{color:V0[15],emoji:"🥦"},{color:V0[0],emoji:"👹"},{color:V0[17],emoji:"🙀"},{color:V0[4],emoji:"⛱"},{color:V0[21],emoji:"⛵️"},{color:V0[17],emoji:"🥳"},{color:V0[8],emoji:"🤯"},{color:V0[22],emoji:"🤠"}];function CC0(u){let e=0;if(u.length===0)return e;for(let t=0;t{const[n,r]=w.useState(!1);w.useEffect(()=>{if(e){const o=new Image;o.src=e,o.onload=()=>r(!0)}},[e]);const{color:i,emoji:a}=w.useMemo(()=>mC0(u),[u]);return e?n?F.createElement(O,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${e})`,backgroundPosition:"center",height:t,width:t}}):F.createElement(O,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:t,width:t}},F.createElement(Jl,null)):F.createElement(O,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!e&&{backgroundColor:i},height:t,width:t}},a)},NN=gC0,RN=w.createContext(NN);function MN({address:u,imageUrl:e,loading:t,size:n}){const r=w.useContext(RN);return F.createElement(O,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${n}px`,width:`${n}px`},userSelect:"none"},F.createElement(O,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(n*.55)}px`,height:`${n}px`,transform:t?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:t?void 0:".1s",width:`${n}px`,willChange:"transform"},userSelect:"none"},F.createElement(r,{address:u,ensImage:e,size:n})),t&&F.createElement(O,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},F.createElement(Jl,{height:"100%",width:"100%"})))}var HF=()=>F.createElement("svg",{fill:"none",height:"7",width:"14",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M12.75 1.54001L8.51647 5.0038C7.77974 5.60658 6.72026 5.60658 5.98352 5.0038L1.75 1.54001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",xmlns:"http://www.w3.org/2000/svg"})),bC0={label:"اتصال المحفظة"},AC0={title:"ما هو المحفظة؟",description:"تُستخدم المحفظة لإرسال واستلام وتخزين وعرض الأصول الرقمية. إنها أيضاً طريقة جديدة لتسجيل الدخول، دون الحاجة إلى إنشاء حسابات وكلمات مرور جديدة على كل موقع.",digital_asset:{title:"دار لأصولك الرقمية",description:"تُستخدم المحافظ لإرسال واستلام وتخزين وعرض الأصول الرقمية مثل إيثيريوم والـ NFTs."},login:{title:"طريقة جديدة لتسجيل الدخول",description:"بدلاً من إنشاء حسابات وكلمات مرور جديدة على كل موقع، فقط قم بتوصيل محفظتك."},get:{label:"احصل على محفظة"},learn_more:{label:"تعلم المزيد"}},yC0={label:"تحقق من حسابك",description:"لإنهاء الاتصال، يجب عليك توقيع رسالة في محفظتك للتحقق من أنك صاحب هذا الحساب.",message:{send:"إرسال الرسالة",preparing:"جارٍ تجهيز الرسالة...",cancel:"إلغاء",preparing_error:"خطأ في تجهيز الرسالة، يرجى المحاولة مرة أخرى!"},signature:{waiting:"انتظار التوقيع...",verifying:"جار التحقق من التوقيع...",signing_error:"خطأ في توقيع الرسالة، يرجى المحاولة مرة أخرى!",verifying_error:"خطأ في التحقق من التوقيع، يرجى المحاولة مرة أخرى!",oops_error:"عذرًا، حدث خطأ ما!"}},vC0={label:"اتصل",title:"اتصال بالمحفظة",new_to_ethereum:{description:"جديد في محافظ Ethereum؟",learn_more:{label:"تعلم المزيد"}},learn_more:{label:"أعرف أكثر"},recent:"الأخير",status:{opening:"جار فتح %{wallet}...",not_installed:"%{wallet} غير مثبت",not_available:"%{wallet} غير متاح",confirm:"تأكيد الاتصال في الامتداد"},secondary_action:{get:{description:"لا يوجد لديك %{wallet}؟",label:"احصل"},install:{label:"تثبيت"},retry:{label:"أعد المحاولة"}},walletconnect:{description:{full:"هل تحتاج إلى النافذة الرسمية لـ WalletConnect؟",compact:"هل تحتاج إلى النافذة لـ WalletConnect؟"},open:{label:"افتح"}}},BC0={title:"المسح باستخدام %{wallet}",fallback_title:"المسح باستخدام هاتفك"},FC0={recommended:"موصى به",other:"آخر",popular:"شائع",more:"المزيد",others:"الآخرين"},DC0={title:"احصل على محفظة",action:{label:"احصل"},mobile:{description:"محفظة الموبايل"},extension:{description:"ملحق المتصفح"},mobile_and_extension:{description:"محفظة موبايل وملحق"},mobile_and_desktop:{description:"محفظة الموبايل والكمبيوتر"},looking_for:{title:"ليست هذه هي ما تبحث عنه؟",mobile:{description:"حدد محفظة على الشاشة الرئيسية للبدء باستخدام موفر محفظة مختلف."},desktop:{compact_description:"حدد محفظة على الشاشة الرئيسية للبدء باستخدام موفر محفظة مختلف.",wide_description:"حدد محفظة على اليسار للبدء باستخدام موفر محفظة مختلف."}}},wC0={title:"ابدأ مع %{wallet}",short_title:"احصل على %{wallet}",mobile:{title:"%{wallet} للجوال",description:"استخدم محفظة الموبايل لاستكشاف عالم Ethereum.",download:{label:"احصل على التطبيق"}},extension:{title:"%{wallet} لـ %{browser}",description:"وصول لمحفظتك مباشرة من متصفح الويب المفضل لديك.",download:{label:"أضف إلى %{browser}"}},desktop:{title:"%{wallet} لـ %{platform}",description:"قم بالوصول إلى محفظتك بشكل أصلي من كمبيوترك القوي.",download:{label:"أضف إلى %{platform}"}}},xC0={title:"قم بالتثبيت %{wallet}",description:"استخدم هاتفك للتحميل على iOS أو Android",continue:{label:"استمر"}},kC0={mobile:{connect:{label:"اتصل"},learn_more:{label:"تعلم المزيد"}},extension:{refresh:{label:"تحديث"},learn_more:{label:"تعلم المزيد"}},desktop:{connect:{label:"اتصل"},learn_more:{label:"تعلم المزيد"}}},_C0={title:"تبديل الشبكات",wrong_network:"تم اكتشاف شبكة غير صحيحة، قم بالتبديل أو القطع للمتابعة.",confirm:"التأكيد في المحفظة",switching_not_supported:"محفظتك لا تدعم التبديل بين الشبكات من %{appName}. جرب التبديل بين الشبكات من داخل المحفظة بدلاً من ذلك.",switching_not_supported_fallback:"محفظتك لا تدعم تبديل الشبكات من هذا التطبيق. حاول تبديل الشبكات من داخل المحفظة بدلاً من ذلك.",disconnect:"قطع الاتصال",connected:"متصل"},SC0={disconnect:{label:"قطع الاتصال"},copy_address:{label:"نسخ العنوان",copied:"تم النسخ!"},explorer:{label:"عرض المزيد على المستكشف"},transactions:{description:"%{appName} ستظهر المعاملات هنا...",description_fallback:"سوف تظهر معاملاتك هنا...",recent:{title:"المعاملات الأخيرة"},clear:{label:"مسح الكل"}}},TC0={argent:{qr_code:{step1:{description:"ضع أرجنت على شاشتك الرئيسية للوصول السريع إلى محفظتك.",title:"افتح تطبيق Argent"},step2:{description:"أنشئ محفظة واسم مستخدم، أو استورد محفظة موجودة بالفعل.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك.",title:"اضغط على زر فحص الكود الشريطي"}}},bifrost:{qr_code:{step1:{description:"نوصي بوضع محفظة Bifrost على الشاشة الرئيسية للوصول الأسرع.",title:"افتح تطبيق محفظة Bifrost"},step2:{description:"أنشئ أو استورد محفظة باستخدام عبارة الاستعادة الخاصة بك.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، سيظهر موجه الاتصال لك لتوصيل محفظتك.",title:"اضغط على زر المسح"}}},bitget:{qr_code:{step1:{description:"نوصي بوضع محفظة Bitget على الشاشة الرئيسية للوصول الأسرع.",title:"افتح تطبيق محفظة Bitget"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه اتصال لتوصيل محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Bitget على شريط المهام للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد محفظة Bitget"},step2:{description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ محفظة أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"قم بتحديث متصفحك"}}},bitski:{extension:{step1:{description:"نوصي بتثبيت Bitski على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد Bitski"},step2:{description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد إعداد المحفظة الخاصة بك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"تحديث المتصفح الخاص بك"}}},coin98:{qr_code:{step1:{description:"نوصي بوضع محفظة Coin98 على الشاشة الرئيسية لسرعة الوصول إلى محفظتك.",title:"افتح تطبيق محفظة Coin98"},step2:{description:"يمكنك بسهولة نسخ محفظتك الاحتياطي باستخدام ميزة النسخ الاحتياطي على هاتفك.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك.",title:"اضغط على زر WalletConnect"}},extension:{step1:{description:"انقر في الجزء العلوي الأيمن من المتصفح وثبت Coin98 Wallet لسهولة الوصول.",title:"قم بتثبيت امتداد Coin98 Wallet"},step2:{description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل.",title:"أنشئ محفظة أو استورد محفظة"},step3:{description:"بمجرد إعداد Coin98 Wallet ، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"تحديث المتصفح الخاص بك"}}},coinbase:{qr_code:{step1:{description:"نوصي بوضع Coinbase Wallet على الشاشة الرئيسية لسهولة الوصول.",title:"افتح تطبيق Coinbase Wallet"},step2:{description:"يمكنك بسهولة النسخ الاحتياطي لمحفظتك باستخدام ميزة النسخ الاحتياطي السحابي.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Coinbase على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Coinbase"},step2:{description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد المحفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"تحديث المتصفح الخاص بك"}}},core:{qr_code:{step1:{description:"نوصي بوضع Core على الشاشة الرئيسية للوصول السريع إلى محفظتك.",title:"افتح تطبيق Core"},step2:{description:"يمكنك بسهولة النسخ الاحتياطي لمحفظتك باستخدام ميزة النسخ الاحتياطي على هاتفك.",title:"إنشاء أو استيراد المحفظة"},step3:{description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل محفظتك.",title:"اضغط على زر WalletConnect"}},extension:{step1:{description:"نوصي بتثبيت Core على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد Core"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"تحديث متصفحك"}}},fox:{qr_code:{step1:{description:"نوصي بوضع FoxWallet على شاشتك الرئيسية للوصول الأسرع.",title:"افتح تطبيق FoxWallet"},step2:{description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء محفظة أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه الاتصال لتتمكن من اتصال محفظتك.",title:"اضغط على زر الفحص"}}},frontier:{qr_code:{step1:{description:"نوصي بوضع Frontier Wallet على شاشتك الرئيسية للوصول الأسرع.",title:"افتح تطبيق Frontier Wallet"},step2:{description:"تأكد من نسخ محفظتك احتياطيا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه الاتصال لربط محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Frontier على شريط المهام للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Frontier"},step2:{description:"تأكد من نسخ محفظتك احتياطيا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"قم بتحديث المتصفح الخاص بك"}}},im_token:{qr_code:{step1:{title:"افتح تطبيق imToken",description:"ضع تطبيق imToken على الشاشة الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"قم بإنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على أيقونة الماسح الضوئي في الزاوية العليا اليمنى",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي وأكد الموجه للاتصال."}}},metamask:{qr_code:{step1:{title:"افتح تطبيق MetaMask",description:"نوصي بوضع MetaMask على الشاشة الرئيسية لديك للوصول بشكل أسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ الحفاظ على محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك موجه اتصال لتوصيل محفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد MetaMask",description:"نوصي بتثبيت MetaMask في شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},okx:{qr_code:{step1:{title:"افتح تطبيق محفظة OKX",description:"نوصي بوضع محفظة OKX على الشاشة الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد محفظة OKX",description:"نوصي بتثبيت محفظة OKX على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من حفظ نسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},omni:{qr_code:{step1:{title:"افتح تطبيق Omni",description:"أضف Omni إلى شاشتك الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"إنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على أيقونة الرمز الاستجابة السريعة وامسحها",description:"اضغط على الرمز QR على الشاشة الرئيسية الخاصة بك، امسح الرمز وأكد الموافقة للاتصال."}}},token_pocket:{qr_code:{step1:{title:"افتح تطبيق TokenPocket",description:"نوصي بوضع TokenPocket على الشاشة الرئيسية للوصول السريع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك رسالة موجهة للاتصال بمحفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد TokenPocket",description:"نوصي بتثبيت TokenPocket على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"قم بإنشاء محفظة أو استيراد محفظة",description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},trust:{qr_code:{step1:{title:"افتح تطبيق Trust Wallet",description:"ضع Trust Wallet على الشاشة الرئيسية للوصول السريع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة."},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي QR وأكد الموجه للاتصال."}},extension:{step1:{title:"قم بتثبيت امتداد Trust Wallet",description:"انقر في الجزء العلوي الأيمن من المتصفح وثبت Trust Wallet للوصول بسهولة."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد Trust Wallet، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},uniswap:{qr_code:{step1:{title:"افتح تطبيق Uniswap",description:"أضف محفظة Uniswap إلى شاشة الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"قم بإنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على الأيقونة QR واقرأ الرمز",description:"اضغط على أيقونة QR على الشاشة الرئيسية، قراءة الرمز وتأكيد الرسالة الموجهة للاتصال."}}},zerion:{qr_code:{step1:{title:"افتح تطبيق Zerion",description:"نوصي بوضع Zerion على شاشتك الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من حفظ نسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}},extension:{step1:{title:"تثبيت امتداد Zerion",description:"نوصي بتثبيت Zerion على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},rainbow:{qr_code:{step1:{title:"افتح تطبيق Rainbow",description:"نوصي بوضع Rainbow على شاشة البداية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة أو استيراد محفظة",description:"يمكنك عمل نسخة احتياطية بسهولة لمحفظتك باستخدام ميزة النسخ الاحتياطي على هاتفك."},step3:{title:"اضغط على الزر الماسح الضوئي",description:"بعد الفحص، سيظهر لك موجه اتصال لربط محفظتك."}}},enkrypt:{extension:{step1:{description:"نوصي بتثبيت محفظة Enkrypt على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Enkrypt"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"حدث المتصفح الخاص بك"}}},frame:{extension:{step1:{description:"نوصي بتعليق Frame على شريط المهام للوصول السريع إلى محفظتك.",title:"ثبت Frame والإضافة المصاحبة"},step2:{description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"حدث المتصفح الخاص بك"}}},one_key:{extension:{step1:{title:"قم بتثبيت امتداد محفظة OneKey",description:"نوصي بتثبيت محفظة OneKey على شريط المهام للوصول السريع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},phantom:{extension:{step1:{title:"قم بتثبيت امتداد Phantom",description:"نوصي بتثبيت Phantom على شريط المهام للوصول الأسهل إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة السرية الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المتصفح",description:"بمجرد إعداد المحفظة، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},rabby:{extension:{step1:{title:"ثبت امتداد Rabby",description:"نوصي بتثبيت Rabby على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك العبارة السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},safeheron:{extension:{step1:{title:"قم بتثبيت إضافة النواة",description:"نوصي بتثبيت Safeheron على شريط المهام الخاص بك للوصول السريع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ محفظتك بطريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},taho:{extension:{step1:{title:"تثبيت إضافة Taho",description:"نوصي بتثبيت Taho على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة أو استيراد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},talisman:{extension:{step1:{title:"تثبيت إضافة Talisman",description:"نوصي بتثبيت Talisman على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة Ethereum أو استيرادها",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المستعرض الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المستعرض وتحميل الإضافة."}}},xdefi:{extension:{step1:{title:"قم بتثبيت إضافة XDEFI Wallet",description:"نوصي بتثبيت XDEFI Wallet على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك العبارة السرية الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المستعرض الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},zeal:{extension:{step1:{title:"قم بتثبيت امتداد Zeal",description:"نوصي بتثبيت Zeal في شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},safepal:{extension:{step1:{title:"قم بتثبيت صيغة SafePal Wallet",description:"انقر في أعلى يمين المتصفح وثبت صيغة SafePal Wallet لسهولة الوصول."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظة SafePal، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}},qr_code:{step1:{title:"افتح تطبيق محفظة SafePal",description:"ضع محفظة SafePal على شاشة الرئيسية لسهولة الوصول إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي وأكد الموجه للاتصال."}}},desig:{extension:{step1:{title:"قم بتثبيت إضافة Desig",description:"نوصي بتثبيت Desig على شريط المهام الخاص بك للوصول الأسهل إلى محفظتك."},step2:{title:"إنشاء محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},subwallet:{extension:{step1:{title:"قم بتثبيت إضافة SubWallet",description:"نوصي بتثبيت SubWallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}},qr_code:{step1:{title:"افتح تطبيق SubWallet",description:"نوصي بوضع SubWallet على شاشة الرئيسية الخاصة بك للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."}}},clv:{extension:{step1:{title:"قم بتثبيت إضافة CLV Wallet",description:"نوصي بتثبيت CLV Wallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}},qr_code:{step1:{title:"افتح تطبيق محفظة CLV",description:"نوصي بوضع محفظة CLV على الشاشة الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."}}},okto:{qr_code:{step1:{title:"افتح تطبيق Okto",description:"أضف Okto إلى الشاشة الرئيسية للوصول السريع"},step2:{title:"أنشئ محفظة MPC",description:"أنشئ حسابًا وقم بإنشاء محفظة"},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اضغط على أيقونة فحص الشاشة في الجهة العليا اليمنى وأكد الإدخال للاتصال."}}},ledger:{desktop:{step1:{title:"افتح تطبيق Ledger Live",description:"نوصي بوضع Ledger Live على شاشة الرئيسية لديك لسرعة الوصول."},step2:{title:"قم بإعداد Ledger الخاص بك",description:"قم بإعداد Ledger جديد أو قم بالاتصال بواحد موجود ."},step3:{title:"اتصل",description:"بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}},qr_code:{step1:{title:"افتح تطبيق Ledger Live",description:"نوصي بوضع Ledger Live على شاشة الرئيسية لديك لسرعة الوصول."},step2:{title:"قم بإعداد Ledger الخاص بك",description:"يمكنك إما المزامنة مع تطبيق سطح المكتب أو توصيل Ledger الخاص بك."},step3:{title:"مسح الرمز",description:"اضغط على WalletConnect ثم انتقل إلى الفحص. بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}}}},GF={connect_wallet:bC0,intro:AC0,sign_in:yC0,connect:vC0,connect_scan:BC0,connector_group:FC0,get:DC0,get_options:wC0,get_mobile:xC0,get_instructions:kC0,chains:_C0,profile:SC0,wallet_connectors:TC0},PC0={label:"Connect Wallet"},OC0={title:"What is a Wallet?",description:"A wallet is used to send, receive, store, and display digital assets. It's also a new way to log in, without needing to create new accounts and passwords on every website.",digital_asset:{title:"A Home for your Digital Assets",description:"Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."},login:{title:"A New Way to Log In",description:"Instead of creating new accounts and passwords on every website, just connect your wallet."},get:{label:"Get a Wallet"},learn_more:{label:"Learn More"}},IC0={label:"Verify your account",description:"To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",message:{send:"Sign message",preparing:"Preparing message...",cancel:"Cancel",preparing_error:"Error preparing message, please retry!"},signature:{waiting:"Waiting for signature...",verifying:"Verifying signature...",signing_error:"Error signing message, please retry!",verifying_error:"Error verifying signature, please retry!",oops_error:"Oops, something went wrong!"}},NC0={label:"Connect",title:"Connect a Wallet",new_to_ethereum:{description:"New to Ethereum wallets?",learn_more:{label:"Learn More"}},learn_more:{label:"Learn more"},recent:"Recent",status:{opening:"Opening %{wallet}...",connecting:"Connecting",connect_mobile:"Continue in %{wallet}",not_installed:"%{wallet} is not installed",not_available:"%{wallet} is not available",confirm:"Confirm connection in the extension",confirm_mobile:"Accept connection request in the wallet"},secondary_action:{get:{description:"Don't have %{wallet}?",label:"GET"},install:{label:"INSTALL"},retry:{label:"RETRY"}},walletconnect:{description:{full:"Need the official WalletConnect modal?",compact:"Need the WalletConnect modal?"},open:{label:"OPEN"}}},RC0={title:"Scan with %{wallet}",fallback_title:"Scan with your phone"},MC0={recommended:"Recommended",other:"Other",popular:"Popular",more:"More",others:"Others"},jC0={title:"Get a Wallet",action:{label:"GET"},mobile:{description:"Mobile Wallet"},extension:{description:"Browser Extension"},mobile_and_extension:{description:"Mobile Wallet and Extension"},mobile_and_desktop:{description:"Mobile and Desktop Wallet"},looking_for:{title:"Not what you're looking for?",mobile:{description:"Select a wallet on the main screen to get started with a different wallet provider."},desktop:{compact_description:"Select a wallet on the main screen to get started with a different wallet provider.",wide_description:"Select a wallet on the left to get started with a different wallet provider."}}},zC0={title:"Get started with %{wallet}",short_title:"Get %{wallet}",mobile:{title:"%{wallet} for Mobile",description:"Use the mobile wallet to explore the world of Ethereum.",download:{label:"Get the app"}},extension:{title:"%{wallet} for %{browser}",description:"Access your wallet right from your favorite web browser.",download:{label:"Add to %{browser}"}},desktop:{title:"%{wallet} for %{platform}",description:"Access your wallet natively from your powerful desktop.",download:{label:"Add to %{platform}"}}},LC0={title:"Install %{wallet}",description:"Scan with your phone to download on iOS or Android",continue:{label:"Continue"}},$C0={mobile:{connect:{label:"Connect"},learn_more:{label:"Learn More"}},extension:{refresh:{label:"Refresh"},learn_more:{label:"Learn More"}},desktop:{connect:{label:"Connect"},learn_more:{label:"Learn More"}}},UC0={title:"Switch Networks",wrong_network:"Wrong network detected, switch or disconnect to continue.",confirm:"Confirm in Wallet",switching_not_supported:"Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",switching_not_supported_fallback:"Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",disconnect:"Disconnect",connected:"Connected"},WC0={disconnect:{label:"Disconnect"},copy_address:{label:"Copy Address",copied:"Copied!"},explorer:{label:"View more on explorer"},transactions:{description:"%{appName} transactions will appear here...",description_fallback:"Your transactions will appear here...",recent:{title:"Recent Transactions"},clear:{label:"Clear All"}}},qC0={argent:{qr_code:{step1:{description:"Put Argent on your home screen for faster access to your wallet.",title:"Open the Argent app"},step2:{description:"Create a wallet and username, or import an existing wallet.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the Scan QR button"}}},bifrost:{qr_code:{step1:{description:"We recommend putting Bifrost Wallet on your home screen for quicker access.",title:"Open the Bifrost Wallet app"},step2:{description:"Create or import a wallet using your recovery phrase.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}}},bitget:{qr_code:{step1:{description:"We recommend putting Bitget Wallet on your home screen for quicker access.",title:"Open the Bitget Wallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",title:"Install the Bitget Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},bitski:{extension:{step1:{description:"We recommend pinning Bitski to your taskbar for quicker access to your wallet.",title:"Install the Bitski extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},coin98:{qr_code:{step1:{description:"We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",title:"Open the Coin98 Wallet app"},step2:{description:"You can easily backup your wallet using our backup feature on your phone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the WalletConnect button"}},extension:{step1:{description:"Click at the top right of your browser and pin Coin98 Wallet for easy access.",title:"Install the Coin98 Wallet extension"},step2:{description:"Create a new wallet or import an existing one.",title:"Create or Import a wallet"},step3:{description:"Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},coinbase:{qr_code:{step1:{description:"We recommend putting Coinbase Wallet on your home screen for quicker access.",title:"Open the Coinbase Wallet app"},step2:{description:"You can easily backup your wallet using the cloud backup feature.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",title:"Install the Coinbase Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},core:{qr_code:{step1:{description:"We recommend putting Core on your home screen for faster access to your wallet.",title:"Open the Core app"},step2:{description:"You can easily backup your wallet using our backup feature on your phone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the WalletConnect button"}},extension:{step1:{description:"We recommend pinning Core to your taskbar for quicker access to your wallet.",title:"Install the Core extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},fox:{qr_code:{step1:{description:"We recommend putting FoxWallet on your home screen for quicker access.",title:"Open the FoxWallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}}},frontier:{qr_code:{step1:{description:"We recommend putting Frontier Wallet on your home screen for quicker access.",title:"Open the Frontier Wallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",title:"Install the Frontier Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},im_token:{qr_code:{step1:{title:"Open the imToken app",description:"Put imToken app on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap Scanner Icon in top right corner",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}}},metamask:{qr_code:{step1:{title:"Open the MetaMask app",description:"We recommend putting MetaMask on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the MetaMask extension",description:"We recommend pinning MetaMask to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},okx:{qr_code:{step1:{title:"Open the OKX Wallet app",description:"We recommend putting OKX Wallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the OKX Wallet extension",description:"We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},omni:{qr_code:{step1:{title:"Open the Omni app",description:"Add Omni to your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap the QR icon and scan",description:"Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."}}},token_pocket:{qr_code:{step1:{title:"Open the TokenPocket app",description:"We recommend putting TokenPocket on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the TokenPocket extension",description:"We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},trust:{qr_code:{step1:{title:"Open the Trust Wallet app",description:"Put Trust Wallet on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap WalletConnect in Settings",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}},extension:{step1:{title:"Install the Trust Wallet extension",description:"Click at the top right of your browser and pin Trust Wallet for easy access."},step2:{title:"Create or Import a wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Refresh your browser",description:"Once you set up Trust Wallet, click below to refresh the browser and load up the extension."}}},uniswap:{qr_code:{step1:{title:"Open the Uniswap app",description:"Add Uniswap Wallet to your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap the QR icon and scan",description:"Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."}}},zerion:{qr_code:{step1:{title:"Open the Zerion app",description:"We recommend putting Zerion on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the Zerion extension",description:"We recommend pinning Zerion to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},rainbow:{qr_code:{step1:{title:"Open the Rainbow app",description:"We recommend putting Rainbow on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"You can easily backup your wallet using our backup feature on your phone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},enkrypt:{extension:{step1:{description:"We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",title:"Install the Enkrypt Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},frame:{extension:{step1:{description:"We recommend pinning Frame to your taskbar for quicker access to your wallet.",title:"Install Frame & the companion extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},one_key:{extension:{step1:{title:"Install the OneKey Wallet extension",description:"We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},phantom:{extension:{step1:{title:"Install the Phantom extension",description:"We recommend pinning Phantom to your taskbar for easier access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},rabby:{extension:{step1:{title:"Install the Rabby extension",description:"We recommend pinning Rabby to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},safeheron:{extension:{step1:{title:"Install the Core extension",description:"We recommend pinning Safeheron to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},taho:{extension:{step1:{title:"Install the Taho extension",description:"We recommend pinning Taho to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},talisman:{extension:{step1:{title:"Install the Talisman extension",description:"We recommend pinning Talisman to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import an Ethereum Wallet",description:"Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},xdefi:{extension:{step1:{title:"Install the XDEFI Wallet extension",description:"We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},zeal:{extension:{step1:{title:"Install the Zeal extension",description:"We recommend pinning Zeal to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},safepal:{extension:{step1:{title:"Install the SafePal Wallet extension",description:"Click at the top right of your browser and pin SafePal Wallet for easy access."},step2:{title:"Create or Import a wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Refresh your browser",description:"Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the SafePal Wallet app",description:"Put SafePal Wallet on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap WalletConnect in Settings",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}}},desig:{extension:{step1:{title:"Install the Desig extension",description:"We recommend pinning Desig to your taskbar for easier access to your wallet."},step2:{title:"Create a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},subwallet:{extension:{step1:{title:"Install the SubWallet extension",description:"We recommend pinning SubWallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the SubWallet app",description:"We recommend putting SubWallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},clv:{extension:{step1:{title:"Install the CLV Wallet extension",description:"We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the CLV Wallet app",description:"We recommend putting CLV Wallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},okto:{qr_code:{step1:{title:"Open the Okto app",description:"Add Okto to your home screen for quick access"},step2:{title:"Create an MPC Wallet",description:"Create an account and generate a wallet"},step3:{title:"Tap WalletConnect in Settings",description:"Tap the Scan QR icon at the top right and confirm the prompt to connect."}}},ledger:{desktop:{step1:{title:"Open the Ledger Live app",description:"We recommend putting Ledger Live on your home screen for quicker access."},step2:{title:"Set up your Ledger",description:"Set up a new Ledger or connect to an existing one."},step3:{title:"Connect",description:"A connection prompt will appear for you to connect your wallet."}},qr_code:{step1:{title:"Open the Ledger Live app",description:"We recommend putting Ledger Live on your home screen for quicker access."},step2:{title:"Set up your Ledger",description:"You can either sync with the desktop app or connect your Ledger."},step3:{title:"Scan the code",description:"Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."}}}},VF={connect_wallet:PC0,intro:OC0,sign_in:IC0,connect:NC0,connect_scan:RC0,connector_group:MC0,get:jC0,get_options:zC0,get_mobile:LC0,get_instructions:$C0,chains:UC0,profile:WC0,wallet_connectors:qC0},HC0={label:"Conectar la billetera"},GC0={title:"¿Qué es una billetera?",description:"Una billetera se usa para enviar, recibir, almacenar y mostrar activos digitales. También es una nueva forma de iniciar sesión, sin necesidad de crear nuevas cuentas y contraseñas en cada sitio web.",digital_asset:{title:"Un hogar para tus Activos Digitales",description:"Las carteras se utilizan para enviar, recibir, almacenar y mostrar activos digitales como Ethereum y NFTs."},login:{title:"Una nueva forma de iniciar sesión",description:"En lugar de crear nuevas cuentas y contraseñas en cada sitio web, simplemente conecta tu cartera."},get:{label:"Obtener una billetera"},learn_more:{label:"Obtener más información"}},VC0={label:"Verifica tu cuenta",description:"Para terminar de conectar, debes firmar un mensaje en tu billetera para verificar que eres el propietario de esta cuenta.",message:{send:"Enviar mensaje",preparing:"Preparando mensaje...",cancel:"Cancelar",preparing_error:"Error al preparar el mensaje, ¡intenta de nuevo!"},signature:{waiting:"Esperando firma...",verifying:"Verificando firma...",signing_error:"Error al firmar el mensaje, ¡intenta de nuevo!",verifying_error:"Error al verificar la firma, ¡intenta de nuevo!",oops_error:"¡Ups! Algo salió mal."}},KC0={label:"Conectar",title:"Conectar una billetera",new_to_ethereum:{description:"¿Eres nuevo en las billeteras Ethereum?",learn_more:{label:"Obtener más información"}},learn_more:{label:"Obtener más información"},recent:"Reciente",status:{opening:"Abriendo %{wallet}...",not_installed:"%{wallet} no está instalado",not_available:"%{wallet} no está disponible",confirm:"Confirma la conexión en la extensión"},secondary_action:{get:{description:"¿No tienes %{wallet}?",label:"OBTENER"},install:{label:"INSTALAR"},retry:{label:"REINTENTAR"}},walletconnect:{description:{full:"¿Necesitas el modal oficial de WalletConnect?",compact:"¿Necesitas el modal de WalletConnect?"},open:{label:"ABRIR"}}},QC0={title:"Escanea con %{wallet}",fallback_title:"Escanea con tu teléfono"},JC0={recommended:"Recomendado",other:"Otro",popular:"Popular",more:"Más",others:"Otros"},YC0={title:"Obtener una billetera",action:{label:"OBTENER"},mobile:{description:"Billetera Móvil"},extension:{description:"Extensión de navegador"},mobile_and_extension:{description:"Billetera móvil y extensión"},mobile_and_desktop:{description:"Billetera Móvil y de Escritorio"},looking_for:{title:"¿No es lo que estás buscando?",mobile:{description:"Seleccione una billetera en la pantalla principal para comenzar con un proveedor de billetera diferente."},desktop:{compact_description:"Seleccione una cartera en la pantalla principal para comenzar con un proveedor de cartera diferente.",wide_description:"Seleccione una cartera a la izquierda para comenzar con un proveedor de cartera diferente."}}},ZC0={title:"Comienza con %{wallet}",short_title:"Obtener %{wallet}",mobile:{title:"%{wallet} para móvil",description:"Use la billetera móvil para explorar el mundo de Ethereum.",download:{label:"Obtener la aplicación"}},extension:{title:"%{wallet} para %{browser}",description:"Acceda a su billetera directamente desde su navegador web favorito.",download:{label:"Añadir a %{browser}"}},desktop:{title:"%{wallet} para %{platform}",description:"Acceda a su billetera de forma nativa desde su potente escritorio.",download:{label:"Añadir a %{platform}"}}},XC0={title:"Instalar %{wallet}",description:"Escanee con su teléfono para descargar en iOS o Android",continue:{label:"Continuar"}},um0={mobile:{connect:{label:"Conectar"},learn_more:{label:"Obtener más información"}},extension:{refresh:{label:"Actualizar"},learn_more:{label:"Obtener más información"}},desktop:{connect:{label:"Conectar"},learn_more:{label:"Obtener más información"}}},em0={title:"Cambiar redes",wrong_network:"Se detectó la red incorrecta, cambia o desconéctate para continuar.",confirm:"Confirmar en la cartera",switching_not_supported:"Tu cartera no admite cambiar las redes desde %{appName}. Intenta cambiar las redes desde tu cartera.",switching_not_supported_fallback:"Su billetera no admite el cambio de redes desde esta aplicación. Intente cambiar de red desde dentro de su billetera en su lugar.",disconnect:"Desconectar",connected:"Conectado"},tm0={disconnect:{label:"Desconectar"},copy_address:{label:"Copiar dirección",copied:"¡Copiado!"},explorer:{label:"Ver más en el explorador"},transactions:{description:"%{appName} transacciones aparecerán aquí...",description_fallback:"Tus transacciones aparecerán aquí...",recent:{title:"Transacciones recientes"},clear:{label:"Borrar Todo"}}},nm0={argent:{qr_code:{step1:{description:"Coloque Argent en su pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Argent"},step2:{description:"Cree una billetera y un nombre de usuario, o importe una billetera existente.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera.",title:"Toque el botón Escanear QR"}}},bifrost:{qr_code:{step1:{description:"Recomendamos poner Bifrost Wallet en su pantalla de inicio para un acceso más rápido.",title:"Abra la aplicación Bifrost Wallet"},step2:{description:"Cree o importe una billetera usando su frase de recuperación.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conecte su billetera.",title:"Toque el botón de escaneo"}}},bitget:{qr_code:{step1:{description:"Recomendamos colocar Bitget Wallet en su pantalla de inicio para un acceso más rápido.",title:"Abra la aplicación Bitget Wallet"},step2:{description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que pueda conectar su billetera.",title:"Toque el botón de escanear"}},extension:{step1:{description:"Recomendamos anclar Bitget Wallet a su barra de tareas para un acceso más rápido a su billetera.",title:"Instale la extensión de la Billetera Bitget"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refrescar tu navegador"}}},bitski:{extension:{step1:{description:"Recomendamos anclar Bitski a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión Bitski"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión.",title:"Actualiza tu navegador"}}},coin98:{qr_code:{step1:{description:"Recomendamos poner Coin98 Wallet en la pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Coin98 Wallet"},step2:{description:"Puede respaldar fácilmente su billetera utilizando nuestra función de respaldo en su teléfono.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conecte su billetera.",title:"Toque el botón WalletConnect"}},extension:{step1:{description:"Haga clic en la parte superior derecha de su navegador y fije Coin98 Wallet para un fácil acceso.",title:"Instale la extensión Coin98 Wallet"},step2:{description:"Crea una nueva billetera o importa una existente.",title:"Crear o Importar una billetera"},step3:{description:"Una vez que configures Coin98 Wallet, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},coinbase:{qr_code:{step1:{description:"Recomendamos poner Coinbase Wallet en tu pantalla de inicio para un acceso más rápido.",title:"Abre la aplicación de la Billetera Coinbase"},step2:{description:"Puedes respaldar tu billetera fácilmente utilizando la función de respaldo en la nube.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera.",title:"Pulsa el botón de escanear"}},extension:{step1:{description:"Te recomendamos anclar la Billetera Coinbase a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de la Billetera Coinbase"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic abajo para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},core:{qr_code:{step1:{description:"Recomendamos poner Core en su pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Core"},step2:{description:"Puedes respaldar fácilmente tu billetera utilizando nuestra función de respaldo en tu teléfono.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera.",title:"Toque el botón WalletConnect"}},extension:{step1:{description:"Recomendamos fijar Core a tu barra de tareas para acceder más rápido a tu billetera.",title:"Instala la extensión Core"},step2:{description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},fox:{qr_code:{step1:{description:"Recomendamos poner FoxWallet en tu pantalla de inicio para un acceso más rápido.",title:"Abre la aplicación FoxWallet"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá una solicitud de conexión para que conectes tu billetera.",title:"Toca el botón de escanear"}}},frontier:{qr_code:{step1:{description:"Recomendamos poner la Billetera Frontier en tu pantalla principal para un acceso más rápido.",title:"Abre la aplicación de la Billetera Frontier"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un mensaje para que conectes tu billetera.",title:"Haz clic en el botón de escaneo"}},extension:{step1:{description:"Recomendamos anclar la billetera Frontier a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de la billetera Frontier"},step2:{description:"Asegúrese de hacer una copia de seguridad de su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic a continuación para actualizar el navegador y cargar la extensión.",title:"Actualizar tu navegador"}}},im_token:{qr_code:{step1:{title:"Abrir la aplicación imToken",description:"Pon la aplicación imToken en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca el Icono del Escáner en la esquina superior derecha",description:"Elija Nueva Conexión, luego escanee el código QR y confirme el aviso para conectar."}}},metamask:{qr_code:{step1:{title:"Abre la aplicación MetaMask",description:"Recomendamos colocar MetaMask en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión MetaMask",description:"Recomendamos anclar MetaMask a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},okx:{qr_code:{step1:{title:"Abre la aplicación OKX Wallet",description:"Recomendamos colocar OKX Wallet en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión de Billetera OKX",description:"Recomendamos anclar la Billetera OKX a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión."}}},omni:{qr_code:{step1:{title:"Abra la aplicación Omni",description:"Agregue Omni a su pantalla de inicio para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crear una nueva billetera o importar una existente."},step3:{title:"Toque el icono de QR y escanee",description:"Toca el icono QR en tu pantalla principal, escanea el código y confirma el aviso para conectar."}}},token_pocket:{qr_code:{step1:{title:"Abre la aplicación TokenPocket",description:"Recomendamos colocar TokenPocket en tu pantalla principal para un acceso más rápido."},step2:{title:"Crear o importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escaneo",description:"Después de escanear, aparecerá una solicitud de conexión para que puedas conectar tu billetera."}},extension:{step1:{title:"Instala la extensión TokenPocket",description:"Recomendamos anclar TokenPocket a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},trust:{qr_code:{step1:{title:"Abre la aplicación Trust Wallet",description:"Ubica Trust Wallet en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca WalletConnect en Configuraciones",description:"Elige Nueva Conexión, luego escanea el código QR y confirma el aviso para conectar."}},extension:{step1:{title:"Instala la extensión de Trust Wallet",description:"Haz clic en la parte superior derecha de tu navegador y fija Trust Wallet para un fácil acceso."},step2:{title:"Crea o Importa una billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Refresca tu navegador",description:"Una vez que configures Trust Wallet, haz clic abajo para refrescar el navegador y cargar la extensión."}}},uniswap:{qr_code:{step1:{title:"Abre la aplicación Uniswap",description:"Agrega la billetera Uniswap a tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca el icono QR y escanea",description:"Toca el icono QR en tu pantalla de inicio, escanea el código y confirma el prompt para conectar."}}},zerion:{qr_code:{step1:{title:"Abre la aplicación Zerion",description:"Recomendamos poner Zerion en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión Zerion",description:"Recomendamos anclar Zerion a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},rainbow:{qr_code:{step1:{title:"Abre la aplicación Rainbow",description:"Recomendamos poner Rainbow en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Puedes respaldar fácilmente tu billetera usando nuestra función de respaldo en tu teléfono."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá una solicitud de conexión para que conectes tu billetera."}}},enkrypt:{extension:{step1:{description:"Recomendamos anclar la Billetera Enkrypt a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de Billetera Enkrypt"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},frame:{extension:{step1:{description:"Recomendamos anclar Frame a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala Frame y la extensión complementaria"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},one_key:{extension:{step1:{title:"Instale la extensión de Billetera OneKey",description:"Recomendamos anclar la Billetera OneKey a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},phantom:{extension:{step1:{title:"Instala la extensión Phantom",description:"Recomendamos fijar Phantom a tu barra de tareas para un acceso más fácil a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta de recuperación con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},rabby:{extension:{step1:{title:"Instala la extensión Rabby",description:"Recomendamos anclar Rabby a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para actualizar el navegador y cargar la extensión."}}},safeheron:{extension:{step1:{title:"Instala la extensión Core",description:"Recomendamos anclar Safeheron a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},taho:{extension:{step1:{title:"Instala la extensión de Taho",description:"Recomendamos anclar Taho a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crea o Importa una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},talisman:{extension:{step1:{title:"Instala la extensión de Talisman",description:"Recomendamos anclar Talisman a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crea o importa una billetera Ethereum",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase de recuperación con nadie."},step3:{title:"Recarga tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},xdefi:{extension:{step1:{title:"Instala la extensión de la billetera XDEFI",description:"Recomendamos anclar XDEFI Wallet a su barra de tareas para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualice su navegador",description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión."}}},zeal:{extension:{step1:{title:"Instale la extensión Zeal",description:"Recomendamos anclar Zeal a su barra de tareas para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}}},safepal:{extension:{step1:{title:"Instale la extensión de la billetera SafePal",description:"Haga clic en la esquina superior derecha de su navegador y ancle SafePal Wallet para un fácil acceso."},step2:{title:"Crear o Importar una billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Refrescar tu navegador",description:"Una vez que configure la Billetera SafePal, haga clic abajo para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abra la aplicación Billetera SafePal",description:"Coloque la Billetera SafePal en su pantalla de inicio para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca WalletConnect en Configuraciones",description:"Elija Nueva Conexión, luego escanee el código QR y confirme el aviso para conectar."}}},desig:{extension:{step1:{title:"Instala la extensión Desig",description:"Recomendamos anclar Desig a tu barra de tareas para acceder más fácilmente a tu cartera."},step2:{title:"Crea una Cartera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}}},subwallet:{extension:{step1:{title:"Instala la extensión SubWallet",description:"Recomendamos anclar SubWallet a tu barra de tareas para acceder a tu cartera más rápidamente."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase de recuperación con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abre la aplicación SubWallet",description:"Recomendamos colocar SubWallet en tu pantalla principal para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Toque el botón de escaneo",description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera."}}},clv:{extension:{step1:{title:"Instala la extensión CLV Wallet",description:"Recomendamos anclar la billetera CLV a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abra la aplicación CLV Wallet",description:"Recomendamos colocar la billetera CLV en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Toque el botón de escaneo",description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera."}}},okto:{qr_code:{step1:{title:"Abra la aplicación Okto",description:"Agrega Okto a tu pantalla de inicio para un acceso rápido"},step2:{title:"Crea una billetera MPC",description:"Crea una cuenta y genera una billetera"},step3:{title:"Toca WalletConnect en Configuraciones",description:"Toca el icono de Escanear QR en la parte superior derecha y confirma el mensaje para conectar."}}},ledger:{desktop:{step1:{title:"Abra la aplicación Ledger Live",description:"Recomendamos poner Ledger Live en su pantalla de inicio para un acceso más rápido."},step2:{title:"Configure su Ledger",description:"Configure un nuevo Ledger o conéctese a uno existente."},step3:{title:"Conectar",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},qr_code:{step1:{title:"Abra la aplicación Ledger Live",description:"Recomendamos poner Ledger Live en su pantalla de inicio para un acceso más rápido."},step2:{title:"Configure su Ledger",description:"Puedes sincronizar con la aplicación de escritorio o conectar tu Ledger."},step3:{title:"Escanea el código",description:"Toca WalletConnect y luego cambia a Scanner. Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}}}},KF={connect_wallet:HC0,intro:GC0,sign_in:VC0,connect:KC0,connect_scan:QC0,connector_group:JC0,get:YC0,get_options:ZC0,get_mobile:XC0,get_instructions:um0,chains:em0,profile:tm0,wallet_connectors:nm0},rm0={label:"Connecter le portefeuille"},im0={title:"Qu'est-ce qu'un portefeuille?",description:"Un portefeuille est utilisé pour envoyer, recevoir, stocker et afficher des actifs numériques. C'est aussi une nouvelle façon de se connecter, sans avoir besoin de créer de nouveaux comptes et mots de passe sur chaque site.",digital_asset:{title:"Un foyer pour vos actifs numériques",description:"Les portefeuilles sont utilisés pour envoyer, recevoir, stocker et afficher des actifs numériques comme Ethereum et les NFTs."},login:{title:"Une nouvelle façon de se connecter",description:"Au lieu de créer de nouveaux comptes et mots de passe sur chaque site Web, connectez simplement votre portefeuille."},get:{label:"Obtenir un portefeuille"},learn_more:{label:"En savoir plus"}},am0={label:"Vérifiez votre compte",description:"Pour terminer la connexion, vous devez signer un message dans votre portefeuille pour vérifier que vous êtes le propriétaire de ce compte.",message:{send:"Envoyer le message",preparing:"Préparation du message...",cancel:"Annuler",preparing_error:"Erreur lors de la préparation du message, veuillez réessayer!"},signature:{waiting:"En attente de la signature...",verifying:"Vérification de la signature...",signing_error:"Erreur lors de la signature du message, veuillez réessayer!",verifying_error:"Erreur lors de la vérification de la signature, veuillez réessayer!",oops_error:"Oups, quelque chose a mal tourné!"}},om0={label:"Connecter",title:"Connecter un portefeuille",new_to_ethereum:{description:"Nouveau aux portefeuilles Ethereum?",learn_more:{label:"En savoir plus"}},learn_more:{label:"En savoir plus"},recent:"Récents",status:{opening:"Ouverture %{wallet}...",not_installed:"%{wallet} n'est pas installé",not_available:"%{wallet} n'est pas disponible",confirm:"Confirmez la connexion dans l'extension"},secondary_action:{get:{description:"Vous n'avez pas de %{wallet}?",label:"OBTENIR"},install:{label:"INSTALLER"},retry:{label:"RÉESSAYER"}},walletconnect:{description:{full:"Vous avez besoin du modal officiel de WalletConnect ?",compact:"Besoin du modal de WalletConnect ?"},open:{label:"OUVRIR"}}},sm0={title:"Scannez avec %{wallet}",fallback_title:"Scannez avec votre téléphone"},fm0={recommended:"Recommandé",other:"Autre",popular:"Populaire",more:"Plus",others:"Autres"},lm0={title:"Obtenez un portefeuille",action:{label:"OBTENIR"},mobile:{description:"Portefeuille mobile"},extension:{description:"Extension de navigateur"},mobile_and_extension:{description:"Portefeuille mobile et extension"},mobile_and_desktop:{description:"Portefeuille mobile et de bureau"},looking_for:{title:"Ce n'est pas ce que vous cherchez ?",mobile:{description:"Sélectionnez un portefeuille sur l'écran principal pour commencer avec un autre fournisseur de portefeuille."},desktop:{compact_description:"Sélectionnez un portefeuille sur l'écran principal pour commencer avec un autre fournisseur de portefeuille.",wide_description:"Sélectionnez un portefeuille sur la gauche pour commencer avec un autre fournisseur de portefeuille."}}},cm0={title:"Commencez avec %{wallet}",short_title:"Obtenez %{wallet}",mobile:{title:"%{wallet} pour mobile",description:"Utilisez le portefeuille mobile pour explorer le monde d'Ethereum.",download:{label:"Obtenez l'application"}},extension:{title:"%{wallet} pour %{browser}",description:"Accédez à votre portefeuille directement depuis votre navigateur web préféré.",download:{label:"Ajouter à %{browser}"}},desktop:{title:"%{wallet} pour %{platform}",description:"Accédez à votre portefeuille nativement depuis votre puissant ordinateur de bureau.",download:{label:"Ajouter à %{platform}"}}},Em0={title:"Installer %{wallet}",description:"Scannez avec votre téléphone pour télécharger sur iOS ou Android",continue:{label:"Continuer"}},dm0={mobile:{connect:{label:"Connecter"},learn_more:{label:"En savoir plus"}},extension:{refresh:{label:"Rafraîchir"},learn_more:{label:"En savoir plus"}},desktop:{connect:{label:"Connecter"},learn_more:{label:"En savoir plus"}}},pm0={title:"Changer de Réseaux",wrong_network:"Mauvais réseau détecté, changez ou déconnectez-vous pour continuer.",confirm:"Confirmer dans le portefeuille",switching_not_supported:"Votre portefeuille ne supporte pas le changement de réseaux depuis %{appName}. Essayez de changer de réseau depuis votre portefeuille.",switching_not_supported_fallback:"Votre portefeuille ne prend pas en charge le changement de réseaux à partir de cette application. Essayez de changer de réseau à partir de votre portefeuille à la place.",disconnect:"Déconnecter",connected:"Connecté"},hm0={disconnect:{label:"Déconnecter"},copy_address:{label:"Copier l'adresse",copied:"Copié !"},explorer:{label:"Voir plus sur l'explorateur"},transactions:{description:"%{appName} transactions apparaîtront ici...",description_fallback:"Vos transactions apparaîtront ici...",recent:{title:"Transactions Récentes"},clear:{label:"Tout supprimer"}}},Cm0={argent:{qr_code:{step1:{description:"Mettez Argent sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Argent"},step2:{description:"Créez un portefeuille et un nom d'utilisateur, ou importez un portefeuille existant.",title:"Créer ou Importer un Portefeuille"},step3:{description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton Scan QR"}}},bifrost:{qr_code:{step1:{description:"Nous vous recommandons de mettre le portefeuille Bifrost sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Bifrost Wallet"},step2:{description:"Créez ou importez un portefeuille en utilisant votre phrase de récupération.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après votre scan, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}}},bitget:{qr_code:{step1:{description:"Nous vous recommandons de placer Bitget Wallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Bitget Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après le scan, une incitation de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous vous recommandons d'épingler Bitget Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension de portefeuille Bitget"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créez ou Importez un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},bitski:{extension:{step1:{description:"Nous recommandons d'épingler Bitski à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Bitski"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},coin98:{qr_code:{step1:{description:"Nous vous recommandons de placer Coin98 Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Coin98 Wallet"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après que vous ayez scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton WalletConnect"}},extension:{step1:{description:"Cliquez en haut à droite de votre navigateur et épinglez Coin98 Wallet pour un accès facile.",title:"Installez l'extension Coin98 Wallet"},step2:{description:"Créez un nouveau portefeuille ou importez-en un existant.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré Coin98 Wallet, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},coinbase:{qr_code:{step1:{description:"Nous recommandons de placer Coinbase Wallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Coinbase Wallet"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant la fonction de sauvegarde cloud.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion s'affichera pour que vous puissiez connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous recommandons d'épingler Coinbase Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Coinbase Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sûre. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Actualisez votre navigateur"}}},core:{qr_code:{step1:{description:"Nous recommandons de placer Core sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Core"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton WalletConnect"}},extension:{step1:{description:"Nous recommandons d'épingler Core à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Core"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créez ou Importer un Portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},fox:{qr_code:{step1:{description:"Nous recommandons de mettre FoxWallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application FoxWallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invitation à la connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}}},frontier:{qr_code:{step1:{description:"Nous vous recommandons de placer le portefeuille Frontier sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Frontier Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous recommandons d'épingler Frontier Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Frontier Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créez ou importez un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},im_token:{qr_code:{step1:{title:"Ouvrez l'application imToken",description:"Placez l'application imToken sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou importez un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant ."},step3:{title:"Appuyez sur l'icône du scanner dans le coin supérieur droit",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}}},metamask:{qr_code:{step1:{title:"Ouvrez l'application MetaMask",description:"Nous vous recommandons de mettre MetaMask sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Veillez à sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l’extension de MetaMask",description:"Nous recommandons d'épingler MetaMask à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},okx:{qr_code:{step1:{title:"Ouvrez l'application OKX Wallet",description:"Nous recommandons de mettre OKX Wallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de numérisation",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l'extension de portefeuille OKX",description:"Nous vous recommandons d'épingler le portefeuille OKX à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},omni:{qr_code:{step1:{title:"Ouvrez l'application Omni",description:"Ajoutez Omni à votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Touchez l'icône QR et scannez",description:"Appuyez sur l'icône QR sur votre écran d'accueil, scannez le code et confirmez l'invite pour vous connecter."}}},token_pocket:{qr_code:{step1:{title:"Ouvrez l'application TokenPocket",description:"Nous vous recommandons de mettre TokenPocket sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créez ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille à l'aide d'une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Appuyez sur le bouton de scan",description:"Après votre scan, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l'extension TokenPocket",description:"Nous recommandons d'épingler TokenPocket à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},trust:{qr_code:{step1:{title:"Ouvrez l'application Trust Wallet",description:"Placez Trust Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Créer un nouveau portefeuille ou en importer un existant."},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}},extension:{step1:{title:"Installez l'extension Trust Wallet",description:"Cliquez en haut à droite de votre navigateur et épinglez Trust Wallet pour un accès facile."},step2:{title:"Créer ou importer un portefeuille",description:"Créer un nouveau portefeuille ou en importer un existant."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré Trust Wallet, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},uniswap:{qr_code:{step1:{title:"Ouvrez l'application Uniswap",description:"Ajoutez Uniswap Wallet à votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou importez un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Tapez sur l'icône QR et scannez",description:"Touchez l'icône QR sur votre écran d'accueil, scannez le code et confirmez l'invite pour vous connecter."}}},zerion:{qr_code:{step1:{title:"Ouvrez l'application Zerion",description:"Nous vous recommandons de mettre Zerion sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne."},step3:{title:"Appuyez sur le bouton de scan",description:"Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}},extension:{step1:{title:"Installer l'extension Zerion",description:"Nous recommandons d'épingler Zerion à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},rainbow:{qr_code:{step1:{title:"Ouvre l'application Rainbow",description:"Nous vous recommandons de mettre Rainbow sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir scanné, une invite de connexion apparaîtra pour que vous connectiez votre portefeuille."}}},enkrypt:{extension:{step1:{description:"Nous vous recommandons d'épingler Enkrypt Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Enkrypt Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l’extension.",title:"Rafraîchissez votre navigateur"}}},frame:{extension:{step1:{description:"Nous vous recommandons d'épingler Frame à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez Frame & l'extension complémentaire"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille à l'aide d'une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},one_key:{extension:{step1:{title:"Installez l'extension OneKey Wallet",description:"Nous vous recommandons d'épingler OneKey Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},phantom:{extension:{step1:{title:"Installez l'extension Phantom",description:"Nous vous recommandons d'épingler Phantom à votre barre des tâches pour un accès plus facile à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération secrète avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},rabby:{extension:{step1:{title:"Installez l'extension Rabby",description:"Nous recommandons d'épingler Rabby à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Actualisez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},safeheron:{extension:{step1:{title:"Installez l'extension Core",description:"Nous recommandons d'épingler Safeheron à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},taho:{extension:{step1:{title:"Installez l'extension Taho",description:"Nous vous recommandons d'épingler Taho à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},talisman:{extension:{step1:{title:"Installez l'extension Talisman",description:"Nous vous recommandons d'épingler Talisman à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou importer un portefeuille Ethereum",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},xdefi:{extension:{step1:{title:"Installez l'extension du portefeuille XDEFI",description:"Nous vous recommandons d'épingler XDEFI Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},zeal:{extension:{step1:{title:"Installez l'extension Zeal",description:"Nous vous recommandons d'épingler Zeal à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},safepal:{extension:{step1:{title:"Installez l'extension SafePal Wallet",description:"Cliquez en haut à droite de votre navigateur et épinglez SafePal Wallet pour un accès facile."},step2:{title:"Créer ou Importer un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré SafePal Wallet, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application SafePal Wallet",description:"Mettez SafePal Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}}},desig:{extension:{step1:{title:"Installez l'extension Desig",description:"Nous vous recommandons d'épingler Desig à votre barre des tâches pour un accès plus facile à votre portefeuille."},step2:{title:"Créer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},subwallet:{extension:{step1:{title:"Installez l'extension SubWallet",description:"Nous vous recommandons d'épingler SubWallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application SubWallet",description:"Nous vous recommandons de mettre SubWallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}}},clv:{extension:{step1:{title:"Installez l'extension CLV Wallet",description:"Nous vous recommandons d'épingler CLV Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application CLV Wallet",description:"Nous vous recommandons de mettre CLV Wallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}}},okto:{qr_code:{step1:{title:"Ouvrez l'application Okto",description:"Ajoutez Okto à votre écran d'accueil pour un accès rapide"},step2:{title:"Créer un portefeuille MPC",description:"Créez un compte et générez un portefeuille"},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Touchez l'icône 'Scan QR' en haut à droite et confirmez l'invite pour vous connecter."}}},ledger:{desktop:{step1:{title:"Ouvrez l'application Ledger Live",description:"Nous vous recommandons de mettre Ledger Live sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Configurez votre Ledger",description:"Configurez un nouveau Ledger ou connectez-vous à un existant."},step3:{title:"Connecter",description:"Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}},qr_code:{step1:{title:"Ouvrez l'application Ledger Live",description:"Nous vous recommandons de mettre Ledger Live sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Configurez votre Ledger",description:"Vous pouvez soit synchroniser avec l'application de bureau, soit connecter votre Ledger."},step3:{title:"Scannez le code",description:"Appuyez sur WalletConnect puis passez au Scanner. Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}}}},QF={connect_wallet:rm0,intro:im0,sign_in:am0,connect:om0,connect_scan:sm0,connector_group:fm0,get:lm0,get_options:cm0,get_mobile:Em0,get_instructions:dm0,chains:pm0,profile:hm0,wallet_connectors:Cm0},mm0={label:"वॉलेट को कनेक्ट करें"},gm0={title:"वॉलेट क्या है?",description:"एक वॉलेट का उपयोग डिजिटल संपत्तियों को भेजने, प्राप्त करने, संग्रहित करने और प्रदर्शित करने के लिए किया जाता है। यह एक नया तरीका भी है लॉग इन करने का, हर वेबसाइट पर नए खाते और पासवर्ड बनाने की जरूरत के बिना।",digital_asset:{title:"अपने डिजिटल संपत्तियों के लिए एक घर",description:"वॉलेट का उपयोग Ethereum और NFTs जैसी डिजिटल संपत्तियों को भेजने, प्राप्त करने, संग्रहित करने और प्रदर्शित करने के लिए किया जाता है."},login:{title:"लॉग इन करने का एक नया तरीका",description:"हर वेबसाइट पर नए खाते और पासवर्ड बनाने की बजाय, बस अपना वॉलेट कनेक्ट करें."},get:{label:"एक वॉलेट प्राप्त करें"},learn_more:{label:"और जानें"}},bm0={label:"अपने खाते की पुष्टि करें",description:"जुड़ने को पूरा करने के लिए, आपको अपने बटुए में एक संदेश पर हस्ताक्षर करना होगा ताकि पुष्टि हो सके कि आप इस खाते के मालिक हैं।",message:{send:"संदेश भेजें",preparing:"संदेश तैयार कर रहा है...",cancel:"रद्द करें",preparing_error:"संदेश तैयार करते समय त्रुटि, कृपया पुनः प्रयास करें!"},signature:{waiting:"हस्ताक्षर का इंतजार कर रहा है...",verifying:"हस्ताक्षर की पुष्टि की जा रही है...",signing_error:"संदेश पर हस्ताक्षर करते समय त्रुटि, कृपया पुनः प्रयास करें!",verifying_error:"हस्ताक्षर की पुष्टि में त्रुटि, कृपया पुनः प्रयास करें!",oops_error:"ओह, कुछ गलत हो गया!"}},Am0={label:"कनेक्ट करें",title:"वॉलेट को कनेक्ट करें",new_to_ethereum:{description:"Ethereum वॉलेट्स में नए हैं?",learn_more:{label:"और जानें"}},learn_more:{label:"और जानें।"},recent:"हाल ही में",status:{opening:"%{wallet}खोल रहा है...",not_installed:"%{wallet} स्थापित नहीं है",not_available:"%{wallet} उपलब्ध नहीं है",confirm:"एक्सटेंशन में कनेक्शन की पुष्टि करें"},secondary_action:{get:{description:"क्या आपके पास %{wallet}नहीं है ?",label:"प्राप्त करें"},install:{label:"स्थापित करें"},retry:{label:"पुनः प्रयास करें"}},walletconnect:{description:{full:"क्या आपको आधिकारिक WalletConnect मोडल की आवश्यकता है?",compact:"क्या आपको WalletConnect मोडल की आवश्यकता है?"},open:{label:"खोलें"}}},ym0={title:"स्कैन करें विथ %{wallet}",fallback_title:"अपने फोन से स्कैन करें"},vm0={recommended:"अनुशंसित",other:"अन्य",popular:"लोकप्रिय",more:"अधिक",others:"अन्य लोग"},Bm0={title:"एक वॉलेट प्राप्त करें",action:{label:"प्राप्त करें"},mobile:{description:"मोबाइल वॉलेट"},extension:{description:"ब्राउज़र एक्सटेंशन"},mobile_and_extension:{description:"मोबाइल वॉलेट और एक्सटेंशन"},mobile_and_desktop:{description:"मोबाइल और डेस्कटॉप वॉलेट"},looking_for:{title:"क्या आपको जो चाहिए वह नहीं मिल रहा है?",mobile:{description:"मुख्य स्क्रीन पर एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।"},desktop:{compact_description:"मुख्य स्क्रीन पर एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।",wide_description:"बाएं एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।"}}},Fm0={title:"%{wallet}के साथ शुरू करें",short_title:"%{wallet}प्राप्त करें",mobile:{title:"मोबाइल के लिए %{wallet}",description:"मोबाइल वॉलेट का उपयोग करके Ethereum की दुनिया का अन्वेषण करें।",download:{label:"ऐप प्राप्त करें"}},extension:{title:"%{wallet} के लिए %{browser}",description:"अपने पसंदीदा वेब ब्राउज़र से अपने वॉलेट तक पहुंचें।",download:{label:"करें जोड़ें %{browser}"}},desktop:{title:"%{wallet} के लिए %{platform}",description:"अपने शक्तिशाली डेस्कटॉप से आपके वॉलेट की स्वतंत्रता द्वारा पहुंच।",download:{label:"को जोड़ें %{platform}"}}},Dm0={title:"स्थापित करें %{wallet}",description:"iOS या Android पर डाउनलोड करने के लिए अपने फोन से स्कैन करें",continue:{label:"जारी रखें"}},wm0={mobile:{connect:{label:"जोड़ें"},learn_more:{label:"और जानें"}},extension:{refresh:{label:"ताज़ा करें"},learn_more:{label:"और जानें"}},desktop:{connect:{label:"कनेक्ट करें"},learn_more:{label:"और जानें"}}},xm0={title:"नेटवर्क स्विच करें",wrong_network:"गलत नेटवर्क का पता चला, जारी रखने के लिए स्विच करें या कनेक्ट करें।",confirm:"वॉलेट में पुष्टि करें",switching_not_supported:"आपका वॉलेट नेटवर्क्स को %{appName}से स्विच करना समर्थन नहीं करता . बजाय अपने वॉलेट के भीतर से नेटवर्क स्विच करने का प्रयास करें।",switching_not_supported_fallback:"आपका वॉलेट इस एप से नेटवर्क्स स्विच करने का समर्थन नहीं करता। बजाय उसके, अपना वॉलेट द्वारा नेटवर्क्स स्विच करने की कोशिश करें।",disconnect:"डिकनेक्ट",connected:"कनेक्ट किया गया"},km0={disconnect:{label:"डिकनेक्ट"},copy_address:{label:"पता कॉपी करें",copied:"कॉपी कर दिया गया!"},explorer:{label:"एक्सप्लोरर पर अधिक देखें"},transactions:{description:"%{appName} लेन - देन यहां दिखाई देंगे...",description_fallback:"आपके लेन-देन यहां दिखाई देंगे...",recent:{title:"हाल के लेन - देन"},clear:{label:"सभी को हटाएं"}}},_m0={argent:{qr_code:{step1:{description:"अपने वॉलेट को जल्दी से एक्सेस करने के लिए आपके होम स्क्रीन पर Argent डालें।",title:"Argent ऐप खोलें"},step2:{description:"वॉलेट और उपयोगकर्ता नाम बनाएं, या मौजूदा वॉलेट को आयात करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।",title:"QR स्कैन बटन को टैप करें"}}},bifrost:{qr_code:{step1:{description:"हम आपको सलाह देते हैं कि Bifrost Wallet को अपने होम स्क्रीन पर लगाएं, ताकि त्वरित एक्सेस को सुनिश्चित किया जा सके।",title:"Bifrost Wallet ऐप को खोलें"},step2:{description:"अपने रिकवरी फ़्रेज़ का उपयोग करके एक वॉलेट बनाएं या इंपोर्ट करें।",title:"वॉलेट बनाएं या इंपोर्ट करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।",title:"स्कैन बटन को टैप करें"}}},bitget:{qr_code:{step1:{description:"हम इसे सुझाव देते हैं कि आप अपने होम स्क्रीन पर Bitget वॉलेट को रखें ताकि जल्दी एक्सेस कर सकें।",title:"Bitget वॉलेट एप को खोलें"},step2:{description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने का एक संकेत दिखाई देगा।",title:"स्कैन बटन पर टैप करें"}},extension:{step1:{description:"हम इसे सुझाव देते हैं कि आप Bitget वॉलेट को आपके टास्कबार में पिन करें ताकि आपके वॉलेट तक जल्दी पहुंच सकें।",title:"Bitget Wallet एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप किसी सुरक्षित तरीके से ले रहे हैं। अपनी गुप्त वाक्यांश को कभी किसी के साथ साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},bitski:{extension:{step1:{description:"हम आपको अपने वॉलेट तक जल्दी पहुंचने के लिए Bitski को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Bitski एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपने वॉलेट का बैकअप बना रहे हैं। कभी भी किसी के साथ अपने गोपनीय वाक्यांश को साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेट कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},coin98:{qr_code:{step1:{description:"हम आपके वॉलेट तक तेजी से पहुंचने के लिए अपने होम स्क्रीन पर Coin98 वॉलेट रखने की सलाह देते हैं।",title:"Coin98 वॉलेट ऐप को खोलें"},step2:{description:"आप अपने फोन पर हमारे बैकअप फीचर का उपयोग करके आसानी से अपने वॉलेट का बैकअप कर सकते हैं।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रांप्ट दिखाई देगा।",title:"WalletConnect बटन पर टैप करें"}},extension:{step1:{description:"अपने ब्राउज़र के ऊपरी दाएं हिस्से पर क्लिक करें और आसानी से पहुंच के लिए Coin98 वॉलेट को पिन करें।",title:"Coin98 वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"नया बटुआ बनाएं या मौजूदा को आयात करें।",title:"एक बटुआ बनाएं या आयात करें"},step3:{description:"एक बार जब आप Coin98 वॉलेट सेट करते हैं, तो नीचे क्लिक करके ब्राउजर को ताजा करें और एक्सटेंशन को लोड करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},coinbase:{qr_code:{step1:{description:"हम आपको सलाह देते हैं कि आपकी मुख्य बिल्ड स्क्रीन पर Coinbase वॉलेट को रखें जिससे आपकी पहुंच तेज हो।",title:"Coinbase वॉलेट ऐप खोलें"},step2:{description:"आप बादल बैकअप सुविधा का उपयोग करके आसानी से अपने वॉलेट का बैकअप ले सकते हैं।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"जैसे ही आप स्कैन करते हैं, आपको अपने वॉलेट से कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।",title:"स्कैन बटन को छूना"}},extension:{step1:{description:"हमारा सिफारिश है कि आप अपने वॉलेट तक जल्दी पहुंचने के लिए Coinbase वॉलेट को अपने टास्कबार पर पिन पर रखें।",title:"Coinbase वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त पुनर्प्राप्ति वाक्यांश कभी भी किसी के साथ साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेट अप करते हैं, तो ब्राउज़र को ताजगी देने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें.",title:"अपना ब्राउज़र ताजा करें"}}},core:{qr_code:{step1:{description:"हम आपकी वॉलेट के तेज एक्सेस के लिए Core को आपके होम स्क्रीन पर डालने की सलाह देते हैं.",title:"Core एप खोलें"},step2:{description:"आप आसानी से अपने फ़ोन पर हमारे बैकअप फीचर का उपयोग करके अपना वॉलेट बैकअप कर सकते हैं.",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए आपके लिए कनेक्शन प्राम्प्ट प्रकट होगा.",title:"WalletConnect बटन को छूने के साथ"}},extension:{step1:{description:"हम अपने वॉलेट के लिए तेज एक्सेस के लिए कोर को अपने टास्कबार में पिन करने की सिफारिश करते हैं।",title:"कोर एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले। कभी भी किसी के साथ अपनी गुप्त वाक्यांश साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपने वॉलेट की स्थापना कर लें, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा कर सकें और एक्सटेंशन को लोड कर सकें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},fox:{qr_code:{step1:{description:"हम FoxWallet को अपने होम स्क्रीन पर रखने की सिफारिश करते हैं ताकि त्वरित एक्सेस मिल सके।",title:"FoxWallet ऐप खोलें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जब आप स्कैन करेंगे, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।",title:"स्कैन बटन पर टैप करें"}}},frontier:{qr_code:{step1:{description:"हमारी सिफारिश है कि आप अपने होम स्क्रीन पर फ्रंटियर वॉलेट रखें जिससे कि आपको त्वरित पहुंच मिले।",title:"फ्रंटियर वॉलेट ऐप को खोलें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जब आप स्कैन करते हैं, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।",title:"स्कैन बटन को टैप करें"}},extension:{step1:{description:"हम आपके वॉलेट की तेजी से पहुंच के लिए Frontier Wallet को अपने टास्कबार में पिन करने की सिफारिश करते हैं।",title:"Frontier Wallet एक्सटेंशन इंस्टॉल करें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"वॉलेट सेटअप होने के बाद, ब्राउज़र को रिफ्रेश करने के लिए नीचे क्लिक करें और एक्सटेंशन लोड करें।",title:"अपना ब्राउज़र रिफ्रेश करें"}}},im_token:{qr_code:{step1:{title:"imToken ऐप खोलें",description:"अपने वॉलेट के तेजी से पहुँच के लिए imToken एप्लीकेशन को अपने होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा एक को आयात करें।"},step3:{title:"ऊपरी दाएं कोने में स्कैनर आइकॉन पर टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},metamask:{qr_code:{step1:{title:"MetaMask ऐप को खोलें",description:"हम आपको MetaMask को आपकी होम स्क्रीन पर रखने की सलाह देते हैं, इससे आपको त्वरित पहुँच मिलेगी।"},step2:{title:"एक वॉलेट बनाएं या इम्पोर्ट करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रॉम्प्ट दिखाई देगा।"}},extension:{step1:{title:"MetaMask एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक जल्दी से पहुँचने के लिए MetaMask को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेना सुनिश्चित करें। अपनी गुप्त वाक्यांश को किसी के साथ शेयर न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट अप करते हैं, तो ब्राउजर को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},okx:{qr_code:{step1:{title:"OKX Wallet ऐप खोलें",description:"हम आपको OKX Wallet को अपने होम स्क्रीन पर रखने की सलाह देते हैं, जिससे आप जल्दी से पहुंच सकें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने का यकीन करें। कभी भी किसी के साथ अपने गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"जब आप स्कैन करते हैं, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।"}},extension:{step1:{title:"OKX वॉलेट एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक तेज़ी से पहुंचने के लिए आपको OKX वॉलेट को अपने कार्यपट्टी में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने का यकीन करें। कभी भी किसी के साथ अपने गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"जब आप अपना वॉलेट सेट अप कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताजा करें और एक्सटेंशन को लोड करें।"}}},omni:{qr_code:{step1:{title:"Omni ऐप को खोलें",description:"अपने वॉलेट तक अधिक जल्दी पहुंचने के लिए Omni को अपने होम स्क्रीन पर जोड़ें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा एक को आयात करें।"},step3:{title:"QR आइकन पर टैप करें और स्कैन करें",description:"अपने होम स्क्रीन पर QR आइकन पर टैप करें, कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},token_pocket:{qr_code:{step1:{title:"TokenPocket ऐप को खोलें",description:"हम आपको TokenPocket को अपने होम स्क्रीन पर रखने की सलाह देते हैं ताकि आपको तेज एक्सेस मिल सके।"},step2:{title:"एक वॉलेट बनाएँ या आयात करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"एक बार स्कैन करने के बाद, आपके लिए एक कनेक्शन प्रॉम्प्ट प्रकट होगा ताकि आप अपने वॉलेट को कनेक्ट कर सकें।"}},extension:{step1:{title:"TokenPocket एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक त्वरित पहुंच के लिए TokenPocket को अपने taskbar पर pin करने की सिफारिश करते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेते हैं। कभी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताज़ा ब्राउज़र लोड करें और एक्सटेंशन अप करें।"}}},trust:{qr_code:{step1:{title:"Trust Wallet ऐप खोलें",description:"अपने वॉलेट तक तेज़ी से पहुंचने के लिए Trust Wallet को अपने होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट आयात करें।"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और प्रम्प्ट की पुष्टि करें।"}},extension:{step1:{title:"Trust Wallet एक्सटेंशन को इंस्टॉल करें",description:"अपने ब्राउज़र के ऊपरी दाएं कोने पर क्लिक करें और Trust Wallet को आसानी से प्रवेश के लिए पिन करें।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट आयात करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार Trust Wallet सेट अप करने के बाद, नीचे क्लिक करें ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए।"}}},uniswap:{qr_code:{step1:{title:"Uniswap ऐप को खोलें",description:"अपने होम स्क्रीन पर Uniswap वॉलेट जोड़ें, इससे आपके वॉलेट तक तेजी से पहुंचने की सुविधा होगी।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट को आयात करें।"},step3:{title:"QR आइकन पर टैप करें और स्कैन करें",description:"अपने होमस्क्रीन पर QR आइकन पर टैप करें, कोड स्कैन करें और प्रम्प्ट को कनेक्ट करने की पुष्टि करें।"}}},zerion:{qr_code:{step1:{title:"Zerion ऐप को खोलें",description:"हम सलाह देते हैं कि आप Zerion को अपने होम स्क्रीन पर रखें, इससे तेजी से एक्सेस करने में आसानी होगी।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"आप स्कैन करने के बाद, एक कनेक्शन प्रोम्प्ट आपके बटुए को कनेक्ट करने के लिए प्रकट होगा।"}},extension:{step1:{title:"Zerion एक्सटेंशन स्थापित करें",description:"हमारी सिफारिश है कि आप अपने वॉलेट तक जल्दी पहुँचने के लिए Zerion को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित विधि का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। अपना गुप्त वाक्य कभी किसी के साथ साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपने वॉलेट की स्थापना कर लें, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},rainbow:{qr_code:{step1:{title:"Rainbow ऐप को खोलें",description:"हम अपने वॉलेट के तेज एक्सेस के लिए Rainbow को अपने होम स्क्रीन पर रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"आप अपने फ़ोन पर हमारे बैकअप फीचर का उपयोग करके अपने वॉलेट का बैकअप आसानी से ले सकते हैं।"},step3:{title:"स्कैन बटन पर टैप करें",description:"जब आप स्कैन करते हैं, तो आपकी वॉलेट से कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।"}}},enkrypt:{extension:{step1:{description:"हम अपनी वॉलेट तक तेज़ी से पहुँच के लिए Enkrypt वॉलेट को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Enkrypt वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपनी वॉलेट का बैकअप एक सुरक्षित तरीके से ले। अपनी गुप्त वाक्यांश को कभी भी किसी के साथ साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपनी वॉलेट सेट कर लें, तो नीचे क्लिक करें ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए।",title:"अपने ब्राउज़र को ताज़ा करें"}}},frame:{extension:{step1:{description:"हम अपनी वॉलेट तक तेज़ी से पहुँच के लिए Frame को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Frame और साथी एक्सटेंशन स्थापित करें"},step2:{description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेना सुनिश्चित करें। कभी भी अपनी गुप्त वाक्यांश को किसी के साथ साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपने वॉलेट की सेटअप कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।",title:"अपना ब्राउज़र ताज़ा करें"}}},one_key:{extension:{step1:{title:"OneKey Wallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट की तेज एक्सेस के लिए OneKey Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले रहे हैं। अपना गुप्त वाक्यांश किसी के साथ भी साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट अप कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},phantom:{extension:{step1:{title:"फैंटम एक्सटेंशन स्थापित करें",description:"हम आपके वॉलेट के आसान उपयोग के लिए फैंटम को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले रहे हैं। अपना गुप्त वसूली वाक्यांश किसी के साथ भी साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट कर लें, तो ब्राउज़र को ताजगी देने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},rabby:{extension:{step1:{title:"Rabby एक्सटेंशन स्थापित करें",description:"हम आपको सलाह देते हैं कि अपने वॉलेट की जल्दी से पहुँच के लिए Rabby को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेते हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"जब आप अपना वॉलेट सेट अप कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए नीचे क्लिक करें।"}}},safeheron:{extension:{step1:{title:"कोर एक्सटेंशन स्थापित करें",description:"हम आपको सलाह देते हैं कि अपने वॉलेट की जल्दी से पहुँच के लिए Safeheron को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपने गुप्त वाक्यांश को साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपने वॉलेट को सेट अप करते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},taho:{extension:{step1:{title:"ताहो एक्सटेंशन स्थापित करें",description:"हम आपके वॉलेट तक त्वरित पहुँच के लिए ताहो को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएँ या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपने गुप्त वाक्यांश को साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना बटुआ सेट कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},talisman:{extension:{step1:{title:"तालिसमान एक्सटेंशन स्थापित करें",description:"हम आपके बटुए के त्वरित पहुँच के लिए तालिसमान को अपने टास्कबार में पिन करने की सिफारिश करते हैं।"},step2:{title:"एक ईथेरियम बटुए बनाएं या आयात करें",description:"अपने बटुए का बैकअप एक सुरक्षित तरीके से लेने का ध्यान रखें। कभी भी अपनी वसूली वाक्यांश को किसी के साथ साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना बटुआ सेट कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},xdefi:{extension:{step1:{title:"XDEFI वॉलेट एक्सटेंशन स्थापित करें",description:"हम आपकी वॉलेट की जल्दी से पहुँच के लिए XDEFI Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"निश्चित रूप से अपने वॉलेट का बैकअप किसी सुरक्षित तरीके से लें। अपनी गोपनीय वाक्यांश को किसी के साथ शेयर ना करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आपने अपनी वॉलेट सेट अप कर ली हो, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},zeal:{extension:{step1:{title:"Zeal एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक जल्दी पहुँचने के लिए Zeal को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}}},safepal:{extension:{step1:{title:"SafePal Wallet एक्सटेंशन स्थापित करें",description:"अपने ब्राउज़र के शीर्ष दाएं में क्लिक करें और SafePal Wallet को आसानी से पहुंच के लिए पिन करें।"},step2:{title:"एक बटुआ बनाएं या आयात करें",description:"नया बटुआ बनाएं या मौजूदा को आयात करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप SafePal वॉलेट सेट अप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को रिफ्रेश करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"SafePal वॉलेट ऐप खोलें",description:"अपने वॉलेट तक जल्दी पहुंचने के लिए SafePal वॉलेट को अपनी होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"नया बटुआ बनाएं या मौजूदा को आयात करें।"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},desig:{extension:{step1:{title:"Desig एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट के लिए आसानी से पहुंच पाने के लिए Desig को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएँ",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}}},subwallet:{extension:{step1:{title:"SubWallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक तेजी से पहुंचने के लिए SubWallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने बटुए का बैकअप एक सुरक्षित तरीके से लेने का ध्यान रखें। कभी भी अपनी वसूली वाक्यांश को किसी के साथ साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"SubWallet ऐप खोलें",description:"हम आपको तेजी से पहुंचने के लिए SubWallet को अपने होम स्क्रीन पर रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।"}}},clv:{extension:{step1:{title:"CLV Wallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक तेजी से पहुंचने के लिए CLV Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"CLV वॉलेट ऐप खोलें",description:"हम तीव्र पहुंच के लिए आपके होम स्क्रीन पर CLV वॉलेट रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।"}}},okto:{qr_code:{step1:{title:"Okto ऐप को खोलें",description:"त्वरित पहुंच के लिए अपने होम स्क्रीन पर Okto जोड़ें"},step2:{title:"एक MPC वॉलेट बनाएं",description:"एक खाता बनाएं और वॉलेट उत्पन्न करें"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"ऊपरी दाएँ में स्कैन QR आइकन को टैप करें और कनेक्ट करने के लिए संकेत दें।"}}},ledger:{desktop:{step1:{title:"लेजर लाइव ऐप खोलें",description:"हम तेज एक्सेस के लिए अपने होम स्क्रीन पर Ledger Live डालने की सिफारिश करते हैं।"},step2:{title:"अपना लेजर सेट करें",description:"एक नया लेजर सेट अप करें या मौजूदा वाले से कनेक्ट करें।"},step3:{title:"कनेक्ट करें",description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रॉम्प्ट दिखाई देगा।"}},qr_code:{step1:{title:"लेजर लाइव ऐप खोलें",description:"हम तेज एक्सेस के लिए अपने होम स्क्रीन पर Ledger Live डालने की सिफारिश करते हैं।"},step2:{title:"अपना लेजर सेट करें",description:"आप डेस्कटॉप ऐप के साथ सिंक कर सकते हैं या अपने Ledger को कनेक्ट कर सकते हैं।"},step3:{title:"कोड स्कैन करें",description:"WalletConnect पर टैप करें फिर स्कैनर पर स्विच करें। जब आप स्कैन करेंगे, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।"}}}},JF={connect_wallet:mm0,intro:gm0,sign_in:bm0,connect:Am0,connect_scan:ym0,connector_group:vm0,get:Bm0,get_options:Fm0,get_mobile:Dm0,get_instructions:wm0,chains:xm0,profile:km0,wallet_connectors:_m0},Sm0={label:"Hubungkan Dompet"},Tm0={title:"Apa itu Dompet?",description:"Sebuah dompet digunakan untuk mengirim, menerima, menyimpan, dan menampilkan aset digital. Ini juga cara baru untuk masuk, tanpa perlu membuat akun dan kata sandi baru di setiap situs web.",digital_asset:{title:"Sebuah Rumah untuk Aset Digital Anda",description:"Dompet digunakan untuk mengirim, menerima, menyimpan, dan menampilkan aset digital seperti Ethereum dan NFTs."},login:{title:"Cara Baru untuk Masuk",description:"Alih-alih membuat akun dan kata sandi baru di setiap situs web, cukup hubungkan dompet Anda."},get:{label:"Dapatkan Dompet"},learn_more:{label:"Pelajari lebih lanjut"}},Pm0={label:"Verifikasi akun Anda",description:"Untuk menyelesaikan koneksi, Anda harus menandatangani sebuah pesan di dompet Anda untuk memastikan bahwa Anda adalah pemilik dari akun ini.",message:{send:"Kirim pesan",preparing:"Mempersiapkan pesan...",cancel:"Batal",preparing_error:"Kesalahan dalam mempersiapkan pesan, silakan coba lagi!"},signature:{waiting:"Menunggu tanda tangan...",verifying:"Memverifikasi tanda tangan...",signing_error:"Kesalahan dalam menandatangani pesan, silakan coba lagi!",verifying_error:"Kesalahan dalam memverifikasi tanda tangan, silakan coba lagi!",oops_error:"Ups, ada yang salah!"}},Om0={label:"Hubungkan",title:"Hubungkan Dompet",new_to_ethereum:{description:"Baru dalam dompet Ethereum?",learn_more:{label:"Pelajari lebih lanjut"}},learn_more:{label:"Pelajari lebih lanjut"},recent:"Terkini",status:{opening:"Membuka %{wallet}...",not_installed:"%{wallet} tidak terpasang",not_available:"%{wallet} tidak tersedia",confirm:"Konfirmasikan koneksi di ekstensi"},secondary_action:{get:{description:"Tidak memiliki %{wallet}?",label:"DAPATKAN"},install:{label:"PASANG"},retry:{label:"COBA LAGI"}},walletconnect:{description:{full:"Perlu modal resmi WalletConnect?",compact:"Perlu modal WalletConnect?"},open:{label:"BUKA"}}},Im0={title:"Pindai dengan %{wallet}",fallback_title:"Pindai dengan ponsel Anda"},Nm0={recommended:"Direkomendasikan",other:"Lainnya",popular:"Populer",more:"Lebih Banyak",others:"Lainnya"},Rm0={title:"Dapatkan Dompet",action:{label:"DAPATKAN"},mobile:{description:"Dompet Mobile"},extension:{description:"Ekstensi Browser"},mobile_and_extension:{description:"Dompet Mobile dan Ekstensi"},mobile_and_desktop:{description:"Dompet Seluler dan Desktop"},looking_for:{title:"Bukan yang Anda cari?",mobile:{description:"Pilih dompet di layar utama untuk memulai dengan penyedia dompet yang berbeda."},desktop:{compact_description:"Pilih dompet di layar utama untuk memulai dengan penyedia dompet yang berbeda.",wide_description:"Pilih dompet di sebelah kiri untuk memulai dengan penyedia dompet yang berbeda."}}},Mm0={title:"Mulai dengan %{wallet}",short_title:"Dapatkan %{wallet}",mobile:{title:"%{wallet} untuk Mobile",description:"Gunakan dompet mobile untuk menjelajahi dunia Ethereum.",download:{label:"Dapatkan aplikasinya"}},extension:{title:"%{wallet} untuk %{browser}",description:"Akses dompet Anda langsung dari browser web favorit Anda.",download:{label:"Tambahkan ke %{browser}"}},desktop:{title:"%{wallet} untuk %{platform}",description:"Akses dompet Anda secara native dari desktop yang kuat Anda.",download:{label:"Tambahkan ke %{platform}"}}},jm0={title:"Instal %{wallet}",description:"Pindai dengan ponsel Anda untuk mengunduh di iOS atau Android",continue:{label:"Lanjutkan"}},zm0={mobile:{connect:{label:"Hubungkan"},learn_more:{label:"Pelajari lebih lanjut"}},extension:{refresh:{label:"Segarkan"},learn_more:{label:"Pelajari lebih lanjut"}},desktop:{connect:{label:"Hubungkan"},learn_more:{label:"Pelajari lebih lanjut"}}},Lm0={title:"Alihkan Jaringan",wrong_network:"Jaringan yang salah terdeteksi, alihkan atau diskonek untuk melanjutkan.",confirm:"Konfirmasi di Dompet",switching_not_supported:"Dompet Anda tidak mendukung pengalihan jaringan dari %{appName}. Coba alihkan jaringan dari dalam dompet Anda.",switching_not_supported_fallback:"Wallet Anda tidak mendukung penggantian jaringan dari aplikasi ini. Cobalah ganti jaringan dari dalam wallet Anda.",disconnect:"Putuskan koneksi",connected:"Terkoneksi"},$m0={disconnect:{label:"Putuskan koneksi"},copy_address:{label:"Salin Alamat",copied:"Tersalin!"},explorer:{label:"Lihat lebih banyak di penjelajah"},transactions:{description:"%{appName} transaksi akan muncul di sini...",description_fallback:"Transaksi Anda akan muncul di sini...",recent:{title:"Transaksi Terbaru"},clear:{label:"Hapus Semua"}}},Um0={argent:{qr_code:{step1:{description:"Letakkan Argent di layar utama Anda untuk akses lebih cepat ke dompet Anda.",title:"Buka aplikasi Argent"},step2:{description:"Buat dompet dan nama pengguna, atau impor dompet yang ada.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda.",title:"Tekan tombol Scan QR"}}},bifrost:{qr_code:{step1:{description:"Kami merekomendasikan untuk menempatkan Bifrost Wallet di layar utama anda untuk akses yang lebih cepat.",title:"Buka aplikasi Bifrost Wallet"},step2:{description:"Buat atau impor sebuah dompet menggunakan frasa pemulihan Anda.",title:"Buat atau Impor sebuah Wallet"},step3:{description:"Setelah Anda memindai, sebuah pesan akan muncul untuk menghubungkan dompet Anda.",title:"Tekan tombol scan"}}},bitget:{qr_code:{step1:{description:"Kami menyarankan untuk meletakkan Bitget Wallet di layar depan Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Bitget Wallet"},step2:{description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda pindai, akan muncul petunjuk untuk menghubungkan wallet Anda.",title:"Tekan tombol pindai"}},extension:{step1:{description:"Kami menyarankan untuk memasang Bitget Wallet ke taskbar Anda untuk akses yang lebih cepat ke wallet Anda.",title:"Instal ekstensi Dompet Bitget"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},bitski:{extension:{step1:{description:"Kami merekomendasikan untuk memasang Bitski ke taskbar Anda untuk akses dompet Anda yang lebih cepat.",title:"Pasang ekstensi Bitski"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},coin98:{qr_code:{step1:{description:"Kami merekomendasikan untuk menaruh Coin98 Wallet di layar utama Anda untuk akses wallet Anda lebih cepat.",title:"Buka aplikasi Coin98 Wallet"},step2:{description:"Anda dapat dengan mudah mencadangkan wallet Anda menggunakan fitur cadangan kami di telepon Anda.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda melakukan pemindaian, akan muncul prompt koneksi untuk Anda menghubungkan wallet Anda.",title:"Ketuk tombol WalletConnect"}},extension:{step1:{description:"Klik di pojok kanan atas browser Anda dan sematkan Coin98 Wallet untuk akses mudah.",title:"Pasang ekstensi Coin98 Wallet"},step2:{description:"Buat dompet baru atau impor yang sudah ada.",title:"Buat atau Impor sebuah dompet"},step3:{description:"Setelah Anda menyiapkan Coin98 Wallet, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},coinbase:{qr_code:{step1:{description:"Kami merekomendasikan memasang Coinbase Wallet di layar utama Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Coinbase Wallet"},step2:{description:"Anda dapat dengan mudah mencadangkan dompet Anda menggunakan fitur cadangan awan.",title:"Buat atau Impor sebuah Dompet"},step3:{description:"Setelah Anda memindai, akan muncul sebuah petunjuk koneksi untuk Anda menyambungkan dompet Anda.",title:"Ketuk tombol pindai"}},extension:{step1:{description:"Kami merekomendasikan untuk menempel Coinbase Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda.",title:"Instal ekstensi Coinbase Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun.",title:"Buat atau Import Wallet"},step3:{description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},core:{qr_code:{step1:{description:"Kami merekomendasikan untuk meletakkan Core di layar utama Anda untuk akses lebih cepat ke wallet Anda.",title:"Buka aplikasi Core"},step2:{description:"Anda dapat dengan mudah mencadangkan wallet Anda dengan menggunakan fitur cadangan kami di telepon Anda.",title:"Buat atau Import Wallet"},step3:{description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menyambungkan wallet Anda.",title:"Ketuk tombol WalletConnect"}},extension:{step1:{description:"Kami merekomendasikan untuk menempelkan Core pada taskbar Anda untuk akses ke dompet Anda lebih cepat.",title:"Pasang ekstensi Core"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},fox:{qr_code:{step1:{description:"Kami merekomendasikan untuk menaruh FoxWallet pada layar utama Anda untuk akses lebih cepat.",title:"Buka aplikasi FoxWallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda hubungkan dompet Anda.",title:"Ketuk tombol pindai"}}},frontier:{qr_code:{step1:{description:"Kami merekomendasikan untuk meletakkan Frontier Wallet di layar awal Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Frontier Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda menghubungkan dompet Anda.",title:"Ketuk tombol pindai"}},extension:{step1:{description:"Kami menyarankan menempelkan Frontier Wallet ke taskbar Anda untuk akses yang lebih cepat ke dompet Anda.",title:"Instal ekstensi Frontier Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},im_token:{qr_code:{step1:{title:"Buka aplikasi imToken",description:"Letakkan aplikasi imToken di layar utama Anda untuk akses yang lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk Ikon Scanner di pojok kanan atas",description:"Pilih Koneksi Baru, lalu pindai kode QR dan konfirmasi petunjuk untuk terhubung."}}},metamask:{qr_code:{step1:{title:"Buka aplikasi MetaMask",description:"Kami merekomendasikan untuk meletakkan MetaMask di layar beranda Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol pindai",description:"Setelah Anda memindai, petunjuk koneksi akan muncul untuk Anda menyambungkan dompet Anda."}},extension:{step1:{title:"Pasang ekstensi MetaMask",description:"Kami menyarankan untuk memasang MetaMask pada taskbar Anda untuk akses wallet lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},okx:{qr_code:{step1:{title:"Buka aplikasi OKX Wallet",description:"Kami menyarankan untuk menaruh OKX Wallet di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol scan",description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda hubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi OKX Wallet",description:"Kami menyarankan untuk menempelkan OKX Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},omni:{qr_code:{step1:{title:"Buka aplikasi Omni",description:"Tambahkan Omni ke layar utama Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Buat wallet baru atau impor yang sudah ada."},step3:{title:"Ketuk ikon QR dan scan",description:"Ketuk ikon QR di layar utama Anda, pindai kode dan konfirmasi petunjuk untuk terhubung."}}},token_pocket:{qr_code:{step1:{title:"Buka aplikasi TokenPocket",description:"Kami sarankan meletakkan TokenPocket di layar utama Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol pindai",description:"Setelah Anda memindai, Indikasi sambungan akan muncul untuk Anda menghubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi TokenPocket",description:"Kami merekomendasikan penambatan TokenPocket ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},trust:{qr_code:{step1:{title:"Buka aplikasi Trust Wallet",description:"Pasang Trust Wallet di layar utama Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Pilih Koneksi Baru, kemudian pindai kode QR dan konfirmasi perintah untuk terhubung."}},extension:{step1:{title:"Instal ekstensi Trust Wallet",description:"Klik di pojok kanan atas browser Anda dan sematkan Trust Wallet untuk akses mudah."},step2:{title:"Buat atau Impor dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur Trust Wallet, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},uniswap:{qr_code:{step1:{title:"Buka aplikasi Uniswap",description:"Tambahkan Uniswap Wallet ke layar utama Anda untuk akses ke wallet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Buat wallet baru atau impor yang sudah ada."},step3:{title:"Ketuk ikon QR dan pindai",description:"Ketuk ikon QR di layar utama Anda, pindai kode dan konfirmasi prompt untuk terhubung."}}},zerion:{qr_code:{step1:{title:"Buka aplikasi Zerion",description:"Kami merekomendasikan untuk meletakkan Zerion di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol scan",description:"Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi Zerion",description:"Kami menyarankan untuk menempelkan Zerion ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur wallet Anda, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},rainbow:{qr_code:{step1:{title:"Buka aplikasi Rainbow",description:"Kami menyarankan menempatkan Rainbow di layar home Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Anda dapat dengan mudah mencadangkan wallet Anda menggunakan fitur cadangan kami di telepon Anda."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul pesan untuk menghubungkan dompet Anda."}}},enkrypt:{extension:{step1:{description:"Kami menyarankan untuk memasang Enkrypt Wallet ke taskbar Anda untuk akses dompet yang lebih cepat.",title:"Instal ekstensi Enkrypt Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet, klik di bawah ini untuk memuat ulang peramban dan meload ekstensi.",title:"Segarkan browser Anda"}}},frame:{extension:{step1:{description:"Kami menyarankan untuk memasang Frame ke taskbar Anda untuk akses dompet yang lebih cepat.",title:"Instal Frame & ekstensi pendamping"},step2:{description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda menyetel wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},one_key:{extension:{step1:{title:"Instal ekstensi OneKey Wallet",description:"Kami menyarankan untuk menempelkan OneKey Wallet ke taskbar Anda untuk akses wallet yang lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},phantom:{extension:{step1:{title:"Instal ekstensi Phantom",description:"Kami menyarankan untuk mem-pin Phantom ke taskbar Anda untuk akses dompet yang lebih mudah."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},rabby:{extension:{step1:{title:"Instal ekstensi Rabby",description:"Kami merekomendasikan menempelkan Rabby ke taskbar Anda untuk akses lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda dengan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},safeheron:{extension:{step1:{title:"Instal ekstensi Core",description:"Kami merekomendasikan menempelkan Safeheron ke taskbar Anda untuk akses lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur dompet Anda, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},taho:{extension:{step1:{title:"Instal ekstensi Taho",description:"Kami merekomendasikan pengepinan Taho ke taskbar Anda untuk akses yang lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},talisman:{extension:{step1:{title:"Instal ekstensi Talisman",description:"Kami merekomendasikan menempelkan Talisman ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet Ethereum",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase pemulihan Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},xdefi:{extension:{step1:{title:"Instal ekstensi Dompet XDEFI",description:"Kami merekomendasikan menempelkan XDEFI Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},zeal:{extension:{step1:{title:"Instal ekstensi Zeal",description:"Kami merekomendasikan untuk mem-pin Zeal ke taskbar Anda untuk akses wallet lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},safepal:{extension:{step1:{title:"Pasang ekstensi SafePal Wallet",description:"Klik di pojok kanan atas browser Anda dan pin SafePal Wallet untuk akses mudah."},step2:{title:"Buat atau Impor sebuah dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan SafePal Wallet, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi SafePal Wallet",description:"Letakkan SafePal Wallet di layar utama Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Pilih Koneksi Baru, lalu pindai kode QR dan konfirmasi petunjuk untuk terhubung."}}},desig:{extension:{step1:{title:"Instal ekstensi Desig",description:"Kami merekomendasikan menempelkan Desig ke taskbar Anda untuk akses dompet Anda lebih mudah."},step2:{title:"Buat Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},subwallet:{extension:{step1:{title:"Instal ekstensi SubWallet",description:"Kami merekomendasikan menempelkan SubWallet ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase pemulihan Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi SubWallet",description:"Kami merekomendasikan menaruh SubWallet di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda."}}},clv:{extension:{step1:{title:"Instal ekstensi CLV Wallet",description:"Kami merekomendasikan menempelkan CLV Wallet ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi CLV Wallet",description:"Kami sarankan untuk menempatkan CLV Wallet di layar utama Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda."}}},okto:{qr_code:{step1:{title:"Buka aplikasi Okto",description:"Tambahkan Okto ke layar utama Anda untuk akses cepat"},step2:{title:"Buat Wallet MPC",description:"Buat akun dan generate wallet"},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Ketuk ikon Scan QR di pojok kanan atas dan konfirmasi prompt untuk terhubung."}}},ledger:{desktop:{step1:{title:"Buka aplikasi Ledger Live",description:"Kami merekomendasikan menempatkan Ledger Live di layar utama Anda untuk akses lebih cepat."},step2:{title:"Atur Ledger Anda",description:"Atur Ledger baru atau hubungkan ke Ledger yang sudah ada."},step3:{title:"Hubungkan",description:"Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}},qr_code:{step1:{title:"Buka aplikasi Ledger Live",description:"Kami merekomendasikan menempatkan Ledger Live di layar utama Anda untuk akses lebih cepat."},step2:{title:"Atur Ledger Anda",description:"Anda dapat melakukan sinkronisasi dengan aplikasi desktop atau menghubungkan Ledger Anda."},step3:{title:"Pindai kode",description:"Ketuk WalletConnect lalu Beralih ke Scanner. Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}}}},YF={connect_wallet:Sm0,intro:Tm0,sign_in:Pm0,connect:Om0,connect_scan:Im0,connector_group:Nm0,get:Rm0,get_options:Mm0,get_mobile:jm0,get_instructions:zm0,chains:Lm0,profile:$m0,wallet_connectors:Um0},Wm0={label:"ウォレットを接続"},qm0={title:"ウォレットとは何ですか?",description:"ウォレットは、デジタルアセットを送信、受信、保存、表示するために使用されます。また、各ウェブサイトで新たなアカウントやパスワードを作成する必要なく、ログインする新しい方法でもあります。",digital_asset:{title:"あなたのデジタル資産のための家",description:"ウォレットは、EthereumやNFTのようなデジタル資産を送信、受信、保存、表示するために使用されます。"},login:{title:"新しいログイン方法",description:"すべてのウェブサイトで新しいアカウントとパスワードを作成する代わりに、ウォレットを接続します。"},get:{label:"ウォレットを取得する"},learn_more:{label:"詳しくはこちら"}},Hm0={label:"アカウントを確認する",description:"接続を完了するには、このアカウントの所有者であることを証明するためにウォレットでメッセージに署名する必要があります。",message:{send:"メッセージを送信",preparing:"メッセージの準備中...",cancel:"キャンセル",preparing_error:"メッセージの準備中にエラーが発生しました、再試行してください!"},signature:{waiting:"署名を待っています...",verifying:"署名を検証中...",signing_error:"メッセージの署名中にエラーが発生しました、再試行してください!",verifying_error:"署名の検証中にエラーが発生しました、再試行してください!",oops_error:"おっと、何かが間違っていました!"}},Gm0={label:"接続",title:"ウォレットを接続する",new_to_ethereum:{description:"Ethereumのウォレットが初めてですか?",learn_more:{label:"詳しくはこちら"}},learn_more:{label:"詳しくはこちら"},recent:"最近利用しました",status:{opening:"%{wallet}を開いています...",not_installed:"%{wallet} はインストールされていません",not_available:"%{wallet} は利用できません",confirm:"エクステンションで接続を確認してください"},secondary_action:{get:{description:"%{wallet}がありませんか?",label:"取得"},install:{label:"インストール"},retry:{label:"再試行"}},walletconnect:{description:{full:"公式のWalletConnectモーダルが必要ですか?",compact:"WalletConnectモーダルが必要ですか?"},open:{label:"開く"}}},Vm0={title:"%{wallet}でスキャン",fallback_title:"携帯電話でスキャンしてください"},Km0={recommended:"おすすめのウォレット",other:"その他",popular:"人気のウォレット",more:"もっと",others:"その他"},Qm0={title:"ウォレットを取得",action:{label:"取得"},mobile:{description:"モバイルウォレット"},extension:{description:"ブラウザ拡張"},mobile_and_extension:{description:"モバイルウォレットと拡張機能"},mobile_and_desktop:{description:"モバイルとデスクトップウォレット"},looking_for:{title:"お探しのウォレットがありませんか?",mobile:{description:"メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。"},desktop:{compact_description:"メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。",wide_description:"左側のウォレットを選択して、別のウォレットプロバイダーで始めてください。"}}},Jm0={title:"%{wallet}で始める",short_title:"%{wallet}を取得する",mobile:{title:"モバイル用 %{wallet}",description:"モバイルウォレットを使用して、イーサリアムの世界を探索します。",download:{label:"アプリを取得"}},extension:{title:"%{wallet} for %{browser}",description:"お好きなウェブブラウザからウォレットに直接アクセスします。",download:{label:"%{browser}に追加"}},desktop:{title:"%{wallet} for %{platform}",description:"あなたの強力なデスクトップからネイティブにウォレットにアクセスします。",download:{label:"%{platform}に追加する"}}},Ym0={title:"%{wallet}をインストール",description:"iOSまたはAndroidでダウンロードするために電話でスキャン",continue:{label:"続行"}},Zm0={mobile:{connect:{label:"接続"},learn_more:{label:"詳しくはこちら"}},extension:{refresh:{label:"更新"},learn_more:{label:"詳しくはこちら"}},desktop:{connect:{label:"接続"},learn_more:{label:"詳しくはこちら"}}},Xm0={title:"ネットワークを切り替える",wrong_network:"誤ったネットワークが検出されました、続行するには切り替えるか切断してください。",confirm:"ウォレットで確認する",switching_not_supported:"あなたのウォレットは %{appName}からネットワークを切り替えることをサポートしていません。ウォレット内でネットワークを切り替えてみてください。",switching_not_supported_fallback:"あなたのウォレットは、このアプリからネットワークを切り替えることをサポートしていません。代わりにウォレット内からネットワークを切り替えてみてください。",disconnect:"切断する",connected:"接続しました"},u70={disconnect:{label:"切断する"},copy_address:{label:"アドレスをコピーする",copied:"コピーしました!"},explorer:{label:"エクスプローラーで詳しく見る"},transactions:{description:"%{appName} トランザクションがここに表示されます...",description_fallback:"あなたのトランザクションはここに表示されます...",recent:{title:"最近のトランザクション"},clear:{label:"すべてクリア"}}},e70={argent:{qr_code:{step1:{description:"より速くウォレットにアクセスするために、Argentをホーム画面に置いてください。",title:"Argentアプリを開く"},step2:{description:"ウォレットとユーザーネームを作成するか、既存のウォレットをインポートします。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"「QRをスキャン」ボタンをタップします"}}},bifrost:{qr_code:{step1:{description:"より速くアクセスできるように、Bifrost Walletをホーム画面に置くことをお勧めします。",title:"Bifrost Walletアプリを開きます"},step2:{description:"リカバリーフレーズを使用してウォレットを作成またはインポートします。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"「スキャン」ボタンをタップします"}}},bitget:{qr_code:{step1:{description:"より迅速なアクセスのために、ホーム画面にBitget Walletを配置することをお勧めします。",title:"Bitget Walletアプリを開く"},step2:{description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップする"}},extension:{step1:{description:"ウォレットへのより迅速なアクセスのためにBitget Walletをタスクバーにピン留めすることをお勧めします。",title:"Bitget Wallet拡張機能をインストールします"},step2:{description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポートします"},step3:{description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",title:"ブラウザを更新する"}}},bitski:{extension:{step1:{description:"ウォレットへの素早いアクセスのために、Bitskiをタスクバーにピン留めすることをお勧めします。",title:"Bitskiエクステンションをインストールする"},step2:{description:"ウォレットを安全な方法でバックアップしてください。シークレットフレーズは誰とも共有しないでください。",title:"ウォレットを作成するか、インポートする"},step3:{description:"ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。",title:"ブラウザを更新する"}}},coin98:{qr_code:{step1:{description:"Coin98ウォレットをホーム画面に置くことで、ウォレットへのアクセスが高速化されることをお勧めします。",title:"Coin98ウォレットアプリを開きます"},step2:{description:"電話のバックアップ機能を使用して、ウォレットを簡単にバックアップすることができます。",title:"ウォレットを作成またはインポートする"},step3:{description:"スキャン後、ウォレットへの接続を促すプロンプトが表示されます。",title:"WalletConnectボタンをタップします"}},extension:{step1:{description:"ブラウザの右上をクリックして、Coin98ウォレットをピン留めして簡単にアクセスできるようにします。",title:"Coin98ウォレットの拡張機能をインストールします"},step2:{description:"新しいウォレットを作成するか、既存のものをインポートします。",title:"ウォレットを作成またはインポートする"},step3:{description:"Coin98ウォレットをセットアップしたら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},coinbase:{qr_code:{step1:{description:"より素早くアクセスできるように、Coinbaseウォレットをホームスクリーンに置くことをお勧めします。",title:"Coinbase Walletアプリを開く"},step2:{description:"クラウドバックアップ機能を使用して、簡単にウォレットをバックアップできます。",title:"ウォレットを作成またはインポートする"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップする"}},extension:{step1:{description:"タスクバーにCoinbase Walletをピン留めして、ウォレットにより早くアクセスできるように推奨します。",title:"Coinbase Wallet拡張機能をインストールする"},step2:{description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰にも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"ウォレットの設定が完了したら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},core:{qr_code:{step1:{description:"ウォレットへの迅速なアクセスのため、コアをホーム画面に設定することを推奨します。",title:"Coreアプリを開く"},step2:{description:"電話のバックアップ機能を使って、簡単にウォレットをバックアップできます。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するようにプロンプトが表示されます。",title:"WalletConnectボタンをタップする"}},extension:{step1:{description:"ウォレットへのより迅速なアクセスのために、タスクバーにCoreをピン留めすることをお勧めします。",title:"Core拡張機能をインストールする"},step2:{description:"セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポートする"},step3:{description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},fox:{qr_code:{step1:{description:"より迅速なアクセスのために、ホーム画面にFoxWalletを置くことをお勧めします。",title:"FoxWalletアプリを開く"},step2:{description:"セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップします"}}},frontier:{qr_code:{step1:{description:"Frontierウォレットをホーム画面に置くことで、より早くアクセスできることをお勧めします。",title:"Frontierウォレットアプリを開きます"},step2:{description:"セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後に、ウォレットの接続を促すメッセージが表示されます。",title:"スキャンボタンをタップします"}},extension:{step1:{description:"より迅速なウォレットへのアクセスを可能にするために、フロンティアウォレットをタスクバーにピン留めすることを推奨します。",title:"フロンティアウォレットの拡張機能をインストールします"},step2:{description:"安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"ウォレットの設定が完了したら、ブラウザを更新して拡張機能を読み込みます。",title:"ブラウザを更新する"}}},im_token:{qr_code:{step1:{title:"imTokenアプリを開く",description:"ウォレットへのアクセスを速くするために、imTokenアプリをホーム画面に置いてください。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"右上隅のスキャナーアイコンをタップします",description:"新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"}}},metamask:{qr_code:{step1:{title:"MetaMaskアプリを開きます",description:"迅速なアクセスのために、MetaMaskをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポートします",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンをタップします",description:"スキャンすると、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"MetaMaskの拡張機能をインストールします",description:"ウォレットへのより速いアクセスのために、MetaMaskをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"安全な方法を使用してウォレットをバックアップし、秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットを設定した後は、下のリンクをクリックしてブラウザを更新し、エクステンションを読み込んでください。"}}},okx:{qr_code:{step1:{title:"OKX Walletアプリを開く",description:"OKX Walletをホーム画面に配置して、より早くアクセスできるようにすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。"},step3:{title:"スキャンボタンをタップする",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"OKXウォレット拡張機能をインストールする",description:"ウォレットへの迅速なアクセスのため、OKXウォレットをタスクバーにピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、下をクリックしてブラウザをリフレッシュし、拡張機能を読み込みます。"}}},omni:{qr_code:{step1:{title:"Omniアプリを開く",description:"Omniをホーム画面に追加して、ウォレットへのアクセスを早めます。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"QRアイコンをタップしてスキャン",description:"ホーム画面のQRアイコンをタップし、コードをスキャンし、プロンプトを確認して接続します。"}}},token_pocket:{qr_code:{step1:{title:"TokenPocketアプリを開く",description:"より速いアクセスのために、TokenPocketをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポートする",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンをタップする",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"TokenPocketエクステンションをインストールする",description:"ウォレットへのより早いアクセスのために、TokenPocketをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットを安全な方法でバックアップすることを確認してください。シークレットフレーズを決して他の人と共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},trust:{qr_code:{step1:{title:"Trust Walletアプリを開く",description:"ウォレットへの高速アクセスのために、Trust Walletをホーム画面に置きます。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"設定でWalletConnectをタップします",description:"新しい接続を選択し、QRコードをスキャンして、プロンプトで接続を確認します。"}},extension:{step1:{title:"Trust Wallet拡張機能をインストールします",description:"ブラウザの右上をクリックし、Trust Walletをピン留めして簡単にアクセスできるようにします。"},step2:{title:"ウォレットを作成するかインポートします",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"ブラウザを更新する",description:"Trust Walletの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},uniswap:{qr_code:{step1:{title:"Uniswapアプリを開く",description:"Uniswapウォレットをホーム画面に追加して、ウォレットへのアクセスを高速化します。"},step2:{title:"ウォレットを作成またはインポートする",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"QRアイコンをタップしてスキャンする",description:"ホーム画面のQRアイコンをタップし、コードをスキャンしてプロンプトを確認して接続します。"}}},zerion:{qr_code:{step1:{title:"Zerionアプリを開く",description:"より速くアクセスするために、Zerionをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンを押す",description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"Zerion拡張機能をインストールする",description:"ウォレットへの素早いアクセスのため、Zerionをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットをセキュアな方法でバックアップすることを確認してください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットをセットアップしたら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。"}}},rainbow:{qr_code:{step1:{title:"Rainbowアプリを開く",description:"ウォレットへの早いアクセスのために、Rainbowをホーム画面に置くことをおすすめします。"},step2:{title:"ウォレットを作成またはインポート",description:"電話のバックアップ機能を使用して、簡単にウォレットをバックアップすることができます。"},step3:{title:"スキャンボタンをタップする",description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。"}}},enkrypt:{extension:{step1:{description:"ウォレットへのアクセスをより早くするため、タスクバーにEnkrypt Walletをピン留めすることを推奨します。",title:"Enkrypt Wallet拡張機能をインストールしてください"},step2:{description:"安全な方法でウォレットのバックアップを必ず取り、秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成するか、インポートする"},step3:{description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",title:"ブラウザを更新する"}}},frame:{extension:{step1:{description:"ウォレットへのアクセスをより早くするため、タスクバーにFrameをピン留めすることを推奨します。",title:"Frameとその付属の拡張機能をインストール"},step2:{description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成、またはインポート"},step3:{description:"ウォレットの設定が完了したら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新"}}},one_key:{extension:{step1:{title:"OneKey Wallet拡張機能をインストール",description:"ウォレットへのアクセスを素早く行うため、OneKey Walletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成、またはインポート",description:"安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},phantom:{extension:{step1:{title:"Phantom拡張機能をインストールする",description:"ウォレットへの容易なアクセスのため、Phantomをタスクバーにピン留めすることを推奨します。"},step2:{title:"ウォレットを作成またはインポートする",description:"安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。"}}},rabby:{extension:{step1:{title:"Rabbyエクステンションをインストールする",description:"ウォレットへの素早いアクセスのため、タスクバーにRabbyをピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},safeheron:{extension:{step1:{title:"コア拡張機能をインストール",description:"ウォレットへの素早いアクセスのため、タスクバーにSafeheronをピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},taho:{extension:{step1:{title:"Taho拡張機能をインストールする",description:"ウォレットへのより迅速なアクセスのため、Tahoをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},talisman:{extension:{step1:{title:"Talisman拡張機能をインストールする",description:"ウォレットへのより早いアクセスのために、Talismanをタスクバーにピン留めすることをお勧めします。"},step2:{title:"Ethereumウォレットを作成するか、インポートする",description:"ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},xdefi:{extension:{step1:{title:"XDEFI Wallet拡張機能をインストールする",description:"XDEFI Walletをタスクバーにピン留めすることで、ウォレットへのアクセスが速くなることをお勧めします。"},step2:{title:"ウォレットの作成またはインポート",description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードしてください。"}}},zeal:{extension:{step1:{title:"Zeal 拡張機能をインストール",description:"ウォレットに素早くアクセスするために、タスクバーに Zeal をピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},safepal:{extension:{step1:{title:"SafePal Wallet拡張機能をインストールする",description:"ブラウザの右上でクリックし、Easy AccessのためにSafePal Walletをピン留めします。"},step2:{title:"ウォレットを作成またはインポートする",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"ブラウザを更新する",description:"SafePal Walletのセットアップが完了したら、以下をクリックしてブラウザをリフレッシュし、エクステンションをロードします。"}},qr_code:{step1:{title:"SafePal Walletアプリを開く",description:"SafePal Walletをホーム画面に置くことで、ウォレットへの素早いアクセスが可能になります。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"設定でWalletConnectをタップします",description:"新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"}}},desig:{extension:{step1:{title:"Desig拡張機能をインストール",description:"あなたのウォレットへの簡単なアクセスのために、Desigをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},subwallet:{extension:{step1:{title:"SubWallet拡張機能をインストール",description:"ウォレットへのより素早いアクセスのため、SubWalletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}},qr_code:{step1:{title:"SubWalletアプリを開く",description:"より迅速なアクセスのために、SubWalletをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"「スキャン」ボタンをタップします",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}},clv:{extension:{step1:{title:"CLV Wallet拡張機能をインストール",description:"ウォレットへのより素早いアクセスのため、CLV Walletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}},qr_code:{step1:{title:"CLV Walletアプリを開く",description:"より迅速なアクセスのために、ホーム画面にCLV Walletを置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"「スキャン」ボタンをタップします",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}},okto:{qr_code:{step1:{title:"Oktoアプリを開く",description:"素早くアクセスするために、ホーム画面にOktoを追加します"},step2:{title:"MPCウォレットを作成する",description:"アカウントを作成し、ウォレットを生成します"},step3:{title:"設定でWalletConnectをタップします",description:"右上のScan QRアイコンをタップし、接続するためのプロンプトを確認します。"}}},ledger:{desktop:{step1:{title:"Ledger Liveアプリを開く",description:"より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。"},step2:{title:"あなたのLedgerを設定する",description:"新しいLedgerを設定するか、既存のものに接続します。"},step3:{title:"接続",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},qr_code:{step1:{title:"Ledger Liveアプリを開く",description:"より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。"},step2:{title:"あなたのLedgerを設定する",description:"デスクトップアプリと同期するか、あなたのLedgerに接続することができます。"},step3:{title:"コードをスキャンする",description:"WalletConnectをタップし、スキャナーに切り替えてください。スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}}},ZF={connect_wallet:Wm0,intro:qm0,sign_in:Hm0,connect:Gm0,connect_scan:Vm0,connector_group:Km0,get:Qm0,get_options:Jm0,get_mobile:Ym0,get_instructions:Zm0,chains:Xm0,profile:u70,wallet_connectors:e70},t70={label:"지갑 연결"},n70={title:"지갑이란 무엇인가요?",description:"지갑은 디지털 자산을 보내고, 받고, 저장하고, 표시하는 데 사용됩니다. 또한, 모든 웹 사이트에서 새 계정과 비밀번호를 생성할 필요 없이 로그인하는 새로운 방법입니다.",digital_asset:{title:"당신의 디지털 자산을 위한 집",description:"지갑은 이더리움 및 NFT와 같은 디지털 자산을 보내고, 받고, 저장하고, 표시하는데 사용됩니다."},login:{title:"새로운 로그인 방식",description:"모든 웹사이트에서 새 계정과 비밀번호를 생성하는 대신, 당신의 지갑을 연결하기만 하면 됩니다."},get:{label:"지갑 가져오기"},learn_more:{label:"더 알아보기"}},r70={label:"계정을 확인하세요",description:"연결을 완료하려면 이 계정의 소유자임을 확인하기 위해 지갑에 메시지에 서명해야 합니다.",message:{send:"메시지 보내기",preparing:"메시지 준비 중...",cancel:"취소",preparing_error:"메시지 준비 중 오류가 발생했습니다. 다시 시도하세요!"},signature:{waiting:"서명을 기다리는 중...",verifying:"서명 검증 중...",signing_error:"메시지 서명 중 오류가 발생했습니다. 다시 시도하세요!",verifying_error:"서명 검증 중 오류가 발생했습니다. 다시 시도하세요!",oops_error:"앗, 문제가 발생했습니다!"}},i70={label:"연결",title:"지갑 연결",new_to_ethereum:{description:"이더리움 지갑에 처음 접하시나요?",learn_more:{label:"더 알아보기"}},learn_more:{label:"더 알아보기"},recent:"최근",status:{opening:"%{wallet}열기 ...",not_installed:"%{wallet} 가 설치되어 있지 않습니다",not_available:"%{wallet} 를 사용할 수 없습니다",confirm:"확장기능에서 연결을 확인하세요"},secondary_action:{get:{description:"%{wallet}가 없나요?",label:"GET"},install:{label:"설치"},retry:{label:"다시 시도"}},walletconnect:{description:{full:"공식 WalletConnect 모달이 필요한가요?",compact:"WalletConnect 모달이 필요한가요?"},open:{label:"열기"}}},a70={title:"%{wallet}로 스캔하기",fallback_title:"휴대폰으로 스캔하기"},o70={recommended:"추천",other:"기타",popular:"인기",more:"더 보기",others:"다른 사항들"},s70={title:"월렛 받기",action:{label:"받기"},mobile:{description:"모바일 월렛"},extension:{description:"브라우저 확장 프로그램"},mobile_and_extension:{description:"모바일 지갑 및 확장 프로그램"},mobile_and_desktop:{description:"모바일 및 데스크톱 지갑"},looking_for:{title:"찾고 계신 것이 아닌가요?",mobile:{description:"메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요."},desktop:{compact_description:"메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요.",wide_description:"왼쪽에서 지갑을 선택하여 다른 지갑 제공자를 사용하기 시작하세요."}}},f70={title:"%{wallet}로 시작하십시오",short_title:"%{wallet}얻기",mobile:{title:"모바일용 %{wallet}",description:"모바일 지갑으로 이더리움 세계를 탐험하세요.",download:{label:"앱 받기"}},extension:{title:"%{browser}용 %{wallet}",description:"가장 좋아하는 웹 브라우저에서 바로 지갑에 접근하세요.",download:{label:"추가하기 %{browser}"}},desktop:{title:"%{wallet} 용 %{platform}",description:"강력한 데스크톱에서 네이티브로 지갑에 접근하세요.",download:{label:"%{platform}에 추가"}}},l70={title:"설치하기 %{wallet}",description:"iOS 또는 Android에서 다운로드하기 위해 휴대폰으로 스캔하세요",continue:{label:"계속"}},c70={mobile:{connect:{label:"연결"},learn_more:{label:"더 알아보기"}},extension:{refresh:{label:"새로고침"},learn_more:{label:"더 알아보기"}},desktop:{connect:{label:"연결"},learn_more:{label:"더 알아보기"}}},E70={title:"네트워크 전환",wrong_network:"잘못된 네트워크를 탐지했습니다, 계속하려면 전환하거나 연결을 해제하세요.",confirm:"지갑에서 승인",switching_not_supported:"지갑에서 %{appName}네트워크를 전환하는 것은 지원되지 않습니다. 대신 지갑 내에서 네트워크를 전환해 보세요.",switching_not_supported_fallback:"당신의 지갑은 이 앱에서 네트워크를 바꾸는 것을 지원하지 않습니다. 대신 지갑 내에서 네트워크를 변경해 보십시오.",disconnect:"연결 해제",connected:"연결됨"},d70={disconnect:{label:"연결 해제"},copy_address:{label:"주소 복사",copied:"복사됨!"},explorer:{label:"탐색기에서 더 보기"},transactions:{description:"%{appName} 거래가 여기에 나타납니다...",description_fallback:"여기에 트랜잭션이 표시됩니다...",recent:{title:"최근 거래 내역"},clear:{label:"모두 지우기"}}},p70={argent:{qr_code:{step1:{description:"지갑에 더 빠르게 액세스하려면 Argent를 홈 화면에 놓으십시오.",title:"Argent 앱을 열기"},step2:{description:"지갑과 사용자 이름을 생성하거나 기존의 지갑을 가져옵니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다.",title:"QR 코드 스캔 버튼을 누르기"}}},bifrost:{qr_code:{step1:{description:"더 빠른 접근을 위해 홈 화면에 Bifrost Wallet을 놓는 것을 권장합니다.",title:"Bifrost 지갑 앱을 열어주세요"},step2:{description:"복구 문구를 사용하여 지갑을 생성하거나 가져옵니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후 연결 프롬프트가 나타나고 지갑을 연결할 수 있습니다.",title:"스캔 버튼을 누릅니다"}}},bitget:{qr_code:{step1:{description:"더 빠른 접근을 위해 Bitget 지갑을 홈 화면에 두는 것을 권장합니다.",title:"Bitget 지갑 앱을 열십시오"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후, 지갑을 연결하라는 연결 요청 메시지가 나타납니다.",title:"스캔 버튼을 누르십시오"}},extension:{step1:{description:"지갑에 빠르게 액세스하기 위해 Bitget Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Bitget Wallet 확장 프로그램을 설치하세요"},step2:{description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 누구와도 공유하지 마십시오.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요.",title:"브라우저를 새로 고침하세요"}}},bitski:{extension:{step1:{description:"지갑에 더 빠르게 액세스하기 위해 Bitski를 작업 표시줄에 고정하는 것을 권장합니다.",title:"Bitski 확장 기능을 설치합니다"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구를 누구와도 공유하지 마십시오.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하세요.",title:"브라우저를 새로고침하세요"}}},coin98:{qr_code:{step1:{description:"지갑에 빠르게 액세스하기 위해 Coin98 Wallet을 홈 화면에 두는 것을 권장합니다.",title:"Coin98 Wallet 앱을 열기"},step2:{description:"휴대폰에서 백업 기능을 이용하여 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 만들기 또는 가져오기"},step3:{description:"스캔한 후 연결 프롬프트가 나타나 지갑을 연결하도록 합니다.",title:"WalletConnect 버튼을 누르십시오"}},extension:{step1:{description:"브라우저 오른쪽 상단을 클릭하고 쉽게 액세스할 수 있도록 Coin98 Wallet을 고정하십시오.",title:"Coin98 Wallet 확장 프로그램을 설치하십시오"},step2:{description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다.",title:"지갑을 만들거나 가져옵니다"},step3:{description:"Coin98 Wallet을 설정하면 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저를 새로 고치십시오"}}},coinbase:{qr_code:{step1:{description:"더 빠른 액세스를 위해 Coinbase Wallet을 홈 화면에 두는 것을 권장합니다.",title:"Coinbase Wallet 앱을 엽니다"},step2:{description:"클라우드 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다.",title:"스캔 버튼을 탭하세요"}},extension:{step1:{description:"지갑에 더 빠르게 접근할 수 있도록 Coinbase Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Coinbase Wallet 확장 프로그램을 설치하세요"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구는 절대로 누구와도 공유하지 마십시오.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저 새로 고침"}}},core:{qr_code:{step1:{description:"지갑에 빠르게 액세스할 수 있도록 Core를 홈 화면에 두는 것을 추천드립니다.",title:"Core 앱 열기"},step2:{description:"휴대폰에서 우리의 백업 기능을 이용해 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 만들기 또는 가져오기"},step3:{description:"스캔 한 후에는 지갑을 연결하라는 연결 요청이 표시됩니다.",title:"WalletConnect 버튼을 누르세요"}},extension:{step1:{description:"지갑에 더 빠르게 액세스하기 위해 작업 표시줄에 Core를 고정하는 것을 권장합니다.",title:"Core 확장 프로그램을 설치하십시오"},step2:{description:"안전한 방법을 사용하여 지갑을 백업해야 합니다. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저를 새로 고치세요"}}},fox:{qr_code:{step1:{description:"FoxWallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.",title:"FoxWallet 앱을 열어주세요"},step2:{description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오.",title:"지갑을 생성하거나 가져오기"},step3:{description:"스캔 후, 지갑을 연결하라는 연결 프롬프트가 표시됩니다.",title:"스캔 버튼을 누르세요"}}},frontier:{qr_code:{step1:{description:"Frontier Wallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.",title:"Frontier Wallet 앱을 열어주세요"},step2:{description:"지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후에 지갑을 연결하라는 연결 프롬프트가 표시됩니다.",title:"스캔 버튼을 누르세요"}},extension:{step1:{description:"지갑에 더 빠르게 액세스 할 수 있도록 Frontier Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Frontier Wallet 확장 기능 설치"},step2:{description:"지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저를 새로 고칩니다"}}},im_token:{qr_code:{step1:{title:"imToken 앱을 연다",description:"당신의 지갑에 더 빠르게 접근하기 위해 imToken 앱을 홈 화면에 둡니다."},step2:{title:"지갑을 만들거나 불러옵니다",description:"새 지갑을 생성하거나 기존의 것을 가져옵니다."},step3:{title:"오른쪽 상단의 스캐너 아이콘을 누릅니다",description:"새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."}}},metamask:{qr_code:{step1:{title:"MetaMask 앱을 엽니다",description:"빠른 액세스를 위해 MetaMask를 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"당신의 지갑을 안전한 방법으로 백업하는 것을 잊지 마세요. 절대로 비밀 구절을 공유하지 마세요."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다."}},extension:{step1:{title:"MetaMask 확장 프로그램을 설치하세요",description:"지갑에 빠르게 접근하기 위해 MetaMask를 작업표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 결코 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑 설정을 마친 후에는 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},okx:{qr_code:{step1:{title:"OKX Wallet 앱을 열기",description:"더 빠른 접근을 위해 OKX 지갑을 홈 화면에 두는 것을 추천합니다."},step2:{title:"지갑 만들기 또는 불러오기",description:"안전한 방법으로 지갑을 백업하십시오. 절대 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"스캔 버튼을 탭하세요",description:"스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}},extension:{step1:{title:"OKX 지갑 확장 프로그램 설치하기",description:"지갑에 빠르게 접근할 수 있도록 OKX 지갑을 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 만들기 또는 불러오기",description:"당신의 지갑을 안전한 방법으로 백업해야 합니다. 비밀 문구를 절대로 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑을 설정한 후, 브라우저를 새로 고치고 확장 기능을 로드하기 위해 아래를 클릭하세요."}}},omni:{qr_code:{step1:{title:"Omni 앱을 열기",description:"더 빠른 액세스를 위해 Omni를 홈 스크린에 추가하세요."},step2:{title:"지갑 만들기 또는 가져오기",description:"새로운 지갑을 만들거나 기존의 하나를 가져옵니다."},step3:{title:"QR 아이콘을 탭하고 스캔하기",description:"홈 화면의 QR 아이콘을 탭하고, 코드를 스캔하고 프롬프트를 확인하여 연결하세요."}}},token_pocket:{qr_code:{step1:{title:"TokenPocket 앱을 열어주세요",description:"빠른 접근을 위해 홈 화면에 TokenPocket을 추가하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구에게도 비밀 문구를 공유하지 마세요."},step3:{title:"스캔 버튼을 탭하세요",description:"스캔 후에 지갑을 연결하라는 프롬프트가 표시됩니다."}},extension:{step1:{title:"TokenPocket 확장 기능을 설치하십시오",description:"지갑에 빠르게 접근하기 위해 TokenPocket를 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"브라우저 새로 고침",description:"지갑을 설정하면 아래를 클릭하여 브라우저를 새로 고침하고 확장 기능을 로드합니다."}}},trust:{qr_code:{step1:{title:"Trust Wallet 앱을 열기",description:"지갑에 빠르게 접근하기 위해 Trust Wallet을 홈 스크린에 두십시오."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 생성하거나 기존의 것을 가져오십시오."},step3:{title:"설정에서 WalletConnect를 탭하십시오",description:"새 연결을 선택한 다음 QR 코드를 스캔하고, 연결을 확인하는 프롬프트를 확인하십시오."}},extension:{step1:{title:"Trust Wallet 확장 기능을 설치하십시오",description:"브라우저의 오른쪽 상단을 클릭하고 Trust Wallet을 고정하여 쉽게 접근하십시오."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 생성하거나 기존의 것을 가져오십시오."},step3:{title:"브라우저를 새로고침하세요",description:"Trust Wallet을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다."}}},uniswap:{qr_code:{step1:{title:"Uniswap 앱을 엽니다",description:"Uniswap Wallet을 홈 화면에 추가하여 지갑에 더 빠르게 액세스하세요."},step2:{title:"지갑을 만들거나 가져오기",description:"새 지갑을 생성하거나 기존의 것을 가져옵니다."},step3:{title:"QR 아이콘을 누르고 스캔하기",description:"홈화면의 QR 아이콘을 누르고 코드를 스캔하고 프롬프트를 확인하여 연결하세요."}}},zerion:{qr_code:{step1:{title:"Zerion 앱을 엽니다",description:"더 빠른 접근을 위해 Zerion을 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법으로 지갑을 백업하십시오. 절대로 비밀 구절을 누군가와 공유하지 마십시오."},step3:{title:"스캔 버튼을 탭하십시오",description:"스캔 후 연결 프롬프트가 나타나 지갑을 연결하십시오."}},extension:{step1:{title:"Zerion 확장 프로그램을 설치하십시오",description:"지갑에 더 빠르게 접근할 수 있도록 Zerion을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 비밀 구문을 절대로 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},rainbow:{qr_code:{step1:{title:"Rainbow 앱 열기",description:"지갑에 더 빠르게 접근하기 위해 홈 화면에 Rainbow를 두는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"휴대폰에 있는 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다."},step3:{title:"스캔 버튼을 누르세요",description:"스캔 후, 지갑을 연결하라는 연결 프롬프트가 나타납니다."}}},enkrypt:{extension:{step1:{description:"지갑에 더 빠르게 접근하기 위해 작업 표시줄에 Enkrypt Wallet를 고정하는 것을 추천합니다.",title:"Enkrypt Wallet 확장 프로그램을 설치하세요"},step2:{description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하세요.",title:"브라우저 새로 고침"}}},frame:{extension:{step1:{description:"지갑에 더 빠르게 접근할 수 있도록 Frame을 작업 표시줄에 고정하는 것을 추천합니다.",title:"Frame 및 동반 확장 프로그램 설치"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 다른 사람과 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하세요.",title:"브라우저 새로 고침"}}},one_key:{extension:{step1:{title:"OneKey Wallet 확장 프로그램을 설치하세요",description:"지갑에 빠르게 접근할 수 있도록 OneKey Wallet을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 불러오기",description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하십시오."}}},phantom:{extension:{step1:{title:"Phantom 확장 프로그램을 설치하세요",description:"지갑에 더 쉽게 접근할 수 있도록 Phantom을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 불러오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 누구와도 비밀 복구 구문을 공유하지 마십시오."},step3:{title:"브라우저를 새로고침하십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 기능을 로드하십시오."}}},rabby:{extension:{step1:{title:"Rabby 확장 프로그램을 설치하십시오",description:"지갑에 더 빠르게 액세스할 수 있도록 Rabby를 작업표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 누구와도 비밀 구문을 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드합니다."}}},safeheron:{extension:{step1:{title:"코어 확장 프로그램 설치",description:"지갑에 빠르게 액세스하기 위해 Safeheron을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구를 절대 다른 사람과 공유하지 마십시오."},step3:{title:"브라우저 새로 고침",description:"지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드합니다."}}},taho:{extension:{step1:{title:"Taho 확장 프로그램 설치",description:"지갑에 더 빠르게 액세스하기 위해 Taho를 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 결코 비밀 문구를 누군가와 공유하지 마십시오."},step3:{title:"브라우저를 새로 고치십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오."}}},talisman:{extension:{step1:{title:"탈리스만 확장 프로그램 설치",description:"지갑에 더 빠르게 접근하기 위해 Talisman을 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"이더리움 지갑 생성 또는 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하십시오. 복구 문구를 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑을 설정 한 후 아래를 클릭하여 브라우저를 새로 고침하고 확장 기능을 로드하십시오."}}},xdefi:{extension:{step1:{title:"XDEFI 지갑 확장 기능을 설치하십시오",description:"지갑에 빠르게 액세스하기 위해 작업 표시줄에 XDEFI Wallet을 고정하는 것을 권장합니다."},step2:{title:"지갑을 만들거나 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구를 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하십시오."}}},zeal:{extension:{step1:{title:"Zeal 확장 프로그램을 설치하십시오",description:"월렛에 더 빠르게 액세스할 수 있도록 Zeal을 작업 표시 줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},safepal:{extension:{step1:{title:"SafePal Wallet 확장 프로그램을 설치하세요",description:"브라우저의 오른쪽 상단에서 클릭하고 SafePal Wallet을 고정하여 쉽게 접근하세요."},step2:{title:"지갑을 만들거나 가져옵니다",description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."},step3:{title:"브라우저를 새로 고침하세요",description:"SafePal Wallet을 설정한 후에는 아래를 클릭하여 브라우저를 새로 고치고 확장 기능을 로드하십시오."}},qr_code:{step1:{title:"SafePal Wallet 앱을 열십시오",description:"월렛에 빠르게 액세스할 수 있도록 SafePal Wallet을 홈 화면에 두십시오."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."},step3:{title:"설정에서 WalletConnect를 탭하십시오",description:"새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."}}},desig:{extension:{step1:{title:"Desig 확장 프로그램 설치",description:"당신의 지갑에 더 쉽게 접근하기 위해 작업 표시줄에 Desig을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},subwallet:{extension:{step1:{title:"SubWallet 확장 프로그램 설치",description:"당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 SubWallet을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하십시오. 복구 문구를 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}},qr_code:{step1:{title:"SubWallet 앱 열기",description:"더 빠른 접근을 위해 SubWallet을 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다."}}},clv:{extension:{step1:{title:"CLV Wallet 확장 프로그램 설치",description:"당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 CLV Wallet을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}},qr_code:{step1:{title:"CLV Wallet 앱을 엽니다",description:"더 빠른 접근을 위해 CLV Wallet을 홈 화면에 놓는 것이 좋습니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다."}}},okto:{qr_code:{step1:{title:"Okto 앱을 엽니다",description:"빠른 접근을 위해 Okto를 홈 화면에 추가합니다"},step2:{title:"MPC Wallet을 만듭니다",description:"계정을 만들고 지갑을 생성합니다"},step3:{title:"설정에서 WalletConnect를 탭하십시오",description:"오른쪽 상단의 QR 아이콘을 탭하고 연결하려면 알림을 확인합니다."}}},ledger:{desktop:{step1:{title:"Ledger Live 앱을 엽니다",description:"빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다."},step2:{title:"Ledger 설정",description:"새 Ledger를 설정하거나 기존 Ledger에 연결하세요."},step3:{title:"연결",description:"스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}},qr_code:{step1:{title:"Ledger Live 앱을 엽니다",description:"빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다."},step2:{title:"Ledger 설정",description:"데스크톱 앱과 동기화하거나 Ledger를 연결할 수 있습니다."},step3:{title:"코드를 스캔하십시오",description:"WalletConnect를 탭하고 스캐너로 전환합니다. 스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}}}},XF={connect_wallet:t70,intro:n70,sign_in:r70,connect:i70,connect_scan:a70,connector_group:o70,get:s70,get_options:f70,get_mobile:l70,get_instructions:c70,chains:E70,profile:d70,wallet_connectors:p70},h70={label:"Conectar Carteira"},C70={title:"O que é uma Carteira?",description:"Uma carteira é usada para enviar, receber, armazenar e exibir ativos digitais. Também é uma nova forma de se conectar, sem precisar criar novas contas e senhas em todo site.",digital_asset:{title:"Um lar para seus ativos digitais",description:"Carteiras são usadas para enviar, receber, armazenar e exibir ativos digitais como Ethereum e NFTs."},login:{title:"Uma nova maneira de fazer login",description:"Em vez de criar novas contas e senhas em todos os sites, basta conectar sua carteira."},get:{label:"Obter uma Carteira"},learn_more:{label:"Saiba mais"}},m70={label:"Verifique sua conta",description:"Para concluir a conexão, você deve assinar uma mensagem em sua carteira para confirmar que você é o proprietário desta conta.",message:{send:"Enviar mensagem",preparing:"Preparando mensagem...",cancel:"Cancelar",preparing_error:"Erro ao preparar a mensagem, tente novamente!"},signature:{waiting:"Aguardando assinatura...",verifying:"Verificando assinatura...",signing_error:"Erro ao assinar a mensagem, tente novamente!",verifying_error:"Erro ao verificar assinatura, tente novamente!",oops_error:"Ops, algo deu errado!"}},g70={label:"Conectar",title:"Conectar uma Carteira",new_to_ethereum:{description:"Novo nas carteiras Ethereum?",learn_more:{label:"Saiba mais"}},learn_more:{label:"Saiba mais"},recent:"Recente",status:{opening:"Abrindo %{wallet}...",not_installed:"%{wallet} não está instalado",not_available:"%{wallet} não está disponível",confirm:"Confirme a conexão na extensão"},secondary_action:{get:{description:"Não tem %{wallet}?",label:"OBTER"},install:{label:"INSTALAR"},retry:{label:"TENTAR DE NOVO"}},walletconnect:{description:{full:"Precisa do modal oficial do WalletConnect?",compact:"Precisa do modal WalletConnect?"},open:{label:"ABRIR"}}},b70={title:"Digitalize com %{wallet}",fallback_title:"Digitalize com o seu telefone"},A70={recommended:"Recomendado",other:"Outro",popular:"Popular",more:"Mais",others:"Outros"},y70={title:"Obter uma Carteira",action:{label:"OBTER"},mobile:{description:"Carteira Móvel"},extension:{description:"Extensão do Navegador"},mobile_and_extension:{description:"Carteira Móvel e Extensão"},mobile_and_desktop:{description:"Carteira para Mobile e Desktop"},looking_for:{title:"Não é o que você está procurando?",mobile:{description:"Selecione uma carteira na tela principal para começar com um provedor de carteira diferente."},desktop:{compact_description:"Selecione uma carteira na tela principal para começar com um provedor de carteira diferente.",wide_description:"Selecione uma carteira à esquerda para começar com um provedor de carteira diferente."}}},v70={title:"Comece com %{wallet}",short_title:"Obtenha %{wallet}",mobile:{title:"%{wallet} para Móvel",description:"Use a carteira móvel para explorar o mundo do Ethereum.",download:{label:"Baixe o aplicativo"}},extension:{title:"%{wallet} para %{browser}",description:"Acesse sua carteira diretamente do seu navegador web favorito.",download:{label:"Adicionar ao %{browser}"}},desktop:{title:"%{wallet} para %{platform}",description:"Acesse sua carteira nativamente do seu desktop poderoso.",download:{label:"Adicionar ao %{platform}"}}},B70={title:"Instale %{wallet}",description:"Escaneie com seu celular para baixar no iOS ou Android",continue:{label:"Continuar"}},F70={mobile:{connect:{label:"Conectar"},learn_more:{label:"Saiba mais"}},extension:{refresh:{label:"Atualizar"},learn_more:{label:"Saiba mais"}},desktop:{connect:{label:"Conectar"},learn_more:{label:"Saiba mais"}}},D70={title:"Mudar Redes",wrong_network:"Rede errada detectada, mude ou desconecte para continuar.",confirm:"Confirme na Carteira",switching_not_supported:"Sua carteira não suporta a mudança de redes de %{appName}. Tente mudar de redes dentro da sua carteira.",switching_not_supported_fallback:"Sua carteira não suporta a troca de redes a partir deste aplicativo. Tente trocar de rede dentro de sua carteira.",disconnect:"Desconectar",connected:"Conectado"},w70={disconnect:{label:"Desconectar"},copy_address:{label:"Copiar Endereço",copied:"Copiado!"},explorer:{label:"Veja mais no explorador"},transactions:{description:"%{appName} transações aparecerão aqui...",description_fallback:"Suas transações aparecerão aqui...",recent:{title:"Transações Recentes"},clear:{label:"Limpar Tudo"}}},x70={argent:{qr_code:{step1:{description:"Coloque o Argent na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Argent"},step2:{description:"Crie uma carteira e nome de usuário, ou importe uma carteira existente.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão Scan QR"}}},bifrost:{qr_code:{step1:{description:"Recomendamos colocar a Bifrost Wallet na sua tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Bifrost Wallet"},step2:{description:"Crie ou importe uma carteira usando sua frase de recuperação.",title:"Criar ou Importar uma Carteira"},step3:{description:"Após você escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escanear"}}},bitget:{qr_code:{step1:{description:"Recomendamos colocar a Bitget Wallet na sua tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Bitget Wallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escaneamento"}},extension:{step1:{description:"Recomendamos fixar a Bitget Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Bitget"},step2:{description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},bitski:{extension:{step1:{description:"Recomendamos fixar o Bitski na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Bitski"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},coin98:{qr_code:{step1:{description:"Recomendamos colocar a Carteira Coin98 na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Carteira Coin98"},step2:{description:"Você pode facilmente fazer backup de sua carteira usando nosso recurso de backup em seu telefone.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão WalletConnect"}},extension:{step1:{description:"Clique no canto superior direito do seu navegador e fixe a Carteira Coin98 para fácil acesso.",title:"Instale a extensão da Carteira Coin98"},step2:{description:"Crie uma nova carteira ou importe uma existente.",title:"Criar ou Importar uma carteira"},step3:{description:"Depois de configurar a Carteira Coin98, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},coinbase:{qr_code:{step1:{description:"Recomendamos colocar a Carteira Coinbase na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Coinbase Wallet"},step2:{description:"Você pode fazer backup da sua carteira facilmente usando o recurso de backup na nuvem.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para que você conecte sua carteira.",title:"Toque no botão de escanear"}},extension:{step1:{description:"Recomendamos fixar o Coinbase Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Coinbase Wallet"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},core:{qr_code:{step1:{description:"Recomendamos colocar o Core na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Core"},step2:{description:"Você pode facilmente salvar sua carteira usando nosso recurso de backup no seu celular.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão WalletConnect"}},extension:{step1:{description:"Recomendamos fixar o Core na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Core"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},fox:{qr_code:{step1:{description:"Recomendamos colocar o FoxWallet na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo FoxWallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escaneamento"}}},frontier:{qr_code:{step1:{description:"Recomendamos colocar o Frontier Wallet na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Frontier Wallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira.",title:"Toque no botão de varredura"}},extension:{step1:{description:"Recomendamos fixar a Carteira Frontier na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Frontier"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},im_token:{qr_code:{step1:{title:"Abra o aplicativo imToken",description:"Coloque o aplicativo imToken na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone do Scanner no canto superior direito",description:"Escolha Nova Conexão, em seguida, escaneie o código QR e confirme o prompt para conectar."}}},metamask:{qr_code:{step1:{title:"Abra o aplicativo MetaMask",description:"Recomendamos colocar o MetaMask na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão escanear",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão MetaMask",description:"Recomendamos fixar o MetaMask na barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize o seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},okx:{qr_code:{step1:{title:"Abra o aplicativo da Carteira OKX",description:"Recomendamos colocar a Carteira OKX na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira utilizando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão OKX Wallet",description:"Recomendamos fixar a OKX Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira utilizando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize o seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},omni:{qr_code:{step1:{title:"Abra o aplicativo Omni",description:"Adicione o Omni à sua tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone do QR e escaneie",description:"Toque no ícone QR na tela inicial, escaneie o código e confirme o prompt para conectar."}}},token_pocket:{qr_code:{step1:{title:"Abra o aplicativo TokenPocket",description:"Recomendamos colocar o TokenPocket na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão TokenPocket",description:"Recomendamos fixar o TokenPocket em sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},trust:{qr_code:{step1:{title:"Abra o aplicativo Trust Wallet",description:"Coloque o Trust Wallet na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque em WalletConnect nas Configurações",description:"Escolha Nova Conexão, depois escaneie o QR code e confirme o prompt para se conectar."}},extension:{step1:{title:"Instale a extensão Trust Wallet",description:"Clique no canto superior direito do seu navegador e marque Trust Wallet para fácil acesso."},step2:{title:"Crie ou Importe uma carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Atualize seu navegador",description:"Depois que configurar a Trust Wallet, clique abaixo para atualizar o navegador e carregar a extensão."}}},uniswap:{qr_code:{step1:{title:"Abra o aplicativo Uniswap",description:"Adicione a Carteira Uniswap à sua tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone QR e escaneie",description:"Toque no ícone QR na sua tela inicial, escaneie o código e confirme o prompt para conectar."}}},zerion:{qr_code:{step1:{title:"Abra o aplicativo Zerion",description:"Recomendamos colocar o Zerion na sua tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de digitalizar, um prompt de conexão aparecerá para que você possa conectar sua carteira."}},extension:{step1:{title:"Instale a extensão Zerion",description:"Recomendamos fixar o Zerion na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},rainbow:{qr_code:{step1:{title:"Abra o aplicativo Rainbow",description:"Recomendamos colocar o Rainbow na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Você pode facilmente fazer backup da sua carteira usando nosso recurso de backup no seu telefone."},step3:{title:"Toque no botão de digitalizar",description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira."}}},enkrypt:{extension:{step1:{description:"Recomendamos fixar a Carteira Enkrypt na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Enkrypt"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize o seu navegador"}}},frame:{extension:{step1:{description:"Recomendamos fixar o Frame na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale o Frame e a extensão complementar"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},one_key:{extension:{step1:{title:"Instale a extensão OneKey Wallet",description:"Recomendamos fixar a OneKey Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},phantom:{extension:{step1:{title:"Instale a extensão Phantom",description:"Recomendamos fixar o Phantom na sua barra de tarefas para facilitar o acesso à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta de recuperação com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},rabby:{extension:{step1:{title:"Instale a extensão Rabby",description:"Recomendamos fixar Rabby na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},safeheron:{extension:{step1:{title:"Instale a extensão Core",description:"Recomendamos fixar Safeheron na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},taho:{extension:{step1:{title:"Instale a extensão Taho",description:"Recomendamos fixar o Taho na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},talisman:{extension:{step1:{title:"Instale a extensão Talisman",description:"Recomendamos fixar o Talisman na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Crie ou Importe uma Carteira Ethereum",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase de recuperação com ninguém."},step3:{title:"Atualize o seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},xdefi:{extension:{step1:{title:"Instale a extensão XDEFI Wallet",description:"Recomendamos fixar a Carteira XDEFI na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},zeal:{extension:{step1:{title:"Instale a extensão Zeal",description:"Recomendamos fixar o Zeal na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},safepal:{extension:{step1:{title:"Instale a extensão da Carteira SafePal",description:"Clique no canto superior direito do seu navegador e fixe a Carteira SafePal para fácil acesso."},step2:{title:"Criar ou Importar uma carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Atualize seu navegador",description:"Depois de configurar a Carteira SafePal, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo Carteira SafePal",description:"Coloque a Carteira SafePal na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque em WalletConnect nas Configurações",description:"Escolha Nova Conexão, em seguida, escaneie o código QR e confirme o prompt para conectar."}}},desig:{extension:{step1:{title:"Instale a extensão Desig",description:"Recomendamos fixar Desig na sua barra de tarefas para facilitar o acesso à sua carteira."},step2:{title:"Criar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},subwallet:{extension:{step1:{title:"Instale a extensão SubWallet",description:"Recomendamos fixar SubWallet na sua barra de tarefas para acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase de recuperação com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo SubWallet",description:"Recomendamos colocar SubWallet na tela inicial para acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de escanear",description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira."}}},clv:{extension:{step1:{title:"Instale a extensão CLV Wallet",description:"Recomendamos fixar CLV Wallet na sua barra de tarefas para acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo da carteira CLV",description:"Recomendamos colocar a Carteira CLV na tela inicial para acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de escanear",description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira."}}},okto:{qr_code:{step1:{title:"Abra o aplicativo Okto",description:"Adicione Okto à sua tela inicial para acesso rápido"},step2:{title:"Crie uma carteira MPC",description:"Crie uma conta e gere uma carteira"},step3:{title:"Toque em WalletConnect nas Configurações",description:"Toque no ícone Scan QR no canto superior direito e confirme o prompt para conectar."}}},ledger:{desktop:{step1:{title:"Abra o aplicativo Ledger Live",description:"Recomendamos colocar o Ledger Live na tela inicial para um acesso mais rápido."},step2:{title:"Configure seu Ledger",description:"Configure um novo Ledger ou conecte-se a um já existente."},step3:{title:"Conectar",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},qr_code:{step1:{title:"Abra o aplicativo Ledger Live",description:"Recomendamos colocar o Ledger Live na tela inicial para um acesso mais rápido."},step2:{title:"Configure seu Ledger",description:"Você pode sincronizar com o aplicativo de desktop ou conectar seu Ledger."},step3:{title:"Escanear o código",description:"Toque em WalletConnect e em seguida mude para Scanner. Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}}}},uD={connect_wallet:h70,intro:C70,sign_in:m70,connect:g70,connect_scan:b70,connector_group:A70,get:y70,get_options:v70,get_mobile:B70,get_instructions:F70,chains:D70,profile:w70,wallet_connectors:x70},k70={label:"Подключить кошелек"},_70={title:"Что такое кошелек?",description:"Кошелек используется для отправки, получения, хранения и отображения цифровых активов. Это также новый способ входа в систему, без необходимости создания новых учетных записей и паролей на каждом сайте.",digital_asset:{title:"Дом для ваших цифровых активов",description:"Кошельки используются для отправки, получения, хранения и отображения цифровых активов, таких как Ethereum и NFT."},login:{title:"Новый способ входа в систему",description:"Вместо создания новых аккаунтов и паролей на каждом сайте, просто подключите ваш кошелек."},get:{label:"Получить кошелек"},learn_more:{label:"Узнать больше"}},S70={label:"Проверьте ваш аккаунт",description:"Чтобы завершить подключение, вы должны подписать сообщение в вашем кошельке, чтобы подтвердить, что вы являетесь владельцем этого аккаунта.",message:{send:"Отправить сообщение",preparing:"Подготовка сообщения...",cancel:"Отмена",preparing_error:"Ошибка при подготовке сообщения, пожалуйста, попробуйте снова!"},signature:{waiting:"Ожидание подписи...",verifying:"Проверка подписи...",signing_error:"Ошибка при подписании сообщения, пожалуйста, попробуйте снова!",verifying_error:"Ошибка при проверке подписи, пожалуйста, попробуйте снова!",oops_error:"Ой, что-то пошло не так!"}},T70={label:"Подключить",title:"Подключить кошелек",new_to_ethereum:{description:"Впервые столкнулись с кошельками Ethereum?",learn_more:{label:"Узнать больше"}},learn_more:{label:"Узнать больше"},recent:"Недавние",status:{opening:"Открывается %{wallet}...",not_installed:"%{wallet} не установлен",not_available:"%{wallet} не доступен",confirm:"Подтвердите подключение в расширении"},secondary_action:{get:{description:"У вас нет %{wallet}?",label:"ПОЛУЧИТЬ"},install:{label:"УСТАНОВИТЬ"},retry:{label:"ПОВТОРИТЬ"}},walletconnect:{description:{full:"Нужен официальный модальный окно WalletConnect?",compact:"Нужен модальный окно WalletConnect?"},open:{label:"ОТКРЫТЬ"}}},P70={title:"Сканировать с помощью %{wallet}",fallback_title:"Сканировать с помощью вашего телефона"},O70={recommended:"Рекомендуемые",other:"Другие",popular:"Популярные",more:"Больше",others:"Другие"},I70={title:"Получить кошелек",action:{label:"ПОЛУЧИТЬ"},mobile:{description:"Мобильный кошелек"},extension:{description:"Расширение для браузера"},mobile_and_extension:{description:"Мобильный кошелек и расширение"},mobile_and_desktop:{description:"Мобильный и настольный кошелек"},looking_for:{title:"Не то, что вы ищете?",mobile:{description:"Выберите кошелек на главном экране, чтобы начать работу с другим провайдером кошелька."},desktop:{compact_description:"Выберите кошелек на главном экране, чтобы начать работу с другим провайдером кошелька.",wide_description:"Выберите кошелек слева, чтобы начать работу с другим провайдером кошелька."}}},N70={title:"Начните с %{wallet}",short_title:"Получить %{wallet}",mobile:{title:"%{wallet} для мобильных",description:"Используйте мобильный кошелек для исследования мира Ethereum.",download:{label:"Скачать приложение"}},extension:{title:"%{wallet} для %{browser}",description:"Доступ к вашему кошельку прямо из вашего любимого веб-браузера.",download:{label:"Добавить в %{browser}"}},desktop:{title:"%{wallet} для %{platform}",description:"Получите доступ к вашему кошельку нативно со своего мощного рабочего стола.",download:{label:"Добавить в %{platform}"}}},R70={title:"Установить %{wallet}",description:"Отсканируйте на своем телефоне для скачивания на iOS или Android",continue:{label:"Продолжить"}},M70={mobile:{connect:{label:"Подключить"},learn_more:{label:"Узнать больше"}},extension:{refresh:{label:"Обновить"},learn_more:{label:"Узнать больше"}},desktop:{connect:{label:"Подключить"},learn_more:{label:"Узнать больше"}}},j70={title:"Переключить сети",wrong_network:"Обнаружена неверная сеть, переключитесь или отключитесь для продолжения.",confirm:"Подтвердить в кошельке",switching_not_supported:"Ваш кошелек не поддерживает переключение сетей с %{appName}. Попробуйте переключить сети из вашего кошелька.",switching_not_supported_fallback:"Ваш кошелек не поддерживает переключение сетей из этого приложения. Попробуйте переключить сети из вашего кошелька.",disconnect:"Отключить",connected:"Подключено"},z70={disconnect:{label:"Отключить"},copy_address:{label:"Скопировать адрес",copied:"Скопировано!"},explorer:{label:"Посмотреть больше в эксплорере"},transactions:{description:"%{appName} транзакции появятся здесь...",description_fallback:"Ваши транзакции появятся здесь...",recent:{title:"Недавние транзакции"},clear:{label:"Очистить все"}}},L70={argent:{qr_code:{step1:{description:"Добавьте Argent на домашний экран для более быстрого доступа к вашему кошельку.",title:"Откройте приложение Argent"},step2:{description:"Создайте кошелек и имя пользователя или импортируйте существующий кошелек.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение для подключения вашего кошелька.",title:"Нажмите кнопку Сканировать QR"}}},bifrost:{qr_code:{step1:{description:"Мы рекомендуем добавить кошелек Bifrost на ваш начальный экран для более быстрого доступа.",title:"Откройте приложение Bifrost Wallet"},step2:{description:"Создайте или импортируйте кошелек, используя вашу фразу восстановления.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение вашего кошелька.",title:"Нажмите кнопку сканирования"}}},bitget:{qr_code:{step1:{description:"Мы рекомендуем добавить Bitget Wallet на ваш экран для более быстрого доступа.",title:"Откройте приложение Bitget Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение вашего кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем закрепить Bitget Wallet на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Bitget Wallet"},step2:{description:"Обязательно сохраните резервную копию вашего кошелька с помощью надёжного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},bitski:{extension:{step1:{description:"Мы рекомендуем прикрепить Bitski к вашей панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Bitski"},step2:{description:"Обязательно сохраните резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать кошелек или Импортировать кошелек"},step3:{description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},coin98:{qr_code:{step1:{description:"Мы рекомендуем добавить Coin98 Wallet на ваш главный экран для более быстрого доступа к вашему кошельку.",title:"Откройте приложение Coin98 Wallet"},step2:{description:"Вы можете легко сделать резервную копию вашего кошелька, используя нашу функцию резервного копирования на вашем телефоне.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования для вас появится запрос на подключение, чтобы подключить ваш кошелек.",title:"Нажмите кнопку WalletConnect"}},extension:{step1:{description:"Нажмите в верхнем правом углу вашего браузера и закрепите Coin98 Wallet для удобного доступа.",title:"Установите расширение Coin98 Wallet"},step2:{description:"Создайте новый кошелек или импортируйте существующий.",title:"Создайте или импортируйте кошелек"},step3:{description:"После того как вы настроите Кошелек Coin98, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},coinbase:{qr_code:{step1:{description:"Мы рекомендуем добавить Coinbase Wallet на ваш экран начала для более быстрого доступа.",title:"Откройте приложение Coinbase Wallet"},step2:{description:"Вы легко можете сделать резервную копию вашего кошелька, используя функцию облачного резервного копирования.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение для подключения вашего кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем закрепить Coinbase Wallet на вашей панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Coinbase Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},core:{qr_code:{step1:{description:"Мы рекомендуем добавить Core на ваш экран быстрого доступа для ускоренного доступа к вашему кошельку.",title:"Открыть приложение Core"},step2:{description:"Вы можете легко создать резервную копию вашего кошелька, используя нашу функцию резервного копирования на вашем телефоне.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение, чтобы вы могли подключить ваш кошелек.",title:"Нажмите кнопку WalletConnect"}},extension:{step1:{description:"Мы рекомендуем закрепить Core на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Core"},step2:{description:"Обязательно создайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь вашей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"Как только вы настроите ваш кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},fox:{qr_code:{step1:{description:"Мы рекомендуем поместить FoxWallet на ваш экран начального экрана для более быстрого доступа.",title:"Откройте приложение FoxWallet"},step2:{description:"Обязательно сделайте резервное копирование вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится приглашение для подключения вашего кошелька.",title:"Нажмите кнопку сканирования"}}},frontier:{qr_code:{step1:{description:"Мы рекомендуем установить Frontier Wallet на экран вашего смартфона для более быстрого доступа.",title:"Откройте приложение Frontier Wallet"},step2:{description:"Обязательно сделайте резервное копирование вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем прикрепить кошелек Frontier к панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение кошелька Frontier"},step2:{description:"Обязательно сделайте резервную копию своего кошелька с использованием надежного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"После настройки вашего кошелька нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},im_token:{qr_code:{step1:{title:"Откройте приложение imToken",description:"Поместите приложение imToken на главный экран для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку сканера в верхнем правом углу",description:"Выберите Новое соединение, затем отсканируйте QR-код и подтвердите запрос на соединение."}}},metamask:{qr_code:{step1:{title:"Откройте приложение MetaMask",description:"Мы рекомендуем поместить MetaMask на главный экран для быстрого доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Обязательно сохраните копию своего кошелька с помощью надежного метода. Никогда не делитесь своей секретной фразой с кем бы то ни было."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на соединение вашего кошелька."}},extension:{step1:{title:"Установите расширение MetaMask",description:"Мы рекомендуем закрепить MetaMask на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, щелкните ниже, чтобы обновить браузер и загрузить расширение."}}},okx:{qr_code:{step1:{title:"Откройте приложение кошелька OKX",description:"Мы рекомендуем разместить кошелек OKX на вашем главном экране для более быстрого доступа."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите на кнопку сканирования",description:"После сканирования появится запрос на подключение вашего кошелька."}},extension:{step1:{title:"Установите расширение кошелька OKX",description:"Мы рекомендуем закрепить OKX Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать кошелек или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},omni:{qr_code:{step1:{title:"Откройте приложение Omni",description:"Добавьте Omni на свой домашний экран для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку QR и отсканируйте",description:"Нажмите на иконку QR на вашем домашнем экране, отсканируйте код и подтвердите подсказку, чтобы подключиться."}}},token_pocket:{qr_code:{step1:{title:"Откройте приложение TokenPocket",description:"Мы рекомендуем разместить TokenPocket на вашем домашнем экране для быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька при помощи безопасного метода. Никогда не делитесь своим секретным кодом с кем-либо."},step3:{title:"Нажмите на кнопку сканирования",description:"После сканирования появится подсказка о подключении для подключения вашего кошелька."}},extension:{step1:{title:"Установите расширение TokenPocket",description:"Мы рекомендуем закрепить TokenPocket на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},trust:{qr_code:{step1:{title:"Откройте приложение Trust Wallet",description:"Разместите Trust Wallet на вашем домашнем экране для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите WalletConnect в настройках",description:"Выберите Новое соединение, затем сканируйте QR-код и подтвердите запрос на подключение."}},extension:{step1:{title:"Установите расширение Trust Wallet",description:"Кликните в правом верхнем углу вашего браузера и закрепите Trust Wallet для легкого доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Обновите ваш браузер",description:"После настройки Trust Wallet, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},uniswap:{qr_code:{step1:{title:"Откройте приложение Uniswap",description:"Добавьте кошелек Uniswap на главный экран для быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку QR и отсканируйте",description:"Нажмите на иконку QR на главном экране, отсканируйте код и подтвердите запрос на подключение."}}},zerion:{qr_code:{step1:{title:"Откройте приложение Zerion",description:"Мы рекомендуем разместить Zerion на главном экране для более быстрого доступа."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования вам будет предложено подключить ваш кошелек."}},extension:{step1:{title:"Установите расширение Zerion",description:"Мы рекомендуем прикрепить Zerion к вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делясь своим секретным паролем с кем-либо."},step3:{title:"Обновите ваш браузер",description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},rainbow:{qr_code:{step1:{title:"Откройте приложение Rainbow",description:"Мы рекомендуем поместить Rainbow на ваш экран главного меню для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек",description:"Вы можете легко сделать резервную копию вашего кошелька с помощью нашей функции резервного копирования на вашем телефоне."},step3:{title:"Нажмите кнопку сканировать",description:"После сканирования появится запрос на подключение вашего кошелька."}}},enkrypt:{extension:{step1:{description:"Мы рекомендуем закрепить Enkrypt Wallet на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Enkrypt Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},frame:{extension:{step1:{description:"Мы рекомендуем закрепить Frame на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите Frame и дополнительное расширение"},step2:{description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создайте или Импортируйте кошелек"},step3:{description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},one_key:{extension:{step1:{title:"Установите расширение OneKey Wallet",description:"Мы рекомендуем закрепить OneKey Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или Импортируйте кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки кошелька нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},phantom:{extension:{step1:{title:"Установите расширение Phantom",description:"Мы рекомендуем закрепить Phantom на панели задач для более удобного доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},rabby:{extension:{step1:{title:"Установите расширение Rabby",description:"Мы рекомендуем закрепить Rabby на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем бы то ни было."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},safeheron:{extension:{step1:{title:"Установите основное расширение",description:"Мы рекомендуем закрепить SafeHeron на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того, как вы настроите ваш кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},taho:{extension:{step1:{title:"Установите расширение Taho",description:"Мы рекомендуем закрепить Taho на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},talisman:{extension:{step1:{title:"Установите расширение Talisman",description:"Мы рекомендуем закрепить Talisman на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек Ethereum",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь вашей фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},xdefi:{extension:{step1:{title:"Установите расширение кошелька XDEFI",description:"Мы рекомендуем закрепить XDEFI Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того, как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},zeal:{extension:{step1:{title:"Установите расширение Zeal",description:"Мы рекомендуем закрепить Zeal на панели задач для быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},safepal:{extension:{step1:{title:"Установите расширение SafePal Wallet",description:"Кликните в верхнем правом углу вашего браузера и закрепите SafePal Wallet для удобного доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Обновите ваш браузер",description:"После настройки кошелька SafePal нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение SafePal Wallet",description:"Разместите SafePal Wallet на главном экране для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите WalletConnect в настройках",description:"Выберите Новое соединение, затем отсканируйте QR-код и подтвердите запрос на соединение."}}},desig:{extension:{step1:{title:"Установите расширение Desig",description:"Мы рекомендуем закрепить Desig на вашей панели задач для более удобного доступа к вашему кошельку."},step2:{title:"Создать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},subwallet:{extension:{step1:{title:"Установите расширение SubWallet",description:"Мы рекомендуем закрепить SubWallet на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь вашей фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение SubWallet",description:"Мы рекомендуем добавить SubWallet на ваш экран начальной страницы для более быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на подключение для подключения вашего кошелька."}}},clv:{extension:{step1:{title:"Установите расширение CLV Wallet",description:"Мы рекомендуем закрепить CLV Wallet на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение CLV Wallet",description:"Мы рекомендуем поместить CLV Wallet на ваш экран домой для более быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на подключение для подключения вашего кошелька."}}},okto:{qr_code:{step1:{title:"Откройте приложение Okto",description:"Добавьте Okto на ваш экран домой для быстрого доступа"},step2:{title:"Создать кошелек MPC",description:"Создайте учетную запись и сгенерируйте кошелек"},step3:{title:"Нажмите WalletConnect в настройках",description:"Коснитесь значка Scan QR в верхнем правом углу и подтвердите запрос на подключение."}}},ledger:{desktop:{step1:{title:"Откройте приложение Ledger Live",description:"Мы рекомендуем поместить Ledger Live на ваш экран домой для более быстрого доступа."},step2:{title:"Настройте ваш Ledger",description:"Настройте новый Ledger или подключитесь к существующему."},step3:{title:"Подключить",description:"После сканирования вам будет предложено подключить ваш кошелек."}},qr_code:{step1:{title:"Откройте приложение Ledger Live",description:"Мы рекомендуем поместить Ledger Live на ваш экран домой для более быстрого доступа."},step2:{title:"Настройте ваш Ledger",description:"Вы можете синхронизировать с настольным приложением или подключить свой Ledger."},step3:{title:"Сканировать код",description:"Нажмите WalletConnect, затем переключитесь на Scanner. После сканирования вам будет предложено подключить ваш кошелек."}}}},eD={connect_wallet:k70,intro:_70,sign_in:S70,connect:T70,connect_scan:P70,connector_group:O70,get:I70,get_options:N70,get_mobile:R70,get_instructions:M70,chains:j70,profile:z70,wallet_connectors:L70},$70={label:"เชื่อมต่อกระเป๋าเงิน"},U70={title:"อะไรคือกระเป๋าเงิน?",description:"กระเป๋าเงินใช้ในการส่ง, รับ, เก็บ, และแสดงสินทรัพย์ดิจิทัล มันยังเป็นวิธีใหม่ในการเข้าสู่ระบบ, โดยไม่จำเป็นต้องสร้างบัญชีและรหัสผ่านใหม่ในทุกเว็บไซต์.",digital_asset:{title:"บ้านสำหรับสินทรัพย์ดิจิทัลของคุณ",description:"กระเป๋าเงินถูกใช้เพื่อส่ง, รับ, เก็บ, แสดงสินทรัพย์ดิจิทัล เช่น Ethereum และ NFTs."},login:{title:"วิธีใหม่ในการเข้าสู่ระบบ",description:"แทนที่จะสร้างบัญชีและรหัสผ่านใหม่ในทุกเว็บไซต์, แค่เชื่อมต่อกระเป๋าของคุณ."},get:{label:"รับกระเป๋าเงิน"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},W70={label:"ยืนยันบัญชีของคุณ",description:"เพื่อการเชื่อมต่อที่สมบูรณ์, คุณต้องลงนามในข้อความในกระเป๋าเงินของคุณเพื่อยืนยันว่าคุณเป็นเจ้าของบัญชีนี้",message:{send:"ส่งข้อความ",preparing:"กำลังเตรียมข้อความ...",cancel:"ยกเลิก",preparing_error:"เกิดข้อผิดพลาดในการเตรียมข้อความ โปรดลองใหม่!"},signature:{waiting:"รอการลงนาม...",verifying:"กำลังตรวจสอบลายเซ็น...",signing_error:"เกิดข้อผิดพลาดในการลงนามในข้อความ โปรดลองใหม่!",verifying_error:"เกิดข้อผิดพลาดในการตรวจสอบลายเซ็น โปรดลองใหม่!",oops_error:"อ๊ะ, เกิดข้อผิดพลาดบางอย่าง!"}},q70={label:"เชื่อมต่อ",title:"เชื่อมต่อกระเป๋าเงิน",new_to_ethereum:{description:"ใหม่กับกระเป๋า Ethereum หรือไม่?",learn_more:{label:"เรียนรู้เพิ่มเติม"}},learn_more:{label:"เรียนรู้เพิ่มเติม"},recent:"ล่าสุด",status:{opening:"กำลังเปิด %{wallet}...",not_installed:"%{wallet} ไม่ได้ติดตั้ง",not_available:"%{wallet} ไม่สามารถใช้ได้",confirm:"ยืนยันการเชื่อมต่อในส่วนขยาย"},secondary_action:{get:{description:"ไม่มี %{wallet}?",label:"รับ"},install:{label:"ติดตั้ง"},retry:{label:"ลองใหม่"}},walletconnect:{description:{full:"ต้องการ modal อย่างเป็นทางการจาก WalletConnect หรือไม่?",compact:"ต้องการ modal จาก WalletConnect หรือไม่?"},open:{label:"เปิด"}}},H70={title:"สแกนด้วย %{wallet}",fallback_title:"สแกนด้วยโทรศัพท์ของคุณ"},G70={recommended:"แนะนำ",other:"อื่น ๆ",popular:"ยอดนิยม",more:"เพิ่มเติม",others:"อื่น ๆ"},V70={title:"รับ Wallet",action:{label:"รับ"},mobile:{description:"Wallet บนมือถือ"},extension:{description:"ส่วนขยายบราวเซอร์"},mobile_and_extension:{description:"กระเป๋าเงินมือถือและส่วนขยาย"},mobile_and_desktop:{description:"กระเป๋าเงินบนมือถือและคอมพิวเตอร์"},looking_for:{title:"ไม่ใช่สิ่งที่คุณกำลังหาหรือไม่?",mobile:{description:"เลือกกระเป๋าเงินบนหน้าจอหลักเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน"},desktop:{compact_description:"เลือกกระเป๋าเงินบนหน้าจอหลักเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน",wide_description:"เลือกกระเป๋าเงินที่อยู่ทางซ้ายเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน"}}},K70={title:"เริ่มต้นกับ %{wallet}",short_title:"รับ %{wallet}",mobile:{title:"%{wallet} สำหรับมือถือ",description:"ใช้กระเป๋าระบบมือถือในการสำรวจโลกของ Ethereum.",download:{label:"รับแอป"}},extension:{title:"%{wallet} สำหรับ %{browser}",description:"เข้าถึงกระเป๋าเงินของคุณได้โดยตรงจากบราวเซอร์ที่คุณชื่นชอบ.",download:{label:"เพิ่มไปยัง %{browser}"}},desktop:{title:"%{wallet} สำหรับ %{platform}",description:"เข้าถึงกระเป๋าเงินของคุณโดยตรงจากคอมพิวเตอร์ที่มีประสิทธิภาพของคุณ",download:{label:"เพิ่มไปยัง %{platform}"}}},Q70={title:"ติดตั้ง %{wallet}",description:"สแกนด้วยโทรศัพท์ของคุณเพื่อดาวน์โหลดบน iOS หรือ Android",continue:{label:"ดำเนินการต่อ"}},J70={mobile:{connect:{label:"เชื่อมต่อ"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},extension:{refresh:{label:"รีเฟรช"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},desktop:{connect:{label:"เชื่อมต่อ"},learn_more:{label:"เรียนรู้เพิ่มเติม"}}},Y70={title:"เปลี่ยนเครือข่าย",wrong_network:"ตรวจสอบพบเครือข่ายที่ไม่ถูกต้อง สลับหรือตัดการเชื่อมต่อเพื่อดำเนินการต่อ.",confirm:"ยืนยันใน Wallet",switching_not_supported:"กระเป๋าสตางค์ของคุณไม่สนับสนุนการเปลี่ยนเครือข่ายจาก %{appName}ลองเปลี่ยนเครือข่ายจากภายในกระเป๋าสตางค์ของคุณแทน",switching_not_supported_fallback:"กระเป๋าสตางค์ของคุณไม่สนับสนุนการสลับเครือข่ายจากแอปนี้ ลองสลับเครือข่ายจากภายในกระเป๋าสตางค์ของคุณแทน",disconnect:"ตัดการเชื่อมต่อ",connected:"เชื่อมต่อแล้ว"},Z70={disconnect:{label:"ตัดการเชื่อมต่อ"},copy_address:{label:"คัดลอกที่อยู่",copied:"คัดลอกแล้ว!"},explorer:{label:"ดูเพิ่มเติมบน explorer"},transactions:{description:"%{appName} รายการจะปรากฎที่นี่...",description_fallback:"การทำธุรกรรมของคุณจะปรากฎที่นี่...",recent:{title:"ธุรกรรมล่าสุด"},clear:{label:"ลบทั้งหมด"}}},X70={argent:{qr_code:{step1:{description:"วาง Argent บนหน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น",title:"เปิดแอป Argent"},step2:{description:"สร้างกระเป๋าเงินและชื่อผู้ใช้หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ",title:"แตะที่คุ่มุ่งสแกน QR"}}},bifrost:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Bifrost Wallet บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น",title:"เปิดแอพฯ Bifrost Wallet"},step2:{description:"สร้างหรือนำเข้ากระเป๋าเงินด้วย recovery phrase ของคุณ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกนแล้วยินยันการเชื่อมต่อกับกระเป๋าเงินของคุณ",title:"แตะปุ่มสแกน"}}},bitget:{qr_code:{step1:{description:"เราขอแนะนำให้วาง Bitget Wallet บนหน้าจอหน้าแรกของคุณเพื่อการเข้าถึงที่รวดเร็วขึ้น.",title:"เปิดแอพ Bitget Wallet"},step2:{description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด.",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"หลังจากที่คุณสแกน จะมีข้อความขอเชื่อมต่อที่จะปรากฏขึ้นให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ.",title:"แตะปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณปัก Bitget Wallet ไว้บนแถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ได้เร็วขึ้น",title:"ติดตั้งส่วนเสริม Bitget Wallet"},step2:{description:"โปรดแน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับบุคคลใดๆ",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},bitski:{extension:{step1:{description:"เราแนะนำให้ทำปัก Bitski ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้โดยไม่ต้องรอ",title:"ติดตั้งส่วนขยาย Bitski"},step2:{description:"ควรสำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยคำลับของคุณให้ใครทราบ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},coin98:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Coin98 Wallet บนหน้าจอหลักของคุณ เพื่อให้เข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น.",title:"เปิดแอพ Coin98 Wallet"},step2:{description:"คุณสามารถสำรองข้อมูลกระเป๋าเงินของคุณได้ง่ายๆ ด้วยฟีเจอร์สำรองข้อมูลบนโทรศัพท์ของคุณ.",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากคุณสแกน จะมีเตือนการเชื่อมต่อที่ปรากฏขึ้นให้คุณเชื่อมต่อกระเป๋าเงินของคุณ.",title:"แตะที่ปุ่ม WalletConnect"}},extension:{step1:{description:"คลิกที่ด้านบนขวาของเบราว์เซอร์ของคุณและปัก Coin98 Wallet ไว้เพื่อให้เข้าถึงได้ง่าย.",title:"ติดตั้งส่วนขยาย Coin98 Wallet"},step2:{description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว.",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณตั้งค่า Coin98 Wallet แล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยายขึ้นมา.",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},coinbase:{qr_code:{step1:{description:"เราแนะนำให้วาง Coinbase Wallet ไว้ที่หน้าจอหลักของคุณเพื่อให้เข้าถึงได้เร็วขึ้น.",title:"เปิดแอป Coinbase Wallet"},step2:{description:"คุณสามารถสำรองข้อมูลกระเป๋าสตางค์ของคุณได้ง่ายๆ โดยใช้ฟีเจอร์การสำรองข้อมูลด้วยคลาวด์",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแสดงขอ้มูลเพื่อให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ",title:"แตะที่ปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณยัด Coinbase Wallet ไว้ที่แถบงานของคุณเพื่อให้สามารถเข้าถึงกระเป๋าสตางค์ของคุณได้เร็วขึ้น",title:"ติดตั้งส่วนขยาย Coinbase Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้กับใครเลย",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณได้ตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อเรียกดูเบราว์เซอร์ใหม่และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},core:{qr_code:{step1:{description:"เราแนะนำให้คุณวาง Core ลงสนามหลักเพื่อให้เข้าถึงกระเป๋าเงินได้เร็วขึ้น",title:"เปิดแอปเครื่องมือช่วยอีเกิร์น"},step2:{description:"คุณสามารถสำรองกระเป๋าเงินของคุณได้ง่ายๆ โดยใช้ฟีเจอร์สำรองของเราบนโทรศัพท์ของคุณ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแจ้งเตือนเพื่อให้คุณเชื่อมต่อกับกระเป๋าสตางค์ของคุณ",title:"แตะปุ่ม WalletConnect"}},extension:{step1:{description:"เราขอแนะนำให้คุณปัก Core ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้อย่างรวดเร็ว",title:"ติดตั้งส่วนขยาย Core"},step2:{description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},fox:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง FoxWallet บนหน้าจอหลักเพื่อให้เข้าถึงได้เร็วขึ้น",title:"เปิดแอป FoxWallet"},step2:{description:"ตรวจสอบที่จะสำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย จงอย่าเปิดเผยประโยคลับลับของคุณให้ผู้อื่นรู้",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกน จะมีการเชื่อมต่อที่แสดงให้คุณเชื่อมต่อกระเป๋าเงินของคุณ",title:"แตะปุ่มสแกน"}}},frontier:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Frontier Wallet บนหน้าจอหลักเพื่อให้เข้าถึงได้เร็วขึ้น",title:"เปิดแอป Frontier Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแสดงข้อมูลเพื่อให้คุณเชื่อมต่อกับกระเป๋าสตางค์ของคุณ",title:"แตะปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณปักหมุด Frontier Wallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้ง่ายขึ้น",title:"ติดตั้งส่วนเสริม Frontier Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},im_token:{qr_code:{step1:{title:"เปิดแอพ imToken",description:"ใส่แอพ imToken ไว้ที่หน้าจอหลักเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว"},step3:{title:"แตะไอคอนสแกนเนอร์ในมุมบนขวา",description:"เลือก New Connection, แล้วสแกน QR code และยืนยันการรับรองสำหรับการเชื่อมต่อ"}}},metamask:{qr_code:{step1:{title:"เปิดแอป MetaMask",description:"เราขอแนะนำให้วาง MetaMask บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบว่าได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับใคร"},step3:{title:"แตะที่ปุ่มสแกน",description:"หลังจากการสแกน, จะปรากฏข้อความเชื่อมต่อสำหรับคุณเพื่อเชื่อมต่อกับกระเป๋าเงินของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย MetaMask",description:"เราขอแนะนำให้คุณปัก MetaMask ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้รวดเร็ว"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่างแน่นอนให้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ประโยคลับของคุณกับใครเลย"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},okx:{qr_code:{step1:{title:"เปิดแอพ OKX Wallet",description:"เราแนะนำให้วาง OKX Wallet บนหน้าจอหลักของคุณเพื่อให้เข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"จงแน่ใจว่าคุณได้สำรองข้อมูล wallet ของคุณด้วยวิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณให้คนอื่น"},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะมีการแสดงข้อมูลเพื่อให้คุณเชื่อมต่อ wallet ของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนเสริม OKX Wallet",description:"เราแนะนำให้ยึด OKX Wallet ไว้ที่แถบงานของคุณเพื่อให้เข้าถึง wallet ของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณด้วยวิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้ใครทราบ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},omni:{qr_code:{step1:{title:"เปิดแอป Omni",description:"เพิ่ม Omni ไปยังหน้าจอแรกเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้รวดเร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าสตางค์",description:"สร้างกระเป๋าสตางค์ใหม่หรือนำเข้ากระเป๋าสตางค์ที่มีอยู่"},step3:{title:"แตะที่ไอคอน QR แล้วสแกน",description:"แตะที่ไอคอน QR บนหน้าจอหน้าแรกของคุณ, สแกนรหัสและยืนยันการเตือนเพื่อเชื่อมต่อ."}}},token_pocket:{qr_code:{step1:{title:"เปิดแอป TokenPocket",description:"เราแนะนำให้วาง TokenPocket บนหน้าจอหน้าแรกของคุณเพื่อเข้าถึงได้เร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบว่าได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้ผู้อื่นทราบในทางใดทางหนึ่ง."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย TokenPocket",description:"เราขอแนะนำให้คุณปัก TokenPocket ไว้ที่แถบงานเพื่อทำให้สามารถเข้าถึงกระเป๋าเงินของคุณได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณด้วยวิธีที่ปลอดภัย อย่าทำการแชร์ประโยคลับด้วยความลับของคุณกับใคร"},step3:{title:"รีเฟรชบราวเซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชบราวเซอร์และโหลดส่วนขยาย"}}},trust:{qr_code:{step1:{title:"เปิดแอพ Trust Wallet",description:"วาง Trust Wallet ที่หน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้รวดเร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้าง wallet ใหม่หรือนำเข้า wallet ที่มีอยู่แล้ว"},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"เลือก New Connection จากนั้นสแกน QR code และยืนยันการแจ้งเตือนเพื่อเชื่อมต่อ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย Trust Wallet",description:"คลิกที่มุมบนขวาของเบราว์เซอร์ของคุณและปัก Trust Wallet เพื่อเข้าถึงได้ง่าย"},step2:{title:"สร้างหรือนำเข้า wallet",description:"สร้าง wallet ใหม่หรือนำเข้า wallet ที่มีอยู่แล้ว"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่า Trust Wallet แล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยายขึ้นมา"}}},uniswap:{qr_code:{step1:{title:"เปิดแอป Uniswap",description:"เพิ่ม Uniswap Wallet ไปยังหน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว"},step3:{title:"แตะที่ไอคอน QR และสแกน",description:"แตะที่ไอคอน QR บนหน้าจอหลักของคุณ สแกนรหัสและยืนยันการเชื่อมต่อ"}}},zerion:{qr_code:{step1:{title:"เปิดแอป Zerion",description:"เราแนะนำให้คุณวาง Zerion บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ลองทำสำเนาข้อมูล wallet ของคุณไว้ในช่องทางที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับผู้อื่น"},step3:{title:"แตะที่ปุ่มสแกน",description:"หลังจากสแกน จะมีหน้าต่างแสดงคำสั่งเชื่อมต่อให้คุณเชื่อมต่อ wallet ของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย Zerion",description:"เราแนะนำให้คุณติด Zerion บนแถบงานของคุณเพื่อเข้าถึง wallet ของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยวิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับลับของคุณให้ใครทราบครับ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},rainbow:{qr_code:{step1:{title:"เปิดแอป Rainbow",description:"เราขอแนะนำให้คุณวาง Rainbow อยู่บนหน้าจอหลักของคุณเพื่อรับผิดชอบจากกระเป๋าสตางค์ของคุณอย่างรวดเร็ว"},step2:{title:"สร้างหรือนำเข้ากระเป๋าสตางค์",description:"คุณสามารถสำรองข้อมูลกระเป๋าสตางค์ของคุณได้ง่ายๆ ด้วยฟีเจอร์สำรองข้อมูลบนโทรศัพท์ของคุณ"},step3:{title:"แตะปุ่มสแกน",description:"หลังจากสแกนแล้ว จะแสดงข้อความขอเชื่อมต่อเพื่อให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ"}}},enkrypt:{extension:{step1:{description:"เราขอแนะนำให้คุณปัก Enkrypt Wallet ไว้ที่แทบงานของคุณเพื่อให้สามารถเข้าถึงกระเป๋าสตางค์ของคุณได้เร็วขึ้น",title:"ติดตั้งส่วนขยาย Enkrypt Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย ห้ามแชร์วลีลับของคุณให้กับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่า wallet ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรช browser และโหลดขึ้น extension",title:"รีเฟรช browser ของคุณ"}}},frame:{extension:{step1:{description:"เราแนะนำให้หมุน Frame ไว้บน taskbar ของคุณเพื่อให้เข้าถึง wallet ได้เร็วขึ้น",title:"ติดตั้ง Frame และ extension ที่เป็นคู่"},step2:{description:"ตรวจสอบว่าได้สำรอง wallet ของคุณโดยใช้วิธีการที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่า wallet ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรช browser และโหลดขึ้น extension",title:"รีเฟรช browser ของคุณ"}}},one_key:{extension:{step1:{title:"ติดตั้งส่วนเสริม OneKey Wallet",description:"เราแนะนำการปัก OneKey Wallet ไว้บนแทบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่าลืมสำรองกระเป๋าเงินของคุณด้วยวิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},phantom:{extension:{step1:{title:"ติดตั้งส่วนเสริม Phantom",description:"เราแนะนำการปัก Phantom ไว้บนแทบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยข้อความลับสำหรับการกู้คืนของคุณกับบุคคลใด ๆ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินเรียบร้อยแล้ว, คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},rabby:{extension:{step1:{title:"ติดตั้งส่วนขยาย Rabby",description:"เราแนะนำให้คุณปัก Rabby ไว้ที่แถบงานเพื่อให้เข้าถึงกระเป๋าเงินของคุณได้รวดเร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ข้อความลับของคุณกับบุคคลอื่น"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},safeheron:{extension:{step1:{title:"ติดตั้งส่วนขยาย Core",description:"เราขอแนะนำให้คุณปัก Safeheron ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่าลืมสำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้ผู้อื่นทราบ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},taho:{extension:{step1:{title:"ติดตั้งส่วนขยาย Taho",description:"เราแนะนำให้คุณปัก Taho ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ประโยคลับคุณกับผู้อื่น"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},talisman:{extension:{step1:{title:"ติดตั้งส่วนขยาย Talisman",description:"เราแนะนำให้คุณปัก Talisman ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน Ethereum",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีการกู้คืนของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},xdefi:{extension:{step1:{title:"ติดตั้งส่วนขยาย XDEFI Wallet",description:"เราแนะนำให้คุณตรา XDEFI Wallet ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"หลังจากที่คุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชบราวเซอร์และโหลดส่วนเสริม."}}},zeal:{extension:{step1:{title:"ติดตั้งส่วนขยาย Zeal",description:"เราแนะนำให้ปัก Zeal ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},safepal:{extension:{step1:{title:"ติดตั้งส่วนขยาย SafePal Wallet",description:"คลิกที่มุมบนขวาของเบราว์เซอร์ของคุณและปักมุม SafePal Wallet เพื่อที่จะเข้าถึงได้ง่าย"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"หลังจากคุณตั้งค่า SafePal Wallet เรียบร้อยแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}},qr_code:{step1:{title:"เปิดแอป SafePal Wallet",description:"วาง SafePal Wallet ที่หน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว."},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"เลือก New Connection, แล้วสแกน QR code และยืนยันการรับรองสำหรับการเชื่อมต่อ"}}},desig:{extension:{step1:{title:"ติดตั้งส่วนขยาย Desig",description:"เราขอแนะนำให้คุณตรึง Desig ไว้ที่แถบงานของคุณเพื่อให้เข้าถึงกระเป๋าเงินของคุณได้ง่ายขึ้น"},step2:{title:"สร้างกระเป๋าเงิน",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},subwallet:{extension:{step1:{title:"ติดตั้งส่วนขยาย SubWallet",description:"เราขอแนะนำให้คุณตรึง SubWallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีการกู้คืนของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}},qr_code:{step1:{title:"เปิดแอพ SubWallet",description:"เราขอแนะนำให้วาง SubWallet ไว้ที่หน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ"}}},clv:{extension:{step1:{title:"ติดตั้งส่วนขยาย CLV Wallet",description:"เราขอแนะนำให้คุณตรึง CLV Wallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}},qr_code:{step1:{title:"เปิดแอพ CLV Wallet",description:"เราแนะนำให้คุณวาง CLV Wallet บนหน้าจอหลักเพื่อให้สามารถเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ"}}},okto:{qr_code:{step1:{title:"เปิดแอพ Okto",description:"เพิ่ม Okto ไปยังหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็ว"},step2:{title:"สร้างกระเป๋าเงิน MPC",description:"สร้างบัญชีและสร้างกระเป๋าเงิน"},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"แตะที่ไอคอน Scan QR ที่บริเวณมุมบนขวาและยืนยันข้อความเพื่อเชื่อมต่อ."}}},ledger:{desktop:{step1:{title:"เปิดแอป Ledger Live",description:"เราแนะนำให้คุณวาง Ledger Live บนหน้าจอหลักเพื่อให้สามารถเข้าถึงได้เร็วขึ้น"},step2:{title:"ตั้งค่า Ledger ของคุณ",description:"ตั้งค่า Ledger ใหม่หรือเชื่อมต่อกับ Ledger ที่มีอยู่แล้ว"},step3:{title:"เชื่อมต่อ",description:"หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}},qr_code:{step1:{title:"เปิดแอป Ledger Live",description:"เราแนะนำให้วาง Ledger Live บนหน้าจอหลักของคุณเพื่อการเข้าถึงที่รวดเร็วขึ้น"},step2:{title:"ตั้งค่า Ledger ของคุณ",description:"คุณสามารถซิงค์กับแอพพลิเคชันบนเดสก์ท็อปหรือเชื่อมต่อ Ledger ของคุณ"},step3:{title:"สแกนรหัส",description:"แตะ WalletConnect แล้วเปลี่ยนไปที่ Scanner. หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}}}},tD={connect_wallet:$70,intro:U70,sign_in:W70,connect:q70,connect_scan:H70,connector_group:G70,get:V70,get_options:K70,get_mobile:Q70,get_instructions:J70,chains:Y70,profile:Z70,wallet_connectors:X70},ug0={label:"Cüzdanı Bağla"},eg0={title:"Cüzdan nedir?",description:"Bir cüzdan, dijital varlıkları göndermek, almak, saklamak ve görüntülemek için kullanılır. Aynı zamanda her web sitesinde yeni hesaplar ve şifreler oluşturmanıza gerek kalmadan oturum açmanın yeni bir yoludur.",digital_asset:{title:"Dijital Varlıklarınız İçin Bir Ev",description:"Cüzdanlar, Ethereum ve NFT'ler gibi dijital varlıkları göndermek, almak, depolamak ve görüntülemek için kullanılır."},login:{title:"Yeni Bir Giriş Yolu",description:"Her web sitesinde yeni hesap ve parolalar oluşturmak yerine, sadece cüzdanınızı bağlayın."},get:{label:"Bir Cüzdan Edinin"},learn_more:{label:"Daha fazla bilgi edinin"}},tg0={label:"Hesabınızı doğrulayın",description:"Bağlantıyı tamamlamak için, bu hesabın sahibi olduğunuzu doğrulamak için cüzdanınızdaki bir mesaja imza atmalısınız.",message:{send:"Mesajı gönder",preparing:"Mesaj hazırlanıyor...",cancel:"İptal",preparing_error:"Mesajı hazırlarken hata oluştu, lütfen tekrar deneyin!"},signature:{waiting:"İmza bekleniyor...",verifying:"İmza doğrulanıyor...",signing_error:"Mesajı imzalarken hata oluştu, lütfen tekrar deneyin!",verifying_error:"İmza doğrulanırken hata oluştu, lütfen tekrar deneyin!",oops_error:"Hata, bir şeyler yanlış gitti!"}},ng0={label:"Bağlan",title:"Bir Cüzdanı Bağla",new_to_ethereum:{description:"Ethereum cüzdanlarına yeni misiniz?",learn_more:{label:"Daha fazla bilgi edinin"}},learn_more:{label:"Daha fazla bilgi edinin"},recent:"Son",status:{opening:"%{wallet}açılıyor...",not_installed:"%{wallet} yüklü değil",not_available:"%{wallet} kullanılabilir değil",confirm:"Bağlantıyı eklentide onaylayın"},secondary_action:{get:{description:"%{wallet}yok mu?",label:"AL"},install:{label:"YÜKLE"},retry:{label:"YENİDEN DENE"}},walletconnect:{description:{full:"Resmi WalletConnect modalına mı ihtiyacınız var?",compact:"WalletConnect modalına mı ihtiyacınız var?"},open:{label:"AÇ"}}},rg0={title:"%{wallet}ile tarama yapın",fallback_title:"Telefonunuzla tarama yapın"},ig0={recommended:"Tavsiye Edilen",other:"Diğer",popular:"Popüler",more:"Daha Fazla",others:"Diğerleri"},ag0={title:"Bir Cüzdan Edinin",action:{label:"AL"},mobile:{description:"Mobil Cüzdan"},extension:{description:"Tarayıcı Eklentisi"},mobile_and_extension:{description:"Mobil Cüzdan ve Eklenti"},mobile_and_desktop:{description:"Mobil ve Masaüstü Cüzdan"},looking_for:{title:"Aradığınız şey bu değil mi?",mobile:{description:"Ana ekranda başka bir cüzdan sağlayıcısıyla başlamak için bir cüzdan seçin."},desktop:{compact_description:"Ana ekranda başka bir cüzdan sağlayıcısıyla başlamak için bir cüzdan seçin.",wide_description:"Başka bir cüzdan sağlayıcısıyla başlamak için sol tarafta bir cüzdan seçin."}}},og0={title:"%{wallet}ile başlayın",short_title:"%{wallet}Edinin",mobile:{title:"%{wallet} Mobil İçin",description:"Mobil cüzdanı kullanarak Ethereum dünyasını keşfedin.",download:{label:"Uygulamayı alın"}},extension:{title:"%{wallet} için %{browser}",description:"Cüzdanınıza favori web tarayıcınızdan doğrudan erişin.",download:{label:"%{browser}'e ekle"}},desktop:{title:"%{wallet} için %{platform}",description:"Güçlü masaüstünüzden cüzdanınıza yerel olarak erişin.",download:{label:"%{platform}ekleyin"}}},sg0={title:"%{wallet}'i yükleyin",description:"iOS veya Android'de indirmek için telefonunuzla tarayın",continue:{label:"Devam et"}},fg0={mobile:{connect:{label:"Bağlan"},learn_more:{label:"Daha fazla bilgi edinin"}},extension:{refresh:{label:"Yenile"},learn_more:{label:"Daha fazla bilgi edinin"}},desktop:{connect:{label:"Bağlan"},learn_more:{label:"Daha fazla bilgi edinin"}}},lg0={title:"Ağları Değiştir",wrong_network:"Yanlış ağ algılandı, devam etmek için bağlantıyı kesin veya değiştirin.",confirm:"Cüzdanında Onayla",switching_not_supported:"Cüzdanınız %{appName}. ağları değiştirmeyi desteklemiyor. Bunun yerine cüzdanınızdan ağları değiştirmeyi deneyin.",switching_not_supported_fallback:"Cüzdanınız bu uygulamadan ağları değiştirmeyi desteklemiyor. Bunun yerine cüzdanınızdaki ağları değiştirmeyi deneyin.",disconnect:"Bağlantıyı Kes",connected:"Bağlı"},cg0={disconnect:{label:"Bağlantıyı Kes"},copy_address:{label:"Adresi Kopyala",copied:"Kopyalandı!"},explorer:{label:"Explorer üzerinde daha fazlasını görün"},transactions:{description:"%{appName} işlem burada görünecek...",description_fallback:"İşlemleriniz burada görünecek...",recent:{title:"Son İşlemler"},clear:{label:"Hepsini Temizle"}}},Eg0={argent:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Argent'i ana ekranınıza koyun.",title:"Argent uygulamasını açın"},step2:{description:"Bir cüzdan ve kullanıcı adı oluşturun veya mevcut bir cüzdanı içe aktarın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"QR tarayıcı düğmesine dokunun"}}},bifrost:{qr_code:{step1:{description:"Daha hızlı erişim için Bifrost Cüzdan'ı ana ekranınıza koymanızı öneririz.",title:"Bifrost Cüzdan uygulamasını açın"},step2:{description:"Kurtarma ifadenizle bir cüzdan oluşturun veya içe aktarın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama işlemi sonrasında, cüzdanınızı bağlamak için bir bağlantı istemi gözükecektir.",title:"Tarayıcı düğmesine dokunun"}}},bitget:{qr_code:{step1:{description:"Daha hızlı erişim için Bitget Cüzdanınızı ana ekranınıza koymanızı öneririz.",title:"Bitget Cüzdan uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Bitget Cüzdanını görev çubuğunuza sabitlemenizi öneririz.",title:"Bitget Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemekten emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin.",title:"Tarayıcınızı yenileyin"}}},bitski:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Bitski'yi görev çubuğunuza sabitlemenizi öneririz.",title:"Bitski eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},coin98:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Coin98 Cüzdanınızı ana ekranınıza koymanızı öneririz.",title:"Coin98 Cüzdan uygulamasını açın"},step2:{description:"Telefonunuzdaki yedekleme özelliğimizi kullanarak cüzdanınızı kolayca yedekleyebilirsiniz.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama işlemi yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"CüzdanBağlantısı düğmesine dokunun"}},extension:{step1:{description:"Tarayıcınızın sağ üst köşesinde tıklayın ve Coin98 Cüzdanınızı kolay erişim için sabitleyin.",title:"Coin98 Cüzdan eklentisini yükleyin"},step2:{description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın.",title:"Bir cüzdan oluşturun veya içe aktarın"},step3:{description:"Coin98 Cüzdan'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},coinbase:{qr_code:{step1:{description:"Coinbase Cüzdan'ı ana ekranınıza koymanızı öneririz, böylece daha hızlı erişim sağlanır.",title:"Coinbase Wallet uygulamasını açın"},step2:{description:"Cüzdanınızı bulut yedekleme özelliğini kullanarak kolayca yedekleyebilirsiniz.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Coinbase Wallet'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Coinbase Wallet uzantısını yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},core:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Core'u ana ekranınıza koymanızı öneririz.",title:"Core uygulamasını açın"},step2:{description:"Cüzdanınızın yedeğini telefonunuzda bulunan yedekleme özelliğimizi kullanarak kolayca alabilirsiniz.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamak üzere bir bağlantı istemi görünecektir.",title:"WalletConnect düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Core'u görev çubuğunuza sabitlemenizi öneririz.",title:"Core eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye dikkat edin. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayarak tarayıcıyı yenileyin ve eklentiyi yükleyin.",title:"Tarayıcınızı yenileyin"}}},fox:{qr_code:{step1:{description:"Daha hızlı erişim için FoxWallet'ı ana ekranınıza koymanızı öneririz.",title:"FoxWallet uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama yaptıktan sonra cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir.",title:"Tarama düğmesine dokunun"}}},frontier:{qr_code:{step1:{description:"Daha hızlı erişim için Frontier Cüzdanını ana ekranınıza koymanızı öneririz.",title:"Frontier Cüzdan uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Frontier Cüzdanını görev çubuğunuza sabitlemenizi öneririz.",title:"Frontier Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemeye ve eklentiyi yüklemeye başlamak için aşağıya tıklayın.",title:"Tarayıcınızı Yenileyin"}}},im_token:{qr_code:{step1:{title:"imToken uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için imToken uygulamasını ana ekranınıza koyun."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut bir cüzdanı içe aktarın."},step3:{title:"Sağ üst köşede Tarayıcı Simgesine dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlantıyı onaylamak için istemi onaylayın."}}},metamask:{qr_code:{step1:{title:"MetaMask uygulamasını açın",description:"Daha hızlı erişim için MetaMask'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli kurtarma ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Taramayı yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"MetaMask eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için MetaMask'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı Yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},okx:{qr_code:{step1:{title:"OKX Wallet uygulamasını açın",description:"Daha hızlı erişim için OKX Wallet'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli cümlenizi asla kimseyle paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Tarama yaptıktan sonra, cüzdanınızı bağlama istemi görünecektir."}},extension:{step1:{title:"OKX Cüzdan eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için OKX Cüzdan'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli cümlenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},omni:{qr_code:{step1:{title:"Omni uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Omni'yi ana ekranınıza ekleyin."},step2:{title:"Bir Cüzdan Oluşturun ya da İçe Aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"QR simgesine dokunun ve tarayın",description:"Ana ekranınızdaki QR simgesine dokunun, kodu tarayın ve bağlanmak için istemi onaylayın."}}},token_pocket:{qr_code:{step1:{title:"TokenPocket uygulamasını açın",description:"Daha hızlı erişim için TokenPocket'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya Cüzdanı İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Taramayı yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"TokenPocket eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için TokenPocket'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli cümlenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemekte ve eklentiyi yüklemek için aşağıya tıklayın."}}},trust:{qr_code:{step1:{title:"Trust Wallet uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Trust Wallet'ı ana ekranınıza koyun."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut bir tane içe aktarın."},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlanmak için istemi onaylayın."}},extension:{step1:{title:"Trust Wallet eklentisini yükleyin",description:"Tarayıcınızın sağ üst köşesine tıklayın ve kolay erişim için Trust Wallet'i sabitleyin."},step2:{title:"Bir cüzdan oluşturun veya içe aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut bir tane içe aktarın."},step3:{title:"Tarayıcınızı yenileyin",description:"Trust Wallet'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},uniswap:{qr_code:{step1:{title:"Uniswap uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Uniswap Cüzdanınızı ana ekranınıza ekleyin."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"QR ikonuna dokunun ve tarama yapın",description:"Ana ekranınızdaki QR simgesine dokunun, kodu tarayın ve bağlanmayı onaylamak için istemi kabul edin."}}},zerion:{qr_code:{step1:{title:"Zerion uygulamasını açın",description:"Daha hızlı erişim için Zerion'un ana ekranınıza konumlandırmanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine basın",description:"Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"Zerion eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Zerion'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklemeye emin olun. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},rainbow:{qr_code:{step1:{title:"Rainbow uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Rainbow'u ana ekranınıza koymanızı öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Telefonunuzdaki yedekleme özelliğimizi kullanarak cüzdanınızı kolayca yedekleyebilirsiniz."},step3:{title:"Tarama düğmesine dokunun",description:"Tarama yaptıktan sonra, cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir."}}},enkrypt:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim sağlamak için Enkrypt Cüzdan'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Enkrypt Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},frame:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim sağlamak için Frame'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Frame ve eşlik eden uzantıyı yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla başkasıyla paylaşmayın.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve uzantıyı yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},one_key:{extension:{step1:{title:"OneKey Wallet uzantısını yükleyin",description:"Cüzdanınıza daha hızlı erişim için OneKey Wallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},phantom:{extension:{step1:{title:"Phantom eklentisini yükleyin",description:"Cüzdanınıza daha kolay erişim sağlamak için Phantom'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli kurtarma ifadenizi kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},rabby:{extension:{step1:{title:"Rabby eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Rabby'yi görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıdaki düğmeye tıklayın."}}},safeheron:{extension:{step1:{title:"Core eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Safeheron'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},taho:{extension:{step1:{title:"Taho uzantısını yükleyin",description:"Cüzdanınıza daha hızlı erişim için Taho'yu görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},talisman:{extension:{step1:{title:"Talisman eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Talisman'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Ethereum Cüzdanı Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Kurtarma ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},xdefi:{extension:{step1:{title:"XDEFI Cüzdan eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için XDEFI Wallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},zeal:{extension:{step1:{title:"Zeal eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Zeal'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}}},safepal:{extension:{step1:{title:"SafePal Wallet eklentisini yükleyin",description:"Tarayıcınızın sağ üst köşesine tıklayın ve kolay erişim için SafePal Wallet'ı sabitleyin."},step2:{title:"Bir cüzdan oluşturun veya içe aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"Tarayıcınızı yenileyin",description:"SafePal Cüzdan'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}},qr_code:{step1:{title:"SafePal Cüzdan uygulamasını açın",description:"SafePal Cüzdan'ı ana ekranınıza koyun, cüzdanınıza daha hızlı erişim için."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlantıyı onaylamak için istemi onaylayın."}}},desig:{extension:{step1:{title:"Desig eklentisini yükleyin",description:"Cüzdanınıza daha kolay erişim sağlamak için Desig'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}}},subwallet:{extension:{step1:{title:"SubWallet eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için SubWallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Kurtarma ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}},qr_code:{step1:{title:"SubWallet uygulamasını açın",description:"Daha hızlı erişim için SubWallet'ı ana ekranınıza koymenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcı düğmesine dokunun",description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir."}}},clv:{extension:{step1:{title:"CLV Cüzdanı eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için CLV Cüzdanını görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}},qr_code:{step1:{title:"CLV Cüzdan uygulamasını açın",description:"Daha hızlı erişim için CLV Cüzdanını ana ekranınıza koymanızı öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcı düğmesine dokunun",description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir."}}},okto:{qr_code:{step1:{title:"Okto uygulamasını açın",description:"Hızlı erişim için Okto'yu ana ekranınıza ekleyin"},step2:{title:"MPC Cüzdanı oluşturun",description:"Bir hesap oluşturun ve bir cüzdan oluşturun"},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Sağ üstteki Tarama QR simgesine dokunun ve bağlanmak için istemi onaylayın."}}},ledger:{desktop:{step1:{title:"Ledger Live uygulamasını açın",description:"Daha hızlı erişim için Ledger Live'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Ledger'ınızı kurun",description:"Yeni bir Ledger kurun veya mevcut birine bağlanın."},step3:{title:"Bağlan",description:"Cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},qr_code:{step1:{title:"Ledger Live uygulamasını açın",description:"Daha hızlı erişim için Ledger Live'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Ledger'ınızı kurun",description:"Masaüstü uygulama ile senkronize olabilir veya Ledger'ınızı bağlayabilirsiniz."},step3:{title:"Kodu tarayın",description:"WalletConnect'e dokunun ve ardından Tarayıcı'ya geçin. Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}}}},nD={connect_wallet:ug0,intro:eg0,sign_in:tg0,connect:ng0,connect_scan:rg0,connector_group:ig0,get:ag0,get_options:og0,get_mobile:sg0,get_instructions:fg0,chains:lg0,profile:cg0,wallet_connectors:Eg0},dg0={label:"连接钱包"},pg0={title:"什么是钱包?",description:"钱包用于发送、接收、存储和显示数字资产。它也是一种新型的登录方式,无需在每个网站上创建新账户和密码。",digital_asset:{title:"您的数字资产之家",description:"钱包用于发送、接收、存储和显示像以太坊和NFT这样的数字资产。"},login:{title:"一种新的登录方式",description:"而不是在每个网站上创建新的账户和密码,只需连接您的钱包。"},get:{label:"获取钱包"},learn_more:{label:"了解更多"}},hg0={label:"验证您的账户",description:"为了完成连接,您必须在钱包中签署一条消息,以验证您是此账户的所有者。",message:{send:"发送消息",preparing:"准备消息中...",cancel:"取消",preparing_error:"准备消息时出错,请重试!"},signature:{waiting:"等待签名...",verifying:"正在验证签名...",signing_error:"签署消息时出错,请重试!",verifying_error:"验证签名时出错,请重试!",oops_error:"哎呀,出了点问题!"}},Cg0={label:"连接",title:"连接钱包",new_to_ethereum:{description:"对以太坊钱包不熟悉?",learn_more:{label:"了解更多"}},learn_more:{label:"了解更多"},recent:"近期",status:{opening:"正在打开 %{wallet}...",not_installed:"%{wallet} 尚未安装",not_available:"%{wallet} 不可用",confirm:"在扩展中确认连接"},secondary_action:{get:{description:"没有 %{wallet}吗?",label:"获取"},install:{label:"安装"},retry:{label:"重试"}},walletconnect:{description:{full:"需要官方的 WalletConnect 弹窗吗?",compact:"需要 WalletConnect 弹窗吗?"},open:{label:"打开"}}},mg0={title:"使用 %{wallet}扫描",fallback_title:"使用您的手机扫描"},gg0={recommended:"推荐",other:"其他",popular:"流行",more:"更多",others:"其他的"},bg0={title:"获取一个钱包",action:{label:"获取"},mobile:{description:"移动钱包"},extension:{description:"浏览器扩展"},mobile_and_extension:{description:"移动钱包和扩展"},mobile_and_desktop:{description:"移动和桌面钱包"},looking_for:{title:"不是你要找的吗?",mobile:{description:"在主屏幕上选择一个钱包,以开始使用不同的钱包提供商。"},desktop:{compact_description:"在主屏幕上选择一个钱包,以开始使用不同的钱包提供商。",wide_description:"在左侧选择一个钱包,以开始使用不同的钱包提供商。"}}},Ag0={title:"开始使用 %{wallet}",short_title:"获取 %{wallet}",mobile:{title:"%{wallet} 用于移动",description:"使用移动钱包探索以太坊的世界。",download:{label:"获取应用"}},extension:{title:"%{wallet} 为 %{browser}",description:"从您最喜欢的网络浏览器直接访问您的钱包。",download:{label:"添加到 %{browser}"}},desktop:{title:"%{wallet} 对于 %{platform}",description:"从您强大的桌面原生访问您的钱包。",download:{label:"添加到 %{platform}"}}},yg0={title:"安装 %{wallet}",description:"用手机扫描下载 iOS 或 Android",continue:{label:"继续"}},vg0={mobile:{connect:{label:"连接"},learn_more:{label:"了解更多"}},extension:{refresh:{label:"刷新"},learn_more:{label:"了解更多"}},desktop:{connect:{label:"连接"},learn_more:{label:"了解更多"}}},Bg0={title:"切换网络",wrong_network:"检测到错误的网络,请切换或断开连接以继续。",confirm:"在钱包中确认",switching_not_supported:"您的钱包不支持从 %{appName}切换网络。请尝试从您的钱包内部切换网络。",switching_not_supported_fallback:"您的钱包不支持从此应用切换网络。尝试从您的钱包内切换网络。",disconnect:"断开连接",connected:"已连接"},Fg0={disconnect:{label:"断开连接"},copy_address:{label:"复制地址",copied:"已复制!"},explorer:{label:"在浏览器上查看更多"},transactions:{description:"%{appName} 交易将会出现在这里...",description_fallback:"您的交易将会出现在这里...",recent:{title:"最近交易"},clear:{label:"清除全部"}}},Dg0={argent:{qr_code:{step1:{description:"将 Argent 放到您的主屏幕上,以便更快地访问您的钱包。",title:"打开 Argent 应用"},step2:{description:"创建钱包和用户名,或导入现有钱包。",title:"创建或导入钱包"},step3:{description:"在您扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描二维码按钮"}}},bifrost:{qr_code:{step1:{description:"我们建议将Bifrost Wallet放在您的主屏幕上,以便更快地访问。",title:"打开 Bifrost Wallet 应用"},step2:{description:"使用恢复短语创建或导入钱包。",title:"创建或导入钱包"},step3:{description:"在您扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描按钮"}}},bitget:{qr_code:{step1:{description:"我们建议您将Bitget钱包添加到主屏幕,以便更快地访问。",title:"打开Bitget钱包应用程序"},step2:{description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现一个连接提示,供您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Bitget钱包固定在任务栏,以便更快地访问您的钱包。",title:"安装Bitget Wallet扩展"},step2:{description:"确保使用安全的方式备份您的钱包。绝不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置钱包后,点击下方刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},bitski:{extension:{step1:{description:"我们建议您将Bitski固定在任务栏上,以便更快地访问您的钱包。",title:"安装Bitski扩展"},step2:{description:"请确保用安全的方法备份您的钱包。绝不与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置完您的钱包后,点击下方以刷新浏览器并加载扩展程序。",title:"刷新您的浏览器"}}},coin98:{qr_code:{step1:{description:"我们建议将Coin98钱包放在您的主屏幕上,以便更快地访问您的钱包。",title:"打开Coin98钱包应用程序"},step2:{description:"您可以使用我们的手机上的备份功能轻松备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现一个连接提示,让您连接您的钱包。",title:"点击WalletConnect按钮"}},extension:{step1:{description:"点击浏览器右上角并固定Coin98钱包,以便轻松访问。",title:"安装Coin98钱包扩展"},step2:{description:"创建新钱包或导入现有钱包。",title:"创建或导入钱包。"},step3:{description:"设置完成Coin98 钱包后,单击下方以刷新浏览器并加载扩展程序。",title:"刷新您的浏览器"}}},coinbase:{qr_code:{step1:{description:"我们建议您把Coinbase钱包放到主屏幕上,以便更快地访问。",title:"打开Coinbase钱包应用"},step2:{description:"您可以轻松地使用云备份功能备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Coinbase钱包固定在任务栏上,以便更快地访问您的钱包。",title:"安装Coinbase钱包扩展"},step2:{description:"务必使用安全的方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置好钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},core:{qr_code:{step1:{description:"我们建议您将Core添加到主屏幕,以便更快地访问您的钱包。",title:"打开Core应用程序"},step2:{description:"您可以使用我们的手机备份功能轻松备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击WalletConnect按钮"}},extension:{step1:{description:"我们建议将 Core 固定到任务栏,以便更快地访问您的钱包。",title:"安装 Core 扩展"},step2:{description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置好钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},fox:{qr_code:{step1:{description:"我们建议您将 FoxWallet 放到主屏幕上,以便更快的访问。",title:"打开 FoxWallet 应用"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击扫描按钮"}}},frontier:{qr_code:{step1:{description:"我们建议将 Frontier 钱包放在您的主屏幕上,以便更快地访问。",title:"打开 Frontier 钱包应用"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Frontier钱包固定到任务栏,以便更快地访问您的钱包。",title:"安装Frontier钱包扩展"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置完成钱包后,点击下方刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},im_token:{qr_code:{step1:{title:"打开imToken应用",description:"将imToken应用放在您的主屏幕上,以更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入已有的钱包。"},step3:{title:"点击右上角的扫描图标",description:"选择新连接,然后扫描二维码并确认提示以进行连接。"}}},metamask:{qr_code:{step1:{title:"打开 MetaMask 应用",description:"我们建议将 MetaMask 放在您的主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享你的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,以便你连接你的钱包。"}},extension:{step1:{title:"安装 MetaMask 扩展",description:"我们建议将MetaMask固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"请务必使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦您设置好您的钱包,点击下面刷新浏览器并加载扩展。"}}},okx:{qr_code:{step1:{title:"打开OKX钱包应用程序",description:"我们建议将OKX钱包放在您的主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。千万不要与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现一个连接提示,让您连接您的钱包。"}},extension:{step1:{title:"安装 OKX 钱包扩展",description:"我们建议将 OKX 钱包固定到您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。千万不要与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦你设置好你的钱包,点击下方刷新浏览器并加载扩展。"}}},omni:{qr_code:{step1:{title:"打开Omni应用",description:"将Omni添加到你的主屏幕,以便更快地访问你的钱包。"},step2:{title:"创建或导入钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"点击QR图标并扫描",description:"点击首页的二维码图标,扫描代码并确认提示以连接。"}}},token_pocket:{qr_code:{step1:{title:"打开TokenPocket应用",description:"我们建议将TokenPocket放在您的主屏幕上以便更快的访问。"},step2:{title:"创建或导入钱包",description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,供您连接钱包。"}},extension:{step1:{title:"安装TokenPocket扩展",description:"我们建议将TokenPocket固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入一个钱包",description:"一定要使用安全的方法备份您的钱包。绝对不要与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下面刷新浏览器并加载扩展。"}}},trust:{qr_code:{step1:{title:"打开Trust Wallet应用",description:"将Trust Wallet放在主屏幕上,以便更快地访问您的钱包。"},step2:{title:"创建或导入一个钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"在设置中点击WalletConnect",description:"选择新的连接,然后扫描二维码并确认提示以进行连接。"}},extension:{step1:{title:"安装Trust Wallet扩展程序",description:"在浏览器的右上角点击并固定Trust Wallet以便于访问。"},step2:{title:"创建或导入钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"刷新您的浏览器",description:"设置Trust Wallet后,点击下面以刷新浏览器并加载扩展程序。"}}},uniswap:{qr_code:{step1:{title:"打开Uniswap应用",description:"将Uniswap钱包添加到您的主屏幕,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入现有钱包。"},step3:{title:"点击QR图标并扫描",description:"在您的主屏幕上点击QR图标,扫描代码并确认提示以进行连接。"}}},zerion:{qr_code:{step1:{title:"打开Zerion应用",description:"我们建议将Zerion放在您的主屏幕上以便更快地访问。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方式备份你的钱包。绝对不要与任何人分享你的私人密语。"},step3:{title:"点击扫描按钮",description:"你扫描后,会出现一个连接提示让你连接你的钱包。"}},extension:{step1:{title:"安装 Zerion 扩展",description:"我们建议将 Zerion 固定在你的任务栏以便更快访问你的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份你的钱包。永远不要与任何人分享你的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置您的钱包后,点击下面以刷新浏览器并加载扩展程序。"}}},rainbow:{qr_code:{step1:{title:"打开 Rainbow 应用",description:"我们建议将 Rainbow 放在您的主屏幕上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"您可以使用我们的备份功能在您的手机上轻松备份你的钱包。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,让您连接您的钱包。"}}},enkrypt:{extension:{step1:{description:"我们建议将Enkrypt Wallet固定到任务栏,以便更快地访问您的钱包。",title:"安装Enkrypt Wallet扩展"},step2:{description:"请确保使用安全方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建钱包或导入钱包"},step3:{description:"设置钱包后,点击下面刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},frame:{extension:{step1:{description:"我们建议将Frame固定到任务栏,以便更快地访问您的钱包。",title:"安装Frame及其配套扩展"},step2:{description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},one_key:{extension:{step1:{title:"安装OneKey Wallet扩展",description:"我们建议将OneKey Wallet固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},phantom:{extension:{step1:{title:"安装 Phantom 扩展程序",description:"我们建议将 Phantom 固定到您的任务栏,以便更容易访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},rabby:{extension:{step1:{title:"安装 Rabby 扩展程序",description:"我们建议将 Rabby 固定在您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的密钥短语。"},step3:{title:"刷新您的浏览器",description:"一旦您设置好您的钱包,点击以下以刷新浏览器并加载扩展程序。"}}},safeheron:{extension:{step1:{title:"安装 Core 扩展",description:"我们建议将 Safeheron 固定在您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},taho:{extension:{step1:{title:"安装Taho扩展程序",description:"我们建议将Taho固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},talisman:{extension:{step1:{title:"安装 Talisman 扩展程序",description:"我们建议将 Talisman 固定在任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入以太坊钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},xdefi:{extension:{step1:{title:"安装 XDEFI 钱包扩展程序",description:"我们建议将XDEFI钱包固定到您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦你设置好你的钱包,点击下面刷新浏览器和加载扩展。"}}},zeal:{extension:{step1:{title:"安装Zeal扩展程序",description:"我们建议将Zeal固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}}},safepal:{extension:{step1:{title:"安装SafePal Wallet扩展程序",description:"点击浏览器右上角并固定SafePal Wallet以便于快速访问。"},step2:{title:"创建或导入钱包。",description:"创建新钱包或导入现有钱包。"},step3:{title:"刷新您的浏览器",description:"一旦设置了SafePal钱包,点击下方刷新浏览器并加载扩展程序。"}},qr_code:{step1:{title:"打开SafePal钱包应用程序",description:"将SafePal钱包放在主屏幕上以更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入现有钱包。"},step3:{title:"在设置中点击WalletConnect",description:"选择新连接,然后扫描二维码并确认提示以进行连接。"}}},desig:{extension:{step1:{title:"安装 Desig 扩展",description:"我们建议将 Desig 固定到任务栏,以便更轻松地访问您的钱包。"},step2:{title:"创建一个钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}}},subwallet:{extension:{step1:{title:"安装 SubWallet 扩展",description:"我们建议将 SubWallet 固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}},qr_code:{step1:{title:"打开 SubWallet 应用",description:"我们建议将 SubWallet 放置在主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"在您扫描后,将出现连接提示,供您连接您的钱包。"}}},clv:{extension:{step1:{title:"安装 CLV Wallet 扩展",description:"我们建议将 CLV Wallet 固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}},qr_code:{step1:{title:"打开 CLV 钱包应用",description:"我们建议将 CLV 钱包添加到您的主屏幕,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"在您扫描后,将出现连接提示,供您连接您的钱包。"}}},okto:{qr_code:{step1:{title:"打开 Okto 应用",description:"将 Okto 添加到您的主屏幕以便快速访问"},step2:{title:"创建一个 MPC 钱包",description:"创建一个账户并生成一个钱包"},step3:{title:"在设置中点击WalletConnect",description:"点击右上角的扫描二维码图标,并确认提示以连接。"}}},ledger:{desktop:{step1:{title:"打开Ledger Live应用",description:"我们建议将Ledger Live放在您的主屏幕上,以便更快地访问。"},step2:{title:"设置您的Ledger",description:"设置一个新的Ledger或连接到一个现有的。"},step3:{title:"连接",description:"你扫描后,会出现一个连接提示让你连接你的钱包。"}},qr_code:{step1:{title:"打开Ledger Live应用",description:"我们建议将Ledger Live放在您的主屏幕上,以便更快地访问。"},step2:{title:"设置您的Ledger",description:"您可以同步桌面应用程式,或连接您的Ledger。"},step3:{title:"扫描代码",description:"点击 WalletConnect 然后切换到扫描器。你扫描后,会出现一个连接提示让你连接你的钱包。"}}}},rD={connect_wallet:dg0,intro:pg0,sign_in:hg0,connect:Cg0,connect_scan:mg0,connector_group:gg0,get:bg0,get_options:Ag0,get_mobile:yg0,get_instructions:vg0,chains:Bg0,profile:Fg0,wallet_connectors:Dg0},Co=new fI.I18n({ar:GF,"ar-AR":GF,en:VF,"en-US":VF,es:KF,"es-419":KF,fr:QF,"fr-FR":QF,hi:JF,"hi-IN":JF,id:YF,"id-ID":YF,ja:ZF,"ja-JP":ZF,ko:XF,"ko-KR":XF,pt:uD,"pt-BR":uD,ru:eD,"ru-RU":eD,th:tD,"th-TH":tD,tr:nD,"tr-TR":nD,zh:rD,"zh-CN":rD});Co.defaultLocale="en-US";Co.locale="en-US";Co.enableFallback=!0;var wg0=()=>{var u;if(typeof window<"u"&&typeof navigator<"u"){if((u=navigator.languages)!=null&&u.length)return navigator.languages[0];if(navigator.language)return navigator.language}},ne=w.createContext(Co),xg0=({children:u,locale:e})=>{const t=w.useMemo(()=>wg0(),[]),n=w.useMemo(()=>(e?Co.locale=e:!e&&t&&(Co.locale=t),Co),[e,t]);return F.createElement(ne.Provider,{value:n},u)};function Rb(u){return u!=null}var iD={iconBackground:"#96bedc",iconUrl:async()=>(await L0(()=>import("./arbitrum-LYDBJZP3-KuelVeRo.js"),__vite__mapDeps([]))).default},aD={iconBackground:"#e84141",iconUrl:async()=>(await L0(()=>import("./avalanche-TFPKP544-t-P1D_4h.js"),__vite__mapDeps([]))).default},oD={iconBackground:"#0052ff",iconUrl:async()=>(await L0(()=>import("./base-3MIUIYGA-O1y3e2Yh.js"),__vite__mapDeps([]))).default},sD={iconBackground:"#ebac0e",iconUrl:async()=>(await L0(()=>import("./bsc-S2GSW6VX-hwC4eOfE.js"),__vite__mapDeps([]))).default},fD={iconBackground:"#002D74",iconUrl:async()=>(await L0(()=>import("./cronos-DQKKIEX7-hjhPqvrD.js"),__vite__mapDeps([]))).default},Ci={iconBackground:"#484c50",iconUrl:async()=>(await L0(()=>import("./ethereum-4FY57XJF-hWY7Q1hZ.js"),__vite__mapDeps([]))).default},kg0={iconBackground:"#f9f7ec",iconUrl:async()=>(await L0(()=>import("./hardhat-ARRFHFKB-h5iXIbmF.js"),__vite__mapDeps([]))).default},r8={iconBackground:"#ff5a57",iconUrl:async()=>(await L0(()=>import("./optimism-UUP5Y7TB-KDutc3G3.js"),__vite__mapDeps([]))).default},lD={iconBackground:"#9f71ec",iconUrl:async()=>(await L0(()=>import("./polygon-Z4QITDL7-zNmkxoMh.js"),__vite__mapDeps([]))).default},cD={iconBackground:"#f9f7ec",iconUrl:async()=>(await L0(()=>import("./xdc-5UHQ25DW-5b24iEUg.js"),__vite__mapDeps([]))).default},ED={iconBackground:"#f9f7ec",iconUrl:async()=>(await L0(()=>import("./zkSync-XRUC4ZHO-NNXylIR-.js"),__vite__mapDeps([]))).default},dD={iconBackground:"#000000",iconUrl:async()=>(await L0(()=>import("./zora-KVO7WIOK-R166txMv.js"),__vite__mapDeps([]))).default},_g0={arbitrum:{chainId:42161,name:"Arbitrum",...iD},arbitrumGoerli:{chainId:421613,...iD},avalanche:{chainId:43114,...aD},avalancheFuji:{chainId:43113,...aD},base:{chainId:8453,name:"Base",...oD},baseGoerli:{chainId:84531,...oD},bsc:{chainId:56,name:"BSC",...sD},bscTestnet:{chainId:97,...sD},cronos:{chainId:25,...fD},cronosTestnet:{chainId:338,...fD},goerli:{chainId:5,...Ci},hardhat:{chainId:31337,...kg0},holesky:{chainId:17e3,...Ci},kovan:{chainId:42,...Ci},localhost:{chainId:1337,...Ci},mainnet:{chainId:1,name:"Ethereum",...Ci},optimism:{chainId:10,name:"Optimism",...r8},optimismGoerli:{chainId:420,...r8},optimismKovan:{chainId:69,...r8},polygon:{chainId:137,name:"Polygon",...lD},polygonMumbai:{chainId:80001,...lD},rinkeby:{chainId:4,...Ci},ropsten:{chainId:3,...Ci},sepolia:{chainId:11155111,...Ci},xdc:{chainId:50,name:"XinFin",...cD},xdcTestnet:{chainId:51,...cD},zkSync:{chainId:324,name:"zkSync",...ED},zkSyncTestnet:{chainId:280,...ED},zora:{chainId:7777777,name:"Zora",...dD},zoraTestnet:{chainId:999,...dD}},Sg0=Object.fromEntries(Object.values(_g0).filter(Rb).map(({chainId:u,...e})=>[u,e])),Tg0=u=>u.map(e=>{var t,n,r,i;const a=(t=Sg0[e.id])!=null?t:{};return{...e,name:(n=a.name)!=null?n:e.name,iconUrl:(r=e.iconUrl)!=null?r:a.iconUrl,iconBackground:(i=e.iconBackground)!=null?i:a.iconBackground}}),Mb=w.createContext({chains:[]});function Pg0({chains:u,children:e,initialChain:t}){return F.createElement(Mb.Provider,{value:w.useMemo(()=>({chains:Tg0(u),initialChainId:typeof t=="number"?t:t==null?void 0:t.id}),[u,t])},e)}var f1=()=>w.useContext(Mb).chains,Og0=()=>w.useContext(Mb).initialChainId,Ig0=()=>{const u=f1();return w.useMemo(()=>{const e={};return u.forEach(t=>{e[t.id]=t}),e},[u])},Ng0=()=>{const[u,e]=w.useReducer(()=>!0,!1);return w.useEffect(e,[e]),u};function jN(){const u=GO.id,e=D5(),t=Array.isArray(e.chains)?e.chains:[],n=t==null?void 0:t.some(r=>(r==null?void 0:r.id)===u);return{chainId:u,enabled:n}}function zN(u){const{chainId:e,enabled:t}=jN(),{data:n}=vn0({chainId:e,enabled:t,name:u});return n}function LN(u){const{chainId:e,enabled:t}=jN(),{data:n}=Dn0({address:u,chainId:e,enabled:t});return n}function jb(){var u;const{chain:e}=ba();return(u=e==null?void 0:e.id)!=null?u:null}var $N="rk-transactions";function Rg0(u){try{const e=u?JSON.parse(u):{};return typeof e=="object"?e:{}}catch{return{}}}function pD(){return Rg0(typeof localStorage<"u"?localStorage.getItem($N):null)}var Mg0=/^0x([A-Fa-f0-9]{64})$/;function jg0(u){const e=[];return Mg0.test(u.hash)||e.push("Invalid transaction hash"),typeof u.description!="string"&&e.push("Transaction must have a description"),typeof u.confirmations<"u"&&(!Number.isInteger(u.confirmations)||u.confirmations<1)&&e.push("Transaction confirmations must be a positiver integer"),e}function zg0({provider:u}){let e=pD(),t=u;const n=new Set,r=new Map;function i(h){t=h}function a(h,b){var g,m;return(m=(g=e[h])==null?void 0:g[b])!=null?m:[]}function o(h,b,g){const m=jg0(g);if(m.length>0)throw new Error(["Unable to add transaction",...m].join(` -`));c(h,b,A=>[{...g,status:"pending"},...A.filter(({hash:y})=>y!==g.hash)])}function s(h,b){c(h,b,()=>[])}function f(h,b,g,m){c(h,b,A=>A.map(y=>y.hash===g?{...y,status:m}:y))}async function l(h,b){await Promise.all(a(h,b).filter(g=>g.status==="pending").map(async g=>{const{confirmations:m,hash:A}=g,y=r.get(A);if(y)return await y;const B=t.waitForTransactionReceipt({confirmations:m,hash:A}).then(({status:v})=>{r.delete(A),v!==void 0&&f(h,b,A,v===0||v==="reverted"?"failed":"confirmed")});return r.set(A,B),await B}))}function c(h,b,g){var m,A;e=pD(),e[h]=(m=e[h])!=null?m:{};let y=0;const B=10,v=g((A=e[h][b])!=null?A:[]).filter(({status:C})=>C==="pending"?!0:y++<=B);e[h][b]=v.length>0?v:void 0,E(),d(),l(h,b)}function E(){localStorage.setItem($N,JSON.stringify(e))}function d(){n.forEach(h=>h())}function p(h){return n.add(h),()=>{n.delete(h)}}return{addTransaction:o,clearTransactions:s,getTransactions:a,onChange:p,setProvider:i,waitForPendingTransactions:l}}var i8,UN=w.createContext(null);function Lg0({children:u}){const e=D5(),{address:t}=At(),n=jb(),[r]=w.useState(()=>i8??(i8=zg0({provider:e})));return w.useEffect(()=>{r.setProvider(e)},[r,e]),w.useEffect(()=>{t&&n&&r.waitForPendingTransactions(t,n)},[r,t,n]),F.createElement(UN.Provider,{value:r},u)}function WN(){const u=w.useContext(UN);if(!u)throw new Error("Transaction hooks must be used within RainbowKitProvider");return u}function qN(){const u=WN(),{address:e}=At(),t=jb(),[n,r]=w.useState(()=>u&&e&&t?u.getTransactions(e,t):[]);return w.useEffect(()=>{if(u&&e&&t)return r(u.getTransactions(e,t)),u.onChange(()=>{r(u.getTransactions(e,t))})},[u,e,t]),n}var hD=u=>typeof u=="function"?u():u;function $g0(u,{extends:e}={}){const t={...zF(WF,hD(u))};if(!e)return t;const n=zF(WF,hD(e));return Object.fromEntries(Object.entries(t).filter(([i,a])=>a!==n[i]))}function CD(u,e={}){return Object.entries($g0(u,e)).map(([t,n])=>`${t}:${n.replace(/[:;{}]/g,"")};`).join("")}var HN={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},Ef=w.createContext(HN),GN=w.createContext(!1),VN=()=>{const[u,e]=w.useState({height:void 0,width:void 0});return w.useEffect(()=>{function t(){e({height:window.innerHeight,width:window.innerWidth})}return window.addEventListener("resize",t),t(),()=>window.removeEventListener("resize",t)},[]),u},l1=w.createContext({connector:null,setConnector:()=>{}});function Ug0({children:u}){const[e,t]=w.useState(null);return F.createElement(l1.Provider,{value:w.useMemo(()=>({connector:e,setConnector:t}),[e])},u)}var c1={COMPACT:"compact",WIDE:"wide"},X5=w.createContext(c1.WIDE);function Wg0({children:u,modalSize:e}){const{width:t}=VN(),n=t&&t{Hg0({version:"1.3.0"})},[]);w.useEffect(()=>{u()},[u])}function Vg0(u){const e=[];for(const t of u)e.push(...t);return e}function Kg0(u,e){const t={};return u.forEach(n=>{const r=e(n);r&&(t[r]=n)}),t}function Lb(){return typeof navigator<"u"&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function Qg0(){return typeof document<"u"&&getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")!==""}function $b(){var u;if(typeof navigator>"u")return"Browser";const e=navigator.userAgent.toLowerCase();return(u=navigator.brave)!=null&&u.isBrave?"Brave":e.indexOf("edg/")>-1?"Edge":e.indexOf("op")>-1?"Opera":Qg0()?"Arc":e.indexOf("chrome")>-1?"Chrome":e.indexOf("firefox")>-1?"Firefox":Lb()?"Safari":"Browser"}var Jg0=ch0.UAParser(),{os:Ub}=Jg0;function Yg0(){return Ub.name==="Windows"}function Zg0(){return Ub.name==="Mac OS"}function Xg0(){return["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(Ub.name)}function Wb(){return Yg0()?"Windows":Zg0()?"macOS":Xg0()?"Linux":"Desktop"}var ub0=u=>{var e,t,n,r,i,a,o,s,f,l,c,E;const d=$b();return(E={Arc:(e=u==null?void 0:u.downloadUrls)==null?void 0:e.chrome,Brave:(t=u==null?void 0:u.downloadUrls)==null?void 0:t.chrome,Chrome:(n=u==null?void 0:u.downloadUrls)==null?void 0:n.chrome,Edge:((r=u==null?void 0:u.downloadUrls)==null?void 0:r.edge)||((i=u==null?void 0:u.downloadUrls)==null?void 0:i.chrome),Firefox:(a=u==null?void 0:u.downloadUrls)==null?void 0:a.firefox,Opera:((o=u==null?void 0:u.downloadUrls)==null?void 0:o.opera)||((s=u==null?void 0:u.downloadUrls)==null?void 0:s.chrome),Safari:(f=u==null?void 0:u.downloadUrls)==null?void 0:f.safari,Browser:(l=u==null?void 0:u.downloadUrls)==null?void 0:l.browserExtension}[d])!=null?E:(c=u==null?void 0:u.downloadUrls)==null?void 0:c.browserExtension},eb0=u=>{var e,t,n,r;return(r=Xo()?(e=u==null?void 0:u.downloadUrls)==null?void 0:e.ios:(t=u==null?void 0:u.downloadUrls)==null?void 0:t.android)!=null?r:(n=u==null?void 0:u.downloadUrls)==null?void 0:n.mobile},tb0=u=>{var e,t,n,r,i,a;const o=Wb();return(a={Windows:(e=u==null?void 0:u.downloadUrls)==null?void 0:e.windows,macOS:(t=u==null?void 0:u.downloadUrls)==null?void 0:t.macos,Linux:(n=u==null?void 0:u.downloadUrls)==null?void 0:n.linux,Desktop:(r=u==null?void 0:u.downloadUrls)==null?void 0:r.desktop}[o])!=null?a:(i=u==null?void 0:u.downloadUrls)==null?void 0:i.desktop},KN="rk-recent";function nb0(u){try{const e=u?JSON.parse(u):[];return Array.isArray(e)?e:[]}catch{return[]}}function QN(){return typeof localStorage<"u"?nb0(localStorage.getItem(KN)):[]}function rb0(u){return[...new Set(u)]}function ib0(u){const e=rb0([u,...QN()]);localStorage.setItem(KN,JSON.stringify(e))}function ud(){const u=f1(),e=Og0(),{connectAsync:t,connectors:n}=in0(),r=n;async function i(d,p){var h,b,g;const m=await p.getChainId(),A=await t({chainId:(g=e??((h=u.find(({id:y})=>y===m))==null?void 0:h.id))!=null?g:(b=u[0])==null?void 0:b.id,connector:p});return A&&ib0(d),A}async function a(d,p){try{return await i(d,p)}catch(h){if(!(h.name==="UserRejectedRequestError"||h.message==="Connection request reset. Please try again."))throw h}}const o=Vg0(r.map(d=>{var p;return(p=d._wallets)!=null?p:[]})).sort((d,p)=>d.index-p.index),s=Kg0(o,d=>d.id),f=3,l=QN().map(d=>s[d]).filter(Rb).slice(0,f),c=[...l,...o.filter(d=>!l.includes(d))],E=[];return c.forEach(d=>{var p;if(!d)return;const h=l.includes(d);E.push({...d,connect:()=>d.connector.showQrModal?a(d.id,d.connector):i(d.id,d.connector),desktopDownloadUrl:tb0(d),extensionDownloadUrl:ub0(d),groupName:d.groupName,mobileDownloadUrl:eb0(d),onConnecting:b=>d.connector.on("message",({type:g})=>g==="connecting"?b():void 0),ready:((p=d.installed)!=null?p:!0)&&d.connector.ready,recent:h,showWalletConnectModal:d.walletConnectModalConnector?()=>a(d.id,d.walletConnectModalConnector):void 0})}),E}var JN=async()=>(await L0(()=>import("./assets-26YY4GVD-VbicoLcw.js"),__vite__mapDeps([]))).default,ab0=()=>dr(JN),ob0=()=>F.createElement(ee,{background:"#d0d5de",borderRadius:"10",height:"48",src:JN,width:"48"}),YN=async()=>(await L0(()=>import("./login-ZSMM5UYL-SM24YM7m.js"),__vite__mapDeps([]))).default,sb0=()=>dr(YN),fb0=()=>F.createElement(ee,{background:"#d0d5de",borderRadius:"10",height:"48",src:YN,width:"48"}),k0=F.forwardRef(({as:u="div",children:e,className:t,color:n,display:r,font:i="body",id:a,size:o="16",style:s,tabIndex:f,textAlign:l="inherit",weight:c="regular",testId:E},d)=>F.createElement(O,{as:u,className:t,color:n,display:r,fontFamily:i,fontSize:o,fontWeight:c,id:a,ref:d,style:s,tabIndex:f,textAlign:l,testId:E},e));k0.displayName="Text";var lb0={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function Ke({disabled:u=!1,href:e,label:t,onClick:n,rel:r="noreferrer noopener",size:i="medium",target:a="_blank",testId:o,type:s="primary"}){const f=s==="primary",l=i!=="large",c=Ae(),E=u?"actionButtonSecondaryBackground":f?"accentColor":l?"actionButtonSecondaryBackground":null,{fontSize:d,height:p,paddingX:h,paddingY:b}=lb0[i],g=!c||!l;return F.createElement(O,{...e?u?{}:{as:"a",href:e,rel:r,target:a}:{as:"button",type:"button"},onClick:u?void 0:n,...g?{borderColor:c&&!l&&!f?"actionButtonBorderMobile":"actionButtonBorder",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!u&&Vu({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:h,paddingY:b,style:{willChange:"transform"},testId:o,textAlign:"center",transition:"transform",...E?{background:E}:{},...p?{height:p}:{}},F.createElement(k0,{color:u?"modalTextSecondary":f?"accentColorForeground":"accentColor",size:d,weight:"bold"},t))}var cb0=()=>Ae()?F.createElement("svg",{"aria-hidden":!0,fill:"none",height:"11.5",viewBox:"0 0 11.5 11.5",width:"11.5",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",fill:"currentColor"})):F.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",fill:"currentColor"})),Po=({"aria-label":u="Close",onClose:e})=>{const t=Ae();return F.createElement(O,{alignItems:"center","aria-label":u,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:t?"0":"1",className:Vu({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:t?"30":"28",justifyContent:"center",onClick:e,style:{willChange:"transform"},transition:"default",type:"button",width:t?"30":"28"},F.createElement(cb0,null))},ZN=async()=>(await L0(()=>import("./sign-FZVB2CS6-wZQBK821.js"),__vite__mapDeps([]))).default;function Eb0({onClose:u}){const e=w.useContext(ne),[{status:t,...n},r]=F.useState({status:"idle"}),i=aC0(),a=w.useCallback(async()=>{try{const d=await i.getNonce();r(p=>({...p,nonce:d}))}catch{r(d=>({...d,errorMessage:e.t("sign_in.message.preparing_error"),status:"idle"}))}},[i]),o=w.useRef(!1);F.useEffect(()=>{o.current||(o.current=!0,a())},[a]);const s=Ae(),{address:f}=At(),{chain:l}=ba(),{signMessageAsync:c}=ln0(),E=async()=>{try{const d=l==null?void 0:l.id,{nonce:p}=n;if(!f||!d||!p)return;r(g=>({...g,errorMessage:void 0,status:"signing"}));const h=i.createMessage({address:f,chainId:d,nonce:p});let b;try{b=await c({message:i.getMessageBody({message:h})})}catch(g){return g instanceof Gu?r(m=>({...m,status:"idle"})):r(m=>({...m,errorMessage:e.t("sign_in.signature.signing_error"),status:"idle"}))}r(g=>({...g,status:"verifying"}));try{if(await i.verify({message:h,signature:b}))return;throw new Error}catch{return r(g=>({...g,errorMessage:e.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{r({errorMessage:e.t("sign_in.signature.oops_error"),status:"idle"})}};return F.createElement(O,{position:"relative"},F.createElement(O,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},F.createElement(Po,{onClose:u})),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:s?"60px":"36px"}},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"6":"4",style:{maxWidth:s?320:280}},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"32":"16"},F.createElement(ee,{height:40,src:ZN,width:40}),F.createElement(k0,{color:"modalText",size:s?"20":"18",textAlign:"center",weight:"heavy"},e.t("sign_in.label"))),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"16":"12"},F.createElement(k0,{color:"modalTextSecondary",size:s?"16":"14",textAlign:"center"},e.t("sign_in.description")),t==="idle"&&n.errorMessage?F.createElement(k0,{color:"error",size:s?"16":"14",textAlign:"center",weight:"bold"},n.errorMessage):null)),F.createElement(O,{alignItems:s?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},F.createElement(Ke,{disabled:!n.nonce||t==="signing"||t==="verifying",label:n.nonce?t==="signing"?e.t("sign_in.signature.waiting"):t==="verifying"?e.t("sign_in.signature.verifying"):e.t("sign_in.message.send"):e.t("sign_in.message.preparing"),onClick:E,size:s?"large":"medium",testId:"auth-message-button"}),s?F.createElement(Ke,{label:"Cancel",onClick:u,size:"large",type:"secondary"}):F.createElement(O,{as:"button",borderRadius:"full",className:Vu({active:"shrink",hover:"grow"}),display:"block",onClick:u,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(k0,{color:"closeButton",size:s?"16":"14",weight:"bold"},e.t("sign_in.message.cancel"))))))}function db0(){const u=f1(),e=ud(),t=Z5()==="unauthenticated",n=w.useCallback(()=>{dr(...e.map(r=>r.iconUrl),...u.map(r=>r.iconUrl).filter(Rb)),Ae()||(ab0(),sb0()),t&&dr(ZN)},[e,u,t]);w.useEffect(()=>{n()},[n])}var XN="WALLETCONNECT_DEEPLINK_CHOICE";function pb0({mobileUri:u,name:e}){localStorage.setItem(XN,JSON.stringify({href:u.split("?")[0],name:e}))}function hb0(){localStorage.removeItem(XN)}var uR=w.createContext(void 0),_C="data-rk",eR=u=>({[_C]:u||""}),Cb0=u=>{if(u&&!/^[a-zA-Z0-9_]+$/.test(u))throw new Error(`Invalid ID: ${u}`);return u?`[${_C}="${u}"]`:`[${_C}]`},mb0=()=>{const u=w.useContext(uR);return eR(u)},gb0=GS();function bb0({appInfo:u,avatar:e,chains:t,children:n,coolMode:r=!1,id:i,initialChain:a,locale:o,modalSize:s=c1.WIDE,showRecentTransactions:f=!1,theme:l=gb0}){if(db0(),Gg0(),At({onDisconnect:hb0}),typeof l=="function")throw new Error('A theme function was provided to the "theme" prop instead of a theme object. You must execute this function to get the resulting theme object.');const c=Cb0(i),E={...HN,...u},d=e??NN;return F.createElement(Pg0,{chains:t,initialChain:a},F.createElement(Ug0,null,F.createElement(xg0,{locale:o},F.createElement(GN.Provider,{value:r},F.createElement(Wg0,{modalSize:s},F.createElement(zb.Provider,{value:f},F.createElement(Lg0,null,F.createElement(RN.Provider,{value:d},F.createElement(Ef.Provider,{value:E},F.createElement(uR.Provider,{value:i},F.createElement(PA0,null,l?F.createElement("div",{...eR(i)},F.createElement("style",{dangerouslySetInnerHTML:{__html:[`${c}{${CD("lightMode"in l?l.lightMode:l)}}`,"darkMode"in l?`@media(prefers-color-scheme:dark){${c}{${CD(l.darkMode,{extends:l.lightMode})}}}`:null].join("")}}),n):n)))))))))))}var Ab0="_9pm4ki5 ju367va ju367v15 ju367v8r",yb0="_9pm4ki3 ju367v9g ju367vb2 ju367va ju367v2q ju367v8q",mD=(u,e)=>{const t=u.querySelectorAll("button:not(:disabled), a[href]");t.length!==0&&t[e==="end"?t.length-1:0].focus()};function vb0(u){const e=w.useRef(null);return w.useEffect(()=>{const t=document.activeElement;return()=>{var n;(n=t.focus)==null||n.call(t)}},[]),w.useEffect(()=>{if(e.current){const t=e.current.querySelector("[data-auto-focus]");t?t.focus():e.current.focus()}},[e]),F.createElement(F.Fragment,null,F.createElement("div",{onFocus:w.useCallback(()=>e.current&&mD(e.current,"end"),[]),tabIndex:0}),F.createElement("div",{ref:e,style:{outline:"none"},tabIndex:-1,...u}),F.createElement("div",{onFocus:w.useCallback(()=>e.current&&mD(e.current,"start"),[]),tabIndex:0}))}var Bb0=u=>u.stopPropagation();function m9({children:u,onClose:e,open:t,titleId:n}){w.useEffect(()=>{const f=l=>t&&l.key==="Escape"&&e();return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[t,e]);const[r,i]=w.useState(!0);w.useEffect(()=>{i(getComputedStyle(window.document.body).overflow!=="hidden")},[]);const a=w.useCallback(()=>e(),[e]),o=mb0(),s=Ae();return F.createElement(F.Fragment,null,t?A7.createPortal(F.createElement(fh0,{enabled:r},F.createElement(O,{...o},F.createElement(O,{...o,alignItems:s?"flex-end":"center","aria-labelledby":n,"aria-modal":!0,className:yb0,onClick:a,position:"fixed",role:"dialog"},F.createElement(vb0,{className:Ab0,onClick:Bb0,role:"document"},u)))),document.body):null)}var Fb0="_1ckjpok7",Db0="_1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",wb0="_1ckjpok4 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",xb0="_1ckjpok6 ju367vq",kb0="_1ckjpok3 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",_b0="_1ckjpok2 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r";function g9({bottomSheetOnMobile:u=!1,children:e,marginTop:t,padding:n="16",paddingBottom:r,wide:i=!1}){const a=Ae(),s=w.useContext(X5)===c1.COMPACT;return F.createElement(O,{marginTop:t},F.createElement(O,{className:[i?a?_b0:s?wb0:kb0:Db0,a?xb0:null,a&&u?Fb0:null].join(" ")},F.createElement(O,{padding:n,paddingBottom:r??n},e)))}var gD=["k","m","b","t"];function c6(u,e=1){return u.toString().replace(new RegExp(`(.+\\.\\d{${e}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function tR(u){if(u<1)return c6(u,3);if(u<10**2)return c6(u,2);if(u<10**4)return new Intl.NumberFormat().format(parseFloat(c6(u,1)));const e=10**1;let t=String(u);for(let n=gD.length-1;n>=0;n--){const r=10**((n+1)*3);if(r<=u){u=u*e/r/e,t=c6(u,1)+gD[n];break}}return t}function nR(u){return u.length<8?u:`${u.substring(0,4)}…${u.substring(u.length-4)}`}function rR(u){const e=u.split("."),t=e.pop();return e.join(".").length>24?`${e.join(".").substring(0,24)}...`:`${e.join(".")}.${t}`}var Sb0=()=>F.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",fill:"currentColor"})),Tb0=()=>F.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",fill:"currentColor"})),Pb0=()=>F.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.6354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",fill:"currentColor"}));function Ob0(){const u=WN(),{address:e}=At(),t=jb();return w.useCallback(()=>{if(!e||!t)throw new Error("No address or chain ID found");u.clearTransactions(e,t)},[u,e,t])}var iR=u=>{var e,t;return(t=(e=u==null?void 0:u.blockExplorers)==null?void 0:e.default)==null?void 0:t.url},aR=()=>F.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",fill:"currentColor"})),Ib0=()=>F.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",fill:"currentColor"})),Nb0=()=>F.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",fill:"currentColor"})),Rb0=u=>{switch(u){case"pending":return Jl;case"confirmed":return Nb0;case"failed":return Ib0;default:return Jl}};function Mb0({tx:u}){const e=Ae(),t=Rb0(u.status),n=u.status==="failed"?"error":"accentColor",{chain:r}=ba(),i=u.status==="confirmed"?"Confirmed":u.status==="failed"?"Failed":"Pending",a=iR(r);return F.createElement(F.Fragment,null,F.createElement(O,{...a?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:Vu({active:"shrink"}),href:`${a}/tx/${u.hash}`,rel:"noreferrer noopener",target:"_blank",transition:"default"}:{},color:"modalText",display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"8",width:"full"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:e?"16":"14"},F.createElement(O,{color:n},F.createElement(t,null)),F.createElement(O,{display:"flex",flexDirection:"column",gap:e?"3":"1"},F.createElement(O,null,F.createElement(k0,{color:"modalText",font:"body",size:e?"16":"14",weight:"bold"},u==null?void 0:u.description)),F.createElement(O,null,F.createElement(k0,{color:u.status==="pending"?"modalTextSecondary":n,font:"body",size:"14",weight:e?"medium":"regular"},i)))),a&&F.createElement(O,{alignItems:"center",color:"modalTextDim",display:"flex"},F.createElement(aR,null))))}var jb0=3;function zb0({address:u}){const e=qN(),t=Ob0(),{chain:n}=ba(),r=iR(n),i=e.slice(0,jb0),a=i.length>0,o=Ae(),{appName:s}=w.useContext(Ef),f=w.useContext(ne);return F.createElement(F.Fragment,null,F.createElement(O,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:o?"8":"18"},a&&F.createElement(O,{paddingBottom:o?"4":"0",paddingTop:"8",paddingX:o?"12":"6"},F.createElement(O,{display:"flex",justifyContent:"space-between"},F.createElement(k0,{color:"modalTextSecondary",size:o?"16":"14",weight:"semibold"},f.t("profile.transactions.recent.title")),F.createElement(O,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},F.createElement(O,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:Vu({active:"shrink"}),onClick:t,paddingX:o?"8":"12",paddingY:o?"4":"5",transition:"default",type:"button"},F.createElement(k0,{color:"modalTextSecondary",size:o?"16":"14",weight:"semibold"},f.t("profile.transactions.clear.label")))))),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},a?i.map(l=>F.createElement(Mb0,{key:l.hash,tx:l})):F.createElement(F.Fragment,null,F.createElement(O,{padding:o?"12":"8"},F.createElement(k0,{color:"modalTextDim",size:o?"16":"14",weight:o?"medium":"bold"},s?f.t("profile.transactions.description",{appName:s}):f.t("profile.transactions.description_fallback"))),o&&F.createElement(O,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),r&&F.createElement(O,{paddingBottom:"18",paddingX:o?"8":"18"},F.createElement(O,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:Vu({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${r}/address/${u}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...o?{paddingLeft:"12"}:{}},F.createElement(k0,{color:"modalText",font:"body",size:o?"16":"14",weight:o?"semibold":"bold"},f.t("profile.explorer.label")),F.createElement(aR,null))))}function bD({action:u,icon:e,label:t,testId:n,url:r}){const i=Ae();return F.createElement(O,{...r?{as:"a",href:r,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...i?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:Vu({active:"shrinkSm",hover:i?void 0:"grow"}),display:"flex",onClick:u,padding:i?"6":"8",style:{willChange:"transform"},testId:n,transition:"default",width:"full"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},F.createElement(O,{color:"modalText",height:"max"},e),F.createElement(O,null,F.createElement(k0,{color:"modalText",size:i?"12":"13",weight:"semibold"},t))))}function Lb0({address:u,balanceData:e,ensAvatar:t,ensName:n,onClose:r,onDisconnect:i}){const a=w.useContext(zb),[o,s]=w.useState(!1),f=w.useContext(ne),l=w.useCallback(()=>{u&&(navigator.clipboard.writeText(u),s(!0))},[u]);if(w.useEffect(()=>{if(o){const b=setTimeout(()=>{s(!1)},1500);return()=>clearTimeout(b)}},[o]),!u)return null;const c=n?rR(n):nR(u),E=e==null?void 0:e.formatted,d=E?tR(parseFloat(E)):void 0,p="rk_profile_title",h=Ae();return F.createElement(F.Fragment,null,F.createElement(O,{display:"flex",flexDirection:"column"},F.createElement(O,{background:"profileForeground",padding:"16"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:h?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},F.createElement(O,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},F.createElement(Po,{onClose:r}))," ",F.createElement(O,{marginTop:h?"24":"0"},F.createElement(MN,{address:u,imageUrl:t,size:h?82:74})),F.createElement(O,{display:"flex",flexDirection:"column",gap:h?"4":"0",textAlign:"center"},F.createElement(O,{textAlign:"center"},F.createElement(k0,{as:"h1",color:"modalText",id:p,size:h?"20":"18",weight:"heavy"},c)),e&&F.createElement(O,{textAlign:"center"},F.createElement(k0,{as:"h1",color:"modalTextSecondary",id:p,size:h?"16":"14",weight:"semibold"},d," ",e.symbol)))),F.createElement(O,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},F.createElement(bD,{action:l,icon:o?F.createElement(Sb0,null):F.createElement(Tb0,null),label:o?f.t("profile.copy_address.copied"):f.t("profile.copy_address.label")}),F.createElement(bD,{action:i,icon:F.createElement(Pb0,null),label:f.t("profile.disconnect.label"),testId:"disconnect-button"}))),a&&F.createElement(F.Fragment,null,F.createElement(O,{background:"generalBorder",height:"1",marginTop:"-1"}),F.createElement(O,null,F.createElement(zb0,{address:u})))))}function $b0({onClose:u,open:e}){const{address:t}=At(),{data:n}=aI({address:t}),r=LN(t),i=zN(r),{disconnect:a}=lb();if(!t)return null;const o="rk_account_modal_title";return F.createElement(F.Fragment,null,t&&F.createElement(m9,{onClose:u,open:e,titleId:o},F.createElement(g9,{bottomSheetOnMobile:!0,padding:"0"},F.createElement(Lb0,{address:t,balanceData:n,ensAvatar:i,ensName:r,onClose:u,onDisconnect:a}))))}var Ub0=({size:u})=>F.createElement("svg",{fill:"none",height:u,viewBox:"0 0 28 28",width:u,xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",fill:"currentColor"})),Wb0="v9horb0",SC=F.forwardRef(({children:u,currentlySelected:e=!1,onClick:t,testId:n,...r},i)=>{const a=Ae();return F.createElement(O,{as:"button",borderRadius:"menuButton",disabled:e,display:"flex",onClick:t,ref:i,testId:n,type:"button"},F.createElement(O,{borderRadius:"menuButton",className:[a?Wb0:void 0,!e&&Vu({active:"shrink"})],padding:a?"8":"6",transition:"default",width:"full",...e?{background:"accentColor",borderColor:"selectedOptionBorder",borderStyle:"solid",borderWidth:"1",boxShadow:"selectedOption",color:"accentColorForeground"}:{background:{hover:"menuItemBackground"},color:"modalText",transition:"default"},...r},u))});SC.displayName="MenuButton";var qb0="_18dqw9x0",Hb0="_18dqw9x1";function Gb0({onClose:u,open:e}){var t;const{chain:n}=ba(),{chains:r,pendingChainId:i,reset:a,switchNetwork:o}=dn0({onSettled:()=>{a(),u()}}),s=w.useContext(ne),{disconnect:f}=lb(),l="rk_chain_modal_title",c=Ae(),E=(t=n==null?void 0:n.unsupported)!=null?t:!1,d=c?"36":"28",{appName:p}=w.useContext(Ef),h=f1();return!n||!(n!=null&&n.id)?null:F.createElement(m9,{onClose:u,open:e,titleId:l},F.createElement(g9,{bottomSheetOnMobile:!0,paddingBottom:"0"},F.createElement(O,{display:"flex",flexDirection:"column",gap:"14"},F.createElement(O,{display:"flex",flexDirection:"row",justifyContent:"space-between"},c&&F.createElement(O,{width:"30"}),F.createElement(O,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},F.createElement(k0,{as:"h1",color:"modalText",id:l,size:c?"20":"18",weight:"heavy"},s.t("chains.title"))),F.createElement(Po,{onClose:u})),E&&F.createElement(O,{marginX:"8",textAlign:c?"center":"left"},F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},s.t("chains.wrong_network"))),F.createElement(O,{className:c?Hb0:qb0,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},o?h.map(({iconBackground:b,iconUrl:g,id:m,name:A},y)=>{const B=r.find(D=>D.id===m);if(!B)return null;const v=B.id===(n==null?void 0:n.id),C=!v&&B.id===i;return F.createElement(w.Fragment,{key:B.id},F.createElement(SC,{currentlySelected:v,onClick:v?void 0:()=>o(B.id),testId:`chain-option-${B.id}`},F.createElement(O,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:d},g&&F.createElement(O,{height:"full",marginRight:"8"},F.createElement(ee,{alt:A??B.name,background:b,borderRadius:"full",height:d,src:g,width:d,testId:`chain-option-${B.id}-icon`})),F.createElement("div",null,A??B.name)),v&&F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},F.createElement(k0,{color:"accentColorForeground",size:"14",weight:"medium"},s.t("chains.connected")),F.createElement(O,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),C&&F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},F.createElement(k0,{color:"modalText",size:"14",weight:"medium"},s.t("chains.confirm")),F.createElement(O,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),c&&yf(),testId:"chain-option-disconnect"},F.createElement(O,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:d},F.createElement(O,{alignItems:"center",color:"error",height:d,justifyContent:"center",marginRight:"8"},F.createElement(Ub0,{size:Number(d)})),F.createElement("div",null,s.t("chains.disconnect")))))))))))}function Vb0(u,e){const t={};return u.forEach(n=>{const r=e(n);r&&(t[r]||(t[r]=[]),t[r].push(n))}),t}var Kb0="rk-latest-id";function Qb0(u){localStorage.setItem(Kb0,u)}var qb=({children:u,href:e})=>F.createElement(O,{as:"a",color:"accentColor",href:e,rel:"noreferrer",target:"_blank"},u),Hb=({children:u})=>F.createElement(k0,{color:"modalTextSecondary",size:"12",weight:"medium"},u);function AD({compactModeEnabled:u=!1,getWallet:e}){const{disclaimer:t,learnMoreUrl:n}=w.useContext(Ef),r=w.useContext(ne);return F.createElement(F.Fragment,null,F.createElement(O,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},F.createElement(O,{marginBottom:"10"},!u&&F.createElement(k0,{color:"modalText",size:"18",weight:"heavy"},r.t("intro.title"))),F.createElement(O,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},F.createElement(O,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},F.createElement(ob0,null)),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},r.t("intro.digital_asset.title")),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},r.t("intro.digital_asset.description")))),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},F.createElement(O,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},F.createElement(fb0,null)),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},r.t("intro.login.title")),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},r.t("intro.login.description"))))),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},F.createElement(Ke,{label:r.t("intro.get.label"),onClick:e}),F.createElement(O,{as:"a",className:Vu({active:"shrink",hover:"grow"}),display:"block",href:n,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(k0,{color:"accentColor",size:"14",weight:"bold"},r.t("intro.learn_more.label")))),t&&!u&&F.createElement(O,{marginBottom:"8",marginTop:"12",textAlign:"center"},F.createElement(t,{Link:qb,Text:Hb}))))}var oR=()=>F.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.9121 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",fill:"currentColor"})),Jb0=()=>F.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",fill:"currentColor"})),Yb0=({"aria-label":u="Info",onClick:e})=>{const t=Ae();return F.createElement(O,{alignItems:"center","aria-label":u,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:t?"0":"1",className:Vu({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:t?"30":"28",justifyContent:"center",onClick:e,style:{willChange:"transform"},transition:"default",type:"button",width:t?"30":"28"},F.createElement(Jb0,null))},sR=u=>{const e=w.useRef(null),t=w.useContext(GN),n=Nb(u);return w.useEffect(()=>{if(t&&e.current&&n)return Xb0(e.current,n)},[t,n]),e},Zb0=()=>{const u="_rk_coolMode",e=document.getElementById(u);if(e)return e;const t=document.createElement("div");return t.setAttribute("id",u),t.setAttribute("style",["overflow:hidden","position:fixed","height:100%","top:0","left:0","right:0","bottom:0","pointer-events:none","z-index:2147483647"].join(";")),document.body.appendChild(t),t},yD=0;function Xb0(u,e){yD++;const t=[15,20,25,35,45],n=35;let r=[],i=!1,a=0,o=0;const s=Zb0();function f(){const y=t[Math.floor(Math.random()*t.length)],B=Math.random()*10,v=Math.random()*25,C=Math.random()*360,D=Math.random()*35*(Math.random()<=.5?-1:1),T=o-y/2,_=a-y/2,$=Math.random()<=.5?-1:1,u0=document.createElement("div");u0.innerHTML=``,u0.setAttribute("style",["position:absolute","will-change:transform",`top:${T}px`,`left:${_}px`,`transform:rotate(${C}deg)`].join(";")),s.appendChild(u0),r.push({direction:$,element:u0,left:_,size:y,speedHorz:B,speedUp:v,spinSpeed:D,spinVal:C,top:T})}function l(){r.forEach(y=>{y.left=y.left-y.speedHorz*y.direction,y.top=y.top-y.speedUp,y.speedUp=Math.min(y.size,y.speedUp-1),y.spinVal=y.spinVal+y.spinSpeed,y.top>=Math.max(window.innerHeight,document.body.clientHeight)+y.size&&(r=r.filter(B=>B!==y),y.element.remove()),y.element.setAttribute("style",["position:absolute","will-change:transform",`top:${y.top}px`,`left:${y.left}px`,`transform:rotate(${y.spinVal}deg)`].join(";"))})}let c;function E(){i&&r.length{var B,v;"touches"in y?(a=(B=y.touches)==null?void 0:B[0].clientX,o=(v=y.touches)==null?void 0:v[0].clientY):(a=y.clientX,o=y.clientY)},m=y=>{g(y),i=!0},A=()=>{i=!1};return u.addEventListener(b,g,{passive:!1}),u.addEventListener(p,m),u.addEventListener(h,A),u.addEventListener("mouseleave",A),()=>{u.removeEventListener(b,g),u.removeEventListener(p,m),u.removeEventListener(h,A),u.removeEventListener("mouseleave",A);const y=setInterval(()=>{c&&r.length===0&&(cancelAnimationFrame(c),clearInterval(y),--yD===0&&s.remove())},500)}}var uA0="g5kl0l0",fR=({as:u="button",currentlySelected:e=!1,iconBackground:t,iconUrl:n,name:r,onClick:i,ready:a,recent:o,testId:s,...f})=>{const l=sR(n),[c,E]=w.useState(!1),d=w.useContext(ne);return F.createElement(O,{display:"flex",flexDirection:"column",onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),ref:l},F.createElement(O,{as:u,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:e?void 0:[uA0,Vu({active:"shrink"})],disabled:e,onClick:i,padding:"5",style:{willChange:"transform"},testId:s,transition:"default",width:"full",...e?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...f},F.createElement(O,{color:e?"accentColorForeground":"modalText",disabled:!a,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},F.createElement(ee,{background:t,...c?{}:{borderColor:"actionButtonBorder"},borderRadius:"6",height:"28",src:n,width:"28"}),F.createElement(O,null,F.createElement(O,{style:{marginTop:o?-2:void 0}},r),o&&F.createElement(k0,{color:e?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},d.t("connect.recent")))))))};fR.displayName="ModalSelection";var a8=(u,e=1)=>{let t=u.replace("#","");t.length===3&&(t=`${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`);const n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),i=parseInt(t.substring(4,6),16);return e>1&&e<=100&&(e=e/100),`rgba(${n},${r},${i},${e})`},eA0=u=>u?[a8(u,.2),a8(u,.14),a8(u,.1)]:null,tA0=u=>/^#([0-9a-f]{3}){1,2}$/i.test(u),lR=async()=>(await L0(()=>import("./connect-XNDTNVUH-hhMIOxrc.js"),__vite__mapDeps([]))).default,nA0=()=>dr(lR),rA0=()=>F.createElement(ee,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:lR,width:"48"}),cR=async()=>(await L0(()=>import("./create-PAJXJDV3-km5bd1se.js"),__vite__mapDeps([]))).default,ER=()=>dr(cR),iA0=()=>F.createElement(ee,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:cR,width:"48"}),dR=async()=>(await L0(()=>import("./refresh-5KGGHTJP-85I9TqPb.js"),__vite__mapDeps([]))).default,aA0=()=>dr(dR),oA0=()=>F.createElement(ee,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:dR,width:"48"}),pR=async()=>(await L0(()=>import("./scan-HZBLXLM4-CuMFQji0.js"),__vite__mapDeps([]))).default,hR=()=>dr(pR),sA0=()=>F.createElement(ee,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:pR,width:"48"}),fA0="_1vwt0cg0",lA0="_1vwt0cg2 ju367v7a ju367v7v",cA0="_1vwt0cg3",EA0="_1vwt0cg4",dA0=(u,e)=>{const t=Array.prototype.slice.call(o1.create(u,{errorCorrectionLevel:e}).modules.data,0),n=Math.sqrt(t.length);return t.reduce((r,i,a)=>(a%n===0?r.push([i]):r[r.length-1].push(i))&&r,[])};function CR({ecl:u="M",logoBackground:e,logoMargin:t=10,logoSize:n=50,logoUrl:r,size:i=200,uri:a}){const o="20",s=i-parseInt(o,10)*2,f=w.useMemo(()=>{const E=[],d=dA0(a,u),p=s/d.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:A,y})=>{const B=(d.length-7)*p*A,v=(d.length-7)*p*y;for(let C=0;C<3;C++)E.push(F.createElement("rect",{fill:C%2!==0?"white":"black",height:p*(7-C*2),key:`${C}-${A}-${y}`,rx:(C-2)*-5+(C===0?2:0),ry:(C-2)*-5+(C===0?2:0),width:p*(7-C*2),x:B+p*C,y:v+p*C}))});const b=Math.floor((n+25)/p),g=d.length/2-b/2,m=d.length/2+b/2-1;return d.forEach((A,y)=>{A.forEach((B,v)=>{d[y][v]&&(y<7&&v<7||y>d.length-8&&v<7||y<7&&v>d.length-8||y>g&&yg&&v{switch($b()){case"Arc":return(await L0(()=>import("./Arc-QDJFTGH2-x-TIuu8Z.js"),__vite__mapDeps([]))).default;case"Brave":return(await L0(()=>import("./Brave-YATE5BIM-9tj-VFqu.js"),__vite__mapDeps([]))).default;case"Chrome":return(await L0(()=>import("./Chrome-LGF33C3S-wsO3nrZt.js"),__vite__mapDeps([]))).default;case"Edge":return(await L0(()=>import("./Edge-K2JEGI5S--gxTpD72.js"),__vite__mapDeps([]))).default;case"Firefox":return(await L0(()=>import("./Firefox-NP5SYEK5-7iuNDPna.js"),__vite__mapDeps([]))).default;case"Opera":return(await L0(()=>import("./Opera-KV54PXPA-OCnboboB.js"),__vite__mapDeps([]))).default;case"Safari":return(await L0(()=>import("./Safari-2QIYKJ4P-DqnkdcRR.js"),__vite__mapDeps([]))).default;default:return(await L0(()=>import("./Browser-HN7O5MN7-tT69d9rj.js"),__vite__mapDeps([]))).default}},pA0=()=>dr(mR),gR=async()=>{switch(Wb()){case"Windows":return(await L0(()=>import("./Windows-R3CKAIUV-UAjuZCQz.js"),__vite__mapDeps([]))).default;case"macOS":return(await L0(()=>import("./Macos-2KTZ2XLP-xHqsL0QY.js"),__vite__mapDeps([]))).default;case"Linux":return(await L0(()=>import("./Linux-NS2LQPT4-bLbGf4OB.js"),__vite__mapDeps([]))).default;default:return(await L0(()=>import("./Linux-NS2LQPT4-bLbGf4OB.js"),__vite__mapDeps([]))).default}},hA0=()=>dr(gR);function CA0({getWalletDownload:u,compactModeEnabled:e}){const n=ud().splice(0,5),r=w.useContext(ne);return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},n==null?void 0:n.filter(i=>{var a;return i.extensionDownloadUrl||i.desktopDownloadUrl||i.qrCode&&((a=i.downloadUrls)==null?void 0:a.qrCode)}).map(i=>{const{downloadUrls:a,iconBackground:o,iconUrl:s,id:f,name:l,qrCode:c}=i,E=(a==null?void 0:a.qrCode)&&c,d=!!i.extensionDownloadUrl,p=(a==null?void 0:a.qrCode)&&d,h=(a==null?void 0:a.qrCode)&&!!i.desktopDownloadUrl;return F.createElement(O,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:i.id,width:"full"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},F.createElement(ee,{background:o,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:s,width:"48"}),F.createElement(O,{display:"flex",flexDirection:"column",gap:"2"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},l),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},p?r.t("get.mobile_and_extension.description"):h?r.t("get.mobile_and_desktop.description"):E?r.t("get.mobile.description"):d?r.t("get.extension.description"):null))),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(Ke,{label:r.t("get.action.label"),onClick:()=>u(f),type:"secondary"})))})),F.createElement(O,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},r.t("get.looking_for.title")),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},e?r.t("get.looking_for.desktop.compact_description"):r.t("get.looking_for.desktop.wide_description"))))}var o8="44";function mA0({changeWalletStep:u,compactModeEnabled:e,connectionError:t,onClose:n,qrCodeUri:r,reconnect:i,wallet:a}){var o;const{downloadUrls:s,iconBackground:f,iconUrl:l,name:c,qrCode:E,ready:d,showWalletConnectModal:p}=a,h=(o=a.desktop)==null?void 0:o.getUri,b=Lb(),g=w.useContext(ne),m=!!a.extensionDownloadUrl,A=(s==null?void 0:s.qrCode)&&m,y=(s==null?void 0:s.qrCode)&&!!a.desktopDownloadUrl,B=E&&r,v=p?{description:e?g.t("connect.walletconnect.description.compact"):g.t("connect.walletconnect.description.full"),label:g.t("connect.walletconnect.open.label"),onClick:()=>{n(),p()}}:B?{description:g.t("connect.secondary_action.get.description",{wallet:c}),label:g.t("connect.secondary_action.get.label"),onClick:()=>u(A||y?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:C}=VN(),D=C&&C<768;return w.useEffect(()=>{pA0(),hA0()},[]),F.createElement(O,{display:"flex",flexDirection:"column",height:"full",width:"full"},B?F.createElement(O,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},F.createElement(CR,{logoBackground:f,logoSize:e?60:72,logoUrl:l,size:e?318:D?Math.max(280,Math.min(C-308,382)):382,uri:r})):F.createElement(O,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},F.createElement(O,{borderRadius:"10",height:o8,overflow:"hidden"},F.createElement(ee,{height:o8,src:l,width:o8})),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},F.createElement(k0,{color:"modalText",size:"18",weight:"bold"},d?g.t("connect.status.opening",{wallet:c}):m?g.t("connect.status.not_installed",{wallet:c}):g.t("connect.status.not_available",{wallet:c})),!d&&m?F.createElement(O,{paddingTop:"20"},F.createElement(Ke,{href:a.extensionDownloadUrl,label:g.t("connect.secondary_action.install.label"),type:"secondary"})):null,d&&!B&&F.createElement(F.Fragment,null,F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},F.createElement(k0,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},g.t("connect.status.confirm"))),F.createElement(O,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},t?F.createElement(Ke,{label:g.t("connect.secondary_action.retry.label"),onClick:h?async()=>{const T=await h();window.open(T,b?"_blank":"_self")}:()=>{i(a)}}):F.createElement(O,{color:"modalTextSecondary"},F.createElement(Jl,null))))))),F.createElement(O,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},d&&v&&F.createElement(F.Fragment,null,F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},v.description),F.createElement(Ke,{label:v.label,onClick:v.onClick,type:"secondary"}))))}var s8=({actionLabel:u,description:e,iconAccent:t,iconBackground:n,iconUrl:r,isCompact:i,onAction:a,title:o,url:s,variant:f})=>{const l=f==="browser",c=!l&&t&&eA0(t);return F.createElement(O,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:i?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},F.createElement(O,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),l&&F.createElement(O,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},F.createElement(O,{display:"flex",flexDirection:"row",justifyContent:"space-between",style:{bottom:"0",filter:"blur(20px)",left:"0",position:"absolute",right:"0",top:"0",transform:"translate3d(0, 0, 0)"}},F.createElement(O,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},F.createElement(ee,{borderRadius:"full",height:"200",src:r,width:"200"})),F.createElement(O,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},F.createElement(ee,{borderRadius:"full",height:"200",src:r,width:"200"})))),!l&&c&&F.createElement(O,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},F.createElement(O,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${c[0]} 0%, ${c[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),F.createElement(O,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${c[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),F.createElement(O,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},F.createElement(O,null,F.createElement(ee,{height:"60",src:r,width:"60",...n?{background:n,borderColor:"generalBorder",borderRadius:"10"}:null})),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},o),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},e),F.createElement(O,{marginTop:"14",width:"max"},F.createElement(Ke,{href:s,label:u,onClick:a,size:"medium"})))))};function gA0({changeWalletStep:u,wallet:e}){const t=$b(),n=Wb(),i=w.useContext(X5)==="compact",{desktop:a,desktopDownloadUrl:o,extension:s,extensionDownloadUrl:f,mobileDownloadUrl:l}=e,c=w.useContext(ne);return w.useEffect(()=>{ER(),hR(),aA0(),nA0()},[]),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},f&&F.createElement(s8,{actionLabel:c.t("get_options.extension.download.label",{browser:t}),description:c.t("get_options.extension.description"),iconUrl:mR,isCompact:i,onAction:()=>u(s!=null&&s.instructions?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:c.t("get_options.extension.title",{wallet:e.name,browser:t}),url:f,variant:"browser"}),o&&F.createElement(s8,{actionLabel:c.t("get_options.desktop.download.label",{platform:n}),description:c.t("get_options.desktop.description"),iconUrl:gR,isCompact:i,onAction:()=>u(a!=null&&a.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:c.t("get_options.desktop.title",{wallet:e.name,platform:n}),url:o,variant:"desktop"}),l&&F.createElement(s8,{actionLabel:c.t("get_options.mobile.download.label",{wallet:e.name}),description:c.t("get_options.mobile.description"),iconAccent:e.iconAccent,iconBackground:e.iconBackground,iconUrl:e.iconUrl,isCompact:i,onAction:()=>{u("DOWNLOAD")},title:c.t("get_options.mobile.title",{wallet:e.name}),variant:"app"})))}function bA0({changeWalletStep:u,wallet:e}){const{downloadUrls:t,qrCode:n}=e,r=w.useContext(ne);return w.useEffect(()=>{ER(),hR()},[]),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},F.createElement(O,{style:{maxWidth:220,textAlign:"center"}},F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"semibold"},r.t("get_mobile.description"))),F.createElement(O,{height:"full"},t!=null&&t.qrCode?F.createElement(CR,{logoSize:0,size:268,uri:t.qrCode}):null),F.createElement(O,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},F.createElement(Ke,{label:r.t("get_mobile.continue.label"),onClick:()=>u(n!=null&&n.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var k3={connect:()=>F.createElement(rA0,null),create:()=>F.createElement(iA0,null),install:u=>F.createElement(ee,{background:u.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:u.iconUrl,width:"48"}),refresh:()=>F.createElement(oA0,null),scan:()=>F.createElement(sA0,null)};function AA0({connectWallet:u,wallet:e}){var t,n,r,i;const a=w.useContext(ne);return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},F.createElement(O,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(n=(t=e==null?void 0:e.qrCode)==null?void 0:t.instructions)==null?void 0:n.steps.map((o,s)=>{var f;return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},F.createElement(O,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(f=k3[o.step])==null?void 0:f.call(k3,e)),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},a.t(o.title)),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t(o.description))))})),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},F.createElement(Ke,{label:a.t("get_instructions.mobile.connect.label"),onClick:()=>u(e)}),F.createElement(O,{as:"a",className:Vu({active:"shrink",hover:"grow"}),display:"block",href:(i=(r=e==null?void 0:e.qrCode)==null?void 0:r.instructions)==null?void 0:i.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(k0,{color:"accentColor",size:"14",weight:"bold"},a.t("get_instructions.mobile.learn_more.label")))))}function yA0({wallet:u}){var e,t,n,r;const i=w.useContext(ne);return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},F.createElement(O,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(t=(e=u==null?void 0:u.extension)==null?void 0:e.instructions)==null?void 0:t.steps.map((a,o)=>{var s;return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:o},F.createElement(O,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(s=k3[a.step])==null?void 0:s.call(k3,u)),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},i.t(a.title)),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t(a.description))))})),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},F.createElement(Ke,{label:i.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),F.createElement(O,{as:"a",className:Vu({active:"shrink",hover:"grow"}),display:"block",href:(r=(n=u==null?void 0:u.extension)==null?void 0:n.instructions)==null?void 0:r.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(k0,{color:"accentColor",size:"14",weight:"bold"},i.t("get_instructions.extension.learn_more.label")))))}function vA0({connectWallet:u,wallet:e}){var t,n,r,i;const a=w.useContext(ne);return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},F.createElement(O,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(n=(t=e==null?void 0:e.desktop)==null?void 0:t.instructions)==null?void 0:n.steps.map((o,s)=>{var f;return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},F.createElement(O,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(f=k3[o.step])==null?void 0:f.call(k3,e)),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},a.t(o.title)),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t(o.description))))})),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},F.createElement(Ke,{label:a.t("get_instructions.desktop.connect.label"),onClick:()=>u(e)}),F.createElement(O,{as:"a",className:Vu({active:"shrink",hover:"grow"}),display:"block",href:(i=(r=e==null?void 0:e.desktop)==null?void 0:r.instructions)==null?void 0:i.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(k0,{color:"accentColor",size:"14",weight:"bold"},a.t("get_instructions.desktop.learn_more.label")))))}function BA0({onClose:u}){const e="rk_connect_title",t=Lb(),[n,r]=w.useState(),[i,a]=w.useState(),[o,s]=w.useState(),f=!!(i!=null&&i.qrCode)&&o,[l,c]=w.useState(!1),d=w.useContext(X5)===c1.COMPACT,{disclaimer:p}=w.useContext(Ef),h=w.useContext(ne),b=w.useRef(!1),{connector:g}=w.useContext(l1),m=ud().filter(L=>L.ready||!!L.extensionDownloadUrl).sort((L,n0)=>L.groupIndex-n0.groupIndex),A=Vb0(m,L=>L.groupName),y=["Recommended","Other","Popular","More","Others"];w.useEffect(()=>{g&&!b.current&&(T("CONNECT"),v(g),b.current=!0)},[g]);const B=L=>{var n0,s0,a0;if(c(!1),L.ready){(s0=(n0=L==null?void 0:L.connect)==null?void 0:n0.call(L))==null||s0.catch(()=>{c(!0)});const K=(a0=L.desktop)==null?void 0:a0.getUri;K&&setTimeout(async()=>{const v0=await K();window.open(v0,t?"_blank":"_self")},0)}},v=L=>{var n0;if(Qb0(L.id),B(L),r(L.id),L.ready){let s0=!1;(n0=L==null?void 0:L.onConnecting)==null||n0.call(L,async()=>{var a0,K;if(s0)return;s0=!0;const v0=m.find(w0=>L.id===w0.id),_0=await((a0=v0==null?void 0:v0.qrCode)==null?void 0:a0.getUri());s(_0),setTimeout(()=>{a(v0),T("CONNECT")},_0?0:50);const O0=await(v0==null?void 0:v0.connector.getProvider()),T0=(K=O0==null?void 0:O0.signer)==null?void 0:K.connection;if(T0!=null&&T0.on&&(T0!=null&&T0.off)){const w0=()=>{k(),v(L)},k=()=>{T0.off("close",w0),T0.off("open",k)};T0.on("close",w0),T0.on("open",k)}})}else a(L),T(L!=null&&L.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT")},C=L=>{var n0;r(L);const s0=m.find(_0=>L===_0.id),a0=(n0=s0==null?void 0:s0.downloadUrls)==null?void 0:n0.qrCode,K=!!(s0!=null&&s0.desktopDownloadUrl),v0=!!(s0!=null&&s0.extensionDownloadUrl);a(s0),T(a0&&(v0||K)?"DOWNLOAD_OPTIONS":a0?"DOWNLOAD":K?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},D=()=>{r(void 0),a(void 0),s(void 0)},T=(L,n0=!1)=>{n0&&L==="GET"&&_==="GET"?D():!n0&&L==="GET"?$("GET"):!n0&&L==="CONNECT"&&$("CONNECT"),e0(L)},[_,$]=w.useState("NONE"),[u0,e0]=w.useState("NONE");let o0=null,N=null,R=null,V;w.useEffect(()=>{c(!1)},[u0,i]);const H=!!(!!(i!=null&&i.extensionDownloadUrl)&&(i!=null&&i.mobileDownloadUrl));switch(u0){case"NONE":o0=F.createElement(AD,{getWallet:()=>T("GET")});break;case"LEARN_COMPACT":o0=F.createElement(AD,{compactModeEnabled:d,getWallet:()=>T("GET")}),N=h.t("intro.title"),R="NONE";break;case"GET":o0=F.createElement(CA0,{getWalletDownload:C,compactModeEnabled:d}),N=h.t("get.title"),R=d?"LEARN_COMPACT":"NONE";break;case"CONNECT":o0=i&&F.createElement(mA0,{changeWalletStep:T,compactModeEnabled:d,connectionError:l,onClose:u,qrCodeUri:o,reconnect:B,wallet:i}),N=f&&(i.name==="WalletConnect"?h.t("connect_scan.fallback_title"):h.t("connect_scan.title",{wallet:i.name})),R=d?g?null:"NONE":null,V=d?g?()=>{}:D:()=>{};break;case"DOWNLOAD_OPTIONS":o0=i&&F.createElement(gA0,{changeWalletStep:T,wallet:i}),N=i&&h.t("get_options.short_title",{wallet:i.name}),R=g?"CONNECT":H?_:null;break;case"DOWNLOAD":o0=i&&F.createElement(bA0,{changeWalletStep:T,wallet:i}),N=i&&h.t("get_mobile.title",{wallet:i.name}),R=H?"DOWNLOAD_OPTIONS":_;break;case"INSTRUCTIONS_MOBILE":o0=i&&F.createElement(AA0,{connectWallet:v,wallet:i}),N=i&&h.t("get_options.title",{wallet:d&&i.shortName||i.name}),R="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":o0=i&&F.createElement(yA0,{wallet:i}),N=i&&h.t("get_options.title",{wallet:d&&i.shortName||i.name}),R="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":o0=i&&F.createElement(vA0,{connectWallet:v,wallet:i}),N=i&&h.t("get_options.title",{wallet:d&&i.shortName||i.name}),R="DOWNLOAD_OPTIONS";break}return F.createElement(O,{display:"flex",flexDirection:"row",style:{maxHeight:d?468:504}},(d?u0==="NONE":!0)&&F.createElement(O,{className:d?EA0:cA0,display:"flex",flexDirection:"column",marginTop:"16"},F.createElement(O,{display:"flex",justifyContent:"space-between"},d&&p&&F.createElement(O,{marginLeft:"16",width:"28"},F.createElement(Yb0,{onClick:()=>T("LEARN_COMPACT")})),d&&!p&&F.createElement(O,{marginLeft:"16",width:"28"}),F.createElement(O,{marginLeft:d?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},F.createElement(k0,{as:"h1",color:"modalText",id:e,size:"18",weight:"heavy",testId:"connect-header-label"},h.t("connect.title"))),d&&F.createElement(O,{marginRight:"16"},F.createElement(Po,{onClose:u}))),F.createElement(O,{className:lA0,paddingBottom:"18"},Object.entries(A).map(([L,n0],s0)=>n0.length>0&&F.createElement(w.Fragment,{key:s0},L?F.createElement(O,{marginBottom:"8",marginTop:"16",marginX:"6"},F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"bold"},y.includes(L)?h.t(`connector_group.${L.toLowerCase()}`):L)):null,F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},n0.map(a0=>F.createElement(fR,{currentlySelected:a0.id===n,iconBackground:a0.iconBackground,iconUrl:a0.iconUrl,key:a0.id,name:a0.name,onClick:()=>v(a0),ready:a0.ready,recent:a0.recent,testId:`wallet-option-${a0.id}`})))))),d&&F.createElement(F.Fragment,null,F.createElement(O,{background:"generalBorder",height:"1",marginTop:"-1"}),p?F.createElement(O,{paddingX:"24",paddingY:"16",textAlign:"center"},F.createElement(p,{Link:qb,Text:Hb})):F.createElement(O,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},F.createElement(O,{paddingY:"4"},F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},h.t("connect.new_to_ethereum.description"))),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},F.createElement(O,{className:Vu({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>T("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},F.createElement(k0,{color:"accentColor",size:"14",weight:"bold"},h.t("connect.new_to_ethereum.learn_more.label"))))))),(d?u0!=="NONE":!0)&&F.createElement(F.Fragment,null,!d&&F.createElement(O,{background:"generalBorder",minWidth:"1",width:"1"}),F.createElement(O,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},F.createElement(O,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},F.createElement(O,{width:"28"},R&&F.createElement(O,{as:"button",className:Vu({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{R&&T(R,!0),V==null||V()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},F.createElement(oR,null))),F.createElement(O,{display:"flex",justifyContent:"center",style:{flexGrow:1}},N&&F.createElement(k0,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},N)),F.createElement(Po,{onClose:u})),F.createElement(O,{display:"flex",flexDirection:"column",style:{minHeight:d?396:432}},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},o0)))))}var FA0="_1am14412",DA0="_1am14410",wA0="_1am14413",xA0=({wallet:u})=>F.createElement("svg",{className:wA0,viewBox:"0 0 86 86",width:"86",height:"86"},F.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${160/3} ${2*160/3}`,strokeDashoffset:160,className:FA0,style:{stroke:(u==null?void 0:u.iconAccent)||"#0D3887"}}));function bR({onClose:u,wallet:e,connecting:t}){const{connect:n,connector:r,iconBackground:i,iconUrl:a,id:o,mobile:s,name:f,onConnecting:l,ready:c,shortName:E}=e,d=s==null?void 0:s.getUri,p=sR(a),h=w.useRef(!1),b=w.useContext(ne),g=w.useCallback(async()=>{var m;o==="walletConnect"&&(u==null||u()),(m=n==null?void 0:n())==null||m.catch(()=>{});let A=!1;l==null||l(async()=>{if(!A&&(A=!0,d)){const y=await d();if((r.id==="walletConnect"||r.id==="walletConnectLegacy")&&pb0({mobileUri:y,name:f}),y.startsWith("http")){const B=document.createElement("a");B.href=y,B.target="_blank",B.rel="noreferrer noopener",B.click()}else window.location.href=y}})},[r,n,d,l,u,f,o]);return w.useEffect(()=>{t&&!h.current&&(g(),h.current=!0)},[t]),F.createElement(O,{as:"button",color:c?"modalText":"modalTextSecondary",disabled:!c,fontFamily:"body",key:o,onClick:g,ref:p,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${o}`,type:"button",width:"full"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},F.createElement(O,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},t?F.createElement(xA0,{wallet:e}):null,F.createElement(ee,{background:i,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:a,width:"60"})),t?null:F.createElement(O,{display:"flex",flexDirection:"column",textAlign:"center"},F.createElement(k0,{as:"h2",color:e.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},F.createElement(O,{as:"span",position:"relative"},E??f,!e.ready&&" (unsupported)")),e.recent&&F.createElement(k0,{color:"accentColor",size:"12",weight:"medium"},b.t("connect.recent")))))}function kA0({onClose:u}){var e;const t="rk_connect_title",n=ud(),{disclaimer:r,learnMoreUrl:i}=w.useContext(Ef);let a=null,o=null,s=!1,f=null;const[l,c]=w.useState("CONNECT"),E=w.useContext(ne),d=Xo();switch(l){case"CONNECT":{a=E.t("connect.title"),s=!0,o=F.createElement(O,null,F.createElement(O,{background:"profileForeground",className:DA0,display:"flex",paddingBottom:"20",paddingTop:"6"},F.createElement(O,{display:"flex",style:{margin:"0 auto"}},n.filter(p=>p.ready).map(p=>F.createElement(O,{key:p.id,paddingX:"20"},F.createElement(O,{width:"60"},F.createElement(bR,{onClose:u,wallet:p})))))),F.createElement(O,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},F.createElement(O,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},F.createElement(k0,{color:"modalText",size:"16",weight:"bold"},E.t("intro.title")),F.createElement(k0,{color:"modalTextSecondary",size:"16"},E.t("intro.description")))),F.createElement(O,{paddingTop:"32",paddingX:"20"},F.createElement(O,{display:"flex",gap:"14",justifyContent:"center"},F.createElement(Ke,{label:E.t("intro.get.label"),onClick:()=>c("GET"),size:"large",type:"secondary"}),F.createElement(Ke,{href:i,label:E.t("intro.learn_more.label"),size:"large",type:"secondary"}))),r&&F.createElement(O,{marginTop:"28",marginX:"32",textAlign:"center"},F.createElement(r,{Link:qb,Text:Hb})));break}case"GET":{a=E.t("get.title"),f="CONNECT";const p=(e=n==null?void 0:n.filter(h=>{var b,g,m;return((b=h.downloadUrls)==null?void 0:b.ios)||((g=h.downloadUrls)==null?void 0:g.android)||((m=h.downloadUrls)==null?void 0:m.mobile)}))==null?void 0:e.splice(0,3);o=F.createElement(O,null,F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},p.map((h,b)=>{const{downloadUrls:g,iconBackground:m,iconUrl:A,name:y}=h;return!(g!=null&&g.ios)&&!(g!=null&&g.android)&&!(g!=null&&g.mobile)?null:F.createElement(O,{display:"flex",gap:"16",key:h.id,paddingX:"20",width:"full"},F.createElement(O,{style:{minHeight:48,minWidth:48}},F.createElement(ee,{background:m,borderColor:"generalBorder",borderRadius:"10",height:"48",src:A,width:"48"})),F.createElement(O,{display:"flex",flexDirection:"column",width:"full"},F.createElement(O,{alignItems:"center",display:"flex",height:"48"},F.createElement(O,{width:"full"},F.createElement(k0,{color:"modalText",size:"18",weight:"bold"},y)),F.createElement(Ke,{href:(d?g==null?void 0:g.ios:g==null?void 0:g.android)||(g==null?void 0:g.mobile),label:E.t("get.action.label"),size:"small",type:"secondary"})),bc(f),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},F.createElement(oR,null))),F.createElement(O,{marginTop:"4",textAlign:"center",width:"full"},F.createElement(k0,{as:"h1",color:"modalText",id:t,size:"20",weight:"bold"},a)),F.createElement(O,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},F.createElement(O,{style:{marginBottom:-20,marginTop:-20}},F.createElement(Po,{onClose:u}))))),F.createElement(O,{display:"flex",flexDirection:"column"},o))}var _A0=({onClose:u})=>{const{connector:e}=w.useContext(l1),t=w.useContext(ne),n=(e==null?void 0:e.name)||"";return F.createElement(O,null,F.createElement(O,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},F.createElement(O,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},F.createElement(Po,{onClose:u})),F.createElement(O,{width:"60"},F.createElement(bR,{onClose:u,wallet:e,connecting:!0})),F.createElement(O,{marginTop:"20"},F.createElement(k0,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},t.t("connect.status.connect_mobile",{wallet:n}))),F.createElement(O,{maxWidth:"full",marginTop:"8"},F.createElement(k0,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},t.t("connect.status.confirm_mobile",{wallet:n})))))};function SA0({onClose:u}){const{connector:e}=w.useContext(l1);return Ae()?e?F.createElement(_A0,{onClose:u}):F.createElement(kA0,{onClose:u}):F.createElement(BA0,{onClose:u})}function TA0({onClose:u,open:e}){const t="rk_connect_title",n=Ob(),{disconnect:r}=lb(),{isConnecting:i}=At(),a=F.useCallback(()=>{u(),r()},[u,r]),o=F.useCallback(()=>{i&&r(),u()},[u,r,i]);return n==="disconnected"?F.createElement(m9,{onClose:o,open:e,titleId:t},F.createElement(g9,{bottomSheetOnMobile:!0,padding:"0",wide:!0},F.createElement(SA0,{onClose:o}))):n==="unauthenticated"?F.createElement(m9,{onClose:a,open:e,titleId:t},F.createElement(g9,{bottomSheetOnMobile:!0,padding:"0"},F.createElement(Eb0,{onClose:a}))):null}function f8(){const[u,e]=w.useState(!1);return{closeModal:w.useCallback(()=>e(!1),[]),isModalOpen:u,openModal:w.useCallback(()=>e(!0),[])}}var E1=w.createContext({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1});function PA0({children:u}){const{closeModal:e,isModalOpen:t,openModal:n}=f8(),{closeModal:r,isModalOpen:i,openModal:a}=f8(),{closeModal:o,isModalOpen:s,openModal:f}=f8(),l=Ob(),{chain:c}=ba(),E=!(c!=null&&c.unsupported);function d({keepConnectModalOpen:h=!1}={}){h||e(),r(),o()}const p=Z5()==="unauthenticated";return At({onConnect:()=>d({keepConnectModalOpen:p}),onDisconnect:()=>d()}),F.createElement(E1.Provider,{value:w.useMemo(()=>({accountModalOpen:i,chainModalOpen:s,connectModalOpen:t,openAccountModal:E&&l==="connected"?a:void 0,openChainModal:l==="connected"?f:void 0,openConnectModal:l==="disconnected"||l==="unauthenticated"?n:void 0}),[l,E,i,s,t,a,f,n])},u,F.createElement(TA0,{onClose:e,open:t}),F.createElement($b0,{onClose:r,open:i}),F.createElement(Gb0,{onClose:o,open:s}))}function OA0(){const{accountModalOpen:u,chainModalOpen:e,connectModalOpen:t}=w.useContext(E1);return{accountModalOpen:u,chainModalOpen:e,connectModalOpen:t}}function IA0(){const{accountModalOpen:u,openAccountModal:e}=w.useContext(E1);return{accountModalOpen:u,openAccountModal:e}}function NA0(){const{chainModalOpen:u,openChainModal:e}=w.useContext(E1);return{chainModalOpen:u,openChainModal:e}}function RA0(){const{connectModalOpen:u,openConnectModal:e}=w.useContext(E1);return{connectModalOpen:u,openConnectModal:e}}var l8=()=>{};function Gb({children:u}){var e,t,n,r;const i=Ng0(),{address:a}=At(),o=LN(a),s=zN(o),{data:f}=aI({address:a}),{chain:l}=ba(),c=Ig0(),E=(e=Z5())!=null?e:void 0,d=l?c[l.id]:void 0,p=(t=d==null?void 0:d.name)!=null?t:void 0,h=(n=d==null?void 0:d.iconUrl)!=null?n:void 0,b=(r=d==null?void 0:d.iconBackground)!=null?r:void 0,g=Nb(h),m=w.useContext(zb),A=qN().some(({status:$})=>$==="pending")&&m,y=f?`${tR(parseFloat(f.formatted))} ${f.symbol}`:void 0,{openConnectModal:B}=RA0(),{openChainModal:v}=NA0(),{openAccountModal:C}=IA0(),{accountModalOpen:D,chainModalOpen:T,connectModalOpen:_}=OA0();return F.createElement(F.Fragment,null,u({account:a?{address:a,balanceDecimals:f==null?void 0:f.decimals,balanceFormatted:f==null?void 0:f.formatted,balanceSymbol:f==null?void 0:f.symbol,displayBalance:y,displayName:o?rR(o):nR(a),ensAvatar:s??void 0,ensName:o??void 0,hasPendingTransactions:A}:void 0,accountModalOpen:D,authenticationStatus:E,chain:l?{hasIcon:!!h,iconBackground:b,iconUrl:g,id:l.id,name:p??l.name,unsupported:l.unsupported}:void 0,chainModalOpen:T,connectModalOpen:_,mounted:i,openAccountModal:C??l8,openChainModal:v??l8,openConnectModal:B??l8}))}Gb.displayName="ConnectButton.Custom";var Hf={accountStatus:"full",chainStatus:{largeScreen:"full",smallScreen:"icon"},label:"Connect Wallet",showBalance:{largeScreen:!0,smallScreen:!1}};function Vb({accountStatus:u=Hf.accountStatus,chainStatus:e=Hf.chainStatus,label:t=Hf.label,showBalance:n=Hf.showBalance}){const r=f1(),i=Ob(),a=w.useContext(ne);return F.createElement(Gb,null,({account:o,chain:s,mounted:f,openAccountModal:l,openChainModal:c,openConnectModal:E})=>{var d,p,h;const b=f&&i!=="loading",g=(d=s==null?void 0:s.unsupported)!=null?d:!1;return F.createElement(O,{display:"flex",gap:"12",...!b&&{"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",userSelect:"none"}}},b&&o&&i==="connected"?F.createElement(F.Fragment,null,s&&(r.length>1||g)&&F.createElement(O,{alignItems:"center","aria-label":"Chain Selector",as:"button",background:g?"connectButtonBackgroundError":"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:Vu({active:"shrink",hover:"grow"}),color:g?"connectButtonTextError":"connectButtonText",display:ds(e,m=>m==="none"?"none":"flex"),fontFamily:"body",fontWeight:"bold",gap:"6",key:g?"unsupported":"supported",onClick:c,paddingX:"10",paddingY:"8",testId:g?"wrong-network-button":"chain-button",transition:"default",type:"button"},g?F.createElement(O,{alignItems:"center",display:"flex",height:"24",paddingX:"4"},"Wrong network"):F.createElement(O,{alignItems:"center",display:"flex",gap:"6"},s.hasIcon?F.createElement(O,{display:ds(e,m=>m==="full"||m==="icon"?"block":"none"),height:"24",width:"24"},F.createElement(ee,{alt:(p=s.name)!=null?p:"Chain icon",background:s.iconBackground,borderRadius:"full",height:"24",src:s.iconUrl,width:"24"})):null,F.createElement(O,{display:ds(e,m=>m==="icon"&&!s.iconUrl||m==="full"||m==="name"?"block":"none")},(h=s.name)!=null?h:s.id)),F.createElement(HF,null)),!g&&F.createElement(O,{alignItems:"center",as:"button",background:"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:Vu({active:"shrink",hover:"grow"}),color:"connectButtonText",display:"flex",fontFamily:"body",fontWeight:"bold",onClick:l,testId:"account-button",transition:"default",type:"button"},o.displayBalance&&F.createElement(O,{display:ds(n,m=>m?"block":"none"),padding:"8",paddingLeft:"12"},o.displayBalance),F.createElement(O,{background:tC0(n)[Ae()?"smallScreen":"largeScreen"]?"connectButtonInnerBackground":"connectButtonBackground",borderColor:"connectButtonBackground",borderRadius:"connectButton",borderStyle:"solid",borderWidth:"2",color:"connectButtonText",fontFamily:"body",fontWeight:"bold",paddingX:"8",paddingY:"6",transition:"default"},F.createElement(O,{alignItems:"center",display:"flex",gap:"6",height:"24"},F.createElement(O,{display:ds(u,m=>m==="full"||m==="avatar"?"block":"none")},F.createElement(MN,{address:o.address,imageUrl:o.ensAvatar,loading:o.hasPendingTransactions,size:24})),F.createElement(O,{alignItems:"center",display:"flex",gap:"6"},F.createElement(O,{display:ds(u,m=>m==="full"||m==="address"?"block":"none")},o.displayName),F.createElement(HF,null)))))):F.createElement(O,{as:"button",background:"accentColor",borderRadius:"connectButton",boxShadow:"connectButton",className:Vu({active:"shrink",hover:"grow"}),color:"accentColorForeground",fontFamily:"body",fontWeight:"bold",height:"40",key:"connect",onClick:E,paddingX:"14",testId:"connect-button",transition:"default",type:"button"},f&&t==="Connect Wallet"?a.t("connect_wallet.label"):t))})}Vb.__defaultProps=Hf;Vb.Custom=Gb;var Kb={},ed={},$0={},AR={};(function(u){Object.defineProperty(u,"__esModule",{value:!0});function e(o,s){var f=o>>>16&65535,l=o&65535,c=s>>>16&65535,E=s&65535;return l*E+(f*E+l*c<<16>>>0)|0}u.mul=Math.imul||e;function t(o,s){return o+s|0}u.add=t;function n(o,s){return o-s|0}u.sub=n;function r(o,s){return o<>>32-s}u.rotl=r;function i(o,s){return o<<32-s|o>>>s}u.rotr=i;function a(o){return typeof o=="number"&&isFinite(o)&&Math.floor(o)===o}u.isInteger=Number.isInteger||a,u.MAX_SAFE_INTEGER=9007199254740991,u.isSafeInteger=function(o){return u.isInteger(o)&&o>=-u.MAX_SAFE_INTEGER&&o<=u.MAX_SAFE_INTEGER}})(AR);Object.defineProperty($0,"__esModule",{value:!0});var yR=AR;function MA0(u,e){return e===void 0&&(e=0),(u[e+0]<<8|u[e+1])<<16>>16}$0.readInt16BE=MA0;function jA0(u,e){return e===void 0&&(e=0),(u[e+0]<<8|u[e+1])>>>0}$0.readUint16BE=jA0;function zA0(u,e){return e===void 0&&(e=0),(u[e+1]<<8|u[e])<<16>>16}$0.readInt16LE=zA0;function LA0(u,e){return e===void 0&&(e=0),(u[e+1]<<8|u[e])>>>0}$0.readUint16LE=LA0;function vR(u,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=u>>>8,e[t+1]=u>>>0,e}$0.writeUint16BE=vR;$0.writeInt16BE=vR;function BR(u,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=u>>>0,e[t+1]=u>>>8,e}$0.writeUint16LE=BR;$0.writeInt16LE=BR;function TC(u,e){return e===void 0&&(e=0),u[e]<<24|u[e+1]<<16|u[e+2]<<8|u[e+3]}$0.readInt32BE=TC;function PC(u,e){return e===void 0&&(e=0),(u[e]<<24|u[e+1]<<16|u[e+2]<<8|u[e+3])>>>0}$0.readUint32BE=PC;function OC(u,e){return e===void 0&&(e=0),u[e+3]<<24|u[e+2]<<16|u[e+1]<<8|u[e]}$0.readInt32LE=OC;function IC(u,e){return e===void 0&&(e=0),(u[e+3]<<24|u[e+2]<<16|u[e+1]<<8|u[e])>>>0}$0.readUint32LE=IC;function b9(u,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=u>>>24,e[t+1]=u>>>16,e[t+2]=u>>>8,e[t+3]=u>>>0,e}$0.writeUint32BE=b9;$0.writeInt32BE=b9;function A9(u,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=u>>>0,e[t+1]=u>>>8,e[t+2]=u>>>16,e[t+3]=u>>>24,e}$0.writeUint32LE=A9;$0.writeInt32LE=A9;function $A0(u,e){e===void 0&&(e=0);var t=TC(u,e),n=TC(u,e+4);return t*4294967296+n-(n>>31)*4294967296}$0.readInt64BE=$A0;function UA0(u,e){e===void 0&&(e=0);var t=PC(u,e),n=PC(u,e+4);return t*4294967296+n}$0.readUint64BE=UA0;function WA0(u,e){e===void 0&&(e=0);var t=OC(u,e),n=OC(u,e+4);return n*4294967296+t-(t>>31)*4294967296}$0.readInt64LE=WA0;function qA0(u,e){e===void 0&&(e=0);var t=IC(u,e),n=IC(u,e+4);return n*4294967296+t}$0.readUint64LE=qA0;function FR(u,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),b9(u/4294967296>>>0,e,t),b9(u>>>0,e,t+4),e}$0.writeUint64BE=FR;$0.writeInt64BE=FR;function DR(u,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),A9(u>>>0,e,t),A9(u/4294967296>>>0,e,t+4),e}$0.writeUint64LE=DR;$0.writeInt64LE=DR;function HA0(u,e,t){if(t===void 0&&(t=0),u%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(u/8>e.length-t)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,r=1,i=u/8+t-1;i>=t;i--)n+=e[i]*r,r*=256;return n}$0.readUintBE=HA0;function GA0(u,e,t){if(t===void 0&&(t=0),u%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(u/8>e.length-t)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,r=1,i=t;i=n;i--)t[i]=e/r&255,r*=256;return t}$0.writeUintBE=VA0;function KA0(u,e,t,n){if(t===void 0&&(t=new Uint8Array(u/8)),n===void 0&&(n=0),u%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!yR.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var r=1,i=n;i>>16|N<<16,$=$+N|0,C^=$,C=C>>>20|C<<12,y=y+D|0,R^=y,R=R>>>16|R<<16,u0=u0+R|0,D^=u0,D=D>>>20|D<<12,B=B+T|0,V^=B,V=V>>>16|V<<16,e0=e0+V|0,T^=e0,T=T>>>20|T<<12,v=v+_|0,G^=v,G=G>>>16|G<<16,o0=o0+G|0,_^=o0,_=_>>>20|_<<12,B=B+T|0,V^=B,V=V>>>24|V<<8,e0=e0+V|0,T^=e0,T=T>>>25|T<<7,v=v+_|0,G^=v,G=G>>>24|G<<8,o0=o0+G|0,_^=o0,_=_>>>25|_<<7,y=y+D|0,R^=y,R=R>>>24|R<<8,u0=u0+R|0,D^=u0,D=D>>>25|D<<7,A=A+C|0,N^=A,N=N>>>24|N<<8,$=$+N|0,C^=$,C=C>>>25|C<<7,A=A+D|0,G^=A,G=G>>>16|G<<16,e0=e0+G|0,D^=e0,D=D>>>20|D<<12,y=y+T|0,N^=y,N=N>>>16|N<<16,o0=o0+N|0,T^=o0,T=T>>>20|T<<12,B=B+_|0,R^=B,R=R>>>16|R<<16,$=$+R|0,_^=$,_=_>>>20|_<<12,v=v+C|0,V^=v,V=V>>>16|V<<16,u0=u0+V|0,C^=u0,C=C>>>20|C<<12,B=B+_|0,R^=B,R=R>>>24|R<<8,$=$+R|0,_^=$,_=_>>>25|_<<7,v=v+C|0,V^=v,V=V>>>24|V<<8,u0=u0+V|0,C^=u0,C=C>>>25|C<<7,y=y+T|0,N^=y,N=N>>>24|N<<8,o0=o0+N|0,T^=o0,T=T>>>25|T<<7,A=A+D|0,G^=A,G=G>>>24|G<<8,e0=e0+G|0,D^=e0,D=D>>>25|D<<7;Fe.writeUint32LE(A+n|0,u,0),Fe.writeUint32LE(y+r|0,u,4),Fe.writeUint32LE(B+i|0,u,8),Fe.writeUint32LE(v+a|0,u,12),Fe.writeUint32LE(C+o|0,u,16),Fe.writeUint32LE(D+s|0,u,20),Fe.writeUint32LE(T+f|0,u,24),Fe.writeUint32LE(_+l|0,u,28),Fe.writeUint32LE($+c|0,u,32),Fe.writeUint32LE(u0+E|0,u,36),Fe.writeUint32LE(e0+d|0,u,40),Fe.writeUint32LE(o0+p|0,u,44),Fe.writeUint32LE(N+h|0,u,48),Fe.writeUint32LE(R+b|0,u,52),Fe.writeUint32LE(V+g|0,u,56),Fe.writeUint32LE(G+m|0,u,60)}function wR(u,e,t,n,r){if(r===void 0&&(r=0),u.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}var xR={},va={};Object.defineProperty(va,"__esModule",{value:!0});function sy0(u,e,t){return~(u-1)&e|u-1&t}va.select=sy0;function fy0(u,e){return(u|0)-(e|0)-1>>>31&1}va.lessOrEqual=fy0;function kR(u,e){if(u.length!==e.length)return 0;for(var t=0,n=0;n>>8}va.compare=kR;function ly0(u,e){return u.length===0||e.length===0?!1:kR(u,e)!==0}va.equal=ly0;(function(u){Object.defineProperty(u,"__esModule",{value:!0});var e=va,t=Un;u.DIGEST_LENGTH=16;var n=function(){function a(o){this.digestLength=u.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var s=o[0]|o[1]<<8;this._r[0]=s&8191;var f=o[2]|o[3]<<8;this._r[1]=(s>>>13|f<<3)&8191;var l=o[4]|o[5]<<8;this._r[2]=(f>>>10|l<<6)&7939;var c=o[6]|o[7]<<8;this._r[3]=(l>>>7|c<<9)&8191;var E=o[8]|o[9]<<8;this._r[4]=(c>>>4|E<<12)&255,this._r[5]=E>>>1&8190;var d=o[10]|o[11]<<8;this._r[6]=(E>>>14|d<<2)&8191;var p=o[12]|o[13]<<8;this._r[7]=(d>>>11|p<<5)&8065;var h=o[14]|o[15]<<8;this._r[8]=(p>>>8|h<<8)&8191,this._r[9]=h>>>5&127,this._pad[0]=o[16]|o[17]<<8,this._pad[1]=o[18]|o[19]<<8,this._pad[2]=o[20]|o[21]<<8,this._pad[3]=o[22]|o[23]<<8,this._pad[4]=o[24]|o[25]<<8,this._pad[5]=o[26]|o[27]<<8,this._pad[6]=o[28]|o[29]<<8,this._pad[7]=o[30]|o[31]<<8}return a.prototype._blocks=function(o,s,f){for(var l=this._fin?0:2048,c=this._h[0],E=this._h[1],d=this._h[2],p=this._h[3],h=this._h[4],b=this._h[5],g=this._h[6],m=this._h[7],A=this._h[8],y=this._h[9],B=this._r[0],v=this._r[1],C=this._r[2],D=this._r[3],T=this._r[4],_=this._r[5],$=this._r[6],u0=this._r[7],e0=this._r[8],o0=this._r[9];f>=16;){var N=o[s+0]|o[s+1]<<8;c+=N&8191;var R=o[s+2]|o[s+3]<<8;E+=(N>>>13|R<<3)&8191;var V=o[s+4]|o[s+5]<<8;d+=(R>>>10|V<<6)&8191;var G=o[s+6]|o[s+7]<<8;p+=(V>>>7|G<<9)&8191;var H=o[s+8]|o[s+9]<<8;h+=(G>>>4|H<<12)&8191,b+=H>>>1&8191;var L=o[s+10]|o[s+11]<<8;g+=(H>>>14|L<<2)&8191;var n0=o[s+12]|o[s+13]<<8;m+=(L>>>11|n0<<5)&8191;var s0=o[s+14]|o[s+15]<<8;A+=(n0>>>8|s0<<8)&8191,y+=s0>>>5|l;var a0=0,K=a0;K+=c*B,K+=E*(5*o0),K+=d*(5*e0),K+=p*(5*u0),K+=h*(5*$),a0=K>>>13,K&=8191,K+=b*(5*_),K+=g*(5*T),K+=m*(5*D),K+=A*(5*C),K+=y*(5*v),a0+=K>>>13,K&=8191;var v0=a0;v0+=c*v,v0+=E*B,v0+=d*(5*o0),v0+=p*(5*e0),v0+=h*(5*u0),a0=v0>>>13,v0&=8191,v0+=b*(5*$),v0+=g*(5*_),v0+=m*(5*T),v0+=A*(5*D),v0+=y*(5*C),a0+=v0>>>13,v0&=8191;var _0=a0;_0+=c*C,_0+=E*v,_0+=d*B,_0+=p*(5*o0),_0+=h*(5*e0),a0=_0>>>13,_0&=8191,_0+=b*(5*u0),_0+=g*(5*$),_0+=m*(5*_),_0+=A*(5*T),_0+=y*(5*D),a0+=_0>>>13,_0&=8191;var O0=a0;O0+=c*D,O0+=E*C,O0+=d*v,O0+=p*B,O0+=h*(5*o0),a0=O0>>>13,O0&=8191,O0+=b*(5*e0),O0+=g*(5*u0),O0+=m*(5*$),O0+=A*(5*_),O0+=y*(5*T),a0+=O0>>>13,O0&=8191;var T0=a0;T0+=c*T,T0+=E*D,T0+=d*C,T0+=p*v,T0+=h*B,a0=T0>>>13,T0&=8191,T0+=b*(5*o0),T0+=g*(5*e0),T0+=m*(5*u0),T0+=A*(5*$),T0+=y*(5*_),a0+=T0>>>13,T0&=8191;var w0=a0;w0+=c*_,w0+=E*T,w0+=d*D,w0+=p*C,w0+=h*v,a0=w0>>>13,w0&=8191,w0+=b*B,w0+=g*(5*o0),w0+=m*(5*e0),w0+=A*(5*u0),w0+=y*(5*$),a0+=w0>>>13,w0&=8191;var k=a0;k+=c*$,k+=E*_,k+=d*T,k+=p*D,k+=h*C,a0=k>>>13,k&=8191,k+=b*v,k+=g*B,k+=m*(5*o0),k+=A*(5*e0),k+=y*(5*u0),a0+=k>>>13,k&=8191;var S=a0;S+=c*u0,S+=E*$,S+=d*_,S+=p*T,S+=h*D,a0=S>>>13,S&=8191,S+=b*C,S+=g*v,S+=m*B,S+=A*(5*o0),S+=y*(5*e0),a0+=S>>>13,S&=8191;var P=a0;P+=c*e0,P+=E*u0,P+=d*$,P+=p*_,P+=h*T,a0=P>>>13,P&=8191,P+=b*D,P+=g*C,P+=m*v,P+=A*B,P+=y*(5*o0),a0+=P>>>13,P&=8191;var z=a0;z+=c*o0,z+=E*e0,z+=d*u0,z+=p*$,z+=h*_,a0=z>>>13,z&=8191,z+=b*T,z+=g*D,z+=m*C,z+=A*v,z+=y*B,a0+=z>>>13,z&=8191,a0=(a0<<2)+a0|0,a0=a0+K|0,K=a0&8191,a0=a0>>>13,v0+=a0,c=K,E=v0,d=_0,p=O0,h=T0,b=w0,g=k,m=S,A=P,y=z,s+=16,f-=16}this._h[0]=c,this._h[1]=E,this._h[2]=d,this._h[3]=p,this._h[4]=h,this._h[5]=b,this._h[6]=g,this._h[7]=m,this._h[8]=A,this._h[9]=y},a.prototype.finish=function(o,s){s===void 0&&(s=0);var f=new Uint16Array(10),l,c,E,d;if(this._leftover){for(d=this._leftover,this._buffer[d++]=1;d<16;d++)this._buffer[d]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(l=this._h[1]>>>13,this._h[1]&=8191,d=2;d<10;d++)this._h[d]+=l,l=this._h[d]>>>13,this._h[d]&=8191;for(this._h[0]+=l*5,l=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=l,l=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=l,f[0]=this._h[0]+5,l=f[0]>>>13,f[0]&=8191,d=1;d<10;d++)f[d]=this._h[d]+l,l=f[d]>>>13,f[d]&=8191;for(f[9]-=8192,c=(l^1)-1,d=0;d<10;d++)f[d]&=c;for(c=~c,d=0;d<10;d++)this._h[d]=this._h[d]&c|f[d];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,E=this._h[0]+this._pad[0],this._h[0]=E&65535,d=1;d<8;d++)E=(this._h[d]+this._pad[d]|0)+(E>>>16)|0,this._h[d]=E&65535;return o[s+0]=this._h[0]>>>0,o[s+1]=this._h[0]>>>8,o[s+2]=this._h[1]>>>0,o[s+3]=this._h[1]>>>8,o[s+4]=this._h[2]>>>0,o[s+5]=this._h[2]>>>8,o[s+6]=this._h[3]>>>0,o[s+7]=this._h[3]>>>8,o[s+8]=this._h[4]>>>0,o[s+9]=this._h[4]>>>8,o[s+10]=this._h[5]>>>0,o[s+11]=this._h[5]>>>8,o[s+12]=this._h[6]>>>0,o[s+13]=this._h[6]>>>8,o[s+14]=this._h[7]>>>0,o[s+15]=this._h[7]>>>8,this._finished=!0,this},a.prototype.update=function(o){var s=0,f=o.length,l;if(this._leftover){l=16-this._leftover,l>f&&(l=f);for(var c=0;c=16&&(l=f-f%16,this._blocks(o,s,l),s+=l,f-=l),f){for(var c=0;c16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var d=new Uint8Array(16);d.set(f,d.length-f.length);var p=new Uint8Array(32);e.stream(this._key,d,p,4);var h=l.length+this.tagLength,b;if(E){if(E.length!==h)throw new Error("ChaCha20Poly1305: incorrect destination length");b=E}else b=new Uint8Array(h);return e.streamXOR(this._key,d,l,b,4),this._authenticate(b.subarray(b.length-this.tagLength,b.length),p,b.subarray(0,b.length-this.tagLength),c),n.wipe(d),b},s.prototype.open=function(f,l,c,E){if(f.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(l.length0&&d.update(a.subarray(E.length%16))),d.update(c),c.length%16>0&&d.update(a.subarray(c.length%16));var p=new Uint8Array(8);E&&r.writeUint64LE(E.length,p),d.update(p),r.writeUint64LE(c.length,p),d.update(p);for(var h=d.digest(),b=0;bthis.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var r=0;r1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},u.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n256)throw new Error("randomString charset is too long");let E="";const d=l.length,p=256-256%d;for(;f>0;){const h=r(Math.ceil(f*256/p),c);for(let b=0;b0;b++){const g=h[b];g0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=s[l++],f--;this._bufferLength===this.blockSize&&(i(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(f>=this.blockSize&&(l=i(this._temp,this._state,s,l,f),f%=this.blockSize);f>0;)this._buffer[this._bufferLength++]=s[l++],f--;return this},o.prototype.finish=function(s){if(!this._finished){var f=this._bytesHashed,l=this._bufferLength,c=f/536870912|0,E=f<<3,d=f%64<56?64:128;this._buffer[l]=128;for(var p=l+1;p0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},o.prototype.restoreState=function(s){return this._state.set(s.state),this._bufferLength=s.bufferLength,s.buffer&&this._buffer.set(s.buffer),this._bytesHashed=s.bytesHashed,this._finished=!1,this},o.prototype.cleanSavedState=function(s){t.wipe(s.state),s.buffer&&t.wipe(s.buffer),s.bufferLength=0,s.bytesHashed=0},o}();u.SHA256=n;var r=new Int32Array([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]);function i(o,s,f,l,c){for(;c>=64;){for(var E=s[0],d=s[1],p=s[2],h=s[3],b=s[4],g=s[5],m=s[6],A=s[7],y=0;y<16;y++){var B=l+y*4;o[y]=e.readUint32BE(f,B)}for(var y=16;y<64;y++){var v=o[y-2],C=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10;v=o[y-15];var D=(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3;o[y]=(C+o[y-7]|0)+(D+o[y-16]|0)}for(var y=0;y<64;y++){var C=(((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&g^~b&m)|0)+(A+(r[y]+o[y]|0)|0)|0,D=((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+(E&d^E&p^d&p)|0;A=m,m=g,g=b,b=h+C|0,h=p,p=d,d=E,E=C+D|0}s[0]+=E,s[1]+=d,s[2]+=p,s[3]+=h,s[4]+=b,s[5]+=g,s[6]+=m,s[7]+=A,l+=64,c-=64}return l}function a(o){var s=new n;s.update(o);var f=s.digest();return s.clean(),f}u.hash=a})(ad);var Jb={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.sharedKey=u.generateKeyPair=u.generateKeyPairFromSeed=u.scalarMultBase=u.scalarMult=u.SHARED_KEY_LENGTH=u.SECRET_KEY_LENGTH=u.PUBLIC_KEY_LENGTH=void 0;const e=td,t=Un;u.PUBLIC_KEY_LENGTH=32,u.SECRET_KEY_LENGTH=32,u.SHARED_KEY_LENGTH=32;function n(y){const B=new Float64Array(16);if(y)for(let v=0;v>16&1),v[_-1]&=65535;v[15]=C[15]-32767-(v[14]>>16&1);const T=v[15]>>16&1;v[14]&=65535,o(C,v,1-T)}for(let D=0;D<16;D++)y[2*D]=C[D]&255,y[2*D+1]=C[D]>>8}function f(y,B){for(let v=0;v<16;v++)y[v]=B[2*v]+(B[2*v+1]<<8);y[15]&=32767}function l(y,B,v){for(let C=0;C<16;C++)y[C]=B[C]+v[C]}function c(y,B,v){for(let C=0;C<16;C++)y[C]=B[C]-v[C]}function E(y,B,v){let C,D,T=0,_=0,$=0,u0=0,e0=0,o0=0,N=0,R=0,V=0,G=0,H=0,L=0,n0=0,s0=0,a0=0,K=0,v0=0,_0=0,O0=0,T0=0,w0=0,k=0,S=0,P=0,z=0,M=0,q=0,J=0,j=0,U=0,Y=0,W=v[0],t0=v[1],p0=v[2],m0=v[3],P0=v[4],C0=v[5],B0=v[6],E0=v[7],b0=v[8],h0=v[9],G0=v[10],M0=v[11],y0=v[12],U0=v[13],Eu=v[14],Z0=v[15];C=B[0],T+=C*W,_+=C*t0,$+=C*p0,u0+=C*m0,e0+=C*P0,o0+=C*C0,N+=C*B0,R+=C*E0,V+=C*b0,G+=C*h0,H+=C*G0,L+=C*M0,n0+=C*y0,s0+=C*U0,a0+=C*Eu,K+=C*Z0,C=B[1],_+=C*W,$+=C*t0,u0+=C*p0,e0+=C*m0,o0+=C*P0,N+=C*C0,R+=C*B0,V+=C*E0,G+=C*b0,H+=C*h0,L+=C*G0,n0+=C*M0,s0+=C*y0,a0+=C*U0,K+=C*Eu,v0+=C*Z0,C=B[2],$+=C*W,u0+=C*t0,e0+=C*p0,o0+=C*m0,N+=C*P0,R+=C*C0,V+=C*B0,G+=C*E0,H+=C*b0,L+=C*h0,n0+=C*G0,s0+=C*M0,a0+=C*y0,K+=C*U0,v0+=C*Eu,_0+=C*Z0,C=B[3],u0+=C*W,e0+=C*t0,o0+=C*p0,N+=C*m0,R+=C*P0,V+=C*C0,G+=C*B0,H+=C*E0,L+=C*b0,n0+=C*h0,s0+=C*G0,a0+=C*M0,K+=C*y0,v0+=C*U0,_0+=C*Eu,O0+=C*Z0,C=B[4],e0+=C*W,o0+=C*t0,N+=C*p0,R+=C*m0,V+=C*P0,G+=C*C0,H+=C*B0,L+=C*E0,n0+=C*b0,s0+=C*h0,a0+=C*G0,K+=C*M0,v0+=C*y0,_0+=C*U0,O0+=C*Eu,T0+=C*Z0,C=B[5],o0+=C*W,N+=C*t0,R+=C*p0,V+=C*m0,G+=C*P0,H+=C*C0,L+=C*B0,n0+=C*E0,s0+=C*b0,a0+=C*h0,K+=C*G0,v0+=C*M0,_0+=C*y0,O0+=C*U0,T0+=C*Eu,w0+=C*Z0,C=B[6],N+=C*W,R+=C*t0,V+=C*p0,G+=C*m0,H+=C*P0,L+=C*C0,n0+=C*B0,s0+=C*E0,a0+=C*b0,K+=C*h0,v0+=C*G0,_0+=C*M0,O0+=C*y0,T0+=C*U0,w0+=C*Eu,k+=C*Z0,C=B[7],R+=C*W,V+=C*t0,G+=C*p0,H+=C*m0,L+=C*P0,n0+=C*C0,s0+=C*B0,a0+=C*E0,K+=C*b0,v0+=C*h0,_0+=C*G0,O0+=C*M0,T0+=C*y0,w0+=C*U0,k+=C*Eu,S+=C*Z0,C=B[8],V+=C*W,G+=C*t0,H+=C*p0,L+=C*m0,n0+=C*P0,s0+=C*C0,a0+=C*B0,K+=C*E0,v0+=C*b0,_0+=C*h0,O0+=C*G0,T0+=C*M0,w0+=C*y0,k+=C*U0,S+=C*Eu,P+=C*Z0,C=B[9],G+=C*W,H+=C*t0,L+=C*p0,n0+=C*m0,s0+=C*P0,a0+=C*C0,K+=C*B0,v0+=C*E0,_0+=C*b0,O0+=C*h0,T0+=C*G0,w0+=C*M0,k+=C*y0,S+=C*U0,P+=C*Eu,z+=C*Z0,C=B[10],H+=C*W,L+=C*t0,n0+=C*p0,s0+=C*m0,a0+=C*P0,K+=C*C0,v0+=C*B0,_0+=C*E0,O0+=C*b0,T0+=C*h0,w0+=C*G0,k+=C*M0,S+=C*y0,P+=C*U0,z+=C*Eu,M+=C*Z0,C=B[11],L+=C*W,n0+=C*t0,s0+=C*p0,a0+=C*m0,K+=C*P0,v0+=C*C0,_0+=C*B0,O0+=C*E0,T0+=C*b0,w0+=C*h0,k+=C*G0,S+=C*M0,P+=C*y0,z+=C*U0,M+=C*Eu,q+=C*Z0,C=B[12],n0+=C*W,s0+=C*t0,a0+=C*p0,K+=C*m0,v0+=C*P0,_0+=C*C0,O0+=C*B0,T0+=C*E0,w0+=C*b0,k+=C*h0,S+=C*G0,P+=C*M0,z+=C*y0,M+=C*U0,q+=C*Eu,J+=C*Z0,C=B[13],s0+=C*W,a0+=C*t0,K+=C*p0,v0+=C*m0,_0+=C*P0,O0+=C*C0,T0+=C*B0,w0+=C*E0,k+=C*b0,S+=C*h0,P+=C*G0,z+=C*M0,M+=C*y0,q+=C*U0,J+=C*Eu,j+=C*Z0,C=B[14],a0+=C*W,K+=C*t0,v0+=C*p0,_0+=C*m0,O0+=C*P0,T0+=C*C0,w0+=C*B0,k+=C*E0,S+=C*b0,P+=C*h0,z+=C*G0,M+=C*M0,q+=C*y0,J+=C*U0,j+=C*Eu,U+=C*Z0,C=B[15],K+=C*W,v0+=C*t0,_0+=C*p0,O0+=C*m0,T0+=C*P0,w0+=C*C0,k+=C*B0,S+=C*E0,P+=C*b0,z+=C*h0,M+=C*G0,q+=C*M0,J+=C*y0,j+=C*U0,U+=C*Eu,Y+=C*Z0,T+=38*v0,_+=38*_0,$+=38*O0,u0+=38*T0,e0+=38*w0,o0+=38*k,N+=38*S,R+=38*P,V+=38*z,G+=38*M,H+=38*q,L+=38*J,n0+=38*j,s0+=38*U,a0+=38*Y,D=1,C=T+D+65535,D=Math.floor(C/65536),T=C-D*65536,C=_+D+65535,D=Math.floor(C/65536),_=C-D*65536,C=$+D+65535,D=Math.floor(C/65536),$=C-D*65536,C=u0+D+65535,D=Math.floor(C/65536),u0=C-D*65536,C=e0+D+65535,D=Math.floor(C/65536),e0=C-D*65536,C=o0+D+65535,D=Math.floor(C/65536),o0=C-D*65536,C=N+D+65535,D=Math.floor(C/65536),N=C-D*65536,C=R+D+65535,D=Math.floor(C/65536),R=C-D*65536,C=V+D+65535,D=Math.floor(C/65536),V=C-D*65536,C=G+D+65535,D=Math.floor(C/65536),G=C-D*65536,C=H+D+65535,D=Math.floor(C/65536),H=C-D*65536,C=L+D+65535,D=Math.floor(C/65536),L=C-D*65536,C=n0+D+65535,D=Math.floor(C/65536),n0=C-D*65536,C=s0+D+65535,D=Math.floor(C/65536),s0=C-D*65536,C=a0+D+65535,D=Math.floor(C/65536),a0=C-D*65536,C=K+D+65535,D=Math.floor(C/65536),K=C-D*65536,T+=D-1+37*(D-1),D=1,C=T+D+65535,D=Math.floor(C/65536),T=C-D*65536,C=_+D+65535,D=Math.floor(C/65536),_=C-D*65536,C=$+D+65535,D=Math.floor(C/65536),$=C-D*65536,C=u0+D+65535,D=Math.floor(C/65536),u0=C-D*65536,C=e0+D+65535,D=Math.floor(C/65536),e0=C-D*65536,C=o0+D+65535,D=Math.floor(C/65536),o0=C-D*65536,C=N+D+65535,D=Math.floor(C/65536),N=C-D*65536,C=R+D+65535,D=Math.floor(C/65536),R=C-D*65536,C=V+D+65535,D=Math.floor(C/65536),V=C-D*65536,C=G+D+65535,D=Math.floor(C/65536),G=C-D*65536,C=H+D+65535,D=Math.floor(C/65536),H=C-D*65536,C=L+D+65535,D=Math.floor(C/65536),L=C-D*65536,C=n0+D+65535,D=Math.floor(C/65536),n0=C-D*65536,C=s0+D+65535,D=Math.floor(C/65536),s0=C-D*65536,C=a0+D+65535,D=Math.floor(C/65536),a0=C-D*65536,C=K+D+65535,D=Math.floor(C/65536),K=C-D*65536,T+=D-1+37*(D-1),y[0]=T,y[1]=_,y[2]=$,y[3]=u0,y[4]=e0,y[5]=o0,y[6]=N,y[7]=R,y[8]=V,y[9]=G,y[10]=H,y[11]=L,y[12]=n0,y[13]=s0,y[14]=a0,y[15]=K}function d(y,B){E(y,B,B)}function p(y,B){const v=n();for(let C=0;C<16;C++)v[C]=B[C];for(let C=253;C>=0;C--)d(v,v),C!==2&&C!==4&&E(v,v,B);for(let C=0;C<16;C++)y[C]=v[C]}function h(y,B){const v=new Uint8Array(32),C=new Float64Array(80),D=n(),T=n(),_=n(),$=n(),u0=n(),e0=n();for(let V=0;V<31;V++)v[V]=y[V];v[31]=y[31]&127|64,v[0]&=248,f(C,B);for(let V=0;V<16;V++)T[V]=C[V];D[0]=$[0]=1;for(let V=254;V>=0;--V){const G=v[V>>>3]>>>(V&7)&1;o(D,T,G),o(_,$,G),l(u0,D,_),c(D,D,_),l(_,T,$),c(T,T,$),d($,u0),d(e0,D),E(D,_,D),E(_,T,u0),l(u0,D,_),c(D,D,_),d(T,D),c(_,$,e0),E(D,_,i),l(D,D,$),E(_,_,D),E(D,$,e0),E($,T,C),d(T,u0),o(D,T,G),o(_,$,G)}for(let V=0;V<16;V++)C[V+16]=D[V],C[V+32]=_[V],C[V+48]=T[V],C[V+64]=$[V];const o0=C.subarray(32),N=C.subarray(16);p(o0,o0),E(N,N,o0);const R=new Uint8Array(32);return s(R,N),R}u.scalarMult=h;function b(y){return h(y,r)}u.scalarMultBase=b;function g(y){if(y.length!==u.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${u.SECRET_KEY_LENGTH} bytes`);const B=new Uint8Array(y);return{publicKey:b(B),secretKey:B}}u.generateKeyPairFromSeed=g;function m(y){const B=(0,e.randomBytes)(32,y),v=g(B);return(0,t.wipe)(B),v}u.generateKeyPair=m;function A(y,B,v=!1){if(y.length!==u.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(B.length!==u.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const C=h(y,B);if(v){let D=0;for(let T=0;Tr+i.length,0));const t=TR(e);let n=0;for(const r of u)t.set(r,n),n+=r.length;return Yb(t)}function xy0(u,e){if(u.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,y=new Uint8Array(A);g!==m;){for(var B=p[g],v=0,C=A-1;(B!==0||v>>0,y[C]=B%o>>>0,B=B/o>>>0;if(B!==0)throw new Error("Non-zero carry");b=v,g++}for(var D=A-b;D!==A&&y[D]===0;)D++;for(var T=s.repeat(h);D>>0,A=new Uint8Array(m);p[h];){var y=t[p.charCodeAt(h)];if(y===255)return;for(var B=0,v=m-1;(y!==0||B>>0,A[v]=y%256>>>0,y=y/256>>>0;if(y!==0)throw new Error("Non-zero carry");g=B,h++}if(p[h]!==" "){for(var C=m-g;C!==m&&A[C]===0;)C++;for(var D=new Uint8Array(b+(m-C)),T=b;C!==m;)D[T++]=A[C++];return D}}}function d(p){var h=E(p);if(h)return h;throw new Error(`Non-${e} character`)}return{encode:c,decodeUnsafe:E,decode:d}}var ky0=xy0,_y0=ky0;const Sy0=u=>{if(u instanceof Uint8Array&&u.constructor.name==="Uint8Array")return u;if(u instanceof ArrayBuffer)return new Uint8Array(u);if(ArrayBuffer.isView(u))return new Uint8Array(u.buffer,u.byteOffset,u.byteLength);throw new Error("Unknown type, must be binary type")},Ty0=u=>new TextEncoder().encode(u),Py0=u=>new TextDecoder().decode(u);class Oy0{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class Iy0{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return PR(this,e)}}class Ny0{constructor(e){this.decoders=e}or(e){return PR(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const PR=(u,e)=>new Ny0({...u.decoders||{[u.prefix]:u},...e.decoders||{[e.prefix]:e}});class Ry0{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new Oy0(e,t,n),this.decoder=new Iy0(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const od=({name:u,prefix:e,encode:t,decode:n})=>new Ry0(u,e,t,n),p1=({prefix:u,name:e,alphabet:t})=>{const{encode:n,decode:r}=_y0(t,e);return od({prefix:u,name:e,encode:n,decode:i=>Sy0(r(i))})},My0=(u,e,t,n)=>{const r={};for(let l=0;l=8&&(o-=8,a[f++]=255&s>>o)}if(o>=t||255&s<<8-o)throw new SyntaxError("Unexpected end of data");return a},jy0=(u,e,t)=>{const n=e[e.length-1]==="=",r=(1<t;)a-=t,i+=e[r&o>>a];if(a&&(i+=e[r&o<od({prefix:e,name:u,encode(r){return jy0(r,n,t)},decode(r){return My0(r,n,t,u)}}),zy0=od({prefix:"\0",name:"identity",encode:u=>Py0(u),decode:u=>Ty0(u)}),Ly0=Object.freeze(Object.defineProperty({__proto__:null,identity:zy0},Symbol.toStringTag,{value:"Module"})),$y0=ye({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),Uy0=Object.freeze(Object.defineProperty({__proto__:null,base2:$y0},Symbol.toStringTag,{value:"Module"})),Wy0=ye({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),qy0=Object.freeze(Object.defineProperty({__proto__:null,base8:Wy0},Symbol.toStringTag,{value:"Module"})),Hy0=p1({prefix:"9",name:"base10",alphabet:"0123456789"}),Gy0=Object.freeze(Object.defineProperty({__proto__:null,base10:Hy0},Symbol.toStringTag,{value:"Module"})),Vy0=ye({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Ky0=ye({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),Qy0=Object.freeze(Object.defineProperty({__proto__:null,base16:Vy0,base16upper:Ky0},Symbol.toStringTag,{value:"Module"})),Jy0=ye({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Yy0=ye({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Zy0=ye({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Xy0=ye({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),uv0=ye({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),ev0=ye({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),tv0=ye({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),nv0=ye({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),rv0=ye({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),iv0=Object.freeze(Object.defineProperty({__proto__:null,base32:Jy0,base32hex:uv0,base32hexpad:tv0,base32hexpadupper:nv0,base32hexupper:ev0,base32pad:Zy0,base32padupper:Xy0,base32upper:Yy0,base32z:rv0},Symbol.toStringTag,{value:"Module"})),av0=p1({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),ov0=p1({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),sv0=Object.freeze(Object.defineProperty({__proto__:null,base36:av0,base36upper:ov0},Symbol.toStringTag,{value:"Module"})),fv0=p1({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),lv0=p1({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),cv0=Object.freeze(Object.defineProperty({__proto__:null,base58btc:fv0,base58flickr:lv0},Symbol.toStringTag,{value:"Module"})),Ev0=ye({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),dv0=ye({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),pv0=ye({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),hv0=ye({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Cv0=Object.freeze(Object.defineProperty({__proto__:null,base64:Ev0,base64pad:dv0,base64url:pv0,base64urlpad:hv0},Symbol.toStringTag,{value:"Module"})),OR=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),mv0=OR.reduce((u,e,t)=>(u[t]=e,u),[]),gv0=OR.reduce((u,e,t)=>(u[e.codePointAt(0)]=t,u),[]);function bv0(u){return u.reduce((e,t)=>(e+=mv0[t],e),"")}function Av0(u){const e=[];for(const t of u){const n=gv0[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}const yv0=od({prefix:"🚀",name:"base256emoji",encode:bv0,decode:Av0}),vv0=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:yv0},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const wD={...Ly0,...Uy0,...qy0,...Gy0,...Qy0,...iv0,...sv0,...cv0,...Cv0,...vv0};function IR(u,e,t,n){return{name:u,prefix:e,encoder:{name:u,prefix:e,encode:t},decoder:{decode:n}}}const xD=IR("utf8","u",u=>"u"+new TextDecoder("utf8").decode(u),u=>new TextEncoder().encode(u.substring(1))),c8=IR("ascii","a",u=>{let e="a";for(let t=0;t{u=u.substring(1);const e=TR(u.length);for(let t=0;t"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new xv0:typeof navigator<"u"?TD(navigator.userAgent):Iv0()}function Pv0(u){return u!==""&&Sv0.reduce(function(e,t){var n=t[0],r=t[1];if(e)return e;var i=r.exec(u);return!!i&&[n,i]},!1)}function TD(u){var e=Pv0(u);if(!e)return null;var t=e[0],n=e[1];if(t==="searchbot")return new wv0;var r=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);r?r.length<_D&&(r=kD(kD([],r,!0),Nv0(_D-r.length),!0)):r=[];var i=r.join("."),a=Ov0(u),o=_v0.exec(u);return o&&o[1]?new Dv0(t,i,a,o[1]):new Bv0(t,i,a)}function Ov0(u){for(var e=0,t=SD.length;e=7&&Qh0(s,e),Jh0(s,a),isNaN(n)&&(n=DC.getBestMask(s,ep.bind(null,s,t))),DC.applyMask(n,s),ep(s,t,n),{modules:s,version:e,errorCorrectionLevel:t,maskPattern:n,segments:r}}gN.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=X8.M,r,i;return typeof t<"u"&&(n=X8.from(t.errorCorrectionLevel,X8.M),r=C2.from(t.version),i=DC.from(t.maskPattern),t.toSJISFunc&&YE.setToSJISFunction(t.toSJISFunc)),Xh0(e,r,n,i)};var PN={},Tg={};(function(u){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let n=t.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+t);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");const r=parseInt(n.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+n.slice(0,6).join("")}}u.getOptions=function(n){n||(n={}),n.color||(n.color={});const r=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,a=n.scale||4;return{width:i,scale:i?4:a,margin:r,color:{dark:e(n.color.dark||"#000000ff"),light:e(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},u.getScale=function(n,r){return r.width&&r.width>=n+r.margin*2?r.width/(n+r.margin*2):r.scale},u.getImageWidth=function(n,r){const i=u.getScale(n,r);return Math.floor((n+r.margin*2)*i)},u.qrToImageData=function(n,r,i){const a=r.modules.size,o=r.modules.data,s=u.getScale(a,i),f=Math.floor((a+i.margin*2)*s),l=i.margin*s,c=[i.color.light,i.color.dark];for(let E=0;E=l&&d>=l&&E"u"&&(!a||!a.getContext)&&(s=a,a=void 0),a||(f=n()),s=e.getOptions(s);const l=e.getImageWidth(i.modules.size,s),c=f.getContext("2d"),E=c.createImageData(l,l);return e.qrToImageData(E.data,i,s),t(c,f,l),c.putImageData(E,0,0),f},u.renderToDataURL=function(i,a,o){let s=o;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),s||(s={});const f=u.render(i,a,s),l=s.type||"image/png",c=s.rendererOpts||{};return f.toDataURL(l,c.quality)}})(PN);var ON={};const uC0=Tg;function HF(u,e){const t=u.a/255,n=e+'="'+u.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function tp(u,e,t){let n=u+e;return typeof t<"u"&&(n+=" "+t),n}function eC0(u,e,t){let n="",r=0,i=!1,a=0;for(let o=0;o0&&s>0&&u[o-1]||(n+=i?tp("M",s+t,.5+f+t):tp("m",r,0),r=0,i=!1),s+1':"",f="',l='viewBox="0 0 '+o+" "+o+'"',E=''+s+f+` +`;return typeof n=="function"&&n(null,E),E};const tC0=hh0,xC=gN,IN=PN,nC0=ON;function Pg(u,e,t,n,r){const i=[].slice.call(arguments,1),a=i.length,o=typeof i[a-1]=="function";if(!o&&!tC0())throw new Error("Callback required as last argument");if(o){if(a<2)throw new Error("Too few arguments provided");a===2?(r=t,t=e,e=n=void 0):a===3&&(e.getContext&&typeof r>"u"?(r=n,n=void 0):(r=n,n=t,t=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(t=e,e=n=void 0):a===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(s,f){try{const l=xC.create(t,n);s(u(l,e,n))}catch(l){f(l)}})}try{const s=xC.create(t,n);r(null,u(s,e,n))}catch(s){r(s)}}oc.create=xC.create;oc.toCanvas=Pg.bind(null,IN.render);oc.toDataURL=Pg.bind(null,IN.renderToDataURL);oc.toString=Pg.bind(null,function(u,e,t){return nC0.render(u,t)});var rC0=768,ds=OK({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),iC0=YS({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),kC=MK({conditions:{defaultCondition:"base",conditionNames:["base","hover","active"],responsiveArray:void 0},styles:{background:{values:{accentColor:{conditions:{base:"ju367v9h",hover:"ju367v9i",active:"ju367v9j"},defaultClass:"ju367v9h"},accentColorForeground:{conditions:{base:"ju367v9k",hover:"ju367v9l",active:"ju367v9m"},defaultClass:"ju367v9k"},actionButtonBorder:{conditions:{base:"ju367v9n",hover:"ju367v9o",active:"ju367v9p"},defaultClass:"ju367v9n"},actionButtonBorderMobile:{conditions:{base:"ju367v9q",hover:"ju367v9r",active:"ju367v9s"},defaultClass:"ju367v9q"},actionButtonSecondaryBackground:{conditions:{base:"ju367v9t",hover:"ju367v9u",active:"ju367v9v"},defaultClass:"ju367v9t"},closeButton:{conditions:{base:"ju367v9w",hover:"ju367v9x",active:"ju367v9y"},defaultClass:"ju367v9w"},closeButtonBackground:{conditions:{base:"ju367v9z",hover:"ju367va0",active:"ju367va1"},defaultClass:"ju367v9z"},connectButtonBackground:{conditions:{base:"ju367va2",hover:"ju367va3",active:"ju367va4"},defaultClass:"ju367va2"},connectButtonBackgroundError:{conditions:{base:"ju367va5",hover:"ju367va6",active:"ju367va7"},defaultClass:"ju367va5"},connectButtonInnerBackground:{conditions:{base:"ju367va8",hover:"ju367va9",active:"ju367vaa"},defaultClass:"ju367va8"},connectButtonText:{conditions:{base:"ju367vab",hover:"ju367vac",active:"ju367vad"},defaultClass:"ju367vab"},connectButtonTextError:{conditions:{base:"ju367vae",hover:"ju367vaf",active:"ju367vag"},defaultClass:"ju367vae"},connectionIndicator:{conditions:{base:"ju367vah",hover:"ju367vai",active:"ju367vaj"},defaultClass:"ju367vah"},downloadBottomCardBackground:{conditions:{base:"ju367vak",hover:"ju367val",active:"ju367vam"},defaultClass:"ju367vak"},downloadTopCardBackground:{conditions:{base:"ju367van",hover:"ju367vao",active:"ju367vap"},defaultClass:"ju367van"},error:{conditions:{base:"ju367vaq",hover:"ju367var",active:"ju367vas"},defaultClass:"ju367vaq"},generalBorder:{conditions:{base:"ju367vat",hover:"ju367vau",active:"ju367vav"},defaultClass:"ju367vat"},generalBorderDim:{conditions:{base:"ju367vaw",hover:"ju367vax",active:"ju367vay"},defaultClass:"ju367vaw"},menuItemBackground:{conditions:{base:"ju367vaz",hover:"ju367vb0",active:"ju367vb1"},defaultClass:"ju367vaz"},modalBackdrop:{conditions:{base:"ju367vb2",hover:"ju367vb3",active:"ju367vb4"},defaultClass:"ju367vb2"},modalBackground:{conditions:{base:"ju367vb5",hover:"ju367vb6",active:"ju367vb7"},defaultClass:"ju367vb5"},modalBorder:{conditions:{base:"ju367vb8",hover:"ju367vb9",active:"ju367vba"},defaultClass:"ju367vb8"},modalText:{conditions:{base:"ju367vbb",hover:"ju367vbc",active:"ju367vbd"},defaultClass:"ju367vbb"},modalTextDim:{conditions:{base:"ju367vbe",hover:"ju367vbf",active:"ju367vbg"},defaultClass:"ju367vbe"},modalTextSecondary:{conditions:{base:"ju367vbh",hover:"ju367vbi",active:"ju367vbj"},defaultClass:"ju367vbh"},profileAction:{conditions:{base:"ju367vbk",hover:"ju367vbl",active:"ju367vbm"},defaultClass:"ju367vbk"},profileActionHover:{conditions:{base:"ju367vbn",hover:"ju367vbo",active:"ju367vbp"},defaultClass:"ju367vbn"},profileForeground:{conditions:{base:"ju367vbq",hover:"ju367vbr",active:"ju367vbs"},defaultClass:"ju367vbq"},selectedOptionBorder:{conditions:{base:"ju367vbt",hover:"ju367vbu",active:"ju367vbv"},defaultClass:"ju367vbt"},standby:{conditions:{base:"ju367vbw",hover:"ju367vbx",active:"ju367vby"},defaultClass:"ju367vbw"}}},borderColor:{values:{accentColor:{conditions:{base:"ju367vbz",hover:"ju367vc0",active:"ju367vc1"},defaultClass:"ju367vbz"},accentColorForeground:{conditions:{base:"ju367vc2",hover:"ju367vc3",active:"ju367vc4"},defaultClass:"ju367vc2"},actionButtonBorder:{conditions:{base:"ju367vc5",hover:"ju367vc6",active:"ju367vc7"},defaultClass:"ju367vc5"},actionButtonBorderMobile:{conditions:{base:"ju367vc8",hover:"ju367vc9",active:"ju367vca"},defaultClass:"ju367vc8"},actionButtonSecondaryBackground:{conditions:{base:"ju367vcb",hover:"ju367vcc",active:"ju367vcd"},defaultClass:"ju367vcb"},closeButton:{conditions:{base:"ju367vce",hover:"ju367vcf",active:"ju367vcg"},defaultClass:"ju367vce"},closeButtonBackground:{conditions:{base:"ju367vch",hover:"ju367vci",active:"ju367vcj"},defaultClass:"ju367vch"},connectButtonBackground:{conditions:{base:"ju367vck",hover:"ju367vcl",active:"ju367vcm"},defaultClass:"ju367vck"},connectButtonBackgroundError:{conditions:{base:"ju367vcn",hover:"ju367vco",active:"ju367vcp"},defaultClass:"ju367vcn"},connectButtonInnerBackground:{conditions:{base:"ju367vcq",hover:"ju367vcr",active:"ju367vcs"},defaultClass:"ju367vcq"},connectButtonText:{conditions:{base:"ju367vct",hover:"ju367vcu",active:"ju367vcv"},defaultClass:"ju367vct"},connectButtonTextError:{conditions:{base:"ju367vcw",hover:"ju367vcx",active:"ju367vcy"},defaultClass:"ju367vcw"},connectionIndicator:{conditions:{base:"ju367vcz",hover:"ju367vd0",active:"ju367vd1"},defaultClass:"ju367vcz"},downloadBottomCardBackground:{conditions:{base:"ju367vd2",hover:"ju367vd3",active:"ju367vd4"},defaultClass:"ju367vd2"},downloadTopCardBackground:{conditions:{base:"ju367vd5",hover:"ju367vd6",active:"ju367vd7"},defaultClass:"ju367vd5"},error:{conditions:{base:"ju367vd8",hover:"ju367vd9",active:"ju367vda"},defaultClass:"ju367vd8"},generalBorder:{conditions:{base:"ju367vdb",hover:"ju367vdc",active:"ju367vdd"},defaultClass:"ju367vdb"},generalBorderDim:{conditions:{base:"ju367vde",hover:"ju367vdf",active:"ju367vdg"},defaultClass:"ju367vde"},menuItemBackground:{conditions:{base:"ju367vdh",hover:"ju367vdi",active:"ju367vdj"},defaultClass:"ju367vdh"},modalBackdrop:{conditions:{base:"ju367vdk",hover:"ju367vdl",active:"ju367vdm"},defaultClass:"ju367vdk"},modalBackground:{conditions:{base:"ju367vdn",hover:"ju367vdo",active:"ju367vdp"},defaultClass:"ju367vdn"},modalBorder:{conditions:{base:"ju367vdq",hover:"ju367vdr",active:"ju367vds"},defaultClass:"ju367vdq"},modalText:{conditions:{base:"ju367vdt",hover:"ju367vdu",active:"ju367vdv"},defaultClass:"ju367vdt"},modalTextDim:{conditions:{base:"ju367vdw",hover:"ju367vdx",active:"ju367vdy"},defaultClass:"ju367vdw"},modalTextSecondary:{conditions:{base:"ju367vdz",hover:"ju367ve0",active:"ju367ve1"},defaultClass:"ju367vdz"},profileAction:{conditions:{base:"ju367ve2",hover:"ju367ve3",active:"ju367ve4"},defaultClass:"ju367ve2"},profileActionHover:{conditions:{base:"ju367ve5",hover:"ju367ve6",active:"ju367ve7"},defaultClass:"ju367ve5"},profileForeground:{conditions:{base:"ju367ve8",hover:"ju367ve9",active:"ju367vea"},defaultClass:"ju367ve8"},selectedOptionBorder:{conditions:{base:"ju367veb",hover:"ju367vec",active:"ju367ved"},defaultClass:"ju367veb"},standby:{conditions:{base:"ju367vee",hover:"ju367vef",active:"ju367veg"},defaultClass:"ju367vee"}}},boxShadow:{values:{connectButton:{conditions:{base:"ju367veh",hover:"ju367vei",active:"ju367vej"},defaultClass:"ju367veh"},dialog:{conditions:{base:"ju367vek",hover:"ju367vel",active:"ju367vem"},defaultClass:"ju367vek"},profileDetailsAction:{conditions:{base:"ju367ven",hover:"ju367veo",active:"ju367vep"},defaultClass:"ju367ven"},selectedOption:{conditions:{base:"ju367veq",hover:"ju367ver",active:"ju367ves"},defaultClass:"ju367veq"},selectedWallet:{conditions:{base:"ju367vet",hover:"ju367veu",active:"ju367vev"},defaultClass:"ju367vet"},walletLogo:{conditions:{base:"ju367vew",hover:"ju367vex",active:"ju367vey"},defaultClass:"ju367vew"}}},color:{values:{accentColor:{conditions:{base:"ju367vez",hover:"ju367vf0",active:"ju367vf1"},defaultClass:"ju367vez"},accentColorForeground:{conditions:{base:"ju367vf2",hover:"ju367vf3",active:"ju367vf4"},defaultClass:"ju367vf2"},actionButtonBorder:{conditions:{base:"ju367vf5",hover:"ju367vf6",active:"ju367vf7"},defaultClass:"ju367vf5"},actionButtonBorderMobile:{conditions:{base:"ju367vf8",hover:"ju367vf9",active:"ju367vfa"},defaultClass:"ju367vf8"},actionButtonSecondaryBackground:{conditions:{base:"ju367vfb",hover:"ju367vfc",active:"ju367vfd"},defaultClass:"ju367vfb"},closeButton:{conditions:{base:"ju367vfe",hover:"ju367vff",active:"ju367vfg"},defaultClass:"ju367vfe"},closeButtonBackground:{conditions:{base:"ju367vfh",hover:"ju367vfi",active:"ju367vfj"},defaultClass:"ju367vfh"},connectButtonBackground:{conditions:{base:"ju367vfk",hover:"ju367vfl",active:"ju367vfm"},defaultClass:"ju367vfk"},connectButtonBackgroundError:{conditions:{base:"ju367vfn",hover:"ju367vfo",active:"ju367vfp"},defaultClass:"ju367vfn"},connectButtonInnerBackground:{conditions:{base:"ju367vfq",hover:"ju367vfr",active:"ju367vfs"},defaultClass:"ju367vfq"},connectButtonText:{conditions:{base:"ju367vft",hover:"ju367vfu",active:"ju367vfv"},defaultClass:"ju367vft"},connectButtonTextError:{conditions:{base:"ju367vfw",hover:"ju367vfx",active:"ju367vfy"},defaultClass:"ju367vfw"},connectionIndicator:{conditions:{base:"ju367vfz",hover:"ju367vg0",active:"ju367vg1"},defaultClass:"ju367vfz"},downloadBottomCardBackground:{conditions:{base:"ju367vg2",hover:"ju367vg3",active:"ju367vg4"},defaultClass:"ju367vg2"},downloadTopCardBackground:{conditions:{base:"ju367vg5",hover:"ju367vg6",active:"ju367vg7"},defaultClass:"ju367vg5"},error:{conditions:{base:"ju367vg8",hover:"ju367vg9",active:"ju367vga"},defaultClass:"ju367vg8"},generalBorder:{conditions:{base:"ju367vgb",hover:"ju367vgc",active:"ju367vgd"},defaultClass:"ju367vgb"},generalBorderDim:{conditions:{base:"ju367vge",hover:"ju367vgf",active:"ju367vgg"},defaultClass:"ju367vge"},menuItemBackground:{conditions:{base:"ju367vgh",hover:"ju367vgi",active:"ju367vgj"},defaultClass:"ju367vgh"},modalBackdrop:{conditions:{base:"ju367vgk",hover:"ju367vgl",active:"ju367vgm"},defaultClass:"ju367vgk"},modalBackground:{conditions:{base:"ju367vgn",hover:"ju367vgo",active:"ju367vgp"},defaultClass:"ju367vgn"},modalBorder:{conditions:{base:"ju367vgq",hover:"ju367vgr",active:"ju367vgs"},defaultClass:"ju367vgq"},modalText:{conditions:{base:"ju367vgt",hover:"ju367vgu",active:"ju367vgv"},defaultClass:"ju367vgt"},modalTextDim:{conditions:{base:"ju367vgw",hover:"ju367vgx",active:"ju367vgy"},defaultClass:"ju367vgw"},modalTextSecondary:{conditions:{base:"ju367vgz",hover:"ju367vh0",active:"ju367vh1"},defaultClass:"ju367vgz"},profileAction:{conditions:{base:"ju367vh2",hover:"ju367vh3",active:"ju367vh4"},defaultClass:"ju367vh2"},profileActionHover:{conditions:{base:"ju367vh5",hover:"ju367vh6",active:"ju367vh7"},defaultClass:"ju367vh5"},profileForeground:{conditions:{base:"ju367vh8",hover:"ju367vh9",active:"ju367vha"},defaultClass:"ju367vh8"},selectedOptionBorder:{conditions:{base:"ju367vhb",hover:"ju367vhc",active:"ju367vhd"},defaultClass:"ju367vhb"},standby:{conditions:{base:"ju367vhe",hover:"ju367vhf",active:"ju367vhg"},defaultClass:"ju367vhe"}}}}},{conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0},styles:{alignItems:{values:{"flex-start":{conditions:{smallScreen:"ju367v0",largeScreen:"ju367v1"},defaultClass:"ju367v0"},"flex-end":{conditions:{smallScreen:"ju367v2",largeScreen:"ju367v3"},defaultClass:"ju367v2"},center:{conditions:{smallScreen:"ju367v4",largeScreen:"ju367v5"},defaultClass:"ju367v4"}}},display:{values:{none:{conditions:{smallScreen:"ju367v6",largeScreen:"ju367v7"},defaultClass:"ju367v6"},block:{conditions:{smallScreen:"ju367v8",largeScreen:"ju367v9"},defaultClass:"ju367v8"},flex:{conditions:{smallScreen:"ju367va",largeScreen:"ju367vb"},defaultClass:"ju367va"},inline:{conditions:{smallScreen:"ju367vc",largeScreen:"ju367vd"},defaultClass:"ju367vc"}}}}},{conditions:void 0,styles:{margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},alignSelf:{values:{"flex-start":{defaultClass:"ju367ve"},"flex-end":{defaultClass:"ju367vf"},center:{defaultClass:"ju367vg"}}},backgroundSize:{values:{cover:{defaultClass:"ju367vh"}}},borderRadius:{values:{1:{defaultClass:"ju367vi"},6:{defaultClass:"ju367vj"},10:{defaultClass:"ju367vk"},13:{defaultClass:"ju367vl"},actionButton:{defaultClass:"ju367vm"},connectButton:{defaultClass:"ju367vn"},menuButton:{defaultClass:"ju367vo"},modal:{defaultClass:"ju367vp"},modalMobile:{defaultClass:"ju367vq"},"25%":{defaultClass:"ju367vr"},full:{defaultClass:"ju367vs"}}},borderStyle:{values:{solid:{defaultClass:"ju367vt"}}},borderWidth:{values:{0:{defaultClass:"ju367vu"},1:{defaultClass:"ju367vv"},2:{defaultClass:"ju367vw"},4:{defaultClass:"ju367vx"}}},cursor:{values:{pointer:{defaultClass:"ju367vy"},none:{defaultClass:"ju367vz"}}},pointerEvents:{values:{none:{defaultClass:"ju367v10"},all:{defaultClass:"ju367v11"}}},minHeight:{values:{8:{defaultClass:"ju367v12"},44:{defaultClass:"ju367v13"}}},flexDirection:{values:{row:{defaultClass:"ju367v14"},column:{defaultClass:"ju367v15"}}},fontFamily:{values:{body:{defaultClass:"ju367v16"}}},fontSize:{values:{12:{defaultClass:"ju367v17"},13:{defaultClass:"ju367v18"},14:{defaultClass:"ju367v19"},16:{defaultClass:"ju367v1a"},18:{defaultClass:"ju367v1b"},20:{defaultClass:"ju367v1c"},23:{defaultClass:"ju367v1d"}}},fontWeight:{values:{regular:{defaultClass:"ju367v1e"},medium:{defaultClass:"ju367v1f"},semibold:{defaultClass:"ju367v1g"},bold:{defaultClass:"ju367v1h"},heavy:{defaultClass:"ju367v1i"}}},gap:{values:{0:{defaultClass:"ju367v1j"},1:{defaultClass:"ju367v1k"},2:{defaultClass:"ju367v1l"},3:{defaultClass:"ju367v1m"},4:{defaultClass:"ju367v1n"},5:{defaultClass:"ju367v1o"},6:{defaultClass:"ju367v1p"},8:{defaultClass:"ju367v1q"},10:{defaultClass:"ju367v1r"},12:{defaultClass:"ju367v1s"},14:{defaultClass:"ju367v1t"},16:{defaultClass:"ju367v1u"},18:{defaultClass:"ju367v1v"},20:{defaultClass:"ju367v1w"},24:{defaultClass:"ju367v1x"},28:{defaultClass:"ju367v1y"},32:{defaultClass:"ju367v1z"},36:{defaultClass:"ju367v20"},44:{defaultClass:"ju367v21"},64:{defaultClass:"ju367v22"},"-1":{defaultClass:"ju367v23"}}},height:{values:{1:{defaultClass:"ju367v24"},2:{defaultClass:"ju367v25"},4:{defaultClass:"ju367v26"},8:{defaultClass:"ju367v27"},12:{defaultClass:"ju367v28"},20:{defaultClass:"ju367v29"},24:{defaultClass:"ju367v2a"},28:{defaultClass:"ju367v2b"},30:{defaultClass:"ju367v2c"},32:{defaultClass:"ju367v2d"},34:{defaultClass:"ju367v2e"},36:{defaultClass:"ju367v2f"},40:{defaultClass:"ju367v2g"},44:{defaultClass:"ju367v2h"},48:{defaultClass:"ju367v2i"},54:{defaultClass:"ju367v2j"},60:{defaultClass:"ju367v2k"},200:{defaultClass:"ju367v2l"},full:{defaultClass:"ju367v2m"},max:{defaultClass:"ju367v2n"}}},justifyContent:{values:{"flex-start":{defaultClass:"ju367v2o"},"flex-end":{defaultClass:"ju367v2p"},center:{defaultClass:"ju367v2q"},"space-between":{defaultClass:"ju367v2r"},"space-around":{defaultClass:"ju367v2s"}}},textAlign:{values:{left:{defaultClass:"ju367v2t"},center:{defaultClass:"ju367v2u"},inherit:{defaultClass:"ju367v2v"}}},marginBottom:{values:{0:{defaultClass:"ju367v2w"},1:{defaultClass:"ju367v2x"},2:{defaultClass:"ju367v2y"},3:{defaultClass:"ju367v2z"},4:{defaultClass:"ju367v30"},5:{defaultClass:"ju367v31"},6:{defaultClass:"ju367v32"},8:{defaultClass:"ju367v33"},10:{defaultClass:"ju367v34"},12:{defaultClass:"ju367v35"},14:{defaultClass:"ju367v36"},16:{defaultClass:"ju367v37"},18:{defaultClass:"ju367v38"},20:{defaultClass:"ju367v39"},24:{defaultClass:"ju367v3a"},28:{defaultClass:"ju367v3b"},32:{defaultClass:"ju367v3c"},36:{defaultClass:"ju367v3d"},44:{defaultClass:"ju367v3e"},64:{defaultClass:"ju367v3f"},"-1":{defaultClass:"ju367v3g"}}},marginLeft:{values:{0:{defaultClass:"ju367v3h"},1:{defaultClass:"ju367v3i"},2:{defaultClass:"ju367v3j"},3:{defaultClass:"ju367v3k"},4:{defaultClass:"ju367v3l"},5:{defaultClass:"ju367v3m"},6:{defaultClass:"ju367v3n"},8:{defaultClass:"ju367v3o"},10:{defaultClass:"ju367v3p"},12:{defaultClass:"ju367v3q"},14:{defaultClass:"ju367v3r"},16:{defaultClass:"ju367v3s"},18:{defaultClass:"ju367v3t"},20:{defaultClass:"ju367v3u"},24:{defaultClass:"ju367v3v"},28:{defaultClass:"ju367v3w"},32:{defaultClass:"ju367v3x"},36:{defaultClass:"ju367v3y"},44:{defaultClass:"ju367v3z"},64:{defaultClass:"ju367v40"},"-1":{defaultClass:"ju367v41"}}},marginRight:{values:{0:{defaultClass:"ju367v42"},1:{defaultClass:"ju367v43"},2:{defaultClass:"ju367v44"},3:{defaultClass:"ju367v45"},4:{defaultClass:"ju367v46"},5:{defaultClass:"ju367v47"},6:{defaultClass:"ju367v48"},8:{defaultClass:"ju367v49"},10:{defaultClass:"ju367v4a"},12:{defaultClass:"ju367v4b"},14:{defaultClass:"ju367v4c"},16:{defaultClass:"ju367v4d"},18:{defaultClass:"ju367v4e"},20:{defaultClass:"ju367v4f"},24:{defaultClass:"ju367v4g"},28:{defaultClass:"ju367v4h"},32:{defaultClass:"ju367v4i"},36:{defaultClass:"ju367v4j"},44:{defaultClass:"ju367v4k"},64:{defaultClass:"ju367v4l"},"-1":{defaultClass:"ju367v4m"}}},marginTop:{values:{0:{defaultClass:"ju367v4n"},1:{defaultClass:"ju367v4o"},2:{defaultClass:"ju367v4p"},3:{defaultClass:"ju367v4q"},4:{defaultClass:"ju367v4r"},5:{defaultClass:"ju367v4s"},6:{defaultClass:"ju367v4t"},8:{defaultClass:"ju367v4u"},10:{defaultClass:"ju367v4v"},12:{defaultClass:"ju367v4w"},14:{defaultClass:"ju367v4x"},16:{defaultClass:"ju367v4y"},18:{defaultClass:"ju367v4z"},20:{defaultClass:"ju367v50"},24:{defaultClass:"ju367v51"},28:{defaultClass:"ju367v52"},32:{defaultClass:"ju367v53"},36:{defaultClass:"ju367v54"},44:{defaultClass:"ju367v55"},64:{defaultClass:"ju367v56"},"-1":{defaultClass:"ju367v57"}}},maxWidth:{values:{1:{defaultClass:"ju367v58"},2:{defaultClass:"ju367v59"},4:{defaultClass:"ju367v5a"},8:{defaultClass:"ju367v5b"},12:{defaultClass:"ju367v5c"},20:{defaultClass:"ju367v5d"},24:{defaultClass:"ju367v5e"},28:{defaultClass:"ju367v5f"},30:{defaultClass:"ju367v5g"},32:{defaultClass:"ju367v5h"},34:{defaultClass:"ju367v5i"},36:{defaultClass:"ju367v5j"},40:{defaultClass:"ju367v5k"},44:{defaultClass:"ju367v5l"},48:{defaultClass:"ju367v5m"},54:{defaultClass:"ju367v5n"},60:{defaultClass:"ju367v5o"},200:{defaultClass:"ju367v5p"},full:{defaultClass:"ju367v5q"},max:{defaultClass:"ju367v5r"}}},minWidth:{values:{1:{defaultClass:"ju367v5s"},2:{defaultClass:"ju367v5t"},4:{defaultClass:"ju367v5u"},8:{defaultClass:"ju367v5v"},12:{defaultClass:"ju367v5w"},20:{defaultClass:"ju367v5x"},24:{defaultClass:"ju367v5y"},28:{defaultClass:"ju367v5z"},30:{defaultClass:"ju367v60"},32:{defaultClass:"ju367v61"},34:{defaultClass:"ju367v62"},36:{defaultClass:"ju367v63"},40:{defaultClass:"ju367v64"},44:{defaultClass:"ju367v65"},48:{defaultClass:"ju367v66"},54:{defaultClass:"ju367v67"},60:{defaultClass:"ju367v68"},200:{defaultClass:"ju367v69"},full:{defaultClass:"ju367v6a"},max:{defaultClass:"ju367v6b"}}},overflow:{values:{hidden:{defaultClass:"ju367v6c"}}},paddingBottom:{values:{0:{defaultClass:"ju367v6d"},1:{defaultClass:"ju367v6e"},2:{defaultClass:"ju367v6f"},3:{defaultClass:"ju367v6g"},4:{defaultClass:"ju367v6h"},5:{defaultClass:"ju367v6i"},6:{defaultClass:"ju367v6j"},8:{defaultClass:"ju367v6k"},10:{defaultClass:"ju367v6l"},12:{defaultClass:"ju367v6m"},14:{defaultClass:"ju367v6n"},16:{defaultClass:"ju367v6o"},18:{defaultClass:"ju367v6p"},20:{defaultClass:"ju367v6q"},24:{defaultClass:"ju367v6r"},28:{defaultClass:"ju367v6s"},32:{defaultClass:"ju367v6t"},36:{defaultClass:"ju367v6u"},44:{defaultClass:"ju367v6v"},64:{defaultClass:"ju367v6w"},"-1":{defaultClass:"ju367v6x"}}},paddingLeft:{values:{0:{defaultClass:"ju367v6y"},1:{defaultClass:"ju367v6z"},2:{defaultClass:"ju367v70"},3:{defaultClass:"ju367v71"},4:{defaultClass:"ju367v72"},5:{defaultClass:"ju367v73"},6:{defaultClass:"ju367v74"},8:{defaultClass:"ju367v75"},10:{defaultClass:"ju367v76"},12:{defaultClass:"ju367v77"},14:{defaultClass:"ju367v78"},16:{defaultClass:"ju367v79"},18:{defaultClass:"ju367v7a"},20:{defaultClass:"ju367v7b"},24:{defaultClass:"ju367v7c"},28:{defaultClass:"ju367v7d"},32:{defaultClass:"ju367v7e"},36:{defaultClass:"ju367v7f"},44:{defaultClass:"ju367v7g"},64:{defaultClass:"ju367v7h"},"-1":{defaultClass:"ju367v7i"}}},paddingRight:{values:{0:{defaultClass:"ju367v7j"},1:{defaultClass:"ju367v7k"},2:{defaultClass:"ju367v7l"},3:{defaultClass:"ju367v7m"},4:{defaultClass:"ju367v7n"},5:{defaultClass:"ju367v7o"},6:{defaultClass:"ju367v7p"},8:{defaultClass:"ju367v7q"},10:{defaultClass:"ju367v7r"},12:{defaultClass:"ju367v7s"},14:{defaultClass:"ju367v7t"},16:{defaultClass:"ju367v7u"},18:{defaultClass:"ju367v7v"},20:{defaultClass:"ju367v7w"},24:{defaultClass:"ju367v7x"},28:{defaultClass:"ju367v7y"},32:{defaultClass:"ju367v7z"},36:{defaultClass:"ju367v80"},44:{defaultClass:"ju367v81"},64:{defaultClass:"ju367v82"},"-1":{defaultClass:"ju367v83"}}},paddingTop:{values:{0:{defaultClass:"ju367v84"},1:{defaultClass:"ju367v85"},2:{defaultClass:"ju367v86"},3:{defaultClass:"ju367v87"},4:{defaultClass:"ju367v88"},5:{defaultClass:"ju367v89"},6:{defaultClass:"ju367v8a"},8:{defaultClass:"ju367v8b"},10:{defaultClass:"ju367v8c"},12:{defaultClass:"ju367v8d"},14:{defaultClass:"ju367v8e"},16:{defaultClass:"ju367v8f"},18:{defaultClass:"ju367v8g"},20:{defaultClass:"ju367v8h"},24:{defaultClass:"ju367v8i"},28:{defaultClass:"ju367v8j"},32:{defaultClass:"ju367v8k"},36:{defaultClass:"ju367v8l"},44:{defaultClass:"ju367v8m"},64:{defaultClass:"ju367v8n"},"-1":{defaultClass:"ju367v8o"}}},position:{values:{absolute:{defaultClass:"ju367v8p"},fixed:{defaultClass:"ju367v8q"},relative:{defaultClass:"ju367v8r"}}},right:{values:{0:{defaultClass:"ju367v8s"}}},transition:{values:{default:{defaultClass:"ju367v8t"},transform:{defaultClass:"ju367v8u"}}},userSelect:{values:{none:{defaultClass:"ju367v8v"}}},width:{values:{1:{defaultClass:"ju367v8w"},2:{defaultClass:"ju367v8x"},4:{defaultClass:"ju367v8y"},8:{defaultClass:"ju367v8z"},12:{defaultClass:"ju367v90"},20:{defaultClass:"ju367v91"},24:{defaultClass:"ju367v92"},28:{defaultClass:"ju367v93"},30:{defaultClass:"ju367v94"},32:{defaultClass:"ju367v95"},34:{defaultClass:"ju367v96"},36:{defaultClass:"ju367v97"},40:{defaultClass:"ju367v98"},44:{defaultClass:"ju367v99"},48:{defaultClass:"ju367v9a"},54:{defaultClass:"ju367v9b"},60:{defaultClass:"ju367v9c"},200:{defaultClass:"ju367v9d"},full:{defaultClass:"ju367v9e"},max:{defaultClass:"ju367v9f"}}},backdropFilter:{values:{modalOverlay:{defaultClass:"ju367v9g"}}}}}),GF={colors:{accentColor:"var(--rk-colors-accentColor)",accentColorForeground:"var(--rk-colors-accentColorForeground)",actionButtonBorder:"var(--rk-colors-actionButtonBorder)",actionButtonBorderMobile:"var(--rk-colors-actionButtonBorderMobile)",actionButtonSecondaryBackground:"var(--rk-colors-actionButtonSecondaryBackground)",closeButton:"var(--rk-colors-closeButton)",closeButtonBackground:"var(--rk-colors-closeButtonBackground)",connectButtonBackground:"var(--rk-colors-connectButtonBackground)",connectButtonBackgroundError:"var(--rk-colors-connectButtonBackgroundError)",connectButtonInnerBackground:"var(--rk-colors-connectButtonInnerBackground)",connectButtonText:"var(--rk-colors-connectButtonText)",connectButtonTextError:"var(--rk-colors-connectButtonTextError)",connectionIndicator:"var(--rk-colors-connectionIndicator)",downloadBottomCardBackground:"var(--rk-colors-downloadBottomCardBackground)",downloadTopCardBackground:"var(--rk-colors-downloadTopCardBackground)",error:"var(--rk-colors-error)",generalBorder:"var(--rk-colors-generalBorder)",generalBorderDim:"var(--rk-colors-generalBorderDim)",menuItemBackground:"var(--rk-colors-menuItemBackground)",modalBackdrop:"var(--rk-colors-modalBackdrop)",modalBackground:"var(--rk-colors-modalBackground)",modalBorder:"var(--rk-colors-modalBorder)",modalText:"var(--rk-colors-modalText)",modalTextDim:"var(--rk-colors-modalTextDim)",modalTextSecondary:"var(--rk-colors-modalTextSecondary)",profileAction:"var(--rk-colors-profileAction)",profileActionHover:"var(--rk-colors-profileActionHover)",profileForeground:"var(--rk-colors-profileForeground)",selectedOptionBorder:"var(--rk-colors-selectedOptionBorder)",standby:"var(--rk-colors-standby)"},fonts:{body:"var(--rk-fonts-body)"},radii:{actionButton:"var(--rk-radii-actionButton)",connectButton:"var(--rk-radii-connectButton)",menuButton:"var(--rk-radii-menuButton)",modal:"var(--rk-radii-modal)",modalMobile:"var(--rk-radii-modalMobile)"},shadows:{connectButton:"var(--rk-shadows-connectButton)",dialog:"var(--rk-shadows-dialog)",profileDetailsAction:"var(--rk-shadows-profileDetailsAction)",selectedOption:"var(--rk-shadows-selectedOption)",selectedWallet:"var(--rk-shadows-selectedWallet)",walletLogo:"var(--rk-shadows-walletLogo)"},blurs:{modalOverlay:"var(--rk-blurs-modalOverlay)"}},aC0={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},oC0="_12cbo8i3 ju367v8r",sC0={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function Vu({active:u,hover:e}){return[oC0,e&&sC0[e],aC0[u]]}var NN=w.createContext(null);function fC0(){var u;const{adapter:e}=(u=w.useContext(NN))!=null?u:{};if(!e)throw new Error("No authentication adapter found");return e}function ZE(){var u;const e=w.useContext(NN);return(u=e==null?void 0:e.status)!=null?u:null}function Og(){const u=ZE(),{isConnected:e}=At();return e?u&&(u==="loading"||u==="unauthenticated")?u:"connected":"disconnected"}function Ig(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function lC0(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function cC0(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function Xo(){return lC0()||cC0()}function Ae(){return Ig()||Xo()}var EC0="iekbcc0",dC0={a:"iekbcca",blockquote:"iekbcc2",button:"iekbcc9",input:"iekbcc8 iekbcc5 iekbcc4",mark:"iekbcc6",ol:"iekbcc1",q:"iekbcc2",select:"iekbcc7 iekbcc5 iekbcc4",table:"iekbcc3",textarea:"iekbcc5 iekbcc4",ul:"iekbcc1"},pC0=({reset:u,...e})=>{if(!u)return kC(e);const t=dC0[u],n=kC(e);return cI(EC0,t,n)},O=w.forwardRef(({as:u="div",className:e,testId:t,...n},r)=>{const i={},a={};for(const s in n)kC.properties.has(s)?i[s]=n[s]:a[s]=n[s];const o=pC0({reset:typeof u=="string"?u:"div",...i});return w.createElement(u,{className:cI(o,e),...a,"data-testid":t?`rk-${t.replace(/^rk-/,"")}`:void 0,ref:r})});O.displayName="Box";var RN=new Map,np=new Map;async function MN(u){const e=np.get(u);if(e)return e;const t=async()=>u().then(async r=>(RN.set(u,r),r)),n=t().catch(r=>t().catch(i=>{np.delete(u)}));return np.set(u,n),n}async function dr(...u){return await Promise.all(u.map(e=>typeof e=="function"?MN(e):e))}function hC0(){const[,u]=w.useReducer(e=>e+1,0);return u}function Ng(u){const e=typeof u=="function"?RN.get(u):void 0,t=hC0();return w.useEffect(()=>{typeof u=="function"&&!e&&MN(u).then(t)},[u,e,t]),typeof u=="function"?e:u}function ee({alt:u,background:e,borderColor:t,borderRadius:n,boxShadow:r,height:i,src:a,width:o,testId:s}){const f=Ng(a),l=f&&/^http/.test(f),[c,E]=w.useReducer(()=>!0,!1);return F.createElement(O,{"aria-label":u,borderRadius:n,boxShadow:r,height:typeof i=="string"?i:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:e,height:typeof i=="number"?i:void 0,width:typeof o=="number"?o:void 0},width:typeof o=="string"?o:void 0,testId:s},F.createElement(O,{...l?{"aria-hidden":!0,as:"img",onLoad:E,src:f}:{backgroundSize:"cover"},height:"full",position:"absolute",style:{touchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...l?{opacity:c?1:0}:{backgroundImage:f?`url(${f})`:void 0,backgroundRepeat:"no-repeat",opacity:f?1:0}},width:"full"}),t?F.createElement(O,{...typeof t=="object"&&"custom"in t?{style:{borderColor:t.custom}}:{borderColor:t},borderRadius:n,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var CC0="_1luule42",mC0="_1luule43",bC0=u=>w.useMemo(()=>`${u}_${Math.round(Math.random()*1e9)}`,[u]),Zl=({height:u=21,width:e=21})=>{const t=bC0("spinner");return F.createElement("svg",{className:CC0,fill:"none",height:u,viewBox:"0 0 21 21",width:e,xmlns:"http://www.w3.org/2000/svg"},F.createElement("clipPath",{id:t},F.createElement("path",{d:"M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z"})),F.createElement("foreignObject",{clipPath:`url(#${t})`,height:"21",width:"21",x:"0",y:"0"},F.createElement("div",{className:mC0})))},V0=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],VF=[{color:V0[0],emoji:"🌶"},{color:V0[1],emoji:"🤑"},{color:V0[2],emoji:"🐙"},{color:V0[3],emoji:"🫐"},{color:V0[4],emoji:"🐳"},{color:V0[0],emoji:"🤶"},{color:V0[5],emoji:"🌲"},{color:V0[6],emoji:"🌞"},{color:V0[7],emoji:"🐒"},{color:V0[8],emoji:"🐵"},{color:V0[9],emoji:"🦊"},{color:V0[10],emoji:"🐼"},{color:V0[11],emoji:"🦄"},{color:V0[12],emoji:"🐷"},{color:V0[13],emoji:"🐧"},{color:V0[8],emoji:"🦩"},{color:V0[14],emoji:"👽"},{color:V0[0],emoji:"🎈"},{color:V0[8],emoji:"🍉"},{color:V0[1],emoji:"🎉"},{color:V0[15],emoji:"🐲"},{color:V0[16],emoji:"🌎"},{color:V0[17],emoji:"🍊"},{color:V0[18],emoji:"🐭"},{color:V0[19],emoji:"🍣"},{color:V0[1],emoji:"🐥"},{color:V0[20],emoji:"👾"},{color:V0[15],emoji:"🥦"},{color:V0[0],emoji:"👹"},{color:V0[17],emoji:"🙀"},{color:V0[4],emoji:"⛱"},{color:V0[21],emoji:"⛵️"},{color:V0[17],emoji:"🥳"},{color:V0[8],emoji:"🤯"},{color:V0[22],emoji:"🤠"}];function gC0(u){let e=0;if(u.length===0)return e;for(let t=0;t{const[n,r]=w.useState(!1);w.useEffect(()=>{if(e){const o=new Image;o.src=e,o.onload=()=>r(!0)}},[e]);const{color:i,emoji:a}=w.useMemo(()=>AC0(u),[u]);return e?n?F.createElement(O,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${e})`,backgroundPosition:"center",height:t,width:t}}):F.createElement(O,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:t,width:t}},F.createElement(Zl,null)):F.createElement(O,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!e&&{backgroundColor:i},height:t,width:t}},a)},jN=yC0,zN=w.createContext(jN);function LN({address:u,imageUrl:e,loading:t,size:n}){const r=w.useContext(zN);return F.createElement(O,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${n}px`,width:`${n}px`},userSelect:"none"},F.createElement(O,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(n*.55)}px`,height:`${n}px`,transform:t?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:t?void 0:".1s",width:`${n}px`,willChange:"transform"},userSelect:"none"},F.createElement(r,{address:u,ensImage:e,size:n})),t&&F.createElement(O,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},F.createElement(Zl,{height:"100%",width:"100%"})))}var KF=()=>F.createElement("svg",{fill:"none",height:"7",width:"14",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M12.75 1.54001L8.51647 5.0038C7.77974 5.60658 6.72026 5.60658 5.98352 5.0038L1.75 1.54001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",xmlns:"http://www.w3.org/2000/svg"})),vC0={label:"اتصال المحفظة"},BC0={title:"ما هو المحفظة؟",description:"تُستخدم المحفظة لإرسال واستلام وتخزين وعرض الأصول الرقمية. إنها أيضاً طريقة جديدة لتسجيل الدخول، دون الحاجة إلى إنشاء حسابات وكلمات مرور جديدة على كل موقع.",digital_asset:{title:"دار لأصولك الرقمية",description:"تُستخدم المحافظ لإرسال واستلام وتخزين وعرض الأصول الرقمية مثل إيثيريوم والـ NFTs."},login:{title:"طريقة جديدة لتسجيل الدخول",description:"بدلاً من إنشاء حسابات وكلمات مرور جديدة على كل موقع، فقط قم بتوصيل محفظتك."},get:{label:"احصل على محفظة"},learn_more:{label:"تعلم المزيد"}},FC0={label:"تحقق من حسابك",description:"لإنهاء الاتصال، يجب عليك توقيع رسالة في محفظتك للتحقق من أنك صاحب هذا الحساب.",message:{send:"إرسال الرسالة",preparing:"جارٍ تجهيز الرسالة...",cancel:"إلغاء",preparing_error:"خطأ في تجهيز الرسالة، يرجى المحاولة مرة أخرى!"},signature:{waiting:"انتظار التوقيع...",verifying:"جار التحقق من التوقيع...",signing_error:"خطأ في توقيع الرسالة، يرجى المحاولة مرة أخرى!",verifying_error:"خطأ في التحقق من التوقيع، يرجى المحاولة مرة أخرى!",oops_error:"عذرًا، حدث خطأ ما!"}},DC0={label:"اتصل",title:"اتصال بالمحفظة",new_to_ethereum:{description:"جديد في محافظ Ethereum؟",learn_more:{label:"تعلم المزيد"}},learn_more:{label:"أعرف أكثر"},recent:"الأخير",status:{opening:"جار فتح %{wallet}...",not_installed:"%{wallet} غير مثبت",not_available:"%{wallet} غير متاح",confirm:"تأكيد الاتصال في الامتداد"},secondary_action:{get:{description:"لا يوجد لديك %{wallet}؟",label:"احصل"},install:{label:"تثبيت"},retry:{label:"أعد المحاولة"}},walletconnect:{description:{full:"هل تحتاج إلى النافذة الرسمية لـ WalletConnect؟",compact:"هل تحتاج إلى النافذة لـ WalletConnect؟"},open:{label:"افتح"}}},wC0={title:"المسح باستخدام %{wallet}",fallback_title:"المسح باستخدام هاتفك"},xC0={recommended:"موصى به",other:"آخر",popular:"شائع",more:"المزيد",others:"الآخرين"},kC0={title:"احصل على محفظة",action:{label:"احصل"},mobile:{description:"محفظة الموبايل"},extension:{description:"ملحق المتصفح"},mobile_and_extension:{description:"محفظة موبايل وملحق"},mobile_and_desktop:{description:"محفظة الموبايل والكمبيوتر"},looking_for:{title:"ليست هذه هي ما تبحث عنه؟",mobile:{description:"حدد محفظة على الشاشة الرئيسية للبدء باستخدام موفر محفظة مختلف."},desktop:{compact_description:"حدد محفظة على الشاشة الرئيسية للبدء باستخدام موفر محفظة مختلف.",wide_description:"حدد محفظة على اليسار للبدء باستخدام موفر محفظة مختلف."}}},_C0={title:"ابدأ مع %{wallet}",short_title:"احصل على %{wallet}",mobile:{title:"%{wallet} للجوال",description:"استخدم محفظة الموبايل لاستكشاف عالم Ethereum.",download:{label:"احصل على التطبيق"}},extension:{title:"%{wallet} لـ %{browser}",description:"وصول لمحفظتك مباشرة من متصفح الويب المفضل لديك.",download:{label:"أضف إلى %{browser}"}},desktop:{title:"%{wallet} لـ %{platform}",description:"قم بالوصول إلى محفظتك بشكل أصلي من كمبيوترك القوي.",download:{label:"أضف إلى %{platform}"}}},SC0={title:"قم بالتثبيت %{wallet}",description:"استخدم هاتفك للتحميل على iOS أو Android",continue:{label:"استمر"}},TC0={mobile:{connect:{label:"اتصل"},learn_more:{label:"تعلم المزيد"}},extension:{refresh:{label:"تحديث"},learn_more:{label:"تعلم المزيد"}},desktop:{connect:{label:"اتصل"},learn_more:{label:"تعلم المزيد"}}},PC0={title:"تبديل الشبكات",wrong_network:"تم اكتشاف شبكة غير صحيحة، قم بالتبديل أو القطع للمتابعة.",confirm:"التأكيد في المحفظة",switching_not_supported:"محفظتك لا تدعم التبديل بين الشبكات من %{appName}. جرب التبديل بين الشبكات من داخل المحفظة بدلاً من ذلك.",switching_not_supported_fallback:"محفظتك لا تدعم تبديل الشبكات من هذا التطبيق. حاول تبديل الشبكات من داخل المحفظة بدلاً من ذلك.",disconnect:"قطع الاتصال",connected:"متصل"},OC0={disconnect:{label:"قطع الاتصال"},copy_address:{label:"نسخ العنوان",copied:"تم النسخ!"},explorer:{label:"عرض المزيد على المستكشف"},transactions:{description:"%{appName} ستظهر المعاملات هنا...",description_fallback:"سوف تظهر معاملاتك هنا...",recent:{title:"المعاملات الأخيرة"},clear:{label:"مسح الكل"}}},IC0={argent:{qr_code:{step1:{description:"ضع أرجنت على شاشتك الرئيسية للوصول السريع إلى محفظتك.",title:"افتح تطبيق Argent"},step2:{description:"أنشئ محفظة واسم مستخدم، أو استورد محفظة موجودة بالفعل.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك.",title:"اضغط على زر فحص الكود الشريطي"}}},bifrost:{qr_code:{step1:{description:"نوصي بوضع محفظة Bifrost على الشاشة الرئيسية للوصول الأسرع.",title:"افتح تطبيق محفظة Bifrost"},step2:{description:"أنشئ أو استورد محفظة باستخدام عبارة الاستعادة الخاصة بك.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، سيظهر موجه الاتصال لك لتوصيل محفظتك.",title:"اضغط على زر المسح"}}},bitget:{qr_code:{step1:{description:"نوصي بوضع محفظة Bitget على الشاشة الرئيسية للوصول الأسرع.",title:"افتح تطبيق محفظة Bitget"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه اتصال لتوصيل محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Bitget على شريط المهام للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد محفظة Bitget"},step2:{description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ محفظة أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"قم بتحديث متصفحك"}}},bitski:{extension:{step1:{description:"نوصي بتثبيت Bitski على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد Bitski"},step2:{description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد إعداد المحفظة الخاصة بك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"تحديث المتصفح الخاص بك"}}},coin98:{qr_code:{step1:{description:"نوصي بوضع محفظة Coin98 على الشاشة الرئيسية لسرعة الوصول إلى محفظتك.",title:"افتح تطبيق محفظة Coin98"},step2:{description:"يمكنك بسهولة نسخ محفظتك الاحتياطي باستخدام ميزة النسخ الاحتياطي على هاتفك.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك.",title:"اضغط على زر WalletConnect"}},extension:{step1:{description:"انقر في الجزء العلوي الأيمن من المتصفح وثبت Coin98 Wallet لسهولة الوصول.",title:"قم بتثبيت امتداد Coin98 Wallet"},step2:{description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل.",title:"أنشئ محفظة أو استورد محفظة"},step3:{description:"بمجرد إعداد Coin98 Wallet ، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"تحديث المتصفح الخاص بك"}}},coinbase:{qr_code:{step1:{description:"نوصي بوضع Coinbase Wallet على الشاشة الرئيسية لسهولة الوصول.",title:"افتح تطبيق Coinbase Wallet"},step2:{description:"يمكنك بسهولة النسخ الاحتياطي لمحفظتك باستخدام ميزة النسخ الاحتياطي السحابي.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Coinbase على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Coinbase"},step2:{description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد المحفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"تحديث المتصفح الخاص بك"}}},core:{qr_code:{step1:{description:"نوصي بوضع Core على الشاشة الرئيسية للوصول السريع إلى محفظتك.",title:"افتح تطبيق Core"},step2:{description:"يمكنك بسهولة النسخ الاحتياطي لمحفظتك باستخدام ميزة النسخ الاحتياطي على هاتفك.",title:"إنشاء أو استيراد المحفظة"},step3:{description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل محفظتك.",title:"اضغط على زر WalletConnect"}},extension:{step1:{description:"نوصي بتثبيت Core على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد Core"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"تحديث متصفحك"}}},fox:{qr_code:{step1:{description:"نوصي بوضع FoxWallet على شاشتك الرئيسية للوصول الأسرع.",title:"افتح تطبيق FoxWallet"},step2:{description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء محفظة أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه الاتصال لتتمكن من اتصال محفظتك.",title:"اضغط على زر الفحص"}}},frontier:{qr_code:{step1:{description:"نوصي بوضع Frontier Wallet على شاشتك الرئيسية للوصول الأسرع.",title:"افتح تطبيق Frontier Wallet"},step2:{description:"تأكد من نسخ محفظتك احتياطيا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه الاتصال لربط محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Frontier على شريط المهام للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Frontier"},step2:{description:"تأكد من نسخ محفظتك احتياطيا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"قم بتحديث المتصفح الخاص بك"}}},im_token:{qr_code:{step1:{title:"افتح تطبيق imToken",description:"ضع تطبيق imToken على الشاشة الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"قم بإنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على أيقونة الماسح الضوئي في الزاوية العليا اليمنى",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي وأكد الموجه للاتصال."}}},metamask:{qr_code:{step1:{title:"افتح تطبيق MetaMask",description:"نوصي بوضع MetaMask على الشاشة الرئيسية لديك للوصول بشكل أسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ الحفاظ على محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك موجه اتصال لتوصيل محفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد MetaMask",description:"نوصي بتثبيت MetaMask في شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},okx:{qr_code:{step1:{title:"افتح تطبيق محفظة OKX",description:"نوصي بوضع محفظة OKX على الشاشة الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد محفظة OKX",description:"نوصي بتثبيت محفظة OKX على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من حفظ نسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},omni:{qr_code:{step1:{title:"افتح تطبيق Omni",description:"أضف Omni إلى شاشتك الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"إنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على أيقونة الرمز الاستجابة السريعة وامسحها",description:"اضغط على الرمز QR على الشاشة الرئيسية الخاصة بك، امسح الرمز وأكد الموافقة للاتصال."}}},token_pocket:{qr_code:{step1:{title:"افتح تطبيق TokenPocket",description:"نوصي بوضع TokenPocket على الشاشة الرئيسية للوصول السريع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك رسالة موجهة للاتصال بمحفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد TokenPocket",description:"نوصي بتثبيت TokenPocket على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"قم بإنشاء محفظة أو استيراد محفظة",description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},trust:{qr_code:{step1:{title:"افتح تطبيق Trust Wallet",description:"ضع Trust Wallet على الشاشة الرئيسية للوصول السريع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة."},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي QR وأكد الموجه للاتصال."}},extension:{step1:{title:"قم بتثبيت امتداد Trust Wallet",description:"انقر في الجزء العلوي الأيمن من المتصفح وثبت Trust Wallet للوصول بسهولة."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد Trust Wallet، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},uniswap:{qr_code:{step1:{title:"افتح تطبيق Uniswap",description:"أضف محفظة Uniswap إلى شاشة الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"قم بإنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على الأيقونة QR واقرأ الرمز",description:"اضغط على أيقونة QR على الشاشة الرئيسية، قراءة الرمز وتأكيد الرسالة الموجهة للاتصال."}}},zerion:{qr_code:{step1:{title:"افتح تطبيق Zerion",description:"نوصي بوضع Zerion على شاشتك الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من حفظ نسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}},extension:{step1:{title:"تثبيت امتداد Zerion",description:"نوصي بتثبيت Zerion على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},rainbow:{qr_code:{step1:{title:"افتح تطبيق Rainbow",description:"نوصي بوضع Rainbow على شاشة البداية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة أو استيراد محفظة",description:"يمكنك عمل نسخة احتياطية بسهولة لمحفظتك باستخدام ميزة النسخ الاحتياطي على هاتفك."},step3:{title:"اضغط على الزر الماسح الضوئي",description:"بعد الفحص، سيظهر لك موجه اتصال لربط محفظتك."}}},enkrypt:{extension:{step1:{description:"نوصي بتثبيت محفظة Enkrypt على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Enkrypt"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"حدث المتصفح الخاص بك"}}},frame:{extension:{step1:{description:"نوصي بتعليق Frame على شريط المهام للوصول السريع إلى محفظتك.",title:"ثبت Frame والإضافة المصاحبة"},step2:{description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"حدث المتصفح الخاص بك"}}},one_key:{extension:{step1:{title:"قم بتثبيت امتداد محفظة OneKey",description:"نوصي بتثبيت محفظة OneKey على شريط المهام للوصول السريع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},phantom:{extension:{step1:{title:"قم بتثبيت امتداد Phantom",description:"نوصي بتثبيت Phantom على شريط المهام للوصول الأسهل إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة السرية الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المتصفح",description:"بمجرد إعداد المحفظة، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},rabby:{extension:{step1:{title:"ثبت امتداد Rabby",description:"نوصي بتثبيت Rabby على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك العبارة السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},safeheron:{extension:{step1:{title:"قم بتثبيت إضافة النواة",description:"نوصي بتثبيت Safeheron على شريط المهام الخاص بك للوصول السريع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ محفظتك بطريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},taho:{extension:{step1:{title:"تثبيت إضافة Taho",description:"نوصي بتثبيت Taho على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة أو استيراد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},talisman:{extension:{step1:{title:"تثبيت إضافة Talisman",description:"نوصي بتثبيت Talisman على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة Ethereum أو استيرادها",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المستعرض الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المستعرض وتحميل الإضافة."}}},xdefi:{extension:{step1:{title:"قم بتثبيت إضافة XDEFI Wallet",description:"نوصي بتثبيت XDEFI Wallet على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك العبارة السرية الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المستعرض الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},zeal:{extension:{step1:{title:"قم بتثبيت امتداد Zeal",description:"نوصي بتثبيت Zeal في شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},safepal:{extension:{step1:{title:"قم بتثبيت صيغة SafePal Wallet",description:"انقر في أعلى يمين المتصفح وثبت صيغة SafePal Wallet لسهولة الوصول."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظة SafePal، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}},qr_code:{step1:{title:"افتح تطبيق محفظة SafePal",description:"ضع محفظة SafePal على شاشة الرئيسية لسهولة الوصول إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي وأكد الموجه للاتصال."}}},desig:{extension:{step1:{title:"قم بتثبيت إضافة Desig",description:"نوصي بتثبيت Desig على شريط المهام الخاص بك للوصول الأسهل إلى محفظتك."},step2:{title:"إنشاء محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},subwallet:{extension:{step1:{title:"قم بتثبيت إضافة SubWallet",description:"نوصي بتثبيت SubWallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}},qr_code:{step1:{title:"افتح تطبيق SubWallet",description:"نوصي بوضع SubWallet على شاشة الرئيسية الخاصة بك للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."}}},clv:{extension:{step1:{title:"قم بتثبيت إضافة CLV Wallet",description:"نوصي بتثبيت CLV Wallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}},qr_code:{step1:{title:"افتح تطبيق محفظة CLV",description:"نوصي بوضع محفظة CLV على الشاشة الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."}}},okto:{qr_code:{step1:{title:"افتح تطبيق Okto",description:"أضف Okto إلى الشاشة الرئيسية للوصول السريع"},step2:{title:"أنشئ محفظة MPC",description:"أنشئ حسابًا وقم بإنشاء محفظة"},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اضغط على أيقونة فحص الشاشة في الجهة العليا اليمنى وأكد الإدخال للاتصال."}}},ledger:{desktop:{step1:{title:"افتح تطبيق Ledger Live",description:"نوصي بوضع Ledger Live على شاشة الرئيسية لديك لسرعة الوصول."},step2:{title:"قم بإعداد Ledger الخاص بك",description:"قم بإعداد Ledger جديد أو قم بالاتصال بواحد موجود ."},step3:{title:"اتصل",description:"بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}},qr_code:{step1:{title:"افتح تطبيق Ledger Live",description:"نوصي بوضع Ledger Live على شاشة الرئيسية لديك لسرعة الوصول."},step2:{title:"قم بإعداد Ledger الخاص بك",description:"يمكنك إما المزامنة مع تطبيق سطح المكتب أو توصيل Ledger الخاص بك."},step3:{title:"مسح الرمز",description:"اضغط على WalletConnect ثم انتقل إلى الفحص. بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}}}},QF={connect_wallet:vC0,intro:BC0,sign_in:FC0,connect:DC0,connect_scan:wC0,connector_group:xC0,get:kC0,get_options:_C0,get_mobile:SC0,get_instructions:TC0,chains:PC0,profile:OC0,wallet_connectors:IC0},NC0={label:"Connect Wallet"},RC0={title:"What is a Wallet?",description:"A wallet is used to send, receive, store, and display digital assets. It's also a new way to log in, without needing to create new accounts and passwords on every website.",digital_asset:{title:"A Home for your Digital Assets",description:"Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."},login:{title:"A New Way to Log In",description:"Instead of creating new accounts and passwords on every website, just connect your wallet."},get:{label:"Get a Wallet"},learn_more:{label:"Learn More"}},MC0={label:"Verify your account",description:"To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",message:{send:"Sign message",preparing:"Preparing message...",cancel:"Cancel",preparing_error:"Error preparing message, please retry!"},signature:{waiting:"Waiting for signature...",verifying:"Verifying signature...",signing_error:"Error signing message, please retry!",verifying_error:"Error verifying signature, please retry!",oops_error:"Oops, something went wrong!"}},jC0={label:"Connect",title:"Connect a Wallet",new_to_ethereum:{description:"New to Ethereum wallets?",learn_more:{label:"Learn More"}},learn_more:{label:"Learn more"},recent:"Recent",status:{opening:"Opening %{wallet}...",connecting:"Connecting",connect_mobile:"Continue in %{wallet}",not_installed:"%{wallet} is not installed",not_available:"%{wallet} is not available",confirm:"Confirm connection in the extension",confirm_mobile:"Accept connection request in the wallet"},secondary_action:{get:{description:"Don't have %{wallet}?",label:"GET"},install:{label:"INSTALL"},retry:{label:"RETRY"}},walletconnect:{description:{full:"Need the official WalletConnect modal?",compact:"Need the WalletConnect modal?"},open:{label:"OPEN"}}},zC0={title:"Scan with %{wallet}",fallback_title:"Scan with your phone"},LC0={recommended:"Recommended",other:"Other",popular:"Popular",more:"More",others:"Others"},$C0={title:"Get a Wallet",action:{label:"GET"},mobile:{description:"Mobile Wallet"},extension:{description:"Browser Extension"},mobile_and_extension:{description:"Mobile Wallet and Extension"},mobile_and_desktop:{description:"Mobile and Desktop Wallet"},looking_for:{title:"Not what you're looking for?",mobile:{description:"Select a wallet on the main screen to get started with a different wallet provider."},desktop:{compact_description:"Select a wallet on the main screen to get started with a different wallet provider.",wide_description:"Select a wallet on the left to get started with a different wallet provider."}}},UC0={title:"Get started with %{wallet}",short_title:"Get %{wallet}",mobile:{title:"%{wallet} for Mobile",description:"Use the mobile wallet to explore the world of Ethereum.",download:{label:"Get the app"}},extension:{title:"%{wallet} for %{browser}",description:"Access your wallet right from your favorite web browser.",download:{label:"Add to %{browser}"}},desktop:{title:"%{wallet} for %{platform}",description:"Access your wallet natively from your powerful desktop.",download:{label:"Add to %{platform}"}}},WC0={title:"Install %{wallet}",description:"Scan with your phone to download on iOS or Android",continue:{label:"Continue"}},qC0={mobile:{connect:{label:"Connect"},learn_more:{label:"Learn More"}},extension:{refresh:{label:"Refresh"},learn_more:{label:"Learn More"}},desktop:{connect:{label:"Connect"},learn_more:{label:"Learn More"}}},HC0={title:"Switch Networks",wrong_network:"Wrong network detected, switch or disconnect to continue.",confirm:"Confirm in Wallet",switching_not_supported:"Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",switching_not_supported_fallback:"Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",disconnect:"Disconnect",connected:"Connected"},GC0={disconnect:{label:"Disconnect"},copy_address:{label:"Copy Address",copied:"Copied!"},explorer:{label:"View more on explorer"},transactions:{description:"%{appName} transactions will appear here...",description_fallback:"Your transactions will appear here...",recent:{title:"Recent Transactions"},clear:{label:"Clear All"}}},VC0={argent:{qr_code:{step1:{description:"Put Argent on your home screen for faster access to your wallet.",title:"Open the Argent app"},step2:{description:"Create a wallet and username, or import an existing wallet.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the Scan QR button"}}},bifrost:{qr_code:{step1:{description:"We recommend putting Bifrost Wallet on your home screen for quicker access.",title:"Open the Bifrost Wallet app"},step2:{description:"Create or import a wallet using your recovery phrase.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}}},bitget:{qr_code:{step1:{description:"We recommend putting Bitget Wallet on your home screen for quicker access.",title:"Open the Bitget Wallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",title:"Install the Bitget Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},bitski:{extension:{step1:{description:"We recommend pinning Bitski to your taskbar for quicker access to your wallet.",title:"Install the Bitski extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},coin98:{qr_code:{step1:{description:"We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",title:"Open the Coin98 Wallet app"},step2:{description:"You can easily backup your wallet using our backup feature on your phone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the WalletConnect button"}},extension:{step1:{description:"Click at the top right of your browser and pin Coin98 Wallet for easy access.",title:"Install the Coin98 Wallet extension"},step2:{description:"Create a new wallet or import an existing one.",title:"Create or Import a wallet"},step3:{description:"Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},coinbase:{qr_code:{step1:{description:"We recommend putting Coinbase Wallet on your home screen for quicker access.",title:"Open the Coinbase Wallet app"},step2:{description:"You can easily backup your wallet using the cloud backup feature.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",title:"Install the Coinbase Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},core:{qr_code:{step1:{description:"We recommend putting Core on your home screen for faster access to your wallet.",title:"Open the Core app"},step2:{description:"You can easily backup your wallet using our backup feature on your phone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the WalletConnect button"}},extension:{step1:{description:"We recommend pinning Core to your taskbar for quicker access to your wallet.",title:"Install the Core extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},fox:{qr_code:{step1:{description:"We recommend putting FoxWallet on your home screen for quicker access.",title:"Open the FoxWallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}}},frontier:{qr_code:{step1:{description:"We recommend putting Frontier Wallet on your home screen for quicker access.",title:"Open the Frontier Wallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",title:"Install the Frontier Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},im_token:{qr_code:{step1:{title:"Open the imToken app",description:"Put imToken app on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap Scanner Icon in top right corner",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}}},metamask:{qr_code:{step1:{title:"Open the MetaMask app",description:"We recommend putting MetaMask on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the MetaMask extension",description:"We recommend pinning MetaMask to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},okx:{qr_code:{step1:{title:"Open the OKX Wallet app",description:"We recommend putting OKX Wallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the OKX Wallet extension",description:"We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},omni:{qr_code:{step1:{title:"Open the Omni app",description:"Add Omni to your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap the QR icon and scan",description:"Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."}}},token_pocket:{qr_code:{step1:{title:"Open the TokenPocket app",description:"We recommend putting TokenPocket on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the TokenPocket extension",description:"We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},trust:{qr_code:{step1:{title:"Open the Trust Wallet app",description:"Put Trust Wallet on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap WalletConnect in Settings",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}},extension:{step1:{title:"Install the Trust Wallet extension",description:"Click at the top right of your browser and pin Trust Wallet for easy access."},step2:{title:"Create or Import a wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Refresh your browser",description:"Once you set up Trust Wallet, click below to refresh the browser and load up the extension."}}},uniswap:{qr_code:{step1:{title:"Open the Uniswap app",description:"Add Uniswap Wallet to your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap the QR icon and scan",description:"Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."}}},zerion:{qr_code:{step1:{title:"Open the Zerion app",description:"We recommend putting Zerion on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the Zerion extension",description:"We recommend pinning Zerion to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},rainbow:{qr_code:{step1:{title:"Open the Rainbow app",description:"We recommend putting Rainbow on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"You can easily backup your wallet using our backup feature on your phone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},enkrypt:{extension:{step1:{description:"We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",title:"Install the Enkrypt Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},frame:{extension:{step1:{description:"We recommend pinning Frame to your taskbar for quicker access to your wallet.",title:"Install Frame & the companion extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},one_key:{extension:{step1:{title:"Install the OneKey Wallet extension",description:"We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},phantom:{extension:{step1:{title:"Install the Phantom extension",description:"We recommend pinning Phantom to your taskbar for easier access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},rabby:{extension:{step1:{title:"Install the Rabby extension",description:"We recommend pinning Rabby to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},safeheron:{extension:{step1:{title:"Install the Core extension",description:"We recommend pinning Safeheron to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},taho:{extension:{step1:{title:"Install the Taho extension",description:"We recommend pinning Taho to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},talisman:{extension:{step1:{title:"Install the Talisman extension",description:"We recommend pinning Talisman to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import an Ethereum Wallet",description:"Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},xdefi:{extension:{step1:{title:"Install the XDEFI Wallet extension",description:"We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},zeal:{extension:{step1:{title:"Install the Zeal extension",description:"We recommend pinning Zeal to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},safepal:{extension:{step1:{title:"Install the SafePal Wallet extension",description:"Click at the top right of your browser and pin SafePal Wallet for easy access."},step2:{title:"Create or Import a wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Refresh your browser",description:"Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the SafePal Wallet app",description:"Put SafePal Wallet on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap WalletConnect in Settings",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}}},desig:{extension:{step1:{title:"Install the Desig extension",description:"We recommend pinning Desig to your taskbar for easier access to your wallet."},step2:{title:"Create a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},subwallet:{extension:{step1:{title:"Install the SubWallet extension",description:"We recommend pinning SubWallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the SubWallet app",description:"We recommend putting SubWallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},clv:{extension:{step1:{title:"Install the CLV Wallet extension",description:"We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the CLV Wallet app",description:"We recommend putting CLV Wallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},okto:{qr_code:{step1:{title:"Open the Okto app",description:"Add Okto to your home screen for quick access"},step2:{title:"Create an MPC Wallet",description:"Create an account and generate a wallet"},step3:{title:"Tap WalletConnect in Settings",description:"Tap the Scan QR icon at the top right and confirm the prompt to connect."}}},ledger:{desktop:{step1:{title:"Open the Ledger Live app",description:"We recommend putting Ledger Live on your home screen for quicker access."},step2:{title:"Set up your Ledger",description:"Set up a new Ledger or connect to an existing one."},step3:{title:"Connect",description:"A connection prompt will appear for you to connect your wallet."}},qr_code:{step1:{title:"Open the Ledger Live app",description:"We recommend putting Ledger Live on your home screen for quicker access."},step2:{title:"Set up your Ledger",description:"You can either sync with the desktop app or connect your Ledger."},step3:{title:"Scan the code",description:"Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."}}}},JF={connect_wallet:NC0,intro:RC0,sign_in:MC0,connect:jC0,connect_scan:zC0,connector_group:LC0,get:$C0,get_options:UC0,get_mobile:WC0,get_instructions:qC0,chains:HC0,profile:GC0,wallet_connectors:VC0},KC0={label:"Conectar la billetera"},QC0={title:"¿Qué es una billetera?",description:"Una billetera se usa para enviar, recibir, almacenar y mostrar activos digitales. También es una nueva forma de iniciar sesión, sin necesidad de crear nuevas cuentas y contraseñas en cada sitio web.",digital_asset:{title:"Un hogar para tus Activos Digitales",description:"Las carteras se utilizan para enviar, recibir, almacenar y mostrar activos digitales como Ethereum y NFTs."},login:{title:"Una nueva forma de iniciar sesión",description:"En lugar de crear nuevas cuentas y contraseñas en cada sitio web, simplemente conecta tu cartera."},get:{label:"Obtener una billetera"},learn_more:{label:"Obtener más información"}},JC0={label:"Verifica tu cuenta",description:"Para terminar de conectar, debes firmar un mensaje en tu billetera para verificar que eres el propietario de esta cuenta.",message:{send:"Enviar mensaje",preparing:"Preparando mensaje...",cancel:"Cancelar",preparing_error:"Error al preparar el mensaje, ¡intenta de nuevo!"},signature:{waiting:"Esperando firma...",verifying:"Verificando firma...",signing_error:"Error al firmar el mensaje, ¡intenta de nuevo!",verifying_error:"Error al verificar la firma, ¡intenta de nuevo!",oops_error:"¡Ups! Algo salió mal."}},YC0={label:"Conectar",title:"Conectar una billetera",new_to_ethereum:{description:"¿Eres nuevo en las billeteras Ethereum?",learn_more:{label:"Obtener más información"}},learn_more:{label:"Obtener más información"},recent:"Reciente",status:{opening:"Abriendo %{wallet}...",not_installed:"%{wallet} no está instalado",not_available:"%{wallet} no está disponible",confirm:"Confirma la conexión en la extensión"},secondary_action:{get:{description:"¿No tienes %{wallet}?",label:"OBTENER"},install:{label:"INSTALAR"},retry:{label:"REINTENTAR"}},walletconnect:{description:{full:"¿Necesitas el modal oficial de WalletConnect?",compact:"¿Necesitas el modal de WalletConnect?"},open:{label:"ABRIR"}}},ZC0={title:"Escanea con %{wallet}",fallback_title:"Escanea con tu teléfono"},XC0={recommended:"Recomendado",other:"Otro",popular:"Popular",more:"Más",others:"Otros"},u70={title:"Obtener una billetera",action:{label:"OBTENER"},mobile:{description:"Billetera Móvil"},extension:{description:"Extensión de navegador"},mobile_and_extension:{description:"Billetera móvil y extensión"},mobile_and_desktop:{description:"Billetera Móvil y de Escritorio"},looking_for:{title:"¿No es lo que estás buscando?",mobile:{description:"Seleccione una billetera en la pantalla principal para comenzar con un proveedor de billetera diferente."},desktop:{compact_description:"Seleccione una cartera en la pantalla principal para comenzar con un proveedor de cartera diferente.",wide_description:"Seleccione una cartera a la izquierda para comenzar con un proveedor de cartera diferente."}}},e70={title:"Comienza con %{wallet}",short_title:"Obtener %{wallet}",mobile:{title:"%{wallet} para móvil",description:"Use la billetera móvil para explorar el mundo de Ethereum.",download:{label:"Obtener la aplicación"}},extension:{title:"%{wallet} para %{browser}",description:"Acceda a su billetera directamente desde su navegador web favorito.",download:{label:"Añadir a %{browser}"}},desktop:{title:"%{wallet} para %{platform}",description:"Acceda a su billetera de forma nativa desde su potente escritorio.",download:{label:"Añadir a %{platform}"}}},t70={title:"Instalar %{wallet}",description:"Escanee con su teléfono para descargar en iOS o Android",continue:{label:"Continuar"}},n70={mobile:{connect:{label:"Conectar"},learn_more:{label:"Obtener más información"}},extension:{refresh:{label:"Actualizar"},learn_more:{label:"Obtener más información"}},desktop:{connect:{label:"Conectar"},learn_more:{label:"Obtener más información"}}},r70={title:"Cambiar redes",wrong_network:"Se detectó la red incorrecta, cambia o desconéctate para continuar.",confirm:"Confirmar en la cartera",switching_not_supported:"Tu cartera no admite cambiar las redes desde %{appName}. Intenta cambiar las redes desde tu cartera.",switching_not_supported_fallback:"Su billetera no admite el cambio de redes desde esta aplicación. Intente cambiar de red desde dentro de su billetera en su lugar.",disconnect:"Desconectar",connected:"Conectado"},i70={disconnect:{label:"Desconectar"},copy_address:{label:"Copiar dirección",copied:"¡Copiado!"},explorer:{label:"Ver más en el explorador"},transactions:{description:"%{appName} transacciones aparecerán aquí...",description_fallback:"Tus transacciones aparecerán aquí...",recent:{title:"Transacciones recientes"},clear:{label:"Borrar Todo"}}},a70={argent:{qr_code:{step1:{description:"Coloque Argent en su pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Argent"},step2:{description:"Cree una billetera y un nombre de usuario, o importe una billetera existente.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera.",title:"Toque el botón Escanear QR"}}},bifrost:{qr_code:{step1:{description:"Recomendamos poner Bifrost Wallet en su pantalla de inicio para un acceso más rápido.",title:"Abra la aplicación Bifrost Wallet"},step2:{description:"Cree o importe una billetera usando su frase de recuperación.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conecte su billetera.",title:"Toque el botón de escaneo"}}},bitget:{qr_code:{step1:{description:"Recomendamos colocar Bitget Wallet en su pantalla de inicio para un acceso más rápido.",title:"Abra la aplicación Bitget Wallet"},step2:{description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que pueda conectar su billetera.",title:"Toque el botón de escanear"}},extension:{step1:{description:"Recomendamos anclar Bitget Wallet a su barra de tareas para un acceso más rápido a su billetera.",title:"Instale la extensión de la Billetera Bitget"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refrescar tu navegador"}}},bitski:{extension:{step1:{description:"Recomendamos anclar Bitski a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión Bitski"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión.",title:"Actualiza tu navegador"}}},coin98:{qr_code:{step1:{description:"Recomendamos poner Coin98 Wallet en la pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Coin98 Wallet"},step2:{description:"Puede respaldar fácilmente su billetera utilizando nuestra función de respaldo en su teléfono.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conecte su billetera.",title:"Toque el botón WalletConnect"}},extension:{step1:{description:"Haga clic en la parte superior derecha de su navegador y fije Coin98 Wallet para un fácil acceso.",title:"Instale la extensión Coin98 Wallet"},step2:{description:"Crea una nueva billetera o importa una existente.",title:"Crear o Importar una billetera"},step3:{description:"Una vez que configures Coin98 Wallet, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},coinbase:{qr_code:{step1:{description:"Recomendamos poner Coinbase Wallet en tu pantalla de inicio para un acceso más rápido.",title:"Abre la aplicación de la Billetera Coinbase"},step2:{description:"Puedes respaldar tu billetera fácilmente utilizando la función de respaldo en la nube.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera.",title:"Pulsa el botón de escanear"}},extension:{step1:{description:"Te recomendamos anclar la Billetera Coinbase a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de la Billetera Coinbase"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic abajo para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},core:{qr_code:{step1:{description:"Recomendamos poner Core en su pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Core"},step2:{description:"Puedes respaldar fácilmente tu billetera utilizando nuestra función de respaldo en tu teléfono.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera.",title:"Toque el botón WalletConnect"}},extension:{step1:{description:"Recomendamos fijar Core a tu barra de tareas para acceder más rápido a tu billetera.",title:"Instala la extensión Core"},step2:{description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},fox:{qr_code:{step1:{description:"Recomendamos poner FoxWallet en tu pantalla de inicio para un acceso más rápido.",title:"Abre la aplicación FoxWallet"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá una solicitud de conexión para que conectes tu billetera.",title:"Toca el botón de escanear"}}},frontier:{qr_code:{step1:{description:"Recomendamos poner la Billetera Frontier en tu pantalla principal para un acceso más rápido.",title:"Abre la aplicación de la Billetera Frontier"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un mensaje para que conectes tu billetera.",title:"Haz clic en el botón de escaneo"}},extension:{step1:{description:"Recomendamos anclar la billetera Frontier a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de la billetera Frontier"},step2:{description:"Asegúrese de hacer una copia de seguridad de su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic a continuación para actualizar el navegador y cargar la extensión.",title:"Actualizar tu navegador"}}},im_token:{qr_code:{step1:{title:"Abrir la aplicación imToken",description:"Pon la aplicación imToken en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca el Icono del Escáner en la esquina superior derecha",description:"Elija Nueva Conexión, luego escanee el código QR y confirme el aviso para conectar."}}},metamask:{qr_code:{step1:{title:"Abre la aplicación MetaMask",description:"Recomendamos colocar MetaMask en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión MetaMask",description:"Recomendamos anclar MetaMask a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},okx:{qr_code:{step1:{title:"Abre la aplicación OKX Wallet",description:"Recomendamos colocar OKX Wallet en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión de Billetera OKX",description:"Recomendamos anclar la Billetera OKX a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión."}}},omni:{qr_code:{step1:{title:"Abra la aplicación Omni",description:"Agregue Omni a su pantalla de inicio para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crear una nueva billetera o importar una existente."},step3:{title:"Toque el icono de QR y escanee",description:"Toca el icono QR en tu pantalla principal, escanea el código y confirma el aviso para conectar."}}},token_pocket:{qr_code:{step1:{title:"Abre la aplicación TokenPocket",description:"Recomendamos colocar TokenPocket en tu pantalla principal para un acceso más rápido."},step2:{title:"Crear o importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escaneo",description:"Después de escanear, aparecerá una solicitud de conexión para que puedas conectar tu billetera."}},extension:{step1:{title:"Instala la extensión TokenPocket",description:"Recomendamos anclar TokenPocket a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},trust:{qr_code:{step1:{title:"Abre la aplicación Trust Wallet",description:"Ubica Trust Wallet en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca WalletConnect en Configuraciones",description:"Elige Nueva Conexión, luego escanea el código QR y confirma el aviso para conectar."}},extension:{step1:{title:"Instala la extensión de Trust Wallet",description:"Haz clic en la parte superior derecha de tu navegador y fija Trust Wallet para un fácil acceso."},step2:{title:"Crea o Importa una billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Refresca tu navegador",description:"Una vez que configures Trust Wallet, haz clic abajo para refrescar el navegador y cargar la extensión."}}},uniswap:{qr_code:{step1:{title:"Abre la aplicación Uniswap",description:"Agrega la billetera Uniswap a tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca el icono QR y escanea",description:"Toca el icono QR en tu pantalla de inicio, escanea el código y confirma el prompt para conectar."}}},zerion:{qr_code:{step1:{title:"Abre la aplicación Zerion",description:"Recomendamos poner Zerion en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión Zerion",description:"Recomendamos anclar Zerion a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},rainbow:{qr_code:{step1:{title:"Abre la aplicación Rainbow",description:"Recomendamos poner Rainbow en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Puedes respaldar fácilmente tu billetera usando nuestra función de respaldo en tu teléfono."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá una solicitud de conexión para que conectes tu billetera."}}},enkrypt:{extension:{step1:{description:"Recomendamos anclar la Billetera Enkrypt a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de Billetera Enkrypt"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},frame:{extension:{step1:{description:"Recomendamos anclar Frame a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala Frame y la extensión complementaria"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},one_key:{extension:{step1:{title:"Instale la extensión de Billetera OneKey",description:"Recomendamos anclar la Billetera OneKey a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},phantom:{extension:{step1:{title:"Instala la extensión Phantom",description:"Recomendamos fijar Phantom a tu barra de tareas para un acceso más fácil a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta de recuperación con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},rabby:{extension:{step1:{title:"Instala la extensión Rabby",description:"Recomendamos anclar Rabby a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para actualizar el navegador y cargar la extensión."}}},safeheron:{extension:{step1:{title:"Instala la extensión Core",description:"Recomendamos anclar Safeheron a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},taho:{extension:{step1:{title:"Instala la extensión de Taho",description:"Recomendamos anclar Taho a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crea o Importa una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},talisman:{extension:{step1:{title:"Instala la extensión de Talisman",description:"Recomendamos anclar Talisman a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crea o importa una billetera Ethereum",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase de recuperación con nadie."},step3:{title:"Recarga tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},xdefi:{extension:{step1:{title:"Instala la extensión de la billetera XDEFI",description:"Recomendamos anclar XDEFI Wallet a su barra de tareas para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualice su navegador",description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión."}}},zeal:{extension:{step1:{title:"Instale la extensión Zeal",description:"Recomendamos anclar Zeal a su barra de tareas para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}}},safepal:{extension:{step1:{title:"Instale la extensión de la billetera SafePal",description:"Haga clic en la esquina superior derecha de su navegador y ancle SafePal Wallet para un fácil acceso."},step2:{title:"Crear o Importar una billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Refrescar tu navegador",description:"Una vez que configure la Billetera SafePal, haga clic abajo para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abra la aplicación Billetera SafePal",description:"Coloque la Billetera SafePal en su pantalla de inicio para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca WalletConnect en Configuraciones",description:"Elija Nueva Conexión, luego escanee el código QR y confirme el aviso para conectar."}}},desig:{extension:{step1:{title:"Instala la extensión Desig",description:"Recomendamos anclar Desig a tu barra de tareas para acceder más fácilmente a tu cartera."},step2:{title:"Crea una Cartera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}}},subwallet:{extension:{step1:{title:"Instala la extensión SubWallet",description:"Recomendamos anclar SubWallet a tu barra de tareas para acceder a tu cartera más rápidamente."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase de recuperación con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abre la aplicación SubWallet",description:"Recomendamos colocar SubWallet en tu pantalla principal para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Toque el botón de escaneo",description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera."}}},clv:{extension:{step1:{title:"Instala la extensión CLV Wallet",description:"Recomendamos anclar la billetera CLV a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abra la aplicación CLV Wallet",description:"Recomendamos colocar la billetera CLV en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Toque el botón de escaneo",description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera."}}},okto:{qr_code:{step1:{title:"Abra la aplicación Okto",description:"Agrega Okto a tu pantalla de inicio para un acceso rápido"},step2:{title:"Crea una billetera MPC",description:"Crea una cuenta y genera una billetera"},step3:{title:"Toca WalletConnect en Configuraciones",description:"Toca el icono de Escanear QR en la parte superior derecha y confirma el mensaje para conectar."}}},ledger:{desktop:{step1:{title:"Abra la aplicación Ledger Live",description:"Recomendamos poner Ledger Live en su pantalla de inicio para un acceso más rápido."},step2:{title:"Configure su Ledger",description:"Configure un nuevo Ledger o conéctese a uno existente."},step3:{title:"Conectar",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},qr_code:{step1:{title:"Abra la aplicación Ledger Live",description:"Recomendamos poner Ledger Live en su pantalla de inicio para un acceso más rápido."},step2:{title:"Configure su Ledger",description:"Puedes sincronizar con la aplicación de escritorio o conectar tu Ledger."},step3:{title:"Escanea el código",description:"Toca WalletConnect y luego cambia a Scanner. Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}}}},YF={connect_wallet:KC0,intro:QC0,sign_in:JC0,connect:YC0,connect_scan:ZC0,connector_group:XC0,get:u70,get_options:e70,get_mobile:t70,get_instructions:n70,chains:r70,profile:i70,wallet_connectors:a70},o70={label:"Connecter le portefeuille"},s70={title:"Qu'est-ce qu'un portefeuille?",description:"Un portefeuille est utilisé pour envoyer, recevoir, stocker et afficher des actifs numériques. C'est aussi une nouvelle façon de se connecter, sans avoir besoin de créer de nouveaux comptes et mots de passe sur chaque site.",digital_asset:{title:"Un foyer pour vos actifs numériques",description:"Les portefeuilles sont utilisés pour envoyer, recevoir, stocker et afficher des actifs numériques comme Ethereum et les NFTs."},login:{title:"Une nouvelle façon de se connecter",description:"Au lieu de créer de nouveaux comptes et mots de passe sur chaque site Web, connectez simplement votre portefeuille."},get:{label:"Obtenir un portefeuille"},learn_more:{label:"En savoir plus"}},f70={label:"Vérifiez votre compte",description:"Pour terminer la connexion, vous devez signer un message dans votre portefeuille pour vérifier que vous êtes le propriétaire de ce compte.",message:{send:"Envoyer le message",preparing:"Préparation du message...",cancel:"Annuler",preparing_error:"Erreur lors de la préparation du message, veuillez réessayer!"},signature:{waiting:"En attente de la signature...",verifying:"Vérification de la signature...",signing_error:"Erreur lors de la signature du message, veuillez réessayer!",verifying_error:"Erreur lors de la vérification de la signature, veuillez réessayer!",oops_error:"Oups, quelque chose a mal tourné!"}},l70={label:"Connecter",title:"Connecter un portefeuille",new_to_ethereum:{description:"Nouveau aux portefeuilles Ethereum?",learn_more:{label:"En savoir plus"}},learn_more:{label:"En savoir plus"},recent:"Récents",status:{opening:"Ouverture %{wallet}...",not_installed:"%{wallet} n'est pas installé",not_available:"%{wallet} n'est pas disponible",confirm:"Confirmez la connexion dans l'extension"},secondary_action:{get:{description:"Vous n'avez pas de %{wallet}?",label:"OBTENIR"},install:{label:"INSTALLER"},retry:{label:"RÉESSAYER"}},walletconnect:{description:{full:"Vous avez besoin du modal officiel de WalletConnect ?",compact:"Besoin du modal de WalletConnect ?"},open:{label:"OUVRIR"}}},c70={title:"Scannez avec %{wallet}",fallback_title:"Scannez avec votre téléphone"},E70={recommended:"Recommandé",other:"Autre",popular:"Populaire",more:"Plus",others:"Autres"},d70={title:"Obtenez un portefeuille",action:{label:"OBTENIR"},mobile:{description:"Portefeuille mobile"},extension:{description:"Extension de navigateur"},mobile_and_extension:{description:"Portefeuille mobile et extension"},mobile_and_desktop:{description:"Portefeuille mobile et de bureau"},looking_for:{title:"Ce n'est pas ce que vous cherchez ?",mobile:{description:"Sélectionnez un portefeuille sur l'écran principal pour commencer avec un autre fournisseur de portefeuille."},desktop:{compact_description:"Sélectionnez un portefeuille sur l'écran principal pour commencer avec un autre fournisseur de portefeuille.",wide_description:"Sélectionnez un portefeuille sur la gauche pour commencer avec un autre fournisseur de portefeuille."}}},p70={title:"Commencez avec %{wallet}",short_title:"Obtenez %{wallet}",mobile:{title:"%{wallet} pour mobile",description:"Utilisez le portefeuille mobile pour explorer le monde d'Ethereum.",download:{label:"Obtenez l'application"}},extension:{title:"%{wallet} pour %{browser}",description:"Accédez à votre portefeuille directement depuis votre navigateur web préféré.",download:{label:"Ajouter à %{browser}"}},desktop:{title:"%{wallet} pour %{platform}",description:"Accédez à votre portefeuille nativement depuis votre puissant ordinateur de bureau.",download:{label:"Ajouter à %{platform}"}}},h70={title:"Installer %{wallet}",description:"Scannez avec votre téléphone pour télécharger sur iOS ou Android",continue:{label:"Continuer"}},C70={mobile:{connect:{label:"Connecter"},learn_more:{label:"En savoir plus"}},extension:{refresh:{label:"Rafraîchir"},learn_more:{label:"En savoir plus"}},desktop:{connect:{label:"Connecter"},learn_more:{label:"En savoir plus"}}},m70={title:"Changer de Réseaux",wrong_network:"Mauvais réseau détecté, changez ou déconnectez-vous pour continuer.",confirm:"Confirmer dans le portefeuille",switching_not_supported:"Votre portefeuille ne supporte pas le changement de réseaux depuis %{appName}. Essayez de changer de réseau depuis votre portefeuille.",switching_not_supported_fallback:"Votre portefeuille ne prend pas en charge le changement de réseaux à partir de cette application. Essayez de changer de réseau à partir de votre portefeuille à la place.",disconnect:"Déconnecter",connected:"Connecté"},b70={disconnect:{label:"Déconnecter"},copy_address:{label:"Copier l'adresse",copied:"Copié !"},explorer:{label:"Voir plus sur l'explorateur"},transactions:{description:"%{appName} transactions apparaîtront ici...",description_fallback:"Vos transactions apparaîtront ici...",recent:{title:"Transactions Récentes"},clear:{label:"Tout supprimer"}}},g70={argent:{qr_code:{step1:{description:"Mettez Argent sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Argent"},step2:{description:"Créez un portefeuille et un nom d'utilisateur, ou importez un portefeuille existant.",title:"Créer ou Importer un Portefeuille"},step3:{description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton Scan QR"}}},bifrost:{qr_code:{step1:{description:"Nous vous recommandons de mettre le portefeuille Bifrost sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Bifrost Wallet"},step2:{description:"Créez ou importez un portefeuille en utilisant votre phrase de récupération.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après votre scan, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}}},bitget:{qr_code:{step1:{description:"Nous vous recommandons de placer Bitget Wallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Bitget Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après le scan, une incitation de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous vous recommandons d'épingler Bitget Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension de portefeuille Bitget"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créez ou Importez un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},bitski:{extension:{step1:{description:"Nous recommandons d'épingler Bitski à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Bitski"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},coin98:{qr_code:{step1:{description:"Nous vous recommandons de placer Coin98 Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Coin98 Wallet"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après que vous ayez scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton WalletConnect"}},extension:{step1:{description:"Cliquez en haut à droite de votre navigateur et épinglez Coin98 Wallet pour un accès facile.",title:"Installez l'extension Coin98 Wallet"},step2:{description:"Créez un nouveau portefeuille ou importez-en un existant.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré Coin98 Wallet, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},coinbase:{qr_code:{step1:{description:"Nous recommandons de placer Coinbase Wallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Coinbase Wallet"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant la fonction de sauvegarde cloud.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion s'affichera pour que vous puissiez connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous recommandons d'épingler Coinbase Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Coinbase Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sûre. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Actualisez votre navigateur"}}},core:{qr_code:{step1:{description:"Nous recommandons de placer Core sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Core"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton WalletConnect"}},extension:{step1:{description:"Nous recommandons d'épingler Core à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Core"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créez ou Importer un Portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},fox:{qr_code:{step1:{description:"Nous recommandons de mettre FoxWallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application FoxWallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invitation à la connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}}},frontier:{qr_code:{step1:{description:"Nous vous recommandons de placer le portefeuille Frontier sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Frontier Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous recommandons d'épingler Frontier Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Frontier Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créez ou importez un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},im_token:{qr_code:{step1:{title:"Ouvrez l'application imToken",description:"Placez l'application imToken sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou importez un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant ."},step3:{title:"Appuyez sur l'icône du scanner dans le coin supérieur droit",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}}},metamask:{qr_code:{step1:{title:"Ouvrez l'application MetaMask",description:"Nous vous recommandons de mettre MetaMask sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Veillez à sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l’extension de MetaMask",description:"Nous recommandons d'épingler MetaMask à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},okx:{qr_code:{step1:{title:"Ouvrez l'application OKX Wallet",description:"Nous recommandons de mettre OKX Wallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de numérisation",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l'extension de portefeuille OKX",description:"Nous vous recommandons d'épingler le portefeuille OKX à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},omni:{qr_code:{step1:{title:"Ouvrez l'application Omni",description:"Ajoutez Omni à votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Touchez l'icône QR et scannez",description:"Appuyez sur l'icône QR sur votre écran d'accueil, scannez le code et confirmez l'invite pour vous connecter."}}},token_pocket:{qr_code:{step1:{title:"Ouvrez l'application TokenPocket",description:"Nous vous recommandons de mettre TokenPocket sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créez ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille à l'aide d'une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Appuyez sur le bouton de scan",description:"Après votre scan, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l'extension TokenPocket",description:"Nous recommandons d'épingler TokenPocket à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},trust:{qr_code:{step1:{title:"Ouvrez l'application Trust Wallet",description:"Placez Trust Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Créer un nouveau portefeuille ou en importer un existant."},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}},extension:{step1:{title:"Installez l'extension Trust Wallet",description:"Cliquez en haut à droite de votre navigateur et épinglez Trust Wallet pour un accès facile."},step2:{title:"Créer ou importer un portefeuille",description:"Créer un nouveau portefeuille ou en importer un existant."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré Trust Wallet, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},uniswap:{qr_code:{step1:{title:"Ouvrez l'application Uniswap",description:"Ajoutez Uniswap Wallet à votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou importez un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Tapez sur l'icône QR et scannez",description:"Touchez l'icône QR sur votre écran d'accueil, scannez le code et confirmez l'invite pour vous connecter."}}},zerion:{qr_code:{step1:{title:"Ouvrez l'application Zerion",description:"Nous vous recommandons de mettre Zerion sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne."},step3:{title:"Appuyez sur le bouton de scan",description:"Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}},extension:{step1:{title:"Installer l'extension Zerion",description:"Nous recommandons d'épingler Zerion à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},rainbow:{qr_code:{step1:{title:"Ouvre l'application Rainbow",description:"Nous vous recommandons de mettre Rainbow sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir scanné, une invite de connexion apparaîtra pour que vous connectiez votre portefeuille."}}},enkrypt:{extension:{step1:{description:"Nous vous recommandons d'épingler Enkrypt Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Enkrypt Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l’extension.",title:"Rafraîchissez votre navigateur"}}},frame:{extension:{step1:{description:"Nous vous recommandons d'épingler Frame à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez Frame & l'extension complémentaire"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille à l'aide d'une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},one_key:{extension:{step1:{title:"Installez l'extension OneKey Wallet",description:"Nous vous recommandons d'épingler OneKey Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},phantom:{extension:{step1:{title:"Installez l'extension Phantom",description:"Nous vous recommandons d'épingler Phantom à votre barre des tâches pour un accès plus facile à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération secrète avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},rabby:{extension:{step1:{title:"Installez l'extension Rabby",description:"Nous recommandons d'épingler Rabby à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Actualisez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},safeheron:{extension:{step1:{title:"Installez l'extension Core",description:"Nous recommandons d'épingler Safeheron à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},taho:{extension:{step1:{title:"Installez l'extension Taho",description:"Nous vous recommandons d'épingler Taho à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},talisman:{extension:{step1:{title:"Installez l'extension Talisman",description:"Nous vous recommandons d'épingler Talisman à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou importer un portefeuille Ethereum",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},xdefi:{extension:{step1:{title:"Installez l'extension du portefeuille XDEFI",description:"Nous vous recommandons d'épingler XDEFI Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},zeal:{extension:{step1:{title:"Installez l'extension Zeal",description:"Nous vous recommandons d'épingler Zeal à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},safepal:{extension:{step1:{title:"Installez l'extension SafePal Wallet",description:"Cliquez en haut à droite de votre navigateur et épinglez SafePal Wallet pour un accès facile."},step2:{title:"Créer ou Importer un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré SafePal Wallet, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application SafePal Wallet",description:"Mettez SafePal Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}}},desig:{extension:{step1:{title:"Installez l'extension Desig",description:"Nous vous recommandons d'épingler Desig à votre barre des tâches pour un accès plus facile à votre portefeuille."},step2:{title:"Créer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},subwallet:{extension:{step1:{title:"Installez l'extension SubWallet",description:"Nous vous recommandons d'épingler SubWallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application SubWallet",description:"Nous vous recommandons de mettre SubWallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}}},clv:{extension:{step1:{title:"Installez l'extension CLV Wallet",description:"Nous vous recommandons d'épingler CLV Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application CLV Wallet",description:"Nous vous recommandons de mettre CLV Wallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}}},okto:{qr_code:{step1:{title:"Ouvrez l'application Okto",description:"Ajoutez Okto à votre écran d'accueil pour un accès rapide"},step2:{title:"Créer un portefeuille MPC",description:"Créez un compte et générez un portefeuille"},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Touchez l'icône 'Scan QR' en haut à droite et confirmez l'invite pour vous connecter."}}},ledger:{desktop:{step1:{title:"Ouvrez l'application Ledger Live",description:"Nous vous recommandons de mettre Ledger Live sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Configurez votre Ledger",description:"Configurez un nouveau Ledger ou connectez-vous à un existant."},step3:{title:"Connecter",description:"Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}},qr_code:{step1:{title:"Ouvrez l'application Ledger Live",description:"Nous vous recommandons de mettre Ledger Live sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Configurez votre Ledger",description:"Vous pouvez soit synchroniser avec l'application de bureau, soit connecter votre Ledger."},step3:{title:"Scannez le code",description:"Appuyez sur WalletConnect puis passez au Scanner. Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}}}},ZF={connect_wallet:o70,intro:s70,sign_in:f70,connect:l70,connect_scan:c70,connector_group:E70,get:d70,get_options:p70,get_mobile:h70,get_instructions:C70,chains:m70,profile:b70,wallet_connectors:g70},A70={label:"वॉलेट को कनेक्ट करें"},y70={title:"वॉलेट क्या है?",description:"एक वॉलेट का उपयोग डिजिटल संपत्तियों को भेजने, प्राप्त करने, संग्रहित करने और प्रदर्शित करने के लिए किया जाता है। यह एक नया तरीका भी है लॉग इन करने का, हर वेबसाइट पर नए खाते और पासवर्ड बनाने की जरूरत के बिना।",digital_asset:{title:"अपने डिजिटल संपत्तियों के लिए एक घर",description:"वॉलेट का उपयोग Ethereum और NFTs जैसी डिजिटल संपत्तियों को भेजने, प्राप्त करने, संग्रहित करने और प्रदर्शित करने के लिए किया जाता है."},login:{title:"लॉग इन करने का एक नया तरीका",description:"हर वेबसाइट पर नए खाते और पासवर्ड बनाने की बजाय, बस अपना वॉलेट कनेक्ट करें."},get:{label:"एक वॉलेट प्राप्त करें"},learn_more:{label:"और जानें"}},v70={label:"अपने खाते की पुष्टि करें",description:"जुड़ने को पूरा करने के लिए, आपको अपने बटुए में एक संदेश पर हस्ताक्षर करना होगा ताकि पुष्टि हो सके कि आप इस खाते के मालिक हैं।",message:{send:"संदेश भेजें",preparing:"संदेश तैयार कर रहा है...",cancel:"रद्द करें",preparing_error:"संदेश तैयार करते समय त्रुटि, कृपया पुनः प्रयास करें!"},signature:{waiting:"हस्ताक्षर का इंतजार कर रहा है...",verifying:"हस्ताक्षर की पुष्टि की जा रही है...",signing_error:"संदेश पर हस्ताक्षर करते समय त्रुटि, कृपया पुनः प्रयास करें!",verifying_error:"हस्ताक्षर की पुष्टि में त्रुटि, कृपया पुनः प्रयास करें!",oops_error:"ओह, कुछ गलत हो गया!"}},B70={label:"कनेक्ट करें",title:"वॉलेट को कनेक्ट करें",new_to_ethereum:{description:"Ethereum वॉलेट्स में नए हैं?",learn_more:{label:"और जानें"}},learn_more:{label:"और जानें।"},recent:"हाल ही में",status:{opening:"%{wallet}खोल रहा है...",not_installed:"%{wallet} स्थापित नहीं है",not_available:"%{wallet} उपलब्ध नहीं है",confirm:"एक्सटेंशन में कनेक्शन की पुष्टि करें"},secondary_action:{get:{description:"क्या आपके पास %{wallet}नहीं है ?",label:"प्राप्त करें"},install:{label:"स्थापित करें"},retry:{label:"पुनः प्रयास करें"}},walletconnect:{description:{full:"क्या आपको आधिकारिक WalletConnect मोडल की आवश्यकता है?",compact:"क्या आपको WalletConnect मोडल की आवश्यकता है?"},open:{label:"खोलें"}}},F70={title:"स्कैन करें विथ %{wallet}",fallback_title:"अपने फोन से स्कैन करें"},D70={recommended:"अनुशंसित",other:"अन्य",popular:"लोकप्रिय",more:"अधिक",others:"अन्य लोग"},w70={title:"एक वॉलेट प्राप्त करें",action:{label:"प्राप्त करें"},mobile:{description:"मोबाइल वॉलेट"},extension:{description:"ब्राउज़र एक्सटेंशन"},mobile_and_extension:{description:"मोबाइल वॉलेट और एक्सटेंशन"},mobile_and_desktop:{description:"मोबाइल और डेस्कटॉप वॉलेट"},looking_for:{title:"क्या आपको जो चाहिए वह नहीं मिल रहा है?",mobile:{description:"मुख्य स्क्रीन पर एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।"},desktop:{compact_description:"मुख्य स्क्रीन पर एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।",wide_description:"बाएं एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।"}}},x70={title:"%{wallet}के साथ शुरू करें",short_title:"%{wallet}प्राप्त करें",mobile:{title:"मोबाइल के लिए %{wallet}",description:"मोबाइल वॉलेट का उपयोग करके Ethereum की दुनिया का अन्वेषण करें।",download:{label:"ऐप प्राप्त करें"}},extension:{title:"%{wallet} के लिए %{browser}",description:"अपने पसंदीदा वेब ब्राउज़र से अपने वॉलेट तक पहुंचें।",download:{label:"करें जोड़ें %{browser}"}},desktop:{title:"%{wallet} के लिए %{platform}",description:"अपने शक्तिशाली डेस्कटॉप से आपके वॉलेट की स्वतंत्रता द्वारा पहुंच।",download:{label:"को जोड़ें %{platform}"}}},k70={title:"स्थापित करें %{wallet}",description:"iOS या Android पर डाउनलोड करने के लिए अपने फोन से स्कैन करें",continue:{label:"जारी रखें"}},_70={mobile:{connect:{label:"जोड़ें"},learn_more:{label:"और जानें"}},extension:{refresh:{label:"ताज़ा करें"},learn_more:{label:"और जानें"}},desktop:{connect:{label:"कनेक्ट करें"},learn_more:{label:"और जानें"}}},S70={title:"नेटवर्क स्विच करें",wrong_network:"गलत नेटवर्क का पता चला, जारी रखने के लिए स्विच करें या कनेक्ट करें।",confirm:"वॉलेट में पुष्टि करें",switching_not_supported:"आपका वॉलेट नेटवर्क्स को %{appName}से स्विच करना समर्थन नहीं करता . बजाय अपने वॉलेट के भीतर से नेटवर्क स्विच करने का प्रयास करें।",switching_not_supported_fallback:"आपका वॉलेट इस एप से नेटवर्क्स स्विच करने का समर्थन नहीं करता। बजाय उसके, अपना वॉलेट द्वारा नेटवर्क्स स्विच करने की कोशिश करें।",disconnect:"डिकनेक्ट",connected:"कनेक्ट किया गया"},T70={disconnect:{label:"डिकनेक्ट"},copy_address:{label:"पता कॉपी करें",copied:"कॉपी कर दिया गया!"},explorer:{label:"एक्सप्लोरर पर अधिक देखें"},transactions:{description:"%{appName} लेन - देन यहां दिखाई देंगे...",description_fallback:"आपके लेन-देन यहां दिखाई देंगे...",recent:{title:"हाल के लेन - देन"},clear:{label:"सभी को हटाएं"}}},P70={argent:{qr_code:{step1:{description:"अपने वॉलेट को जल्दी से एक्सेस करने के लिए आपके होम स्क्रीन पर Argent डालें।",title:"Argent ऐप खोलें"},step2:{description:"वॉलेट और उपयोगकर्ता नाम बनाएं, या मौजूदा वॉलेट को आयात करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।",title:"QR स्कैन बटन को टैप करें"}}},bifrost:{qr_code:{step1:{description:"हम आपको सलाह देते हैं कि Bifrost Wallet को अपने होम स्क्रीन पर लगाएं, ताकि त्वरित एक्सेस को सुनिश्चित किया जा सके।",title:"Bifrost Wallet ऐप को खोलें"},step2:{description:"अपने रिकवरी फ़्रेज़ का उपयोग करके एक वॉलेट बनाएं या इंपोर्ट करें।",title:"वॉलेट बनाएं या इंपोर्ट करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।",title:"स्कैन बटन को टैप करें"}}},bitget:{qr_code:{step1:{description:"हम इसे सुझाव देते हैं कि आप अपने होम स्क्रीन पर Bitget वॉलेट को रखें ताकि जल्दी एक्सेस कर सकें।",title:"Bitget वॉलेट एप को खोलें"},step2:{description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने का एक संकेत दिखाई देगा।",title:"स्कैन बटन पर टैप करें"}},extension:{step1:{description:"हम इसे सुझाव देते हैं कि आप Bitget वॉलेट को आपके टास्कबार में पिन करें ताकि आपके वॉलेट तक जल्दी पहुंच सकें।",title:"Bitget Wallet एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप किसी सुरक्षित तरीके से ले रहे हैं। अपनी गुप्त वाक्यांश को कभी किसी के साथ साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},bitski:{extension:{step1:{description:"हम आपको अपने वॉलेट तक जल्दी पहुंचने के लिए Bitski को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Bitski एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपने वॉलेट का बैकअप बना रहे हैं। कभी भी किसी के साथ अपने गोपनीय वाक्यांश को साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेट कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},coin98:{qr_code:{step1:{description:"हम आपके वॉलेट तक तेजी से पहुंचने के लिए अपने होम स्क्रीन पर Coin98 वॉलेट रखने की सलाह देते हैं।",title:"Coin98 वॉलेट ऐप को खोलें"},step2:{description:"आप अपने फोन पर हमारे बैकअप फीचर का उपयोग करके आसानी से अपने वॉलेट का बैकअप कर सकते हैं।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रांप्ट दिखाई देगा।",title:"WalletConnect बटन पर टैप करें"}},extension:{step1:{description:"अपने ब्राउज़र के ऊपरी दाएं हिस्से पर क्लिक करें और आसानी से पहुंच के लिए Coin98 वॉलेट को पिन करें।",title:"Coin98 वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"नया बटुआ बनाएं या मौजूदा को आयात करें।",title:"एक बटुआ बनाएं या आयात करें"},step3:{description:"एक बार जब आप Coin98 वॉलेट सेट करते हैं, तो नीचे क्लिक करके ब्राउजर को ताजा करें और एक्सटेंशन को लोड करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},coinbase:{qr_code:{step1:{description:"हम आपको सलाह देते हैं कि आपकी मुख्य बिल्ड स्क्रीन पर Coinbase वॉलेट को रखें जिससे आपकी पहुंच तेज हो।",title:"Coinbase वॉलेट ऐप खोलें"},step2:{description:"आप बादल बैकअप सुविधा का उपयोग करके आसानी से अपने वॉलेट का बैकअप ले सकते हैं।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"जैसे ही आप स्कैन करते हैं, आपको अपने वॉलेट से कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।",title:"स्कैन बटन को छूना"}},extension:{step1:{description:"हमारा सिफारिश है कि आप अपने वॉलेट तक जल्दी पहुंचने के लिए Coinbase वॉलेट को अपने टास्कबार पर पिन पर रखें।",title:"Coinbase वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त पुनर्प्राप्ति वाक्यांश कभी भी किसी के साथ साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेट अप करते हैं, तो ब्राउज़र को ताजगी देने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें.",title:"अपना ब्राउज़र ताजा करें"}}},core:{qr_code:{step1:{description:"हम आपकी वॉलेट के तेज एक्सेस के लिए Core को आपके होम स्क्रीन पर डालने की सलाह देते हैं.",title:"Core एप खोलें"},step2:{description:"आप आसानी से अपने फ़ोन पर हमारे बैकअप फीचर का उपयोग करके अपना वॉलेट बैकअप कर सकते हैं.",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए आपके लिए कनेक्शन प्राम्प्ट प्रकट होगा.",title:"WalletConnect बटन को छूने के साथ"}},extension:{step1:{description:"हम अपने वॉलेट के लिए तेज एक्सेस के लिए कोर को अपने टास्कबार में पिन करने की सिफारिश करते हैं।",title:"कोर एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले। कभी भी किसी के साथ अपनी गुप्त वाक्यांश साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपने वॉलेट की स्थापना कर लें, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा कर सकें और एक्सटेंशन को लोड कर सकें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},fox:{qr_code:{step1:{description:"हम FoxWallet को अपने होम स्क्रीन पर रखने की सिफारिश करते हैं ताकि त्वरित एक्सेस मिल सके।",title:"FoxWallet ऐप खोलें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जब आप स्कैन करेंगे, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।",title:"स्कैन बटन पर टैप करें"}}},frontier:{qr_code:{step1:{description:"हमारी सिफारिश है कि आप अपने होम स्क्रीन पर फ्रंटियर वॉलेट रखें जिससे कि आपको त्वरित पहुंच मिले।",title:"फ्रंटियर वॉलेट ऐप को खोलें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जब आप स्कैन करते हैं, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।",title:"स्कैन बटन को टैप करें"}},extension:{step1:{description:"हम आपके वॉलेट की तेजी से पहुंच के लिए Frontier Wallet को अपने टास्कबार में पिन करने की सिफारिश करते हैं।",title:"Frontier Wallet एक्सटेंशन इंस्टॉल करें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"वॉलेट सेटअप होने के बाद, ब्राउज़र को रिफ्रेश करने के लिए नीचे क्लिक करें और एक्सटेंशन लोड करें।",title:"अपना ब्राउज़र रिफ्रेश करें"}}},im_token:{qr_code:{step1:{title:"imToken ऐप खोलें",description:"अपने वॉलेट के तेजी से पहुँच के लिए imToken एप्लीकेशन को अपने होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा एक को आयात करें।"},step3:{title:"ऊपरी दाएं कोने में स्कैनर आइकॉन पर टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},metamask:{qr_code:{step1:{title:"MetaMask ऐप को खोलें",description:"हम आपको MetaMask को आपकी होम स्क्रीन पर रखने की सलाह देते हैं, इससे आपको त्वरित पहुँच मिलेगी।"},step2:{title:"एक वॉलेट बनाएं या इम्पोर्ट करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रॉम्प्ट दिखाई देगा।"}},extension:{step1:{title:"MetaMask एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक जल्दी से पहुँचने के लिए MetaMask को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेना सुनिश्चित करें। अपनी गुप्त वाक्यांश को किसी के साथ शेयर न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट अप करते हैं, तो ब्राउजर को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},okx:{qr_code:{step1:{title:"OKX Wallet ऐप खोलें",description:"हम आपको OKX Wallet को अपने होम स्क्रीन पर रखने की सलाह देते हैं, जिससे आप जल्दी से पहुंच सकें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने का यकीन करें। कभी भी किसी के साथ अपने गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"जब आप स्कैन करते हैं, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।"}},extension:{step1:{title:"OKX वॉलेट एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक तेज़ी से पहुंचने के लिए आपको OKX वॉलेट को अपने कार्यपट्टी में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने का यकीन करें। कभी भी किसी के साथ अपने गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"जब आप अपना वॉलेट सेट अप कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताजा करें और एक्सटेंशन को लोड करें।"}}},omni:{qr_code:{step1:{title:"Omni ऐप को खोलें",description:"अपने वॉलेट तक अधिक जल्दी पहुंचने के लिए Omni को अपने होम स्क्रीन पर जोड़ें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा एक को आयात करें।"},step3:{title:"QR आइकन पर टैप करें और स्कैन करें",description:"अपने होम स्क्रीन पर QR आइकन पर टैप करें, कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},token_pocket:{qr_code:{step1:{title:"TokenPocket ऐप को खोलें",description:"हम आपको TokenPocket को अपने होम स्क्रीन पर रखने की सलाह देते हैं ताकि आपको तेज एक्सेस मिल सके।"},step2:{title:"एक वॉलेट बनाएँ या आयात करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"एक बार स्कैन करने के बाद, आपके लिए एक कनेक्शन प्रॉम्प्ट प्रकट होगा ताकि आप अपने वॉलेट को कनेक्ट कर सकें।"}},extension:{step1:{title:"TokenPocket एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक त्वरित पहुंच के लिए TokenPocket को अपने taskbar पर pin करने की सिफारिश करते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेते हैं। कभी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताज़ा ब्राउज़र लोड करें और एक्सटेंशन अप करें।"}}},trust:{qr_code:{step1:{title:"Trust Wallet ऐप खोलें",description:"अपने वॉलेट तक तेज़ी से पहुंचने के लिए Trust Wallet को अपने होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट आयात करें।"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और प्रम्प्ट की पुष्टि करें।"}},extension:{step1:{title:"Trust Wallet एक्सटेंशन को इंस्टॉल करें",description:"अपने ब्राउज़र के ऊपरी दाएं कोने पर क्लिक करें और Trust Wallet को आसानी से प्रवेश के लिए पिन करें।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट आयात करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार Trust Wallet सेट अप करने के बाद, नीचे क्लिक करें ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए।"}}},uniswap:{qr_code:{step1:{title:"Uniswap ऐप को खोलें",description:"अपने होम स्क्रीन पर Uniswap वॉलेट जोड़ें, इससे आपके वॉलेट तक तेजी से पहुंचने की सुविधा होगी।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट को आयात करें।"},step3:{title:"QR आइकन पर टैप करें और स्कैन करें",description:"अपने होमस्क्रीन पर QR आइकन पर टैप करें, कोड स्कैन करें और प्रम्प्ट को कनेक्ट करने की पुष्टि करें।"}}},zerion:{qr_code:{step1:{title:"Zerion ऐप को खोलें",description:"हम सलाह देते हैं कि आप Zerion को अपने होम स्क्रीन पर रखें, इससे तेजी से एक्सेस करने में आसानी होगी।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"आप स्कैन करने के बाद, एक कनेक्शन प्रोम्प्ट आपके बटुए को कनेक्ट करने के लिए प्रकट होगा।"}},extension:{step1:{title:"Zerion एक्सटेंशन स्थापित करें",description:"हमारी सिफारिश है कि आप अपने वॉलेट तक जल्दी पहुँचने के लिए Zerion को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित विधि का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। अपना गुप्त वाक्य कभी किसी के साथ साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपने वॉलेट की स्थापना कर लें, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},rainbow:{qr_code:{step1:{title:"Rainbow ऐप को खोलें",description:"हम अपने वॉलेट के तेज एक्सेस के लिए Rainbow को अपने होम स्क्रीन पर रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"आप अपने फ़ोन पर हमारे बैकअप फीचर का उपयोग करके अपने वॉलेट का बैकअप आसानी से ले सकते हैं।"},step3:{title:"स्कैन बटन पर टैप करें",description:"जब आप स्कैन करते हैं, तो आपकी वॉलेट से कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।"}}},enkrypt:{extension:{step1:{description:"हम अपनी वॉलेट तक तेज़ी से पहुँच के लिए Enkrypt वॉलेट को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Enkrypt वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपनी वॉलेट का बैकअप एक सुरक्षित तरीके से ले। अपनी गुप्त वाक्यांश को कभी भी किसी के साथ साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपनी वॉलेट सेट कर लें, तो नीचे क्लिक करें ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए।",title:"अपने ब्राउज़र को ताज़ा करें"}}},frame:{extension:{step1:{description:"हम अपनी वॉलेट तक तेज़ी से पहुँच के लिए Frame को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Frame और साथी एक्सटेंशन स्थापित करें"},step2:{description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेना सुनिश्चित करें। कभी भी अपनी गुप्त वाक्यांश को किसी के साथ साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपने वॉलेट की सेटअप कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।",title:"अपना ब्राउज़र ताज़ा करें"}}},one_key:{extension:{step1:{title:"OneKey Wallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट की तेज एक्सेस के लिए OneKey Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले रहे हैं। अपना गुप्त वाक्यांश किसी के साथ भी साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट अप कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},phantom:{extension:{step1:{title:"फैंटम एक्सटेंशन स्थापित करें",description:"हम आपके वॉलेट के आसान उपयोग के लिए फैंटम को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले रहे हैं। अपना गुप्त वसूली वाक्यांश किसी के साथ भी साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट कर लें, तो ब्राउज़र को ताजगी देने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},rabby:{extension:{step1:{title:"Rabby एक्सटेंशन स्थापित करें",description:"हम आपको सलाह देते हैं कि अपने वॉलेट की जल्दी से पहुँच के लिए Rabby को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेते हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"जब आप अपना वॉलेट सेट अप कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए नीचे क्लिक करें।"}}},safeheron:{extension:{step1:{title:"कोर एक्सटेंशन स्थापित करें",description:"हम आपको सलाह देते हैं कि अपने वॉलेट की जल्दी से पहुँच के लिए Safeheron को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपने गुप्त वाक्यांश को साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपने वॉलेट को सेट अप करते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},taho:{extension:{step1:{title:"ताहो एक्सटेंशन स्थापित करें",description:"हम आपके वॉलेट तक त्वरित पहुँच के लिए ताहो को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएँ या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपने गुप्त वाक्यांश को साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना बटुआ सेट कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},talisman:{extension:{step1:{title:"तालिसमान एक्सटेंशन स्थापित करें",description:"हम आपके बटुए के त्वरित पहुँच के लिए तालिसमान को अपने टास्कबार में पिन करने की सिफारिश करते हैं।"},step2:{title:"एक ईथेरियम बटुए बनाएं या आयात करें",description:"अपने बटुए का बैकअप एक सुरक्षित तरीके से लेने का ध्यान रखें। कभी भी अपनी वसूली वाक्यांश को किसी के साथ साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना बटुआ सेट कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},xdefi:{extension:{step1:{title:"XDEFI वॉलेट एक्सटेंशन स्थापित करें",description:"हम आपकी वॉलेट की जल्दी से पहुँच के लिए XDEFI Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"निश्चित रूप से अपने वॉलेट का बैकअप किसी सुरक्षित तरीके से लें। अपनी गोपनीय वाक्यांश को किसी के साथ शेयर ना करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आपने अपनी वॉलेट सेट अप कर ली हो, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},zeal:{extension:{step1:{title:"Zeal एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक जल्दी पहुँचने के लिए Zeal को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}}},safepal:{extension:{step1:{title:"SafePal Wallet एक्सटेंशन स्थापित करें",description:"अपने ब्राउज़र के शीर्ष दाएं में क्लिक करें और SafePal Wallet को आसानी से पहुंच के लिए पिन करें।"},step2:{title:"एक बटुआ बनाएं या आयात करें",description:"नया बटुआ बनाएं या मौजूदा को आयात करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप SafePal वॉलेट सेट अप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को रिफ्रेश करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"SafePal वॉलेट ऐप खोलें",description:"अपने वॉलेट तक जल्दी पहुंचने के लिए SafePal वॉलेट को अपनी होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"नया बटुआ बनाएं या मौजूदा को आयात करें।"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},desig:{extension:{step1:{title:"Desig एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट के लिए आसानी से पहुंच पाने के लिए Desig को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएँ",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}}},subwallet:{extension:{step1:{title:"SubWallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक तेजी से पहुंचने के लिए SubWallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने बटुए का बैकअप एक सुरक्षित तरीके से लेने का ध्यान रखें। कभी भी अपनी वसूली वाक्यांश को किसी के साथ साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"SubWallet ऐप खोलें",description:"हम आपको तेजी से पहुंचने के लिए SubWallet को अपने होम स्क्रीन पर रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।"}}},clv:{extension:{step1:{title:"CLV Wallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक तेजी से पहुंचने के लिए CLV Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"CLV वॉलेट ऐप खोलें",description:"हम तीव्र पहुंच के लिए आपके होम स्क्रीन पर CLV वॉलेट रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।"}}},okto:{qr_code:{step1:{title:"Okto ऐप को खोलें",description:"त्वरित पहुंच के लिए अपने होम स्क्रीन पर Okto जोड़ें"},step2:{title:"एक MPC वॉलेट बनाएं",description:"एक खाता बनाएं और वॉलेट उत्पन्न करें"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"ऊपरी दाएँ में स्कैन QR आइकन को टैप करें और कनेक्ट करने के लिए संकेत दें।"}}},ledger:{desktop:{step1:{title:"लेजर लाइव ऐप खोलें",description:"हम तेज एक्सेस के लिए अपने होम स्क्रीन पर Ledger Live डालने की सिफारिश करते हैं।"},step2:{title:"अपना लेजर सेट करें",description:"एक नया लेजर सेट अप करें या मौजूदा वाले से कनेक्ट करें।"},step3:{title:"कनेक्ट करें",description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रॉम्प्ट दिखाई देगा।"}},qr_code:{step1:{title:"लेजर लाइव ऐप खोलें",description:"हम तेज एक्सेस के लिए अपने होम स्क्रीन पर Ledger Live डालने की सिफारिश करते हैं।"},step2:{title:"अपना लेजर सेट करें",description:"आप डेस्कटॉप ऐप के साथ सिंक कर सकते हैं या अपने Ledger को कनेक्ट कर सकते हैं।"},step3:{title:"कोड स्कैन करें",description:"WalletConnect पर टैप करें फिर स्कैनर पर स्विच करें। जब आप स्कैन करेंगे, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।"}}}},XF={connect_wallet:A70,intro:y70,sign_in:v70,connect:B70,connect_scan:F70,connector_group:D70,get:w70,get_options:x70,get_mobile:k70,get_instructions:_70,chains:S70,profile:T70,wallet_connectors:P70},O70={label:"Hubungkan Dompet"},I70={title:"Apa itu Dompet?",description:"Sebuah dompet digunakan untuk mengirim, menerima, menyimpan, dan menampilkan aset digital. Ini juga cara baru untuk masuk, tanpa perlu membuat akun dan kata sandi baru di setiap situs web.",digital_asset:{title:"Sebuah Rumah untuk Aset Digital Anda",description:"Dompet digunakan untuk mengirim, menerima, menyimpan, dan menampilkan aset digital seperti Ethereum dan NFTs."},login:{title:"Cara Baru untuk Masuk",description:"Alih-alih membuat akun dan kata sandi baru di setiap situs web, cukup hubungkan dompet Anda."},get:{label:"Dapatkan Dompet"},learn_more:{label:"Pelajari lebih lanjut"}},N70={label:"Verifikasi akun Anda",description:"Untuk menyelesaikan koneksi, Anda harus menandatangani sebuah pesan di dompet Anda untuk memastikan bahwa Anda adalah pemilik dari akun ini.",message:{send:"Kirim pesan",preparing:"Mempersiapkan pesan...",cancel:"Batal",preparing_error:"Kesalahan dalam mempersiapkan pesan, silakan coba lagi!"},signature:{waiting:"Menunggu tanda tangan...",verifying:"Memverifikasi tanda tangan...",signing_error:"Kesalahan dalam menandatangani pesan, silakan coba lagi!",verifying_error:"Kesalahan dalam memverifikasi tanda tangan, silakan coba lagi!",oops_error:"Ups, ada yang salah!"}},R70={label:"Hubungkan",title:"Hubungkan Dompet",new_to_ethereum:{description:"Baru dalam dompet Ethereum?",learn_more:{label:"Pelajari lebih lanjut"}},learn_more:{label:"Pelajari lebih lanjut"},recent:"Terkini",status:{opening:"Membuka %{wallet}...",not_installed:"%{wallet} tidak terpasang",not_available:"%{wallet} tidak tersedia",confirm:"Konfirmasikan koneksi di ekstensi"},secondary_action:{get:{description:"Tidak memiliki %{wallet}?",label:"DAPATKAN"},install:{label:"PASANG"},retry:{label:"COBA LAGI"}},walletconnect:{description:{full:"Perlu modal resmi WalletConnect?",compact:"Perlu modal WalletConnect?"},open:{label:"BUKA"}}},M70={title:"Pindai dengan %{wallet}",fallback_title:"Pindai dengan ponsel Anda"},j70={recommended:"Direkomendasikan",other:"Lainnya",popular:"Populer",more:"Lebih Banyak",others:"Lainnya"},z70={title:"Dapatkan Dompet",action:{label:"DAPATKAN"},mobile:{description:"Dompet Mobile"},extension:{description:"Ekstensi Browser"},mobile_and_extension:{description:"Dompet Mobile dan Ekstensi"},mobile_and_desktop:{description:"Dompet Seluler dan Desktop"},looking_for:{title:"Bukan yang Anda cari?",mobile:{description:"Pilih dompet di layar utama untuk memulai dengan penyedia dompet yang berbeda."},desktop:{compact_description:"Pilih dompet di layar utama untuk memulai dengan penyedia dompet yang berbeda.",wide_description:"Pilih dompet di sebelah kiri untuk memulai dengan penyedia dompet yang berbeda."}}},L70={title:"Mulai dengan %{wallet}",short_title:"Dapatkan %{wallet}",mobile:{title:"%{wallet} untuk Mobile",description:"Gunakan dompet mobile untuk menjelajahi dunia Ethereum.",download:{label:"Dapatkan aplikasinya"}},extension:{title:"%{wallet} untuk %{browser}",description:"Akses dompet Anda langsung dari browser web favorit Anda.",download:{label:"Tambahkan ke %{browser}"}},desktop:{title:"%{wallet} untuk %{platform}",description:"Akses dompet Anda secara native dari desktop yang kuat Anda.",download:{label:"Tambahkan ke %{platform}"}}},$70={title:"Instal %{wallet}",description:"Pindai dengan ponsel Anda untuk mengunduh di iOS atau Android",continue:{label:"Lanjutkan"}},U70={mobile:{connect:{label:"Hubungkan"},learn_more:{label:"Pelajari lebih lanjut"}},extension:{refresh:{label:"Segarkan"},learn_more:{label:"Pelajari lebih lanjut"}},desktop:{connect:{label:"Hubungkan"},learn_more:{label:"Pelajari lebih lanjut"}}},W70={title:"Alihkan Jaringan",wrong_network:"Jaringan yang salah terdeteksi, alihkan atau diskonek untuk melanjutkan.",confirm:"Konfirmasi di Dompet",switching_not_supported:"Dompet Anda tidak mendukung pengalihan jaringan dari %{appName}. Coba alihkan jaringan dari dalam dompet Anda.",switching_not_supported_fallback:"Wallet Anda tidak mendukung penggantian jaringan dari aplikasi ini. Cobalah ganti jaringan dari dalam wallet Anda.",disconnect:"Putuskan koneksi",connected:"Terkoneksi"},q70={disconnect:{label:"Putuskan koneksi"},copy_address:{label:"Salin Alamat",copied:"Tersalin!"},explorer:{label:"Lihat lebih banyak di penjelajah"},transactions:{description:"%{appName} transaksi akan muncul di sini...",description_fallback:"Transaksi Anda akan muncul di sini...",recent:{title:"Transaksi Terbaru"},clear:{label:"Hapus Semua"}}},H70={argent:{qr_code:{step1:{description:"Letakkan Argent di layar utama Anda untuk akses lebih cepat ke dompet Anda.",title:"Buka aplikasi Argent"},step2:{description:"Buat dompet dan nama pengguna, atau impor dompet yang ada.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda.",title:"Tekan tombol Scan QR"}}},bifrost:{qr_code:{step1:{description:"Kami merekomendasikan untuk menempatkan Bifrost Wallet di layar utama anda untuk akses yang lebih cepat.",title:"Buka aplikasi Bifrost Wallet"},step2:{description:"Buat atau impor sebuah dompet menggunakan frasa pemulihan Anda.",title:"Buat atau Impor sebuah Wallet"},step3:{description:"Setelah Anda memindai, sebuah pesan akan muncul untuk menghubungkan dompet Anda.",title:"Tekan tombol scan"}}},bitget:{qr_code:{step1:{description:"Kami menyarankan untuk meletakkan Bitget Wallet di layar depan Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Bitget Wallet"},step2:{description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda pindai, akan muncul petunjuk untuk menghubungkan wallet Anda.",title:"Tekan tombol pindai"}},extension:{step1:{description:"Kami menyarankan untuk memasang Bitget Wallet ke taskbar Anda untuk akses yang lebih cepat ke wallet Anda.",title:"Instal ekstensi Dompet Bitget"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},bitski:{extension:{step1:{description:"Kami merekomendasikan untuk memasang Bitski ke taskbar Anda untuk akses dompet Anda yang lebih cepat.",title:"Pasang ekstensi Bitski"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},coin98:{qr_code:{step1:{description:"Kami merekomendasikan untuk menaruh Coin98 Wallet di layar utama Anda untuk akses wallet Anda lebih cepat.",title:"Buka aplikasi Coin98 Wallet"},step2:{description:"Anda dapat dengan mudah mencadangkan wallet Anda menggunakan fitur cadangan kami di telepon Anda.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda melakukan pemindaian, akan muncul prompt koneksi untuk Anda menghubungkan wallet Anda.",title:"Ketuk tombol WalletConnect"}},extension:{step1:{description:"Klik di pojok kanan atas browser Anda dan sematkan Coin98 Wallet untuk akses mudah.",title:"Pasang ekstensi Coin98 Wallet"},step2:{description:"Buat dompet baru atau impor yang sudah ada.",title:"Buat atau Impor sebuah dompet"},step3:{description:"Setelah Anda menyiapkan Coin98 Wallet, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},coinbase:{qr_code:{step1:{description:"Kami merekomendasikan memasang Coinbase Wallet di layar utama Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Coinbase Wallet"},step2:{description:"Anda dapat dengan mudah mencadangkan dompet Anda menggunakan fitur cadangan awan.",title:"Buat atau Impor sebuah Dompet"},step3:{description:"Setelah Anda memindai, akan muncul sebuah petunjuk koneksi untuk Anda menyambungkan dompet Anda.",title:"Ketuk tombol pindai"}},extension:{step1:{description:"Kami merekomendasikan untuk menempel Coinbase Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda.",title:"Instal ekstensi Coinbase Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun.",title:"Buat atau Import Wallet"},step3:{description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},core:{qr_code:{step1:{description:"Kami merekomendasikan untuk meletakkan Core di layar utama Anda untuk akses lebih cepat ke wallet Anda.",title:"Buka aplikasi Core"},step2:{description:"Anda dapat dengan mudah mencadangkan wallet Anda dengan menggunakan fitur cadangan kami di telepon Anda.",title:"Buat atau Import Wallet"},step3:{description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menyambungkan wallet Anda.",title:"Ketuk tombol WalletConnect"}},extension:{step1:{description:"Kami merekomendasikan untuk menempelkan Core pada taskbar Anda untuk akses ke dompet Anda lebih cepat.",title:"Pasang ekstensi Core"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},fox:{qr_code:{step1:{description:"Kami merekomendasikan untuk menaruh FoxWallet pada layar utama Anda untuk akses lebih cepat.",title:"Buka aplikasi FoxWallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda hubungkan dompet Anda.",title:"Ketuk tombol pindai"}}},frontier:{qr_code:{step1:{description:"Kami merekomendasikan untuk meletakkan Frontier Wallet di layar awal Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Frontier Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda menghubungkan dompet Anda.",title:"Ketuk tombol pindai"}},extension:{step1:{description:"Kami menyarankan menempelkan Frontier Wallet ke taskbar Anda untuk akses yang lebih cepat ke dompet Anda.",title:"Instal ekstensi Frontier Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},im_token:{qr_code:{step1:{title:"Buka aplikasi imToken",description:"Letakkan aplikasi imToken di layar utama Anda untuk akses yang lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk Ikon Scanner di pojok kanan atas",description:"Pilih Koneksi Baru, lalu pindai kode QR dan konfirmasi petunjuk untuk terhubung."}}},metamask:{qr_code:{step1:{title:"Buka aplikasi MetaMask",description:"Kami merekomendasikan untuk meletakkan MetaMask di layar beranda Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol pindai",description:"Setelah Anda memindai, petunjuk koneksi akan muncul untuk Anda menyambungkan dompet Anda."}},extension:{step1:{title:"Pasang ekstensi MetaMask",description:"Kami menyarankan untuk memasang MetaMask pada taskbar Anda untuk akses wallet lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},okx:{qr_code:{step1:{title:"Buka aplikasi OKX Wallet",description:"Kami menyarankan untuk menaruh OKX Wallet di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol scan",description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda hubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi OKX Wallet",description:"Kami menyarankan untuk menempelkan OKX Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},omni:{qr_code:{step1:{title:"Buka aplikasi Omni",description:"Tambahkan Omni ke layar utama Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Buat wallet baru atau impor yang sudah ada."},step3:{title:"Ketuk ikon QR dan scan",description:"Ketuk ikon QR di layar utama Anda, pindai kode dan konfirmasi petunjuk untuk terhubung."}}},token_pocket:{qr_code:{step1:{title:"Buka aplikasi TokenPocket",description:"Kami sarankan meletakkan TokenPocket di layar utama Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol pindai",description:"Setelah Anda memindai, Indikasi sambungan akan muncul untuk Anda menghubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi TokenPocket",description:"Kami merekomendasikan penambatan TokenPocket ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},trust:{qr_code:{step1:{title:"Buka aplikasi Trust Wallet",description:"Pasang Trust Wallet di layar utama Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Pilih Koneksi Baru, kemudian pindai kode QR dan konfirmasi perintah untuk terhubung."}},extension:{step1:{title:"Instal ekstensi Trust Wallet",description:"Klik di pojok kanan atas browser Anda dan sematkan Trust Wallet untuk akses mudah."},step2:{title:"Buat atau Impor dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur Trust Wallet, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},uniswap:{qr_code:{step1:{title:"Buka aplikasi Uniswap",description:"Tambahkan Uniswap Wallet ke layar utama Anda untuk akses ke wallet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Buat wallet baru atau impor yang sudah ada."},step3:{title:"Ketuk ikon QR dan pindai",description:"Ketuk ikon QR di layar utama Anda, pindai kode dan konfirmasi prompt untuk terhubung."}}},zerion:{qr_code:{step1:{title:"Buka aplikasi Zerion",description:"Kami merekomendasikan untuk meletakkan Zerion di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol scan",description:"Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi Zerion",description:"Kami menyarankan untuk menempelkan Zerion ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur wallet Anda, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},rainbow:{qr_code:{step1:{title:"Buka aplikasi Rainbow",description:"Kami menyarankan menempatkan Rainbow di layar home Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Anda dapat dengan mudah mencadangkan wallet Anda menggunakan fitur cadangan kami di telepon Anda."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul pesan untuk menghubungkan dompet Anda."}}},enkrypt:{extension:{step1:{description:"Kami menyarankan untuk memasang Enkrypt Wallet ke taskbar Anda untuk akses dompet yang lebih cepat.",title:"Instal ekstensi Enkrypt Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet, klik di bawah ini untuk memuat ulang peramban dan meload ekstensi.",title:"Segarkan browser Anda"}}},frame:{extension:{step1:{description:"Kami menyarankan untuk memasang Frame ke taskbar Anda untuk akses dompet yang lebih cepat.",title:"Instal Frame & ekstensi pendamping"},step2:{description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda menyetel wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},one_key:{extension:{step1:{title:"Instal ekstensi OneKey Wallet",description:"Kami menyarankan untuk menempelkan OneKey Wallet ke taskbar Anda untuk akses wallet yang lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},phantom:{extension:{step1:{title:"Instal ekstensi Phantom",description:"Kami menyarankan untuk mem-pin Phantom ke taskbar Anda untuk akses dompet yang lebih mudah."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},rabby:{extension:{step1:{title:"Instal ekstensi Rabby",description:"Kami merekomendasikan menempelkan Rabby ke taskbar Anda untuk akses lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda dengan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},safeheron:{extension:{step1:{title:"Instal ekstensi Core",description:"Kami merekomendasikan menempelkan Safeheron ke taskbar Anda untuk akses lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur dompet Anda, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},taho:{extension:{step1:{title:"Instal ekstensi Taho",description:"Kami merekomendasikan pengepinan Taho ke taskbar Anda untuk akses yang lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},talisman:{extension:{step1:{title:"Instal ekstensi Talisman",description:"Kami merekomendasikan menempelkan Talisman ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet Ethereum",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase pemulihan Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},xdefi:{extension:{step1:{title:"Instal ekstensi Dompet XDEFI",description:"Kami merekomendasikan menempelkan XDEFI Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},zeal:{extension:{step1:{title:"Instal ekstensi Zeal",description:"Kami merekomendasikan untuk mem-pin Zeal ke taskbar Anda untuk akses wallet lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},safepal:{extension:{step1:{title:"Pasang ekstensi SafePal Wallet",description:"Klik di pojok kanan atas browser Anda dan pin SafePal Wallet untuk akses mudah."},step2:{title:"Buat atau Impor sebuah dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan SafePal Wallet, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi SafePal Wallet",description:"Letakkan SafePal Wallet di layar utama Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Pilih Koneksi Baru, lalu pindai kode QR dan konfirmasi petunjuk untuk terhubung."}}},desig:{extension:{step1:{title:"Instal ekstensi Desig",description:"Kami merekomendasikan menempelkan Desig ke taskbar Anda untuk akses dompet Anda lebih mudah."},step2:{title:"Buat Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},subwallet:{extension:{step1:{title:"Instal ekstensi SubWallet",description:"Kami merekomendasikan menempelkan SubWallet ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase pemulihan Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi SubWallet",description:"Kami merekomendasikan menaruh SubWallet di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda."}}},clv:{extension:{step1:{title:"Instal ekstensi CLV Wallet",description:"Kami merekomendasikan menempelkan CLV Wallet ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi CLV Wallet",description:"Kami sarankan untuk menempatkan CLV Wallet di layar utama Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda."}}},okto:{qr_code:{step1:{title:"Buka aplikasi Okto",description:"Tambahkan Okto ke layar utama Anda untuk akses cepat"},step2:{title:"Buat Wallet MPC",description:"Buat akun dan generate wallet"},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Ketuk ikon Scan QR di pojok kanan atas dan konfirmasi prompt untuk terhubung."}}},ledger:{desktop:{step1:{title:"Buka aplikasi Ledger Live",description:"Kami merekomendasikan menempatkan Ledger Live di layar utama Anda untuk akses lebih cepat."},step2:{title:"Atur Ledger Anda",description:"Atur Ledger baru atau hubungkan ke Ledger yang sudah ada."},step3:{title:"Hubungkan",description:"Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}},qr_code:{step1:{title:"Buka aplikasi Ledger Live",description:"Kami merekomendasikan menempatkan Ledger Live di layar utama Anda untuk akses lebih cepat."},step2:{title:"Atur Ledger Anda",description:"Anda dapat melakukan sinkronisasi dengan aplikasi desktop atau menghubungkan Ledger Anda."},step3:{title:"Pindai kode",description:"Ketuk WalletConnect lalu Beralih ke Scanner. Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}}}},uD={connect_wallet:O70,intro:I70,sign_in:N70,connect:R70,connect_scan:M70,connector_group:j70,get:z70,get_options:L70,get_mobile:$70,get_instructions:U70,chains:W70,profile:q70,wallet_connectors:H70},G70={label:"ウォレットを接続"},V70={title:"ウォレットとは何ですか?",description:"ウォレットは、デジタルアセットを送信、受信、保存、表示するために使用されます。また、各ウェブサイトで新たなアカウントやパスワードを作成する必要なく、ログインする新しい方法でもあります。",digital_asset:{title:"あなたのデジタル資産のための家",description:"ウォレットは、EthereumやNFTのようなデジタル資産を送信、受信、保存、表示するために使用されます。"},login:{title:"新しいログイン方法",description:"すべてのウェブサイトで新しいアカウントとパスワードを作成する代わりに、ウォレットを接続します。"},get:{label:"ウォレットを取得する"},learn_more:{label:"詳しくはこちら"}},K70={label:"アカウントを確認する",description:"接続を完了するには、このアカウントの所有者であることを証明するためにウォレットでメッセージに署名する必要があります。",message:{send:"メッセージを送信",preparing:"メッセージの準備中...",cancel:"キャンセル",preparing_error:"メッセージの準備中にエラーが発生しました、再試行してください!"},signature:{waiting:"署名を待っています...",verifying:"署名を検証中...",signing_error:"メッセージの署名中にエラーが発生しました、再試行してください!",verifying_error:"署名の検証中にエラーが発生しました、再試行してください!",oops_error:"おっと、何かが間違っていました!"}},Q70={label:"接続",title:"ウォレットを接続する",new_to_ethereum:{description:"Ethereumのウォレットが初めてですか?",learn_more:{label:"詳しくはこちら"}},learn_more:{label:"詳しくはこちら"},recent:"最近利用しました",status:{opening:"%{wallet}を開いています...",not_installed:"%{wallet} はインストールされていません",not_available:"%{wallet} は利用できません",confirm:"エクステンションで接続を確認してください"},secondary_action:{get:{description:"%{wallet}がありませんか?",label:"取得"},install:{label:"インストール"},retry:{label:"再試行"}},walletconnect:{description:{full:"公式のWalletConnectモーダルが必要ですか?",compact:"WalletConnectモーダルが必要ですか?"},open:{label:"開く"}}},J70={title:"%{wallet}でスキャン",fallback_title:"携帯電話でスキャンしてください"},Y70={recommended:"おすすめのウォレット",other:"その他",popular:"人気のウォレット",more:"もっと",others:"その他"},Z70={title:"ウォレットを取得",action:{label:"取得"},mobile:{description:"モバイルウォレット"},extension:{description:"ブラウザ拡張"},mobile_and_extension:{description:"モバイルウォレットと拡張機能"},mobile_and_desktop:{description:"モバイルとデスクトップウォレット"},looking_for:{title:"お探しのウォレットがありませんか?",mobile:{description:"メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。"},desktop:{compact_description:"メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。",wide_description:"左側のウォレットを選択して、別のウォレットプロバイダーで始めてください。"}}},X70={title:"%{wallet}で始める",short_title:"%{wallet}を取得する",mobile:{title:"モバイル用 %{wallet}",description:"モバイルウォレットを使用して、イーサリアムの世界を探索します。",download:{label:"アプリを取得"}},extension:{title:"%{wallet} for %{browser}",description:"お好きなウェブブラウザからウォレットに直接アクセスします。",download:{label:"%{browser}に追加"}},desktop:{title:"%{wallet} for %{platform}",description:"あなたの強力なデスクトップからネイティブにウォレットにアクセスします。",download:{label:"%{platform}に追加する"}}},um0={title:"%{wallet}をインストール",description:"iOSまたはAndroidでダウンロードするために電話でスキャン",continue:{label:"続行"}},em0={mobile:{connect:{label:"接続"},learn_more:{label:"詳しくはこちら"}},extension:{refresh:{label:"更新"},learn_more:{label:"詳しくはこちら"}},desktop:{connect:{label:"接続"},learn_more:{label:"詳しくはこちら"}}},tm0={title:"ネットワークを切り替える",wrong_network:"誤ったネットワークが検出されました、続行するには切り替えるか切断してください。",confirm:"ウォレットで確認する",switching_not_supported:"あなたのウォレットは %{appName}からネットワークを切り替えることをサポートしていません。ウォレット内でネットワークを切り替えてみてください。",switching_not_supported_fallback:"あなたのウォレットは、このアプリからネットワークを切り替えることをサポートしていません。代わりにウォレット内からネットワークを切り替えてみてください。",disconnect:"切断する",connected:"接続しました"},nm0={disconnect:{label:"切断する"},copy_address:{label:"アドレスをコピーする",copied:"コピーしました!"},explorer:{label:"エクスプローラーで詳しく見る"},transactions:{description:"%{appName} トランザクションがここに表示されます...",description_fallback:"あなたのトランザクションはここに表示されます...",recent:{title:"最近のトランザクション"},clear:{label:"すべてクリア"}}},rm0={argent:{qr_code:{step1:{description:"より速くウォレットにアクセスするために、Argentをホーム画面に置いてください。",title:"Argentアプリを開く"},step2:{description:"ウォレットとユーザーネームを作成するか、既存のウォレットをインポートします。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"「QRをスキャン」ボタンをタップします"}}},bifrost:{qr_code:{step1:{description:"より速くアクセスできるように、Bifrost Walletをホーム画面に置くことをお勧めします。",title:"Bifrost Walletアプリを開きます"},step2:{description:"リカバリーフレーズを使用してウォレットを作成またはインポートします。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"「スキャン」ボタンをタップします"}}},bitget:{qr_code:{step1:{description:"より迅速なアクセスのために、ホーム画面にBitget Walletを配置することをお勧めします。",title:"Bitget Walletアプリを開く"},step2:{description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップする"}},extension:{step1:{description:"ウォレットへのより迅速なアクセスのためにBitget Walletをタスクバーにピン留めすることをお勧めします。",title:"Bitget Wallet拡張機能をインストールします"},step2:{description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポートします"},step3:{description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",title:"ブラウザを更新する"}}},bitski:{extension:{step1:{description:"ウォレットへの素早いアクセスのために、Bitskiをタスクバーにピン留めすることをお勧めします。",title:"Bitskiエクステンションをインストールする"},step2:{description:"ウォレットを安全な方法でバックアップしてください。シークレットフレーズは誰とも共有しないでください。",title:"ウォレットを作成するか、インポートする"},step3:{description:"ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。",title:"ブラウザを更新する"}}},coin98:{qr_code:{step1:{description:"Coin98ウォレットをホーム画面に置くことで、ウォレットへのアクセスが高速化されることをお勧めします。",title:"Coin98ウォレットアプリを開きます"},step2:{description:"電話のバックアップ機能を使用して、ウォレットを簡単にバックアップすることができます。",title:"ウォレットを作成またはインポートする"},step3:{description:"スキャン後、ウォレットへの接続を促すプロンプトが表示されます。",title:"WalletConnectボタンをタップします"}},extension:{step1:{description:"ブラウザの右上をクリックして、Coin98ウォレットをピン留めして簡単にアクセスできるようにします。",title:"Coin98ウォレットの拡張機能をインストールします"},step2:{description:"新しいウォレットを作成するか、既存のものをインポートします。",title:"ウォレットを作成またはインポートする"},step3:{description:"Coin98ウォレットをセットアップしたら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},coinbase:{qr_code:{step1:{description:"より素早くアクセスできるように、Coinbaseウォレットをホームスクリーンに置くことをお勧めします。",title:"Coinbase Walletアプリを開く"},step2:{description:"クラウドバックアップ機能を使用して、簡単にウォレットをバックアップできます。",title:"ウォレットを作成またはインポートする"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップする"}},extension:{step1:{description:"タスクバーにCoinbase Walletをピン留めして、ウォレットにより早くアクセスできるように推奨します。",title:"Coinbase Wallet拡張機能をインストールする"},step2:{description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰にも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"ウォレットの設定が完了したら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},core:{qr_code:{step1:{description:"ウォレットへの迅速なアクセスのため、コアをホーム画面に設定することを推奨します。",title:"Coreアプリを開く"},step2:{description:"電話のバックアップ機能を使って、簡単にウォレットをバックアップできます。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するようにプロンプトが表示されます。",title:"WalletConnectボタンをタップする"}},extension:{step1:{description:"ウォレットへのより迅速なアクセスのために、タスクバーにCoreをピン留めすることをお勧めします。",title:"Core拡張機能をインストールする"},step2:{description:"セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポートする"},step3:{description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},fox:{qr_code:{step1:{description:"より迅速なアクセスのために、ホーム画面にFoxWalletを置くことをお勧めします。",title:"FoxWalletアプリを開く"},step2:{description:"セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップします"}}},frontier:{qr_code:{step1:{description:"Frontierウォレットをホーム画面に置くことで、より早くアクセスできることをお勧めします。",title:"Frontierウォレットアプリを開きます"},step2:{description:"セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後に、ウォレットの接続を促すメッセージが表示されます。",title:"スキャンボタンをタップします"}},extension:{step1:{description:"より迅速なウォレットへのアクセスを可能にするために、フロンティアウォレットをタスクバーにピン留めすることを推奨します。",title:"フロンティアウォレットの拡張機能をインストールします"},step2:{description:"安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"ウォレットの設定が完了したら、ブラウザを更新して拡張機能を読み込みます。",title:"ブラウザを更新する"}}},im_token:{qr_code:{step1:{title:"imTokenアプリを開く",description:"ウォレットへのアクセスを速くするために、imTokenアプリをホーム画面に置いてください。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"右上隅のスキャナーアイコンをタップします",description:"新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"}}},metamask:{qr_code:{step1:{title:"MetaMaskアプリを開きます",description:"迅速なアクセスのために、MetaMaskをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポートします",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンをタップします",description:"スキャンすると、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"MetaMaskの拡張機能をインストールします",description:"ウォレットへのより速いアクセスのために、MetaMaskをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"安全な方法を使用してウォレットをバックアップし、秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットを設定した後は、下のリンクをクリックしてブラウザを更新し、エクステンションを読み込んでください。"}}},okx:{qr_code:{step1:{title:"OKX Walletアプリを開く",description:"OKX Walletをホーム画面に配置して、より早くアクセスできるようにすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。"},step3:{title:"スキャンボタンをタップする",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"OKXウォレット拡張機能をインストールする",description:"ウォレットへの迅速なアクセスのため、OKXウォレットをタスクバーにピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、下をクリックしてブラウザをリフレッシュし、拡張機能を読み込みます。"}}},omni:{qr_code:{step1:{title:"Omniアプリを開く",description:"Omniをホーム画面に追加して、ウォレットへのアクセスを早めます。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"QRアイコンをタップしてスキャン",description:"ホーム画面のQRアイコンをタップし、コードをスキャンし、プロンプトを確認して接続します。"}}},token_pocket:{qr_code:{step1:{title:"TokenPocketアプリを開く",description:"より速いアクセスのために、TokenPocketをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポートする",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンをタップする",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"TokenPocketエクステンションをインストールする",description:"ウォレットへのより早いアクセスのために、TokenPocketをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットを安全な方法でバックアップすることを確認してください。シークレットフレーズを決して他の人と共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},trust:{qr_code:{step1:{title:"Trust Walletアプリを開く",description:"ウォレットへの高速アクセスのために、Trust Walletをホーム画面に置きます。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"設定でWalletConnectをタップします",description:"新しい接続を選択し、QRコードをスキャンして、プロンプトで接続を確認します。"}},extension:{step1:{title:"Trust Wallet拡張機能をインストールします",description:"ブラウザの右上をクリックし、Trust Walletをピン留めして簡単にアクセスできるようにします。"},step2:{title:"ウォレットを作成するかインポートします",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"ブラウザを更新する",description:"Trust Walletの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},uniswap:{qr_code:{step1:{title:"Uniswapアプリを開く",description:"Uniswapウォレットをホーム画面に追加して、ウォレットへのアクセスを高速化します。"},step2:{title:"ウォレットを作成またはインポートする",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"QRアイコンをタップしてスキャンする",description:"ホーム画面のQRアイコンをタップし、コードをスキャンしてプロンプトを確認して接続します。"}}},zerion:{qr_code:{step1:{title:"Zerionアプリを開く",description:"より速くアクセスするために、Zerionをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンを押す",description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"Zerion拡張機能をインストールする",description:"ウォレットへの素早いアクセスのため、Zerionをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットをセキュアな方法でバックアップすることを確認してください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットをセットアップしたら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。"}}},rainbow:{qr_code:{step1:{title:"Rainbowアプリを開く",description:"ウォレットへの早いアクセスのために、Rainbowをホーム画面に置くことをおすすめします。"},step2:{title:"ウォレットを作成またはインポート",description:"電話のバックアップ機能を使用して、簡単にウォレットをバックアップすることができます。"},step3:{title:"スキャンボタンをタップする",description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。"}}},enkrypt:{extension:{step1:{description:"ウォレットへのアクセスをより早くするため、タスクバーにEnkrypt Walletをピン留めすることを推奨します。",title:"Enkrypt Wallet拡張機能をインストールしてください"},step2:{description:"安全な方法でウォレットのバックアップを必ず取り、秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成するか、インポートする"},step3:{description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",title:"ブラウザを更新する"}}},frame:{extension:{step1:{description:"ウォレットへのアクセスをより早くするため、タスクバーにFrameをピン留めすることを推奨します。",title:"Frameとその付属の拡張機能をインストール"},step2:{description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成、またはインポート"},step3:{description:"ウォレットの設定が完了したら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新"}}},one_key:{extension:{step1:{title:"OneKey Wallet拡張機能をインストール",description:"ウォレットへのアクセスを素早く行うため、OneKey Walletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成、またはインポート",description:"安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},phantom:{extension:{step1:{title:"Phantom拡張機能をインストールする",description:"ウォレットへの容易なアクセスのため、Phantomをタスクバーにピン留めすることを推奨します。"},step2:{title:"ウォレットを作成またはインポートする",description:"安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。"}}},rabby:{extension:{step1:{title:"Rabbyエクステンションをインストールする",description:"ウォレットへの素早いアクセスのため、タスクバーにRabbyをピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},safeheron:{extension:{step1:{title:"コア拡張機能をインストール",description:"ウォレットへの素早いアクセスのため、タスクバーにSafeheronをピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},taho:{extension:{step1:{title:"Taho拡張機能をインストールする",description:"ウォレットへのより迅速なアクセスのため、Tahoをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},talisman:{extension:{step1:{title:"Talisman拡張機能をインストールする",description:"ウォレットへのより早いアクセスのために、Talismanをタスクバーにピン留めすることをお勧めします。"},step2:{title:"Ethereumウォレットを作成するか、インポートする",description:"ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},xdefi:{extension:{step1:{title:"XDEFI Wallet拡張機能をインストールする",description:"XDEFI Walletをタスクバーにピン留めすることで、ウォレットへのアクセスが速くなることをお勧めします。"},step2:{title:"ウォレットの作成またはインポート",description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードしてください。"}}},zeal:{extension:{step1:{title:"Zeal 拡張機能をインストール",description:"ウォレットに素早くアクセスするために、タスクバーに Zeal をピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},safepal:{extension:{step1:{title:"SafePal Wallet拡張機能をインストールする",description:"ブラウザの右上でクリックし、Easy AccessのためにSafePal Walletをピン留めします。"},step2:{title:"ウォレットを作成またはインポートする",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"ブラウザを更新する",description:"SafePal Walletのセットアップが完了したら、以下をクリックしてブラウザをリフレッシュし、エクステンションをロードします。"}},qr_code:{step1:{title:"SafePal Walletアプリを開く",description:"SafePal Walletをホーム画面に置くことで、ウォレットへの素早いアクセスが可能になります。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"設定でWalletConnectをタップします",description:"新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"}}},desig:{extension:{step1:{title:"Desig拡張機能をインストール",description:"あなたのウォレットへの簡単なアクセスのために、Desigをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},subwallet:{extension:{step1:{title:"SubWallet拡張機能をインストール",description:"ウォレットへのより素早いアクセスのため、SubWalletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}},qr_code:{step1:{title:"SubWalletアプリを開く",description:"より迅速なアクセスのために、SubWalletをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"「スキャン」ボタンをタップします",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}},clv:{extension:{step1:{title:"CLV Wallet拡張機能をインストール",description:"ウォレットへのより素早いアクセスのため、CLV Walletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}},qr_code:{step1:{title:"CLV Walletアプリを開く",description:"より迅速なアクセスのために、ホーム画面にCLV Walletを置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"「スキャン」ボタンをタップします",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}},okto:{qr_code:{step1:{title:"Oktoアプリを開く",description:"素早くアクセスするために、ホーム画面にOktoを追加します"},step2:{title:"MPCウォレットを作成する",description:"アカウントを作成し、ウォレットを生成します"},step3:{title:"設定でWalletConnectをタップします",description:"右上のScan QRアイコンをタップし、接続するためのプロンプトを確認します。"}}},ledger:{desktop:{step1:{title:"Ledger Liveアプリを開く",description:"より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。"},step2:{title:"あなたのLedgerを設定する",description:"新しいLedgerを設定するか、既存のものに接続します。"},step3:{title:"接続",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},qr_code:{step1:{title:"Ledger Liveアプリを開く",description:"より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。"},step2:{title:"あなたのLedgerを設定する",description:"デスクトップアプリと同期するか、あなたのLedgerに接続することができます。"},step3:{title:"コードをスキャンする",description:"WalletConnectをタップし、スキャナーに切り替えてください。スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}}},eD={connect_wallet:G70,intro:V70,sign_in:K70,connect:Q70,connect_scan:J70,connector_group:Y70,get:Z70,get_options:X70,get_mobile:um0,get_instructions:em0,chains:tm0,profile:nm0,wallet_connectors:rm0},im0={label:"지갑 연결"},am0={title:"지갑이란 무엇인가요?",description:"지갑은 디지털 자산을 보내고, 받고, 저장하고, 표시하는 데 사용됩니다. 또한, 모든 웹 사이트에서 새 계정과 비밀번호를 생성할 필요 없이 로그인하는 새로운 방법입니다.",digital_asset:{title:"당신의 디지털 자산을 위한 집",description:"지갑은 이더리움 및 NFT와 같은 디지털 자산을 보내고, 받고, 저장하고, 표시하는데 사용됩니다."},login:{title:"새로운 로그인 방식",description:"모든 웹사이트에서 새 계정과 비밀번호를 생성하는 대신, 당신의 지갑을 연결하기만 하면 됩니다."},get:{label:"지갑 가져오기"},learn_more:{label:"더 알아보기"}},om0={label:"계정을 확인하세요",description:"연결을 완료하려면 이 계정의 소유자임을 확인하기 위해 지갑에 메시지에 서명해야 합니다.",message:{send:"메시지 보내기",preparing:"메시지 준비 중...",cancel:"취소",preparing_error:"메시지 준비 중 오류가 발생했습니다. 다시 시도하세요!"},signature:{waiting:"서명을 기다리는 중...",verifying:"서명 검증 중...",signing_error:"메시지 서명 중 오류가 발생했습니다. 다시 시도하세요!",verifying_error:"서명 검증 중 오류가 발생했습니다. 다시 시도하세요!",oops_error:"앗, 문제가 발생했습니다!"}},sm0={label:"연결",title:"지갑 연결",new_to_ethereum:{description:"이더리움 지갑에 처음 접하시나요?",learn_more:{label:"더 알아보기"}},learn_more:{label:"더 알아보기"},recent:"최근",status:{opening:"%{wallet}열기 ...",not_installed:"%{wallet} 가 설치되어 있지 않습니다",not_available:"%{wallet} 를 사용할 수 없습니다",confirm:"확장기능에서 연결을 확인하세요"},secondary_action:{get:{description:"%{wallet}가 없나요?",label:"GET"},install:{label:"설치"},retry:{label:"다시 시도"}},walletconnect:{description:{full:"공식 WalletConnect 모달이 필요한가요?",compact:"WalletConnect 모달이 필요한가요?"},open:{label:"열기"}}},fm0={title:"%{wallet}로 스캔하기",fallback_title:"휴대폰으로 스캔하기"},lm0={recommended:"추천",other:"기타",popular:"인기",more:"더 보기",others:"다른 사항들"},cm0={title:"월렛 받기",action:{label:"받기"},mobile:{description:"모바일 월렛"},extension:{description:"브라우저 확장 프로그램"},mobile_and_extension:{description:"모바일 지갑 및 확장 프로그램"},mobile_and_desktop:{description:"모바일 및 데스크톱 지갑"},looking_for:{title:"찾고 계신 것이 아닌가요?",mobile:{description:"메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요."},desktop:{compact_description:"메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요.",wide_description:"왼쪽에서 지갑을 선택하여 다른 지갑 제공자를 사용하기 시작하세요."}}},Em0={title:"%{wallet}로 시작하십시오",short_title:"%{wallet}얻기",mobile:{title:"모바일용 %{wallet}",description:"모바일 지갑으로 이더리움 세계를 탐험하세요.",download:{label:"앱 받기"}},extension:{title:"%{browser}용 %{wallet}",description:"가장 좋아하는 웹 브라우저에서 바로 지갑에 접근하세요.",download:{label:"추가하기 %{browser}"}},desktop:{title:"%{wallet} 용 %{platform}",description:"강력한 데스크톱에서 네이티브로 지갑에 접근하세요.",download:{label:"%{platform}에 추가"}}},dm0={title:"설치하기 %{wallet}",description:"iOS 또는 Android에서 다운로드하기 위해 휴대폰으로 스캔하세요",continue:{label:"계속"}},pm0={mobile:{connect:{label:"연결"},learn_more:{label:"더 알아보기"}},extension:{refresh:{label:"새로고침"},learn_more:{label:"더 알아보기"}},desktop:{connect:{label:"연결"},learn_more:{label:"더 알아보기"}}},hm0={title:"네트워크 전환",wrong_network:"잘못된 네트워크를 탐지했습니다, 계속하려면 전환하거나 연결을 해제하세요.",confirm:"지갑에서 승인",switching_not_supported:"지갑에서 %{appName}네트워크를 전환하는 것은 지원되지 않습니다. 대신 지갑 내에서 네트워크를 전환해 보세요.",switching_not_supported_fallback:"당신의 지갑은 이 앱에서 네트워크를 바꾸는 것을 지원하지 않습니다. 대신 지갑 내에서 네트워크를 변경해 보십시오.",disconnect:"연결 해제",connected:"연결됨"},Cm0={disconnect:{label:"연결 해제"},copy_address:{label:"주소 복사",copied:"복사됨!"},explorer:{label:"탐색기에서 더 보기"},transactions:{description:"%{appName} 거래가 여기에 나타납니다...",description_fallback:"여기에 트랜잭션이 표시됩니다...",recent:{title:"최근 거래 내역"},clear:{label:"모두 지우기"}}},mm0={argent:{qr_code:{step1:{description:"지갑에 더 빠르게 액세스하려면 Argent를 홈 화면에 놓으십시오.",title:"Argent 앱을 열기"},step2:{description:"지갑과 사용자 이름을 생성하거나 기존의 지갑을 가져옵니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다.",title:"QR 코드 스캔 버튼을 누르기"}}},bifrost:{qr_code:{step1:{description:"더 빠른 접근을 위해 홈 화면에 Bifrost Wallet을 놓는 것을 권장합니다.",title:"Bifrost 지갑 앱을 열어주세요"},step2:{description:"복구 문구를 사용하여 지갑을 생성하거나 가져옵니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후 연결 프롬프트가 나타나고 지갑을 연결할 수 있습니다.",title:"스캔 버튼을 누릅니다"}}},bitget:{qr_code:{step1:{description:"더 빠른 접근을 위해 Bitget 지갑을 홈 화면에 두는 것을 권장합니다.",title:"Bitget 지갑 앱을 열십시오"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후, 지갑을 연결하라는 연결 요청 메시지가 나타납니다.",title:"스캔 버튼을 누르십시오"}},extension:{step1:{description:"지갑에 빠르게 액세스하기 위해 Bitget Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Bitget Wallet 확장 프로그램을 설치하세요"},step2:{description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 누구와도 공유하지 마십시오.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요.",title:"브라우저를 새로 고침하세요"}}},bitski:{extension:{step1:{description:"지갑에 더 빠르게 액세스하기 위해 Bitski를 작업 표시줄에 고정하는 것을 권장합니다.",title:"Bitski 확장 기능을 설치합니다"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구를 누구와도 공유하지 마십시오.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하세요.",title:"브라우저를 새로고침하세요"}}},coin98:{qr_code:{step1:{description:"지갑에 빠르게 액세스하기 위해 Coin98 Wallet을 홈 화면에 두는 것을 권장합니다.",title:"Coin98 Wallet 앱을 열기"},step2:{description:"휴대폰에서 백업 기능을 이용하여 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 만들기 또는 가져오기"},step3:{description:"스캔한 후 연결 프롬프트가 나타나 지갑을 연결하도록 합니다.",title:"WalletConnect 버튼을 누르십시오"}},extension:{step1:{description:"브라우저 오른쪽 상단을 클릭하고 쉽게 액세스할 수 있도록 Coin98 Wallet을 고정하십시오.",title:"Coin98 Wallet 확장 프로그램을 설치하십시오"},step2:{description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다.",title:"지갑을 만들거나 가져옵니다"},step3:{description:"Coin98 Wallet을 설정하면 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저를 새로 고치십시오"}}},coinbase:{qr_code:{step1:{description:"더 빠른 액세스를 위해 Coinbase Wallet을 홈 화면에 두는 것을 권장합니다.",title:"Coinbase Wallet 앱을 엽니다"},step2:{description:"클라우드 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다.",title:"스캔 버튼을 탭하세요"}},extension:{step1:{description:"지갑에 더 빠르게 접근할 수 있도록 Coinbase Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Coinbase Wallet 확장 프로그램을 설치하세요"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구는 절대로 누구와도 공유하지 마십시오.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저 새로 고침"}}},core:{qr_code:{step1:{description:"지갑에 빠르게 액세스할 수 있도록 Core를 홈 화면에 두는 것을 추천드립니다.",title:"Core 앱 열기"},step2:{description:"휴대폰에서 우리의 백업 기능을 이용해 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 만들기 또는 가져오기"},step3:{description:"스캔 한 후에는 지갑을 연결하라는 연결 요청이 표시됩니다.",title:"WalletConnect 버튼을 누르세요"}},extension:{step1:{description:"지갑에 더 빠르게 액세스하기 위해 작업 표시줄에 Core를 고정하는 것을 권장합니다.",title:"Core 확장 프로그램을 설치하십시오"},step2:{description:"안전한 방법을 사용하여 지갑을 백업해야 합니다. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저를 새로 고치세요"}}},fox:{qr_code:{step1:{description:"FoxWallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.",title:"FoxWallet 앱을 열어주세요"},step2:{description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오.",title:"지갑을 생성하거나 가져오기"},step3:{description:"스캔 후, 지갑을 연결하라는 연결 프롬프트가 표시됩니다.",title:"스캔 버튼을 누르세요"}}},frontier:{qr_code:{step1:{description:"Frontier Wallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.",title:"Frontier Wallet 앱을 열어주세요"},step2:{description:"지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후에 지갑을 연결하라는 연결 프롬프트가 표시됩니다.",title:"스캔 버튼을 누르세요"}},extension:{step1:{description:"지갑에 더 빠르게 액세스 할 수 있도록 Frontier Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Frontier Wallet 확장 기능 설치"},step2:{description:"지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오.",title:"브라우저를 새로 고칩니다"}}},im_token:{qr_code:{step1:{title:"imToken 앱을 연다",description:"당신의 지갑에 더 빠르게 접근하기 위해 imToken 앱을 홈 화면에 둡니다."},step2:{title:"지갑을 만들거나 불러옵니다",description:"새 지갑을 생성하거나 기존의 것을 가져옵니다."},step3:{title:"오른쪽 상단의 스캐너 아이콘을 누릅니다",description:"새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."}}},metamask:{qr_code:{step1:{title:"MetaMask 앱을 엽니다",description:"빠른 액세스를 위해 MetaMask를 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"당신의 지갑을 안전한 방법으로 백업하는 것을 잊지 마세요. 절대로 비밀 구절을 공유하지 마세요."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다."}},extension:{step1:{title:"MetaMask 확장 프로그램을 설치하세요",description:"지갑에 빠르게 접근하기 위해 MetaMask를 작업표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 결코 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑 설정을 마친 후에는 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},okx:{qr_code:{step1:{title:"OKX Wallet 앱을 열기",description:"더 빠른 접근을 위해 OKX 지갑을 홈 화면에 두는 것을 추천합니다."},step2:{title:"지갑 만들기 또는 불러오기",description:"안전한 방법으로 지갑을 백업하십시오. 절대 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"스캔 버튼을 탭하세요",description:"스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}},extension:{step1:{title:"OKX 지갑 확장 프로그램 설치하기",description:"지갑에 빠르게 접근할 수 있도록 OKX 지갑을 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 만들기 또는 불러오기",description:"당신의 지갑을 안전한 방법으로 백업해야 합니다. 비밀 문구를 절대로 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑을 설정한 후, 브라우저를 새로 고치고 확장 기능을 로드하기 위해 아래를 클릭하세요."}}},omni:{qr_code:{step1:{title:"Omni 앱을 열기",description:"더 빠른 액세스를 위해 Omni를 홈 스크린에 추가하세요."},step2:{title:"지갑 만들기 또는 가져오기",description:"새로운 지갑을 만들거나 기존의 하나를 가져옵니다."},step3:{title:"QR 아이콘을 탭하고 스캔하기",description:"홈 화면의 QR 아이콘을 탭하고, 코드를 스캔하고 프롬프트를 확인하여 연결하세요."}}},token_pocket:{qr_code:{step1:{title:"TokenPocket 앱을 열어주세요",description:"빠른 접근을 위해 홈 화면에 TokenPocket을 추가하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구에게도 비밀 문구를 공유하지 마세요."},step3:{title:"스캔 버튼을 탭하세요",description:"스캔 후에 지갑을 연결하라는 프롬프트가 표시됩니다."}},extension:{step1:{title:"TokenPocket 확장 기능을 설치하십시오",description:"지갑에 빠르게 접근하기 위해 TokenPocket를 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"브라우저 새로 고침",description:"지갑을 설정하면 아래를 클릭하여 브라우저를 새로 고침하고 확장 기능을 로드합니다."}}},trust:{qr_code:{step1:{title:"Trust Wallet 앱을 열기",description:"지갑에 빠르게 접근하기 위해 Trust Wallet을 홈 스크린에 두십시오."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 생성하거나 기존의 것을 가져오십시오."},step3:{title:"설정에서 WalletConnect를 탭하십시오",description:"새 연결을 선택한 다음 QR 코드를 스캔하고, 연결을 확인하는 프롬프트를 확인하십시오."}},extension:{step1:{title:"Trust Wallet 확장 기능을 설치하십시오",description:"브라우저의 오른쪽 상단을 클릭하고 Trust Wallet을 고정하여 쉽게 접근하십시오."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 생성하거나 기존의 것을 가져오십시오."},step3:{title:"브라우저를 새로고침하세요",description:"Trust Wallet을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다."}}},uniswap:{qr_code:{step1:{title:"Uniswap 앱을 엽니다",description:"Uniswap Wallet을 홈 화면에 추가하여 지갑에 더 빠르게 액세스하세요."},step2:{title:"지갑을 만들거나 가져오기",description:"새 지갑을 생성하거나 기존의 것을 가져옵니다."},step3:{title:"QR 아이콘을 누르고 스캔하기",description:"홈화면의 QR 아이콘을 누르고 코드를 스캔하고 프롬프트를 확인하여 연결하세요."}}},zerion:{qr_code:{step1:{title:"Zerion 앱을 엽니다",description:"더 빠른 접근을 위해 Zerion을 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법으로 지갑을 백업하십시오. 절대로 비밀 구절을 누군가와 공유하지 마십시오."},step3:{title:"스캔 버튼을 탭하십시오",description:"스캔 후 연결 프롬프트가 나타나 지갑을 연결하십시오."}},extension:{step1:{title:"Zerion 확장 프로그램을 설치하십시오",description:"지갑에 더 빠르게 접근할 수 있도록 Zerion을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 비밀 구문을 절대로 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},rainbow:{qr_code:{step1:{title:"Rainbow 앱 열기",description:"지갑에 더 빠르게 접근하기 위해 홈 화면에 Rainbow를 두는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"휴대폰에 있는 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다."},step3:{title:"스캔 버튼을 누르세요",description:"스캔 후, 지갑을 연결하라는 연결 프롬프트가 나타납니다."}}},enkrypt:{extension:{step1:{description:"지갑에 더 빠르게 접근하기 위해 작업 표시줄에 Enkrypt Wallet를 고정하는 것을 추천합니다.",title:"Enkrypt Wallet 확장 프로그램을 설치하세요"},step2:{description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하세요.",title:"브라우저 새로 고침"}}},frame:{extension:{step1:{description:"지갑에 더 빠르게 접근할 수 있도록 Frame을 작업 표시줄에 고정하는 것을 추천합니다.",title:"Frame 및 동반 확장 프로그램 설치"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 다른 사람과 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하세요.",title:"브라우저 새로 고침"}}},one_key:{extension:{step1:{title:"OneKey Wallet 확장 프로그램을 설치하세요",description:"지갑에 빠르게 접근할 수 있도록 OneKey Wallet을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 불러오기",description:"지갑을 안전한 방법으로 백업하십시오. 절대로 비밀 문구를 다른 사람과 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드하십시오."}}},phantom:{extension:{step1:{title:"Phantom 확장 프로그램을 설치하세요",description:"지갑에 더 쉽게 접근할 수 있도록 Phantom을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 불러오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 누구와도 비밀 복구 구문을 공유하지 마십시오."},step3:{title:"브라우저를 새로고침하십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 기능을 로드하십시오."}}},rabby:{extension:{step1:{title:"Rabby 확장 프로그램을 설치하십시오",description:"지갑에 더 빠르게 액세스할 수 있도록 Rabby를 작업표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 누구와도 비밀 구문을 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드합니다."}}},safeheron:{extension:{step1:{title:"코어 확장 프로그램 설치",description:"지갑에 빠르게 액세스하기 위해 Safeheron을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구를 절대 다른 사람과 공유하지 마십시오."},step3:{title:"브라우저 새로 고침",description:"지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로 고침하고 확장 프로그램을 로드합니다."}}},taho:{extension:{step1:{title:"Taho 확장 프로그램 설치",description:"지갑에 더 빠르게 액세스하기 위해 Taho를 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 결코 비밀 문구를 누군가와 공유하지 마십시오."},step3:{title:"브라우저를 새로 고치십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하십시오."}}},talisman:{extension:{step1:{title:"탈리스만 확장 프로그램 설치",description:"지갑에 더 빠르게 접근하기 위해 Talisman을 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"이더리움 지갑 생성 또는 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하십시오. 복구 문구를 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑을 설정 한 후 아래를 클릭하여 브라우저를 새로 고침하고 확장 기능을 로드하십시오."}}},xdefi:{extension:{step1:{title:"XDEFI 지갑 확장 기능을 설치하십시오",description:"지갑에 빠르게 액세스하기 위해 작업 표시줄에 XDEFI Wallet을 고정하는 것을 권장합니다."},step2:{title:"지갑을 만들거나 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하십시오. 비밀 문구를 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하십시오",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하십시오."}}},zeal:{extension:{step1:{title:"Zeal 확장 프로그램을 설치하십시오",description:"월렛에 더 빠르게 액세스할 수 있도록 Zeal을 작업 표시 줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},safepal:{extension:{step1:{title:"SafePal Wallet 확장 프로그램을 설치하세요",description:"브라우저의 오른쪽 상단에서 클릭하고 SafePal Wallet을 고정하여 쉽게 접근하세요."},step2:{title:"지갑을 만들거나 가져옵니다",description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."},step3:{title:"브라우저를 새로 고침하세요",description:"SafePal Wallet을 설정한 후에는 아래를 클릭하여 브라우저를 새로 고치고 확장 기능을 로드하십시오."}},qr_code:{step1:{title:"SafePal Wallet 앱을 열십시오",description:"월렛에 빠르게 액세스할 수 있도록 SafePal Wallet을 홈 화면에 두십시오."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."},step3:{title:"설정에서 WalletConnect를 탭하십시오",description:"새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."}}},desig:{extension:{step1:{title:"Desig 확장 프로그램 설치",description:"당신의 지갑에 더 쉽게 접근하기 위해 작업 표시줄에 Desig을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}}},subwallet:{extension:{step1:{title:"SubWallet 확장 프로그램 설치",description:"당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 SubWallet을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하십시오. 복구 문구를 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}},qr_code:{step1:{title:"SubWallet 앱 열기",description:"더 빠른 접근을 위해 SubWallet을 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다."}}},clv:{extension:{step1:{title:"CLV Wallet 확장 프로그램 설치",description:"당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 CLV Wallet을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로 고치고 확장 프로그램을 로드하세요."}},qr_code:{step1:{title:"CLV Wallet 앱을 엽니다",description:"더 빠른 접근을 위해 CLV Wallet을 홈 화면에 놓는 것이 좋습니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하십시오. 절대로 비밀 구문을 누구와도 공유하지 마십시오."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다."}}},okto:{qr_code:{step1:{title:"Okto 앱을 엽니다",description:"빠른 접근을 위해 Okto를 홈 화면에 추가합니다"},step2:{title:"MPC Wallet을 만듭니다",description:"계정을 만들고 지갑을 생성합니다"},step3:{title:"설정에서 WalletConnect를 탭하십시오",description:"오른쪽 상단의 QR 아이콘을 탭하고 연결하려면 알림을 확인합니다."}}},ledger:{desktop:{step1:{title:"Ledger Live 앱을 엽니다",description:"빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다."},step2:{title:"Ledger 설정",description:"새 Ledger를 설정하거나 기존 Ledger에 연결하세요."},step3:{title:"연결",description:"스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}},qr_code:{step1:{title:"Ledger Live 앱을 엽니다",description:"빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다."},step2:{title:"Ledger 설정",description:"데스크톱 앱과 동기화하거나 Ledger를 연결할 수 있습니다."},step3:{title:"코드를 스캔하십시오",description:"WalletConnect를 탭하고 스캐너로 전환합니다. 스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}}}},tD={connect_wallet:im0,intro:am0,sign_in:om0,connect:sm0,connect_scan:fm0,connector_group:lm0,get:cm0,get_options:Em0,get_mobile:dm0,get_instructions:pm0,chains:hm0,profile:Cm0,wallet_connectors:mm0},bm0={label:"Conectar Carteira"},gm0={title:"O que é uma Carteira?",description:"Uma carteira é usada para enviar, receber, armazenar e exibir ativos digitais. Também é uma nova forma de se conectar, sem precisar criar novas contas e senhas em todo site.",digital_asset:{title:"Um lar para seus ativos digitais",description:"Carteiras são usadas para enviar, receber, armazenar e exibir ativos digitais como Ethereum e NFTs."},login:{title:"Uma nova maneira de fazer login",description:"Em vez de criar novas contas e senhas em todos os sites, basta conectar sua carteira."},get:{label:"Obter uma Carteira"},learn_more:{label:"Saiba mais"}},Am0={label:"Verifique sua conta",description:"Para concluir a conexão, você deve assinar uma mensagem em sua carteira para confirmar que você é o proprietário desta conta.",message:{send:"Enviar mensagem",preparing:"Preparando mensagem...",cancel:"Cancelar",preparing_error:"Erro ao preparar a mensagem, tente novamente!"},signature:{waiting:"Aguardando assinatura...",verifying:"Verificando assinatura...",signing_error:"Erro ao assinar a mensagem, tente novamente!",verifying_error:"Erro ao verificar assinatura, tente novamente!",oops_error:"Ops, algo deu errado!"}},ym0={label:"Conectar",title:"Conectar uma Carteira",new_to_ethereum:{description:"Novo nas carteiras Ethereum?",learn_more:{label:"Saiba mais"}},learn_more:{label:"Saiba mais"},recent:"Recente",status:{opening:"Abrindo %{wallet}...",not_installed:"%{wallet} não está instalado",not_available:"%{wallet} não está disponível",confirm:"Confirme a conexão na extensão"},secondary_action:{get:{description:"Não tem %{wallet}?",label:"OBTER"},install:{label:"INSTALAR"},retry:{label:"TENTAR DE NOVO"}},walletconnect:{description:{full:"Precisa do modal oficial do WalletConnect?",compact:"Precisa do modal WalletConnect?"},open:{label:"ABRIR"}}},vm0={title:"Digitalize com %{wallet}",fallback_title:"Digitalize com o seu telefone"},Bm0={recommended:"Recomendado",other:"Outro",popular:"Popular",more:"Mais",others:"Outros"},Fm0={title:"Obter uma Carteira",action:{label:"OBTER"},mobile:{description:"Carteira Móvel"},extension:{description:"Extensão do Navegador"},mobile_and_extension:{description:"Carteira Móvel e Extensão"},mobile_and_desktop:{description:"Carteira para Mobile e Desktop"},looking_for:{title:"Não é o que você está procurando?",mobile:{description:"Selecione uma carteira na tela principal para começar com um provedor de carteira diferente."},desktop:{compact_description:"Selecione uma carteira na tela principal para começar com um provedor de carteira diferente.",wide_description:"Selecione uma carteira à esquerda para começar com um provedor de carteira diferente."}}},Dm0={title:"Comece com %{wallet}",short_title:"Obtenha %{wallet}",mobile:{title:"%{wallet} para Móvel",description:"Use a carteira móvel para explorar o mundo do Ethereum.",download:{label:"Baixe o aplicativo"}},extension:{title:"%{wallet} para %{browser}",description:"Acesse sua carteira diretamente do seu navegador web favorito.",download:{label:"Adicionar ao %{browser}"}},desktop:{title:"%{wallet} para %{platform}",description:"Acesse sua carteira nativamente do seu desktop poderoso.",download:{label:"Adicionar ao %{platform}"}}},wm0={title:"Instale %{wallet}",description:"Escaneie com seu celular para baixar no iOS ou Android",continue:{label:"Continuar"}},xm0={mobile:{connect:{label:"Conectar"},learn_more:{label:"Saiba mais"}},extension:{refresh:{label:"Atualizar"},learn_more:{label:"Saiba mais"}},desktop:{connect:{label:"Conectar"},learn_more:{label:"Saiba mais"}}},km0={title:"Mudar Redes",wrong_network:"Rede errada detectada, mude ou desconecte para continuar.",confirm:"Confirme na Carteira",switching_not_supported:"Sua carteira não suporta a mudança de redes de %{appName}. Tente mudar de redes dentro da sua carteira.",switching_not_supported_fallback:"Sua carteira não suporta a troca de redes a partir deste aplicativo. Tente trocar de rede dentro de sua carteira.",disconnect:"Desconectar",connected:"Conectado"},_m0={disconnect:{label:"Desconectar"},copy_address:{label:"Copiar Endereço",copied:"Copiado!"},explorer:{label:"Veja mais no explorador"},transactions:{description:"%{appName} transações aparecerão aqui...",description_fallback:"Suas transações aparecerão aqui...",recent:{title:"Transações Recentes"},clear:{label:"Limpar Tudo"}}},Sm0={argent:{qr_code:{step1:{description:"Coloque o Argent na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Argent"},step2:{description:"Crie uma carteira e nome de usuário, ou importe uma carteira existente.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão Scan QR"}}},bifrost:{qr_code:{step1:{description:"Recomendamos colocar a Bifrost Wallet na sua tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Bifrost Wallet"},step2:{description:"Crie ou importe uma carteira usando sua frase de recuperação.",title:"Criar ou Importar uma Carteira"},step3:{description:"Após você escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escanear"}}},bitget:{qr_code:{step1:{description:"Recomendamos colocar a Bitget Wallet na sua tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Bitget Wallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escaneamento"}},extension:{step1:{description:"Recomendamos fixar a Bitget Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Bitget"},step2:{description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},bitski:{extension:{step1:{description:"Recomendamos fixar o Bitski na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Bitski"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},coin98:{qr_code:{step1:{description:"Recomendamos colocar a Carteira Coin98 na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Carteira Coin98"},step2:{description:"Você pode facilmente fazer backup de sua carteira usando nosso recurso de backup em seu telefone.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão WalletConnect"}},extension:{step1:{description:"Clique no canto superior direito do seu navegador e fixe a Carteira Coin98 para fácil acesso.",title:"Instale a extensão da Carteira Coin98"},step2:{description:"Crie uma nova carteira ou importe uma existente.",title:"Criar ou Importar uma carteira"},step3:{description:"Depois de configurar a Carteira Coin98, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},coinbase:{qr_code:{step1:{description:"Recomendamos colocar a Carteira Coinbase na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Coinbase Wallet"},step2:{description:"Você pode fazer backup da sua carteira facilmente usando o recurso de backup na nuvem.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para que você conecte sua carteira.",title:"Toque no botão de escanear"}},extension:{step1:{description:"Recomendamos fixar o Coinbase Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Coinbase Wallet"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},core:{qr_code:{step1:{description:"Recomendamos colocar o Core na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Core"},step2:{description:"Você pode facilmente salvar sua carteira usando nosso recurso de backup no seu celular.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão WalletConnect"}},extension:{step1:{description:"Recomendamos fixar o Core na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Core"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},fox:{qr_code:{step1:{description:"Recomendamos colocar o FoxWallet na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo FoxWallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escaneamento"}}},frontier:{qr_code:{step1:{description:"Recomendamos colocar o Frontier Wallet na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Frontier Wallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira.",title:"Toque no botão de varredura"}},extension:{step1:{description:"Recomendamos fixar a Carteira Frontier na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Frontier"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},im_token:{qr_code:{step1:{title:"Abra o aplicativo imToken",description:"Coloque o aplicativo imToken na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone do Scanner no canto superior direito",description:"Escolha Nova Conexão, em seguida, escaneie o código QR e confirme o prompt para conectar."}}},metamask:{qr_code:{step1:{title:"Abra o aplicativo MetaMask",description:"Recomendamos colocar o MetaMask na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão escanear",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão MetaMask",description:"Recomendamos fixar o MetaMask na barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize o seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},okx:{qr_code:{step1:{title:"Abra o aplicativo da Carteira OKX",description:"Recomendamos colocar a Carteira OKX na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira utilizando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão OKX Wallet",description:"Recomendamos fixar a OKX Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira utilizando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize o seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},omni:{qr_code:{step1:{title:"Abra o aplicativo Omni",description:"Adicione o Omni à sua tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone do QR e escaneie",description:"Toque no ícone QR na tela inicial, escaneie o código e confirme o prompt para conectar."}}},token_pocket:{qr_code:{step1:{title:"Abra o aplicativo TokenPocket",description:"Recomendamos colocar o TokenPocket na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão TokenPocket",description:"Recomendamos fixar o TokenPocket em sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},trust:{qr_code:{step1:{title:"Abra o aplicativo Trust Wallet",description:"Coloque o Trust Wallet na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque em WalletConnect nas Configurações",description:"Escolha Nova Conexão, depois escaneie o QR code e confirme o prompt para se conectar."}},extension:{step1:{title:"Instale a extensão Trust Wallet",description:"Clique no canto superior direito do seu navegador e marque Trust Wallet para fácil acesso."},step2:{title:"Crie ou Importe uma carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Atualize seu navegador",description:"Depois que configurar a Trust Wallet, clique abaixo para atualizar o navegador e carregar a extensão."}}},uniswap:{qr_code:{step1:{title:"Abra o aplicativo Uniswap",description:"Adicione a Carteira Uniswap à sua tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone QR e escaneie",description:"Toque no ícone QR na sua tela inicial, escaneie o código e confirme o prompt para conectar."}}},zerion:{qr_code:{step1:{title:"Abra o aplicativo Zerion",description:"Recomendamos colocar o Zerion na sua tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de digitalizar, um prompt de conexão aparecerá para que você possa conectar sua carteira."}},extension:{step1:{title:"Instale a extensão Zerion",description:"Recomendamos fixar o Zerion na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},rainbow:{qr_code:{step1:{title:"Abra o aplicativo Rainbow",description:"Recomendamos colocar o Rainbow na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Você pode facilmente fazer backup da sua carteira usando nosso recurso de backup no seu telefone."},step3:{title:"Toque no botão de digitalizar",description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira."}}},enkrypt:{extension:{step1:{description:"Recomendamos fixar a Carteira Enkrypt na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Enkrypt"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize o seu navegador"}}},frame:{extension:{step1:{description:"Recomendamos fixar o Frame na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale o Frame e a extensão complementar"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},one_key:{extension:{step1:{title:"Instale a extensão OneKey Wallet",description:"Recomendamos fixar a OneKey Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},phantom:{extension:{step1:{title:"Instale a extensão Phantom",description:"Recomendamos fixar o Phantom na sua barra de tarefas para facilitar o acesso à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta de recuperação com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},rabby:{extension:{step1:{title:"Instale a extensão Rabby",description:"Recomendamos fixar Rabby na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},safeheron:{extension:{step1:{title:"Instale a extensão Core",description:"Recomendamos fixar Safeheron na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},taho:{extension:{step1:{title:"Instale a extensão Taho",description:"Recomendamos fixar o Taho na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},talisman:{extension:{step1:{title:"Instale a extensão Talisman",description:"Recomendamos fixar o Talisman na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Crie ou Importe uma Carteira Ethereum",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase de recuperação com ninguém."},step3:{title:"Atualize o seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},xdefi:{extension:{step1:{title:"Instale a extensão XDEFI Wallet",description:"Recomendamos fixar a Carteira XDEFI na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},zeal:{extension:{step1:{title:"Instale a extensão Zeal",description:"Recomendamos fixar o Zeal na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},safepal:{extension:{step1:{title:"Instale a extensão da Carteira SafePal",description:"Clique no canto superior direito do seu navegador e fixe a Carteira SafePal para fácil acesso."},step2:{title:"Criar ou Importar uma carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Atualize seu navegador",description:"Depois de configurar a Carteira SafePal, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo Carteira SafePal",description:"Coloque a Carteira SafePal na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque em WalletConnect nas Configurações",description:"Escolha Nova Conexão, em seguida, escaneie o código QR e confirme o prompt para conectar."}}},desig:{extension:{step1:{title:"Instale a extensão Desig",description:"Recomendamos fixar Desig na sua barra de tarefas para facilitar o acesso à sua carteira."},step2:{title:"Criar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},subwallet:{extension:{step1:{title:"Instale a extensão SubWallet",description:"Recomendamos fixar SubWallet na sua barra de tarefas para acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase de recuperação com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo SubWallet",description:"Recomendamos colocar SubWallet na tela inicial para acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de escanear",description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira."}}},clv:{extension:{step1:{title:"Instale a extensão CLV Wallet",description:"Recomendamos fixar CLV Wallet na sua barra de tarefas para acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo da carteira CLV",description:"Recomendamos colocar a Carteira CLV na tela inicial para acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de escanear",description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira."}}},okto:{qr_code:{step1:{title:"Abra o aplicativo Okto",description:"Adicione Okto à sua tela inicial para acesso rápido"},step2:{title:"Crie uma carteira MPC",description:"Crie uma conta e gere uma carteira"},step3:{title:"Toque em WalletConnect nas Configurações",description:"Toque no ícone Scan QR no canto superior direito e confirme o prompt para conectar."}}},ledger:{desktop:{step1:{title:"Abra o aplicativo Ledger Live",description:"Recomendamos colocar o Ledger Live na tela inicial para um acesso mais rápido."},step2:{title:"Configure seu Ledger",description:"Configure um novo Ledger ou conecte-se a um já existente."},step3:{title:"Conectar",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},qr_code:{step1:{title:"Abra o aplicativo Ledger Live",description:"Recomendamos colocar o Ledger Live na tela inicial para um acesso mais rápido."},step2:{title:"Configure seu Ledger",description:"Você pode sincronizar com o aplicativo de desktop ou conectar seu Ledger."},step3:{title:"Escanear o código",description:"Toque em WalletConnect e em seguida mude para Scanner. Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}}}},nD={connect_wallet:bm0,intro:gm0,sign_in:Am0,connect:ym0,connect_scan:vm0,connector_group:Bm0,get:Fm0,get_options:Dm0,get_mobile:wm0,get_instructions:xm0,chains:km0,profile:_m0,wallet_connectors:Sm0},Tm0={label:"Подключить кошелек"},Pm0={title:"Что такое кошелек?",description:"Кошелек используется для отправки, получения, хранения и отображения цифровых активов. Это также новый способ входа в систему, без необходимости создания новых учетных записей и паролей на каждом сайте.",digital_asset:{title:"Дом для ваших цифровых активов",description:"Кошельки используются для отправки, получения, хранения и отображения цифровых активов, таких как Ethereum и NFT."},login:{title:"Новый способ входа в систему",description:"Вместо создания новых аккаунтов и паролей на каждом сайте, просто подключите ваш кошелек."},get:{label:"Получить кошелек"},learn_more:{label:"Узнать больше"}},Om0={label:"Проверьте ваш аккаунт",description:"Чтобы завершить подключение, вы должны подписать сообщение в вашем кошельке, чтобы подтвердить, что вы являетесь владельцем этого аккаунта.",message:{send:"Отправить сообщение",preparing:"Подготовка сообщения...",cancel:"Отмена",preparing_error:"Ошибка при подготовке сообщения, пожалуйста, попробуйте снова!"},signature:{waiting:"Ожидание подписи...",verifying:"Проверка подписи...",signing_error:"Ошибка при подписании сообщения, пожалуйста, попробуйте снова!",verifying_error:"Ошибка при проверке подписи, пожалуйста, попробуйте снова!",oops_error:"Ой, что-то пошло не так!"}},Im0={label:"Подключить",title:"Подключить кошелек",new_to_ethereum:{description:"Впервые столкнулись с кошельками Ethereum?",learn_more:{label:"Узнать больше"}},learn_more:{label:"Узнать больше"},recent:"Недавние",status:{opening:"Открывается %{wallet}...",not_installed:"%{wallet} не установлен",not_available:"%{wallet} не доступен",confirm:"Подтвердите подключение в расширении"},secondary_action:{get:{description:"У вас нет %{wallet}?",label:"ПОЛУЧИТЬ"},install:{label:"УСТАНОВИТЬ"},retry:{label:"ПОВТОРИТЬ"}},walletconnect:{description:{full:"Нужен официальный модальный окно WalletConnect?",compact:"Нужен модальный окно WalletConnect?"},open:{label:"ОТКРЫТЬ"}}},Nm0={title:"Сканировать с помощью %{wallet}",fallback_title:"Сканировать с помощью вашего телефона"},Rm0={recommended:"Рекомендуемые",other:"Другие",popular:"Популярные",more:"Больше",others:"Другие"},Mm0={title:"Получить кошелек",action:{label:"ПОЛУЧИТЬ"},mobile:{description:"Мобильный кошелек"},extension:{description:"Расширение для браузера"},mobile_and_extension:{description:"Мобильный кошелек и расширение"},mobile_and_desktop:{description:"Мобильный и настольный кошелек"},looking_for:{title:"Не то, что вы ищете?",mobile:{description:"Выберите кошелек на главном экране, чтобы начать работу с другим провайдером кошелька."},desktop:{compact_description:"Выберите кошелек на главном экране, чтобы начать работу с другим провайдером кошелька.",wide_description:"Выберите кошелек слева, чтобы начать работу с другим провайдером кошелька."}}},jm0={title:"Начните с %{wallet}",short_title:"Получить %{wallet}",mobile:{title:"%{wallet} для мобильных",description:"Используйте мобильный кошелек для исследования мира Ethereum.",download:{label:"Скачать приложение"}},extension:{title:"%{wallet} для %{browser}",description:"Доступ к вашему кошельку прямо из вашего любимого веб-браузера.",download:{label:"Добавить в %{browser}"}},desktop:{title:"%{wallet} для %{platform}",description:"Получите доступ к вашему кошельку нативно со своего мощного рабочего стола.",download:{label:"Добавить в %{platform}"}}},zm0={title:"Установить %{wallet}",description:"Отсканируйте на своем телефоне для скачивания на iOS или Android",continue:{label:"Продолжить"}},Lm0={mobile:{connect:{label:"Подключить"},learn_more:{label:"Узнать больше"}},extension:{refresh:{label:"Обновить"},learn_more:{label:"Узнать больше"}},desktop:{connect:{label:"Подключить"},learn_more:{label:"Узнать больше"}}},$m0={title:"Переключить сети",wrong_network:"Обнаружена неверная сеть, переключитесь или отключитесь для продолжения.",confirm:"Подтвердить в кошельке",switching_not_supported:"Ваш кошелек не поддерживает переключение сетей с %{appName}. Попробуйте переключить сети из вашего кошелька.",switching_not_supported_fallback:"Ваш кошелек не поддерживает переключение сетей из этого приложения. Попробуйте переключить сети из вашего кошелька.",disconnect:"Отключить",connected:"Подключено"},Um0={disconnect:{label:"Отключить"},copy_address:{label:"Скопировать адрес",copied:"Скопировано!"},explorer:{label:"Посмотреть больше в эксплорере"},transactions:{description:"%{appName} транзакции появятся здесь...",description_fallback:"Ваши транзакции появятся здесь...",recent:{title:"Недавние транзакции"},clear:{label:"Очистить все"}}},Wm0={argent:{qr_code:{step1:{description:"Добавьте Argent на домашний экран для более быстрого доступа к вашему кошельку.",title:"Откройте приложение Argent"},step2:{description:"Создайте кошелек и имя пользователя или импортируйте существующий кошелек.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение для подключения вашего кошелька.",title:"Нажмите кнопку Сканировать QR"}}},bifrost:{qr_code:{step1:{description:"Мы рекомендуем добавить кошелек Bifrost на ваш начальный экран для более быстрого доступа.",title:"Откройте приложение Bifrost Wallet"},step2:{description:"Создайте или импортируйте кошелек, используя вашу фразу восстановления.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение вашего кошелька.",title:"Нажмите кнопку сканирования"}}},bitget:{qr_code:{step1:{description:"Мы рекомендуем добавить Bitget Wallet на ваш экран для более быстрого доступа.",title:"Откройте приложение Bitget Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение вашего кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем закрепить Bitget Wallet на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Bitget Wallet"},step2:{description:"Обязательно сохраните резервную копию вашего кошелька с помощью надёжного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},bitski:{extension:{step1:{description:"Мы рекомендуем прикрепить Bitski к вашей панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Bitski"},step2:{description:"Обязательно сохраните резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать кошелек или Импортировать кошелек"},step3:{description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},coin98:{qr_code:{step1:{description:"Мы рекомендуем добавить Coin98 Wallet на ваш главный экран для более быстрого доступа к вашему кошельку.",title:"Откройте приложение Coin98 Wallet"},step2:{description:"Вы можете легко сделать резервную копию вашего кошелька, используя нашу функцию резервного копирования на вашем телефоне.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования для вас появится запрос на подключение, чтобы подключить ваш кошелек.",title:"Нажмите кнопку WalletConnect"}},extension:{step1:{description:"Нажмите в верхнем правом углу вашего браузера и закрепите Coin98 Wallet для удобного доступа.",title:"Установите расширение Coin98 Wallet"},step2:{description:"Создайте новый кошелек или импортируйте существующий.",title:"Создайте или импортируйте кошелек"},step3:{description:"После того как вы настроите Кошелек Coin98, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},coinbase:{qr_code:{step1:{description:"Мы рекомендуем добавить Coinbase Wallet на ваш экран начала для более быстрого доступа.",title:"Откройте приложение Coinbase Wallet"},step2:{description:"Вы легко можете сделать резервную копию вашего кошелька, используя функцию облачного резервного копирования.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение для подключения вашего кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем закрепить Coinbase Wallet на вашей панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Coinbase Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},core:{qr_code:{step1:{description:"Мы рекомендуем добавить Core на ваш экран быстрого доступа для ускоренного доступа к вашему кошельку.",title:"Открыть приложение Core"},step2:{description:"Вы можете легко создать резервную копию вашего кошелька, используя нашу функцию резервного копирования на вашем телефоне.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение, чтобы вы могли подключить ваш кошелек.",title:"Нажмите кнопку WalletConnect"}},extension:{step1:{description:"Мы рекомендуем закрепить Core на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Core"},step2:{description:"Обязательно создайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь вашей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"Как только вы настроите ваш кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},fox:{qr_code:{step1:{description:"Мы рекомендуем поместить FoxWallet на ваш экран начального экрана для более быстрого доступа.",title:"Откройте приложение FoxWallet"},step2:{description:"Обязательно сделайте резервное копирование вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится приглашение для подключения вашего кошелька.",title:"Нажмите кнопку сканирования"}}},frontier:{qr_code:{step1:{description:"Мы рекомендуем установить Frontier Wallet на экран вашего смартфона для более быстрого доступа.",title:"Откройте приложение Frontier Wallet"},step2:{description:"Обязательно сделайте резервное копирование вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем прикрепить кошелек Frontier к панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение кошелька Frontier"},step2:{description:"Обязательно сделайте резервную копию своего кошелька с использованием надежного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"После настройки вашего кошелька нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},im_token:{qr_code:{step1:{title:"Откройте приложение imToken",description:"Поместите приложение imToken на главный экран для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку сканера в верхнем правом углу",description:"Выберите Новое соединение, затем отсканируйте QR-код и подтвердите запрос на соединение."}}},metamask:{qr_code:{step1:{title:"Откройте приложение MetaMask",description:"Мы рекомендуем поместить MetaMask на главный экран для быстрого доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Обязательно сохраните копию своего кошелька с помощью надежного метода. Никогда не делитесь своей секретной фразой с кем бы то ни было."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на соединение вашего кошелька."}},extension:{step1:{title:"Установите расширение MetaMask",description:"Мы рекомендуем закрепить MetaMask на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, щелкните ниже, чтобы обновить браузер и загрузить расширение."}}},okx:{qr_code:{step1:{title:"Откройте приложение кошелька OKX",description:"Мы рекомендуем разместить кошелек OKX на вашем главном экране для более быстрого доступа."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите на кнопку сканирования",description:"После сканирования появится запрос на подключение вашего кошелька."}},extension:{step1:{title:"Установите расширение кошелька OKX",description:"Мы рекомендуем закрепить OKX Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать кошелек или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},omni:{qr_code:{step1:{title:"Откройте приложение Omni",description:"Добавьте Omni на свой домашний экран для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку QR и отсканируйте",description:"Нажмите на иконку QR на вашем домашнем экране, отсканируйте код и подтвердите подсказку, чтобы подключиться."}}},token_pocket:{qr_code:{step1:{title:"Откройте приложение TokenPocket",description:"Мы рекомендуем разместить TokenPocket на вашем домашнем экране для быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька при помощи безопасного метода. Никогда не делитесь своим секретным кодом с кем-либо."},step3:{title:"Нажмите на кнопку сканирования",description:"После сканирования появится подсказка о подключении для подключения вашего кошелька."}},extension:{step1:{title:"Установите расширение TokenPocket",description:"Мы рекомендуем закрепить TokenPocket на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},trust:{qr_code:{step1:{title:"Откройте приложение Trust Wallet",description:"Разместите Trust Wallet на вашем домашнем экране для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите WalletConnect в настройках",description:"Выберите Новое соединение, затем сканируйте QR-код и подтвердите запрос на подключение."}},extension:{step1:{title:"Установите расширение Trust Wallet",description:"Кликните в правом верхнем углу вашего браузера и закрепите Trust Wallet для легкого доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Обновите ваш браузер",description:"После настройки Trust Wallet, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},uniswap:{qr_code:{step1:{title:"Откройте приложение Uniswap",description:"Добавьте кошелек Uniswap на главный экран для быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку QR и отсканируйте",description:"Нажмите на иконку QR на главном экране, отсканируйте код и подтвердите запрос на подключение."}}},zerion:{qr_code:{step1:{title:"Откройте приложение Zerion",description:"Мы рекомендуем разместить Zerion на главном экране для более быстрого доступа."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования вам будет предложено подключить ваш кошелек."}},extension:{step1:{title:"Установите расширение Zerion",description:"Мы рекомендуем прикрепить Zerion к вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делясь своим секретным паролем с кем-либо."},step3:{title:"Обновите ваш браузер",description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},rainbow:{qr_code:{step1:{title:"Откройте приложение Rainbow",description:"Мы рекомендуем поместить Rainbow на ваш экран главного меню для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек",description:"Вы можете легко сделать резервную копию вашего кошелька с помощью нашей функции резервного копирования на вашем телефоне."},step3:{title:"Нажмите кнопку сканировать",description:"После сканирования появится запрос на подключение вашего кошелька."}}},enkrypt:{extension:{step1:{description:"Мы рекомендуем закрепить Enkrypt Wallet на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Enkrypt Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},frame:{extension:{step1:{description:"Мы рекомендуем закрепить Frame на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите Frame и дополнительное расширение"},step2:{description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создайте или Импортируйте кошелек"},step3:{description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},one_key:{extension:{step1:{title:"Установите расширение OneKey Wallet",description:"Мы рекомендуем закрепить OneKey Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или Импортируйте кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки кошелька нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},phantom:{extension:{step1:{title:"Установите расширение Phantom",description:"Мы рекомендуем закрепить Phantom на панели задач для более удобного доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},rabby:{extension:{step1:{title:"Установите расширение Rabby",description:"Мы рекомендуем закрепить Rabby на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем бы то ни было."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},safeheron:{extension:{step1:{title:"Установите основное расширение",description:"Мы рекомендуем закрепить SafeHeron на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того, как вы настроите ваш кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},taho:{extension:{step1:{title:"Установите расширение Taho",description:"Мы рекомендуем закрепить Taho на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},talisman:{extension:{step1:{title:"Установите расширение Talisman",description:"Мы рекомендуем закрепить Talisman на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек Ethereum",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь вашей фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},xdefi:{extension:{step1:{title:"Установите расширение кошелька XDEFI",description:"Мы рекомендуем закрепить XDEFI Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того, как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},zeal:{extension:{step1:{title:"Установите расширение Zeal",description:"Мы рекомендуем закрепить Zeal на панели задач для быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},safepal:{extension:{step1:{title:"Установите расширение SafePal Wallet",description:"Кликните в верхнем правом углу вашего браузера и закрепите SafePal Wallet для удобного доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Обновите ваш браузер",description:"После настройки кошелька SafePal нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение SafePal Wallet",description:"Разместите SafePal Wallet на главном экране для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите WalletConnect в настройках",description:"Выберите Новое соединение, затем отсканируйте QR-код и подтвердите запрос на соединение."}}},desig:{extension:{step1:{title:"Установите расширение Desig",description:"Мы рекомендуем закрепить Desig на вашей панели задач для более удобного доступа к вашему кошельку."},step2:{title:"Создать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},subwallet:{extension:{step1:{title:"Установите расширение SubWallet",description:"Мы рекомендуем закрепить SubWallet на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь вашей фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение SubWallet",description:"Мы рекомендуем добавить SubWallet на ваш экран начальной страницы для более быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на подключение для подключения вашего кошелька."}}},clv:{extension:{step1:{title:"Установите расширение CLV Wallet",description:"Мы рекомендуем закрепить CLV Wallet на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение CLV Wallet",description:"Мы рекомендуем поместить CLV Wallet на ваш экран домой для более быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на подключение для подключения вашего кошелька."}}},okto:{qr_code:{step1:{title:"Откройте приложение Okto",description:"Добавьте Okto на ваш экран домой для быстрого доступа"},step2:{title:"Создать кошелек MPC",description:"Создайте учетную запись и сгенерируйте кошелек"},step3:{title:"Нажмите WalletConnect в настройках",description:"Коснитесь значка Scan QR в верхнем правом углу и подтвердите запрос на подключение."}}},ledger:{desktop:{step1:{title:"Откройте приложение Ledger Live",description:"Мы рекомендуем поместить Ledger Live на ваш экран домой для более быстрого доступа."},step2:{title:"Настройте ваш Ledger",description:"Настройте новый Ledger или подключитесь к существующему."},step3:{title:"Подключить",description:"После сканирования вам будет предложено подключить ваш кошелек."}},qr_code:{step1:{title:"Откройте приложение Ledger Live",description:"Мы рекомендуем поместить Ledger Live на ваш экран домой для более быстрого доступа."},step2:{title:"Настройте ваш Ledger",description:"Вы можете синхронизировать с настольным приложением или подключить свой Ledger."},step3:{title:"Сканировать код",description:"Нажмите WalletConnect, затем переключитесь на Scanner. После сканирования вам будет предложено подключить ваш кошелек."}}}},rD={connect_wallet:Tm0,intro:Pm0,sign_in:Om0,connect:Im0,connect_scan:Nm0,connector_group:Rm0,get:Mm0,get_options:jm0,get_mobile:zm0,get_instructions:Lm0,chains:$m0,profile:Um0,wallet_connectors:Wm0},qm0={label:"เชื่อมต่อกระเป๋าเงิน"},Hm0={title:"อะไรคือกระเป๋าเงิน?",description:"กระเป๋าเงินใช้ในการส่ง, รับ, เก็บ, และแสดงสินทรัพย์ดิจิทัล มันยังเป็นวิธีใหม่ในการเข้าสู่ระบบ, โดยไม่จำเป็นต้องสร้างบัญชีและรหัสผ่านใหม่ในทุกเว็บไซต์.",digital_asset:{title:"บ้านสำหรับสินทรัพย์ดิจิทัลของคุณ",description:"กระเป๋าเงินถูกใช้เพื่อส่ง, รับ, เก็บ, แสดงสินทรัพย์ดิจิทัล เช่น Ethereum และ NFTs."},login:{title:"วิธีใหม่ในการเข้าสู่ระบบ",description:"แทนที่จะสร้างบัญชีและรหัสผ่านใหม่ในทุกเว็บไซต์, แค่เชื่อมต่อกระเป๋าของคุณ."},get:{label:"รับกระเป๋าเงิน"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},Gm0={label:"ยืนยันบัญชีของคุณ",description:"เพื่อการเชื่อมต่อที่สมบูรณ์, คุณต้องลงนามในข้อความในกระเป๋าเงินของคุณเพื่อยืนยันว่าคุณเป็นเจ้าของบัญชีนี้",message:{send:"ส่งข้อความ",preparing:"กำลังเตรียมข้อความ...",cancel:"ยกเลิก",preparing_error:"เกิดข้อผิดพลาดในการเตรียมข้อความ โปรดลองใหม่!"},signature:{waiting:"รอการลงนาม...",verifying:"กำลังตรวจสอบลายเซ็น...",signing_error:"เกิดข้อผิดพลาดในการลงนามในข้อความ โปรดลองใหม่!",verifying_error:"เกิดข้อผิดพลาดในการตรวจสอบลายเซ็น โปรดลองใหม่!",oops_error:"อ๊ะ, เกิดข้อผิดพลาดบางอย่าง!"}},Vm0={label:"เชื่อมต่อ",title:"เชื่อมต่อกระเป๋าเงิน",new_to_ethereum:{description:"ใหม่กับกระเป๋า Ethereum หรือไม่?",learn_more:{label:"เรียนรู้เพิ่มเติม"}},learn_more:{label:"เรียนรู้เพิ่มเติม"},recent:"ล่าสุด",status:{opening:"กำลังเปิด %{wallet}...",not_installed:"%{wallet} ไม่ได้ติดตั้ง",not_available:"%{wallet} ไม่สามารถใช้ได้",confirm:"ยืนยันการเชื่อมต่อในส่วนขยาย"},secondary_action:{get:{description:"ไม่มี %{wallet}?",label:"รับ"},install:{label:"ติดตั้ง"},retry:{label:"ลองใหม่"}},walletconnect:{description:{full:"ต้องการ modal อย่างเป็นทางการจาก WalletConnect หรือไม่?",compact:"ต้องการ modal จาก WalletConnect หรือไม่?"},open:{label:"เปิด"}}},Km0={title:"สแกนด้วย %{wallet}",fallback_title:"สแกนด้วยโทรศัพท์ของคุณ"},Qm0={recommended:"แนะนำ",other:"อื่น ๆ",popular:"ยอดนิยม",more:"เพิ่มเติม",others:"อื่น ๆ"},Jm0={title:"รับ Wallet",action:{label:"รับ"},mobile:{description:"Wallet บนมือถือ"},extension:{description:"ส่วนขยายบราวเซอร์"},mobile_and_extension:{description:"กระเป๋าเงินมือถือและส่วนขยาย"},mobile_and_desktop:{description:"กระเป๋าเงินบนมือถือและคอมพิวเตอร์"},looking_for:{title:"ไม่ใช่สิ่งที่คุณกำลังหาหรือไม่?",mobile:{description:"เลือกกระเป๋าเงินบนหน้าจอหลักเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน"},desktop:{compact_description:"เลือกกระเป๋าเงินบนหน้าจอหลักเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน",wide_description:"เลือกกระเป๋าเงินที่อยู่ทางซ้ายเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน"}}},Ym0={title:"เริ่มต้นกับ %{wallet}",short_title:"รับ %{wallet}",mobile:{title:"%{wallet} สำหรับมือถือ",description:"ใช้กระเป๋าระบบมือถือในการสำรวจโลกของ Ethereum.",download:{label:"รับแอป"}},extension:{title:"%{wallet} สำหรับ %{browser}",description:"เข้าถึงกระเป๋าเงินของคุณได้โดยตรงจากบราวเซอร์ที่คุณชื่นชอบ.",download:{label:"เพิ่มไปยัง %{browser}"}},desktop:{title:"%{wallet} สำหรับ %{platform}",description:"เข้าถึงกระเป๋าเงินของคุณโดยตรงจากคอมพิวเตอร์ที่มีประสิทธิภาพของคุณ",download:{label:"เพิ่มไปยัง %{platform}"}}},Zm0={title:"ติดตั้ง %{wallet}",description:"สแกนด้วยโทรศัพท์ของคุณเพื่อดาวน์โหลดบน iOS หรือ Android",continue:{label:"ดำเนินการต่อ"}},Xm0={mobile:{connect:{label:"เชื่อมต่อ"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},extension:{refresh:{label:"รีเฟรช"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},desktop:{connect:{label:"เชื่อมต่อ"},learn_more:{label:"เรียนรู้เพิ่มเติม"}}},ub0={title:"เปลี่ยนเครือข่าย",wrong_network:"ตรวจสอบพบเครือข่ายที่ไม่ถูกต้อง สลับหรือตัดการเชื่อมต่อเพื่อดำเนินการต่อ.",confirm:"ยืนยันใน Wallet",switching_not_supported:"กระเป๋าสตางค์ของคุณไม่สนับสนุนการเปลี่ยนเครือข่ายจาก %{appName}ลองเปลี่ยนเครือข่ายจากภายในกระเป๋าสตางค์ของคุณแทน",switching_not_supported_fallback:"กระเป๋าสตางค์ของคุณไม่สนับสนุนการสลับเครือข่ายจากแอปนี้ ลองสลับเครือข่ายจากภายในกระเป๋าสตางค์ของคุณแทน",disconnect:"ตัดการเชื่อมต่อ",connected:"เชื่อมต่อแล้ว"},eb0={disconnect:{label:"ตัดการเชื่อมต่อ"},copy_address:{label:"คัดลอกที่อยู่",copied:"คัดลอกแล้ว!"},explorer:{label:"ดูเพิ่มเติมบน explorer"},transactions:{description:"%{appName} รายการจะปรากฎที่นี่...",description_fallback:"การทำธุรกรรมของคุณจะปรากฎที่นี่...",recent:{title:"ธุรกรรมล่าสุด"},clear:{label:"ลบทั้งหมด"}}},tb0={argent:{qr_code:{step1:{description:"วาง Argent บนหน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น",title:"เปิดแอป Argent"},step2:{description:"สร้างกระเป๋าเงินและชื่อผู้ใช้หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ",title:"แตะที่คุ่มุ่งสแกน QR"}}},bifrost:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Bifrost Wallet บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น",title:"เปิดแอพฯ Bifrost Wallet"},step2:{description:"สร้างหรือนำเข้ากระเป๋าเงินด้วย recovery phrase ของคุณ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกนแล้วยินยันการเชื่อมต่อกับกระเป๋าเงินของคุณ",title:"แตะปุ่มสแกน"}}},bitget:{qr_code:{step1:{description:"เราขอแนะนำให้วาง Bitget Wallet บนหน้าจอหน้าแรกของคุณเพื่อการเข้าถึงที่รวดเร็วขึ้น.",title:"เปิดแอพ Bitget Wallet"},step2:{description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด.",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"หลังจากที่คุณสแกน จะมีข้อความขอเชื่อมต่อที่จะปรากฏขึ้นให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ.",title:"แตะปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณปัก Bitget Wallet ไว้บนแถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ได้เร็วขึ้น",title:"ติดตั้งส่วนเสริม Bitget Wallet"},step2:{description:"โปรดแน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับบุคคลใดๆ",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},bitski:{extension:{step1:{description:"เราแนะนำให้ทำปัก Bitski ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้โดยไม่ต้องรอ",title:"ติดตั้งส่วนขยาย Bitski"},step2:{description:"ควรสำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยคำลับของคุณให้ใครทราบ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},coin98:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Coin98 Wallet บนหน้าจอหลักของคุณ เพื่อให้เข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น.",title:"เปิดแอพ Coin98 Wallet"},step2:{description:"คุณสามารถสำรองข้อมูลกระเป๋าเงินของคุณได้ง่ายๆ ด้วยฟีเจอร์สำรองข้อมูลบนโทรศัพท์ของคุณ.",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากคุณสแกน จะมีเตือนการเชื่อมต่อที่ปรากฏขึ้นให้คุณเชื่อมต่อกระเป๋าเงินของคุณ.",title:"แตะที่ปุ่ม WalletConnect"}},extension:{step1:{description:"คลิกที่ด้านบนขวาของเบราว์เซอร์ของคุณและปัก Coin98 Wallet ไว้เพื่อให้เข้าถึงได้ง่าย.",title:"ติดตั้งส่วนขยาย Coin98 Wallet"},step2:{description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว.",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณตั้งค่า Coin98 Wallet แล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยายขึ้นมา.",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},coinbase:{qr_code:{step1:{description:"เราแนะนำให้วาง Coinbase Wallet ไว้ที่หน้าจอหลักของคุณเพื่อให้เข้าถึงได้เร็วขึ้น.",title:"เปิดแอป Coinbase Wallet"},step2:{description:"คุณสามารถสำรองข้อมูลกระเป๋าสตางค์ของคุณได้ง่ายๆ โดยใช้ฟีเจอร์การสำรองข้อมูลด้วยคลาวด์",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแสดงขอ้มูลเพื่อให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ",title:"แตะที่ปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณยัด Coinbase Wallet ไว้ที่แถบงานของคุณเพื่อให้สามารถเข้าถึงกระเป๋าสตางค์ของคุณได้เร็วขึ้น",title:"ติดตั้งส่วนขยาย Coinbase Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้กับใครเลย",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณได้ตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อเรียกดูเบราว์เซอร์ใหม่และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},core:{qr_code:{step1:{description:"เราแนะนำให้คุณวาง Core ลงสนามหลักเพื่อให้เข้าถึงกระเป๋าเงินได้เร็วขึ้น",title:"เปิดแอปเครื่องมือช่วยอีเกิร์น"},step2:{description:"คุณสามารถสำรองกระเป๋าเงินของคุณได้ง่ายๆ โดยใช้ฟีเจอร์สำรองของเราบนโทรศัพท์ของคุณ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแจ้งเตือนเพื่อให้คุณเชื่อมต่อกับกระเป๋าสตางค์ของคุณ",title:"แตะปุ่ม WalletConnect"}},extension:{step1:{description:"เราขอแนะนำให้คุณปัก Core ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้อย่างรวดเร็ว",title:"ติดตั้งส่วนขยาย Core"},step2:{description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},fox:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง FoxWallet บนหน้าจอหลักเพื่อให้เข้าถึงได้เร็วขึ้น",title:"เปิดแอป FoxWallet"},step2:{description:"ตรวจสอบที่จะสำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย จงอย่าเปิดเผยประโยคลับลับของคุณให้ผู้อื่นรู้",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกน จะมีการเชื่อมต่อที่แสดงให้คุณเชื่อมต่อกระเป๋าเงินของคุณ",title:"แตะปุ่มสแกน"}}},frontier:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Frontier Wallet บนหน้าจอหลักเพื่อให้เข้าถึงได้เร็วขึ้น",title:"เปิดแอป Frontier Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแสดงข้อมูลเพื่อให้คุณเชื่อมต่อกับกระเป๋าสตางค์ของคุณ",title:"แตะปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณปักหมุด Frontier Wallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้ง่ายขึ้น",title:"ติดตั้งส่วนเสริม Frontier Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},im_token:{qr_code:{step1:{title:"เปิดแอพ imToken",description:"ใส่แอพ imToken ไว้ที่หน้าจอหลักเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว"},step3:{title:"แตะไอคอนสแกนเนอร์ในมุมบนขวา",description:"เลือก New Connection, แล้วสแกน QR code และยืนยันการรับรองสำหรับการเชื่อมต่อ"}}},metamask:{qr_code:{step1:{title:"เปิดแอป MetaMask",description:"เราขอแนะนำให้วาง MetaMask บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบว่าได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับใคร"},step3:{title:"แตะที่ปุ่มสแกน",description:"หลังจากการสแกน, จะปรากฏข้อความเชื่อมต่อสำหรับคุณเพื่อเชื่อมต่อกับกระเป๋าเงินของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย MetaMask",description:"เราขอแนะนำให้คุณปัก MetaMask ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้รวดเร็ว"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่างแน่นอนให้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ประโยคลับของคุณกับใครเลย"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},okx:{qr_code:{step1:{title:"เปิดแอพ OKX Wallet",description:"เราแนะนำให้วาง OKX Wallet บนหน้าจอหลักของคุณเพื่อให้เข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"จงแน่ใจว่าคุณได้สำรองข้อมูล wallet ของคุณด้วยวิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณให้คนอื่น"},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะมีการแสดงข้อมูลเพื่อให้คุณเชื่อมต่อ wallet ของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนเสริม OKX Wallet",description:"เราแนะนำให้ยึด OKX Wallet ไว้ที่แถบงานของคุณเพื่อให้เข้าถึง wallet ของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณด้วยวิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้ใครทราบ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},omni:{qr_code:{step1:{title:"เปิดแอป Omni",description:"เพิ่ม Omni ไปยังหน้าจอแรกเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้รวดเร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าสตางค์",description:"สร้างกระเป๋าสตางค์ใหม่หรือนำเข้ากระเป๋าสตางค์ที่มีอยู่"},step3:{title:"แตะที่ไอคอน QR แล้วสแกน",description:"แตะที่ไอคอน QR บนหน้าจอหน้าแรกของคุณ, สแกนรหัสและยืนยันการเตือนเพื่อเชื่อมต่อ."}}},token_pocket:{qr_code:{step1:{title:"เปิดแอป TokenPocket",description:"เราแนะนำให้วาง TokenPocket บนหน้าจอหน้าแรกของคุณเพื่อเข้าถึงได้เร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบว่าได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้ผู้อื่นทราบในทางใดทางหนึ่ง."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย TokenPocket",description:"เราขอแนะนำให้คุณปัก TokenPocket ไว้ที่แถบงานเพื่อทำให้สามารถเข้าถึงกระเป๋าเงินของคุณได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณด้วยวิธีที่ปลอดภัย อย่าทำการแชร์ประโยคลับด้วยความลับของคุณกับใคร"},step3:{title:"รีเฟรชบราวเซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชบราวเซอร์และโหลดส่วนขยาย"}}},trust:{qr_code:{step1:{title:"เปิดแอพ Trust Wallet",description:"วาง Trust Wallet ที่หน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้รวดเร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้าง wallet ใหม่หรือนำเข้า wallet ที่มีอยู่แล้ว"},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"เลือก New Connection จากนั้นสแกน QR code และยืนยันการแจ้งเตือนเพื่อเชื่อมต่อ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย Trust Wallet",description:"คลิกที่มุมบนขวาของเบราว์เซอร์ของคุณและปัก Trust Wallet เพื่อเข้าถึงได้ง่าย"},step2:{title:"สร้างหรือนำเข้า wallet",description:"สร้าง wallet ใหม่หรือนำเข้า wallet ที่มีอยู่แล้ว"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่า Trust Wallet แล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยายขึ้นมา"}}},uniswap:{qr_code:{step1:{title:"เปิดแอป Uniswap",description:"เพิ่ม Uniswap Wallet ไปยังหน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว"},step3:{title:"แตะที่ไอคอน QR และสแกน",description:"แตะที่ไอคอน QR บนหน้าจอหลักของคุณ สแกนรหัสและยืนยันการเชื่อมต่อ"}}},zerion:{qr_code:{step1:{title:"เปิดแอป Zerion",description:"เราแนะนำให้คุณวาง Zerion บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ลองทำสำเนาข้อมูล wallet ของคุณไว้ในช่องทางที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับผู้อื่น"},step3:{title:"แตะที่ปุ่มสแกน",description:"หลังจากสแกน จะมีหน้าต่างแสดงคำสั่งเชื่อมต่อให้คุณเชื่อมต่อ wallet ของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย Zerion",description:"เราแนะนำให้คุณติด Zerion บนแถบงานของคุณเพื่อเข้าถึง wallet ของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยวิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับลับของคุณให้ใครทราบครับ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},rainbow:{qr_code:{step1:{title:"เปิดแอป Rainbow",description:"เราขอแนะนำให้คุณวาง Rainbow อยู่บนหน้าจอหลักของคุณเพื่อรับผิดชอบจากกระเป๋าสตางค์ของคุณอย่างรวดเร็ว"},step2:{title:"สร้างหรือนำเข้ากระเป๋าสตางค์",description:"คุณสามารถสำรองข้อมูลกระเป๋าสตางค์ของคุณได้ง่ายๆ ด้วยฟีเจอร์สำรองข้อมูลบนโทรศัพท์ของคุณ"},step3:{title:"แตะปุ่มสแกน",description:"หลังจากสแกนแล้ว จะแสดงข้อความขอเชื่อมต่อเพื่อให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ"}}},enkrypt:{extension:{step1:{description:"เราขอแนะนำให้คุณปัก Enkrypt Wallet ไว้ที่แทบงานของคุณเพื่อให้สามารถเข้าถึงกระเป๋าสตางค์ของคุณได้เร็วขึ้น",title:"ติดตั้งส่วนขยาย Enkrypt Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย ห้ามแชร์วลีลับของคุณให้กับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่า wallet ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรช browser และโหลดขึ้น extension",title:"รีเฟรช browser ของคุณ"}}},frame:{extension:{step1:{description:"เราแนะนำให้หมุน Frame ไว้บน taskbar ของคุณเพื่อให้เข้าถึง wallet ได้เร็วขึ้น",title:"ติดตั้ง Frame และ extension ที่เป็นคู่"},step2:{description:"ตรวจสอบว่าได้สำรอง wallet ของคุณโดยใช้วิธีการที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่า wallet ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรช browser และโหลดขึ้น extension",title:"รีเฟรช browser ของคุณ"}}},one_key:{extension:{step1:{title:"ติดตั้งส่วนเสริม OneKey Wallet",description:"เราแนะนำการปัก OneKey Wallet ไว้บนแทบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่าลืมสำรองกระเป๋าเงินของคุณด้วยวิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},phantom:{extension:{step1:{title:"ติดตั้งส่วนเสริม Phantom",description:"เราแนะนำการปัก Phantom ไว้บนแทบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยข้อความลับสำหรับการกู้คืนของคุณกับบุคคลใด ๆ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินเรียบร้อยแล้ว, คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},rabby:{extension:{step1:{title:"ติดตั้งส่วนขยาย Rabby",description:"เราแนะนำให้คุณปัก Rabby ไว้ที่แถบงานเพื่อให้เข้าถึงกระเป๋าเงินของคุณได้รวดเร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ข้อความลับของคุณกับบุคคลอื่น"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},safeheron:{extension:{step1:{title:"ติดตั้งส่วนขยาย Core",description:"เราขอแนะนำให้คุณปัก Safeheron ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่าลืมสำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้ผู้อื่นทราบ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},taho:{extension:{step1:{title:"ติดตั้งส่วนขยาย Taho",description:"เราแนะนำให้คุณปัก Taho ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ประโยคลับคุณกับผู้อื่น"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},talisman:{extension:{step1:{title:"ติดตั้งส่วนขยาย Talisman",description:"เราแนะนำให้คุณปัก Talisman ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน Ethereum",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีการกู้คืนของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},xdefi:{extension:{step1:{title:"ติดตั้งส่วนขยาย XDEFI Wallet",description:"เราแนะนำให้คุณตรา XDEFI Wallet ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"หลังจากที่คุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชบราวเซอร์และโหลดส่วนเสริม."}}},zeal:{extension:{step1:{title:"ติดตั้งส่วนขยาย Zeal",description:"เราแนะนำให้ปัก Zeal ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},safepal:{extension:{step1:{title:"ติดตั้งส่วนขยาย SafePal Wallet",description:"คลิกที่มุมบนขวาของเบราว์เซอร์ของคุณและปักมุม SafePal Wallet เพื่อที่จะเข้าถึงได้ง่าย"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"หลังจากคุณตั้งค่า SafePal Wallet เรียบร้อยแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}},qr_code:{step1:{title:"เปิดแอป SafePal Wallet",description:"วาง SafePal Wallet ที่หน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว."},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"เลือก New Connection, แล้วสแกน QR code และยืนยันการรับรองสำหรับการเชื่อมต่อ"}}},desig:{extension:{step1:{title:"ติดตั้งส่วนขยาย Desig",description:"เราขอแนะนำให้คุณตรึง Desig ไว้ที่แถบงานของคุณเพื่อให้เข้าถึงกระเป๋าเงินของคุณได้ง่ายขึ้น"},step2:{title:"สร้างกระเป๋าเงิน",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},subwallet:{extension:{step1:{title:"ติดตั้งส่วนขยาย SubWallet",description:"เราขอแนะนำให้คุณตรึง SubWallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีการกู้คืนของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}},qr_code:{step1:{title:"เปิดแอพ SubWallet",description:"เราขอแนะนำให้วาง SubWallet ไว้ที่หน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ"}}},clv:{extension:{step1:{title:"ติดตั้งส่วนขยาย CLV Wallet",description:"เราขอแนะนำให้คุณตรึง CLV Wallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}},qr_code:{step1:{title:"เปิดแอพ CLV Wallet",description:"เราแนะนำให้คุณวาง CLV Wallet บนหน้าจอหลักเพื่อให้สามารถเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ"}}},okto:{qr_code:{step1:{title:"เปิดแอพ Okto",description:"เพิ่ม Okto ไปยังหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็ว"},step2:{title:"สร้างกระเป๋าเงิน MPC",description:"สร้างบัญชีและสร้างกระเป๋าเงิน"},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"แตะที่ไอคอน Scan QR ที่บริเวณมุมบนขวาและยืนยันข้อความเพื่อเชื่อมต่อ."}}},ledger:{desktop:{step1:{title:"เปิดแอป Ledger Live",description:"เราแนะนำให้คุณวาง Ledger Live บนหน้าจอหลักเพื่อให้สามารถเข้าถึงได้เร็วขึ้น"},step2:{title:"ตั้งค่า Ledger ของคุณ",description:"ตั้งค่า Ledger ใหม่หรือเชื่อมต่อกับ Ledger ที่มีอยู่แล้ว"},step3:{title:"เชื่อมต่อ",description:"หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}},qr_code:{step1:{title:"เปิดแอป Ledger Live",description:"เราแนะนำให้วาง Ledger Live บนหน้าจอหลักของคุณเพื่อการเข้าถึงที่รวดเร็วขึ้น"},step2:{title:"ตั้งค่า Ledger ของคุณ",description:"คุณสามารถซิงค์กับแอพพลิเคชันบนเดสก์ท็อปหรือเชื่อมต่อ Ledger ของคุณ"},step3:{title:"สแกนรหัส",description:"แตะ WalletConnect แล้วเปลี่ยนไปที่ Scanner. หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}}}},iD={connect_wallet:qm0,intro:Hm0,sign_in:Gm0,connect:Vm0,connect_scan:Km0,connector_group:Qm0,get:Jm0,get_options:Ym0,get_mobile:Zm0,get_instructions:Xm0,chains:ub0,profile:eb0,wallet_connectors:tb0},nb0={label:"Cüzdanı Bağla"},rb0={title:"Cüzdan nedir?",description:"Bir cüzdan, dijital varlıkları göndermek, almak, saklamak ve görüntülemek için kullanılır. Aynı zamanda her web sitesinde yeni hesaplar ve şifreler oluşturmanıza gerek kalmadan oturum açmanın yeni bir yoludur.",digital_asset:{title:"Dijital Varlıklarınız İçin Bir Ev",description:"Cüzdanlar, Ethereum ve NFT'ler gibi dijital varlıkları göndermek, almak, depolamak ve görüntülemek için kullanılır."},login:{title:"Yeni Bir Giriş Yolu",description:"Her web sitesinde yeni hesap ve parolalar oluşturmak yerine, sadece cüzdanınızı bağlayın."},get:{label:"Bir Cüzdan Edinin"},learn_more:{label:"Daha fazla bilgi edinin"}},ib0={label:"Hesabınızı doğrulayın",description:"Bağlantıyı tamamlamak için, bu hesabın sahibi olduğunuzu doğrulamak için cüzdanınızdaki bir mesaja imza atmalısınız.",message:{send:"Mesajı gönder",preparing:"Mesaj hazırlanıyor...",cancel:"İptal",preparing_error:"Mesajı hazırlarken hata oluştu, lütfen tekrar deneyin!"},signature:{waiting:"İmza bekleniyor...",verifying:"İmza doğrulanıyor...",signing_error:"Mesajı imzalarken hata oluştu, lütfen tekrar deneyin!",verifying_error:"İmza doğrulanırken hata oluştu, lütfen tekrar deneyin!",oops_error:"Hata, bir şeyler yanlış gitti!"}},ab0={label:"Bağlan",title:"Bir Cüzdanı Bağla",new_to_ethereum:{description:"Ethereum cüzdanlarına yeni misiniz?",learn_more:{label:"Daha fazla bilgi edinin"}},learn_more:{label:"Daha fazla bilgi edinin"},recent:"Son",status:{opening:"%{wallet}açılıyor...",not_installed:"%{wallet} yüklü değil",not_available:"%{wallet} kullanılabilir değil",confirm:"Bağlantıyı eklentide onaylayın"},secondary_action:{get:{description:"%{wallet}yok mu?",label:"AL"},install:{label:"YÜKLE"},retry:{label:"YENİDEN DENE"}},walletconnect:{description:{full:"Resmi WalletConnect modalına mı ihtiyacınız var?",compact:"WalletConnect modalına mı ihtiyacınız var?"},open:{label:"AÇ"}}},ob0={title:"%{wallet}ile tarama yapın",fallback_title:"Telefonunuzla tarama yapın"},sb0={recommended:"Tavsiye Edilen",other:"Diğer",popular:"Popüler",more:"Daha Fazla",others:"Diğerleri"},fb0={title:"Bir Cüzdan Edinin",action:{label:"AL"},mobile:{description:"Mobil Cüzdan"},extension:{description:"Tarayıcı Eklentisi"},mobile_and_extension:{description:"Mobil Cüzdan ve Eklenti"},mobile_and_desktop:{description:"Mobil ve Masaüstü Cüzdan"},looking_for:{title:"Aradığınız şey bu değil mi?",mobile:{description:"Ana ekranda başka bir cüzdan sağlayıcısıyla başlamak için bir cüzdan seçin."},desktop:{compact_description:"Ana ekranda başka bir cüzdan sağlayıcısıyla başlamak için bir cüzdan seçin.",wide_description:"Başka bir cüzdan sağlayıcısıyla başlamak için sol tarafta bir cüzdan seçin."}}},lb0={title:"%{wallet}ile başlayın",short_title:"%{wallet}Edinin",mobile:{title:"%{wallet} Mobil İçin",description:"Mobil cüzdanı kullanarak Ethereum dünyasını keşfedin.",download:{label:"Uygulamayı alın"}},extension:{title:"%{wallet} için %{browser}",description:"Cüzdanınıza favori web tarayıcınızdan doğrudan erişin.",download:{label:"%{browser}'e ekle"}},desktop:{title:"%{wallet} için %{platform}",description:"Güçlü masaüstünüzden cüzdanınıza yerel olarak erişin.",download:{label:"%{platform}ekleyin"}}},cb0={title:"%{wallet}'i yükleyin",description:"iOS veya Android'de indirmek için telefonunuzla tarayın",continue:{label:"Devam et"}},Eb0={mobile:{connect:{label:"Bağlan"},learn_more:{label:"Daha fazla bilgi edinin"}},extension:{refresh:{label:"Yenile"},learn_more:{label:"Daha fazla bilgi edinin"}},desktop:{connect:{label:"Bağlan"},learn_more:{label:"Daha fazla bilgi edinin"}}},db0={title:"Ağları Değiştir",wrong_network:"Yanlış ağ algılandı, devam etmek için bağlantıyı kesin veya değiştirin.",confirm:"Cüzdanında Onayla",switching_not_supported:"Cüzdanınız %{appName}. ağları değiştirmeyi desteklemiyor. Bunun yerine cüzdanınızdan ağları değiştirmeyi deneyin.",switching_not_supported_fallback:"Cüzdanınız bu uygulamadan ağları değiştirmeyi desteklemiyor. Bunun yerine cüzdanınızdaki ağları değiştirmeyi deneyin.",disconnect:"Bağlantıyı Kes",connected:"Bağlı"},pb0={disconnect:{label:"Bağlantıyı Kes"},copy_address:{label:"Adresi Kopyala",copied:"Kopyalandı!"},explorer:{label:"Explorer üzerinde daha fazlasını görün"},transactions:{description:"%{appName} işlem burada görünecek...",description_fallback:"İşlemleriniz burada görünecek...",recent:{title:"Son İşlemler"},clear:{label:"Hepsini Temizle"}}},hb0={argent:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Argent'i ana ekranınıza koyun.",title:"Argent uygulamasını açın"},step2:{description:"Bir cüzdan ve kullanıcı adı oluşturun veya mevcut bir cüzdanı içe aktarın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"QR tarayıcı düğmesine dokunun"}}},bifrost:{qr_code:{step1:{description:"Daha hızlı erişim için Bifrost Cüzdan'ı ana ekranınıza koymanızı öneririz.",title:"Bifrost Cüzdan uygulamasını açın"},step2:{description:"Kurtarma ifadenizle bir cüzdan oluşturun veya içe aktarın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama işlemi sonrasında, cüzdanınızı bağlamak için bir bağlantı istemi gözükecektir.",title:"Tarayıcı düğmesine dokunun"}}},bitget:{qr_code:{step1:{description:"Daha hızlı erişim için Bitget Cüzdanınızı ana ekranınıza koymanızı öneririz.",title:"Bitget Cüzdan uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Bitget Cüzdanını görev çubuğunuza sabitlemenizi öneririz.",title:"Bitget Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemekten emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin.",title:"Tarayıcınızı yenileyin"}}},bitski:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Bitski'yi görev çubuğunuza sabitlemenizi öneririz.",title:"Bitski eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},coin98:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Coin98 Cüzdanınızı ana ekranınıza koymanızı öneririz.",title:"Coin98 Cüzdan uygulamasını açın"},step2:{description:"Telefonunuzdaki yedekleme özelliğimizi kullanarak cüzdanınızı kolayca yedekleyebilirsiniz.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama işlemi yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"CüzdanBağlantısı düğmesine dokunun"}},extension:{step1:{description:"Tarayıcınızın sağ üst köşesinde tıklayın ve Coin98 Cüzdanınızı kolay erişim için sabitleyin.",title:"Coin98 Cüzdan eklentisini yükleyin"},step2:{description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın.",title:"Bir cüzdan oluşturun veya içe aktarın"},step3:{description:"Coin98 Cüzdan'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},coinbase:{qr_code:{step1:{description:"Coinbase Cüzdan'ı ana ekranınıza koymanızı öneririz, böylece daha hızlı erişim sağlanır.",title:"Coinbase Wallet uygulamasını açın"},step2:{description:"Cüzdanınızı bulut yedekleme özelliğini kullanarak kolayca yedekleyebilirsiniz.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Coinbase Wallet'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Coinbase Wallet uzantısını yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},core:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Core'u ana ekranınıza koymanızı öneririz.",title:"Core uygulamasını açın"},step2:{description:"Cüzdanınızın yedeğini telefonunuzda bulunan yedekleme özelliğimizi kullanarak kolayca alabilirsiniz.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamak üzere bir bağlantı istemi görünecektir.",title:"WalletConnect düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Core'u görev çubuğunuza sabitlemenizi öneririz.",title:"Core eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye dikkat edin. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayarak tarayıcıyı yenileyin ve eklentiyi yükleyin.",title:"Tarayıcınızı yenileyin"}}},fox:{qr_code:{step1:{description:"Daha hızlı erişim için FoxWallet'ı ana ekranınıza koymanızı öneririz.",title:"FoxWallet uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama yaptıktan sonra cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir.",title:"Tarama düğmesine dokunun"}}},frontier:{qr_code:{step1:{description:"Daha hızlı erişim için Frontier Cüzdanını ana ekranınıza koymanızı öneririz.",title:"Frontier Cüzdan uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Frontier Cüzdanını görev çubuğunuza sabitlemenizi öneririz.",title:"Frontier Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemeye ve eklentiyi yüklemeye başlamak için aşağıya tıklayın.",title:"Tarayıcınızı Yenileyin"}}},im_token:{qr_code:{step1:{title:"imToken uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için imToken uygulamasını ana ekranınıza koyun."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut bir cüzdanı içe aktarın."},step3:{title:"Sağ üst köşede Tarayıcı Simgesine dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlantıyı onaylamak için istemi onaylayın."}}},metamask:{qr_code:{step1:{title:"MetaMask uygulamasını açın",description:"Daha hızlı erişim için MetaMask'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli kurtarma ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Taramayı yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"MetaMask eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için MetaMask'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı Yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},okx:{qr_code:{step1:{title:"OKX Wallet uygulamasını açın",description:"Daha hızlı erişim için OKX Wallet'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli cümlenizi asla kimseyle paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Tarama yaptıktan sonra, cüzdanınızı bağlama istemi görünecektir."}},extension:{step1:{title:"OKX Cüzdan eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için OKX Cüzdan'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli cümlenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},omni:{qr_code:{step1:{title:"Omni uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Omni'yi ana ekranınıza ekleyin."},step2:{title:"Bir Cüzdan Oluşturun ya da İçe Aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"QR simgesine dokunun ve tarayın",description:"Ana ekranınızdaki QR simgesine dokunun, kodu tarayın ve bağlanmak için istemi onaylayın."}}},token_pocket:{qr_code:{step1:{title:"TokenPocket uygulamasını açın",description:"Daha hızlı erişim için TokenPocket'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya Cüzdanı İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Taramayı yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"TokenPocket eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için TokenPocket'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli cümlenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemekte ve eklentiyi yüklemek için aşağıya tıklayın."}}},trust:{qr_code:{step1:{title:"Trust Wallet uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Trust Wallet'ı ana ekranınıza koyun."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut bir tane içe aktarın."},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlanmak için istemi onaylayın."}},extension:{step1:{title:"Trust Wallet eklentisini yükleyin",description:"Tarayıcınızın sağ üst köşesine tıklayın ve kolay erişim için Trust Wallet'i sabitleyin."},step2:{title:"Bir cüzdan oluşturun veya içe aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut bir tane içe aktarın."},step3:{title:"Tarayıcınızı yenileyin",description:"Trust Wallet'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},uniswap:{qr_code:{step1:{title:"Uniswap uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Uniswap Cüzdanınızı ana ekranınıza ekleyin."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"QR ikonuna dokunun ve tarama yapın",description:"Ana ekranınızdaki QR simgesine dokunun, kodu tarayın ve bağlanmayı onaylamak için istemi kabul edin."}}},zerion:{qr_code:{step1:{title:"Zerion uygulamasını açın",description:"Daha hızlı erişim için Zerion'un ana ekranınıza konumlandırmanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine basın",description:"Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"Zerion eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Zerion'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklemeye emin olun. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},rainbow:{qr_code:{step1:{title:"Rainbow uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Rainbow'u ana ekranınıza koymanızı öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Telefonunuzdaki yedekleme özelliğimizi kullanarak cüzdanınızı kolayca yedekleyebilirsiniz."},step3:{title:"Tarama düğmesine dokunun",description:"Tarama yaptıktan sonra, cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir."}}},enkrypt:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim sağlamak için Enkrypt Cüzdan'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Enkrypt Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},frame:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim sağlamak için Frame'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Frame ve eşlik eden uzantıyı yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla başkasıyla paylaşmayın.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve uzantıyı yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},one_key:{extension:{step1:{title:"OneKey Wallet uzantısını yükleyin",description:"Cüzdanınıza daha hızlı erişim için OneKey Wallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},phantom:{extension:{step1:{title:"Phantom eklentisini yükleyin",description:"Cüzdanınıza daha kolay erişim sağlamak için Phantom'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli kurtarma ifadenizi kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},rabby:{extension:{step1:{title:"Rabby eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Rabby'yi görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıdaki düğmeye tıklayın."}}},safeheron:{extension:{step1:{title:"Core eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Safeheron'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},taho:{extension:{step1:{title:"Taho uzantısını yükleyin",description:"Cüzdanınıza daha hızlı erişim için Taho'yu görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},talisman:{extension:{step1:{title:"Talisman eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Talisman'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Ethereum Cüzdanı Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Kurtarma ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},xdefi:{extension:{step1:{title:"XDEFI Cüzdan eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için XDEFI Wallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},zeal:{extension:{step1:{title:"Zeal eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Zeal'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}}},safepal:{extension:{step1:{title:"SafePal Wallet eklentisini yükleyin",description:"Tarayıcınızın sağ üst köşesine tıklayın ve kolay erişim için SafePal Wallet'ı sabitleyin."},step2:{title:"Bir cüzdan oluşturun veya içe aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"Tarayıcınızı yenileyin",description:"SafePal Cüzdan'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}},qr_code:{step1:{title:"SafePal Cüzdan uygulamasını açın",description:"SafePal Cüzdan'ı ana ekranınıza koyun, cüzdanınıza daha hızlı erişim için."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlantıyı onaylamak için istemi onaylayın."}}},desig:{extension:{step1:{title:"Desig eklentisini yükleyin",description:"Cüzdanınıza daha kolay erişim sağlamak için Desig'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}}},subwallet:{extension:{step1:{title:"SubWallet eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için SubWallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Kurtarma ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}},qr_code:{step1:{title:"SubWallet uygulamasını açın",description:"Daha hızlı erişim için SubWallet'ı ana ekranınıza koymenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcı düğmesine dokunun",description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir."}}},clv:{extension:{step1:{title:"CLV Cüzdanı eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için CLV Cüzdanını görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}},qr_code:{step1:{title:"CLV Cüzdan uygulamasını açın",description:"Daha hızlı erişim için CLV Cüzdanını ana ekranınıza koymanızı öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcı düğmesine dokunun",description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir."}}},okto:{qr_code:{step1:{title:"Okto uygulamasını açın",description:"Hızlı erişim için Okto'yu ana ekranınıza ekleyin"},step2:{title:"MPC Cüzdanı oluşturun",description:"Bir hesap oluşturun ve bir cüzdan oluşturun"},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Sağ üstteki Tarama QR simgesine dokunun ve bağlanmak için istemi onaylayın."}}},ledger:{desktop:{step1:{title:"Ledger Live uygulamasını açın",description:"Daha hızlı erişim için Ledger Live'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Ledger'ınızı kurun",description:"Yeni bir Ledger kurun veya mevcut birine bağlanın."},step3:{title:"Bağlan",description:"Cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},qr_code:{step1:{title:"Ledger Live uygulamasını açın",description:"Daha hızlı erişim için Ledger Live'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Ledger'ınızı kurun",description:"Masaüstü uygulama ile senkronize olabilir veya Ledger'ınızı bağlayabilirsiniz."},step3:{title:"Kodu tarayın",description:"WalletConnect'e dokunun ve ardından Tarayıcı'ya geçin. Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}}}},aD={connect_wallet:nb0,intro:rb0,sign_in:ib0,connect:ab0,connect_scan:ob0,connector_group:sb0,get:fb0,get_options:lb0,get_mobile:cb0,get_instructions:Eb0,chains:db0,profile:pb0,wallet_connectors:hb0},Cb0={label:"连接钱包"},mb0={title:"什么是钱包?",description:"钱包用于发送、接收、存储和显示数字资产。它也是一种新型的登录方式,无需在每个网站上创建新账户和密码。",digital_asset:{title:"您的数字资产之家",description:"钱包用于发送、接收、存储和显示像以太坊和NFT这样的数字资产。"},login:{title:"一种新的登录方式",description:"而不是在每个网站上创建新的账户和密码,只需连接您的钱包。"},get:{label:"获取钱包"},learn_more:{label:"了解更多"}},bb0={label:"验证您的账户",description:"为了完成连接,您必须在钱包中签署一条消息,以验证您是此账户的所有者。",message:{send:"发送消息",preparing:"准备消息中...",cancel:"取消",preparing_error:"准备消息时出错,请重试!"},signature:{waiting:"等待签名...",verifying:"正在验证签名...",signing_error:"签署消息时出错,请重试!",verifying_error:"验证签名时出错,请重试!",oops_error:"哎呀,出了点问题!"}},gb0={label:"连接",title:"连接钱包",new_to_ethereum:{description:"对以太坊钱包不熟悉?",learn_more:{label:"了解更多"}},learn_more:{label:"了解更多"},recent:"近期",status:{opening:"正在打开 %{wallet}...",not_installed:"%{wallet} 尚未安装",not_available:"%{wallet} 不可用",confirm:"在扩展中确认连接"},secondary_action:{get:{description:"没有 %{wallet}吗?",label:"获取"},install:{label:"安装"},retry:{label:"重试"}},walletconnect:{description:{full:"需要官方的 WalletConnect 弹窗吗?",compact:"需要 WalletConnect 弹窗吗?"},open:{label:"打开"}}},Ab0={title:"使用 %{wallet}扫描",fallback_title:"使用您的手机扫描"},yb0={recommended:"推荐",other:"其他",popular:"流行",more:"更多",others:"其他的"},vb0={title:"获取一个钱包",action:{label:"获取"},mobile:{description:"移动钱包"},extension:{description:"浏览器扩展"},mobile_and_extension:{description:"移动钱包和扩展"},mobile_and_desktop:{description:"移动和桌面钱包"},looking_for:{title:"不是你要找的吗?",mobile:{description:"在主屏幕上选择一个钱包,以开始使用不同的钱包提供商。"},desktop:{compact_description:"在主屏幕上选择一个钱包,以开始使用不同的钱包提供商。",wide_description:"在左侧选择一个钱包,以开始使用不同的钱包提供商。"}}},Bb0={title:"开始使用 %{wallet}",short_title:"获取 %{wallet}",mobile:{title:"%{wallet} 用于移动",description:"使用移动钱包探索以太坊的世界。",download:{label:"获取应用"}},extension:{title:"%{wallet} 为 %{browser}",description:"从您最喜欢的网络浏览器直接访问您的钱包。",download:{label:"添加到 %{browser}"}},desktop:{title:"%{wallet} 对于 %{platform}",description:"从您强大的桌面原生访问您的钱包。",download:{label:"添加到 %{platform}"}}},Fb0={title:"安装 %{wallet}",description:"用手机扫描下载 iOS 或 Android",continue:{label:"继续"}},Db0={mobile:{connect:{label:"连接"},learn_more:{label:"了解更多"}},extension:{refresh:{label:"刷新"},learn_more:{label:"了解更多"}},desktop:{connect:{label:"连接"},learn_more:{label:"了解更多"}}},wb0={title:"切换网络",wrong_network:"检测到错误的网络,请切换或断开连接以继续。",confirm:"在钱包中确认",switching_not_supported:"您的钱包不支持从 %{appName}切换网络。请尝试从您的钱包内部切换网络。",switching_not_supported_fallback:"您的钱包不支持从此应用切换网络。尝试从您的钱包内切换网络。",disconnect:"断开连接",connected:"已连接"},xb0={disconnect:{label:"断开连接"},copy_address:{label:"复制地址",copied:"已复制!"},explorer:{label:"在浏览器上查看更多"},transactions:{description:"%{appName} 交易将会出现在这里...",description_fallback:"您的交易将会出现在这里...",recent:{title:"最近交易"},clear:{label:"清除全部"}}},kb0={argent:{qr_code:{step1:{description:"将 Argent 放到您的主屏幕上,以便更快地访问您的钱包。",title:"打开 Argent 应用"},step2:{description:"创建钱包和用户名,或导入现有钱包。",title:"创建或导入钱包"},step3:{description:"在您扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描二维码按钮"}}},bifrost:{qr_code:{step1:{description:"我们建议将Bifrost Wallet放在您的主屏幕上,以便更快地访问。",title:"打开 Bifrost Wallet 应用"},step2:{description:"使用恢复短语创建或导入钱包。",title:"创建或导入钱包"},step3:{description:"在您扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描按钮"}}},bitget:{qr_code:{step1:{description:"我们建议您将Bitget钱包添加到主屏幕,以便更快地访问。",title:"打开Bitget钱包应用程序"},step2:{description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现一个连接提示,供您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Bitget钱包固定在任务栏,以便更快地访问您的钱包。",title:"安装Bitget Wallet扩展"},step2:{description:"确保使用安全的方式备份您的钱包。绝不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置钱包后,点击下方刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},bitski:{extension:{step1:{description:"我们建议您将Bitski固定在任务栏上,以便更快地访问您的钱包。",title:"安装Bitski扩展"},step2:{description:"请确保用安全的方法备份您的钱包。绝不与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置完您的钱包后,点击下方以刷新浏览器并加载扩展程序。",title:"刷新您的浏览器"}}},coin98:{qr_code:{step1:{description:"我们建议将Coin98钱包放在您的主屏幕上,以便更快地访问您的钱包。",title:"打开Coin98钱包应用程序"},step2:{description:"您可以使用我们的手机上的备份功能轻松备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现一个连接提示,让您连接您的钱包。",title:"点击WalletConnect按钮"}},extension:{step1:{description:"点击浏览器右上角并固定Coin98钱包,以便轻松访问。",title:"安装Coin98钱包扩展"},step2:{description:"创建新钱包或导入现有钱包。",title:"创建或导入钱包。"},step3:{description:"设置完成Coin98 钱包后,单击下方以刷新浏览器并加载扩展程序。",title:"刷新您的浏览器"}}},coinbase:{qr_code:{step1:{description:"我们建议您把Coinbase钱包放到主屏幕上,以便更快地访问。",title:"打开Coinbase钱包应用"},step2:{description:"您可以轻松地使用云备份功能备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Coinbase钱包固定在任务栏上,以便更快地访问您的钱包。",title:"安装Coinbase钱包扩展"},step2:{description:"务必使用安全的方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置好钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},core:{qr_code:{step1:{description:"我们建议您将Core添加到主屏幕,以便更快地访问您的钱包。",title:"打开Core应用程序"},step2:{description:"您可以使用我们的手机备份功能轻松备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击WalletConnect按钮"}},extension:{step1:{description:"我们建议将 Core 固定到任务栏,以便更快地访问您的钱包。",title:"安装 Core 扩展"},step2:{description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置好钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},fox:{qr_code:{step1:{description:"我们建议您将 FoxWallet 放到主屏幕上,以便更快的访问。",title:"打开 FoxWallet 应用"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击扫描按钮"}}},frontier:{qr_code:{step1:{description:"我们建议将 Frontier 钱包放在您的主屏幕上,以便更快地访问。",title:"打开 Frontier 钱包应用"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Frontier钱包固定到任务栏,以便更快地访问您的钱包。",title:"安装Frontier钱包扩展"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置完成钱包后,点击下方刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},im_token:{qr_code:{step1:{title:"打开imToken应用",description:"将imToken应用放在您的主屏幕上,以更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入已有的钱包。"},step3:{title:"点击右上角的扫描图标",description:"选择新连接,然后扫描二维码并确认提示以进行连接。"}}},metamask:{qr_code:{step1:{title:"打开 MetaMask 应用",description:"我们建议将 MetaMask 放在您的主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享你的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,以便你连接你的钱包。"}},extension:{step1:{title:"安装 MetaMask 扩展",description:"我们建议将MetaMask固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"请务必使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦您设置好您的钱包,点击下面刷新浏览器并加载扩展。"}}},okx:{qr_code:{step1:{title:"打开OKX钱包应用程序",description:"我们建议将OKX钱包放在您的主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。千万不要与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现一个连接提示,让您连接您的钱包。"}},extension:{step1:{title:"安装 OKX 钱包扩展",description:"我们建议将 OKX 钱包固定到您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。千万不要与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦你设置好你的钱包,点击下方刷新浏览器并加载扩展。"}}},omni:{qr_code:{step1:{title:"打开Omni应用",description:"将Omni添加到你的主屏幕,以便更快地访问你的钱包。"},step2:{title:"创建或导入钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"点击QR图标并扫描",description:"点击首页的二维码图标,扫描代码并确认提示以连接。"}}},token_pocket:{qr_code:{step1:{title:"打开TokenPocket应用",description:"我们建议将TokenPocket放在您的主屏幕上以便更快的访问。"},step2:{title:"创建或导入钱包",description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,供您连接钱包。"}},extension:{step1:{title:"安装TokenPocket扩展",description:"我们建议将TokenPocket固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入一个钱包",description:"一定要使用安全的方法备份您的钱包。绝对不要与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下面刷新浏览器并加载扩展。"}}},trust:{qr_code:{step1:{title:"打开Trust Wallet应用",description:"将Trust Wallet放在主屏幕上,以便更快地访问您的钱包。"},step2:{title:"创建或导入一个钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"在设置中点击WalletConnect",description:"选择新的连接,然后扫描二维码并确认提示以进行连接。"}},extension:{step1:{title:"安装Trust Wallet扩展程序",description:"在浏览器的右上角点击并固定Trust Wallet以便于访问。"},step2:{title:"创建或导入钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"刷新您的浏览器",description:"设置Trust Wallet后,点击下面以刷新浏览器并加载扩展程序。"}}},uniswap:{qr_code:{step1:{title:"打开Uniswap应用",description:"将Uniswap钱包添加到您的主屏幕,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入现有钱包。"},step3:{title:"点击QR图标并扫描",description:"在您的主屏幕上点击QR图标,扫描代码并确认提示以进行连接。"}}},zerion:{qr_code:{step1:{title:"打开Zerion应用",description:"我们建议将Zerion放在您的主屏幕上以便更快地访问。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方式备份你的钱包。绝对不要与任何人分享你的私人密语。"},step3:{title:"点击扫描按钮",description:"你扫描后,会出现一个连接提示让你连接你的钱包。"}},extension:{step1:{title:"安装 Zerion 扩展",description:"我们建议将 Zerion 固定在你的任务栏以便更快访问你的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份你的钱包。永远不要与任何人分享你的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置您的钱包后,点击下面以刷新浏览器并加载扩展程序。"}}},rainbow:{qr_code:{step1:{title:"打开 Rainbow 应用",description:"我们建议将 Rainbow 放在您的主屏幕上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"您可以使用我们的备份功能在您的手机上轻松备份你的钱包。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,让您连接您的钱包。"}}},enkrypt:{extension:{step1:{description:"我们建议将Enkrypt Wallet固定到任务栏,以便更快地访问您的钱包。",title:"安装Enkrypt Wallet扩展"},step2:{description:"请确保使用安全方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建钱包或导入钱包"},step3:{description:"设置钱包后,点击下面刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},frame:{extension:{step1:{description:"我们建议将Frame固定到任务栏,以便更快地访问您的钱包。",title:"安装Frame及其配套扩展"},step2:{description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},one_key:{extension:{step1:{title:"安装OneKey Wallet扩展",description:"我们建议将OneKey Wallet固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},phantom:{extension:{step1:{title:"安装 Phantom 扩展程序",description:"我们建议将 Phantom 固定到您的任务栏,以便更容易访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},rabby:{extension:{step1:{title:"安装 Rabby 扩展程序",description:"我们建议将 Rabby 固定在您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的密钥短语。"},step3:{title:"刷新您的浏览器",description:"一旦您设置好您的钱包,点击以下以刷新浏览器并加载扩展程序。"}}},safeheron:{extension:{step1:{title:"安装 Core 扩展",description:"我们建议将 Safeheron 固定在您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},taho:{extension:{step1:{title:"安装Taho扩展程序",description:"我们建议将Taho固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},talisman:{extension:{step1:{title:"安装 Talisman 扩展程序",description:"我们建议将 Talisman 固定在任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入以太坊钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},xdefi:{extension:{step1:{title:"安装 XDEFI 钱包扩展程序",description:"我们建议将XDEFI钱包固定到您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦你设置好你的钱包,点击下面刷新浏览器和加载扩展。"}}},zeal:{extension:{step1:{title:"安装Zeal扩展程序",description:"我们建议将Zeal固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}}},safepal:{extension:{step1:{title:"安装SafePal Wallet扩展程序",description:"点击浏览器右上角并固定SafePal Wallet以便于快速访问。"},step2:{title:"创建或导入钱包。",description:"创建新钱包或导入现有钱包。"},step3:{title:"刷新您的浏览器",description:"一旦设置了SafePal钱包,点击下方刷新浏览器并加载扩展程序。"}},qr_code:{step1:{title:"打开SafePal钱包应用程序",description:"将SafePal钱包放在主屏幕上以更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入现有钱包。"},step3:{title:"在设置中点击WalletConnect",description:"选择新连接,然后扫描二维码并确认提示以进行连接。"}}},desig:{extension:{step1:{title:"安装 Desig 扩展",description:"我们建议将 Desig 固定到任务栏,以便更轻松地访问您的钱包。"},step2:{title:"创建一个钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}}},subwallet:{extension:{step1:{title:"安装 SubWallet 扩展",description:"我们建议将 SubWallet 固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}},qr_code:{step1:{title:"打开 SubWallet 应用",description:"我们建议将 SubWallet 放置在主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"在您扫描后,将出现连接提示,供您连接您的钱包。"}}},clv:{extension:{step1:{title:"安装 CLV Wallet 扩展",description:"我们建议将 CLV Wallet 固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}},qr_code:{step1:{title:"打开 CLV 钱包应用",description:"我们建议将 CLV 钱包添加到您的主屏幕,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"在您扫描后,将出现连接提示,供您连接您的钱包。"}}},okto:{qr_code:{step1:{title:"打开 Okto 应用",description:"将 Okto 添加到您的主屏幕以便快速访问"},step2:{title:"创建一个 MPC 钱包",description:"创建一个账户并生成一个钱包"},step3:{title:"在设置中点击WalletConnect",description:"点击右上角的扫描二维码图标,并确认提示以连接。"}}},ledger:{desktop:{step1:{title:"打开Ledger Live应用",description:"我们建议将Ledger Live放在您的主屏幕上,以便更快地访问。"},step2:{title:"设置您的Ledger",description:"设置一个新的Ledger或连接到一个现有的。"},step3:{title:"连接",description:"你扫描后,会出现一个连接提示让你连接你的钱包。"}},qr_code:{step1:{title:"打开Ledger Live应用",description:"我们建议将Ledger Live放在您的主屏幕上,以便更快地访问。"},step2:{title:"设置您的Ledger",description:"您可以同步桌面应用程式,或连接您的Ledger。"},step3:{title:"扫描代码",description:"点击 WalletConnect 然后切换到扫描器。你扫描后,会出现一个连接提示让你连接你的钱包。"}}}},oD={connect_wallet:Cb0,intro:mb0,sign_in:bb0,connect:gb0,connect_scan:Ab0,connector_group:yb0,get:vb0,get_options:Bb0,get_mobile:Fb0,get_instructions:Db0,chains:wb0,profile:xb0,wallet_connectors:kb0},Co=new EI.I18n({ar:QF,"ar-AR":QF,en:JF,"en-US":JF,es:YF,"es-419":YF,fr:ZF,"fr-FR":ZF,hi:XF,"hi-IN":XF,id:uD,"id-ID":uD,ja:eD,"ja-JP":eD,ko:tD,"ko-KR":tD,pt:nD,"pt-BR":nD,ru:rD,"ru-RU":rD,th:iD,"th-TH":iD,tr:aD,"tr-TR":aD,zh:oD,"zh-CN":oD});Co.defaultLocale="en-US";Co.locale="en-US";Co.enableFallback=!0;var _b0=()=>{var u;if(typeof window<"u"&&typeof navigator<"u"){if((u=navigator.languages)!=null&&u.length)return navigator.languages[0];if(navigator.language)return navigator.language}},ne=w.createContext(Co),Sb0=({children:u,locale:e})=>{const t=w.useMemo(()=>_b0(),[]),n=w.useMemo(()=>(e?Co.locale=e:!e&&t&&(Co.locale=t),Co),[e,t]);return F.createElement(ne.Provider,{value:n},u)};function Rg(u){return u!=null}var sD={iconBackground:"#96bedc",iconUrl:async()=>(await L0(()=>import("./arbitrum-LYDBJZP3-KuelVeRo.js"),__vite__mapDeps([]))).default},fD={iconBackground:"#e84141",iconUrl:async()=>(await L0(()=>import("./avalanche-TFPKP544-t-P1D_4h.js"),__vite__mapDeps([]))).default},lD={iconBackground:"#0052ff",iconUrl:async()=>(await L0(()=>import("./base-3MIUIYGA-O1y3e2Yh.js"),__vite__mapDeps([]))).default},cD={iconBackground:"#ebac0e",iconUrl:async()=>(await L0(()=>import("./bsc-S2GSW6VX-hwC4eOfE.js"),__vite__mapDeps([]))).default},ED={iconBackground:"#002D74",iconUrl:async()=>(await L0(()=>import("./cronos-DQKKIEX7-hjhPqvrD.js"),__vite__mapDeps([]))).default},Ci={iconBackground:"#484c50",iconUrl:async()=>(await L0(()=>import("./ethereum-4FY57XJF-hWY7Q1hZ.js"),__vite__mapDeps([]))).default},Tb0={iconBackground:"#f9f7ec",iconUrl:async()=>(await L0(()=>import("./hardhat-ARRFHFKB-h5iXIbmF.js"),__vite__mapDeps([]))).default},rp={iconBackground:"#ff5a57",iconUrl:async()=>(await L0(()=>import("./optimism-UUP5Y7TB-KDutc3G3.js"),__vite__mapDeps([]))).default},dD={iconBackground:"#9f71ec",iconUrl:async()=>(await L0(()=>import("./polygon-Z4QITDL7-zNmkxoMh.js"),__vite__mapDeps([]))).default},pD={iconBackground:"#f9f7ec",iconUrl:async()=>(await L0(()=>import("./xdc-5UHQ25DW-5b24iEUg.js"),__vite__mapDeps([]))).default},hD={iconBackground:"#f9f7ec",iconUrl:async()=>(await L0(()=>import("./zkSync-XRUC4ZHO-NNXylIR-.js"),__vite__mapDeps([]))).default},CD={iconBackground:"#000000",iconUrl:async()=>(await L0(()=>import("./zora-KVO7WIOK-R166txMv.js"),__vite__mapDeps([]))).default},Pb0={arbitrum:{chainId:42161,name:"Arbitrum",...sD},arbitrumGoerli:{chainId:421613,...sD},avalanche:{chainId:43114,...fD},avalancheFuji:{chainId:43113,...fD},base:{chainId:8453,name:"Base",...lD},baseGoerli:{chainId:84531,...lD},bsc:{chainId:56,name:"BSC",...cD},bscTestnet:{chainId:97,...cD},cronos:{chainId:25,...ED},cronosTestnet:{chainId:338,...ED},goerli:{chainId:5,...Ci},hardhat:{chainId:31337,...Tb0},holesky:{chainId:17e3,...Ci},kovan:{chainId:42,...Ci},localhost:{chainId:1337,...Ci},mainnet:{chainId:1,name:"Ethereum",...Ci},optimism:{chainId:10,name:"Optimism",...rp},optimismGoerli:{chainId:420,...rp},optimismKovan:{chainId:69,...rp},polygon:{chainId:137,name:"Polygon",...dD},polygonMumbai:{chainId:80001,...dD},rinkeby:{chainId:4,...Ci},ropsten:{chainId:3,...Ci},sepolia:{chainId:11155111,...Ci},xdc:{chainId:50,name:"XinFin",...pD},xdcTestnet:{chainId:51,...pD},zkSync:{chainId:324,name:"zkSync",...hD},zkSyncTestnet:{chainId:280,...hD},zora:{chainId:7777777,name:"Zora",...CD},zoraTestnet:{chainId:999,...CD}},Ob0=Object.fromEntries(Object.values(Pb0).filter(Rg).map(({chainId:u,...e})=>[u,e])),Ib0=u=>u.map(e=>{var t,n,r,i;const a=(t=Ob0[e.id])!=null?t:{};return{...e,name:(n=a.name)!=null?n:e.name,iconUrl:(r=e.iconUrl)!=null?r:a.iconUrl,iconBackground:(i=e.iconBackground)!=null?i:a.iconBackground}}),Mg=w.createContext({chains:[]});function Nb0({chains:u,children:e,initialChain:t}){return F.createElement(Mg.Provider,{value:w.useMemo(()=>({chains:Ib0(u),initialChainId:typeof t=="number"?t:t==null?void 0:t.id}),[u,t])},e)}var fc=()=>w.useContext(Mg).chains,Rb0=()=>w.useContext(Mg).initialChainId,Mb0=()=>{const u=fc();return w.useMemo(()=>{const e={};return u.forEach(t=>{e[t.id]=t}),e},[u])},jb0=()=>{const[u,e]=w.useReducer(()=>!0,!1);return w.useEffect(e,[e]),u};function $N(){const u=QO.id,e=DE(),t=Array.isArray(e.chains)?e.chains:[],n=t==null?void 0:t.some(r=>(r==null?void 0:r.id)===u);return{chainId:u,enabled:n}}function UN(u){const{chainId:e,enabled:t}=$N(),{data:n}=wn0({chainId:e,enabled:t,name:u});return n}function WN(u){const{chainId:e,enabled:t}=$N(),{data:n}=_n0({address:u,chainId:e,enabled:t});return n}function jg(){var u;const{chain:e}=ga();return(u=e==null?void 0:e.id)!=null?u:null}var qN="rk-transactions";function zb0(u){try{const e=u?JSON.parse(u):{};return typeof e=="object"?e:{}}catch{return{}}}function mD(){return zb0(typeof localStorage<"u"?localStorage.getItem(qN):null)}var Lb0=/^0x([A-Fa-f0-9]{64})$/;function $b0(u){const e=[];return Lb0.test(u.hash)||e.push("Invalid transaction hash"),typeof u.description!="string"&&e.push("Transaction must have a description"),typeof u.confirmations<"u"&&(!Number.isInteger(u.confirmations)||u.confirmations<1)&&e.push("Transaction confirmations must be a positiver integer"),e}function Ub0({provider:u}){let e=mD(),t=u;const n=new Set,r=new Map;function i(h){t=h}function a(h,g){var b,m;return(m=(b=e[h])==null?void 0:b[g])!=null?m:[]}function o(h,g,b){const m=$b0(b);if(m.length>0)throw new Error(["Unable to add transaction",...m].join(` +`));c(h,g,A=>[{...b,status:"pending"},...A.filter(({hash:y})=>y!==b.hash)])}function s(h,g){c(h,g,()=>[])}function f(h,g,b,m){c(h,g,A=>A.map(y=>y.hash===b?{...y,status:m}:y))}async function l(h,g){await Promise.all(a(h,g).filter(b=>b.status==="pending").map(async b=>{const{confirmations:m,hash:A}=b,y=r.get(A);if(y)return await y;const B=t.waitForTransactionReceipt({confirmations:m,hash:A}).then(({status:v})=>{r.delete(A),v!==void 0&&f(h,g,A,v===0||v==="reverted"?"failed":"confirmed")});return r.set(A,B),await B}))}function c(h,g,b){var m,A;e=mD(),e[h]=(m=e[h])!=null?m:{};let y=0;const B=10,v=b((A=e[h][g])!=null?A:[]).filter(({status:C})=>C==="pending"?!0:y++<=B);e[h][g]=v.length>0?v:void 0,E(),d(),l(h,g)}function E(){localStorage.setItem(qN,JSON.stringify(e))}function d(){n.forEach(h=>h())}function p(h){return n.add(h),()=>{n.delete(h)}}return{addTransaction:o,clearTransactions:s,getTransactions:a,onChange:p,setProvider:i,waitForPendingTransactions:l}}var ip,HN=w.createContext(null);function Wb0({children:u}){const e=DE(),{address:t}=At(),n=jg(),[r]=w.useState(()=>ip??(ip=Ub0({provider:e})));return w.useEffect(()=>{r.setProvider(e)},[r,e]),w.useEffect(()=>{t&&n&&r.waitForPendingTransactions(t,n)},[r,t,n]),F.createElement(HN.Provider,{value:r},u)}function GN(){const u=w.useContext(HN);if(!u)throw new Error("Transaction hooks must be used within RainbowKitProvider");return u}function VN(){const u=GN(),{address:e}=At(),t=jg(),[n,r]=w.useState(()=>u&&e&&t?u.getTransactions(e,t):[]);return w.useEffect(()=>{if(u&&e&&t)return r(u.getTransactions(e,t)),u.onChange(()=>{r(u.getTransactions(e,t))})},[u,e,t]),n}var bD=u=>typeof u=="function"?u():u;function qb0(u,{extends:e}={}){const t={...UF(GF,bD(u))};if(!e)return t;const n=UF(GF,bD(e));return Object.fromEntries(Object.entries(t).filter(([i,a])=>a!==n[i]))}function gD(u,e={}){return Object.entries(qb0(u,e)).map(([t,n])=>`${t}:${n.replace(/[:;{}]/g,"")};`).join("")}var KN={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},p3=w.createContext(KN),QN=w.createContext(!1),JN=()=>{const[u,e]=w.useState({height:void 0,width:void 0});return w.useEffect(()=>{function t(){e({height:window.innerHeight,width:window.innerWidth})}return window.addEventListener("resize",t),t(),()=>window.removeEventListener("resize",t)},[]),u},lc=w.createContext({connector:null,setConnector:()=>{}});function Hb0({children:u}){const[e,t]=w.useState(null);return F.createElement(lc.Provider,{value:w.useMemo(()=>({connector:e,setConnector:t}),[e])},u)}var cc={COMPACT:"compact",WIDE:"wide"},XE=w.createContext(cc.WIDE);function Gb0({children:u,modalSize:e}){const{width:t}=JN(),n=t&&t{Kb0({version:"1.3.0"})},[]);w.useEffect(()=>{u()},[u])}function Jb0(u){const e=[];for(const t of u)e.push(...t);return e}function Yb0(u,e){const t={};return u.forEach(n=>{const r=e(n);r&&(t[r]=n)}),t}function Lg(){return typeof navigator<"u"&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function Zb0(){return typeof document<"u"&&getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")!==""}function $g(){var u;if(typeof navigator>"u")return"Browser";const e=navigator.userAgent.toLowerCase();return(u=navigator.brave)!=null&&u.isBrave?"Brave":e.indexOf("edg/")>-1?"Edge":e.indexOf("op")>-1?"Opera":Zb0()?"Arc":e.indexOf("chrome")>-1?"Chrome":e.indexOf("firefox")>-1?"Firefox":Lg()?"Safari":"Browser"}var Xb0=ph0.UAParser(),{os:Ug}=Xb0;function ug0(){return Ug.name==="Windows"}function eg0(){return Ug.name==="Mac OS"}function tg0(){return["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(Ug.name)}function Wg(){return ug0()?"Windows":eg0()?"macOS":tg0()?"Linux":"Desktop"}var ng0=u=>{var e,t,n,r,i,a,o,s,f,l,c,E;const d=$g();return(E={Arc:(e=u==null?void 0:u.downloadUrls)==null?void 0:e.chrome,Brave:(t=u==null?void 0:u.downloadUrls)==null?void 0:t.chrome,Chrome:(n=u==null?void 0:u.downloadUrls)==null?void 0:n.chrome,Edge:((r=u==null?void 0:u.downloadUrls)==null?void 0:r.edge)||((i=u==null?void 0:u.downloadUrls)==null?void 0:i.chrome),Firefox:(a=u==null?void 0:u.downloadUrls)==null?void 0:a.firefox,Opera:((o=u==null?void 0:u.downloadUrls)==null?void 0:o.opera)||((s=u==null?void 0:u.downloadUrls)==null?void 0:s.chrome),Safari:(f=u==null?void 0:u.downloadUrls)==null?void 0:f.safari,Browser:(l=u==null?void 0:u.downloadUrls)==null?void 0:l.browserExtension}[d])!=null?E:(c=u==null?void 0:u.downloadUrls)==null?void 0:c.browserExtension},rg0=u=>{var e,t,n,r;return(r=Xo()?(e=u==null?void 0:u.downloadUrls)==null?void 0:e.ios:(t=u==null?void 0:u.downloadUrls)==null?void 0:t.android)!=null?r:(n=u==null?void 0:u.downloadUrls)==null?void 0:n.mobile},ig0=u=>{var e,t,n,r,i,a;const o=Wg();return(a={Windows:(e=u==null?void 0:u.downloadUrls)==null?void 0:e.windows,macOS:(t=u==null?void 0:u.downloadUrls)==null?void 0:t.macos,Linux:(n=u==null?void 0:u.downloadUrls)==null?void 0:n.linux,Desktop:(r=u==null?void 0:u.downloadUrls)==null?void 0:r.desktop}[o])!=null?a:(i=u==null?void 0:u.downloadUrls)==null?void 0:i.desktop},YN="rk-recent";function ag0(u){try{const e=u?JSON.parse(u):[];return Array.isArray(e)?e:[]}catch{return[]}}function ZN(){return typeof localStorage<"u"?ag0(localStorage.getItem(YN)):[]}function og0(u){return[...new Set(u)]}function sg0(u){const e=og0([u,...ZN()]);localStorage.setItem(YN,JSON.stringify(e))}function ud(){const u=fc(),e=Rb0(),{connectAsync:t,connectors:n}=cn0(),r=n;async function i(d,p){var h,g,b;const m=await p.getChainId(),A=await t({chainId:(b=e??((h=u.find(({id:y})=>y===m))==null?void 0:h.id))!=null?b:(g=u[0])==null?void 0:g.id,connector:p});return A&&sg0(d),A}async function a(d,p){try{return await i(d,p)}catch(h){if(!(h.name==="UserRejectedRequestError"||h.message==="Connection request reset. Please try again."))throw h}}const o=Jb0(r.map(d=>{var p;return(p=d._wallets)!=null?p:[]})).sort((d,p)=>d.index-p.index),s=Yb0(o,d=>d.id),f=3,l=ZN().map(d=>s[d]).filter(Rg).slice(0,f),c=[...l,...o.filter(d=>!l.includes(d))],E=[];return c.forEach(d=>{var p;if(!d)return;const h=l.includes(d);E.push({...d,connect:()=>d.connector.showQrModal?a(d.id,d.connector):i(d.id,d.connector),desktopDownloadUrl:ig0(d),extensionDownloadUrl:ng0(d),groupName:d.groupName,mobileDownloadUrl:rg0(d),onConnecting:g=>d.connector.on("message",({type:b})=>b==="connecting"?g():void 0),ready:((p=d.installed)!=null?p:!0)&&d.connector.ready,recent:h,showWalletConnectModal:d.walletConnectModalConnector?()=>a(d.id,d.walletConnectModalConnector):void 0})}),E}var XN=async()=>(await L0(()=>import("./assets-26YY4GVD-VbicoLcw.js"),__vite__mapDeps([]))).default,fg0=()=>dr(XN),lg0=()=>F.createElement(ee,{background:"#d0d5de",borderRadius:"10",height:"48",src:XN,width:"48"}),uR=async()=>(await L0(()=>import("./login-ZSMM5UYL-SM24YM7m.js"),__vite__mapDeps([]))).default,cg0=()=>dr(uR),Eg0=()=>F.createElement(ee,{background:"#d0d5de",borderRadius:"10",height:"48",src:uR,width:"48"}),k0=F.forwardRef(({as:u="div",children:e,className:t,color:n,display:r,font:i="body",id:a,size:o="16",style:s,tabIndex:f,textAlign:l="inherit",weight:c="regular",testId:E},d)=>F.createElement(O,{as:u,className:t,color:n,display:r,fontFamily:i,fontSize:o,fontWeight:c,id:a,ref:d,style:s,tabIndex:f,textAlign:l,testId:E},e));k0.displayName="Text";var dg0={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function Ke({disabled:u=!1,href:e,label:t,onClick:n,rel:r="noreferrer noopener",size:i="medium",target:a="_blank",testId:o,type:s="primary"}){const f=s==="primary",l=i!=="large",c=Ae(),E=u?"actionButtonSecondaryBackground":f?"accentColor":l?"actionButtonSecondaryBackground":null,{fontSize:d,height:p,paddingX:h,paddingY:g}=dg0[i],b=!c||!l;return F.createElement(O,{...e?u?{}:{as:"a",href:e,rel:r,target:a}:{as:"button",type:"button"},onClick:u?void 0:n,...b?{borderColor:c&&!l&&!f?"actionButtonBorderMobile":"actionButtonBorder",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!u&&Vu({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:h,paddingY:g,style:{willChange:"transform"},testId:o,textAlign:"center",transition:"transform",...E?{background:E}:{},...p?{height:p}:{}},F.createElement(k0,{color:u?"modalTextSecondary":f?"accentColorForeground":"accentColor",size:d,weight:"bold"},t))}var pg0=()=>Ae()?F.createElement("svg",{"aria-hidden":!0,fill:"none",height:"11.5",viewBox:"0 0 11.5 11.5",width:"11.5",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",fill:"currentColor"})):F.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",fill:"currentColor"})),Po=({"aria-label":u="Close",onClose:e})=>{const t=Ae();return F.createElement(O,{alignItems:"center","aria-label":u,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:t?"0":"1",className:Vu({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:t?"30":"28",justifyContent:"center",onClick:e,style:{willChange:"transform"},transition:"default",type:"button",width:t?"30":"28"},F.createElement(pg0,null))},eR=async()=>(await L0(()=>import("./sign-FZVB2CS6-wZQBK821.js"),__vite__mapDeps([]))).default;function hg0({onClose:u}){const e=w.useContext(ne),[{status:t,...n},r]=F.useState({status:"idle"}),i=fC0(),a=w.useCallback(async()=>{try{const d=await i.getNonce();r(p=>({...p,nonce:d}))}catch{r(d=>({...d,errorMessage:e.t("sign_in.message.preparing_error"),status:"idle"}))}},[i]),o=w.useRef(!1);F.useEffect(()=>{o.current||(o.current=!0,a())},[a]);const s=Ae(),{address:f}=At(),{chain:l}=ga(),{signMessageAsync:c}=Cn0(),E=async()=>{try{const d=l==null?void 0:l.id,{nonce:p}=n;if(!f||!d||!p)return;r(b=>({...b,errorMessage:void 0,status:"signing"}));const h=i.createMessage({address:f,chainId:d,nonce:p});let g;try{g=await c({message:i.getMessageBody({message:h})})}catch(b){return b instanceof Gu?r(m=>({...m,status:"idle"})):r(m=>({...m,errorMessage:e.t("sign_in.signature.signing_error"),status:"idle"}))}r(b=>({...b,status:"verifying"}));try{if(await i.verify({message:h,signature:g}))return;throw new Error}catch{return r(b=>({...b,errorMessage:e.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{r({errorMessage:e.t("sign_in.signature.oops_error"),status:"idle"})}};return F.createElement(O,{position:"relative"},F.createElement(O,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},F.createElement(Po,{onClose:u})),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:s?"60px":"36px"}},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"6":"4",style:{maxWidth:s?320:280}},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"32":"16"},F.createElement(ee,{height:40,src:eR,width:40}),F.createElement(k0,{color:"modalText",size:s?"20":"18",textAlign:"center",weight:"heavy"},e.t("sign_in.label"))),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"16":"12"},F.createElement(k0,{color:"modalTextSecondary",size:s?"16":"14",textAlign:"center"},e.t("sign_in.description")),t==="idle"&&n.errorMessage?F.createElement(k0,{color:"error",size:s?"16":"14",textAlign:"center",weight:"bold"},n.errorMessage):null)),F.createElement(O,{alignItems:s?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},F.createElement(Ke,{disabled:!n.nonce||t==="signing"||t==="verifying",label:n.nonce?t==="signing"?e.t("sign_in.signature.waiting"):t==="verifying"?e.t("sign_in.signature.verifying"):e.t("sign_in.message.send"):e.t("sign_in.message.preparing"),onClick:E,size:s?"large":"medium",testId:"auth-message-button"}),s?F.createElement(Ke,{label:"Cancel",onClick:u,size:"large",type:"secondary"}):F.createElement(O,{as:"button",borderRadius:"full",className:Vu({active:"shrink",hover:"grow"}),display:"block",onClick:u,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(k0,{color:"closeButton",size:s?"16":"14",weight:"bold"},e.t("sign_in.message.cancel"))))))}function Cg0(){const u=fc(),e=ud(),t=ZE()==="unauthenticated",n=w.useCallback(()=>{dr(...e.map(r=>r.iconUrl),...u.map(r=>r.iconUrl).filter(Rg)),Ae()||(fg0(),cg0()),t&&dr(eR)},[e,u,t]);w.useEffect(()=>{n()},[n])}var tR="WALLETCONNECT_DEEPLINK_CHOICE";function mg0({mobileUri:u,name:e}){localStorage.setItem(tR,JSON.stringify({href:u.split("?")[0],name:e}))}function bg0(){localStorage.removeItem(tR)}var nR=w.createContext(void 0),_C="data-rk",rR=u=>({[_C]:u||""}),gg0=u=>{if(u&&!/^[a-zA-Z0-9_]+$/.test(u))throw new Error(`Invalid ID: ${u}`);return u?`[${_C}="${u}"]`:`[${_C}]`},Ag0=()=>{const u=w.useContext(nR);return rR(u)},yg0=QS();function vg0({appInfo:u,avatar:e,chains:t,children:n,coolMode:r=!1,id:i,initialChain:a,locale:o,modalSize:s=cc.WIDE,showRecentTransactions:f=!1,theme:l=yg0}){if(Cg0(),Qb0(),At({onDisconnect:bg0}),typeof l=="function")throw new Error('A theme function was provided to the "theme" prop instead of a theme object. You must execute this function to get the resulting theme object.');const c=gg0(i),E={...KN,...u},d=e??jN;return F.createElement(Nb0,{chains:t,initialChain:a},F.createElement(Hb0,null,F.createElement(Sb0,{locale:o},F.createElement(QN.Provider,{value:r},F.createElement(Gb0,{modalSize:s},F.createElement(zg.Provider,{value:f},F.createElement(Wb0,null,F.createElement(zN.Provider,{value:d},F.createElement(p3.Provider,{value:E},F.createElement(nR.Provider,{value:i},F.createElement(NA0,null,l?F.createElement("div",{...rR(i)},F.createElement("style",{dangerouslySetInnerHTML:{__html:[`${c}{${gD("lightMode"in l?l.lightMode:l)}}`,"darkMode"in l?`@media(prefers-color-scheme:dark){${c}{${gD(l.darkMode,{extends:l.lightMode})}}}`:null].join("")}}),n):n)))))))))))}var Bg0="_9pm4ki5 ju367va ju367v15 ju367v8r",Fg0="_9pm4ki3 ju367v9g ju367vb2 ju367va ju367v2q ju367v8q",AD=(u,e)=>{const t=u.querySelectorAll("button:not(:disabled), a[href]");t.length!==0&&t[e==="end"?t.length-1:0].focus()};function Dg0(u){const e=w.useRef(null);return w.useEffect(()=>{const t=document.activeElement;return()=>{var n;(n=t.focus)==null||n.call(t)}},[]),w.useEffect(()=>{if(e.current){const t=e.current.querySelector("[data-auto-focus]");t?t.focus():e.current.focus()}},[e]),F.createElement(F.Fragment,null,F.createElement("div",{onFocus:w.useCallback(()=>e.current&&AD(e.current,"end"),[]),tabIndex:0}),F.createElement("div",{ref:e,style:{outline:"none"},tabIndex:-1,...u}),F.createElement("div",{onFocus:w.useCallback(()=>e.current&&AD(e.current,"start"),[]),tabIndex:0}))}var wg0=u=>u.stopPropagation();function m2({children:u,onClose:e,open:t,titleId:n}){w.useEffect(()=>{const f=l=>t&&l.key==="Escape"&&e();return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[t,e]);const[r,i]=w.useState(!0);w.useEffect(()=>{i(getComputedStyle(window.document.body).overflow!=="hidden")},[]);const a=w.useCallback(()=>e(),[e]),o=Ag0(),s=Ae();return F.createElement(F.Fragment,null,t?Am.createPortal(F.createElement(Eh0,{enabled:r},F.createElement(O,{...o},F.createElement(O,{...o,alignItems:s?"flex-end":"center","aria-labelledby":n,"aria-modal":!0,className:Fg0,onClick:a,position:"fixed",role:"dialog"},F.createElement(Dg0,{className:Bg0,onClick:wg0,role:"document"},u)))),document.body):null)}var xg0="_1ckjpok7",kg0="_1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",_g0="_1ckjpok4 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",Sg0="_1ckjpok6 ju367vq",Tg0="_1ckjpok3 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",Pg0="_1ckjpok2 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r";function b2({bottomSheetOnMobile:u=!1,children:e,marginTop:t,padding:n="16",paddingBottom:r,wide:i=!1}){const a=Ae(),s=w.useContext(XE)===cc.COMPACT;return F.createElement(O,{marginTop:t},F.createElement(O,{className:[i?a?Pg0:s?_g0:Tg0:kg0,a?Sg0:null,a&&u?xg0:null].join(" ")},F.createElement(O,{padding:n,paddingBottom:r??n},e)))}var yD=["k","m","b","t"];function c6(u,e=1){return u.toString().replace(new RegExp(`(.+\\.\\d{${e}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function iR(u){if(u<1)return c6(u,3);if(u<10**2)return c6(u,2);if(u<10**4)return new Intl.NumberFormat().format(parseFloat(c6(u,1)));const e=10**1;let t=String(u);for(let n=yD.length-1;n>=0;n--){const r=10**((n+1)*3);if(r<=u){u=u*e/r/e,t=c6(u,1)+yD[n];break}}return t}function aR(u){return u.length<8?u:`${u.substring(0,4)}…${u.substring(u.length-4)}`}function oR(u){const e=u.split("."),t=e.pop();return e.join(".").length>24?`${e.join(".").substring(0,24)}...`:`${e.join(".")}.${t}`}var Og0=()=>F.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",fill:"currentColor"})),Ig0=()=>F.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",fill:"currentColor"})),Ng0=()=>F.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.6354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",fill:"currentColor"}));function Rg0(){const u=GN(),{address:e}=At(),t=jg();return w.useCallback(()=>{if(!e||!t)throw new Error("No address or chain ID found");u.clearTransactions(e,t)},[u,e,t])}var sR=u=>{var e,t;return(t=(e=u==null?void 0:u.blockExplorers)==null?void 0:e.default)==null?void 0:t.url},fR=()=>F.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",fill:"currentColor"})),Mg0=()=>F.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",fill:"currentColor"})),jg0=()=>F.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",fill:"currentColor"})),zg0=u=>{switch(u){case"pending":return Zl;case"confirmed":return jg0;case"failed":return Mg0;default:return Zl}};function Lg0({tx:u}){const e=Ae(),t=zg0(u.status),n=u.status==="failed"?"error":"accentColor",{chain:r}=ga(),i=u.status==="confirmed"?"Confirmed":u.status==="failed"?"Failed":"Pending",a=sR(r);return F.createElement(F.Fragment,null,F.createElement(O,{...a?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:Vu({active:"shrink"}),href:`${a}/tx/${u.hash}`,rel:"noreferrer noopener",target:"_blank",transition:"default"}:{},color:"modalText",display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"8",width:"full"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:e?"16":"14"},F.createElement(O,{color:n},F.createElement(t,null)),F.createElement(O,{display:"flex",flexDirection:"column",gap:e?"3":"1"},F.createElement(O,null,F.createElement(k0,{color:"modalText",font:"body",size:e?"16":"14",weight:"bold"},u==null?void 0:u.description)),F.createElement(O,null,F.createElement(k0,{color:u.status==="pending"?"modalTextSecondary":n,font:"body",size:"14",weight:e?"medium":"regular"},i)))),a&&F.createElement(O,{alignItems:"center",color:"modalTextDim",display:"flex"},F.createElement(fR,null))))}var $g0=3;function Ug0({address:u}){const e=VN(),t=Rg0(),{chain:n}=ga(),r=sR(n),i=e.slice(0,$g0),a=i.length>0,o=Ae(),{appName:s}=w.useContext(p3),f=w.useContext(ne);return F.createElement(F.Fragment,null,F.createElement(O,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:o?"8":"18"},a&&F.createElement(O,{paddingBottom:o?"4":"0",paddingTop:"8",paddingX:o?"12":"6"},F.createElement(O,{display:"flex",justifyContent:"space-between"},F.createElement(k0,{color:"modalTextSecondary",size:o?"16":"14",weight:"semibold"},f.t("profile.transactions.recent.title")),F.createElement(O,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},F.createElement(O,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:Vu({active:"shrink"}),onClick:t,paddingX:o?"8":"12",paddingY:o?"4":"5",transition:"default",type:"button"},F.createElement(k0,{color:"modalTextSecondary",size:o?"16":"14",weight:"semibold"},f.t("profile.transactions.clear.label")))))),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},a?i.map(l=>F.createElement(Lg0,{key:l.hash,tx:l})):F.createElement(F.Fragment,null,F.createElement(O,{padding:o?"12":"8"},F.createElement(k0,{color:"modalTextDim",size:o?"16":"14",weight:o?"medium":"bold"},s?f.t("profile.transactions.description",{appName:s}):f.t("profile.transactions.description_fallback"))),o&&F.createElement(O,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),r&&F.createElement(O,{paddingBottom:"18",paddingX:o?"8":"18"},F.createElement(O,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:Vu({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${r}/address/${u}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...o?{paddingLeft:"12"}:{}},F.createElement(k0,{color:"modalText",font:"body",size:o?"16":"14",weight:o?"semibold":"bold"},f.t("profile.explorer.label")),F.createElement(fR,null))))}function vD({action:u,icon:e,label:t,testId:n,url:r}){const i=Ae();return F.createElement(O,{...r?{as:"a",href:r,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...i?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:Vu({active:"shrinkSm",hover:i?void 0:"grow"}),display:"flex",onClick:u,padding:i?"6":"8",style:{willChange:"transform"},testId:n,transition:"default",width:"full"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},F.createElement(O,{color:"modalText",height:"max"},e),F.createElement(O,null,F.createElement(k0,{color:"modalText",size:i?"12":"13",weight:"semibold"},t))))}function Wg0({address:u,balanceData:e,ensAvatar:t,ensName:n,onClose:r,onDisconnect:i}){const a=w.useContext(zg),[o,s]=w.useState(!1),f=w.useContext(ne),l=w.useCallback(()=>{u&&(navigator.clipboard.writeText(u),s(!0))},[u]);if(w.useEffect(()=>{if(o){const g=setTimeout(()=>{s(!1)},1500);return()=>clearTimeout(g)}},[o]),!u)return null;const c=n?oR(n):aR(u),E=e==null?void 0:e.formatted,d=E?iR(parseFloat(E)):void 0,p="rk_profile_title",h=Ae();return F.createElement(F.Fragment,null,F.createElement(O,{display:"flex",flexDirection:"column"},F.createElement(O,{background:"profileForeground",padding:"16"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:h?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},F.createElement(O,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},F.createElement(Po,{onClose:r}))," ",F.createElement(O,{marginTop:h?"24":"0"},F.createElement(LN,{address:u,imageUrl:t,size:h?82:74})),F.createElement(O,{display:"flex",flexDirection:"column",gap:h?"4":"0",textAlign:"center"},F.createElement(O,{textAlign:"center"},F.createElement(k0,{as:"h1",color:"modalText",id:p,size:h?"20":"18",weight:"heavy"},c)),e&&F.createElement(O,{textAlign:"center"},F.createElement(k0,{as:"h1",color:"modalTextSecondary",id:p,size:h?"16":"14",weight:"semibold"},d," ",e.symbol)))),F.createElement(O,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},F.createElement(vD,{action:l,icon:o?F.createElement(Og0,null):F.createElement(Ig0,null),label:o?f.t("profile.copy_address.copied"):f.t("profile.copy_address.label")}),F.createElement(vD,{action:i,icon:F.createElement(Ng0,null),label:f.t("profile.disconnect.label"),testId:"disconnect-button"}))),a&&F.createElement(F.Fragment,null,F.createElement(O,{background:"generalBorder",height:"1",marginTop:"-1"}),F.createElement(O,null,F.createElement(Ug0,{address:u})))))}function qg0({onClose:u,open:e}){const{address:t}=At(),{data:n}=fI({address:t}),r=WN(t),i=UN(r),{disconnect:a}=lg();if(!t)return null;const o="rk_account_modal_title";return F.createElement(F.Fragment,null,t&&F.createElement(m2,{onClose:u,open:e,titleId:o},F.createElement(b2,{bottomSheetOnMobile:!0,padding:"0"},F.createElement(Wg0,{address:t,balanceData:n,ensAvatar:i,ensName:r,onClose:u,onDisconnect:a}))))}var Hg0=({size:u})=>F.createElement("svg",{fill:"none",height:u,viewBox:"0 0 28 28",width:u,xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",fill:"currentColor"})),Gg0="v9horb0",SC=F.forwardRef(({children:u,currentlySelected:e=!1,onClick:t,testId:n,...r},i)=>{const a=Ae();return F.createElement(O,{as:"button",borderRadius:"menuButton",disabled:e,display:"flex",onClick:t,ref:i,testId:n,type:"button"},F.createElement(O,{borderRadius:"menuButton",className:[a?Gg0:void 0,!e&&Vu({active:"shrink"})],padding:a?"8":"6",transition:"default",width:"full",...e?{background:"accentColor",borderColor:"selectedOptionBorder",borderStyle:"solid",borderWidth:"1",boxShadow:"selectedOption",color:"accentColorForeground"}:{background:{hover:"menuItemBackground"},color:"modalText",transition:"default"},...r},u))});SC.displayName="MenuButton";var Vg0="_18dqw9x0",Kg0="_18dqw9x1";function Qg0({onClose:u,open:e}){var t;const{chain:n}=ga(),{chains:r,pendingChainId:i,reset:a,switchNetwork:o}=gn0({onSettled:()=>{a(),u()}}),s=w.useContext(ne),{disconnect:f}=lg(),l="rk_chain_modal_title",c=Ae(),E=(t=n==null?void 0:n.unsupported)!=null?t:!1,d=c?"36":"28",{appName:p}=w.useContext(p3),h=fc();return!n||!(n!=null&&n.id)?null:F.createElement(m2,{onClose:u,open:e,titleId:l},F.createElement(b2,{bottomSheetOnMobile:!0,paddingBottom:"0"},F.createElement(O,{display:"flex",flexDirection:"column",gap:"14"},F.createElement(O,{display:"flex",flexDirection:"row",justifyContent:"space-between"},c&&F.createElement(O,{width:"30"}),F.createElement(O,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},F.createElement(k0,{as:"h1",color:"modalText",id:l,size:c?"20":"18",weight:"heavy"},s.t("chains.title"))),F.createElement(Po,{onClose:u})),E&&F.createElement(O,{marginX:"8",textAlign:c?"center":"left"},F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},s.t("chains.wrong_network"))),F.createElement(O,{className:c?Kg0:Vg0,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},o?h.map(({iconBackground:g,iconUrl:b,id:m,name:A},y)=>{const B=r.find(D=>D.id===m);if(!B)return null;const v=B.id===(n==null?void 0:n.id),C=!v&&B.id===i;return F.createElement(w.Fragment,{key:B.id},F.createElement(SC,{currentlySelected:v,onClick:v?void 0:()=>o(B.id),testId:`chain-option-${B.id}`},F.createElement(O,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:d},b&&F.createElement(O,{height:"full",marginRight:"8"},F.createElement(ee,{alt:A??B.name,background:g,borderRadius:"full",height:d,src:b,width:d,testId:`chain-option-${B.id}-icon`})),F.createElement("div",null,A??B.name)),v&&F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},F.createElement(k0,{color:"accentColorForeground",size:"14",weight:"medium"},s.t("chains.connected")),F.createElement(O,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),C&&F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},F.createElement(k0,{color:"modalText",size:"14",weight:"medium"},s.t("chains.confirm")),F.createElement(O,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),c&&yf(),testId:"chain-option-disconnect"},F.createElement(O,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:d},F.createElement(O,{alignItems:"center",color:"error",height:d,justifyContent:"center",marginRight:"8"},F.createElement(Hg0,{size:Number(d)})),F.createElement("div",null,s.t("chains.disconnect")))))))))))}function Jg0(u,e){const t={};return u.forEach(n=>{const r=e(n);r&&(t[r]||(t[r]=[]),t[r].push(n))}),t}var Yg0="rk-latest-id";function Zg0(u){localStorage.setItem(Yg0,u)}var qg=({children:u,href:e})=>F.createElement(O,{as:"a",color:"accentColor",href:e,rel:"noreferrer",target:"_blank"},u),Hg=({children:u})=>F.createElement(k0,{color:"modalTextSecondary",size:"12",weight:"medium"},u);function BD({compactModeEnabled:u=!1,getWallet:e}){const{disclaimer:t,learnMoreUrl:n}=w.useContext(p3),r=w.useContext(ne);return F.createElement(F.Fragment,null,F.createElement(O,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},F.createElement(O,{marginBottom:"10"},!u&&F.createElement(k0,{color:"modalText",size:"18",weight:"heavy"},r.t("intro.title"))),F.createElement(O,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},F.createElement(O,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},F.createElement(lg0,null)),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},r.t("intro.digital_asset.title")),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},r.t("intro.digital_asset.description")))),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},F.createElement(O,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},F.createElement(Eg0,null)),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},r.t("intro.login.title")),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},r.t("intro.login.description"))))),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},F.createElement(Ke,{label:r.t("intro.get.label"),onClick:e}),F.createElement(O,{as:"a",className:Vu({active:"shrink",hover:"grow"}),display:"block",href:n,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(k0,{color:"accentColor",size:"14",weight:"bold"},r.t("intro.learn_more.label")))),t&&!u&&F.createElement(O,{marginBottom:"8",marginTop:"12",textAlign:"center"},F.createElement(t,{Link:qg,Text:Hg}))))}var lR=()=>F.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.9121 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",fill:"currentColor"})),Xg0=()=>F.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",fill:"currentColor"})),uA0=({"aria-label":u="Info",onClick:e})=>{const t=Ae();return F.createElement(O,{alignItems:"center","aria-label":u,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:t?"0":"1",className:Vu({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:t?"30":"28",justifyContent:"center",onClick:e,style:{willChange:"transform"},transition:"default",type:"button",width:t?"30":"28"},F.createElement(Xg0,null))},cR=u=>{const e=w.useRef(null),t=w.useContext(QN),n=Ng(u);return w.useEffect(()=>{if(t&&e.current&&n)return tA0(e.current,n)},[t,n]),e},eA0=()=>{const u="_rk_coolMode",e=document.getElementById(u);if(e)return e;const t=document.createElement("div");return t.setAttribute("id",u),t.setAttribute("style",["overflow:hidden","position:fixed","height:100%","top:0","left:0","right:0","bottom:0","pointer-events:none","z-index:2147483647"].join(";")),document.body.appendChild(t),t},FD=0;function tA0(u,e){FD++;const t=[15,20,25,35,45],n=35;let r=[],i=!1,a=0,o=0;const s=eA0();function f(){const y=t[Math.floor(Math.random()*t.length)],B=Math.random()*10,v=Math.random()*25,C=Math.random()*360,D=Math.random()*35*(Math.random()<=.5?-1:1),T=o-y/2,_=a-y/2,$=Math.random()<=.5?-1:1,u0=document.createElement("div");u0.innerHTML=``,u0.setAttribute("style",["position:absolute","will-change:transform",`top:${T}px`,`left:${_}px`,`transform:rotate(${C}deg)`].join(";")),s.appendChild(u0),r.push({direction:$,element:u0,left:_,size:y,speedHorz:B,speedUp:v,spinSpeed:D,spinVal:C,top:T})}function l(){r.forEach(y=>{y.left=y.left-y.speedHorz*y.direction,y.top=y.top-y.speedUp,y.speedUp=Math.min(y.size,y.speedUp-1),y.spinVal=y.spinVal+y.spinSpeed,y.top>=Math.max(window.innerHeight,document.body.clientHeight)+y.size&&(r=r.filter(B=>B!==y),y.element.remove()),y.element.setAttribute("style",["position:absolute","will-change:transform",`top:${y.top}px`,`left:${y.left}px`,`transform:rotate(${y.spinVal}deg)`].join(";"))})}let c;function E(){i&&r.length{var B,v;"touches"in y?(a=(B=y.touches)==null?void 0:B[0].clientX,o=(v=y.touches)==null?void 0:v[0].clientY):(a=y.clientX,o=y.clientY)},m=y=>{b(y),i=!0},A=()=>{i=!1};return u.addEventListener(g,b,{passive:!1}),u.addEventListener(p,m),u.addEventListener(h,A),u.addEventListener("mouseleave",A),()=>{u.removeEventListener(g,b),u.removeEventListener(p,m),u.removeEventListener(h,A),u.removeEventListener("mouseleave",A);const y=setInterval(()=>{c&&r.length===0&&(cancelAnimationFrame(c),clearInterval(y),--FD===0&&s.remove())},500)}}var nA0="g5kl0l0",ER=({as:u="button",currentlySelected:e=!1,iconBackground:t,iconUrl:n,name:r,onClick:i,ready:a,recent:o,testId:s,...f})=>{const l=cR(n),[c,E]=w.useState(!1),d=w.useContext(ne);return F.createElement(O,{display:"flex",flexDirection:"column",onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),ref:l},F.createElement(O,{as:u,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:e?void 0:[nA0,Vu({active:"shrink"})],disabled:e,onClick:i,padding:"5",style:{willChange:"transform"},testId:s,transition:"default",width:"full",...e?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...f},F.createElement(O,{color:e?"accentColorForeground":"modalText",disabled:!a,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},F.createElement(ee,{background:t,...c?{}:{borderColor:"actionButtonBorder"},borderRadius:"6",height:"28",src:n,width:"28"}),F.createElement(O,null,F.createElement(O,{style:{marginTop:o?-2:void 0}},r),o&&F.createElement(k0,{color:e?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},d.t("connect.recent")))))))};ER.displayName="ModalSelection";var ap=(u,e=1)=>{let t=u.replace("#","");t.length===3&&(t=`${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`);const n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),i=parseInt(t.substring(4,6),16);return e>1&&e<=100&&(e=e/100),`rgba(${n},${r},${i},${e})`},rA0=u=>u?[ap(u,.2),ap(u,.14),ap(u,.1)]:null,iA0=u=>/^#([0-9a-f]{3}){1,2}$/i.test(u),dR=async()=>(await L0(()=>import("./connect-XNDTNVUH-hhMIOxrc.js"),__vite__mapDeps([]))).default,aA0=()=>dr(dR),oA0=()=>F.createElement(ee,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:dR,width:"48"}),pR=async()=>(await L0(()=>import("./create-PAJXJDV3-km5bd1se.js"),__vite__mapDeps([]))).default,hR=()=>dr(pR),sA0=()=>F.createElement(ee,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:pR,width:"48"}),CR=async()=>(await L0(()=>import("./refresh-5KGGHTJP-85I9TqPb.js"),__vite__mapDeps([]))).default,fA0=()=>dr(CR),lA0=()=>F.createElement(ee,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:CR,width:"48"}),mR=async()=>(await L0(()=>import("./scan-HZBLXLM4-CuMFQji0.js"),__vite__mapDeps([]))).default,bR=()=>dr(mR),cA0=()=>F.createElement(ee,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:mR,width:"48"}),EA0="_1vwt0cg0",dA0="_1vwt0cg2 ju367v7a ju367v7v",pA0="_1vwt0cg3",hA0="_1vwt0cg4",CA0=(u,e)=>{const t=Array.prototype.slice.call(oc.create(u,{errorCorrectionLevel:e}).modules.data,0),n=Math.sqrt(t.length);return t.reduce((r,i,a)=>(a%n===0?r.push([i]):r[r.length-1].push(i))&&r,[])};function gR({ecl:u="M",logoBackground:e,logoMargin:t=10,logoSize:n=50,logoUrl:r,size:i=200,uri:a}){const o="20",s=i-parseInt(o,10)*2,f=w.useMemo(()=>{const E=[],d=CA0(a,u),p=s/d.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:A,y})=>{const B=(d.length-7)*p*A,v=(d.length-7)*p*y;for(let C=0;C<3;C++)E.push(F.createElement("rect",{fill:C%2!==0?"white":"black",height:p*(7-C*2),key:`${C}-${A}-${y}`,rx:(C-2)*-5+(C===0?2:0),ry:(C-2)*-5+(C===0?2:0),width:p*(7-C*2),x:B+p*C,y:v+p*C}))});const g=Math.floor((n+25)/p),b=d.length/2-g/2,m=d.length/2+g/2-1;return d.forEach((A,y)=>{A.forEach((B,v)=>{d[y][v]&&(y<7&&v<7||y>d.length-8&&v<7||y<7&&v>d.length-8||y>b&&yb&&v{switch($g()){case"Arc":return(await L0(()=>import("./Arc-QDJFTGH2-x-TIuu8Z.js"),__vite__mapDeps([]))).default;case"Brave":return(await L0(()=>import("./Brave-YATE5BIM-9tj-VFqu.js"),__vite__mapDeps([]))).default;case"Chrome":return(await L0(()=>import("./Chrome-LGF33C3S-wsO3nrZt.js"),__vite__mapDeps([]))).default;case"Edge":return(await L0(()=>import("./Edge-K2JEGI5S--gxTpD72.js"),__vite__mapDeps([]))).default;case"Firefox":return(await L0(()=>import("./Firefox-NP5SYEK5-7iuNDPna.js"),__vite__mapDeps([]))).default;case"Opera":return(await L0(()=>import("./Opera-KV54PXPA-OCnboboB.js"),__vite__mapDeps([]))).default;case"Safari":return(await L0(()=>import("./Safari-2QIYKJ4P-DqnkdcRR.js"),__vite__mapDeps([]))).default;default:return(await L0(()=>import("./Browser-HN7O5MN7-tT69d9rj.js"),__vite__mapDeps([]))).default}},mA0=()=>dr(AR),yR=async()=>{switch(Wg()){case"Windows":return(await L0(()=>import("./Windows-R3CKAIUV-UAjuZCQz.js"),__vite__mapDeps([]))).default;case"macOS":return(await L0(()=>import("./Macos-2KTZ2XLP-xHqsL0QY.js"),__vite__mapDeps([]))).default;case"Linux":return(await L0(()=>import("./Linux-NS2LQPT4-bLbGf4OB.js"),__vite__mapDeps([]))).default;default:return(await L0(()=>import("./Linux-NS2LQPT4-bLbGf4OB.js"),__vite__mapDeps([]))).default}},bA0=()=>dr(yR);function gA0({getWalletDownload:u,compactModeEnabled:e}){const n=ud().splice(0,5),r=w.useContext(ne);return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},n==null?void 0:n.filter(i=>{var a;return i.extensionDownloadUrl||i.desktopDownloadUrl||i.qrCode&&((a=i.downloadUrls)==null?void 0:a.qrCode)}).map(i=>{const{downloadUrls:a,iconBackground:o,iconUrl:s,id:f,name:l,qrCode:c}=i,E=(a==null?void 0:a.qrCode)&&c,d=!!i.extensionDownloadUrl,p=(a==null?void 0:a.qrCode)&&d,h=(a==null?void 0:a.qrCode)&&!!i.desktopDownloadUrl;return F.createElement(O,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:i.id,width:"full"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},F.createElement(ee,{background:o,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:s,width:"48"}),F.createElement(O,{display:"flex",flexDirection:"column",gap:"2"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},l),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},p?r.t("get.mobile_and_extension.description"):h?r.t("get.mobile_and_desktop.description"):E?r.t("get.mobile.description"):d?r.t("get.extension.description"):null))),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(Ke,{label:r.t("get.action.label"),onClick:()=>u(f),type:"secondary"})))})),F.createElement(O,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},r.t("get.looking_for.title")),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},e?r.t("get.looking_for.desktop.compact_description"):r.t("get.looking_for.desktop.wide_description"))))}var op="44";function AA0({changeWalletStep:u,compactModeEnabled:e,connectionError:t,onClose:n,qrCodeUri:r,reconnect:i,wallet:a}){var o;const{downloadUrls:s,iconBackground:f,iconUrl:l,name:c,qrCode:E,ready:d,showWalletConnectModal:p}=a,h=(o=a.desktop)==null?void 0:o.getUri,g=Lg(),b=w.useContext(ne),m=!!a.extensionDownloadUrl,A=(s==null?void 0:s.qrCode)&&m,y=(s==null?void 0:s.qrCode)&&!!a.desktopDownloadUrl,B=E&&r,v=p?{description:e?b.t("connect.walletconnect.description.compact"):b.t("connect.walletconnect.description.full"),label:b.t("connect.walletconnect.open.label"),onClick:()=>{n(),p()}}:B?{description:b.t("connect.secondary_action.get.description",{wallet:c}),label:b.t("connect.secondary_action.get.label"),onClick:()=>u(A||y?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:C}=JN(),D=C&&C<768;return w.useEffect(()=>{mA0(),bA0()},[]),F.createElement(O,{display:"flex",flexDirection:"column",height:"full",width:"full"},B?F.createElement(O,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},F.createElement(gR,{logoBackground:f,logoSize:e?60:72,logoUrl:l,size:e?318:D?Math.max(280,Math.min(C-308,382)):382,uri:r})):F.createElement(O,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},F.createElement(O,{borderRadius:"10",height:op,overflow:"hidden"},F.createElement(ee,{height:op,src:l,width:op})),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},F.createElement(k0,{color:"modalText",size:"18",weight:"bold"},d?b.t("connect.status.opening",{wallet:c}):m?b.t("connect.status.not_installed",{wallet:c}):b.t("connect.status.not_available",{wallet:c})),!d&&m?F.createElement(O,{paddingTop:"20"},F.createElement(Ke,{href:a.extensionDownloadUrl,label:b.t("connect.secondary_action.install.label"),type:"secondary"})):null,d&&!B&&F.createElement(F.Fragment,null,F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},F.createElement(k0,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},b.t("connect.status.confirm"))),F.createElement(O,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},t?F.createElement(Ke,{label:b.t("connect.secondary_action.retry.label"),onClick:h?async()=>{const T=await h();window.open(T,g?"_blank":"_self")}:()=>{i(a)}}):F.createElement(O,{color:"modalTextSecondary"},F.createElement(Zl,null))))))),F.createElement(O,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},d&&v&&F.createElement(F.Fragment,null,F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},v.description),F.createElement(Ke,{label:v.label,onClick:v.onClick,type:"secondary"}))))}var sp=({actionLabel:u,description:e,iconAccent:t,iconBackground:n,iconUrl:r,isCompact:i,onAction:a,title:o,url:s,variant:f})=>{const l=f==="browser",c=!l&&t&&rA0(t);return F.createElement(O,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:i?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},F.createElement(O,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),l&&F.createElement(O,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},F.createElement(O,{display:"flex",flexDirection:"row",justifyContent:"space-between",style:{bottom:"0",filter:"blur(20px)",left:"0",position:"absolute",right:"0",top:"0",transform:"translate3d(0, 0, 0)"}},F.createElement(O,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},F.createElement(ee,{borderRadius:"full",height:"200",src:r,width:"200"})),F.createElement(O,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},F.createElement(ee,{borderRadius:"full",height:"200",src:r,width:"200"})))),!l&&c&&F.createElement(O,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},F.createElement(O,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${c[0]} 0%, ${c[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),F.createElement(O,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${c[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),F.createElement(O,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},F.createElement(O,null,F.createElement(ee,{height:"60",src:r,width:"60",...n?{background:n,borderColor:"generalBorder",borderRadius:"10"}:null})),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},o),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},e),F.createElement(O,{marginTop:"14",width:"max"},F.createElement(Ke,{href:s,label:u,onClick:a,size:"medium"})))))};function yA0({changeWalletStep:u,wallet:e}){const t=$g(),n=Wg(),i=w.useContext(XE)==="compact",{desktop:a,desktopDownloadUrl:o,extension:s,extensionDownloadUrl:f,mobileDownloadUrl:l}=e,c=w.useContext(ne);return w.useEffect(()=>{hR(),bR(),fA0(),aA0()},[]),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},f&&F.createElement(sp,{actionLabel:c.t("get_options.extension.download.label",{browser:t}),description:c.t("get_options.extension.description"),iconUrl:AR,isCompact:i,onAction:()=>u(s!=null&&s.instructions?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:c.t("get_options.extension.title",{wallet:e.name,browser:t}),url:f,variant:"browser"}),o&&F.createElement(sp,{actionLabel:c.t("get_options.desktop.download.label",{platform:n}),description:c.t("get_options.desktop.description"),iconUrl:yR,isCompact:i,onAction:()=>u(a!=null&&a.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:c.t("get_options.desktop.title",{wallet:e.name,platform:n}),url:o,variant:"desktop"}),l&&F.createElement(sp,{actionLabel:c.t("get_options.mobile.download.label",{wallet:e.name}),description:c.t("get_options.mobile.description"),iconAccent:e.iconAccent,iconBackground:e.iconBackground,iconUrl:e.iconUrl,isCompact:i,onAction:()=>{u("DOWNLOAD")},title:c.t("get_options.mobile.title",{wallet:e.name}),variant:"app"})))}function vA0({changeWalletStep:u,wallet:e}){const{downloadUrls:t,qrCode:n}=e,r=w.useContext(ne);return w.useEffect(()=>{hR(),bR()},[]),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},F.createElement(O,{style:{maxWidth:220,textAlign:"center"}},F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"semibold"},r.t("get_mobile.description"))),F.createElement(O,{height:"full"},t!=null&&t.qrCode?F.createElement(gR,{logoSize:0,size:268,uri:t.qrCode}):null),F.createElement(O,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},F.createElement(Ke,{label:r.t("get_mobile.continue.label"),onClick:()=>u(n!=null&&n.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var Sf={connect:()=>F.createElement(oA0,null),create:()=>F.createElement(sA0,null),install:u=>F.createElement(ee,{background:u.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:u.iconUrl,width:"48"}),refresh:()=>F.createElement(lA0,null),scan:()=>F.createElement(cA0,null)};function BA0({connectWallet:u,wallet:e}){var t,n,r,i;const a=w.useContext(ne);return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},F.createElement(O,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(n=(t=e==null?void 0:e.qrCode)==null?void 0:t.instructions)==null?void 0:n.steps.map((o,s)=>{var f;return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},F.createElement(O,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(f=Sf[o.step])==null?void 0:f.call(Sf,e)),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},a.t(o.title)),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t(o.description))))})),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},F.createElement(Ke,{label:a.t("get_instructions.mobile.connect.label"),onClick:()=>u(e)}),F.createElement(O,{as:"a",className:Vu({active:"shrink",hover:"grow"}),display:"block",href:(i=(r=e==null?void 0:e.qrCode)==null?void 0:r.instructions)==null?void 0:i.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(k0,{color:"accentColor",size:"14",weight:"bold"},a.t("get_instructions.mobile.learn_more.label")))))}function FA0({wallet:u}){var e,t,n,r;const i=w.useContext(ne);return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},F.createElement(O,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(t=(e=u==null?void 0:u.extension)==null?void 0:e.instructions)==null?void 0:t.steps.map((a,o)=>{var s;return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:o},F.createElement(O,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(s=Sf[a.step])==null?void 0:s.call(Sf,u)),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},i.t(a.title)),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t(a.description))))})),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},F.createElement(Ke,{label:i.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),F.createElement(O,{as:"a",className:Vu({active:"shrink",hover:"grow"}),display:"block",href:(r=(n=u==null?void 0:u.extension)==null?void 0:n.instructions)==null?void 0:r.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(k0,{color:"accentColor",size:"14",weight:"bold"},i.t("get_instructions.extension.learn_more.label")))))}function DA0({connectWallet:u,wallet:e}){var t,n,r,i;const a=w.useContext(ne);return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},F.createElement(O,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(n=(t=e==null?void 0:e.desktop)==null?void 0:t.instructions)==null?void 0:n.steps.map((o,s)=>{var f;return F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:s},F.createElement(O,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(f=Sf[o.step])==null?void 0:f.call(Sf,e)),F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},F.createElement(k0,{color:"modalText",size:"14",weight:"bold"},a.t(o.title)),F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t(o.description))))})),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},F.createElement(Ke,{label:a.t("get_instructions.desktop.connect.label"),onClick:()=>u(e)}),F.createElement(O,{as:"a",className:Vu({active:"shrink",hover:"grow"}),display:"block",href:(i=(r=e==null?void 0:e.desktop)==null?void 0:r.instructions)==null?void 0:i.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},F.createElement(k0,{color:"accentColor",size:"14",weight:"bold"},a.t("get_instructions.desktop.learn_more.label")))))}function wA0({onClose:u}){const e="rk_connect_title",t=Lg(),[n,r]=w.useState(),[i,a]=w.useState(),[o,s]=w.useState(),f=!!(i!=null&&i.qrCode)&&o,[l,c]=w.useState(!1),d=w.useContext(XE)===cc.COMPACT,{disclaimer:p}=w.useContext(p3),h=w.useContext(ne),g=w.useRef(!1),{connector:b}=w.useContext(lc),m=ud().filter(L=>L.ready||!!L.extensionDownloadUrl).sort((L,n0)=>L.groupIndex-n0.groupIndex),A=Jg0(m,L=>L.groupName),y=["Recommended","Other","Popular","More","Others"];w.useEffect(()=>{b&&!g.current&&(T("CONNECT"),v(b),g.current=!0)},[b]);const B=L=>{var n0,s0,a0;if(c(!1),L.ready){(s0=(n0=L==null?void 0:L.connect)==null?void 0:n0.call(L))==null||s0.catch(()=>{c(!0)});const K=(a0=L.desktop)==null?void 0:a0.getUri;K&&setTimeout(async()=>{const v0=await K();window.open(v0,t?"_blank":"_self")},0)}},v=L=>{var n0;if(Zg0(L.id),B(L),r(L.id),L.ready){let s0=!1;(n0=L==null?void 0:L.onConnecting)==null||n0.call(L,async()=>{var a0,K;if(s0)return;s0=!0;const v0=m.find(w0=>L.id===w0.id),_0=await((a0=v0==null?void 0:v0.qrCode)==null?void 0:a0.getUri());s(_0),setTimeout(()=>{a(v0),T("CONNECT")},_0?0:50);const O0=await(v0==null?void 0:v0.connector.getProvider()),T0=(K=O0==null?void 0:O0.signer)==null?void 0:K.connection;if(T0!=null&&T0.on&&(T0!=null&&T0.off)){const w0=()=>{k(),v(L)},k=()=>{T0.off("close",w0),T0.off("open",k)};T0.on("close",w0),T0.on("open",k)}})}else a(L),T(L!=null&&L.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT")},C=L=>{var n0;r(L);const s0=m.find(_0=>L===_0.id),a0=(n0=s0==null?void 0:s0.downloadUrls)==null?void 0:n0.qrCode,K=!!(s0!=null&&s0.desktopDownloadUrl),v0=!!(s0!=null&&s0.extensionDownloadUrl);a(s0),T(a0&&(v0||K)?"DOWNLOAD_OPTIONS":a0?"DOWNLOAD":K?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},D=()=>{r(void 0),a(void 0),s(void 0)},T=(L,n0=!1)=>{n0&&L==="GET"&&_==="GET"?D():!n0&&L==="GET"?$("GET"):!n0&&L==="CONNECT"&&$("CONNECT"),e0(L)},[_,$]=w.useState("NONE"),[u0,e0]=w.useState("NONE");let o0=null,N=null,R=null,V;w.useEffect(()=>{c(!1)},[u0,i]);const H=!!(!!(i!=null&&i.extensionDownloadUrl)&&(i!=null&&i.mobileDownloadUrl));switch(u0){case"NONE":o0=F.createElement(BD,{getWallet:()=>T("GET")});break;case"LEARN_COMPACT":o0=F.createElement(BD,{compactModeEnabled:d,getWallet:()=>T("GET")}),N=h.t("intro.title"),R="NONE";break;case"GET":o0=F.createElement(gA0,{getWalletDownload:C,compactModeEnabled:d}),N=h.t("get.title"),R=d?"LEARN_COMPACT":"NONE";break;case"CONNECT":o0=i&&F.createElement(AA0,{changeWalletStep:T,compactModeEnabled:d,connectionError:l,onClose:u,qrCodeUri:o,reconnect:B,wallet:i}),N=f&&(i.name==="WalletConnect"?h.t("connect_scan.fallback_title"):h.t("connect_scan.title",{wallet:i.name})),R=d?b?null:"NONE":null,V=d?b?()=>{}:D:()=>{};break;case"DOWNLOAD_OPTIONS":o0=i&&F.createElement(yA0,{changeWalletStep:T,wallet:i}),N=i&&h.t("get_options.short_title",{wallet:i.name}),R=b?"CONNECT":H?_:null;break;case"DOWNLOAD":o0=i&&F.createElement(vA0,{changeWalletStep:T,wallet:i}),N=i&&h.t("get_mobile.title",{wallet:i.name}),R=H?"DOWNLOAD_OPTIONS":_;break;case"INSTRUCTIONS_MOBILE":o0=i&&F.createElement(BA0,{connectWallet:v,wallet:i}),N=i&&h.t("get_options.title",{wallet:d&&i.shortName||i.name}),R="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":o0=i&&F.createElement(FA0,{wallet:i}),N=i&&h.t("get_options.title",{wallet:d&&i.shortName||i.name}),R="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":o0=i&&F.createElement(DA0,{connectWallet:v,wallet:i}),N=i&&h.t("get_options.title",{wallet:d&&i.shortName||i.name}),R="DOWNLOAD_OPTIONS";break}return F.createElement(O,{display:"flex",flexDirection:"row",style:{maxHeight:d?468:504}},(d?u0==="NONE":!0)&&F.createElement(O,{className:d?hA0:pA0,display:"flex",flexDirection:"column",marginTop:"16"},F.createElement(O,{display:"flex",justifyContent:"space-between"},d&&p&&F.createElement(O,{marginLeft:"16",width:"28"},F.createElement(uA0,{onClick:()=>T("LEARN_COMPACT")})),d&&!p&&F.createElement(O,{marginLeft:"16",width:"28"}),F.createElement(O,{marginLeft:d?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},F.createElement(k0,{as:"h1",color:"modalText",id:e,size:"18",weight:"heavy",testId:"connect-header-label"},h.t("connect.title"))),d&&F.createElement(O,{marginRight:"16"},F.createElement(Po,{onClose:u}))),F.createElement(O,{className:dA0,paddingBottom:"18"},Object.entries(A).map(([L,n0],s0)=>n0.length>0&&F.createElement(w.Fragment,{key:s0},L?F.createElement(O,{marginBottom:"8",marginTop:"16",marginX:"6"},F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"bold"},y.includes(L)?h.t(`connector_group.${L.toLowerCase()}`):L)):null,F.createElement(O,{display:"flex",flexDirection:"column",gap:"4"},n0.map(a0=>F.createElement(ER,{currentlySelected:a0.id===n,iconBackground:a0.iconBackground,iconUrl:a0.iconUrl,key:a0.id,name:a0.name,onClick:()=>v(a0),ready:a0.ready,recent:a0.recent,testId:`wallet-option-${a0.id}`})))))),d&&F.createElement(F.Fragment,null,F.createElement(O,{background:"generalBorder",height:"1",marginTop:"-1"}),p?F.createElement(O,{paddingX:"24",paddingY:"16",textAlign:"center"},F.createElement(p,{Link:qg,Text:Hg})):F.createElement(O,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},F.createElement(O,{paddingY:"4"},F.createElement(k0,{color:"modalTextSecondary",size:"14",weight:"medium"},h.t("connect.new_to_ethereum.description"))),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},F.createElement(O,{className:Vu({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>T("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},F.createElement(k0,{color:"accentColor",size:"14",weight:"bold"},h.t("connect.new_to_ethereum.learn_more.label"))))))),(d?u0!=="NONE":!0)&&F.createElement(F.Fragment,null,!d&&F.createElement(O,{background:"generalBorder",minWidth:"1",width:"1"}),F.createElement(O,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},F.createElement(O,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},F.createElement(O,{width:"28"},R&&F.createElement(O,{as:"button",className:Vu({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{R&&T(R,!0),V==null||V()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},F.createElement(lR,null))),F.createElement(O,{display:"flex",justifyContent:"center",style:{flexGrow:1}},N&&F.createElement(k0,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},N)),F.createElement(Po,{onClose:u})),F.createElement(O,{display:"flex",flexDirection:"column",style:{minHeight:d?396:432}},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},o0)))))}var xA0="_1am14412",kA0="_1am14410",_A0="_1am14413",SA0=({wallet:u})=>F.createElement("svg",{className:_A0,viewBox:"0 0 86 86",width:"86",height:"86"},F.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${160/3} ${2*160/3}`,strokeDashoffset:160,className:xA0,style:{stroke:(u==null?void 0:u.iconAccent)||"#0D3887"}}));function vR({onClose:u,wallet:e,connecting:t}){const{connect:n,connector:r,iconBackground:i,iconUrl:a,id:o,mobile:s,name:f,onConnecting:l,ready:c,shortName:E}=e,d=s==null?void 0:s.getUri,p=cR(a),h=w.useRef(!1),g=w.useContext(ne),b=w.useCallback(async()=>{var m;o==="walletConnect"&&(u==null||u()),(m=n==null?void 0:n())==null||m.catch(()=>{});let A=!1;l==null||l(async()=>{if(!A&&(A=!0,d)){const y=await d();if((r.id==="walletConnect"||r.id==="walletConnectLegacy")&&mg0({mobileUri:y,name:f}),y.startsWith("http")){const B=document.createElement("a");B.href=y,B.target="_blank",B.rel="noreferrer noopener",B.click()}else window.location.href=y}})},[r,n,d,l,u,f,o]);return w.useEffect(()=>{t&&!h.current&&(b(),h.current=!0)},[t]),F.createElement(O,{as:"button",color:c?"modalText":"modalTextSecondary",disabled:!c,fontFamily:"body",key:o,onClick:b,ref:p,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${o}`,type:"button",width:"full"},F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},F.createElement(O,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},t?F.createElement(SA0,{wallet:e}):null,F.createElement(ee,{background:i,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:a,width:"60"})),t?null:F.createElement(O,{display:"flex",flexDirection:"column",textAlign:"center"},F.createElement(k0,{as:"h2",color:e.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},F.createElement(O,{as:"span",position:"relative"},E??f,!e.ready&&" (unsupported)")),e.recent&&F.createElement(k0,{color:"accentColor",size:"12",weight:"medium"},g.t("connect.recent")))))}function TA0({onClose:u}){var e;const t="rk_connect_title",n=ud(),{disclaimer:r,learnMoreUrl:i}=w.useContext(p3);let a=null,o=null,s=!1,f=null;const[l,c]=w.useState("CONNECT"),E=w.useContext(ne),d=Xo();switch(l){case"CONNECT":{a=E.t("connect.title"),s=!0,o=F.createElement(O,null,F.createElement(O,{background:"profileForeground",className:kA0,display:"flex",paddingBottom:"20",paddingTop:"6"},F.createElement(O,{display:"flex",style:{margin:"0 auto"}},n.filter(p=>p.ready).map(p=>F.createElement(O,{key:p.id,paddingX:"20"},F.createElement(O,{width:"60"},F.createElement(vR,{onClose:u,wallet:p})))))),F.createElement(O,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},F.createElement(O,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},F.createElement(k0,{color:"modalText",size:"16",weight:"bold"},E.t("intro.title")),F.createElement(k0,{color:"modalTextSecondary",size:"16"},E.t("intro.description")))),F.createElement(O,{paddingTop:"32",paddingX:"20"},F.createElement(O,{display:"flex",gap:"14",justifyContent:"center"},F.createElement(Ke,{label:E.t("intro.get.label"),onClick:()=>c("GET"),size:"large",type:"secondary"}),F.createElement(Ke,{href:i,label:E.t("intro.learn_more.label"),size:"large",type:"secondary"}))),r&&F.createElement(O,{marginTop:"28",marginX:"32",textAlign:"center"},F.createElement(r,{Link:qg,Text:Hg})));break}case"GET":{a=E.t("get.title"),f="CONNECT";const p=(e=n==null?void 0:n.filter(h=>{var g,b,m;return((g=h.downloadUrls)==null?void 0:g.ios)||((b=h.downloadUrls)==null?void 0:b.android)||((m=h.downloadUrls)==null?void 0:m.mobile)}))==null?void 0:e.splice(0,3);o=F.createElement(O,null,F.createElement(O,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},p.map((h,g)=>{const{downloadUrls:b,iconBackground:m,iconUrl:A,name:y}=h;return!(b!=null&&b.ios)&&!(b!=null&&b.android)&&!(b!=null&&b.mobile)?null:F.createElement(O,{display:"flex",gap:"16",key:h.id,paddingX:"20",width:"full"},F.createElement(O,{style:{minHeight:48,minWidth:48}},F.createElement(ee,{background:m,borderColor:"generalBorder",borderRadius:"10",height:"48",src:A,width:"48"})),F.createElement(O,{display:"flex",flexDirection:"column",width:"full"},F.createElement(O,{alignItems:"center",display:"flex",height:"48"},F.createElement(O,{width:"full"},F.createElement(k0,{color:"modalText",size:"18",weight:"bold"},y)),F.createElement(Ke,{href:(d?b==null?void 0:b.ios:b==null?void 0:b.android)||(b==null?void 0:b.mobile),label:E.t("get.action.label"),size:"small",type:"secondary"})),gc(f),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},F.createElement(lR,null))),F.createElement(O,{marginTop:"4",textAlign:"center",width:"full"},F.createElement(k0,{as:"h1",color:"modalText",id:t,size:"20",weight:"bold"},a)),F.createElement(O,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},F.createElement(O,{style:{marginBottom:-20,marginTop:-20}},F.createElement(Po,{onClose:u}))))),F.createElement(O,{display:"flex",flexDirection:"column"},o))}var PA0=({onClose:u})=>{const{connector:e}=w.useContext(lc),t=w.useContext(ne),n=(e==null?void 0:e.name)||"";return F.createElement(O,null,F.createElement(O,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},F.createElement(O,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},F.createElement(Po,{onClose:u})),F.createElement(O,{width:"60"},F.createElement(vR,{onClose:u,wallet:e,connecting:!0})),F.createElement(O,{marginTop:"20"},F.createElement(k0,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},t.t("connect.status.connect_mobile",{wallet:n}))),F.createElement(O,{maxWidth:"full",marginTop:"8"},F.createElement(k0,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},t.t("connect.status.confirm_mobile",{wallet:n})))))};function OA0({onClose:u}){const{connector:e}=w.useContext(lc);return Ae()?e?F.createElement(PA0,{onClose:u}):F.createElement(TA0,{onClose:u}):F.createElement(wA0,{onClose:u})}function IA0({onClose:u,open:e}){const t="rk_connect_title",n=Og(),{disconnect:r}=lg(),{isConnecting:i}=At(),a=F.useCallback(()=>{u(),r()},[u,r]),o=F.useCallback(()=>{i&&r(),u()},[u,r,i]);return n==="disconnected"?F.createElement(m2,{onClose:o,open:e,titleId:t},F.createElement(b2,{bottomSheetOnMobile:!0,padding:"0",wide:!0},F.createElement(OA0,{onClose:o}))):n==="unauthenticated"?F.createElement(m2,{onClose:a,open:e,titleId:t},F.createElement(b2,{bottomSheetOnMobile:!0,padding:"0"},F.createElement(hg0,{onClose:a}))):null}function fp(){const[u,e]=w.useState(!1);return{closeModal:w.useCallback(()=>e(!1),[]),isModalOpen:u,openModal:w.useCallback(()=>e(!0),[])}}var Ec=w.createContext({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1});function NA0({children:u}){const{closeModal:e,isModalOpen:t,openModal:n}=fp(),{closeModal:r,isModalOpen:i,openModal:a}=fp(),{closeModal:o,isModalOpen:s,openModal:f}=fp(),l=Og(),{chain:c}=ga(),E=!(c!=null&&c.unsupported);function d({keepConnectModalOpen:h=!1}={}){h||e(),r(),o()}const p=ZE()==="unauthenticated";return At({onConnect:()=>d({keepConnectModalOpen:p}),onDisconnect:()=>d()}),F.createElement(Ec.Provider,{value:w.useMemo(()=>({accountModalOpen:i,chainModalOpen:s,connectModalOpen:t,openAccountModal:E&&l==="connected"?a:void 0,openChainModal:l==="connected"?f:void 0,openConnectModal:l==="disconnected"||l==="unauthenticated"?n:void 0}),[l,E,i,s,t,a,f,n])},u,F.createElement(IA0,{onClose:e,open:t}),F.createElement(qg0,{onClose:r,open:i}),F.createElement(Qg0,{onClose:o,open:s}))}function RA0(){const{accountModalOpen:u,chainModalOpen:e,connectModalOpen:t}=w.useContext(Ec);return{accountModalOpen:u,chainModalOpen:e,connectModalOpen:t}}function MA0(){const{accountModalOpen:u,openAccountModal:e}=w.useContext(Ec);return{accountModalOpen:u,openAccountModal:e}}function jA0(){const{chainModalOpen:u,openChainModal:e}=w.useContext(Ec);return{chainModalOpen:u,openChainModal:e}}function zA0(){const{connectModalOpen:u,openConnectModal:e}=w.useContext(Ec);return{connectModalOpen:u,openConnectModal:e}}var lp=()=>{};function Gg({children:u}){var e,t,n,r;const i=jb0(),{address:a}=At(),o=WN(a),s=UN(o),{data:f}=fI({address:a}),{chain:l}=ga(),c=Mb0(),E=(e=ZE())!=null?e:void 0,d=l?c[l.id]:void 0,p=(t=d==null?void 0:d.name)!=null?t:void 0,h=(n=d==null?void 0:d.iconUrl)!=null?n:void 0,g=(r=d==null?void 0:d.iconBackground)!=null?r:void 0,b=Ng(h),m=w.useContext(zg),A=VN().some(({status:$})=>$==="pending")&&m,y=f?`${iR(parseFloat(f.formatted))} ${f.symbol}`:void 0,{openConnectModal:B}=zA0(),{openChainModal:v}=jA0(),{openAccountModal:C}=MA0(),{accountModalOpen:D,chainModalOpen:T,connectModalOpen:_}=RA0();return F.createElement(F.Fragment,null,u({account:a?{address:a,balanceDecimals:f==null?void 0:f.decimals,balanceFormatted:f==null?void 0:f.formatted,balanceSymbol:f==null?void 0:f.symbol,displayBalance:y,displayName:o?oR(o):aR(a),ensAvatar:s??void 0,ensName:o??void 0,hasPendingTransactions:A}:void 0,accountModalOpen:D,authenticationStatus:E,chain:l?{hasIcon:!!h,iconBackground:g,iconUrl:b,id:l.id,name:p??l.name,unsupported:l.unsupported}:void 0,chainModalOpen:T,connectModalOpen:_,mounted:i,openAccountModal:C??lp,openChainModal:v??lp,openConnectModal:B??lp}))}Gg.displayName="ConnectButton.Custom";var V3={accountStatus:"full",chainStatus:{largeScreen:"full",smallScreen:"icon"},label:"Connect Wallet",showBalance:{largeScreen:!0,smallScreen:!1}};function Vg({accountStatus:u=V3.accountStatus,chainStatus:e=V3.chainStatus,label:t=V3.label,showBalance:n=V3.showBalance}){const r=fc(),i=Og(),a=w.useContext(ne);return F.createElement(Gg,null,({account:o,chain:s,mounted:f,openAccountModal:l,openChainModal:c,openConnectModal:E})=>{var d,p,h;const g=f&&i!=="loading",b=(d=s==null?void 0:s.unsupported)!=null?d:!1;return F.createElement(O,{display:"flex",gap:"12",...!g&&{"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",userSelect:"none"}}},g&&o&&i==="connected"?F.createElement(F.Fragment,null,s&&(r.length>1||b)&&F.createElement(O,{alignItems:"center","aria-label":"Chain Selector",as:"button",background:b?"connectButtonBackgroundError":"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:Vu({active:"shrink",hover:"grow"}),color:b?"connectButtonTextError":"connectButtonText",display:ds(e,m=>m==="none"?"none":"flex"),fontFamily:"body",fontWeight:"bold",gap:"6",key:b?"unsupported":"supported",onClick:c,paddingX:"10",paddingY:"8",testId:b?"wrong-network-button":"chain-button",transition:"default",type:"button"},b?F.createElement(O,{alignItems:"center",display:"flex",height:"24",paddingX:"4"},"Wrong network"):F.createElement(O,{alignItems:"center",display:"flex",gap:"6"},s.hasIcon?F.createElement(O,{display:ds(e,m=>m==="full"||m==="icon"?"block":"none"),height:"24",width:"24"},F.createElement(ee,{alt:(p=s.name)!=null?p:"Chain icon",background:s.iconBackground,borderRadius:"full",height:"24",src:s.iconUrl,width:"24"})):null,F.createElement(O,{display:ds(e,m=>m==="icon"&&!s.iconUrl||m==="full"||m==="name"?"block":"none")},(h=s.name)!=null?h:s.id)),F.createElement(KF,null)),!b&&F.createElement(O,{alignItems:"center",as:"button",background:"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:Vu({active:"shrink",hover:"grow"}),color:"connectButtonText",display:"flex",fontFamily:"body",fontWeight:"bold",onClick:l,testId:"account-button",transition:"default",type:"button"},o.displayBalance&&F.createElement(O,{display:ds(n,m=>m?"block":"none"),padding:"8",paddingLeft:"12"},o.displayBalance),F.createElement(O,{background:iC0(n)[Ae()?"smallScreen":"largeScreen"]?"connectButtonInnerBackground":"connectButtonBackground",borderColor:"connectButtonBackground",borderRadius:"connectButton",borderStyle:"solid",borderWidth:"2",color:"connectButtonText",fontFamily:"body",fontWeight:"bold",paddingX:"8",paddingY:"6",transition:"default"},F.createElement(O,{alignItems:"center",display:"flex",gap:"6",height:"24"},F.createElement(O,{display:ds(u,m=>m==="full"||m==="avatar"?"block":"none")},F.createElement(LN,{address:o.address,imageUrl:o.ensAvatar,loading:o.hasPendingTransactions,size:24})),F.createElement(O,{alignItems:"center",display:"flex",gap:"6"},F.createElement(O,{display:ds(u,m=>m==="full"||m==="address"?"block":"none")},o.displayName),F.createElement(KF,null)))))):F.createElement(O,{as:"button",background:"accentColor",borderRadius:"connectButton",boxShadow:"connectButton",className:Vu({active:"shrink",hover:"grow"}),color:"accentColorForeground",fontFamily:"body",fontWeight:"bold",height:"40",key:"connect",onClick:E,paddingX:"14",testId:"connect-button",transition:"default",type:"button"},f&&t==="Connect Wallet"?a.t("connect_wallet.label"):t))})}Vg.__defaultProps=V3;Vg.Custom=Gg;var Kg={},ed={},$0={},BR={};(function(u){Object.defineProperty(u,"__esModule",{value:!0});function e(o,s){var f=o>>>16&65535,l=o&65535,c=s>>>16&65535,E=s&65535;return l*E+(f*E+l*c<<16>>>0)|0}u.mul=Math.imul||e;function t(o,s){return o+s|0}u.add=t;function n(o,s){return o-s|0}u.sub=n;function r(o,s){return o<>>32-s}u.rotl=r;function i(o,s){return o<<32-s|o>>>s}u.rotr=i;function a(o){return typeof o=="number"&&isFinite(o)&&Math.floor(o)===o}u.isInteger=Number.isInteger||a,u.MAX_SAFE_INTEGER=9007199254740991,u.isSafeInteger=function(o){return u.isInteger(o)&&o>=-u.MAX_SAFE_INTEGER&&o<=u.MAX_SAFE_INTEGER}})(BR);Object.defineProperty($0,"__esModule",{value:!0});var FR=BR;function LA0(u,e){return e===void 0&&(e=0),(u[e+0]<<8|u[e+1])<<16>>16}$0.readInt16BE=LA0;function $A0(u,e){return e===void 0&&(e=0),(u[e+0]<<8|u[e+1])>>>0}$0.readUint16BE=$A0;function UA0(u,e){return e===void 0&&(e=0),(u[e+1]<<8|u[e])<<16>>16}$0.readInt16LE=UA0;function WA0(u,e){return e===void 0&&(e=0),(u[e+1]<<8|u[e])>>>0}$0.readUint16LE=WA0;function DR(u,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=u>>>8,e[t+1]=u>>>0,e}$0.writeUint16BE=DR;$0.writeInt16BE=DR;function wR(u,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=u>>>0,e[t+1]=u>>>8,e}$0.writeUint16LE=wR;$0.writeInt16LE=wR;function TC(u,e){return e===void 0&&(e=0),u[e]<<24|u[e+1]<<16|u[e+2]<<8|u[e+3]}$0.readInt32BE=TC;function PC(u,e){return e===void 0&&(e=0),(u[e]<<24|u[e+1]<<16|u[e+2]<<8|u[e+3])>>>0}$0.readUint32BE=PC;function OC(u,e){return e===void 0&&(e=0),u[e+3]<<24|u[e+2]<<16|u[e+1]<<8|u[e]}$0.readInt32LE=OC;function IC(u,e){return e===void 0&&(e=0),(u[e+3]<<24|u[e+2]<<16|u[e+1]<<8|u[e])>>>0}$0.readUint32LE=IC;function g2(u,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=u>>>24,e[t+1]=u>>>16,e[t+2]=u>>>8,e[t+3]=u>>>0,e}$0.writeUint32BE=g2;$0.writeInt32BE=g2;function A2(u,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=u>>>0,e[t+1]=u>>>8,e[t+2]=u>>>16,e[t+3]=u>>>24,e}$0.writeUint32LE=A2;$0.writeInt32LE=A2;function qA0(u,e){e===void 0&&(e=0);var t=TC(u,e),n=TC(u,e+4);return t*4294967296+n-(n>>31)*4294967296}$0.readInt64BE=qA0;function HA0(u,e){e===void 0&&(e=0);var t=PC(u,e),n=PC(u,e+4);return t*4294967296+n}$0.readUint64BE=HA0;function GA0(u,e){e===void 0&&(e=0);var t=OC(u,e),n=OC(u,e+4);return n*4294967296+t-(t>>31)*4294967296}$0.readInt64LE=GA0;function VA0(u,e){e===void 0&&(e=0);var t=IC(u,e),n=IC(u,e+4);return n*4294967296+t}$0.readUint64LE=VA0;function xR(u,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),g2(u/4294967296>>>0,e,t),g2(u>>>0,e,t+4),e}$0.writeUint64BE=xR;$0.writeInt64BE=xR;function kR(u,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),A2(u>>>0,e,t),A2(u/4294967296>>>0,e,t+4),e}$0.writeUint64LE=kR;$0.writeInt64LE=kR;function KA0(u,e,t){if(t===void 0&&(t=0),u%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(u/8>e.length-t)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,r=1,i=u/8+t-1;i>=t;i--)n+=e[i]*r,r*=256;return n}$0.readUintBE=KA0;function QA0(u,e,t){if(t===void 0&&(t=0),u%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(u/8>e.length-t)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,r=1,i=t;i=n;i--)t[i]=e/r&255,r*=256;return t}$0.writeUintBE=JA0;function YA0(u,e,t,n){if(t===void 0&&(t=new Uint8Array(u/8)),n===void 0&&(n=0),u%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!FR.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var r=1,i=n;i>>16|N<<16,$=$+N|0,C^=$,C=C>>>20|C<<12,y=y+D|0,R^=y,R=R>>>16|R<<16,u0=u0+R|0,D^=u0,D=D>>>20|D<<12,B=B+T|0,V^=B,V=V>>>16|V<<16,e0=e0+V|0,T^=e0,T=T>>>20|T<<12,v=v+_|0,G^=v,G=G>>>16|G<<16,o0=o0+G|0,_^=o0,_=_>>>20|_<<12,B=B+T|0,V^=B,V=V>>>24|V<<8,e0=e0+V|0,T^=e0,T=T>>>25|T<<7,v=v+_|0,G^=v,G=G>>>24|G<<8,o0=o0+G|0,_^=o0,_=_>>>25|_<<7,y=y+D|0,R^=y,R=R>>>24|R<<8,u0=u0+R|0,D^=u0,D=D>>>25|D<<7,A=A+C|0,N^=A,N=N>>>24|N<<8,$=$+N|0,C^=$,C=C>>>25|C<<7,A=A+D|0,G^=A,G=G>>>16|G<<16,e0=e0+G|0,D^=e0,D=D>>>20|D<<12,y=y+T|0,N^=y,N=N>>>16|N<<16,o0=o0+N|0,T^=o0,T=T>>>20|T<<12,B=B+_|0,R^=B,R=R>>>16|R<<16,$=$+R|0,_^=$,_=_>>>20|_<<12,v=v+C|0,V^=v,V=V>>>16|V<<16,u0=u0+V|0,C^=u0,C=C>>>20|C<<12,B=B+_|0,R^=B,R=R>>>24|R<<8,$=$+R|0,_^=$,_=_>>>25|_<<7,v=v+C|0,V^=v,V=V>>>24|V<<8,u0=u0+V|0,C^=u0,C=C>>>25|C<<7,y=y+T|0,N^=y,N=N>>>24|N<<8,o0=o0+N|0,T^=o0,T=T>>>25|T<<7,A=A+D|0,G^=A,G=G>>>24|G<<8,e0=e0+G|0,D^=e0,D=D>>>25|D<<7;Fe.writeUint32LE(A+n|0,u,0),Fe.writeUint32LE(y+r|0,u,4),Fe.writeUint32LE(B+i|0,u,8),Fe.writeUint32LE(v+a|0,u,12),Fe.writeUint32LE(C+o|0,u,16),Fe.writeUint32LE(D+s|0,u,20),Fe.writeUint32LE(T+f|0,u,24),Fe.writeUint32LE(_+l|0,u,28),Fe.writeUint32LE($+c|0,u,32),Fe.writeUint32LE(u0+E|0,u,36),Fe.writeUint32LE(e0+d|0,u,40),Fe.writeUint32LE(o0+p|0,u,44),Fe.writeUint32LE(N+h|0,u,48),Fe.writeUint32LE(R+g|0,u,52),Fe.writeUint32LE(V+b|0,u,56),Fe.writeUint32LE(G+m|0,u,60)}function _R(u,e,t,n,r){if(r===void 0&&(r=0),u.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}var SR={},va={};Object.defineProperty(va,"__esModule",{value:!0});function cy0(u,e,t){return~(u-1)&e|u-1&t}va.select=cy0;function Ey0(u,e){return(u|0)-(e|0)-1>>>31&1}va.lessOrEqual=Ey0;function TR(u,e){if(u.length!==e.length)return 0;for(var t=0,n=0;n>>8}va.compare=TR;function dy0(u,e){return u.length===0||e.length===0?!1:TR(u,e)!==0}va.equal=dy0;(function(u){Object.defineProperty(u,"__esModule",{value:!0});var e=va,t=Un;u.DIGEST_LENGTH=16;var n=function(){function a(o){this.digestLength=u.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var s=o[0]|o[1]<<8;this._r[0]=s&8191;var f=o[2]|o[3]<<8;this._r[1]=(s>>>13|f<<3)&8191;var l=o[4]|o[5]<<8;this._r[2]=(f>>>10|l<<6)&7939;var c=o[6]|o[7]<<8;this._r[3]=(l>>>7|c<<9)&8191;var E=o[8]|o[9]<<8;this._r[4]=(c>>>4|E<<12)&255,this._r[5]=E>>>1&8190;var d=o[10]|o[11]<<8;this._r[6]=(E>>>14|d<<2)&8191;var p=o[12]|o[13]<<8;this._r[7]=(d>>>11|p<<5)&8065;var h=o[14]|o[15]<<8;this._r[8]=(p>>>8|h<<8)&8191,this._r[9]=h>>>5&127,this._pad[0]=o[16]|o[17]<<8,this._pad[1]=o[18]|o[19]<<8,this._pad[2]=o[20]|o[21]<<8,this._pad[3]=o[22]|o[23]<<8,this._pad[4]=o[24]|o[25]<<8,this._pad[5]=o[26]|o[27]<<8,this._pad[6]=o[28]|o[29]<<8,this._pad[7]=o[30]|o[31]<<8}return a.prototype._blocks=function(o,s,f){for(var l=this._fin?0:2048,c=this._h[0],E=this._h[1],d=this._h[2],p=this._h[3],h=this._h[4],g=this._h[5],b=this._h[6],m=this._h[7],A=this._h[8],y=this._h[9],B=this._r[0],v=this._r[1],C=this._r[2],D=this._r[3],T=this._r[4],_=this._r[5],$=this._r[6],u0=this._r[7],e0=this._r[8],o0=this._r[9];f>=16;){var N=o[s+0]|o[s+1]<<8;c+=N&8191;var R=o[s+2]|o[s+3]<<8;E+=(N>>>13|R<<3)&8191;var V=o[s+4]|o[s+5]<<8;d+=(R>>>10|V<<6)&8191;var G=o[s+6]|o[s+7]<<8;p+=(V>>>7|G<<9)&8191;var H=o[s+8]|o[s+9]<<8;h+=(G>>>4|H<<12)&8191,g+=H>>>1&8191;var L=o[s+10]|o[s+11]<<8;b+=(H>>>14|L<<2)&8191;var n0=o[s+12]|o[s+13]<<8;m+=(L>>>11|n0<<5)&8191;var s0=o[s+14]|o[s+15]<<8;A+=(n0>>>8|s0<<8)&8191,y+=s0>>>5|l;var a0=0,K=a0;K+=c*B,K+=E*(5*o0),K+=d*(5*e0),K+=p*(5*u0),K+=h*(5*$),a0=K>>>13,K&=8191,K+=g*(5*_),K+=b*(5*T),K+=m*(5*D),K+=A*(5*C),K+=y*(5*v),a0+=K>>>13,K&=8191;var v0=a0;v0+=c*v,v0+=E*B,v0+=d*(5*o0),v0+=p*(5*e0),v0+=h*(5*u0),a0=v0>>>13,v0&=8191,v0+=g*(5*$),v0+=b*(5*_),v0+=m*(5*T),v0+=A*(5*D),v0+=y*(5*C),a0+=v0>>>13,v0&=8191;var _0=a0;_0+=c*C,_0+=E*v,_0+=d*B,_0+=p*(5*o0),_0+=h*(5*e0),a0=_0>>>13,_0&=8191,_0+=g*(5*u0),_0+=b*(5*$),_0+=m*(5*_),_0+=A*(5*T),_0+=y*(5*D),a0+=_0>>>13,_0&=8191;var O0=a0;O0+=c*D,O0+=E*C,O0+=d*v,O0+=p*B,O0+=h*(5*o0),a0=O0>>>13,O0&=8191,O0+=g*(5*e0),O0+=b*(5*u0),O0+=m*(5*$),O0+=A*(5*_),O0+=y*(5*T),a0+=O0>>>13,O0&=8191;var T0=a0;T0+=c*T,T0+=E*D,T0+=d*C,T0+=p*v,T0+=h*B,a0=T0>>>13,T0&=8191,T0+=g*(5*o0),T0+=b*(5*e0),T0+=m*(5*u0),T0+=A*(5*$),T0+=y*(5*_),a0+=T0>>>13,T0&=8191;var w0=a0;w0+=c*_,w0+=E*T,w0+=d*D,w0+=p*C,w0+=h*v,a0=w0>>>13,w0&=8191,w0+=g*B,w0+=b*(5*o0),w0+=m*(5*e0),w0+=A*(5*u0),w0+=y*(5*$),a0+=w0>>>13,w0&=8191;var k=a0;k+=c*$,k+=E*_,k+=d*T,k+=p*D,k+=h*C,a0=k>>>13,k&=8191,k+=g*v,k+=b*B,k+=m*(5*o0),k+=A*(5*e0),k+=y*(5*u0),a0+=k>>>13,k&=8191;var S=a0;S+=c*u0,S+=E*$,S+=d*_,S+=p*T,S+=h*D,a0=S>>>13,S&=8191,S+=g*C,S+=b*v,S+=m*B,S+=A*(5*o0),S+=y*(5*e0),a0+=S>>>13,S&=8191;var P=a0;P+=c*e0,P+=E*u0,P+=d*$,P+=p*_,P+=h*T,a0=P>>>13,P&=8191,P+=g*D,P+=b*C,P+=m*v,P+=A*B,P+=y*(5*o0),a0+=P>>>13,P&=8191;var z=a0;z+=c*o0,z+=E*e0,z+=d*u0,z+=p*$,z+=h*_,a0=z>>>13,z&=8191,z+=g*T,z+=b*D,z+=m*C,z+=A*v,z+=y*B,a0+=z>>>13,z&=8191,a0=(a0<<2)+a0|0,a0=a0+K|0,K=a0&8191,a0=a0>>>13,v0+=a0,c=K,E=v0,d=_0,p=O0,h=T0,g=w0,b=k,m=S,A=P,y=z,s+=16,f-=16}this._h[0]=c,this._h[1]=E,this._h[2]=d,this._h[3]=p,this._h[4]=h,this._h[5]=g,this._h[6]=b,this._h[7]=m,this._h[8]=A,this._h[9]=y},a.prototype.finish=function(o,s){s===void 0&&(s=0);var f=new Uint16Array(10),l,c,E,d;if(this._leftover){for(d=this._leftover,this._buffer[d++]=1;d<16;d++)this._buffer[d]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(l=this._h[1]>>>13,this._h[1]&=8191,d=2;d<10;d++)this._h[d]+=l,l=this._h[d]>>>13,this._h[d]&=8191;for(this._h[0]+=l*5,l=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=l,l=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=l,f[0]=this._h[0]+5,l=f[0]>>>13,f[0]&=8191,d=1;d<10;d++)f[d]=this._h[d]+l,l=f[d]>>>13,f[d]&=8191;for(f[9]-=8192,c=(l^1)-1,d=0;d<10;d++)f[d]&=c;for(c=~c,d=0;d<10;d++)this._h[d]=this._h[d]&c|f[d];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,E=this._h[0]+this._pad[0],this._h[0]=E&65535,d=1;d<8;d++)E=(this._h[d]+this._pad[d]|0)+(E>>>16)|0,this._h[d]=E&65535;return o[s+0]=this._h[0]>>>0,o[s+1]=this._h[0]>>>8,o[s+2]=this._h[1]>>>0,o[s+3]=this._h[1]>>>8,o[s+4]=this._h[2]>>>0,o[s+5]=this._h[2]>>>8,o[s+6]=this._h[3]>>>0,o[s+7]=this._h[3]>>>8,o[s+8]=this._h[4]>>>0,o[s+9]=this._h[4]>>>8,o[s+10]=this._h[5]>>>0,o[s+11]=this._h[5]>>>8,o[s+12]=this._h[6]>>>0,o[s+13]=this._h[6]>>>8,o[s+14]=this._h[7]>>>0,o[s+15]=this._h[7]>>>8,this._finished=!0,this},a.prototype.update=function(o){var s=0,f=o.length,l;if(this._leftover){l=16-this._leftover,l>f&&(l=f);for(var c=0;c=16&&(l=f-f%16,this._blocks(o,s,l),s+=l,f-=l),f){for(var c=0;c16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var d=new Uint8Array(16);d.set(f,d.length-f.length);var p=new Uint8Array(32);e.stream(this._key,d,p,4);var h=l.length+this.tagLength,g;if(E){if(E.length!==h)throw new Error("ChaCha20Poly1305: incorrect destination length");g=E}else g=new Uint8Array(h);return e.streamXOR(this._key,d,l,g,4),this._authenticate(g.subarray(g.length-this.tagLength,g.length),p,g.subarray(0,g.length-this.tagLength),c),n.wipe(d),g},s.prototype.open=function(f,l,c,E){if(f.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(l.length0&&d.update(a.subarray(E.length%16))),d.update(c),c.length%16>0&&d.update(a.subarray(c.length%16));var p=new Uint8Array(8);E&&r.writeUint64LE(E.length,p),d.update(p),r.writeUint64LE(c.length,p),d.update(p);for(var h=d.digest(),g=0;gthis.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var r=0;r1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},u.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n256)throw new Error("randomString charset is too long");let E="";const d=l.length,p=256-256%d;for(;f>0;){const h=r(Math.ceil(f*256/p),c);for(let g=0;g0;g++){const b=h[g];b0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=s[l++],f--;this._bufferLength===this.blockSize&&(i(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(f>=this.blockSize&&(l=i(this._temp,this._state,s,l,f),f%=this.blockSize);f>0;)this._buffer[this._bufferLength++]=s[l++],f--;return this},o.prototype.finish=function(s){if(!this._finished){var f=this._bytesHashed,l=this._bufferLength,c=f/536870912|0,E=f<<3,d=f%64<56?64:128;this._buffer[l]=128;for(var p=l+1;p0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},o.prototype.restoreState=function(s){return this._state.set(s.state),this._bufferLength=s.bufferLength,s.buffer&&this._buffer.set(s.buffer),this._bytesHashed=s.bytesHashed,this._finished=!1,this},o.prototype.cleanSavedState=function(s){t.wipe(s.state),s.buffer&&t.wipe(s.buffer),s.bufferLength=0,s.bytesHashed=0},o}();u.SHA256=n;var r=new Int32Array([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]);function i(o,s,f,l,c){for(;c>=64;){for(var E=s[0],d=s[1],p=s[2],h=s[3],g=s[4],b=s[5],m=s[6],A=s[7],y=0;y<16;y++){var B=l+y*4;o[y]=e.readUint32BE(f,B)}for(var y=16;y<64;y++){var v=o[y-2],C=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10;v=o[y-15];var D=(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3;o[y]=(C+o[y-7]|0)+(D+o[y-16]|0)}for(var y=0;y<64;y++){var C=(((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&b^~g&m)|0)+(A+(r[y]+o[y]|0)|0)|0,D=((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+(E&d^E&p^d&p)|0;A=m,m=b,b=g,g=h+C|0,h=p,p=d,d=E,E=C+D|0}s[0]+=E,s[1]+=d,s[2]+=p,s[3]+=h,s[4]+=g,s[5]+=b,s[6]+=m,s[7]+=A,l+=64,c-=64}return l}function a(o){var s=new n;s.update(o);var f=s.digest();return s.clean(),f}u.hash=a})(ad);var Jg={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.sharedKey=u.generateKeyPair=u.generateKeyPairFromSeed=u.scalarMultBase=u.scalarMult=u.SHARED_KEY_LENGTH=u.SECRET_KEY_LENGTH=u.PUBLIC_KEY_LENGTH=void 0;const e=td,t=Un;u.PUBLIC_KEY_LENGTH=32,u.SECRET_KEY_LENGTH=32,u.SHARED_KEY_LENGTH=32;function n(y){const B=new Float64Array(16);if(y)for(let v=0;v>16&1),v[_-1]&=65535;v[15]=C[15]-32767-(v[14]>>16&1);const T=v[15]>>16&1;v[14]&=65535,o(C,v,1-T)}for(let D=0;D<16;D++)y[2*D]=C[D]&255,y[2*D+1]=C[D]>>8}function f(y,B){for(let v=0;v<16;v++)y[v]=B[2*v]+(B[2*v+1]<<8);y[15]&=32767}function l(y,B,v){for(let C=0;C<16;C++)y[C]=B[C]+v[C]}function c(y,B,v){for(let C=0;C<16;C++)y[C]=B[C]-v[C]}function E(y,B,v){let C,D,T=0,_=0,$=0,u0=0,e0=0,o0=0,N=0,R=0,V=0,G=0,H=0,L=0,n0=0,s0=0,a0=0,K=0,v0=0,_0=0,O0=0,T0=0,w0=0,k=0,S=0,P=0,z=0,M=0,q=0,J=0,j=0,U=0,Y=0,W=v[0],t0=v[1],p0=v[2],m0=v[3],P0=v[4],C0=v[5],B0=v[6],E0=v[7],g0=v[8],h0=v[9],G0=v[10],M0=v[11],y0=v[12],U0=v[13],Eu=v[14],Z0=v[15];C=B[0],T+=C*W,_+=C*t0,$+=C*p0,u0+=C*m0,e0+=C*P0,o0+=C*C0,N+=C*B0,R+=C*E0,V+=C*g0,G+=C*h0,H+=C*G0,L+=C*M0,n0+=C*y0,s0+=C*U0,a0+=C*Eu,K+=C*Z0,C=B[1],_+=C*W,$+=C*t0,u0+=C*p0,e0+=C*m0,o0+=C*P0,N+=C*C0,R+=C*B0,V+=C*E0,G+=C*g0,H+=C*h0,L+=C*G0,n0+=C*M0,s0+=C*y0,a0+=C*U0,K+=C*Eu,v0+=C*Z0,C=B[2],$+=C*W,u0+=C*t0,e0+=C*p0,o0+=C*m0,N+=C*P0,R+=C*C0,V+=C*B0,G+=C*E0,H+=C*g0,L+=C*h0,n0+=C*G0,s0+=C*M0,a0+=C*y0,K+=C*U0,v0+=C*Eu,_0+=C*Z0,C=B[3],u0+=C*W,e0+=C*t0,o0+=C*p0,N+=C*m0,R+=C*P0,V+=C*C0,G+=C*B0,H+=C*E0,L+=C*g0,n0+=C*h0,s0+=C*G0,a0+=C*M0,K+=C*y0,v0+=C*U0,_0+=C*Eu,O0+=C*Z0,C=B[4],e0+=C*W,o0+=C*t0,N+=C*p0,R+=C*m0,V+=C*P0,G+=C*C0,H+=C*B0,L+=C*E0,n0+=C*g0,s0+=C*h0,a0+=C*G0,K+=C*M0,v0+=C*y0,_0+=C*U0,O0+=C*Eu,T0+=C*Z0,C=B[5],o0+=C*W,N+=C*t0,R+=C*p0,V+=C*m0,G+=C*P0,H+=C*C0,L+=C*B0,n0+=C*E0,s0+=C*g0,a0+=C*h0,K+=C*G0,v0+=C*M0,_0+=C*y0,O0+=C*U0,T0+=C*Eu,w0+=C*Z0,C=B[6],N+=C*W,R+=C*t0,V+=C*p0,G+=C*m0,H+=C*P0,L+=C*C0,n0+=C*B0,s0+=C*E0,a0+=C*g0,K+=C*h0,v0+=C*G0,_0+=C*M0,O0+=C*y0,T0+=C*U0,w0+=C*Eu,k+=C*Z0,C=B[7],R+=C*W,V+=C*t0,G+=C*p0,H+=C*m0,L+=C*P0,n0+=C*C0,s0+=C*B0,a0+=C*E0,K+=C*g0,v0+=C*h0,_0+=C*G0,O0+=C*M0,T0+=C*y0,w0+=C*U0,k+=C*Eu,S+=C*Z0,C=B[8],V+=C*W,G+=C*t0,H+=C*p0,L+=C*m0,n0+=C*P0,s0+=C*C0,a0+=C*B0,K+=C*E0,v0+=C*g0,_0+=C*h0,O0+=C*G0,T0+=C*M0,w0+=C*y0,k+=C*U0,S+=C*Eu,P+=C*Z0,C=B[9],G+=C*W,H+=C*t0,L+=C*p0,n0+=C*m0,s0+=C*P0,a0+=C*C0,K+=C*B0,v0+=C*E0,_0+=C*g0,O0+=C*h0,T0+=C*G0,w0+=C*M0,k+=C*y0,S+=C*U0,P+=C*Eu,z+=C*Z0,C=B[10],H+=C*W,L+=C*t0,n0+=C*p0,s0+=C*m0,a0+=C*P0,K+=C*C0,v0+=C*B0,_0+=C*E0,O0+=C*g0,T0+=C*h0,w0+=C*G0,k+=C*M0,S+=C*y0,P+=C*U0,z+=C*Eu,M+=C*Z0,C=B[11],L+=C*W,n0+=C*t0,s0+=C*p0,a0+=C*m0,K+=C*P0,v0+=C*C0,_0+=C*B0,O0+=C*E0,T0+=C*g0,w0+=C*h0,k+=C*G0,S+=C*M0,P+=C*y0,z+=C*U0,M+=C*Eu,q+=C*Z0,C=B[12],n0+=C*W,s0+=C*t0,a0+=C*p0,K+=C*m0,v0+=C*P0,_0+=C*C0,O0+=C*B0,T0+=C*E0,w0+=C*g0,k+=C*h0,S+=C*G0,P+=C*M0,z+=C*y0,M+=C*U0,q+=C*Eu,J+=C*Z0,C=B[13],s0+=C*W,a0+=C*t0,K+=C*p0,v0+=C*m0,_0+=C*P0,O0+=C*C0,T0+=C*B0,w0+=C*E0,k+=C*g0,S+=C*h0,P+=C*G0,z+=C*M0,M+=C*y0,q+=C*U0,J+=C*Eu,j+=C*Z0,C=B[14],a0+=C*W,K+=C*t0,v0+=C*p0,_0+=C*m0,O0+=C*P0,T0+=C*C0,w0+=C*B0,k+=C*E0,S+=C*g0,P+=C*h0,z+=C*G0,M+=C*M0,q+=C*y0,J+=C*U0,j+=C*Eu,U+=C*Z0,C=B[15],K+=C*W,v0+=C*t0,_0+=C*p0,O0+=C*m0,T0+=C*P0,w0+=C*C0,k+=C*B0,S+=C*E0,P+=C*g0,z+=C*h0,M+=C*G0,q+=C*M0,J+=C*y0,j+=C*U0,U+=C*Eu,Y+=C*Z0,T+=38*v0,_+=38*_0,$+=38*O0,u0+=38*T0,e0+=38*w0,o0+=38*k,N+=38*S,R+=38*P,V+=38*z,G+=38*M,H+=38*q,L+=38*J,n0+=38*j,s0+=38*U,a0+=38*Y,D=1,C=T+D+65535,D=Math.floor(C/65536),T=C-D*65536,C=_+D+65535,D=Math.floor(C/65536),_=C-D*65536,C=$+D+65535,D=Math.floor(C/65536),$=C-D*65536,C=u0+D+65535,D=Math.floor(C/65536),u0=C-D*65536,C=e0+D+65535,D=Math.floor(C/65536),e0=C-D*65536,C=o0+D+65535,D=Math.floor(C/65536),o0=C-D*65536,C=N+D+65535,D=Math.floor(C/65536),N=C-D*65536,C=R+D+65535,D=Math.floor(C/65536),R=C-D*65536,C=V+D+65535,D=Math.floor(C/65536),V=C-D*65536,C=G+D+65535,D=Math.floor(C/65536),G=C-D*65536,C=H+D+65535,D=Math.floor(C/65536),H=C-D*65536,C=L+D+65535,D=Math.floor(C/65536),L=C-D*65536,C=n0+D+65535,D=Math.floor(C/65536),n0=C-D*65536,C=s0+D+65535,D=Math.floor(C/65536),s0=C-D*65536,C=a0+D+65535,D=Math.floor(C/65536),a0=C-D*65536,C=K+D+65535,D=Math.floor(C/65536),K=C-D*65536,T+=D-1+37*(D-1),D=1,C=T+D+65535,D=Math.floor(C/65536),T=C-D*65536,C=_+D+65535,D=Math.floor(C/65536),_=C-D*65536,C=$+D+65535,D=Math.floor(C/65536),$=C-D*65536,C=u0+D+65535,D=Math.floor(C/65536),u0=C-D*65536,C=e0+D+65535,D=Math.floor(C/65536),e0=C-D*65536,C=o0+D+65535,D=Math.floor(C/65536),o0=C-D*65536,C=N+D+65535,D=Math.floor(C/65536),N=C-D*65536,C=R+D+65535,D=Math.floor(C/65536),R=C-D*65536,C=V+D+65535,D=Math.floor(C/65536),V=C-D*65536,C=G+D+65535,D=Math.floor(C/65536),G=C-D*65536,C=H+D+65535,D=Math.floor(C/65536),H=C-D*65536,C=L+D+65535,D=Math.floor(C/65536),L=C-D*65536,C=n0+D+65535,D=Math.floor(C/65536),n0=C-D*65536,C=s0+D+65535,D=Math.floor(C/65536),s0=C-D*65536,C=a0+D+65535,D=Math.floor(C/65536),a0=C-D*65536,C=K+D+65535,D=Math.floor(C/65536),K=C-D*65536,T+=D-1+37*(D-1),y[0]=T,y[1]=_,y[2]=$,y[3]=u0,y[4]=e0,y[5]=o0,y[6]=N,y[7]=R,y[8]=V,y[9]=G,y[10]=H,y[11]=L,y[12]=n0,y[13]=s0,y[14]=a0,y[15]=K}function d(y,B){E(y,B,B)}function p(y,B){const v=n();for(let C=0;C<16;C++)v[C]=B[C];for(let C=253;C>=0;C--)d(v,v),C!==2&&C!==4&&E(v,v,B);for(let C=0;C<16;C++)y[C]=v[C]}function h(y,B){const v=new Uint8Array(32),C=new Float64Array(80),D=n(),T=n(),_=n(),$=n(),u0=n(),e0=n();for(let V=0;V<31;V++)v[V]=y[V];v[31]=y[31]&127|64,v[0]&=248,f(C,B);for(let V=0;V<16;V++)T[V]=C[V];D[0]=$[0]=1;for(let V=254;V>=0;--V){const G=v[V>>>3]>>>(V&7)&1;o(D,T,G),o(_,$,G),l(u0,D,_),c(D,D,_),l(_,T,$),c(T,T,$),d($,u0),d(e0,D),E(D,_,D),E(_,T,u0),l(u0,D,_),c(D,D,_),d(T,D),c(_,$,e0),E(D,_,i),l(D,D,$),E(_,_,D),E(D,$,e0),E($,T,C),d(T,u0),o(D,T,G),o(_,$,G)}for(let V=0;V<16;V++)C[V+16]=D[V],C[V+32]=_[V],C[V+48]=T[V],C[V+64]=$[V];const o0=C.subarray(32),N=C.subarray(16);p(o0,o0),E(N,N,o0);const R=new Uint8Array(32);return s(R,N),R}u.scalarMult=h;function g(y){return h(y,r)}u.scalarMultBase=g;function b(y){if(y.length!==u.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${u.SECRET_KEY_LENGTH} bytes`);const B=new Uint8Array(y);return{publicKey:g(B),secretKey:B}}u.generateKeyPairFromSeed=b;function m(y){const B=(0,e.randomBytes)(32,y),v=b(B);return(0,t.wipe)(B),v}u.generateKeyPair=m;function A(y,B,v=!1){if(y.length!==u.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(B.length!==u.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const C=h(y,B);if(v){let D=0;for(let T=0;Tr+i.length,0));const t=IR(e);let n=0;for(const r of u)t.set(r,n),n+=r.length;return Yg(t)}function Sy0(u,e){if(u.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,y=new Uint8Array(A);b!==m;){for(var B=p[b],v=0,C=A-1;(B!==0||v>>0,y[C]=B%o>>>0,B=B/o>>>0;if(B!==0)throw new Error("Non-zero carry");g=v,b++}for(var D=A-g;D!==A&&y[D]===0;)D++;for(var T=s.repeat(h);D>>0,A=new Uint8Array(m);p[h];){var y=t[p.charCodeAt(h)];if(y===255)return;for(var B=0,v=m-1;(y!==0||B>>0,A[v]=y%256>>>0,y=y/256>>>0;if(y!==0)throw new Error("Non-zero carry");b=B,h++}if(p[h]!==" "){for(var C=m-b;C!==m&&A[C]===0;)C++;for(var D=new Uint8Array(g+(m-C)),T=g;C!==m;)D[T++]=A[C++];return D}}}function d(p){var h=E(p);if(h)return h;throw new Error(`Non-${e} character`)}return{encode:c,decodeUnsafe:E,decode:d}}var Ty0=Sy0,Py0=Ty0;const Oy0=u=>{if(u instanceof Uint8Array&&u.constructor.name==="Uint8Array")return u;if(u instanceof ArrayBuffer)return new Uint8Array(u);if(ArrayBuffer.isView(u))return new Uint8Array(u.buffer,u.byteOffset,u.byteLength);throw new Error("Unknown type, must be binary type")},Iy0=u=>new TextEncoder().encode(u),Ny0=u=>new TextDecoder().decode(u);class Ry0{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class My0{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return NR(this,e)}}class jy0{constructor(e){this.decoders=e}or(e){return NR(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const NR=(u,e)=>new jy0({...u.decoders||{[u.prefix]:u},...e.decoders||{[e.prefix]:e}});class zy0{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new Ry0(e,t,n),this.decoder=new My0(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const od=({name:u,prefix:e,encode:t,decode:n})=>new zy0(u,e,t,n),pc=({prefix:u,name:e,alphabet:t})=>{const{encode:n,decode:r}=Py0(t,e);return od({prefix:u,name:e,encode:n,decode:i=>Oy0(r(i))})},Ly0=(u,e,t,n)=>{const r={};for(let l=0;l=8&&(o-=8,a[f++]=255&s>>o)}if(o>=t||255&s<<8-o)throw new SyntaxError("Unexpected end of data");return a},$y0=(u,e,t)=>{const n=e[e.length-1]==="=",r=(1<t;)a-=t,i+=e[r&o>>a];if(a&&(i+=e[r&o<od({prefix:e,name:u,encode(r){return $y0(r,n,t)},decode(r){return Ly0(r,n,t,u)}}),Uy0=od({prefix:"\0",name:"identity",encode:u=>Ny0(u),decode:u=>Iy0(u)}),Wy0=Object.freeze(Object.defineProperty({__proto__:null,identity:Uy0},Symbol.toStringTag,{value:"Module"})),qy0=ye({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),Hy0=Object.freeze(Object.defineProperty({__proto__:null,base2:qy0},Symbol.toStringTag,{value:"Module"})),Gy0=ye({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),Vy0=Object.freeze(Object.defineProperty({__proto__:null,base8:Gy0},Symbol.toStringTag,{value:"Module"})),Ky0=pc({prefix:"9",name:"base10",alphabet:"0123456789"}),Qy0=Object.freeze(Object.defineProperty({__proto__:null,base10:Ky0},Symbol.toStringTag,{value:"Module"})),Jy0=ye({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Yy0=ye({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),Zy0=Object.freeze(Object.defineProperty({__proto__:null,base16:Jy0,base16upper:Yy0},Symbol.toStringTag,{value:"Module"})),Xy0=ye({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),uv0=ye({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),ev0=ye({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),tv0=ye({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),nv0=ye({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),rv0=ye({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),iv0=ye({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),av0=ye({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),ov0=ye({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),sv0=Object.freeze(Object.defineProperty({__proto__:null,base32:Xy0,base32hex:nv0,base32hexpad:iv0,base32hexpadupper:av0,base32hexupper:rv0,base32pad:ev0,base32padupper:tv0,base32upper:uv0,base32z:ov0},Symbol.toStringTag,{value:"Module"})),fv0=pc({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),lv0=pc({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),cv0=Object.freeze(Object.defineProperty({__proto__:null,base36:fv0,base36upper:lv0},Symbol.toStringTag,{value:"Module"})),Ev0=pc({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),dv0=pc({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),pv0=Object.freeze(Object.defineProperty({__proto__:null,base58btc:Ev0,base58flickr:dv0},Symbol.toStringTag,{value:"Module"})),hv0=ye({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Cv0=ye({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),mv0=ye({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),bv0=ye({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),gv0=Object.freeze(Object.defineProperty({__proto__:null,base64:hv0,base64pad:Cv0,base64url:mv0,base64urlpad:bv0},Symbol.toStringTag,{value:"Module"})),RR=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Av0=RR.reduce((u,e,t)=>(u[t]=e,u),[]),yv0=RR.reduce((u,e,t)=>(u[e.codePointAt(0)]=t,u),[]);function vv0(u){return u.reduce((e,t)=>(e+=Av0[t],e),"")}function Bv0(u){const e=[];for(const t of u){const n=yv0[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}const Fv0=od({prefix:"🚀",name:"base256emoji",encode:vv0,decode:Bv0}),Dv0=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:Fv0},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const _D={...Wy0,...Hy0,...Vy0,...Qy0,...Zy0,...sv0,...cv0,...pv0,...gv0,...Dv0};function MR(u,e,t,n){return{name:u,prefix:e,encoder:{name:u,prefix:e,encode:t},decoder:{decode:n}}}const SD=MR("utf8","u",u=>"u"+new TextDecoder("utf8").decode(u),u=>new TextEncoder().encode(u.substring(1))),cp=MR("ascii","a",u=>{let e="a";for(let t=0;t{u=u.substring(1);const e=IR(u.length);for(let t=0;t"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Sv0:typeof navigator<"u"?ID(navigator.userAgent):Mv0()}function Nv0(u){return u!==""&&Ov0.reduce(function(e,t){var n=t[0],r=t[1];if(e)return e;var i=r.exec(u);return!!i&&[n,i]},!1)}function ID(u){var e=Nv0(u);if(!e)return null;var t=e[0],n=e[1];if(t==="searchbot")return new _v0;var r=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);r?r.length=0;o--)(a=u[o])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}function zv0(u,e){return function(t,n){e(t,n,u)}}function Lv0(u,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(u,e)}function $v0(u,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(l){try{f(n.next(l))}catch(c){a(c)}}function s(l){try{f(n.throw(l))}catch(c){a(c)}}function f(l){l.done?i(l.value):r(l.value).then(o,s)}f((n=n.apply(u,e||[])).next())})}function Uv0(u,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(f){return function(l){return s([f,l])}}function s(f){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,r&&(i=f[0]&2?r.return:f[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,f[1])).done)return i;switch(r=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,r=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]=u.length&&(u=void 0),{value:u&&u[n++],done:!u}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function RR(u,e){var t=typeof Symbol=="function"&&u[Symbol.iterator];if(!t)return u;var n=t.call(u),r,i=[],a;try{for(;(e===void 0||e-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(o){a={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function Hv0(){for(var u=[],e=0;e1||o(E,d)})})}function o(E,d){try{s(n[E](d))}catch(p){c(i[0][3],p)}}function s(E){E.value instanceof Yl?Promise.resolve(E.value.v).then(f,l):c(i[0][2],E)}function f(E){o("next",E)}function l(E){o("throw",E)}function c(E,d){E(d),i.shift(),i.length&&o(i[0][0],i[0][1])}}function Kv0(u){var e,t;return e={},n("next"),n("throw",function(r){throw r}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(r,i){e[r]=u[r]?function(a){return(t=!t)?{value:Yl(u[r](a)),done:r==="return"}:i?i(a):a}:i}}function Qv0(u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=u[Symbol.asyncIterator],t;return e?e.call(u):(u=typeof jC=="function"?jC(u):u[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=u[i]&&function(a){return new Promise(function(o,s){a=u[i](a),r(o,s,a.done,a.value)})}}function r(i,a,o,s){Promise.resolve(s).then(function(f){i({value:f,done:o})},a)}}function Jv0(u,e){return Object.defineProperty?Object.defineProperty(u,"raw",{value:e}):u.raw=e,u}function Yv0(u){if(u&&u.__esModule)return u;var e={};if(u!=null)for(var t in u)Object.hasOwnProperty.call(u,t)&&(e[t]=u[t]);return e.default=u,e}function Zv0(u){return u&&u.__esModule?u:{default:u}}function Xv0(u,e){if(!e.has(u))throw new TypeError("attempted to get private field on non-instance");return e.get(u)}function uB0(u,e,t){if(!e.has(u))throw new TypeError("attempted to set private field on non-instance");return e.set(u,t),t}const eB0=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return MC},__asyncDelegator:Kv0,__asyncGenerator:Vv0,__asyncValues:Qv0,__await:Yl,__awaiter:$v0,__classPrivateFieldGet:Xv0,__classPrivateFieldSet:uB0,__createBinding:Wv0,__decorate:jv0,__exportStar:qv0,__extends:Rv0,__generator:Uv0,__importDefault:Zv0,__importStar:Yv0,__makeTemplateObject:Jv0,__metadata:Lv0,__param:zv0,__read:RR,__rest:Mv0,__spread:Hv0,__spreadArrays:Gv0,__values:jC},Symbol.toStringTag,{value:"Module"})),sd=V9(eB0);var E8={},If={},PD;function tB0(){if(PD)return If;PD=1,Object.defineProperty(If,"__esModule",{value:!0}),If.delay=void 0;function u(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}return If.delay=u,If}var Fa={},d8={},Da={},OD;function nB0(){return OD||(OD=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.ONE_THOUSAND=Da.ONE_HUNDRED=void 0,Da.ONE_HUNDRED=100,Da.ONE_THOUSAND=1e3),Da}var p8={},ID;function rB0(){return ID||(ID=1,function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ONE_YEAR=u.FOUR_WEEKS=u.THREE_WEEKS=u.TWO_WEEKS=u.ONE_WEEK=u.THIRTY_DAYS=u.SEVEN_DAYS=u.FIVE_DAYS=u.THREE_DAYS=u.ONE_DAY=u.TWENTY_FOUR_HOURS=u.TWELVE_HOURS=u.SIX_HOURS=u.THREE_HOURS=u.ONE_HOUR=u.SIXTY_MINUTES=u.THIRTY_MINUTES=u.TEN_MINUTES=u.FIVE_MINUTES=u.ONE_MINUTE=u.SIXTY_SECONDS=u.THIRTY_SECONDS=u.TEN_SECONDS=u.FIVE_SECONDS=u.ONE_SECOND=void 0,u.ONE_SECOND=1,u.FIVE_SECONDS=5,u.TEN_SECONDS=10,u.THIRTY_SECONDS=30,u.SIXTY_SECONDS=60,u.ONE_MINUTE=u.SIXTY_SECONDS,u.FIVE_MINUTES=u.ONE_MINUTE*5,u.TEN_MINUTES=u.ONE_MINUTE*10,u.THIRTY_MINUTES=u.ONE_MINUTE*30,u.SIXTY_MINUTES=u.ONE_MINUTE*60,u.ONE_HOUR=u.SIXTY_MINUTES,u.THREE_HOURS=u.ONE_HOUR*3,u.SIX_HOURS=u.ONE_HOUR*6,u.TWELVE_HOURS=u.ONE_HOUR*12,u.TWENTY_FOUR_HOURS=u.ONE_HOUR*24,u.ONE_DAY=u.TWENTY_FOUR_HOURS,u.THREE_DAYS=u.ONE_DAY*3,u.FIVE_DAYS=u.ONE_DAY*5,u.SEVEN_DAYS=u.ONE_DAY*7,u.THIRTY_DAYS=u.ONE_DAY*30,u.ONE_WEEK=u.SEVEN_DAYS,u.TWO_WEEKS=u.ONE_WEEK*2,u.THREE_WEEKS=u.ONE_WEEK*3,u.FOUR_WEEKS=u.ONE_WEEK*4,u.ONE_YEAR=u.ONE_DAY*365}(p8)),p8}var ND;function MR(){return ND||(ND=1,function(u){Object.defineProperty(u,"__esModule",{value:!0});const e=sd;e.__exportStar(nB0(),u),e.__exportStar(rB0(),u)}(d8)),d8}var RD;function iB0(){if(RD)return Fa;RD=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.fromMiliseconds=Fa.toMiliseconds=void 0;const u=MR();function e(n){return n*u.ONE_THOUSAND}Fa.toMiliseconds=e;function t(n){return Math.floor(n/u.ONE_THOUSAND)}return Fa.fromMiliseconds=t,Fa}var MD;function aB0(){return MD||(MD=1,function(u){Object.defineProperty(u,"__esModule",{value:!0});const e=sd;e.__exportStar(tB0(),u),e.__exportStar(iB0(),u)}(E8)),E8}var ps={},jD;function oB0(){if(jD)return ps;jD=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.Watch=void 0;class u{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){const n=this.get(t);if(typeof n.elapsed<"u")throw new Error(`Watch already stopped for label: ${t}`);const r=Date.now()-n.started;this.timestamps.set(t,{started:n.started,elapsed:r})}get(t){const n=this.timestamps.get(t);if(typeof n>"u")throw new Error(`No timestamp found for label: ${t}`);return n}elapsed(t){const n=this.get(t);return n.elapsed||Date.now()-n.started}}return ps.Watch=u,ps.default=u,ps}var h8={},Nf={},zD;function sB0(){if(zD)return Nf;zD=1,Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.IWatch=void 0;class u{}return Nf.IWatch=u,Nf}var LD;function fB0(){return LD||(LD=1,function(u){Object.defineProperty(u,"__esModule",{value:!0}),sd.__exportStar(sB0(),u)}(h8)),h8}(function(u){Object.defineProperty(u,"__esModule",{value:!0});const e=sd;e.__exportStar(aB0(),u),e.__exportStar(oB0(),u),e.__exportStar(fB0(),u),e.__exportStar(MR(),u)})(mo);var du={};Object.defineProperty(du,"__esModule",{value:!0});var lB0=du.getLocalStorage=xB0=du.getLocalStorageOrThrow=DB0=du.getCrypto=BB0=du.getCryptoOrThrow=zR=du.getLocation=AB0=du.getLocationOrThrow=Zb=du.getNavigator=mB0=du.getNavigatorOrThrow=jR=du.getDocument=pB0=du.getDocumentOrThrow=EB0=du.getFromWindowOrThrow=cB0=du.getFromWindow=void 0;function us(u){let e;return typeof window<"u"&&typeof window[u]<"u"&&(e=window[u]),e}var cB0=du.getFromWindow=us;function df(u){const e=us(u);if(!e)throw new Error(`${u} is not defined in Window`);return e}var EB0=du.getFromWindowOrThrow=df;function dB0(){return df("document")}var pB0=du.getDocumentOrThrow=dB0;function hB0(){return us("document")}var jR=du.getDocument=hB0;function CB0(){return df("navigator")}var mB0=du.getNavigatorOrThrow=CB0;function gB0(){return us("navigator")}var Zb=du.getNavigator=gB0;function bB0(){return df("location")}var AB0=du.getLocationOrThrow=bB0;function yB0(){return us("location")}var zR=du.getLocation=yB0;function vB0(){return df("crypto")}var BB0=du.getCryptoOrThrow=vB0;function FB0(){return us("crypto")}var DB0=du.getCrypto=FB0;function wB0(){return df("localStorage")}var xB0=du.getLocalStorageOrThrow=wB0;function kB0(){return us("localStorage")}lB0=du.getLocalStorage=kB0;var Xb={};Object.defineProperty(Xb,"__esModule",{value:!0});var LR=Xb.getWindowMetadata=void 0;const $D=du;function _B0(){let u,e;try{u=$D.getDocumentOrThrow(),e=$D.getLocationOrThrow()}catch{return null}function t(){const c=u.getElementsByTagName("link"),E=[];for(let d=0;d-1){const b=p.getAttribute("href");if(b)if(b.toLowerCase().indexOf("https:")===-1&&b.toLowerCase().indexOf("http:")===-1&&b.indexOf("//")!==0){let g=e.protocol+"//"+e.host;if(b.indexOf("/")===0)g+=b;else{const m=e.pathname.split("/");m.pop();const A=m.join("/");g+=A+"/"+b}E.push(g)}else if(b.indexOf("//")===0){const g=e.protocol+b;E.push(g)}else E.push(b)}}return E}function n(...c){const E=u.getElementsByTagName("meta");for(let d=0;dp.getAttribute(b)).filter(b=>b?c.includes(b):!1);if(h.length&&h){const b=p.getAttribute("content");if(b)return b}}return""}function r(){let c=n("name","og:site_name","og:title","twitter:title");return c||(c=u.title),c}function i(){return n("description","og:description","twitter:description","keywords")}const a=r(),o=i(),s=e.origin,f=t();return{description:o,url:s,icons:f,name:a}}LR=Xb.getWindowMetadata=_B0;var Zl={},SB0=u=>encodeURIComponent(u).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),$R="%[a-f0-9]{2}",UD=new RegExp("("+$R+")|([^%]+?)","gi"),WD=new RegExp("("+$R+")+","gi");function zC(u,e){try{return[decodeURIComponent(u.join(""))]}catch{}if(u.length===1)return u;e=e||1;var t=u.slice(0,e),n=u.slice(e);return Array.prototype.concat.call([],zC(t),zC(n))}function TB0(u){try{return decodeURIComponent(u)}catch{for(var e=u.match(UD)||[],t=1;t{if(!(typeof u=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[u];const t=u.indexOf(e);return t===-1?[u]:[u.slice(0,t),u.slice(t+e.length)]},NB0=function(u,e){for(var t={},n=Object.keys(u),r=Array.isArray(e),i=0;im==null,a=Symbol("encodeFragmentIdentifier");function o(m){switch(m.arrayFormat){case"index":return A=>(y,B)=>{const v=y.length;return B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,[l(A,m),"[",v,"]"].join("")]:[...y,[l(A,m),"[",l(v,m),"]=",l(B,m)].join("")]};case"bracket":return A=>(y,B)=>B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,[l(A,m),"[]"].join("")]:[...y,[l(A,m),"[]=",l(B,m)].join("")];case"colon-list-separator":return A=>(y,B)=>B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,[l(A,m),":list="].join("")]:[...y,[l(A,m),":list=",l(B,m)].join("")];case"comma":case"separator":case"bracket-separator":{const A=m.arrayFormat==="bracket-separator"?"[]=":"=";return y=>(B,v)=>v===void 0||m.skipNull&&v===null||m.skipEmptyString&&v===""?B:(v=v===null?"":v,B.length===0?[[l(y,m),A,l(v,m)].join("")]:[[B,l(v,m)].join(m.arrayFormatSeparator)])}default:return A=>(y,B)=>B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,l(A,m)]:[...y,[l(A,m),"=",l(B,m)].join("")]}}function s(m){let A;switch(m.arrayFormat){case"index":return(y,B,v)=>{if(A=/\[(\d*)\]$/.exec(y),y=y.replace(/\[\d*\]$/,""),!A){v[y]=B;return}v[y]===void 0&&(v[y]={}),v[y][A[1]]=B};case"bracket":return(y,B,v)=>{if(A=/(\[\])$/.exec(y),y=y.replace(/\[\]$/,""),!A){v[y]=B;return}if(v[y]===void 0){v[y]=[B];return}v[y]=[].concat(v[y],B)};case"colon-list-separator":return(y,B,v)=>{if(A=/(:list)$/.exec(y),y=y.replace(/:list$/,""),!A){v[y]=B;return}if(v[y]===void 0){v[y]=[B];return}v[y]=[].concat(v[y],B)};case"comma":case"separator":return(y,B,v)=>{const C=typeof B=="string"&&B.includes(m.arrayFormatSeparator),D=typeof B=="string"&&!C&&c(B,m).includes(m.arrayFormatSeparator);B=D?c(B,m):B;const T=C||D?B.split(m.arrayFormatSeparator).map(_=>c(_,m)):B===null?B:c(B,m);v[y]=T};case"bracket-separator":return(y,B,v)=>{const C=/(\[\])$/.test(y);if(y=y.replace(/\[\]$/,""),!C){v[y]=B&&c(B,m);return}const D=B===null?[]:B.split(m.arrayFormatSeparator).map(T=>c(T,m));if(v[y]===void 0){v[y]=D;return}v[y]=[].concat(v[y],D)};default:return(y,B,v)=>{if(v[y]===void 0){v[y]=B;return}v[y]=[].concat(v[y],B)}}}function f(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function l(m,A){return A.encode?A.strict?e(m):encodeURIComponent(m):m}function c(m,A){return A.decode?t(m):m}function E(m){return Array.isArray(m)?m.sort():typeof m=="object"?E(Object.keys(m)).sort((A,y)=>Number(A)-Number(y)).map(A=>m[A]):m}function d(m){const A=m.indexOf("#");return A!==-1&&(m=m.slice(0,A)),m}function p(m){let A="";const y=m.indexOf("#");return y!==-1&&(A=m.slice(y)),A}function h(m){m=d(m);const A=m.indexOf("?");return A===-1?"":m.slice(A+1)}function b(m,A){return A.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):A.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function g(m,A){A=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},A),f(A.arrayFormatSeparator);const y=s(A),B=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return B;for(const v of m.split("&")){if(v==="")continue;let[C,D]=n(A.decode?v.replace(/\+/g," "):v,"=");D=D===void 0?null:["comma","separator","bracket-separator"].includes(A.arrayFormat)?D:c(D,A),y(c(C,A),D,B)}for(const v of Object.keys(B)){const C=B[v];if(typeof C=="object"&&C!==null)for(const D of Object.keys(C))C[D]=b(C[D],A);else B[v]=b(C,A)}return A.sort===!1?B:(A.sort===!0?Object.keys(B).sort():Object.keys(B).sort(A.sort)).reduce((v,C)=>{const D=B[C];return D&&typeof D=="object"&&!Array.isArray(D)?v[C]=E(D):v[C]=D,v},Object.create(null))}u.extract=h,u.parse=g,u.stringify=(m,A)=>{if(!m)return"";A=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},A),f(A.arrayFormatSeparator);const y=D=>A.skipNull&&i(m[D])||A.skipEmptyString&&m[D]==="",B=o(A),v={};for(const D of Object.keys(m))y(D)||(v[D]=m[D]);const C=Object.keys(v);return A.sort!==!1&&C.sort(A.sort),C.map(D=>{const T=m[D];return T===void 0?"":T===null?l(D,A):Array.isArray(T)?T.length===0&&A.arrayFormat==="bracket-separator"?l(D,A)+"[]":T.reduce(B(D),[]).join("&"):l(D,A)+"="+l(T,A)}).filter(D=>D.length>0).join("&")},u.parseUrl=(m,A)=>{A=Object.assign({decode:!0},A);const[y,B]=n(m,"#");return Object.assign({url:y.split("?")[0]||"",query:g(h(m),A)},A&&A.parseFragmentIdentifier&&B?{fragmentIdentifier:c(B,A)}:{})},u.stringifyUrl=(m,A)=>{A=Object.assign({encode:!0,strict:!0,[a]:!0},A);const y=d(m.url).split("?")[0]||"",B=u.extract(m.url),v=u.parse(B,{sort:!1}),C=Object.assign(v,m.query);let D=u.stringify(C,A);D&&(D=`?${D}`);let T=p(m.url);return m.fragmentIdentifier&&(T=`#${A[a]?l(m.fragmentIdentifier,A):m.fragmentIdentifier}`),`${y}${D}${T}`},u.pick=(m,A,y)=>{y=Object.assign({parseFragmentIdentifier:!0,[a]:!1},y);const{url:B,query:v,fragmentIdentifier:C}=u.parseUrl(m,y);return u.stringifyUrl({url:B,query:r(v,A),fragmentIdentifier:C},y)},u.exclude=(m,A,y)=>{const B=Array.isArray(A)?v=>!A.includes(v):(v,C)=>!A(v,C);return u.pick(m,B,y)}})(Zl);const RB0={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}},MB0=":";function zP0(u){const[e,t]=u.split(MB0);return{namespace:e,reference:t}}function LP0(u,e=[]){const t=[];return Object.keys(u).forEach(n=>{if(e.length&&!e.includes(n))return;const r=u[n];t.push(...r.accounts)}),t}function UR(u,e){return u.includes(":")?[u]:e.chains||[]}const WR="base10",ct="base16",LC="base64pad",uA="utf8",qR=0,h1=1,jB0=0,qD=1,$C=12,eA=32;function $P0(){const u=Jb.generateKeyPair();return{privateKey:zn(u.secretKey,ct),publicKey:zn(u.publicKey,ct)}}function UP0(){const u=td.randomBytes(eA);return zn(u,ct)}function WP0(u,e){const t=Jb.sharedKey(Pn(u,ct),Pn(e,ct),!0),n=new Cy0(ad.SHA256,t).expand(eA);return zn(n,ct)}function qP0(u){const e=ad.hash(Pn(u,ct));return zn(e,ct)}function HP0(u){const e=ad.hash(Pn(u,uA));return zn(e,ct)}function zB0(u){return Pn(`${u}`,WR)}function fd(u){return Number(zn(u,WR))}function GP0(u){const e=zB0(typeof u.type<"u"?u.type:qR);if(fd(e)===h1&&typeof u.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const t=typeof u.senderPublicKey<"u"?Pn(u.senderPublicKey,ct):void 0,n=typeof u.iv<"u"?Pn(u.iv,ct):td.randomBytes($C),r=new Kb.ChaCha20Poly1305(Pn(u.symKey,ct)).seal(n,Pn(u.message,uA));return LB0({type:e,sealed:r,iv:n,senderPublicKey:t})}function VP0(u){const e=new Kb.ChaCha20Poly1305(Pn(u.symKey,ct)),{sealed:t,iv:n}=HR(u.encoded),r=e.open(n,t);if(r===null)throw new Error("Failed to decrypt");return zn(r,uA)}function LB0(u){if(fd(u.type)===h1){if(typeof u.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return zn(DD([u.type,u.senderPublicKey,u.iv,u.sealed]),LC)}return zn(DD([u.type,u.iv,u.sealed]),LC)}function HR(u){const e=Pn(u,LC),t=e.slice(jB0,qD),n=qD;if(fd(t)===h1){const o=n+eA,s=o+$C,f=e.slice(n,o),l=e.slice(o,s),c=e.slice(s);return{type:t,sealed:c,iv:l,senderPublicKey:f}}const r=n+$C,i=e.slice(n,r),a=e.slice(r);return{type:t,sealed:a,iv:i}}function KP0(u,e){const t=HR(u);return $B0({type:fd(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?zn(t.senderPublicKey,ct):void 0,receiverPublicKey:e==null?void 0:e.receiverPublicKey})}function $B0(u){const e=(u==null?void 0:u.type)||qR;if(e===h1){if(typeof(u==null?void 0:u.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(u==null?void 0:u.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:u==null?void 0:u.senderPublicKey,receiverPublicKey:u==null?void 0:u.receiverPublicKey}}function QP0(u){return u.type===h1&&typeof u.senderPublicKey=="string"&&typeof u.receiverPublicKey=="string"}var UB0=Object.defineProperty,HD=Object.getOwnPropertySymbols,WB0=Object.prototype.hasOwnProperty,qB0=Object.prototype.propertyIsEnumerable,GD=(u,e,t)=>e in u?UB0(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,VD=(u,e)=>{for(var t in e||(e={}))WB0.call(e,t)&&GD(u,t,e[t]);if(HD)for(var t of HD(e))qB0.call(e,t)&&GD(u,t,e[t]);return u};const HB0="ReactNative",It={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},GB0="js";function GR(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function ld(){return!jR()&&!!Zb()&&navigator.product===HB0}function tA(){return!GR()&&!!Zb()}function C1(){return ld()?It.reactNative:GR()?It.node:tA()?It.browser:It.unknown}function VB0(u,e){let t=Zl.parse(u);return t=VD(VD({},t),e),u=Zl.stringify(t),u}function JP0(){return LR()||{name:"",description:"",url:"",icons:[""]}}function KB0(){if(C1()===It.reactNative&&typeof global<"u"&&typeof(global==null?void 0:global.Platform)<"u"){const{OS:t,Version:n}=global.Platform;return[t,n].join("-")}const u=Tv0();if(u===null)return"unknown";const e=u.os?u.os.replace(" ","").toLowerCase():"unknown";return u.type==="browser"?[e,u.name,u.version].join("-"):[e,u.version].join("-")}function QB0(){var u;const e=C1();return e===It.browser?[e,((u=zR())==null?void 0:u.host)||"unknown"].join(":"):e}function JB0(u,e,t){const n=KB0(),r=QB0();return[[u,e].join("-"),[GB0,t].join("-"),n,r].join("/")}function YP0({protocol:u,version:e,relayUrl:t,sdkVersion:n,auth:r,projectId:i,useOnCloseEvent:a}){const o=t.split("?"),s=JB0(u,e,n),f={auth:r,ua:s,projectId:i,useOnCloseEvent:a||void 0},l=VB0(o[1]||"",f);return o[0]+"?"+l}function Ua(u,e){return u.filter(t=>e.includes(t)).length===u.length}function ZP0(u){return Object.fromEntries(u.entries())}function XP0(u){return new Map(Object.entries(u))}function uO0(u=mo.FIVE_MINUTES,e){const t=mo.toMiliseconds(u||mo.FIVE_MINUTES);let n,r,i;return{resolve:a=>{i&&n&&(clearTimeout(i),n(a))},reject:a=>{i&&r&&(clearTimeout(i),r(a))},done:()=>new Promise((a,o)=>{i=setTimeout(()=>{o(new Error(e))},t),n=a,r=o})}}function eO0(u,e,t){return new Promise(async(n,r)=>{const i=setTimeout(()=>r(new Error(t)),e);try{const a=await u;n(a)}catch(a){r(a)}clearTimeout(i)})}function VR(u,e){if(typeof e=="string"&&e.startsWith(`${u}:`))return e;if(u.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(u.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${u}`)}function tO0(u){return VR("topic",u)}function nO0(u){return VR("id",u)}function rO0(u){const[e,t]=u.split(":"),n={id:void 0,topic:void 0};if(e==="topic"&&typeof t=="string")n.topic=t;else if(e==="id"&&Number.isInteger(Number(t)))n.id=Number(t);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${t}`);return n}function iO0(u,e){return mo.fromMiliseconds((e||Date.now())+mo.toMiliseconds(u))}function aO0(u){return Date.now()>=mo.toMiliseconds(u)}function oO0(u,e){return`${u}${e?`:${e}`:""}`}function C8(u=[],e=[]){return[...new Set([...u,...e])]}async function sO0({id:u,topic:e,wcDeepLink:t}){try{if(!t)return;const n=typeof t=="string"?JSON.parse(t):t;let r=n==null?void 0:n.href;if(typeof r!="string")return;r.endsWith("/")&&(r=r.slice(0,-1));const i=`${r}/wc?requestId=${u}&sessionTopic=${e}`,a=C1();a===It.browser?i.startsWith("https://")?window.open(i,"_blank","noreferrer noopener"):window.open(i,"_self","noreferrer noopener"):a===It.reactNative&&typeof(global==null?void 0:global.Linking)<"u"&&await global.Linking.openURL(i)}catch(n){console.error(n)}}const YB0="irn";function fO0(u){return(u==null?void 0:u.relay)||{protocol:YB0}}function lO0(u){const e=RB0[u];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${u}`);return e}var ZB0=Object.defineProperty,KD=Object.getOwnPropertySymbols,XB0=Object.prototype.hasOwnProperty,uF0=Object.prototype.propertyIsEnumerable,QD=(u,e,t)=>e in u?ZB0(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,eF0=(u,e)=>{for(var t in e||(e={}))XB0.call(e,t)&&QD(u,t,e[t]);if(KD)for(var t of KD(e))uF0.call(e,t)&&QD(u,t,e[t]);return u};function tF0(u,e="-"){const t={},n="relay"+e;return Object.keys(u).forEach(r=>{if(r.startsWith(n)){const i=r.replace(n,""),a=u[r];t[i]=a}}),t}function cO0(u){const e=u.indexOf(":"),t=u.indexOf("?")!==-1?u.indexOf("?"):void 0,n=u.substring(0,e),r=u.substring(e+1,t).split("@"),i=typeof t<"u"?u.substring(t):"",a=Zl.parse(i);return{protocol:n,topic:nF0(r[0]),version:parseInt(r[1],10),symKey:a.symKey,relay:tF0(a)}}function nF0(u){return u.startsWith("//")?u.substring(2):u}function rF0(u,e="-"){const t="relay",n={};return Object.keys(u).forEach(r=>{const i=t+e+r;u[r]&&(n[i]=u[r])}),n}function EO0(u){return`${u.protocol}:${u.topic}@${u.version}?`+Zl.stringify(eF0({symKey:u.symKey},rF0(u.relay)))}var iF0=Object.defineProperty,aF0=Object.defineProperties,oF0=Object.getOwnPropertyDescriptors,JD=Object.getOwnPropertySymbols,sF0=Object.prototype.hasOwnProperty,fF0=Object.prototype.propertyIsEnumerable,YD=(u,e,t)=>e in u?iF0(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,lF0=(u,e)=>{for(var t in e||(e={}))sF0.call(e,t)&&YD(u,t,e[t]);if(JD)for(var t of JD(e))fF0.call(e,t)&&YD(u,t,e[t]);return u},cF0=(u,e)=>aF0(u,oF0(e));function pf(u){const e=[];return u.forEach(t=>{const[n,r]=t.split(":");e.push(`${n}:${r}`)}),e}function EF0(u){const e=[];return Object.values(u).forEach(t=>{e.push(...pf(t.accounts))}),e}function dF0(u,e){const t=[];return Object.values(u).forEach(n=>{pf(n.accounts).includes(e)&&t.push(...n.methods)}),t}function pF0(u,e){const t=[];return Object.values(u).forEach(n=>{pf(n.accounts).includes(e)&&t.push(...n.events)}),t}function dO0(u,e){const t=FF0(u,e);if(t)throw new Error(t.message);const n={};for(const[r,i]of Object.entries(u))n[r]={methods:i.methods,events:i.events,chains:i.accounts.map(a=>`${a.split(":")[0]}:${a.split(":")[1]}`)};return n}function KR(u){return u.includes(":")}function hF0(u){return KR(u)?u.split(":")[0]:u}function QR(u){var e,t,n;const r={};if(!nA(u))return r;for(const[i,a]of Object.entries(u)){const o=KR(i)?[i]:a.chains,s=a.methods||[],f=a.events||[],l=hF0(i);r[l]=cF0(lF0({},r[l]),{chains:C8(o,(e=r[l])==null?void 0:e.chains),methods:C8(s,(t=r[l])==null?void 0:t.methods),events:C8(f,(n=r[l])==null?void 0:n.events)})}return r}const CF0={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},mF0={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function xi(u,e){const{message:t,code:n}=mF0[u];return{message:e?`${t} ${e}`:t,code:n}}function _3(u,e){const{message:t,code:n}=CF0[u];return{message:e?`${t} ${e}`:t,code:n}}function cd(u,e){return Array.isArray(u)?typeof e<"u"&&u.length?u.every(e):!0:!1}function nA(u){return Object.getPrototypeOf(u)===Object.prototype&&Object.keys(u).length}function go(u){return typeof u>"u"}function gn(u,e){return e&&go(u)?!0:typeof u=="string"&&!!u.trim().length}function rA(u,e){return e&&go(u)?!0:typeof u=="number"&&!isNaN(u)}function pO0(u,e){const{requiredNamespaces:t}=e,n=Object.keys(u.namespaces),r=Object.keys(t);let i=!0;return Ua(r,n)?(n.forEach(a=>{const{accounts:o,methods:s,events:f}=u.namespaces[a],l=pf(o),c=t[a];(!Ua(UR(a,c),l)||!Ua(c.methods,s)||!Ua(c.events,f))&&(i=!1)}),i):!1}function y9(u){return gn(u,!1)&&u.includes(":")?u.split(":").length===2:!1}function gF0(u){if(gn(u,!1)&&u.includes(":")){const e=u.split(":");if(e.length===3){const t=e[0]+":"+e[1];return!!e[2]&&y9(t)}}return!1}function hO0(u){if(gn(u,!1))try{return typeof new URL(u)<"u"}catch{return!1}return!1}function CO0(u){var e;return(e=u==null?void 0:u.proposer)==null?void 0:e.publicKey}function mO0(u){return u==null?void 0:u.topic}function gO0(u,e){let t=null;return gn(u==null?void 0:u.publicKey,!1)||(t=xi("MISSING_OR_INVALID",`${e} controller public key should be a string`)),t}function ZD(u){let e=!0;return cd(u)?u.length&&(e=u.every(t=>gn(t,!1))):e=!1,e}function bF0(u,e,t){let n=null;return cd(e)&&e.length?e.forEach(r=>{n||y9(r)||(n=_3("UNSUPPORTED_CHAINS",`${t}, chain ${r} should be a string and conform to "namespace:chainId" format`))}):y9(u)||(n=_3("UNSUPPORTED_CHAINS",`${t}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),n}function AF0(u,e,t){let n=null;return Object.entries(u).forEach(([r,i])=>{if(n)return;const a=bF0(r,UR(r,i),`${e} ${t}`);a&&(n=a)}),n}function yF0(u,e){let t=null;return cd(u)?u.forEach(n=>{t||gF0(n)||(t=_3("UNSUPPORTED_ACCOUNTS",`${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):t=_3("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}function vF0(u,e){let t=null;return Object.values(u).forEach(n=>{if(t)return;const r=yF0(n==null?void 0:n.accounts,`${e} namespace`);r&&(t=r)}),t}function BF0(u,e){let t=null;return ZD(u==null?void 0:u.methods)?ZD(u==null?void 0:u.events)||(t=_3("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):t=_3("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),t}function JR(u,e){let t=null;return Object.values(u).forEach(n=>{if(t)return;const r=BF0(n,`${e}, namespace`);r&&(t=r)}),t}function bO0(u,e,t){let n=null;if(u&&nA(u)){const r=JR(u,e);r&&(n=r);const i=AF0(u,e,t);i&&(n=i)}else n=xi("MISSING_OR_INVALID",`${e}, ${t} should be an object with data`);return n}function FF0(u,e){let t=null;if(u&&nA(u)){const n=JR(u,e);n&&(t=n);const r=vF0(u,e);r&&(t=r)}else t=xi("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return t}function DF0(u){return gn(u.protocol,!0)}function AO0(u,e){let t=!1;return e&&!u?t=!0:u&&cd(u)&&u.length&&u.forEach(n=>{t=DF0(n)}),t}function yO0(u){return typeof u=="number"}function vO0(u){return typeof u<"u"&&typeof u!==null}function BO0(u){return!(!u||typeof u!="object"||!u.code||!rA(u.code,!1)||!u.message||!gn(u.message,!1))}function FO0(u){return!(go(u)||!gn(u.method,!1))}function DO0(u){return!(go(u)||go(u.result)&&go(u.error)||!rA(u.id,!1)||!gn(u.jsonrpc,!1))}function wO0(u){return!(go(u)||!gn(u.name,!1))}function xO0(u,e){return!(!y9(e)||!EF0(u).includes(e))}function kO0(u,e,t){return gn(t,!1)?dF0(u,e).includes(t):!1}function _O0(u,e,t){return gn(t,!1)?pF0(u,e).includes(t):!1}function SO0(u,e,t){let n=null;const r=wF0(u),i=xF0(e),a=Object.keys(r),o=Object.keys(i),s=XD(Object.keys(u)),f=XD(Object.keys(e)),l=s.filter(c=>!f.includes(c));return l.length&&(n=xi("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces. +***************************************************************************** */var RC=function(u,e){return RC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])},RC(u,e)};function zv0(u,e){RC(u,e);function t(){this.constructor=u}u.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var MC=function(){return MC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;o--)(a=u[o])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}function Uv0(u,e){return function(t,n){e(t,n,u)}}function Wv0(u,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(u,e)}function qv0(u,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(l){try{f(n.next(l))}catch(c){a(c)}}function s(l){try{f(n.throw(l))}catch(c){a(c)}}function f(l){l.done?i(l.value):r(l.value).then(o,s)}f((n=n.apply(u,e||[])).next())})}function Hv0(u,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(f){return function(l){return s([f,l])}}function s(f){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,r&&(i=f[0]&2?r.return:f[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,f[1])).done)return i;switch(r=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,r=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]=u.length&&(u=void 0),{value:u&&u[n++],done:!u}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function zR(u,e){var t=typeof Symbol=="function"&&u[Symbol.iterator];if(!t)return u;var n=t.call(u),r,i=[],a;try{for(;(e===void 0||e-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(o){a={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function Kv0(){for(var u=[],e=0;e1||o(E,d)})})}function o(E,d){try{s(n[E](d))}catch(p){c(i[0][3],p)}}function s(E){E.value instanceof Xl?Promise.resolve(E.value.v).then(f,l):c(i[0][2],E)}function f(E){o("next",E)}function l(E){o("throw",E)}function c(E,d){E(d),i.shift(),i.length&&o(i[0][0],i[0][1])}}function Yv0(u){var e,t;return e={},n("next"),n("throw",function(r){throw r}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(r,i){e[r]=u[r]?function(a){return(t=!t)?{value:Xl(u[r](a)),done:r==="return"}:i?i(a):a}:i}}function Zv0(u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=u[Symbol.asyncIterator],t;return e?e.call(u):(u=typeof jC=="function"?jC(u):u[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=u[i]&&function(a){return new Promise(function(o,s){a=u[i](a),r(o,s,a.done,a.value)})}}function r(i,a,o,s){Promise.resolve(s).then(function(f){i({value:f,done:o})},a)}}function Xv0(u,e){return Object.defineProperty?Object.defineProperty(u,"raw",{value:e}):u.raw=e,u}function uB0(u){if(u&&u.__esModule)return u;var e={};if(u!=null)for(var t in u)Object.hasOwnProperty.call(u,t)&&(e[t]=u[t]);return e.default=u,e}function eB0(u){return u&&u.__esModule?u:{default:u}}function tB0(u,e){if(!e.has(u))throw new TypeError("attempted to get private field on non-instance");return e.get(u)}function nB0(u,e,t){if(!e.has(u))throw new TypeError("attempted to set private field on non-instance");return e.set(u,t),t}const rB0=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return MC},__asyncDelegator:Yv0,__asyncGenerator:Jv0,__asyncValues:Zv0,__await:Xl,__awaiter:qv0,__classPrivateFieldGet:tB0,__classPrivateFieldSet:nB0,__createBinding:Gv0,__decorate:$v0,__exportStar:Vv0,__extends:zv0,__generator:Hv0,__importDefault:eB0,__importStar:uB0,__makeTemplateObject:Xv0,__metadata:Wv0,__param:Uv0,__read:zR,__rest:Lv0,__spread:Kv0,__spreadArrays:Qv0,__values:jC},Symbol.toStringTag,{value:"Module"})),sd=V2(rB0);var Ep={},R3={},ND;function iB0(){if(ND)return R3;ND=1,Object.defineProperty(R3,"__esModule",{value:!0}),R3.delay=void 0;function u(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}return R3.delay=u,R3}var Fa={},dp={},Da={},RD;function aB0(){return RD||(RD=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.ONE_THOUSAND=Da.ONE_HUNDRED=void 0,Da.ONE_HUNDRED=100,Da.ONE_THOUSAND=1e3),Da}var pp={},MD;function oB0(){return MD||(MD=1,function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ONE_YEAR=u.FOUR_WEEKS=u.THREE_WEEKS=u.TWO_WEEKS=u.ONE_WEEK=u.THIRTY_DAYS=u.SEVEN_DAYS=u.FIVE_DAYS=u.THREE_DAYS=u.ONE_DAY=u.TWENTY_FOUR_HOURS=u.TWELVE_HOURS=u.SIX_HOURS=u.THREE_HOURS=u.ONE_HOUR=u.SIXTY_MINUTES=u.THIRTY_MINUTES=u.TEN_MINUTES=u.FIVE_MINUTES=u.ONE_MINUTE=u.SIXTY_SECONDS=u.THIRTY_SECONDS=u.TEN_SECONDS=u.FIVE_SECONDS=u.ONE_SECOND=void 0,u.ONE_SECOND=1,u.FIVE_SECONDS=5,u.TEN_SECONDS=10,u.THIRTY_SECONDS=30,u.SIXTY_SECONDS=60,u.ONE_MINUTE=u.SIXTY_SECONDS,u.FIVE_MINUTES=u.ONE_MINUTE*5,u.TEN_MINUTES=u.ONE_MINUTE*10,u.THIRTY_MINUTES=u.ONE_MINUTE*30,u.SIXTY_MINUTES=u.ONE_MINUTE*60,u.ONE_HOUR=u.SIXTY_MINUTES,u.THREE_HOURS=u.ONE_HOUR*3,u.SIX_HOURS=u.ONE_HOUR*6,u.TWELVE_HOURS=u.ONE_HOUR*12,u.TWENTY_FOUR_HOURS=u.ONE_HOUR*24,u.ONE_DAY=u.TWENTY_FOUR_HOURS,u.THREE_DAYS=u.ONE_DAY*3,u.FIVE_DAYS=u.ONE_DAY*5,u.SEVEN_DAYS=u.ONE_DAY*7,u.THIRTY_DAYS=u.ONE_DAY*30,u.ONE_WEEK=u.SEVEN_DAYS,u.TWO_WEEKS=u.ONE_WEEK*2,u.THREE_WEEKS=u.ONE_WEEK*3,u.FOUR_WEEKS=u.ONE_WEEK*4,u.ONE_YEAR=u.ONE_DAY*365}(pp)),pp}var jD;function LR(){return jD||(jD=1,function(u){Object.defineProperty(u,"__esModule",{value:!0});const e=sd;e.__exportStar(aB0(),u),e.__exportStar(oB0(),u)}(dp)),dp}var zD;function sB0(){if(zD)return Fa;zD=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.fromMiliseconds=Fa.toMiliseconds=void 0;const u=LR();function e(n){return n*u.ONE_THOUSAND}Fa.toMiliseconds=e;function t(n){return Math.floor(n/u.ONE_THOUSAND)}return Fa.fromMiliseconds=t,Fa}var LD;function fB0(){return LD||(LD=1,function(u){Object.defineProperty(u,"__esModule",{value:!0});const e=sd;e.__exportStar(iB0(),u),e.__exportStar(sB0(),u)}(Ep)),Ep}var ps={},$D;function lB0(){if($D)return ps;$D=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.Watch=void 0;class u{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){const n=this.get(t);if(typeof n.elapsed<"u")throw new Error(`Watch already stopped for label: ${t}`);const r=Date.now()-n.started;this.timestamps.set(t,{started:n.started,elapsed:r})}get(t){const n=this.timestamps.get(t);if(typeof n>"u")throw new Error(`No timestamp found for label: ${t}`);return n}elapsed(t){const n=this.get(t);return n.elapsed||Date.now()-n.started}}return ps.Watch=u,ps.default=u,ps}var hp={},M3={},UD;function cB0(){if(UD)return M3;UD=1,Object.defineProperty(M3,"__esModule",{value:!0}),M3.IWatch=void 0;class u{}return M3.IWatch=u,M3}var WD;function EB0(){return WD||(WD=1,function(u){Object.defineProperty(u,"__esModule",{value:!0}),sd.__exportStar(cB0(),u)}(hp)),hp}(function(u){Object.defineProperty(u,"__esModule",{value:!0});const e=sd;e.__exportStar(fB0(),u),e.__exportStar(lB0(),u),e.__exportStar(EB0(),u),e.__exportStar(LR(),u)})(mo);var du={};Object.defineProperty(du,"__esModule",{value:!0});var dB0=du.getLocalStorage=SB0=du.getLocalStorageOrThrow=kB0=du.getCrypto=wB0=du.getCryptoOrThrow=UR=du.getLocation=BB0=du.getLocationOrThrow=Zg=du.getNavigator=AB0=du.getNavigatorOrThrow=$R=du.getDocument=mB0=du.getDocumentOrThrow=hB0=du.getFromWindowOrThrow=pB0=du.getFromWindow=void 0;function us(u){let e;return typeof window<"u"&&typeof window[u]<"u"&&(e=window[u]),e}var pB0=du.getFromWindow=us;function h3(u){const e=us(u);if(!e)throw new Error(`${u} is not defined in Window`);return e}var hB0=du.getFromWindowOrThrow=h3;function CB0(){return h3("document")}var mB0=du.getDocumentOrThrow=CB0;function bB0(){return us("document")}var $R=du.getDocument=bB0;function gB0(){return h3("navigator")}var AB0=du.getNavigatorOrThrow=gB0;function yB0(){return us("navigator")}var Zg=du.getNavigator=yB0;function vB0(){return h3("location")}var BB0=du.getLocationOrThrow=vB0;function FB0(){return us("location")}var UR=du.getLocation=FB0;function DB0(){return h3("crypto")}var wB0=du.getCryptoOrThrow=DB0;function xB0(){return us("crypto")}var kB0=du.getCrypto=xB0;function _B0(){return h3("localStorage")}var SB0=du.getLocalStorageOrThrow=_B0;function TB0(){return us("localStorage")}dB0=du.getLocalStorage=TB0;var Xg={};Object.defineProperty(Xg,"__esModule",{value:!0});var WR=Xg.getWindowMetadata=void 0;const qD=du;function PB0(){let u,e;try{u=qD.getDocumentOrThrow(),e=qD.getLocationOrThrow()}catch{return null}function t(){const c=u.getElementsByTagName("link"),E=[];for(let d=0;d-1){const g=p.getAttribute("href");if(g)if(g.toLowerCase().indexOf("https:")===-1&&g.toLowerCase().indexOf("http:")===-1&&g.indexOf("//")!==0){let b=e.protocol+"//"+e.host;if(g.indexOf("/")===0)b+=g;else{const m=e.pathname.split("/");m.pop();const A=m.join("/");b+=A+"/"+g}E.push(b)}else if(g.indexOf("//")===0){const b=e.protocol+g;E.push(b)}else E.push(g)}}return E}function n(...c){const E=u.getElementsByTagName("meta");for(let d=0;dp.getAttribute(g)).filter(g=>g?c.includes(g):!1);if(h.length&&h){const g=p.getAttribute("content");if(g)return g}}return""}function r(){let c=n("name","og:site_name","og:title","twitter:title");return c||(c=u.title),c}function i(){return n("description","og:description","twitter:description","keywords")}const a=r(),o=i(),s=e.origin,f=t();return{description:o,url:s,icons:f,name:a}}WR=Xg.getWindowMetadata=PB0;var u1={},OB0=u=>encodeURIComponent(u).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),qR="%[a-f0-9]{2}",HD=new RegExp("("+qR+")|([^%]+?)","gi"),GD=new RegExp("("+qR+")+","gi");function zC(u,e){try{return[decodeURIComponent(u.join(""))]}catch{}if(u.length===1)return u;e=e||1;var t=u.slice(0,e),n=u.slice(e);return Array.prototype.concat.call([],zC(t),zC(n))}function IB0(u){try{return decodeURIComponent(u)}catch{for(var e=u.match(HD)||[],t=1;t{if(!(typeof u=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[u];const t=u.indexOf(e);return t===-1?[u]:[u.slice(0,t),u.slice(t+e.length)]},jB0=function(u,e){for(var t={},n=Object.keys(u),r=Array.isArray(e),i=0;im==null,a=Symbol("encodeFragmentIdentifier");function o(m){switch(m.arrayFormat){case"index":return A=>(y,B)=>{const v=y.length;return B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,[l(A,m),"[",v,"]"].join("")]:[...y,[l(A,m),"[",l(v,m),"]=",l(B,m)].join("")]};case"bracket":return A=>(y,B)=>B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,[l(A,m),"[]"].join("")]:[...y,[l(A,m),"[]=",l(B,m)].join("")];case"colon-list-separator":return A=>(y,B)=>B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,[l(A,m),":list="].join("")]:[...y,[l(A,m),":list=",l(B,m)].join("")];case"comma":case"separator":case"bracket-separator":{const A=m.arrayFormat==="bracket-separator"?"[]=":"=";return y=>(B,v)=>v===void 0||m.skipNull&&v===null||m.skipEmptyString&&v===""?B:(v=v===null?"":v,B.length===0?[[l(y,m),A,l(v,m)].join("")]:[[B,l(v,m)].join(m.arrayFormatSeparator)])}default:return A=>(y,B)=>B===void 0||m.skipNull&&B===null||m.skipEmptyString&&B===""?y:B===null?[...y,l(A,m)]:[...y,[l(A,m),"=",l(B,m)].join("")]}}function s(m){let A;switch(m.arrayFormat){case"index":return(y,B,v)=>{if(A=/\[(\d*)\]$/.exec(y),y=y.replace(/\[\d*\]$/,""),!A){v[y]=B;return}v[y]===void 0&&(v[y]={}),v[y][A[1]]=B};case"bracket":return(y,B,v)=>{if(A=/(\[\])$/.exec(y),y=y.replace(/\[\]$/,""),!A){v[y]=B;return}if(v[y]===void 0){v[y]=[B];return}v[y]=[].concat(v[y],B)};case"colon-list-separator":return(y,B,v)=>{if(A=/(:list)$/.exec(y),y=y.replace(/:list$/,""),!A){v[y]=B;return}if(v[y]===void 0){v[y]=[B];return}v[y]=[].concat(v[y],B)};case"comma":case"separator":return(y,B,v)=>{const C=typeof B=="string"&&B.includes(m.arrayFormatSeparator),D=typeof B=="string"&&!C&&c(B,m).includes(m.arrayFormatSeparator);B=D?c(B,m):B;const T=C||D?B.split(m.arrayFormatSeparator).map(_=>c(_,m)):B===null?B:c(B,m);v[y]=T};case"bracket-separator":return(y,B,v)=>{const C=/(\[\])$/.test(y);if(y=y.replace(/\[\]$/,""),!C){v[y]=B&&c(B,m);return}const D=B===null?[]:B.split(m.arrayFormatSeparator).map(T=>c(T,m));if(v[y]===void 0){v[y]=D;return}v[y]=[].concat(v[y],D)};default:return(y,B,v)=>{if(v[y]===void 0){v[y]=B;return}v[y]=[].concat(v[y],B)}}}function f(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function l(m,A){return A.encode?A.strict?e(m):encodeURIComponent(m):m}function c(m,A){return A.decode?t(m):m}function E(m){return Array.isArray(m)?m.sort():typeof m=="object"?E(Object.keys(m)).sort((A,y)=>Number(A)-Number(y)).map(A=>m[A]):m}function d(m){const A=m.indexOf("#");return A!==-1&&(m=m.slice(0,A)),m}function p(m){let A="";const y=m.indexOf("#");return y!==-1&&(A=m.slice(y)),A}function h(m){m=d(m);const A=m.indexOf("?");return A===-1?"":m.slice(A+1)}function g(m,A){return A.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):A.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function b(m,A){A=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},A),f(A.arrayFormatSeparator);const y=s(A),B=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return B;for(const v of m.split("&")){if(v==="")continue;let[C,D]=n(A.decode?v.replace(/\+/g," "):v,"=");D=D===void 0?null:["comma","separator","bracket-separator"].includes(A.arrayFormat)?D:c(D,A),y(c(C,A),D,B)}for(const v of Object.keys(B)){const C=B[v];if(typeof C=="object"&&C!==null)for(const D of Object.keys(C))C[D]=g(C[D],A);else B[v]=g(C,A)}return A.sort===!1?B:(A.sort===!0?Object.keys(B).sort():Object.keys(B).sort(A.sort)).reduce((v,C)=>{const D=B[C];return D&&typeof D=="object"&&!Array.isArray(D)?v[C]=E(D):v[C]=D,v},Object.create(null))}u.extract=h,u.parse=b,u.stringify=(m,A)=>{if(!m)return"";A=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},A),f(A.arrayFormatSeparator);const y=D=>A.skipNull&&i(m[D])||A.skipEmptyString&&m[D]==="",B=o(A),v={};for(const D of Object.keys(m))y(D)||(v[D]=m[D]);const C=Object.keys(v);return A.sort!==!1&&C.sort(A.sort),C.map(D=>{const T=m[D];return T===void 0?"":T===null?l(D,A):Array.isArray(T)?T.length===0&&A.arrayFormat==="bracket-separator"?l(D,A)+"[]":T.reduce(B(D),[]).join("&"):l(D,A)+"="+l(T,A)}).filter(D=>D.length>0).join("&")},u.parseUrl=(m,A)=>{A=Object.assign({decode:!0},A);const[y,B]=n(m,"#");return Object.assign({url:y.split("?")[0]||"",query:b(h(m),A)},A&&A.parseFragmentIdentifier&&B?{fragmentIdentifier:c(B,A)}:{})},u.stringifyUrl=(m,A)=>{A=Object.assign({encode:!0,strict:!0,[a]:!0},A);const y=d(m.url).split("?")[0]||"",B=u.extract(m.url),v=u.parse(B,{sort:!1}),C=Object.assign(v,m.query);let D=u.stringify(C,A);D&&(D=`?${D}`);let T=p(m.url);return m.fragmentIdentifier&&(T=`#${A[a]?l(m.fragmentIdentifier,A):m.fragmentIdentifier}`),`${y}${D}${T}`},u.pick=(m,A,y)=>{y=Object.assign({parseFragmentIdentifier:!0,[a]:!1},y);const{url:B,query:v,fragmentIdentifier:C}=u.parseUrl(m,y);return u.stringifyUrl({url:B,query:r(v,A),fragmentIdentifier:C},y)},u.exclude=(m,A,y)=>{const B=Array.isArray(A)?v=>!A.includes(v):(v,C)=>!A(v,C);return u.pick(m,B,y)}})(u1);const zB0={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}},LB0=":";function ZP0(u){const[e,t]=u.split(LB0);return{namespace:e,reference:t}}function XP0(u,e=[]){const t=[];return Object.keys(u).forEach(n=>{if(e.length&&!e.includes(n))return;const r=u[n];t.push(...r.accounts)}),t}function HR(u,e){return u.includes(":")?[u]:e.chains||[]}const GR="base10",ct="base16",LC="base64pad",uA="utf8",VR=0,hc=1,$B0=0,VD=1,$C=12,eA=32;function uO0(){const u=Jg.generateKeyPair();return{privateKey:zn(u.secretKey,ct),publicKey:zn(u.publicKey,ct)}}function eO0(){const u=td.randomBytes(eA);return zn(u,ct)}function tO0(u,e){const t=Jg.sharedKey(Pn(u,ct),Pn(e,ct),!0),n=new gy0(ad.SHA256,t).expand(eA);return zn(n,ct)}function nO0(u){const e=ad.hash(Pn(u,ct));return zn(e,ct)}function rO0(u){const e=ad.hash(Pn(u,uA));return zn(e,ct)}function UB0(u){return Pn(`${u}`,GR)}function fd(u){return Number(zn(u,GR))}function iO0(u){const e=UB0(typeof u.type<"u"?u.type:VR);if(fd(e)===hc&&typeof u.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const t=typeof u.senderPublicKey<"u"?Pn(u.senderPublicKey,ct):void 0,n=typeof u.iv<"u"?Pn(u.iv,ct):td.randomBytes($C),r=new Kg.ChaCha20Poly1305(Pn(u.symKey,ct)).seal(n,Pn(u.message,uA));return WB0({type:e,sealed:r,iv:n,senderPublicKey:t})}function aO0(u){const e=new Kg.ChaCha20Poly1305(Pn(u.symKey,ct)),{sealed:t,iv:n}=KR(u.encoded),r=e.open(n,t);if(r===null)throw new Error("Failed to decrypt");return zn(r,uA)}function WB0(u){if(fd(u.type)===hc){if(typeof u.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return zn(kD([u.type,u.senderPublicKey,u.iv,u.sealed]),LC)}return zn(kD([u.type,u.iv,u.sealed]),LC)}function KR(u){const e=Pn(u,LC),t=e.slice($B0,VD),n=VD;if(fd(t)===hc){const o=n+eA,s=o+$C,f=e.slice(n,o),l=e.slice(o,s),c=e.slice(s);return{type:t,sealed:c,iv:l,senderPublicKey:f}}const r=n+$C,i=e.slice(n,r),a=e.slice(r);return{type:t,sealed:a,iv:i}}function oO0(u,e){const t=KR(u);return qB0({type:fd(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?zn(t.senderPublicKey,ct):void 0,receiverPublicKey:e==null?void 0:e.receiverPublicKey})}function qB0(u){const e=(u==null?void 0:u.type)||VR;if(e===hc){if(typeof(u==null?void 0:u.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(u==null?void 0:u.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:u==null?void 0:u.senderPublicKey,receiverPublicKey:u==null?void 0:u.receiverPublicKey}}function sO0(u){return u.type===hc&&typeof u.senderPublicKey=="string"&&typeof u.receiverPublicKey=="string"}var HB0=Object.defineProperty,KD=Object.getOwnPropertySymbols,GB0=Object.prototype.hasOwnProperty,VB0=Object.prototype.propertyIsEnumerable,QD=(u,e,t)=>e in u?HB0(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,JD=(u,e)=>{for(var t in e||(e={}))GB0.call(e,t)&&QD(u,t,e[t]);if(KD)for(var t of KD(e))VB0.call(e,t)&&QD(u,t,e[t]);return u};const KB0="ReactNative",It={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},QB0="js";function QR(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function ld(){return!$R()&&!!Zg()&&navigator.product===KB0}function tA(){return!QR()&&!!Zg()}function Cc(){return ld()?It.reactNative:QR()?It.node:tA()?It.browser:It.unknown}function JB0(u,e){let t=u1.parse(u);return t=JD(JD({},t),e),u=u1.stringify(t),u}function fO0(){return WR()||{name:"",description:"",url:"",icons:[""]}}function YB0(){if(Cc()===It.reactNative&&typeof global<"u"&&typeof(global==null?void 0:global.Platform)<"u"){const{OS:t,Version:n}=global.Platform;return[t,n].join("-")}const u=Iv0();if(u===null)return"unknown";const e=u.os?u.os.replace(" ","").toLowerCase():"unknown";return u.type==="browser"?[e,u.name,u.version].join("-"):[e,u.version].join("-")}function ZB0(){var u;const e=Cc();return e===It.browser?[e,((u=UR())==null?void 0:u.host)||"unknown"].join(":"):e}function XB0(u,e,t){const n=YB0(),r=ZB0();return[[u,e].join("-"),[QB0,t].join("-"),n,r].join("/")}function lO0({protocol:u,version:e,relayUrl:t,sdkVersion:n,auth:r,projectId:i,useOnCloseEvent:a}){const o=t.split("?"),s=XB0(u,e,n),f={auth:r,ua:s,projectId:i,useOnCloseEvent:a||void 0},l=JB0(o[1]||"",f);return o[0]+"?"+l}function Ua(u,e){return u.filter(t=>e.includes(t)).length===u.length}function cO0(u){return Object.fromEntries(u.entries())}function EO0(u){return new Map(Object.entries(u))}function dO0(u=mo.FIVE_MINUTES,e){const t=mo.toMiliseconds(u||mo.FIVE_MINUTES);let n,r,i;return{resolve:a=>{i&&n&&(clearTimeout(i),n(a))},reject:a=>{i&&r&&(clearTimeout(i),r(a))},done:()=>new Promise((a,o)=>{i=setTimeout(()=>{o(new Error(e))},t),n=a,r=o})}}function pO0(u,e,t){return new Promise(async(n,r)=>{const i=setTimeout(()=>r(new Error(t)),e);try{const a=await u;n(a)}catch(a){r(a)}clearTimeout(i)})}function JR(u,e){if(typeof e=="string"&&e.startsWith(`${u}:`))return e;if(u.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(u.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${u}`)}function hO0(u){return JR("topic",u)}function CO0(u){return JR("id",u)}function mO0(u){const[e,t]=u.split(":"),n={id:void 0,topic:void 0};if(e==="topic"&&typeof t=="string")n.topic=t;else if(e==="id"&&Number.isInteger(Number(t)))n.id=Number(t);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${t}`);return n}function bO0(u,e){return mo.fromMiliseconds((e||Date.now())+mo.toMiliseconds(u))}function gO0(u){return Date.now()>=mo.toMiliseconds(u)}function AO0(u,e){return`${u}${e?`:${e}`:""}`}function Cp(u=[],e=[]){return[...new Set([...u,...e])]}async function yO0({id:u,topic:e,wcDeepLink:t}){try{if(!t)return;const n=typeof t=="string"?JSON.parse(t):t;let r=n==null?void 0:n.href;if(typeof r!="string")return;r.endsWith("/")&&(r=r.slice(0,-1));const i=`${r}/wc?requestId=${u}&sessionTopic=${e}`,a=Cc();a===It.browser?i.startsWith("https://")?window.open(i,"_blank","noreferrer noopener"):window.open(i,"_self","noreferrer noopener"):a===It.reactNative&&typeof(global==null?void 0:global.Linking)<"u"&&await global.Linking.openURL(i)}catch(n){console.error(n)}}const uF0="irn";function vO0(u){return(u==null?void 0:u.relay)||{protocol:uF0}}function BO0(u){const e=zB0[u];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${u}`);return e}var eF0=Object.defineProperty,YD=Object.getOwnPropertySymbols,tF0=Object.prototype.hasOwnProperty,nF0=Object.prototype.propertyIsEnumerable,ZD=(u,e,t)=>e in u?eF0(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,rF0=(u,e)=>{for(var t in e||(e={}))tF0.call(e,t)&&ZD(u,t,e[t]);if(YD)for(var t of YD(e))nF0.call(e,t)&&ZD(u,t,e[t]);return u};function iF0(u,e="-"){const t={},n="relay"+e;return Object.keys(u).forEach(r=>{if(r.startsWith(n)){const i=r.replace(n,""),a=u[r];t[i]=a}}),t}function FO0(u){const e=u.indexOf(":"),t=u.indexOf("?")!==-1?u.indexOf("?"):void 0,n=u.substring(0,e),r=u.substring(e+1,t).split("@"),i=typeof t<"u"?u.substring(t):"",a=u1.parse(i);return{protocol:n,topic:aF0(r[0]),version:parseInt(r[1],10),symKey:a.symKey,relay:iF0(a)}}function aF0(u){return u.startsWith("//")?u.substring(2):u}function oF0(u,e="-"){const t="relay",n={};return Object.keys(u).forEach(r=>{const i=t+e+r;u[r]&&(n[i]=u[r])}),n}function DO0(u){return`${u.protocol}:${u.topic}@${u.version}?`+u1.stringify(rF0({symKey:u.symKey},oF0(u.relay)))}var sF0=Object.defineProperty,fF0=Object.defineProperties,lF0=Object.getOwnPropertyDescriptors,XD=Object.getOwnPropertySymbols,cF0=Object.prototype.hasOwnProperty,EF0=Object.prototype.propertyIsEnumerable,uw=(u,e,t)=>e in u?sF0(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,dF0=(u,e)=>{for(var t in e||(e={}))cF0.call(e,t)&&uw(u,t,e[t]);if(XD)for(var t of XD(e))EF0.call(e,t)&&uw(u,t,e[t]);return u},pF0=(u,e)=>fF0(u,lF0(e));function C3(u){const e=[];return u.forEach(t=>{const[n,r]=t.split(":");e.push(`${n}:${r}`)}),e}function hF0(u){const e=[];return Object.values(u).forEach(t=>{e.push(...C3(t.accounts))}),e}function CF0(u,e){const t=[];return Object.values(u).forEach(n=>{C3(n.accounts).includes(e)&&t.push(...n.methods)}),t}function mF0(u,e){const t=[];return Object.values(u).forEach(n=>{C3(n.accounts).includes(e)&&t.push(...n.events)}),t}function wO0(u,e){const t=xF0(u,e);if(t)throw new Error(t.message);const n={};for(const[r,i]of Object.entries(u))n[r]={methods:i.methods,events:i.events,chains:i.accounts.map(a=>`${a.split(":")[0]}:${a.split(":")[1]}`)};return n}function YR(u){return u.includes(":")}function bF0(u){return YR(u)?u.split(":")[0]:u}function ZR(u){var e,t,n;const r={};if(!nA(u))return r;for(const[i,a]of Object.entries(u)){const o=YR(i)?[i]:a.chains,s=a.methods||[],f=a.events||[],l=bF0(i);r[l]=pF0(dF0({},r[l]),{chains:Cp(o,(e=r[l])==null?void 0:e.chains),methods:Cp(s,(t=r[l])==null?void 0:t.methods),events:Cp(f,(n=r[l])==null?void 0:n.events)})}return r}const gF0={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},AF0={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function xi(u,e){const{message:t,code:n}=AF0[u];return{message:e?`${t} ${e}`:t,code:n}}function Tf(u,e){const{message:t,code:n}=gF0[u];return{message:e?`${t} ${e}`:t,code:n}}function cd(u,e){return Array.isArray(u)?typeof e<"u"&&u.length?u.every(e):!0:!1}function nA(u){return Object.getPrototypeOf(u)===Object.prototype&&Object.keys(u).length}function bo(u){return typeof u>"u"}function bn(u,e){return e&&bo(u)?!0:typeof u=="string"&&!!u.trim().length}function rA(u,e){return e&&bo(u)?!0:typeof u=="number"&&!isNaN(u)}function xO0(u,e){const{requiredNamespaces:t}=e,n=Object.keys(u.namespaces),r=Object.keys(t);let i=!0;return Ua(r,n)?(n.forEach(a=>{const{accounts:o,methods:s,events:f}=u.namespaces[a],l=C3(o),c=t[a];(!Ua(HR(a,c),l)||!Ua(c.methods,s)||!Ua(c.events,f))&&(i=!1)}),i):!1}function y2(u){return bn(u,!1)&&u.includes(":")?u.split(":").length===2:!1}function yF0(u){if(bn(u,!1)&&u.includes(":")){const e=u.split(":");if(e.length===3){const t=e[0]+":"+e[1];return!!e[2]&&y2(t)}}return!1}function kO0(u){if(bn(u,!1))try{return typeof new URL(u)<"u"}catch{return!1}return!1}function _O0(u){var e;return(e=u==null?void 0:u.proposer)==null?void 0:e.publicKey}function SO0(u){return u==null?void 0:u.topic}function TO0(u,e){let t=null;return bn(u==null?void 0:u.publicKey,!1)||(t=xi("MISSING_OR_INVALID",`${e} controller public key should be a string`)),t}function ew(u){let e=!0;return cd(u)?u.length&&(e=u.every(t=>bn(t,!1))):e=!1,e}function vF0(u,e,t){let n=null;return cd(e)&&e.length?e.forEach(r=>{n||y2(r)||(n=Tf("UNSUPPORTED_CHAINS",`${t}, chain ${r} should be a string and conform to "namespace:chainId" format`))}):y2(u)||(n=Tf("UNSUPPORTED_CHAINS",`${t}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),n}function BF0(u,e,t){let n=null;return Object.entries(u).forEach(([r,i])=>{if(n)return;const a=vF0(r,HR(r,i),`${e} ${t}`);a&&(n=a)}),n}function FF0(u,e){let t=null;return cd(u)?u.forEach(n=>{t||yF0(n)||(t=Tf("UNSUPPORTED_ACCOUNTS",`${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):t=Tf("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}function DF0(u,e){let t=null;return Object.values(u).forEach(n=>{if(t)return;const r=FF0(n==null?void 0:n.accounts,`${e} namespace`);r&&(t=r)}),t}function wF0(u,e){let t=null;return ew(u==null?void 0:u.methods)?ew(u==null?void 0:u.events)||(t=Tf("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):t=Tf("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),t}function XR(u,e){let t=null;return Object.values(u).forEach(n=>{if(t)return;const r=wF0(n,`${e}, namespace`);r&&(t=r)}),t}function PO0(u,e,t){let n=null;if(u&&nA(u)){const r=XR(u,e);r&&(n=r);const i=BF0(u,e,t);i&&(n=i)}else n=xi("MISSING_OR_INVALID",`${e}, ${t} should be an object with data`);return n}function xF0(u,e){let t=null;if(u&&nA(u)){const n=XR(u,e);n&&(t=n);const r=DF0(u,e);r&&(t=r)}else t=xi("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return t}function kF0(u){return bn(u.protocol,!0)}function OO0(u,e){let t=!1;return e&&!u?t=!0:u&&cd(u)&&u.length&&u.forEach(n=>{t=kF0(n)}),t}function IO0(u){return typeof u=="number"}function NO0(u){return typeof u<"u"&&typeof u!==null}function RO0(u){return!(!u||typeof u!="object"||!u.code||!rA(u.code,!1)||!u.message||!bn(u.message,!1))}function MO0(u){return!(bo(u)||!bn(u.method,!1))}function jO0(u){return!(bo(u)||bo(u.result)&&bo(u.error)||!rA(u.id,!1)||!bn(u.jsonrpc,!1))}function zO0(u){return!(bo(u)||!bn(u.name,!1))}function LO0(u,e){return!(!y2(e)||!hF0(u).includes(e))}function $O0(u,e,t){return bn(t,!1)?CF0(u,e).includes(t):!1}function UO0(u,e,t){return bn(t,!1)?mF0(u,e).includes(t):!1}function WO0(u,e,t){let n=null;const r=_F0(u),i=SF0(e),a=Object.keys(r),o=Object.keys(i),s=tw(Object.keys(u)),f=tw(Object.keys(e)),l=s.filter(c=>!f.includes(c));return l.length&&(n=xi("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces. Required: ${l.toString()} Received: ${Object.keys(e).toString()}`)),Ua(a,o)||(n=xi("NON_CONFORMING_NAMESPACES",`${t} namespaces chains don't satisfy required namespaces. Required: ${a.toString()} - Approved: ${o.toString()}`)),Object.keys(e).forEach(c=>{if(!c.includes(":")||n)return;const E=pf(e[c].accounts);E.includes(c)||(n=xi("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${c} + Approved: ${o.toString()}`)),Object.keys(e).forEach(c=>{if(!c.includes(":")||n)return;const E=C3(e[c].accounts);E.includes(c)||(n=xi("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${c} Required: ${c} - Approved: ${E.toString()}`))}),a.forEach(c=>{n||(Ua(r[c].methods,i[c].methods)?Ua(r[c].events,i[c].events)||(n=xi("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${c}`)):n=xi("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${c}`))}),n}function wF0(u){const e={};return Object.keys(u).forEach(t=>{var n;t.includes(":")?e[t]=u[t]:(n=u[t].chains)==null||n.forEach(r=>{e[r]={methods:u[t].methods,events:u[t].events}})}),e}function XD(u){return[...new Set(u.map(e=>e.includes(":")?e.split(":")[0]:e))]}function xF0(u){const e={};return Object.keys(u).forEach(t=>{if(t.includes(":"))e[t]=u[t];else{const n=pf(u[t].accounts);n==null||n.forEach(r=>{e[r]={accounts:u[t].accounts.filter(i=>i.includes(`${r}:`)),methods:u[t].methods,events:u[t].events}})}}),e}function TO0(u,e){return rA(u,!1)&&u<=e.max&&u>=e.min}function PO0(){const u=C1();return new Promise(e=>{switch(u){case It.browser:e(kF0());break;case It.reactNative:e(_F0());break;case It.node:e(SF0());break;default:e(!0)}})}function kF0(){return tA()&&(navigator==null?void 0:navigator.onLine)}async function _F0(){if(ld()&&typeof global<"u"&&global!=null&&global.NetInfo){const u=await(global==null?void 0:global.NetInfo.fetch());return u==null?void 0:u.isConnected}return!0}function SF0(){return!0}function OO0(u){switch(C1()){case It.browser:TF0(u);break;case It.reactNative:PF0(u);break}}function TF0(u){!ld()&&tA()&&(window.addEventListener("online",()=>u(!0)),window.addEventListener("offline",()=>u(!1)))}function PF0(u){ld()&&typeof global<"u"&&global!=null&&global.NetInfo&&(global==null||global.NetInfo.addEventListener(e=>u(e==null?void 0:e.isConnected)))}const m8={};class IO0{static get(e){return m8[e]}static set(e,t){m8[e]=t}static delete(e){delete m8[e]}}var YR="eip155",OF0="store",ZR="requestedChains",UC="wallet_addEthereumChain",Fu,hl,H6,WC,iA,XR,G6,qC,HC,uM,v9,aA,ys,Gf,B9,oA,F9,sA,D9,fA,eM=class extends Zc{constructor(u){super({...u,options:{isNewChainsStale:!0,...u.options}}),Yu(this,H6),Yu(this,iA),Yu(this,G6),Yu(this,HC),Yu(this,v9),Yu(this,ys),Yu(this,B9),Yu(this,F9),Yu(this,D9),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,Yu(this,Fu,void 0),Yu(this,hl,void 0),this.onAccountsChanged=e=>{e.length===0?this.emit("disconnect"):this.emit("change",{account:Su(e[0])})},this.onChainChanged=e=>{const t=Number(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=()=>{Qu(this,ys,Gf).call(this,[]),this.emit("disconnect")},this.onDisplayUri=e=>{this.emit("message",{type:"display_uri",data:e})},this.onConnect=()=>{this.emit("connect",{})},Qu(this,H6,WC).call(this)}async connect({chainId:u,pairingTopic:e}={}){var t,n,r,i,a;try{let o=u;if(!o){const p=(t=this.storage)==null?void 0:t.getItem(OF0),h=(i=(r=(n=p==null?void 0:p.state)==null?void 0:n.data)==null?void 0:r.chain)==null?void 0:i.id;h&&!this.isChainUnsupported(h)?o=h:o=(a=this.chains[0])==null?void 0:a.id}if(!o)throw new Error("No chains found on connector.");const s=await this.getProvider();Qu(this,HC,uM).call(this);const f=Qu(this,G6,qC).call(this);if(s.session&&f&&await s.disconnect(),!s.session||f){const p=this.chains.filter(h=>h.id!==o).map(h=>h.id);this.emit("message",{type:"connecting"}),await s.connect({pairingTopic:e,chains:[o],optionalChains:p.length?p:void 0}),Qu(this,ys,Gf).call(this,this.chains.map(({id:h})=>h))}const l=await s.enable(),c=Su(l[0]),E=await this.getChainId(),d=this.isChainUnsupported(E);return{account:c,chain:{id:E,unsupported:d}}}catch(o){throw/user rejected/i.test(o==null?void 0:o.message)?new Gu(o):o}}async disconnect(){const u=await this.getProvider();try{await u.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{Qu(this,v9,aA).call(this),Qu(this,ys,Gf).call(this,[])}}async getAccount(){const{accounts:u}=await this.getProvider();return Su(u[0])}async getChainId(){const{chainId:u}=await this.getProvider();return u}async getProvider({chainId:u}={}){return W0(this,Fu)||await Qu(this,H6,WC).call(this),u&&await this.switchChain(u),W0(this,Fu)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider({chainId:u}),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return Y3({account:t,chain:n,transport:Q3(e)})}async isAuthorized(){try{const[u,e]=await Promise.all([this.getAccount(),this.getProvider()]),t=Qu(this,G6,qC).call(this);if(!u)return!1;if(t&&e.session){try{await e.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(u){var t,n;const e=this.chains.find(r=>r.id===u);if(!e)throw new jn(new Error("chain not found on connector."));try{const r=await this.getProvider(),i=Qu(this,F9,sA).call(this),a=Qu(this,D9,fA).call(this);if(!i.includes(u)&&a.includes(UC)){await r.request({method:UC,params:[{chainId:S0(e.id),blockExplorerUrls:[(n=(t=e.blockExplorers)==null?void 0:t.default)==null?void 0:n.url],chainName:e.name,nativeCurrency:e.nativeCurrency,rpcUrls:[...e.rpcUrls.default.http]}]});const s=Qu(this,B9,oA).call(this);s.push(u),Qu(this,ys,Gf).call(this,s)}return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:S0(u)}]}),e}catch(r){const i=typeof r=="string"?r:r==null?void 0:r.message;throw/user rejected request/i.test(i)?new Gu(r):new jn(r)}}};Fu=new WeakMap;hl=new WeakMap;H6=new WeakSet;WC=async function(){return!W0(this,hl)&&typeof window<"u"&&Xr(this,hl,Qu(this,iA,XR).call(this)),W0(this,hl)};iA=new WeakSet;XR=async function(){const{EthereumProvider:u,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await L0(()=>import("./index.es-fegywn_p.js"),__vite__mapDeps([0,1])),[n,...r]=this.chains.map(({id:i})=>i);if(n){const{projectId:i,showQrModal:a=!0,qrModalOptions:o,metadata:s,relayUrl:f}=this.options;Xr(this,Fu,await u.init({showQrModal:a,qrModalOptions:o,projectId:i,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:r.length?r:void 0,rpcMap:Object.fromEntries(this.chains.map(l=>[l.id,l.rpcUrls.default.http[0]])),metadata:s,relayUrl:f}))}};G6=new WeakSet;qC=function(){if(Qu(this,D9,fA).call(this).includes(UC)||!this.options.isNewChainsStale)return!1;const e=Qu(this,B9,oA).call(this),t=this.chains.map(({id:r})=>r),n=Qu(this,F9,sA).call(this);return n.length&&!n.some(r=>t.includes(r))?!1:!t.every(r=>e.includes(r))};HC=new WeakSet;uM=function(){W0(this,Fu)&&(Qu(this,v9,aA).call(this),W0(this,Fu).on("accountsChanged",this.onAccountsChanged),W0(this,Fu).on("chainChanged",this.onChainChanged),W0(this,Fu).on("disconnect",this.onDisconnect),W0(this,Fu).on("session_delete",this.onDisconnect),W0(this,Fu).on("display_uri",this.onDisplayUri),W0(this,Fu).on("connect",this.onConnect))};v9=new WeakSet;aA=function(){W0(this,Fu)&&(W0(this,Fu).removeListener("accountsChanged",this.onAccountsChanged),W0(this,Fu).removeListener("chainChanged",this.onChainChanged),W0(this,Fu).removeListener("disconnect",this.onDisconnect),W0(this,Fu).removeListener("session_delete",this.onDisconnect),W0(this,Fu).removeListener("display_uri",this.onDisplayUri),W0(this,Fu).removeListener("connect",this.onConnect))};ys=new WeakSet;Gf=function(u){var e;(e=this.storage)==null||e.setItem(ZR,u)};B9=new WeakSet;oA=function(){var u;return((u=this.storage)==null?void 0:u.getItem(ZR))??[]};F9=new WeakSet;sA=function(){var n,r,i;if(!W0(this,Fu))return[];const u=(n=W0(this,Fu).session)==null?void 0:n.namespaces;return u?((i=(r=QR(u)[YR])==null?void 0:r.chains)==null?void 0:i.map(a=>parseInt(a.split(":")[1]||"")))??[]:[]};D9=new WeakSet;fA=function(){var n,r;if(!W0(this,Fu))return[];const u=(n=W0(this,Fu).session)==null?void 0:n.namespaces;return u?((r=QR(u)[YR])==null?void 0:r.methods)??[]:[]};var Vf,vs,IF0=class extends Zc{constructor({chains:u,options:e}){super({chains:u,options:{reloadOnDisconnect:!1,...e}}),this.id="coinbaseWallet",this.name="Coinbase Wallet",this.ready=!0,Yu(this,Vf,void 0),Yu(this,vs,void 0),this.onAccountsChanged=t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Su(t[0])})},this.onChainChanged=t=>{const n=To(t),r=this.isChainUnsupported(n);this.emit("change",{chain:{id:n,unsupported:r}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:u}={}){try{const e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});const t=await e.enable(),n=Su(t[0]);let r=await this.getChainId(),i=this.isChainUnsupported(r);return u&&r!==u&&(r=(await this.switchChain(u)).id,i=this.isChainUnsupported(r)),{account:n,chain:{id:r,unsupported:i}}}catch(e){throw/(user closed modal|accounts received is empty)/i.test(e.message)?new Gu(e):e}}async disconnect(){if(!W0(this,vs))return;const u=await this.getProvider();u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),u.disconnect(),u.close()}async getAccount(){const e=await(await this.getProvider()).request({method:"eth_accounts"});return Su(e[0])}async getChainId(){const u=await this.getProvider();return To(u.chainId)}async getProvider(){var u;if(!W0(this,vs)){let e=(await L0(()=>import("./index-Y_z407jB.js").then(a=>a.i),__vite__mapDeps([2,3]))).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),Xr(this,Vf,new e(this.options));const t=(u=W0(this,Vf).walletExtension)==null?void 0:u.getChainId(),n=this.chains.find(a=>this.options.chainId?a.id===this.options.chainId:a.id===t)||this.chains[0],r=this.options.chainId||(n==null?void 0:n.id),i=this.options.jsonRpcUrl||(n==null?void 0:n.rpcUrls.default.http[0]);Xr(this,vs,W0(this,Vf).makeWeb3Provider(i,r))}return W0(this,vs)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return Y3({account:t,chain:n,transport:Q3(e)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(u){var n;const e=await this.getProvider(),t=S0(u);try{return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),this.chains.find(r=>r.id===u)??{id:u,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(r){const i=this.chains.find(a=>a.id===u);if(!i)throw new VO({chainId:u,connectorId:this.id});if(r.code===4902)try{return await e.request({method:"wallet_addEthereumChain",params:[{chainId:t,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:[((n=i.rpcUrls.public)==null?void 0:n.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(a){throw new Gu(a)}throw new jn(r)}}async watchAsset({address:u,decimals:e=18,image:t,symbol:n}){return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:u,decimals:e,image:t,symbol:n}}})}};Vf=new WeakMap;vs=new WeakMap;var V6,NF0=class extends B3{constructor({chains:u,options:e}={}){const t={name:"MetaMask",shimDisconnect:!0,getProvider(){function n(i){if(i!=null&&i.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isApexWallet&&!i.isAvalanche&&!i.isBitKeep&&!i.isBlockWallet&&!i.isCoin98&&!i.isFordefi&&!i.isMathWallet&&!(i.isOkxWallet||i.isOKExWallet)&&!(i.isOneInchIOSWallet||i.isOneInchAndroidWallet)&&!i.isOpera&&!i.isPortal&&!i.isRabby&&!i.isDefiant&&!i.isTokenPocket&&!i.isTokenary&&!i.isZeal&&!i.isZerion)return i}if(typeof window>"u")return;const r=window.ethereum;return r!=null&&r.providers?r.providers.find(n):n(r)},...e};super({chains:u,options:t}),this.id="metaMask",this.shimDisconnectKey=`${this.id}.shimDisconnect`,Yu(this,V6,void 0),Xr(this,V6,t.UNSTABLE_shimOnConnectSelectAccount)}async connect({chainId:u}={}){var e,t,n,r;try{const i=await this.getProvider();if(!i)throw new nt;i.on&&(i.on("accountsChanged",this.onAccountsChanged),i.on("chainChanged",this.onChainChanged),i.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let a=null;if(W0(this,V6)&&((e=this.options)!=null&&e.shimDisconnect)&&!((t=this.storage)!=null&&t.getItem(this.shimDisconnectKey))&&(a=await this.getAccount().catch(()=>null),!!a))try{await i.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),a=await this.getAccount()}catch(l){if(this.isUserRejectedRequestError(l))throw new Gu(l);if(l.code===new Yr(l).code)throw l}if(!a){const f=await i.request({method:"eth_requestAccounts"});a=Su(f[0])}let o=await this.getChainId(),s=this.isChainUnsupported(o);return u&&o!==u&&(o=(await this.switchChain(u)).id,s=this.isChainUnsupported(o)),(n=this.options)!=null&&n.shimDisconnect&&((r=this.storage)==null||r.setItem(this.shimDisconnectKey,!0)),{account:a,chain:{id:o,unsupported:s},provider:i}}catch(i){throw this.isUserRejectedRequestError(i)?new Gu(i):i.code===-32002?new Yr(i):i}}};V6=new WeakMap;var RF0=/(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i,Ta,GC,tM,MF0=class extends Zc{constructor(){super(...arguments),Yu(this,GC),this.id="walletConnectLegacy",this.name="WalletConnectLegacy",this.ready=!0,Yu(this,Ta,void 0),this.onAccountsChanged=u=>{u.length===0?this.emit("disconnect"):this.emit("change",{account:Su(u[0])})},this.onChainChanged=u=>{const e=To(u),t=this.isChainUnsupported(e);this.emit("change",{chain:{id:e,unsupported:t}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:u}={}){var e,t,n,r,i,a;try{let o=u;if(!o){const p=(e=this.storage)==null?void 0:e.getItem("store"),h=(r=(n=(t=p==null?void 0:p.state)==null?void 0:t.data)==null?void 0:n.chain)==null?void 0:r.id;h&&!this.isChainUnsupported(h)&&(o=h)}const s=await this.getProvider({chainId:o,create:!0});s.on("accountsChanged",this.onAccountsChanged),s.on("chainChanged",this.onChainChanged),s.on("disconnect",this.onDisconnect),setTimeout(()=>this.emit("message",{type:"connecting"}),0);const f=await s.enable(),l=Su(f[0]),c=await this.getChainId(),E=this.isChainUnsupported(c),d=((a=(i=s.connector)==null?void 0:i.peerMeta)==null?void 0:a.name)??"";return RF0.test(d)&&(this.switchChain=Qu(this,GC,tM)),{account:l,chain:{id:c,unsupported:E}}}catch(o){throw/user closed modal/i.test(o.message)?new Gu(o):o}}async disconnect(){const u=await this.getProvider();await u.disconnect(),u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),typeof localStorage<"u"&&localStorage.removeItem("walletconnect")}async getAccount(){const e=(await this.getProvider()).accounts;return Su(e[0])}async getChainId(){const u=await this.getProvider();return To(u.chainId)}async getProvider({chainId:u,create:e}={}){var t,n;if(!W0(this,Ta)||u||e){const r=(t=this.options)!=null&&t.infuraId?{}:this.chains.reduce((a,o)=>({...a,[o.id]:o.rpcUrls.default.http[0]}),{}),i=(await L0(()=>import("./index-_MKzDFaS.js"),__vite__mapDeps([4,1,5,3]))).default;Xr(this,Ta,new i({...this.options,chainId:u,rpc:{...r,...(n=this.options)==null?void 0:n.rpc}})),W0(this,Ta).http=await W0(this,Ta).setHttpProvider(u)}return W0(this,Ta)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider({chainId:u}),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return Y3({account:t,chain:n,transport:Q3(e)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}};Ta=new WeakMap;GC=new WeakSet;tM=async function(u){const e=await this.getProvider(),t=S0(u);try{return await Promise.race([e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),new Promise(n=>this.on("change",({chain:r})=>{(r==null?void 0:r.id)===u&&n(u)}))]),this.chains.find(n=>n.id===u)??{id:u,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(n){const r=typeof n=="string"?n:n==null?void 0:n.message;throw/user rejected request/i.test(r)?new Gu(n):new jn(n)}};var nM={},Ed={},lA={exports:{}},r4=typeof Reflect=="object"?Reflect:null,uw=r4&&typeof r4.apply=="function"?r4.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},K6;r4&&typeof r4.ownKeys=="function"?K6=r4.ownKeys:Object.getOwnPropertySymbols?K6=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:K6=function(e){return Object.getOwnPropertyNames(e)};function jF0(u){console&&console.warn&&console.warn(u)}var rM=Number.isNaN||function(e){return e!==e};function lu(){lu.init.call(this)}lA.exports=lu;lA.exports.once=UF0;lu.EventEmitter=lu;lu.prototype._events=void 0;lu.prototype._eventsCount=0;lu.prototype._maxListeners=void 0;var ew=10;function dd(u){if(typeof u!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof u)}Object.defineProperty(lu,"defaultMaxListeners",{enumerable:!0,get:function(){return ew},set:function(u){if(typeof u!="number"||u<0||rM(u))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+u+".");ew=u}});lu.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};lu.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||rM(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function iM(u){return u._maxListeners===void 0?lu.defaultMaxListeners:u._maxListeners}lu.prototype.getMaxListeners=function(){return iM(this)};lu.prototype.emit=function(e){for(var t=[],n=1;n0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")uw(s,this,t);else for(var f=s.length,l=lM(s,f),n=0;n0&&a.length>r&&!a.warned){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=u,o.type=e,o.count=a.length,jF0(o)}return u}lu.prototype.addListener=function(e,t){return aM(this,e,t,!1)};lu.prototype.on=lu.prototype.addListener;lu.prototype.prependListener=function(e,t){return aM(this,e,t,!0)};function zF0(){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 oM(u,e,t){var n={fired:!1,wrapFn:void 0,target:u,type:e,listener:t},r=zF0.bind(n);return r.listener=t,n.wrapFn=r,r}lu.prototype.once=function(e,t){return dd(t),this.on(e,oM(this,e,t)),this};lu.prototype.prependOnceListener=function(e,t){return dd(t),this.prependListener(e,oM(this,e,t)),this};lu.prototype.removeListener=function(e,t){var n,r,i,a,o;if(dd(t),r=this._events,r===void 0)return this;if(n=r[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():LF0(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit("removeListener",e,o||t)}return this};lu.prototype.off=lu.prototype.removeListener;lu.prototype.removeAllListeners=function(e){var t,n,r;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[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function sM(u,e,t){var n=u._events;if(n===void 0)return[];var r=n[e];return r===void 0?[]:typeof r=="function"?t?[r.listener||r]:[r]:t?$F0(r):lM(r,r.length)}lu.prototype.listeners=function(e){return sM(this,e,!0)};lu.prototype.rawListeners=function(e){return sM(this,e,!1)};lu.listenerCount=function(u,e){return typeof u.listenerCount=="function"?u.listenerCount(e):fM.call(u,e)};lu.prototype.listenerCount=fM;function fM(u){var e=this._events;if(e!==void 0){var t=e[u];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}lu.prototype.eventNames=function(){return this._eventsCount>0?K6(this._events):[]};function lM(u,e){for(var t=new Array(e),n=0;n(s&&(s.hash=n[0]),s));case"eth_getTransactionReceipt":{let s=n[0];try{s=(await this.sdk.txs.getBySafeTxHash(s)).txHash||s}catch{}return this.sdk.eth.getTransactionReceipt([s]).then(f=>(f&&(f.transactionHash=n[0]),f))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(n[0]);case"eth_call":return this.sdk.eth.call([n[0],n[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([n[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(n[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([n[0]]);default:throw Error(`"${e.method}" not implemented`)}}send(e,t){e||t("Undefined request"),this.request(e).then(n=>t(null,{jsonrpc:"2.0",id:e.id,result:n})).catch(n=>t(n,null))}}Ed.SafeAppProvider=GF0;(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.SafeAppProvider=void 0;var e=Ed;Object.defineProperty(u,"SafeAppProvider",{enumerable:!0,get:function(){return e.SafeAppProvider}})})(nM);var dM={},w9={},pM={},m1={},g1={};const VF0="@safe-global/safe-apps-sdk",KF0="8.1.0",QF0="SDK developed to integrate third-party apps with Safe app.",JF0="dist/src/index.js",YF0="dist/src/index.d.ts",ZF0=["dist/**/*","src/**/*","CHANGELOG.md","README.md"],XF0=!1,uD0=["Safe","sdk","apps"],eD0={test:"jest","format-dist":`sed -i '' 's/"files":/"_files":/' dist/package.json`,build:"yarn rimraf dist && tsc && yarn format-dist"},tD0="Safe (https://safe.global)",nD0="MIT",rD0={"@safe-global/safe-gateway-typescript-sdk":"^3.5.3",viem:"^1.0.0"},iD0={type:"git",url:"git+https://github.com/safe-global/safe-apps-sdk.git"},aD0={url:"https://github.com/safe-global/safe-apps-sdk/issues"},oD0="https://github.com/safe-global/safe-apps-sdk#readme",sD0={access:"public"},fD0={name:VF0,version:KF0,description:QF0,main:JF0,typings:YF0,_files:ZF0,sideEffects:XF0,keywords:uD0,scripts:eD0,author:tD0,license:nD0,dependencies:rD0,repository:iD0,bugs:aD0,homepage:oD0,publishConfig:sD0};var lD0=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(g1,"__esModule",{value:!0});g1.getSDKVersion=void 0;const cD0=lD0(fD0),ED0=()=>cD0.default.version.split("-")[0];g1.getSDKVersion=ED0;var hd={};Object.defineProperty(hd,"__esModule",{value:!0});hd.generateRequestId=void 0;const dD0=u=>u.toString(16).padStart(2,"0"),pD0=u=>{const e=new Uint8Array((u||40)/2);return window.crypto.getRandomValues(e),Array.from(e,dD0).join("")},hD0=()=>typeof window<"u"?pD0(10):new Date().getTime().toString(36);hd.generateRequestId=hD0;Object.defineProperty(m1,"__esModule",{value:!0});m1.MessageFormatter=void 0;const CD0=g1,mD0=hd;class Cd{}m1.MessageFormatter=Cd;Cd.makeRequest=(u,e)=>({id:(0,mD0.generateRequestId)(),method:u,params:e,env:{sdkVersion:(0,CD0.getSDKVersion)()}});Cd.makeResponse=(u,e,t)=>({id:u,success:!0,version:t,data:e});Cd.makeErrorResponse=(u,e,t)=>({id:u,success:!1,error:e,version:t});var es={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.RestrictedMethods=u.Methods=void 0,function(e){e.sendTransactions="sendTransactions",e.rpcCall="rpcCall",e.getChainInfo="getChainInfo",e.getSafeInfo="getSafeInfo",e.getTxBySafeTxHash="getTxBySafeTxHash",e.getSafeBalances="getSafeBalances",e.signMessage="signMessage",e.signTypedMessage="signTypedMessage",e.getEnvironmentInfo="getEnvironmentInfo",e.getOffChainSignature="getOffChainSignature",e.requestAddressBook="requestAddressBook",e.wallet_getPermissions="wallet_getPermissions",e.wallet_requestPermissions="wallet_requestPermissions"}(u.Methods||(u.Methods={})),function(e){e.requestAddressBook="requestAddressBook"}(u.RestrictedMethods||(u.RestrictedMethods={}))})(es);(function(u){var e=x0&&x0.__createBinding||(Object.create?function(i,a,o,s){s===void 0&&(s=o);var f=Object.getOwnPropertyDescriptor(a,o);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(i,s,f)}:function(i,a,o,s){s===void 0&&(s=o),i[s]=a[o]}),t=x0&&x0.__exportStar||function(i,a){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&e(a,i,o)};Object.defineProperty(u,"__esModule",{value:!0});const n=m1;class r{constructor(a=null,o=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:s,data:f,source:l})=>{const c=!f,E=!this.isServer&&l===window.parent,p=(typeof f.version<"u"&&parseInt(f.version.split(".")[0]))>=1;let h=!0;return Array.isArray(this.allowedOrigins)&&(h=this.allowedOrigins.find(b=>b.test(s))!==void 0),!c&&E&&p&&h},this.logIncomingMessage=s=>{console.info(`Safe Apps SDK v1: A message was received from origin ${s.origin}. `,s.data)},this.onParentMessage=s=>{this.isValidMessage(s)&&(this.debugMode&&this.logIncomingMessage(s),this.handleIncomingMessage(s.data))},this.handleIncomingMessage=s=>{const{id:f}=s,l=this.callbacks.get(f);l&&(l(s),this.callbacks.delete(f))},this.send=(s,f)=>{const l=n.MessageFormatter.makeRequest(s,f);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(l,"*"),new Promise((c,E)=>{this.callbacks.set(l.id,d=>{if(!d.success){E(new Error(d.error));return}c(d)})})},this.allowedOrigins=a,this.debugMode=o,this.isServer||window.addEventListener("message",this.onParentMessage)}}u.default=r,t(es,u)})(pM);var md={},gd={},bd={};Object.defineProperty(bd,"__esModule",{value:!0});bd.isObjectEIP712TypedData=void 0;const gD0=u=>typeof u=="object"&&u!=null&&"domain"in u&&"types"in u&&"message"in u;bd.isObjectEIP712TypedData=gD0;var hM={};Object.defineProperty(hM,"__esModule",{value:!0});var CM={},mM={},ta={},ar={},cA=x0&&x0.__awaiter||function(u,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(l){try{f(n.next(l))}catch(c){a(c)}}function s(l){try{f(n.throw(l))}catch(c){a(c)}}function f(l){l.done?i(l.value):r(l.value).then(o,s)}f((n=n.apply(u,e||[])).next())})};Object.defineProperty(ar,"__esModule",{value:!0});ar.deleteData=ar.fetchData=ar.stringifyQuery=ar.insertParams=void 0;const bD0=u=>typeof u=="object"&&u!==null&&"code"in u&&"message"in u;function AD0(u,e,t){return u.replace(new RegExp(`\\{${e}\\}`,"g"),t)}function yD0(u,e){return e?Object.keys(e).reduce((t,n)=>AD0(t,n,String(e[n])),u):u}ar.insertParams=yD0;function vD0(u){if(!u)return"";const e=new URLSearchParams;Object.keys(u).forEach(n=>{u[n]!=null&&e.append(n,String(u[n]))});const t=e.toString();return t?`?${t}`:""}ar.stringifyQuery=vD0;function gM(u){return cA(this,void 0,void 0,function*(){let e;try{e=yield u.json()}catch{if(u.headers&&u.headers.get("content-length")!=="0")throw new Error(`Invalid response content: ${u.statusText}`)}if(!u.ok){const t=bD0(e)?`${e.code}: ${e.message}`:u.statusText;throw new Error(t)}return e})}function BD0(u,e){return cA(this,void 0,void 0,function*(){let t;e!=null&&(t={method:"POST",body:typeof e=="string"?e:JSON.stringify(e),headers:{"Content-Type":"application/json"}});const n=yield fetch(u,t);return gM(n)})}ar.fetchData=BD0;function FD0(u){return cA(this,void 0,void 0,function*(){const t=yield fetch(u,{method:"DELETE"});return gM(t)})}ar.deleteData=FD0;Object.defineProperty(ta,"__esModule",{value:!0});ta.deleteEndpoint=ta.getEndpoint=ta.postEndpoint=void 0;const S3=ar;function EA(u,e,t,n){const r=(0,S3.insertParams)(e,t),i=(0,S3.stringifyQuery)(n);return`${u}${r}${i}`}function DD0(u,e,t){const n=EA(u,e,t==null?void 0:t.path,t==null?void 0:t.query);return(0,S3.fetchData)(n,t==null?void 0:t.body)}ta.postEndpoint=DD0;function wD0(u,e,t,n){if(n)return(0,S3.fetchData)(n);const r=EA(u,e,t==null?void 0:t.path,t==null?void 0:t.query);return(0,S3.fetchData)(r)}ta.getEndpoint=wD0;function xD0(u,e,t){const n=EA(u,e,t==null?void 0:t.path);return(0,S3.deleteData)(n)}ta.deleteEndpoint=xD0;var Ad={};Object.defineProperty(Ad,"__esModule",{value:!0});Ad.DEFAULT_BASE_URL=void 0;Ad.DEFAULT_BASE_URL="https://safe-client.safe.global";var bM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ImplementationVersionState=void 0,function(e){e.UP_TO_DATE="UP_TO_DATE",e.OUTDATED="OUTDATED",e.UNKNOWN="UNKNOWN"}(u.ImplementationVersionState||(u.ImplementationVersionState={}))})(bM);var AM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.SafeAppSocialPlatforms=u.SafeAppFeatures=u.SafeAppAccessPolicyTypes=void 0,function(e){e.NoRestrictions="NO_RESTRICTIONS",e.DomainAllowlist="DOMAIN_ALLOWLIST"}(u.SafeAppAccessPolicyTypes||(u.SafeAppAccessPolicyTypes={})),function(e){e.BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS"}(u.SafeAppFeatures||(u.SafeAppFeatures={})),function(e){e.TWITTER="TWITTER",e.GITHUB="GITHUB",e.DISCORD="DISCORD"}(u.SafeAppSocialPlatforms||(u.SafeAppSocialPlatforms={}))})(AM);var yM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.LabelValue=u.DetailedExecutionInfoType=u.TransactionListItemType=u.ConflictType=u.TransactionInfoType=u.SettingsInfoType=u.TransactionTokenType=u.TransferDirection=u.TransactionStatus=u.Operation=void 0,function(e){e[e.CALL=0]="CALL",e[e.DELEGATE=1]="DELEGATE"}(u.Operation||(u.Operation={})),function(e){e.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",e.AWAITING_EXECUTION="AWAITING_EXECUTION",e.CANCELLED="CANCELLED",e.FAILED="FAILED",e.SUCCESS="SUCCESS"}(u.TransactionStatus||(u.TransactionStatus={})),function(e){e.INCOMING="INCOMING",e.OUTGOING="OUTGOING",e.UNKNOWN="UNKNOWN"}(u.TransferDirection||(u.TransferDirection={})),function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_COIN="NATIVE_COIN"}(u.TransactionTokenType||(u.TransactionTokenType={})),function(e){e.SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",e.ADD_OWNER="ADD_OWNER",e.REMOVE_OWNER="REMOVE_OWNER",e.SWAP_OWNER="SWAP_OWNER",e.CHANGE_THRESHOLD="CHANGE_THRESHOLD",e.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",e.ENABLE_MODULE="ENABLE_MODULE",e.DISABLE_MODULE="DISABLE_MODULE",e.SET_GUARD="SET_GUARD",e.DELETE_GUARD="DELETE_GUARD"}(u.SettingsInfoType||(u.SettingsInfoType={})),function(e){e.TRANSFER="Transfer",e.SETTINGS_CHANGE="SettingsChange",e.CUSTOM="Custom",e.CREATION="Creation"}(u.TransactionInfoType||(u.TransactionInfoType={})),function(e){e.NONE="None",e.HAS_NEXT="HasNext",e.END="End"}(u.ConflictType||(u.ConflictType={})),function(e){e.TRANSACTION="TRANSACTION",e.LABEL="LABEL",e.CONFLICT_HEADER="CONFLICT_HEADER",e.DATE_LABEL="DATE_LABEL"}(u.TransactionListItemType||(u.TransactionListItemType={})),function(e){e.MULTISIG="MULTISIG",e.MODULE="MODULE"}(u.DetailedExecutionInfoType||(u.DetailedExecutionInfoType={})),function(e){e.Queued="Queued",e.Next="Next"}(u.LabelValue||(u.LabelValue={}))})(yM);var vM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.FEATURES=u.GAS_PRICE_TYPE=u.RPC_AUTHENTICATION=void 0,function(e){e.API_KEY_PATH="API_KEY_PATH",e.NO_AUTHENTICATION="NO_AUTHENTICATION",e.UNKNOWN="UNKNOWN"}(u.RPC_AUTHENTICATION||(u.RPC_AUTHENTICATION={})),function(e){e.ORACLE="ORACLE",e.FIXED="FIXED",e.FIXED_1559="FIXED1559",e.UNKNOWN="UNKNOWN"}(u.GAS_PRICE_TYPE||(u.GAS_PRICE_TYPE={})),function(e){e.ERC721="ERC721",e.SAFE_APPS="SAFE_APPS",e.CONTRACT_INTERACTION="CONTRACT_INTERACTION",e.DOMAIN_LOOKUP="DOMAIN_LOOKUP",e.SPENDING_LIMIT="SPENDING_LIMIT",e.EIP1559="EIP1559",e.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",e.TX_SIMULATION="TX_SIMULATION",e.EIP1271="EIP1271"}(u.FEATURES||(u.FEATURES={}))})(vM);var BM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.TokenType=void 0,function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_TOKEN="NATIVE_TOKEN"}(u.TokenType||(u.TokenType={}))})(BM);var FM={};Object.defineProperty(FM,"__esModule",{value:!0});var DM={};Object.defineProperty(DM,"__esModule",{value:!0});var wM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.SafeMessageStatus=u.SafeMessageListItemType=void 0,function(e){e.DATE_LABEL="DATE_LABEL",e.MESSAGE="MESSAGE"}(u.SafeMessageListItemType||(u.SafeMessageListItemType={})),function(e){e.NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",e.CONFIRMED="CONFIRMED"}(u.SafeMessageStatus||(u.SafeMessageStatus={}))})(wM);var xM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.DeviceType=void 0,function(e){e.ANDROID="ANDROID",e.IOS="IOS",e.WEB="WEB"}(u.DeviceType||(u.DeviceType={}))})(xM);(function(u){var e=x0&&x0.__createBinding||(Object.create?function(H,L,n0,s0){s0===void 0&&(s0=n0);var a0=Object.getOwnPropertyDescriptor(L,n0);(!a0||("get"in a0?!L.__esModule:a0.writable||a0.configurable))&&(a0={enumerable:!0,get:function(){return L[n0]}}),Object.defineProperty(H,s0,a0)}:function(H,L,n0,s0){s0===void 0&&(s0=n0),H[s0]=L[n0]}),t=x0&&x0.__exportStar||function(H,L){for(var n0 in H)n0!=="default"&&!Object.prototype.hasOwnProperty.call(L,n0)&&e(L,H,n0)};Object.defineProperty(u,"__esModule",{value:!0}),u.unregisterDevice=u.unregisterSafe=u.registerDevice=u.getDelegates=u.confirmSafeMessage=u.proposeSafeMessage=u.getSafeMessage=u.getSafeMessages=u.getDecodedData=u.getMasterCopies=u.getSafeApps=u.getChainConfig=u.getChainsConfig=u.proposeTransaction=u.getNonces=u.postSafeGasEstimation=u.getTransactionDetails=u.getTransactionQueue=u.getTransactionHistory=u.getCollectiblesPage=u.getCollectibles=u.getOwnedSafes=u.getFiatCurrencies=u.getBalances=u.getMultisigTransactions=u.getModuleTransactions=u.getIncomingTransfers=u.getSafeInfo=u.setBaseUrl=void 0;const n=ta,r=Ad;t(bM,u),t(AM,u),t(yM,u),t(vM,u),t(BM,u),t(FM,u),t(DM,u),t(wM,u),t(xM,u);let i=r.DEFAULT_BASE_URL;const a=H=>{i=H};u.setBaseUrl=a;function o(H,L){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:H,address:L}})}u.getSafeInfo=o;function s(H,L,n0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:H,address:L},query:n0},s0)}u.getIncomingTransfers=s;function f(H,L,n0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:H,address:L},query:n0},s0)}u.getModuleTransactions=f;function l(H,L,n0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:H,address:L},query:n0},s0)}u.getMultisigTransactions=l;function c(H,L,n0="usd",s0={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:H,address:L,currency:n0},query:s0})}u.getBalances=c;function E(){return(0,n.getEndpoint)(i,"/v1/balances/supported-fiat-codes")}u.getFiatCurrencies=E;function d(H,L){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:H,address:L}})}u.getOwnedSafes=d;function p(H,L,n0={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:H,address:L},query:n0})}u.getCollectibles=p;function h(H,L,n0={},s0){return(0,n.getEndpoint)(i,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:H,address:L},query:n0},s0)}u.getCollectiblesPage=h;function b(H,L,n0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:H,safe_address:L},query:{}},n0)}u.getTransactionHistory=b;function g(H,L,n0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:H,safe_address:L},query:{trusted:s0}},n0)}u.getTransactionQueue=g;function m(H,L){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:H,transactionId:L}})}u.getTransactionDetails=m;function A(H,L,n0){return(0,n.postEndpoint)(i,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:H,safe_address:L},body:n0})}u.postSafeGasEstimation=A;function y(H,L){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/nonces",{path:{chainId:H,safe_address:L}})}u.getNonces=y;function B(H,L,n0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:H,safe_address:L},body:n0})}u.proposeTransaction=B;function v(H){return(0,n.getEndpoint)(i,"/v1/chains",{query:H})}u.getChainsConfig=v;function C(H){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}",{path:{chainId:H}})}u.getChainConfig=C;function D(H,L={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safe-apps",{path:{chainId:H},query:L})}u.getSafeApps=D;function T(H){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:H}})}u.getMasterCopies=T;function _(H,L,n0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/data-decoder",{path:{chainId:H},body:{data:L,to:n0}})}u.getDecodedData=_;function $(H,L,n0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:H,safe_address:L},query:{}},n0)}u.getSafeMessages=$;function u0(H,L){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:H,message_hash:L}})}u.getSafeMessage=u0;function e0(H,L,n0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:H,safe_address:L},body:n0})}u.proposeSafeMessage=e0;function o0(H,L,n0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:H,message_hash:L},body:n0})}u.confirmSafeMessage=o0;function N(H,L={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/delegates",{path:{chainId:H},query:L})}u.getDelegates=N;function R(H){return(0,n.postEndpoint)(i,"/v1/register/notifications",{body:H})}u.registerDevice=R;function V(H,L,n0){return(0,n.deleteEndpoint)(i,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:H,safe_address:L,uuid:n0}})}u.unregisterSafe=V;function G(H,L){return(0,n.deleteEndpoint)(i,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:H,uuid:L}})}u.unregisterDevice=G})(mM);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.TransferDirection=u.TransactionStatus=u.TokenType=u.Operation=void 0;var e=mM;Object.defineProperty(u,"Operation",{enumerable:!0,get:function(){return e.Operation}}),Object.defineProperty(u,"TokenType",{enumerable:!0,get:function(){return e.TokenType}}),Object.defineProperty(u,"TransactionStatus",{enumerable:!0,get:function(){return e.TransactionStatus}}),Object.defineProperty(u,"TransferDirection",{enumerable:!0,get:function(){return e.TransferDirection}})})(CM);var kM={};Object.defineProperty(kM,"__esModule",{value:!0});(function(u){var e=x0&&x0.__createBinding||(Object.create?function(n,r,i,a){a===void 0&&(a=i);var o=Object.getOwnPropertyDescriptor(r,i);(!o||("get"in o?!r.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(n,a,o)}:function(n,r,i,a){a===void 0&&(a=i),n[a]=r[i]}),t=x0&&x0.__exportStar||function(n,r){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&e(r,n,i)};Object.defineProperty(u,"__esModule",{value:!0}),t(bd,u),t(hM,u),t(CM,u),t(kM,u)})(gd);Object.defineProperty(md,"__esModule",{value:!0});md.TXs=void 0;const d6=es,kD0=gd;class _D0{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(d6.Methods.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const t={message:e};return(await this.communicator.send(d6.Methods.signMessage,t)).data}async signTypedMessage(e){if(!(0,kD0.isObjectEIP712TypedData)(e))throw new Error("Invalid typed data");return(await this.communicator.send(d6.Methods.signTypedMessage,{typedData:e})).data}async send({txs:e,params:t}){if(!e||!e.length)throw new Error("No transactions were passed");const n={txs:e,params:t};return(await this.communicator.send(d6.Methods.sendTransactions,n)).data}}md.TXs=_D0;var yd={},b1={};Object.defineProperty(b1,"__esModule",{value:!0});b1.RPC_CALLS=void 0;b1.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"};Object.defineProperty(yd,"__esModule",{value:!0});yd.Eth=void 0;const vt=b1,SD0=es,Ar={defaultBlockParam:(u="latest")=>u,returnFullTxObjectParam:(u=!1)=>u,blockNumberToHex:u=>Number.isInteger(u)?`0x${u.toString(16)}`:u};class TD0{constructor(e){this.communicator=e,this.call=this.buildRequest({call:vt.RPC_CALLS.eth_call,formatters:[null,Ar.defaultBlockParam]}),this.getBalance=this.buildRequest({call:vt.RPC_CALLS.eth_getBalance,formatters:[null,Ar.defaultBlockParam]}),this.getCode=this.buildRequest({call:vt.RPC_CALLS.eth_getCode,formatters:[null,Ar.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:vt.RPC_CALLS.eth_getStorageAt,formatters:[null,Ar.blockNumberToHex,Ar.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:vt.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:vt.RPC_CALLS.eth_getBlockByHash,formatters:[null,Ar.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:vt.RPC_CALLS.eth_getBlockByNumber,formatters:[Ar.blockNumberToHex,Ar.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:vt.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:vt.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:vt.RPC_CALLS.eth_getTransactionCount,formatters:[null,Ar.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:vt.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=t=>this.buildRequest({call:vt.RPC_CALLS.eth_estimateGas})([t]),this.setSafeSettings=this.buildRequest({call:vt.RPC_CALLS.safe_setSettings})}buildRequest(e){const{call:t,formatters:n}=e;return async r=>{n&&Array.isArray(r)&&n.forEach((o,s)=>{o&&(r[s]=o(r[s]))});const i={call:t,params:r||[]};return(await this.communicator.send(SD0.Methods.rpcCall,i)).data}}}yd.Eth=TD0;var vd={};const PD0=V9(Pe0);var T3={};Object.defineProperty(T3,"__esModule",{value:!0});T3.MAGIC_VALUE_BYTES=T3.MAGIC_VALUE=void 0;const OD0="0x1626ba7e";T3.MAGIC_VALUE=OD0;const ID0="0x20c13b0b";T3.MAGIC_VALUE_BYTES=ID0;var dA={},A1={},Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.PermissionsError=Oo.PERMISSIONS_REQUEST_REJECTED=void 0;Oo.PERMISSIONS_REQUEST_REJECTED=4001;class pA extends Error{constructor(e,t,n){super(e),this.code=t,this.data=n,Object.setPrototypeOf(this,pA.prototype)}}Oo.PermissionsError=pA;Object.defineProperty(A1,"__esModule",{value:!0});A1.Wallet=void 0;const g8=es,p6=Oo;class ND0{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(g8.Methods.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new p6.PermissionsError("Permissions request is invalid",p6.PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(g8.Methods.wallet_requestPermissions,e)).data}catch{throw new p6.PermissionsError("Permissions rejected",p6.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(e){return e.every(t=>typeof t=="object"?Object.keys(t).every(n=>!!Object.values(g8.RestrictedMethods).includes(n)):!1)}}A1.Wallet=ND0;Object.defineProperty(dA,"__esModule",{value:!0});const RD0=A1,tw=Oo,nw=(u,e)=>e.some(t=>t.parentCapability===u),MD0=()=>(u,e,t)=>{const n=t.value;return t.value=async function(){const r=new RD0.Wallet(this.communicator);let i=await r.getPermissions();if(nw(e,i)||(i=await r.requestPermissions([{[e]:{}}])),!nw(e,i))throw new tw.PermissionsError("Permissions rejected",tw.PERMISSIONS_REQUEST_REJECTED);return n.apply(this)},t};dA.default=MD0;var jD0=x0&&x0.__decorate||function(u,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i},zD0=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(vd,"__esModule",{value:!0});vd.Safe=void 0;const h6=PD0,rw=T3,mi=es,iw=b1,LD0=gd,$D0=zD0(dA);class _M{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(mi.Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(mi.Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(mi.Methods.getSafeBalances,{currency:e})).data}async check1271Signature(e,t="0x"){const n=await this.getInfo(),r=(0,h6.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),i={call:iw.RPC_CALLS.eth_call,params:[{to:n.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(mi.Methods.rpcCall,i)).data.slice(0,10).toLowerCase()===rw.MAGIC_VALUE}catch{return!1}}async check1271SignatureBytes(e,t="0x"){const n=await this.getInfo(),r=(0,h6.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),i={call:iw.RPC_CALLS.eth_call,params:[{to:n.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(mi.Methods.rpcCall,i)).data.slice(0,10).toLowerCase()===rw.MAGIC_VALUE_BYTES}catch{return!1}}calculateMessageHash(e){return(0,h6.hashMessage)(e)}calculateTypedMessageHash(e){const t=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let n=e.primaryType;if(!n){const r=Object.values(e.types),i=Object.keys(e.types).filter(a=>r.every(o=>o.every(({type:s})=>s.replace("[","").replace("]","")!==a)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");n=i[0]}return(0,h6.hashTypedData)({message:e.message,domain:Object.assign(Object.assign({},e.domain),{chainId:t,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt}),types:e.types,primaryType:n})}async getOffChainSignature(e){return(await this.communicator.send(mi.Methods.getOffChainSignature,e)).data}async isMessageSigned(e,t="0x"){let n;if(typeof e=="string"&&(n=async()=>{const r=this.calculateMessageHash(e);return await this.isMessageHashSigned(r,t)}),(0,LD0.isObjectEIP712TypedData)(e)&&(n=async()=>{const r=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(r,t)}),n)return await n();throw new Error("Invalid message type")}async isMessageHashSigned(e,t="0x"){const n=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const r of n)if(await r(e,t))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(mi.Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(mi.Methods.requestAddressBook,void 0)).data}}jD0([(0,$D0.default)()],_M.prototype,"requestAddressBook",null);vd.Safe=_M;var UD0=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(w9,"__esModule",{value:!0});const WD0=UD0(pM),qD0=md,HD0=yd,GD0=vd,VD0=A1;let KD0=class{constructor(e={}){const{allowedDomains:t=null,debug:n=!1}=e;this.communicator=new WD0.default(t,n),this.eth=new HD0.Eth(this.communicator),this.txs=new qD0.TXs(this.communicator),this.safe=new GD0.Safe(this.communicator),this.wallet=new VD0.Wallet(this.communicator)}};w9.default=KD0;(function(u){var e=x0&&x0.__createBinding||(Object.create?function(a,o,s,f){f===void 0&&(f=s);var l=Object.getOwnPropertyDescriptor(o,s);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(a,f,l)}:function(a,o,s,f){f===void 0&&(f=s),a[f]=o[s]}),t=x0&&x0.__exportStar||function(a,o){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&e(o,a,s)},n=x0&&x0.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(u,"__esModule",{value:!0}),u.getSDKVersion=void 0;const r=n(w9);u.default=r.default,t(w9,u),t(gd,u),t(es,u),t(m1,u);var i=g1;Object.defineProperty(u,"getSDKVersion",{enumerable:!0,get:function(){return i.getSDKVersion}})})(dM);const C6=kc(dM);var Kf,Qf,QD0=class extends Zc{constructor({chains:u,options:e}){const t={shimDisconnect:!1,...e};super({chains:u,options:t}),this.id="safe",this.name="Safe",this.ready=!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,Yu(this,Kf,void 0),Yu(this,Qf,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`;let n=C6;typeof C6!="function"&&typeof C6.default=="function"&&(n=C6.default),Xr(this,Qf,new n(t))}async connect(){var n;const u=await this.getProvider();if(!u)throw new nt;u.on&&(u.on("accountsChanged",this.onAccountsChanged),u.on("chainChanged",this.onChainChanged),u.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const e=await this.getAccount(),t=await this.getChainId();return this.options.shimDisconnect&&((n=this.storage)==null||n.setItem(this.shimDisconnectKey,!0)),{account:e,chain:{id:t,unsupported:this.isChainUnsupported(t)}}}async disconnect(){var e;const u=await this.getProvider();u!=null&&u.removeListener&&(u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((e=this.storage)==null||e.removeItem(this.shimDisconnectKey)))}async getAccount(){const u=await this.getProvider();if(!u)throw new nt;const e=await u.request({method:"eth_accounts"});return Su(e[0])}async getChainId(){const u=await this.getProvider();if(!u)throw new nt;return To(u.chainId)}async getProvider(){if(!W0(this,Kf)){const u=await W0(this,Qf).safe.getInfo();if(!u)throw new Error("Could not load Safe information");Xr(this,Kf,new nM.SafeAppProvider(u,W0(this,Qf)))}return W0(this,Kf)}async getWalletClient({chainId:u}={}){const e=await this.getProvider(),t=await this.getAccount(),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return Y3({account:t,chain:n,transport:Q3(e)})}async isAuthorized(){var u;try{return this.options.shimDisconnect&&!((u=this.storage)!=null&&u.getItem(this.shimDisconnectKey))?!1:!!await this.getAccount()}catch{return!1}}onAccountsChanged(u){}onChainChanged(u){}onDisconnect(){this.emit("disconnect")}};Kf=new WeakMap;Qf=new WeakMap;function JD0(u){return Object.fromEntries(Object.entries(u).filter(([e,t])=>t!==void 0))}function YD0(u){return"groupName"in u[0]?aw(u):aw([{groupName:"",wallets:u}])()}var aw=u=>()=>{let e=-1;const t=[],n=[],r=[],i=[];return u.forEach(({groupName:o,wallets:s},f)=>{s.forEach(l=>{if(e++,l!=null&&l.iconAccent&&!tA0(l==null?void 0:l.iconAccent))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${l.name}`);const c={...l,groupIndex:f,groupName:o,index:e};typeof l.hidden=="function"?r.push(c):n.push(c)})}),[...n,...r].forEach(({createConnector:o,groupIndex:s,groupName:f,hidden:l,index:c,...E})=>{if(typeof l=="function"&&l({wallets:[...i.map(({connector:m,id:A,installed:y,name:B})=>({connector:m,id:A,installed:y,name:B}))]}))return;const{connector:d,...p}=JD0(o());let h;if(E.id==="walletConnect"&&p.qrCode&&!Ae()){const{chains:g,options:m}=d;h=new eM({chains:g,options:{...m,showQrModal:!0}}),t.push(h)}const b={connector:d,groupIndex:s,groupName:f,index:c,walletConnectModalConnector:h,...E,...p};i.push(b),t.includes(d)||(t.push(d),d._wallets=[]),d._wallets.push(b)}),t},ZD0=({chains:u,...e})=>{var t;return{id:"brave",name:"Brave Wallet",iconUrl:async()=>(await L0(()=>import("./braveWallet-BTBH4MDN-rhLwbrvd.js"),__vite__mapDeps([]))).default,iconBackground:"#fff",installed:typeof window<"u"&&((t=window.ethereum)==null?void 0:t.isBraveWallet)===!0,downloadUrls:{},createConnector:()=>({connector:new B3({chains:u,options:e})})}};function SM(u){if(typeof window>"u"||typeof window.ethereum>"u")return;const e=window.ethereum.providers;return e?e.find(t=>t[u]):window.ethereum[u]?window.ethereum:void 0}function TM(u){return!!SM(u)}function XD0(u){if(typeof window>"u"||typeof window.ethereum>"u")return;const e=window.ethereum.providers,t=SM(u);return t||(typeof e<"u"&&e.length>0?e[0]:window.ethereum)}function uw0({chains:u,flag:e,options:t}){return new B3({chains:u,options:{getProvider:()=>XD0(e),...t}})}var ew0=({appName:u,chains:e,...t})=>{const n=TM("isCoinbaseWallet");return{id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",iconUrl:async()=>(await L0(()=>import("./coinbaseWallet-2OUR5TUP-lljav0iR.js"),__vite__mapDeps([]))).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:n||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},createConnector:()=>{const r=Xo(),i=new IF0({chains:e,options:{appName:u,headlessMode:!0,...t}});return{connector:i,...r?{}:{qrCode:{getUri:async()=>(await i.getProvider()).qrUrl,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}}}}}},tw0=({chains:u,...e})=>({id:"injected",name:"Browser Wallet",iconUrl:async()=>(await L0(()=>import("./injectedWallet-EUKDEAIU-nRYX44n1.js"),__vite__mapDeps([]))).default,iconBackground:"#fff",hidden:({wallets:t})=>t.some(n=>n.installed&&n.name===n.connector.name&&(n.connector instanceof B3||n.id==="coinbase")),createConnector:()=>({connector:new B3({chains:u,options:e})})});async function hA(u,e){const t=await u.getProvider();return e==="2"?new Promise(n=>t.once("display_uri",n)):t.connector.uri}var PM=new Map;function nw0(u,e){const t=u==="1"?new MF0(e):new eM(e);return PM.set(JSON.stringify(e),t),t}function x9({chains:u,options:e={},projectId:t,version:n="2"}){const r="21fef48091f12692cad574a6f7753643";if(n==="2"){if(!t||t==="")throw new Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");(t==="YOUR_PROJECT_ID"||t===r)&&console.warn("Invalid projectId. Please create a unique WalletConnect Cloud projectId for your dApp https://www.rainbowkit.com/docs/installation#configure")}const i={chains:u,options:n==="1"?{qrcode:!1,...e}:{projectId:t==="YOUR_PROJECT_ID"?r:t,showQrModal:!1,...e}},a=JSON.stringify(i),o=PM.get(a);return o??nw0(n,i)}function ow(u){return!(!(u!=null&&u.isMetaMask)||u.isBraveWallet&&!u._events&&!u._state||u.isApexWallet||u.isAvalanche||u.isBackpack||u.isBifrost||u.isBitKeep||u.isBitski||u.isBlockWallet||u.isCoinbaseWallet||u.isDawn||u.isEnkrypt||u.isExodus||u.isFrame||u.isFrontier||u.isGamestop||u.isHyperPay||u.isImToken||u.isKuCoinWallet||u.isMathWallet||u.isOkxWallet||u.isOKExWallet||u.isOneInchIOSWallet||u.isOneInchAndroidWallet||u.isOpera||u.isPhantom||u.isPortal||u.isRabby||u.isRainbow||u.isStatus||u.isTalisman||u.isTally||u.isTokenPocket||u.isTokenary||u.isTrust||u.isTrustWallet||u.isXDEFI||u.isZeal||u.isZerion)}var rw0=({chains:u,projectId:e,walletConnectOptions:t,walletConnectVersion:n="2",...r})=>{var i,a;const o=typeof window<"u"&&((i=window.ethereum)==null?void 0:i.providers),s=typeof window<"u"&&typeof window.ethereum<"u"&&(((a=window.ethereum.providers)==null?void 0:a.some(ow))||window.ethereum.isMetaMask),f=!s;return{id:"metaMask",name:"MetaMask",iconUrl:async()=>(await L0(()=>import("./metaMaskWallet-ORHUNQRP-B-MG5eKR.js"),__vite__mapDeps([]))).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:f?void 0:s,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},createConnector:()=>{const l=f?x9({projectId:e,chains:u,version:n,options:t}):new NF0({chains:u,options:{getProvider:()=>o?o.find(ow):typeof window<"u"?window.ethereum:void 0,...r}}),c=async()=>{const E=await hA(l,n);return Ib()?E:Xo()?`metamask://wc?uri=${encodeURIComponent(E)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(E)}`};return{connector:l,mobile:{getUri:f?c:void 0},qrCode:f?{getUri:c,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}}}}}},iw0=({chains:u,projectId:e,walletConnectOptions:t,walletConnectVersion:n="2",...r})=>{const i=TM("isRainbow"),a=!i;return{id:"rainbow",name:"Rainbow",iconUrl:async()=>(await L0(()=>import("./rainbowWallet-GGU64QEI-aO3VF4UJ.js"),__vite__mapDeps([]))).default,iconBackground:"#0c2f78",installed:a?void 0:i,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},createConnector:()=>{const o=a?x9({projectId:e,chains:u,version:n,options:t}):uw0({flag:"isRainbow",chains:u,options:r}),s=async()=>{const f=await hA(o,n);return Ib()?f:Xo()?`rainbow://wc?uri=${encodeURIComponent(f)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(f)}&connector=rainbowkit`};return{connector:o,mobile:{getUri:a?s:void 0},qrCode:a?{getUri:s,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0}}}},aw0=({chains:u,...e})=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await L0(()=>import("./safeWallet-DFMLSLCR-0HldBjhm.js"),__vite__mapDeps([]))).default,installed:!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:()=>({connector:new QD0({chains:u,options:e})})}),ow0=({chains:u,options:e,projectId:t,version:n="2"})=>({id:"walletConnect",name:"WalletConnect",iconUrl:async()=>(await L0(()=>import("./walletConnectWallet-D6ZADJM7-hbivFVny.js"),__vite__mapDeps([]))).default,iconBackground:"#3b99fc",createConnector:()=>{const r=Xo(),i=x9(n==="1"?{version:"1",chains:u,options:{qrcode:r,...e}}:{version:"2",chains:u,projectId:t,options:{showQrModal:r,...e}}),a=async()=>hA(i,n);return{connector:i,...r?{}:{mobile:{getUri:a},qrCode:{getUri:a}}}}}),sw0=({appName:u,chains:e,projectId:t})=>{const n=[{groupName:"Popular",wallets:[tw0({chains:e}),aw0({chains:e}),iw0({chains:e,projectId:t}),ew0({appName:u,chains:e}),rw0({chains:e,projectId:t}),ow0({chains:e,projectId:t}),ZD0({chains:e})]}];return{connectors:YD0(n),wallets:n}};function fw0(u){return Xe("MuiSvgIcon",u)}gt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lw0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cw0=u=>{const{color:e,fontSize:t,classes:n}=u,r={root:["root",e!=="inherit"&&`color${su(e)}`,`fontSize${su(t)}`]};return mt(r,fw0,n)},Ew0=Ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,t.color!=="inherit"&&e[`color${su(t.color)}`],e[`fontSize${su(t.fontSize)}`]]}})(({theme:u,ownerState:e})=>{var t,n,r,i,a,o,s,f,l,c,E,d,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=u.transitions)==null||(n=t.create)==null?void 0:n.call(t,"fill",{duration:(r=u.transitions)==null||(r=r.duration)==null?void 0:r.shorter}),fontSize:{inherit:"inherit",small:((i=u.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((o=u.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,24))||"1.5rem",large:((f=u.typography)==null||(l=f.pxToRem)==null?void 0:l.call(f,35))||"2.1875rem"}[e.fontSize],color:(c=(E=(u.vars||u).palette)==null||(E=E[e.color])==null?void 0:E.main)!=null?c:{action:(d=(u.vars||u).palette)==null||(d=d.action)==null?void 0:d.active,disabled:(p=(u.vars||u).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[e.color]}}),OM=w.forwardRef(function(e,t){const n=bt({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:o="svg",fontSize:s="medium",htmlColor:f,inheritViewBox:l=!1,titleAccess:c,viewBox:E="0 0 24 24"}=n,d=cu(n,lw0),p=w.isValidElement(r)&&r.type==="svg",h=r0({},n,{color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:E,hasSvgAsChild:p}),b={};l||(b.viewBox=E);const g=cw0(h);return c0.jsxs(Ew0,r0({as:o,className:pu(g.root,i),focusable:"false",color:f,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:t},b,d,p&&r.props,{ownerState:h,children:[p?r.props.children:r,c?c0.jsx("title",{children:c}):null]}))});OM.muiName="SvgIcon";const sw=OM;function dw0(u,e){function t(n,r){return c0.jsx(sw,r0({"data-testid":`${e}Icon`,ref:r},n,{children:u}))}return t.muiName=sw.muiName,w.memo(w.forwardRef(t))}function pw0(u){return Xe("MuiTypography",u)}gt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hw0=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Cw0=u=>{const{align:e,gutterBottom:t,noWrap:n,paragraph:r,variant:i,classes:a}=u,o={root:["root",i,u.align!=="inherit"&&`align${su(e)}`,t&&"gutterBottom",n&&"noWrap",r&&"paragraph"]};return mt(o,pw0,a)},mw0=Ee("span",{name:"MuiTypography",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,t.variant&&e[t.variant],t.align!=="inherit"&&e[`align${su(t.align)}`],t.noWrap&&e.noWrap,t.gutterBottom&&e.gutterBottom,t.paragraph&&e.paragraph]}})(({theme:u,ownerState:e})=>r0({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&u.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),fw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gw0={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bw0=u=>gw0[u]||u,Aw0=w.forwardRef(function(e,t){const n=bt({props:e,name:"MuiTypography"}),r=bw0(n.color),i=jE(r0({},n,{color:r})),{align:a="inherit",className:o,component:s,gutterBottom:f=!1,noWrap:l=!1,paragraph:c=!1,variant:E="body1",variantMapping:d=fw}=i,p=cu(i,hw0),h=r0({},i,{align:a,color:r,className:o,component:s,gutterBottom:f,noWrap:l,paragraph:c,variant:E,variantMapping:d}),b=s||(c?"p":d[E]||fw[E])||"span",g=Cw0(h);return c0.jsx(mw0,r0({as:b,ref:t,ownerState:h,className:pu(g.root,o)},p))}),VC=Aw0;function yw0(u){return typeof u=="string"}function vw0(u,e,t){return u===void 0||yw0(u)?e:r0({},e,{ownerState:r0({},e.ownerState,t)})}const Bw0={disableDefaultClasses:!1},Fw0=w.createContext(Bw0);function Dw0(u){const{disableDefaultClasses:e}=w.useContext(Fw0);return t=>e?"":u(t)}function KC(u,e=[]){if(u===void 0)return{};const t={};return Object.keys(u).filter(n=>n.match(/^on[A-Z]/)&&typeof u[n]=="function"&&!e.includes(n)).forEach(n=>{t[n]=u[n]}),t}function ww0(u,e,t){return typeof u=="function"?u(e,t):u}function lw(u){if(u===void 0)return{};const e={};return Object.keys(u).filter(t=>!(t.match(/^on[A-Z]/)&&typeof u[t]=="function")).forEach(t=>{e[t]=u[t]}),e}function xw0(u){const{getSlotProps:e,additionalProps:t,externalSlotProps:n,externalForwardedProps:r,className:i}=u;if(!e){const d=pu(t==null?void 0:t.className,i,r==null?void 0:r.className,n==null?void 0:n.className),p=r0({},t==null?void 0:t.style,r==null?void 0:r.style,n==null?void 0:n.style),h=r0({},t,r,n);return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:void 0}}const a=KC(r0({},r,n)),o=lw(n),s=lw(r),f=e(a),l=pu(f==null?void 0:f.className,t==null?void 0:t.className,i,r==null?void 0:r.className,n==null?void 0:n.className),c=r0({},f==null?void 0:f.style,t==null?void 0:t.style,r==null?void 0:r.style,n==null?void 0:n.style),E=r0({},f,t,s,o);return l.length>0&&(E.className=l),Object.keys(c).length>0&&(E.style=c),{props:E,internalRef:f.ref}}const kw0=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function _w0(u){var e;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1}=u,a=cu(u,kw0),o=i?{}:ww0(n,r),{props:s,internalRef:f}=xw0(r0({},a,{externalSlotProps:o})),l=I2(f,o==null?void 0:o.ref,(e=u.additionalProps)==null?void 0:e.ref);return vw0(t,r0({},s,{ref:l}),r)}function Sw0(u){return Xe("MuiButton",u)}gt("MuiButton",["root","active","disabled","focusVisible"]);function Tw0(u={}){const{disabled:e=!1,focusableWhenDisabled:t,href:n,rootRef:r,tabIndex:i,to:a,type:o}=u,s=w.useRef(),[f,l]=w.useState(!1),{isFocusVisibleRef:c,onFocus:E,onBlur:d,ref:p}=cS(),[h,b]=w.useState(!1);e&&!t&&h&&b(!1),w.useEffect(()=>{c.current=h},[h,c]);const[g,m]=w.useState(""),A=N=>R=>{var V;h&&R.preventDefault(),(V=N.onMouseLeave)==null||V.call(N,R)},y=N=>R=>{var V;d(R),c.current===!1&&b(!1),(V=N.onBlur)==null||V.call(N,R)},B=N=>R=>{var V;if(s.current||(s.current=R.currentTarget),E(R),c.current===!0){var G;b(!0),(G=N.onFocusVisible)==null||G.call(N,R)}(V=N.onFocus)==null||V.call(N,R)},v=()=>{const N=s.current;return g==="BUTTON"||g==="INPUT"&&["button","submit","reset"].includes(N==null?void 0:N.type)||g==="A"&&(N==null?void 0:N.href)},C=N=>R=>{if(!e){var V;(V=N.onClick)==null||V.call(N,R)}},D=N=>R=>{var V;e||(l(!0),document.addEventListener("mouseup",()=>{l(!1)},{once:!0})),(V=N.onMouseDown)==null||V.call(N,R)},T=N=>R=>{var V;if((V=N.onKeyDown)==null||V.call(N,R),!R.defaultMuiPrevented&&(R.target===R.currentTarget&&!v()&&R.key===" "&&R.preventDefault(),R.target===R.currentTarget&&R.key===" "&&!e&&l(!0),R.target===R.currentTarget&&!v()&&R.key==="Enter"&&!e)){var G;(G=N.onClick)==null||G.call(N,R),R.preventDefault()}},_=N=>R=>{var V;if(R.target===R.currentTarget&&l(!1),(V=N.onKeyUp)==null||V.call(N,R),R.target===R.currentTarget&&!v()&&!e&&R.key===" "&&!R.defaultMuiPrevented){var G;(G=N.onClick)==null||G.call(N,R)}},$=w.useCallback(N=>{var R;m((R=N==null?void 0:N.tagName)!=null?R:"")},[]),u0=I2($,r,p,s),e0={};return i!==void 0&&(e0.tabIndex=i),g==="BUTTON"?(e0.type=o??"button",t?e0["aria-disabled"]=e:e0.disabled=e):g!==""&&(!n&&!a&&(e0.role="button",e0.tabIndex=i??0),e&&(e0["aria-disabled"]=e,e0.tabIndex=t?i??0:-1)),{getRootProps:(N={})=>{const R=r0({},KC(u),KC(N)),V=r0({type:o},R,e0,N,{onBlur:y(R),onClick:C(R),onFocus:B(R),onKeyDown:T(R),onKeyUp:_(R),onMouseDown:D(R),onMouseLeave:A(R),ref:u0});return delete V.onFocusVisible,V},focusVisible:h,setFocusVisible:b,active:f,rootRef:u0}}const Pw0=["action","children","disabled","focusableWhenDisabled","onFocusVisible","slotProps","slots"],Ow0=u=>{const{active:e,disabled:t,focusVisible:n}=u;return mt({root:["root",t&&"disabled",n&&"focusVisible",e&&"active"]},Dw0(Sw0))},Iw0=w.forwardRef(function(e,t){var n;const{action:r,children:i,focusableWhenDisabled:a=!1,slotProps:o={},slots:s={}}=e,f=cu(e,Pw0),l=w.useRef(),{active:c,focusVisible:E,setFocusVisible:d,getRootProps:p}=Tw0(r0({},e,{focusableWhenDisabled:a}));w.useImperativeHandle(r,()=>({focusVisible:()=>{d(!0),l.current.focus()}}),[d]);const h=r0({},e,{active:c,focusableWhenDisabled:a,focusVisible:E}),b=Ow0(h),g=f.href||f.to?"a":"button",m=(n=s.root)!=null?n:g,A=_w0({elementType:m,getSlotProps:p,externalForwardedProps:f,externalSlotProps:o.root,additionalProps:{ref:t},ownerState:h,className:b.root});return c0.jsx(m,r0({},A,{children:i}))});function Nw0(u){return c0.jsx(NH,r0({},u,{defaultTheme:LE,themeId:ko}))}const Rw0=dw0(c0.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Mw0(u){return Xe("MuiAvatar",u)}gt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const jw0=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],zw0=u=>{const{classes:e,variant:t,colorDefault:n}=u;return mt({root:["root",t,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Mw0,e)},Lw0=Ee("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[t.variant],t.colorDefault&&e.colorDefault]}})(({theme:u,ownerState:e})=>r0({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:u.typography.fontFamily,fontSize:u.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},e.variant==="rounded"&&{borderRadius:(u.vars||u).shape.borderRadius},e.variant==="square"&&{borderRadius:0},e.colorDefault&&r0({color:(u.vars||u).palette.background.default},u.vars?{backgroundColor:u.vars.palette.Avatar.defaultBg}:{backgroundColor:u.palette.mode==="light"?u.palette.grey[400]:u.palette.grey[600]}))),$w0=Ee("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(u,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Uw0=Ee(Rw0,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(u,e)=>e.fallback})({width:"75%",height:"75%"});function Ww0({crossOrigin:u,referrerPolicy:e,src:t,srcSet:n}){const[r,i]=w.useState(!1);return w.useEffect(()=>{if(!t&&!n)return;i(!1);let a=!0;const o=new Image;return o.onload=()=>{a&&i("loaded")},o.onerror=()=>{a&&i("error")},o.crossOrigin=u,o.referrerPolicy=e,o.src=t,n&&(o.srcset=n),()=>{a=!1}},[u,e,t,n]),r}const qw0=w.forwardRef(function(e,t){const n=bt({props:e,name:"MuiAvatar"}),{alt:r,children:i,className:a,component:o="div",imgProps:s,sizes:f,src:l,srcSet:c,variant:E="circular"}=n,d=cu(n,jw0);let p=null;const h=Ww0(r0({},s,{src:l,srcSet:c})),b=l||c,g=b&&h!=="error",m=r0({},n,{colorDefault:!g,component:o,variant:E}),A=zw0(m);return g?p=c0.jsx($w0,r0({alt:r,srcSet:c,src:l,sizes:f,ownerState:m,className:A.img},s)):i!=null?p=i:b&&r?p=r[0]:p=c0.jsx(Uw0,{ownerState:m,className:A.fallback}),c0.jsx(Lw0,r0({as:o,ownerState:m,className:pu(A.root,a),ref:t},d,{children:p}))}),Hw0=qw0;function Gw0(u){return Xe("MuiCard",u)}gt("MuiCard",["root"]);const Vw0=["className","raised"],Kw0=u=>{const{classes:e}=u;return mt({root:["root"]},Gw0,e)},Qw0=Ee(qS,{name:"MuiCard",slot:"Root",overridesResolver:(u,e)=>e.root})(()=>({overflow:"hidden"})),Jw0=w.forwardRef(function(e,t){const n=bt({props:e,name:"MuiCard"}),{className:r,raised:i=!1}=n,a=cu(n,Vw0),o=r0({},n,{raised:i}),s=Kw0(o);return c0.jsx(Qw0,r0({className:pu(s.root,r),elevation:i?8:void 0,ref:t,ownerState:o},a))}),Yw0=Jw0;function Zw0(u){return Xe("MuiCardContent",u)}gt("MuiCardContent",["root"]);const Xw0=["className","component"],ux0=u=>{const{classes:e}=u;return mt({root:["root"]},Zw0,e)},ex0=Ee("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(u,e)=>e.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),tx0=w.forwardRef(function(e,t){const n=bt({props:e,name:"MuiCardContent"}),{className:r,component:i="div"}=n,a=cu(n,Xw0),o=r0({},n,{component:i}),s=ux0(o);return c0.jsx(ex0,r0({as:i,className:pu(s.root,r),ownerState:o,ref:t},a))}),nx0=tx0,rx0=(u,e)=>r0({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},e&&!u.vars&&{colorScheme:u.palette.mode}),ix0=u=>r0({color:(u.vars||u).palette.text.primary},u.typography.body1,{backgroundColor:(u.vars||u).palette.background.default,"@media print":{backgroundColor:(u.vars||u).palette.common.white}}),ax0=(u,e=!1)=>{var t;const n={};e&&u.colorSchemes&&Object.entries(u.colorSchemes).forEach(([a,o])=>{var s;n[u.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(s=o.palette)==null?void 0:s.mode}});let r=r0({html:rx0(u,e),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:u.typography.fontWeightBold},body:r0({margin:0},ix0(u),{"&::backdrop":{backgroundColor:(u.vars||u).palette.background.default}})},n);const i=(t=u.components)==null||(t=t.MuiCssBaseline)==null?void 0:t.styleOverrides;return i&&(r=[r,i]),r};function ox0(u){const e=bt({props:u,name:"MuiCssBaseline"}),{children:t,enableColorScheme:n=!1}=e;return c0.jsxs(w.Fragment,{children:[c0.jsx(Nw0,{styles:r=>ax0(r,n)}),t]})}const sx0=w.createContext(),cw=sx0;function fx0(u){return Xe("MuiGrid",u)}const lx0=[0,1,2,3,4,5,6,7,8,9,10],cx0=["column-reverse","column","row-reverse","row"],Ex0=["nowrap","wrap-reverse","wrap"],Rf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],dx0=gt("MuiGrid",["root","container","item","zeroMinWidth",...lx0.map(u=>`spacing-xs-${u}`),...cx0.map(u=>`direction-xs-${u}`),...Ex0.map(u=>`wrap-xs-${u}`),...Rf.map(u=>`grid-xs-${u}`),...Rf.map(u=>`grid-sm-${u}`),...Rf.map(u=>`grid-md-${u}`),...Rf.map(u=>`grid-lg-${u}`),...Rf.map(u=>`grid-xl-${u}`)]),Xl=dx0,px0=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function i4(u){const e=parseFloat(u);return`${e}${String(u).replace(String(e),"")||"px"}`}function hx0({theme:u,ownerState:e}){let t;return u.breakpoints.keys.reduce((n,r)=>{let i={};if(e[r]&&(t=e[r]),!t)return n;if(t===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(t==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=ho({values:e.columns,breakpoints:u.breakpoints.values}),o=typeof a=="object"?a[r]:a;if(o==null)return n;const s=`${Math.round(t/o*1e8)/1e6}%`;let f={};if(e.container&&e.item&&e.columnSpacing!==0){const l=u.spacing(e.columnSpacing);if(l!=="0px"){const c=`calc(${s} + ${i4(l)})`;f={flexBasis:c,maxWidth:c}}}i=r0({flexBasis:s,flexGrow:0,maxWidth:s},f)}return u.breakpoints.values[r]===0?Object.assign(n,i):n[u.breakpoints.up(r)]=i,n},{})}function Cx0({theme:u,ownerState:e}){const t=ho({values:e.direction,breakpoints:u.breakpoints.values});return dt({theme:u},t,n=>{const r={flexDirection:n};return n.indexOf("column")===0&&(r[`& > .${Xl.item}`]={maxWidth:"none"}),r})}function IM({breakpoints:u,values:e}){let t="";Object.keys(e).forEach(r=>{t===""&&e[r]!==0&&(t=r)});const n=Object.keys(u).sort((r,i)=>u[r]-u[i]);return n.slice(0,n.indexOf(t))}function mx0({theme:u,ownerState:e}){const{container:t,rowSpacing:n}=e;let r={};if(t&&n!==0){const i=ho({values:n,breakpoints:u.breakpoints.values});let a;typeof i=="object"&&(a=IM({breakpoints:u.breakpoints.values,values:i})),r=dt({theme:u},i,(o,s)=>{var f;const l=u.spacing(o);return l!=="0px"?{marginTop:`-${i4(l)}`,[`& > .${Xl.item}`]:{paddingTop:i4(l)}}:(f=a)!=null&&f.includes(s)?{}:{marginTop:0,[`& > .${Xl.item}`]:{paddingTop:0}}})}return r}function gx0({theme:u,ownerState:e}){const{container:t,columnSpacing:n}=e;let r={};if(t&&n!==0){const i=ho({values:n,breakpoints:u.breakpoints.values});let a;typeof i=="object"&&(a=IM({breakpoints:u.breakpoints.values,values:i})),r=dt({theme:u},i,(o,s)=>{var f;const l=u.spacing(o);return l!=="0px"?{width:`calc(100% + ${i4(l)})`,marginLeft:`-${i4(l)}`,[`& > .${Xl.item}`]:{paddingLeft:i4(l)}}:(f=a)!=null&&f.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${Xl.item}`]:{paddingLeft:0}}})}return r}function bx0(u,e,t={}){if(!u||u<=0)return[];if(typeof u=="string"&&!Number.isNaN(Number(u))||typeof u=="number")return[t[`spacing-xs-${String(u)}`]];const n=[];return e.forEach(r=>{const i=u[r];Number(i)>0&&n.push(t[`spacing-${r}-${String(i)}`])}),n}const Ax0=Ee("div",{name:"MuiGrid",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u,{container:n,direction:r,item:i,spacing:a,wrap:o,zeroMinWidth:s,breakpoints:f}=t;let l=[];n&&(l=bx0(a,f,e));const c=[];return f.forEach(E=>{const d=t[E];d&&c.push(e[`grid-${E}-${String(d)}`])}),[e.root,n&&e.container,i&&e.item,s&&e.zeroMinWidth,...l,r!=="row"&&e[`direction-xs-${String(r)}`],o!=="wrap"&&e[`wrap-xs-${String(o)}`],...c]}})(({ownerState:u})=>r0({boxSizing:"border-box"},u.container&&{display:"flex",flexWrap:"wrap",width:"100%"},u.item&&{margin:0},u.zeroMinWidth&&{minWidth:0},u.wrap!=="wrap"&&{flexWrap:u.wrap}),Cx0,mx0,gx0,hx0);function yx0(u,e){if(!u||u<=0)return[];if(typeof u=="string"&&!Number.isNaN(Number(u))||typeof u=="number")return[`spacing-xs-${String(u)}`];const t=[];return e.forEach(n=>{const r=u[n];if(Number(r)>0){const i=`spacing-${n}-${String(r)}`;t.push(i)}}),t}const vx0=u=>{const{classes:e,container:t,direction:n,item:r,spacing:i,wrap:a,zeroMinWidth:o,breakpoints:s}=u;let f=[];t&&(f=yx0(i,s));const l=[];s.forEach(E=>{const d=u[E];d&&l.push(`grid-${E}-${String(d)}`)});const c={root:["root",t&&"container",r&&"item",o&&"zeroMinWidth",...f,n!=="row"&&`direction-xs-${String(n)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...l]};return mt(c,fx0,e)},Bx0=w.forwardRef(function(e,t){const n=bt({props:e,name:"MuiGrid"}),{breakpoints:r}=VV(),i=jE(n),{className:a,columns:o,columnSpacing:s,component:f="div",container:l=!1,direction:c="row",item:E=!1,rowSpacing:d,spacing:p=0,wrap:h="wrap",zeroMinWidth:b=!1}=i,g=cu(i,px0),m=d||p,A=s||p,y=w.useContext(cw),B=l?o||12:y,v={},C=r0({},g);r.keys.forEach(_=>{g[_]!=null&&(v[_]=g[_],delete C[_])});const D=r0({},i,{columns:B,container:l,direction:c,item:E,rowSpacing:m,columnSpacing:A,wrap:h,zeroMinWidth:b,spacing:p},v,{breakpoints:r.keys}),T=vx0(D);return c0.jsx(cw.Provider,{value:B,children:c0.jsx(Ax0,r0({ownerState:D,className:pu(T.root,a),as:f,ref:t},C))})}),uc=Bx0,Fx0=["MarketPlace","Factory"];function Dx0(){const u=iS(),e=At(),t=()=>{e.isConnected&&u("/real-token/Profile/"+e.address)},n=r=>{console.log("Redirect to page: ",r),r=="MarketPlace"?u("/real-token/Explore"):r=="Factory"&&u("/real-token/Mint")};return w.useEffect(()=>{},[]),c0.jsx(rK,{position:"static",style:{background:"linear-gradient(269.67deg, #CCE1FA -10.61%, #C6EEEA 113.26%)"},children:c0.jsx(EK,{maxWidth:"xl",children:c0.jsxs(lK,{disableGutters:!0,children:[c0.jsx("img",{src:AK,width:40}),c0.jsx(bK,{sx:{flexGrow:1,display:{xs:"none",md:"flex"}},children:Fx0.map(r=>c0.jsx(zc,{onClick:()=>n(r),sx:{my:2,color:"#352D50",display:"block"},children:r},r))}),c0.jsxs(FG,{sx:{flexGrow:0},direction:"row",children:[c0.jsx(Vb,{chainStatus:"full",accountStatus:{smallScreen:"avatar",largeScreen:"address"}}),e.isConnected&&c0.jsx("div",{onClick:t,children:c0.jsx(Hw0,{})})]})]})})})}function wx0(u){return c0.jsx(Yw0,{onClick:u.onClick,className:"nft-card",children:c0.jsxs(nx0,{children:[c0.jsx("img",{src:u.NFT.img,width:200,height:275}),c0.jsx("h4",{children:u.NFT.name}),c0.jsxs("p",{children:[u.NFT.price," ",u.NFT.price_token]}),c0.jsx(zc,{variant:"contained",color:"primary",children:"Buy Now"})]})})}const xx0="hh-sol-artifact-1",kx0="MarketPlace",_x0="contracts/MarketPlace.sol",Sx0=[{inputs:[{internalType:"address",name:"_fractionalizedNFT",type:"address"},{internalType:"address",name:"_matic",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"seller",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"price",type:"uint256"}],name:"TokenListed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"TokenRemovedFromSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"TokenSold",type:"event"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"buyToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"}],name:"listTokenForSale",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"removeTokenFromSale",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],Tx0="0x60806040523480156200001157600080fd5b50604051620019853803806200198583398181016040528101906200003791906200027e565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000ad5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a49190620002d6565b60405180910390fd5b620000be816200015060201b60201c565b506001808190555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620002f3565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002468262000219565b9050919050565b620002588162000239565b81146200026457600080fd5b50565b60008151905062000278816200024d565b92915050565b6000806040838503121562000298576200029762000214565b5b6000620002a88582860162000267565b9250506020620002bb8582860162000267565b9150509250929050565b620002d08162000239565b82525050565b6000602082019050620002ed6000830184620002c5565b92915050565b61168280620003036000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80635fe287b914610067578063715018a6146100835780637273cc021461008d5780638da5cb5b146100a9578063e8cdea11146100c7578063f2fde38b146100e3575b600080fd5b610081600480360381019061007c9190610e39565b6100ff565b005b61008b61059b565b005b6100a760048036038101906100a29190610ea8565b6105af565b005b6100b1610875565b6040516100be9190610f3c565b60405180910390f35b6100e160048036038101906100dc9190610f57565b61089e565b005b6100fd60048036038101906100f89190610fb0565b6109d9565b005b610107610a5f565b6000821161014a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101419061103a565b60405180910390fd5b600060046000858152602001908152602001600020905082816002015410156101a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019f906110cc565b60405180910390fd5b60008382600301546101ba919061111b565b905080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016102189190610f3c565b602060405180830381865afa158015610235573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102599190611172565b101561029a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610291906111eb565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd338460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161031d9392919061121a565b6020604051808303816000875af115801561033c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103609190611289565b61039f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039690611302565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663605105f08360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16338888886040518663ffffffff1660e01b81526004016104269594939291906113a1565b600060405180830381600087803b15801561044057600080fd5b505af1158015610454573d6000803e3d6000fd5b505050508382600201600082825461046c91906113fb565b925050819055503373ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16867f3d5eb834b5d6cadc063c171c3f25f60bca8ea892ba9db25342278927d0af9556876040516104f5919061142f565b60405180910390a4600082600201540361058c5760046000868152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050847fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a25b5050610596610aa5565b505050565b6105a3610aae565b6105ad6000610b35565b565b6105b7610a5f565b600082116105fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f19061103a565b60405180910390fd5b6000811161063d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063490611496565b60405180910390fd5b61064683610bf9565b610685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067c90611502565b60405180910390fd5b81600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632fecd4bb33866040518363ffffffff1660e01b81526004016106e3929190611522565b602060405180830381865afa158015610700573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107249190611172565b1015610765576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075c90611597565b60405180910390fd5b60405180608001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001828152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301559050503373ffffffffffffffffffffffffffffffffffffffff16837f2428821d20d9a8080d99a3d335d478f0546d90a0376be12c52a6d600f15586bf84846040516108609291906115b7565b60405180910390a3610870610aa5565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6108a6610a5f565b803373ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461094b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109429061162c565b60405180910390fd5b60046000838152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050817fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a2506109d6610aa5565b50565b6109e1610aae565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a535760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610a4a9190610f3c565b60405180910390fd5b610a5c81610b35565b50565b600260015403610a9b576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b610ab6610ca1565b73ffffffffffffffffffffffffffffffffffffffff16610ad4610875565b73ffffffffffffffffffffffffffffffffffffffff1614610b3357610af7610ca1565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610b2a9190610f3c565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401610c58929190611522565b602060405180830381865afa158015610c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c999190611172565b119050919050565b600033905090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610cd081610cbd565b8114610cdb57600080fd5b50565b600081359050610ced81610cc7565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610d4682610cfd565b810181811067ffffffffffffffff82111715610d6557610d64610d0e565b5b80604052505050565b6000610d78610ca9565b9050610d848282610d3d565b919050565b600067ffffffffffffffff821115610da457610da3610d0e565b5b610dad82610cfd565b9050602081019050919050565b82818337600083830152505050565b6000610ddc610dd784610d89565b610d6e565b905082815260208101848484011115610df857610df7610cf8565b5b610e03848285610dba565b509392505050565b600082601f830112610e2057610e1f610cf3565b5b8135610e30848260208601610dc9565b91505092915050565b600080600060608486031215610e5257610e51610cb3565b5b6000610e6086828701610cde565b9350506020610e7186828701610cde565b925050604084013567ffffffffffffffff811115610e9257610e91610cb8565b5b610e9e86828701610e0b565b9150509250925092565b600080600060608486031215610ec157610ec0610cb3565b5b6000610ecf86828701610cde565b9350506020610ee086828701610cde565b9250506040610ef186828701610cde565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610f2682610efb565b9050919050565b610f3681610f1b565b82525050565b6000602082019050610f516000830184610f2d565b92915050565b600060208284031215610f6d57610f6c610cb3565b5b6000610f7b84828501610cde565b91505092915050565b610f8d81610f1b565b8114610f9857600080fd5b50565b600081359050610faa81610f84565b92915050565b600060208284031215610fc657610fc5610cb3565b5b6000610fd484828501610f9b565b91505092915050565b600082825260208201905092915050565b7f416d6f756e74206d7573742062652067726561746572207468616e207a65726f600082015250565b6000611024602083610fdd565b915061102f82610fee565b602082019050919050565b6000602082019050818103600083015261105381611017565b9050919050565b7f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6520666f722060008201527f73616c6500000000000000000000000000000000000000000000000000000000602082015250565b60006110b6602483610fdd565b91506110c18261105a565b604082019050919050565b600060208201905081810360008301526110e5816110a9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061112682610cbd565b915061113183610cbd565b925082820261113f81610cbd565b91508282048414831517611156576111556110ec565b5b5092915050565b60008151905061116c81610cc7565b92915050565b60006020828403121561118857611187610cb3565b5b60006111968482850161115d565b91505092915050565b7f496e73756666696369656e742062757965722062616c616e6365000000000000600082015250565b60006111d5601a83610fdd565b91506111e08261119f565b602082019050919050565b60006020820190508181036000830152611204816111c8565b9050919050565b61121481610cbd565b82525050565b600060608201905061122f6000830186610f2d565b61123c6020830185610f2d565b611249604083018461120b565b949350505050565b60008115159050919050565b61126681611251565b811461127157600080fd5b50565b6000815190506112838161125d565b92915050565b60006020828403121561129f5761129e610cb3565b5b60006112ad84828501611274565b91505092915050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b60006112ec601583610fdd565b91506112f7826112b6565b602082019050919050565b6000602082019050818103600083015261131b816112df565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561135c578082015181840152602081019050611341565b60008484015250505050565b600061137382611322565b61137d818561132d565b935061138d81856020860161133e565b61139681610cfd565b840191505092915050565b600060a0820190506113b66000830188610f2d565b6113c36020830187610f2d565b6113d0604083018661120b565b6113dd606083018561120b565b81810360808301526113ef8184611368565b90509695505050505050565b600061140682610cbd565b915061141183610cbd565b9250828203905081811115611429576114286110ec565b5b92915050565b6000602082019050611444600083018461120b565b92915050565b7f5072696365206d7573742062652067726561746572207468616e207a65726f00600082015250565b6000611480601f83610fdd565b915061148b8261144a565b602082019050919050565b600060208201905081810360008301526114af81611473565b9050919050565b7f546f6b656e206d757374206265206672616374696f6e616c697a656400000000600082015250565b60006114ec601c83610fdd565b91506114f7826114b6565b602082019050919050565b6000602082019050818103600083015261151b816114df565b9050919050565b60006040820190506115376000830185610f2d565b611544602083018461120b565b9392505050565b7f496e73756666696369656e74206f776e65727368697000000000000000000000600082015250565b6000611581601683610fdd565b915061158c8261154b565b602082019050919050565b600060208201905081810360008301526115b081611574565b9050919050565b60006040820190506115cc600083018561120b565b6115d9602083018461120b565b9392505050565b7f4e6f74207468652073656c6c6572000000000000000000000000000000000000600082015250565b6000611616600e83610fdd565b9150611621826115e0565b602082019050919050565b6000602082019050818103600083015261164581611609565b905091905056fea2646970667358221220e0d551932168471afc5b6ed8e4b59120e6bb5ca1f4256467b601e7cb9a24436164736f6c63430008140033",Px0="0x608060405234801561001057600080fd5b50600436106100625760003560e01c80635fe287b914610067578063715018a6146100835780637273cc021461008d5780638da5cb5b146100a9578063e8cdea11146100c7578063f2fde38b146100e3575b600080fd5b610081600480360381019061007c9190610e39565b6100ff565b005b61008b61059b565b005b6100a760048036038101906100a29190610ea8565b6105af565b005b6100b1610875565b6040516100be9190610f3c565b60405180910390f35b6100e160048036038101906100dc9190610f57565b61089e565b005b6100fd60048036038101906100f89190610fb0565b6109d9565b005b610107610a5f565b6000821161014a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101419061103a565b60405180910390fd5b600060046000858152602001908152602001600020905082816002015410156101a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019f906110cc565b60405180910390fd5b60008382600301546101ba919061111b565b905080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016102189190610f3c565b602060405180830381865afa158015610235573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102599190611172565b101561029a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610291906111eb565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd338460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161031d9392919061121a565b6020604051808303816000875af115801561033c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103609190611289565b61039f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039690611302565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663605105f08360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16338888886040518663ffffffff1660e01b81526004016104269594939291906113a1565b600060405180830381600087803b15801561044057600080fd5b505af1158015610454573d6000803e3d6000fd5b505050508382600201600082825461046c91906113fb565b925050819055503373ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16867f3d5eb834b5d6cadc063c171c3f25f60bca8ea892ba9db25342278927d0af9556876040516104f5919061142f565b60405180910390a4600082600201540361058c5760046000868152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050847fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a25b5050610596610aa5565b505050565b6105a3610aae565b6105ad6000610b35565b565b6105b7610a5f565b600082116105fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f19061103a565b60405180910390fd5b6000811161063d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063490611496565b60405180910390fd5b61064683610bf9565b610685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067c90611502565b60405180910390fd5b81600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632fecd4bb33866040518363ffffffff1660e01b81526004016106e3929190611522565b602060405180830381865afa158015610700573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107249190611172565b1015610765576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075c90611597565b60405180910390fd5b60405180608001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001828152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301559050503373ffffffffffffffffffffffffffffffffffffffff16837f2428821d20d9a8080d99a3d335d478f0546d90a0376be12c52a6d600f15586bf84846040516108609291906115b7565b60405180910390a3610870610aa5565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6108a6610a5f565b803373ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461094b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109429061162c565b60405180910390fd5b60046000838152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050817fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a2506109d6610aa5565b50565b6109e1610aae565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a535760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610a4a9190610f3c565b60405180910390fd5b610a5c81610b35565b50565b600260015403610a9b576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b610ab6610ca1565b73ffffffffffffffffffffffffffffffffffffffff16610ad4610875565b73ffffffffffffffffffffffffffffffffffffffff1614610b3357610af7610ca1565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610b2a9190610f3c565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401610c58929190611522565b602060405180830381865afa158015610c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c999190611172565b119050919050565b600033905090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610cd081610cbd565b8114610cdb57600080fd5b50565b600081359050610ced81610cc7565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610d4682610cfd565b810181811067ffffffffffffffff82111715610d6557610d64610d0e565b5b80604052505050565b6000610d78610ca9565b9050610d848282610d3d565b919050565b600067ffffffffffffffff821115610da457610da3610d0e565b5b610dad82610cfd565b9050602081019050919050565b82818337600083830152505050565b6000610ddc610dd784610d89565b610d6e565b905082815260208101848484011115610df857610df7610cf8565b5b610e03848285610dba565b509392505050565b600082601f830112610e2057610e1f610cf3565b5b8135610e30848260208601610dc9565b91505092915050565b600080600060608486031215610e5257610e51610cb3565b5b6000610e6086828701610cde565b9350506020610e7186828701610cde565b925050604084013567ffffffffffffffff811115610e9257610e91610cb8565b5b610e9e86828701610e0b565b9150509250925092565b600080600060608486031215610ec157610ec0610cb3565b5b6000610ecf86828701610cde565b9350506020610ee086828701610cde565b9250506040610ef186828701610cde565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610f2682610efb565b9050919050565b610f3681610f1b565b82525050565b6000602082019050610f516000830184610f2d565b92915050565b600060208284031215610f6d57610f6c610cb3565b5b6000610f7b84828501610cde565b91505092915050565b610f8d81610f1b565b8114610f9857600080fd5b50565b600081359050610faa81610f84565b92915050565b600060208284031215610fc657610fc5610cb3565b5b6000610fd484828501610f9b565b91505092915050565b600082825260208201905092915050565b7f416d6f756e74206d7573742062652067726561746572207468616e207a65726f600082015250565b6000611024602083610fdd565b915061102f82610fee565b602082019050919050565b6000602082019050818103600083015261105381611017565b9050919050565b7f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6520666f722060008201527f73616c6500000000000000000000000000000000000000000000000000000000602082015250565b60006110b6602483610fdd565b91506110c18261105a565b604082019050919050565b600060208201905081810360008301526110e5816110a9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061112682610cbd565b915061113183610cbd565b925082820261113f81610cbd565b91508282048414831517611156576111556110ec565b5b5092915050565b60008151905061116c81610cc7565b92915050565b60006020828403121561118857611187610cb3565b5b60006111968482850161115d565b91505092915050565b7f496e73756666696369656e742062757965722062616c616e6365000000000000600082015250565b60006111d5601a83610fdd565b91506111e08261119f565b602082019050919050565b60006020820190508181036000830152611204816111c8565b9050919050565b61121481610cbd565b82525050565b600060608201905061122f6000830186610f2d565b61123c6020830185610f2d565b611249604083018461120b565b949350505050565b60008115159050919050565b61126681611251565b811461127157600080fd5b50565b6000815190506112838161125d565b92915050565b60006020828403121561129f5761129e610cb3565b5b60006112ad84828501611274565b91505092915050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b60006112ec601583610fdd565b91506112f7826112b6565b602082019050919050565b6000602082019050818103600083015261131b816112df565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561135c578082015181840152602081019050611341565b60008484015250505050565b600061137382611322565b61137d818561132d565b935061138d81856020860161133e565b61139681610cfd565b840191505092915050565b600060a0820190506113b66000830188610f2d565b6113c36020830187610f2d565b6113d0604083018661120b565b6113dd606083018561120b565b81810360808301526113ef8184611368565b90509695505050505050565b600061140682610cbd565b915061141183610cbd565b9250828203905081811115611429576114286110ec565b5b92915050565b6000602082019050611444600083018461120b565b92915050565b7f5072696365206d7573742062652067726561746572207468616e207a65726f00600082015250565b6000611480601f83610fdd565b915061148b8261144a565b602082019050919050565b600060208201905081810360008301526114af81611473565b9050919050565b7f546f6b656e206d757374206265206672616374696f6e616c697a656400000000600082015250565b60006114ec601c83610fdd565b91506114f7826114b6565b602082019050919050565b6000602082019050818103600083015261151b816114df565b9050919050565b60006040820190506115376000830185610f2d565b611544602083018461120b565b9392505050565b7f496e73756666696369656e74206f776e65727368697000000000000000000000600082015250565b6000611581601683610fdd565b915061158c8261154b565b602082019050919050565b600060208201905081810360008301526115b081611574565b9050919050565b60006040820190506115cc600083018561120b565b6115d9602083018461120b565b9392505050565b7f4e6f74207468652073656c6c6572000000000000000000000000000000000000600082015250565b6000611616600e83610fdd565b9150611621826115e0565b602082019050919050565b6000602082019050818103600083015261164581611609565b905091905056fea2646970667358221220e0d551932168471afc5b6ed8e4b59120e6bb5ca1f4256467b601e7cb9a24436164736f6c63430008140033",Ox0={},Ix0={},Nx0={_format:xx0,contractName:kx0,sourceName:_x0,abi:Sx0,bytecode:Tx0,deployedBytecode:Px0,linkReferences:Ox0,deployedLinkReferences:Ix0},Ew="0xcD1F709E4F10839BDaE763E49eFf4858a2D30C9c",NM="0x36D12972E7f888B6C2984D2fbe6F9EAb317Efe39",Rx0="6.9.0";function Mx0(u,e,t){const n=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(u[n])))).reduce((n,r,i)=>(n[e[i]]=r,n),{})}function j0(u,e,t){for(let n in e){let r=e[n];const i=t?t[n]:null;i&&Mx0(r,i,n),Object.defineProperty(u,n,{enumerable:!0,value:r,writable:!1})}}function $s(u){if(u==null)return"null";if(Array.isArray(u))return"[ "+u.map($s).join(", ")+" ]";if(u instanceof Uint8Array){const e="0123456789abcdef";let t="0x";for(let n=0;n>4],t+=e[u[n]&15];return t}if(typeof u=="object"&&typeof u.toJSON=="function")return $s(u.toJSON());switch(typeof u){case"boolean":case"symbol":return u.toString();case"bigint":return BigInt(u).toString();case"number":return u.toString();case"string":return JSON.stringify(u);case"object":{const e=Object.keys(u);return e.sort(),"{ "+e.map(t=>`${$s(t)}: ${$s(u[t])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function an(u,e){return u&&u.code===e}function CA(u){return an(u,"CALL_EXCEPTION")}function Ju(u,e,t){let n=u;{const i=[];if(t){if("message"in t||"code"in t||"name"in t)throw new Error(`value will overwrite populated values: ${$s(t)}`);for(const a in t){if(a==="shortMessage")continue;const o=t[a];i.push(a+"="+$s(o))}}i.push(`code=${e}`),i.push(`version=${Rx0}`),i.length&&(u+=" ("+i.join(", ")+")")}let r;switch(e){case"INVALID_ARGUMENT":r=new TypeError(u);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":r=new RangeError(u);break;default:r=new Error(u)}return j0(r,{code:e}),t&&Object.assign(r,t),r.shortMessage==null&&j0(r,{shortMessage:n}),r}function l0(u,e,t,n){if(!u)throw Ju(e,t,n)}function Q(u,e,t,n){l0(u,e,"INVALID_ARGUMENT",{argument:t,value:n})}function RM(u,e,t){t==null&&(t=""),t&&(t=": "+t),l0(u>=e,"missing arguemnt"+t,"MISSING_ARGUMENT",{count:u,expectedCount:e}),l0(u<=e,"too many arguemnts"+t,"UNEXPECTED_ARGUMENT",{count:u,expectedCount:e})}const jx0=["NFD","NFC","NFKD","NFKC"].reduce((u,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");u.push(e)}catch{}return u},[]);function zx0(u){l0(jx0.indexOf(u)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:u}})}function Bd(u,e,t){if(t==null&&(t=""),u!==e){let n=t,r="new";t&&(n+=".",r+=" "+t),l0(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:r})}}function MM(u,e,t){if(u instanceof Uint8Array)return t?new Uint8Array(u):u;if(typeof u=="string"&&u.match(/^0x([0-9a-f][0-9a-f])*$/i)){const n=new Uint8Array((u.length-2)/2);let r=2;for(let i=0;i>4]+dw[r&15]}return t}function te(u){return"0x"+u.map(e=>I0(e).substring(2)).join("")}function a4(u){return ku(u,!0)?(u.length-2)/2:ru(u).length}function Ru(u,e,t){const n=ru(u);return t!=null&&t>n.length&&l0(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:t}),I0(n.slice(e??0,t??n.length))}function jM(u,e,t){const n=ru(u);l0(e>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:e,offset:e+1});const r=new Uint8Array(e);return r.fill(0),t?r.set(n,e-n.length):r.set(n,0),I0(r)}function Io(u,e){return jM(u,e,!0)}function $x0(u,e){return jM(u,e,!1)}const Fd=BigInt(0),Tn=BigInt(1),Us=9007199254740991;function Ux0(u,e){const t=Dd(u,"value"),n=BigInt(q0(e,"width"));if(l0(t>>n===Fd,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:u}),t>>n-Tn){const r=(Tn<=-Us&&u<=Us,"overflow",e||"value",u),BigInt(u);case"string":try{if(u==="")throw new Error("empty string");return u[0]==="-"&&u[1]!=="-"?-BigInt(u.substring(1)):BigInt(u)}catch(t){Q(!1,`invalid BigNumberish string: ${t.message}`,e||"value",u)}}Q(!1,"invalid BigNumberish value",e||"value",u)}function Dd(u,e){const t=N0(u,e);return l0(t>=Fd,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:u}),t}const pw="0123456789abcdef";function mA(u){if(u instanceof Uint8Array){let e="0x0";for(const t of u)e+=pw[t>>4],e+=pw[t&15];return BigInt(e)}return N0(u)}function q0(u,e){switch(typeof u){case"bigint":return Q(u>=-Us&&u<=Us,"overflow",e||"value",u),Number(u);case"number":return Q(Number.isInteger(u),"underflow",e||"value",u),Q(u>=-Us&&u<=Us,"overflow",e||"value",u),u;case"string":try{if(u==="")throw new Error("empty string");return q0(BigInt(u),e)}catch(t){Q(!1,`invalid numeric string: ${t.message}`,e||"value",u)}}Q(!1,"invalid numeric value",e||"value",u)}function Wx0(u){return q0(mA(u))}function Ea(u,e){let n=Dd(u,"value").toString(16);if(e==null)n.length%2&&(n="0"+n);else{const r=q0(e,"width");for(l0(r*2>=n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:u});n.length>6===2;a++)i++;return i}return u==="OVERRUN"?t.length-e-1:0}function Qx0(u,e,t,n,r){return u==="OVERLONG"?(Q(typeof r=="number","invalid bad code point for replacement","badCodepoint",r),n.push(r),0):(n.push(65533),$M(u,e,t))}const Jx0=Object.freeze({error:Kx0,ignore:$M,replace:Qx0});function Yx0(u,e){e==null&&(e=Jx0.error);const t=ru(u,"bytes"),n=[];let r=0;for(;r>7)){n.push(i);continue}let a=null,o=null;if((i&224)===192)a=1,o=127;else if((i&240)===224)a=2,o=2047;else if((i&248)===240)a=3,o=65535;else{(i&192)===128?r+=e("UNEXPECTED_CONTINUE",r-1,t,n):r+=e("BAD_PREFIX",r-1,t,n);continue}if(r-1+a>=t.length){r+=e("OVERRUN",r-1,t,n);continue}let s=i&(1<<8-a-1)-1;for(let f=0;f1114111){r+=e("OUT_OF_RANGE",r-1-a,t,n,s);continue}if(s>=55296&&s<=57343){r+=e("UTF16_SURROGATE",r-1-a,t,n,s);continue}if(s<=o){r+=e("OVERLONG",r-1-a,t,n,s);continue}n.push(s)}}return n}function qr(u,e){e!=null&&(zx0(e),u=u.normalize(e));let t=[];for(let n=0;n>6|192),t.push(r&63|128);else if((r&64512)==55296){n++;const i=u.charCodeAt(n);Q(n>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(a&63|128)}else t.push(r>>12|224),t.push(r>>6&63|128),t.push(r&63|128)}return new Uint8Array(t)}function Zx0(u){return u.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function gA(u,e){return Zx0(Yx0(u,e))}function UM(u){async function e(t,n){const r=t.url.split(":")[0].toLowerCase();l0(r==="http"||r==="https",`unsupported protocol ${r}`,"UNSUPPORTED_OPERATION",{info:{protocol:r},operation:"request"}),l0(r==="https"||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i;if(n){const c=new AbortController;i=c.signal,n.addListener(()=>{c.abort()})}const a={method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:i},o=await fetch(t.url,a),s={};o.headers.forEach((c,E)=>{s[E.toLowerCase()]=c});const f=await o.arrayBuffer(),l=f==null?null:new Uint8Array(f);return{statusCode:o.status,statusMessage:o.statusText,headers:s,body:l}}return e}const Xx0=12,uk0=250;let Cw=UM();const ek0=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),tk0=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let b8=!1;async function WM(u,e){try{const t=u.match(ek0);if(!t)throw new Error("invalid data");return new na(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?Gx0(t[3]):rk0(t[3]))}catch{return new na(599,"BAD REQUEST (invalid data: URI)",{},null,new ui(u))}}function qM(u){async function e(t,n){try{const r=t.match(tk0);if(!r)throw new Error("invalid link");return new ui(`${u}${r[2]}`)}catch{return new na(599,"BAD REQUEST (invalid IPFS URI)",{},null,new ui(t))}}return e}const m6={data:WM,ipfs:qM("https://gateway.ipfs.io/ipfs/")},HM=new WeakMap;var Ha,ki;class nk0{constructor(e){X(this,Ha,void 0);X(this,ki,void 0);I(this,Ha,[]),I(this,ki,!1),HM.set(e,()=>{if(!x(this,ki)){I(this,ki,!0);for(const t of x(this,Ha))setTimeout(()=>{t()},0);I(this,Ha,[])}})}addListener(e){l0(!x(this,ki),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),x(this,Ha).push(e)}get cancelled(){return x(this,ki)}checkSignal(){l0(!this.cancelled,"cancelled","CANCELLED",{})}}Ha=new WeakMap,ki=new WeakMap;function g6(u){if(u==null)throw new Error("missing signal; should not happen");return u.checkSignal(),u}var f4,l4,Bn,wr,c4,E4,re,Dt,xr,Ga,Va,Ka,Kn,kr,_i,Qa,Yf;const z9=class z9{constructor(e){X(this,Qa);X(this,f4,void 0);X(this,l4,void 0);X(this,Bn,void 0);X(this,wr,void 0);X(this,c4,void 0);X(this,E4,void 0);X(this,re,void 0);X(this,Dt,void 0);X(this,xr,void 0);X(this,Ga,void 0);X(this,Va,void 0);X(this,Ka,void 0);X(this,Kn,void 0);X(this,kr,void 0);X(this,_i,void 0);I(this,E4,String(e)),I(this,f4,!1),I(this,l4,!0),I(this,Bn,{}),I(this,wr,""),I(this,c4,3e5),I(this,kr,{slotInterval:uk0,maxAttempts:Xx0}),I(this,_i,null)}get url(){return x(this,E4)}set url(e){I(this,E4,String(e))}get body(){return x(this,re)==null?null:new Uint8Array(x(this,re))}set body(e){if(e==null)I(this,re,void 0),I(this,Dt,void 0);else if(typeof e=="string")I(this,re,qr(e)),I(this,Dt,"text/plain");else if(e instanceof Uint8Array)I(this,re,e),I(this,Dt,"application/octet-stream");else if(typeof e=="object")I(this,re,qr(JSON.stringify(e))),I(this,Dt,"application/json");else throw new Error("invalid body")}hasBody(){return x(this,re)!=null}get method(){return x(this,wr)?x(this,wr):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),I(this,wr,String(e).toUpperCase())}get headers(){const e=Object.assign({},x(this,Bn));return x(this,xr)&&(e.authorization=`Basic ${Vx0(qr(x(this,xr)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&x(this,Dt)&&(e["content-type"]=x(this,Dt)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){x(this,Bn)[String(e).toLowerCase()]=String(t)}clearHeaders(){I(this,Bn,{})}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n=0,"timeout must be non-zero","timeout",e),I(this,c4,e)}get preflightFunc(){return x(this,Ga)||null}set preflightFunc(e){I(this,Ga,e)}get processFunc(){return x(this,Va)||null}set processFunc(e){I(this,Va,e)}get retryFunc(){return x(this,Ka)||null}set retryFunc(e){I(this,Ka,e)}get getUrlFunc(){return x(this,_i)||Cw}set getUrlFunc(e){I(this,_i,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(x(this,kr).slotInterval=e.slotInterval),e.maxAttempts!=null&&(x(this,kr).maxAttempts=e.maxAttempts)}send(){return l0(x(this,Kn)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),I(this,Kn,new nk0(this)),A0(this,Qa,Yf).call(this,0,mw()+this.timeout,0,this,new na(0,"",{},null,this))}cancel(){l0(x(this,Kn)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=HM.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const t=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();l0(this.method==="GET"&&(t!=="https"||n!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const r=new z9(e);return r.method="GET",r.allowGzip=this.allowGzip,r.timeout=this.timeout,I(r,Bn,Object.assign({},x(this,Bn))),x(this,re)&&I(r,re,new Uint8Array(x(this,re))),I(r,Dt,x(this,Dt)),r}clone(){const e=new z9(this.url);return I(e,wr,x(this,wr)),x(this,re)&&I(e,re,x(this,re)),I(e,Dt,x(this,Dt)),I(e,Bn,Object.assign({},x(this,Bn))),I(e,xr,x(this,xr)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),I(e,Ga,x(this,Ga)),I(e,Va,x(this,Va)),I(e,Ka,x(this,Ka)),I(e,_i,x(this,_i)),e}static lockConfig(){b8=!0}static getGateway(e){return m6[e.toLowerCase()]||null}static registerGateway(e,t){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(b8)throw new Error("gateways locked");m6[e]=t}static registerGetUrl(e){if(b8)throw new Error("gateways locked");Cw=e}static createGetUrlFunc(e){return UM()}static createDataGateway(){return WM}static createIpfsGatewayFunc(e){return qM(e)}};f4=new WeakMap,l4=new WeakMap,Bn=new WeakMap,wr=new WeakMap,c4=new WeakMap,E4=new WeakMap,re=new WeakMap,Dt=new WeakMap,xr=new WeakMap,Ga=new WeakMap,Va=new WeakMap,Ka=new WeakMap,Kn=new WeakMap,kr=new WeakMap,_i=new WeakMap,Qa=new WeakSet,Yf=async function(e,t,n,r,i){var l,c,E;if(e>=x(this,kr).maxAttempts)return i.makeServerError("exceeded maximum retry limit");l0(mw()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:r}),n>0&&await ik0(n);let a=this.clone();const o=(a.url.split(":")[0]||"").toLowerCase();if(o in m6){const d=await m6[o](a.url,g6(x(r,Kn)));if(d instanceof na){let p=d;if(this.processFunc){g6(x(r,Kn));try{p=await this.processFunc(a,p)}catch(h){(h.throttle==null||typeof h.stall!="number")&&p.makeServerError("error in post-processing function",h).assertOk()}}return p}a=d}this.preflightFunc&&(a=await this.preflightFunc(a));const s=await this.getUrlFunc(a,g6(x(r,Kn)));let f=new na(s.statusCode,s.statusMessage,s.headers,s.body,r);if(f.statusCode===301||f.statusCode===302){try{const d=f.headers.location||"";return A0(l=a.redirect(d),Qa,Yf).call(l,e+1,t,0,r,f)}catch{}return f}else if(f.statusCode===429&&(this.retryFunc==null||await this.retryFunc(a,f,e))){const d=f.headers["retry-after"];let p=x(this,kr).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof d=="string"&&d.match(/^[1-9][0-9]*$/)&&(p=parseInt(d)),A0(c=a.clone(),Qa,Yf).call(c,e+1,t,p,r,f)}if(this.processFunc){g6(x(r,Kn));try{f=await this.processFunc(a,f)}catch(d){(d.throttle==null||typeof d.stall!="number")&&f.makeServerError("error in post-processing function",d).assertOk();let p=x(this,kr).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return d.stall>=0&&(p=d.stall),A0(E=a.clone(),Qa,Yf).call(E,e+1,t,p,r,f)}}return f};let ui=z9;var cc,Ec,dc,Fn,d4,Ja;const MA=class MA{constructor(e,t,n,r,i){X(this,cc,void 0);X(this,Ec,void 0);X(this,dc,void 0);X(this,Fn,void 0);X(this,d4,void 0);X(this,Ja,void 0);I(this,cc,e),I(this,Ec,t),I(this,dc,Object.keys(n).reduce((a,o)=>(a[o.toLowerCase()]=String(n[o]),a),{})),I(this,Fn,r==null?null:new Uint8Array(r)),I(this,d4,i||null),I(this,Ja,{message:""})}toString(){return``}get statusCode(){return x(this,cc)}get statusMessage(){return x(this,Ec)}get headers(){return Object.assign({},x(this,dc))}get body(){return x(this,Fn)==null?null:new Uint8Array(x(this,Fn))}get bodyText(){try{return x(this,Fn)==null?"":gA(x(this,Fn))}catch{l0(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{l0(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n=0,"invalid stall timeout","stall",t);const n=new Error(e||"throttling requests");throw j0(n,{stall:t,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return x(this,Fn)!=null}get request(){return x(this,d4)}ok(){return x(this,Ja).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=x(this,Ja);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`),l0(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t})}};cc=new WeakMap,Ec=new WeakMap,dc=new WeakMap,Fn=new WeakMap,d4=new WeakMap,Ja=new WeakMap;let na=MA;function mw(){return new Date().getTime()}function rk0(u){return qr(u.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))}function ik0(u){return new Promise(e=>setTimeout(e,u))}function ak0(u){let e=u.toString(16);for(;e.length<2;)e="0"+e;return"0x"+e}function gw(u,e,t){let n=0;for(let r=0;r{l0(n<=u.length,"data short segment too short","BUFFER_OVERRUN",{buffer:u,length:u.length,offset:n})};if(u[e]>=248){const n=u[e]-247;t(e+1+n);const r=gw(u,e+1,n);return t(e+1+n+r),bw(u,e,e+1+n,n+r)}else if(u[e]>=192){const n=u[e]-192;return t(e+1+n),bw(u,e,e+1,n)}else if(u[e]>=184){const n=u[e]-183;t(e+1+n);const r=gw(u,e+1,n);t(e+1+n+r);const i=I0(u.slice(e+1+n,e+1+n+r));return{consumed:1+n+r,result:i}}else if(u[e]>=128){const n=u[e]-128;t(e+1+n);const r=I0(u.slice(e+1,e+1+n));return{consumed:1+n,result:r}}return{consumed:1,result:ak0(u[e])}}function bA(u){const e=ru(u,"data"),t=GM(e,0);return Q(t.consumed===e.length,"unexpected junk after rlp payload","data",u),t.result}function Aw(u){const e=[];for(;u;)e.unshift(u&255),u>>=8;return e}function VM(u){if(Array.isArray(u)){let n=[];if(u.forEach(function(i){n=n.concat(VM(i))}),n.length<=55)return n.unshift(192+n.length),n;const r=Aw(n.length);return r.unshift(247+r.length),r.concat(n)}const e=Array.prototype.slice.call(ru(u,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const t=Aw(e.length);return t.unshift(183+t.length),t.concat(e)}const yw="0123456789abcdef";function ec(u){let e="0x";for(const t of VM(u))e+=yw[t>>4],e+=yw[t&15];return e}const $e=32,QC=new Uint8Array($e),ok0=["then"],b6={};function Mf(u,e){const t=new Error(`deferred error during ABI decoding triggered accessing ${u}`);throw t.error=e,t}var Si;const gl=class gl extends Array{constructor(...t){const n=t[0];let r=t[1],i=(t[2]||[]).slice(),a=!0;n!==b6&&(r=t,i=[],a=!1);super(r.length);X(this,Si,void 0);r.forEach((s,f)=>{this[f]=s});const o=i.reduce((s,f)=>(typeof f=="string"&&s.set(f,(s.get(f)||0)+1),s),new Map);if(I(this,Si,Object.freeze(r.map((s,f)=>{const l=i[f];return l!=null&&o.get(l)===1?l:null}))),!!a)return Object.freeze(this),new Proxy(this,{get:(s,f,l)=>{if(typeof f=="string"){if(f.match(/^[0-9]+$/)){const E=q0(f,"%index");if(E<0||E>=this.length)throw new RangeError("out of result range");const d=s[E];return d instanceof Error&&Mf(`index ${E}`,d),d}if(ok0.indexOf(f)>=0)return Reflect.get(s,f,l);const c=s[f];if(c instanceof Function)return function(...E){return c.apply(this===l?s:this,E)};if(!(f in s))return s.getValue.apply(this===l?s:this,[f])}return Reflect.get(s,f,l)}})}toArray(){const t=[];return this.forEach((n,r)=>{n instanceof Error&&Mf(`index ${r}`,n),t.push(n)}),t}toObject(){return x(this,Si).reduce((t,n,r)=>(l0(n!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),n in t||(t[n]=this.getValue(n)),t),{})}slice(t,n){t==null&&(t=0),t<0&&(t+=this.length,t<0&&(t=0)),n==null&&(n=this.length),n<0&&(n+=this.length,n<0&&(n=0)),n>this.length&&(n=this.length);const r=[],i=[];for(let a=t;a{x(this,_r)[e]=vw(t)}}}_r=new WeakMap,Ya=new WeakMap,p4=new WeakSet,Q6=function(e){return x(this,_r).push(e),I(this,Ya,x(this,Ya)+e.length),e.length};var wt,Vt,L9,KM;const jA=class jA{constructor(e,t){X(this,L9);Z(this,"allowLoose");X(this,wt,void 0);X(this,Vt,void 0);j0(this,{allowLoose:!!t}),I(this,wt,at(e)),I(this,Vt,0)}get data(){return I0(x(this,wt))}get dataLength(){return x(this,wt).length}get consumed(){return x(this,Vt)}get bytes(){return new Uint8Array(x(this,wt))}subReader(e){return new jA(x(this,wt).slice(x(this,Vt)+e),this.allowLoose)}readBytes(e,t){let n=A0(this,L9,KM).call(this,0,e,!!t);return I(this,Vt,x(this,Vt)+n.length),n.slice(0,e)}readValue(){return mA(this.readBytes($e))}readIndex(){return Wx0(this.readBytes($e))}};wt=new WeakMap,Vt=new WeakMap,L9=new WeakSet,KM=function(e,t,n){let r=Math.ceil(t/$e)*$e;return x(this,Vt)+r>x(this,wt).length&&(this.allowLoose&&n&&x(this,Vt)+t<=x(this,wt).length?r=t:l0(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:at(x(this,wt)),length:x(this,wt).length,offset:x(this,Vt)+r})),x(this,wt).slice(x(this,Vt),x(this,Vt)+r)};let YC=jA,QM=!1;const JM=function(u){return EP(u)};let YM=JM;function wu(u){const e=ru(u,"data");return I0(YM(e))}wu._=JM;wu.lock=function(){QM=!0};wu.register=function(u){if(QM)throw new TypeError("keccak256 is locked");YM=u};Object.freeze(wu);const ZC="0x0000000000000000000000000000000000000000",Bw="0x0000000000000000000000000000000000000000000000000000000000000000",Fw=BigInt(0),Dw=BigInt(1),ww=BigInt(2),xw=BigInt(27),kw=BigInt(28),A6=BigInt(35),hs={};function _w(u){return Io(Nt(u),32)}var h4,C4,m4,Za;const yn=class yn{constructor(e,t,n,r){X(this,h4,void 0);X(this,C4,void 0);X(this,m4,void 0);X(this,Za,void 0);Bd(e,hs,"Signature"),I(this,h4,t),I(this,C4,n),I(this,m4,r),I(this,Za,null)}get r(){return x(this,h4)}set r(e){Q(a4(e)===32,"invalid r","value",e),I(this,h4,I0(e))}get s(){return x(this,C4)}set s(e){Q(a4(e)===32,"invalid s","value",e);const t=I0(e);Q(parseInt(t.substring(0,3))<8,"non-canonical s","value",t),I(this,C4,t)}get v(){return x(this,m4)}set v(e){const t=q0(e,"value");Q(t===27||t===28,"invalid v","v",e),I(this,m4,t)}get networkV(){return x(this,Za)}get legacyChainId(){const e=this.networkV;return e==null?null:yn.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=ru(this.s);return this.yParity&&(e[0]|=128),I0(e)}get compactSerialized(){return te([this.r,this.yParityAndS])}get serialized(){return te([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new yn(hs,this.r,this.s,this.v);return this.networkV&&I(e,Za,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const t=N0(e,"v");return t==xw||t==kw?Fw:(Q(t>=A6,"invalid EIP-155 v","v",e),(t-A6)/ww)}static getChainIdV(e,t){return N0(e)*ww+BigInt(35+t-27)}static getNormalizedV(e){const t=N0(e);return t===Fw||t===xw?27:t===Dw||t===kw?28:(Q(t>=A6,"invalid v","v",e),t&Dw?27:28)}static from(e){function t(f,l){Q(f,l,"signature",e)}if(e==null)return new yn(hs,Bw,Bw,27);if(typeof e=="string"){const f=ru(e,"signature");if(f.length===64){const l=I0(f.slice(0,32)),c=f.slice(32,64),E=c[0]&128?28:27;return c[0]&=127,new yn(hs,l,I0(c),E)}if(f.length===65){const l=I0(f.slice(0,32)),c=f.slice(32,64);t((c[0]&128)===0,"non-canonical s");const E=yn.getNormalizedV(f[64]);return new yn(hs,l,I0(c),E)}t(!1,"invalid raw signature length")}if(e instanceof yn)return e.clone();const n=e.r;t(n!=null,"missing r");const r=_w(n),i=function(f,l){if(f!=null)return _w(f);if(l!=null){t(ku(l,32),"invalid yParityAndS");const c=ru(l);return c[0]&=127,I0(c)}t(!1,"missing s")}(e.s,e.yParityAndS);t((ru(i)[0]&128)==0,"non-canonical s");const{networkV:a,v:o}=function(f,l,c){if(f!=null){const E=N0(f);return{networkV:E>=A6?E:void 0,v:yn.getNormalizedV(E)}}if(l!=null)return t(ku(l,32),"invalid yParityAndS"),{v:ru(l)[0]&128?28:27};if(c!=null){switch(q0(c,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),s=new yn(hs,r,i,o);return a&&I(s,Za,a),t(e.yParity==null||q0(e.yParity,"sig.yParity")===s.yParity,"yParity mismatch"),t(e.yParityAndS==null||e.yParityAndS===s.yParityAndS,"yParityAndS mismatch"),s}};h4=new WeakMap,C4=new WeakMap,m4=new WeakMap,Za=new WeakMap;let Ln=yn;var Sr;const Ia=class Ia{constructor(e){X(this,Sr,void 0);Q(a4(e)===32,"invalid private key","privateKey","[REDACTED]"),I(this,Sr,I0(e))}get privateKey(){return x(this,Sr)}get publicKey(){return Ia.computePublicKey(x(this,Sr))}get compressedPublicKey(){return Ia.computePublicKey(x(this,Sr),!0)}sign(e){Q(a4(e)===32,"invalid digest length","digest",e);const t=Se.sign(at(e),at(x(this,Sr)),{lowS:!0});return Ln.from({r:Ea(t.r,32),s:Ea(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){const t=Ia.computePublicKey(e);return I0(Se.getSharedSecret(at(x(this,Sr)),ru(t),!1))}static computePublicKey(e,t){let n=ru(e,"key");if(n.length===32){const i=Se.getPublicKey(n,!!t);return I0(i)}if(n.length===64){const i=new Uint8Array(65);i[0]=4,i.set(n,1),n=i}const r=Se.ProjectivePoint.fromHex(n);return I0(r.toRawBytes(t))}static recoverPublicKey(e,t){Q(a4(e)===32,"invalid digest length","digest",e);const n=Ln.from(t);let r=Se.Signature.fromCompact(at(te([n.r,n.s])));r=r.addRecoveryBit(n.yParity);const i=r.recoverPublicKey(at(e));return Q(i!=null,"invalid signautre for digest","signature",t),"0x"+i.toHex(!1)}static addPoints(e,t,n){const r=Se.ProjectivePoint.fromHex(Ia.computePublicKey(e).substring(2)),i=Se.ProjectivePoint.fromHex(Ia.computePublicKey(t).substring(2));return"0x"+r.add(i).toHex(!!n)}};Sr=new WeakMap;let tc=Ia;const sk0=BigInt(0),fk0=BigInt(36);function Sw(u){u=u.toLowerCase();const e=u.substring(2).split(""),t=new Uint8Array(40);for(let r=0;r<40;r++)t[r]=e[r].charCodeAt(0);const n=ru(wu(t));for(let r=0;r<40;r+=2)n[r>>1]>>4>=8&&(e[r]=e[r].toUpperCase()),(n[r>>1]&15)>=8&&(e[r+1]=e[r+1].toUpperCase());return"0x"+e.join("")}const AA={};for(let u=0;u<10;u++)AA[String(u)]=String(u);for(let u=0;u<26;u++)AA[String.fromCharCode(65+u)]=String(10+u);const Tw=15;function lk0(u){u=u.toUpperCase(),u=u.substring(4)+u.substring(0,2)+"00";let e=u.split("").map(n=>AA[n]).join("");for(;e.length>=Tw;){let n=e.substring(0,Tw);e=parseInt(n,10)%97+e.substring(n.length)}let t=String(98-parseInt(e,10)%97);for(;t.length<2;)t="0"+t;return t}const ck0=function(){const u={};for(let e=0;e<36;e++){const t="0123456789abcdefghijklmnopqrstuvwxyz"[e];u[t]=BigInt(e)}return u}();function Ek0(u){u=u.toLowerCase();let e=sk0;for(let t=0;te.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return x(this,Xa)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return x(this,Xa)===!0?-1:x(this,Xa)===!1?this.value.length:null}static from(e,t){return new Br(vr,e,t)}static uint8(e){return F0(e,8)}static uint16(e){return F0(e,16)}static uint24(e){return F0(e,24)}static uint32(e){return F0(e,32)}static uint40(e){return F0(e,40)}static uint48(e){return F0(e,48)}static uint56(e){return F0(e,56)}static uint64(e){return F0(e,64)}static uint72(e){return F0(e,72)}static uint80(e){return F0(e,80)}static uint88(e){return F0(e,88)}static uint96(e){return F0(e,96)}static uint104(e){return F0(e,104)}static uint112(e){return F0(e,112)}static uint120(e){return F0(e,120)}static uint128(e){return F0(e,128)}static uint136(e){return F0(e,136)}static uint144(e){return F0(e,144)}static uint152(e){return F0(e,152)}static uint160(e){return F0(e,160)}static uint168(e){return F0(e,168)}static uint176(e){return F0(e,176)}static uint184(e){return F0(e,184)}static uint192(e){return F0(e,192)}static uint200(e){return F0(e,200)}static uint208(e){return F0(e,208)}static uint216(e){return F0(e,216)}static uint224(e){return F0(e,224)}static uint232(e){return F0(e,232)}static uint240(e){return F0(e,240)}static uint248(e){return F0(e,248)}static uint256(e){return F0(e,256)}static uint(e){return F0(e,256)}static int8(e){return F0(e,-8)}static int16(e){return F0(e,-16)}static int24(e){return F0(e,-24)}static int32(e){return F0(e,-32)}static int40(e){return F0(e,-40)}static int48(e){return F0(e,-48)}static int56(e){return F0(e,-56)}static int64(e){return F0(e,-64)}static int72(e){return F0(e,-72)}static int80(e){return F0(e,-80)}static int88(e){return F0(e,-88)}static int96(e){return F0(e,-96)}static int104(e){return F0(e,-104)}static int112(e){return F0(e,-112)}static int120(e){return F0(e,-120)}static int128(e){return F0(e,-128)}static int136(e){return F0(e,-136)}static int144(e){return F0(e,-144)}static int152(e){return F0(e,-152)}static int160(e){return F0(e,-160)}static int168(e){return F0(e,-168)}static int176(e){return F0(e,-176)}static int184(e){return F0(e,-184)}static int192(e){return F0(e,-192)}static int200(e){return F0(e,-200)}static int208(e){return F0(e,-208)}static int216(e){return F0(e,-216)}static int224(e){return F0(e,-224)}static int232(e){return F0(e,-232)}static int240(e){return F0(e,-240)}static int248(e){return F0(e,-248)}static int256(e){return F0(e,-256)}static int(e){return F0(e,-256)}static bytes1(e){return X0(e,1)}static bytes2(e){return X0(e,2)}static bytes3(e){return X0(e,3)}static bytes4(e){return X0(e,4)}static bytes5(e){return X0(e,5)}static bytes6(e){return X0(e,6)}static bytes7(e){return X0(e,7)}static bytes8(e){return X0(e,8)}static bytes9(e){return X0(e,9)}static bytes10(e){return X0(e,10)}static bytes11(e){return X0(e,11)}static bytes12(e){return X0(e,12)}static bytes13(e){return X0(e,13)}static bytes14(e){return X0(e,14)}static bytes15(e){return X0(e,15)}static bytes16(e){return X0(e,16)}static bytes17(e){return X0(e,17)}static bytes18(e){return X0(e,18)}static bytes19(e){return X0(e,19)}static bytes20(e){return X0(e,20)}static bytes21(e){return X0(e,21)}static bytes22(e){return X0(e,22)}static bytes23(e){return X0(e,23)}static bytes24(e){return X0(e,24)}static bytes25(e){return X0(e,25)}static bytes26(e){return X0(e,26)}static bytes27(e){return X0(e,27)}static bytes28(e){return X0(e,28)}static bytes29(e){return X0(e,29)}static bytes30(e){return X0(e,30)}static bytes31(e){return X0(e,31)}static bytes32(e){return X0(e,32)}static address(e){return new Br(vr,"address",e)}static bool(e){return new Br(vr,"bool",!!e)}static bytes(e){return new Br(vr,"bytes",e)}static string(e){return new Br(vr,"string",e)}static array(e,t){throw new Error("not implemented yet")}static tuple(e,t){throw new Error("not implemented yet")}static overrides(e){return new Br(vr,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===Pw}static dereference(e,t){if(Br.isTyped(e)){if(e.type!==t)throw new Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}};Xa=new WeakMap;let Oe=Br;class pk0 extends ci{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let n=Oe.dereference(t,"string");try{n=tu(n)}catch(r){return this._throwError(r.message,t)}return e.writeValue(n)}decode(e){return tu(Ea(e.readValue(),20))}}class hk0 extends ci{constructor(t){super(t.name,t.type,"_",t.dynamic);Z(this,"coder");this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,n){return this.coder.encode(t,n)}decode(t){return this.coder.decode(t)}}function XM(u,e,t){let n=[];if(Array.isArray(t))n=t;else if(t&&typeof t=="object"){let s={};n=e.map(f=>{const l=f.localName;return l0(l,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:f},value:t}),l0(!s[l],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:f},value:t}),s[l]=!0,t[l]})}else Q(!1,"invalid tuple value","tuple",t);Q(e.length===n.length,"types/value length mismatch","tuple",t);let r=new JC,i=new JC,a=[];e.forEach((s,f)=>{let l=n[f];if(s.dynamic){let c=i.length;s.encode(i,l);let E=r.writeUpdatableValue();a.push(d=>{E(d+c)})}else s.encode(r,l)}),a.forEach(s=>{s(r.length)});let o=u.appendWriter(r);return o+=u.appendWriter(i),o}function uj(u,e){let t=[],n=[],r=u.subReader(0);return e.forEach(i=>{let a=null;if(i.dynamic){let o=u.readIndex(),s=r.subReader(o);try{a=i.decode(s)}catch(f){if(an(f,"BUFFER_OVERRUN"))throw f;a=f,a.baseType=i.name,a.name=i.localName,a.type=i.type}}else try{a=i.decode(u)}catch(o){if(an(o,"BUFFER_OVERRUN"))throw o;a=o,a.baseType=i.name,a.name=i.localName,a.type=i.type}if(a==null)throw new Error("investigate");t.push(a),n.push(i.localName||null)}),k9.fromItems(t,n)}class Ck0 extends ci{constructor(t,n,r){const i=t.type+"["+(n>=0?n:"")+"]",a=n===-1||t.dynamic;super("array",i,r,a);Z(this,"coder");Z(this,"length");j0(this,{coder:t,length:n})}defaultValue(){const t=this.coder.defaultValue(),n=[];for(let r=0;ra||r<-(a+Bk0))&&this._throwError("value out-of-bounds",n),r=zM(r,8*$e)}else(rJf(i,this.size*8))&&this._throwError("value out-of-bounds",n);return t.writeValue(r)}decode(t){let n=Jf(t.readValue(),this.size*8);return this.signed&&(n=Ux0(n,this.size*8)),n}}class wk0 extends ej{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,qr(Oe.dereference(t,"string")))}decode(e){return gA(super.decode(e))}}class y6 extends ci{constructor(t,n){let r=!1;const i=[];t.forEach(o=>{o.dynamic&&(r=!0),i.push(o.type)});const a="tuple("+i.join(",")+")";super("tuple",a,n,r);Z(this,"coders");j0(this,{coders:Object.freeze(t.slice())})}defaultValue(){const t=[];this.coders.forEach(r=>{t.push(r.defaultValue())});const n=this.coders.reduce((r,i)=>{const a=i.localName;return a&&(r[a]||(r[a]=0),r[a]++),r},{});return this.coders.forEach((r,i)=>{let a=r.localName;!a||n[a]!==1||(a==="length"&&(a="_length"),t[a]==null&&(t[a]=t[i]))}),Object.freeze(t)}encode(t,n){const r=Oe.dereference(n,"tuple");return XM(t,this.coders,r)}decode(t){return uj(t,this.coders)}}function da(u){return wu(qr(u))}var xk0="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const Ow=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),Iw=4;function kk0(u){let e=0;function t(){return u[e++]<<8|u[e++]}let n=t(),r=1,i=[0,1];for(let B=1;B>--s&1}const c=31,E=2**c,d=E>>>1,p=d>>1,h=E-1;let b=0;for(let B=0;B1;){let _=v+C>>>1;B>>1|l(),D=D<<1^d,T=(T^d)<<1|d|1;m=D,A=1+T-D}let y=n-4;return g.map(B=>{switch(B-y){case 3:return y+65792+(u[o++]<<16|u[o++]<<8|u[o++]);case 2:return y+256+(u[o++]<<8|u[o++]);case 1:return y+u[o++];default:return B-1}})}function _k0(u){let e=0;return()=>u[e++]}function tj(u){return _k0(kk0(Sk0(u)))}function Sk0(u){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((r,i)=>e[r.charCodeAt(0)]=i);let t=u.length,n=new Uint8Array(6*t>>3);for(let r=0,i=0,a=0,o=0;r=8&&(n[i++]=o>>(a-=8));return n}function Tk0(u){return u&1?~u>>1:u>>1}function Pk0(u,e){let t=Array(u);for(let n=0,r=0;n{let e=nc(u);if(e.length)return e})}function rj(u){let e=[];for(;;){let t=u();if(t==0)break;e.push(Ok0(t,u))}for(;;){let t=u()-1;if(t<0)break;e.push(Ik0(t,u))}return e.flat()}function rc(u){let e=[];for(;;){let t=u(e.length);if(!t)break;e.push(t)}return e}function ij(u,e,t){let n=Array(u).fill().map(()=>[]);for(let r=0;rn[a].push(i));return n}function Ok0(u,e){let t=1+e(),n=e(),r=rc(e);return ij(r.length,1+u,e).flatMap((a,o)=>{let[s,...f]=a;return Array(r[o]).fill().map((l,c)=>{let E=c*n;return[s+c*t,f.map(d=>d+E)]})})}function Ik0(u,e){let t=1+e();return ij(t,1+u,e).map(r=>[r[0],r.slice(1)])}function Nk0(u){let e=[],t=nc(u);return r(n([]),[]),e;function n(i){let a=u(),o=rc(()=>{let s=nc(u).map(f=>t[f]);if(s.length)return n(s)});return{S:a,B:o,Q:i}}function r({S:i,B:a},o,s){if(!(i&4&&s===o[o.length-1])){i&2&&(s=o[o.length-1]),i&1&&e.push(o);for(let f of a)for(let l of f.Q)r(f,[...o,l],s)}}}function Rk0(u){return u.toString(16).toUpperCase().padStart(2,"0")}function aj(u){return`{${Rk0(u)}}`}function Mk0(u){let e=[];for(let t=0,n=u.length;t>24&255}function fj(u){return u&16777215}let XC,Nw,um,J6;function Hk0(){let u=tj(zk0);XC=new Map(nj(u).flatMap((e,t)=>e.map(n=>[n,t+1<<24]))),Nw=new Set(nc(u)),um=new Map,J6=new Map;for(let[e,t]of rj(u)){if(!Nw.has(e)&&t.length==2){let[n,r]=t,i=J6.get(n);i||(i=new Map,J6.set(n,i)),i.set(r,e)}um.set(e,t.reverse())}}function lj(u){return u>=ic&&u<$k0}function Gk0(u,e){if(u>=_9&&u=S9&&eT9&&e0&&r(T9+f)}else{let a=um.get(i);a?t.push(...a):r(i)}if(!t.length)break;i=t.pop()}if(n&&e.length>1){let i=Zf(e[0]);for(let a=1;a0&&r>=a)a==0?(e.push(n,...t),t.length=0,n=o):t.push(o),r=a;else{let s=Gk0(n,o);s>=0?n=s:r==0&&a==0?(e.push(n),n=o):(t.push(o),r=a)}}return n>=0&&e.push(n,...t),e}function Ej(u){return cj(u).map(fj)}function Kk0(u){return Vk0(cj(u))}const Rw=45,dj=".",pj=65039,hj=1,qs=u=>Array.from(u);function ac(u,e){return u.P.has(e)||u.Q.has(e)}class Qk0 extends Array{get is_emoji(){return!0}}let em,Cj,Wa,tm,mj,o4,y8,Bs,gj,Mw,nm;function yA(){if(em)return;let u=tj(xk0);const e=()=>nc(u),t=()=>new Set(e());em=new Map(rj(u)),Cj=t(),Wa=e(),tm=new Set(e().map(l=>Wa[l])),Wa=new Set(Wa),mj=t(),t();let n=nj(u),r=u();const i=()=>new Set(e().flatMap(l=>n[l]).concat(e()));o4=rc(l=>{let c=rc(u).map(E=>E+96);if(c.length){let E=l>=r;c[0]-=32,c=P3(c),E&&(c=`Restricted[${c}]`);let d=i(),p=i(),h=!u();return{N:c,P:d,Q:p,M:h,R:E}}}),y8=t(),Bs=new Map;let a=e().concat(qs(y8)).sort((l,c)=>l-c);a.forEach((l,c)=>{let E=u(),d=a[c]=E?a[c-E]:{V:[],M:new Map};d.V.push(l),y8.has(l)||Bs.set(l,d)});for(let{V:l,M:c}of new Set(Bs.values())){let E=[];for(let p of l){let h=o4.filter(g=>ac(g,p)),b=E.find(({G:g})=>h.some(m=>g.has(m)));b||(b={G:new Set,V:[]},E.push(b)),b.V.push(p),h.forEach(g=>b.G.add(g))}let d=E.flatMap(p=>qs(p.G));for(let{G:p,V:h}of E){let b=new Set(d.filter(g=>!p.has(g)));for(let g of h)c.set(g,b)}}let o=new Set,s=new Set;const f=l=>o.has(l)?s.add(l):o.add(l);for(let l of o4){for(let c of l.P)f(c);for(let c of l.Q)f(c)}for(let l of o)!Bs.has(l)&&!s.has(l)&&Bs.set(l,hj);gj=new Set(qs(o).concat(qs(Ej(o)))),Mw=Nk0(u).map(l=>Qk0.from(l)).sort(jk0),nm=new Map;for(let l of Mw){let c=[nm];for(let E of l){let d=c.map(p=>{let h=p.get(E);return h||(h=new Map,p.set(E,h)),h});E===pj?c.push(...d):c=d}for(let E of c)E.V=l}}function vA(u){return(bj(u)?"":`${BA(wd([u]))} `)+aj(u)}function BA(u){return`"${u}"‎`}function Jk0(u){if(u.length>=4&&u[2]==Rw&&u[3]==Rw)throw new Error(`invalid label extension: "${P3(u.slice(0,4))}"`)}function Yk0(u){for(let t=u.lastIndexOf(95);t>0;)if(u[--t]!==95)throw new Error("underscore allowed only at start")}function Zk0(u){let e=u[0],t=Ow.get(e);if(t)throw Cl(`leading ${t}`);let n=u.length,r=-1;for(let i=1;i{let i=Mk0(r),a={input:i,offset:n};n+=i.length+1;try{let o=a.tokens=a_0(i,e,t),s=o.length,f;if(!s)throw new Error("empty label");let l=a.output=o.flat();if(Yk0(l),!(a.emoji=s>1||o[0].is_emoji)&&l.every(E=>E<128))Jk0(l),f="ASCII";else{let E=o.flatMap(d=>d.is_emoji?[]:d);if(!E.length)f="Emoji";else{if(Wa.has(l[0]))throw Cl("leading combining mark");for(let h=1;ha.has(o)):qs(a),!t.length)return}else n.push(r)}if(t){for(let r of t)if(n.every(i=>ac(r,i)))throw new Error(`whole-script confusable: ${u.N}/${r.N}`)}}function n_0(u){let e=o4;for(let t of u){let n=e.filter(r=>ac(r,t));if(!n.length)throw o4.some(r=>ac(r,t))?yj(e[0],t):Aj(t);if(e=n,n.length==1)break}return e}function r_0(u){return u.map(({input:e,error:t,output:n})=>{if(t){let r=t.message;throw new Error(u.length==1?r:`Invalid label ${BA(wd(e))}: ${r}`)}return P3(n)}).join(dj)}function Aj(u){return new Error(`disallowed character: ${vA(u)}`)}function yj(u,e){let t=vA(e),n=o4.find(r=>r.P.has(e));return n&&(t=`${n.N} ${t}`),new Error(`illegal mixture: ${u.N} + ${t}`)}function Cl(u){return new Error(`illegal placement: ${u}`)}function i_0(u,e){for(let t of e)if(!ac(u,t))throw yj(u,t);if(u.M){let t=Ej(e);for(let n=1,r=t.length;nIw)throw new Error(`excessive non-spacing marks: ${BA(wd(t.slice(n-1,i)))} (${i-n}/${Iw})`);n=i}}}function a_0(u,e,t){let n=[],r=[];for(u=u.slice().reverse();u.length;){let i=s_0(u);if(i)r.length&&(n.push(e(r)),r=[]),n.push(t(i));else{let a=u.pop();if(gj.has(a))r.push(a);else{let o=em.get(a);if(o)r.push(...o);else if(!Cj.has(a))throw Aj(a)}}}return r.length&&n.push(e(r)),n}function o_0(u){return u.filter(e=>e!=pj)}function s_0(u,e){let t=nm,n,r=u.length;for(;r&&(t=t.get(u[--r]),!!t);){let{V:i}=t;i&&(n=i,e&&e.push(...u.slice(r).reverse()),u.length=r)}return n}const vj=new Uint8Array(32);vj.fill(0);function jw(u){return Q(u.length!==0,"invalid ENS name; empty component","comp",u),u}function Bj(u){const e=qr(f_0(u)),t=[];if(u.length===0)return t;let n=0;for(let r=0;r{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}function v8(u,e){return{address:tu(u),storageKeys:e.map((t,n)=>(Q(ku(t,32),"invalid slot",`storageKeys[${n}]`,t),t.toLowerCase()))}}function ts(u){if(Array.isArray(u))return u.map((t,n)=>Array.isArray(t)?(Q(t.length===2,"invalid slot set",`value[${n}]`,t),v8(t[0],t[1])):(Q(t!=null&&typeof t=="object","invalid address-slot set","value",u),v8(t.address,t.storageKeys)));Q(u!=null&&typeof u=="object","invalid access list","value",u);const e=Object.keys(u).map(t=>{const n=u[t].reduce((r,i)=>(r[i]=!0,r),{});return v8(t,Object.keys(n).sort())});return e.sort((t,n)=>t.address.localeCompare(n.address)),e}function c_0(u){let e;return typeof u=="string"?e=tc.computePublicKey(u,!1):e=u.publicKey,tu(wu("0x"+e.substring(4)).substring(26))}function E_0(u,e){return c_0(tc.recoverPublicKey(u,e))}const rt=BigInt(0),d_0=BigInt(2),p_0=BigInt(27),h_0=BigInt(28),C_0=BigInt(35),m_0=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function FA(u){return u==="0x"?null:tu(u)}function Fj(u,e){try{return ts(u)}catch(t){Q(!1,t.message,e,u)}}function xd(u,e){return u==="0x"?0:q0(u,e)}function ze(u,e){if(u==="0x")return rt;const t=N0(u,e);return Q(t<=m_0,"value exceeds uint size",e,t),t}function Ce(u,e){const t=N0(u,"value"),n=Nt(t);return Q(n.length<=32,"value too large",`tx.${e}`,t),n}function Dj(u){return ts(u).map(e=>[e.address,e.storageKeys])}function g_0(u){const e=bA(u);Q(Array.isArray(e)&&(e.length===9||e.length===6),"invalid field count for legacy transaction","data",u);const t={type:0,nonce:xd(e[0],"nonce"),gasPrice:ze(e[1],"gasPrice"),gasLimit:ze(e[2],"gasLimit"),to:FA(e[3]),value:ze(e[4],"value"),data:I0(e[5]),chainId:rt};if(e.length===6)return t;const n=ze(e[6],"v"),r=ze(e[7],"r"),i=ze(e[8],"s");if(r===rt&&i===rt)t.chainId=n;else{let a=(n-C_0)/d_0;a=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),l0(!t||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),l0(this.type!==0||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const r=[];return this.type!=null?r.push(this.type):t?r.push(2):e?(r.push(1),n||r.push(0)):n?(r.push(1),r.push(2)):(r.push(0),r.push(1),r.push(2)),r.sort(),r}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}clone(){return Bi.from(this)}toJSON(){const e=t=>t==null?null:t.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new Bi;if(typeof e=="string"){const n=ru(e);if(n[0]>=127)return Bi.from(g_0(n));switch(n[0]){case 1:return Bi.from(A_0(n));case 2:return Bi.from(b_0(n))}l0(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const t=new Bi;return e.type!=null&&(t.type=e.type),e.to!=null&&(t.to=e.to),e.nonce!=null&&(t.nonce=e.nonce),e.gasLimit!=null&&(t.gasLimit=e.gasLimit),e.gasPrice!=null&&(t.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(t.maxFeePerGas=e.maxFeePerGas),e.data!=null&&(t.data=e.data),e.value!=null&&(t.value=e.value),e.chainId!=null&&(t.chainId=e.chainId),e.signature!=null&&(t.signature=Ln.from(e.signature)),e.accessList!=null&&(t.accessList=e.accessList),e.hash!=null&&(Q(t.isSigned(),"unsigned transaction cannot define hash","tx",e),Q(t.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(Q(t.isSigned(),"unsigned transaction cannot define from","tx",e),Q(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}};Tr=new WeakMap,g4=new WeakMap,b4=new WeakMap,A4=new WeakMap,y4=new WeakMap,v4=new WeakMap,B4=new WeakMap,F4=new WeakMap,D4=new WeakMap,w4=new WeakMap,x4=new WeakMap,k4=new WeakMap;let O9=Bi;const xj=new Uint8Array(32);xj.fill(0);const y_0=BigInt(-1),kj=BigInt(0),_j=BigInt(1),v_0=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function B_0(u){const e=ru(u),t=e.length%32;return t?te([e,xj.slice(t)]):I0(e)}const F_0=Ea(_j,32),D_0=Ea(kj,32),Uw={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},B8=["name","version","chainId","verifyingContract","salt"];function Ww(u){return function(e){return Q(typeof e=="string",`invalid domain value for ${JSON.stringify(u)}`,`domain.${u}`,e),e}}const w_0={name:Ww("name"),version:Ww("version"),chainId:function(u){const e=N0(u,"domain.chainId");return Q(e>=0,"invalid chain ID","domain.chainId",u),Number.isSafeInteger(e)?Number(e):Ws(e)},verifyingContract:function(u){try{return tu(u).toLowerCase()}catch{}Q(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",u)},salt:function(u){const e=ru(u,"domain.salt");return Q(e.length===32,'invalid domain value "salt"',"domain.salt",u),I0(e)}};function F8(u){{const e=u.match(/^(u?)int(\d*)$/);if(e){const t=e[1]==="",n=parseInt(e[2]||"256");Q(n%8===0&&n!==0&&n<=256&&(e[2]==null||e[2]===String(n)),"invalid numeric width","type",u);const r=Jf(v_0,t?n-1:n),i=t?(r+_j)*y_0:kj;return function(a){const o=N0(a,"value");return Q(o>=i&&o<=r,`value out-of-bounds for ${u}`,"value",o),Ea(t?zM(o,256):o,32)}}}{const e=u.match(/^bytes(\d+)$/);if(e){const t=parseInt(e[1]);return Q(t!==0&&t<=32&&e[1]===String(t),"invalid bytes width","type",u),function(n){const r=ru(n);return Q(r.length===t,`invalid length for ${u}`,"value",n),B_0(n)}}}switch(u){case"address":return function(e){return Io(tu(e),32)};case"bool":return function(e){return e?F_0:D_0};case"bytes":return function(e){return wu(e)};case"string":return function(e){return da(e)}}return null}function qw(u,e){return`${u}(${e.map(({name:t,type:n})=>n+" "+t).join(",")})`}var pc,Pr,_4,$9,Sj;const Ht=class Ht{constructor(e){X(this,$9);Z(this,"primaryType");X(this,pc,void 0);X(this,Pr,void 0);X(this,_4,void 0);I(this,pc,JSON.stringify(e)),I(this,Pr,new Map),I(this,_4,new Map);const t=new Map,n=new Map,r=new Map;Object.keys(e).forEach(o=>{t.set(o,new Set),n.set(o,[]),r.set(o,new Set)});for(const o in e){const s=new Set;for(const f of e[o]){Q(!s.has(f.name),`duplicate variable name ${JSON.stringify(f.name)} in ${JSON.stringify(o)}`,"types",e),s.add(f.name);const l=f.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;Q(l!==o,`circular type reference to ${JSON.stringify(l)}`,"types",e),!F8(l)&&(Q(n.has(l),`unknown type ${JSON.stringify(l)}`,"types",e),n.get(l).push(o),t.get(o).add(l))}}const i=Array.from(n.keys()).filter(o=>n.get(o).length===0);Q(i.length!==0,"missing primary type","types",e),Q(i.length===1,`ambiguous primary types or unused types: ${i.map(o=>JSON.stringify(o)).join(", ")}`,"types",e),j0(this,{primaryType:i[0]});function a(o,s){Q(!s.has(o),`circular type reference to ${JSON.stringify(o)}`,"types",e),s.add(o);for(const f of t.get(o))if(n.has(f)){a(f,s);for(const l of s)r.get(l).add(f)}s.delete(o)}a(this.primaryType,new Set);for(const[o,s]of r){const f=Array.from(s);f.sort(),x(this,Pr).set(o,qw(o,e[o])+f.map(l=>qw(l,e[l])).join(""))}}get types(){return JSON.parse(x(this,pc))}getEncoder(e){let t=x(this,_4).get(e);return t||(t=A0(this,$9,Sj).call(this,e),x(this,_4).set(e,t)),t}encodeType(e){const t=x(this,Pr).get(e);return Q(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return wu(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(F8(e))return n(e,t);const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r)return Q(!r[3]||parseInt(r[3])===t.length,`array length mismatch; expected length ${parseInt(r[3])}`,"value",t),t.map(a=>this._visit(r[1],a,n));const i=this.types[e];if(i)return i.reduce((a,{name:o,type:s})=>(a[o]=this._visit(s,t[o],n),a),{});Q(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new Ht(e)}static getPrimaryType(e){return Ht.from(e).primaryType}static hashStruct(e,t,n){return Ht.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){if(e[n]==null)continue;const r=Uw[n];Q(r,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),t.push({name:n,type:r})}return t.sort((n,r)=>B8.indexOf(n.name)-B8.indexOf(r.name)),Ht.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return te(["0x1901",Ht.hashDomain(e),Ht.from(t).hash(n)])}static hash(e,t,n){return wu(Ht.encode(e,t,n))}static async resolveNames(e,t,n,r){e=Object.assign({},e);for(const o in e)e[o]==null&&delete e[o];const i={};e.verifyingContract&&!ku(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const a=Ht.from(t);a.visit(n,(o,s)=>(o==="address"&&!ku(s,20)&&(i[s]="0x"),s));for(const o in i)i[o]=await r(o);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=a.visit(n,(o,s)=>o==="address"&&i[s]?i[s]:s),{domain:e,value:n}}static getPayload(e,t,n){Ht.hashDomain(e);const r={},i=[];B8.forEach(s=>{const f=e[s];f!=null&&(r[s]=w_0[s](f),i.push({name:s,type:Uw[s]}))});const a=Ht.from(t),o=Object.assign({},t);return Q(o.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",t),o.EIP712Domain=i,a.encode(n),{types:o,domain:r,primaryType:a.primaryType,message:a.visit(n,(s,f)=>{if(s.match(/^bytes(\d*)/))return I0(ru(f));if(s.match(/^u?int/))return N0(f).toString();switch(s){case"address":return f.toLowerCase();case"bool":return!!f;case"string":return Q(typeof f=="string","invalid string","value",f),f}Q(!1,"unsupported type","type",s)})}}};pc=new WeakMap,Pr=new WeakMap,_4=new WeakMap,$9=new WeakSet,Sj=function(e){{const r=F8(e);if(r)return r}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const r=t[1],i=this.getEncoder(r);return a=>{Q(!t[3]||parseInt(t[3])===a.length,`array length mismatch; expected length ${parseInt(t[3])}`,"value",a);let o=a.map(i);return x(this,Pr).has(r)&&(o=o.map(wu)),wu(te(o))}}const n=this.types[e];if(n){const r=da(x(this,Pr).get(e));return i=>{const a=n.map(({name:o,type:s})=>{const f=this.getEncoder(s)(i[o]);return x(this,Pr).has(s)?wu(f):f});return a.unshift(r),te(a)}}Q(!1,`unknown type: ${e}`,"type",e)};let I9=Ht;function We(u){const e=new Set;return u.forEach(t=>e.add(t)),Object.freeze(e)}const x_0="external public payable",k_0=We(x_0.split(" ")),Tj="constant external internal payable private public pure view",__0=We(Tj.split(" ")),Pj="constructor error event fallback function receive struct",Oj=We(Pj.split(" ")),Ij="calldata memory storage payable indexed",S_0=We(Ij.split(" ")),T_0="tuple returns",P_0=[Pj,Ij,T_0,Tj].join(" "),O_0=We(P_0.split(" ")),I_0={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},N_0=new RegExp("^(\\s*)"),R_0=new RegExp("^([0-9]+)"),M_0=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),Nj=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),Rj=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var de,Dn,hc,im;const U9=class U9{constructor(e){X(this,hc);X(this,de,void 0);X(this,Dn,void 0);I(this,de,0),I(this,Dn,e.slice())}get offset(){return x(this,de)}get length(){return x(this,Dn).length-x(this,de)}clone(){return new U9(x(this,Dn))}reset(){I(this,de,0)}popKeyword(e){const t=this.peek();if(t.type!=="KEYWORD"||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e)throw new Error(`expected ${e}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const t=A0(this,hc,im).call(this,x(this,de)+1,e.match+1);return I(this,de,e.match+1),t}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const t=[];for(;x(this,de)=x(this,Dn).length)throw new Error("out-of-bounds");return x(this,Dn)[x(this,de)]}peekKeyword(e){const t=this.peekType("KEYWORD");return t!=null&&e.has(t)?t:null}peekType(e){if(this.length===0)return null;const t=this.peek();return t.type===e?t.text:null}pop(){const e=this.peek();return Cf(this,de)._++,e}toString(){const e=[];for(let t=x(this,de);t`}};de=new WeakMap,Dn=new WeakMap,hc=new WeakSet,im=function(e=0,t=0){return new U9(x(this,Dn).slice(e,t).map(n=>Object.freeze(Object.assign({},n,{match:n.match-e,linkBack:n.linkBack-e,linkNext:n.linkNext-e}))))};let $n=U9;function Ba(u){const e=[],t=a=>{const o=i0&&e[e.length-1].type==="NUMBER"){const c=e.pop().text;l=c+l,e[e.length-1].value=q0(c)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=l}continue}if(o=a.match(M_0),o){if(s.text=o[1],i+=s.text.length,O_0.has(s.text)){s.type="KEYWORD";continue}if(s.text.match(Rj)){s.type="TYPE";continue}s.type="ID";continue}if(o=a.match(R_0),o){s.text=o[1],s.type="NUMBER",i+=s.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(a[0])} at position ${i}`)}return new $n(e.map(a=>Object.freeze(a)))}function Hw(u,e){let t=[];for(const n in e.keys())u.has(n)&&t.push(n);if(t.length>1)throw new Error(`conflicting types: ${t.join(", ")}`)}function kd(u,e){if(e.peekKeyword(Oj)){const t=e.pop().text;if(t!==u)throw new Error(`expected ${u}, got ${t}`)}return e.popType("ID")}function ei(u,e){const t=new Set;for(;;){const n=u.peekType("KEYWORD");if(n==null||e&&!e.has(n))break;if(u.pop(),t.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);t.add(n)}return Object.freeze(t)}function Mj(u){let e=ei(u,__0);return Hw(e,We("constant payable nonpayable".split(" "))),Hw(e,We("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function Hr(u,e){return u.popParams().map(t=>ge.from(t,e))}function jj(u){if(u.peekType("AT")){if(u.pop(),u.peekType("NUMBER"))return N0(u.pop().text);throw new Error("invalid gas")}return null}function No(u){if(u.length)throw new Error(`unexpected tokens: ${u.toString()}`)}const j_0=new RegExp(/^(.*)\[([0-9]*)\]$/);function Gw(u){const e=u.match(Rj);if(Q(e,"invalid type","type",u),u==="uint")return"uint256";if(u==="int")return"int256";if(e[2]){const t=parseInt(e[2]);Q(t!==0&&t<=32,"invalid bytes length","type",u)}else if(e[3]){const t=parseInt(e[3]);Q(t!==0&&t<=256&&t%8===0,"invalid numeric width","type",u)}return u}const Du={},Ct=Symbol.for("_ethers_internal"),Vw="_ParamTypeInternal",Kw="_ErrorInternal",Qw="_EventInternal",Jw="_ConstructorInternal",Yw="_FallbackInternal",Zw="_FunctionInternal",Xw="_StructInternal";var S4,Y6;const Gt=class Gt{constructor(e,t,n,r,i,a,o,s){X(this,S4);Z(this,"name");Z(this,"type");Z(this,"baseType");Z(this,"indexed");Z(this,"components");Z(this,"arrayLength");Z(this,"arrayChildren");if(Bd(e,Du,"ParamType"),Object.defineProperty(this,Ct,{value:Vw}),a&&(a=Object.freeze(a.slice())),r==="array"){if(o==null||s==null)throw new Error("")}else if(o!=null||s!=null)throw new Error("");if(r==="tuple"){if(a==null)throw new Error("")}else if(a!=null)throw new Error("");j0(this,{name:t,type:n,baseType:r,indexed:i,components:a,arrayLength:o,arrayChildren:s})}format(e){if(e==null&&(e="sighash"),e==="json"){const n=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=n,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const r={type:this.baseType==="tuple"?"tuple":this.type,name:n};return typeof this.indexed=="boolean"&&(r.indexed=this.indexed),this.isTuple()&&(r.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(r)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map(n=>n.format(e)).join(e==="full"?", ":",")+")":t+=this.type,e!=="sighash"&&(this.indexed===!0&&(t+=" indexed"),e==="full"&&this.name&&(t+=" "+this.name)),t}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map(r=>n.arrayChildren.walk(r,t))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map((r,i)=>n.components[i].walk(r,t))}return t(this.type,e)}async walkAsync(e,t){const n=[],r=[e];return A0(this,S4,Y6).call(this,n,e,t,i=>{r[0]=i}),n.length&&await Promise.all(n),r[0]}static from(e,t){if(Gt.isParamType(e))return e;if(typeof e=="string")try{return Gt.from(Ba(e),t)}catch{Q(!1,"invalid param type","obj",e)}else if(e instanceof $n){let o="",s="",f=null;ei(e,We(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(s="tuple",f=e.popParams().map(h=>Gt.from(h)),o=`tuple(${f.map(h=>h.format()).join(",")})`):(o=Gw(e.popType("TYPE")),s=o);let l=null,c=null;for(;e.length&&e.peekType("BRACKET");){const h=e.pop();l=new Gt(Du,"",o,s,null,f,c,l),c=h.value,o+=h.text,s="array",f=null}let E=null;if(ei(e,S_0).has("indexed")){if(!t)throw new Error("");E=!0}const p=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Gt(Du,p,o,s,E,f,c,l)}const n=e.name;Q(!n||typeof n=="string"&&n.match(Nj),"invalid name","obj.name",n);let r=e.indexed;r!=null&&(Q(t,"parameter cannot be indexed","obj.indexed",e.indexed),r=!!r);let i=e.type,a=i.match(j_0);if(a){const o=parseInt(a[2]||"-1"),s=Gt.from({type:a[1],components:e.components});return new Gt(Du,n||"",i,"array",r,null,o,s)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const o=e.components!=null?e.components.map(f=>Gt.from(f)):null;return new Gt(Du,n||"",i,"tuple",r,o,null,null)}return i=Gw(e.type),new Gt(Du,n||"",i,i,r,null,null,null)}static isParamType(e){return e&&e[Ct]===Vw}};S4=new WeakSet,Y6=function(e,t,n,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(this.arrayLength!==-1&&t.length!==this.arrayLength)throw new Error("array is wrong length");const a=this.arrayChildren,o=t.slice();o.forEach((s,f)=>{var l;A0(l=a,S4,Y6).call(l,e,s,n,c=>{o[f]=c})}),r(o);return}if(this.isTuple()){const a=this.components;let o;if(Array.isArray(t))o=t.slice();else{if(t==null||typeof t!="object")throw new Error("invalid tuple value");o=a.map(s=>{if(!s.name)throw new Error("cannot use object value with unnamed components");if(!(s.name in t))throw new Error(`missing value for component ${s.name}`);return t[s.name]})}if(o.length!==this.components.length)throw new Error("array is wrong length");o.forEach((s,f)=>{var l;A0(l=a[f],S4,Y6).call(l,e,s,n,c=>{o[f]=c})}),r(o);return}const i=n(this.type,t);i.then?e.push(async function(){r(await i)}()):r(i)};let ge=Gt;class Ro{constructor(e,t,n){Z(this,"type");Z(this,"inputs");Bd(e,Du,"Fragment"),n=Object.freeze(n.slice()),j0(this,{type:t,inputs:n})}static from(e){if(typeof e=="string"){try{Ro.from(JSON.parse(e))}catch{}return Ro.from(Ba(e))}if(e instanceof $n)switch(e.peekKeyword(Oj)){case"constructor":return Ur.from(e);case"error":return it.from(e);case"event":return rr.from(e);case"fallback":case"receive":return Dr.from(e);case"function":return ir.from(e);case"struct":return bo.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return Ur.from(e);case"error":return it.from(e);case"event":return rr.from(e);case"fallback":case"receive":return Dr.from(e);case"function":return ir.from(e);case"struct":return bo.from(e)}l0(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}Q(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return Ur.isFragment(e)}static isError(e){return it.isFragment(e)}static isEvent(e){return rr.isFragment(e)}static isFunction(e){return ir.isFragment(e)}static isStruct(e){return bo.isFragment(e)}}class _d extends Ro{constructor(t,n,r,i){super(t,n,i);Z(this,"name");Q(typeof r=="string"&&r.match(Nj),"invalid identifier","name",r),i=Object.freeze(i.slice()),j0(this,{name:r})}}function oc(u,e){return"("+e.map(t=>t.format(u)).join(u==="full"?", ":",")+")"}class it extends _d{constructor(e,t,n){super(e,"error",t,n),Object.defineProperty(this,Ct,{value:Kw})}get selector(){return da(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});const t=[];return e!=="sighash"&&t.push("error"),t.push(this.name+oc(e,this.inputs)),t.join(" ")}static from(e){if(it.isFragment(e))return e;if(typeof e=="string")return it.from(Ba(e));if(e instanceof $n){const t=kd("error",e),n=Hr(e);return No(e),new it(Du,t,n)}return new it(Du,e.name,e.inputs?e.inputs.map(ge.from):[])}static isFragment(e){return e&&e[Ct]===Kw}}class rr extends _d{constructor(t,n,r,i){super(t,"event",n,r);Z(this,"anonymous");Object.defineProperty(this,Ct,{value:Qw}),j0(this,{anonymous:i})}get topicHash(){return da(this.format("sighash"))}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(t)))});const n=[];return t!=="sighash"&&n.push("event"),n.push(this.name+oc(t,this.inputs)),t!=="sighash"&&this.anonymous&&n.push("anonymous"),n.join(" ")}static getTopicHash(t,n){return n=(n||[]).map(i=>ge.from(i)),new rr(Du,t,n,!1).topicHash}static from(t){if(rr.isFragment(t))return t;if(typeof t=="string")try{return rr.from(Ba(t))}catch{Q(!1,"invalid event fragment","obj",t)}else if(t instanceof $n){const n=kd("event",t),r=Hr(t,!0),i=!!ei(t,We(["anonymous"])).has("anonymous");return No(t),new rr(Du,n,r,i)}return new rr(Du,t.name,t.inputs?t.inputs.map(n=>ge.from(n,!0)):[],!!t.anonymous)}static isFragment(t){return t&&t[Ct]===Qw}}class Ur extends Ro{constructor(t,n,r,i,a){super(t,n,r);Z(this,"payable");Z(this,"gas");Object.defineProperty(this,Ct,{value:Jw}),j0(this,{payable:i,gas:a})}format(t){if(l0(t!=null&&t!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),t==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(t)))});const n=[`constructor${oc(t,this.inputs)}`];return this.payable&&n.push("payable"),this.gas!=null&&n.push(`@${this.gas.toString()}`),n.join(" ")}static from(t){if(Ur.isFragment(t))return t;if(typeof t=="string")try{return Ur.from(Ba(t))}catch{Q(!1,"invalid constuctor fragment","obj",t)}else if(t instanceof $n){ei(t,We(["constructor"]));const n=Hr(t),r=!!ei(t,k_0).has("payable"),i=jj(t);return No(t),new Ur(Du,"constructor",n,r,i)}return new Ur(Du,"constructor",t.inputs?t.inputs.map(ge.from):[],!!t.payable,t.gas!=null?t.gas:null)}static isFragment(t){return t&&t[Ct]===Jw}}class Dr extends Ro{constructor(t,n,r){super(t,"fallback",n);Z(this,"payable");Object.defineProperty(this,Ct,{value:Yw}),j0(this,{payable:r})}format(t){const n=this.inputs.length===0?"receive":"fallback";if(t==="json"){const r=this.payable?"payable":"nonpayable";return JSON.stringify({type:n,stateMutability:r})}return`${n}()${this.payable?" payable":""}`}static from(t){if(Dr.isFragment(t))return t;if(typeof t=="string")try{return Dr.from(Ba(t))}catch{Q(!1,"invalid fallback fragment","obj",t)}else if(t instanceof $n){const n=t.toString(),r=t.peekKeyword(We(["fallback","receive"]));if(Q(r,"type must be fallback or receive","obj",n),t.popKeyword(We(["fallback","receive"]))==="receive"){const s=Hr(t);return Q(s.length===0,"receive cannot have arguments","obj.inputs",s),ei(t,We(["payable"])),No(t),new Dr(Du,[],!0)}let a=Hr(t);a.length?Q(a.length===1&&a[0].type==="bytes","invalid fallback inputs","obj.inputs",a.map(s=>s.format("minimal")).join(", ")):a=[ge.from("bytes")];const o=Mj(t);if(Q(o==="nonpayable"||o==="payable","fallback cannot be constants","obj.stateMutability",o),ei(t,We(["returns"])).has("returns")){const s=Hr(t);Q(s.length===1&&s[0].type==="bytes","invalid fallback outputs","obj.outputs",s.map(f=>f.format("minimal")).join(", "))}return No(t),new Dr(Du,a,o==="payable")}if(t.type==="receive")return new Dr(Du,[],!0);if(t.type==="fallback"){const n=[ge.from("bytes")],r=t.stateMutability==="payable";return new Dr(Du,n,r)}Q(!1,"invalid fallback description","obj",t)}static isFragment(t){return t&&t[Ct]===Yw}}class ir extends _d{constructor(t,n,r,i,a,o){super(t,"function",n,i);Z(this,"constant");Z(this,"outputs");Z(this,"stateMutability");Z(this,"payable");Z(this,"gas");Object.defineProperty(this,Ct,{value:Zw}),a=Object.freeze(a.slice()),j0(this,{constant:r==="view"||r==="pure",gas:o,outputs:a,payable:r==="payable",stateMutability:r})}get selector(){return da(this.format("sighash")).substring(0,10)}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(t))),outputs:this.outputs.map(r=>JSON.parse(r.format(t)))});const n=[];return t!=="sighash"&&n.push("function"),n.push(this.name+oc(t,this.inputs)),t!=="sighash"&&(this.stateMutability!=="nonpayable"&&n.push(this.stateMutability),this.outputs&&this.outputs.length&&(n.push("returns"),n.push(oc(t,this.outputs))),this.gas!=null&&n.push(`@${this.gas.toString()}`)),n.join(" ")}static getSelector(t,n){return n=(n||[]).map(i=>ge.from(i)),new ir(Du,t,"view",n,[],null).selector}static from(t){if(ir.isFragment(t))return t;if(typeof t=="string")try{return ir.from(Ba(t))}catch{Q(!1,"invalid function fragment","obj",t)}else if(t instanceof $n){const r=kd("function",t),i=Hr(t),a=Mj(t);let o=[];ei(t,We(["returns"])).has("returns")&&(o=Hr(t));const s=jj(t);return No(t),new ir(Du,r,a,i,o,s)}let n=t.stateMutability;return n==null&&(n="payable",typeof t.constant=="boolean"?(n="view",t.constant||(n="payable",typeof t.payable=="boolean"&&!t.payable&&(n="nonpayable"))):typeof t.payable=="boolean"&&!t.payable&&(n="nonpayable")),new ir(Du,t.name,n,t.inputs?t.inputs.map(ge.from):[],t.outputs?t.outputs.map(ge.from):[],t.gas!=null?t.gas:null)}static isFragment(t){return t&&t[Ct]===Zw}}class bo extends _d{constructor(e,t,n){super(e,"struct",t,n),Object.defineProperty(this,Ct,{value:Xw})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return bo.from(Ba(e))}catch{Q(!1,"invalid struct fragment","obj",e)}else if(e instanceof $n){const t=kd("struct",e),n=Hr(e);return No(e),new bo(Du,t,n)}return new bo(Du,e.name,e.inputs?e.inputs.map(ge.from):[])}static isFragment(e){return e&&e[Ct]===Xw}}const Wn=new Map;Wn.set(0,"GENERIC_PANIC");Wn.set(1,"ASSERT_FALSE");Wn.set(17,"OVERFLOW");Wn.set(18,"DIVIDE_BY_ZERO");Wn.set(33,"ENUM_RANGE_ERROR");Wn.set(34,"BAD_STORAGE_DATA");Wn.set(49,"STACK_UNDERFLOW");Wn.set(50,"ARRAY_RANGE_ERROR");Wn.set(65,"OUT_OF_MEMORY");Wn.set(81,"UNINITIALIZED_FUNCTION_CALL");const z_0=new RegExp(/^bytes([0-9]*)$/),L_0=new RegExp(/^(u?int)([0-9]*)$/);let D8=null;function $_0(u,e,t,n){let r="missing revert data",i=null;const a=null;let o=null;if(t){r="execution reverted";const f=ru(t);if(t=I0(t),f.length===0)r+=" (no data present; likely require(false) occurred",i="require(false)";else if(f.length%32!==4)r+=" (could not decode reason; invalid data length)";else if(I0(f.slice(0,4))==="0x08c379a0")try{i=n.decode(["string"],f.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[i]},r+=`: ${JSON.stringify(i)}`}catch{r+=" (could not decode reason; invalid string data)"}else if(I0(f.slice(0,4))==="0x4e487b71")try{const l=Number(n.decode(["uint256"],f.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[l]},i=`Panic due to ${Wn.get(l)||"UNKNOWN"}(${l})`,r+=`: ${i}`}catch{r+=" (could not decode panic code)"}else r+=" (unknown custom error)"}const s={to:e.to?tu(e.to):null,data:e.data||"0x"};return e.from&&(s.from=tu(e.from)),Ju(r,"CALL_EXCEPTION",{action:u,data:t,reason:i,transaction:s,invocation:a,revert:o})}var Ti,Fs;const W9=class W9{constructor(){X(this,Ti)}getDefaultValue(e){const t=e.map(r=>A0(this,Ti,Fs).call(this,ge.from(r)));return new y6(t,"_").defaultValue()}encode(e,t){RM(t.length,e.length,"types/values length mismatch");const n=e.map(a=>A0(this,Ti,Fs).call(this,ge.from(a))),r=new y6(n,"_"),i=new JC;return r.encode(i,t),i.data}decode(e,t,n){const r=e.map(a=>A0(this,Ti,Fs).call(this,ge.from(a)));return new y6(r,"_").decode(new YC(t,n))}static defaultAbiCoder(){return D8==null&&(D8=new W9),D8}static getBuiltinCallException(e,t,n){return $_0(e,t,n,W9.defaultAbiCoder())}};Ti=new WeakSet,Fs=function(e){if(e.isArray())return new Ck0(A0(this,Ti,Fs).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new y6(e.components.map(n=>A0(this,Ti,Fs).call(this,n)),e.name);switch(e.baseType){case"address":return new pk0(e.name);case"bool":return new mk0(e.name);case"string":return new wk0(e.name);case"bytes":return new gk0(e.name);case"":return new yk0(e.name)}let t=e.type.match(L_0);if(t){let n=parseInt(t[2]||"256");return Q(n!==0&&n<=256&&n%8===0,"invalid "+t[1]+" bit length","param",e),new Dk0(n/8,t[1]==="int",e.name)}if(t=e.type.match(z_0),t){let n=parseInt(t[1]);return Q(n!==0&&n<=32,"invalid bytes length","param",e),new bk0(n,e.name)}Q(!1,"invalid type","type",e.type)};let sc=W9;class U_0{constructor(e,t,n){Z(this,"fragment");Z(this,"name");Z(this,"signature");Z(this,"topic");Z(this,"args");const r=e.name,i=e.format();j0(this,{fragment:e,name:r,signature:i,topic:t,args:n})}}class W_0{constructor(e,t,n,r){Z(this,"fragment");Z(this,"name");Z(this,"args");Z(this,"signature");Z(this,"selector");Z(this,"value");const i=e.name,a=e.format();j0(this,{fragment:e,name:i,args:n,signature:a,selector:t,value:r})}}class q_0{constructor(e,t,n){Z(this,"fragment");Z(this,"name");Z(this,"args");Z(this,"signature");Z(this,"selector");const r=e.name,i=e.format();j0(this,{fragment:e,name:r,args:n,signature:i,selector:t})}}class ux{constructor(e){Z(this,"hash");Z(this,"_isIndexed");j0(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const ex={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},tx={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:u=>`reverted with reason string ${JSON.stringify(u)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:u=>{let e="unknown panic code";return u>=0&&u<=255&&ex[u.toString()]&&(e=ex[u.toString()]),`reverted with panic code 0x${u.toString(16)} (${e})`}}};var Qn,Jn,Yn,we,T4,Z6,P4,X6;const Hs=class Hs{constructor(e){X(this,T4);X(this,P4);Z(this,"fragments");Z(this,"deploy");Z(this,"fallback");Z(this,"receive");X(this,Qn,void 0);X(this,Jn,void 0);X(this,Yn,void 0);X(this,we,void 0);let t=[];typeof e=="string"?t=JSON.parse(e):t=e,I(this,Yn,new Map),I(this,Qn,new Map),I(this,Jn,new Map);const n=[];for(const a of t)try{n.push(Ro.from(a))}catch(o){console.log("EE",o)}j0(this,{fragments:Object.freeze(n)});let r=null,i=!1;I(this,we,this.getAbiCoder()),this.fragments.forEach((a,o)=>{let s;switch(a.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}j0(this,{deploy:a});return;case"fallback":a.inputs.length===0?i=!0:(Q(!r||a.payable!==r.payable,"conflicting fallback fragments",`fragments[${o}]`,a),r=a,i=r.payable);return;case"function":s=x(this,Yn);break;case"event":s=x(this,Jn);break;case"error":s=x(this,Qn);break;default:return}const f=a.format();s.has(f)||s.set(f,a)}),this.deploy||j0(this,{deploy:Ur.from("constructor()")}),j0(this,{fallback:r,receive:i})}format(e){const t=e?"minimal":"full";return this.fragments.map(r=>r.format(t))}formatJson(){const e=this.fragments.map(t=>t.format("json"));return JSON.stringify(e.map(t=>JSON.parse(t)))}getAbiCoder(){return sc.defaultAbiCoder()}getFunctionName(e){const t=A0(this,T4,Z6).call(this,e,null,!1);return Q(t,"no matching function","key",e),t.name}hasFunction(e){return!!A0(this,T4,Z6).call(this,e,null,!1)}getFunction(e,t){return A0(this,T4,Z6).call(this,e,t||null,!0)}forEachFunction(e){const t=Array.from(x(this,Yn).keys());t.sort((n,r)=>n.localeCompare(r));for(let n=0;nn.localeCompare(r));for(let n=0;n1){const i=r.map(a=>JSON.stringify(a.format())).join(", ");Q(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return r[0]}if(e=it.from(e).format(),e==="Error(string)")return it.from("error Error(string)");if(e==="Panic(uint256)")return it.from("error Panic(uint256)");const n=x(this,Qn).get(e);return n||null}forEachError(e){const t=Array.from(x(this,Qn).keys());t.sort((n,r)=>n.localeCompare(r));for(let n=0;ni.type==="string"?da(a):i.type==="bytes"?wu(I0(a)):(i.type==="bool"&&typeof a=="boolean"?a=a?"0x01":"0x00":i.type.match(/^u?int/)?a=Ea(a):i.type.match(/^bytes/)?a=$x0(a,32):i.type==="address"&&x(this,we).encode(["address"],[a]),Io(I0(a),32));for(t.forEach((i,a)=>{const o=e.inputs[a];if(!o.indexed){Q(i==null,"cannot filter non-indexed parameters; must be null","contract."+o.name,i);return}i==null?n.push(null):o.baseType==="array"||o.baseType==="tuple"?Q(!1,"filtering with tuples or arrays not supported","contract."+o.name,i):Array.isArray(i)?n.push(i.map(s=>r(o,s))):n.push(r(o,i))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,t){if(typeof e=="string"){const a=this.getEvent(e);Q(a,"unknown event","eventFragment",e),e=a}const n=[],r=[],i=[];return e.anonymous||n.push(e.topicHash),Q(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach((a,o)=>{const s=t[o];if(a.indexed)if(a.type==="string")n.push(da(s));else if(a.type==="bytes")n.push(wu(s));else{if(a.baseType==="tuple"||a.baseType==="array")throw new Error("not implemented");n.push(x(this,we).encode([a.type],[s]))}else r.push(a),i.push(s)}),{data:x(this,we).encode(r,i),topics:n}}decodeEventLog(e,t,n){if(typeof e=="string"){const d=this.getEvent(e);Q(d,"unknown event","eventFragment",e),e=d}if(n!=null&&!e.anonymous){const d=e.topicHash;Q(ku(n[0],32)&&n[0].toLowerCase()===d,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const r=[],i=[],a=[];e.inputs.forEach((d,p)=>{d.indexed?d.type==="string"||d.type==="bytes"||d.baseType==="tuple"||d.baseType==="array"?(r.push(ge.from({type:"bytes32",name:d.name})),a.push(!0)):(r.push(d),a.push(!1)):(i.push(d),a.push(!1))});const o=n!=null?x(this,we).decode(r,te(n)):null,s=x(this,we).decode(i,t,!0),f=[],l=[];let c=0,E=0;return e.inputs.forEach((d,p)=>{let h=null;if(d.indexed)if(o==null)h=new ux(null);else if(a[p])h=new ux(o[E++]);else try{h=o[E++]}catch(b){h=b}else try{h=s[c++]}catch(b){h=b}f.push(h),l.push(d.name||null)}),k9.fromItems(f,l)}parseTransaction(e){const t=ru(e.data,"tx.data"),n=N0(e.value!=null?e.value:0,"tx.value"),r=this.getFunction(I0(t.slice(0,4)));if(!r)return null;const i=x(this,we).decode(r.inputs,t.slice(4));return new W_0(r,r.selector,i,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new U_0(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){const t=I0(e),n=this.getError(Ru(t,0,4));if(!n)return null;const r=x(this,we).decode(n.inputs,Ru(t,4));return new q_0(n,n.selector,r)}static from(e){return e instanceof Hs?e:typeof e=="string"?new Hs(JSON.parse(e)):typeof e.format=="function"?new Hs(e.format("json")):new Hs(e)}};Qn=new WeakMap,Jn=new WeakMap,Yn=new WeakMap,we=new WeakMap,T4=new WeakSet,Z6=function(e,t,n){if(ku(e)){const i=e.toLowerCase();for(const a of x(this,Yn).values())if(i===a.selector)return a;return null}if(e.indexOf("(")===-1){const i=[];for(const[a,o]of x(this,Yn))a.split("(")[0]===e&&i.push(o);if(t){const a=t.length>0?t[t.length-1]:null;let o=t.length,s=!0;Oe.isTyped(a)&&a.type==="overrides"&&(s=!1,o--);for(let f=i.length-1;f>=0;f--){const l=i[f].inputs.length;l!==o&&(!s||l!==o-1)&&i.splice(f,1)}for(let f=i.length-1;f>=0;f--){const l=i[f].inputs;for(let c=0;c=l.length){if(t[c].type==="overrides")continue;i.splice(f,1);break}if(t[c].type!==l[c].baseType){i.splice(f,1);break}}}}if(i.length===1&&t&&t.length!==i[0].inputs.length){const a=t[t.length-1];(a==null||Array.isArray(a)||typeof a!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&n){const a=i.map(o=>JSON.stringify(o.format())).join(", ");Q(!1,`ambiguous function description (i.e. matches ${a})`,"key",e)}return i[0]}const r=x(this,Yn).get(ir.from(e).format());return r||null},P4=new WeakSet,X6=function(e,t,n){if(ku(e)){const i=e.toLowerCase();for(const a of x(this,Jn).values())if(i===a.topicHash)return a;return null}if(e.indexOf("(")===-1){const i=[];for(const[a,o]of x(this,Jn))a.split("(")[0]===e&&i.push(o);if(t){for(let a=i.length-1;a>=0;a--)i[a].inputs.length=0;a--){const o=i[a].inputs;for(let s=0;s1&&n){const a=i.map(o=>JSON.stringify(o.format())).join(", ");Q(!1,`ambiguous event description (i.e. matches ${a})`,"key",e)}return i[0]}const r=x(this,Jn).get(rr.from(e).format());return r||null};let am=Hs;const zj=BigInt(0);function ml(u){return u??null}function Pe(u){return u==null?null:u.toString()}class nx{constructor(e,t,n){Z(this,"gasPrice");Z(this,"maxFeePerGas");Z(this,"maxPriorityFeePerGas");j0(this,{gasPrice:ml(e),maxFeePerGas:ml(t),maxPriorityFeePerGas:ml(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:Pe(e),maxFeePerGas:Pe(t),maxPriorityFeePerGas:Pe(n)}}}function N9(u){const e={};u.to&&(e.to=u.to),u.from&&(e.from=u.from),u.data&&(e.data=I0(u.data));const t="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const r of t)!(r in u)||u[r]==null||(e[r]=N0(u[r],`request.${r}`));const n="type,nonce".split(/,/);for(const r of n)!(r in u)||u[r]==null||(e[r]=q0(u[r],`request.${r}`));return u.accessList&&(e.accessList=ts(u.accessList)),"blockTag"in u&&(e.blockTag=u.blockTag),"enableCcipRead"in u&&(e.enableCcipRead=!!u.enableCcipRead),"customData"in u&&(e.customData=u.customData),e}var Or;class H_0{constructor(e,t){Z(this,"provider");Z(this,"number");Z(this,"hash");Z(this,"timestamp");Z(this,"parentHash");Z(this,"nonce");Z(this,"difficulty");Z(this,"gasLimit");Z(this,"gasUsed");Z(this,"miner");Z(this,"extraData");Z(this,"baseFeePerGas");X(this,Or,void 0);I(this,Or,e.transactions.map(n=>typeof n!="string"?new fc(n,t):n)),j0(this,{provider:t,hash:ml(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,miner:e.miner,extraData:e.extraData,baseFeePerGas:ml(e.baseFeePerGas)})}get transactions(){return x(this,Or).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=x(this,Or).slice();return e.length===0?[]:(l0(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:t,extraData:n,gasLimit:r,gasUsed:i,hash:a,miner:o,nonce:s,number:f,parentHash:l,timestamp:c,transactions:E}=this;return{_type:"Block",baseFeePerGas:Pe(e),difficulty:Pe(t),extraData:n,gasLimit:Pe(r),gasUsed:Pe(i),hash:a,miner:o,nonce:s,number:f,parentHash:l,timestamp:c,transactions:E}}[Symbol.iterator](){let e=0;const t=this.transactions;return{next:()=>enew y1(r,t))));let n=zj;e.effectiveGasPrice!=null?n=e.effectiveGasPrice:e.gasPrice!=null&&(n=e.gasPrice),j0(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,gasPrice:n,type:e.type,status:e.status,root:e.root})}get logs(){return x(this,Cc)}toJSON(){const{to:e,from:t,contractAddress:n,hash:r,index:i,blockHash:a,blockNumber:o,logsBloom:s,logs:f,status:l,root:c}=this;return{_type:"TransactionReceipt",blockHash:a,blockNumber:o,contractAddress:n,cumulativeGasUsed:Pe(this.cumulativeGasUsed),from:t,gasPrice:Pe(this.gasPrice),gasUsed:Pe(this.gasUsed),hash:r,index:i,logs:f,logsBloom:s,root:c,status:l,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(o)return null;const{blockNumber:E,nonce:d}=await je({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(d{if(E==null||E.status!==0)return E;l0(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:E.to,from:E.from,data:""},receipt:E})},l=await this.provider.getTransactionReceipt(this.hash);if(n===0)return f(l);if(l){if(await l.confirmations()>=n)return f(l)}else if(await s(),n===0)return null;return await new Promise((E,d)=>{const p=[],h=()=>{p.forEach(g=>g())};if(p.push(()=>{o=!0}),r>0){const g=setTimeout(()=>{h(),d(Ju("wait for transaction timeout","TIMEOUT"))},r);p.push(()=>{clearTimeout(g)})}const b=async g=>{if(await g.confirmations()>=n){h();try{E(f(g))}catch(m){d(m)}}};if(p.push(()=>{this.provider.off(this.hash,b)}),this.provider.on(this.hash,b),i>=0){const g=async()=>{try{await s()}catch(m){if(an(m,"TRANSACTION_REPLACED")){h(),d(m);return}}o||this.provider.once("block",g)};p.push(()=>{this.provider.off("block",g)}),this.provider.once("block",g)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}removedEvent(){return l0(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Uj(this)}reorderedEvent(e){return l0(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),l0(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),$j(this,e)}replaceableTransaction(e){Q(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const t=new zA(this,this.provider);return I(t,Pi,e),t}};Pi=new WeakMap;let fc=zA;function G_0(u){return{orphan:"drop-block",hash:u.hash,number:u.number}}function $j(u,e){return{orphan:"reorder-transaction",tx:u,other:e}}function Uj(u){return{orphan:"drop-transaction",tx:u}}function V_0(u){return{orphan:"drop-log",log:{transactionHash:u.transactionHash,blockHash:u.blockHash,blockNumber:u.blockNumber,address:u.address,data:u.data,topics:Object.freeze(u.topics.slice()),index:u.index}}}class DA extends y1{constructor(t,n,r){super(t,t.provider);Z(this,"interface");Z(this,"fragment");Z(this,"args");const i=n.decodeEventLog(r,t.data,t.topics);j0(this,{args:i,fragment:r,interface:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class Wj extends y1{constructor(t,n){super(t,t.provider);Z(this,"error");j0(this,{error:n})}}var O4;class K_0 extends Lj{constructor(t,n,r){super(r,n);X(this,O4,void 0);I(this,O4,t)}get logs(){return super.logs.map(t=>{const n=t.topics.length?x(this,O4).getEvent(t.topics[0]):null;if(n)try{return new DA(t,x(this,O4),n)}catch(r){return new Wj(t,r)}return t})}}O4=new WeakMap;var mc;class wA extends fc{constructor(t,n,r){super(r,n);X(this,mc,void 0);I(this,mc,t)}async wait(t){const n=await super.wait(t);return n==null?null:new K_0(x(this,mc),this.provider,n)}}mc=new WeakMap;class qj extends LM{constructor(t,n,r,i){super(t,n,r);Z(this,"log");j0(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class Q_0 extends qj{constructor(e,t,n,r,i){super(e,t,n,new DA(i,e.interface,r));const a=e.interface.decodeEventLog(r,this.log.data,this.log.topics);j0(this,{args:a,fragment:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const rx=BigInt(0);function Hj(u){return u&&typeof u.call=="function"}function Gj(u){return u&&typeof u.estimateGas=="function"}function Sd(u){return u&&typeof u.resolveName=="function"}function Vj(u){return u&&typeof u.sendTransaction=="function"}function Kj(u){if(u!=null){if(Sd(u))return u;if(u.provider)return u.provider}}var gc;class J_0{constructor(e,t,n){X(this,gc,void 0);Z(this,"fragment");if(j0(this,{fragment:t}),t.inputs.lengthn[s]==null?null:o.walkAsync(n[s],(l,c)=>l==="address"?Array.isArray(c)?Promise.all(c.map(E=>Ue(E,i))):Ue(c,i):c)));return e.interface.encodeFilterTopics(t,a)}())}getTopicFilter(){return x(this,gc)}}gc=new WeakMap;function Mo(u,e){return u==null?null:typeof u[e]=="function"?u:u.provider&&typeof u.provider[e]=="function"?u.provider:null}function qa(u){return u==null?null:u.provider||null}async function Qj(u,e){const t=Oe.dereference(u,"overrides");Q(typeof t=="object","invalid overrides parameter","overrides",u);const n=N9(t);return Q(n.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),Q(n.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function Y_0(u,e,t){const n=Mo(u,"resolveName"),r=Sd(n)?n:null;return await Promise.all(e.map((i,a)=>i.walkAsync(t[a],(o,s)=>(s=Oe.dereference(s,o),o==="address"?Ue(s,r):s))))}function Z_0(u){const e=async function(a){const o=await Qj(a,["data"]);o.to=await u.getAddress(),o.from&&(o.from=await Ue(o.from,Kj(u.runner)));const s=u.interface,f=N0(o.value||rx,"overrides.value")===rx,l=(o.data||"0x")==="0x";s.fallback&&!s.fallback.payable&&s.receive&&!l&&!f&&Q(!1,"cannot send data to receive or send value to non-payable fallback","overrides",a),Q(s.fallback||l,"cannot send data to receive-only contract","overrides.data",o.data);const c=s.receive||s.fallback&&s.fallback.payable;return Q(c||f,"cannot send value to non-payable fallback","overrides.value",o.value),Q(s.fallback||l,"cannot send data to receive-only contract","overrides.data",o.data),o},t=async function(a){const o=Mo(u.runner,"call");l0(Hj(o),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const s=await e(a);try{return await o.call(s)}catch(f){throw CA(f)&&f.data?u.interface.makeError(f.data,s):f}},n=async function(a){const o=u.runner;l0(Vj(o),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const s=await o.sendTransaction(await e(a)),f=qa(u.runner);return new wA(u.interface,f,s)},r=async function(a){const o=Mo(u.runner,"estimateGas");return l0(Gj(o),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await o.estimateGas(await e(a))},i=async a=>await n(a);return j0(i,{_contract:u,estimateGas:r,populateTransaction:e,send:n,staticCall:t}),i}function X_0(u,e){const t=function(...f){const l=u.interface.getFunction(e,f);return l0(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:f}}),l},n=async function(...f){const l=t(...f);let c={};if(l.inputs.length+1===f.length&&(c=await Qj(f.pop()),c.from&&(c.from=await Ue(c.from,Kj(u.runner)))),l.inputs.length!==f.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const E=await Y_0(u.runner,l.inputs,f);return Object.assign({},c,await je({to:u.getAddress(),data:u.interface.encodeFunctionData(l,E)}))},r=async function(...f){const l=await o(...f);return l.length===1?l[0]:l},i=async function(...f){const l=u.runner;l0(Vj(l),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await l.sendTransaction(await n(...f)),E=qa(u.runner);return new wA(u.interface,E,c)},a=async function(...f){const l=Mo(u.runner,"estimateGas");return l0(Gj(l),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await l.estimateGas(await n(...f))},o=async function(...f){const l=Mo(u.runner,"call");l0(Hj(l),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await n(...f);let E="0x";try{E=await l.call(c)}catch(p){throw CA(p)&&p.data?u.interface.makeError(p.data,c):p}const d=t(...f);return u.interface.decodeFunctionResult(d,E)},s=async(...f)=>t(...f).constant?await r(...f):await i(...f);return j0(s,{name:u.interface.getFunctionName(e),_contract:u,_key:e,getFragment:t,estimateGas:a,populateTransaction:n,send:i,staticCall:r,staticCallResult:o}),Object.defineProperty(s,"fragment",{configurable:!1,enumerable:!0,get:()=>{const f=u.interface.getFunction(e);return l0(f,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),f}}),s}function uS0(u,e){const t=function(...r){const i=u.interface.getEvent(e,r);return l0(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:r}}),i},n=function(...r){return new J_0(u,t(...r),r)};return j0(n,{name:u.interface.getEventName(e),_contract:u,_key:e,getFragment:t}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const r=u.interface.getEvent(e);return l0(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),r}}),n}const R9=Symbol.for("_ethersInternal_contract"),Jj=new WeakMap;function eS0(u,e){Jj.set(u[R9],e)}function Ft(u){return Jj.get(u[R9])}function tS0(u){return u&&typeof u=="object"&&"getTopicFilter"in u&&typeof u.getTopicFilter=="function"&&u.fragment}async function xA(u,e){let t,n=null;if(Array.isArray(e)){const i=function(a){if(ku(a,32))return a;const o=u.interface.getEvent(a);return Q(o,"unknown fragment","name",a),o.topicHash};t=e.map(a=>a==null?null:Array.isArray(a)?a.map(i):i(a))}else e==="*"?t=[null]:typeof e=="string"?ku(e,32)?t=[e]:(n=u.interface.getEvent(e),Q(n,"unknown fragment","event",e),t=[n.topicHash]):tS0(e)?t=await e.getTopicFilter():"fragment"in e?(n=e.fragment,t=[n.topicHash]):Q(!1,"unknown event name","event",e);t=t.map(i=>{if(i==null)return null;if(Array.isArray(i)){const a=Array.from(new Set(i.map(o=>o.toLowerCase())).values());return a.length===1?a[0]:(a.sort(),a)}return i.toLowerCase()});const r=t.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:n,tag:r,topics:t}}async function Xf(u,e){const{subs:t}=Ft(u);return t.get((await xA(u,e)).tag)||null}async function ix(u,e,t){const n=qa(u.runner);l0(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:r,tag:i,topics:a}=await xA(u,t),{addr:o,subs:s}=Ft(u);let f=s.get(i);if(!f){const c={address:o||u,topics:a},E=b=>{let g=r;if(g==null)try{g=u.interface.getEvent(b.topics[0])}catch{}if(g){const m=g,A=r?u.interface.decodeEventLog(r,b.data,b.topics):[];sm(u,t,A,y=>new Q_0(u,y,t,m,b))}else sm(u,t,[],m=>new qj(u,m,t,b))};let d=[];f={tag:i,listeners:[],start:()=>{d.length||d.push(n.on(c,E))},stop:async()=>{if(d.length==0)return;let b=d;d=[],await Promise.all(b),n.off(c,E)}},s.set(i,f)}return f}let om=Promise.resolve();async function nS0(u,e,t,n){await om;const r=await Xf(u,e);if(!r)return!1;const i=r.listeners.length;return r.listeners=r.listeners.filter(({listener:a,once:o})=>{const s=Array.from(t);n&&s.push(n(o?null:a));try{a.call(u,...s)}catch{}return!o}),r.listeners.length===0&&(r.stop(),Ft(u).subs.delete(r.tag)),i>0}async function sm(u,e,t,n){try{await om}catch{}const r=nS0(u,e,t,n);return om=r,await r}const v6=["then"];var PP0;const bl=class bl{constructor(e,t,n,r){Z(this,"target");Z(this,"interface");Z(this,"runner");Z(this,"filters");Z(this,PP0);Z(this,"fallback");Q(typeof e=="string"||ZM(e),"invalid value for Contract target","target",e),n==null&&(n=null);const i=am.from(t);j0(this,{target:e,runner:n,interface:i}),Object.defineProperty(this,R9,{value:{}});let a,o=null,s=null;if(r){const c=qa(n);s=new wA(this.interface,c,r)}let f=new Map;if(typeof e=="string")if(ku(e))o=e,a=Promise.resolve(e);else{const c=Mo(n,"resolveName");if(!Sd(c))throw Ju("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});a=c.resolveName(e).then(E=>{if(E==null)throw Ju("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return Ft(this).addr=E,E})}else a=e.getAddress().then(c=>{if(c==null)throw new Error("TODO");return Ft(this).addr=c,c});eS0(this,{addrPromise:a,addr:o,deployTx:s,subs:f});const l=new Proxy({},{get:(c,E,d)=>{if(typeof E=="symbol"||v6.indexOf(E)>=0)return Reflect.get(c,E,d);try{return this.getEvent(E)}catch(p){if(!an(p,"INVALID_ARGUMENT")||p.argument!=="key")throw p}},has:(c,E)=>v6.indexOf(E)>=0?Reflect.has(c,E):Reflect.has(c,E)||this.interface.hasEvent(String(E))});return j0(this,{filters:l}),j0(this,{fallback:i.receive||i.fallback?Z_0(this):null}),new Proxy(this,{get:(c,E,d)=>{if(typeof E=="symbol"||E in c||v6.indexOf(E)>=0)return Reflect.get(c,E,d);try{return c.getFunction(E)}catch(p){if(!an(p,"INVALID_ARGUMENT")||p.argument!=="key")throw p}},has:(c,E)=>typeof E=="symbol"||E in c||v6.indexOf(E)>=0?Reflect.has(c,E):c.interface.hasFunction(E)})}connect(e){return new bl(this.target,this.interface,e)}attach(e){return new bl(e,this.interface,this.runner)}async getAddress(){return await Ft(this).addrPromise}async getDeployedCode(){const e=qa(this.runner);l0(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const t=await e.getCode(await this.getAddress());return t==="0x"?null:t}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const n=qa(this.runner);return l0(n!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((r,i)=>{const a=async()=>{try{if(await this.getDeployedCode()!=null)return r(this);n.once("block",a)}catch(o){i(o)}};a()})}deploymentTransaction(){return Ft(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),X_0(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),uS0(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,t,n){t==null&&(t=0),n==null&&(n="latest");const{addr:r,addrPromise:i}=Ft(this),a=r||await i,{fragment:o,topics:s}=await xA(this,e),f={address:a,topics:s,fromBlock:t,toBlock:n},l=qa(this.runner);return l0(l,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await l.getLogs(f)).map(c=>{let E=o;if(E==null)try{E=this.interface.getEvent(c.topics[0])}catch{}if(E)try{return new DA(c,this.interface,E)}catch(d){return new Wj(c,d)}return new y1(c,l)})}async on(e,t){const n=await ix(this,"on",e);return n.listeners.push({listener:t,once:!1}),n.start(),this}async once(e,t){const n=await ix(this,"once",e);return n.listeners.push({listener:t,once:!0}),n.start(),this}async emit(e,...t){return await sm(this,e,t,null)}async listenerCount(e){if(e){const r=await Xf(this,e);return r?r.listeners.length:0}const{subs:t}=Ft(this);let n=0;for(const{listeners:r}of t.values())n+=r.length;return n}async listeners(e){if(e){const r=await Xf(this,e);return r?r.listeners.map(({listener:i})=>i):[]}const{subs:t}=Ft(this);let n=[];for(const{listeners:r}of t.values())n=n.concat(r.map(({listener:i})=>i));return n}async off(e,t){const n=await Xf(this,e);if(!n)return this;if(t){const r=n.listeners.map(({listener:i})=>i).indexOf(t);r>=0&&n.listeners.splice(r,1)}return(t==null||n.listeners.length===0)&&(n.stop(),Ft(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const t=await Xf(this,e);if(!t)return this;t.stop(),Ft(this).subs.delete(t.tag)}else{const{subs:t}=Ft(this);for(const{tag:n,stop:r}of t.values())r(),t.delete(n)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){class t extends bl{constructor(r,i=null){super(r,e,i)}}return t}static from(e,t,n){return n==null&&(n=null),new this(e,t,n)}};PP0=R9;let fm=bl;function rS0(){return fm}class Ao extends rS0(){}function w8(u){return u.match(/^ipfs:\/\/ipfs\//i)?u=u.substring(12):u.match(/^ipfs:\/\//i)?u=u.substring(7):Q(!1,"unsupported IPFS format","link",u),`https://gateway.ipfs.io/ipfs/${u}`}class iS0{constructor(e){Z(this,"name");j0(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw new Error("unsupported coin")}async decodeAddress(e,t){throw new Error("unsupported coin")}}const Yj=new RegExp("^(ipfs)://(.*)$","i"),ax=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),Yj,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var Oi,uo,Ii,Ds,q9,Zj;const Gs=class Gs{constructor(e,t,n){X(this,Ii);Z(this,"provider");Z(this,"address");Z(this,"name");X(this,Oi,void 0);X(this,uo,void 0);j0(this,{provider:e,address:t,name:n}),I(this,Oi,null),I(this,uo,new Ao(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e))}async supportsWildcard(){return x(this,Oi)==null&&I(this,Oi,(async()=>{try{return await x(this,uo).supportsInterface("0x9061b923")}catch(e){if(an(e,"CALL_EXCEPTION"))return!1;throw I(this,Oi,null),e}})()),await x(this,Oi)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await A0(this,Ii,Ds).call(this,"addr(bytes32)");return i==null||i===ZC?null:i}catch(i){if(an(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const a=await A0(this,Ii,Ds).call(this,"addr(bytes32,uint)",[i]);if(ku(a,20))return tu(a)}let t=null;for(const i of this.provider.plugins)if(i instanceof iS0&&i.supportsCoinType(e)){t=i;break}if(t==null)return null;const n=await A0(this,Ii,Ds).call(this,"addr(bytes32,uint)",[e]);if(n==null||n==="0x")return null;const r=await t.decodeAddress(e,n);if(r!=null)return r;l0(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const t=await A0(this,Ii,Ds).call(this,"text(bytes32,string)",[e]);return t==null||t==="0x"?null:t}async getContentHash(){const e=await A0(this,Ii,Ds).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const r=t[1]==="e3010170"?"ipfs":"ipns",i=parseInt(t[4],16);if(t[5].length===i*2)return`${r}://${Hx0("0x"+t[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&n[1].length===64)return`bzz://${n[1]}`;l0(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const t=await this.getText("avatar");if(t==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:t});for(let n=0;n{if(!Array.isArray(e))throw new Error("not an array");return e.map(t=>u(t))}}function v1(u,e){return t=>{const n={};for(const r in u){let i=r;if(e&&r in e&&!(i in t)){for(const a of e[r])if(a in t){i=a;break}}try{const a=u[r](t[i]);a!==void 0&&(n[r]=a)}catch(a){const o=a instanceof Error?a.message:"not-an-error";l0(!1,`invalid value for value.${r} (${o})`,"BAD_DATA",{value:t})}}return n}}function aS0(u){switch(u){case!0:case"true":return!0;case!1:case"false":return!1}Q(!1,`invalid boolean; ${JSON.stringify(u)}`,"value",u)}function I3(u){return Q(ku(u,!0),"invalid data","value",u),u}function on(u){return Q(ku(u,32),"invalid hash","value",u),u}const oS0=v1({address:tu,blockHash:on,blockNumber:q0,data:I3,index:q0,removed:vu(aS0,!1),topics:kA(on),transactionHash:on,transactionIndex:q0},{index:["logIndex"]});function sS0(u){return oS0(u)}const fS0=v1({hash:vu(on),parentHash:on,number:q0,timestamp:q0,nonce:vu(I3),difficulty:N0,gasLimit:N0,gasUsed:N0,miner:vu(tu),extraData:I3,baseFeePerGas:vu(N0)});function lS0(u){const e=fS0(u);return e.transactions=u.transactions.map(t=>typeof t=="string"?t:Xj(t)),e}const cS0=v1({transactionIndex:q0,blockNumber:q0,transactionHash:on,address:tu,topics:kA(on),data:I3,index:q0,blockHash:on},{index:["logIndex"]});function ES0(u){return cS0(u)}const dS0=v1({to:vu(tu,null),from:vu(tu,null),contractAddress:vu(tu,null),index:q0,root:vu(I0),gasUsed:N0,logsBloom:vu(I3),blockHash:on,hash:on,logs:kA(ES0),blockNumber:q0,cumulativeGasUsed:N0,effectiveGasPrice:vu(N0),status:vu(q0),type:vu(q0,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function pS0(u){return dS0(u)}function Xj(u){u.to&&N0(u.to)===ox&&(u.to="0x0000000000000000000000000000000000000000");const e=v1({hash:on,type:t=>t==="0x"||t==null?0:q0(t),accessList:vu(ts,null),blockHash:vu(on,null),blockNumber:vu(q0,null),transactionIndex:vu(q0,null),from:tu,gasPrice:vu(N0),maxPriorityFeePerGas:vu(N0),maxFeePerGas:vu(N0),gasLimit:N0,to:vu(tu,null),value:N0,nonce:q0,data:I3,creates:vu(tu,null),chainId:vu(N0,null)},{data:["input"],gasLimit:["gas"]})(u);if(e.to==null&&e.creates==null&&(e.creates=dk0(e)),(u.type===1||u.type===2)&&u.accessList==null&&(e.accessList=[]),u.signature?e.signature=Ln.from(u.signature):e.signature=Ln.from(u),e.chainId==null){const t=e.signature.legacyChainId;t!=null&&(e.chainId=t)}return e.blockHash&&N0(e.blockHash)===ox&&(e.blockHash=null),e}const hS0="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class B1{constructor(e){Z(this,"name");j0(this,{name:e})}clone(){return new B1(this.name)}}class Td extends B1{constructor(t,n){t==null&&(t=0);super(`org.ethers.network.plugins.GasCost#${t||0}`);Z(this,"effectiveBlock");Z(this,"txBase");Z(this,"txCreate");Z(this,"txDataZero");Z(this,"txDataNonzero");Z(this,"txAccessListStorageKey");Z(this,"txAccessListAddress");const r={effectiveBlock:t};function i(a,o){let s=(n||{})[a];s==null&&(s=o),Q(typeof s=="number",`invalud value for ${a}`,"costs",n),r[a]=s}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),j0(this,r)}clone(){return new Td(this.effectiveBlock,this)}}class Pd extends B1{constructor(t,n){super("org.ethers.plugins.network.Ens");Z(this,"address");Z(this,"targetNetwork");j0(this,{address:t||hS0,targetNetwork:n??1})}clone(){return new Pd(this.address,this.targetNetwork)}}var bc,Ac;class CS0 extends B1{constructor(t,n){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");X(this,bc,void 0);X(this,Ac,void 0);I(this,bc,t),I(this,Ac,n)}get url(){return x(this,bc)}get processFunc(){return x(this,Ac)}clone(){return this}}bc=new WeakMap,Ac=new WeakMap;const x8=new Map;var I4,N4,Ni;const Vs=class Vs{constructor(e,t){X(this,I4,void 0);X(this,N4,void 0);X(this,Ni,void 0);I(this,I4,e),I(this,N4,N0(t)),I(this,Ni,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return x(this,I4)}set name(e){I(this,I4,e)}get chainId(){return x(this,N4)}set chainId(e){I(this,N4,N0(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===N0(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===N0(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===N0(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(x(this,Ni).values())}attachPlugin(e){if(x(this,Ni).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return x(this,Ni).set(e.name,e.clone()),this}getPlugin(e){return x(this,Ni).get(e)||null}getPlugins(e){return this.plugins.filter(t=>t.name.split("#")[0]===e)}clone(){const e=new Vs(this.name,this.chainId);return this.plugins.forEach(t=>{e.attachPlugin(t.clone())}),e}computeIntrinsicGas(e){const t=this.getPlugin("org.ethers.plugins.network.GasCost")||new Td;let n=t.txBase;if(e.to==null&&(n+=t.txCreate),e.data)for(let r=2;r9){let r=BigInt(n[1].substring(0,9));n[1].substring(9).match(/^0+$/)||r++,n[1]=r.toString()}return BigInt(n[0]+n[1])}function fx(u){return new CS0(u,async(e,t,n)=>{n.setHeader("User-Agent","ethers");let r;try{const[i,a]=await Promise.all([n.send(),e()]);r=i;const o=r.bodyJson.standard;return{gasPrice:a.gasPrice,maxFeePerGas:sx(o.maxFee,9),maxPriorityFeePerGas:sx(o.maxPriorityFee,9)}}catch(i){l0(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:r,error:i})}})}let lx=!1;function mS0(){if(lx)return;lx=!0;function u(e,t,n){const r=function(){const i=new or(e,t);return n.ensNetwork!=null&&i.attachPlugin(new Pd(null,n.ensNetwork)),i.attachPlugin(new Td),(n.plugins||[]).forEach(a=>{i.attachPlugin(a)}),i};or.register(e,r),or.register(t,r),n.altNames&&n.altNames.forEach(i=>{or.register(i,r)})}u("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),u("ropsten",3,{ensNetwork:3}),u("rinkeby",4,{ensNetwork:4}),u("goerli",5,{ensNetwork:5}),u("kovan",42,{ensNetwork:42}),u("sepolia",11155111,{ensNetwork:11155111}),u("classic",61,{}),u("classicKotti",6,{}),u("arbitrum",42161,{ensNetwork:1}),u("arbitrum-goerli",421613,{}),u("base",8453,{ensNetwork:1}),u("base-goerli",84531,{}),u("base-sepolia",84532,{}),u("bnb",56,{ensNetwork:1}),u("bnbt",97,{}),u("linea",59144,{ensNetwork:1}),u("linea-goerli",59140,{}),u("matic",137,{ensNetwork:1,plugins:[fx("https://gasstation.polygon.technology/v2")]}),u("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[fx("https://gasstation-testnet.polygon.technology/v2")]}),u("optimism",10,{ensNetwork:1,plugins:[]}),u("optimism-goerli",420,{}),u("xdai",100,{ensNetwork:1})}function lm(u){return JSON.parse(JSON.stringify(u))}var Ir,Kt,Ri,Zn,R4,u2;class gS0{constructor(e){X(this,R4);X(this,Ir,void 0);X(this,Kt,void 0);X(this,Ri,void 0);X(this,Zn,void 0);I(this,Ir,e),I(this,Kt,null),I(this,Ri,4e3),I(this,Zn,-2)}get pollingInterval(){return x(this,Ri)}set pollingInterval(e){I(this,Ri,e)}start(){x(this,Kt)||(I(this,Kt,x(this,Ir)._setTimeout(A0(this,R4,u2).bind(this),x(this,Ri))),A0(this,R4,u2).call(this))}stop(){x(this,Kt)&&(x(this,Ir)._clearTimeout(x(this,Kt)),I(this,Kt,null))}pause(e){this.stop(),e&&I(this,Zn,-2)}resume(){this.start()}}Ir=new WeakMap,Kt=new WeakMap,Ri=new WeakMap,Zn=new WeakMap,R4=new WeakSet,u2=async function(){try{const e=await x(this,Ir).getBlockNumber();if(x(this,Zn)===-2){I(this,Zn,e);return}if(e!==x(this,Zn)){for(let t=x(this,Zn)+1;t<=e;t++){if(x(this,Kt)==null)return;await x(this,Ir).emit("block",t)}I(this,Zn,e)}}catch{}x(this,Kt)!=null&&I(this,Kt,x(this,Ir)._setTimeout(A0(this,R4,u2).bind(this),x(this,Ri)))};var eo,to,Mi;class _A{constructor(e){X(this,eo,void 0);X(this,to,void 0);X(this,Mi,void 0);I(this,eo,e),I(this,Mi,!1),I(this,to,t=>{this._poll(t,x(this,eo))})}async _poll(e,t){throw new Error("sub-classes must override this")}start(){x(this,Mi)||(I(this,Mi,!0),x(this,to).call(this,-2),x(this,eo).on("block",x(this,to)))}stop(){x(this,Mi)&&(I(this,Mi,!1),x(this,eo).off("block",x(this,to)))}pause(e){this.stop()}resume(){this.start()}}eo=new WeakMap,to=new WeakMap,Mi=new WeakMap;var M4,Nr;class bS0 extends _A{constructor(t,n){super(t);X(this,M4,void 0);X(this,Nr,void 0);I(this,M4,n),I(this,Nr,-2)}pause(t){t&&I(this,Nr,-2),super.pause(t)}async _poll(t,n){const r=await n.getBlock(x(this,M4));r!=null&&(x(this,Nr)===-2?I(this,Nr,r.number):r.number>x(this,Nr)&&(n.emit(x(this,M4),r.number),I(this,Nr,r.number)))}}M4=new WeakMap,Nr=new WeakMap;var H9;class AS0 extends _A{constructor(t,n){super(t);X(this,H9,void 0);I(this,H9,lm(n))}async _poll(t,n){throw new Error("@TODO")}}H9=new WeakMap;var j4;class yS0 extends _A{constructor(t,n){super(t);X(this,j4,void 0);I(this,j4,n)}async _poll(t,n){const r=await n.getTransactionReceipt(x(this,j4));r&&n.emit(x(this,j4),r)}}j4=new WeakMap;var Rr,z4,L4,ji,Qt,G9,uz;class SA{constructor(e,t){X(this,G9);X(this,Rr,void 0);X(this,z4,void 0);X(this,L4,void 0);X(this,ji,void 0);X(this,Qt,void 0);I(this,Rr,e),I(this,z4,lm(t)),I(this,L4,A0(this,G9,uz).bind(this)),I(this,ji,!1),I(this,Qt,-2)}start(){x(this,ji)||(I(this,ji,!0),x(this,Qt)===-2&&x(this,Rr).getBlockNumber().then(e=>{I(this,Qt,e)}),x(this,Rr).on("block",x(this,L4)))}stop(){x(this,ji)&&(I(this,ji,!1),x(this,Rr).off("block",x(this,L4)))}pause(e){this.stop(),e&&I(this,Qt,-2)}resume(){this.start()}}Rr=new WeakMap,z4=new WeakMap,L4=new WeakMap,ji=new WeakMap,Qt=new WeakMap,G9=new WeakSet,uz=async function(e){if(x(this,Qt)===-2)return;const t=lm(x(this,z4));t.fromBlock=x(this,Qt)+1,t.toBlock=e;const n=await x(this,Rr).getLogs(t);if(n.length===0){x(this,Qt){if(n==null)return"null";if(typeof n=="bigint")return`bigint:${n.toString()}`;if(typeof n=="string")return n.toLowerCase();if(typeof n=="object"&&!Array.isArray(n)){const r=Object.keys(n);return r.sort(),r.reduce((i,a)=>(i[a]=n[a],i),{})}return n})}class ez{constructor(e){Z(this,"name");j0(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function FS0(u){return JSON.parse(JSON.stringify(u))}function cm(u){return u=Array.from(new Set(u).values()),u.sort(),u}async function k8(u,e){if(u==null)throw new Error("invalid event");if(Array.isArray(u)&&(u={topics:u}),typeof u=="string")switch(u){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:u,tag:u}}if(ku(u,32)){const t=u.toLowerCase();return{type:"transaction",tag:e2("tx",{hash:t}),hash:t}}if(u.orphan){const t=u;return{type:"orphan",tag:e2("orphan",t),filter:FS0(t)}}if(u.address||u.topics){const t=u,n={topics:(t.topics||[]).map(r=>r==null?null:Array.isArray(r)?cm(r.map(i=>i.toLowerCase())):r.toLowerCase())};if(t.address){const r=[],i=[],a=o=>{ku(o)?r.push(o):i.push((async()=>{r.push(await Ue(o,e))})())};Array.isArray(t.address)?t.address.forEach(a):a(t.address),i.length&&await Promise.all(i),n.address=cm(r.map(o=>o.toLowerCase()))}return{filter:n,tag:e2("event",n),type:"event"}}Q(!1,"unknown ProviderEvent","event",u)}function _8(){return new Date().getTime()}const DS0={cacheTimeout:250,pollingInterval:4e3};var xe,zi,ke,$4,xt,no,Li,Mr,yc,Jt,U4,W4,Re,Bt,vc,Em,Bc,dm,ro,ul,Fc,pm,io,el,q4,t2;class wS0{constructor(e,t){X(this,Re);X(this,vc);X(this,Bc);X(this,ro);X(this,Fc);X(this,io);X(this,q4);X(this,xe,void 0);X(this,zi,void 0);X(this,ke,void 0);X(this,$4,void 0);X(this,xt,void 0);X(this,no,void 0);X(this,Li,void 0);X(this,Mr,void 0);X(this,yc,void 0);X(this,Jt,void 0);X(this,U4,void 0);X(this,W4,void 0);if(I(this,W4,Object.assign({},DS0,t||{})),e==="any")I(this,no,!0),I(this,xt,null);else if(e){const n=or.from(e);I(this,no,!1),I(this,xt,Promise.resolve(n)),setTimeout(()=>{this.emit("network",n,null)},0)}else I(this,no,!1),I(this,xt,null);I(this,Mr,-1),I(this,Li,new Map),I(this,xe,new Map),I(this,zi,new Map),I(this,ke,null),I(this,$4,!1),I(this,yc,1),I(this,Jt,new Map),I(this,U4,!1)}get pollingInterval(){return x(this,W4).pollingInterval}get provider(){return this}get plugins(){return Array.from(x(this,zi).values())}attachPlugin(e){if(x(this,zi).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return x(this,zi).set(e.name,e.connect(this)),this}getPlugin(e){return x(this,zi).get(e)||null}get disableCcipRead(){return x(this,U4)}set disableCcipRead(e){I(this,U4,!!e)}async ccipReadFetch(e,t,n){if(this.disableCcipRead||n.length===0||e.to==null)return null;const r=e.to.toLowerCase(),i=t.toLowerCase(),a=[];for(let o=0;o=500,`response not found during CCIP fetch: ${c}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:s,errorMessage:c}}),a.push(c)}l0(!1,`error encountered during CCIP fetch: ${a.map(o=>JSON.stringify(o)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:a}})}_wrapBlock(e,t){return new H_0(lS0(e),this)}_wrapLog(e,t){return new y1(sS0(e),this)}_wrapTransactionReceipt(e,t){return new Lj(pS0(e),this)}_wrapTransactionResponse(e,t){return new fc(Xj(e),this)}_detectNetwork(){l0(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){l0(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=q0(await A0(this,Re,Bt).call(this,{method:"getBlockNumber"}),"%response");return x(this,Mr)>=0&&I(this,Mr,e),e}_getAddress(e){return Ue(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(ku(e))return ku(e,32)?e:Ws(e);if(typeof e=="bigint"&&(e=q0(e,"blockTag")),typeof e=="number")return e>=0?Ws(e):x(this,Mr)>=0?Ws(x(this,Mr)+e):this.getBlockNumber().then(t=>Ws(t+e));Q(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const t=(e.topics||[]).map(s=>s==null?null:Array.isArray(s)?cm(s.map(f=>f.toLowerCase())):s.toLowerCase()),n="blockHash"in e?e.blockHash:void 0,r=(s,f,l)=>{let c;switch(s.length){case 0:break;case 1:c=s[0];break;default:s.sort(),c=s}if(n&&(f!=null||l!=null))throw new Error("invalid filter");const E={};return c&&(E.address=c),t.length&&(E.topics=t),f&&(E.fromBlock=f),l&&(E.toBlock=l),n&&(E.blockHash=n),E};let i=[];if(e.address)if(Array.isArray(e.address))for(const s of e.address)i.push(this._getAddress(s));else i.push(this._getAddress(e.address));let a;"fromBlock"in e&&(a=this._getBlockTag(e.fromBlock));let o;return"toBlock"in e&&(o=this._getBlockTag(e.toBlock)),i.filter(s=>typeof s!="string").length||a!=null&&typeof a!="string"||o!=null&&typeof o!="string"?Promise.all([Promise.all(i),a,o]).then(s=>r(s[0],s[1],s[2])):r(i,a,o)}_getTransactionRequest(e){const t=N9(e),n=[];if(["to","from"].forEach(r=>{if(t[r]==null)return;const i=Ue(t[r],this);B6(i)?n.push(async function(){t[r]=await i}()):t[r]=i}),t.blockTag!=null){const r=this._getBlockTag(t.blockTag);B6(r)?n.push(async function(){t.blockTag=await r}()):t.blockTag=r}return n.length?async function(){return await Promise.all(n),t}():t}async getNetwork(){if(x(this,xt)==null){const r=this._detectNetwork().then(i=>(this.emit("network",i,null),i),i=>{throw x(this,xt)===r&&I(this,xt,null),i});return I(this,xt,r),(await r).clone()}const e=x(this,xt),[t,n]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==n.chainId&&(x(this,no)?(this.emit("network",n,t),x(this,xt)===e&&I(this,xt,Promise.resolve(n))):l0(!1,`network changed: ${t.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){const e=await this.getNetwork(),t=async()=>{const{_block:r,gasPrice:i,priorityFee:a}=await je({_block:A0(this,Fc,pm).call(this,"latest",!1),gasPrice:(async()=>{try{const l=await A0(this,Re,Bt).call(this,{method:"getGasPrice"});return N0(l,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const l=await A0(this,Re,Bt).call(this,{method:"getPriorityFee"});return N0(l,"%response")}catch{}return null})()});let o=null,s=null;const f=this._wrapBlock(r,e);return f&&f.baseFeePerGas&&(s=a??BigInt("1000000000"),o=f.baseFeePerGas*vS0+s),new nx(i,o,s)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const r=new ui(n.url),i=await n.processFunc(t,this,r);return new nx(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return B6(t)&&(t=await t),N0(await A0(this,Re,Bt).call(this,{method:"estimateGas",transaction:t}),"%response")}async call(e){const{tx:t,blockTag:n}=await je({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await A0(this,Bc,dm).call(this,A0(this,vc,Em).call(this,t,n,e.enableCcipRead?0:-1))}async getBalance(e,t){return N0(await A0(this,ro,ul).call(this,{method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return q0(await A0(this,ro,ul).call(this,{method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return I0(await A0(this,ro,ul).call(this,{method:"getCode"},e,t))}async getStorage(e,t,n){const r=N0(t,"position");return I0(await A0(this,ro,ul).call(this,{method:"getStorage",position:r},e,n))}async broadcastTransaction(e){const{blockNumber:t,hash:n,network:r}=await je({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=O9.from(e);if(i.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,r).replaceableTransaction(t)}async getBlock(e,t){const{network:n,params:r}=await je({network:this.getNetwork(),params:A0(this,Fc,pm).call(this,e,!!t)});return r==null?null:this._wrapBlock(r,n)}async getTransaction(e){const{network:t,params:n}=await je({network:this.getNetwork(),params:A0(this,Re,Bt).call(this,{method:"getTransaction",hash:e})});return n==null?null:this._wrapTransactionResponse(n,t)}async getTransactionReceipt(e){const{network:t,params:n}=await je({network:this.getNetwork(),params:A0(this,Re,Bt).call(this,{method:"getTransactionReceipt",hash:e})});if(n==null)return null;if(n.gasPrice==null&&n.effectiveGasPrice==null){const r=await A0(this,Re,Bt).call(this,{method:"getTransaction",hash:e});if(r==null)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=r.gasPrice}return this._wrapTransactionReceipt(n,t)}async getTransactionResult(e){const{result:t}=await je({network:this.getNetwork(),result:A0(this,Re,Bt).call(this,{method:"getTransactionResult",hash:e})});return t==null?null:I0(t)}async getLogs(e){let t=this._getFilter(e);B6(t)&&(t=await t);const{network:n,params:r}=await je({network:this.getNetwork(),params:A0(this,Re,Bt).call(this,{method:"getLogs",filter:t})});return r.map(i=>this._wrapLog(i,n))}_getProvider(e){l0(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await M9.fromName(this,e)}async getAvatar(e){const t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){const t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=tu(e);const t=rm(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await M9.getEnsAddress(this),i=await new Ao(n,["function resolver(bytes32) view returns (address)"],this).resolver(t);if(i==null||i===ZC)return null;const o=await new Ao(i,["function name(bytes32) view returns (string)"],this).name(t);return await this.resolveName(o)!==e?null:o}catch(n){if(an(n,"BAD_DATA")&&n.value==="0x"||an(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,t,n){const r=t??1;return r===0?this.getTransactionReceipt(e):new Promise(async(i,a)=>{let o=null;const s=async f=>{try{const l=await this.getTransactionReceipt(e);if(l!=null&&f-l.blockNumber+1>=r){i(l),o&&(clearTimeout(o),o=null);return}}catch(l){console.log("EEE",l)}this.once("block",s)};n!=null&&(o=setTimeout(()=>{o!=null&&(o=null,this.off("block",s),a(Ju("timeout","TIMEOUT",{reason:"timeout"})))},n)),s(await this.getBlockNumber())})}async waitForBlock(e){l0(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const t=x(this,Jt).get(e);t&&(t.timer&&clearTimeout(t.timer),x(this,Jt).delete(e))}_setTimeout(e,t){t==null&&(t=0);const n=Cf(this,yc)._++,r=()=>{x(this,Jt).delete(n),e()};if(this.paused)x(this,Jt).set(n,{timer:null,func:r,time:t});else{const i=setTimeout(r,t);x(this,Jt).set(n,{timer:i,func:r,time:_8()})}return n}_forEachSubscriber(e){for(const t of x(this,xe).values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new ez(e.type);case"block":{const t=new gS0(this);return t.pollingInterval=this.pollingInterval,t}case"safe":case"finalized":return new bS0(this,e.type);case"event":return new SA(this,e.filter);case"transaction":return new yS0(this,e.hash);case"orphan":return new AS0(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(const n of x(this,xe).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=t,n.started&&t.start(),x(this,ke)!=null&&t.pause(x(this,ke));break}}async on(e,t){const n=await A0(this,q4,t2).call(this,e);return n.listeners.push({listener:t,once:!1}),n.started||(n.subscriber.start(),n.started=!0,x(this,ke)!=null&&n.subscriber.pause(x(this,ke))),this}async once(e,t){const n=await A0(this,q4,t2).call(this,e);return n.listeners.push({listener:t,once:!0}),n.started||(n.subscriber.start(),n.started=!0,x(this,ke)!=null&&n.subscriber.pause(x(this,ke))),this}async emit(e,...t){const n=await A0(this,io,el).call(this,e,t);if(!n||n.listeners.length===0)return!1;const r=n.listeners.length;return n.listeners=n.listeners.filter(({listener:i,once:a})=>{const o=new LM(this,a?null:i,e);try{i.call(this,...t,o)}catch{}return!a}),n.listeners.length===0&&(n.started&&n.subscriber.stop(),x(this,xe).delete(n.tag)),r>0}async listenerCount(e){if(e){const n=await A0(this,io,el).call(this,e);return n?n.listeners.length:0}let t=0;for(const{listeners:n}of x(this,xe).values())t+=n.length;return t}async listeners(e){if(e){const n=await A0(this,io,el).call(this,e);return n?n.listeners.map(({listener:r})=>r):[]}let t=[];for(const{listeners:n}of x(this,xe).values())t=t.concat(n.map(({listener:r})=>r));return t}async off(e,t){const n=await A0(this,io,el).call(this,e);if(!n)return this;if(t){const r=n.listeners.map(({listener:i})=>i).indexOf(t);r>=0&&n.listeners.splice(r,1)}return(!t||n.listeners.length===0)&&(n.started&&n.subscriber.stop(),x(this,xe).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:t,started:n,subscriber:r}=await A0(this,q4,t2).call(this,e);n&&r.stop(),x(this,xe).delete(t)}else for(const[t,{started:n,subscriber:r}]of x(this,xe))n&&r.stop(),x(this,xe).delete(t);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return x(this,$4)}destroy(){this.removeAllListeners();for(const e of x(this,Jt).keys())this._clearTimeout(e);I(this,$4,!0)}get paused(){return x(this,ke)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(I(this,Mr,-1),x(this,ke)!=null){if(x(this,ke)==!!e)return;l0(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(t=>t.pause(e)),I(this,ke,!!e);for(const t of x(this,Jt).values())t.timer&&clearTimeout(t.timer),t.time=_8()-t.time}resume(){if(x(this,ke)!=null){this._forEachSubscriber(e=>e.resume()),I(this,ke,null);for(const e of x(this,Jt).values()){let t=e.time;t<0&&(t=0),e.time=_8(),setTimeout(e.func,t)}}}}xe=new WeakMap,zi=new WeakMap,ke=new WeakMap,$4=new WeakMap,xt=new WeakMap,no=new WeakMap,Li=new WeakMap,Mr=new WeakMap,yc=new WeakMap,Jt=new WeakMap,U4=new WeakMap,W4=new WeakMap,Re=new WeakSet,Bt=async function(e){const t=x(this,W4).cacheTimeout;if(t<0)return await this._perform(e);const n=e2(e.method,e);let r=x(this,Li).get(n);return r||(r=this._perform(e),x(this,Li).set(n,r),setTimeout(()=>{x(this,Li).get(n)===r&&x(this,Li).delete(n)},t)),await r},vc=new WeakSet,Em=async function(e,t,n){l0(n=0&&t==="latest"&&r.to!=null&&Ru(i.data,0,4)==="0x556f1830"){const a=i.data,o=await Ue(r.to,this);let s;try{s=TS0(Ru(i.data,4))}catch(c){l0(!1,c.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:r,info:{data:a}})}l0(s.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:a,reason:"OffchainLookup",transaction:r,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:s.errorArgs}});const f=await this.ccipReadFetch(r,s.calldata,s.urls);l0(f!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:r,info:{data:i.data,errorArgs:s.errorArgs}});const l={to:o,data:te([s.selector,SS0([f,s.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:l});try{const c=await A0(this,vc,Em).call(this,l,t,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},l),result:c}),c}catch(c){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},l),error:c}),c}}throw i}},Bc=new WeakSet,dm=async function(e){const{value:t}=await je({network:this.getNetwork(),value:e});return t},ro=new WeakSet,ul=async function(e,t,n){let r=this._getAddress(t),i=this._getBlockTag(n);return(typeof r!="string"||typeof i!="string")&&([r,i]=await Promise.all([r,i])),await A0(this,Bc,dm).call(this,A0(this,Re,Bt).call(this,Object.assign(e,{address:r,blockTag:i})))},Fc=new WeakSet,pm=async function(e,t){if(ku(e,32))return await A0(this,Re,Bt).call(this,{method:"getBlock",blockHash:e,includeTransactions:t});let n=this._getBlockTag(e);return typeof n!="string"&&(n=await n),await A0(this,Re,Bt).call(this,{method:"getBlock",blockTag:n,includeTransactions:t})},io=new WeakSet,el=async function(e,t){let n=await k8(e,this);return n.type==="event"&&t&&t.length>0&&t[0].removed===!0&&(n=await k8({orphan:"drop-log",log:t[0]},this)),x(this,xe).get(n.tag)||null},q4=new WeakSet,t2=async function(e){const t=await k8(e,this),n=t.tag;let r=x(this,xe).get(n);return r||(r={subscriber:this._getSubscriber(t),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},x(this,xe).set(n,r)),r};function xS0(u,e){try{const t=hm(u,e);if(t)return gA(t)}catch{}return null}function hm(u,e){if(u==="0x")return null;try{const t=q0(Ru(u,e,e+32)),n=q0(Ru(u,t,t+32));return Ru(u,t+32,t+32+n)}catch{}return null}function cx(u){const e=Nt(u);if(e.length>32)throw new Error("internal; should not happen");const t=new Uint8Array(32);return t.set(e,32-e.length),t}function kS0(u){if(u.length%32===0)return u;const e=new Uint8Array(Math.ceil(u.length/32)*32);return e.set(u),e}const _S0=new Uint8Array([]);function SS0(u){const e=[];let t=0;for(let n=0;n=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const t=Ru(u,0,32);l0(Ru(t,0,12)===Ru(Ex,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=Ru(t,12);try{const n=[],r=q0(Ru(u,32,64)),i=q0(Ru(u,r,r+32)),a=Ru(u,r+32);for(let o=0;oe[n]),e}function Cs(u,e){if(u.provider)return u.provider;l0(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function dx(u,e){let t=N9(e);if(t.to!=null&&(t.to=Ue(t.to,u)),t.from!=null){const n=t.from;t.from=Promise.all([u.getAddress(),Ue(n,u)]).then(([r,i])=>(Q(r.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),r))}else t.from=u.getAddress();return await je(t)}class PS0{constructor(e){Z(this,"provider");j0(this,{provider:e||null})}async getNonce(e){return Cs(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await dx(this,e)}async populateTransaction(e){const t=Cs(this,"populateTransaction"),n=await dx(this,e);n.nonce==null&&(n.nonce=await this.getNonce("pending")),n.gasLimit==null&&(n.gasLimit=await this.estimateGas(n));const r=await this.provider.getNetwork();if(n.chainId!=null){const a=N0(n.chainId);Q(a===r.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=r.chainId;const i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?Q(!1,"eip-1559 transaction do not support gasPrice","tx",e):(n.type===0||n.type===1)&&i&&Q(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1){const a=await t.getFeeData();l0(a.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),n.gasPrice==null&&(n.gasPrice=a.gasPrice)}else{const a=await t.getFeeData();if(n.type==null)if(a.maxFeePerGas!=null&&a.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const o=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=o,n.maxPriorityFeePerGas=o}else n.maxFeePerGas==null&&(n.maxFeePerGas=a.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=a.maxPriorityFeePerGas);else a.gasPrice!=null?(l0(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=a.gasPrice),n.type=0):l0(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else n.type===2&&(n.maxFeePerGas==null&&(n.maxFeePerGas=a.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=a.maxPriorityFeePerGas))}return await je(n)}async estimateGas(e){return Cs(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return Cs(this,"call").call(await this.populateCall(e))}async resolveName(e){return await Cs(this,"resolveName").resolveName(e)}async sendTransaction(e){const t=Cs(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const r=O9.from(n);return await t.broadcastTransaction(await this.signTransaction(r))}}function OS0(u){return JSON.parse(JSON.stringify(u))}var et,Xn,ao,$i,oo,H4,Dc,Cm,wc,mm;class tz{constructor(e){X(this,Dc);X(this,wc);X(this,et,void 0);X(this,Xn,void 0);X(this,ao,void 0);X(this,$i,void 0);X(this,oo,void 0);X(this,H4,void 0);I(this,et,e),I(this,Xn,null),I(this,ao,A0(this,Dc,Cm).bind(this)),I(this,$i,!1),I(this,oo,null),I(this,H4,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,t){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){x(this,$i)||(I(this,$i,!0),A0(this,Dc,Cm).call(this,-2))}stop(){x(this,$i)&&(I(this,$i,!1),I(this,H4,!0),A0(this,wc,mm).call(this),x(this,et).off("block",x(this,ao)))}pause(e){e&&A0(this,wc,mm).call(this),x(this,et).off("block",x(this,ao))}resume(){this.start()}}et=new WeakMap,Xn=new WeakMap,ao=new WeakMap,$i=new WeakMap,oo=new WeakMap,H4=new WeakMap,Dc=new WeakSet,Cm=async function(e){try{x(this,Xn)==null&&I(this,Xn,this._subscribe(x(this,et)));let t=null;try{t=await x(this,Xn)}catch(i){if(!an(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(t==null){I(this,Xn,null),x(this,et)._recoverSubscriber(this,this._recover(x(this,et)));return}const n=await x(this,et).getNetwork();if(x(this,oo)||I(this,oo,n),x(this,oo).chainId!==n.chainId)throw new Error("chaid changed");if(x(this,H4))return;const r=await x(this,et).send("eth_getFilterChanges",[t]);await this._emitResults(x(this,et),r)}catch(t){console.log("@TODO",t)}x(this,et).once("block",x(this,ao))},wc=new WeakSet,mm=function(){const e=x(this,Xn);e&&(I(this,Xn,null),e.then(t=>{x(this,et).send("eth_uninstallFilter",[t])}))};var so;class IS0 extends tz{constructor(t,n){super(t);X(this,so,void 0);I(this,so,OS0(n))}_recover(t){return new SA(t,x(this,so))}async _subscribe(t){return await t.send("eth_newFilter",[x(this,so)])}async _emitResults(t,n){for(const r of n)t.emit(x(this,so),t._wrapLog(r,t._network))}}so=new WeakMap;class NS0 extends tz{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(const n of t)e.emit("pending",n)}}const RS0="bigint,boolean,function,number,string,symbol".split(/,/g);function n2(u){if(u==null||RS0.indexOf(typeof u)>=0||typeof u.getAddress=="function")return u;if(Array.isArray(u))return u.map(n2);if(typeof u=="object")return Object.keys(u).reduce((e,t)=>(e[t]=u[t],e),{});throw new Error(`should not happen: ${u} (${typeof u})`)}function MS0(u){return new Promise(e=>{setTimeout(e,u)})}function ms(u){return u&&u.toLowerCase()}function px(u){return u&&typeof u.pollingInterval=="number"}const jS0={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class S8 extends PS0{constructor(t,n){super(t);Z(this,"address");n=tu(n),j0(this,{address:n})}connect(t){l0(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(t){return await this.populateCall(t)}async sendUncheckedTransaction(t){const n=n2(t),r=[];if(n.from){const a=n.from;r.push((async()=>{const o=await Ue(a,this.provider);Q(o!=null&&o.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),n.from=o})())}else n.from=this.address;if(n.gasLimit==null&&r.push((async()=>{n.gasLimit=await this.provider.estimateGas({...n,from:this.address})})()),n.to!=null){const a=n.to;r.push((async()=>{n.to=await Ue(a,this.provider)})())}r.length&&await Promise.all(r);const i=this.provider.getRpcTransaction(n);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(t){const n=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(t);return await new Promise((i,a)=>{const o=[1e3,100],s=async()=>{const f=await this.provider.getTransaction(r);if(f!=null){i(f.replaceableTransaction(n));return}this.provider._setTimeout(()=>{s()},o.pop()||4e3)};s()})}async signTransaction(t){const n=n2(t);if(n.from){const i=await Ue(n.from,this.provider);Q(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),n.from=i}else n.from=this.address;const r=this.provider.getRpcTransaction(n);return await this.provider.send("eth_signTransaction",[r])}async signMessage(t){const n=typeof t=="string"?qr(t):t;return await this.provider.send("personal_sign",[I0(n),this.address.toLowerCase()])}async signTypedData(t,n,r){const i=n2(r),a=await I9.resolveNames(t,n,i,async o=>{const s=await Ue(o);return Q(s!=null,"TypedData does not support null address","value",o),s});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(I9.getPayload(a.domain,n,a.value))])}async unlock(t){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),t,null])}async _legacySignMessage(t){const n=typeof t=="string"?qr(t):t;return await this.provider.send("eth_sign",[this.address.toLowerCase(),I0(n)])}}var fo,G4,jr,ur,wn,Yt,kt,xc,gm;class zS0 extends wS0{constructor(t,n){super(t,n);X(this,xc);X(this,fo,void 0);X(this,G4,void 0);X(this,jr,void 0);X(this,ur,void 0);X(this,wn,void 0);X(this,Yt,void 0);X(this,kt,void 0);I(this,G4,1),I(this,fo,Object.assign({},jS0,n||{})),I(this,jr,[]),I(this,ur,null),I(this,Yt,null),I(this,kt,null);{let i=null;const a=new Promise(o=>{i=o});I(this,wn,{promise:a,resolve:i})}const r=this._getOption("staticNetwork");typeof r=="boolean"?(Q(!r||t!=="any","staticNetwork cannot be used on special network 'any'","options",n),r&&t!=null&&I(this,Yt,or.from(t))):r&&(Q(t==null||r.matches(t),"staticNetwork MUST match network object","options",n),I(this,Yt,r))}_getOption(t){return x(this,fo)[t]}get _network(){return l0(x(this,Yt),"network is not available yet","NETWORK_ERROR"),x(this,Yt)}async _perform(t){if(t.method==="call"||t.method==="estimateGas"){let r=t.transaction;if(r&&r.type!=null&&N0(r.type)&&r.maxFeePerGas==null&&r.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(t=Object.assign({},t,{transaction:Object.assign({},r,{type:void 0})}))}}const n=this.getRpcRequest(t);return n!=null?await this.send(n.method,n.args):super._perform(t)}async _detectNetwork(){const t=this._getOption("staticNetwork");if(t)if(t===!0){if(x(this,Yt))return x(this,Yt)}else return t;return x(this,kt)?await x(this,kt):this.ready?(I(this,kt,(async()=>{const n=or.from(N0(await this.send("eth_chainId",[])));return I(this,kt,null),n})()),await x(this,kt)):(I(this,kt,(async()=>{const n={id:Cf(this,G4)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:n});let r;try{r=(await this._send(n))[0],I(this,kt,null)}catch(i){throw I(this,kt,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:r}),"result"in r)return or.from(N0(r.result));throw this.getRpcError(n,r)})()),await x(this,kt))}_start(){x(this,wn)==null||x(this,wn).resolve==null||(x(this,wn).resolve(),I(this,wn,null),(async()=>{for(;x(this,Yt)==null&&!this.destroyed;)try{I(this,Yt,await this._detectNetwork())}catch(t){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",Ju("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:t}})),await MS0(1e3)}A0(this,xc,gm).call(this)})())}async _waitUntilReady(){if(x(this,wn)!=null)return await x(this,wn).promise}_getSubscriber(t){return t.type==="pending"?new NS0(this):t.type==="event"?this._getOption("polling")?new SA(this,t.filter):new IS0(this,t.filter):t.type==="orphan"&&t.filter.orphan==="drop-log"?new ez("orphan"):super._getSubscriber(t)}get ready(){return x(this,wn)==null}getRpcTransaction(t){const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(r=>{if(t[r]==null)return;let i=r;r==="gasLimit"&&(i="gas"),n[i]=Ws(N0(t[r],`tx.${r}`))}),["from","to","data"].forEach(r=>{t[r]!=null&&(n[r]=I0(t[r]))}),t.accessList&&(n.accessList=ts(t.accessList)),n}getRpcRequest(t){switch(t.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[ms(t.address),t.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[ms(t.address),t.blockTag]};case"getCode":return{method:"eth_getCode",args:[ms(t.address),t.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[ms(t.address),"0x"+t.position.toString(16),t.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[t.signedTransaction]};case"getBlock":if("blockTag"in t)return{method:"eth_getBlockByNumber",args:[t.blockTag,!!t.includeTransactions]};if("blockHash"in t)return{method:"eth_getBlockByHash",args:[t.blockHash,!!t.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[t.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[t.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(t.transaction),t.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(t.transaction)]};case"getLogs":return t.filter&&t.filter.address!=null&&(Array.isArray(t.filter.address)?t.filter.address=t.filter.address.map(ms):t.filter.address=ms(t.filter.address)),{method:"eth_getLogs",args:[t.filter]}}return null}getRpcError(t,n){const{method:r}=t,{error:i}=n;if(r==="eth_estimateGas"&&i.message){const s=i.message;if(!s.match(/revert/i)&&s.match(/insufficient funds/i))return Ju("insufficient funds","INSUFFICIENT_FUNDS",{transaction:t.params[0],info:{payload:t,error:i}})}if(r==="eth_call"||r==="eth_estimateGas"){const s=bm(i),f=sc.getBuiltinCallException(r==="eth_call"?"call":"estimateGas",t.params[0],s?s.data:null);return f.info={error:i,payload:t},f}const a=JSON.stringify($S0(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return Ju("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[r]||"unknown",reason:"rejected",info:{payload:t,error:i}});if(r==="eth_sendRawTransaction"||r==="eth_sendTransaction"){const s=t.params[0];if(a.match(/insufficient funds|base fee exceeds gas limit/i))return Ju("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:s,info:{error:i}});if(a.match(/nonce/i)&&a.match(/too low/i))return Ju("nonce has already been used","NONCE_EXPIRED",{transaction:s,info:{error:i}});if(a.match(/replacement transaction/i)&&a.match(/underpriced/i))return Ju("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:s,info:{error:i}});if(a.match(/only replay-protected/i))return Ju("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:r,info:{transaction:s,info:{error:i}}})}let o=!!a.match(/the method .* does not exist/i);return o||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(o=!0),o?Ju("unsupported operation","UNSUPPORTED_OPERATION",{operation:t.method,info:{error:i,payload:t}}):Ju("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:t})}send(t,n){if(this.destroyed)return Promise.reject(Ju("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t}));const r=Cf(this,G4)._++,i=new Promise((a,o)=>{x(this,jr).push({resolve:a,reject:o,payload:{method:t,params:n,id:r,jsonrpc:"2.0"}})});return A0(this,xc,gm).call(this),i}async getSigner(t){t==null&&(t=0);const n=this.send("eth_accounts",[]);if(typeof t=="number"){const i=await n;if(t>=i.length)throw new Error("no such account");return new S8(this,i[t])}const{accounts:r}=await je({network:this.getNetwork(),accounts:n});t=tu(t);for(const i of r)if(tu(i)===t)return new S8(this,t);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(n=>new S8(this,n))}destroy(){x(this,ur)&&(clearTimeout(x(this,ur)),I(this,ur,null));for(const{payload:t,reject:n}of x(this,jr))n(Ju("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t.method}));I(this,jr,[]),super.destroy()}}fo=new WeakMap,G4=new WeakMap,jr=new WeakMap,ur=new WeakMap,wn=new WeakMap,Yt=new WeakMap,kt=new WeakMap,xc=new WeakSet,gm=function(){if(x(this,ur))return;const t=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");I(this,ur,setTimeout(()=>{I(this,ur,null);const n=x(this,jr);for(I(this,jr,[]);n.length;){const r=[n.shift()];for(;n.length&&r.length!==x(this,fo).batchMaxCount;)if(r.push(n.shift()),JSON.stringify(r.map(a=>a.payload)).length>x(this,fo).batchMaxSize){n.unshift(r.pop());break}(async()=>{const i=r.length===1?r[0].payload:r.map(a=>a.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const a=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:a});for(const{resolve:o,reject:s,payload:f}of r){if(this.destroyed){s(Ju("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:f.method}));continue}const l=a.filter(c=>c.id===f.id)[0];if(l==null){const c=Ju("missing response for request","BAD_DATA",{value:a,info:{payload:f}});this.emit("error",c),s(c);continue}if("error"in l){s(this.getRpcError(f,l));continue}o(l.result)}}catch(a){this.emit("debug",{action:"receiveRpcError",error:a});for(const{reject:o}of r)o(a)}})()}},t))};var Ui;class LS0 extends zS0{constructor(t,n){super(t,n);X(this,Ui,void 0);I(this,Ui,4e3)}_getSubscriber(t){const n=super._getSubscriber(t);return px(n)&&(n.pollingInterval=x(this,Ui)),n}get pollingInterval(){return x(this,Ui)}set pollingInterval(t){if(!Number.isInteger(t)||t<0)throw new Error("invalid interval");I(this,Ui,t),this._forEachSubscriber(n=>{px(n)&&(n.pollingInterval=x(this,Ui))})}}Ui=new WeakMap;var V4;class nz extends LS0{constructor(t,n,r){t==null&&(t="http://localhost:8545");super(n,r);X(this,V4,void 0);typeof t=="string"?I(this,V4,new ui(t)):I(this,V4,t.clone())}_getConnection(){return x(this,V4).clone()}async send(t,n){return await this._start(),await super.send(t,n)}async _send(t){const n=this._getConnection();n.body=JSON.stringify(t),n.setHeader("content-type","application/json");const r=await n.send();r.assertOk();let i=r.bodyJson;return Array.isArray(i)||(i=[i]),i}}V4=new WeakMap;function bm(u){if(u==null)return null;if(typeof u.message=="string"&&u.message.match(/revert/i)&&ku(u.data))return{message:u.message,data:u.data};if(typeof u=="object"){for(const e in u){const t=bm(u[e]);if(t)return t}return null}if(typeof u=="string")try{return bm(JSON.parse(u))}catch{}return null}function Am(u,e){if(u!=null){if(typeof u.message=="string"&&e.push(u.message),typeof u=="object")for(const t in u)Am(u[t],e);if(typeof u=="string")try{return Am(JSON.parse(u),e)}catch{}}}function $S0(u){const e=[];return Am(u,e),e}function US0(){const u=iS(),e=async()=>{const a=new nz("https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt"),o=Nx0.abi,s=new Ao(Ew,o,a),l={address:Ew,fromBlock:0,toBlock:"latest",topics:[da("TokenListed(uint256,address,uint256,uint256)")]};try{const E=(await a.getLogs(l)).map(d=>{const p=[...d.topics],h={...d,topics:p};return s.interface.parseLog(h)});console.log(E)}catch(c){console.error("Error fetching events: ",c)}},t=a=>{console.log("Clicked on NFT with Address",a),u("/real-token/Explore/"+a)},[n,r]=w.useState(),i=async()=>{console.log("Trying to fetch all Listed NFTs... "),e(),r([{name:"Modern Carpet 25",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmNeLLephRJ6zo2AmbcBxQ1iVFv1BDVMscQeZ6FLCvpQuq?_gl=1*1v30ko4*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA3OC4xNS4wLjA.",address:"0x7698",price:1.1,price_token:"ETH"},{name:"Modern Carpet 27",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmfQvxw2uEsCjHLbm11292Lqp24qUFhR469K35EBRuywzb?_gl=1*x2wtze*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA4OS40LjAuMA..",address:"0xsdf23",price:1.7,price_token:"ETH"},{name:"Modern Carpet 25",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmNeLLephRJ6zo2AmbcBxQ1iVFv1BDVMscQeZ6FLCvpQuq?_gl=1*1v30ko4*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA3OC4xNS4wLjA.",address:"0x7698",price:1.1,price_token:"ETH"},{name:"Modern Carpet 27",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmfQvxw2uEsCjHLbm11292Lqp24qUFhR469K35EBRuywzb?_gl=1*x2wtze*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA4OS40LjAuMA..",address:"0xsdf23",price:1.7,price_token:"ETH"},{name:"Modern Carpet 25",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmNeLLephRJ6zo2AmbcBxQ1iVFv1BDVMscQeZ6FLCvpQuq?_gl=1*1v30ko4*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA3OC4xNS4wLjA.",address:"0x7698",price:1.1,price_token:"ETH"},{name:"Modern Carpet 27",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmfQvxw2uEsCjHLbm11292Lqp24qUFhR469K35EBRuywzb?_gl=1*x2wtze*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA4OS40LjAuMA..",address:"0xsdf23",price:1.7,price_token:"ETH"},{name:"Modern Carpet 25",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmNeLLephRJ6zo2AmbcBxQ1iVFv1BDVMscQeZ6FLCvpQuq?_gl=1*1v30ko4*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA3OC4xNS4wLjA.",address:"0x7698",price:1.1,price_token:"ETH"},{name:"Modern Carpet 27",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmfQvxw2uEsCjHLbm11292Lqp24qUFhR469K35EBRuywzb?_gl=1*x2wtze*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA4OS40LjAuMA..",address:"0xsdf23",price:1.7,price_token:"ETH"},{name:"Modern Carpet 25",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmNeLLephRJ6zo2AmbcBxQ1iVFv1BDVMscQeZ6FLCvpQuq?_gl=1*1v30ko4*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA3OC4xNS4wLjA.",address:"0x7698",price:1.1,price_token:"ETH"},{name:"Modern Carpet 27",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmfQvxw2uEsCjHLbm11292Lqp24qUFhR469K35EBRuywzb?_gl=1*x2wtze*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA4OS40LjAuMA..",address:"0xsdf23",price:1.7,price_token:"ETH"}])};return w.useEffect(()=>{i()},[]),c0.jsx(uc,{container:!0,padding:5,direction:"row",spacing:5,justifyContent:"center",alignItems:"flex-start",children:n==null?void 0:n.map(a=>c0.jsx(uc,{item:!0,children:c0.jsx(wx0,{NFT:a,onClick:()=>t(a.address)})}))})}function WS0(){let{NFTId:u}=aS();const e=async()=>{console.log("get NFT Details...")};return w.useEffect(()=>{e()},[u]),c0.jsx(uc,{container:!0,justifyContent:"center",spacing:3,padding:7,direction:"column",alignItems:"center",children:c0.jsx(zc,{children:"Click Mes"})})}const qS0="hh-sol-artifact-1",HS0="FractionalizedNFT",GS0="contracts/FractionalizedNFT.sol",VS0=[{inputs:[{internalType:"address",name:"defaultAdmin",type:"address"},{internalType:"address",name:"_reserver",type:"address"},{internalType:"string",name:"uri",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessControlBadConfirmation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bytes32",name:"neededRole",type:"bytes32"}],name:"AccessControlUnauthorizedAccount",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ERC1155InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC1155InvalidApprover",type:"error"},{inputs:[{internalType:"uint256",name:"idsLength",type:"uint256"},{internalType:"uint256",name:"valuesLength",type:"uint256"}],name:"ERC1155InvalidArrayLength",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"ERC1155InvalidOperator",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC1155InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"ERC1155InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"ERC1155MissingApprovalForAll",type:"error"},{inputs:[],name:"EnforcedPause",type:"error"},{inputs:[],name:"ExpectedPause",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"AmountApproved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"AmountTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"OwnershipRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"TokenMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_TOKEN_AMOUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MINTER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PAUSER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"URI_SETTER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"operator",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getMetadata",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getOwnedTokens",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getOwnershipAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getOwnershipPercentage",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"metadata",type:"string"},{internalType:"bool",name:"reservable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint8",name:"count",type:"uint8"},{internalType:"uint256[]",name:"tokenId",type:"uint256[]"},{internalType:"string[]",name:"metadata",type:"string[]"},{internalType:"bool",name:"reservable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mintBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"removeApproval",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"callerConfirmation",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_reserver",type:"address"}],name:"setReserver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"newuri",type:"string"}],name:"setURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"transfer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],KS0="0x60806040523480156200001157600080fd5b5060405162005b0838038062005b088339818101604052810190620000379190620004e2565b8062000049816200015e60201b60201c565b506000600460006101000a81548160ff0219169083151502179055506200007a6000801b846200017360201b60201c565b50620000ad7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a846200017360201b60201c565b50620000e07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6846200017360201b60201c565b50620001137f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c846200017360201b60201c565b5081600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506200088f565b80600290816200016f9190620007a8565b5050565b60006200018783836200027760201b60201c565b6200026c5760016003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555062000208620002e260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001905062000271565b600090505b92915050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200032b82620002fe565b9050919050565b6200033d816200031e565b81146200034957600080fd5b50565b6000815190506200035d8162000332565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003b8826200036d565b810181811067ffffffffffffffff82111715620003da57620003d96200037e565b5b80604052505050565b6000620003ef620002ea565b9050620003fd8282620003ad565b919050565b600067ffffffffffffffff82111562000420576200041f6200037e565b5b6200042b826200036d565b9050602081019050919050565b60005b83811015620004585780820151818401526020810190506200043b565b60008484015250505050565b60006200047b620004758462000402565b620003e3565b9050828152602081018484840111156200049a576200049962000368565b5b620004a784828562000438565b509392505050565b600082601f830112620004c757620004c662000363565b5b8151620004d984826020860162000464565b91505092915050565b600080600060608486031215620004fe57620004fd620002f4565b5b60006200050e868287016200034c565b935050602062000521868287016200034c565b925050604084015167ffffffffffffffff811115620005455762000544620002f9565b5b6200055386828701620004af565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005b057607f821691505b602082108103620005c657620005c562000568565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006307fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005f1565b6200063c8683620005f1565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000689620006836200067d8462000654565b6200065e565b62000654565b9050919050565b6000819050919050565b620006a58362000668565b620006bd620006b48262000690565b848454620005fe565b825550505050565b600090565b620006d4620006c5565b620006e18184846200069a565b505050565b5b818110156200070957620006fd600082620006ca565b600181019050620006e7565b5050565b601f82111562000758576200072281620005cc565b6200072d84620005e1565b810160208510156200073d578190505b620007556200074c85620005e1565b830182620006e6565b50505b505050565b600082821c905092915050565b60006200077d600019846008026200075d565b1980831691505092915050565b60006200079883836200076a565b9150826002028217905092915050565b620007b3826200055d565b67ffffffffffffffff811115620007cf57620007ce6200037e565b5b620007db825462000597565b620007e88282856200070d565b600060209050601f8311600181146200082057600084156200080b578287015190505b6200081785826200078a565b86555062000887565b601f1984166200083086620005cc565b60005b828110156200085a5784890151825560018201915060208501945060208101905062000833565b868310156200087a578489015162000876601f8916826200076a565b8355505b6001600288020188555050505b505050505050565b615269806200089f6000396000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c8063829e47e511610130578063d5391393116100b8578063e63ab1e91161007c578063e63ab1e91461066d578063e985e9c51461068b578063ee4525d5146106bb578063f242432a146106eb578063f5298aca1461070757610226565b8063d5391393146105a3578063d547741f146105c1578063d9d61655146105dd578063e345e0bc1461060d578063e62de01b1461063d57610226565b8063a0a124dd116100ff578063a0a124dd14610501578063a217fddf1461051d578063a22cb4651461053b578063a574cea414610557578063b537b2691461058757610226565b8063829e47e51461048f5780638456cb59146104ab5780638cb0a511146104b557806391d14854146104d157610226565b80632fecd4bb116101b35780635c975abb116101825780635c975abb146103ff578063605105f01461041d5780636b20c454146104395780637f34571014610455578063813f3fe91461047357610226565b80632fecd4bb1461037957806336568abe146103a95780633f4ba83a146103c55780634e1273f4146103cf57610226565b8063127217d6116101fa578063127217d6146102d75780631e9c2d67146102f3578063248a9ca3146103115780632eb2c2d6146103415780632f2ff15d1461035d57610226565b8062fdd58e1461022b57806301ffc9a71461025b57806302fe53051461028b5780630e89341c146102a7575b600080fd5b6102456004803603810190610240919061388d565b610723565b60405161025291906138dc565b60405180910390f35b6102756004803603810190610270919061394f565b61077d565b6040516102829190613997565b60405180910390f35b6102a560048036038101906102a09190613af8565b61078f565b005b6102c160048036038101906102bc9190613b41565b6107c6565b6040516102ce9190613bed565b60405180910390f35b6102f160048036038101906102ec9190613cb0565b61085a565b005b6102fb610b49565b60405161030891906138dc565b60405180910390f35b61032b60048036038101906103269190613d7d565b610b4f565b6040516103389190613db9565b60405180910390f35b61035b60048036038101906103569190613e9c565b610b6f565b005b61037760048036038101906103729190613f6b565b610c17565b005b610393600480360381019061038e919061388d565b610c39565b6040516103a091906138dc565b60405180910390f35b6103c360048036038101906103be9190613f6b565b610c94565b005b6103cd610d0f565b005b6103e960048036038101906103e4919061406e565b610d44565b6040516103f691906141a4565b60405180910390f35b610407610e53565b6040516104149190613997565b60405180910390f35b61043760048036038101906104329190613cb0565b610e6a565b005b610453600480360381019061044e91906141c6565b610edb565b005b61045d610f87565b60405161046a9190613db9565b60405180910390f35b61048d60048036038101906104889190614397565b610fab565b005b6104a960048036038101906104a49190614478565b611407565b005b6104b3611688565b005b6104cf60048036038101906104ca919061452b565b6116bd565b005b6104eb60048036038101906104e69190613f6b565b61192a565b6040516104f89190613997565b60405180910390f35b61051b6004803603810190610516919061457e565b611995565b005b6105256119e7565b6040516105329190613db9565b60405180910390f35b610555600480360381019061055091906145ab565b6119ee565b005b610571600480360381019061056c9190613b41565b611a04565b60405161057e9190613bed565b60405180910390f35b6105a1600480360381019061059c919061388d565b611aa9565b005b6105ab611ba8565b6040516105b89190613db9565b60405180910390f35b6105db60048036038101906105d69190613f6b565b611bcc565b005b6105f760048036038101906105f2919061457e565b611bee565b60405161060491906141a4565b60405180910390f35b610627600480360381019061062291906145eb565b611c85565b60405161063491906138dc565b60405180910390f35b6106576004803603810190610652919061388d565b611ce3565b60405161066491906138dc565b60405180910390f35b610675611d57565b6040516106829190613db9565b60405180910390f35b6106a560048036038101906106a0919061462b565b611d7b565b6040516106b29190613997565b60405180910390f35b6106d560048036038101906106d09190613b41565b611e0f565b6040516106e29190614729565b60405180910390f35b61070560048036038101906107009190613cb0565b611eb0565b005b610721600480360381019061071c919061474b565b611f58565b005b600080600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061078882612004565b9050919050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c6107b98161207e565b6107c282612092565b5050565b6060600280546107d5906147cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610801906147cd565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b50505050509050919050565b816006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156108ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e49061484a565b60405180910390fd5b816006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461094d9190614899565b925050819055506109618585858585611eb0565b816006600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109c191906148cd565b9250508190555060076000848152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083908060018154018082558091505060019003906000526020600020016000909190919091505560006006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610b0557610b0483866120a5565b5b7feeb0e676a4fccb21187462c64b95d0e58742fed59dbc3a8795d8e8ff8ccfba1683868685604051610b3a9493929190614910565b60405180910390a15050505050565b61271081565b600060036000838152602001908152602001600020600101549050919050565b6000610b7961243a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015610bbe5750610bbc8682611d7b565b155b15610c025780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610bf9929190614955565b60405180910390fd5b610c0f8686868686612442565b505050505050565b610c2082610b4f565b610c298161207e565b610c33838361253a565b50505050565b60006006600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610c9c61243a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d00576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d0a828261262c565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d398161207e565b610d4161271f565b50565b60608151835114610d9057815183516040517f5b059991000000000000000000000000000000000000000000000000000000008152600401610d8792919061497e565b60405180910390fd5b6000835167ffffffffffffffff811115610dad57610dac6139cd565b5b604051908082528060200260200182016040528015610ddb5781602001602082028036833780820191505090505b50905060005b8451811015610e4857610e18610e00828761278290919063ffffffff16565b610e13838761279690919063ffffffff16565b610723565b828281518110610e2b57610e2a6149a7565b5b60200260200101818152505080610e41906149d6565b9050610de1565b508091505092915050565b6000600460009054906101000a900460ff16905090565b6000610e768433611c85565b905082811015610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb290614a6a565b60405180910390fd5b610ec63385856127aa565b610ed3868686868661085a565b505050505050565b610ee361243a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610f2c5750610f2a83610f2561243a565b611d7b565b155b15610f7757610f3961243a565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610f6e929190614955565b60405180910390fd5b610f8283838361286b565b505050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610fd58161207e565b82156110f95760005b8660ff168160ff1610156110f757600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc878360ff16815181106110405761103f6149a7565b5b60200260200101516040518263ffffffff1660e01b815260040161106491906138dc565b602060405180830381865afa158015611081573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a59190614a9f565b6110e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110db90614b18565b60405180910390fd5b80806110ef90614b38565b915050610fde565b505b60008660ff1667ffffffffffffffff811115611118576111176139cd565b5b6040519080825280602002602001820160405280156111465781602001602082028036833780820191505090505b50905060005b8760ff168160ff16101561119257612710828260ff1681518110611173576111726149a7565b5b602002602001018181525050808061118a90614b38565b91505061114c565b5061119f888783866128ff565b60005b86518110156113fc578181815181106111be576111bd6149a7565b5b6020026020010151600660008984815181106111dd576111dc6149a7565b5b6020026020010151815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020878281518110611286576112856149a7565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915055600760008883815181106112cb576112ca6149a7565b5b60200260200101518152602001908152602001600020899080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550858181518110611355576113546149a7565b5b602002602001015160056000898481518110611374576113736149a7565b5b6020026020010151815260200190815260200160002090816113969190614d0d565b508681815181106113aa576113a96149a7565b5b60200260200101517f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c98a6040516113e19190614ddf565b60405180910390a280806113f4906149d6565b9150506111a2565b505050505050505050565b81156114e957600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc856040518263ffffffff1660e01b815260040161146891906138dc565b602060405180830381865afa158015611485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a99190614a9f565b6114e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114df90614b18565b60405180910390fd5b5b6114f7858561271084612985565b826005600086815260200190815260200160002090816115179190614d0d565b506127106006600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060076000858152602001908152602001600020859080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190915055837f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c9866040516116799190614ddf565b60405180910390a25050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6116b28161207e565b6116ba612a1e565b50565b806006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174790614a6a565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16036117be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b590614e46565b60405180910390fd5b6117c98260016119ee565b600060096000858152602001908152602001600020905060008160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540361188f5780600001839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b818160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16847f7a5c69a7c393db8f307d6fea9c8addb8c18644d1172a623792a4017298a1a5828460405161191c91906138dc565b60405180910390a350505050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6119a28161207e565b81600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b81565b611a006119f961243a565b8383612a81565b5050565b6060600560008381526020019081526020016000208054611a24906147cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611a50906147cd565b8015611a9d5780601f10611a7257610100808354040283529160200191611a9d565b820191906000526020600020905b815481529060010190602001808311611a8057829003601f168201915b50505050509050919050565b60006006600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411611b3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3390614ed8565b60405180910390fd5b6000611b488284611c85565b905060008111611b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8490614f44565b60405180910390fd5b611b988383836127aa565b611ba38360006119ee565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611bd582610b4f565b611bde8161207e565b611be8838361262c565b50505050565b6060600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611c7957602002820191906000526020600020905b815481526020019060010190808311611c65575b50505050509050919050565b60006009600084815260200190815260200160002060010160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061271060646006600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d459190614f64565b611d4f9190614fd5565b905092915050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060076000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611ea457602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611e5a575b50505050509050919050565b6000611eba61243a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015611eff5750611efd8682611d7b565b155b15611f435780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611f3a929190614955565b60405180910390fd5b611f508686868686612bf1565b505050505050565b611f6061243a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611fa95750611fa783611fa261243a565b611d7b565b155b15611ff457611fb661243a565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611feb929190614955565b60405180910390fd5b611fff838383612cfc565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612077575061207682612da3565b5b9050919050565b61208f8161208a61243a565b612e85565b50565b80600290816120a19190614d0d565b5050565b600060076000848152602001908152602001600020905060008180549050905060005b6001826120d59190614899565b811015612217578373ffffffffffffffffffffffffffffffffffffffff16838281548110612106576121056149a7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612204578260018361215a9190614899565b8154811061216b5761216a6149a7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166007600087815260200190815260200160002082815481106121bb576121ba6149a7565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b808061220f906149d6565b9150506120c8565b506007600085815260200190815260200160002080548061223b5761223a615006565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556000600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008180549050905060005b6001826122cc9190614899565b81101561239457868382815481106122e7576122e66149a7565b5b90600052602060002001540361238157826001836123059190614899565b81548110612316576123156149a7565b5b9060005260206000200154600860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110612372576123716149a7565b5b90600052602060002001819055505b808061238c906149d6565b9150506122bf565b50600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806123e4576123e3615006565b5b60019003818190600052602060002001600090559055857fb313f5a88a5d21dd54119393bab2baac6503d2bc1368bd7af3281737aefe94478660405161242a9190614ddf565b60405180910390a2505050505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036124b45760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016124ab9190614ddf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036125265760006040517f01a8351400000000000000000000000000000000000000000000000000000000815260040161251d9190614ddf565b60405180910390fd5b6125338585858585612ed6565b5050505050565b6000612546838361192a565b6126215760016003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506125be61243a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050612626565b600090505b92915050565b6000612638838361192a565b156127145760006003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506126b161243a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050612719565b600090505b92915050565b612727612f88565b6000600460006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61276b61243a565b6040516127789190614ddf565b60405180910390a1565b600060208202602084010151905092915050565b600060208202602084010151905092915050565b60006127b68385611c85565b9050818110156127fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f290614a6a565b60405180910390fd5b816009600085815260200190815260200160002060010160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461285e9190614899565b9250508190555050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128dd5760006040517f01a835140000000000000000000000000000000000000000000000000000000081526004016128d49190614ddf565b60405180910390fd5b6128fa836000848460405180602001604052806000815250612ed6565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129715760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129689190614ddf565b60405180910390fd5b61297f600085858585612ed6565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129f75760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129ee9190614ddf565b60405180910390fd5b600080612a048585612fc8565b91509150612a16600087848487612ed6565b505050505050565b612a26612ff8565b6001600460006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a6a61243a565b604051612a779190614ddf565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612af35760006040517fced3e100000000000000000000000000000000000000000000000000000000008152600401612aea9190614ddf565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612be49190613997565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c635760006040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612c5a9190614ddf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612cd55760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612ccc9190614ddf565b60405180910390fd5b600080612ce28585612fc8565b91509150612cf38787848487612ed6565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d6e5760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612d659190614ddf565b60405180910390fd5b600080612d7b8484612fc8565b91509150612d9c856000848460405180602001604052806000815250612ed6565b5050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e6e57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e7e5750612e7d82613039565b5b9050919050565b612e8f828261192a565b612ed25780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401612ec9929190615035565b60405180910390fd5b5050565b612ee2858585856130a3565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612f81576000612f2061243a565b90506001845103612f70576000612f4160008661279690919063ffffffff16565b90506000612f5960008661279690919063ffffffff16565b9050612f698389898585896130b5565b5050612f7f565b612f7e818787878787613269565b5b505b5050505050565b612f90610e53565b612fc6576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b613000610e53565b15613037576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6130af8484848461341d565b50505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613261578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016131169594939291906150b3565b6020604051808303816000875af192505050801561315257506040513d601f19601f8201168201806040525081019061314f9190615122565b60015b6131d6573d8060008114613182576040519150601f19603f3d011682016040523d82523d6000602084013e613187565b606091505b5060008151036131ce57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016131c59190614ddf565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461325f57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016132569190614ddf565b60405180910390fd5b505b505050505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613415578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016132ca95949392919061514f565b6020604051808303816000875af192505050801561330657506040513d601f19601f820116820180604052508101906133039190615122565b60015b61338a573d8060008114613336576040519150601f19603f3d011682016040523d82523d6000602084013e61333b565b606091505b50600081510361338257846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016133799190614ddf565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461341357846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161340a9190614ddf565b60405180910390fd5b505b505050505050565b613425612ff8565b61343184848484613437565b50505050565b805182511461348157815181516040517f5b05999100000000000000000000000000000000000000000000000000000000815260040161347892919061497e565b60405180910390fd5b600061348b61243a565b905060005b83518110156136a05760006134ae828661279690919063ffffffff16565b905060006134c5838661279690919063ffffffff16565b9050600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146135f257600080600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561359a57888183856040517f03dee4c500000000000000000000000000000000000000000000000000000000815260040161359194939291906151b7565b60405180910390fd5b81810360008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461368d578060008084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461368591906148cd565b925050819055505b505080613699906149d6565b9050613490565b50600183510361375f5760006136c060008561279690919063ffffffff16565b905060006136d860008561279690919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62858560405161375092919061497e565b60405180910390a450506137de565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516137d59291906151fc565b60405180910390a45b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613824826137f9565b9050919050565b61383481613819565b811461383f57600080fd5b50565b6000813590506138518161382b565b92915050565b6000819050919050565b61386a81613857565b811461387557600080fd5b50565b60008135905061388781613861565b92915050565b600080604083850312156138a4576138a36137ef565b5b60006138b285828601613842565b92505060206138c385828601613878565b9150509250929050565b6138d681613857565b82525050565b60006020820190506138f160008301846138cd565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61392c816138f7565b811461393757600080fd5b50565b60008135905061394981613923565b92915050565b600060208284031215613965576139646137ef565b5b60006139738482850161393a565b91505092915050565b60008115159050919050565b6139918161397c565b82525050565b60006020820190506139ac6000830184613988565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a05826139bc565b810181811067ffffffffffffffff82111715613a2457613a236139cd565b5b80604052505050565b6000613a376137e5565b9050613a4382826139fc565b919050565b600067ffffffffffffffff821115613a6357613a626139cd565b5b613a6c826139bc565b9050602081019050919050565b82818337600083830152505050565b6000613a9b613a9684613a48565b613a2d565b905082815260208101848484011115613ab757613ab66139b7565b5b613ac2848285613a79565b509392505050565b600082601f830112613adf57613ade6139b2565b5b8135613aef848260208601613a88565b91505092915050565b600060208284031215613b0e57613b0d6137ef565b5b600082013567ffffffffffffffff811115613b2c57613b2b6137f4565b5b613b3884828501613aca565b91505092915050565b600060208284031215613b5757613b566137ef565b5b6000613b6584828501613878565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ba8578082015181840152602081019050613b8d565b60008484015250505050565b6000613bbf82613b6e565b613bc98185613b79565b9350613bd9818560208601613b8a565b613be2816139bc565b840191505092915050565b60006020820190508181036000830152613c078184613bb4565b905092915050565b600067ffffffffffffffff821115613c2a57613c296139cd565b5b613c33826139bc565b9050602081019050919050565b6000613c53613c4e84613c0f565b613a2d565b905082815260208101848484011115613c6f57613c6e6139b7565b5b613c7a848285613a79565b509392505050565b600082601f830112613c9757613c966139b2565b5b8135613ca7848260208601613c40565b91505092915050565b600080600080600060a08688031215613ccc57613ccb6137ef565b5b6000613cda88828901613842565b9550506020613ceb88828901613842565b9450506040613cfc88828901613878565b9350506060613d0d88828901613878565b925050608086013567ffffffffffffffff811115613d2e57613d2d6137f4565b5b613d3a88828901613c82565b9150509295509295909350565b6000819050919050565b613d5a81613d47565b8114613d6557600080fd5b50565b600081359050613d7781613d51565b92915050565b600060208284031215613d9357613d926137ef565b5b6000613da184828501613d68565b91505092915050565b613db381613d47565b82525050565b6000602082019050613dce6000830184613daa565b92915050565b600067ffffffffffffffff821115613def57613dee6139cd565b5b602082029050602081019050919050565b600080fd5b6000613e18613e1384613dd4565b613a2d565b90508083825260208201905060208402830185811115613e3b57613e3a613e00565b5b835b81811015613e645780613e508882613878565b845260208401935050602081019050613e3d565b5050509392505050565b600082601f830112613e8357613e826139b2565b5b8135613e93848260208601613e05565b91505092915050565b600080600080600060a08688031215613eb857613eb76137ef565b5b6000613ec688828901613842565b9550506020613ed788828901613842565b945050604086013567ffffffffffffffff811115613ef857613ef76137f4565b5b613f0488828901613e6e565b935050606086013567ffffffffffffffff811115613f2557613f246137f4565b5b613f3188828901613e6e565b925050608086013567ffffffffffffffff811115613f5257613f516137f4565b5b613f5e88828901613c82565b9150509295509295909350565b60008060408385031215613f8257613f816137ef565b5b6000613f9085828601613d68565b9250506020613fa185828601613842565b9150509250929050565b600067ffffffffffffffff821115613fc657613fc56139cd565b5b602082029050602081019050919050565b6000613fea613fe584613fab565b613a2d565b9050808382526020820190506020840283018581111561400d5761400c613e00565b5b835b8181101561403657806140228882613842565b84526020840193505060208101905061400f565b5050509392505050565b600082601f830112614055576140546139b2565b5b8135614065848260208601613fd7565b91505092915050565b60008060408385031215614085576140846137ef565b5b600083013567ffffffffffffffff8111156140a3576140a26137f4565b5b6140af85828601614040565b925050602083013567ffffffffffffffff8111156140d0576140cf6137f4565b5b6140dc85828601613e6e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61411b81613857565b82525050565b600061412d8383614112565b60208301905092915050565b6000602082019050919050565b6000614151826140e6565b61415b81856140f1565b935061416683614102565b8060005b8381101561419757815161417e8882614121565b975061418983614139565b92505060018101905061416a565b5085935050505092915050565b600060208201905081810360008301526141be8184614146565b905092915050565b6000806000606084860312156141df576141de6137ef565b5b60006141ed86828701613842565b935050602084013567ffffffffffffffff81111561420e5761420d6137f4565b5b61421a86828701613e6e565b925050604084013567ffffffffffffffff81111561423b5761423a6137f4565b5b61424786828701613e6e565b9150509250925092565b600060ff82169050919050565b61426781614251565b811461427257600080fd5b50565b6000813590506142848161425e565b92915050565b600067ffffffffffffffff8211156142a5576142a46139cd565b5b602082029050602081019050919050565b60006142c96142c48461428a565b613a2d565b905080838252602082019050602084028301858111156142ec576142eb613e00565b5b835b8181101561433357803567ffffffffffffffff811115614311576143106139b2565b5b80860161431e8982613aca565b855260208501945050506020810190506142ee565b5050509392505050565b600082601f830112614352576143516139b2565b5b81356143628482602086016142b6565b91505092915050565b6143748161397c565b811461437f57600080fd5b50565b6000813590506143918161436b565b92915050565b60008060008060008060c087890312156143b4576143b36137ef565b5b60006143c289828a01613842565b96505060206143d389828a01614275565b955050604087013567ffffffffffffffff8111156143f4576143f36137f4565b5b61440089828a01613e6e565b945050606087013567ffffffffffffffff811115614421576144206137f4565b5b61442d89828a0161433d565b935050608061443e89828a01614382565b92505060a087013567ffffffffffffffff81111561445f5761445e6137f4565b5b61446b89828a01613c82565b9150509295509295509295565b600080600080600060a08688031215614494576144936137ef565b5b60006144a288828901613842565b95505060206144b388828901613878565b945050604086013567ffffffffffffffff8111156144d4576144d36137f4565b5b6144e088828901613aca565b93505060606144f188828901614382565b925050608086013567ffffffffffffffff811115614512576145116137f4565b5b61451e88828901613c82565b9150509295509295909350565b600080600060608486031215614544576145436137ef565b5b600061455286828701613878565b935050602061456386828701613842565b925050604061457486828701613878565b9150509250925092565b600060208284031215614594576145936137ef565b5b60006145a284828501613842565b91505092915050565b600080604083850312156145c2576145c16137ef565b5b60006145d085828601613842565b92505060206145e185828601614382565b9150509250929050565b60008060408385031215614602576146016137ef565b5b600061461085828601613878565b925050602061462185828601613842565b9150509250929050565b60008060408385031215614642576146416137ef565b5b600061465085828601613842565b925050602061466185828601613842565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6146a081613819565b82525050565b60006146b28383614697565b60208301905092915050565b6000602082019050919050565b60006146d68261466b565b6146e08185614676565b93506146eb83614687565b8060005b8381101561471c57815161470388826146a6565b975061470e836146be565b9250506001810190506146ef565b5085935050505092915050565b6000602082019050818103600083015261474381846146cb565b905092915050565b600080600060608486031215614764576147636137ef565b5b600061477286828701613842565b935050602061478386828701613878565b925050604061479486828701613878565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147e557607f821691505b6020821081036147f8576147f761479e565b5b50919050565b7f496e73756666696369656e74206f776e6572736869702062616c616e63650000600082015250565b6000614834601e83613b79565b915061483f826147fe565b602082019050919050565b6000602082019050818103600083015261486381614827565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006148a482613857565b91506148af83613857565b92508282039050818111156148c7576148c661486a565b5b92915050565b60006148d882613857565b91506148e383613857565b92508282019050808211156148fb576148fa61486a565b5b92915050565b61490a81613819565b82525050565b600060808201905061492560008301876138cd565b6149326020830186614901565b61493f6040830185614901565b61494c60608301846138cd565b95945050505050565b600060408201905061496a6000830185614901565b6149776020830184614901565b9392505050565b600060408201905061499360008301856138cd565b6149a060208301846138cd565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006149e182613857565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a1357614a1261486a565b5b600182019050919050565b7f496e73756666696369656e7420616c6c6f77616e636500000000000000000000600082015250565b6000614a54601683613b79565b9150614a5f82614a1e565b602082019050919050565b60006020820190508181036000830152614a8381614a47565b9050919050565b600081519050614a998161436b565b92915050565b600060208284031215614ab557614ab46137ef565b5b6000614ac384828501614a8a565b91505092915050565b7f4173736574206973206e6f742072657365727665642079657400000000000000600082015250565b6000614b02601983613b79565b9150614b0d82614acc565b602082019050919050565b60006020820190508181036000830152614b3181614af5565b9050919050565b6000614b4382614251565b915060ff8203614b5657614b5561486a565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614bc37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b86565b614bcd8683614b86565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614c0a614c05614c0084613857565b614be5565b613857565b9050919050565b6000819050919050565b614c2483614bef565b614c38614c3082614c11565b848454614b93565b825550505050565b600090565b614c4d614c40565b614c58818484614c1b565b505050565b5b81811015614c7c57614c71600082614c45565b600181019050614c5e565b5050565b601f821115614cc157614c9281614b61565b614c9b84614b76565b81016020851015614caa578190505b614cbe614cb685614b76565b830182614c5d565b50505b505050565b600082821c905092915050565b6000614ce460001984600802614cc6565b1980831691505092915050565b6000614cfd8383614cd3565b9150826002028217905092915050565b614d1682613b6e565b67ffffffffffffffff811115614d2f57614d2e6139cd565b5b614d3982546147cd565b614d44828285614c80565b600060209050601f831160018114614d775760008415614d65578287015190505b614d6f8582614cf1565b865550614dd7565b601f198416614d8586614b61565b60005b82811015614dad57848901518255600182019150602085019450602081019050614d88565b86831015614dca5784890151614dc6601f891682614cd3565b8355505b6001600288020188555050505b505050505050565b6000602082019050614df46000830184614901565b92915050565b7f417070726f76616c20746f2063757272656e74206f776e657200000000000000600082015250565b6000614e30601983613b79565b9150614e3b82614dfa565b602082019050919050565b60006020820190508181036000830152614e5f81614e23565b9050919050565b7f496e76616c6964206f776e65727368697020616d6f756e7420746f2072656d6f60008201527f766520617070726f76616c000000000000000000000000000000000000000000602082015250565b6000614ec2602b83613b79565b9150614ecd82614e66565b604082019050919050565b60006020820190508181036000830152614ef181614eb5565b9050919050565b7f496e73756666696369656e74206f70657261746f7220616c6c6f77616e636500600082015250565b6000614f2e601f83613b79565b9150614f3982614ef8565b602082019050919050565b60006020820190508181036000830152614f5d81614f21565b9050919050565b6000614f6f82613857565b9150614f7a83613857565b9250828202614f8881613857565b91508282048414831517614f9f57614f9e61486a565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614fe082613857565b9150614feb83613857565b925082614ffb57614ffa614fa6565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060408201905061504a6000830185614901565b6150576020830184613daa565b9392505050565b600081519050919050565b600082825260208201905092915050565b60006150858261505e565b61508f8185615069565b935061509f818560208601613b8a565b6150a8816139bc565b840191505092915050565b600060a0820190506150c86000830188614901565b6150d56020830187614901565b6150e260408301866138cd565b6150ef60608301856138cd565b8181036080830152615101818461507a565b90509695505050505050565b60008151905061511c81613923565b92915050565b600060208284031215615138576151376137ef565b5b60006151468482850161510d565b91505092915050565b600060a0820190506151646000830188614901565b6151716020830187614901565b81810360408301526151838186614146565b905081810360608301526151978185614146565b905081810360808301526151ab818461507a565b90509695505050505050565b60006080820190506151cc6000830187614901565b6151d960208301866138cd565b6151e660408301856138cd565b6151f360608301846138cd565b95945050505050565b600060408201905081810360008301526152168185614146565b9050818103602083015261522a8184614146565b9050939250505056fea26469706673582212204702439fa0ab9b36950458bc9192f1cb6b37ca0ea2167cc6f44bbeceba124e7164736f6c63430008140033",QS0="0x608060405234801561001057600080fd5b50600436106102265760003560e01c8063829e47e511610130578063d5391393116100b8578063e63ab1e91161007c578063e63ab1e91461066d578063e985e9c51461068b578063ee4525d5146106bb578063f242432a146106eb578063f5298aca1461070757610226565b8063d5391393146105a3578063d547741f146105c1578063d9d61655146105dd578063e345e0bc1461060d578063e62de01b1461063d57610226565b8063a0a124dd116100ff578063a0a124dd14610501578063a217fddf1461051d578063a22cb4651461053b578063a574cea414610557578063b537b2691461058757610226565b8063829e47e51461048f5780638456cb59146104ab5780638cb0a511146104b557806391d14854146104d157610226565b80632fecd4bb116101b35780635c975abb116101825780635c975abb146103ff578063605105f01461041d5780636b20c454146104395780637f34571014610455578063813f3fe91461047357610226565b80632fecd4bb1461037957806336568abe146103a95780633f4ba83a146103c55780634e1273f4146103cf57610226565b8063127217d6116101fa578063127217d6146102d75780631e9c2d67146102f3578063248a9ca3146103115780632eb2c2d6146103415780632f2ff15d1461035d57610226565b8062fdd58e1461022b57806301ffc9a71461025b57806302fe53051461028b5780630e89341c146102a7575b600080fd5b6102456004803603810190610240919061388d565b610723565b60405161025291906138dc565b60405180910390f35b6102756004803603810190610270919061394f565b61077d565b6040516102829190613997565b60405180910390f35b6102a560048036038101906102a09190613af8565b61078f565b005b6102c160048036038101906102bc9190613b41565b6107c6565b6040516102ce9190613bed565b60405180910390f35b6102f160048036038101906102ec9190613cb0565b61085a565b005b6102fb610b49565b60405161030891906138dc565b60405180910390f35b61032b60048036038101906103269190613d7d565b610b4f565b6040516103389190613db9565b60405180910390f35b61035b60048036038101906103569190613e9c565b610b6f565b005b61037760048036038101906103729190613f6b565b610c17565b005b610393600480360381019061038e919061388d565b610c39565b6040516103a091906138dc565b60405180910390f35b6103c360048036038101906103be9190613f6b565b610c94565b005b6103cd610d0f565b005b6103e960048036038101906103e4919061406e565b610d44565b6040516103f691906141a4565b60405180910390f35b610407610e53565b6040516104149190613997565b60405180910390f35b61043760048036038101906104329190613cb0565b610e6a565b005b610453600480360381019061044e91906141c6565b610edb565b005b61045d610f87565b60405161046a9190613db9565b60405180910390f35b61048d60048036038101906104889190614397565b610fab565b005b6104a960048036038101906104a49190614478565b611407565b005b6104b3611688565b005b6104cf60048036038101906104ca919061452b565b6116bd565b005b6104eb60048036038101906104e69190613f6b565b61192a565b6040516104f89190613997565b60405180910390f35b61051b6004803603810190610516919061457e565b611995565b005b6105256119e7565b6040516105329190613db9565b60405180910390f35b610555600480360381019061055091906145ab565b6119ee565b005b610571600480360381019061056c9190613b41565b611a04565b60405161057e9190613bed565b60405180910390f35b6105a1600480360381019061059c919061388d565b611aa9565b005b6105ab611ba8565b6040516105b89190613db9565b60405180910390f35b6105db60048036038101906105d69190613f6b565b611bcc565b005b6105f760048036038101906105f2919061457e565b611bee565b60405161060491906141a4565b60405180910390f35b610627600480360381019061062291906145eb565b611c85565b60405161063491906138dc565b60405180910390f35b6106576004803603810190610652919061388d565b611ce3565b60405161066491906138dc565b60405180910390f35b610675611d57565b6040516106829190613db9565b60405180910390f35b6106a560048036038101906106a0919061462b565b611d7b565b6040516106b29190613997565b60405180910390f35b6106d560048036038101906106d09190613b41565b611e0f565b6040516106e29190614729565b60405180910390f35b61070560048036038101906107009190613cb0565b611eb0565b005b610721600480360381019061071c919061474b565b611f58565b005b600080600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061078882612004565b9050919050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c6107b98161207e565b6107c282612092565b5050565b6060600280546107d5906147cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610801906147cd565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b50505050509050919050565b816006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156108ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e49061484a565b60405180910390fd5b816006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461094d9190614899565b925050819055506109618585858585611eb0565b816006600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109c191906148cd565b9250508190555060076000848152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083908060018154018082558091505060019003906000526020600020016000909190919091505560006006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610b0557610b0483866120a5565b5b7feeb0e676a4fccb21187462c64b95d0e58742fed59dbc3a8795d8e8ff8ccfba1683868685604051610b3a9493929190614910565b60405180910390a15050505050565b61271081565b600060036000838152602001908152602001600020600101549050919050565b6000610b7961243a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015610bbe5750610bbc8682611d7b565b155b15610c025780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610bf9929190614955565b60405180910390fd5b610c0f8686868686612442565b505050505050565b610c2082610b4f565b610c298161207e565b610c33838361253a565b50505050565b60006006600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610c9c61243a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d00576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d0a828261262c565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d398161207e565b610d4161271f565b50565b60608151835114610d9057815183516040517f5b059991000000000000000000000000000000000000000000000000000000008152600401610d8792919061497e565b60405180910390fd5b6000835167ffffffffffffffff811115610dad57610dac6139cd565b5b604051908082528060200260200182016040528015610ddb5781602001602082028036833780820191505090505b50905060005b8451811015610e4857610e18610e00828761278290919063ffffffff16565b610e13838761279690919063ffffffff16565b610723565b828281518110610e2b57610e2a6149a7565b5b60200260200101818152505080610e41906149d6565b9050610de1565b508091505092915050565b6000600460009054906101000a900460ff16905090565b6000610e768433611c85565b905082811015610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb290614a6a565b60405180910390fd5b610ec63385856127aa565b610ed3868686868661085a565b505050505050565b610ee361243a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610f2c5750610f2a83610f2561243a565b611d7b565b155b15610f7757610f3961243a565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610f6e929190614955565b60405180910390fd5b610f8283838361286b565b505050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610fd58161207e565b82156110f95760005b8660ff168160ff1610156110f757600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc878360ff16815181106110405761103f6149a7565b5b60200260200101516040518263ffffffff1660e01b815260040161106491906138dc565b602060405180830381865afa158015611081573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a59190614a9f565b6110e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110db90614b18565b60405180910390fd5b80806110ef90614b38565b915050610fde565b505b60008660ff1667ffffffffffffffff811115611118576111176139cd565b5b6040519080825280602002602001820160405280156111465781602001602082028036833780820191505090505b50905060005b8760ff168160ff16101561119257612710828260ff1681518110611173576111726149a7565b5b602002602001018181525050808061118a90614b38565b91505061114c565b5061119f888783866128ff565b60005b86518110156113fc578181815181106111be576111bd6149a7565b5b6020026020010151600660008984815181106111dd576111dc6149a7565b5b6020026020010151815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020878281518110611286576112856149a7565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915055600760008883815181106112cb576112ca6149a7565b5b60200260200101518152602001908152602001600020899080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550858181518110611355576113546149a7565b5b602002602001015160056000898481518110611374576113736149a7565b5b6020026020010151815260200190815260200160002090816113969190614d0d565b508681815181106113aa576113a96149a7565b5b60200260200101517f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c98a6040516113e19190614ddf565b60405180910390a280806113f4906149d6565b9150506111a2565b505050505050505050565b81156114e957600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc856040518263ffffffff1660e01b815260040161146891906138dc565b602060405180830381865afa158015611485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a99190614a9f565b6114e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114df90614b18565b60405180910390fd5b5b6114f7858561271084612985565b826005600086815260200190815260200160002090816115179190614d0d565b506127106006600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060076000858152602001908152602001600020859080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190915055837f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c9866040516116799190614ddf565b60405180910390a25050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6116b28161207e565b6116ba612a1e565b50565b806006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174790614a6a565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16036117be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b590614e46565b60405180910390fd5b6117c98260016119ee565b600060096000858152602001908152602001600020905060008160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540361188f5780600001839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b818160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16847f7a5c69a7c393db8f307d6fea9c8addb8c18644d1172a623792a4017298a1a5828460405161191c91906138dc565b60405180910390a350505050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6119a28161207e565b81600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b81565b611a006119f961243a565b8383612a81565b5050565b6060600560008381526020019081526020016000208054611a24906147cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611a50906147cd565b8015611a9d5780601f10611a7257610100808354040283529160200191611a9d565b820191906000526020600020905b815481529060010190602001808311611a8057829003601f168201915b50505050509050919050565b60006006600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411611b3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3390614ed8565b60405180910390fd5b6000611b488284611c85565b905060008111611b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8490614f44565b60405180910390fd5b611b988383836127aa565b611ba38360006119ee565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611bd582610b4f565b611bde8161207e565b611be8838361262c565b50505050565b6060600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611c7957602002820191906000526020600020905b815481526020019060010190808311611c65575b50505050509050919050565b60006009600084815260200190815260200160002060010160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061271060646006600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d459190614f64565b611d4f9190614fd5565b905092915050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060076000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611ea457602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611e5a575b50505050509050919050565b6000611eba61243a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015611eff5750611efd8682611d7b565b155b15611f435780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611f3a929190614955565b60405180910390fd5b611f508686868686612bf1565b505050505050565b611f6061243a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611fa95750611fa783611fa261243a565b611d7b565b155b15611ff457611fb661243a565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611feb929190614955565b60405180910390fd5b611fff838383612cfc565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612077575061207682612da3565b5b9050919050565b61208f8161208a61243a565b612e85565b50565b80600290816120a19190614d0d565b5050565b600060076000848152602001908152602001600020905060008180549050905060005b6001826120d59190614899565b811015612217578373ffffffffffffffffffffffffffffffffffffffff16838281548110612106576121056149a7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612204578260018361215a9190614899565b8154811061216b5761216a6149a7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166007600087815260200190815260200160002082815481106121bb576121ba6149a7565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b808061220f906149d6565b9150506120c8565b506007600085815260200190815260200160002080548061223b5761223a615006565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556000600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008180549050905060005b6001826122cc9190614899565b81101561239457868382815481106122e7576122e66149a7565b5b90600052602060002001540361238157826001836123059190614899565b81548110612316576123156149a7565b5b9060005260206000200154600860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110612372576123716149a7565b5b90600052602060002001819055505b808061238c906149d6565b9150506122bf565b50600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806123e4576123e3615006565b5b60019003818190600052602060002001600090559055857fb313f5a88a5d21dd54119393bab2baac6503d2bc1368bd7af3281737aefe94478660405161242a9190614ddf565b60405180910390a2505050505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036124b45760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016124ab9190614ddf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036125265760006040517f01a8351400000000000000000000000000000000000000000000000000000000815260040161251d9190614ddf565b60405180910390fd5b6125338585858585612ed6565b5050505050565b6000612546838361192a565b6126215760016003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506125be61243a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050612626565b600090505b92915050565b6000612638838361192a565b156127145760006003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506126b161243a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050612719565b600090505b92915050565b612727612f88565b6000600460006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61276b61243a565b6040516127789190614ddf565b60405180910390a1565b600060208202602084010151905092915050565b600060208202602084010151905092915050565b60006127b68385611c85565b9050818110156127fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f290614a6a565b60405180910390fd5b816009600085815260200190815260200160002060010160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461285e9190614899565b9250508190555050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128dd5760006040517f01a835140000000000000000000000000000000000000000000000000000000081526004016128d49190614ddf565b60405180910390fd5b6128fa836000848460405180602001604052806000815250612ed6565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129715760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129689190614ddf565b60405180910390fd5b61297f600085858585612ed6565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129f75760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129ee9190614ddf565b60405180910390fd5b600080612a048585612fc8565b91509150612a16600087848487612ed6565b505050505050565b612a26612ff8565b6001600460006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a6a61243a565b604051612a779190614ddf565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612af35760006040517fced3e100000000000000000000000000000000000000000000000000000000008152600401612aea9190614ddf565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612be49190613997565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c635760006040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612c5a9190614ddf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612cd55760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612ccc9190614ddf565b60405180910390fd5b600080612ce28585612fc8565b91509150612cf38787848487612ed6565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d6e5760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612d659190614ddf565b60405180910390fd5b600080612d7b8484612fc8565b91509150612d9c856000848460405180602001604052806000815250612ed6565b5050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e6e57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e7e5750612e7d82613039565b5b9050919050565b612e8f828261192a565b612ed25780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401612ec9929190615035565b60405180910390fd5b5050565b612ee2858585856130a3565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612f81576000612f2061243a565b90506001845103612f70576000612f4160008661279690919063ffffffff16565b90506000612f5960008661279690919063ffffffff16565b9050612f698389898585896130b5565b5050612f7f565b612f7e818787878787613269565b5b505b5050505050565b612f90610e53565b612fc6576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b613000610e53565b15613037576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6130af8484848461341d565b50505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613261578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016131169594939291906150b3565b6020604051808303816000875af192505050801561315257506040513d601f19601f8201168201806040525081019061314f9190615122565b60015b6131d6573d8060008114613182576040519150601f19603f3d011682016040523d82523d6000602084013e613187565b606091505b5060008151036131ce57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016131c59190614ddf565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461325f57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016132569190614ddf565b60405180910390fd5b505b505050505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613415578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016132ca95949392919061514f565b6020604051808303816000875af192505050801561330657506040513d601f19601f820116820180604052508101906133039190615122565b60015b61338a573d8060008114613336576040519150601f19603f3d011682016040523d82523d6000602084013e61333b565b606091505b50600081510361338257846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016133799190614ddf565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461341357846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161340a9190614ddf565b60405180910390fd5b505b505050505050565b613425612ff8565b61343184848484613437565b50505050565b805182511461348157815181516040517f5b05999100000000000000000000000000000000000000000000000000000000815260040161347892919061497e565b60405180910390fd5b600061348b61243a565b905060005b83518110156136a05760006134ae828661279690919063ffffffff16565b905060006134c5838661279690919063ffffffff16565b9050600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146135f257600080600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561359a57888183856040517f03dee4c500000000000000000000000000000000000000000000000000000000815260040161359194939291906151b7565b60405180910390fd5b81810360008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461368d578060008084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461368591906148cd565b925050819055505b505080613699906149d6565b9050613490565b50600183510361375f5760006136c060008561279690919063ffffffff16565b905060006136d860008561279690919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62858560405161375092919061497e565b60405180910390a450506137de565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516137d59291906151fc565b60405180910390a45b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613824826137f9565b9050919050565b61383481613819565b811461383f57600080fd5b50565b6000813590506138518161382b565b92915050565b6000819050919050565b61386a81613857565b811461387557600080fd5b50565b60008135905061388781613861565b92915050565b600080604083850312156138a4576138a36137ef565b5b60006138b285828601613842565b92505060206138c385828601613878565b9150509250929050565b6138d681613857565b82525050565b60006020820190506138f160008301846138cd565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61392c816138f7565b811461393757600080fd5b50565b60008135905061394981613923565b92915050565b600060208284031215613965576139646137ef565b5b60006139738482850161393a565b91505092915050565b60008115159050919050565b6139918161397c565b82525050565b60006020820190506139ac6000830184613988565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a05826139bc565b810181811067ffffffffffffffff82111715613a2457613a236139cd565b5b80604052505050565b6000613a376137e5565b9050613a4382826139fc565b919050565b600067ffffffffffffffff821115613a6357613a626139cd565b5b613a6c826139bc565b9050602081019050919050565b82818337600083830152505050565b6000613a9b613a9684613a48565b613a2d565b905082815260208101848484011115613ab757613ab66139b7565b5b613ac2848285613a79565b509392505050565b600082601f830112613adf57613ade6139b2565b5b8135613aef848260208601613a88565b91505092915050565b600060208284031215613b0e57613b0d6137ef565b5b600082013567ffffffffffffffff811115613b2c57613b2b6137f4565b5b613b3884828501613aca565b91505092915050565b600060208284031215613b5757613b566137ef565b5b6000613b6584828501613878565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ba8578082015181840152602081019050613b8d565b60008484015250505050565b6000613bbf82613b6e565b613bc98185613b79565b9350613bd9818560208601613b8a565b613be2816139bc565b840191505092915050565b60006020820190508181036000830152613c078184613bb4565b905092915050565b600067ffffffffffffffff821115613c2a57613c296139cd565b5b613c33826139bc565b9050602081019050919050565b6000613c53613c4e84613c0f565b613a2d565b905082815260208101848484011115613c6f57613c6e6139b7565b5b613c7a848285613a79565b509392505050565b600082601f830112613c9757613c966139b2565b5b8135613ca7848260208601613c40565b91505092915050565b600080600080600060a08688031215613ccc57613ccb6137ef565b5b6000613cda88828901613842565b9550506020613ceb88828901613842565b9450506040613cfc88828901613878565b9350506060613d0d88828901613878565b925050608086013567ffffffffffffffff811115613d2e57613d2d6137f4565b5b613d3a88828901613c82565b9150509295509295909350565b6000819050919050565b613d5a81613d47565b8114613d6557600080fd5b50565b600081359050613d7781613d51565b92915050565b600060208284031215613d9357613d926137ef565b5b6000613da184828501613d68565b91505092915050565b613db381613d47565b82525050565b6000602082019050613dce6000830184613daa565b92915050565b600067ffffffffffffffff821115613def57613dee6139cd565b5b602082029050602081019050919050565b600080fd5b6000613e18613e1384613dd4565b613a2d565b90508083825260208201905060208402830185811115613e3b57613e3a613e00565b5b835b81811015613e645780613e508882613878565b845260208401935050602081019050613e3d565b5050509392505050565b600082601f830112613e8357613e826139b2565b5b8135613e93848260208601613e05565b91505092915050565b600080600080600060a08688031215613eb857613eb76137ef565b5b6000613ec688828901613842565b9550506020613ed788828901613842565b945050604086013567ffffffffffffffff811115613ef857613ef76137f4565b5b613f0488828901613e6e565b935050606086013567ffffffffffffffff811115613f2557613f246137f4565b5b613f3188828901613e6e565b925050608086013567ffffffffffffffff811115613f5257613f516137f4565b5b613f5e88828901613c82565b9150509295509295909350565b60008060408385031215613f8257613f816137ef565b5b6000613f9085828601613d68565b9250506020613fa185828601613842565b9150509250929050565b600067ffffffffffffffff821115613fc657613fc56139cd565b5b602082029050602081019050919050565b6000613fea613fe584613fab565b613a2d565b9050808382526020820190506020840283018581111561400d5761400c613e00565b5b835b8181101561403657806140228882613842565b84526020840193505060208101905061400f565b5050509392505050565b600082601f830112614055576140546139b2565b5b8135614065848260208601613fd7565b91505092915050565b60008060408385031215614085576140846137ef565b5b600083013567ffffffffffffffff8111156140a3576140a26137f4565b5b6140af85828601614040565b925050602083013567ffffffffffffffff8111156140d0576140cf6137f4565b5b6140dc85828601613e6e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61411b81613857565b82525050565b600061412d8383614112565b60208301905092915050565b6000602082019050919050565b6000614151826140e6565b61415b81856140f1565b935061416683614102565b8060005b8381101561419757815161417e8882614121565b975061418983614139565b92505060018101905061416a565b5085935050505092915050565b600060208201905081810360008301526141be8184614146565b905092915050565b6000806000606084860312156141df576141de6137ef565b5b60006141ed86828701613842565b935050602084013567ffffffffffffffff81111561420e5761420d6137f4565b5b61421a86828701613e6e565b925050604084013567ffffffffffffffff81111561423b5761423a6137f4565b5b61424786828701613e6e565b9150509250925092565b600060ff82169050919050565b61426781614251565b811461427257600080fd5b50565b6000813590506142848161425e565b92915050565b600067ffffffffffffffff8211156142a5576142a46139cd565b5b602082029050602081019050919050565b60006142c96142c48461428a565b613a2d565b905080838252602082019050602084028301858111156142ec576142eb613e00565b5b835b8181101561433357803567ffffffffffffffff811115614311576143106139b2565b5b80860161431e8982613aca565b855260208501945050506020810190506142ee565b5050509392505050565b600082601f830112614352576143516139b2565b5b81356143628482602086016142b6565b91505092915050565b6143748161397c565b811461437f57600080fd5b50565b6000813590506143918161436b565b92915050565b60008060008060008060c087890312156143b4576143b36137ef565b5b60006143c289828a01613842565b96505060206143d389828a01614275565b955050604087013567ffffffffffffffff8111156143f4576143f36137f4565b5b61440089828a01613e6e565b945050606087013567ffffffffffffffff811115614421576144206137f4565b5b61442d89828a0161433d565b935050608061443e89828a01614382565b92505060a087013567ffffffffffffffff81111561445f5761445e6137f4565b5b61446b89828a01613c82565b9150509295509295509295565b600080600080600060a08688031215614494576144936137ef565b5b60006144a288828901613842565b95505060206144b388828901613878565b945050604086013567ffffffffffffffff8111156144d4576144d36137f4565b5b6144e088828901613aca565b93505060606144f188828901614382565b925050608086013567ffffffffffffffff811115614512576145116137f4565b5b61451e88828901613c82565b9150509295509295909350565b600080600060608486031215614544576145436137ef565b5b600061455286828701613878565b935050602061456386828701613842565b925050604061457486828701613878565b9150509250925092565b600060208284031215614594576145936137ef565b5b60006145a284828501613842565b91505092915050565b600080604083850312156145c2576145c16137ef565b5b60006145d085828601613842565b92505060206145e185828601614382565b9150509250929050565b60008060408385031215614602576146016137ef565b5b600061461085828601613878565b925050602061462185828601613842565b9150509250929050565b60008060408385031215614642576146416137ef565b5b600061465085828601613842565b925050602061466185828601613842565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6146a081613819565b82525050565b60006146b28383614697565b60208301905092915050565b6000602082019050919050565b60006146d68261466b565b6146e08185614676565b93506146eb83614687565b8060005b8381101561471c57815161470388826146a6565b975061470e836146be565b9250506001810190506146ef565b5085935050505092915050565b6000602082019050818103600083015261474381846146cb565b905092915050565b600080600060608486031215614764576147636137ef565b5b600061477286828701613842565b935050602061478386828701613878565b925050604061479486828701613878565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147e557607f821691505b6020821081036147f8576147f761479e565b5b50919050565b7f496e73756666696369656e74206f776e6572736869702062616c616e63650000600082015250565b6000614834601e83613b79565b915061483f826147fe565b602082019050919050565b6000602082019050818103600083015261486381614827565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006148a482613857565b91506148af83613857565b92508282039050818111156148c7576148c661486a565b5b92915050565b60006148d882613857565b91506148e383613857565b92508282019050808211156148fb576148fa61486a565b5b92915050565b61490a81613819565b82525050565b600060808201905061492560008301876138cd565b6149326020830186614901565b61493f6040830185614901565b61494c60608301846138cd565b95945050505050565b600060408201905061496a6000830185614901565b6149776020830184614901565b9392505050565b600060408201905061499360008301856138cd565b6149a060208301846138cd565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006149e182613857565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a1357614a1261486a565b5b600182019050919050565b7f496e73756666696369656e7420616c6c6f77616e636500000000000000000000600082015250565b6000614a54601683613b79565b9150614a5f82614a1e565b602082019050919050565b60006020820190508181036000830152614a8381614a47565b9050919050565b600081519050614a998161436b565b92915050565b600060208284031215614ab557614ab46137ef565b5b6000614ac384828501614a8a565b91505092915050565b7f4173736574206973206e6f742072657365727665642079657400000000000000600082015250565b6000614b02601983613b79565b9150614b0d82614acc565b602082019050919050565b60006020820190508181036000830152614b3181614af5565b9050919050565b6000614b4382614251565b915060ff8203614b5657614b5561486a565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614bc37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b86565b614bcd8683614b86565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614c0a614c05614c0084613857565b614be5565b613857565b9050919050565b6000819050919050565b614c2483614bef565b614c38614c3082614c11565b848454614b93565b825550505050565b600090565b614c4d614c40565b614c58818484614c1b565b505050565b5b81811015614c7c57614c71600082614c45565b600181019050614c5e565b5050565b601f821115614cc157614c9281614b61565b614c9b84614b76565b81016020851015614caa578190505b614cbe614cb685614b76565b830182614c5d565b50505b505050565b600082821c905092915050565b6000614ce460001984600802614cc6565b1980831691505092915050565b6000614cfd8383614cd3565b9150826002028217905092915050565b614d1682613b6e565b67ffffffffffffffff811115614d2f57614d2e6139cd565b5b614d3982546147cd565b614d44828285614c80565b600060209050601f831160018114614d775760008415614d65578287015190505b614d6f8582614cf1565b865550614dd7565b601f198416614d8586614b61565b60005b82811015614dad57848901518255600182019150602085019450602081019050614d88565b86831015614dca5784890151614dc6601f891682614cd3565b8355505b6001600288020188555050505b505050505050565b6000602082019050614df46000830184614901565b92915050565b7f417070726f76616c20746f2063757272656e74206f776e657200000000000000600082015250565b6000614e30601983613b79565b9150614e3b82614dfa565b602082019050919050565b60006020820190508181036000830152614e5f81614e23565b9050919050565b7f496e76616c6964206f776e65727368697020616d6f756e7420746f2072656d6f60008201527f766520617070726f76616c000000000000000000000000000000000000000000602082015250565b6000614ec2602b83613b79565b9150614ecd82614e66565b604082019050919050565b60006020820190508181036000830152614ef181614eb5565b9050919050565b7f496e73756666696369656e74206f70657261746f7220616c6c6f77616e636500600082015250565b6000614f2e601f83613b79565b9150614f3982614ef8565b602082019050919050565b60006020820190508181036000830152614f5d81614f21565b9050919050565b6000614f6f82613857565b9150614f7a83613857565b9250828202614f8881613857565b91508282048414831517614f9f57614f9e61486a565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614fe082613857565b9150614feb83613857565b925082614ffb57614ffa614fa6565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060408201905061504a6000830185614901565b6150576020830184613daa565b9392505050565b600081519050919050565b600082825260208201905092915050565b60006150858261505e565b61508f8185615069565b935061509f818560208601613b8a565b6150a8816139bc565b840191505092915050565b600060a0820190506150c86000830188614901565b6150d56020830187614901565b6150e260408301866138cd565b6150ef60608301856138cd565b8181036080830152615101818461507a565b90509695505050505050565b60008151905061511c81613923565b92915050565b600060208284031215615138576151376137ef565b5b60006151468482850161510d565b91505092915050565b600060a0820190506151646000830188614901565b6151716020830187614901565b81810360408301526151838186614146565b905081810360608301526151978185614146565b905081810360808301526151ab818461507a565b90509695505050505050565b60006080820190506151cc6000830187614901565b6151d960208301866138cd565b6151e660408301856138cd565b6151f360608301846138cd565b95945050505050565b600060408201905081810360008301526152168185614146565b9050818103602083015261522a8184614146565b9050939250505056fea26469706673582212204702439fa0ab9b36950458bc9192f1cb6b37ca0ea2167cc6f44bbeceba124e7164736f6c63430008140033",JS0={},YS0={},rz={_format:qS0,contractName:HS0,sourceName:GS0,abi:VS0,bytecode:KS0,deployedBytecode:QS0,linkReferences:JS0,deployedLinkReferences:YS0};function ZS0(){let{ProfileId:u}=aS();const e=At(),t=async()=>{const r=new nz("https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt"),i=rz.abi,a=new Ao(NM,i,r);try{const o=await a.getOwnedTokens(e.address),s=await a.balanceOf(e.address,o[0]),f=await a.getOwnershipAmount(e.address,o[0]);console.log("List of all tokens:",o),console.log("Balance of user in first token:",s),console.log("Balance2 of user in first token:",f)}catch(o){console.error("Error fetching tokens: ",o)}},n=async()=>{console.log("get Profile Details...")};return w.useEffect(()=>{t(),n()},[u]),c0.jsx(uc,{container:!0,justifyContent:"center",spacing:3,padding:7,direction:"column",alignItems:"center",children:c0.jsx(zc,{children:"Click Me"})})}function iz(u,e){return function(){return u.apply(e,arguments)}}const{toString:XS0}=Object.prototype,{getPrototypeOf:TA}=Object,Od=(u=>e=>{const t=XS0.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Cr=u=>(u=u.toLowerCase(),e=>Od(e)===u),Id=u=>e=>typeof e===u,{isArray:hf}=Array,lc=Id("undefined");function uT0(u){return u!==null&&!lc(u)&&u.constructor!==null&&!lc(u.constructor)&&sn(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}const az=Cr("ArrayBuffer");function eT0(u){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(u):e=u&&u.buffer&&az(u.buffer),e}const tT0=Id("string"),sn=Id("function"),oz=Id("number"),Nd=u=>u!==null&&typeof u=="object",nT0=u=>u===!0||u===!1,r2=u=>{if(Od(u)!=="object")return!1;const e=TA(u);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in u)&&!(Symbol.iterator in u)},rT0=Cr("Date"),iT0=Cr("File"),aT0=Cr("Blob"),oT0=Cr("FileList"),sT0=u=>Nd(u)&&sn(u.pipe),fT0=u=>{let e;return u&&(typeof FormData=="function"&&u instanceof FormData||sn(u.append)&&((e=Od(u))==="formdata"||e==="object"&&sn(u.toString)&&u.toString()==="[object FormData]"))},lT0=Cr("URLSearchParams"),cT0=u=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function F1(u,e,{allOwnKeys:t=!1}={}){if(u===null||typeof u>"u")return;let n,r;if(typeof u!="object"&&(u=[u]),hf(u))for(n=0,r=u.length;n0;)if(r=t[n],e===r.toLowerCase())return r;return null}const fz=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lz=u=>!lc(u)&&u!==fz;function ym(){const{caseless:u}=lz(this)&&this||{},e={},t=(n,r)=>{const i=u&&sz(e,r)||r;r2(e[i])&&r2(n)?e[i]=ym(e[i],n):r2(n)?e[i]=ym({},n):hf(n)?e[i]=n.slice():e[i]=n};for(let n=0,r=arguments.length;n(F1(e,(r,i)=>{t&&sn(r)?u[i]=iz(r,t):u[i]=r},{allOwnKeys:n}),u),dT0=u=>(u.charCodeAt(0)===65279&&(u=u.slice(1)),u),pT0=(u,e,t,n)=>{u.prototype=Object.create(e.prototype,n),u.prototype.constructor=u,Object.defineProperty(u,"super",{value:e.prototype}),t&&Object.assign(u.prototype,t)},hT0=(u,e,t,n)=>{let r,i,a;const o={};if(e=e||{},u==null)return e;do{for(r=Object.getOwnPropertyNames(u),i=r.length;i-- >0;)a=r[i],(!n||n(a,u,e))&&!o[a]&&(e[a]=u[a],o[a]=!0);u=t!==!1&&TA(u)}while(u&&(!t||t(u,e))&&u!==Object.prototype);return e},CT0=(u,e,t)=>{u=String(u),(t===void 0||t>u.length)&&(t=u.length),t-=e.length;const n=u.indexOf(e,t);return n!==-1&&n===t},mT0=u=>{if(!u)return null;if(hf(u))return u;let e=u.length;if(!oz(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=u[e];return t},gT0=(u=>e=>u&&e instanceof u)(typeof Uint8Array<"u"&&TA(Uint8Array)),bT0=(u,e)=>{const n=(u&&u[Symbol.iterator]).call(u);let r;for(;(r=n.next())&&!r.done;){const i=r.value;e.call(u,i[0],i[1])}},AT0=(u,e)=>{let t;const n=[];for(;(t=u.exec(e))!==null;)n.push(t);return n},yT0=Cr("HTMLFormElement"),vT0=u=>u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),hx=(({hasOwnProperty:u})=>(e,t)=>u.call(e,t))(Object.prototype),BT0=Cr("RegExp"),cz=(u,e)=>{const t=Object.getOwnPropertyDescriptors(u),n={};F1(t,(r,i)=>{let a;(a=e(r,i,u))!==!1&&(n[i]=a||r)}),Object.defineProperties(u,n)},FT0=u=>{cz(u,(e,t)=>{if(sn(u)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=u[t];if(sn(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},DT0=(u,e)=>{const t={},n=r=>{r.forEach(i=>{t[i]=!0})};return hf(u)?n(u):n(String(u).split(e)),t},wT0=()=>{},xT0=(u,e)=>(u=+u,Number.isFinite(u)?u:e),T8="abcdefghijklmnopqrstuvwxyz",Cx="0123456789",Ez={DIGIT:Cx,ALPHA:T8,ALPHA_DIGIT:T8+T8.toUpperCase()+Cx},kT0=(u=16,e=Ez.ALPHA_DIGIT)=>{let t="";const{length:n}=e;for(;u--;)t+=e[Math.random()*n|0];return t};function _T0(u){return!!(u&&sn(u.append)&&u[Symbol.toStringTag]==="FormData"&&u[Symbol.iterator])}const ST0=u=>{const e=new Array(10),t=(n,r)=>{if(Nd(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[r]=n;const i=hf(n)?[]:{};return F1(n,(a,o)=>{const s=t(a,r+1);!lc(s)&&(i[o]=s)}),e[r]=void 0,i}}return n};return t(u,0)},TT0=Cr("AsyncFunction"),PT0=u=>u&&(Nd(u)||sn(u))&&sn(u.then)&&sn(u.catch),i0={isArray:hf,isArrayBuffer:az,isBuffer:uT0,isFormData:fT0,isArrayBufferView:eT0,isString:tT0,isNumber:oz,isBoolean:nT0,isObject:Nd,isPlainObject:r2,isUndefined:lc,isDate:rT0,isFile:iT0,isBlob:aT0,isRegExp:BT0,isFunction:sn,isStream:sT0,isURLSearchParams:lT0,isTypedArray:gT0,isFileList:oT0,forEach:F1,merge:ym,extend:ET0,trim:cT0,stripBOM:dT0,inherits:pT0,toFlatObject:hT0,kindOf:Od,kindOfTest:Cr,endsWith:CT0,toArray:mT0,forEachEntry:bT0,matchAll:AT0,isHTMLForm:yT0,hasOwnProperty:hx,hasOwnProp:hx,reduceDescriptors:cz,freezeMethods:FT0,toObjectSet:DT0,toCamelCase:vT0,noop:wT0,toFiniteNumber:xT0,findKey:sz,global:fz,isContextDefined:lz,ALPHABET:Ez,generateString:kT0,isSpecCompliantForm:_T0,toJSONObject:ST0,isAsyncFn:TT0,isThenable:PT0};function Q0(u,e,t,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=u,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),r&&(this.response=r)}i0.inherits(Q0,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i0.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const dz=Q0.prototype,pz={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(u=>{pz[u]={value:u}});Object.defineProperties(Q0,pz);Object.defineProperty(dz,"isAxiosError",{value:!0});Q0.from=(u,e,t,n,r,i)=>{const a=Object.create(dz);return i0.toFlatObject(u,a,function(s){return s!==Error.prototype},o=>o!=="isAxiosError"),Q0.call(a,u.message,e,t,n,r),a.cause=u,a.name=u.name,i&&Object.assign(a,i),a};const OT0=null;function vm(u){return i0.isPlainObject(u)||i0.isArray(u)}function hz(u){return i0.endsWith(u,"[]")?u.slice(0,-2):u}function mx(u,e,t){return u?u.concat(e).map(function(r,i){return r=hz(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function IT0(u){return i0.isArray(u)&&!u.some(vm)}const NT0=i0.toFlatObject(i0,{},null,function(e){return/^is[A-Z]/.test(e)});function Rd(u,e,t){if(!i0.isObject(u))throw new TypeError("target must be an object");e=e||new FormData,t=i0.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,b){return!i0.isUndefined(b[h])});const n=t.metaTokens,r=t.visitor||l,i=t.dots,a=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&i0.isSpecCompliantForm(e);if(!i0.isFunction(r))throw new TypeError("visitor must be a function");function f(p){if(p===null)return"";if(i0.isDate(p))return p.toISOString();if(!s&&i0.isBlob(p))throw new Q0("Blob is not supported. Use a Buffer instead.");return i0.isArrayBuffer(p)||i0.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,h,b){let g=p;if(p&&!b&&typeof p=="object"){if(i0.endsWith(h,"{}"))h=n?h:h.slice(0,-2),p=JSON.stringify(p);else if(i0.isArray(p)&&IT0(p)||(i0.isFileList(p)||i0.endsWith(h,"[]"))&&(g=i0.toArray(p)))return h=hz(h),g.forEach(function(A,y){!(i0.isUndefined(A)||A===null)&&e.append(a===!0?mx([h],y,i):a===null?h:h+"[]",f(A))}),!1}return vm(p)?!0:(e.append(mx(b,h,i),f(p)),!1)}const c=[],E=Object.assign(NT0,{defaultVisitor:l,convertValue:f,isVisitable:vm});function d(p,h){if(!i0.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+h.join("."));c.push(p),i0.forEach(p,function(g,m){(!(i0.isUndefined(g)||g===null)&&r.call(e,g,i0.isString(m)?m.trim():m,h,E))===!0&&d(g,h?h.concat(m):[m])}),c.pop()}}if(!i0.isObject(u))throw new TypeError("data must be an object");return d(u),e}function gx(u){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function PA(u,e){this._pairs=[],u&&Rd(u,this,e)}const Cz=PA.prototype;Cz.append=function(e,t){this._pairs.push([e,t])};Cz.toString=function(e){const t=e?function(n){return e.call(this,n,gx)}:gx;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function RT0(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mz(u,e,t){if(!e)return u;const n=t&&t.encode||RT0,r=t&&t.serialize;let i;if(r?i=r(e,t):i=i0.isURLSearchParams(e)?e.toString():new PA(e,t).toString(n),i){const a=u.indexOf("#");a!==-1&&(u=u.slice(0,a)),u+=(u.indexOf("?")===-1?"?":"&")+i}return u}class MT0{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){i0.forEach(this.handlers,function(n){n!==null&&e(n)})}}const bx=MT0,gz={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jT0=typeof URLSearchParams<"u"?URLSearchParams:PA,zT0=typeof FormData<"u"?FormData:null,LT0=typeof Blob<"u"?Blob:null,$T0={isBrowser:!0,classes:{URLSearchParams:jT0,FormData:zT0,Blob:LT0},protocols:["http","https","file","blob","url","data"]},bz=typeof window<"u"&&typeof document<"u",UT0=(u=>bz&&["ReactNative","NativeScript","NS"].indexOf(u)<0)(typeof navigator<"u"&&navigator.product),WT0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qT0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bz,hasStandardBrowserEnv:UT0,hasStandardBrowserWebWorkerEnv:WT0},Symbol.toStringTag,{value:"Module"})),sr={...qT0,...$T0};function HT0(u,e){return Rd(u,new sr.classes.URLSearchParams,Object.assign({visitor:function(t,n,r,i){return sr.isNode&&i0.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function GT0(u){return i0.matchAll(/\w+|\[(\w*)]/g,u).map(e=>e[0]==="[]"?"":e[1]||e[0])}function VT0(u){const e={},t=Object.keys(u);let n;const r=t.length;let i;for(n=0;n=t.length;return a=!a&&i0.isArray(r)?r.length:a,s?(i0.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!i0.isObject(r[a]))&&(r[a]=[]),e(t,n,r[a],i)&&i0.isArray(r[a])&&(r[a]=VT0(r[a])),!o)}if(i0.isFormData(u)&&i0.isFunction(u.entries)){const t={};return i0.forEachEntry(u,(n,r)=>{e(GT0(n),r,t,0)}),t}return null}function KT0(u,e,t){if(i0.isString(u))try{return(e||JSON.parse)(u),i0.trim(u)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(u)}const OA={transitional:gz,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=i0.isObject(e);if(i&&i0.isHTMLForm(e)&&(e=new FormData(e)),i0.isFormData(e))return r&&r?JSON.stringify(Az(e)):e;if(i0.isArrayBuffer(e)||i0.isBuffer(e)||i0.isStream(e)||i0.isFile(e)||i0.isBlob(e))return e;if(i0.isArrayBufferView(e))return e.buffer;if(i0.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return HT0(e,this.formSerializer).toString();if((o=i0.isFileList(e))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Rd(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),KT0(e)):e}],transformResponse:[function(e){const t=this.transitional||OA.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(e&&i0.isString(e)&&(n&&!this.responseType||r)){const a=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?Q0.from(o,Q0.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sr.classes.FormData,Blob:sr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};i0.forEach(["delete","get","head","post","put","patch"],u=>{OA.headers[u]={}});const IA=OA,QT0=i0.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),JT0=u=>{const e={};let t,n,r;return u&&u.split(` -`).forEach(function(a){r=a.indexOf(":"),t=a.substring(0,r).trim().toLowerCase(),n=a.substring(r+1).trim(),!(!t||e[t]&&QT0[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},Ax=Symbol("internals");function jf(u){return u&&String(u).trim().toLowerCase()}function i2(u){return u===!1||u==null?u:i0.isArray(u)?u.map(i2):String(u)}function YT0(u){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(u);)e[n[1]]=n[2];return e}const ZT0=u=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(u.trim());function P8(u,e,t,n,r){if(i0.isFunction(n))return n.call(this,e,t);if(r&&(e=t),!!i0.isString(e)){if(i0.isString(n))return e.indexOf(n)!==-1;if(i0.isRegExp(n))return n.test(e)}}function XT0(u){return u.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function uP0(u,e){const t=i0.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(u,n+t,{value:function(r,i,a){return this[n].call(this,e,r,i,a)},configurable:!0})})}class Md{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(o,s,f){const l=jf(s);if(!l)throw new Error("header name must be a non-empty string");const c=i0.findKey(r,l);(!c||r[c]===void 0||f===!0||f===void 0&&r[c]!==!1)&&(r[c||s]=i2(o))}const a=(o,s)=>i0.forEach(o,(f,l)=>i(f,l,s));return i0.isPlainObject(e)||e instanceof this.constructor?a(e,t):i0.isString(e)&&(e=e.trim())&&!ZT0(e)?a(JT0(e),t):e!=null&&i(t,e,n),this}get(e,t){if(e=jf(e),e){const n=i0.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return YT0(r);if(i0.isFunction(t))return t.call(this,r,n);if(i0.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=jf(e),e){const n=i0.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||P8(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function i(a){if(a=jf(a),a){const o=i0.findKey(n,a);o&&(!t||P8(n,n[o],o,t))&&(delete n[o],r=!0)}}return i0.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];(!e||P8(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return i0.forEach(this,(r,i)=>{const a=i0.findKey(n,i);if(a){t[a]=i2(r),delete t[i];return}const o=e?XT0(i):String(i).trim();o!==i&&delete t[i],t[o]=i2(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return i0.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&i0.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const n=(this[Ax]=this[Ax]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=jf(a);n[o]||(uP0(r,a),n[o]=!0)}return i0.isArray(e)?e.forEach(i):i(e),this}}Md.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);i0.reduceDescriptors(Md.prototype,({value:u},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>u,set(n){this[t]=n}}});i0.freezeMethods(Md);const Gr=Md;function O8(u,e){const t=this||IA,n=e||t,r=Gr.from(n.headers);let i=n.data;return i0.forEach(u,function(o){i=o.call(t,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function yz(u){return!!(u&&u.__CANCEL__)}function D1(u,e,t){Q0.call(this,u??"canceled",Q0.ERR_CANCELED,e,t),this.name="CanceledError"}i0.inherits(D1,Q0,{__CANCEL__:!0});function eP0(u,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?u(t):e(new Q0("Request failed with status code "+t.status,[Q0.ERR_BAD_REQUEST,Q0.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const tP0=sr.hasStandardBrowserEnv?{write(u,e,t,n,r,i){const a=[u+"="+encodeURIComponent(e)];i0.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),i0.isString(n)&&a.push("path="+n),i0.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(u){const e=document.cookie.match(new RegExp("(^|;\\s*)("+u+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(u){this.write(u,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function nP0(u){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(u)}function rP0(u,e){return e?u.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):u}function vz(u,e){return u&&!nP0(e)?rP0(u,e):e}const iP0=sr.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(i){let a=i;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(a){const o=i0.isString(a)?r(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function aP0(u){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(u);return e&&e[1]||""}function oP0(u,e){u=u||10;const t=new Array(u),n=new Array(u);let r=0,i=0,a;return e=e!==void 0?e:1e3,function(s){const f=Date.now(),l=n[i];a||(a=f),t[r]=s,n[r]=f;let c=i,E=0;for(;c!==r;)E+=t[c++],c=c%u;if(r=(r+1)%u,r===i&&(i=(i+1)%u),f-a{const i=r.loaded,a=r.lengthComputable?r.total:void 0,o=i-t,s=n(o),f=i<=a;t=i;const l={loaded:i,total:a,progress:a?i/a:void 0,bytes:o,rate:s||void 0,estimated:s&&a&&f?(a-i)/s:void 0,event:r};l[e?"download":"upload"]=!0,u(l)}}const sP0=typeof XMLHttpRequest<"u",fP0=sP0&&function(u){return new Promise(function(t,n){let r=u.data;const i=Gr.from(u.headers).normalize();let{responseType:a,withXSRFToken:o}=u,s;function f(){u.cancelToken&&u.cancelToken.unsubscribe(s),u.signal&&u.signal.removeEventListener("abort",s)}let l;if(i0.isFormData(r)){if(sr.hasStandardBrowserEnv||sr.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((l=i.getContentType())!==!1){const[h,...b]=l?l.split(";").map(g=>g.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...b].join("; "))}}let c=new XMLHttpRequest;if(u.auth){const h=u.auth.username||"",b=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+b))}const E=vz(u.baseURL,u.url);c.open(u.method.toUpperCase(),mz(E,u.params,u.paramsSerializer),!0),c.timeout=u.timeout;function d(){if(!c)return;const h=Gr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),g={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:u,request:c};eP0(function(A){t(A),f()},function(A){n(A),f()},g),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(n(new Q0("Request aborted",Q0.ECONNABORTED,u,c)),c=null)},c.onerror=function(){n(new Q0("Network Error",Q0.ERR_NETWORK,u,c)),c=null},c.ontimeout=function(){let b=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const g=u.transitional||gz;u.timeoutErrorMessage&&(b=u.timeoutErrorMessage),n(new Q0(b,g.clarifyTimeoutError?Q0.ETIMEDOUT:Q0.ECONNABORTED,u,c)),c=null},sr.hasStandardBrowserEnv&&(o&&i0.isFunction(o)&&(o=o(u)),o||o!==!1&&iP0(E))){const h=u.xsrfHeaderName&&u.xsrfCookieName&&tP0.read(u.xsrfCookieName);h&&i.set(u.xsrfHeaderName,h)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&i0.forEach(i.toJSON(),function(b,g){c.setRequestHeader(g,b)}),i0.isUndefined(u.withCredentials)||(c.withCredentials=!!u.withCredentials),a&&a!=="json"&&(c.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&c.addEventListener("progress",yx(u.onDownloadProgress,!0)),typeof u.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",yx(u.onUploadProgress)),(u.cancelToken||u.signal)&&(s=h=>{c&&(n(!h||h.type?new D1(null,u,c):h),c.abort(),c=null)},u.cancelToken&&u.cancelToken.subscribe(s),u.signal&&(u.signal.aborted?s():u.signal.addEventListener("abort",s)));const p=aP0(E);if(p&&sr.protocols.indexOf(p)===-1){n(new Q0("Unsupported protocol "+p+":",Q0.ERR_BAD_REQUEST,u));return}c.send(r||null)})},Bm={http:OT0,xhr:fP0};i0.forEach(Bm,(u,e)=>{if(u){try{Object.defineProperty(u,"name",{value:e})}catch{}Object.defineProperty(u,"adapterName",{value:e})}});const vx=u=>`- ${u}`,lP0=u=>i0.isFunction(u)||u===null||u===!1,Bz={getAdapter:u=>{u=i0.isArray(u)?u:[u];const{length:e}=u;let t,n;const r={};for(let i=0;i`adapter ${o} `+(s===!1?"is not supported by the environment":"is not available in the build"));let a=e?i.length>1?`since : -`+i.map(vx).join(` -`):" "+vx(i[0]):"as no adapter specified";throw new Q0("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Bm};function I8(u){if(u.cancelToken&&u.cancelToken.throwIfRequested(),u.signal&&u.signal.aborted)throw new D1(null,u)}function Bx(u){return I8(u),u.headers=Gr.from(u.headers),u.data=O8.call(u,u.transformRequest),["post","put","patch"].indexOf(u.method)!==-1&&u.headers.setContentType("application/x-www-form-urlencoded",!1),Bz.getAdapter(u.adapter||IA.adapter)(u).then(function(n){return I8(u),n.data=O8.call(u,u.transformResponse,n),n.headers=Gr.from(n.headers),n},function(n){return yz(n)||(I8(u),n&&n.response&&(n.response.data=O8.call(u,u.transformResponse,n.response),n.response.headers=Gr.from(n.response.headers))),Promise.reject(n)})}const Fx=u=>u instanceof Gr?u.toJSON():u;function N3(u,e){e=e||{};const t={};function n(f,l,c){return i0.isPlainObject(f)&&i0.isPlainObject(l)?i0.merge.call({caseless:c},f,l):i0.isPlainObject(l)?i0.merge({},l):i0.isArray(l)?l.slice():l}function r(f,l,c){if(i0.isUndefined(l)){if(!i0.isUndefined(f))return n(void 0,f,c)}else return n(f,l,c)}function i(f,l){if(!i0.isUndefined(l))return n(void 0,l)}function a(f,l){if(i0.isUndefined(l)){if(!i0.isUndefined(f))return n(void 0,f)}else return n(void 0,l)}function o(f,l,c){if(c in e)return n(f,l);if(c in u)return n(void 0,f)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(f,l)=>r(Fx(f),Fx(l),!0)};return i0.forEach(Object.keys(Object.assign({},u,e)),function(l){const c=s[l]||r,E=c(u[l],e[l],l);i0.isUndefined(E)&&c!==o||(t[l]=E)}),t}const Fz="1.6.2",NA={};["object","boolean","number","function","string","symbol"].forEach((u,e)=>{NA[u]=function(n){return typeof n===u||"a"+(e<1?"n ":" ")+u}});const Dx={};NA.transitional=function(e,t,n){function r(i,a){return"[Axios v"+Fz+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(e===!1)throw new Q0(r(a," has been removed"+(t?" in "+t:"")),Q0.ERR_DEPRECATED);return t&&!Dx[a]&&(Dx[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,a,o):!0}};function cP0(u,e,t){if(typeof u!="object")throw new Q0("options must be an object",Q0.ERR_BAD_OPTION_VALUE);const n=Object.keys(u);let r=n.length;for(;r-- >0;){const i=n[r],a=e[i];if(a){const o=u[i],s=o===void 0||a(o,i,u);if(s!==!0)throw new Q0("option "+i+" must be "+s,Q0.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Q0("Unknown option "+i,Q0.ERR_BAD_OPTION)}}const Fm={assertOptions:cP0,validators:NA},gi=Fm.validators;class j9{constructor(e){this.defaults=e,this.interceptors={request:new bx,response:new bx}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=N3(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Fm.assertOptions(n,{silentJSONParsing:gi.transitional(gi.boolean),forcedJSONParsing:gi.transitional(gi.boolean),clarifyTimeoutError:gi.transitional(gi.boolean)},!1),r!=null&&(i0.isFunction(r)?t.paramsSerializer={serialize:r}:Fm.assertOptions(r,{encode:gi.function,serialize:gi.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&i0.merge(i.common,i[t.method]);i&&i0.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=Gr.concat(a,i);const o=[];let s=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(s=s&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});const f=[];this.interceptors.response.forEach(function(h){f.push(h.fulfilled,h.rejected)});let l,c=0,E;if(!s){const p=[Bx.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,f),E=p.length,l=Promise.resolve(t);c{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](r);n._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(o=>{n.subscribe(o),i=o}).then(r);return a.cancel=function(){n.unsubscribe(i)},a},e(function(i,a,o){n.reason||(n.reason=new D1(i,a,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new RA(function(r){e=r}),cancel:e}}}const EP0=RA;function dP0(u){return function(t){return u.apply(null,t)}}function pP0(u){return i0.isObject(u)&&u.isAxiosError===!0}const Dm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dm).forEach(([u,e])=>{Dm[e]=u});const hP0=Dm;function Dz(u){const e=new a2(u),t=iz(a2.prototype.request,e);return i0.extend(t,a2.prototype,e,{allOwnKeys:!0}),i0.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Dz(N3(u,r))},t}const Ku=Dz(IA);Ku.Axios=a2;Ku.CanceledError=D1;Ku.CancelToken=EP0;Ku.isCancel=yz;Ku.VERSION=Fz;Ku.toFormData=Rd;Ku.AxiosError=Q0;Ku.Cancel=Ku.CanceledError;Ku.all=function(e){return Promise.all(e)};Ku.spread=dP0;Ku.isAxiosError=pP0;Ku.mergeConfig=N3;Ku.AxiosHeaders=Gr;Ku.formToJSON=u=>Az(i0.isHTMLForm(u)?new FormData(u):u);Ku.getAdapter=Bz.getAdapter;Ku.HttpStatusCode=hP0;Ku.default=Ku;const wx=Ku,CP0=u=>{const[e,t]=w.useState(null),[n,r]=w.useState(""),[i,a]=w.useState(""),[o,s]=w.useState(void 0),[f,l]=w.useState(void 0),[c,E]=w.useState(!1),d=g=>{var m,A;(m=g==null?void 0:g.target)!=null&&m.files&&t((A=g==null?void 0:g.target)==null?void 0:A.files[0])},p=g=>{var m,A;(m=g==null?void 0:g.target)!=null&&m.value&&s((A=g==null?void 0:g.target)==null?void 0:A.value)},h=g=>{var m,A;(m=g==null?void 0:g.target)!=null&&m.value&&l((A=g==null?void 0:g.target)==null?void 0:A.value)},b=async()=>{if(e===null)return alert("No file selected.");E(!0);const g=new FormData;g.append("file",e);const m=JSON.stringify({name:"File name"});g.append("pinataMetadata",m);try{console.log("Uploading file on IPFS... ");const A=await wx.post("https://api.pinata.cloud/pinning/pinFileToIPFS",g,{maxBodyLength:1/0,headers:{"Content-Type":"multipart/form-data;",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M"}});console.log("response: ",A);const y=`https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/${A.data.IpfsHash}`;r(y),console.log("IPFS URL:",y);const B=JSON.stringify({pinataContent:{name:o,description:f,external_url:"https://Narpet.io",image:y},pinataMetadata:{name:"metadata.json"}}),v=await wx.post("https://api.pinata.cloud/pinning/pinJSONToIPFS",B,{headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M"}});console.log(v.data);const C=`https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/${v.data.IpfsHash}`;a(C),u.setCid(v.data.IpfsHash)}catch(A){console.error("Error uploading file:",A)}E(!1)};return c0.jsxs("div",{children:[c0.jsx("input",{disabled:c,type:"file",onChange:d,accept:"image/*"}),c0.jsx("input",{type:"text",content:o,onChange:p}),c0.jsx("input",{type:"text",content:f,onChange:h}),c0.jsx(Iw0,{disabled:c,onClick:b,children:"Upload to IPFS"}),c&&c0.jsx(VC,{children:"Uploading file ..."}),n&&c0.jsx("div",{children:c0.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"View uploaded image"})}),n&&c0.jsx("img",{src:n,width:200,height:275}),i&&c0.jsx("div",{children:c0.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:"View Json Metadat"})})]})};function mP0(u){if(u.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,A=new Uint8Array(m);b!==g;){for(var y=d[b],B=0,v=m-1;(y!==0||B>>0,A[v]=y%a>>>0,y=y/a>>>0;if(y!==0)throw new Error("Non-zero carry");h=B,b++}for(var C=m-h;C!==m&&A[C]===0;)C++;for(var D=o.repeat(p);C>>0,m=new Uint8Array(g);d[p];){var A=e[d.charCodeAt(p)];if(A===255)return;for(var y=0,B=g-1;(A!==0||y>>0,m[B]=A%256>>>0,A=A/256>>>0;if(A!==0)throw new Error("Non-zero carry");b=y,p++}for(var v=g-b;v!==g&&m[v]===0;)v++;for(var C=new Uint8Array(h+(g-v)),D=h;v!==g;)C[D++]=m[v++];return C}function E(d){var p=c(d);if(p)return p;throw new Error("Non-base"+a+" character")}return{encode:l,decodeUnsafe:c,decode:E}}var gP0=mP0;const bP0=gP0,AP0="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var yP0=bP0(AP0);const vP0=kc(yP0);function BP0(){const u=At(),[e,t]=w.useState(void 0),[n,r]=w.useState(void 0),i=!1,{config:a}=bn0({address:NM,abi:rz.abi,functionName:"mint",args:[u.address,n,e,i,u.address],enabled:!!(u.address&&e&&n&&i!=null&&u.address)}),{data:o,write:s}=Cn0(a),{isLoading:f,isSuccess:l}=kn0({hash:o==null?void 0:o.hash});return w.useEffect(()=>{if(e){const c=vP0.decode(e).slice(2);console.log("bytes: ",c);const d=Array.from(c).map(p=>p.toString(16).padStart(2,"0")).join("");r("0x"+d)}},[e]),c0.jsxs(uc,{container:!0,justifyContent:"center",spacing:3,padding:7,direction:"column",alignItems:"center",children:[c0.jsx(CP0,{cid:e,setCid:t}),f&&c0.jsx(VC,{children:"Loading...."}),l&&c0.jsxs("div",{children:["Successfully minted your NFT!",c0.jsx("div",{children:c0.jsx("a",{href:`https://mumbai.polygonscan.com/tx/${o==null?void 0:o.hash}`,children:"Polygon Scan"})})]}),e&&c0.jsx(VC,{children:e}),c0.jsx(zc,{disabled:e==null,onClick:()=>{console.log("Trying to mint..."),s==null||s()},children:"Mint"})]})}function FP0(){return c0.jsxs(yW,{children:[c0.jsx(Dx0,{}),c0.jsxs(bW,{children:[c0.jsx(Wf,{path:"/real-token/Explore",element:c0.jsx(US0,{})}),c0.jsx(Wf,{path:"/real-token/Explore/:NFTId",element:c0.jsx(WS0,{})}),c0.jsx(Wf,{path:"/real-token/Profile/:ProfileId",element:c0.jsx(ZS0,{})}),c0.jsx(Wf,{path:"/real-token/Mint",element:c0.jsx(BP0,{})})]})]})}function DP0(){return c0.jsx(_U,{children:c0.jsx(FP0,{})})}const wP0=U7({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},error:{main:_a.A400}}});function xP0(){return function(u){return u.rpcUrls.public.http[0]?{chain:u,rpcUrls:u.rpcUrls.public}:null}}var kP0={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{chains:wz,publicClient:_P0}=Xe0([je0],[xP0()]);console.log(" Project ID:",kP0.REACT_APP_PROJECT_ID);const{connectors:SP0}=sw0({appName:"My RainbowKit App",projectId:"9d80089c30635ff84b5339d993d63fa1",chains:wz}),TP0=jt0({autoConnect:!0,connectors:SP0,publicClient:_P0});R8.createRoot(document.getElementById("root")).render(c0.jsxs(pK,{theme:wP0,children:[c0.jsx(ox0,{}),c0.jsx(zt0,{config:TP0,children:c0.jsx(bb0,{chains:wz,children:c0.jsx(DP0,{})})})]}));export{fd as $,HR as A,ct as B,eO0 as C,CO0 as D,NO0 as E,QP0 as F,iO0 as G,EO0 as H,cO0 as I,YP0 as J,GP0 as K,VP0 as L,uO0 as M,xi as N,oO0 as O,aO0 as P,vO0 as Q,$B0 as R,hO0 as S,gn as T,_3 as U,qP0 as V,rO0 as W,OO0 as X,tO0 as Y,PO0 as Z,h1 as _,QY as a,nO0 as a0,ld as a1,tA as a2,GR as a3,ZP0 as a4,XP0 as a5,HP0 as a6,fO0 as a7,lO0 as a8,cd as a9,L0 as aA,yy0 as aB,Rv0 as aC,zR as aD,lB0 as aE,Zb as aF,cB0 as aG,EB0 as aH,pB0 as aI,jR as aJ,mB0 as aK,AB0 as aL,BB0 as aM,DB0 as aN,xB0 as aO,Tv0 as aP,LR as aQ,IB0 as aR,NB0 as aS,SB0 as aT,OB0 as aU,kh0 as aV,Nh0 as aW,JP0 as aa,nA as ab,dO0 as ac,sO0 as ad,pO0 as ae,IO0 as af,AO0 as ag,bO0 as ah,FF0 as ai,SO0 as aj,BO0 as ak,DF0 as al,gO0 as am,xO0 as an,FO0 as ao,kO0 as ap,TO0 as aq,DO0 as ar,wO0 as as,_O0 as at,yO0 as au,hF0 as av,KR as aw,C8 as ax,zP0 as ay,LP0 as az,JY as b,YY as c,GP as d,u_0 as e,V9 as f,MY as g,mo as h,EM as i,$0 as j,td as k,UP as l,Pn as m,dl as n,DD as o,x0 as p,kc as q,sd as r,go as s,zn as t,mO0 as u,$P0 as v,Un as w,UP0 as x,WP0 as y,KP0 as z}; + Approved: ${E.toString()}`))}),a.forEach(c=>{n||(Ua(r[c].methods,i[c].methods)?Ua(r[c].events,i[c].events)||(n=xi("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${c}`)):n=xi("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${c}`))}),n}function _F0(u){const e={};return Object.keys(u).forEach(t=>{var n;t.includes(":")?e[t]=u[t]:(n=u[t].chains)==null||n.forEach(r=>{e[r]={methods:u[t].methods,events:u[t].events}})}),e}function tw(u){return[...new Set(u.map(e=>e.includes(":")?e.split(":")[0]:e))]}function SF0(u){const e={};return Object.keys(u).forEach(t=>{if(t.includes(":"))e[t]=u[t];else{const n=C3(u[t].accounts);n==null||n.forEach(r=>{e[r]={accounts:u[t].accounts.filter(i=>i.includes(`${r}:`)),methods:u[t].methods,events:u[t].events}})}}),e}function qO0(u,e){return rA(u,!1)&&u<=e.max&&u>=e.min}function HO0(){const u=Cc();return new Promise(e=>{switch(u){case It.browser:e(TF0());break;case It.reactNative:e(PF0());break;case It.node:e(OF0());break;default:e(!0)}})}function TF0(){return tA()&&(navigator==null?void 0:navigator.onLine)}async function PF0(){if(ld()&&typeof global<"u"&&global!=null&&global.NetInfo){const u=await(global==null?void 0:global.NetInfo.fetch());return u==null?void 0:u.isConnected}return!0}function OF0(){return!0}function GO0(u){switch(Cc()){case It.browser:IF0(u);break;case It.reactNative:NF0(u);break}}function IF0(u){!ld()&&tA()&&(window.addEventListener("online",()=>u(!0)),window.addEventListener("offline",()=>u(!1)))}function NF0(u){ld()&&typeof global<"u"&&global!=null&&global.NetInfo&&(global==null||global.NetInfo.addEventListener(e=>u(e==null?void 0:e.isConnected)))}const mp={};class VO0{static get(e){return mp[e]}static set(e,t){mp[e]=t}static delete(e){delete mp[e]}}var uM="eip155",RF0="store",eM="requestedChains",UC="wallet_addEthereumChain",Fu,ml,H6,WC,iA,tM,G6,qC,HC,nM,v2,aA,ys,K3,B2,oA,F2,sA,D2,fA,rM=class extends Z1{constructor(u){super({...u,options:{isNewChainsStale:!0,...u.options}}),Yu(this,H6),Yu(this,iA),Yu(this,G6),Yu(this,HC),Yu(this,v2),Yu(this,ys),Yu(this,B2),Yu(this,F2),Yu(this,D2),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,Yu(this,Fu,void 0),Yu(this,ml,void 0),this.onAccountsChanged=e=>{e.length===0?this.emit("disconnect"):this.emit("change",{account:Su(e[0])})},this.onChainChanged=e=>{const t=Number(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=()=>{Qu(this,ys,K3).call(this,[]),this.emit("disconnect")},this.onDisplayUri=e=>{this.emit("message",{type:"display_uri",data:e})},this.onConnect=()=>{this.emit("connect",{})},Qu(this,H6,WC).call(this)}async connect({chainId:u,pairingTopic:e}={}){var t,n,r,i,a;try{let o=u;if(!o){const p=(t=this.storage)==null?void 0:t.getItem(RF0),h=(i=(r=(n=p==null?void 0:p.state)==null?void 0:n.data)==null?void 0:r.chain)==null?void 0:i.id;h&&!this.isChainUnsupported(h)?o=h:o=(a=this.chains[0])==null?void 0:a.id}if(!o)throw new Error("No chains found on connector.");const s=await this.getProvider();Qu(this,HC,nM).call(this);const f=Qu(this,G6,qC).call(this);if(s.session&&f&&await s.disconnect(),!s.session||f){const p=this.chains.filter(h=>h.id!==o).map(h=>h.id);this.emit("message",{type:"connecting"}),await s.connect({pairingTopic:e,chains:[o],optionalChains:p.length?p:void 0}),Qu(this,ys,K3).call(this,this.chains.map(({id:h})=>h))}const l=await s.enable(),c=Su(l[0]),E=await this.getChainId(),d=this.isChainUnsupported(E);return{account:c,chain:{id:E,unsupported:d}}}catch(o){throw/user rejected/i.test(o==null?void 0:o.message)?new Gu(o):o}}async disconnect(){const u=await this.getProvider();try{await u.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{Qu(this,v2,aA).call(this),Qu(this,ys,K3).call(this,[])}}async getAccount(){const{accounts:u}=await this.getProvider();return Su(u[0])}async getChainId(){const{chainId:u}=await this.getProvider();return u}async getProvider({chainId:u}={}){return W0(this,Fu)||await Qu(this,H6,WC).call(this),u&&await this.switchChain(u),W0(this,Fu)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider({chainId:u}),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return u3({account:t,chain:n,transport:Zf(e)})}async isAuthorized(){try{const[u,e]=await Promise.all([this.getAccount(),this.getProvider()]),t=Qu(this,G6,qC).call(this);if(!u)return!1;if(t&&e.session){try{await e.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(u){var t,n;const e=this.chains.find(r=>r.id===u);if(!e)throw new jn(new Error("chain not found on connector."));try{const r=await this.getProvider(),i=Qu(this,F2,sA).call(this),a=Qu(this,D2,fA).call(this);if(!i.includes(u)&&a.includes(UC)){await r.request({method:UC,params:[{chainId:S0(e.id),blockExplorerUrls:[(n=(t=e.blockExplorers)==null?void 0:t.default)==null?void 0:n.url],chainName:e.name,nativeCurrency:e.nativeCurrency,rpcUrls:[...e.rpcUrls.default.http]}]});const s=Qu(this,B2,oA).call(this);s.push(u),Qu(this,ys,K3).call(this,s)}return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:S0(u)}]}),e}catch(r){const i=typeof r=="string"?r:r==null?void 0:r.message;throw/user rejected request/i.test(i)?new Gu(r):new jn(r)}}};Fu=new WeakMap;ml=new WeakMap;H6=new WeakSet;WC=async function(){return!W0(this,ml)&&typeof window<"u"&&Xr(this,ml,Qu(this,iA,tM).call(this)),W0(this,ml)};iA=new WeakSet;tM=async function(){const{EthereumProvider:u,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await L0(()=>import("./index.es-tEmxzH1T.js"),__vite__mapDeps([0,1])),[n,...r]=this.chains.map(({id:i})=>i);if(n){const{projectId:i,showQrModal:a=!0,qrModalOptions:o,metadata:s,relayUrl:f}=this.options;Xr(this,Fu,await u.init({showQrModal:a,qrModalOptions:o,projectId:i,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:r.length?r:void 0,rpcMap:Object.fromEntries(this.chains.map(l=>[l.id,l.rpcUrls.default.http[0]])),metadata:s,relayUrl:f}))}};G6=new WeakSet;qC=function(){if(Qu(this,D2,fA).call(this).includes(UC)||!this.options.isNewChainsStale)return!1;const e=Qu(this,B2,oA).call(this),t=this.chains.map(({id:r})=>r),n=Qu(this,F2,sA).call(this);return n.length&&!n.some(r=>t.includes(r))?!1:!t.every(r=>e.includes(r))};HC=new WeakSet;nM=function(){W0(this,Fu)&&(Qu(this,v2,aA).call(this),W0(this,Fu).on("accountsChanged",this.onAccountsChanged),W0(this,Fu).on("chainChanged",this.onChainChanged),W0(this,Fu).on("disconnect",this.onDisconnect),W0(this,Fu).on("session_delete",this.onDisconnect),W0(this,Fu).on("display_uri",this.onDisplayUri),W0(this,Fu).on("connect",this.onConnect))};v2=new WeakSet;aA=function(){W0(this,Fu)&&(W0(this,Fu).removeListener("accountsChanged",this.onAccountsChanged),W0(this,Fu).removeListener("chainChanged",this.onChainChanged),W0(this,Fu).removeListener("disconnect",this.onDisconnect),W0(this,Fu).removeListener("session_delete",this.onDisconnect),W0(this,Fu).removeListener("display_uri",this.onDisplayUri),W0(this,Fu).removeListener("connect",this.onConnect))};ys=new WeakSet;K3=function(u){var e;(e=this.storage)==null||e.setItem(eM,u)};B2=new WeakSet;oA=function(){var u;return((u=this.storage)==null?void 0:u.getItem(eM))??[]};F2=new WeakSet;sA=function(){var n,r,i;if(!W0(this,Fu))return[];const u=(n=W0(this,Fu).session)==null?void 0:n.namespaces;return u?((i=(r=ZR(u)[uM])==null?void 0:r.chains)==null?void 0:i.map(a=>parseInt(a.split(":")[1]||"")))??[]:[]};D2=new WeakSet;fA=function(){var n,r;if(!W0(this,Fu))return[];const u=(n=W0(this,Fu).session)==null?void 0:n.namespaces;return u?((r=ZR(u)[uM])==null?void 0:r.methods)??[]:[]};var Q3,vs,MF0=class extends Z1{constructor({chains:u,options:e}){super({chains:u,options:{reloadOnDisconnect:!1,...e}}),this.id="coinbaseWallet",this.name="Coinbase Wallet",this.ready=!0,Yu(this,Q3,void 0),Yu(this,vs,void 0),this.onAccountsChanged=t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Su(t[0])})},this.onChainChanged=t=>{const n=To(t),r=this.isChainUnsupported(n);this.emit("change",{chain:{id:n,unsupported:r}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:u}={}){try{const e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});const t=await e.enable(),n=Su(t[0]);let r=await this.getChainId(),i=this.isChainUnsupported(r);return u&&r!==u&&(r=(await this.switchChain(u)).id,i=this.isChainUnsupported(r)),{account:n,chain:{id:r,unsupported:i}}}catch(e){throw/(user closed modal|accounts received is empty)/i.test(e.message)?new Gu(e):e}}async disconnect(){if(!W0(this,vs))return;const u=await this.getProvider();u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),u.disconnect(),u.close()}async getAccount(){const e=await(await this.getProvider()).request({method:"eth_accounts"});return Su(e[0])}async getChainId(){const u=await this.getProvider();return To(u.chainId)}async getProvider(){var u;if(!W0(this,vs)){let e=(await L0(()=>import("./index-ynIz-0vY.js").then(a=>a.i),__vite__mapDeps([2,3]))).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),Xr(this,Q3,new e(this.options));const t=(u=W0(this,Q3).walletExtension)==null?void 0:u.getChainId(),n=this.chains.find(a=>this.options.chainId?a.id===this.options.chainId:a.id===t)||this.chains[0],r=this.options.chainId||(n==null?void 0:n.id),i=this.options.jsonRpcUrl||(n==null?void 0:n.rpcUrls.default.http[0]);Xr(this,vs,W0(this,Q3).makeWeb3Provider(i,r))}return W0(this,vs)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return u3({account:t,chain:n,transport:Zf(e)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(u){var n;const e=await this.getProvider(),t=S0(u);try{return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),this.chains.find(r=>r.id===u)??{id:u,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(r){const i=this.chains.find(a=>a.id===u);if(!i)throw new JO({chainId:u,connectorId:this.id});if(r.code===4902)try{return await e.request({method:"wallet_addEthereumChain",params:[{chainId:t,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:[((n=i.rpcUrls.public)==null?void 0:n.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(a){throw new Gu(a)}throw new jn(r)}}async watchAsset({address:u,decimals:e=18,image:t,symbol:n}){return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:u,decimals:e,image:t,symbol:n}}})}};Q3=new WeakMap;vs=new WeakMap;var V6,jF0=class extends Df{constructor({chains:u,options:e}={}){const t={name:"MetaMask",shimDisconnect:!0,getProvider(){function n(i){if(i!=null&&i.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isApexWallet&&!i.isAvalanche&&!i.isBitKeep&&!i.isBlockWallet&&!i.isCoin98&&!i.isFordefi&&!i.isMathWallet&&!(i.isOkxWallet||i.isOKExWallet)&&!(i.isOneInchIOSWallet||i.isOneInchAndroidWallet)&&!i.isOpera&&!i.isPortal&&!i.isRabby&&!i.isDefiant&&!i.isTokenPocket&&!i.isTokenary&&!i.isZeal&&!i.isZerion)return i}if(typeof window>"u")return;const r=window.ethereum;return r!=null&&r.providers?r.providers.find(n):n(r)},...e};super({chains:u,options:t}),this.id="metaMask",this.shimDisconnectKey=`${this.id}.shimDisconnect`,Yu(this,V6,void 0),Xr(this,V6,t.UNSTABLE_shimOnConnectSelectAccount)}async connect({chainId:u}={}){var e,t,n,r;try{const i=await this.getProvider();if(!i)throw new nt;i.on&&(i.on("accountsChanged",this.onAccountsChanged),i.on("chainChanged",this.onChainChanged),i.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let a=null;if(W0(this,V6)&&((e=this.options)!=null&&e.shimDisconnect)&&!((t=this.storage)!=null&&t.getItem(this.shimDisconnectKey))&&(a=await this.getAccount().catch(()=>null),!!a))try{await i.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),a=await this.getAccount()}catch(l){if(this.isUserRejectedRequestError(l))throw new Gu(l);if(l.code===new Yr(l).code)throw l}if(!a){const f=await i.request({method:"eth_requestAccounts"});a=Su(f[0])}let o=await this.getChainId(),s=this.isChainUnsupported(o);return u&&o!==u&&(o=(await this.switchChain(u)).id,s=this.isChainUnsupported(o)),(n=this.options)!=null&&n.shimDisconnect&&((r=this.storage)==null||r.setItem(this.shimDisconnectKey,!0)),{account:a,chain:{id:o,unsupported:s},provider:i}}catch(i){throw this.isUserRejectedRequestError(i)?new Gu(i):i.code===-32002?new Yr(i):i}}};V6=new WeakMap;var zF0=/(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i,Ta,GC,iM,LF0=class extends Z1{constructor(){super(...arguments),Yu(this,GC),this.id="walletConnectLegacy",this.name="WalletConnectLegacy",this.ready=!0,Yu(this,Ta,void 0),this.onAccountsChanged=u=>{u.length===0?this.emit("disconnect"):this.emit("change",{account:Su(u[0])})},this.onChainChanged=u=>{const e=To(u),t=this.isChainUnsupported(e);this.emit("change",{chain:{id:e,unsupported:t}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:u}={}){var e,t,n,r,i,a;try{let o=u;if(!o){const p=(e=this.storage)==null?void 0:e.getItem("store"),h=(r=(n=(t=p==null?void 0:p.state)==null?void 0:t.data)==null?void 0:n.chain)==null?void 0:r.id;h&&!this.isChainUnsupported(h)&&(o=h)}const s=await this.getProvider({chainId:o,create:!0});s.on("accountsChanged",this.onAccountsChanged),s.on("chainChanged",this.onChainChanged),s.on("disconnect",this.onDisconnect),setTimeout(()=>this.emit("message",{type:"connecting"}),0);const f=await s.enable(),l=Su(f[0]),c=await this.getChainId(),E=this.isChainUnsupported(c),d=((a=(i=s.connector)==null?void 0:i.peerMeta)==null?void 0:a.name)??"";return zF0.test(d)&&(this.switchChain=Qu(this,GC,iM)),{account:l,chain:{id:c,unsupported:E}}}catch(o){throw/user closed modal/i.test(o.message)?new Gu(o):o}}async disconnect(){const u=await this.getProvider();await u.disconnect(),u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),typeof localStorage<"u"&&localStorage.removeItem("walletconnect")}async getAccount(){const e=(await this.getProvider()).accounts;return Su(e[0])}async getChainId(){const u=await this.getProvider();return To(u.chainId)}async getProvider({chainId:u,create:e}={}){var t,n;if(!W0(this,Ta)||u||e){const r=(t=this.options)!=null&&t.infuraId?{}:this.chains.reduce((a,o)=>({...a,[o.id]:o.rpcUrls.default.http[0]}),{}),i=(await L0(()=>import("./index-6napdEcA.js"),__vite__mapDeps([4,1,5,3]))).default;Xr(this,Ta,new i({...this.options,chainId:u,rpc:{...r,...(n=this.options)==null?void 0:n.rpc}})),W0(this,Ta).http=await W0(this,Ta).setHttpProvider(u)}return W0(this,Ta)}async getWalletClient({chainId:u}={}){const[e,t]=await Promise.all([this.getProvider({chainId:u}),this.getAccount()]),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return u3({account:t,chain:n,transport:Zf(e)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}};Ta=new WeakMap;GC=new WeakSet;iM=async function(u){const e=await this.getProvider(),t=S0(u);try{return await Promise.race([e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]}),new Promise(n=>this.on("change",({chain:r})=>{(r==null?void 0:r.id)===u&&n(u)}))]),this.chains.find(n=>n.id===u)??{id:u,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(n){const r=typeof n=="string"?n:n==null?void 0:n.message;throw/user rejected request/i.test(r)?new Gu(n):new jn(n)}};var aM={},Ed={},lA={exports:{}},r4=typeof Reflect=="object"?Reflect:null,nw=r4&&typeof r4.apply=="function"?r4.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},K6;r4&&typeof r4.ownKeys=="function"?K6=r4.ownKeys:Object.getOwnPropertySymbols?K6=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:K6=function(e){return Object.getOwnPropertyNames(e)};function $F0(u){console&&console.warn&&console.warn(u)}var oM=Number.isNaN||function(e){return e!==e};function lu(){lu.init.call(this)}lA.exports=lu;lA.exports.once=HF0;lu.EventEmitter=lu;lu.prototype._events=void 0;lu.prototype._eventsCount=0;lu.prototype._maxListeners=void 0;var rw=10;function dd(u){if(typeof u!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof u)}Object.defineProperty(lu,"defaultMaxListeners",{enumerable:!0,get:function(){return rw},set:function(u){if(typeof u!="number"||u<0||oM(u))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+u+".");rw=u}});lu.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};lu.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||oM(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function sM(u){return u._maxListeners===void 0?lu.defaultMaxListeners:u._maxListeners}lu.prototype.getMaxListeners=function(){return sM(this)};lu.prototype.emit=function(e){for(var t=[],n=1;n0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")nw(s,this,t);else for(var f=s.length,l=dM(s,f),n=0;n0&&a.length>r&&!a.warned){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=u,o.type=e,o.count=a.length,$F0(o)}return u}lu.prototype.addListener=function(e,t){return fM(this,e,t,!1)};lu.prototype.on=lu.prototype.addListener;lu.prototype.prependListener=function(e,t){return fM(this,e,t,!0)};function UF0(){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 lM(u,e,t){var n={fired:!1,wrapFn:void 0,target:u,type:e,listener:t},r=UF0.bind(n);return r.listener=t,n.wrapFn=r,r}lu.prototype.once=function(e,t){return dd(t),this.on(e,lM(this,e,t)),this};lu.prototype.prependOnceListener=function(e,t){return dd(t),this.prependListener(e,lM(this,e,t)),this};lu.prototype.removeListener=function(e,t){var n,r,i,a,o;if(dd(t),r=this._events,r===void 0)return this;if(n=r[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():WF0(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit("removeListener",e,o||t)}return this};lu.prototype.off=lu.prototype.removeListener;lu.prototype.removeAllListeners=function(e){var t,n,r;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[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function cM(u,e,t){var n=u._events;if(n===void 0)return[];var r=n[e];return r===void 0?[]:typeof r=="function"?t?[r.listener||r]:[r]:t?qF0(r):dM(r,r.length)}lu.prototype.listeners=function(e){return cM(this,e,!0)};lu.prototype.rawListeners=function(e){return cM(this,e,!1)};lu.listenerCount=function(u,e){return typeof u.listenerCount=="function"?u.listenerCount(e):EM.call(u,e)};lu.prototype.listenerCount=EM;function EM(u){var e=this._events;if(e!==void 0){var t=e[u];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}lu.prototype.eventNames=function(){return this._eventsCount>0?K6(this._events):[]};function dM(u,e){for(var t=new Array(e),n=0;n(s&&(s.hash=n[0]),s));case"eth_getTransactionReceipt":{let s=n[0];try{s=(await this.sdk.txs.getBySafeTxHash(s)).txHash||s}catch{}return this.sdk.eth.getTransactionReceipt([s]).then(f=>(f&&(f.transactionHash=n[0]),f))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(n[0]);case"eth_call":return this.sdk.eth.call([n[0],n[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([n[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(n[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([n[0]]);default:throw Error(`"${e.method}" not implemented`)}}send(e,t){e||t("Undefined request"),this.request(e).then(n=>t(null,{jsonrpc:"2.0",id:e.id,result:n})).catch(n=>t(n,null))}}Ed.SafeAppProvider=QF0;(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.SafeAppProvider=void 0;var e=Ed;Object.defineProperty(u,"SafeAppProvider",{enumerable:!0,get:function(){return e.SafeAppProvider}})})(aM);var CM={},w2={},mM={},mc={},bc={};const JF0="@safe-global/safe-apps-sdk",YF0="8.1.0",ZF0="SDK developed to integrate third-party apps with Safe app.",XF0="dist/src/index.js",uD0="dist/src/index.d.ts",eD0=["dist/**/*","src/**/*","CHANGELOG.md","README.md"],tD0=!1,nD0=["Safe","sdk","apps"],rD0={test:"jest","format-dist":`sed -i '' 's/"files":/"_files":/' dist/package.json`,build:"yarn rimraf dist && tsc && yarn format-dist"},iD0="Safe (https://safe.global)",aD0="MIT",oD0={"@safe-global/safe-gateway-typescript-sdk":"^3.5.3",viem:"^1.0.0"},sD0={type:"git",url:"git+https://github.com/safe-global/safe-apps-sdk.git"},fD0={url:"https://github.com/safe-global/safe-apps-sdk/issues"},lD0="https://github.com/safe-global/safe-apps-sdk#readme",cD0={access:"public"},ED0={name:JF0,version:YF0,description:ZF0,main:XF0,typings:uD0,_files:eD0,sideEffects:tD0,keywords:nD0,scripts:rD0,author:iD0,license:aD0,dependencies:oD0,repository:sD0,bugs:fD0,homepage:lD0,publishConfig:cD0};var dD0=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(bc,"__esModule",{value:!0});bc.getSDKVersion=void 0;const pD0=dD0(ED0),hD0=()=>pD0.default.version.split("-")[0];bc.getSDKVersion=hD0;var hd={};Object.defineProperty(hd,"__esModule",{value:!0});hd.generateRequestId=void 0;const CD0=u=>u.toString(16).padStart(2,"0"),mD0=u=>{const e=new Uint8Array((u||40)/2);return window.crypto.getRandomValues(e),Array.from(e,CD0).join("")},bD0=()=>typeof window<"u"?mD0(10):new Date().getTime().toString(36);hd.generateRequestId=bD0;Object.defineProperty(mc,"__esModule",{value:!0});mc.MessageFormatter=void 0;const gD0=bc,AD0=hd;class Cd{}mc.MessageFormatter=Cd;Cd.makeRequest=(u,e)=>({id:(0,AD0.generateRequestId)(),method:u,params:e,env:{sdkVersion:(0,gD0.getSDKVersion)()}});Cd.makeResponse=(u,e,t)=>({id:u,success:!0,version:t,data:e});Cd.makeErrorResponse=(u,e,t)=>({id:u,success:!1,error:e,version:t});var es={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.RestrictedMethods=u.Methods=void 0,function(e){e.sendTransactions="sendTransactions",e.rpcCall="rpcCall",e.getChainInfo="getChainInfo",e.getSafeInfo="getSafeInfo",e.getTxBySafeTxHash="getTxBySafeTxHash",e.getSafeBalances="getSafeBalances",e.signMessage="signMessage",e.signTypedMessage="signTypedMessage",e.getEnvironmentInfo="getEnvironmentInfo",e.getOffChainSignature="getOffChainSignature",e.requestAddressBook="requestAddressBook",e.wallet_getPermissions="wallet_getPermissions",e.wallet_requestPermissions="wallet_requestPermissions"}(u.Methods||(u.Methods={})),function(e){e.requestAddressBook="requestAddressBook"}(u.RestrictedMethods||(u.RestrictedMethods={}))})(es);(function(u){var e=x0&&x0.__createBinding||(Object.create?function(i,a,o,s){s===void 0&&(s=o);var f=Object.getOwnPropertyDescriptor(a,o);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(i,s,f)}:function(i,a,o,s){s===void 0&&(s=o),i[s]=a[o]}),t=x0&&x0.__exportStar||function(i,a){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&e(a,i,o)};Object.defineProperty(u,"__esModule",{value:!0});const n=mc;class r{constructor(a=null,o=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:s,data:f,source:l})=>{const c=!f,E=!this.isServer&&l===window.parent,p=(typeof f.version<"u"&&parseInt(f.version.split(".")[0]))>=1;let h=!0;return Array.isArray(this.allowedOrigins)&&(h=this.allowedOrigins.find(g=>g.test(s))!==void 0),!c&&E&&p&&h},this.logIncomingMessage=s=>{console.info(`Safe Apps SDK v1: A message was received from origin ${s.origin}. `,s.data)},this.onParentMessage=s=>{this.isValidMessage(s)&&(this.debugMode&&this.logIncomingMessage(s),this.handleIncomingMessage(s.data))},this.handleIncomingMessage=s=>{const{id:f}=s,l=this.callbacks.get(f);l&&(l(s),this.callbacks.delete(f))},this.send=(s,f)=>{const l=n.MessageFormatter.makeRequest(s,f);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(l,"*"),new Promise((c,E)=>{this.callbacks.set(l.id,d=>{if(!d.success){E(new Error(d.error));return}c(d)})})},this.allowedOrigins=a,this.debugMode=o,this.isServer||window.addEventListener("message",this.onParentMessage)}}u.default=r,t(es,u)})(mM);var md={},bd={},gd={};Object.defineProperty(gd,"__esModule",{value:!0});gd.isObjectEIP712TypedData=void 0;const yD0=u=>typeof u=="object"&&u!=null&&"domain"in u&&"types"in u&&"message"in u;gd.isObjectEIP712TypedData=yD0;var bM={};Object.defineProperty(bM,"__esModule",{value:!0});var gM={},AM={},ta={},ar={},cA=x0&&x0.__awaiter||function(u,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(l){try{f(n.next(l))}catch(c){a(c)}}function s(l){try{f(n.throw(l))}catch(c){a(c)}}function f(l){l.done?i(l.value):r(l.value).then(o,s)}f((n=n.apply(u,e||[])).next())})};Object.defineProperty(ar,"__esModule",{value:!0});ar.deleteData=ar.fetchData=ar.stringifyQuery=ar.insertParams=void 0;const vD0=u=>typeof u=="object"&&u!==null&&"code"in u&&"message"in u;function BD0(u,e,t){return u.replace(new RegExp(`\\{${e}\\}`,"g"),t)}function FD0(u,e){return e?Object.keys(e).reduce((t,n)=>BD0(t,n,String(e[n])),u):u}ar.insertParams=FD0;function DD0(u){if(!u)return"";const e=new URLSearchParams;Object.keys(u).forEach(n=>{u[n]!=null&&e.append(n,String(u[n]))});const t=e.toString();return t?`?${t}`:""}ar.stringifyQuery=DD0;function yM(u){return cA(this,void 0,void 0,function*(){let e;try{e=yield u.json()}catch{if(u.headers&&u.headers.get("content-length")!=="0")throw new Error(`Invalid response content: ${u.statusText}`)}if(!u.ok){const t=vD0(e)?`${e.code}: ${e.message}`:u.statusText;throw new Error(t)}return e})}function wD0(u,e){return cA(this,void 0,void 0,function*(){let t;e!=null&&(t={method:"POST",body:typeof e=="string"?e:JSON.stringify(e),headers:{"Content-Type":"application/json"}});const n=yield fetch(u,t);return yM(n)})}ar.fetchData=wD0;function xD0(u){return cA(this,void 0,void 0,function*(){const t=yield fetch(u,{method:"DELETE"});return yM(t)})}ar.deleteData=xD0;Object.defineProperty(ta,"__esModule",{value:!0});ta.deleteEndpoint=ta.getEndpoint=ta.postEndpoint=void 0;const Pf=ar;function EA(u,e,t,n){const r=(0,Pf.insertParams)(e,t),i=(0,Pf.stringifyQuery)(n);return`${u}${r}${i}`}function kD0(u,e,t){const n=EA(u,e,t==null?void 0:t.path,t==null?void 0:t.query);return(0,Pf.fetchData)(n,t==null?void 0:t.body)}ta.postEndpoint=kD0;function _D0(u,e,t,n){if(n)return(0,Pf.fetchData)(n);const r=EA(u,e,t==null?void 0:t.path,t==null?void 0:t.query);return(0,Pf.fetchData)(r)}ta.getEndpoint=_D0;function SD0(u,e,t){const n=EA(u,e,t==null?void 0:t.path);return(0,Pf.deleteData)(n)}ta.deleteEndpoint=SD0;var Ad={};Object.defineProperty(Ad,"__esModule",{value:!0});Ad.DEFAULT_BASE_URL=void 0;Ad.DEFAULT_BASE_URL="https://safe-client.safe.global";var vM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ImplementationVersionState=void 0,function(e){e.UP_TO_DATE="UP_TO_DATE",e.OUTDATED="OUTDATED",e.UNKNOWN="UNKNOWN"}(u.ImplementationVersionState||(u.ImplementationVersionState={}))})(vM);var BM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.SafeAppSocialPlatforms=u.SafeAppFeatures=u.SafeAppAccessPolicyTypes=void 0,function(e){e.NoRestrictions="NO_RESTRICTIONS",e.DomainAllowlist="DOMAIN_ALLOWLIST"}(u.SafeAppAccessPolicyTypes||(u.SafeAppAccessPolicyTypes={})),function(e){e.BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS"}(u.SafeAppFeatures||(u.SafeAppFeatures={})),function(e){e.TWITTER="TWITTER",e.GITHUB="GITHUB",e.DISCORD="DISCORD"}(u.SafeAppSocialPlatforms||(u.SafeAppSocialPlatforms={}))})(BM);var FM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.LabelValue=u.DetailedExecutionInfoType=u.TransactionListItemType=u.ConflictType=u.TransactionInfoType=u.SettingsInfoType=u.TransactionTokenType=u.TransferDirection=u.TransactionStatus=u.Operation=void 0,function(e){e[e.CALL=0]="CALL",e[e.DELEGATE=1]="DELEGATE"}(u.Operation||(u.Operation={})),function(e){e.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",e.AWAITING_EXECUTION="AWAITING_EXECUTION",e.CANCELLED="CANCELLED",e.FAILED="FAILED",e.SUCCESS="SUCCESS"}(u.TransactionStatus||(u.TransactionStatus={})),function(e){e.INCOMING="INCOMING",e.OUTGOING="OUTGOING",e.UNKNOWN="UNKNOWN"}(u.TransferDirection||(u.TransferDirection={})),function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_COIN="NATIVE_COIN"}(u.TransactionTokenType||(u.TransactionTokenType={})),function(e){e.SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",e.ADD_OWNER="ADD_OWNER",e.REMOVE_OWNER="REMOVE_OWNER",e.SWAP_OWNER="SWAP_OWNER",e.CHANGE_THRESHOLD="CHANGE_THRESHOLD",e.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",e.ENABLE_MODULE="ENABLE_MODULE",e.DISABLE_MODULE="DISABLE_MODULE",e.SET_GUARD="SET_GUARD",e.DELETE_GUARD="DELETE_GUARD"}(u.SettingsInfoType||(u.SettingsInfoType={})),function(e){e.TRANSFER="Transfer",e.SETTINGS_CHANGE="SettingsChange",e.CUSTOM="Custom",e.CREATION="Creation"}(u.TransactionInfoType||(u.TransactionInfoType={})),function(e){e.NONE="None",e.HAS_NEXT="HasNext",e.END="End"}(u.ConflictType||(u.ConflictType={})),function(e){e.TRANSACTION="TRANSACTION",e.LABEL="LABEL",e.CONFLICT_HEADER="CONFLICT_HEADER",e.DATE_LABEL="DATE_LABEL"}(u.TransactionListItemType||(u.TransactionListItemType={})),function(e){e.MULTISIG="MULTISIG",e.MODULE="MODULE"}(u.DetailedExecutionInfoType||(u.DetailedExecutionInfoType={})),function(e){e.Queued="Queued",e.Next="Next"}(u.LabelValue||(u.LabelValue={}))})(FM);var DM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.FEATURES=u.GAS_PRICE_TYPE=u.RPC_AUTHENTICATION=void 0,function(e){e.API_KEY_PATH="API_KEY_PATH",e.NO_AUTHENTICATION="NO_AUTHENTICATION",e.UNKNOWN="UNKNOWN"}(u.RPC_AUTHENTICATION||(u.RPC_AUTHENTICATION={})),function(e){e.ORACLE="ORACLE",e.FIXED="FIXED",e.FIXED_1559="FIXED1559",e.UNKNOWN="UNKNOWN"}(u.GAS_PRICE_TYPE||(u.GAS_PRICE_TYPE={})),function(e){e.ERC721="ERC721",e.SAFE_APPS="SAFE_APPS",e.CONTRACT_INTERACTION="CONTRACT_INTERACTION",e.DOMAIN_LOOKUP="DOMAIN_LOOKUP",e.SPENDING_LIMIT="SPENDING_LIMIT",e.EIP1559="EIP1559",e.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",e.TX_SIMULATION="TX_SIMULATION",e.EIP1271="EIP1271"}(u.FEATURES||(u.FEATURES={}))})(DM);var wM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.TokenType=void 0,function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_TOKEN="NATIVE_TOKEN"}(u.TokenType||(u.TokenType={}))})(wM);var xM={};Object.defineProperty(xM,"__esModule",{value:!0});var kM={};Object.defineProperty(kM,"__esModule",{value:!0});var _M={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.SafeMessageStatus=u.SafeMessageListItemType=void 0,function(e){e.DATE_LABEL="DATE_LABEL",e.MESSAGE="MESSAGE"}(u.SafeMessageListItemType||(u.SafeMessageListItemType={})),function(e){e.NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",e.CONFIRMED="CONFIRMED"}(u.SafeMessageStatus||(u.SafeMessageStatus={}))})(_M);var SM={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.DeviceType=void 0,function(e){e.ANDROID="ANDROID",e.IOS="IOS",e.WEB="WEB"}(u.DeviceType||(u.DeviceType={}))})(SM);(function(u){var e=x0&&x0.__createBinding||(Object.create?function(H,L,n0,s0){s0===void 0&&(s0=n0);var a0=Object.getOwnPropertyDescriptor(L,n0);(!a0||("get"in a0?!L.__esModule:a0.writable||a0.configurable))&&(a0={enumerable:!0,get:function(){return L[n0]}}),Object.defineProperty(H,s0,a0)}:function(H,L,n0,s0){s0===void 0&&(s0=n0),H[s0]=L[n0]}),t=x0&&x0.__exportStar||function(H,L){for(var n0 in H)n0!=="default"&&!Object.prototype.hasOwnProperty.call(L,n0)&&e(L,H,n0)};Object.defineProperty(u,"__esModule",{value:!0}),u.unregisterDevice=u.unregisterSafe=u.registerDevice=u.getDelegates=u.confirmSafeMessage=u.proposeSafeMessage=u.getSafeMessage=u.getSafeMessages=u.getDecodedData=u.getMasterCopies=u.getSafeApps=u.getChainConfig=u.getChainsConfig=u.proposeTransaction=u.getNonces=u.postSafeGasEstimation=u.getTransactionDetails=u.getTransactionQueue=u.getTransactionHistory=u.getCollectiblesPage=u.getCollectibles=u.getOwnedSafes=u.getFiatCurrencies=u.getBalances=u.getMultisigTransactions=u.getModuleTransactions=u.getIncomingTransfers=u.getSafeInfo=u.setBaseUrl=void 0;const n=ta,r=Ad;t(vM,u),t(BM,u),t(FM,u),t(DM,u),t(wM,u),t(xM,u),t(kM,u),t(_M,u),t(SM,u);let i=r.DEFAULT_BASE_URL;const a=H=>{i=H};u.setBaseUrl=a;function o(H,L){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:H,address:L}})}u.getSafeInfo=o;function s(H,L,n0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:H,address:L},query:n0},s0)}u.getIncomingTransfers=s;function f(H,L,n0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:H,address:L},query:n0},s0)}u.getModuleTransactions=f;function l(H,L,n0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:H,address:L},query:n0},s0)}u.getMultisigTransactions=l;function c(H,L,n0="usd",s0={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:H,address:L,currency:n0},query:s0})}u.getBalances=c;function E(){return(0,n.getEndpoint)(i,"/v1/balances/supported-fiat-codes")}u.getFiatCurrencies=E;function d(H,L){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:H,address:L}})}u.getOwnedSafes=d;function p(H,L,n0={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:H,address:L},query:n0})}u.getCollectibles=p;function h(H,L,n0={},s0){return(0,n.getEndpoint)(i,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:H,address:L},query:n0},s0)}u.getCollectiblesPage=h;function g(H,L,n0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:H,safe_address:L},query:{}},n0)}u.getTransactionHistory=g;function b(H,L,n0,s0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:H,safe_address:L},query:{trusted:s0}},n0)}u.getTransactionQueue=b;function m(H,L){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:H,transactionId:L}})}u.getTransactionDetails=m;function A(H,L,n0){return(0,n.postEndpoint)(i,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:H,safe_address:L},body:n0})}u.postSafeGasEstimation=A;function y(H,L){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/nonces",{path:{chainId:H,safe_address:L}})}u.getNonces=y;function B(H,L,n0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:H,safe_address:L},body:n0})}u.proposeTransaction=B;function v(H){return(0,n.getEndpoint)(i,"/v1/chains",{query:H})}u.getChainsConfig=v;function C(H){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}",{path:{chainId:H}})}u.getChainConfig=C;function D(H,L={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safe-apps",{path:{chainId:H},query:L})}u.getSafeApps=D;function T(H){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:H}})}u.getMasterCopies=T;function _(H,L,n0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/data-decoder",{path:{chainId:H},body:{data:L,to:n0}})}u.getDecodedData=_;function $(H,L,n0){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:H,safe_address:L},query:{}},n0)}u.getSafeMessages=$;function u0(H,L){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:H,message_hash:L}})}u.getSafeMessage=u0;function e0(H,L,n0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:H,safe_address:L},body:n0})}u.proposeSafeMessage=e0;function o0(H,L,n0){return(0,n.postEndpoint)(i,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:H,message_hash:L},body:n0})}u.confirmSafeMessage=o0;function N(H,L={}){return(0,n.getEndpoint)(i,"/v1/chains/{chainId}/delegates",{path:{chainId:H},query:L})}u.getDelegates=N;function R(H){return(0,n.postEndpoint)(i,"/v1/register/notifications",{body:H})}u.registerDevice=R;function V(H,L,n0){return(0,n.deleteEndpoint)(i,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:H,safe_address:L,uuid:n0}})}u.unregisterSafe=V;function G(H,L){return(0,n.deleteEndpoint)(i,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:H,uuid:L}})}u.unregisterDevice=G})(AM);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.TransferDirection=u.TransactionStatus=u.TokenType=u.Operation=void 0;var e=AM;Object.defineProperty(u,"Operation",{enumerable:!0,get:function(){return e.Operation}}),Object.defineProperty(u,"TokenType",{enumerable:!0,get:function(){return e.TokenType}}),Object.defineProperty(u,"TransactionStatus",{enumerable:!0,get:function(){return e.TransactionStatus}}),Object.defineProperty(u,"TransferDirection",{enumerable:!0,get:function(){return e.TransferDirection}})})(gM);var TM={};Object.defineProperty(TM,"__esModule",{value:!0});(function(u){var e=x0&&x0.__createBinding||(Object.create?function(n,r,i,a){a===void 0&&(a=i);var o=Object.getOwnPropertyDescriptor(r,i);(!o||("get"in o?!r.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(n,a,o)}:function(n,r,i,a){a===void 0&&(a=i),n[a]=r[i]}),t=x0&&x0.__exportStar||function(n,r){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&e(r,n,i)};Object.defineProperty(u,"__esModule",{value:!0}),t(gd,u),t(bM,u),t(gM,u),t(TM,u)})(bd);Object.defineProperty(md,"__esModule",{value:!0});md.TXs=void 0;const d6=es,TD0=bd;class PD0{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(d6.Methods.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const t={message:e};return(await this.communicator.send(d6.Methods.signMessage,t)).data}async signTypedMessage(e){if(!(0,TD0.isObjectEIP712TypedData)(e))throw new Error("Invalid typed data");return(await this.communicator.send(d6.Methods.signTypedMessage,{typedData:e})).data}async send({txs:e,params:t}){if(!e||!e.length)throw new Error("No transactions were passed");const n={txs:e,params:t};return(await this.communicator.send(d6.Methods.sendTransactions,n)).data}}md.TXs=PD0;var yd={},gc={};Object.defineProperty(gc,"__esModule",{value:!0});gc.RPC_CALLS=void 0;gc.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"};Object.defineProperty(yd,"__esModule",{value:!0});yd.Eth=void 0;const vt=gc,OD0=es,Ar={defaultBlockParam:(u="latest")=>u,returnFullTxObjectParam:(u=!1)=>u,blockNumberToHex:u=>Number.isInteger(u)?`0x${u.toString(16)}`:u};class ID0{constructor(e){this.communicator=e,this.call=this.buildRequest({call:vt.RPC_CALLS.eth_call,formatters:[null,Ar.defaultBlockParam]}),this.getBalance=this.buildRequest({call:vt.RPC_CALLS.eth_getBalance,formatters:[null,Ar.defaultBlockParam]}),this.getCode=this.buildRequest({call:vt.RPC_CALLS.eth_getCode,formatters:[null,Ar.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:vt.RPC_CALLS.eth_getStorageAt,formatters:[null,Ar.blockNumberToHex,Ar.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:vt.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:vt.RPC_CALLS.eth_getBlockByHash,formatters:[null,Ar.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:vt.RPC_CALLS.eth_getBlockByNumber,formatters:[Ar.blockNumberToHex,Ar.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:vt.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:vt.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:vt.RPC_CALLS.eth_getTransactionCount,formatters:[null,Ar.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:vt.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=t=>this.buildRequest({call:vt.RPC_CALLS.eth_estimateGas})([t]),this.setSafeSettings=this.buildRequest({call:vt.RPC_CALLS.safe_setSettings})}buildRequest(e){const{call:t,formatters:n}=e;return async r=>{n&&Array.isArray(r)&&n.forEach((o,s)=>{o&&(r[s]=o(r[s]))});const i={call:t,params:r||[]};return(await this.communicator.send(OD0.Methods.rpcCall,i)).data}}}yd.Eth=ID0;var vd={};const ND0=V2(je0);var Of={};Object.defineProperty(Of,"__esModule",{value:!0});Of.MAGIC_VALUE_BYTES=Of.MAGIC_VALUE=void 0;const RD0="0x1626ba7e";Of.MAGIC_VALUE=RD0;const MD0="0x20c13b0b";Of.MAGIC_VALUE_BYTES=MD0;var dA={},Ac={},Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.PermissionsError=Oo.PERMISSIONS_REQUEST_REJECTED=void 0;Oo.PERMISSIONS_REQUEST_REJECTED=4001;class pA extends Error{constructor(e,t,n){super(e),this.code=t,this.data=n,Object.setPrototypeOf(this,pA.prototype)}}Oo.PermissionsError=pA;Object.defineProperty(Ac,"__esModule",{value:!0});Ac.Wallet=void 0;const bp=es,p6=Oo;class jD0{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(bp.Methods.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new p6.PermissionsError("Permissions request is invalid",p6.PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(bp.Methods.wallet_requestPermissions,e)).data}catch{throw new p6.PermissionsError("Permissions rejected",p6.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(e){return e.every(t=>typeof t=="object"?Object.keys(t).every(n=>!!Object.values(bp.RestrictedMethods).includes(n)):!1)}}Ac.Wallet=jD0;Object.defineProperty(dA,"__esModule",{value:!0});const zD0=Ac,iw=Oo,aw=(u,e)=>e.some(t=>t.parentCapability===u),LD0=()=>(u,e,t)=>{const n=t.value;return t.value=async function(){const r=new zD0.Wallet(this.communicator);let i=await r.getPermissions();if(aw(e,i)||(i=await r.requestPermissions([{[e]:{}}])),!aw(e,i))throw new iw.PermissionsError("Permissions rejected",iw.PERMISSIONS_REQUEST_REJECTED);return n.apply(this)},t};dA.default=LD0;var $D0=x0&&x0.__decorate||function(u,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i},UD0=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(vd,"__esModule",{value:!0});vd.Safe=void 0;const h6=ND0,ow=Of,mi=es,sw=gc,WD0=bd,qD0=UD0(dA);class PM{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(mi.Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(mi.Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(mi.Methods.getSafeBalances,{currency:e})).data}async check1271Signature(e,t="0x"){const n=await this.getInfo(),r=(0,h6.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),i={call:sw.RPC_CALLS.eth_call,params:[{to:n.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(mi.Methods.rpcCall,i)).data.slice(0,10).toLowerCase()===ow.MAGIC_VALUE}catch{return!1}}async check1271SignatureBytes(e,t="0x"){const n=await this.getInfo(),r=(0,h6.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),i={call:sw.RPC_CALLS.eth_call,params:[{to:n.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(mi.Methods.rpcCall,i)).data.slice(0,10).toLowerCase()===ow.MAGIC_VALUE_BYTES}catch{return!1}}calculateMessageHash(e){return(0,h6.hashMessage)(e)}calculateTypedMessageHash(e){const t=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let n=e.primaryType;if(!n){const r=Object.values(e.types),i=Object.keys(e.types).filter(a=>r.every(o=>o.every(({type:s})=>s.replace("[","").replace("]","")!==a)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");n=i[0]}return(0,h6.hashTypedData)({message:e.message,domain:Object.assign(Object.assign({},e.domain),{chainId:t,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt}),types:e.types,primaryType:n})}async getOffChainSignature(e){return(await this.communicator.send(mi.Methods.getOffChainSignature,e)).data}async isMessageSigned(e,t="0x"){let n;if(typeof e=="string"&&(n=async()=>{const r=this.calculateMessageHash(e);return await this.isMessageHashSigned(r,t)}),(0,WD0.isObjectEIP712TypedData)(e)&&(n=async()=>{const r=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(r,t)}),n)return await n();throw new Error("Invalid message type")}async isMessageHashSigned(e,t="0x"){const n=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const r of n)if(await r(e,t))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(mi.Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(mi.Methods.requestAddressBook,void 0)).data}}$D0([(0,qD0.default)()],PM.prototype,"requestAddressBook",null);vd.Safe=PM;var HD0=x0&&x0.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(w2,"__esModule",{value:!0});const GD0=HD0(mM),VD0=md,KD0=yd,QD0=vd,JD0=Ac;let YD0=class{constructor(e={}){const{allowedDomains:t=null,debug:n=!1}=e;this.communicator=new GD0.default(t,n),this.eth=new KD0.Eth(this.communicator),this.txs=new VD0.TXs(this.communicator),this.safe=new QD0.Safe(this.communicator),this.wallet=new JD0.Wallet(this.communicator)}};w2.default=YD0;(function(u){var e=x0&&x0.__createBinding||(Object.create?function(a,o,s,f){f===void 0&&(f=s);var l=Object.getOwnPropertyDescriptor(o,s);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(a,f,l)}:function(a,o,s,f){f===void 0&&(f=s),a[f]=o[s]}),t=x0&&x0.__exportStar||function(a,o){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&e(o,a,s)},n=x0&&x0.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(u,"__esModule",{value:!0}),u.getSDKVersion=void 0;const r=n(w2);u.default=r.default,t(w2,u),t(bd,u),t(es,u),t(mc,u);var i=bc;Object.defineProperty(u,"getSDKVersion",{enumerable:!0,get:function(){return i.getSDKVersion}})})(CM);const C6=_1(CM);var J3,Y3,ZD0=class extends Z1{constructor({chains:u,options:e}){const t={shimDisconnect:!1,...e};super({chains:u,options:t}),this.id="safe",this.name="Safe",this.ready=!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,Yu(this,J3,void 0),Yu(this,Y3,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`;let n=C6;typeof C6!="function"&&typeof C6.default=="function"&&(n=C6.default),Xr(this,Y3,new n(t))}async connect(){var n;const u=await this.getProvider();if(!u)throw new nt;u.on&&(u.on("accountsChanged",this.onAccountsChanged),u.on("chainChanged",this.onChainChanged),u.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const e=await this.getAccount(),t=await this.getChainId();return this.options.shimDisconnect&&((n=this.storage)==null||n.setItem(this.shimDisconnectKey,!0)),{account:e,chain:{id:t,unsupported:this.isChainUnsupported(t)}}}async disconnect(){var e;const u=await this.getProvider();u!=null&&u.removeListener&&(u.removeListener("accountsChanged",this.onAccountsChanged),u.removeListener("chainChanged",this.onChainChanged),u.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((e=this.storage)==null||e.removeItem(this.shimDisconnectKey)))}async getAccount(){const u=await this.getProvider();if(!u)throw new nt;const e=await u.request({method:"eth_accounts"});return Su(e[0])}async getChainId(){const u=await this.getProvider();if(!u)throw new nt;return To(u.chainId)}async getProvider(){if(!W0(this,J3)){const u=await W0(this,Y3).safe.getInfo();if(!u)throw new Error("Could not load Safe information");Xr(this,J3,new aM.SafeAppProvider(u,W0(this,Y3)))}return W0(this,J3)}async getWalletClient({chainId:u}={}){const e=await this.getProvider(),t=await this.getAccount(),n=this.chains.find(r=>r.id===u);if(!e)throw new Error("provider is required.");return u3({account:t,chain:n,transport:Zf(e)})}async isAuthorized(){var u;try{return this.options.shimDisconnect&&!((u=this.storage)!=null&&u.getItem(this.shimDisconnectKey))?!1:!!await this.getAccount()}catch{return!1}}onAccountsChanged(u){}onChainChanged(u){}onDisconnect(){this.emit("disconnect")}};J3=new WeakMap;Y3=new WeakMap;function XD0(u){return Object.fromEntries(Object.entries(u).filter(([e,t])=>t!==void 0))}function uw0(u){return"groupName"in u[0]?fw(u):fw([{groupName:"",wallets:u}])()}var fw=u=>()=>{let e=-1;const t=[],n=[],r=[],i=[];return u.forEach(({groupName:o,wallets:s},f)=>{s.forEach(l=>{if(e++,l!=null&&l.iconAccent&&!iA0(l==null?void 0:l.iconAccent))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${l.name}`);const c={...l,groupIndex:f,groupName:o,index:e};typeof l.hidden=="function"?r.push(c):n.push(c)})}),[...n,...r].forEach(({createConnector:o,groupIndex:s,groupName:f,hidden:l,index:c,...E})=>{if(typeof l=="function"&&l({wallets:[...i.map(({connector:m,id:A,installed:y,name:B})=>({connector:m,id:A,installed:y,name:B}))]}))return;const{connector:d,...p}=XD0(o());let h;if(E.id==="walletConnect"&&p.qrCode&&!Ae()){const{chains:b,options:m}=d;h=new rM({chains:b,options:{...m,showQrModal:!0}}),t.push(h)}const g={connector:d,groupIndex:s,groupName:f,index:c,walletConnectModalConnector:h,...E,...p};i.push(g),t.includes(d)||(t.push(d),d._wallets=[]),d._wallets.push(g)}),t},ew0=({chains:u,...e})=>{var t;return{id:"brave",name:"Brave Wallet",iconUrl:async()=>(await L0(()=>import("./braveWallet-BTBH4MDN-rhLwbrvd.js"),__vite__mapDeps([]))).default,iconBackground:"#fff",installed:typeof window<"u"&&((t=window.ethereum)==null?void 0:t.isBraveWallet)===!0,downloadUrls:{},createConnector:()=>({connector:new Df({chains:u,options:e})})}};function OM(u){if(typeof window>"u"||typeof window.ethereum>"u")return;const e=window.ethereum.providers;return e?e.find(t=>t[u]):window.ethereum[u]?window.ethereum:void 0}function IM(u){return!!OM(u)}function tw0(u){if(typeof window>"u"||typeof window.ethereum>"u")return;const e=window.ethereum.providers,t=OM(u);return t||(typeof e<"u"&&e.length>0?e[0]:window.ethereum)}function nw0({chains:u,flag:e,options:t}){return new Df({chains:u,options:{getProvider:()=>tw0(e),...t}})}var rw0=({appName:u,chains:e,...t})=>{const n=IM("isCoinbaseWallet");return{id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",iconUrl:async()=>(await L0(()=>import("./coinbaseWallet-2OUR5TUP-lljav0iR.js"),__vite__mapDeps([]))).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:n||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},createConnector:()=>{const r=Xo(),i=new MF0({chains:e,options:{appName:u,headlessMode:!0,...t}});return{connector:i,...r?{}:{qrCode:{getUri:async()=>(await i.getProvider()).qrUrl,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}}}}}},iw0=({chains:u,...e})=>({id:"injected",name:"Browser Wallet",iconUrl:async()=>(await L0(()=>import("./injectedWallet-EUKDEAIU-nRYX44n1.js"),__vite__mapDeps([]))).default,iconBackground:"#fff",hidden:({wallets:t})=>t.some(n=>n.installed&&n.name===n.connector.name&&(n.connector instanceof Df||n.id==="coinbase")),createConnector:()=>({connector:new Df({chains:u,options:e})})});async function hA(u,e){const t=await u.getProvider();return e==="2"?new Promise(n=>t.once("display_uri",n)):t.connector.uri}var NM=new Map;function aw0(u,e){const t=u==="1"?new LF0(e):new rM(e);return NM.set(JSON.stringify(e),t),t}function x2({chains:u,options:e={},projectId:t,version:n="2"}){const r="21fef48091f12692cad574a6f7753643";if(n==="2"){if(!t||t==="")throw new Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");(t==="YOUR_PROJECT_ID"||t===r)&&console.warn("Invalid projectId. Please create a unique WalletConnect Cloud projectId for your dApp https://www.rainbowkit.com/docs/installation#configure")}const i={chains:u,options:n==="1"?{qrcode:!1,...e}:{projectId:t==="YOUR_PROJECT_ID"?r:t,showQrModal:!1,...e}},a=JSON.stringify(i),o=NM.get(a);return o??aw0(n,i)}function lw(u){return!(!(u!=null&&u.isMetaMask)||u.isBraveWallet&&!u._events&&!u._state||u.isApexWallet||u.isAvalanche||u.isBackpack||u.isBifrost||u.isBitKeep||u.isBitski||u.isBlockWallet||u.isCoinbaseWallet||u.isDawn||u.isEnkrypt||u.isExodus||u.isFrame||u.isFrontier||u.isGamestop||u.isHyperPay||u.isImToken||u.isKuCoinWallet||u.isMathWallet||u.isOkxWallet||u.isOKExWallet||u.isOneInchIOSWallet||u.isOneInchAndroidWallet||u.isOpera||u.isPhantom||u.isPortal||u.isRabby||u.isRainbow||u.isStatus||u.isTalisman||u.isTally||u.isTokenPocket||u.isTokenary||u.isTrust||u.isTrustWallet||u.isXDEFI||u.isZeal||u.isZerion)}var ow0=({chains:u,projectId:e,walletConnectOptions:t,walletConnectVersion:n="2",...r})=>{var i,a;const o=typeof window<"u"&&((i=window.ethereum)==null?void 0:i.providers),s=typeof window<"u"&&typeof window.ethereum<"u"&&(((a=window.ethereum.providers)==null?void 0:a.some(lw))||window.ethereum.isMetaMask),f=!s;return{id:"metaMask",name:"MetaMask",iconUrl:async()=>(await L0(()=>import("./metaMaskWallet-ORHUNQRP-B-MG5eKR.js"),__vite__mapDeps([]))).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:f?void 0:s,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},createConnector:()=>{const l=f?x2({projectId:e,chains:u,version:n,options:t}):new jF0({chains:u,options:{getProvider:()=>o?o.find(lw):typeof window<"u"?window.ethereum:void 0,...r}}),c=async()=>{const E=await hA(l,n);return Ig()?E:Xo()?`metamask://wc?uri=${encodeURIComponent(E)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(E)}`};return{connector:l,mobile:{getUri:f?c:void 0},qrCode:f?{getUri:c,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}}}}}},sw0=({chains:u,projectId:e,walletConnectOptions:t,walletConnectVersion:n="2",...r})=>{const i=IM("isRainbow"),a=!i;return{id:"rainbow",name:"Rainbow",iconUrl:async()=>(await L0(()=>import("./rainbowWallet-GGU64QEI-aO3VF4UJ.js"),__vite__mapDeps([]))).default,iconBackground:"#0c2f78",installed:a?void 0:i,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},createConnector:()=>{const o=a?x2({projectId:e,chains:u,version:n,options:t}):nw0({flag:"isRainbow",chains:u,options:r}),s=async()=>{const f=await hA(o,n);return Ig()?f:Xo()?`rainbow://wc?uri=${encodeURIComponent(f)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(f)}&connector=rainbowkit`};return{connector:o,mobile:{getUri:a?s:void 0},qrCode:a?{getUri:s,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0}}}},fw0=({chains:u,...e})=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await L0(()=>import("./safeWallet-DFMLSLCR-0HldBjhm.js"),__vite__mapDeps([]))).default,installed:!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:()=>({connector:new ZD0({chains:u,options:e})})}),lw0=({chains:u,options:e,projectId:t,version:n="2"})=>({id:"walletConnect",name:"WalletConnect",iconUrl:async()=>(await L0(()=>import("./walletConnectWallet-D6ZADJM7-hbivFVny.js"),__vite__mapDeps([]))).default,iconBackground:"#3b99fc",createConnector:()=>{const r=Xo(),i=x2(n==="1"?{version:"1",chains:u,options:{qrcode:r,...e}}:{version:"2",chains:u,projectId:t,options:{showQrModal:r,...e}}),a=async()=>hA(i,n);return{connector:i,...r?{}:{mobile:{getUri:a},qrCode:{getUri:a}}}}}),cw0=({appName:u,chains:e,projectId:t})=>{const n=[{groupName:"Popular",wallets:[iw0({chains:e}),fw0({chains:e}),sw0({chains:e,projectId:t}),rw0({appName:u,chains:e}),ow0({chains:e,projectId:t}),lw0({chains:e,projectId:t}),ew0({chains:e})]}];return{connectors:uw0(n),wallets:n}};function Ew0(u){return Xe("MuiSvgIcon",u)}bt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dw0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],pw0=u=>{const{color:e,fontSize:t,classes:n}=u,r={root:["root",e!=="inherit"&&`color${su(e)}`,`fontSize${su(t)}`]};return mt(r,Ew0,n)},hw0=Ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,t.color!=="inherit"&&e[`color${su(t.color)}`],e[`fontSize${su(t.fontSize)}`]]}})(({theme:u,ownerState:e})=>{var t,n,r,i,a,o,s,f,l,c,E,d,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=u.transitions)==null||(n=t.create)==null?void 0:n.call(t,"fill",{duration:(r=u.transitions)==null||(r=r.duration)==null?void 0:r.shorter}),fontSize:{inherit:"inherit",small:((i=u.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((o=u.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,24))||"1.5rem",large:((f=u.typography)==null||(l=f.pxToRem)==null?void 0:l.call(f,35))||"2.1875rem"}[e.fontSize],color:(c=(E=(u.vars||u).palette)==null||(E=E[e.color])==null?void 0:E.main)!=null?c:{action:(d=(u.vars||u).palette)==null||(d=d.action)==null?void 0:d.active,disabled:(p=(u.vars||u).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[e.color]}}),RM=w.forwardRef(function(e,t){const n=gt({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:o="svg",fontSize:s="medium",htmlColor:f,inheritViewBox:l=!1,titleAccess:c,viewBox:E="0 0 24 24"}=n,d=cu(n,dw0),p=w.isValidElement(r)&&r.type==="svg",h=r0({},n,{color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:E,hasSvgAsChild:p}),g={};l||(g.viewBox=E);const b=pw0(h);return f0.jsxs(hw0,r0({as:o,className:pu(b.root,i),focusable:"false",color:f,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:t},g,d,p&&r.props,{ownerState:h,children:[p?r.props.children:r,c?f0.jsx("title",{children:c}):null]}))});RM.muiName="SvgIcon";const cw=RM;function Cw0(u,e){function t(n,r){return f0.jsx(cw,r0({"data-testid":`${e}Icon`,ref:r},n,{children:u}))}return t.muiName=cw.muiName,w.memo(w.forwardRef(t))}function mw0(u){return Xe("MuiTypography",u)}bt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bw0=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],gw0=u=>{const{align:e,gutterBottom:t,noWrap:n,paragraph:r,variant:i,classes:a}=u,o={root:["root",i,u.align!=="inherit"&&`align${su(e)}`,t&&"gutterBottom",n&&"noWrap",r&&"paragraph"]};return mt(o,mw0,a)},Aw0=Ee("span",{name:"MuiTypography",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,t.variant&&e[t.variant],t.align!=="inherit"&&e[`align${su(t.align)}`],t.noWrap&&e.noWrap,t.gutterBottom&&e.gutterBottom,t.paragraph&&e.paragraph]}})(({theme:u,ownerState:e})=>r0({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&u.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),Ew={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yw0={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},vw0=u=>yw0[u]||u,Bw0=w.forwardRef(function(e,t){const n=gt({props:e,name:"MuiTypography"}),r=vw0(n.color),i=j9(r0({},n,{color:r})),{align:a="inherit",className:o,component:s,gutterBottom:f=!1,noWrap:l=!1,paragraph:c=!1,variant:E="body1",variantMapping:d=Ew}=i,p=cu(i,bw0),h=r0({},i,{align:a,color:r,className:o,component:s,gutterBottom:f,noWrap:l,paragraph:c,variant:E,variantMapping:d}),g=s||(c?"p":d[E]||Ew[E])||"span",b=gw0(h);return f0.jsx(Aw0,r0({as:g,ref:t,ownerState:h,className:pu(b.root,o)},p))}),VC=Bw0;function Fw0(u){return typeof u=="string"}function Dw0(u,e,t){return u===void 0||Fw0(u)?e:r0({},e,{ownerState:r0({},e.ownerState,t)})}const ww0={disableDefaultClasses:!1},xw0=w.createContext(ww0);function kw0(u){const{disableDefaultClasses:e}=w.useContext(xw0);return t=>e?"":u(t)}function KC(u,e=[]){if(u===void 0)return{};const t={};return Object.keys(u).filter(n=>n.match(/^on[A-Z]/)&&typeof u[n]=="function"&&!e.includes(n)).forEach(n=>{t[n]=u[n]}),t}function _w0(u,e,t){return typeof u=="function"?u(e,t):u}function dw(u){if(u===void 0)return{};const e={};return Object.keys(u).filter(t=>!(t.match(/^on[A-Z]/)&&typeof u[t]=="function")).forEach(t=>{e[t]=u[t]}),e}function Sw0(u){const{getSlotProps:e,additionalProps:t,externalSlotProps:n,externalForwardedProps:r,className:i}=u;if(!e){const d=pu(t==null?void 0:t.className,i,r==null?void 0:r.className,n==null?void 0:n.className),p=r0({},t==null?void 0:t.style,r==null?void 0:r.style,n==null?void 0:n.style),h=r0({},t,r,n);return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:void 0}}const a=KC(r0({},r,n)),o=dw(n),s=dw(r),f=e(a),l=pu(f==null?void 0:f.className,t==null?void 0:t.className,i,r==null?void 0:r.className,n==null?void 0:n.className),c=r0({},f==null?void 0:f.style,t==null?void 0:t.style,r==null?void 0:r.style,n==null?void 0:n.style),E=r0({},f,t,s,o);return l.length>0&&(E.className=l),Object.keys(c).length>0&&(E.style=c),{props:E,internalRef:f.ref}}const Tw0=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Pw0(u){var e;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1}=u,a=cu(u,Tw0),o=i?{}:_w0(n,r),{props:s,internalRef:f}=Sw0(r0({},a,{externalSlotProps:o})),l=I5(f,o==null?void 0:o.ref,(e=u.additionalProps)==null?void 0:e.ref);return Dw0(t,r0({},s,{ref:l}),r)}function Ow0(u){return Xe("MuiButton",u)}bt("MuiButton",["root","active","disabled","focusVisible"]);function Iw0(u={}){const{disabled:e=!1,focusableWhenDisabled:t,href:n,rootRef:r,tabIndex:i,to:a,type:o}=u,s=w.useRef(),[f,l]=w.useState(!1),{isFocusVisibleRef:c,onFocus:E,onBlur:d,ref:p}=pS(),[h,g]=w.useState(!1);e&&!t&&h&&g(!1),w.useEffect(()=>{c.current=h},[h,c]);const[b,m]=w.useState(""),A=N=>R=>{var V;h&&R.preventDefault(),(V=N.onMouseLeave)==null||V.call(N,R)},y=N=>R=>{var V;d(R),c.current===!1&&g(!1),(V=N.onBlur)==null||V.call(N,R)},B=N=>R=>{var V;if(s.current||(s.current=R.currentTarget),E(R),c.current===!0){var G;g(!0),(G=N.onFocusVisible)==null||G.call(N,R)}(V=N.onFocus)==null||V.call(N,R)},v=()=>{const N=s.current;return b==="BUTTON"||b==="INPUT"&&["button","submit","reset"].includes(N==null?void 0:N.type)||b==="A"&&(N==null?void 0:N.href)},C=N=>R=>{if(!e){var V;(V=N.onClick)==null||V.call(N,R)}},D=N=>R=>{var V;e||(l(!0),document.addEventListener("mouseup",()=>{l(!1)},{once:!0})),(V=N.onMouseDown)==null||V.call(N,R)},T=N=>R=>{var V;if((V=N.onKeyDown)==null||V.call(N,R),!R.defaultMuiPrevented&&(R.target===R.currentTarget&&!v()&&R.key===" "&&R.preventDefault(),R.target===R.currentTarget&&R.key===" "&&!e&&l(!0),R.target===R.currentTarget&&!v()&&R.key==="Enter"&&!e)){var G;(G=N.onClick)==null||G.call(N,R),R.preventDefault()}},_=N=>R=>{var V;if(R.target===R.currentTarget&&l(!1),(V=N.onKeyUp)==null||V.call(N,R),R.target===R.currentTarget&&!v()&&!e&&R.key===" "&&!R.defaultMuiPrevented){var G;(G=N.onClick)==null||G.call(N,R)}},$=w.useCallback(N=>{var R;m((R=N==null?void 0:N.tagName)!=null?R:"")},[]),u0=I5($,r,p,s),e0={};return i!==void 0&&(e0.tabIndex=i),b==="BUTTON"?(e0.type=o??"button",t?e0["aria-disabled"]=e:e0.disabled=e):b!==""&&(!n&&!a&&(e0.role="button",e0.tabIndex=i??0),e&&(e0["aria-disabled"]=e,e0.tabIndex=t?i??0:-1)),{getRootProps:(N={})=>{const R=r0({},KC(u),KC(N)),V=r0({type:o},R,e0,N,{onBlur:y(R),onClick:C(R),onFocus:B(R),onKeyDown:T(R),onKeyUp:_(R),onMouseDown:D(R),onMouseLeave:A(R),ref:u0});return delete V.onFocusVisible,V},focusVisible:h,setFocusVisible:g,active:f,rootRef:u0}}const Nw0=["action","children","disabled","focusableWhenDisabled","onFocusVisible","slotProps","slots"],Rw0=u=>{const{active:e,disabled:t,focusVisible:n}=u;return mt({root:["root",t&&"disabled",n&&"focusVisible",e&&"active"]},kw0(Ow0))},Mw0=w.forwardRef(function(e,t){var n;const{action:r,children:i,focusableWhenDisabled:a=!1,slotProps:o={},slots:s={}}=e,f=cu(e,Nw0),l=w.useRef(),{active:c,focusVisible:E,setFocusVisible:d,getRootProps:p}=Iw0(r0({},e,{focusableWhenDisabled:a}));w.useImperativeHandle(r,()=>({focusVisible:()=>{d(!0),l.current.focus()}}),[d]);const h=r0({},e,{active:c,focusableWhenDisabled:a,focusVisible:E}),g=Rw0(h),b=f.href||f.to?"a":"button",m=(n=s.root)!=null?n:b,A=Pw0({elementType:m,getSlotProps:p,externalForwardedProps:f,externalSlotProps:o.root,additionalProps:{ref:t},ownerState:h,className:g.root});return f0.jsx(m,r0({},A,{children:i}))});function jw0(u){return f0.jsx($H,r0({},u,{defaultTheme:L9,themeId:ko}))}const zw0=Cw0(f0.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Lw0(u){return Xe("MuiAvatar",u)}bt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const $w0=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Uw0=u=>{const{classes:e,variant:t,colorDefault:n}=u;return mt({root:["root",t,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Lw0,e)},Ww0=Ee("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u;return[e.root,e[t.variant],t.colorDefault&&e.colorDefault]}})(({theme:u,ownerState:e})=>r0({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:u.typography.fontFamily,fontSize:u.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},e.variant==="rounded"&&{borderRadius:(u.vars||u).shape.borderRadius},e.variant==="square"&&{borderRadius:0},e.colorDefault&&r0({color:(u.vars||u).palette.background.default},u.vars?{backgroundColor:u.vars.palette.Avatar.defaultBg}:{backgroundColor:u.palette.mode==="light"?u.palette.grey[400]:u.palette.grey[600]}))),qw0=Ee("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(u,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Hw0=Ee(zw0,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(u,e)=>e.fallback})({width:"75%",height:"75%"});function Gw0({crossOrigin:u,referrerPolicy:e,src:t,srcSet:n}){const[r,i]=w.useState(!1);return w.useEffect(()=>{if(!t&&!n)return;i(!1);let a=!0;const o=new Image;return o.onload=()=>{a&&i("loaded")},o.onerror=()=>{a&&i("error")},o.crossOrigin=u,o.referrerPolicy=e,o.src=t,n&&(o.srcset=n),()=>{a=!1}},[u,e,t,n]),r}const Vw0=w.forwardRef(function(e,t){const n=gt({props:e,name:"MuiAvatar"}),{alt:r,children:i,className:a,component:o="div",imgProps:s,sizes:f,src:l,srcSet:c,variant:E="circular"}=n,d=cu(n,$w0);let p=null;const h=Gw0(r0({},s,{src:l,srcSet:c})),g=l||c,b=g&&h!=="error",m=r0({},n,{colorDefault:!b,component:o,variant:E}),A=Uw0(m);return b?p=f0.jsx(qw0,r0({alt:r,srcSet:c,src:l,sizes:f,ownerState:m,className:A.img},s)):i!=null?p=i:g&&r?p=r[0]:p=f0.jsx(Hw0,{ownerState:m,className:A.fallback}),f0.jsx(Ww0,r0({as:o,ownerState:m,className:pu(A.root,a),ref:t},d,{children:p}))}),Kw0=Vw0;function Qw0(u){return Xe("MuiCard",u)}bt("MuiCard",["root"]);const Jw0=["className","raised"],Yw0=u=>{const{classes:e}=u;return mt({root:["root"]},Qw0,e)},Zw0=Ee(VS,{name:"MuiCard",slot:"Root",overridesResolver:(u,e)=>e.root})(()=>({overflow:"hidden"})),Xw0=w.forwardRef(function(e,t){const n=gt({props:e,name:"MuiCard"}),{className:r,raised:i=!1}=n,a=cu(n,Jw0),o=r0({},n,{raised:i}),s=Yw0(o);return f0.jsx(Zw0,r0({className:pu(s.root,r),elevation:i?8:void 0,ref:t,ownerState:o},a))}),MM=Xw0;function ux0(u){return Xe("MuiCardContent",u)}bt("MuiCardContent",["root"]);const ex0=["className","component"],tx0=u=>{const{classes:e}=u;return mt({root:["root"]},ux0,e)},nx0=Ee("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(u,e)=>e.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),rx0=w.forwardRef(function(e,t){const n=gt({props:e,name:"MuiCardContent"}),{className:r,component:i="div"}=n,a=cu(n,ex0),o=r0({},n,{component:i}),s=tx0(o);return f0.jsx(nx0,r0({as:i,className:pu(s.root,r),ownerState:o,ref:t},a))}),jM=rx0,ix0=(u,e)=>r0({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},e&&!u.vars&&{colorScheme:u.palette.mode}),ax0=u=>r0({color:(u.vars||u).palette.text.primary},u.typography.body1,{backgroundColor:(u.vars||u).palette.background.default,"@media print":{backgroundColor:(u.vars||u).palette.common.white}}),ox0=(u,e=!1)=>{var t;const n={};e&&u.colorSchemes&&Object.entries(u.colorSchemes).forEach(([a,o])=>{var s;n[u.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(s=o.palette)==null?void 0:s.mode}});let r=r0({html:ix0(u,e),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:u.typography.fontWeightBold},body:r0({margin:0},ax0(u),{"&::backdrop":{backgroundColor:(u.vars||u).palette.background.default}})},n);const i=(t=u.components)==null||(t=t.MuiCssBaseline)==null?void 0:t.styleOverrides;return i&&(r=[r,i]),r};function sx0(u){const e=gt({props:u,name:"MuiCssBaseline"}),{children:t,enableColorScheme:n=!1}=e;return f0.jsxs(w.Fragment,{children:[f0.jsx(jw0,{styles:r=>ox0(r,n)}),t]})}const fx0=w.createContext(),pw=fx0;function lx0(u){return Xe("MuiGrid",u)}const cx0=[0,1,2,3,4,5,6,7,8,9,10],Ex0=["column-reverse","column","row-reverse","row"],dx0=["nowrap","wrap-reverse","wrap"],j3=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],px0=bt("MuiGrid",["root","container","item","zeroMinWidth",...cx0.map(u=>`spacing-xs-${u}`),...Ex0.map(u=>`direction-xs-${u}`),...dx0.map(u=>`wrap-xs-${u}`),...j3.map(u=>`grid-xs-${u}`),...j3.map(u=>`grid-sm-${u}`),...j3.map(u=>`grid-md-${u}`),...j3.map(u=>`grid-lg-${u}`),...j3.map(u=>`grid-xl-${u}`)]),e1=px0,hx0=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function i4(u){const e=parseFloat(u);return`${e}${String(u).replace(String(e),"")||"px"}`}function Cx0({theme:u,ownerState:e}){let t;return u.breakpoints.keys.reduce((n,r)=>{let i={};if(e[r]&&(t=e[r]),!t)return n;if(t===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(t==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=ho({values:e.columns,breakpoints:u.breakpoints.values}),o=typeof a=="object"?a[r]:a;if(o==null)return n;const s=`${Math.round(t/o*1e8)/1e6}%`;let f={};if(e.container&&e.item&&e.columnSpacing!==0){const l=u.spacing(e.columnSpacing);if(l!=="0px"){const c=`calc(${s} + ${i4(l)})`;f={flexBasis:c,maxWidth:c}}}i=r0({flexBasis:s,flexGrow:0,maxWidth:s},f)}return u.breakpoints.values[r]===0?Object.assign(n,i):n[u.breakpoints.up(r)]=i,n},{})}function mx0({theme:u,ownerState:e}){const t=ho({values:e.direction,breakpoints:u.breakpoints.values});return dt({theme:u},t,n=>{const r={flexDirection:n};return n.indexOf("column")===0&&(r[`& > .${e1.item}`]={maxWidth:"none"}),r})}function zM({breakpoints:u,values:e}){let t="";Object.keys(e).forEach(r=>{t===""&&e[r]!==0&&(t=r)});const n=Object.keys(u).sort((r,i)=>u[r]-u[i]);return n.slice(0,n.indexOf(t))}function bx0({theme:u,ownerState:e}){const{container:t,rowSpacing:n}=e;let r={};if(t&&n!==0){const i=ho({values:n,breakpoints:u.breakpoints.values});let a;typeof i=="object"&&(a=zM({breakpoints:u.breakpoints.values,values:i})),r=dt({theme:u},i,(o,s)=>{var f;const l=u.spacing(o);return l!=="0px"?{marginTop:`-${i4(l)}`,[`& > .${e1.item}`]:{paddingTop:i4(l)}}:(f=a)!=null&&f.includes(s)?{}:{marginTop:0,[`& > .${e1.item}`]:{paddingTop:0}}})}return r}function gx0({theme:u,ownerState:e}){const{container:t,columnSpacing:n}=e;let r={};if(t&&n!==0){const i=ho({values:n,breakpoints:u.breakpoints.values});let a;typeof i=="object"&&(a=zM({breakpoints:u.breakpoints.values,values:i})),r=dt({theme:u},i,(o,s)=>{var f;const l=u.spacing(o);return l!=="0px"?{width:`calc(100% + ${i4(l)})`,marginLeft:`-${i4(l)}`,[`& > .${e1.item}`]:{paddingLeft:i4(l)}}:(f=a)!=null&&f.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${e1.item}`]:{paddingLeft:0}}})}return r}function Ax0(u,e,t={}){if(!u||u<=0)return[];if(typeof u=="string"&&!Number.isNaN(Number(u))||typeof u=="number")return[t[`spacing-xs-${String(u)}`]];const n=[];return e.forEach(r=>{const i=u[r];Number(i)>0&&n.push(t[`spacing-${r}-${String(i)}`])}),n}const yx0=Ee("div",{name:"MuiGrid",slot:"Root",overridesResolver:(u,e)=>{const{ownerState:t}=u,{container:n,direction:r,item:i,spacing:a,wrap:o,zeroMinWidth:s,breakpoints:f}=t;let l=[];n&&(l=Ax0(a,f,e));const c=[];return f.forEach(E=>{const d=t[E];d&&c.push(e[`grid-${E}-${String(d)}`])}),[e.root,n&&e.container,i&&e.item,s&&e.zeroMinWidth,...l,r!=="row"&&e[`direction-xs-${String(r)}`],o!=="wrap"&&e[`wrap-xs-${String(o)}`],...c]}})(({ownerState:u})=>r0({boxSizing:"border-box"},u.container&&{display:"flex",flexWrap:"wrap",width:"100%"},u.item&&{margin:0},u.zeroMinWidth&&{minWidth:0},u.wrap!=="wrap"&&{flexWrap:u.wrap}),mx0,bx0,gx0,Cx0);function vx0(u,e){if(!u||u<=0)return[];if(typeof u=="string"&&!Number.isNaN(Number(u))||typeof u=="number")return[`spacing-xs-${String(u)}`];const t=[];return e.forEach(n=>{const r=u[n];if(Number(r)>0){const i=`spacing-${n}-${String(r)}`;t.push(i)}}),t}const Bx0=u=>{const{classes:e,container:t,direction:n,item:r,spacing:i,wrap:a,zeroMinWidth:o,breakpoints:s}=u;let f=[];t&&(f=vx0(i,s));const l=[];s.forEach(E=>{const d=u[E];d&&l.push(`grid-${E}-${String(d)}`)});const c={root:["root",t&&"container",r&&"item",o&&"zeroMinWidth",...f,n!=="row"&&`direction-xs-${String(n)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...l]};return mt(c,lx0,e)},Fx0=w.forwardRef(function(e,t){const n=gt({props:e,name:"MuiGrid"}),{breakpoints:r}=XV(),i=j9(n),{className:a,columns:o,columnSpacing:s,component:f="div",container:l=!1,direction:c="row",item:E=!1,rowSpacing:d,spacing:p=0,wrap:h="wrap",zeroMinWidth:g=!1}=i,b=cu(i,hx0),m=d||p,A=s||p,y=w.useContext(pw),B=l?o||12:y,v={},C=r0({},b);r.keys.forEach(_=>{b[_]!=null&&(v[_]=b[_],delete C[_])});const D=r0({},i,{columns:B,container:l,direction:c,item:E,rowSpacing:m,columnSpacing:A,wrap:h,zeroMinWidth:g,spacing:p},v,{breakpoints:r.keys}),T=Bx0(D);return f0.jsx(pw.Provider,{value:B,children:f0.jsx(yx0,r0({ownerState:D,className:pu(T.root,a),as:f,ref:t},C))})}),If=Fx0,Dx0=["MarketPlace","Factory"];function wx0(){const u=sS(),e=At(),t=()=>{e.isConnected&&u("/real-token/Profile/"+e.address)},n=r=>{console.log("Redirect to page: ",r),r=="MarketPlace"?u("/real-token/Explore"):r=="Factory"&&u("/real-token/Mint")};return w.useEffect(()=>{},[]),f0.jsx(lK,{position:"static",style:{background:"linear-gradient(269.67deg, #CCE1FA -10.61%, #C6EEEA 113.26%)"},children:f0.jsx(bK,{maxWidth:"xl",children:f0.jsxs(CK,{disableGutters:!0,children:[f0.jsx("img",{src:wK,width:40}),f0.jsx(DK,{sx:{flexGrow:1,display:{xs:"none",md:"flex"}},children:Dx0.map(r=>f0.jsx(rf,{onClick:()=>n(r),sx:{my:2,color:"#352D50",display:"block"},children:r},r))}),f0.jsxs(SG,{sx:{flexGrow:0},direction:"row",children:[f0.jsx(Vg,{chainStatus:"full",accountStatus:{smallScreen:"avatar",largeScreen:"address"}}),e.isConnected&&f0.jsx("div",{onClick:t,children:f0.jsx(Kw0,{})})]})]})})})}function xx0(u){return f0.jsx(MM,{onClick:u.onClick,className:"nft-card",children:f0.jsxs(jM,{children:[f0.jsx("img",{src:u.NFT.img,width:200,height:275}),f0.jsx("h4",{children:u.NFT.name}),f0.jsxs("p",{children:[u.NFT.price," ",u.NFT.price_token]}),f0.jsx(rf,{variant:"contained",color:"primary",children:"Buy Now"})]})})}const kx0="hh-sol-artifact-1",_x0="MarketPlace",Sx0="contracts/MarketPlace.sol",Tx0=[{inputs:[{internalType:"address",name:"_fractionalizedNFT",type:"address"},{internalType:"address",name:"_matic",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"seller",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"price",type:"uint256"}],name:"TokenListed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"TokenRemovedFromSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"TokenSold",type:"event"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"buyToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"}],name:"listTokenForSale",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"removeTokenFromSale",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],Px0="0x60806040523480156200001157600080fd5b50604051620019853803806200198583398181016040528101906200003791906200027e565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000ad5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a49190620002d6565b60405180910390fd5b620000be816200015060201b60201c565b506001808190555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620002f3565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002468262000219565b9050919050565b620002588162000239565b81146200026457600080fd5b50565b60008151905062000278816200024d565b92915050565b6000806040838503121562000298576200029762000214565b5b6000620002a88582860162000267565b9250506020620002bb8582860162000267565b9150509250929050565b620002d08162000239565b82525050565b6000602082019050620002ed6000830184620002c5565b92915050565b61168280620003036000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80635fe287b914610067578063715018a6146100835780637273cc021461008d5780638da5cb5b146100a9578063e8cdea11146100c7578063f2fde38b146100e3575b600080fd5b610081600480360381019061007c9190610e39565b6100ff565b005b61008b61059b565b005b6100a760048036038101906100a29190610ea8565b6105af565b005b6100b1610875565b6040516100be9190610f3c565b60405180910390f35b6100e160048036038101906100dc9190610f57565b61089e565b005b6100fd60048036038101906100f89190610fb0565b6109d9565b005b610107610a5f565b6000821161014a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101419061103a565b60405180910390fd5b600060046000858152602001908152602001600020905082816002015410156101a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019f906110cc565b60405180910390fd5b60008382600301546101ba919061111b565b905080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016102189190610f3c565b602060405180830381865afa158015610235573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102599190611172565b101561029a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610291906111eb565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd338460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161031d9392919061121a565b6020604051808303816000875af115801561033c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103609190611289565b61039f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039690611302565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663605105f08360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16338888886040518663ffffffff1660e01b81526004016104269594939291906113a1565b600060405180830381600087803b15801561044057600080fd5b505af1158015610454573d6000803e3d6000fd5b505050508382600201600082825461046c91906113fb565b925050819055503373ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16867f3d5eb834b5d6cadc063c171c3f25f60bca8ea892ba9db25342278927d0af9556876040516104f5919061142f565b60405180910390a4600082600201540361058c5760046000868152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050847fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a25b5050610596610aa5565b505050565b6105a3610aae565b6105ad6000610b35565b565b6105b7610a5f565b600082116105fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f19061103a565b60405180910390fd5b6000811161063d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063490611496565b60405180910390fd5b61064683610bf9565b610685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067c90611502565b60405180910390fd5b81600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632fecd4bb33866040518363ffffffff1660e01b81526004016106e3929190611522565b602060405180830381865afa158015610700573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107249190611172565b1015610765576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075c90611597565b60405180910390fd5b60405180608001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001828152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301559050503373ffffffffffffffffffffffffffffffffffffffff16837f2428821d20d9a8080d99a3d335d478f0546d90a0376be12c52a6d600f15586bf84846040516108609291906115b7565b60405180910390a3610870610aa5565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6108a6610a5f565b803373ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461094b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109429061162c565b60405180910390fd5b60046000838152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050817fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a2506109d6610aa5565b50565b6109e1610aae565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a535760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610a4a9190610f3c565b60405180910390fd5b610a5c81610b35565b50565b600260015403610a9b576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b610ab6610ca1565b73ffffffffffffffffffffffffffffffffffffffff16610ad4610875565b73ffffffffffffffffffffffffffffffffffffffff1614610b3357610af7610ca1565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610b2a9190610f3c565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401610c58929190611522565b602060405180830381865afa158015610c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c999190611172565b119050919050565b600033905090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610cd081610cbd565b8114610cdb57600080fd5b50565b600081359050610ced81610cc7565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610d4682610cfd565b810181811067ffffffffffffffff82111715610d6557610d64610d0e565b5b80604052505050565b6000610d78610ca9565b9050610d848282610d3d565b919050565b600067ffffffffffffffff821115610da457610da3610d0e565b5b610dad82610cfd565b9050602081019050919050565b82818337600083830152505050565b6000610ddc610dd784610d89565b610d6e565b905082815260208101848484011115610df857610df7610cf8565b5b610e03848285610dba565b509392505050565b600082601f830112610e2057610e1f610cf3565b5b8135610e30848260208601610dc9565b91505092915050565b600080600060608486031215610e5257610e51610cb3565b5b6000610e6086828701610cde565b9350506020610e7186828701610cde565b925050604084013567ffffffffffffffff811115610e9257610e91610cb8565b5b610e9e86828701610e0b565b9150509250925092565b600080600060608486031215610ec157610ec0610cb3565b5b6000610ecf86828701610cde565b9350506020610ee086828701610cde565b9250506040610ef186828701610cde565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610f2682610efb565b9050919050565b610f3681610f1b565b82525050565b6000602082019050610f516000830184610f2d565b92915050565b600060208284031215610f6d57610f6c610cb3565b5b6000610f7b84828501610cde565b91505092915050565b610f8d81610f1b565b8114610f9857600080fd5b50565b600081359050610faa81610f84565b92915050565b600060208284031215610fc657610fc5610cb3565b5b6000610fd484828501610f9b565b91505092915050565b600082825260208201905092915050565b7f416d6f756e74206d7573742062652067726561746572207468616e207a65726f600082015250565b6000611024602083610fdd565b915061102f82610fee565b602082019050919050565b6000602082019050818103600083015261105381611017565b9050919050565b7f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6520666f722060008201527f73616c6500000000000000000000000000000000000000000000000000000000602082015250565b60006110b6602483610fdd565b91506110c18261105a565b604082019050919050565b600060208201905081810360008301526110e5816110a9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061112682610cbd565b915061113183610cbd565b925082820261113f81610cbd565b91508282048414831517611156576111556110ec565b5b5092915050565b60008151905061116c81610cc7565b92915050565b60006020828403121561118857611187610cb3565b5b60006111968482850161115d565b91505092915050565b7f496e73756666696369656e742062757965722062616c616e6365000000000000600082015250565b60006111d5601a83610fdd565b91506111e08261119f565b602082019050919050565b60006020820190508181036000830152611204816111c8565b9050919050565b61121481610cbd565b82525050565b600060608201905061122f6000830186610f2d565b61123c6020830185610f2d565b611249604083018461120b565b949350505050565b60008115159050919050565b61126681611251565b811461127157600080fd5b50565b6000815190506112838161125d565b92915050565b60006020828403121561129f5761129e610cb3565b5b60006112ad84828501611274565b91505092915050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b60006112ec601583610fdd565b91506112f7826112b6565b602082019050919050565b6000602082019050818103600083015261131b816112df565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561135c578082015181840152602081019050611341565b60008484015250505050565b600061137382611322565b61137d818561132d565b935061138d81856020860161133e565b61139681610cfd565b840191505092915050565b600060a0820190506113b66000830188610f2d565b6113c36020830187610f2d565b6113d0604083018661120b565b6113dd606083018561120b565b81810360808301526113ef8184611368565b90509695505050505050565b600061140682610cbd565b915061141183610cbd565b9250828203905081811115611429576114286110ec565b5b92915050565b6000602082019050611444600083018461120b565b92915050565b7f5072696365206d7573742062652067726561746572207468616e207a65726f00600082015250565b6000611480601f83610fdd565b915061148b8261144a565b602082019050919050565b600060208201905081810360008301526114af81611473565b9050919050565b7f546f6b656e206d757374206265206672616374696f6e616c697a656400000000600082015250565b60006114ec601c83610fdd565b91506114f7826114b6565b602082019050919050565b6000602082019050818103600083015261151b816114df565b9050919050565b60006040820190506115376000830185610f2d565b611544602083018461120b565b9392505050565b7f496e73756666696369656e74206f776e65727368697000000000000000000000600082015250565b6000611581601683610fdd565b915061158c8261154b565b602082019050919050565b600060208201905081810360008301526115b081611574565b9050919050565b60006040820190506115cc600083018561120b565b6115d9602083018461120b565b9392505050565b7f4e6f74207468652073656c6c6572000000000000000000000000000000000000600082015250565b6000611616600e83610fdd565b9150611621826115e0565b602082019050919050565b6000602082019050818103600083015261164581611609565b905091905056fea2646970667358221220e0d551932168471afc5b6ed8e4b59120e6bb5ca1f4256467b601e7cb9a24436164736f6c63430008140033",Ox0="0x608060405234801561001057600080fd5b50600436106100625760003560e01c80635fe287b914610067578063715018a6146100835780637273cc021461008d5780638da5cb5b146100a9578063e8cdea11146100c7578063f2fde38b146100e3575b600080fd5b610081600480360381019061007c9190610e39565b6100ff565b005b61008b61059b565b005b6100a760048036038101906100a29190610ea8565b6105af565b005b6100b1610875565b6040516100be9190610f3c565b60405180910390f35b6100e160048036038101906100dc9190610f57565b61089e565b005b6100fd60048036038101906100f89190610fb0565b6109d9565b005b610107610a5f565b6000821161014a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101419061103a565b60405180910390fd5b600060046000858152602001908152602001600020905082816002015410156101a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019f906110cc565b60405180910390fd5b60008382600301546101ba919061111b565b905080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016102189190610f3c565b602060405180830381865afa158015610235573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102599190611172565b101561029a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610291906111eb565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd338460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161031d9392919061121a565b6020604051808303816000875af115801561033c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103609190611289565b61039f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039690611302565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663605105f08360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16338888886040518663ffffffff1660e01b81526004016104269594939291906113a1565b600060405180830381600087803b15801561044057600080fd5b505af1158015610454573d6000803e3d6000fd5b505050508382600201600082825461046c91906113fb565b925050819055503373ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16867f3d5eb834b5d6cadc063c171c3f25f60bca8ea892ba9db25342278927d0af9556876040516104f5919061142f565b60405180910390a4600082600201540361058c5760046000868152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050847fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a25b5050610596610aa5565b505050565b6105a3610aae565b6105ad6000610b35565b565b6105b7610a5f565b600082116105fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f19061103a565b60405180910390fd5b6000811161063d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063490611496565b60405180910390fd5b61064683610bf9565b610685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067c90611502565b60405180910390fd5b81600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632fecd4bb33866040518363ffffffff1660e01b81526004016106e3929190611522565b602060405180830381865afa158015610700573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107249190611172565b1015610765576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075c90611597565b60405180910390fd5b60405180608001604052803373ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001828152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301559050503373ffffffffffffffffffffffffffffffffffffffff16837f2428821d20d9a8080d99a3d335d478f0546d90a0376be12c52a6d600f15586bf84846040516108609291906115b7565b60405180910390a3610870610aa5565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6108a6610a5f565b803373ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461094b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109429061162c565b60405180910390fd5b60046000838152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905560038201600090555050817fccd0b7af52bf5f08ec6781299e66283301e612d1ca1ffceab3579a6364073c3060405160405180910390a2506109d6610aa5565b50565b6109e1610aae565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a535760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610a4a9190610f3c565b60405180910390fd5b610a5c81610b35565b50565b600260015403610a9b576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b610ab6610ca1565b73ffffffffffffffffffffffffffffffffffffffff16610ad4610875565b73ffffffffffffffffffffffffffffffffffffffff1614610b3357610af7610ca1565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610b2a9190610f3c565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401610c58929190611522565b602060405180830381865afa158015610c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c999190611172565b119050919050565b600033905090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610cd081610cbd565b8114610cdb57600080fd5b50565b600081359050610ced81610cc7565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610d4682610cfd565b810181811067ffffffffffffffff82111715610d6557610d64610d0e565b5b80604052505050565b6000610d78610ca9565b9050610d848282610d3d565b919050565b600067ffffffffffffffff821115610da457610da3610d0e565b5b610dad82610cfd565b9050602081019050919050565b82818337600083830152505050565b6000610ddc610dd784610d89565b610d6e565b905082815260208101848484011115610df857610df7610cf8565b5b610e03848285610dba565b509392505050565b600082601f830112610e2057610e1f610cf3565b5b8135610e30848260208601610dc9565b91505092915050565b600080600060608486031215610e5257610e51610cb3565b5b6000610e6086828701610cde565b9350506020610e7186828701610cde565b925050604084013567ffffffffffffffff811115610e9257610e91610cb8565b5b610e9e86828701610e0b565b9150509250925092565b600080600060608486031215610ec157610ec0610cb3565b5b6000610ecf86828701610cde565b9350506020610ee086828701610cde565b9250506040610ef186828701610cde565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610f2682610efb565b9050919050565b610f3681610f1b565b82525050565b6000602082019050610f516000830184610f2d565b92915050565b600060208284031215610f6d57610f6c610cb3565b5b6000610f7b84828501610cde565b91505092915050565b610f8d81610f1b565b8114610f9857600080fd5b50565b600081359050610faa81610f84565b92915050565b600060208284031215610fc657610fc5610cb3565b5b6000610fd484828501610f9b565b91505092915050565b600082825260208201905092915050565b7f416d6f756e74206d7573742062652067726561746572207468616e207a65726f600082015250565b6000611024602083610fdd565b915061102f82610fee565b602082019050919050565b6000602082019050818103600083015261105381611017565b9050919050565b7f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6520666f722060008201527f73616c6500000000000000000000000000000000000000000000000000000000602082015250565b60006110b6602483610fdd565b91506110c18261105a565b604082019050919050565b600060208201905081810360008301526110e5816110a9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061112682610cbd565b915061113183610cbd565b925082820261113f81610cbd565b91508282048414831517611156576111556110ec565b5b5092915050565b60008151905061116c81610cc7565b92915050565b60006020828403121561118857611187610cb3565b5b60006111968482850161115d565b91505092915050565b7f496e73756666696369656e742062757965722062616c616e6365000000000000600082015250565b60006111d5601a83610fdd565b91506111e08261119f565b602082019050919050565b60006020820190508181036000830152611204816111c8565b9050919050565b61121481610cbd565b82525050565b600060608201905061122f6000830186610f2d565b61123c6020830185610f2d565b611249604083018461120b565b949350505050565b60008115159050919050565b61126681611251565b811461127157600080fd5b50565b6000815190506112838161125d565b92915050565b60006020828403121561129f5761129e610cb3565b5b60006112ad84828501611274565b91505092915050565b7f546f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b60006112ec601583610fdd565b91506112f7826112b6565b602082019050919050565b6000602082019050818103600083015261131b816112df565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561135c578082015181840152602081019050611341565b60008484015250505050565b600061137382611322565b61137d818561132d565b935061138d81856020860161133e565b61139681610cfd565b840191505092915050565b600060a0820190506113b66000830188610f2d565b6113c36020830187610f2d565b6113d0604083018661120b565b6113dd606083018561120b565b81810360808301526113ef8184611368565b90509695505050505050565b600061140682610cbd565b915061141183610cbd565b9250828203905081811115611429576114286110ec565b5b92915050565b6000602082019050611444600083018461120b565b92915050565b7f5072696365206d7573742062652067726561746572207468616e207a65726f00600082015250565b6000611480601f83610fdd565b915061148b8261144a565b602082019050919050565b600060208201905081810360008301526114af81611473565b9050919050565b7f546f6b656e206d757374206265206672616374696f6e616c697a656400000000600082015250565b60006114ec601c83610fdd565b91506114f7826114b6565b602082019050919050565b6000602082019050818103600083015261151b816114df565b9050919050565b60006040820190506115376000830185610f2d565b611544602083018461120b565b9392505050565b7f496e73756666696369656e74206f776e65727368697000000000000000000000600082015250565b6000611581601683610fdd565b915061158c8261154b565b602082019050919050565b600060208201905081810360008301526115b081611574565b9050919050565b60006040820190506115cc600083018561120b565b6115d9602083018461120b565b9392505050565b7f4e6f74207468652073656c6c6572000000000000000000000000000000000000600082015250565b6000611616600e83610fdd565b9150611621826115e0565b602082019050919050565b6000602082019050818103600083015261164581611609565b905091905056fea2646970667358221220e0d551932168471afc5b6ed8e4b59120e6bb5ca1f4256467b601e7cb9a24436164736f6c63430008140033",Ix0={},Nx0={},Rx0={_format:kx0,contractName:_x0,sourceName:Sx0,abi:Tx0,bytecode:Px0,deployedBytecode:Ox0,linkReferences:Ix0,deployedLinkReferences:Nx0},hw="0xcD1F709E4F10839BDaE763E49eFf4858a2D30C9c",LM="0x36D12972E7f888B6C2984D2fbe6F9EAb317Efe39",Mx0="0xF373be196cc08599Bf3aC9033fC3E46426237FFE",jx0="6.9.0";function zx0(u,e,t){const n=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(u[n])))).reduce((n,r,i)=>(n[e[i]]=r,n),{})}function j0(u,e,t){for(let n in e){let r=e[n];const i=t?t[n]:null;i&&zx0(r,i,n),Object.defineProperty(u,n,{enumerable:!0,value:r,writable:!1})}}function $s(u){if(u==null)return"null";if(Array.isArray(u))return"[ "+u.map($s).join(", ")+" ]";if(u instanceof Uint8Array){const e="0123456789abcdef";let t="0x";for(let n=0;n>4],t+=e[u[n]&15];return t}if(typeof u=="object"&&typeof u.toJSON=="function")return $s(u.toJSON());switch(typeof u){case"boolean":case"symbol":return u.toString();case"bigint":return BigInt(u).toString();case"number":return u.toString();case"string":return JSON.stringify(u);case"object":{const e=Object.keys(u);return e.sort(),"{ "+e.map(t=>`${$s(t)}: ${$s(u[t])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function an(u,e){return u&&u.code===e}function CA(u){return an(u,"CALL_EXCEPTION")}function Ju(u,e,t){let n=u;{const i=[];if(t){if("message"in t||"code"in t||"name"in t)throw new Error(`value will overwrite populated values: ${$s(t)}`);for(const a in t){if(a==="shortMessage")continue;const o=t[a];i.push(a+"="+$s(o))}}i.push(`code=${e}`),i.push(`version=${jx0}`),i.length&&(u+=" ("+i.join(", ")+")")}let r;switch(e){case"INVALID_ARGUMENT":r=new TypeError(u);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":r=new RangeError(u);break;default:r=new Error(u)}return j0(r,{code:e}),t&&Object.assign(r,t),r.shortMessage==null&&j0(r,{shortMessage:n}),r}function c0(u,e,t,n){if(!u)throw Ju(e,t,n)}function Q(u,e,t,n){c0(u,e,"INVALID_ARGUMENT",{argument:t,value:n})}function $M(u,e,t){t==null&&(t=""),t&&(t=": "+t),c0(u>=e,"missing arguemnt"+t,"MISSING_ARGUMENT",{count:u,expectedCount:e}),c0(u<=e,"too many arguemnts"+t,"UNEXPECTED_ARGUMENT",{count:u,expectedCount:e})}const Lx0=["NFD","NFC","NFKD","NFKC"].reduce((u,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");u.push(e)}catch{}return u},[]);function $x0(u){c0(Lx0.indexOf(u)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:u}})}function Bd(u,e,t){if(t==null&&(t=""),u!==e){let n=t,r="new";t&&(n+=".",r+=" "+t),c0(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:r})}}function UM(u,e,t){if(u instanceof Uint8Array)return t?new Uint8Array(u):u;if(typeof u=="string"&&u.match(/^0x([0-9a-f][0-9a-f])*$/i)){const n=new Uint8Array((u.length-2)/2);let r=2;for(let i=0;i>4]+Cw[r&15]}return t}function te(u){return"0x"+u.map(e=>I0(e).substring(2)).join("")}function a4(u){return ku(u,!0)?(u.length-2)/2:ru(u).length}function Ru(u,e,t){const n=ru(u);return t!=null&&t>n.length&&c0(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:t}),I0(n.slice(e??0,t??n.length))}function WM(u,e,t){const n=ru(u);c0(e>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:e,offset:e+1});const r=new Uint8Array(e);return r.fill(0),t?r.set(n,e-n.length):r.set(n,0),I0(r)}function Io(u,e){return WM(u,e,!0)}function Wx0(u,e){return WM(u,e,!1)}const Fd=BigInt(0),Tn=BigInt(1),Us=9007199254740991;function qx0(u,e){const t=Dd(u,"value"),n=BigInt(q0(e,"width"));if(c0(t>>n===Fd,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:u}),t>>n-Tn){const r=(Tn<=-Us&&u<=Us,"overflow",e||"value",u),BigInt(u);case"string":try{if(u==="")throw new Error("empty string");return u[0]==="-"&&u[1]!=="-"?-BigInt(u.substring(1)):BigInt(u)}catch(t){Q(!1,`invalid BigNumberish string: ${t.message}`,e||"value",u)}}Q(!1,"invalid BigNumberish value",e||"value",u)}function Dd(u,e){const t=N0(u,e);return c0(t>=Fd,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:u}),t}const mw="0123456789abcdef";function mA(u){if(u instanceof Uint8Array){let e="0x0";for(const t of u)e+=mw[t>>4],e+=mw[t&15];return BigInt(e)}return N0(u)}function q0(u,e){switch(typeof u){case"bigint":return Q(u>=-Us&&u<=Us,"overflow",e||"value",u),Number(u);case"number":return Q(Number.isInteger(u),"underflow",e||"value",u),Q(u>=-Us&&u<=Us,"overflow",e||"value",u),u;case"string":try{if(u==="")throw new Error("empty string");return q0(BigInt(u),e)}catch(t){Q(!1,`invalid numeric string: ${t.message}`,e||"value",u)}}Q(!1,"invalid numeric value",e||"value",u)}function Hx0(u){return q0(mA(u))}function Ea(u,e){let n=Dd(u,"value").toString(16);if(e==null)n.length%2&&(n="0"+n);else{const r=q0(e,"width");for(c0(r*2>=n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:u});n.length>6===2;a++)i++;return i}return u==="OVERRUN"?t.length-e-1:0}function Yx0(u,e,t,n,r){return u==="OVERLONG"?(Q(typeof r=="number","invalid bad code point for replacement","badCodepoint",r),n.push(r),0):(n.push(65533),GM(u,e,t))}const Zx0=Object.freeze({error:Jx0,ignore:GM,replace:Yx0});function Xx0(u,e){e==null&&(e=Zx0.error);const t=ru(u,"bytes"),n=[];let r=0;for(;r>7)){n.push(i);continue}let a=null,o=null;if((i&224)===192)a=1,o=127;else if((i&240)===224)a=2,o=2047;else if((i&248)===240)a=3,o=65535;else{(i&192)===128?r+=e("UNEXPECTED_CONTINUE",r-1,t,n):r+=e("BAD_PREFIX",r-1,t,n);continue}if(r-1+a>=t.length){r+=e("OVERRUN",r-1,t,n);continue}let s=i&(1<<8-a-1)-1;for(let f=0;f1114111){r+=e("OUT_OF_RANGE",r-1-a,t,n,s);continue}if(s>=55296&&s<=57343){r+=e("UTF16_SURROGATE",r-1-a,t,n,s);continue}if(s<=o){r+=e("OVERLONG",r-1-a,t,n,s);continue}n.push(s)}}return n}function qr(u,e){e!=null&&($x0(e),u=u.normalize(e));let t=[];for(let n=0;n>6|192),t.push(r&63|128);else if((r&64512)==55296){n++;const i=u.charCodeAt(n);Q(n>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(a&63|128)}else t.push(r>>12|224),t.push(r>>6&63|128),t.push(r&63|128)}return new Uint8Array(t)}function uk0(u){return u.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function bA(u,e){return uk0(Xx0(u,e))}function VM(u){async function e(t,n){const r=t.url.split(":")[0].toLowerCase();c0(r==="http"||r==="https",`unsupported protocol ${r}`,"UNSUPPORTED_OPERATION",{info:{protocol:r},operation:"request"}),c0(r==="https"||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i;if(n){const c=new AbortController;i=c.signal,n.addListener(()=>{c.abort()})}const a={method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:i},o=await fetch(t.url,a),s={};o.headers.forEach((c,E)=>{s[E.toLowerCase()]=c});const f=await o.arrayBuffer(),l=f==null?null:new Uint8Array(f);return{statusCode:o.status,statusMessage:o.statusText,headers:s,body:l}}return e}const ek0=12,tk0=250;let gw=VM();const nk0=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),rk0=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let gp=!1;async function KM(u,e){try{const t=u.match(nk0);if(!t)throw new Error("invalid data");return new na(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?Kx0(t[3]):ak0(t[3]))}catch{return new na(599,"BAD REQUEST (invalid data: URI)",{},null,new ui(u))}}function QM(u){async function e(t,n){try{const r=t.match(rk0);if(!r)throw new Error("invalid link");return new ui(`${u}${r[2]}`)}catch{return new na(599,"BAD REQUEST (invalid IPFS URI)",{},null,new ui(t))}}return e}const m6={data:KM,ipfs:QM("https://gateway.ipfs.io/ipfs/")},JM=new WeakMap;var Ha,ki;class ik0{constructor(e){X(this,Ha,void 0);X(this,ki,void 0);I(this,Ha,[]),I(this,ki,!1),JM.set(e,()=>{if(!x(this,ki)){I(this,ki,!0);for(const t of x(this,Ha))setTimeout(()=>{t()},0);I(this,Ha,[])}})}addListener(e){c0(!x(this,ki),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),x(this,Ha).push(e)}get cancelled(){return x(this,ki)}checkSignal(){c0(!this.cancelled,"cancelled","CANCELLED",{})}}Ha=new WeakMap,ki=new WeakMap;function b6(u){if(u==null)throw new Error("missing signal; should not happen");return u.checkSignal(),u}var f4,l4,Bn,wr,c4,E4,re,Dt,xr,Ga,Va,Ka,Kn,kr,_i,Qa,X3;const z2=class z2{constructor(e){X(this,Qa);X(this,f4,void 0);X(this,l4,void 0);X(this,Bn,void 0);X(this,wr,void 0);X(this,c4,void 0);X(this,E4,void 0);X(this,re,void 0);X(this,Dt,void 0);X(this,xr,void 0);X(this,Ga,void 0);X(this,Va,void 0);X(this,Ka,void 0);X(this,Kn,void 0);X(this,kr,void 0);X(this,_i,void 0);I(this,E4,String(e)),I(this,f4,!1),I(this,l4,!0),I(this,Bn,{}),I(this,wr,""),I(this,c4,3e5),I(this,kr,{slotInterval:tk0,maxAttempts:ek0}),I(this,_i,null)}get url(){return x(this,E4)}set url(e){I(this,E4,String(e))}get body(){return x(this,re)==null?null:new Uint8Array(x(this,re))}set body(e){if(e==null)I(this,re,void 0),I(this,Dt,void 0);else if(typeof e=="string")I(this,re,qr(e)),I(this,Dt,"text/plain");else if(e instanceof Uint8Array)I(this,re,e),I(this,Dt,"application/octet-stream");else if(typeof e=="object")I(this,re,qr(JSON.stringify(e))),I(this,Dt,"application/json");else throw new Error("invalid body")}hasBody(){return x(this,re)!=null}get method(){return x(this,wr)?x(this,wr):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),I(this,wr,String(e).toUpperCase())}get headers(){const e=Object.assign({},x(this,Bn));return x(this,xr)&&(e.authorization=`Basic ${Qx0(qr(x(this,xr)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&x(this,Dt)&&(e["content-type"]=x(this,Dt)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){x(this,Bn)[String(e).toLowerCase()]=String(t)}clearHeaders(){I(this,Bn,{})}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n=0,"timeout must be non-zero","timeout",e),I(this,c4,e)}get preflightFunc(){return x(this,Ga)||null}set preflightFunc(e){I(this,Ga,e)}get processFunc(){return x(this,Va)||null}set processFunc(e){I(this,Va,e)}get retryFunc(){return x(this,Ka)||null}set retryFunc(e){I(this,Ka,e)}get getUrlFunc(){return x(this,_i)||gw}set getUrlFunc(e){I(this,_i,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(x(this,kr).slotInterval=e.slotInterval),e.maxAttempts!=null&&(x(this,kr).maxAttempts=e.maxAttempts)}send(){return c0(x(this,Kn)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),I(this,Kn,new ik0(this)),A0(this,Qa,X3).call(this,0,Aw()+this.timeout,0,this,new na(0,"",{},null,this))}cancel(){c0(x(this,Kn)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=JM.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const t=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();c0(this.method==="GET"&&(t!=="https"||n!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const r=new z2(e);return r.method="GET",r.allowGzip=this.allowGzip,r.timeout=this.timeout,I(r,Bn,Object.assign({},x(this,Bn))),x(this,re)&&I(r,re,new Uint8Array(x(this,re))),I(r,Dt,x(this,Dt)),r}clone(){const e=new z2(this.url);return I(e,wr,x(this,wr)),x(this,re)&&I(e,re,x(this,re)),I(e,Dt,x(this,Dt)),I(e,Bn,Object.assign({},x(this,Bn))),I(e,xr,x(this,xr)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),I(e,Ga,x(this,Ga)),I(e,Va,x(this,Va)),I(e,Ka,x(this,Ka)),I(e,_i,x(this,_i)),e}static lockConfig(){gp=!0}static getGateway(e){return m6[e.toLowerCase()]||null}static registerGateway(e,t){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(gp)throw new Error("gateways locked");m6[e]=t}static registerGetUrl(e){if(gp)throw new Error("gateways locked");gw=e}static createGetUrlFunc(e){return VM()}static createDataGateway(){return KM}static createIpfsGatewayFunc(e){return QM(e)}};f4=new WeakMap,l4=new WeakMap,Bn=new WeakMap,wr=new WeakMap,c4=new WeakMap,E4=new WeakMap,re=new WeakMap,Dt=new WeakMap,xr=new WeakMap,Ga=new WeakMap,Va=new WeakMap,Ka=new WeakMap,Kn=new WeakMap,kr=new WeakMap,_i=new WeakMap,Qa=new WeakSet,X3=async function(e,t,n,r,i){var l,c,E;if(e>=x(this,kr).maxAttempts)return i.makeServerError("exceeded maximum retry limit");c0(Aw()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:r}),n>0&&await ok0(n);let a=this.clone();const o=(a.url.split(":")[0]||"").toLowerCase();if(o in m6){const d=await m6[o](a.url,b6(x(r,Kn)));if(d instanceof na){let p=d;if(this.processFunc){b6(x(r,Kn));try{p=await this.processFunc(a,p)}catch(h){(h.throttle==null||typeof h.stall!="number")&&p.makeServerError("error in post-processing function",h).assertOk()}}return p}a=d}this.preflightFunc&&(a=await this.preflightFunc(a));const s=await this.getUrlFunc(a,b6(x(r,Kn)));let f=new na(s.statusCode,s.statusMessage,s.headers,s.body,r);if(f.statusCode===301||f.statusCode===302){try{const d=f.headers.location||"";return A0(l=a.redirect(d),Qa,X3).call(l,e+1,t,0,r,f)}catch{}return f}else if(f.statusCode===429&&(this.retryFunc==null||await this.retryFunc(a,f,e))){const d=f.headers["retry-after"];let p=x(this,kr).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof d=="string"&&d.match(/^[1-9][0-9]*$/)&&(p=parseInt(d)),A0(c=a.clone(),Qa,X3).call(c,e+1,t,p,r,f)}if(this.processFunc){b6(x(r,Kn));try{f=await this.processFunc(a,f)}catch(d){(d.throttle==null||typeof d.stall!="number")&&f.makeServerError("error in post-processing function",d).assertOk();let p=x(this,kr).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return d.stall>=0&&(p=d.stall),A0(E=a.clone(),Qa,X3).call(E,e+1,t,p,r,f)}}return f};let ui=z2;var E1,d1,p1,Fn,d4,Ja;const MA=class MA{constructor(e,t,n,r,i){X(this,E1,void 0);X(this,d1,void 0);X(this,p1,void 0);X(this,Fn,void 0);X(this,d4,void 0);X(this,Ja,void 0);I(this,E1,e),I(this,d1,t),I(this,p1,Object.keys(n).reduce((a,o)=>(a[o.toLowerCase()]=String(n[o]),a),{})),I(this,Fn,r==null?null:new Uint8Array(r)),I(this,d4,i||null),I(this,Ja,{message:""})}toString(){return``}get statusCode(){return x(this,E1)}get statusMessage(){return x(this,d1)}get headers(){return Object.assign({},x(this,p1))}get body(){return x(this,Fn)==null?null:new Uint8Array(x(this,Fn))}get bodyText(){try{return x(this,Fn)==null?"":bA(x(this,Fn))}catch{c0(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{c0(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n=0,"invalid stall timeout","stall",t);const n=new Error(e||"throttling requests");throw j0(n,{stall:t,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return x(this,Fn)!=null}get request(){return x(this,d4)}ok(){return x(this,Ja).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=x(this,Ja);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`),c0(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t})}};E1=new WeakMap,d1=new WeakMap,p1=new WeakMap,Fn=new WeakMap,d4=new WeakMap,Ja=new WeakMap;let na=MA;function Aw(){return new Date().getTime()}function ak0(u){return qr(u.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))}function ok0(u){return new Promise(e=>setTimeout(e,u))}function sk0(u){let e=u.toString(16);for(;e.length<2;)e="0"+e;return"0x"+e}function yw(u,e,t){let n=0;for(let r=0;r{c0(n<=u.length,"data short segment too short","BUFFER_OVERRUN",{buffer:u,length:u.length,offset:n})};if(u[e]>=248){const n=u[e]-247;t(e+1+n);const r=yw(u,e+1,n);return t(e+1+n+r),vw(u,e,e+1+n,n+r)}else if(u[e]>=192){const n=u[e]-192;return t(e+1+n),vw(u,e,e+1,n)}else if(u[e]>=184){const n=u[e]-183;t(e+1+n);const r=yw(u,e+1,n);t(e+1+n+r);const i=I0(u.slice(e+1+n,e+1+n+r));return{consumed:1+n+r,result:i}}else if(u[e]>=128){const n=u[e]-128;t(e+1+n);const r=I0(u.slice(e+1,e+1+n));return{consumed:1+n,result:r}}return{consumed:1,result:sk0(u[e])}}function gA(u){const e=ru(u,"data"),t=YM(e,0);return Q(t.consumed===e.length,"unexpected junk after rlp payload","data",u),t.result}function Bw(u){const e=[];for(;u;)e.unshift(u&255),u>>=8;return e}function ZM(u){if(Array.isArray(u)){let n=[];if(u.forEach(function(i){n=n.concat(ZM(i))}),n.length<=55)return n.unshift(192+n.length),n;const r=Bw(n.length);return r.unshift(247+r.length),r.concat(n)}const e=Array.prototype.slice.call(ru(u,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const t=Bw(e.length);return t.unshift(183+t.length),t.concat(e)}const Fw="0123456789abcdef";function t1(u){let e="0x";for(const t of ZM(u))e+=Fw[t>>4],e+=Fw[t&15];return e}const $e=32,QC=new Uint8Array($e),fk0=["then"],g6={};function z3(u,e){const t=new Error(`deferred error during ABI decoding triggered accessing ${u}`);throw t.error=e,t}var Si;const Al=class Al extends Array{constructor(...t){const n=t[0];let r=t[1],i=(t[2]||[]).slice(),a=!0;n!==g6&&(r=t,i=[],a=!1);super(r.length);X(this,Si,void 0);r.forEach((s,f)=>{this[f]=s});const o=i.reduce((s,f)=>(typeof f=="string"&&s.set(f,(s.get(f)||0)+1),s),new Map);if(I(this,Si,Object.freeze(r.map((s,f)=>{const l=i[f];return l!=null&&o.get(l)===1?l:null}))),!!a)return Object.freeze(this),new Proxy(this,{get:(s,f,l)=>{if(typeof f=="string"){if(f.match(/^[0-9]+$/)){const E=q0(f,"%index");if(E<0||E>=this.length)throw new RangeError("out of result range");const d=s[E];return d instanceof Error&&z3(`index ${E}`,d),d}if(fk0.indexOf(f)>=0)return Reflect.get(s,f,l);const c=s[f];if(c instanceof Function)return function(...E){return c.apply(this===l?s:this,E)};if(!(f in s))return s.getValue.apply(this===l?s:this,[f])}return Reflect.get(s,f,l)}})}toArray(){const t=[];return this.forEach((n,r)=>{n instanceof Error&&z3(`index ${r}`,n),t.push(n)}),t}toObject(){return x(this,Si).reduce((t,n,r)=>(c0(n!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),n in t||(t[n]=this.getValue(n)),t),{})}slice(t,n){t==null&&(t=0),t<0&&(t+=this.length,t<0&&(t=0)),n==null&&(n=this.length),n<0&&(n+=this.length,n<0&&(n=0)),n>this.length&&(n=this.length);const r=[],i=[];for(let a=t;a{x(this,_r)[e]=Dw(t)}}}_r=new WeakMap,Ya=new WeakMap,p4=new WeakSet,Q6=function(e){return x(this,_r).push(e),I(this,Ya,x(this,Ya)+e.length),e.length};var wt,Vt,L2,XM;const jA=class jA{constructor(e,t){X(this,L2);Z(this,"allowLoose");X(this,wt,void 0);X(this,Vt,void 0);j0(this,{allowLoose:!!t}),I(this,wt,at(e)),I(this,Vt,0)}get data(){return I0(x(this,wt))}get dataLength(){return x(this,wt).length}get consumed(){return x(this,Vt)}get bytes(){return new Uint8Array(x(this,wt))}subReader(e){return new jA(x(this,wt).slice(x(this,Vt)+e),this.allowLoose)}readBytes(e,t){let n=A0(this,L2,XM).call(this,0,e,!!t);return I(this,Vt,x(this,Vt)+n.length),n.slice(0,e)}readValue(){return mA(this.readBytes($e))}readIndex(){return Hx0(this.readBytes($e))}};wt=new WeakMap,Vt=new WeakMap,L2=new WeakSet,XM=function(e,t,n){let r=Math.ceil(t/$e)*$e;return x(this,Vt)+r>x(this,wt).length&&(this.allowLoose&&n&&x(this,Vt)+t<=x(this,wt).length?r=t:c0(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:at(x(this,wt)),length:x(this,wt).length,offset:x(this,Vt)+r})),x(this,wt).slice(x(this,Vt),x(this,Vt)+r)};let YC=jA,uj=!1;const ej=function(u){return hP(u)};let tj=ej;function wu(u){const e=ru(u,"data");return I0(tj(e))}wu._=ej;wu.lock=function(){uj=!0};wu.register=function(u){if(uj)throw new TypeError("keccak256 is locked");tj=u};Object.freeze(wu);const ZC="0x0000000000000000000000000000000000000000",ww="0x0000000000000000000000000000000000000000000000000000000000000000",xw=BigInt(0),kw=BigInt(1),_w=BigInt(2),Sw=BigInt(27),Tw=BigInt(28),A6=BigInt(35),hs={};function Pw(u){return Io(Nt(u),32)}var h4,C4,m4,Za;const yn=class yn{constructor(e,t,n,r){X(this,h4,void 0);X(this,C4,void 0);X(this,m4,void 0);X(this,Za,void 0);Bd(e,hs,"Signature"),I(this,h4,t),I(this,C4,n),I(this,m4,r),I(this,Za,null)}get r(){return x(this,h4)}set r(e){Q(a4(e)===32,"invalid r","value",e),I(this,h4,I0(e))}get s(){return x(this,C4)}set s(e){Q(a4(e)===32,"invalid s","value",e);const t=I0(e);Q(parseInt(t.substring(0,3))<8,"non-canonical s","value",t),I(this,C4,t)}get v(){return x(this,m4)}set v(e){const t=q0(e,"value");Q(t===27||t===28,"invalid v","v",e),I(this,m4,t)}get networkV(){return x(this,Za)}get legacyChainId(){const e=this.networkV;return e==null?null:yn.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=ru(this.s);return this.yParity&&(e[0]|=128),I0(e)}get compactSerialized(){return te([this.r,this.yParityAndS])}get serialized(){return te([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new yn(hs,this.r,this.s,this.v);return this.networkV&&I(e,Za,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const t=N0(e,"v");return t==Sw||t==Tw?xw:(Q(t>=A6,"invalid EIP-155 v","v",e),(t-A6)/_w)}static getChainIdV(e,t){return N0(e)*_w+BigInt(35+t-27)}static getNormalizedV(e){const t=N0(e);return t===xw||t===Sw?27:t===kw||t===Tw?28:(Q(t>=A6,"invalid v","v",e),t&kw?27:28)}static from(e){function t(f,l){Q(f,l,"signature",e)}if(e==null)return new yn(hs,ww,ww,27);if(typeof e=="string"){const f=ru(e,"signature");if(f.length===64){const l=I0(f.slice(0,32)),c=f.slice(32,64),E=c[0]&128?28:27;return c[0]&=127,new yn(hs,l,I0(c),E)}if(f.length===65){const l=I0(f.slice(0,32)),c=f.slice(32,64);t((c[0]&128)===0,"non-canonical s");const E=yn.getNormalizedV(f[64]);return new yn(hs,l,I0(c),E)}t(!1,"invalid raw signature length")}if(e instanceof yn)return e.clone();const n=e.r;t(n!=null,"missing r");const r=Pw(n),i=function(f,l){if(f!=null)return Pw(f);if(l!=null){t(ku(l,32),"invalid yParityAndS");const c=ru(l);return c[0]&=127,I0(c)}t(!1,"missing s")}(e.s,e.yParityAndS);t((ru(i)[0]&128)==0,"non-canonical s");const{networkV:a,v:o}=function(f,l,c){if(f!=null){const E=N0(f);return{networkV:E>=A6?E:void 0,v:yn.getNormalizedV(E)}}if(l!=null)return t(ku(l,32),"invalid yParityAndS"),{v:ru(l)[0]&128?28:27};if(c!=null){switch(q0(c,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),s=new yn(hs,r,i,o);return a&&I(s,Za,a),t(e.yParity==null||q0(e.yParity,"sig.yParity")===s.yParity,"yParity mismatch"),t(e.yParityAndS==null||e.yParityAndS===s.yParityAndS,"yParityAndS mismatch"),s}};h4=new WeakMap,C4=new WeakMap,m4=new WeakMap,Za=new WeakMap;let Ln=yn;var Sr;const Ia=class Ia{constructor(e){X(this,Sr,void 0);Q(a4(e)===32,"invalid private key","privateKey","[REDACTED]"),I(this,Sr,I0(e))}get privateKey(){return x(this,Sr)}get publicKey(){return Ia.computePublicKey(x(this,Sr))}get compressedPublicKey(){return Ia.computePublicKey(x(this,Sr),!0)}sign(e){Q(a4(e)===32,"invalid digest length","digest",e);const t=Se.sign(at(e),at(x(this,Sr)),{lowS:!0});return Ln.from({r:Ea(t.r,32),s:Ea(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){const t=Ia.computePublicKey(e);return I0(Se.getSharedSecret(at(x(this,Sr)),ru(t),!1))}static computePublicKey(e,t){let n=ru(e,"key");if(n.length===32){const i=Se.getPublicKey(n,!!t);return I0(i)}if(n.length===64){const i=new Uint8Array(65);i[0]=4,i.set(n,1),n=i}const r=Se.ProjectivePoint.fromHex(n);return I0(r.toRawBytes(t))}static recoverPublicKey(e,t){Q(a4(e)===32,"invalid digest length","digest",e);const n=Ln.from(t);let r=Se.Signature.fromCompact(at(te([n.r,n.s])));r=r.addRecoveryBit(n.yParity);const i=r.recoverPublicKey(at(e));return Q(i!=null,"invalid signautre for digest","signature",t),"0x"+i.toHex(!1)}static addPoints(e,t,n){const r=Se.ProjectivePoint.fromHex(Ia.computePublicKey(e).substring(2)),i=Se.ProjectivePoint.fromHex(Ia.computePublicKey(t).substring(2));return"0x"+r.add(i).toHex(!!n)}};Sr=new WeakMap;let n1=Ia;const lk0=BigInt(0),ck0=BigInt(36);function Ow(u){u=u.toLowerCase();const e=u.substring(2).split(""),t=new Uint8Array(40);for(let r=0;r<40;r++)t[r]=e[r].charCodeAt(0);const n=ru(wu(t));for(let r=0;r<40;r+=2)n[r>>1]>>4>=8&&(e[r]=e[r].toUpperCase()),(n[r>>1]&15)>=8&&(e[r+1]=e[r+1].toUpperCase());return"0x"+e.join("")}const AA={};for(let u=0;u<10;u++)AA[String(u)]=String(u);for(let u=0;u<26;u++)AA[String.fromCharCode(65+u)]=String(10+u);const Iw=15;function Ek0(u){u=u.toUpperCase(),u=u.substring(4)+u.substring(0,2)+"00";let e=u.split("").map(n=>AA[n]).join("");for(;e.length>=Iw;){let n=e.substring(0,Iw);e=parseInt(n,10)%97+e.substring(n.length)}let t=String(98-parseInt(e,10)%97);for(;t.length<2;)t="0"+t;return t}const dk0=function(){const u={};for(let e=0;e<36;e++){const t="0123456789abcdefghijklmnopqrstuvwxyz"[e];u[t]=BigInt(e)}return u}();function pk0(u){u=u.toLowerCase();let e=lk0;for(let t=0;te.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return x(this,Xa)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return x(this,Xa)===!0?-1:x(this,Xa)===!1?this.value.length:null}static from(e,t){return new Br(vr,e,t)}static uint8(e){return F0(e,8)}static uint16(e){return F0(e,16)}static uint24(e){return F0(e,24)}static uint32(e){return F0(e,32)}static uint40(e){return F0(e,40)}static uint48(e){return F0(e,48)}static uint56(e){return F0(e,56)}static uint64(e){return F0(e,64)}static uint72(e){return F0(e,72)}static uint80(e){return F0(e,80)}static uint88(e){return F0(e,88)}static uint96(e){return F0(e,96)}static uint104(e){return F0(e,104)}static uint112(e){return F0(e,112)}static uint120(e){return F0(e,120)}static uint128(e){return F0(e,128)}static uint136(e){return F0(e,136)}static uint144(e){return F0(e,144)}static uint152(e){return F0(e,152)}static uint160(e){return F0(e,160)}static uint168(e){return F0(e,168)}static uint176(e){return F0(e,176)}static uint184(e){return F0(e,184)}static uint192(e){return F0(e,192)}static uint200(e){return F0(e,200)}static uint208(e){return F0(e,208)}static uint216(e){return F0(e,216)}static uint224(e){return F0(e,224)}static uint232(e){return F0(e,232)}static uint240(e){return F0(e,240)}static uint248(e){return F0(e,248)}static uint256(e){return F0(e,256)}static uint(e){return F0(e,256)}static int8(e){return F0(e,-8)}static int16(e){return F0(e,-16)}static int24(e){return F0(e,-24)}static int32(e){return F0(e,-32)}static int40(e){return F0(e,-40)}static int48(e){return F0(e,-48)}static int56(e){return F0(e,-56)}static int64(e){return F0(e,-64)}static int72(e){return F0(e,-72)}static int80(e){return F0(e,-80)}static int88(e){return F0(e,-88)}static int96(e){return F0(e,-96)}static int104(e){return F0(e,-104)}static int112(e){return F0(e,-112)}static int120(e){return F0(e,-120)}static int128(e){return F0(e,-128)}static int136(e){return F0(e,-136)}static int144(e){return F0(e,-144)}static int152(e){return F0(e,-152)}static int160(e){return F0(e,-160)}static int168(e){return F0(e,-168)}static int176(e){return F0(e,-176)}static int184(e){return F0(e,-184)}static int192(e){return F0(e,-192)}static int200(e){return F0(e,-200)}static int208(e){return F0(e,-208)}static int216(e){return F0(e,-216)}static int224(e){return F0(e,-224)}static int232(e){return F0(e,-232)}static int240(e){return F0(e,-240)}static int248(e){return F0(e,-248)}static int256(e){return F0(e,-256)}static int(e){return F0(e,-256)}static bytes1(e){return X0(e,1)}static bytes2(e){return X0(e,2)}static bytes3(e){return X0(e,3)}static bytes4(e){return X0(e,4)}static bytes5(e){return X0(e,5)}static bytes6(e){return X0(e,6)}static bytes7(e){return X0(e,7)}static bytes8(e){return X0(e,8)}static bytes9(e){return X0(e,9)}static bytes10(e){return X0(e,10)}static bytes11(e){return X0(e,11)}static bytes12(e){return X0(e,12)}static bytes13(e){return X0(e,13)}static bytes14(e){return X0(e,14)}static bytes15(e){return X0(e,15)}static bytes16(e){return X0(e,16)}static bytes17(e){return X0(e,17)}static bytes18(e){return X0(e,18)}static bytes19(e){return X0(e,19)}static bytes20(e){return X0(e,20)}static bytes21(e){return X0(e,21)}static bytes22(e){return X0(e,22)}static bytes23(e){return X0(e,23)}static bytes24(e){return X0(e,24)}static bytes25(e){return X0(e,25)}static bytes26(e){return X0(e,26)}static bytes27(e){return X0(e,27)}static bytes28(e){return X0(e,28)}static bytes29(e){return X0(e,29)}static bytes30(e){return X0(e,30)}static bytes31(e){return X0(e,31)}static bytes32(e){return X0(e,32)}static address(e){return new Br(vr,"address",e)}static bool(e){return new Br(vr,"bool",!!e)}static bytes(e){return new Br(vr,"bytes",e)}static string(e){return new Br(vr,"string",e)}static array(e,t){throw new Error("not implemented yet")}static tuple(e,t){throw new Error("not implemented yet")}static overrides(e){return new Br(vr,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===Nw}static dereference(e,t){if(Br.isTyped(e)){if(e.type!==t)throw new Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}};Xa=new WeakMap;let Oe=Br;class Ck0 extends ci{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let n=Oe.dereference(t,"string");try{n=tu(n)}catch(r){return this._throwError(r.message,t)}return e.writeValue(n)}decode(e){return tu(Ea(e.readValue(),20))}}class mk0 extends ci{constructor(t){super(t.name,t.type,"_",t.dynamic);Z(this,"coder");this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,n){return this.coder.encode(t,n)}decode(t){return this.coder.decode(t)}}function rj(u,e,t){let n=[];if(Array.isArray(t))n=t;else if(t&&typeof t=="object"){let s={};n=e.map(f=>{const l=f.localName;return c0(l,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:f},value:t}),c0(!s[l],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:f},value:t}),s[l]=!0,t[l]})}else Q(!1,"invalid tuple value","tuple",t);Q(e.length===n.length,"types/value length mismatch","tuple",t);let r=new JC,i=new JC,a=[];e.forEach((s,f)=>{let l=n[f];if(s.dynamic){let c=i.length;s.encode(i,l);let E=r.writeUpdatableValue();a.push(d=>{E(d+c)})}else s.encode(r,l)}),a.forEach(s=>{s(r.length)});let o=u.appendWriter(r);return o+=u.appendWriter(i),o}function ij(u,e){let t=[],n=[],r=u.subReader(0);return e.forEach(i=>{let a=null;if(i.dynamic){let o=u.readIndex(),s=r.subReader(o);try{a=i.decode(s)}catch(f){if(an(f,"BUFFER_OVERRUN"))throw f;a=f,a.baseType=i.name,a.name=i.localName,a.type=i.type}}else try{a=i.decode(u)}catch(o){if(an(o,"BUFFER_OVERRUN"))throw o;a=o,a.baseType=i.name,a.name=i.localName,a.type=i.type}if(a==null)throw new Error("investigate");t.push(a),n.push(i.localName||null)}),k2.fromItems(t,n)}class bk0 extends ci{constructor(t,n,r){const i=t.type+"["+(n>=0?n:"")+"]",a=n===-1||t.dynamic;super("array",i,r,a);Z(this,"coder");Z(this,"length");j0(this,{coder:t,length:n})}defaultValue(){const t=this.coder.defaultValue(),n=[];for(let r=0;ra||r<-(a+Dk0))&&this._throwError("value out-of-bounds",n),r=qM(r,8*$e)}else(rZ3(i,this.size*8))&&this._throwError("value out-of-bounds",n);return t.writeValue(r)}decode(t){let n=Z3(t.readValue(),this.size*8);return this.signed&&(n=qx0(n,this.size*8)),n}}class kk0 extends aj{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,qr(Oe.dereference(t,"string")))}decode(e){return bA(super.decode(e))}}class y6 extends ci{constructor(t,n){let r=!1;const i=[];t.forEach(o=>{o.dynamic&&(r=!0),i.push(o.type)});const a="tuple("+i.join(",")+")";super("tuple",a,n,r);Z(this,"coders");j0(this,{coders:Object.freeze(t.slice())})}defaultValue(){const t=[];this.coders.forEach(r=>{t.push(r.defaultValue())});const n=this.coders.reduce((r,i)=>{const a=i.localName;return a&&(r[a]||(r[a]=0),r[a]++),r},{});return this.coders.forEach((r,i)=>{let a=r.localName;!a||n[a]!==1||(a==="length"&&(a="_length"),t[a]==null&&(t[a]=t[i]))}),Object.freeze(t)}encode(t,n){const r=Oe.dereference(n,"tuple");return rj(t,this.coders,r)}decode(t){return ij(t,this.coders)}}function da(u){return wu(qr(u))}var _k0="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const Rw=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),Mw=4;function Sk0(u){let e=0;function t(){return u[e++]<<8|u[e++]}let n=t(),r=1,i=[0,1];for(let B=1;B>--s&1}const c=31,E=2**c,d=E>>>1,p=d>>1,h=E-1;let g=0;for(let B=0;B1;){let _=v+C>>>1;B>>1|l(),D=D<<1^d,T=(T^d)<<1|d|1;m=D,A=1+T-D}let y=n-4;return b.map(B=>{switch(B-y){case 3:return y+65792+(u[o++]<<16|u[o++]<<8|u[o++]);case 2:return y+256+(u[o++]<<8|u[o++]);case 1:return y+u[o++];default:return B-1}})}function Tk0(u){let e=0;return()=>u[e++]}function oj(u){return Tk0(Sk0(Pk0(u)))}function Pk0(u){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((r,i)=>e[r.charCodeAt(0)]=i);let t=u.length,n=new Uint8Array(6*t>>3);for(let r=0,i=0,a=0,o=0;r=8&&(n[i++]=o>>(a-=8));return n}function Ok0(u){return u&1?~u>>1:u>>1}function Ik0(u,e){let t=Array(u);for(let n=0,r=0;n{let e=r1(u);if(e.length)return e})}function fj(u){let e=[];for(;;){let t=u();if(t==0)break;e.push(Nk0(t,u))}for(;;){let t=u()-1;if(t<0)break;e.push(Rk0(t,u))}return e.flat()}function i1(u){let e=[];for(;;){let t=u(e.length);if(!t)break;e.push(t)}return e}function lj(u,e,t){let n=Array(u).fill().map(()=>[]);for(let r=0;rn[a].push(i));return n}function Nk0(u,e){let t=1+e(),n=e(),r=i1(e);return lj(r.length,1+u,e).flatMap((a,o)=>{let[s,...f]=a;return Array(r[o]).fill().map((l,c)=>{let E=c*n;return[s+c*t,f.map(d=>d+E)]})})}function Rk0(u,e){let t=1+e();return lj(t,1+u,e).map(r=>[r[0],r.slice(1)])}function Mk0(u){let e=[],t=r1(u);return r(n([]),[]),e;function n(i){let a=u(),o=i1(()=>{let s=r1(u).map(f=>t[f]);if(s.length)return n(s)});return{S:a,B:o,Q:i}}function r({S:i,B:a},o,s){if(!(i&4&&s===o[o.length-1])){i&2&&(s=o[o.length-1]),i&1&&e.push(o);for(let f of a)for(let l of f.Q)r(f,[...o,l],s)}}}function jk0(u){return u.toString(16).toUpperCase().padStart(2,"0")}function cj(u){return`{${jk0(u)}}`}function zk0(u){let e=[];for(let t=0,n=u.length;t>24&255}function pj(u){return u&16777215}let XC,jw,u7,J6;function Vk0(){let u=oj($k0);XC=new Map(sj(u).flatMap((e,t)=>e.map(n=>[n,t+1<<24]))),jw=new Set(r1(u)),u7=new Map,J6=new Map;for(let[e,t]of fj(u)){if(!jw.has(e)&&t.length==2){let[n,r]=t,i=J6.get(n);i||(i=new Map,J6.set(n,i)),i.set(r,e)}u7.set(e,t.reverse())}}function hj(u){return u>=a1&&u=_2&&u=S2&&eT2&&e0&&r(T2+f)}else{let a=u7.get(i);a?t.push(...a):r(i)}if(!t.length)break;i=t.pop()}if(n&&e.length>1){let i=ul(e[0]);for(let a=1;a0&&r>=a)a==0?(e.push(n,...t),t.length=0,n=o):t.push(o),r=a;else{let s=Kk0(n,o);s>=0?n=s:r==0&&a==0?(e.push(n),n=o):(t.push(o),r=a)}}return n>=0&&e.push(n,...t),e}function mj(u){return Cj(u).map(pj)}function Jk0(u){return Qk0(Cj(u))}const zw=45,bj=".",gj=65039,Aj=1,qs=u=>Array.from(u);function o1(u,e){return u.P.has(e)||u.Q.has(e)}class Yk0 extends Array{get is_emoji(){return!0}}let e7,yj,Wa,t7,vj,o4,yp,Bs,Bj,Lw,n7;function yA(){if(e7)return;let u=oj(_k0);const e=()=>r1(u),t=()=>new Set(e());e7=new Map(fj(u)),yj=t(),Wa=e(),t7=new Set(e().map(l=>Wa[l])),Wa=new Set(Wa),vj=t(),t();let n=sj(u),r=u();const i=()=>new Set(e().flatMap(l=>n[l]).concat(e()));o4=i1(l=>{let c=i1(u).map(E=>E+96);if(c.length){let E=l>=r;c[0]-=32,c=Nf(c),E&&(c=`Restricted[${c}]`);let d=i(),p=i(),h=!u();return{N:c,P:d,Q:p,M:h,R:E}}}),yp=t(),Bs=new Map;let a=e().concat(qs(yp)).sort((l,c)=>l-c);a.forEach((l,c)=>{let E=u(),d=a[c]=E?a[c-E]:{V:[],M:new Map};d.V.push(l),yp.has(l)||Bs.set(l,d)});for(let{V:l,M:c}of new Set(Bs.values())){let E=[];for(let p of l){let h=o4.filter(b=>o1(b,p)),g=E.find(({G:b})=>h.some(m=>b.has(m)));g||(g={G:new Set,V:[]},E.push(g)),g.V.push(p),h.forEach(b=>g.G.add(b))}let d=E.flatMap(p=>qs(p.G));for(let{G:p,V:h}of E){let g=new Set(d.filter(b=>!p.has(b)));for(let b of h)c.set(b,g)}}let o=new Set,s=new Set;const f=l=>o.has(l)?s.add(l):o.add(l);for(let l of o4){for(let c of l.P)f(c);for(let c of l.Q)f(c)}for(let l of o)!Bs.has(l)&&!s.has(l)&&Bs.set(l,Aj);Bj=new Set(qs(o).concat(qs(mj(o)))),Lw=Mk0(u).map(l=>Yk0.from(l)).sort(Lk0),n7=new Map;for(let l of Lw){let c=[n7];for(let E of l){let d=c.map(p=>{let h=p.get(E);return h||(h=new Map,p.set(E,h)),h});E===gj?c.push(...d):c=d}for(let E of c)E.V=l}}function vA(u){return(Fj(u)?"":`${BA(wd([u]))} `)+cj(u)}function BA(u){return`"${u}"‎`}function Zk0(u){if(u.length>=4&&u[2]==zw&&u[3]==zw)throw new Error(`invalid label extension: "${Nf(u.slice(0,4))}"`)}function Xk0(u){for(let t=u.lastIndexOf(95);t>0;)if(u[--t]!==95)throw new Error("underscore allowed only at start")}function u_0(u){let e=u[0],t=Rw.get(e);if(t)throw bl(`leading ${t}`);let n=u.length,r=-1;for(let i=1;i{let i=zk0(r),a={input:i,offset:n};n+=i.length+1;try{let o=a.tokens=s_0(i,e,t),s=o.length,f;if(!s)throw new Error("empty label");let l=a.output=o.flat();if(Xk0(l),!(a.emoji=s>1||o[0].is_emoji)&&l.every(E=>E<128))Zk0(l),f="ASCII";else{let E=o.flatMap(d=>d.is_emoji?[]:d);if(!E.length)f="Emoji";else{if(Wa.has(l[0]))throw bl("leading combining mark");for(let h=1;ha.has(o)):qs(a),!t.length)return}else n.push(r)}if(t){for(let r of t)if(n.every(i=>o1(r,i)))throw new Error(`whole-script confusable: ${u.N}/${r.N}`)}}function i_0(u){let e=o4;for(let t of u){let n=e.filter(r=>o1(r,t));if(!n.length)throw o4.some(r=>o1(r,t))?wj(e[0],t):Dj(t);if(e=n,n.length==1)break}return e}function a_0(u){return u.map(({input:e,error:t,output:n})=>{if(t){let r=t.message;throw new Error(u.length==1?r:`Invalid label ${BA(wd(e))}: ${r}`)}return Nf(n)}).join(bj)}function Dj(u){return new Error(`disallowed character: ${vA(u)}`)}function wj(u,e){let t=vA(e),n=o4.find(r=>r.P.has(e));return n&&(t=`${n.N} ${t}`),new Error(`illegal mixture: ${u.N} + ${t}`)}function bl(u){return new Error(`illegal placement: ${u}`)}function o_0(u,e){for(let t of e)if(!o1(u,t))throw wj(u,t);if(u.M){let t=mj(e);for(let n=1,r=t.length;nMw)throw new Error(`excessive non-spacing marks: ${BA(wd(t.slice(n-1,i)))} (${i-n}/${Mw})`);n=i}}}function s_0(u,e,t){let n=[],r=[];for(u=u.slice().reverse();u.length;){let i=l_0(u);if(i)r.length&&(n.push(e(r)),r=[]),n.push(t(i));else{let a=u.pop();if(Bj.has(a))r.push(a);else{let o=e7.get(a);if(o)r.push(...o);else if(!yj.has(a))throw Dj(a)}}}return r.length&&n.push(e(r)),n}function f_0(u){return u.filter(e=>e!=gj)}function l_0(u,e){let t=n7,n,r=u.length;for(;r&&(t=t.get(u[--r]),!!t);){let{V:i}=t;i&&(n=i,e&&e.push(...u.slice(r).reverse()),u.length=r)}return n}const xj=new Uint8Array(32);xj.fill(0);function $w(u){return Q(u.length!==0,"invalid ENS name; empty component","comp",u),u}function kj(u){const e=qr(c_0(u)),t=[];if(u.length===0)return t;let n=0;for(let r=0;r{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}function vp(u,e){return{address:tu(u),storageKeys:e.map((t,n)=>(Q(ku(t,32),"invalid slot",`storageKeys[${n}]`,t),t.toLowerCase()))}}function ts(u){if(Array.isArray(u))return u.map((t,n)=>Array.isArray(t)?(Q(t.length===2,"invalid slot set",`value[${n}]`,t),vp(t[0],t[1])):(Q(t!=null&&typeof t=="object","invalid address-slot set","value",u),vp(t.address,t.storageKeys)));Q(u!=null&&typeof u=="object","invalid access list","value",u);const e=Object.keys(u).map(t=>{const n=u[t].reduce((r,i)=>(r[i]=!0,r),{});return vp(t,Object.keys(n).sort())});return e.sort((t,n)=>t.address.localeCompare(n.address)),e}function d_0(u){let e;return typeof u=="string"?e=n1.computePublicKey(u,!1):e=u.publicKey,tu(wu("0x"+e.substring(4)).substring(26))}function p_0(u,e){return d_0(n1.recoverPublicKey(u,e))}const rt=BigInt(0),h_0=BigInt(2),C_0=BigInt(27),m_0=BigInt(28),b_0=BigInt(35),g_0=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function FA(u){return u==="0x"?null:tu(u)}function _j(u,e){try{return ts(u)}catch(t){Q(!1,t.message,e,u)}}function xd(u,e){return u==="0x"?0:q0(u,e)}function ze(u,e){if(u==="0x")return rt;const t=N0(u,e);return Q(t<=g_0,"value exceeds uint size",e,t),t}function Ce(u,e){const t=N0(u,"value"),n=Nt(t);return Q(n.length<=32,"value too large",`tx.${e}`,t),n}function Sj(u){return ts(u).map(e=>[e.address,e.storageKeys])}function A_0(u){const e=gA(u);Q(Array.isArray(e)&&(e.length===9||e.length===6),"invalid field count for legacy transaction","data",u);const t={type:0,nonce:xd(e[0],"nonce"),gasPrice:ze(e[1],"gasPrice"),gasLimit:ze(e[2],"gasLimit"),to:FA(e[3]),value:ze(e[4],"value"),data:I0(e[5]),chainId:rt};if(e.length===6)return t;const n=ze(e[6],"v"),r=ze(e[7],"r"),i=ze(e[8],"s");if(r===rt&&i===rt)t.chainId=n;else{let a=(n-b_0)/h_0;a=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),c0(!t||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),c0(this.type!==0||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const r=[];return this.type!=null?r.push(this.type):t?r.push(2):e?(r.push(1),n||r.push(0)):n?(r.push(1),r.push(2)):(r.push(0),r.push(1),r.push(2)),r.sort(),r}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}clone(){return Bi.from(this)}toJSON(){const e=t=>t==null?null:t.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new Bi;if(typeof e=="string"){const n=ru(e);if(n[0]>=127)return Bi.from(A_0(n));switch(n[0]){case 1:return Bi.from(v_0(n));case 2:return Bi.from(y_0(n))}c0(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const t=new Bi;return e.type!=null&&(t.type=e.type),e.to!=null&&(t.to=e.to),e.nonce!=null&&(t.nonce=e.nonce),e.gasLimit!=null&&(t.gasLimit=e.gasLimit),e.gasPrice!=null&&(t.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(t.maxFeePerGas=e.maxFeePerGas),e.data!=null&&(t.data=e.data),e.value!=null&&(t.value=e.value),e.chainId!=null&&(t.chainId=e.chainId),e.signature!=null&&(t.signature=Ln.from(e.signature)),e.accessList!=null&&(t.accessList=e.accessList),e.hash!=null&&(Q(t.isSigned(),"unsigned transaction cannot define hash","tx",e),Q(t.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(Q(t.isSigned(),"unsigned transaction cannot define from","tx",e),Q(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}};Tr=new WeakMap,b4=new WeakMap,g4=new WeakMap,A4=new WeakMap,y4=new WeakMap,v4=new WeakMap,B4=new WeakMap,F4=new WeakMap,D4=new WeakMap,w4=new WeakMap,x4=new WeakMap,k4=new WeakMap;let O2=Bi;const Pj=new Uint8Array(32);Pj.fill(0);const B_0=BigInt(-1),Oj=BigInt(0),Ij=BigInt(1),F_0=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function D_0(u){const e=ru(u),t=e.length%32;return t?te([e,Pj.slice(t)]):I0(e)}const w_0=Ea(Ij,32),x_0=Ea(Oj,32),Hw={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Bp=["name","version","chainId","verifyingContract","salt"];function Gw(u){return function(e){return Q(typeof e=="string",`invalid domain value for ${JSON.stringify(u)}`,`domain.${u}`,e),e}}const k_0={name:Gw("name"),version:Gw("version"),chainId:function(u){const e=N0(u,"domain.chainId");return Q(e>=0,"invalid chain ID","domain.chainId",u),Number.isSafeInteger(e)?Number(e):Ws(e)},verifyingContract:function(u){try{return tu(u).toLowerCase()}catch{}Q(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",u)},salt:function(u){const e=ru(u,"domain.salt");return Q(e.length===32,'invalid domain value "salt"',"domain.salt",u),I0(e)}};function Fp(u){{const e=u.match(/^(u?)int(\d*)$/);if(e){const t=e[1]==="",n=parseInt(e[2]||"256");Q(n%8===0&&n!==0&&n<=256&&(e[2]==null||e[2]===String(n)),"invalid numeric width","type",u);const r=Z3(F_0,t?n-1:n),i=t?(r+Ij)*B_0:Oj;return function(a){const o=N0(a,"value");return Q(o>=i&&o<=r,`value out-of-bounds for ${u}`,"value",o),Ea(t?qM(o,256):o,32)}}}{const e=u.match(/^bytes(\d+)$/);if(e){const t=parseInt(e[1]);return Q(t!==0&&t<=32&&e[1]===String(t),"invalid bytes width","type",u),function(n){const r=ru(n);return Q(r.length===t,`invalid length for ${u}`,"value",n),D_0(n)}}}switch(u){case"address":return function(e){return Io(tu(e),32)};case"bool":return function(e){return e?w_0:x_0};case"bytes":return function(e){return wu(e)};case"string":return function(e){return da(e)}}return null}function Vw(u,e){return`${u}(${e.map(({name:t,type:n})=>n+" "+t).join(",")})`}var h1,Pr,_4,$2,Nj;const Ht=class Ht{constructor(e){X(this,$2);Z(this,"primaryType");X(this,h1,void 0);X(this,Pr,void 0);X(this,_4,void 0);I(this,h1,JSON.stringify(e)),I(this,Pr,new Map),I(this,_4,new Map);const t=new Map,n=new Map,r=new Map;Object.keys(e).forEach(o=>{t.set(o,new Set),n.set(o,[]),r.set(o,new Set)});for(const o in e){const s=new Set;for(const f of e[o]){Q(!s.has(f.name),`duplicate variable name ${JSON.stringify(f.name)} in ${JSON.stringify(o)}`,"types",e),s.add(f.name);const l=f.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;Q(l!==o,`circular type reference to ${JSON.stringify(l)}`,"types",e),!Fp(l)&&(Q(n.has(l),`unknown type ${JSON.stringify(l)}`,"types",e),n.get(l).push(o),t.get(o).add(l))}}const i=Array.from(n.keys()).filter(o=>n.get(o).length===0);Q(i.length!==0,"missing primary type","types",e),Q(i.length===1,`ambiguous primary types or unused types: ${i.map(o=>JSON.stringify(o)).join(", ")}`,"types",e),j0(this,{primaryType:i[0]});function a(o,s){Q(!s.has(o),`circular type reference to ${JSON.stringify(o)}`,"types",e),s.add(o);for(const f of t.get(o))if(n.has(f)){a(f,s);for(const l of s)r.get(l).add(f)}s.delete(o)}a(this.primaryType,new Set);for(const[o,s]of r){const f=Array.from(s);f.sort(),x(this,Pr).set(o,Vw(o,e[o])+f.map(l=>Vw(l,e[l])).join(""))}}get types(){return JSON.parse(x(this,h1))}getEncoder(e){let t=x(this,_4).get(e);return t||(t=A0(this,$2,Nj).call(this,e),x(this,_4).set(e,t)),t}encodeType(e){const t=x(this,Pr).get(e);return Q(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return wu(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(Fp(e))return n(e,t);const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r)return Q(!r[3]||parseInt(r[3])===t.length,`array length mismatch; expected length ${parseInt(r[3])}`,"value",t),t.map(a=>this._visit(r[1],a,n));const i=this.types[e];if(i)return i.reduce((a,{name:o,type:s})=>(a[o]=this._visit(s,t[o],n),a),{});Q(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new Ht(e)}static getPrimaryType(e){return Ht.from(e).primaryType}static hashStruct(e,t,n){return Ht.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){if(e[n]==null)continue;const r=Hw[n];Q(r,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),t.push({name:n,type:r})}return t.sort((n,r)=>Bp.indexOf(n.name)-Bp.indexOf(r.name)),Ht.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return te(["0x1901",Ht.hashDomain(e),Ht.from(t).hash(n)])}static hash(e,t,n){return wu(Ht.encode(e,t,n))}static async resolveNames(e,t,n,r){e=Object.assign({},e);for(const o in e)e[o]==null&&delete e[o];const i={};e.verifyingContract&&!ku(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const a=Ht.from(t);a.visit(n,(o,s)=>(o==="address"&&!ku(s,20)&&(i[s]="0x"),s));for(const o in i)i[o]=await r(o);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=a.visit(n,(o,s)=>o==="address"&&i[s]?i[s]:s),{domain:e,value:n}}static getPayload(e,t,n){Ht.hashDomain(e);const r={},i=[];Bp.forEach(s=>{const f=e[s];f!=null&&(r[s]=k_0[s](f),i.push({name:s,type:Hw[s]}))});const a=Ht.from(t),o=Object.assign({},t);return Q(o.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",t),o.EIP712Domain=i,a.encode(n),{types:o,domain:r,primaryType:a.primaryType,message:a.visit(n,(s,f)=>{if(s.match(/^bytes(\d*)/))return I0(ru(f));if(s.match(/^u?int/))return N0(f).toString();switch(s){case"address":return f.toLowerCase();case"bool":return!!f;case"string":return Q(typeof f=="string","invalid string","value",f),f}Q(!1,"unsupported type","type",s)})}}};h1=new WeakMap,Pr=new WeakMap,_4=new WeakMap,$2=new WeakSet,Nj=function(e){{const r=Fp(e);if(r)return r}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const r=t[1],i=this.getEncoder(r);return a=>{Q(!t[3]||parseInt(t[3])===a.length,`array length mismatch; expected length ${parseInt(t[3])}`,"value",a);let o=a.map(i);return x(this,Pr).has(r)&&(o=o.map(wu)),wu(te(o))}}const n=this.types[e];if(n){const r=da(x(this,Pr).get(e));return i=>{const a=n.map(({name:o,type:s})=>{const f=this.getEncoder(s)(i[o]);return x(this,Pr).has(s)?wu(f):f});return a.unshift(r),te(a)}}Q(!1,`unknown type: ${e}`,"type",e)};let I2=Ht;function We(u){const e=new Set;return u.forEach(t=>e.add(t)),Object.freeze(e)}const __0="external public payable",S_0=We(__0.split(" ")),Rj="constant external internal payable private public pure view",T_0=We(Rj.split(" ")),Mj="constructor error event fallback function receive struct",jj=We(Mj.split(" ")),zj="calldata memory storage payable indexed",P_0=We(zj.split(" ")),O_0="tuple returns",I_0=[Mj,zj,O_0,Rj].join(" "),N_0=We(I_0.split(" ")),R_0={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},M_0=new RegExp("^(\\s*)"),j_0=new RegExp("^([0-9]+)"),z_0=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),Lj=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),$j=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var de,Dn,C1,i7;const U2=class U2{constructor(e){X(this,C1);X(this,de,void 0);X(this,Dn,void 0);I(this,de,0),I(this,Dn,e.slice())}get offset(){return x(this,de)}get length(){return x(this,Dn).length-x(this,de)}clone(){return new U2(x(this,Dn))}reset(){I(this,de,0)}popKeyword(e){const t=this.peek();if(t.type!=="KEYWORD"||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e)throw new Error(`expected ${e}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const t=A0(this,C1,i7).call(this,x(this,de)+1,e.match+1);return I(this,de,e.match+1),t}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const t=[];for(;x(this,de)=x(this,Dn).length)throw new Error("out-of-bounds");return x(this,Dn)[x(this,de)]}peekKeyword(e){const t=this.peekType("KEYWORD");return t!=null&&e.has(t)?t:null}peekType(e){if(this.length===0)return null;const t=this.peek();return t.type===e?t.text:null}pop(){const e=this.peek();return b3(this,de)._++,e}toString(){const e=[];for(let t=x(this,de);t`}};de=new WeakMap,Dn=new WeakMap,C1=new WeakSet,i7=function(e=0,t=0){return new U2(x(this,Dn).slice(e,t).map(n=>Object.freeze(Object.assign({},n,{match:n.match-e,linkBack:n.linkBack-e,linkNext:n.linkNext-e}))))};let $n=U2;function Ba(u){const e=[],t=a=>{const o=i0&&e[e.length-1].type==="NUMBER"){const c=e.pop().text;l=c+l,e[e.length-1].value=q0(c)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=l}continue}if(o=a.match(z_0),o){if(s.text=o[1],i+=s.text.length,N_0.has(s.text)){s.type="KEYWORD";continue}if(s.text.match($j)){s.type="TYPE";continue}s.type="ID";continue}if(o=a.match(j_0),o){s.text=o[1],s.type="NUMBER",i+=s.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(a[0])} at position ${i}`)}return new $n(e.map(a=>Object.freeze(a)))}function Kw(u,e){let t=[];for(const n in e.keys())u.has(n)&&t.push(n);if(t.length>1)throw new Error(`conflicting types: ${t.join(", ")}`)}function kd(u,e){if(e.peekKeyword(jj)){const t=e.pop().text;if(t!==u)throw new Error(`expected ${u}, got ${t}`)}return e.popType("ID")}function ei(u,e){const t=new Set;for(;;){const n=u.peekType("KEYWORD");if(n==null||e&&!e.has(n))break;if(u.pop(),t.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);t.add(n)}return Object.freeze(t)}function Uj(u){let e=ei(u,T_0);return Kw(e,We("constant payable nonpayable".split(" "))),Kw(e,We("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function Hr(u,e){return u.popParams().map(t=>be.from(t,e))}function Wj(u){if(u.peekType("AT")){if(u.pop(),u.peekType("NUMBER"))return N0(u.pop().text);throw new Error("invalid gas")}return null}function No(u){if(u.length)throw new Error(`unexpected tokens: ${u.toString()}`)}const L_0=new RegExp(/^(.*)\[([0-9]*)\]$/);function Qw(u){const e=u.match($j);if(Q(e,"invalid type","type",u),u==="uint")return"uint256";if(u==="int")return"int256";if(e[2]){const t=parseInt(e[2]);Q(t!==0&&t<=32,"invalid bytes length","type",u)}else if(e[3]){const t=parseInt(e[3]);Q(t!==0&&t<=256&&t%8===0,"invalid numeric width","type",u)}return u}const Du={},Ct=Symbol.for("_ethers_internal"),Jw="_ParamTypeInternal",Yw="_ErrorInternal",Zw="_EventInternal",Xw="_ConstructorInternal",ux="_FallbackInternal",ex="_FunctionInternal",tx="_StructInternal";var S4,Y6;const Gt=class Gt{constructor(e,t,n,r,i,a,o,s){X(this,S4);Z(this,"name");Z(this,"type");Z(this,"baseType");Z(this,"indexed");Z(this,"components");Z(this,"arrayLength");Z(this,"arrayChildren");if(Bd(e,Du,"ParamType"),Object.defineProperty(this,Ct,{value:Jw}),a&&(a=Object.freeze(a.slice())),r==="array"){if(o==null||s==null)throw new Error("")}else if(o!=null||s!=null)throw new Error("");if(r==="tuple"){if(a==null)throw new Error("")}else if(a!=null)throw new Error("");j0(this,{name:t,type:n,baseType:r,indexed:i,components:a,arrayLength:o,arrayChildren:s})}format(e){if(e==null&&(e="sighash"),e==="json"){const n=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=n,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const r={type:this.baseType==="tuple"?"tuple":this.type,name:n};return typeof this.indexed=="boolean"&&(r.indexed=this.indexed),this.isTuple()&&(r.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(r)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map(n=>n.format(e)).join(e==="full"?", ":",")+")":t+=this.type,e!=="sighash"&&(this.indexed===!0&&(t+=" indexed"),e==="full"&&this.name&&(t+=" "+this.name)),t}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map(r=>n.arrayChildren.walk(r,t))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map((r,i)=>n.components[i].walk(r,t))}return t(this.type,e)}async walkAsync(e,t){const n=[],r=[e];return A0(this,S4,Y6).call(this,n,e,t,i=>{r[0]=i}),n.length&&await Promise.all(n),r[0]}static from(e,t){if(Gt.isParamType(e))return e;if(typeof e=="string")try{return Gt.from(Ba(e),t)}catch{Q(!1,"invalid param type","obj",e)}else if(e instanceof $n){let o="",s="",f=null;ei(e,We(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(s="tuple",f=e.popParams().map(h=>Gt.from(h)),o=`tuple(${f.map(h=>h.format()).join(",")})`):(o=Qw(e.popType("TYPE")),s=o);let l=null,c=null;for(;e.length&&e.peekType("BRACKET");){const h=e.pop();l=new Gt(Du,"",o,s,null,f,c,l),c=h.value,o+=h.text,s="array",f=null}let E=null;if(ei(e,P_0).has("indexed")){if(!t)throw new Error("");E=!0}const p=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Gt(Du,p,o,s,E,f,c,l)}const n=e.name;Q(!n||typeof n=="string"&&n.match(Lj),"invalid name","obj.name",n);let r=e.indexed;r!=null&&(Q(t,"parameter cannot be indexed","obj.indexed",e.indexed),r=!!r);let i=e.type,a=i.match(L_0);if(a){const o=parseInt(a[2]||"-1"),s=Gt.from({type:a[1],components:e.components});return new Gt(Du,n||"",i,"array",r,null,o,s)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const o=e.components!=null?e.components.map(f=>Gt.from(f)):null;return new Gt(Du,n||"",i,"tuple",r,o,null,null)}return i=Qw(e.type),new Gt(Du,n||"",i,i,r,null,null,null)}static isParamType(e){return e&&e[Ct]===Jw}};S4=new WeakSet,Y6=function(e,t,n,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(this.arrayLength!==-1&&t.length!==this.arrayLength)throw new Error("array is wrong length");const a=this.arrayChildren,o=t.slice();o.forEach((s,f)=>{var l;A0(l=a,S4,Y6).call(l,e,s,n,c=>{o[f]=c})}),r(o);return}if(this.isTuple()){const a=this.components;let o;if(Array.isArray(t))o=t.slice();else{if(t==null||typeof t!="object")throw new Error("invalid tuple value");o=a.map(s=>{if(!s.name)throw new Error("cannot use object value with unnamed components");if(!(s.name in t))throw new Error(`missing value for component ${s.name}`);return t[s.name]})}if(o.length!==this.components.length)throw new Error("array is wrong length");o.forEach((s,f)=>{var l;A0(l=a[f],S4,Y6).call(l,e,s,n,c=>{o[f]=c})}),r(o);return}const i=n(this.type,t);i.then?e.push(async function(){r(await i)}()):r(i)};let be=Gt;class Ro{constructor(e,t,n){Z(this,"type");Z(this,"inputs");Bd(e,Du,"Fragment"),n=Object.freeze(n.slice()),j0(this,{type:t,inputs:n})}static from(e){if(typeof e=="string"){try{Ro.from(JSON.parse(e))}catch{}return Ro.from(Ba(e))}if(e instanceof $n)switch(e.peekKeyword(jj)){case"constructor":return Ur.from(e);case"error":return it.from(e);case"event":return rr.from(e);case"fallback":case"receive":return Dr.from(e);case"function":return ir.from(e);case"struct":return go.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return Ur.from(e);case"error":return it.from(e);case"event":return rr.from(e);case"fallback":case"receive":return Dr.from(e);case"function":return ir.from(e);case"struct":return go.from(e)}c0(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}Q(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return Ur.isFragment(e)}static isError(e){return it.isFragment(e)}static isEvent(e){return rr.isFragment(e)}static isFunction(e){return ir.isFragment(e)}static isStruct(e){return go.isFragment(e)}}class _d extends Ro{constructor(t,n,r,i){super(t,n,i);Z(this,"name");Q(typeof r=="string"&&r.match(Lj),"invalid identifier","name",r),i=Object.freeze(i.slice()),j0(this,{name:r})}}function s1(u,e){return"("+e.map(t=>t.format(u)).join(u==="full"?", ":",")+")"}class it extends _d{constructor(e,t,n){super(e,"error",t,n),Object.defineProperty(this,Ct,{value:Yw})}get selector(){return da(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});const t=[];return e!=="sighash"&&t.push("error"),t.push(this.name+s1(e,this.inputs)),t.join(" ")}static from(e){if(it.isFragment(e))return e;if(typeof e=="string")return it.from(Ba(e));if(e instanceof $n){const t=kd("error",e),n=Hr(e);return No(e),new it(Du,t,n)}return new it(Du,e.name,e.inputs?e.inputs.map(be.from):[])}static isFragment(e){return e&&e[Ct]===Yw}}class rr extends _d{constructor(t,n,r,i){super(t,"event",n,r);Z(this,"anonymous");Object.defineProperty(this,Ct,{value:Zw}),j0(this,{anonymous:i})}get topicHash(){return da(this.format("sighash"))}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(t)))});const n=[];return t!=="sighash"&&n.push("event"),n.push(this.name+s1(t,this.inputs)),t!=="sighash"&&this.anonymous&&n.push("anonymous"),n.join(" ")}static getTopicHash(t,n){return n=(n||[]).map(i=>be.from(i)),new rr(Du,t,n,!1).topicHash}static from(t){if(rr.isFragment(t))return t;if(typeof t=="string")try{return rr.from(Ba(t))}catch{Q(!1,"invalid event fragment","obj",t)}else if(t instanceof $n){const n=kd("event",t),r=Hr(t,!0),i=!!ei(t,We(["anonymous"])).has("anonymous");return No(t),new rr(Du,n,r,i)}return new rr(Du,t.name,t.inputs?t.inputs.map(n=>be.from(n,!0)):[],!!t.anonymous)}static isFragment(t){return t&&t[Ct]===Zw}}class Ur extends Ro{constructor(t,n,r,i,a){super(t,n,r);Z(this,"payable");Z(this,"gas");Object.defineProperty(this,Ct,{value:Xw}),j0(this,{payable:i,gas:a})}format(t){if(c0(t!=null&&t!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),t==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(t)))});const n=[`constructor${s1(t,this.inputs)}`];return this.payable&&n.push("payable"),this.gas!=null&&n.push(`@${this.gas.toString()}`),n.join(" ")}static from(t){if(Ur.isFragment(t))return t;if(typeof t=="string")try{return Ur.from(Ba(t))}catch{Q(!1,"invalid constuctor fragment","obj",t)}else if(t instanceof $n){ei(t,We(["constructor"]));const n=Hr(t),r=!!ei(t,S_0).has("payable"),i=Wj(t);return No(t),new Ur(Du,"constructor",n,r,i)}return new Ur(Du,"constructor",t.inputs?t.inputs.map(be.from):[],!!t.payable,t.gas!=null?t.gas:null)}static isFragment(t){return t&&t[Ct]===Xw}}class Dr extends Ro{constructor(t,n,r){super(t,"fallback",n);Z(this,"payable");Object.defineProperty(this,Ct,{value:ux}),j0(this,{payable:r})}format(t){const n=this.inputs.length===0?"receive":"fallback";if(t==="json"){const r=this.payable?"payable":"nonpayable";return JSON.stringify({type:n,stateMutability:r})}return`${n}()${this.payable?" payable":""}`}static from(t){if(Dr.isFragment(t))return t;if(typeof t=="string")try{return Dr.from(Ba(t))}catch{Q(!1,"invalid fallback fragment","obj",t)}else if(t instanceof $n){const n=t.toString(),r=t.peekKeyword(We(["fallback","receive"]));if(Q(r,"type must be fallback or receive","obj",n),t.popKeyword(We(["fallback","receive"]))==="receive"){const s=Hr(t);return Q(s.length===0,"receive cannot have arguments","obj.inputs",s),ei(t,We(["payable"])),No(t),new Dr(Du,[],!0)}let a=Hr(t);a.length?Q(a.length===1&&a[0].type==="bytes","invalid fallback inputs","obj.inputs",a.map(s=>s.format("minimal")).join(", ")):a=[be.from("bytes")];const o=Uj(t);if(Q(o==="nonpayable"||o==="payable","fallback cannot be constants","obj.stateMutability",o),ei(t,We(["returns"])).has("returns")){const s=Hr(t);Q(s.length===1&&s[0].type==="bytes","invalid fallback outputs","obj.outputs",s.map(f=>f.format("minimal")).join(", "))}return No(t),new Dr(Du,a,o==="payable")}if(t.type==="receive")return new Dr(Du,[],!0);if(t.type==="fallback"){const n=[be.from("bytes")],r=t.stateMutability==="payable";return new Dr(Du,n,r)}Q(!1,"invalid fallback description","obj",t)}static isFragment(t){return t&&t[Ct]===ux}}class ir extends _d{constructor(t,n,r,i,a,o){super(t,"function",n,i);Z(this,"constant");Z(this,"outputs");Z(this,"stateMutability");Z(this,"payable");Z(this,"gas");Object.defineProperty(this,Ct,{value:ex}),a=Object.freeze(a.slice()),j0(this,{constant:r==="view"||r==="pure",gas:o,outputs:a,payable:r==="payable",stateMutability:r})}get selector(){return da(this.format("sighash")).substring(0,10)}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(t))),outputs:this.outputs.map(r=>JSON.parse(r.format(t)))});const n=[];return t!=="sighash"&&n.push("function"),n.push(this.name+s1(t,this.inputs)),t!=="sighash"&&(this.stateMutability!=="nonpayable"&&n.push(this.stateMutability),this.outputs&&this.outputs.length&&(n.push("returns"),n.push(s1(t,this.outputs))),this.gas!=null&&n.push(`@${this.gas.toString()}`)),n.join(" ")}static getSelector(t,n){return n=(n||[]).map(i=>be.from(i)),new ir(Du,t,"view",n,[],null).selector}static from(t){if(ir.isFragment(t))return t;if(typeof t=="string")try{return ir.from(Ba(t))}catch{Q(!1,"invalid function fragment","obj",t)}else if(t instanceof $n){const r=kd("function",t),i=Hr(t),a=Uj(t);let o=[];ei(t,We(["returns"])).has("returns")&&(o=Hr(t));const s=Wj(t);return No(t),new ir(Du,r,a,i,o,s)}let n=t.stateMutability;return n==null&&(n="payable",typeof t.constant=="boolean"?(n="view",t.constant||(n="payable",typeof t.payable=="boolean"&&!t.payable&&(n="nonpayable"))):typeof t.payable=="boolean"&&!t.payable&&(n="nonpayable")),new ir(Du,t.name,n,t.inputs?t.inputs.map(be.from):[],t.outputs?t.outputs.map(be.from):[],t.gas!=null?t.gas:null)}static isFragment(t){return t&&t[Ct]===ex}}class go extends _d{constructor(e,t,n){super(e,"struct",t,n),Object.defineProperty(this,Ct,{value:tx})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return go.from(Ba(e))}catch{Q(!1,"invalid struct fragment","obj",e)}else if(e instanceof $n){const t=kd("struct",e),n=Hr(e);return No(e),new go(Du,t,n)}return new go(Du,e.name,e.inputs?e.inputs.map(be.from):[])}static isFragment(e){return e&&e[Ct]===tx}}const Wn=new Map;Wn.set(0,"GENERIC_PANIC");Wn.set(1,"ASSERT_FALSE");Wn.set(17,"OVERFLOW");Wn.set(18,"DIVIDE_BY_ZERO");Wn.set(33,"ENUM_RANGE_ERROR");Wn.set(34,"BAD_STORAGE_DATA");Wn.set(49,"STACK_UNDERFLOW");Wn.set(50,"ARRAY_RANGE_ERROR");Wn.set(65,"OUT_OF_MEMORY");Wn.set(81,"UNINITIALIZED_FUNCTION_CALL");const $_0=new RegExp(/^bytes([0-9]*)$/),U_0=new RegExp(/^(u?int)([0-9]*)$/);let Dp=null;function W_0(u,e,t,n){let r="missing revert data",i=null;const a=null;let o=null;if(t){r="execution reverted";const f=ru(t);if(t=I0(t),f.length===0)r+=" (no data present; likely require(false) occurred",i="require(false)";else if(f.length%32!==4)r+=" (could not decode reason; invalid data length)";else if(I0(f.slice(0,4))==="0x08c379a0")try{i=n.decode(["string"],f.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[i]},r+=`: ${JSON.stringify(i)}`}catch{r+=" (could not decode reason; invalid string data)"}else if(I0(f.slice(0,4))==="0x4e487b71")try{const l=Number(n.decode(["uint256"],f.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[l]},i=`Panic due to ${Wn.get(l)||"UNKNOWN"}(${l})`,r+=`: ${i}`}catch{r+=" (could not decode panic code)"}else r+=" (unknown custom error)"}const s={to:e.to?tu(e.to):null,data:e.data||"0x"};return e.from&&(s.from=tu(e.from)),Ju(r,"CALL_EXCEPTION",{action:u,data:t,reason:i,transaction:s,invocation:a,revert:o})}var Ti,Fs;const W2=class W2{constructor(){X(this,Ti)}getDefaultValue(e){const t=e.map(r=>A0(this,Ti,Fs).call(this,be.from(r)));return new y6(t,"_").defaultValue()}encode(e,t){$M(t.length,e.length,"types/values length mismatch");const n=e.map(a=>A0(this,Ti,Fs).call(this,be.from(a))),r=new y6(n,"_"),i=new JC;return r.encode(i,t),i.data}decode(e,t,n){const r=e.map(a=>A0(this,Ti,Fs).call(this,be.from(a)));return new y6(r,"_").decode(new YC(t,n))}static defaultAbiCoder(){return Dp==null&&(Dp=new W2),Dp}static getBuiltinCallException(e,t,n){return W_0(e,t,n,W2.defaultAbiCoder())}};Ti=new WeakSet,Fs=function(e){if(e.isArray())return new bk0(A0(this,Ti,Fs).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new y6(e.components.map(n=>A0(this,Ti,Fs).call(this,n)),e.name);switch(e.baseType){case"address":return new Ck0(e.name);case"bool":return new gk0(e.name);case"string":return new kk0(e.name);case"bytes":return new Ak0(e.name);case"":return new Bk0(e.name)}let t=e.type.match(U_0);if(t){let n=parseInt(t[2]||"256");return Q(n!==0&&n<=256&&n%8===0,"invalid "+t[1]+" bit length","param",e),new xk0(n/8,t[1]==="int",e.name)}if(t=e.type.match($_0),t){let n=parseInt(t[1]);return Q(n!==0&&n<=32,"invalid bytes length","param",e),new yk0(n,e.name)}Q(!1,"invalid type","type",e.type)};let f1=W2;class q_0{constructor(e,t,n){Z(this,"fragment");Z(this,"name");Z(this,"signature");Z(this,"topic");Z(this,"args");const r=e.name,i=e.format();j0(this,{fragment:e,name:r,signature:i,topic:t,args:n})}}class H_0{constructor(e,t,n,r){Z(this,"fragment");Z(this,"name");Z(this,"args");Z(this,"signature");Z(this,"selector");Z(this,"value");const i=e.name,a=e.format();j0(this,{fragment:e,name:i,args:n,signature:a,selector:t,value:r})}}class G_0{constructor(e,t,n){Z(this,"fragment");Z(this,"name");Z(this,"args");Z(this,"signature");Z(this,"selector");const r=e.name,i=e.format();j0(this,{fragment:e,name:r,args:n,signature:i,selector:t})}}class nx{constructor(e){Z(this,"hash");Z(this,"_isIndexed");j0(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const rx={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},ix={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:u=>`reverted with reason string ${JSON.stringify(u)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:u=>{let e="unknown panic code";return u>=0&&u<=255&&rx[u.toString()]&&(e=rx[u.toString()]),`reverted with panic code 0x${u.toString(16)} (${e})`}}};var Qn,Jn,Yn,we,T4,Z6,P4,X6;const Hs=class Hs{constructor(e){X(this,T4);X(this,P4);Z(this,"fragments");Z(this,"deploy");Z(this,"fallback");Z(this,"receive");X(this,Qn,void 0);X(this,Jn,void 0);X(this,Yn,void 0);X(this,we,void 0);let t=[];typeof e=="string"?t=JSON.parse(e):t=e,I(this,Yn,new Map),I(this,Qn,new Map),I(this,Jn,new Map);const n=[];for(const a of t)try{n.push(Ro.from(a))}catch(o){console.log("EE",o)}j0(this,{fragments:Object.freeze(n)});let r=null,i=!1;I(this,we,this.getAbiCoder()),this.fragments.forEach((a,o)=>{let s;switch(a.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}j0(this,{deploy:a});return;case"fallback":a.inputs.length===0?i=!0:(Q(!r||a.payable!==r.payable,"conflicting fallback fragments",`fragments[${o}]`,a),r=a,i=r.payable);return;case"function":s=x(this,Yn);break;case"event":s=x(this,Jn);break;case"error":s=x(this,Qn);break;default:return}const f=a.format();s.has(f)||s.set(f,a)}),this.deploy||j0(this,{deploy:Ur.from("constructor()")}),j0(this,{fallback:r,receive:i})}format(e){const t=e?"minimal":"full";return this.fragments.map(r=>r.format(t))}formatJson(){const e=this.fragments.map(t=>t.format("json"));return JSON.stringify(e.map(t=>JSON.parse(t)))}getAbiCoder(){return f1.defaultAbiCoder()}getFunctionName(e){const t=A0(this,T4,Z6).call(this,e,null,!1);return Q(t,"no matching function","key",e),t.name}hasFunction(e){return!!A0(this,T4,Z6).call(this,e,null,!1)}getFunction(e,t){return A0(this,T4,Z6).call(this,e,t||null,!0)}forEachFunction(e){const t=Array.from(x(this,Yn).keys());t.sort((n,r)=>n.localeCompare(r));for(let n=0;nn.localeCompare(r));for(let n=0;n1){const i=r.map(a=>JSON.stringify(a.format())).join(", ");Q(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return r[0]}if(e=it.from(e).format(),e==="Error(string)")return it.from("error Error(string)");if(e==="Panic(uint256)")return it.from("error Panic(uint256)");const n=x(this,Qn).get(e);return n||null}forEachError(e){const t=Array.from(x(this,Qn).keys());t.sort((n,r)=>n.localeCompare(r));for(let n=0;ni.type==="string"?da(a):i.type==="bytes"?wu(I0(a)):(i.type==="bool"&&typeof a=="boolean"?a=a?"0x01":"0x00":i.type.match(/^u?int/)?a=Ea(a):i.type.match(/^bytes/)?a=Wx0(a,32):i.type==="address"&&x(this,we).encode(["address"],[a]),Io(I0(a),32));for(t.forEach((i,a)=>{const o=e.inputs[a];if(!o.indexed){Q(i==null,"cannot filter non-indexed parameters; must be null","contract."+o.name,i);return}i==null?n.push(null):o.baseType==="array"||o.baseType==="tuple"?Q(!1,"filtering with tuples or arrays not supported","contract."+o.name,i):Array.isArray(i)?n.push(i.map(s=>r(o,s))):n.push(r(o,i))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,t){if(typeof e=="string"){const a=this.getEvent(e);Q(a,"unknown event","eventFragment",e),e=a}const n=[],r=[],i=[];return e.anonymous||n.push(e.topicHash),Q(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach((a,o)=>{const s=t[o];if(a.indexed)if(a.type==="string")n.push(da(s));else if(a.type==="bytes")n.push(wu(s));else{if(a.baseType==="tuple"||a.baseType==="array")throw new Error("not implemented");n.push(x(this,we).encode([a.type],[s]))}else r.push(a),i.push(s)}),{data:x(this,we).encode(r,i),topics:n}}decodeEventLog(e,t,n){if(typeof e=="string"){const d=this.getEvent(e);Q(d,"unknown event","eventFragment",e),e=d}if(n!=null&&!e.anonymous){const d=e.topicHash;Q(ku(n[0],32)&&n[0].toLowerCase()===d,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const r=[],i=[],a=[];e.inputs.forEach((d,p)=>{d.indexed?d.type==="string"||d.type==="bytes"||d.baseType==="tuple"||d.baseType==="array"?(r.push(be.from({type:"bytes32",name:d.name})),a.push(!0)):(r.push(d),a.push(!1)):(i.push(d),a.push(!1))});const o=n!=null?x(this,we).decode(r,te(n)):null,s=x(this,we).decode(i,t,!0),f=[],l=[];let c=0,E=0;return e.inputs.forEach((d,p)=>{let h=null;if(d.indexed)if(o==null)h=new nx(null);else if(a[p])h=new nx(o[E++]);else try{h=o[E++]}catch(g){h=g}else try{h=s[c++]}catch(g){h=g}f.push(h),l.push(d.name||null)}),k2.fromItems(f,l)}parseTransaction(e){const t=ru(e.data,"tx.data"),n=N0(e.value!=null?e.value:0,"tx.value"),r=this.getFunction(I0(t.slice(0,4)));if(!r)return null;const i=x(this,we).decode(r.inputs,t.slice(4));return new H_0(r,r.selector,i,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new q_0(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){const t=I0(e),n=this.getError(Ru(t,0,4));if(!n)return null;const r=x(this,we).decode(n.inputs,Ru(t,4));return new G_0(n,n.selector,r)}static from(e){return e instanceof Hs?e:typeof e=="string"?new Hs(JSON.parse(e)):typeof e.format=="function"?new Hs(e.format("json")):new Hs(e)}};Qn=new WeakMap,Jn=new WeakMap,Yn=new WeakMap,we=new WeakMap,T4=new WeakSet,Z6=function(e,t,n){if(ku(e)){const i=e.toLowerCase();for(const a of x(this,Yn).values())if(i===a.selector)return a;return null}if(e.indexOf("(")===-1){const i=[];for(const[a,o]of x(this,Yn))a.split("(")[0]===e&&i.push(o);if(t){const a=t.length>0?t[t.length-1]:null;let o=t.length,s=!0;Oe.isTyped(a)&&a.type==="overrides"&&(s=!1,o--);for(let f=i.length-1;f>=0;f--){const l=i[f].inputs.length;l!==o&&(!s||l!==o-1)&&i.splice(f,1)}for(let f=i.length-1;f>=0;f--){const l=i[f].inputs;for(let c=0;c=l.length){if(t[c].type==="overrides")continue;i.splice(f,1);break}if(t[c].type!==l[c].baseType){i.splice(f,1);break}}}}if(i.length===1&&t&&t.length!==i[0].inputs.length){const a=t[t.length-1];(a==null||Array.isArray(a)||typeof a!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&n){const a=i.map(o=>JSON.stringify(o.format())).join(", ");Q(!1,`ambiguous function description (i.e. matches ${a})`,"key",e)}return i[0]}const r=x(this,Yn).get(ir.from(e).format());return r||null},P4=new WeakSet,X6=function(e,t,n){if(ku(e)){const i=e.toLowerCase();for(const a of x(this,Jn).values())if(i===a.topicHash)return a;return null}if(e.indexOf("(")===-1){const i=[];for(const[a,o]of x(this,Jn))a.split("(")[0]===e&&i.push(o);if(t){for(let a=i.length-1;a>=0;a--)i[a].inputs.length=0;a--){const o=i[a].inputs;for(let s=0;s1&&n){const a=i.map(o=>JSON.stringify(o.format())).join(", ");Q(!1,`ambiguous event description (i.e. matches ${a})`,"key",e)}return i[0]}const r=x(this,Jn).get(rr.from(e).format());return r||null};let a7=Hs;const qj=BigInt(0);function gl(u){return u??null}function Pe(u){return u==null?null:u.toString()}class ax{constructor(e,t,n){Z(this,"gasPrice");Z(this,"maxFeePerGas");Z(this,"maxPriorityFeePerGas");j0(this,{gasPrice:gl(e),maxFeePerGas:gl(t),maxPriorityFeePerGas:gl(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:Pe(e),maxFeePerGas:Pe(t),maxPriorityFeePerGas:Pe(n)}}}function N2(u){const e={};u.to&&(e.to=u.to),u.from&&(e.from=u.from),u.data&&(e.data=I0(u.data));const t="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const r of t)!(r in u)||u[r]==null||(e[r]=N0(u[r],`request.${r}`));const n="type,nonce".split(/,/);for(const r of n)!(r in u)||u[r]==null||(e[r]=q0(u[r],`request.${r}`));return u.accessList&&(e.accessList=ts(u.accessList)),"blockTag"in u&&(e.blockTag=u.blockTag),"enableCcipRead"in u&&(e.enableCcipRead=!!u.enableCcipRead),"customData"in u&&(e.customData=u.customData),e}var Or;class V_0{constructor(e,t){Z(this,"provider");Z(this,"number");Z(this,"hash");Z(this,"timestamp");Z(this,"parentHash");Z(this,"nonce");Z(this,"difficulty");Z(this,"gasLimit");Z(this,"gasUsed");Z(this,"miner");Z(this,"extraData");Z(this,"baseFeePerGas");X(this,Or,void 0);I(this,Or,e.transactions.map(n=>typeof n!="string"?new l1(n,t):n)),j0(this,{provider:t,hash:gl(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,miner:e.miner,extraData:e.extraData,baseFeePerGas:gl(e.baseFeePerGas)})}get transactions(){return x(this,Or).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=x(this,Or).slice();return e.length===0?[]:(c0(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:t,extraData:n,gasLimit:r,gasUsed:i,hash:a,miner:o,nonce:s,number:f,parentHash:l,timestamp:c,transactions:E}=this;return{_type:"Block",baseFeePerGas:Pe(e),difficulty:Pe(t),extraData:n,gasLimit:Pe(r),gasUsed:Pe(i),hash:a,miner:o,nonce:s,number:f,parentHash:l,timestamp:c,transactions:E}}[Symbol.iterator](){let e=0;const t=this.transactions;return{next:()=>enew yc(r,t))));let n=qj;e.effectiveGasPrice!=null?n=e.effectiveGasPrice:e.gasPrice!=null&&(n=e.gasPrice),j0(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,gasPrice:n,type:e.type,status:e.status,root:e.root})}get logs(){return x(this,m1)}toJSON(){const{to:e,from:t,contractAddress:n,hash:r,index:i,blockHash:a,blockNumber:o,logsBloom:s,logs:f,status:l,root:c}=this;return{_type:"TransactionReceipt",blockHash:a,blockNumber:o,contractAddress:n,cumulativeGasUsed:Pe(this.cumulativeGasUsed),from:t,gasPrice:Pe(this.gasPrice),gasUsed:Pe(this.gasUsed),hash:r,index:i,logs:f,logsBloom:s,root:c,status:l,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(o)return null;const{blockNumber:E,nonce:d}=await je({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(d{if(E==null||E.status!==0)return E;c0(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:E.to,from:E.from,data:""},receipt:E})},l=await this.provider.getTransactionReceipt(this.hash);if(n===0)return f(l);if(l){if(await l.confirmations()>=n)return f(l)}else if(await s(),n===0)return null;return await new Promise((E,d)=>{const p=[],h=()=>{p.forEach(b=>b())};if(p.push(()=>{o=!0}),r>0){const b=setTimeout(()=>{h(),d(Ju("wait for transaction timeout","TIMEOUT"))},r);p.push(()=>{clearTimeout(b)})}const g=async b=>{if(await b.confirmations()>=n){h();try{E(f(b))}catch(m){d(m)}}};if(p.push(()=>{this.provider.off(this.hash,g)}),this.provider.on(this.hash,g),i>=0){const b=async()=>{try{await s()}catch(m){if(an(m,"TRANSACTION_REPLACED")){h(),d(m);return}}o||this.provider.once("block",b)};p.push(()=>{this.provider.off("block",b)}),this.provider.once("block",b)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}removedEvent(){return c0(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Vj(this)}reorderedEvent(e){return c0(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),c0(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Gj(this,e)}replaceableTransaction(e){Q(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const t=new zA(this,this.provider);return I(t,Pi,e),t}};Pi=new WeakMap;let l1=zA;function K_0(u){return{orphan:"drop-block",hash:u.hash,number:u.number}}function Gj(u,e){return{orphan:"reorder-transaction",tx:u,other:e}}function Vj(u){return{orphan:"drop-transaction",tx:u}}function Q_0(u){return{orphan:"drop-log",log:{transactionHash:u.transactionHash,blockHash:u.blockHash,blockNumber:u.blockNumber,address:u.address,data:u.data,topics:Object.freeze(u.topics.slice()),index:u.index}}}class DA extends yc{constructor(t,n,r){super(t,t.provider);Z(this,"interface");Z(this,"fragment");Z(this,"args");const i=n.decodeEventLog(r,t.data,t.topics);j0(this,{args:i,fragment:r,interface:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class Kj extends yc{constructor(t,n){super(t,t.provider);Z(this,"error");j0(this,{error:n})}}var O4;class J_0 extends Hj{constructor(t,n,r){super(r,n);X(this,O4,void 0);I(this,O4,t)}get logs(){return super.logs.map(t=>{const n=t.topics.length?x(this,O4).getEvent(t.topics[0]):null;if(n)try{return new DA(t,x(this,O4),n)}catch(r){return new Kj(t,r)}return t})}}O4=new WeakMap;var b1;class wA extends l1{constructor(t,n,r){super(r,n);X(this,b1,void 0);I(this,b1,t)}async wait(t){const n=await super.wait(t);return n==null?null:new J_0(x(this,b1),this.provider,n)}}b1=new WeakMap;class Qj extends HM{constructor(t,n,r,i){super(t,n,r);Z(this,"log");j0(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class Y_0 extends Qj{constructor(e,t,n,r,i){super(e,t,n,new DA(i,e.interface,r));const a=e.interface.decodeEventLog(r,this.log.data,this.log.topics);j0(this,{args:a,fragment:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const ox=BigInt(0);function Jj(u){return u&&typeof u.call=="function"}function Yj(u){return u&&typeof u.estimateGas=="function"}function Sd(u){return u&&typeof u.resolveName=="function"}function Zj(u){return u&&typeof u.sendTransaction=="function"}function Xj(u){if(u!=null){if(Sd(u))return u;if(u.provider)return u.provider}}var g1;class Z_0{constructor(e,t,n){X(this,g1,void 0);Z(this,"fragment");if(j0(this,{fragment:t}),t.inputs.lengthn[s]==null?null:o.walkAsync(n[s],(l,c)=>l==="address"?Array.isArray(c)?Promise.all(c.map(E=>Ue(E,i))):Ue(c,i):c)));return e.interface.encodeFilterTopics(t,a)}())}getTopicFilter(){return x(this,g1)}}g1=new WeakMap;function Mo(u,e){return u==null?null:typeof u[e]=="function"?u:u.provider&&typeof u.provider[e]=="function"?u.provider:null}function qa(u){return u==null?null:u.provider||null}async function uz(u,e){const t=Oe.dereference(u,"overrides");Q(typeof t=="object","invalid overrides parameter","overrides",u);const n=N2(t);return Q(n.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),Q(n.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function X_0(u,e,t){const n=Mo(u,"resolveName"),r=Sd(n)?n:null;return await Promise.all(e.map((i,a)=>i.walkAsync(t[a],(o,s)=>(s=Oe.dereference(s,o),o==="address"?Ue(s,r):s))))}function uS0(u){const e=async function(a){const o=await uz(a,["data"]);o.to=await u.getAddress(),o.from&&(o.from=await Ue(o.from,Xj(u.runner)));const s=u.interface,f=N0(o.value||ox,"overrides.value")===ox,l=(o.data||"0x")==="0x";s.fallback&&!s.fallback.payable&&s.receive&&!l&&!f&&Q(!1,"cannot send data to receive or send value to non-payable fallback","overrides",a),Q(s.fallback||l,"cannot send data to receive-only contract","overrides.data",o.data);const c=s.receive||s.fallback&&s.fallback.payable;return Q(c||f,"cannot send value to non-payable fallback","overrides.value",o.value),Q(s.fallback||l,"cannot send data to receive-only contract","overrides.data",o.data),o},t=async function(a){const o=Mo(u.runner,"call");c0(Jj(o),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const s=await e(a);try{return await o.call(s)}catch(f){throw CA(f)&&f.data?u.interface.makeError(f.data,s):f}},n=async function(a){const o=u.runner;c0(Zj(o),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const s=await o.sendTransaction(await e(a)),f=qa(u.runner);return new wA(u.interface,f,s)},r=async function(a){const o=Mo(u.runner,"estimateGas");return c0(Yj(o),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await o.estimateGas(await e(a))},i=async a=>await n(a);return j0(i,{_contract:u,estimateGas:r,populateTransaction:e,send:n,staticCall:t}),i}function eS0(u,e){const t=function(...f){const l=u.interface.getFunction(e,f);return c0(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:f}}),l},n=async function(...f){const l=t(...f);let c={};if(l.inputs.length+1===f.length&&(c=await uz(f.pop()),c.from&&(c.from=await Ue(c.from,Xj(u.runner)))),l.inputs.length!==f.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const E=await X_0(u.runner,l.inputs,f);return Object.assign({},c,await je({to:u.getAddress(),data:u.interface.encodeFunctionData(l,E)}))},r=async function(...f){const l=await o(...f);return l.length===1?l[0]:l},i=async function(...f){const l=u.runner;c0(Zj(l),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await l.sendTransaction(await n(...f)),E=qa(u.runner);return new wA(u.interface,E,c)},a=async function(...f){const l=Mo(u.runner,"estimateGas");return c0(Yj(l),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await l.estimateGas(await n(...f))},o=async function(...f){const l=Mo(u.runner,"call");c0(Jj(l),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await n(...f);let E="0x";try{E=await l.call(c)}catch(p){throw CA(p)&&p.data?u.interface.makeError(p.data,c):p}const d=t(...f);return u.interface.decodeFunctionResult(d,E)},s=async(...f)=>t(...f).constant?await r(...f):await i(...f);return j0(s,{name:u.interface.getFunctionName(e),_contract:u,_key:e,getFragment:t,estimateGas:a,populateTransaction:n,send:i,staticCall:r,staticCallResult:o}),Object.defineProperty(s,"fragment",{configurable:!1,enumerable:!0,get:()=>{const f=u.interface.getFunction(e);return c0(f,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),f}}),s}function tS0(u,e){const t=function(...r){const i=u.interface.getEvent(e,r);return c0(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:r}}),i},n=function(...r){return new Z_0(u,t(...r),r)};return j0(n,{name:u.interface.getEventName(e),_contract:u,_key:e,getFragment:t}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const r=u.interface.getEvent(e);return c0(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),r}}),n}const R2=Symbol.for("_ethersInternal_contract"),ez=new WeakMap;function nS0(u,e){ez.set(u[R2],e)}function Ft(u){return ez.get(u[R2])}function rS0(u){return u&&typeof u=="object"&&"getTopicFilter"in u&&typeof u.getTopicFilter=="function"&&u.fragment}async function xA(u,e){let t,n=null;if(Array.isArray(e)){const i=function(a){if(ku(a,32))return a;const o=u.interface.getEvent(a);return Q(o,"unknown fragment","name",a),o.topicHash};t=e.map(a=>a==null?null:Array.isArray(a)?a.map(i):i(a))}else e==="*"?t=[null]:typeof e=="string"?ku(e,32)?t=[e]:(n=u.interface.getEvent(e),Q(n,"unknown fragment","event",e),t=[n.topicHash]):rS0(e)?t=await e.getTopicFilter():"fragment"in e?(n=e.fragment,t=[n.topicHash]):Q(!1,"unknown event name","event",e);t=t.map(i=>{if(i==null)return null;if(Array.isArray(i)){const a=Array.from(new Set(i.map(o=>o.toLowerCase())).values());return a.length===1?a[0]:(a.sort(),a)}return i.toLowerCase()});const r=t.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:n,tag:r,topics:t}}async function el(u,e){const{subs:t}=Ft(u);return t.get((await xA(u,e)).tag)||null}async function sx(u,e,t){const n=qa(u.runner);c0(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:r,tag:i,topics:a}=await xA(u,t),{addr:o,subs:s}=Ft(u);let f=s.get(i);if(!f){const c={address:o||u,topics:a},E=g=>{let b=r;if(b==null)try{b=u.interface.getEvent(g.topics[0])}catch{}if(b){const m=b,A=r?u.interface.decodeEventLog(r,g.data,g.topics):[];s7(u,t,A,y=>new Y_0(u,y,t,m,g))}else s7(u,t,[],m=>new Qj(u,m,t,g))};let d=[];f={tag:i,listeners:[],start:()=>{d.length||d.push(n.on(c,E))},stop:async()=>{if(d.length==0)return;let g=d;d=[],await Promise.all(g),n.off(c,E)}},s.set(i,f)}return f}let o7=Promise.resolve();async function iS0(u,e,t,n){await o7;const r=await el(u,e);if(!r)return!1;const i=r.listeners.length;return r.listeners=r.listeners.filter(({listener:a,once:o})=>{const s=Array.from(t);n&&s.push(n(o?null:a));try{a.call(u,...s)}catch{}return!o}),r.listeners.length===0&&(r.stop(),Ft(u).subs.delete(r.tag)),i>0}async function s7(u,e,t,n){try{await o7}catch{}const r=iS0(u,e,t,n);return o7=r,await r}const v6=["then"];var HP0;const yl=class yl{constructor(e,t,n,r){Z(this,"target");Z(this,"interface");Z(this,"runner");Z(this,"filters");Z(this,HP0);Z(this,"fallback");Q(typeof e=="string"||nj(e),"invalid value for Contract target","target",e),n==null&&(n=null);const i=a7.from(t);j0(this,{target:e,runner:n,interface:i}),Object.defineProperty(this,R2,{value:{}});let a,o=null,s=null;if(r){const c=qa(n);s=new wA(this.interface,c,r)}let f=new Map;if(typeof e=="string")if(ku(e))o=e,a=Promise.resolve(e);else{const c=Mo(n,"resolveName");if(!Sd(c))throw Ju("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});a=c.resolveName(e).then(E=>{if(E==null)throw Ju("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return Ft(this).addr=E,E})}else a=e.getAddress().then(c=>{if(c==null)throw new Error("TODO");return Ft(this).addr=c,c});nS0(this,{addrPromise:a,addr:o,deployTx:s,subs:f});const l=new Proxy({},{get:(c,E,d)=>{if(typeof E=="symbol"||v6.indexOf(E)>=0)return Reflect.get(c,E,d);try{return this.getEvent(E)}catch(p){if(!an(p,"INVALID_ARGUMENT")||p.argument!=="key")throw p}},has:(c,E)=>v6.indexOf(E)>=0?Reflect.has(c,E):Reflect.has(c,E)||this.interface.hasEvent(String(E))});return j0(this,{filters:l}),j0(this,{fallback:i.receive||i.fallback?uS0(this):null}),new Proxy(this,{get:(c,E,d)=>{if(typeof E=="symbol"||E in c||v6.indexOf(E)>=0)return Reflect.get(c,E,d);try{return c.getFunction(E)}catch(p){if(!an(p,"INVALID_ARGUMENT")||p.argument!=="key")throw p}},has:(c,E)=>typeof E=="symbol"||E in c||v6.indexOf(E)>=0?Reflect.has(c,E):c.interface.hasFunction(E)})}connect(e){return new yl(this.target,this.interface,e)}attach(e){return new yl(e,this.interface,this.runner)}async getAddress(){return await Ft(this).addrPromise}async getDeployedCode(){const e=qa(this.runner);c0(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const t=await e.getCode(await this.getAddress());return t==="0x"?null:t}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const n=qa(this.runner);return c0(n!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((r,i)=>{const a=async()=>{try{if(await this.getDeployedCode()!=null)return r(this);n.once("block",a)}catch(o){i(o)}};a()})}deploymentTransaction(){return Ft(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),eS0(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),tS0(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,t,n){t==null&&(t=0),n==null&&(n="latest");const{addr:r,addrPromise:i}=Ft(this),a=r||await i,{fragment:o,topics:s}=await xA(this,e),f={address:a,topics:s,fromBlock:t,toBlock:n},l=qa(this.runner);return c0(l,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await l.getLogs(f)).map(c=>{let E=o;if(E==null)try{E=this.interface.getEvent(c.topics[0])}catch{}if(E)try{return new DA(c,this.interface,E)}catch(d){return new Kj(c,d)}return new yc(c,l)})}async on(e,t){const n=await sx(this,"on",e);return n.listeners.push({listener:t,once:!1}),n.start(),this}async once(e,t){const n=await sx(this,"once",e);return n.listeners.push({listener:t,once:!0}),n.start(),this}async emit(e,...t){return await s7(this,e,t,null)}async listenerCount(e){if(e){const r=await el(this,e);return r?r.listeners.length:0}const{subs:t}=Ft(this);let n=0;for(const{listeners:r}of t.values())n+=r.length;return n}async listeners(e){if(e){const r=await el(this,e);return r?r.listeners.map(({listener:i})=>i):[]}const{subs:t}=Ft(this);let n=[];for(const{listeners:r}of t.values())n=n.concat(r.map(({listener:i})=>i));return n}async off(e,t){const n=await el(this,e);if(!n)return this;if(t){const r=n.listeners.map(({listener:i})=>i).indexOf(t);r>=0&&n.listeners.splice(r,1)}return(t==null||n.listeners.length===0)&&(n.stop(),Ft(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const t=await el(this,e);if(!t)return this;t.stop(),Ft(this).subs.delete(t.tag)}else{const{subs:t}=Ft(this);for(const{tag:n,stop:r}of t.values())r(),t.delete(n)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){class t extends yl{constructor(r,i=null){super(r,e,i)}}return t}static from(e,t,n){return n==null&&(n=null),new this(e,t,n)}};HP0=R2;let f7=yl;function aS0(){return f7}class Ao extends aS0(){}function wp(u){return u.match(/^ipfs:\/\/ipfs\//i)?u=u.substring(12):u.match(/^ipfs:\/\//i)?u=u.substring(7):Q(!1,"unsupported IPFS format","link",u),`https://gateway.ipfs.io/ipfs/${u}`}class oS0{constructor(e){Z(this,"name");j0(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw new Error("unsupported coin")}async decodeAddress(e,t){throw new Error("unsupported coin")}}const tz=new RegExp("^(ipfs)://(.*)$","i"),fx=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),tz,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var Oi,uo,Ii,Ds,q2,nz;const Gs=class Gs{constructor(e,t,n){X(this,Ii);Z(this,"provider");Z(this,"address");Z(this,"name");X(this,Oi,void 0);X(this,uo,void 0);j0(this,{provider:e,address:t,name:n}),I(this,Oi,null),I(this,uo,new Ao(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e))}async supportsWildcard(){return x(this,Oi)==null&&I(this,Oi,(async()=>{try{return await x(this,uo).supportsInterface("0x9061b923")}catch(e){if(an(e,"CALL_EXCEPTION"))return!1;throw I(this,Oi,null),e}})()),await x(this,Oi)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await A0(this,Ii,Ds).call(this,"addr(bytes32)");return i==null||i===ZC?null:i}catch(i){if(an(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const a=await A0(this,Ii,Ds).call(this,"addr(bytes32,uint)",[i]);if(ku(a,20))return tu(a)}let t=null;for(const i of this.provider.plugins)if(i instanceof oS0&&i.supportsCoinType(e)){t=i;break}if(t==null)return null;const n=await A0(this,Ii,Ds).call(this,"addr(bytes32,uint)",[e]);if(n==null||n==="0x")return null;const r=await t.decodeAddress(e,n);if(r!=null)return r;c0(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const t=await A0(this,Ii,Ds).call(this,"text(bytes32,string)",[e]);return t==null||t==="0x"?null:t}async getContentHash(){const e=await A0(this,Ii,Ds).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const r=t[1]==="e3010170"?"ipfs":"ipns",i=parseInt(t[4],16);if(t[5].length===i*2)return`${r}://${Vx0("0x"+t[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&n[1].length===64)return`bzz://${n[1]}`;c0(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const t=await this.getText("avatar");if(t==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:t});for(let n=0;n{if(!Array.isArray(e))throw new Error("not an array");return e.map(t=>u(t))}}function vc(u,e){return t=>{const n={};for(const r in u){let i=r;if(e&&r in e&&!(i in t)){for(const a of e[r])if(a in t){i=a;break}}try{const a=u[r](t[i]);a!==void 0&&(n[r]=a)}catch(a){const o=a instanceof Error?a.message:"not-an-error";c0(!1,`invalid value for value.${r} (${o})`,"BAD_DATA",{value:t})}}return n}}function sS0(u){switch(u){case!0:case"true":return!0;case!1:case"false":return!1}Q(!1,`invalid boolean; ${JSON.stringify(u)}`,"value",u)}function Mf(u){return Q(ku(u,!0),"invalid data","value",u),u}function on(u){return Q(ku(u,32),"invalid hash","value",u),u}const fS0=vc({address:tu,blockHash:on,blockNumber:q0,data:Mf,index:q0,removed:vu(sS0,!1),topics:kA(on),transactionHash:on,transactionIndex:q0},{index:["logIndex"]});function lS0(u){return fS0(u)}const cS0=vc({hash:vu(on),parentHash:on,number:q0,timestamp:q0,nonce:vu(Mf),difficulty:N0,gasLimit:N0,gasUsed:N0,miner:vu(tu),extraData:Mf,baseFeePerGas:vu(N0)});function ES0(u){const e=cS0(u);return e.transactions=u.transactions.map(t=>typeof t=="string"?t:rz(t)),e}const dS0=vc({transactionIndex:q0,blockNumber:q0,transactionHash:on,address:tu,topics:kA(on),data:Mf,index:q0,blockHash:on},{index:["logIndex"]});function pS0(u){return dS0(u)}const hS0=vc({to:vu(tu,null),from:vu(tu,null),contractAddress:vu(tu,null),index:q0,root:vu(I0),gasUsed:N0,logsBloom:vu(Mf),blockHash:on,hash:on,logs:kA(pS0),blockNumber:q0,cumulativeGasUsed:N0,effectiveGasPrice:vu(N0),status:vu(q0),type:vu(q0,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function CS0(u){return hS0(u)}function rz(u){u.to&&N0(u.to)===lx&&(u.to="0x0000000000000000000000000000000000000000");const e=vc({hash:on,type:t=>t==="0x"||t==null?0:q0(t),accessList:vu(ts,null),blockHash:vu(on,null),blockNumber:vu(q0,null),transactionIndex:vu(q0,null),from:tu,gasPrice:vu(N0),maxPriorityFeePerGas:vu(N0),maxFeePerGas:vu(N0),gasLimit:N0,to:vu(tu,null),value:N0,nonce:q0,data:Mf,creates:vu(tu,null),chainId:vu(N0,null)},{data:["input"],gasLimit:["gas"]})(u);if(e.to==null&&e.creates==null&&(e.creates=hk0(e)),(u.type===1||u.type===2)&&u.accessList==null&&(e.accessList=[]),u.signature?e.signature=Ln.from(u.signature):e.signature=Ln.from(u),e.chainId==null){const t=e.signature.legacyChainId;t!=null&&(e.chainId=t)}return e.blockHash&&N0(e.blockHash)===lx&&(e.blockHash=null),e}const mS0="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class Bc{constructor(e){Z(this,"name");j0(this,{name:e})}clone(){return new Bc(this.name)}}class Td extends Bc{constructor(t,n){t==null&&(t=0);super(`org.ethers.network.plugins.GasCost#${t||0}`);Z(this,"effectiveBlock");Z(this,"txBase");Z(this,"txCreate");Z(this,"txDataZero");Z(this,"txDataNonzero");Z(this,"txAccessListStorageKey");Z(this,"txAccessListAddress");const r={effectiveBlock:t};function i(a,o){let s=(n||{})[a];s==null&&(s=o),Q(typeof s=="number",`invalud value for ${a}`,"costs",n),r[a]=s}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),j0(this,r)}clone(){return new Td(this.effectiveBlock,this)}}class Pd extends Bc{constructor(t,n){super("org.ethers.plugins.network.Ens");Z(this,"address");Z(this,"targetNetwork");j0(this,{address:t||mS0,targetNetwork:n??1})}clone(){return new Pd(this.address,this.targetNetwork)}}var A1,y1;class bS0 extends Bc{constructor(t,n){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");X(this,A1,void 0);X(this,y1,void 0);I(this,A1,t),I(this,y1,n)}get url(){return x(this,A1)}get processFunc(){return x(this,y1)}clone(){return this}}A1=new WeakMap,y1=new WeakMap;const xp=new Map;var I4,N4,Ni;const Vs=class Vs{constructor(e,t){X(this,I4,void 0);X(this,N4,void 0);X(this,Ni,void 0);I(this,I4,e),I(this,N4,N0(t)),I(this,Ni,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return x(this,I4)}set name(e){I(this,I4,e)}get chainId(){return x(this,N4)}set chainId(e){I(this,N4,N0(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===N0(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===N0(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===N0(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(x(this,Ni).values())}attachPlugin(e){if(x(this,Ni).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return x(this,Ni).set(e.name,e.clone()),this}getPlugin(e){return x(this,Ni).get(e)||null}getPlugins(e){return this.plugins.filter(t=>t.name.split("#")[0]===e)}clone(){const e=new Vs(this.name,this.chainId);return this.plugins.forEach(t=>{e.attachPlugin(t.clone())}),e}computeIntrinsicGas(e){const t=this.getPlugin("org.ethers.plugins.network.GasCost")||new Td;let n=t.txBase;if(e.to==null&&(n+=t.txCreate),e.data)for(let r=2;r9){let r=BigInt(n[1].substring(0,9));n[1].substring(9).match(/^0+$/)||r++,n[1]=r.toString()}return BigInt(n[0]+n[1])}function Ex(u){return new bS0(u,async(e,t,n)=>{n.setHeader("User-Agent","ethers");let r;try{const[i,a]=await Promise.all([n.send(),e()]);r=i;const o=r.bodyJson.standard;return{gasPrice:a.gasPrice,maxFeePerGas:cx(o.maxFee,9),maxPriorityFeePerGas:cx(o.maxPriorityFee,9)}}catch(i){c0(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:r,error:i})}})}let dx=!1;function gS0(){if(dx)return;dx=!0;function u(e,t,n){const r=function(){const i=new or(e,t);return n.ensNetwork!=null&&i.attachPlugin(new Pd(null,n.ensNetwork)),i.attachPlugin(new Td),(n.plugins||[]).forEach(a=>{i.attachPlugin(a)}),i};or.register(e,r),or.register(t,r),n.altNames&&n.altNames.forEach(i=>{or.register(i,r)})}u("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),u("ropsten",3,{ensNetwork:3}),u("rinkeby",4,{ensNetwork:4}),u("goerli",5,{ensNetwork:5}),u("kovan",42,{ensNetwork:42}),u("sepolia",11155111,{ensNetwork:11155111}),u("classic",61,{}),u("classicKotti",6,{}),u("arbitrum",42161,{ensNetwork:1}),u("arbitrum-goerli",421613,{}),u("base",8453,{ensNetwork:1}),u("base-goerli",84531,{}),u("base-sepolia",84532,{}),u("bnb",56,{ensNetwork:1}),u("bnbt",97,{}),u("linea",59144,{ensNetwork:1}),u("linea-goerli",59140,{}),u("matic",137,{ensNetwork:1,plugins:[Ex("https://gasstation.polygon.technology/v2")]}),u("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[Ex("https://gasstation-testnet.polygon.technology/v2")]}),u("optimism",10,{ensNetwork:1,plugins:[]}),u("optimism-goerli",420,{}),u("xdai",100,{ensNetwork:1})}function l7(u){return JSON.parse(JSON.stringify(u))}var Ir,Kt,Ri,Zn,R4,u5;class AS0{constructor(e){X(this,R4);X(this,Ir,void 0);X(this,Kt,void 0);X(this,Ri,void 0);X(this,Zn,void 0);I(this,Ir,e),I(this,Kt,null),I(this,Ri,4e3),I(this,Zn,-2)}get pollingInterval(){return x(this,Ri)}set pollingInterval(e){I(this,Ri,e)}start(){x(this,Kt)||(I(this,Kt,x(this,Ir)._setTimeout(A0(this,R4,u5).bind(this),x(this,Ri))),A0(this,R4,u5).call(this))}stop(){x(this,Kt)&&(x(this,Ir)._clearTimeout(x(this,Kt)),I(this,Kt,null))}pause(e){this.stop(),e&&I(this,Zn,-2)}resume(){this.start()}}Ir=new WeakMap,Kt=new WeakMap,Ri=new WeakMap,Zn=new WeakMap,R4=new WeakSet,u5=async function(){try{const e=await x(this,Ir).getBlockNumber();if(x(this,Zn)===-2){I(this,Zn,e);return}if(e!==x(this,Zn)){for(let t=x(this,Zn)+1;t<=e;t++){if(x(this,Kt)==null)return;await x(this,Ir).emit("block",t)}I(this,Zn,e)}}catch{}x(this,Kt)!=null&&I(this,Kt,x(this,Ir)._setTimeout(A0(this,R4,u5).bind(this),x(this,Ri)))};var eo,to,Mi;class _A{constructor(e){X(this,eo,void 0);X(this,to,void 0);X(this,Mi,void 0);I(this,eo,e),I(this,Mi,!1),I(this,to,t=>{this._poll(t,x(this,eo))})}async _poll(e,t){throw new Error("sub-classes must override this")}start(){x(this,Mi)||(I(this,Mi,!0),x(this,to).call(this,-2),x(this,eo).on("block",x(this,to)))}stop(){x(this,Mi)&&(I(this,Mi,!1),x(this,eo).off("block",x(this,to)))}pause(e){this.stop()}resume(){this.start()}}eo=new WeakMap,to=new WeakMap,Mi=new WeakMap;var M4,Nr;class yS0 extends _A{constructor(t,n){super(t);X(this,M4,void 0);X(this,Nr,void 0);I(this,M4,n),I(this,Nr,-2)}pause(t){t&&I(this,Nr,-2),super.pause(t)}async _poll(t,n){const r=await n.getBlock(x(this,M4));r!=null&&(x(this,Nr)===-2?I(this,Nr,r.number):r.number>x(this,Nr)&&(n.emit(x(this,M4),r.number),I(this,Nr,r.number)))}}M4=new WeakMap,Nr=new WeakMap;var H2;class vS0 extends _A{constructor(t,n){super(t);X(this,H2,void 0);I(this,H2,l7(n))}async _poll(t,n){throw new Error("@TODO")}}H2=new WeakMap;var j4;class BS0 extends _A{constructor(t,n){super(t);X(this,j4,void 0);I(this,j4,n)}async _poll(t,n){const r=await n.getTransactionReceipt(x(this,j4));r&&n.emit(x(this,j4),r)}}j4=new WeakMap;var Rr,z4,L4,ji,Qt,G2,iz;class SA{constructor(e,t){X(this,G2);X(this,Rr,void 0);X(this,z4,void 0);X(this,L4,void 0);X(this,ji,void 0);X(this,Qt,void 0);I(this,Rr,e),I(this,z4,l7(t)),I(this,L4,A0(this,G2,iz).bind(this)),I(this,ji,!1),I(this,Qt,-2)}start(){x(this,ji)||(I(this,ji,!0),x(this,Qt)===-2&&x(this,Rr).getBlockNumber().then(e=>{I(this,Qt,e)}),x(this,Rr).on("block",x(this,L4)))}stop(){x(this,ji)&&(I(this,ji,!1),x(this,Rr).off("block",x(this,L4)))}pause(e){this.stop(),e&&I(this,Qt,-2)}resume(){this.start()}}Rr=new WeakMap,z4=new WeakMap,L4=new WeakMap,ji=new WeakMap,Qt=new WeakMap,G2=new WeakSet,iz=async function(e){if(x(this,Qt)===-2)return;const t=l7(x(this,z4));t.fromBlock=x(this,Qt)+1,t.toBlock=e;const n=await x(this,Rr).getLogs(t);if(n.length===0){x(this,Qt){if(n==null)return"null";if(typeof n=="bigint")return`bigint:${n.toString()}`;if(typeof n=="string")return n.toLowerCase();if(typeof n=="object"&&!Array.isArray(n)){const r=Object.keys(n);return r.sort(),r.reduce((i,a)=>(i[a]=n[a],i),{})}return n})}class az{constructor(e){Z(this,"name");j0(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function wS0(u){return JSON.parse(JSON.stringify(u))}function c7(u){return u=Array.from(new Set(u).values()),u.sort(),u}async function kp(u,e){if(u==null)throw new Error("invalid event");if(Array.isArray(u)&&(u={topics:u}),typeof u=="string")switch(u){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:u,tag:u}}if(ku(u,32)){const t=u.toLowerCase();return{type:"transaction",tag:e5("tx",{hash:t}),hash:t}}if(u.orphan){const t=u;return{type:"orphan",tag:e5("orphan",t),filter:wS0(t)}}if(u.address||u.topics){const t=u,n={topics:(t.topics||[]).map(r=>r==null?null:Array.isArray(r)?c7(r.map(i=>i.toLowerCase())):r.toLowerCase())};if(t.address){const r=[],i=[],a=o=>{ku(o)?r.push(o):i.push((async()=>{r.push(await Ue(o,e))})())};Array.isArray(t.address)?t.address.forEach(a):a(t.address),i.length&&await Promise.all(i),n.address=c7(r.map(o=>o.toLowerCase()))}return{filter:n,tag:e5("event",n),type:"event"}}Q(!1,"unknown ProviderEvent","event",u)}function _p(){return new Date().getTime()}const xS0={cacheTimeout:250,pollingInterval:4e3};var xe,zi,ke,$4,xt,no,Li,Mr,v1,Jt,U4,W4,Re,Bt,B1,E7,F1,d7,ro,tl,D1,p7,io,nl,q4,t5;class kS0{constructor(e,t){X(this,Re);X(this,B1);X(this,F1);X(this,ro);X(this,D1);X(this,io);X(this,q4);X(this,xe,void 0);X(this,zi,void 0);X(this,ke,void 0);X(this,$4,void 0);X(this,xt,void 0);X(this,no,void 0);X(this,Li,void 0);X(this,Mr,void 0);X(this,v1,void 0);X(this,Jt,void 0);X(this,U4,void 0);X(this,W4,void 0);if(I(this,W4,Object.assign({},xS0,t||{})),e==="any")I(this,no,!0),I(this,xt,null);else if(e){const n=or.from(e);I(this,no,!1),I(this,xt,Promise.resolve(n)),setTimeout(()=>{this.emit("network",n,null)},0)}else I(this,no,!1),I(this,xt,null);I(this,Mr,-1),I(this,Li,new Map),I(this,xe,new Map),I(this,zi,new Map),I(this,ke,null),I(this,$4,!1),I(this,v1,1),I(this,Jt,new Map),I(this,U4,!1)}get pollingInterval(){return x(this,W4).pollingInterval}get provider(){return this}get plugins(){return Array.from(x(this,zi).values())}attachPlugin(e){if(x(this,zi).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return x(this,zi).set(e.name,e.connect(this)),this}getPlugin(e){return x(this,zi).get(e)||null}get disableCcipRead(){return x(this,U4)}set disableCcipRead(e){I(this,U4,!!e)}async ccipReadFetch(e,t,n){if(this.disableCcipRead||n.length===0||e.to==null)return null;const r=e.to.toLowerCase(),i=t.toLowerCase(),a=[];for(let o=0;o=500,`response not found during CCIP fetch: ${c}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:s,errorMessage:c}}),a.push(c)}c0(!1,`error encountered during CCIP fetch: ${a.map(o=>JSON.stringify(o)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:a}})}_wrapBlock(e,t){return new V_0(ES0(e),this)}_wrapLog(e,t){return new yc(lS0(e),this)}_wrapTransactionReceipt(e,t){return new Hj(CS0(e),this)}_wrapTransactionResponse(e,t){return new l1(rz(e),this)}_detectNetwork(){c0(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){c0(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=q0(await A0(this,Re,Bt).call(this,{method:"getBlockNumber"}),"%response");return x(this,Mr)>=0&&I(this,Mr,e),e}_getAddress(e){return Ue(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(ku(e))return ku(e,32)?e:Ws(e);if(typeof e=="bigint"&&(e=q0(e,"blockTag")),typeof e=="number")return e>=0?Ws(e):x(this,Mr)>=0?Ws(x(this,Mr)+e):this.getBlockNumber().then(t=>Ws(t+e));Q(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const t=(e.topics||[]).map(s=>s==null?null:Array.isArray(s)?c7(s.map(f=>f.toLowerCase())):s.toLowerCase()),n="blockHash"in e?e.blockHash:void 0,r=(s,f,l)=>{let c;switch(s.length){case 0:break;case 1:c=s[0];break;default:s.sort(),c=s}if(n&&(f!=null||l!=null))throw new Error("invalid filter");const E={};return c&&(E.address=c),t.length&&(E.topics=t),f&&(E.fromBlock=f),l&&(E.toBlock=l),n&&(E.blockHash=n),E};let i=[];if(e.address)if(Array.isArray(e.address))for(const s of e.address)i.push(this._getAddress(s));else i.push(this._getAddress(e.address));let a;"fromBlock"in e&&(a=this._getBlockTag(e.fromBlock));let o;return"toBlock"in e&&(o=this._getBlockTag(e.toBlock)),i.filter(s=>typeof s!="string").length||a!=null&&typeof a!="string"||o!=null&&typeof o!="string"?Promise.all([Promise.all(i),a,o]).then(s=>r(s[0],s[1],s[2])):r(i,a,o)}_getTransactionRequest(e){const t=N2(e),n=[];if(["to","from"].forEach(r=>{if(t[r]==null)return;const i=Ue(t[r],this);B6(i)?n.push(async function(){t[r]=await i}()):t[r]=i}),t.blockTag!=null){const r=this._getBlockTag(t.blockTag);B6(r)?n.push(async function(){t.blockTag=await r}()):t.blockTag=r}return n.length?async function(){return await Promise.all(n),t}():t}async getNetwork(){if(x(this,xt)==null){const r=this._detectNetwork().then(i=>(this.emit("network",i,null),i),i=>{throw x(this,xt)===r&&I(this,xt,null),i});return I(this,xt,r),(await r).clone()}const e=x(this,xt),[t,n]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==n.chainId&&(x(this,no)?(this.emit("network",n,t),x(this,xt)===e&&I(this,xt,Promise.resolve(n))):c0(!1,`network changed: ${t.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){const e=await this.getNetwork(),t=async()=>{const{_block:r,gasPrice:i,priorityFee:a}=await je({_block:A0(this,D1,p7).call(this,"latest",!1),gasPrice:(async()=>{try{const l=await A0(this,Re,Bt).call(this,{method:"getGasPrice"});return N0(l,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const l=await A0(this,Re,Bt).call(this,{method:"getPriorityFee"});return N0(l,"%response")}catch{}return null})()});let o=null,s=null;const f=this._wrapBlock(r,e);return f&&f.baseFeePerGas&&(s=a??BigInt("1000000000"),o=f.baseFeePerGas*FS0+s),new ax(i,o,s)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const r=new ui(n.url),i=await n.processFunc(t,this,r);return new ax(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return B6(t)&&(t=await t),N0(await A0(this,Re,Bt).call(this,{method:"estimateGas",transaction:t}),"%response")}async call(e){const{tx:t,blockTag:n}=await je({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await A0(this,F1,d7).call(this,A0(this,B1,E7).call(this,t,n,e.enableCcipRead?0:-1))}async getBalance(e,t){return N0(await A0(this,ro,tl).call(this,{method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return q0(await A0(this,ro,tl).call(this,{method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return I0(await A0(this,ro,tl).call(this,{method:"getCode"},e,t))}async getStorage(e,t,n){const r=N0(t,"position");return I0(await A0(this,ro,tl).call(this,{method:"getStorage",position:r},e,n))}async broadcastTransaction(e){const{blockNumber:t,hash:n,network:r}=await je({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=O2.from(e);if(i.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,r).replaceableTransaction(t)}async getBlock(e,t){const{network:n,params:r}=await je({network:this.getNetwork(),params:A0(this,D1,p7).call(this,e,!!t)});return r==null?null:this._wrapBlock(r,n)}async getTransaction(e){const{network:t,params:n}=await je({network:this.getNetwork(),params:A0(this,Re,Bt).call(this,{method:"getTransaction",hash:e})});return n==null?null:this._wrapTransactionResponse(n,t)}async getTransactionReceipt(e){const{network:t,params:n}=await je({network:this.getNetwork(),params:A0(this,Re,Bt).call(this,{method:"getTransactionReceipt",hash:e})});if(n==null)return null;if(n.gasPrice==null&&n.effectiveGasPrice==null){const r=await A0(this,Re,Bt).call(this,{method:"getTransaction",hash:e});if(r==null)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=r.gasPrice}return this._wrapTransactionReceipt(n,t)}async getTransactionResult(e){const{result:t}=await je({network:this.getNetwork(),result:A0(this,Re,Bt).call(this,{method:"getTransactionResult",hash:e})});return t==null?null:I0(t)}async getLogs(e){let t=this._getFilter(e);B6(t)&&(t=await t);const{network:n,params:r}=await je({network:this.getNetwork(),params:A0(this,Re,Bt).call(this,{method:"getLogs",filter:t})});return r.map(i=>this._wrapLog(i,n))}_getProvider(e){c0(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await M2.fromName(this,e)}async getAvatar(e){const t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){const t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=tu(e);const t=r7(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await M2.getEnsAddress(this),i=await new Ao(n,["function resolver(bytes32) view returns (address)"],this).resolver(t);if(i==null||i===ZC)return null;const o=await new Ao(i,["function name(bytes32) view returns (string)"],this).name(t);return await this.resolveName(o)!==e?null:o}catch(n){if(an(n,"BAD_DATA")&&n.value==="0x"||an(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,t,n){const r=t??1;return r===0?this.getTransactionReceipt(e):new Promise(async(i,a)=>{let o=null;const s=async f=>{try{const l=await this.getTransactionReceipt(e);if(l!=null&&f-l.blockNumber+1>=r){i(l),o&&(clearTimeout(o),o=null);return}}catch(l){console.log("EEE",l)}this.once("block",s)};n!=null&&(o=setTimeout(()=>{o!=null&&(o=null,this.off("block",s),a(Ju("timeout","TIMEOUT",{reason:"timeout"})))},n)),s(await this.getBlockNumber())})}async waitForBlock(e){c0(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const t=x(this,Jt).get(e);t&&(t.timer&&clearTimeout(t.timer),x(this,Jt).delete(e))}_setTimeout(e,t){t==null&&(t=0);const n=b3(this,v1)._++,r=()=>{x(this,Jt).delete(n),e()};if(this.paused)x(this,Jt).set(n,{timer:null,func:r,time:t});else{const i=setTimeout(r,t);x(this,Jt).set(n,{timer:i,func:r,time:_p()})}return n}_forEachSubscriber(e){for(const t of x(this,xe).values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new az(e.type);case"block":{const t=new AS0(this);return t.pollingInterval=this.pollingInterval,t}case"safe":case"finalized":return new yS0(this,e.type);case"event":return new SA(this,e.filter);case"transaction":return new BS0(this,e.hash);case"orphan":return new vS0(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(const n of x(this,xe).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=t,n.started&&t.start(),x(this,ke)!=null&&t.pause(x(this,ke));break}}async on(e,t){const n=await A0(this,q4,t5).call(this,e);return n.listeners.push({listener:t,once:!1}),n.started||(n.subscriber.start(),n.started=!0,x(this,ke)!=null&&n.subscriber.pause(x(this,ke))),this}async once(e,t){const n=await A0(this,q4,t5).call(this,e);return n.listeners.push({listener:t,once:!0}),n.started||(n.subscriber.start(),n.started=!0,x(this,ke)!=null&&n.subscriber.pause(x(this,ke))),this}async emit(e,...t){const n=await A0(this,io,nl).call(this,e,t);if(!n||n.listeners.length===0)return!1;const r=n.listeners.length;return n.listeners=n.listeners.filter(({listener:i,once:a})=>{const o=new HM(this,a?null:i,e);try{i.call(this,...t,o)}catch{}return!a}),n.listeners.length===0&&(n.started&&n.subscriber.stop(),x(this,xe).delete(n.tag)),r>0}async listenerCount(e){if(e){const n=await A0(this,io,nl).call(this,e);return n?n.listeners.length:0}let t=0;for(const{listeners:n}of x(this,xe).values())t+=n.length;return t}async listeners(e){if(e){const n=await A0(this,io,nl).call(this,e);return n?n.listeners.map(({listener:r})=>r):[]}let t=[];for(const{listeners:n}of x(this,xe).values())t=t.concat(n.map(({listener:r})=>r));return t}async off(e,t){const n=await A0(this,io,nl).call(this,e);if(!n)return this;if(t){const r=n.listeners.map(({listener:i})=>i).indexOf(t);r>=0&&n.listeners.splice(r,1)}return(!t||n.listeners.length===0)&&(n.started&&n.subscriber.stop(),x(this,xe).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:t,started:n,subscriber:r}=await A0(this,q4,t5).call(this,e);n&&r.stop(),x(this,xe).delete(t)}else for(const[t,{started:n,subscriber:r}]of x(this,xe))n&&r.stop(),x(this,xe).delete(t);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return x(this,$4)}destroy(){this.removeAllListeners();for(const e of x(this,Jt).keys())this._clearTimeout(e);I(this,$4,!0)}get paused(){return x(this,ke)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(I(this,Mr,-1),x(this,ke)!=null){if(x(this,ke)==!!e)return;c0(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(t=>t.pause(e)),I(this,ke,!!e);for(const t of x(this,Jt).values())t.timer&&clearTimeout(t.timer),t.time=_p()-t.time}resume(){if(x(this,ke)!=null){this._forEachSubscriber(e=>e.resume()),I(this,ke,null);for(const e of x(this,Jt).values()){let t=e.time;t<0&&(t=0),e.time=_p(),setTimeout(e.func,t)}}}}xe=new WeakMap,zi=new WeakMap,ke=new WeakMap,$4=new WeakMap,xt=new WeakMap,no=new WeakMap,Li=new WeakMap,Mr=new WeakMap,v1=new WeakMap,Jt=new WeakMap,U4=new WeakMap,W4=new WeakMap,Re=new WeakSet,Bt=async function(e){const t=x(this,W4).cacheTimeout;if(t<0)return await this._perform(e);const n=e5(e.method,e);let r=x(this,Li).get(n);return r||(r=this._perform(e),x(this,Li).set(n,r),setTimeout(()=>{x(this,Li).get(n)===r&&x(this,Li).delete(n)},t)),await r},B1=new WeakSet,E7=async function(e,t,n){c0(n=0&&t==="latest"&&r.to!=null&&Ru(i.data,0,4)==="0x556f1830"){const a=i.data,o=await Ue(r.to,this);let s;try{s=OS0(Ru(i.data,4))}catch(c){c0(!1,c.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:r,info:{data:a}})}c0(s.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:a,reason:"OffchainLookup",transaction:r,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:s.errorArgs}});const f=await this.ccipReadFetch(r,s.calldata,s.urls);c0(f!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:r,info:{data:i.data,errorArgs:s.errorArgs}});const l={to:o,data:te([s.selector,PS0([f,s.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:l});try{const c=await A0(this,B1,E7).call(this,l,t,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},l),result:c}),c}catch(c){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},l),error:c}),c}}throw i}},F1=new WeakSet,d7=async function(e){const{value:t}=await je({network:this.getNetwork(),value:e});return t},ro=new WeakSet,tl=async function(e,t,n){let r=this._getAddress(t),i=this._getBlockTag(n);return(typeof r!="string"||typeof i!="string")&&([r,i]=await Promise.all([r,i])),await A0(this,F1,d7).call(this,A0(this,Re,Bt).call(this,Object.assign(e,{address:r,blockTag:i})))},D1=new WeakSet,p7=async function(e,t){if(ku(e,32))return await A0(this,Re,Bt).call(this,{method:"getBlock",blockHash:e,includeTransactions:t});let n=this._getBlockTag(e);return typeof n!="string"&&(n=await n),await A0(this,Re,Bt).call(this,{method:"getBlock",blockTag:n,includeTransactions:t})},io=new WeakSet,nl=async function(e,t){let n=await kp(e,this);return n.type==="event"&&t&&t.length>0&&t[0].removed===!0&&(n=await kp({orphan:"drop-log",log:t[0]},this)),x(this,xe).get(n.tag)||null},q4=new WeakSet,t5=async function(e){const t=await kp(e,this),n=t.tag;let r=x(this,xe).get(n);return r||(r={subscriber:this._getSubscriber(t),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},x(this,xe).set(n,r)),r};function _S0(u,e){try{const t=h7(u,e);if(t)return bA(t)}catch{}return null}function h7(u,e){if(u==="0x")return null;try{const t=q0(Ru(u,e,e+32)),n=q0(Ru(u,t,t+32));return Ru(u,t+32,t+32+n)}catch{}return null}function px(u){const e=Nt(u);if(e.length>32)throw new Error("internal; should not happen");const t=new Uint8Array(32);return t.set(e,32-e.length),t}function SS0(u){if(u.length%32===0)return u;const e=new Uint8Array(Math.ceil(u.length/32)*32);return e.set(u),e}const TS0=new Uint8Array([]);function PS0(u){const e=[];let t=0;for(let n=0;n=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const t=Ru(u,0,32);c0(Ru(t,0,12)===Ru(hx,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=Ru(t,12);try{const n=[],r=q0(Ru(u,32,64)),i=q0(Ru(u,r,r+32)),a=Ru(u,r+32);for(let o=0;oe[n]),e}function Cs(u,e){if(u.provider)return u.provider;c0(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function Cx(u,e){let t=N2(e);if(t.to!=null&&(t.to=Ue(t.to,u)),t.from!=null){const n=t.from;t.from=Promise.all([u.getAddress(),Ue(n,u)]).then(([r,i])=>(Q(r.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),r))}else t.from=u.getAddress();return await je(t)}class IS0{constructor(e){Z(this,"provider");j0(this,{provider:e||null})}async getNonce(e){return Cs(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await Cx(this,e)}async populateTransaction(e){const t=Cs(this,"populateTransaction"),n=await Cx(this,e);n.nonce==null&&(n.nonce=await this.getNonce("pending")),n.gasLimit==null&&(n.gasLimit=await this.estimateGas(n));const r=await this.provider.getNetwork();if(n.chainId!=null){const a=N0(n.chainId);Q(a===r.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=r.chainId;const i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?Q(!1,"eip-1559 transaction do not support gasPrice","tx",e):(n.type===0||n.type===1)&&i&&Q(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1){const a=await t.getFeeData();c0(a.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),n.gasPrice==null&&(n.gasPrice=a.gasPrice)}else{const a=await t.getFeeData();if(n.type==null)if(a.maxFeePerGas!=null&&a.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const o=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=o,n.maxPriorityFeePerGas=o}else n.maxFeePerGas==null&&(n.maxFeePerGas=a.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=a.maxPriorityFeePerGas);else a.gasPrice!=null?(c0(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=a.gasPrice),n.type=0):c0(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else n.type===2&&(n.maxFeePerGas==null&&(n.maxFeePerGas=a.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=a.maxPriorityFeePerGas))}return await je(n)}async estimateGas(e){return Cs(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return Cs(this,"call").call(await this.populateCall(e))}async resolveName(e){return await Cs(this,"resolveName").resolveName(e)}async sendTransaction(e){const t=Cs(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const r=O2.from(n);return await t.broadcastTransaction(await this.signTransaction(r))}}function NS0(u){return JSON.parse(JSON.stringify(u))}var et,Xn,ao,$i,oo,H4,w1,C7,x1,m7;class oz{constructor(e){X(this,w1);X(this,x1);X(this,et,void 0);X(this,Xn,void 0);X(this,ao,void 0);X(this,$i,void 0);X(this,oo,void 0);X(this,H4,void 0);I(this,et,e),I(this,Xn,null),I(this,ao,A0(this,w1,C7).bind(this)),I(this,$i,!1),I(this,oo,null),I(this,H4,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,t){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){x(this,$i)||(I(this,$i,!0),A0(this,w1,C7).call(this,-2))}stop(){x(this,$i)&&(I(this,$i,!1),I(this,H4,!0),A0(this,x1,m7).call(this),x(this,et).off("block",x(this,ao)))}pause(e){e&&A0(this,x1,m7).call(this),x(this,et).off("block",x(this,ao))}resume(){this.start()}}et=new WeakMap,Xn=new WeakMap,ao=new WeakMap,$i=new WeakMap,oo=new WeakMap,H4=new WeakMap,w1=new WeakSet,C7=async function(e){try{x(this,Xn)==null&&I(this,Xn,this._subscribe(x(this,et)));let t=null;try{t=await x(this,Xn)}catch(i){if(!an(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(t==null){I(this,Xn,null),x(this,et)._recoverSubscriber(this,this._recover(x(this,et)));return}const n=await x(this,et).getNetwork();if(x(this,oo)||I(this,oo,n),x(this,oo).chainId!==n.chainId)throw new Error("chaid changed");if(x(this,H4))return;const r=await x(this,et).send("eth_getFilterChanges",[t]);await this._emitResults(x(this,et),r)}catch(t){console.log("@TODO",t)}x(this,et).once("block",x(this,ao))},x1=new WeakSet,m7=function(){const e=x(this,Xn);e&&(I(this,Xn,null),e.then(t=>{x(this,et).send("eth_uninstallFilter",[t])}))};var so;class RS0 extends oz{constructor(t,n){super(t);X(this,so,void 0);I(this,so,NS0(n))}_recover(t){return new SA(t,x(this,so))}async _subscribe(t){return await t.send("eth_newFilter",[x(this,so)])}async _emitResults(t,n){for(const r of n)t.emit(x(this,so),t._wrapLog(r,t._network))}}so=new WeakMap;class MS0 extends oz{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(const n of t)e.emit("pending",n)}}const jS0="bigint,boolean,function,number,string,symbol".split(/,/g);function n5(u){if(u==null||jS0.indexOf(typeof u)>=0||typeof u.getAddress=="function")return u;if(Array.isArray(u))return u.map(n5);if(typeof u=="object")return Object.keys(u).reduce((e,t)=>(e[t]=u[t],e),{});throw new Error(`should not happen: ${u} (${typeof u})`)}function zS0(u){return new Promise(e=>{setTimeout(e,u)})}function ms(u){return u&&u.toLowerCase()}function mx(u){return u&&typeof u.pollingInterval=="number"}const LS0={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class Sp extends IS0{constructor(t,n){super(t);Z(this,"address");n=tu(n),j0(this,{address:n})}connect(t){c0(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(t){return await this.populateCall(t)}async sendUncheckedTransaction(t){const n=n5(t),r=[];if(n.from){const a=n.from;r.push((async()=>{const o=await Ue(a,this.provider);Q(o!=null&&o.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),n.from=o})())}else n.from=this.address;if(n.gasLimit==null&&r.push((async()=>{n.gasLimit=await this.provider.estimateGas({...n,from:this.address})})()),n.to!=null){const a=n.to;r.push((async()=>{n.to=await Ue(a,this.provider)})())}r.length&&await Promise.all(r);const i=this.provider.getRpcTransaction(n);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(t){const n=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(t);return await new Promise((i,a)=>{const o=[1e3,100],s=async()=>{const f=await this.provider.getTransaction(r);if(f!=null){i(f.replaceableTransaction(n));return}this.provider._setTimeout(()=>{s()},o.pop()||4e3)};s()})}async signTransaction(t){const n=n5(t);if(n.from){const i=await Ue(n.from,this.provider);Q(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),n.from=i}else n.from=this.address;const r=this.provider.getRpcTransaction(n);return await this.provider.send("eth_signTransaction",[r])}async signMessage(t){const n=typeof t=="string"?qr(t):t;return await this.provider.send("personal_sign",[I0(n),this.address.toLowerCase()])}async signTypedData(t,n,r){const i=n5(r),a=await I2.resolveNames(t,n,i,async o=>{const s=await Ue(o);return Q(s!=null,"TypedData does not support null address","value",o),s});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(I2.getPayload(a.domain,n,a.value))])}async unlock(t){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),t,null])}async _legacySignMessage(t){const n=typeof t=="string"?qr(t):t;return await this.provider.send("eth_sign",[this.address.toLowerCase(),I0(n)])}}var fo,G4,jr,ur,wn,Yt,kt,k1,b7;class $S0 extends kS0{constructor(t,n){super(t,n);X(this,k1);X(this,fo,void 0);X(this,G4,void 0);X(this,jr,void 0);X(this,ur,void 0);X(this,wn,void 0);X(this,Yt,void 0);X(this,kt,void 0);I(this,G4,1),I(this,fo,Object.assign({},LS0,n||{})),I(this,jr,[]),I(this,ur,null),I(this,Yt,null),I(this,kt,null);{let i=null;const a=new Promise(o=>{i=o});I(this,wn,{promise:a,resolve:i})}const r=this._getOption("staticNetwork");typeof r=="boolean"?(Q(!r||t!=="any","staticNetwork cannot be used on special network 'any'","options",n),r&&t!=null&&I(this,Yt,or.from(t))):r&&(Q(t==null||r.matches(t),"staticNetwork MUST match network object","options",n),I(this,Yt,r))}_getOption(t){return x(this,fo)[t]}get _network(){return c0(x(this,Yt),"network is not available yet","NETWORK_ERROR"),x(this,Yt)}async _perform(t){if(t.method==="call"||t.method==="estimateGas"){let r=t.transaction;if(r&&r.type!=null&&N0(r.type)&&r.maxFeePerGas==null&&r.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(t=Object.assign({},t,{transaction:Object.assign({},r,{type:void 0})}))}}const n=this.getRpcRequest(t);return n!=null?await this.send(n.method,n.args):super._perform(t)}async _detectNetwork(){const t=this._getOption("staticNetwork");if(t)if(t===!0){if(x(this,Yt))return x(this,Yt)}else return t;return x(this,kt)?await x(this,kt):this.ready?(I(this,kt,(async()=>{const n=or.from(N0(await this.send("eth_chainId",[])));return I(this,kt,null),n})()),await x(this,kt)):(I(this,kt,(async()=>{const n={id:b3(this,G4)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:n});let r;try{r=(await this._send(n))[0],I(this,kt,null)}catch(i){throw I(this,kt,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:r}),"result"in r)return or.from(N0(r.result));throw this.getRpcError(n,r)})()),await x(this,kt))}_start(){x(this,wn)==null||x(this,wn).resolve==null||(x(this,wn).resolve(),I(this,wn,null),(async()=>{for(;x(this,Yt)==null&&!this.destroyed;)try{I(this,Yt,await this._detectNetwork())}catch(t){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",Ju("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:t}})),await zS0(1e3)}A0(this,k1,b7).call(this)})())}async _waitUntilReady(){if(x(this,wn)!=null)return await x(this,wn).promise}_getSubscriber(t){return t.type==="pending"?new MS0(this):t.type==="event"?this._getOption("polling")?new SA(this,t.filter):new RS0(this,t.filter):t.type==="orphan"&&t.filter.orphan==="drop-log"?new az("orphan"):super._getSubscriber(t)}get ready(){return x(this,wn)==null}getRpcTransaction(t){const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(r=>{if(t[r]==null)return;let i=r;r==="gasLimit"&&(i="gas"),n[i]=Ws(N0(t[r],`tx.${r}`))}),["from","to","data"].forEach(r=>{t[r]!=null&&(n[r]=I0(t[r]))}),t.accessList&&(n.accessList=ts(t.accessList)),n}getRpcRequest(t){switch(t.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[ms(t.address),t.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[ms(t.address),t.blockTag]};case"getCode":return{method:"eth_getCode",args:[ms(t.address),t.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[ms(t.address),"0x"+t.position.toString(16),t.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[t.signedTransaction]};case"getBlock":if("blockTag"in t)return{method:"eth_getBlockByNumber",args:[t.blockTag,!!t.includeTransactions]};if("blockHash"in t)return{method:"eth_getBlockByHash",args:[t.blockHash,!!t.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[t.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[t.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(t.transaction),t.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(t.transaction)]};case"getLogs":return t.filter&&t.filter.address!=null&&(Array.isArray(t.filter.address)?t.filter.address=t.filter.address.map(ms):t.filter.address=ms(t.filter.address)),{method:"eth_getLogs",args:[t.filter]}}return null}getRpcError(t,n){const{method:r}=t,{error:i}=n;if(r==="eth_estimateGas"&&i.message){const s=i.message;if(!s.match(/revert/i)&&s.match(/insufficient funds/i))return Ju("insufficient funds","INSUFFICIENT_FUNDS",{transaction:t.params[0],info:{payload:t,error:i}})}if(r==="eth_call"||r==="eth_estimateGas"){const s=g7(i),f=f1.getBuiltinCallException(r==="eth_call"?"call":"estimateGas",t.params[0],s?s.data:null);return f.info={error:i,payload:t},f}const a=JSON.stringify(WS0(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return Ju("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[r]||"unknown",reason:"rejected",info:{payload:t,error:i}});if(r==="eth_sendRawTransaction"||r==="eth_sendTransaction"){const s=t.params[0];if(a.match(/insufficient funds|base fee exceeds gas limit/i))return Ju("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:s,info:{error:i}});if(a.match(/nonce/i)&&a.match(/too low/i))return Ju("nonce has already been used","NONCE_EXPIRED",{transaction:s,info:{error:i}});if(a.match(/replacement transaction/i)&&a.match(/underpriced/i))return Ju("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:s,info:{error:i}});if(a.match(/only replay-protected/i))return Ju("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:r,info:{transaction:s,info:{error:i}}})}let o=!!a.match(/the method .* does not exist/i);return o||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(o=!0),o?Ju("unsupported operation","UNSUPPORTED_OPERATION",{operation:t.method,info:{error:i,payload:t}}):Ju("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:t})}send(t,n){if(this.destroyed)return Promise.reject(Ju("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t}));const r=b3(this,G4)._++,i=new Promise((a,o)=>{x(this,jr).push({resolve:a,reject:o,payload:{method:t,params:n,id:r,jsonrpc:"2.0"}})});return A0(this,k1,b7).call(this),i}async getSigner(t){t==null&&(t=0);const n=this.send("eth_accounts",[]);if(typeof t=="number"){const i=await n;if(t>=i.length)throw new Error("no such account");return new Sp(this,i[t])}const{accounts:r}=await je({network:this.getNetwork(),accounts:n});t=tu(t);for(const i of r)if(tu(i)===t)return new Sp(this,t);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(n=>new Sp(this,n))}destroy(){x(this,ur)&&(clearTimeout(x(this,ur)),I(this,ur,null));for(const{payload:t,reject:n}of x(this,jr))n(Ju("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t.method}));I(this,jr,[]),super.destroy()}}fo=new WeakMap,G4=new WeakMap,jr=new WeakMap,ur=new WeakMap,wn=new WeakMap,Yt=new WeakMap,kt=new WeakMap,k1=new WeakSet,b7=function(){if(x(this,ur))return;const t=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");I(this,ur,setTimeout(()=>{I(this,ur,null);const n=x(this,jr);for(I(this,jr,[]);n.length;){const r=[n.shift()];for(;n.length&&r.length!==x(this,fo).batchMaxCount;)if(r.push(n.shift()),JSON.stringify(r.map(a=>a.payload)).length>x(this,fo).batchMaxSize){n.unshift(r.pop());break}(async()=>{const i=r.length===1?r[0].payload:r.map(a=>a.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const a=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:a});for(const{resolve:o,reject:s,payload:f}of r){if(this.destroyed){s(Ju("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:f.method}));continue}const l=a.filter(c=>c.id===f.id)[0];if(l==null){const c=Ju("missing response for request","BAD_DATA",{value:a,info:{payload:f}});this.emit("error",c),s(c);continue}if("error"in l){s(this.getRpcError(f,l));continue}o(l.result)}}catch(a){this.emit("debug",{action:"receiveRpcError",error:a});for(const{reject:o}of r)o(a)}})()}},t))};var Ui;class US0 extends $S0{constructor(t,n){super(t,n);X(this,Ui,void 0);I(this,Ui,4e3)}_getSubscriber(t){const n=super._getSubscriber(t);return mx(n)&&(n.pollingInterval=x(this,Ui)),n}get pollingInterval(){return x(this,Ui)}set pollingInterval(t){if(!Number.isInteger(t)||t<0)throw new Error("invalid interval");I(this,Ui,t),this._forEachSubscriber(n=>{mx(n)&&(n.pollingInterval=x(this,Ui))})}}Ui=new WeakMap;var V4;class sz extends US0{constructor(t,n,r){t==null&&(t="http://localhost:8545");super(n,r);X(this,V4,void 0);typeof t=="string"?I(this,V4,new ui(t)):I(this,V4,t.clone())}_getConnection(){return x(this,V4).clone()}async send(t,n){return await this._start(),await super.send(t,n)}async _send(t){const n=this._getConnection();n.body=JSON.stringify(t),n.setHeader("content-type","application/json");const r=await n.send();r.assertOk();let i=r.bodyJson;return Array.isArray(i)||(i=[i]),i}}V4=new WeakMap;function g7(u){if(u==null)return null;if(typeof u.message=="string"&&u.message.match(/revert/i)&&ku(u.data))return{message:u.message,data:u.data};if(typeof u=="object"){for(const e in u){const t=g7(u[e]);if(t)return t}return null}if(typeof u=="string")try{return g7(JSON.parse(u))}catch{}return null}function A7(u,e){if(u!=null){if(typeof u.message=="string"&&e.push(u.message),typeof u=="object")for(const t in u)A7(u[t],e);if(typeof u=="string")try{return A7(JSON.parse(u),e)}catch{}}}function WS0(u){const e=[];return A7(u,e),e}function qS0(){const u=sS(),e=async()=>{const a=new sz("https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt"),o=Rx0.abi,s=new Ao(hw,o,a),l={address:hw,fromBlock:0,toBlock:"latest",topics:[da("TokenListed(uint256,address,uint256,uint256)")]};try{const E=(await a.getLogs(l)).map(d=>{const p=[...d.topics],h={...d,topics:p};return s.interface.parseLog(h)});console.log(E)}catch(c){console.error("Error fetching events: ",c)}},t=a=>{console.log("Clicked on NFT with Address",a),u("/real-token/Explore/"+a)},[n,r]=w.useState(),i=async()=>{console.log("Trying to fetch all Listed NFTs... "),e(),r([{name:"Modern Carpet 25",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmNeLLephRJ6zo2AmbcBxQ1iVFv1BDVMscQeZ6FLCvpQuq?_gl=1*1v30ko4*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA3OC4xNS4wLjA.",address:"0x7698",price:1.1,price_token:"ETH"},{name:"Modern Carpet 27",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmfQvxw2uEsCjHLbm11292Lqp24qUFhR469K35EBRuywzb?_gl=1*x2wtze*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA4OS40LjAuMA..",address:"0xsdf23",price:1.7,price_token:"ETH"},{name:"Modern Carpet 25",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmNeLLephRJ6zo2AmbcBxQ1iVFv1BDVMscQeZ6FLCvpQuq?_gl=1*1v30ko4*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA3OC4xNS4wLjA.",address:"0x7698",price:1.1,price_token:"ETH"},{name:"Modern Carpet 27",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmfQvxw2uEsCjHLbm11292Lqp24qUFhR469K35EBRuywzb?_gl=1*x2wtze*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA4OS40LjAuMA..",address:"0xsdf23",price:1.7,price_token:"ETH"},{name:"Modern Carpet 25",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmNeLLephRJ6zo2AmbcBxQ1iVFv1BDVMscQeZ6FLCvpQuq?_gl=1*1v30ko4*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA3OC4xNS4wLjA.",address:"0x7698",price:1.1,price_token:"ETH"},{name:"Modern Carpet 27",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmfQvxw2uEsCjHLbm11292Lqp24qUFhR469K35EBRuywzb?_gl=1*x2wtze*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA4OS40LjAuMA..",address:"0xsdf23",price:1.7,price_token:"ETH"},{name:"Modern Carpet 25",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmNeLLephRJ6zo2AmbcBxQ1iVFv1BDVMscQeZ6FLCvpQuq?_gl=1*1v30ko4*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA3OC4xNS4wLjA.",address:"0x7698",price:1.1,price_token:"ETH"},{name:"Modern Carpet 27",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmfQvxw2uEsCjHLbm11292Lqp24qUFhR469K35EBRuywzb?_gl=1*x2wtze*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA4OS40LjAuMA..",address:"0xsdf23",price:1.7,price_token:"ETH"},{name:"Modern Carpet 25",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmNeLLephRJ6zo2AmbcBxQ1iVFv1BDVMscQeZ6FLCvpQuq?_gl=1*1v30ko4*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA3OC4xNS4wLjA.",address:"0x7698",price:1.1,price_token:"ETH"},{name:"Modern Carpet 27",img:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/QmfQvxw2uEsCjHLbm11292Lqp24qUFhR469K35EBRuywzb?_gl=1*x2wtze*_ga*MTc0MDczMTUxNS4xNzAxNjg3OTQ3*_ga_5RMPXG14TE*MTcwMTY4Nzk1MS4xLjEuMTcwMTY4ODA4OS40LjAuMA..",address:"0xsdf23",price:1.7,price_token:"ETH"}])};return w.useEffect(()=>{i()},[]),f0.jsx(If,{container:!0,padding:5,direction:"row",spacing:5,justifyContent:"center",alignItems:"flex-start",children:n==null?void 0:n.map(a=>f0.jsx(If,{item:!0,children:f0.jsx(xx0,{NFT:a,onClick:()=>t(a.address)})}))})}function HS0(){let{NFTId:u}=fS();const e=async()=>{console.log("get NFT Details...")};return w.useEffect(()=>{e()},[u]),f0.jsx(If,{container:!0,justifyContent:"center",spacing:3,padding:7,direction:"column",alignItems:"center",children:f0.jsx(rf,{children:"Click Mes"})})}function GS0(u){return f0.jsx(MM,{onClick:u.onClick,className:"nft-card",children:f0.jsxs(jM,{children:[f0.jsx("img",{src:u.NFT.image,width:200,height:275}),f0.jsx("h4",{children:u.NFT.name}),f0.jsx(rf,{variant:"contained",color:"primary",children:"List For Sale"})]})})}const VS0="hh-sol-artifact-1",KS0="FractionalizedNFT",QS0="contracts/FractionalizedNFT.sol",JS0=[{inputs:[{internalType:"address",name:"defaultAdmin",type:"address"},{internalType:"address",name:"_reserver",type:"address"},{internalType:"string",name:"uri",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessControlBadConfirmation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bytes32",name:"neededRole",type:"bytes32"}],name:"AccessControlUnauthorizedAccount",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ERC1155InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC1155InvalidApprover",type:"error"},{inputs:[{internalType:"uint256",name:"idsLength",type:"uint256"},{internalType:"uint256",name:"valuesLength",type:"uint256"}],name:"ERC1155InvalidArrayLength",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"ERC1155InvalidOperator",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC1155InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"ERC1155InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"ERC1155MissingApprovalForAll",type:"error"},{inputs:[],name:"EnforcedPause",type:"error"},{inputs:[],name:"ExpectedPause",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"AmountApproved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"AmountTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"OwnershipRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"TokenMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_TOKEN_AMOUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MINTER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PAUSER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"URI_SETTER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"operator",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getMetadata",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getOwnedTokens",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getOwnershipAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getOwnershipPercentage",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"metadata",type:"string"},{internalType:"bool",name:"reservable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint8",name:"count",type:"uint8"},{internalType:"uint256[]",name:"tokenId",type:"uint256[]"},{internalType:"string[]",name:"metadata",type:"string[]"},{internalType:"bool",name:"reservable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mintBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"removeApproval",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"callerConfirmation",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_reserver",type:"address"}],name:"setReserver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"newuri",type:"string"}],name:"setURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"transfer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],YS0="0x60806040523480156200001157600080fd5b5060405162005b0838038062005b088339818101604052810190620000379190620004e2565b8062000049816200015e60201b60201c565b506000600460006101000a81548160ff0219169083151502179055506200007a6000801b846200017360201b60201c565b50620000ad7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a846200017360201b60201c565b50620000e07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6846200017360201b60201c565b50620001137f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c846200017360201b60201c565b5081600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506200088f565b80600290816200016f9190620007a8565b5050565b60006200018783836200027760201b60201c565b6200026c5760016003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555062000208620002e260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001905062000271565b600090505b92915050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200032b82620002fe565b9050919050565b6200033d816200031e565b81146200034957600080fd5b50565b6000815190506200035d8162000332565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003b8826200036d565b810181811067ffffffffffffffff82111715620003da57620003d96200037e565b5b80604052505050565b6000620003ef620002ea565b9050620003fd8282620003ad565b919050565b600067ffffffffffffffff82111562000420576200041f6200037e565b5b6200042b826200036d565b9050602081019050919050565b60005b83811015620004585780820151818401526020810190506200043b565b60008484015250505050565b60006200047b620004758462000402565b620003e3565b9050828152602081018484840111156200049a576200049962000368565b5b620004a784828562000438565b509392505050565b600082601f830112620004c757620004c662000363565b5b8151620004d984826020860162000464565b91505092915050565b600080600060608486031215620004fe57620004fd620002f4565b5b60006200050e868287016200034c565b935050602062000521868287016200034c565b925050604084015167ffffffffffffffff811115620005455762000544620002f9565b5b6200055386828701620004af565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005b057607f821691505b602082108103620005c657620005c562000568565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006307fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005f1565b6200063c8683620005f1565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000689620006836200067d8462000654565b6200065e565b62000654565b9050919050565b6000819050919050565b620006a58362000668565b620006bd620006b48262000690565b848454620005fe565b825550505050565b600090565b620006d4620006c5565b620006e18184846200069a565b505050565b5b818110156200070957620006fd600082620006ca565b600181019050620006e7565b5050565b601f82111562000758576200072281620005cc565b6200072d84620005e1565b810160208510156200073d578190505b620007556200074c85620005e1565b830182620006e6565b50505b505050565b600082821c905092915050565b60006200077d600019846008026200075d565b1980831691505092915050565b60006200079883836200076a565b9150826002028217905092915050565b620007b3826200055d565b67ffffffffffffffff811115620007cf57620007ce6200037e565b5b620007db825462000597565b620007e88282856200070d565b600060209050601f8311600181146200082057600084156200080b578287015190505b6200081785826200078a565b86555062000887565b601f1984166200083086620005cc565b60005b828110156200085a5784890151825560018201915060208501945060208101905062000833565b868310156200087a578489015162000876601f8916826200076a565b8355505b6001600288020188555050505b505050505050565b615269806200089f6000396000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c8063829e47e511610130578063d5391393116100b8578063e63ab1e91161007c578063e63ab1e91461066d578063e985e9c51461068b578063ee4525d5146106bb578063f242432a146106eb578063f5298aca1461070757610226565b8063d5391393146105a3578063d547741f146105c1578063d9d61655146105dd578063e345e0bc1461060d578063e62de01b1461063d57610226565b8063a0a124dd116100ff578063a0a124dd14610501578063a217fddf1461051d578063a22cb4651461053b578063a574cea414610557578063b537b2691461058757610226565b8063829e47e51461048f5780638456cb59146104ab5780638cb0a511146104b557806391d14854146104d157610226565b80632fecd4bb116101b35780635c975abb116101825780635c975abb146103ff578063605105f01461041d5780636b20c454146104395780637f34571014610455578063813f3fe91461047357610226565b80632fecd4bb1461037957806336568abe146103a95780633f4ba83a146103c55780634e1273f4146103cf57610226565b8063127217d6116101fa578063127217d6146102d75780631e9c2d67146102f3578063248a9ca3146103115780632eb2c2d6146103415780632f2ff15d1461035d57610226565b8062fdd58e1461022b57806301ffc9a71461025b57806302fe53051461028b5780630e89341c146102a7575b600080fd5b6102456004803603810190610240919061388d565b610723565b60405161025291906138dc565b60405180910390f35b6102756004803603810190610270919061394f565b61077d565b6040516102829190613997565b60405180910390f35b6102a560048036038101906102a09190613af8565b61078f565b005b6102c160048036038101906102bc9190613b41565b6107c6565b6040516102ce9190613bed565b60405180910390f35b6102f160048036038101906102ec9190613cb0565b61085a565b005b6102fb610b49565b60405161030891906138dc565b60405180910390f35b61032b60048036038101906103269190613d7d565b610b4f565b6040516103389190613db9565b60405180910390f35b61035b60048036038101906103569190613e9c565b610b6f565b005b61037760048036038101906103729190613f6b565b610c17565b005b610393600480360381019061038e919061388d565b610c39565b6040516103a091906138dc565b60405180910390f35b6103c360048036038101906103be9190613f6b565b610c94565b005b6103cd610d0f565b005b6103e960048036038101906103e4919061406e565b610d44565b6040516103f691906141a4565b60405180910390f35b610407610e53565b6040516104149190613997565b60405180910390f35b61043760048036038101906104329190613cb0565b610e6a565b005b610453600480360381019061044e91906141c6565b610edb565b005b61045d610f87565b60405161046a9190613db9565b60405180910390f35b61048d60048036038101906104889190614397565b610fab565b005b6104a960048036038101906104a49190614478565b611407565b005b6104b3611688565b005b6104cf60048036038101906104ca919061452b565b6116bd565b005b6104eb60048036038101906104e69190613f6b565b61192a565b6040516104f89190613997565b60405180910390f35b61051b6004803603810190610516919061457e565b611995565b005b6105256119e7565b6040516105329190613db9565b60405180910390f35b610555600480360381019061055091906145ab565b6119ee565b005b610571600480360381019061056c9190613b41565b611a04565b60405161057e9190613bed565b60405180910390f35b6105a1600480360381019061059c919061388d565b611aa9565b005b6105ab611ba8565b6040516105b89190613db9565b60405180910390f35b6105db60048036038101906105d69190613f6b565b611bcc565b005b6105f760048036038101906105f2919061457e565b611bee565b60405161060491906141a4565b60405180910390f35b610627600480360381019061062291906145eb565b611c85565b60405161063491906138dc565b60405180910390f35b6106576004803603810190610652919061388d565b611ce3565b60405161066491906138dc565b60405180910390f35b610675611d57565b6040516106829190613db9565b60405180910390f35b6106a560048036038101906106a0919061462b565b611d7b565b6040516106b29190613997565b60405180910390f35b6106d560048036038101906106d09190613b41565b611e0f565b6040516106e29190614729565b60405180910390f35b61070560048036038101906107009190613cb0565b611eb0565b005b610721600480360381019061071c919061474b565b611f58565b005b600080600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061078882612004565b9050919050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c6107b98161207e565b6107c282612092565b5050565b6060600280546107d5906147cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610801906147cd565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b50505050509050919050565b816006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156108ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e49061484a565b60405180910390fd5b816006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461094d9190614899565b925050819055506109618585858585611eb0565b816006600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109c191906148cd565b9250508190555060076000848152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083908060018154018082558091505060019003906000526020600020016000909190919091505560006006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610b0557610b0483866120a5565b5b7feeb0e676a4fccb21187462c64b95d0e58742fed59dbc3a8795d8e8ff8ccfba1683868685604051610b3a9493929190614910565b60405180910390a15050505050565b61271081565b600060036000838152602001908152602001600020600101549050919050565b6000610b7961243a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015610bbe5750610bbc8682611d7b565b155b15610c025780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610bf9929190614955565b60405180910390fd5b610c0f8686868686612442565b505050505050565b610c2082610b4f565b610c298161207e565b610c33838361253a565b50505050565b60006006600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610c9c61243a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d00576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d0a828261262c565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d398161207e565b610d4161271f565b50565b60608151835114610d9057815183516040517f5b059991000000000000000000000000000000000000000000000000000000008152600401610d8792919061497e565b60405180910390fd5b6000835167ffffffffffffffff811115610dad57610dac6139cd565b5b604051908082528060200260200182016040528015610ddb5781602001602082028036833780820191505090505b50905060005b8451811015610e4857610e18610e00828761278290919063ffffffff16565b610e13838761279690919063ffffffff16565b610723565b828281518110610e2b57610e2a6149a7565b5b60200260200101818152505080610e41906149d6565b9050610de1565b508091505092915050565b6000600460009054906101000a900460ff16905090565b6000610e768433611c85565b905082811015610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb290614a6a565b60405180910390fd5b610ec63385856127aa565b610ed3868686868661085a565b505050505050565b610ee361243a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610f2c5750610f2a83610f2561243a565b611d7b565b155b15610f7757610f3961243a565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610f6e929190614955565b60405180910390fd5b610f8283838361286b565b505050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610fd58161207e565b82156110f95760005b8660ff168160ff1610156110f757600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc878360ff16815181106110405761103f6149a7565b5b60200260200101516040518263ffffffff1660e01b815260040161106491906138dc565b602060405180830381865afa158015611081573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a59190614a9f565b6110e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110db90614b18565b60405180910390fd5b80806110ef90614b38565b915050610fde565b505b60008660ff1667ffffffffffffffff811115611118576111176139cd565b5b6040519080825280602002602001820160405280156111465781602001602082028036833780820191505090505b50905060005b8760ff168160ff16101561119257612710828260ff1681518110611173576111726149a7565b5b602002602001018181525050808061118a90614b38565b91505061114c565b5061119f888783866128ff565b60005b86518110156113fc578181815181106111be576111bd6149a7565b5b6020026020010151600660008984815181106111dd576111dc6149a7565b5b6020026020010151815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020878281518110611286576112856149a7565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915055600760008883815181106112cb576112ca6149a7565b5b60200260200101518152602001908152602001600020899080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550858181518110611355576113546149a7565b5b602002602001015160056000898481518110611374576113736149a7565b5b6020026020010151815260200190815260200160002090816113969190614d0d565b508681815181106113aa576113a96149a7565b5b60200260200101517f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c98a6040516113e19190614ddf565b60405180910390a280806113f4906149d6565b9150506111a2565b505050505050505050565b81156114e957600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc856040518263ffffffff1660e01b815260040161146891906138dc565b602060405180830381865afa158015611485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a99190614a9f565b6114e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114df90614b18565b60405180910390fd5b5b6114f7858561271084612985565b826005600086815260200190815260200160002090816115179190614d0d565b506127106006600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060076000858152602001908152602001600020859080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190915055837f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c9866040516116799190614ddf565b60405180910390a25050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6116b28161207e565b6116ba612a1e565b50565b806006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174790614a6a565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16036117be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b590614e46565b60405180910390fd5b6117c98260016119ee565b600060096000858152602001908152602001600020905060008160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540361188f5780600001839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b818160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16847f7a5c69a7c393db8f307d6fea9c8addb8c18644d1172a623792a4017298a1a5828460405161191c91906138dc565b60405180910390a350505050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6119a28161207e565b81600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b81565b611a006119f961243a565b8383612a81565b5050565b6060600560008381526020019081526020016000208054611a24906147cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611a50906147cd565b8015611a9d5780601f10611a7257610100808354040283529160200191611a9d565b820191906000526020600020905b815481529060010190602001808311611a8057829003601f168201915b50505050509050919050565b60006006600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411611b3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3390614ed8565b60405180910390fd5b6000611b488284611c85565b905060008111611b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8490614f44565b60405180910390fd5b611b988383836127aa565b611ba38360006119ee565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611bd582610b4f565b611bde8161207e565b611be8838361262c565b50505050565b6060600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611c7957602002820191906000526020600020905b815481526020019060010190808311611c65575b50505050509050919050565b60006009600084815260200190815260200160002060010160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061271060646006600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d459190614f64565b611d4f9190614fd5565b905092915050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060076000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611ea457602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611e5a575b50505050509050919050565b6000611eba61243a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015611eff5750611efd8682611d7b565b155b15611f435780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611f3a929190614955565b60405180910390fd5b611f508686868686612bf1565b505050505050565b611f6061243a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611fa95750611fa783611fa261243a565b611d7b565b155b15611ff457611fb661243a565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611feb929190614955565b60405180910390fd5b611fff838383612cfc565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612077575061207682612da3565b5b9050919050565b61208f8161208a61243a565b612e85565b50565b80600290816120a19190614d0d565b5050565b600060076000848152602001908152602001600020905060008180549050905060005b6001826120d59190614899565b811015612217578373ffffffffffffffffffffffffffffffffffffffff16838281548110612106576121056149a7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612204578260018361215a9190614899565b8154811061216b5761216a6149a7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166007600087815260200190815260200160002082815481106121bb576121ba6149a7565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b808061220f906149d6565b9150506120c8565b506007600085815260200190815260200160002080548061223b5761223a615006565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556000600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008180549050905060005b6001826122cc9190614899565b81101561239457868382815481106122e7576122e66149a7565b5b90600052602060002001540361238157826001836123059190614899565b81548110612316576123156149a7565b5b9060005260206000200154600860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110612372576123716149a7565b5b90600052602060002001819055505b808061238c906149d6565b9150506122bf565b50600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806123e4576123e3615006565b5b60019003818190600052602060002001600090559055857fb313f5a88a5d21dd54119393bab2baac6503d2bc1368bd7af3281737aefe94478660405161242a9190614ddf565b60405180910390a2505050505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036124b45760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016124ab9190614ddf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036125265760006040517f01a8351400000000000000000000000000000000000000000000000000000000815260040161251d9190614ddf565b60405180910390fd5b6125338585858585612ed6565b5050505050565b6000612546838361192a565b6126215760016003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506125be61243a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050612626565b600090505b92915050565b6000612638838361192a565b156127145760006003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506126b161243a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050612719565b600090505b92915050565b612727612f88565b6000600460006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61276b61243a565b6040516127789190614ddf565b60405180910390a1565b600060208202602084010151905092915050565b600060208202602084010151905092915050565b60006127b68385611c85565b9050818110156127fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f290614a6a565b60405180910390fd5b816009600085815260200190815260200160002060010160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461285e9190614899565b9250508190555050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128dd5760006040517f01a835140000000000000000000000000000000000000000000000000000000081526004016128d49190614ddf565b60405180910390fd5b6128fa836000848460405180602001604052806000815250612ed6565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129715760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129689190614ddf565b60405180910390fd5b61297f600085858585612ed6565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129f75760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129ee9190614ddf565b60405180910390fd5b600080612a048585612fc8565b91509150612a16600087848487612ed6565b505050505050565b612a26612ff8565b6001600460006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a6a61243a565b604051612a779190614ddf565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612af35760006040517fced3e100000000000000000000000000000000000000000000000000000000008152600401612aea9190614ddf565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612be49190613997565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c635760006040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612c5a9190614ddf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612cd55760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612ccc9190614ddf565b60405180910390fd5b600080612ce28585612fc8565b91509150612cf38787848487612ed6565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d6e5760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612d659190614ddf565b60405180910390fd5b600080612d7b8484612fc8565b91509150612d9c856000848460405180602001604052806000815250612ed6565b5050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e6e57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e7e5750612e7d82613039565b5b9050919050565b612e8f828261192a565b612ed25780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401612ec9929190615035565b60405180910390fd5b5050565b612ee2858585856130a3565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612f81576000612f2061243a565b90506001845103612f70576000612f4160008661279690919063ffffffff16565b90506000612f5960008661279690919063ffffffff16565b9050612f698389898585896130b5565b5050612f7f565b612f7e818787878787613269565b5b505b5050505050565b612f90610e53565b612fc6576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b613000610e53565b15613037576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6130af8484848461341d565b50505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613261578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016131169594939291906150b3565b6020604051808303816000875af192505050801561315257506040513d601f19601f8201168201806040525081019061314f9190615122565b60015b6131d6573d8060008114613182576040519150601f19603f3d011682016040523d82523d6000602084013e613187565b606091505b5060008151036131ce57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016131c59190614ddf565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461325f57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016132569190614ddf565b60405180910390fd5b505b505050505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613415578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016132ca95949392919061514f565b6020604051808303816000875af192505050801561330657506040513d601f19601f820116820180604052508101906133039190615122565b60015b61338a573d8060008114613336576040519150601f19603f3d011682016040523d82523d6000602084013e61333b565b606091505b50600081510361338257846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016133799190614ddf565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461341357846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161340a9190614ddf565b60405180910390fd5b505b505050505050565b613425612ff8565b61343184848484613437565b50505050565b805182511461348157815181516040517f5b05999100000000000000000000000000000000000000000000000000000000815260040161347892919061497e565b60405180910390fd5b600061348b61243a565b905060005b83518110156136a05760006134ae828661279690919063ffffffff16565b905060006134c5838661279690919063ffffffff16565b9050600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146135f257600080600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561359a57888183856040517f03dee4c500000000000000000000000000000000000000000000000000000000815260040161359194939291906151b7565b60405180910390fd5b81810360008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461368d578060008084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461368591906148cd565b925050819055505b505080613699906149d6565b9050613490565b50600183510361375f5760006136c060008561279690919063ffffffff16565b905060006136d860008561279690919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62858560405161375092919061497e565b60405180910390a450506137de565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516137d59291906151fc565b60405180910390a45b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613824826137f9565b9050919050565b61383481613819565b811461383f57600080fd5b50565b6000813590506138518161382b565b92915050565b6000819050919050565b61386a81613857565b811461387557600080fd5b50565b60008135905061388781613861565b92915050565b600080604083850312156138a4576138a36137ef565b5b60006138b285828601613842565b92505060206138c385828601613878565b9150509250929050565b6138d681613857565b82525050565b60006020820190506138f160008301846138cd565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61392c816138f7565b811461393757600080fd5b50565b60008135905061394981613923565b92915050565b600060208284031215613965576139646137ef565b5b60006139738482850161393a565b91505092915050565b60008115159050919050565b6139918161397c565b82525050565b60006020820190506139ac6000830184613988565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a05826139bc565b810181811067ffffffffffffffff82111715613a2457613a236139cd565b5b80604052505050565b6000613a376137e5565b9050613a4382826139fc565b919050565b600067ffffffffffffffff821115613a6357613a626139cd565b5b613a6c826139bc565b9050602081019050919050565b82818337600083830152505050565b6000613a9b613a9684613a48565b613a2d565b905082815260208101848484011115613ab757613ab66139b7565b5b613ac2848285613a79565b509392505050565b600082601f830112613adf57613ade6139b2565b5b8135613aef848260208601613a88565b91505092915050565b600060208284031215613b0e57613b0d6137ef565b5b600082013567ffffffffffffffff811115613b2c57613b2b6137f4565b5b613b3884828501613aca565b91505092915050565b600060208284031215613b5757613b566137ef565b5b6000613b6584828501613878565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ba8578082015181840152602081019050613b8d565b60008484015250505050565b6000613bbf82613b6e565b613bc98185613b79565b9350613bd9818560208601613b8a565b613be2816139bc565b840191505092915050565b60006020820190508181036000830152613c078184613bb4565b905092915050565b600067ffffffffffffffff821115613c2a57613c296139cd565b5b613c33826139bc565b9050602081019050919050565b6000613c53613c4e84613c0f565b613a2d565b905082815260208101848484011115613c6f57613c6e6139b7565b5b613c7a848285613a79565b509392505050565b600082601f830112613c9757613c966139b2565b5b8135613ca7848260208601613c40565b91505092915050565b600080600080600060a08688031215613ccc57613ccb6137ef565b5b6000613cda88828901613842565b9550506020613ceb88828901613842565b9450506040613cfc88828901613878565b9350506060613d0d88828901613878565b925050608086013567ffffffffffffffff811115613d2e57613d2d6137f4565b5b613d3a88828901613c82565b9150509295509295909350565b6000819050919050565b613d5a81613d47565b8114613d6557600080fd5b50565b600081359050613d7781613d51565b92915050565b600060208284031215613d9357613d926137ef565b5b6000613da184828501613d68565b91505092915050565b613db381613d47565b82525050565b6000602082019050613dce6000830184613daa565b92915050565b600067ffffffffffffffff821115613def57613dee6139cd565b5b602082029050602081019050919050565b600080fd5b6000613e18613e1384613dd4565b613a2d565b90508083825260208201905060208402830185811115613e3b57613e3a613e00565b5b835b81811015613e645780613e508882613878565b845260208401935050602081019050613e3d565b5050509392505050565b600082601f830112613e8357613e826139b2565b5b8135613e93848260208601613e05565b91505092915050565b600080600080600060a08688031215613eb857613eb76137ef565b5b6000613ec688828901613842565b9550506020613ed788828901613842565b945050604086013567ffffffffffffffff811115613ef857613ef76137f4565b5b613f0488828901613e6e565b935050606086013567ffffffffffffffff811115613f2557613f246137f4565b5b613f3188828901613e6e565b925050608086013567ffffffffffffffff811115613f5257613f516137f4565b5b613f5e88828901613c82565b9150509295509295909350565b60008060408385031215613f8257613f816137ef565b5b6000613f9085828601613d68565b9250506020613fa185828601613842565b9150509250929050565b600067ffffffffffffffff821115613fc657613fc56139cd565b5b602082029050602081019050919050565b6000613fea613fe584613fab565b613a2d565b9050808382526020820190506020840283018581111561400d5761400c613e00565b5b835b8181101561403657806140228882613842565b84526020840193505060208101905061400f565b5050509392505050565b600082601f830112614055576140546139b2565b5b8135614065848260208601613fd7565b91505092915050565b60008060408385031215614085576140846137ef565b5b600083013567ffffffffffffffff8111156140a3576140a26137f4565b5b6140af85828601614040565b925050602083013567ffffffffffffffff8111156140d0576140cf6137f4565b5b6140dc85828601613e6e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61411b81613857565b82525050565b600061412d8383614112565b60208301905092915050565b6000602082019050919050565b6000614151826140e6565b61415b81856140f1565b935061416683614102565b8060005b8381101561419757815161417e8882614121565b975061418983614139565b92505060018101905061416a565b5085935050505092915050565b600060208201905081810360008301526141be8184614146565b905092915050565b6000806000606084860312156141df576141de6137ef565b5b60006141ed86828701613842565b935050602084013567ffffffffffffffff81111561420e5761420d6137f4565b5b61421a86828701613e6e565b925050604084013567ffffffffffffffff81111561423b5761423a6137f4565b5b61424786828701613e6e565b9150509250925092565b600060ff82169050919050565b61426781614251565b811461427257600080fd5b50565b6000813590506142848161425e565b92915050565b600067ffffffffffffffff8211156142a5576142a46139cd565b5b602082029050602081019050919050565b60006142c96142c48461428a565b613a2d565b905080838252602082019050602084028301858111156142ec576142eb613e00565b5b835b8181101561433357803567ffffffffffffffff811115614311576143106139b2565b5b80860161431e8982613aca565b855260208501945050506020810190506142ee565b5050509392505050565b600082601f830112614352576143516139b2565b5b81356143628482602086016142b6565b91505092915050565b6143748161397c565b811461437f57600080fd5b50565b6000813590506143918161436b565b92915050565b60008060008060008060c087890312156143b4576143b36137ef565b5b60006143c289828a01613842565b96505060206143d389828a01614275565b955050604087013567ffffffffffffffff8111156143f4576143f36137f4565b5b61440089828a01613e6e565b945050606087013567ffffffffffffffff811115614421576144206137f4565b5b61442d89828a0161433d565b935050608061443e89828a01614382565b92505060a087013567ffffffffffffffff81111561445f5761445e6137f4565b5b61446b89828a01613c82565b9150509295509295509295565b600080600080600060a08688031215614494576144936137ef565b5b60006144a288828901613842565b95505060206144b388828901613878565b945050604086013567ffffffffffffffff8111156144d4576144d36137f4565b5b6144e088828901613aca565b93505060606144f188828901614382565b925050608086013567ffffffffffffffff811115614512576145116137f4565b5b61451e88828901613c82565b9150509295509295909350565b600080600060608486031215614544576145436137ef565b5b600061455286828701613878565b935050602061456386828701613842565b925050604061457486828701613878565b9150509250925092565b600060208284031215614594576145936137ef565b5b60006145a284828501613842565b91505092915050565b600080604083850312156145c2576145c16137ef565b5b60006145d085828601613842565b92505060206145e185828601614382565b9150509250929050565b60008060408385031215614602576146016137ef565b5b600061461085828601613878565b925050602061462185828601613842565b9150509250929050565b60008060408385031215614642576146416137ef565b5b600061465085828601613842565b925050602061466185828601613842565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6146a081613819565b82525050565b60006146b28383614697565b60208301905092915050565b6000602082019050919050565b60006146d68261466b565b6146e08185614676565b93506146eb83614687565b8060005b8381101561471c57815161470388826146a6565b975061470e836146be565b9250506001810190506146ef565b5085935050505092915050565b6000602082019050818103600083015261474381846146cb565b905092915050565b600080600060608486031215614764576147636137ef565b5b600061477286828701613842565b935050602061478386828701613878565b925050604061479486828701613878565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147e557607f821691505b6020821081036147f8576147f761479e565b5b50919050565b7f496e73756666696369656e74206f776e6572736869702062616c616e63650000600082015250565b6000614834601e83613b79565b915061483f826147fe565b602082019050919050565b6000602082019050818103600083015261486381614827565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006148a482613857565b91506148af83613857565b92508282039050818111156148c7576148c661486a565b5b92915050565b60006148d882613857565b91506148e383613857565b92508282019050808211156148fb576148fa61486a565b5b92915050565b61490a81613819565b82525050565b600060808201905061492560008301876138cd565b6149326020830186614901565b61493f6040830185614901565b61494c60608301846138cd565b95945050505050565b600060408201905061496a6000830185614901565b6149776020830184614901565b9392505050565b600060408201905061499360008301856138cd565b6149a060208301846138cd565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006149e182613857565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a1357614a1261486a565b5b600182019050919050565b7f496e73756666696369656e7420616c6c6f77616e636500000000000000000000600082015250565b6000614a54601683613b79565b9150614a5f82614a1e565b602082019050919050565b60006020820190508181036000830152614a8381614a47565b9050919050565b600081519050614a998161436b565b92915050565b600060208284031215614ab557614ab46137ef565b5b6000614ac384828501614a8a565b91505092915050565b7f4173736574206973206e6f742072657365727665642079657400000000000000600082015250565b6000614b02601983613b79565b9150614b0d82614acc565b602082019050919050565b60006020820190508181036000830152614b3181614af5565b9050919050565b6000614b4382614251565b915060ff8203614b5657614b5561486a565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614bc37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b86565b614bcd8683614b86565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614c0a614c05614c0084613857565b614be5565b613857565b9050919050565b6000819050919050565b614c2483614bef565b614c38614c3082614c11565b848454614b93565b825550505050565b600090565b614c4d614c40565b614c58818484614c1b565b505050565b5b81811015614c7c57614c71600082614c45565b600181019050614c5e565b5050565b601f821115614cc157614c9281614b61565b614c9b84614b76565b81016020851015614caa578190505b614cbe614cb685614b76565b830182614c5d565b50505b505050565b600082821c905092915050565b6000614ce460001984600802614cc6565b1980831691505092915050565b6000614cfd8383614cd3565b9150826002028217905092915050565b614d1682613b6e565b67ffffffffffffffff811115614d2f57614d2e6139cd565b5b614d3982546147cd565b614d44828285614c80565b600060209050601f831160018114614d775760008415614d65578287015190505b614d6f8582614cf1565b865550614dd7565b601f198416614d8586614b61565b60005b82811015614dad57848901518255600182019150602085019450602081019050614d88565b86831015614dca5784890151614dc6601f891682614cd3565b8355505b6001600288020188555050505b505050505050565b6000602082019050614df46000830184614901565b92915050565b7f417070726f76616c20746f2063757272656e74206f776e657200000000000000600082015250565b6000614e30601983613b79565b9150614e3b82614dfa565b602082019050919050565b60006020820190508181036000830152614e5f81614e23565b9050919050565b7f496e76616c6964206f776e65727368697020616d6f756e7420746f2072656d6f60008201527f766520617070726f76616c000000000000000000000000000000000000000000602082015250565b6000614ec2602b83613b79565b9150614ecd82614e66565b604082019050919050565b60006020820190508181036000830152614ef181614eb5565b9050919050565b7f496e73756666696369656e74206f70657261746f7220616c6c6f77616e636500600082015250565b6000614f2e601f83613b79565b9150614f3982614ef8565b602082019050919050565b60006020820190508181036000830152614f5d81614f21565b9050919050565b6000614f6f82613857565b9150614f7a83613857565b9250828202614f8881613857565b91508282048414831517614f9f57614f9e61486a565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614fe082613857565b9150614feb83613857565b925082614ffb57614ffa614fa6565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060408201905061504a6000830185614901565b6150576020830184613daa565b9392505050565b600081519050919050565b600082825260208201905092915050565b60006150858261505e565b61508f8185615069565b935061509f818560208601613b8a565b6150a8816139bc565b840191505092915050565b600060a0820190506150c86000830188614901565b6150d56020830187614901565b6150e260408301866138cd565b6150ef60608301856138cd565b8181036080830152615101818461507a565b90509695505050505050565b60008151905061511c81613923565b92915050565b600060208284031215615138576151376137ef565b5b60006151468482850161510d565b91505092915050565b600060a0820190506151646000830188614901565b6151716020830187614901565b81810360408301526151838186614146565b905081810360608301526151978185614146565b905081810360808301526151ab818461507a565b90509695505050505050565b60006080820190506151cc6000830187614901565b6151d960208301866138cd565b6151e660408301856138cd565b6151f360608301846138cd565b95945050505050565b600060408201905081810360008301526152168185614146565b9050818103602083015261522a8184614146565b9050939250505056fea26469706673582212204702439fa0ab9b36950458bc9192f1cb6b37ca0ea2167cc6f44bbeceba124e7164736f6c63430008140033",ZS0="0x608060405234801561001057600080fd5b50600436106102265760003560e01c8063829e47e511610130578063d5391393116100b8578063e63ab1e91161007c578063e63ab1e91461066d578063e985e9c51461068b578063ee4525d5146106bb578063f242432a146106eb578063f5298aca1461070757610226565b8063d5391393146105a3578063d547741f146105c1578063d9d61655146105dd578063e345e0bc1461060d578063e62de01b1461063d57610226565b8063a0a124dd116100ff578063a0a124dd14610501578063a217fddf1461051d578063a22cb4651461053b578063a574cea414610557578063b537b2691461058757610226565b8063829e47e51461048f5780638456cb59146104ab5780638cb0a511146104b557806391d14854146104d157610226565b80632fecd4bb116101b35780635c975abb116101825780635c975abb146103ff578063605105f01461041d5780636b20c454146104395780637f34571014610455578063813f3fe91461047357610226565b80632fecd4bb1461037957806336568abe146103a95780633f4ba83a146103c55780634e1273f4146103cf57610226565b8063127217d6116101fa578063127217d6146102d75780631e9c2d67146102f3578063248a9ca3146103115780632eb2c2d6146103415780632f2ff15d1461035d57610226565b8062fdd58e1461022b57806301ffc9a71461025b57806302fe53051461028b5780630e89341c146102a7575b600080fd5b6102456004803603810190610240919061388d565b610723565b60405161025291906138dc565b60405180910390f35b6102756004803603810190610270919061394f565b61077d565b6040516102829190613997565b60405180910390f35b6102a560048036038101906102a09190613af8565b61078f565b005b6102c160048036038101906102bc9190613b41565b6107c6565b6040516102ce9190613bed565b60405180910390f35b6102f160048036038101906102ec9190613cb0565b61085a565b005b6102fb610b49565b60405161030891906138dc565b60405180910390f35b61032b60048036038101906103269190613d7d565b610b4f565b6040516103389190613db9565b60405180910390f35b61035b60048036038101906103569190613e9c565b610b6f565b005b61037760048036038101906103729190613f6b565b610c17565b005b610393600480360381019061038e919061388d565b610c39565b6040516103a091906138dc565b60405180910390f35b6103c360048036038101906103be9190613f6b565b610c94565b005b6103cd610d0f565b005b6103e960048036038101906103e4919061406e565b610d44565b6040516103f691906141a4565b60405180910390f35b610407610e53565b6040516104149190613997565b60405180910390f35b61043760048036038101906104329190613cb0565b610e6a565b005b610453600480360381019061044e91906141c6565b610edb565b005b61045d610f87565b60405161046a9190613db9565b60405180910390f35b61048d60048036038101906104889190614397565b610fab565b005b6104a960048036038101906104a49190614478565b611407565b005b6104b3611688565b005b6104cf60048036038101906104ca919061452b565b6116bd565b005b6104eb60048036038101906104e69190613f6b565b61192a565b6040516104f89190613997565b60405180910390f35b61051b6004803603810190610516919061457e565b611995565b005b6105256119e7565b6040516105329190613db9565b60405180910390f35b610555600480360381019061055091906145ab565b6119ee565b005b610571600480360381019061056c9190613b41565b611a04565b60405161057e9190613bed565b60405180910390f35b6105a1600480360381019061059c919061388d565b611aa9565b005b6105ab611ba8565b6040516105b89190613db9565b60405180910390f35b6105db60048036038101906105d69190613f6b565b611bcc565b005b6105f760048036038101906105f2919061457e565b611bee565b60405161060491906141a4565b60405180910390f35b610627600480360381019061062291906145eb565b611c85565b60405161063491906138dc565b60405180910390f35b6106576004803603810190610652919061388d565b611ce3565b60405161066491906138dc565b60405180910390f35b610675611d57565b6040516106829190613db9565b60405180910390f35b6106a560048036038101906106a0919061462b565b611d7b565b6040516106b29190613997565b60405180910390f35b6106d560048036038101906106d09190613b41565b611e0f565b6040516106e29190614729565b60405180910390f35b61070560048036038101906107009190613cb0565b611eb0565b005b610721600480360381019061071c919061474b565b611f58565b005b600080600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061078882612004565b9050919050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c6107b98161207e565b6107c282612092565b5050565b6060600280546107d5906147cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610801906147cd565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b50505050509050919050565b816006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156108ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e49061484a565b60405180910390fd5b816006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461094d9190614899565b925050819055506109618585858585611eb0565b816006600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109c191906148cd565b9250508190555060076000848152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083908060018154018082558091505060019003906000526020600020016000909190919091505560006006600085815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610b0557610b0483866120a5565b5b7feeb0e676a4fccb21187462c64b95d0e58742fed59dbc3a8795d8e8ff8ccfba1683868685604051610b3a9493929190614910565b60405180910390a15050505050565b61271081565b600060036000838152602001908152602001600020600101549050919050565b6000610b7961243a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015610bbe5750610bbc8682611d7b565b155b15610c025780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610bf9929190614955565b60405180910390fd5b610c0f8686868686612442565b505050505050565b610c2082610b4f565b610c298161207e565b610c33838361253a565b50505050565b60006006600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610c9c61243a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d00576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d0a828261262c565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d398161207e565b610d4161271f565b50565b60608151835114610d9057815183516040517f5b059991000000000000000000000000000000000000000000000000000000008152600401610d8792919061497e565b60405180910390fd5b6000835167ffffffffffffffff811115610dad57610dac6139cd565b5b604051908082528060200260200182016040528015610ddb5781602001602082028036833780820191505090505b50905060005b8451811015610e4857610e18610e00828761278290919063ffffffff16565b610e13838761279690919063ffffffff16565b610723565b828281518110610e2b57610e2a6149a7565b5b60200260200101818152505080610e41906149d6565b9050610de1565b508091505092915050565b6000600460009054906101000a900460ff16905090565b6000610e768433611c85565b905082811015610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb290614a6a565b60405180910390fd5b610ec63385856127aa565b610ed3868686868661085a565b505050505050565b610ee361243a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610f2c5750610f2a83610f2561243a565b611d7b565b155b15610f7757610f3961243a565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401610f6e929190614955565b60405180910390fd5b610f8283838361286b565b505050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610fd58161207e565b82156110f95760005b8660ff168160ff1610156110f757600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc878360ff16815181106110405761103f6149a7565b5b60200260200101516040518263ffffffff1660e01b815260040161106491906138dc565b602060405180830381865afa158015611081573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a59190614a9f565b6110e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110db90614b18565b60405180910390fd5b80806110ef90614b38565b915050610fde565b505b60008660ff1667ffffffffffffffff811115611118576111176139cd565b5b6040519080825280602002602001820160405280156111465781602001602082028036833780820191505090505b50905060005b8760ff168160ff16101561119257612710828260ff1681518110611173576111726149a7565b5b602002602001018181525050808061118a90614b38565b91505061114c565b5061119f888783866128ff565b60005b86518110156113fc578181815181106111be576111bd6149a7565b5b6020026020010151600660008984815181106111dd576111dc6149a7565b5b6020026020010151815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020878281518110611286576112856149a7565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915055600760008883815181106112cb576112ca6149a7565b5b60200260200101518152602001908152602001600020899080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550858181518110611355576113546149a7565b5b602002602001015160056000898481518110611374576113736149a7565b5b6020026020010151815260200190815260200160002090816113969190614d0d565b508681815181106113aa576113a96149a7565b5b60200260200101517f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c98a6040516113e19190614ddf565b60405180910390a280806113f4906149d6565b9150506111a2565b505050505050505050565b81156114e957600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632228adcc856040518263ffffffff1660e01b815260040161146891906138dc565b602060405180830381865afa158015611485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a99190614a9f565b6114e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114df90614b18565b60405180910390fd5b5b6114f7858561271084612985565b826005600086815260200190815260200160002090816115179190614d0d565b506127106006600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060076000858152602001908152602001600020859080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190915055837f3a5398bda6f1f57d6c96834fa9bf02b5517bdc847d14312015a917ba421c31c9866040516116799190614ddf565b60405180910390a25050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6116b28161207e565b6116ba612a1e565b50565b806006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174790614a6a565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16036117be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b590614e46565b60405180910390fd5b6117c98260016119ee565b600060096000858152602001908152602001600020905060008160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540361188f5780600001839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b818160010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16847f7a5c69a7c393db8f307d6fea9c8addb8c18644d1172a623792a4017298a1a5828460405161191c91906138dc565b60405180910390a350505050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6119a28161207e565b81600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000801b81565b611a006119f961243a565b8383612a81565b5050565b6060600560008381526020019081526020016000208054611a24906147cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611a50906147cd565b8015611a9d5780601f10611a7257610100808354040283529160200191611a9d565b820191906000526020600020905b815481529060010190602001808311611a8057829003601f168201915b50505050509050919050565b60006006600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411611b3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3390614ed8565b60405180910390fd5b6000611b488284611c85565b905060008111611b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8490614f44565b60405180910390fd5b611b988383836127aa565b611ba38360006119ee565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611bd582610b4f565b611bde8161207e565b611be8838361262c565b50505050565b6060600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611c7957602002820191906000526020600020905b815481526020019060010190808311611c65575b50505050509050919050565b60006009600084815260200190815260200160002060010160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061271060646006600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d459190614f64565b611d4f9190614fd5565b905092915050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060076000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611ea457602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611e5a575b50505050509050919050565b6000611eba61243a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015611eff5750611efd8682611d7b565b155b15611f435780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611f3a929190614955565b60405180910390fd5b611f508686868686612bf1565b505050505050565b611f6061243a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611fa95750611fa783611fa261243a565b611d7b565b155b15611ff457611fb661243a565b836040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611feb929190614955565b60405180910390fd5b611fff838383612cfc565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612077575061207682612da3565b5b9050919050565b61208f8161208a61243a565b612e85565b50565b80600290816120a19190614d0d565b5050565b600060076000848152602001908152602001600020905060008180549050905060005b6001826120d59190614899565b811015612217578373ffffffffffffffffffffffffffffffffffffffff16838281548110612106576121056149a7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612204578260018361215a9190614899565b8154811061216b5761216a6149a7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166007600087815260200190815260200160002082815481106121bb576121ba6149a7565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b808061220f906149d6565b9150506120c8565b506007600085815260200190815260200160002080548061223b5761223a615006565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556000600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008180549050905060005b6001826122cc9190614899565b81101561239457868382815481106122e7576122e66149a7565b5b90600052602060002001540361238157826001836123059190614899565b81548110612316576123156149a7565b5b9060005260206000200154600860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110612372576123716149a7565b5b90600052602060002001819055505b808061238c906149d6565b9150506122bf565b50600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806123e4576123e3615006565b5b60019003818190600052602060002001600090559055857fb313f5a88a5d21dd54119393bab2baac6503d2bc1368bd7af3281737aefe94478660405161242a9190614ddf565b60405180910390a2505050505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036124b45760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016124ab9190614ddf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036125265760006040517f01a8351400000000000000000000000000000000000000000000000000000000815260040161251d9190614ddf565b60405180910390fd5b6125338585858585612ed6565b5050505050565b6000612546838361192a565b6126215760016003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506125be61243a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050612626565b600090505b92915050565b6000612638838361192a565b156127145760006003600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506126b161243a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050612719565b600090505b92915050565b612727612f88565b6000600460006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61276b61243a565b6040516127789190614ddf565b60405180910390a1565b600060208202602084010151905092915050565b600060208202602084010151905092915050565b60006127b68385611c85565b9050818110156127fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f290614a6a565b60405180910390fd5b816009600085815260200190815260200160002060010160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461285e9190614899565b9250508190555050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128dd5760006040517f01a835140000000000000000000000000000000000000000000000000000000081526004016128d49190614ddf565b60405180910390fd5b6128fa836000848460405180602001604052806000815250612ed6565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129715760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129689190614ddf565b60405180910390fd5b61297f600085858585612ed6565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129f75760006040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129ee9190614ddf565b60405180910390fd5b600080612a048585612fc8565b91509150612a16600087848487612ed6565b505050505050565b612a26612ff8565b6001600460006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a6a61243a565b604051612a779190614ddf565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612af35760006040517fced3e100000000000000000000000000000000000000000000000000000000008152600401612aea9190614ddf565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612be49190613997565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c635760006040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401612c5a9190614ddf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612cd55760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612ccc9190614ddf565b60405180910390fd5b600080612ce28585612fc8565b91509150612cf38787848487612ed6565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d6e5760006040517f01a83514000000000000000000000000000000000000000000000000000000008152600401612d659190614ddf565b60405180910390fd5b600080612d7b8484612fc8565b91509150612d9c856000848460405180602001604052806000815250612ed6565b5050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e6e57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e7e5750612e7d82613039565b5b9050919050565b612e8f828261192a565b612ed25780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401612ec9929190615035565b60405180910390fd5b5050565b612ee2858585856130a3565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612f81576000612f2061243a565b90506001845103612f70576000612f4160008661279690919063ffffffff16565b90506000612f5960008661279690919063ffffffff16565b9050612f698389898585896130b5565b5050612f7f565b612f7e818787878787613269565b5b505b5050505050565b612f90610e53565b612fc6576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b613000610e53565b15613037576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6130af8484848461341d565b50505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613261578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016131169594939291906150b3565b6020604051808303816000875af192505050801561315257506040513d601f19601f8201168201806040525081019061314f9190615122565b60015b6131d6573d8060008114613182576040519150601f19603f3d011682016040523d82523d6000602084013e613187565b606091505b5060008151036131ce57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016131c59190614ddf565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461325f57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016132569190614ddf565b60405180910390fd5b505b505050505050565b60008473ffffffffffffffffffffffffffffffffffffffff163b1115613415578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016132ca95949392919061514f565b6020604051808303816000875af192505050801561330657506040513d601f19601f820116820180604052508101906133039190615122565b60015b61338a573d8060008114613336576040519150601f19603f3d011682016040523d82523d6000602084013e61333b565b606091505b50600081510361338257846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016133799190614ddf565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461341357846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161340a9190614ddf565b60405180910390fd5b505b505050505050565b613425612ff8565b61343184848484613437565b50505050565b805182511461348157815181516040517f5b05999100000000000000000000000000000000000000000000000000000000815260040161347892919061497e565b60405180910390fd5b600061348b61243a565b905060005b83518110156136a05760006134ae828661279690919063ffffffff16565b905060006134c5838661279690919063ffffffff16565b9050600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146135f257600080600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561359a57888183856040517f03dee4c500000000000000000000000000000000000000000000000000000000815260040161359194939291906151b7565b60405180910390fd5b81810360008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461368d578060008084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461368591906148cd565b925050819055505b505080613699906149d6565b9050613490565b50600183510361375f5760006136c060008561279690919063ffffffff16565b905060006136d860008561279690919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62858560405161375092919061497e565b60405180910390a450506137de565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516137d59291906151fc565b60405180910390a45b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613824826137f9565b9050919050565b61383481613819565b811461383f57600080fd5b50565b6000813590506138518161382b565b92915050565b6000819050919050565b61386a81613857565b811461387557600080fd5b50565b60008135905061388781613861565b92915050565b600080604083850312156138a4576138a36137ef565b5b60006138b285828601613842565b92505060206138c385828601613878565b9150509250929050565b6138d681613857565b82525050565b60006020820190506138f160008301846138cd565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61392c816138f7565b811461393757600080fd5b50565b60008135905061394981613923565b92915050565b600060208284031215613965576139646137ef565b5b60006139738482850161393a565b91505092915050565b60008115159050919050565b6139918161397c565b82525050565b60006020820190506139ac6000830184613988565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a05826139bc565b810181811067ffffffffffffffff82111715613a2457613a236139cd565b5b80604052505050565b6000613a376137e5565b9050613a4382826139fc565b919050565b600067ffffffffffffffff821115613a6357613a626139cd565b5b613a6c826139bc565b9050602081019050919050565b82818337600083830152505050565b6000613a9b613a9684613a48565b613a2d565b905082815260208101848484011115613ab757613ab66139b7565b5b613ac2848285613a79565b509392505050565b600082601f830112613adf57613ade6139b2565b5b8135613aef848260208601613a88565b91505092915050565b600060208284031215613b0e57613b0d6137ef565b5b600082013567ffffffffffffffff811115613b2c57613b2b6137f4565b5b613b3884828501613aca565b91505092915050565b600060208284031215613b5757613b566137ef565b5b6000613b6584828501613878565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ba8578082015181840152602081019050613b8d565b60008484015250505050565b6000613bbf82613b6e565b613bc98185613b79565b9350613bd9818560208601613b8a565b613be2816139bc565b840191505092915050565b60006020820190508181036000830152613c078184613bb4565b905092915050565b600067ffffffffffffffff821115613c2a57613c296139cd565b5b613c33826139bc565b9050602081019050919050565b6000613c53613c4e84613c0f565b613a2d565b905082815260208101848484011115613c6f57613c6e6139b7565b5b613c7a848285613a79565b509392505050565b600082601f830112613c9757613c966139b2565b5b8135613ca7848260208601613c40565b91505092915050565b600080600080600060a08688031215613ccc57613ccb6137ef565b5b6000613cda88828901613842565b9550506020613ceb88828901613842565b9450506040613cfc88828901613878565b9350506060613d0d88828901613878565b925050608086013567ffffffffffffffff811115613d2e57613d2d6137f4565b5b613d3a88828901613c82565b9150509295509295909350565b6000819050919050565b613d5a81613d47565b8114613d6557600080fd5b50565b600081359050613d7781613d51565b92915050565b600060208284031215613d9357613d926137ef565b5b6000613da184828501613d68565b91505092915050565b613db381613d47565b82525050565b6000602082019050613dce6000830184613daa565b92915050565b600067ffffffffffffffff821115613def57613dee6139cd565b5b602082029050602081019050919050565b600080fd5b6000613e18613e1384613dd4565b613a2d565b90508083825260208201905060208402830185811115613e3b57613e3a613e00565b5b835b81811015613e645780613e508882613878565b845260208401935050602081019050613e3d565b5050509392505050565b600082601f830112613e8357613e826139b2565b5b8135613e93848260208601613e05565b91505092915050565b600080600080600060a08688031215613eb857613eb76137ef565b5b6000613ec688828901613842565b9550506020613ed788828901613842565b945050604086013567ffffffffffffffff811115613ef857613ef76137f4565b5b613f0488828901613e6e565b935050606086013567ffffffffffffffff811115613f2557613f246137f4565b5b613f3188828901613e6e565b925050608086013567ffffffffffffffff811115613f5257613f516137f4565b5b613f5e88828901613c82565b9150509295509295909350565b60008060408385031215613f8257613f816137ef565b5b6000613f9085828601613d68565b9250506020613fa185828601613842565b9150509250929050565b600067ffffffffffffffff821115613fc657613fc56139cd565b5b602082029050602081019050919050565b6000613fea613fe584613fab565b613a2d565b9050808382526020820190506020840283018581111561400d5761400c613e00565b5b835b8181101561403657806140228882613842565b84526020840193505060208101905061400f565b5050509392505050565b600082601f830112614055576140546139b2565b5b8135614065848260208601613fd7565b91505092915050565b60008060408385031215614085576140846137ef565b5b600083013567ffffffffffffffff8111156140a3576140a26137f4565b5b6140af85828601614040565b925050602083013567ffffffffffffffff8111156140d0576140cf6137f4565b5b6140dc85828601613e6e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61411b81613857565b82525050565b600061412d8383614112565b60208301905092915050565b6000602082019050919050565b6000614151826140e6565b61415b81856140f1565b935061416683614102565b8060005b8381101561419757815161417e8882614121565b975061418983614139565b92505060018101905061416a565b5085935050505092915050565b600060208201905081810360008301526141be8184614146565b905092915050565b6000806000606084860312156141df576141de6137ef565b5b60006141ed86828701613842565b935050602084013567ffffffffffffffff81111561420e5761420d6137f4565b5b61421a86828701613e6e565b925050604084013567ffffffffffffffff81111561423b5761423a6137f4565b5b61424786828701613e6e565b9150509250925092565b600060ff82169050919050565b61426781614251565b811461427257600080fd5b50565b6000813590506142848161425e565b92915050565b600067ffffffffffffffff8211156142a5576142a46139cd565b5b602082029050602081019050919050565b60006142c96142c48461428a565b613a2d565b905080838252602082019050602084028301858111156142ec576142eb613e00565b5b835b8181101561433357803567ffffffffffffffff811115614311576143106139b2565b5b80860161431e8982613aca565b855260208501945050506020810190506142ee565b5050509392505050565b600082601f830112614352576143516139b2565b5b81356143628482602086016142b6565b91505092915050565b6143748161397c565b811461437f57600080fd5b50565b6000813590506143918161436b565b92915050565b60008060008060008060c087890312156143b4576143b36137ef565b5b60006143c289828a01613842565b96505060206143d389828a01614275565b955050604087013567ffffffffffffffff8111156143f4576143f36137f4565b5b61440089828a01613e6e565b945050606087013567ffffffffffffffff811115614421576144206137f4565b5b61442d89828a0161433d565b935050608061443e89828a01614382565b92505060a087013567ffffffffffffffff81111561445f5761445e6137f4565b5b61446b89828a01613c82565b9150509295509295509295565b600080600080600060a08688031215614494576144936137ef565b5b60006144a288828901613842565b95505060206144b388828901613878565b945050604086013567ffffffffffffffff8111156144d4576144d36137f4565b5b6144e088828901613aca565b93505060606144f188828901614382565b925050608086013567ffffffffffffffff811115614512576145116137f4565b5b61451e88828901613c82565b9150509295509295909350565b600080600060608486031215614544576145436137ef565b5b600061455286828701613878565b935050602061456386828701613842565b925050604061457486828701613878565b9150509250925092565b600060208284031215614594576145936137ef565b5b60006145a284828501613842565b91505092915050565b600080604083850312156145c2576145c16137ef565b5b60006145d085828601613842565b92505060206145e185828601614382565b9150509250929050565b60008060408385031215614602576146016137ef565b5b600061461085828601613878565b925050602061462185828601613842565b9150509250929050565b60008060408385031215614642576146416137ef565b5b600061465085828601613842565b925050602061466185828601613842565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6146a081613819565b82525050565b60006146b28383614697565b60208301905092915050565b6000602082019050919050565b60006146d68261466b565b6146e08185614676565b93506146eb83614687565b8060005b8381101561471c57815161470388826146a6565b975061470e836146be565b9250506001810190506146ef565b5085935050505092915050565b6000602082019050818103600083015261474381846146cb565b905092915050565b600080600060608486031215614764576147636137ef565b5b600061477286828701613842565b935050602061478386828701613878565b925050604061479486828701613878565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147e557607f821691505b6020821081036147f8576147f761479e565b5b50919050565b7f496e73756666696369656e74206f776e6572736869702062616c616e63650000600082015250565b6000614834601e83613b79565b915061483f826147fe565b602082019050919050565b6000602082019050818103600083015261486381614827565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006148a482613857565b91506148af83613857565b92508282039050818111156148c7576148c661486a565b5b92915050565b60006148d882613857565b91506148e383613857565b92508282019050808211156148fb576148fa61486a565b5b92915050565b61490a81613819565b82525050565b600060808201905061492560008301876138cd565b6149326020830186614901565b61493f6040830185614901565b61494c60608301846138cd565b95945050505050565b600060408201905061496a6000830185614901565b6149776020830184614901565b9392505050565b600060408201905061499360008301856138cd565b6149a060208301846138cd565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006149e182613857565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a1357614a1261486a565b5b600182019050919050565b7f496e73756666696369656e7420616c6c6f77616e636500000000000000000000600082015250565b6000614a54601683613b79565b9150614a5f82614a1e565b602082019050919050565b60006020820190508181036000830152614a8381614a47565b9050919050565b600081519050614a998161436b565b92915050565b600060208284031215614ab557614ab46137ef565b5b6000614ac384828501614a8a565b91505092915050565b7f4173736574206973206e6f742072657365727665642079657400000000000000600082015250565b6000614b02601983613b79565b9150614b0d82614acc565b602082019050919050565b60006020820190508181036000830152614b3181614af5565b9050919050565b6000614b4382614251565b915060ff8203614b5657614b5561486a565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614bc37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b86565b614bcd8683614b86565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614c0a614c05614c0084613857565b614be5565b613857565b9050919050565b6000819050919050565b614c2483614bef565b614c38614c3082614c11565b848454614b93565b825550505050565b600090565b614c4d614c40565b614c58818484614c1b565b505050565b5b81811015614c7c57614c71600082614c45565b600181019050614c5e565b5050565b601f821115614cc157614c9281614b61565b614c9b84614b76565b81016020851015614caa578190505b614cbe614cb685614b76565b830182614c5d565b50505b505050565b600082821c905092915050565b6000614ce460001984600802614cc6565b1980831691505092915050565b6000614cfd8383614cd3565b9150826002028217905092915050565b614d1682613b6e565b67ffffffffffffffff811115614d2f57614d2e6139cd565b5b614d3982546147cd565b614d44828285614c80565b600060209050601f831160018114614d775760008415614d65578287015190505b614d6f8582614cf1565b865550614dd7565b601f198416614d8586614b61565b60005b82811015614dad57848901518255600182019150602085019450602081019050614d88565b86831015614dca5784890151614dc6601f891682614cd3565b8355505b6001600288020188555050505b505050505050565b6000602082019050614df46000830184614901565b92915050565b7f417070726f76616c20746f2063757272656e74206f776e657200000000000000600082015250565b6000614e30601983613b79565b9150614e3b82614dfa565b602082019050919050565b60006020820190508181036000830152614e5f81614e23565b9050919050565b7f496e76616c6964206f776e65727368697020616d6f756e7420746f2072656d6f60008201527f766520617070726f76616c000000000000000000000000000000000000000000602082015250565b6000614ec2602b83613b79565b9150614ecd82614e66565b604082019050919050565b60006020820190508181036000830152614ef181614eb5565b9050919050565b7f496e73756666696369656e74206f70657261746f7220616c6c6f77616e636500600082015250565b6000614f2e601f83613b79565b9150614f3982614ef8565b602082019050919050565b60006020820190508181036000830152614f5d81614f21565b9050919050565b6000614f6f82613857565b9150614f7a83613857565b9250828202614f8881613857565b91508282048414831517614f9f57614f9e61486a565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614fe082613857565b9150614feb83613857565b925082614ffb57614ffa614fa6565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060408201905061504a6000830185614901565b6150576020830184613daa565b9392505050565b600081519050919050565b600082825260208201905092915050565b60006150858261505e565b61508f8185615069565b935061509f818560208601613b8a565b6150a8816139bc565b840191505092915050565b600060a0820190506150c86000830188614901565b6150d56020830187614901565b6150e260408301866138cd565b6150ef60608301856138cd565b8181036080830152615101818461507a565b90509695505050505050565b60008151905061511c81613923565b92915050565b600060208284031215615138576151376137ef565b5b60006151468482850161510d565b91505092915050565b600060a0820190506151646000830188614901565b6151716020830187614901565b81810360408301526151838186614146565b905081810360608301526151978185614146565b905081810360808301526151ab818461507a565b90509695505050505050565b60006080820190506151cc6000830187614901565b6151d960208301866138cd565b6151e660408301856138cd565b6151f360608301846138cd565b95945050505050565b600060408201905081810360008301526152168185614146565b9050818103602083015261522a8184614146565b9050939250505056fea26469706673582212204702439fa0ab9b36950458bc9192f1cb6b37ca0ea2167cc6f44bbeceba124e7164736f6c63430008140033",XS0={},uT0={},fz={_format:VS0,contractName:KS0,sourceName:QS0,abi:JS0,bytecode:YS0,deployedBytecode:ZS0,linkReferences:XS0,deployedLinkReferences:uT0};function eT0(u){if(u.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,A=new Uint8Array(m);g!==b;){for(var y=d[g],B=0,v=m-1;(y!==0||B>>0,A[v]=y%a>>>0,y=y/a>>>0;if(y!==0)throw new Error("Non-zero carry");h=B,g++}for(var C=m-h;C!==m&&A[C]===0;)C++;for(var D=o.repeat(p);C>>0,m=new Uint8Array(b);d[p];){var A=e[d.charCodeAt(p)];if(A===255)return;for(var y=0,B=b-1;(A!==0||y>>0,m[B]=A%256>>>0,A=A/256>>>0;if(A!==0)throw new Error("Non-zero carry");g=y,p++}for(var v=b-g;v!==b&&m[v]===0;)v++;for(var C=new Uint8Array(h+(b-v)),D=h;v!==b;)C[D++]=m[v++];return C}function E(d){var p=c(d);if(p)return p;throw new Error("Non-base"+a+" character")}return{encode:l,decodeUnsafe:c,decode:E}}var tT0=eT0;const nT0=tT0,rT0="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var iT0=nT0(rT0);const lz=_1(iT0);function aT0(u){const e=lz.decode(u).slice(2);return"0x"+Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}function oT0(u){const t="1220"+u.toString(16),n=sT0(t);return lz.encode(n)}function sT0(u){let e=[];for(let t=0;t{const o=new sz("https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt"),s=fz.abi,f=new Ao(LM,s,o);try{const c=await f.getOwnedTokens(n.address),d=c.map(g=>oT0(g)).map(async g=>await(await fetch("https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+g)).json()),p=await Promise.all(d),h=[];for(var l=0;l{console.log("get Profile Details...")};w.useEffect(()=>{r(),i()},[u]);function a(o){console.log(o)}return f0.jsx(If,{container:!0,padding:5,direction:"row",spacing:5,justifyContent:"center",alignItems:"flex-start",children:e==null?void 0:e.map(o=>f0.jsx(If,{item:!0,children:f0.jsx(GS0,{NFT:o,onClick:()=>a(o.tokenId)})}))})}function cz(u,e){return function(){return u.apply(e,arguments)}}const{toString:lT0}=Object.prototype,{getPrototypeOf:TA}=Object,Od=(u=>e=>{const t=lT0.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Cr=u=>(u=u.toLowerCase(),e=>Od(e)===u),Id=u=>e=>typeof e===u,{isArray:m3}=Array,c1=Id("undefined");function cT0(u){return u!==null&&!c1(u)&&u.constructor!==null&&!c1(u.constructor)&&sn(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}const Ez=Cr("ArrayBuffer");function ET0(u){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(u):e=u&&u.buffer&&Ez(u.buffer),e}const dT0=Id("string"),sn=Id("function"),dz=Id("number"),Nd=u=>u!==null&&typeof u=="object",pT0=u=>u===!0||u===!1,r5=u=>{if(Od(u)!=="object")return!1;const e=TA(u);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in u)&&!(Symbol.iterator in u)},hT0=Cr("Date"),CT0=Cr("File"),mT0=Cr("Blob"),bT0=Cr("FileList"),gT0=u=>Nd(u)&&sn(u.pipe),AT0=u=>{let e;return u&&(typeof FormData=="function"&&u instanceof FormData||sn(u.append)&&((e=Od(u))==="formdata"||e==="object"&&sn(u.toString)&&u.toString()==="[object FormData]"))},yT0=Cr("URLSearchParams"),vT0=u=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fc(u,e,{allOwnKeys:t=!1}={}){if(u===null||typeof u>"u")return;let n,r;if(typeof u!="object"&&(u=[u]),m3(u))for(n=0,r=u.length;n0;)if(r=t[n],e===r.toLowerCase())return r;return null}const hz=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Cz=u=>!c1(u)&&u!==hz;function y7(){const{caseless:u}=Cz(this)&&this||{},e={},t=(n,r)=>{const i=u&&pz(e,r)||r;r5(e[i])&&r5(n)?e[i]=y7(e[i],n):r5(n)?e[i]=y7({},n):m3(n)?e[i]=n.slice():e[i]=n};for(let n=0,r=arguments.length;n(Fc(e,(r,i)=>{t&&sn(r)?u[i]=cz(r,t):u[i]=r},{allOwnKeys:n}),u),FT0=u=>(u.charCodeAt(0)===65279&&(u=u.slice(1)),u),DT0=(u,e,t,n)=>{u.prototype=Object.create(e.prototype,n),u.prototype.constructor=u,Object.defineProperty(u,"super",{value:e.prototype}),t&&Object.assign(u.prototype,t)},wT0=(u,e,t,n)=>{let r,i,a;const o={};if(e=e||{},u==null)return e;do{for(r=Object.getOwnPropertyNames(u),i=r.length;i-- >0;)a=r[i],(!n||n(a,u,e))&&!o[a]&&(e[a]=u[a],o[a]=!0);u=t!==!1&&TA(u)}while(u&&(!t||t(u,e))&&u!==Object.prototype);return e},xT0=(u,e,t)=>{u=String(u),(t===void 0||t>u.length)&&(t=u.length),t-=e.length;const n=u.indexOf(e,t);return n!==-1&&n===t},kT0=u=>{if(!u)return null;if(m3(u))return u;let e=u.length;if(!dz(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=u[e];return t},_T0=(u=>e=>u&&e instanceof u)(typeof Uint8Array<"u"&&TA(Uint8Array)),ST0=(u,e)=>{const n=(u&&u[Symbol.iterator]).call(u);let r;for(;(r=n.next())&&!r.done;){const i=r.value;e.call(u,i[0],i[1])}},TT0=(u,e)=>{let t;const n=[];for(;(t=u.exec(e))!==null;)n.push(t);return n},PT0=Cr("HTMLFormElement"),OT0=u=>u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),bx=(({hasOwnProperty:u})=>(e,t)=>u.call(e,t))(Object.prototype),IT0=Cr("RegExp"),mz=(u,e)=>{const t=Object.getOwnPropertyDescriptors(u),n={};Fc(t,(r,i)=>{let a;(a=e(r,i,u))!==!1&&(n[i]=a||r)}),Object.defineProperties(u,n)},NT0=u=>{mz(u,(e,t)=>{if(sn(u)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=u[t];if(sn(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},RT0=(u,e)=>{const t={},n=r=>{r.forEach(i=>{t[i]=!0})};return m3(u)?n(u):n(String(u).split(e)),t},MT0=()=>{},jT0=(u,e)=>(u=+u,Number.isFinite(u)?u:e),Tp="abcdefghijklmnopqrstuvwxyz",gx="0123456789",bz={DIGIT:gx,ALPHA:Tp,ALPHA_DIGIT:Tp+Tp.toUpperCase()+gx},zT0=(u=16,e=bz.ALPHA_DIGIT)=>{let t="";const{length:n}=e;for(;u--;)t+=e[Math.random()*n|0];return t};function LT0(u){return!!(u&&sn(u.append)&&u[Symbol.toStringTag]==="FormData"&&u[Symbol.iterator])}const $T0=u=>{const e=new Array(10),t=(n,r)=>{if(Nd(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[r]=n;const i=m3(n)?[]:{};return Fc(n,(a,o)=>{const s=t(a,r+1);!c1(s)&&(i[o]=s)}),e[r]=void 0,i}}return n};return t(u,0)},UT0=Cr("AsyncFunction"),WT0=u=>u&&(Nd(u)||sn(u))&&sn(u.then)&&sn(u.catch),i0={isArray:m3,isArrayBuffer:Ez,isBuffer:cT0,isFormData:AT0,isArrayBufferView:ET0,isString:dT0,isNumber:dz,isBoolean:pT0,isObject:Nd,isPlainObject:r5,isUndefined:c1,isDate:hT0,isFile:CT0,isBlob:mT0,isRegExp:IT0,isFunction:sn,isStream:gT0,isURLSearchParams:yT0,isTypedArray:_T0,isFileList:bT0,forEach:Fc,merge:y7,extend:BT0,trim:vT0,stripBOM:FT0,inherits:DT0,toFlatObject:wT0,kindOf:Od,kindOfTest:Cr,endsWith:xT0,toArray:kT0,forEachEntry:ST0,matchAll:TT0,isHTMLForm:PT0,hasOwnProperty:bx,hasOwnProp:bx,reduceDescriptors:mz,freezeMethods:NT0,toObjectSet:RT0,toCamelCase:OT0,noop:MT0,toFiniteNumber:jT0,findKey:pz,global:hz,isContextDefined:Cz,ALPHABET:bz,generateString:zT0,isSpecCompliantForm:LT0,toJSONObject:$T0,isAsyncFn:UT0,isThenable:WT0};function Q0(u,e,t,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=u,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),r&&(this.response=r)}i0.inherits(Q0,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i0.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gz=Q0.prototype,Az={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(u=>{Az[u]={value:u}});Object.defineProperties(Q0,Az);Object.defineProperty(gz,"isAxiosError",{value:!0});Q0.from=(u,e,t,n,r,i)=>{const a=Object.create(gz);return i0.toFlatObject(u,a,function(s){return s!==Error.prototype},o=>o!=="isAxiosError"),Q0.call(a,u.message,e,t,n,r),a.cause=u,a.name=u.name,i&&Object.assign(a,i),a};const qT0=null;function v7(u){return i0.isPlainObject(u)||i0.isArray(u)}function yz(u){return i0.endsWith(u,"[]")?u.slice(0,-2):u}function Ax(u,e,t){return u?u.concat(e).map(function(r,i){return r=yz(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function HT0(u){return i0.isArray(u)&&!u.some(v7)}const GT0=i0.toFlatObject(i0,{},null,function(e){return/^is[A-Z]/.test(e)});function Rd(u,e,t){if(!i0.isObject(u))throw new TypeError("target must be an object");e=e||new FormData,t=i0.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!i0.isUndefined(g[h])});const n=t.metaTokens,r=t.visitor||l,i=t.dots,a=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&i0.isSpecCompliantForm(e);if(!i0.isFunction(r))throw new TypeError("visitor must be a function");function f(p){if(p===null)return"";if(i0.isDate(p))return p.toISOString();if(!s&&i0.isBlob(p))throw new Q0("Blob is not supported. Use a Buffer instead.");return i0.isArrayBuffer(p)||i0.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,h,g){let b=p;if(p&&!g&&typeof p=="object"){if(i0.endsWith(h,"{}"))h=n?h:h.slice(0,-2),p=JSON.stringify(p);else if(i0.isArray(p)&&HT0(p)||(i0.isFileList(p)||i0.endsWith(h,"[]"))&&(b=i0.toArray(p)))return h=yz(h),b.forEach(function(A,y){!(i0.isUndefined(A)||A===null)&&e.append(a===!0?Ax([h],y,i):a===null?h:h+"[]",f(A))}),!1}return v7(p)?!0:(e.append(Ax(g,h,i),f(p)),!1)}const c=[],E=Object.assign(GT0,{defaultVisitor:l,convertValue:f,isVisitable:v7});function d(p,h){if(!i0.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+h.join("."));c.push(p),i0.forEach(p,function(b,m){(!(i0.isUndefined(b)||b===null)&&r.call(e,b,i0.isString(m)?m.trim():m,h,E))===!0&&d(b,h?h.concat(m):[m])}),c.pop()}}if(!i0.isObject(u))throw new TypeError("data must be an object");return d(u),e}function yx(u){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function PA(u,e){this._pairs=[],u&&Rd(u,this,e)}const vz=PA.prototype;vz.append=function(e,t){this._pairs.push([e,t])};vz.toString=function(e){const t=e?function(n){return e.call(this,n,yx)}:yx;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function VT0(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bz(u,e,t){if(!e)return u;const n=t&&t.encode||VT0,r=t&&t.serialize;let i;if(r?i=r(e,t):i=i0.isURLSearchParams(e)?e.toString():new PA(e,t).toString(n),i){const a=u.indexOf("#");a!==-1&&(u=u.slice(0,a)),u+=(u.indexOf("?")===-1?"?":"&")+i}return u}class KT0{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){i0.forEach(this.handlers,function(n){n!==null&&e(n)})}}const vx=KT0,Fz={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},QT0=typeof URLSearchParams<"u"?URLSearchParams:PA,JT0=typeof FormData<"u"?FormData:null,YT0=typeof Blob<"u"?Blob:null,ZT0={isBrowser:!0,classes:{URLSearchParams:QT0,FormData:JT0,Blob:YT0},protocols:["http","https","file","blob","url","data"]},Dz=typeof window<"u"&&typeof document<"u",XT0=(u=>Dz&&["ReactNative","NativeScript","NS"].indexOf(u)<0)(typeof navigator<"u"&&navigator.product),uP0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eP0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Dz,hasStandardBrowserEnv:XT0,hasStandardBrowserWebWorkerEnv:uP0},Symbol.toStringTag,{value:"Module"})),sr={...eP0,...ZT0};function tP0(u,e){return Rd(u,new sr.classes.URLSearchParams,Object.assign({visitor:function(t,n,r,i){return sr.isNode&&i0.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function nP0(u){return i0.matchAll(/\w+|\[(\w*)]/g,u).map(e=>e[0]==="[]"?"":e[1]||e[0])}function rP0(u){const e={},t=Object.keys(u);let n;const r=t.length;let i;for(n=0;n=t.length;return a=!a&&i0.isArray(r)?r.length:a,s?(i0.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!i0.isObject(r[a]))&&(r[a]=[]),e(t,n,r[a],i)&&i0.isArray(r[a])&&(r[a]=rP0(r[a])),!o)}if(i0.isFormData(u)&&i0.isFunction(u.entries)){const t={};return i0.forEachEntry(u,(n,r)=>{e(nP0(n),r,t,0)}),t}return null}function iP0(u,e,t){if(i0.isString(u))try{return(e||JSON.parse)(u),i0.trim(u)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(u)}const OA={transitional:Fz,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=i0.isObject(e);if(i&&i0.isHTMLForm(e)&&(e=new FormData(e)),i0.isFormData(e))return r&&r?JSON.stringify(wz(e)):e;if(i0.isArrayBuffer(e)||i0.isBuffer(e)||i0.isStream(e)||i0.isFile(e)||i0.isBlob(e))return e;if(i0.isArrayBufferView(e))return e.buffer;if(i0.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return tP0(e,this.formSerializer).toString();if((o=i0.isFileList(e))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Rd(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),iP0(e)):e}],transformResponse:[function(e){const t=this.transitional||OA.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(e&&i0.isString(e)&&(n&&!this.responseType||r)){const a=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?Q0.from(o,Q0.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sr.classes.FormData,Blob:sr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};i0.forEach(["delete","get","head","post","put","patch"],u=>{OA.headers[u]={}});const IA=OA,aP0=i0.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),oP0=u=>{const e={};let t,n,r;return u&&u.split(` +`).forEach(function(a){r=a.indexOf(":"),t=a.substring(0,r).trim().toLowerCase(),n=a.substring(r+1).trim(),!(!t||e[t]&&aP0[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},Bx=Symbol("internals");function L3(u){return u&&String(u).trim().toLowerCase()}function i5(u){return u===!1||u==null?u:i0.isArray(u)?u.map(i5):String(u)}function sP0(u){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(u);)e[n[1]]=n[2];return e}const fP0=u=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(u.trim());function Pp(u,e,t,n,r){if(i0.isFunction(n))return n.call(this,e,t);if(r&&(e=t),!!i0.isString(e)){if(i0.isString(n))return e.indexOf(n)!==-1;if(i0.isRegExp(n))return n.test(e)}}function lP0(u){return u.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function cP0(u,e){const t=i0.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(u,n+t,{value:function(r,i,a){return this[n].call(this,e,r,i,a)},configurable:!0})})}class Md{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(o,s,f){const l=L3(s);if(!l)throw new Error("header name must be a non-empty string");const c=i0.findKey(r,l);(!c||r[c]===void 0||f===!0||f===void 0&&r[c]!==!1)&&(r[c||s]=i5(o))}const a=(o,s)=>i0.forEach(o,(f,l)=>i(f,l,s));return i0.isPlainObject(e)||e instanceof this.constructor?a(e,t):i0.isString(e)&&(e=e.trim())&&!fP0(e)?a(oP0(e),t):e!=null&&i(t,e,n),this}get(e,t){if(e=L3(e),e){const n=i0.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return sP0(r);if(i0.isFunction(t))return t.call(this,r,n);if(i0.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=L3(e),e){const n=i0.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Pp(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function i(a){if(a=L3(a),a){const o=i0.findKey(n,a);o&&(!t||Pp(n,n[o],o,t))&&(delete n[o],r=!0)}}return i0.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];(!e||Pp(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return i0.forEach(this,(r,i)=>{const a=i0.findKey(n,i);if(a){t[a]=i5(r),delete t[i];return}const o=e?lP0(i):String(i).trim();o!==i&&delete t[i],t[o]=i5(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return i0.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&i0.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const n=(this[Bx]=this[Bx]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=L3(a);n[o]||(cP0(r,a),n[o]=!0)}return i0.isArray(e)?e.forEach(i):i(e),this}}Md.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);i0.reduceDescriptors(Md.prototype,({value:u},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>u,set(n){this[t]=n}}});i0.freezeMethods(Md);const Gr=Md;function Op(u,e){const t=this||IA,n=e||t,r=Gr.from(n.headers);let i=n.data;return i0.forEach(u,function(o){i=o.call(t,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function xz(u){return!!(u&&u.__CANCEL__)}function Dc(u,e,t){Q0.call(this,u??"canceled",Q0.ERR_CANCELED,e,t),this.name="CanceledError"}i0.inherits(Dc,Q0,{__CANCEL__:!0});function EP0(u,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?u(t):e(new Q0("Request failed with status code "+t.status,[Q0.ERR_BAD_REQUEST,Q0.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const dP0=sr.hasStandardBrowserEnv?{write(u,e,t,n,r,i){const a=[u+"="+encodeURIComponent(e)];i0.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),i0.isString(n)&&a.push("path="+n),i0.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(u){const e=document.cookie.match(new RegExp("(^|;\\s*)("+u+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(u){this.write(u,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pP0(u){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(u)}function hP0(u,e){return e?u.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):u}function kz(u,e){return u&&!pP0(e)?hP0(u,e):e}const CP0=sr.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(i){let a=i;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(a){const o=i0.isString(a)?r(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function mP0(u){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(u);return e&&e[1]||""}function bP0(u,e){u=u||10;const t=new Array(u),n=new Array(u);let r=0,i=0,a;return e=e!==void 0?e:1e3,function(s){const f=Date.now(),l=n[i];a||(a=f),t[r]=s,n[r]=f;let c=i,E=0;for(;c!==r;)E+=t[c++],c=c%u;if(r=(r+1)%u,r===i&&(i=(i+1)%u),f-a{const i=r.loaded,a=r.lengthComputable?r.total:void 0,o=i-t,s=n(o),f=i<=a;t=i;const l={loaded:i,total:a,progress:a?i/a:void 0,bytes:o,rate:s||void 0,estimated:s&&a&&f?(a-i)/s:void 0,event:r};l[e?"download":"upload"]=!0,u(l)}}const gP0=typeof XMLHttpRequest<"u",AP0=gP0&&function(u){return new Promise(function(t,n){let r=u.data;const i=Gr.from(u.headers).normalize();let{responseType:a,withXSRFToken:o}=u,s;function f(){u.cancelToken&&u.cancelToken.unsubscribe(s),u.signal&&u.signal.removeEventListener("abort",s)}let l;if(i0.isFormData(r)){if(sr.hasStandardBrowserEnv||sr.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((l=i.getContentType())!==!1){const[h,...g]=l?l.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...g].join("; "))}}let c=new XMLHttpRequest;if(u.auth){const h=u.auth.username||"",g=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+g))}const E=kz(u.baseURL,u.url);c.open(u.method.toUpperCase(),Bz(E,u.params,u.paramsSerializer),!0),c.timeout=u.timeout;function d(){if(!c)return;const h=Gr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:u,request:c};EP0(function(A){t(A),f()},function(A){n(A),f()},b),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(n(new Q0("Request aborted",Q0.ECONNABORTED,u,c)),c=null)},c.onerror=function(){n(new Q0("Network Error",Q0.ERR_NETWORK,u,c)),c=null},c.ontimeout=function(){let g=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const b=u.transitional||Fz;u.timeoutErrorMessage&&(g=u.timeoutErrorMessage),n(new Q0(g,b.clarifyTimeoutError?Q0.ETIMEDOUT:Q0.ECONNABORTED,u,c)),c=null},sr.hasStandardBrowserEnv&&(o&&i0.isFunction(o)&&(o=o(u)),o||o!==!1&&CP0(E))){const h=u.xsrfHeaderName&&u.xsrfCookieName&&dP0.read(u.xsrfCookieName);h&&i.set(u.xsrfHeaderName,h)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&i0.forEach(i.toJSON(),function(g,b){c.setRequestHeader(b,g)}),i0.isUndefined(u.withCredentials)||(c.withCredentials=!!u.withCredentials),a&&a!=="json"&&(c.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&c.addEventListener("progress",Fx(u.onDownloadProgress,!0)),typeof u.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Fx(u.onUploadProgress)),(u.cancelToken||u.signal)&&(s=h=>{c&&(n(!h||h.type?new Dc(null,u,c):h),c.abort(),c=null)},u.cancelToken&&u.cancelToken.subscribe(s),u.signal&&(u.signal.aborted?s():u.signal.addEventListener("abort",s)));const p=mP0(E);if(p&&sr.protocols.indexOf(p)===-1){n(new Q0("Unsupported protocol "+p+":",Q0.ERR_BAD_REQUEST,u));return}c.send(r||null)})},B7={http:qT0,xhr:AP0};i0.forEach(B7,(u,e)=>{if(u){try{Object.defineProperty(u,"name",{value:e})}catch{}Object.defineProperty(u,"adapterName",{value:e})}});const Dx=u=>`- ${u}`,yP0=u=>i0.isFunction(u)||u===null||u===!1,_z={getAdapter:u=>{u=i0.isArray(u)?u:[u];const{length:e}=u;let t,n;const r={};for(let i=0;i`adapter ${o} `+(s===!1?"is not supported by the environment":"is not available in the build"));let a=e?i.length>1?`since : +`+i.map(Dx).join(` +`):" "+Dx(i[0]):"as no adapter specified";throw new Q0("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:B7};function Ip(u){if(u.cancelToken&&u.cancelToken.throwIfRequested(),u.signal&&u.signal.aborted)throw new Dc(null,u)}function wx(u){return Ip(u),u.headers=Gr.from(u.headers),u.data=Op.call(u,u.transformRequest),["post","put","patch"].indexOf(u.method)!==-1&&u.headers.setContentType("application/x-www-form-urlencoded",!1),_z.getAdapter(u.adapter||IA.adapter)(u).then(function(n){return Ip(u),n.data=Op.call(u,u.transformResponse,n),n.headers=Gr.from(n.headers),n},function(n){return xz(n)||(Ip(u),n&&n.response&&(n.response.data=Op.call(u,u.transformResponse,n.response),n.response.headers=Gr.from(n.response.headers))),Promise.reject(n)})}const xx=u=>u instanceof Gr?u.toJSON():u;function jf(u,e){e=e||{};const t={};function n(f,l,c){return i0.isPlainObject(f)&&i0.isPlainObject(l)?i0.merge.call({caseless:c},f,l):i0.isPlainObject(l)?i0.merge({},l):i0.isArray(l)?l.slice():l}function r(f,l,c){if(i0.isUndefined(l)){if(!i0.isUndefined(f))return n(void 0,f,c)}else return n(f,l,c)}function i(f,l){if(!i0.isUndefined(l))return n(void 0,l)}function a(f,l){if(i0.isUndefined(l)){if(!i0.isUndefined(f))return n(void 0,f)}else return n(void 0,l)}function o(f,l,c){if(c in e)return n(f,l);if(c in u)return n(void 0,f)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(f,l)=>r(xx(f),xx(l),!0)};return i0.forEach(Object.keys(Object.assign({},u,e)),function(l){const c=s[l]||r,E=c(u[l],e[l],l);i0.isUndefined(E)&&c!==o||(t[l]=E)}),t}const Sz="1.6.2",NA={};["object","boolean","number","function","string","symbol"].forEach((u,e)=>{NA[u]=function(n){return typeof n===u||"a"+(e<1?"n ":" ")+u}});const kx={};NA.transitional=function(e,t,n){function r(i,a){return"[Axios v"+Sz+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(e===!1)throw new Q0(r(a," has been removed"+(t?" in "+t:"")),Q0.ERR_DEPRECATED);return t&&!kx[a]&&(kx[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,a,o):!0}};function vP0(u,e,t){if(typeof u!="object")throw new Q0("options must be an object",Q0.ERR_BAD_OPTION_VALUE);const n=Object.keys(u);let r=n.length;for(;r-- >0;){const i=n[r],a=e[i];if(a){const o=u[i],s=o===void 0||a(o,i,u);if(s!==!0)throw new Q0("option "+i+" must be "+s,Q0.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Q0("Unknown option "+i,Q0.ERR_BAD_OPTION)}}const F7={assertOptions:vP0,validators:NA},bi=F7.validators;class j2{constructor(e){this.defaults=e,this.interceptors={request:new vx,response:new vx}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=jf(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&F7.assertOptions(n,{silentJSONParsing:bi.transitional(bi.boolean),forcedJSONParsing:bi.transitional(bi.boolean),clarifyTimeoutError:bi.transitional(bi.boolean)},!1),r!=null&&(i0.isFunction(r)?t.paramsSerializer={serialize:r}:F7.assertOptions(r,{encode:bi.function,serialize:bi.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&i0.merge(i.common,i[t.method]);i&&i0.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=Gr.concat(a,i);const o=[];let s=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(s=s&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});const f=[];this.interceptors.response.forEach(function(h){f.push(h.fulfilled,h.rejected)});let l,c=0,E;if(!s){const p=[wx.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,f),E=p.length,l=Promise.resolve(t);c{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](r);n._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(o=>{n.subscribe(o),i=o}).then(r);return a.cancel=function(){n.unsubscribe(i)},a},e(function(i,a,o){n.reason||(n.reason=new Dc(i,a,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new RA(function(r){e=r}),cancel:e}}}const BP0=RA;function FP0(u){return function(t){return u.apply(null,t)}}function DP0(u){return i0.isObject(u)&&u.isAxiosError===!0}const D7={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(D7).forEach(([u,e])=>{D7[e]=u});const wP0=D7;function Tz(u){const e=new a5(u),t=cz(a5.prototype.request,e);return i0.extend(t,a5.prototype,e,{allOwnKeys:!0}),i0.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Tz(jf(u,r))},t}const Ku=Tz(IA);Ku.Axios=a5;Ku.CanceledError=Dc;Ku.CancelToken=BP0;Ku.isCancel=xz;Ku.VERSION=Sz;Ku.toFormData=Rd;Ku.AxiosError=Q0;Ku.Cancel=Ku.CanceledError;Ku.all=function(e){return Promise.all(e)};Ku.spread=FP0;Ku.isAxiosError=DP0;Ku.mergeConfig=jf;Ku.AxiosHeaders=Gr;Ku.formToJSON=u=>wz(i0.isHTMLForm(u)?new FormData(u):u);Ku.getAdapter=_z.getAdapter;Ku.HttpStatusCode=wP0;Ku.default=Ku;const _x=Ku,xP0=u=>{const[e,t]=w.useState(null),[n,r]=w.useState(""),[i,a]=w.useState(""),[o,s]=w.useState(void 0),[f,l]=w.useState(void 0),[c,E]=w.useState(!1),d=b=>{var m,A;(m=b==null?void 0:b.target)!=null&&m.files&&t((A=b==null?void 0:b.target)==null?void 0:A.files[0])},p=b=>{var m,A;(m=b==null?void 0:b.target)!=null&&m.value&&s((A=b==null?void 0:b.target)==null?void 0:A.value)},h=b=>{var m,A;(m=b==null?void 0:b.target)!=null&&m.value&&l((A=b==null?void 0:b.target)==null?void 0:A.value)},g=async()=>{if(e===null)return alert("No file selected.");E(!0);const b=new FormData;b.append("file",e);const m=JSON.stringify({name:"NFTPic"});b.append("pinataMetadata",m);try{console.log("Uploading file on IPFS... ");const A=await _x.post("https://api.pinata.cloud/pinning/pinFileToIPFS",b,{maxBodyLength:1/0,headers:{"Content-Type":"multipart/form-data;",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M"}});console.log("response: ",A);const y="https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+A.data.IpfsHash;r(y),console.log("IPFS URL:",y);const B=JSON.stringify({pinataContent:{name:o,description:f,external_url:"https://Narpet.io",image:y},pinataMetadata:{name:"metadata.json"}}),v=await _x.post("https://api.pinata.cloud/pinning/pinJSONToIPFS",B,{headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M"}});console.log(v.data);const C="https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/"+v.data.IpfsHash;a(C),u.setCid(v.data.IpfsHash)}catch(A){console.error("Error uploading file:",A)}E(!1)};return f0.jsxs("div",{children:[f0.jsx("input",{disabled:c,type:"file",onChange:d,accept:"image/*"}),f0.jsx("input",{type:"text",content:o,onChange:p}),f0.jsx("input",{type:"text",content:f,onChange:h}),f0.jsx(Mw0,{disabled:c,onClick:g,children:"Upload to IPFS"}),c&&f0.jsx(VC,{children:"Uploading file ..."}),n&&f0.jsx("div",{children:f0.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"View uploaded image"})}),n&&f0.jsx("img",{src:n,width:200,height:275}),i&&f0.jsx("div",{children:f0.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:"View Json Metadat"})})]})},kP0="hh-sol-artifact-1",_P0="Reserver",SP0="contracts/Reserver.sol",TP0=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"id",type:"bytes32"}],name:"ChainlinkCancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"id",type:"bytes32"}],name:"ChainlinkFulfilled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"id",type:"bytes32"}],name:"ChainlinkRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Reserve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"fee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"requestId",type:"bytes32"}],name:"fulfill",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"fulfills",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"isReserved",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"jobId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"oracle",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"owners",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"requestPending",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"requests",outputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"reserved",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_link",type:"address"},{internalType:"address",name:"_oracle",type:"address"},{internalType:"string",name:"_jobId",type:"string"},{internalType:"uint256",name:"_fee",type:"uint256"}],name:"setJobConfig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"verify",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"}],PP0="0x608060405260016004553480156200001657600080fd5b5033600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036200008d5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000849190620001b0565b60405180910390fd5b6200009e81620000a560201b60201c565b50620001cd565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000198826200016b565b9050919050565b620001aa816200018b565b82525050565b6000602082019050620001c760008301846200019f565b92915050565b6120ca80620001dd6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80637dc0d1d0116100a2578063c2939d9711610071578063c2939d97146102cd578063db7b64a8146102eb578063ddca3f431461031b578063f2fde38b14610339578063ffbb6989146103555761010b565b80637dc0d1d0146102305780638753367f1461024e5780638da5cb5b1461027e5780639d8669851461029c5761010b565b80636352211e116100de5780636352211e146101bc578063715018a6146101ec578063761ca398146101f657806376f3dc84146102145761010b565b8063025e7c27146101105780632228adcc1461014057806353f9195e146101705780635508ff94146101a0575b600080fd5b61012a6004803603810190610125919061162c565b610385565b604051610137919061169a565b60405180910390f35b61015a6004803603810190610155919061162c565b6103b8565b60405161016791906116d0565b60405180910390f35b61018a6004803603810190610185919061162c565b6103e2565b60405161019791906116d0565b60405180910390f35b6101ba60048036038101906101b59190611721565b610402565b005b6101d660048036038101906101d1919061162c565b610500565b6040516101e3919061169a565b60405180910390f35b6101f461053d565b005b6101fe610551565b60405161020b919061175d565b60405180910390f35b61022e600480360381019061022991906118ea565b610557565b005b6102386105c5565b604051610245919061169a565b60405180910390f35b6102686004803603810190610263919061162c565b6105eb565b604051610275919061197c565b60405180910390f35b610286610810565b604051610293919061169a565b60405180910390f35b6102b660048036038101906102b19190611721565b61083a565b6040516102c4929190611997565b60405180910390f35b6102d561087e565b6040516102e2919061197c565b60405180910390f35b6103056004803603810190610300919061162c565b610884565b60405161031291906116d0565b60405180910390f35b6103236108cc565b604051610330919061175d565b60405180910390f35b610353600480360381019061034e91906119c0565b6108d2565b005b61036f600480360381019061036a91906119c0565b610958565b60405161037c91906116d0565b60405180910390f35b600b6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e600083815260200190815260200160002060009054906101000a900460ff169050919050565b600e6020528060005260406000206000915054906101000a900460ff1681565b6000600a6000838152602001908152602001600020905033600b60008360010154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600c60008282546104829190611a1c565b92505081905550600d60008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690555050565b6000600b600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610545610978565b61054f60006109ff565b565b600c5481565b61055f610978565b61056884610ac5565b82600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506105b282610b09565b6008819055508060098190555050505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080309050600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561067e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067590611ad3565b60405180910390fd5b600061069460085483635508ff9460e01b610b32565b90506106e86040518060400160405280600781526020017f746f6b656e4964000000000000000000000000000000000000000000000000008152506106d886610b63565b83610c319092919063ffffffff16565b6000610719600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600954610c64565b905060405180604001604052808473ffffffffffffffffffffffffffffffffffffffff16815260200186815250600a600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050506001600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550809350505050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600a6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b60085481565b6000806000801b905061089681610402565b6001600e600085815260200190815260200160002060006101000a81548160ff0219169083151502179055506001915050919050565b60095481565b6108da610978565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361094c5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610943919061169a565b60405180910390fd5b610955816109ff565b50565b600d6020528060005260406000206000915054906101000a900460ff1681565b610980610d30565b73ffffffffffffffffffffffffffffffffffffffff1661099e610810565b73ffffffffffffffffffffffffffffffffffffffff16146109fd576109c1610d30565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016109f4919061169a565b60405180910390fd5b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808290506000815103610b24576000801b915050610b2d565b60208301519150505b919050565b610b3a61155b565b610b4261155b565b610b5985858584610d38909392919063ffffffff16565b9150509392505050565b606060006001610b7284610de8565b01905060008167ffffffffffffffff811115610b9157610b906117bf565b5b6040519080825280601f01601f191660200182016040528015610bc35781602001600182028036833780820191505090505b509050600082602001820190505b600115610c26578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581610c1a57610c19611af3565b5b04945060008503610bd1575b819350505050919050565b610c48828460800151610f3b90919063ffffffff16565b610c5f818460800151610f3b90919063ffffffff16565b505050565b6000806004549050600181610c799190611a1c565b6004819055506000634042994660e01b60008087600001513089604001518760018c6080015160000151604051602401610cba989796959493929190611bdc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050610d2586838684610f60565b925050509392505050565b600033905090565b610d4061155b565b610d5085608001516101006110f5565b508385600001818152505082856020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185604001907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681525050849050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310610e46577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381610e3c57610e3b611af3565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310610e83576d04ee2d6d415b85acef81000000008381610e7957610e78611af3565b5b0492506020810190505b662386f26fc100008310610eb257662386f26fc100008381610ea857610ea7611af3565b5b0492506010810190505b6305f5e1008310610edb576305f5e1008381610ed157610ed0611af3565b5b0492506008810190505b6127108310610f00576127108381610ef657610ef5611af3565b5b0492506004810190505b60648310610f235760648381610f1957610f18611af3565b5b0492506002810190505b600a8310610f32576001810190505b80915050919050565b610f48826003835161115f565b610f5b81836112e490919063ffffffff16565b505050565b60003084604051602001610f75929190611d1a565b604051602081830303815290604052805190602001209050846005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550807fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634000aea08685856040518463ffffffff1660e01b815260040161106b93929190611d46565b6020604051808303816000875af115801561108a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ae9190611db0565b6110ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e490611e4f565b60405180910390fd5b949350505050565b6110fd6115c8565b600060208361110c9190611e6f565b146111385760208261111e9190611e6f565b602061112a9190611ea0565b826111359190611a1c565b91505b81836020018181525050604051808452600081528281016020016040525082905092915050565b60178167ffffffffffffffff1611611196576111908160058460ff16901b60ff16178461130690919063ffffffff16565b506112df565b60ff8167ffffffffffffffff16116111ec576111c5601860058460ff16901b178461130690919063ffffffff16565b506111e68167ffffffffffffffff166001856113269092919063ffffffff16565b506112de565b61ffff8167ffffffffffffffff16116112435761121c601960058460ff16901b178461130690919063ffffffff16565b5061123d8167ffffffffffffffff166002856113269092919063ffffffff16565b506112dd565b63ffffffff8167ffffffffffffffff161161129c57611275601a60058460ff16901b178461130690919063ffffffff16565b506112968167ffffffffffffffff166004856113269092919063ffffffff16565b506112dc565b6112b9601b60058460ff16901b178461130690919063ffffffff16565b506112da8167ffffffffffffffff166008856113269092919063ffffffff16565b505b5b5b5b505050565b6112ec6115c8565b6112fe83846000015151848551611348565b905092915050565b61130e6115c8565b61131e8384600001515184611437565b905092915050565b61132e6115c8565b61133f84856000015151858561148d565b90509392505050565b6113506115c8565b825182111561135e57600080fd5b8460200151828561136f9190611a1c565b11156113a4576113a38560026113948860200151888761138f9190611a1c565b61151b565b61139e9190611ed4565b611537565b5b6000808651805187602083010193508088870111156113c35787860182525b60208701925050505b6020841061140a57805182526020826113e59190611a1c565b91506020816113f49190611a1c565b90506020846114039190611ea0565b93506113cc565b60006001856020036101000a03905080198251168184511681811785525050508692505050949350505050565b61143f6115c8565b8360200151831061146557611464846002866020015161145f9190611ed4565b611537565b5b83518051602085830101848153818603611480576001820183525b5050508390509392505050565b6114956115c8565b846020015184836114a69190611a1c565b11156114ce576114cd85600286856114be9190611a1c565b6114c89190611ed4565b611537565b5b60006001836101006114e09190612049565b6114ea9190611ea0565b9050855183868201018583198251161781528151858801111561150d5784870182525b505085915050949350505050565b60008183111561152d57829050611531565b8190505b92915050565b60008260000151905061154a83836110f5565b5061155583826112e4565b50505050565b6040518060a0016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001600081526020016115c26115c8565b81525090565b604051806040016040528060608152602001600081525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b611609816115f6565b811461161457600080fd5b50565b60008135905061162681611600565b92915050565b600060208284031215611642576116416115ec565b5b600061165084828501611617565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061168482611659565b9050919050565b61169481611679565b82525050565b60006020820190506116af600083018461168b565b92915050565b60008115159050919050565b6116ca816116b5565b82525050565b60006020820190506116e560008301846116c1565b92915050565b6000819050919050565b6116fe816116eb565b811461170957600080fd5b50565b60008135905061171b816116f5565b92915050565b600060208284031215611737576117366115ec565b5b60006117458482850161170c565b91505092915050565b611757816115f6565b82525050565b6000602082019050611772600083018461174e565b92915050565b61178181611679565b811461178c57600080fd5b50565b60008135905061179e81611778565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6117f7826117ae565b810181811067ffffffffffffffff82111715611816576118156117bf565b5b80604052505050565b60006118296115e2565b905061183582826117ee565b919050565b600067ffffffffffffffff821115611855576118546117bf565b5b61185e826117ae565b9050602081019050919050565b82818337600083830152505050565b600061188d6118888461183a565b61181f565b9050828152602081018484840111156118a9576118a86117a9565b5b6118b484828561186b565b509392505050565b600082601f8301126118d1576118d06117a4565b5b81356118e184826020860161187a565b91505092915050565b60008060008060808587031215611904576119036115ec565b5b60006119128782880161178f565b94505060206119238782880161178f565b935050604085013567ffffffffffffffff811115611944576119436115f1565b5b611950878288016118bc565b925050606061196187828801611617565b91505092959194509250565b611976816116eb565b82525050565b6000602082019050611991600083018461196d565b92915050565b60006040820190506119ac600083018561168b565b6119b9602083018461174e565b9392505050565b6000602082840312156119d6576119d56115ec565b5b60006119e48482850161178f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611a27826115f6565b9150611a32836115f6565b9250828201905080821115611a4a57611a496119ed565b5b92915050565b600082825260208201905092915050565b7f53656e64657220616c72656164792068617320612070656e64696e672072657160008201527f7565737400000000000000000000000000000000000000000000000000000000602082015250565b6000611abd602483611a50565b9150611ac882611a61565b604082019050919050565b60006020820190508181036000830152611aec81611ab0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b5781611b22565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611b97578082015181840152602081019050611b7c565b60008484015250505050565b6000611bae82611b5d565b611bb88185611b68565b9350611bc8818560208601611b79565b611bd1816117ae565b840191505092915050565b600061010082019050611bf2600083018b61168b565b611bff602083018a61174e565b611c0c604083018961196d565b611c19606083018861168b565b611c266080830187611b4e565b611c3360a083018661174e565b611c4060c083018561174e565b81810360e0830152611c528184611ba3565b90509998505050505050505050565b6000819050919050565b6000611c86611c81611c7c84611659565b611c61565b611659565b9050919050565b6000611c9882611c6b565b9050919050565b6000611caa82611c8d565b9050919050565b60008160601b9050919050565b6000611cc982611cb1565b9050919050565b6000611cdb82611cbe565b9050919050565b611cf3611cee82611c9f565b611cd0565b82525050565b6000819050919050565b611d14611d0f826115f6565b611cf9565b82525050565b6000611d268285611ce2565b601482019150611d368284611d03565b6020820191508190509392505050565b6000606082019050611d5b600083018661168b565b611d68602083018561174e565b8181036040830152611d7a8184611ba3565b9050949350505050565b611d8d816116b5565b8114611d9857600080fd5b50565b600081519050611daa81611d84565b92915050565b600060208284031215611dc657611dc56115ec565b5b6000611dd484828501611d9b565b91505092915050565b7f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f726160008201527f636c650000000000000000000000000000000000000000000000000000000000602082015250565b6000611e39602383611a50565b9150611e4482611ddd565b604082019050919050565b60006020820190508181036000830152611e6881611e2c565b9050919050565b6000611e7a826115f6565b9150611e85836115f6565b925082611e9557611e94611af3565b5b828206905092915050565b6000611eab826115f6565b9150611eb6836115f6565b9250828203905081811115611ece57611ecd6119ed565b5b92915050565b6000611edf826115f6565b9150611eea836115f6565b9250828202611ef8816115f6565b91508282048414831517611f0f57611f0e6119ed565b5b5092915050565b60008160011c9050919050565b6000808291508390505b6001851115611f6d57808604811115611f4957611f486119ed565b5b6001851615611f585780820291505b8081029050611f6685611f16565b9450611f2d565b94509492505050565b600082611f865760019050612042565b81611f945760009050612042565b8160018114611faa5760028114611fb457611fe3565b6001915050612042565b60ff841115611fc657611fc56119ed565b5b8360020a915084821115611fdd57611fdc6119ed565b5b50612042565b5060208310610133831016604e8410600b84101617156120185782820a905083811115612013576120126119ed565b5b612042565b6120258484846001611f23565b9250905081840481111561203c5761203b6119ed565b5b81810290505b9392505050565b6000612054826115f6565b915061205f836115f6565b925061208c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611f76565b90509291505056fea264697066735822122081a3c3aca2ec52ec459268340c16503a18692cc69c79723f1bab2f57589683ad64736f6c63430008140033",OP0="0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80637dc0d1d0116100a2578063c2939d9711610071578063c2939d97146102cd578063db7b64a8146102eb578063ddca3f431461031b578063f2fde38b14610339578063ffbb6989146103555761010b565b80637dc0d1d0146102305780638753367f1461024e5780638da5cb5b1461027e5780639d8669851461029c5761010b565b80636352211e116100de5780636352211e146101bc578063715018a6146101ec578063761ca398146101f657806376f3dc84146102145761010b565b8063025e7c27146101105780632228adcc1461014057806353f9195e146101705780635508ff94146101a0575b600080fd5b61012a6004803603810190610125919061162c565b610385565b604051610137919061169a565b60405180910390f35b61015a6004803603810190610155919061162c565b6103b8565b60405161016791906116d0565b60405180910390f35b61018a6004803603810190610185919061162c565b6103e2565b60405161019791906116d0565b60405180910390f35b6101ba60048036038101906101b59190611721565b610402565b005b6101d660048036038101906101d1919061162c565b610500565b6040516101e3919061169a565b60405180910390f35b6101f461053d565b005b6101fe610551565b60405161020b919061175d565b60405180910390f35b61022e600480360381019061022991906118ea565b610557565b005b6102386105c5565b604051610245919061169a565b60405180910390f35b6102686004803603810190610263919061162c565b6105eb565b604051610275919061197c565b60405180910390f35b610286610810565b604051610293919061169a565b60405180910390f35b6102b660048036038101906102b19190611721565b61083a565b6040516102c4929190611997565b60405180910390f35b6102d561087e565b6040516102e2919061197c565b60405180910390f35b6103056004803603810190610300919061162c565b610884565b60405161031291906116d0565b60405180910390f35b6103236108cc565b604051610330919061175d565b60405180910390f35b610353600480360381019061034e91906119c0565b6108d2565b005b61036f600480360381019061036a91906119c0565b610958565b60405161037c91906116d0565b60405180910390f35b600b6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e600083815260200190815260200160002060009054906101000a900460ff169050919050565b600e6020528060005260406000206000915054906101000a900460ff1681565b6000600a6000838152602001908152602001600020905033600b60008360010154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600c60008282546104829190611a1c565b92505081905550600d60008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690555050565b6000600b600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610545610978565b61054f60006109ff565b565b600c5481565b61055f610978565b61056884610ac5565b82600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506105b282610b09565b6008819055508060098190555050505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080309050600d60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561067e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067590611ad3565b60405180910390fd5b600061069460085483635508ff9460e01b610b32565b90506106e86040518060400160405280600781526020017f746f6b656e4964000000000000000000000000000000000000000000000000008152506106d886610b63565b83610c319092919063ffffffff16565b6000610719600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600954610c64565b905060405180604001604052808473ffffffffffffffffffffffffffffffffffffffff16815260200186815250600a600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050506001600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550809350505050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600a6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b60085481565b6000806000801b905061089681610402565b6001600e600085815260200190815260200160002060006101000a81548160ff0219169083151502179055506001915050919050565b60095481565b6108da610978565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361094c5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610943919061169a565b60405180910390fd5b610955816109ff565b50565b600d6020528060005260406000206000915054906101000a900460ff1681565b610980610d30565b73ffffffffffffffffffffffffffffffffffffffff1661099e610810565b73ffffffffffffffffffffffffffffffffffffffff16146109fd576109c1610d30565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016109f4919061169a565b60405180910390fd5b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808290506000815103610b24576000801b915050610b2d565b60208301519150505b919050565b610b3a61155b565b610b4261155b565b610b5985858584610d38909392919063ffffffff16565b9150509392505050565b606060006001610b7284610de8565b01905060008167ffffffffffffffff811115610b9157610b906117bf565b5b6040519080825280601f01601f191660200182016040528015610bc35781602001600182028036833780820191505090505b509050600082602001820190505b600115610c26578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581610c1a57610c19611af3565b5b04945060008503610bd1575b819350505050919050565b610c48828460800151610f3b90919063ffffffff16565b610c5f818460800151610f3b90919063ffffffff16565b505050565b6000806004549050600181610c799190611a1c565b6004819055506000634042994660e01b60008087600001513089604001518760018c6080015160000151604051602401610cba989796959493929190611bdc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050610d2586838684610f60565b925050509392505050565b600033905090565b610d4061155b565b610d5085608001516101006110f5565b508385600001818152505082856020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185604001907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681525050849050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310610e46577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381610e3c57610e3b611af3565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310610e83576d04ee2d6d415b85acef81000000008381610e7957610e78611af3565b5b0492506020810190505b662386f26fc100008310610eb257662386f26fc100008381610ea857610ea7611af3565b5b0492506010810190505b6305f5e1008310610edb576305f5e1008381610ed157610ed0611af3565b5b0492506008810190505b6127108310610f00576127108381610ef657610ef5611af3565b5b0492506004810190505b60648310610f235760648381610f1957610f18611af3565b5b0492506002810190505b600a8310610f32576001810190505b80915050919050565b610f48826003835161115f565b610f5b81836112e490919063ffffffff16565b505050565b60003084604051602001610f75929190611d1a565b604051602081830303815290604052805190602001209050846005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550807fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634000aea08685856040518463ffffffff1660e01b815260040161106b93929190611d46565b6020604051808303816000875af115801561108a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ae9190611db0565b6110ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e490611e4f565b60405180910390fd5b949350505050565b6110fd6115c8565b600060208361110c9190611e6f565b146111385760208261111e9190611e6f565b602061112a9190611ea0565b826111359190611a1c565b91505b81836020018181525050604051808452600081528281016020016040525082905092915050565b60178167ffffffffffffffff1611611196576111908160058460ff16901b60ff16178461130690919063ffffffff16565b506112df565b60ff8167ffffffffffffffff16116111ec576111c5601860058460ff16901b178461130690919063ffffffff16565b506111e68167ffffffffffffffff166001856113269092919063ffffffff16565b506112de565b61ffff8167ffffffffffffffff16116112435761121c601960058460ff16901b178461130690919063ffffffff16565b5061123d8167ffffffffffffffff166002856113269092919063ffffffff16565b506112dd565b63ffffffff8167ffffffffffffffff161161129c57611275601a60058460ff16901b178461130690919063ffffffff16565b506112968167ffffffffffffffff166004856113269092919063ffffffff16565b506112dc565b6112b9601b60058460ff16901b178461130690919063ffffffff16565b506112da8167ffffffffffffffff166008856113269092919063ffffffff16565b505b5b5b5b505050565b6112ec6115c8565b6112fe83846000015151848551611348565b905092915050565b61130e6115c8565b61131e8384600001515184611437565b905092915050565b61132e6115c8565b61133f84856000015151858561148d565b90509392505050565b6113506115c8565b825182111561135e57600080fd5b8460200151828561136f9190611a1c565b11156113a4576113a38560026113948860200151888761138f9190611a1c565b61151b565b61139e9190611ed4565b611537565b5b6000808651805187602083010193508088870111156113c35787860182525b60208701925050505b6020841061140a57805182526020826113e59190611a1c565b91506020816113f49190611a1c565b90506020846114039190611ea0565b93506113cc565b60006001856020036101000a03905080198251168184511681811785525050508692505050949350505050565b61143f6115c8565b8360200151831061146557611464846002866020015161145f9190611ed4565b611537565b5b83518051602085830101848153818603611480576001820183525b5050508390509392505050565b6114956115c8565b846020015184836114a69190611a1c565b11156114ce576114cd85600286856114be9190611a1c565b6114c89190611ed4565b611537565b5b60006001836101006114e09190612049565b6114ea9190611ea0565b9050855183868201018583198251161781528151858801111561150d5784870182525b505085915050949350505050565b60008183111561152d57829050611531565b8190505b92915050565b60008260000151905061154a83836110f5565b5061155583826112e4565b50505050565b6040518060a0016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001600081526020016115c26115c8565b81525090565b604051806040016040528060608152602001600081525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b611609816115f6565b811461161457600080fd5b50565b60008135905061162681611600565b92915050565b600060208284031215611642576116416115ec565b5b600061165084828501611617565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061168482611659565b9050919050565b61169481611679565b82525050565b60006020820190506116af600083018461168b565b92915050565b60008115159050919050565b6116ca816116b5565b82525050565b60006020820190506116e560008301846116c1565b92915050565b6000819050919050565b6116fe816116eb565b811461170957600080fd5b50565b60008135905061171b816116f5565b92915050565b600060208284031215611737576117366115ec565b5b60006117458482850161170c565b91505092915050565b611757816115f6565b82525050565b6000602082019050611772600083018461174e565b92915050565b61178181611679565b811461178c57600080fd5b50565b60008135905061179e81611778565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6117f7826117ae565b810181811067ffffffffffffffff82111715611816576118156117bf565b5b80604052505050565b60006118296115e2565b905061183582826117ee565b919050565b600067ffffffffffffffff821115611855576118546117bf565b5b61185e826117ae565b9050602081019050919050565b82818337600083830152505050565b600061188d6118888461183a565b61181f565b9050828152602081018484840111156118a9576118a86117a9565b5b6118b484828561186b565b509392505050565b600082601f8301126118d1576118d06117a4565b5b81356118e184826020860161187a565b91505092915050565b60008060008060808587031215611904576119036115ec565b5b60006119128782880161178f565b94505060206119238782880161178f565b935050604085013567ffffffffffffffff811115611944576119436115f1565b5b611950878288016118bc565b925050606061196187828801611617565b91505092959194509250565b611976816116eb565b82525050565b6000602082019050611991600083018461196d565b92915050565b60006040820190506119ac600083018561168b565b6119b9602083018461174e565b9392505050565b6000602082840312156119d6576119d56115ec565b5b60006119e48482850161178f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611a27826115f6565b9150611a32836115f6565b9250828201905080821115611a4a57611a496119ed565b5b92915050565b600082825260208201905092915050565b7f53656e64657220616c72656164792068617320612070656e64696e672072657160008201527f7565737400000000000000000000000000000000000000000000000000000000602082015250565b6000611abd602483611a50565b9150611ac882611a61565b604082019050919050565b60006020820190508181036000830152611aec81611ab0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b5781611b22565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611b97578082015181840152602081019050611b7c565b60008484015250505050565b6000611bae82611b5d565b611bb88185611b68565b9350611bc8818560208601611b79565b611bd1816117ae565b840191505092915050565b600061010082019050611bf2600083018b61168b565b611bff602083018a61174e565b611c0c604083018961196d565b611c19606083018861168b565b611c266080830187611b4e565b611c3360a083018661174e565b611c4060c083018561174e565b81810360e0830152611c528184611ba3565b90509998505050505050505050565b6000819050919050565b6000611c86611c81611c7c84611659565b611c61565b611659565b9050919050565b6000611c9882611c6b565b9050919050565b6000611caa82611c8d565b9050919050565b60008160601b9050919050565b6000611cc982611cb1565b9050919050565b6000611cdb82611cbe565b9050919050565b611cf3611cee82611c9f565b611cd0565b82525050565b6000819050919050565b611d14611d0f826115f6565b611cf9565b82525050565b6000611d268285611ce2565b601482019150611d368284611d03565b6020820191508190509392505050565b6000606082019050611d5b600083018661168b565b611d68602083018561174e565b8181036040830152611d7a8184611ba3565b9050949350505050565b611d8d816116b5565b8114611d9857600080fd5b50565b600081519050611daa81611d84565b92915050565b600060208284031215611dc657611dc56115ec565b5b6000611dd484828501611d9b565b91505092915050565b7f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f726160008201527f636c650000000000000000000000000000000000000000000000000000000000602082015250565b6000611e39602383611a50565b9150611e4482611ddd565b604082019050919050565b60006020820190508181036000830152611e6881611e2c565b9050919050565b6000611e7a826115f6565b9150611e85836115f6565b925082611e9557611e94611af3565b5b828206905092915050565b6000611eab826115f6565b9150611eb6836115f6565b9250828203905081811115611ece57611ecd6119ed565b5b92915050565b6000611edf826115f6565b9150611eea836115f6565b9250828202611ef8816115f6565b91508282048414831517611f0f57611f0e6119ed565b5b5092915050565b60008160011c9050919050565b6000808291508390505b6001851115611f6d57808604811115611f4957611f486119ed565b5b6001851615611f585780820291505b8081029050611f6685611f16565b9450611f2d565b94509492505050565b600082611f865760019050612042565b81611f945760009050612042565b8160018114611faa5760028114611fb457611fe3565b6001915050612042565b60ff841115611fc657611fc56119ed565b5b8360020a915084821115611fdd57611fdc6119ed565b5b50612042565b5060208310610133831016604e8410600b84101617156120185782820a905083811115612013576120126119ed565b5b612042565b6120258484846001611f23565b9250905081840481111561203c5761203b6119ed565b5b81810290505b9392505050565b6000612054826115f6565b915061205f836115f6565b925061208c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611f76565b90509291505056fea264697066735822122081a3c3aca2ec52ec459268340c16503a18692cc69c79723f1bab2f57589683ad64736f6c63430008140033",IP0={},NP0={},RP0={_format:kP0,contractName:_P0,sourceName:SP0,abi:TP0,bytecode:PP0,deployedBytecode:OP0,linkReferences:IP0,deployedLinkReferences:NP0};function MP0(){const u=At(),[e,t]=w.useState(void 0),[n,r]=w.useState(void 0),[i,a]=w.useState(!1),{config:o}=jB({address:LM,abi:fz.abi,functionName:"mint",args:[u.address,n,e,i,u.address],enabled:!!(u.address&&e&&n&&i!=null&&u.address)}),{data:s,write:f}=MB(o),{config:l}=jB({address:Mx0,abi:RP0.abi,functionName:"Reserve",args:[n],enabled:!!n}),{data:c,write:E}=MB(l),{isLoading:d,isSuccess:p}=zB({hash:c==null?void 0:c.hash}),{isLoading:h,isSuccess:g}=zB({hash:s==null?void 0:s.hash});return w.useEffect(()=>{p&&a(!0)},[p]),w.useEffect(()=>{if(e){const b=aT0(e);r(b)}},[e]),f0.jsxs(If,{container:!0,justifyContent:"center",spacing:3,padding:7,direction:"column",alignItems:"center",children:[f0.jsx(xP0,{cid:e,setCid:t}),h&&f0.jsx(VC,{children:"Loading...."}),g&&f0.jsxs("div",{children:["Successfully minted your NFT!",f0.jsx("div",{children:f0.jsx("a",{href:`https://mumbai.polygonscan.com/tx/${s==null?void 0:s.hash}`,children:"Polygon Scan"})})]}),e&&f0.jsx(VC,{children:e}),f0.jsx(rf,{disabled:e==null||!p,onClick:()=>{console.log("Trying to mint..."),f==null||f()},children:"Mint"}),f0.jsx(rf,{disabled:e==null||d,onClick:()=>{console.log("Trying to Reserve..."),E==null||E()},children:"Reserve"})]})}function jP0(){return f0.jsxs(xW,{children:[f0.jsx(wx0,{}),f0.jsxs(DW,{children:[f0.jsx(H3,{path:"/real-token/Explore",element:f0.jsx(qS0,{})}),f0.jsx(H3,{path:"/real-token/Explore/:NFTId",element:f0.jsx(HS0,{})}),f0.jsx(H3,{path:"/real-token/Profile/:ProfileId",element:f0.jsx(fT0,{})}),f0.jsx(H3,{path:"/real-token/Mint",element:f0.jsx(MP0,{})})]})]})}function zP0(){return f0.jsx(NU,{children:f0.jsx(jP0,{})})}const LP0=Um({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},error:{main:_a.A400}}});function $P0(){return function(u){return u.rpcUrls.public.http[0]?{chain:u,rpcUrls:u.rpcUrls.public}:null}}const{chains:Pz,publicClient:UP0}=it0([qe0],[$P0()]),{connectors:WP0}=cw0({appName:"My RainbowKit App",projectId:"9d80089c30635ff84b5339d993d63fa1",chains:Pz}),qP0=qt0({autoConnect:!0,connectors:WP0,publicClient:UP0});Rp.createRoot(document.getElementById("root")).render(f0.jsxs(AK,{theme:LP0,children:[f0.jsx(sx0,{}),f0.jsx(Ht0,{config:qP0,children:f0.jsx(vg0,{chains:Pz,children:f0.jsx(zP0,{})})})]}));export{fd as $,KR as A,ct as B,pO0 as C,_O0 as D,KO0 as E,sO0 as F,bO0 as G,DO0 as H,FO0 as I,lO0 as J,iO0 as K,aO0 as L,dO0 as M,xi as N,AO0 as O,gO0 as P,NO0 as Q,qB0 as R,kO0 as S,bn as T,Tf as U,nO0 as V,mO0 as W,GO0 as X,hO0 as Y,HO0 as Z,hc as _,eZ as a,CO0 as a0,ld as a1,tA as a2,QR as a3,cO0 as a4,EO0 as a5,rO0 as a6,vO0 as a7,BO0 as a8,cd as a9,L0 as aA,Fy0 as aB,zv0 as aC,UR as aD,dB0 as aE,Zg as aF,pB0 as aG,hB0 as aH,mB0 as aI,$R as aJ,AB0 as aK,BB0 as aL,wB0 as aM,kB0 as aN,SB0 as aO,Iv0 as aP,WR as aQ,MB0 as aR,jB0 as aS,OB0 as aT,RB0 as aU,Th0 as aV,jh0 as aW,fO0 as aa,nA as ab,wO0 as ac,yO0 as ad,xO0 as ae,VO0 as af,OO0 as ag,PO0 as ah,xF0 as ai,WO0 as aj,RO0 as ak,kF0 as al,TO0 as am,LO0 as an,MO0 as ao,$O0 as ap,qO0 as aq,jO0 as ar,zO0 as as,UO0 as at,IO0 as au,bF0 as av,YR as aw,Cp as ax,ZP0 as ay,XP0 as az,tZ as b,nZ as c,QP as d,t_0 as e,V2 as f,WY as g,mo as h,hM as i,$0 as j,td as k,HP as l,Pn as m,hl as n,kD as o,x0 as p,_1 as q,sd as r,bo as s,zn as t,SO0 as u,uO0 as v,Un as w,eO0 as x,tO0 as y,oO0 as z}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index.es-fegywn_p.js","assets/http-gDbOmFlM.js","assets/index-Y_z407jB.js","assets/hooks.module-o1hAt1ko.js","assets/index-_MKzDFaS.js","assets/browser-L9xZ4E6G.js"] + __vite__mapDeps.viteFileDeps = ["assets/index.es-tEmxzH1T.js","assets/http-EUccMvXZ.js","assets/index-ynIz-0vY.js","assets/hooks.module-o1hAt1ko.js","assets/index-6napdEcA.js","assets/browser-RXMF2uUL.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/index-3VXKPAHU.js b/assets/index-3VXKPAHU.js new file mode 100644 index 0000000..44b8b42 --- /dev/null +++ b/assets/index-3VXKPAHU.js @@ -0,0 +1,7 @@ +import{aA as fe}from"./index-0aC6Xlgc.js";const me=Symbol(),ee=Object.getPrototypeOf,Q=new WeakMap,he=e=>e&&(Q.has(e)?Q.get(e):ee(e)===Object.prototype||ee(e)===Array.prototype),Ie=e=>he(e)&&e[me]||null,te=(e,t=!0)=>{Q.set(e,t)};var F={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_MUMBAI_RPC:"https://polygon-mumbai.g.alchemy.com/v2/BmepUpwxd86PJSuisn7P4f3lZJSqcAUt",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",VITE_PINATA_GET_URL:"https://green-enthusiastic-mite-198.mypinata.cloud/ipfs/",VITE_PINATA_PIN_FILE_URL:"https://api.pinata.cloud/pinning/pinFileToIPFS",VITE_PINATA_PIN_JSON_URL:"https://api.pinata.cloud/pinning/pinJSONToIPFS",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const B=e=>typeof e=="object"&&e!==null,A=new WeakMap,Z=new WeakSet,ge=(e=Object.is,t=(n,I)=>new Proxy(n,I),s=n=>B(n)&&!Z.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,I,v=r)=>{const b=l.get(n);if((b==null?void 0:b[0])===I)return b[1];const y=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return te(y,!0),l.set(n,[I,y]),Reflect.ownKeys(n).forEach(_=>{if(Object.getOwnPropertyDescriptor(y,_))return;const E=Reflect.get(n,_),M={value:E,enumerable:!0,configurable:!0};if(Z.has(E))te(E,!1);else if(E instanceof Promise)delete M.value,M.get=()=>v(E);else if(A.has(E)){const[g,Y]=A.get(E);M.value=c(g,Y(),v)}Object.defineProperty(y,_,M)}),Object.preventExtensions(y)},m=new WeakMap,f=[1,1],L=n=>{if(!B(n))throw new Error("object required");const I=m.get(n);if(I)return I;let v=f[0];const b=new Set,y=(a,i=++f[0])=>{v!==i&&(v=i,b.forEach(o=>o(a,i)))};let _=f[1];const E=(a=++f[1])=>(_!==a&&!b.size&&(_=a,g.forEach(([i])=>{const o=i[1](a);o>v&&(v=o)})),v),M=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],y(h,o)},g=new Map,Y=(a,i)=>{if((F?"production":void 0)!=="production"&&g.has(a))throw new Error("prop listener already exists");if(b.size){const o=i[3](M(a));g.set(a,[i,o])}else g.set(a,[i])},q=a=>{var i;const o=g.get(a);o&&(g.delete(a),(i=o[1])==null||i.call(o))},ue=a=>(b.add(a),b.size===1&&g.forEach(([o,h],N)=>{if((F?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const k=o[3](M(N));g.set(N,[o,k])}),()=>{b.delete(a),b.size===0&&g.forEach(([o,h],N)=>{h&&(h(),g.set(N,[o]))})}),z=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),R=t(z,{deleteProperty(a,i){const o=Reflect.get(a,i);q(i);const h=Reflect.deleteProperty(a,i);return h&&y(["delete",[i],o]),h},set(a,i,o,h){const N=Reflect.has(a,i),k=Reflect.get(a,i,h);if(N&&(e(k,o)||m.has(o)&&e(k,m.get(o))))return!0;q(i),B(o)&&(o=Ie(o)||o);let x=o;if(o instanceof Promise)o.then(j=>{o.status="fulfilled",o.value=j,y(["resolve",[i],j])}).catch(j=>{o.status="rejected",o.reason=j,y(["reject",[i],j])});else{!A.has(o)&&s(o)&&(x=L(o));const j=!Z.has(x)&&A.get(x);j&&Y(i,j)}return Reflect.set(a,i,x,h),y(["set",[i],o,k]),!0}});m.set(n,R);const pe=[z,E,c,ue];return A.set(R,pe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&(R[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(z,a,i)}),R})=>[L,A,Z,e,t,s,r,l,c,m,f],[be]=ge();function C(e={}){return be(e)}function P(e,t,s){const r=A.get(e);(F?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(I=>{if(c.push(I),s){t(c.splice(0));return}l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ye(e,t){const s=A.get(e);(F?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=C({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),de={state:d,subscribe(e){return P(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},p={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return p.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return p.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(p.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!p.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(p.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(p.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=de.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),u=C({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ve={state:u,subscribe(e){return P(u.events,()=>e(ye(u.events[u.events.length-1])))},initialize(){u.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(u.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){u.connectedWalletId=e},click(e){if(u.enabled){const t={type:"CLICK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},track(e){if(u.enabled){const t={type:"TRACK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},view(e){if(u.enabled){const t={type:"VIEW",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}}},O=C({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),w={state:O,subscribe(e){return P(O,()=>e(O))},setChains(e){O.chains=e},setWalletConnectUri(e){O.walletConnectUri=e},setIsCustomDesktop(e){O.isCustomDesktop=e},setIsCustomMobile(e){O.isCustomMobile=e},setIsDataLoaded(e){O.isDataLoaded=e},setIsUiLoaded(e){O.isUiLoaded=e},setIsAuth(e){O.isAuth=e}},J=C({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),D={state:J,subscribe(e){return P(J,()=>e(J))},setConfig(e){var t,s;ve.initialize(),w.setChains(e.chains),w.setIsAuth(!!e.enableAuthMode),w.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),w.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),p.setModalVersionInStorage(),Object.assign(J,e)}};var Oe=Object.defineProperty,se=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ne=(e,t,s)=>t in e?Oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Le=(e,t)=>{for(var s in t||(t={}))We.call(t,s)&&ne(e,s,t[s]);if(se)for(var s of se(t))Ee.call(t,s)&&ne(e,s,t[s]);return e};const K="https://explorer-api.walletconnect.com",H="wcm",X="js-2.6.2";async function $(e,t){const s=Le({sdkType:H,sdkVersion:X},t),r=new URL(e,K);return r.searchParams.append("projectId",D.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const U={async getDesktopListings(e){return $("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return $("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return $("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return $("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${K}/w3m/v1/getWalletImage/${e}?projectId=${D.state.projectId}&sdkType=${H}&sdkVersion=${X}`},getAssetImageUrl(e){return`${K}/w3m/v1/getAssetImage/${e}?projectId=${D.state.projectId}&sdkType=${H}&sdkVersion=${X}`}};var je=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Me=(e,t)=>{for(var s in t||(t={}))Ae.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Ce.call(t,s)&&re(e,s,t[s]);return e};const ie=p.isMobile(),W=C({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Ve={state:W,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=D.state;if(e==="NONE"||t==="ALL"&&!e)return W.recomendedWallets;if(p.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await U.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),L=e.indexOf(m.id);return f-L}),W.recomendedWallets=l}else{const{chains:s,isAuth:r}=w.state,l=s==null?void 0:s.join(","),c=p.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:p.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=ie?await U.getMobileListings(m):await U.getDesktopListings(m);W.recomendedWallets=Object.values(f)}return W.recomendedWallets},async getWallets(e){const t=Me({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=D.state,{recomendedWallets:l}=W;if(r==="ALL")return W.wallets;l.length?t.excludedIds=l.map(v=>v.id).join(","):p.isArray(s)&&(t.excludedIds=s.join(",")),p.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),w.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:L}=ie?await U.getMobileListings(t):await U.getDesktopListings(t),n=Object.values(f),I=m?"search":"wallets";return W[I]={listings:[...W[I].listings,...n],total:L,page:c??1},{listings:n,total:L}},getWalletImageUrl(e){return U.getWalletImageUrl(e)},getAssetImageUrl(e){return U.getAssetImageUrl(e)},resetSearch(){W.search={listings:[],total:0,page:1}}},T=C({open:!1}),G={state:T,subscribe(e){return P(T,()=>e(T))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=w.state;if(p.removeWalletConnectDeepLink(),w.setWalletConnectUri(e==null?void 0:e.uri),w.setChains(e==null?void 0:e.chains),de.reset("ConnectWallet"),s&&r)T.open=!0,t();else{const l=setInterval(()=>{const c=w.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),T.open=!0,t())},200)}})},close(){T.open=!1}};var Ue=Object.defineProperty,ae=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,le=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,_e=(e,t)=>{for(var s in t||(t={}))Se.call(t,s)&&le(e,s,t[s]);if(ae)for(var s of ae(t))Pe.call(t,s)&&le(e,s,t[s]);return e};function Ne(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const V=C({themeMode:Ne()?"dark":"light"}),ce={state:V,subscribe(e){return P(V,()=>e(V))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(V.themeMode=t),s&&(V.themeVariables=_e({},s))}},S=C({open:!1,message:"",variant:"success"}),Re={state:S,subscribe(e){return P(S,()=>e(S))},openToast(e,t){S.open=!0,S.message=e,S.variant=t},closeToast(){S.open=!1}};class Te{constructor(t){this.openModal=G.open,this.closeModal=G.close,this.subscribeModal=G.subscribe,this.setTheme=ce.setThemeConfig,ce.setThemeConfig(t),D.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await fe(()=>import("./index-pUtMfZxn.js"),__vite__mapDeps([0,1,2,3]));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),w.setIsUiLoaded(!0)}}}const xe=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:Te},Symbol.toStringTag,{value:"Module"}));export{ve as R,de as T,p as a,xe as i,ce as n,Re as o,w as p,G as s,Ve as t,D as y}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/index-pUtMfZxn.js","assets/browser-RXMF2uUL.js","assets/index-0aC6Xlgc.js","assets/index-bI5pgBhQ.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} \ No newline at end of file diff --git a/assets/index-_MKzDFaS.js b/assets/index-6napdEcA.js similarity index 99% rename from assets/index-_MKzDFaS.js rename to assets/index-6napdEcA.js index c27f5a5..f4e9b9b 100644 --- a/assets/index-_MKzDFaS.js +++ b/assets/index-6napdEcA.js @@ -1,4 +1,4 @@ -import{q as pe,aD as Wn,aE as Fn,aF as Hn,aG as zn,aH as Qn,aI as Jn,aJ as Vn,aK as Gn,aL as Yn,aM as Kn,aN as Zn,aO as Xn,aP as er,aQ as tr,aR as nr,aS as rr,aT as or,aU as ir,f as et,E as tt}from"./index-Gnz09uoc.js";import{a as sr,s as ar,m as cr,c as Q,I as lr,f as $e,J as je,H as ur}from"./http-gDbOmFlM.js";import{b as dr}from"./browser-L9xZ4E6G.js";import{b as A,l as S,y as x,g as $,$ as O,q as K,B as hr,E as fr,a as ee,c as ge,d as me,V as nt,s as rt,_ as ot,A as it,F as st,T as at,e as ct,x as lt,f as ut,i as dt,P as _r}from"./hooks.module-o1hAt1ko.js";const ae="Session currently connected",q="Session currently disconnected",pr="Session Rejected",gr="Missing JSON RPC response",mr='JSON-RPC success response must include "result" field',wr='JSON-RPC error response must include "error" field',yr='JSON RPC request must have valid "method" value',br='JSON RPC request must have valid "id" value',vr="Missing one of the required parameters: bridge / uri / session",Be="JSON RPC response format is invalid",Er="URI format is invalid",Sr="QRCode Modal not provided",We="User close QRCode Modal",Cr=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],kr=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],we=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...kr],ue="WALLETCONNECT_DEEPLINK_CHOICE",xr={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"};var ht=ye;ye.strict=ft;ye.loose=_t;var Ir=Object.prototype.toString,Rr={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function ye(t){return ft(t)||_t(t)}function ft(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function _t(t){return Rr[Ir.call(t)]}const Tr=pe(ht);var Or=ht.strict,Nr=function(e){if(Or(e)){var n=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(n=n.slice(e.byteOffset,e.byteOffset+e.byteLength)),n}else return Buffer.from(e)};const Mr=pe(Nr),be="hex",ve="utf8",Lr="binary",qr="buffer",Ar="array",Ur="typed-array",Pr="array-buffer",te="0";function j(t){return new Uint8Array(t)}function Ee(t,e=!1){const n=t.toString(be);return e?J(n):n}function Se(t){return t.toString(ve)}function pt(t){return t.readUIntBE(0,t.length)}function W(t){return Mr(t)}function N(t,e=!1){return Ee(W(t),e)}function gt(t){return Se(W(t))}function mt(t){return pt(W(t))}function Ce(t){return Buffer.from(B(t),be)}function M(t){return j(Ce(t))}function Dr(t){return Se(Ce(t))}function $r(t){return mt(M(t))}function ke(t){return Buffer.from(t,ve)}function wt(t){return j(ke(t))}function jr(t,e=!1){return Ee(ke(t),e)}function Br(t){const e=parseInt(t,10);return io(oo(e),"Number can only safely store up to 53 bits"),e}function Wr(t){return Qr(xe(t))}function Fr(t){return Ie(xe(t))}function Hr(t,e){return Jr(xe(t),e)}function zr(t){return`${t}`}function xe(t){const e=(t>>>0).toString(2);return Te(e)}function Qr(t){return W(Ie(t))}function Ie(t){return new Uint8Array(Xr(t).map(e=>parseInt(e,2)))}function Jr(t,e){return N(Ie(t),e)}function Vr(t){return!(typeof t!="string"||!new RegExp(/^[01]+$/).test(t)||t.length%8!==0)}function yt(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}function ne(t){return Buffer.isBuffer(t)}function Re(t){return Tr.strict(t)&&!ne(t)}function bt(t){return!Re(t)&&!ne(t)&&typeof t.byteLength<"u"}function Gr(t){return ne(t)?qr:Re(t)?Ur:bt(t)?Pr:Array.isArray(t)?Ar:typeof t}function Yr(t){return Vr(t)?Lr:yt(t)?be:ve}function Kr(...t){return Buffer.concat(t)}function vt(...t){let e=[];return t.forEach(n=>e=e.concat(Array.from(n))),new Uint8Array([...e])}function Zr(t,e=8){const n=t%e;return n?(t-n)/e*e+e:t}function Xr(t,e=8){const n=Te(t).match(new RegExp(`.{${e}}`,"gi"));return Array.from(n||[])}function Te(t,e=8,n=te){return eo(t,Zr(t.length,e),n)}function eo(t,e,n=te){return so(t,e,!0,n)}function B(t){return t.replace(/^0x/,"")}function J(t){return t.startsWith("0x")?t:`0x${t}`}function to(t){return t=B(t),t=Te(t,2),t&&(t=J(t)),t}function no(t){const e=t.startsWith("0x");return t=B(t),t=t.startsWith(te)?t.substring(1):t,e?J(t):t}function ro(t){return typeof t>"u"}function oo(t){return!ro(t)}function io(t,e){if(!t)throw new Error(e)}function so(t,e,n,r=te){const o=e-t.length;let i=t;if(o>0){const d=r.repeat(o);i=n?d+t:t+d}return i}function Z(t){return W(new Uint8Array(t))}function ao(t){return gt(new Uint8Array(t))}function Et(t,e){return N(new Uint8Array(t),!e)}function co(t){return mt(new Uint8Array(t))}function lo(...t){return M(t.map(e=>N(new Uint8Array(e))).join("")).buffer}function St(t){return j(t).buffer}function uo(t){return Se(t)}function ho(t,e){return Ee(t,!e)}function fo(t){return pt(t)}function _o(...t){return Kr(...t)}function po(t){return wt(t).buffer}function go(t){return ke(t)}function mo(t,e){return jr(t,!e)}function wo(t){return Br(t)}function yo(t){return Ce(t)}function Ct(t){return M(t).buffer}function bo(t){return Dr(t)}function vo(t){return $r(t)}function Eo(t){return Wr(t)}function So(t){return Fr(t).buffer}function Co(t){return zr(t)}function kt(t,e){return Hr(Number(t),!e)}const ko=zn,xo=Qn,Io=Jn,Ro=Vn,To=Gn,xt=Hn,Oo=Yn,It=Wn,No=Kn,Mo=Zn,Lo=Xn,re=Fn;function oe(t){return er(t)}function ie(){const t=oe();return t&&t.os?t.os:void 0}function Rt(){const t=ie();return t?t.toLowerCase().includes("android"):!1}function Tt(){const t=ie();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Ot(){return ie()?Rt()||Tt():!1}function Nt(){const t=oe();return t&&t.name?t.name.toLowerCase()==="node":!1}function Mt(){return!Nt()&&!!xt()}const Lt=sr,qt=ar;function Oe(t,e){const n=qt(e),r=re();r&&r.setItem(t,n)}function Ne(t){let e=null,n=null;const r=re();return r&&(n=r.getItem(t)),e=n&&Lt(n),e}function Me(t){const e=re();e&&e.removeItem(t)}function de(){return tr()}function qo(t){return to(t)}function Ao(t){return J(t)}function Uo(t){return B(t)}function Po(t){return no(J(t))}const At=cr;function Y(){return((e,n)=>{for(n=e="";e++<36;n+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return n})()}function Do(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function Ut(t,e){let n;const r=xr[t];return r&&(n=`https://${r}.infura.io/v3/${e}`),n}function Pt(t,e){let n;const r=Ut(t,e.infuraId);return e.custom&&e.custom[t]?n=e.custom[t]:r&&(n=r),n}function $o(t,e){const n=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${n}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function jo(t){const e=t.href.split("?")[0];Oe(ue,Object.assign(Object.assign({},t),{href:e}))}function Dt(t,e){return t.filter(n=>n.name.toLowerCase().includes(e.toLowerCase()))[0]}function Bo(t,e){let n=t;return e&&(n=e.map(r=>Dt(t,r)).filter(Boolean)),n}function Wo(t,e){return async(...r)=>new Promise((o,i)=>{const d=(f,p)=>{(f===null||typeof f>"u")&&i(f),o(p)};t.apply(e,[...r,d])})}function $t(t){const e=t.message||"Failed or Rejected Request";let n=-32e3;if(t&&!t.code)switch(e){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3;break}const r={code:n,message:e};return t.data&&(r.data=t.data),r}const jt="https://registry.walletconnect.com";function Fo(){return jt+"/api/v2/wallets"}function Ho(){return jt+"/api/v2/dapps"}function Bt(t,e="mobile"){var n;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(n=t.image_url.sm)!==null&&n!==void 0?n:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function zo(t,e="mobile"){return Object.values(t).filter(n=>!!n[e].universal||!!n[e].native).map(n=>Bt(n,e))}var Le={};(function(t){const e=or,n=ir,r=nr,o=rr,i=s=>s==null;function d(s){switch(s.arrayFormat){case"index":return a=>(u,c)=>{const h=u.length;return c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[",h,"]"].join("")]:[...u,[g(a,s),"[",g(h,s),"]=",g(c,s)].join("")]};case"bracket":return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[]"].join("")]:[...u,[g(a,s),"[]=",g(c,s)].join("")];case"comma":case"separator":return a=>(u,c)=>c==null||c.length===0?u:u.length===0?[[g(a,s),"=",g(c,s)].join("")]:[[u,g(c,s)].join(s.arrayFormatSeparator)];default:return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,g(a,s)]:[...u,[g(a,s),"=",g(c,s)].join("")]}}function f(s){let a;switch(s.arrayFormat){case"index":return(u,c,h)=>{if(a=/\[(\d*)\]$/.exec(u),u=u.replace(/\[\d*\]$/,""),!a){h[u]=c;return}h[u]===void 0&&(h[u]={}),h[u][a[1]]=c};case"bracket":return(u,c,h)=>{if(a=/(\[\])$/.exec(u),u=u.replace(/\[\]$/,""),!a){h[u]=c;return}if(h[u]===void 0){h[u]=[c];return}h[u]=[].concat(h[u],c)};case"comma":case"separator":return(u,c,h)=>{const m=typeof c=="string"&&c.includes(s.arrayFormatSeparator),_=typeof c=="string"&&!m&&w(c,s).includes(s.arrayFormatSeparator);c=_?w(c,s):c;const v=m||_?c.split(s.arrayFormatSeparator).map(T=>w(T,s)):c===null?c:w(c,s);h[u]=v};default:return(u,c,h)=>{if(h[u]===void 0){h[u]=c;return}h[u]=[].concat(h[u],c)}}}function p(s){if(typeof s!="string"||s.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function g(s,a){return a.encode?a.strict?e(s):encodeURIComponent(s):s}function w(s,a){return a.decode?n(s):s}function y(s){return Array.isArray(s)?s.sort():typeof s=="object"?y(Object.keys(s)).sort((a,u)=>Number(a)-Number(u)).map(a=>s[a]):s}function b(s){const a=s.indexOf("#");return a!==-1&&(s=s.slice(0,a)),s}function C(s){let a="";const u=s.indexOf("#");return u!==-1&&(a=s.slice(u)),a}function k(s){s=b(s);const a=s.indexOf("?");return a===-1?"":s.slice(a+1)}function I(s,a){return a.parseNumbers&&!Number.isNaN(Number(s))&&typeof s=="string"&&s.trim()!==""?s=Number(s):a.parseBooleans&&s!==null&&(s.toLowerCase()==="true"||s.toLowerCase()==="false")&&(s=s.toLowerCase()==="true"),s}function R(s,a){a=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},a),p(a.arrayFormatSeparator);const u=f(a),c=Object.create(null);if(typeof s!="string"||(s=s.trim().replace(/^[?#&]/,""),!s))return c;for(const h of s.split("&")){if(h==="")continue;let[m,_]=r(a.decode?h.replace(/\+/g," "):h,"=");_=_===void 0?null:["comma","separator"].includes(a.arrayFormat)?_:w(_,a),u(w(m,a),_,c)}for(const h of Object.keys(c)){const m=c[h];if(typeof m=="object"&&m!==null)for(const _ of Object.keys(m))m[_]=I(m[_],a);else c[h]=I(m,a)}return a.sort===!1?c:(a.sort===!0?Object.keys(c).sort():Object.keys(c).sort(a.sort)).reduce((h,m)=>{const _=c[m];return _&&typeof _=="object"&&!Array.isArray(_)?h[m]=y(_):h[m]=_,h},Object.create(null))}t.extract=k,t.parse=R,t.stringify=(s,a)=>{if(!s)return"";a=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},a),p(a.arrayFormatSeparator);const u=_=>a.skipNull&&i(s[_])||a.skipEmptyString&&s[_]==="",c=d(a),h={};for(const _ of Object.keys(s))u(_)||(h[_]=s[_]);const m=Object.keys(h);return a.sort!==!1&&m.sort(a.sort),m.map(_=>{const v=s[_];return v===void 0?"":v===null?g(_,a):Array.isArray(v)?v.reduce(c(_),[]).join("&"):g(_,a)+"="+g(v,a)}).filter(_=>_.length>0).join("&")},t.parseUrl=(s,a)=>{a=Object.assign({decode:!0},a);const[u,c]=r(s,"#");return Object.assign({url:u.split("?")[0]||"",query:R(k(s),a)},a&&a.parseFragmentIdentifier&&c?{fragmentIdentifier:w(c,a)}:{})},t.stringifyUrl=(s,a)=>{a=Object.assign({encode:!0,strict:!0},a);const u=b(s.url).split("?")[0]||"",c=t.extract(s.url),h=t.parse(c,{sort:!1}),m=Object.assign(h,s.query);let _=t.stringify(m,a);_&&(_=`?${_}`);let v=C(s.url);return s.fragmentIdentifier&&(v=`#${g(s.fragmentIdentifier,a)}`),`${u}${_}${v}`},t.pick=(s,a,u)=>{u=Object.assign({parseFragmentIdentifier:!0},u);const{url:c,query:h,fragmentIdentifier:m}=t.parseUrl(s,u);return t.stringifyUrl({url:c,query:o(h,a),fragmentIdentifier:m},u)},t.exclude=(s,a,u)=>{const c=Array.isArray(a)?h=>!a.includes(h):(h,m)=>!a(h,m);return t.pick(s,c,u)}})(Le);function Wt(t){const e=t.indexOf("?")!==-1?t.indexOf("?"):void 0;return typeof e<"u"?t.substr(e):""}function Ft(t,e){let n=qe(t);return n=Object.assign(Object.assign({},n),e),t=Ht(n),t}function qe(t){return Le.parse(t)}function Ht(t){return Le.stringify(t)}function zt(t){return typeof t.bridge<"u"}function Qt(t){const e=t.indexOf(":"),n=t.indexOf("?")!==-1?t.indexOf("?"):void 0,r=t.substring(0,e),o=t.substring(e+1,n);function i(y){const b="@",C=y.split(b);return{handshakeTopic:C[0],version:parseInt(C[1],10)}}const d=i(o),f=typeof n<"u"?t.substr(n):"";function p(y){const b=qe(y);return{key:b.key||"",bridge:b.bridge||""}}const g=p(f);return Object.assign(Object.assign({protocol:r},d),g)}function Qo(t){return t===""||typeof t=="string"&&t.trim()===""}function Jo(t){return!(t&&t.length)}function Vo(t){return ne(t)}function Go(t){return Re(t)}function Yo(t){return bt(t)}function Ko(t){return Gr(t)}function Zo(t){return Yr(t)}function Xo(t,e){return yt(t,e)}function ei(t){return typeof t.params=="object"}function Jt(t){return typeof t.method<"u"}function P(t){return typeof t.result<"u"}function z(t){return typeof t.error<"u"}function he(t){return typeof t.event<"u"}function Vt(t){return Cr.includes(t)||t.startsWith("wc_")}function Gt(t){return t.method.startsWith("wc_")?!0:!we.includes(t.method)}const ti=Object.freeze(Object.defineProperty({__proto__:null,addHexPrefix:Ao,appendToQueryString:Ft,concatArrayBuffers:lo,concatBuffers:_o,convertArrayBufferToBuffer:Z,convertArrayBufferToHex:Et,convertArrayBufferToNumber:co,convertArrayBufferToUtf8:ao,convertBufferToArrayBuffer:St,convertBufferToHex:ho,convertBufferToNumber:fo,convertBufferToUtf8:uo,convertHexToArrayBuffer:Ct,convertHexToBuffer:yo,convertHexToNumber:vo,convertHexToUtf8:bo,convertNumberToArrayBuffer:So,convertNumberToBuffer:Eo,convertNumberToHex:kt,convertNumberToUtf8:Co,convertUtf8ToArrayBuffer:po,convertUtf8ToBuffer:go,convertUtf8ToHex:mo,convertUtf8ToNumber:wo,detectEnv:oe,detectOS:ie,formatIOSMobile:$o,formatMobileRegistry:zo,formatMobileRegistryEntry:Bt,formatQueryString:Ht,formatRpcError:$t,getClientMeta:de,getCrypto:Mo,getCryptoOrThrow:No,getDappRegistryUrl:Ho,getDocument:Ro,getDocumentOrThrow:Io,getEncoding:Zo,getFromWindow:ko,getFromWindowOrThrow:xo,getInfuraRpcUrl:Ut,getLocal:Ne,getLocalStorage:re,getLocalStorageOrThrow:Lo,getLocation:It,getLocationOrThrow:Oo,getMobileLinkRegistry:Bo,getMobileRegistryEntry:Dt,getNavigator:xt,getNavigatorOrThrow:To,getQueryString:Wt,getRpcUrl:Pt,getType:Ko,getWalletRegistryUrl:Fo,isAndroid:Rt,isArrayBuffer:Yo,isBrowser:Mt,isBuffer:Vo,isEmptyArray:Jo,isEmptyString:Qo,isHexString:Xo,isIOS:Tt,isInternalEvent:he,isJsonRpcRequest:Jt,isJsonRpcResponseError:z,isJsonRpcResponseSuccess:P,isJsonRpcSubscription:ei,isMobile:Ot,isNode:Nt,isReservedEvent:Vt,isSilentPayload:Gt,isTypedArray:Go,isWalletConnectSession:zt,logDeprecationWarning:Do,parseQueryString:qe,parseWalletConnectUri:Qt,payloadId:At,promisify:Wo,removeHexLeadingZeros:Po,removeHexPrefix:Uo,removeLocal:Me,safeJsonParse:Lt,safeJsonStringify:qt,sanitizeHex:qo,saveMobileLinkInfo:jo,setLocal:Oe,uuid:Y},Symbol.toStringTag,{value:"Module"}));class ni{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,n){this._eventEmitters.push({event:e,callback:n})}trigger(e){let n=[];e&&(n=this._eventEmitters.filter(r=>r.event===e)),n.forEach(r=>{r.callback()})}}const ri=typeof global.WebSocket<"u"?global.WebSocket:require("ws");class oi{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new ni,!e.url||typeof e.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,n,r){if(!n||typeof n!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:n,type:"pub",payload:e,silent:!!r})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,n){this._events.push({event:e,callback:n})}_socketCreate(){if(this._nextSocket)return;const e=ii(this._url,this._protocol,this._version);if(this._nextSocket=new ri(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=n=>this._socketReceive(n),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=n=>this._socketError(n),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){const n=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(n):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let n;try{n=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:n.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){const r=this._events.filter(o=>o.event==="message");r&&r.length&&r.forEach(o=>o.callback(n))}}_socketError(e){const n=this._events.filter(r=>r.event==="error");n&&n.length&&n.forEach(r=>r.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(n=>this._queue.push({topic:n,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(n=>this._socketSend(n)),this._queue=[]}}function ii(t,e,n){var r,o;const d=(t.startsWith("https")?t.replace("https","wss"):t.startsWith("http")?t.replace("http","ws"):t).split("?"),f=Mt()?{protocol:e,version:n,env:"browser",host:((r=It())===null||r===void 0?void 0:r.host)||""}:{protocol:e,version:n,env:((o=oe())===null||o===void 0?void 0:o.name)||""},p=Ft(Wt(d[1]||""),f);return d[0]+"?"+p}class si{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(n=>n.event!==e)}trigger(e){let n=[],r;Jt(e)?r=e.method:P(e)||z(e)?r=`response:${e.id}`:he(e)?r=e.event:r="",r&&(n=this._eventEmitters.filter(o=>o.event===r)),(!n||!n.length)&&!Vt(r)&&!he(r)&&(n=this._eventEmitters.filter(o=>o.event==="call_request")),n.forEach(o=>{if(z(e)){const i=new Error(e.error.message);o.callback(i,null)}else o.callback(null,e)})}}class ai{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null;const n=Ne(this.storageId);return n&&zt(n)&&(e=n),e}setSession(e){return Oe(this.storageId,e),e}removeSession(){Me(this.storageId)}}const ci="walletconnect.org",li="abcdefghijklmnopqrstuvwxyz0123456789",Yt=li.split("").map(t=>`https://${t}.bridge.walletconnect.org`);function ui(t){let e=t.indexOf("//")>-1?t.split("/")[2]:t.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function di(t){return ui(t).split(".").slice(-2).join(".")}function hi(){return Math.floor(Math.random()*Yt.length)}function fi(){return Yt[hi()]}function _i(t){return di(t)===ci}function pi(t){return _i(t)?fi():t}class gi{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new si,this._clientMeta=de()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new ai(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...we,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(vr);e.connectorOpts.bridge&&(this.bridge=pi(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);const n=e.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new oi({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;const n=Ct(e);this._key=n}get key(){return this._key?Et(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=Y()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=de()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;const{handshakeTopic:n,bridge:r,key:o}=this._parseUri(e);this.handshakeTopic=n,this.bridge=r,this.key=o}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,n){const r={event:e,callback:n};this._eventManager.subscribe(r)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();const n=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=n.id,this.handshakeTopic=Y(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(We)});const r=()=>{this.killSession()};try{const o=await this._sendCallRequest(n);return o&&r(),o}catch(o){throw r(),o}}async connect(e){if(!this._qrcodeModal)throw new Error(Sr);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(n,r)=>{this.on("modal_closed",()=>r(new Error(We))),this.on("connect",(o,i)=>{if(o)return r(o);n(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(ae);if(this.pending)return;this._key=await this._generateKey();const n=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=n.id,this.handshakeTopic=Y(),this._sendSessionRequest(n,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(ae);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},r={id:this.handshakeId,jsonrpc:"2.0",result:n};this._sendResponse(r),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(ae);const n=e&&e.message?e.message:pr,r=this._formatResponse({id:this.handshakeId,error:{message:n}});this._sendResponse(r),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(q);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},r=this._formatRequest({method:"wc_sessionUpdate",params:[n]});this._sendSessionRequest(r,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){const n=e?e.message:"Session Disconnected",r={approved:!1,chainId:null,networkId:null,accounts:null},o=this._formatRequest({method:"wc_sessionUpdate",params:[r]});await this._sendRequest(o),this._handleSessionDisconnect(n)}async sendTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_sendTransaction",params:[n]});return await this._sendCallRequest(r)}async signTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_signTransaction",params:[n]});return await this._sendCallRequest(r)}async signMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(n)}async signPersonalMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(n)}async signTypedData(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(n)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");const n=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(n)}unsafeSend(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),new Promise((r,o)=>{this._subscribeToResponse(e.id,(i,d)=>{if(i){o(i);return}if(!d)throw new Error(gr);r(d)})})}async sendCustomRequest(e,n){if(!this._connected)throw new Error(q);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return kt(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break}const r=this._formatRequest(e);return await this._sendCallRequest(r,n)}approveRequest(e){if(P(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(mr)}rejectRequest(e){if(z(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(wr)}transportClose(){this._transport.close()}async _sendRequest(e,n){const r=this._formatRequest(e),o=await this._encrypt(r),i=typeof(n==null?void 0:n.topic)<"u"?n.topic:this.peerId,d=JSON.stringify(o),f=typeof(n==null?void 0:n.forcePushNotification)<"u"?!n.forcePushNotification:Gt(r);this._transport.send(d,i,f)}async _sendResponse(e){const n=await this._encrypt(e),r=this.peerId,o=JSON.stringify(n),i=!0;this._transport.send(o,r,i)}async _sendSessionRequest(e,n,r){this._sendRequest(e,r),this._subscribeToSessionResponse(e.id,n)}_sendCallRequest(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(yr);return{id:typeof e.id>"u"?At():e.id,jsonrpc:"2.0",method:e.method,params:typeof e.params>"u"?[]:e.params}}_formatResponse(e){if(typeof e.id>"u")throw new Error(br);const n={id:e.id,jsonrpc:"2.0"};if(z(e)){const r=$t(e.error);return Object.assign(Object.assign(Object.assign({},n),e),{error:r})}else if(P(e))return Object.assign(Object.assign({},n),e);throw new Error(Be)}_handleSessionDisconnect(e){const n=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Me(ue)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,n){n?n.approved?(this._connected?(n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),n.peerId&&!this.peerId&&(this.peerId=n.peerId),n.peerMeta&&!this.peerMeta&&(this.peerMeta=n.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let r;try{r=JSON.parse(e.payload)}catch{return}const o=await this._decrypt(r);o&&this._eventManager.trigger(o)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,n){this.on(`response:${e}`,n)}_subscribeToSessionResponse(e,n){this._subscribeToResponse(e,(r,o)=>{if(r){this._handleSessionResponse(r.message);return}P(o)?this._handleSessionResponse(n,o.result):o.error&&o.error.message?this._handleSessionResponse(o.error.message):this._handleSessionResponse(n)})}_subscribeToCallResponse(e){return new Promise((n,r)=>{this._subscribeToResponse(e,(o,i)=>{if(o){r(o);return}P(i)?n(i.result):i.error&&i.error.message?r(i.error):r(new Error(Be))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,n)=>{const{request:r}=n.params[0];if(Ot()&&this._signingMethods.includes(r.method)){const o=Ne(ue);o&&(window.location.href=o.href)}}),this.on("wc_sessionRequest",(e,n)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=n.id,this.peerId=n.params[0].peerId,this.peerMeta=n.params[0].peerMeta;const r=Object.assign(Object.assign({},n),{method:"session_request"});this._eventManager.trigger(r)}),this.on("wc_sessionUpdate",(e,n)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",n.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){const e=this.protocol,n=this.handshakeTopic,r=this.version,o=encodeURIComponent(this.bridge),i=this.key;return`${e}:${n}@${r}?bridge=${o}&key=${i}`}_parseUri(e){const n=Qt(e);if(n.protocol===this.protocol){if(!n.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const r=n.handshakeTopic;if(!n.bridge)throw Error("Invalid or missing bridge url parameter value");const o=decodeURIComponent(n.bridge);if(!n.key)throw Error("Invalid or missing key parameter value");const i=n.key;return{handshakeTopic:r,bridge:o,key:i}}else throw new Error(Er)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.encrypt(e,n):null}async _decrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.decrypt(e,n):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||typeof e.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||typeof e.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");const n={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(r,o)=>{if(r)throw r;if(e.peerMeta){const i=o.params[0].peerMeta.name;n.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}}function mi(t){return Q.getBrowerCrypto().getRandomValues(new Uint8Array(t))}const Kt=256,Zt=Kt,wi=Kt,L="AES-CBC",yi=`SHA-${Zt}`,fe="HMAC",bi="encrypt",vi="decrypt",Ei="sign",Si="verify";function Ci(t){return t===L?{length:Zt,name:L}:{hash:{name:yi},name:fe}}function ki(t){return t===L?[bi,vi]:[Ei,Si]}async function Ae(t,e=L){return Q.getSubtleCrypto().importKey("raw",t,Ci(e),!0,ki(e))}async function xi(t,e,n){const r=Q.getSubtleCrypto(),o=await Ae(e,L),i=await r.encrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function Ii(t,e,n){const r=Q.getSubtleCrypto(),o=await Ae(e,L),i=await r.decrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function Ri(t,e){const n=Q.getSubtleCrypto(),r=await Ae(t,fe),o=await n.sign({length:wi,name:fe},r,e);return new Uint8Array(o)}function Ti(t,e,n){return xi(t,e,n)}function Oi(t,e,n){return Ii(t,e,n)}async function Xt(t,e){return await Ri(t,e)}async function en(t){const e=(t||256)/8,n=mi(e);return St(W(n))}async function tn(t,e){const n=M(t.data),r=M(t.iv),o=M(t.hmac),i=N(o,!1),d=vt(n,r),f=await Xt(e,d),p=N(f,!1);return B(i)===B(p)}async function Ni(t,e,n){const r=j(Z(e)),o=n||await en(128),i=j(Z(o)),d=N(i,!1),f=JSON.stringify(t),p=wt(f),g=await Ti(i,r,p),w=N(g,!1),y=vt(g,i),b=await Xt(r,y),C=N(b,!1);return{data:w,hmac:C,iv:d}}async function Mi(t,e){const n=j(Z(e));if(!n)throw new Error("Missing key: required for decryption");if(!await tn(t,n))return null;const o=M(t.data),i=M(t.iv),d=await Oi(i,n,o),f=gt(d);let p;try{p=JSON.parse(f)}catch{return null}return p}const Li=Object.freeze(Object.defineProperty({__proto__:null,decrypt:Mi,encrypt:Ni,generateKey:en,verifyHmac:tn},Symbol.toStringTag,{value:"Module"}));class qi extends gi{constructor(e,n){super({cryptoLib:Li,connectorOpts:e,pushServerOpts:n})}}const Ai=et(ti);var Ui=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=Fe[e.format]||Fe.default;window.clipboardData.setData(y,t)}else w.clipboardData.clearData(),w.clipboardData.setData(e.format,t);e.onCopy&&(w.preventDefault(),e.onCopy(w.clipboardData))}),document.body.appendChild(f),i.selectNodeContents(f),d.addRange(i);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");p=!0}catch(w){n&&console.error("unable to copy using execCommand: ",w),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),p=!0}catch(y){n&&console.error("unable to copy using clipboardData: ",y),n&&console.error("falling back to prompt"),r=$i("message"in e?e.message:Di),window.prompt(r,t)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(i):d.removeAllRanges()),f&&document.body.removeChild(f),o()}return p}var Bi=ji;function nn(t,e){for(var n in e)t[n]=e[n];return t}function _e(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function X(t){this.props=t}function rn(t,e){function n(o){var i=this.props.ref,d=i==o.ref;return!d&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!d:_e(this.props,o)}function r(o){return this.shouldComponentUpdate=n,x(t,o)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(X.prototype=new A).isPureReactComponent=!0,X.prototype.shouldComponentUpdate=function(t,e){return _e(this.props,t)||_e(this.state,e)};var He=S.__b;S.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),He&&He(t)};var Wi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function on(t){function e(n){var r=nn({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=Wi,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var ze=function(t,e){return t==null?null:O(O(t).map(e))},sn={map:ze,forEach:ze,count:function(t){return t?O(t).length:0},only:function(t){var e=O(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:O},Fi=S.__e;S.__e=function(t,e,n,r){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e)}Fi(t,e,n,r)};var Qe=S.unmount;function an(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=nn({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return an(r,e,n)})),t}function cn(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return cn(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function H(){this.__u=0,this.t=null,this.__b=null}function ln(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function un(t){var e,n,r;function o(i){if(e||(e=t()).then(function(d){n=d.default||d},function(d){r=d}),r)throw r;if(!n)throw e;return x(n,i)}return o.displayName="Lazy",o.__f=!0,o}function D(){this.u=null,this.o=null}S.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Qe&&Qe(t)},(H.prototype=new A).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=ln(r.__v),i=!1,d=function(){i||(i=!0,n.__R=null,o?o(f):f())};n.__R=d;var f=function(){if(!--r.__u){if(r.state.__a){var p=r.state.__a;r.__v.__k[0]=cn(p,p.__c.__P,p.__c.__O)}var g;for(r.setState({__a:r.__b=null});g=r.t.pop();)g.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(d,d)},H.prototype.componentWillUnmount=function(){this.t=[]},H.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=an(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__a&&x($,null,t.fallback);return o&&(o.__u&=-33),[x($,null,e.__a?null:t.children),o]};var Je=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(r)}}),K(x(Hi,{context:e.context},t.__v),e.l)}function dn(t,e){var n=x(zi,{__v:t,i:e});return n.containerInfo=e,n}(D.prototype=new A).__a=function(t){var e=this,n=ln(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),Je(e,t,r)):o()};n?n(i):i()}},D.prototype.render=function(t){this.u=null,this.o=new Map;var e=O(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},D.prototype.componentDidUpdate=D.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Je(t,n,e)})};var hn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ji=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Vi=/[A-Z0-9]/g,Gi=typeof document<"u",Yi=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function fn(t,e,n){return e.__k==null&&(e.textContent=""),K(t,e),typeof n=="function"&&n(),t?t.__c:null}function _n(t,e,n){return hr(t,e),typeof n=="function"&&n(),t?t.__c:null}A.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(A.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ve=S.event;function Ki(){}function Zi(){return this.cancelBubble}function Xi(){return this.defaultPrevented}S.event=function(t){return Ve&&(t=Ve(t)),t.persist=Ki,t.isPropagationStopped=Zi,t.isDefaultPrevented=Xi,t.nativeEvent=t};var Ue,es={enumerable:!1,configurable:!0,get:function(){return this.class}},Ge=S.vnode;S.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,r=e.type,o={};for(var i in n){var d=n[i];if(!(i==="value"&&"defaultValue"in n&&d==null||Gi&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var f=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&d===!0?d="":f==="ondoubleclick"?i="ondblclick":f!=="onchange"||r!=="input"&&r!=="textarea"||Yi(n.type)?f==="onfocus"?i="onfocusin":f==="onblur"?i="onfocusout":Ji.test(i)?i=f:r.indexOf("-")===-1&&Qi.test(i)?i=i.replace(Vi,"-$&").toLowerCase():d===null&&(d=void 0):f=i="oninput",f==="oninput"&&o[i=f]&&(i="oninputCapture"),o[i]=d}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.value.indexOf(p.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.multiple?o.defaultValue.indexOf(p.props.value)!=-1:o.defaultValue==p.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",es)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),e.props=o}(t),t.$$typeof=hn,Ge&&Ge(t)};var Ye=S.__r;S.__r=function(t){Ye&&Ye(t),Ue=t.__c};var Ke=S.diffed;S.diffed=function(t){Ke&&Ke(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value),Ue=null};var pn={ReactCurrentDispatcher:{current:{readContext:function(t){return Ue.__n[t.__c].props.value}}}},ts="17.0.2";function gn(t){return x.bind(null,t)}function V(t){return!!t&&t.$$typeof===hn}function mn(t){return V(t)&&t.type===$}function wn(t){return V(t)?fr.apply(null,arguments):t}function yn(t){return!!t.__k&&(K(null,t),!0)}function bn(t){return t&&(t.base||t.nodeType===1&&t)||null}var vn=function(t,e){return t(e)},En=function(t,e){return t(e)},Sn=$;function Pe(t){t()}function Cn(t){return t}function kn(){return[!1,Pe]}var xn=ee,In=V;function Rn(t,e){var n=e(),r=ge({h:{__:n,v:e}}),o=r[0].h,i=r[1];return ee(function(){o.__=n,o.v=e,ce(o)&&i({h:o})},[t,n,e]),me(function(){return ce(o)&&i({h:o}),t(function(){ce(o)&&i({h:o})})},[t]),n}function ce(t){var e,n,r=t.v,o=t.__;try{var i=r();return!((e=o)===(n=i)&&(e!==0||1/e==1/n)||e!=e&&n!=n)}catch{return!0}}var ns={useState:ge,useId:nt,useReducer:rt,useEffect:me,useLayoutEffect:ee,useInsertionEffect:xn,useTransition:kn,useDeferredValue:Cn,useSyncExternalStore:Rn,startTransition:Pe,useRef:ot,useImperativeHandle:it,useMemo:st,useCallback:at,useContext:ct,useDebugValue:lt,version:"17.0.2",Children:sn,render:fn,hydrate:_n,unmountComponentAtNode:yn,createPortal:dn,createElement:x,createContext:ut,createFactory:gn,cloneElement:wn,createRef:dt,Fragment:$,isValidElement:V,isElement:In,isFragment:mn,findDOMNode:bn,Component:A,PureComponent:X,memo:rn,forwardRef:on,flushSync:En,unstable_batchedUpdates:vn,StrictMode:Sn,Suspense:H,SuspenseList:D,lazy:un,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pn};const rs=Object.freeze(Object.defineProperty({__proto__:null,Children:sn,Component:A,Fragment:$,PureComponent:X,StrictMode:Sn,Suspense:H,SuspenseList:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pn,cloneElement:wn,createContext:ut,createElement:x,createFactory:gn,createPortal:dn,createRef:dt,default:ns,findDOMNode:bn,flushSync:En,forwardRef:on,hydrate:_n,isElement:In,isFragment:mn,isValidElement:V,lazy:un,memo:rn,render:fn,startTransition:Pe,unmountComponentAtNode:yn,unstable_batchedUpdates:vn,useCallback:at,useContext:ct,useDebugValue:lt,useDeferredValue:Cn,useEffect:me,useErrorBoundary:_r,useId:nt,useImperativeHandle:it,useInsertionEffect:xn,useLayoutEffect:ee,useMemo:st,useReducer:rt,useRef:ot,useState:ge,useSyncExternalStore:Rn,useTransition:kn,version:ts},Symbol.toStringTag,{value:"Module"})),os=et(rs);function Tn(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var E=Ai,On=Tn(dr),is=Tn(Bi),l=os;function ss(t){On.toString(t,{type:"terminal"}).then(console.log)}var as=`:root { +import{q as pe,aD as Wn,aE as Fn,aF as Hn,aG as zn,aH as Qn,aI as Jn,aJ as Vn,aK as Gn,aL as Yn,aM as Kn,aN as Zn,aO as Xn,aP as er,aQ as tr,aR as nr,aS as rr,aT as or,aU as ir,f as et,E as tt}from"./index-0aC6Xlgc.js";import{a as sr,s as ar,m as cr,c as Q,I as lr,f as $e,J as je,H as ur}from"./http-EUccMvXZ.js";import{b as dr}from"./browser-RXMF2uUL.js";import{b as A,l as S,y as x,g as $,$ as O,q as K,B as hr,E as fr,a as ee,c as ge,d as me,V as nt,s as rt,_ as ot,A as it,F as st,T as at,e as ct,x as lt,f as ut,i as dt,P as _r}from"./hooks.module-o1hAt1ko.js";const ae="Session currently connected",q="Session currently disconnected",pr="Session Rejected",gr="Missing JSON RPC response",mr='JSON-RPC success response must include "result" field',wr='JSON-RPC error response must include "error" field',yr='JSON RPC request must have valid "method" value',br='JSON RPC request must have valid "id" value',vr="Missing one of the required parameters: bridge / uri / session",Be="JSON RPC response format is invalid",Er="URI format is invalid",Sr="QRCode Modal not provided",We="User close QRCode Modal",Cr=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],kr=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],we=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...kr],ue="WALLETCONNECT_DEEPLINK_CHOICE",xr={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"};var ht=ye;ye.strict=ft;ye.loose=_t;var Ir=Object.prototype.toString,Rr={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function ye(t){return ft(t)||_t(t)}function ft(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function _t(t){return Rr[Ir.call(t)]}const Tr=pe(ht);var Or=ht.strict,Nr=function(e){if(Or(e)){var n=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(n=n.slice(e.byteOffset,e.byteOffset+e.byteLength)),n}else return Buffer.from(e)};const Mr=pe(Nr),be="hex",ve="utf8",Lr="binary",qr="buffer",Ar="array",Ur="typed-array",Pr="array-buffer",te="0";function j(t){return new Uint8Array(t)}function Ee(t,e=!1){const n=t.toString(be);return e?J(n):n}function Se(t){return t.toString(ve)}function pt(t){return t.readUIntBE(0,t.length)}function W(t){return Mr(t)}function N(t,e=!1){return Ee(W(t),e)}function gt(t){return Se(W(t))}function mt(t){return pt(W(t))}function Ce(t){return Buffer.from(B(t),be)}function M(t){return j(Ce(t))}function Dr(t){return Se(Ce(t))}function $r(t){return mt(M(t))}function ke(t){return Buffer.from(t,ve)}function wt(t){return j(ke(t))}function jr(t,e=!1){return Ee(ke(t),e)}function Br(t){const e=parseInt(t,10);return io(oo(e),"Number can only safely store up to 53 bits"),e}function Wr(t){return Qr(xe(t))}function Fr(t){return Ie(xe(t))}function Hr(t,e){return Jr(xe(t),e)}function zr(t){return`${t}`}function xe(t){const e=(t>>>0).toString(2);return Te(e)}function Qr(t){return W(Ie(t))}function Ie(t){return new Uint8Array(Xr(t).map(e=>parseInt(e,2)))}function Jr(t,e){return N(Ie(t),e)}function Vr(t){return!(typeof t!="string"||!new RegExp(/^[01]+$/).test(t)||t.length%8!==0)}function yt(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}function ne(t){return Buffer.isBuffer(t)}function Re(t){return Tr.strict(t)&&!ne(t)}function bt(t){return!Re(t)&&!ne(t)&&typeof t.byteLength<"u"}function Gr(t){return ne(t)?qr:Re(t)?Ur:bt(t)?Pr:Array.isArray(t)?Ar:typeof t}function Yr(t){return Vr(t)?Lr:yt(t)?be:ve}function Kr(...t){return Buffer.concat(t)}function vt(...t){let e=[];return t.forEach(n=>e=e.concat(Array.from(n))),new Uint8Array([...e])}function Zr(t,e=8){const n=t%e;return n?(t-n)/e*e+e:t}function Xr(t,e=8){const n=Te(t).match(new RegExp(`.{${e}}`,"gi"));return Array.from(n||[])}function Te(t,e=8,n=te){return eo(t,Zr(t.length,e),n)}function eo(t,e,n=te){return so(t,e,!0,n)}function B(t){return t.replace(/^0x/,"")}function J(t){return t.startsWith("0x")?t:`0x${t}`}function to(t){return t=B(t),t=Te(t,2),t&&(t=J(t)),t}function no(t){const e=t.startsWith("0x");return t=B(t),t=t.startsWith(te)?t.substring(1):t,e?J(t):t}function ro(t){return typeof t>"u"}function oo(t){return!ro(t)}function io(t,e){if(!t)throw new Error(e)}function so(t,e,n,r=te){const o=e-t.length;let i=t;if(o>0){const d=r.repeat(o);i=n?d+t:t+d}return i}function Z(t){return W(new Uint8Array(t))}function ao(t){return gt(new Uint8Array(t))}function Et(t,e){return N(new Uint8Array(t),!e)}function co(t){return mt(new Uint8Array(t))}function lo(...t){return M(t.map(e=>N(new Uint8Array(e))).join("")).buffer}function St(t){return j(t).buffer}function uo(t){return Se(t)}function ho(t,e){return Ee(t,!e)}function fo(t){return pt(t)}function _o(...t){return Kr(...t)}function po(t){return wt(t).buffer}function go(t){return ke(t)}function mo(t,e){return jr(t,!e)}function wo(t){return Br(t)}function yo(t){return Ce(t)}function Ct(t){return M(t).buffer}function bo(t){return Dr(t)}function vo(t){return $r(t)}function Eo(t){return Wr(t)}function So(t){return Fr(t).buffer}function Co(t){return zr(t)}function kt(t,e){return Hr(Number(t),!e)}const ko=zn,xo=Qn,Io=Jn,Ro=Vn,To=Gn,xt=Hn,Oo=Yn,It=Wn,No=Kn,Mo=Zn,Lo=Xn,re=Fn;function oe(t){return er(t)}function ie(){const t=oe();return t&&t.os?t.os:void 0}function Rt(){const t=ie();return t?t.toLowerCase().includes("android"):!1}function Tt(){const t=ie();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Ot(){return ie()?Rt()||Tt():!1}function Nt(){const t=oe();return t&&t.name?t.name.toLowerCase()==="node":!1}function Mt(){return!Nt()&&!!xt()}const Lt=sr,qt=ar;function Oe(t,e){const n=qt(e),r=re();r&&r.setItem(t,n)}function Ne(t){let e=null,n=null;const r=re();return r&&(n=r.getItem(t)),e=n&&Lt(n),e}function Me(t){const e=re();e&&e.removeItem(t)}function de(){return tr()}function qo(t){return to(t)}function Ao(t){return J(t)}function Uo(t){return B(t)}function Po(t){return no(J(t))}const At=cr;function Y(){return((e,n)=>{for(n=e="";e++<36;n+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return n})()}function Do(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function Ut(t,e){let n;const r=xr[t];return r&&(n=`https://${r}.infura.io/v3/${e}`),n}function Pt(t,e){let n;const r=Ut(t,e.infuraId);return e.custom&&e.custom[t]?n=e.custom[t]:r&&(n=r),n}function $o(t,e){const n=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${n}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function jo(t){const e=t.href.split("?")[0];Oe(ue,Object.assign(Object.assign({},t),{href:e}))}function Dt(t,e){return t.filter(n=>n.name.toLowerCase().includes(e.toLowerCase()))[0]}function Bo(t,e){let n=t;return e&&(n=e.map(r=>Dt(t,r)).filter(Boolean)),n}function Wo(t,e){return async(...r)=>new Promise((o,i)=>{const d=(f,p)=>{(f===null||typeof f>"u")&&i(f),o(p)};t.apply(e,[...r,d])})}function $t(t){const e=t.message||"Failed or Rejected Request";let n=-32e3;if(t&&!t.code)switch(e){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3;break}const r={code:n,message:e};return t.data&&(r.data=t.data),r}const jt="https://registry.walletconnect.com";function Fo(){return jt+"/api/v2/wallets"}function Ho(){return jt+"/api/v2/dapps"}function Bt(t,e="mobile"){var n;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(n=t.image_url.sm)!==null&&n!==void 0?n:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function zo(t,e="mobile"){return Object.values(t).filter(n=>!!n[e].universal||!!n[e].native).map(n=>Bt(n,e))}var Le={};(function(t){const e=or,n=ir,r=nr,o=rr,i=s=>s==null;function d(s){switch(s.arrayFormat){case"index":return a=>(u,c)=>{const h=u.length;return c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[",h,"]"].join("")]:[...u,[g(a,s),"[",g(h,s),"]=",g(c,s)].join("")]};case"bracket":return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,[g(a,s),"[]"].join("")]:[...u,[g(a,s),"[]=",g(c,s)].join("")];case"comma":case"separator":return a=>(u,c)=>c==null||c.length===0?u:u.length===0?[[g(a,s),"=",g(c,s)].join("")]:[[u,g(c,s)].join(s.arrayFormatSeparator)];default:return a=>(u,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?u:c===null?[...u,g(a,s)]:[...u,[g(a,s),"=",g(c,s)].join("")]}}function f(s){let a;switch(s.arrayFormat){case"index":return(u,c,h)=>{if(a=/\[(\d*)\]$/.exec(u),u=u.replace(/\[\d*\]$/,""),!a){h[u]=c;return}h[u]===void 0&&(h[u]={}),h[u][a[1]]=c};case"bracket":return(u,c,h)=>{if(a=/(\[\])$/.exec(u),u=u.replace(/\[\]$/,""),!a){h[u]=c;return}if(h[u]===void 0){h[u]=[c];return}h[u]=[].concat(h[u],c)};case"comma":case"separator":return(u,c,h)=>{const m=typeof c=="string"&&c.includes(s.arrayFormatSeparator),_=typeof c=="string"&&!m&&w(c,s).includes(s.arrayFormatSeparator);c=_?w(c,s):c;const v=m||_?c.split(s.arrayFormatSeparator).map(T=>w(T,s)):c===null?c:w(c,s);h[u]=v};default:return(u,c,h)=>{if(h[u]===void 0){h[u]=c;return}h[u]=[].concat(h[u],c)}}}function p(s){if(typeof s!="string"||s.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function g(s,a){return a.encode?a.strict?e(s):encodeURIComponent(s):s}function w(s,a){return a.decode?n(s):s}function y(s){return Array.isArray(s)?s.sort():typeof s=="object"?y(Object.keys(s)).sort((a,u)=>Number(a)-Number(u)).map(a=>s[a]):s}function b(s){const a=s.indexOf("#");return a!==-1&&(s=s.slice(0,a)),s}function C(s){let a="";const u=s.indexOf("#");return u!==-1&&(a=s.slice(u)),a}function k(s){s=b(s);const a=s.indexOf("?");return a===-1?"":s.slice(a+1)}function I(s,a){return a.parseNumbers&&!Number.isNaN(Number(s))&&typeof s=="string"&&s.trim()!==""?s=Number(s):a.parseBooleans&&s!==null&&(s.toLowerCase()==="true"||s.toLowerCase()==="false")&&(s=s.toLowerCase()==="true"),s}function R(s,a){a=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},a),p(a.arrayFormatSeparator);const u=f(a),c=Object.create(null);if(typeof s!="string"||(s=s.trim().replace(/^[?#&]/,""),!s))return c;for(const h of s.split("&")){if(h==="")continue;let[m,_]=r(a.decode?h.replace(/\+/g," "):h,"=");_=_===void 0?null:["comma","separator"].includes(a.arrayFormat)?_:w(_,a),u(w(m,a),_,c)}for(const h of Object.keys(c)){const m=c[h];if(typeof m=="object"&&m!==null)for(const _ of Object.keys(m))m[_]=I(m[_],a);else c[h]=I(m,a)}return a.sort===!1?c:(a.sort===!0?Object.keys(c).sort():Object.keys(c).sort(a.sort)).reduce((h,m)=>{const _=c[m];return _&&typeof _=="object"&&!Array.isArray(_)?h[m]=y(_):h[m]=_,h},Object.create(null))}t.extract=k,t.parse=R,t.stringify=(s,a)=>{if(!s)return"";a=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},a),p(a.arrayFormatSeparator);const u=_=>a.skipNull&&i(s[_])||a.skipEmptyString&&s[_]==="",c=d(a),h={};for(const _ of Object.keys(s))u(_)||(h[_]=s[_]);const m=Object.keys(h);return a.sort!==!1&&m.sort(a.sort),m.map(_=>{const v=s[_];return v===void 0?"":v===null?g(_,a):Array.isArray(v)?v.reduce(c(_),[]).join("&"):g(_,a)+"="+g(v,a)}).filter(_=>_.length>0).join("&")},t.parseUrl=(s,a)=>{a=Object.assign({decode:!0},a);const[u,c]=r(s,"#");return Object.assign({url:u.split("?")[0]||"",query:R(k(s),a)},a&&a.parseFragmentIdentifier&&c?{fragmentIdentifier:w(c,a)}:{})},t.stringifyUrl=(s,a)=>{a=Object.assign({encode:!0,strict:!0},a);const u=b(s.url).split("?")[0]||"",c=t.extract(s.url),h=t.parse(c,{sort:!1}),m=Object.assign(h,s.query);let _=t.stringify(m,a);_&&(_=`?${_}`);let v=C(s.url);return s.fragmentIdentifier&&(v=`#${g(s.fragmentIdentifier,a)}`),`${u}${_}${v}`},t.pick=(s,a,u)=>{u=Object.assign({parseFragmentIdentifier:!0},u);const{url:c,query:h,fragmentIdentifier:m}=t.parseUrl(s,u);return t.stringifyUrl({url:c,query:o(h,a),fragmentIdentifier:m},u)},t.exclude=(s,a,u)=>{const c=Array.isArray(a)?h=>!a.includes(h):(h,m)=>!a(h,m);return t.pick(s,c,u)}})(Le);function Wt(t){const e=t.indexOf("?")!==-1?t.indexOf("?"):void 0;return typeof e<"u"?t.substr(e):""}function Ft(t,e){let n=qe(t);return n=Object.assign(Object.assign({},n),e),t=Ht(n),t}function qe(t){return Le.parse(t)}function Ht(t){return Le.stringify(t)}function zt(t){return typeof t.bridge<"u"}function Qt(t){const e=t.indexOf(":"),n=t.indexOf("?")!==-1?t.indexOf("?"):void 0,r=t.substring(0,e),o=t.substring(e+1,n);function i(y){const b="@",C=y.split(b);return{handshakeTopic:C[0],version:parseInt(C[1],10)}}const d=i(o),f=typeof n<"u"?t.substr(n):"";function p(y){const b=qe(y);return{key:b.key||"",bridge:b.bridge||""}}const g=p(f);return Object.assign(Object.assign({protocol:r},d),g)}function Qo(t){return t===""||typeof t=="string"&&t.trim()===""}function Jo(t){return!(t&&t.length)}function Vo(t){return ne(t)}function Go(t){return Re(t)}function Yo(t){return bt(t)}function Ko(t){return Gr(t)}function Zo(t){return Yr(t)}function Xo(t,e){return yt(t,e)}function ei(t){return typeof t.params=="object"}function Jt(t){return typeof t.method<"u"}function P(t){return typeof t.result<"u"}function z(t){return typeof t.error<"u"}function he(t){return typeof t.event<"u"}function Vt(t){return Cr.includes(t)||t.startsWith("wc_")}function Gt(t){return t.method.startsWith("wc_")?!0:!we.includes(t.method)}const ti=Object.freeze(Object.defineProperty({__proto__:null,addHexPrefix:Ao,appendToQueryString:Ft,concatArrayBuffers:lo,concatBuffers:_o,convertArrayBufferToBuffer:Z,convertArrayBufferToHex:Et,convertArrayBufferToNumber:co,convertArrayBufferToUtf8:ao,convertBufferToArrayBuffer:St,convertBufferToHex:ho,convertBufferToNumber:fo,convertBufferToUtf8:uo,convertHexToArrayBuffer:Ct,convertHexToBuffer:yo,convertHexToNumber:vo,convertHexToUtf8:bo,convertNumberToArrayBuffer:So,convertNumberToBuffer:Eo,convertNumberToHex:kt,convertNumberToUtf8:Co,convertUtf8ToArrayBuffer:po,convertUtf8ToBuffer:go,convertUtf8ToHex:mo,convertUtf8ToNumber:wo,detectEnv:oe,detectOS:ie,formatIOSMobile:$o,formatMobileRegistry:zo,formatMobileRegistryEntry:Bt,formatQueryString:Ht,formatRpcError:$t,getClientMeta:de,getCrypto:Mo,getCryptoOrThrow:No,getDappRegistryUrl:Ho,getDocument:Ro,getDocumentOrThrow:Io,getEncoding:Zo,getFromWindow:ko,getFromWindowOrThrow:xo,getInfuraRpcUrl:Ut,getLocal:Ne,getLocalStorage:re,getLocalStorageOrThrow:Lo,getLocation:It,getLocationOrThrow:Oo,getMobileLinkRegistry:Bo,getMobileRegistryEntry:Dt,getNavigator:xt,getNavigatorOrThrow:To,getQueryString:Wt,getRpcUrl:Pt,getType:Ko,getWalletRegistryUrl:Fo,isAndroid:Rt,isArrayBuffer:Yo,isBrowser:Mt,isBuffer:Vo,isEmptyArray:Jo,isEmptyString:Qo,isHexString:Xo,isIOS:Tt,isInternalEvent:he,isJsonRpcRequest:Jt,isJsonRpcResponseError:z,isJsonRpcResponseSuccess:P,isJsonRpcSubscription:ei,isMobile:Ot,isNode:Nt,isReservedEvent:Vt,isSilentPayload:Gt,isTypedArray:Go,isWalletConnectSession:zt,logDeprecationWarning:Do,parseQueryString:qe,parseWalletConnectUri:Qt,payloadId:At,promisify:Wo,removeHexLeadingZeros:Po,removeHexPrefix:Uo,removeLocal:Me,safeJsonParse:Lt,safeJsonStringify:qt,sanitizeHex:qo,saveMobileLinkInfo:jo,setLocal:Oe,uuid:Y},Symbol.toStringTag,{value:"Module"}));class ni{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,n){this._eventEmitters.push({event:e,callback:n})}trigger(e){let n=[];e&&(n=this._eventEmitters.filter(r=>r.event===e)),n.forEach(r=>{r.callback()})}}const ri=typeof global.WebSocket<"u"?global.WebSocket:require("ws");class oi{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new ni,!e.url||typeof e.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,n,r){if(!n||typeof n!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:n,type:"pub",payload:e,silent:!!r})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,n){this._events.push({event:e,callback:n})}_socketCreate(){if(this._nextSocket)return;const e=ii(this._url,this._protocol,this._version);if(this._nextSocket=new ri(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=n=>this._socketReceive(n),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=n=>this._socketError(n),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){const n=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(n):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let n;try{n=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:n.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){const r=this._events.filter(o=>o.event==="message");r&&r.length&&r.forEach(o=>o.callback(n))}}_socketError(e){const n=this._events.filter(r=>r.event==="error");n&&n.length&&n.forEach(r=>r.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(n=>this._queue.push({topic:n,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(n=>this._socketSend(n)),this._queue=[]}}function ii(t,e,n){var r,o;const d=(t.startsWith("https")?t.replace("https","wss"):t.startsWith("http")?t.replace("http","ws"):t).split("?"),f=Mt()?{protocol:e,version:n,env:"browser",host:((r=It())===null||r===void 0?void 0:r.host)||""}:{protocol:e,version:n,env:((o=oe())===null||o===void 0?void 0:o.name)||""},p=Ft(Wt(d[1]||""),f);return d[0]+"?"+p}class si{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(n=>n.event!==e)}trigger(e){let n=[],r;Jt(e)?r=e.method:P(e)||z(e)?r=`response:${e.id}`:he(e)?r=e.event:r="",r&&(n=this._eventEmitters.filter(o=>o.event===r)),(!n||!n.length)&&!Vt(r)&&!he(r)&&(n=this._eventEmitters.filter(o=>o.event==="call_request")),n.forEach(o=>{if(z(e)){const i=new Error(e.error.message);o.callback(i,null)}else o.callback(null,e)})}}class ai{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null;const n=Ne(this.storageId);return n&&zt(n)&&(e=n),e}setSession(e){return Oe(this.storageId,e),e}removeSession(){Me(this.storageId)}}const ci="walletconnect.org",li="abcdefghijklmnopqrstuvwxyz0123456789",Yt=li.split("").map(t=>`https://${t}.bridge.walletconnect.org`);function ui(t){let e=t.indexOf("//")>-1?t.split("/")[2]:t.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function di(t){return ui(t).split(".").slice(-2).join(".")}function hi(){return Math.floor(Math.random()*Yt.length)}function fi(){return Yt[hi()]}function _i(t){return di(t)===ci}function pi(t){return _i(t)?fi():t}class gi{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new si,this._clientMeta=de()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new ai(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...we,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(vr);e.connectorOpts.bridge&&(this.bridge=pi(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);const n=e.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new oi({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;const n=Ct(e);this._key=n}get key(){return this._key?Et(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=Y()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=de()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;const{handshakeTopic:n,bridge:r,key:o}=this._parseUri(e);this.handshakeTopic=n,this.bridge=r,this.key=o}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,n){const r={event:e,callback:n};this._eventManager.subscribe(r)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();const n=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=n.id,this.handshakeTopic=Y(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(We)});const r=()=>{this.killSession()};try{const o=await this._sendCallRequest(n);return o&&r(),o}catch(o){throw r(),o}}async connect(e){if(!this._qrcodeModal)throw new Error(Sr);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(n,r)=>{this.on("modal_closed",()=>r(new Error(We))),this.on("connect",(o,i)=>{if(o)return r(o);n(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(ae);if(this.pending)return;this._key=await this._generateKey();const n=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=n.id,this.handshakeTopic=Y(),this._sendSessionRequest(n,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(ae);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},r={id:this.handshakeId,jsonrpc:"2.0",result:n};this._sendResponse(r),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(ae);const n=e&&e.message?e.message:pr,r=this._formatResponse({id:this.handshakeId,error:{message:n}});this._sendResponse(r),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(q);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},r=this._formatRequest({method:"wc_sessionUpdate",params:[n]});this._sendSessionRequest(r,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){const n=e?e.message:"Session Disconnected",r={approved:!1,chainId:null,networkId:null,accounts:null},o=this._formatRequest({method:"wc_sessionUpdate",params:[r]});await this._sendRequest(o),this._handleSessionDisconnect(n)}async sendTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_sendTransaction",params:[n]});return await this._sendCallRequest(r)}async signTransaction(e){if(!this._connected)throw new Error(q);const n=e,r=this._formatRequest({method:"eth_signTransaction",params:[n]});return await this._sendCallRequest(r)}async signMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(n)}async signPersonalMessage(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(n)}async signTypedData(e){if(!this._connected)throw new Error(q);const n=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(n)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");const n=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(n)}unsafeSend(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),new Promise((r,o)=>{this._subscribeToResponse(e.id,(i,d)=>{if(i){o(i);return}if(!d)throw new Error(gr);r(d)})})}async sendCustomRequest(e,n){if(!this._connected)throw new Error(q);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return kt(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break}const r=this._formatRequest(e);return await this._sendCallRequest(r,n)}approveRequest(e){if(P(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(mr)}rejectRequest(e){if(z(e)){const n=this._formatResponse(e);this._sendResponse(n)}else throw new Error(wr)}transportClose(){this._transport.close()}async _sendRequest(e,n){const r=this._formatRequest(e),o=await this._encrypt(r),i=typeof(n==null?void 0:n.topic)<"u"?n.topic:this.peerId,d=JSON.stringify(o),f=typeof(n==null?void 0:n.forcePushNotification)<"u"?!n.forcePushNotification:Gt(r);this._transport.send(d,i,f)}async _sendResponse(e){const n=await this._encrypt(e),r=this.peerId,o=JSON.stringify(n),i=!0;this._transport.send(o,r,i)}async _sendSessionRequest(e,n,r){this._sendRequest(e,r),this._subscribeToSessionResponse(e.id,n)}_sendCallRequest(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(yr);return{id:typeof e.id>"u"?At():e.id,jsonrpc:"2.0",method:e.method,params:typeof e.params>"u"?[]:e.params}}_formatResponse(e){if(typeof e.id>"u")throw new Error(br);const n={id:e.id,jsonrpc:"2.0"};if(z(e)){const r=$t(e.error);return Object.assign(Object.assign(Object.assign({},n),e),{error:r})}else if(P(e))return Object.assign(Object.assign({},n),e);throw new Error(Be)}_handleSessionDisconnect(e){const n=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Me(ue)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,n){n?n.approved?(this._connected?(n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),n.peerId&&!this.peerId&&(this.peerId=n.peerId),n.peerMeta&&!this.peerMeta&&(this.peerMeta=n.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let r;try{r=JSON.parse(e.payload)}catch{return}const o=await this._decrypt(r);o&&this._eventManager.trigger(o)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,n){this.on(`response:${e}`,n)}_subscribeToSessionResponse(e,n){this._subscribeToResponse(e,(r,o)=>{if(r){this._handleSessionResponse(r.message);return}P(o)?this._handleSessionResponse(n,o.result):o.error&&o.error.message?this._handleSessionResponse(o.error.message):this._handleSessionResponse(n)})}_subscribeToCallResponse(e){return new Promise((n,r)=>{this._subscribeToResponse(e,(o,i)=>{if(o){r(o);return}P(i)?n(i.result):i.error&&i.error.message?r(i.error):r(new Error(Be))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,n)=>{const{request:r}=n.params[0];if(Ot()&&this._signingMethods.includes(r.method)){const o=Ne(ue);o&&(window.location.href=o.href)}}),this.on("wc_sessionRequest",(e,n)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=n.id,this.peerId=n.params[0].peerId,this.peerMeta=n.params[0].peerMeta;const r=Object.assign(Object.assign({},n),{method:"session_request"});this._eventManager.trigger(r)}),this.on("wc_sessionUpdate",(e,n)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",n.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){const e=this.protocol,n=this.handshakeTopic,r=this.version,o=encodeURIComponent(this.bridge),i=this.key;return`${e}:${n}@${r}?bridge=${o}&key=${i}`}_parseUri(e){const n=Qt(e);if(n.protocol===this.protocol){if(!n.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const r=n.handshakeTopic;if(!n.bridge)throw Error("Invalid or missing bridge url parameter value");const o=decodeURIComponent(n.bridge);if(!n.key)throw Error("Invalid or missing key parameter value");const i=n.key;return{handshakeTopic:r,bridge:o,key:i}}else throw new Error(Er)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.encrypt(e,n):null}async _decrypt(e){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.decrypt(e,n):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||typeof e.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||typeof e.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");const n={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(r,o)=>{if(r)throw r;if(e.peerMeta){const i=o.params[0].peerMeta.name;n.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}}function mi(t){return Q.getBrowerCrypto().getRandomValues(new Uint8Array(t))}const Kt=256,Zt=Kt,wi=Kt,L="AES-CBC",yi=`SHA-${Zt}`,fe="HMAC",bi="encrypt",vi="decrypt",Ei="sign",Si="verify";function Ci(t){return t===L?{length:Zt,name:L}:{hash:{name:yi},name:fe}}function ki(t){return t===L?[bi,vi]:[Ei,Si]}async function Ae(t,e=L){return Q.getSubtleCrypto().importKey("raw",t,Ci(e),!0,ki(e))}async function xi(t,e,n){const r=Q.getSubtleCrypto(),o=await Ae(e,L),i=await r.encrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function Ii(t,e,n){const r=Q.getSubtleCrypto(),o=await Ae(e,L),i=await r.decrypt({iv:t,name:L},o,n);return new Uint8Array(i)}async function Ri(t,e){const n=Q.getSubtleCrypto(),r=await Ae(t,fe),o=await n.sign({length:wi,name:fe},r,e);return new Uint8Array(o)}function Ti(t,e,n){return xi(t,e,n)}function Oi(t,e,n){return Ii(t,e,n)}async function Xt(t,e){return await Ri(t,e)}async function en(t){const e=(t||256)/8,n=mi(e);return St(W(n))}async function tn(t,e){const n=M(t.data),r=M(t.iv),o=M(t.hmac),i=N(o,!1),d=vt(n,r),f=await Xt(e,d),p=N(f,!1);return B(i)===B(p)}async function Ni(t,e,n){const r=j(Z(e)),o=n||await en(128),i=j(Z(o)),d=N(i,!1),f=JSON.stringify(t),p=wt(f),g=await Ti(i,r,p),w=N(g,!1),y=vt(g,i),b=await Xt(r,y),C=N(b,!1);return{data:w,hmac:C,iv:d}}async function Mi(t,e){const n=j(Z(e));if(!n)throw new Error("Missing key: required for decryption");if(!await tn(t,n))return null;const o=M(t.data),i=M(t.iv),d=await Oi(i,n,o),f=gt(d);let p;try{p=JSON.parse(f)}catch{return null}return p}const Li=Object.freeze(Object.defineProperty({__proto__:null,decrypt:Mi,encrypt:Ni,generateKey:en,verifyHmac:tn},Symbol.toStringTag,{value:"Module"}));class qi extends gi{constructor(e,n){super({cryptoLib:Li,connectorOpts:e,pushServerOpts:n})}}const Ai=et(ti);var Ui=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=Fe[e.format]||Fe.default;window.clipboardData.setData(y,t)}else w.clipboardData.clearData(),w.clipboardData.setData(e.format,t);e.onCopy&&(w.preventDefault(),e.onCopy(w.clipboardData))}),document.body.appendChild(f),i.selectNodeContents(f),d.addRange(i);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");p=!0}catch(w){n&&console.error("unable to copy using execCommand: ",w),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),p=!0}catch(y){n&&console.error("unable to copy using clipboardData: ",y),n&&console.error("falling back to prompt"),r=$i("message"in e?e.message:Di),window.prompt(r,t)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(i):d.removeAllRanges()),f&&document.body.removeChild(f),o()}return p}var Bi=ji;function nn(t,e){for(var n in e)t[n]=e[n];return t}function _e(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function X(t){this.props=t}function rn(t,e){function n(o){var i=this.props.ref,d=i==o.ref;return!d&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!d:_e(this.props,o)}function r(o){return this.shouldComponentUpdate=n,x(t,o)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(X.prototype=new A).isPureReactComponent=!0,X.prototype.shouldComponentUpdate=function(t,e){return _e(this.props,t)||_e(this.state,e)};var He=S.__b;S.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),He&&He(t)};var Wi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function on(t){function e(n){var r=nn({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=Wi,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var ze=function(t,e){return t==null?null:O(O(t).map(e))},sn={map:ze,forEach:ze,count:function(t){return t?O(t).length:0},only:function(t){var e=O(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:O},Fi=S.__e;S.__e=function(t,e,n,r){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e)}Fi(t,e,n,r)};var Qe=S.unmount;function an(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=nn({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return an(r,e,n)})),t}function cn(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return cn(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function H(){this.__u=0,this.t=null,this.__b=null}function ln(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function un(t){var e,n,r;function o(i){if(e||(e=t()).then(function(d){n=d.default||d},function(d){r=d}),r)throw r;if(!n)throw e;return x(n,i)}return o.displayName="Lazy",o.__f=!0,o}function D(){this.u=null,this.o=null}S.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Qe&&Qe(t)},(H.prototype=new A).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=ln(r.__v),i=!1,d=function(){i||(i=!0,n.__R=null,o?o(f):f())};n.__R=d;var f=function(){if(!--r.__u){if(r.state.__a){var p=r.state.__a;r.__v.__k[0]=cn(p,p.__c.__P,p.__c.__O)}var g;for(r.setState({__a:r.__b=null});g=r.t.pop();)g.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(d,d)},H.prototype.componentWillUnmount=function(){this.t=[]},H.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=an(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__a&&x($,null,t.fallback);return o&&(o.__u&=-33),[x($,null,e.__a?null:t.children),o]};var Je=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(r)}}),K(x(Hi,{context:e.context},t.__v),e.l)}function dn(t,e){var n=x(zi,{__v:t,i:e});return n.containerInfo=e,n}(D.prototype=new A).__a=function(t){var e=this,n=ln(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),Je(e,t,r)):o()};n?n(i):i()}},D.prototype.render=function(t){this.u=null,this.o=new Map;var e=O(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},D.prototype.componentDidUpdate=D.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Je(t,n,e)})};var hn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ji=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Vi=/[A-Z0-9]/g,Gi=typeof document<"u",Yi=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function fn(t,e,n){return e.__k==null&&(e.textContent=""),K(t,e),typeof n=="function"&&n(),t?t.__c:null}function _n(t,e,n){return hr(t,e),typeof n=="function"&&n(),t?t.__c:null}A.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(A.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ve=S.event;function Ki(){}function Zi(){return this.cancelBubble}function Xi(){return this.defaultPrevented}S.event=function(t){return Ve&&(t=Ve(t)),t.persist=Ki,t.isPropagationStopped=Zi,t.isDefaultPrevented=Xi,t.nativeEvent=t};var Ue,es={enumerable:!1,configurable:!0,get:function(){return this.class}},Ge=S.vnode;S.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,r=e.type,o={};for(var i in n){var d=n[i];if(!(i==="value"&&"defaultValue"in n&&d==null||Gi&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var f=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&d===!0?d="":f==="ondoubleclick"?i="ondblclick":f!=="onchange"||r!=="input"&&r!=="textarea"||Yi(n.type)?f==="onfocus"?i="onfocusin":f==="onblur"?i="onfocusout":Ji.test(i)?i=f:r.indexOf("-")===-1&&Qi.test(i)?i=i.replace(Vi,"-$&").toLowerCase():d===null&&(d=void 0):f=i="oninput",f==="oninput"&&o[i=f]&&(i="oninputCapture"),o[i]=d}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.value.indexOf(p.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=O(n.children).forEach(function(p){p.props.selected=o.multiple?o.defaultValue.indexOf(p.props.value)!=-1:o.defaultValue==p.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",es)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),e.props=o}(t),t.$$typeof=hn,Ge&&Ge(t)};var Ye=S.__r;S.__r=function(t){Ye&&Ye(t),Ue=t.__c};var Ke=S.diffed;S.diffed=function(t){Ke&&Ke(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value),Ue=null};var pn={ReactCurrentDispatcher:{current:{readContext:function(t){return Ue.__n[t.__c].props.value}}}},ts="17.0.2";function gn(t){return x.bind(null,t)}function V(t){return!!t&&t.$$typeof===hn}function mn(t){return V(t)&&t.type===$}function wn(t){return V(t)?fr.apply(null,arguments):t}function yn(t){return!!t.__k&&(K(null,t),!0)}function bn(t){return t&&(t.base||t.nodeType===1&&t)||null}var vn=function(t,e){return t(e)},En=function(t,e){return t(e)},Sn=$;function Pe(t){t()}function Cn(t){return t}function kn(){return[!1,Pe]}var xn=ee,In=V;function Rn(t,e){var n=e(),r=ge({h:{__:n,v:e}}),o=r[0].h,i=r[1];return ee(function(){o.__=n,o.v=e,ce(o)&&i({h:o})},[t,n,e]),me(function(){return ce(o)&&i({h:o}),t(function(){ce(o)&&i({h:o})})},[t]),n}function ce(t){var e,n,r=t.v,o=t.__;try{var i=r();return!((e=o)===(n=i)&&(e!==0||1/e==1/n)||e!=e&&n!=n)}catch{return!0}}var ns={useState:ge,useId:nt,useReducer:rt,useEffect:me,useLayoutEffect:ee,useInsertionEffect:xn,useTransition:kn,useDeferredValue:Cn,useSyncExternalStore:Rn,startTransition:Pe,useRef:ot,useImperativeHandle:it,useMemo:st,useCallback:at,useContext:ct,useDebugValue:lt,version:"17.0.2",Children:sn,render:fn,hydrate:_n,unmountComponentAtNode:yn,createPortal:dn,createElement:x,createContext:ut,createFactory:gn,cloneElement:wn,createRef:dt,Fragment:$,isValidElement:V,isElement:In,isFragment:mn,findDOMNode:bn,Component:A,PureComponent:X,memo:rn,forwardRef:on,flushSync:En,unstable_batchedUpdates:vn,StrictMode:Sn,Suspense:H,SuspenseList:D,lazy:un,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pn};const rs=Object.freeze(Object.defineProperty({__proto__:null,Children:sn,Component:A,Fragment:$,PureComponent:X,StrictMode:Sn,Suspense:H,SuspenseList:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pn,cloneElement:wn,createContext:ut,createElement:x,createFactory:gn,createPortal:dn,createRef:dt,default:ns,findDOMNode:bn,flushSync:En,forwardRef:on,hydrate:_n,isElement:In,isFragment:mn,isValidElement:V,lazy:un,memo:rn,render:fn,startTransition:Pe,unmountComponentAtNode:yn,unstable_batchedUpdates:vn,useCallback:at,useContext:ct,useDebugValue:lt,useDeferredValue:Cn,useEffect:me,useErrorBoundary:_r,useId:nt,useImperativeHandle:it,useInsertionEffect:xn,useLayoutEffect:ee,useMemo:st,useReducer:rt,useRef:ot,useState:ge,useSyncExternalStore:Rn,useTransition:kn,version:ts},Symbol.toStringTag,{value:"Module"})),os=et(rs);function Tn(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var E=Ai,On=Tn(dr),is=Tn(Bi),l=os;function ss(t){On.toString(t,{type:"terminal"}).then(console.log)}var as=`:root { --animation-duration: 300ms; } diff --git a/assets/index-9riKKNzS.js b/assets/index-9riKKNzS.js deleted file mode 100644 index 032faad..0000000 --- a/assets/index-9riKKNzS.js +++ /dev/null @@ -1,7 +0,0 @@ -import{aA as fe}from"./index-Gnz09uoc.js";const me=Symbol(),ee=Object.getPrototypeOf,B=new WeakMap,he=e=>e&&(B.has(e)?B.get(e):ee(e)===Object.prototype||ee(e)===Array.prototype),be=e=>he(e)&&e[me]||null,te=(e,t=!0)=>{B.set(e,t)};var J={VITE_REACT_APP_PROJECT_ID:"9d80089c30635ff84b5339d993d63fa1",VITE_PINATA_JWT:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI2MTc3YmY2ZS04NDhkLTQwMWMtOTIxYy0xYjFjNDE1Njg3NzEiLCJlbWFpbCI6Im1laXNhbXRhaGVyNzFAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInBpbl9wb2xpY3kiOnsicmVnaW9ucyI6W3siaWQiOiJGUkExIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9LHsiaWQiOiJOWUMxIiwiZGVzaXJlZFJlcGxpY2F0aW9uQ291bnQiOjF9XSwidmVyc2lvbiI6MX0sIm1mYV9lbmFibGVkIjpmYWxzZSwic3RhdHVzIjoiQUNUSVZFIn0sImF1dGhlbnRpY2F0aW9uVHlwZSI6InNjb3BlZEtleSIsInNjb3BlZEtleUtleSI6Ijg1MmZjNDkxOTdjNjIwYmE3ZGIyIiwic2NvcGVkS2V5U2VjcmV0IjoiNjhmNGQ4MGQ5OGM5ZDJlODM0MDlkMzgwZTlmZTI3MjllMWQ0OWYyOTI0MmE4OTE1ZmRkOWUwMjgyY2VmZjY5NCIsImlhdCI6MTcwMjEyNTY5OH0.5eYal8eAL9oe8IaQ7bw3vFdT8btKuiyEmOwz7e0y33M",BASE_URL:"/real-token/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const G=e=>typeof e=="object"&&e!==null,C=new WeakMap,Z=new WeakSet,ge=(e=Object.is,t=(n,b)=>new Proxy(n,b),s=n=>G(n)&&!Z.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,b,v=r)=>{const I=l.get(n);if((I==null?void 0:I[0])===b)return I[1];const y=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return te(y,!0),l.set(n,[b,y]),Reflect.ownKeys(n).forEach(N=>{if(Object.getOwnPropertyDescriptor(y,N))return;const E=Reflect.get(n,N),A={value:E,enumerable:!0,configurable:!0};if(Z.has(E))te(E,!1);else if(E instanceof Promise)delete A.value,A.get=()=>v(E);else if(C.has(E)){const[g,z]=C.get(E);A.value=c(g,z(),v)}Object.defineProperty(y,N,A)}),Object.preventExtensions(y)},m=new WeakMap,f=[1,1],L=n=>{if(!G(n))throw new Error("object required");const b=m.get(n);if(b)return b;let v=f[0];const I=new Set,y=(a,i=++f[0])=>{v!==i&&(v=i,I.forEach(o=>o(a,i)))};let N=f[1];const E=(a=++f[1])=>(N!==a&&!I.size&&(N=a,g.forEach(([i])=>{const o=i[1](a);o>v&&(v=o)})),v),A=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],y(h,o)},g=new Map,z=(a,i)=>{if((J?"production":void 0)!=="production"&&g.has(a))throw new Error("prop listener already exists");if(I.size){const o=i[3](A(a));g.set(a,[i,o])}else g.set(a,[i])},q=a=>{var i;const o=g.get(a);o&&(g.delete(a),(i=o[1])==null||i.call(o))},ue=a=>(I.add(a),I.size===1&&g.forEach(([o,h],P)=>{if((J?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const _=o[3](A(P));g.set(P,[o,_])}),()=>{I.delete(a),I.size===0&&g.forEach(([o,h],P)=>{h&&(h(),g.set(P,[o]))})}),F=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),R=t(F,{deleteProperty(a,i){const o=Reflect.get(a,i);q(i);const h=Reflect.deleteProperty(a,i);return h&&y(["delete",[i],o]),h},set(a,i,o,h){const P=Reflect.has(a,i),_=Reflect.get(a,i,h);if(P&&(e(_,o)||m.has(o)&&e(_,m.get(o))))return!0;q(i),G(o)&&(o=be(o)||o);let x=o;if(o instanceof Promise)o.then(j=>{o.status="fulfilled",o.value=j,y(["resolve",[i],j])}).catch(j=>{o.status="rejected",o.reason=j,y(["reject",[i],j])});else{!C.has(o)&&s(o)&&(x=L(o));const j=!Z.has(x)&&C.get(x);j&&z(i,j)}return Reflect.set(a,i,x,h),y(["set",[i],o,_]),!0}});m.set(n,R);const pe=[F,E,c,ue];return C.set(R,pe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&(R[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(F,a,i)}),R})=>[L,C,Z,e,t,s,r,l,c,m,f],[Ie]=ge();function M(e={}){return Ie(e)}function D(e,t,s){const r=C.get(e);(J?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(b=>{if(c.push(b),s){t(c.splice(0));return}l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ye(e,t){const s=C.get(e);(J?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=M({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),de={state:d,subscribe(e){return D(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},p={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return p.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return p.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(p.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!p.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(p.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(p.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=de.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),u=M({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ve={state:u,subscribe(e){return D(u.events,()=>e(ye(u.events[u.events.length-1])))},initialize(){u.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(u.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){u.connectedWalletId=e},click(e){if(u.enabled){const t={type:"CLICK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},track(e){if(u.enabled){const t={type:"TRACK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},view(e){if(u.enabled){const t={type:"VIEW",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}}},W=M({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),w={state:W,subscribe(e){return D(W,()=>e(W))},setChains(e){W.chains=e},setWalletConnectUri(e){W.walletConnectUri=e},setIsCustomDesktop(e){W.isCustomDesktop=e},setIsCustomMobile(e){W.isCustomMobile=e},setIsDataLoaded(e){W.isDataLoaded=e},setIsUiLoaded(e){W.isUiLoaded=e},setIsAuth(e){W.isAuth=e}},$=M({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),k={state:$,subscribe(e){return D($,()=>e($))},setConfig(e){var t,s;ve.initialize(),w.setChains(e.chains),w.setIsAuth(!!e.enableAuthMode),w.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),w.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),p.setModalVersionInStorage(),Object.assign($,e)}};var We=Object.defineProperty,se=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ne=(e,t,s)=>t in e?We(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Le=(e,t)=>{for(var s in t||(t={}))Oe.call(t,s)&&ne(e,s,t[s]);if(se)for(var s of se(t))Ee.call(t,s)&&ne(e,s,t[s]);return e};const K="https://explorer-api.walletconnect.com",H="wcm",X="js-2.6.2";async function Y(e,t){const s=Le({sdkType:H,sdkVersion:X},t),r=new URL(e,K);return r.searchParams.append("projectId",k.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const U={async getDesktopListings(e){return Y("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return Y("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return Y("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return Y("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${K}/w3m/v1/getWalletImage/${e}?projectId=${k.state.projectId}&sdkType=${H}&sdkVersion=${X}`},getAssetImageUrl(e){return`${K}/w3m/v1/getAssetImage/${e}?projectId=${k.state.projectId}&sdkType=${H}&sdkVersion=${X}`}};var je=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ae=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Me.call(t,s)&&re(e,s,t[s]);return e};const ie=p.isMobile(),O=M({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Ve={state:O,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=k.state;if(e==="NONE"||t==="ALL"&&!e)return O.recomendedWallets;if(p.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await U.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),L=e.indexOf(m.id);return f-L}),O.recomendedWallets=l}else{const{chains:s,isAuth:r}=w.state,l=s==null?void 0:s.join(","),c=p.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:p.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=ie?await U.getMobileListings(m):await U.getDesktopListings(m);O.recomendedWallets=Object.values(f)}return O.recomendedWallets},async getWallets(e){const t=Ae({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=k.state,{recomendedWallets:l}=O;if(r==="ALL")return O.wallets;l.length?t.excludedIds=l.map(v=>v.id).join(","):p.isArray(s)&&(t.excludedIds=s.join(",")),p.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),w.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:L}=ie?await U.getMobileListings(t):await U.getDesktopListings(t),n=Object.values(f),b=m?"search":"wallets";return O[b]={listings:[...O[b].listings,...n],total:L,page:c??1},{listings:n,total:L}},getWalletImageUrl(e){return U.getWalletImageUrl(e)},getAssetImageUrl(e){return U.getAssetImageUrl(e)},resetSearch(){O.search={listings:[],total:0,page:1}}},T=M({open:!1}),Q={state:T,subscribe(e){return D(T,()=>e(T))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=w.state;if(p.removeWalletConnectDeepLink(),w.setWalletConnectUri(e==null?void 0:e.uri),w.setChains(e==null?void 0:e.chains),de.reset("ConnectWallet"),s&&r)T.open=!0,t();else{const l=setInterval(()=>{const c=w.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),T.open=!0,t())},200)}})},close(){T.open=!1}};var Ue=Object.defineProperty,ae=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,le=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ne=(e,t)=>{for(var s in t||(t={}))Se.call(t,s)&&le(e,s,t[s]);if(ae)for(var s of ae(t))De.call(t,s)&&le(e,s,t[s]);return e};function Pe(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const V=M({themeMode:Pe()?"dark":"light"}),ce={state:V,subscribe(e){return D(V,()=>e(V))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(V.themeMode=t),s&&(V.themeVariables=Ne({},s))}},S=M({open:!1,message:"",variant:"success"}),Re={state:S,subscribe(e){return D(S,()=>e(S))},openToast(e,t){S.open=!0,S.message=e,S.variant=t},closeToast(){S.open=!1}};class Te{constructor(t){this.openModal=Q.open,this.closeModal=Q.close,this.subscribeModal=Q.subscribe,this.setTheme=ce.setThemeConfig,ce.setThemeConfig(t),k.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await fe(()=>import("./index-N1Lyn32V.js"),__vite__mapDeps([0,1,2,3]));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),w.setIsUiLoaded(!0)}}}const xe=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:Te},Symbol.toStringTag,{value:"Module"}));export{ve as R,de as T,p as a,xe as i,ce as n,Re as o,w as p,Q as s,Ve as t,k as y}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-N1Lyn32V.js","assets/browser-L9xZ4E6G.js","assets/index-Gnz09uoc.js","assets/index-bI5pgBhQ.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} \ No newline at end of file diff --git a/assets/index-v-w47Mu0.js b/assets/index-k-2Y-z04.js similarity index 55% rename from assets/index-v-w47Mu0.js rename to assets/index-k-2Y-z04.js index 1b42fe9..9bd1c90 100644 --- a/assets/index-v-w47Mu0.js +++ b/assets/index-k-2Y-z04.js @@ -1 +1 @@ -import{e as s}from"./index-Gnz09uoc.js";import{g as o,a as m,b as g,c as l,d as E,l as h,n as i}from"./index-Gnz09uoc.js";function n(e){return s(e)}export{o as getEnsAddress,m as getEnsAvatar,g as getEnsName,l as getEnsResolver,E as getEnsText,h as labelhash,i as namehash,n as normalize}; +import{e as s}from"./index-0aC6Xlgc.js";import{g as o,a as m,b as g,c as l,d as E,l as h,n as i}from"./index-0aC6Xlgc.js";function n(e){return s(e)}export{o as getEnsAddress,m as getEnsAvatar,g as getEnsName,l as getEnsResolver,E as getEnsText,h as labelhash,i as namehash,n as normalize}; diff --git a/assets/index-N1Lyn32V.js b/assets/index-pUtMfZxn.js similarity index 99% rename from assets/index-N1Lyn32V.js rename to assets/index-pUtMfZxn.js index 89c5951..7a2e5b9 100644 --- a/assets/index-N1Lyn32V.js +++ b/assets/index-pUtMfZxn.js @@ -1,4 +1,4 @@ -import{n as ve,s as qe,T as k,t as W,a as u,o as Q,R as jr,p as U,y as ne}from"./index-9riKKNzS.js";import{b as Nr}from"./browser-L9xZ4E6G.js";import"./index-Gnz09uoc.js";/** +import{n as ve,s as qe,T as k,t as W,a as u,o as Q,R as jr,p as U,y as ne}from"./index-3VXKPAHU.js";import{b as Nr}from"./browser-RXMF2uUL.js";import"./index-0aC6Xlgc.js";/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause diff --git a/assets/index-Y_z407jB.js b/assets/index-ynIz-0vY.js similarity index 99% rename from assets/index-Y_z407jB.js rename to assets/index-ynIz-0vY.js index 0018b7d..a1b48a7 100644 --- a/assets/index-Y_z407jB.js +++ b/assets/index-ynIz-0vY.js @@ -1,4 +1,4 @@ -import{i as ku,aB as no,p as te,f as wn,aC as G,q as B0}from"./index-Gnz09uoc.js";import{p as D0,h as $0}from"./hooks.module-o1hAt1ko.js";function F0(t,e){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Nu={},Vi={},io={};Object.defineProperty(io,"__esModule",{value:!0});io.walletLogo=void 0;const j0=(t,e)=>{let r;switch(t){case"standard":return r=e,`data:image/svg+xml,%3Csvg width='${e}' 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=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' 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*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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=e,`data:image/svg+xml,%3Csvg width='${e}' 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 `}};io.walletLogo=j0;var so={};Object.defineProperty(so,"__esModule",{value:!0});so.LINK_API_URL=void 0;so.LINK_API_URL="https://www.walletlink.org";var oo={};Object.defineProperty(oo,"__esModule",{value:!0});oo.ScopedLocalStorage=void 0;class U0{constructor(e){this.scope=e}setItem(e,r){localStorage.setItem(this.scopedKey(e),r)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){const e=this.scopedKey(""),r=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(e){return`${this.scope}:${e}`}}oo.ScopedLocalStorage=U0;var ti={},_n={};Object.defineProperty(_n,"__esModule",{value:!0});const W0=ku;function zc(t,e,r){try{Reflect.apply(t,e,r)}catch(n){setTimeout(()=>{throw n})}}function H0(t){const e=t.length,r=new Array(e);for(let n=0;n0&&([o]=r),o instanceof Error)throw o;const a=new Error(`Unhandled error.${o?` (${o.message})`:""}`);throw a.context=o,a}const s=i[e];if(s===void 0)return!1;if(typeof s=="function")zc(s,this,r);else{const o=s.length,a=H0(s);for(let c=0;c0?u:g},s.min=function(u,g){return u.cmp(g)<0?u:g},s.prototype._init=function(u,g,m){if(typeof u=="number")return this._initNumber(u,g,m);if(typeof u=="object")return this._initArray(u,g,m);g==="hex"&&(g=16),n(g===(g|0)&&g>=2&&g<=36),u=u.toString().replace(/\s+/g,"");var E=0;u[0]==="-"&&(E++,this.negative=1),E=0;E-=3)T=u[E]|u[E-1]<<8|u[E-2]<<16,this.words[S]|=T<>>26-L&67108863,L+=24,L>=26&&(L-=26,S++);else if(m==="le")for(E=0,S=0;E>>26-L&67108863,L+=24,L>=26&&(L-=26,S++);return this._strip()};function a(w,u){var g=w.charCodeAt(u);if(g>=48&&g<=57)return g-48;if(g>=65&&g<=70)return g-55;if(g>=97&&g<=102)return g-87;n(!1,"Invalid character in "+w)}function c(w,u,g){var m=a(w,g);return g-1>=u&&(m|=a(w,g-1)<<4),m}s.prototype._parseHex=function(u,g,m){this.length=Math.ceil((u.length-g)/6),this.words=new Array(this.length);for(var E=0;E=g;E-=2)L=c(u,g,E)<=18?(S-=18,T+=1,this.words[T]|=L>>>26):S+=8;else{var _=u.length-g;for(E=_%2===0?g+1:g;E=18?(S-=18,T+=1,this.words[T]|=L>>>26):S+=8}this._strip()};function l(w,u,g,m){for(var E=0,S=0,T=Math.min(w.length,g),L=u;L=49?S=_-49+10:_>=17?S=_-17+10:S=_,n(_>=0&&S1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{s.prototype.inspect=y}else s.prototype.inspect=y;function y(){return(this.red?""}var v=["","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"],A=[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],O=[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];s.prototype.toString=function(u,g){u=u||10,g=g|0||1;var m;if(u===16||u==="hex"){m="";for(var E=0,S=0,T=0;T>>24-E&16777215,E+=2,E>=26&&(E-=26,T--),S!==0||T!==this.length-1?m=v[6-_.length]+_+m:m=_+m}for(S!==0&&(m=S.toString(16)+m);m.length%g!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var d=A[u],R=O[u];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var X=Y.modrn(R).toString(u);Y=Y.idivn(R),Y.isZero()?m=X+m:m=v[d-X.length]+X+m}for(this.isZero()&&(m="0"+m);m.length%g!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(u,g){return this.toArrayLike(o,u,g)}),s.prototype.toArray=function(u,g){return this.toArrayLike(Array,u,g)};var j=function(u,g){return u.allocUnsafe?u.allocUnsafe(g):new u(g)};s.prototype.toArrayLike=function(u,g,m){this._strip();var E=this.byteLength(),S=m||Math.max(1,E);n(E<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0");var T=j(u,S),L=g==="le"?"LE":"BE";return this["_toArrayLike"+L](T,E),T},s.prototype._toArrayLikeLE=function(u,g){for(var m=0,E=0,S=0,T=0;S>8&255),m>16&255),T===6?(m>24&255),E=0,T=0):(E=L>>>24,T+=2)}if(m=0&&(u[m--]=L>>8&255),m>=0&&(u[m--]=L>>16&255),T===6?(m>=0&&(u[m--]=L>>24&255),E=0,T=0):(E=L>>>24,T+=2)}if(m>=0)for(u[m--]=E;m>=0;)u[m--]=0},Math.clz32?s.prototype._countBits=function(u){return 32-Math.clz32(u)}:s.prototype._countBits=function(u){var g=u,m=0;return g>=4096&&(m+=13,g>>>=13),g>=64&&(m+=7,g>>>=7),g>=8&&(m+=4,g>>>=4),g>=2&&(m+=2,g>>>=2),m+g},s.prototype._zeroBits=function(u){if(u===0)return 26;var g=u,m=0;return g&8191||(m+=13,g>>>=13),g&127||(m+=7,g>>>=7),g&15||(m+=4,g>>>=4),g&3||(m+=2,g>>>=2),g&1||m++,m},s.prototype.bitLength=function(){var u=this.words[this.length-1],g=this._countBits(u);return(this.length-1)*26+g};function F(w){for(var u=new Array(w.bitLength()),g=0;g>>E&1}return u}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,g=0;gu.length?this.clone().ior(u):u.clone().ior(this)},s.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},s.prototype.iuand=function(u){var g;this.length>u.length?g=u:g=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},s.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},s.prototype.iuxor=function(u){var g,m;this.length>u.length?(g=this,m=u):(g=u,m=this);for(var E=0;Eu.length?this.clone().ixor(u):u.clone().ixor(this)},s.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},s.prototype.inotn=function(u){n(typeof u=="number"&&u>=0);var g=Math.ceil(u/26)|0,m=u%26;this._expand(g),m>0&&g--;for(var E=0;E0&&(this.words[E]=~this.words[E]&67108863>>26-m),this._strip()},s.prototype.notn=function(u){return this.clone().inotn(u)},s.prototype.setn=function(u,g){n(typeof u=="number"&&u>=0);var m=u/26|0,E=u%26;return this._expand(m+1),g?this.words[m]=this.words[m]|1<u.length?(m=this,E=u):(m=u,E=this);for(var S=0,T=0;T>>26;for(;S!==0&&T>>26;if(this.length=m.length,S!==0)this.words[this.length]=S,this.length++;else if(m!==this)for(;Tu.length?this.clone().iadd(u):u.clone().iadd(this)},s.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var g=this.iadd(u);return u.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var E,S;m>0?(E=this,S=u):(E=u,S=this);for(var T=0,L=0;L>26,this.words[L]=g&67108863;for(;T!==0&&L>26,this.words[L]=g&67108863;if(T===0&&L>>26,Y=_&67108863,X=Math.min(d,u.length-1),k=Math.max(0,d-w.length+1);k<=X;k++){var B=d-k|0;E=w.words[B]|0,S=u.words[k]|0,T=E*S+Y,R+=T/67108864|0,Y=T&67108863}g.words[d]=Y|0,_=R|0}return _!==0?g.words[d]=_|0:g.length--,g._strip()}var N=function(u,g,m){var E=u.words,S=g.words,T=m.words,L=0,_,d,R,Y=E[0]|0,X=Y&8191,k=Y>>>13,B=E[1]|0,V=B&8191,Q=B>>>13,ge=E[2]|0,M=ge&8191,C=ge>>>13,q=E[3]|0,J=q&8191,fe=q>>>13,ye=E[4]|0,ae=ye&8191,Se=ye>>>13,Pt=E[5]|0,Ae=Pt&8191,Ie=Pt>>>13,ot=E[6]|0,Me=ot&8191,Te=ot>>>13,ct=E[7]|0,Ce=ct&8191,b=ct>>>13,f=E[8]|0,h=f&8191,x=f>>>13,P=E[9]|0,$=P&8191,W=P>>>13,de=S[0]|0,he=de&8191,ce=de>>>13,Oe=S[1]|0,ue=Oe&8191,Le=Oe>>>13,An=S[2]|0,Pe=An&8191,Be=An>>>13,Tn=S[3]|0,De=Tn&8191,$e=Tn>>>13,On=S[4]|0,Fe=On&8191,je=On>>>13,kn=S[5]|0,Ue=kn&8191,We=kn>>>13,Nn=S[6]|0,He=Nn&8191,Ve=Nn>>>13,Ln=S[7]|0,ze=Ln&8191,qe=Ln>>>13,Pn=S[8]|0,Ge=Pn&8191,Je=Pn>>>13,Bn=S[9]|0,Ze=Bn&8191,Qe=Bn>>>13;m.negative=u.negative^g.negative,m.length=19,_=Math.imul(X,he),d=Math.imul(X,ce),d=d+Math.imul(k,he)|0,R=Math.imul(k,ce);var Wr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,_=Math.imul(V,he),d=Math.imul(V,ce),d=d+Math.imul(Q,he)|0,R=Math.imul(Q,ce),_=_+Math.imul(X,ue)|0,d=d+Math.imul(X,Le)|0,d=d+Math.imul(k,ue)|0,R=R+Math.imul(k,Le)|0;var Hr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,_=Math.imul(M,he),d=Math.imul(M,ce),d=d+Math.imul(C,he)|0,R=Math.imul(C,ce),_=_+Math.imul(V,ue)|0,d=d+Math.imul(V,Le)|0,d=d+Math.imul(Q,ue)|0,R=R+Math.imul(Q,Le)|0,_=_+Math.imul(X,Pe)|0,d=d+Math.imul(X,Be)|0,d=d+Math.imul(k,Pe)|0,R=R+Math.imul(k,Be)|0;var Vr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,_=Math.imul(J,he),d=Math.imul(J,ce),d=d+Math.imul(fe,he)|0,R=Math.imul(fe,ce),_=_+Math.imul(M,ue)|0,d=d+Math.imul(M,Le)|0,d=d+Math.imul(C,ue)|0,R=R+Math.imul(C,Le)|0,_=_+Math.imul(V,Pe)|0,d=d+Math.imul(V,Be)|0,d=d+Math.imul(Q,Pe)|0,R=R+Math.imul(Q,Be)|0,_=_+Math.imul(X,De)|0,d=d+Math.imul(X,$e)|0,d=d+Math.imul(k,De)|0,R=R+Math.imul(k,$e)|0;var zr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(zr>>>26)|0,zr&=67108863,_=Math.imul(ae,he),d=Math.imul(ae,ce),d=d+Math.imul(Se,he)|0,R=Math.imul(Se,ce),_=_+Math.imul(J,ue)|0,d=d+Math.imul(J,Le)|0,d=d+Math.imul(fe,ue)|0,R=R+Math.imul(fe,Le)|0,_=_+Math.imul(M,Pe)|0,d=d+Math.imul(M,Be)|0,d=d+Math.imul(C,Pe)|0,R=R+Math.imul(C,Be)|0,_=_+Math.imul(V,De)|0,d=d+Math.imul(V,$e)|0,d=d+Math.imul(Q,De)|0,R=R+Math.imul(Q,$e)|0,_=_+Math.imul(X,Fe)|0,d=d+Math.imul(X,je)|0,d=d+Math.imul(k,Fe)|0,R=R+Math.imul(k,je)|0;var qr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(qr>>>26)|0,qr&=67108863,_=Math.imul(Ae,he),d=Math.imul(Ae,ce),d=d+Math.imul(Ie,he)|0,R=Math.imul(Ie,ce),_=_+Math.imul(ae,ue)|0,d=d+Math.imul(ae,Le)|0,d=d+Math.imul(Se,ue)|0,R=R+Math.imul(Se,Le)|0,_=_+Math.imul(J,Pe)|0,d=d+Math.imul(J,Be)|0,d=d+Math.imul(fe,Pe)|0,R=R+Math.imul(fe,Be)|0,_=_+Math.imul(M,De)|0,d=d+Math.imul(M,$e)|0,d=d+Math.imul(C,De)|0,R=R+Math.imul(C,$e)|0,_=_+Math.imul(V,Fe)|0,d=d+Math.imul(V,je)|0,d=d+Math.imul(Q,Fe)|0,R=R+Math.imul(Q,je)|0,_=_+Math.imul(X,Ue)|0,d=d+Math.imul(X,We)|0,d=d+Math.imul(k,Ue)|0,R=R+Math.imul(k,We)|0;var Gr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,_=Math.imul(Me,he),d=Math.imul(Me,ce),d=d+Math.imul(Te,he)|0,R=Math.imul(Te,ce),_=_+Math.imul(Ae,ue)|0,d=d+Math.imul(Ae,Le)|0,d=d+Math.imul(Ie,ue)|0,R=R+Math.imul(Ie,Le)|0,_=_+Math.imul(ae,Pe)|0,d=d+Math.imul(ae,Be)|0,d=d+Math.imul(Se,Pe)|0,R=R+Math.imul(Se,Be)|0,_=_+Math.imul(J,De)|0,d=d+Math.imul(J,$e)|0,d=d+Math.imul(fe,De)|0,R=R+Math.imul(fe,$e)|0,_=_+Math.imul(M,Fe)|0,d=d+Math.imul(M,je)|0,d=d+Math.imul(C,Fe)|0,R=R+Math.imul(C,je)|0,_=_+Math.imul(V,Ue)|0,d=d+Math.imul(V,We)|0,d=d+Math.imul(Q,Ue)|0,R=R+Math.imul(Q,We)|0,_=_+Math.imul(X,He)|0,d=d+Math.imul(X,Ve)|0,d=d+Math.imul(k,He)|0,R=R+Math.imul(k,Ve)|0;var Jr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,_=Math.imul(Ce,he),d=Math.imul(Ce,ce),d=d+Math.imul(b,he)|0,R=Math.imul(b,ce),_=_+Math.imul(Me,ue)|0,d=d+Math.imul(Me,Le)|0,d=d+Math.imul(Te,ue)|0,R=R+Math.imul(Te,Le)|0,_=_+Math.imul(Ae,Pe)|0,d=d+Math.imul(Ae,Be)|0,d=d+Math.imul(Ie,Pe)|0,R=R+Math.imul(Ie,Be)|0,_=_+Math.imul(ae,De)|0,d=d+Math.imul(ae,$e)|0,d=d+Math.imul(Se,De)|0,R=R+Math.imul(Se,$e)|0,_=_+Math.imul(J,Fe)|0,d=d+Math.imul(J,je)|0,d=d+Math.imul(fe,Fe)|0,R=R+Math.imul(fe,je)|0,_=_+Math.imul(M,Ue)|0,d=d+Math.imul(M,We)|0,d=d+Math.imul(C,Ue)|0,R=R+Math.imul(C,We)|0,_=_+Math.imul(V,He)|0,d=d+Math.imul(V,Ve)|0,d=d+Math.imul(Q,He)|0,R=R+Math.imul(Q,Ve)|0,_=_+Math.imul(X,ze)|0,d=d+Math.imul(X,qe)|0,d=d+Math.imul(k,ze)|0,R=R+Math.imul(k,qe)|0;var Zr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,_=Math.imul(h,he),d=Math.imul(h,ce),d=d+Math.imul(x,he)|0,R=Math.imul(x,ce),_=_+Math.imul(Ce,ue)|0,d=d+Math.imul(Ce,Le)|0,d=d+Math.imul(b,ue)|0,R=R+Math.imul(b,Le)|0,_=_+Math.imul(Me,Pe)|0,d=d+Math.imul(Me,Be)|0,d=d+Math.imul(Te,Pe)|0,R=R+Math.imul(Te,Be)|0,_=_+Math.imul(Ae,De)|0,d=d+Math.imul(Ae,$e)|0,d=d+Math.imul(Ie,De)|0,R=R+Math.imul(Ie,$e)|0,_=_+Math.imul(ae,Fe)|0,d=d+Math.imul(ae,je)|0,d=d+Math.imul(Se,Fe)|0,R=R+Math.imul(Se,je)|0,_=_+Math.imul(J,Ue)|0,d=d+Math.imul(J,We)|0,d=d+Math.imul(fe,Ue)|0,R=R+Math.imul(fe,We)|0,_=_+Math.imul(M,He)|0,d=d+Math.imul(M,Ve)|0,d=d+Math.imul(C,He)|0,R=R+Math.imul(C,Ve)|0,_=_+Math.imul(V,ze)|0,d=d+Math.imul(V,qe)|0,d=d+Math.imul(Q,ze)|0,R=R+Math.imul(Q,qe)|0,_=_+Math.imul(X,Ge)|0,d=d+Math.imul(X,Je)|0,d=d+Math.imul(k,Ge)|0,R=R+Math.imul(k,Je)|0;var Qr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,_=Math.imul($,he),d=Math.imul($,ce),d=d+Math.imul(W,he)|0,R=Math.imul(W,ce),_=_+Math.imul(h,ue)|0,d=d+Math.imul(h,Le)|0,d=d+Math.imul(x,ue)|0,R=R+Math.imul(x,Le)|0,_=_+Math.imul(Ce,Pe)|0,d=d+Math.imul(Ce,Be)|0,d=d+Math.imul(b,Pe)|0,R=R+Math.imul(b,Be)|0,_=_+Math.imul(Me,De)|0,d=d+Math.imul(Me,$e)|0,d=d+Math.imul(Te,De)|0,R=R+Math.imul(Te,$e)|0,_=_+Math.imul(Ae,Fe)|0,d=d+Math.imul(Ae,je)|0,d=d+Math.imul(Ie,Fe)|0,R=R+Math.imul(Ie,je)|0,_=_+Math.imul(ae,Ue)|0,d=d+Math.imul(ae,We)|0,d=d+Math.imul(Se,Ue)|0,R=R+Math.imul(Se,We)|0,_=_+Math.imul(J,He)|0,d=d+Math.imul(J,Ve)|0,d=d+Math.imul(fe,He)|0,R=R+Math.imul(fe,Ve)|0,_=_+Math.imul(M,ze)|0,d=d+Math.imul(M,qe)|0,d=d+Math.imul(C,ze)|0,R=R+Math.imul(C,qe)|0,_=_+Math.imul(V,Ge)|0,d=d+Math.imul(V,Je)|0,d=d+Math.imul(Q,Ge)|0,R=R+Math.imul(Q,Je)|0,_=_+Math.imul(X,Ze)|0,d=d+Math.imul(X,Qe)|0,d=d+Math.imul(k,Ze)|0,R=R+Math.imul(k,Qe)|0;var Yr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,_=Math.imul($,ue),d=Math.imul($,Le),d=d+Math.imul(W,ue)|0,R=Math.imul(W,Le),_=_+Math.imul(h,Pe)|0,d=d+Math.imul(h,Be)|0,d=d+Math.imul(x,Pe)|0,R=R+Math.imul(x,Be)|0,_=_+Math.imul(Ce,De)|0,d=d+Math.imul(Ce,$e)|0,d=d+Math.imul(b,De)|0,R=R+Math.imul(b,$e)|0,_=_+Math.imul(Me,Fe)|0,d=d+Math.imul(Me,je)|0,d=d+Math.imul(Te,Fe)|0,R=R+Math.imul(Te,je)|0,_=_+Math.imul(Ae,Ue)|0,d=d+Math.imul(Ae,We)|0,d=d+Math.imul(Ie,Ue)|0,R=R+Math.imul(Ie,We)|0,_=_+Math.imul(ae,He)|0,d=d+Math.imul(ae,Ve)|0,d=d+Math.imul(Se,He)|0,R=R+Math.imul(Se,Ve)|0,_=_+Math.imul(J,ze)|0,d=d+Math.imul(J,qe)|0,d=d+Math.imul(fe,ze)|0,R=R+Math.imul(fe,qe)|0,_=_+Math.imul(M,Ge)|0,d=d+Math.imul(M,Je)|0,d=d+Math.imul(C,Ge)|0,R=R+Math.imul(C,Je)|0,_=_+Math.imul(V,Ze)|0,d=d+Math.imul(V,Qe)|0,d=d+Math.imul(Q,Ze)|0,R=R+Math.imul(Q,Qe)|0;var Kr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,_=Math.imul($,Pe),d=Math.imul($,Be),d=d+Math.imul(W,Pe)|0,R=Math.imul(W,Be),_=_+Math.imul(h,De)|0,d=d+Math.imul(h,$e)|0,d=d+Math.imul(x,De)|0,R=R+Math.imul(x,$e)|0,_=_+Math.imul(Ce,Fe)|0,d=d+Math.imul(Ce,je)|0,d=d+Math.imul(b,Fe)|0,R=R+Math.imul(b,je)|0,_=_+Math.imul(Me,Ue)|0,d=d+Math.imul(Me,We)|0,d=d+Math.imul(Te,Ue)|0,R=R+Math.imul(Te,We)|0,_=_+Math.imul(Ae,He)|0,d=d+Math.imul(Ae,Ve)|0,d=d+Math.imul(Ie,He)|0,R=R+Math.imul(Ie,Ve)|0,_=_+Math.imul(ae,ze)|0,d=d+Math.imul(ae,qe)|0,d=d+Math.imul(Se,ze)|0,R=R+Math.imul(Se,qe)|0,_=_+Math.imul(J,Ge)|0,d=d+Math.imul(J,Je)|0,d=d+Math.imul(fe,Ge)|0,R=R+Math.imul(fe,Je)|0,_=_+Math.imul(M,Ze)|0,d=d+Math.imul(M,Qe)|0,d=d+Math.imul(C,Ze)|0,R=R+Math.imul(C,Qe)|0;var Xr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,_=Math.imul($,De),d=Math.imul($,$e),d=d+Math.imul(W,De)|0,R=Math.imul(W,$e),_=_+Math.imul(h,Fe)|0,d=d+Math.imul(h,je)|0,d=d+Math.imul(x,Fe)|0,R=R+Math.imul(x,je)|0,_=_+Math.imul(Ce,Ue)|0,d=d+Math.imul(Ce,We)|0,d=d+Math.imul(b,Ue)|0,R=R+Math.imul(b,We)|0,_=_+Math.imul(Me,He)|0,d=d+Math.imul(Me,Ve)|0,d=d+Math.imul(Te,He)|0,R=R+Math.imul(Te,Ve)|0,_=_+Math.imul(Ae,ze)|0,d=d+Math.imul(Ae,qe)|0,d=d+Math.imul(Ie,ze)|0,R=R+Math.imul(Ie,qe)|0,_=_+Math.imul(ae,Ge)|0,d=d+Math.imul(ae,Je)|0,d=d+Math.imul(Se,Ge)|0,R=R+Math.imul(Se,Je)|0,_=_+Math.imul(J,Ze)|0,d=d+Math.imul(J,Qe)|0,d=d+Math.imul(fe,Ze)|0,R=R+Math.imul(fe,Qe)|0;var en=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul($,Fe),d=Math.imul($,je),d=d+Math.imul(W,Fe)|0,R=Math.imul(W,je),_=_+Math.imul(h,Ue)|0,d=d+Math.imul(h,We)|0,d=d+Math.imul(x,Ue)|0,R=R+Math.imul(x,We)|0,_=_+Math.imul(Ce,He)|0,d=d+Math.imul(Ce,Ve)|0,d=d+Math.imul(b,He)|0,R=R+Math.imul(b,Ve)|0,_=_+Math.imul(Me,ze)|0,d=d+Math.imul(Me,qe)|0,d=d+Math.imul(Te,ze)|0,R=R+Math.imul(Te,qe)|0,_=_+Math.imul(Ae,Ge)|0,d=d+Math.imul(Ae,Je)|0,d=d+Math.imul(Ie,Ge)|0,R=R+Math.imul(Ie,Je)|0,_=_+Math.imul(ae,Ze)|0,d=d+Math.imul(ae,Qe)|0,d=d+Math.imul(Se,Ze)|0,R=R+Math.imul(Se,Qe)|0;var tn=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(tn>>>26)|0,tn&=67108863,_=Math.imul($,Ue),d=Math.imul($,We),d=d+Math.imul(W,Ue)|0,R=Math.imul(W,We),_=_+Math.imul(h,He)|0,d=d+Math.imul(h,Ve)|0,d=d+Math.imul(x,He)|0,R=R+Math.imul(x,Ve)|0,_=_+Math.imul(Ce,ze)|0,d=d+Math.imul(Ce,qe)|0,d=d+Math.imul(b,ze)|0,R=R+Math.imul(b,qe)|0,_=_+Math.imul(Me,Ge)|0,d=d+Math.imul(Me,Je)|0,d=d+Math.imul(Te,Ge)|0,R=R+Math.imul(Te,Je)|0,_=_+Math.imul(Ae,Ze)|0,d=d+Math.imul(Ae,Qe)|0,d=d+Math.imul(Ie,Ze)|0,R=R+Math.imul(Ie,Qe)|0;var fa=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(fa>>>26)|0,fa&=67108863,_=Math.imul($,He),d=Math.imul($,Ve),d=d+Math.imul(W,He)|0,R=Math.imul(W,Ve),_=_+Math.imul(h,ze)|0,d=d+Math.imul(h,qe)|0,d=d+Math.imul(x,ze)|0,R=R+Math.imul(x,qe)|0,_=_+Math.imul(Ce,Ge)|0,d=d+Math.imul(Ce,Je)|0,d=d+Math.imul(b,Ge)|0,R=R+Math.imul(b,Je)|0,_=_+Math.imul(Me,Ze)|0,d=d+Math.imul(Me,Qe)|0,d=d+Math.imul(Te,Ze)|0,R=R+Math.imul(Te,Qe)|0;var ha=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(ha>>>26)|0,ha&=67108863,_=Math.imul($,ze),d=Math.imul($,qe),d=d+Math.imul(W,ze)|0,R=Math.imul(W,qe),_=_+Math.imul(h,Ge)|0,d=d+Math.imul(h,Je)|0,d=d+Math.imul(x,Ge)|0,R=R+Math.imul(x,Je)|0,_=_+Math.imul(Ce,Ze)|0,d=d+Math.imul(Ce,Qe)|0,d=d+Math.imul(b,Ze)|0,R=R+Math.imul(b,Qe)|0;var da=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(da>>>26)|0,da&=67108863,_=Math.imul($,Ge),d=Math.imul($,Je),d=d+Math.imul(W,Ge)|0,R=Math.imul(W,Je),_=_+Math.imul(h,Ze)|0,d=d+Math.imul(h,Qe)|0,d=d+Math.imul(x,Ze)|0,R=R+Math.imul(x,Qe)|0;var pa=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(pa>>>26)|0,pa&=67108863,_=Math.imul($,Ze),d=Math.imul($,Qe),d=d+Math.imul(W,Ze)|0,R=Math.imul(W,Qe);var ga=(L+_|0)+((d&8191)<<13)|0;return L=(R+(d>>>13)|0)+(ga>>>26)|0,ga&=67108863,T[0]=Wr,T[1]=Hr,T[2]=Vr,T[3]=zr,T[4]=qr,T[5]=Gr,T[6]=Jr,T[7]=Zr,T[8]=Qr,T[9]=Yr,T[10]=Kr,T[11]=Xr,T[12]=en,T[13]=tn,T[14]=fa,T[15]=ha,T[16]=da,T[17]=pa,T[18]=ga,L!==0&&(T[19]=L,m.length++),m};Math.imul||(N=I);function D(w,u,g){g.negative=u.negative^w.negative,g.length=w.length+u.length;for(var m=0,E=0,S=0;S>>26)|0,E+=T>>>26,T&=67108863}g.words[S]=L,m=T,T=E}return m!==0?g.words[S]=m:g.length--,g._strip()}function H(w,u,g){return D(w,u,g)}s.prototype.mulTo=function(u,g){var m,E=this.length+u.length;return this.length===10&&u.length===10?m=N(this,u,g):E<63?m=I(this,u,g):E<1024?m=D(this,u,g):m=H(this,u,g),m},s.prototype.mul=function(u){var g=new s(null);return g.words=new Array(this.length+u.length),this.mulTo(u,g)},s.prototype.mulf=function(u){var g=new s(null);return g.words=new Array(this.length+u.length),H(this,u,g)},s.prototype.imul=function(u){return this.clone().mulTo(u,this)},s.prototype.imuln=function(u){var g=u<0;g&&(u=-u),n(typeof u=="number"),n(u<67108864);for(var m=0,E=0;E>=26,m+=S/67108864|0,m+=T>>>26,this.words[E]=T&67108863}return m!==0&&(this.words[E]=m,this.length++),g?this.ineg():this},s.prototype.muln=function(u){return this.clone().imuln(u)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(u){var g=F(u);if(g.length===0)return new s(1);for(var m=this,E=0;E=0);var g=u%26,m=(u-g)/26,E=67108863>>>26-g<<26-g,S;if(g!==0){var T=0;for(S=0;S>>26-g}T&&(this.words[S]=T,this.length++)}if(m!==0){for(S=this.length-1;S>=0;S--)this.words[S+m]=this.words[S];for(S=0;S=0);var E;g?E=(g-g%26)/26:E=0;var S=u%26,T=Math.min((u-S)/26,this.length),L=67108863^67108863>>>S<T)for(this.length-=T,d=0;d=0&&(R!==0||d>=E);d--){var Y=this.words[d]|0;this.words[d]=R<<26-S|Y>>>S,R=Y&L}return _&&R!==0&&(_.words[_.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(u,g,m){return n(this.negative===0),this.iushrn(u,g,m)},s.prototype.shln=function(u){return this.clone().ishln(u)},s.prototype.ushln=function(u){return this.clone().iushln(u)},s.prototype.shrn=function(u){return this.clone().ishrn(u)},s.prototype.ushrn=function(u){return this.clone().iushrn(u)},s.prototype.testn=function(u){n(typeof u=="number"&&u>=0);var g=u%26,m=(u-g)/26,E=1<=0);var g=u%26,m=(u-g)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(g!==0&&m++,this.length=Math.min(m,this.length),g!==0){var E=67108863^67108863>>>g<=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},s.prototype.isubn=function(u){if(n(typeof u=="number"),n(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g>26)-(_/67108864|0),this.words[S+m]=T&67108863}for(;S>26,this.words[S+m]=T&67108863;if(L===0)return this._strip();for(n(L===-1),L=0,S=0;S>26,this.words[S]=T&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(u,g){var m=this.length-u.length,E=this.clone(),S=u,T=S.words[S.length-1]|0,L=this._countBits(T);m=26-L,m!==0&&(S=S.ushln(m),E.iushln(m),T=S.words[S.length-1]|0);var _=E.length-S.length,d;if(g!=="mod"){d=new s(null),d.length=_+1,d.words=new Array(d.length);for(var R=0;R=0;X--){var k=(E.words[S.length+X]|0)*67108864+(E.words[S.length+X-1]|0);for(k=Math.min(k/T|0,67108863),E._ishlnsubmul(S,k,X);E.negative!==0;)k--,E.negative=0,E._ishlnsubmul(S,1,X),E.isZero()||(E.negative^=1);d&&(d.words[X]=k)}return d&&d._strip(),E._strip(),g!=="div"&&m!==0&&E.iushrn(m),{div:d||null,mod:E}},s.prototype.divmod=function(u,g,m){if(n(!u.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var E,S,T;return this.negative!==0&&u.negative===0?(T=this.neg().divmod(u,g),g!=="mod"&&(E=T.div.neg()),g!=="div"&&(S=T.mod.neg(),m&&S.negative!==0&&S.iadd(u)),{div:E,mod:S}):this.negative===0&&u.negative!==0?(T=this.divmod(u.neg(),g),g!=="mod"&&(E=T.div.neg()),{div:E,mod:T.mod}):this.negative&u.negative?(T=this.neg().divmod(u.neg(),g),g!=="div"&&(S=T.mod.neg(),m&&S.negative!==0&&S.isub(u)),{div:T.div,mod:S}):u.length>this.length||this.cmp(u)<0?{div:new s(0),mod:this}:u.length===1?g==="div"?{div:this.divn(u.words[0]),mod:null}:g==="mod"?{div:null,mod:new s(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new s(this.modrn(u.words[0]))}:this._wordDiv(u,g)},s.prototype.div=function(u){return this.divmod(u,"div",!1).div},s.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},s.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},s.prototype.divRound=function(u){var g=this.divmod(u);if(g.mod.isZero())return g.div;var m=g.div.negative!==0?g.mod.isub(u):g.mod,E=u.ushrn(1),S=u.andln(1),T=m.cmp(E);return T<0||S===1&&T===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},s.prototype.modrn=function(u){var g=u<0;g&&(u=-u),n(u<=67108863);for(var m=(1<<26)%u,E=0,S=this.length-1;S>=0;S--)E=(m*E+(this.words[S]|0))%u;return g?-E:E},s.prototype.modn=function(u){return this.modrn(u)},s.prototype.idivn=function(u){var g=u<0;g&&(u=-u),n(u<=67108863);for(var m=0,E=this.length-1;E>=0;E--){var S=(this.words[E]|0)+m*67108864;this.words[E]=S/u|0,m=S%u}return this._strip(),g?this.ineg():this},s.prototype.divn=function(u){return this.clone().idivn(u)},s.prototype.egcd=function(u){n(u.negative===0),n(!u.isZero());var g=this,m=u.clone();g.negative!==0?g=g.umod(u):g=g.clone();for(var E=new s(1),S=new s(0),T=new s(0),L=new s(1),_=0;g.isEven()&&m.isEven();)g.iushrn(1),m.iushrn(1),++_;for(var d=m.clone(),R=g.clone();!g.isZero();){for(var Y=0,X=1;!(g.words[0]&X)&&Y<26;++Y,X<<=1);if(Y>0)for(g.iushrn(Y);Y-- >0;)(E.isOdd()||S.isOdd())&&(E.iadd(d),S.isub(R)),E.iushrn(1),S.iushrn(1);for(var k=0,B=1;!(m.words[0]&B)&&k<26;++k,B<<=1);if(k>0)for(m.iushrn(k);k-- >0;)(T.isOdd()||L.isOdd())&&(T.iadd(d),L.isub(R)),T.iushrn(1),L.iushrn(1);g.cmp(m)>=0?(g.isub(m),E.isub(T),S.isub(L)):(m.isub(g),T.isub(E),L.isub(S))}return{a:T,b:L,gcd:m.iushln(_)}},s.prototype._invmp=function(u){n(u.negative===0),n(!u.isZero());var g=this,m=u.clone();g.negative!==0?g=g.umod(u):g=g.clone();for(var E=new s(1),S=new s(0),T=m.clone();g.cmpn(1)>0&&m.cmpn(1)>0;){for(var L=0,_=1;!(g.words[0]&_)&&L<26;++L,_<<=1);if(L>0)for(g.iushrn(L);L-- >0;)E.isOdd()&&E.iadd(T),E.iushrn(1);for(var d=0,R=1;!(m.words[0]&R)&&d<26;++d,R<<=1);if(d>0)for(m.iushrn(d);d-- >0;)S.isOdd()&&S.iadd(T),S.iushrn(1);g.cmp(m)>=0?(g.isub(m),E.isub(S)):(m.isub(g),S.isub(E))}var Y;return g.cmpn(1)===0?Y=E:Y=S,Y.cmpn(0)<0&&Y.iadd(u),Y},s.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var g=this.clone(),m=u.clone();g.negative=0,m.negative=0;for(var E=0;g.isEven()&&m.isEven();E++)g.iushrn(1),m.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;m.isEven();)m.iushrn(1);var S=g.cmp(m);if(S<0){var T=g;g=m,m=T}else if(S===0||m.cmpn(1)===0)break;g.isub(m)}while(!0);return m.iushln(E)},s.prototype.invm=function(u){return this.egcd(u).a.umod(u)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(u){return this.words[0]&u},s.prototype.bincn=function(u){n(typeof u=="number");var g=u%26,m=(u-g)/26,E=1<>>26,L&=67108863,this.words[T]=L}return S!==0&&(this.words[T]=S,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(u){var g=u<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this._strip();var m;if(this.length>1)m=1;else{g&&(u=-u),n(u<=67108863,"Number is too big");var E=this.words[0]|0;m=E===u?0:Eu.length)return 1;if(this.length=0;m--){var E=this.words[m]|0,S=u.words[m]|0;if(E!==S){ES&&(g=1);break}}return g},s.prototype.gtn=function(u){return this.cmpn(u)===1},s.prototype.gt=function(u){return this.cmp(u)===1},s.prototype.gten=function(u){return this.cmpn(u)>=0},s.prototype.gte=function(u){return this.cmp(u)>=0},s.prototype.ltn=function(u){return this.cmpn(u)===-1},s.prototype.lt=function(u){return this.cmp(u)===-1},s.prototype.lten=function(u){return this.cmpn(u)<=0},s.prototype.lte=function(u){return this.cmp(u)<=0},s.prototype.eqn=function(u){return this.cmpn(u)===0},s.prototype.eq=function(u){return this.cmp(u)===0},s.red=function(u){return new ne(u)},s.prototype.toRed=function(u){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(u){return this.red=u,this},s.prototype.forceRed=function(u){return n(!this.red,"Already a number in reduction context"),this._forceRed(u)},s.prototype.redAdd=function(u){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},s.prototype.redIAdd=function(u){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},s.prototype.redSub=function(u){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},s.prototype.redISub=function(u){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},s.prototype.redShl=function(u){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},s.prototype.redMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},s.prototype.redIMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(u){return n(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var U={k256:null,p224:null,p192:null,p25519:null};function z(w,u){this.name=w,this.p=new s(u,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}z.prototype._tmp=function(){var u=new s(null);return u.words=new Array(Math.ceil(this.n/13)),u},z.prototype.ireduce=function(u){var g=u,m;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),m=g.bitLength();while(m>this.n);var E=m0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},z.prototype.split=function(u,g){u.iushrn(this.n,0,g)},z.prototype.imulK=function(u){return u.imul(this.k)};function ee(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ee,z),ee.prototype.split=function(u,g){for(var m=4194303,E=Math.min(u.length,9),S=0;S>>22,T=L}T>>>=22,u.words[S-10]=T,T===0&&u.length>10?u.length-=10:u.length-=9},ee.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var g=0,m=0;m>>=26,u.words[m]=S,g=E}return g!==0&&(u.words[u.length++]=g),u},s._prime=function(u){if(U[u])return U[u];var g;if(u==="k256")g=new ee;else if(u==="p224")g=new K;else if(u==="p192")g=new Z;else if(u==="p25519")g=new se;else throw new Error("Unknown prime "+u);return U[u]=g,g};function ne(w){if(typeof w=="string"){var u=s._prime(w);this.m=u.p,this.prime=u}else n(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}ne.prototype._verify1=function(u){n(u.negative===0,"red works only with positives"),n(u.red,"red works only with red numbers")},ne.prototype._verify2=function(u,g){n((u.negative|g.negative)===0,"red works only with positives"),n(u.red&&u.red===g.red,"red works only with red numbers")},ne.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(p(u,u.umod(this.m)._forceRed(this)),u)},ne.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},ne.prototype.add=function(u,g){this._verify2(u,g);var m=u.add(g);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},ne.prototype.iadd=function(u,g){this._verify2(u,g);var m=u.iadd(g);return m.cmp(this.m)>=0&&m.isub(this.m),m},ne.prototype.sub=function(u,g){this._verify2(u,g);var m=u.sub(g);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},ne.prototype.isub=function(u,g){this._verify2(u,g);var m=u.isub(g);return m.cmpn(0)<0&&m.iadd(this.m),m},ne.prototype.shl=function(u,g){return this._verify1(u),this.imod(u.ushln(g))},ne.prototype.imul=function(u,g){return this._verify2(u,g),this.imod(u.imul(g))},ne.prototype.mul=function(u,g){return this._verify2(u,g),this.imod(u.mul(g))},ne.prototype.isqr=function(u){return this.imul(u,u.clone())},ne.prototype.sqr=function(u){return this.mul(u,u)},ne.prototype.sqrt=function(u){if(u.isZero())return u.clone();var g=this.m.andln(3);if(n(g%2===1),g===3){var m=this.m.add(new s(1)).iushrn(2);return this.pow(u,m)}for(var E=this.m.subn(1),S=0;!E.isZero()&&E.andln(1)===0;)S++,E.iushrn(1);n(!E.isZero());var T=new s(1).toRed(this),L=T.redNeg(),_=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new s(2*d*d).toRed(this);this.pow(d,_).cmp(L)!==0;)d.redIAdd(L);for(var R=this.pow(d,E),Y=this.pow(u,E.addn(1).iushrn(1)),X=this.pow(u,E),k=S;X.cmp(T)!==0;){for(var B=X,V=0;B.cmp(T)!==0;V++)B=B.redSqr();n(V=0;S--){for(var R=g.words[S],Y=d-1;Y>=0;Y--){var X=R>>Y&1;if(T!==E[0]&&(T=this.sqr(T)),X===0&&L===0){_=0;continue}L<<=1,L|=X,_++,!(_!==m&&(S!==0||Y!==0))&&(T=this.mul(T,E[L]),_=0,L=0)}d=26}return T},ne.prototype.convertTo=function(u){var g=u.umod(this.m);return g===u?g.clone():g},ne.prototype.convertFrom=function(u){var g=u.clone();return g.red=null,g},s.mont=function(u){return new oe(u)};function oe(w){ne.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(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)}i(oe,ne),oe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},oe.prototype.convertFrom=function(u){var g=this.imod(u.mul(this.rinv));return g.red=null,g},oe.prototype.imul=function(u,g){if(u.isZero()||g.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(g),E=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=m.isub(E).iushrn(this.shift),T=S;return S.cmp(this.m)>=0?T=S.isub(this.m):S.cmpn(0)<0&&(T=S.iadd(this.m)),T._forceRed(this)},oe.prototype.mul=function(u,g){if(u.isZero()||g.isZero())return new s(0)._forceRed(this);var m=u.mul(g),E=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=m.isub(E).iushrn(this.shift),T=S;return S.cmp(this.m)>=0?T=S.isub(this.m):S.cmpn(0)<0&&(T=S.iadd(this.m)),T._forceRed(this)},oe.prototype.invm=function(u){var g=this.imod(u._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(t,te)})(Lu);var ao=Lu.exports,yi={};Object.defineProperty(yi,"__esModule",{value:!0});yi.EVENTS=void 0;yi.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",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"};var Yi={},uh={},Nr={},ch=zi;zi.default=zi;zi.stable=hh;zi.stableStringify=hh;var Ws="[...]",lh="[Circular]",gn=[],ln=[];function fh(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function zi(t,e,r,n){typeof n>"u"&&(n=fh()),ou(t,"",0,[],void 0,0,n);var i;try{ln.length===0?i=JSON.stringify(t,e,r):i=JSON.stringify(t,dh(e),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;gn.length!==0;){var s=gn.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Zn(t,e,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:t}),gn.push([n,r,e,i])):ln.push([e,r,t]):(n[r]=t,gn.push([n,r,e]))}function ou(t,e,r,n,i,s,o){s+=1;var a;if(typeof t=="object"&&t!==null){for(a=0;ao.depthLimit){Zn(Ws,t,e,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Zn(Ws,t,e,i);return}if(n.push(t),Array.isArray(t))for(a=0;ae?1:0}function hh(t,e,r,n){typeof n>"u"&&(n=fh());var i=au(t,"",0,[],void 0,0,n)||t,s;try{ln.length===0?s=JSON.stringify(i,e,r):s=JSON.stringify(i,dh(e),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;gn.length!==0;){var o=gn.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return s}function au(t,e,r,n,i,s,o){s+=1;var a;if(typeof t=="object"&&t!==null){for(a=0;ao.depthLimit){Zn(Ws,t,e,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Zn(Ws,t,e,i);return}if(n.push(t),Array.isArray(t))for(a=0;a0)for(var n=0;n=1e3&&t<=4999}function Z0(t,e){if(e!=="[Circular]")return e}var Pu={},Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.errorValues=Lr.errorCodes=void 0;Lr.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}};Lr.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."}};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const e=Lr,r=Nr,n=e.errorCodes.rpc.internal,i="Unspecified error message. This is a bug, please report it.",s={code:n,message:o(n)};t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function o(v,A=i){if(Number.isInteger(v)){const O=v.toString();if(y(e.errorValues,O))return e.errorValues[O].message;if(l(v))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return A}t.getMessageFromCode=o;function a(v){if(!Number.isInteger(v))return!1;const A=v.toString();return!!(e.errorValues[A]||l(v))}t.isValidCode=a;function c(v,{fallbackError:A=s,shouldIncludeStack:O=!1}={}){var j,F;if(!A||!Number.isInteger(A.code)||typeof A.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(v instanceof r.EthereumRpcError)return v.serialize();const I={};if(v&&typeof v=="object"&&!Array.isArray(v)&&y(v,"code")&&a(v.code)){const D=v;I.code=D.code,D.message&&typeof D.message=="string"?(I.message=D.message,y(D,"data")&&(I.data=D.data)):(I.message=o(I.code),I.data={originalError:p(v)})}else{I.code=A.code;const D=(j=v)===null||j===void 0?void 0:j.message;I.message=D&&typeof D=="string"?D:A.message,I.data={originalError:p(v)}}const N=(F=v)===null||F===void 0?void 0:F.stack;return O&&v&&N&&typeof N=="string"&&(I.stack=N),I}t.serializeError=c;function l(v){return v>=-32099&&v<=-32e3}function p(v){return v&&typeof v=="object"&&!Array.isArray(v)?Object.assign({},v):v}function y(v,A){return Object.prototype.hasOwnProperty.call(v,A)}})(Pu);var uo={};Object.defineProperty(uo,"__esModule",{value:!0});uo.ethErrors=void 0;const Bu=Nr,gh=Pu,mt=Lr;uo.ethErrors={rpc:{parse:t=>Bt(mt.errorCodes.rpc.parse,t),invalidRequest:t=>Bt(mt.errorCodes.rpc.invalidRequest,t),invalidParams:t=>Bt(mt.errorCodes.rpc.invalidParams,t),methodNotFound:t=>Bt(mt.errorCodes.rpc.methodNotFound,t),internal:t=>Bt(mt.errorCodes.rpc.internal,t),server:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Bt(e,t)},invalidInput:t=>Bt(mt.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>Bt(mt.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>Bt(mt.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>Bt(mt.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>Bt(mt.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>Bt(mt.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>Ai(mt.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>Ai(mt.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>Ai(mt.errorCodes.provider.unsupportedMethod,t),disconnected:t=>Ai(mt.errorCodes.provider.disconnected,t),chainDisconnected:t=>Ai(mt.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:r,data:n}=t;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new Bu.EthereumProviderError(e,r,n)}}};function Bt(t,e){const[r,n]=yh(e);return new Bu.EthereumRpcError(t,r||gh.getMessageFromCode(t),n)}function Ai(t,e){const[r,n]=yh(e);return new Bu.EthereumProviderError(t,r||gh.getMessageFromCode(t),n)}function yh(t){if(t){if(typeof t=="string")return[t];if(typeof t=="object"&&!Array.isArray(t)){const{message:e,data:r}=t;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,r]}}return[]}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;const e=Nr;Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return e.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return e.EthereumProviderError}});const r=Pu;Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const n=uo;Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return n.ethErrors}});const i=Lr;Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return i.errorCodes}})})(uh);var Ne={},co={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Web3Method=void 0,function(e){e.requestEthereumAccounts="requestEthereumAccounts",e.signEthereumMessage="signEthereumMessage",e.signEthereumTransaction="signEthereumTransaction",e.submitEthereumTransaction="submitEthereumTransaction",e.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",e.scanQRCode="scanQRCode",e.generic="generic",e.childRequestEthereumAccounts="childRequestEthereumAccounts",e.addEthereumChain="addEthereumChain",e.switchEthereumChain="switchEthereumChain",e.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",e.watchAsset="watchAsset",e.selectProvider="selectProvider"}(t.Web3Method||(t.Web3Method={}))})(co);Object.defineProperty(Ne,"__esModule",{value:!0});Ne.EthereumAddressFromSignedMessageResponse=Ne.SubmitEthereumTransactionResponse=Ne.SignEthereumTransactionResponse=Ne.SignEthereumMessageResponse=Ne.isRequestEthereumAccountsResponse=Ne.SelectProviderResponse=Ne.WatchAssetReponse=Ne.RequestEthereumAccountsResponse=Ne.SwitchEthereumChainResponse=Ne.AddEthereumChainResponse=Ne.isErrorResponse=void 0;const yr=co;function Q0(t){var e,r;return((e=t)===null||e===void 0?void 0:e.method)!==void 0&&((r=t)===null||r===void 0?void 0:r.errorMessage)!==void 0}Ne.isErrorResponse=Q0;function Y0(t){return{method:yr.Web3Method.addEthereumChain,result:t}}Ne.AddEthereumChainResponse=Y0;function K0(t){return{method:yr.Web3Method.switchEthereumChain,result:t}}Ne.SwitchEthereumChainResponse=K0;function X0(t){return{method:yr.Web3Method.requestEthereumAccounts,result:t}}Ne.RequestEthereumAccountsResponse=X0;function eg(t){return{method:yr.Web3Method.watchAsset,result:t}}Ne.WatchAssetReponse=eg;function tg(t){return{method:yr.Web3Method.selectProvider,result:t}}Ne.SelectProviderResponse=tg;function rg(t){return t&&t.method===yr.Web3Method.requestEthereumAccounts}Ne.isRequestEthereumAccountsResponse=rg;function ng(t){return{method:yr.Web3Method.signEthereumMessage,result:t}}Ne.SignEthereumMessageResponse=ng;function ig(t){return{method:yr.Web3Method.signEthereumTransaction,result:t}}Ne.SignEthereumTransactionResponse=ig;function sg(t){return{method:yr.Web3Method.submitEthereumTransaction,result:t}}Ne.SubmitEthereumTransactionResponse=sg;function og(t){return{method:yr.Web3Method.ethereumAddressFromSignedMessage,result:t}}Ne.EthereumAddressFromSignedMessageResponse=og;var bi={};Object.defineProperty(bi,"__esModule",{value:!0});bi.LIB_VERSION=void 0;bi.LIB_VERSION="3.7.2";(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCode=t.serializeError=t.standardErrors=t.standardErrorMessage=t.standardErrorCodes=void 0;const e=uh,r=Ne,n=bi;t.standardErrorCodes=Object.freeze(Object.assign(Object.assign({},e.errorCodes),{provider:Object.freeze(Object.assign(Object.assign({},e.errorCodes.provider),{unsupportedChain:4902}))}));function i(p){return p!==void 0?(0,e.getMessageFromCode)(p):"Unknown error"}t.standardErrorMessage=i,t.standardErrors=Object.freeze(Object.assign(Object.assign({},e.ethErrors),{provider:Object.freeze(Object.assign(Object.assign({},e.ethErrors.provider),{unsupportedChain:(p="")=>e.ethErrors.provider.custom({code:t.standardErrorCodes.provider.unsupportedChain,message:`Unrecognized chain ID ${p}. Try adding the chain using wallet_addEthereumChain first.`})}))}));function s(p,y){const v=(0,e.serializeError)(o(p),{shouldIncludeStack:!0}),A=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");A.searchParams.set("version",n.LIB_VERSION),A.searchParams.set("code",v.code.toString());const O=a(v.data,y);return O&&A.searchParams.set("method",O),A.searchParams.set("message",v.message),Object.assign(Object.assign({},v),{docUrl:A.href})}t.serializeError=s;function o(p){return typeof p=="string"?{message:p,code:t.standardErrorCodes.rpc.internal}:(0,r.isErrorResponse)(p)?Object.assign(Object.assign({},p),{message:p.errorMessage,code:p.errorCode,data:{method:p.method,result:p.result}}):p}function a(p,y){var v;const A=(v=p)===null||v===void 0?void 0:v.method;if(A)return A;if(y!==void 0)return typeof y=="string"?y:Array.isArray(y)?y.length>0?y[0].method:void 0:y.method}function c(p){var y;if(typeof p=="number")return p;if(l(p))return(y=p.code)!==null&&y!==void 0?y:p.errorCode}t.getErrorCode=c;function l(p){return typeof p=="object"&&p!==null&&(typeof p.code=="number"||typeof p.errorCode=="number")}})(Yi);var vi={},bh={exports:{}},uu={exports:{}};typeof Object.create=="function"?uu.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:uu.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var er=uu.exports,cu={exports:{}},Ki={},lo={};lo.byteLength=cg;lo.toByteArray=fg;lo.fromByteArray=pg;var lr=[],jt=[],ag=typeof Uint8Array<"u"?Uint8Array:Array,ya="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Dn=0,ug=ya.length;Dn0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function cg(t){var e=vh(t),r=e[0],n=e[1];return(r+n)*3/4-n}function lg(t,e,r){return(e+r)*3/4-r}function fg(t){var e,r=vh(t),n=r[0],i=r[1],s=new ag(lg(t,n,i)),o=0,a=i>0?n-4:n,c;for(c=0;c>16&255,s[o++]=e>>8&255,s[o++]=e&255;return i===2&&(e=jt[t.charCodeAt(c)]<<2|jt[t.charCodeAt(c+1)]>>4,s[o++]=e&255),i===1&&(e=jt[t.charCodeAt(c)]<<10|jt[t.charCodeAt(c+1)]<<4|jt[t.charCodeAt(c+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function hg(t){return lr[t>>18&63]+lr[t>>12&63]+lr[t>>6&63]+lr[t&63]}function dg(t,e,r){for(var n,i=[],s=e;sa?a:o+s));return n===1?(e=t[r-1],i.push(lr[e>>2]+lr[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(lr[e>>10]+lr[e>>4&63]+lr[e<<2&63]+"=")),i.join("")}var Du={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Du.read=function(t,e,r,n,i){var s,o,a=i*8-n-1,c=(1<>1,p=-7,y=r?i-1:0,v=r?-1:1,A=t[e+y];for(y+=v,s=A&(1<<-p)-1,A>>=-p,p+=a;p>0;s=s*256+t[e+y],y+=v,p-=8);for(o=s&(1<<-p)-1,s>>=-p,p+=n;p>0;o=o*256+t[e+y],y+=v,p-=8);if(s===0)s=1-l;else{if(s===c)return o?NaN:(A?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-l}return(A?-1:1)*o*Math.pow(2,s-n)};Du.write=function(t,e,r,n,i,s){var o,a,c,l=s*8-i-1,p=(1<>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=n?0:s-1,O=n?1:-1,j=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=p):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+y>=1?e+=v/c:e+=v*Math.pow(2,1-y),e*c>=2&&(o++,c/=2),o+y>=p?(a=0,o=p):o+y>=1?(a=(e*c-1)*Math.pow(2,i),o=o+y):(a=e*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;t[r+A]=a&255,A+=O,a/=256,i-=8);for(o=o<0;t[r+A]=o&255,A+=O,o/=256,l-=8);t[r+A-O]|=j*128};/*! +import{i as ku,aB as no,p as te,f as wn,aC as G,q as B0}from"./index-0aC6Xlgc.js";import{p as D0,h as $0}from"./hooks.module-o1hAt1ko.js";function F0(t,e){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Nu={},Vi={},io={};Object.defineProperty(io,"__esModule",{value:!0});io.walletLogo=void 0;const j0=(t,e)=>{let r;switch(t){case"standard":return r=e,`data:image/svg+xml,%3Csvg width='${e}' 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=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' 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*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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=e,`data:image/svg+xml,%3Csvg width='${e}' 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 `}};io.walletLogo=j0;var so={};Object.defineProperty(so,"__esModule",{value:!0});so.LINK_API_URL=void 0;so.LINK_API_URL="https://www.walletlink.org";var oo={};Object.defineProperty(oo,"__esModule",{value:!0});oo.ScopedLocalStorage=void 0;class U0{constructor(e){this.scope=e}setItem(e,r){localStorage.setItem(this.scopedKey(e),r)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){const e=this.scopedKey(""),r=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(e){return`${this.scope}:${e}`}}oo.ScopedLocalStorage=U0;var ti={},_n={};Object.defineProperty(_n,"__esModule",{value:!0});const W0=ku;function zc(t,e,r){try{Reflect.apply(t,e,r)}catch(n){setTimeout(()=>{throw n})}}function H0(t){const e=t.length,r=new Array(e);for(let n=0;n0&&([o]=r),o instanceof Error)throw o;const a=new Error(`Unhandled error.${o?` (${o.message})`:""}`);throw a.context=o,a}const s=i[e];if(s===void 0)return!1;if(typeof s=="function")zc(s,this,r);else{const o=s.length,a=H0(s);for(let c=0;c0?u:g},s.min=function(u,g){return u.cmp(g)<0?u:g},s.prototype._init=function(u,g,m){if(typeof u=="number")return this._initNumber(u,g,m);if(typeof u=="object")return this._initArray(u,g,m);g==="hex"&&(g=16),n(g===(g|0)&&g>=2&&g<=36),u=u.toString().replace(/\s+/g,"");var E=0;u[0]==="-"&&(E++,this.negative=1),E=0;E-=3)T=u[E]|u[E-1]<<8|u[E-2]<<16,this.words[S]|=T<>>26-L&67108863,L+=24,L>=26&&(L-=26,S++);else if(m==="le")for(E=0,S=0;E>>26-L&67108863,L+=24,L>=26&&(L-=26,S++);return this._strip()};function a(w,u){var g=w.charCodeAt(u);if(g>=48&&g<=57)return g-48;if(g>=65&&g<=70)return g-55;if(g>=97&&g<=102)return g-87;n(!1,"Invalid character in "+w)}function c(w,u,g){var m=a(w,g);return g-1>=u&&(m|=a(w,g-1)<<4),m}s.prototype._parseHex=function(u,g,m){this.length=Math.ceil((u.length-g)/6),this.words=new Array(this.length);for(var E=0;E=g;E-=2)L=c(u,g,E)<=18?(S-=18,T+=1,this.words[T]|=L>>>26):S+=8;else{var _=u.length-g;for(E=_%2===0?g+1:g;E=18?(S-=18,T+=1,this.words[T]|=L>>>26):S+=8}this._strip()};function l(w,u,g,m){for(var E=0,S=0,T=Math.min(w.length,g),L=u;L=49?S=_-49+10:_>=17?S=_-17+10:S=_,n(_>=0&&S1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{s.prototype.inspect=y}else s.prototype.inspect=y;function y(){return(this.red?""}var v=["","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"],A=[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],O=[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];s.prototype.toString=function(u,g){u=u||10,g=g|0||1;var m;if(u===16||u==="hex"){m="";for(var E=0,S=0,T=0;T>>24-E&16777215,E+=2,E>=26&&(E-=26,T--),S!==0||T!==this.length-1?m=v[6-_.length]+_+m:m=_+m}for(S!==0&&(m=S.toString(16)+m);m.length%g!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var d=A[u],R=O[u];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var X=Y.modrn(R).toString(u);Y=Y.idivn(R),Y.isZero()?m=X+m:m=v[d-X.length]+X+m}for(this.isZero()&&(m="0"+m);m.length%g!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(u,g){return this.toArrayLike(o,u,g)}),s.prototype.toArray=function(u,g){return this.toArrayLike(Array,u,g)};var j=function(u,g){return u.allocUnsafe?u.allocUnsafe(g):new u(g)};s.prototype.toArrayLike=function(u,g,m){this._strip();var E=this.byteLength(),S=m||Math.max(1,E);n(E<=S,"byte array longer than desired length"),n(S>0,"Requested array length <= 0");var T=j(u,S),L=g==="le"?"LE":"BE";return this["_toArrayLike"+L](T,E),T},s.prototype._toArrayLikeLE=function(u,g){for(var m=0,E=0,S=0,T=0;S>8&255),m>16&255),T===6?(m>24&255),E=0,T=0):(E=L>>>24,T+=2)}if(m=0&&(u[m--]=L>>8&255),m>=0&&(u[m--]=L>>16&255),T===6?(m>=0&&(u[m--]=L>>24&255),E=0,T=0):(E=L>>>24,T+=2)}if(m>=0)for(u[m--]=E;m>=0;)u[m--]=0},Math.clz32?s.prototype._countBits=function(u){return 32-Math.clz32(u)}:s.prototype._countBits=function(u){var g=u,m=0;return g>=4096&&(m+=13,g>>>=13),g>=64&&(m+=7,g>>>=7),g>=8&&(m+=4,g>>>=4),g>=2&&(m+=2,g>>>=2),m+g},s.prototype._zeroBits=function(u){if(u===0)return 26;var g=u,m=0;return g&8191||(m+=13,g>>>=13),g&127||(m+=7,g>>>=7),g&15||(m+=4,g>>>=4),g&3||(m+=2,g>>>=2),g&1||m++,m},s.prototype.bitLength=function(){var u=this.words[this.length-1],g=this._countBits(u);return(this.length-1)*26+g};function F(w){for(var u=new Array(w.bitLength()),g=0;g>>E&1}return u}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,g=0;gu.length?this.clone().ior(u):u.clone().ior(this)},s.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},s.prototype.iuand=function(u){var g;this.length>u.length?g=u:g=this;for(var m=0;mu.length?this.clone().iand(u):u.clone().iand(this)},s.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},s.prototype.iuxor=function(u){var g,m;this.length>u.length?(g=this,m=u):(g=u,m=this);for(var E=0;Eu.length?this.clone().ixor(u):u.clone().ixor(this)},s.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},s.prototype.inotn=function(u){n(typeof u=="number"&&u>=0);var g=Math.ceil(u/26)|0,m=u%26;this._expand(g),m>0&&g--;for(var E=0;E0&&(this.words[E]=~this.words[E]&67108863>>26-m),this._strip()},s.prototype.notn=function(u){return this.clone().inotn(u)},s.prototype.setn=function(u,g){n(typeof u=="number"&&u>=0);var m=u/26|0,E=u%26;return this._expand(m+1),g?this.words[m]=this.words[m]|1<u.length?(m=this,E=u):(m=u,E=this);for(var S=0,T=0;T>>26;for(;S!==0&&T>>26;if(this.length=m.length,S!==0)this.words[this.length]=S,this.length++;else if(m!==this)for(;Tu.length?this.clone().iadd(u):u.clone().iadd(this)},s.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var g=this.iadd(u);return u.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var E,S;m>0?(E=this,S=u):(E=u,S=this);for(var T=0,L=0;L>26,this.words[L]=g&67108863;for(;T!==0&&L>26,this.words[L]=g&67108863;if(T===0&&L>>26,Y=_&67108863,X=Math.min(d,u.length-1),k=Math.max(0,d-w.length+1);k<=X;k++){var B=d-k|0;E=w.words[B]|0,S=u.words[k]|0,T=E*S+Y,R+=T/67108864|0,Y=T&67108863}g.words[d]=Y|0,_=R|0}return _!==0?g.words[d]=_|0:g.length--,g._strip()}var N=function(u,g,m){var E=u.words,S=g.words,T=m.words,L=0,_,d,R,Y=E[0]|0,X=Y&8191,k=Y>>>13,B=E[1]|0,V=B&8191,Q=B>>>13,ge=E[2]|0,M=ge&8191,C=ge>>>13,q=E[3]|0,J=q&8191,fe=q>>>13,ye=E[4]|0,ae=ye&8191,Se=ye>>>13,Pt=E[5]|0,Ae=Pt&8191,Ie=Pt>>>13,ot=E[6]|0,Me=ot&8191,Te=ot>>>13,ct=E[7]|0,Ce=ct&8191,b=ct>>>13,f=E[8]|0,h=f&8191,x=f>>>13,P=E[9]|0,$=P&8191,W=P>>>13,de=S[0]|0,he=de&8191,ce=de>>>13,Oe=S[1]|0,ue=Oe&8191,Le=Oe>>>13,An=S[2]|0,Pe=An&8191,Be=An>>>13,Tn=S[3]|0,De=Tn&8191,$e=Tn>>>13,On=S[4]|0,Fe=On&8191,je=On>>>13,kn=S[5]|0,Ue=kn&8191,We=kn>>>13,Nn=S[6]|0,He=Nn&8191,Ve=Nn>>>13,Ln=S[7]|0,ze=Ln&8191,qe=Ln>>>13,Pn=S[8]|0,Ge=Pn&8191,Je=Pn>>>13,Bn=S[9]|0,Ze=Bn&8191,Qe=Bn>>>13;m.negative=u.negative^g.negative,m.length=19,_=Math.imul(X,he),d=Math.imul(X,ce),d=d+Math.imul(k,he)|0,R=Math.imul(k,ce);var Wr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,_=Math.imul(V,he),d=Math.imul(V,ce),d=d+Math.imul(Q,he)|0,R=Math.imul(Q,ce),_=_+Math.imul(X,ue)|0,d=d+Math.imul(X,Le)|0,d=d+Math.imul(k,ue)|0,R=R+Math.imul(k,Le)|0;var Hr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,_=Math.imul(M,he),d=Math.imul(M,ce),d=d+Math.imul(C,he)|0,R=Math.imul(C,ce),_=_+Math.imul(V,ue)|0,d=d+Math.imul(V,Le)|0,d=d+Math.imul(Q,ue)|0,R=R+Math.imul(Q,Le)|0,_=_+Math.imul(X,Pe)|0,d=d+Math.imul(X,Be)|0,d=d+Math.imul(k,Pe)|0,R=R+Math.imul(k,Be)|0;var Vr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,_=Math.imul(J,he),d=Math.imul(J,ce),d=d+Math.imul(fe,he)|0,R=Math.imul(fe,ce),_=_+Math.imul(M,ue)|0,d=d+Math.imul(M,Le)|0,d=d+Math.imul(C,ue)|0,R=R+Math.imul(C,Le)|0,_=_+Math.imul(V,Pe)|0,d=d+Math.imul(V,Be)|0,d=d+Math.imul(Q,Pe)|0,R=R+Math.imul(Q,Be)|0,_=_+Math.imul(X,De)|0,d=d+Math.imul(X,$e)|0,d=d+Math.imul(k,De)|0,R=R+Math.imul(k,$e)|0;var zr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(zr>>>26)|0,zr&=67108863,_=Math.imul(ae,he),d=Math.imul(ae,ce),d=d+Math.imul(Se,he)|0,R=Math.imul(Se,ce),_=_+Math.imul(J,ue)|0,d=d+Math.imul(J,Le)|0,d=d+Math.imul(fe,ue)|0,R=R+Math.imul(fe,Le)|0,_=_+Math.imul(M,Pe)|0,d=d+Math.imul(M,Be)|0,d=d+Math.imul(C,Pe)|0,R=R+Math.imul(C,Be)|0,_=_+Math.imul(V,De)|0,d=d+Math.imul(V,$e)|0,d=d+Math.imul(Q,De)|0,R=R+Math.imul(Q,$e)|0,_=_+Math.imul(X,Fe)|0,d=d+Math.imul(X,je)|0,d=d+Math.imul(k,Fe)|0,R=R+Math.imul(k,je)|0;var qr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(qr>>>26)|0,qr&=67108863,_=Math.imul(Ae,he),d=Math.imul(Ae,ce),d=d+Math.imul(Ie,he)|0,R=Math.imul(Ie,ce),_=_+Math.imul(ae,ue)|0,d=d+Math.imul(ae,Le)|0,d=d+Math.imul(Se,ue)|0,R=R+Math.imul(Se,Le)|0,_=_+Math.imul(J,Pe)|0,d=d+Math.imul(J,Be)|0,d=d+Math.imul(fe,Pe)|0,R=R+Math.imul(fe,Be)|0,_=_+Math.imul(M,De)|0,d=d+Math.imul(M,$e)|0,d=d+Math.imul(C,De)|0,R=R+Math.imul(C,$e)|0,_=_+Math.imul(V,Fe)|0,d=d+Math.imul(V,je)|0,d=d+Math.imul(Q,Fe)|0,R=R+Math.imul(Q,je)|0,_=_+Math.imul(X,Ue)|0,d=d+Math.imul(X,We)|0,d=d+Math.imul(k,Ue)|0,R=R+Math.imul(k,We)|0;var Gr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,_=Math.imul(Me,he),d=Math.imul(Me,ce),d=d+Math.imul(Te,he)|0,R=Math.imul(Te,ce),_=_+Math.imul(Ae,ue)|0,d=d+Math.imul(Ae,Le)|0,d=d+Math.imul(Ie,ue)|0,R=R+Math.imul(Ie,Le)|0,_=_+Math.imul(ae,Pe)|0,d=d+Math.imul(ae,Be)|0,d=d+Math.imul(Se,Pe)|0,R=R+Math.imul(Se,Be)|0,_=_+Math.imul(J,De)|0,d=d+Math.imul(J,$e)|0,d=d+Math.imul(fe,De)|0,R=R+Math.imul(fe,$e)|0,_=_+Math.imul(M,Fe)|0,d=d+Math.imul(M,je)|0,d=d+Math.imul(C,Fe)|0,R=R+Math.imul(C,je)|0,_=_+Math.imul(V,Ue)|0,d=d+Math.imul(V,We)|0,d=d+Math.imul(Q,Ue)|0,R=R+Math.imul(Q,We)|0,_=_+Math.imul(X,He)|0,d=d+Math.imul(X,Ve)|0,d=d+Math.imul(k,He)|0,R=R+Math.imul(k,Ve)|0;var Jr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,_=Math.imul(Ce,he),d=Math.imul(Ce,ce),d=d+Math.imul(b,he)|0,R=Math.imul(b,ce),_=_+Math.imul(Me,ue)|0,d=d+Math.imul(Me,Le)|0,d=d+Math.imul(Te,ue)|0,R=R+Math.imul(Te,Le)|0,_=_+Math.imul(Ae,Pe)|0,d=d+Math.imul(Ae,Be)|0,d=d+Math.imul(Ie,Pe)|0,R=R+Math.imul(Ie,Be)|0,_=_+Math.imul(ae,De)|0,d=d+Math.imul(ae,$e)|0,d=d+Math.imul(Se,De)|0,R=R+Math.imul(Se,$e)|0,_=_+Math.imul(J,Fe)|0,d=d+Math.imul(J,je)|0,d=d+Math.imul(fe,Fe)|0,R=R+Math.imul(fe,je)|0,_=_+Math.imul(M,Ue)|0,d=d+Math.imul(M,We)|0,d=d+Math.imul(C,Ue)|0,R=R+Math.imul(C,We)|0,_=_+Math.imul(V,He)|0,d=d+Math.imul(V,Ve)|0,d=d+Math.imul(Q,He)|0,R=R+Math.imul(Q,Ve)|0,_=_+Math.imul(X,ze)|0,d=d+Math.imul(X,qe)|0,d=d+Math.imul(k,ze)|0,R=R+Math.imul(k,qe)|0;var Zr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,_=Math.imul(h,he),d=Math.imul(h,ce),d=d+Math.imul(x,he)|0,R=Math.imul(x,ce),_=_+Math.imul(Ce,ue)|0,d=d+Math.imul(Ce,Le)|0,d=d+Math.imul(b,ue)|0,R=R+Math.imul(b,Le)|0,_=_+Math.imul(Me,Pe)|0,d=d+Math.imul(Me,Be)|0,d=d+Math.imul(Te,Pe)|0,R=R+Math.imul(Te,Be)|0,_=_+Math.imul(Ae,De)|0,d=d+Math.imul(Ae,$e)|0,d=d+Math.imul(Ie,De)|0,R=R+Math.imul(Ie,$e)|0,_=_+Math.imul(ae,Fe)|0,d=d+Math.imul(ae,je)|0,d=d+Math.imul(Se,Fe)|0,R=R+Math.imul(Se,je)|0,_=_+Math.imul(J,Ue)|0,d=d+Math.imul(J,We)|0,d=d+Math.imul(fe,Ue)|0,R=R+Math.imul(fe,We)|0,_=_+Math.imul(M,He)|0,d=d+Math.imul(M,Ve)|0,d=d+Math.imul(C,He)|0,R=R+Math.imul(C,Ve)|0,_=_+Math.imul(V,ze)|0,d=d+Math.imul(V,qe)|0,d=d+Math.imul(Q,ze)|0,R=R+Math.imul(Q,qe)|0,_=_+Math.imul(X,Ge)|0,d=d+Math.imul(X,Je)|0,d=d+Math.imul(k,Ge)|0,R=R+Math.imul(k,Je)|0;var Qr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,_=Math.imul($,he),d=Math.imul($,ce),d=d+Math.imul(W,he)|0,R=Math.imul(W,ce),_=_+Math.imul(h,ue)|0,d=d+Math.imul(h,Le)|0,d=d+Math.imul(x,ue)|0,R=R+Math.imul(x,Le)|0,_=_+Math.imul(Ce,Pe)|0,d=d+Math.imul(Ce,Be)|0,d=d+Math.imul(b,Pe)|0,R=R+Math.imul(b,Be)|0,_=_+Math.imul(Me,De)|0,d=d+Math.imul(Me,$e)|0,d=d+Math.imul(Te,De)|0,R=R+Math.imul(Te,$e)|0,_=_+Math.imul(Ae,Fe)|0,d=d+Math.imul(Ae,je)|0,d=d+Math.imul(Ie,Fe)|0,R=R+Math.imul(Ie,je)|0,_=_+Math.imul(ae,Ue)|0,d=d+Math.imul(ae,We)|0,d=d+Math.imul(Se,Ue)|0,R=R+Math.imul(Se,We)|0,_=_+Math.imul(J,He)|0,d=d+Math.imul(J,Ve)|0,d=d+Math.imul(fe,He)|0,R=R+Math.imul(fe,Ve)|0,_=_+Math.imul(M,ze)|0,d=d+Math.imul(M,qe)|0,d=d+Math.imul(C,ze)|0,R=R+Math.imul(C,qe)|0,_=_+Math.imul(V,Ge)|0,d=d+Math.imul(V,Je)|0,d=d+Math.imul(Q,Ge)|0,R=R+Math.imul(Q,Je)|0,_=_+Math.imul(X,Ze)|0,d=d+Math.imul(X,Qe)|0,d=d+Math.imul(k,Ze)|0,R=R+Math.imul(k,Qe)|0;var Yr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,_=Math.imul($,ue),d=Math.imul($,Le),d=d+Math.imul(W,ue)|0,R=Math.imul(W,Le),_=_+Math.imul(h,Pe)|0,d=d+Math.imul(h,Be)|0,d=d+Math.imul(x,Pe)|0,R=R+Math.imul(x,Be)|0,_=_+Math.imul(Ce,De)|0,d=d+Math.imul(Ce,$e)|0,d=d+Math.imul(b,De)|0,R=R+Math.imul(b,$e)|0,_=_+Math.imul(Me,Fe)|0,d=d+Math.imul(Me,je)|0,d=d+Math.imul(Te,Fe)|0,R=R+Math.imul(Te,je)|0,_=_+Math.imul(Ae,Ue)|0,d=d+Math.imul(Ae,We)|0,d=d+Math.imul(Ie,Ue)|0,R=R+Math.imul(Ie,We)|0,_=_+Math.imul(ae,He)|0,d=d+Math.imul(ae,Ve)|0,d=d+Math.imul(Se,He)|0,R=R+Math.imul(Se,Ve)|0,_=_+Math.imul(J,ze)|0,d=d+Math.imul(J,qe)|0,d=d+Math.imul(fe,ze)|0,R=R+Math.imul(fe,qe)|0,_=_+Math.imul(M,Ge)|0,d=d+Math.imul(M,Je)|0,d=d+Math.imul(C,Ge)|0,R=R+Math.imul(C,Je)|0,_=_+Math.imul(V,Ze)|0,d=d+Math.imul(V,Qe)|0,d=d+Math.imul(Q,Ze)|0,R=R+Math.imul(Q,Qe)|0;var Kr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,_=Math.imul($,Pe),d=Math.imul($,Be),d=d+Math.imul(W,Pe)|0,R=Math.imul(W,Be),_=_+Math.imul(h,De)|0,d=d+Math.imul(h,$e)|0,d=d+Math.imul(x,De)|0,R=R+Math.imul(x,$e)|0,_=_+Math.imul(Ce,Fe)|0,d=d+Math.imul(Ce,je)|0,d=d+Math.imul(b,Fe)|0,R=R+Math.imul(b,je)|0,_=_+Math.imul(Me,Ue)|0,d=d+Math.imul(Me,We)|0,d=d+Math.imul(Te,Ue)|0,R=R+Math.imul(Te,We)|0,_=_+Math.imul(Ae,He)|0,d=d+Math.imul(Ae,Ve)|0,d=d+Math.imul(Ie,He)|0,R=R+Math.imul(Ie,Ve)|0,_=_+Math.imul(ae,ze)|0,d=d+Math.imul(ae,qe)|0,d=d+Math.imul(Se,ze)|0,R=R+Math.imul(Se,qe)|0,_=_+Math.imul(J,Ge)|0,d=d+Math.imul(J,Je)|0,d=d+Math.imul(fe,Ge)|0,R=R+Math.imul(fe,Je)|0,_=_+Math.imul(M,Ze)|0,d=d+Math.imul(M,Qe)|0,d=d+Math.imul(C,Ze)|0,R=R+Math.imul(C,Qe)|0;var Xr=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,_=Math.imul($,De),d=Math.imul($,$e),d=d+Math.imul(W,De)|0,R=Math.imul(W,$e),_=_+Math.imul(h,Fe)|0,d=d+Math.imul(h,je)|0,d=d+Math.imul(x,Fe)|0,R=R+Math.imul(x,je)|0,_=_+Math.imul(Ce,Ue)|0,d=d+Math.imul(Ce,We)|0,d=d+Math.imul(b,Ue)|0,R=R+Math.imul(b,We)|0,_=_+Math.imul(Me,He)|0,d=d+Math.imul(Me,Ve)|0,d=d+Math.imul(Te,He)|0,R=R+Math.imul(Te,Ve)|0,_=_+Math.imul(Ae,ze)|0,d=d+Math.imul(Ae,qe)|0,d=d+Math.imul(Ie,ze)|0,R=R+Math.imul(Ie,qe)|0,_=_+Math.imul(ae,Ge)|0,d=d+Math.imul(ae,Je)|0,d=d+Math.imul(Se,Ge)|0,R=R+Math.imul(Se,Je)|0,_=_+Math.imul(J,Ze)|0,d=d+Math.imul(J,Qe)|0,d=d+Math.imul(fe,Ze)|0,R=R+Math.imul(fe,Qe)|0;var en=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul($,Fe),d=Math.imul($,je),d=d+Math.imul(W,Fe)|0,R=Math.imul(W,je),_=_+Math.imul(h,Ue)|0,d=d+Math.imul(h,We)|0,d=d+Math.imul(x,Ue)|0,R=R+Math.imul(x,We)|0,_=_+Math.imul(Ce,He)|0,d=d+Math.imul(Ce,Ve)|0,d=d+Math.imul(b,He)|0,R=R+Math.imul(b,Ve)|0,_=_+Math.imul(Me,ze)|0,d=d+Math.imul(Me,qe)|0,d=d+Math.imul(Te,ze)|0,R=R+Math.imul(Te,qe)|0,_=_+Math.imul(Ae,Ge)|0,d=d+Math.imul(Ae,Je)|0,d=d+Math.imul(Ie,Ge)|0,R=R+Math.imul(Ie,Je)|0,_=_+Math.imul(ae,Ze)|0,d=d+Math.imul(ae,Qe)|0,d=d+Math.imul(Se,Ze)|0,R=R+Math.imul(Se,Qe)|0;var tn=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(tn>>>26)|0,tn&=67108863,_=Math.imul($,Ue),d=Math.imul($,We),d=d+Math.imul(W,Ue)|0,R=Math.imul(W,We),_=_+Math.imul(h,He)|0,d=d+Math.imul(h,Ve)|0,d=d+Math.imul(x,He)|0,R=R+Math.imul(x,Ve)|0,_=_+Math.imul(Ce,ze)|0,d=d+Math.imul(Ce,qe)|0,d=d+Math.imul(b,ze)|0,R=R+Math.imul(b,qe)|0,_=_+Math.imul(Me,Ge)|0,d=d+Math.imul(Me,Je)|0,d=d+Math.imul(Te,Ge)|0,R=R+Math.imul(Te,Je)|0,_=_+Math.imul(Ae,Ze)|0,d=d+Math.imul(Ae,Qe)|0,d=d+Math.imul(Ie,Ze)|0,R=R+Math.imul(Ie,Qe)|0;var fa=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(fa>>>26)|0,fa&=67108863,_=Math.imul($,He),d=Math.imul($,Ve),d=d+Math.imul(W,He)|0,R=Math.imul(W,Ve),_=_+Math.imul(h,ze)|0,d=d+Math.imul(h,qe)|0,d=d+Math.imul(x,ze)|0,R=R+Math.imul(x,qe)|0,_=_+Math.imul(Ce,Ge)|0,d=d+Math.imul(Ce,Je)|0,d=d+Math.imul(b,Ge)|0,R=R+Math.imul(b,Je)|0,_=_+Math.imul(Me,Ze)|0,d=d+Math.imul(Me,Qe)|0,d=d+Math.imul(Te,Ze)|0,R=R+Math.imul(Te,Qe)|0;var ha=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(ha>>>26)|0,ha&=67108863,_=Math.imul($,ze),d=Math.imul($,qe),d=d+Math.imul(W,ze)|0,R=Math.imul(W,qe),_=_+Math.imul(h,Ge)|0,d=d+Math.imul(h,Je)|0,d=d+Math.imul(x,Ge)|0,R=R+Math.imul(x,Je)|0,_=_+Math.imul(Ce,Ze)|0,d=d+Math.imul(Ce,Qe)|0,d=d+Math.imul(b,Ze)|0,R=R+Math.imul(b,Qe)|0;var da=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(da>>>26)|0,da&=67108863,_=Math.imul($,Ge),d=Math.imul($,Je),d=d+Math.imul(W,Ge)|0,R=Math.imul(W,Je),_=_+Math.imul(h,Ze)|0,d=d+Math.imul(h,Qe)|0,d=d+Math.imul(x,Ze)|0,R=R+Math.imul(x,Qe)|0;var pa=(L+_|0)+((d&8191)<<13)|0;L=(R+(d>>>13)|0)+(pa>>>26)|0,pa&=67108863,_=Math.imul($,Ze),d=Math.imul($,Qe),d=d+Math.imul(W,Ze)|0,R=Math.imul(W,Qe);var ga=(L+_|0)+((d&8191)<<13)|0;return L=(R+(d>>>13)|0)+(ga>>>26)|0,ga&=67108863,T[0]=Wr,T[1]=Hr,T[2]=Vr,T[3]=zr,T[4]=qr,T[5]=Gr,T[6]=Jr,T[7]=Zr,T[8]=Qr,T[9]=Yr,T[10]=Kr,T[11]=Xr,T[12]=en,T[13]=tn,T[14]=fa,T[15]=ha,T[16]=da,T[17]=pa,T[18]=ga,L!==0&&(T[19]=L,m.length++),m};Math.imul||(N=I);function D(w,u,g){g.negative=u.negative^w.negative,g.length=w.length+u.length;for(var m=0,E=0,S=0;S>>26)|0,E+=T>>>26,T&=67108863}g.words[S]=L,m=T,T=E}return m!==0?g.words[S]=m:g.length--,g._strip()}function H(w,u,g){return D(w,u,g)}s.prototype.mulTo=function(u,g){var m,E=this.length+u.length;return this.length===10&&u.length===10?m=N(this,u,g):E<63?m=I(this,u,g):E<1024?m=D(this,u,g):m=H(this,u,g),m},s.prototype.mul=function(u){var g=new s(null);return g.words=new Array(this.length+u.length),this.mulTo(u,g)},s.prototype.mulf=function(u){var g=new s(null);return g.words=new Array(this.length+u.length),H(this,u,g)},s.prototype.imul=function(u){return this.clone().mulTo(u,this)},s.prototype.imuln=function(u){var g=u<0;g&&(u=-u),n(typeof u=="number"),n(u<67108864);for(var m=0,E=0;E>=26,m+=S/67108864|0,m+=T>>>26,this.words[E]=T&67108863}return m!==0&&(this.words[E]=m,this.length++),g?this.ineg():this},s.prototype.muln=function(u){return this.clone().imuln(u)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(u){var g=F(u);if(g.length===0)return new s(1);for(var m=this,E=0;E=0);var g=u%26,m=(u-g)/26,E=67108863>>>26-g<<26-g,S;if(g!==0){var T=0;for(S=0;S>>26-g}T&&(this.words[S]=T,this.length++)}if(m!==0){for(S=this.length-1;S>=0;S--)this.words[S+m]=this.words[S];for(S=0;S=0);var E;g?E=(g-g%26)/26:E=0;var S=u%26,T=Math.min((u-S)/26,this.length),L=67108863^67108863>>>S<T)for(this.length-=T,d=0;d=0&&(R!==0||d>=E);d--){var Y=this.words[d]|0;this.words[d]=R<<26-S|Y>>>S,R=Y&L}return _&&R!==0&&(_.words[_.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(u,g,m){return n(this.negative===0),this.iushrn(u,g,m)},s.prototype.shln=function(u){return this.clone().ishln(u)},s.prototype.ushln=function(u){return this.clone().iushln(u)},s.prototype.shrn=function(u){return this.clone().ishrn(u)},s.prototype.ushrn=function(u){return this.clone().iushrn(u)},s.prototype.testn=function(u){n(typeof u=="number"&&u>=0);var g=u%26,m=(u-g)/26,E=1<=0);var g=u%26,m=(u-g)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(g!==0&&m++,this.length=Math.min(m,this.length),g!==0){var E=67108863^67108863>>>g<=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},s.prototype.isubn=function(u){if(n(typeof u=="number"),n(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g>26)-(_/67108864|0),this.words[S+m]=T&67108863}for(;S>26,this.words[S+m]=T&67108863;if(L===0)return this._strip();for(n(L===-1),L=0,S=0;S>26,this.words[S]=T&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(u,g){var m=this.length-u.length,E=this.clone(),S=u,T=S.words[S.length-1]|0,L=this._countBits(T);m=26-L,m!==0&&(S=S.ushln(m),E.iushln(m),T=S.words[S.length-1]|0);var _=E.length-S.length,d;if(g!=="mod"){d=new s(null),d.length=_+1,d.words=new Array(d.length);for(var R=0;R=0;X--){var k=(E.words[S.length+X]|0)*67108864+(E.words[S.length+X-1]|0);for(k=Math.min(k/T|0,67108863),E._ishlnsubmul(S,k,X);E.negative!==0;)k--,E.negative=0,E._ishlnsubmul(S,1,X),E.isZero()||(E.negative^=1);d&&(d.words[X]=k)}return d&&d._strip(),E._strip(),g!=="div"&&m!==0&&E.iushrn(m),{div:d||null,mod:E}},s.prototype.divmod=function(u,g,m){if(n(!u.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var E,S,T;return this.negative!==0&&u.negative===0?(T=this.neg().divmod(u,g),g!=="mod"&&(E=T.div.neg()),g!=="div"&&(S=T.mod.neg(),m&&S.negative!==0&&S.iadd(u)),{div:E,mod:S}):this.negative===0&&u.negative!==0?(T=this.divmod(u.neg(),g),g!=="mod"&&(E=T.div.neg()),{div:E,mod:T.mod}):this.negative&u.negative?(T=this.neg().divmod(u.neg(),g),g!=="div"&&(S=T.mod.neg(),m&&S.negative!==0&&S.isub(u)),{div:T.div,mod:S}):u.length>this.length||this.cmp(u)<0?{div:new s(0),mod:this}:u.length===1?g==="div"?{div:this.divn(u.words[0]),mod:null}:g==="mod"?{div:null,mod:new s(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new s(this.modrn(u.words[0]))}:this._wordDiv(u,g)},s.prototype.div=function(u){return this.divmod(u,"div",!1).div},s.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},s.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},s.prototype.divRound=function(u){var g=this.divmod(u);if(g.mod.isZero())return g.div;var m=g.div.negative!==0?g.mod.isub(u):g.mod,E=u.ushrn(1),S=u.andln(1),T=m.cmp(E);return T<0||S===1&&T===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},s.prototype.modrn=function(u){var g=u<0;g&&(u=-u),n(u<=67108863);for(var m=(1<<26)%u,E=0,S=this.length-1;S>=0;S--)E=(m*E+(this.words[S]|0))%u;return g?-E:E},s.prototype.modn=function(u){return this.modrn(u)},s.prototype.idivn=function(u){var g=u<0;g&&(u=-u),n(u<=67108863);for(var m=0,E=this.length-1;E>=0;E--){var S=(this.words[E]|0)+m*67108864;this.words[E]=S/u|0,m=S%u}return this._strip(),g?this.ineg():this},s.prototype.divn=function(u){return this.clone().idivn(u)},s.prototype.egcd=function(u){n(u.negative===0),n(!u.isZero());var g=this,m=u.clone();g.negative!==0?g=g.umod(u):g=g.clone();for(var E=new s(1),S=new s(0),T=new s(0),L=new s(1),_=0;g.isEven()&&m.isEven();)g.iushrn(1),m.iushrn(1),++_;for(var d=m.clone(),R=g.clone();!g.isZero();){for(var Y=0,X=1;!(g.words[0]&X)&&Y<26;++Y,X<<=1);if(Y>0)for(g.iushrn(Y);Y-- >0;)(E.isOdd()||S.isOdd())&&(E.iadd(d),S.isub(R)),E.iushrn(1),S.iushrn(1);for(var k=0,B=1;!(m.words[0]&B)&&k<26;++k,B<<=1);if(k>0)for(m.iushrn(k);k-- >0;)(T.isOdd()||L.isOdd())&&(T.iadd(d),L.isub(R)),T.iushrn(1),L.iushrn(1);g.cmp(m)>=0?(g.isub(m),E.isub(T),S.isub(L)):(m.isub(g),T.isub(E),L.isub(S))}return{a:T,b:L,gcd:m.iushln(_)}},s.prototype._invmp=function(u){n(u.negative===0),n(!u.isZero());var g=this,m=u.clone();g.negative!==0?g=g.umod(u):g=g.clone();for(var E=new s(1),S=new s(0),T=m.clone();g.cmpn(1)>0&&m.cmpn(1)>0;){for(var L=0,_=1;!(g.words[0]&_)&&L<26;++L,_<<=1);if(L>0)for(g.iushrn(L);L-- >0;)E.isOdd()&&E.iadd(T),E.iushrn(1);for(var d=0,R=1;!(m.words[0]&R)&&d<26;++d,R<<=1);if(d>0)for(m.iushrn(d);d-- >0;)S.isOdd()&&S.iadd(T),S.iushrn(1);g.cmp(m)>=0?(g.isub(m),E.isub(S)):(m.isub(g),S.isub(E))}var Y;return g.cmpn(1)===0?Y=E:Y=S,Y.cmpn(0)<0&&Y.iadd(u),Y},s.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var g=this.clone(),m=u.clone();g.negative=0,m.negative=0;for(var E=0;g.isEven()&&m.isEven();E++)g.iushrn(1),m.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;m.isEven();)m.iushrn(1);var S=g.cmp(m);if(S<0){var T=g;g=m,m=T}else if(S===0||m.cmpn(1)===0)break;g.isub(m)}while(!0);return m.iushln(E)},s.prototype.invm=function(u){return this.egcd(u).a.umod(u)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(u){return this.words[0]&u},s.prototype.bincn=function(u){n(typeof u=="number");var g=u%26,m=(u-g)/26,E=1<>>26,L&=67108863,this.words[T]=L}return S!==0&&(this.words[T]=S,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(u){var g=u<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this._strip();var m;if(this.length>1)m=1;else{g&&(u=-u),n(u<=67108863,"Number is too big");var E=this.words[0]|0;m=E===u?0:Eu.length)return 1;if(this.length=0;m--){var E=this.words[m]|0,S=u.words[m]|0;if(E!==S){ES&&(g=1);break}}return g},s.prototype.gtn=function(u){return this.cmpn(u)===1},s.prototype.gt=function(u){return this.cmp(u)===1},s.prototype.gten=function(u){return this.cmpn(u)>=0},s.prototype.gte=function(u){return this.cmp(u)>=0},s.prototype.ltn=function(u){return this.cmpn(u)===-1},s.prototype.lt=function(u){return this.cmp(u)===-1},s.prototype.lten=function(u){return this.cmpn(u)<=0},s.prototype.lte=function(u){return this.cmp(u)<=0},s.prototype.eqn=function(u){return this.cmpn(u)===0},s.prototype.eq=function(u){return this.cmp(u)===0},s.red=function(u){return new ne(u)},s.prototype.toRed=function(u){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(u){return this.red=u,this},s.prototype.forceRed=function(u){return n(!this.red,"Already a number in reduction context"),this._forceRed(u)},s.prototype.redAdd=function(u){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},s.prototype.redIAdd=function(u){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},s.prototype.redSub=function(u){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},s.prototype.redISub=function(u){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},s.prototype.redShl=function(u){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},s.prototype.redMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},s.prototype.redIMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(u){return n(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var U={k256:null,p224:null,p192:null,p25519:null};function z(w,u){this.name=w,this.p=new s(u,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}z.prototype._tmp=function(){var u=new s(null);return u.words=new Array(Math.ceil(this.n/13)),u},z.prototype.ireduce=function(u){var g=u,m;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),m=g.bitLength();while(m>this.n);var E=m0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},z.prototype.split=function(u,g){u.iushrn(this.n,0,g)},z.prototype.imulK=function(u){return u.imul(this.k)};function ee(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(ee,z),ee.prototype.split=function(u,g){for(var m=4194303,E=Math.min(u.length,9),S=0;S>>22,T=L}T>>>=22,u.words[S-10]=T,T===0&&u.length>10?u.length-=10:u.length-=9},ee.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var g=0,m=0;m>>=26,u.words[m]=S,g=E}return g!==0&&(u.words[u.length++]=g),u},s._prime=function(u){if(U[u])return U[u];var g;if(u==="k256")g=new ee;else if(u==="p224")g=new K;else if(u==="p192")g=new Z;else if(u==="p25519")g=new se;else throw new Error("Unknown prime "+u);return U[u]=g,g};function ne(w){if(typeof w=="string"){var u=s._prime(w);this.m=u.p,this.prime=u}else n(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}ne.prototype._verify1=function(u){n(u.negative===0,"red works only with positives"),n(u.red,"red works only with red numbers")},ne.prototype._verify2=function(u,g){n((u.negative|g.negative)===0,"red works only with positives"),n(u.red&&u.red===g.red,"red works only with red numbers")},ne.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(p(u,u.umod(this.m)._forceRed(this)),u)},ne.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},ne.prototype.add=function(u,g){this._verify2(u,g);var m=u.add(g);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},ne.prototype.iadd=function(u,g){this._verify2(u,g);var m=u.iadd(g);return m.cmp(this.m)>=0&&m.isub(this.m),m},ne.prototype.sub=function(u,g){this._verify2(u,g);var m=u.sub(g);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},ne.prototype.isub=function(u,g){this._verify2(u,g);var m=u.isub(g);return m.cmpn(0)<0&&m.iadd(this.m),m},ne.prototype.shl=function(u,g){return this._verify1(u),this.imod(u.ushln(g))},ne.prototype.imul=function(u,g){return this._verify2(u,g),this.imod(u.imul(g))},ne.prototype.mul=function(u,g){return this._verify2(u,g),this.imod(u.mul(g))},ne.prototype.isqr=function(u){return this.imul(u,u.clone())},ne.prototype.sqr=function(u){return this.mul(u,u)},ne.prototype.sqrt=function(u){if(u.isZero())return u.clone();var g=this.m.andln(3);if(n(g%2===1),g===3){var m=this.m.add(new s(1)).iushrn(2);return this.pow(u,m)}for(var E=this.m.subn(1),S=0;!E.isZero()&&E.andln(1)===0;)S++,E.iushrn(1);n(!E.isZero());var T=new s(1).toRed(this),L=T.redNeg(),_=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new s(2*d*d).toRed(this);this.pow(d,_).cmp(L)!==0;)d.redIAdd(L);for(var R=this.pow(d,E),Y=this.pow(u,E.addn(1).iushrn(1)),X=this.pow(u,E),k=S;X.cmp(T)!==0;){for(var B=X,V=0;B.cmp(T)!==0;V++)B=B.redSqr();n(V=0;S--){for(var R=g.words[S],Y=d-1;Y>=0;Y--){var X=R>>Y&1;if(T!==E[0]&&(T=this.sqr(T)),X===0&&L===0){_=0;continue}L<<=1,L|=X,_++,!(_!==m&&(S!==0||Y!==0))&&(T=this.mul(T,E[L]),_=0,L=0)}d=26}return T},ne.prototype.convertTo=function(u){var g=u.umod(this.m);return g===u?g.clone():g},ne.prototype.convertFrom=function(u){var g=u.clone();return g.red=null,g},s.mont=function(u){return new oe(u)};function oe(w){ne.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(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)}i(oe,ne),oe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},oe.prototype.convertFrom=function(u){var g=this.imod(u.mul(this.rinv));return g.red=null,g},oe.prototype.imul=function(u,g){if(u.isZero()||g.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(g),E=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=m.isub(E).iushrn(this.shift),T=S;return S.cmp(this.m)>=0?T=S.isub(this.m):S.cmpn(0)<0&&(T=S.iadd(this.m)),T._forceRed(this)},oe.prototype.mul=function(u,g){if(u.isZero()||g.isZero())return new s(0)._forceRed(this);var m=u.mul(g),E=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=m.isub(E).iushrn(this.shift),T=S;return S.cmp(this.m)>=0?T=S.isub(this.m):S.cmpn(0)<0&&(T=S.iadd(this.m)),T._forceRed(this)},oe.prototype.invm=function(u){var g=this.imod(u._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(t,te)})(Lu);var ao=Lu.exports,yi={};Object.defineProperty(yi,"__esModule",{value:!0});yi.EVENTS=void 0;yi.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",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"};var Yi={},uh={},Nr={},ch=zi;zi.default=zi;zi.stable=hh;zi.stableStringify=hh;var Ws="[...]",lh="[Circular]",gn=[],ln=[];function fh(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function zi(t,e,r,n){typeof n>"u"&&(n=fh()),ou(t,"",0,[],void 0,0,n);var i;try{ln.length===0?i=JSON.stringify(t,e,r):i=JSON.stringify(t,dh(e),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;gn.length!==0;){var s=gn.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Zn(t,e,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:t}),gn.push([n,r,e,i])):ln.push([e,r,t]):(n[r]=t,gn.push([n,r,e]))}function ou(t,e,r,n,i,s,o){s+=1;var a;if(typeof t=="object"&&t!==null){for(a=0;ao.depthLimit){Zn(Ws,t,e,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Zn(Ws,t,e,i);return}if(n.push(t),Array.isArray(t))for(a=0;ae?1:0}function hh(t,e,r,n){typeof n>"u"&&(n=fh());var i=au(t,"",0,[],void 0,0,n)||t,s;try{ln.length===0?s=JSON.stringify(i,e,r):s=JSON.stringify(i,dh(e),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;gn.length!==0;){var o=gn.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return s}function au(t,e,r,n,i,s,o){s+=1;var a;if(typeof t=="object"&&t!==null){for(a=0;ao.depthLimit){Zn(Ws,t,e,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Zn(Ws,t,e,i);return}if(n.push(t),Array.isArray(t))for(a=0;a0)for(var n=0;n=1e3&&t<=4999}function Z0(t,e){if(e!=="[Circular]")return e}var Pu={},Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.errorValues=Lr.errorCodes=void 0;Lr.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}};Lr.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."}};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const e=Lr,r=Nr,n=e.errorCodes.rpc.internal,i="Unspecified error message. This is a bug, please report it.",s={code:n,message:o(n)};t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function o(v,A=i){if(Number.isInteger(v)){const O=v.toString();if(y(e.errorValues,O))return e.errorValues[O].message;if(l(v))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return A}t.getMessageFromCode=o;function a(v){if(!Number.isInteger(v))return!1;const A=v.toString();return!!(e.errorValues[A]||l(v))}t.isValidCode=a;function c(v,{fallbackError:A=s,shouldIncludeStack:O=!1}={}){var j,F;if(!A||!Number.isInteger(A.code)||typeof A.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(v instanceof r.EthereumRpcError)return v.serialize();const I={};if(v&&typeof v=="object"&&!Array.isArray(v)&&y(v,"code")&&a(v.code)){const D=v;I.code=D.code,D.message&&typeof D.message=="string"?(I.message=D.message,y(D,"data")&&(I.data=D.data)):(I.message=o(I.code),I.data={originalError:p(v)})}else{I.code=A.code;const D=(j=v)===null||j===void 0?void 0:j.message;I.message=D&&typeof D=="string"?D:A.message,I.data={originalError:p(v)}}const N=(F=v)===null||F===void 0?void 0:F.stack;return O&&v&&N&&typeof N=="string"&&(I.stack=N),I}t.serializeError=c;function l(v){return v>=-32099&&v<=-32e3}function p(v){return v&&typeof v=="object"&&!Array.isArray(v)?Object.assign({},v):v}function y(v,A){return Object.prototype.hasOwnProperty.call(v,A)}})(Pu);var uo={};Object.defineProperty(uo,"__esModule",{value:!0});uo.ethErrors=void 0;const Bu=Nr,gh=Pu,mt=Lr;uo.ethErrors={rpc:{parse:t=>Bt(mt.errorCodes.rpc.parse,t),invalidRequest:t=>Bt(mt.errorCodes.rpc.invalidRequest,t),invalidParams:t=>Bt(mt.errorCodes.rpc.invalidParams,t),methodNotFound:t=>Bt(mt.errorCodes.rpc.methodNotFound,t),internal:t=>Bt(mt.errorCodes.rpc.internal,t),server:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Bt(e,t)},invalidInput:t=>Bt(mt.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>Bt(mt.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>Bt(mt.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>Bt(mt.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>Bt(mt.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>Bt(mt.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>Ai(mt.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>Ai(mt.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>Ai(mt.errorCodes.provider.unsupportedMethod,t),disconnected:t=>Ai(mt.errorCodes.provider.disconnected,t),chainDisconnected:t=>Ai(mt.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:r,data:n}=t;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new Bu.EthereumProviderError(e,r,n)}}};function Bt(t,e){const[r,n]=yh(e);return new Bu.EthereumRpcError(t,r||gh.getMessageFromCode(t),n)}function Ai(t,e){const[r,n]=yh(e);return new Bu.EthereumProviderError(t,r||gh.getMessageFromCode(t),n)}function yh(t){if(t){if(typeof t=="string")return[t];if(typeof t=="object"&&!Array.isArray(t)){const{message:e,data:r}=t;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,r]}}return[]}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;const e=Nr;Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return e.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return e.EthereumProviderError}});const r=Pu;Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const n=uo;Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return n.ethErrors}});const i=Lr;Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return i.errorCodes}})})(uh);var Ne={},co={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Web3Method=void 0,function(e){e.requestEthereumAccounts="requestEthereumAccounts",e.signEthereumMessage="signEthereumMessage",e.signEthereumTransaction="signEthereumTransaction",e.submitEthereumTransaction="submitEthereumTransaction",e.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",e.scanQRCode="scanQRCode",e.generic="generic",e.childRequestEthereumAccounts="childRequestEthereumAccounts",e.addEthereumChain="addEthereumChain",e.switchEthereumChain="switchEthereumChain",e.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",e.watchAsset="watchAsset",e.selectProvider="selectProvider"}(t.Web3Method||(t.Web3Method={}))})(co);Object.defineProperty(Ne,"__esModule",{value:!0});Ne.EthereumAddressFromSignedMessageResponse=Ne.SubmitEthereumTransactionResponse=Ne.SignEthereumTransactionResponse=Ne.SignEthereumMessageResponse=Ne.isRequestEthereumAccountsResponse=Ne.SelectProviderResponse=Ne.WatchAssetReponse=Ne.RequestEthereumAccountsResponse=Ne.SwitchEthereumChainResponse=Ne.AddEthereumChainResponse=Ne.isErrorResponse=void 0;const yr=co;function Q0(t){var e,r;return((e=t)===null||e===void 0?void 0:e.method)!==void 0&&((r=t)===null||r===void 0?void 0:r.errorMessage)!==void 0}Ne.isErrorResponse=Q0;function Y0(t){return{method:yr.Web3Method.addEthereumChain,result:t}}Ne.AddEthereumChainResponse=Y0;function K0(t){return{method:yr.Web3Method.switchEthereumChain,result:t}}Ne.SwitchEthereumChainResponse=K0;function X0(t){return{method:yr.Web3Method.requestEthereumAccounts,result:t}}Ne.RequestEthereumAccountsResponse=X0;function eg(t){return{method:yr.Web3Method.watchAsset,result:t}}Ne.WatchAssetReponse=eg;function tg(t){return{method:yr.Web3Method.selectProvider,result:t}}Ne.SelectProviderResponse=tg;function rg(t){return t&&t.method===yr.Web3Method.requestEthereumAccounts}Ne.isRequestEthereumAccountsResponse=rg;function ng(t){return{method:yr.Web3Method.signEthereumMessage,result:t}}Ne.SignEthereumMessageResponse=ng;function ig(t){return{method:yr.Web3Method.signEthereumTransaction,result:t}}Ne.SignEthereumTransactionResponse=ig;function sg(t){return{method:yr.Web3Method.submitEthereumTransaction,result:t}}Ne.SubmitEthereumTransactionResponse=sg;function og(t){return{method:yr.Web3Method.ethereumAddressFromSignedMessage,result:t}}Ne.EthereumAddressFromSignedMessageResponse=og;var bi={};Object.defineProperty(bi,"__esModule",{value:!0});bi.LIB_VERSION=void 0;bi.LIB_VERSION="3.7.2";(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCode=t.serializeError=t.standardErrors=t.standardErrorMessage=t.standardErrorCodes=void 0;const e=uh,r=Ne,n=bi;t.standardErrorCodes=Object.freeze(Object.assign(Object.assign({},e.errorCodes),{provider:Object.freeze(Object.assign(Object.assign({},e.errorCodes.provider),{unsupportedChain:4902}))}));function i(p){return p!==void 0?(0,e.getMessageFromCode)(p):"Unknown error"}t.standardErrorMessage=i,t.standardErrors=Object.freeze(Object.assign(Object.assign({},e.ethErrors),{provider:Object.freeze(Object.assign(Object.assign({},e.ethErrors.provider),{unsupportedChain:(p="")=>e.ethErrors.provider.custom({code:t.standardErrorCodes.provider.unsupportedChain,message:`Unrecognized chain ID ${p}. Try adding the chain using wallet_addEthereumChain first.`})}))}));function s(p,y){const v=(0,e.serializeError)(o(p),{shouldIncludeStack:!0}),A=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");A.searchParams.set("version",n.LIB_VERSION),A.searchParams.set("code",v.code.toString());const O=a(v.data,y);return O&&A.searchParams.set("method",O),A.searchParams.set("message",v.message),Object.assign(Object.assign({},v),{docUrl:A.href})}t.serializeError=s;function o(p){return typeof p=="string"?{message:p,code:t.standardErrorCodes.rpc.internal}:(0,r.isErrorResponse)(p)?Object.assign(Object.assign({},p),{message:p.errorMessage,code:p.errorCode,data:{method:p.method,result:p.result}}):p}function a(p,y){var v;const A=(v=p)===null||v===void 0?void 0:v.method;if(A)return A;if(y!==void 0)return typeof y=="string"?y:Array.isArray(y)?y.length>0?y[0].method:void 0:y.method}function c(p){var y;if(typeof p=="number")return p;if(l(p))return(y=p.code)!==null&&y!==void 0?y:p.errorCode}t.getErrorCode=c;function l(p){return typeof p=="object"&&p!==null&&(typeof p.code=="number"||typeof p.errorCode=="number")}})(Yi);var vi={},bh={exports:{}},uu={exports:{}};typeof Object.create=="function"?uu.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:uu.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var er=uu.exports,cu={exports:{}},Ki={},lo={};lo.byteLength=cg;lo.toByteArray=fg;lo.fromByteArray=pg;var lr=[],jt=[],ag=typeof Uint8Array<"u"?Uint8Array:Array,ya="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Dn=0,ug=ya.length;Dn0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function cg(t){var e=vh(t),r=e[0],n=e[1];return(r+n)*3/4-n}function lg(t,e,r){return(e+r)*3/4-r}function fg(t){var e,r=vh(t),n=r[0],i=r[1],s=new ag(lg(t,n,i)),o=0,a=i>0?n-4:n,c;for(c=0;c>16&255,s[o++]=e>>8&255,s[o++]=e&255;return i===2&&(e=jt[t.charCodeAt(c)]<<2|jt[t.charCodeAt(c+1)]>>4,s[o++]=e&255),i===1&&(e=jt[t.charCodeAt(c)]<<10|jt[t.charCodeAt(c+1)]<<4|jt[t.charCodeAt(c+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function hg(t){return lr[t>>18&63]+lr[t>>12&63]+lr[t>>6&63]+lr[t&63]}function dg(t,e,r){for(var n,i=[],s=e;sa?a:o+s));return n===1?(e=t[r-1],i.push(lr[e>>2]+lr[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(lr[e>>10]+lr[e>>4&63]+lr[e<<2&63]+"=")),i.join("")}var Du={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Du.read=function(t,e,r,n,i){var s,o,a=i*8-n-1,c=(1<>1,p=-7,y=r?i-1:0,v=r?-1:1,A=t[e+y];for(y+=v,s=A&(1<<-p)-1,A>>=-p,p+=a;p>0;s=s*256+t[e+y],y+=v,p-=8);for(o=s&(1<<-p)-1,s>>=-p,p+=n;p>0;o=o*256+t[e+y],y+=v,p-=8);if(s===0)s=1-l;else{if(s===c)return o?NaN:(A?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-l}return(A?-1:1)*o*Math.pow(2,s-n)};Du.write=function(t,e,r,n,i,s){var o,a,c,l=s*8-i-1,p=(1<>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=n?0:s-1,O=n?1:-1,j=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=p):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+y>=1?e+=v/c:e+=v*Math.pow(2,1-y),e*c>=2&&(o++,c/=2),o+y>=p?(a=0,o=p):o+y>=1?(a=(e*c-1)*Math.pow(2,i),o=o+y):(a=e*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;t[r+A]=a&255,A+=O,a/=256,i-=8);for(o=o<0;t[r+A]=o&255,A+=O,o/=256,l-=8);t[r+A-O]|=j*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh diff --git a/assets/index.es-fegywn_p.js b/assets/index.es-tEmxzH1T.js similarity index 99% rename from assets/index.es-fegywn_p.js rename to assets/index.es-tEmxzH1T.js index cfd751f..257bdcc 100644 --- a/assets/index.es-fegywn_p.js +++ b/assets/index.es-tEmxzH1T.js @@ -1,4 +1,4 @@ -import{f as K0,r as Fs,h as ie,i as Kr,j as V0,w as Cl,k as Ol,m as gc,t as ga,o as F0,p as ea,q as B0,s as _i,D as G0,u as W0,N as X,v as J0,x as oc,y as Q0,V as Y0,R as X0,F as Sh,K as Z0,z as em,L as tm,A as Ch,$ as rm,B as im,C as Vs,Z as Oh,J as sm,X as nm,E as vc,_ as Rl,G as Dr,H as am,I as om,M as us,O as $t,U as tr,P as wi,Q as hr,S as cm,T as hs,W as Tl,Y as um,a0 as hm,a1 as lm,a2 as Al,a3 as fm,a4 as Nl,a5 as $l,a6 as ls,a7 as cc,a8 as oa,a9 as fs,aa as pm,ab as ca,ac as dm,ad as gm,ae as vm,af as ta,ag as ym,ah as mm,ai as Vo,aj as Rh,ak as wm,al as _m,am as bm,an as Th,ao as Em,ap as Im,aq as xm,ar as Pm,as as Sm,at as Cm,au as Om,av as Us,aw as Dl,ax as Fo,ay as Rm,az as Tm,aA as Am}from"./index-Gnz09uoc.js";import{s as Bs,a as va,i as Ah,c as Nm,b as $m,f as yc,p as Dm,J as ni,d as mc,e as wc,g as _c,h as mi,j as si,k as Ks,l as Lm,m as qm,H as Ii}from"./http-gDbOmFlM.js";const zm=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Mm=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,jm=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Um(c,i){if(c==="__proto__"||c==="constructor"&&i&&typeof i=="object"&&"prototype"in i){Hm(c);return}return i}function Hm(c){console.warn(`[destr] Dropping "${c}" key to prevent prototype pollution.`)}function ra(c,i={}){if(typeof c!="string")return c;const r=c.trim();if(c[0]==='"'&&c.at(-1)==='"'&&!c.includes("\\"))return r.slice(1,-1);if(r.length<=9){const n=r.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!jm.test(c)){if(i.strict)throw new SyntaxError("[destr] Invalid JSON");return c}try{if(zm.test(c)||Mm.test(c)){if(i.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(c,Um)}return JSON.parse(c)}catch(n){if(i.strict)throw n;return c}}function km(c){return!c||typeof c.then!="function"?Promise.resolve(c):c}function Ut(c,...i){try{return km(c(...i))}catch(r){return Promise.reject(r)}}function Km(c){const i=typeof c;return c===null||i!=="object"&&i!=="function"}function Vm(c){const i=Object.getPrototypeOf(c);return!i||i.isPrototypeOf(Object)}function ua(c){if(Km(c))return String(c);if(Vm(c)||Array.isArray(c))return JSON.stringify(c);if(typeof c.toJSON=="function")return ua(c.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function Ll(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const uc="base64:";function Fm(c){if(typeof c=="string")return c;Ll();const i=Buffer.from(c).toString("base64");return uc+i}function Bm(c){return typeof c!="string"||!c.startsWith(uc)?c:(Ll(),Buffer.from(c.slice(uc.length),"base64"))}function ur(c){return c?c.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function Gm(...c){return ur(c.join(":"))}function ia(c){return c=ur(c),c?c+":":""}const Wm="memory",Jm=()=>{const c=new Map;return{name:Wm,options:{},hasItem(i){return c.has(i)},getItem(i){return c.get(i)??null},getItemRaw(i){return c.get(i)??null},setItem(i,r){c.set(i,r)},setItemRaw(i,r){c.set(i,r)},removeItem(i){c.delete(i)},getKeys(){return Array.from(c.keys())},clear(){c.clear()},dispose(){c.clear()}}};function Qm(c={}){const i={mounts:{"":c.driver||Jm()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=v=>{for(const E of i.mountpoints)if(v.startsWith(E))return{base:E,relativeKey:v.slice(E.length),driver:i.mounts[E]};return{base:"",relativeKey:v,driver:i.mounts[""]}},n=(v,E)=>i.mountpoints.filter(C=>C.startsWith(v)||E&&v.startsWith(C)).map(C=>({relativeBase:v.length>C.length?v.slice(C.length):void 0,mountpoint:C,driver:i.mounts[C]})),a=(v,E)=>{if(i.watching){E=ur(E);for(const C of i.watchListeners)C(v,E)}},l=async()=>{if(!i.watching){i.watching=!0;for(const v in i.mounts)i.unwatch[v]=await Nh(i.mounts[v],a,v)}},d=async()=>{if(i.watching){for(const v in i.unwatch)await i.unwatch[v]();i.unwatch={},i.watching=!1}},y=(v,E,C)=>{const T=new Map,j=D=>{let V=T.get(D.base);return V||(V={driver:D.driver,base:D.base,items:[]},T.set(D.base,V)),V};for(const D of v){const V=typeof D=="string",re=ur(V?D:D.key),ce=V?void 0:D.value,ue=V||!D.options?E:{...E,...D.options},he=r(re);j(he).items.push({key:re,value:ce,relativeKey:he.relativeKey,options:ue})}return Promise.all([...T.values()].map(D=>C(D))).then(D=>D.flat())},w={hasItem(v,E={}){v=ur(v);const{relativeKey:C,driver:T}=r(v);return Ut(T.hasItem,C,E)},getItem(v,E={}){v=ur(v);const{relativeKey:C,driver:T}=r(v);return Ut(T.getItem,C,E).then(j=>ra(j))},getItems(v,E){return y(v,E,C=>C.driver.getItems?Ut(C.driver.getItems,C.items.map(T=>({key:T.relativeKey,options:T.options})),E).then(T=>T.map(j=>({key:Gm(C.base,j.key),value:ra(j.value)}))):Promise.all(C.items.map(T=>Ut(C.driver.getItem,T.relativeKey,T.options).then(j=>({key:T.key,value:ra(j)})))))},getItemRaw(v,E={}){v=ur(v);const{relativeKey:C,driver:T}=r(v);return T.getItemRaw?Ut(T.getItemRaw,C,E):Ut(T.getItem,C,E).then(j=>Bm(j))},async setItem(v,E,C={}){if(E===void 0)return w.removeItem(v);v=ur(v);const{relativeKey:T,driver:j}=r(v);j.setItem&&(await Ut(j.setItem,T,ua(E),C),j.watch||a("update",v))},async setItems(v,E){await y(v,E,async C=>{C.driver.setItems&&await Ut(C.driver.setItems,C.items.map(T=>({key:T.relativeKey,value:ua(T.value),options:T.options})),E),C.driver.setItem&&await Promise.all(C.items.map(T=>Ut(C.driver.setItem,T.relativeKey,ua(T.value),T.options)))})},async setItemRaw(v,E,C={}){if(E===void 0)return w.removeItem(v,C);v=ur(v);const{relativeKey:T,driver:j}=r(v);if(j.setItemRaw)await Ut(j.setItemRaw,T,E,C);else if(j.setItem)await Ut(j.setItem,T,Fm(E),C);else return;j.watch||a("update",v)},async removeItem(v,E={}){typeof E=="boolean"&&(E={removeMeta:E}),v=ur(v);const{relativeKey:C,driver:T}=r(v);T.removeItem&&(await Ut(T.removeItem,C,E),(E.removeMeta||E.removeMata)&&await Ut(T.removeItem,C+"$",E),T.watch||a("remove",v))},async getMeta(v,E={}){typeof E=="boolean"&&(E={nativeOnly:E}),v=ur(v);const{relativeKey:C,driver:T}=r(v),j=Object.create(null);if(T.getMeta&&Object.assign(j,await Ut(T.getMeta,C,E)),!E.nativeOnly){const D=await Ut(T.getItem,C+"$",E).then(V=>ra(V));D&&typeof D=="object"&&(typeof D.atime=="string"&&(D.atime=new Date(D.atime)),typeof D.mtime=="string"&&(D.mtime=new Date(D.mtime)),Object.assign(j,D))}return j},setMeta(v,E,C={}){return this.setItem(v+"$",E,C)},removeMeta(v,E={}){return this.removeItem(v+"$",E)},async getKeys(v,E={}){v=ia(v);const C=n(v,!0);let T=[];const j=[];for(const D of C){const re=(await Ut(D.driver.getKeys,D.relativeBase,E)).map(ce=>D.mountpoint+ur(ce)).filter(ce=>!T.some(ue=>ce.startsWith(ue)));j.push(...re),T=[D.mountpoint,...T.filter(ce=>!ce.startsWith(D.mountpoint))]}return v?j.filter(D=>D.startsWith(v)&&!D.endsWith("$")):j.filter(D=>!D.endsWith("$"))},async clear(v,E={}){v=ia(v),await Promise.all(n(v,!1).map(async C=>{if(C.driver.clear)return Ut(C.driver.clear,C.relativeBase,E);if(C.driver.removeItem){const T=await C.driver.getKeys(C.relativeBase||"",E);return Promise.all(T.map(j=>C.driver.removeItem(j,E)))}}))},async dispose(){await Promise.all(Object.values(i.mounts).map(v=>$h(v)))},async watch(v){return await l(),i.watchListeners.push(v),async()=>{i.watchListeners=i.watchListeners.filter(E=>E!==v),i.watchListeners.length===0&&await d()}},async unwatch(){i.watchListeners=[],await d()},mount(v,E){if(v=ia(v),v&&i.mounts[v])throw new Error(`already mounted at ${v}`);return v&&(i.mountpoints.push(v),i.mountpoints.sort((C,T)=>T.length-C.length)),i.mounts[v]=E,i.watching&&Promise.resolve(Nh(E,a,v)).then(C=>{i.unwatch[v]=C}).catch(console.error),w},async unmount(v,E=!0){v=ia(v),!(!v||!i.mounts[v])&&(i.watching&&v in i.unwatch&&(i.unwatch[v](),delete i.unwatch[v]),E&&await $h(i.mounts[v]),i.mountpoints=i.mountpoints.filter(C=>C!==v),delete i.mounts[v])},getMount(v=""){v=ur(v)+":";const E=r(v);return{driver:E.driver,base:E.base}},getMounts(v="",E={}){return v=ur(v),n(v,E.parents).map(T=>({driver:T.driver,base:T.mountpoint}))}};return w}function Nh(c,i,r){return c.watch?c.watch((n,a)=>i(n,r+a)):()=>{}}async function $h(c){typeof c.dispose=="function"&&await Ut(c.dispose)}function Ui(c){return new Promise((i,r)=>{c.oncomplete=c.onsuccess=()=>i(c.result),c.onabort=c.onerror=()=>r(c.error)})}function ql(c,i){const r=indexedDB.open(c);r.onupgradeneeded=()=>r.result.createObjectStore(i);const n=Ui(r);return(a,l)=>n.then(d=>l(d.transaction(i,a).objectStore(i)))}let Bo;function Gs(){return Bo||(Bo=ql("keyval-store","keyval")),Bo}function Dh(c,i=Gs()){return i("readonly",r=>Ui(r.get(c)))}function Ym(c,i,r=Gs()){return r("readwrite",n=>(n.put(i,c),Ui(n.transaction)))}function Xm(c,i=Gs()){return i("readwrite",r=>(r.delete(c),Ui(r.transaction)))}function Zm(c=Gs()){return c("readwrite",i=>(i.clear(),Ui(i.transaction)))}function ew(c,i){return c.openCursor().onsuccess=function(){this.result&&(i(this.result),this.result.continue())},Ui(c.transaction)}function tw(c=Gs()){return c("readonly",i=>{if(i.getAllKeys)return Ui(i.getAllKeys());const r=[];return ew(i,n=>r.push(n.key)).then(()=>r)})}const rw="idb-keyval";var iw=(c={})=>{const i=c.base&&c.base.length>0?`${c.base}:`:"",r=a=>i+a;let n;return c.dbName&&c.storeName&&(n=ql(c.dbName,c.storeName)),{name:rw,options:c,async hasItem(a){return!(typeof await Dh(r(a),n)>"u")},async getItem(a){return await Dh(r(a),n)??null},setItem(a,l){return Ym(r(a),l,n)},removeItem(a){return Xm(r(a),n)},getKeys(){return tw(n)},clear(){return Zm(n)}}};const sw="WALLET_CONNECT_V2_INDEXED_DB",nw="keyvaluestorage";let aw=class{constructor(){this.indexedDb=Qm({driver:iw({dbName:sw,storeName:nw})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(i=>[i.key,i.value])}async getItem(i){const r=await this.indexedDb.getItem(i);if(r!==null)return r}async setItem(i,r){await this.indexedDb.setItem(i,Bs(r))}async removeItem(i){await this.indexedDb.removeItem(i)}};var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ha={exports:{}};(function(){let c;function i(){}c=i,c.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},c.prototype.setItem=function(r,n){this[r]=String(n)},c.prototype.removeItem=function(r){delete this[r]},c.prototype.clear=function(){const r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},c.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},c.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof Go<"u"&&Go.localStorage?ha.exports=Go.localStorage:typeof window<"u"&&window.localStorage?ha.exports=window.localStorage:ha.exports=new i})();function ow(c){var i;return[c[0],va((i=c[1])!=null?i:"")]}let cw=class{constructor(){this.localStorage=ha.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(ow)}async getItem(i){const r=this.localStorage.getItem(i);if(r!==null)return va(r)}async setItem(i,r){this.localStorage.setItem(i,Bs(r))}async removeItem(i){this.localStorage.removeItem(i)}};const uw="wc_storage_version",Lh=1,hw=async(c,i,r)=>{const n=uw,a=await i.getItem(n);if(a&&a>=Lh){r(i);return}const l=await c.getKeys();if(!l.length){r(i);return}const d=[];for(;l.length;){const y=l.shift();if(!y)continue;const w=y.toLowerCase();if(w.includes("wc@")||w.includes("walletconnect")||w.includes("wc_")||w.includes("wallet_connect")){const v=await c.getItem(y);await i.setItem(y,v),d.push(y)}}await i.setItem(n,Lh),r(i),lw(c,d)},lw=async(c,i)=>{i.length&&i.forEach(async r=>{await c.removeItem(r)})};let fw=class{constructor(){this.initialized=!1,this.setInitialized=r=>{this.storage=r,this.initialized=!0};const i=new cw;this.storage=i;try{const r=new aw;hw(i,r,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(i){return await this.initialize(),this.storage.getItem(i)}async setItem(i,r){return await this.initialize(),this.storage.setItem(i,r)}async removeItem(i){return await this.initialize(),this.storage.removeItem(i)}async initialize(){this.initialized||await new Promise(i=>{const r=setInterval(()=>{this.initialized&&(clearInterval(r),i())},20)})}};var ps={},$s={},Wo={},Ds={};class Hi{}const pw=Object.freeze(Object.defineProperty({__proto__:null,IEvents:Hi},Symbol.toStringTag,{value:"Module"})),dw=K0(pw);var qh;function gw(){if(qh)return Ds;qh=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.IHeartBeat=void 0;const c=dw;class i extends c.IEvents{constructor(n){super()}}return Ds.IHeartBeat=i,Ds}var zh;function zl(){return zh||(zh=1,function(c){Object.defineProperty(c,"__esModule",{value:!0}),Fs.__exportStar(gw(),c)}(Wo)),Wo}var Jo={},Mi={},Mh;function vw(){if(Mh)return Mi;Mh=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.HEARTBEAT_EVENTS=Mi.HEARTBEAT_INTERVAL=void 0;const c=ie;return Mi.HEARTBEAT_INTERVAL=c.FIVE_SECONDS,Mi.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"},Mi}var jh;function Ml(){return jh||(jh=1,function(c){Object.defineProperty(c,"__esModule",{value:!0}),Fs.__exportStar(vw(),c)}(Jo)),Jo}var Uh;function yw(){if(Uh)return $s;Uh=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.HeartBeat=void 0;const c=Fs,i=Kr,r=ie,n=zl(),a=Ml();class l extends n.IHeartBeat{constructor(y){super(y),this.events=new i.EventEmitter,this.interval=a.HEARTBEAT_INTERVAL,this.interval=(y==null?void 0:y.interval)||a.HEARTBEAT_INTERVAL}static init(y){return c.__awaiter(this,void 0,void 0,function*(){const w=new l(y);return yield w.init(),w})}init(){return c.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(y,w){this.events.on(y,w)}once(y,w){this.events.once(y,w)}off(y,w){this.events.off(y,w)}removeListener(y,w){this.events.removeListener(y,w)}initialize(){return c.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),r.toMiliseconds(this.interval))})}pulse(){this.events.emit(a.HEARTBEAT_EVENTS.pulse)}}return $s.HeartBeat=l,$s}(function(c){Object.defineProperty(c,"__esModule",{value:!0});const i=Fs;i.__exportStar(yw(),c),i.__exportStar(zl(),c),i.__exportStar(Ml(),c)})(ps);var Oe={},Qo,Hh;function mw(){if(Hh)return Qo;Hh=1;function c(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}Qo=i;function i(r,n,a){var l=a&&a.stringify||c,d=1;if(typeof r=="object"&&r!==null){var y=n.length+d;if(y===1)return r;var w=new Array(y);w[0]=l(r);for(var v=1;v-1?j:0,r.charCodeAt(V+1)){case 100:case 102:if(T>=E||n[T]==null)break;j=E||n[T]==null)break;j=E||n[T]===void 0)break;j",j=V+2,V++;break}C+=l(n[T]),j=V+2,V++;break;case 115:if(T>=E)break;j-1&&(Ee=!1);const Re=["error","fatal","warn","info","debug","trace"];typeof W=="function"&&(W.error=W.fatal=W.warn=W.info=W.debug=W.trace=W),$.enabled===!1&&($.level="silent");const et=$.level||"info",R=Object.create(W);R.log||(R.log=re),Object.defineProperty(R,"levelVal",{get:je}),Object.defineProperty(R,"level",{get:Te,set:J});const M={transmit:k,serialize:te,asObject:$.browser.asObject,levels:Re,timestamp:j($)};R.levels=a.levels,R.level=et,R.setMaxListeners=R.getMaxListeners=R.emit=R.addListener=R.on=R.prependListener=R.once=R.prependOnceListener=R.removeListener=R.removeAllListeners=R.listeners=R.listenerCount=R.eventNames=R.write=R.flush=re,R.serializers=ve,R._serialize=te,R._stdErrSerialize=Ee,R.child=F,k&&(R._logEvent=C());function je(){return this.level==="silent"?1/0:this.levels.values[this.level]}function Te(){return this._level}function J(K){if(K!=="silent"&&!this.levels.values[K])throw Error("unknown level "+K);this._level=K,l(M,R,"error","log"),l(M,R,"fatal","error"),l(M,R,"warn","error"),l(M,R,"info","log"),l(M,R,"debug","log"),l(M,R,"trace","log")}function F(K,B){if(!K)throw new Error("missing bindings for child Pino");B=B||{},te&&K.serializers&&(B.serializers=K.serializers);const ut=B.serializers;if(te&&ut){var ke=Object.assign({},ve,ut),Lr=$.browser.serialize===!0?Object.keys(ke):te;delete K.serializers,w([K],Lr,ke,this._stdErrSerialize)}function _e(It){this._childLevel=(It._childLevel|0)+1,this.error=v(It,K,"error"),this.fatal=v(It,K,"fatal"),this.warn=v(It,K,"warn"),this.info=v(It,K,"info"),this.debug=v(It,K,"debug"),this.trace=v(It,K,"trace"),ke&&(this.serializers=ke,this._serialize=Lr),k&&(this._logEvent=C([].concat(It._logEvent.bindings,K)))}return _e.prototype=this,new _e(this)}return R}a.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},a.stdSerializers=r,a.stdTimeFunctions=Object.assign({},{nullTime:ce,epochTime:ue,unixTime:he,isoTime:fe});function l($,k,W,ve){const te=Object.getPrototypeOf(k);k[W]=k.levelVal>k.levels.values[W]?re:te[W]?te[W]:i[W]||i[ve]||re,d($,k,W)}function d($,k,W){!$.transmit&&k[W]===re||(k[W]=function(ve){return function(){const Ee=$.timestamp(),Re=new Array(arguments.length),et=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var R=0;R-1&&Ee in W&&($[te][Ee]=W[Ee]($[te][Ee]))}function v($,k,W){return function(){const ve=new Array(1+arguments.length);ve[0]=k;for(var te=1;te"u"?v=r(y,w):v=y.bindings().context||"",v}er.getLoggerContext=a;function l(y,w,v=c.PINO_CUSTOM_CONTEXT_KEY){const E=a(y,v);return E.trim()?`${E}/${w}`:w}er.formatChildLoggerContext=l;function d(y,w,v=c.PINO_CUSTOM_CONTEXT_KEY){const E=l(y,w,v),C=y.child({context:E});return n(C,E,v)}return er.generateChildLogger=d,er}(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.pino=void 0;const i=Fs,r=i.__importDefault(ww());Object.defineProperty(c,"pino",{enumerable:!0,get:function(){return r.default}}),i.__exportStar(jl(),c),i.__exportStar(_w(),c)})(Oe);class bw extends Hi{constructor(i){super(),this.opts=i,this.protocol="wc",this.version=2}}class Ew extends Hi{constructor(i,r){super(),this.core=i,this.logger=r,this.records=new Map}}class Iw{constructor(i,r){this.logger=i,this.core=r}}let xw=class extends Hi{constructor(i,r){super(),this.relayer=i,this.logger=r}},Pw=class extends Hi{constructor(i){super()}},Sw=class{constructor(i,r,n,a){this.core=i,this.logger=r,this.name=n}};class Cw extends Hi{constructor(i,r){super(),this.relayer=i,this.logger=r}}let Ow=class extends Hi{constructor(i,r){super(),this.core=i,this.logger=r}},Rw=class{constructor(i,r){this.projectId=i,this.logger=r}},Tw=class{constructor(i){this.opts=i,this.protocol="wc",this.version=2}},Aw=class{constructor(i){this.client=i}};var bc={},Ul={};(function(c){Object.defineProperty(c,"__esModule",{value:!0});var i=V0,r=Cl;c.DIGEST_LENGTH=64,c.BLOCK_SIZE=128;var n=function(){function y(){this.digestLength=c.DIGEST_LENGTH,this.blockSize=c.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return y.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},y.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},y.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._tempHi),r.wipe(this._tempLo),this.reset()},y.prototype.update=function(w,v){if(v===void 0&&(v=w.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var E=0;if(this._bytesHashed+=v,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=w[E++],v--;this._bufferLength===this.blockSize&&(l(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(v>=this.blockSize&&(E=l(this._tempHi,this._tempLo,this._stateHi,this._stateLo,w,E,v),v%=this.blockSize);v>0;)this._buffer[this._bufferLength++]=w[E++],v--;return this},y.prototype.finish=function(w){if(!this._finished){var v=this._bytesHashed,E=this._bufferLength,C=v/536870912|0,T=v<<3,j=v%128<112?128:256;this._buffer[E]=128;for(var D=E+1;D0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},y.prototype.restoreState=function(w){return this._stateHi.set(w.stateHi),this._stateLo.set(w.stateLo),this._bufferLength=w.bufferLength,w.buffer&&this._buffer.set(w.buffer),this._bytesHashed=w.bytesHashed,this._finished=!1,this},y.prototype.cleanSavedState=function(w){r.wipe(w.stateHi),r.wipe(w.stateLo),w.buffer&&r.wipe(w.buffer),w.bufferLength=0,w.bytesHashed=0},y}();c.SHA512=n;var a=new Int32Array([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]);function l(y,w,v,E,C,T,j){for(var D=v[0],V=v[1],re=v[2],ce=v[3],ue=v[4],he=v[5],fe=v[6],pe=v[7],$=E[0],k=E[1],W=E[2],ve=E[3],te=E[4],Ee=E[5],Re=E[6],et=E[7],R,M,je,Te,J,F,K,B;j>=128;){for(var ut=0;ut<16;ut++){var ke=8*ut+T;y[ut]=i.readUint32BE(C,ke),w[ut]=i.readUint32BE(C,ke+4)}for(var ut=0;ut<80;ut++){var Lr=D,_e=V,It=re,N=ce,A=ue,S=he,u=fe,b=pe,Z=$,oe=k,me=W,Ae=ve,$e=te,xe=Ee,xt=Re,mt=et;if(R=pe,M=et,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=(ue>>>14|te<<18)^(ue>>>18|te<<14)^(te>>>9|ue<<23),M=(te>>>14|ue<<18)^(te>>>18|ue<<14)^(ue>>>9|te<<23),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=ue&he^~ue&fe,M=te&Ee^~te&Re,J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=a[ut*2],M=a[ut*2+1],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=y[ut%16],M=w[ut%16],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,je=K&65535|B<<16,Te=J&65535|F<<16,R=je,M=Te,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=(D>>>28|$<<4)^($>>>2|D<<30)^($>>>7|D<<25),M=($>>>28|D<<4)^(D>>>2|$<<30)^(D>>>7|$<<25),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=D&V^D&re^V&re,M=$&k^$&W^k&W,J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,b=K&65535|B<<16,mt=J&65535|F<<16,R=N,M=Ae,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=je,M=Te,J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,N=K&65535|B<<16,Ae=J&65535|F<<16,V=Lr,re=_e,ce=It,ue=N,he=A,fe=S,pe=u,D=b,k=Z,W=oe,ve=me,te=Ae,Ee=$e,Re=xe,et=xt,$=mt,ut%16===15)for(var ke=0;ke<16;ke++)R=y[ke],M=w[ke],J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=y[(ke+9)%16],M=w[(ke+9)%16],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,je=y[(ke+1)%16],Te=w[(ke+1)%16],R=(je>>>1|Te<<31)^(je>>>8|Te<<24)^je>>>7,M=(Te>>>1|je<<31)^(Te>>>8|je<<24)^(Te>>>7|je<<25),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,je=y[(ke+14)%16],Te=w[(ke+14)%16],R=(je>>>19|Te<<13)^(Te>>>29|je<<3)^je>>>6,M=(Te>>>19|je<<13)^(je>>>29|Te<<3)^(Te>>>6|je<<26),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,y[ke]=K&65535|B<<16,w[ke]=J&65535|F<<16}R=D,M=$,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[0],M=E[0],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[0]=D=K&65535|B<<16,E[0]=$=J&65535|F<<16,R=V,M=k,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[1],M=E[1],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[1]=V=K&65535|B<<16,E[1]=k=J&65535|F<<16,R=re,M=W,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[2],M=E[2],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[2]=re=K&65535|B<<16,E[2]=W=J&65535|F<<16,R=ce,M=ve,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[3],M=E[3],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[3]=ce=K&65535|B<<16,E[3]=ve=J&65535|F<<16,R=ue,M=te,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[4],M=E[4],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[4]=ue=K&65535|B<<16,E[4]=te=J&65535|F<<16,R=he,M=Ee,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[5],M=E[5],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[5]=he=K&65535|B<<16,E[5]=Ee=J&65535|F<<16,R=fe,M=Re,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[6],M=E[6],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[6]=fe=K&65535|B<<16,E[6]=Re=J&65535|F<<16,R=pe,M=et,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[7],M=E[7],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[7]=pe=K&65535|B<<16,E[7]=et=J&65535|F<<16,T+=128,j-=128}return T}function d(y){var w=new n;w.update(y);var v=w.digest();return w.clean(),v}c.hash=d})(Ul);(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.convertSecretKeyToX25519=c.convertPublicKeyToX25519=c.verify=c.sign=c.extractPublicKeyFromSecretKey=c.generateKeyPair=c.generateKeyPairFromSeed=c.SEED_LENGTH=c.SECRET_KEY_LENGTH=c.PUBLIC_KEY_LENGTH=c.SIGNATURE_LENGTH=void 0;const i=Ol,r=Ul,n=Cl;c.SIGNATURE_LENGTH=64,c.PUBLIC_KEY_LENGTH=32,c.SECRET_KEY_LENGTH=64,c.SEED_LENGTH=32;function a(N){const A=new Float64Array(16);if(N)for(let S=0;S>16&1),S[oe-1]&=65535;S[15]=u[15]-32767-(S[14]>>16&1);const Z=S[15]>>16&1;S[14]&=65535,V(u,S,1-Z)}for(let b=0;b<16;b++)N[2*b]=u[b]&255,N[2*b+1]=u[b]>>8}function ce(N,A){let S=0;for(let u=0;u<32;u++)S|=N[u]^A[u];return(1&S-1>>>8)-1}function ue(N,A){const S=new Uint8Array(32),u=new Uint8Array(32);return re(S,N),re(u,A),ce(S,u)}function he(N){const A=new Uint8Array(32);return re(A,N),A[0]&1}function fe(N,A){for(let S=0;S<16;S++)N[S]=A[2*S]+(A[2*S+1]<<8);N[15]&=32767}function pe(N,A,S){for(let u=0;u<16;u++)N[u]=A[u]+S[u]}function $(N,A,S){for(let u=0;u<16;u++)N[u]=A[u]-S[u]}function k(N,A,S){let u,b,Z=0,oe=0,me=0,Ae=0,$e=0,xe=0,xt=0,mt=0,nt=0,Le=0,Je=0,Qe=0,at=0,Ue=0,Ye=0,Ne=0,Ke=0,ht=0,ze=0,Pt=0,Dt=0,Ht=0,kt=0,zt=0,Wt=0,rr=0,qr=0,Jt=0,Vr=0,oi=0,xi=0,lt=S[0],tt=S[1],ft=S[2],pt=S[3],ot=S[4],rt=S[5],St=S[6],Ct=S[7],dt=S[8],Ot=S[9],gt=S[10],wt=S[11],vt=S[12],We=S[13],Rt=S[14],Tt=S[15];u=A[0],Z+=u*lt,oe+=u*tt,me+=u*ft,Ae+=u*pt,$e+=u*ot,xe+=u*rt,xt+=u*St,mt+=u*Ct,nt+=u*dt,Le+=u*Ot,Je+=u*gt,Qe+=u*wt,at+=u*vt,Ue+=u*We,Ye+=u*Rt,Ne+=u*Tt,u=A[1],oe+=u*lt,me+=u*tt,Ae+=u*ft,$e+=u*pt,xe+=u*ot,xt+=u*rt,mt+=u*St,nt+=u*Ct,Le+=u*dt,Je+=u*Ot,Qe+=u*gt,at+=u*wt,Ue+=u*vt,Ye+=u*We,Ne+=u*Rt,Ke+=u*Tt,u=A[2],me+=u*lt,Ae+=u*tt,$e+=u*ft,xe+=u*pt,xt+=u*ot,mt+=u*rt,nt+=u*St,Le+=u*Ct,Je+=u*dt,Qe+=u*Ot,at+=u*gt,Ue+=u*wt,Ye+=u*vt,Ne+=u*We,Ke+=u*Rt,ht+=u*Tt,u=A[3],Ae+=u*lt,$e+=u*tt,xe+=u*ft,xt+=u*pt,mt+=u*ot,nt+=u*rt,Le+=u*St,Je+=u*Ct,Qe+=u*dt,at+=u*Ot,Ue+=u*gt,Ye+=u*wt,Ne+=u*vt,Ke+=u*We,ht+=u*Rt,ze+=u*Tt,u=A[4],$e+=u*lt,xe+=u*tt,xt+=u*ft,mt+=u*pt,nt+=u*ot,Le+=u*rt,Je+=u*St,Qe+=u*Ct,at+=u*dt,Ue+=u*Ot,Ye+=u*gt,Ne+=u*wt,Ke+=u*vt,ht+=u*We,ze+=u*Rt,Pt+=u*Tt,u=A[5],xe+=u*lt,xt+=u*tt,mt+=u*ft,nt+=u*pt,Le+=u*ot,Je+=u*rt,Qe+=u*St,at+=u*Ct,Ue+=u*dt,Ye+=u*Ot,Ne+=u*gt,Ke+=u*wt,ht+=u*vt,ze+=u*We,Pt+=u*Rt,Dt+=u*Tt,u=A[6],xt+=u*lt,mt+=u*tt,nt+=u*ft,Le+=u*pt,Je+=u*ot,Qe+=u*rt,at+=u*St,Ue+=u*Ct,Ye+=u*dt,Ne+=u*Ot,Ke+=u*gt,ht+=u*wt,ze+=u*vt,Pt+=u*We,Dt+=u*Rt,Ht+=u*Tt,u=A[7],mt+=u*lt,nt+=u*tt,Le+=u*ft,Je+=u*pt,Qe+=u*ot,at+=u*rt,Ue+=u*St,Ye+=u*Ct,Ne+=u*dt,Ke+=u*Ot,ht+=u*gt,ze+=u*wt,Pt+=u*vt,Dt+=u*We,Ht+=u*Rt,kt+=u*Tt,u=A[8],nt+=u*lt,Le+=u*tt,Je+=u*ft,Qe+=u*pt,at+=u*ot,Ue+=u*rt,Ye+=u*St,Ne+=u*Ct,Ke+=u*dt,ht+=u*Ot,ze+=u*gt,Pt+=u*wt,Dt+=u*vt,Ht+=u*We,kt+=u*Rt,zt+=u*Tt,u=A[9],Le+=u*lt,Je+=u*tt,Qe+=u*ft,at+=u*pt,Ue+=u*ot,Ye+=u*rt,Ne+=u*St,Ke+=u*Ct,ht+=u*dt,ze+=u*Ot,Pt+=u*gt,Dt+=u*wt,Ht+=u*vt,kt+=u*We,zt+=u*Rt,Wt+=u*Tt,u=A[10],Je+=u*lt,Qe+=u*tt,at+=u*ft,Ue+=u*pt,Ye+=u*ot,Ne+=u*rt,Ke+=u*St,ht+=u*Ct,ze+=u*dt,Pt+=u*Ot,Dt+=u*gt,Ht+=u*wt,kt+=u*vt,zt+=u*We,Wt+=u*Rt,rr+=u*Tt,u=A[11],Qe+=u*lt,at+=u*tt,Ue+=u*ft,Ye+=u*pt,Ne+=u*ot,Ke+=u*rt,ht+=u*St,ze+=u*Ct,Pt+=u*dt,Dt+=u*Ot,Ht+=u*gt,kt+=u*wt,zt+=u*vt,Wt+=u*We,rr+=u*Rt,qr+=u*Tt,u=A[12],at+=u*lt,Ue+=u*tt,Ye+=u*ft,Ne+=u*pt,Ke+=u*ot,ht+=u*rt,ze+=u*St,Pt+=u*Ct,Dt+=u*dt,Ht+=u*Ot,kt+=u*gt,zt+=u*wt,Wt+=u*vt,rr+=u*We,qr+=u*Rt,Jt+=u*Tt,u=A[13],Ue+=u*lt,Ye+=u*tt,Ne+=u*ft,Ke+=u*pt,ht+=u*ot,ze+=u*rt,Pt+=u*St,Dt+=u*Ct,Ht+=u*dt,kt+=u*Ot,zt+=u*gt,Wt+=u*wt,rr+=u*vt,qr+=u*We,Jt+=u*Rt,Vr+=u*Tt,u=A[14],Ye+=u*lt,Ne+=u*tt,Ke+=u*ft,ht+=u*pt,ze+=u*ot,Pt+=u*rt,Dt+=u*St,Ht+=u*Ct,kt+=u*dt,zt+=u*Ot,Wt+=u*gt,rr+=u*wt,qr+=u*vt,Jt+=u*We,Vr+=u*Rt,oi+=u*Tt,u=A[15],Ne+=u*lt,Ke+=u*tt,ht+=u*ft,ze+=u*pt,Pt+=u*ot,Dt+=u*rt,Ht+=u*St,kt+=u*Ct,zt+=u*dt,Wt+=u*Ot,rr+=u*gt,qr+=u*wt,Jt+=u*vt,Vr+=u*We,oi+=u*Rt,xi+=u*Tt,Z+=38*Ke,oe+=38*ht,me+=38*ze,Ae+=38*Pt,$e+=38*Dt,xe+=38*Ht,xt+=38*kt,mt+=38*zt,nt+=38*Wt,Le+=38*rr,Je+=38*qr,Qe+=38*Jt,at+=38*Vr,Ue+=38*oi,Ye+=38*xi,b=1,u=Z+b+65535,b=Math.floor(u/65536),Z=u-b*65536,u=oe+b+65535,b=Math.floor(u/65536),oe=u-b*65536,u=me+b+65535,b=Math.floor(u/65536),me=u-b*65536,u=Ae+b+65535,b=Math.floor(u/65536),Ae=u-b*65536,u=$e+b+65535,b=Math.floor(u/65536),$e=u-b*65536,u=xe+b+65535,b=Math.floor(u/65536),xe=u-b*65536,u=xt+b+65535,b=Math.floor(u/65536),xt=u-b*65536,u=mt+b+65535,b=Math.floor(u/65536),mt=u-b*65536,u=nt+b+65535,b=Math.floor(u/65536),nt=u-b*65536,u=Le+b+65535,b=Math.floor(u/65536),Le=u-b*65536,u=Je+b+65535,b=Math.floor(u/65536),Je=u-b*65536,u=Qe+b+65535,b=Math.floor(u/65536),Qe=u-b*65536,u=at+b+65535,b=Math.floor(u/65536),at=u-b*65536,u=Ue+b+65535,b=Math.floor(u/65536),Ue=u-b*65536,u=Ye+b+65535,b=Math.floor(u/65536),Ye=u-b*65536,u=Ne+b+65535,b=Math.floor(u/65536),Ne=u-b*65536,Z+=b-1+37*(b-1),b=1,u=Z+b+65535,b=Math.floor(u/65536),Z=u-b*65536,u=oe+b+65535,b=Math.floor(u/65536),oe=u-b*65536,u=me+b+65535,b=Math.floor(u/65536),me=u-b*65536,u=Ae+b+65535,b=Math.floor(u/65536),Ae=u-b*65536,u=$e+b+65535,b=Math.floor(u/65536),$e=u-b*65536,u=xe+b+65535,b=Math.floor(u/65536),xe=u-b*65536,u=xt+b+65535,b=Math.floor(u/65536),xt=u-b*65536,u=mt+b+65535,b=Math.floor(u/65536),mt=u-b*65536,u=nt+b+65535,b=Math.floor(u/65536),nt=u-b*65536,u=Le+b+65535,b=Math.floor(u/65536),Le=u-b*65536,u=Je+b+65535,b=Math.floor(u/65536),Je=u-b*65536,u=Qe+b+65535,b=Math.floor(u/65536),Qe=u-b*65536,u=at+b+65535,b=Math.floor(u/65536),at=u-b*65536,u=Ue+b+65535,b=Math.floor(u/65536),Ue=u-b*65536,u=Ye+b+65535,b=Math.floor(u/65536),Ye=u-b*65536,u=Ne+b+65535,b=Math.floor(u/65536),Ne=u-b*65536,Z+=b-1+37*(b-1),N[0]=Z,N[1]=oe,N[2]=me,N[3]=Ae,N[4]=$e,N[5]=xe,N[6]=xt,N[7]=mt,N[8]=nt,N[9]=Le,N[10]=Je,N[11]=Qe,N[12]=at,N[13]=Ue,N[14]=Ye,N[15]=Ne}function W(N,A){k(N,A,A)}function ve(N,A){const S=a();let u;for(u=0;u<16;u++)S[u]=A[u];for(u=253;u>=0;u--)W(S,S),u!==2&&u!==4&&k(S,S,A);for(u=0;u<16;u++)N[u]=S[u]}function te(N,A){const S=a();let u;for(u=0;u<16;u++)S[u]=A[u];for(u=250;u>=0;u--)W(S,S),u!==1&&k(S,S,A);for(u=0;u<16;u++)N[u]=S[u]}function Ee(N,A){const S=a(),u=a(),b=a(),Z=a(),oe=a(),me=a(),Ae=a(),$e=a(),xe=a();$(S,N[1],N[0]),$(xe,A[1],A[0]),k(S,S,xe),pe(u,N[0],N[1]),pe(xe,A[0],A[1]),k(u,u,xe),k(b,N[3],A[3]),k(b,b,v),k(Z,N[2],A[2]),pe(Z,Z,Z),$(oe,u,S),$(me,Z,b),pe(Ae,Z,b),pe($e,u,S),k(N[0],oe,me),k(N[1],$e,Ae),k(N[2],Ae,me),k(N[3],oe,$e)}function Re(N,A,S){for(let u=0;u<4;u++)V(N[u],A[u],S)}function et(N,A){const S=a(),u=a(),b=a();ve(b,A[2]),k(S,A[0],b),k(u,A[1],b),re(N,u),N[31]^=he(S)<<7}function R(N,A,S){j(N[0],d),j(N[1],y),j(N[2],y),j(N[3],d);for(let u=255;u>=0;--u){const b=S[u/8|0]>>(u&7)&1;Re(N,A,b),Ee(A,N),Ee(N,N),Re(N,A,b)}}function M(N,A){const S=[a(),a(),a(),a()];j(S[0],E),j(S[1],C),j(S[2],y),k(S[3],E,C),R(N,S,A)}function je(N){if(N.length!==c.SEED_LENGTH)throw new Error(`ed25519: seed must be ${c.SEED_LENGTH} bytes`);const A=(0,r.hash)(N);A[0]&=248,A[31]&=127,A[31]|=64;const S=new Uint8Array(32),u=[a(),a(),a(),a()];M(u,A),et(S,u);const b=new Uint8Array(64);return b.set(N),b.set(S,32),{publicKey:S,secretKey:b}}c.generateKeyPairFromSeed=je;function Te(N){const A=(0,i.randomBytes)(32,N),S=je(A);return(0,n.wipe)(A),S}c.generateKeyPair=Te;function J(N){if(N.length!==c.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${c.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(N.subarray(32))}c.extractPublicKeyFromSecretKey=J;const F=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function K(N,A){let S,u,b,Z;for(u=63;u>=32;--u){for(S=0,b=u-32,Z=u-12;b>4)*F[b],S=A[b]>>8,A[b]&=255;for(b=0;b<32;b++)A[b]-=S*F[b];for(u=0;u<32;u++)A[u+1]+=A[u]>>8,N[u]=A[u]&255}function B(N){const A=new Float64Array(64);for(let S=0;S<64;S++)A[S]=N[S];for(let S=0;S<64;S++)N[S]=0;K(N,A)}function ut(N,A){const S=new Float64Array(64),u=[a(),a(),a(),a()],b=(0,r.hash)(N.subarray(0,32));b[0]&=248,b[31]&=127,b[31]|=64;const Z=new Uint8Array(64);Z.set(b.subarray(32),32);const oe=new r.SHA512;oe.update(Z.subarray(32)),oe.update(A);const me=oe.digest();oe.clean(),B(me),M(u,me),et(Z,u),oe.reset(),oe.update(Z.subarray(0,32)),oe.update(N.subarray(32)),oe.update(A);const Ae=oe.digest();B(Ae);for(let $e=0;$e<32;$e++)S[$e]=me[$e];for(let $e=0;$e<32;$e++)for(let xe=0;xe<32;xe++)S[$e+xe]+=Ae[$e]*b[xe];return K(Z.subarray(32),S),Z}c.sign=ut;function ke(N,A){const S=a(),u=a(),b=a(),Z=a(),oe=a(),me=a(),Ae=a();return j(N[2],y),fe(N[1],A),W(b,N[1]),k(Z,b,w),$(b,b,N[2]),pe(Z,N[2],Z),W(oe,Z),W(me,oe),k(Ae,me,oe),k(S,Ae,b),k(S,S,Z),te(S,S),k(S,S,b),k(S,S,Z),k(S,S,Z),k(N[0],S,Z),W(u,N[0]),k(u,u,Z),ue(u,b)&&k(N[0],N[0],T),W(u,N[0]),k(u,u,Z),ue(u,b)?-1:(he(N[0])===A[31]>>7&&$(N[0],d,N[0]),k(N[3],N[0],N[1]),0)}function Lr(N,A,S){const u=new Uint8Array(32),b=[a(),a(),a(),a()],Z=[a(),a(),a(),a()];if(S.length!==c.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${c.SIGNATURE_LENGTH} bytes`);if(ke(Z,N))return!1;const oe=new r.SHA512;oe.update(S.subarray(0,32)),oe.update(N),oe.update(A);const me=oe.digest();return B(me),R(b,Z,me),M(Z,S.subarray(32)),Ee(b,Z),et(u,b),!ce(S,u)}c.verify=Lr;function _e(N){let A=[a(),a(),a(),a()];if(ke(A,N))throw new Error("Ed25519: invalid public key");let S=a(),u=a(),b=A[1];pe(S,y,b),$(u,y,b),ve(u,u),k(S,S,u);let Z=new Uint8Array(32);return re(Z,S),Z}c.convertPublicKeyToX25519=_e;function It(N){const A=(0,r.hash)(N.subarray(0,32));A[0]&=248,A[31]&=127,A[31]|=64;const S=new Uint8Array(A.subarray(0,32));return(0,n.wipe)(A),S}c.convertSecretKeyToX25519=It})(bc);const Nw="EdDSA",$w="JWT",Hl=".",kl="base64url",Dw="utf8",Lw="utf8",qw=":",zw="did",Mw="key",Fh="base58btc",jw="z",Uw="K36",Hw=32;function fa(c){return ga(gc(Bs(c),Dw),kl)}function Kl(c){const i=gc(Uw,Fh),r=jw+ga(F0([i,c]),Fh);return[zw,Mw,r].join(qw)}function kw(c){return ga(c,kl)}function Kw(c){return gc([fa(c.header),fa(c.payload)].join(Hl),Lw)}function Vw(c){return[fa(c.header),fa(c.payload),kw(c.signature)].join(Hl)}function Bh(c=Ol.randomBytes(Hw)){return bc.generateKeyPairFromSeed(c)}async function Fw(c,i,r,n,a=ie.fromMiliseconds(Date.now())){const l={alg:Nw,typ:$w},d=Kl(n.publicKey),y=a+r,w={iss:d,sub:c,aud:i,iat:a,exp:y},v=Kw({header:l,payload:w}),E=bc.sign(n.secretKey,v);return Vw({header:l,payload:w,signature:E})}const Bw=()=>typeof WebSocket<"u"?WebSocket:typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require("ws"),Gw=()=>typeof WebSocket<"u"||typeof global<"u"&&typeof global.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",Gh=c=>c.split("?")[0],Wh=10,Ww=Bw();class Jw{constructor(i){if(this.url=i,this.events=new Kr.EventEmitter,this.registering=!1,!Ah(i))throw new Error(`Provided URL is not compatible with WebSocket connection: ${i}`);this.url=i}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async open(i=this.url){await this.register(i)}async close(){return new Promise((i,r)=>{if(typeof this.socket>"u"){r(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),i()},this.socket.close()})}async send(i,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Bs(i))}catch(n){this.onError(i.id,n)}}register(i=this.url){if(!Ah(i))throw new Error(`Provided URL is not compatible with WebSocket connection: ${i}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,a)=>{this.events.once("register_error",l=>{this.resetMaxListeners(),a(l)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return a(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=i,this.registering=!0,new Promise((r,n)=>{const a=Nm.isReactNative()?void 0:{rejectUnauthorized:!$m(i)},l=new Ww(i,[],a);Gw()?l.onerror=d=>{const y=d;n(this.emitError(y.error))}:l.on("error",d=>{n(this.emitError(d))}),l.onopen=()=>{this.onOpen(l),r(l)}})}onOpen(i){i.onmessage=r=>this.onPayload(r),i.onclose=r=>this.onClose(r),this.socket=i,this.registering=!1,this.events.emit("open")}onClose(i){this.socket=void 0,this.registering=!1,this.events.emit("close",i)}onPayload(i){if(typeof i.data>"u")return;const r=typeof i.data=="string"?va(i.data):i.data;this.events.emit("payload",r)}onError(i,r){const n=this.parseError(r),a=n.message||n.toString(),l=yc(i,a);this.events.emit("payload",l)}parseError(i,r=this.url){return Dm(i,Gh(r),"WS")}resetMaxListeners(){this.events.getMaxListeners()>Wh&&this.events.setMaxListeners(Wh)}emitError(i){const r=this.parseError(new Error((i==null?void 0:i.message)||`WebSocket connection failed for host: ${Gh(this.url)}`));return this.events.emit("register_error",r),r}}var pa={exports:{}};pa.exports;(function(c,i){var r=200,n="__lodash_hash_undefined__",a=1,l=2,d=9007199254740991,y="[object Arguments]",w="[object Array]",v="[object AsyncFunction]",E="[object Boolean]",C="[object Date]",T="[object Error]",j="[object Function]",D="[object GeneratorFunction]",V="[object Map]",re="[object Number]",ce="[object Null]",ue="[object Object]",he="[object Promise]",fe="[object Proxy]",pe="[object RegExp]",$="[object Set]",k="[object String]",W="[object Symbol]",ve="[object Undefined]",te="[object WeakMap]",Ee="[object ArrayBuffer]",Re="[object DataView]",et="[object Float32Array]",R="[object Float64Array]",M="[object Int8Array]",je="[object Int16Array]",Te="[object Int32Array]",J="[object Uint8Array]",F="[object Uint8ClampedArray]",K="[object Uint16Array]",B="[object Uint32Array]",ut=/[\\^$.*+?()[\]{}|]/g,ke=/^\[object .+?Constructor\]$/,Lr=/^(?:0|[1-9]\d*)$/,_e={};_e[et]=_e[R]=_e[M]=_e[je]=_e[Te]=_e[J]=_e[F]=_e[K]=_e[B]=!0,_e[y]=_e[w]=_e[Ee]=_e[E]=_e[Re]=_e[C]=_e[T]=_e[j]=_e[V]=_e[re]=_e[ue]=_e[pe]=_e[$]=_e[k]=_e[te]=!1;var It=typeof ea=="object"&&ea&&ea.Object===Object&&ea,N=typeof self=="object"&&self&&self.Object===Object&&self,A=It||N||Function("return this")(),S=i&&!i.nodeType&&i,u=S&&!0&&c&&!c.nodeType&&c,b=u&&u.exports===S,Z=b&&It.process,oe=function(){try{return Z&&Z.binding&&Z.binding("util")}catch{}}(),me=oe&&oe.isTypedArray;function Ae(g,I){for(var U=-1,Q=g==null?0:g.length,Fe=0,de=[];++U-1}function Sa(g,I){var U=this.__data__,Q=Pi(U,g);return Q<0?(++this.size,U.push([g,I])):U[Q][1]=I,this}yr.prototype.clear=Ea,yr.prototype.delete=Ia,yr.prototype.get=xa,yr.prototype.has=Pa,yr.prototype.set=Sa;function Fr(g){var I=-1,U=g==null?0:g.length;for(this.clear();++IAt))return!1;var Be=de.get(g);if(Be&&de.get(I))return Be==I;var _t=-1,ir=!0,Nt=U&l?new Fi:void 0;for(de.set(g,I),de.set(I,g);++_t-1&&g%1==0&&g-1&&g%1==0&&g<=d}function pn(g){var I=typeof g;return g!=null&&(I=="object"||I=="function")}function Oi(g){return g!=null&&typeof g=="object"}var dn=me?mt(me):en;function ja(g){return za(g)?Xs(g):tn(g)}function Ve(){return[]}function He(){return!1}c.exports=Ma})(pa,pa.exports);var Qw=pa.exports;const Yw=B0(Qw);var Xw={};function Zw(c,i){if(c.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,fe=new Uint8Array(he);ce!==ue;){for(var pe=D[ce],$=0,k=he-1;(pe!==0||$>>0,fe[k]=pe%y>>>0,pe=pe/y>>>0;if(pe!==0)throw new Error("Non-zero carry");re=$,ce++}for(var W=he-re;W!==he&&fe[W]===0;)W++;for(var ve=w.repeat(V);W>>0,he=new Uint8Array(ue);D[V];){var fe=r[D.charCodeAt(V)];if(fe===255)return;for(var pe=0,$=ue-1;(fe!==0||pe>>0,he[$]=fe%256>>>0,fe=fe/256>>>0;if(fe!==0)throw new Error("Non-zero carry");ce=pe,V++}if(D[V]!==" "){for(var k=ue-ce;k!==ue&&he[k]===0;)k++;for(var W=new Uint8Array(re+(ue-k)),ve=re;k!==ue;)W[ve++]=he[k++];return W}}}function j(D){var V=T(D);if(V)return V;throw new Error(`Non-${i} character`)}return{encode:C,decodeUnsafe:T,decode:j}}var e_=Zw,t_=e_;const Vl=c=>{if(c instanceof Uint8Array&&c.constructor.name==="Uint8Array")return c;if(c instanceof ArrayBuffer)return new Uint8Array(c);if(ArrayBuffer.isView(c))return new Uint8Array(c.buffer,c.byteOffset,c.byteLength);throw new Error("Unknown type, must be binary type")},r_=c=>new TextEncoder().encode(c),i_=c=>new TextDecoder().decode(c);class s_{constructor(i,r,n){this.name=i,this.prefix=r,this.baseEncode=n}encode(i){if(i instanceof Uint8Array)return`${this.prefix}${this.baseEncode(i)}`;throw Error("Unknown type, must be binary type")}}class n_{constructor(i,r,n){if(this.name=i,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(i){if(typeof i=="string"){if(i.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(i)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(i.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(i){return Fl(this,i)}}class a_{constructor(i){this.decoders=i}or(i){return Fl(this,i)}decode(i){const r=i[0],n=this.decoders[r];if(n)return n.decode(i);throw RangeError(`Unable to decode multibase string ${JSON.stringify(i)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Fl=(c,i)=>new a_({...c.decoders||{[c.prefix]:c},...i.decoders||{[i.prefix]:i}});class o_{constructor(i,r,n,a){this.name=i,this.prefix=r,this.baseEncode=n,this.baseDecode=a,this.encoder=new s_(i,r,n),this.decoder=new n_(i,r,a)}encode(i){return this.encoder.encode(i)}decode(i){return this.decoder.decode(i)}}const ya=({name:c,prefix:i,encode:r,decode:n})=>new o_(c,i,r,n),Ws=({prefix:c,name:i,alphabet:r})=>{const{encode:n,decode:a}=t_(r,i);return ya({prefix:c,name:i,encode:n,decode:l=>Vl(a(l))})},c_=(c,i,r,n)=>{const a={};for(let E=0;E=8&&(y-=8,d[v++]=255&w>>y)}if(y>=r||255&w<<8-y)throw new SyntaxError("Unexpected end of data");return d},u_=(c,i,r)=>{const n=i[i.length-1]==="=",a=(1<r;)d-=r,l+=i[a&y>>d];if(d&&(l+=i[a&y<ya({prefix:i,name:c,encode(a){return u_(a,n,r)},decode(a){return c_(a,n,r,c)}}),h_=ya({prefix:"\0",name:"identity",encode:c=>i_(c),decode:c=>r_(c)});var l_=Object.freeze({__proto__:null,identity:h_});const f_=Vt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var p_=Object.freeze({__proto__:null,base2:f_});const d_=Vt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var g_=Object.freeze({__proto__:null,base8:d_});const v_=Ws({prefix:"9",name:"base10",alphabet:"0123456789"});var y_=Object.freeze({__proto__:null,base10:v_});const m_=Vt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),w_=Vt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var __=Object.freeze({__proto__:null,base16:m_,base16upper:w_});const b_=Vt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),E_=Vt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),I_=Vt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),x_=Vt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),P_=Vt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),S_=Vt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),C_=Vt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),O_=Vt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),R_=Vt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var T_=Object.freeze({__proto__:null,base32:b_,base32upper:E_,base32pad:I_,base32padupper:x_,base32hex:P_,base32hexupper:S_,base32hexpad:C_,base32hexpadupper:O_,base32z:R_});const A_=Ws({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),N_=Ws({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var $_=Object.freeze({__proto__:null,base36:A_,base36upper:N_});const D_=Ws({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),L_=Ws({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var q_=Object.freeze({__proto__:null,base58btc:D_,base58flickr:L_});const z_=Vt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),M_=Vt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),j_=Vt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),U_=Vt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var H_=Object.freeze({__proto__:null,base64:z_,base64pad:M_,base64url:j_,base64urlpad:U_});const Bl=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),k_=Bl.reduce((c,i,r)=>(c[r]=i,c),[]),K_=Bl.reduce((c,i,r)=>(c[i.codePointAt(0)]=r,c),[]);function V_(c){return c.reduce((i,r)=>(i+=k_[r],i),"")}function F_(c){const i=[];for(const r of c){const n=K_[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);i.push(n)}return new Uint8Array(i)}const B_=ya({prefix:"🚀",name:"base256emoji",encode:V_,decode:F_});var G_=Object.freeze({__proto__:null,base256emoji:B_}),W_=Gl,Jh=128,J_=127,Q_=~J_,Y_=Math.pow(2,31);function Gl(c,i,r){i=i||[],r=r||0;for(var n=r;c>=Y_;)i[r++]=c&255|Jh,c/=128;for(;c&Q_;)i[r++]=c&255|Jh,c>>>=7;return i[r]=c|0,Gl.bytes=r-n+1,i}var X_=hc,Z_=128,Qh=127;function hc(c,n){var r=0,n=n||0,a=0,l=n,d,y=c.length;do{if(l>=y)throw hc.bytes=0,new RangeError("Could not decode varint");d=c[l++],r+=a<28?(d&Qh)<=Z_);return hc.bytes=l-n,r}var e1=Math.pow(2,7),t1=Math.pow(2,14),r1=Math.pow(2,21),i1=Math.pow(2,28),s1=Math.pow(2,35),n1=Math.pow(2,42),a1=Math.pow(2,49),o1=Math.pow(2,56),c1=Math.pow(2,63),u1=function(c){return c(Wl.encode(c,i,r),i),Xh=c=>Wl.encodingLength(c),lc=(c,i)=>{const r=i.byteLength,n=Xh(c),a=n+Xh(r),l=new Uint8Array(a+r);return Yh(c,l,0),Yh(r,l,n),l.set(i,a),new l1(c,r,i,l)};class l1{constructor(i,r,n,a){this.code=i,this.size=r,this.digest=n,this.bytes=a}}const Jl=({name:c,code:i,encode:r})=>new f1(c,i,r);class f1{constructor(i,r,n){this.name=i,this.code=r,this.encode=n}digest(i){if(i instanceof Uint8Array){const r=this.encode(i);return r instanceof Uint8Array?lc(this.code,r):r.then(n=>lc(this.code,n))}else throw Error("Unknown type, must be binary type")}}const Ql=c=>async i=>new Uint8Array(await crypto.subtle.digest(c,i)),p1=Jl({name:"sha2-256",code:18,encode:Ql("SHA-256")}),d1=Jl({name:"sha2-512",code:19,encode:Ql("SHA-512")});var g1=Object.freeze({__proto__:null,sha256:p1,sha512:d1});const Yl=0,v1="identity",Xl=Vl,y1=c=>lc(Yl,Xl(c)),m1={code:Yl,name:v1,encode:Xl,digest:y1};var w1=Object.freeze({__proto__:null,identity:m1});new TextEncoder,new TextDecoder;const Zh={...l_,...p_,...g_,...y_,...__,...T_,...$_,...q_,...H_,...G_};({...g1,...w1});function Zl(c){return globalThis.Buffer!=null?new Uint8Array(c.buffer,c.byteOffset,c.byteLength):c}function _1(c=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Zl(globalThis.Buffer.allocUnsafe(c)):new Uint8Array(c)}function ef(c,i,r,n){return{name:c,prefix:i,encoder:{name:c,prefix:i,encode:r},decoder:{decode:n}}}const el=ef("utf8","u",c=>"u"+new TextDecoder("utf8").decode(c),c=>new TextEncoder().encode(c.substring(1))),Xo=ef("ascii","a",c=>{let i="a";for(let r=0;r{c=c.substring(1);const i=_1(c.length);for(let r=0;r{if(!this.initialized){const n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,a)=>{this.isInitialized(),this.keychain.set(n,a),await this.persist()},this.get=n=>{this.isInitialized();const a=this.keychain.get(n);if(typeof a>"u"){const{message:l}=X("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(l)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=i,this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(i){await this.core.storage.setItem(this.storageKey,Nl(i))}async getKeyChain(){const i=await this.core.storage.getItem(this.storageKey);return typeof i<"u"?$l(i):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class X1{constructor(i,r,n){this.core=i,this.logger=r,this.name=S1,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=a=>(this.isInitialized(),this.keychain.has(a)),this.getClientId=async()=>{this.isInitialized();const a=await this.getClientSeed(),l=Bh(a);return Kl(l.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const a=J0();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();const l=await this.getClientSeed(),d=Bh(l),y=oc();return await Fw(y,a,C1,d)},this.generateSharedKey=(a,l,d)=>{this.isInitialized();const y=this.getPrivateKey(a),w=Q0(y,l);return this.setSymKey(w,d)},this.setSymKey=async(a,l)=>{this.isInitialized();const d=l||Y0(a);return await this.keychain.set(d,a),d},this.deleteKeyPair=async a=>{this.isInitialized(),await this.keychain.del(a)},this.deleteSymKey=async a=>{this.isInitialized(),await this.keychain.del(a)},this.encode=async(a,l,d)=>{this.isInitialized();const y=X0(d),w=Bs(l);if(Sh(y)){const T=y.senderPublicKey,j=y.receiverPublicKey;a=await this.generateSharedKey(T,j)}const v=this.getSymKey(a),{type:E,senderPublicKey:C}=y;return Z0({type:E,symKey:v,message:w,senderPublicKey:C})},this.decode=async(a,l,d)=>{this.isInitialized();const y=em(l,d);if(Sh(y)){const w=y.receiverPublicKey,v=y.senderPublicKey;a=await this.generateSharedKey(w,v)}try{const w=this.getSymKey(a),v=tm({symKey:w,encoded:l});return va(v)}catch(w){this.logger.error(`Failed to decode message from topic: '${a}', clientId: '${await this.getClientId()}'`),this.logger.error(w)}},this.getPayloadType=a=>{const l=Ch(a);return rm(l.type)},this.getPayloadSenderPublicKey=a=>{const l=Ch(a);return l.senderPublicKey?ga(l.senderPublicKey,im):void 0},this.core=i,this.logger=Oe.generateChildLogger(r,this.name),this.keychain=n||new Y1(this.core,this.logger)}get context(){return Oe.getLoggerContext(this.logger)}async setPrivateKey(i,r){return await this.keychain.set(i,r),i}getPrivateKey(i){return this.keychain.get(i)}async getClientSeed(){let i="";try{i=this.keychain.get(tl)}catch{i=oc(),await this.keychain.set(tl,i)}return E1(i,"base16")}getSymKey(i){return this.keychain.get(i)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class Z1 extends Iw{constructor(i,r){super(i,r),this.logger=i,this.core=r,this.messages=new Map,this.name=T1,this.version=A1,this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,a)=>{this.isInitialized();const l=ls(a);let d=this.messages.get(n);return typeof d>"u"&&(d={}),typeof d[l]<"u"||(d[l]=a,this.messages.set(n,d),await this.persist()),l},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();const l=this.get(n),d=ls(a);return typeof l[d]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=Oe.generateChildLogger(i,this.name),this.core=r}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(i){await this.core.storage.setItem(this.storageKey,Nl(i))}async getRelayerMessages(){const i=await this.core.storage.getItem(this.storageKey);return typeof i<"u"?$l(i):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class eb extends xw{constructor(i,r){super(i,r),this.relayer=i,this.logger=r,this.events=new Kr.EventEmitter,this.name=$1,this.queue=new Map,this.publishTimeout=ie.toMiliseconds(ie.TEN_SECONDS),this.needsTransportRestart=!1,this.publish=async(n,a,l)=>{var d;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:l}});try{const y=(l==null?void 0:l.ttl)||N1,w=cc(l),v=(l==null?void 0:l.prompt)||!1,E=(l==null?void 0:l.tag)||0,C=(l==null?void 0:l.id)||Lm().toString(),T={topic:n,message:a,opts:{ttl:y,relay:w,prompt:v,tag:E,id:C}},j=setTimeout(()=>this.queue.set(C,T),this.publishTimeout);try{await await Vs(this.rpcPublish(n,a,y,w,v,E,C),this.publishTimeout,"Failed to publish payload, please try again."),this.removeRequestFromQueue(C),this.relayer.events.emit(Gt.publish,T)}catch(D){if(this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0,(d=l==null?void 0:l.internal)!=null&&d.throwOnFailedPublish)throw this.removeRequestFromQueue(C),D;return}finally{clearTimeout(j)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:l}})}catch(y){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(y),y}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.relayer=i,this.logger=Oe.generateChildLogger(r,this.name),this.registerEventListeners()}get context(){return Oe.getLoggerContext(this.logger)}rpcPublish(i,r,n,a,l,d,y){var w,v,E,C;const T={method:oa(a.protocol).publish,params:{topic:i,message:r,ttl:n,prompt:l,tag:d},id:y};return _i((w=T.params)==null?void 0:w.prompt)&&((v=T.params)==null||delete v.prompt),_i((E=T.params)==null?void 0:E.tag)&&((C=T.params)==null||delete C.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:T}),this.relayer.request(T)}removeRequestFromQueue(i){this.queue.delete(i)}checkQueue(){this.queue.forEach(async i=>{const{topic:r,message:n,opts:a}=i;await this.publish(r,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(Gt.connection_stalled);return}this.checkQueue()}),this.relayer.on(Gt.message_ack,i=>{this.removeRequestFromQueue(i.id.toString())})}}class tb{constructor(){this.map=new Map,this.set=(i,r)=>{const n=this.get(i);this.exists(i,r)||this.map.set(i,[...n,r])},this.get=i=>this.map.get(i)||[],this.exists=(i,r)=>this.get(i).includes(r),this.delete=(i,r)=>{if(typeof r>"u"){this.map.delete(i);return}if(!this.map.has(i))return;const n=this.get(i);if(!this.exists(i,r))return;const a=n.filter(l=>l!==r);if(!a.length){this.map.delete(i);return}this.map.set(i,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var rb=Object.defineProperty,ib=Object.defineProperties,sb=Object.getOwnPropertyDescriptors,sl=Object.getOwnPropertySymbols,nb=Object.prototype.hasOwnProperty,ab=Object.prototype.propertyIsEnumerable,nl=(c,i,r)=>i in c?rb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,qs=(c,i)=>{for(var r in i||(i={}))nb.call(i,r)&&nl(c,r,i[r]);if(sl)for(var r of sl(i))ab.call(i,r)&&nl(c,r,i[r]);return c},ec=(c,i)=>ib(c,sb(i));class ob extends Cw{constructor(i,r){super(i,r),this.relayer=i,this.logger=r,this.subscriptions=new Map,this.topicMap=new tb,this.events=new Kr.EventEmitter,this.name=k1,this.version=K1,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=bi,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}});try{const l=cc(a),d={topic:n,relay:l};this.pending.set(n,d);const y=await this.rpcSubscribe(n,l);return this.onSubscribe(y,d),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),y}catch(l){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(l),l}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof(a==null?void 0:a.id)<"u"?await this.unsubscribeById(n,a.id,a):await this.unsubscribeByTopic(n,a)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((a,l)=>{const d=new ie.Watch;d.start(this.pendingSubscriptionWatchLabel);const y=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(y),d.stop(this.pendingSubscriptionWatchLabel),a(!0)),d.elapsed(this.pendingSubscriptionWatchLabel)>=V1&&(clearInterval(y),d.stop(this.pendingSubscriptionWatchLabel),l(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=i,this.logger=Oe.generateChildLogger(r,this.name),this.clientId=""}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(i,r){let n=!1;try{n=this.getSubscription(i).topic===r}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(i,r){const n=this.topicMap.get(i);await Promise.all(n.map(async a=>await this.unsubscribeById(i,a,r)))}async unsubscribeById(i,r,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:i,id:r,opts:n}});try{const a=cc(n);await this.rpcUnsubscribe(i,r,a);const l=tr("USER_DISCONNECTED",`${this.name}, ${i}`);await this.onUnsubscribe(i,r,l),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:i,id:r,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(i,r){const n={method:oa(r.protocol).subscribe,params:{topic:i}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Vs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(Gt.connection_stalled)}return ls(i+this.clientId)}async rpcBatchSubscribe(i){if(!i.length)return;const r=i[0].relay,n={method:oa(r.protocol).batchSubscribe,params:{topics:i.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Vs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Gt.connection_stalled)}}rpcUnsubscribe(i,r,n){const a={method:oa(n.protocol).unsubscribe,params:{topic:i,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.request(a)}onSubscribe(i,r){this.setSubscription(i,ec(qs({},r),{id:i})),this.pending.delete(r.topic)}onBatchSubscribe(i){i.length&&i.forEach(r=>{this.setSubscription(r.id,qs({},r)),this.pending.delete(r.topic)})}async onUnsubscribe(i,r,n){this.events.removeAllListeners(r),this.hasSubscription(r,i)&&this.deleteSubscription(r,n),await this.relayer.messages.del(i)}async setRelayerSubscriptions(i){await this.relayer.core.storage.setItem(this.storageKey,i)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(i,r){this.subscriptions.has(i)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:i,subscription:r}),this.addSubscription(i,r))}addSubscription(i,r){this.subscriptions.set(i,qs({},r)),this.topicMap.set(r.topic,i),this.events.emit($r.created,r)}getSubscription(i){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:i});const r=this.subscriptions.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw new Error(n)}return r}deleteSubscription(i,r){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:i,reason:r});const n=this.getSubscription(i);this.subscriptions.delete(i),this.topicMap.delete(n.topic,i),this.events.emit($r.deleted,ec(qs({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit($r.sync)}async reset(){if(this.cached.length){const i=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let r=0;r"u"||!i.length)return;if(this.subscriptions.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(i){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(i)}}async batchSubscribe(i){if(!i.length)return;const r=await this.rpcBatchSubscribe(i);fs(r)&&this.onBatchSubscribe(r.map((n,a)=>ec(qs({},i[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||this.relayer.transportExplicitlyClosed)return;const i=[];this.pending.forEach(r=>{i.push(r)}),await this.batchSubscribe(i)}registerEventListeners(){this.relayer.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(Gt.connect,async()=>{await this.onConnect()}),this.relayer.on(Gt.disconnect,()=>{this.onDisconnect()}),this.events.on($r.created,async i=>{const r=$r.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),await this.persist()}),this.events.on($r.deleted,async i=>{const r=$r.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}async restartToComplete(){this.restartInProgress&&await new Promise(i=>{const r=setInterval(()=>{this.restartInProgress||(clearInterval(r),i())},this.pollingInterval)})}}var cb=Object.defineProperty,al=Object.getOwnPropertySymbols,ub=Object.prototype.hasOwnProperty,hb=Object.prototype.propertyIsEnumerable,ol=(c,i,r)=>i in c?cb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,lb=(c,i)=>{for(var r in i||(i={}))ub.call(i,r)&&ol(c,r,i[r]);if(al)for(var r of al(i))hb.call(i,r)&&ol(c,r,i[r]);return c};class fb extends Pw{constructor(i){super(i),this.protocol="wc",this.version=2,this.events=new Kr.EventEmitter,this.name=L1,this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.hasExperiencedNetworkDisruption=!1,this.request=async r=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(r)}catch(n){throw this.logger.debug("Failed to Publish Request"),this.logger.error(n),n}},this.onPayloadHandler=r=>{this.onProviderPayload(r)},this.onConnectHandler=()=>{this.events.emit(Gt.connect)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=r=>{this.logger.error(r),this.events.emit(Gt.error,r),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(ri.payload,this.onPayloadHandler),this.provider.on(ri.connect,this.onConnectHandler),this.provider.on(ri.disconnect,this.onDisconnectHandler),this.provider.on(ri.error,this.onProviderErrorHandler)},this.core=i.core,this.logger=typeof i.logger<"u"&&typeof i.logger!="string"?Oe.generateChildLogger(i.logger,this.name):Oe.pino(Oe.getDefaultLoggerOptions({level:i.logger||D1})),this.messages=new Z1(this.logger,i.core),this.subscriber=new ob(this,this.logger),this.publisher=new eb(this,this.logger),this.relayUrl=(i==null?void 0:i.relayUrl)||sf,this.projectId=i.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${rl}...`),await this.restartTransport(rl)}this.initialized=!0,setTimeout(async()=>{this.subscriber.topics.length===0&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},j1)}get context(){return Oe.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(i,r,n){this.isInitialized(),await this.publisher.publish(i,r,n),await this.recordMessageEvent({topic:i,message:r,publishedAt:Date.now()})}async subscribe(i,r){var n;this.isInitialized();let a=((n=this.subscriber.topicMap.get(i))==null?void 0:n[0])||"";if(a)return a;let l;const d=y=>{y.topic===i&&(this.subscriber.off($r.created,d),l())};return await Promise.all([new Promise(y=>{l=y,this.subscriber.on($r.created,d)}),new Promise(async y=>{a=await this.subscriber.subscribe(i,r),y()})]),a}async unsubscribe(i,r){this.isInitialized(),await this.subscriber.unsubscribe(i,r)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async transportClose(){this.transportExplicitlyClosed=!0,this.hasExperiencedNetworkDisruption&&this.connected?await Vs(this.provider.disconnect(),1e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.connected&&await this.provider.disconnect()}async transportOpen(i){if(this.transportExplicitlyClosed=!1,await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress){i&&i!==this.relayUrl&&(this.relayUrl=i,await this.transportClose(),await this.createProvider()),this.connectionAttemptInProgress=!0;try{await Promise.all([new Promise(r=>{if(!this.initialized)return r();this.subscriber.once($r.resubscribed,()=>{r()})}),new Promise(async(r,n)=>{try{await Vs(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`)}catch(a){n(a);return}r()})])}catch(r){this.logger.error(r);const n=r;if(!this.isConnectionStalled(n.message))throw r;this.provider.events.emit(ri.disconnect)}finally{this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1}}}async restartTransport(i){await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress&&(this.relayUrl=i||this.relayUrl,await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await Oh())throw new Error("No internet connection detected. Please restart your network and try again.")}isConnectionStalled(i){return this.staleConnectionErrors.some(r=>i.includes(r))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const i=await this.core.crypto.signJWT(this.relayUrl);this.provider=new ni(new Jw(sm({sdkVersion:M1,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:i,useOnCloseEvent:!0}))),this.registerProviderListeners()}async recordMessageEvent(i){const{topic:r,message:n}=i;await this.messages.set(r,n)}async shouldIgnoreMessageEvent(i){const{topic:r,message:n}=i;if(!n||n.length===0)return this.logger.debug(`Ignoring invalid/empty message: ${n}`),!0;if(!await this.subscriber.isSubscribed(r))return this.logger.debug(`Ignoring message for non-subscribed topic ${r}`),!0;const a=this.messages.has(r,n);return a&&this.logger.debug(`Ignoring duplicate message: ${n}`),a}async onProviderPayload(i){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:i}),mc(i)){if(!i.method.endsWith(q1))return;const r=i.params,{topic:n,message:a,publishedAt:l}=r.data,d={topic:n,message:a,publishedAt:l};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(lb({type:"event",event:r.id},d)),this.events.emit(r.id,d),await this.acknowledgePayload(i),await this.onMessageEvent(d)}else wc(i)&&this.events.emit(Gt.message_ack,i)}async onMessageEvent(i){await this.shouldIgnoreMessageEvent(i)||(this.events.emit(Gt.message,i),await this.recordMessageEvent(i))}async acknowledgePayload(i){const r=_c(i.id,!0);await this.provider.connection.send(r)}unregisterProviderListeners(){this.provider.off(ri.payload,this.onPayloadHandler),this.provider.off(ri.connect,this.onConnectHandler),this.provider.off(ri.disconnect,this.onDisconnectHandler),this.provider.off(ri.error,this.onProviderErrorHandler)}async registerEventListeners(){this.events.on(Gt.connection_stalled,()=>{this.restartTransport().catch(r=>this.logger.error(r))});let i=await Oh();nm(async r=>{this.initialized&&i!==r&&(i=r,r?await this.restartTransport().catch(n=>this.logger.error(n)):(this.hasExperiencedNetworkDisruption=!0,await this.transportClose().catch(n=>this.logger.error(n))))})}onProviderDisconnect(){this.events.emit(Gt.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||(this.logger.info("attemptToReconnect called. Connecting..."),setTimeout(async()=>{await this.restartTransport().catch(i=>this.logger.error(i))},ie.toMiliseconds(z1)))}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectionAttemptInProgress)return await new Promise(i=>{const r=setInterval(()=>{this.connected&&(clearInterval(r),i())},this.connectionStatusPollingInterval)});await this.restartTransport()}}}var pb=Object.defineProperty,cl=Object.getOwnPropertySymbols,db=Object.prototype.hasOwnProperty,gb=Object.prototype.propertyIsEnumerable,ul=(c,i,r)=>i in c?pb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,hl=(c,i)=>{for(var r in i||(i={}))db.call(i,r)&&ul(c,r,i[r]);if(cl)for(var r of cl(i))gb.call(i,r)&&ul(c,r,i[r]);return c};class ma extends Sw{constructor(i,r,n,a=bi,l=void 0){super(i,r,n,a),this.core=i,this.logger=r,this.name=n,this.map=new Map,this.version=U1,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(d=>{this.getKey&&d!==null&&!_i(d)?this.map.set(this.getKey(d),d):G0(d)?this.map.set(d.id,d):W0(d)&&this.map.set(d.topic,d)}),this.cached=[],this.initialized=!0)},this.set=async(d,y)=>{this.isInitialized(),this.map.has(d)?await this.update(d,y):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:d,value:y}),this.map.set(d,y),await this.persist())},this.get=d=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:d}),this.getData(d)),this.getAll=d=>(this.isInitialized(),d?this.values.filter(y=>Object.keys(d).every(w=>Yw(y[w],d[w]))):this.values),this.update=async(d,y)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:d,update:y});const w=hl(hl({},this.getData(d)),y);this.map.set(d,w),await this.persist()},this.delete=async(d,y)=>{this.isInitialized(),this.map.has(d)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:d,reason:y}),this.map.delete(d),await this.persist())},this.logger=Oe.generateChildLogger(r,this.name),this.storagePrefix=a,this.getKey=l}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(i){await this.core.storage.setItem(this.storageKey,i)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(i){const r=this.map.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw this.logger.error(n),new Error(n)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{const i=await this.getDataStore();if(typeof i>"u"||!i.length)return;if(this.map.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(i){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(i)}}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class vb{constructor(i,r){this.core=i,this.logger=r,this.name=F1,this.version=B1,this.events=new vc,this.initialized=!1,this.storagePrefix=bi,this.ignoredPayloadTypes=[Rl],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();const n=oc(),a=await this.core.crypto.setSymKey(n),l=Dr(ie.FIVE_MINUTES),d={protocol:rf},y={topic:a,expiry:l,relay:d,active:!1},w=am({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:d});return await this.pairings.set(a,y),await this.core.relayer.subscribe(a),this.core.expirer.set(a,l),{topic:a,uri:w}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);const{topic:a,symKey:l,relay:d}=om(n.uri);let y;if(this.pairings.keys.includes(a)&&(y=this.pairings.get(a),y.active))throw new Error(`Pairing already exists: ${a}. Please try again with a new connection URI.`);this.core.crypto.keychain.has(a)||(await this.core.crypto.setSymKey(l,a),await this.core.relayer.subscribe(a,{relay:d}));const w=Dr(ie.FIVE_MINUTES),v={topic:a,relay:d,expiry:w,active:!1};return await this.pairings.set(a,v),this.core.expirer.set(a,w),n.activatePairing&&await this.activate({topic:a}),this.events.emit(Hs.create,v),v},this.activate=async({topic:n})=>{this.isInitialized();const a=Dr(ie.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:a}),this.core.expirer.set(n,a)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);const{topic:a}=n;if(this.pairings.keys.includes(a)){const l=await this.sendRequest(a,"wc_pairingPing",{}),{done:d,resolve:y,reject:w}=us();this.events.once($t("pairing_ping",l),({error:v})=>{v?w(v):y()}),await d()}},this.updateExpiry=async({topic:n,expiry:a})=>{this.isInitialized(),await this.pairings.update(n,{expiry:a})},this.updateMetadata=async({topic:n,metadata:a})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:a})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);const{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",tr("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,l)=>{const d=Ks(a,l),y=await this.core.crypto.encode(n,d),w=Ls[a].req;return this.core.history.set(n,d),this.core.relayer.publish(n,y,w),d.id},this.sendResult=async(n,a,l)=>{const d=_c(n,l),y=await this.core.crypto.encode(a,d),w=await this.core.history.get(a,n),v=Ls[w.request.method].res;await this.core.relayer.publish(a,y,v),await this.core.history.resolve(d)},this.sendError=async(n,a,l)=>{const d=yc(n,l),y=await this.core.crypto.encode(a,d),w=await this.core.history.get(a,n),v=Ls[w.request.method]?Ls[w.request.method].res:Ls.unregistered_method.res;await this.core.relayer.publish(a,y,v),await this.core.history.resolve(d)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,tr("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{const n=this.pairings.getAll().filter(a=>wi(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{const{topic:a,payload:l}=n;switch(l.method){case"wc_pairingPing":return this.onPairingPingRequest(a,l);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,l);default:return this.onUnknownRpcMethodRequest(a,l)}},this.onRelayEventResponse=async n=>{const{topic:a,payload:l}=n,d=(await this.core.history.get(a,l.id)).request.method;switch(d){case"wc_pairingPing":return this.onPairingPingResponse(a,l);default:return this.onUnknownRpcMethodResponse(d)}},this.onPairingPingRequest=async(n,a)=>{const{id:l}=a;try{this.isValidPing({topic:n}),await this.sendResult(l,n,!0),this.events.emit(Hs.ping,{id:l,topic:n})}catch(d){await this.sendError(l,n,d),this.logger.error(d)}},this.onPairingPingResponse=(n,a)=>{const{id:l}=a;setTimeout(()=>{mi(a)?this.events.emit($t("pairing_ping",l),{}):si(a)&&this.events.emit($t("pairing_ping",l),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{const{id:l}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit(Hs.delete,{id:l,topic:n})}catch(d){await this.sendError(l,n,d),this.logger.error(d)}},this.onUnknownRpcMethodRequest=async(n,a)=>{const{id:l,method:d}=a;try{if(this.registeredMethods.includes(d))return;const y=tr("WC_METHOD_UNSUPPORTED",d);await this.sendError(l,n,y),this.logger.error(y)}catch(y){await this.sendError(l,n,y),this.logger.error(y)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(tr("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!hr(n)){const{message:a}=X("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(a)}if(!cm(n.uri)){const{message:a}=X("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(a)}},this.isValidPing=async n=>{if(!hr(n)){const{message:l}=X("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(l)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!hr(n)){const{message:l}=X("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(l)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!hs(n,!1)){const{message:a}=X("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){const{message:a}=X("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(wi(this.pairings.get(n).expiry)){await this.deletePairing(n);const{message:a}=X("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=i,this.logger=Oe.generateChildLogger(r,this.name),this.pairings=new ma(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Oe.getLoggerContext(this.logger)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}registerRelayerEvents(){this.core.relayer.on(Gt.message,async i=>{const{topic:r,message:n}=i;if(!this.pairings.keys.includes(r)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;const a=await this.core.crypto.decode(r,n);try{mc(a)?(this.core.history.set(r,a),this.onRelayEventRequest({topic:r,payload:a})):wc(a)&&(await this.core.history.resolve(a),await this.onRelayEventResponse({topic:r,payload:a}),this.core.history.delete(r,a.id))}catch(l){this.logger.error(l)}})}registerExpirerEvents(){this.core.expirer.on(Sr.expired,async i=>{const{topic:r}=Tl(i.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit(Hs.expire,{topic:r}))})}}class yb extends Ew{constructor(i,r){super(i,r),this.core=i,this.logger=r,this.records=new Map,this.events=new Kr.EventEmitter,this.name=G1,this.version=W1,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,a,l)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:l}),this.records.has(a.id))return;const d={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:l,expiry:Dr(ie.THIRTY_DAYS)};this.records.set(d.id,d),this.events.emit(kr.created,d)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;const a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=si(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(kr.updated,a))},this.get=async(n,a)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:a}),await this.getRecord(a)),this.delete=(n,a)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:a}),this.values.forEach(l=>{if(l.topic===n){if(typeof a<"u"&&l.id!==a)return;this.records.delete(l.id),this.events.emit(kr.deleted,l)}})},this.exists=async(n,a)=>(this.isInitialized(),this.records.has(a)?(await this.getRecord(a)).topic===n:!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const i=[];return this.values.forEach(r=>{if(typeof r.response<"u")return;const n={topic:r.topic,request:Ks(r.request.method,r.request.params,r.id),chainId:r.chainId};return i.push(n)}),i}async setJsonRpcRecords(i){await this.core.storage.setItem(this.storageKey,i)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(i){this.isInitialized();const r=this.records.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(kr.sync)}async restore(){try{const i=await this.getJsonRpcRecords();if(typeof i>"u"||!i.length)return;if(this.records.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(i){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(i)}}registerEventListeners(){this.events.on(kr.created,i=>{const r=kr.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.events.on(kr.updated,i=>{const r=kr.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.events.on(kr.deleted,i=>{const r=kr.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(i=>{ie.toMiliseconds(i.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${i.id}`),this.delete(i.topic,i.id))})}catch(i){this.logger.warn(i)}}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class mb extends Ow{constructor(i,r){super(i,r),this.core=i,this.logger=r,this.expirations=new Map,this.events=new Kr.EventEmitter,this.name=J1,this.version=Q1,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{const a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();const l=this.formatTarget(n),d={target:l,expiry:a};this.expirations.set(l,d),this.checkExpiry(l,d),this.events.emit(Sr.created,{target:l,expiration:d})},this.get=n=>{this.isInitialized();const a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){const a=this.formatTarget(n),l=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Sr.deleted,{target:a,expiration:l})}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(i){if(typeof i=="string")return um(i);if(typeof i=="number")return hm(i);const{message:r}=X("UNKNOWN_TYPE",`Target type: ${typeof i}`);throw new Error(r)}async setExpirations(i){await this.core.storage.setItem(this.storageKey,i)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Sr.sync)}async restore(){try{const i=await this.getExpirations();if(typeof i>"u"||!i.length)return;if(this.expirations.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(i){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(i)}}getExpiration(i){const r=this.expirations.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(i,r){const{expiry:n}=r;ie.toMiliseconds(n)-Date.now()<=0&&this.expire(i,r)}expire(i,r){this.expirations.delete(i),this.events.emit(Sr.expired,{target:i,expiration:r})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((i,r)=>this.checkExpiry(r,i))}registerEventListeners(){this.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Sr.created,i=>{const r=Sr.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()}),this.events.on(Sr.expired,i=>{const r=Sr.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()}),this.events.on(Sr.deleted,i=>{const r=Sr.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()})}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class wb extends Rw{constructor(i,r){super(i,r),this.projectId=i,this.logger=r,this.name=Zo,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async()=>{if(this.verifyDisabled||lm()||!Al())return;const n=la;this.verifyUrl!==n&&this.removeIframe(),this.verifyUrl=n;try{await this.createIframe()}catch(a){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(a)}if(!this.initialized){this.removeIframe(),this.verifyUrl=il;try{await this.createIframe()}catch(a){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(a),this.verifyDisabled=!0}}},this.register=async n=>{this.initialized?this.sendPost(n.attestationId):(this.addToQueue(n.attestationId),await this.init())},this.resolve=async n=>{if(this.isDevEnv)return"";const a=(n==null?void 0:n.verifyUrl)||la;let l;try{l=await this.fetchAttestation(n.attestationId,a)}catch(d){this.logger.info(`failed to resolve attestation: ${n.attestationId} from url: ${a}`),this.logger.info(d),l=await this.fetchAttestation(n.attestationId,il)}return l},this.fetchAttestation=async(n,a)=>{this.logger.info(`resolving attestation: ${n} from url: ${a}`);const l=this.startAbortTimer(ie.ONE_SECOND*2),d=await fetch(`${a}/attestation/${n}`,{signal:this.abortController.signal});return clearTimeout(l),d.status===200?await d.json():void 0},this.addToQueue=n=>{this.queue.push(n)},this.processQueue=()=>{this.queue.length!==0&&(this.queue.forEach(n=>this.sendPost(n)),this.queue=[])},this.sendPost=n=>{var a;try{if(!this.iframe)return;(a=this.iframe.contentWindow)==null||a.postMessage(n,"*"),this.logger.info(`postMessage sent: ${n} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let n;const a=l=>{l.data==="verify_ready"&&(this.initialized=!0,this.processQueue(),window.removeEventListener("message",a),n())};await Promise.race([new Promise(l=>{if(document.getElementById(Zo))return l();window.addEventListener("message",a);const d=document.createElement("iframe");d.id=Zo,d.src=`${this.verifyUrl}/${this.projectId}`,d.style.display="none",document.body.append(d),this.iframe=d,n=l}),new Promise((l,d)=>setTimeout(()=>{window.removeEventListener("message",a),d("verify iframe load timeout")},ie.toMiliseconds(ie.FIVE_SECONDS)))])},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.logger=Oe.generateChildLogger(r,this.name),this.verifyUrl=la,this.abortController=new AbortController,this.isDevEnv=fm()&&Xw.IS_VITEST}get context(){return Oe.getLoggerContext(this.logger)}startAbortTimer(i){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),ie.toMiliseconds(i))}}var _b=Object.defineProperty,ll=Object.getOwnPropertySymbols,bb=Object.prototype.hasOwnProperty,Eb=Object.prototype.propertyIsEnumerable,fl=(c,i,r)=>i in c?_b(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,pl=(c,i)=>{for(var r in i||(i={}))bb.call(i,r)&&fl(c,r,i[r]);if(ll)for(var r of ll(i))Eb.call(i,r)&&fl(c,r,i[r]);return c};class Ic extends bw{constructor(i){super(i),this.protocol=tf,this.version=I1,this.name=Ec,this.events=new Kr.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.projectId=i==null?void 0:i.projectId,this.relayUrl=(i==null?void 0:i.relayUrl)||sf,this.customStoragePrefix=i!=null&&i.customStoragePrefix?`:${i.customStoragePrefix}`:"";const r=typeof(i==null?void 0:i.logger)<"u"&&typeof(i==null?void 0:i.logger)!="string"?i.logger:Oe.pino(Oe.getDefaultLoggerOptions({level:(i==null?void 0:i.logger)||x1.logger}));this.logger=Oe.generateChildLogger(r,this.name),this.heartbeat=new ps.HeartBeat,this.crypto=new X1(this,this.logger,i==null?void 0:i.keychain),this.history=new yb(this,this.logger),this.expirer=new mb(this,this.logger),this.storage=i!=null&&i.storage?i.storage:new fw(pl(pl({},P1),i==null?void 0:i.storageOptions)),this.relayer=new fb({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new vb(this,this.logger),this.verify=new wb(this.projectId||"",this.logger)}static async init(i){const r=new Ic(i);await r.initialize();const n=await r.crypto.getClientId();return await r.storage.setItem(H1,n),r}get context(){return Oe.getLoggerContext(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(i){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,i),this.logger.error(i.message),i}}}const Ib=Ic,nf="wc",af=2,of="client",xc=`${nf}@${af}:${of}:`,tc={name:of,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},dl="WALLETCONNECT_DEEPLINK_CHOICE",xb="proposal",cf="Proposal expired",Pb="session",sa=ie.SEVEN_DAYS,Sb="engine",zs={wc_sessionPropose:{req:{ttl:ie.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:ie.ONE_DAY,prompt:!1,tag:1104},res:{ttl:ie.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:ie.ONE_DAY,prompt:!1,tag:1106},res:{ttl:ie.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:ie.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:ie.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:ie.ONE_DAY,prompt:!1,tag:1112},res:{ttl:ie.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:ie.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:ie.THIRTY_SECONDS,prompt:!1,tag:1115}}},rc={min:ie.FIVE_MINUTES,max:ie.SEVEN_DAYS},ii={idle:"IDLE",active:"ACTIVE"},Cb="request",Ob=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var Rb=Object.defineProperty,Tb=Object.defineProperties,Ab=Object.getOwnPropertyDescriptors,gl=Object.getOwnPropertySymbols,Nb=Object.prototype.hasOwnProperty,$b=Object.prototype.propertyIsEnumerable,vl=(c,i,r)=>i in c?Rb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,cr=(c,i)=>{for(var r in i||(i={}))Nb.call(i,r)&&vl(c,r,i[r]);if(gl)for(var r of gl(i))$b.call(i,r)&&vl(c,r,i[r]);return c},Ms=(c,i)=>Tb(c,Ab(i));class Db extends Aw{constructor(i){super(i),this.name=Sb,this.events=new vc,this.initialized=!1,this.ignoredPayloadTypes=[Rl],this.requestQueue={state:ii.idle,queue:[]},this.sessionRequestQueue={state:ii.idle,queue:[]},this.requestQueueDelay=ie.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(zs)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},ie.toMiliseconds(this.requestQueueDelay)))},this.connect=async r=>{await this.isInitialized();const n=Ms(cr({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(n);const{pairingTopic:a,requiredNamespaces:l,optionalNamespaces:d,sessionProperties:y,relays:w}=n;let v=a,E,C=!1;if(v&&(C=this.client.core.pairing.pairings.get(v).active),!v||!C){const{topic:he,uri:fe}=await this.client.core.pairing.create();v=he,E=fe}const T=await this.client.core.crypto.generateKeyPair(),j=cr({requiredNamespaces:l,optionalNamespaces:d,relays:w??[{protocol:rf}],proposer:{publicKey:T,metadata:this.client.metadata}},y&&{sessionProperties:y}),{reject:D,resolve:V,done:re}=us(ie.FIVE_MINUTES,cf);if(this.events.once($t("session_connect"),async({error:he,session:fe})=>{if(he)D(he);else if(fe){fe.self.publicKey=T;const pe=Ms(cr({},fe),{requiredNamespaces:fe.requiredNamespaces,optionalNamespaces:fe.optionalNamespaces});await this.client.session.set(fe.topic,pe),await this.setExpiry(fe.topic,fe.expiry),v&&await this.client.core.pairing.updateMetadata({topic:v,metadata:fe.peer.metadata}),V(pe)}}),!v){const{message:he}=X("NO_MATCHING_KEY",`connect() pairing topic: ${v}`);throw new Error(he)}const ce=await this.sendRequest({topic:v,method:"wc_sessionPropose",params:j}),ue=Dr(ie.FIVE_MINUTES);return await this.setProposal(ce,cr({id:ce,expiry:ue},j)),{uri:E,approval:re}},this.pair=async r=>(await this.isInitialized(),await this.client.core.pairing.pair(r)),this.approve=async r=>{await this.isInitialized(),await this.isValidApprove(r);const{id:n,relayProtocol:a,namespaces:l,sessionProperties:d}=r,y=this.client.proposal.get(n);let{pairingTopic:w,proposer:v,requiredNamespaces:E,optionalNamespaces:C}=y;w=w||"",ca(E)||(E=dm(l,"approve()"));const T=await this.client.core.crypto.generateKeyPair(),j=v.publicKey,D=await this.client.core.crypto.generateSharedKey(T,j);w&&n&&(await this.client.core.pairing.updateMetadata({topic:w,metadata:v.metadata}),await this.sendResult({id:n,topic:w,result:{relay:{protocol:a??"irn"},responderPublicKey:T}}),await this.client.proposal.delete(n,tr("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:w}));const V=cr({relay:{protocol:a??"irn"},namespaces:l,requiredNamespaces:E,optionalNamespaces:C,pairingTopic:w,controller:{publicKey:T,metadata:this.client.metadata},expiry:Dr(sa)},d&&{sessionProperties:d});await this.client.core.relayer.subscribe(D),await this.sendRequest({topic:D,method:"wc_sessionSettle",params:V,throwOnFailedPublish:!0});const re=Ms(cr({},V),{topic:D,pairingTopic:w,acknowledged:!1,self:V.controller,peer:{publicKey:v.publicKey,metadata:v.metadata},controller:T});return await this.client.session.set(D,re),await this.setExpiry(D,Dr(sa)),{topic:D,acknowledged:()=>new Promise(ce=>setTimeout(()=>ce(this.client.session.get(D)),500))}},this.reject=async r=>{await this.isInitialized(),await this.isValidReject(r);const{id:n,reason:a}=r,{pairingTopic:l}=this.client.proposal.get(n);l&&(await this.sendError(n,l,a),await this.client.proposal.delete(n,tr("USER_DISCONNECTED")))},this.update=async r=>{await this.isInitialized(),await this.isValidUpdate(r);const{topic:n,namespaces:a}=r,l=await this.sendRequest({topic:n,method:"wc_sessionUpdate",params:{namespaces:a}}),{done:d,resolve:y,reject:w}=us();return this.events.once($t("session_update",l),({error:v})=>{v?w(v):y()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:d}},this.extend=async r=>{await this.isInitialized(),await this.isValidExtend(r);const{topic:n}=r,a=await this.sendRequest({topic:n,method:"wc_sessionExtend",params:{}}),{done:l,resolve:d,reject:y}=us();return this.events.once($t("session_extend",a),({error:w})=>{w?y(w):d()}),await this.setExpiry(n,Dr(sa)),{acknowledged:l}},this.request=async r=>{await this.isInitialized(),await this.isValidRequest(r);const{chainId:n,request:a,topic:l,expiry:d}=r,y=qm(),{done:w,resolve:v,reject:E}=us(d,"Request expired. Please try again.");return this.events.once($t("session_request",y),({error:C,result:T})=>{C?E(C):v(T)}),await Promise.all([new Promise(async C=>{await this.sendRequest({clientRpcId:y,topic:l,method:"wc_sessionRequest",params:{request:a,chainId:n},expiry:d,throwOnFailedPublish:!0}).catch(T=>E(T)),this.client.events.emit("session_request_sent",{topic:l,request:a,chainId:n,id:y}),C()}),new Promise(async C=>{const T=await this.client.core.storage.getItem(dl);gm({id:y,topic:l,wcDeepLink:T}),C()}),w()]).then(C=>C[2])},this.respond=async r=>{await this.isInitialized(),await this.isValidRespond(r);const{topic:n,response:a}=r,{id:l}=a;mi(a)?await this.sendResult({id:l,topic:n,result:a.result,throwOnFailedPublish:!0}):si(a)&&await this.sendError(l,n,a.error),this.cleanupAfterResponse(r)},this.ping=async r=>{await this.isInitialized(),await this.isValidPing(r);const{topic:n}=r;if(this.client.session.keys.includes(n)){const a=await this.sendRequest({topic:n,method:"wc_sessionPing",params:{}}),{done:l,resolve:d,reject:y}=us();this.events.once($t("session_ping",a),({error:w})=>{w?y(w):d()}),await l()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async r=>{await this.isInitialized(),await this.isValidEmit(r);const{topic:n,event:a,chainId:l}=r;await this.sendRequest({topic:n,method:"wc_sessionEvent",params:{event:a,chainId:l}})},this.disconnect=async r=>{await this.isInitialized(),await this.isValidDisconnect(r);const{topic:n}=r;this.client.session.keys.includes(n)?(await this.sendRequest({topic:n,method:"wc_sessionDelete",params:tr("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(n=>vm(n,r))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async r=>{if(r.pairingTopic)try{const n=this.client.core.pairing.pairings.get(r.pairingTopic),a=this.client.core.pairing.pairings.getAll().filter(l=>{var d,y;return((d=l.peerMetadata)==null?void 0:d.url)&&((y=l.peerMetadata)==null?void 0:y.url)===r.peer.metadata.url&&l.topic&&l.topic!==n.topic});if(a.length===0)return;this.client.logger.info(`Cleaning up ${a.length} duplicate pairing(s)`),await Promise.all(a.map(l=>this.client.core.pairing.disconnect({topic:l.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(n){this.client.logger.error(n)}},this.deleteSession=async(r,n)=>{const{self:a}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),this.client.session.delete(r,tr("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(r)&&await this.client.core.crypto.deleteSymKey(r),n||this.client.core.expirer.del(r),this.client.core.storage.removeItem(dl).catch(l=>this.client.logger.warn(l))},this.deleteProposal=async(r,n)=>{await Promise.all([this.client.proposal.delete(r,tr("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deletePendingSessionRequest=async(r,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,n),a?Promise.resolve():this.client.core.expirer.del(r)]),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(l=>l.id!==r),a&&(this.sessionRequestQueue.state=ii.idle)},this.setExpiry=async(r,n)=>{this.client.session.keys.includes(r)&&await this.client.session.update(r,{expiry:n}),this.client.core.expirer.set(r,n)},this.setProposal=async(r,n)=>{await this.client.proposal.set(r,n),this.client.core.expirer.set(r,n.expiry)},this.setPendingSessionRequest=async r=>{const n=zs.wc_sessionRequest.req.ttl,{id:a,topic:l,params:d,verifyContext:y}=r;await this.client.pendingRequest.set(a,{id:a,topic:l,params:d,verifyContext:y}),n&&this.client.core.expirer.set(a,Dr(n))},this.sendRequest=async r=>{const{topic:n,method:a,params:l,expiry:d,relayRpcId:y,clientRpcId:w,throwOnFailedPublish:v}=r,E=Ks(a,l,w);if(Al()&&Ob.includes(a)){const j=ls(JSON.stringify(E));this.client.core.verify.register({attestationId:j})}const C=await this.client.core.crypto.encode(n,E),T=zs[a].req;return d&&(T.ttl=d),y&&(T.id=y),this.client.core.history.set(n,E),v?(T.internal=Ms(cr({},T.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,C,T)):this.client.core.relayer.publish(n,C,T).catch(j=>this.client.logger.error(j)),E.id},this.sendResult=async r=>{const{id:n,topic:a,result:l,throwOnFailedPublish:d}=r,y=_c(n,l),w=await this.client.core.crypto.encode(a,y),v=await this.client.core.history.get(a,n),E=zs[v.request.method].res;d?(E.internal=Ms(cr({},E.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(a,w,E)):this.client.core.relayer.publish(a,w,E).catch(C=>this.client.logger.error(C)),await this.client.core.history.resolve(y)},this.sendError=async(r,n,a)=>{const l=yc(r,a),d=await this.client.core.crypto.encode(n,l),y=await this.client.core.history.get(n,r),w=zs[y.request.method].res;this.client.core.relayer.publish(n,d,w),await this.client.core.history.resolve(l)},this.cleanup=async()=>{const r=[],n=[];this.client.session.getAll().forEach(a=>{wi(a.expiry)&&r.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{wi(a.expiry)&&n.push(a.id)}),await Promise.all([...r.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=async r=>{this.requestQueue.queue.push(r),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===ii.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=ii.active;const r=this.requestQueue.queue.shift();if(r)try{this.processRequest(r),await new Promise(n=>setTimeout(n,300))}catch(n){this.client.logger.warn(n)}}this.requestQueue.state=ii.idle},this.processRequest=r=>{const{topic:n,payload:a}=r,l=a.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeRequest(n,a);case"wc_sessionSettle":return this.onSessionSettleRequest(n,a);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,a);case"wc_sessionExtend":return this.onSessionExtendRequest(n,a);case"wc_sessionPing":return this.onSessionPingRequest(n,a);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,a);case"wc_sessionRequest":return this.onSessionRequest(n,a);case"wc_sessionEvent":return this.onSessionEventRequest(n,a);default:return this.client.logger.info(`Unsupported request method ${l}`)}},this.onRelayEventResponse=async r=>{const{topic:n,payload:a}=r,l=(await this.client.core.history.get(n,a.id)).request.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeResponse(n,a);case"wc_sessionSettle":return this.onSessionSettleResponse(n,a);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,a);case"wc_sessionExtend":return this.onSessionExtendResponse(n,a);case"wc_sessionPing":return this.onSessionPingResponse(n,a);case"wc_sessionRequest":return this.onSessionRequestResponse(n,a);default:return this.client.logger.info(`Unsupported response method ${l}`)}},this.onRelayEventUnknownPayload=r=>{const{topic:n}=r,{message:a}=X("MISSING_OR_INVALID",`Decoded payload on topic ${n} is not identifiable as a JSON-RPC request or a response.`);throw new Error(a)},this.onSessionProposeRequest=async(r,n)=>{const{params:a,id:l}=n;try{this.isValidConnect(cr({},n.params));const d=Dr(ie.FIVE_MINUTES),y=cr({id:l,pairingTopic:r,expiry:d},a);await this.setProposal(l,y);const w=ls(JSON.stringify(n)),v=await this.getVerifyContext(w,y.proposer.metadata);this.client.events.emit("session_proposal",{id:l,params:y,verifyContext:v})}catch(d){await this.sendError(l,r,d),this.client.logger.error(d)}},this.onSessionProposeResponse=async(r,n)=>{const{id:a}=n;if(mi(n)){const{result:l}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:l});const d=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:d});const y=d.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:y});const w=l.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:w});const v=await this.client.core.crypto.generateSharedKey(y,w);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:v});const E=await this.client.core.relayer.subscribe(v);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:E}),await this.client.core.pairing.activate({topic:r})}else si(n)&&(await this.client.proposal.delete(a,tr("USER_DISCONNECTED")),this.events.emit($t("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(r,n)=>{const{id:a,params:l}=n;try{this.isValidSessionSettleRequest(l);const{relay:d,controller:y,expiry:w,namespaces:v,requiredNamespaces:E,optionalNamespaces:C,sessionProperties:T,pairingTopic:j}=n.params,D=cr({topic:r,relay:d,expiry:w,namespaces:v,acknowledged:!0,pairingTopic:j,requiredNamespaces:E,optionalNamespaces:C,controller:y.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:y.publicKey,metadata:y.metadata}},T&&{sessionProperties:T});await this.sendResult({id:n.id,topic:r,result:!0}),this.events.emit($t("session_connect"),{session:D}),this.cleanupDuplicatePairings(D)}catch(d){await this.sendError(a,r,d),this.client.logger.error(d)}},this.onSessionSettleResponse=async(r,n)=>{const{id:a}=n;mi(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit($t("session_approve",a),{})):si(n)&&(await this.client.session.delete(r,tr("USER_DISCONNECTED")),this.events.emit($t("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{const{params:a,id:l}=n;try{const d=`${r}_session_update`,y=ta.get(d);if(y&&this.isRequestOutOfSync(y,l)){this.client.logger.info(`Discarding out of sync request - ${l}`);return}this.isValidUpdate(cr({topic:r},a)),await this.client.session.update(r,{namespaces:a.namespaces}),await this.sendResult({id:l,topic:r,result:!0}),this.client.events.emit("session_update",{id:l,topic:r,params:a}),ta.set(d,l)}catch(d){await this.sendError(l,r,d),this.client.logger.error(d)}},this.isRequestOutOfSync=(r,n)=>parseInt(n.toString().slice(0,-3))<=parseInt(r.toString().slice(0,-3)),this.onSessionUpdateResponse=(r,n)=>{const{id:a}=n;mi(n)?this.events.emit($t("session_update",a),{}):si(n)&&this.events.emit($t("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{const{id:a}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,Dr(sa)),await this.sendResult({id:a,topic:r,result:!0}),this.client.events.emit("session_extend",{id:a,topic:r})}catch(l){await this.sendError(a,r,l),this.client.logger.error(l)}},this.onSessionExtendResponse=(r,n)=>{const{id:a}=n;mi(n)?this.events.emit($t("session_extend",a),{}):si(n)&&this.events.emit($t("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(r,n)=>{const{id:a}=n;try{this.isValidPing({topic:r}),await this.sendResult({id:a,topic:r,result:!0}),this.client.events.emit("session_ping",{id:a,topic:r})}catch(l){await this.sendError(a,r,l),this.client.logger.error(l)}},this.onSessionPingResponse=(r,n)=>{const{id:a}=n;setTimeout(()=>{mi(n)?this.events.emit($t("session_ping",a),{}):si(n)&&this.events.emit($t("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(r,n)=>{const{id:a}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),await Promise.all([new Promise(l=>{this.client.core.relayer.once(Gt.publish,async()=>{l(await this.deleteSession(r))})}),this.sendResult({id:a,topic:r,result:!0})]),this.client.events.emit("session_delete",{id:a,topic:r})}catch(l){this.client.logger.error(l)}},this.onSessionRequest=async(r,n)=>{const{id:a,params:l}=n;try{this.isValidRequest(cr({topic:r},l));const d=ls(JSON.stringify(Ks("wc_sessionRequest",l,a))),y=this.client.session.get(r),w=await this.getVerifyContext(d,y.peer.metadata),v={id:a,topic:r,params:l,verifyContext:w};await this.setPendingSessionRequest(v),this.addSessionRequestToSessionRequestQueue(v),this.processSessionRequestQueue()}catch(d){await this.sendError(a,r,d),this.client.logger.error(d)}},this.onSessionRequestResponse=(r,n)=>{const{id:a}=n;mi(n)?this.events.emit($t("session_request",a),{result:n.result}):si(n)&&this.events.emit($t("session_request",a),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{const{id:a,params:l}=n;try{const d=`${r}_session_event_${l.event.name}`,y=ta.get(d);if(y&&this.isRequestOutOfSync(y,a)){this.client.logger.info(`Discarding out of sync request - ${a}`);return}this.isValidEmit(cr({topic:r},l)),this.client.events.emit("session_event",{id:a,topic:r,params:l}),ta.set(d,a)}catch(d){await this.sendError(a,r,d),this.client.logger.error(d)}},this.addSessionRequestToSessionRequestQueue=r=>{this.sessionRequestQueue.queue.push(r)},this.cleanupAfterResponse=r=>{this.deletePendingSessionRequest(r.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=ii.idle,this.processSessionRequestQueue()},ie.toMiliseconds(this.requestQueueDelay))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===ii.active){this.client.logger.info("session request queue is already active.");return}const r=this.sessionRequestQueue.queue[0];if(!r){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=ii.active,this.client.events.emit("session_request",r)}catch(n){this.client.logger.error(n)}},this.onPairingCreated=r=>{if(r.active)return;const n=this.client.proposal.getAll().find(a=>a.pairingTopic===r.topic);n&&this.onSessionProposeRequest(r.topic,Ks("wc_sessionPropose",{requiredNamespaces:n.requiredNamespaces,optionalNamespaces:n.optionalNamespaces,relays:n.relays,proposer:n.proposer},n.id))},this.isValidConnect=async r=>{if(!hr(r)){const{message:w}=X("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(w)}const{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:l,sessionProperties:d,relays:y}=r;if(_i(n)||await this.isValidPairingTopic(n),!ym(y,!0)){const{message:w}=X("MISSING_OR_INVALID",`connect() relays: ${y}`);throw new Error(w)}!_i(a)&&ca(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!_i(l)&&ca(l)!==0&&this.validateNamespaces(l,"optionalNamespaces"),_i(d)||this.validateSessionProps(d,"sessionProperties")},this.validateNamespaces=(r,n)=>{const a=mm(r,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async r=>{if(!hr(r))throw new Error(X("MISSING_OR_INVALID",`approve() params: ${r}`).message);const{id:n,namespaces:a,relayProtocol:l,sessionProperties:d}=r;await this.isValidProposalId(n);const y=this.client.proposal.get(n),w=Vo(a,"approve()");if(w)throw new Error(w.message);const v=Rh(y.requiredNamespaces,a,"approve()");if(v)throw new Error(v.message);if(!hs(l,!0)){const{message:E}=X("MISSING_OR_INVALID",`approve() relayProtocol: ${l}`);throw new Error(E)}_i(d)||this.validateSessionProps(d,"sessionProperties")},this.isValidReject=async r=>{if(!hr(r)){const{message:l}=X("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(l)}const{id:n,reason:a}=r;if(await this.isValidProposalId(n),!wm(a)){const{message:l}=X("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(l)}},this.isValidSessionSettleRequest=r=>{if(!hr(r)){const{message:v}=X("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(v)}const{relay:n,controller:a,namespaces:l,expiry:d}=r;if(!_m(n)){const{message:v}=X("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(v)}const y=bm(a,"onSessionSettleRequest()");if(y)throw new Error(y.message);const w=Vo(l,"onSessionSettleRequest()");if(w)throw new Error(w.message);if(wi(d)){const{message:v}=X("EXPIRED","onSessionSettleRequest()");throw new Error(v)}},this.isValidUpdate=async r=>{if(!hr(r)){const{message:w}=X("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(w)}const{topic:n,namespaces:a}=r;await this.isValidSessionTopic(n);const l=this.client.session.get(n),d=Vo(a,"update()");if(d)throw new Error(d.message);const y=Rh(l.requiredNamespaces,a,"update()");if(y)throw new Error(y.message)},this.isValidExtend=async r=>{if(!hr(r)){const{message:a}=X("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(a)}const{topic:n}=r;await this.isValidSessionTopic(n)},this.isValidRequest=async r=>{if(!hr(r)){const{message:w}=X("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(w)}const{topic:n,request:a,chainId:l,expiry:d}=r;await this.isValidSessionTopic(n);const{namespaces:y}=this.client.session.get(n);if(!Th(y,l)){const{message:w}=X("MISSING_OR_INVALID",`request() chainId: ${l}`);throw new Error(w)}if(!Em(a)){const{message:w}=X("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(w)}if(!Im(y,l,a.method)){const{message:w}=X("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(w)}if(d&&!xm(d,rc)){const{message:w}=X("MISSING_OR_INVALID",`request() expiry: ${d}. Expiry must be a number (in seconds) between ${rc.min} and ${rc.max}`);throw new Error(w)}},this.isValidRespond=async r=>{if(!hr(r)){const{message:l}=X("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(l)}const{topic:n,response:a}=r;if(await this.isValidSessionTopic(n),!Pm(a)){const{message:l}=X("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(a)}`);throw new Error(l)}},this.isValidPing=async r=>{if(!hr(r)){const{message:a}=X("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(a)}const{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async r=>{if(!hr(r)){const{message:y}=X("MISSING_OR_INVALID",`emit() params: ${r}`);throw new Error(y)}const{topic:n,event:a,chainId:l}=r;await this.isValidSessionTopic(n);const{namespaces:d}=this.client.session.get(n);if(!Th(d,l)){const{message:y}=X("MISSING_OR_INVALID",`emit() chainId: ${l}`);throw new Error(y)}if(!Sm(a)){const{message:y}=X("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(y)}if(!Cm(d,l,a.name)){const{message:y}=X("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(y)}},this.isValidDisconnect=async r=>{if(!hr(r)){const{message:a}=X("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(a)}const{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.getVerifyContext=async(r,n)=>{const a={verified:{verifyUrl:n.verifyUrl||la,validation:"UNKNOWN",origin:n.url||""}};try{const l=await this.client.core.verify.resolve({attestationId:r,verifyUrl:n.verifyUrl});l&&(a.verified.origin=l.origin,a.verified.isScam=l.isScam,a.verified.validation=l.origin===new URL(n.url).origin?"VALID":"INVALID")}catch(l){this.client.logger.info(l)}return this.client.logger.info(`Verify context: ${JSON.stringify(a)}`),a},this.validateSessionProps=(r,n)=>{Object.values(r).forEach(a=>{if(!hs(a,!1)){const{message:l}=X("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(l)}})}}async isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(Gt.message,async i=>{const{topic:r,message:n}=i;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;const a=await this.client.core.crypto.decode(r,n);try{mc(a)?(this.client.core.history.set(r,a),this.onRelayEventRequest({topic:r,payload:a})):wc(a)?(await this.client.core.history.resolve(a),await this.onRelayEventResponse({topic:r,payload:a}),this.client.core.history.delete(r,a.id)):this.onRelayEventUnknownPayload({topic:r,payload:a})}catch(l){this.client.logger.error(l)}})}registerExpirerEvents(){this.client.core.expirer.on(Sr.expired,async i=>{const{topic:r,id:n}=Tl(i.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,X("EXPIRED"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession(r,!0),this.client.events.emit("session_expire",{topic:r})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}registerPairingEvents(){this.client.core.pairing.events.on(Hs.create,i=>this.onPairingCreated(i))}isValidPairingTopic(i){if(!hs(i,!1)){const{message:r}=X("MISSING_OR_INVALID",`pairing topic should be a string: ${i}`);throw new Error(r)}if(!this.client.core.pairing.pairings.keys.includes(i)){const{message:r}=X("NO_MATCHING_KEY",`pairing topic doesn't exist: ${i}`);throw new Error(r)}if(wi(this.client.core.pairing.pairings.get(i).expiry)){const{message:r}=X("EXPIRED",`pairing topic: ${i}`);throw new Error(r)}}async isValidSessionTopic(i){if(!hs(i,!1)){const{message:r}=X("MISSING_OR_INVALID",`session topic should be a string: ${i}`);throw new Error(r)}if(!this.client.session.keys.includes(i)){const{message:r}=X("NO_MATCHING_KEY",`session topic doesn't exist: ${i}`);throw new Error(r)}if(wi(this.client.session.get(i).expiry)){await this.deleteSession(i);const{message:r}=X("EXPIRED",`session topic: ${i}`);throw new Error(r)}}async isValidSessionOrPairingTopic(i){if(this.client.session.keys.includes(i))await this.isValidSessionTopic(i);else if(this.client.core.pairing.pairings.keys.includes(i))this.isValidPairingTopic(i);else if(hs(i,!1)){const{message:r}=X("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${i}`);throw new Error(r)}else{const{message:r}=X("MISSING_OR_INVALID",`session or pairing topic should be a string: ${i}`);throw new Error(r)}}async isValidProposalId(i){if(!Om(i)){const{message:r}=X("MISSING_OR_INVALID",`proposal id should be a number: ${i}`);throw new Error(r)}if(!this.client.proposal.keys.includes(i)){const{message:r}=X("NO_MATCHING_KEY",`proposal id doesn't exist: ${i}`);throw new Error(r)}if(wi(this.client.proposal.get(i).expiry)){await this.deleteProposal(i);const{message:r}=X("EXPIRED",`proposal id: ${i}`);throw new Error(r)}}}class Lb extends ma{constructor(i,r){super(i,r,xb,xc),this.core=i,this.logger=r}}class qb extends ma{constructor(i,r){super(i,r,Pb,xc),this.core=i,this.logger=r}}class zb extends ma{constructor(i,r){super(i,r,Cb,xc,n=>n.id),this.core=i,this.logger=r}}let Mb=class uf extends Tw{constructor(i){super(i),this.protocol=nf,this.version=af,this.name=tc.name,this.events=new Kr.EventEmitter,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(a){throw this.logger.error(a.message),a}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(a){throw this.logger.error(a.message),a}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(a){throw this.logger.error(a.message),a}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(a){throw this.logger.error(a.message),a}},this.update=async n=>{try{return await this.engine.update(n)}catch(a){throw this.logger.error(a.message),a}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(a){throw this.logger.error(a.message),a}},this.request=async n=>{try{return await this.engine.request(n)}catch(a){throw this.logger.error(a.message),a}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(a){throw this.logger.error(a.message),a}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(a){throw this.logger.error(a.message),a}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(a){throw this.logger.error(a.message),a}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(a){throw this.logger.error(a.message),a}},this.find=n=>{try{return this.engine.find(n)}catch(a){throw this.logger.error(a.message),a}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=(i==null?void 0:i.name)||tc.name,this.metadata=(i==null?void 0:i.metadata)||pm();const r=typeof(i==null?void 0:i.logger)<"u"&&typeof(i==null?void 0:i.logger)!="string"?i.logger:Oe.pino(Oe.getDefaultLoggerOptions({level:(i==null?void 0:i.logger)||tc.logger}));this.core=(i==null?void 0:i.core)||new Ib(i),this.logger=Oe.generateChildLogger(r,this.name),this.session=new qb(this.core,this.logger),this.proposal=new Lb(this.core,this.logger),this.pendingRequest=new zb(this.core,this.logger),this.engine=new Db(this)}static async init(i){const r=new uf(i);return await r.initialize(),r}get context(){return Oe.getLoggerContext(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(i){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(i.message),i}}};const yl="error",jb="wss://relay.walletconnect.com",Ub="wc",Hb="universal_provider",ml=`${Ub}@2:${Hb}:`,kb="https://rpc.walletconnect.com/v1/",ai={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fc={exports:{}};/** +import{f as K0,r as Fs,h as ie,i as Kr,j as V0,w as Cl,k as Ol,m as gc,t as ga,o as F0,p as ea,q as B0,s as _i,D as G0,u as W0,N as X,v as J0,x as oc,y as Q0,V as Y0,R as X0,F as Sh,K as Z0,z as em,L as tm,A as Ch,$ as rm,B as im,C as Vs,Z as Oh,J as sm,X as nm,E as vc,_ as Rl,G as Dr,H as am,I as om,M as us,O as $t,U as tr,P as wi,Q as hr,S as cm,T as hs,W as Tl,Y as um,a0 as hm,a1 as lm,a2 as Al,a3 as fm,a4 as Nl,a5 as $l,a6 as ls,a7 as cc,a8 as oa,a9 as fs,aa as pm,ab as ca,ac as dm,ad as gm,ae as vm,af as ta,ag as ym,ah as mm,ai as Vo,aj as Rh,ak as wm,al as _m,am as bm,an as Th,ao as Em,ap as Im,aq as xm,ar as Pm,as as Sm,at as Cm,au as Om,av as Us,aw as Dl,ax as Fo,ay as Rm,az as Tm,aA as Am}from"./index-0aC6Xlgc.js";import{s as Bs,a as va,i as Ah,c as Nm,b as $m,f as yc,p as Dm,J as ni,d as mc,e as wc,g as _c,h as mi,j as si,k as Ks,l as Lm,m as qm,H as Ii}from"./http-EUccMvXZ.js";const zm=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Mm=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,jm=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Um(c,i){if(c==="__proto__"||c==="constructor"&&i&&typeof i=="object"&&"prototype"in i){Hm(c);return}return i}function Hm(c){console.warn(`[destr] Dropping "${c}" key to prevent prototype pollution.`)}function ra(c,i={}){if(typeof c!="string")return c;const r=c.trim();if(c[0]==='"'&&c.at(-1)==='"'&&!c.includes("\\"))return r.slice(1,-1);if(r.length<=9){const n=r.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!jm.test(c)){if(i.strict)throw new SyntaxError("[destr] Invalid JSON");return c}try{if(zm.test(c)||Mm.test(c)){if(i.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(c,Um)}return JSON.parse(c)}catch(n){if(i.strict)throw n;return c}}function km(c){return!c||typeof c.then!="function"?Promise.resolve(c):c}function Ut(c,...i){try{return km(c(...i))}catch(r){return Promise.reject(r)}}function Km(c){const i=typeof c;return c===null||i!=="object"&&i!=="function"}function Vm(c){const i=Object.getPrototypeOf(c);return!i||i.isPrototypeOf(Object)}function ua(c){if(Km(c))return String(c);if(Vm(c)||Array.isArray(c))return JSON.stringify(c);if(typeof c.toJSON=="function")return ua(c.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function Ll(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const uc="base64:";function Fm(c){if(typeof c=="string")return c;Ll();const i=Buffer.from(c).toString("base64");return uc+i}function Bm(c){return typeof c!="string"||!c.startsWith(uc)?c:(Ll(),Buffer.from(c.slice(uc.length),"base64"))}function ur(c){return c?c.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function Gm(...c){return ur(c.join(":"))}function ia(c){return c=ur(c),c?c+":":""}const Wm="memory",Jm=()=>{const c=new Map;return{name:Wm,options:{},hasItem(i){return c.has(i)},getItem(i){return c.get(i)??null},getItemRaw(i){return c.get(i)??null},setItem(i,r){c.set(i,r)},setItemRaw(i,r){c.set(i,r)},removeItem(i){c.delete(i)},getKeys(){return Array.from(c.keys())},clear(){c.clear()},dispose(){c.clear()}}};function Qm(c={}){const i={mounts:{"":c.driver||Jm()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=v=>{for(const E of i.mountpoints)if(v.startsWith(E))return{base:E,relativeKey:v.slice(E.length),driver:i.mounts[E]};return{base:"",relativeKey:v,driver:i.mounts[""]}},n=(v,E)=>i.mountpoints.filter(C=>C.startsWith(v)||E&&v.startsWith(C)).map(C=>({relativeBase:v.length>C.length?v.slice(C.length):void 0,mountpoint:C,driver:i.mounts[C]})),a=(v,E)=>{if(i.watching){E=ur(E);for(const C of i.watchListeners)C(v,E)}},l=async()=>{if(!i.watching){i.watching=!0;for(const v in i.mounts)i.unwatch[v]=await Nh(i.mounts[v],a,v)}},d=async()=>{if(i.watching){for(const v in i.unwatch)await i.unwatch[v]();i.unwatch={},i.watching=!1}},y=(v,E,C)=>{const T=new Map,j=D=>{let V=T.get(D.base);return V||(V={driver:D.driver,base:D.base,items:[]},T.set(D.base,V)),V};for(const D of v){const V=typeof D=="string",re=ur(V?D:D.key),ce=V?void 0:D.value,ue=V||!D.options?E:{...E,...D.options},he=r(re);j(he).items.push({key:re,value:ce,relativeKey:he.relativeKey,options:ue})}return Promise.all([...T.values()].map(D=>C(D))).then(D=>D.flat())},w={hasItem(v,E={}){v=ur(v);const{relativeKey:C,driver:T}=r(v);return Ut(T.hasItem,C,E)},getItem(v,E={}){v=ur(v);const{relativeKey:C,driver:T}=r(v);return Ut(T.getItem,C,E).then(j=>ra(j))},getItems(v,E){return y(v,E,C=>C.driver.getItems?Ut(C.driver.getItems,C.items.map(T=>({key:T.relativeKey,options:T.options})),E).then(T=>T.map(j=>({key:Gm(C.base,j.key),value:ra(j.value)}))):Promise.all(C.items.map(T=>Ut(C.driver.getItem,T.relativeKey,T.options).then(j=>({key:T.key,value:ra(j)})))))},getItemRaw(v,E={}){v=ur(v);const{relativeKey:C,driver:T}=r(v);return T.getItemRaw?Ut(T.getItemRaw,C,E):Ut(T.getItem,C,E).then(j=>Bm(j))},async setItem(v,E,C={}){if(E===void 0)return w.removeItem(v);v=ur(v);const{relativeKey:T,driver:j}=r(v);j.setItem&&(await Ut(j.setItem,T,ua(E),C),j.watch||a("update",v))},async setItems(v,E){await y(v,E,async C=>{C.driver.setItems&&await Ut(C.driver.setItems,C.items.map(T=>({key:T.relativeKey,value:ua(T.value),options:T.options})),E),C.driver.setItem&&await Promise.all(C.items.map(T=>Ut(C.driver.setItem,T.relativeKey,ua(T.value),T.options)))})},async setItemRaw(v,E,C={}){if(E===void 0)return w.removeItem(v,C);v=ur(v);const{relativeKey:T,driver:j}=r(v);if(j.setItemRaw)await Ut(j.setItemRaw,T,E,C);else if(j.setItem)await Ut(j.setItem,T,Fm(E),C);else return;j.watch||a("update",v)},async removeItem(v,E={}){typeof E=="boolean"&&(E={removeMeta:E}),v=ur(v);const{relativeKey:C,driver:T}=r(v);T.removeItem&&(await Ut(T.removeItem,C,E),(E.removeMeta||E.removeMata)&&await Ut(T.removeItem,C+"$",E),T.watch||a("remove",v))},async getMeta(v,E={}){typeof E=="boolean"&&(E={nativeOnly:E}),v=ur(v);const{relativeKey:C,driver:T}=r(v),j=Object.create(null);if(T.getMeta&&Object.assign(j,await Ut(T.getMeta,C,E)),!E.nativeOnly){const D=await Ut(T.getItem,C+"$",E).then(V=>ra(V));D&&typeof D=="object"&&(typeof D.atime=="string"&&(D.atime=new Date(D.atime)),typeof D.mtime=="string"&&(D.mtime=new Date(D.mtime)),Object.assign(j,D))}return j},setMeta(v,E,C={}){return this.setItem(v+"$",E,C)},removeMeta(v,E={}){return this.removeItem(v+"$",E)},async getKeys(v,E={}){v=ia(v);const C=n(v,!0);let T=[];const j=[];for(const D of C){const re=(await Ut(D.driver.getKeys,D.relativeBase,E)).map(ce=>D.mountpoint+ur(ce)).filter(ce=>!T.some(ue=>ce.startsWith(ue)));j.push(...re),T=[D.mountpoint,...T.filter(ce=>!ce.startsWith(D.mountpoint))]}return v?j.filter(D=>D.startsWith(v)&&!D.endsWith("$")):j.filter(D=>!D.endsWith("$"))},async clear(v,E={}){v=ia(v),await Promise.all(n(v,!1).map(async C=>{if(C.driver.clear)return Ut(C.driver.clear,C.relativeBase,E);if(C.driver.removeItem){const T=await C.driver.getKeys(C.relativeBase||"",E);return Promise.all(T.map(j=>C.driver.removeItem(j,E)))}}))},async dispose(){await Promise.all(Object.values(i.mounts).map(v=>$h(v)))},async watch(v){return await l(),i.watchListeners.push(v),async()=>{i.watchListeners=i.watchListeners.filter(E=>E!==v),i.watchListeners.length===0&&await d()}},async unwatch(){i.watchListeners=[],await d()},mount(v,E){if(v=ia(v),v&&i.mounts[v])throw new Error(`already mounted at ${v}`);return v&&(i.mountpoints.push(v),i.mountpoints.sort((C,T)=>T.length-C.length)),i.mounts[v]=E,i.watching&&Promise.resolve(Nh(E,a,v)).then(C=>{i.unwatch[v]=C}).catch(console.error),w},async unmount(v,E=!0){v=ia(v),!(!v||!i.mounts[v])&&(i.watching&&v in i.unwatch&&(i.unwatch[v](),delete i.unwatch[v]),E&&await $h(i.mounts[v]),i.mountpoints=i.mountpoints.filter(C=>C!==v),delete i.mounts[v])},getMount(v=""){v=ur(v)+":";const E=r(v);return{driver:E.driver,base:E.base}},getMounts(v="",E={}){return v=ur(v),n(v,E.parents).map(T=>({driver:T.driver,base:T.mountpoint}))}};return w}function Nh(c,i,r){return c.watch?c.watch((n,a)=>i(n,r+a)):()=>{}}async function $h(c){typeof c.dispose=="function"&&await Ut(c.dispose)}function Ui(c){return new Promise((i,r)=>{c.oncomplete=c.onsuccess=()=>i(c.result),c.onabort=c.onerror=()=>r(c.error)})}function ql(c,i){const r=indexedDB.open(c);r.onupgradeneeded=()=>r.result.createObjectStore(i);const n=Ui(r);return(a,l)=>n.then(d=>l(d.transaction(i,a).objectStore(i)))}let Bo;function Gs(){return Bo||(Bo=ql("keyval-store","keyval")),Bo}function Dh(c,i=Gs()){return i("readonly",r=>Ui(r.get(c)))}function Ym(c,i,r=Gs()){return r("readwrite",n=>(n.put(i,c),Ui(n.transaction)))}function Xm(c,i=Gs()){return i("readwrite",r=>(r.delete(c),Ui(r.transaction)))}function Zm(c=Gs()){return c("readwrite",i=>(i.clear(),Ui(i.transaction)))}function ew(c,i){return c.openCursor().onsuccess=function(){this.result&&(i(this.result),this.result.continue())},Ui(c.transaction)}function tw(c=Gs()){return c("readonly",i=>{if(i.getAllKeys)return Ui(i.getAllKeys());const r=[];return ew(i,n=>r.push(n.key)).then(()=>r)})}const rw="idb-keyval";var iw=(c={})=>{const i=c.base&&c.base.length>0?`${c.base}:`:"",r=a=>i+a;let n;return c.dbName&&c.storeName&&(n=ql(c.dbName,c.storeName)),{name:rw,options:c,async hasItem(a){return!(typeof await Dh(r(a),n)>"u")},async getItem(a){return await Dh(r(a),n)??null},setItem(a,l){return Ym(r(a),l,n)},removeItem(a){return Xm(r(a),n)},getKeys(){return tw(n)},clear(){return Zm(n)}}};const sw="WALLET_CONNECT_V2_INDEXED_DB",nw="keyvaluestorage";let aw=class{constructor(){this.indexedDb=Qm({driver:iw({dbName:sw,storeName:nw})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(i=>[i.key,i.value])}async getItem(i){const r=await this.indexedDb.getItem(i);if(r!==null)return r}async setItem(i,r){await this.indexedDb.setItem(i,Bs(r))}async removeItem(i){await this.indexedDb.removeItem(i)}};var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ha={exports:{}};(function(){let c;function i(){}c=i,c.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},c.prototype.setItem=function(r,n){this[r]=String(n)},c.prototype.removeItem=function(r){delete this[r]},c.prototype.clear=function(){const r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},c.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},c.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof Go<"u"&&Go.localStorage?ha.exports=Go.localStorage:typeof window<"u"&&window.localStorage?ha.exports=window.localStorage:ha.exports=new i})();function ow(c){var i;return[c[0],va((i=c[1])!=null?i:"")]}let cw=class{constructor(){this.localStorage=ha.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(ow)}async getItem(i){const r=this.localStorage.getItem(i);if(r!==null)return va(r)}async setItem(i,r){this.localStorage.setItem(i,Bs(r))}async removeItem(i){this.localStorage.removeItem(i)}};const uw="wc_storage_version",Lh=1,hw=async(c,i,r)=>{const n=uw,a=await i.getItem(n);if(a&&a>=Lh){r(i);return}const l=await c.getKeys();if(!l.length){r(i);return}const d=[];for(;l.length;){const y=l.shift();if(!y)continue;const w=y.toLowerCase();if(w.includes("wc@")||w.includes("walletconnect")||w.includes("wc_")||w.includes("wallet_connect")){const v=await c.getItem(y);await i.setItem(y,v),d.push(y)}}await i.setItem(n,Lh),r(i),lw(c,d)},lw=async(c,i)=>{i.length&&i.forEach(async r=>{await c.removeItem(r)})};let fw=class{constructor(){this.initialized=!1,this.setInitialized=r=>{this.storage=r,this.initialized=!0};const i=new cw;this.storage=i;try{const r=new aw;hw(i,r,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(i){return await this.initialize(),this.storage.getItem(i)}async setItem(i,r){return await this.initialize(),this.storage.setItem(i,r)}async removeItem(i){return await this.initialize(),this.storage.removeItem(i)}async initialize(){this.initialized||await new Promise(i=>{const r=setInterval(()=>{this.initialized&&(clearInterval(r),i())},20)})}};var ps={},$s={},Wo={},Ds={};class Hi{}const pw=Object.freeze(Object.defineProperty({__proto__:null,IEvents:Hi},Symbol.toStringTag,{value:"Module"})),dw=K0(pw);var qh;function gw(){if(qh)return Ds;qh=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.IHeartBeat=void 0;const c=dw;class i extends c.IEvents{constructor(n){super()}}return Ds.IHeartBeat=i,Ds}var zh;function zl(){return zh||(zh=1,function(c){Object.defineProperty(c,"__esModule",{value:!0}),Fs.__exportStar(gw(),c)}(Wo)),Wo}var Jo={},Mi={},Mh;function vw(){if(Mh)return Mi;Mh=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.HEARTBEAT_EVENTS=Mi.HEARTBEAT_INTERVAL=void 0;const c=ie;return Mi.HEARTBEAT_INTERVAL=c.FIVE_SECONDS,Mi.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"},Mi}var jh;function Ml(){return jh||(jh=1,function(c){Object.defineProperty(c,"__esModule",{value:!0}),Fs.__exportStar(vw(),c)}(Jo)),Jo}var Uh;function yw(){if(Uh)return $s;Uh=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.HeartBeat=void 0;const c=Fs,i=Kr,r=ie,n=zl(),a=Ml();class l extends n.IHeartBeat{constructor(y){super(y),this.events=new i.EventEmitter,this.interval=a.HEARTBEAT_INTERVAL,this.interval=(y==null?void 0:y.interval)||a.HEARTBEAT_INTERVAL}static init(y){return c.__awaiter(this,void 0,void 0,function*(){const w=new l(y);return yield w.init(),w})}init(){return c.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(y,w){this.events.on(y,w)}once(y,w){this.events.once(y,w)}off(y,w){this.events.off(y,w)}removeListener(y,w){this.events.removeListener(y,w)}initialize(){return c.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),r.toMiliseconds(this.interval))})}pulse(){this.events.emit(a.HEARTBEAT_EVENTS.pulse)}}return $s.HeartBeat=l,$s}(function(c){Object.defineProperty(c,"__esModule",{value:!0});const i=Fs;i.__exportStar(yw(),c),i.__exportStar(zl(),c),i.__exportStar(Ml(),c)})(ps);var Oe={},Qo,Hh;function mw(){if(Hh)return Qo;Hh=1;function c(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}Qo=i;function i(r,n,a){var l=a&&a.stringify||c,d=1;if(typeof r=="object"&&r!==null){var y=n.length+d;if(y===1)return r;var w=new Array(y);w[0]=l(r);for(var v=1;v-1?j:0,r.charCodeAt(V+1)){case 100:case 102:if(T>=E||n[T]==null)break;j=E||n[T]==null)break;j=E||n[T]===void 0)break;j",j=V+2,V++;break}C+=l(n[T]),j=V+2,V++;break;case 115:if(T>=E)break;j-1&&(Ee=!1);const Re=["error","fatal","warn","info","debug","trace"];typeof W=="function"&&(W.error=W.fatal=W.warn=W.info=W.debug=W.trace=W),$.enabled===!1&&($.level="silent");const et=$.level||"info",R=Object.create(W);R.log||(R.log=re),Object.defineProperty(R,"levelVal",{get:je}),Object.defineProperty(R,"level",{get:Te,set:J});const M={transmit:k,serialize:te,asObject:$.browser.asObject,levels:Re,timestamp:j($)};R.levels=a.levels,R.level=et,R.setMaxListeners=R.getMaxListeners=R.emit=R.addListener=R.on=R.prependListener=R.once=R.prependOnceListener=R.removeListener=R.removeAllListeners=R.listeners=R.listenerCount=R.eventNames=R.write=R.flush=re,R.serializers=ve,R._serialize=te,R._stdErrSerialize=Ee,R.child=F,k&&(R._logEvent=C());function je(){return this.level==="silent"?1/0:this.levels.values[this.level]}function Te(){return this._level}function J(K){if(K!=="silent"&&!this.levels.values[K])throw Error("unknown level "+K);this._level=K,l(M,R,"error","log"),l(M,R,"fatal","error"),l(M,R,"warn","error"),l(M,R,"info","log"),l(M,R,"debug","log"),l(M,R,"trace","log")}function F(K,B){if(!K)throw new Error("missing bindings for child Pino");B=B||{},te&&K.serializers&&(B.serializers=K.serializers);const ut=B.serializers;if(te&&ut){var ke=Object.assign({},ve,ut),Lr=$.browser.serialize===!0?Object.keys(ke):te;delete K.serializers,w([K],Lr,ke,this._stdErrSerialize)}function _e(It){this._childLevel=(It._childLevel|0)+1,this.error=v(It,K,"error"),this.fatal=v(It,K,"fatal"),this.warn=v(It,K,"warn"),this.info=v(It,K,"info"),this.debug=v(It,K,"debug"),this.trace=v(It,K,"trace"),ke&&(this.serializers=ke,this._serialize=Lr),k&&(this._logEvent=C([].concat(It._logEvent.bindings,K)))}return _e.prototype=this,new _e(this)}return R}a.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},a.stdSerializers=r,a.stdTimeFunctions=Object.assign({},{nullTime:ce,epochTime:ue,unixTime:he,isoTime:fe});function l($,k,W,ve){const te=Object.getPrototypeOf(k);k[W]=k.levelVal>k.levels.values[W]?re:te[W]?te[W]:i[W]||i[ve]||re,d($,k,W)}function d($,k,W){!$.transmit&&k[W]===re||(k[W]=function(ve){return function(){const Ee=$.timestamp(),Re=new Array(arguments.length),et=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var R=0;R-1&&Ee in W&&($[te][Ee]=W[Ee]($[te][Ee]))}function v($,k,W){return function(){const ve=new Array(1+arguments.length);ve[0]=k;for(var te=1;te"u"?v=r(y,w):v=y.bindings().context||"",v}er.getLoggerContext=a;function l(y,w,v=c.PINO_CUSTOM_CONTEXT_KEY){const E=a(y,v);return E.trim()?`${E}/${w}`:w}er.formatChildLoggerContext=l;function d(y,w,v=c.PINO_CUSTOM_CONTEXT_KEY){const E=l(y,w,v),C=y.child({context:E});return n(C,E,v)}return er.generateChildLogger=d,er}(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.pino=void 0;const i=Fs,r=i.__importDefault(ww());Object.defineProperty(c,"pino",{enumerable:!0,get:function(){return r.default}}),i.__exportStar(jl(),c),i.__exportStar(_w(),c)})(Oe);class bw extends Hi{constructor(i){super(),this.opts=i,this.protocol="wc",this.version=2}}class Ew extends Hi{constructor(i,r){super(),this.core=i,this.logger=r,this.records=new Map}}class Iw{constructor(i,r){this.logger=i,this.core=r}}let xw=class extends Hi{constructor(i,r){super(),this.relayer=i,this.logger=r}},Pw=class extends Hi{constructor(i){super()}},Sw=class{constructor(i,r,n,a){this.core=i,this.logger=r,this.name=n}};class Cw extends Hi{constructor(i,r){super(),this.relayer=i,this.logger=r}}let Ow=class extends Hi{constructor(i,r){super(),this.core=i,this.logger=r}},Rw=class{constructor(i,r){this.projectId=i,this.logger=r}},Tw=class{constructor(i){this.opts=i,this.protocol="wc",this.version=2}},Aw=class{constructor(i){this.client=i}};var bc={},Ul={};(function(c){Object.defineProperty(c,"__esModule",{value:!0});var i=V0,r=Cl;c.DIGEST_LENGTH=64,c.BLOCK_SIZE=128;var n=function(){function y(){this.digestLength=c.DIGEST_LENGTH,this.blockSize=c.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return y.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},y.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},y.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._tempHi),r.wipe(this._tempLo),this.reset()},y.prototype.update=function(w,v){if(v===void 0&&(v=w.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var E=0;if(this._bytesHashed+=v,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=w[E++],v--;this._bufferLength===this.blockSize&&(l(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(v>=this.blockSize&&(E=l(this._tempHi,this._tempLo,this._stateHi,this._stateLo,w,E,v),v%=this.blockSize);v>0;)this._buffer[this._bufferLength++]=w[E++],v--;return this},y.prototype.finish=function(w){if(!this._finished){var v=this._bytesHashed,E=this._bufferLength,C=v/536870912|0,T=v<<3,j=v%128<112?128:256;this._buffer[E]=128;for(var D=E+1;D0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},y.prototype.restoreState=function(w){return this._stateHi.set(w.stateHi),this._stateLo.set(w.stateLo),this._bufferLength=w.bufferLength,w.buffer&&this._buffer.set(w.buffer),this._bytesHashed=w.bytesHashed,this._finished=!1,this},y.prototype.cleanSavedState=function(w){r.wipe(w.stateHi),r.wipe(w.stateLo),w.buffer&&r.wipe(w.buffer),w.bufferLength=0,w.bytesHashed=0},y}();c.SHA512=n;var a=new Int32Array([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]);function l(y,w,v,E,C,T,j){for(var D=v[0],V=v[1],re=v[2],ce=v[3],ue=v[4],he=v[5],fe=v[6],pe=v[7],$=E[0],k=E[1],W=E[2],ve=E[3],te=E[4],Ee=E[5],Re=E[6],et=E[7],R,M,je,Te,J,F,K,B;j>=128;){for(var ut=0;ut<16;ut++){var ke=8*ut+T;y[ut]=i.readUint32BE(C,ke),w[ut]=i.readUint32BE(C,ke+4)}for(var ut=0;ut<80;ut++){var Lr=D,_e=V,It=re,N=ce,A=ue,S=he,u=fe,b=pe,Z=$,oe=k,me=W,Ae=ve,$e=te,xe=Ee,xt=Re,mt=et;if(R=pe,M=et,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=(ue>>>14|te<<18)^(ue>>>18|te<<14)^(te>>>9|ue<<23),M=(te>>>14|ue<<18)^(te>>>18|ue<<14)^(ue>>>9|te<<23),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=ue&he^~ue&fe,M=te&Ee^~te&Re,J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=a[ut*2],M=a[ut*2+1],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=y[ut%16],M=w[ut%16],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,je=K&65535|B<<16,Te=J&65535|F<<16,R=je,M=Te,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=(D>>>28|$<<4)^($>>>2|D<<30)^($>>>7|D<<25),M=($>>>28|D<<4)^(D>>>2|$<<30)^(D>>>7|$<<25),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,R=D&V^D&re^V&re,M=$&k^$&W^k&W,J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,b=K&65535|B<<16,mt=J&65535|F<<16,R=N,M=Ae,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=je,M=Te,J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,N=K&65535|B<<16,Ae=J&65535|F<<16,V=Lr,re=_e,ce=It,ue=N,he=A,fe=S,pe=u,D=b,k=Z,W=oe,ve=me,te=Ae,Ee=$e,Re=xe,et=xt,$=mt,ut%16===15)for(var ke=0;ke<16;ke++)R=y[ke],M=w[ke],J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=y[(ke+9)%16],M=w[(ke+9)%16],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,je=y[(ke+1)%16],Te=w[(ke+1)%16],R=(je>>>1|Te<<31)^(je>>>8|Te<<24)^je>>>7,M=(Te>>>1|je<<31)^(Te>>>8|je<<24)^(Te>>>7|je<<25),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,je=y[(ke+14)%16],Te=w[(ke+14)%16],R=(je>>>19|Te<<13)^(Te>>>29|je<<3)^je>>>6,M=(Te>>>19|je<<13)^(je>>>29|Te<<3)^(Te>>>6|je<<26),J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,y[ke]=K&65535|B<<16,w[ke]=J&65535|F<<16}R=D,M=$,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[0],M=E[0],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[0]=D=K&65535|B<<16,E[0]=$=J&65535|F<<16,R=V,M=k,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[1],M=E[1],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[1]=V=K&65535|B<<16,E[1]=k=J&65535|F<<16,R=re,M=W,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[2],M=E[2],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[2]=re=K&65535|B<<16,E[2]=W=J&65535|F<<16,R=ce,M=ve,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[3],M=E[3],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[3]=ce=K&65535|B<<16,E[3]=ve=J&65535|F<<16,R=ue,M=te,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[4],M=E[4],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[4]=ue=K&65535|B<<16,E[4]=te=J&65535|F<<16,R=he,M=Ee,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[5],M=E[5],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[5]=he=K&65535|B<<16,E[5]=Ee=J&65535|F<<16,R=fe,M=Re,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[6],M=E[6],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[6]=fe=K&65535|B<<16,E[6]=Re=J&65535|F<<16,R=pe,M=et,J=M&65535,F=M>>>16,K=R&65535,B=R>>>16,R=v[7],M=E[7],J+=M&65535,F+=M>>>16,K+=R&65535,B+=R>>>16,F+=J>>>16,K+=F>>>16,B+=K>>>16,v[7]=pe=K&65535|B<<16,E[7]=et=J&65535|F<<16,T+=128,j-=128}return T}function d(y){var w=new n;w.update(y);var v=w.digest();return w.clean(),v}c.hash=d})(Ul);(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.convertSecretKeyToX25519=c.convertPublicKeyToX25519=c.verify=c.sign=c.extractPublicKeyFromSecretKey=c.generateKeyPair=c.generateKeyPairFromSeed=c.SEED_LENGTH=c.SECRET_KEY_LENGTH=c.PUBLIC_KEY_LENGTH=c.SIGNATURE_LENGTH=void 0;const i=Ol,r=Ul,n=Cl;c.SIGNATURE_LENGTH=64,c.PUBLIC_KEY_LENGTH=32,c.SECRET_KEY_LENGTH=64,c.SEED_LENGTH=32;function a(N){const A=new Float64Array(16);if(N)for(let S=0;S>16&1),S[oe-1]&=65535;S[15]=u[15]-32767-(S[14]>>16&1);const Z=S[15]>>16&1;S[14]&=65535,V(u,S,1-Z)}for(let b=0;b<16;b++)N[2*b]=u[b]&255,N[2*b+1]=u[b]>>8}function ce(N,A){let S=0;for(let u=0;u<32;u++)S|=N[u]^A[u];return(1&S-1>>>8)-1}function ue(N,A){const S=new Uint8Array(32),u=new Uint8Array(32);return re(S,N),re(u,A),ce(S,u)}function he(N){const A=new Uint8Array(32);return re(A,N),A[0]&1}function fe(N,A){for(let S=0;S<16;S++)N[S]=A[2*S]+(A[2*S+1]<<8);N[15]&=32767}function pe(N,A,S){for(let u=0;u<16;u++)N[u]=A[u]+S[u]}function $(N,A,S){for(let u=0;u<16;u++)N[u]=A[u]-S[u]}function k(N,A,S){let u,b,Z=0,oe=0,me=0,Ae=0,$e=0,xe=0,xt=0,mt=0,nt=0,Le=0,Je=0,Qe=0,at=0,Ue=0,Ye=0,Ne=0,Ke=0,ht=0,ze=0,Pt=0,Dt=0,Ht=0,kt=0,zt=0,Wt=0,rr=0,qr=0,Jt=0,Vr=0,oi=0,xi=0,lt=S[0],tt=S[1],ft=S[2],pt=S[3],ot=S[4],rt=S[5],St=S[6],Ct=S[7],dt=S[8],Ot=S[9],gt=S[10],wt=S[11],vt=S[12],We=S[13],Rt=S[14],Tt=S[15];u=A[0],Z+=u*lt,oe+=u*tt,me+=u*ft,Ae+=u*pt,$e+=u*ot,xe+=u*rt,xt+=u*St,mt+=u*Ct,nt+=u*dt,Le+=u*Ot,Je+=u*gt,Qe+=u*wt,at+=u*vt,Ue+=u*We,Ye+=u*Rt,Ne+=u*Tt,u=A[1],oe+=u*lt,me+=u*tt,Ae+=u*ft,$e+=u*pt,xe+=u*ot,xt+=u*rt,mt+=u*St,nt+=u*Ct,Le+=u*dt,Je+=u*Ot,Qe+=u*gt,at+=u*wt,Ue+=u*vt,Ye+=u*We,Ne+=u*Rt,Ke+=u*Tt,u=A[2],me+=u*lt,Ae+=u*tt,$e+=u*ft,xe+=u*pt,xt+=u*ot,mt+=u*rt,nt+=u*St,Le+=u*Ct,Je+=u*dt,Qe+=u*Ot,at+=u*gt,Ue+=u*wt,Ye+=u*vt,Ne+=u*We,Ke+=u*Rt,ht+=u*Tt,u=A[3],Ae+=u*lt,$e+=u*tt,xe+=u*ft,xt+=u*pt,mt+=u*ot,nt+=u*rt,Le+=u*St,Je+=u*Ct,Qe+=u*dt,at+=u*Ot,Ue+=u*gt,Ye+=u*wt,Ne+=u*vt,Ke+=u*We,ht+=u*Rt,ze+=u*Tt,u=A[4],$e+=u*lt,xe+=u*tt,xt+=u*ft,mt+=u*pt,nt+=u*ot,Le+=u*rt,Je+=u*St,Qe+=u*Ct,at+=u*dt,Ue+=u*Ot,Ye+=u*gt,Ne+=u*wt,Ke+=u*vt,ht+=u*We,ze+=u*Rt,Pt+=u*Tt,u=A[5],xe+=u*lt,xt+=u*tt,mt+=u*ft,nt+=u*pt,Le+=u*ot,Je+=u*rt,Qe+=u*St,at+=u*Ct,Ue+=u*dt,Ye+=u*Ot,Ne+=u*gt,Ke+=u*wt,ht+=u*vt,ze+=u*We,Pt+=u*Rt,Dt+=u*Tt,u=A[6],xt+=u*lt,mt+=u*tt,nt+=u*ft,Le+=u*pt,Je+=u*ot,Qe+=u*rt,at+=u*St,Ue+=u*Ct,Ye+=u*dt,Ne+=u*Ot,Ke+=u*gt,ht+=u*wt,ze+=u*vt,Pt+=u*We,Dt+=u*Rt,Ht+=u*Tt,u=A[7],mt+=u*lt,nt+=u*tt,Le+=u*ft,Je+=u*pt,Qe+=u*ot,at+=u*rt,Ue+=u*St,Ye+=u*Ct,Ne+=u*dt,Ke+=u*Ot,ht+=u*gt,ze+=u*wt,Pt+=u*vt,Dt+=u*We,Ht+=u*Rt,kt+=u*Tt,u=A[8],nt+=u*lt,Le+=u*tt,Je+=u*ft,Qe+=u*pt,at+=u*ot,Ue+=u*rt,Ye+=u*St,Ne+=u*Ct,Ke+=u*dt,ht+=u*Ot,ze+=u*gt,Pt+=u*wt,Dt+=u*vt,Ht+=u*We,kt+=u*Rt,zt+=u*Tt,u=A[9],Le+=u*lt,Je+=u*tt,Qe+=u*ft,at+=u*pt,Ue+=u*ot,Ye+=u*rt,Ne+=u*St,Ke+=u*Ct,ht+=u*dt,ze+=u*Ot,Pt+=u*gt,Dt+=u*wt,Ht+=u*vt,kt+=u*We,zt+=u*Rt,Wt+=u*Tt,u=A[10],Je+=u*lt,Qe+=u*tt,at+=u*ft,Ue+=u*pt,Ye+=u*ot,Ne+=u*rt,Ke+=u*St,ht+=u*Ct,ze+=u*dt,Pt+=u*Ot,Dt+=u*gt,Ht+=u*wt,kt+=u*vt,zt+=u*We,Wt+=u*Rt,rr+=u*Tt,u=A[11],Qe+=u*lt,at+=u*tt,Ue+=u*ft,Ye+=u*pt,Ne+=u*ot,Ke+=u*rt,ht+=u*St,ze+=u*Ct,Pt+=u*dt,Dt+=u*Ot,Ht+=u*gt,kt+=u*wt,zt+=u*vt,Wt+=u*We,rr+=u*Rt,qr+=u*Tt,u=A[12],at+=u*lt,Ue+=u*tt,Ye+=u*ft,Ne+=u*pt,Ke+=u*ot,ht+=u*rt,ze+=u*St,Pt+=u*Ct,Dt+=u*dt,Ht+=u*Ot,kt+=u*gt,zt+=u*wt,Wt+=u*vt,rr+=u*We,qr+=u*Rt,Jt+=u*Tt,u=A[13],Ue+=u*lt,Ye+=u*tt,Ne+=u*ft,Ke+=u*pt,ht+=u*ot,ze+=u*rt,Pt+=u*St,Dt+=u*Ct,Ht+=u*dt,kt+=u*Ot,zt+=u*gt,Wt+=u*wt,rr+=u*vt,qr+=u*We,Jt+=u*Rt,Vr+=u*Tt,u=A[14],Ye+=u*lt,Ne+=u*tt,Ke+=u*ft,ht+=u*pt,ze+=u*ot,Pt+=u*rt,Dt+=u*St,Ht+=u*Ct,kt+=u*dt,zt+=u*Ot,Wt+=u*gt,rr+=u*wt,qr+=u*vt,Jt+=u*We,Vr+=u*Rt,oi+=u*Tt,u=A[15],Ne+=u*lt,Ke+=u*tt,ht+=u*ft,ze+=u*pt,Pt+=u*ot,Dt+=u*rt,Ht+=u*St,kt+=u*Ct,zt+=u*dt,Wt+=u*Ot,rr+=u*gt,qr+=u*wt,Jt+=u*vt,Vr+=u*We,oi+=u*Rt,xi+=u*Tt,Z+=38*Ke,oe+=38*ht,me+=38*ze,Ae+=38*Pt,$e+=38*Dt,xe+=38*Ht,xt+=38*kt,mt+=38*zt,nt+=38*Wt,Le+=38*rr,Je+=38*qr,Qe+=38*Jt,at+=38*Vr,Ue+=38*oi,Ye+=38*xi,b=1,u=Z+b+65535,b=Math.floor(u/65536),Z=u-b*65536,u=oe+b+65535,b=Math.floor(u/65536),oe=u-b*65536,u=me+b+65535,b=Math.floor(u/65536),me=u-b*65536,u=Ae+b+65535,b=Math.floor(u/65536),Ae=u-b*65536,u=$e+b+65535,b=Math.floor(u/65536),$e=u-b*65536,u=xe+b+65535,b=Math.floor(u/65536),xe=u-b*65536,u=xt+b+65535,b=Math.floor(u/65536),xt=u-b*65536,u=mt+b+65535,b=Math.floor(u/65536),mt=u-b*65536,u=nt+b+65535,b=Math.floor(u/65536),nt=u-b*65536,u=Le+b+65535,b=Math.floor(u/65536),Le=u-b*65536,u=Je+b+65535,b=Math.floor(u/65536),Je=u-b*65536,u=Qe+b+65535,b=Math.floor(u/65536),Qe=u-b*65536,u=at+b+65535,b=Math.floor(u/65536),at=u-b*65536,u=Ue+b+65535,b=Math.floor(u/65536),Ue=u-b*65536,u=Ye+b+65535,b=Math.floor(u/65536),Ye=u-b*65536,u=Ne+b+65535,b=Math.floor(u/65536),Ne=u-b*65536,Z+=b-1+37*(b-1),b=1,u=Z+b+65535,b=Math.floor(u/65536),Z=u-b*65536,u=oe+b+65535,b=Math.floor(u/65536),oe=u-b*65536,u=me+b+65535,b=Math.floor(u/65536),me=u-b*65536,u=Ae+b+65535,b=Math.floor(u/65536),Ae=u-b*65536,u=$e+b+65535,b=Math.floor(u/65536),$e=u-b*65536,u=xe+b+65535,b=Math.floor(u/65536),xe=u-b*65536,u=xt+b+65535,b=Math.floor(u/65536),xt=u-b*65536,u=mt+b+65535,b=Math.floor(u/65536),mt=u-b*65536,u=nt+b+65535,b=Math.floor(u/65536),nt=u-b*65536,u=Le+b+65535,b=Math.floor(u/65536),Le=u-b*65536,u=Je+b+65535,b=Math.floor(u/65536),Je=u-b*65536,u=Qe+b+65535,b=Math.floor(u/65536),Qe=u-b*65536,u=at+b+65535,b=Math.floor(u/65536),at=u-b*65536,u=Ue+b+65535,b=Math.floor(u/65536),Ue=u-b*65536,u=Ye+b+65535,b=Math.floor(u/65536),Ye=u-b*65536,u=Ne+b+65535,b=Math.floor(u/65536),Ne=u-b*65536,Z+=b-1+37*(b-1),N[0]=Z,N[1]=oe,N[2]=me,N[3]=Ae,N[4]=$e,N[5]=xe,N[6]=xt,N[7]=mt,N[8]=nt,N[9]=Le,N[10]=Je,N[11]=Qe,N[12]=at,N[13]=Ue,N[14]=Ye,N[15]=Ne}function W(N,A){k(N,A,A)}function ve(N,A){const S=a();let u;for(u=0;u<16;u++)S[u]=A[u];for(u=253;u>=0;u--)W(S,S),u!==2&&u!==4&&k(S,S,A);for(u=0;u<16;u++)N[u]=S[u]}function te(N,A){const S=a();let u;for(u=0;u<16;u++)S[u]=A[u];for(u=250;u>=0;u--)W(S,S),u!==1&&k(S,S,A);for(u=0;u<16;u++)N[u]=S[u]}function Ee(N,A){const S=a(),u=a(),b=a(),Z=a(),oe=a(),me=a(),Ae=a(),$e=a(),xe=a();$(S,N[1],N[0]),$(xe,A[1],A[0]),k(S,S,xe),pe(u,N[0],N[1]),pe(xe,A[0],A[1]),k(u,u,xe),k(b,N[3],A[3]),k(b,b,v),k(Z,N[2],A[2]),pe(Z,Z,Z),$(oe,u,S),$(me,Z,b),pe(Ae,Z,b),pe($e,u,S),k(N[0],oe,me),k(N[1],$e,Ae),k(N[2],Ae,me),k(N[3],oe,$e)}function Re(N,A,S){for(let u=0;u<4;u++)V(N[u],A[u],S)}function et(N,A){const S=a(),u=a(),b=a();ve(b,A[2]),k(S,A[0],b),k(u,A[1],b),re(N,u),N[31]^=he(S)<<7}function R(N,A,S){j(N[0],d),j(N[1],y),j(N[2],y),j(N[3],d);for(let u=255;u>=0;--u){const b=S[u/8|0]>>(u&7)&1;Re(N,A,b),Ee(A,N),Ee(N,N),Re(N,A,b)}}function M(N,A){const S=[a(),a(),a(),a()];j(S[0],E),j(S[1],C),j(S[2],y),k(S[3],E,C),R(N,S,A)}function je(N){if(N.length!==c.SEED_LENGTH)throw new Error(`ed25519: seed must be ${c.SEED_LENGTH} bytes`);const A=(0,r.hash)(N);A[0]&=248,A[31]&=127,A[31]|=64;const S=new Uint8Array(32),u=[a(),a(),a(),a()];M(u,A),et(S,u);const b=new Uint8Array(64);return b.set(N),b.set(S,32),{publicKey:S,secretKey:b}}c.generateKeyPairFromSeed=je;function Te(N){const A=(0,i.randomBytes)(32,N),S=je(A);return(0,n.wipe)(A),S}c.generateKeyPair=Te;function J(N){if(N.length!==c.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${c.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(N.subarray(32))}c.extractPublicKeyFromSecretKey=J;const F=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function K(N,A){let S,u,b,Z;for(u=63;u>=32;--u){for(S=0,b=u-32,Z=u-12;b>4)*F[b],S=A[b]>>8,A[b]&=255;for(b=0;b<32;b++)A[b]-=S*F[b];for(u=0;u<32;u++)A[u+1]+=A[u]>>8,N[u]=A[u]&255}function B(N){const A=new Float64Array(64);for(let S=0;S<64;S++)A[S]=N[S];for(let S=0;S<64;S++)N[S]=0;K(N,A)}function ut(N,A){const S=new Float64Array(64),u=[a(),a(),a(),a()],b=(0,r.hash)(N.subarray(0,32));b[0]&=248,b[31]&=127,b[31]|=64;const Z=new Uint8Array(64);Z.set(b.subarray(32),32);const oe=new r.SHA512;oe.update(Z.subarray(32)),oe.update(A);const me=oe.digest();oe.clean(),B(me),M(u,me),et(Z,u),oe.reset(),oe.update(Z.subarray(0,32)),oe.update(N.subarray(32)),oe.update(A);const Ae=oe.digest();B(Ae);for(let $e=0;$e<32;$e++)S[$e]=me[$e];for(let $e=0;$e<32;$e++)for(let xe=0;xe<32;xe++)S[$e+xe]+=Ae[$e]*b[xe];return K(Z.subarray(32),S),Z}c.sign=ut;function ke(N,A){const S=a(),u=a(),b=a(),Z=a(),oe=a(),me=a(),Ae=a();return j(N[2],y),fe(N[1],A),W(b,N[1]),k(Z,b,w),$(b,b,N[2]),pe(Z,N[2],Z),W(oe,Z),W(me,oe),k(Ae,me,oe),k(S,Ae,b),k(S,S,Z),te(S,S),k(S,S,b),k(S,S,Z),k(S,S,Z),k(N[0],S,Z),W(u,N[0]),k(u,u,Z),ue(u,b)&&k(N[0],N[0],T),W(u,N[0]),k(u,u,Z),ue(u,b)?-1:(he(N[0])===A[31]>>7&&$(N[0],d,N[0]),k(N[3],N[0],N[1]),0)}function Lr(N,A,S){const u=new Uint8Array(32),b=[a(),a(),a(),a()],Z=[a(),a(),a(),a()];if(S.length!==c.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${c.SIGNATURE_LENGTH} bytes`);if(ke(Z,N))return!1;const oe=new r.SHA512;oe.update(S.subarray(0,32)),oe.update(N),oe.update(A);const me=oe.digest();return B(me),R(b,Z,me),M(Z,S.subarray(32)),Ee(b,Z),et(u,b),!ce(S,u)}c.verify=Lr;function _e(N){let A=[a(),a(),a(),a()];if(ke(A,N))throw new Error("Ed25519: invalid public key");let S=a(),u=a(),b=A[1];pe(S,y,b),$(u,y,b),ve(u,u),k(S,S,u);let Z=new Uint8Array(32);return re(Z,S),Z}c.convertPublicKeyToX25519=_e;function It(N){const A=(0,r.hash)(N.subarray(0,32));A[0]&=248,A[31]&=127,A[31]|=64;const S=new Uint8Array(A.subarray(0,32));return(0,n.wipe)(A),S}c.convertSecretKeyToX25519=It})(bc);const Nw="EdDSA",$w="JWT",Hl=".",kl="base64url",Dw="utf8",Lw="utf8",qw=":",zw="did",Mw="key",Fh="base58btc",jw="z",Uw="K36",Hw=32;function fa(c){return ga(gc(Bs(c),Dw),kl)}function Kl(c){const i=gc(Uw,Fh),r=jw+ga(F0([i,c]),Fh);return[zw,Mw,r].join(qw)}function kw(c){return ga(c,kl)}function Kw(c){return gc([fa(c.header),fa(c.payload)].join(Hl),Lw)}function Vw(c){return[fa(c.header),fa(c.payload),kw(c.signature)].join(Hl)}function Bh(c=Ol.randomBytes(Hw)){return bc.generateKeyPairFromSeed(c)}async function Fw(c,i,r,n,a=ie.fromMiliseconds(Date.now())){const l={alg:Nw,typ:$w},d=Kl(n.publicKey),y=a+r,w={iss:d,sub:c,aud:i,iat:a,exp:y},v=Kw({header:l,payload:w}),E=bc.sign(n.secretKey,v);return Vw({header:l,payload:w,signature:E})}const Bw=()=>typeof WebSocket<"u"?WebSocket:typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require("ws"),Gw=()=>typeof WebSocket<"u"||typeof global<"u"&&typeof global.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",Gh=c=>c.split("?")[0],Wh=10,Ww=Bw();class Jw{constructor(i){if(this.url=i,this.events=new Kr.EventEmitter,this.registering=!1,!Ah(i))throw new Error(`Provided URL is not compatible with WebSocket connection: ${i}`);this.url=i}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async open(i=this.url){await this.register(i)}async close(){return new Promise((i,r)=>{if(typeof this.socket>"u"){r(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),i()},this.socket.close()})}async send(i,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Bs(i))}catch(n){this.onError(i.id,n)}}register(i=this.url){if(!Ah(i))throw new Error(`Provided URL is not compatible with WebSocket connection: ${i}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,a)=>{this.events.once("register_error",l=>{this.resetMaxListeners(),a(l)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return a(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=i,this.registering=!0,new Promise((r,n)=>{const a=Nm.isReactNative()?void 0:{rejectUnauthorized:!$m(i)},l=new Ww(i,[],a);Gw()?l.onerror=d=>{const y=d;n(this.emitError(y.error))}:l.on("error",d=>{n(this.emitError(d))}),l.onopen=()=>{this.onOpen(l),r(l)}})}onOpen(i){i.onmessage=r=>this.onPayload(r),i.onclose=r=>this.onClose(r),this.socket=i,this.registering=!1,this.events.emit("open")}onClose(i){this.socket=void 0,this.registering=!1,this.events.emit("close",i)}onPayload(i){if(typeof i.data>"u")return;const r=typeof i.data=="string"?va(i.data):i.data;this.events.emit("payload",r)}onError(i,r){const n=this.parseError(r),a=n.message||n.toString(),l=yc(i,a);this.events.emit("payload",l)}parseError(i,r=this.url){return Dm(i,Gh(r),"WS")}resetMaxListeners(){this.events.getMaxListeners()>Wh&&this.events.setMaxListeners(Wh)}emitError(i){const r=this.parseError(new Error((i==null?void 0:i.message)||`WebSocket connection failed for host: ${Gh(this.url)}`));return this.events.emit("register_error",r),r}}var pa={exports:{}};pa.exports;(function(c,i){var r=200,n="__lodash_hash_undefined__",a=1,l=2,d=9007199254740991,y="[object Arguments]",w="[object Array]",v="[object AsyncFunction]",E="[object Boolean]",C="[object Date]",T="[object Error]",j="[object Function]",D="[object GeneratorFunction]",V="[object Map]",re="[object Number]",ce="[object Null]",ue="[object Object]",he="[object Promise]",fe="[object Proxy]",pe="[object RegExp]",$="[object Set]",k="[object String]",W="[object Symbol]",ve="[object Undefined]",te="[object WeakMap]",Ee="[object ArrayBuffer]",Re="[object DataView]",et="[object Float32Array]",R="[object Float64Array]",M="[object Int8Array]",je="[object Int16Array]",Te="[object Int32Array]",J="[object Uint8Array]",F="[object Uint8ClampedArray]",K="[object Uint16Array]",B="[object Uint32Array]",ut=/[\\^$.*+?()[\]{}|]/g,ke=/^\[object .+?Constructor\]$/,Lr=/^(?:0|[1-9]\d*)$/,_e={};_e[et]=_e[R]=_e[M]=_e[je]=_e[Te]=_e[J]=_e[F]=_e[K]=_e[B]=!0,_e[y]=_e[w]=_e[Ee]=_e[E]=_e[Re]=_e[C]=_e[T]=_e[j]=_e[V]=_e[re]=_e[ue]=_e[pe]=_e[$]=_e[k]=_e[te]=!1;var It=typeof ea=="object"&&ea&&ea.Object===Object&&ea,N=typeof self=="object"&&self&&self.Object===Object&&self,A=It||N||Function("return this")(),S=i&&!i.nodeType&&i,u=S&&!0&&c&&!c.nodeType&&c,b=u&&u.exports===S,Z=b&&It.process,oe=function(){try{return Z&&Z.binding&&Z.binding("util")}catch{}}(),me=oe&&oe.isTypedArray;function Ae(g,I){for(var U=-1,Q=g==null?0:g.length,Fe=0,de=[];++U-1}function Sa(g,I){var U=this.__data__,Q=Pi(U,g);return Q<0?(++this.size,U.push([g,I])):U[Q][1]=I,this}yr.prototype.clear=Ea,yr.prototype.delete=Ia,yr.prototype.get=xa,yr.prototype.has=Pa,yr.prototype.set=Sa;function Fr(g){var I=-1,U=g==null?0:g.length;for(this.clear();++IAt))return!1;var Be=de.get(g);if(Be&&de.get(I))return Be==I;var _t=-1,ir=!0,Nt=U&l?new Fi:void 0;for(de.set(g,I),de.set(I,g);++_t-1&&g%1==0&&g-1&&g%1==0&&g<=d}function pn(g){var I=typeof g;return g!=null&&(I=="object"||I=="function")}function Oi(g){return g!=null&&typeof g=="object"}var dn=me?mt(me):en;function ja(g){return za(g)?Xs(g):tn(g)}function Ve(){return[]}function He(){return!1}c.exports=Ma})(pa,pa.exports);var Qw=pa.exports;const Yw=B0(Qw);var Xw={};function Zw(c,i){if(c.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,fe=new Uint8Array(he);ce!==ue;){for(var pe=D[ce],$=0,k=he-1;(pe!==0||$>>0,fe[k]=pe%y>>>0,pe=pe/y>>>0;if(pe!==0)throw new Error("Non-zero carry");re=$,ce++}for(var W=he-re;W!==he&&fe[W]===0;)W++;for(var ve=w.repeat(V);W>>0,he=new Uint8Array(ue);D[V];){var fe=r[D.charCodeAt(V)];if(fe===255)return;for(var pe=0,$=ue-1;(fe!==0||pe>>0,he[$]=fe%256>>>0,fe=fe/256>>>0;if(fe!==0)throw new Error("Non-zero carry");ce=pe,V++}if(D[V]!==" "){for(var k=ue-ce;k!==ue&&he[k]===0;)k++;for(var W=new Uint8Array(re+(ue-k)),ve=re;k!==ue;)W[ve++]=he[k++];return W}}}function j(D){var V=T(D);if(V)return V;throw new Error(`Non-${i} character`)}return{encode:C,decodeUnsafe:T,decode:j}}var e_=Zw,t_=e_;const Vl=c=>{if(c instanceof Uint8Array&&c.constructor.name==="Uint8Array")return c;if(c instanceof ArrayBuffer)return new Uint8Array(c);if(ArrayBuffer.isView(c))return new Uint8Array(c.buffer,c.byteOffset,c.byteLength);throw new Error("Unknown type, must be binary type")},r_=c=>new TextEncoder().encode(c),i_=c=>new TextDecoder().decode(c);class s_{constructor(i,r,n){this.name=i,this.prefix=r,this.baseEncode=n}encode(i){if(i instanceof Uint8Array)return`${this.prefix}${this.baseEncode(i)}`;throw Error("Unknown type, must be binary type")}}class n_{constructor(i,r,n){if(this.name=i,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(i){if(typeof i=="string"){if(i.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(i)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(i.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(i){return Fl(this,i)}}class a_{constructor(i){this.decoders=i}or(i){return Fl(this,i)}decode(i){const r=i[0],n=this.decoders[r];if(n)return n.decode(i);throw RangeError(`Unable to decode multibase string ${JSON.stringify(i)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Fl=(c,i)=>new a_({...c.decoders||{[c.prefix]:c},...i.decoders||{[i.prefix]:i}});class o_{constructor(i,r,n,a){this.name=i,this.prefix=r,this.baseEncode=n,this.baseDecode=a,this.encoder=new s_(i,r,n),this.decoder=new n_(i,r,a)}encode(i){return this.encoder.encode(i)}decode(i){return this.decoder.decode(i)}}const ya=({name:c,prefix:i,encode:r,decode:n})=>new o_(c,i,r,n),Ws=({prefix:c,name:i,alphabet:r})=>{const{encode:n,decode:a}=t_(r,i);return ya({prefix:c,name:i,encode:n,decode:l=>Vl(a(l))})},c_=(c,i,r,n)=>{const a={};for(let E=0;E=8&&(y-=8,d[v++]=255&w>>y)}if(y>=r||255&w<<8-y)throw new SyntaxError("Unexpected end of data");return d},u_=(c,i,r)=>{const n=i[i.length-1]==="=",a=(1<r;)d-=r,l+=i[a&y>>d];if(d&&(l+=i[a&y<ya({prefix:i,name:c,encode(a){return u_(a,n,r)},decode(a){return c_(a,n,r,c)}}),h_=ya({prefix:"\0",name:"identity",encode:c=>i_(c),decode:c=>r_(c)});var l_=Object.freeze({__proto__:null,identity:h_});const f_=Vt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var p_=Object.freeze({__proto__:null,base2:f_});const d_=Vt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var g_=Object.freeze({__proto__:null,base8:d_});const v_=Ws({prefix:"9",name:"base10",alphabet:"0123456789"});var y_=Object.freeze({__proto__:null,base10:v_});const m_=Vt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),w_=Vt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var __=Object.freeze({__proto__:null,base16:m_,base16upper:w_});const b_=Vt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),E_=Vt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),I_=Vt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),x_=Vt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),P_=Vt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),S_=Vt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),C_=Vt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),O_=Vt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),R_=Vt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var T_=Object.freeze({__proto__:null,base32:b_,base32upper:E_,base32pad:I_,base32padupper:x_,base32hex:P_,base32hexupper:S_,base32hexpad:C_,base32hexpadupper:O_,base32z:R_});const A_=Ws({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),N_=Ws({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var $_=Object.freeze({__proto__:null,base36:A_,base36upper:N_});const D_=Ws({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),L_=Ws({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var q_=Object.freeze({__proto__:null,base58btc:D_,base58flickr:L_});const z_=Vt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),M_=Vt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),j_=Vt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),U_=Vt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var H_=Object.freeze({__proto__:null,base64:z_,base64pad:M_,base64url:j_,base64urlpad:U_});const Bl=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),k_=Bl.reduce((c,i,r)=>(c[r]=i,c),[]),K_=Bl.reduce((c,i,r)=>(c[i.codePointAt(0)]=r,c),[]);function V_(c){return c.reduce((i,r)=>(i+=k_[r],i),"")}function F_(c){const i=[];for(const r of c){const n=K_[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);i.push(n)}return new Uint8Array(i)}const B_=ya({prefix:"🚀",name:"base256emoji",encode:V_,decode:F_});var G_=Object.freeze({__proto__:null,base256emoji:B_}),W_=Gl,Jh=128,J_=127,Q_=~J_,Y_=Math.pow(2,31);function Gl(c,i,r){i=i||[],r=r||0;for(var n=r;c>=Y_;)i[r++]=c&255|Jh,c/=128;for(;c&Q_;)i[r++]=c&255|Jh,c>>>=7;return i[r]=c|0,Gl.bytes=r-n+1,i}var X_=hc,Z_=128,Qh=127;function hc(c,n){var r=0,n=n||0,a=0,l=n,d,y=c.length;do{if(l>=y)throw hc.bytes=0,new RangeError("Could not decode varint");d=c[l++],r+=a<28?(d&Qh)<=Z_);return hc.bytes=l-n,r}var e1=Math.pow(2,7),t1=Math.pow(2,14),r1=Math.pow(2,21),i1=Math.pow(2,28),s1=Math.pow(2,35),n1=Math.pow(2,42),a1=Math.pow(2,49),o1=Math.pow(2,56),c1=Math.pow(2,63),u1=function(c){return c(Wl.encode(c,i,r),i),Xh=c=>Wl.encodingLength(c),lc=(c,i)=>{const r=i.byteLength,n=Xh(c),a=n+Xh(r),l=new Uint8Array(a+r);return Yh(c,l,0),Yh(r,l,n),l.set(i,a),new l1(c,r,i,l)};class l1{constructor(i,r,n,a){this.code=i,this.size=r,this.digest=n,this.bytes=a}}const Jl=({name:c,code:i,encode:r})=>new f1(c,i,r);class f1{constructor(i,r,n){this.name=i,this.code=r,this.encode=n}digest(i){if(i instanceof Uint8Array){const r=this.encode(i);return r instanceof Uint8Array?lc(this.code,r):r.then(n=>lc(this.code,n))}else throw Error("Unknown type, must be binary type")}}const Ql=c=>async i=>new Uint8Array(await crypto.subtle.digest(c,i)),p1=Jl({name:"sha2-256",code:18,encode:Ql("SHA-256")}),d1=Jl({name:"sha2-512",code:19,encode:Ql("SHA-512")});var g1=Object.freeze({__proto__:null,sha256:p1,sha512:d1});const Yl=0,v1="identity",Xl=Vl,y1=c=>lc(Yl,Xl(c)),m1={code:Yl,name:v1,encode:Xl,digest:y1};var w1=Object.freeze({__proto__:null,identity:m1});new TextEncoder,new TextDecoder;const Zh={...l_,...p_,...g_,...y_,...__,...T_,...$_,...q_,...H_,...G_};({...g1,...w1});function Zl(c){return globalThis.Buffer!=null?new Uint8Array(c.buffer,c.byteOffset,c.byteLength):c}function _1(c=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Zl(globalThis.Buffer.allocUnsafe(c)):new Uint8Array(c)}function ef(c,i,r,n){return{name:c,prefix:i,encoder:{name:c,prefix:i,encode:r},decoder:{decode:n}}}const el=ef("utf8","u",c=>"u"+new TextDecoder("utf8").decode(c),c=>new TextEncoder().encode(c.substring(1))),Xo=ef("ascii","a",c=>{let i="a";for(let r=0;r{c=c.substring(1);const i=_1(c.length);for(let r=0;r{if(!this.initialized){const n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,a)=>{this.isInitialized(),this.keychain.set(n,a),await this.persist()},this.get=n=>{this.isInitialized();const a=this.keychain.get(n);if(typeof a>"u"){const{message:l}=X("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(l)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=i,this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(i){await this.core.storage.setItem(this.storageKey,Nl(i))}async getKeyChain(){const i=await this.core.storage.getItem(this.storageKey);return typeof i<"u"?$l(i):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class X1{constructor(i,r,n){this.core=i,this.logger=r,this.name=S1,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=a=>(this.isInitialized(),this.keychain.has(a)),this.getClientId=async()=>{this.isInitialized();const a=await this.getClientSeed(),l=Bh(a);return Kl(l.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const a=J0();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();const l=await this.getClientSeed(),d=Bh(l),y=oc();return await Fw(y,a,C1,d)},this.generateSharedKey=(a,l,d)=>{this.isInitialized();const y=this.getPrivateKey(a),w=Q0(y,l);return this.setSymKey(w,d)},this.setSymKey=async(a,l)=>{this.isInitialized();const d=l||Y0(a);return await this.keychain.set(d,a),d},this.deleteKeyPair=async a=>{this.isInitialized(),await this.keychain.del(a)},this.deleteSymKey=async a=>{this.isInitialized(),await this.keychain.del(a)},this.encode=async(a,l,d)=>{this.isInitialized();const y=X0(d),w=Bs(l);if(Sh(y)){const T=y.senderPublicKey,j=y.receiverPublicKey;a=await this.generateSharedKey(T,j)}const v=this.getSymKey(a),{type:E,senderPublicKey:C}=y;return Z0({type:E,symKey:v,message:w,senderPublicKey:C})},this.decode=async(a,l,d)=>{this.isInitialized();const y=em(l,d);if(Sh(y)){const w=y.receiverPublicKey,v=y.senderPublicKey;a=await this.generateSharedKey(w,v)}try{const w=this.getSymKey(a),v=tm({symKey:w,encoded:l});return va(v)}catch(w){this.logger.error(`Failed to decode message from topic: '${a}', clientId: '${await this.getClientId()}'`),this.logger.error(w)}},this.getPayloadType=a=>{const l=Ch(a);return rm(l.type)},this.getPayloadSenderPublicKey=a=>{const l=Ch(a);return l.senderPublicKey?ga(l.senderPublicKey,im):void 0},this.core=i,this.logger=Oe.generateChildLogger(r,this.name),this.keychain=n||new Y1(this.core,this.logger)}get context(){return Oe.getLoggerContext(this.logger)}async setPrivateKey(i,r){return await this.keychain.set(i,r),i}getPrivateKey(i){return this.keychain.get(i)}async getClientSeed(){let i="";try{i=this.keychain.get(tl)}catch{i=oc(),await this.keychain.set(tl,i)}return E1(i,"base16")}getSymKey(i){return this.keychain.get(i)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class Z1 extends Iw{constructor(i,r){super(i,r),this.logger=i,this.core=r,this.messages=new Map,this.name=T1,this.version=A1,this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,a)=>{this.isInitialized();const l=ls(a);let d=this.messages.get(n);return typeof d>"u"&&(d={}),typeof d[l]<"u"||(d[l]=a,this.messages.set(n,d),await this.persist()),l},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();const l=this.get(n),d=ls(a);return typeof l[d]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=Oe.generateChildLogger(i,this.name),this.core=r}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(i){await this.core.storage.setItem(this.storageKey,Nl(i))}async getRelayerMessages(){const i=await this.core.storage.getItem(this.storageKey);return typeof i<"u"?$l(i):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class eb extends xw{constructor(i,r){super(i,r),this.relayer=i,this.logger=r,this.events=new Kr.EventEmitter,this.name=$1,this.queue=new Map,this.publishTimeout=ie.toMiliseconds(ie.TEN_SECONDS),this.needsTransportRestart=!1,this.publish=async(n,a,l)=>{var d;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:l}});try{const y=(l==null?void 0:l.ttl)||N1,w=cc(l),v=(l==null?void 0:l.prompt)||!1,E=(l==null?void 0:l.tag)||0,C=(l==null?void 0:l.id)||Lm().toString(),T={topic:n,message:a,opts:{ttl:y,relay:w,prompt:v,tag:E,id:C}},j=setTimeout(()=>this.queue.set(C,T),this.publishTimeout);try{await await Vs(this.rpcPublish(n,a,y,w,v,E,C),this.publishTimeout,"Failed to publish payload, please try again."),this.removeRequestFromQueue(C),this.relayer.events.emit(Gt.publish,T)}catch(D){if(this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0,(d=l==null?void 0:l.internal)!=null&&d.throwOnFailedPublish)throw this.removeRequestFromQueue(C),D;return}finally{clearTimeout(j)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:l}})}catch(y){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(y),y}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.relayer=i,this.logger=Oe.generateChildLogger(r,this.name),this.registerEventListeners()}get context(){return Oe.getLoggerContext(this.logger)}rpcPublish(i,r,n,a,l,d,y){var w,v,E,C;const T={method:oa(a.protocol).publish,params:{topic:i,message:r,ttl:n,prompt:l,tag:d},id:y};return _i((w=T.params)==null?void 0:w.prompt)&&((v=T.params)==null||delete v.prompt),_i((E=T.params)==null?void 0:E.tag)&&((C=T.params)==null||delete C.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:T}),this.relayer.request(T)}removeRequestFromQueue(i){this.queue.delete(i)}checkQueue(){this.queue.forEach(async i=>{const{topic:r,message:n,opts:a}=i;await this.publish(r,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(Gt.connection_stalled);return}this.checkQueue()}),this.relayer.on(Gt.message_ack,i=>{this.removeRequestFromQueue(i.id.toString())})}}class tb{constructor(){this.map=new Map,this.set=(i,r)=>{const n=this.get(i);this.exists(i,r)||this.map.set(i,[...n,r])},this.get=i=>this.map.get(i)||[],this.exists=(i,r)=>this.get(i).includes(r),this.delete=(i,r)=>{if(typeof r>"u"){this.map.delete(i);return}if(!this.map.has(i))return;const n=this.get(i);if(!this.exists(i,r))return;const a=n.filter(l=>l!==r);if(!a.length){this.map.delete(i);return}this.map.set(i,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var rb=Object.defineProperty,ib=Object.defineProperties,sb=Object.getOwnPropertyDescriptors,sl=Object.getOwnPropertySymbols,nb=Object.prototype.hasOwnProperty,ab=Object.prototype.propertyIsEnumerable,nl=(c,i,r)=>i in c?rb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,qs=(c,i)=>{for(var r in i||(i={}))nb.call(i,r)&&nl(c,r,i[r]);if(sl)for(var r of sl(i))ab.call(i,r)&&nl(c,r,i[r]);return c},ec=(c,i)=>ib(c,sb(i));class ob extends Cw{constructor(i,r){super(i,r),this.relayer=i,this.logger=r,this.subscriptions=new Map,this.topicMap=new tb,this.events=new Kr.EventEmitter,this.name=k1,this.version=K1,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=bi,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}});try{const l=cc(a),d={topic:n,relay:l};this.pending.set(n,d);const y=await this.rpcSubscribe(n,l);return this.onSubscribe(y,d),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),y}catch(l){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(l),l}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof(a==null?void 0:a.id)<"u"?await this.unsubscribeById(n,a.id,a):await this.unsubscribeByTopic(n,a)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((a,l)=>{const d=new ie.Watch;d.start(this.pendingSubscriptionWatchLabel);const y=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(y),d.stop(this.pendingSubscriptionWatchLabel),a(!0)),d.elapsed(this.pendingSubscriptionWatchLabel)>=V1&&(clearInterval(y),d.stop(this.pendingSubscriptionWatchLabel),l(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=i,this.logger=Oe.generateChildLogger(r,this.name),this.clientId=""}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(i,r){let n=!1;try{n=this.getSubscription(i).topic===r}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(i,r){const n=this.topicMap.get(i);await Promise.all(n.map(async a=>await this.unsubscribeById(i,a,r)))}async unsubscribeById(i,r,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:i,id:r,opts:n}});try{const a=cc(n);await this.rpcUnsubscribe(i,r,a);const l=tr("USER_DISCONNECTED",`${this.name}, ${i}`);await this.onUnsubscribe(i,r,l),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:i,id:r,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(i,r){const n={method:oa(r.protocol).subscribe,params:{topic:i}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Vs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(Gt.connection_stalled)}return ls(i+this.clientId)}async rpcBatchSubscribe(i){if(!i.length)return;const r=i[0].relay,n={method:oa(r.protocol).batchSubscribe,params:{topics:i.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Vs(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Gt.connection_stalled)}}rpcUnsubscribe(i,r,n){const a={method:oa(n.protocol).unsubscribe,params:{topic:i,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.request(a)}onSubscribe(i,r){this.setSubscription(i,ec(qs({},r),{id:i})),this.pending.delete(r.topic)}onBatchSubscribe(i){i.length&&i.forEach(r=>{this.setSubscription(r.id,qs({},r)),this.pending.delete(r.topic)})}async onUnsubscribe(i,r,n){this.events.removeAllListeners(r),this.hasSubscription(r,i)&&this.deleteSubscription(r,n),await this.relayer.messages.del(i)}async setRelayerSubscriptions(i){await this.relayer.core.storage.setItem(this.storageKey,i)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(i,r){this.subscriptions.has(i)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:i,subscription:r}),this.addSubscription(i,r))}addSubscription(i,r){this.subscriptions.set(i,qs({},r)),this.topicMap.set(r.topic,i),this.events.emit($r.created,r)}getSubscription(i){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:i});const r=this.subscriptions.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw new Error(n)}return r}deleteSubscription(i,r){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:i,reason:r});const n=this.getSubscription(i);this.subscriptions.delete(i),this.topicMap.delete(n.topic,i),this.events.emit($r.deleted,ec(qs({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit($r.sync)}async reset(){if(this.cached.length){const i=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let r=0;r"u"||!i.length)return;if(this.subscriptions.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(i){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(i)}}async batchSubscribe(i){if(!i.length)return;const r=await this.rpcBatchSubscribe(i);fs(r)&&this.onBatchSubscribe(r.map((n,a)=>ec(qs({},i[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||this.relayer.transportExplicitlyClosed)return;const i=[];this.pending.forEach(r=>{i.push(r)}),await this.batchSubscribe(i)}registerEventListeners(){this.relayer.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(Gt.connect,async()=>{await this.onConnect()}),this.relayer.on(Gt.disconnect,()=>{this.onDisconnect()}),this.events.on($r.created,async i=>{const r=$r.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),await this.persist()}),this.events.on($r.deleted,async i=>{const r=$r.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}async restartToComplete(){this.restartInProgress&&await new Promise(i=>{const r=setInterval(()=>{this.restartInProgress||(clearInterval(r),i())},this.pollingInterval)})}}var cb=Object.defineProperty,al=Object.getOwnPropertySymbols,ub=Object.prototype.hasOwnProperty,hb=Object.prototype.propertyIsEnumerable,ol=(c,i,r)=>i in c?cb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,lb=(c,i)=>{for(var r in i||(i={}))ub.call(i,r)&&ol(c,r,i[r]);if(al)for(var r of al(i))hb.call(i,r)&&ol(c,r,i[r]);return c};class fb extends Pw{constructor(i){super(i),this.protocol="wc",this.version=2,this.events=new Kr.EventEmitter,this.name=L1,this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.hasExperiencedNetworkDisruption=!1,this.request=async r=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(r)}catch(n){throw this.logger.debug("Failed to Publish Request"),this.logger.error(n),n}},this.onPayloadHandler=r=>{this.onProviderPayload(r)},this.onConnectHandler=()=>{this.events.emit(Gt.connect)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=r=>{this.logger.error(r),this.events.emit(Gt.error,r),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(ri.payload,this.onPayloadHandler),this.provider.on(ri.connect,this.onConnectHandler),this.provider.on(ri.disconnect,this.onDisconnectHandler),this.provider.on(ri.error,this.onProviderErrorHandler)},this.core=i.core,this.logger=typeof i.logger<"u"&&typeof i.logger!="string"?Oe.generateChildLogger(i.logger,this.name):Oe.pino(Oe.getDefaultLoggerOptions({level:i.logger||D1})),this.messages=new Z1(this.logger,i.core),this.subscriber=new ob(this,this.logger),this.publisher=new eb(this,this.logger),this.relayUrl=(i==null?void 0:i.relayUrl)||sf,this.projectId=i.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${rl}...`),await this.restartTransport(rl)}this.initialized=!0,setTimeout(async()=>{this.subscriber.topics.length===0&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},j1)}get context(){return Oe.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(i,r,n){this.isInitialized(),await this.publisher.publish(i,r,n),await this.recordMessageEvent({topic:i,message:r,publishedAt:Date.now()})}async subscribe(i,r){var n;this.isInitialized();let a=((n=this.subscriber.topicMap.get(i))==null?void 0:n[0])||"";if(a)return a;let l;const d=y=>{y.topic===i&&(this.subscriber.off($r.created,d),l())};return await Promise.all([new Promise(y=>{l=y,this.subscriber.on($r.created,d)}),new Promise(async y=>{a=await this.subscriber.subscribe(i,r),y()})]),a}async unsubscribe(i,r){this.isInitialized(),await this.subscriber.unsubscribe(i,r)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async transportClose(){this.transportExplicitlyClosed=!0,this.hasExperiencedNetworkDisruption&&this.connected?await Vs(this.provider.disconnect(),1e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.connected&&await this.provider.disconnect()}async transportOpen(i){if(this.transportExplicitlyClosed=!1,await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress){i&&i!==this.relayUrl&&(this.relayUrl=i,await this.transportClose(),await this.createProvider()),this.connectionAttemptInProgress=!0;try{await Promise.all([new Promise(r=>{if(!this.initialized)return r();this.subscriber.once($r.resubscribed,()=>{r()})}),new Promise(async(r,n)=>{try{await Vs(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`)}catch(a){n(a);return}r()})])}catch(r){this.logger.error(r);const n=r;if(!this.isConnectionStalled(n.message))throw r;this.provider.events.emit(ri.disconnect)}finally{this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1}}}async restartTransport(i){await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress&&(this.relayUrl=i||this.relayUrl,await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await Oh())throw new Error("No internet connection detected. Please restart your network and try again.")}isConnectionStalled(i){return this.staleConnectionErrors.some(r=>i.includes(r))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const i=await this.core.crypto.signJWT(this.relayUrl);this.provider=new ni(new Jw(sm({sdkVersion:M1,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:i,useOnCloseEvent:!0}))),this.registerProviderListeners()}async recordMessageEvent(i){const{topic:r,message:n}=i;await this.messages.set(r,n)}async shouldIgnoreMessageEvent(i){const{topic:r,message:n}=i;if(!n||n.length===0)return this.logger.debug(`Ignoring invalid/empty message: ${n}`),!0;if(!await this.subscriber.isSubscribed(r))return this.logger.debug(`Ignoring message for non-subscribed topic ${r}`),!0;const a=this.messages.has(r,n);return a&&this.logger.debug(`Ignoring duplicate message: ${n}`),a}async onProviderPayload(i){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:i}),mc(i)){if(!i.method.endsWith(q1))return;const r=i.params,{topic:n,message:a,publishedAt:l}=r.data,d={topic:n,message:a,publishedAt:l};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(lb({type:"event",event:r.id},d)),this.events.emit(r.id,d),await this.acknowledgePayload(i),await this.onMessageEvent(d)}else wc(i)&&this.events.emit(Gt.message_ack,i)}async onMessageEvent(i){await this.shouldIgnoreMessageEvent(i)||(this.events.emit(Gt.message,i),await this.recordMessageEvent(i))}async acknowledgePayload(i){const r=_c(i.id,!0);await this.provider.connection.send(r)}unregisterProviderListeners(){this.provider.off(ri.payload,this.onPayloadHandler),this.provider.off(ri.connect,this.onConnectHandler),this.provider.off(ri.disconnect,this.onDisconnectHandler),this.provider.off(ri.error,this.onProviderErrorHandler)}async registerEventListeners(){this.events.on(Gt.connection_stalled,()=>{this.restartTransport().catch(r=>this.logger.error(r))});let i=await Oh();nm(async r=>{this.initialized&&i!==r&&(i=r,r?await this.restartTransport().catch(n=>this.logger.error(n)):(this.hasExperiencedNetworkDisruption=!0,await this.transportClose().catch(n=>this.logger.error(n))))})}onProviderDisconnect(){this.events.emit(Gt.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||(this.logger.info("attemptToReconnect called. Connecting..."),setTimeout(async()=>{await this.restartTransport().catch(i=>this.logger.error(i))},ie.toMiliseconds(z1)))}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectionAttemptInProgress)return await new Promise(i=>{const r=setInterval(()=>{this.connected&&(clearInterval(r),i())},this.connectionStatusPollingInterval)});await this.restartTransport()}}}var pb=Object.defineProperty,cl=Object.getOwnPropertySymbols,db=Object.prototype.hasOwnProperty,gb=Object.prototype.propertyIsEnumerable,ul=(c,i,r)=>i in c?pb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,hl=(c,i)=>{for(var r in i||(i={}))db.call(i,r)&&ul(c,r,i[r]);if(cl)for(var r of cl(i))gb.call(i,r)&&ul(c,r,i[r]);return c};class ma extends Sw{constructor(i,r,n,a=bi,l=void 0){super(i,r,n,a),this.core=i,this.logger=r,this.name=n,this.map=new Map,this.version=U1,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(d=>{this.getKey&&d!==null&&!_i(d)?this.map.set(this.getKey(d),d):G0(d)?this.map.set(d.id,d):W0(d)&&this.map.set(d.topic,d)}),this.cached=[],this.initialized=!0)},this.set=async(d,y)=>{this.isInitialized(),this.map.has(d)?await this.update(d,y):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:d,value:y}),this.map.set(d,y),await this.persist())},this.get=d=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:d}),this.getData(d)),this.getAll=d=>(this.isInitialized(),d?this.values.filter(y=>Object.keys(d).every(w=>Yw(y[w],d[w]))):this.values),this.update=async(d,y)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:d,update:y});const w=hl(hl({},this.getData(d)),y);this.map.set(d,w),await this.persist()},this.delete=async(d,y)=>{this.isInitialized(),this.map.has(d)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:d,reason:y}),this.map.delete(d),await this.persist())},this.logger=Oe.generateChildLogger(r,this.name),this.storagePrefix=a,this.getKey=l}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(i){await this.core.storage.setItem(this.storageKey,i)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(i){const r=this.map.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw this.logger.error(n),new Error(n)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{const i=await this.getDataStore();if(typeof i>"u"||!i.length)return;if(this.map.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(i){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(i)}}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class vb{constructor(i,r){this.core=i,this.logger=r,this.name=F1,this.version=B1,this.events=new vc,this.initialized=!1,this.storagePrefix=bi,this.ignoredPayloadTypes=[Rl],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();const n=oc(),a=await this.core.crypto.setSymKey(n),l=Dr(ie.FIVE_MINUTES),d={protocol:rf},y={topic:a,expiry:l,relay:d,active:!1},w=am({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:d});return await this.pairings.set(a,y),await this.core.relayer.subscribe(a),this.core.expirer.set(a,l),{topic:a,uri:w}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);const{topic:a,symKey:l,relay:d}=om(n.uri);let y;if(this.pairings.keys.includes(a)&&(y=this.pairings.get(a),y.active))throw new Error(`Pairing already exists: ${a}. Please try again with a new connection URI.`);this.core.crypto.keychain.has(a)||(await this.core.crypto.setSymKey(l,a),await this.core.relayer.subscribe(a,{relay:d}));const w=Dr(ie.FIVE_MINUTES),v={topic:a,relay:d,expiry:w,active:!1};return await this.pairings.set(a,v),this.core.expirer.set(a,w),n.activatePairing&&await this.activate({topic:a}),this.events.emit(Hs.create,v),v},this.activate=async({topic:n})=>{this.isInitialized();const a=Dr(ie.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:a}),this.core.expirer.set(n,a)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);const{topic:a}=n;if(this.pairings.keys.includes(a)){const l=await this.sendRequest(a,"wc_pairingPing",{}),{done:d,resolve:y,reject:w}=us();this.events.once($t("pairing_ping",l),({error:v})=>{v?w(v):y()}),await d()}},this.updateExpiry=async({topic:n,expiry:a})=>{this.isInitialized(),await this.pairings.update(n,{expiry:a})},this.updateMetadata=async({topic:n,metadata:a})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:a})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);const{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",tr("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,l)=>{const d=Ks(a,l),y=await this.core.crypto.encode(n,d),w=Ls[a].req;return this.core.history.set(n,d),this.core.relayer.publish(n,y,w),d.id},this.sendResult=async(n,a,l)=>{const d=_c(n,l),y=await this.core.crypto.encode(a,d),w=await this.core.history.get(a,n),v=Ls[w.request.method].res;await this.core.relayer.publish(a,y,v),await this.core.history.resolve(d)},this.sendError=async(n,a,l)=>{const d=yc(n,l),y=await this.core.crypto.encode(a,d),w=await this.core.history.get(a,n),v=Ls[w.request.method]?Ls[w.request.method].res:Ls.unregistered_method.res;await this.core.relayer.publish(a,y,v),await this.core.history.resolve(d)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,tr("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{const n=this.pairings.getAll().filter(a=>wi(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{const{topic:a,payload:l}=n;switch(l.method){case"wc_pairingPing":return this.onPairingPingRequest(a,l);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,l);default:return this.onUnknownRpcMethodRequest(a,l)}},this.onRelayEventResponse=async n=>{const{topic:a,payload:l}=n,d=(await this.core.history.get(a,l.id)).request.method;switch(d){case"wc_pairingPing":return this.onPairingPingResponse(a,l);default:return this.onUnknownRpcMethodResponse(d)}},this.onPairingPingRequest=async(n,a)=>{const{id:l}=a;try{this.isValidPing({topic:n}),await this.sendResult(l,n,!0),this.events.emit(Hs.ping,{id:l,topic:n})}catch(d){await this.sendError(l,n,d),this.logger.error(d)}},this.onPairingPingResponse=(n,a)=>{const{id:l}=a;setTimeout(()=>{mi(a)?this.events.emit($t("pairing_ping",l),{}):si(a)&&this.events.emit($t("pairing_ping",l),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{const{id:l}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit(Hs.delete,{id:l,topic:n})}catch(d){await this.sendError(l,n,d),this.logger.error(d)}},this.onUnknownRpcMethodRequest=async(n,a)=>{const{id:l,method:d}=a;try{if(this.registeredMethods.includes(d))return;const y=tr("WC_METHOD_UNSUPPORTED",d);await this.sendError(l,n,y),this.logger.error(y)}catch(y){await this.sendError(l,n,y),this.logger.error(y)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(tr("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!hr(n)){const{message:a}=X("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(a)}if(!cm(n.uri)){const{message:a}=X("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(a)}},this.isValidPing=async n=>{if(!hr(n)){const{message:l}=X("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(l)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!hr(n)){const{message:l}=X("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(l)}const{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!hs(n,!1)){const{message:a}=X("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){const{message:a}=X("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(wi(this.pairings.get(n).expiry)){await this.deletePairing(n);const{message:a}=X("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=i,this.logger=Oe.generateChildLogger(r,this.name),this.pairings=new ma(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Oe.getLoggerContext(this.logger)}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}registerRelayerEvents(){this.core.relayer.on(Gt.message,async i=>{const{topic:r,message:n}=i;if(!this.pairings.keys.includes(r)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;const a=await this.core.crypto.decode(r,n);try{mc(a)?(this.core.history.set(r,a),this.onRelayEventRequest({topic:r,payload:a})):wc(a)&&(await this.core.history.resolve(a),await this.onRelayEventResponse({topic:r,payload:a}),this.core.history.delete(r,a.id))}catch(l){this.logger.error(l)}})}registerExpirerEvents(){this.core.expirer.on(Sr.expired,async i=>{const{topic:r}=Tl(i.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit(Hs.expire,{topic:r}))})}}class yb extends Ew{constructor(i,r){super(i,r),this.core=i,this.logger=r,this.records=new Map,this.events=new Kr.EventEmitter,this.name=G1,this.version=W1,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,a,l)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:l}),this.records.has(a.id))return;const d={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:l,expiry:Dr(ie.THIRTY_DAYS)};this.records.set(d.id,d),this.events.emit(kr.created,d)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;const a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=si(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(kr.updated,a))},this.get=async(n,a)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:a}),await this.getRecord(a)),this.delete=(n,a)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:a}),this.values.forEach(l=>{if(l.topic===n){if(typeof a<"u"&&l.id!==a)return;this.records.delete(l.id),this.events.emit(kr.deleted,l)}})},this.exists=async(n,a)=>(this.isInitialized(),this.records.has(a)?(await this.getRecord(a)).topic===n:!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const i=[];return this.values.forEach(r=>{if(typeof r.response<"u")return;const n={topic:r.topic,request:Ks(r.request.method,r.request.params,r.id),chainId:r.chainId};return i.push(n)}),i}async setJsonRpcRecords(i){await this.core.storage.setItem(this.storageKey,i)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(i){this.isInitialized();const r=this.records.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(kr.sync)}async restore(){try{const i=await this.getJsonRpcRecords();if(typeof i>"u"||!i.length)return;if(this.records.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(i){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(i)}}registerEventListeners(){this.events.on(kr.created,i=>{const r=kr.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.events.on(kr.updated,i=>{const r=kr.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.events.on(kr.deleted,i=>{const r=kr.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(i=>{ie.toMiliseconds(i.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${i.id}`),this.delete(i.topic,i.id))})}catch(i){this.logger.warn(i)}}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class mb extends Ow{constructor(i,r){super(i,r),this.core=i,this.logger=r,this.expirations=new Map,this.events=new Kr.EventEmitter,this.name=J1,this.version=Q1,this.cached=[],this.initialized=!1,this.storagePrefix=bi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{const a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();const l=this.formatTarget(n),d={target:l,expiry:a};this.expirations.set(l,d),this.checkExpiry(l,d),this.events.emit(Sr.created,{target:l,expiration:d})},this.get=n=>{this.isInitialized();const a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){const a=this.formatTarget(n),l=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Sr.deleted,{target:a,expiration:l})}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(i){if(typeof i=="string")return um(i);if(typeof i=="number")return hm(i);const{message:r}=X("UNKNOWN_TYPE",`Target type: ${typeof i}`);throw new Error(r)}async setExpirations(i){await this.core.storage.setItem(this.storageKey,i)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Sr.sync)}async restore(){try{const i=await this.getExpirations();if(typeof i>"u"||!i.length)return;if(this.expirations.size){const{message:r}=X("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(i){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(i)}}getExpiration(i){const r=this.expirations.get(i);if(!r){const{message:n}=X("NO_MATCHING_KEY",`${this.name}: ${i}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(i,r){const{expiry:n}=r;ie.toMiliseconds(n)-Date.now()<=0&&this.expire(i,r)}expire(i,r){this.expirations.delete(i),this.events.emit(Sr.expired,{target:i,expiration:r})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((i,r)=>this.checkExpiry(r,i))}registerEventListeners(){this.core.heartbeat.on(ps.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Sr.created,i=>{const r=Sr.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()}),this.events.on(Sr.expired,i=>{const r=Sr.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()}),this.events.on(Sr.deleted,i=>{const r=Sr.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()})}isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}}}class wb extends Rw{constructor(i,r){super(i,r),this.projectId=i,this.logger=r,this.name=Zo,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async()=>{if(this.verifyDisabled||lm()||!Al())return;const n=la;this.verifyUrl!==n&&this.removeIframe(),this.verifyUrl=n;try{await this.createIframe()}catch(a){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(a)}if(!this.initialized){this.removeIframe(),this.verifyUrl=il;try{await this.createIframe()}catch(a){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(a),this.verifyDisabled=!0}}},this.register=async n=>{this.initialized?this.sendPost(n.attestationId):(this.addToQueue(n.attestationId),await this.init())},this.resolve=async n=>{if(this.isDevEnv)return"";const a=(n==null?void 0:n.verifyUrl)||la;let l;try{l=await this.fetchAttestation(n.attestationId,a)}catch(d){this.logger.info(`failed to resolve attestation: ${n.attestationId} from url: ${a}`),this.logger.info(d),l=await this.fetchAttestation(n.attestationId,il)}return l},this.fetchAttestation=async(n,a)=>{this.logger.info(`resolving attestation: ${n} from url: ${a}`);const l=this.startAbortTimer(ie.ONE_SECOND*2),d=await fetch(`${a}/attestation/${n}`,{signal:this.abortController.signal});return clearTimeout(l),d.status===200?await d.json():void 0},this.addToQueue=n=>{this.queue.push(n)},this.processQueue=()=>{this.queue.length!==0&&(this.queue.forEach(n=>this.sendPost(n)),this.queue=[])},this.sendPost=n=>{var a;try{if(!this.iframe)return;(a=this.iframe.contentWindow)==null||a.postMessage(n,"*"),this.logger.info(`postMessage sent: ${n} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let n;const a=l=>{l.data==="verify_ready"&&(this.initialized=!0,this.processQueue(),window.removeEventListener("message",a),n())};await Promise.race([new Promise(l=>{if(document.getElementById(Zo))return l();window.addEventListener("message",a);const d=document.createElement("iframe");d.id=Zo,d.src=`${this.verifyUrl}/${this.projectId}`,d.style.display="none",document.body.append(d),this.iframe=d,n=l}),new Promise((l,d)=>setTimeout(()=>{window.removeEventListener("message",a),d("verify iframe load timeout")},ie.toMiliseconds(ie.FIVE_SECONDS)))])},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.logger=Oe.generateChildLogger(r,this.name),this.verifyUrl=la,this.abortController=new AbortController,this.isDevEnv=fm()&&Xw.IS_VITEST}get context(){return Oe.getLoggerContext(this.logger)}startAbortTimer(i){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),ie.toMiliseconds(i))}}var _b=Object.defineProperty,ll=Object.getOwnPropertySymbols,bb=Object.prototype.hasOwnProperty,Eb=Object.prototype.propertyIsEnumerable,fl=(c,i,r)=>i in c?_b(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,pl=(c,i)=>{for(var r in i||(i={}))bb.call(i,r)&&fl(c,r,i[r]);if(ll)for(var r of ll(i))Eb.call(i,r)&&fl(c,r,i[r]);return c};class Ic extends bw{constructor(i){super(i),this.protocol=tf,this.version=I1,this.name=Ec,this.events=new Kr.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.projectId=i==null?void 0:i.projectId,this.relayUrl=(i==null?void 0:i.relayUrl)||sf,this.customStoragePrefix=i!=null&&i.customStoragePrefix?`:${i.customStoragePrefix}`:"";const r=typeof(i==null?void 0:i.logger)<"u"&&typeof(i==null?void 0:i.logger)!="string"?i.logger:Oe.pino(Oe.getDefaultLoggerOptions({level:(i==null?void 0:i.logger)||x1.logger}));this.logger=Oe.generateChildLogger(r,this.name),this.heartbeat=new ps.HeartBeat,this.crypto=new X1(this,this.logger,i==null?void 0:i.keychain),this.history=new yb(this,this.logger),this.expirer=new mb(this,this.logger),this.storage=i!=null&&i.storage?i.storage:new fw(pl(pl({},P1),i==null?void 0:i.storageOptions)),this.relayer=new fb({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new vb(this,this.logger),this.verify=new wb(this.projectId||"",this.logger)}static async init(i){const r=new Ic(i);await r.initialize();const n=await r.crypto.getClientId();return await r.storage.setItem(H1,n),r}get context(){return Oe.getLoggerContext(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(i){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,i),this.logger.error(i.message),i}}}const Ib=Ic,nf="wc",af=2,of="client",xc=`${nf}@${af}:${of}:`,tc={name:of,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},dl="WALLETCONNECT_DEEPLINK_CHOICE",xb="proposal",cf="Proposal expired",Pb="session",sa=ie.SEVEN_DAYS,Sb="engine",zs={wc_sessionPropose:{req:{ttl:ie.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:ie.ONE_DAY,prompt:!1,tag:1104},res:{ttl:ie.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:ie.ONE_DAY,prompt:!1,tag:1106},res:{ttl:ie.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:ie.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:ie.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:ie.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:ie.ONE_DAY,prompt:!1,tag:1112},res:{ttl:ie.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:ie.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:ie.THIRTY_SECONDS,prompt:!1,tag:1115}}},rc={min:ie.FIVE_MINUTES,max:ie.SEVEN_DAYS},ii={idle:"IDLE",active:"ACTIVE"},Cb="request",Ob=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var Rb=Object.defineProperty,Tb=Object.defineProperties,Ab=Object.getOwnPropertyDescriptors,gl=Object.getOwnPropertySymbols,Nb=Object.prototype.hasOwnProperty,$b=Object.prototype.propertyIsEnumerable,vl=(c,i,r)=>i in c?Rb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,cr=(c,i)=>{for(var r in i||(i={}))Nb.call(i,r)&&vl(c,r,i[r]);if(gl)for(var r of gl(i))$b.call(i,r)&&vl(c,r,i[r]);return c},Ms=(c,i)=>Tb(c,Ab(i));class Db extends Aw{constructor(i){super(i),this.name=Sb,this.events=new vc,this.initialized=!1,this.ignoredPayloadTypes=[Rl],this.requestQueue={state:ii.idle,queue:[]},this.sessionRequestQueue={state:ii.idle,queue:[]},this.requestQueueDelay=ie.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(zs)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},ie.toMiliseconds(this.requestQueueDelay)))},this.connect=async r=>{await this.isInitialized();const n=Ms(cr({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(n);const{pairingTopic:a,requiredNamespaces:l,optionalNamespaces:d,sessionProperties:y,relays:w}=n;let v=a,E,C=!1;if(v&&(C=this.client.core.pairing.pairings.get(v).active),!v||!C){const{topic:he,uri:fe}=await this.client.core.pairing.create();v=he,E=fe}const T=await this.client.core.crypto.generateKeyPair(),j=cr({requiredNamespaces:l,optionalNamespaces:d,relays:w??[{protocol:rf}],proposer:{publicKey:T,metadata:this.client.metadata}},y&&{sessionProperties:y}),{reject:D,resolve:V,done:re}=us(ie.FIVE_MINUTES,cf);if(this.events.once($t("session_connect"),async({error:he,session:fe})=>{if(he)D(he);else if(fe){fe.self.publicKey=T;const pe=Ms(cr({},fe),{requiredNamespaces:fe.requiredNamespaces,optionalNamespaces:fe.optionalNamespaces});await this.client.session.set(fe.topic,pe),await this.setExpiry(fe.topic,fe.expiry),v&&await this.client.core.pairing.updateMetadata({topic:v,metadata:fe.peer.metadata}),V(pe)}}),!v){const{message:he}=X("NO_MATCHING_KEY",`connect() pairing topic: ${v}`);throw new Error(he)}const ce=await this.sendRequest({topic:v,method:"wc_sessionPropose",params:j}),ue=Dr(ie.FIVE_MINUTES);return await this.setProposal(ce,cr({id:ce,expiry:ue},j)),{uri:E,approval:re}},this.pair=async r=>(await this.isInitialized(),await this.client.core.pairing.pair(r)),this.approve=async r=>{await this.isInitialized(),await this.isValidApprove(r);const{id:n,relayProtocol:a,namespaces:l,sessionProperties:d}=r,y=this.client.proposal.get(n);let{pairingTopic:w,proposer:v,requiredNamespaces:E,optionalNamespaces:C}=y;w=w||"",ca(E)||(E=dm(l,"approve()"));const T=await this.client.core.crypto.generateKeyPair(),j=v.publicKey,D=await this.client.core.crypto.generateSharedKey(T,j);w&&n&&(await this.client.core.pairing.updateMetadata({topic:w,metadata:v.metadata}),await this.sendResult({id:n,topic:w,result:{relay:{protocol:a??"irn"},responderPublicKey:T}}),await this.client.proposal.delete(n,tr("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:w}));const V=cr({relay:{protocol:a??"irn"},namespaces:l,requiredNamespaces:E,optionalNamespaces:C,pairingTopic:w,controller:{publicKey:T,metadata:this.client.metadata},expiry:Dr(sa)},d&&{sessionProperties:d});await this.client.core.relayer.subscribe(D),await this.sendRequest({topic:D,method:"wc_sessionSettle",params:V,throwOnFailedPublish:!0});const re=Ms(cr({},V),{topic:D,pairingTopic:w,acknowledged:!1,self:V.controller,peer:{publicKey:v.publicKey,metadata:v.metadata},controller:T});return await this.client.session.set(D,re),await this.setExpiry(D,Dr(sa)),{topic:D,acknowledged:()=>new Promise(ce=>setTimeout(()=>ce(this.client.session.get(D)),500))}},this.reject=async r=>{await this.isInitialized(),await this.isValidReject(r);const{id:n,reason:a}=r,{pairingTopic:l}=this.client.proposal.get(n);l&&(await this.sendError(n,l,a),await this.client.proposal.delete(n,tr("USER_DISCONNECTED")))},this.update=async r=>{await this.isInitialized(),await this.isValidUpdate(r);const{topic:n,namespaces:a}=r,l=await this.sendRequest({topic:n,method:"wc_sessionUpdate",params:{namespaces:a}}),{done:d,resolve:y,reject:w}=us();return this.events.once($t("session_update",l),({error:v})=>{v?w(v):y()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:d}},this.extend=async r=>{await this.isInitialized(),await this.isValidExtend(r);const{topic:n}=r,a=await this.sendRequest({topic:n,method:"wc_sessionExtend",params:{}}),{done:l,resolve:d,reject:y}=us();return this.events.once($t("session_extend",a),({error:w})=>{w?y(w):d()}),await this.setExpiry(n,Dr(sa)),{acknowledged:l}},this.request=async r=>{await this.isInitialized(),await this.isValidRequest(r);const{chainId:n,request:a,topic:l,expiry:d}=r,y=qm(),{done:w,resolve:v,reject:E}=us(d,"Request expired. Please try again.");return this.events.once($t("session_request",y),({error:C,result:T})=>{C?E(C):v(T)}),await Promise.all([new Promise(async C=>{await this.sendRequest({clientRpcId:y,topic:l,method:"wc_sessionRequest",params:{request:a,chainId:n},expiry:d,throwOnFailedPublish:!0}).catch(T=>E(T)),this.client.events.emit("session_request_sent",{topic:l,request:a,chainId:n,id:y}),C()}),new Promise(async C=>{const T=await this.client.core.storage.getItem(dl);gm({id:y,topic:l,wcDeepLink:T}),C()}),w()]).then(C=>C[2])},this.respond=async r=>{await this.isInitialized(),await this.isValidRespond(r);const{topic:n,response:a}=r,{id:l}=a;mi(a)?await this.sendResult({id:l,topic:n,result:a.result,throwOnFailedPublish:!0}):si(a)&&await this.sendError(l,n,a.error),this.cleanupAfterResponse(r)},this.ping=async r=>{await this.isInitialized(),await this.isValidPing(r);const{topic:n}=r;if(this.client.session.keys.includes(n)){const a=await this.sendRequest({topic:n,method:"wc_sessionPing",params:{}}),{done:l,resolve:d,reject:y}=us();this.events.once($t("session_ping",a),({error:w})=>{w?y(w):d()}),await l()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async r=>{await this.isInitialized(),await this.isValidEmit(r);const{topic:n,event:a,chainId:l}=r;await this.sendRequest({topic:n,method:"wc_sessionEvent",params:{event:a,chainId:l}})},this.disconnect=async r=>{await this.isInitialized(),await this.isValidDisconnect(r);const{topic:n}=r;this.client.session.keys.includes(n)?(await this.sendRequest({topic:n,method:"wc_sessionDelete",params:tr("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(n=>vm(n,r))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async r=>{if(r.pairingTopic)try{const n=this.client.core.pairing.pairings.get(r.pairingTopic),a=this.client.core.pairing.pairings.getAll().filter(l=>{var d,y;return((d=l.peerMetadata)==null?void 0:d.url)&&((y=l.peerMetadata)==null?void 0:y.url)===r.peer.metadata.url&&l.topic&&l.topic!==n.topic});if(a.length===0)return;this.client.logger.info(`Cleaning up ${a.length} duplicate pairing(s)`),await Promise.all(a.map(l=>this.client.core.pairing.disconnect({topic:l.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(n){this.client.logger.error(n)}},this.deleteSession=async(r,n)=>{const{self:a}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),this.client.session.delete(r,tr("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(r)&&await this.client.core.crypto.deleteSymKey(r),n||this.client.core.expirer.del(r),this.client.core.storage.removeItem(dl).catch(l=>this.client.logger.warn(l))},this.deleteProposal=async(r,n)=>{await Promise.all([this.client.proposal.delete(r,tr("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deletePendingSessionRequest=async(r,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,n),a?Promise.resolve():this.client.core.expirer.del(r)]),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(l=>l.id!==r),a&&(this.sessionRequestQueue.state=ii.idle)},this.setExpiry=async(r,n)=>{this.client.session.keys.includes(r)&&await this.client.session.update(r,{expiry:n}),this.client.core.expirer.set(r,n)},this.setProposal=async(r,n)=>{await this.client.proposal.set(r,n),this.client.core.expirer.set(r,n.expiry)},this.setPendingSessionRequest=async r=>{const n=zs.wc_sessionRequest.req.ttl,{id:a,topic:l,params:d,verifyContext:y}=r;await this.client.pendingRequest.set(a,{id:a,topic:l,params:d,verifyContext:y}),n&&this.client.core.expirer.set(a,Dr(n))},this.sendRequest=async r=>{const{topic:n,method:a,params:l,expiry:d,relayRpcId:y,clientRpcId:w,throwOnFailedPublish:v}=r,E=Ks(a,l,w);if(Al()&&Ob.includes(a)){const j=ls(JSON.stringify(E));this.client.core.verify.register({attestationId:j})}const C=await this.client.core.crypto.encode(n,E),T=zs[a].req;return d&&(T.ttl=d),y&&(T.id=y),this.client.core.history.set(n,E),v?(T.internal=Ms(cr({},T.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,C,T)):this.client.core.relayer.publish(n,C,T).catch(j=>this.client.logger.error(j)),E.id},this.sendResult=async r=>{const{id:n,topic:a,result:l,throwOnFailedPublish:d}=r,y=_c(n,l),w=await this.client.core.crypto.encode(a,y),v=await this.client.core.history.get(a,n),E=zs[v.request.method].res;d?(E.internal=Ms(cr({},E.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(a,w,E)):this.client.core.relayer.publish(a,w,E).catch(C=>this.client.logger.error(C)),await this.client.core.history.resolve(y)},this.sendError=async(r,n,a)=>{const l=yc(r,a),d=await this.client.core.crypto.encode(n,l),y=await this.client.core.history.get(n,r),w=zs[y.request.method].res;this.client.core.relayer.publish(n,d,w),await this.client.core.history.resolve(l)},this.cleanup=async()=>{const r=[],n=[];this.client.session.getAll().forEach(a=>{wi(a.expiry)&&r.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{wi(a.expiry)&&n.push(a.id)}),await Promise.all([...r.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=async r=>{this.requestQueue.queue.push(r),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===ii.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=ii.active;const r=this.requestQueue.queue.shift();if(r)try{this.processRequest(r),await new Promise(n=>setTimeout(n,300))}catch(n){this.client.logger.warn(n)}}this.requestQueue.state=ii.idle},this.processRequest=r=>{const{topic:n,payload:a}=r,l=a.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeRequest(n,a);case"wc_sessionSettle":return this.onSessionSettleRequest(n,a);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,a);case"wc_sessionExtend":return this.onSessionExtendRequest(n,a);case"wc_sessionPing":return this.onSessionPingRequest(n,a);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,a);case"wc_sessionRequest":return this.onSessionRequest(n,a);case"wc_sessionEvent":return this.onSessionEventRequest(n,a);default:return this.client.logger.info(`Unsupported request method ${l}`)}},this.onRelayEventResponse=async r=>{const{topic:n,payload:a}=r,l=(await this.client.core.history.get(n,a.id)).request.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeResponse(n,a);case"wc_sessionSettle":return this.onSessionSettleResponse(n,a);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,a);case"wc_sessionExtend":return this.onSessionExtendResponse(n,a);case"wc_sessionPing":return this.onSessionPingResponse(n,a);case"wc_sessionRequest":return this.onSessionRequestResponse(n,a);default:return this.client.logger.info(`Unsupported response method ${l}`)}},this.onRelayEventUnknownPayload=r=>{const{topic:n}=r,{message:a}=X("MISSING_OR_INVALID",`Decoded payload on topic ${n} is not identifiable as a JSON-RPC request or a response.`);throw new Error(a)},this.onSessionProposeRequest=async(r,n)=>{const{params:a,id:l}=n;try{this.isValidConnect(cr({},n.params));const d=Dr(ie.FIVE_MINUTES),y=cr({id:l,pairingTopic:r,expiry:d},a);await this.setProposal(l,y);const w=ls(JSON.stringify(n)),v=await this.getVerifyContext(w,y.proposer.metadata);this.client.events.emit("session_proposal",{id:l,params:y,verifyContext:v})}catch(d){await this.sendError(l,r,d),this.client.logger.error(d)}},this.onSessionProposeResponse=async(r,n)=>{const{id:a}=n;if(mi(n)){const{result:l}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:l});const d=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:d});const y=d.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:y});const w=l.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:w});const v=await this.client.core.crypto.generateSharedKey(y,w);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:v});const E=await this.client.core.relayer.subscribe(v);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:E}),await this.client.core.pairing.activate({topic:r})}else si(n)&&(await this.client.proposal.delete(a,tr("USER_DISCONNECTED")),this.events.emit($t("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(r,n)=>{const{id:a,params:l}=n;try{this.isValidSessionSettleRequest(l);const{relay:d,controller:y,expiry:w,namespaces:v,requiredNamespaces:E,optionalNamespaces:C,sessionProperties:T,pairingTopic:j}=n.params,D=cr({topic:r,relay:d,expiry:w,namespaces:v,acknowledged:!0,pairingTopic:j,requiredNamespaces:E,optionalNamespaces:C,controller:y.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:y.publicKey,metadata:y.metadata}},T&&{sessionProperties:T});await this.sendResult({id:n.id,topic:r,result:!0}),this.events.emit($t("session_connect"),{session:D}),this.cleanupDuplicatePairings(D)}catch(d){await this.sendError(a,r,d),this.client.logger.error(d)}},this.onSessionSettleResponse=async(r,n)=>{const{id:a}=n;mi(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit($t("session_approve",a),{})):si(n)&&(await this.client.session.delete(r,tr("USER_DISCONNECTED")),this.events.emit($t("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{const{params:a,id:l}=n;try{const d=`${r}_session_update`,y=ta.get(d);if(y&&this.isRequestOutOfSync(y,l)){this.client.logger.info(`Discarding out of sync request - ${l}`);return}this.isValidUpdate(cr({topic:r},a)),await this.client.session.update(r,{namespaces:a.namespaces}),await this.sendResult({id:l,topic:r,result:!0}),this.client.events.emit("session_update",{id:l,topic:r,params:a}),ta.set(d,l)}catch(d){await this.sendError(l,r,d),this.client.logger.error(d)}},this.isRequestOutOfSync=(r,n)=>parseInt(n.toString().slice(0,-3))<=parseInt(r.toString().slice(0,-3)),this.onSessionUpdateResponse=(r,n)=>{const{id:a}=n;mi(n)?this.events.emit($t("session_update",a),{}):si(n)&&this.events.emit($t("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{const{id:a}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,Dr(sa)),await this.sendResult({id:a,topic:r,result:!0}),this.client.events.emit("session_extend",{id:a,topic:r})}catch(l){await this.sendError(a,r,l),this.client.logger.error(l)}},this.onSessionExtendResponse=(r,n)=>{const{id:a}=n;mi(n)?this.events.emit($t("session_extend",a),{}):si(n)&&this.events.emit($t("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(r,n)=>{const{id:a}=n;try{this.isValidPing({topic:r}),await this.sendResult({id:a,topic:r,result:!0}),this.client.events.emit("session_ping",{id:a,topic:r})}catch(l){await this.sendError(a,r,l),this.client.logger.error(l)}},this.onSessionPingResponse=(r,n)=>{const{id:a}=n;setTimeout(()=>{mi(n)?this.events.emit($t("session_ping",a),{}):si(n)&&this.events.emit($t("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(r,n)=>{const{id:a}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),await Promise.all([new Promise(l=>{this.client.core.relayer.once(Gt.publish,async()=>{l(await this.deleteSession(r))})}),this.sendResult({id:a,topic:r,result:!0})]),this.client.events.emit("session_delete",{id:a,topic:r})}catch(l){this.client.logger.error(l)}},this.onSessionRequest=async(r,n)=>{const{id:a,params:l}=n;try{this.isValidRequest(cr({topic:r},l));const d=ls(JSON.stringify(Ks("wc_sessionRequest",l,a))),y=this.client.session.get(r),w=await this.getVerifyContext(d,y.peer.metadata),v={id:a,topic:r,params:l,verifyContext:w};await this.setPendingSessionRequest(v),this.addSessionRequestToSessionRequestQueue(v),this.processSessionRequestQueue()}catch(d){await this.sendError(a,r,d),this.client.logger.error(d)}},this.onSessionRequestResponse=(r,n)=>{const{id:a}=n;mi(n)?this.events.emit($t("session_request",a),{result:n.result}):si(n)&&this.events.emit($t("session_request",a),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{const{id:a,params:l}=n;try{const d=`${r}_session_event_${l.event.name}`,y=ta.get(d);if(y&&this.isRequestOutOfSync(y,a)){this.client.logger.info(`Discarding out of sync request - ${a}`);return}this.isValidEmit(cr({topic:r},l)),this.client.events.emit("session_event",{id:a,topic:r,params:l}),ta.set(d,a)}catch(d){await this.sendError(a,r,d),this.client.logger.error(d)}},this.addSessionRequestToSessionRequestQueue=r=>{this.sessionRequestQueue.queue.push(r)},this.cleanupAfterResponse=r=>{this.deletePendingSessionRequest(r.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=ii.idle,this.processSessionRequestQueue()},ie.toMiliseconds(this.requestQueueDelay))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===ii.active){this.client.logger.info("session request queue is already active.");return}const r=this.sessionRequestQueue.queue[0];if(!r){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=ii.active,this.client.events.emit("session_request",r)}catch(n){this.client.logger.error(n)}},this.onPairingCreated=r=>{if(r.active)return;const n=this.client.proposal.getAll().find(a=>a.pairingTopic===r.topic);n&&this.onSessionProposeRequest(r.topic,Ks("wc_sessionPropose",{requiredNamespaces:n.requiredNamespaces,optionalNamespaces:n.optionalNamespaces,relays:n.relays,proposer:n.proposer},n.id))},this.isValidConnect=async r=>{if(!hr(r)){const{message:w}=X("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(w)}const{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:l,sessionProperties:d,relays:y}=r;if(_i(n)||await this.isValidPairingTopic(n),!ym(y,!0)){const{message:w}=X("MISSING_OR_INVALID",`connect() relays: ${y}`);throw new Error(w)}!_i(a)&&ca(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!_i(l)&&ca(l)!==0&&this.validateNamespaces(l,"optionalNamespaces"),_i(d)||this.validateSessionProps(d,"sessionProperties")},this.validateNamespaces=(r,n)=>{const a=mm(r,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async r=>{if(!hr(r))throw new Error(X("MISSING_OR_INVALID",`approve() params: ${r}`).message);const{id:n,namespaces:a,relayProtocol:l,sessionProperties:d}=r;await this.isValidProposalId(n);const y=this.client.proposal.get(n),w=Vo(a,"approve()");if(w)throw new Error(w.message);const v=Rh(y.requiredNamespaces,a,"approve()");if(v)throw new Error(v.message);if(!hs(l,!0)){const{message:E}=X("MISSING_OR_INVALID",`approve() relayProtocol: ${l}`);throw new Error(E)}_i(d)||this.validateSessionProps(d,"sessionProperties")},this.isValidReject=async r=>{if(!hr(r)){const{message:l}=X("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(l)}const{id:n,reason:a}=r;if(await this.isValidProposalId(n),!wm(a)){const{message:l}=X("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(l)}},this.isValidSessionSettleRequest=r=>{if(!hr(r)){const{message:v}=X("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(v)}const{relay:n,controller:a,namespaces:l,expiry:d}=r;if(!_m(n)){const{message:v}=X("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(v)}const y=bm(a,"onSessionSettleRequest()");if(y)throw new Error(y.message);const w=Vo(l,"onSessionSettleRequest()");if(w)throw new Error(w.message);if(wi(d)){const{message:v}=X("EXPIRED","onSessionSettleRequest()");throw new Error(v)}},this.isValidUpdate=async r=>{if(!hr(r)){const{message:w}=X("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(w)}const{topic:n,namespaces:a}=r;await this.isValidSessionTopic(n);const l=this.client.session.get(n),d=Vo(a,"update()");if(d)throw new Error(d.message);const y=Rh(l.requiredNamespaces,a,"update()");if(y)throw new Error(y.message)},this.isValidExtend=async r=>{if(!hr(r)){const{message:a}=X("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(a)}const{topic:n}=r;await this.isValidSessionTopic(n)},this.isValidRequest=async r=>{if(!hr(r)){const{message:w}=X("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(w)}const{topic:n,request:a,chainId:l,expiry:d}=r;await this.isValidSessionTopic(n);const{namespaces:y}=this.client.session.get(n);if(!Th(y,l)){const{message:w}=X("MISSING_OR_INVALID",`request() chainId: ${l}`);throw new Error(w)}if(!Em(a)){const{message:w}=X("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(w)}if(!Im(y,l,a.method)){const{message:w}=X("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(w)}if(d&&!xm(d,rc)){const{message:w}=X("MISSING_OR_INVALID",`request() expiry: ${d}. Expiry must be a number (in seconds) between ${rc.min} and ${rc.max}`);throw new Error(w)}},this.isValidRespond=async r=>{if(!hr(r)){const{message:l}=X("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(l)}const{topic:n,response:a}=r;if(await this.isValidSessionTopic(n),!Pm(a)){const{message:l}=X("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(a)}`);throw new Error(l)}},this.isValidPing=async r=>{if(!hr(r)){const{message:a}=X("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(a)}const{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async r=>{if(!hr(r)){const{message:y}=X("MISSING_OR_INVALID",`emit() params: ${r}`);throw new Error(y)}const{topic:n,event:a,chainId:l}=r;await this.isValidSessionTopic(n);const{namespaces:d}=this.client.session.get(n);if(!Th(d,l)){const{message:y}=X("MISSING_OR_INVALID",`emit() chainId: ${l}`);throw new Error(y)}if(!Sm(a)){const{message:y}=X("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(y)}if(!Cm(d,l,a.name)){const{message:y}=X("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(y)}},this.isValidDisconnect=async r=>{if(!hr(r)){const{message:a}=X("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(a)}const{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.getVerifyContext=async(r,n)=>{const a={verified:{verifyUrl:n.verifyUrl||la,validation:"UNKNOWN",origin:n.url||""}};try{const l=await this.client.core.verify.resolve({attestationId:r,verifyUrl:n.verifyUrl});l&&(a.verified.origin=l.origin,a.verified.isScam=l.isScam,a.verified.validation=l.origin===new URL(n.url).origin?"VALID":"INVALID")}catch(l){this.client.logger.info(l)}return this.client.logger.info(`Verify context: ${JSON.stringify(a)}`),a},this.validateSessionProps=(r,n)=>{Object.values(r).forEach(a=>{if(!hs(a,!1)){const{message:l}=X("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(l)}})}}async isInitialized(){if(!this.initialized){const{message:i}=X("NOT_INITIALIZED",this.name);throw new Error(i)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(Gt.message,async i=>{const{topic:r,message:n}=i;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;const a=await this.client.core.crypto.decode(r,n);try{mc(a)?(this.client.core.history.set(r,a),this.onRelayEventRequest({topic:r,payload:a})):wc(a)?(await this.client.core.history.resolve(a),await this.onRelayEventResponse({topic:r,payload:a}),this.client.core.history.delete(r,a.id)):this.onRelayEventUnknownPayload({topic:r,payload:a})}catch(l){this.client.logger.error(l)}})}registerExpirerEvents(){this.client.core.expirer.on(Sr.expired,async i=>{const{topic:r,id:n}=Tl(i.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,X("EXPIRED"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession(r,!0),this.client.events.emit("session_expire",{topic:r})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}registerPairingEvents(){this.client.core.pairing.events.on(Hs.create,i=>this.onPairingCreated(i))}isValidPairingTopic(i){if(!hs(i,!1)){const{message:r}=X("MISSING_OR_INVALID",`pairing topic should be a string: ${i}`);throw new Error(r)}if(!this.client.core.pairing.pairings.keys.includes(i)){const{message:r}=X("NO_MATCHING_KEY",`pairing topic doesn't exist: ${i}`);throw new Error(r)}if(wi(this.client.core.pairing.pairings.get(i).expiry)){const{message:r}=X("EXPIRED",`pairing topic: ${i}`);throw new Error(r)}}async isValidSessionTopic(i){if(!hs(i,!1)){const{message:r}=X("MISSING_OR_INVALID",`session topic should be a string: ${i}`);throw new Error(r)}if(!this.client.session.keys.includes(i)){const{message:r}=X("NO_MATCHING_KEY",`session topic doesn't exist: ${i}`);throw new Error(r)}if(wi(this.client.session.get(i).expiry)){await this.deleteSession(i);const{message:r}=X("EXPIRED",`session topic: ${i}`);throw new Error(r)}}async isValidSessionOrPairingTopic(i){if(this.client.session.keys.includes(i))await this.isValidSessionTopic(i);else if(this.client.core.pairing.pairings.keys.includes(i))this.isValidPairingTopic(i);else if(hs(i,!1)){const{message:r}=X("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${i}`);throw new Error(r)}else{const{message:r}=X("MISSING_OR_INVALID",`session or pairing topic should be a string: ${i}`);throw new Error(r)}}async isValidProposalId(i){if(!Om(i)){const{message:r}=X("MISSING_OR_INVALID",`proposal id should be a number: ${i}`);throw new Error(r)}if(!this.client.proposal.keys.includes(i)){const{message:r}=X("NO_MATCHING_KEY",`proposal id doesn't exist: ${i}`);throw new Error(r)}if(wi(this.client.proposal.get(i).expiry)){await this.deleteProposal(i);const{message:r}=X("EXPIRED",`proposal id: ${i}`);throw new Error(r)}}}class Lb extends ma{constructor(i,r){super(i,r,xb,xc),this.core=i,this.logger=r}}class qb extends ma{constructor(i,r){super(i,r,Pb,xc),this.core=i,this.logger=r}}class zb extends ma{constructor(i,r){super(i,r,Cb,xc,n=>n.id),this.core=i,this.logger=r}}let Mb=class uf extends Tw{constructor(i){super(i),this.protocol=nf,this.version=af,this.name=tc.name,this.events=new Kr.EventEmitter,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(a){throw this.logger.error(a.message),a}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(a){throw this.logger.error(a.message),a}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(a){throw this.logger.error(a.message),a}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(a){throw this.logger.error(a.message),a}},this.update=async n=>{try{return await this.engine.update(n)}catch(a){throw this.logger.error(a.message),a}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(a){throw this.logger.error(a.message),a}},this.request=async n=>{try{return await this.engine.request(n)}catch(a){throw this.logger.error(a.message),a}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(a){throw this.logger.error(a.message),a}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(a){throw this.logger.error(a.message),a}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(a){throw this.logger.error(a.message),a}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(a){throw this.logger.error(a.message),a}},this.find=n=>{try{return this.engine.find(n)}catch(a){throw this.logger.error(a.message),a}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=(i==null?void 0:i.name)||tc.name,this.metadata=(i==null?void 0:i.metadata)||pm();const r=typeof(i==null?void 0:i.logger)<"u"&&typeof(i==null?void 0:i.logger)!="string"?i.logger:Oe.pino(Oe.getDefaultLoggerOptions({level:(i==null?void 0:i.logger)||tc.logger}));this.core=(i==null?void 0:i.core)||new Ib(i),this.logger=Oe.generateChildLogger(r,this.name),this.session=new qb(this.core,this.logger),this.proposal=new Lb(this.core,this.logger),this.pendingRequest=new zb(this.core,this.logger),this.engine=new Db(this)}static async init(i){const r=new uf(i);return await r.initialize(),r}get context(){return Oe.getLoggerContext(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(i){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(i.message),i}}};const yl="error",jb="wss://relay.walletconnect.com",Ub="wc",Hb="universal_provider",ml=`${Ub}@2:${Hb}:`,kb="https://rpc.walletconnect.com/v1/",ai={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fc={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors @@ -24,10 +24,10 @@ __p += '`),Ce&&(H+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+H+`return __p -}`;var we=Ih(function(){return De(p,ee+"return "+H).apply(r,m)});if(we.source=H,$o(we))throw we;return we}function Qy(e){return qe(e).toLowerCase()}function Yy(e){return qe(e).toUpperCase()}function Xy(e,t,s){if(e=qe(e),e&&(s||t===r))return Nc(e);if(!e||!(t=pr(t)))return e;var o=Rr(e),h=Rr(t),p=$c(o,h),m=Dc(o,h)+1;return vi(o,p,m).join("")}function Zy(e,t,s){if(e=qe(e),e&&(s||t===r))return e.slice(0,qc(e)+1);if(!e||!(t=pr(t)))return e;var o=Rr(e),h=Dc(o,Rr(t))+1;return vi(o,0,h).join("")}function e0(e,t,s){if(e=qe(e),e&&(s||t===r))return e.replace(gt,"");if(!e||!(t=pr(t)))return e;var o=Rr(e),h=$c(o,Rr(t));return vi(o,h).join("")}function t0(e,t){var s=te,o=Ee;if(ct(t)){var h="separator"in t?t.separator:h;s="length"in t?ye(t.length):s,o="omission"in t?pr(t.omission):o}e=qe(e);var p=e.length;if(Yi(e)){var m=Rr(e);p=m.length}if(s>=p)return e;var _=s-Xi(o);if(_<1)return o;var P=m?vi(m,0,_).join(""):e.slice(0,_);if(h===r)return P+o;if(m&&(_+=P.length-_),Do(h)){if(e.slice(_).search(h)){var q,z=P;for(h.global||(h=Ja(h.source,qe(yr.exec(h))+"g")),h.lastIndex=0;q=h.exec(z);)var H=q.index;P=P.slice(0,H===r?_:H)}}else if(e.indexOf(pr(h),_)!=_){var G=P.lastIndexOf(h);G>-1&&(P=P.slice(0,G))}return P+o}function r0(e){return e=qe(e),e&<.test(e)?e.replace(oi,Af):e}var i0=ns(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),zo=xu("toUpperCase");function Eh(e,t,s){return e=qe(e),t=s?r:t,t===r?Sf(e)?Df(e):yf(e):e.match(t)||[]}var Ih=be(function(e,t){try{return Mt(e,r,t)}catch(s){return $o(s)?s:new le(s)}}),s0=Yr(function(e,t){return wr(t,function(s){s=Hr(s),Jr(e,s,Ao(e[s],e))}),e});function n0(e){var t=e==null?0:e.length,s=se();return e=t?it(e,function(o){if(typeof o[1]!="function")throw new _r(d);return[s(o[0]),o[1]]}):[],be(function(o){for(var h=-1;++hJ)return[];var s=B,o=Ft(e,B);t=se(t),e-=B;for(var h=Ba(o,t);++s0||t<0)?new Pe(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==r&&(t=ye(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},Pe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pe.prototype.toArray=function(){return this.take(B)},jr(Pe.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),h=f[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);h&&(f.prototype[t]=function(){var m=this.__wrapped__,_=o?[1]:arguments,P=m instanceof Pe,q=_[0],z=P||ge(m),H=function(Ie){var Ce=h.apply(f,hi([Ie],_));return o&&G?Ce[0]:Ce};z&&s&&typeof q=="function"&&q.length!=1&&(P=z=!1);var G=this.__chain__,ee=!!this.__actions__.length,ne=p&&!G,we=P&&!ee;if(!p&&z){m=we?m:new Pe(this);var ae=e.apply(m,_);return ae.__actions__.push({func:Bn,args:[H],thisArg:r}),new br(ae,G)}return ne&&we?e.apply(this,_):(ae=this.thru(H),ne?o?ae.value()[0]:ae.value():ae)})}),wr(["pop","push","shift","sort","splice","unshift"],function(e){var t=mn[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var h=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(ge(p)?p:[],h)}return this[s](function(m){return t.apply(ge(m)?m:[],h)})}}),jr(Pe.prototype,function(e,t){var s=f[t];if(s){var o=s.name+"";Me.call(rs,o)||(rs[o]=[]),rs[o].push({name:t,func:s})}}),rs[jn(r,ce).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=rp,Pe.prototype.reverse=ip,Pe.prototype.value=sp,f.prototype.at=$g,f.prototype.chain=Dg,f.prototype.commit=Lg,f.prototype.next=qg,f.prototype.plant=Mg,f.prototype.reverse=jg,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=Ug,f.prototype.first=f.prototype.head,ws&&(f.prototype[ws]=zg),f},Zi=Lf();_t?((_t.exports=Zi)._=Zi,Be._=Zi):Se._=Zi}).call(js)})(fc,fc.exports);var Kb=Object.defineProperty,Vb=Object.defineProperties,Fb=Object.getOwnPropertyDescriptors,wl=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,Gb=Object.prototype.propertyIsEnumerable,_l=(c,i,r)=>i in c?Kb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,na=(c,i)=>{for(var r in i||(i={}))Bb.call(i,r)&&_l(c,r,i[r]);if(wl)for(var r of wl(i))Gb.call(i,r)&&_l(c,r,i[r]);return c},Wb=(c,i)=>Vb(c,Fb(i));function Ei(c,i,r){var n;const a=Rm(c);return((n=i.rpcMap)==null?void 0:n[a.reference])||`${kb}?chainId=${a.namespace}:${a.reference}&projectId=${r}`}function ki(c){return c.includes(":")?c.split(":")[1]:c}function hf(c){return c.map(i=>`${i.split(":")[0]}:${i.split(":")[1]}`)}function Jb(c,i){const r=Object.keys(i.namespaces).filter(a=>a.includes(c));if(!r.length)return[];const n=[];return r.forEach(a=>{const l=i.namespaces[a].accounts;n.push(...l)}),n}function Qb(c={},i={}){const r=bl(c),n=bl(i);return fc.exports.merge(r,n)}function bl(c){var i,r,n,a;const l={};if(!ca(c))return l;for(const[d,y]of Object.entries(c)){const w=Dl(d)?[d]:y.chains,v=y.methods||[],E=y.events||[],C=y.rpcMap||{},T=Us(d);l[T]=Wb(na(na({},l[T]),y),{chains:Fo(w,(i=l[T])==null?void 0:i.chains),methods:Fo(v,(r=l[T])==null?void 0:r.methods),events:Fo(E,(n=l[T])==null?void 0:n.events),rpcMap:na(na({},C),(a=l[T])==null?void 0:a.rpcMap)})}return l}function Yb(c){return c.includes(":")?c.split(":")[2]:c}function Xb(c){const i={};for(const[r,n]of Object.entries(c)){const a=n.methods||[],l=n.events||[],d=n.accounts||[],y=Dl(r)?[r]:n.chains?n.chains:hf(n.accounts);i[r]={chains:y,methods:a,events:l,accounts:d}}return i}function ic(c){return typeof c=="number"?c:c.includes("0x")?parseInt(c,16):c.includes(":")?Number(c.split(":")[1]):Number(c)}const lf={},st=c=>lf[c],sc=(c,i)=>{lf[c]=i};class Zb{constructor(i){this.name="polkadot",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getAccounts(){const i=this.namespace.accounts;return i?i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2])||[]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class eE{constructor(i){this.name="eip155",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(i){switch(i.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(i);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(i.request.method)?await this.client.request(i):this.getHttpProvider().request(i.request)}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(parseInt(i),r),this.chainId=parseInt(i),this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}createHttpProvider(i,r){const n=r||Ei(`${this.name}:${i}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=parseInt(ki(r));i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}getHttpProvider(){const i=this.chainId,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}async handleSwitchChain(i){var r,n;let a=i.request.params?(r=i.request.params[0])==null?void 0:r.chainId:"0x0";a=a.startsWith("0x")?a:`0x${a}`;const l=parseInt(a,16);if(this.isChainApproved(l))this.setDefaultChain(`${l}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:i.topic,request:{method:i.request.method,params:[{chainId:a}]},chainId:(n=this.namespace.chains)==null?void 0:n[0]}),this.setDefaultChain(`${l}`);else throw new Error(`Failed to switch to chain 'eip155:${l}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(i){return this.namespace.chains.includes(`${this.name}:${i}`)}}class tE{constructor(i){this.name="solana",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class rE{constructor(i){this.name="cosmos",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class iE{constructor(i){this.name="cip34",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{const n=this.getCardanoRPCUrl(r),a=ki(r);i[a]=this.createHttpProvider(a,n)}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}getCardanoRPCUrl(i){const r=this.namespace.rpcMap;if(r)return r[i]}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||this.getCardanoRPCUrl(i);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class sE{constructor(i){this.name="elrond",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class nE{constructor(i){this.name="multiversx",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class aE{constructor(i){this.name="near",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){if(this.chainId=i,!this.httpProviders[i]){const n=r||Ei(`${this.name}:${i}`,this.namespace);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);this.setHttpProvider(i,n)}this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2])||[]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;i[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace);return typeof n>"u"?void 0:new ni(new Ii(n,st("disableProviderPing")))}}var oE=Object.defineProperty,cE=Object.defineProperties,uE=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,hE=Object.prototype.hasOwnProperty,lE=Object.prototype.propertyIsEnumerable,Il=(c,i,r)=>i in c?oE(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,aa=(c,i)=>{for(var r in i||(i={}))hE.call(i,r)&&Il(c,r,i[r]);if(El)for(var r of El(i))lE.call(i,r)&&Il(c,r,i[r]);return c},nc=(c,i)=>cE(c,uE(i));class Pc{constructor(i){this.events=new vc,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=i,this.logger=typeof(i==null?void 0:i.logger)<"u"&&typeof(i==null?void 0:i.logger)!="string"?i.logger:Oe.pino(Oe.getDefaultLoggerOptions({level:(i==null?void 0:i.logger)||yl})),this.disableProviderPing=(i==null?void 0:i.disableProviderPing)||!1}static async init(i){const r=new Pc(i);return await r.initialize(),r}async request(i,r){const[n,a]=this.validateChain(r);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:aa({},i),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(i,r,n){this.request(i,n).then(a=>r(null,a)).catch(a=>r(a,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var i;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(i=this.session)==null?void 0:i.topic,reason:tr("USER_DISCONNECTED")}),await this.cleanup()}async connect(i){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(i),await this.cleanupPendingPairings(),!i.skipPairing)return await this.pair(i.pairingTopic)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}removeListener(i,r){this.events.removeListener(i,r)}off(i,r){this.events.off(i,r)}get isWalletConnect(){return!0}async pair(i){this.shouldAbortPairingAttempt=!1;let r=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(r>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:n,approval:a}=await this.client.connect({pairingTopic:i,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(l=>{this.session=l,this.namespaces||(this.namespaces=Xb(l.namespaces),this.persist("namespaces",this.namespaces))}).catch(l=>{if(l.message!==cf)throw l;r++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(i,r){try{if(!this.session)return;const[n,a]=this.validateChain(i);this.getProvider(n).setDefaultChain(a,r)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(i={}){this.logger.info("Cleaning up inactive pairings...");const r=this.client.pairing.getAll();if(fs(r)){for(const n of r)i.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${r.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const i=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[i]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await Mb.init({logger:this.providerOpts.logger||yl,relayUrl:this.providerOpts.relayUrl||jb,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const i=[...new Set(Object.keys(this.session.namespaces).map(r=>Us(r)))];sc("client",this.client),sc("events",this.events),sc("disableProviderPing",this.disableProviderPing),i.forEach(r=>{if(!this.session)return;const n=Jb(r,this.session),a=hf(n),l=Qb(this.namespaces,this.optionalNamespaces),d=nc(aa({},l[r]),{accounts:n,chains:a});switch(r){case"eip155":this.rpcProviders[r]=new eE({namespace:d});break;case"solana":this.rpcProviders[r]=new tE({namespace:d});break;case"cosmos":this.rpcProviders[r]=new rE({namespace:d});break;case"polkadot":this.rpcProviders[r]=new Zb({namespace:d});break;case"cip34":this.rpcProviders[r]=new iE({namespace:d});break;case"elrond":this.rpcProviders[r]=new sE({namespace:d});break;case"multiversx":this.rpcProviders[r]=new nE({namespace:d});break;case"near":this.rpcProviders[r]=new aE({namespace:d});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",i=>{this.events.emit("session_ping",i)}),this.client.on("session_event",i=>{const{params:r}=i,{event:n}=r;if(n.name==="accountsChanged"){const a=n.data;a&&fs(a)&&this.events.emit("accountsChanged",a.map(Yb))}else if(n.name==="chainChanged"){const a=r.chainId,l=r.event.data,d=Us(a),y=ic(a)!==ic(l)?`${d}:${ic(l)}`:a;this.onChainChanged(y)}else this.events.emit(n.name,n.data);this.events.emit("session_event",i)}),this.client.on("session_update",({topic:i,params:r})=>{var n;const{namespaces:a}=r,l=(n=this.client)==null?void 0:n.session.get(i);this.session=nc(aa({},l),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:i,params:r})}),this.client.on("session_delete",async i=>{await this.cleanup(),this.events.emit("session_delete",i),this.events.emit("disconnect",nc(aa({},tr("USER_DISCONNECTED")),{data:i.topic}))}),this.on(ai.DEFAULT_CHAIN_CHANGED,i=>{this.onChainChanged(i,!0)})}getProvider(i){if(!this.rpcProviders[i])throw new Error(`Provider not found: ${i}`);return this.rpcProviders[i]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(i=>{var r;this.getProvider(i).updateNamespace((r=this.session)==null?void 0:r.namespaces[i])})}setNamespaces(i){const{namespaces:r,optionalNamespaces:n,sessionProperties:a}=i;r&&Object.keys(r).length&&(this.namespaces=r),n&&Object.keys(n).length&&(this.optionalNamespaces=n),this.sessionProperties=a,this.persist("namespaces",r),this.persist("optionalNamespaces",n)}validateChain(i){const[r,n]=(i==null?void 0:i.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[r,n];if(r&&!Object.keys(this.namespaces||{}).map(d=>Us(d)).includes(r))throw new Error(`Namespace '${r}' is not configured. Please call connect() first with namespace config.`);if(r&&n)return[r,n];const a=Us(Object.keys(this.namespaces)[0]),l=this.rpcProviders[a].getDefaultChain();return[a,l]}async requestAccounts(){const[i]=this.validateChain();return await this.getProvider(i).requestAccounts()}onChainChanged(i,r=!1){var n;if(!this.namespaces)return;const[a,l]=this.validateChain(i);r||this.getProvider(a).setDefaultChain(l),((n=this.namespaces[a])!=null?n:this.namespaces[`${a}:${l}`]).defaultChain=l,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",l)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(i,r){this.client.core.storage.setItem(`${ml}/${i}`,r)}async getFromStore(i){return await this.client.core.storage.getItem(`${ml}/${i}`)}}const fE=Pc,pE="wc",dE="ethereum_provider",gE=`${pE}@2:${dE}:`,vE="https://rpc.walletconnect.com/v1/",pc=["eth_sendTransaction","personal_sign"],yE=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],dc=["chainChanged","accountsChanged"],mE=["chainChanged","accountsChanged","message","disconnect","connect"];var wE=Object.defineProperty,_E=Object.defineProperties,bE=Object.getOwnPropertyDescriptors,xl=Object.getOwnPropertySymbols,EE=Object.prototype.hasOwnProperty,IE=Object.prototype.propertyIsEnumerable,Pl=(c,i,r)=>i in c?wE(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,ks=(c,i)=>{for(var r in i||(i={}))EE.call(i,r)&&Pl(c,r,i[r]);if(xl)for(var r of xl(i))IE.call(i,r)&&Pl(c,r,i[r]);return c},Sl=(c,i)=>_E(c,bE(i));function da(c){return Number(c[0].split(":")[1])}function ac(c){return`0x${c.toString(16)}`}function xE(c){const{chains:i,optionalChains:r,methods:n,optionalMethods:a,events:l,optionalEvents:d,rpcMap:y}=c;if(!fs(i))throw new Error("Invalid chains");const w={chains:i,methods:n||pc,events:l||dc,rpcMap:ks({},i.length?{[da(i)]:y[da(i)]}:{})},v=l==null?void 0:l.filter(j=>!dc.includes(j)),E=n==null?void 0:n.filter(j=>!pc.includes(j));if(!r&&!d&&!a&&!(v!=null&&v.length)&&!(E!=null&&E.length))return{required:i.length?w:void 0};const C=(v==null?void 0:v.length)&&(E==null?void 0:E.length)||!r,T={chains:[...new Set(C?w.chains.concat(r||[]):r)],methods:[...new Set(w.methods.concat(a!=null&&a.length?a:yE))],events:[...new Set(w.events.concat(d!=null&&d.length?d:mE))],rpcMap:y};return{required:i.length?w:void 0,optional:r.length?T:void 0}}class Sc{constructor(){this.events=new Kr.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=gE,this.on=(i,r)=>(this.events.on(i,r),this),this.once=(i,r)=>(this.events.once(i,r),this),this.removeListener=(i,r)=>(this.events.removeListener(i,r),this),this.off=(i,r)=>(this.events.off(i,r),this),this.parseAccount=i=>this.isCompatibleChainId(i)?this.parseAccountId(i).address:i,this.signer={},this.rpc={}}static async init(i){const r=new Sc;return await r.initialize(i),r}async request(i){return await this.signer.request(i,this.formatChainId(this.chainId))}sendAsync(i,r){this.signer.sendAsync(i,r,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(i){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(i);const{required:r,optional:n}=xE(this.rpc);try{const a=await new Promise(async(d,y)=>{var w;this.rpc.showQrModal&&((w=this.modal)==null||w.subscribeModal(v=>{!v.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),y(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(Sl(ks({namespaces:ks({},r&&{[this.namespace]:r})},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:i==null?void 0:i.pairingTopic})).then(v=>{d(v)}).catch(v=>{y(new Error(v.message))})});if(!a)return;const l=Tm(a.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:l),this.setAccounts(l),this.events.emit("connect",{chainId:ac(this.chainId)})}catch(a){throw this.signer.logger.error(a),a}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",i=>{const{params:r}=i,{event:n}=r;n.name==="accountsChanged"?(this.accounts=this.parseAccounts(n.data),this.events.emit("accountsChanged",this.accounts)):n.name==="chainChanged"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit("session_event",i)}),this.signer.on("chainChanged",i=>{const r=parseInt(i);this.chainId=r,this.events.emit("chainChanged",ac(this.chainId)),this.persist()}),this.signer.on("session_update",i=>{this.events.emit("session_update",i)}),this.signer.on("session_delete",i=>{this.reset(),this.events.emit("session_delete",i),this.events.emit("disconnect",Sl(ks({},tr("USER_DISCONNECTED")),{data:i.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",i=>{var r,n;this.rpc.showQrModal&&((r=this.modal)==null||r.closeModal(),(n=this.modal)==null||n.openModal({uri:i})),this.events.emit("display_uri",i)})}switchEthereumChain(i){this.request({method:"wallet_switchEthereumChain",params:[{chainId:i.toString(16)}]})}isCompatibleChainId(i){return typeof i=="string"?i.startsWith(`${this.namespace}:`):!1}formatChainId(i){return`${this.namespace}:${i}`}parseChainId(i){return Number(i.split(":")[1])}setChainIds(i){const r=i.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));r.length&&(this.chainId=r[0],this.events.emit("chainChanged",ac(this.chainId)),this.persist())}setChainId(i){if(this.isCompatibleChainId(i)){const r=this.parseChainId(i);this.chainId=r,this.switchEthereumChain(r)}}parseAccountId(i){const[r,n,a]=i.split(":");return{chainId:`${r}:${n}`,address:a}}setAccounts(i){this.accounts=i.filter(r=>this.parseChainId(this.parseAccountId(r).chainId)===this.chainId).map(r=>this.parseAccountId(r).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(i){var r,n;const a=(r=i==null?void 0:i.chains)!=null?r:[],l=(n=i==null?void 0:i.optionalChains)!=null?n:[],d=a.concat(l);if(!d.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const y=a.length?(i==null?void 0:i.methods)||pc:[],w=a.length?(i==null?void 0:i.events)||dc:[],v=(i==null?void 0:i.optionalMethods)||[],E=(i==null?void 0:i.optionalEvents)||[],C=(i==null?void 0:i.rpcMap)||this.buildRpcMap(d,i.projectId),T=(i==null?void 0:i.qrModalOptions)||void 0;return{chains:a==null?void 0:a.map(j=>this.formatChainId(j)),optionalChains:l.map(j=>this.formatChainId(j)),methods:y,events:w,optionalMethods:v,optionalEvents:E,rpcMap:C,showQrModal:!!(i!=null&&i.showQrModal),qrModalOptions:T,projectId:i.projectId,metadata:i.metadata}}buildRpcMap(i,r){const n={};return i.forEach(a=>{n[a]=this.getRpcUrl(a,r)}),n}async initialize(i){if(this.rpc=this.getRpcConfig(i),this.chainId=this.rpc.chains.length?da(this.rpc.chains):da(this.rpc.optionalChains),this.signer=await fE.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:i.disableProviderPing,relayUrl:i.relayUrl,storageOptions:i.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let r;try{const{WalletConnectModal:n}=await Am(()=>import("./index-9riKKNzS.js").then(a=>a.i),__vite__mapDeps([0,1,2]));r=n}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(r)try{this.modal=new r(ks({walletConnectVersion:2,projectId:this.rpc.projectId,standaloneChains:this.rpc.chains},this.rpc.qrModalOptions))}catch(n){throw this.signer.logger.error(n),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(i){if(!i)return;const{chains:r,optionalChains:n,rpcMap:a}=i;r&&fs(r)&&(this.rpc.chains=r.map(l=>this.formatChainId(l)),r.forEach(l=>{this.rpc.rpcMap[l]=(a==null?void 0:a[l])||this.getRpcUrl(l)})),n&&fs(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n==null?void 0:n.map(l=>this.formatChainId(l)),n.forEach(l=>{this.rpc.rpcMap[l]=(a==null?void 0:a[l])||this.getRpcUrl(l)}))}getRpcUrl(i,r){var n;return((n=this.rpc.rpcMap)==null?void 0:n[i])||`${vE}?chainId=eip155:${i}&projectId=${r||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;const i=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),r=this.session.namespaces[`${this.namespace}:${i}`]?this.session.namespaces[`${this.namespace}:${i}`]:this.session.namespaces[this.namespace];this.setChainIds(i?[this.formatChainId(i)]:r==null?void 0:r.accounts),this.setAccounts(r==null?void 0:r.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(i){return typeof i=="string"||i instanceof String?[this.parseAccount(i)]:i.map(r=>this.parseAccount(r))}}const zE=Sc;export{zE as EthereumProvider,mE as OPTIONAL_EVENTS,yE as OPTIONAL_METHODS,dc as REQUIRED_EVENTS,pc as REQUIRED_METHODS,Sc as default}; +}`;var we=Ih(function(){return De(p,ee+"return "+H).apply(r,m)});if(we.source=H,$o(we))throw we;return we}function Qy(e){return qe(e).toLowerCase()}function Yy(e){return qe(e).toUpperCase()}function Xy(e,t,s){if(e=qe(e),e&&(s||t===r))return Nc(e);if(!e||!(t=pr(t)))return e;var o=Rr(e),h=Rr(t),p=$c(o,h),m=Dc(o,h)+1;return vi(o,p,m).join("")}function Zy(e,t,s){if(e=qe(e),e&&(s||t===r))return e.slice(0,qc(e)+1);if(!e||!(t=pr(t)))return e;var o=Rr(e),h=Dc(o,Rr(t))+1;return vi(o,0,h).join("")}function e0(e,t,s){if(e=qe(e),e&&(s||t===r))return e.replace(gt,"");if(!e||!(t=pr(t)))return e;var o=Rr(e),h=$c(o,Rr(t));return vi(o,h).join("")}function t0(e,t){var s=te,o=Ee;if(ct(t)){var h="separator"in t?t.separator:h;s="length"in t?ye(t.length):s,o="omission"in t?pr(t.omission):o}e=qe(e);var p=e.length;if(Yi(e)){var m=Rr(e);p=m.length}if(s>=p)return e;var _=s-Xi(o);if(_<1)return o;var P=m?vi(m,0,_).join(""):e.slice(0,_);if(h===r)return P+o;if(m&&(_+=P.length-_),Do(h)){if(e.slice(_).search(h)){var q,z=P;for(h.global||(h=Ja(h.source,qe(yr.exec(h))+"g")),h.lastIndex=0;q=h.exec(z);)var H=q.index;P=P.slice(0,H===r?_:H)}}else if(e.indexOf(pr(h),_)!=_){var G=P.lastIndexOf(h);G>-1&&(P=P.slice(0,G))}return P+o}function r0(e){return e=qe(e),e&<.test(e)?e.replace(oi,Af):e}var i0=ns(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),zo=xu("toUpperCase");function Eh(e,t,s){return e=qe(e),t=s?r:t,t===r?Sf(e)?Df(e):yf(e):e.match(t)||[]}var Ih=be(function(e,t){try{return Mt(e,r,t)}catch(s){return $o(s)?s:new le(s)}}),s0=Yr(function(e,t){return wr(t,function(s){s=Hr(s),Jr(e,s,Ao(e[s],e))}),e});function n0(e){var t=e==null?0:e.length,s=se();return e=t?it(e,function(o){if(typeof o[1]!="function")throw new _r(d);return[s(o[0]),o[1]]}):[],be(function(o){for(var h=-1;++hJ)return[];var s=B,o=Ft(e,B);t=se(t),e-=B;for(var h=Ba(o,t);++s0||t<0)?new Pe(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==r&&(t=ye(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},Pe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pe.prototype.toArray=function(){return this.take(B)},jr(Pe.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),h=f[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);h&&(f.prototype[t]=function(){var m=this.__wrapped__,_=o?[1]:arguments,P=m instanceof Pe,q=_[0],z=P||ge(m),H=function(Ie){var Ce=h.apply(f,hi([Ie],_));return o&&G?Ce[0]:Ce};z&&s&&typeof q=="function"&&q.length!=1&&(P=z=!1);var G=this.__chain__,ee=!!this.__actions__.length,ne=p&&!G,we=P&&!ee;if(!p&&z){m=we?m:new Pe(this);var ae=e.apply(m,_);return ae.__actions__.push({func:Bn,args:[H],thisArg:r}),new br(ae,G)}return ne&&we?e.apply(this,_):(ae=this.thru(H),ne?o?ae.value()[0]:ae.value():ae)})}),wr(["pop","push","shift","sort","splice","unshift"],function(e){var t=mn[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var h=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(ge(p)?p:[],h)}return this[s](function(m){return t.apply(ge(m)?m:[],h)})}}),jr(Pe.prototype,function(e,t){var s=f[t];if(s){var o=s.name+"";Me.call(rs,o)||(rs[o]=[]),rs[o].push({name:t,func:s})}}),rs[jn(r,ce).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=rp,Pe.prototype.reverse=ip,Pe.prototype.value=sp,f.prototype.at=$g,f.prototype.chain=Dg,f.prototype.commit=Lg,f.prototype.next=qg,f.prototype.plant=Mg,f.prototype.reverse=jg,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=Ug,f.prototype.first=f.prototype.head,ws&&(f.prototype[ws]=zg),f},Zi=Lf();_t?((_t.exports=Zi)._=Zi,Be._=Zi):Se._=Zi}).call(js)})(fc,fc.exports);var Kb=Object.defineProperty,Vb=Object.defineProperties,Fb=Object.getOwnPropertyDescriptors,wl=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,Gb=Object.prototype.propertyIsEnumerable,_l=(c,i,r)=>i in c?Kb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,na=(c,i)=>{for(var r in i||(i={}))Bb.call(i,r)&&_l(c,r,i[r]);if(wl)for(var r of wl(i))Gb.call(i,r)&&_l(c,r,i[r]);return c},Wb=(c,i)=>Vb(c,Fb(i));function Ei(c,i,r){var n;const a=Rm(c);return((n=i.rpcMap)==null?void 0:n[a.reference])||`${kb}?chainId=${a.namespace}:${a.reference}&projectId=${r}`}function ki(c){return c.includes(":")?c.split(":")[1]:c}function hf(c){return c.map(i=>`${i.split(":")[0]}:${i.split(":")[1]}`)}function Jb(c,i){const r=Object.keys(i.namespaces).filter(a=>a.includes(c));if(!r.length)return[];const n=[];return r.forEach(a=>{const l=i.namespaces[a].accounts;n.push(...l)}),n}function Qb(c={},i={}){const r=bl(c),n=bl(i);return fc.exports.merge(r,n)}function bl(c){var i,r,n,a;const l={};if(!ca(c))return l;for(const[d,y]of Object.entries(c)){const w=Dl(d)?[d]:y.chains,v=y.methods||[],E=y.events||[],C=y.rpcMap||{},T=Us(d);l[T]=Wb(na(na({},l[T]),y),{chains:Fo(w,(i=l[T])==null?void 0:i.chains),methods:Fo(v,(r=l[T])==null?void 0:r.methods),events:Fo(E,(n=l[T])==null?void 0:n.events),rpcMap:na(na({},C),(a=l[T])==null?void 0:a.rpcMap)})}return l}function Yb(c){return c.includes(":")?c.split(":")[2]:c}function Xb(c){const i={};for(const[r,n]of Object.entries(c)){const a=n.methods||[],l=n.events||[],d=n.accounts||[],y=Dl(r)?[r]:n.chains?n.chains:hf(n.accounts);i[r]={chains:y,methods:a,events:l,accounts:d}}return i}function ic(c){return typeof c=="number"?c:c.includes("0x")?parseInt(c,16):c.includes(":")?Number(c.split(":")[1]):Number(c)}const lf={},st=c=>lf[c],sc=(c,i)=>{lf[c]=i};class Zb{constructor(i){this.name="polkadot",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getAccounts(){const i=this.namespace.accounts;return i?i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2])||[]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class eE{constructor(i){this.name="eip155",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(i){switch(i.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(i);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(i.request.method)?await this.client.request(i):this.getHttpProvider().request(i.request)}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(parseInt(i),r),this.chainId=parseInt(i),this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}createHttpProvider(i,r){const n=r||Ei(`${this.name}:${i}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=parseInt(ki(r));i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}getHttpProvider(){const i=this.chainId,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}async handleSwitchChain(i){var r,n;let a=i.request.params?(r=i.request.params[0])==null?void 0:r.chainId:"0x0";a=a.startsWith("0x")?a:`0x${a}`;const l=parseInt(a,16);if(this.isChainApproved(l))this.setDefaultChain(`${l}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:i.topic,request:{method:i.request.method,params:[{chainId:a}]},chainId:(n=this.namespace.chains)==null?void 0:n[0]}),this.setDefaultChain(`${l}`);else throw new Error(`Failed to switch to chain 'eip155:${l}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(i){return this.namespace.chains.includes(`${this.name}:${i}`)}}class tE{constructor(i){this.name="solana",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class rE{constructor(i){this.name="cosmos",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class iE{constructor(i){this.name="cip34",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{const n=this.getCardanoRPCUrl(r),a=ki(r);i[a]=this.createHttpProvider(a,n)}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}getCardanoRPCUrl(i){const r=this.namespace.rpcMap;if(r)return r[i]}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||this.getCardanoRPCUrl(i);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class sE{constructor(i){this.name="elrond",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class nE{constructor(i){this.name="multiversx",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const a=ki(r);i[a]=this.createHttpProvider(a,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);return new ni(new Ii(n,st("disableProviderPing")))}}class aE{constructor(i){this.name="near",this.namespace=i.namespace,this.events=st("events"),this.client=st("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){if(this.chainId=i,!this.httpProviders[i]){const n=r||Ei(`${this.name}:${i}`,this.namespace);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);this.setHttpProvider(i,n)}this.events.emit(ai.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2])||[]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;i[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Ei(i,this.namespace);return typeof n>"u"?void 0:new ni(new Ii(n,st("disableProviderPing")))}}var oE=Object.defineProperty,cE=Object.defineProperties,uE=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,hE=Object.prototype.hasOwnProperty,lE=Object.prototype.propertyIsEnumerable,Il=(c,i,r)=>i in c?oE(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,aa=(c,i)=>{for(var r in i||(i={}))hE.call(i,r)&&Il(c,r,i[r]);if(El)for(var r of El(i))lE.call(i,r)&&Il(c,r,i[r]);return c},nc=(c,i)=>cE(c,uE(i));class Pc{constructor(i){this.events=new vc,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=i,this.logger=typeof(i==null?void 0:i.logger)<"u"&&typeof(i==null?void 0:i.logger)!="string"?i.logger:Oe.pino(Oe.getDefaultLoggerOptions({level:(i==null?void 0:i.logger)||yl})),this.disableProviderPing=(i==null?void 0:i.disableProviderPing)||!1}static async init(i){const r=new Pc(i);return await r.initialize(),r}async request(i,r){const[n,a]=this.validateChain(r);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:aa({},i),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(i,r,n){this.request(i,n).then(a=>r(null,a)).catch(a=>r(a,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var i;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(i=this.session)==null?void 0:i.topic,reason:tr("USER_DISCONNECTED")}),await this.cleanup()}async connect(i){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(i),await this.cleanupPendingPairings(),!i.skipPairing)return await this.pair(i.pairingTopic)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}removeListener(i,r){this.events.removeListener(i,r)}off(i,r){this.events.off(i,r)}get isWalletConnect(){return!0}async pair(i){this.shouldAbortPairingAttempt=!1;let r=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(r>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:n,approval:a}=await this.client.connect({pairingTopic:i,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(l=>{this.session=l,this.namespaces||(this.namespaces=Xb(l.namespaces),this.persist("namespaces",this.namespaces))}).catch(l=>{if(l.message!==cf)throw l;r++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(i,r){try{if(!this.session)return;const[n,a]=this.validateChain(i);this.getProvider(n).setDefaultChain(a,r)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(i={}){this.logger.info("Cleaning up inactive pairings...");const r=this.client.pairing.getAll();if(fs(r)){for(const n of r)i.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${r.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const i=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[i]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await Mb.init({logger:this.providerOpts.logger||yl,relayUrl:this.providerOpts.relayUrl||jb,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const i=[...new Set(Object.keys(this.session.namespaces).map(r=>Us(r)))];sc("client",this.client),sc("events",this.events),sc("disableProviderPing",this.disableProviderPing),i.forEach(r=>{if(!this.session)return;const n=Jb(r,this.session),a=hf(n),l=Qb(this.namespaces,this.optionalNamespaces),d=nc(aa({},l[r]),{accounts:n,chains:a});switch(r){case"eip155":this.rpcProviders[r]=new eE({namespace:d});break;case"solana":this.rpcProviders[r]=new tE({namespace:d});break;case"cosmos":this.rpcProviders[r]=new rE({namespace:d});break;case"polkadot":this.rpcProviders[r]=new Zb({namespace:d});break;case"cip34":this.rpcProviders[r]=new iE({namespace:d});break;case"elrond":this.rpcProviders[r]=new sE({namespace:d});break;case"multiversx":this.rpcProviders[r]=new nE({namespace:d});break;case"near":this.rpcProviders[r]=new aE({namespace:d});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",i=>{this.events.emit("session_ping",i)}),this.client.on("session_event",i=>{const{params:r}=i,{event:n}=r;if(n.name==="accountsChanged"){const a=n.data;a&&fs(a)&&this.events.emit("accountsChanged",a.map(Yb))}else if(n.name==="chainChanged"){const a=r.chainId,l=r.event.data,d=Us(a),y=ic(a)!==ic(l)?`${d}:${ic(l)}`:a;this.onChainChanged(y)}else this.events.emit(n.name,n.data);this.events.emit("session_event",i)}),this.client.on("session_update",({topic:i,params:r})=>{var n;const{namespaces:a}=r,l=(n=this.client)==null?void 0:n.session.get(i);this.session=nc(aa({},l),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:i,params:r})}),this.client.on("session_delete",async i=>{await this.cleanup(),this.events.emit("session_delete",i),this.events.emit("disconnect",nc(aa({},tr("USER_DISCONNECTED")),{data:i.topic}))}),this.on(ai.DEFAULT_CHAIN_CHANGED,i=>{this.onChainChanged(i,!0)})}getProvider(i){if(!this.rpcProviders[i])throw new Error(`Provider not found: ${i}`);return this.rpcProviders[i]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(i=>{var r;this.getProvider(i).updateNamespace((r=this.session)==null?void 0:r.namespaces[i])})}setNamespaces(i){const{namespaces:r,optionalNamespaces:n,sessionProperties:a}=i;r&&Object.keys(r).length&&(this.namespaces=r),n&&Object.keys(n).length&&(this.optionalNamespaces=n),this.sessionProperties=a,this.persist("namespaces",r),this.persist("optionalNamespaces",n)}validateChain(i){const[r,n]=(i==null?void 0:i.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[r,n];if(r&&!Object.keys(this.namespaces||{}).map(d=>Us(d)).includes(r))throw new Error(`Namespace '${r}' is not configured. Please call connect() first with namespace config.`);if(r&&n)return[r,n];const a=Us(Object.keys(this.namespaces)[0]),l=this.rpcProviders[a].getDefaultChain();return[a,l]}async requestAccounts(){const[i]=this.validateChain();return await this.getProvider(i).requestAccounts()}onChainChanged(i,r=!1){var n;if(!this.namespaces)return;const[a,l]=this.validateChain(i);r||this.getProvider(a).setDefaultChain(l),((n=this.namespaces[a])!=null?n:this.namespaces[`${a}:${l}`]).defaultChain=l,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",l)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(i,r){this.client.core.storage.setItem(`${ml}/${i}`,r)}async getFromStore(i){return await this.client.core.storage.getItem(`${ml}/${i}`)}}const fE=Pc,pE="wc",dE="ethereum_provider",gE=`${pE}@2:${dE}:`,vE="https://rpc.walletconnect.com/v1/",pc=["eth_sendTransaction","personal_sign"],yE=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],dc=["chainChanged","accountsChanged"],mE=["chainChanged","accountsChanged","message","disconnect","connect"];var wE=Object.defineProperty,_E=Object.defineProperties,bE=Object.getOwnPropertyDescriptors,xl=Object.getOwnPropertySymbols,EE=Object.prototype.hasOwnProperty,IE=Object.prototype.propertyIsEnumerable,Pl=(c,i,r)=>i in c?wE(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,ks=(c,i)=>{for(var r in i||(i={}))EE.call(i,r)&&Pl(c,r,i[r]);if(xl)for(var r of xl(i))IE.call(i,r)&&Pl(c,r,i[r]);return c},Sl=(c,i)=>_E(c,bE(i));function da(c){return Number(c[0].split(":")[1])}function ac(c){return`0x${c.toString(16)}`}function xE(c){const{chains:i,optionalChains:r,methods:n,optionalMethods:a,events:l,optionalEvents:d,rpcMap:y}=c;if(!fs(i))throw new Error("Invalid chains");const w={chains:i,methods:n||pc,events:l||dc,rpcMap:ks({},i.length?{[da(i)]:y[da(i)]}:{})},v=l==null?void 0:l.filter(j=>!dc.includes(j)),E=n==null?void 0:n.filter(j=>!pc.includes(j));if(!r&&!d&&!a&&!(v!=null&&v.length)&&!(E!=null&&E.length))return{required:i.length?w:void 0};const C=(v==null?void 0:v.length)&&(E==null?void 0:E.length)||!r,T={chains:[...new Set(C?w.chains.concat(r||[]):r)],methods:[...new Set(w.methods.concat(a!=null&&a.length?a:yE))],events:[...new Set(w.events.concat(d!=null&&d.length?d:mE))],rpcMap:y};return{required:i.length?w:void 0,optional:r.length?T:void 0}}class Sc{constructor(){this.events=new Kr.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=gE,this.on=(i,r)=>(this.events.on(i,r),this),this.once=(i,r)=>(this.events.once(i,r),this),this.removeListener=(i,r)=>(this.events.removeListener(i,r),this),this.off=(i,r)=>(this.events.off(i,r),this),this.parseAccount=i=>this.isCompatibleChainId(i)?this.parseAccountId(i).address:i,this.signer={},this.rpc={}}static async init(i){const r=new Sc;return await r.initialize(i),r}async request(i){return await this.signer.request(i,this.formatChainId(this.chainId))}sendAsync(i,r){this.signer.sendAsync(i,r,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(i){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(i);const{required:r,optional:n}=xE(this.rpc);try{const a=await new Promise(async(d,y)=>{var w;this.rpc.showQrModal&&((w=this.modal)==null||w.subscribeModal(v=>{!v.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),y(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(Sl(ks({namespaces:ks({},r&&{[this.namespace]:r})},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:i==null?void 0:i.pairingTopic})).then(v=>{d(v)}).catch(v=>{y(new Error(v.message))})});if(!a)return;const l=Tm(a.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:l),this.setAccounts(l),this.events.emit("connect",{chainId:ac(this.chainId)})}catch(a){throw this.signer.logger.error(a),a}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",i=>{const{params:r}=i,{event:n}=r;n.name==="accountsChanged"?(this.accounts=this.parseAccounts(n.data),this.events.emit("accountsChanged",this.accounts)):n.name==="chainChanged"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit("session_event",i)}),this.signer.on("chainChanged",i=>{const r=parseInt(i);this.chainId=r,this.events.emit("chainChanged",ac(this.chainId)),this.persist()}),this.signer.on("session_update",i=>{this.events.emit("session_update",i)}),this.signer.on("session_delete",i=>{this.reset(),this.events.emit("session_delete",i),this.events.emit("disconnect",Sl(ks({},tr("USER_DISCONNECTED")),{data:i.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",i=>{var r,n;this.rpc.showQrModal&&((r=this.modal)==null||r.closeModal(),(n=this.modal)==null||n.openModal({uri:i})),this.events.emit("display_uri",i)})}switchEthereumChain(i){this.request({method:"wallet_switchEthereumChain",params:[{chainId:i.toString(16)}]})}isCompatibleChainId(i){return typeof i=="string"?i.startsWith(`${this.namespace}:`):!1}formatChainId(i){return`${this.namespace}:${i}`}parseChainId(i){return Number(i.split(":")[1])}setChainIds(i){const r=i.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));r.length&&(this.chainId=r[0],this.events.emit("chainChanged",ac(this.chainId)),this.persist())}setChainId(i){if(this.isCompatibleChainId(i)){const r=this.parseChainId(i);this.chainId=r,this.switchEthereumChain(r)}}parseAccountId(i){const[r,n,a]=i.split(":");return{chainId:`${r}:${n}`,address:a}}setAccounts(i){this.accounts=i.filter(r=>this.parseChainId(this.parseAccountId(r).chainId)===this.chainId).map(r=>this.parseAccountId(r).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(i){var r,n;const a=(r=i==null?void 0:i.chains)!=null?r:[],l=(n=i==null?void 0:i.optionalChains)!=null?n:[],d=a.concat(l);if(!d.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const y=a.length?(i==null?void 0:i.methods)||pc:[],w=a.length?(i==null?void 0:i.events)||dc:[],v=(i==null?void 0:i.optionalMethods)||[],E=(i==null?void 0:i.optionalEvents)||[],C=(i==null?void 0:i.rpcMap)||this.buildRpcMap(d,i.projectId),T=(i==null?void 0:i.qrModalOptions)||void 0;return{chains:a==null?void 0:a.map(j=>this.formatChainId(j)),optionalChains:l.map(j=>this.formatChainId(j)),methods:y,events:w,optionalMethods:v,optionalEvents:E,rpcMap:C,showQrModal:!!(i!=null&&i.showQrModal),qrModalOptions:T,projectId:i.projectId,metadata:i.metadata}}buildRpcMap(i,r){const n={};return i.forEach(a=>{n[a]=this.getRpcUrl(a,r)}),n}async initialize(i){if(this.rpc=this.getRpcConfig(i),this.chainId=this.rpc.chains.length?da(this.rpc.chains):da(this.rpc.optionalChains),this.signer=await fE.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:i.disableProviderPing,relayUrl:i.relayUrl,storageOptions:i.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let r;try{const{WalletConnectModal:n}=await Am(()=>import("./index-3VXKPAHU.js").then(a=>a.i),__vite__mapDeps([0,1,2]));r=n}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(r)try{this.modal=new r(ks({walletConnectVersion:2,projectId:this.rpc.projectId,standaloneChains:this.rpc.chains},this.rpc.qrModalOptions))}catch(n){throw this.signer.logger.error(n),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(i){if(!i)return;const{chains:r,optionalChains:n,rpcMap:a}=i;r&&fs(r)&&(this.rpc.chains=r.map(l=>this.formatChainId(l)),r.forEach(l=>{this.rpc.rpcMap[l]=(a==null?void 0:a[l])||this.getRpcUrl(l)})),n&&fs(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n==null?void 0:n.map(l=>this.formatChainId(l)),n.forEach(l=>{this.rpc.rpcMap[l]=(a==null?void 0:a[l])||this.getRpcUrl(l)}))}getRpcUrl(i,r){var n;return((n=this.rpc.rpcMap)==null?void 0:n[i])||`${vE}?chainId=eip155:${i}&projectId=${r||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;const i=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),r=this.session.namespaces[`${this.namespace}:${i}`]?this.session.namespaces[`${this.namespace}:${i}`]:this.session.namespaces[this.namespace];this.setChainIds(i?[this.formatChainId(i)]:r==null?void 0:r.accounts),this.setAccounts(r==null?void 0:r.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(i){return typeof i=="string"||i instanceof String?[this.parseAccount(i)]:i.map(r=>this.parseAccount(r))}}const zE=Sc;export{zE as EthereumProvider,mE as OPTIONAL_EVENTS,yE as OPTIONAL_METHODS,dc as REQUIRED_EVENTS,pc as REQUIRED_METHODS,Sc as default}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-9riKKNzS.js","assets/index-Gnz09uoc.js","assets/index-bI5pgBhQ.css"] + __vite__mapDeps.viteFileDeps = ["assets/index-3VXKPAHU.js","assets/index-0aC6Xlgc.js","assets/index-bI5pgBhQ.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/index.html b/index.html index d3f3556..7f14c40 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Narpet - +