@reown/appkit-cdn 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/{W3MFrameProviderSingleton-BpWUndnw.cjs → W3MFrameProviderSingleton-DqZPnx6B.cjs} +83 -83
  2. package/dist/{W3MFrameProviderSingleton-CuVI_88U.js → W3MFrameProviderSingleton-zbQ4ONFs.js} +1598 -1553
  3. package/dist/ethers.cjs +1 -1
  4. package/dist/ethers.js +3034 -2938
  5. package/dist/{hooks.module-C2zxEs4Z.js → hooks.module-DyR4RIBB.js} +1 -1
  6. package/dist/{hooks.module-BmccViTi.cjs → hooks.module-i4FRb7XO.cjs} +1 -1
  7. package/dist/{index-qHZ88Aei.cjs → index-Bn8aTBEA.cjs} +1 -1
  8. package/dist/{index-DIBheNE_.js → index-CEUqb47P.js} +43 -43
  9. package/dist/{index--u0BBJui.js → index-COp74Nlv.js} +10 -10
  10. package/dist/{index-B5dlb2GK.cjs → index-CZ0JZE3-.cjs} +1 -1
  11. package/dist/{index-CjczsdX0.js → index-CZTNKbSO.js} +2 -2
  12. package/dist/{index-CytFwM4F.cjs → index-Dfn2LY62.cjs} +1 -1
  13. package/dist/index-DoLWLaij.cjs +64 -0
  14. package/dist/{index-_fb0kPJf.js → index-DxEKvu_F.js} +1 -1
  15. package/dist/{index-DoNvH4sY.cjs → index-DxUwf3RH.cjs} +1 -1
  16. package/dist/{index-DxKsnlAL.cjs → index-FG_60MTM.cjs} +1 -1
  17. package/dist/{index-BGcCLdgU.js → index-KQ0ug1oF.js} +2 -2
  18. package/dist/{index-DTZ3zFoi.js → index-Obv6EKFg.js} +2 -2
  19. package/dist/{index-CEbNT_sk.cjs → index-UcSnSk_O.cjs} +1 -1
  20. package/dist/{index-BzzLy8QO.js → index-eRHpwmcb.js} +36 -36
  21. package/dist/{index-Cbfs_-YJ.js → index-ghwtTzEg.js} +5 -5
  22. package/dist/{index-e2XnZub2.cjs → index-mgWAnOON.cjs} +1 -1
  23. package/dist/{index.es-Dzy36BN7.js → index.es-BGqGHUjM.js} +249 -249
  24. package/dist/{index.es-wptiKBWB.cjs → index.es-D9jJiMUr.cjs} +2 -2
  25. package/dist/{metamask-sdk-vSsaK2qA.js → metamask-sdk-DvRJGKsF.js} +1 -1
  26. package/dist/{metamask-sdk-CH4ak2WC.cjs → metamask-sdk-h3UYWtaU.cjs} +1 -1
  27. package/dist/{native-DUnMHCku.cjs → native-DMERvs7m.cjs} +1 -1
  28. package/dist/{native-DZv9b0EL.js → native-Da5kImuF.js} +1 -1
  29. package/dist/{w3m-modal-Cb8iN1Y9.js → w3m-modal-5wuX5WJr.js} +55 -73
  30. package/dist/w3m-modal-CFTtpDDX.cjs +149 -0
  31. package/dist/{wagmi-Dnkdlm7T.js → wagmi-DrOzbDZW.js} +3914 -3796
  32. package/dist/{wagmi-Cz2I9r-O.cjs → wagmi-DwngeQQv.cjs} +14 -14
  33. package/dist/wagmi.cjs +1 -1
  34. package/dist/wagmi.js +2 -2
  35. package/package.json +5 -5
  36. package/dist/index-BgSdiVHK.cjs +0 -64
  37. package/dist/w3m-modal-pgEnMCmq.cjs +0 -149
@@ -1,4 +1,4 @@
1
- import { B as D, bc as tn, ba as Zt } from "./W3MFrameProviderSingleton-CuVI_88U.js";
1
+ import { B as D, bd as tn, bb as Zt } from "./W3MFrameProviderSingleton-zbQ4ONFs.js";
2
2
  const { Transform: xn } = tn;
