@reown/appkit-cdn 0.0.4 → 1.0.0

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 (38) hide show
  1. package/LICENSE +2 -2
  2. package/dist/{W3MFrameProviderSingleton-C0cnhaTp.js → W3MFrameProviderSingleton-B9E01rnL.js} +2875 -2790
  3. package/dist/{W3MFrameProviderSingleton-BPW-iicw.cjs → W3MFrameProviderSingleton-C56DqhGz.cjs} +120 -120
  4. package/dist/ethers.cjs +1 -1
  5. package/dist/ethers.js +2911 -2900
  6. package/dist/{hooks.module-CznhRnD8.cjs → hooks.module-COfcimjS.cjs} +1 -1
  7. package/dist/{hooks.module-DDA9XQhP.js → hooks.module-OoOP-iZR.js} +1 -1
  8. package/dist/{index-mtzTuPjF.cjs → index-BFJW4qjy.cjs} +1 -1
  9. package/dist/{index-BfndvsxR.js → index-BT6RyUGl.js} +10 -10
  10. package/dist/{index-DBXYKiLS.js → index-BeGUtgfx.js} +2 -2
  11. package/dist/{index-DJZpgYw1.cjs → index-Bl5DrNCU.cjs} +1 -1
  12. package/dist/{index-BjDQZhCC.js → index-BmTGKb68.js} +43 -43
  13. package/dist/{index-DDxg-CnX.js → index-BsaPadk9.js} +5 -5
  14. package/dist/index-C0D6DuSI.cjs +64 -0
  15. package/dist/{index-DEDntV4l.js → index-CCzK6s6K.js} +2 -2
  16. package/dist/{index-DUA8iuT-.cjs → index-CG2oM48r.cjs} +1 -1
  17. package/dist/{index-BLj7JLFx.cjs → index-Cm-dsmtL.cjs} +1 -1
  18. package/dist/{index-DzzvtAEu.js → index-CpPWzw23.js} +1 -1
  19. package/dist/{index-CGVAZ4op.cjs → index-DYI6oRae.cjs} +1 -1
  20. package/dist/{index-BUi5SfXe.cjs → index-DbrEGMZZ.cjs} +1 -1
  21. package/dist/{index-D4J5pbXW.cjs → index-Dv8gb9FV.cjs} +1 -1
  22. package/dist/{index-CJlx78Gf.js → index-XErsLRGr.js} +2 -2
  23. package/dist/{index-Ij2u7oAT.js → index-j73t9fcB.js} +36 -36
  24. package/dist/{index.es-oLid2UZg.cjs → index.es-0FqNLiLo.cjs} +2 -2
  25. package/dist/{index.es-CMbAWbN4.js → index.es-BhyAt79s.js} +249 -249
  26. package/dist/{metamask-sdk-8Alxi0fO.js → metamask-sdk-DPJxxXN8.js} +1 -1
  27. package/dist/{metamask-sdk-CMhxptNL.cjs → metamask-sdk-DXmxCf94.cjs} +1 -1
  28. package/dist/{native-CoR5CkbH.cjs → native-BIdabKvi.cjs} +1 -1
  29. package/dist/{native-B_ZKbAy2.js → native-CbXTOHOX.js} +1 -1
  30. package/dist/w3m-modal-BLwMni5B.cjs +149 -0
  31. package/dist/{w3m-modal-zyJFtzIf.js → w3m-modal-BjrYlIco.js} +55 -73
  32. package/dist/{wagmi-BPQ-82KE.js → wagmi-DiP-pZB_.js} +3871 -3851
  33. package/dist/{wagmi-BL69ctC0.cjs → wagmi-MqS1RwHj.cjs} +14 -14
  34. package/dist/wagmi.cjs +1 -1
  35. package/dist/wagmi.js +6 -6
  36. package/package.json +5 -5
  37. package/dist/index-JwYoIh-Y.cjs +0 -64
  38. package/dist/w3m-modal-CiBinOIk.cjs +0 -149
