-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4925.5f01c078536b365b8703.js
1 lines (1 loc) · 65.6 KB
/
4925.5f01c078536b365b8703.js
1
"use strict";(self.webpackChunktimeless_frontend=self.webpackChunktimeless_frontend||[]).push([[4925],{84925:(Qt,x,$)=>{$.r(x),$.d(x,{default:()=>Yt});var Q=$(34553),e=$(37966),Le=$(80909),Ve=$(72095);class De extends Ve.w0{constructor(n,l){super()}schedule(n,l=0){return this}}const q={setInterval(t,n,...l){const{delegate:r}=q;return(null==r?void 0:r.setInterval)?r.setInterval(t,n,...l):setInterval(t,n,...l)},clearInterval(t){const{delegate:n}=q;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0};var We=$(36821),Ze=$(50150);class U{constructor(n,l=U.now){this.schedulerActionCtor=n,this.now=l}schedule(n,l=0,r){return new this.schedulerActionCtor(this,n).schedule(r,l)}}U.now=Ze.l.now;const Ke=new class extends U{constructor(n,l=U.now){super(n,l),this.actions=[],this._active=!1}flush(n){const{actions:l}=this;if(this._active)return void l.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=l.shift());if(this._active=!1,r){for(;n=l.shift();)n.unsubscribe();throw r}}}(class extends De{constructor(n,l){super(n,l),this.scheduler=n,this.work=l,this.pending=!1}schedule(n,l=0){var r;if(this.closed)return this;this.state=n;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,l)),this.pending=!0,this.delay=l,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,l),this}requestAsyncId(n,l,r=0){return q.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,l,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return l;null!=l&&q.clearInterval(l)}execute(n,l){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,l);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,l){let o,r=!1;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:l}=this,{actions:r}=l;this.work=this.state=this.scheduler=null,this.pending=!1,(0,We.P)(r,this),null!=n&&(this.id=this.recycleAsyncId(l,n,null)),this.delay=null,super.unsubscribe()}}});var Ne=$(51665),Oe=$(74661),Ue=$(83005),O=$(36645),R=$(5677),Y=$(1238),Je=$(74204),Xe=$(44298),qe=$(67379),ee=$(66279),Ye=$(19475),xe=$(94654),te=$(79696),ne=($(23845),$(17522),$(50404),$(92280),$(18560),$(41413),$(42624),'<svg width="100%" height="24" viewBox="0 5 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 10L12 15L17 10H7Z" fill="currentColor"/></svg>'),J='\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z" fill="currentColor"/>\n </svg>\n';function et(t){(0,e.a)(t,"svelte-1uqued6","select.svelte-1uqued6{border:none;background-image:none;background-color:transparent;-webkit-appearance:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;appearance:none;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));transition:width 250ms ease-in-out;background-repeat:no-repeat, repeat;background-position:right 0px top 0px, 0 0;scrollbar-width:none;-ms-overflow-style:none;padding:0 14px 0 0;white-space:nowrap;text-overflow:ellipsis}select.minimized_ac.svelte-1uqued6{min-width:80px;max-width:80px}select.maximized_ac.svelte-1uqued6{width:auto !important}select.svelte-1uqued6:focus{outline:none}span.switching-placeholder.svelte-1uqued6{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));min-width:80px;max-width:80px;padding:0 8px 0 4px}")}function le(t,n,l){const r=t.slice();return r[15]=n[l],r}function re(t){let n;function l(i,s){return i[7]?nt:tt}let r=l(t),o=r(t);return{c(){o.c(),n=(0,e.e)()},m(i,s){o.m(i,s),(0,e.b)(i,n,s)},p(i,s){r===(r=l(i))&&o?o.p(i,s):(o.d(1),o=r(i),o&&(o.c(),o.m(n.parentNode,n)))},d(i){o.d(i),i&&(0,e.d)(n)}}}function tt(t){let n,r,s,c,a,u,d,l=!(0,e.h)(t[6].chains[0],t[2]),o=[],i=new Map,m=l&&oe(t),k=t[2];const g=h=>h[15].id;for(let h=0;h<k.length;h+=1){let p=le(t,k,h),f=g(p);i.set(f,o[h]=ie(f,p))}return{c(){n=(0,e.j)("select"),m&&m.c(),r=(0,e.e)();for(let h=0;h<o.length;h+=1)o[h].c();(0,e.k)(n,"class",s=(0,e.l)(`flex justify-center items-center pointer ${t[4]}`)+" svelte-1uqued6"),(0,e.k)(n,"style",a=`\n color: var(${t[1]},\n var(--account-center-network-selector-color, var(--gray-500)));\n background-image: url('data:image/svg+xml;utf8,${t[0]}'); ${t[3]?"font-weight: 600;":""}`)},m(h,p){(0,e.b)(h,n,p),m&&m.m(n,null),(0,e.m)(n,r);for(let f=0;f<o.length;f+=1)o[f]&&o[f].m(n,null);(0,e.o)(n,t[6].chains[0].id),t[13](n),u||(d=(0,e.p)(n,"change",t[10]),u=!0)},p(h,p){68&p&&(l=!(0,e.h)(h[6].chains[0],h[2])),l?m?m.p(h,p):(m=oe(h),m.c(),m.m(n,r)):m&&(m.d(1),m=null),4&p&&(k=h[2],o=(0,e.u)(o,p,g,1,h,k,i,n,e.q,ie,null,le)),16&p&&s!==(s=(0,e.l)(`flex justify-center items-center pointer ${h[4]}`)+" svelte-1uqued6")&&(0,e.k)(n,"class",s),64&p&&c!==(c=h[6].chains[0].id)&&(0,e.o)(n,h[6].chains[0].id),11&p&&a!==(a=`\n color: var(${h[1]},\n var(--account-center-network-selector-color, var(--gray-500)));\n background-image: url('data:image/svg+xml;utf8,${h[0]}'); ${h[3]?"font-weight: 600;":""}`)&&(0,e.k)(n,"style",a)},d(h){h&&(0,e.d)(n),m&&m.d();for(let p=0;p<o.length;p+=1)o[p].d();t[13](null),u=!1,d()}}}function nt(t){let n,l,r,o;return{c(){n=(0,e.j)("span"),l=(0,e.t)("switching..."),(0,e.k)(n,"class",r=(0,e.l)(`switching-placeholder ${t[4]}`)+" svelte-1uqued6"),(0,e.k)(n,"style",o=`\n color: var(${t[1]},\n var(--account-center-network-selector-color, var(--gray-500)));\n `)},m(i,s){(0,e.b)(i,n,s),(0,e.m)(n,l)},p(i,s){16&s&&r!==(r=(0,e.l)(`switching-placeholder ${i[4]}`)+" svelte-1uqued6")&&(0,e.k)(n,"class",r),2&s&&o!==(o=`\n color: var(${i[1]},\n var(--account-center-network-selector-color, var(--gray-500)));\n `)&&(0,e.k)(n,"style",o)},d(i){i&&(0,e.d)(n)}}}function oe(t){let n,r,o,l=(e.r[t[6].chains[0].id]||"unrecognized")+"";return{c(){n=(0,e.j)("option"),r=(0,e.t)(l),n.__value=o=t[6].chains[0].id,n.value=n.__value},m(i,s){(0,e.b)(i,n,s),(0,e.m)(n,r)},p(i,s){64&s&&l!==(l=(e.r[i[6].chains[0].id]||"unrecognized")+"")&&(0,e.v)(r,l),64&s&&o!==(o=i[6].chains[0].id)&&(n.__value=o,n.value=n.__value)},d(i){i&&(0,e.d)(n)}}}function ie(t,n){let l,o,i,r=(n[15].label||e.r[n[15].id]||n[15].id)+"";return{key:t,first:null,c(){l=(0,e.j)("option"),o=(0,e.t)(r),l.__value=i=n[15].id,l.value=l.__value,this.first=l},m(s,c){(0,e.b)(s,l,c),(0,e.m)(l,o)},p(s,c){n=s,4&c&&r!==(r=(n[15].label||e.r[n[15].id]||n[15].id)+"")&&(0,e.v)(o,r),4&c&&i!==(i=n[15].id)&&(l.__value=i,l.value=l.__value)},d(s){s&&(0,e.d)(l)}}}function lt(t){let n,l=t[6]&&re(t);return{c(){l&&l.c(),n=(0,e.e)()},m(r,o){l&&l.m(r,o),(0,e.b)(r,n,o)},p(r,[o]){r[6]?l?l.p(r,o):(l=re(r),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i:e.n,o:e.n,d(r){l&&l.d(r),r&&(0,e.d)(n)}}}function rt(t,n,l){let r,o,i,s;(0,e.c)(t,e.w,b=>l(12,i=b));let{selectIcon:c=ne}=n,{colorVar:a}=n,{chains:u}=n,{bold:d=!1}=n,{parentCSSId:m=""}=n;const k=new xe.X(!1);let g;(0,e.c)(t,k,b=>l(7,s=b));const h=function(...t){const n=(0,ee.yG)(t),l=(0,ee._6)(t,1/0),r=t;return r.length?1===r.length?(0,Xe.Xf)(r[0]):(0,Je.J)(l)((0,Ye.D)(r,n)):qe.E}(e.w,k.pipe((0,Le.h)((n,l)=>1<=l))).pipe(function(t,n=Ke){return(0,Ne.e)((l,r)=>{let o=null,i=null,s=null;const c=()=>{if(o){o.unsubscribe(),o=null;const u=i;i=null,r.next(u)}};function a(){const u=s+t,d=n.now();if(d<u)return o=this.schedule(void 0,u-d),void r.add(o);c()}l.subscribe((0,Oe.x)(r,u=>{i=u,s=n.now(),o||(o=n.schedule(a,t),r.add(o))},()=>{c(),r.complete()},void 0,()=>{i=o=null}))})}(50),(0,Ue.x)((b,w)=>"boolean"!=typeof b&&"boolean"!=typeof w&&b[0]&&w[0]&&b[0].chains[0].id===w[0].chains[0].id));function f(){return(f=(0,Q.Z)(function*(){const b=g.selectedOptions[0].value;b!==r.chains[0].id&&(k.next(!0),yield(0,e.f)({chainId:b,chainNamespace:"evm",wallet:r.label}),k.next(!1))})).apply(this,arguments)}return(0,e.c)(t,h,b=>l(11,o=b)),t.$$set=b=>{"selectIcon"in b&&l(0,c=b.selectIcon),"colorVar"in b&&l(1,a=b.colorVar),"chains"in b&&l(2,u=b.chains),"bold"in b&&l(3,d=b.bold),"parentCSSId"in b&&l(4,m=b.parentCSSId)},t.$$.update=()=>{4096&t.$$.dirty&&l(6,[r]=i,r),2048&t.$$.dirty&&o&&function(){if(!g)return;let b=document.createElement("option");b.textContent=g.selectedOptions[0].textContent;let w=document.createElement("select");w.style.visibility="hidden",w.style.position="fixed",w.appendChild(b),g.after(w),l(5,g.style.width=w.clientWidth-22+"px",g),w.remove()}()},[c,a,u,d,m,g,r,s,k,h,function(){return f.apply(this,arguments)},o,i,function(b){e.g[b?"unshift":"push"](()=>{g=b,l(5,g),l(2,u),l(6,r),l(12,i)})}]}class ae extends e.S{constructor(n){super(),(0,e.i)(this,n,rt,lt,e.s,{selectIcon:0,colorVar:1,chains:2,bold:3,parentCSSId:4},et)}}function it(t){(0,e.a)(t,"svelte-hb2n95",".container.svelte-hb2n95.svelte-hb2n95{display:flex;align-items:center;gap:0.5rem;cursor:pointer;position:relative;z-index:0;width:100%;padding:0.25rem;margin-bottom:0.25rem;border-radius:12px;transition:background-color 150ms ease-in-out}.container.svelte-hb2n95.svelte-hb2n95::before{content:'';display:block;position:absolute;top:0;bottom:0;left:0;right:0;height:100%;width:100%;background:var(--action-color);border-radius:12px;z-index:-1;opacity:0}.container.svelte-hb2n95.svelte-hb2n95:hover::before{opacity:0.2}.container.svelte-hb2n95:hover .balance.svelte-hb2n95,.container.svelte-hb2n95:hover .elipsis-container.svelte-hb2n95{opacity:1}.container.svelte-hb2n95:hover .balance.svelte-hb2n95{color:var(--account-center-maximized-balance-color, inherit)}.container.primary.svelte-hb2n95.svelte-hb2n95:hover{background-color:var(\n --account-center-maximized-account-section-background-hover\n )}.account-details.svelte-hb2n95.svelte-hb2n95{flex:1 1;display:flex;gap:inherit;overflow:hidden}.address-domain.svelte-hb2n95.svelte-hb2n95{flex:1 0 auto;max-width:70%;white-space:nowrap;font-weight:600;color:var(--account-center-maximized-address-color, inherit);overflow:scroll;scrollbar-width:none;-ms-overflow-style:none}.address-domain.svelte-hb2n95.svelte-hb2n95::-webkit-scrollbar{display:none}.balance.svelte-hb2n95.svelte-hb2n95{flex:1 1 auto;max-width:70%;white-space:nowrap;text-align:end;opacity:0.4;transition:color 150ms ease-in-out, background-color 150ms ease-in-out;overflow:scroll;scrollbar-width:none;-ms-overflow-style:none}.balance.svelte-hb2n95.svelte-hb2n95::-webkit-scrollbar{display:none}.elipsis-container.svelte-hb2n95.svelte-hb2n95{flex:0;padding:0.25rem;border-radius:24px;transition:color 150ms ease-in-out, background-color 150ms ease-in-out;background-color:transparent;opacity:0.4}.elipsis-container.svelte-hb2n95.svelte-hb2n95:hover{color:var(--text-color)}.elipsis-container.active.svelte-hb2n95.svelte-hb2n95{color:var(--text-color)}.elipsis.svelte-hb2n95.svelte-hb2n95{width:24px}.menu.svelte-hb2n95.svelte-hb2n95{background:var(--onboard-white, var(--white));border:1px solid var(--onboard-gray-100, var(--gray-100));border-radius:8px;list-style-type:none;right:0.25rem;top:2.25rem;margin:0;padding:0;border:none;overflow:hidden;z-index:1}.menu.svelte-hb2n95 li.svelte-hb2n95{color:var(--onboard-primary-500, var(--primary-500));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));padding:12px 16px;background:var(--onboard-white, var(--white));transition:background-color 150ms ease-in-out;cursor:pointer}.menu.svelte-hb2n95 li.svelte-hb2n95:hover{background:var(--onboard-primary-200, var(--primary-200))}")}function se(t,n,l){const r=t.slice();return r[14]=n[l].address,r[15]=n[l].ens,r[16]=n[l].uns,r[17]=n[l].balance,r[19]=l,r}function ce(t){let n,l,r;return l=new e.R({props:{size:14}}),{c(){n=(0,e.j)("div"),(0,e.F)(l.$$.fragment),(0,e.T)(n,"right","-5px"),(0,e.T)(n,"bottom","-5px"),(0,e.k)(n,"class","drop-shadow absolute")},m(o,i){(0,e.b)(o,n,i),(0,e.I)(l,n,null),r=!0},i(o){r||((0,e.x)(l.$$.fragment,o),r=!0)},o(o){(0,e.A)(l.$$.fragment,o),r=!1},d(o){o&&(0,e.d)(n),(0,e.K)(l)}}}function de(t){let n,r,o,l=ve(t[17])+"";return{c(){n=(0,e.j)("div"),r=(0,e.t)(l),(0,e.k)(n,"class","balance svelte-hb2n95")},m(i,s){(0,e.b)(i,n,s),(0,e.m)(n,r)},p(i,s){1&s&&l!==(l=ve(i[17])+"")&&(0,e.v)(r,l)},i(i){i&&(o||(0,e.U)(()=>{o=(0,e.V)(n,e.X,{}),o.start()}))},o:e.n,d(i){i&&(0,e.d)(n)}}}function ue(t){let n,l,o,i,s,c,u,d,m,g,h,p,f,r=t[4]("accountCenter.addAccount",{default:t[2].accountCenter.addAccount})+"",a=t[4]("accountCenter.disconnectWallet",{default:t[2].accountCenter.disconnectWallet})+"",k=t[2].accountCenter.copyAddress+"",v=!(t[1]&&0===t[19])&&fe(t);function y(){return t[13](t[15],t[16],t[14])}return{c(){n=(0,e.j)("ul"),l=(0,e.j)("li"),o=(0,e.t)(r),i=(0,e.G)(),v&&v.c(),s=(0,e.G)(),c=(0,e.j)("li"),u=(0,e.t)(a),d=(0,e.G)(),m=(0,e.j)("li"),g=(0,e.t)(k),(0,e.k)(l,"class","svelte-hb2n95"),(0,e.k)(c,"class","svelte-hb2n95"),(0,e.k)(m,"class","svelte-hb2n95"),(0,e.k)(n,"class","menu absolute svelte-hb2n95")},m(b,w){(0,e.b)(b,n,w),(0,e.m)(n,l),(0,e.m)(l,o),(0,e.m)(n,i),v&&v.m(n,null),(0,e.m)(n,s),(0,e.m)(n,c),(0,e.m)(c,u),(0,e.m)(n,d),(0,e.m)(n,m),(0,e.m)(m,g),p||(f=[(0,e.p)(l,"click",(0,e.J)(t[10])),(0,e.p)(c,"click",(0,e.J)(t[12])),(0,e.p)(m,"click",(0,e.J)(y))],p=!0)},p(b,w){t=b,20&w&&r!==(r=t[4]("accountCenter.addAccount",{default:t[2].accountCenter.addAccount})+"")&&(0,e.v)(o,r),t[1]&&0===t[19]?v&&(v.d(1),v=null):v?v.p(t,w):(v=fe(t),v.c(),v.m(n,s)),20&w&&a!==(a=t[4]("accountCenter.disconnectWallet",{default:t[2].accountCenter.disconnectWallet})+"")&&(0,e.v)(u,a),4&w&&k!==(k=t[2].accountCenter.copyAddress+"")&&(0,e.v)(g,k)},i(b){b&&(h||(0,e.U)(()=>{h=(0,e.V)(n,e.X,{}),h.start()}))},o:e.n,d(b){b&&(0,e.d)(n),v&&v.d(),p=!1,(0,e.L)(f)}}}function fe(t){let n,r,o,i,l=t[4]("accountCenter.setPrimaryAccount",{default:t[2].accountCenter.setPrimaryAccount})+"";function s(){return t[11](t[14])}return{c(){n=(0,e.j)("li"),r=(0,e.t)(l),(0,e.k)(n,"class","svelte-hb2n95")},m(c,a){(0,e.b)(c,n,a),(0,e.m)(n,r),o||(i=(0,e.p)(n,"click",(0,e.J)(s)),o=!0)},p(c,a){t=c,20&a&&l!==(l=t[4]("accountCenter.setPrimaryAccount",{default:t[2].accountCenter.setPrimaryAccount})+"")&&(0,e.v)(r,l)},d(c){c&&(0,e.d)(n),o=!1,i()}}}function me(t){let n,l,r,o,i,s,c,a,d,m,k,g,h,p,f,v,y,b,u=(t[15]?(0,e.D)(t[15].name):t[16]?(0,e.D)(t[16].name):(0,e.E)(t[14]))+"";o=new e.W({props:{size:32,padding:4,background:"custom",color:"#EFF1FC",customBackgroundColor:t[1]&&0===t[19]?"rgba(24, 206, 102, 0.2)":"rgba(235, 235, 237, 0.1)",border:t[1]&&0===t[19]?"green":"gray",radius:8,icon:t[0].icon}});let w=t[1]&&0===t[19]&&ce(),C=t[17]&&de(t);function I(){return t[8](t[14])}function T(){return t[9](t[14])}let z=t[3]===t[14]&&ue(t);return{c(){n=(0,e.j)("div"),l=(0,e.j)("div"),r=(0,e.j)("div"),(0,e.F)(o.$$.fragment),i=(0,e.G)(),w&&w.c(),s=(0,e.G)(),c=(0,e.j)("div"),a=(0,e.j)("div"),d=(0,e.t)(u),m=(0,e.G)(),C&&C.c(),k=(0,e.G)(),g=(0,e.j)("div"),h=(0,e.j)("div"),p=(0,e.G)(),z&&z.c(),f=(0,e.G)(),(0,e.k)(r,"class","flex items-center relative"),(0,e.k)(a,"class","address-domain svelte-hb2n95"),(0,e.k)(c,"class","account-details svelte-hb2n95"),(0,e.k)(h,"class","elipsis pointer flex items-center justify-center relative svelte-hb2n95"),(0,e.k)(g,"class","elipsis-container svelte-hb2n95"),(0,e.H)(g,"active",t[3]===t[14]),(0,e.k)(l,"class","container svelte-hb2n95"),(0,e.H)(l,"primary",t[1]&&0===t[19]),(0,e.k)(n,"class","relative")},m(j,M){(0,e.b)(j,n,M),(0,e.m)(n,l),(0,e.m)(l,r),(0,e.I)(o,r,null),(0,e.m)(r,i),w&&w.m(r,null),(0,e.m)(l,s),(0,e.m)(l,c),(0,e.m)(c,a),(0,e.m)(a,d),(0,e.m)(c,m),C&&C.m(c,null),(0,e.m)(l,k),(0,e.m)(l,g),(0,e.m)(g,h),h.innerHTML='\n <svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M12 8C13.1 8 14 7.1 14 6C14 4.9 13.1 4 12 4C10.9 4 10 4.9 10 6C10 7.1 10.9 8 12 8ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM12 16C10.9 16 10 16.9 10 18C10 19.1 10.9 20 12 20C13.1 20 14 19.1 14 18C14 16.9 13.1 16 12 16Z" fill="currentColor"/>\n </svg>\n',(0,e.m)(n,p),z&&z.m(n,null),(0,e.m)(n,f),v=!0,y||(b=[(0,e.p)(h,"click",(0,e.J)(I)),(0,e.p)(l,"click",T)],y=!0)},p(j,M){t=j;const F={};2&M&&(F.customBackgroundColor=t[1]&&0===t[19]?"rgba(24, 206, 102, 0.2)":"rgba(235, 235, 237, 0.1)"),2&M&&(F.border=t[1]&&0===t[19]?"green":"gray"),1&M&&(F.icon=t[0].icon),o.$set(F),t[1]&&0===t[19]?w?2&M&&(0,e.x)(w,1):(w=ce(),w.c(),(0,e.x)(w,1),w.m(r,null)):w&&((0,e.y)(),(0,e.A)(w,1,1,()=>{w=null}),(0,e.z)()),(!v||1&M)&&u!==(u=(t[15]?(0,e.D)(t[15].name):t[16]?(0,e.D)(t[16].name):(0,e.E)(t[14]))+"")&&(0,e.v)(d,u),t[17]?C?(C.p(t,M),1&M&&(0,e.x)(C,1)):(C=de(t),C.c(),(0,e.x)(C,1),C.m(c,null)):C&&(C.d(1),C=null),(!v||9&M)&&(0,e.H)(g,"active",t[3]===t[14]),(!v||2&M)&&(0,e.H)(l,"primary",t[1]&&0===t[19]),t[3]===t[14]?z?(z.p(t,M),9&M&&(0,e.x)(z,1)):(z=ue(t),z.c(),(0,e.x)(z,1),z.m(n,f)):z&&(z.d(1),z=null)},i(j){v||((0,e.x)(o.$$.fragment,j),(0,e.x)(w),(0,e.x)(C),(0,e.x)(z),v=!0)},o(j){(0,e.A)(o.$$.fragment,j),(0,e.A)(w),v=!1},d(j){j&&(0,e.d)(n),(0,e.K)(o),w&&w.d(),C&&C.d(),z&&z.d(),y=!1,(0,e.L)(b)}}}function at(t){let n,l,r=t[0].accounts,o=[];for(let s=0;s<r.length;s+=1)o[s]=me(se(t,r,s));const i=s=>(0,e.A)(o[s],1,1,()=>{o[s]=null});return{c(){for(let s=0;s<o.length;s+=1)o[s].c();n=(0,e.e)()},m(s,c){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,c);(0,e.b)(s,n,c),l=!0},p(s,[c]){if(127&c){let a;for(r=s[0].accounts,a=0;a<r.length;a+=1){const u=se(s,r,a);o[a]?(o[a].p(u,c),(0,e.x)(o[a],1)):(o[a]=me(u),o[a].c(),(0,e.x)(o[a],1),o[a].m(n.parentNode,n))}for((0,e.y)(),a=r.length;a<o.length;a+=1)i(a);(0,e.z)()}},i(s){if(!l){for(let c=0;c<r.length;c+=1)(0,e.x)(o[c]);l=!0}},o(s){o=o.filter(Boolean);for(let c=0;c<o.length;c+=1)(0,e.A)(o[c]);l=!1},d(s){(0,e.B)(o,s),s&&(0,e.d)(n)}}}function ve(t){const[n]=Object.keys(t);return`${t[n].length>7?t[n].slice(0,7):t[n]} ${n}`}function st(t,n,l){let r;(0,e.c)(t,Y._,v=>l(4,r=v));let{wallet:o}=n,{primary:i}=n;function s(){l(3,c="")}let c="";function a(v){return u.apply(this,arguments)}function u(){return(u=(0,Q.Z)(function*(v){try{yield(0,e.M)(v.provider)}catch(y){const{code:b}=y;(b===te.ProviderRpcErrorCode.UNSUPPORTED_METHOD||b===te.ProviderRpcErrorCode.DOES_NOT_EXIST)&&e.N.next({inProgress:!1,actionRequired:v.label})}})).apply(this,arguments)}function d(){l(2,e.C.accountCenter.copyAddress="Copied Successfully",e.C),setTimeout(s,500),setTimeout(()=>{l(2,e.C.accountCenter.copyAddress="Copy Wallet address",e.C)},700)}return t.$$set=v=>{"wallet"in v&&l(0,o=v.wallet),"primary"in v&&l(1,i=v.primary)},[o,i,e.C,c,r,a,d,s,v=>l(3,c=c===v?"":v),v=>(0,e.O)(o,v),()=>{l(3,c=""),a(o)},v=>{l(3,c=""),(0,e.O)(o,v)},()=>{l(3,c=""),(0,e.P)({label:o.label})},(v,y,b)=>{(0,e.Q)(v?v.name:y?y.name:b).then(()=>{d()})}]}class ct extends e.S{constructor(n){super(),(0,e.i)(this,n,st,at,e.s,{wallet:0,primary:1,hideMenu:7},it)}get hideMenu(){return this.$$.ctx[7]}}var pe='<svg width="14" height="18" viewBox="0 0 14 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.99998 17.3125C5.05553 16.8264 3.45831 15.6979 2.20831 13.9271C0.958313 12.1562 0.333313 10.2153 0.333313 8.10417V3.14583L6.99998 0.645833L13.6666 3.14583V8.10417C13.6666 10.2153 13.0416 12.1562 11.7916 13.9271C10.5416 15.6979 8.94442 16.8264 6.99998 17.3125ZM5.12498 12.3333H8.87498C9.05553 12.3333 9.20484 12.2743 9.3229 12.1562C9.44095 12.0382 9.49998 11.8889 9.49998 11.7083V8.79167C9.49998 8.61111 9.44095 8.46181 9.3229 8.34375C9.20484 8.22569 9.05553 8.16667 8.87498 8.16667H8.66665V7.33333C8.66665 6.875 8.50345 6.48264 8.17706 6.15625C7.85067 5.82986 7.45831 5.66667 6.99998 5.66667C6.54165 5.66667 6.14928 5.82986 5.8229 6.15625C5.49651 6.48264 5.33331 6.875 5.33331 7.33333V8.16667H5.12498C4.94442 8.16667 4.79512 8.22569 4.67706 8.34375C4.55901 8.46181 4.49998 8.61111 4.49998 8.79167V11.7083C4.49998 11.8889 4.55901 12.0382 4.67706 12.1562C4.79512 12.2743 4.94442 12.3333 5.12498 12.3333ZM5.95831 8.16667V7.33333C5.95831 7.05556 6.06248 6.82292 6.27081 6.63542C6.47915 6.44792 6.7222 6.35417 6.99998 6.35417C7.27776 6.35417 7.52081 6.44792 7.72915 6.63542C7.93748 6.82292 8.04165 7.05556 8.04165 7.33333V8.16667H5.95831Z" fill="#929BED"/>\n</svg>\n';function mt(t){(0,e.a)(t,"svelte-1ubxcdp",".content.svelte-1ubxcdp{padding:1rem;width:300px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:24px}.icon-container.svelte-1ubxcdp{width:3rem;height:3rem;background:var(--onboard-warning-100, var(--warning-100));border-radius:24px;padding:12px;color:var(--onboard-warning-500, var(--warning-500))}h4.svelte-1ubxcdp{margin:1.5rem 0 0.5rem 0;font-weight:600}p.svelte-1ubxcdp{margin:0;font-weight:400}button.svelte-1ubxcdp{margin-top:1.5rem;width:50%;font-weight:600}.right.svelte-1ubxcdp{margin-left:0.5rem;width:60%}")}function vt(t){let n,l,r,o,s,c,a,d,m,k,g,p,f,v,b,w,C,i=t[2]("modals.confirmDisconnectAll.heading",{default:e.C.modals.confirmDisconnectAll.heading})+"",u=t[2]("modals.confirmDisconnectAll.description")+"",h=t[2]("modals.confirmDisconnectAll.cancel",{default:e.C.modals.confirmDisconnectAll.cancel})+"",y=t[2]("modals.confirmDisconnectAll.confirm",{default:e.C.modals.confirmDisconnectAll.confirm})+"";return{c(){n=(0,e.j)("div"),l=(0,e.j)("div"),r=(0,e.G)(),o=(0,e.j)("h4"),s=(0,e.t)(i),c=(0,e.G)(),a=(0,e.j)("p"),d=(0,e.t)(u),m=(0,e.G)(),k=(0,e.j)("div"),g=(0,e.j)("button"),p=(0,e.t)(h),f=(0,e.G)(),v=(0,e.j)("button"),b=(0,e.t)(y),(0,e.k)(l,"class","icon-container flex justify-center items-center svelte-1ubxcdp"),(0,e.k)(o,"class","svelte-1ubxcdp"),(0,e.k)(a,"class","svelte-1ubxcdp"),(0,e.k)(g,"class","button-neutral-solid-b rounded svelte-1ubxcdp"),(0,e.k)(v,"class","right button-neutral-solid rounded svelte-1ubxcdp"),(0,e.k)(k,"class","flex justify-between items-center w-100"),(0,e.k)(n,"class","content svelte-1ubxcdp")},m(I,T){(0,e.b)(I,n,T),(0,e.m)(n,l),l.innerHTML=J,(0,e.m)(n,r),(0,e.m)(n,o),(0,e.m)(o,s),(0,e.m)(n,c),(0,e.m)(n,a),(0,e.m)(a,d),(0,e.m)(n,m),(0,e.m)(n,k),(0,e.m)(k,g),(0,e.m)(g,p),(0,e.m)(k,f),(0,e.m)(k,v),(0,e.m)(v,b),w||(C=[(0,e.p)(g,"click",function(){(0,e.Z)(t[1])&&t[1].apply(this,arguments)}),(0,e.p)(v,"click",function(){(0,e.Z)(t[0])&&t[0].apply(this,arguments)})],w=!0)},p(I,T){t=I,4&T&&i!==(i=t[2]("modals.confirmDisconnectAll.heading",{default:e.C.modals.confirmDisconnectAll.heading})+"")&&(0,e.v)(s,i),4&T&&u!==(u=t[2]("modals.confirmDisconnectAll.description")+"")&&(0,e.v)(d,u),4&T&&h!==(h=t[2]("modals.confirmDisconnectAll.cancel",{default:e.C.modals.confirmDisconnectAll.cancel})+"")&&(0,e.v)(p,h),4&T&&y!==(y=t[2]("modals.confirmDisconnectAll.confirm",{default:e.C.modals.confirmDisconnectAll.confirm})+"")&&(0,e.v)(b,y)},d(I){I&&(0,e.d)(n),w=!1,(0,e.L)(C)}}}function pt(t){let n,l;return n=new e.Y({props:{close:t[1],$$slots:{default:[vt]},$$scope:{ctx:t}}}),{c(){(0,e.F)(n.$$.fragment)},m(r,o){(0,e.I)(n,r,o),l=!0},p(r,[o]){const i={};2&o&&(i.close=r[1]),15&o&&(i.$$scope={dirty:o,ctx:r}),n.$set(i)},i(r){l||((0,e.x)(n.$$.fragment,r),l=!0)},o(r){(0,e.A)(n.$$.fragment,r),l=!1},d(r){(0,e.K)(n,r)}}}function ht(t,n,l){let r;(0,e.c)(t,Y._,s=>l(2,r=s));let{onConfirm:o}=n,{onClose:i}=n;return t.$$set=s=>{"onConfirm"in s&&l(0,o=s.onConfirm),"onClose"in s&&l(1,i=s.onClose)},[o,i,r]}class gt extends e.S{constructor(n){super(),(0,e.i)(this,n,ht,pt,e.s,{onConfirm:0,onClose:1},mt)}}function bt(t){(0,e.a)(t,"svelte-ruodf3",".content.svelte-ruodf3{--background-color:var(--w3o-background-color);--text-color:var(--w3o-text-color);--action-color:var(--w3o-action-color, var(--primary-500));font-size:1rem;line-height:1.5rem;display:flex;flex-flow:column;gap:1.5rem;padding:1rem;max-width:320px;background:var(--background-color);color:var(--text-color)}.icon-container.svelte-ruodf3{position:relative;overflow:hidden;width:3rem;height:3rem;border-radius:24px;padding:0.75rem;background:none}.icon-container.svelte-ruodf3::before{content:'';position:absolute;height:100%;width:100%;opacity:0.2;background:var(--action-color)}.text-container.svelte-ruodf3{display:flex;flex-flow:column;gap:0.5rem;padding:0 0.5rem}.actions-container.svelte-ruodf3{display:flex;flex-flow:row nowrap;gap:1rem}.heading.svelte-ruodf3{font-weight:600}button.svelte-ruodf3{font-weight:600}button.primary.svelte-ruodf3{background:var(--action-color)}")}function kt(t){let n,l,r,o,i,c,a,u,m,k,g,p,f,v,y,w,C,I,z,j,M,s=t[3]("modals.confirmTransactionProtection.heading",{default:e.C.modals.confirmTransactionProtection.heading})+"",d=t[3]("modals.confirmTransactionProtection.description")+"",h=t[3]("modals.confirmTransactionProtection.link",{default:e.C.modals.confirmTransactionProtection.link})+"",b=t[3]("modals.confirmTransactionProtection.dismiss",{default:e.C.modals.confirmTransactionProtection.dismiss})+"",T=t[3]("modals.confirmTransactionProtection.enable",{default:e.C.modals.confirmTransactionProtection.enable})+"";return{c(){n=(0,e.j)("div"),l=(0,e.j)("div"),r=(0,e.G)(),o=(0,e.j)("div"),i=(0,e.j)("div"),c=(0,e.t)(s),a=(0,e.G)(),u=(0,e.j)("div"),m=(0,e.t)(d),k=(0,e.G)(),g=(0,e.j)("a"),p=(0,e.t)(h),f=(0,e.G)(),v=(0,e.j)("div"),y=(0,e.j)("button"),w=(0,e.t)(b),C=(0,e.G)(),I=(0,e.j)("button"),z=(0,e.t)(T),(0,e.k)(l,"class","icon-container flex justify-center items-center svelte-ruodf3"),(0,e.k)(i,"class","heading svelte-ruodf3"),(0,e.k)(g,"href",t[2]),(0,e.k)(g,"target","_blank"),(0,e.k)(g,"rel","noreferrer noopener"),(0,e.k)(g,"class","no-link"),(0,e.k)(o,"class","text-container svelte-ruodf3"),(0,e.k)(y,"class","button-neutral-solid-b svelte-ruodf3"),(0,e.k)(I,"class","button-neutral-solid rounded primary svelte-ruodf3"),(0,e.k)(v,"class","actions-container svelte-ruodf3"),(0,e.k)(n,"class","content svelte-ruodf3")},m(F,L){(0,e.b)(F,n,L),(0,e.m)(n,l),l.innerHTML=pe,(0,e.m)(n,r),(0,e.m)(n,o),(0,e.m)(o,i),(0,e.m)(i,c),(0,e.m)(o,a),(0,e.m)(o,u),(0,e.m)(u,m),(0,e.m)(o,k),(0,e.m)(o,g),(0,e.m)(g,p),(0,e.m)(n,f),(0,e.m)(n,v),(0,e.m)(v,y),(0,e.m)(y,w),(0,e.m)(v,C),(0,e.m)(v,I),(0,e.m)(I,z),j||(M=[(0,e.p)(y,"click",function(){(0,e.Z)(t[1])&&t[1].apply(this,arguments)}),(0,e.p)(I,"click",function(){(0,e.Z)(t[0])&&t[0].apply(this,arguments)})],j=!0)},p(F,L){t=F,8&L&&s!==(s=t[3]("modals.confirmTransactionProtection.heading",{default:e.C.modals.confirmTransactionProtection.heading})+"")&&(0,e.v)(c,s),8&L&&d!==(d=t[3]("modals.confirmTransactionProtection.description")+"")&&(0,e.v)(m,d),8&L&&h!==(h=t[3]("modals.confirmTransactionProtection.link",{default:e.C.modals.confirmTransactionProtection.link})+"")&&(0,e.v)(p,h),4&L&&(0,e.k)(g,"href",t[2]),8&L&&b!==(b=t[3]("modals.confirmTransactionProtection.dismiss",{default:e.C.modals.confirmTransactionProtection.dismiss})+"")&&(0,e.v)(w,b),8&L&&T!==(T=t[3]("modals.confirmTransactionProtection.enable",{default:e.C.modals.confirmTransactionProtection.enable})+"")&&(0,e.v)(z,T)},d(F){F&&(0,e.d)(n),j=!1,(0,e.L)(M)}}}function wt(t){let n,l;return n=new e.Y({props:{close:t[1],$$slots:{default:[kt]},$$scope:{ctx:t}}}),{c(){(0,e.F)(n.$$.fragment)},m(r,o){(0,e.I)(n,r,o),l=!0},p(r,[o]){const i={};2&o&&(i.close=r[1]),31&o&&(i.$$scope={dirty:o,ctx:r}),n.$set(i)},i(r){l||((0,e.x)(n.$$.fragment,r),l=!0)},o(r){(0,e.A)(n.$$.fragment,r),l=!1},d(r){(0,e.K)(n,r)}}}function yt(t,n,l){let r;(0,e.c)(t,Y._,c=>l(3,r=c));let{onEnable:o}=n,{onDismiss:i}=n,{infoLink:s}=n;return t.$$set=c=>{"onEnable"in c&&l(0,o=c.onEnable),"onDismiss"in c&&l(1,i=c.onDismiss),"infoLink"in c&&l(2,s=c.infoLink)},[o,i,s,r]}class _t extends e.S{constructor(n){super(),(0,e.i)(this,n,yt,wt,e.s,{onEnable:0,onDismiss:1,infoLink:2},bt)}}function Ct(t){(0,e.a)(t,"svelte-b848yl",".secondary-token-container.svelte-b848yl.svelte-b848yl{width:100%}table.svelte-b848yl.svelte-b848yl{width:100%}tr.svelte-b848yl.svelte-b848yl{padding:0.25rem 1rem;line-height:1rem;border-bottom:1px solid var(--border-color);display:flex;flex-direction:row;align-items:flex-start;gap:1rem}thead.svelte-b848yl .secondary-token-table-header.svelte-b848yl{text-align:inherit;font-size:var(--onboard-font-size-7, var(--font-size-7))}.token-icon.svelte-b848yl.svelte-b848yl{width:30%;font-weight:700;font-size:var(--onboard-font-size-6, var(--font-size-6));color:var(--text-color)}.icon-name-container.svelte-b848yl.svelte-b848yl{display:flex;flex-direction:row;align-items:flex-start;padding:0px;gap:0.5rem}.icon.svelte-b848yl.svelte-b848yl{width:1rem;height:1rem}img.svelte-b848yl.svelte-b848yl{height:100%;width:100%}.token-balance.svelte-b848yl.svelte-b848yl{width:70%;font-weight:200;font-size:var(--onboard-font-size-6, var(--font-size-6));color:var(--text-color)}")}function he(t,n,l){const r=t.slice();return r[1]=n[l],r}function ge(t){let n,l,r,o,s,c,a,d,m,i=t[1].name.toUpperCase()+"",u=(t[1].balance.length>7?t[1].balance.slice(0,7):t[1].balance)+"";function k(p,f){return p[1].icon?At:jt}let g=k(t),h=g(t);return{c(){n=(0,e.j)("tr"),l=(0,e.j)("td"),r=(0,e.j)("div"),h.c(),o=(0,e.G)(),s=(0,e.t)(i),c=(0,e.G)(),a=(0,e.j)("td"),d=(0,e.t)(u),m=(0,e.G)(),(0,e.k)(r,"class","icon-name-container svelte-b848yl"),(0,e.k)(l,"class","token-icon svelte-b848yl"),(0,e.k)(a,"class","token-balance svelte-b848yl"),(0,e.k)(n,"class","token-row svelte-b848yl")},m(p,f){(0,e.b)(p,n,f),(0,e.m)(n,l),(0,e.m)(l,r),h.m(r,null),(0,e.m)(r,o),(0,e.m)(r,s),(0,e.m)(n,c),(0,e.m)(n,a),(0,e.m)(a,d),(0,e.m)(n,m)},p(p,f){g===(g=k(p))&&h?h.p(p,f):(h.d(1),h=g(p),h&&(h.c(),h.m(r,o))),1&f&&i!==(i=p[1].name.toUpperCase()+"")&&(0,e.v)(s,i),1&f&&u!==(u=(p[1].balance.length>7?p[1].balance.slice(0,7):p[1].balance)+"")&&(0,e.v)(d,u)},d(p){p&&(0,e.d)(n),h.d()}}}function jt(t){let n;return{c(){n=(0,e.j)("div"),(0,e.k)(n,"class","icon svelte-b848yl")},m(l,r){(0,e.b)(l,n,r)},p:e.n,d(l){l&&(0,e.d)(n)}}}function At(t){let n,l,r={ctx:t,current:null,token:null,hasCatch:!1,pending:Tt,then:$t,catch:zt,value:4};return(0,e._)(l=t[1].icon,r),{c(){n=(0,e.e)(),r.block.c()},m(o,i){(0,e.b)(o,n,i),r.block.m(o,r.anchor=i),r.mount=()=>n.parentNode,r.anchor=n},p(o,i){r.ctx=t=o,1&i&&l!==(l=t[1].icon)&&(0,e._)(l,r)||(0,e.$)(r,t,i)},d(o){o&&(0,e.d)(n),r.block.d(o),r.token=null,r=null}}}function zt(t){return{c:e.n,m:e.n,p:e.n,i:e.n,o:e.n,d:e.n}}function $t(t){let n,l,r;function o(c,a){return 1&a&&(l=null),null==l&&(l=!!(0,e.a0)(c[4])),l?It:Gt}let i=o(t,-1),s=i(t);return{c(){n=(0,e.j)("div"),s.c(),(0,e.k)(n,"class","icon svelte-b848yl")},m(c,a){(0,e.b)(c,n,a),s.m(n,null)},p(c,a){i===(i=o(c,a))&&s?s.p(c,a):(s.d(1),s=i(c),s&&(s.c(),s.m(n,null)))},i(c){c&&(r||(0,e.U)(()=>{r=(0,e.V)(n,e.X,{}),r.start()}))},o:e.n,d(c){c&&(0,e.d)(n),s.d()}}}function Gt(t){let n,l;return{c(){n=(0,e.j)("img"),(0,e.a1)(n.src,l=t[4])||(0,e.k)(n,"src",l),(0,e.k)(n,"alt","logo"),(0,e.k)(n,"class","svelte-b848yl")},m(r,o){(0,e.b)(r,n,o)},p(r,o){1&o&&!(0,e.a1)(n.src,l=r[4])&&(0,e.k)(n,"src",l)},d(r){r&&(0,e.d)(n)}}}function It(t){let n,r,l=t[4]+"";return{c(){n=new e.a2(!1),r=(0,e.e)(),n.a=r},m(o,i){n.m(l,o,i),(0,e.b)(o,r,i)},p(o,i){1&i&&l!==(l=o[4]+"")&&n.p(l)},d(o){o&&(0,e.d)(r),o&&n.d()}}}function Tt(t){return{c:e.n,m:e.n,p:e.n,i:e.n,o:e.n,d:e.n}}function be(t){let n,l=t[1]&&t[1].name&&t[1].balance&&ge(t);return{c(){l&&l.c(),n=(0,e.e)()},m(r,o){l&&l.m(r,o),(0,e.b)(r,n,o)},p(r,o){r[1]&&r[1].name&&r[1].balance?l?l.p(r,o):(l=ge(r),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},d(r){l&&l.d(r),r&&(0,e.d)(n)}}}function Mt(t){let n,l,r,o,i,s=t[0],c=[];for(let a=0;a<s.length;a+=1)c[a]=be(he(t,s,a));return{c(){n=(0,e.j)("div"),l=(0,e.j)("table"),r=(0,e.j)("thead"),r.innerHTML='<tr class="svelte-b848yl"><th colspan="3" class="secondary-token-table-header svelte-b848yl">Token Balances:</th></tr>',o=(0,e.G)(),i=(0,e.j)("tbody");for(let a=0;a<c.length;a+=1)c[a].c();(0,e.k)(r,"class","svelte-b848yl"),(0,e.k)(l,"class","balance-change-table table-radius svelte-b848yl"),(0,e.k)(n,"class","secondary-token-container svelte-b848yl")},m(a,u){(0,e.b)(a,n,u),(0,e.m)(n,l),(0,e.m)(l,r),(0,e.m)(l,o),(0,e.m)(l,i);for(let d=0;d<c.length;d+=1)c[d]&&c[d].m(i,null)},p(a,[u]){if(1&u){let d;for(s=a[0],d=0;d<s.length;d+=1){const m=he(a,s,d);c[d]?c[d].p(m,u):(c[d]=be(m),c[d].c(),c[d].m(i,null))}for(;d<c.length;d+=1)c[d].d(1);c.length=s.length}},i:e.n,o:e.n,d(a){a&&(0,e.d)(n),(0,e.B)(c,a)}}}function St(t,n,l){let{secondaryTokens:r}=n;return t.$$set=o=>{"secondaryTokens"in o&&l(0,r=o.secondaryTokens)},[r]}class Pt extends e.S{constructor(n){super(),(0,e.i)(this,n,St,Mt,e.s,{secondaryTokens:0},Ct)}}function Ft(t){(0,e.a)(t,"svelte-177u10y",".outer-container.svelte-177u10y{--background-color:var(--w3o-background-color);--text-color:var(--w3o-text-color);--border-color:var(--w3o-border-color, var(--gray-500));--action-color:var(--w3o-action-color, var(--primary-500));--border-radius:var(--w3o-border-radius, 1rem);--account-center-network-selector-color:var(--text-color, white);width:100%;overflow:hidden;pointer-events:auto;border:1px solid transparent;background:var(\n --account-center-maximized-upper-background,\n var(--background-color)\n );border-color:var(--border-color);border-radius:var(--account-center-border-radius, var(--border-radius))}.wallets-section.svelte-177u10y{width:100%;color:var(--text-color, var(--gray-100));background:var(--background-color, var(--gray-700))}.p5.svelte-177u10y{padding:var(--onboard-spacing-5, var(--spacing-5))}.wallets.svelte-177u10y{width:100%;margin-bottom:0.5rem}.actions.svelte-177u10y{color:var(\n --account-center-maximized-upper-action-color,\n var(--action-color)\n );padding-left:2px}.action-container.svelte-177u10y{padding:0.25rem 12px 0.25rem 0.5rem;border-radius:0.5rem;transition:background-color 150ms ease-in-out}.action-container.svelte-177u10y:hover{background-color:var(\n --account-center-maximized-upper-action-background-hover,\n rgba(146, 155, 237, 0.2)\n )}.plus-icon.svelte-177u10y{width:20px}.arrow-forward.svelte-177u10y{width:20px}.mt.svelte-177u10y{margin-top:0.25rem}.action-text.svelte-177u10y{font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));margin-left:0.5rem}.background-blue.svelte-177u10y{background:var(\n --account-center-maximized-network-section-background,\n var(--onboard-primary-100, var(--primary-100))\n )}.background-gray.svelte-177u10y{background:var(--onboard-gray-100, var(--gray-100))}.background-yellow.svelte-177u10y{background:var(--onboard-warning-100, var(--warning-100))}.network-container.svelte-177u10y{background:var(--background-color);border-top:1px solid var(--border-color);width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:0.75rem;gap:0.5rem;border-radius:var(\n --account-center-border-radius,\n var(--onboard-border-radius-3, var(--border-radius-3))\n );color:var(\n --account-center-maximized-network-text-color,\n var(--account-center-maximized-network-section, inherit)\n )}.network-section.svelte-177u10y{flex-direction:row;align-items:flex-start;padding:0px;gap:16px}.network-selector-container.svelte-177u10y{width:100%}.protect.svelte-177u10y{flex-direction:row;padding:0.25rem 0.375rem 0;gap:0.375rem;width:100%}.shield.svelte-177u10y{width:20px;height:20px;display:flex;justify-content:center}.protect-text.svelte-177u10y{font-size:var(--onboard-font-size-6, var(--font-size-6));color:var(\n --account-center-maximized-upper-action-color,\n var(--action-color)\n );line-height:1.75rem;display:flex;align-items:center}.network-selector-container.svelte-177u10y{margin-left:1rem;width:100%}.network-selector-label.svelte-177u10y{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}.app-info-container.svelte-177u10y{color:var(--text-color, var(--gray-700));background:var(\n --account-center-maximized-info-section-background-color,\n var(\n --account-center-maximized-info-section,\n var(--background-color, #fff)\n )\n );border-top:1px solid var(--border-color);border-radius:var(--account-center-border-radius, inherit);display:flex;flex-direction:column;align-items:flex-start;padding:0px}.app-info-header.svelte-177u10y{width:100%;flex-direction:column;align-items:flex-start;padding:0.75rem;gap:0.5rem;border-bottom:1px solid var(--border-color)}.app-icon-name.svelte-177u10y{display:flex;align-items:center;flex-direction:row;gap:0.75rem}.app-name.svelte-177u10y{font-size:1rem;font-weight:600;line-height:1rem;margin-bottom:0.25rem;color:var(--account-center-maximized-app-name-color, inherit)}.app-description.svelte-177u10y{margin:0;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));color:var(--account-center-maximized-app-info-color, inherit);display:flex;flex-direction:row;align-items:flex-start;padding:0px 0.25rem;gap:1rem}.app-info.svelte-177u10y{width:100%;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));color:var(--account-center-maximized-app-info-color, inherit);border-bottom:1px solid var(--border-color);display:flex;flex-direction:column;align-items:flex-start;padding:0.5rem 1rem;gap:0.25rem}.app-info-heading.svelte-177u10y{font-weight:700;color:var(--account-center-maximized-app-info-color, inherit)}.w100.svelte-177u10y{width:100%}a.svelte-177u10y{font-weight:700}.powered-by-container.svelte-177u10y{color:var(--text-color);padding:0.75rem}")}function ke(t,n,l){const r=t.slice();return r[29]=n[l],r[31]=l,r}function we(t){let n,l;return n=new gt({props:{onClose:t[22],onConfirm:t[13]}}),{c(){(0,e.F)(n.$$.fragment)},m(r,o){(0,e.I)(n,r,o),l=!0},p(r,o){const i={};4&o[0]&&(i.onClose=r[22]),n.$set(i)},i(r){l||((0,e.x)(n.$$.fragment,r),l=!0)},o(r){(0,e.A)(n.$$.fragment,r),l=!1},d(r){(0,e.K)(n,r)}}}function ye(t){let n,l;return n=new _t({props:{onDismiss:t[23],onEnable:t[24],infoLink:t[9].transactionProtectionInfoLink||e.a5}}),{c(){(0,e.F)(n.$$.fragment)},m(r,o){(0,e.I)(n,r,o),l=!0},p(r,o){const i={};16&o[0]&&(i.onDismiss=r[23]),512&o[0]&&(i.infoLink=r[9].transactionProtectionInfoLink||e.a5),n.$set(i)},i(r){l||((0,e.x)(n.$$.fragment,r),l=!0)},o(r){(0,e.A)(n.$$.fragment,r),l=!1},d(r){(0,e.K)(n,r)}}}function _e(t){let n,l,r,o,c,a,u,d,m,k,g,h,p,f,v,b,w,C,I,T,z,j,M,F,L,W,E,Z,_,G,i=[],s=new Map,y=t[10]("accountCenter.currentNetwork",{default:e.C.accountCenter.currentNetwork})+"",H=t[1];const X=S=>S[29].label;for(let S=0;S<H.length;S+=1){let A=ke(t,H,S),K=X(A);s.set(K,i[S]=Ce(K,A))}let N="desktop"===t[17].type&&function(t){let n,l,r,o,s,c,a,u,d,m,g,h,p,i=t[10]("accountCenter.connectAnotherWallet",{default:e.C.accountCenter.connectAnotherWallet})+"",k=t[10]("accountCenter.disconnectAllWallets",{default:e.C.accountCenter.disconnectAllWallets})+"";return{c(){n=(0,e.j)("div"),l=(0,e.j)("div"),r=(0,e.G)(),o=(0,e.j)("span"),s=(0,e.t)(i),c=(0,e.G)(),a=(0,e.j)("div"),u=(0,e.j)("div"),d=(0,e.G)(),m=(0,e.j)("span"),g=(0,e.t)(k),(0,e.k)(l,"class","plus-icon flex items-center justify-center svelte-177u10y"),(0,e.k)(o,"class","action-text svelte-177u10y"),(0,e.k)(n,"class","action-container flex items-center pointer svelte-177u10y"),(0,e.k)(u,"class","arrow-forward flex items-center justify-center svelte-177u10y"),(0,e.k)(m,"class","action-text svelte-177u10y"),(0,e.k)(a,"class","action-container flex items-center mt pointer svelte-177u10y")},m(f,v){(0,e.b)(f,n,v),(0,e.m)(n,l),l.innerHTML='\n <svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M13 7H11V11H7V13H11V17H13V13H17V11H13V7ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z" fill="currentColor"/>\n </svg>\n',(0,e.m)(n,r),(0,e.m)(n,o),(0,e.m)(o,s),(0,e.b)(f,c,v),(0,e.b)(f,a,v),(0,e.m)(a,u),u.innerHTML='\n <svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M10.09 15.59L11.5 17L16.5 12L11.5 7L10.09 8.41L12.67 11H3V13H12.67L10.09 15.59ZM19 3H5C3.89 3 3 3.9 3 5V9H5V5H19V19H5V15H3V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z" fill="currentColor"/>\n </svg>\n',(0,e.m)(a,d),(0,e.m)(a,m),(0,e.m)(m,g),h||(p=[(0,e.p)(n,"click",t[26]),(0,e.p)(a,"click",t[27])],h=!0)},p(f,v){1024&v[0]&&i!==(i=f[10]("accountCenter.connectAnotherWallet",{default:e.C.accountCenter.connectAnotherWallet})+"")&&(0,e.v)(s,i),1024&v[0]&&k!==(k=f[10]("accountCenter.disconnectAllWallets",{default:e.C.accountCenter.disconnectAllWallets})+"")&&(0,e.v)(g,k)},d(f){f&&(0,e.d)(n),f&&(0,e.d)(c),f&&(0,e.d)(a),h=!1,(0,e.L)(p)}}}(t);g=new e.W({props:{size:32,padding:4,background:"custom",color:t[5]?t[5].icon?void 0:"#EFF1FC":"#FFAF00",customBackgroundColor:t[5]?t[5].color||t[7]&&t[7].color||e.a6.color:"#FFE7B3",border:"transparent",radius:8,icon:t[5]?t[5].icon||t[7]&&t[7].icon||e.a6.icon:J}});let P=t[5]&&je();I=new ae({props:{chains:t[14],colorVar:"--account-center-maximized-network-selector-color",bold:!0,selectIcon:'<svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z" fill="grey"/></svg>',parentCSSId:"maximized_ac"}});let B=!t[9].hideTransactionProtectionBtn&&(t[6]||t[5]?.protectedRpcUrl)&&Ae(t),V=t[11]&&ze(t),D=t[8]&&t[8].length&&Te(t);return{c(){n=(0,e.j)("div"),l=(0,e.j)("div"),r=(0,e.j)("div"),o=(0,e.j)("div");for(let S=0;S<i.length;S+=1)i[S].c();c=(0,e.G)(),a=(0,e.j)("div"),N&&N.c(),u=(0,e.G)(),d=(0,e.j)("div"),m=(0,e.j)("div"),k=(0,e.j)("div"),(0,e.F)(g.$$.fragment),h=(0,e.G)(),P&&P.c(),p=(0,e.G)(),f=(0,e.j)("div"),v=(0,e.j)("div"),b=(0,e.t)(y),w=(0,e.G)(),C=(0,e.j)("div"),(0,e.F)(I.$$.fragment),T=(0,e.G)(),B&&B.c(),z=(0,e.G)(),j=(0,e.j)("div"),V&&V.c(),M=(0,e.G)(),D&&D.c(),F=(0,e.G)(),L=(0,e.j)("div"),W=(0,e.j)("a"),(0,e.k)(o,"class","wallets svelte-177u10y"),(0,e.k)(a,"class","actions flex flex-column items-start svelte-177u10y"),(0,e.k)(r,"class","p5 svelte-177u10y"),(0,e.k)(k,"class","relative flex"),(0,e.k)(v,"class","network-selector-label svelte-177u10y"),(0,e.k)(C,"class","flex items-center"),(0,e.T)(C,"width","100%"),(0,e.k)(f,"class","network-selector-container svelte-177u10y"),(0,e.k)(m,"class","network-section flex items-center svelte-177u10y"),(0,e.k)(d,"class","network-container svelte-177u10y"),(0,e.H)(d,"background-blue",t[5]&&t[5].icon||t[7]),(0,e.H)(d,"background-yellow",!t[5]),(0,e.H)(d,"background-gray",t[5]&&!t[7]),(0,e.k)(W,"href","https://blocknative.com"),(0,e.k)(W,"target","_blank"),(0,e.k)(W,"rel","noopener noreferrer"),(0,e.k)(W,"class","flex justify-center items-center powered-by-container svelte-177u10y"),(0,e.k)(L,"class","w100 svelte-177u10y"),(0,e.k)(j,"class","app-info-container svelte-177u10y"),(0,e.k)(l,"class","wallets-section svelte-177u10y"),(0,e.k)(n,"class","outer-container svelte-177u10y")},m(S,A){(0,e.b)(S,n,A),(0,e.m)(n,l),(0,e.m)(l,r),(0,e.m)(r,o);for(let K=0;K<i.length;K+=1)i[K]&&i[K].m(o,null);(0,e.m)(r,c),(0,e.m)(r,a),N&&N.m(a,null),(0,e.m)(l,u),(0,e.m)(l,d),(0,e.m)(d,m),(0,e.m)(m,k),(0,e.I)(g,k,null),(0,e.m)(k,h),P&&P.m(k,null),(0,e.m)(m,p),(0,e.m)(m,f),(0,e.m)(f,v),(0,e.m)(v,b),(0,e.m)(f,w),(0,e.m)(f,C),(0,e.I)(I,C,null),(0,e.m)(d,T),B&&B.m(d,null),(0,e.m)(l,z),(0,e.m)(l,j),V&&V.m(j,null),(0,e.m)(j,M),D&&D.m(j,null),(0,e.m)(j,F),(0,e.m)(j,L),(0,e.m)(L,W),W.innerHTML=e.a7,Z=!0,_||(G=[(0,e.p)(C,"click",t[21]),(0,e.p)(n,"click",(0,e.J)(function(){(0,e.Z)(t[3])&&t[3].apply(this,arguments)}))],_=!0)},p(S,A){t=S,10&A[0]&&(H=t[1],(0,e.y)(),i=(0,e.u)(i,A,X,1,t,H,s,o,e.a8,Ce,null,ke),(0,e.z)()),"desktop"===t[17].type&&N.p(t,A);const K={};32&A[0]&&(K.color=t[5]?t[5].icon?void 0:"#EFF1FC":"#FFAF00"),160&A[0]&&(K.customBackgroundColor=t[5]?t[5].color||t[7]&&t[7].color||e.a6.color:"#FFE7B3"),160&A[0]&&(K.icon=t[5]?t[5].icon||t[7]&&t[7].icon||e.a6.icon:J),g.$set(K),t[5]?P?32&A[0]&&(0,e.x)(P,1):(P=je(),P.c(),(0,e.x)(P,1),P.m(k,null)):P&&((0,e.y)(),(0,e.A)(P,1,1,()=>{P=null}),(0,e.z)()),(!Z||1024&A[0])&&y!==(y=t[10]("accountCenter.currentNetwork",{default:e.C.accountCenter.currentNetwork})+"")&&(0,e.v)(b,y),t[9].hideTransactionProtectionBtn||!t[6]&&!t[5]?.protectedRpcUrl?B&&(B.d(1),B=null):B?B.p(t,A):(B=Ae(t),B.c(),B.m(d,null)),(!Z||160&A[0])&&(0,e.H)(d,"background-blue",t[5]&&t[5].icon||t[7]),(!Z||32&A[0])&&(0,e.H)(d,"background-yellow",!t[5]),(!Z||160&A[0])&&(0,e.H)(d,"background-gray",t[5]&&!t[7]),t[11]?V?(V.p(t,A),2048&A[0]&&(0,e.x)(V,1)):(V=ze(t),V.c(),(0,e.x)(V,1),V.m(j,M)):V&&((0,e.y)(),(0,e.A)(V,1,1,()=>{V=null}),(0,e.z)()),t[8]&&t[8].length?D?(D.p(t,A),256&A[0]&&(0,e.x)(D,1)):(D=Te(t),D.c(),(0,e.x)(D,1),D.m(j,F)):D&&((0,e.y)(),(0,e.A)(D,1,1,()=>{D=null}),(0,e.z)())},i(S){if(!Z){for(let A=0;A<H.length;A+=1)(0,e.x)(i[A]);(0,e.x)(g.$$.fragment,S),(0,e.x)(P),(0,e.x)(I.$$.fragment,S),(0,e.x)(V),(0,e.x)(D),S&&(0,e.U)(()=>{!Z||(E||(E=(0,e.a9)(n,e.ab,{duration:600,y:t[16].includes("bottom")?56:-76,easing:e.aa,opacity:0},!0)),E.run(1))}),Z=!0}},o(S){for(let A=0;A<i.length;A+=1)(0,e.A)(i[A]);(0,e.A)(g.$$.fragment,S),(0,e.A)(P),(0,e.A)(I.$$.fragment,S),(0,e.A)(V),(0,e.A)(D),S&&(E||(E=(0,e.a9)(n,e.ab,{duration:600,y:t[16].includes("bottom")?56:-76,easing:e.aa,opacity:0},!1)),E.run(0)),Z=!1},d(S){S&&(0,e.d)(n);for(let A=0;A<i.length;A+=1)i[A].d();N&&N.d(),(0,e.K)(g),P&&P.d(),(0,e.K)(I),B&&B.d(),V&&V.d(),D&&D.d(),S&&E&&E.end(),_=!1,(0,e.L)(G)}}}function Ce(t,n){let l,r,o,i;function s(a){n[25](a)}let c={wallet:n[29],primary:0===n[31]};return void 0!==n[3]&&(c.hideMenu=n[3]),r=new ct({props:c}),e.g.push(()=>(0,e.ac)(r,"hideMenu",s)),{key:t,first:null,c(){l=(0,e.e)(),(0,e.F)(r.$$.fragment),this.first=l},m(a,u){(0,e.b)(a,l,u),(0,e.I)(r,a,u),i=!0},p(a,u){n=a;const d={};2&u[0]&&(d.wallet=n[29]),2&u[0]&&(d.primary=0===n[31]),!o&&8&u[0]&&(o=!0,d.hideMenu=n[3],(0,e.ad)(()=>o=!1)),r.$set(d)},i(a){i||((0,e.x)(r.$$.fragment,a),i=!0)},o(a){(0,e.A)(r.$$.fragment,a),i=!1},d(a){a&&(0,e.d)(l),(0,e.K)(r,a)}}}function je(t){let n,l,r;return l=new e.R({props:{size:14}}),{c(){n=(0,e.j)("div"),(0,e.F)(l.$$.fragment),(0,e.T)(n,"right","-5px"),(0,e.T)(n,"bottom","-5px"),(0,e.k)(n,"class","drop-shadow absolute")},m(o,i){(0,e.b)(o,n,i),(0,e.I)(l,n,null),r=!0},i(o){r||((0,e.x)(l.$$.fragment,o),r=!0)},o(o){(0,e.A)(l.$$.fragment,o),r=!1},d(o){o&&(0,e.d)(n),(0,e.K)(l)}}}function Ae(t){let n,l,r,o,s,c,a,i=t[10]("accountCenter.enableTransactionProtection",{default:e.C.accountCenter.enableTransactionProtection})+"";return{c(){n=(0,e.j)("div"),l=(0,e.j)("div"),r=(0,e.G)(),o=(0,e.j)("span"),s=(0,e.t)(i),(0,e.k)(l,"class","shield svelte-177u10y"),(0,e.k)(o,"class","protect-text svelte-177u10y"),(0,e.k)(n,"class","protect action-container flex items-center pointer svelte-177u10y")},m(u,d){(0,e.b)(u,n,d),(0,e.m)(n,l),l.innerHTML=pe,(0,e.m)(n,r),(0,e.m)(n,o),(0,e.m)(o,s),c||(a=(0,e.p)(n,"click",t[28]),c=!0)},p(u,d){1024&d[0]&&i!==(i=u[10]("accountCenter.enableTransactionProtection",{default:e.C.accountCenter.enableTransactionProtection})+"")&&(0,e.v)(s,i)},d(u){u&&(0,e.d)(n),c=!1,a()}}}function ze(t){let n,l,r,o,i,c,a,u,m,k,g,h,s=(t[11]&&t[11].name||"App Name")+"",d=(t[11]&&t[11].description||"This app has not added a description.")+"";r=new e.W({props:{size:32,padding:4,background:"white",border:"black",radius:8,icon:t[11]&&t[11].icon||e.ae}});let p=(t[11].gettingStartedGuide||t[11].explore)&&$e(t);return{c(){n=(0,e.j)("div"),l=(0,e.j)("div"),(0,e.F)(r.$$.fragment),o=(0,e.G)(),i=(0,e.j)("div"),c=(0,e.t)(s),a=(0,e.G)(),u=(0,e.j)("div"),m=(0,e.t)(d),k=(0,e.G)(),p&&p.c(),g=(0,e.e)(),(0,e.k)(i,"class","app-name svelte-177u10y"),(0,e.k)(l,"class","relative flex app-icon-name svelte-177u10y"),(0,e.k)(u,"class","app-description svelte-177u10y"),(0,e.k)(n,"class","flex items-start app-info-header svelte-177u10y")},m(f,v){(0,e.b)(f,n,v),(0,e.m)(n,l),(0,e.I)(r,l,null),(0,e.m)(l,o),(0,e.m)(l,i),(0,e.m)(i,c),(0,e.m)(n,a),(0,e.m)(n,u),(0,e.m)(u,m),(0,e.b)(f,k,v),p&&p.m(f,v),(0,e.b)(f,g,v),h=!0},p(f,v){const y={};2048&v[0]&&(y.icon=f[11]&&f[11].icon||e.ae),r.$set(y),(!h||2048&v[0])&&s!==(s=(f[11]&&f[11].name||"App Name")+"")&&(0,e.v)(c,s),(!h||2048&v[0])&&d!==(d=(f[11]&&f[11].description||"This app has not added a description.")+"")&&(0,e.v)(m,d),f[11].gettingStartedGuide||f[11].explore?p?p.p(f,v):(p=$e(f),p.c(),p.m(g.parentNode,g)):p&&(p.d(1),p=null)},i(f){h||((0,e.x)(r.$$.fragment,f),h=!0)},o(f){(0,e.A)(r.$$.fragment,f),h=!1},d(f){f&&(0,e.d)(n),(0,e.K)(r),f&&(0,e.d)(k),p&&p.d(f),f&&(0,e.d)(g)}}}function $e(t){let n,l,o,i,s,r=t[10]("accountCenter.appInfo",{default:e.C.accountCenter.appInfo})+"",c=t[11].gettingStartedGuide&&Ge(t),a=t[11].explore&&Ie(t);return{c(){n=(0,e.j)("div"),l=(0,e.j)("div"),o=(0,e.t)(r),i=(0,e.G)(),c&&c.c(),s=(0,e.G)(),a&&a.c(),(0,e.k)(l,"class","app-info-heading svelte-177u10y"),(0,e.k)(n,"class","app-info svelte-177u10y")},m(u,d){(0,e.b)(u,n,d),(0,e.m)(n,l),(0,e.m)(l,o),(0,e.m)(n,i),c&&c.m(n,null),(0,e.m)(n,s),a&&a.m(n,null)},p(u,d){1024&d[0]&&r!==(r=u[10]("accountCenter.appInfo",{default:e.C.accountCenter.appInfo})+"")&&(0,e.v)(o,r),u[11].gettingStartedGuide?c?c.p(u,d):(c=Ge(u),c.c(),c.m(n,s)):c&&(c.d(1),c=null),u[11].explore?a?a.p(u,d):(a=Ie(u),a.c(),a.m(n,null)):a&&(a.d(1),a=null)},d(u){u&&(0,e.d)(n),c&&c.d(),a&&a.d()}}}function Ge(t){let n,l,o,i,s,a,u,r=t[10]("accountCenter.learnMore",{default:e.C.accountCenter.learnMore})+"",c=t[10]("accountCenter.gettingStartedGuide",{default:e.C.accountCenter.gettingStartedGuide})+"";return{c(){n=(0,e.j)("div"),l=(0,e.j)("div"),o=(0,e.t)(r),i=(0,e.G)(),s=(0,e.j)("a"),a=(0,e.t)(c),(0,e.k)(s,"href",u=t[11].gettingStartedGuide),(0,e.k)(s,"target","_blank"),(0,e.k)(s,"rel","noreferrer noopener"),(0,e.k)(s,"class","svelte-177u10y"),(0,e.k)(n,"class","flex justify-between items-center w100 svelte-177u10y")},m(d,m){(0,e.b)(d,n,m),(0,e.m)(n,l),(0,e.m)(l,o),(0,e.m)(n,i),(0,e.m)(n,s),(0,e.m)(s,a)},p(d,m){1024&m[0]&&r!==(r=d[10]("accountCenter.learnMore",{default:e.C.accountCenter.learnMore})+"")&&(0,e.v)(o,r),1024&m[0]&&c!==(c=d[10]("accountCenter.gettingStartedGuide",{default:e.C.accountCenter.gettingStartedGuide})+"")&&(0,e.v)(a,c),2048&m[0]&&u!==(u=d[11].gettingStartedGuide)&&(0,e.k)(s,"href",u)},d(d){d&&(0,e.d)(n)}}}function Ie(t){let n,l,o,i,s,a,u,r=t[10]("accountCenter.smartContracts",{default:e.C.accountCenter.smartContracts})+"",c=t[10]("accountCenter.explore",{default:e.C.accountCenter.explore})+"";return{c(){n=(0,e.j)("div"),l=(0,e.j)("div"),o=(0,e.t)(r),i=(0,e.G)(),s=(0,e.j)("a"),a=(0,e.t)(c),(0,e.k)(s,"href",u=t[11].explore),(0,e.k)(s,"target","_blank"),(0,e.k)(s,"rel","noreferrer noopener"),(0,e.k)(s,"class","svelte-177u10y"),(0,e.k)(n,"class","flex justify-between items-center w100 svelte-177u10y")},m(d,m){(0,e.b)(d,n,m),(0,e.m)(n,l),(0,e.m)(l,o),(0,e.m)(n,i),(0,e.m)(n,s),(0,e.m)(s,a)},p(d,m){1024&m[0]&&r!==(r=d[10]("accountCenter.smartContracts",{default:e.C.accountCenter.smartContracts})+"")&&(0,e.v)(o,r),1024&m[0]&&c!==(c=d[10]("accountCenter.explore",{default:e.C.accountCenter.explore})+"")&&(0,e.v)(a,c),2048&m[0]&&u!==(u=d[11].explore)&&(0,e.k)(s,"href",u)},d(d){d&&(0,e.d)(n)}}}function Te(t){let n,l;return n=new Pt({props:{secondaryTokens:t[8]}}),{c(){(0,e.F)(n.$$.fragment)},m(r,o){(0,e.I)(n,r,o),l=!0},p(r,o){const i={};256&o[0]&&(i.secondaryTokens=r[8]),n.$set(i)},i(r){l||((0,e.x)(n.$$.fragment,r),l=!0)},o(r){(0,e.A)(n.$$.fragment,r),l=!1},d(r){(0,e.K)(n,r)}}}function Ht(t){let n,l,r,o,i=t[2]&&we(t),s=t[4]&&ye(t),c=t[0]&&_e(t);return{c(){i&&i.c(),n=(0,e.G)(),s&&s.c(),l=(0,e.G)(),c&&c.c(),r=(0,e.e)()},m(a,u){i&&i.m(a,u),(0,e.b)(a,n,u),s&&s.m(a,u),(0,e.b)(a,l,u),c&&c.m(a,u),(0,e.b)(a,r,u),o=!0},p(a,u){a[2]?i?(i.p(a,u),4&u[0]&&(0,e.x)(i,1)):(i=we(a),i.c(),(0,e.x)(i,1),i.m(n.parentNode,n)):i&&((0,e.y)(),(0,e.A)(i,1,1,()=>{i=null}),(0,e.z)()),a[4]?s?(s.p(a,u),16&u[0]&&(0,e.x)(s,1)):(s=ye(a),s.c(),(0,e.x)(s,1),s.m(l.parentNode,l)):s&&((0,e.y)(),(0,e.A)(s,1,1,()=>{s=null}),(0,e.z)()),a[0]?c?(c.p(a,u),1&u[0]&&(0,e.x)(c,1)):(c=_e(a),c.c(),(0,e.x)(c,1),c.m(r.parentNode,r)):c&&((0,e.y)(),(0,e.A)(c,1,1,()=>{c=null}),(0,e.z)())},i(a){o||((0,e.x)(i),(0,e.x)(s),(0,e.x)(c),o=!0)},o(a){(0,e.A)(i),(0,e.A)(s),(0,e.A)(c),o=!1},d(a){i&&i.d(a),a&&(0,e.d)(n),s&&s.d(a),a&&(0,e.d)(l),c&&c.d(a),a&&(0,e.d)(r)}}}function Vt(t,n,l){let r,o,i,s,c,a,u,d,m,k;(0,e.c)(t,e.w,_=>l(1,u=_)),(0,e.c)(t,Y._,_=>l(10,m=_));let{expanded:g}=n;const h=e.a3.select("accountCenter").pipe((0,O.O)(e.a3.get().accountCenter),(0,R.d)(1));(0,e.c)(t,h,_=>l(9,d=_));const{chains:f}=e.a3.get();let y,v=!1,b=!1;const w=e.a3.select("appMetadata").pipe((0,O.O)(e.a3.get().appMetadata),(0,R.d)(1));(0,e.c)(t,w,_=>l(11,k=_));const{position:C}=e.a3.get().accountCenter,{device:I}=e.af,T=function(){var _=(0,Q.Z)(function*(){try{yield(0,e.ag)(r.provider,s,s?.protectedRpcUrl||e.ah),l(4,b=!1)}catch(G){const{code:H}=G;console.log(G,H)}});return function(){return _.apply(this,arguments)}}();return t.$$set=_=>{"expanded"in _&&l(0,g=_.expanded)},t.$$.update=()=>{2&t.$$.dirty[0]&&l(19,[r]=u,r),524288&t.$$.dirty[0]&&l(20,[o]=r?r.chains:[],o),524288&t.$$.dirty[0]&&l(8,i=r&&r.accounts.length&&r.accounts[0].secondaryTokens),1048576&t.$$.dirty[0]&&l(5,s=f.find(({id:_,namespace:G})=>!!o&&_===o.id&&G===o.namespace)),1048576&t.$$.dirty[0]&&l(7,c=(0,e.a4)(o&&o.id)),1048576&t.$$.dirty[0]&&l(6,a=o&&"0x1"===o.id)},[g,u,v,y,b,s,a,c,i,d,m,k,h,function(){u.forEach(({label:_})=>(0,e.P)({label:_}))},f,w,C,I,T,r,o,function(_){e.ai.call(this,t,_)},()=>l(2,v=!1),()=>l(4,b=!1),()=>T(),function(_){y=_,l(3,y)},()=>(0,e.aj)(),()=>l(2,v=!0),()=>l(4,b=!0)]}class Me extends e.S{constructor(n){super(),(0,e.i)(this,n,Vt,Ht,e.s,{expanded:0},Ft,[-1,-1])}}function Dt(t){(0,e.a)(t,"svelte-1xsvwqj",".ac-trigger.svelte-1xsvwqj{--background-color:var(\n --account-center-minimized-background,\n var(--w3o-background-color, white)\n );--text-color:var(--w3o-text-color, var(--gray-700));--border-color:var(\n --account-center-border,\n var(--w3o-border-color, var(--onboard-gray-200, var(--gray-200)))\n );--border-radius:var(\n --account-center-border-radius,\n var(--w3o-border-radius, 1rem)\n );cursor:pointer;pointer-events:auto;width:100%;padding:0.5rem;border:1px solid;background:var(--background-color);color:var(--text-color);border-color:var(--border-color);border-radius:var(--border-radius);box-shadow:var(\n --account-center-box-shadow,\n var(--onboard-shadow-3, var(--shadow-3))\n );z-index:var(--account-center-z-index, 1)}.inner-row.svelte-1xsvwqj{display:flex;flex-flow:row nowrap;align-items:center;gap:0.5rem;padding:0 0.25rem}.wallet-info.svelte-1xsvwqj{display:flex;flex:1;flex-flow:column;height:2.5rem;overflow:hidden}.address.svelte-1xsvwqj{font-weight:600;line-height:1.25rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--account-center-minimized-address-color, inherit)}.balance.svelte-1xsvwqj{font-weight:400;line-height:1.25rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:0.6;color:var(--account-center-minimized-balance-color, inherit)}.chain-icon-container.svelte-1xsvwqj{margin-right:4px}.container.svelte-1xsvwqj{border:1px solid transparent;border-radius:16px;padding:1px;transition:border-color 250ms ease-in-out, backround 250ms ease-in-out;max-width:128px;cursor:default}.drop-shadow.svelte-1xsvwqj{filter:drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.2))}")}function Se(t){let n,r,o,i,s,l=(t[5].length>7?t[5].slice(0,7):t[5])+"";return{c(){n=(0,e.j)("div"),r=(0,e.t)(l),o=(0,e.G)(),i=(0,e.t)(t[2]),(0,e.k)(n,"class","balance svelte-1xsvwqj")},m(c,a){(0,e.b)(c,n,a),(0,e.m)(n,r),(0,e.m)(n,o),(0,e.m)(n,i)},p(c,a){32&a&&l!==(l=(c[5].length>7?c[5].slice(0,7):c[5])+"")&&(0,e.v)(r,l),4&a&&(0,e.v)(i,c[2])},i(c){c&&(s||(0,e.U)(()=>{s=(0,e.V)(n,e.X,{}),s.start()}))},o:e.n,d(c){c&&(0,e.d)(n)}}}function Wt(t){let n,l,r,o,i,s,c,a,u,d,m,k,g,h,f,v,y,b,w,C,I,T,z,j,M,F,L,W,E,Z,p=(t[8]?(0,e.D)(t[8]):t[7]?(0,e.D)(t[7]):t[6])+"";i=new e.W({props:{size:32,padding:4,background:"white",border:"darkGreen",radius:8,icon:t[9]&&t[9].icon||e.ae}}),a=new e.W({props:{size:32,padding:4,background:"green",border:"darkGreen",radius:8,icon:t[1]?t[1].icon:""}}),m=new e.R({props:{size:14}});let _=t[5]&&Se(t);return T=new e.W({props:{size:22,padding:4,background:"custom",color:t[4]?t[4].icon?void 0:"var(--onboard-primary-100, var(--primary-100))":"var(\n --account-center-chain-warning,\n var(--onboard-warning-500, var(--warning-500))\n )",customBackgroundColor:t[4]?t[4].color||t[3]&&t[3].color||e.a6.color:"var(--onboard-warning-200, var(--warning-200))",border:"transparent",radius:25,icon:t[4]?t[4].icon||t[3]&&t[3].icon||e.a6.icon:J}}),j=new ae({props:{chains:t[11],colorVar:"--account-center-minimized-network-selector-color",selectIcon:ne,parentCSSId:"minimized_ac"}}),{c(){n=(0,e.j)("div"),l=(0,e.j)("div"),r=(0,e.j)("div"),o=(0,e.j)("div"),(0,e.F)(i.$$.fragment),s=(0,e.G)(),c=(0,e.j)("div"),(0,e.F)(a.$$.fragment),u=(0,e.G)(),d=(0,e.j)("div"),(0,e.F)(m.$$.fragment),k=(0,e.G)(),g=(0,e.j)("div"),h=(0,e.j)("div"),f=(0,e.t)(p),v=(0,e.G)(),_&&_.c(),y=(0,e.G)(),b=(0,e.j)("div"),w=(0,e.j)("div"),C=(0,e.j)("div"),I=(0,e.j)("div"),(0,e.F)(T.$$.fragment),z=(0,e.G)(),(0,e.F)(j.$$.fragment),(0,e.k)(o,"class","drop-shadow svelte-1xsvwqj"),(0,e.T)(c,"margin-left","-0.5rem"),(0,e.k)(c,"class","drop-shadow svelte-1xsvwqj"),(0,e.T)(d,"right","-4px"),(0,e.T)(d,"bottom","-4px"),(0,e.k)(d,"class","drop-shadow absolute svelte-1xsvwqj"),(0,e.k)(r,"class","flex relative"),(0,e.k)(h,"class","address svelte-1xsvwqj"),(0,e.k)(g,"class","wallet-info svelte-1xsvwqj"),(0,e.k)(I,"class","chain-icon-container svelte-1xsvwqj"),(0,e.k)(C,"class","flex items-center"),(0,e.k)(w,"class","container shadow-1 flex items-center svelte-1xsvwqj"),(0,e.k)(w,"style",M=`border-color: var(${t[4]?"--onboard-primary-200, var(--primary-200)":"--onboard-warning-500, var(--warning-500)"}); background-color: var(${t[4]?"--account-center-minimized-chain-select-background, var(--primary-100)":"--account-center-minimized-chain-select-background-warning, var(--warning-100)"})`),(0,e.k)(b,"class","network"),(0,e.k)(l,"class","inner-row svelte-1xsvwqj"),(0,e.k)(n,"class","ac-trigger svelte-1xsvwqj")},m(G,H){(0,e.b)(G,n,H),(0,e.m)(n,l),(0,e.m)(l,r),(0,e.m)(r,o),(0,e.I)(i,o,null),(0,e.m)(r,s),(0,e.m)(r,c),(0,e.I)(a,c,null),(0,e.m)(r,u),(0,e.m)(r,d),(0,e.I)(m,d,null),(0,e.m)(l,k),(0,e.m)(l,g),(0,e.m)(g,h),(0,e.m)(h,f),(0,e.m)(g,v),_&&_.m(g,null),(0,e.m)(l,y),(0,e.m)(l,b),(0,e.m)(b,w),(0,e.m)(w,C),(0,e.m)(C,I),(0,e.I)(T,I,null),(0,e.m)(C,z),(0,e.I)(j,C,null),W=!0,E||(Z=[(0,e.p)(w,"click",(0,e.J)(t[15])),(0,e.p)(n,"click",(0,e.J)(function(){(0,e.Z)(t[0])&&t[0].apply(this,arguments)}))],E=!0)},p(G,[H]){t=G;const X={};512&H&&(X.icon=t[9]&&t[9].icon||e.ae),i.$set(X);const N={};2&H&&(N.icon=t[1]?t[1].icon:""),a.$set(N),(!W||448&H)&&p!==(p=(t[8]?(0,e.D)(t[8]):t[7]?(0,e.D)(t[7]):t[6])+"")&&(0,e.v)(f,p),t[5]?_?(_.p(t,H),32&H&&(0,e.x)(_,1)):(_=Se(t),_.c(),(0,e.x)(_,1),_.m(g,null)):_&&(_.d(1),_=null);const P={};16&H&&(P.color=t[4]?t[4].icon?void 0:"var(--onboard-primary-100, var(--primary-100))":"var(\n --account-center-chain-warning,\n var(--onboard-warning-500, var(--warning-500))\n )"),24&H&&(P.customBackgroundColor=t[4]?t[4].color||t[3]&&t[3].color||e.a6.color:"var(--onboard-warning-200, var(--warning-200))"),24&H&&(P.icon=t[4]?t[4].icon||t[3]&&t[3].icon||e.a6.icon:J),T.$set(P),(!W||16&H&&M!==(M=`border-color: var(${t[4]?"--onboard-primary-200, var(--primary-200)":"--onboard-warning-500, var(--warning-500)"}); background-color: var(${t[4]?"--account-center-minimized-chain-select-background, var(--primary-100)":"--account-center-minimized-chain-select-background-warning, var(--warning-100)"})`))&&(0,e.k)(w,"style",M)},i(G){W||((0,e.x)(i.$$.fragment,G),(0,e.x)(a.$$.fragment,G),(0,e.x)(m.$$.fragment,G),(0,e.x)(_),(0,e.x)(T.$$.fragment,G),(0,e.x)(j.$$.fragment,G),G&&(0,e.U)(()=>{!W||(L&&L.end(1),F=(0,e.V)(n,e.X,{duration:250}),F.start())}),W=!0)},o(G){(0,e.A)(i.$$.fragment,G),(0,e.A)(a.$$.fragment,G),(0,e.A)(m.$$.fragment,G),(0,e.A)(T.$$.fragment,G),(0,e.A)(j.$$.fragment,G),F&&F.invalidate(),L=(0,e.ak)(n,e.X,{duration:100}),W=!1},d(G){G&&(0,e.d)(n),(0,e.K)(i),(0,e.K)(a),(0,e.K)(m),_&&_.d(),(0,e.K)(T),(0,e.K)(j),G&&L&&L.end(),E=!1,(0,e.L)(Z)}}}function Et(t,n,l){let r,o,i,s,c,a,u,d,m,k,g,h;(0,e.c)(t,e.w,b=>l(14,g=b));let{toggle:p}=n;const f=e.a3.select("appMetadata").pipe((0,O.O)(e.a3.get().appMetadata),(0,R.d)(1));(0,e.c)(t,f,b=>l(9,h=b));const v=e.a3.get().chains;return t.$$set=b=>{"toggle"in b&&l(0,p=b.toggle)},t.$$.update=()=>{16384&t.$$.dirty&&l(1,[r]=g,r),2&t.$$.dirty&&l(13,[o]=r?r.accounts:[],o),8192&t.$$.dirty&&l(8,i=o&&o.ens&&(0,e.D)(o.ens.name)),8192&t.$$.dirty&&l(7,s=o&&o.uns&&(0,e.D)(o.uns.name)),8192&t.$$.dirty&&l(6,c=o?(0,e.E)(o.address):""),8192&t.$$.dirty&&l(2,[a]=o&&o.balance?Object.keys(o.balance):[],a),8196&t.$$.dirty&&l(5,u=o&&o.balance?o.balance[a]:null),2&t.$$.dirty&&l(12,d=r&&r.chains[0]),4096&t.$$.dirty&&l(4,m=v.find(({id:b,namespace:w})=>!!d&&b===d.id&&w===d.namespace)),4096&t.$$.dirty&&l(3,k=(0,e.a4)(d&&d.id))},[p,r,a,k,m,u,c,s,i,h,f,v,d,o,g,function(b){e.ai.call(this,t,b)}]}class Zt extends e.S{constructor(n){super(),(0,e.i)(this,n,Et,Wt,e.s,{toggle:0},Dt)}}function Bt(t){(0,e.a)(t,"svelte-1o9vinu",".ac-trigger.svelte-1o9vinu{--background-color:var(\n --account-center-minimized-background,\n var(--w3o-background-color, white)\n );--text-color:var(--w3o-text-color, var(--gray-700));--border-color:var(\n --account-center-border,\n var(--w3o-border-color, var(--onboard-gray-200, var(--gray-200)))\n );--border-radius:var(\n --account-center-border-radius,\n var(--w3o-border-radius, 1rem)\n );position:relative;cursor:pointer;pointer-events:auto;min-width:80px;background:var(--background-color);color:var(--text-color);border:1px solid var(--border-color);border-radius:var(--border-radius);box-shadow:var(\n --account-center-box-shadow,\n var(--onboard-shadow-3, var(--shadow-3))\n );z-index:var(--account-center-z-index, 1)}.wallet-square-wrapper.svelte-1o9vinu{position:relative;margin-left:-8px}.check-icon-wrapper.svelte-1o9vinu{position:absolute;right:-4px;bottom:-4px}.inner-row.svelte-1o9vinu{display:flex;flex-flow:row nowrap;width:80px;padding:0.75rem}.drop-shadow.svelte-1o9vinu{filter:drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.2))}")}function Kt(t){let n,l,r,o,i,s,c,a,u,d,m,k,g,h,p;return o=new e.W({props:{size:32,padding:4,background:"white",border:"darkGreen",radius:8,icon:t[3]&&t[3].icon||e.ae}}),a=new e.W({props:{size:32,padding:4,background:"green",border:"darkGreen",radius:8,icon:t[1]?t[1].icon:""}}),m=new e.R({props:{size:14}}),{c(){n=(0,e.j)("div"),l=(0,e.j)("div"),r=(0,e.j)("div"),(0,e.F)(o.$$.fragment),i=(0,e.G)(),s=(0,e.j)("div"),c=(0,e.j)("div"),(0,e.F)(a.$$.fragment),u=(0,e.G)(),d=(0,e.j)("div"),(0,e.F)(m.$$.fragment),(0,e.k)(r,"class","drop-shadow svelte-1o9vinu"),(0,e.k)(c,"class","drop-shadow svelte-1o9vinu"),(0,e.k)(d,"class","check-icon-wrapper drop-shadow svelte-1o9vinu"),(0,e.k)(s,"class","wallet-square-wrapper svelte-1o9vinu"),(0,e.k)(l,"class","inner-row svelte-1o9vinu"),(0,e.k)(n,"class","ac-trigger svelte-1o9vinu"),(0,e.k)(n,"style",k=t[2].position.includes("Left")?"align-self: flex-start":null)},m(f,v){(0,e.b)(f,n,v),(0,e.m)(n,l),(0,e.m)(l,r),(0,e.I)(o,r,null),(0,e.m)(l,i),(0,e.m)(l,s),(0,e.m)(s,c),(0,e.I)(a,c,null),(0,e.m)(s,u),(0,e.m)(s,d),(0,e.I)(m,d,null),g=!0,h||(p=(0,e.p)(n,"click",(0,e.J)(function(){(0,e.Z)(t[0])&&t[0].apply(this,arguments)})),h=!0)},p(f,[v]){t=f;const y={};8&v&&(y.icon=t[3]&&t[3].icon||e.ae),o.$set(y);const b={};2&v&&(b.icon=t[1]?t[1].icon:""),a.$set(b),(!g||4&v&&k!==(k=t[2].position.includes("Left")?"align-self: flex-start":null))&&(0,e.k)(n,"style",k)},i(f){g||((0,e.x)(o.$$.fragment,f),(0,e.x)(a.$$.fragment,f),(0,e.x)(m.$$.fragment,f),g=!0)},o(f){(0,e.A)(o.$$.fragment,f),(0,e.A)(a.$$.fragment,f),(0,e.A)(m.$$.fragment,f),g=!1},d(f){f&&(0,e.d)(n),(0,e.K)(o),(0,e.K)(a),(0,e.K)(m),h=!1,p()}}}function Nt(t,n,l){let r,o,i,s;(0,e.c)(t,e.w,d=>l(6,o=d));let{toggle:c}=n;const a=e.a3.select("appMetadata").pipe((0,O.O)(e.a3.get().appMetadata),(0,R.d)(1));(0,e.c)(t,a,d=>l(3,s=d));const u=e.a3.select("accountCenter").pipe((0,O.O)(e.a3.get().accountCenter),(0,R.d)(1));return(0,e.c)(t,u,d=>l(2,i=d)),t.$$set=d=>{"toggle"in d&&l(0,c=d.toggle)},t.$$.update=()=>{64&t.$$.dirty&&l(1,[r]=o,r)},[c,r,i,s,a,u,o]}class Ot extends e.S{constructor(n){super(),(0,e.i)(this,n,Nt,Kt,e.s,{toggle:0},Bt)}}function Rt(t){(0,e.a)(t,"svelte-1nua59o",".ac-container.svelte-1nua59o{display:flex;flex-flow:column;align-items:flex-end;gap:0.5rem}")}function Pe(t){let n,l;return n=new Me({props:{expanded:t[0]}}),{c(){(0,e.F)(n.$$.fragment)},m(r,o){(0,e.I)(n,r,o),l=!0},p(r,o){const i={};1&o&&(i.expanded=r[0]),n.$set(i)},i(r){l||((0,e.x)(n.$$.fragment,r),l=!0)},o(r){(0,e.A)(n.$$.fragment,r),l=!1},d(r){(0,e.K)(n,r)}}}function Ut(t){let n,l;return n=new Zt({props:{toggle:t[4]}}),{c(){(0,e.F)(n.$$.fragment)},m(r,o){(0,e.I)(n,r,o),l=!0},p:e.n,i(r){l||((0,e.x)(n.$$.fragment,r),l=!0)},o(r){(0,e.A)(n.$$.fragment,r),l=!1},d(r){(0,e.K)(n,r)}}}function Jt(t){let n,l;return n=new Ot({props:{toggle:t[4]}}),{c(){(0,e.F)(n.$$.fragment)},m(r,o){(0,e.I)(n,r,o),l=!0},p:e.n,i(r){l||((0,e.x)(n.$$.fragment,r),l=!0)},o(r){(0,e.A)(n.$$.fragment,r),l=!1},d(r){(0,e.K)(n,r)}}}function Fe(t){let n,l;return n=new Me({props:{expanded:t[0]}}),{c(){(0,e.F)(n.$$.fragment)},m(r,o){(0,e.I)(n,r,o),l=!0},p(r,o){const i={};1&o&&(i.expanded=r[0]),n.$set(i)},i(r){l||((0,e.x)(n.$$.fragment,r),l=!0)},o(r){(0,e.A)(n.$$.fragment,r),l=!1},d(r){(0,e.K)(n,r)}}}function Xt(t){let n,r,o,i,s,a,u,d,l=t[1].position.includes("bottom"),c=t[1].position.includes("top"),m=l&&Pe(t);const k=[Jt,Ut],g=[];function h(f,v){return f[1].minimal?0:1}o=h(t),i=g[o]=k[o](t);let p=c&&Fe(t);return{c(){n=(0,e.j)("div"),m&&m.c(),r=(0,e.G)(),i.c(),s=(0,e.G)(),p&&p.c(),(0,e.k)(n,"class","ac-container svelte-1nua59o")},m(f,v){(0,e.b)(f,n,v),m&&m.m(n,null),(0,e.m)(n,r),g[o].m(n,null),(0,e.m)(n,s),p&&p.m(n,null),a=!0,u||(d=(0,e.p)(window,"click",t[3]),u=!0)},p(f,[v]){2&v&&(l=f[1].position.includes("bottom")),l?m?(m.p(f,v),2&v&&(0,e.x)(m,1)):(m=Pe(f),m.c(),(0,e.x)(m,1),m.m(n,r)):m&&((0,e.y)(),(0,e.A)(m,1,1,()=>{m=null}),(0,e.z)());let y=o;o=h(f),o===y?g[o].p(f,v):((0,e.y)(),(0,e.A)(g[y],1,1,()=>{g[y]=null}),(0,e.z)(),i=g[o],i?i.p(f,v):(i=g[o]=k[o](f),i.c()),(0,e.x)(i,1),i.m(n,s)),2&v&&(c=f[1].position.includes("top")),c?p?(p.p(f,v),2&v&&(0,e.x)(p,1)):(p=Fe(f),p.c(),(0,e.x)(p,1),p.m(n,null)):p&&((0,e.y)(),(0,e.A)(p,1,1,()=>{p=null}),(0,e.z)())},i(f){a||((0,e.x)(m),(0,e.x)(i),(0,e.x)(p),a=!0)},o(f){(0,e.A)(m),(0,e.A)(i),(0,e.A)(p),a=!1},d(f){f&&(0,e.d)(n),m&&m.d(),g[o].d(),p&&p.d(),u=!1,d()}}}function qt(t,n,l){let r,o=!1;const i=e.a3.select("accountCenter").pipe((0,O.O)(e.a3.get().accountCenter),(0,R.d)(1));function s(){r.expanded&&((0,e.am)({expanded:!1}),l(0,o=!1))}return(0,e.c)(t,i,a=>l(1,r=a)),(0,e.al)(s),[o,r,i,s,function(){(0,e.am)({expanded:!r.expanded}),l(0,o=!o)}]}class Yt extends e.S{constructor(n){super(),(0,e.i)(this,n,qt,Xt,e.s,{},Rt)}}}}]);