3
3
  var $n = (t) => class en extends xn {
4
4
  constructor(n, _, o, i, c) {
@@ -1 +1 @@
1
- "use strict";const S=require("./W3MFrameProviderSingleton-BpWUndnw.cjs"),{Transform:wn}=S.readableBrowserExports;var Sn=t=>class Ze extends wn{constructor(n,_,o,i,c){super(c),this._rate=n,this._capacity=_,this._delimitedSuffix=o,this._hashBitLength=i,this._options=c,this._state=new t,this._state.initialize(n,_),this._finalized=!1}_transform(n,_,o){let i=null;try{this.update(n,_)}catch(c){i=c}o(i)}_flush(n){let _=null;try{this.push(this.digest())}catch(o){_=o}n(_)}update(n,_){if(!S.Buffer.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return S.Buffer.isBuffer(n)||(n=S.Buffer.from(n,_)),this._state.absorb(n),this}digest(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let _=this._state.squeeze(this._hashBitLength/8);return n!==void 0&&(_=_.toString(n)),this._resetState(),_}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new Ze(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}};const{Transform:xn}=S.readableBrowserExports;var $n=t=>class tn extends xn{constructor(n,_,o,i){super(i),this._rate=n,this._capacity=_,this._delimitedSuffix=o,this._options=i,this._state=new t,this._state.initialize(n,_),this._finalized=!1}_transform(n,_,o){let i=null;try{this.update(n,_)}catch(c){i=c}o(i)}_flush(){}_read(n){this.push(this.squeeze(n))}update(n,_){if(!S.Buffer.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return S.Buffer.isBuffer(n)||(n=S.Buffer.from(n,_)),this._state.absorb(n),this}squeeze(n,_){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let o=this._state.squeeze(n);return _!==void 0&&(o=o.toString(_)),o}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new tn(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}};const zn=Sn,Cn=$n;var En=function(t){const e=zn(t),n=Cn(t);return function(_,o){switch(typeof _=="string"?_.toLowerCase():_){case"keccak224":return new e(1152,448,null,224,o);case"keccak256":return new e(1088,512,null,256,o);case"keccak384":return new e(832,768,null,384,o);case"keccak512":return new e(576,1024,null,512,o);case"sha3-224":return new e(1152,448,6,224,o);case"sha3-256":return new e(1088,512,6,256,o);case"sha3-384":return new e(832,768,6,384,o);case"sha3-512":return new e(576,1024,6,512,o);case"shake128":return new n(1344,256,31,o);case"shake256":return new n(1088,512,31,o);default:throw new Error("Invald algorithm: "+_)}}},en={};const Me=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];en.p1600=function(t){for(let e=0;e<24;++e){const n=t[0]^t[10]^t[20]^t[30]^t[40],_=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],i=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],a=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],r=t[9]^t[19]^t[29]^t[39]^t[49];let f=h^(o<<1|i>>>31),s=r^(i<<1|o>>>31);const b=t[0]^f,k=t[1]^s,g=t[10]^f,p=t[11]^s,v=t[20]^f,C=t[21]^s,x=t[30]^f,P=t[31]^s,E=t[40]^f,L=t[41]^s;f=n^(c<<1|u>>>31),s=_^(u<<1|c>>>31);const H=t[2]^f,D=t[3]^s,w=t[12]^f,T=t[13]^s,oe=t[22]^f,ie=t[23]^s,re=t[32]^f,se=t[33]^s,ce=t[42]^f,ue=t[43]^s;f=o^(a<<1|l>>>31),s=i^(l<<1|a>>>31);const le=t[4]^f,fe=t[5]^s,ae=t[14]^f,he=t[15]^s,pe=t[24]^f,de=t[25]^s,ve=t[34]^f,me=t[35]^s,ye=t[44]^f,ge=t[45]^s;f=c^(h<<1|r>>>31),s=u^(r<<1|h>>>31);const be=t[6]^f,ke=t[7]^s,we=t[16]^f,Se=t[17]^s,xe=t[26]^f,$e=t[27]^s,ze=t[36]^f,Ce=t[37]^s,Ee=t[46]^f,Pe=t[47]^s;f=a^(n<<1|_>>>31),s=l^(_<<1|n>>>31);const He=t[8]^f,Te=t[9]^s,Be=t[18]^f,qe=t[19]^s,Ne=t[28]^f,De=t[29]^s,Ue=t[38]^f,Fe=t[39]^s,Le=t[48]^f,Ae=t[49]^s,J=b,Q=k,X=p<<4|g>>>28,Y=g<<4|p>>>28,Z=v<<3|C>>>29,tt=C<<3|v>>>29,et=P<<9|x>>>23,nt=x<<9|P>>>23,_t=E<<18|L>>>14,ot=L<<18|E>>>14,it=H<<1|D>>>31,rt=D<<1|H>>>31,st=T<<12|w>>>20,ct=w<<12|T>>>20,ut=oe<<10|ie>>>22,lt=ie<<10|oe>>>22,ft=se<<13|re>>>19,at=re<<13|se>>>19,ht=ce<<2|ue>>>30,pt=ue<<2|ce>>>30,dt=fe<<30|le>>>2,vt=le<<30|fe>>>2,mt=ae<<6|he>>>26,yt=he<<6|ae>>>26,gt=de<<11|pe>>>21,bt=pe<<11|de>>>21,kt=ve<<15|me>>>17,wt=me<<15|ve>>>17,St=ge<<29|ye>>>3,xt=ye<<29|ge>>>3,$t=be<<28|ke>>>4,zt=ke<<28|be>>>4,Ct=Se<<23|we>>>9,Et=we<<23|Se>>>9,Pt=xe<<25|$e>>>7,Ht=$e<<25|xe>>>7,Tt=ze<<21|Ce>>>11,Bt=Ce<<21|ze>>>11,qt=Pe<<24|Ee>>>8,Nt=Ee<<24|Pe>>>8,Dt=He<<27|Te>>>5,Ut=Te<<27|He>>>5,Ft=Be<<20|qe>>>12,Lt=qe<<20|Be>>>12,At=De<<7|Ne>>>25,Mt=Ne<<7|De>>>25,Wt=Ue<<8|Fe>>>24,Ot=Fe<<8|Ue>>>24,jt=Le<<14|Ae>>>18,It=Ae<<14|Le>>>18;t[0]=J^~st&gt,t[1]=Q^~ct&bt,t[10]=$t^~Ft&Z,t[11]=zt^~Lt&tt,t[20]=it^~mt&Pt,t[21]=rt^~yt&Ht,t[30]=Dt^~X&ut,t[31]=Ut^~Y&lt,t[40]=dt^~Ct&At,t[41]=vt^~Et&Mt,t[2]=st^~gt&Tt,t[3]=ct^~bt&Bt,t[12]=Ft^~Z&ft,t[13]=Lt^~tt&at,t[22]=mt^~Pt&Wt,t[23]=yt^~Ht&Ot,t[32]=X^~ut&kt,t[33]=Y^~lt&wt,t[42]=Ct^~At&et,t[43]=Et^~Mt&nt,t[4]=gt^~Tt&jt,t[5]=bt^~Bt&It,t[14]=Z^~ft&St,t[15]=tt^~at&xt,t[24]=Pt^~Wt&_t,t[25]=Ht^~Ot&ot,t[34]=ut^~kt&qt,t[35]=lt^~wt&Nt,t[44]=At^~et&ht,t[45]=Mt^~nt&pt,t[6]=Tt^~jt&J,t[7]=Bt^~It&Q,t[16]=ft^~St&$t,t[17]=at^~xt&zt,t[26]=Wt^~_t&it,t[27]=Ot^~ot&rt,t[36]=kt^~qt&Dt,t[37]=wt^~Nt&Ut,t[46]=et^~ht&dt,t[47]=nt^~pt&vt,t[8]=jt^~J&st,t[9]=It^~Q&ct,t[18]=St^~$t&Ft,t[19]=xt^~zt&Lt,t[28]=_t^~it&mt,t[29]=ot^~rt&yt,t[38]=qt^~Dt&X,t[39]=Nt^~Ut&Y,t[48]=ht^~dt&Ct,t[49]=pt^~vt&Et,t[0]^=Me[e*2],t[1]^=Me[e*2+1]}};const V=en;function F(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}F.prototype.initialize=function(t,e){for(let n=0;n<50;++n)this.state[n]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1};F.prototype.absorb=function(t){for(let e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(V.p1600(this.state),this.count=0)};F.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<8*(this.count%4),t&128&&this.count===this.blockSize-1&&V.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),V.p1600(this.state),this.count=0,this.squeezing=!0};F.prototype.squeeze=function(t){this.squeezing||this.absorbLastFewBits(1);const e=S.Buffer.alloc(t);for(let n=0;n<t;++n)e[n]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(V.p1600(this.state),this.count=0);return e};F.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing};var Pn=F,Hn=En(Pn);function nn(t){var e,n,_="";if(typeof t=="string"||typeof t=="number")_+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=nn(t[e]))&&(_&&(_+=" "),_+=n);else for(e in t)t[e]&&(_&&(_+=" "),_+=e);return _}function We(){for(var t,e,n=0,_="";n<arguments.length;)(t=arguments[n++])&&(e=nn(t))&&(_&&(_+=" "),_+=e);return _}const Tn=Object.freeze(Object.defineProperty({__proto__:null,clsx:We,default:We},Symbol.toStringTag,{value:"Module"})),Bn=S.getAugmentedNamespace(Tn);var O,m,_n,on,B,Oe,rn,Vt,Zt,Kt,Gt,sn,W={},cn=[],qn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,G=Array.isArray;function $(t,e){for(var n in e)t[n]=e[n];return t}function un(t){var e=t.parentNode;e&&e.removeChild(t)}function Jt(t,e,n){var _,o,i,c={};for(i in e)i=="key"?_=e[i]:i=="ref"?o=e[i]:c[i]=e[i];if(arguments.length>2&&(c.children=arguments.length>3?O.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)c[i]===void 0&&(c[i]=t.defaultProps[i]);return A(t,c,_,o,null)}function A(t,e,n,_,o){var i={type:t,props:e,key:n,ref:_,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++_n,__i:-1,__u:0};return o==null&&m.vnode!=null&&m.vnode(i),i}function Nn(){return{current:null}}function j(t){return t.children}function M(t,e){this.props=t,this.context=e}function q(t,e){if(e==null)return t.__?q(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?q(t):null}function ln(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return ln(t)}}function Qt(t){(!t.__d&&(t.__d=!0)&&B.push(t)&&!K.__r++||Oe!==m.debounceRendering)&&((Oe=m.debounceRendering)||rn)(K)}function K(){var t,e,n,_,o,i,c,u;for(B.sort(Vt);t=B.shift();)t.__d&&(e=B.length,_=void 0,i=(o=(n=t).__v).__e,c=[],u=[],n.__P&&((_=$({},o)).__v=o.__v+1,m.vnode&&m.vnode(_),te(n.__P,_,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,c,i??q(o),!!(32&o.__u),u),_.__v=o.__v,_.__.__k[_.__i]=_,pn(c,_,u),_.__e!=i&&ln(_)),B.length>e&&B.sort(Vt));K.__r=0}function fn(t,e,n,_,o,i,c,u,a,l,h){var r,f,s,b,k,g=_&&_.__k||cn,p=e.length;for(n.__d=a,Dn(n,e,g),a=n.__d,r=0;r<p;r++)(s=n.__k[r])!=null&&typeof s!="boolean"&&typeof s!="function"&&(f=s.__i===-1?W:g[s.__i]||W,s.__i=r,te(t,s,f,o,i,c,u,a,l,h),b=s.__e,s.ref&&f.ref!=s.ref&&(f.ref&&ee(f.ref,null,s),h.push(s.ref,s.__c||b,s)),k==null&&b!=null&&(k=b),65536&s.__u||f.__k===s.__k?a=an(s,a,t):typeof s.type=="function"&&s.__d!==void 0?a=s.__d:b&&(a=b.nextSibling),s.__d=void 0,s.__u&=-196609);n.__d=a,n.__e=k}function Dn(t,e,n){var _,o,i,c,u,a=e.length,l=n.length,h=l,r=0;for(t.__k=[],_=0;_<a;_++)c=_+r,(o=t.__k[_]=(o=e[_])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?A(null,o,null,null,null):G(o)?A(j,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?A(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=t,o.__b=t.__b+1,u=Un(o,n,c,h),o.__i=u,i=null,u!==-1&&(h--,(i=n[u])&&(i.__u|=131072)),i==null||i.__v===null?(u==-1&&r--,typeof o.type!="function"&&(o.__u|=65536)):u!==c&&(u==c-1?r--:u==c+1?r++:u>c?h>a-c?r+=u-c:r--:u<c&&(u==c-r?r-=u-c:r++),u!==_+r&&(o.__u|=65536))):(i=n[c])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=q(i)),Xt(i,i,!1),n[c]=null,h--);if(h)for(_=0;_<l;_++)(i=n[_])!=null&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=q(i)),Xt(i,i))}function an(t,e,n){var _,o;if(typeof t.type=="function"){for(_=t.__k,o=0;_&&o<_.length;o++)_[o]&&(_[o].__=t,e=an(_[o],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=q(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function hn(t,e){return e=e||[],t==null||typeof t=="boolean"||(G(t)?t.some(function(n){hn(n,e)}):e.push(t)),e}function Un(t,e,n,_){var o=t.key,i=t.type,c=n-1,u=n+1,a=e[n];if(a===null||a&&o==a.key&&i===a.type&&!(131072&a.__u))return n;if(_>(a!=null&&!(131072&a.__u)?1:0))for(;c>=0||u<e.length;){if(c>=0){if((a=e[c])&&!(131072&a.__u)&&o==a.key&&i===a.type)return c;c--}if(u<e.length){if((a=e[u])&&!(131072&a.__u)&&o==a.key&&i===a.type)return u;u++}}return-1}function je(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||qn.test(e)?n:n+"px"}function I(t,e,n,_,o){var i;t:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof _=="string"&&(t.style.cssText=_=""),_)for(e in _)n&&e in n||je(t.style,e,"");if(n)for(e in n)_&&n[e]===_[e]||je(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?_?n.u=_.u:(n.u=Zt,t.addEventListener(e,i?Gt:Kt,i)):t.removeEventListener(e,i?Gt:Kt,i);else{if(o=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break t}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function Ie(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=Zt++;else if(e.t<n.u)return;return n(m.event?m.event(e):e)}}}function te(t,e,n,_,o,i,c,u,a,l){var h,r,f,s,b,k,g,p,v,C,x,P,E,L,H,D,w=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(a=!!(32&n.__u),i=[u=e.__e=n.__e]),(h=m.__b)&&h(e);t:if(typeof w=="function")try{if(p=e.props,v="prototype"in w&&w.prototype.render,C=(h=w.contextType)&&_[h.__c],x=h?C?C.props.value:h.__:_,n.__c?g=(r=e.__c=n.__c).__=r.__E:(v?e.__c=r=new w(p,x):(e.__c=r=new M(p,x),r.constructor=w,r.render=Ln),C&&C.sub(r),r.props=p,r.state||(r.state={}),r.context=x,r.__n=_,f=r.__d=!0,r.__h=[],r._sb=[]),v&&r.__s==null&&(r.__s=r.state),v&&w.getDerivedStateFromProps!=null&&(r.__s==r.state&&(r.__s=$({},r.__s)),$(r.__s,w.getDerivedStateFromProps(p,r.__s))),s=r.props,b=r.state,r.__v=e,f)v&&w.getDerivedStateFromProps==null&&r.componentWillMount!=null&&r.componentWillMount(),v&&r.componentDidMount!=null&&r.__h.push(r.componentDidMount);else{if(v&&w.getDerivedStateFromProps==null&&p!==s&&r.componentWillReceiveProps!=null&&r.componentWillReceiveProps(p,x),!r.__e&&(r.shouldComponentUpdate!=null&&r.shouldComponentUpdate(p,r.__s,x)===!1||e.__v===n.__v)){for(e.__v!==n.__v&&(r.props=p,r.state=r.__s,r.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(T){T&&(T.__=e)}),P=0;P<r._sb.length;P++)r.__h.push(r._sb[P]);r._sb=[],r.__h.length&&c.push(r);break t}r.componentWillUpdate!=null&&r.componentWillUpdate(p,r.__s,x),v&&r.componentDidUpdate!=null&&r.__h.push(function(){r.componentDidUpdate(s,b,k)})}if(r.context=x,r.props=p,r.__P=t,r.__e=!1,E=m.__r,L=0,v){for(r.state=r.__s,r.__d=!1,E&&E(e),h=r.render(r.props,r.state,r.context),H=0;H<r._sb.length;H++)r.__h.push(r._sb[H]);r._sb=[]}else do r.__d=!1,E&&E(e),h=r.render(r.props,r.state,r.context),r.state=r.__s;while(r.__d&&++L<25);r.state=r.__s,r.getChildContext!=null&&(_=$($({},_),r.getChildContext())),v&&!f&&r.getSnapshotBeforeUpdate!=null&&(k=r.getSnapshotBeforeUpdate(s,b)),fn(t,G(D=h!=null&&h.type===j&&h.key==null?h.props.children:h)?D:[D],e,n,_,o,i,c,u,a,l),r.base=e.__e,e.__u&=-161,r.__h.length&&c.push(r),g&&(r.__E=r.__=null)}catch(T){if(e.__v=null,a||i!=null){for(e.__u|=a?160:32;u&&u.nodeType===8&&u.nextSibling;)u=u.nextSibling;i[i.indexOf(u)]=null,e.__e=u}else e.__e=n.__e,e.__k=n.__k;m.__e(T,e,n)}else i==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Fn(n.__e,e,n,_,o,i,c,a,l);(h=m.diffed)&&h(e)}function pn(t,e,n){e.__d=void 0;for(var _=0;_<n.length;_++)ee(n[_],n[++_],n[++_]);m.__c&&m.__c(e,t),t.some(function(o){try{t=o.__h,o.__h=[],t.some(function(i){i.call(o)})}catch(i){m.__e(i,o.__v)}})}function Fn(t,e,n,_,o,i,c,u,a){var l,h,r,f,s,b,k,g=n.props,p=e.props,v=e.type;if(v==="svg"?o="http://www.w3.org/2000/svg":v==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((s=i[l])&&"setAttribute"in s==!!v&&(v?s.localName===v:s.nodeType===3)){t=s,i[l]=null;break}}if(t==null){if(v===null)return document.createTextNode(p);t=document.createElementNS(o,v,p.is&&p),i=null,u=!1}if(v===null)g===p||u&&t.data===p||(t.data=p);else{if(i=i&&O.call(t.childNodes),g=n.props||W,!u&&i!=null)for(g={},l=0;l<t.attributes.length;l++)g[(s=t.attributes[l]).name]=s.value;for(l in g)if(s=g[l],l!="children"){if(l=="dangerouslySetInnerHTML")r=s;else if(l!=="key"&&!(l in p)){if(l=="value"&&"defaultValue"in p||l=="checked"&&"defaultChecked"in p)continue;I(t,l,null,s,o)}}for(l in p)s=p[l],l=="children"?f=s:l=="dangerouslySetInnerHTML"?h=s:l=="value"?b=s:l=="checked"?k=s:l==="key"||u&&typeof s!="function"||g[l]===s||I(t,l,s,g[l],o);if(h)u||r&&(h.__html===r.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),e.__k=[];else if(r&&(t.innerHTML=""),fn(t,G(f)?f:[f],e,n,_,v==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,c,i?i[0]:n.__k&&q(n,0),u,a),i!=null)for(l=i.length;l--;)i[l]!=null&&un(i[l]);u||(l="value",b!==void 0&&(b!==t[l]||v==="progress"&&!b||v==="option"&&b!==g[l])&&I(t,l,b,g[l],o),l="checked",k!==void 0&&k!==t[l]&&I(t,l,k,g[l],o))}return t}function ee(t,e,n){try{if(typeof t=="function"){var _=typeof t.__u=="function";_&&t.__u(),_&&e==null||(t.__u=t(e))}else t.current=e}catch(o){m.__e(o,n)}}function Xt(t,e,n){var _,o;if(m.unmount&&m.unmount(t),(_=t.ref)&&(_.current&&_.current!==t.__e||ee(_,null,e)),(_=t.__c)!=null){if(_.componentWillUnmount)try{_.componentWillUnmount()}catch(i){m.__e(i,e)}_.base=_.__P=null}if(_=t.__k)for(o=0;o<_.length;o++)_[o]&&Xt(_[o],e,n||typeof t.type!="function");n||t.__e==null||un(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function Ln(t,e,n){return this.constructor(t,n)}function dn(t,e,n){var _,o,i,c;m.__&&m.__(t,e),o=(_=typeof n=="function")?null:n&&n.__k||e.__k,i=[],c=[],te(e,t=(!_&&n||e).__k=Jt(j,null,[t]),o||W,W,e.namespaceURI,!_&&n?[n]:o?null:e.firstChild?O.call(e.childNodes):null,i,!_&&n?n:o?o.__e:e.firstChild,_,c),pn(i,t,c)}function vn(t,e){dn(t,e,vn)}function An(t,e,n){var _,o,i,c,u=$({},t.props);for(i in t.type&&t.type.defaultProps&&(c=t.type.defaultProps),e)i=="key"?_=e[i]:i=="ref"?o=e[i]:u[i]=e[i]===void 0&&c!==void 0?c[i]:e[i];return arguments.length>2&&(u.children=arguments.length>3?O.call(arguments,2):n),A(t.type,u,_||t.key,o||t.ref,null)}function Mn(t,e){var n={__c:e="__cC"+sn++,__:t,Consumer:function(_,o){return _.children(o)},Provider:function(_){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&o.some(function(u){u.__e=!0,Qt(u)})},this.sub=function(c){o.push(c);var u=c.componentWillUnmount;c.componentWillUnmount=function(){o&&o.splice(o.indexOf(c),1),u&&u.call(c)}}),_.children}};return n.Provider.__=n.Consumer.contextType=n}O=cn.slice,m={__e:function(t,e,n,_){for(var o,i,c;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(t)),c=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,_||{}),c=o.__d),c)return o.__E=o}catch(u){t=u}throw t}},_n=0,on=function(t){return t!=null&&t.constructor==null},M.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$({},this.state),typeof t=="function"&&(t=t($({},n),this.props)),t&&$(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Qt(this))},M.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Qt(this))},M.prototype.render=j,B=[],rn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vt=function(t,e){return t.__v.__b-e.__v.__b},K.__r=0,Zt=0,Kt=Ie(!1),Gt=Ie(!0),sn=0;const Wn=Object.freeze(Object.defineProperty({__proto__:null,Component:M,Fragment:j,cloneElement:An,createContext:Mn,createElement:Jt,createRef:Nn,h:Jt,hydrate:vn,get isValidElement(){return on},get options(){return m},render:dn,toChildArray:hn},Symbol.toStringTag,{value:"Module"})),On=S.getAugmentedNamespace(Wn);var z,d,Rt,Re,U=0,mn=[],y=m,Ve=y.__b,Ke=y.__r,Ge=y.diffed,Je=y.__c,Qe=y.unmount,Xe=y.__;function N(t,e){y.__h&&y.__h(d,t,U||e),U=0;var n=d.__H||(d.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function yn(t){return U=1,gn(kn,t)}function gn(t,e,n){var _=N(z++,2);if(_.t=t,!_.__c&&(_.__=[n?n(e):kn(void 0,e),function(u){var a=_.__N?_.__N[0]:_.__[0],l=_.t(a,u);a!==l&&(_.__N=[l,_.__[1]],_.__c.setState({}))}],_.__c=d,!d.u)){var o=function(u,a,l){if(!_.__c.__H)return!0;var h=_.__c.__H.__.filter(function(f){return!!f.__c});if(h.every(function(f){return!f.__N}))return!i||i.call(this,u,a,l);var r=!1;return h.forEach(function(f){if(f.__N){var s=f.__[0];f.__=f.__N,f.__N=void 0,s!==f.__[0]&&(r=!0)}}),!(!r&&_.__c.props===u)&&(!i||i.call(this,u,a,l))};d.u=!0;var i=d.shouldComponentUpdate,c=d.componentWillUpdate;d.componentWillUpdate=function(u,a,l){if(this.__e){var h=i;i=void 0,o(u,a,l),i=h}c&&c.call(this,u,a,l)},d.shouldComponentUpdate=o}return _.__N||_.__}function jn(t,e){var n=N(z++,3);!y.__s&&_e(n.__H,e)&&(n.__=t,n.i=e,d.__H.__h.push(n))}function bn(t,e){var n=N(z++,4);!y.__s&&_e(n.__H,e)&&(n.__=t,n.i=e,d.__h.push(n))}function In(t){return U=5,ne(function(){return{current:t}},[])}function Rn(t,e,n){U=6,bn(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},n==null?n:n.concat(t))}function ne(t,e){var n=N(z++,7);return _e(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Vn(t,e){return U=8,ne(function(){return t},e)}function Kn(t){var e=d.context[t.__c],n=N(z++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(d)),e.props.value):t.__}function Gn(t,e){y.useDebugValue&&y.useDebugValue(e?e(t):t)}function Jn(t){var e=N(z++,10),n=yn();return e.__=t,d.componentDidCatch||(d.componentDidCatch=function(_,o){e.__&&e.__(_,o),n[1](_)}),[n[0],function(){n[1](void 0)}]}function Qn(){var t=N(z++,11);if(!t.__){for(var e=d.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function Xn(){for(var t;t=mn.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(R),t.__H.__h.forEach(Yt),t.__H.__h=[]}catch(e){t.__H.__h=[],y.__e(e,t.__v)}}y.__b=function(t){d=null,Ve&&Ve(t)},y.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Xe&&Xe(t,e)},y.__r=function(t){Ke&&Ke(t),z=0;var e=(d=t.__c).__H;e&&(Rt===d?(e.__h=[],d.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(e.__h.forEach(R),e.__h.forEach(Yt),e.__h=[],z=0)),Rt=d},y.diffed=function(t){Ge&&Ge(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(mn.push(e)!==1&&Re===y.requestAnimationFrame||((Re=y.requestAnimationFrame)||Yn)(Xn)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Rt=d=null},y.__c=function(t,e){e.some(function(n){try{n.__h.forEach(R),n.__h=n.__h.filter(function(_){return!_.__||Yt(_)})}catch(_){e.some(function(o){o.__h&&(o.__h=[])}),e=[],y.__e(_,n.__v)}}),Je&&Je(t,e)},y.unmount=function(t){Qe&&Qe(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(_){try{R(_)}catch(o){e=o}}),n.__H=void 0,e&&y.__e(e,n.__v))};var Ye=typeof requestAnimationFrame=="function";function Yn(t){var e,n=function(){clearTimeout(_),Ye&&cancelAnimationFrame(e),setTimeout(t)},_=setTimeout(n,100);Ye&&(e=requestAnimationFrame(n))}function R(t){var e=d,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),d=e}function Yt(t){var e=d;t.__c=t.__(),d=e}function _e(t,e){return!t||t.length!==e.length||e.some(function(n,_){return n!==t[_]})}function kn(t,e){return typeof e=="function"?e(t):e}const Zn=Object.freeze(Object.defineProperty({__proto__:null,useCallback:Vn,useContext:Kn,useDebugValue:Gn,useEffect:jn,useErrorBoundary:Jn,useId:Qn,useImperativeHandle:Rn,useLayoutEffect:bn,useMemo:ne,useReducer:gn,useRef:In,useState:yn},Symbol.toStringTag,{value:"Module"})),t_=S.getAugmentedNamespace(Zn);exports.js=Hn;exports.require$$0=Bn;exports.require$$1=On;exports.require$$2=t_;
1
+ "use strict";const S=require("./W3MFrameProviderSingleton-DqZPnx6B.cjs"),{Transform:wn}=S.readableBrowserExports;var Sn=t=>class Ze extends wn{constructor(n,_,o,i,c){super(c),this._rate=n,this._capacity=_,this._delimitedSuffix=o,this._hashBitLength=i,this._options=c,this._state=new t,this._state.initialize(n,_),this._finalized=!1}_transform(n,_,o){let i=null;try{this.update(n,_)}catch(c){i=c}o(i)}_flush(n){let _=null;try{this.push(this.digest())}catch(o){_=o}n(_)}update(n,_){if(!S.Buffer.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return S.Buffer.isBuffer(n)||(n=S.Buffer.from(n,_)),this._state.absorb(n),this}digest(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let _=this._state.squeeze(this._hashBitLength/8);return n!==void 0&&(_=_.toString(n)),this._resetState(),_}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new Ze(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}};const{Transform:xn}=S.readableBrowserExports;var $n=t=>class tn extends xn{constructor(n,_,o,i){super(i),this._rate=n,this._capacity=_,this._delimitedSuffix=o,this._options=i,this._state=new t,this._state.initialize(n,_),this._finalized=!1}_transform(n,_,o){let i=null;try{this.update(n,_)}catch(c){i=c}o(i)}_flush(){}_read(n){this.push(this.squeeze(n))}update(n,_){if(!S.Buffer.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return S.Buffer.isBuffer(n)||(n=S.Buffer.from(n,_)),this._state.absorb(n),this}squeeze(n,_){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let o=this._state.squeeze(n);return _!==void 0&&(o=o.toString(_)),o}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new tn(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}};const zn=Sn,Cn=$n;var En=function(t){const e=zn(t),n=Cn(t);return function(_,o){switch(typeof _=="string"?_.toLowerCase():_){case"keccak224":return new e(1152,448,null,224,o);case"keccak256":return new e(1088,512,null,256,o);case"keccak384":return new e(832,768,null,384,o);case"keccak512":return new e(576,1024,null,512,o);case"sha3-224":return new e(1152,448,6,224,o);case"sha3-256":return new e(1088,512,6,256,o);case"sha3-384":return new e(832,768,6,384,o);case"sha3-512":return new e(576,1024,6,512,o);case"shake128":return new n(1344,256,31,o);case"shake256":return new n(1088,512,31,o);default:throw new Error("Invald algorithm: "+_)}}},en={};const Me=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];en.p1600=function(t){for(let e=0;e<24;++e){const n=t[0]^t[10]^t[20]^t[30]^t[40],_=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],i=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],a=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],r=t[9]^t[19]^t[29]^t[39]^t[49];let f=h^(o<<1|i>>>31),s=r^(i<<1|o>>>31);const b=t[0]^f,k=t[1]^s,g=t[10]^f,p=t[11]^s,v=t[20]^f,C=t[21]^s,x=t[30]^f,P=t[31]^s,E=t[40]^f,L=t[41]^s;f=n^(c<<1|u>>>31),s=_^(u<<1|c>>>31);const H=t[2]^f,D=t[3]^s,w=t[12]^f,T=t[13]^s,oe=t[22]^f,ie=t[23]^s,re=t[32]^f,se=t[33]^s,ce=t[42]^f,ue=t[43]^s;f=o^(a<<1|l>>>31),s=i^(l<<1|a>>>31);const le=t[4]^f,fe=t[5]^s,ae=t[14]^f,he=t[15]^s,pe=t[24]^f,de=t[25]^s,ve=t[34]^f,me=t[35]^s,ye=t[44]^f,ge=t[45]^s;f=c^(h<<1|r>>>31),s=u^(r<<1|h>>>31);const be=t[6]^f,ke=t[7]^s,we=t[16]^f,Se=t[17]^s,xe=t[26]^f,$e=t[27]^s,ze=t[36]^f,Ce=t[37]^s,Ee=t[46]^f,Pe=t[47]^s;f=a^(n<<1|_>>>31),s=l^(_<<1|n>>>31);const He=t[8]^f,Te=t[9]^s,Be=t[18]^f,qe=t[19]^s,Ne=t[28]^f,De=t[29]^s,Ue=t[38]^f,Fe=t[39]^s,Le=t[48]^f,Ae=t[49]^s,J=b,Q=k,X=p<<4|g>>>28,Y=g<<4|p>>>28,Z=v<<3|C>>>29,tt=C<<3|v>>>29,et=P<<9|x>>>23,nt=x<<9|P>>>23,_t=E<<18|L>>>14,ot=L<<18|E>>>14,it=H<<1|D>>>31,rt=D<<1|H>>>31,st=T<<12|w>>>20,ct=w<<12|T>>>20,ut=oe<<10|ie>>>22,lt=ie<<10|oe>>>22,ft=se<<13|re>>>19,at=re<<13|se>>>19,ht=ce<<2|ue>>>30,pt=ue<<2|ce>>>30,dt=fe<<30|le>>>2,vt=le<<30|fe>>>2,mt=ae<<6|he>>>26,yt=he<<6|ae>>>26,gt=de<<11|pe>>>21,bt=pe<<11|de>>>21,kt=ve<<15|me>>>17,wt=me<<15|ve>>>17,St=ge<<29|ye>>>3,xt=ye<<29|ge>>>3,$t=be<<28|ke>>>4,zt=ke<<28|be>>>4,Ct=Se<<23|we>>>9,Et=we<<23|Se>>>9,Pt=xe<<25|$e>>>7,Ht=$e<<25|xe>>>7,Tt=ze<<21|Ce>>>11,Bt=Ce<<21|ze>>>11,qt=Pe<<24|Ee>>>8,Nt=Ee<<24|Pe>>>8,Dt=He<<27|Te>>>5,Ut=Te<<27|He>>>5,Ft=Be<<20|qe>>>12,Lt=qe<<20|Be>>>12,At=De<<7|Ne>>>25,Mt=Ne<<7|De>>>25,Wt=Ue<<8|Fe>>>24,Ot=Fe<<8|Ue>>>24,jt=Le<<14|Ae>>>18,It=Ae<<14|Le>>>18;t[0]=J^~st&gt,t[1]=Q^~ct&bt,t[10]=$t^~Ft&Z,t[11]=zt^~Lt&tt,t[20]=it^~mt&Pt,t[21]=rt^~yt&Ht,t[30]=Dt^~X&ut,t[31]=Ut^~Y&lt,t[40]=dt^~Ct&At,t[41]=vt^~Et&Mt,t[2]=st^~gt&Tt,t[3]=ct^~bt&Bt,t[12]=Ft^~Z&ft,t[13]=Lt^~tt&at,t[22]=mt^~Pt&Wt,t[23]=yt^~Ht&Ot,t[32]=X^~ut&kt,t[33]=Y^~lt&wt,t[42]=Ct^~At&et,t[43]=Et^~Mt&nt,t[4]=gt^~Tt&jt,t[5]=bt^~Bt&It,t[14]=Z^~ft&St,t[15]=tt^~at&xt,t[24]=Pt^~Wt&_t,t[25]=Ht^~Ot&ot,t[34]=ut^~kt&qt,t[35]=lt^~wt&Nt,t[44]=At^~et&ht,t[45]=Mt^~nt&pt,t[6]=Tt^~jt&J,t[7]=Bt^~It&Q,t[16]=ft^~St&$t,t[17]=at^~xt&zt,t[26]=Wt^~_t&it,t[27]=Ot^~ot&rt,t[36]=kt^~qt&Dt,t[37]=wt^~Nt&Ut,t[46]=et^~ht&dt,t[47]=nt^~pt&vt,t[8]=jt^~J&st,t[9]=It^~Q&ct,t[18]=St^~$t&Ft,t[19]=xt^~zt&Lt,t[28]=_t^~it&mt,t[29]=ot^~rt&yt,t[38]=qt^~Dt&X,t[39]=Nt^~Ut&Y,t[48]=ht^~dt&Ct,t[49]=pt^~vt&Et,t[0]^=Me[e*2],t[1]^=Me[e*2+1]}};const V=en;function F(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}F.prototype.initialize=function(t,e){for(let n=0;n<50;++n)this.state[n]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1};F.prototype.absorb=function(t){for(let e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(V.p1600(this.state),this.count=0)};F.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<8*(this.count%4),t&128&&this.count===this.blockSize-1&&V.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),V.p1600(this.state),this.count=0,this.squeezing=!0};F.prototype.squeeze=function(t){this.squeezing||this.absorbLastFewBits(1);const e=S.Buffer.alloc(t);for(let n=0;n<t;++n)e[n]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(V.p1600(this.state),this.count=0);return e};F.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing};var Pn=F,Hn=En(Pn);function nn(t){var e,n,_="";if(typeof t=="string"||typeof t=="number")_+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=nn(t[e]))&&(_&&(_+=" "),_+=n);else for(e in t)t[e]&&(_&&(_+=" "),_+=e);return _}function We(){for(var t,e,n=0,_="";n<arguments.length;)(t=arguments[n++])&&(e=nn(t))&&(_&&(_+=" "),_+=e);return _}const Tn=Object.freeze(Object.defineProperty({__proto__:null,clsx:We,default:We},Symbol.toStringTag,{value:"Module"})),Bn=S.getAugmentedNamespace(Tn);var O,m,_n,on,B,Oe,rn,Vt,Zt,Kt,Gt,sn,W={},cn=[],qn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,G=Array.isArray;function $(t,e){for(var n in e)t[n]=e[n];return t}function un(t){var e=t.parentNode;e&&e.removeChild(t)}function Jt(t,e,n){var _,o,i,c={};for(i in e)i=="key"?_=e[i]:i=="ref"?o=e[i]:c[i]=e[i];if(arguments.length>2&&(c.children=arguments.length>3?O.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)c[i]===void 0&&(c[i]=t.defaultProps[i]);return A(t,c,_,o,null)}function A(t,e,n,_,o){var i={type:t,props:e,key:n,ref:_,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++_n,__i:-1,__u:0};return o==null&&m.vnode!=null&&m.vnode(i),i}function Nn(){return{current:null}}function j(t){return t.children}function M(t,e){this.props=t,this.context=e}function q(t,e){if(e==null)return t.__?q(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?q(t):null}function ln(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return ln(t)}}function Qt(t){(!t.__d&&(t.__d=!0)&&B.push(t)&&!K.__r++||Oe!==m.debounceRendering)&&((Oe=m.debounceRendering)||rn)(K)}function K(){var t,e,n,_,o,i,c,u;for(B.sort(Vt);t=B.shift();)t.__d&&(e=B.length,_=void 0,i=(o=(n=t).__v).__e,c=[],u=[],n.__P&&((_=$({},o)).__v=o.__v+1,m.vnode&&m.vnode(_),te(n.__P,_,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,c,i??q(o),!!(32&o.__u),u),_.__v=o.__v,_.__.__k[_.__i]=_,pn(c,_,u),_.__e!=i&&ln(_)),B.length>e&&B.sort(Vt));K.__r=0}function fn(t,e,n,_,o,i,c,u,a,l,h){var r,f,s,b,k,g=_&&_.__k||cn,p=e.length;for(n.__d=a,Dn(n,e,g),a=n.__d,r=0;r<p;r++)(s=n.__k[r])!=null&&typeof s!="boolean"&&typeof s!="function"&&(f=s.__i===-1?W:g[s.__i]||W,s.__i=r,te(t,s,f,o,i,c,u,a,l,h),b=s.__e,s.ref&&f.ref!=s.ref&&(f.ref&&ee(f.ref,null,s),h.push(s.ref,s.__c||b,s)),k==null&&b!=null&&(k=b),65536&s.__u||f.__k===s.__k?a=an(s,a,t):typeof s.type=="function"&&s.__d!==void 0?a=s.__d:b&&(a=b.nextSibling),s.__d=void 0,s.__u&=-196609);n.__d=a,n.__e=k}function Dn(t,e,n){var _,o,i,c,u,a=e.length,l=n.length,h=l,r=0;for(t.__k=[],_=0;_<a;_++)c=_+r,(o=t.__k[_]=(o=e[_])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?A(null,o,null,null,null):G(o)?A(j,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?A(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=t,o.__b=t.__b+1,u=Un(o,n,c,h),o.__i=u,i=null,u!==-1&&(h--,(i=n[u])&&(i.__u|=131072)),i==null||i.__v===null?(u==-1&&r--,typeof o.type!="function"&&(o.__u|=65536)):u!==c&&(u==c-1?r--:u==c+1?r++:u>c?h>a-c?r+=u-c:r--:u<c&&(u==c-r?r-=u-c:r++),u!==_+r&&(o.__u|=65536))):(i=n[c])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=q(i)),Xt(i,i,!1),n[c]=null,h--);if(h)for(_=0;_<l;_++)(i=n[_])!=null&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=q(i)),Xt(i,i))}function an(t,e,n){var _,o;if(typeof t.type=="function"){for(_=t.__k,o=0;_&&o<_.length;o++)_[o]&&(_[o].__=t,e=an(_[o],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=q(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function hn(t,e){return e=e||[],t==null||typeof t=="boolean"||(G(t)?t.some(function(n){hn(n,e)}):e.push(t)),e}function Un(t,e,n,_){var o=t.key,i=t.type,c=n-1,u=n+1,a=e[n];if(a===null||a&&o==a.key&&i===a.type&&!(131072&a.__u))return n;if(_>(a!=null&&!(131072&a.__u)?1:0))for(;c>=0||u<e.length;){if(c>=0){if((a=e[c])&&!(131072&a.__u)&&o==a.key&&i===a.type)return c;c--}if(u<e.length){if((a=e[u])&&!(131072&a.__u)&&o==a.key&&i===a.type)return u;u++}}return-1}function je(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||qn.test(e)?n:n+"px"}function I(t,e,n,_,o){var i;t:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof _=="string"&&(t.style.cssText=_=""),_)for(e in _)n&&e in n||je(t.style,e,"");if(n)for(e in n)_&&n[e]===_[e]||je(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?_?n.u=_.u:(n.u=Zt,t.addEventListener(e,i?Gt:Kt,i)):t.removeEventListener(e,i?Gt:Kt,i);else{if(o=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break t}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function Ie(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=Zt++;else if(e.t<n.u)return;return n(m.event?m.event(e):e)}}}function te(t,e,n,_,o,i,c,u,a,l){var h,r,f,s,b,k,g,p,v,C,x,P,E,L,H,D,w=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(a=!!(32&n.__u),i=[u=e.__e=n.__e]),(h=m.__b)&&h(e);t:if(typeof w=="function")try{if(p=e.props,v="prototype"in w&&w.prototype.render,C=(h=w.contextType)&&_[h.__c],x=h?C?C.props.value:h.__:_,n.__c?g=(r=e.__c=n.__c).__=r.__E:(v?e.__c=r=new w(p,x):(e.__c=r=new M(p,x),r.constructor=w,r.render=Ln),C&&C.sub(r),r.props=p,r.state||(r.state={}),r.context=x,r.__n=_,f=r.__d=!0,r.__h=[],r._sb=[]),v&&r.__s==null&&(r.__s=r.state),v&&w.getDerivedStateFromProps!=null&&(r.__s==r.state&&(r.__s=$({},r.__s)),$(r.__s,w.getDerivedStateFromProps(p,r.__s))),s=r.props,b=r.state,r.__v=e,f)v&&w.getDerivedStateFromProps==null&&r.componentWillMount!=null&&r.componentWillMount(),v&&r.componentDidMount!=null&&r.__h.push(r.componentDidMount);else{if(v&&w.getDerivedStateFromProps==null&&p!==s&&r.componentWillReceiveProps!=null&&r.componentWillReceiveProps(p,x),!r.__e&&(r.shouldComponentUpdate!=null&&r.shouldComponentUpdate(p,r.__s,x)===!1||e.__v===n.__v)){for(e.__v!==n.__v&&(r.props=p,r.state=r.__s,r.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(T){T&&(T.__=e)}),P=0;P<r._sb.length;P++)r.__h.push(r._sb[P]);r._sb=[],r.__h.length&&c.push(r);break t}r.componentWillUpdate!=null&&r.componentWillUpdate(p,r.__s,x),v&&r.componentDidUpdate!=null&&r.__h.push(function(){r.componentDidUpdate(s,b,k)})}if(r.context=x,r.props=p,r.__P=t,r.__e=!1,E=m.__r,L=0,v){for(r.state=r.__s,r.__d=!1,E&&E(e),h=r.render(r.props,r.state,r.context),H=0;H<r._sb.length;H++)r.__h.push(r._sb[H]);r._sb=[]}else do r.__d=!1,E&&E(e),h=r.render(r.props,r.state,r.context),r.state=r.__s;while(r.__d&&++L<25);r.state=r.__s,r.getChildContext!=null&&(_=$($({},_),r.getChildContext())),v&&!f&&r.getSnapshotBeforeUpdate!=null&&(k=r.getSnapshotBeforeUpdate(s,b)),fn(t,G(D=h!=null&&h.type===j&&h.key==null?h.props.children:h)?D:[D],e,n,_,o,i,c,u,a,l),r.base=e.__e,e.__u&=-161,r.__h.length&&c.push(r),g&&(r.__E=r.__=null)}catch(T){if(e.__v=null,a||i!=null){for(e.__u|=a?160:32;u&&u.nodeType===8&&u.nextSibling;)u=u.nextSibling;i[i.indexOf(u)]=null,e.__e=u}else e.__e=n.__e,e.__k=n.__k;m.__e(T,e,n)}else i==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Fn(n.__e,e,n,_,o,i,c,a,l);(h=m.diffed)&&h(e)}function pn(t,e,n){e.__d=void 0;for(var _=0;_<n.length;_++)ee(n[_],n[++_],n[++_]);m.__c&&m.__c(e,t),t.some(function(o){try{t=o.__h,o.__h=[],t.some(function(i){i.call(o)})}catch(i){m.__e(i,o.__v)}})}function Fn(t,e,n,_,o,i,c,u,a){var l,h,r,f,s,b,k,g=n.props,p=e.props,v=e.type;if(v==="svg"?o="http://www.w3.org/2000/svg":v==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((s=i[l])&&"setAttribute"in s==!!v&&(v?s.localName===v:s.nodeType===3)){t=s,i[l]=null;break}}if(t==null){if(v===null)return document.createTextNode(p);t=document.createElementNS(o,v,p.is&&p),i=null,u=!1}if(v===null)g===p||u&&t.data===p||(t.data=p);else{if(i=i&&O.call(t.childNodes),g=n.props||W,!u&&i!=null)for(g={},l=0;l<t.attributes.length;l++)g[(s=t.attributes[l]).name]=s.value;for(l in g)if(s=g[l],l!="children"){if(l=="dangerouslySetInnerHTML")r=s;else if(l!=="key"&&!(l in p)){if(l=="value"&&"defaultValue"in p||l=="checked"&&"defaultChecked"in p)continue;I(t,l,null,s,o)}}for(l in p)s=p[l],l=="children"?f=s:l=="dangerouslySetInnerHTML"?h=s:l=="value"?b=s:l=="checked"?k=s:l==="key"||u&&typeof s!="function"||g[l]===s||I(t,l,s,g[l],o);if(h)u||r&&(h.__html===r.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),e.__k=[];else if(r&&(t.innerHTML=""),fn(t,G(f)?f:[f],e,n,_,v==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,c,i?i[0]:n.__k&&q(n,0),u,a),i!=null)for(l=i.length;l--;)i[l]!=null&&un(i[l]);u||(l="value",b!==void 0&&(b!==t[l]||v==="progress"&&!b||v==="option"&&b!==g[l])&&I(t,l,b,g[l],o),l="checked",k!==void 0&&k!==t[l]&&I(t,l,k,g[l],o))}return t}function ee(t,e,n){try{if(typeof t=="function"){var _=typeof t.__u=="function";_&&t.__u(),_&&e==null||(t.__u=t(e))}else t.current=e}catch(o){m.__e(o,n)}}function Xt(t,e,n){var _,o;if(m.unmount&&m.unmount(t),(_=t.ref)&&(_.current&&_.current!==t.__e||ee(_,null,e)),(_=t.__c)!=null){if(_.componentWillUnmount)try{_.componentWillUnmount()}catch(i){m.__e(i,e)}_.base=_.__P=null}if(_=t.__k)for(o=0;o<_.length;o++)_[o]&&Xt(_[o],e,n||typeof t.type!="function");n||t.__e==null||un(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function Ln(t,e,n){return this.constructor(t,n)}function dn(t,e,n){var _,o,i,c;m.__&&m.__(t,e),o=(_=typeof n=="function")?null:n&&n.__k||e.__k,i=[],c=[],te(e,t=(!_&&n||e).__k=Jt(j,null,[t]),o||W,W,e.namespaceURI,!_&&n?[n]:o?null:e.firstChild?O.call(e.childNodes):null,i,!_&&n?n:o?o.__e:e.firstChild,_,c),pn(i,t,c)}function vn(t,e){dn(t,e,vn)}function An(t,e,n){var _,o,i,c,u=$({},t.props);for(i in t.type&&t.type.defaultProps&&(c=t.type.defaultProps),e)i=="key"?_=e[i]:i=="ref"?o=e[i]:u[i]=e[i]===void 0&&c!==void 0?c[i]:e[i];return arguments.length>2&&(u.children=arguments.length>3?O.call(arguments,2):n),A(t.type,u,_||t.key,o||t.ref,null)}function Mn(t,e){var n={__c:e="__cC"+sn++,__:t,Consumer:function(_,o){return _.children(o)},Provider:function(_){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&o.some(function(u){u.__e=!0,Qt(u)})},this.sub=function(c){o.push(c);var u=c.componentWillUnmount;c.componentWillUnmount=function(){o&&o.splice(o.indexOf(c),1),u&&u.call(c)}}),_.children}};return n.Provider.__=n.Consumer.contextType=n}O=cn.slice,m={__e:function(t,e,n,_){for(var o,i,c;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(t)),c=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,_||{}),c=o.__d),c)return o.__E=o}catch(u){t=u}throw t}},_n=0,on=function(t){return t!=null&&t.constructor==null},M.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$({},this.state),typeof t=="function"&&(t=t($({},n),this.props)),t&&$(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Qt(this))},M.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Qt(this))},M.prototype.render=j,B=[],rn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vt=function(t,e){return t.__v.__b-e.__v.__b},K.__r=0,Zt=0,Kt=Ie(!1),Gt=Ie(!0),sn=0;const Wn=Object.freeze(Object.defineProperty({__proto__:null,Component:M,Fragment:j,cloneElement:An,createContext:Mn,createElement:Jt,createRef:Nn,h:Jt,hydrate:vn,get isValidElement(){return on},get options(){return m},render:dn,toChildArray:hn},Symbol.toStringTag,{value:"Module"})),On=S.getAugmentedNamespace(Wn);var z,d,Rt,Re,U=0,mn=[],y=m,Ve=y.__b,Ke=y.__r,Ge=y.diffed,Je=y.__c,Qe=y.unmount,Xe=y.__;function N(t,e){y.__h&&y.__h(d,t,U||e),U=0;var n=d.__H||(d.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function yn(t){return U=1,gn(kn,t)}function gn(t,e,n){var _=N(z++,2);if(_.t=t,!_.__c&&(_.__=[n?n(e):kn(void 0,e),function(u){var a=_.__N?_.__N[0]:_.__[0],l=_.t(a,u);a!==l&&(_.__N=[l,_.__[1]],_.__c.setState({}))}],_.__c=d,!d.u)){var o=function(u,a,l){if(!_.__c.__H)return!0;var h=_.__c.__H.__.filter(function(f){return!!f.__c});if(h.every(function(f){return!f.__N}))return!i||i.call(this,u,a,l);var r=!1;return h.forEach(function(f){if(f.__N){var s=f.__[0];f.__=f.__N,f.__N=void 0,s!==f.__[0]&&(r=!0)}}),!(!r&&_.__c.props===u)&&(!i||i.call(this,u,a,l))};d.u=!0;var i=d.shouldComponentUpdate,c=d.componentWillUpdate;d.componentWillUpdate=function(u,a,l){if(this.__e){var h=i;i=void 0,o(u,a,l),i=h}c&&c.call(this,u,a,l)},d.shouldComponentUpdate=o}return _.__N||_.__}function jn(t,e){var n=N(z++,3);!y.__s&&_e(n.__H,e)&&(n.__=t,n.i=e,d.__H.__h.push(n))}function bn(t,e){var n=N(z++,4);!y.__s&&_e(n.__H,e)&&(n.__=t,n.i=e,d.__h.push(n))}function In(t){return U=5,ne(function(){return{current:t}},[])}function Rn(t,e,n){U=6,bn(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},n==null?n:n.concat(t))}function ne(t,e){var n=N(z++,7);return _e(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Vn(t,e){return U=8,ne(function(){return t},e)}function Kn(t){var e=d.context[t.__c],n=N(z++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(d)),e.props.value):t.__}function Gn(t,e){y.useDebugValue&&y.useDebugValue(e?e(t):t)}function Jn(t){var e=N(z++,10),n=yn();return e.__=t,d.componentDidCatch||(d.componentDidCatch=function(_,o){e.__&&e.__(_,o),n[1](_)}),[n[0],function(){n[1](void 0)}]}function Qn(){var t=N(z++,11);if(!t.__){for(var e=d.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function Xn(){for(var t;t=mn.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(R),t.__H.__h.forEach(Yt),t.__H.__h=[]}catch(e){t.__H.__h=[],y.__e(e,t.__v)}}y.__b=function(t){d=null,Ve&&Ve(t)},y.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Xe&&Xe(t,e)},y.__r=function(t){Ke&&Ke(t),z=0;var e=(d=t.__c).__H;e&&(Rt===d?(e.__h=[],d.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(e.__h.forEach(R),e.__h.forEach(Yt),e.__h=[],z=0)),Rt=d},y.diffed=function(t){Ge&&Ge(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(mn.push(e)!==1&&Re===y.requestAnimationFrame||((Re=y.requestAnimationFrame)||Yn)(Xn)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Rt=d=null},y.__c=function(t,e){e.some(function(n){try{n.__h.forEach(R),n.__h=n.__h.filter(function(_){return!_.__||Yt(_)})}catch(_){e.some(function(o){o.__h&&(o.__h=[])}),e=[],y.__e(_,n.__v)}}),Je&&Je(t,e)},y.unmount=function(t){Qe&&Qe(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(_){try{R(_)}catch(o){e=o}}),n.__H=void 0,e&&y.__e(e,n.__v))};var Ye=typeof requestAnimationFrame=="function";function Yn(t){var e,n=function(){clearTimeout(_),Ye&&cancelAnimationFrame(e),setTimeout(t)},_=setTimeout(n,100);Ye&&(e=requestAnimationFrame(n))}function R(t){var e=d,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),d=e}function Yt(t){var e=d;t.__c=t.__(),d=e}function _e(t,e){return!t||t.length!==e.length||e.some(function(n,_){return n!==t[_]})}function kn(t,e){return typeof e=="function"?e(t):e}const Zn=Object.freeze(Object.defineProperty({__proto__:null,useCallback:Vn,useContext:Kn,useDebugValue:Gn,useEffect:jn,useErrorBoundary:Jn,useId:Qn,useImperativeHandle:Rn,useLayoutEffect:bn,useMemo:ne,useReducer:gn,useRef:In,useState:yn},Symbol.toStringTag,{value:"Module"})),t_=S.getAugmentedNamespace(Zn);exports.js=Hn;exports.require$$0=Bn;exports.require$$1=On;exports.require$$2=t_;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-B5dlb2GK.cjs"),O=require("./W3MFrameProviderSingleton-BpWUndnw.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CZ0JZE3-.cjs"),O=require("./W3MFrameProviderSingleton-DqZPnx6B.cjs");/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,19 +1,19 @@
1
- import { p as x, n as A, o as v, r as E, O as C, m as l, q as T, t as m, u as y, v as _, w as b, x as u, y as d, i as g, z as S, D as I, M as O, R as N } from "./W3MFrameProviderSingleton-CuVI_88U.js";
2
- import { J as P, Y as z, G as D } from "./W3MFrameProviderSingleton-CuVI_88U.js";
3
- const s = x({
1
+ import { p as b, q as x, r as v, t as E, g as c, O as C, u as T, v as m, w as y, o as u, x as A, y as _, z as d, k as g, D as S, F as I, M as O, R as N } from "./W3MFrameProviderSingleton-zbQ4ONFs.js";
2
+ import { J as k, Y as z, G as D } from "./W3MFrameProviderSingleton-zbQ4ONFs.js";
3
+ const i = b({
4
4
  status: "uninitialized"
5
5
  }), p = {
6
- state: s,
6
+ state: i,
7
7
  subscribeKey(t, e) {
8
- return A(s, t, e);
8
+ return x(i, t, e);
9
9
  },
10
10
  subscribe(t) {
11
- return v(s, () => t(s));
11
+ return v(i, () => t(i));
12
12
  },
13
13
  _getClient() {
14
- if (!s._client)
14
+ if (!i._client)
15
15
  throw new Error("SIWEController client not set");
16
- return s._client;
16
+ return i._client;
17
17
  },
18
18
  async getNonce(t) {
19
19
  const n = await this._getClient().getNonce(t);
@@ -22,7 +22,7 @@ const s = x({
22
22
  async getSession() {
23
23
  try {
24
24
  const e = await this._getClient().getSession();
25
- return e && (this.setSession(e), this.setStatus("success")), e;
25
+ return e && (this.setSession(e), this.setStatus("success")), e || void 0;
26
26
  } catch {
27
27
  return;
28
28
  }
@@ -52,20 +52,20 @@ const s = x({
52
52
  const t = this._getClient();
53
53
  (e = t.onSignOut) == null || e.call(t);
54
54
  },
55
- setSIWEClient(t) {
56
- s._client = E(t), s.status = "ready", C.setIsSiweEnabled(t.options.enabled);
55
+ async setSIWEClient(t) {
56
+ i._client = E(t), i.session = await this.getSession(), i.status = i.session ? "success" : "ready", c.setAccountProp("siweStatus", i.status, "eip155"), C.setIsSiweEnabled(t.options.enabled);
57
57
  },
58
58
  setNonce(t) {
59
- s.nonce = t;
59
+ i.nonce = t;
60
60
  },
61
61
  setStatus(t) {
62
- s.status = t, l.setSiweStatus(t);
62
+ i.status = t, c.setAccountProp("siweStatus", i.status, "eip155");
63
63
  },
64
64
  setMessage(t) {
65
- s.message = t;
65
+ i.message = t;
66
66
  },
67
67
  setSession(t) {
68
- s.session = t, s.status = t ? "success" : "ready";
68
+ i.session = t, i.status = t ? "success" : "ready", c.setAccountProp("siweStatus", i.status, "eip155");
69
69
  }
70
70
  }, R = T`
71
71
  :host {
@@ -79,18 +79,18 @@ const s = x({
79
79
  }
80
80
  `;
81
81
  var U = function(t, e, n, a) {
82
- var r = arguments.length, i = r < 3 ? e : a === null ? a = Object.getOwnPropertyDescriptor(e, n) : a, o;
82
+ var r = arguments.length, s = r < 3 ? e : a === null ? a = Object.getOwnPropertyDescriptor(e, n) : a, o;
83
83
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
84
- i = Reflect.decorate(t, e, n, a);
84
+ s = Reflect.decorate(t, e, n, a);
85
85
  else
86
- for (var c = t.length - 1; c >= 0; c--)
87
- (o = t[c]) && (i = (r < 3 ? o(i) : r > 3 ? o(e, n, i) : o(e, n)) || i);
88
- return r > 3 && i && Object.defineProperty(e, n, i), i;
86
+ for (var l = t.length - 1; l >= 0; l--)
87
+ (o = t[l]) && (s = (r < 3 ? o(s) : r > 3 ? o(e, n, s) : o(e, n)) || s);
88
+ return r > 3 && s && Object.defineProperty(e, n, s), s;
89
89
  };
90
90
  let f = class extends y {
91
91
  constructor() {
92
92
  var e, n;
93
- super(...arguments), this.dappImageUrl = (e = C.state.metadata) == null ? void 0 : e.icons, this.walletImageUrl = (n = l.state.connectedWalletInfo) == null ? void 0 : n.icon;
93
+ super(...arguments), this.dappImageUrl = (e = C.state.metadata) == null ? void 0 : e.icons, this.walletImageUrl = (n = u.state.connectedWalletInfo) == null ? void 0 : n.icon;
94
94
  }
95
95
  firstUpdated() {
96
96
  var n;
@@ -99,7 +99,7 @@ let f = class extends y {
99
99
  }
100
100
  render() {
101
101
  var e;
102
- return _`
102
+ return A`
103
103
  <wui-visual-thumbnail
104
104
  ?borderRadiusFull=${!0}
105
105
  .imageSrc=${(e = this.dappImageUrl) == null ? void 0 : e[0]}
@@ -121,13 +121,13 @@ f = U([
121
121
  m("w3m-connecting-siwe")
122
122
  ], f);
123
123
  var h = function(t, e, n, a) {
124
- var r = arguments.length, i = r < 3 ? e : a === null ? a = Object.getOwnPropertyDescriptor(e, n) : a, o;
124
+ var r = arguments.length, s = r < 3 ? e : a === null ? a = Object.getOwnPropertyDescriptor(e, n) : a, o;
125
125
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
126
- i = Reflect.decorate(t, e, n, a);
126
+ s = Reflect.decorate(t, e, n, a);
127
127
  else
128
- for (var c = t.length - 1; c >= 0; c--)
129
- (o = t[c]) && (i = (r < 3 ? o(i) : r > 3 ? o(e, n, i) : o(e, n)) || i);
130
- return r > 3 && i && Object.defineProperty(e, n, i), i;
128
+ for (var l = t.length - 1; l >= 0; l--)
129
+ (o = t[l]) && (s = (r < 3 ? o(s) : r > 3 ? o(e, n, s) : o(e, n)) || s);
130
+ return r > 3 && s && Object.defineProperty(e, n, s), s;
131
131
  };
132
132
  let w = class extends y {
133
133
  constructor() {
@@ -135,7 +135,7 @@ let w = class extends y {
135
135
  super(...arguments), this.dappName = (e = C.state.metadata) == null ? void 0 : e.name, this.isSigning = !1, this.isCancelling = !1;
136
136
  }
137
137
  render() {
138
- return _`
138
+ return A`
139
139
  <wui-flex justifyContent="center" .padding=${["2xl", "0", "xxl", "0"]}>
140
140
  <w3m-connecting-siwe></w3m-connecting-siwe>
141
141
  </wui-flex>
@@ -186,32 +186,32 @@ let w = class extends y {
186
186
  }
187
187
  async onSign() {
188
188
  var e, n, a;
189
- this.isSigning = !0, u.sendEvent({
189
+ this.isSigning = !0, d.sendEvent({
190
190
  event: "CLICK_SIGN_SIWE_MESSAGE",
191
191
  type: "track",
192
192
  properties: {
193
- network: ((e = d.state.caipNetwork) == null ? void 0 : e.id) || "",
194
- isSmartAccount: l.state.preferredAccountType === g.ACCOUNT_TYPES.SMART_ACCOUNT
193
+ network: ((e = c.state.activeCaipNetwork) == null ? void 0 : e.id) || "",
194
+ isSmartAccount: u.state.preferredAccountType === g.ACCOUNT_TYPES.SMART_ACCOUNT
195
195
  }
196
196
  });
197
197
  try {
198
198
  p.setStatus("loading");
199
199
  const r = await p.signIn();
200
- return p.setStatus("success"), u.sendEvent({
200
+ return p.setStatus("success"), d.sendEvent({
201
201
  event: "SIWE_AUTH_SUCCESS",
202
202
  type: "track",
203
203
  properties: {
204
- network: ((n = d.state.caipNetwork) == null ? void 0 : n.id) || "",
205
- isSmartAccount: l.state.preferredAccountType === g.ACCOUNT_TYPES.SMART_ACCOUNT
204
+ network: ((n = c.state.activeCaipNetwork) == null ? void 0 : n.id) || "",
205
+ isSmartAccount: u.state.preferredAccountType === g.ACCOUNT_TYPES.SMART_ACCOUNT
206
206
  }
207
207
  }), r;
208
208
  } catch {
209
- const o = l.state.preferredAccountType === g.ACCOUNT_TYPES.SMART_ACCOUNT;
210
- return o ? S.showError("This application might not support Smart Accounts") : S.showError("Signature declined"), p.setStatus("error"), u.sendEvent({
209
+ const o = u.state.preferredAccountType === g.ACCOUNT_TYPES.SMART_ACCOUNT;
210
+ return o ? S.showError("This application might not support Smart Accounts") : S.showError("Signature declined"), p.setStatus("error"), d.sendEvent({
211
211
  event: "SIWE_AUTH_ERROR",
212
212
  type: "track",
213
213
  properties: {
214
- network: ((a = d.state.caipNetwork) == null ? void 0 : a.id) || "",
214
+ network: ((a = c.state.activeCaipNetwork) == null ? void 0 : a.id) || "",
215
215
  isSmartAccount: o
216
216
  }
217
217
  });
@@ -221,21 +221,21 @@ let w = class extends y {
221
221
  }
222
222
  async onCancel() {
223
223
  var n;
224
- this.isCancelling = !0, l.state.isConnected ? (await I.disconnect(), O.close()) : N.push("Connect"), this.isCancelling = !1, u.sendEvent({
224
+ this.isCancelling = !0, c.state.activeCaipAddress ? (await I.disconnect(), O.close()) : N.push("Connect"), this.isCancelling = !1, d.sendEvent({
225
225
  event: "CLICK_CANCEL_SIWE",
226
226
  type: "track",
227
227
  properties: {
228
- network: ((n = d.state.caipNetwork) == null ? void 0 : n.id) || "",
229
- isSmartAccount: l.state.preferredAccountType === g.ACCOUNT_TYPES.SMART_ACCOUNT
228
+ network: ((n = c.state.activeCaipNetwork) == null ? void 0 : n.id) || "",
229
+ isSmartAccount: u.state.preferredAccountType === g.ACCOUNT_TYPES.SMART_ACCOUNT
230
230
  }
231
231
  });
232
232
  }
233
233
  };
234
234
  h([
235
- b()
235
+ _()
236
236
  ], w.prototype, "isSigning", void 0);
237
237
  h([
238
- b()
238
+ _()
239
239
  ], w.prototype, "isCancelling", void 0);
240
240
  w = h([
241
241
  m("w3m-connecting-siwe-view")
@@ -244,7 +244,7 @@ export {
244
244
  p as SIWEController,
245
245
  f as W3mConnectingSiwe,
246
246
  w as W3mConnectingSiweView,
247
- P as formatMessage,
247
+ k as formatMessage,
248
248
  z as getDidAddress,
249
249
  D as getDidChainId
250
250
  };
@@ -1,5 +1,5 @@
1
- import { F as a } from "./W3MFrameProviderSingleton-CuVI_88U.js";
2
- import { I as e, T as n, U as L, a4 as o, a5 as W, a6 as l, aO as r, aT as M, aU as Z, a7 as V, V as d, a9 as p, a8 as H, aa as c, aR as m, aS as _, ab as k, ac as h, ad as I, ae as g, af as T, ag as B, ah as v, b2 as b, b3 as w, X as S, ai as f, a_ as x, aj as A, Z as N, aX as U, ak as D, al as E, am as P, an as G, aJ as F, aZ as O, a$ as Q, aK as z, aW as K, ao as X, aL as $, b0 as j, aV as q, ar as y, aM as J, _ as R, $ as Y, a0 as a1, at as i1, as as s1, au as C1, av as u1, aI as t1, aw as e1, aY as n1, aP as L1, aQ as o1, aN as W1, ax as l1, ay as r1, b1 as M1, b4 as Z1, a1 as V1, az as d1, aA as p1, aC as H1, a2 as c1, aB as m1, aE as _1, aD as k1, ap as h1, aq as I1, aF as g1, a3 as T1, aG as B1, aH as v1, t as b1, K as w1, L as S1, Q as f1 } from "./W3MFrameProviderSingleton-CuVI_88U.js";
1
+ import { I as a } from "./W3MFrameProviderSingleton-zbQ4ONFs.js";
2
+ import { K as e, V as n, U as L, a5 as o, a6 as W, a7 as l, aP as r, aU as M, aV as Z, a8 as V, X as d, aa as p, a9 as H, ab as c, aS as m, aT as _, ac as k, ad as h, ae as I, af as g, ag as T, ah as v, ai as B, b3 as b, b4 as w, Z as S, aj as f, a$ as x, ak as A, _ as N, aY as U, al as D, am as E, an as P, ao as G, aK as O, a_ as Q, b0 as z, aL as F, aX as K, ap as X, aM as $, b1 as j, aW as q, as as y, aN as J, $ as R, a0 as Y, a1, au as i1, at as s1, av as C1, aw as u1, aJ as t1, ax as e1, aZ as n1, aQ as L1, aR as o1, aO as W1, ay as l1, az as r1, b2 as M1, b5 as Z1, a2 as V1, aA as d1, aB as p1, aD as H1, a3 as c1, aC as m1, aF as _1, aE as k1, aq as h1, ar as I1, aG as g1, a4 as T1, aH as v1, aI as B1, v as b1, L as w1, Q as S1, T as f1 } from "./W3MFrameProviderSingleton-zbQ4ONFs.js";
3
3
  const s = a`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none">
4
4
  <mask id="path-1-inside-1_18299_4189">
5
5
  <path
@@ -63,8 +63,8 @@ export {
63
63
  I as WuiDetailsGroup,
64
64
  g as WuiDetailsGroupItem,
65
65
  T as WuiDropdownMenu,
66
- B as WuiEmailInput,
67
- v as WuiEnsInput,
66
+ v as WuiEmailInput,
67
+ B as WuiEnsInput,
68
68
  b as WuiFlex,
69
69
  w as WuiGrid,
70
70
  S as WuiIcon,
@@ -77,10 +77,10 @@ export {
77
77
  E as WuiInputNumeric,
78
78
  P as WuiInputText,
79
79
  G as WuiLink,
80
- F as WuiListAccordion,
81
- O as WuiListAccount,
82
- Q as WuiListButton,
83
- z as WuiListContent,
80
+ O as WuiListAccordion,
81
+ Q as WuiListAccount,
82
+ z as WuiListButton,
83
+ F as WuiListContent,
84
84
  K as WuiListDescription,
85
85
  X as WuiListItem,
86
86
  $ as WuiListNetwork,
@@ -117,8 +117,8 @@ export {
117
117
  I1 as WuiTransactionListItemLoader,
118
118
  g1 as WuiTransactionVisual,
119
119
  T1 as WuiVisual,
120
- B1 as WuiVisualThumbnail,
121
- v1 as WuiWalletImage,
120
+ v1 as WuiVisualThumbnail,
121
+ B1 as WuiWalletImage,
122
122
  b1 as customElement,
123
123
  w1 as initializeTheming,
124
124
  S1 as setColorTheme,
@@ -1 +1 @@
1
- "use strict";const i=require("./W3MFrameProviderSingleton-BpWUndnw.cjs"),n=i.proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),U={state:n,subscribe(e){return i.subscribe(n,()=>e(n))},push(e,t){e!==n.view&&(n.view=e,t&&(n.data=t),n.history.push(e))},reset(e){n.view=e,n.history=[e]},replace(e){n.history.length>1&&(n.history[n.history.length-1]=e,n.view=e)},goBack(){if(n.history.length>1){n.history.pop();const[e]=n.history.slice(-1);n.view=e}},setData(e){n.data=e}},r={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 r.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return r.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(r.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let o=e;o.includes("://")||(o=e.replaceAll("/","").replaceAll(":",""),o=`${o}://`),o.endsWith("/")||(o=`${o}/`),this.setWalletConnectDeepLink(o,s);const l=encodeURIComponent(t);return`${o}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!r.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let o=e;o.endsWith("/")||(o=`${o}/`),this.setWalletConnectDeepLink(o,s);const l=encodeURIComponent(t);return`${o}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(r.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(r.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(r.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(r.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=U.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},R=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),a=i.proxy({enabled:R,userSessionId:"",events:[],connectedWalletId:void 0}),_={state:a,subscribe(e){return i.subscribe(a.events,()=>e(i.snapshot(a.events[a.events.length-1])))},initialize(){a.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(a.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){a.connectedWalletId=e},click(e){if(a.enabled){const t={type:"CLICK",name:e.name,userSessionId:a.userSessionId,timestamp:Date.now(),data:e};a.events.push(t)}},track(e){if(a.enabled){const t={type:"TRACK",name:e.name,userSessionId:a.userSessionId,timestamp:Date.now(),data:e};a.events.push(t)}},view(e){if(a.enabled){const t={type:"VIEW",name:e.name,userSessionId:a.userSessionId,timestamp:Date.now(),data:e};a.events.push(t)}}},p=i.proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),c={state:p,subscribe(e){return i.subscribe(p,()=>e(p))},setChains(e){p.chains=e},setWalletConnectUri(e){p.walletConnectUri=e},setIsCustomDesktop(e){p.isCustomDesktop=e},setIsCustomMobile(e){p.isCustomMobile=e},setIsDataLoaded(e){p.isDataLoaded=e},setIsUiLoaded(e){p.isUiLoaded=e},setIsAuth(e){p.isAuth=e}},C=i.proxy({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}),b={state:C,subscribe(e){return i.subscribe(C,()=>e(C))},setConfig(e){var t,s;_.initialize(),c.setChains(e.chains),c.setIsAuth(!!e.enableAuthMode),c.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),c.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),r.setModalVersionInStorage(),Object.assign(C,e)}};var V=Object.defineProperty,D=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,k=(e,t,s)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K=(e,t)=>{for(var s in t||(t={}))H.call(t,s)&&k(e,s,t[s]);if(D)for(var s of D(t))B.call(t,s)&&k(e,s,t[s]);return e};const L="https://explorer-api.walletconnect.com",O="wcm",E="js-2.6.2";async function w(e,t){const s=K({sdkType:O,sdkVersion:E},t),o=new URL(e,L);return o.searchParams.append("projectId",b.state.projectId),Object.entries(s).forEach(([l,d])=>{d&&o.searchParams.append(l,String(d))}),(await fetch(o)).json()}const m={async getDesktopListings(e){return w("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${L}/w3m/v1/getWalletImage/${e}?projectId=${b.state.projectId}&sdkType=${O}&sdkVersion=${E}`},getAssetImageUrl(e){return`${L}/w3m/v1/getAssetImage/${e}?projectId=${b.state.projectId}&sdkType=${O}&sdkVersion=${E}`}};var z=Object.defineProperty,S=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,N=(e,t,s)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F=(e,t)=>{for(var s in t||(t={}))q.call(t,s)&&N(e,s,t[s]);if(S)for(var s of S(t))J.call(t,s)&&N(e,s,t[s]);return e};const x=r.isMobile(),u=i.proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),G={state:u,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=b.state;if(e==="NONE"||t==="ALL"&&!e)return u.recomendedWallets;if(r.isArray(e)){const s={recommendedIds:e.join(",")},{listings:o}=await m.getAllListings(s),l=Object.values(o);l.sort((d,h)=>{const v=e.indexOf(d.id),f=e.indexOf(h.id);return v-f}),u.recomendedWallets=l}else{const{chains:s,isAuth:o}=c.state,l=s==null?void 0:s.join(","),d=r.isArray(t),h={page:1,sdks:o?"auth_v1":void 0,entries:r.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:d?t.join(","):void 0},{listings:v}=x?await m.getMobileListings(h):await m.getDesktopListings(h);u.recomendedWallets=Object.values(v)}return u.recomendedWallets},async getWallets(e){const t=F({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:o}=b.state,{recomendedWallets:l}=u;if(o==="ALL")return u.wallets;l.length?t.excludedIds=l.map($=>$.id).join(","):r.isArray(s)&&(t.excludedIds=s.join(",")),r.isArray(o)&&(t.excludedIds=[t.excludedIds,o].filter(Boolean).join(",")),c.state.isAuth&&(t.sdks="auth_v1");const{page:d,search:h}=e,{listings:v,total:f}=x?await m.getMobileListings(t):await m.getDesktopListings(t),M=Object.values(v),j=h?"search":"wallets";return u[j]={listings:[...u[j].listings,...M],total:f,page:d??1},{listings:M,total:f}},getWalletImageUrl(e){return m.getWalletImageUrl(e)},getAssetImageUrl(e){return m.getAssetImageUrl(e)},resetSearch(){u.search={listings:[],total:0,page:1}}},y=i.proxy({open:!1}),W={state:y,subscribe(e){return i.subscribe(y,()=>e(y))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:o}=c.state;if(r.removeWalletConnectDeepLink(),c.setWalletConnectUri(e==null?void 0:e.uri),c.setChains(e==null?void 0:e.chains),U.reset("ConnectWallet"),s&&o)y.open=!0,t();else{const l=setInterval(()=>{const d=c.state;d.isUiLoaded&&d.isDataLoaded&&(clearInterval(l),y.open=!0,t())},200)}})},close(){y.open=!1}};var Q=Object.defineProperty,T=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,P=(e,t,s)=>t in e?Q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Z=(e,t)=>{for(var s in t||(t={}))X.call(t,s)&&P(e,s,t[s]);if(T)for(var s of T(t))Y.call(t,s)&&P(e,s,t[s]);return e};function ee(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const I=i.proxy({themeMode:ee()?"dark":"light"}),A={state:I,subscribe(e){return i.subscribe(I,()=>e(I))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(I.themeMode=t),s&&(I.themeVariables=Z({},s))}},g=i.proxy({open:!1,message:"",variant:"success"}),te={state:g,subscribe(e){return i.subscribe(g,()=>e(g))},openToast(e,t){g.open=!0,g.message=e,g.variant=t},closeToast(){g.open=!1}};class se{constructor(t){this.openModal=W.open,this.closeModal=W.close,this.subscribeModal=W.subscribe,this.setTheme=A.setThemeConfig,A.setThemeConfig(t),b.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>require("./index-qHZ88Aei.cjs"));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),c.setIsUiLoaded(!0)}}}const oe=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:se},Symbol.toStringTag,{value:"Module"}));exports.R=_;exports.T=U;exports.a=r;exports.index=oe;exports.ne=A;exports.oe=te;exports.p=c;exports.se=W;exports.te=G;exports.y=b;
1
+ "use strict";const i=require("./W3MFrameProviderSingleton-DqZPnx6B.cjs"),n=i.proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),U={state:n,subscribe(e){return i.subscribe(n,()=>e(n))},push(e,t){e!==n.view&&(n.view=e,t&&(n.data=t),n.history.push(e))},reset(e){n.view=e,n.history=[e]},replace(e){n.history.length>1&&(n.history[n.history.length-1]=e,n.view=e)},goBack(){if(n.history.length>1){n.history.pop();const[e]=n.history.slice(-1);n.view=e}},setData(e){n.data=e}},r={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 r.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return r.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(r.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let o=e;o.includes("://")||(o=e.replaceAll("/","").replaceAll(":",""),o=`${o}://`),o.endsWith("/")||(o=`${o}/`),this.setWalletConnectDeepLink(o,s);const l=encodeURIComponent(t);return`${o}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!r.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let o=e;o.endsWith("/")||(o=`${o}/`),this.setWalletConnectDeepLink(o,s);const l=encodeURIComponent(t);return`${o}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(r.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(r.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(r.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(r.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=U.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},R=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),a=i.proxy({enabled:R,userSessionId:"",events:[],connectedWalletId:void 0}),_={state:a,subscribe(e){return i.subscribe(a.events,()=>e(i.snapshot(a.events[a.events.length-1])))},initialize(){a.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(a.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){a.connectedWalletId=e},click(e){if(a.enabled){const t={type:"CLICK",name:e.name,userSessionId:a.userSessionId,timestamp:Date.now(),data:e};a.events.push(t)}},track(e){if(a.enabled){const t={type:"TRACK",name:e.name,userSessionId:a.userSessionId,timestamp:Date.now(),data:e};a.events.push(t)}},view(e){if(a.enabled){const t={type:"VIEW",name:e.name,userSessionId:a.userSessionId,timestamp:Date.now(),data:e};a.events.push(t)}}},p=i.proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),c={state:p,subscribe(e){return i.subscribe(p,()=>e(p))},setChains(e){p.chains=e},setWalletConnectUri(e){p.walletConnectUri=e},setIsCustomDesktop(e){p.isCustomDesktop=e},setIsCustomMobile(e){p.isCustomMobile=e},setIsDataLoaded(e){p.isDataLoaded=e},setIsUiLoaded(e){p.isUiLoaded=e},setIsAuth(e){p.isAuth=e}},C=i.proxy({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}),b={state:C,subscribe(e){return i.subscribe(C,()=>e(C))},setConfig(e){var t,s;_.initialize(),c.setChains(e.chains),c.setIsAuth(!!e.enableAuthMode),c.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),c.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),r.setModalVersionInStorage(),Object.assign(C,e)}};var V=Object.defineProperty,D=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,k=(e,t,s)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K=(e,t)=>{for(var s in t||(t={}))H.call(t,s)&&k(e,s,t[s]);if(D)for(var s of D(t))B.call(t,s)&&k(e,s,t[s]);return e};const L="https://explorer-api.walletconnect.com",O="wcm",E="js-2.6.2";async function w(e,t){const s=K({sdkType:O,sdkVersion:E},t),o=new URL(e,L);return o.searchParams.append("projectId",b.state.projectId),Object.entries(s).forEach(([l,d])=>{d&&o.searchParams.append(l,String(d))}),(await fetch(o)).json()}const m={async getDesktopListings(e){return w("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${L}/w3m/v1/getWalletImage/${e}?projectId=${b.state.projectId}&sdkType=${O}&sdkVersion=${E}`},getAssetImageUrl(e){return`${L}/w3m/v1/getAssetImage/${e}?projectId=${b.state.projectId}&sdkType=${O}&sdkVersion=${E}`}};var z=Object.defineProperty,S=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,N=(e,t,s)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F=(e,t)=>{for(var s in t||(t={}))q.call(t,s)&&N(e,s,t[s]);if(S)for(var s of S(t))J.call(t,s)&&N(e,s,t[s]);return e};const x=r.isMobile(),u=i.proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),G={state:u,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=b.state;if(e==="NONE"||t==="ALL"&&!e)return u.recomendedWallets;if(r.isArray(e)){const s={recommendedIds:e.join(",")},{listings:o}=await m.getAllListings(s),l=Object.values(o);l.sort((d,h)=>{const v=e.indexOf(d.id),f=e.indexOf(h.id);return v-f}),u.recomendedWallets=l}else{const{chains:s,isAuth:o}=c.state,l=s==null?void 0:s.join(","),d=r.isArray(t),h={page:1,sdks:o?"auth_v1":void 0,entries:r.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:d?t.join(","):void 0},{listings:v}=x?await m.getMobileListings(h):await m.getDesktopListings(h);u.recomendedWallets=Object.values(v)}return u.recomendedWallets},async getWallets(e){const t=F({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:o}=b.state,{recomendedWallets:l}=u;if(o==="ALL")return u.wallets;l.length?t.excludedIds=l.map($=>$.id).join(","):r.isArray(s)&&(t.excludedIds=s.join(",")),r.isArray(o)&&(t.excludedIds=[t.excludedIds,o].filter(Boolean).join(",")),c.state.isAuth&&(t.sdks="auth_v1");const{page:d,search:h}=e,{listings:v,total:f}=x?await m.getMobileListings(t):await m.getDesktopListings(t),M=Object.values(v),j=h?"search":"wallets";return u[j]={listings:[...u[j].listings,...M],total:f,page:d??1},{listings:M,total:f}},getWalletImageUrl(e){return m.getWalletImageUrl(e)},getAssetImageUrl(e){return m.getAssetImageUrl(e)},resetSearch(){u.search={listings:[],total:0,page:1}}},y=i.proxy({open:!1}),W={state:y,subscribe(e){return i.subscribe(y,()=>e(y))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:o}=c.state;if(r.removeWalletConnectDeepLink(),c.setWalletConnectUri(e==null?void 0:e.uri),c.setChains(e==null?void 0:e.chains),U.reset("ConnectWallet"),s&&o)y.open=!0,t();else{const l=setInterval(()=>{const d=c.state;d.isUiLoaded&&d.isDataLoaded&&(clearInterval(l),y.open=!0,t())},200)}})},close(){y.open=!1}};var Q=Object.defineProperty,T=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,P=(e,t,s)=>t in e?Q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Z=(e,t)=>{for(var s in t||(t={}))X.call(t,s)&&P(e,s,t[s]);if(T)for(var s of T(t))Y.call(t,s)&&P(e,s,t[s]);return e};function ee(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const I=i.proxy({themeMode:ee()?"dark":"light"}),A={state:I,subscribe(e){return i.subscribe(I,()=>e(I))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(I.themeMode=t),s&&(I.themeVariables=Z({},s))}},g=i.proxy({open:!1,message:"",variant:"success"}),te={state:g,subscribe(e){return i.subscribe(g,()=>e(g))},openToast(e,t){g.open=!0,g.message=e,g.variant=t},closeToast(){g.open=!1}};class se{constructor(t){this.openModal=W.open,this.closeModal=W.close,this.subscribeModal=W.subscribe,this.setTheme=A.setThemeConfig,A.setThemeConfig(t),b.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>require("./index-Bn8aTBEA.cjs"));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),c.setIsUiLoaded(!0)}}}const oe=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:se},Symbol.toStringTag,{value:"Module"}));exports.R=_;exports.T=U;exports.a=r;exports.index=oe;exports.ne=A;exports.oe=te;exports.p=c;exports.se=W;exports.te=G;exports.y=b;
@@ -1,5 +1,5 @@
1
- import { k as I, b8 as Rr, B, s as Ba, b9 as Bi, ba as Di, bb as Qe, l as Da, b7 as Ha } from "./W3MFrameProviderSingleton-CuVI_88U.js";
2
- import { a as ce, b as Ir, r as Dt, j as Ua } from "./hooks.module-C2zxEs4Z.js";
1
+ import { m as I, b9 as Rr, B, s as Ba, ba as Bi, bb as Di, bc as Qe, n as Da, b8 as Ha } from "./W3MFrameProviderSingleton-zbQ4ONFs.js";
2
+ import { a as ce, b as Ir, r as Dt, j as Ua } from "./hooks.module-DyR4RIBB.js";
3
3
  var Hi = {}, Ft = {}, Ar = {};
4
4
  Object.defineProperty(Ar, "__esModule", { value: !0 });
5
5
  Ar.walletLogo = void 0;