PageSourceSearch

https://xota.ai/_next/static/chunks/1609.a6f3fbfdebdef0b3.js

js xota.ai collected 2026-10-05 15:59:51 UTC 20,960 bytes, 64 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1609],{41609:function(t,e,i){i.d(e,{SIWEController:function(){return h},getDidAddress:function(){return r.NmC},getDidChainId:function(){return r.ZzI}});var s,n=i(56374);i(21134);var r=i(42701),o=i(55543),l=i(33085);let a=(0,l.sj)({status:"uninitialized"}),h={state:a,subscribeKey:(t,e)=>(0,o.VW)(a,t,e),subscribe:t=>(0,l.Ld)(a,()=>t(a)),_getClient(){if(!a._client)throw Error("SIWEController client not set");return a._client},async getNonce(t){let e=this._getClient(),i=await e.getNonce(t);return this.setNonce(i),i},async getSession(){try{let t=this._getClient(),e=await t.getSession();return e&&(this.setSession(e),this.setStatus("success")),e}catch{return}},createMessage(t){let e=this._getClient().createMessage(t);return this.setMessage(e),e},async verifyMessage(t){let e=this._getClient();return await e.verifyMessage(t)},async signIn(){let t=this._getClient();return await t.signIn()},async signOut(){let t=this._getClient();await t.signOut(),this.setStatus("ready"),this.setSession(void 0),t.onSignOut?.()},onSignIn(t){let e=this._getClient();e.onSignIn?.(t)},onSignOut(){let t=this._getClient();t.onSignOut?.()},setSIWEClient(t){a._client=(0,l.iH)(t),a.status="ready",n.OptionsController.setIsSiweEnabled(t.options.enabled)},setNonce(t){a.nonce=t},setStatus(t){a.status=t},setMessage(t){a.message=t},setSession(t){a.session=t,a.status=t?"success":"ready"}};var c=i(98179);let d=globalThis,u=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),g=new WeakMap;class ${constructor(t,e,i){if(this._$cssResult$=!0,i!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(u&&void 0===t){let i=void 0!==e&&1===e.length;i&&(t=g.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&g.set(e,t))}return t}toString(){return this.cssText}}let _=t=>new $("string"==typeof t?t:t+"",void 0,p),f=(t,e)=>{if(u)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let i of e){let e=document.createElement("style"),s=d.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=i.cssText,t.appendChild(e)}},y=u?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return _(e)})(t):t,{is:m,defineProperty:A,getOwnPropertyDescriptor:v,getOwnPropertyNames:S,getOwnPropertySymbols:w,getPrototypeOf:b}=Object,E=globalThis,C=E.trustedTypes,x=C?C.emptyScript:"",P=E.reactiveElementPolyfillSupport,U=(t,e)=>t,O={toAttribute(t,e){switch(e){case Boolean:t=t?x:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},N=(t,e)=>!m(t,e),R={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:N};Symbol.metadata??=Symbol("metadata"),E.litPropertyMetadata??=new WeakMap;class T extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=R){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&A(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){let{get:s,set:n}=v(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return s?.call(this)},set(e){let r=s?.call(this);n.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??R}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;let t=b(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(U("properties"))){let t=this.properties;for(let e of[...S(t),...w(t)])this.createProperty(e,t[e])}let t=this[Symbol.metadata];if(null!==t){let e=litPropertyMetadata.get(t);if(void 0!==e)for(let[t,i]of e)this.elementProperties.set(t,i)}for(let[t,e]of(this._$Eh=new Map,this.elementProperties)){let i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];
1if(Array.isArray(t))for(let i of new Set(t.flat(1/0).reverse()))e.unshift(y(i));else void 0!==t&&e.push(y(t));return e}static _$Eu(t,e){let i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map;for(let e of this.constructor.elementProperties.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return f(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){let i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(void 0!==s&&!0===i.reflect){let n=(void 0!==i.converter?.toAttribute?i.converter:O).toAttribute(e,i.type);this._$Em=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){let i=this.constructor,s=i._$Eh.get(t);if(void 0!==s&&this._$Em!==s){let t=i.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:O;this._$Em=s,this[s]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){if(!((i??=this.constructor.getPropertyOptions(t)).hasChanged??N)(this[t],e))return;this.P(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}let t=this.constructor.elementProperties;if(t.size>0)for(let[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],i)}let t=!1,e=this._$AL;try{(t=this.shouldUpdate(e))?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(t=>this._$EC(t,this[t])),this._$EU()}updated(t){}firstUpdated(t){}}T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[U("elementProperties")]=new Map,T[U("finalized")]=new Map,P?.({ReactiveElement:T}),(E.reactiveElementVersions??=[]).push("2.0.4");let M=globalThis,H=M.trustedTypes,I=H?H.createPolicy("lit-html",{createHTML:t=>t}):void 0,k="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,z="?"+j,D=`<${z}>`,L=document,W=()=>L.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,V=Array.isArray,q=t=>V(t)||"function"==typeof t?.[Symbol.iterator],K="[ 	\n\f\r]",X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z=/-->/g,F=/>/g,G=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^ 	
2\f\r"'\`<>=]|("|')|))|$)`,"g"),J=/'/g,Y=/"/g,Q=/^(?:script|style|textarea|title)$/i,tt=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),te=tt(1),ti=(tt(2),Symbol.for("lit-noChange")),ts=Symbol.for("lit-nothing"),tn=new WeakMap,tr=L.createTreeWalker(L,129);function to(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==I?I.createHTML(e):e}let tl=(t,e)=>{let i=t.length-1,s=[],n,r=2===e?"<svg>":"",o=X;for(let e=0;e<i;e++){let i=t[e],l,a,h=-1,c=0;for(;c<i.length&&(o.lastIndex=c,null!==(a=o.exec(i)));)c=o.lastIndex,o===X?"!--"===a[1]?o=Z:void 0!==a[1]?o=F:void 0!==a[2]?(Q.test(a[2])&&(n=RegExp("</"+a[2],"g")),o=G):void 0!==a[3]&&(o=G):o===G?">"===a[0]?(o=n??X,h=-1):void 0===a[1]?h=-2:(h=o.lastIndex-a[2].length,l=a[1],o=void 0===a[3]?G:'"'===a[3]?Y:J):o===Y||o===J?o=G:o===Z||o===F?o=X:(o=G,n=void 0);let d=o===G&&t[e+1].startsWith("/>")?" ":"";r+=o===X?i+D:h>=0?(s.push(l),i.slice(0,h)+k+i.slice(h)+j+d):i+j+(-2===h?e:d)}return[to(t,r+(t[i]||"<?>")+(2===e?"</svg>":"")),s]};class ta{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,r=0,o=t.length-1,l=this.parts,[a,h]=tl(t,e);if(this.el=ta.createElement(a,i),tr.currentNode=this.el.content,2===e){let t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=tr.nextNode())&&l.length<o;){if(1===s.nodeType){if(s.hasAttributes())for(let t of s.getAttributeNames())if(t.endsWith(k)){let e=h[r++],i=s.getAttribute(t).split(j),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?tp:"?"===o[1]?tg:"@"===o[1]?t$:tu}),s.removeAttribute(t)}else t.startsWith(j)&&(l.push({type:6,index:n}),s.removeAttribute(t));if(Q.test(s.tagName)){let t=s.textContent.split(j),e=t.length-1;if(e>0){s.textContent=H?H.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],W()),tr.nextNode(),l.push({type:2,index:++n});s.append(t[e],W())}}}else if(8===s.nodeType){if(s.data===z)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=s.data.indexOf(j,t+1));)l.push({type:7,index:n}),t+=j.length-1}}n++}}static createElement(t,e){let i=L.createElement("template");return i.innerHTML=t,i}}
2function th(t,e,i=t,s){if(e===ti)return e;let n=void 0!==s?i._$Co?.[s]:i._$Cl,r=B(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t))._$AT(t,i,s),void 0!==s?(i._$Co??=[])[s]=n:i._$Cl=n),void 0!==n&&(e=th(t,n._$AS(t,e.values),n,s)),e}class tc{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,s=(t?.creationScope??L).importNode(e,!0);tr.currentNode=s;let n=tr.nextNode(),r=0,o=0,l=i[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new td(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new t_(n,this,t)),this._$AV.push(e),l=i[++o]}r!==l?.index&&(n=tr.nextNode(),r++)}return tr.currentNode=L,s}p(t){let e=0;for(let i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class td{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=ts,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){B(t=th(this,t,e))?t===ts||null==t||""===t?(this._$AH!==ts&&this._$AR(),this._$AH=ts):t!==this._$AH&&t!==ti&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):q(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==ts&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(L.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:i}=t,s="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ta.createElement(to(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(e);else{let t=new tc(s,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=tn.get(t.strings);return void 0===e&&tn.set(t.strings,e=new ta(t)),e}k(t){V(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,s=0;for(let n of t)s===e.length?e.push(i=new td(this.S(W()),this.S(W()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class tu{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,n){this.type=1,this._$AH=ts,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ts}_$AI(t,e=this,i,s){let n=this.strings,r=!1;if(void 0===n)(r=!B(t=th(this,t,e,0))||t!==this._$AH&&t!==ti)&&(this._$AH=t);else{let s,o;let l=t;for(t=n[0],s=0;s<n.length-1;s++)(o=th(this,l[i+s],e,s))===ti&&(o=this._$AH[s]),r||=!B(o)||o!==this._$AH[s],o===ts?t=ts:t!==ts&&(t+=(o??"")+n[s+1]),this._$AH[s]=o}r&&!s&&this.j(t)}j(t){t===ts?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class tp extends tu{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ts?void 0:t}}class tg extends tu{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ts)}}class t$ extends tu{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){if((t=th(this,t,e,0)??ts)===ti)return;let i=this._$AH,s=t===ts&&i!==ts||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==ts&&(i===ts||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class t_{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){th(this,t)}}let tf=M.litHtmlPolyfillSupport;tf?.(ta,td),(M.litHtmlVersions??=[]).push("3.1.4");
2let ty=(t,e,i)=>{let s=i?.renderBefore??e,n=s._$litPart$;if(void 0===n){let t=i?.renderBefore??null;s._$litPart$=n=new td(e.insertBefore(W(),t),t,void 0,i??{})}return n._$AI(t),n};class tm extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ty(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ti}}tm._$litElement$=!0,tm.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:tm});let tA=globalThis.litElementPolyfillSupport;tA?.({LitElement:tm}),(globalThis.litElementVersions??=[]).push("4.0.6");var tv=((t,...e)=>new $(1===t.length?t[0]:e.reduce((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1],t[0]),t,p))`
3  :host {
4    display: flex;
5    justify-content: center;
6    gap: var(--wui-spacing-2xl);
7  }
8
9  wui-visual-thumbnail:nth-child(1) {
10    z-index: 1;
11  }
12`;let tS=class extends tm{constructor(){super(...arguments),this.dappImageUrl=n.OptionsController.state.metadata?.icons,this.walletImageUrl=n.MO.getConnectedWalletImageUrl()}firstUpdated(){let t=this.shadowRoot?.querySelectorAll("wui-visual-thumbnail");t?.[0]&&this.createAnimation(t[0],"translate(18px)"),t?.[1]&&this.createAnimation(t[1],"translate(-18px)")}render(){return te`
13      <wui-visual-thumbnail
14        ?borderRadiusFull=${!0}
15        .imageSrc=${this.dappImageUrl?.[0]}
16      ></wui-visual-thumbnail>
17      <wui-visual-thumbnail .imageSrc=${this.walletImageUrl}></wui-visual-thumbnail>
18    `}createAnimation(t,e){t.animate([{transform:"translateX(0px)"},{transform:e}],{duration:1600,easing:"cubic-bezier(0.56, 0, 0.48, 1)",direction:"alternate",iterations:1/0})}};tS.styles=tv,tS=function(t,e,i,s){var n,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,s);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(r<3?n(o):r>3?n(e,i,o):n(e,i))||o);return r>3&&o&&Object.defineProperty(e,i,o),o}([(0,c.customElement)("w3m-connecting-siwe")],tS);let tw={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:N},tb=(t=tw,e,i)=>{let{kind:s,metadata:n}=i,r=globalThis.litPropertyMetadata.get(n);if(void 0===r&&globalThis.litPropertyMetadata.set(n,r=new Map),r.set(i.name,t),"accessor"===s){let{name:s}=i;return{set(i){let n=e.get.call(this);e.set.call(this,i),this.requestUpdate(s,n,t)},init(e){return void 0!==e&&this.P(s,void 0,t),e}}}if("setter"===s){let{name:s}=i;return function(i){let n=this[s];e.call(this,i),this.requestUpdate(s,n,t)}}throw Error("Unsupported decorator location: "+s)};var tE=i(14306),tC=function(t,e,i,s){var n,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,s);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(r<3?n(o):r>3?n(e,i,o):n(e,i))||o);return r>3&&o&&Object.defineProperty(e,i,o),o};let tx=class extends tm{constructor(){super(...arguments),this.dappName=n.OptionsController.state.metadata?.name,this.isSigning=!1}render(){return this.onRender(),te`
19      <wui-flex justifyContent="center" .padding=${["2xl","0","xxl","0"]}>
20        <w3m-connecting-siwe></w3m-connecting-siwe>
21      </wui-flex>
22      <wui-flex
23        .padding=${["0","4xl","l","4xl"]}
24        gap="s"
25        justifyContent="space-between"
26      >
27        <wui-text variant="paragraph-500" align="center" color="fg-100"
28          >${this.dappName??"Dapp"} needs to connect to your wallet</wui-text
29        >
30      </wui-flex>
31      <wui-flex
32        .padding=${["0","3xl","l","3xl"]}
33        gap="s"
34        justifyContent="space-between"
35      >
36        <wui-text variant="small-400" align="center" color="fg-200"
37          >Sign this message to prove you own this wallet and proceed. Canceling will disconnect
38          you.</wui-text
39        >
40      </wui-flex>
41      <wui-flex .padding=${["l","xl","xl","xl"]}
41 gap="s" justifyContent="space-between">
42        <wui-button
43          size="lg"
44          borderRadius="xs"
45          fullWidth
46          variant="neutral"
47          @click=${this.onCancel.bind(this)}
48          data-testid="w3m-connecting-siwe-cancel"
49        >
50          Cancel
51        </wui-button>
52        <wui-button
53          size="lg"
54          borderRadius="xs"
55          fullWidth
56          variant="main"
57          @click=${this.onSign.bind(this)}
58          ?loading=${this.isSigning}
59          data-testid="w3m-connecting-siwe-sign"
60        >
61          ${this.isSigning?"Signing...":"Sign"}
62        </wui-button>
63      </wui-flex>
64    `}onRender(){h.state.session&&n.IN.close()}async onSign(){this.isSigning=!0,n.Xs.sendEvent({event:"CLICK_SIGN_SIWE_MESSAGE",type:"track"});try{h.setStatus("loading");let t=await h.signIn();return h.setStatus("success"),n.Xs.sendEvent({event:"SIWE_AUTH_SUCCESS",type:"track"}),t}catch(t){return n.AccountController.state.preferredAccountType===tE.y_.ACCOUNT_TYPES.SMART_ACCOUNT?n.SnackController.showError("This application might not support Smart Accounts"):n.SnackController.showError("Signature declined"),h.setStatus("error"),n.Xs.sendEvent({event:"SIWE_AUTH_ERROR",type:"track"})}finally{this.isSigning=!1}}async onCancel(){let{isConnected:t}=n.AccountController.state;t?(await n.ConnectionController.disconnect(),n.IN.close()):n.RouterController.push("Connect"),n.Xs.sendEvent({event:"CLICK_CANCEL_SIWE",type:"track"})}};tC([(s={state:!0,attribute:!1},(t,e)=>"object"==typeof e?tb(s,t,e):((t,e,i)=>{let s=e.hasOwnProperty(i);return e.constructor.createProperty(i,s?{...t,wrapped:!0}:t),s?Object.getOwnPropertyDescriptor(e,i):void 0})(s,t,e))],tx.prototype,"isSigning",void 0),tC([(0,c.customElement)("w3m-connecting-siwe-view")],tx)}}]);

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.