PageSourceSearch

https://pepubridge.com/_next/static/chunks/5539.ea38f7647b86c6b3.js

js pepubridge.com collected 2026-10-06 16:18:26 UTC 40,153 bytes, 644 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5539],{65539:(e,t,i)=>{i.r(t),i.d(t,{W3mModal:()=>eu});var o=i(75123),r=i(85866),a=i(69598),s=i(52121),n=i(6756),c=i(81413),l=i(90974),w=i(85818),d=i(65764),p=i(66365),u=i(82351),h=i(42957),m=i(77734),v=i(14891),g=i(8265),y=i(74890),f=i(11973);let b=(0,o.AH)`
2  :host {
3    display: block;
4    border-radius: clamp(0px, var(--wui-border-radius-l), 44px);
5    box-shadow: 0 0 0 1px var(--wui-color-gray-glass-005);
6    background-color: var(--wui-color-modal-bg);
7    overflow: hidden;
8  }
9
10  :host([data-embedded='true']) {
11    box-shadow:
12      0 0 0 1px var(--wui-color-gray-glass-005),
13      0px 4px 12px 4px var(--w3m-card-embedded-shadow-color);
14  }
15`,k=class extends o.WF{render(){return(0,o.qy)`<slot></slot>`}};k.styles=[y.W5,b],k=function(e,t,i,o){var r,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(a<3?r(s):a>3?r(t,i,s):r(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s}([(0,f.E)("wui-card")],k),i(44521);var x=i(57182);i(5324),i(51525),i(16471);let C=(0,o.AH)`
16  :host {
17    display: flex;
18    align-items: center;
19    justify-content: center;
20    padding: var(--wui-spacing-s);
21    border-radius: var(--wui-border-radius-s);
22    border: 1px solid var(--wui-color-dark-glass-100);
23    box-sizing: border-box;
24    background-color: var(--wui-color-bg-325);
25    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
26  }
27
28  wui-flex {
29    width: 100%;
30  }
31
32  wui-text {
33    word-break: break-word;
34    flex: 1;
35  }
36
37  .close {
38    cursor: pointer;
39  }
40
41  .icon-box {
42    height: 40px;
43    width: 40px;
44    border-radius: var(--wui-border-radius-3xs);
45    background-color: var(--local-icon-bg-value);
46  }
47`;var W=function(e,t,i,o){var r,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(a<3?r(s):a>3?r(t,i,s):r(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let S=class extends o.WF{constructor(){super(...arguments),this.message="",this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="info"}render(){return this.style.cssText=`
48      --local-icon-bg-value: var(--wui-color-${this.backgroundColor});
49   `,(0,o.qy)`
50      <wui-flex flexDirection="row" justifyContent="space-between" alignItems="center">
51        <wui-flex columnGap="xs" flexDirection="row" alignItems="center">
52          <wui-flex
53            flexDirection="row"
54            alignItems="center"
55            justifyContent="center"
56            class="icon-box"
57          >
58            <wui-icon color=${this.iconColor} size="md" name=${this.icon}></wui-icon>
59          </wui-flex>
60          <wui-text variant="small-500" color="bg-350" data-testid="wui-alertbar-text"
61            >${this.message}</wui-text
62          >
63        </wui-flex>
64        <wui-icon
65          class="close"
66          color="bg-350"
67          size="sm"
68          name="close"
69          @click=${this.onClose}
70        ></wui-icon>
71      </wui-flex>
72    `}onClose(){x.h.close()}};S.styles=[y.W5,C],W([(0,r.MZ)()],S.prototype,"message",void 0),W([(0,r.MZ)()],S.prototype,"backgroundColor",void 0),W([(0,r.MZ)()],S.prototype,"iconColor",void 0),W([(0,r.MZ)()],S.prototype,"icon",void 0),S=W([(0,f.E)("wui-alertbar")],S);let q=(0,o.AH)`
73  :host {
74    display: block;
75    position: absolute;
76    top: var(--wui-spacing-s);
77    left: var(--wui-spacing-l);
78    right: var(--wui-spacing-l);
79    opacity: 0;
80    pointer-events: none;
81  }
82`;var I=function(e,t,i,o){var r,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(a<3?r(s):a>3?r(t,i,s):r(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let N={info:{backgroundColor:"fg-350",iconColor:"fg-325",icon:"info"},success:{backgroundColor:"success-glass-reown-020",iconColor:"success-125",icon:"checkmark"},warning:{backgroundColor:"warning-glass-reown-020",iconColor:"warning-100",icon:"warningCircle"},error:{backgroundColor:"error-glass-reown-020",iconColor:"error-125",icon:"exclamationTriangle"}},R=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.open=x.h.state.open,this.onOpen(!0),this.unsubscribe.push(x.h.subscribeKey("open",e=>{this.open=e,this.onOpen(!1)}))}
82disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{message:e,variant:t}=x.h.state,i=N[t];return(0,o.qy)`
83      <wui-alertbar
84        message=${e}
85        backgroundColor=${i?.backgroundColor}
86        iconColor=${i?.iconColor}
87        icon=${i?.icon}
88      ></wui-alertbar>
89    `}onOpen(e){this.open?(this.animate([{opacity:0,transform:"scale(0.85)"},{opacity:1,transform:"scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.style.cssText="pointer-events: auto"):e||(this.animate([{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"}),this.style.cssText="pointer-events: none")}};R.styles=q,I([(0,r.wk)()],R.prototype,"open",void 0),R=I([(0,g.EM)("w3m-alertbar")],R);var A=i(40999),E=i(82156),O=i(95188),T=i(41725),$=i(76137);let P=(0,o.AH)`
90  button {
91    border-radius: var(--local-border-radius);
92    color: var(--wui-color-fg-100);
93    padding: var(--local-padding);
94  }
95
96  @media (max-width: 700px) {
97    button {
98      padding: var(--wui-spacing-s);
99    }
100  }
101
102  button > wui-icon {
103    pointer-events: none;
104  }
105
106  button:disabled > wui-icon {
107    color: var(--wui-color-bg-300) !important;
108  }
109
110  button:disabled {
111    background-color: transparent;
112  }
113`;var D=function(e,t,i,o){var r,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(a<3?r(s):a>3?r(t,i,s):r(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let j=class extends o.WF{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="inherit"}
113render(){let e="lg"===this.size?"--wui-border-radius-xs":"--wui-border-radius-xxs",t="lg"===this.size?"--wui-spacing-1xs":"--wui-spacing-2xs";return this.style.cssText=`
114    --local-border-radius: var(${e});
115    --local-padding: var(${t});
116`,(0,o.qy)`
117      <button ?disabled=${this.disabled}>
118        <wui-icon color=${this.iconColor} size=${this.size} name=${this.icon}></wui-icon>
119      </button>
120    `}};j.styles=[y.W5,y.fD,y.ck,P],D([(0,r.MZ)()],j.prototype,"size",void 0),D([(0,r.MZ)({type:Boolean})],j.prototype,"disabled",void 0),D([(0,r.MZ)()],j.prototype,"icon",void 0),D([(0,r.MZ)()],j.prototype,"iconColor",void 0),j=D([(0,f.E)("wui-icon-link")],j),i(82567),i(15731);let H=(0,o.AH)`
121  button {
122    display: block;
123    display: flex;
124    align-items: center;
125    padding: var(--wui-spacing-xxs);
126    gap: var(--wui-spacing-xxs);
127    transition: all var(--wui-ease-out-power-1) var(--wui-duration-md);
128    border-radius: var(--wui-border-radius-xxs);
129  }
130
131  wui-image {
132    border-radius: 100%;
133    width: var(--wui-spacing-xl);
134    height: var(--wui-spacing-xl);
135  }
136
137  wui-icon-box {
138    width: var(--wui-spacing-xl);
139    height: var(--wui-spacing-xl);
140  }
141
142  button:hover {
143    background-color: var(--wui-color-gray-glass-002);
144  }
145
146  button:active {
147    background-color: var(--wui-color-gray-glass-005);
148  }
149`;var B=function(e,t,i,o){var r,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(a<3?r(s):a>3?r(t,i,s):r(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let M=class extends o.WF{constructor(){super(...arguments),this.imageSrc=""}render(){return(0,o.qy)`<button>
150      ${this.imageTemplate()}
151      <wui-icon size="xs" color="fg-200" name="chevronBottom"></wui-icon>
152    </button>`}imageTemplate(){return this.imageSrc?(0,o.qy)`<wui-image src=${this.imageSrc} alt="select visual"></wui-image>`:(0,o.qy)`<wui-icon-box
153      size="xxs"
154      iconColor="fg-200"
155      backgroundColor="fg-100"
156      background="opaque"
157      icon="networkPlaceholder"
158    ></wui-icon-box>`}};M.styles=[y.W5,y.fD,y.ck,H],B([(0,r.MZ)()],M.prototype,"imageSrc",void 0),M=B([(0,f.E)("wui-select")],M),i(60168),i(86401);var z=i(22686);let L=(0,o.AH)`
159  :host {
160    height: 64px;
161  }
162
163  wui-text {
164    text-transform: capitalize;
165  }
166
167  wui-flex.w3m-header-title {
168    transform: translateY(0);
169    opacity: 1;
170  }
171
172  wui-flex.w3m-header-title[view-direction='prev'] {
173    animation:
174      slide-down-out 120ms forwards var(--wui-ease-out-power-2),
175      slide-down-in 120ms forwards var(--wui-ease-out-power-2);
176    animation-delay: 0ms, 200ms;
177  }
178
179  wui-flex.w3m-header-title[view-direction='next'] {
180    animation:
181      slide-up-out 120ms forwards var(--wui-ease-out-power-2),
182      slide-up-in 120ms forwards var(--wui-ease-out-power-2);
183    animation-delay: 0ms, 200ms;
184  }
185
186  wui-icon-link[data-hidden='true'] {
187    opacity: 0 !important;
188    pointer-events: none;
189  }
190
191  @keyframes slide-up-out {
192    from {
193      transform: translateY(0px);
194      opacity: 1;
195    }
196    to {
197      transform: translateY(3px);
198      opacity: 0;
199    }
200  }
201
202  @keyframes slide-up-in {
203    from {
204      transform: translateY(-3px);
205      opacity: 0;
206    }
207    to {
208      transform: translateY(0);
209      opacity: 1;
210    }
211  }
212
213  @keyframes slide-down-out {
214    from {
215      transform: translateY(0px);
216      opacity: 1;
217    }
218    to {
219      transform: translateY(-3px);
220      opacity: 0;
221    }
222  }
223
224  @keyframes slide-down-in {
225    from {
226      transform: translateY(3px);
227      opacity: 0;
228    }
229    to {
230      transform: translateY(0);
231      opacity: 1;
232    }
233  }
234`;var U=function(e,t,i,o){var r,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(a<3?r(s):a>3?r(t,i,s):r(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let K=["SmartSessionList"];function F(){let e=p.I.state.data?.connector?.name,t=p.I.state.data?.wallet?.name,i=p.I.state.data?.network?.name,o=t??e,r=w.a.getConnectors(),a=1===r.length&&r[0]?.id==="w3m-email";return{Connect:`Connect ${a?"Email":""} Wallet`,Create:"Create Wallet",ChooseAccountName:void 0,Account:void 0,AccountSettings:void 0,AllWallets:"All Wallets",ApproveTransaction:"Approve Transaction",BuyInProgress:"Buy",ConnectingExter
234nal:o??"Connect Wallet",ConnectingWalletConnect:o??"WalletConnect",ConnectingWalletConnectBasic:"WalletConnect",ConnectingSiwe:"Sign In",Convert:"Convert",ConvertSelectToken:"Select token",ConvertPreview:"Preview convert",Downloads:o?`Get ${o}`:"Downloads",EmailLogin:"Email Login",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",GetWallet:"Get a wallet",Networks:"Choose Network",OnRampProviders:"Choose Provider",OnRampActivity:"Activity",OnRampTokenSelect:"Select Token",OnRampFiatSelect:"Select Currency",Profile:void 0,SwitchNetwork:i??"Switch Network",SwitchAddress:"Switch Address",Transactions:"Activity",UnsupportedChain:"Switch Network",UpgradeEmailWallet:"Upgrade your Wallet",UpdateEmailWallet:"Edit Email",UpdateEmailPrimaryOtp:"Confirm Current Email",UpdateEmailSecondaryOtp:"Confirm New Email",WhatIsABuy:"What is Buy?",RegisterAccountName:"Choose name",RegisterAccountNameSuccess:"",WalletReceive:"Receive",WalletCompatibleNetworks:"Compatible Networks",Swap:"Swap",SwapSelectToken:"Select token",SwapPreview:"Preview swap",WalletSend:"Send",WalletSendPreview:"Review send",WalletSendSelectToken:"Select Token",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",ConnectWallets:"Connect wallet",ConnectSocials:"All socials",ConnectingSocial:A.U.state.socialProvider?A.U.state.socialProvider:"Connect Social",ConnectingMultiChain:"Select chain",ConnectingFarcaster:"Farcaster",SwitchActiveChain:"Switch chain",SmartSessionCreated:void 0,SmartSessionList:"Smart Sessions",SIWXSignMessage:"Sign In"}}let X=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.heading=F()[p.I.state.view],this.network=l.W.state.activeCaipNetwork,this.networkImage=E.$.getNetworkImage(this.network),this.buffering=!1,this.showBack=!1,this.prevHistoryLength=1,this.view=p.I.state.view,this.viewDirection="",this.headerText=F()[p.I.state.view],this.unsubscribe.push(O.j.subscribeNetworkImages(()=>{this.networkImage=E.$.getNetworkImage(this.network)}),p.I.subscribeKey("view",e=>{setTimeout(()=>{this.view=e,this.headerText=F()[e]},z.o.ANIMATION_DURATIONS.HeaderText),this.onViewChange(),this.onHistoryChange()}),T.x.subscribeKey("buffering",e=>this.buffering=e),l.W.subscribeKey("activeCaipNetwork",e=>{this.network=e,this.networkImage=E.$.getNetworkImage(this.network)}))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.qy)`
235      <wui-flex .padding=${this.getPadding()} justifyContent="space-between" alignItems="center">
236        ${this.leftHeaderTemplate()} ${this.titleTemplate()} ${this.rightHeaderTemplate()}
237      </wui-flex>
238    `}onWalletHelp(){$.E.sendEvent({type:"track",event:"CLICK_WALLET_HELP"}),p.I.push("WhatIsAWallet")}async onClose(){"UnsupportedChain"===p.I.state.view||await u.U.isSIWXCloseDisabled()?c.W.shake():c.W.close()}rightHeaderTemplate(){let e=n.H?.state?.features?.smartSessions;return"Account"===p.I.state.view&&e?(0,o.qy)`<wui-flex>
239      <wui-icon-link
240        icon="clock"
241        @click=${()=>p.I.push("SmartSessionList")}
242        data-testid="w3m-header-smart-sessions"
243      ></wui-icon-link>
244      ${this.closeButtonTemplate()}
245    </wui-flex> `:this.closeButtonTemplate()}closeButtonTemplate(){return(0,o.qy)`
246      <wui-icon-link
247        ?disabled=${this.buffering}
248        icon="close"
249        @click=${this.onClose.bind(this)}
250        data-testid="w3m-header-close"
251      ></wui-icon-link>
252    `}titleTemplate(){let e=K.includes(this.view);return(0,o.qy)`
253      <wui-flex
254        view-direction="${this.viewDirection}"
255        class="w3m-header-title"
256        alignItems="center"
257        gap="xs"
258      >
259        <wui-text variant="paragraph-700" color="fg-100" data-testid="w3m-header-text"
260          >${this.headerText}</wui-text
261        >
262        ${e?(0,o.qy)`<wui-tag variant="main">Beta</wui-tag>`:null}
263      </wui-flex>
264    `}leftHeaderTemplate(){let{view:e}=p.I.state,t="Connect"===e,i=n.H.state.enableEmbedded,r=n.H.state.enableNetworkSwitch;return"Account"===e&&r?(0,o.qy)`<wui-select
265        id="dynamic"
266        data-testid="w3m-account-select-network"
267        active-network=${(0,a.J)(this.network?.name)}
267
268        @click=${this.onNetworks.bind(this)}
269        imageSrc=${(0,a.J)(this.networkImage)}
270      ></wui-select>`:this.showBack&&!("ApproveTransaction"===e||"ConnectingSiwe"===e||t&&i)?(0,o.qy)`<wui-icon-link
271        data-testid="header-back"
272        id="dynamic"
273        icon="chevronLeft"
274        ?disabled=${this.buffering}
275        @click=${this.onGoBack.bind(this)}
276      ></wui-icon-link>`:(0,o.qy)`<wui-icon-link
277      data-hidden=${!t}
278      id="dynamic"
279      icon="helpCircle"
280      @click=${this.onWalletHelp.bind(this)}
281    ></wui-icon-link>`}onNetworks(){this.isAllowedNetworkSwitch()&&($.E.sendEvent({type:"track",event:"CLICK_NETWORKS"}),p.I.push("Networks"))}isAllowedNetworkSwitch(){let e=l.W.getAllRequestedCaipNetworks(),t=!!e&&e.length>1,i=e?.find(({id:e})=>e===this.network?.id);return t||!i}getPadding(){return this.heading?["l","2l","l","2l"]:["0","2l","0","2l"]}onViewChange(){let{history:e}=p.I.state,t=z.o.VIEW_DIRECTION.Next;e.length<this.prevHistoryLength&&(t=z.o.VIEW_DIRECTION.Prev),this.prevHistoryLength=e.length,this.viewDirection=t}async onHistoryChange(){let{history:e}=p.I.state,t=this.shadowRoot?.querySelector("#dynamic");e.length>1&&!this.showBack&&t?(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):e.length<=1&&this.showBack&&t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){p.I.goBack()}};X.styles=L,U([(0,r.wk)()],X.prototype,"heading",void 0),U([(0,r.wk)()],X.prototype,"network",void 0),U([(0,r.wk)()],X.prototype,"networkImage",void 0),U([(0,r.wk)()],X.prototype,"buffering",void 0),U([(0,r.wk)()],X.prototype,"showBack",void 0),U([(0,r.wk)()],X.prototype,"prevHistoryLength",void 0),U([(0,r.wk)()],X.prototype,"view",void 0),U([(0,r.wk)()],X.prototype,"viewDirection",void 0),U([(0,r.wk)()],X.prototype,"headerText",void 0),X=U([(0,g.EM)("w3m-header")],X),i(84300);let Z=(0,o.AH)`
282  :host {
283    display: flex;
284    column-gap: var(--wui-spacing-s);
285    align-items: center;
286    padding: var(--wui-spacing-xs) var(--wui-spacing-m) var(--wui-spacing-xs) var(--wui-spacing-xs);
287    border-radius: var(--wui-border-radius-s);
288    border: 1px solid var(--wui-color-gray-glass-005);
289    box-sizing: border-box;
290    background-color: var(--wui-color-bg-175);
291    box-shadow:
292      0px 14px 64px -4px rgba(0, 0, 0, 0.15),
293      0px 8px 22px -6px rgba(0, 0, 0, 0.15);
294
295    max-width: 300px;
296  }
297
298  :host wui-loading-spinner {
299    margin-left: var(--wui-spacing-3xs);
300  }
301`;var _=function(e,t,i,o){var r,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(a<3?r(s):a>3?r(t,i,s):r(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let Y=class extends o.WF{constructor(){super(...arguments),this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="checkmark",this.message="",this.loading=!1,this.iconType="default"}render(){return(0,o.qy)`
302      ${this.templateIcon()}
303      <wui-text variant="paragraph-500" color="fg-100" data-testid="wui-snackbar-message"
304        >${this.message}</wui-text
305      >
306    `}templateIcon(){return this.loading?(0,o.qy)`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:"default"===this.iconType?(0,o.qy)`<wui-icon size="xl" color=${this.iconColor} name=${this.icon}></wui-icon>`:(0,o.qy)`<wui-icon-box
307      size="sm"
308      iconSize="xs"
309      iconColor=${this.iconColor}
310      backgroundColor=${this.backgroundColor}
311      icon=${this.icon}
312      background="opaque"
313    ></wui-icon-box>`}};Y.styles=[y.W5,Z],_([(0,r.MZ)()],Y.prototype,"backgroundColor",void 0),_([(0,r.MZ)()],Y.prototype,"iconColor",void 0),_([(0,r.MZ)()],Y.prototype,"icon",void 0),_([(0,r.MZ)()],Y.prototype,"message",void 0),_([(0,r.MZ)()],Y.prototype,"loading",void 0),_([(0,r.MZ)()],Y.prototype,"iconType",void 0),Y=_([(0,f.E)("wui-snackbar")],Y);let V=(0,o.AH)`
314  :host {
315    display: block;
316    position: absolute;
317    opacity: 0;
318    pointer-events: none;
319    top: 11px;
320    left: 50%;
321    width: max-content;
322  }
323`;var G=function(e,t,i,o){var r,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(a<3?r(s):a>3?r(t,i,s):r(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let J={loading:void 0,success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}},Q=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=m.P.state.open,this.unsubscribe.push(m.P.subscribeKey("open",e=>{this.open=e,this.onOpen()}))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach(e
323=>e())}render(){let{message:e,variant:t,svg:i}=m.P.state,r=J[t],{icon:a,iconColor:s}=i??r??{};return(0,o.qy)`
324      <wui-snackbar
325        message=${e}
326        backgroundColor=${r?.backgroundColor}
327        iconColor=${s}
328        icon=${a}
329        .loading=${"loading"===t}
330      ></wui-snackbar>
331    `}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:"translateX(-50%) scale(0.85)"},{opacity:1,transform:"translateX(-50%) scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.timeout&&clearTimeout(this.timeout),m.P.state.autoClose&&(this.timeout=setTimeout(()=>m.P.hide(),2500))):this.animate([{opacity:1,transform:"translateX(-50%) scale(1)"},{opacity:0,transform:"translateX(-50%) scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"})}};Q.styles=V,G([(0,r.wk)()],Q.prototype,"open",void 0),Q=G([(0,g.EM)("w3m-snackbar")],Q);var ee=i(11097),et=i(98991);let ei=(0,ee.BX)({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),eo={state:ei,subscribe:e=>(0,ee.B1)(ei,()=>e(ei)),subscribeKey:(e,t)=>(0,et.u$)(ei,e,t),showTooltip({message:e,triggerRect:t,variant:i}){ei.open=!0,ei.message=e,ei.triggerRect=t,ei.variant=i},hide(){ei.open=!1,ei.message="",ei.triggerRect={width:0,height:0,top:0,left:0}}};i(21395);let er=(0,o.AH)`
332  :host {
333    pointer-events: none;
334  }
335
336  :host > wui-flex {
337    display: var(--w3m-tooltip-display);
338    opacity: var(--w3m-tooltip-opacity);
339    padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s);
340    border-radius: var(--wui-border-radius-xxs);
341    color: var(--wui-color-bg-100);
342    position: fixed;
343    top: var(--w3m-tooltip-top);
344    left: var(--w3m-tooltip-left);
345    transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px));
346    max-width: calc(var(--w3m-modal-width) - var(--wui-spacing-xl));
347    transition: opacity 0.2s var(--wui-ease-out-power-2);
348    will-change: opacity;
349  }
350
351  :host([data-variant='shade']) > wui-flex {
352    background-color: var(--wui-color-bg-150);
353    border: 1px solid var(--wui-color-gray-glass-005);
354  }
355
356  :host([data-variant='shade']) > wui-flex > wui-text {
357    color: var(--wui-color-fg-150);
358  }
359
360  :host([data-variant='fill']) > wui-flex {
361    background-color: var(--wui-color-fg-100);
362    border: none;
363  }
364
365  wui-icon {
366    position: absolute;
367    width: 12px !important;
368    height: 4px !important;
369    color: var(--wui-color-bg-150);
370  }
371
372  wui-icon[data-placement='top'] {
373    bottom: 0px;
374    left: 50%;
375    transform: translate(-50%, 95%);
376  }
377
378  wui-icon[data-placement='bottom'] {
379    top: 0;
380    left: 50%;
381    transform: translate(-50%, -95%) rotate(180deg);
382  }
383
384  wui-icon[data-placement='right'] {
385    top: 50%;
386    left: 0;
387    transform: translate(-65%, -50%) rotate(90deg);
388  }
389
390  wui-icon[data-placement='left'] {
391    top: 50%;
392    right: 0%;
393    transform: translate(65%, -50%) rotate(270deg);
394  }
395`;var ea=function(e,t,i,o){var r,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(a<3?r(s):a>3?r(t,i,s):r(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let es=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.open=eo.state.open,this.message=eo.state.message,this.triggerRect=eo.state.triggerRect,this.variant=eo.state.variant,this.unsubscribe.push(eo.subscribe(e=>{this.open=e.open,this.message=e.message,this.triggerRect=e.triggerRect,this.variant=e.variant}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){this.dataset.variant=this.variant;let e=this.triggerRect.top,t=this.triggerRect.left;return this.style.cssText=`
396    --w3m-tooltip-top: ${e}px;
397    --w3m-tooltip-left: ${t}px;
398    --w3m-tooltip-parent-width: ${this.triggerRect.width/2}px;
399    --w3m-tooltip-display: ${this.open?"flex":"none"};
400    --w3m-tooltip-opacity: ${+!!this.open};
401    `,(0,o.qy)`<wui-flex>
402      <wui-icon data-placement="top" color="fg-100" size="inherit" name="cursor"></wui-icon>
403      <wui-text color="inherit" variant="small-500">${this.message}</wui-text>
404    </wui-flex>`}};es.styles=[er],ea([(0,r.wk)()],es.prototype,"open",void 0),ea([(0,r.wk)()],es.prototype,"message",void 0),ea([(0,r.wk)()],es.prototype,"triggerRect",void 0),ea([(0,r.wk)()],es.prototype,"variant",void 0),es=ea([(0,g.EM)("w3m-tooltip"),(0,g.EM)("w3m-tooltip")],es);let en=(0,o.AH)`
405  :host {
406    --prev-height: 0px;
407    --new-height: 0px;
408    display: block;
409  }
410
411  div.w3m-router-container {
412    transform: translateY(0);
413    opacity: 1;
414  }
415
416  div.w3m-router-container[view-direction='prev'] {
417    animation:
418      slide-left-out 150ms forwards ease,
419      slide-left-in 150ms forwards ease;
420    animation-delay: 0ms, 200ms;
421  }
422
423  div.w3m-router-container[view-direction='next'] {
424    animation:
425      slide-right-out 150ms forwards ease,
426      slide-right-in 150ms forwards ease;
427    animation-delay: 0ms, 200ms;
428  }
429
430  @keyframes slide-left-out {
431    from {
432      transform: translateX(0px);
433      opacity: 1;
434    }
435    to {
436      transform: translateX(10px);
437      opacity: 0;
438    }
439  }
440
441  @keyframes slide-left-in {
442    from {
443      transform: translateX(-10px);
444      opacity: 0;
445    }
446    to {
447      transform: translateX(0);
448      opacity: 1;
449    }
450  }
451
452  @keyframes slide-right-out {
453    from {
454      transform: translateX(0px);
455      opacity: 1;
456    }
457    to {
458      transform: translateX(-10px);
459      opacity: 0;
460    }
461  }
462
463  @keyframes slide-right-in {
464    from {
465      transform: translateX(10px);
466      opacity: 0;
467    }
468    to {
469      transform: translateX(0);
470      opacity: 1;
471    }
472  }
473`;var ec=function(e,t,i,o){var r,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(a<3?r(s):a>3?r(t,i,s):r(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let el=class extends o.WF{constructor(){super(),this.resizeObserver=void 0,this.prevHeight="0px",this.prevHistoryLength=1,this.unsubscribe=[],this.view=p.I.state.view,this.viewDirection="",this.unsubscribe.push(p.I.subscribeKey("view",e=>this.onViewChange(e)))}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{let t=`${e?.contentRect.height}px`;"0px"!==this.prevHeight&&(this.style.setProperty("--prev-height",this.prevHeight),this.style.setProperty("--new-height",t),this.style.animation="w3m-view-height 150ms forwards ease",this.style.height="auto"),setTimeout(()=>{this.prevHeight=t,this.style.animation="unset"}
473,z.o.ANIMATION_DURATIONS.ModalHeight)}),this.resizeObserver?.observe(this.getWrapper())}disconnectedCallback(){this.resizeObserver?.unobserve(this.getWrapper()),this.unsubscribe.forEach(e=>e())}render(){return(0,o.qy)`<div class="w3m-router-container" view-direction="${this.viewDirection}">
474      ${this.viewTemplate()}
475    </div>`}viewTemplate(){switch(this.view){case"AccountSettings":return(0,o.qy)`<w3m-account-settings-view></w3m-account-settings-view>`;case"Account":return(0,o.qy)`<w3m-account-view></w3m-account-view>`;case"AllWallets":return(0,o.qy)`<w3m-all-wallets-view></w3m-all-wallets-view>`;case"ApproveTransaction":return(0,o.qy)`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;case"BuyInProgress":return(0,o.qy)`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;case"ChooseAccountName":return(0,o.qy)`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;case"Connect":default:return(0,o.qy)`<w3m-connect-view></w3m-connect-view>`;case"Create":return(0,o.qy)`<w3m-connect-view walletGuide="explore"></w3m-connect-view>`;case"ConnectingWalletConnect":return(0,o.qy)`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;case"ConnectingWalletConnectBasic":return(0,o.qy)`<w3m-connecting-wc-basic-view></w3m-connecting-wc-basic-view>`;case"ConnectingExternal":return(0,o.qy)`<w3m-connecting-external-view></w3m-connecting-external-view>`;case"ConnectingSiwe":return(0,o.qy)`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;case"ConnectWallets":return(0,o.qy)`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;case"ConnectSocials":return(0,o.qy)`<w3m-connect-socials-view></w3m-connect-socials-view>`;case"ConnectingSocial":return(0,o.qy)`<w3m-connecting-social-view></w3m-connecting-social-view>`;case"Downloads":return(0,o.qy)`<w3m-downloads-view></w3m-downloads-view>`;case"EmailLogin":return(0,o.qy)`<w3m-email-login-view></w3m-email-login-view>`;case"EmailVerifyOtp":return(0,o.qy)`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;case"EmailVerifyDevice":return(0,o.qy)`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;case"GetWallet":return(0,o.qy)`<w3m-get-wallet-view></w3m-get-wallet-view>`;case"Networks":return(0,o.qy)`<w3m-networks-view></w3m-networks-view>`;case"SwitchNetwork":return(0,o.qy)`<w3m-network-switch-view></w3m-network-switch-view>`;case"Profile":return(0,o.qy)`<w3m-profile-view></w3m-profile-view>`;case"SwitchAddress":return(0,o.qy)`<w3m-switch-address-view></w3m-switch-address-view>`;case"Transactions":return(0,o.qy)`<w3m-transactions-view></w3m-transactions-view>`;case"OnRampProviders":return(0,o.qy)`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;case"OnRampActivity":return(0,o.qy)`<w3m-onramp-activity-view></w3m-onramp-activity-view>`;case"OnRampTokenSelect":return(0,o.qy)`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;case"OnRampFiatSelect":return(0,o.qy)`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;case"UpgradeEmailWallet":return(0,o.qy)`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;case"UpdateEmailWallet":return(0,o.qy)`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;case"UpdateEmailPrimaryOtp":return(0,o.qy)`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;case"UpdateEmailSecondaryOtp":return(0,o.qy)`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;case"UnsupportedChain":return(0,o.qy)`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;case"Swap":return(0,o.qy)`<w3m-swap-view></w3m-swap-view>`;case"SwapSelectToken":return(0,o.qy)`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;case"SwapPreview":return(0,o.qy)`<w3m-swap-preview-view></w3m-swap-preview-view>`;case"WalletSend":return(0,o.qy)`<w3m-wallet-send-view></w3m-wallet-send-view>`;case"WalletSendSelectToken":return(0,o.qy)`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;case"WalletSendPreview":return(0,o.qy)`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;case"WhatIsABuy":return(0,o.qy)`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;case"WalletReceive":return(0,o.qy)`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;case"WalletCompatibleNetworks":return(0,o.qy)`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;case"WhatIsAWallet":return(0,o.qy)`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;case"ConnectingMultiChain":return(0,o.qy)`<w3m-connecting-multi-chain-view></w3m-connecting-multi-chain-view>`;case"WhatIsANetwork":return(0,o.qy)`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;case"ConnectingFarcaster":return(0,o.qy)`<w3m-connecting-farcaster-view></w3m-connecting-farcaster-view>`;case"SwitchActiveChain":return(0,o.qy)`<w3m-switch-active-chain-view></w3m-switch-active-chain-view>`;case"RegisterAccountName":return(0,o.qy)`<w3m-register-account-name-view></w3m-register-account-name-view>`;case"RegisterAccountNameSuccess":return(0,o.qy)`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`;case"SmartSessionCreated":return(0,o.qy)`<w3m-smart-session-created-view></w3m-smart-session-created-view>`;case"SmartSessionList":return(0,o.qy)`<w3m-smart-session-list-view></w3m-smart-session-list-view>`;case"SIWXSignMessage":return(0,o.qy)`<w3m-siwx-sign-message-view></w3m-siwx-sign-message-view>`}}onViewChange(e){eo.hide();let t=z.o.VIEW_DIRECTION.Next,{history:i}=p.I.state;i.length<this.prevHistoryLength&&(t=z.o.VIEW_DIRECTION.Prev),this.prevHistoryLength=i.length,this.viewDirection=t,setTimeout(()=>{this.view=e},z.o.ANIMATION_DURATIONS.ViewTransition)}getWrapper(){return this.shadowRoot?.querySelector("div")}};el.styles=en,ec([(0,r.wk)()],el.prototype,"view",void 0),ec([(0,r.wk)()],el.prototype,"viewDirection",void 0),el=ec([(0,g.EM)("w3m-router")],el);let ew=(0,o.AH)`
476  :host {
477    z-index: var(--w3m-z-index);
478    display: block;
479    backface-visibility: hidden;
480    will-change: opacity;
481    position: fixed;
482    top: 0;
483    left: 0;
484    right: 0;
485    bottom: 0;
486    pointer-events: none;
487    opacity: 0;
488    background-color: var(--wui-cover);
489    transition: opacity 0.2s var(--wui-ease-out-power-2);
490    will-change: opacity;
491  }
492
493  :host(.open) {
494    opacity: 1;
495  }
496
497  :host(.embedded) {
498    position: relative;
499    pointer-events: unset;
500    background: none;
501    width: 100%;
502    opacity: 1;
503  }
504
505  wui-card {
506    max-width: var(--w3m-modal-width);
507    width: 100%;
508    position: relative;
509    animation: zoom-in 0.2s var(--wui-ease-out-power-2);
510    animation-fill-mode: backwards;
511    outline: none;
512    transition:
513      border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
514      background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
515    will-change: border-radius, background-color;
516  }
517
518  :host(.embedded) wui-card {
519    max-width: 400px;
520  }
521
522  wui-card[shake='true'] {
523    animation:
524      zoom-in 0.2s var(--wui-ease-out-power-2),
525      w3m-shake 0.5s var(--wui-ease-out-power-2);
526  }
527
528  wui-flex {
529    overflow-x: hidden;
530    overflow-y: auto;
531    display: flex;
532    align-items: center;
533    justify-content: center;
534    width: 100%;
535    height: 100%;
536  }
537
538  @media (max-height: 700px) and (min-width: 431px) {
539    wui-flex {
540      align-items: flex-start;
541    }
542
543    wui-card {
544      margin: var(--wui-spacing-xxl) 0px;
545    }
546  }
547
548  @media (max-width: 430px) {
549    wui-flex {
550      align-items: flex-end;
551    }
552
553    wui-card {
554      max-width: 100%;
555      border-bottom-left-radius: var(--local-border-bottom-mobile-radius);
556      border-bottom-right-radius: var(--local-border-bottom-mobile-radius);
557      border-bottom: none;
558      animation: slide-in 0.2s var(--wui-ease-out-power-2);
559    }
560
561    wui-card[shake='true'] {
562      animation:
563        slide-in 0.2s var(--wui-ease-out-power-2),
564        w3m-shake 0.5s var(--wui-ease-out-power-2);
565    }
566  }
567
568  @keyframes zoom-in {
569    0% {
570      transform: scale(0.95) translateY(0);
571    }
572    100% {
573      transform: scale(1) translateY(0);
574    }
575  }
576
577  @keyframes slide-in {
578    0% {
579      transform: scale(1) translateY(50px);
580    }
581    100% {
582      transform: scale(1) translateY(0);
583    }
584  }
585
586  @keyframes w3m-shake {
587    0% {
588      transform: scale(1) rotate(0deg);
589    }
590    20% {
591      transform: scale(1) rotate(-1deg);
592    }
593    40% {
594      transform: scale(1) rotate(1.5deg);
595    }
596    60% {
597      transform: scale(1) rotate(-1.5deg);
598    }
599    80% {
600      transform: scale(1) rotate(1deg);
601    }
602    100% {
603      transform: scale(1) rotate(0deg);
604    }
605  }
606
607  @keyframes w3m-view-height {
608    from {
609      height: var(--prev-height);
610    }
611    to {
612      height: var(--new-height);
613    }
614  }
615`;var ed=function(e,t,i,o){var r,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(a<3?r(s):a>3?r(t,i,s):r(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let ep="scroll-lock",eu=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.abortController=void 0,this.hasPrefetched=!1,this.enableEmbedded=n.H.state.enableEmbedded,this.open=c.W.state.open,this.caipAddress=l.W.state.activeCaipAddress,this.caipNetwork=l.W.state.activeCaipNetwork,this.shake=c.W.state.shake,this.filterByNamespace=w.a.state.filterByNamespace,this.initializeTheming(),d.N.prefetchAnalyticsConfig(),this.unsubscribe.push(c.W.subscribeKey("open",e=>e?this.onOpen():this.onClose()),c.W.subscribeKey("shake",e=>this.shake=e),l.W.subscribeKey("activeCaipNetwork",e=>this.onNewNetwork(e)),l.W.subscribeKey("activeCaipAddress",e=>this.onNewAddress(e)),n.H.subscribeKey("enableEmbedded",e=>this.enableEmbedded=e),w.a.subscribeKey("filterByNamespace",e=>{this.filterByNamespace===e||l.W.getAccountData(e)?.caipAddress||(d.N.fetchRecommendedWallets(),this.filterByNamespace=e)}))}firstUpdated(){if(this.caipAddress){if(this.enableEmbedded){c.W.close(),this.prefetch();return}this.onNewAddress(this.caipAddress)}this.open&&this.onOpen(),this.enableEmbedded&&this.prefetch()}
615disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.onRemoveKeyboardListener()}render(){return(this.style.cssText=`
616      --local-border-bottom-mobile-radius: ${this.enableEmbedded?"clamp(0px, var(--wui-border-radius-l), 44px)":"0px"};
617    `,this.enableEmbedded)?(0,o.qy)`${this.contentTemplate()}
618        <w3m-tooltip></w3m-tooltip> `:this.open?(0,o.qy)`
619          <wui-flex @click=${this.onOverlayClick.bind(this)} data-testid="w3m-modal-overlay">
620            ${this.contentTemplate()}
621          </wui-flex>
622          <w3m-tooltip></w3m-tooltip>
623        `:null}contentTemplate(){return(0,o.qy)` <wui-card
624      shake="${this.shake}"
625      data-embedded="${(0,a.J)(this.enableEmbedded)}"
626      role="alertdialog"
627      aria-modal="true"
628      tabindex="0"
629      data-testid="w3m-modal-card"
630    >
631      <w3m-header></w3m-header>
632      <w3m-router></w3m-router>
633      <w3m-snackbar></w3m-snackbar>
634      <w3m-alertbar></w3m-alertbar>
635    </wui-card>`}async onOverlayClick(e){e.target===e.currentTarget&&await this.handleClose()}async handleClose(){"UnsupportedChain"===p.I.state.view||await u.U.isSIWXCloseDisabled()?c.W.shake():c.W.close()}initializeTheming(){let{themeVariables:e,themeMode:t}=h.W.state,i=g.Zv.getColorTheme(t);(0,g.RF)(e,i)}onClose(){this.open=!1,this.classList.remove("open"),this.onScrollUnlock(),m.P.hide(),this.onRemoveKeyboardListener()}onOpen(){this.open=!0,this.classList.add("open"),this.onScrollLock(),this.onAddKeyboardListener()}onScrollLock(){let e=document.createElement("style");e.dataset.w3m=ep,e.textContent=`
636      body {
637        touch-action: none;
638        overflow: hidden;
639        overscroll-behavior: contain;
640      }
641      w3m-modal {
642        pointer-events: auto;
643      }
644    `,document.head.appendChild(e)}onScrollUnlock(){let e=document.head.querySelector(`style[data-w3m="${ep}"]`);e&&e.remove()}onAddKeyboardListener(){this.abortController=new AbortController;let e=this.shadowRoot?.querySelector("wui-card");e?.focus(),window.addEventListener("keydown",t=>{if("Escape"===t.key)this.handleClose();else if("Tab"===t.key){let{tagName:i}=t.target;!i||i.includes("W3M-")||i.includes("WUI-")||e?.focus()}},this.abortController)}onRemoveKeyboardListener(){this.abortController?.abort(),this.abortController=void 0}async onNewAddress(e){let t=l.W.state.isSwitchingNamespace,i=v.w.getPlainAddress(e);i||t?t&&i&&p.I.goBack():c.W.close(),await u.U.initializeIfEnabled(),this.caipAddress=e,l.W.setIsSwitchingNamespace(!1)}onNewNetwork(e){let t=this.caipNetwork?.caipNetworkId?.toString(),i=e?.caipNetworkId?.toString(),o=l.W.state.isSwitchingNamespace,r=this.caipNetwork?.name===s.o.UNSUPPORTED_NETWORK_NAME,a="ConnectingExternal"===p.I.state.view,n=!this.caipAddress,w="UnsupportedChain"===p.I.state.view;c.W.state.open&&!a&&(n||w||t&&i&&t!==i&&!r&&!o)&&p.I.goBack(),this.caipNetwork=e}prefetch(){this.hasPrefetched||(d.N.prefetch(),d.N.fetchWallets({page:1}),this.hasPrefetched=!0)}};eu.styles=ew,ed([(0,r.MZ)({type:Boolean})],eu.prototype,"enableEmbedded",void 0),ed([(0,r.wk)()],eu.prototype,"open",void 0),ed([(0,r.wk)()],eu.prototype,"caipAddress",void 0),ed([(0,r.wk)()],eu.prototype,"caipNetwork",void 0),ed([(0,r.wk)()],eu.prototype,"shake",void 0),ed([(0,r.wk)()],eu.prototype,"filterByNamespace",void 0),eu=ed([(0,g.EM)("w3m-modal")],eu)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.