1/*! For license information please see 5.069d5e5d.chunk.js.LICENSE.txt */ 2(self.webpackChunkhewe_io=self.webpackChunkhewe_io||[]).push([[5],{73706(t){"use strict";t.exports=function(t){for(var e=[],n=t.length,i=0;i<n;i++){var o=t.charCodeAt(i);if(o>=55296&&o<=56319&&n>i+1){var r=t.charCodeAt(i+1);r>=56320&&r<=57343&&(o=1024*(o-55296)+r-56320+65536,i+=1)}o<128?e.push(o):o<2048?(e.push(o>>6|192),e.push(63&o|128)):o<55296||o>=57344&&o<65536?(e.push(o>>12|224),e.push(o>>6&63|128),e.push(63&o|128)):o>=65536&&o<=1114111?(e.push(o>>18|240),e.push(o>>12&63|128),e.push(o>>6&63|128),e.push(63&o|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},80998(t,e,n){const i=n(70864),o=n(72680),r=n(55146),a=n(74419);function s(t,e,n,r,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!i())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=e,e=r=void 0):2!==l||e.getContext||(r=n,n=e,e=void 0),new Promise(function(i,a){try{const a=o.create(n,r);i(t(a,e,r))}catch(s){a(s)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=e,e=r=void 0):3===l&&(e.getContext&&"undefined"===typeof a?(a=r,r=void 0):(a=r,r=n,n=e,e=void 0));try{const i=o.create(n,r);a(null,t(i,e,r))}catch(d){a(d)}}e.create=o.create,e.toCanvas=s.bind(null,r.render),e.toDataURL=s.bind(null,r.renderToDataURL),e.toString=s.bind(null,function(t,e,n){return a.render(t,n)})},70864(t){t.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},38122(t,e,n){const i=n(62845).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,n=i(t),o=145===n?26:2*Math.ceil((n-13)/(2*e-2)),r=[n-7];for(let i=1;i<e-1;i++)r[i]=r[i-1]-o;return r.push(6),r.reverse()},e.getPositions=function(t){const n=[],i=e.getRowColCoords(t),o=i.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||n.push([i[e],i[t]]);return n}},54926(t,e,n){const i=n(35062),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function r(t){this.mode=i.ALPHANUMERIC,this.data=t}r.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*o.indexOf(this.data[e]);n+=o.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(o.indexOf(this.data[e]),6)},t.exports=r},21874(t){function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){const e=Math.floor(t/8);return 1===(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n<e;n++)this.putBit(1===(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},16033(t){function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,n,i){const o=t*this.size+e;this.data[o]=n,i&&(this.reservedBit[o]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},869(t,e,n){const i=n(73706),o=n(35062);function r(t){this.mode=o.BYTE,"string"===typeof t&&(t=i(t)),this.data=new Uint8Array(t)}r.getBitsLength=function(t){return 8*t},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){for(let e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},t.exports=r},84257(t,e,n){const i=n(62796),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,
2192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case i.L:return o[4*(t-1)+0];case i.M:return o[4*(t-1)+1];case i.Q:return o[4*(t-1)+2];case i.H:return o[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case i.L:return r[4*(t-1)+0];case i.M:return r[4*(t-1)+1];case i.Q:return r[4*(t-1)+2];case i.H:return r[4*(t-1)+3];default:return}}},62796(t,e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&"undefined"!==typeof t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!==typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(i){return n}}},52593(t,e,n){const i=n(62845).getSymbolSize;e.getPositions=function(t){const e=i(t);return[[0,0],[e-7,0],[0,e-7]]}},82562(t,e,n){const i=n(62845),o=i.getBCHDigit(1335);e.getEncodedBits=function(t,e){const n=t.bit<<3|e;let r=n<<10;for(;i.getBCHDigit(r)-o>=0;)r^=1335<<i.getBCHDigit(r)-o;return 21522^(n<<10|r)}},95626(t,e){const n=new Uint8Array(512),i=new Uint8Array(256);!function(){let t=1;for(let e=0;e<255;e++)n[e]=t,i[t]=e,t<<=1,256&t&&(t^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[i[t]+i[e]]}},86508(t,e,n){const i=n(35062),o=n(62845);function r(t){this.mode=i.KANJI,this.data=t}r.getBitsLength=function(t){return 13*t},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let n=o.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},t.exports=r},28765(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n=3,i=3,o=40,r=10;function a(t,n,i){switch(t){case e.Patterns.PATTERN000:return(n+i)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(n+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return n*i%2+n*i%3===0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2===0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let i=0,o=0,r=0,a=null,s=null;for(let l=0;l<e;l++){o=r=0,a=s=null;for(let c=0;c<e;c++){let e=t.get(l,c);e===a?o++:(o>=5&&(i+=n+(o-5)),a=e,o=1),e=t.get(c,l),e===s?r++:(r>=5&&(i+=n+(r-5)),s=e,r=1)}o>=5&&(i+=n+(o-5)),r>=5&&(i+=n+(r-5))}return i},e.getPenaltyN2=function(t){const e=t.size;let n=0;for(let i=0;i<e-1;i++)for(let o=0;o<e-1;o++){const e=t.get(i,o)+t.get(i,o+1)+t.get(i+1,o)+t.get(i+1,o+1);4!==e&&0!==e||n++}return n*i},e.getPenaltyN3=function(t){const e=t.size;let n=0,i=0,r=0;for(let o=0;o<e;o++){i=r=0;for(let a=0;a<e;a++)i=i<<1&2047|t.get(o,a),a>=10&&(1488===i||93===i)&&n++,r=r<<1&2047|t.get(a,o),a>=10&&(1488===r||93===r)&&n++}return n*o},e.getPenaltyN4=function(t){let e=0;const n=t.data.length;for(let i=0;i<n;i++)e+=t.data[i];return Math.abs(Math.ceil(100*e/n/5)-10)*r},e.applyMask=function(t,e){const n=e.size;
vendor: 4,251 bytes, line 2
2for(let i=0;i<n;i++)for(let o=0;o<n;o++)e.isReserved(o,i)||e.xor(o,i,a(t,o,i))},e.getBestMask=function(t,n){const i=Object.keys(e.Patterns).length;let o=0,r=1/0;for(let a=0;a<i;a++){n(a),e.applyMask(a,t);const i=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),i<r&&(r=i,o=a)}return o}},35062(t,e,n){const i=n(24077),o=n(68283);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return o.testNumeric(t)?e.NUMERIC:o.testAlphanumeric(t)?e.ALPHANUMERIC:o.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!==typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(i){return n}}},96888(t,e,n){const i=n(35062);function o(t){this.mode=i.NUMERIC,this.data=t.toString()}o.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);const o=this.data.length-e;o>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*o+1))},t.exports=o},78636(t,e,n){const i=n(95626);e.mul=function(t,e){const n=new Uint8Array(t.length+e.length-1);for(let o=0;o<t.length;o++)for(let r=0;r<e.length;r++)n[o+r]^=i.mul(t[o],e[r]);return n},e.mod=function(t,e){let n=new Uint8Array(t);for(;n.length-e.length>=0;){const t=n[0];for(let r=0;r<e.length;r++)n[r]^=i.mul(e[r],t);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},e.generateECPolynomial=function(t){let n=new Uint8Array([1]);for(let o=0;o<t;o++)n=e.mul(n,new Uint8Array([1,i.exp(o)]));return n}},72680(t,e,n){const i=n(62845),o=n(62796),r=n(21874),a=n(16033),s=n(38122),l=n(52593),c=n(28765),d=n(84257),u=n(3357),h=n(28680),p=n(82562),w=n(35062),g=n(26624);function f(t,e,n){const i=t.size,o=p.getEncodedBits(e,n);let r,a;for(r=0;r<15;r++)a=1===(o>>r&1),r<6?t.set(r,8,a,!0):r<8?t.set(r+1,8,a,!0):t.set(i-15+r,8,a,!0),r<8?t.set(8,i-r-1,a,!0):r<9?t.set(8,15-r-1+1,a,!0):t.set(8,15-r-1,a,!0);t.set(i-8,8,1,!0)}function v(t,e,n){const o=new r;n.forEach(function(e){o.put(e.mode.bit,4),o.put(e.getLength(),w.getCharCountIndicator(e.mode,t)),e.write(o)});const a=8*(i.getSymbolTotalCodewords(t)-d.getTotalCodewordsCount(t,e));for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const s=(a-o.getLengthInBits())/8;for(let i=0;i<s;i++)o.put(i%2?17:236,8);return function(t,e,n){const o=i.getSymbolTotalCodewords(e),r=d.getTotalCodewordsCount(e,n),a=o-r,s=d.getBlocksCount(e,n),l=o%s,c=s-l,h=Math.floor(o/s),p=Math.floor(a/s),w=p+1,g=h-p,f=new u(g);let v=0;const b=new Array(s),m=new Array(s);let y=0;const x=new Uint8Array(t.buffer);for(let i=0;i<s;i++){const t=i<c?p:w;b[i]=x.slice(v,v+t),m[i]=f.encode(b[i]),v+=t,y=Math.max(y,t)}const k=new Uint8Array(o);let C,A,R=0;for(C=0;C<y;C++)for(A=0;A<s;A++)C<b[A].length&&(k[R++]=b[A][C]);for(C=0;C<g;C++)for(A=0;A<s;A++)k[R++]=m[A][C];return k}(o,t,e)}function b(t,e,n,o){let r;if(Array.isArray(t))r=g.fromArray(t);else{if("string"!==typeof t)throw new Error("Invalid data");{let i=e;if(!i){const e=g.rawSplit(t);i=h.getBestVersionForData(e,n)}r=g.fromString(t,i||40)}}const d=h.getBestVersionForData(r,n);if(!d)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<d)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+d+".\n")}else e=d;
vendor: 6,407 bytes, line 2
2const u=v(e,n,r),p=i.getSymbolSize(e),w=new a(p);return function(t,e){const n=t.size,i=l.getPositions(e);for(let o=0;o<i.length;o++){const e=i[o][0],r=i[o][1];for(let i=-1;i<=7;i++)if(!(e+i<=-1||n<=e+i))for(let o=-1;o<=7;o++)r+o<=-1||n<=r+o||(i>=0&&i<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===i||6===i)||i>=2&&i<=4&&o>=2&&o<=4?t.set(e+i,r+o,!0,!0):t.set(e+i,r+o,!1,!0))}}(w,e),function(t){const e=t.size;for(let n=8;n<e-8;n++){const e=n%2===0;t.set(n,6,e,!0),t.set(6,n,e,!0)}}(w),function(t,e){const n=s.getPositions(e);for(let i=0;i<n.length;i++){const e=n[i][0],o=n[i][1];for(let n=-2;n<=2;n++)for(let i=-2;i<=2;i++)-2===n||2===n||-2===i||2===i||0===n&&0===i?t.set(e+n,o+i,!0,!0):t.set(e+n,o+i,!1,!0)}}(w,e),f(w,n,0),e>=7&&function(t,e){const n=t.size,i=h.getEncodedBits(e);let o,r,a;for(let s=0;s<18;s++)o=Math.floor(s/3),r=s%3+n-8-3,a=1===(i>>s&1),t.set(o,r,a,!0),t.set(r,o,a,!0)}(w,e),function(t,e){const n=t.size;let i=-1,o=n-1,r=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!t.isReserved(o,s-n)){let i=!1;a<e.length&&(i=1===(e[a]>>>r&1)),t.set(o,s-n,i),r--,-1===r&&(a++,r=7)}if(o+=i,o<0||n<=o){o-=i,i=-i;break}}}(w,u),isNaN(o)&&(o=c.getBestMask(w,f.bind(null,w,n))),c.applyMask(o,w),f(w,n,o),{modules:w,version:e,errorCorrectionLevel:n,maskPattern:o,segments:r}}e.create=function(t,e){if("undefined"===typeof t||""===t)throw new Error("No input text");let n,r,a=o.M;return"undefined"!==typeof e&&(a=o.from(e.errorCorrectionLevel,o.M),n=h.from(e.version),r=c.from(e.maskPattern),e.toSJISFunc&&i.setToSJISFunction(e.toSJISFunc)),b(t,n,a,r)}},3357(t,e,n){const i=n(78636);function o(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(t){this.degree=t,this.genPoly=i.generateECPolynomial(this.degree)},o.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const n=i.mod(e,this.genPoly),o=this.degree-n.length;if(o>0){const t=new Uint8Array(this.degree);return t.set(n,o),t}return n},t.exports=o},68283(t,e){const n="[0-9]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+")(?:.|[\r\n]))+";e.KANJI=new RegExp(i,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(o,"g"),e.NUMERIC=new RegExp(n,"g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const r=new RegExp("^"+i+"$"),a=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return r.test(t)},e.testNumeric=function(t){return a.test(t)},e.testAlphanumeric=function(t){return s.test(t)}},26624(t,e,n){const i=n(35062),o=n(96888),r=n(54926),a=n(869),s=n(86508),l=n(68283),c=n(62845),d=n(30727);function u(t){return unescape(encodeURIComponent(t)).length}function h(t,e,n){const i=[];let o;for(;null!==(o=t.exec(n));)i.push({data:o[0],index:o.index,mode:e,length:o[0].length});return i}function p(t){const e=h(l.NUMERIC,i.NUMERIC,t),n=h(l.ALPHANUMERIC,i.ALPHANUMERIC,t);let o,r;c.isKanjiModeEnabled()?(o=h(l.BYTE,i.BYTE,t),r=h(l.KANJI,i.KANJI,t)):(o=h(l.BYTE_KANJI,i.BYTE,t),r=[]);return e.concat(n,o,r).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function w(t,e){switch(e){case i.NUMERIC:return o.getBitsLength(t);case i.ALPHANUMERIC:return r.getBitsLength(t);case i.KANJI:return s.getBitsLength(t);case i.BYTE:return a.getBitsLength(t)}}function g(t,e){let n;const l=i.getBestModeForData(t);if(n=i.from(e,l),n!==i.BYTE&&n.bit<l.bit)throw new Error('"'+t+'" cannot be encoded with mode '+i.toString(n)+".\n Suggested mode is: "+i.toString(l));switch(n!==i.KANJI||c.isKanjiModeEnabled()||(n=i.BYTE),n){case i.NUMERIC:return new o(t);case i.ALPHANUMERIC:return new r(t);case i.KANJI:return new s(t);case i.BYTE:return new a(t)}}e.fromArray=function(t){return t.reduce(function(t,e){return"string"===typeof e?t.push(g(e,null)):e.data&&t.push(g(e.data,e.mode)),t},[])},e.fromString=function(t,n){const o=function(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];switch(o.mode){case i.NUMERIC:e.push([o,{data:o.data,mode:i.ALPHANUMERIC,length:o.length},{data:o.data,mode:i.BYTE,length:o.length}]);break;case i.ALPHANUMERIC:e.push([o,{data:o.data,mode:i.BYTE,length:o.length}]);break;case i.KANJI:e.push([o,{data:o.data,mode:i.BYTE,length:u(o.data)}]);break;case i.BYTE:e.push([{data:o.data,mode:i.BYTE,length:u(o.data)}])}}return e}(p(t,c.isKanjiModeEnabled())),r=function(t,e){const n={},o={start:{}};let r=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],d=""+a+t;l.push(d),n[d]={node:c,lastCount:0},o[d]={};for(let t=0;t<r.length;t++){const a=r[t];n[a]&&n[a].node.mode===c.mode?(o[a][d]=w(n[a].lastCount+c.length,c.mode)-w(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),o[a][d]=w(c.length,c.mode)+4+i.getCharCountIndicator(c.mode,e))}}r=l}for(let i=0;i<r.length;i++)o[r[i]].end=0;return{map:o,table:n}}(o,n),a=d.find_path(r.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(r.table[a[e]].node);return e.fromArray(function(t){return t.reduce(function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}(s))},e.rawSplit=function(t){return e.fromArray(p(t,c.isKanjiModeEnabled()))}},62845(t,e){let n;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return i[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!==typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return"undefined"!==typeof n},e.toSJIS=function(t){return n(t)}},24077(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},28680(t,e,n){const i=n(62845),o=n(84257),r=n(62796),a=n(35062),s=n(24077),l=i.getBCHDigit
2(7973);function c(t,e){return a.getCharCountIndicator(t,e)+4}function d(t,e){let n=0;return t.forEach(function(t){const i=c(t.mode,e);n+=i+t.getBitsLength()}),n}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const r=8*(i.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,e));if(n===a.MIXED)return r;const l=r-c(n,t);switch(n){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},e.getBestVersionForData=function(t,n){let i;const o=r.from(n,r.M);if(Array.isArray(t)){if(t.length>1)return function(t,n){for(let i=1;i<=40;i++)if(d(t,i)<=e.getCapacity(i,n,a.MIXED))return i}(t,o);if(0===t.length)return 1;i=t[0]}else i=t;return function(t,n,i){for(let o=1;o<=40;o++)if(n<=e.getCapacity(o,i,t))return o}(i.mode,i.getLength(),o)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;i.getBCHDigit(e)-l>=0;)e^=7973<<i.getBCHDigit(e)-l;return t<<12|e}},55146(t,e,n){const i=n(76713);e.render=function(t,e,n){let o=n,r=e;"undefined"!==typeof o||e&&e.getContext||(o=e,e=void 0),e||(r=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),o=i.getOptions(o);const a=i.getImageWidth(t.modules.size,o),s=r.getContext("2d"),l=s.createImageData(a,a);return i.qrToImageData(l.data,t,o),function(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}(s,r,a),s.putImageData(l,0,0),r},e.renderToDataURL=function(t,n,i){let o=i;"undefined"!==typeof o||n&&n.getContext||(o=n,n=void 0),o||(o={});const r=e.render(t,n,o),a=o.type||"image/png",s=o.rendererOpts||{};return r.toDataURL(a,s.quality)}},74419(t,e,n){const i=n(76713);function o(t,e){const n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function r(t,e,n){let i=t+e;return"undefined"!==typeof n&&(i+=" "+n),i}e.render=function(t,e,n){const a=i.getOptions(e),s=t.modules.size,l=t.modules.data,c=s+2*a.margin,d=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+o(a.color.dark,"stroke")+' d="'+function(t,e,n){let i="",o=0,a=!1,s=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),d=Math.floor(l/e);c||a||(a=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(i+=a?r("M",c+n,.5+d+n):r("m",o,0),o=0,a=!1),c+1<e&&t[l+1]||(i+=r("h",s),s=0)):o++}return i}(l,s,a.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+h+' shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"===typeof n&&n(null,p),p}},76713(t,e){function n(t){if("number"===typeof t&&(t=t.toString()),"string"!==typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e="undefined"===typeof t.margin||null===t.margin||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;
2return{width:i,scale:i?4:o,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){const i=e.getScale(t,n);return Math.floor((t+2*n.margin)*i)},e.qrToImageData=function(t,n,i){const o=n.modules.size,r=n.modules.data,a=e.getScale(o,i),s=Math.floor((o+2*i.margin)*a),l=i.margin*a,c=[i.color.light,i.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let d=4*(e*s+n),u=i.color.light;if(e>=l&&n>=l&&e<s-l&&n<s-l){u=c[r[Math.floor((e-l)/a)*o+Math.floor((n-l)/a)]?1:0]}t[d++]=u.r,t[d++]=u.g,t[d++]=u.b,t[d]=u.a}}},20005(t,e,n){"use strict";n.r(e),n.d(e,{W3mAllWalletsView:()=>Lo,W3mConnectingWcBasicView:()=>di,W3mDownloadsView:()=>tr});var i,o=n(46420),r=n(98475),a=n(20197),s=n(68751),l=n(95730),c=n(39733),d=n(30551),u=n(61901),h=(n(1545),n(51515)),p=n(11253),w=n(86109),g=n(41277),f=n(87618),v=n(92142),b=n(40878),m=(n(70094),n(4928),n(89382),n(56400)),y=n(96575);n(57198),n(23204);const x=(0,f.AH)(i||(i=(0,o.A)(["\n :host {\n position: relative;\n background-color: var(--wui-color-gray-glass-002);\n display: flex;\n justify-content: center;
2\n align-items: center;\n width: var(--local-size);\n height: var(--local-size);\n border-radius: inherit;\n border-radius: var(--local-border-radius);\n }\n\n :host > wui-flex {\n overflow: hidden;\n border-radius: inherit;\n border-radius: var(--local-border-radius);\n }\n\n :host::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n border-radius: inherit;\n border: 1px solid var(--wui-color-gray-glass-010);\n pointer-events: none;\n }\n\n :host([name='Extension'])::after {\n border: 1px solid var(--wui-color-accent-glass-010);\n }\n\n :host([data-wallet-icon='allWallets']) {\n background-color: var(--wui-all-wallets-bg-100);\n }\n\n :host([data-wallet-icon='allWallets'])::after {\n border: 1px solid var(--wui-color-accent-glass-010);\n }\n\n wui-icon[data-parent-size='inherit'] {\n width: 75%;\n height: 75%;\n align-items: center;\n }\n\n wui-icon[data-parent-size='sm'] {\n width: 18px;\n height: 18px;\n }\n\n wui-icon[data-parent-size='md'] {\n width: 24px;\n height: 24px;\n }\n\n wui-icon[data-parent-size='lg'] {\n width: 42px;\n height: 42px;\n }\n\n wui-icon[data-parent-size='full'] {\n width: 100%;\n height: 100%;\n }\n\n :host > wui-icon-box {\n position: absolute;\n overflow: hidden;\n right: -1px;\n bottom: -2px;\n z-index: 1;\n border: 2px solid var(--wui-color-bg-150, #1e1f1f);\n padding: 1px;\n }\n"])));var k,C,A,R,E=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let I=class extends f.WF{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let t="xxs";return t="lg"===this.size?"m":"md"===this.size?"xs":"xxs",this.style.cssText="\n --local-border-radius: var(--wui-border-radius-".concat(t,");\n --local-size: var(--wui-wallet-image-size-").concat(this.size,");\n "),this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),(0,f.qy)(k||(k=(0,o.A)(['\n <wui-flex justifyContent="center" alignItems="center"> '," </wui-flex>\n "])),this.templateVisual())}templateVisual(){return this.imageSrc?(0,f.qy)(C||(C=(0,o.A)(["<wui-image src="," alt=","></wui-image>"])),this.imageSrc,this.name):this.walletIcon?(0,f.qy)(A||(A=(0,o.A)(['<wui-icon\n data-parent-size="md"\n size="md"\n color="inherit"\n name=',"\n ></wui-icon>"])),this.walletIcon):(0,f.qy)(R||(R=(0,o.A)(["<wui-icon\n data-parent-size=",'\n size="inherit"\n color="inherit"\n name="walletPlaceholder"\n ></wui-icon>'])),this.size)}};var M;I.styles=[m.fD,m.W5,x],E([(0,v.MZ)()],I.prototype,"size",void 0),E([(0,v.MZ)()],I.prototype,"name",void 0),E([(0,v.MZ)()],I.prototype,"imageSrc",void 0),E([(0,v.MZ)()],I.prototype,"walletIcon",void 0),E([(0,v.MZ)({type:Boolean})],I.prototype,"installed",void 0),E([(0,v.MZ)()],I.prototype,"badgeSize",void 0),I=E([(0,y.E)("wui-wallet-image")],I);const T=(0,f.AH)(M||(M=(0,o.A)(["\n :host {\n position: relative;\n border-radius: var(--wui-border-radius-xxs);\n width: 40px;\n height: 40px;\n overflow: hidden;\n background: var(--wui-color-gray-glass-002);\n display: flex;\n justify-content: center;
2\n align-items: center;\n flex-wrap: wrap;\n gap: var(--wui-spacing-4xs);\n padding: 3.75px !important;\n }\n\n :host::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n border-radius: inherit;\n border: 1px solid var(--wui-color-gray-glass-010);\n pointer-events: none;\n }\n\n :host > wui-wallet-image {\n width: 14px;\n height: 14px;\n border-radius: var(--wui-border-radius-5xs);\n }\n\n :host > wui-flex {\n padding: 2px;\n position: fixed;\n overflow: hidden;\n left: 34px;\n bottom: 8px;\n background: var(--dark-background-150, #1e1f1f);\n border-radius: 50%;\n z-index: 2;\n display: flex;\n }\n"])));var W,P,S,O=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let j=class extends f.WF{constructor(){super(...arguments),this.walletImages=[]}render(){const t=this.walletImages.length<4;return(0,f.qy)(W||(W=(0,o.A)(["","\n ",'\n <wui-flex>\n <wui-icon-box\n size="xxs"\n iconSize="xxs"\n iconcolor="success-100"\n backgroundcolor="success-100"\n icon="checkmark"\n background="opaque"\n ></wui-icon-box>\n </wui-flex>'])),this.walletImages.slice(0,4).map(t=>{let{src:e,walletName:n}=t;return(0,f.qy)(P||(P=(0,o.A)(['\n <wui-wallet-image\n size="inherit"\n imageSrc=',"\n name=","\n ></wui-wallet-image>\n "])),e,(0,b.J)(n))}),t?[...Array(4-this.walletImages.length)].map(()=>(0,f.qy)(S||(S=(0,o.A)([' <wui-wallet-image size="inherit" name=""></wui-wallet-image>'])))):null)}};j.styles=[m.W5,T],O([(0,v.MZ)({type:Array})],j.prototype,"walletImages",void 0),j=O([(0,y.E)("wui-all-wallets-image")],j);var q;n(81395);const L=(0,f.AH)(q||(q=(0,o.A)(["\n button {\n column-gap: var(--wui-spacing-s);\n padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);\n width: 100%;\n background-color: var(--wui-color-gray-glass-002);\n border-radius: var(--wui-border-radius-xs);\n color: var(--wui-color-fg-100);\n }\n\n button > wui-text:nth-child(2) {\n display: flex;\n flex: 1;\n }\n\n button:disabled {\n background-color: var(--wui-color-gray-glass-015);\n color: var(--wui-color-gray-glass-015);\n }\n\n button:disabled > wui-tag {\n background-color: var(--wui-color-gray-glass-010);\n color: var(--wui-color-fg-300);\n }\n\n wui-icon {\n color: var(--wui-color-fg-200) !important;\n }\n"])));var z,B,N,D,Z,U,H,F,J=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let _=class extends f.WF{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.tabIdx=void 0,this.installed=!1,this.disabled=!1,this.showAllWallets=!1,this.loading=!1,this.loadingSpinnerColor="accent-100"}render(){return(0,f.qy)(z||(z=(0,o.A)(["\n <button ?disabled="," tabindex=",">\n "," ",'\n <wui-text variant="paragraph-500" color="inherit">',"</wui-text>\n ","\n </button>\n "])),this.disabled,(0,b.J)(this.tabIdx),this.templateAllWallets(),this.templateWalletImage(),this.name,this.templateStatus())}templateAllWallets(){return this.showAllWallets&&this.imageSrc?(0,f.qy)(B||(B=(0,o.A)([" <wui-all-wallets-image .imageeSrc=","> </wui-all-wallets-image> "])),this.imageSrc):this.showAllWallets&&this.walletIcon?(0,f.qy)(N||(N=(0,o.A)([" <wui-wallet-image .walletIcon=",' size="sm"> </wui-wallet-image> '])),this.walletIcon):null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?(0,f.qy)(D||(D=(0,o.A)(['<wui-wallet-image\n size="sm"\n imageSrc=',"\n name=","\n .installed=","\n ></wui-wallet-image>"])),this.imageSrc,this.name,this.installed):this.showAllWallets||this.imageSrc?null:(0,f.qy)(Z||(Z=(0,o.A)(['<wui-wallet-image size="sm" name=',"></wui-wallet-image>"])),this.name)}templateStatus(){return this.loading?(0,f.qy)(U||(U=(0,o.A)(['<wui-loading-spinner\n size="lg"\n color=',"\n ></wui-loading-spinner>"])),this.loadingSpinnerColor):this.tagLabel&&this.tagVariant?(0,f.qy)(H||(H=(0,o.A)(["<wui-tag variant=",">","</wui-tag>
2"])),this.tagVariant,this.tagLabel):this.icon?(0,f.qy)(F||(F=(0,o.A)(['<wui-icon color="inherit" size="sm" name=',"></wui-icon>"])),this.icon):null}};var K;_.styles=[m.W5,m.fD,L],J([(0,v.MZ)({type:Array})],_.prototype,"walletImages",void 0),J([(0,v.MZ)()],_.prototype,"imageSrc",void 0),J([(0,v.MZ)()],_.prototype,"name",void 0),J([(0,v.MZ)()],_.prototype,"tagLabel",void 0),J([(0,v.MZ)()],_.prototype,"tagVariant",void 0),J([(0,v.MZ)()],_.prototype,"icon",void 0),J([(0,v.MZ)()],_.prototype,"walletIcon",void 0),J([(0,v.MZ)()],_.prototype,"tabIdx",void 0),J([(0,v.MZ)({type:Boolean})],_.prototype,"installed",void 0),J([(0,v.MZ)({type:Boolean})],_.prototype,"disabled",void 0),J([(0,v.MZ)({type:Boolean})],_.prototype,"showAllWallets",void 0),J([(0,v.MZ)({type:Boolean})],_.prototype,"loading",void 0),J([(0,v.MZ)({type:String})],_.prototype,"loadingSpinnerColor",void 0),_=J([(0,y.E)("wui-list-wallet")],_);var V=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Y=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=p.a.state.connectors,this.count=l.N.state.count,this.filteredCount=l.N.state.filteredWallets.length,this.isFetchingRecommendedWallets=l.N.state.isFetchingRecommendedWallets,this.unsubscribe.push(p.a.subscribeKey("connectors",t=>this.connectors=t),l.N.subscribeKey("count",t=>this.count=t),l.N.subscribeKey("filteredWallets",t=>this.filteredCount=t.length),l.N.subscribeKey("isFetchingRecommendedWallets",t=>this.isFetchingRecommendedWallets=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){const t=this.connectors.find(t=>"walletConnect"===t.id),{allWallets:e}=c.H.state;if(!t||"HIDE"===e)return null;if("ONLY_MOBILE"===e&&!s.w.isMobile())return null;const n=l.N.state.featured.length,i=this.count+n,a=i<10?i:10*Math.floor(i/10),d=this.filteredCount>0?this.filteredCount:a;let u="".concat(d);return this.filteredCount>0?u="".concat(this.filteredCount):d<i&&(u="".concat(d,"+")),(0,r.qy)(K||(K=(0,o.A)(['\n <wui-list-wallet\n name="All Wallets"\n walletIcon="allWallets"\n showAllWallets\n @click=',"\n tagLabel=",'\n tagVariant="shade"\n data-testid="all-wallets"\n tabIdx=',"\n .loading=","\n loadingSpinnerColor=","\n ></wui-list-wallet>\n "])),this.onAllWallets.bind(this),u,(0,h.J)(this.tabIdx),this.isFetchingRecommendedWallets,this.isFetchingRecommendedWallets?"fg-300":"accent-100")}onAllWallets(){w.E.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),g.I.push("AllWallets")}};V([(0,a.MZ)()],Y.prototype,"tabIdx",void 0),V([(0,a.wk)()],Y.prototype,"connectors",void 0),V([(0,a.wk)()],Y.prototype,"count",void 0),V([(0,a.wk)()],Y.prototype,"filteredCount",void 0),V([(0,a.wk)()],Y.prototype,"isFetchingRecommendedWallets",void 0),Y=V([(0,u.EM)("w3m-all-wallets-widget")],Y);var G,$,X=n(82182),Q=n(25467),tt=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let et=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=p.a.state.connectors,this.unsubscribe.push(p.a.subscribeKey("connectors",t=>this.connectors=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){const t=this.connectors.filter(t=>"ANNOUNCED"===t.type);return null!==t&&void 0!==t&&t.length?(0,r.qy)(G||(G=(0,o.A)(['\n <wui-flex flexDirection="column" gap="xs">\n ',"\n </wui-flex>\n "])),t.filter(Q.g.showConnector).map(t=>{var e;return(0,r.qy)($||($=(0,o.A)(["\n <wui-list-wallet\n imageSrc=","\n name=","\n @click=",'\n tagVariant="success"\n tagLabel="installed"\n data-testid=',"\n .installed=","\n tabIdx=","\n >\n </wui-list-wallet>\n "])),(0,h.J)(X.$.getConnectorImage(t)),null!==(e=t.name)&&void 0!==e?e:"Unknown",()=>this.onConnector(t),"wallet-selector-".concat(t.id),!0,(0,h.J)(this.tabIdx))})):(this.style.cssText="display: none",null)}onConnector(t){"walletConnect"===t.id?s.w.isMobile()?g.I.push("AllWallets"):g.I.push("ConnectingWalletConnect"):g.I.push("ConnectingExter
2nal",{connector:t})}};tt([(0,a.MZ)()],et.prototype,"tabIdx",void 0),tt([(0,a.wk)()],et.prototype,"connectors",void 0),et=tt([(0,u.EM)("w3m-connect-announced-widget")],et);var nt,it,ot=n(65513),rt=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let at=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=p.a.state.connectors,this.loading=!1,this.unsubscribe.push(p.a.subscribeKey("connectors",t=>this.connectors=t)),s.w.isTelegram()&&s.w.isIos()&&(this.loading=!ot.x.state.wcUri,this.unsubscribe.push(ot.x.subscribeKey("wcUri",t=>this.loading=!t)))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){const{customWallets:t}=c.H.state;if(null===t||void 0===t||!t.length)return this.style.cssText="display: none",null;const e=this.filterOutDuplicateWallets(t);return(0,r.qy)(nt||(nt=(0,o.A)(['<wui-flex flexDirection="column" gap="xs">\n ',"\n </wui-flex>"])),e.map(t=>{var e;return(0,r.qy)(it||(it=(0,o.A)(["\n <wui-list-wallet\n imageSrc=","\n name=","\n @click=","\n data-testid=","\n tabIdx=","\n ?loading=","\n >\n </wui-list-wallet>\n "])),(0,h.J)(X.$.getWalletImage(t)),null!==(e=t.name)&&void 0!==e?e:"Unknown",()=>this.onConnectWallet(t),"wallet-selector-".concat(t.id),(0,h.J)(this.tabIdx),this.loading)}))}filterOutDuplicateWallets(t){const e=d.i.getRecentWallets(),n=this.connectors.map(t=>{var e;return null===(e=t.info)||void 0===e?void 0:e.rdns}).filter(Boolean),i=e.map(t=>t.rdns).filter(Boolean),o=n.concat(i);if(o.includes("io.metamask.mobile")&&s.w.isMobile()){const t=o.indexOf("io.metamask.mobile");o[t]="io.metamask"}return t.filter(t=>!o.includes(String(null===t||void 0===t?void 0:t.rdns)))}onConnectWallet(t){this.loading||g.I.push("ConnectingWalletConnect",{wallet:t})}};rt([(0,a.MZ)()],at.prototype,"tabIdx",void 0),rt([(0,a.wk)()],at.prototype,"connectors",void 0),rt([(0,a.wk)()],at.prototype,"loading",void 0),at=rt([(0,u.EM)("w3m-connect-custom-widget")],at);var st,lt,ct=n(75517),dt=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let ut=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=p.a.state.connectors,this.unsubscribe.push(p.a.subscribeKey("connectors",t=>this.connectors=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){const t=this.connectors.filter(t=>"EXTERNAL"===t.type).filter(Q.g.showConnector).filter(t=>t.id!==ct.o.CONNECTOR_ID.COINBASE_SDK);return null!==t&&void 0!==t&&t.length?(0,r.qy)(st||(st=(0,o.A)(['\n <wui-flex flexDirection="column" gap="xs">\n ',"\n </wui-flex>\n "])),t.map(t=>{var e;return(0,r.qy)(lt||(lt=(0,o.A)(["\n <wui-list-wallet\n imageSrc=","\n .installed=","\n name=","\n data-testid=","\n @click=","\n tabIdx=","\n >\n </wui-list-wallet>\n "])),(0,h.J)(X.$.getConnectorImage(t)),!0,null!==(e=t.name)&&void 0!==e?e:"Unknown","wallet-selector-external-".concat(t.id),()=>this.onConnector(t),(0,h.J)(this.tabIdx))})):(this.style.cssText="display: none",null)}onConnector(t){g.I.push("ConnectingExternal",{connector:t})}};var ht,pt;dt([(0,a.MZ)()],ut.prototype,"tabIdx",void 0),dt([(0,a.wk)()],ut.prototype,"connectors",void 0),ut=dt([(0,u.EM)("w3m-connect-external-widget")],ut);var wt=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let gt=class extends r.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.wallets=[]}render(){return this.wallets.length?(0,r.qy)(ht||(ht=(0,o.A)(['\n <wui-flex flexDirection="column" gap="xs">\n ',"\n </wui-flex>\n "])),this.wallets.map(t=>{var e;return(0,r.qy)(pt||(pt=(0,o.A)(["\n <wui-list-wallet\n data-testid=","\n imageSrc=","\n name=","\n @click=","\n tabIdx=","\n >\n </wui-list-wallet>\n "])),"wallet-selector-featured-".concat(t.id),(0,h.J)(X.$.getWalletImage(t)),null!==(e=t.name)&&void 0!==e?e:"Unknown",()=>this.onConnectWallet(t),(0,h.J)(this.tabIdx))})):(this.style.cssText="display: none",null)}onConnectWallet(t){p.a.selectWalletConnector(t)}};var ft,vt;
2wt([(0,a.MZ)()],gt.prototype,"tabIdx",void 0),wt([(0,a.MZ)()],gt.prototype,"wallets",void 0),gt=wt([(0,u.EM)("w3m-connect-featured-widget")],gt);var bt=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let mt=class extends r.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.connectors=[]}render(){const t=this.connectors.filter(Q.g.showConnector);return 0===t.length?(this.style.cssText="display: none",null):(0,r.qy)(ft||(ft=(0,o.A)(['\n <wui-flex flexDirection="column" gap="xs">\n ',"\n </wui-flex>\n "])),t.map(t=>{var e;return(0,r.qy)(vt||(vt=(0,o.A)(["\n <wui-list-wallet\n imageSrc=","\n .installed=","\n name=",'\n tagVariant="success"\n tagLabel="installed"\n data-testid=',"\n @click=","\n tabIdx=","\n >\n </wui-list-wallet>\n "])),(0,h.J)(X.$.getConnectorImage(t)),!0,null!==(e=t.name)&&void 0!==e?e:"Unknown","wallet-selector-".concat(t.id),()=>this.onConnector(t),(0,h.J)(this.tabIdx))}))}onConnector(t){p.a.setActiveConnector(t),g.I.push("ConnectingExternal",{connector:t})}};var yt,xt;bt([(0,a.MZ)()],mt.prototype,"tabIdx",void 0),bt([(0,a.MZ)()],mt.prototype,"connectors",void 0),mt=bt([(0,u.EM)("w3m-connect-injected-widget")],mt);var kt=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Ct=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=p.a.state.connectors,this.unsubscribe.push(p.a.subscribeKey("connectors",t=>this.connectors=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){const t=this.connectors.filter(t=>"MULTI_CHAIN"===t.type&&"WalletConnect"!==t.name);return null!==t&&void 0!==t&&t.length?(0,r.qy)(yt||(yt=(0,o.A)(['\n <wui-flex flexDirection="column" gap="xs">\n ',"\n </wui-flex>\n "])),t.map(t=>{var e;return(0,r.qy)(xt||(xt=(0,o.A)(["\n <wui-list-wallet\n imageSrc=","\n .installed=","\n name=",'\n tagVariant="shade"\n tagLabel="multichain"\n data-testid=',"\n @click=","\n tabIdx=","\n >\n </wui-list-wallet>\n "])),(0,h.J)(X.$.getConnectorImage(t)),!0,null!==(e=t.name)&&void 0!==e?e:"Unknown","wallet-selector-".concat(t.id),()=>this.onConnector(t),(0,h.J)(this.tabIdx))})):(this.style.cssText="display: none",null)}onConnector(t){p.a.setActiveConnector(t),g.I.push("ConnectingMultiChain")}};kt([(0,a.MZ)()],Ct.prototype,"tabIdx",void 0),kt([(0,a.wk)()],Ct.prototype,"connectors",void 0),Ct=kt([(0,u.EM)("w3m-connect-multi-chain-widget")],Ct);var At,Rt,Et=n(32907),It=n(65415),Mt=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Tt=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=p.a.state.connectors,this.loading=!1,this.unsubscribe.push(p.a.subscribeKey("connectors",t=>this.connectors=t)),s.w.isTelegram()&&s.w.isIos()&&(this.loading=!ot.x.state.wcUri,this.unsubscribe.push(ot.x.subscribeKey("wcUri",t=>this.loading=!t)))}render(){const t=d.i.getRecentWallets().filter(t=>!It.A.isExcluded(t)).filter(t=>!this.hasWalletConnector(t)).filter(t=>this.isWalletCompatibleWithCurrentChain(t));return t.length?(0,r.qy)(At||(At=(0,o.A)(['\n <wui-flex flexDirection="column" gap="xs">\n ',"\n </wui-flex>\n "])),t.map(t=>{var e;return(0,r.qy)(Rt||(Rt=(0,o.A)(["\n <wui-list-wallet\n imageSrc=","\n name=","\n @click=",'\n tagLabel="recent"\n tagVariant="shade"\n tabIdx=',"\n ?loading=","\n >\n </wui-list-wallet>\n "])),(0,h.J)(X.$.getWalletImage(t)),null!==(e=t.name)&&void 0!==e?e:"Unknown",()=>this.onConnectWallet(t),(0,h.J)(this.tabIdx),this.loading)})):(this.style.cssText="display: none",null)}onConnectWallet(t){this.loading||p.a.selectWalletConnector(t)}hasWalletConnector(t){return this.connectors.some(e=>e.id===t.id||e.name===t.name)}isWalletCompatibleWithCurrentChain(t){const e=Et.W.state.activeChain;return!e||!t.chains||t.chains.some(t=>{const n=t.split(":")[0];return e===n})}};var Wt,Pt;Mt([(0,a.MZ)()],Tt.prototype,"tabIdx",void 0),Mt([(0,a.wk)()],Tt.prototype,"connectors",void 0),Mt([(0,a.wk)()],Tt.prototype,"loading",void 0),Tt=Mt([(0,u.EM)("w3m-connect-recent-widget")],Tt);var St=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Ot=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.wallets=[],this.loading=!1,s.w.isTelegram()&&s.w.isIos()&&(this.loading=!ot.x.state.wcUri,this.unsubscribe.push(ot.x.subscribeKey("wcUri",t=>this.loading=!t)))}render(){const{connectors:t}=p.a.state,{customWallets:e,featuredWalletIds:n}=c.H.state,i=d.i.getRecentWallets(),a=t.find(t=>"walletConnect"===t.id),s=t.filter(t=>"INJECTED"===t.type||"ANNOUNCED"===t.type||"MULTI_CHAIN"===t.type).filter(t=>"Browser Wallet"!==t.name);if(!a)return null;if(n||e||!this.wallets.length)return this.style.cssText="display: none",null;const l=s.length+i.length,u=Math.max(0,2-l),w=It.A.filterOutDuplicateWallets(this.wallets).slice(0,u);return w.length?(0,r.qy)(Wt||(Wt=(0,o.A)(['\n <wui-flex flexDirection="column" gap="xs">\n ',"\n </wui-flex>\n "])),w.map(t=>{var e;return(0,r.qy)(Pt||(Pt=(0,o.A)(["\n <wui-list-wallet\n imageSrc=","\n name=","\n @click=","\n tabIdx=","\n ?loading=","\n >\n </wui-list-wallet>\n "])),(0,h.J)(X.$.getWalletImage(t)),null!==(e=null===t||void 0===t?void 0:t.name)&&void 0!==e?e:"Unknown",()=>this.onConnectWallet(t),(0,h.J)(this.tabIdx),this.loading)})):(this.style.cssText="display: none",null)}onConnectWallet(t){if(this.loading)return;const e=p.a.getConnector(t.id,t.rdns);
2e?g.I.push("ConnectingExternal",{connector:e}):g.I.push("ConnectingWalletConnect",{wallet:t})}};St([(0,a.MZ)()],Ot.prototype,"tabIdx",void 0),St([(0,a.MZ)()],Ot.prototype,"wallets",void 0),St([(0,a.wk)()],Ot.prototype,"loading",void 0),Ot=St([(0,u.EM)("w3m-connect-recommended-widget")],Ot);var jt,qt=n(74150),Lt=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let zt=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=p.a.state.connectors,this.connectorImages=qt.j.state.connectorImages,this.unsubscribe.push(p.a.subscribeKey("connectors",t=>this.connectors=t),qt.j.subscribeKey("connectorImages",t=>this.connectorImages=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){var t,e;if(s.w.isMobile())return this.style.cssText="display: none",null;const n=this.connectors.find(t=>"walletConnect"===t.id);if(!n)return this.style.cssText="display: none",null;const i=n.imageUrl||this.connectorImages[null!==(t=null===n||void 0===n?void 0:n.imageId)&&void 0!==t?t:""];return(0,r.qy)(jt||(jt=(0,o.A)(["\n <wui-list-wallet\n imageSrc=","\n name=","\n @click=",'\n tagLabel="qr code"\n tagVariant="main"\n tabIdx=','\n data-testid="wallet-selector-walletconnect"\n >\n </wui-list-wallet>\n '])),(0,h.J)(i),null!==(e=n.name)&&void 0!==e?e:"Unknown",()=>this.onConnector(n),(0,h.J)(this.tabIdx))}onConnector(t){p.a.setActiveConnector(t),g.I.push("ConnectingWalletConnect")}};var Bt;Lt([(0,a.MZ)()],zt.prototype,"tabIdx",void 0),Lt([(0,a.wk)()],zt.prototype,"connectors",void 0),Lt([(0,a.wk)()],zt.prototype,"connectorImages",void 0),zt=Lt([(0,u.EM)("w3m-connect-walletconnect-widget")],zt);const Nt=(0,r.AH)(Bt||(Bt=(0,o.A)(["\n :host {\n margin-top: var(--wui-spacing-3xs);\n }\n wui-separator {\n margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs)\n calc(var(--wui-spacing-m) * -1);\n width: calc(100% + var(--wui-spacing-s) * 2);\n }\n"])));var Dt,Zt,Ut,Ht,Ft,Jt,_t,Kt,Vt,Yt,Gt,$t=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Xt=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=p.a.state.connectors,this.recommended=l.N.state.recommended,this.featured=l.N.state.featured,this.unsubscribe.push(p.a.subscribeKey("connectors",t=>this.connectors=t),l.N.subscribeKey("recommended",t=>this.recommended=t),l.N.subscribeKey("featured",t=>this.featured=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){return(0,r.qy)(Dt||(Dt=(0,o.A)(['\n <wui-flex flexDirection="column" gap="xs"> '," </wui-flex>\n "])),this.connectorListTemplate())}connectorListTemplate(){const{custom:t,recent:e,announced:n,injected:i,multiChain:a,recommended:s,featured:l,external:c}=Q.g.getConnectorsByType(this.connectors,this.recommended,this.featured);return Q.g.getConnectorTypeOrder({custom:t,recent:e,announced:n,injected:i,multiChain:a,recommended:s,featured:l,external:c}).map(t=>{switch(t){case"injected":return(0,r.qy)(Zt||(Zt=(0,o.A)(["\n ","\n ","\n ","\n "])),a.length?(0,r.qy)(Ut||(Ut=(0,o.A)(["<w3m-connect-multi-chain-widget\n tabIdx=","\n ></w3m-connect-multi-chain-widget>"])),(0,h.J)(this.tabIdx)):null,n.length?(0,r.qy)(Ht||(Ht=(0,o.A)(["<w3m-connect-announced-widget\n tabIdx=","\n ></w3m-connect-announced-widget>"])),(0,h.J)(this.tabIdx)):null,i.length?(0,r.qy)(Ft||(Ft=(0,o.A)(["<w3m-connect-injected-widget\n .connectors=","\n tabIdx=","\n ></w3m-connect-injected-widget>"])),i,(0,h.J)(this.tabIdx)):null);case"walletConnect":return(0,r.qy)(Jt||(Jt=(0,o.A)(["<w3m-connect-walletconnect-widget\n tabIdx=","\n ></w3m-connect-walletconnect-widget>"])),(0,h.J)(this.tabIdx));
2case"recent":return(0,r.qy)(_t||(_t=(0,o.A)(["<w3m-connect-recent-widget\n tabIdx=","\n ></w3m-connect-recent-widget>"])),(0,h.J)(this.tabIdx));case"featured":return(0,r.qy)(Kt||(Kt=(0,o.A)(["<w3m-connect-featured-widget\n .wallets=","\n tabIdx=","\n ></w3m-connect-featured-widget>"])),l,(0,h.J)(this.tabIdx));case"custom":return(0,r.qy)(Vt||(Vt=(0,o.A)(["<w3m-connect-custom-widget\n tabIdx=","\n ></w3m-connect-custom-widget>"])),(0,h.J)(this.tabIdx));case"external":return(0,r.qy)(Yt||(Yt=(0,o.A)(["<w3m-connect-external-widget\n tabIdx=","\n ></w3m-connect-external-widget>"])),(0,h.J)(this.tabIdx));case"recommended":return(0,r.qy)(Gt||(Gt=(0,o.A)(["<w3m-connect-recommended-widget\n .wallets=","\n tabIdx=","\n ></w3m-connect-recommended-widget>"])),s,(0,h.J)(this.tabIdx));default:return console.warn("Unknown connector type: ".concat(t)),null}})}};Xt.styles=Nt,$t([(0,a.MZ)()],Xt.prototype,"tabIdx",void 0),$t([(0,a.wk)()],Xt.prototype,"connectors",void 0),$t([(0,a.wk)()],Xt.prototype,"recommended",void 0),$t([(0,a.wk)()],Xt.prototype,"featured",void 0),Xt=$t([(0,u.EM)("w3m-connector-list")],Xt);var Qt,te=n(49189),ee=n(63996);const ne=(0,f.AH)(Qt||(Qt=(0,o.A)(["\n :host {\n display: inline-flex;\n background-color: var(--wui-color-gray-glass-002);\n border-radius: var(--wui-border-radius-3xl);\n padding: var(--wui-spacing-3xs);\n position: relative;\n height: 36px;\n min-height: 36px;\n overflow: hidden;\n }\n\n :host::before {\n content: '';\n position: absolute;\n pointer-events: none;\n top: 4px;\n left: 4px;\n display: block;\n width: var(--local-tab-width);\n height: 28px;\n border-radius: var(--wui-border-radius-3xl);\n background-color: var(--wui-color-gray-glass-002);\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);\n transform: translateX(calc(var(--local-tab) * var(--local-tab-width)));\n transition: transform var(--wui-ease-out-power-1) var(--wui-duration-md);\n will-change: background-color, opacity;\n }\n\n :host([data-type='flex'])::before {\n left: 3px;\n transform: translateX(calc((var(--local-tab) * 34px) + (var(--local-tab) * 4px)));\n }\n\n :host([data-type='flex']) {\n display: flex;\n padding: 0px 0px 0px 12px;\n gap: 4px;\n }\n\n :host([data-type='flex']) > button > wui-text {\n position: absolute;\n left: 18px;\n opacity: 0;\n }\n\n button[data-active='true'] > wui-icon,\n button[data-active='true'] > wui-text {\n color: var(--wui-color-fg-100);\n }\n\n button[data-active='false'] > wui-icon,\n button[data-active='false'] > wui-text {\n color: var(--wui-color-fg-200);\n }\n\n button[data-active='true']:disabled,\n button[data-active='false']:disabled {\n background-color: transparent;\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n button[data-active='true']:disabled > wui-text {\n color: var(--wui-color-fg-200);\n }\n\n button[data-active='false']:disabled > wui-text {\n color: var(--wui-color-fg-300);\n }\n\n button > wui-icon,\n button > wui-text {\n pointer-events: none;\n transition: color var(--wui-e ase-out-power-1) var(--wui-duration-md);\n will-change: color;\n }\n\n button {\n width: var(--local-tab-width);\n transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);\n will-change: background-color;\n }\n\n :host([data-type='flex']) > button {\n width: 34px;\n position: relative;\n display: flex;\n justify-content: flex-start;\n }\n\n button:hover:enabled,\n button:active:enabled {\n background-color: transparent !important;\n }\n\n button:hover:enabled > wui-icon,\n button:active:enabled > wui-icon {\n transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);\n color: var(--wui-color-fg-125);\n }\n\n button:hover:enabled > wui-text,\n button:active:enabled > wui-text {\n transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);\n color: var(--wui-color-fg-125);\n }\n\n button {\n border-radius: var(--wui-border-radius-3xl);\n }\n"])));var ie,oe,re=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let ae=class extends f.WF{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.localTabWidth="100px",this.activeTab=0,this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText="\n --local-tab: ".concat(this.activeTab,";\n --local-tab-width: ").concat(this.localTabWidth,";\n "),this.dataset.type=this.isDense?"flex":"block",this.tabs.map((t,e)=>{var n;const i=e===this.activeTab;return(0,f.qy)(ie||(ie=(0,o.A)(["\n <button\n ?disabled=","\n @click=","\n data-active=",'\n data-testid="tab-','"\n >\n ','\n <wui-text variant="small-600" color="inherit"> '," </wui-text>\n </button>\n "])),this.disabled,()=>this.onTabClick(e),i,null===(n=t.label)||void 0===n?void 0:n.toLowerCase(),this.iconTemplate(t),t.label)})}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout(()=>{this.animateTabs(0,!0)},0))}iconTemplate(t){return t.icon?(0,f.qy)(oe||(oe=(0,o.A)(['<wui-icon size="xs" color="inherit" name=',"></wui-icon>"])),t.icon):null}onTabClick(t){this.buttons&&this.animateTabs(t,!1),this.activeTab=t,this.onTabChange(t)}
2animateTabs(t,e){const n=this.buttons[this.activeTab],i=this.buttons[t],o=null===n||void 0===n?void 0:n.querySelector("wui-text"),r=null===i||void 0===i?void 0:i.querySelector("wui-text"),a=null===i||void 0===i?void 0:i.getBoundingClientRect(),s=null===r||void 0===r?void 0:r.getBoundingClientRect();n&&o&&!e&&t!==this.activeTab&&(o.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),n.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),i&&a&&s&&r&&(t!==this.activeTab||e)&&(this.localTabWidth="".concat(Math.round(a.width+s.width)+6,"px"),i.animate([{width:"".concat(a.width+s.width,"px")}],{duration:e?0:500,fill:"forwards",easing:"ease"}),r.animate([{opacity:1}],{duration:e?0:125,delay:e?0:200,fill:"forwards",easing:"ease"}))}};var se;ae.styles=[m.W5,m.fD,ne],re([(0,v.MZ)({type:Array})],ae.prototype,"tabs",void 0),re([(0,v.MZ)()],ae.prototype,"onTabChange",void 0),re([(0,v.MZ)({type:Array})],ae.prototype,"buttons",void 0),re([(0,v.MZ)({type:Boolean})],ae.prototype,"disabled",void 0),re([(0,v.MZ)()],ae.prototype,"localTabWidth",void 0),re([(0,v.wk)()],ae.prototype,"activeTab",void 0),re([(0,v.wk)()],ae.prototype,"isDense",void 0),ae=re([(0,y.E)("wui-tabs")],ae);var le=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let ce=class extends r.WF{constructor(){super(...arguments),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0}disconnectCallback(){this.unsubscribe.forEach(t=>t())}render(){const t=this.generateTabs();return(0,r.qy)(se||(se=(0,o.A)(['\n <wui-flex justifyContent="center" .padding=',">\n <wui-tabs .tabs="," .onTabChange=","></wui-tabs>\n </wui-flex>\n "])),["0","0","l","0"],t,this.onTabChange.bind(this))}generateTabs(){const t=this.platforms.map(t=>"browser"===t?{label:"Browser",icon:"extension",platform:"browser"}:"mobile"===t?{label:"Mobile",icon:"mobile",platform:"mobile"}:"qrcode"===t?{label:"Mobile",icon:"mobile",platform:"qrcode"}:"web"===t?{label:"Webapp",icon:"browser",platform:"web"}:"desktop"===t?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"});return this.platformTabs=t.map(t=>{let{platform:e}=t;return e}),t}onTabChange(t){const e=this.platformTabs[t];var n;e&&(null===(n=this.onSelectPlatfrom)||void 0===n||n.call(this,e))}};le([(0,a.MZ)({type:Array})],ce.prototype,"platforms",void 0),le([(0,a.MZ)()],ce.prototype,"onSelectPlatfrom",void 0),ce=le([(0,u.EM)("w3m-connecting-header")],ce);var de,ue=n(34159);n(76971);const he=(0,f.AH)(de||(de=(0,o.A)(["\n :host {\n width: var(--local-width);\n position: relative;\n }\n\n button {\n border: none;\n border-radius: var(--local-border-radius);\n width: var(--local-width);\n white-space: nowrap;\n }\n\n /* -- Sizes --------------------------------------------------- */\n button[data-size='md'] {\n padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l);\n height: 36px;\n }\n\n button[data-size='md'][data-icon-left='true'][data-icon-right='false'] {\n padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s);\n }\n\n button[data-size='md'][data-icon-right='true'][data-icon-left='false'] {\n padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l);\n }\n\n button[data-size='lg'] {\n padding: var(--wui-spacing-m) var(--wui-spacing-2l);\n height: 48px;\n }\n\n /* -- Variants --------------------------------------------------------- */\n button[data-variant='main'] {\n background-color: var(--wui-color-accent-100);\n color: var(--wui-color-inverse-100);\n border: none;\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);\n }\n\n button[data-variant='inverse'] {\n background-color: var(--wui-color-inverse-100);\n color: var(--wui-color-inverse-000);\n border: none;\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);\n }\n\n button[data-variant='accent'] {\n background-color: var(--wui-color-accent-glass-010);\n color: var(--wui-color-accent-100);\n border: none;\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);\n }\n\n button[data-variant='accent-error'] {\n background: var(--wui-color-error-glass-015);\n color: var(--wui-color-error-100);\n border: none;\n box-shadow: inset 0 0 0 1px var(--wui-color-error-glass-010);\n }\n\n button[data-variant='accent-success'] {\n background: var(--wui-color-success-glass-015);\n color: var(--wui-color-success-100);\n border: none;\n box-shadow: inset 0 0 0 1px var(--wui-color-success-glass-010);\n }\n\n button[data-variant='neutral'] {\n background: transparent;\n color: var(--wui-color-fg-100);\n border: none;\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);\n }\n\n /* -- Focus states --------------------------------------------------- */\n button[data-variant='main']:focus-visible:enabled {\n background-color: var(--wui-color-accent-090);\n box-shadow:\n inset 0 0 0 1px var(--wui-color-accent-100),\n 0 0 0 4px var(--wui-color-accent-glass-020);\n }\n button[data-variant='inverse']:focus-visible:enabled {\n background-color: var(--wui-color-inverse-100);\n box-shadow:\n inset 0 0 0 1px var(--wui-color-gray-glass-010),\n 0 0 0 4px var(--wui-color-accent-glass-020);\n }\n button[data-variant='accent']:focus-visible:enabled {\n background-color: var(--wui-color-accent-glass-010);\n box-shadow:\n inset 0 0 0 1px var(--wui-color-accent-100),\n 0 0 0 4px var(--wui-color-accent-glass-020);\n }\n button[data-variant='accent-error']:focus-visible:enabled {\n background: var(--wui-color-error-glass-015);\n box-shadow:\n inset 0 0 0 1px var(--wui-color-error-100),\n 0 0 0 4px var(--wui-color-error-glass-020);\n }\n button[data-variant='accent-success']:focus-visible:enabled {\n background: var(--wui-color-success-glass-015);\n box-shadow:\n inset 0 0 0 1px var(--wui-color-success-100),\n 0 0 0 4px var(--wui-color-success-glass-020);\n }\n button[data-variant='neutral']:focus-visible:enabled {\n background: var(--wui-color-gray-glass-005);\n box-shadow:\n inset 0 0 0 1px var(--wui-color-gray-glass-010),\n 0 0 0 4px var(--wui-color-gray-glass-002);\n }\n\n /* -- Hover & Active states ----------------------------------------------------------- */\n @media (hover: hover) and (pointer: fine) {\n button[data-variant='main']:hover:enabled {\n background-color: var(--wui-color-accent-090);\n }\n\n button[data-variant='main']:active:enabled {\n background-color: var(--wui-color-accent-080);\n }\n\n button[data-variant='accent']:hover:enabled {\n background-color: var(--wui-color-accent-glass-015);\n }\n\n button[data-variant='accent']:active:enabled {\n background-color: var(--wui-color-accent-glass-020);\n }\n\n button[data-variant='accent-error']:hover:enabled {\n background: var(--wui-color-error-glass-020);\n color: var(--wui-color-error-100);\n }\n\n button[data-variant='accent-error']:active:enabled {\n background: var(--wui-color-error-glass-030);\n color: var(--wui-color-error-100);\n }\n\n button[data-variant='accent-success']:hover:enabled {\n background: var(--wui-color-success-glass-020);\n color: var(--wui-color-success-100);\n }\n\n button[data-variant='accent-success']:active:enabled {\n background: var(--wui-color-success-glass-030);\n color: var(--wui-color-success-100);\n }\n\n button[data-variant='neutral']:hover:enabled {\n background: var(--wui-color-gray-glass-002);\n }\n\n button[data-variant='neutral']:active:enabled {\n background: var(--wui-color-gray-glass-005);\n }\n\n button[data-size='lg'][data-icon-left='true'][data-icon-right='false'] {\n padding-left: var(--wui-spacing-m);\n }\n\n button[data-size='lg'][data-icon-right='true'][data-icon-left='false'] {\n padding-right: var(--wui-spacing-m);\n }\n }\n\n /* -- Disabled state --------------------------------------------------- */\n button:disabled {\n background-color: var(--wui-color-gray-glass-002);\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);\n color: var(--wui-color-gray-glass-020);
2\n cursor: not-allowed;\n }\n\n button > wui-text {\n transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);\n will-change: opacity;\n opacity: var(--local-opacity-100);\n }\n\n ::slotted(*) {\n transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);\n will-change: opacity;\n opacity: var(--local-opacity-100);\n }\n\n wui-loading-spinner {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n opacity: var(--local-opacity-000);\n }\n"])));var pe,we,ge,fe=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};const ve={main:"inverse-100",inverse:"inverse-000",accent:"accent-100","accent-error":"error-100","accent-success":"success-100",neutral:"fg-100",disabled:"gray-glass-020"},be={lg:"paragraph-600",md:"small-600"},me={lg:"md",md:"md"};let ye=class extends f.WF{constructor(){super(...arguments),this.size="lg",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant="main",this.hasIconLeft=!1,this.hasIconRight=!1,this.borderRadius="m"}render(){var t;this.style.cssText="\n --local-width: ".concat(this.fullWidth?"100%":"auto",";\n --local-opacity-100: ").concat(this.loading?0:1,";\n --local-opacity-000: ").concat(this.loading?1:0,";\n --local-border-radius: var(--wui-border-radius-").concat(this.borderRadius,");\n ");const e=null!==(t=this.textVariant)&&void 0!==t?t:be[this.size];return(0,f.qy)(pe||(pe=(0,o.A)(["\n <button\n data-variant=","\n data-icon-left=","\n data-icon-right=","\n data-size=","\n ?disabled=","\n >\n ",'\n <slot name="iconLeft" @slotchange=',"></slot>\n <wui-text variant=",' color="inherit">\n <slot></slot>\n </wui-text>\n <slot name="iconRight" @slotchange=',"></slot>\n </button>\n "])),this.variant,this.hasIconLeft,this.hasIconRight,this.size,this.disabled,this.loadingTemplate(),()=>this.handleSlotLeftChange(),e,()=>this.handleSlotRightChange())}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){if(this.loading){const t=me[this.size],e=this.disabled?ve.disabled:ve[this.variant];return(0,f.qy)(we||(we=(0,o.A)(["<wui-loading-spinner color="," size=","></wui-loading-spinner>"])),e,t)}return(0,f.qy)(ge||(ge=(0,o.A)([""])))}};ye.styles=[m.W5,m.fD,he],fe([(0,v.MZ)()],ye.prototype,"size",void 0),fe([(0,v.MZ)({type:Boolean})],ye.prototype,"disabled",void 0),fe([(0,v.MZ)({type:Boolean})],ye.prototype,"fullWidth",void 0),fe([(0,v.MZ)({type:Boolean})],ye.prototype,"loading",void 0),fe([(0,v.MZ)()],ye.prototype,"variant",void 0),fe([(0,v.MZ)({type:Boolean})],ye.prototype,"hasIconLeft",void 0),fe([(0,v.MZ)({type:Boolean})],ye.prototype,"hasIconRight",void 0),fe([(0,v.MZ)()],ye.prototype,"borderRadius",void 0),fe([(0,v.MZ)()],ye.prototype,"textVariant",void 0),ye=fe([(0,y.E)("wui-button")],ye);var xe;n(81379);const ke=(0,f.AH)(xe||(xe=(0,o.A)(["\n button {\n padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);\n border-radius: var(--wui-border-radius-3xs);\n background-color: transparent;\n color: var(--wui-color-accent-100);\n }\n\n button:disabled {\n background-color: transparent;\n color: var(--wui-color-gray-glass-015);\n }\n\n button:hover {\n background-color: var(--wui-color-gray-glass-005);\n }\n"])));var Ce,Ae=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Re=class extends f.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.disabled=!1,this.color="inherit"}render(){return(0,f.qy)(Ce||(Ce=(0,o.A)(["\n <button ?disabled="," tabindex=",'>\n <slot name="iconLeft"></slot>\n <wui-text variant="small-600" color=','>\n <slot></slot>\n </wui-text>\n <slot name="iconRight"></slot>\n </button>\n '])),this.disabled,(0,b.J)(this.tabIdx),this.color)}};var Ee;Re.styles=[m.W5,m.fD,ke],Ae([(0,v.MZ)()],Re.prototype,"tabIdx",void 0),Ae([(0,v.MZ)({type:Boolean})],Re.prototype,"disabled",void 0),Ae([(0,v.MZ)()],Re.prototype,"color",void 0),Re=Ae([(0,y.E)("wui-link")],Re);const Ie=(0,f.AH)(Ee||(Ee=(0,o.A)(["\n :host {\n display: block;\n width: var(--wui-box-size-md);\n height: var(--wui-box-size-md);\n }\n\n svg {\n width: var(--wui-box-size-md);\n height: var(--wui-box-size-md);\n }\n\n rect {\n fill: none;\n stroke: var(--wui-color-accent-100);\n stroke-width: 4px;\n stroke-linecap: round;\n animation: dash 1s linear infinite;\n }\n\n @keyframes dash {\n to {\n stroke-dashoffset: 0px;\n }\n }\n"])));var Me,Te=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let We=class extends f.WF{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){const t=this.radius>50?50:this.radius,e=36-t,n=116+e,i=245+e,r=360+1.75*e;return(0,f.qy)(Me||(Me=(0,o.A)(['\n <svg viewBox="0 0 110 110" width="110" height="110">\n <rect\n x="2"\n y="2"\n width="106"\n height="106"\n rx=','\n stroke-dasharray="'," ",'"\n stroke-dashoffset=',"\n />\n </svg>\n "])),t,n,i,r)}};We.styles=[m.W5,Ie],Te([(0,v.MZ)({type:Number})],We.prototype,"radius",void 0),We=Te([(0,y.E)("wui-loading-thumbnail")],We);var Pe;n(26381);const Se=(0,f.AH)(Pe||(Pe=(0,o.A)(["\n button {\n border: none;\n border-radius: var(--wui-border-radius-3xl);\n }\n\n button[data-variant='main'] {\n background-color: var(--wui-color-accent-100);\n color: var(--wui-color-inverse-100);\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);\n }\n\n button[data-variant='accent'] {\n background-color: var(--wui-color-accent-glass-010);\n color: var(--wui-color-accent-100);\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);\n }\n\n button[data-variant='gray'] {\n background-color: transparent;\n color: var(--wui-color-fg-200);\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);\n }\n\n button[data-variant='shade'] {\n background-color: transparent;\n color: var(--wui-color-accent-100);\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);\n }\n\n button[data-size='sm'] {\n height: 32px;\n padding: 0 var(--wui-spacing-s);\n }\n\n button[data-size='md'] {\n height: 40px;\n padding: 0 var(--wui-spacing-l);\n }\n\n button[data-size='sm'] > wui-image {\n width: 16px;\n height: 16px;\n }\n\n button[data-size='md'] > wui-image {\n width: 24px;\n height: 24px;\n }\n\n button[data-size='sm'] > wui-icon {\n width: 12px;\n height: 12px;\n }\n\n button[data-size='md'] > wui-icon {\n width: 14px;\n height: 14px;\n }\n\n wui-image {\n border-radius: var(--wui-border-radius-3xl);\n overflow: hidden;\n }\n\n button.disabled > wui-icon,\n button.disabled > wui-image {\n filter: grayscale(1);\n }\n\n button[data-variant='main'] > wui-image {\n box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);\n }\n\n button[data-variant='shade'] > wui-image,\n button[data-variant='gray'] > wui-image {\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);\n }\n\n @media (hover: hover) and (pointer: fine) {\n button[data-variant='main']:focus-visible {\n background-color: var(--wui-color-accent-090);\n }\n\n button[data-variant='main']:hover:enabled {\n background-color: var(--wui-color-accent-090);\n }\n\n button[data-variant='main']:active:enabled {\n background-color: var(--wui-color-accent-080);\n }\n\n button[data-variant='accent']:hover:enabled {\n background-color: var(--wui-color-accent-glass-015);\n }\n\n button[data-variant='accent']:active:enabled {\n background-color: var(--wui-color-accent-glass-020);\n }\n\n button[data-variant='shade']:focus-visible,\n button[data-variant='gray']:focus-visible,\n button[data-variant='shade']:hover,\n button[data-variant='gray']:hover {\n background-color: var(--wui-color-gray-glass-002);\n }\n\n button[data-variant='gray']:active,\n button[data-variant='shade']:active {\n background-color: var(--wui-color-gray-glass-005);\n }\n }\n\n button.disabled {\n color: var(--wui-color-gray-glass-020);\n background-color: var(--wui-color-gray-glass-002);\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);\n pointer-events: none;\n }\n"])));var Oe,je,qe=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Le=class extends f.WF{constructor(){super(...arguments),this.variant="accent",this.imageSrc="",this.disabled=!1,this.icon="externalLink",this.size="md",this.text=""}render(){const t="sm"===this.size?"small-600":"paragraph-600";return(0,f.qy)(Oe||(Oe=(0,o.A)(["\n <button\n class=","\n data-variant=","\n data-size=","\n >\n ","\n <wui-text variant=",' color="inherit"> '," </wui-text>\n <wui-icon name=",' color="inherit" size="inherit"></wui-icon>\n </button>\n '])),this.disabled?"disabled":"",this.variant,this.size,this.imageSrc?(0,f.qy)(je||(je=(0,o.A)(["<wui-image src=","></wui-image>"])),this.imageSrc):null,t,this.text,this.icon)}};var ze;Le.styles=[m.W5,m.fD,Se],qe([(0,v.MZ)()],Le.prototype,"variant",void 0),qe([(0,v.MZ)()],Le.prototype,"imageSrc",void 0),qe([(0,v.MZ)({type:Boolean})],Le.prototype,"disabled",void 0),qe([(0,v.MZ)()],Le.prototype,"icon",void 0),qe([(0,v.MZ)()],Le.prototype,"size",void 0),qe([(0,v.MZ)()],Le.prototype,"text",void 0),Le=qe([(0,y.E)("wui-chip-button")],Le);const Be=(0,f.AH)(ze||(ze=(0,o.A)(["\n wui-flex {\n width: 100%;\n background-color: var(--wui-color-gray-glass-002);\n border-radius: var(--wui-border-radius-xs);\n }\n"])));var Ne,De=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Ze=class extends f.WF{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return(0,f.qy)(Ne||(Ne=(0,o.A)(['\n <wui-flex\n justifyContent="space-between"\n alignItems="center"\n .padding=','\n >\n <wui-text variant="paragraph-500" color="fg-200">','</wui-text>\n <wui-chip-button size="sm" variant="shade" text=',' icon="chevronRight">\n </wui-chip-button>
2\n </wui-flex>\n '])),["1xs","2l","1xs","2l"],this.label,this.buttonLabel)}};var Ue;Ze.styles=[m.W5,m.fD,Be],De([(0,v.MZ)({type:Boolean})],Ze.prototype,"disabled",void 0),De([(0,v.MZ)()],Ze.prototype,"label",void 0),De([(0,v.MZ)()],Ze.prototype,"buttonLabel",void 0),Ze=De([(0,y.E)("wui-cta-button")],Ze);const He=(0,r.AH)(Ue||(Ue=(0,o.A)(["\n :host {\n display: block;\n padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl);\n }\n"])));var Fe,Je,_e,Ke,Ve=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Ye=class extends r.WF{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;const{name:t,app_store:e,play_store:n,chrome_store:i,homepage:a}=this.wallet,l=s.w.isMobile(),c=s.w.isIos(),d=s.w.isAndroid(),h=[e,n,a,i].filter(Boolean).length>1,p=u.Zv.getTruncateString({string:t,charsStart:12,charsEnd:0,truncate:"end"});return h&&!l?(0,r.qy)(Fe||(Fe=(0,o.A)(["\n <wui-cta-button\n label=",'\n buttonLabel="Get"\n @click=',"\n ></wui-cta-button>\n "])),"Don't have ".concat(p,"?"),()=>g.I.push("Downloads",{wallet:this.wallet})):!h&&a?(0,r.qy)(Je||(Je=(0,o.A)(["\n <wui-cta-button\n label=",'\n buttonLabel="Get"\n @click=',"\n ></wui-cta-button>\n "])),"Don't have ".concat(p,"?"),this.onHomePage.bind(this)):e&&c?(0,r.qy)(_e||(_e=(0,o.A)(["\n <wui-cta-button\n label=",'\n buttonLabel="Get"\n @click=',"\n ></wui-cta-button>\n "])),"Don't have ".concat(p,"?"),this.onAppStore.bind(this)):n&&d?(0,r.qy)(Ke||(Ke=(0,o.A)(["\n <wui-cta-button\n label=",'\n buttonLabel="Get"\n @click=',"\n ></wui-cta-button>\n "])),"Don't have ".concat(p,"?"),this.onPlayStore.bind(this)):(this.style.display="none",null)}onAppStore(){var t;null!==(t=this.wallet)&&void 0!==t&&t.app_store&&s.w.openHref(this.wallet.app_store,"_blank")}onPlayStore(){var t;null!==(t=this.wallet)&&void 0!==t&&t.play_store&&s.w.openHref(this.wallet.play_store,"_blank")}onHomePage(){var t;null!==(t=this.wallet)&&void 0!==t&&t.homepage&&s.w.openHref(this.wallet.homepage,"_blank")}};var Ge;Ye.styles=[He],Ve([(0,a.MZ)({type:Object})],Ye.prototype,"wallet",void 0),Ye=Ve([(0,u.EM)("w3m-mobile-download-links")],Ye);const $e=(0,r.AH)(Ge||(Ge=(0,o.A)(["\n @keyframes shake {\n 0% {\n transform: translateX(0);\n }\n 25% {\n transform: translateX(3px);\n }\n 50% {\n transform: translateX(-3px);\n }\n 75% {\n transform: translateX(3px);\n }\n 100% {\n transform: translateX(0);\n }\n }\n\n wui-flex:first-child:not(:only-child) {\n position: relative;\n }\n\n wui-loading-thumbnail {\n position: absolute;\n }\n\n wui-icon-box {\n position: absolute;\n right: calc(var(--wui-spacing-3xs) * -1);\n bottom: calc(var(--wui-spacing-3xs) * -1);\n opacity: 0;\n transform: scale(0.5);\n transition-property: opacity, transform;\n transition-duration: var(--wui-duration-lg);\n transition-timing-function: var(--wui-ease-out-power-2);\n will-change: opacity, transform;\n }\n\n wui-text[align='center'] {\n width: 100%;\n padding: 0px var(--wui-spacing-l);\n }\n\n [data-error='true'] wui-icon-box {\n opacity: 1;\n transform: scale(1);\n }\n\n [data-error='true'] > wui-flex:first-child {\n animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;\n }\n\n [data-retry='false'] wui-link {\n display: none;\n }\n\n [data-retry='true'] wui-link {\n display: block;\n opacity: 1;\n }\n"])));var Xe,Qe,tn,en,nn=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};class on extends r.WF{constructor(){var t,e,n,i,o,r,a,l;(super(),this.wallet=null===(t=g.I.state.data)||void 0===t?void 0:t.wallet,this.connector=null===(e=g.I.state.data)||void 0===e?void 0:e.connector,this.timeout=void 0,this.secondaryBtnIcon="refresh",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=null!==(n=X.$.getWalletImage(this.wallet))&&void 0!==n?n:X.$.getConnectorImage(this.connector),this.name=null!==(i=null!==(o=null===(r=this.wallet)||void 0===r?void 0:r.name)&&void 0!==o?o:null===(a=this.connector)||void 0===a?void 0:a.name)&&void 0!==i?i:"Wallet",this.isRetrying=!1,this.uri=ot.x.state.wcUri,this.error=ot.x.state.wcError,this.ready=!1,this.showRetry=!1,this.secondaryBtnLabel="Try again",this.secondaryLabel="Accept connection request in the wallet",this.isLoading=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(ot.x.subscribeKey("wcUri",t=>{var e;(this.uri=t,this.isRetrying&&this.onRetry)&&(this.isRetrying=!1,null===(e=this.onConnect)||void 0===e||e.call(this))}),ot.x.subscribeKey("wcError",t=>this.error=t)),(s.w.isTelegram()||s.w.isSafari())&&s.w.isIos()&&ot.x.state.wcUri)&&(null===(l=this.onConnect)||void 0===l||l.call(this))}firstUpdated(){var t;null===(t=this.onAutoConnect)||void 0===t||t.call(this),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach(t=>t()),ot.x.setWcError(!1),clearTimeout(this.timeout)}render(){var t;null===(t=this.onRender)||void 0===t||t.call(this),this.onShowRetry();const e=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel;let n="Continue in ".concat(this.name);return this.error&&(n="Connection declined"),(0,r.qy)(Xe||(Xe=(0,o.A)(["\n <wui-flex\n data-error=","\n data-retry=",'\n flexDirection="column"\n alignItems="center"\n .padding=','\n gap="xl"\n >\n <wui-flex justifyContent="center" alignItems="center">\n <wui-wallet-image size="lg" imageSrc=',"></wui-wallet-image>\n\n ",'\n\n <wui-icon-box\n backgroundColor="error-100"\n background="opaque"\n iconColor="error-100"\n icon="close"\n size="sm"\n border\n borderColor="wui-color-bg-125"\n ></wui-icon-box>\n </wui-flex>\n\n <wui-flex flexDirection="column" alignItems="center" gap="xs">\n <wui-text variant="paragraph-500" color=',">\n ",'\n </wui-text>\n <wui-text align="center" variant="small-500" color="fg-200">',"</wui-text>\n </wui-flex>\n\n ","\n </wui-flex>
2\n\n ","\n\n <w3m-mobile-download-links .wallet=","></w3m-mobile-download-links>\n "])),(0,h.J)(this.error),this.showRetry,["3xl","xl","xl","xl"],(0,h.J)(this.imageSrc),this.error?null:this.loaderTemplate(),this.error?"error-100":"fg-100",n,e,this.secondaryBtnLabel?(0,r.qy)(Qe||(Qe=(0,o.A)(['\n <wui-button\n variant="accent"\n size="md"\n ?disabled=',"\n @click=",'\n data-testid="w3m-connecting-widget-secondary-button"\n >\n <wui-icon color="inherit" slot="iconLeft" name=',"></wui-icon>\n ","\n </wui-button>\n "])),this.isRetrying||this.isLoading,this.onTryAgain.bind(this),this.secondaryBtnIcon,this.secondaryBtnLabel):null,this.isWalletConnect?(0,r.qy)(tn||(tn=(0,o.A)(["\n <wui-flex .padding=",' justifyContent="center">\n <wui-link @click=',' color="fg-200" data-testid="wui-link-copy">\n <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>\n Copy link\n </wui-link>\n </wui-flex>\n '])),["0","xl","xl","xl"],this.onCopyUri):null,this.wallet)}onShowRetry(){if(this.error&&!this.showRetry){var t;this.showRetry=!0;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("wui-button");null===e||void 0===e||e.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){var t,e;(ot.x.setWcError(!1),this.onRetry)?(this.isRetrying=!0,null===(t=this.onRetry)||void 0===t||t.call(this)):null===(e=this.onConnect)||void 0===e||e.call(this)}loaderTemplate(){const t=ue.W.state.themeVariables["--w3m-border-radius-master"],e=t?parseInt(t.replace("px",""),10):4;return(0,r.qy)(en||(en=(0,o.A)(["<wui-loading-thumbnail radius=","></wui-loading-thumbnail>"])),9*e)}onCopyUri(){try{this.uri&&(s.w.copyToClopboard(this.uri),ee.P.showSuccess("Link copied"))}catch(t){ee.P.showError("Failed to copy")}}}on.styles=$e,nn([(0,a.wk)()],on.prototype,"isRetrying",void 0),nn([(0,a.wk)()],on.prototype,"uri",void 0),nn([(0,a.wk)()],on.prototype,"error",void 0),nn([(0,a.wk)()],on.prototype,"ready",void 0),nn([(0,a.wk)()],on.prototype,"showRetry",void 0),nn([(0,a.wk)()],on.prototype,"secondaryBtnLabel",void 0),nn([(0,a.wk)()],on.prototype,"secondaryLabel",void 0),nn([(0,a.wk)()],on.prototype,"isLoading",void 0),nn([(0,a.MZ)({type:Boolean})],on.prototype,"isMobile",void 0),nn([(0,a.MZ)()],on.prototype,"onRetry",void 0);var rn=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let an=class extends on{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),w.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){try{var t;this.error=!1;const{connectors:e}=p.a.state,n=e.find(t=>{var e,n,i;return"ANNOUNCED"===t.type&&(null===(e=t.info)||void 0===e?void 0:e.rdns)===(null===(n=this.wallet)||void 0===n?void 0:n.rdns)||"INJECTED"===t.type||t.name===(null===(i=this.wallet)||void 0===i?void 0:i.name)});if(!n)throw new Error("w3m-connecting-wc-browser: No connector found");await ot.x.connectExternal(n,n.chain),te.W.close(),w.E.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:(null===(t=this.wallet)||void 0===t?void 0:t.name)||"Unknown"}})}catch(n){var e;w.E.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:null!==(e=null===n||void 0===n?void 0:n.message)&&void 0!==e?e:"Unknown"}}),this.error=!0}}};an=rn([(0,u.EM)("w3m-connecting-wc-browser")],an);var sn=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let ln=class extends on{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),w.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){var t;!this.ready&&this.uri&&(this.ready=!0,null===(t=this.onConnect)||void 0===t||t.call(this))}onConnectProxy(){var t;if(null!==(t=this.wallet)&&void 0!==t&&t.desktop_link&&this.uri)try{this.error=!1;const{desktop_link:t,name:e}=this.wallet,{redirect:n,href:i}=s.w.formatNativeUrl(t,this.uri);ot.x.setWcLinking({name:e,href:i}),ot.x.setRecentWallet(this.wallet),s.w.openHref(n,"_blank")}catch(e){this.error=!0}}};ln=sn([(0,u.EM)("w3m-connecting-wc-desktop")],ln);var cn=n(96627),dn=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let un=class extends on{constructor(){if(super(),this.btnLabelTimeout=void 0,this.redirectDeeplink=void 0,this.redirectUniversalLink=void 0,this.target=void 0,this.preferUniversalLinks=c.H.state.experimental_preferUniversalLinks,this.isLoading=!0,this.onConnect=()=>{var t;if(null!==(t=this.wallet)&&void 0!==t&&t.mobile_link&&this.uri)try{this.error=!1;const{mobile_link:t,link_mode:e,name:n}=this.wallet,{redirect:i,redirectUniversalLink:o,href:r}=s.w.formatNativeUrl(t,this.uri,e);this.redirectDeeplink=i,this.redirectUniversalLink=o,this.target=s.w.isIframe()?"_top":"_self",ot.x.setWcLinking({name:n,href:r}),ot.x.setRecentWallet(this.wallet),this.preferUniversalLinks&&this.redirectUniversalLink?s.w.openHref(this.redirectUniversalLink,this.target):s.w.openHref(this.redirectDeeplink,this.target)}catch(wi){w.E.sendEvent({type:"track",event:"CONNECT_PROXY_ERROR",properties:{message:wi instanceof Error?wi.message:"Error parsing the deeplink",uri:this.uri,mobile_link:this.wallet.mobile_link,name:this.wallet.name}}),this.error=!0}},!this.wallet)throw new Error("w3m-connecting-wc-mobile: No wallet provided");this.secondaryBtnLabel="Open",this.secondaryLabel=cn.oU.CONNECT_LABELS.MOBILE,this.secondaryBtnIcon="externalLink",this.onHandleURI(),this.unsubscribe.push(ot.x.subscribeKey("wcUri",()=>{this.onHandleURI()})),w.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}})}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.btnLabelTimeout)}onHandleURI(){var t;(this.isLoading=!this.uri,!this.ready&&this.uri)&&(this.ready=!0,null===(t=this.onConnect)||void 0===t||t.call(this))}onTryAgain(){var t;ot.x.setWcError(!1),null===(t=this.onConnect)||void 0===t||t.call(this)}};dn([(0,a.wk)()],un.prototype,"redirectDeeplink",void 0),dn([(0,a.wk)()],un.prototype,"redirectUniversalLink",void 0),dn([(0,a.wk)()],un.prototype,"target",void 0),dn([(0,a.wk)()],un.prototype,"preferUniversalLinks",void 0),dn([(0,a.wk)()],un.prototype,"isLoading",void 0),un=dn([(0,u.EM)("w3m-connecting-wc-mobile")],un);var hn,pn,wn,gn=n(80998);function fn(t,e,n){if(t===e)return!1;return(t-e<0?e-t:t-e)<=n+.1}const vn={generate(t){let{uri:e,size:n,logoSize:i,dotColor:r="#141414"}=t;const a=[],s=function(t,e){const n=Array.prototype.slice.call(gn.create(t,{errorCorrectionLevel:e}).modules.data,0),i=Math.sqrt(n.length);return n.reduce((t,e,n)=>(n%i===0?t.push([e]):t[t.length-1].push(e))&&t,[])}(e,"Q"),l=n/s.length,c=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];
2c.forEach(t=>{let{x:e,y:n}=t;const i=(s.length-7)*l*e,d=(s.length-7)*l*n,u=.45;for(let s=0;s<c.length;s+=1){const t=l*(7-2*s);a.push((0,f.JW)(hn||(hn=(0,o.A)(["\n <rect\n fill=","\n width=","\n rx= ","\n ry= ","\n stroke=","\n stroke-width=","\n height=","\n x= ","\n y= ","\n />\n "])),2===s?r:"transparent",0===s?t-5:t,0===s?(t-5)*u:t*u,0===s?(t-5)*u:t*u,r,0===s?5:0,0===s?t-5:t,0===s?d+l*s+2.5:d+l*s,0===s?i+l*s+2.5:i+l*s))}});const d=Math.floor((i+25)/l),u=s.length/2-d/2,h=s.length/2+d/2-1,p=[];s.forEach((t,e)=>{t.forEach((t,n)=>{if(s[e][n]&&!(e<7&&n<7||e>s.length-8&&n<7||e<7&&n>s.length-8)&&!(e>u&&e<h&&n>u&&n<h)){const t=e*l+l/2,i=n*l+l/2;p.push([t,i])}})});const w={};return p.forEach(t=>{let[e,n]=t;var i;w[e]?null===(i=w[e])||void 0===i||i.push(n):w[e]=[n]}),Object.entries(w).map(t=>{let[e,n]=t;const i=n.filter(t=>n.every(e=>!fn(t,e,l)));return[Number(e),i]}).forEach(t=>{let[e,n]=t;n.forEach(t=>{a.push((0,f.JW)(pn||(pn=(0,o.A)(["<circle cx="," cy="," fill="," r="," />"])),e,t,r,l/2.5))})}),Object.entries(w).filter(t=>{let[e,n]=t;return n.length>1}).map(t=>{let[e,n]=t;const i=n.filter(t=>n.some(e=>fn(t,e,l)));return[Number(e),i]}).map(t=>{let[e,n]=t;n.sort((t,e)=>t<e?-1:1);const i=[];for(const o of n){const t=i.find(t=>t.some(t=>fn(o,t,l)));t?t.push(o):i.push([o])}return[e,i.map(t=>[t[0],t[t.length-1]])]}).forEach(t=>{let[e,n]=t;n.forEach(t=>{let[n,i]=t;a.push((0,f.JW)(wn||(wn=(0,o.A)(["\n <line\n x1=","\n x2=","\n y1=","\n y2=","\n stroke=","\n stroke-width=",'\n stroke-linecap="round"\n />\n '])),e,e,n,i,r,l/1.25))})}),a}};var bn;const mn=(0,f.AH)(bn||(bn=(0,o.A)(["\n :host {\n position: relative;\n user-select: none;\n display: block;\n overflow: hidden;\n aspect-ratio: 1 / 1;\n width: var(--local-size);\n }\n\n :host([data-theme='dark']) {\n border-radius: clamp(0px, var(--wui-border-radius-l), 40px);\n background-color: var(--wui-color-inverse-100);\n padding: var(--wui-spacing-l);\n }\n\n :host([data-theme='light']) {\n box-shadow: 0 0 0 1px var(--wui-color-bg-125);\n background-color: var(--wui-color-bg-125);\n }\n\n :host([data-clear='true']) > wui-icon {\n display: none;\n }\n\n svg:first-child,\n wui-image,\n wui-icon {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateY(-50%) translateX(-50%);\n }\n\n wui-image {\n width: 25%;\n height: 25%;\n border-radius: var(--wui-border-radius-xs);\n }\n\n wui-icon {\n width: 100%;\n height: 100%;\n color: var(--local-icon-color) !important;\n transform: translateY(-50%) translateX(-50%) scale(0.25);\n }\n"])));var yn,xn,kn,Cn,An,Rn=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let En=class extends f.WF{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0,this.farcaster=void 0}render(){var t;return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),this.style.cssText="\n --local-size: ".concat(this.size,"px;\n --local-icon-color: ").concat(null!==(t=this.color)&&void 0!==t?t:"#3396ff","\n "),(0,f.qy)(yn||(yn=(0,o.A)([""," ",""])),this.templateVisual(),this.templateSvg())}templateSvg(){const t="light"===this.theme?this.size:this.size-32;return(0,f.JW)(xn||(xn=(0,o.A)(["\n <svg height="," width=",">\n ","\n </svg>\n "])),t,t,vn.generate({uri:this.uri,size:t,logoSize:this.arenaClear?0:t/4,dotColor:this.color}))}templateVisual(){var t;return this.imageSrc?(0,f.qy)(kn||(kn=(0,o.A)(["<wui-image src="," alt=","></wui-image>"])),this.imageSrc,null!==(t=this.alt)&&void 0!==t?t:"logo"):this.farcaster?(0,f.qy)(Cn||(Cn=(0,o.A)(['<wui-icon\n class="farcaster"\n size="inherit"\n color="inherit"\n name="farcaster"\n ></wui-icon>']))):(0,f.qy)(An||(An=(0,o.A)(['<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>'])))}};var In;En.styles=[m.W5,mn],Rn([(0,v.MZ)()],En.prototype,"uri",void 0),Rn([(0,v.MZ)({type:Number})],En.prototype,"size",void 0),Rn([(0,v.MZ)()],En.prototype,"theme",void 0),Rn([(0,v.MZ)()],En.prototype,"imageSrc",void 0),Rn([(0,v.MZ)()],En.prototype,"alt",void 0),Rn([(0,v.MZ)()],En.prototype,"color",void 0),Rn([(0,v.MZ)({type:Boolean})],En.prototype,"arenaClear",void 0),Rn([(0,v.MZ)({type:Boolean})],En.prototype,"farcaster",void 0),En=Rn([(0,y.E)("wui-qr-code")],En);const Mn=(0,f.AH)(In||(In=(0,o.A)(["\n :host {\n display: block;\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);\n background: linear-gradient(\n 120deg,\n var(--wui-color-bg-200) 5%,\n var(--wui-color-bg-200) 48%,\n var(--wui-color-bg-300) 55%,\n var(--wui-color-bg-300) 60%,\n var(--wui-color-bg-300) calc(60% + 10px),\
2n var(--wui-color-bg-200) calc(60% + 12px),\n var(--wui-color-bg-200) 100%\n );\n background-size: 250%;\n animation: shimmer 3s linear infinite reverse;\n }\n\n :host([variant='light']) {\n background: linear-gradient(\n 120deg,\n var(--wui-color-bg-150) 5%,\n var(--wui-color-bg-150) 48%,\n var(--wui-color-bg-200) 55%,\n var(--wui-color-bg-200) 60%,\n var(--wui-color-bg-200) calc(60% + 10px),\n var(--wui-color-bg-150) calc(60% + 12px),\n var(--wui-color-bg-150) 100%\n );\n background-size: 250%;\n }\n\n @keyframes shimmer {\n from {\n background-position: -250% 0;\n }\n to {\n background-position: 250% 0;\n }\n }\n"])));var Tn,Wn=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Pn=class extends f.WF{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m",this.variant="default"}render(){return this.style.cssText="\n width: ".concat(this.width,";\n height: ").concat(this.height,";\n border-radius: ","clamp(0px,var(--wui-border-radius-".concat(this.borderRadius,"), 40px)"),";\n "),(0,f.qy)(Tn||(Tn=(0,o.A)(["<slot></slot>"])))}};Pn.styles=[Mn],Wn([(0,v.MZ)()],Pn.prototype,"width",void 0),Wn([(0,v.MZ)()],Pn.prototype,"height",void 0),Wn([(0,v.MZ)()],Pn.prototype,"borderRadius",void 0),Wn([(0,v.MZ)()],Pn.prototype,"variant",void 0),Pn=Wn([(0,y.E)("wui-shimmer")],Pn);var Sn;const On=(0,f.AH)(Sn||(Sn=(0,o.A)(["\n .reown-logo {\n height: var(--wui-spacing-xxl);\n }\n\n a {\n text-decoration: none;\n cursor: pointer;\n }\n\n a:hover {\n opacity: 0.9;\n }\n"])));var jn,qn=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Ln=class extends f.WF{render(){return(0,f.qy)(jn||(jn=(0,o.A)(['\n <a\n data-testid="ux-branding-reown"\n href=','\n rel="noreferrer"\n target="_blank"\n style="text-decoration: none;"\n >\n <wui-flex\n justifyContent="center"\n alignItems="center"\n gap="xs"\n .padding=','\n >\n <wui-text variant="small-500" color="fg-100"> UX by </wui-text>\n <wui-icon name="reown" size="xxxl" class="reown-logo"></wui-icon>\n </wui-flex>\n </a>\n '])),"https://reown.com",["0","0","l","0"])}};var zn;Ln.styles=[m.W5,m.fD,On],Ln=qn([(0,y.E)("wui-ux-by-reown")],Ln);const Bn=(0,r.AH)(zn||(zn=(0,o.A)(["\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n wui-shimmer {\n width: 100%;\n aspect-ratio: 1 / 1;\n border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important;\n }\n\n wui-qr-code {\n opacity: 0;\n animation-duration: 200ms;\n animation-timing-function: ease;\n animation-name: fadein;\n animation-fill-mode: forwards;\n }\n"])));var Nn,Dn,Zn,Un=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Hn=class extends on{constructor(){var t,e;super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),w.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:null!==(t=null===(e=this.wallet)||void 0===e?void 0:e.name)&&void 0!==t?t:"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.unsubscribe)||void 0===t||t.forEach(t=>t()),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),(0,r.qy)(Nn||(Nn=(0,o.A)(['\n <wui-flex\n flexDirection="column"\n alignItems="center"\n .padding=','\n gap="xl"\n >\n <wui-shimmer borderRadius="l" width="100%"> ',' </wui-shimmer>\n\n <wui-text variant="paragraph-500" color="fg-100">\n Scan this QR Code with your phone\n </wui-text>\n ',"\n </wui-flex>
2\n <w3m-mobile-download-links .wallet=","></w3m-mobile-download-links>\n "])),["0","xl","xl","xl"],this.qrCodeTemplate(),this.copyTemplate(),this.wallet)}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},200))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;const t=this.getBoundingClientRect().width-40,e=this.wallet?this.wallet.name:void 0;return ot.x.setWcLinking(void 0),ot.x.setRecentWallet(this.wallet),(0,r.qy)(Dn||(Dn=(0,o.A)([" <wui-qr-code\n size=","\n theme=","\n uri=","\n imageSrc=","\n color=","\n alt=",'\n data-testid="wui-qr-code"\n ></wui-qr-code>'])),t,ue.W.state.themeMode,this.uri,(0,h.J)(X.$.getWalletImage(this.wallet)),(0,h.J)(ue.W.state.themeVariables["--w3m-qr-color"]),(0,h.J)(e))}copyTemplate(){const t=!this.uri||!this.ready;return(0,r.qy)(Zn||(Zn=(0,o.A)(["<wui-link\n .disabled=","\n @click=",'\n color="fg-200"\n data-testid="copy-wc2-uri"\n >\n <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>\n Copy link\n </wui-link>'])),t,this.onCopyUri)}};var Fn;Hn.styles=Bn,Hn=Un([(0,u.EM)("w3m-connecting-wc-qrcode")],Hn);var Jn=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let _n=class extends r.WF{constructor(){var t;if(super(),this.wallet=null===(t=g.I.state.data)||void 0===t?void 0:t.wallet,!this.wallet)throw new Error("w3m-connecting-wc-unsupported: No wallet provided");w.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}render(){return(0,r.qy)(Fn||(Fn=(0,o.A)(['\n <wui-flex\n flexDirection="column"\n alignItems="center"\n .padding=','\n gap="xl"\n >\n <wui-wallet-image\n size="lg"\n imageSrc=','\n ></wui-wallet-image>\n\n <wui-text variant="paragraph-500" color="fg-100">Not Detected</wui-text>\n </wui-flex>\n\n <w3m-mobile-download-links .wallet=',"></w3m-mobile-download-links>\n "])),["3xl","xl","xl","xl"],(0,h.J)(X.$.getWalletImage(this.wallet)),this.wallet)}};_n=Jn([(0,u.EM)("w3m-connecting-wc-unsupported")],_n);var Kn=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Vn=class extends on{constructor(){if(super(),this.isLoading=!0,!this.wallet)throw new Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel=cn.oU.CONNECT_LABELS.MOBILE,this.secondaryBtnIcon="externalLink",this.updateLoadingState(),this.unsubscribe.push(ot.x.subscribeKey("wcUri",()=>{this.updateLoadingState()})),w.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}updateLoadingState(){this.isLoading=!this.uri}onConnectProxy(){var t;
2if(null!==(t=this.wallet)&&void 0!==t&&t.webapp_link&&this.uri)try{this.error=!1;const{webapp_link:t,name:e}=this.wallet,{redirect:n,href:i}=s.w.formatUniversalUrl(t,this.uri);ot.x.setWcLinking({name:e,href:i}),ot.x.setRecentWallet(this.wallet),s.w.openHref(n,"_blank")}catch(e){this.error=!0}}};var Yn,Gn,$n,Xn,Qn,ti,ei,ni,ii;Kn([(0,a.wk)()],Vn.prototype,"isLoading",void 0),Vn=Kn([(0,u.EM)("w3m-connecting-wc-web")],Vn);var oi=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let ri=class extends r.WF{constructor(){var t;super(),this.wallet=null===(t=g.I.state.data)||void 0===t?void 0:t.wallet,this.unsubscribe=[],this.platform=void 0,this.platforms=[],this.isSiwxEnabled=Boolean(c.H.state.siwx),this.remoteFeatures=c.H.state.remoteFeatures,this.determinePlatforms(),this.initializeConnection(),this.unsubscribe.push(c.H.subscribeKey("remoteFeatures",t=>this.remoteFeatures=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){return(0,r.qy)(Yn||(Yn=(0,o.A)(["\n ","\n <div>","</div>\n ","\n "])),this.headerTemplate(),this.platformTemplate(),this.reownBrandingTemplate())}reownBrandingTemplate(){var t;return null!==(t=this.remoteFeatures)&&void 0!==t&&t.reownBranding?(0,r.qy)(Gn||(Gn=(0,o.A)(["<wui-ux-by-reown></wui-ux-by-reown>"]))):null}async initializeConnection(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("browser"!==this.platform&&(!c.H.state.manualWCControl||t))try{const{wcPairingExpiry:e,status:n}=ot.x.state;(t||c.H.state.enableEmbedded||s.w.isPairingExpired(e)||"connecting"===n)&&(await ot.x.connectWalletConnect(),this.isSiwxEnabled||te.W.close())}catch(i){var e,n;w.E.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:null!==(e=null===i||void 0===i?void 0:i.message)&&void 0!==e?e:"Unknown"}}),ot.x.setWcError(!0),ee.P.showError(null!==(n=i.message)&&void 0!==n?n:"Connection error"),ot.x.resetWcConnection(),g.I.goBack()}}determinePlatforms(){if(!this.wallet)return this.platforms.push("qrcode"),void(this.platform="qrcode");if(this.platform)return;const{mobile_link:t,desktop_link:e,webapp_link:n,injected:i,rdns:o}=this.wallet,r=null===i||void 0===i?void 0:i.map(t=>{let{injected_id:e}=t;return e}).filter(Boolean),a=[...o?[o]:null!==r&&void 0!==r?r:[]],l=!c.H.state.isUniversalProvider&&a.length,d=t,u=n,h=ot.x.checkInstalled(a),p=l&&h,w=e&&!s.w.isMobile();p&&!Et.W.state.noAdapters&&this.platforms.push("browser"),d&&this.platforms.push(s.w.isMobile()?"mobile":"qrcode"),u&&this.platforms.push("web"),w&&this.platforms.push("desktop"),p||!l||Et.W.state.noAdapters||this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return(0,r.qy)($n||($n=(0,o.A)(["<w3m-connecting-wc-browser></w3m-connecting-wc-browser>"])));case"web":return(0,r.qy)(Xn||(Xn=(0,o.A)(["<w3m-connecting-wc-web></w3m-connecting-wc-web>"])));case"desktop":return(0,r.qy)(Qn||(Qn=(0,o.A)(["\n <w3m-connecting-wc-desktop .onRetry=",">\n </w3m-connecting-wc-desktop>\n "])),()=>this.initializeConnection(!0));case"mobile":return(0,r.qy)(ti||(ti=(0,o.A)(["\n <w3m-connecting-wc-mobile isMobile .onRetry=",">\n </w3m-connecting-wc-mobile>\n "])),()=>this.initializeConnection(!0));case"qrcode":return(0,r.qy)(ei||(ei=(0,o.A)(["<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>"])));default:return(0,r.qy)(ni||(ni=(0,o.A)(["<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>"])))}}headerTemplate(){return this.platforms.length>1?(0,r.qy)(ii||(ii=(0,o.A)(["\n <w3m-connecting-header\n .platforms=","\n .onSelectPlatfrom=","\n >\n </w3m-connecting-header>\n "])),this.platforms,this.onSelectPlatform.bind(this)):null}async onSelectPlatform(t){var e;const n=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("div");n&&(await n.animate([{opacity:1},{opacity:0}
2],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=t,n.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};var ai,si,li;oi([(0,a.wk)()],ri.prototype,"platform",void 0),oi([(0,a.wk)()],ri.prototype,"platforms",void 0),oi([(0,a.wk)()],ri.prototype,"isSiwxEnabled",void 0),oi([(0,a.wk)()],ri.prototype,"remoteFeatures",void 0),ri=oi([(0,u.EM)("w3m-connecting-wc-view")],ri);var ci=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let di=class extends r.WF{constructor(){super(...arguments),this.isMobile=s.w.isMobile()}render(){if(this.isMobile){const{featured:t,recommended:e}=l.N.state,{customWallets:n}=c.H.state,i=d.i.getRecentWallets(),a=t.length||e.length||(null===n||void 0===n?void 0:n.length)||i.length;return(0,r.qy)(ai||(ai=(0,o.A)(['<wui-flex\n flexDirection="column"\n gap="xs"\n .margin=',"\n >\n ","\n <w3m-all-wallets-widget></w3m-all-wallets-widget>\n </wui-flex>"])),["3xs","s","s","s"],a?(0,r.qy)(si||(si=(0,o.A)(["<w3m-connector-list></w3m-connector-list>"]))):null)}return(0,r.qy)(li||(li=(0,o.A)(['<wui-flex flexDirection="column" .padding=','>\n <w3m-connecting-wc-view></w3m-connecting-wc-view>\n <wui-flex flexDirection="column" .padding=',">\n <w3m-all-wallets-widget></w3m-all-wallets-widget> </wui-flex\n ></wui-flex>"])),["0","0","l","0"],["0","m","0","m"])}};ci([(0,a.wk)()],di.prototype,"isMobile",void 0),di=ci([(0,u.EM)("w3m-connecting-wc-basic-view")],di);var ui=n(79749),hi=n(38966),pi=n(63839);const wi=()=>new gi;class gi{}const fi=new WeakMap,vi=(0,pi.u$)(class extends hi.Kq{render(t){return ui.s6}update(t,e){var n;let[i]=e;const o=i!==this.G;return o&&void 0!==this.G&&this.rt(void 0),(o||this.lt!==this.ct)&&(this.G=i,this.ht=null===(n=t.options)||void 0===n?void 0:n.host,this.rt(this.ct=t.element)),ui.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){var e;const n=null!==(e=this.ht)&&void 0!==e?e:globalThis;let i=fi.get(n);void 0===i&&(i=new WeakMap,fi.set(n,i)),void 0!==i.get(this.G)&&this.G.call(this.ht,void 0),i.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){var t,e,n;return"function"==typeof this.G?null===(t=fi.get(null!==(e=this.ht)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.G):null===(n=this.G)||void 0===n?void 0:n.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var bi;const mi=(0,f.AH)(bi||(bi=(0,o.A)(["\n :host {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n label {\n position: relative;\n display: inline-block;\n width: 32px;\n height: 22px;\n }\n\n input {\n width: 0;\n height: 0;\n opacity: 0;\n }\n\n span {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: var(--wui-color-blue-100);\n border-width: 1px;\n border-style: solid;\n border-color: var(--wui-color-gray-glass-002);\n border-radius: 999px;\n transition:\n background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),\n border-color var(--wui-ease-inout-power-1) var(--wui-duration-md);\n will-change: background-color, border-color;\n }\n\n span:before {\n position: absolute;\n content: '';\n height: 16px;\n width: 16px;\n left: 3px;\n top: 2px;\n background-color: var(--wui-color-inverse-100);\n transition: transform var(--wui-ease-inout-power-1) var(--wui-duration-lg);\n will-change: transform;\n border-radius: 50%;\n }\n\n input:checked + span {\n border-color: var(--wui-color-gray-glass-005);\n background-color: var(--wui-color-blue-100);\n }\n\n input:not(:checked) + span {\n background-color: var(--wui-color-gray-glass-010);\n }\n\n input:checked + span:before {\n transform: translateX(calc(100% - 7px));\n }\n"])));var yi,xi=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let ki=class extends f.WF{constructor(){super(...arguments),this.inputElementRef=wi(),this.checked=void 0}render(){return(0,f.qy)(yi||(yi=(0,o.A)(["\n <label>\n <input\n ",'\n type="checkbox"\n ?checked=',"\n @change=","\n />
2\n <span></span>\n </label>\n "])),vi(this.inputElementRef),(0,b.J)(this.checked),this.dispatchChangeEvent.bind(this))}dispatchChangeEvent(){var t;this.dispatchEvent(new CustomEvent("switchChange",{detail:null===(t=this.inputElementRef.value)||void 0===t?void 0:t.checked,bubbles:!0,composed:!0}))}};var Ci;ki.styles=[m.W5,m.fD,m.ck,mi],xi([(0,v.MZ)({type:Boolean})],ki.prototype,"checked",void 0),ki=xi([(0,y.E)("wui-switch")],ki);const Ai=(0,f.AH)(Ci||(Ci=(0,o.A)(["\n :host {\n height: 100%;\n }\n\n button {\n display: flex;\n align-items: center;\n justify-content: center;\n column-gap: var(--wui-spacing-1xs);\n padding: var(--wui-spacing-xs) var(--wui-spacing-s);\n background-color: var(--wui-color-gray-glass-002);\n border-radius: var(--wui-border-radius-xs);\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);\n transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);\n will-change: background-color;\n cursor: pointer;\n }\n\n wui-switch {\n pointer-events: none;\n }\n"])));var Ri,Ei=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Ii=class extends f.WF{constructor(){super(...arguments),this.checked=void 0}render(){return(0,f.qy)(Ri||(Ri=(0,o.A)(['\n <button>\n <wui-icon size="xl" name="walletConnectBrown"></wui-icon>\n <wui-switch ?checked=',"></wui-switch>\n </button>\n "])),(0,b.J)(this.checked))}};var Mi;Ii.styles=[m.W5,m.fD,Ai],Ei([(0,v.MZ)({type:Boolean})],Ii.prototype,"checked",void 0),Ii=Ei([(0,y.E)("wui-certified-switch")],Ii);const Ti=(0,f.AH)(Mi||(Mi=(0,o.A)(["\n button {\n background-color: var(--wui-color-fg-300);\n border-radius: var(--wui-border-radius-4xs);\n width: 16px;\n height: 16px;\n }\n\n button:disabled {\n background-color: var(--wui-color-bg-300);\n }\n\n wui-icon {\n color: var(--wui-color-bg-200) !important;\n }\n\n button:focus-visible {\n background-color: var(--wui-color-fg-250);\n border: 1px solid var(--wui-color-accent-100);\n }\n\n @media (hover: hover) and (pointer: fine) {\n button:hover:enabled {\n background-color: var(--wui-color-fg-250);\n }\n\n button:active:enabled {\n background-color: var(--wui-color-fg-225);\n }\n }\n"])));var Wi,Pi=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Si=class extends f.WF{constructor(){super(...arguments),this.icon="copy"}render(){return(0,f.qy)(Wi||(Wi=(0,o.A)(['\n <button>\n <wui-icon color="inherit" size="xxs" name=',"></wui-icon>\n </button>\n "])),this.icon)}};Si.styles=[m.W5,m.fD,Ti],Pi([(0,v.MZ)()],Si.prototype,"icon",void 0),Si=Pi([(0,y.E)("wui-input-element")],Si);var Oi,ji=n(15823);const qi=(0,f.AH)(Oi||(Oi=(0,o.A)(["\n :host {\n position: relative;\n width: 100%;\n display: inline-block;\n color: var(--wui-color-fg-275);\n }\n\n input {\n width: 100%;\n border-radius: var(--wui-border-radius-xs);\n box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);\n background: var(--wui-color-gray-glass-002);\n font-size: var(--wui-font-size-paragraph);\n letter-spacing: var(--wui-letter-spacing-paragraph);\n color: var(--wui-color-fg-100);\n transition:\n background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),\n border-color var(--wui-ease-inout-power-1) var(--wui-duration-md),\n box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md);\n will-change: background-color, border-color, box-shadow;\n caret-color: var(--wui-color-accent-100);\n }
2\n\n input:disabled {\n cursor: not-allowed;\n border: 1px solid var(--wui-color-gray-glass-010);\n }\n\n input:disabled::placeholder,\n input:disabled + wui-icon {\n color: var(--wui-color-fg-300);\n }\n\n input::placeholder {\n color: var(--wui-color-fg-275);\n }\n\n input:focus:enabled {\n background-color: var(--wui-color-gray-glass-005);\n -webkit-box-shadow:\n inset 0 0 0 1px var(--wui-color-accent-100),\n 0px 0px 0px 4px var(--wui-box-shadow-blue);\n -moz-box-shadow:\n inset 0 0 0 1px var(--wui-color-accent-100),\n 0px 0px 0px 4px var(--wui-box-shadow-blue);\n box-shadow:\n inset 0 0 0 1px var(--wui-color-accent-100),\n 0px 0px 0px 4px var(--wui-box-shadow-blue);\n }\n\n input:hover:enabled {\n background-color: var(--wui-color-gray-glass-005);\n }\n\n wui-icon {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n pointer-events: none;\n }\n\n .wui-size-sm {\n padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s);\n }\n\n wui-icon + .wui-size-sm {\n padding: 9px var(--wui-spacing-m) 10px 36px;\n }\n\n wui-icon[data-input='sm'] {\n left: var(--wui-spacing-s);\n }\n\n .wui-size-md {\n padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m);\n }\n\n wui-icon + .wui-size-md,\n wui-loading-spinner + .wui-size-md {\n padding: 10.5px var(--wui-spacing-3xl) 10.5px var(--wui-spacing-3xl);\n }\n\n wui-icon[data-input='md'] {\n left: var(--wui-spacing-l);\n }\n\n .wui-size-lg {\n padding: var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-l);\n letter-spacing: var(--wui-letter-spacing-medium-title);\n font-size: var(--wui-font-size-medium-title);\n font-weight: var(--wui-font-weight-light);\n line-height: 130%;\n color: var(--wui-color-fg-100);\n height: 64px;\n }\n\n .wui-padding-right-xs {\n padding-right: var(--wui-spacing-xs);\n }\n\n .wui-padding-right-s {\n padding-right: var(--wui-spacing-s);\n }\n\n .wui-padding-right-m {\n padding-right: var(--wui-spacing-m);\n }\n\n .wui-padding-right-l {\n padding-right: var(--wui-spacing-l);\n }\n\n .wui-padding-right-xl {\n padding-right: var(--wui-spacing-xl);\n }\n\n .wui-padding-right-2xl {\n padding-right: var(--wui-spacing-2xl);\n }\n\n .wui-padding-right-3xl {\n padding-right: var(--wui-spacing-3xl);\n }\n\n .wui-padding-right-4xl {\n padding-right: var(--wui-spacing-4xl);\n }\n\n .wui-padding-right-5xl {\n padding-right: var(--wui-spacing-5xl);\n }\n\n wui-icon + .wui-size-lg,\n wui-loading-spinner + .wui-size-lg {\n padding-left: 50px;\n }\n\n wui-icon[data-input='lg'] {\n left: var(--wui-spacing-l);\n }\n\n .wui-size-mdl {\n padding: 17.25px var(--wui-spacing-m) 17.25px var(--wui-spacing-m);\n }\n wui-icon + .wui-size-mdl,\n wui-loading-spinner + .wui-size-mdl {\n padding: 17.25px var(--wui-spacing-3xl) 17.25px 40px;\n }\n wui-icon[data-input='mdl'] {\n left: var(--wui-spacing-m);\n }\n\n input:placeholder-shown ~ ::slotted(wui-input-element),\n input:placeholder-shown ~ ::slotted(wui-icon) {\n opacity: 0;\n pointer-events: none;\n }\n\n input::-webkit-outer-spin-button,\n input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n input[type='number'] {\n -moz-appearance: textfield;\n }\n\n ::slotted(wui-input-element),\n ::slotted(wui-icon) {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n }\n\n ::slotted(wui-input-element) {\n right: var(--wui-spacing-m);\n }\n\n ::slotted(wui-icon) {\n right: 0px;\n }\n"])));var Li,zi,Bi=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Ni=class extends f.WF{constructor(){super(...arguments),this.inputElementRef=wi(),this.size="md",this.disabled=!1,this.placeholder="",this.type="text",this.value=""}render(){const t="wui-padding-right-".concat(this.inputRightPadding),e="wui-size-".concat(this.size),n={[e]:!0,[t]:Boolean(this.inputRightPadding)};return(0,f.qy)(Li||(Li=(0,o.A)(["",'\n <input\n data-testid="wui-input-text"\n ',"\n class=","\n type=","\n enterkeyhint=","\n ?disabled=","\n placeholder=","\n @input
2=","\n .value=","\n tabindex=","\n />\n <slot></slot>"])),this.templateIcon(),vi(this.inputElementRef),(0,ji.H)(n),this.type,(0,b.J)(this.enterKeyHint),this.disabled,this.placeholder,this.dispatchInputChangeEvent.bind(this),this.value||"",(0,b.J)(this.tabIdx))}templateIcon(){return this.icon?(0,f.qy)(zi||(zi=(0,o.A)(["<wui-icon\n data-input=","\n size=",'\n color="inherit"\n name=',"\n ></wui-icon>"])),this.size,this.size,this.icon):null}dispatchInputChangeEvent(){var t;this.dispatchEvent(new CustomEvent("inputChange",{detail:null===(t=this.inputElementRef.value)||void 0===t?void 0:t.value,bubbles:!0,composed:!0}))}};var Di;Ni.styles=[m.W5,m.fD,qi],Bi([(0,v.MZ)()],Ni.prototype,"size",void 0),Bi([(0,v.MZ)()],Ni.prototype,"icon",void 0),Bi([(0,v.MZ)({type:Boolean})],Ni.prototype,"disabled",void 0),Bi([(0,v.MZ)()],Ni.prototype,"placeholder",void 0),Bi([(0,v.MZ)()],Ni.prototype,"type",void 0),Bi([(0,v.MZ)()],Ni.prototype,"keyHint",void 0),Bi([(0,v.MZ)()],Ni.prototype,"value",void 0),Bi([(0,v.MZ)()],Ni.prototype,"inputRightPadding",void 0),Bi([(0,v.MZ)()],Ni.prototype,"tabIdx",void 0),Ni=Bi([(0,y.E)("wui-input-text")],Ni);const Zi=(0,f.AH)(Di||(Di=(0,o.A)(["\n :host {\n position: relative;\n display: inline-block;\n width: 100%;\n }\n"])));var Ui,Hi=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Fi=class extends f.WF{constructor(){super(...arguments),this.inputComponentRef=wi()}render(){return(0,f.qy)(Ui||(Ui=(0,o.A)(["\n <wui-input-text\n ",'\n placeholder="Search wallet"\n icon="search"\n type="search"\n enterKeyHint="search"\n size="sm"\n >\n <wui-input-element @click=',' icon="close"></wui-input-element>\n </wui-input-text>\n '])),vi(this.inputComponentRef),this.clearValue)}clearValue(){const t=this.inputComponentRef.value,e=null===t||void 0===t?void 0:t.inputElementRef.value;e&&(e.value="",e.focus(),e.dispatchEvent(new Event("input")))}};var Ji;Fi.styles=[m.W5,Zi],Fi=Hi([(0,y.E)("wui-search-bar")],Fi);const _i=(0,f.JW)(Ji||(Ji=(0,o.A)(['<svg viewBox="0 0 48 54" fill="none">\n <path\n d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z"\n />\n</svg>'])));var Ki;const Vi=(0,f.AH)(Ki||(Ki=(0,o.A)(["\n :host {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 104px;\n row-gap: var(--wui-spacing-xs);\n padding: var(--wui-spacing-xs) 10px;\n background-color: var(--wui-color-gray-glass-002);\n border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);\n position: relative;\n }\n\n wui-shimmer[data-type='network'] {\n border: none;\n -webkit-clip-path: var(--wui-path-network);\n clip-path: var(--wui-path-network);\n }\n\n svg {\n position: absolute;\n width: 48px;\n height: 54px;\n z-index: 1;\n }\n\n svg > path {\n stroke: var(--wui-color-gray-glass-010);\n stroke-width: 1px;\n }\n\n @media (max-width: 350px) {\n :host {\n width: 100%;\n }\n }\n"])));var Yi,Gi,$i,Xi=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Qi=class extends f.WF{constructor(){super(...arguments),this.type="wallet"}render(){return(0,f.qy)(Yi||(Yi=(0,o.A)(["\n ",'\n <wui-shimmer width="56px" height="20px" borderRadius="xs"></wui-shimmer>\n '])),this.shimmerTemplate())}shimmerTemplate(){return"network"===this.type?(0,f.qy)(Gi||(Gi=(0,o.A)([" <wui-shimmer\n data-type=",'\n width="48px"\n height="54px"\n borderRadius="xs"\n ></wui-shimmer>\n ',""])),this.type,_i):(0,f.qy)($i||($i=(0,o.A)(['<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>'])))}};Qi.styles=[m.W5,m.fD,Vi],Xi([(0,v.MZ)()],Qi.prototype,"type",void 0),Qi=Xi([(0,y.E)("wui-card-select-loader")],Qi);var to,eo=n(31419);const no=(0,f.AH)(to||(to=(0,o.A)(["\n :host {\n display: grid;\n width: inherit;\n height: inherit;\n }\n"])));var io,oo=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let ro=class extends f.WF{render(){return this.style.cssText="\n grid-template-rows: ".concat(this.gridTemplateRows,";\n grid-template-columns: ").concat(this.gridTemplateColumns,";\n justify-items: ").concat(this.justifyItems,";\n align-items: ").concat(this.alignItems,";\n justify-content: ").concat(this.justifyContent,";\n align-content: ").concat(this.alignContent,";\n column-gap: ").concat(this.columnGap&&"var(--wui-spacing-".concat(this.columnGap,")"),";\n row-gap: ").concat(this.rowGap&&"var(--wui-spacing-".concat(this.rowGap,")"),";\n gap: ").concat(this.gap&&"var(--wui-spacing-".concat(this.gap,")"),";\n padding-top: ").concat(this.padding&&eo.Z.getSpacingStyles(this.padding,0),";\n padding-right: ").concat(this.padding&&eo.Z.getSpacingStyles(this.padding,1),";\n padding-bottom: ").concat(this.padding&&eo.Z.getSpacingStyles(this.padding,2),";\n padding-left: ").concat(this.padding&&eo.Z.getSpacingStyles(this.padding,3),";\n margin-top: ").concat(this.margin&&eo.Z.getSpacingStyles(this.margin,
20),";\n margin-right: ").concat(this.margin&&eo.Z.getSpacingStyles(this.margin,1),";\n margin-bottom: ").concat(this.margin&&eo.Z.getSpacingStyles(this.margin,2),";\n margin-left: ").concat(this.margin&&eo.Z.getSpacingStyles(this.margin,3),";\n "),(0,f.qy)(io||(io=(0,o.A)(["<slot></slot>"])))}};var ao;ro.styles=[m.W5,no],oo([(0,v.MZ)()],ro.prototype,"gridTemplateRows",void 0),oo([(0,v.MZ)()],ro.prototype,"gridTemplateColumns",void 0),oo([(0,v.MZ)()],ro.prototype,"justifyItems",void 0),oo([(0,v.MZ)()],ro.prototype,"alignItems",void 0),oo([(0,v.MZ)()],ro.prototype,"justifyContent",void 0),oo([(0,v.MZ)()],ro.prototype,"alignContent",void 0),oo([(0,v.MZ)()],ro.prototype,"columnGap",void 0),oo([(0,v.MZ)()],ro.prototype,"rowGap",void 0),oo([(0,v.MZ)()],ro.prototype,"gap",void 0),oo([(0,v.MZ)()],ro.prototype,"padding",void 0),oo([(0,v.MZ)()],ro.prototype,"margin",void 0),ro=oo([(0,y.E)("wui-grid")],ro);const so=(0,r.AH)(ao||(ao=(0,o.A)(["\n button {\n display: flex;\n flex-direction: column;\n justify-content: center;
2\n align-items: center;\n cursor: pointer;\n width: 104px;\n row-gap: var(--wui-spacing-xs);\n padding: var(--wui-spacing-s) var(--wui-spacing-0);\n background-color: var(--wui-color-gray-glass-002);\n border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);\n transition:\n color var(--wui-duration-lg) var(--wui-ease-out-power-1),\n background-color var(--wui-duration-lg) var(--wui-ease-out-power-1),\n border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1);\n will-change: background-color, color, border-radius;\n outline: none;\n border: none;\n }\n\n button > wui-flex > wui-text {\n color: var(--wui-color-fg-100);\n max-width: 86px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n justify-content: center;\n }\n\n button > wui-flex > wui-text.certified {\n max-width: 66px;\n }\n\n button:hover:enabled {\n background-color: var(--wui-color-gray-glass-005);\n }\n\n button:disabled > wui-flex > wui-text {\n color: var(--wui-color-gray-glass-015);\n }\n\n [data-selected='true'] {\n background-color: var(--wui-color-accent-glass-020);\n }\n\n @media (hover: hover) and (pointer: fine) {\n [data-selected='true']:hover:enabled {\n background-color: var(--wui-color-accent-glass-015);\n }\n }\n\n [data-selected='true']:active:enabled {\n background-color: var(--wui-color-accent-glass-010);\n }\n\n @media (max-width: 350px) {\n button {\n width: 100%;\n }\n }\n"])));var lo,co,uo,ho,po=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let wo=class extends r.WF{constructor(){super(),this.observer=new IntersectionObserver(()=>{}),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.wallet=void 0,this.observer=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting?(this.visible=!0,this.fetchImageSrc()):this.visible=!1})},{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){var t,e;const n="certified"===(null===(t=this.wallet)||void 0===t?void 0:t.badge_type);return(0,r.qy)(lo||(lo=(0,o.A)(["\n <button>\n ",'\n <wui-flex flexDirection="row" alignItems="center" justifyContent="center" gap="3xs">\n <wui-text\n variant="tiny-500"\n color="inherit"\n class=',"\n >","</wui-text\n >\n ","\n </wui-flex>\n </button>\n "])),this.imageTemplate(),(0,h.J)(n?"certified":void 0),null===(e=this.wallet)||void 0===e?void 0:e.name,n?(0,r.qy)(co||(co=(0,o.A)(['<wui-icon size="sm" name="walletConnectBrown"></wui-icon>']))):null)}imageTemplate(){var t,e;return!this.visible&&!this.imageSrc||this.imageLoading?this.shimmerTemplate():(0,r.qy)(uo||(uo=(0,o.A)(['\n <wui-wallet-image\n size="md"\n imageSrc=',"\n name=","\n .installed=",'\n badgeSize="sm"\n >\n </wui-wallet-image>\n '])),(0,h.J)(this.imageSrc),null===(t=this.wallet)||void 0===t?void 0:t.name,null===(e=this.wallet)||void 0===e?void 0:e.installed)}shimmerTemplate(){return(0,r.qy)(ho||(ho=(0,o.A)(['<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>'])))}async fetchImageSrc(){this.wallet&&(this.imageSrc=X.$.getWalletImage(this.wallet),this.imageSrc||(this.imageLoading=!0,this.imageSrc=await X.$.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}};var go;wo.styles=so,po([(0,a.wk)()],wo.prototype,"visible",void 0),po([(0,a.wk)()],wo.prototype,"imageSrc",void 0),po([(0,a.wk)()],wo.prototype,"imageLoading",void 0),po([(0,a.MZ)()],wo.prototype,"wallet",void 0),wo=po([(0,u.EM)("w3m-all-wallets-list-item")],wo);const fo=(0,r.AH)(go||(go=(0,o.A)(["\n wui-grid {\n max-height: clamp(360px, 400px, 80vh);\n overflow: scroll;\n scrollbar-width: none;\n grid-auto-rows: min-content;\n grid-template-columns: repeat(auto-fill, 104px);\n }\n\n @media (max-width: 350px) {\n wui-grid {\n grid-template-columns: repeat(2, 1fr);\n }\n }\n\n wui-grid[data-scroll='false'] {\n overflow: hidden;\n }\n\n wui-grid::-webkit-scrollbar {\n display: none;\n }\n\n wui-loading-spinner {\n padding-top: var(--wui-spacing-l);\n padding-bottom: var(--wui-spacing-l);\n justify-content: center;\n grid-column: 1 / span 4;\n }\n"])));var vo,bo,mo,yo=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};const xo="local-paginator";
2let ko=class extends r.WF{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.loading=!l.N.state.wallets.length,this.wallets=l.N.state.wallets,this.recommended=l.N.state.recommended,this.featured=l.N.state.featured,this.filteredWallets=l.N.state.filteredWallets,this.unsubscribe.push(l.N.subscribeKey("wallets",t=>this.wallets=t),l.N.subscribeKey("recommended",t=>this.recommended=t),l.N.subscribeKey("featured",t=>this.featured=t),l.N.subscribeKey("filteredWallets",t=>this.filteredWallets=t))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){var t;this.unsubscribe.forEach(t=>t()),null===(t=this.paginationObserver)||void 0===t||t.disconnect()}render(){return(0,r.qy)(vo||(vo=(0,o.A)(["\n <wui-grid\n data-scroll=","\n .padding=",'\n columnGap="xxs"\n rowGap="l"\n justifyContent="space-between"\n >\n ',"\n ","\n </wui-grid>\n "])),!this.loading,["0","s","s","s"],this.loading?this.shimmerTemplate(16):this.walletsTemplate(),this.paginationLoaderTemplate())}async initialFetch(){var t;this.loading=!0;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("wui-grid");e&&(await l.N.fetchWalletsByPage({page:1}),await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.loading=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(t,e){return[...Array(t)].map(()=>(0,r.qy)(bo||(bo=(0,o.A)(['\n <wui-card-select-loader type="wallet" id=',"></wui-card-select-loader>\n "])),(0,h.J)(e)))}walletsTemplate(){var t;const e=(null===(t=this.filteredWallets)||void 0===t?void 0:t.length)>0?s.w.uniqueBy([...this.featured,...this.recommended,...this.filteredWallets],"id"):s.w.uniqueBy([...this.featured,...this.recommended,...this.wallets],"id");return It.A.markWalletsAsInstalled(e).map(t=>(0,r.qy)(mo||(mo=(0,o.A)(["\n <w3m-all-wallets-list-item\n @click=","\n .wallet=","\n ></w3m-all-wallets-list-item>\n "])),()=>this.onConnectWallet(t),t))}paginationLoaderTemplate(){const{wallets:t,recommended:e,featured:n,count:i}=l.N.state,o=window.innerWidth<352?3:4,r=t.length+e.length;let a=Math.ceil(r/o)*o-r+o;return a-=t.length?n.length%o:0,0===i&&n.length>0?null:0===i||[...n,...t,...e].length<i?this.shimmerTemplate(a,xo):null}createPaginationObserver(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#".concat(xo));e&&(this.paginationObserver=new IntersectionObserver(t=>{let[e]=t;if(null!==e&&void 0!==e&&e.isIntersecting&&!this.loading){const{page:t,count:e,wallets:n}=l.N.state;n.length<e&&l.N.fetchWalletsByPage({page:t+1})}}),this.paginationObserver.observe(e))}onConnectWallet(t){p.a.selectWalletConnector(t)}};var Co;ko.styles=fo,yo([(0,a.wk)()],ko.prototype,"loading",void 0),yo([(0,a.wk)()],ko.prototype,"wallets",void 0),yo([(0,a.wk)()],ko.prototype,"recommended",void 0),yo([(0,a.wk)()],ko.prototype,"featured",void 0),yo([(0,a.wk)()],ko.prototype,"filteredWallets",void 0),ko=yo([(0,u.EM)("w3m-all-wallets-list")],ko);const Ao=(0,r.AH)(Co||(Co=(0,o.A)(["\n wui-grid,\n wui-loading-spinner,\n wui-flex {\n height: 360px;\n }\n\n wui-grid {\n overflow: scroll;\n scrollbar-width: none;\n grid-auto-rows: min-content;\n grid-template-columns: repeat(auto-fill, 104px);\n }\n\n wui-grid[data-scroll='false'] {\n overflow: hidden;\n }\n\n wui-grid::-webkit-scrollbar {\n display: none;\n }\n\n wui-loading-spinner {\n justify-content: center;
2\n align-items: center;\n }\n\n @media (max-width: 350px) {\n wui-grid {\n grid-template-columns: repeat(2, 1fr);\n }\n }\n"])));var Ro,Eo,Io,Mo,To=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Wo=class extends r.WF{constructor(){super(...arguments),this.prevQuery="",this.prevBadge=void 0,this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?(0,r.qy)(Ro||(Ro=(0,o.A)(['<wui-loading-spinner color="accent-100"></wui-loading-spinner>']))):this.walletsTemplate()}async onSearch(){this.query.trim()===this.prevQuery.trim()&&this.badge===this.prevBadge||(this.prevQuery=this.query,this.prevBadge=this.badge,this.loading=!0,await l.N.searchWallet({search:this.query,badge:this.badge}),this.loading=!1)}walletsTemplate(){const{search:t}=l.N.state,e=It.A.markWalletsAsInstalled(t);return t.length?(0,r.qy)(Io||(Io=(0,o.A)(['\n <wui-grid\n data-testid="wallet-list"\n .padding=','\n rowGap="l"\n columnGap="xs"\n justifyContent="space-between"\n >\n ',"\n </wui-grid>\n "])),["0","s","s","s"],e.map(t=>(0,r.qy)(Mo||(Mo=(0,o.A)(["\n <w3m-all-wallets-list-item\n @click=","\n .wallet=",'\n data-testid="wallet-search-item-','"\n ></w3m-all-wallets-list-item>\n '])),()=>this.onConnectWallet(t),t,t.id))):(0,r.qy)(Eo||(Eo=(0,o.A)(['\n <wui-flex\n data-testid="no-wallet-found"\n justifyContent="center"\n alignItems="center"\n gap="s"\n flexDirection="column"\n >\n <wui-icon-box\n size="lg"\n iconColor="fg-200"\n backgroundColor="fg-300"\n icon="wallet"\n background="transparent"\n ></wui-icon-box>\n <wui-text data-testid="no-wallet-found-text" color="fg-200" variant="paragraph-500">\n No Wallet found\n </wui-text>\n </wui-flex>\n '])))}onConnectWallet(t){p.a.selectWalletConnector(t)}};var Po,So,Oo,jo;Wo.styles=Ao,To([(0,a.wk)()],Wo.prototype,"loading",void 0),To([(0,a.MZ)()],Wo.prototype,"query",void 0),To([(0,a.MZ)()],Wo.prototype,"badge",void 0),Wo=To([(0,u.EM)("w3m-all-wallets-search")],Wo);var qo=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Lo=class extends r.WF{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=s.w.debounce(t=>{this.search=t})}render(){const t=this.search.length>=2;return(0,r.qy)(Po||(Po=(0,o.A)(["\n <wui-flex .padding=",' gap="xs">\n <wui-search-bar @inputChange=',"></wui-search-bar>\n <wui-certified-switch\n ?checked=","\n @click=",'\n data-testid="wui-certified-switch"\n ></wui-certified-switch>\n ',"\n </wui-flex>\n ","\n "])),["0","s","s","s"],this.onInputChange.bind(this),this.badge,this.onClick.bind(this),this.qrButtonTemplate(),t||this.badge?(0,r.qy)(So||(So=(0,o.A)(["<w3m-all-wallets-search\n query=","\n badge=","\n ></w3m-all-wallets-search>"])),this.search,(0,h.J)(this.badge)):(0,r.qy)(Oo||(Oo=(0,o.A)(["<w3m-all-wallets-list badge=","></w3m-all-wallets-list>"])),(0,h.J)(this.badge)))}onInputChange(t){this.onDebouncedSearch(t.detail)}onClick(){"certified"!==this.badge?(this.badge="certified",ee.P.showSvg("Only WalletConnect certified",{icon:"walletConnectBrown",iconColor:"accent-100"})):this.badge=void 0}qrButtonTemplate(){return s.w.isMobile()?(0,r.qy)(jo||(jo=(0,o.A)(['\n <wui-icon-box\n size="lg"\n iconSize="xl"\n iconColor="accent-100"\n backgroundColor="accent-100"\n icon="qrCode"\n background="transparent"\n border\n borderColor="wui-accent-glass-010"\n @click=',"\n ></wui-icon-box>\n "])),this.onWalletConnectQr.bind(this)):null}onWalletConnectQr(){g.I.push("ConnectingWalletConnect")}};var zo;qo([(0,a.wk)()],Lo.prototype,"search",void 0),qo([(0,a.wk)()],Lo.prototype,"badge",void 0),Lo=qo([(0,u.EM)("w3m-all-wallets-view")],Lo);const Bo=(0,f.AH)(zo||(zo=(0,o.A)(["\n button {\n column-gap: var(--wui-spacing-s);\n padding: 11px 18px 11px var(--wui-spacing-s);\n width: 100%;\n background-color: var(--wui-color-gray-glass-002);\n border-radius: var(--wui-border-radius-xs);\n color: var(--wui-color-fg-250);\n transition:\n color var(--wui-ease-out-power-1) var(--wui-duration-md),\n background-color var(--wui-ease-out-power-1) var(--wui-duration-md);\n will-change: color, background-color;\n }\n\n button[data-iconvariant='square'],\n button[data-iconvariant='square-blue'] {\n padding: 6px 18px 6px 9px;\n }\n\n button > wui-flex {\n flex: 1;\n }\n\n button > wui-image {\n width: 32px;\n height: 32px;\n box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);\n border-radius: var(--wui-border-radius-3xl);\n }\n\n button > wui-icon {\n width: 36px;\n height: 36px;\n transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);\n will-change: opacity;\n }\n\n button > wui-icon-box[data-variant='blue'] {\n box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005);\n }\n\n button > wui-icon-box[data-variant='overlay'] {\n box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);\n }\n\n button > wui-icon-box[data-variant='square-blue'] {\n border-radius: var(--wui-border-radius-3xs);\n position: relative;\n border: none;\n width: 36px;\n height: 36px;\n }\n\n button > wui-icon-box[data-variant='square-blue']::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n border-radius: inherit;\n border: 1px solid var(--wui-color-accent-glass-010);\n pointer-events: none;\n }\n\n button > wui-icon:last-child {\n width: 14px;\n height: 14px;\n }\n\n button:disabled {\n color: var(--wui-color-gray-glass-020);\n }\n\n button[data-loading='true'] > wui-icon {\n opacity: 0;\n }\n\n wui-loading-spinner {\n position: absolute;\n right: 18px;\n top: 50%;\n transform: translateY(-50%);\n }\n"])));var No,Do,Zo,Uo,Ho,Fo,Jo,_o=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let Ko=class extends f.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.variant="icon",this.disabled=!1,this.imageSrc=void 0,this.alt=void 0,this.chevron=!1,this.loading=!1}render(){return(0,f.qy)(No||(No=(0,o.A)(["\n <button\n ?disabled=","\n data-loading=","\n data-iconvariant=","\n tabindex=","\n >\n "," ",'\n <wui-flex gap="3xs">\n <slot></slot>\n </wui-flex>\n ',"\n </button>\n "])),!!this.loading||Boolean(this.disabled),this.loading,(0,b.J)(this.iconVariant),(0,b.J)(this.tabIdx),this.loadingTemplate(),this.visualTemplate(),this.chevronTemplate())}visualTemplate(){var t;if("image"===this.variant&&this.imageSrc)return(0,f.qy)(Do||(Do=(0,o.A)(["<wui-image src="," alt=","></wui-image>"])),this.imageSrc,null!==(t=this.alt)&&void 0!==t?t:"list item");if("square"===this.iconVariant&&this.icon&&"icon"===this.variant)return(0,f.qy)(Zo||(Zo=(0,o.A)(["<wui-icon name=","></wui-icon>"])),this.icon);if("icon"===this.variant&&this.icon&&this.iconVariant){const t=["blue","square-blue"].includes(this.iconVariant)?"accent-100":"fg-200",e="square-blue"===this.iconVariant?"mdl":"md",n=this.iconSize?this.iconSize:e;return(0,f.qy)(Uo||(Uo=(0,o.A)(["\n <wui-icon-box\n data-variant=","\n icon=","\n iconSize=",'\n background="transparent"\n iconColor=',"\n backgroundColor=","\n size=","\n ></wui-icon-box>\n "])),this.iconVariant,this.icon,n,t,t,e)}return null}loadingTemplate(){return this.loading?(0,f.qy)(Ho||(Ho=(0,o.A)(['<wui-loading-spinner\n data-testid="wui-list-item-loading-spinner"\n color="fg-300"\n ></wui-loading-spinner>']))):(0,f.qy)(Fo||(Fo=(0,o.A)([""])))}chevronTemplate(){return this.chevron?(0,f.qy)(Jo||(Jo=(0,o.A)(['<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>']))):null}};var Vo,Yo,Go,$o,Xo;Ko.styles=[m.W5,m.fD,Bo],_o([(0,v.MZ)()],Ko.prototype,"icon",void 0),_o([(0,v.MZ)()],Ko.prototype,"iconSize",void 0),_o([(0,v.MZ)()],Ko.prototype,"tabIdx",void 0),_o([(0,v.MZ)()],Ko.prototype,"variant",void 0),_o([(0,v.MZ)()],Ko.prototype,"iconVariant",void 0),_o([(0,v.MZ)({type:Boolean})],Ko.prototype,"disabled",void 0),_o([(0,v.MZ)()],Ko.prototype,"imageSrc",void 0),_o([(0,v.MZ)()],Ko.prototype,"alt",void 0),_o([(0,v.MZ)({type:Boolean})],Ko.prototype,"chevron",void 0),_o([(0,v.MZ)({type:Boolean})],Ko.prototype,"loading",void 0),Ko=_o([(0,y.E)("wui-list-item")],Ko);var Qo=function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};let tr=class extends r.WF{constructor(){var t;super(...arguments),this.wallet=null===(t=g.I.state.data)||void 0===t?void 0:t.wallet}
2render(){if(!this.wallet)throw new Error("w3m-downloads-view");return(0,r.qy)(Vo||(Vo=(0,o.A)(['\n <wui-flex gap="xs" flexDirection="column" .padding=',">\n "," "," ","\n ","\n </wui-flex>\n "])),["s","s","l","s"],this.chromeTemplate(),this.iosTemplate(),this.androidTemplate(),this.homepageTemplate())}chromeTemplate(){var t;return null!==(t=this.wallet)&&void 0!==t&&t.chrome_store?(0,r.qy)(Yo||(Yo=(0,o.A)(['<wui-list-item\n variant="icon"\n icon="chromeStore"\n iconVariant="square"\n @click=','\n chevron\n >\n <wui-text variant="paragraph-500" color="fg-100">Chrome Extension</wui-text>\n </wui-list-item>'])),this.onChromeStore.bind(this)):null}iosTemplate(){var t;return null!==(t=this.wallet)&&void 0!==t&&t.app_store?(0,r.qy)(Go||(Go=(0,o.A)(['<wui-list-item\n variant="icon"\n icon="appStore"\n iconVariant="square"\n @click=','\n chevron\n >\n <wui-text variant="paragraph-500" color="fg-100">iOS App</wui-text>\n </wui-list-item>'])),this.onAppStore.bind(this)):null}androidTemplate(){var t;return null!==(t=this.wallet)&&void 0!==t&&t.play_store?(0,r.qy)($o||($o=(0,o.A)(['<wui-list-item\n variant="icon"\n icon="playStore"\n iconVariant="square"\n @click=','\n chevron\n >\n <wui-text variant="paragraph-500" color="fg-100">Android App</wui-text>\n </wui-list-item>'])),this.onPlayStore.bind(this)):null}homepageTemplate(){var t;return null!==(t=this.wallet)&&void 0!==t&&t.homepage?(0,r.qy)(Xo||(Xo=(0,o.A)(['\n <wui-list-item\n variant="icon"\n icon="browser"\n iconVariant="square-blue"\n @click=','\n chevron\n >\n <wui-text variant="paragraph-500" color="fg-100">Website</wui-text>\n </wui-list-item>\n '])),this.onHomePage.bind(this)):null}onChromeStore(){var t;null!==(t=this.wallet)&&void 0!==t&&t.chrome_store&&s.w.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){var t;null!==(t=this.wallet)&&void 0!==t&&t.app_store&&s.w.openHref(this.wallet.app_store,"_blank")}onPlayStore(){var t;null!==(t=this.wallet)&&void 0!==t&&t.play_store&&s.w.openHref(this.wallet.play_store,"_blank")}onHomePage(){var t;null!==(t=this.wallet)&&void 0!==t&&t.homepage&&s.w.openHref(this.wallet.homepage,"_blank")}};tr=Qo([(0,u.EM)("w3m-downloads-view")],tr)}}]); 3//# sourceMappingURL=5.069d5e5d.chunk.js.map
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.