@@ -1 +1 @@
1
- "use strict";const S=require("./W3MFrameProviderSingleton-BPW-iicw.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-C56DqhGz.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
- import { B as D, bc as tn, ba as Zt } from "./W3MFrameProviderSingleton-C0cnhaTp.js";
1
+ import { B as D, bd as tn, bb as Zt } from "./W3MFrameProviderSingleton-B9E01rnL.js";
2
2
  const { Transform: xn } = tn;
3
3
  var $n = (t) => class en extends xn {
4
4
  constructor(n, _, o, i, c) {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-D4J5pbXW.cjs"),O=require("./W3MFrameProviderSingleton-BPW-iicw.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-Dv8gb9FV.cjs"),O=require("./W3MFrameProviderSingleton-C56DqhGz.cjs");/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,5 +1,5 @@
1
- import { F as a } from "./W3MFrameProviderSingleton-C0cnhaTp.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-C0cnhaTp.js";
1
+ import { I as a } from "./W3MFrameProviderSingleton-B9E01rnL.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-B9E01rnL.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,5 +1,5 @@
1
- import { B as f, s as rn, k as L, l as sn, b7 as an } from "./W3MFrameProviderSingleton-C0cnhaTp.js";
2
- import { j as on, r as _t, a as Et, b as cn } from "./hooks.module-DDA9XQhP.js";
1
+ import { B as f, s as rn, m as L, n as sn, b8 as an } from "./W3MFrameProviderSingleton-B9E01rnL.js";
2
+ import { j as on, r as _t, a as Et, b as cn } from "./hooks.module-OoOP-iZR.js";
3
3
  var St = {}, ne = {}, be = {};
4
4
  Object.defineProperty(be, "__esModule", { value: !0 });
5
5
  be.walletLogo = void 0;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./W3MFrameProviderSingleton-BPW-iicw.cjs"),t=e.Oe`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none">
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./W3MFrameProviderSingleton-C56DqhGz.cjs"),t=e.Oe`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none">
2
2
  <mask id="path-1-inside-1_18299_4189">
3
3
  <path
4
4
  class="input_mask__border"
@@ -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-C0cnhaTp.js";
2
- import { J as P, Y as z, G as D } from "./W3MFrameProviderSingleton-C0cnhaTp.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-B9E01rnL.js";
2
+ import { J as k, Y as z, G as D } from "./W3MFrameProviderSingleton-B9E01rnL.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,4 +1,4 @@
1
- import { p as u, o as h, bX as R } from "./W3MFrameProviderSingleton-C0cnhaTp.js";
1
+ import { p as u, r as h, bY as R } from "./W3MFrameProviderSingleton-B9E01rnL.js";
2
2
  const n = u({ history: ["ConnectWallet"], view: "ConnectWallet", data: void 0 }), x = { state: n, subscribe(e) {
3
3
  return h(n, () => e(n));
4
4
  }, push(e, t) {
@@ -148,7 +148,7 @@ const m = { async getDesktopListings(e) {
148
148
  }, getAssetImageUrl(e) {
149
149
  return `${O}/w3m/v1/getAssetImage/${e}?projectId=${v.state.projectId}&sdkType=${E}&sdkVersion=${A}`;
150
150
  } };
151
- var X = Object.defineProperty, k = Object.getOwnPropertySymbols, q = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable, S = (e, t, s) => t in e ? X(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, G = (e, t) => {
151
+ var Y = Object.defineProperty, k = Object.getOwnPropertySymbols, q = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable, S = (e, t, s) => t in e ? Y(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, G = (e, t) => {
152
152
  for (var s in t || (t = {}))
153
153
  q.call(t, s) && S(e, s, t[s]);
154
154
  if (k)
@@ -201,9 +201,9 @@ const N = r.isMobile(), p = u({ wallets: { listings: [], total: 0, page: 1 }, se
201
201
  }, close() {
202
202
  I.open = !1;
203
203
  } };
204
- var Q = Object.defineProperty, T = Object.getOwnPropertySymbols, Y = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable, _ = (e, t, s) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, ee = (e, t) => {
204
+ var Q = Object.defineProperty, T = Object.getOwnPropertySymbols, X = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable, _ = (e, t, s) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, ee = (e, t) => {
205
205
  for (var s in t || (t = {}))
206
- Y.call(t, s) && _(e, s, t[s]);
206
+ X.call(t, s) && _(e, s, t[s]);
207
207
  if (T)
208
208
  for (var s of T(t))
209
209
  Z.call(t, s) && _(e, s, t[s]);
@@ -230,7 +230,7 @@ class se {
230
230
  }
231
231
  async initUi() {
232
232
  if (typeof window < "u") {
233
- await import("./index-Ij2u7oAT.js");
233
+ await import("./index-j73t9fcB.js");
234
234
  const t = document.createElement("wcm-modal");
235
235
  document.body.insertAdjacentElement("beforeend", t), c.setIsUiLoaded(!0);
236
236
  }
@@ -0,0 +1,64 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./W3MFrameProviderSingleton-C56DqhGz.cjs"),o=t.proxy({status:"uninitialized"}),u={state:o,subscribeKey(n,e){return t.subscribeKey(o,n,e)},subscribe(n){return t.subscribe(o,()=>n(o))},_getClient(){if(!o._client)throw new Error("SIWEController client not set");return o._client},async getNonce(n){const i=await this._getClient().getNonce(n);return this.setNonce(i),i},async getSession(){try{const e=await this._getClient().getSession();return e&&(this.setSession(e),this.setStatus("success")),e||void 0}catch{return}},createMessage(n){const i=this._getClient().createMessage(n);return this.setMessage(i),i},async verifyMessage(n){return await this._getClient().verifyMessage(n)},async signIn(){return await this._getClient().signIn()},async signOut(){var e;const n=this._getClient();await n.signOut(),this.setStatus("ready"),this.setSession(void 0),(e=n.onSignOut)==null||e.call(n)},onSignIn(n){var i;const e=this._getClient();(i=e.onSignIn)==null||i.call(e,n)},onSignOut(){var e;const n=this._getClient();(e=n.onSignOut)==null||e.call(n)},async setSIWEClient(n){o._client=t.ref(n),o.session=await this.getSession(),o.status=o.session?"success":"ready",t.ChainController.setAccountProp("siweStatus",o.status,"eip155"),t.OptionsController.setIsSiweEnabled(n.options.enabled)},setNonce(n){o.nonce=n},setStatus(n){o.status=n,t.ChainController.setAccountProp("siweStatus",o.status,"eip155")},setMessage(n){o.message=n},setSession(n){o.session=n,o.status=n?"success":"ready",t.ChainController.setAccountProp("siweStatus",o.status,"eip155")}},d=t.i`
2
+ :host {
3
+ display: flex;
4
+ justify-content: center;
5
+ gap: var(--wui-spacing-2xl);
6
+ }
7
+
8
+ wui-visual-thumbnail:nth-child(1) {
9
+ z-index: 1;
10
+ }
11
+ `;var C=function(n,e,i,r){var a=arguments.length,s=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,i,r);else for(var l=n.length-1;l>=0;l--)(c=n[l])&&(s=(a<3?c(s):a>3?c(e,i,s):c(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s};exports.W3mConnectingSiwe=class extends t.h{constructor(){var e,i;super(...arguments),this.dappImageUrl=(e=t.OptionsController.state.metadata)==null?void 0:e.icons,this.walletImageUrl=(i=t.AccountController.state.connectedWalletInfo)==null?void 0:i.icon}firstUpdated(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelectorAll("wui-visual-thumbnail");e!=null&&e[0]&&this.createAnimation(e[0],"translate(18px)"),e!=null&&e[1]&&this.createAnimation(e[1],"translate(-18px)")}render(){var e;return t.ke`
12
+ <wui-visual-thumbnail
13
+ ?borderRadiusFull=${!0}
14
+ .imageSrc=${(e=this.dappImageUrl)==null?void 0:e[0]}
15
+ ></wui-visual-thumbnail>
16
+ <wui-visual-thumbnail .imageSrc=${this.walletImageUrl}></wui-visual-thumbnail>
17
+ `}createAnimation(e,i){e.animate([{transform:"translateX(0px)"},{transform:i}],{duration:1600,easing:"cubic-bezier(0.56, 0, 0.48, 1)",direction:"alternate",iterations:1/0})}};exports.W3mConnectingSiwe.styles=d;exports.W3mConnectingSiwe=C([t.customElement("w3m-connecting-siwe")],exports.W3mConnectingSiwe);var g=function(n,e,i,r){var a=arguments.length,s=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,i,r);else for(var l=n.length-1;l>=0;l--)(c=n[l])&&(s=(a<3?c(s):a>3?c(e,i,s):c(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s};exports.W3mConnectingSiweView=class extends t.h{constructor(){var e;super(...arguments),this.dappName=(e=t.OptionsController.state.metadata)==null?void 0:e.name,this.isSigning=!1,this.isCancelling=!1}render(){return t.ke`
18
+ <wui-flex justifyContent="center" .padding=${["2xl","0","xxl","0"]}>
19
+ <w3m-connecting-siwe></w3m-connecting-siwe>
20
+ </wui-flex>
21
+ <wui-flex
22
+ .padding=${["0","4xl","l","4xl"]}
23
+ gap="s"
24
+ justifyContent="space-between"
25
+ >
26
+ <wui-text variant="paragraph-500" align="center" color="fg-100"
27
+ >${this.dappName??"Dapp"} needs to connect to your wallet</wui-text
28
+ >
29
+ </wui-flex>
30
+ <wui-flex
31
+ .padding=${["0","3xl","l","3xl"]}
32
+ gap="s"
33
+ justifyContent="space-between"
34
+ >
35
+ <wui-text variant="small-400" align="center" color="fg-200"
36
+ >Sign this message to prove you own this wallet and proceed. Canceling will disconnect
37
+ you.</wui-text
38
+ >
39
+ </wui-flex>
40
+ <wui-flex .padding=${["l","xl","xl","xl"]} gap="s" justifyContent="space-between">
41
+ <wui-button
42
+ size="lg"
43
+ borderRadius="xs"
44
+ fullWidth
45
+ variant="neutral"
46
+ ?loading=${this.isCancelling}
47
+ @click=${this.onCancel.bind(this)}
48
+ data-testid="w3m-connecting-siwe-cancel"
49
+ >
50
+ Cancel
51
+ </wui-button>
52
+ <wui-button
53
+ size="lg"
54
+ borderRadius="xs"
55
+ fullWidth
56
+ variant="main"
57
+ @click=${this.onSign.bind(this)}
58
+ ?loading=${this.isSigning}
59
+ data-testid="w3m-connecting-siwe-sign"
60
+ >
61
+ ${this.isSigning?"Signing...":"Sign"}
62
+ </wui-button>
63
+ </wui-flex>
64
+ `}async onSign(){var e,i,r;this.isSigning=!0,t.EventsController.sendEvent({event:"CLICK_SIGN_SIWE_MESSAGE",type:"track",properties:{network:((e=t.ChainController.state.activeCaipNetwork)==null?void 0:e.id)||"",isSmartAccount:t.AccountController.state.preferredAccountType===t.W3mFrameRpcConstants.ACCOUNT_TYPES.SMART_ACCOUNT}});try{u.setStatus("loading");const a=await u.signIn();return u.setStatus("success"),t.EventsController.sendEvent({event:"SIWE_AUTH_SUCCESS",type:"track",properties:{network:((i=t.ChainController.state.activeCaipNetwork)==null?void 0:i.id)||"",isSmartAccount:t.AccountController.state.preferredAccountType===t.W3mFrameRpcConstants.ACCOUNT_TYPES.SMART_ACCOUNT}}),a}catch{const c=t.AccountController.state.preferredAccountType===t.W3mFrameRpcConstants.ACCOUNT_TYPES.SMART_ACCOUNT;return c?t.SnackController.showError("This application might not support Smart Accounts"):t.SnackController.showError("Signature declined"),u.setStatus("error"),t.EventsController.sendEvent({event:"SIWE_AUTH_ERROR",type:"track",properties:{network:((r=t.ChainController.state.activeCaipNetwork)==null?void 0:r.id)||"",isSmartAccount:c}})}finally{this.isSigning=!1}}async onCancel(){var i;this.isCancelling=!0,t.ChainController.state.activeCaipAddress?(await t.ConnectionController.disconnect(),t.ModalController.close()):t.RouterController.push("Connect"),this.isCancelling=!1,t.EventsController.sendEvent({event:"CLICK_CANCEL_SIWE",type:"track",properties:{network:((i=t.ChainController.state.activeCaipNetwork)==null?void 0:i.id)||"",isSmartAccount:t.AccountController.state.preferredAccountType===t.W3mFrameRpcConstants.ACCOUNT_TYPES.SMART_ACCOUNT}})}};g([t.r()],exports.W3mConnectingSiweView.prototype,"isSigning",void 0);g([t.r()],exports.W3mConnectingSiweView.prototype,"isCancelling",void 0);exports.W3mConnectingSiweView=g([t.customElement("w3m-connecting-siwe-view")],exports.W3mConnectingSiweView);exports.formatMessage=t.Jf;exports.getDidAddress=t.Yi;exports.getDidChainId=t.Gi;exports.SIWEController=u;
@@ -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-C0cnhaTp.js";
2
- import { a as ce, b as Ir, r as Dt, j as Ua } from "./hooks.module-DDA9XQhP.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-B9E01rnL.js";
2
+ import { a as ce, b as Ir, r as Dt, j as Ua } from "./hooks.module-OoOP-iZR.js";
3
3
  var Hi = {}, Ft = {}, Ar = {};
4
4
  Object.defineProperty(Ar, "__esModule", { value: !0 });
5
5
  Ar.walletLogo = void 0;
@@ -1 +1 @@
1
- "use strict";const p=require("./W3MFrameProviderSingleton-BPW-iicw.cjs");function _(n,a){for(var i=0;i<a.length;i++){const e=a[i];if(typeof e!="string"&&!Array.isArray(e)){for(const s in e)if(s!=="default"&&!(s in n)){const o=Object.getOwnPropertyDescriptor(e,s);o&&Object.defineProperty(n,s,o.get?o:{enumerable:!0,get:()=>e[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var l={},g={},f={};Object.defineProperty(f,"__esModule",{value:!0});f.getLowerCase=void 0;function w(n){return n&&n.toLowerCase()}f.getLowerCase=w;Object.defineProperty(g,"__esModule",{value:!0});g.SafeAppProvider=void 0;const m=p.eventsExports,u=f;class k extends m.EventEmitter{constructor(a,i){super(),this.submittedTxs=new Map,this.safe=a,this.sdk=i}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(a){const{method:i,params:e=[]}=a;switch(i){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return`0x${this.chainId.toString(16)}`;case"personal_sign":{const[t,r]=e;if(this.safe.safeAddress.toLowerCase()!==r.toLowerCase())throw new Error("The address or message hash is invalid");const h=await this.sdk.txs.signMessage(t);return("signature"in h?h.signature:void 0)||"0x"}case"eth_sign":{const[t,r]=e;if(this.safe.safeAddress.toLowerCase()!==t.toLowerCase()||!r.startsWith("0x"))throw new Error("The address or message hash is invalid");const h=await this.sdk.txs.signMessage(r);return("signature"in h?h.signature:void 0)||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{const[t,r]=e,h=typeof r=="string"?JSON.parse(r):r;if(this.safe.safeAddress.toLowerCase()!==t.toLowerCase())throw new Error("The address is invalid");const c=await this.sdk.txs.signTypedMessage(h);return("signature"in c?c.signature:void 0)||"0x"}case"eth_sendTransaction":const s={...e[0],value:e[0].value||"0",data:e[0].data||"0x"};typeof s.gas=="string"&&s.gas.startsWith("0x")&&(s.gas=parseInt(s.gas,16));const o=await this.sdk.txs.send({txs:[s],params:{safeTxGas:s.gas}});return this.submittedTxs.set(o.safeTxHash,{from:this.safe.safeAddress,hash:o.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:s.data,value:s.value,to:s.to,blockHash:null,blockNumber:null,transactionIndex:null}),o.safeTxHash;case"eth_blockNumber":return(await this.sdk.eth.getBlockByNumber(["latest"])).number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,u.getLowerCase)(e[0]),e[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,u.getLowerCase)(e[0]),e[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,u.getLowerCase)(e[0]),e[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,u.getLowerCase)(e[0]),e[1],e[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([e[0],e[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([e[0],e[1]]);case"eth_getTransactionByHash":let d=e[0];try{d=(await this.sdk.txs.getBySafeTxHash(d)).txHash||d}catch{}return this.submittedTxs.has(d)?this.submittedTxs.get(d):this.sdk.eth.getTransactionByHash([d]).then(t=>(t&&(t.hash=e[0]),t));case"eth_getTransactionReceipt":{let t=e[0];try{t=(await this.sdk.txs.getBySafeTxHash(t)).txHash||t}catch{}return this.sdk.eth.getTransactionReceipt([t]).then(r=>(r&&(r.transactionHash=e[0]),r))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(e[0]);case"eth_call":return this.sdk.eth.call([e[0],e[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([e[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(e[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([e[0]]);default:throw Error(`"${a.method}" not implemented`)}}send(a,i){a||i("Undefined request"),this.request(a).then(e=>i(null,{jsonrpc:"2.0",id:a.id,result:e})).catch(e=>i(e,null))}}g.SafeAppProvider=k;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.SafeAppProvider=void 0;var a=g;Object.defineProperty(n,"SafeAppProvider",{enumerable:!0,get:function(){return a.SafeAppProvider}})})(l);const y=_({__proto__:null},[l]);exports.index=y;
1
+ "use strict";const p=require("./W3MFrameProviderSingleton-C56DqhGz.cjs");function _(n,a){for(var i=0;i<a.length;i++){const e=a[i];if(typeof e!="string"&&!Array.isArray(e)){for(const s in e)if(s!=="default"&&!(s in n)){const o=Object.getOwnPropertyDescriptor(e,s);o&&Object.defineProperty(n,s,o.get?o:{enumerable:!0,get:()=>e[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var l={},g={},f={};Object.defineProperty(f,"__esModule",{value:!0});f.getLowerCase=void 0;function w(n){return n&&n.toLowerCase()}f.getLowerCase=w;Object.defineProperty(g,"__esModule",{value:!0});g.SafeAppProvider=void 0;const m=p.eventsExports,u=f;class k extends m.EventEmitter{constructor(a,i){super(),this.submittedTxs=new Map,this.safe=a,this.sdk=i}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(a){const{method:i,params:e=[]}=a;switch(i){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return`0x${this.chainId.toString(16)}`;case"personal_sign":{const[t,r]=e;if(this.safe.safeAddress.toLowerCase()!==r.toLowerCase())throw new Error("The address or message hash is invalid");const h=await this.sdk.txs.signMessage(t);return("signature"in h?h.signature:void 0)||"0x"}case"eth_sign":{const[t,r]=e;if(this.safe.safeAddress.toLowerCase()!==t.toLowerCase()||!r.startsWith("0x"))throw new Error("The address or message hash is invalid");const h=await this.sdk.txs.signMessage(r);return("signature"in h?h.signature:void 0)||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{const[t,r]=e,h=typeof r=="string"?JSON.parse(r):r;if(this.safe.safeAddress.toLowerCase()!==t.toLowerCase())throw new Error("The address is invalid");const c=await this.sdk.txs.signTypedMessage(h);return("signature"in c?c.signature:void 0)||"0x"}case"eth_sendTransaction":const s={...e[0],value:e[0].value||"0",data:e[0].data||"0x"};typeof s.gas=="string"&&s.gas.startsWith("0x")&&(s.gas=parseInt(s.gas,16));const o=await this.sdk.txs.send({txs:[s],params:{safeTxGas:s.gas}});return this.submittedTxs.set(o.safeTxHash,{from:this.safe.safeAddress,hash:o.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:s.data,value:s.value,to:s.to,blockHash:null,blockNumber:null,transactionIndex:null}),o.safeTxHash;case"eth_blockNumber":return(await this.sdk.eth.getBlockByNumber(["latest"])).number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,u.getLowerCase)(e[0]),e[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,u.getLowerCase)(e[0]),e[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,u.getLowerCase)(e[0]),e[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,u.getLowerCase)(e[0]),e[1],e[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([e[0],e[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([e[0],e[1]]);case"eth_getTransactionByHash":let d=e[0];try{d=(await this.sdk.txs.getBySafeTxHash(d)).txHash||d}catch{}return this.submittedTxs.has(d)?this.submittedTxs.get(d):this.sdk.eth.getTransactionByHash([d]).then(t=>(t&&(t.hash=e[0]),t));case"eth_getTransactionReceipt":{let t=e[0];try{t=(await this.sdk.txs.getBySafeTxHash(t)).txHash||t}catch{}return this.sdk.eth.getTransactionReceipt([t]).then(r=>(r&&(r.transactionHash=e[0]),r))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(e[0]);case"eth_call":return this.sdk.eth.call([e[0],e[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([e[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(e[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([e[0]]);default:throw Error(`"${a.method}" not implemented`)}}send(a,i){a||i("Undefined request"),this.request(a).then(e=>i(null,{jsonrpc:"2.0",id:a.id,result:e})).catch(e=>i(e,null))}}g.SafeAppProvider=k;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.SafeAppProvider=void 0;var a=g;Object.defineProperty(n,"SafeAppProvider",{enumerable:!0,get:function(){return a.SafeAppProvider}})})(l);const y=_({__proto__:null},[l]);exports.index=y;