@frames.js/debugger
Version:
Debug your Frames.js applications
18 lines • 116 kB
JavaScript
"use strict";exports.id=6578,exports.ids=[6578],exports.modules={26578:(e,t,r)=>{r.r(t),r.d(t,{WcmModal:()=>ib,WcmQrCode:()=>r$});let i=class{get shadowRoot(){return this.__host.__shadowRoot}constructor(e){this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBraileLabel="",this.ariaBraileRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColSpan="",this.ariaCurrent="",this.ariaDescription="",this.ariaDisabled="",this.ariaExpanded="",this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=e}checkValidity(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}reportValidity(){return!0}setFormValue(){}setValidity(){}},o=new WeakMap,l=e=>{let t=o.get(e);return void 0===t&&o.set(e,t=new Map),t},a=class{constructor(){this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(l(this)).map(([e,t])=>({name:e,value:t}))}get shadowRoot(){return"closed"===this.__shadowRootMode?null:this.__shadowRoot}setAttribute(e,t){l(this).set(e,String(t))}removeAttribute(e){l(this).delete(e)}toggleAttribute(e,t){if(this.hasAttribute(e)){if(void 0===t||!t)return this.removeAttribute(e),!1}else{if(void 0!==t&&!t)return!1;this.setAttribute(e,"")}return!0}hasAttribute(e){return l(this).has(e)}attachShadow(e){let t={host:this};return this.__shadowRootMode=e.mode,e&&"open"===e.mode&&(this.__shadowRoot=t),t}attachInternals(){if(null!==this.__internals)throw Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");let e=new i(this);return this.__internals=e,e}getAttribute(e){return l(this).get(e)??null}},n=class extends a{},s=new class{constructor(){this.__definitions=new Map}define(e,t){if(this.__definitions.has(e))throw Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${e}" has already been used with this registry`);this.__definitions.set(e,{ctor:t,observedAttributes:t.observedAttributes??[]})}get(e){let t=this.__definitions.get(e);return t?.ctor}},c=globalThis,d=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),m=new WeakMap;class p{constructor(e,t,r){if(this._$cssResult$=!0,r!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(d&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=m.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&m.set(t,e))}return e}toString(){return this.cssText}}let u=e=>new p("string"==typeof e?e:e+"",void 0,h),w=(e,...t)=>new p(1===e.length?e[0]:t.reduce((t,r,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[i+1],e[0]),e,h),g=(e,t)=>{d?e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(t=>{let r=document.createElement("style"),i=c.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=t.cssText,e.appendChild(r)})},v=d||void 0===c.CSSStyleSheet?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return u(t)})(e):e,f=globalThis;null!==(e_=f.customElements)&&void 0!==e_||(f.customElements=s);let b=f.trustedTypes,y=b?b.emptyScript:"",x=f.reactiveElementPolyfillSupport,$={toAttribute(e,t){switch(t){case Boolean:e=e?y:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},C=(e,t)=>t!==e&&(t==t||e==e),_={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:C},A="finalized";class E extends(globalThis.HTMLElement??n){constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,r)=>{let i=this._$Ep(r,t);void 0!==i&&(this._$Ev.set(i,r),e.push(i))}),e}static createProperty(e,t=_){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let r="symbol"==typeof e?Symbol():"__"+e,i=this.getPropertyDescriptor(e,r,t);void 0!==i&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(i){let o=this[e];this[t]=i,this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||_}static finalize(){if(this.hasOwnProperty(A))return!1;this[A]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let e=this.properties;for(let t of[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)])this.createProperty(t,e[t])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let r of new Set(e.flat(1/0).reverse()))t.unshift(v(r));else void 0!==e&&t.push(v(e));return t}static _$Ep(e,t){let r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach(e=>e(this))}addController(e){var t,r;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(r=e.hostConnected)||void 0===r||r.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return g(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=_){var i;let o=this.constructor._$Ep(e,r);if(void 0!==o&&!0===r.reflect){let l=(void 0!==(null===(i=r.converter)||void 0===i?void 0:i.toAttribute)?r.converter:$).toAttribute(t,r.type);this._$El=e,null==l?this.removeAttribute(o):this.setAttribute(o,l),this._$El=null}}_$AK(e,t){var r;let i=this.constructor,o=i._$Ev.get(e);if(void 0!==o&&this._$El!==o){let e=i.getPropertyOptions(o),l="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(r=e.converter)||void 0===r?void 0:r.fromAttribute)?e.converter:$;this._$El=o,this[o]=l.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let i=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||C)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let t=!1,r=this._$AL;try{(t=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach(e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}E[A]=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==x||x({ReactiveElement:E}),(null!==(eA=f.reactiveElementVersions)&&void 0!==eA?eA:f.reactiveElementVersions=[]).push("1.6.3");let O=globalThis,k=O.trustedTypes,I=k?k.createPolicy("lit-html",{createHTML:e=>e}):void 0,T="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,S="?"+M,R=`<${S}>`,P=void 0===O.document?{createTreeWalker:()=>({})}:document,L=()=>P.createComment(""),W=e=>null===e||"object"!=typeof e&&"function"!=typeof e,j=Array.isArray,D=e=>j(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),N="[ \n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,H=/>/g,Z=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,B=/"/g,q=/^(?:script|style|textarea|title)$/i,F=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),K=F(1),Q=F(2),Y=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),X=new WeakMap,J=P.createTreeWalker(P,129,null,!1);function ee(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==I?I.createHTML(t):t}let et=(e,t)=>{let r=e.length-1,i=[],o,l=2===t?"<svg>":"",a=z;for(let t=0;t<r;t++){let r=e[t],n,s,c=-1,d=0;for(;d<r.length&&(a.lastIndex=d,null!==(s=a.exec(r)));)d=a.lastIndex,a===z?"!--"===s[1]?a=U:void 0!==s[1]?a=H:void 0!==s[2]?(q.test(s[2])&&(o=RegExp("</"+s[2],"g")),a=Z):void 0!==s[3]&&(a=Z):a===Z?">"===s[0]?(a=null!=o?o:z,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,n=s[1],a=void 0===s[3]?Z:'"'===s[3]?B:V):a===B||a===V?a=Z:a===U||a===H?a=z:(a=Z,o=void 0);let h=a===Z&&e[t+1].startsWith("/>")?" ":"";l+=a===z?r+R:c>=0?(i.push(n),r.slice(0,c)+T+r.slice(c)+M+h):r+M+(-2===c?(i.push(void 0),t):h)}return[ee(e,l+(e[r]||"<?>")+(2===t?"</svg>":"")),i]};class er{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let o=0,l=0,a=e.length-1,n=this.parts,[s,c]=et(e,t);if(this.el=er.createElement(s,r),J.currentNode=this.el.content,2===t){let e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(i=J.nextNode())&&n.length<a;){if(1===i.nodeType){if(i.hasAttributes()){let e=[];for(let t of i.getAttributeNames())if(t.endsWith(T)||t.startsWith(M)){let r=c[l++];if(e.push(t),void 0!==r){let e=i.getAttribute(r.toLowerCase()+T).split(M),t=/([.?@])?(.*)/.exec(r);n.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?en:"?"===t[1]?ec:"@"===t[1]?ed:ea})}else n.push({type:6,index:o})}for(let t of e)i.removeAttribute(t)}if(q.test(i.tagName)){let e=i.textContent.split(M),t=e.length-1;if(t>0){i.textContent=k?k.emptyScript:"";for(let r=0;r<t;r++)i.append(e[r],L()),J.nextNode(),n.push({type:2,index:++o});i.append(e[t],L())}}}else if(8===i.nodeType){if(i.data===S)n.push({type:2,index:o});else{let e=-1;for(;-1!==(e=i.data.indexOf(M,e+1));)n.push({type:7,index:o}),e+=M.length-1}}o++}}static createElement(e,t){let r=P.createElement("template");return r.innerHTML=e,r}}function ei(e,t,r=e,i){var o,l,a;if(t===Y)return t;let n=void 0!==i?null===(o=r._$Co)||void 0===o?void 0:o[i]:r._$Cl,s=W(t)?void 0:t._$litDirective$;return(null==n?void 0:n.constructor)!==s&&(null===(l=null==n?void 0:n._$AO)||void 0===l||l.call(n,!1),void 0===s?n=void 0:(n=new s(e))._$AT(e,r,i),void 0!==i?(null!==(a=r._$Co)&&void 0!==a?a:r._$Co=[])[i]=n:r._$Cl=n),void 0!==n&&(t=ei(e,n._$AS(e,t.values),n,i)),t}class eo{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;let{el:{content:r},parts:i}=this._$AD,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:P).importNode(r,!0);J.currentNode=o;let l=J.nextNode(),a=0,n=0,s=i[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new el(l,l.nextSibling,this,e):1===s.type?t=new s.ctor(l,s.name,s.strings,this,e):6===s.type&&(t=new eh(l,this,e)),this._$AV.push(t),s=i[++n]}a!==(null==s?void 0:s.index)&&(l=J.nextNode(),a++)}return J.currentNode=P,o}v(e){let t=0;for(let r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class el{constructor(e,t,r,i){var o;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=i,this._$Cp=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){W(e=ei(this,e,t))?e===G||null==e||""===e?(this._$AH!==G&&this._$AR(),this._$AH=G):e!==this._$AH&&e!==Y&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):D(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==G&&W(this._$AH)?this._$AA.nextSibling.data=e:this.$(P.createTextNode(e)),this._$AH=e}g(e){var t;let{values:r,_$litType$:i}=e,o="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=er.createElement(ee(i.h,i.h[0]),this.options)),i);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(r);else{let e=new eo(o,this),t=e.u(this.options);e.v(r),this.$(t),this._$AH=e}}_$AC(e){let t=X.get(e.strings);return void 0===t&&X.set(e.strings,t=new er(e)),t}T(e){j(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,i=0;for(let o of e)i===t.length?t.push(r=new el(this.k(L()),this.k(L()),this,this.options)):r=t[i],r._$AI(o),i++;i<t.length&&(this._$AR(r&&r._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class ea{constructor(e,t,r,i,o){this.type=1,this._$AH=G,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,i){let o=this.strings,l=!1;if(void 0===o)(l=!W(e=ei(this,e,t,0))||e!==this._$AH&&e!==Y)&&(this._$AH=e);else{let i,a;let n=e;for(e=o[0],i=0;i<o.length-1;i++)(a=ei(this,n[r+i],t,i))===Y&&(a=this._$AH[i]),l||(l=!W(a)||a!==this._$AH[i]),a===G?e=G:e!==G&&(e+=(null!=a?a:"")+o[i+1]),this._$AH[i]=a}l&&!i&&this.j(e)}j(e){e===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class en extends ea{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===G?void 0:e}}let es=k?k.emptyScript:"";class ec extends ea{constructor(){super(...arguments),this.type=4}j(e){e&&e!==G?this.element.setAttribute(this.name,es):this.element.removeAttribute(this.name)}}class ed extends ea{constructor(e,t,r,i,o){super(e,t,r,i,o),this.type=5}_$AI(e,t=this){var r;if((e=null!==(r=ei(this,e,t,0))&&void 0!==r?r:G)===Y)return;let i=this._$AH,o=e===G&&i!==G||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,l=e!==G&&(i===G||o);o&&this.element.removeEventListener(this.name,this,i),l&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==r?r:this.element,e):this._$AH.handleEvent(e)}}class eh{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ei(this,e)}}let em=O.litHtmlPolyfillSupport;null==em||em(er,el),(null!==(eE=O.litHtmlVersions)&&void 0!==eE?eE:O.litHtmlVersions=[]).push("2.8.0");let ep=(e,t,r)=>{var i,o;let l=null!==(i=null==r?void 0:r.renderBefore)&&void 0!==i?i:t,a=l._$litPart$;if(void 0===a){let e=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:null;l._$litPart$=a=new el(t.insertBefore(L(),e),e,void 0,null!=r?r:{})}return a._$AI(e),a};class eu extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let r=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=r.firstChild),r}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ep(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Y}}eu.finalized=!0,eu._$litElement$=!0,null===(eO=globalThis.litElementHydrateSupport)||void 0===eO||eO.call(globalThis,{LitElement:eu});let ew=globalThis.litElementPolyfillSupport;null==ew||ew({LitElement:eu}),(null!==(ek=globalThis.litElementVersions)&&void 0!==ek?ek:globalThis.litElementVersions=[]).push("3.3.3");/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/let eg=e=>t=>"function"==typeof t?(customElements.define(e,t),t):((e,t)=>{let{kind:r,elements:i}=t;return{kind:r,elements:i,finisher(t){customElements.define(e,t)}}})(e,t),ev=(e,t)=>"method"!==t.kind||!t.descriptor||"value"in t.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}}:{...t,finisher(r){r.createProperty(t.key,e)}},ef=(e,t,r)=>{t.constructor.createProperty(r,e)};function eb(e){return(t,r)=>void 0!==r?ef(e,t,r):ev(e,t)}/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function ey(e){return eb({...e,state:!0})}null!=(null===(eI=globalThis.HTMLSlotElement)||void 0===eI?void 0:eI.prototype.assignedElements)||((e,t)=>e.assignedNodes(t).filter(e=>e.nodeType===Node.ELEMENT_NODE));class ex{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/let e$=(eC=class extends ex{constructor(e){var t;if(super(e),1!==e.type||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var r,i;if(void 0===this.it){for(let i in this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)!t[i]||(null===(r=this.nt)||void 0===r?void 0:r.has(i))||this.it.add(i);return this.render(t)}let o=e.element.classList;for(let e in this.it.forEach(e=>{e in t||(o.remove(e),this.it.delete(e))}),t){let r=!!t[e];r===this.it.has(e)||(null===(i=this.nt)||void 0===i?void 0:i.has(e))||(r?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return Y}},(...e)=>({_$litDirective$:eC,values:e}));var eC,e_,eA,eE,eO,ek,eI,eT=r(64271);let eM={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},eS={ms:e=>1e3*e,s:e=>e/1e3},eR=()=>{},eP=e=>e;function eL(e,t=!0){if(e&&"finished"!==e.playState)try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch(e){}}let eW=e=>e(),ej=(e,t,r=eM.duration)=>new Proxy({animations:e.map(eW).filter(Boolean),duration:r,options:t},eN),eD=e=>e.animations[0],eN={get:(e,t)=>{let r=eD(e);switch(t){case"duration":return e.duration;case"currentTime":return eS.s((null==r?void 0:r[t])||0);case"playbackRate":case"playState":return null==r?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(ez)).catch(eR)),e.finished;case"stop":return()=>{e.animations.forEach(e=>eL(e))};case"forEachNative":return t=>{e.animations.forEach(r=>t(r,e))};default:return void 0===(null==r?void 0:r[t])?void 0:()=>e.animations.forEach(e=>e[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=eS.ms(r);case"playbackRate":for(let i=0;i<e.animations.length;i++)e.animations[i][t]=r;return!0}return!1}},ez=e=>e.finished,eU=e=>"object"==typeof e&&!!e.createAnimation,eH=e=>"number"==typeof e,eZ=e=>Array.isArray(e)&&!eH(e[0]),eV=(e,t,r)=>-r*e+r*t+e,eB=(e,t,r)=>t-e==0?1:(r-e)/(t-e);function eq(e,t){let r=e[e.length-1];for(let i=1;i<=t;i++){let o=eB(0,t,i);e.push(eV(r,1,o))}}let eF=(e,t,r)=>{let i=t-e;return((r-e)%i+i)%i+e},eK=(e,t,r)=>Math.min(Math.max(r,e),t),eQ=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function eY(e,t,r,i){if(e===t&&r===i)return eP;let o=t=>(function(e,t,r,i,o){let l,a;let n=0;do(l=eQ(a=t+(r-t)/2,i,o)-e)>0?r=a:t=a;while(Math.abs(l)>1e-7&&++n<12);return a})(t,0,1,e,r);return e=>0===e||1===e?e:eQ(o(e),t,i)}let eG=(e,t="end")=>r=>{let i=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e;return eK(0,1,("end"===t?Math.floor(i):Math.ceil(i))/e)},eX=e=>"function"==typeof e,eJ=e=>Array.isArray(e)&&eH(e[0]),e0={ease:eY(.25,.1,.25,1),"ease-in":eY(.42,0,1,1),"ease-in-out":eY(.42,0,.58,1),"ease-out":eY(0,0,.58,1)},e1=/\((.*?)\)/;function e2(e){if(eX(e))return e;if(eJ(e))return eY(...e);if(e0[e])return e0[e];if(e.startsWith("steps")){let t=e1.exec(e);if(t){let e=t[1].split(",");return eG(parseFloat(e[0]),e[1].trim())}}return eP}class e5{constructor(e,t=[0,1],{easing:r,duration:i=eM.duration,delay:o=eM.delay,endDelay:l=eM.endDelay,repeat:a=eM.repeat,offset:n,direction:s="normal",autoplay:c=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=eP,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((e,t)=>{this.resolve=e,this.reject=t}),eU(r=r||eM.easing)){let e=r.createAnimation(t);r=e.easing,t=e.keyframes||t,i=e.duration||i}this.repeat=a,this.easing=eZ(r)?eP:e2(r),this.updateDuration(i);let d=function(e,t=function(e){let t=[0];return eq(t,e-1),t}(e.length),r=eP){let i=e.length,o=i-t.length;return o>0&&eq(t,o),o=>{var l;let a=0;for(;a<i-2&&!(o<t[a+1]);a++);let n=eK(0,1,eB(t[a],t[a+1],o));return n=(l=a,eZ(r)?r[eF(0,r.length,l)]:r)(n),eV(e[a],e[a+1],n)}}(t,n,eZ(r)?r.map(e2):eP);this.tick=t=>{var r;let i=0;i=void 0!==this.pauseTime?this.pauseTime:(t-this.startTime)*this.rate,this.t=i,i/=1e3,i=Math.max(i-o,0),"finished"===this.playState&&void 0===this.pauseTime&&(i=this.totalDuration);let a=i/this.duration,n=Math.floor(a),c=a%1;!c&&a>=1&&(c=1),1===c&&n--;let h=n%2;("reverse"===s||"alternate"===s&&h||"alternate-reverse"===s&&!h)&&(c=1-c);let m=i>=this.totalDuration?1:Math.min(c,1),p=d(this.easing(m));e(p),void 0===this.pauseTime&&("finished"===this.playState||i>=this.totalDuration+l)?(this.playState="finished",null===(r=this.resolve)||void 0===r||r.call(this,p)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},c&&this.play()}play(){let e=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(e=this.reject)||void 0===e||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){void 0!==this.pauseTime||0===this.rate?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}var e3=function(){};class e4{setAnimation(e){this.animation=e,null==e||e.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}let e7=new WeakMap;function e6(e){return e7.has(e)||e7.set(e,{transforms:[],values:new Map}),e7.get(e)}let e8=["","X","Y","Z"],e9={x:"translateX",y:"translateY",z:"translateZ"},te={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},tt={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:te,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:eP},skew:te},tr=new Map,ti=e=>`--motion-${e}`,to=["x","y","z"];["translate","scale","rotate","skew"].forEach(e=>{e8.forEach(t=>{to.push(e+t),tr.set(ti(e+t),tt[e])})});let tl=(e,t)=>to.indexOf(e)-to.indexOf(t),ta=new Set(to),tn=e=>ta.has(e),ts=(e,t)=>{e9[t]&&(t=e9[t]);let{transforms:r}=e6(e);(function(e,t){-1===e.indexOf(t)&&e.push(t)})(r,t),e.style.transform=tc(r)},tc=e=>e.sort(tl).reduce(td,"").trim(),td=(e,t)=>`${e} ${t}(var(${ti(t)}))`,th=e=>e.startsWith("--"),tm=new Set,tp=(e,t)=>document.createElement("div").animate(e,t),tu={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{tp({opacity:[1]})}catch(e){return!1}return!0},finished:()=>!!tp({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{tp({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}},tw={},tg={};for(let e in tu)tg[e]=()=>(void 0===tw[e]&&(tw[e]=tu[e]()),tw[e]);let tv=(e,t)=>{let r="",i=Math.round(t/.015);for(let t=0;t<i;t++)r+=e(eB(0,i-1,t))+", ";return r.substring(0,r.length-2)},tf=(e,t)=>eX(e)?tg.linearEasing()?`linear(${tv(e,t)})`:eM.easing:eJ(e)?tb(e):e,tb=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,ty=e=>Array.isArray(e)?e:[e];function tx(e){return e9[e]&&(e=e9[e]),tn(e)?ti(e):e}let t$={get:(e,t)=>{let r=th(t=tx(t))?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&0!==r){let e=tr.get(t);e&&(r=e.initialValue)}return r},set:(e,t,r)=>{th(t=tx(t))?e.style.setProperty(t,r):e.style[t]=r}},tC=e=>"string"==typeof e,t_=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e),tA=function(e,t,r={}){var i,o,l,a,n;"string"==typeof(i=e)?o?(null!==(l=o[i])&&void 0!==l||(o[i]=document.querySelectorAll(i)),i=o[i]):i=document.querySelectorAll(i):i instanceof Element&&(i=[i]);let s=(e=Array.from(i||[])).length;e3(!!s,"No valid element provided."),e3(!!t,"No keyframes defined.");let c=[];for(let i=0;i<s;i++){let o=e[i];for(let e in t){let l=t_(r,e);l.delay=(a=l.delay,n=i,eX(a)?a(n,s):a);let d=function(e,t,r,i={},o){var l;let a;let n=window.__MOTION_DEV_TOOLS_RECORD,s=!1!==i.record&&n,{duration:c=eM.duration,delay:d=eM.delay,endDelay:h=eM.endDelay,repeat:m=eM.repeat,easing:p=eM.easing,persist:u=!1,direction:w,offset:g,allowWebkitAcceleration:v=!1,autoplay:f=!0}=i,b=e6(e),y=tn(t),x=tg.waapi();y&&ts(e,t);let $=tx(t),C=((l=b.values).has($)||l.set($,new e4),l.get($)),_=tr.get($);return eL(C.animation,!(eU(p)&&C.generator)&&!1!==i.record),()=>{let l=()=>{var t,r;return null!==(r=null!==(t=t$.get(e,$))&&void 0!==t?t:null==_?void 0:_.initialValue)&&void 0!==r?r:0},b=function(e,t){for(let r=0;r<e.length;r++)null===e[r]&&(e[r]=r?e[r-1]:t());return e}(ty(r),l),A=function(e,t){var r;let i=(null==t?void 0:t.toDefaultUnit)||eP,o=e[e.length-1];if(tC(o)){let e=(null===(r=o.match(/(-?[\d.]+)([a-z%]*)/))||void 0===r?void 0:r[2])||"";e&&(i=t=>t+e)}return i}(b,_);if(eU(p)){let e=p.createAnimation(b,"opacity"!==t,l,$,C);p=e.easing,b=e.keyframes||b,c=e.duration||c}if(th($)&&(tg.cssRegisterProperty()?function(e){if(!tm.has(e)){tm.add(e);try{let{syntax:t,initialValue:r}=tr.has(e)?tr.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch(e){}}}($):x=!1),y&&!tg.linearEasing()&&(eX(p)||eZ(p)&&p.some(eX))&&(x=!1),x){_&&(b=b.map(e=>eH(e)?_.toDefaultUnit(e):e)),1===b.length&&(!tg.partialKeyframes()||s)&&b.unshift(l());let t={delay:eS.ms(d),duration:eS.ms(c),endDelay:eS.ms(h),easing:eZ(p)?void 0:tf(p,c),direction:w,iterations:m+1,fill:"both"};(a=e.animate({[$]:b,offset:g,easing:eZ(p)?p.map(e=>tf(e,c)):void 0},t)).finished||(a.finished=new Promise((e,t)=>{a.onfinish=e,a.oncancel=t}));let r=b[b.length-1];a.finished.then(()=>{u||(t$.set(e,$,r),a.cancel())}).catch(eR),v||(a.playbackRate=1.000001)}else if(o&&y)1===(b=b.map(e=>"string"==typeof e?parseFloat(e):e)).length&&b.unshift(parseFloat(l())),a=new o(t=>{t$.set(e,$,A?A(t):t)},b,Object.assign(Object.assign({},i),{duration:c,easing:p}));else{let t=b[b.length-1];t$.set(e,$,_&&eH(t)?_.toDefaultUnit(t):t)}return s&&n(e,t,b,{duration:c,delay:d,easing:p,repeat:m,offset:g},"motion-one"),C.setAnimation(a),a&&!f&&a.pause(),a}}(o,e,t[e],l,e5);c.push(d)}}return ej(c,r,r.duration)};function tE(e,t,r){return(eX(e)?function(e,t={}){return ej([()=>{let r=new e5(e,[0,1],t);return r.finished.catch(()=>{}),r}],t,t.duration)}:tA)(e,t,r)}/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/let tO=e=>null!=e?e:G;var tk=r(46372),tI=Object.defineProperty,tT=Object.getOwnPropertySymbols,tM=Object.prototype.hasOwnProperty,tS=Object.prototype.propertyIsEnumerable,tR=(e,t,r)=>t in e?tI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tP=(e,t)=>{for(var r in t||(t={}))tM.call(t,r)&&tR(e,r,t[r]);if(tT)for(var r of tT(t))tS.call(t,r)&&tR(e,r,t[r]);return e};function tL(){return{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}}let tW={getPreset:e=>tL()[e],setTheme(){let e=document.querySelector(":root"),{themeVariables:t}=eT.ThemeCtrl.state;e&&Object.entries(tP(tP(tP({},function(){var e;let t={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[null!=(e=eT.ThemeCtrl.state.themeMode)?e:"dark"];return{"--wcm-color-fg-1":t.foreground[1],"--wcm-color-fg-2":t.foreground[2],"--wcm-color-fg-3":t.foreground[3],"--wcm-color-bg-1":t.background[1],"--wcm-color-bg-2":t.background[2],"--wcm-color-bg-3":t.background[3],"--wcm-color-overlay":t.overlay}}()),tL()),t)).forEach(([t,r])=>e.style.setProperty(t,r))},globalCss:w`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},tj=w`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var tD=Object.defineProperty,tN=Object.getOwnPropertyDescriptor,tz=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?tN(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tD(t,r,l),l};let tU=class extends eu{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){let e={"wcm-icon-left":void 0!==this.iconLeft,"wcm-icon-right":void 0!==this.iconRight,"wcm-ghost":"ghost"===this.variant,"wcm-outline":"outline"===this.variant},t="inverse";return"ghost"===this.variant&&(t="secondary"),"outline"===this.variant&&(t="accent"),K`<button class="${e$(e)}" ?disabled="${this.disabled}" @click="${this.onClick}">${this.iconLeft}<wcm-text variant="small-regular" color="${t}"><slot></slot></wcm-text>${this.iconRight}</button>`}};tU.styles=[tW.globalCss,tj],tz([eb({type:Boolean})],tU.prototype,"disabled",2),tz([eb()],tU.prototype,"iconLeft",2),tz([eb()],tU.prototype,"iconRight",2),tz([eb()],tU.prototype,"onClick",2),tz([eb()],tU.prototype,"variant",2),tU=tz([eg("wcm-button")],tU);let tH=w`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var tZ=Object.defineProperty,tV=Object.getOwnPropertyDescriptor,tB=(e,t,r,i)=>{for(var o,l=i>1?void 0:i?tV(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tZ(t,r,l),l};let tq=class extends eu{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){let e={"wcm-secondary":"secondary"===this.variant};return K`<button ?disabled="${this.disabled}" class="${e$(e)}"><slot></slot></button>`}};tq.styles=[tW.globalCss,tH],tB([eb({type:Boolean})],tq.prototype,"disabled",2),tB([eb()],tq.prototype,"variant",2),tq=tB([eg("wcm-button-big")],tq);let tF=w`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var tK=Object.defineProperty,tQ=Object.getOwnPropertyDescriptor;let tY=class extends eu{render(){return K`<div><slot></slot></div>`}};tY.styles=[tW.globalCss,tF],tY=((e,t,r,i)=>{for(var o,l=i>1?void 0:i?tQ(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i?o(t,r,l):o(l))||l);return i&&l&&tK(t,r,l),l})([eg("wcm-info-footer")],tY);let tG={CROSS_ICON:Q`<svg width="12" height="12" viewBox="0 0 12 12"><path d="M9.94 11A.75.75 0 1 0 11 9.94L7.414 6.353a.5.5 0 0 1 0-.708L11 2.061A.75.75 0 1 0 9.94 1L6.353 4.586a.5.5 0 0 1-.708 0L2.061 1A.75.75 0 0 0 1 2.06l3.586 3.586a.5.5 0 0 1 0 .708L1 9.939A.75.75 0 1 0 2.06 11l3.586-3.586a.5.5 0 0 1 .708 0L9.939 11Z" fill="#fff"/></svg>`,WALLET_CONNECT_LOGO:Q`<svg width="178" height="29" viewBox="0 0 178 29" id="wcm-wc-logo"><path d="M10.683 7.926c5.284-5.17 13.85-5.17 19.134 0l.636.623a.652.652 0 0 1 0 .936l-2.176 2.129a.343.343 0 0 1-.478 0l-.875-.857c-3.686-3.607-9.662-3.607-13.348 0l-.937.918a.343.343 0 0 1-.479 0l-2.175-2.13a.652.652 0 0 1 0-.936l.698-.683Zm23.633 4.403 1.935 1.895a.652.652 0 0 1 0 .936l-8.73 8.543a.687.687 0 0 1-.956 0L20.37 17.64a.172.172 0 0 0-.239 0l-6.195 6.063a.687.687 0 0 1-.957 0l-8.73-8.543a.652.652 0 0 1 0-.936l1.936-1.895a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .239 0l6.195-6.064a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .24 0l6.195-6.064a.687.687 0 0 1 .956 0ZM48.093 20.948l2.338-9.355c.139-.515.258-1.07.416-1.942.12.872.258 1.427.357 1.942l2.022 9.355h4.181l3.528-13.874h-3.21l-1.943 8.523a24.825 24.825 0 0 0-.456 2.457c-.158-.931-.317-1.625-.495-2.438l-1.883-8.542h-4.201l-2.042 8.542a41.204 41.204 0 0 0-.475 2.438 41.208 41.208 0 0 0-.476-2.438l-1.903-8.542h-3.349l3.508 13.874h4.083ZM63.33 21.304c1.585 0 2.596-.654 3.11-1.605-.059.297-.078.595-.078.892v.357h2.655V15.22c0-2.735-1.248-4.32-4.3-4.32-2.636 0-4.36 1.466-4.52 3.487h2.914c.1-.891.734-1.426 1.705-1.426.911 0 1.407.515 1.407 1.11 0 .435-.258.693-1.03.792l-1.388.159c-2.061.257-3.825 1.01-3.825 3.19 0 1.982 1.645 3.092 3.35 3.092Zm.891-2.041c-.773 0-1.348-.436-1.348-1.19 0-.733.655-1.09 1.645-1.268l.674-.119c.575-.118.892-.218 1.09-.396v.912c0 1.228-.892 2.06-2.06 2.06ZM70.398 7.074v13.874h2.874V7.074h-2.874ZM74.934 7.074v13.874h2.874V7.074h-2.874ZM84.08 21.304c2.735 0 4.5-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922H81.92ZM94.92 21.146c.633 0 1.248-.1 1.525-.179v-2.18c-.218.04-.475.06-.693.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.338v-2.24h-2.338V7.788H91.47v3.448H89.37v2.24h2.1v4.201c0 2.3 1.15 3.469 3.45 3.469ZM104.62 21.304c3.924 0 6.302-2.299 6.599-5.608h-3.111c-.238 1.803-1.506 3.032-3.369 3.032-2.2 0-3.746-1.784-3.746-4.796 0-2.953 1.605-4.638 3.805-4.638 1.883 0 2.953 1.15 3.171 2.834h3.191c-.317-3.448-2.854-5.41-6.342-5.41-3.984 0-7.036 2.695-7.036 7.214 0 4.677 2.676 7.372 6.838 7.372ZM117.449 21.304c2.993 0 5.114-1.882 5.114-5.172 0-3.23-2.121-5.233-5.114-5.233-2.972 0-5.093 2.002-5.093 5.233 0 3.29 2.101 5.172 5.093 5.172Zm0-2.22c-1.327 0-2.18-1.09-2.18-2.952 0-1.903.892-2.973 2.18-2.973 1.308 0 2.2 1.07 2.2 2.973 0 1.862-.872 2.953-2.2 2.953ZM126.569 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.229-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM137.464 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.228-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM149.949 21.304c2.735 0 4.499-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922h-3.984ZM160.876 21.304c3.013 0 4.658-1.645 4.975-4.201h-2.874c-.099 1.07-.713 1.982-2.001 1.982-1.309 0-2.2-1.21-2.2-2.993 0-1.942 1.03-2.933 2.259-2.933 1.209 0 1.803.872 1.883 1.882h2.873c-.218-2.358-1.823-4.142-4.776-4.142-2.874 0-5.153 1.903-5.153 5.193 0 3.25 1.923 5.212 5.014 5.212ZM172.067 21.146c.634 0 1.248-.1 1.526-.179v-2.18c-.218.04-.476.06-.694.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.339v-2.24h-2.339V7.788h-2.854v3.448h-2.1v2.24h2.1v4.201c0 2.3 1.15 3.469 3.449 3.469Z" fill="#fff"/></svg>`,WALLET_CONNECT_ICON:Q`<svg width="28" height="20" viewBox="0 0 28 20"><g clip-path="url(#a)"><path d="M7.386 6.482c3.653-3.576 9.575-3.576 13.228 0l.44.43a.451.451 0 0 1 0 .648L19.55 9.033a.237.237 0 0 1-.33 0l-.606-.592c-2.548-2.496-6.68-2.496-9.228 0l-.648.634a.237.237 0 0 1-.33 0L6.902 7.602a.451.451 0 0 1 0-.647l.483-.473Zm16.338 3.046 1.339 1.31a.451.451 0 0 1 0 .648l-6.035 5.909a.475.475 0 0 1-.662 0L14.083 13.2a.119.119 0 0 0-.166 0l-4.283 4.194a.475.475 0 0 1-.662 0l-6.035-5.91a.451.451 0 0 1 0-.647l1.338-1.31a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0Z" fill="#000000"/></g><defs><clipPath id="a"><path fill="#ffffff" d="M0 0h28v20H0z"/></clipPath></defs></svg>`,WALLET_CONNECT_ICON_COLORED:Q`<svg width="96" height="96" fill="none"><path fill="#fff" d="M25.322 33.597c12.525-12.263 32.83-12.263 45.355 0l1.507 1.476a1.547 1.547 0 0 1 0 2.22l-5.156 5.048a.814.814 0 0 1-1.134 0l-2.074-2.03c-8.737-8.555-22.903-8.555-31.64 0l-2.222 2.175a.814.814 0 0 1-1.134 0l-5.156-5.049a1.547 1.547 0 0 1 0-2.22l1.654-1.62Zm56.019 10.44 4.589 4.494a1.547 1.547 0 0 1 0 2.22l-20.693 20.26a1.628 1.628 0 0 1-2.267 0L48.283 56.632a.407.407 0 0 0-.567 0L33.03 71.012a1.628 1.628 0 0 1-2.268 0L10.07 50.75a1.547 1.547 0 0 1 0-2.22l4.59-4.494a1.628 1.628 0 0 1 2.267 0l14.687 14.38c.156.153.41.153.567 0l14.685-14.38a1.628 1.628 0 0 1 2.268 0l14.687 14.38c.156.153.41.153.567 0l14.686-14.38a1.628 1.628 0 0 1 2.268 0Z"/><path stroke="#000" d="M25.672 33.954c12.33-12.072 32.325-12.072 44.655 0l1.508 1.476a1.047 1.047 0 0 1 0 1.506l-5.157 5.048a.314.314 0 0 1-.434 0l-2.074-2.03c-8.932-8.746-23.409-8.746-32.34 0l-2.222 2.174a.314.314 0 0 1-.434 0l-5.157-5.048a1.047 1.047 0 0 1 0-1.506l1.655-1.62Zm55.319 10.44 4.59 4.494a1.047 1.047 0 0 1 0 1.506l-20.694 20.26a1.128 1.128 0 0 1-1.568 0l-14.686-14.38a.907.907 0 0 0-1.267 0L32.68 70.655a1.128 1.128 0 0 1-1.568 0L10.42 50.394a1.047 1.047 0 0 1 0-1.506l4.59-4.493a1.128 1.128 0 0 1 1.567 0l14.687 14.379a.907.907 0 0 0 1.266 0l-.35-.357.35.357 14.686-14.38a1.128 1.128 0 0 1 1.568 0l14.687 14.38a.907.907 0 0 0 1.267 0l14.686-14.38a1.128 1.128 0 0 1 1.568 0Z"/></svg>`,BACK_ICON:Q`<svg width="10" height="18" viewBox="0 0 10 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.735.179a.75.75 0 0 1 .087 1.057L2.92 8.192a1.25 1.25 0 0 0 0 1.617l5.902 6.956a.75.75 0 1 1-1.144.97L1.776 10.78a2.75 2.75 0 0 1 0-3.559L7.678.265A.75.75 0 0 1 8.735.18Z" fill="#fff"/></svg>`,COPY_ICON:Q`<svg width="24" height="24" fill="none"><path fill="#fff" fill-rule="evenodd" d="M7.01 7.01c.03-1.545.138-2.5.535-3.28A5 5 0 0 1 9.73 1.545C10.8 1 12.2 1 15 1c2.8 0 4.2 0 5.27.545a5 5 0 0 1 2.185 2.185C23 4.8 23 6.2 23 9c0 2.8 0 4.2-.545 5.27a5 5 0 0 1-2.185 2.185c-.78.397-1.735.505-3.28.534l-.001.01c-.03 1.54-.138 2.493-.534 3.27a5 5 0 0 1-2.185 2.186C13.2 23 11.8 23 9 23c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C1 19.2 1 17.8 1 15c0-2.8 0-4.2.545-5.27A5 5 0 0 1 3.73 7.545C4.508 7.149 5.46 7.04 7 7.01h.01ZM15 15.5c-1.425 0-2.403-.001-3.162-.063-.74-.06-1.139-.172-1.427-.319a3.5 3.5 0 0 1-1.53-1.529c-.146-.288-.257-.686-.318-1.427C8.501 11.403 8.5 10.425 8.5 9c0-1.425.001-2.403.063-3.162.06-.74.172-1.139.318-1.427a3.5 3.5 0 0 1 1.53-1.53c.288-.146.686-.257 1.427-.318.759-.062 1.737-.063 3.162-.063 1.425 0 2.403.001 3.162.063.74.06 1.139.172 1.427.318a3.5 3.5 0 0 1 1.53 1.53c.146.288.257.686.318 1.427.062.759.063 1.737.063 3.162 0 1.425-.001 2.403-.063 3.162-.06.74-.172 1.139-.319 1.427a3.5 3.5 0 0 1-1.529 1.53c-.288.146-.686.257-1.427.318-.759.062-1.737.063-3.162.063ZM7 8.511c-.444.009-.825.025-1.162.052-.74.06-1.139.172-1.427.318a3.5 3.5 0 0 0-1.53 1.53c-.146.288-.257.686-.318 1.427-.062.759-.063 1.737-.063 3.162 0 1.425.001 2.403.063 3.162.06.74.172 1.139.318 1.427a3.5 3.5 0 0 0 1.53 1.53c.288.146.686.257 1.427.318.759.062 1.737.063 3.162.063 1.425 0 2.403-.001 3.162-.063.74-.06 1.139-.172 1.427-.319a3.5 3.5 0 0 0 1.53-1.53c.146-.287.257-.685.318-1.426.027-.337.043-.718.052-1.162H15c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C7 13.2 7 11.8 7 9v-.489Z" clip-rule="evenodd"/></svg>`,RETRY_ICON:Q`<svg width="15" height="16" viewBox="0 0 15 16"><path d="M6.464 2.03A.75.75 0 0 0 5.403.97L2.08 4.293a1 1 0 0 0 0 1.414L5.403 9.03a.75.75 0 0 0 1.06-1.06L4.672 6.177a.25.25 0 0 1 .177-.427h2.085a4 4 0 1 1-3.93 4.746c-.077-.407-.405-.746-.82-.746-.414 0-.755.338-.7.748a5.501 5.501 0 1 0 5.45-6.248H4.848a.25.25 0 0 1-.177-.427L6.464 2.03Z" fill="#fff"/></svg>`,DESKTOP_ICON:Q`<svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 5.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C2.204 1 3.13 1 4.98 1h6.04c1.85 0 2.775 0 3.466.394a3 3 0 0 1 1.12 1.12C16 3.204 16 4.13 16 5.98v1.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C13.796 12 12.87 12 11.02 12H4.98c-1.85 0-2.775 0-3.466-.394a3 3 0 0 1-1.12-1.12C0 9.796 0 8.87 0 7.02V5.98ZM4.98 2.5h6.04c.953 0 1.568.001 2.034.043.446.04.608.108.69.154a1.5 1.5 0 0 1 .559.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033v1.04c0 .952-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.046-.243.114-.69.154-.466.042-1.08.043-2.033.043H4.98c-.952 0-1.568-.001-2.034-.043-.446-.04-.608-.108-.69-.154a1.5 1.5 0 0 1-.559-.56c-.046-.08-.114-.243-.154-.69-.042-.465-.043-1.08-.043-2.033V5.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.046.243-.114.69-.154.465-.042 1.08-.043 2.033-.043Z" fill="#fff"/><path d="M4 14.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,MOBILE_ICON:Q`<svg width="16" height="16" viewBox="0 0 16 16"><path d="M6.75 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3 4.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C5.204 0 6.136 0 8 0s2.795 0 3.486.394a3 3 0 0 1 1.12 1.12C13 2.204 13 3.13 13 4.98v6.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C10.796 16 9.864 16 8 16s-2.795 0-3.486-.394a3 3 0 0 1-1.12-1.12C3 13.796 3 12.87 3 11.02V4.98Zm8.5 0v6.04c0 .953-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.045-.242.113-.693.154-.47.042-1.091.043-2.05.043-.959 0-1.58-.001-2.05-.043-.45-.04-.613-.109-.693-.154a1.5 1.5 0 0 1-.56-.56c-.046-.08-.114-.243-.154-.69-.042-.466-.043-1.08-.043-2.033V4.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.045.243-.113.693-.154C6.42 1.501 7.041 1.5 8 1.5c.959 0 1.58.001 2.05.043.45.04.613.109.693.154a1.5 1.5 0 0 1 .56.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033Z" fill="#fff"/></svg>`,ARROW_DOWN_ICON:Q`<svg width="14" height="14" viewBox="0 0 14 14"><path d="M2.28 7.47a.75.75 0 0 0-1.06 1.06l5.25 5.25a.75.75 0 0 0 1.06 0l5.25-5.25a.75.75 0 0 0-1.06-1.06l-3.544 3.543a.25.25 0 0 1-.426-.177V.75a.75.75 0 0 0-1.5 0v10.086a.25.25 0 0 1-.427.176L2.28 7.47Z" fill="#fff"/></svg>`,ARROW_UP_RIGHT_ICON:Q`<svg width="15" height="14" fill="none"><path d="M4.5 1.75A.75.75 0 0 1 5.25 1H12a1.5 1.5 0 0 1 1.5 1