1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1362],{23632:function(e,t,n){"use strict";n.d(t,{A7:function(){return M},DS:function(){return d},Gj:function(){return R},H3:function(){return y},KT:function(){return H},Kb:function(){return U},L_:function(){return W},OG:function(){return S},Pt:function(){return _},QM:function(){return h},VQ:function(){return m},ZV:function(){return E},Zr:function(){return b},_W:function(){return l},bZ:function(){return A},eC:function(){return x},eP:function(){return q},ek:function(){return f},eu:function(){return v},fU:function(){return L},gy:function(){return I},ii:function(){return g},kh:function(){return u},ly:function(){return w},oL:function(){return D},oO:function(){return p},pF:function(){return C},w3:function(){return P},wL:function(){return B},xb:function(){return F},y$:function(){return k},zH:function(){return T}});var r=n(13869),o=n.n(r),i=n(63087),s=n.n(i),c=n(9109).Buffer;let a="utf8";function l(e){return new Uint8Array(e)}function u(e,t=!1){let n=e.toString("hex");return t?W(n):n}function _(e){return e.toString(a)}function d(e){return e.readUIntBE(0,e.length)}function h(e){return s()(e)}function f(e,t=!1){return u(h(e),t)}function p(e){return _(h(e))}function m(e){return d(h(e))}function g(e){return c.from(H(e),"hex")}function v(e){return l(g(e))}function y(e){return _(g(e))}function w(e){return m(v(e))}function b(e){return c.from(e,a)}function E(e){return l(b(e))}function S(e,t=!1){return u(b(e),t)}function C(e){let t=parseInt(e,10);return function(e,t){if(!e)throw Error(t)}(void 0!==t,"Number can only safely store up to 53 bits"),t}function k(e){return h(N(O(e)))}function R(e){return N(O(e))}function x(e,t){return f(N(O(e)),t)}function I(e){return`${e}`}function O(e){return j((e>>>0).toString(2))}function N(e){return new Uint8Array((function(e,t=8){return Array.from(j(e).match(RegExp(`.{${t}}`,"gi"))||[])})(e).map(e=>parseInt(e,2)))}function M(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}function T(e){return c.isBuffer(e)}function L(e){return o().strict(e)&&!T(e)}function q(e){return!L(e)&&!T(e)&&void 0!==e.byteLength}function D(e){return T(e)?"buffer":L(e)?"typed-array":q(e)?"array-buffer":Array.isArray(e)?"array":typeof e}function A(e){return"string"==typeof e&&new RegExp(/^[01]+$/).test(e)&&e.length%8==0?"binary":M(e)?"hex":a}function U(...e){return c.concat(e)}function P(...e){let t=[];return e.forEach(e=>t=t.concat(Array.from(e))),new Uint8Array([...t])}function j(e,t=8,n="0"){return function(e,t,n="0"){return function(e,t,n,r="0"){let o=t-e.length,i=e;if(o>0){let t=r.repeat(o);i=n?t+e:e+t}return i}(e,t,!0,n)}(e,function(e,t=8){let n=e%t;return n?(e-n)/t*t+t:e}(e.length,t),n)}function H(e){return e.replace(/^0x/,"")}function W(e){return e.startsWith("0x")?e:`0x${e}`}function F(e){return(e=j(e=H(e),2))&&(e=W(e)),e}function B(e){let t=e.startsWith("0x");return e=(e=H(e)).startsWith("0")?e.substring(1):e,t?W(e):e}},41346:function(e,t,n){var r=n(25566);function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(2123),s=o(n(19783)),c=o(n(80042)),a=n(21936);"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var l="walletconnect-wrapper",u="walletconnect-style-sheet",_="walletconnect-qrcode-modal",d="walletconnect-qrcode-text";function h(e){return a.createElement("div",{className:"walletconnect-modal__header"},a.createElement("img",{src:"data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='300px' height='185px' viewBox='0 0 300 185' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch --%3E %3Ctitle%3EWalletConnect%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cdefs%3E%3C/defs%3E %3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='walletconnect-logo-alt' fill='%233B99FC' fill-rule='nonzero'%3E %3Cpath d='M61.4385429,36.2562612 C110.349767,-11.6319051 189.65053,-11.6319051 238.561752,36.2562612 L244.448297,42.0196786 C246.893858,44.4140867 246.893858,48.2961898 244.448297,50.690599 L224.311602,70.406102 C223.088821,71.6033071 221.106302,71.6033071 219.883521,70.406102 L211.782937,62.4749541 C177.661245,29.0669724 122.339051,29.0669724 88.2173582,62.4749541 L79.542302,70.9685592 C78.3195204,72.1657633 76.337001,72.1657633 75.1142214,70.9685592 L54.9775265,51.2530561 C52.5319653,48.8586469 52.5319653,44.9765439 54.9775265,42.5821357 L61.4385429,36.2562612 Z M280.206339,77.0300061 L298.128036,94.5769031 C300.573585,96.9713 300.573599,100.85338 298.128067,103.247793 L217.317896,182.368927 C214.872352,184.763353 210.9
107314,184.76338 208.461736,182.368989 C208.461726,182.368979 208.461714,182.368967 208.461704,182.368957 L151.107561,126.214385 C150.496171,125.615783 149.504911,125.615783 148.893521,126.214385 C148.893517,126.214389 148.893514,126.214393 148.89351,126.214396 L91.5405888,182.368927 C89.095052,184.763359 85.1300133,184.763399 82.6844276,182.369014 C82.6844133,182.369 82.684398,182.368986 82.6843827,182.36897 L1.87196327,103.246785 C-0.573596939,100.852377 -0.573596939,96.9702735 1.87196327,94.5758653 L19.7936929,77.028998 C22.2392531,74.6345898 26.2042918,74.6345898 28.6498531,77.028998 L86.0048306,133.184355 C86.6162214,133.782957 87.6074796,133.782957 88.2188704,133.184355 C88.2188796,133.184346 88.2188878,133.184338 88.2188969,133.184331 L145.571,77.028998 C148.016505,74.6345347 151.981544,74.6344449 154.427161,77.028798 C154.427195,77.0288316 154.427229,77.0288653 154.427262,77.028899 L211.782164,133.184331 C212.393554,133.782932 213.384814,133.782932 213.996204,133.184331 L271.350179,77.0300061 C273.79574,74.6355969 277.760778,74.6355969 280.206339,77.0300061 Z' id='WalletConnect'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E",className:"walletconnect-modal__headerLogo"}),a.createElement("p",null,"WalletConnect"),a.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:e.onClose},a.createElement("div",{id:"walletconnect-qrcode-close",className:"walletconnect-modal__close__icon"},a.createElement("div",{className:"walletconnect-modal__close__line1"}),a.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function f(e){return a.createElement("a",{className:"walletconnect-connect__button",href:e.href,id:"walletconnect-connect-button-"+e.name,onClick:e.onClick,rel:"noopener noreferrer",style:{backgroundColor:e.color},target:"_blank"},e.name)}function p(e){var t=e.color,n=e.href,r=e.name,o=e.logo,i=e.onClick;return a.createElement("a",{className:"walletconnect-modal__base__row",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},a.createElement("h3",{className:"walletconnect-modal__base__row__h3"},r),a.createElement("div",{className:"walletconnect-modal__base__row__right"},a.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+o+"') "+t,backgroundSize:"100%"}}),a.createElement("img",{src:"data:image/svg+xml,%3Csvg width='8' height='18' viewBox='0 0 8 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.586301 0.213898C0.150354 0.552968 0.0718197 1.18124 0.41089 1.61719L5.2892 7.88931C5.57007 8.25042 5.57007 8.75608 5.2892 9.11719L0.410889 15.3893C0.071819 15.8253 0.150353 16.4535 0.586301 16.7926C1.02225 17.1317 1.65052 17.0531 1.98959 16.6172L6.86791 10.3451C7.7105 9.26174 7.7105 7.74476 6.86791 6.66143L1.98959 0.38931C1.65052 -0.0466374 1.02225 -0.125172 0.586301 0.213898Z' fill='%233C4252'/%3E %3C/svg%3E",className:"walletconnect-modal__base__row__right__caret"})))}function m(e){var t=e.color,n=e.href,r=e.name,o=e.logo,i=e.onClick,s=window.innerWidth<768?(r.length>8?2.5:2.7)+"vw":"inherit";return a.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},a.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+o+"') "+t,backgroundSize:"100%"}}),a.createElement("div",{style:{fontSize:s},className:"walletconnect-connect__button__text"},r))}function g(e){var t=i.isAndroid(),n=a.useState(""),r=n[0],o=n[1],s=a.useState(""),c=s[0],l=s[1],u=a.useState(1),_=u[0],h=u[1],g=c?e.links.filter(function(e){return e.name.toLowerCase().includes(c.toLowerCase())}):e.links,v=e.errorMessage,y=c||g.length>5,w=Math.ceil(g.length/12),b=[(_-1)*12+1,12*_],E=g.length?g.filter(function(e,t){return t+1>=b[0]&&t+1<=b[1]}):[],S=void 0;return a.createElement("div",null,a.createElement("p",{id:d,className:"walletconnect-qrcode__text"},t?e.text.connect_mobile_wallet:e.text.choose_preferred_wallet),!t&&a.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:function(e){o(e.target.value),clearTimeout(S),e.target.value?S=setTimeout(function(){l(e.target.value),h(1)},1e3):(o(""),l(""),h(1))}}),a.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(t?"__android":y&&g.length?"__wrap":"")},t?a.createElement(f,{name:e.text.connect,color:"rgb(64, 153, 255)",href:e.uri,onClick:a.useCallback(function(){i.saveMobileLinkInfo({name:"Unknown",href:e.uri})},[])}):E.length?E.map(function(t){var n=t.color,r=t.name,o=t.shortName,s=t.logo,c=i.formatIOSMobile(e.uri,t),l=a.useCallback(function(){i.saveMobileLinkInfo({name:r,href:c})},[E]);return y?a.createElement(m,{color:n,href:c,name:o||r,logo:s,onClick:l}):a.createElement(p,{color:n,href:c,name:r,logo:s,onClick:l})}):a.createElement(a.Fragment,null,a.createElement("p",null,v.length?e.errorMessage:e.links.length&&!g.length?e.text.no_wallets_found:e.text.loading))),!!(!t&&w>1)&&a.createElement("div",{className:"walletconnect-modal__footer"},Array(w).fill(0).map(function(e,t){var n=t+1,r=_===n;return a.createElement("a",{style:{margin:"auto 10px",fontWeight:r?"bold":"normal"},onClick:function(){return h(n)}},n)})))}function v(e){var t=!!e.message.trim();return a.createElement("div",{className:"walletconnect-qrcode__notification"+(t?" notification__show":"")},e.message)}var y=function(e){try{var t="";return Promise.resolve(s.toString(e,{margin:0,type:"svg"})).then(function(e){return"string"==typeof e&&(t=e.replace("<svg",'<svg class="walletconnect-qrcode__image"')),t})}catch(e){return Promise.reject(e)}};function w(e){var t=a.useState(""),n=t[0],r=t[1],o=a.useState(""),i=o[0],s=o[1];return a.useEffect(function(){try{return Promise.resolve(y(e.uri)).then(function(e){s(e)})}catch(e){Promise.reject(e)}},[]),a.createElement("div",null,a.createElement("p",{id:d,className:"walletconnect-qrcode__text"},e.text.scan_qrcode_with_wallet),a.createElement("div",{dangerouslySetInnerHTML:{__html:i}}),a.createElement("div",{className:"walletconnect-modal__footer"},a.createElement("a",{onClick:function(){c(e.uri)?r(e.text.copied_to_clipboard):r("Error"),setInterval(function(){return r("")},1200)}},e.text.copy_to_clipboard)),a.createElement(v,{message:n}))}function b(e){var t=i.isAndroid(),n=i.isMobile(),r=n?e.qrcodeModalOptions&&e.qrcodeModalOptions.mobileLinks?e.qrcodeModalOptions.mobileLinks:void 0:e.qrcodeModalOptions&&e.qrcodeModalOptions.desktopLinks?e.qrcodeModalOptions.desktopLinks:void 0,o=a.useState(!1),s=o[0],c=o[1],l=a.useState(!1),u=l[0],d=l[1],f=a.useState(!n),p=f[0],m=f[1],v={mobile:n,text:e.text,uri:e.ur
1i,qrcodeModalOptions:e.qrcodeModalOptions},y=a.useState(""),b=y[0],E=y[1],S=a.useState(!1),C=S[0],k=S[1],R=a.useState([]),x=R[0],I=R[1],O=a.useState(""),N=O[0],M=O[1],T=function(){u||s||r&&!r.length||x.length>0||a.useEffect(function(){!function(){try{if(t)return Promise.resolve();c(!0);var o=function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}(function(){var t=e.qrcodeModalOptions&&e.qrcodeModalOptions.registryUrl?e.qrcodeModalOptions.registryUrl:i.getWalletRegistryUrl();return Promise.resolve(fetch(t)).then(function(t){return Promise.resolve(t.json()).then(function(t){var o=t.listings,s=i.getMobileLinkRegistry(i.formatMobileRegistry(o,n?"mobile":"desktop"),r);c(!1),d(!0),M(s.length?"":e.text.no_supported_wallets),I(s);var a=1===s.length;a&&(E(i.formatIOSMobile(e.uri,s[0])),m(!0)),k(a)})})},function(t){c(!1),d(!0),M(e.text.something_went_wrong),console.error(t)});Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}()})};T();var L=n?p:!p;return a.createElement("div",{id:_,className:"walletconnect-qrcode__base animated fadeIn"},a.createElement("div",{className:"walletconnect-modal__base"},a.createElement(h,{onClose:e.onClose}),C&&p?a.createElement("div",{className:"walletconnect-modal__single_wallet"},a.createElement("a",{onClick:function(){return i.saveMobileLinkInfo({name:x[0].name,href:b})},href:b,rel:"noopener noreferrer",target:"_blank"},e.text.connect_with+" "+(C?x[0].name:"")+" âº")):t||s||!s&&x.length?a.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(L?" right__selected":"")},a.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?a.createElement(a.Fragment,null,a.createElement("a",{onClick:function(){return m(!1),T()}},e.text.mobile),a.createElement("a",{onClick:function(){return m(!0)}},e.text.qrcode)):a.createElement(a.Fragment,null,a.createElement("a",{onClick:function(){return m(!0)}},e.text.qrcode),a.createElement("a",{onClick:function(){return m(!1),T()}},e.text.desktop))):null,a.createElement("div",null,!p&&(t||s||x.length)?a.createElement(g,Object.assign({},v,{links:x,errorMessage:N})):a.createElement(w,Object.assign({},v)))))}var E={de:{choose_preferred_wallet:"W\xe4hle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterst\xfctzten Wallet",no_wallets_found:"keine Wallet gefunden"},en:{choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},es:{choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera m\xf3vil",scan_qrcode_with_wallet:"Escanea el c\xf3digo QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"C\xf3digo QR",mobile:"M\xf3vil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo sali\xf3 mal",no_supported_wallets:"Todav\xeda no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},fr:{choose_preferred_wallet:"Choisissez votre portefeuille pr\xe9f\xe9r\xe9",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copi\xe9!",connect_with:"Connectez-vous \xe0 l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourn\xe9",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouv\xe9"},ko:{choose_preferred_wallet:"ìíë ì§ê°ì ì ííì¸ì",connect_mobile_wallet:"모ë°ì¼ ì§ê°ê³¼ ì°ê²°",scan_qrcode_with_wallet:"WalletConnect ì§ì ì§ê°ìì QRì½ë를 ì¤ìºíì¸ì",connect:"ì°ê²°",qrcode:"QR ì½ë",mobile:"모ë°ì¼",desktop:"ë°ì¤í¬í",copy_to_clipboard:"í´ë¦½ë³´ëì ë³µì¬",copied_to_clipboard:"í´ë¦½ë³´ëì ë³µì¬ëììµëë¤!",connect_with:"ì ì°ê²°íë¤",loading:"ë¡ë ì¤...",something_went_wrong:"문ì ê° ë°ìíìµëë¤.",no_supported_wallets:"ìì§ ì§ìëë ì§ê°ì´ ììµëë¤",no_wallets_found:"ì§ê°ì ì°¾ì ì ììµëë¤"},pt:{choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se \xe0 carteira m\xf3vel",scan_qrcode_with_wallet:"Ler o c\xf3digo QR com uma carteira compat\xedvel com WalletConnect",connect:"Conectar",qrcode:"C\xf3digo QR",mobile:"M\xf3vel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda n\xe3o h\xe1 carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},zh:{choose_preferred_wallet:"éæ©ä½ çé±å
",connect_mobile_wallet:"è¿æ¥è³ç§»å¨ç«¯é±å
",scan_qrcode_with_wallet:"使ç¨å
¼å®¹ WalletConnect çé±å
æ«æäºç»´ç ",connect:"è¿æ¥",qrcode:"äºç»´ç ",mobile:"ç§»å¨",desktop:"æ¡é¢",copy_to_clipboard:"å¤å¶å°åªè´´æ¿",copied_to_clipboard:"å¤å¶å°åªè´´æ¿æåï¼",connect_with:"éè¿ä»¥ä¸æ¹å¼è¿æ¥",loading:"æ£å¨å è½½...",something_went_wrong:"åºäºé®é¢",no_supported_wallets:"ç®åè¿æ²¡ææ¯æçé±å
",no_wallets_found:"æ²¡ææ¾å°é±å
"},fa:{choose_preferred_wallet:"Ú©ÛÙ Ù¾ÙÙ Ù
ÙØ±Ø¯ ÙØ¸Ø± Ø®ÙØ¯ را Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯",connect_mobile_wallet:"ب٠کÛÙ Ù¾ÙÙ Ù
ÙØ¨Ø§ÛÙ ÙØµÙ Ø´ÙÛØ¯",scan_qrcode_with_wallet:"کد QR را با ÛÚ© Ú©ÛÙ Ù¾Ù٠سازگار با WalletConnect اسک٠کÙÛØ¯",connect:"اتصاÙ",qrcode:"کد QR",mobile:"Ø³ÛØ§Ø±",desktop:"دسکتاپ",copy_to_clipboard:"Ú©Ù¾Û Ø¨Ù Ú©ÙÛÙ¾ Ø¨ÙØ±Ø¯",copied_to_clipboard:"در Ú©ÙÛÙ¾ Ø¨ÙØ±Ø¯ Ú©Ù¾Û Ø´Ø¯!",connect_with:"ارتباط با",loading:"...بارگذارÛ",something_went_wrong:"Ù
Ø´Ú©ÙÛ Ù¾ÛØ´ Ø¢Ù
د",no_supported_wallets:"ÙÙÙØ² ÙÛÚ Ú©ÛÙ Ù¾ÙÙ Ù¾Ø´ØªÛØ¨Ø§ÙÛ Ø´Ø¯Ù Ø§Û ÙØ¬Ùد ÙØ¯Ø§Ø±Ø¯",no_wallets_found:"ÙÛÚ Ú©ÛÙ Ù¾ÙÙÛ Ù¾ÛØ¯Ø§ ÙØ´Ø¯"}};function S(){var e=i.getDocumentOrThrow(),t=e.getElementById(_);t&&(t.className=t.className.replace("fadeIn","fadeOut"),setTimeout(function(){var t=e.getElementById(l);t&&e.body.removeChild(t)},300))}var C=function(){return void 0!==r&&void 0!==r.versions&&void 0!==r.versions.node};e.exports={open:function(e,t,n){if(console.log(e),C())!function(e){s.toString(e,{type:"terminal"}).then(console.log)}(e);else{var r,o,c,_,d;(o=(r=i.getDocumentOrThrow()).getElementById(u))&&r.head.removeChild(o),(c=r.createElement("style")).setAttribute("id",u),c
vendor: 10,555 bytes, line 1
1.innerText=':root {\n --animation-duration: 300ms;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.animated {\n animation-duration: var(--animation-duration);\n animation-fill-mode: both;\n}\n\n.fadeIn {\n animation-name: fadeIn;\n}\n\n.fadeOut {\n animation-name: fadeOut;\n}\n\n#walletconnect-wrapper {\n -webkit-user-select: none;\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n pointer-events: none;\n position: fixed;\n top: 0;\n user-select: none;\n width: 100%;\n z-index: 99999999999999;\n}\n\n.walletconnect-modal__headerLogo {\n height: 21px;\n}\n\n.walletconnect-modal__header p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n align-items: flex-start;\n display: flex;\n flex: 1;\n margin-left: 5px;\n}\n\n.walletconnect-modal__close__wrapper {\n position: absolute;\n top: 0px;\n right: 0px;\n z-index: 10000;\n background: white;\n border-radius: 26px;\n padding: 6px;\n box-sizing: border-box;\n width: 26px;\n height: 26px;\n cursor: pointer;\n}\n\n.walletconnect-modal__close__icon {\n position: relative;\n top: 7px;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(45deg);\n}\n\n.walletconnect-modal__close__line1 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n}\n\n.walletconnect-modal__close__line2 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n transform: rotate(90deg);\n}\n\n.walletconnect-qrcode__base {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n background: rgba(37, 41, 46, 0.95);\n height: 100%;\n left: 0;\n pointer-events: auto;\n position: fixed;\n top: 0;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n width: 100%;\n will-change: opacity;\n padding: 40px;\n box-sizing: border-box;\n}\n\n.walletconnect-qrcode__text {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 10px 0 20px 0;\n text-align: center;\n width: 100%;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-qrcode__text {\n font-size: 4vw;\n }\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-qrcode__text {\n font-size: 14px;\n }\n}\n\n.walletconnect-qrcode__image {\n width: calc(100% - 30px);\n box-sizing: border-box;\n cursor: none;\n margin: 0 auto;\n}\n\n.walletconnect-qrcode__notification {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n font-size: 16px;\n padding: 16px 20px;\n border-radius: 16px;\n text-align: center;\n transition: all 0.1s ease-in-out;\n background: white;\n color: black;\n margin-bottom: -60px;\n opacity: 0;\n}\n\n.walletconnect-qrcode__notification.notification__show {\n opacity: 1;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__header {\n height: 130px;\n }\n .walletconnect-modal__base {\n overflow: auto;\n }\n}\n\n@media only screen and (min-device-width: 415px) and (max-width: 768px) {\n #content {\n max-width: 768px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 375px) and (max-width: 415px) {\n #content {\n max-width: 414px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 320px) and (max-width: 375px) {\n #content {\n max-width: 375px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (max-width: 320px) {\n #content {\n max-width: 320px;\n box-sizing: border-box;\n }\n}\n\n.walletconnect-modal__base {\n -webkit-font-smoothing: antialiased;\n background: #ffffff;\n border-radius: 24px;\n box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4);\n font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font,\n -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,\n "Open Sans", "Helvetica Neue", sans-serif;\n margin-top: 41px;\n padding: 24px 24px 22px;\n pointer-events: auto;\n position: relative;\n text-align: center;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n will-change: transform;\n overflow: visible;\n transform: translateY(-50%);\n top: 50%;\n max-width: 500px;\n margin: auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__base {\n padding: 24px 12px;\n }\n}\n\n.walletconnect-modal__base .hidden {\n transform: translateY(150%);\n transition: 0.125s cubic-bezier(0.4, 0, 1, 1);\n}\n\n.walletconnect-modal__header {\n align-items: center;\n display: flex;\n height: 26px;\n left: 0;\n justify-content: space-between;\n position: absolute;\n top: -42px;\n width: 100%;\n}\n\n.walletconnect-modal__base .wc-logo {\n align-items: center;\n display: flex;\n height: 26px;\n margin-top: 15px;\n padding-bottom: 15px;\n pointer-events: auto;\n}\n\n.walletconnect-modal__base .wc-logo div {\n background-color: #3399ff;\n height: 21px;\n margin-right: 5px;\n mask-image: url("images/wc-logo.svg") center no-repeat;\n width: 32px;\n}\n\n.walletconnect-modal__base .wc-logo p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n}\n\n.walletconnect-modal__base h2 {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 0 0 19px 0;\n text-align: center;\n width: 100%;\n}\n\n.walletconnect-modal__base__row {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n align-items: center;\n border-radius: 20px;\n cursor: pointer;\n display: flex;\n height: 56px;\n justify-content: space-between;\n padding: 0 15px;\n position: relative;\n margin: 0px 0px 8px;\n text-align: left;\n transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n will-change: transform;\n text-decoration: none;\n}\n\n.walletconnect-modal__base__row:hover {\n background: rgba(60, 66, 82, 0.06);\n}\n\n.walletconnect-modal__base__row:active {\n background: rgba(60, 66, 82, 0.06);\n transform: scale(0.975);\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.walletconnect-modal__base__row__h3 {\n color: #25292e;\n font-size: 20px;\n font-weight: 700;\n margin: 0;\n padding-bottom: 3px;\n}\n\n.walletconnect-modal__base__row__right {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n\n.walletconnect-modal__base__row__right__app-icon {\n border-radius: 8px;\n height: 34px;\n margin: 0 11px 2px 0;\n width: 34px;\n background-size: 100%;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-modal__base__row__right__caret {\n height: 18px;\n opacity: 0.3;\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n width: 8px;\n will-change: opacity;\n}\n\n.walletconnect-modal__base__row:hover .caret,\n.walletconnect-modal__base__row:active .caret {\n opacity: 0.6;\n}\n\n.walletconnect-modal__mobile__toggle {\n width: 80%;\n display: flex;\n margin: 0 auto;\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n margin-bottom: 18px;\n background: #d4d5d9;\n}\n\n.walletconnect-modal__single_wallet {\n display: flex;\n justify-content: center;\n margin-top: 7px;\n margin-bottom: 18px;\n}\n\n.walletconnect-modal__single_wallet a {\n cursor: pointer;\n color: rgb(64, 153, 255);\n font-size: 21px;\n font-weight: 800;\n text-decoration: none !important;\n margin: 0 auto;\n}\n\n.walletconnect-modal__mobile__toggle_selector {\n width: calc(50% - 8px);\n background: white;\n position: absolute;\n border-radius: 5px;\n height: calc(100% - 8px);\n top: 4px;\n transition: all 0.2s ease-in-out;\n transform: translate3d(4px, 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector {\n transform: translate3d(calc(100% + 12px), 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle a {\n font-size: 12px;\n width: 50%;\n text-align: center;\n padding: 8px;\n margin: 0;\n font-weight: 600;\n z-index: 1;\n}\n\n.walletconnect-modal__footer {\n display: flex;\n justify-content: center;\n margin-top: 20px;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__footer {\n margin-top: 5vw;\n }\n}\n\n.walletconnect-modal__footer a {\n cursor: pointer;\n color: #898d97;\n font-size: 15px;\n margin: 0 auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__footer a {\n font-size: 14px;\n }\n}\n\n.walletconnect-connect__buttons__wrapper {\n max-height: 44vh;\n}\n\n.walletconnect-connect__buttons__wrapper__android {\n margin: 50% 0;\n}\n\n.walletconnect-connect__buttons__wrapper__wrap {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n margin: 10px 0;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__buttons__wrapper__wrap {\n margin-top: 40px;\n }\n}\n\n.walletconnect-connect__button {\n background-color: rgb(64, 153, 255);\n padding: 12px;\n border-radius: 8px;\n text-decoration: none;\n color: rgb(255, 255, 255);\n font-weight: 500;\n}\n\n.walletconnect-connect__button__icon_anchor {\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: 8px;\n width: 42px;\n justify-self: center;\n flex-direction: column;\n text-decoration: none !important;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-connect__button__icon_anchor {\n margin: 4px;\n }\n}\n\n.walletconnect-connect__button__icon {\n border-radius: 10px;\n height: 42px;\n margin: 0;\n width: 42px;\n background-size: cover !important;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-connect__button__text {\n color: #424952;\n font-size: 2.7vw;\n text-decoration: none !important;\n padding: 0;\n margin-top: 1.8vw;\n font-weight: 600;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__button__text {\n font-size: 16px;\n margin-top: 12px;\n }\n}\n\n.walletconnect-search__input {\n border: none;\n background: #d4d5d9;\n border-style: none;\n padding: 8px 16px;\n outline: none;\n font-style: normal;\n font-stretch: normal;\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: normal;\n text-align: left;\n border-radius: 8px;\n width: calc(100% - 16px);\n margin: 0;\n margin-bottom: 8px;\n}\n',
1r.head.appendChild(c),(d=(_=i.getDocumentOrThrow()).createElement("div")).setAttribute("id",l),_.body.appendChild(d),a.render(a.createElement(b,{text:E[i.getNavigatorOrThrow().language.split("-")[0]||"en"]||E.en,uri:e,onClose:function(){S(),t&&t()},qrcodeModalOptions:n}),d)}},close:function(){C()||S()}}},31362:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var r={};n.r(r),n.d(r,{decrypt:function(){return M},encrypt:function(){return N},generateKey:function(){return I},verifyHmac:function(){return O}});var o=n(68885),i=n.n(o),s=n(40);class c extends s.IJsonRpcProvider{constructor(e){super(e),this.events=new o.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict((0,s.formatJsonRpcRequest)(e.method,e.params||[],e.id||(0,s.getBigIntRpcId)().toString()),t)}async requestStrict(e,t){return new Promise(async(n,r)=>{if(!this.connection.connected)try{await this.open()}catch(e){r(e)}this.events.on(`${e.id}`,e=>{(0,s.isJsonRpcError)(e)?r(e.error):n(e.result)});try{await this.connection.send(e,t)}catch(e){r(e)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),(0,s.isJsonRpcResponse)(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}var a=n(33374),l=n(95263),u=n(2123);class _{constructor(){this._eventEmitters=[],"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter(t=>t.event===e)),t.forEach(e=>{e.callback()})}}let d=void 0!==n.g.WebSocket?n.g.WebSocket:n(7035);class h{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new _,!e.url||"string"!=typeof e.url)throw Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return 0===this.readyState}set connected(e){}get connected(){return 1===this.readyState}set closing(e){}get closing(){return 2===this.readyState}set closed(e){}get closed(){return 3===this.readyState}open(){this._socketCreate()}close(){this._socketClose()}send(e,t,n){if(!t||"string"!=typeof t)throw Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n}
1)}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,t){this._events.push({event:e,callback:t})}_socketCreate(){if(this._nextSocket)return;let e=function(e,t,n){var r,o;let i=(e.startsWith("https")?e.replace("https","wss"):e.startsWith("http")?e.replace("http","ws"):e).split("?"),s=(0,u.isBrowser)()?{protocol:t,version:n,env:"browser",host:(null===(r=(0,u.getLocation)())||void 0===r?void 0:r.host)||""}:{protocol:t,version:n,env:(null===(o=(0,u.detectEnv)())||void 0===o?void 0:o.name)||""},c=(0,u.appendToQueryString)((0,u.getQueryString)(i[1]||""),s);return i[0]+"?"+c}(this._url,this._protocol,this._version);if(this._nextSocket=new d(e),!this._nextSocket)throw Error("Failed to create socket");this._nextSocket.onmessage=e=>this._socketReceive(e),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=e=>this._socketError(e),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){let t=JSON.stringify(e);this._socket&&1===this._socket.readyState?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let t;try{t=JSON.parse(e.data)}catch(e){return}if(this._socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this._socket&&1===this._socket.readyState){let e=this._events.filter(e=>"message"===e.event);e&&e.length&&e.forEach(e=>e.callback(t))}}_socketError(e){let t=this._events.filter(e=>"error"===e.event);t&&t.length&&t.forEach(t=>t.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(e=>this._queue.push({topic:e,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(e=>this._socketSend(e)),this._queue=[]}}class f{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(t=>t.event!==e)}trigger(e){let t,n=[];(t=(0,u.isJsonRpcRequest)(e)?e.method:(0,u.isJsonRpcResponseSuccess)(e)||(0,u.isJsonRpcResponseError)(e)?`response:${e.id}`:(0,u.isInternalEvent)(e)?e.event:"")&&(n=this._eventEmitters.filter(e=>e.event===t)),n&&n.length||(0,u.isReservedEvent)(t)||(0,u.isInternalEvent)(t)||(n=this._eventEmitters.filter(e=>"call_request"===e.event)),n.forEach(t=>{if((0,u.isJsonRpcResponseError)(e)){let n=Error(e.error.message);t.callback(n,null)}else t.callback(null,e)})}}class p{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null,t=(0,u.getLocal)(this.storageId);return t&&(0,u.isWalletConnectSession)(t)&&(e=t),e}setSession(e){return(0,u.setLocal)(this.storageId,e),e}removeSession(){(0,u.removeLocal)(this.storageId)}}let m="abcdefghijklmnopqrstuvwxyz0123456789".split("").map(e=>`https://${e}.bridge.walletconnect.org`);class g{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new f,this._clientMeta=(0,u.getClientMeta)()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new p(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...l.SIGNING_METHODS,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw Error(l.ERROR_MISSING_REQUIRED);if(e.connectorOpts.bridge){var t,n;this.bridge="walletconnect.org"!==(0,(0,((n=t=e.connectorOpts.bridge).indexOf("//")>-1?n.split("/")[2]:n.split("/")[0]).split(":")[0]).split("?")[0]).split(".").slice(-2).join(".")?t:m[Math.floor(Math.random()*m.length)]}e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);let r=e.connectorOpts.session||this._getStorageSession();r&&(this.session=r),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new h({protocol:this.protocol,version:this.version,url:this.bridge,
1subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;let t=(0,u.convertHexToArrayBuffer)(e);this._key=t}get key(){return this._key?(0,u.convertArrayBufferToHex)(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=(0,u.uuid)()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=(0,u.getClientMeta)()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;let{handshakeTopic:t,bridge:n,key:r}=this._parseUri(e);this.handshakeTopic=t,this.bridge=n,this.key=r}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,t){this._eventManager.subscribe({event:e,callback:t})}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();let t=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=t.id,this.handshakeTopic=(0,u.uuid)(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw Error(l.ERROR_QRCODE_MODAL_USER_CLOSED)});let n=()=>{this.killSession()};try{let e=await this._sendCallRequest(t);return e&&n(),e}catch(e){throw n(),e}}async connect(e){if(!this._qrcodeModal)throw Error(l.ERROR_QRCODE_MODAL_NOT_PROVIDED);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(e,t)=>{this.on("modal_closed",()=>t(Error(l.ERROR_QRCODE_MODAL_USER_CLOSED))),this.on("connect",(n,r)=>{if(n)return t(n);e(r.params[0])})}))}async createSession(e){if(this._connected)throw Error(l.ERROR_SESSION_CONNECTED);if(this.pending)return;this._key=await this._generateKey();let t=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=t.id,this.handshakeTopic=(0,u.uuid)(),this._sendSessionRequest(t,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw Error(l.ERROR_SESSION_CONNECTED);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw Error(l.ERROR_SESSION_CONNECTED);let t=e&&e.message?e.message:l.ERROR_SESSION_REJECTED,n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw Error(l.ERROR_SESSION_DISCONNECTED);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){let t=e?e.message:"Session Disconnected",n=this._formatRequest({method:"wc_sessionUpdate",params:[{approved:!1,chainId:null,networkId:null,accounts:null}]});await this._sendRequest(n),this._handleSessionDisconnect(t)}async sendTransaction(e){if(!this._connected)throw Error(l.ERROR_SESSION_DISCONNECTED);let t=this._formatRequest({method:"eth_sendTransaction",params:[e]});return await this._sendCallRequest(t)}async signTransaction(e){if(!this._connected)throw Error(l.ERROR_SESSION_DISCONNECTED);let t=this._formatRequest({method:"eth_signTransaction",params:[e]});return await this._sendCallRequest(t)}async signMessage(e){if(!this._connected)throw Error(l.ERROR_SESSION_DISCONNECTED);let t=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(t)}async signPersonalMessage(e){if(!this._connected)throw Error(l.ERROR_SESSION_DISCONNECTED);let t=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(t)}async signTypedData(e){if(!this._connected)throw Error(l.ERROR_SESSION_DISCONNECTED);let t=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(t)}async updateChain(e){if(!this._connected)throw Error("Session currently disconnected");let t=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(t)}unsafeSend(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise((t,n)=>{this._subscribeToResponse(e.id,(e,r)=>{if(e){n(e);return}if(!r)throw Error(l.ERROR_MISSING_JSON_RPC);t(r)})})}
1async sendCustomRequest(e,t){if(!this._connected)throw Error(l.ERROR_SESSION_DISCONNECTED);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return(0,u.convertNumberToHex)(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":case"personal_sign":e.params}let n=this._formatRequest(e);return await this._sendCallRequest(n,t)}approveRequest(e){if((0,u.isJsonRpcResponseSuccess)(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw Error(l.ERROR_MISSING_RESULT)}rejectRequest(e){if((0,u.isJsonRpcResponseError)(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw Error(l.ERROR_MISSING_ERROR)}transportClose(){this._transport.close()}async _sendRequest(e,t){let n=this._formatRequest(e),r=await this._encrypt(n),o=void 0!==(null==t?void 0:t.topic)?t.topic:this.peerId,i=JSON.stringify(r),s=void 0!==(null==t?void 0:t.forcePushNotification)?!t.forcePushNotification:(0,u.isSilentPayload)(n);this._transport.send(i,o,s)}async _sendResponse(e){let t=await this._encrypt(e),n=this.peerId,r=JSON.stringify(t);this._transport.send(r,n,!0)}async _sendSessionRequest(e,t,n){this._sendRequest(e,n),this._subscribeToSessionResponse(e.id,t)}_sendCallRequest(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(void 0===e.method)throw Error(l.ERROR_MISSING_METHOD);return{id:void 0===e.id?(0,u.payloadId)():e.id,jsonrpc:"2.0",method:e.method,params:void 0===e.params?[]:e.params}}_formatResponse(e){if(void 0===e.id)throw Error(l.ERROR_MISSING_ID);let t={id:e.id,jsonrpc:"2.0"};if((0,u.isJsonRpcResponseError)(e)){let n=(0,u.formatRpcError)(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}if((0,u.isJsonRpcResponseSuccess)(e))return Object.assign(Object.assign({},t),e);throw Error(l.ERROR_INVALID_RESPONSE)}_handleSessionDisconnect(e){this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),(0,u.removeLocal)(l.MOBILE_LINK_CHOICE_KEY)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:e||"Session Disconnected"}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,t){t&&t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){let t;if(![this.clientId,this.handshakeTopic].includes(e.topic))return;try{t=JSON.parse(e.payload)}catch(e){return}let n=await this._decrypt(t);n&&this._eventManager.trigger(n)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,t){this.on(`response:${e}`,t)}_subscribeToSessionResponse(e,t){this._subscribeToResponse(e,(e,n)=>{if(e){this._handleSessionResponse(e.message);return}(0,u.isJsonRpcResponseSuccess)(n)?this._handleSessionResponse(t,n.result):n.error&&n.error.message?this._handleSessionResponse(n.error.message):this._handleSessionResponse(t)})}_subscribeToCallResponse(e){return new Promise((t,n)=>{this._subscribeToResponse(e,(e,r)=>{if(e){n(e);return}(0,u.isJsonRpcResponseSuccess)(r)?t(r.result):r.error&&r.error.message?n(r.error):n(Error(l.ERROR_INVALID_RESPONSE))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,t)=>{let{request:n}=t.params[0];if((0,u.isMobile)()&&this._signingMethods.includes(n.method)){let e=(0,u.getLocal)(l.MOBILE_LINK_CHOICE_KEY);e&&(window.location.href=e.href)}}),this.on("wc_sessionRequest",(e,t)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=t.id,this.peerId=t.params[0].peerId,this.peerMeta=t.params[0].peerMeta;let n=Object.assign(Object.assign({},t),{method:"session_request"});this._eventManager.trigger(n)}),this.on("wc_sessionUpdate",(e,t)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",t.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){let e=this.protocol,t=this.handshakeTopic,n=this.version,r=encodeURIComponent(this.bridge),o=this.key;return`${e}:${t}@${n}?bridge=${r}&key=${o}`}_parseUri(e){let t=(0,u.parseWalletConnectUri)(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");let e=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");let n=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");return{handshakeTopic:e,bridge:n,key:t.key}}throw Error(l.ERROR_INVALID_URI)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}
1async _encrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.encrypt(e,t):null}async _decrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.decrypt(e,t):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||"string"!=typeof e.url)throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||"string"!=typeof e.type)throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||"string"!=typeof e.token)throw Error("Invalid or missing pushServerOpts.token parameter value");let t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(n,r)=>{if(n)throw n;if(e.peerMeta){let e=r.params[0].peerMeta.name;t.peerName=e}try{let n=await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});if(!(await n.json()).success)throw Error("Failed to register in Push Server")}catch(e){throw Error("Failed to register in Push Server")}})}}var v=g,y=n(60092);let w="AES-CBC",b="HMAC";async function E(e,t=w){return y.getSubtleCrypto().importKey("raw",e,t===w?{length:256,name:w}:{hash:{name:"SHA-256"},name:b},!0,t===w?["encrypt","decrypt"]:["sign","verify"])}async function S(e,t,n){let r=y.getSubtleCrypto(),o=await E(t,w);return new Uint8Array(await r.encrypt({iv:e,name:w},o,n))}async function C(e,t,n){let r=y.getSubtleCrypto(),o=await E(t,w);return new Uint8Array(await r.decrypt({iv:e,name:w},o,n))}async function k(e,t){let n=y.getSubtleCrypto(),r=await E(e,b);return new Uint8Array(await n.sign({length:256,name:b},r,t))}async function R(e,t){return await k(e,t)}var x=n(23632);async function I(e){var t;let n=(t=(e||256)/8,y.getBrowerCrypto().getRandomValues(new Uint8Array(t)));return(0,u.convertBufferToArrayBuffer)(x.QM(n))}async function O(e,t){let n=x.eu(e.data),r=x.eu(e.iv),o=x.eu(e.hmac),i=x.ek(o,!1),s=x.w3(n,r),c=await R(t,s),a=x.ek(c,!1);return x.KT(i)===x.KT(a)}async function N(e,t,n){let r=x._W((0,u.convertArrayBufferToBuffer)(t)),o=n||await I(128),i=x._W((0,u.convertArrayBufferToBuffer)(o)),s=x.ek(i,!1),c=JSON.stringify(e),a=x.ZV(c),l=await S(i,r,a),_=x.ek(l,!1),d=x.w3(l,i),h=await R(r,d);return{data:_,hmac:x.ek(h,!1),iv:s}}async function M(e,t){let n;let r=x._W((0,u.convertArrayBufferToBuffer)(t));if(!r)throw Error("Missing key: required for decryption");if(!await O(e,r))return null;let o=x.eu(e.data),i=x.eu(e.iv),s=await C(i,r,o),c=x.oO(s);try{n=JSON.parse(c)}catch(e){return null}return n}class T extends v{constructor(e,t){super({cryptoLib:r,connectorOpts:e,pushServerOpts:t})}}var L=n(41346),q=n.n(L),D=n(69428);class A extends D.XR{constructor(e){super(),this.events=new(i()),this.accounts=[],this.chainId=1,this.pending=!1,this.bridge="https://bridge.walletconnect.org",this.qrcode=!0,this.qrcodeModalOptions=void 0,this.opts=e,this.chainId=(null==e?void 0:e.chainId)||this.chainId,this.wc=this.register(e)}get connected(){return void 0!==this.wc&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e){if(this.connected){this.onOpen();return}return new Promise((t,n)=>{this.on("error",e=>{n(e)}),this.on("open",()=>{t()}),this.create(e)})}async close(){void 0!==this.wc&&(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(e=>this.events.emit("payload",e)).catch(t=>this.events.emit("payload",(0,s.formatJsonRpcError)(e.id,t.message)))}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=(null==e?void 0:e.connector)?e.connector.bridge:(null==e?void 0:e.bridge)||"https://bridge.walletconnect.org",this.qrcode=void 0===(null==e?void 0:e.qrcode)||!1!==e.qrcode,this.chainId=void 0!==(null==e?void 0:e.chainId)?e.chainId:this.chainId,this.qrcodeModalOptions=null==e?void 0:e.qrcodeModalOptions;let t={bridge:this.bridge,qrcodeModal:this.qrcode?q():void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:null==e?void 0:e.storageId,signingMethods:null==e?void 0:e.signingMethods,clientMeta:null==e?void 0:e.clientMeta};if(this.wc=void 0!==(null==e?void 0:e.connector)?e.connector:new T(t),void 0===this.wc)throw Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e,t="Failed or Rejected Request",n=-32e3){let r={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",r),r}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,this.connected||this.pending||(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(e=>this.events.emit("error",e)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{var t,n;if(e){this.events.emit("error",e);return}this.accounts=(null===(t=this.wc)||void 0===t?void 0:t.accounts)||[],this.chainId=(null===(n=this.wc)||void 0===n?void 0:n.chainId)||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",Error("User closed modal"))}),this.wc.on("session_update",(e,t)=>{let{accounts:n,chainId:r}=t.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||r&&this.chainId!==r)&&(this.chainId=r,this.events.emit("chainChanged",r))})}async sendPayload(e){this.wc=this.register(this.opts);try{let t=await this.wc.unsafeSend(e);return this.sanitizeResponse(t)}catch(t){return this.onError(e,t.message)}}sanitizeResponse(e){return void 0!==e.error&&void 0===e.error.code?(0,s.formatJsonRpcError)(e.id,e.error.message,e.error.data):e}}class U{constructor(e){this.events=new(i()),this.rpc={infuraId:null==e?void 0:e.infuraId,custom:null==e?void 0:e.rpc},this.signer=new c(new A(e));let t=this.signer.connection.chainId||(null==e?void 0:e.chainId)||1;this.http=this.setHttpProvider(t),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){var e;return(null===(e=this.http)||void 0===e?void 0:e.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId}if(l.SIGNING_METHODS.includes(e.method))return this.signer.request(e);
1if(void 0===this.http)throw Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}sendAsync(e,t){this.request(e).then(e=>t(null,e)).catch(e=>t(e,void 0))}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let t=(0,u.getRpcUrl)(e,this.rpc);if(void 0!==t)return new c(new a.k(t))}}var P=U},85854:function(){},95263:function(e,t,n){"use strict";n.d(t,{ERROR_INVALID_RESPONSE:function(){return d},ERROR_INVALID_URI:function(){return h},ERROR_MISSING_ERROR:function(){return a},ERROR_MISSING_ID:function(){return u},ERROR_MISSING_JSON_RPC:function(){return s},ERROR_MISSING_METHOD:function(){return l},ERROR_MISSING_REQUIRED:function(){return _},ERROR_MISSING_RESULT:function(){return c},ERROR_QRCODE_MODAL_NOT_PROVIDED:function(){return f},ERROR_QRCODE_MODAL_USER_CLOSED:function(){return p},ERROR_SESSION_CONNECTED:function(){return r},ERROR_SESSION_DISCONNECTED:function(){return o},ERROR_SESSION_REJECTED:function(){return i},INFURA_NETWORKS:function(){return y},MOBILE_LINK_CHOICE_KEY:function(){return v},RESERVED_EVENTS:function(){return m},SIGNING_METHODS:function(){return g}}),n(85854);let r="Session currently connected",o="Session currently disconnected",i="Session Rejected",s="Missing JSON RPC response",c='JSON-RPC success response must include "result" field',a='JSON-RPC error response must include "error" field',l='JSON RPC request must have valid "method" value',u='JSON RPC request must have valid "id" value',_="Missing one of the required parameters: bridge / uri / session",d="JSON RPC response format is invalid",h="URI format is invalid",f="QRCode Modal not provided",p="User close QRCode Modal",m=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],g=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],v="WALLETCONNECT_DEEPLINK_CHOICE",y={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"}},2123:function(e,t,n){"use strict";n.r(t),n.d(t,{addHexPrefix:function(){return eo},appendToQueryString:function(){return ek},concatArrayBuffers:function(){return a},concatBuffers:function(){return h},convertArrayBufferToBuffer:function(){return o},convertArrayBufferToHex:function(){return s},convertArrayBufferToNumber:function(){return c},convertArrayBufferToUtf8:function(){return i},convertBufferToArrayBuffer:function(){return l},convertBufferToHex:function(){return _},convertBufferToNumber:function(){return d},convertBufferToUtf8:function(){return u},convertHexToArrayBuffer:function(){return y},convertHexToBuffer:function(){return v},convertHexToNumber:function(){return b},convertHexToUtf8:function(){return w},convertNumberToArrayBuffer:function(){return S},convertNumberToBuffer:function(){return E},convertNumberToHex:function(){return k},convertNumberToUtf8:function(){return C},convertUtf8ToArrayBuffer:function(){return f},convertUtf8ToBuffer:function(){return p},convertUtf8ToHex:function(){return m},convertUtf8ToNumber:function(){return g},detectEnv:function(){return H},detectOS:function(){return W},formatIOSMobile:function(){return ed},formatMobileRegistry:function(){return eE},formatMobileRegistryEntry:function(){return eb},formatQueryString:function(){return ex},formatRpcError:function(){return eg},getClientMeta:function(){return ee},getCrypto:function(){return U},getCryptoOrThrow:function(){return A},getDappRegistryUrl:function(){return ew},getDocument:function(){return M},getDocumentOrThrow:function(){return N},getEncoding:function(){return eA},getFromWindow:function(){return I},getFromWindowOrThrow:function(){return O},getInfuraRpcUrl:function(){return eu}
1,getLocal:function(){return Z},getLocalStorage:function(){return j},getLocalStorageOrThrow:function(){return P},getLocation:function(){return D},getLocationOrThrow:function(){return q},getMobileLinkRegistry:function(){return ep},getMobileRegistryEntry:function(){return ef},getNavigator:function(){return L},getNavigatorOrThrow:function(){return T},getQueryString:function(){return eC},getRpcUrl:function(){return e_},getType:function(){return eD},getWalletRegistryUrl:function(){return ey},isAndroid:function(){return F},isArrayBuffer:function(){return eq},isBrowser:function(){return $},isBuffer:function(){return eT},isEmptyArray:function(){return eM},isEmptyString:function(){return eN},isHexString:function(){return eU},isIOS:function(){return B},isInternalEvent:function(){return eF},isJsonRpcRequest:function(){return ej},isJsonRpcResponseError:function(){return eW},isJsonRpcResponseSuccess:function(){return eH},isJsonRpcSubscription:function(){return eP},isMobile:function(){return z},isNode:function(){return V},isReservedEvent:function(){return eB},isSilentPayload:function(){return ez},isTypedArray:function(){return eL},isWalletConnectSession:function(){return eI},logDeprecationWarning:function(){return el},parseQueryString:function(){return eR},parseWalletConnectUri:function(){return eO},payloadId:function(){return ec},promisify:function(){return em},removeHexLeadingZeros:function(){return es},removeHexPrefix:function(){return ei},removeLocal:function(){return Y},safeJsonParse:function(){return Q},safeJsonStringify:function(){return G},sanitizeHex:function(){return er},saveMobileLinkInfo:function(){return eh},setLocal:function(){return K},uuid:function(){return ea}});var r=n(23632);function o(e){return r.QM(new Uint8Array(e))}function i(e){return r.oO(new Uint8Array(e))}function s(e,t){return r.ek(new Uint8Array(e),!t)}function c(e){return r.VQ(new Uint8Array(e))}function a(...e){return r.eu(e.map(e=>r.ek(new Uint8Array(e))).join("")).buffer}function l(e){return r._W(e).buffer}function u(e){return r.Pt(e)}function _(e,t){return r.kh(e,!t)}function d(e){return r.DS(e)}function h(...e){return r.Kb(...e)}function f(e){return r.ZV(e).buffer}function p(e){return r.Zr(e)}function m(e,t){return r.OG(e,!t)}function g(e){return r.pF(e)}function v(e){return r.ii(e)}function y(e){return r.eu(e).buffer}function w(e){return r.H3(e)}function b(e){return r.ly(e)}function E(e){return r.y$(e)}function S(e){return r.Gj(e).buffer}function C(e){return r.gy(e)}function k(e,t){return r.eC(Number(e),!t)}var R=n(52159),x=n(25527);let I=x.getFromWindow,O=x.getFromWindowOrThrow,N=x.getDocumentOrThrow,M=x.getDocument,T=x.getNavigatorOrThrow,L=x.getNavigator,q=x.getLocationOrThrow,D=x.getLocation,A=x.getCryptoOrThrow,U=x.getCrypto,P=x.getLocalStorageOrThrow,j=x.getLocalStorage;function H(e){return(0,R.qY)(e)}function W(){let e=H();return e&&e.os?e.os:void 0}function F(){let e=W();return!!e&&e.toLowerCase().includes("android")}function B(){let e=W();return!!e&&(e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1)}function z(){return!!W()&&(F()||B())}function V(){let e=H();return!!e&&!!e.name&&"node"===e.name.toLowerCase()}function $(){return!V()&&!!L()}var J=n(54112);let Q=J.D,G=J.u;function K(e,t){let n=G(t),r=j();r&&r.setItem(e,n)}function Z(e){let t=null,n=j();return n&&(t=n.getItem(e)),t?Q(t):t}function Y(e){let t=j();t&&t.removeItem(e)}var X=n(70053);function ee(){return X.D()}var et=n(40),en=n(95263);function er(e){return r.xb(e)}function eo(e){return r.L_(e)}function ei(e){return r.KT(e)}function es(e){return r.wL(r.L_(e))}let ec=et.payloadId;function ea(){return((e,t)=>{for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t})()}function el(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated
1in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function eu(e,t){let n;let r=en.INFURA_NETWORKS[e];return r&&(n=`https://${r}.infura.io/v3/${t}`),n}function e_(e,t){let n;let r=eu(e,t.infuraId);return t.custom&&t.custom[e]?n=t.custom[e]:r&&(n=r),n}function ed(e,t){let n=encodeURIComponent(e);return t.universalLink?`${t.universalLink}/wc?uri=${n}`:t.deepLink?`${t.deepLink}${t.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function eh(e){let t=e.href.split("?")[0];K(en.MOBILE_LINK_CHOICE_KEY,Object.assign(Object.assign({},e),{href:t}))}function ef(e,t){return e.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))[0]}function ep(e,t){let n=e;return t&&(n=t.map(t=>ef(e,t)).filter(Boolean)),n}function em(e,t){return async(...n)=>new Promise((r,o)=>{e.apply(t,[...n,(e,t)=>{null==e&&o(e),r(t)}])})}function eg(e){let t=e.message||"Failed or Rejected Request",n=-32e3;if(e&&!e.code)switch(t){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3}let r={code:n,message:t};return e.data&&(r.data=e.data),r}let ev="https://registry.walletconnect.com";function ey(){return ev+"/api/v2/wallets"}function ew(){return ev+"/api/v2/dapps"}function eb(e,t="mobile"){var n;return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:null!==(n=e.image_url.sm)&&void 0!==n?n:"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}function eE(e,t="mobile"){return Object.values(e).filter(e=>!!e[t].universal||!!e[t].native).map(e=>eb(e,t))}var eS=n(61179);function eC(e){let t=-1!==e.indexOf("?")?e.indexOf("?"):void 0;return void 0!==t?e.substr(t):""}function ek(e,t){let n=eR(e);return e=ex(n=Object.assign(Object.assign({},n),t))}function eR(e){return eS.parse(e)}function ex(e){return eS.stringify(e)}function eI(e){return void 0!==e.bridge}function eO(e){let t=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),o=function(e){let t=e.split("@");return{handshakeTopic:t[0],version:parseInt(t[1],10)}}(e.substring(t+1,n)),i=function(e){let t=eR(e);return{key:t.key||"",bridge:t.bridge||""}}(void 0!==n?e.substr(n):"");return Object.assign(Object.assign({protocol:r},o),i)}function eN(e){return""===e||"string"==typeof e&&""===e.trim()}function eM(e){return!(e&&e.length)}function eT(e){return r.zH(e)}function eL(e){return r.fU(e)}function eq(e){return r.eP(e)}function eD(e){return r.oL(e)}function eA(e){return r.bZ(e)}function eU(e,t){return r.A7(e,t)}function eP(e){return"object"==typeof e.params}function ej(e){return void 0!==e.method}function eH(e){return void 0!==e.result}function eW(e){return void 0!==e.error}function eF(e){return void 0!==e.event}function eB(e){return en.RESERVED_EVENTS.includes(e)||e.startsWith("wc_")}function ez(e){return!!e.method.startsWith("wc_")||!en.SIGNING_METHODS.includes(e.method)}},80042:function(e,t,n){"use strict";var r=n(85786),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,s,c,a,l,u,_,d=!1;t||(t={}),s=t.debug||!1;try{if(a=r(),l=document.createRange(),u=document.getSelection(),(_=document.createElement("span")).textContent=e,_.ariaHidden="true",_.style.all="unset",_.style.position="fixed",_.style.top=0,_.style.clip="rect(0, 0, 0, 0)",_.style.whiteSpace="pre",_.style.webkitUserSelect="text",_.style.MozUserSelect="text",_.style.msUserSelect="text",_.style.userSelect="text",_.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(_),l.selectNodeContents(_),u.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");d=!0}catch(r){s&&console.error("unable to copy using execCommand: ",r),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(r){s&&console.error("unable to copy using clipboardData: ",r),s&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",i=(/mac os x/i.test(navigator.userAgent)?"â":"Ctrl")+"+C",c=n.replace(/#{\s*key\s*}/g,i),window.prompt(c,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(l):u.removeAllRanges()),_&&document.body.removeChild(_),a()}return d}},13869:function(e){e.exports=r,r.strict=o,r.loose=i;var t=Object.prototype.toString,n={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array
1]":!0};function r(e){return o(e)||i(e)}function o(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function i(e){return n[t.call(e)]}},21936:function(e,t,n){"use strict";n.r(t),n.d(t,{Children:function(){return h},Component:function(){return r.Component},Fragment:function(){return r.Fragment},PureComponent:function(){return c},StrictMode:function(){return Z},Suspense:function(){return m},SuspenseList:function(){return y},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return H},cloneElement:function(){return $},createContext:function(){return r.createContext},createElement:function(){return r.createElement},createFactory:function(){return F},createPortal:function(){return S},createRef:function(){return r.createRef},default:function(){return ei},findDOMNode:function(){return Q},flushSync:function(){return K},forwardRef:function(){return _},hydrate:function(){return N},isElement:function(){return en},isFragment:function(){return z},isMemo:function(){return V},isValidElement:function(){return B},lazy:function(){return v},memo:function(){return a},render:function(){return O},startTransition:function(){return Y},unmountComponentAtNode:function(){return J},unstable_batchedUpdates:function(){return G},useCallback:function(){return o.useCallback},useContext:function(){return o.useContext},useDebugValue:function(){return o.useDebugValue},useDeferredValue:function(){return X},useEffect:function(){return o.useEffect},useErrorBoundary:function(){return o.useErrorBoundary},useId:function(){return o.useId},useImperativeHandle:function(){return o.useImperativeHandle},useInsertionEffect:function(){return et},useLayoutEffect:function(){return o.useLayoutEffect},useMemo:function(){return o.useMemo},useReducer:function(){return o.useReducer},useRef:function(){return o.useRef},useState:function(){return o.useState},useSyncExternalStore:function(){return er},useTransition:function(){return ee},version:function(){return W}});var r=n(57764),o=n(83148);function i(e,t){for(var n in t)e[n]=t[n];return e}function s(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function c(e,t){this.props=e,this.context=t}function a(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:s(this.props,e)}function o(t){return this.shouldComponentUpdate=n,(0,r.createElement)(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(c.prototype=new r.Component).isPureReactComponent=!0,c.prototype.shouldComponentUpdate=function(e,t){return s(this.props,e)||s(this.state,t)};var l=r.options.__b;r.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),l&&l(e)};var u="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function _(e){function t(t){var n=i({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=u,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var d=function(e,t){return null==e?null:(0,r.toChildArray)((0,r.toChildArray)(e).map(t))},h={map:d,forEach:d,count:function(e){return e?(0,r.toChildArray)(e).length:0},only:function(e){var t=(0,r.toChildArray)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.toChildArray},f=r.options.__e;r.options.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}f(e,t,n,r)};var p=r.options.unmount;function m(){this.__u=0,this.t=null,this.__b=null}function g(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function v(e){var t,n,o;function i(i){if(t||(t=e()).then(function(e){n=e.default||e},function(e){o=e}),o)throw o;if(!n)throw t;return(0,r.createElement)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function y(){this.u=null,this.o=null}r.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),p&&p(e)},(m.prototype=new r.Component).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=g(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=s;var c=function(){if(!--r.__u){if(r.state.__a){var e,t=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)}),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(t,t.__c.__P,t.__c.__O)}for(r.setState({__a:r.__b=null});e=r.t.pop();)e.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},m.prototype.componentWillUnmount=function(){this.t=[]},m.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=i({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)})),t}(this.__b,n,o.__O=o.__P)}this.__b=null}var s=t.__a&&(0,r.createElement)(r.Fragment,null,e.fallback);return s&&(s.__u&=-33),[(0,r.createElement)(r.Fragment,null,t.__a?null:e.children),s]};var w=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function b(e){return this.getChildContext=function(){return e.context},e.children}function E(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,r.render)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,r.render)((0,r.createElement)(b,{context:t.context},e.__v),t.l)}function S(e,t){var n=(0,r.createElement)(E,{__v:e,i:t});return n.containerInfo=t,n}(y.prototype=new r.Component).__a=function(e){var t=this,n=g(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),w(t,e,r)):o()};n?n(i):i()}},y.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,r.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},y.prototype.componentDidUpdate=y.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){w(e,n,t)})};
1var C="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,k=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,R=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,x=/[A-Z0-9]/g,I="undefined"!=typeof document;function O(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.render)(e,t),"function"==typeof n&&n(),e?e.__c:null}function N(e,t,n){return(0,r.hydrate)(e,t),"function"==typeof n&&n(),e?e.__c:null}r.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(r.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var M=r.options.event;function T(){}function L(){return this.cancelBubble}function q(){return this.defaultPrevented}r.options.event=function(e){return M&&(e=M(e)),e.persist=T,e.isPropagationStopped=L,e.isDefaultPrevented=q,e.nativeEvent=e};var D,A={enumerable:!1,configurable:!0,get:function(){return this.class}},U=r.options.vnode;r.options.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={};for(var i in t){var s=t[i];if(!("value"===i&&"defaultValue"in t&&null==s||I&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var c,a=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":"translate"===a&&"no"===s?s=!1:"ondoubleclick"===a?i="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||(c=t.type,("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(c))?"onfocus"===a?i="onfocusin":"onblur"===a?i="onfocusout":R.test(i)?i=a:-1===n.indexOf("-")&&k.test(i)?i=i.replace(x,"-$&").toLowerCase():null===s&&(s=void 0):a=i="oninput","oninput"===a&&o[i=a]&&(i="oninputCapture"),o[i]=s}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.toChildArray)(t.children).forEach(function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)})),"select"==n&&null!=o.defaultValue&&(o.value=(0,r.toChildArray)(t.children).forEach(function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value})),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",A)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=C,U&&U(e)};var P=r.options.__r;r.options.__r=function(e){P&&P(e),D=e.__c};var j=r.options.diffed;r.options.diffed=function(e){j&&j(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),D=null};var H={ReactCurrentDispatcher:{current:{readContext:function(e){return D.__n[e.__c].props.value},useCallback:o.useCallback,useContext:o.useContext,useDebugValue:o.useDebugValue,useDeferredValue:X,useEffect:o.useEffect,useId:o.useId,useImperativeHandle:o.useImperativeHandle,useInsertionEffect:et,useLayoutEffect:o.useLayoutEffect,useMemo:o.useMemo,useReducer:o.useReducer,useRef:o.useRef,useState:o.useState,useSyncExternalStore:er,useTransition:ee}}},W="17.0.2";function F(e){return r.createElement.bind(null,e)}function B(e){return!!e&&e.$$typeof===C}function z(e){return B(e)&&e.type===r.Fragment}function V(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function $(e){return B(e)?r.cloneElement.apply(null,arguments):e}function J(e){return!!e.__k&&((0,r.render)(null,e),!0)}function Q(e){return e&&(e.base||1===e.nodeType&&e)||null}var G=function(e,t){return e(t)},K=function(e,t){return e(t)},Z=r.Fragment;function Y(e){e()}function X(e){return e}function ee(){return[!1,Y]}var et=o.useLayoutEffect,en=B;function er(e,t){var n=t(),r=(0,o.useState)({h:{__:n,v:t}}),i=r[0].h,s=r[1];return(0,o.useLayoutEffect)(function(){i.__=n,i.v=t,eo(i)&&s({h:i})},[e,n,t]),(0,o.useEffect)(function(){return eo(i)&&s({h:i}),e(function(){eo(i)&&s({h:i})})},[e]),n}function eo(e){var t=e.v,n=e.__;try{var r=t();return!(n===r&&(0!==n||1/n==1/r)||n!=n&&r!=r)}catch(e){return!0}}var ei={useState:o.useState,useId:o.useId,useReducer:o.useReducer,useEffect:o.useEffect,useLayoutEffect:o.useLayoutEffect,useInsertionEffect:et,useTransition:ee,useDeferredValue:X,useSyncExternalStore:er,startTransition:Y,useRef:o.useRef,useImperativeHandle:o.useImperativeHandle,useMemo:o.useMemo,useCallback:o.useCallback,useContext:o.useContext,useDebugValue:o.useDebugValue,version:"17.0.2",Children:h,render:O,hydrate:N,unmountComponentAtNode:J,createPortal:S,createElement:r.createElement,createContext:r.createContext,createFactory:F,cloneElement:$,createRef:r.createRef,Fragment:r.Fragment,isValidElement:B,isElement:en,isFragment:z,isMemo:V,findDOMNode:Q,Component:r.Component,PureComponent:c,memo:a,forwardRef:_,flushSync:K,unstable_batchedUpdates:G,StrictMode:Z,Suspense:m,SuspenseList:y,lazy:v,__SECRET_INT
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:H}},57764:function(e,t,n){"use strict";n.r(t),n.d(t,{Component:function(){return k},Fragment:function(){return C},cloneElement:function(){return H},createContext:function(){return W},createElement:function(){return b},createRef:function(){return S},h:function(){return b},hydrate:function(){return j},isValidElement:function(){return s},options:function(){return o},render:function(){return P},toChildArray:function(){return function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(v(t)?t.some(function(t){e(t,n)}):n.push(t)),n}}});var r,o,i,s,c,a,l,u,_,d,h,f,p={},m=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function y(e,t){for(var n in t)e[n]=t[n];return e}function w(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var o,i,s,c={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:c[s]=t[s];if(arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===c[s]&&(c[s]=e.defaultProps[s]);return E(e,c,o,i,null)}function E(e,t,n,r,s){var c={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=o.vnode&&o.vnode(c),c}function S(){return{current:null}}function C(e){return e.children}function k(e,t){this.props=e,this.context=t}function R(e,t){if(null==t)return e.__?R(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?R(e):null}function x(e){(!e.__d&&(e.__d=!0)&&c.push(e)&&!I.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||l)(I)}function I(){var e,t,n,r,i,s,a,l;for(c.sort(u);e=c.shift();)e.__d&&(t=c.length,r=void 0,s=(i=(n=e).__v).__e,a=[],l=[],n.__P&&((r=y({},i)).__v=i.__v+1,o.vnode&&o.vnode(r),L(n.__P,r,i,n.__n,void 0!==n.__P.ownerSVGElement,32&i.__u?[s]:null,a,null==s?R(i):s,!!(32&i.__u),l),r.__v=i.__v,r.__.__k[r.__i]=r,q(a,r,l),r.__e!=s&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r)),c.length>t&&c.sort(u));I.__r=0}function O(e,t,n,r,o,i,s,c,a,l,u){var _,d,h,f,g,y=r&&r.__k||m,w=t.length;for(n.__d=a,function(e,t,n){var r,o,i,s,c,a=t.length,l=n.length,u=l,_=0;for(e.__k=[],r=0;r<a;r++)s=r+_,null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?E(null,o,null,null,null):v(o)?E(C,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?E(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,c=function(e,t,n,r){var o=e.key,i=e.type,s=n-1,c=n+1,a=t[n];if(null===a||a&&o==a.key&&i===a.type&&0==(131072&a.__u))return n;if(r>(null!=a&&0==(131072&a.__u)?1:0))for(;s>=0||c<t.length;){if(s>=0){if((a=t[s])&&0==(131072&a.__u)&&o==a.key&&i===a.type)return s;s--}if(c<t.length){if((a=t[c])&&0==(131072&a.__u)&&o==a.key&&i===a.type)return c;c++}}return -1}(o,n,s,u),o.__i=c,i=null,-1!==c&&(u--,(i=n[c])&&(i.__u|=131072)),null==i||null===i.__v?(-1==c&&_--,"function"!=typeof o.type&&(o.__u|=65536)):c!==s&&(c===s+1?_++:c>s?u>a-s?_+=c-s:_--:c<s?c==s-1&&(_=c-s):_=0,c!==r+_&&(o.__u|=65536))):(i=n[s])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=R(i)),A(i,i,!1),n[s]=null,u--);if(u)for(r=0;r<l;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=R(i)),A(i,i))}(n,t,y),a=n.__d,_=0;_<w;_++)null!=(h=n.__k[_])&&"boolean"!=typeof h&&"function"!=typeof h&&(d=-1===h.__i?p:y[h.__i]||p,h.__i=_,L(e,h,d,o,i,s,c,a,l,u),f=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&D(d.ref,null,h),u.push(h.ref,h.__c||f,h)),null==g&&null!=f&&(g=f),65536&h.__u||d.__k===h.__k?(a&&!a.isConnected&&(a=R(d)),a=function e(t,n,r){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,n=e(o[i],n,r));return n}t.__e!=n&&(r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType);return n}(h,a,e)):"function"==typeof h.type&&void 0!==h.__d?a=h.__d:f&&(a=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=a,n.__e=g}function N(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n:n+"px"}function M(e,t,n,r,o){var i;e:if("style"===t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||N(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||N(e.style,t,n[t])}}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase() in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=_,e.addEventListener(t,i?h:d,i)):e.removeEventListener(t,i?h:d,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function T(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=_++;else if(t.t<n.u)return;return n(o.event?o.event(t):t)}}}function L(e,t,n,i,s,c,a,l,u,_){var d,h,f,m,g,b,E,S,x,I,N,T,L,q,D,A=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),c=[l=t.__e=n.__e]),(d=o.__b)&&d(t);e:if("function"==typeof A)try{if(S=t.props,x=(d=A.contextType)&&i[d.__c],I=d?x?x.props.value:d.__:i,n.__c?E=(h=t.__c=n.__c).__=h.__E:("prototype"in A&&A.prototype.render?t.__c=h=new A(S,I):(t.__c=h=new k(S,I),h.constructor=A,h.render=U),x&&x.sub(h),h.props=S,h.state||(h.state={}),h.context=I,h.__n=i,f=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=A.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=y({}
vendor: 5,489 bytes, line 1
1,h.__s)),y(h.__s,A.getDerivedStateFromProps(S,h.__s))),m=h.props,g=h.state,h.__v=t,f)null==A.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==A.getDerivedStateFromProps&&S!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(S,I),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(S,h.__s,I)||t.__v===n.__v)){for(t.__v!==n.__v&&(h.props=S,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),N=0;N<h._sb.length;N++)h.__h.push(h._sb[N]);h._sb=[],h.__h.length&&a.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(S,h.__s,I),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(m,g,b)})}if(h.context=I,h.props=S,h.__P=e,h.__e=!1,T=o.__r,L=0,"prototype"in A&&A.prototype.render){for(h.state=h.__s,h.__d=!1,T&&T(t),d=h.render(h.props,h.state,h.context),q=0;q<h._sb.length;q++)h.__h.push(h._sb[q]);h._sb=[]}else do h.__d=!1,T&&T(t),d=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++L<25);h.state=h.__s,null!=h.getChildContext&&(i=y(y({},i),h.getChildContext())),f||null==h.getSnapshotBeforeUpdate||(b=h.getSnapshotBeforeUpdate(m,g)),O(e,v(D=null!=d&&d.type===C&&null==d.key?d.props.children:d)?D:[D],t,n,i,s,c,a,l,u,_),h.base=t.__e,t.__u&=-161,h.__h.length&&a.push(h),E&&(h.__E=h.__=null)}catch(e){t.__v=null,u||null!=c?(t.__e=l,t.__u|=u?160:32,c[c.indexOf(l)]=null):(t.__e=n.__e,t.__k=n.__k),o.__e(e,t,n)}else null==c&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,o,i,s,c,a,l){var u,_,d,h,f,m,g,y=n.props,b=t.props,E=t.type;if("svg"===E&&(i=!0),null!=s){for(u=0;u<s.length;u++)if((f=s[u])&&"setAttribute"in f==!!E&&(E?f.localName===E:3===f.nodeType)){e=f,s[u]=null;break}}if(null==e){if(null===E)return document.createTextNode(b);e=i?document.createElementNS("http://www.w3.org/2000/svg",E):document.createElement(E,b.is&&b),s=null,a=!1}if(null===E)y===b||a&&e.data===b||(e.data=b);else{if(s=s&&r.call(e.childNodes),y=n.props||p,!a&&null!=s)for(y={},u=0;u<e.attributes.length;u++)y[(f=e.attributes[u]).name]=f.value;for(u in y)if(f=y[u],"children"==u);else if("dangerouslySetInnerHTML"==u)d=f;else if("key"!==u&&!(u in b)){if("value"==u&&"defaultValue"in b||"checked"==u&&"defaultChecked"in b)continue;M(e,u,null,f,i)}for(u in b)f=b[u],"children"==u?h=f:"dangerouslySetInnerHTML"==u?_=f:"value"==u?m=f:"checked"==u?g=f:"key"===u||a&&"function"!=typeof f||y[u]===f||M(e,u,f,y[u],i);if(_)a||d&&(_.__html===d.__html||_.__html===e.innerHTML)||(e.innerHTML=_.__html),t.__k=[];else if(d&&(e.innerHTML=""),O(e,v(h)?h:[h],t,n,o,i&&"foreignObject"!==E,s,c,s?s[0]:n.__k&&R(n,0),a,l),null!=s)for(u=s.length;u--;)null!=s[u]&&w(s[u]);a||(u="value",void 0===m||m===e[u]&&("progress"!==E||m)&&("option"!==E||m===y[u])||M(e,u,m,y[u],!1),u="checked",void 0!==g&&g!==e[u]&&M(e,u,g,y[u],!1))}return e}(n.__e,t,n,i,s,c,a,u,_);(d=o.diffed)&&d(t)}function q(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)D(n[r],n[++r],n[++r]);o.__c&&o.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){o.__e(e,t.__v)}})}function D(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function A(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||D(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&A(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||w(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function P(e,t,n){var i,s,c,a;o.__&&o.__(e,t),s=(i="function"==typeof n)?null:n&&n.__k||t.__k,c=[],a=[],L(t,e=(!i&&n||t).__k=b(C,null,[e]),s||p,p,void 0!==t.ownerSVGElement,!i&&n?[n]:s?null:t.firstChild?r.call(t.childNodes):null,c,!i&&n?n:s?s.__e:t.firstChild,i,a),q(c,e,a)}function j(e,t){P(e,t,j)}function H(e,t,n){var o,i,s,c,a=y({},e.props);for(s in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=void 0===t[s]&&void 0!==c?c[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),E(e.type,a,o||e.key,i||e.ref,null)}function W(e,t){var n={__c:t="__cC"+f++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,x(e)})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=m.slice,o={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},i=0,s=function(e){return null!=e&&null==e.constructor},k.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=y({},this.state),"function"==typeof e&&(e=e(y({},n),this.props)),e&&y(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),x(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},k.prototype.render=C,c=[],l="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},I.__r=0,_=0,d=T(!1),h=T(!0),f=0},83148:function(e,t,n){"use strict";n.r(t),n.d(t,{useCallback:function(){return R},useContext:function(){return x},useDebugValue:function(){return I},useEffect:function(){return b},useErrorBoundary:function(){return O},useId:function(){return N},useImperativeHandle:function(){return C},useLayoutEffect:function(){return E},useMemo:function(){return k},useReducer:function(){return w},useRef:function(){return S},useState:function(){return y}});var r,o,i,s,c=n(57764),a=0,l=[],u=[],_=c.options,d=_.__b,h=_.__r,f=_.diffed,p=_.__c,m=_.unmount,g=_.__;function v(e,t){_.__h&&_.__h(o,e,a||t),a=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function y(e){return a=1,w(A,e)}function w(e,t,n){var i=v(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):A(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){var s=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter(function(e){return!!e.__c});if(r.every(function(e){return!e.__N}))return!c||c.call(this,e,t,n);var o=!1;return r.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!(!o&&i.__c.props===e)&&(!c||c.call(this,e,t,n))};o.u=!0;var c=o.shouldComponentUpdate,a=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=c;c=void 0,s(e,t,n),c=r}a&&a.call(this,e,t,n)},o.shouldComponentUpdate=s}return i.__N||i.__}function b(e,t){var n=v(r++,3);!_.__s&&D(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function E(e,t){var n=v(r++,4);!_.__s&&D(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function S(e){return a=5,k(function(){return{current:e}},[])}function C(e,t,n){a=6,E(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))}function k(e,t){var n=v(r++,7);return D(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function R(e,t){return a=8,k(function(){return e},t)}function x(e){var t=o.context[e.__c],n=v(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function I(e,t){_.useDebugValue&&_.useDebugValue(t?t(e):e)}function O(e){var t=v(r++,10),n=y();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function N(){var e=v(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function M(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(L),e.__H.__h.forEach(q),e.__H.__h=[]}catch(t){e.__H.__h=[],_.__e(t,e.__v)}}_.__b=function(e){o=null,d&&d(e)},_.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),g&&g(e,t)},_.__r=function(e){h&&h(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=u,e.__N=e.i=void 0})):(t.__h.forEach(L),t.__h.forEach(q),t.__h=[],r=0)),i=o},_.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&s===_.requestAnimationFrame||((s=_.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);T&&(t=requestAnimationFrame(n))})(M)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==u&&(e.__=e.__V),e.i=void 0,e.__V=u})),i=o=null},_.__c=function(e,t){t.some(function(e){try{e.__h.forEach(L),e.__h=e.__h.filter(function(e){return!e.__||q(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],_.__e(n,e.__v)}}),p&&p(e,t)},_.unmount=function(e){m&&m(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{L(e)}catch(e){t=e}}),n.__H=void 0,t&&_.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame;function L(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function q(e){var t=o;e.__c=e.__(),o=t}function D(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function A(e,t){return"function"==typeof t?t(e):t}},61179:function(e,t,n){"use strict";let r=n(29276),o=n(56368),i=n(76442),s=n(24816),c=e=>null==e;function a(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function _(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function d(e){let t=(e=_(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function f(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){r[e]=n;return}void 0===r[e]&&(r[e]={}),r[e][t[1]]=n};case"bracket":return(e,n,r)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}r[e]=[].concat(r[e],n)};case"comma":case"separator":return(t,n,r)=>{let o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&u(n,e).includes(e.arrayFormatSeparator);n=i?u(n,e):n;let s=o||i?n.split(e.arrayFormatSeparator).map(t=>u(t,e)):null===n?n:u(n,e);r[t]=s};default:return(e,t,n)=>{if(void 0===n[e]){n[e]=t;return}n[e]=[].concat(n[e],t)}}}(t),r=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return r;for(let o of e.split("&")){if(""===o)continue;let[e,s]=i(t.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator"].includes(t.arrayFormat)?s:u(s,t),n(u(e,t),s,r)}for(let e of Object.keys(r)){let n=r[e];if("object"==typeof n&&null!==n)for(let e of Object.keys(n))n[e]=h(n[e],t);else r[e]=h(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>
1{let n=r[t];return n&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=d,t.parse=f,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let n=n=>t.skipNull&&c(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{let o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",o,"]"].join("")]:[...n,[l(t,e),"[",l(o,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[l(t,e),"=",l(r,e)].join("")]:[[n,l(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),o={};for(let t of Object.keys(e))n(t)||(o[t]=e[t]);let i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map(n=>{let o=e[n];return void 0===o?"":null===o?l(n,t):Array.isArray(o)?o.reduce(r(n),[]).join("&"):l(n,t)+"="+l(o,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>
1{t=Object.assign({decode:!0},t);let[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:f(d(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);let r=_(e.url).split("?")[0]||"",o=t.extract(e.url),i=Object.assign(t.parse(o,{sort:!1}),e.query),s=t.stringify(i,n);s&&(s=`?${s}`);let c=function(e){let t="",n=e.indexOf("#");return -1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c=`#${l(e.fragmentIdentifier,n)}`),`${r}${s}${c}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0},r);let{url:o,query:i,fragmentIdentifier:c}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:s(i,n),fragmentIdentifier:c},r)},t.exclude=(e,n,r)=>{let o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},85786:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}
1),t&&t.focus()}}},63087:function(e,t,n){var r=n(9109).Buffer,o=n(13869).strict;e.exports=function(e){if(!o(e))return r.from(e);var t=r.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}}}]);
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.