plutosdk 1.0.2-beta.0 → 1.0.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pluto-sdk.js +217 -217
- package/lib/components/CheckIn/index.js +3 -3
- package/lib/components/PayButton/index.d.ts +4 -2
- package/lib/components/PayButton/index.js +7 -2
- package/lib/components/Purchase/index.d.ts +1 -1
- package/lib/components/Purchase/index.js +7 -6
- package/lib/components/StrokeText/index.d.ts +1 -0
- package/lib/components/StrokeText/index.js +4 -1
- package/lib/interface.d.ts +19 -4
- package/lib/main.js +4 -0
- package/lib/sdk.d.ts +2 -2
- package/lib/sdk.js +1 -1
- package/lib/utils/Platform.d.ts +3 -3
- package/lib/utils/Platform.js +26 -7
- package/lib/utils/WalletManager.js +0 -1
- package/lib/utils/config.d.ts +0 -1
- package/lib/utils/config.js +3 -5
- package/lib/utils/constant.d.ts +14 -3
- package/lib/utils/constant.js +14 -3
- package/package.json +1 -1
package/dist/pluto-sdk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! For license information please see pluto-sdk.js.LICENSE.txt */
|
|
2
|
-
var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function h(e){return e.length}function p(e,t){return t.push(e),e}var g=1,m=1,v=0,y=0,b=0,w="";function x(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:g,column:m,length:a,return:""}}function C(e,t){return a(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return b=y>0?u(w,--y):0,m--,10===b&&(m=1,g--),b}function S(){return b=y<v?u(w,y++):0,m++,10===b&&(m=1,g++),b}function E(){return u(w,y)}function _(){return y}function A(e,t){return d(w,e,t)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R(e){return g=m=1,v=f(w=e),y=0,[]}function O(e){return w="",e}function P(e){return s(A(y-1,N(91===e?e+2:40===e?e+1:e)))}function L(e){for(;(b=E())&&b<33;)S();return T(e)>2||T(b)>3?"":" "}function M(e,t){for(;--t&&S()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return A(e,_()+(t<6&&32==E()&&32==S()))}function N(e){for(;S();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&N(b);break;case 40:41===e&&N(e);break;case 92:S()}return y}function I(e,t){for(;S()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+A(t,y-1)+"*"+i(47===e?e:S())}function j(e){for(;!T(E());)S();return A(e,y)}var $="-ms-",D="-moz-",U="-webkit-",W="comm",z="rule",B="decl",F="@keyframes";function H(e,t){for(var n="",r=h(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function V(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case B:return e.return=e.return||e.value;case W:return"";case F:return e.return=e.value+"{"+H(e.children,r)+"}";case z:e.value=e.props.join(",")}return f(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function K(e){return O(q("",null,null,null,[""],e=R(e),0,[0],e))}function q(e,t,n,r,o,a,s,d,h){for(var g=0,m=0,v=s,y=0,b=0,w=0,x=1,C=1,A=1,T=0,R="",O=o,N=a,$=r,D=R;C;)switch(w=T,T=S()){case 40:if(108!=w&&58==u(D,v-1)){-1!=c(D+=l(P(T),"&","&\f"),"&\f")&&(A=-1);break}case 34:case 39:case 91:D+=P(T);break;case 9:case 10:case 13:case 32:D+=L(w);break;case 92:D+=M(_()-1,7);continue;case 47:switch(E()){case 42:case 47:p(Q(I(S(),_()),t,n),h);break;default:D+="/"}break;case 123*x:d[g++]=f(D)*A;case 125*x:case 59:case 0:switch(T){case 0:case 125:C=0;case 59+m:-1==A&&(D=l(D,/\f/g,"")),b>0&&f(D)-v&&p(b>32?Z(D+";",r,n,v-1):Z(l(D," ","")+";",r,n,v-2),h);break;case 59:D+=";";default:if(p($=G(D,t,n,g,m,o,d,R,O=[],N=[],v),a),123===T)if(0===m)q(D,t,$,$,O,a,v,d,N);else switch(99===y&&110===u(D,3)?100:y){case 100:case 108:case 109:case 115:q(e,$,$,r&&p(G(e,$,$,0,0,o,d,R,o,O=[],v),N),o,N,v,d,r?O:N);break;default:q(D,$,$,$,[""],N,0,d,N)}}g=m=b=0,x=A=1,R=D="",v=s;break;case 58:v=1+f(D),b=w;default:if(x<1)if(123==T)--x;else if(125==T&&0==x++&&125==k())continue;switch(D+=i(T),T*x){case 38:A=m>0?1:(D+="\f",-1);break;case 44:d[g++]=(f(D)-1)*A,A=1;break;case 64:45===E()&&(D+=P(S())),y=E(),m=v=f(R=D+=j(_())),T++;break;case 45:45===w&&2==f(D)&&(x=0)}}return a}function G(e,t,n,r,i,a,c,u,f,p,g){for(var m=i-1,v=0===i?a:[""],y=h(v),b=0,w=0,C=0;b<r;++b)for(var k=0,S=d(e,m+1,m=o(w=c[b])),E=e;k<y;++k)(E=s(w>0?v[k]+" "+S:l(S,/&\f/g,v[k])))&&(f[C++]=E);return x(e,t,n,0===i?z:u,f,p,g)}function Q(e,t,n){return x(e,t,n,W,i(b),d(e,2,-2),0)}function Z(e,t,n,r){return x(e,t,n,B,d(e,0,r),d(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,o=0;r=o,o=E(),38===r&&12===o&&(t[n]=1),!T(o);)S();return A(e,y)},X=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Y(y-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=S());return e}(R(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=X(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+D+e+$+e+e;case 6828:case 4268:return U+e+$+e+e;case 6165:return U+e+$+"flex-"+e+e;case 5187:return U+e+l(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+$+"flex-$1$2")+e;case 5443:return U+e+$+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return U+e+$+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+$+l(e,"shrink","negative")+e;case 5292:return U+e+$+l(e,"basis","preferred-size")+e;case 6060:return U+"box-"+l(e,"-grow","")+U+e+$+l(e,"grow","positive")+e;case 4554:return U+l(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+$+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+D+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+U)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===u(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+$+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return U+e+$+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+$+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+$+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+$+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case B:e.return=ne(e.value,e.length);break;case F:return H([C(e,{value:l(e.value,"@","@"+U)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([C(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([C(e,{props:[l(t,/:(plac\w+)/,":"+U+"input-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,$+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||re,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d=[V,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var t=h(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([ee,te].concat(a,d));i=function(e,t,n,r){c=n,H(K(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return p.sheet.hydrate(l),p}},7923:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},7576:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,T:()=>l,w:()=>s});var r=n(9950),o=n(8603),i=(n(9015),n(6477),r.createContext("undefined"!==typeof HTMLElement?(0,o.A)({key:"css"}):null)),a=i.Provider,s=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(i);return e(t,o,n)}))},l=r.createContext({})},8283:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(7576),o=n(9950),i=n(1783),a=n(6477),s=n(9015),l=(n(8603),n(3876),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,o.useContext(r.T)),c=o.useRef();return(0,a.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}var u=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},9015:(e,t,n)=>{"use strict";n.d(t,{J:()=>m});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(7923),i=!1,a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===r[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},f="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function h(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return p={name:o.name,styles:o.styles,next:p},o.name;var a=n;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)p={name:s.name,styles:s.styles,next:p},s=s.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=h(e,t,n[o])+";";else for(var a in n){var s=n[a];if("object"!==typeof s){var l=s;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":c(l)&&(r+=u(a)+":"+d(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&i)throw new Error(f);if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var p=h(e,t,s);switch(a){case"animation":case"animationName":r+=u(a)+":"+p+";";break;default:r+=a+"{"+p+"}"}}else for(var g=0;g<s.length;g++)c(s[g])&&(r+=u(a)+":"+d(a,s[g])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=p,g=n(e);return p=l,h(e,t,g)}}var m=n;if(null==t)return m;var v=t[m];return void 0!==v?v:m}var p,g=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function m(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";p=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=h(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=h(n,t,e[a]),r)o+=i[a]}g.lastIndex=0;for(var s,l="";null!==(s=g.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:p}}},6477:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>a});var o=n(9950),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,a=i||function(e){return e()},s=i||o.useLayoutEffect},1783:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>i});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},4300:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r)}(n(9950));var o=r(n(9526)),i=n(4414);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.A=(0,o.default)((0,i.jsx)("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}),"Telegram")},9526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(6987)},7353:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(9950),o=n(5537);n(4414);const i=r.createContext(void 0);function a(e){let{props:t,name:n}=e;return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?(0,o.A)(i.defaultProps,r):i.styleOverrides||i.variants?r:(0,o.A)(i,r)}({props:t,name:n,theme:{components:r.useContext(i)}})}function s(e){return a(e)}},7775:(e,t,n)=>{"use strict";n.d(t,{A:()=>U});var r=n(8168),o=n(8587),i=n(8099),a=n(7483),s=n(8076),l=n(505),c=n(2860);var u=n(9269);const d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},p={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function C(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,o):"dark"===t&&(e.dark=(0,u.e$)(e.main,i)))}function k(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,o.A)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),k=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(t),S=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[500],light:p[300],dark:p[700]}:{main:p[700],light:p[400],dark:p[800]}}(t),E=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),_=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),A=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(t);function T(e){return(0,u.eM)(e,x.text.primary)>=n?x.text.primary:w.text.primary}const R=e=>{let{color:t,name:n,mainShade:o=500,lightShade:a=300,darkShade:l=700}=e;if(t=(0,r.A)({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,i.A)(11,n?` (${n})`:"",o));if("string"!==typeof t.main)throw new Error((0,i.A)(12,n?` (${n})`:"",JSON.stringify(t.main)));return C(t,"light",a,s),C(t,"dark",l,s),t.contrastText||(t.contrastText=T(t.main)),t},O={dark:x,light:w};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:R({color:c,name:"primary"}),secondary:R({color:k,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:R({color:S,name:"error"}),warning:R({color:A,name:"warning"}),info:R({color:E,name:"info"}),success:R({color:_,name:"success"}),grey:f,contrastThreshold:n,getContrastText:T,augmentColor:R,tonalOffset:s},O[t]),l)}const S=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const E={textTransform:"uppercase"},_='"Roboto", "Helvetica", "Arial", sans-serif';function A(e,t){const n="function"===typeof t?t(e):t,{fontFamily:i=_,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:h,pxToRem:p}=n,g=(0,o.A)(n,S);const m=s/14,v=p||(e=>e/f*m+"rem"),y=(e,t,n,o,a)=>{return(0,r.A)({fontFamily:i,fontWeight:e,fontSize:v(t),lineHeight:n},i===_?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},a,h);var s},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(u,14,1.75,.4,E),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:f,pxToRem:v,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),g,{clone:!1})}function T(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const R=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)],O=["duration","easing","delay"],P={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},L={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M(e){return`${Math.round(e)}ms`}function N(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function I(e){const t=(0,r.A)({},P,e.easing),n=(0,r.A)({},L,e.duration);return(0,r.A)({getAutoHeightDuration:N,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:i=n.standard,easing:a=t.easeInOut,delay:s=0}=r;(0,o.A)(r,O);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof i?i:M(i)} ${a} ${"string"===typeof s?s:M(s)}`)).join(",")}},e,{easing:t,duration:n})}const j={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},$=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:u={},typography:d={}}=e,f=(0,o.A)(e,$);if(e.vars)throw new Error((0,i.A)(18));const h=k(n),p=(0,c.A)(e);let g=(0,a.A)(p,{mixins:(m=p.breakpoints,v=t,(0,r.A)({toolbar:{minHeight:56,[m.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[m.up("sm")]:{minHeight:64}}},v)),palette:h,shadows:R.slice(),typography:A(h,d),transitions:I(u),zIndex:(0,r.A)({},j)});var m,v;g=(0,a.A)(g,f);for(var y=arguments.length,b=new Array(y>1?y-1:0),w=1;w<y;w++)b[w-1]=arguments[w];return g=b.reduce(((e,t)=>(0,a.A)(e,t)),g),g.unstable_sxConfig=(0,r.A)({},s.A,null==f?void 0:f.unstable_sxConfig),g.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},g}const U=D},195:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(7775).A)()},7550:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},741:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},o=e=>r(e)&&"classes"!==e},9254:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(7295),o=n(195),i=n(7550),a=n(741);const s=(0,r.Ay)({themeId:i.A,defaultTheme:o.A,rootShouldForwardProp:a.A})},1676:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5501).A},1380:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),n)}return r.clear=()=>{clearTimeout(t)},r}},6987:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>o.A,createChainedFunction:()=>i,createSvgIcon:()=>C,debounce:()=>k.A,deprecatedPropType:()=>S,isMuiElement:()=>E,ownerDocument:()=>_,ownerWindow:()=>A.A,requirePropFactory:()=>T,setRef:()=>R,unstable_ClassNameGenerator:()=>U,unstable_useEnhancedEffect:()=>O,unstable_useId:()=>M,unsupportedProp:()=>N,useControlled:()=>I,useEventCallback:()=>j.A,useForkRef:()=>$.A,useIsFocusVisible:()=>D.A});var r=n(4501),o=n(1676);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}),(()=>{}))};var a=n(8168),s=n(9950),l=n.t(s,2),c=n(8587),u=n(2004),d=n(8465),f=n(7353),h=n(9254),p=n(1763),g=n(423);function m(e){return(0,g.Ay)("MuiSvgIcon",e)}(0,p.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var v=n(4414);const y=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],b=(0,h.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,o.A)(n.color)}`],t[`fontSize${(0,o.A)(n.fontSize)}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r,o,i,a,s,l,c,u,d,f,h,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(o=r.create)?void 0:o.call(r,"fill",{duration:null==(i=t.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(f=null==(h=(t.vars||t).palette)||null==(h=h[n.color])?void 0:h.main)?f:{action:null==(p=(t.vars||t).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(g=(t.vars||t).palette)||null==(g=g.action)?void 0:g.disabled,inherit:void 0}[n.color]}})),w=s.forwardRef((function(e,t){const n=(0,f.b)({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:l="inherit",component:h="svg",fontSize:p="medium",htmlColor:g,inheritViewBox:w=!1,titleAccess:x,viewBox:C="0 0 24 24"}=n,k=(0,c.A)(n,y),S=s.isValidElement(r)&&"svg"===r.type,E=(0,a.A)({},n,{color:l,component:h,fontSize:p,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:C,hasSvgAsChild:S}),_={};w||(_.viewBox=C);const A=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&`color${(0,o.A)(t)}`,`fontSize${(0,o.A)(n)}`]};return(0,d.A)(i,m,r)})(E);return(0,v.jsxs)(b,(0,a.A)({as:h,className:(0,u.A)(A.root,i),focusable:"false",color:g,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},_,k,S&&r.props,{ownerState:E,children:[S?r.props.children:r,x?(0,v.jsx)("title",{children:x}):null]}))}));w.muiName="SvgIcon";const x=w;function C(e,t){function n(n,r){return(0,v.jsx)(x,(0,a.A)({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=x.muiName,s.memo(s.forwardRef(n))}var k=n(1380);const S=function(e,t){return()=>null};const E=n(5447).A;const _=n(6907).A;var A=n(1733);const T=function(e,t){return()=>null};const R=n(5587).A;const O=n(1399).A;let P=0;const L=l["useId".toString()];const M=function(e){if(void 0!==L){const t=L();return null!=e?e:t}return function(e){const[t,n]=s.useState(e),r=e||t;return s.useEffect((()=>{null==t&&(P+=1,n(`mui-${P}`))}),[t]),r}(e)};const N=function(e,t,n,r,o){return null};const I=function(e){let{controlled:t,default:n,name:r,state:o="value"}=e;const{current:i}=s.useRef(void 0!==t),[a,l]=s.useState(n);return[i?t:a,s.useCallback((e=>{i||l(e)}),[])]};var j=n(5018),$=n(4326),D=n(2937);const U={configure:e=>{r.A.configure(e)}}},1733:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6907);const o=function(e){return(0,r.A)(e).defaultView||window}},5018:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(9950),o=n(1399);const i=function(e){const t=r.useRef(e);return(0,o.A)((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current}},4326:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(9950),o=n(5587);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,o.A)(t,e)}))}),t)}},2937:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(9950),o=n(1824);let i=!0,a=!1;const s=new o.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function u(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const h=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!f(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},3158:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(9950);var r=n(8283),o=n(4414);function i(e){const{styles:t,defaultTheme:n={}}=e,i="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,o.jsx)(r.mL,{styles:i})}},116:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>k.A,StyledEngineProvider:()=>C,ThemeContext:()=>l.T,css:()=>y.AH,default:()=>S,internal_processStyles:()=>E,keyframes:()=>y.i7});var r=n(8168),o=n(9950),i=n(7923),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,i.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(7576),c=n(1783),u=n(9015),d=n(6477),f=s,h=function(e){return"theme"!==e},p=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?f:h},g=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,d.s)((function(){return(0,c.sk)(t,n,r)})),null},v=function e(t,n){var i,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,a=n.target);var f=g(t,n,s),h=f||p(d),v=!h("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var w=y.length,x=1;x<w;x++)b.push(y[x],y[0][x])}var C=(0,l.w)((function(e,t,n){var r=v&&e.as||d,i="",s=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=o.useContext(l.T)}"string"===typeof e.className?i=(0,c.Rk)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var w=(0,u.J)(b.concat(s),t.registered,g);i+=t.key+"-"+w.name,void 0!==a&&(i+=" "+a);var x=v&&void 0===f?p(r):h,C={};for(var k in e)v&&"as"===k||x(k)&&(C[k]=e[k]);return C.className=i,n&&(C.ref=n),o.createElement(o.Fragment,null,o.createElement(m,{cache:t,serialized:w,isStringTag:"string"===typeof r}),o.createElement(r,C))}));return C.displayName=void 0!==i?i:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=b,C.__emotion_forwardProp=f,Object.defineProperty(C,"toString",{value:function(){return"."+a}}),C.withComponent=function(t,o){return e(t,(0,r.A)({},n,o,{shouldForwardProp:g(C,o,!0)})).apply(void 0,b)},C}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){v[e]=v(e)}));var y=n(8283),b=n(8603),w=n(4414);let x;function C(e){const{injectFirst:t,children:n}=e;return t&&x?(0,w.jsx)(l.C,{value:x,children:n}):n}"object"===typeof document&&(x=(0,b.A)({key:"css",prepend:!0}));var k=n(3158);function S(e,t){return v(e,t)}const E=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},9269:(e,t,n)=>{"use strict";var r=n(4994);t.X4=h,t.e$=p,t.eM=function(e,t){const n=f(e),r=f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=g;var o=r(n(9234)),i=r(n(3383));function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,i.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,o.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,o.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function f(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function p(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function g(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?p(e,t):g(e,t)}},7295:(e,t,n)=>{"use strict";var r=n(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=g,rootShouldForwardProp:r=p,slotShouldForwardProp:l=p}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:v((0,o.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:h,skipVariantsResolver:g,skipSx:w,overridesResolver:x=y(m(h))}=c,C=(0,i.default)(c,f),k=void 0!==g?g:h&&"Root"!==h&&"root"!==h||!1,S=w||!1;let E=p;"Root"===h||"root"===h?E=r:h?E=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const _=(0,a.default)(e,(0,o.default)({shouldForwardProp:E,label:undefined},C)),A=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,o.default)({},r,{theme:v({theme:r.theme,defaultTheme:n,themeId:t})})):e,T=function(r){let i=A(r);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];const c=s?s.map(A):[];d&&x&&c.push((e=>{const r=v((0,o.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const i=r.components[d].styleOverrides,a={};return Object.entries(i).forEach((t=>{let[n,i]=t;a[n]=b(i,(0,o.default)({},e,{theme:r}))})),x(e,a)})),d&&!k&&c.push((e=>{var r;const i=v((0,o.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==i||null==(r=i.components)||null==(r=r[d])?void 0:r.variants},(0,o.default)({},e,{theme:i}))})),S||c.push(u);const f=c.length-s.length;if(Array.isArray(r)&&f>0){const e=new Array(f).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const h=_(i,...c);return e.muiName&&(h.muiName=e.muiName),h};return _.withConfig&&(T.withConfig=_.withConfig),T}};var o=r(n(4634)),i=r(n(4893)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(116)),s=n(7785),l=(r(n(304)),r(n(8399)),r(n(9904))),c=r(n(8807));const u=["ownerState"],d=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g=(0,l.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function y(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,i.default)(t,u);const a="function"===typeof e?e((0,o.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,o.default)({ownerState:n},r))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,i.default)(a,d);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,o.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.default)({ownerState:n},r,n)):e.style))})),t}return a}},8286:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>a,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>o});var r=n(7483);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||i;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"===typeof t){const e=r.breakpoints||i;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];const a=[t,...o].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(t),a)}function u(e){let{values:t,breakpoints:n,base:r}=e;const o=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),i=Object.keys(o);if(0===i.length)return t;let a;return i.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[a],a=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[a],a=n):e[n]=t,e)),{})}},86:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},3628:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(8587),o=n(8168);const i=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,o.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,i),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function f(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-s/100}${n})`}function h(e,r){const o=u.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"===typeof t[u[o]]?t[u[o]]:r)-s/100}${n})`}return(0,o.A)({keys:u,values:c,up:d,down:f,between:h,only:function(e){return u.indexOf(e)+1<u.length?h(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?f(u[t]):h(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},2860:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(8168),o=n(8587),i=n(7483),a=n(3628);const s={borderRadius:4};var l=n(7937);var c=n(505),u=n(8076),d=n(86);const f=["breakpoints","palette","spacing","shape"];const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:h,shape:p={}}=e,g=(0,o.A)(e,f),m=(0,a.A)(t),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}(h);let y=(0,i.A)({breakpoints:m,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:v,shape:(0,r.A)({},s,p)},g);y.applyStyles=d.A;for(var b=arguments.length,w=new Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return y=w.reduce(((e,t)=>(0,i.A)(e,t)),y),y.unstable_sxConfig=(0,r.A)({},u.A,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},y}},9904:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>i.A});var r=n(2860),o=n(3628),i=n(86)},6206:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7483);const o=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},7937:(e,t,n)=>{"use strict";n.d(t,{LX:()=>p,MA:()=>h,_W:()=>g,Lc:()=>y,Ms:()=>b});var r=n(8286),o=n(2703),i=n(6206);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],o=s[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...d];function h(e,t,n,r){var i;const a=null!=(i=(0,o.Yn)(e,t,!1))?i:n;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function p(e){return h(e,"spacing",8)}function g(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function m(e,t,n,o){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=g(t,n),e)),{})}(c(n),o),a=e[n];return(0,r.NI)(e,a,i)}function v(e,t){const n=p(e.theme);return Object.keys(e).map((r=>m(e,t,r,n))).reduce(i.A,{})}function y(e){return v(e,u)}function b(e){return v(e,d)}function w(e){return v(e,f)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=d,w.propTypes={},w.filterProps=f},2703:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>i});var r=n(5501),o=n(8286);function i(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:i(e,n)||o,t&&(r=t(r,o,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,o.NI)(e,c,(e=>{let o=a(u,l,e);return e===o&&"string"===typeof e&&(o=a(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[t],c}},8076:(e,t,n)=>{"use strict";n.d(t,{A:()=>N});var r=n(7937),o=n(2703),i=n(6206);const a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,i.A)(t,r[n](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o};var s=n(8286);function l(e){return"number"!==typeof e?e:`${e}px solid`}function c(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),f=c("borderRight",l),h=c("borderBottom",l),p=c("borderLeft",l),g=c("borderColor"),m=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),w=c("outline",l),x=c("outlineColor"),C=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};C.propTypes={},C.filterProps=["borderRadius"];a(u,d,f,h,p,g,m,v,y,b,C,w,x);const k=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};k.propTypes={},k.filterProps=["gap"];const S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};S.propTypes={},S.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};E.propTypes={},E.filterProps=["rowGap"];a(k,S,E,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"}));function _(e,t){return"grey"===t?t:e}a((0,o.Ay)({prop:"color",themeKey:"palette",transform:_}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:_}));function A(e){return e<=1&&0!==e?100*e+"%":e}const T=(0,o.Ay)({prop:"width",transform:A}),R=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:A(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};R.filterProps=["maxWidth"];const O=(0,o.Ay)({prop:"minWidth",transform:A}),P=(0,o.Ay)({prop:"height",transform:A}),L=(0,o.Ay)({prop:"maxHeight",transform:A}),M=(0,o.Ay)({prop:"minHeight",transform:A}),N=((0,o.Ay)({prop:"size",cssProperty:"width",transform:A}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:A}),a(T,R,O,P,L,M,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:_},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_},backgroundColor:{themeKey:"palette",transform:_},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:k},rowGap:{style:E},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:A},maxWidth:{style:R},minWidth:{transform:A},height:{transform:A},maxHeight:{transform:A},minHeight:{transform:A},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},237:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(8587),i=n(7483),a=n(8076);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,o.A)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,i.Q)(e)?(0,r.A)({},a,e):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:u})}},8807:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>i.A});var r=n(505),o=n(237),i=n(8076)},505:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(5501),o=n(6206),i=n(2703),a=n(8286),s=n(8076);function l(){function e(e,t,n,o){const s={[e]:t,theme:n},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:f}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const h=(0,i.Yn)(n,u)||{};if(f)return f(s);return(0,a.NI)(s,t,(t=>{let n=(0,i.BO)(h,d,t);return t===n&&"string"===typeof t&&(n=(0,i.BO)(h,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const i=(0,a.EU)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==i&&void 0!==i)if("object"===typeof i)if(c[n])u=(0,o.A)(u,e(n,i,l,c));else{const e=(0,a.NI)({theme:l},i,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(r);return t.every((e=>o.size===Object.keys(e).length))}(e,i)?u=(0,o.A)(u,e):u[n]=t({sx:i,theme:l})}else u=(0,o.A)(u,e(n,i,l,c))})),(0,a.vf)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}const c=l();c.filterProps=["sx"];const u=c},4501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},5501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8099);function o(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(5501)},3383:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},8465:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},7483:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Q:()=>o});var r=n(8168);function o(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function i(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=n.clone?(0,r.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{o(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&o(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=o(t[r])?i(t[r]):t[r]:s[r]=t[r]})),s}},7785:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(7483)},8099:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},9234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(8099)},423:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i});var r=n(4501);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i=o[t];return i?`${n}-${i}`:`${r.A.generate(e)}-${t}`}},1763:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(423);function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o={};return t.forEach((t=>{o[t]=(0,r.Ay)(e,t,n)})),o}},8399:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>i});var r=n(6429);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){const t=`${e}`.match(o);return t&&t[1]||""}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||i(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo");default:return}}}},5447:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9950);function o(e,t){var n,o;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},6907:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},5537:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8168);function o(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.A)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[i][e]=o(a[e],s[e])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=e[i])})),n}},5587:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},1399:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9950);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},1824:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>s});var r=n(9950);const o={};const i=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,i),e}},2414:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(n){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"===typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},3876:(e,t,n)=>{"use strict";var r=n(630),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!i[v]&&(!r||!r[v])&&(!g||!g[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},2138:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case m:case g:case l:return e;default:return t}}case o:return t}}}function C(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||x(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},630:(e,t,n)=>{"use strict";e.exports=n(2138)},3450:function(e,t,n){e=n.nmd(e),function(n){"use strict";var r={};n.PubSub?(r=n.PubSub,console.warn("PubSub already loaded, using existing version")):(n.PubSub=r,function(e){var t={},n=-1,r="*";function o(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function a(e,t,n){try{e(t,n)}catch(r){setTimeout(i(r),0)}}function s(e,t,n){e(t,n)}function l(e,n,r,o){var i,l=t[n],c=o?s:a;if(Object.prototype.hasOwnProperty.call(t,n))for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&c(l[i],e,r)}function c(e,t,n){return function(){var o=String(e),i=o.lastIndexOf(".");for(l(e,e,t,n);-1!==i;)i=(o=o.substr(0,i)).lastIndexOf("."),l(e,o,t,n);l(e,r,t,n)}}function u(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&o(t[n]))}function d(e){for(var t=String(e),n=u(t)||u(r),o=t.lastIndexOf(".");!n&&-1!==o;)o=(t=t.substr(0,o)).lastIndexOf("."),n=u(t);return n}function f(e,t,n,r){var o=c(e="symbol"===typeof e?e.toString():e,t,r);return!!d(e)&&(!0===n?o():setTimeout(o,0),!0)}e.publish=function(t,n){return f(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return f(t,n,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!==typeof r)return!1;e="symbol"===typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(t,e)||(t[e]={});var o="uid_"+String(++n);return t[e][o]=r,o},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,(function(){e.unsubscribe(r),n.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,o=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])o++;break}return o},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,o,i,a=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},s="string"===typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||a(n)),l=!s&&"string"===typeof n,c="function"===typeof n,u=!1;if(!s){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o=t[r],l&&o[n]){delete o[n],u=n;break}if(c)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&o[i]===n&&(delete o[i],u=!0)}return u}e.clearSubscriptions(n)}}(r)),void 0!==e&&e.exports&&(t=e.exports=r),t.PubSub=r,e.exports=t=r}("object"===typeof window&&window||this)},8345:(e,t,n)=>{"use strict";var r=n(9950),o=n(5340);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),A=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function I(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=N&&e[N]||e["@@iterator"])?e:null}var j,$=Object.assign;function D(e){if(void 0===j)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var U=!1;function W(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function z(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 1:return e=W(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case C:return"Portal";case E:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case O:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return B(e(t))}catch(n){}}return null}function F(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return $({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=$({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,ke=null,Se=null;function Ee(e){if(e=wo(e)){if("function"!==typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function _e(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Ae(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Te(e,t){return e(t)}function Re(){}var Oe=!1;function Pe(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return Te(e,t,n)}finally{Oe=!1,(null!==ke||null!==Se)&&(Re(),Ae())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=Co(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Me=!1;if(u)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ue){Me=!1}function Ie(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var je=!1,$e=null,De=!1,Ue=null,We={onError:function(e){je=!0,$e=e}};function ze(e,t,n,r,o,i,a,s,l){je=!1,$e=null,Ie.apply(We,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Be(e)!==e)throw Error(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ze=o.unstable_requestPaint,Ye=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,Ct,kt,St,Et,_t=!1,At=[],Tt=null,Rt=null,Ot=null,Pt=new Map,Lt=new Map,Mt=[],Nt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function jt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function $t(e){var t=bo(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Et(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ut(e,t,n){Dt(e)&&n.delete(t)}function Wt(){_t=!1,null!==Tt&&Dt(Tt)&&(Tt=null),null!==Rt&&Dt(Rt)&&(Rt=null),null!==Ot&&Dt(Ot)&&(Ot=null),Pt.forEach(Ut),Lt.forEach(Ut)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Wt)))}function Bt(e){function t(t){return zt(t,e)}if(0<At.length){zt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&zt(Tt,e),null!==Rt&&zt(Rt,e),null!==Ot&&zt(Ot,e),Pt.forEach(t),Lt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)$t(n),null===n.blockedOn&&Mt.shift()}var Ft=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var o=bt,i=Ft.transition;Ft.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=o,Ft.transition=i}}function Kt(e,t,n,r){var o=bt,i=Ft.transition;Ft.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=o,Ft.transition=i}}function qt(e,t,n,r){if(Ht){var o=Qt(e,t,n,r);if(null===o)Hr(e,t,r,Gt,n),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=jt(Tt,e,t,n,r,o),!0;case"dragenter":return Rt=jt(Rt,e,t,n,r,o),!0;case"mouseover":return Ot=jt(Ot,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pt.set(i,jt(Pt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lt.set(i,jt(Lt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Qt(e,t,n,r))&&Hr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Qt(e,t,n,r){if(Gt=null,null!==(e=bo(e=xe(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Zt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return $(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=$({},cn,{view:0,detail:0}),fn=on(dn),hn=$({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),gn=on($({},hn,{dataTransfer:0})),mn=on($({},dn,{relatedTarget:0})),vn=on($({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=$({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on($({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function En(){return Sn}var _n=$({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(_n),Tn=on($({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on($({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),On=on($({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=$({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=on(Pn),Mn=[9,13,27,32],Nn=u&&"CompositionEvent"in window,In=null;u&&"documentMode"in document&&(In=document.documentMode);var jn=u&&"TextEvent"in window&&!In,$n=u&&(!Nn||In&&8<In&&11>=In),Dn=String.fromCharCode(32),Un=!1;function Wn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Fn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Vn(e,t,n,r){_e(r),0<(t=Kr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,qn=null;function Gn(e){Dr(e,0)}function Qn(e){if(q(xo(e)))return e}function Zn(e,t){if("change"===e)return t}var Yn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Xn=Jn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),qn=Kn=null)}function nr(e){if("value"===e.propertyName&&Qn(qn)){var t=[];Vn(t,qn,e,xe(e)),Pe(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(qn)}function ir(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==G(r)||("selectionStart"in(r=mr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Kr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},kr={},Sr={};function Er(e){if(kr[e])return kr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var _r=Er("animationend"),Ar=Er("animationiteration"),Tr=Er("animationstart"),Rr=Er("transitionend"),Or=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(e,t){Or.set(e,t),l(t,[e])}for(var Mr=0;Mr<Pr.length;Mr++){var Nr=Pr[Mr];Lr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Lr(_r,"onAnimationEnd"),Lr(Ar,"onAnimationIteration"),Lr(Tr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Rr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function $r(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(ze.apply(this,arguments),je){if(!je)throw Error(i(198));var u=$e;je=!1,$e=null,De||(De=!0,Ue=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;$r(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;$r(o,s,c),i=l}}}if(De)throw e=Ue,De=!1,Ue=null,e}function Ur(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Fr(t,e,2,!1),n.add(r))}function Wr(e,t,n){var r=0;t&&(r|=4),Fr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[zr]){e[zr]=!0,a.forEach((function(t){"selectionchange"!==t&&(jr.has(t)||Wr(t,!1,e),Wr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Wr("selectionchange",!1,t))}}function Fr(e,t,n,r){switch(Zt(t)){case 1:var o=Vt;break;case 4:o=Kt;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Pe((function(){var r=i,o=xe(n),a=[];e:{var s=Or.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":c="focus",l=mn;break;case"focusout":c="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case _r:case Ar:case Tr:l=vn;break;case Rr:l=On;break;case"scroll":l=fn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==f&&(null!=(g=Le(p,f))&&u.push(Vr(p,g,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[go])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=Be(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=pn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,g="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:xo(l),h=null==c?s:xo(c),(s=new u(g,p+"leave",l,n,o)).target=d,s.relatedTarget=h,g=null,bo(o)===r&&((u=new u(f,p+"enter",c,n,o)).target=h,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(f=c,p=0,h=u=l;h;h=qr(h))p++;for(h=0,g=f;g;g=qr(g))h++;for(;0<p-h;)u=qr(u),p--;for(;0<h-p;)f=qr(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=qr(u),f=qr(f)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?xo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Zn;else if(Hn(s))if(Yn)m=ar;else{m=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ir);switch(m&&(m=m(e,r))?Vn(a,m,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?xo(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(mr=v,vr=r,yr=null);break;case"focusout":yr=vr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Wn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&($n&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=en()):(Xt="value"in(Yt=o)?Yt.value:Yt.textContent,Bn=!0)),0<(v=Kr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Un=!0,Dn);case"textInput":return(e=t.data)===Dn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Nn&&Wn(e,t)?(e=en(),Jt=Xt=Yt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $n&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Kr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Dr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Le(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Le(e,t))&&r.push(Vr(e,i,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Le(n,i))&&a.unshift(Vr(n,l,s)):o||null!=(l=Le(n,i))&&a.push(Vr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function Yr(e){return("string"===typeof e?e:""+e).replace(Qr,"\n").replace(Zr,"")}function Xr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),ho="__reactFiber$"+fo,po="__reactProps$"+fo,go="__reactContainer$"+fo,mo="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[ho])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[ho]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Co(e){return e[po]||null}var ko=[],So=-1;function Eo(e){return{current:e}}function _o(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function Ao(e,t){So++,ko[So]=e.current,e.current=t}var To={},Ro=Eo(To),Oo=Eo(!1),Po=To;function Lo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function No(){_o(Oo),_o(Ro)}function Io(e,t,n){if(Ro.current!==To)throw Error(i(168));Ao(Ro,t),Ao(Oo,n)}function jo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,F(e)||"Unknown",o));return $({},n,r)}function $o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Po=Ro.current,Ao(Ro,e),Ao(Oo,Oo.current),!0}function Do(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=jo(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,_o(Oo),_o(Ro),Ao(Ro,e)):_o(Oo),Ao(Oo,n)}var Uo=null,Wo=!1,zo=!1;function Bo(e){null===Uo?Uo=[e]:Uo.push(e)}function Fo(){if(!zo&&null!==Uo){zo=!0;var e=0,t=bt;try{var n=Uo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Uo=null,Wo=!1}catch(o){throw null!==Uo&&(Uo=Uo.slice(e+1)),qe(Je,Fo),o}finally{bt=t,zo=!1}}return null}var Ho=[],Vo=0,Ko=null,qo=0,Go=[],Qo=0,Zo=null,Yo=1,Xo="";function Jo(e,t){Ho[Vo++]=qo,Ho[Vo++]=Ko,Ko=e,qo=t}function ei(e,t,n){Go[Qo++]=Yo,Go[Qo++]=Xo,Go[Qo++]=Zo,Zo=e;var r=Yo;e=Xo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Yo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Yo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Ko;)Ko=Ho[--Vo],Ho[Vo]=null,qo=Ho[--Vo],Ho[Vo]=null;for(;e===Zo;)Zo=Go[--Qo],Go[Qo]=null,Xo=Go[--Qo],Go[Qo]=null,Yo=Go[--Qo],Go[Qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zo?{id:Yo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw hi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=co(e.nextSibling)}function pi(){oi=ri=null,ii=!1}function gi(e){null===ai?ai=[e]:ai.push(e)}var mi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=$c(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===L&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Dc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Ic(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=$c(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case C:return(t=Dc(t,e.mode,n)).return=e,t;case L:return f(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Ic(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case C:return n.key===o?u(e,t,n,r):null;case L:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||I(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function p(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case L:return p(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function g(o,i,s,l){for(var c=null,u=null,d=i,g=i=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=h(o,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,g),null===u?c=v:u.sibling=v,u=v,d=m}if(g===s.length)return n(o,d),ii&&Jo(o,g),c;if(null===d){for(;g<s.length;g++)null!==(d=f(o,s[g],l))&&(i=a(d,i,g),null===u?c=d:u.sibling=d,u=d);return ii&&Jo(o,g),c}for(d=r(o,d);g<s.length;g++)null!==(m=p(d,o,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=a(m,i,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(o,e)})),ii&&Jo(o,g),c}function m(o,s,l,c){var u=I(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=h(o,g,y.value,c);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),s=a(b,s,m),null===d?u=b:d.sibling=b,d=b,g=v}if(y.done)return n(o,g),ii&&Jo(o,m),u;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=f(o,y.value,c))&&(s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return ii&&Jo(o,m),u}for(g=r(o,g);!y.done;m++,y=l.next())null!==(y=p(g,o,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),ii&&Jo(o,m),u}return function e(r,i,a,l){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===k){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===L&&bi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=vi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===k?((i=Ic(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Nc(a.type,a.key,a.props,null,r.mode,l)).ref=vi(r,i,a),l.return=r,r=l)}return s(r);case C:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Dc(a,r.mode,l)).return=r,r=i}return s(r);case L:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return g(r,i,a,l);if(I(a))return m(r,i,a,l);yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=$c(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var xi=wi(!0),Ci=wi(!1),ki=Eo(null),Si=null,Ei=null,_i=null;function Ai(){_i=Ei=Si=null}function Ti(e){var t=ki.current;_o(ki),e._currentValue=t}function Ri(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){Si=e,_i=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===Si)throw Error(i(308));Ei=e,Si.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Li=null;function Mi(e){null===Li?Li=[e]:Li.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ii(e,r)}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ji=!1;function $i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Di(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Tl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function zi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Bi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fi(e,t,n,r){var o=e.updateQueue;ji=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(f=t,h=n,g.tag){case 1:if("function"===typeof(p=g.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"===typeof(p=g.payload)?p.call(h,d,f):p)||void 0===f)break e;d=$({},d,f);break e;case 2:ji=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);jl|=a,e.lanes=a,e.memoizedState=d}}function Hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Vi={},Ki=Eo(Vi),qi=Eo(Vi),Gi=Eo(Vi);function Qi(e){if(e===Vi)throw Error(i(174));return e}function Zi(e,t){switch(Ao(Gi,t),Ao(qi,e),Ao(Ki,Vi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(Ki),Ao(Ki,t)}function Yi(){_o(Ki),_o(qi),_o(Gi)}function Xi(e){Qi(Gi.current);var t=Qi(Ki.current),n=le(t,e.type);t!==n&&(Ao(qi,e),Ao(Ki,n))}function Ji(e){qi.current===e&&(_o(Ki),_o(qi))}var ea=Eo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,ha=0;function pa(){throw Error(i(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:es,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Xa,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=d,jl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,jl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ka(){}function Sa(e,t){var n=sa,r=ba(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,bs=!0),r=r.queue,ja(Aa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Pa(9,_a.bind(null,n,r,o,t),void 0,null),null===Rl)throw Error(i(349));0!==(30&aa)||Ea(n,t,o)}return o}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function _a(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Ra(e)}function Aa(e,t,n){return n((function(){Ta(t)&&Ra(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ra(e){var t=Ii(e,1);null!==t&&nc(t,e,1,-1)}function Oa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function La(){return ba().memoizedState}function Ma(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Pa(1|t,n,void 0,void 0===r?null:r)}function Na(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Pa(t,n,i,r))}sa.flags|=e,o.memoizedState=Pa(1|t,n,i,r)}function Ia(e,t){return Ma(8390656,8,e,t)}function ja(e,t){return Na(2048,8,e,t)}function $a(e,t){return Na(4,2,e,t)}function Da(e,t){return Na(4,4,e,t)}function Ua(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Wa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Na(4,4,Ua.bind(null,t,e),n)}function za(){}function Ba(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=gt(),sa.lanes|=n,jl|=n,e.baseState=!0),t)}function Va(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ka(){return ba().memoizedState}function qa(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qa(e))Za(t,n);else if(null!==(n=Ni(e,t,n,r))){nc(n,e,r,ec()),Ya(n,t,r)}}function Ga(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qa(e))Za(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Mi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ni(e,t,o,r))&&(nc(n,e,r,o=ec()),Ya(n,t,r))}}function Qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Za(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ya(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Xa={readContext:Pi,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:Pi,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:Ia,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ma(4194308,4,Ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Oa,useDebugValue:za,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Va.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Rl)throw Error(i(349));0!==(30&aa)||Ea(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ia(Aa.bind(null,r,a,e),[e]),r.flags|=2048,Pa(9,_a.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Rl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Yo&~(1<<32-at(Yo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Pi,useCallback:Ba,useContext:Pi,useEffect:ja,useImperativeHandle:Wa,useInsertionEffect:$a,useLayoutEffect:Da,useMemo:Fa,useReducer:xa,useRef:La,useState:function(){return xa(wa)},useDebugValue:za,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ka,unstable_isNewReconciler:!1},ts={readContext:Pi,useCallback:Ba,useContext:Pi,useEffect:ja,useImperativeHandle:Wa,useInsertionEffect:$a,useLayoutEffect:Da,useMemo:Fa,useReducer:Ca,useRef:La,useState:function(){return Ca(wa)},useDebugValue:za,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[Ca(wa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ka,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=$({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:$({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ui(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Wi(e,i,o))&&(nc(t,e,o,r),zi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ui(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Wi(e,i,o))&&(nc(t,e,o,r),zi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Ui(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Wi(e,o,r))&&(nc(t,e,r,n),zi(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=To,i=t.contextType;return"object"===typeof i&&null!==i?i=Pi(i):(o=Mo(t)?Po:Ro.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Lo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},$i(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Pi(i):(i=Mo(t)?Po:Ro.current,o.context=Lo(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Fi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Vl=r),ds(0,t)},n}function ps(e,t,n){(n=Ui(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ui(-1,1)).tag=2,Wi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?Ci(t,null,n,r):xi(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=ma(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Cs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Lc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Mc(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!==(131072&e.flags)&&(bs=!0)}}return _s(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ao(Ml,Ll),Ll|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ao(Ml,Ll),Ll|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ao(Ml,Ll),Ll|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ao(Ml,Ll),Ll|=r;return ws(e,t,o,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _s(e,t,n,r,o){var i=Mo(n)?Po:Ro.current;return i=Lo(t,i),Oi(t,o),n=ma(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function As(e,t,n,r,o){if(Mo(n)){var i=!0;$o(t)}else i=!1;if(Oi(t,o),null===t.stateNode)Fs(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Pi(c):c=Lo(t,c=Mo(n)?Po:Ro.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),ji=!1;var f=t.memoizedState;a.state=f,Fi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Oo.current||ji?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=ji||is(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Di(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Pi(l):l=Lo(t,l=Mo(n)?Po:Ro.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),ji=!1,f=t.memoizedState,a.state=f,Fi(t,r,a,o);var p=t.memoizedState;s!==d||f!==p||Oo.current||ji?("function"===typeof h&&(rs(t,n,h,r),p=t.memoizedState),(c=ji||is(t,n,c,r,f,p,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,i,o)}function Ts(e,t,n,r,o,i){Es(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&Do(t,n,!1),Hs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&Do(t,n,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),Zi(e,t.containerInfo)}function Os(e,t,n,r,o){return pi(),gi(o),t.flags|=256,ws(e,t,n,r),t.child}var Ps,Ls,Ms,Ns,Is={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function $s(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ao(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=jc(l,o,0,null),e=Ic(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=js(n),t.memoizedState=Is,e):Ds(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Us(e,t,s,r=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=jc({mode:"visible",children:r.children},o,0,null),(a=Ic(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xi(t,e.child,null,s),t.child.memoizedState=js(s),t.memoizedState=Is,a);if(0===(1&t.mode))return Us(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Us(e,t,s,r=us(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Rl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ii(e,o),nc(r,e,o,-1))}return gc(),Us(e,t,s,r=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ac.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Qo++]=Yo,Go[Qo++]=Xo,Go[Qo++]=Zo,Yo=e.id,Xo=e.overflow,Zo=t),t=Ds(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Mc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Mc(r,s):(s=Ic(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?js(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Is,o}return e=(s=e.child).sibling,o=Mc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ds(e,t){return(t=jc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,n,r){return null!==r&&gi(r),xi(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ws(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ri(e.return,t,n)}function zs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Bs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ws(e,n,t);else if(19===e.tag)Ws(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ao(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zs(t,!0,n,null,i);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),jl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Mo(t.type)&&No(),Ks(t),null;case 3:return r=t.stateNode,Yi(),_o(Oo),_o(Ro),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Ls(e,t),Ks(t),null;case 5:Ji(t);var o=Qi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ks(t),null}if(e=Qi(Ki.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ho]=t,r[po]=a,e=0!==(1&t.mode),n){case"dialog":Ur("cancel",r),Ur("close",r);break;case"iframe":case"object":case"embed":Ur("load",r);break;case"video":case"audio":for(o=0;o<Ir.length;o++)Ur(Ir[o],r);break;case"source":Ur("error",r);break;case"img":case"image":case"link":Ur("error",r),Ur("load",r);break;case"details":Ur("toggle",r);break;case"input":Z(r,a),Ur("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ur("invalid",r);break;case"textarea":oe(r,a),Ur("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Ur("scroll",r)}switch(n){case"input":K(r),J(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[po]=r,Ps(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Ur("cancel",e),Ur("close",e),o=r;break;case"iframe":case"object":case"embed":Ur("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ir.length;o++)Ur(Ir[o],e);o=r;break;case"source":Ur("error",e),o=r;break;case"img":case"image":case"link":Ur("error",e),Ur("load",e),o=r;break;case"details":Ur("toggle",e),o=r;break;case"input":Z(e,r),o=Q(e,r),Ur("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=$({},r,{value:void 0}),Ur("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Ur("invalid",e)}for(a in ye(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?me(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Ur("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":K(e),J(e,r,!1);break;case"textarea":K(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ks(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Qi(Gi.current),Qi(Ki.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Xr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Ks(t),null;case 13:if(_o(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))hi(),pi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[ho]=t}else pi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Nl&&(Nl=3):gc())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return Yi(),Ls(e,t),null===e&&Br(t.stateNode.containerInfo),Ks(t),null;case 10:return Ti(t.type._context),Ks(t),null;case 19:if(_o(ea),null===(a=t.memoizedState))return Ks(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Nl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ao(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>Bl&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Ks(t),null}else 2*Ye()-a.renderingStartTime>Bl&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=ea.current,Ao(ea,r?1&n|2:1&n),t):(Ks(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ll)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yi(),_o(Oo),_o(Ro),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(_o(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(ea),null;case 4:return Yi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ps=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ls=function(){},Ms=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qi(Ki.current);var i,a=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),a=[];break;case"select":o=$({},o,{value:void 0}),r=$({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Ur("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qs=!1,Zs=!1,Ys="function"===typeof WeakSet?WeakSet:Set,Xs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ho],delete t[po],delete t[mo],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Zs||Js(n,t);case 6:var r=ul,o=dl;ul=null,fl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Bt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Zs&&(Js(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Zs=(r=Zs)||null!==n.memoizedState,fl(e,t,n),Zs=r):fl(e,t,n);break;default:fl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach((function(t){var r=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));hl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Sc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(m){Sc(e,e.return,m)}try{nl(5,e,e.return)}catch(m){Sc(e,e.return,m)}}break;case 1:gl(t,e),vl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(gl(t,e),vl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(m){Sc(e,e.return,m)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(o,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?me(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(l){case"input":X(o,a);break;case"textarea":ie(o,a);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(o,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[po]=a}catch(m){Sc(e,e.return,m)}}break;case 6:if(gl(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(m){Sc(e,e.return,m)}}break;case 3:if(gl(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(m){Sc(e,e.return,m)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(zl=Ye())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Zs=(u=Zs)||d,gl(t,e),Zs=u):gl(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(p=(h=Xs).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Js(h,h.return);var g=h.stateNode;if("function"===typeof g.componentWillUnmount){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Sc(r,n,m)}}break;case 5:Js(h,h.return);break;case 22:if(null!==h.memoizedState){xl(f);continue}}null!==p?(p.return=h,Xs=p):xl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(m){Sc(e,e.return,m)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){Sc(e,e.return,m)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),vl(e),4&r&&pl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Xs=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Qs;var c=Zs;if(Qs=a,(Zs=l)&&!c)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?Cl(o):null!==l?(l.return=a,Xs=l):Cl(o);for(;null!==i;)Xs=i,bl(i,t,n),i=i.sibling;Xs=o,Qs=s,Zs=c}wl(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Xs=i):wl(e)}}function wl(e){for(;null!==Xs;){var t=Xs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Hi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Bt(f)}}}break;default:throw Error(i(163))}Zs||512&t.flags&&ol(t)}catch(h){Sc(t,t.return,h)}}if(t===e){Xs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xs=n;break}Xs=t.return}}function xl(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function Cl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Sc(t,o,l)}}var i=t.return;try{ol(t)}catch(l){Sc(t,i,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var kl,Sl=Math.ceil,El=w.ReactCurrentDispatcher,_l=w.ReactCurrentOwner,Al=w.ReactCurrentBatchConfig,Tl=0,Rl=null,Ol=null,Pl=0,Ll=0,Ml=Eo(0),Nl=0,Il=null,jl=0,$l=0,Dl=0,Ul=null,Wl=null,zl=0,Bl=1/0,Fl=null,Hl=!1,Vl=null,Kl=null,ql=!1,Gl=null,Ql=0,Zl=0,Yl=null,Xl=-1,Jl=0;function ec(){return 0!==(6&Tl)?Ye():-1!==Xl?Xl:Xl=Ye()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==Pl?Pl&-Pl:null!==mi.transition?(0===Jl&&(Jl=gt()),Jl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Zt(e.type)}function nc(e,t,n,r){if(50<Zl)throw Zl=0,Yl=null,Error(i(185));vt(e,n,r),0!==(2&Tl)&&e===Rl||(e===Rl&&(0===(2&Tl)&&($l|=n),4===Nl&&sc(e,Pl)),rc(e,r),1===n&&0===Tl&&0===(1&t.mode)&&(Bl=Ye()+500,Wo&&Fo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Rl?Pl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Wo=!0,Bo(e)}(lc.bind(null,e)):Bo(lc.bind(null,e)),ao((function(){0===(6&Tl)&&Fo()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Rc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Xl=-1,Jl=0,0!==(6&Tl))throw Error(i(327));var n=e.callbackNode;if(Cc()&&e.callbackNode!==n)return null;var r=ft(e,e===Rl?Pl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=mc(e,r);else{t=r;var o=Tl;Tl|=2;var a=pc();for(Rl===e&&Pl===t||(Fl=null,Bl=Ye()+500,fc(e,t));;)try{yc();break}catch(l){hc(e,l)}Ai(),El.current=a,Tl=o,null!==Ol?t=0:(Rl=null,Pl=0,t=Nl)}if(0!==t){if(2===t&&(0!==(o=pt(e))&&(r=o,t=ic(e,o))),1===t)throw n=Il,fc(e,0),sc(e,r),rc(e,Ye()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=mc(e,r))&&(0!==(a=pt(e))&&(r=a,t=ic(e,a))),1===t))throw n=Il,fc(e,0),sc(e,r),rc(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xc(e,Wl,Fl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=zl+500-Ye())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,Wl,Fl),t);break}xc(e,Wl,Fl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Wl,Fl),r);break}xc(e,Wl,Fl);break;default:throw Error(i(329))}}}return rc(e,Ye()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Ul;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=Wl,Wl=n,null!==t&&ac(t)),e}function ac(e){null===Wl?Wl=e:Wl.push.apply(Wl,e)}function sc(e,t){for(t&=~Dl,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Tl))throw Error(i(327));Cc();var t=ft(e,0);if(0===(1&t))return rc(e,Ye()),null;var n=mc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Il,fc(e,0),sc(e,t),rc(e,Ye()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Wl,Fl),rc(e,Ye()),null}function cc(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Bl=Ye()+500,Wo&&Fo())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Tl)&&Cc();var t=Tl;Tl|=1;var n=Al.transition,r=bt;try{if(Al.transition=null,bt=1,e)return e()}finally{bt=r,Al.transition=n,0===(6&(Tl=t))&&Fo()}}function dc(){Ll=Ml.current,_o(Ml)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&No();break;case 3:Yi(),_o(Oo),_o(Ro),ra();break;case 5:Ji(r);break;case 4:Yi();break;case 13:case 19:_o(ea);break;case 10:Ti(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Rl=e,Ol=e=Mc(e.current,null),Pl=Ll=t,Nl=0,Il=null,Dl=$l=jl=0,Wl=Ul=null,null!==Li){for(t=0;t<Li.length;t++)if(null!==(r=(n=Li[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Li=null}return e}function hc(e,t){for(;;){var n=Ol;try{if(Ai(),oa.current=Xa,ua){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,_l.current=null,null===n||null===n.return){Nl=1,Il=t,Ol=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Pl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,vs(p,s,l,0,t),1&p.mode&&gs(a,u,t),c=u;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}if(0===(1&t)){gs(a,u,t),gc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=ms(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),gi(cs(c,l));break e}}a=c=cs(c,l),4!==Nl&&(Nl=2),null===Ul?Ul=[a]:Ul.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,hs(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Kl||!Kl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function pc(){var e=El.current;return El.current=Xa,null===e?Xa:e}function gc(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Rl||0===(268435455&jl)&&0===(268435455&$l)||sc(Rl,Pl)}function mc(e,t){var n=Tl;Tl|=2;var r=pc();for(Rl===e&&Pl===t||(Fl=null,fc(e,t));;)try{vc();break}catch(o){hc(e,o)}if(Ai(),Tl=n,El.current=r,null!==Ol)throw Error(i(261));return Rl=null,Pl=0,Nl}function vc(){for(;null!==Ol;)bc(Ol)}function yc(){for(;null!==Ol&&!Qe();)bc(Ol)}function bc(e){var t=kl(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,null===t?wc(e):Ol=t,_l.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=qs(n,t,Ll)))return void(Ol=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Ol=n);if(null===e)return Nl=6,void(Ol=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===Nl&&(Nl=5)}function xc(e,t,n){var r=bt,o=Al.transition;try{Al.transition=null,bt=1,function(e,t,n,r){do{Cc()}while(null!==Gl);if(0!==(6&Tl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Rl&&(Ol=Rl=null,Pl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||ql||(ql=!0,Rc(tt,(function(){return Cc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Al.transition,Al.transition=null;var s=bt;bt=1;var l=Tl;Tl|=4,_l.current=null,function(e,t){if(eo=Ht,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===o&&(l=s),h===a&&++d===r&&(c=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(x){Sc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}g=tl,tl=!1}(e,n),ml(n,e),pr(to),Ht=!!eo,to=eo=null,e.current=n,yl(n,e,o),Ze(),Tl=l,bt=s,Al.transition=a}else e.current=n;if(ql&&(ql=!1,Gl=e,Ql=o),a=e.pendingLanes,0===a&&(Kl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Vl,Vl=null,e;0!==(1&Ql)&&0!==e.tag&&Cc(),a=e.pendingLanes,0!==(1&a)?e===Yl?Zl++:(Zl=0,Yl=e):Zl=0,Fo()}(e,t,n,r)}finally{Al.transition=o,bt=r}return null}function Cc(){if(null!==Gl){var e=wt(Ql),t=Al.transition,n=bt;try{if(Al.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Ql=0,0!==(6&Tl))throw Error(i(331));var o=Tl;for(Tl|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(0!==(16&Xs.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Xs=u;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var h=(d=Xs).sibling,p=d.return;if(il(d),d===u){Xs=null;break}if(null!==h){h.return=p,Xs=h;break}Xs=p}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Xs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(0!==(2048&(a=Xs).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var w=(s=Xs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Xs=w;else e:for(s=b;null!==Xs;){if(0!==(2048&(l=Xs).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(C){Sc(l,l.return,C)}if(l===s){Xs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Xs=x;break e}Xs=l.return}}if(Tl=o,Fo(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(C){}r=!0}return r}finally{bt=n,Al.transition=t}}return!1}function kc(e,t,n){e=Wi(e,t=hs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Kl||!Kl.has(r))){t=Wi(t,e=ps(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Pl&n)===n&&(4===Nl||3===Nl&&(130023424&Pl)===Pl&&500>Ye()-zl?fc(e,0):Dl|=n),rc(e,t)}function _c(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Ii(e,t))&&(vt(e,t,n),rc(e,n))}function Ac(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_c(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),_c(e,n)}function Rc(e,t){return qe(e,t)}function Oc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pc(e,t,n,r){return new Oc(e,t,n,r)}function Lc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Pc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nc(e,t,n,r,o,a){var s=2;if(r=e,"function"===typeof e)Lc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case k:return Ic(n.children,o,a,t);case S:s=8,o|=8;break;case E:return(e=Pc(12,n,t,2|o)).elementType=E,e.lanes=a,e;case R:return(e=Pc(13,n,t,o)).elementType=R,e.lanes=a,e;case O:return(e=Pc(19,n,t,o)).elementType=O,e.lanes=a,e;case M:return jc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case A:s=9;break e;case T:s=11;break e;case P:s=14;break e;case L:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Pc(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ic(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function jc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function $c(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function Dc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wc(e,t,n,r,o,i,a,s,l){return e=new Uc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Pc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$i(i),e}function zc(e){if(!e)return To;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mo(n))return jo(e,n,t)}return t}function Bc(e,t,n,r,o,i,a,s,l){return(e=Wc(n,r,!0,e,0,i,0,s,l)).context=zc(null),n=e.current,(i=Ui(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Wi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function Fc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ui(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Wi(o,t,a))&&(nc(e,o,a,i),zi(e,o,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oo.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Rs(t),pi();break;case 5:Xi(t);break;case 1:Mo(t.type)&&$o(t);break;case 4:Zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ao(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ao(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?$s(e,t,n):(Ao(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);Ao(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ao(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ii&&0!==(1048576&t.flags)&&ei(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fs(e,t),e=t.pendingProps;var o=Lo(t,Ro.current);Oi(t,n),o=ma(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(r)?(a=!0,$o(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,$i(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ts(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Lc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===P)return 14}return 2}(r),e=ns(r,e),o){case 0:t=_s(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Cs(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,_s(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,As(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Rs(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Di(e,t),Fi(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Os(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=Os(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pi(),r===o){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Xi(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Es(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return $s(e,t,n);case 4:return Zi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Ao(ki,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Oo.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Ui(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ri(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ri(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Oi(t,n),r=r(o=Pi(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),Cs(e,t,r,o=ns(r.type,o),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),Fs(e,t),t.tag=1,Mo(r)?(e=!0,$o(t)):e=!1,Oi(t,n),as(t,r,o),ls(t,r,o,n),Ts(null,t,r,!0,e,n);case 19:return Bs(e,t,n);case 22:return Ss(e,t,n)}throw Error(i(156,t.tag))};var qc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xc(){}function Jc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var s=o;o=function(){var e=Hc(a);s.call(e)}}Fc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Hc(a);i.call(e)}}var a=Bc(t,r,e,0,null,!1,0,"",Xc);return e._reactRootContainer=a,e[go]=a.current,Br(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=Wc(e,0,!1,null,0,!1,0,"",Xc);return e._reactRootContainer=l,e[go]=l.current,Br(8===e.nodeType?e.parentNode:e),uc((function(){Fc(t,l,n,r)})),l}(n,t,e,o,r);return Hc(a)}Qc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Fc(e,t,null,null)},Qc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Fc(null,e,null,null)})),t[go]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&$t(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Ye()),0===(6&Tl)&&(Bl=Ye()+500,Fo()))}break;case 13:uc((function(){var t=Ii(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Kc(e,1)}},Ct=function(e){if(13===e.tag){var t=Ii(e,134217728);if(null!==t)nc(t,e,134217728,ec());Kc(e,134217728)}},kt=function(e){if(13===e.tag){var t=tc(e),n=Ii(e,t);if(null!==n)nc(n,e,t,ec());Kc(e,t)}},St=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ce=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Co(r);if(!o)throw Error(i(90));q(r),X(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cc,Re=uc;var eu={usingClientEntryPoint:!1,Events:[wo,xo,Co,_e,Ae,cc]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zc(e))throw Error(i(299));var n=!1,r="",o=qc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Wc(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Br(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Yc(t))throw Error(i(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=qc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Bc(t,null,e,1,null!=n?n:null,o,0,a,s),e[go]=t.current,Br(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qc(t)},t.render=function(e,t,n){if(!Yc(t))throw Error(i(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){Jc(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Jc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},1352:(e,t,n)=>{"use strict";var r=n(7119);t.H=r.createRoot,r.hydrateRoot},7119:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(8345)},8577:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case p:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.Memo=p},6429:(e,t,n)=>{"use strict";e.exports=n(8577)},2654:(e,t,n)=>{"use strict";var r=n(9950),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},2049:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,g(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,C=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:k.current}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+T(l,0):i,x(a)?(o="",null!=e&&(o=e.replace(A,"$&/")+"/"),R(a,t,o,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+T(s=e[c],c);l+=R(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=R(s=s.value,t,o,u=i+T(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},M={transition:null},N={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:M,ReactCurrentOwner:k};function I(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.act=I,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=k.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)C.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=I,t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.3.1"},9950:(e,t,n)=>{"use strict";e.exports=n(2049)},4414:(e,t,n)=>{"use strict";e.exports=n(2654)},1761:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,h=3,p=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(m=!1,w(e),!g)if(null!==r(c))g=!0,M(C);else{var t=r(u);null!==t&&N(x,t.startTime-e)}}function C(e,n){g=!1,m&&(m=!1,y(_),_=-1),p=!0;var i=h;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!R());){var a=f.callback;if("function"===typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&N(x,d.startTime-n),l=!1}return l}finally{f=null,h=i,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,_=-1,A=5,T=-1;function R(){return!(t.unstable_now()-T<A)}function O(){if(null!==E){var e=t.unstable_now();T=e;var n=!0;try{n=E(!0,e)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"===typeof b)k=function(){b(O)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,L=P.port2;P.port1.onmessage=O,k=function(){L.postMessage(null)}}else k=function(){v(O,0)};function M(e){E=e,S||(S=!0,k())}function N(e,n){_=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,M(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(m?(y(_),_=-1):m=!0,N(x,i-a))):(e.sortIndex=s,n(c,e),g||p||(g=!0,M(C))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5340:(e,t,n)=>{"use strict";e.exports=n(1761)},4008:function(e){!function(t,n){"use strict";e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(this,(function(){"use strict";var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!==typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"===typeof atob?"undefined"!==typeof Buffer.from?(e.encodeBase64=function(e){return Buffer.from(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(Buffer.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new Buffer(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(new Buffer(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){t(e);var n,r=atob(e),o=new Uint8Array(r.length);for(n=0;n<r.length;n++)o[n]=r.charCodeAt(n);return o}),e}))},3477:(e,t,n)=>{!function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},r=function(){throw new Error("no PRNG")},o=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var a=t(),s=t([1]),l=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function g(e,t,n,r,o){var i,a=0;for(i=0;i<o;i++)a|=e[t+i]^n[r+i];return(1&a-1>>>8)-1}function m(e,t,n,r){return g(e,t,n,r,16)}function v(e,t,n,r){return g(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=i,C=a,k=s,S=l,E=c,_=u,A=d,T=f,R=h,O=p,P=g,L=m,M=v,N=y,I=b,j=w,$=0;$<20;$+=2)x^=(o=(M^=(o=(R^=(o=(E^=(o=x+M|0)<<7|o>>>25)+x|0)<<9|o>>>23)+E|0)<<13|o>>>19)+R|0)<<18|o>>>14,_^=(o=(C^=(o=(N^=(o=(O^=(o=_+C|0)<<7|o>>>25)+_|0)<<9|o>>>23)+O|0)<<13|o>>>19)+N|0)<<18|o>>>14,P^=(o=(A^=(o=(k^=(o=(I^=(o=P+A|0)<<7|o>>>25)+P|0)<<9|o>>>23)+I|0)<<13|o>>>19)+k|0)<<18|o>>>14,j^=(o=(L^=(o=(T^=(o=(S^=(o=j+L|0)<<7|o>>>25)+j|0)<<9|o>>>23)+S|0)<<13|o>>>19)+T|0)<<18|o>>>14,x^=(o=(S^=(o=(k^=(o=(C^=(o=x+S|0)<<7|o>>>25)+x|0)<<9|o>>>23)+C|0)<<13|o>>>19)+k|0)<<18|o>>>14,_^=(o=(E^=(o=(T^=(o=(A^=(o=_+E|0)<<7|o>>>25)+_|0)<<9|o>>>23)+A|0)<<13|o>>>19)+T|0)<<18|o>>>14,P^=(o=(O^=(o=(R^=(o=(L^=(o=P+O|0)<<7|o>>>25)+P|0)<<9|o>>>23)+L|0)<<13|o>>>19)+R|0)<<18|o>>>14,j^=(o=(I^=(o=(N^=(o=(M^=(o=j+I|0)<<7|o>>>25)+j|0)<<9|o>>>23)+M|0)<<13|o>>>19)+N|0)<<18|o>>>14;x=x+i|0,C=C+a|0,k=k+s|0,S=S+l|0,E=E+c|0,_=_+u|0,A=A+d|0,T=T+f|0,R=R+h|0,O=O+p|0,P=P+g|0,L=L+m|0,M=M+v|0,N=N+y|0,I=I+b|0,j=j+w|0,e[0]=x>>>0&255,e[1]=x>>>8&255,e[2]=x>>>16&255,e[3]=x>>>24&255,e[4]=C>>>0&255,e[5]=C>>>8&255,e[6]=C>>>16&255,e[7]=C>>>24&255,e[8]=k>>>0&255,e[9]=k>>>8&255,e[10]=k>>>16&255,e[11]=k>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=_>>>0&255,e[21]=_>>>8&255,e[22]=_>>>16&255,e[23]=_>>>24&255,e[24]=A>>>0&255,e[25]=A>>>8&255,e[26]=A>>>16&255,e[27]=A>>>24&255,e[28]=T>>>0&255,e[29]=T>>>8&255,e[30]=T>>>16&255,e[31]=T>>>24&255,e[32]=R>>>0&255,e[33]=R>>>8&255,e[34]=R>>>16&255,e[35]=R>>>24&255,e[36]=O>>>0&255,e[37]=O>>>8&255,e[38]=O>>>16&255,e[39]=O>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=L>>>0&255,e[45]=L>>>8&255,e[46]=L>>>16&255,e[47]=L>>>24&255,e[48]=M>>>0&255,e[49]=M>>>8&255,e[50]=M>>>16&255,e[51]=M>>>24&255,e[52]=N>>>0&255,e[53]=N>>>8&255,e[54]=N>>>16&255,e[55]=N>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=j>>>0&255,e[61]=j>>>8&255,e[62]=j>>>16&255,e[63]=j>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=0;x<20;x+=2)i^=(o=(v^=(o=(h^=(o=(c^=(o=i+v|0)<<7|o>>>25)+i|0)<<9|o>>>23)+c|0)<<13|o>>>19)+h|0)<<18|o>>>14,u^=(o=(a^=(o=(y^=(o=(p^=(o=u+a|0)<<7|o>>>25)+u|0)<<9|o>>>23)+p|0)<<13|o>>>19)+y|0)<<18|o>>>14,g^=(o=(d^=(o=(s^=(o=(b^=(o=g+d|0)<<7|o>>>25)+g|0)<<9|o>>>23)+b|0)<<13|o>>>19)+s|0)<<18|o>>>14,w^=(o=(m^=(o=(f^=(o=(l^=(o=w+m|0)<<7|o>>>25)+w|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,i^=(o=(l^=(o=(s^=(o=(a^=(o=i+l|0)<<7|o>>>25)+i|0)<<9|o>>>23)+a|0)<<13|o>>>19)+s|0)<<18|o>>>14,u^=(o=(c^=(o=(f^=(o=(d^=(o=u+c|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+f|0)<<18|o>>>14,g^=(o=(p^=(o=(h^=(o=(m^=(o=g+p|0)<<7|o>>>25)+g|0)<<9|o>>>23)+m|0)<<13|o>>>19)+h|0)<<18|o>>>14,w^=(o=(b^=(o=(y^=(o=(v^=(o=w+b|0)<<7|o>>>25)+w|0)<<9|o>>>23)+v|0)<<13|o>>>19)+y|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,n,r)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function x(e,t,n,r,o,i,a){var s,l,c=new Uint8Array(16),u=new Uint8Array(64);for(l=0;l<16;l++)c[l]=0;for(l=0;l<8;l++)c[l]=i[l];for(;o>=64;){for(y(u,c,a,w),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(s=1,l=8;l<16;l++)s=s+(255&c[l])|0,c[l]=255&s,s>>>=8;o-=64,t+=64,r+=64}if(o>0)for(y(u,c,a,w),l=0;l<o;l++)e[t+l]=n[r+l]^u[l];return 0}function C(e,t,n,r,o){var i,a,s=new Uint8Array(16),l=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(y(l,s,o,w),a=0;a<64;a++)e[t+a]=l[a];for(i=1,a=8;a<16;a++)i=i+(255&s[a])|0,s[a]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(y(l,s,o,w),a=0;a<n;a++)e[t+a]=l[a];return 0}function k(e,t,n,r,o){var i=new Uint8Array(32);b(i,r,o,w);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return C(e,t,n,a,i)}function S(e,t,n,r,o,i,a){var s=new Uint8Array(32);b(s,i,a,w);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=i[c+16];return x(e,t,n,r,o,l,s)}var E=function(e){var t,n,r,o,i,a,s,l;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function _(e,t,n,r,o,i){var a=new E(i);return a.update(n,r,o),a.finish(e,t),0}function A(e,t,n,r,o,i){var a=new Uint8Array(16);return _(a,0,n,r,o,i),m(e,t,a,0)}function T(e,t,n,r,o){var i;if(n<32)return-1;for(S(e,0,t,0,n,r,o),_(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function R(e,t,n,r,o){var i,a=new Uint8Array(32);if(n<32)return-1;if(k(a,0,32,r,o),0!==A(t,16,t,32,n-32,a))return-1;for(S(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function O(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function P(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function L(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function M(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(P(s),P(s),P(s),o=0;o<2;o++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,L(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function N(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return M(n,e),M(r,t),v(n,0,r,0)}function I(e){var t=new Uint8Array(32);return M(t,e),1&t[0]}function j(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function $(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function D(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function U(e,t,n){var r,o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,h=0,p=0,g=0,m=0,v=0,y=0,b=0,w=0,x=0,C=0,k=0,S=0,E=0,_=0,A=0,T=0,R=0,O=0,P=0,L=0,M=0,N=0,I=0,j=n[0],$=n[1],D=n[2],U=n[3],W=n[4],z=n[5],B=n[6],F=n[7],H=n[8],V=n[9],K=n[10],q=n[11],G=n[12],Q=n[13],Z=n[14],Y=n[15];i+=(r=t[0])*j,a+=r*$,s+=r*D,l+=r*U,c+=r*W,u+=r*z,d+=r*B,f+=r*F,h+=r*H,p+=r*V,g+=r*K,m+=r*q,v+=r*G,y+=r*Q,b+=r*Z,w+=r*Y,a+=(r=t[1])*j,s+=r*$,l+=r*D,c+=r*U,u+=r*W,d+=r*z,f+=r*B,h+=r*F,p+=r*H,g+=r*V,m+=r*K,v+=r*q,y+=r*G,b+=r*Q,w+=r*Z,x+=r*Y,s+=(r=t[2])*j,l+=r*$,c+=r*D,u+=r*U,d+=r*W,f+=r*z,h+=r*B,p+=r*F,g+=r*H,m+=r*V,v+=r*K,y+=r*q,b+=r*G,w+=r*Q,x+=r*Z,C+=r*Y,l+=(r=t[3])*j,c+=r*$,u+=r*D,d+=r*U,f+=r*W,h+=r*z,p+=r*B,g+=r*F,m+=r*H,v+=r*V,y+=r*K,b+=r*q,w+=r*G,x+=r*Q,C+=r*Z,k+=r*Y,c+=(r=t[4])*j,u+=r*$,d+=r*D,f+=r*U,h+=r*W,p+=r*z,g+=r*B,m+=r*F,v+=r*H,y+=r*V,b+=r*K,w+=r*q,x+=r*G,C+=r*Q,k+=r*Z,S+=r*Y,u+=(r=t[5])*j,d+=r*$,f+=r*D,h+=r*U,p+=r*W,g+=r*z,m+=r*B,v+=r*F,y+=r*H,b+=r*V,w+=r*K,x+=r*q,C+=r*G,k+=r*Q,S+=r*Z,E+=r*Y,d+=(r=t[6])*j,f+=r*$,h+=r*D,p+=r*U,g+=r*W,m+=r*z,v+=r*B,y+=r*F,b+=r*H,w+=r*V,x+=r*K,C+=r*q,k+=r*G,S+=r*Q,E+=r*Z,_+=r*Y,f+=(r=t[7])*j,h+=r*$,p+=r*D,g+=r*U,m+=r*W,v+=r*z,y+=r*B,b+=r*F,w+=r*H,x+=r*V,C+=r*K,k+=r*q,S+=r*G,E+=r*Q,_+=r*Z,A+=r*Y,h+=(r=t[8])*j,p+=r*$,g+=r*D,m+=r*U,v+=r*W,y+=r*z,b+=r*B,w+=r*F,x+=r*H,C+=r*V,k+=r*K,S+=r*q,E+=r*G,_+=r*Q,A+=r*Z,T+=r*Y,p+=(r=t[9])*j,g+=r*$,m+=r*D,v+=r*U,y+=r*W,b+=r*z,w+=r*B,x+=r*F,C+=r*H,k+=r*V,S+=r*K,E+=r*q,_+=r*G,A+=r*Q,T+=r*Z,R+=r*Y,g+=(r=t[10])*j,m+=r*$,v+=r*D,y+=r*U,b+=r*W,w+=r*z,x+=r*B,C+=r*F,k+=r*H,S+=r*V,E+=r*K,_+=r*q,A+=r*G,T+=r*Q,R+=r*Z,O+=r*Y,m+=(r=t[11])*j,v+=r*$,y+=r*D,b+=r*U,w+=r*W,x+=r*z,C+=r*B,k+=r*F,S+=r*H,E+=r*V,_+=r*K,A+=r*q,T+=r*G,R+=r*Q,O+=r*Z,P+=r*Y,v+=(r=t[12])*j,y+=r*$,b+=r*D,w+=r*U,x+=r*W,C+=r*z,k+=r*B,S+=r*F,E+=r*H,_+=r*V,A+=r*K,T+=r*q,R+=r*G,O+=r*Q,P+=r*Z,L+=r*Y,y+=(r=t[13])*j,b+=r*$,w+=r*D,x+=r*U,C+=r*W,k+=r*z,S+=r*B,E+=r*F,_+=r*H,A+=r*V,T+=r*K,R+=r*q,O+=r*G,P+=r*Q,L+=r*Z,M+=r*Y,b+=(r=t[14])*j,w+=r*$,x+=r*D,C+=r*U,k+=r*W,S+=r*z,E+=r*B,_+=r*F,A+=r*H,T+=r*V,R+=r*K,O+=r*q,P+=r*G,L+=r*Q,M+=r*Z,N+=r*Y,w+=(r=t[15])*j,a+=38*(C+=r*D),s+=38*(k+=r*U),l+=38*(S+=r*W),c+=38*(E+=r*z),u+=38*(_+=r*B),d+=38*(A+=r*F),f+=38*(T+=r*H),h+=38*(R+=r*V),p+=38*(O+=r*K),g+=38*(P+=r*q),m+=38*(L+=r*G),v+=38*(M+=r*Q),y+=38*(N+=r*Z),b+=38*(I+=r*Y),i=(r=(i+=38*(x+=r*$))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=g,e[11]=m,e[12]=v,e[13]=y,e[14]=b,e[15]=w}function W(e,t){U(e,t,t)}function z(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)W(o,o),2!==r&&4!==r&&U(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function B(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)W(o,o),1!==r&&U(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n,r){var o,i,a=new Uint8Array(32),s=new Float64Array(80),c=t(),u=t(),d=t(),f=t(),h=t(),p=t();for(i=0;i<31;i++)a[i]=n[i];for(a[31]=127&n[31]|64,a[0]&=248,j(s,r),i=0;i<16;i++)u[i]=s[i],f[i]=c[i]=d[i]=0;for(c[0]=f[0]=1,i=254;i>=0;--i)L(c,u,o=a[i>>>3]>>>(7&i)&1),L(d,f,o),$(h,c,d),D(c,c,d),$(d,u,f),D(u,u,f),W(f,h),W(p,c),U(c,d,c),U(d,u,h),$(h,c,d),D(c,c,d),W(u,c),D(d,f,p),U(c,d,l),$(c,c,f),U(d,d,c),U(c,f,p),U(f,u,s),W(u,h),L(c,u,o),L(d,f,o);for(i=0;i<16;i++)s[i+16]=c[i],s[i+32]=d[i],s[i+48]=u[i],s[i+64]=f[i];var g=s.subarray(32),m=s.subarray(16);return z(g,g),U(m,m,g),M(e,m),0}function H(e,t){return F(e,t,i)}function V(e,t){return r(t,32),H(e,t)}function K(e,t,n){var r=new Uint8Array(32);return F(r,n,t),b(e,o,r,w)}E.prototype.blocks=function(e,t,n){for(var r,o,i,a,s,l,c,u,d,f,h,p,g,m,v,y,b,w,x,C=this.fin?0:2048,k=this.h[0],S=this.h[1],E=this.h[2],_=this.h[3],A=this.h[4],T=this.h[5],R=this.h[6],O=this.h[7],P=this.h[8],L=this.h[9],M=this.r[0],N=this.r[1],I=this.r[2],j=this.r[3],$=this.r[4],D=this.r[5],U=this.r[6],W=this.r[7],z=this.r[8],B=this.r[9];n>=16;)f=d=0,f+=(k+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*M,f+=(S+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*B),f+=(E+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*z),f+=(_+=8191&(i>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*W),d=(f+=(A+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*U))>>>13,f&=8191,f+=(T+=s>>>1&8191)*(5*D),f+=(R+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*$),f+=(O+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*j),f+=(P+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),h=d+=(f+=(L+=u>>>5|C)*(5*N))>>>13,h+=k*N,h+=S*M,h+=E*(5*B),h+=_*(5*z),d=(h+=A*(5*W))>>>13,h&=8191,h+=T*(5*U),h+=R*(5*D),h+=O*(5*$),h+=P*(5*j),d+=(h+=L*(5*I))>>>13,h&=8191,p=d,p+=k*I,p+=S*N,p+=E*M,p+=_*(5*B),d=(p+=A*(5*z))>>>13,p&=8191,p+=T*(5*W),p+=R*(5*U),p+=O*(5*D),p+=P*(5*$),g=d+=(p+=L*(5*j))>>>13,g+=k*j,g+=S*I,g+=E*N,g+=_*M,d=(g+=A*(5*B))>>>13,g&=8191,g+=T*(5*z),g+=R*(5*W),g+=O*(5*U),g+=P*(5*D),m=d+=(g+=L*(5*$))>>>13,m+=k*$,m+=S*j,m+=E*I,m+=_*N,d=(m+=A*M)>>>13,m&=8191,m+=T*(5*B),m+=R*(5*z),m+=O*(5*W),m+=P*(5*U),v=d+=(m+=L*(5*D))>>>13,v+=k*D,v+=S*$,v+=E*j,v+=_*I,d=(v+=A*N)>>>13,v&=8191,v+=T*M,v+=R*(5*B),v+=O*(5*z),v+=P*(5*W),y=d+=(v+=L*(5*U))>>>13,y+=k*U,y+=S*D,y+=E*$,y+=_*j,d=(y+=A*I)>>>13,y&=8191,y+=T*N,y+=R*M,y+=O*(5*B),y+=P*(5*z),b=d+=(y+=L*(5*W))>>>13,b+=k*W,b+=S*U,b+=E*D,b+=_*$,d=(b+=A*j)>>>13,b&=8191,b+=T*I,b+=R*N,b+=O*M,b+=P*(5*B),w=d+=(b+=L*(5*z))>>>13,w+=k*z,w+=S*W,w+=E*U,w+=_*D,d=(w+=A*$)>>>13,w&=8191,w+=T*j,w+=R*I,w+=O*N,w+=P*M,x=d+=(w+=L*(5*B))>>>13,x+=k*B,x+=S*z,x+=E*W,x+=_*U,d=(x+=A*D)>>>13,x&=8191,x+=T*$,x+=R*j,x+=O*I,x+=P*N,k=f=8191&(d=(d=((d+=(x+=L*M)>>>13)<<2)+d|0)+(f&=8191)|0),S=h+=d>>>=13,E=p&=8191,_=g&=8191,A=m&=8191,T=v&=8191,R=y&=8191,O=b&=8191,P=w&=8191,L=x&=8191,t+=16,n-=16;this.h[0]=k,this.h[1]=S,this.h[2]=E,this.h[3]=_,this.h[4]=A,this.h[5]=T,this.h[6]=R,this.h[7]=O,this.h[8]=P,this.h[9]=L},E.prototype.finish=function(e,t){var n,r,o,i,a=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this.h[i]+n,n=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,r=(1^n)-1,i=0;i<10;i++)a[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|a[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},E.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var q=T,G=R;var Q=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Z(e,t,n,r){for(var o,i,a,s,l,c,u,d,f,h,p,g,m,v,y,b,w,x,C,k,S,E,_,A,T,R,O=new Int32Array(16),P=new Int32Array(16),L=e[0],M=e[1],N=e[2],I=e[3],j=e[4],$=e[5],D=e[6],U=e[7],W=t[0],z=t[1],B=t[2],F=t[3],H=t[4],V=t[5],K=t[6],q=t[7],G=0;r>=128;){for(C=0;C<16;C++)k=8*C+G,O[C]=n[k+0]<<24|n[k+1]<<16|n[k+2]<<8|n[k+3],P[C]=n[k+4]<<24|n[k+5]<<16|n[k+6]<<8|n[k+7];for(C=0;C<80;C++)if(o=L,i=M,a=N,s=I,l=j,c=$,u=D,U,f=W,h=z,p=B,g=F,m=H,v=V,y=K,q,_=65535&(E=q),A=E>>>16,T=65535&(S=U),R=S>>>16,_+=65535&(E=(H>>>14|j<<18)^(H>>>18|j<<14)^(j>>>9|H<<23)),A+=E>>>16,T+=65535&(S=(j>>>14|H<<18)^(j>>>18|H<<14)^(H>>>9|j<<23)),R+=S>>>16,_+=65535&(E=H&V^~H&K),A+=E>>>16,T+=65535&(S=j&$^~j&D),R+=S>>>16,S=Q[2*C],_+=65535&(E=Q[2*C+1]),A+=E>>>16,T+=65535&S,R+=S>>>16,S=O[C%16],A+=(E=P[C%16])>>>16,T+=65535&S,R+=S>>>16,T+=(A+=(_+=65535&E)>>>16)>>>16,_=65535&(E=x=65535&_|A<<16),A=E>>>16,T=65535&(S=w=65535&T|(R+=T>>>16)<<16),R=S>>>16,_+=65535&(E=(W>>>28|L<<4)^(L>>>2|W<<30)^(L>>>7|W<<25)),A+=E>>>16,T+=65535&(S=(L>>>28|W<<4)^(W>>>2|L<<30)^(W>>>7|L<<25)),R+=S>>>16,A+=(E=W&z^W&B^z&B)>>>16,T+=65535&(S=L&M^L&N^M&N),R+=S>>>16,d=65535&(T+=(A+=(_+=65535&E)>>>16)>>>16)|(R+=T>>>16)<<16,b=65535&_|A<<16,_=65535&(E=g),A=E>>>16,T=65535&(S=s),R=S>>>16,A+=(E=x)>>>16,T+=65535&(S=w),R+=S>>>16,M=o,N=i,I=a,j=s=65535&(T+=(A+=(_+=65535&E)>>>16)>>>16)|(R+=T>>>16)<<16,$=l,D=c,U=u,L=d,z=f,B=h,F=p,H=g=65535&_|A<<16,V=m,K=v,q=y,W=b,C%16===15)for(k=0;k<16;k++)S=O[k],_=65535&(E=P[k]),A=E>>>16,T=65535&S,R=S>>>16,S=O[(k+9)%16],_+=65535&(E=P[(k+9)%16]),A+=E>>>16,T+=65535&S,R+=S>>>16,w=O[(k+1)%16],_+=65535&(E=((x=P[(k+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),A+=E>>>16,T+=65535&(S=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),R+=S>>>16,w=O[(k+14)%16],A+=(E=((x=P[(k+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,T+=65535&(S=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,O[k]=65535&T|R<<16,P[k]=65535&_|A<<16;_=65535&(E=W),A=E>>>16,T=65535&(S=L),R=S>>>16,S=e[0],A+=(E=t[0])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[0]=L=65535&T|R<<16,t[0]=W=65535&_|A<<16,_=65535&(E=z),A=E>>>16,T=65535&(S=M),R=S>>>16,S=e[1],A+=(E=t[1])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[1]=M=65535&T|R<<16,t[1]=z=65535&_|A<<16,_=65535&(E=B),A=E>>>16,T=65535&(S=N),R=S>>>16,S=e[2],A+=(E=t[2])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[2]=N=65535&T|R<<16,t[2]=B=65535&_|A<<16,_=65535&(E=F),A=E>>>16,T=65535&(S=I),R=S>>>16,S=e[3],A+=(E=t[3])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[3]=I=65535&T|R<<16,t[3]=F=65535&_|A<<16,_=65535&(E=H),A=E>>>16,T=65535&(S=j),R=S>>>16,S=e[4],A+=(E=t[4])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[4]=j=65535&T|R<<16,t[4]=H=65535&_|A<<16,_=65535&(E=V),A=E>>>16,T=65535&(S=$),R=S>>>16,S=e[5],A+=(E=t[5])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[5]=$=65535&T|R<<16,t[5]=V=65535&_|A<<16,_=65535&(E=K),A=E>>>16,T=65535&(S=D),R=S>>>16,S=e[6],A+=(E=t[6])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[6]=D=65535&T|R<<16,t[6]=K=65535&_|A<<16,_=65535&(E=q),A=E>>>16,T=65535&(S=U),R=S>>>16,S=e[7],A+=(E=t[7])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[7]=U=65535&T|R<<16,t[7]=q=65535&_|A<<16,G+=128,r-=128}return r}function Y(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),s=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,Z(o,i,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Z(o,i,a,n),r=0;r<8;r++)p(e,8*r,o[r],i[r]);return 0}function X(e,n){var r=t(),o=t(),i=t(),a=t(),s=t(),l=t(),c=t(),d=t(),f=t();D(r,e[1],e[0]),D(f,n[1],n[0]),U(r,r,f),$(o,e[0],e[1]),$(f,n[0],n[1]),U(o,o,f),U(i,e[3],n[3]),U(i,i,u),U(a,e[2],n[2]),$(a,a,a),D(s,o,r),D(l,a,i),$(c,a,i),$(d,o,r),U(e[0],s,l),U(e[1],d,c),U(e[2],c,l),U(e[3],s,d)}function J(e,t,n){var r;for(r=0;r<4;r++)L(e[r],t[r],n)}function ee(e,n){var r=t(),o=t(),i=t();z(i,n[2]),U(r,n[0],i),U(o,n[1],i),M(e,o),e[31]^=I(r)<<7}function te(e,t,n){var r,o;for(O(e[0],a),O(e[1],s),O(e[2],s),O(e[3],a),o=255;o>=0;--o)J(e,t,r=n[o/8|0]>>(7&o)&1),X(t,e),X(e,e),J(e,t,r)}function ne(e,n){var r=[t(),t(),t(),t()];O(r[0],d),O(r[1],f),O(r[2],s),U(r[3],d,f),te(e,r,n)}function re(e,n,o){var i,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(o||r(n,32),Y(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,ne(s,a),ee(e,s),i=0;i<32;i++)n[i+32]=e[i];return 0}var oe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*oe[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*oe[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*oe[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ae(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,n)}function se(e,n,r,o){var i,a,s=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];Y(s,o,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=s[32+i];for(Y(c,e.subarray(32),r+32),ae(c),ne(d,c),ee(e,d),i=32;i<64;i++)e[i]=o[i];for(Y(l,e,r+64),ae(l),i=0;i<64;i++)u[i]=0;for(i=0;i<32;i++)u[i]=c[i];for(i=0;i<32;i++)for(a=0;a<32;a++)u[i+a]+=l[i]*s[a];return ie(e.subarray(32),u),f}function le(e,n,r,o){var i,l=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],f=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),i=t(),l=t(),u=t(),d=t(),f=t();return O(e[2],s),j(e[1],n),W(i,e[1]),U(l,i,c),D(i,i,e[2]),$(l,e[2],l),W(u,l),W(d,u),U(f,d,u),U(r,f,i),U(r,r,l),B(r,r),U(r,r,i),U(r,r,l),U(r,r,l),U(e[0],r,l),W(o,e[0]),U(o,o,l),N(o,i)&&U(e[0],e[0],h),W(o,e[0]),U(o,o,l),N(o,i)?-1:(I(e[0])===n[31]>>7&&D(e[0],a,e[0]),U(e[3],e[0],e[1]),0)}(f,o))return-1;for(i=0;i<r;i++)e[i]=n[i];for(i=0;i<32;i++)e[i+32]=o[i];if(Y(u,e,r),ae(u),te(d,f,u),ne(f,n.subarray(32)),X(d,f),ee(l,d),r-=64,v(n,0,l,0)){for(i=0;i<r;i++)e[i]=0;return-1}for(i=0;i<r;i++)e[i]=n[i+64];return r}var ce=16,ue=64,de=32,fe=64;function he(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function pe(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:S,crypto_stream:k,crypto_stream_salsa20_xor:x,crypto_stream_salsa20:C,crypto_onetimeauth:_,crypto_onetimeauth_verify:A,crypto_verify_16:m,crypto_verify_32:v,crypto_secretbox:T,crypto_secretbox_open:R,crypto_scalarmult:F,crypto_scalarmult_base:H,crypto_box_beforenm:K,crypto_box_afternm:q,crypto_box:function(e,t,n,r,o,i){var a=new Uint8Array(32);return K(a,o,i),q(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,o,i){var a=new Uint8Array(32);return K(a,o,i),G(e,t,n,r,a)},crypto_box_keypair:V,crypto_hash:Y,crypto_sign:se,crypto_sign_keypair:re,crypto_sign_open:le,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ce,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ue,crypto_sign_PUBLICKEYBYTES:de,crypto_sign_SECRETKEYBYTES:fe,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:c,L:oe,pack25519:M,unpack25519:j,M:U,A:$,S:W,Z:D,pow2523:B,add:X,set25519:O,modL:ie,scalarmult:te,scalarbase:ne},e.randomBytes=function(e){var t=new Uint8Array(e);return r(t,e),t},e.secretbox=function(e,t,n){pe(e,t,n),he(n,t);for(var r=new Uint8Array(32+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+32]=e[i];return T(o,r,r.length,t,n),o.subarray(ce)},e.secretbox.open=function(e,t,n){pe(e,t,n),he(n,t);for(var r=new Uint8Array(ce+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+ce]=e[i];return r.length<32||0!==R(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ce,e.scalarMult=function(e,t){if(pe(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return F(n,e,t),n},e.scalarMult.base=function(e){if(pe(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return H(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox(t,n,i)},e.box.before=function(e,t){pe(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return K(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox.open(t,n,i)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return V(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(pe(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return H(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(pe(e,t),t.length!==fe)throw new Error("bad secret key size");var n=new Uint8Array(ue+e.length);return se(n,e,e.length,t),n},e.sign.open=function(e,t){if(pe(e,t),t.length!==de)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=le(n,e,e.length,t);if(r<0)return null;for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=n[i];return o},e.sign.detached=function(t,n){for(var r=e.sign(t,n),o=new Uint8Array(ue),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(pe(e,t,n),t.length!==ue)throw new Error("bad signature size");if(n.length!==de)throw new Error("bad public key size");var r,o=new Uint8Array(ue+e.length),i=new Uint8Array(ue+e.length);for(r=0;r<ue;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+ue]=e[r];return le(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(fe);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(pe(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(de),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(pe(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(de),n=new Uint8Array(fe),r=0;r<32;r++)n[r]=e[r];return re(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=de,e.sign.secretKeyLength=fe,e.sign.seedLength=32,e.sign.signatureLength=ue,e.hash=function(e){pe(e);var t=new Uint8Array(64);return Y(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return pe(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===g(e,0,t,0,e.length))},e.setPRNG=function(e){r=e},function(){var t="undefined"!==typeof self?self.crypto||self.msCrypto:null;if(t&&t.getRandomValues){e.setPRNG((function(e,n){var r,o=new Uint8Array(n);for(r=0;r<n;r+=65536)t.getRandomValues(o.subarray(r,r+Math.min(n-r,65536)));for(r=0;r<n;r++)e[r]=o[r];ge(o)}))}else(t=n(1281))&&t.randomBytes&&e.setPRNG((function(e,n){var r,o=t.randomBytes(n);for(r=0;r<n;r++)e[r]=o[r];ge(o)}))}()}(e.exports?e.exports:self.nacl=self.nacl||{})},7946:function(e,t,n){var r;!function(o,i){"use strict";var a="function",s="undefined",l="object",c="string",u="major",d="model",f="name",h="type",p="vendor",g="version",m="architecture",v="console",y="mobile",b="tablet",w="smarttv",x="wearable",C="embedded",k="Amazon",S="Apple",E="ASUS",_="BlackBerry",A="Browser",T="Chrome",R="Firefox",O="Google",P="Huawei",L="LG",M="Microsoft",N="Motorola",I="Opera",j="Samsung",$="Sharp",D="Sony",U="Xiaomi",W="Zebra",z="Facebook",B="Chromium OS",F="Mac OS",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===c&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},q=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},G=function(e,t){for(var n,r,o,s,c,u,d=0;d<t.length&&!c;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(e))for(o=0;o<h.length;o++)u=c[++r],typeof(s=h[o])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):i:this[s[0]]=u?s[1].call(this,u,s[2]):i:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):i):this[s]=u||i;d+=2}},Q=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(V(t[n][r],e))return"?"===n?i:n}else if(V(t[n],e))return"?"===n?i:n;return e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,g],[/opios[\/ ]+([\w\.]+)/i],[g,[f,I+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[f,I+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[f,I]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,g],[/\bddg\/([\w\.]+)/i],[g,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[f,"UC"+A]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[f,"Smart Lenovo "+A]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+A],g],[/\bfocus\/([\w\.]+)/i],[g,[f,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[f,I+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[f,I+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[f,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[g,[f,R]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+A]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+A],g],[/samsungbrowser\/([\w\.]+)/i],[g,[f,j+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],g],[/metasr[\/ ]?([\d\.]+)/i],[g,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,g],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,z],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[f,T+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,T+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[f,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[g,Q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[f,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,g],[/(cobalt)\/([\w\.]+)/i],[f,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,K]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,j],[h,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,j],[h,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[p,S],[h,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,S],[h,b]],[/(macintosh);/i],[d,[p,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,$],[h,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[p,P],[h,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,P],[h,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[p,U],[h,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[p,U],[h,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,"OPPO"],[h,y]],[/\b(opd2\d{3}a?) bui/i],[d,[p,"OPPO"],[h,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[h,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[h,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,N],[h,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,N],[h,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,L],[h,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,L],[h,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[p,"Lenovo"],[h,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[p,"Nokia"],[h,y]],[/(pixel c)\b/i],[d,[p,O],[h,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,O],[h,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,D],[h,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,D],[h,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,"OnePlus"],[h,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,k],[h,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,k],[h,y]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[h,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,_],[h,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,E],[h,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,E],[h,y]],[/(nexus 9)/i],[d,[p,"HTC"],[h,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[h,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[h,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[h,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[p,"Ulefone"],[h,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,d,[h,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,d,[h,b]],[/(surface duo)/i],[d,[p,M],[h,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[h,y]],[/(u304aa)/i],[d,[p,"AT&T"],[h,y]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[h,y]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[h,b]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[h,b]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[h,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[h,b]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[h,b]],[/\b(k88) b/i],[d,[p,"ZTE"],[h,b]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[h,y]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[h,y]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[h,b]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[h,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[h,b]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[h,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[h,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[h,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[h,y]],[/\b(ph-1) /i],[d,[p,"Essential"],[h,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[h,b]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[h,b]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[h,b]],[/(shield[\w ]+) b/i],[d,[p,"Nvidia"],[h,b]],[/(sprint) (\w+)/i],[p,d,[h,y]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,M],[h,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,W],[h,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,W],[h,y]],[/smart-tv.+(samsung)/i],[p,[h,w]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,j],[h,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,L],[h,w]],[/(apple) ?tv/i],[p,[d,S+" TV"],[h,w]],[/crkey/i],[[d,T+"cast"],[p,O],[h,w]],[/droid.+aft(\w+)( bui|\))/i],[d,[p,k],[h,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,$],[h,w]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,D],[h,w]],[/(mitv-\w{5}) bui/i],[d,[p,U],[h,w]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[h,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,q],[d,q],[h,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[h,v]],[/droid.+; (shield) bui/i],[d,[p,"Nvidia"],[h,v]],[/(playstation [345portablevi]+)/i],[d,[p,D],[h,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,M],[h,v]],[/((pebble))app/i],[p,d,[h,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[p,S],[h,x]],[/droid.+; (glass) \d/i],[d,[p,O],[h,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,W],[h,x]],[/(quest( \d| pro)?)/i],[d,[p,z],[h,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[h,C]],[/(aeobc)\b/i],[d,[p,k],[h,C]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[h,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,y]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[g,Q,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,Q,Z],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,F],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,g],[/\(bb(10);/i],[g,[f,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[f,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[f,T+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,B],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,g],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,g]]},X=function(e,t){if(typeof e===l&&(t=e,e=i),!(this instanceof X))return new X(e,t).getResult();var n=typeof o!==s&&o.navigator?o.navigator:i,r=e||(n&&n.userAgent?n.userAgent:""),v=n&&n.userAgentData?n.userAgentData:i,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Y,t):Y,x=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=i,t[g]=i,G.call(t,r,w.browser),t[u]=typeof(e=t[g])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:i,x&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[m]=i,G.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[p]=i,e[d]=i,e[h]=i,G.call(e,r,w.device),x&&!e[h]&&v&&v.mobile&&(e[h]=y),x&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[h]=b),e},this.getEngine=function(){var e={};return e[f]=i,e[g]=i,G.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[f]=i,e[g]=i,G.call(e,r,w.os),x&&!e[f]&&v&&v.platform&&"Unknown"!=v.platform&&(e[f]=v.platform.replace(/chrome os/i,B).replace(/macos/i,F)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?q(e,500):e,this},this.setUA(r),this};X.VERSION="1.0.38",X.BROWSER=H([f,g,u]),X.CPU=H([m]),X.DEVICE=H([d,p,h,v,y,w,b,x,C]),X.ENGINE=X.OS=H([f,g]),typeof t!==s?(e.exports&&(t=e.exports=X),t.UAParser=X):n.amdO?(r=function(){return X}.call(t,n,t,e))===i||(e.exports=r):typeof o!==s&&(o.UAParser=X);var J=typeof o!==s&&(o.jQuery||o.Zepto);if(J&&!J.ua){var ee=new X;J.ua=ee.getResult(),J.ua.get=function(){return ee.getUA()},J.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)J.ua[n]=t[n]}}}("object"===typeof window?window:this)},1281:()=>{},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},8738:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},2004:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{"use strict";n.r(r),n.d(r,{checkIn:()=>Lv,consumePurchase:()=>Dv,copyShareLink:()=>Iv,getItem:()=>jv,getShareLink:()=>Nv,init:()=>Tv,login:()=>Rv,onEvent:()=>zv,purchase:()=>Pv,queryPurchses:()=>Uv,ready:()=>Ov,setItem:()=>$v,share:()=>Mv,vibrate:()=>Wv});var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>jf,hasStandardBrowserEnv:()=>$f,hasStandardBrowserWebWorkerEnv:()=>Uf,origin:()=>Wf});var t=n(1352),o=n(8168),i=n(9950),a=n(7353),s=n(3158),l=n(2860),c=n(7576);const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=i.useContext(c.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},d=(0,l.A)();const f=function(){return u(arguments.length>0&&void 0!==arguments[0]?arguments[0]:d)};var h=n(4414);const p=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const o=f(r),i="function"===typeof t?t(n&&o[n]||o):t;return(0,h.jsx)(s.A,{styles:i})};var g=n(195),m=n(7550);const v=function(e){return(0,h.jsx)(p,(0,o.A)({},e,{defaultTheme:g.A,themeId:m.A}))},y=(e,t)=>(0,o.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),b=e=>(0,o.A)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});const w=function(e){const t=(0,a.b)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(v,{styles:e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((t=>{let[n,o]=t;var i;r[e.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(i=o.palette)?void 0:i.mode}}));let i=(0,o.A)({html:y(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,o.A)({margin:0},b(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return a&&(i=[i,a]),i}(e,r)}),n]})};var x=n(3450),C=n.n(x);const k="ps_app_did_mount",S="ps_game_info_loaded",E="ps_game_ready",_="ps_switch_page",A="ps_wallet_connect",T="ps_play_button_clicked",R="ps_purchase_completed",O="ps_check_in_completed",P="event_purchaseCompleted",L="event_checkInCompleted",M={1:{bgColor:"#F5A413",borderColor:"#FEF8E2",textColor:"#fff",text:"Airdrop",icon:"tag_icon1.png",iconWidth:20,iconHeight:18},2:{bgColor:"#25A3AC",borderColor:"#FEF8E2",textColor:"#fff",text:"Earn",icon:"tag_icon2.png",iconWidth:16,iconHeight:18}},N={1e3:"Join the World\u2019s Largest Cat-lover Community: Catizen - Play, Earn, Airdrop!",1002:"Wondering how much $BOMBIE you can earn?"};let I=function(e){return e[e.Success=1e4]="Success",e[e.NetConfigError=10001]="NetConfigError",e[e.NetError=10002]="NetError",e[e.ParamError=10003]="ParamError",e[e.NotInit=10004]="NotInit",e[e.InitError=10005]="InitError",e[e.NotLogin=10006]="NotLogin",e[e.Logined=10007]="Logined",e[e.Purchaseing=10008]="Purchaseing",e[e.ClipboardError=10009]="ClipboardError",e[e.WalletError=10010]="WalletError",e[e.OpenInvoiceError=10011]="OpenInvoiceError",e[e.TokenUseError=10012]="TokenUseError",e[e.OrderConfirming=10013]="OrderConfirming",e[e.CheckingIn=10014]="CheckingIn",e}({}),j=function(e){return e[e.None=0]="None",e[e.Index=1]="Index",e[e.Login=2]="Login",e[e.Purchase=3]="Purchase",e[e.CheckIn=4]="CheckIn",e}({}),$=function(e){return e[e.star=1]="star",e[e.tonConnect=2]="tonConnect",e}({}),D=function(e){return e.ton="TON",e.not="NOT",e.usdt="USDT",e.star="STAR",e}({}),U=function(e){return e.not="NOT",e.cati="CATI",e.usdt="USDT",e}({});var W=n(7946);const z={NOT:"kQBUTS4ag2sK2kdB34PmxtNnD2pgLEhpb6aZPh-x8HGdy_1S",CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"kQB0rxb4k-xFwXVzBpvJwt4_ChPvqMScDAKMBfQZw2Od8MFB"};class B{static init(){{let e=new URLSearchParams(location.search);B.TEST_MODE="1"==e.get("debug"),B.GAME_ID=e.get("gameid"),B.BOT_NAME=e.get("botname"),B.INIT_DATA=e.get("initdata"),B.INIT_DATA||(B.INIT_DATA=Telegram.WebApp.initData)}B.TEST_MODE?(B.API_URL="https://test-sdk1.pluto.vision/",B.PAYLOAD_URL="https://test-bc1.pluto.vision/api/ton/getTokenPayload",B.TON_CENTER_URL="https://testnet.toncenter.com/api/v3/jetton/wallets",B.TOKENS_JETTON_ADDRESS=z,B.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/test/manifest-${B.GAME_ID}.json`):B.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/release/manifest-${B.GAME_ID}.json`}}B.APP_VERSION="1.0.2-beta.0",B.RES_URL="https://games.pluto.vision/sdk/resource/",B.API_URL="https://sdk1.pluto.vision/",B.PAYLOAD_URL="https://bc1.pluto.vision/api/ton/getTokenPayload",B.TON_CENTER_URL="https://toncenter.com/api/v3/jetton/wallets",B.TOKENS_JETTON_ADDRESS={NOT:"EQAvlWFDxGF2lXm67y4yzC17wYKD9A0guwPkMs1gOsM__NOT",CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs"},B.MANIFEST_URL="",B.TEST_MODE=!1,B.GAME_ID="",B.BOT_NAME="",B.INIT_DATA="",B.TOKEN="";const F=e=>`${B.RES_URL}${e}`,H=()=>{const e=(new W.UAParser).getDevice().type;return"mobile"==e||"tablet"==e},V=()=>{var e,t;const n=new W.UAParser,r=null===(e=n.getBrowser().name)||void 0===e?void 0:e.toLocaleLowerCase(),o=null===(t=n.getOS().name)||void 0===t?void 0:t.toLocaleLowerCase();return"webkit"==r&&("mac os"==o||"ios"==o)},K=e=>new Promise(((t,n)=>{if(!navigator||!navigator.clipboard)return n();navigator.clipboard.writeText(e).then((()=>{t()})).catch((()=>{n()}))})),q=e=>new Promise(((t,n)=>{let r=document.createElement("textarea");r.value=e,r.style.position="absolute",r.style.opacity="0",r.style.left="-999999px",r.style.top="-999999px",document.body.appendChild(r),r.focus(),r.select();let o=document.execCommand("copy");r.remove(),o?t():n()}));var G,Q,Z,Y,X,J,ee=n(4008),te=n(3477);!function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",e[e.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(G||(G={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(Q||(Q={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(Z||(Z={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(Y||(Y={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(X||(X={})),function(e){e.MAINNET="-239",e.TESTNET="-3"}(J||(J={}));const ne={encode:function(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof Uint8Array?t=e:("string"!==typeof e&&(e=JSON.stringify(e)),t=ee.decodeUTF8(e)),function(e,t){const n=ee.encodeBase64(e);return t?encodeURIComponent(n):n}(t,n)},decode:function(e){const t=function(e,t){return t&&(e=decodeURIComponent(e)),ee.decodeBase64(e)}(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);return{toString:()=>ee.encodeUTF8(t),toObject(){try{return JSON.parse(ee.encodeUTF8(t))}catch(wr){return null}},toUint8Array:()=>t}}};function re(e){let t="";return e.forEach((e=>{t+=("0"+(255&e).toString(16)).slice(-2)})),t}function oe(e){if(e.length%2!==0)throw new Error(`Cannot convert ${e} to bytesArray`);const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)t[n/2]=parseInt(e.slice(n,n+2),16);return t}class ie{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=re(this.keyPair.publicKey)}createKeypair(){return te.box.keyPair()}createKeypairFromString(e){return{publicKey:oe(e.publicKey),secretKey:oe(e.secretKey)}}createNonce(){return te.randomBytes(this.nonceLength)}encrypt(e,t){const n=(new TextEncoder).encode(e),r=this.createNonce();return function(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(r,te.box(n,r,t,this.keyPair.secretKey))}decrypt(e,t){const[n,r]=function(e,t){if(t>=e.length)throw new Error("Index is out of buffer");return[e.slice(0,t),e.slice(t)]}(e,this.nonceLength),o=te.box.open(r,n,t,this.keyPair.secretKey);if(!o)throw new Error(`Decryption error: \n message: ${e.toString()} \n sender pubkey: ${t.toString()} \n keypair pubkey: ${this.keyPair.publicKey.toString()} \n keypair secretkey: ${this.keyPair.secretKey.toString()}`);return(new TextDecoder).decode(o)}stringifyKeypair(){return{publicKey:re(this.keyPair.publicKey),secretKey:re(this.keyPair.secretKey)}}}function ae(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(wr){i(wr)}}function s(e){try{l(r.throw(e))}catch(wr){i(wr)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}class se extends Error{constructor(e,t){super(e,t),this.message=`${se.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,se.prototype)}get info(){return""}}se.prefix="[TON_CONNECT_SDK_ERROR]";class le extends se{get info(){return"Passed DappMetadata is in incorrect format."}constructor(){super(...arguments),Object.setPrototypeOf(this,le.prototype)}}class ce extends se{get info(){return"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(){super(...arguments),Object.setPrototypeOf(this,ce.prototype)}}class ue extends se{get info(){return"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(){super(...arguments),Object.setPrototypeOf(this,ue.prototype)}}class de extends se{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(){super(...arguments),Object.setPrototypeOf(this,de.prototype)}}class fe extends se{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(){super(...arguments),Object.setPrototypeOf(this,fe.prototype)}}class he extends se{get info(){return"User rejects the action in the wallet."}constructor(){super(...arguments),Object.setPrototypeOf(this,he.prototype)}}class pe extends se{get info(){return"Request to the wallet contains errors."}constructor(){super(...arguments),Object.setPrototypeOf(this,pe.prototype)}}class ge extends se{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(){super(...arguments),Object.setPrototypeOf(this,ge.prototype)}}class me extends se{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(){super(...arguments),Object.setPrototypeOf(this,me.prototype)}}class ve extends se{get info(){return"An error occurred while fetching the wallets list."}constructor(){super(...arguments),Object.setPrototypeOf(this,ve.prototype)}}class ye extends se{get info(){return"Passed address is in incorrect format."}constructor(){super(...arguments),Object.setPrototypeOf(this,ye.prototype)}}class be extends se{get info(){return"Passed hex is in incorrect format."}constructor(){super(...arguments),Object.setPrototypeOf(this,be.prototype)}}class we extends se{constructor(){super(...arguments),Object.setPrototypeOf(this,we.prototype)}}const xe={[G.UNKNOWN_ERROR]:we,[G.USER_REJECTS_ERROR]:he,[G.BAD_REQUEST_ERROR]:pe,[G.UNKNOWN_APP_ERROR]:ge,[G.MANIFEST_NOT_FOUND_ERROR]:ue,[G.MANIFEST_CONTENT_ERROR]:ce};const Ce=new class{parseError(e){let t=we;return e.code in xe&&(t=xe[e.code]||we),new t(e.message)}};class ke{isError(e){return"error"in e}}const Se={[Z.UNKNOWN_ERROR]:we,[Z.USER_REJECTS_ERROR]:he,[Z.BAD_REQUEST_ERROR]:pe,[Z.UNKNOWN_APP_ERROR]:ge};const Ee=new class extends ke{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=we;throw e.error.code in Se&&(t=Se[e.error.code]||we),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}};class _e{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return ae(this,void 0,void 0,(function*(){return this.storage.setItem(this.storeKey,e)}))}removeLastEventId(){return ae(this,void 0,void 0,(function*(){return this.storage.removeItem(this.storeKey)}))}getLastEventId(){return ae(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);return e||null}))}}function Ae(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function Te(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function Re(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function Oe(e,t){return ae(this,void 0,void 0,(function*(){return new Promise(((n,r)=>{var o,i;if(null===(o=null===t||void 0===t?void 0:t.signal)||void 0===o?void 0:o.aborted)return void r(new se("Delay aborted"));const a=setTimeout((()=>n()),e);null===(i=null===t||void 0===t?void 0:t.signal)||void 0===i||i.addEventListener("abort",(()=>{clearTimeout(a),r(new se("Delay aborted"))}))}))}))}function Pe(e){const t=new AbortController;return(null===e||void 0===e?void 0:e.aborted)?t.abort():null===e||void 0===e||e.addEventListener("abort",(()=>t.abort()),{once:!0}),t}function Le(e,t){var n,r;return ae(this,void 0,void 0,(function*(){const o=null!==(n=null===t||void 0===t?void 0:t.attempts)&&void 0!==n?n:10,i=null!==(r=null===t||void 0===t?void 0:t.delayMs)&&void 0!==r?r:200,a=Pe(null===t||void 0===t?void 0:t.signal);if("function"!==typeof e)throw new se("Expected a function, got "+typeof e);let s,l=0;for(;l<o;){if(a.signal.aborted)throw new se(`Aborted after attempts ${l}`);try{return yield e({signal:a.signal})}catch(c){s=c,l++,l<o&&(yield Oe(i))}}throw s}))}function Me(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug("[TON_CONNECT_SDK]",...t)}catch(xt){}}function Ne(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error("[TON_CONNECT_SDK]",...t)}catch(xt){}}class Ie{constructor(e,t,n,r,o){this.bridgeUrl=t,this.sessionId=n,this.listener=r,this.errorsListener=o,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=function(e,t){var n=this;let r=null,o=null,i=null,a=null,s=null;const l=function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];return ae(n,void 0,void 0,(function*(){if(a=null!==l&&void 0!==l?l:null,null===s||void 0===s||s.abort(),s=Pe(l),s.signal.aborted)throw new se("Resource creation was aborted");o=null!==u&&void 0!==u?u:null;const n=e(s.signal,...u);i=n;const c=yield n;if(i!==n&&c!==r)throw yield t(c),new se("Resource creation was aborted by a new resource creation");return r=c,r}))};return{create:l,current:()=>null!==r&&void 0!==r?r:null,dispose:()=>ae(this,void 0,void 0,(function*(){try{const e=r;r=null;const n=i;i=null;try{null===s||void 0===s||s.abort()}catch(wr){}yield Promise.allSettled([e?t(e):Promise.resolve(),n?t(yield n):Promise.resolve()])}catch(wr){}})),recreate:e=>ae(this,void 0,void 0,(function*(){const t=r,n=i,s=o,c=a;if(yield Oe(e),t===r&&n===i&&s===o&&c===a)return yield l(a,...null!==s&&void 0!==s?s:[]);throw new se("Resource recreation was aborted by a new resource creation")}))}}(((e,t)=>ae(this,void 0,void 0,(function*(){const n={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:e,openingDeadlineMS:t};return yield function(e){return ae(this,void 0,void 0,(function*(){return yield function(e,t){const n=null===t||void 0===t?void 0:t.timeout,r=Pe(null===t||void 0===t?void 0:t.signal);return new Promise(((t,o)=>ae(this,void 0,void 0,(function*(){if(r.signal.aborted)return void o(new se("Operation aborted"));let i;"undefined"!==typeof n&&(i=setTimeout((()=>{r.abort(),o(new se(`Timeout after ${n}ms`))}),n)),r.signal.addEventListener("abort",(()=>{clearTimeout(i),o(new se("Operation aborted"))}),{once:!0});const a={timeout:n,abort:r.signal};yield e((function(){clearTimeout(i),t(...arguments)}),(()=>{clearTimeout(i),o()}),a)}))))}(((t,n,r)=>ae(this,void 0,void 0,(function*(){var o;const i=Pe(r.signal).signal;if(i.aborted)return void n(new se("Bridge connection aborted"));const a=new URL(Ae(e.bridgeUrl,e.ssePath));a.searchParams.append("client_id",e.sessionId);const s=yield e.bridgeGatewayStorage.getLastEventId();if(s&&a.searchParams.append("last_event_id",s),i.aborted)return void n(new se("Bridge connection aborted"));const l=new EventSource(a.toString());l.onerror=r=>ae(this,void 0,void 0,(function*(){if(i.aborted)return l.close(),void n(new se("Bridge connection aborted"));try{const n=yield e.errorHandler(l,r);n!==l&&l.close(),n&&n!==l&&t(n)}catch(wr){l.close(),n(wr)}})),l.onopen=()=>{if(i.aborted)return l.close(),void n(new se("Bridge connection aborted"));t(l)},l.onmessage=t=>{if(i.aborted)return l.close(),void n(new se("Bridge connection aborted"));e.messageHandler(t)},null===(o=e.signal)||void 0===o||o.addEventListener("abort",(()=>{l.close(),n(new se("Bridge connection aborted"))}))}))),{timeout:e.openingDeadlineMS,signal:e.signal})}))}(n)}))),(e=>ae(this,void 0,void 0,(function*(){e.close()})))),this.bridgeGatewayStorage=new _e(e,t)}get isReady(){const e=this.eventSource.current();return(null===e||void 0===e?void 0:e.readyState)===EventSource.OPEN}get isClosed(){const e=this.eventSource.current();return(null===e||void 0===e?void 0:e.readyState)!==EventSource.OPEN}get isConnecting(){const e=this.eventSource.current();return(null===e||void 0===e?void 0:e.readyState)===EventSource.CONNECTING}registerSession(e){return ae(this,void 0,void 0,(function*(){yield this.eventSource.create(null===e||void 0===e?void 0:e.signal,null===e||void 0===e?void 0:e.openingDeadlineMS)}))}send(e,t,n,r){var o;return ae(this,void 0,void 0,(function*(){const i={};"number"===typeof r?i.ttl=r:(i.ttl=null===r||void 0===r?void 0:r.ttl,i.signal=null===r||void 0===r?void 0:r.signal,i.attempts=null===r||void 0===r?void 0:r.attempts);const a=new URL(Ae(this.bridgeUrl,this.postPath));a.searchParams.append("client_id",this.sessionId),a.searchParams.append("to",t),a.searchParams.append("ttl",((null===i||void 0===i?void 0:i.ttl)||this.defaultTtl).toString()),a.searchParams.append("topic",n);const s=ne.encode(e);yield Le((e=>ae(this,void 0,void 0,(function*(){const t=yield this.post(a,s,e.signal);if(!t.ok)throw new se(`Bridge send failed, status ${t.status}`)}))),{attempts:null!==(o=null===i||void 0===i?void 0:i.attempts)&&void 0!==o?o:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:null===i||void 0===i?void 0:i.signal})}))}pause(){this.eventSource.dispose().catch((e=>Ne(`Bridge pause failed, ${e}`)))}unPause(){return ae(this,void 0,void 0,(function*(){yield this.eventSource.recreate(0)}))}close(){return ae(this,void 0,void 0,(function*(){yield this.eventSource.dispose().catch((e=>Ne(`Bridge close failed, ${e}`)))}))}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,t,n){return ae(this,void 0,void 0,(function*(){const r=yield fetch(e,{method:"post",body:t,signal:n});if(!r.ok)throw new se(`Bridge send failed, status ${r.status}`);return r}))}errorsHandler(e,t){return ae(this,void 0,void 0,(function*(){if(this.isConnecting)throw e.close(),new se("Bridge error, failed to connect");if(!this.isReady){if(this.isClosed)return e.close(),Me(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new se("Bridge error, unknown state")}try{this.errorsListener(t)}catch(t){}}))}messagesHandler(e){return ae(this,void 0,void 0,(function*(){if(e.data===this.heartbeatMessage)return;if(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed)return;let t;try{t=JSON.parse(e.data)}catch(e){throw new se(`Bridge message parse failed, message ${e.data}`)}this.listener(t)}))}}function je(e){return!("connectEvent"in e)}class $e{constructor(e){this.storage=e,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return ae(this,void 0,void 0,(function*(){if("injected"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!je(e)){const t={sessionKeyPair:e.session.sessionCrypto.stringifyKeypair(),walletPublicKey:e.session.walletPublicKey,bridgeUrl:e.session.bridgeUrl},n={type:"http",connectEvent:e.connectEvent,session:t,lastWalletEventId:e.lastWalletEventId,nextRpcRequestId:e.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(n))}const t={type:"http",connectionSource:e.connectionSource,sessionCrypto:e.sessionCrypto.stringifyKeypair()};return this.storage.setItem(this.storeKey,JSON.stringify(t))}))}removeConnection(){return ae(this,void 0,void 0,(function*(){return this.storage.removeItem(this.storeKey)}))}getConnection(){return ae(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;const t=JSON.parse(e);if("injected"===t.type)return t;if("connectEvent"in t){const e=new ie(t.session.sessionKeyPair);return{type:"http",connectEvent:t.connectEvent,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId,session:{sessionCrypto:e,bridgeUrl:t.session.bridgeUrl,walletPublicKey:t.session.walletPublicKey}}}return{type:"http",sessionCrypto:new ie(t.sessionCrypto),connectionSource:t.connectionSource}}))}getHttpConnection(){return ae(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new se("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new se("Trying to read HTTP connection source while injected connection is stored");return e}))}getHttpPendingConnection(){return ae(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new se("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new se("Trying to read HTTP connection source while injected connection is stored");if(!je(e))throw new se("Trying to read HTTP-pending connection while http connection is stored");return e}))}getInjectedConnection(){return ae(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new se("Trying to read Injected bridge connection source while nothing is stored");if("http"===(null===e||void 0===e?void 0:e.type))throw new se("Trying to read Injected bridge connection source while HTTP connection is stored");return e}))}storedConnectionType(){return ae(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;return JSON.parse(e).type}))}storeLastWalletEventId(e){return ae(this,void 0,void 0,(function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!je(t))return t.lastWalletEventId=e,this.storeConnection(t)}))}getLastWalletEventId(){return ae(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId}))}increaseNextRpcRequestId(){return ae(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(e&&"nextRpcRequestId"in e){const t=e.nextRpcRequestId||0;return e.nextRpcRequestId=t+1,this.storeConnection(e)}}))}getNextRpcRequestId(){return ae(this,void 0,void 0,(function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0}))}}class De{constructor(e,t){this.storage=e,this.walletConnectionSource=t,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.connectionStorage=new $e(e)}static fromStorage(e){return ae(this,void 0,void 0,(function*(){const t=new $e(e),n=yield t.getHttpConnection();return je(n)?new De(e,n.connectionSource):new De(e,{bridgeUrl:n.session.bridgeUrl})}))}connect(e,t){var n;const r=Pe(null===t||void 0===t?void 0:t.signal);null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=r,this.closeGateways();const o=new ie;this.session={sessionCrypto:o,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:o}).then((()=>ae(this,void 0,void 0,(function*(){r.signal.aborted||(yield Le((e=>{var n;return this.openGateways(o,{openingDeadlineMS:null!==(n=null===t||void 0===t?void 0:t.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS,signal:null===e||void 0===e?void 0:e.signal})}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal}))}))));const i="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(i,e)}restoreConnection(e){var t,n;return ae(this,void 0,void 0,(function*(){const r=Pe(null===e||void 0===e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return;this.closeGateways();const o=yield this.connectionStorage.getHttpConnection();if(!o)return;if(r.signal.aborted)return;const i=null!==(n=null===e||void 0===e?void 0:e.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS;if(je(o))return this.session={sessionCrypto:o.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(o.sessionCrypto,{openingDeadlineMS:i,signal:null===r||void 0===r?void 0:r.signal});if(Array.isArray(this.walletConnectionSource))throw new se("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=o.session,this.gateway&&(Me("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new Ie(this.storage,this.walletConnectionSource.bridgeUrl,o.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!r.signal.aborted){this.listeners.forEach((e=>e(o.connectEvent)));try{yield Le((e=>this.gateway.registerSession({openingDeadlineMS:i,signal:e.signal})),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal})}catch(wr){return void(yield this.disconnect({signal:r.signal}))}}}))}sendRequest(e,t){const n={};return"function"===typeof t?n.onRequestSent=t:(n.onRequestSent=null===t||void 0===t?void 0:t.onRequestSent,n.signal=null===t||void 0===t?void 0:t.signal,n.attempts=null===t||void 0===t?void 0:t.attempts),new Promise(((t,r)=>ae(this,void 0,void 0,(function*(){var o;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new se("Trying to send bridge request without session");const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),Me("Send http-bridge request:",Object.assign(Object.assign({},e),{id:i}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:i})),oe(this.session.walletPublicKey));try{yield this.gateway.send(a,this.session.walletPublicKey,e.method,{attempts:null===n||void 0===n?void 0:n.attempts,signal:null===n||void 0===n?void 0:n.signal}),null===(o=null===n||void 0===n?void 0:n.onRequestSent)||void 0===o||o.call(n),this.pendingRequests.set(i.toString(),t)}catch(wr){r(wr)}}))))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return ae(this,void 0,void 0,(function*(){return new Promise((t=>ae(this,void 0,void 0,(function*(){let n=!1,r=null;const o=()=>{n||(n=!0,this.removeBridgeAndSession().then(t))};try{this.closeGateways();const t=Pe(null===e||void 0===e?void 0:e.signal);r=setTimeout((()=>{t.abort()}),this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:o,signal:t.signal,attempts:1})}catch(wr){Me("Disconnect error:",wr),n||this.removeBridgeAndSession().then(t)}finally{r&&clearTimeout(r),o()}}))))}))}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter((t=>t!==e))}pause(){var e;null===(e=this.gateway)||void 0===e||e.pause(),this.pendingGateways.forEach((e=>e.pause()))}unPause(){return ae(this,void 0,void 0,(function*(){const e=this.pendingGateways.map((e=>e.unPause()));this.gateway&&e.push(this.gateway.unPause()),yield Promise.all(e)}))}pendingGatewaysListener(e,t,n){return ae(this,void 0,void 0,(function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.gateway&&(Me("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=t,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(n);yield e.close()}))}gatewayListener(e){return ae(this,void 0,void 0,(function*(){const t=JSON.parse(this.session.sessionCrypto.decrypt(ne.decode(e.message).toUint8Array(),oe(e.from)));if(Me("Wallet message received:",t),!("event"in t)){const e=t.id.toString(),n=this.pendingRequests.get(e);return n?(n(t),void this.pendingRequests.delete(e)):void Me(`Response id ${e} doesn't match any request's id`)}if(void 0!==t.id){const e=yield this.connectionStorage.getLastWalletEventId();if(void 0!==e&&t.id<=e)return void Ne(`Received event id (=${t.id}) must be greater than stored last wallet event id (=${e}) `);"connect"!==t.event&&(yield this.connectionStorage.storeLastWalletEventId(t.id))}const n=this.listeners;"connect"===t.event&&(yield this.updateSession(t,e.from)),"disconnect"===t.event&&(Me("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),n.forEach((e=>e(t)))}))}gatewayErrorsListener(e){return ae(this,void 0,void 0,(function*(){throw new se(`Bridge error ${JSON.stringify(e)}`)}))}updateSession(e,t){return ae(this,void 0,void 0,(function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:t});const n=e.payload.items.find((e=>"ton_addr"===e.name)),r=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{items:[n]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:e.id,connectEvent:r,nextRpcRequestId:0})}))}removeBridgeAndSession(){return ae(this,void 0,void 0,(function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()}))}generateUniversalLink(e,t){return Te(e)?this.generateTGUniversalLink(e,t):this.generateRegularUniversalLink(e,t)}generateRegularUniversalLink(e,t){const n=new URL(e);return n.searchParams.append("v",2..toString()),n.searchParams.append("id",this.session.sessionCrypto.sessionId),n.searchParams.append("r",JSON.stringify(t)),n.toString()}generateTGUniversalLink(e,t){const n="tonconnect-"+Re(this.generateRegularUniversalLink("about:blank",t).split("?")[1]),r=this.convertToDirectLink(e),o=new URL(r);return o.searchParams.append("startapp",n),o.toString()}convertToDirectLink(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}openGateways(e,t){return ae(this,void 0,void 0,(function*(){return Array.isArray(this.walletConnectionSource)?(this.pendingGateways.map((e=>e.close().catch())),this.pendingGateways=this.walletConnectionSource.map((t=>{const n=new Ie(this.storage,t.bridgeUrl,e.sessionId,(()=>{}),(()=>{}));return n.setListener((e=>this.pendingGatewaysListener(n,t.bridgeUrl,e))),n})),void(yield Promise.allSettled(this.pendingGateways.map((e=>Le((n=>{var r;return this.pendingGateways.some((t=>t===e))?e.registerSession({openingDeadlineMS:null!==(r=null===t||void 0===t?void 0:t.openingDeadlineMS)&&void 0!==r?r:this.defaultOpeningDeadlineMS,signal:n.signal}):e.close()}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:null===t||void 0===t?void 0:t.signal})))))):(this.gateway&&(Me("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new Ie(this.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:null===t||void 0===t?void 0:t.openingDeadlineMS,signal:null===t||void 0===t?void 0:t.signal}))}))}closeGateways(e){var t;null===(t=this.gateway)||void 0===t||t.close(),this.pendingGateways.filter((t=>t!==(null===e||void 0===e?void 0:e.except))).forEach((e=>e.close())),this.pendingGateways=[]}}function Ue(e,t){return We(e,[t])}function We(e,t){return!(!e||"object"!==typeof e)&&t.every((t=>t in e))}class ze{constructor(){this.storage={}}static getInstance(){return ze.instance||(ze.instance=new ze),ze.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!==(t=n[e])&&void 0!==t?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}}function Be(){if("undefined"!==typeof window)return window}function Fe(){if("undefined"!==typeof document)return document}function He(){var e;const t=null===(e=Be())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function Ve(){if(function(){try{return"undefined"!==typeof localStorage}catch(xt){return!1}}())return localStorage;if("undefined"!==typeof process&&null!=process.versions&&null!=process.versions.node)throw new se("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return ze.getInstance()}class Ke{constructor(e,t){this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const n=Ke.window;if(!Ke.isWindowContainsWallet(n,t))throw new me;this.connectionStorage=new $e(e),this.injectedWallet=n[t].tonconnect}static fromStorage(e){return ae(this,void 0,void 0,(function*(){const t=new $e(e),n=yield t.getInjectedConnection();return new Ke(e,n.jsBridgeKey)}))}static isWalletInjected(e){return Ke.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!Ke.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=Be();if(!e)return[];try{return Object.keys(e)}catch(xt){return[]}}().filter((e=>{let[t,n]=e;return function(e){try{return!(!Ue(e,"tonconnect")||!Ue(e.tonconnect,"walletInfo"))&&We(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch(xt){return!1}}(n)})).map((e=>{let[t,n]=e;return{name:n.tonconnect.walletInfo.name,appName:n.tonconnect.walletInfo.app_name,aboutUrl:n.tonconnect.walletInfo.about_url,imageUrl:n.tonconnect.walletInfo.image,tondns:n.tonconnect.walletInfo.tondns,jsBridgeKey:t,injected:!0,embedded:n.tonconnect.isWalletBrowser,platforms:n.tonconnect.walletInfo.platforms}}))}static isWindowContainsWallet(e,t){return!!e&&t in e&&"object"===typeof e[t]&&"tonconnect"in e[t]}connect(e){this._connect(2,e)}restoreConnection(){return ae(this,void 0,void 0,(function*(){try{Me("Injected Provider restoring connection...");const e=yield this.injectedWallet.restoreConnection();Me("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions(),this.listeners.forEach((t=>t(e)))):yield this.connectionStorage.removeConnection()}catch(wr){yield this.connectionStorage.removeConnection(),console.error(wr)}}))}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return ae(this,void 0,void 0,(function*(){return new Promise((e=>{const t=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(e)};try{this.injectedWallet.disconnect(),t()}catch(wr){Me(wr),this.sendRequest({method:"disconnect",params:[]},t)}}))}))}closeAllListeners(){var e;this.listenSubscriptions=!1,this.listeners=[],null===(e=this.unsubscribeCallback)||void 0===e||e.call(this)}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter((t=>t!==e))}sendRequest(e,t){var n;return ae(this,void 0,void 0,(function*(){const r={};"function"===typeof t?r.onRequestSent=t:(r.onRequestSent=null===t||void 0===t?void 0:t.onRequestSent,r.signal=null===t||void 0===t?void 0:t.signal);const o=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),Me("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:o}));const i=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:o}));return i.then((e=>Me("Wallet message received:",e))),null===(n=null===r||void 0===r?void 0:r.onRequestSent)||void 0===n||n.call(r),i}))}_connect(e,t){return ae(this,void 0,void 0,(function*(){try{Me(`Injected Provider connect request: protocolVersion: ${e}, message:`,t);const n=yield this.injectedWallet.connect(e,t);Me("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach((e=>e(n)))}catch(wr){Me("Injected Provider connect error:",wr);const t={event:"connect_error",payload:{code:0,message:null===wr||void 0===wr?void 0:wr.toString()}};this.listeners.forEach((e=>e(t)))}}))}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen((e=>{Me("Wallet message received:",e),this.listenSubscriptions&&this.listeners.forEach((t=>t(e))),"disconnect"===e.event&&this.disconnect()}))}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}Ke.window=Be();class qe{constructor(){this.localStorage=Ve()}getItem(e){return ae(this,void 0,void 0,(function*(){return this.localStorage.getItem(e)}))}removeItem(e){return ae(this,void 0,void 0,(function*(){this.localStorage.removeItem(e)}))}setItem(e,t){return ae(this,void 0,void 0,(function*(){this.localStorage.setItem(e,t)}))}}function Ge(e){return function(e){return"jsBridgeKey"in e}(e)&&e.injected}function Qe(e){return Ge(e)&&e.embedded}function Ze(e){return"bridgeUrl"in e}const Ye=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.ton.space/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://static.mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"dewallet",name:"DeWallet",image:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",about_url:"https://delabwallet.com",universal_url:"https://t.me/dewallet?attach=wallet",bridge:[{type:"sse",url:"https://sse-bridge.delab.team/bridge"}],platforms:["ios","android"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]},{app_name:"bitgetTonWallet",name:"Bitget Wallet",image:"https://raw.githubusercontent.com/bitkeepwallet/download/main/logo/png/bitget_wallet_logo_0_gas_fee.png",about_url:"https://web3.bitget.com",deepLink:"bitkeep://",bridge:[{type:"js",key:"bitgetTonWallet"},{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["ios","android","chrome"],universal_url:"https://bkcode.vip/ton-connect"},{app_name:"safepalwallet",name:"SafePal",image:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",about_url:"https://www.safepal.com",universal_url:"https://link.safepal.io/ton-connect",deepLink:"safepal-tc://",bridge:[{type:"sse",url:"https://ton-bridge.safepal.com/tonbridge/v1/bridge"},{type:"js",key:"safepalwallet"}],platforms:["ios","android","chrome","firefox"]},{app_name:"okxTonWallet",name:"OKX Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",about_url:"https://www.okx.com/web3",universal_url:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]},{app_name:"okxTonWalletTr",name:"OKX TR Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/587A8296F0BB640F.png",about_url:"https://tr.okx.com/web3",universal_url:"https://tr.okx.com/download?appendQuery=true&deeplink=okxtr://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]}];class Xe{constructor(e){this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource="https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",(null===e||void 0===e?void 0:e.walletsListSource)&&(this.walletsListSource=e.walletsListSource),(null===e||void 0===e?void 0:e.cacheTTLMs)&&(this.cacheTTLMs=e.cacheTTLMs)}getWallets(){return ae(this,void 0,void 0,(function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then((()=>{this.walletsListCacheCreationTimestamp=Date.now()})).catch((()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null}))),this.walletsListCache}))}getEmbeddedWallet(){return ae(this,void 0,void 0,(function*(){const e=(yield this.getWallets()).filter(Qe);return 1!==e.length?null:e[0]}))}fetchWalletsList(){return ae(this,void 0,void 0,(function*(){let e=[];try{const t=yield fetch(this.walletsListSource);if(e=yield t.json(),!Array.isArray(e))throw new ve("Wrong wallets list format, wallets list must be an array.");const n=e.filter((e=>!this.isCorrectWalletConfigDTO(e)));n.length&&(Ne(`Wallet(s) ${n.map((e=>e.name)).join(", ")} config format is wrong. They were removed from the wallets list.`),e=e.filter((e=>this.isCorrectWalletConfigDTO(e))))}catch(wr){Ne(wr),e=Ye}let t=[];try{t=Ke.getCurrentlyInjectedWallets()}catch(wr){Ne(wr)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),t)}))}walletConfigDTOListToWalletConfigList(e){return e.map((e=>{const t={name:e.name,appName:e.app_name,imageUrl:e.image,aboutUrl:e.about_url,tondns:e.tondns,platforms:e.platforms};return e.bridge.forEach((n=>{if("sse"===n.type&&(t.bridgeUrl=n.url,t.universalLink=e.universal_url,t.deepLink=e.deepLink),"js"===n.type){const e=n.key;t.jsBridgeKey=e,t.injected=Ke.isWalletInjected(e),t.embedded=Ke.isInsideWalletBrowser(e)}})),t}))}mergeWalletsLists(e,t){return[...new Set(e.concat(t).map((e=>e.name))).values()].map((n=>{const r=e.find((e=>e.name===n)),o=t.find((e=>e.name===n));return Object.assign(Object.assign({},r&&Object.assign({},r)),o&&Object.assign({},o))}))}isCorrectWalletConfigDTO(e){if(!e||"object"!==typeof e)return!1;if(!("name"in e)||!("image"in e)||!("about_url"in e)||!("platforms"in e)||!("app_name"in e))return!1;if(!e.platforms||!Array.isArray(e.platforms)||!e.platforms.length)return!1;if(!("bridge"in e)||!Array.isArray(e.bridge)||!e.bridge.length)return!1;const t=e.bridge;if(t.some((e=>!e||"object"!==typeof e||!("type"in e))))return!1;const n=t.find((e=>"sse"===e.type));if(n&&(!("url"in n)||!n.url||!e.universal_url))return!1;const r=t.find((e=>"js"===e.type));return!!(!r||"key"in r&&r.key)}}class Je extends se{get info(){return"Wallet doesn't support requested feature method."}constructor(){super(...arguments),Object.setPrototypeOf(this,Je.prototype)}}function et(e,t){const n=e.includes("SendTransaction"),r=e.find((e=>e&&"object"===typeof e&&"SendTransaction"===e.name));if(!n&&!r)throw new Je("Wallet doesn't support SendTransaction feature.");if(r&&void 0!==r.maxMessages){if(r.maxMessages<t.requiredMessagesNumber)throw new Je(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${t.requiredMessagesNumber} is required.`)}else!function(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn("[TON_CONNECT_SDK]",...t)}catch(xt){}}("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function tt(e){return{type:"response-version",version:e}}function nt(e){return{ton_connect_sdk_lib:e.ton_connect_sdk_lib,ton_connect_ui_lib:e.ton_connect_ui_lib}}function rt(e,t){var n,r,o,i,a,s,l,c;const u=(null===(n=null===t||void 0===t?void 0:t.connectItems)||void 0===n?void 0:n.tonProof)&&"proof"in t.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:null!==(o=null===(r=null===t||void 0===t?void 0:t.account)||void 0===r?void 0:r.address)&&void 0!==o?o:null,wallet_type:null!==(i=null===t||void 0===t?void 0:t.device.appName)&&void 0!==i?i:null,wallet_version:null!==(a=null===t||void 0===t?void 0:t.device.appVersion)&&void 0!==a?a:null,auth_type:u,custom_data:Object.assign({chain_id:null!==(l=null===(s=null===t||void 0===t?void 0:t.account)||void 0===s?void 0:s.chain)&&void 0!==l?l:null,provider:null!==(c=null===t||void 0===t?void 0:t.provider)&&void 0!==c?c:null},nt(e))}}function ot(e){return{type:"connection-started",custom_data:nt(e)}}function it(e,t){return Object.assign({type:"connection-completed",is_success:!0},rt(e,t))}function at(e,t,n){return{type:"connection-error",is_success:!1,error_message:t,error_code:null!==n&&void 0!==n?n:null,custom_data:nt(e)}}function st(e){return{type:"connection-restoring-started",custom_data:nt(e)}}function lt(e,t){return Object.assign({type:"connection-restoring-completed",is_success:!0},rt(e,t))}function ct(e,t){return{type:"connection-restoring-error",is_success:!1,error_message:t,custom_data:nt(e)}}function ut(e,t){var n,r,o,i;return{valid_until:null!==(n=String(t.validUntil))&&void 0!==n?n:null,from:null!==(i=null!==(r=t.from)&&void 0!==r?r:null===(o=null===e||void 0===e?void 0:e.account)||void 0===o?void 0:o.address)&&void 0!==i?i:null,messages:t.messages.map((e=>{var t,n;return{address:null!==(t=e.address)&&void 0!==t?t:null,amount:null!==(n=e.amount)&&void 0!==n?n:null}}))}}function dt(e,t,n){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},rt(e,t)),ut(t,n))}function ft(e,t,n,r){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc},rt(e,t)),ut(t,n))}function ht(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:null!==o&&void 0!==o?o:null},rt(e,t)),ut(t,n))}function pt(e,t,n){return Object.assign({type:"disconnection",scope:n},rt(e,t))}class gt{constructor(){this.window=Be()}dispatchEvent(e,t){var n;return ae(this,void 0,void 0,(function*(){const r=new CustomEvent(e,{detail:t});null===(n=this.window)||void 0===n||n.dispatchEvent(r)}))}addEventListener(e,t,n){var r;return ae(this,void 0,void 0,(function*(){return null===(r=this.window)||void 0===r||r.addEventListener(e,t,n),()=>{var n;return null===(n=this.window)||void 0===n?void 0:n.removeEventListener(e,t)}}))}}class mt{constructor(e){var t;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=null!==(t=null===e||void 0===e?void 0:e.eventDispatcher)&&void 0!==t?t:new gt,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}get version(){return nt({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return ae(this,void 0,void 0,(function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch(wr){}}))}setRequestVersionHandler(){return ae(this,void 0,void 0,(function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",(()=>ae(this,void 0,void 0,(function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",tt(this.tonConnectSdkVersion))}))))}))}requestTonConnectUiVersion(){return ae(this,void 0,void 0,(function*(){return new Promise(((e,t)=>ae(this,void 0,void 0,(function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",(t=>{e(t.detail.version)}),{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",{type:"request-version"})}catch(wr){t(wr)}}))))}))}dispatchUserActionEvent(e){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(wr){}}trackConnectionStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ot(this.version,...t);this.dispatchUserActionEvent(r)}catch(wr){}}trackConnectionCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=it(this.version,...t);this.dispatchUserActionEvent(r)}catch(wr){}}trackConnectionError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=at(this.version,...t);this.dispatchUserActionEvent(r)}catch(wr){}}trackConnectionRestoringStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=st(this.version,...t);this.dispatchUserActionEvent(r)}catch(wr){}}trackConnectionRestoringCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=lt(this.version,...t);this.dispatchUserActionEvent(r)}catch(wr){}}trackConnectionRestoringError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ct(this.version,...t);this.dispatchUserActionEvent(r)}catch(wr){}}trackDisconnection(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=pt(this.version,...t);this.dispatchUserActionEvent(r)}catch(wr){}}trackTransactionSentForSignature(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=dt(this.version,...t);this.dispatchUserActionEvent(r)}catch(wr){}}trackTransactionSigned(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ft(this.version,...t);this.dispatchUserActionEvent(r)}catch(wr){}}trackTransactionSigningFailed(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ht(this.version,...t);this.dispatchUserActionEvent(r)}catch(wr){}}}class vt{constructor(e){if(this.walletsList=new Xe,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(null===e||void 0===e?void 0:e.manifestUrl)||He(),storage:(null===e||void 0===e?void 0:e.storage)||new qe},this.walletsList=new Xe({walletsListSource:null===e||void 0===e?void 0:e.walletsListSource,cacheTTLMs:null===e||void 0===e?void 0:e.walletsListCacheTTLMs}),this.tracker=new mt({eventDispatcher:null===e||void 0===e?void 0:e.eventDispatcher,tonConnectSdkVersion:"3.0.5"}),!this.dappSettings.manifestUrl)throw new le("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new $e(this.dappSettings.storage),(null===e||void 0===e?void 0:e.disableAutoPauseConnection)||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return null!==this._wallet}get account(){var e;return(null===(e=this._wallet)||void 0===e?void 0:e.account)||null}get wallet(){return this._wallet}set wallet(e){this._wallet=e,this.statusChangeSubscriptions.forEach((e=>e(this._wallet)))}getWallets(){return this.walletsList.getWallets()}onStatusChange(e,t){return this.statusChangeSubscriptions.push(e),t&&this.statusChangeErrorSubscriptions.push(t),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter((t=>t!==e)),t&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter((e=>e!==t)))}}connect(e,t){var n,r;const o={};if("object"===typeof t&&"tonProof"in t&&(o.request=t),"object"===typeof t&&("openingDeadlineMS"in t||"signal"in t||"request"in t)&&(o.request=null===t||void 0===t?void 0:t.request,o.openingDeadlineMS=null===t||void 0===t?void 0:t.openingDeadlineMS,o.signal=null===t||void 0===t?void 0:t.signal),this.connected)throw new de;const i=Pe(null===o||void 0===o?void 0:o.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)throw new se("Connection was aborted");return null===(r=this.provider)||void 0===r||r.closeConnection(),this.provider=this.createProvider(e),i.signal.addEventListener("abort",(()=>{var e;null===(e=this.provider)||void 0===e||e.closeConnection(),this.provider=null})),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest(null===o||void 0===o?void 0:o.request),{openingDeadlineMS:null===o||void 0===o?void 0:o.openingDeadlineMS,signal:i.signal})}restoreConnection(e){var t,n;return ae(this,void 0,void 0,(function*(){this.tracker.trackConnectionRestoringStarted();const r=Pe(null===e||void 0===e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");const[o,i]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");let a=null;try{switch(o){case"http":a=yield De.fromStorage(this.dappSettings.storage);break;case"injected":a=yield Ke.fromStorage(this.dappSettings.storage);break;default:if(!i)return;a=this.createProvider(i)}}catch(kt){return this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),null===a||void 0===a||a.closeConnection(),void(a=null)}if(r.signal.aborted)return null===a||void 0===a||a.closeConnection(),void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");if(!a)return Ne("Provider is not restored"),void this.tracker.trackConnectionRestoringError("Provider is not restored");null===(n=this.provider)||void 0===n||n.closeConnection(),this.provider=a,a.listen(this.walletEventsListener.bind(this));const s=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),null===a||void 0===a||a.closeConnection(),a=null};r.signal.addEventListener("abort",s);const l=Le((t=>ae(this,void 0,void 0,(function*(){yield null===a||void 0===a?void 0:a.restoreConnection({openingDeadlineMS:null===e||void 0===e?void 0:e.openingDeadlineMS,signal:t.signal}),r.signal.removeEventListener("abort",s),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}))),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:null===e||void 0===e?void 0:e.signal}),c=new Promise((e=>setTimeout((()=>e()),12e3)));return Promise.race([l,c])}))}sendTransaction(e,t){return ae(this,void 0,void 0,(function*(){const n={};"function"===typeof t?n.onRequestSent=t:(n.onRequestSent=null===t||void 0===t?void 0:t.onRequestSent,n.signal=null===t||void 0===t?void 0:t.signal);const r=Pe(null===n||void 0===n?void 0:n.signal);if(r.signal.aborted)throw new se("Transaction sending was aborted");this.checkConnection(),et(this.wallet.device.features,{requiredMessagesNumber:e.messages.length}),this.tracker.trackTransactionSentForSignature(this.wallet,e);const{validUntil:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["validUntil"]),a=e.from||this.account.address,s=e.network||this.account.chain,l=yield this.provider.sendRequest(Ee.convertToRpcRequest(Object.assign(Object.assign({},i),{valid_until:o,from:a,network:s})),{onRequestSent:n.onRequestSent,signal:r.signal});if(Ee.isError(l))return this.tracker.trackTransactionSigningFailed(this.wallet,e,l.error.message,l.error.code),Ee.parseAndThrowError(l);const c=Ee.convertFromRpcResponse(l);return this.tracker.trackTransactionSigned(this.wallet,e,c),c}))}disconnect(e){var t;return ae(this,void 0,void 0,(function*(){if(!this.connected)throw new fe;const n=Pe(null===e||void 0===e?void 0:e.signal),r=this.abortController;if(this.abortController=n,n.signal.aborted)throw new se("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield null===(t=this.provider)||void 0===t?void 0:t.disconnect({signal:n.signal}),null===r||void 0===r||r.abort()}))}pauseConnection(){var e;"http"===(null===(e=this.provider)||void 0===e?void 0:e.type)&&this.provider.pause()}unPauseConnection(){var e;return"http"!==(null===(e=this.provider)||void 0===e?void 0:e.type)?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const e=Fe();if(e)try{e.addEventListener("visibilitychange",(()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch()}))}catch(wr){Ne("Cannot subscribe to the document.visibilitychange: ",wr)}}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new Ke(this.dappSettings.storage,e.jsBridgeKey):new De(this.dappSettings.storage,e),t.listen(this.walletEventsListener.bind(this)),t}walletEventsListener(e){switch(e.event){case"connect":this.onWalletConnected(e.payload);break;case"connect_error":this.onWalletConnectError(e.payload);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(e){const t=e.items.find((e=>"ton_addr"===e.name)),n=e.items.find((e=>"ton_proof"===e.name));if(!t)throw new se("ton_addr connection item was not found");const r={device:e.device,provider:this.provider.type,account:{address:t.address,chain:t.network,walletStateInit:t.walletStateInit,publicKey:t.publicKey}};n&&(r.connectItems={tonProof:n}),this.wallet=r,this.tracker.trackConnectionCompleted(r)}onWalletConnectError(e){const t=Ce.parseError(e);if(this.statusChangeErrorSubscriptions.forEach((e=>e(t))),Me(t),this.tracker.trackConnectionError(e.message,e.code),t instanceof ue||t instanceof ce)throw Ne(t),t}onWalletDisconnected(e){this.tracker.trackDisconnection(this.wallet,e),this.wallet=null}checkConnection(){if(!this.connected)throw new fe}createConnectRequest(e){const t=[{name:"ton_addr"}];return(null===e||void 0===e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}vt.walletsList=new Xe,vt.isWalletInjected=e=>Ke.isWalletInjected(e),vt.isInsideWalletBrowser=e=>Ke.isInsideWalletBrowser(e);function yt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wc:n,hex:r}=function(e){if(!e.includes(":"))throw new ye(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new ye(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new ye(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if(64!==(null===r||void 0===r?void 0:r.length))throw new ye(`Wrong address ${e}. Hex part must be 64bytes length, but ${null===r||void 0===r?void 0:r.length} received.`);return{wc:n,hex:wt(r)}}(e);let o=81;t&&(o|=128);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const a=new Uint8Array(36);return a.set(i),a.set(function(e){const t=4129;let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let e=128;for(;e>0;)n<<=1,o&e&&(n+=1),e>>=1,n>65535&&(n&=65535,n^=t)}return new Uint8Array([Math.floor(n/256),n%256])}(i),34),ne.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}const bt={};for(let n=0;n<=255;n++){let e=n.toString(16);e.length<2&&(e="0"+e),bt[e]=n}function wt(e){const t=(e=e.toLowerCase()).length;if(t%2!==0)throw new be("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;o<n;o++){const t=2*o,n=e.substring(t,t+2);if(!bt.hasOwnProperty(n))throw new be("Invalid hex character: "+n);r[o]=bt[n]}return r}var xt,Ct,kt,St,Et,_t,At,Tt,Rt=n(2414),Ot=n(8738),Pt=Object.defineProperty,Lt=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,$t=(e,t,n)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dt=(e,t)=>{for(var n in t||(t={}))It.call(t,n)&&$t(e,n,t[n]);if(Nt)for(var n of Nt(t))jt.call(t,n)&&$t(e,n,t[n]);return e},Ut=(e,t)=>Lt(e,Mt(t)),Wt=(e,t,n)=>($t(e,"symbol"!==typeof t?t+"":t,n),n),zt=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const Bt={};const Ft=Symbol("solid-proxy"),Ht=Symbol("solid-track"),Vt={equals:(e,t)=>e===t};let Kt=En;const qt=1,Gt=2,Qt={owned:null,cleanups:null,context:null,owner:null},Zt={};var Yt=null;let Xt=null,Jt=null,en=null,tn=null,nn=0;function rn(e,t){const n=Jt,r=Yt,o=0===e.length,i=o?Qt:{owned:null,cleanups:null,context:null,owner:void 0===t?r:t},a=o?e:()=>e((()=>fn((()=>Rn(i)))));Yt=i,Jt=null;try{return Sn(a,!0)}finally{Jt=n,Yt=r}}function on(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},Vt,t):Vt).equals||void 0};return[bn.bind(n),e=>("function"===typeof e&&(e=e(n.value)),wn(n,e))]}function an(e,t,n){xn(Cn(e,t,!0,qt))}function sn(e,t,n){xn(Cn(e,t,!1,qt))}function ln(e,t,n){Kt=_n;const r=Cn(e,t,!1,qt);r.user=!0,tn?tn.push(r):xn(r)}function cn(e,t,n){n=n?Object.assign({},Vt,n):Vt;const r=Cn(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,xn(r),bn.bind(r)}function un(e,t,n){let r,o,i;2===arguments.length&&"object"===typeof t||1===arguments.length?(r=!0,o=e,i=t||{}):(r=e,o=t,i=n||{});let a=null,s=Zt,l=null,c=!1,u="initialValue"in i,d="function"===typeof r&&cn(r);const f=new Set,[h,p]=(i.storage||on)(i.initialValue),[g,m]=on(void 0),[v,y]=on(void 0,{equals:!1}),[b,w]=on(u?"ready":"unresolved");if(Bt.context){let e;l=`${Bt.context.id}${Bt.context.count++}`,"initial"===i.ssrLoadFrom?s=i.initialValue:Bt.load&&(e=Bt.load(l))&&(s=e[0])}function x(e,t,n,r){return a===e&&(a=null,u=!0,e!==s&&t!==s||!i.onHydrated||queueMicrotask((()=>i.onHydrated(r,{value:t}))),s=Zt,function(e,t){Sn((()=>{void 0===t&&p((()=>e)),w(void 0!==t?"errored":"ready"),m(t);for(const e of f.keys())e.decrement();f.clear()}),!1)}(t,n)),t}function C(){const e=undefined,t=h(),n=g();if(void 0!==n&&!a)throw n;return Jt&&!Jt.user&&e&&an((()=>{v(),a&&(e.resolved||f.has(e)||(e.increment(),f.add(e)))})),t}function k(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!1!==e&&c)return;c=!1;const t=d?d():r;if(null==t||!1===t)return void x(a,fn(h));const n=s!==Zt?s:fn((()=>o(t,{value:h(),refetching:e})));return"object"===typeof n&&n&&"then"in n?(a=n,c=!0,queueMicrotask((()=>c=!1)),Sn((()=>{w(u?"refreshing":"pending"),y()}),!1),n.then((e=>x(n,e,void 0,t)),(e=>x(n,void 0,On(e),t)))):(x(a,n,void 0,t),n)}return Object.defineProperties(C,{state:{get:()=>b()},error:{get:()=>g()},loading:{get(){const e=b();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return C();const e=g();if(e&&!a)throw e;return h()}}}),d?an((()=>k(!1))):k(!1),[C,{refetch:k,mutate:p}]}function dn(e){return Sn(e,!1)}function fn(e){if(null===Jt)return e();const t=Jt;Jt=null;try{return e()}finally{Jt=t}}function hn(e){ln((()=>fn(e)))}function pn(e){return null===Yt||(null===Yt.cleanups?Yt.cleanups=[e]:Yt.cleanups.push(e)),e}function gn(){return Jt}function mn(e,t){const n=Symbol("context");return{id:n,Provider:Nn(n),defaultValue:e}}function vn(e){let t;return void 0!==(t=Ln(Yt,e.id))?t:e.defaultValue}function yn(e){const t=cn(e),n=cn((()=>Mn(t())));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function bn(){const e=Xt;if(this.sources&&(this.state||e))if(this.state===qt||e)xn(this);else{const e=en;en=null,Sn((()=>An(this)),!1),en=e}if(Jt){const e=this.observers?this.observers.length:0;Jt.sources?(Jt.sources.push(this),Jt.sourceSlots.push(e)):(Jt.sources=[this],Jt.sourceSlots=[e]),this.observers?(this.observers.push(Jt),this.observerSlots.push(Jt.sources.length-1)):(this.observers=[Jt],this.observerSlots=[Jt.sources.length-1])}return this.value}function wn(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&Sn((()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=Xt&&Xt.running;r&&Xt.disposed.has(n),(r&&!n.tState||!r&&!n.state)&&(n.pure?en.push(n):tn.push(n),n.observers&&Tn(n)),r||(n.state=qt)}if(en.length>1e6)throw en=[],new Error}),!1)),t}function xn(e){if(!e.fn)return;Rn(e);const t=Yt,n=Jt,r=nn;Jt=Yt=e,function(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=qt,e.owned&&e.owned.forEach(Rn),e.owned=null),Pn(o)}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?wn(e,r):e.value=r,e.updatedAt=n)}(e,e.value,r),Jt=n,Yt=t}function Cn(e,t,n){const r={fn:e,state:arguments.length>3&&void 0!==arguments[3]?arguments[3]:qt,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Yt,context:null,pure:n};return null===Yt||Yt!==Qt&&(Yt.owned?Yt.owned.push(r):Yt.owned=[r]),r}function kn(e){const t=Xt;if(0===e.state||t)return;if(e.state===Gt||t)return An(e);if(e.suspense&&fn(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<nn);)(e.state||t)&&n.push(e);for(let r=n.length-1;r>=0;r--)if((e=n[r]).state===qt||t)xn(e);else if(e.state===Gt||t){const t=en;en=null,Sn((()=>An(e,n[0])),!1),en=t}}function Sn(e,t){if(en)return e();let n=!1;t||(en=[]),tn?n=!0:tn=[],nn++;try{const t=e();return function(e){en&&(En(en),en=null);if(e)return;const t=tn;tn=null,t.length&&Sn((()=>Kt(t)),!1)}(n),t}catch(r){n||(tn=null),en=null,Pn(r)}}function En(e){for(let t=0;t<e.length;t++)kn(e[t])}function _n(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:kn(r)}var r;for(Bt.context&&(Bt.context=r),t=0;t<n;t++)kn(e[t])}function An(e,t){const n=Xt;e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];o.sources&&(o.state===qt||n?o!==t&&kn(o):(o.state===Gt||n)&&An(o,t))}}function Tn(e){const t=Xt;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];r.state&&!t||(r.state=Gt,r.pure?en.push(r):tn.push(r),r.observers&&Tn(r))}}function Rn(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.owned){for(t=0;t<e.owned.length;t++)Rn(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function On(e){return e instanceof Error||"string"===typeof e?e:new Error("Unknown error")}function Pn(e){throw e=On(e)}function Ln(e,t){return e?e.context&&void 0!==e.context[t]?e.context[t]:Ln(e.owner,t):void 0}function Mn(e){if("function"===typeof e&&!e.length)return Mn(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=Mn(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Nn(e,t){return function(t){let n;return sn((()=>n=fn((()=>(Yt.context={[e]:t.value},yn((()=>t.children)))))),void 0),n}}const In=Symbol("fallback");function jn(e){for(let t=0;t<e.length;t++)e[t]()}function $n(e,t){return fn((()=>e(t||{})))}function Dn(){return!0}const Un={get:(e,t,n)=>t===Ft?n:e.get(t),has:(e,t)=>t===Ft||e.has(t),set:Dn,deleteProperty:Dn,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:Dn,deleteProperty:Dn}),ownKeys:e=>e.keys()};function Wn(e){return(e="function"===typeof e?e():e)?e:{}}function zn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=!1;for(let i=0;i<t.length;i++){const e=t[i];r=r||!!e&&Ft in e,t[i]="function"===typeof e?(r=!0,cn(e)):e}if(r)return new Proxy({get(e){for(let n=t.length-1;n>=0;n--){const r=Wn(t[n])[e];if(void 0!==r)return r}},has(e){for(let n=t.length-1;n>=0;n--)if(e in Wn(t[n]))return!0;return!1},keys(){const e=[];for(let n=0;n<t.length;n++)e.push(...Object.keys(Wn(t[n])));return[...new Set(e)]}},Un);const o={};for(let i=t.length-1;i>=0;i--)if(t[i]){const e=Object.getOwnPropertyDescriptors(t[i]);for(const n in e)n in o||Object.defineProperty(o,n,{enumerable:!0,get(){for(let e=t.length-1;e>=0;e--){const r=(t[e]||{})[n];if(void 0!==r)return r}}})}return o}function Bn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=new Set(n.flat());if(Ft in e){const t=n.map((t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter((t=>t in e))},Un)));return t.push(new Proxy({get:t=>o.has(t)?void 0:e[t],has:t=>!o.has(t)&&t in e,keys:()=>Object.keys(e).filter((e=>!o.has(e)))},Un)),t}const i=Object.getOwnPropertyDescriptors(e);return n.push(Object.keys(i).filter((e=>!o.has(e)))),n.map((t=>{const n={};for(let r=0;r<t.length;r++){const o=t[r];o in e&&Object.defineProperty(n,o,i[o]?i[o]:{get:()=>e[o],set:()=>!0,enumerable:!0})}return n}))}function Fn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return cn(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return pn((()=>jn(i))),()=>{let l,c,u=e()||[];return u[Ht],fn((()=>{let e,t,f,h,p,g,m,v,y,b=u.length;if(0===b)0!==a&&(jn(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[In],o[0]=rn((e=>(i[0]=e,n.fallback()))),a=1);else if(0===a){for(o=new Array(b),c=0;c<b;c++)r[c]=u[c],o[c]=rn(d);a=b}else{for(f=new Array(b),h=new Array(b),s&&(p=new Array(b)),g=0,m=Math.min(a,b);g<m&&r[g]===u[g];g++);for(m=a-1,v=b-1;m>=g&&v>=g&&r[m]===u[v];m--,v--)f[v]=o[m],h[v]=i[m],s&&(p[v]=s[m]);for(e=new Map,t=new Array(v+1),c=v;c>=g;c--)y=u[c],l=e.get(y),t[c]=void 0===l?-1:l,e.set(y,c);for(l=g;l<=m;l++)y=r[l],c=e.get(y),void 0!==c&&-1!==c?(f[c]=o[l],h[c]=i[l],s&&(p[c]=s[l]),c=t[c],e.set(y,c)):i[l]();for(c=g;c<b;c++)c in f?(o[c]=f[c],i[c]=h[c],s&&(s[c]=p[c],s[c](c))):o[c]=rn(d);o=o.slice(0,a=b),r=u.slice(0)}return o}));function d(e){if(i[c]=e,s){const[e,n]=on(c);return s[c]=n,t(u[c],e)}return t(u[c])}}}((()=>e.each),e.children,t||void 0))}function Hn(e){let t=!1;const n=e.keyed,r=cn((()=>e.when),void 0,{equals:(e,n)=>t?e===n:!e===!n});return cn((()=>{const o=r();if(o){const r=e.children,i="function"===typeof r&&r.length>0;return t=n||i,i?fn((()=>r(o))):r}return e.fallback}),void 0,void 0)}function Vn(e){let t=!1,n=!1;const r=yn((()=>e.children)),o=cn((()=>{let e=r();Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const r=e[t].when;if(r)return n=!!e[t].keyed,[t,r,e[t]]}return[-1]}),void 0,{equals:(e,n)=>e[0]===n[0]&&(t?e[1]===n[1]:!e[1]===!n[1])&&e[2]===n[2]});return cn((()=>{const[r,i,a]=o();if(r<0)return e.fallback;const s=a.children,l="function"===typeof s&&s.length>0;return t=n||l,l?fn((()=>s(i))):s}),void 0,void 0)}function Kn(e){return e}const qn=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Gn=new Set(["innerHTML","textContent","innerText","children"]),Qn=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Zn=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Yn=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Xn=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Jn={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const er="_$DX_DELEGATE";function tr(e,t,n){if("undefined"===typeof window)return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function nr(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function rr(e,t){null==t?e.removeAttribute("class"):e.className=t}function or(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};return(arguments.length>3?arguments[3]:void 0)||sn((()=>r.children=dr(e,t.children,r.children))),sn((()=>t.ref&&t.ref(e))),sn((()=>function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];t||(t={});for(const a in o)if(!(a in t)){if("children"===a)continue;o[a]=cr(e,a,null,o[a],n,i)}for(const a in t){if("children"===a){r||dr(e,t.children);continue}const s=t[a];o[a]=cr(e,a,s,o[a],n,i)}}(e,t,n,!0,r,!0))),r}function ir(e,t,n){return fn((()=>e(t,n)))}function ar(e,t,n,r){if(void 0===n||r||(r=[]),"function"!==typeof t)return dr(e,t,r,n);sn((r=>dr(e,t(),r,n)),r)}function sr(e){let t,n;return Bt.context&&(t=Bt.registry.get(n=function(){const e=Bt.context;return`${e.id}${e.count++}`}()))?(Bt.completed&&Bt.completed.add(t),Bt.registry.delete(n),t):e.cloneNode(!0)}function lr(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function cr(e,t,n,r,o,i){let a,s,l;if("style"===t)return function(e,t,n){if(!t)return n?nr(e,"style"):t;const r=e.style;if("string"===typeof t)return r.cssText=t;let o,i;for(i in"string"===typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[i]&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}(e,n,r);if("classList"===t)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;i<a;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(lr(e,r,!1),delete n[r])}for(i=0,a=r.length;i<a;i++){const o=r[i],a=!!t[o];o&&"undefined"!==o&&n[o]!==a&&a&&(lr(e,o,!0),n[o]=a)}return n}(e,n,r);if(n===r)return r;if("ref"===t)i||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r),n&&e.addEventListener(o,n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),i=Yn.has(o);if(!i&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(i||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n)}(e,o,n,i),i&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document;const n=t[er]||(t[er]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,ur))}}([o]))}else if((l=Gn.has(t))||!o&&(Zn[t]||(s=qn.has(t)))||(a=e.nodeName.includes("-")))"class"===t||"className"===t?rr(e,n):!a||s||l?e[Zn[t]||t]=n:e[(c=t,c.toLowerCase().replace(/-([a-z])/g,((e,t)=>t.toUpperCase())))]=n;else{const r=o&&t.indexOf(":")>-1&&Jn[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):nr(e,Qn[t]||t,n)}var c;return n}function ur(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>n||document}),Bt.registry&&!Bt.done&&(Bt.done=!0,document.querySelectorAll("[id^=pl-]").forEach((t=>{for(;t&&8!==t.nodeType&&t.nodeValue!=="pl-"+e;){let e=t.nextSibling;t.remove(),t=e}t&&t.remove()})));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(void 0!==o?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function dr(e,t,n,r,o){for(Bt.context&&!n&&(n=[...e.childNodes]);"function"===typeof n;)n=n();if(t===n)return n;const i=typeof t,a=void 0!==r;if(e=a&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(Bt.context)return n;if("number"===i&&(t=t.toString()),a){let o=n[0];o&&3===o.nodeType?o.data=t:o=document.createTextNode(t),n=pr(e,n,r,o)}else n=""!==n&&"string"===typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(Bt.context)return n;n=pr(e,n,r)}else{if("function"===i)return sn((()=>{let o=t();for(;"function"===typeof o;)o=o();n=dr(e,o,n,r)})),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(fr(i,t,n,o))return sn((()=>n=dr(e,i,n,r,!0))),()=>n;if(Bt.context){if(!i.length)return n;for(let e=0;e<i.length;e++)if(i[e].parentNode)return n=i}if(0===i.length){if(n=pr(e,n,r),a)return n}else s?0===n.length?hr(e,i,r):function(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,c=null;for(;a<o||s<i;)if(t[a]!==n[s]){for(;t[o-1]===n[i-1];)o--,i--;if(o===a){const t=i<r?s?n[s-1].nextSibling:n[i-s]:l;for(;s<i;)e.insertBefore(n[s++],t)}else if(i===s)for(;a<o;)c&&c.has(t[a])||t[a].remove(),a++;else if(t[a]===n[i-1]&&n[s]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!c){c=new Map;let e=s;for(;e<i;)c.set(n[e],e++)}const r=c.get(t[a]);if(null!=r)if(s<r&&r<i){let l,u=a,d=1;for(;++u<o&&u<i&&null!=(l=c.get(t[u]))&&l===r+d;)d++;if(d>r-s){const o=t[a];for(;s<r;)e.insertBefore(n[s++],o)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}else a++,s++}(e,n,i):(n&&pr(e),hr(e,i));n=i}else if(t instanceof Node){if(Bt.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=pr(e,n,r,t);pr(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function fr(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a=t[i],s=n&&n[i];if(a instanceof Node)e.push(a);else if(null==a||!0===a||!1===a);else if(Array.isArray(a))o=fr(e,a,s)||o;else if("function"===typeof a)if(r){for(;"function"===typeof a;)a=a();o=fr(e,Array.isArray(a)?a:[a],Array.isArray(s)?s:[s])||o}else e.push(a),o=!0;else{const t=String(a);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function hr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function pr(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const t=a.parentNode===e;r||i?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}const gr="http://www.w3.org/2000/svg";function mr(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?document.createElementNS(gr,e):document.createElement(e)}function vr(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(Bt.context){const[t,n]=on(!1);return queueMicrotask((()=>n(!0))),()=>t()&&e.children}return()=>e.children}if(r instanceof HTMLHeadElement){const[e,t]=on(!1),n=()=>t(!0);rn((t=>ar(r,(()=>e()?t():o()()),null))),pn((()=>{Bt.context?queueMicrotask(n):n()}))}else{const i=mr(e.isSVG?"g":"div",e.isSVG),a=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get:()=>n.parentNode,configurable:!0}),ar(a,o()),r.appendChild(i),e.ref&&e.ref(i),pn((()=>r.removeChild(i)))}return n}function yr(e){const[t,n]=Bn(e,["component"]),r=cn((()=>t.component));return cn((()=>{const e=r();switch(typeof e){case"function":return fn((()=>e(n)));case"string":const t=Xn.has(e),r=Bt.context?sr():mr(e,t);return or(r,n,t),r}}))}var br=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(br||{});let wr={data:""},xr=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||wr,Cr=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,kr=/\/\*[^]*?\*\/| +/g,Sr=/\n+/g,Er=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?Er(a,i):i+"{"+Er(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=Er(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Er.p?Er.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},_r={},Ar=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Ar(e[n]);return t}return e},Tr=(e,t,n,r,o)=>{let i=Ar(e),a=_r[i]||(_r[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!_r[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=Cr.exec(e.replace(kr,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Sr," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Sr," ").trim();return r[0]})(e);_r[a]=Er(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&_r.g?_r.g:null;return n&&(_r.g=_r[a]),l=_r[a],c=t,u=r,(d=s)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),a;var l,c,u,d},Rr=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":Er(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function Or(e){let t=this||{},n=e.call?e(t.p):e;return Tr(n.unshift?n.raw?Rr(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,xr(t.target),t.g,t.o,t.k)}Or.bind({g:1});let Pr=Or.bind({k:1});const Lr=mn();function Mr(e){return $n(Lr.Provider,{value:e.theme,get children(){return e.children}})}function Nr(){return vn(Lr)}function Ir(e){let t=this||{};return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const i=n=>{const o=zn(n,{theme:vn(Lr)}),i=zn(o,{get class(){const e=o.class,n="class"in o&&/^go[0-9]+/.test(e);return[e,Or.apply({target:t.target,o:n,p:o,g:t.g},r)].filter(Boolean).join(" ")}}),[a,s]=Bn(i,["as","theme"]),l=s,c=a.as||e;let u;return"function"===typeof c?u=c(l):1==t.g?(u=document.createElement(c),or(u,l)):u=yr(zn({component:c},l)),u};return i.class=e=>fn((()=>Or.apply({target:t.target,p:e,g:t.g},r))),i}}const jr=new Proxy(Ir,{get:(e,t)=>e(t)});function $r(){const e=Ir.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const Dr="tc-root",Ur="tc-disable-scroll",Wr="tc-using-mouse",zr=()=>{document.body.addEventListener("mousedown",(()=>document.body.classList.add(Wr))),document.body.addEventListener("keydown",(e=>{"Tab"===e.key&&document.body.classList.remove(Wr)}));return $n($r`
|
|
3
|
-
${
|
|
2
|
+
var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function h(e){return e.length}function p(e,t){return t.push(e),e}var g=1,m=1,v=0,y=0,b=0,w="";function x(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:g,column:m,length:a,return:""}}function C(e,t){return a(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return b=y>0?u(w,--y):0,m--,10===b&&(m=1,g--),b}function S(){return b=y<v?u(w,y++):0,m++,10===b&&(m=1,g++),b}function E(){return u(w,y)}function _(){return y}function A(e,t){return d(w,e,t)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R(e){return g=m=1,v=f(w=e),y=0,[]}function O(e){return w="",e}function P(e){return s(A(y-1,N(91===e?e+2:40===e?e+1:e)))}function L(e){for(;(b=E())&&b<33;)S();return T(e)>2||T(b)>3?"":" "}function M(e,t){for(;--t&&S()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return A(e,_()+(t<6&&32==E()&&32==S()))}function N(e){for(;S();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&N(b);break;case 40:41===e&&N(e);break;case 92:S()}return y}function I(e,t){for(;S()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+A(t,y-1)+"*"+i(47===e?e:S())}function j(e){for(;!T(E());)S();return A(e,y)}var $="-ms-",D="-moz-",U="-webkit-",W="comm",z="rule",B="decl",F="@keyframes";function H(e,t){for(var n="",r=h(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function V(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case B:return e.return=e.return||e.value;case W:return"";case F:return e.return=e.value+"{"+H(e.children,r)+"}";case z:e.value=e.props.join(",")}return f(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function K(e){return O(q("",null,null,null,[""],e=R(e),0,[0],e))}function q(e,t,n,r,o,a,s,d,h){for(var g=0,m=0,v=s,y=0,b=0,w=0,x=1,C=1,A=1,T=0,R="",O=o,N=a,$=r,D=R;C;)switch(w=T,T=S()){case 40:if(108!=w&&58==u(D,v-1)){-1!=c(D+=l(P(T),"&","&\f"),"&\f")&&(A=-1);break}case 34:case 39:case 91:D+=P(T);break;case 9:case 10:case 13:case 32:D+=L(w);break;case 92:D+=M(_()-1,7);continue;case 47:switch(E()){case 42:case 47:p(Q(I(S(),_()),t,n),h);break;default:D+="/"}break;case 123*x:d[g++]=f(D)*A;case 125*x:case 59:case 0:switch(T){case 0:case 125:C=0;case 59+m:-1==A&&(D=l(D,/\f/g,"")),b>0&&f(D)-v&&p(b>32?Z(D+";",r,n,v-1):Z(l(D," ","")+";",r,n,v-2),h);break;case 59:D+=";";default:if(p($=G(D,t,n,g,m,o,d,R,O=[],N=[],v),a),123===T)if(0===m)q(D,t,$,$,O,a,v,d,N);else switch(99===y&&110===u(D,3)?100:y){case 100:case 108:case 109:case 115:q(e,$,$,r&&p(G(e,$,$,0,0,o,d,R,o,O=[],v),N),o,N,v,d,r?O:N);break;default:q(D,$,$,$,[""],N,0,d,N)}}g=m=b=0,x=A=1,R=D="",v=s;break;case 58:v=1+f(D),b=w;default:if(x<1)if(123==T)--x;else if(125==T&&0==x++&&125==k())continue;switch(D+=i(T),T*x){case 38:A=m>0?1:(D+="\f",-1);break;case 44:d[g++]=(f(D)-1)*A,A=1;break;case 64:45===E()&&(D+=P(S())),y=E(),m=v=f(R=D+=j(_())),T++;break;case 45:45===w&&2==f(D)&&(x=0)}}return a}function G(e,t,n,r,i,a,c,u,f,p,g){for(var m=i-1,v=0===i?a:[""],y=h(v),b=0,w=0,C=0;b<r;++b)for(var k=0,S=d(e,m+1,m=o(w=c[b])),E=e;k<y;++k)(E=s(w>0?v[k]+" "+S:l(S,/&\f/g,v[k])))&&(f[C++]=E);return x(e,t,n,0===i?z:u,f,p,g)}function Q(e,t,n){return x(e,t,n,W,i(b),d(e,2,-2),0)}function Z(e,t,n,r){return x(e,t,n,B,d(e,0,r),d(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,o=0;r=o,o=E(),38===r&&12===o&&(t[n]=1),!T(o);)S();return A(e,y)},X=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Y(y-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=S());return e}(R(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=X(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+D+e+$+e+e;case 6828:case 4268:return U+e+$+e+e;case 6165:return U+e+$+"flex-"+e+e;case 5187:return U+e+l(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+$+"flex-$1$2")+e;case 5443:return U+e+$+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return U+e+$+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+$+l(e,"shrink","negative")+e;case 5292:return U+e+$+l(e,"basis","preferred-size")+e;case 6060:return U+"box-"+l(e,"-grow","")+U+e+$+l(e,"grow","positive")+e;case 4554:return U+l(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+$+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+D+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+U)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===u(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+$+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return U+e+$+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+$+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+$+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+$+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case B:e.return=ne(e.value,e.length);break;case F:return H([C(e,{value:l(e.value,"@","@"+U)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([C(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([C(e,{props:[l(t,/:(plac\w+)/,":"+U+"input-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,$+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||re,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d=[V,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var t=h(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([ee,te].concat(a,d));i=function(e,t,n,r){c=n,H(K(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return p.sheet.hydrate(l),p}},7923:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},7576:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,T:()=>l,w:()=>s});var r=n(9950),o=n(8603),i=(n(9015),n(6477),r.createContext("undefined"!==typeof HTMLElement?(0,o.A)({key:"css"}):null)),a=i.Provider,s=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(i);return e(t,o,n)}))},l=r.createContext({})},8283:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(7576),o=n(9950),i=n(1783),a=n(6477),s=n(9015),l=(n(8603),n(3876),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,o.useContext(r.T)),c=o.useRef();return(0,a.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}var u=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},9015:(e,t,n)=>{"use strict";n.d(t,{J:()=>m});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(7923),i=!1,a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===r[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},f="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function h(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return p={name:o.name,styles:o.styles,next:p},o.name;var a=n;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)p={name:s.name,styles:s.styles,next:p},s=s.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=h(e,t,n[o])+";";else for(var a in n){var s=n[a];if("object"!==typeof s){var l=s;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":c(l)&&(r+=u(a)+":"+d(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&i)throw new Error(f);if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var p=h(e,t,s);switch(a){case"animation":case"animationName":r+=u(a)+":"+p+";";break;default:r+=a+"{"+p+"}"}}else for(var g=0;g<s.length;g++)c(s[g])&&(r+=u(a)+":"+d(a,s[g])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=p,g=n(e);return p=l,h(e,t,g)}}var m=n;if(null==t)return m;var v=t[m];return void 0!==v?v:m}var p,g=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function m(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";p=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=h(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=h(n,t,e[a]),r)o+=i[a]}g.lastIndex=0;for(var s,l="";null!==(s=g.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:p}}},6477:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>a});var o=n(9950),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,a=i||function(e){return e()},s=i||o.useLayoutEffect},1783:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>i});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},4300:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r)}(n(9950));var o=r(n(9526)),i=n(4414);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.A=(0,o.default)((0,i.jsx)("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}),"Telegram")},9526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(6987)},7353:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(9950),o=n(5537);n(4414);const i=r.createContext(void 0);function a(e){let{props:t,name:n}=e;return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?(0,o.A)(i.defaultProps,r):i.styleOverrides||i.variants?r:(0,o.A)(i,r)}({props:t,name:n,theme:{components:r.useContext(i)}})}function s(e){return a(e)}},7775:(e,t,n)=>{"use strict";n.d(t,{A:()=>U});var r=n(8168),o=n(8587),i=n(8099),a=n(7483),s=n(8076),l=n(505),c=n(2860);var u=n(9269);const d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},p={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function C(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,o):"dark"===t&&(e.dark=(0,u.e$)(e.main,i)))}function k(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,o.A)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),k=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(t),S=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[500],light:p[300],dark:p[700]}:{main:p[700],light:p[400],dark:p[800]}}(t),E=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),_=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),A=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(t);function T(e){return(0,u.eM)(e,x.text.primary)>=n?x.text.primary:w.text.primary}const R=e=>{let{color:t,name:n,mainShade:o=500,lightShade:a=300,darkShade:l=700}=e;if(t=(0,r.A)({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,i.A)(11,n?` (${n})`:"",o));if("string"!==typeof t.main)throw new Error((0,i.A)(12,n?` (${n})`:"",JSON.stringify(t.main)));return C(t,"light",a,s),C(t,"dark",l,s),t.contrastText||(t.contrastText=T(t.main)),t},O={dark:x,light:w};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:R({color:c,name:"primary"}),secondary:R({color:k,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:R({color:S,name:"error"}),warning:R({color:A,name:"warning"}),info:R({color:E,name:"info"}),success:R({color:_,name:"success"}),grey:f,contrastThreshold:n,getContrastText:T,augmentColor:R,tonalOffset:s},O[t]),l)}const S=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const E={textTransform:"uppercase"},_='"Roboto", "Helvetica", "Arial", sans-serif';function A(e,t){const n="function"===typeof t?t(e):t,{fontFamily:i=_,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:h,pxToRem:p}=n,g=(0,o.A)(n,S);const m=s/14,v=p||(e=>e/f*m+"rem"),y=(e,t,n,o,a)=>{return(0,r.A)({fontFamily:i,fontWeight:e,fontSize:v(t),lineHeight:n},i===_?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},a,h);var s},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(u,14,1.75,.4,E),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:f,pxToRem:v,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),g,{clone:!1})}function T(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const R=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)],O=["duration","easing","delay"],P={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},L={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M(e){return`${Math.round(e)}ms`}function N(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function I(e){const t=(0,r.A)({},P,e.easing),n=(0,r.A)({},L,e.duration);return(0,r.A)({getAutoHeightDuration:N,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:i=n.standard,easing:a=t.easeInOut,delay:s=0}=r;(0,o.A)(r,O);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof i?i:M(i)} ${a} ${"string"===typeof s?s:M(s)}`)).join(",")}},e,{easing:t,duration:n})}const j={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},$=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:u={},typography:d={}}=e,f=(0,o.A)(e,$);if(e.vars)throw new Error((0,i.A)(18));const h=k(n),p=(0,c.A)(e);let g=(0,a.A)(p,{mixins:(m=p.breakpoints,v=t,(0,r.A)({toolbar:{minHeight:56,[m.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[m.up("sm")]:{minHeight:64}}},v)),palette:h,shadows:R.slice(),typography:A(h,d),transitions:I(u),zIndex:(0,r.A)({},j)});var m,v;g=(0,a.A)(g,f);for(var y=arguments.length,b=new Array(y>1?y-1:0),w=1;w<y;w++)b[w-1]=arguments[w];return g=b.reduce(((e,t)=>(0,a.A)(e,t)),g),g.unstable_sxConfig=(0,r.A)({},s.A,null==f?void 0:f.unstable_sxConfig),g.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},g}const U=D},195:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(7775).A)()},7550:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},741:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},o=e=>r(e)&&"classes"!==e},9254:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(7295),o=n(195),i=n(7550),a=n(741);const s=(0,r.Ay)({themeId:i.A,defaultTheme:o.A,rootShouldForwardProp:a.A})},1676:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5501).A},1380:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),n)}return r.clear=()=>{clearTimeout(t)},r}},6987:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>o.A,createChainedFunction:()=>i,createSvgIcon:()=>C,debounce:()=>k.A,deprecatedPropType:()=>S,isMuiElement:()=>E,ownerDocument:()=>_,ownerWindow:()=>A.A,requirePropFactory:()=>T,setRef:()=>R,unstable_ClassNameGenerator:()=>U,unstable_useEnhancedEffect:()=>O,unstable_useId:()=>M,unsupportedProp:()=>N,useControlled:()=>I,useEventCallback:()=>j.A,useForkRef:()=>$.A,useIsFocusVisible:()=>D.A});var r=n(4501),o=n(1676);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}),(()=>{}))};var a=n(8168),s=n(9950),l=n.t(s,2),c=n(8587),u=n(2004),d=n(8465),f=n(7353),h=n(9254),p=n(1763),g=n(423);function m(e){return(0,g.Ay)("MuiSvgIcon",e)}(0,p.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var v=n(4414);const y=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],b=(0,h.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,o.A)(n.color)}`],t[`fontSize${(0,o.A)(n.fontSize)}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r,o,i,a,s,l,c,u,d,f,h,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(o=r.create)?void 0:o.call(r,"fill",{duration:null==(i=t.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(f=null==(h=(t.vars||t).palette)||null==(h=h[n.color])?void 0:h.main)?f:{action:null==(p=(t.vars||t).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(g=(t.vars||t).palette)||null==(g=g.action)?void 0:g.disabled,inherit:void 0}[n.color]}})),w=s.forwardRef((function(e,t){const n=(0,f.b)({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:l="inherit",component:h="svg",fontSize:p="medium",htmlColor:g,inheritViewBox:w=!1,titleAccess:x,viewBox:C="0 0 24 24"}=n,k=(0,c.A)(n,y),S=s.isValidElement(r)&&"svg"===r.type,E=(0,a.A)({},n,{color:l,component:h,fontSize:p,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:C,hasSvgAsChild:S}),_={};w||(_.viewBox=C);const A=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&`color${(0,o.A)(t)}`,`fontSize${(0,o.A)(n)}`]};return(0,d.A)(i,m,r)})(E);return(0,v.jsxs)(b,(0,a.A)({as:h,className:(0,u.A)(A.root,i),focusable:"false",color:g,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},_,k,S&&r.props,{ownerState:E,children:[S?r.props.children:r,x?(0,v.jsx)("title",{children:x}):null]}))}));w.muiName="SvgIcon";const x=w;function C(e,t){function n(n,r){return(0,v.jsx)(x,(0,a.A)({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=x.muiName,s.memo(s.forwardRef(n))}var k=n(1380);const S=function(e,t){return()=>null};const E=n(5447).A;const _=n(6907).A;var A=n(1733);const T=function(e,t){return()=>null};const R=n(5587).A;const O=n(1399).A;let P=0;const L=l["useId".toString()];const M=function(e){if(void 0!==L){const t=L();return null!=e?e:t}return function(e){const[t,n]=s.useState(e),r=e||t;return s.useEffect((()=>{null==t&&(P+=1,n(`mui-${P}`))}),[t]),r}(e)};const N=function(e,t,n,r,o){return null};const I=function(e){let{controlled:t,default:n,name:r,state:o="value"}=e;const{current:i}=s.useRef(void 0!==t),[a,l]=s.useState(n);return[i?t:a,s.useCallback((e=>{i||l(e)}),[])]};var j=n(5018),$=n(4326),D=n(2937);const U={configure:e=>{r.A.configure(e)}}},1733:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6907);const o=function(e){return(0,r.A)(e).defaultView||window}},5018:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(9950),o=n(1399);const i=function(e){const t=r.useRef(e);return(0,o.A)((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current}},4326:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(9950),o=n(5587);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,o.A)(t,e)}))}),t)}},2937:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(9950),o=n(1824);let i=!0,a=!1;const s=new o.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function u(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const h=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!f(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},3158:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(9950);var r=n(8283),o=n(4414);function i(e){const{styles:t,defaultTheme:n={}}=e,i="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,o.jsx)(r.mL,{styles:i})}},116:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>k.A,StyledEngineProvider:()=>C,ThemeContext:()=>l.T,css:()=>y.AH,default:()=>S,internal_processStyles:()=>E,keyframes:()=>y.i7});var r=n(8168),o=n(9950),i=n(7923),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,i.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(7576),c=n(1783),u=n(9015),d=n(6477),f=s,h=function(e){return"theme"!==e},p=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?f:h},g=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,d.s)((function(){return(0,c.sk)(t,n,r)})),null},v=function e(t,n){var i,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,a=n.target);var f=g(t,n,s),h=f||p(d),v=!h("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var w=y.length,x=1;x<w;x++)b.push(y[x],y[0][x])}var C=(0,l.w)((function(e,t,n){var r=v&&e.as||d,i="",s=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=o.useContext(l.T)}"string"===typeof e.className?i=(0,c.Rk)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var w=(0,u.J)(b.concat(s),t.registered,g);i+=t.key+"-"+w.name,void 0!==a&&(i+=" "+a);var x=v&&void 0===f?p(r):h,C={};for(var k in e)v&&"as"===k||x(k)&&(C[k]=e[k]);return C.className=i,n&&(C.ref=n),o.createElement(o.Fragment,null,o.createElement(m,{cache:t,serialized:w,isStringTag:"string"===typeof r}),o.createElement(r,C))}));return C.displayName=void 0!==i?i:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=b,C.__emotion_forwardProp=f,Object.defineProperty(C,"toString",{value:function(){return"."+a}}),C.withComponent=function(t,o){return e(t,(0,r.A)({},n,o,{shouldForwardProp:g(C,o,!0)})).apply(void 0,b)},C}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){v[e]=v(e)}));var y=n(8283),b=n(8603),w=n(4414);let x;function C(e){const{injectFirst:t,children:n}=e;return t&&x?(0,w.jsx)(l.C,{value:x,children:n}):n}"object"===typeof document&&(x=(0,b.A)({key:"css",prepend:!0}));var k=n(3158);function S(e,t){return v(e,t)}const E=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},9269:(e,t,n)=>{"use strict";var r=n(4994);t.X4=h,t.e$=p,t.eM=function(e,t){const n=f(e),r=f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=g;var o=r(n(9234)),i=r(n(3383));function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,i.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,o.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,o.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function f(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function p(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function g(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?p(e,t):g(e,t)}},7295:(e,t,n)=>{"use strict";var r=n(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=g,rootShouldForwardProp:r=p,slotShouldForwardProp:l=p}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:v((0,o.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:h,skipVariantsResolver:g,skipSx:w,overridesResolver:x=y(m(h))}=c,C=(0,i.default)(c,f),k=void 0!==g?g:h&&"Root"!==h&&"root"!==h||!1,S=w||!1;let E=p;"Root"===h||"root"===h?E=r:h?E=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const _=(0,a.default)(e,(0,o.default)({shouldForwardProp:E,label:undefined},C)),A=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,o.default)({},r,{theme:v({theme:r.theme,defaultTheme:n,themeId:t})})):e,T=function(r){let i=A(r);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];const c=s?s.map(A):[];d&&x&&c.push((e=>{const r=v((0,o.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const i=r.components[d].styleOverrides,a={};return Object.entries(i).forEach((t=>{let[n,i]=t;a[n]=b(i,(0,o.default)({},e,{theme:r}))})),x(e,a)})),d&&!k&&c.push((e=>{var r;const i=v((0,o.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==i||null==(r=i.components)||null==(r=r[d])?void 0:r.variants},(0,o.default)({},e,{theme:i}))})),S||c.push(u);const f=c.length-s.length;if(Array.isArray(r)&&f>0){const e=new Array(f).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const h=_(i,...c);return e.muiName&&(h.muiName=e.muiName),h};return _.withConfig&&(T.withConfig=_.withConfig),T}};var o=r(n(4634)),i=r(n(4893)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(116)),s=n(7785),l=(r(n(304)),r(n(8399)),r(n(9904))),c=r(n(8807));const u=["ownerState"],d=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g=(0,l.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function y(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,i.default)(t,u);const a="function"===typeof e?e((0,o.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,o.default)({ownerState:n},r))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,i.default)(a,d);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,o.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.default)({ownerState:n},r,n)):e.style))})),t}return a}},8286:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>a,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>o});var r=n(7483);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||i;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"===typeof t){const e=r.breakpoints||i;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];const a=[t,...o].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(t),a)}function u(e){let{values:t,breakpoints:n,base:r}=e;const o=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),i=Object.keys(o);if(0===i.length)return t;let a;return i.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[a],a=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[a],a=n):e[n]=t,e)),{})}},86:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},3628:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(8587),o=n(8168);const i=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,o.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,i),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function f(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-s/100}${n})`}function h(e,r){const o=u.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"===typeof t[u[o]]?t[u[o]]:r)-s/100}${n})`}return(0,o.A)({keys:u,values:c,up:d,down:f,between:h,only:function(e){return u.indexOf(e)+1<u.length?h(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?f(u[t]):h(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},2860:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(8168),o=n(8587),i=n(7483),a=n(3628);const s={borderRadius:4};var l=n(7937);var c=n(505),u=n(8076),d=n(86);const f=["breakpoints","palette","spacing","shape"];const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:h,shape:p={}}=e,g=(0,o.A)(e,f),m=(0,a.A)(t),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}(h);let y=(0,i.A)({breakpoints:m,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:v,shape:(0,r.A)({},s,p)},g);y.applyStyles=d.A;for(var b=arguments.length,w=new Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return y=w.reduce(((e,t)=>(0,i.A)(e,t)),y),y.unstable_sxConfig=(0,r.A)({},u.A,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},y}},9904:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>i.A});var r=n(2860),o=n(3628),i=n(86)},6206:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7483);const o=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},7937:(e,t,n)=>{"use strict";n.d(t,{LX:()=>p,MA:()=>h,_W:()=>g,Lc:()=>y,Ms:()=>b});var r=n(8286),o=n(2703),i=n(6206);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],o=s[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...d];function h(e,t,n,r){var i;const a=null!=(i=(0,o.Yn)(e,t,!1))?i:n;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function p(e){return h(e,"spacing",8)}function g(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function m(e,t,n,o){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=g(t,n),e)),{})}(c(n),o),a=e[n];return(0,r.NI)(e,a,i)}function v(e,t){const n=p(e.theme);return Object.keys(e).map((r=>m(e,t,r,n))).reduce(i.A,{})}function y(e){return v(e,u)}function b(e){return v(e,d)}function w(e){return v(e,f)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=d,w.propTypes={},w.filterProps=f},2703:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>i});var r=n(5501),o=n(8286);function i(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:i(e,n)||o,t&&(r=t(r,o,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,o.NI)(e,c,(e=>{let o=a(u,l,e);return e===o&&"string"===typeof e&&(o=a(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[t],c}},8076:(e,t,n)=>{"use strict";n.d(t,{A:()=>N});var r=n(7937),o=n(2703),i=n(6206);const a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,i.A)(t,r[n](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o};var s=n(8286);function l(e){return"number"!==typeof e?e:`${e}px solid`}function c(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),f=c("borderRight",l),h=c("borderBottom",l),p=c("borderLeft",l),g=c("borderColor"),m=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),w=c("outline",l),x=c("outlineColor"),C=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};C.propTypes={},C.filterProps=["borderRadius"];a(u,d,f,h,p,g,m,v,y,b,C,w,x);const k=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};k.propTypes={},k.filterProps=["gap"];const S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};S.propTypes={},S.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};E.propTypes={},E.filterProps=["rowGap"];a(k,S,E,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"}));function _(e,t){return"grey"===t?t:e}a((0,o.Ay)({prop:"color",themeKey:"palette",transform:_}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:_}));function A(e){return e<=1&&0!==e?100*e+"%":e}const T=(0,o.Ay)({prop:"width",transform:A}),R=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:A(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};R.filterProps=["maxWidth"];const O=(0,o.Ay)({prop:"minWidth",transform:A}),P=(0,o.Ay)({prop:"height",transform:A}),L=(0,o.Ay)({prop:"maxHeight",transform:A}),M=(0,o.Ay)({prop:"minHeight",transform:A}),N=((0,o.Ay)({prop:"size",cssProperty:"width",transform:A}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:A}),a(T,R,O,P,L,M,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:_},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_},backgroundColor:{themeKey:"palette",transform:_},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:k},rowGap:{style:E},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:A},maxWidth:{style:R},minWidth:{transform:A},height:{transform:A},maxHeight:{transform:A},minHeight:{transform:A},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},237:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(8587),i=n(7483),a=n(8076);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,o.A)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,i.Q)(e)?(0,r.A)({},a,e):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:u})}},8807:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>i.A});var r=n(505),o=n(237),i=n(8076)},505:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(5501),o=n(6206),i=n(2703),a=n(8286),s=n(8076);function l(){function e(e,t,n,o){const s={[e]:t,theme:n},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:f}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const h=(0,i.Yn)(n,u)||{};if(f)return f(s);return(0,a.NI)(s,t,(t=>{let n=(0,i.BO)(h,d,t);return t===n&&"string"===typeof t&&(n=(0,i.BO)(h,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const i=(0,a.EU)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==i&&void 0!==i)if("object"===typeof i)if(c[n])u=(0,o.A)(u,e(n,i,l,c));else{const e=(0,a.NI)({theme:l},i,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(r);return t.every((e=>o.size===Object.keys(e).length))}(e,i)?u=(0,o.A)(u,e):u[n]=t({sx:i,theme:l})}else u=(0,o.A)(u,e(n,i,l,c))})),(0,a.vf)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}const c=l();c.filterProps=["sx"];const u=c},4501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},5501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8099);function o(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(5501)},3383:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},8465:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},7483:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Q:()=>o});var r=n(8168);function o(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function i(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=n.clone?(0,r.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{o(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&o(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=o(t[r])?i(t[r]):t[r]:s[r]=t[r]})),s}},7785:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(7483)},8099:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},9234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(8099)},423:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i});var r=n(4501);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i=o[t];return i?`${n}-${i}`:`${r.A.generate(e)}-${t}`}},1763:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(423);function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o={};return t.forEach((t=>{o[t]=(0,r.Ay)(e,t,n)})),o}},8399:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>i});var r=n(6429);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){const t=`${e}`.match(o);return t&&t[1]||""}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||i(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo");default:return}}}},5447:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9950);function o(e,t){var n,o;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},6907:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},5537:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8168);function o(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.A)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[i][e]=o(a[e],s[e])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=e[i])})),n}},5587:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},1399:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9950);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},1824:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>s});var r=n(9950);const o={};const i=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,i),e}},2414:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(n){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"===typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},3876:(e,t,n)=>{"use strict";var r=n(630),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!i[v]&&(!r||!r[v])&&(!g||!g[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},2138:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case m:case g:case l:return e;default:return t}}case o:return t}}}function C(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||x(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},630:(e,t,n)=>{"use strict";e.exports=n(2138)},3450:function(e,t,n){e=n.nmd(e),function(n){"use strict";var r={};n.PubSub?(r=n.PubSub,console.warn("PubSub already loaded, using existing version")):(n.PubSub=r,function(e){var t={},n=-1,r="*";function o(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function a(e,t,n){try{e(t,n)}catch(r){setTimeout(i(r),0)}}function s(e,t,n){e(t,n)}function l(e,n,r,o){var i,l=t[n],c=o?s:a;if(Object.prototype.hasOwnProperty.call(t,n))for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&c(l[i],e,r)}function c(e,t,n){return function(){var o=String(e),i=o.lastIndexOf(".");for(l(e,e,t,n);-1!==i;)i=(o=o.substr(0,i)).lastIndexOf("."),l(e,o,t,n);l(e,r,t,n)}}function u(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&o(t[n]))}function d(e){for(var t=String(e),n=u(t)||u(r),o=t.lastIndexOf(".");!n&&-1!==o;)o=(t=t.substr(0,o)).lastIndexOf("."),n=u(t);return n}function f(e,t,n,r){var o=c(e="symbol"===typeof e?e.toString():e,t,r);return!!d(e)&&(!0===n?o():setTimeout(o,0),!0)}e.publish=function(t,n){return f(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return f(t,n,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!==typeof r)return!1;e="symbol"===typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(t,e)||(t[e]={});var o="uid_"+String(++n);return t[e][o]=r,o},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,(function(){e.unsubscribe(r),n.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,o=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])o++;break}return o},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,o,i,a=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},s="string"===typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||a(n)),l=!s&&"string"===typeof n,c="function"===typeof n,u=!1;if(!s){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o=t[r],l&&o[n]){delete o[n],u=n;break}if(c)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&o[i]===n&&(delete o[i],u=!0)}return u}e.clearSubscriptions(n)}}(r)),void 0!==e&&e.exports&&(t=e.exports=r),t.PubSub=r,e.exports=t=r}("object"===typeof window&&window||this)},8345:(e,t,n)=>{"use strict";var r=n(9950),o=n(5340);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),A=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function I(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=N&&e[N]||e["@@iterator"])?e:null}var j,$=Object.assign;function D(e){if(void 0===j)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var U=!1;function W(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function z(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 1:return e=W(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case C:return"Portal";case E:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case O:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return B(e(t))}catch(n){}}return null}function F(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return $({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=$({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,ke=null,Se=null;function Ee(e){if(e=wo(e)){if("function"!==typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function _e(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Ae(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Te(e,t){return e(t)}function Re(){}var Oe=!1;function Pe(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return Te(e,t,n)}finally{Oe=!1,(null!==ke||null!==Se)&&(Re(),Ae())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=Co(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Me=!1;if(u)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ue){Me=!1}function Ie(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var je=!1,$e=null,De=!1,Ue=null,We={onError:function(e){je=!0,$e=e}};function ze(e,t,n,r,o,i,a,s,l){je=!1,$e=null,Ie.apply(We,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Be(e)!==e)throw Error(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ze=o.unstable_requestPaint,Ye=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,Ct,kt,St,Et,_t=!1,At=[],Tt=null,Rt=null,Ot=null,Pt=new Map,Lt=new Map,Mt=[],Nt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function jt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function $t(e){var t=bo(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Et(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ut(e,t,n){Dt(e)&&n.delete(t)}function Wt(){_t=!1,null!==Tt&&Dt(Tt)&&(Tt=null),null!==Rt&&Dt(Rt)&&(Rt=null),null!==Ot&&Dt(Ot)&&(Ot=null),Pt.forEach(Ut),Lt.forEach(Ut)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Wt)))}function Bt(e){function t(t){return zt(t,e)}if(0<At.length){zt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&zt(Tt,e),null!==Rt&&zt(Rt,e),null!==Ot&&zt(Ot,e),Pt.forEach(t),Lt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)$t(n),null===n.blockedOn&&Mt.shift()}var Ft=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var o=bt,i=Ft.transition;Ft.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=o,Ft.transition=i}}function Kt(e,t,n,r){var o=bt,i=Ft.transition;Ft.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=o,Ft.transition=i}}function qt(e,t,n,r){if(Ht){var o=Qt(e,t,n,r);if(null===o)Hr(e,t,r,Gt,n),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=jt(Tt,e,t,n,r,o),!0;case"dragenter":return Rt=jt(Rt,e,t,n,r,o),!0;case"mouseover":return Ot=jt(Ot,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pt.set(i,jt(Pt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lt.set(i,jt(Lt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Qt(e,t,n,r))&&Hr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Qt(e,t,n,r){if(Gt=null,null!==(e=bo(e=xe(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Zt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return $(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=$({},cn,{view:0,detail:0}),fn=on(dn),hn=$({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),gn=on($({},hn,{dataTransfer:0})),mn=on($({},dn,{relatedTarget:0})),vn=on($({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=$({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on($({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function En(){return Sn}var _n=$({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(_n),Tn=on($({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on($({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),On=on($({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=$({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=on(Pn),Mn=[9,13,27,32],Nn=u&&"CompositionEvent"in window,In=null;u&&"documentMode"in document&&(In=document.documentMode);var jn=u&&"TextEvent"in window&&!In,$n=u&&(!Nn||In&&8<In&&11>=In),Dn=String.fromCharCode(32),Un=!1;function Wn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Fn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Vn(e,t,n,r){_e(r),0<(t=Kr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,qn=null;function Gn(e){Dr(e,0)}function Qn(e){if(q(xo(e)))return e}function Zn(e,t){if("change"===e)return t}var Yn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Xn=Jn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),qn=Kn=null)}function nr(e){if("value"===e.propertyName&&Qn(qn)){var t=[];Vn(t,qn,e,xe(e)),Pe(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(qn)}function ir(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==G(r)||("selectionStart"in(r=mr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Kr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},kr={},Sr={};function Er(e){if(kr[e])return kr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var _r=Er("animationend"),Ar=Er("animationiteration"),Tr=Er("animationstart"),Rr=Er("transitionend"),Or=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(e,t){Or.set(e,t),l(t,[e])}for(var Mr=0;Mr<Pr.length;Mr++){var Nr=Pr[Mr];Lr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Lr(_r,"onAnimationEnd"),Lr(Ar,"onAnimationIteration"),Lr(Tr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Rr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function $r(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(ze.apply(this,arguments),je){if(!je)throw Error(i(198));var u=$e;je=!1,$e=null,De||(De=!0,Ue=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;$r(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;$r(o,s,c),i=l}}}if(De)throw e=Ue,De=!1,Ue=null,e}function Ur(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Fr(t,e,2,!1),n.add(r))}function Wr(e,t,n){var r=0;t&&(r|=4),Fr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[zr]){e[zr]=!0,a.forEach((function(t){"selectionchange"!==t&&(jr.has(t)||Wr(t,!1,e),Wr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Wr("selectionchange",!1,t))}}function Fr(e,t,n,r){switch(Zt(t)){case 1:var o=Vt;break;case 4:o=Kt;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Pe((function(){var r=i,o=xe(n),a=[];e:{var s=Or.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":c="focus",l=mn;break;case"focusout":c="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case _r:case Ar:case Tr:l=vn;break;case Rr:l=On;break;case"scroll":l=fn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==f&&(null!=(g=Le(p,f))&&u.push(Vr(p,g,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[go])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=Be(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=pn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,g="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:xo(l),h=null==c?s:xo(c),(s=new u(g,p+"leave",l,n,o)).target=d,s.relatedTarget=h,g=null,bo(o)===r&&((u=new u(f,p+"enter",c,n,o)).target=h,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(f=c,p=0,h=u=l;h;h=qr(h))p++;for(h=0,g=f;g;g=qr(g))h++;for(;0<p-h;)u=qr(u),p--;for(;0<h-p;)f=qr(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=qr(u),f=qr(f)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?xo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Zn;else if(Hn(s))if(Yn)m=ar;else{m=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ir);switch(m&&(m=m(e,r))?Vn(a,m,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?xo(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(mr=v,vr=r,yr=null);break;case"focusout":yr=vr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Wn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&($n&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=en()):(Xt="value"in(Yt=o)?Yt.value:Yt.textContent,Bn=!0)),0<(v=Kr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Un=!0,Dn);case"textInput":return(e=t.data)===Dn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Nn&&Wn(e,t)?(e=en(),Jt=Xt=Yt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $n&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Kr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Dr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Le(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Le(e,t))&&r.push(Vr(e,i,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Le(n,i))&&a.unshift(Vr(n,l,s)):o||null!=(l=Le(n,i))&&a.push(Vr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function Yr(e){return("string"===typeof e?e:""+e).replace(Qr,"\n").replace(Zr,"")}function Xr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),ho="__reactFiber$"+fo,po="__reactProps$"+fo,go="__reactContainer$"+fo,mo="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[ho])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[ho]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Co(e){return e[po]||null}var ko=[],So=-1;function Eo(e){return{current:e}}function _o(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function Ao(e,t){So++,ko[So]=e.current,e.current=t}var To={},Ro=Eo(To),Oo=Eo(!1),Po=To;function Lo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function No(){_o(Oo),_o(Ro)}function Io(e,t,n){if(Ro.current!==To)throw Error(i(168));Ao(Ro,t),Ao(Oo,n)}function jo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,F(e)||"Unknown",o));return $({},n,r)}function $o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Po=Ro.current,Ao(Ro,e),Ao(Oo,Oo.current),!0}function Do(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=jo(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,_o(Oo),_o(Ro),Ao(Ro,e)):_o(Oo),Ao(Oo,n)}var Uo=null,Wo=!1,zo=!1;function Bo(e){null===Uo?Uo=[e]:Uo.push(e)}function Fo(){if(!zo&&null!==Uo){zo=!0;var e=0,t=bt;try{var n=Uo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Uo=null,Wo=!1}catch(o){throw null!==Uo&&(Uo=Uo.slice(e+1)),qe(Je,Fo),o}finally{bt=t,zo=!1}}return null}var Ho=[],Vo=0,Ko=null,qo=0,Go=[],Qo=0,Zo=null,Yo=1,Xo="";function Jo(e,t){Ho[Vo++]=qo,Ho[Vo++]=Ko,Ko=e,qo=t}function ei(e,t,n){Go[Qo++]=Yo,Go[Qo++]=Xo,Go[Qo++]=Zo,Zo=e;var r=Yo;e=Xo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Yo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Yo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Ko;)Ko=Ho[--Vo],Ho[Vo]=null,qo=Ho[--Vo],Ho[Vo]=null;for(;e===Zo;)Zo=Go[--Qo],Go[Qo]=null,Xo=Go[--Qo],Go[Qo]=null,Yo=Go[--Qo],Go[Qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zo?{id:Yo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw hi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=co(e.nextSibling)}function pi(){oi=ri=null,ii=!1}function gi(e){null===ai?ai=[e]:ai.push(e)}var mi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=$c(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===L&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Dc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Ic(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=$c(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case C:return(t=Dc(t,e.mode,n)).return=e,t;case L:return f(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Ic(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case C:return n.key===o?u(e,t,n,r):null;case L:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||I(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function p(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case L:return p(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function g(o,i,s,l){for(var c=null,u=null,d=i,g=i=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=h(o,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,g),null===u?c=v:u.sibling=v,u=v,d=m}if(g===s.length)return n(o,d),ii&&Jo(o,g),c;if(null===d){for(;g<s.length;g++)null!==(d=f(o,s[g],l))&&(i=a(d,i,g),null===u?c=d:u.sibling=d,u=d);return ii&&Jo(o,g),c}for(d=r(o,d);g<s.length;g++)null!==(m=p(d,o,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=a(m,i,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(o,e)})),ii&&Jo(o,g),c}function m(o,s,l,c){var u=I(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=h(o,g,y.value,c);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),s=a(b,s,m),null===d?u=b:d.sibling=b,d=b,g=v}if(y.done)return n(o,g),ii&&Jo(o,m),u;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=f(o,y.value,c))&&(s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return ii&&Jo(o,m),u}for(g=r(o,g);!y.done;m++,y=l.next())null!==(y=p(g,o,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),ii&&Jo(o,m),u}return function e(r,i,a,l){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===k){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===L&&bi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=vi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===k?((i=Ic(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Nc(a.type,a.key,a.props,null,r.mode,l)).ref=vi(r,i,a),l.return=r,r=l)}return s(r);case C:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Dc(a,r.mode,l)).return=r,r=i}return s(r);case L:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return g(r,i,a,l);if(I(a))return m(r,i,a,l);yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=$c(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var xi=wi(!0),Ci=wi(!1),ki=Eo(null),Si=null,Ei=null,_i=null;function Ai(){_i=Ei=Si=null}function Ti(e){var t=ki.current;_o(ki),e._currentValue=t}function Ri(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){Si=e,_i=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===Si)throw Error(i(308));Ei=e,Si.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Li=null;function Mi(e){null===Li?Li=[e]:Li.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ii(e,r)}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ji=!1;function $i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Di(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Tl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function zi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Bi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fi(e,t,n,r){var o=e.updateQueue;ji=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(f=t,h=n,g.tag){case 1:if("function"===typeof(p=g.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"===typeof(p=g.payload)?p.call(h,d,f):p)||void 0===f)break e;d=$({},d,f);break e;case 2:ji=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);jl|=a,e.lanes=a,e.memoizedState=d}}function Hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Vi={},Ki=Eo(Vi),qi=Eo(Vi),Gi=Eo(Vi);function Qi(e){if(e===Vi)throw Error(i(174));return e}function Zi(e,t){switch(Ao(Gi,t),Ao(qi,e),Ao(Ki,Vi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(Ki),Ao(Ki,t)}function Yi(){_o(Ki),_o(qi),_o(Gi)}function Xi(e){Qi(Gi.current);var t=Qi(Ki.current),n=le(t,e.type);t!==n&&(Ao(qi,e),Ao(Ki,n))}function Ji(e){qi.current===e&&(_o(Ki),_o(qi))}var ea=Eo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,ha=0;function pa(){throw Error(i(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:es,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Xa,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=d,jl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,jl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ka(){}function Sa(e,t){var n=sa,r=ba(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,bs=!0),r=r.queue,ja(Aa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Pa(9,_a.bind(null,n,r,o,t),void 0,null),null===Rl)throw Error(i(349));0!==(30&aa)||Ea(n,t,o)}return o}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function _a(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Ra(e)}function Aa(e,t,n){return n((function(){Ta(t)&&Ra(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ra(e){var t=Ii(e,1);null!==t&&nc(t,e,1,-1)}function Oa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function La(){return ba().memoizedState}function Ma(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Pa(1|t,n,void 0,void 0===r?null:r)}function Na(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Pa(t,n,i,r))}sa.flags|=e,o.memoizedState=Pa(1|t,n,i,r)}function Ia(e,t){return Ma(8390656,8,e,t)}function ja(e,t){return Na(2048,8,e,t)}function $a(e,t){return Na(4,2,e,t)}function Da(e,t){return Na(4,4,e,t)}function Ua(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Wa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Na(4,4,Ua.bind(null,t,e),n)}function za(){}function Ba(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=gt(),sa.lanes|=n,jl|=n,e.baseState=!0),t)}function Va(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ka(){return ba().memoizedState}function qa(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qa(e))Za(t,n);else if(null!==(n=Ni(e,t,n,r))){nc(n,e,r,ec()),Ya(n,t,r)}}function Ga(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qa(e))Za(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Mi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ni(e,t,o,r))&&(nc(n,e,r,o=ec()),Ya(n,t,r))}}function Qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Za(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ya(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Xa={readContext:Pi,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:Pi,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:Ia,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ma(4194308,4,Ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Oa,useDebugValue:za,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Va.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Rl)throw Error(i(349));0!==(30&aa)||Ea(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ia(Aa.bind(null,r,a,e),[e]),r.flags|=2048,Pa(9,_a.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Rl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Yo&~(1<<32-at(Yo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Pi,useCallback:Ba,useContext:Pi,useEffect:ja,useImperativeHandle:Wa,useInsertionEffect:$a,useLayoutEffect:Da,useMemo:Fa,useReducer:xa,useRef:La,useState:function(){return xa(wa)},useDebugValue:za,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ka,unstable_isNewReconciler:!1},ts={readContext:Pi,useCallback:Ba,useContext:Pi,useEffect:ja,useImperativeHandle:Wa,useInsertionEffect:$a,useLayoutEffect:Da,useMemo:Fa,useReducer:Ca,useRef:La,useState:function(){return Ca(wa)},useDebugValue:za,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[Ca(wa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ka,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=$({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:$({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ui(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Wi(e,i,o))&&(nc(t,e,o,r),zi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ui(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Wi(e,i,o))&&(nc(t,e,o,r),zi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Ui(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Wi(e,o,r))&&(nc(t,e,r,n),zi(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=To,i=t.contextType;return"object"===typeof i&&null!==i?i=Pi(i):(o=Mo(t)?Po:Ro.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Lo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},$i(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Pi(i):(i=Mo(t)?Po:Ro.current,o.context=Lo(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Fi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Vl=r),ds(0,t)},n}function ps(e,t,n){(n=Ui(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ui(-1,1)).tag=2,Wi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?Ci(t,null,n,r):xi(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=ma(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Cs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Lc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Mc(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!==(131072&e.flags)&&(bs=!0)}}return _s(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ao(Ml,Ll),Ll|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ao(Ml,Ll),Ll|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ao(Ml,Ll),Ll|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ao(Ml,Ll),Ll|=r;return ws(e,t,o,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _s(e,t,n,r,o){var i=Mo(n)?Po:Ro.current;return i=Lo(t,i),Oi(t,o),n=ma(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function As(e,t,n,r,o){if(Mo(n)){var i=!0;$o(t)}else i=!1;if(Oi(t,o),null===t.stateNode)Fs(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Pi(c):c=Lo(t,c=Mo(n)?Po:Ro.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),ji=!1;var f=t.memoizedState;a.state=f,Fi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Oo.current||ji?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=ji||is(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Di(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Pi(l):l=Lo(t,l=Mo(n)?Po:Ro.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),ji=!1,f=t.memoizedState,a.state=f,Fi(t,r,a,o);var p=t.memoizedState;s!==d||f!==p||Oo.current||ji?("function"===typeof h&&(rs(t,n,h,r),p=t.memoizedState),(c=ji||is(t,n,c,r,f,p,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,i,o)}function Ts(e,t,n,r,o,i){Es(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&Do(t,n,!1),Hs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&Do(t,n,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),Zi(e,t.containerInfo)}function Os(e,t,n,r,o){return pi(),gi(o),t.flags|=256,ws(e,t,n,r),t.child}var Ps,Ls,Ms,Ns,Is={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function $s(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ao(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=jc(l,o,0,null),e=Ic(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=js(n),t.memoizedState=Is,e):Ds(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Us(e,t,s,r=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=jc({mode:"visible",children:r.children},o,0,null),(a=Ic(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xi(t,e.child,null,s),t.child.memoizedState=js(s),t.memoizedState=Is,a);if(0===(1&t.mode))return Us(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Us(e,t,s,r=us(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Rl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ii(e,o),nc(r,e,o,-1))}return gc(),Us(e,t,s,r=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ac.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Qo++]=Yo,Go[Qo++]=Xo,Go[Qo++]=Zo,Yo=e.id,Xo=e.overflow,Zo=t),t=Ds(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Mc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Mc(r,s):(s=Ic(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?js(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Is,o}return e=(s=e.child).sibling,o=Mc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ds(e,t){return(t=jc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,n,r){return null!==r&&gi(r),xi(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ws(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ri(e.return,t,n)}function zs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Bs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ws(e,n,t);else if(19===e.tag)Ws(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ao(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zs(t,!0,n,null,i);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),jl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Mo(t.type)&&No(),Ks(t),null;case 3:return r=t.stateNode,Yi(),_o(Oo),_o(Ro),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Ls(e,t),Ks(t),null;case 5:Ji(t);var o=Qi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ks(t),null}if(e=Qi(Ki.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ho]=t,r[po]=a,e=0!==(1&t.mode),n){case"dialog":Ur("cancel",r),Ur("close",r);break;case"iframe":case"object":case"embed":Ur("load",r);break;case"video":case"audio":for(o=0;o<Ir.length;o++)Ur(Ir[o],r);break;case"source":Ur("error",r);break;case"img":case"image":case"link":Ur("error",r),Ur("load",r);break;case"details":Ur("toggle",r);break;case"input":Z(r,a),Ur("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ur("invalid",r);break;case"textarea":oe(r,a),Ur("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Ur("scroll",r)}switch(n){case"input":K(r),J(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[po]=r,Ps(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Ur("cancel",e),Ur("close",e),o=r;break;case"iframe":case"object":case"embed":Ur("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ir.length;o++)Ur(Ir[o],e);o=r;break;case"source":Ur("error",e),o=r;break;case"img":case"image":case"link":Ur("error",e),Ur("load",e),o=r;break;case"details":Ur("toggle",e),o=r;break;case"input":Z(e,r),o=Q(e,r),Ur("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=$({},r,{value:void 0}),Ur("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Ur("invalid",e)}for(a in ye(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?me(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Ur("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":K(e),J(e,r,!1);break;case"textarea":K(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ks(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Qi(Gi.current),Qi(Ki.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Xr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Ks(t),null;case 13:if(_o(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))hi(),pi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[ho]=t}else pi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Nl&&(Nl=3):gc())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return Yi(),Ls(e,t),null===e&&Br(t.stateNode.containerInfo),Ks(t),null;case 10:return Ti(t.type._context),Ks(t),null;case 19:if(_o(ea),null===(a=t.memoizedState))return Ks(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Nl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ao(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>Bl&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Ks(t),null}else 2*Ye()-a.renderingStartTime>Bl&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=ea.current,Ao(ea,r?1&n|2:1&n),t):(Ks(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ll)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yi(),_o(Oo),_o(Ro),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(_o(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(ea),null;case 4:return Yi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ps=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ls=function(){},Ms=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qi(Ki.current);var i,a=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),a=[];break;case"select":o=$({},o,{value:void 0}),r=$({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Ur("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qs=!1,Zs=!1,Ys="function"===typeof WeakSet?WeakSet:Set,Xs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ho],delete t[po],delete t[mo],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Zs||Js(n,t);case 6:var r=ul,o=dl;ul=null,fl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Bt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Zs&&(Js(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Zs=(r=Zs)||null!==n.memoizedState,fl(e,t,n),Zs=r):fl(e,t,n);break;default:fl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach((function(t){var r=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));hl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Sc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(m){Sc(e,e.return,m)}try{nl(5,e,e.return)}catch(m){Sc(e,e.return,m)}}break;case 1:gl(t,e),vl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(gl(t,e),vl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(m){Sc(e,e.return,m)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(o,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?me(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(l){case"input":X(o,a);break;case"textarea":ie(o,a);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(o,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[po]=a}catch(m){Sc(e,e.return,m)}}break;case 6:if(gl(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(m){Sc(e,e.return,m)}}break;case 3:if(gl(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(m){Sc(e,e.return,m)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(zl=Ye())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Zs=(u=Zs)||d,gl(t,e),Zs=u):gl(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(p=(h=Xs).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Js(h,h.return);var g=h.stateNode;if("function"===typeof g.componentWillUnmount){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Sc(r,n,m)}}break;case 5:Js(h,h.return);break;case 22:if(null!==h.memoizedState){xl(f);continue}}null!==p?(p.return=h,Xs=p):xl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(m){Sc(e,e.return,m)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){Sc(e,e.return,m)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),vl(e),4&r&&pl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Xs=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Qs;var c=Zs;if(Qs=a,(Zs=l)&&!c)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?Cl(o):null!==l?(l.return=a,Xs=l):Cl(o);for(;null!==i;)Xs=i,bl(i,t,n),i=i.sibling;Xs=o,Qs=s,Zs=c}wl(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Xs=i):wl(e)}}function wl(e){for(;null!==Xs;){var t=Xs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Hi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Bt(f)}}}break;default:throw Error(i(163))}Zs||512&t.flags&&ol(t)}catch(h){Sc(t,t.return,h)}}if(t===e){Xs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xs=n;break}Xs=t.return}}function xl(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function Cl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Sc(t,o,l)}}var i=t.return;try{ol(t)}catch(l){Sc(t,i,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var kl,Sl=Math.ceil,El=w.ReactCurrentDispatcher,_l=w.ReactCurrentOwner,Al=w.ReactCurrentBatchConfig,Tl=0,Rl=null,Ol=null,Pl=0,Ll=0,Ml=Eo(0),Nl=0,Il=null,jl=0,$l=0,Dl=0,Ul=null,Wl=null,zl=0,Bl=1/0,Fl=null,Hl=!1,Vl=null,Kl=null,ql=!1,Gl=null,Ql=0,Zl=0,Yl=null,Xl=-1,Jl=0;function ec(){return 0!==(6&Tl)?Ye():-1!==Xl?Xl:Xl=Ye()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==Pl?Pl&-Pl:null!==mi.transition?(0===Jl&&(Jl=gt()),Jl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Zt(e.type)}function nc(e,t,n,r){if(50<Zl)throw Zl=0,Yl=null,Error(i(185));vt(e,n,r),0!==(2&Tl)&&e===Rl||(e===Rl&&(0===(2&Tl)&&($l|=n),4===Nl&&sc(e,Pl)),rc(e,r),1===n&&0===Tl&&0===(1&t.mode)&&(Bl=Ye()+500,Wo&&Fo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Rl?Pl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Wo=!0,Bo(e)}(lc.bind(null,e)):Bo(lc.bind(null,e)),ao((function(){0===(6&Tl)&&Fo()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Rc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Xl=-1,Jl=0,0!==(6&Tl))throw Error(i(327));var n=e.callbackNode;if(Cc()&&e.callbackNode!==n)return null;var r=ft(e,e===Rl?Pl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=mc(e,r);else{t=r;var o=Tl;Tl|=2;var a=pc();for(Rl===e&&Pl===t||(Fl=null,Bl=Ye()+500,fc(e,t));;)try{yc();break}catch(l){hc(e,l)}Ai(),El.current=a,Tl=o,null!==Ol?t=0:(Rl=null,Pl=0,t=Nl)}if(0!==t){if(2===t&&(0!==(o=pt(e))&&(r=o,t=ic(e,o))),1===t)throw n=Il,fc(e,0),sc(e,r),rc(e,Ye()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=mc(e,r))&&(0!==(a=pt(e))&&(r=a,t=ic(e,a))),1===t))throw n=Il,fc(e,0),sc(e,r),rc(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xc(e,Wl,Fl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=zl+500-Ye())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,Wl,Fl),t);break}xc(e,Wl,Fl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Wl,Fl),r);break}xc(e,Wl,Fl);break;default:throw Error(i(329))}}}return rc(e,Ye()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Ul;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=Wl,Wl=n,null!==t&&ac(t)),e}function ac(e){null===Wl?Wl=e:Wl.push.apply(Wl,e)}function sc(e,t){for(t&=~Dl,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Tl))throw Error(i(327));Cc();var t=ft(e,0);if(0===(1&t))return rc(e,Ye()),null;var n=mc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Il,fc(e,0),sc(e,t),rc(e,Ye()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Wl,Fl),rc(e,Ye()),null}function cc(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Bl=Ye()+500,Wo&&Fo())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Tl)&&Cc();var t=Tl;Tl|=1;var n=Al.transition,r=bt;try{if(Al.transition=null,bt=1,e)return e()}finally{bt=r,Al.transition=n,0===(6&(Tl=t))&&Fo()}}function dc(){Ll=Ml.current,_o(Ml)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&No();break;case 3:Yi(),_o(Oo),_o(Ro),ra();break;case 5:Ji(r);break;case 4:Yi();break;case 13:case 19:_o(ea);break;case 10:Ti(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Rl=e,Ol=e=Mc(e.current,null),Pl=Ll=t,Nl=0,Il=null,Dl=$l=jl=0,Wl=Ul=null,null!==Li){for(t=0;t<Li.length;t++)if(null!==(r=(n=Li[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Li=null}return e}function hc(e,t){for(;;){var n=Ol;try{if(Ai(),oa.current=Xa,ua){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,_l.current=null,null===n||null===n.return){Nl=1,Il=t,Ol=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Pl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,vs(p,s,l,0,t),1&p.mode&&gs(a,u,t),c=u;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}if(0===(1&t)){gs(a,u,t),gc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=ms(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),gi(cs(c,l));break e}}a=c=cs(c,l),4!==Nl&&(Nl=2),null===Ul?Ul=[a]:Ul.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,hs(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Kl||!Kl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function pc(){var e=El.current;return El.current=Xa,null===e?Xa:e}function gc(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Rl||0===(268435455&jl)&&0===(268435455&$l)||sc(Rl,Pl)}function mc(e,t){var n=Tl;Tl|=2;var r=pc();for(Rl===e&&Pl===t||(Fl=null,fc(e,t));;)try{vc();break}catch(o){hc(e,o)}if(Ai(),Tl=n,El.current=r,null!==Ol)throw Error(i(261));return Rl=null,Pl=0,Nl}function vc(){for(;null!==Ol;)bc(Ol)}function yc(){for(;null!==Ol&&!Qe();)bc(Ol)}function bc(e){var t=kl(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,null===t?wc(e):Ol=t,_l.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=qs(n,t,Ll)))return void(Ol=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Ol=n);if(null===e)return Nl=6,void(Ol=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===Nl&&(Nl=5)}function xc(e,t,n){var r=bt,o=Al.transition;try{Al.transition=null,bt=1,function(e,t,n,r){do{Cc()}while(null!==Gl);if(0!==(6&Tl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Rl&&(Ol=Rl=null,Pl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||ql||(ql=!0,Rc(tt,(function(){return Cc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Al.transition,Al.transition=null;var s=bt;bt=1;var l=Tl;Tl|=4,_l.current=null,function(e,t){if(eo=Ht,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===o&&(l=s),h===a&&++d===r&&(c=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(x){Sc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}g=tl,tl=!1}(e,n),ml(n,e),pr(to),Ht=!!eo,to=eo=null,e.current=n,yl(n,e,o),Ze(),Tl=l,bt=s,Al.transition=a}else e.current=n;if(ql&&(ql=!1,Gl=e,Ql=o),a=e.pendingLanes,0===a&&(Kl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Vl,Vl=null,e;0!==(1&Ql)&&0!==e.tag&&Cc(),a=e.pendingLanes,0!==(1&a)?e===Yl?Zl++:(Zl=0,Yl=e):Zl=0,Fo()}(e,t,n,r)}finally{Al.transition=o,bt=r}return null}function Cc(){if(null!==Gl){var e=wt(Ql),t=Al.transition,n=bt;try{if(Al.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Ql=0,0!==(6&Tl))throw Error(i(331));var o=Tl;for(Tl|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(0!==(16&Xs.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Xs=u;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var h=(d=Xs).sibling,p=d.return;if(il(d),d===u){Xs=null;break}if(null!==h){h.return=p,Xs=h;break}Xs=p}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Xs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(0!==(2048&(a=Xs).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var w=(s=Xs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Xs=w;else e:for(s=b;null!==Xs;){if(0!==(2048&(l=Xs).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(C){Sc(l,l.return,C)}if(l===s){Xs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Xs=x;break e}Xs=l.return}}if(Tl=o,Fo(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(C){}r=!0}return r}finally{bt=n,Al.transition=t}}return!1}function kc(e,t,n){e=Wi(e,t=hs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Kl||!Kl.has(r))){t=Wi(t,e=ps(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Pl&n)===n&&(4===Nl||3===Nl&&(130023424&Pl)===Pl&&500>Ye()-zl?fc(e,0):Dl|=n),rc(e,t)}function _c(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Ii(e,t))&&(vt(e,t,n),rc(e,n))}function Ac(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_c(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),_c(e,n)}function Rc(e,t){return qe(e,t)}function Oc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pc(e,t,n,r){return new Oc(e,t,n,r)}function Lc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Pc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nc(e,t,n,r,o,a){var s=2;if(r=e,"function"===typeof e)Lc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case k:return Ic(n.children,o,a,t);case S:s=8,o|=8;break;case E:return(e=Pc(12,n,t,2|o)).elementType=E,e.lanes=a,e;case R:return(e=Pc(13,n,t,o)).elementType=R,e.lanes=a,e;case O:return(e=Pc(19,n,t,o)).elementType=O,e.lanes=a,e;case M:return jc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case A:s=9;break e;case T:s=11;break e;case P:s=14;break e;case L:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Pc(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ic(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function jc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function $c(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function Dc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wc(e,t,n,r,o,i,a,s,l){return e=new Uc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Pc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$i(i),e}function zc(e){if(!e)return To;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mo(n))return jo(e,n,t)}return t}function Bc(e,t,n,r,o,i,a,s,l){return(e=Wc(n,r,!0,e,0,i,0,s,l)).context=zc(null),n=e.current,(i=Ui(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Wi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function Fc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ui(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Wi(o,t,a))&&(nc(e,o,a,i),zi(e,o,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oo.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Rs(t),pi();break;case 5:Xi(t);break;case 1:Mo(t.type)&&$o(t);break;case 4:Zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ao(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ao(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?$s(e,t,n):(Ao(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);Ao(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ao(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ii&&0!==(1048576&t.flags)&&ei(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fs(e,t),e=t.pendingProps;var o=Lo(t,Ro.current);Oi(t,n),o=ma(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(r)?(a=!0,$o(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,$i(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ts(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Lc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===P)return 14}return 2}(r),e=ns(r,e),o){case 0:t=_s(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Cs(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,_s(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,As(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Rs(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Di(e,t),Fi(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Os(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=Os(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pi(),r===o){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Xi(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Es(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return $s(e,t,n);case 4:return Zi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Ao(ki,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Oo.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Ui(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ri(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ri(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Oi(t,n),r=r(o=Pi(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),Cs(e,t,r,o=ns(r.type,o),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),Fs(e,t),t.tag=1,Mo(r)?(e=!0,$o(t)):e=!1,Oi(t,n),as(t,r,o),ls(t,r,o,n),Ts(null,t,r,!0,e,n);case 19:return Bs(e,t,n);case 22:return Ss(e,t,n)}throw Error(i(156,t.tag))};var qc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xc(){}function Jc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var s=o;o=function(){var e=Hc(a);s.call(e)}}Fc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Hc(a);i.call(e)}}var a=Bc(t,r,e,0,null,!1,0,"",Xc);return e._reactRootContainer=a,e[go]=a.current,Br(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=Wc(e,0,!1,null,0,!1,0,"",Xc);return e._reactRootContainer=l,e[go]=l.current,Br(8===e.nodeType?e.parentNode:e),uc((function(){Fc(t,l,n,r)})),l}(n,t,e,o,r);return Hc(a)}Qc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Fc(e,t,null,null)},Qc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Fc(null,e,null,null)})),t[go]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&$t(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Ye()),0===(6&Tl)&&(Bl=Ye()+500,Fo()))}break;case 13:uc((function(){var t=Ii(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Kc(e,1)}},Ct=function(e){if(13===e.tag){var t=Ii(e,134217728);if(null!==t)nc(t,e,134217728,ec());Kc(e,134217728)}},kt=function(e){if(13===e.tag){var t=tc(e),n=Ii(e,t);if(null!==n)nc(n,e,t,ec());Kc(e,t)}},St=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ce=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Co(r);if(!o)throw Error(i(90));q(r),X(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cc,Re=uc;var eu={usingClientEntryPoint:!1,Events:[wo,xo,Co,_e,Ae,cc]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zc(e))throw Error(i(299));var n=!1,r="",o=qc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Wc(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Br(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Yc(t))throw Error(i(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=qc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Bc(t,null,e,1,null!=n?n:null,o,0,a,s),e[go]=t.current,Br(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qc(t)},t.render=function(e,t,n){if(!Yc(t))throw Error(i(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){Jc(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Jc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},1352:(e,t,n)=>{"use strict";var r=n(7119);t.H=r.createRoot,r.hydrateRoot},7119:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(8345)},8577:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case p:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.Memo=p},6429:(e,t,n)=>{"use strict";e.exports=n(8577)},2654:(e,t,n)=>{"use strict";var r=n(9950),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},2049:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,g(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,C=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:k.current}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+T(l,0):i,x(a)?(o="",null!=e&&(o=e.replace(A,"$&/")+"/"),R(a,t,o,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+T(s=e[c],c);l+=R(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=R(s=s.value,t,o,u=i+T(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},M={transition:null},N={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:M,ReactCurrentOwner:k};function I(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.act=I,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=k.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)C.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=I,t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.3.1"},9950:(e,t,n)=>{"use strict";e.exports=n(2049)},4414:(e,t,n)=>{"use strict";e.exports=n(2654)},1761:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,h=3,p=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(m=!1,w(e),!g)if(null!==r(c))g=!0,M(C);else{var t=r(u);null!==t&&N(x,t.startTime-e)}}function C(e,n){g=!1,m&&(m=!1,y(_),_=-1),p=!0;var i=h;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!R());){var a=f.callback;if("function"===typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&N(x,d.startTime-n),l=!1}return l}finally{f=null,h=i,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,_=-1,A=5,T=-1;function R(){return!(t.unstable_now()-T<A)}function O(){if(null!==E){var e=t.unstable_now();T=e;var n=!0;try{n=E(!0,e)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"===typeof b)k=function(){b(O)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,L=P.port2;P.port1.onmessage=O,k=function(){L.postMessage(null)}}else k=function(){v(O,0)};function M(e){E=e,S||(S=!0,k())}function N(e,n){_=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,M(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(m?(y(_),_=-1):m=!0,N(x,i-a))):(e.sortIndex=s,n(c,e),g||p||(g=!0,M(C))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5340:(e,t,n)=>{"use strict";e.exports=n(1761)},4008:function(e){!function(t,n){"use strict";e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(this,(function(){"use strict";var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!==typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"===typeof atob?"undefined"!==typeof Buffer.from?(e.encodeBase64=function(e){return Buffer.from(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(Buffer.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new Buffer(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(new Buffer(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){t(e);var n,r=atob(e),o=new Uint8Array(r.length);for(n=0;n<r.length;n++)o[n]=r.charCodeAt(n);return o}),e}))},3477:(e,t,n)=>{!function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},r=function(){throw new Error("no PRNG")},o=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var a=t(),s=t([1]),l=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function g(e,t,n,r,o){var i,a=0;for(i=0;i<o;i++)a|=e[t+i]^n[r+i];return(1&a-1>>>8)-1}function m(e,t,n,r){return g(e,t,n,r,16)}function v(e,t,n,r){return g(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=i,C=a,k=s,S=l,E=c,_=u,A=d,T=f,R=h,O=p,P=g,L=m,M=v,N=y,I=b,j=w,$=0;$<20;$+=2)x^=(o=(M^=(o=(R^=(o=(E^=(o=x+M|0)<<7|o>>>25)+x|0)<<9|o>>>23)+E|0)<<13|o>>>19)+R|0)<<18|o>>>14,_^=(o=(C^=(o=(N^=(o=(O^=(o=_+C|0)<<7|o>>>25)+_|0)<<9|o>>>23)+O|0)<<13|o>>>19)+N|0)<<18|o>>>14,P^=(o=(A^=(o=(k^=(o=(I^=(o=P+A|0)<<7|o>>>25)+P|0)<<9|o>>>23)+I|0)<<13|o>>>19)+k|0)<<18|o>>>14,j^=(o=(L^=(o=(T^=(o=(S^=(o=j+L|0)<<7|o>>>25)+j|0)<<9|o>>>23)+S|0)<<13|o>>>19)+T|0)<<18|o>>>14,x^=(o=(S^=(o=(k^=(o=(C^=(o=x+S|0)<<7|o>>>25)+x|0)<<9|o>>>23)+C|0)<<13|o>>>19)+k|0)<<18|o>>>14,_^=(o=(E^=(o=(T^=(o=(A^=(o=_+E|0)<<7|o>>>25)+_|0)<<9|o>>>23)+A|0)<<13|o>>>19)+T|0)<<18|o>>>14,P^=(o=(O^=(o=(R^=(o=(L^=(o=P+O|0)<<7|o>>>25)+P|0)<<9|o>>>23)+L|0)<<13|o>>>19)+R|0)<<18|o>>>14,j^=(o=(I^=(o=(N^=(o=(M^=(o=j+I|0)<<7|o>>>25)+j|0)<<9|o>>>23)+M|0)<<13|o>>>19)+N|0)<<18|o>>>14;x=x+i|0,C=C+a|0,k=k+s|0,S=S+l|0,E=E+c|0,_=_+u|0,A=A+d|0,T=T+f|0,R=R+h|0,O=O+p|0,P=P+g|0,L=L+m|0,M=M+v|0,N=N+y|0,I=I+b|0,j=j+w|0,e[0]=x>>>0&255,e[1]=x>>>8&255,e[2]=x>>>16&255,e[3]=x>>>24&255,e[4]=C>>>0&255,e[5]=C>>>8&255,e[6]=C>>>16&255,e[7]=C>>>24&255,e[8]=k>>>0&255,e[9]=k>>>8&255,e[10]=k>>>16&255,e[11]=k>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=_>>>0&255,e[21]=_>>>8&255,e[22]=_>>>16&255,e[23]=_>>>24&255,e[24]=A>>>0&255,e[25]=A>>>8&255,e[26]=A>>>16&255,e[27]=A>>>24&255,e[28]=T>>>0&255,e[29]=T>>>8&255,e[30]=T>>>16&255,e[31]=T>>>24&255,e[32]=R>>>0&255,e[33]=R>>>8&255,e[34]=R>>>16&255,e[35]=R>>>24&255,e[36]=O>>>0&255,e[37]=O>>>8&255,e[38]=O>>>16&255,e[39]=O>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=L>>>0&255,e[45]=L>>>8&255,e[46]=L>>>16&255,e[47]=L>>>24&255,e[48]=M>>>0&255,e[49]=M>>>8&255,e[50]=M>>>16&255,e[51]=M>>>24&255,e[52]=N>>>0&255,e[53]=N>>>8&255,e[54]=N>>>16&255,e[55]=N>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=j>>>0&255,e[61]=j>>>8&255,e[62]=j>>>16&255,e[63]=j>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=0;x<20;x+=2)i^=(o=(v^=(o=(h^=(o=(c^=(o=i+v|0)<<7|o>>>25)+i|0)<<9|o>>>23)+c|0)<<13|o>>>19)+h|0)<<18|o>>>14,u^=(o=(a^=(o=(y^=(o=(p^=(o=u+a|0)<<7|o>>>25)+u|0)<<9|o>>>23)+p|0)<<13|o>>>19)+y|0)<<18|o>>>14,g^=(o=(d^=(o=(s^=(o=(b^=(o=g+d|0)<<7|o>>>25)+g|0)<<9|o>>>23)+b|0)<<13|o>>>19)+s|0)<<18|o>>>14,w^=(o=(m^=(o=(f^=(o=(l^=(o=w+m|0)<<7|o>>>25)+w|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,i^=(o=(l^=(o=(s^=(o=(a^=(o=i+l|0)<<7|o>>>25)+i|0)<<9|o>>>23)+a|0)<<13|o>>>19)+s|0)<<18|o>>>14,u^=(o=(c^=(o=(f^=(o=(d^=(o=u+c|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+f|0)<<18|o>>>14,g^=(o=(p^=(o=(h^=(o=(m^=(o=g+p|0)<<7|o>>>25)+g|0)<<9|o>>>23)+m|0)<<13|o>>>19)+h|0)<<18|o>>>14,w^=(o=(b^=(o=(y^=(o=(v^=(o=w+b|0)<<7|o>>>25)+w|0)<<9|o>>>23)+v|0)<<13|o>>>19)+y|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,n,r)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function x(e,t,n,r,o,i,a){var s,l,c=new Uint8Array(16),u=new Uint8Array(64);for(l=0;l<16;l++)c[l]=0;for(l=0;l<8;l++)c[l]=i[l];for(;o>=64;){for(y(u,c,a,w),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(s=1,l=8;l<16;l++)s=s+(255&c[l])|0,c[l]=255&s,s>>>=8;o-=64,t+=64,r+=64}if(o>0)for(y(u,c,a,w),l=0;l<o;l++)e[t+l]=n[r+l]^u[l];return 0}function C(e,t,n,r,o){var i,a,s=new Uint8Array(16),l=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(y(l,s,o,w),a=0;a<64;a++)e[t+a]=l[a];for(i=1,a=8;a<16;a++)i=i+(255&s[a])|0,s[a]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(y(l,s,o,w),a=0;a<n;a++)e[t+a]=l[a];return 0}function k(e,t,n,r,o){var i=new Uint8Array(32);b(i,r,o,w);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return C(e,t,n,a,i)}function S(e,t,n,r,o,i,a){var s=new Uint8Array(32);b(s,i,a,w);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=i[c+16];return x(e,t,n,r,o,l,s)}var E=function(e){var t,n,r,o,i,a,s,l;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function _(e,t,n,r,o,i){var a=new E(i);return a.update(n,r,o),a.finish(e,t),0}function A(e,t,n,r,o,i){var a=new Uint8Array(16);return _(a,0,n,r,o,i),m(e,t,a,0)}function T(e,t,n,r,o){var i;if(n<32)return-1;for(S(e,0,t,0,n,r,o),_(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function R(e,t,n,r,o){var i,a=new Uint8Array(32);if(n<32)return-1;if(k(a,0,32,r,o),0!==A(t,16,t,32,n-32,a))return-1;for(S(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function O(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function P(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function L(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function M(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(P(s),P(s),P(s),o=0;o<2;o++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,L(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function N(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return M(n,e),M(r,t),v(n,0,r,0)}function I(e){var t=new Uint8Array(32);return M(t,e),1&t[0]}function j(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function $(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function D(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function U(e,t,n){var r,o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,h=0,p=0,g=0,m=0,v=0,y=0,b=0,w=0,x=0,C=0,k=0,S=0,E=0,_=0,A=0,T=0,R=0,O=0,P=0,L=0,M=0,N=0,I=0,j=n[0],$=n[1],D=n[2],U=n[3],W=n[4],z=n[5],B=n[6],F=n[7],H=n[8],V=n[9],K=n[10],q=n[11],G=n[12],Q=n[13],Z=n[14],Y=n[15];i+=(r=t[0])*j,a+=r*$,s+=r*D,l+=r*U,c+=r*W,u+=r*z,d+=r*B,f+=r*F,h+=r*H,p+=r*V,g+=r*K,m+=r*q,v+=r*G,y+=r*Q,b+=r*Z,w+=r*Y,a+=(r=t[1])*j,s+=r*$,l+=r*D,c+=r*U,u+=r*W,d+=r*z,f+=r*B,h+=r*F,p+=r*H,g+=r*V,m+=r*K,v+=r*q,y+=r*G,b+=r*Q,w+=r*Z,x+=r*Y,s+=(r=t[2])*j,l+=r*$,c+=r*D,u+=r*U,d+=r*W,f+=r*z,h+=r*B,p+=r*F,g+=r*H,m+=r*V,v+=r*K,y+=r*q,b+=r*G,w+=r*Q,x+=r*Z,C+=r*Y,l+=(r=t[3])*j,c+=r*$,u+=r*D,d+=r*U,f+=r*W,h+=r*z,p+=r*B,g+=r*F,m+=r*H,v+=r*V,y+=r*K,b+=r*q,w+=r*G,x+=r*Q,C+=r*Z,k+=r*Y,c+=(r=t[4])*j,u+=r*$,d+=r*D,f+=r*U,h+=r*W,p+=r*z,g+=r*B,m+=r*F,v+=r*H,y+=r*V,b+=r*K,w+=r*q,x+=r*G,C+=r*Q,k+=r*Z,S+=r*Y,u+=(r=t[5])*j,d+=r*$,f+=r*D,h+=r*U,p+=r*W,g+=r*z,m+=r*B,v+=r*F,y+=r*H,b+=r*V,w+=r*K,x+=r*q,C+=r*G,k+=r*Q,S+=r*Z,E+=r*Y,d+=(r=t[6])*j,f+=r*$,h+=r*D,p+=r*U,g+=r*W,m+=r*z,v+=r*B,y+=r*F,b+=r*H,w+=r*V,x+=r*K,C+=r*q,k+=r*G,S+=r*Q,E+=r*Z,_+=r*Y,f+=(r=t[7])*j,h+=r*$,p+=r*D,g+=r*U,m+=r*W,v+=r*z,y+=r*B,b+=r*F,w+=r*H,x+=r*V,C+=r*K,k+=r*q,S+=r*G,E+=r*Q,_+=r*Z,A+=r*Y,h+=(r=t[8])*j,p+=r*$,g+=r*D,m+=r*U,v+=r*W,y+=r*z,b+=r*B,w+=r*F,x+=r*H,C+=r*V,k+=r*K,S+=r*q,E+=r*G,_+=r*Q,A+=r*Z,T+=r*Y,p+=(r=t[9])*j,g+=r*$,m+=r*D,v+=r*U,y+=r*W,b+=r*z,w+=r*B,x+=r*F,C+=r*H,k+=r*V,S+=r*K,E+=r*q,_+=r*G,A+=r*Q,T+=r*Z,R+=r*Y,g+=(r=t[10])*j,m+=r*$,v+=r*D,y+=r*U,b+=r*W,w+=r*z,x+=r*B,C+=r*F,k+=r*H,S+=r*V,E+=r*K,_+=r*q,A+=r*G,T+=r*Q,R+=r*Z,O+=r*Y,m+=(r=t[11])*j,v+=r*$,y+=r*D,b+=r*U,w+=r*W,x+=r*z,C+=r*B,k+=r*F,S+=r*H,E+=r*V,_+=r*K,A+=r*q,T+=r*G,R+=r*Q,O+=r*Z,P+=r*Y,v+=(r=t[12])*j,y+=r*$,b+=r*D,w+=r*U,x+=r*W,C+=r*z,k+=r*B,S+=r*F,E+=r*H,_+=r*V,A+=r*K,T+=r*q,R+=r*G,O+=r*Q,P+=r*Z,L+=r*Y,y+=(r=t[13])*j,b+=r*$,w+=r*D,x+=r*U,C+=r*W,k+=r*z,S+=r*B,E+=r*F,_+=r*H,A+=r*V,T+=r*K,R+=r*q,O+=r*G,P+=r*Q,L+=r*Z,M+=r*Y,b+=(r=t[14])*j,w+=r*$,x+=r*D,C+=r*U,k+=r*W,S+=r*z,E+=r*B,_+=r*F,A+=r*H,T+=r*V,R+=r*K,O+=r*q,P+=r*G,L+=r*Q,M+=r*Z,N+=r*Y,w+=(r=t[15])*j,a+=38*(C+=r*D),s+=38*(k+=r*U),l+=38*(S+=r*W),c+=38*(E+=r*z),u+=38*(_+=r*B),d+=38*(A+=r*F),f+=38*(T+=r*H),h+=38*(R+=r*V),p+=38*(O+=r*K),g+=38*(P+=r*q),m+=38*(L+=r*G),v+=38*(M+=r*Q),y+=38*(N+=r*Z),b+=38*(I+=r*Y),i=(r=(i+=38*(x+=r*$))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=g,e[11]=m,e[12]=v,e[13]=y,e[14]=b,e[15]=w}function W(e,t){U(e,t,t)}function z(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)W(o,o),2!==r&&4!==r&&U(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function B(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)W(o,o),1!==r&&U(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n,r){var o,i,a=new Uint8Array(32),s=new Float64Array(80),c=t(),u=t(),d=t(),f=t(),h=t(),p=t();for(i=0;i<31;i++)a[i]=n[i];for(a[31]=127&n[31]|64,a[0]&=248,j(s,r),i=0;i<16;i++)u[i]=s[i],f[i]=c[i]=d[i]=0;for(c[0]=f[0]=1,i=254;i>=0;--i)L(c,u,o=a[i>>>3]>>>(7&i)&1),L(d,f,o),$(h,c,d),D(c,c,d),$(d,u,f),D(u,u,f),W(f,h),W(p,c),U(c,d,c),U(d,u,h),$(h,c,d),D(c,c,d),W(u,c),D(d,f,p),U(c,d,l),$(c,c,f),U(d,d,c),U(c,f,p),U(f,u,s),W(u,h),L(c,u,o),L(d,f,o);for(i=0;i<16;i++)s[i+16]=c[i],s[i+32]=d[i],s[i+48]=u[i],s[i+64]=f[i];var g=s.subarray(32),m=s.subarray(16);return z(g,g),U(m,m,g),M(e,m),0}function H(e,t){return F(e,t,i)}function V(e,t){return r(t,32),H(e,t)}function K(e,t,n){var r=new Uint8Array(32);return F(r,n,t),b(e,o,r,w)}E.prototype.blocks=function(e,t,n){for(var r,o,i,a,s,l,c,u,d,f,h,p,g,m,v,y,b,w,x,C=this.fin?0:2048,k=this.h[0],S=this.h[1],E=this.h[2],_=this.h[3],A=this.h[4],T=this.h[5],R=this.h[6],O=this.h[7],P=this.h[8],L=this.h[9],M=this.r[0],N=this.r[1],I=this.r[2],j=this.r[3],$=this.r[4],D=this.r[5],U=this.r[6],W=this.r[7],z=this.r[8],B=this.r[9];n>=16;)f=d=0,f+=(k+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*M,f+=(S+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*B),f+=(E+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*z),f+=(_+=8191&(i>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*W),d=(f+=(A+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*U))>>>13,f&=8191,f+=(T+=s>>>1&8191)*(5*D),f+=(R+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*$),f+=(O+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*j),f+=(P+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),h=d+=(f+=(L+=u>>>5|C)*(5*N))>>>13,h+=k*N,h+=S*M,h+=E*(5*B),h+=_*(5*z),d=(h+=A*(5*W))>>>13,h&=8191,h+=T*(5*U),h+=R*(5*D),h+=O*(5*$),h+=P*(5*j),d+=(h+=L*(5*I))>>>13,h&=8191,p=d,p+=k*I,p+=S*N,p+=E*M,p+=_*(5*B),d=(p+=A*(5*z))>>>13,p&=8191,p+=T*(5*W),p+=R*(5*U),p+=O*(5*D),p+=P*(5*$),g=d+=(p+=L*(5*j))>>>13,g+=k*j,g+=S*I,g+=E*N,g+=_*M,d=(g+=A*(5*B))>>>13,g&=8191,g+=T*(5*z),g+=R*(5*W),g+=O*(5*U),g+=P*(5*D),m=d+=(g+=L*(5*$))>>>13,m+=k*$,m+=S*j,m+=E*I,m+=_*N,d=(m+=A*M)>>>13,m&=8191,m+=T*(5*B),m+=R*(5*z),m+=O*(5*W),m+=P*(5*U),v=d+=(m+=L*(5*D))>>>13,v+=k*D,v+=S*$,v+=E*j,v+=_*I,d=(v+=A*N)>>>13,v&=8191,v+=T*M,v+=R*(5*B),v+=O*(5*z),v+=P*(5*W),y=d+=(v+=L*(5*U))>>>13,y+=k*U,y+=S*D,y+=E*$,y+=_*j,d=(y+=A*I)>>>13,y&=8191,y+=T*N,y+=R*M,y+=O*(5*B),y+=P*(5*z),b=d+=(y+=L*(5*W))>>>13,b+=k*W,b+=S*U,b+=E*D,b+=_*$,d=(b+=A*j)>>>13,b&=8191,b+=T*I,b+=R*N,b+=O*M,b+=P*(5*B),w=d+=(b+=L*(5*z))>>>13,w+=k*z,w+=S*W,w+=E*U,w+=_*D,d=(w+=A*$)>>>13,w&=8191,w+=T*j,w+=R*I,w+=O*N,w+=P*M,x=d+=(w+=L*(5*B))>>>13,x+=k*B,x+=S*z,x+=E*W,x+=_*U,d=(x+=A*D)>>>13,x&=8191,x+=T*$,x+=R*j,x+=O*I,x+=P*N,k=f=8191&(d=(d=((d+=(x+=L*M)>>>13)<<2)+d|0)+(f&=8191)|0),S=h+=d>>>=13,E=p&=8191,_=g&=8191,A=m&=8191,T=v&=8191,R=y&=8191,O=b&=8191,P=w&=8191,L=x&=8191,t+=16,n-=16;this.h[0]=k,this.h[1]=S,this.h[2]=E,this.h[3]=_,this.h[4]=A,this.h[5]=T,this.h[6]=R,this.h[7]=O,this.h[8]=P,this.h[9]=L},E.prototype.finish=function(e,t){var n,r,o,i,a=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this.h[i]+n,n=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,r=(1^n)-1,i=0;i<10;i++)a[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|a[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},E.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var q=T,G=R;var Q=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Z(e,t,n,r){for(var o,i,a,s,l,c,u,d,f,h,p,g,m,v,y,b,w,x,C,k,S,E,_,A,T,R,O=new Int32Array(16),P=new Int32Array(16),L=e[0],M=e[1],N=e[2],I=e[3],j=e[4],$=e[5],D=e[6],U=e[7],W=t[0],z=t[1],B=t[2],F=t[3],H=t[4],V=t[5],K=t[6],q=t[7],G=0;r>=128;){for(C=0;C<16;C++)k=8*C+G,O[C]=n[k+0]<<24|n[k+1]<<16|n[k+2]<<8|n[k+3],P[C]=n[k+4]<<24|n[k+5]<<16|n[k+6]<<8|n[k+7];for(C=0;C<80;C++)if(o=L,i=M,a=N,s=I,l=j,c=$,u=D,U,f=W,h=z,p=B,g=F,m=H,v=V,y=K,q,_=65535&(E=q),A=E>>>16,T=65535&(S=U),R=S>>>16,_+=65535&(E=(H>>>14|j<<18)^(H>>>18|j<<14)^(j>>>9|H<<23)),A+=E>>>16,T+=65535&(S=(j>>>14|H<<18)^(j>>>18|H<<14)^(H>>>9|j<<23)),R+=S>>>16,_+=65535&(E=H&V^~H&K),A+=E>>>16,T+=65535&(S=j&$^~j&D),R+=S>>>16,S=Q[2*C],_+=65535&(E=Q[2*C+1]),A+=E>>>16,T+=65535&S,R+=S>>>16,S=O[C%16],A+=(E=P[C%16])>>>16,T+=65535&S,R+=S>>>16,T+=(A+=(_+=65535&E)>>>16)>>>16,_=65535&(E=x=65535&_|A<<16),A=E>>>16,T=65535&(S=w=65535&T|(R+=T>>>16)<<16),R=S>>>16,_+=65535&(E=(W>>>28|L<<4)^(L>>>2|W<<30)^(L>>>7|W<<25)),A+=E>>>16,T+=65535&(S=(L>>>28|W<<4)^(W>>>2|L<<30)^(W>>>7|L<<25)),R+=S>>>16,A+=(E=W&z^W&B^z&B)>>>16,T+=65535&(S=L&M^L&N^M&N),R+=S>>>16,d=65535&(T+=(A+=(_+=65535&E)>>>16)>>>16)|(R+=T>>>16)<<16,b=65535&_|A<<16,_=65535&(E=g),A=E>>>16,T=65535&(S=s),R=S>>>16,A+=(E=x)>>>16,T+=65535&(S=w),R+=S>>>16,M=o,N=i,I=a,j=s=65535&(T+=(A+=(_+=65535&E)>>>16)>>>16)|(R+=T>>>16)<<16,$=l,D=c,U=u,L=d,z=f,B=h,F=p,H=g=65535&_|A<<16,V=m,K=v,q=y,W=b,C%16===15)for(k=0;k<16;k++)S=O[k],_=65535&(E=P[k]),A=E>>>16,T=65535&S,R=S>>>16,S=O[(k+9)%16],_+=65535&(E=P[(k+9)%16]),A+=E>>>16,T+=65535&S,R+=S>>>16,w=O[(k+1)%16],_+=65535&(E=((x=P[(k+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),A+=E>>>16,T+=65535&(S=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),R+=S>>>16,w=O[(k+14)%16],A+=(E=((x=P[(k+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,T+=65535&(S=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,O[k]=65535&T|R<<16,P[k]=65535&_|A<<16;_=65535&(E=W),A=E>>>16,T=65535&(S=L),R=S>>>16,S=e[0],A+=(E=t[0])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[0]=L=65535&T|R<<16,t[0]=W=65535&_|A<<16,_=65535&(E=z),A=E>>>16,T=65535&(S=M),R=S>>>16,S=e[1],A+=(E=t[1])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[1]=M=65535&T|R<<16,t[1]=z=65535&_|A<<16,_=65535&(E=B),A=E>>>16,T=65535&(S=N),R=S>>>16,S=e[2],A+=(E=t[2])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[2]=N=65535&T|R<<16,t[2]=B=65535&_|A<<16,_=65535&(E=F),A=E>>>16,T=65535&(S=I),R=S>>>16,S=e[3],A+=(E=t[3])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[3]=I=65535&T|R<<16,t[3]=F=65535&_|A<<16,_=65535&(E=H),A=E>>>16,T=65535&(S=j),R=S>>>16,S=e[4],A+=(E=t[4])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[4]=j=65535&T|R<<16,t[4]=H=65535&_|A<<16,_=65535&(E=V),A=E>>>16,T=65535&(S=$),R=S>>>16,S=e[5],A+=(E=t[5])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[5]=$=65535&T|R<<16,t[5]=V=65535&_|A<<16,_=65535&(E=K),A=E>>>16,T=65535&(S=D),R=S>>>16,S=e[6],A+=(E=t[6])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[6]=D=65535&T|R<<16,t[6]=K=65535&_|A<<16,_=65535&(E=q),A=E>>>16,T=65535&(S=U),R=S>>>16,S=e[7],A+=(E=t[7])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(A+=(_+=65535&E)>>>16)>>>16)>>>16,e[7]=U=65535&T|R<<16,t[7]=q=65535&_|A<<16,G+=128,r-=128}return r}function Y(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),s=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,Z(o,i,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Z(o,i,a,n),r=0;r<8;r++)p(e,8*r,o[r],i[r]);return 0}function X(e,n){var r=t(),o=t(),i=t(),a=t(),s=t(),l=t(),c=t(),d=t(),f=t();D(r,e[1],e[0]),D(f,n[1],n[0]),U(r,r,f),$(o,e[0],e[1]),$(f,n[0],n[1]),U(o,o,f),U(i,e[3],n[3]),U(i,i,u),U(a,e[2],n[2]),$(a,a,a),D(s,o,r),D(l,a,i),$(c,a,i),$(d,o,r),U(e[0],s,l),U(e[1],d,c),U(e[2],c,l),U(e[3],s,d)}function J(e,t,n){var r;for(r=0;r<4;r++)L(e[r],t[r],n)}function ee(e,n){var r=t(),o=t(),i=t();z(i,n[2]),U(r,n[0],i),U(o,n[1],i),M(e,o),e[31]^=I(r)<<7}function te(e,t,n){var r,o;for(O(e[0],a),O(e[1],s),O(e[2],s),O(e[3],a),o=255;o>=0;--o)J(e,t,r=n[o/8|0]>>(7&o)&1),X(t,e),X(e,e),J(e,t,r)}function ne(e,n){var r=[t(),t(),t(),t()];O(r[0],d),O(r[1],f),O(r[2],s),U(r[3],d,f),te(e,r,n)}function re(e,n,o){var i,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(o||r(n,32),Y(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,ne(s,a),ee(e,s),i=0;i<32;i++)n[i+32]=e[i];return 0}var oe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*oe[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*oe[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*oe[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ae(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,n)}function se(e,n,r,o){var i,a,s=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];Y(s,o,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=s[32+i];for(Y(c,e.subarray(32),r+32),ae(c),ne(d,c),ee(e,d),i=32;i<64;i++)e[i]=o[i];for(Y(l,e,r+64),ae(l),i=0;i<64;i++)u[i]=0;for(i=0;i<32;i++)u[i]=c[i];for(i=0;i<32;i++)for(a=0;a<32;a++)u[i+a]+=l[i]*s[a];return ie(e.subarray(32),u),f}function le(e,n,r,o){var i,l=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],f=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),i=t(),l=t(),u=t(),d=t(),f=t();return O(e[2],s),j(e[1],n),W(i,e[1]),U(l,i,c),D(i,i,e[2]),$(l,e[2],l),W(u,l),W(d,u),U(f,d,u),U(r,f,i),U(r,r,l),B(r,r),U(r,r,i),U(r,r,l),U(r,r,l),U(e[0],r,l),W(o,e[0]),U(o,o,l),N(o,i)&&U(e[0],e[0],h),W(o,e[0]),U(o,o,l),N(o,i)?-1:(I(e[0])===n[31]>>7&&D(e[0],a,e[0]),U(e[3],e[0],e[1]),0)}(f,o))return-1;for(i=0;i<r;i++)e[i]=n[i];for(i=0;i<32;i++)e[i+32]=o[i];if(Y(u,e,r),ae(u),te(d,f,u),ne(f,n.subarray(32)),X(d,f),ee(l,d),r-=64,v(n,0,l,0)){for(i=0;i<r;i++)e[i]=0;return-1}for(i=0;i<r;i++)e[i]=n[i+64];return r}var ce=16,ue=64,de=32,fe=64;function he(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function pe(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:S,crypto_stream:k,crypto_stream_salsa20_xor:x,crypto_stream_salsa20:C,crypto_onetimeauth:_,crypto_onetimeauth_verify:A,crypto_verify_16:m,crypto_verify_32:v,crypto_secretbox:T,crypto_secretbox_open:R,crypto_scalarmult:F,crypto_scalarmult_base:H,crypto_box_beforenm:K,crypto_box_afternm:q,crypto_box:function(e,t,n,r,o,i){var a=new Uint8Array(32);return K(a,o,i),q(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,o,i){var a=new Uint8Array(32);return K(a,o,i),G(e,t,n,r,a)},crypto_box_keypair:V,crypto_hash:Y,crypto_sign:se,crypto_sign_keypair:re,crypto_sign_open:le,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ce,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ue,crypto_sign_PUBLICKEYBYTES:de,crypto_sign_SECRETKEYBYTES:fe,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:c,L:oe,pack25519:M,unpack25519:j,M:U,A:$,S:W,Z:D,pow2523:B,add:X,set25519:O,modL:ie,scalarmult:te,scalarbase:ne},e.randomBytes=function(e){var t=new Uint8Array(e);return r(t,e),t},e.secretbox=function(e,t,n){pe(e,t,n),he(n,t);for(var r=new Uint8Array(32+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+32]=e[i];return T(o,r,r.length,t,n),o.subarray(ce)},e.secretbox.open=function(e,t,n){pe(e,t,n),he(n,t);for(var r=new Uint8Array(ce+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+ce]=e[i];return r.length<32||0!==R(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ce,e.scalarMult=function(e,t){if(pe(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return F(n,e,t),n},e.scalarMult.base=function(e){if(pe(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return H(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox(t,n,i)},e.box.before=function(e,t){pe(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return K(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox.open(t,n,i)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return V(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(pe(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return H(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(pe(e,t),t.length!==fe)throw new Error("bad secret key size");var n=new Uint8Array(ue+e.length);return se(n,e,e.length,t),n},e.sign.open=function(e,t){if(pe(e,t),t.length!==de)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=le(n,e,e.length,t);if(r<0)return null;for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=n[i];return o},e.sign.detached=function(t,n){for(var r=e.sign(t,n),o=new Uint8Array(ue),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(pe(e,t,n),t.length!==ue)throw new Error("bad signature size");if(n.length!==de)throw new Error("bad public key size");var r,o=new Uint8Array(ue+e.length),i=new Uint8Array(ue+e.length);for(r=0;r<ue;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+ue]=e[r];return le(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(fe);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(pe(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(de),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(pe(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(de),n=new Uint8Array(fe),r=0;r<32;r++)n[r]=e[r];return re(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=de,e.sign.secretKeyLength=fe,e.sign.seedLength=32,e.sign.signatureLength=ue,e.hash=function(e){pe(e);var t=new Uint8Array(64);return Y(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return pe(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===g(e,0,t,0,e.length))},e.setPRNG=function(e){r=e},function(){var t="undefined"!==typeof self?self.crypto||self.msCrypto:null;if(t&&t.getRandomValues){e.setPRNG((function(e,n){var r,o=new Uint8Array(n);for(r=0;r<n;r+=65536)t.getRandomValues(o.subarray(r,r+Math.min(n-r,65536)));for(r=0;r<n;r++)e[r]=o[r];ge(o)}))}else(t=n(1281))&&t.randomBytes&&e.setPRNG((function(e,n){var r,o=t.randomBytes(n);for(r=0;r<n;r++)e[r]=o[r];ge(o)}))}()}(e.exports?e.exports:self.nacl=self.nacl||{})},7946:function(e,t,n){var r;!function(o,i){"use strict";var a="function",s="undefined",l="object",c="string",u="major",d="model",f="name",h="type",p="vendor",g="version",m="architecture",v="console",y="mobile",b="tablet",w="smarttv",x="wearable",C="embedded",k="Amazon",S="Apple",E="ASUS",_="BlackBerry",A="Browser",T="Chrome",R="Firefox",O="Google",P="Huawei",L="LG",M="Microsoft",N="Motorola",I="Opera",j="Samsung",$="Sharp",D="Sony",U="Xiaomi",W="Zebra",z="Facebook",B="Chromium OS",F="Mac OS",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===c&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},q=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},G=function(e,t){for(var n,r,o,s,c,u,d=0;d<t.length&&!c;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(e))for(o=0;o<h.length;o++)u=c[++r],typeof(s=h[o])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):i:this[s[0]]=u?s[1].call(this,u,s[2]):i:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):i):this[s]=u||i;d+=2}},Q=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(V(t[n][r],e))return"?"===n?i:n}else if(V(t[n],e))return"?"===n?i:n;return e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,g],[/opios[\/ ]+([\w\.]+)/i],[g,[f,I+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[f,I+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[f,I]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,g],[/\bddg\/([\w\.]+)/i],[g,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[f,"UC"+A]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[f,"Smart Lenovo "+A]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+A],g],[/\bfocus\/([\w\.]+)/i],[g,[f,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[f,I+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[f,I+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[f,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[g,[f,R]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+A]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+A],g],[/samsungbrowser\/([\w\.]+)/i],[g,[f,j+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],g],[/metasr[\/ ]?([\d\.]+)/i],[g,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,g],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,z],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[f,T+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,T+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[f,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[g,Q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[f,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,g],[/(cobalt)\/([\w\.]+)/i],[f,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,K]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,j],[h,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,j],[h,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[p,S],[h,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,S],[h,b]],[/(macintosh);/i],[d,[p,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,$],[h,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[p,P],[h,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,P],[h,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[p,U],[h,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[p,U],[h,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,"OPPO"],[h,y]],[/\b(opd2\d{3}a?) bui/i],[d,[p,"OPPO"],[h,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[h,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[h,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,N],[h,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,N],[h,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,L],[h,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,L],[h,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[p,"Lenovo"],[h,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[p,"Nokia"],[h,y]],[/(pixel c)\b/i],[d,[p,O],[h,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,O],[h,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,D],[h,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,D],[h,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,"OnePlus"],[h,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,k],[h,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,k],[h,y]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[h,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,_],[h,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,E],[h,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,E],[h,y]],[/(nexus 9)/i],[d,[p,"HTC"],[h,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[h,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[h,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[h,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[p,"Ulefone"],[h,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,d,[h,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,d,[h,b]],[/(surface duo)/i],[d,[p,M],[h,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[h,y]],[/(u304aa)/i],[d,[p,"AT&T"],[h,y]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[h,y]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[h,b]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[h,b]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[h,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[h,b]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[h,b]],[/\b(k88) b/i],[d,[p,"ZTE"],[h,b]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[h,y]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[h,y]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[h,b]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[h,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[h,b]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[h,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[h,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[h,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[h,y]],[/\b(ph-1) /i],[d,[p,"Essential"],[h,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[h,b]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[h,b]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[h,b]],[/(shield[\w ]+) b/i],[d,[p,"Nvidia"],[h,b]],[/(sprint) (\w+)/i],[p,d,[h,y]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,M],[h,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,W],[h,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,W],[h,y]],[/smart-tv.+(samsung)/i],[p,[h,w]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,j],[h,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,L],[h,w]],[/(apple) ?tv/i],[p,[d,S+" TV"],[h,w]],[/crkey/i],[[d,T+"cast"],[p,O],[h,w]],[/droid.+aft(\w+)( bui|\))/i],[d,[p,k],[h,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,$],[h,w]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,D],[h,w]],[/(mitv-\w{5}) bui/i],[d,[p,U],[h,w]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[h,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,q],[d,q],[h,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[h,v]],[/droid.+; (shield) bui/i],[d,[p,"Nvidia"],[h,v]],[/(playstation [345portablevi]+)/i],[d,[p,D],[h,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,M],[h,v]],[/((pebble))app/i],[p,d,[h,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[p,S],[h,x]],[/droid.+; (glass) \d/i],[d,[p,O],[h,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,W],[h,x]],[/(quest( \d| pro)?)/i],[d,[p,z],[h,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[h,C]],[/(aeobc)\b/i],[d,[p,k],[h,C]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[h,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,y]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[g,Q,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,Q,Z],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,F],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,g],[/\(bb(10);/i],[g,[f,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[f,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[f,T+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,B],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,g],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,g]]},X=function(e,t){if(typeof e===l&&(t=e,e=i),!(this instanceof X))return new X(e,t).getResult();var n=typeof o!==s&&o.navigator?o.navigator:i,r=e||(n&&n.userAgent?n.userAgent:""),v=n&&n.userAgentData?n.userAgentData:i,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Y,t):Y,x=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=i,t[g]=i,G.call(t,r,w.browser),t[u]=typeof(e=t[g])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:i,x&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[m]=i,G.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[p]=i,e[d]=i,e[h]=i,G.call(e,r,w.device),x&&!e[h]&&v&&v.mobile&&(e[h]=y),x&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[h]=b),e},this.getEngine=function(){var e={};return e[f]=i,e[g]=i,G.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[f]=i,e[g]=i,G.call(e,r,w.os),x&&!e[f]&&v&&v.platform&&"Unknown"!=v.platform&&(e[f]=v.platform.replace(/chrome os/i,B).replace(/macos/i,F)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?q(e,500):e,this},this.setUA(r),this};X.VERSION="1.0.38",X.BROWSER=H([f,g,u]),X.CPU=H([m]),X.DEVICE=H([d,p,h,v,y,w,b,x,C]),X.ENGINE=X.OS=H([f,g]),typeof t!==s?(e.exports&&(t=e.exports=X),t.UAParser=X):n.amdO?(r=function(){return X}.call(t,n,t,e))===i||(e.exports=r):typeof o!==s&&(o.UAParser=X);var J=typeof o!==s&&(o.jQuery||o.Zepto);if(J&&!J.ua){var ee=new X;J.ua=ee.getResult(),J.ua.get=function(){return ee.getUA()},J.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)J.ua[n]=t[n]}}}("object"===typeof window?window:this)},1281:()=>{},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},8738:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},2004:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{"use strict";n.r(r),n.d(r,{checkIn:()=>Nv,consumePurchase:()=>Wv,copyShareLink:()=>$v,getItem:()=>Dv,getShareLink:()=>jv,init:()=>Ov,login:()=>Pv,onEvent:()=>Fv,purchase:()=>Mv,queryPurchses:()=>zv,ready:()=>Lv,setItem:()=>Uv,share:()=>Iv,vibrate:()=>Bv});var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>Df,hasStandardBrowserEnv:()=>Uf,hasStandardBrowserWebWorkerEnv:()=>zf,origin:()=>Bf});var t=n(1352),o=n(8168),i=n(9950),a=n(7353),s=n(3158),l=n(2860),c=n(7576);const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=i.useContext(c.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},d=(0,l.A)();const f=function(){return u(arguments.length>0&&void 0!==arguments[0]?arguments[0]:d)};var h=n(4414);const p=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const o=f(r),i="function"===typeof t?t(n&&o[n]||o):t;return(0,h.jsx)(s.A,{styles:i})};var g=n(195),m=n(7550);const v=function(e){return(0,h.jsx)(p,(0,o.A)({},e,{defaultTheme:g.A,themeId:m.A}))},y=(e,t)=>(0,o.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),b=e=>(0,o.A)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});const w=function(e){const t=(0,a.b)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(v,{styles:e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((t=>{let[n,o]=t;var i;r[e.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(i=o.palette)?void 0:i.mode}}));let i=(0,o.A)({html:y(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,o.A)({margin:0},b(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return a&&(i=[i,a]),i}(e,r)}),n]})};var x=n(3450),C=n.n(x);const k="ps_app_did_mount",S="ps_game_info_loaded",E="ps_game_ready",_="ps_switch_page",A="ps_wallet_connect",T="ps_play_button_clicked",R="ps_purchase_completed",O="ps_check_in_completed",P="event_purchaseCompleted",L="event_checkInCompleted",M={1:{bgColor:"#F5A413",borderColor:"#FEF8E2",textColor:"#fff",text:"Airdrop",icon:"tag_icon1.png",iconWidth:20,iconHeight:18},2:{bgColor:"#25A3AC",borderColor:"#FEF8E2",textColor:"#fff",text:"Earn",icon:"tag_icon2.png",iconWidth:16,iconHeight:18}},N={1e3:"Join the World\u2019s Largest Cat-lover Community: Catizen - Play, Earn, Airdrop!",1002:"Wondering how much $BOMBIE you can earn?"};let I=function(e){return e[e.Success=1e4]="Success",e[e.NetConfigError=10001]="NetConfigError",e[e.NetError=10002]="NetError",e[e.ParamError=10003]="ParamError",e[e.NotInit=10004]="NotInit",e[e.InitError=10005]="InitError",e[e.NotLogin=10006]="NotLogin",e[e.Logined=10007]="Logined",e[e.Purchaseing=10008]="Purchaseing",e[e.ClipboardError=10009]="ClipboardError",e[e.WalletError=10010]="WalletError",e[e.OpenInvoiceError=10011]="OpenInvoiceError",e[e.TokenUseError=10012]="TokenUseError",e[e.OrderConfirming=10013]="OrderConfirming",e[e.CheckingIn=10014]="CheckingIn",e}({}),j=function(e){return e[e.None=0]="None",e[e.Index=1]="Index",e[e.Login=2]="Login",e[e.Purchase=3]="Purchase",e[e.CheckIn=4]="CheckIn",e}({}),$=function(e){return e[e.star=1]="star",e[e.tonConnect=2]="tonConnect",e}({}),D=function(e){return e.usdt="USDT",e.ton="TON",e.cati="CATI",e.star="STAR",e}({}),U=function(e){return e.cati="CATI",e.usdt="USDT",e}({});const W={[D.usdt]:"USDT",[D.ton]:"TON",[D.cati]:"CATI",[D.star]:"Star"},z={[D.usdt]:"coin_usdt.png",[D.ton]:"coin_ton.png",[D.cati]:"coin_cati.png",[D.star]:"coin_star.png"};var B=n(7946);const F={CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"kQB0rxb4k-xFwXVzBpvJwt4_ChPvqMScDAKMBfQZw2Od8MFB"};class H{static init(){{let e=new URLSearchParams(location.search);H.TEST_MODE="1"==e.get("debug"),H.GAME_ID=e.get("gameid"),H.BOT_NAME=e.get("botname"),H.INIT_DATA=e.get("initdata"),H.INIT_DATA||(H.INIT_DATA=Telegram.WebApp.initData)}H.TEST_MODE?(H.API_URL="https://test-sdk1.pluto.vision/",H.PAYLOAD_URL="https://test-bc1.pluto.vision/api/ton/getTokenPayload",H.TON_CENTER_URL="https://testnet.toncenter.com/api/v3/jetton/wallets",H.TOKENS_JETTON_ADDRESS=F,H.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/test/manifest-${H.GAME_ID}.json`):H.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/release/manifest-${H.GAME_ID}.json`}}H.APP_VERSION="1.0.2-beta.2",H.RES_URL="https://games.pluto.vision/sdk/resource/",H.API_URL="https://sdk1.pluto.vision/",H.PAYLOAD_URL="https://bc1.pluto.vision/api/ton/getTokenPayload",H.TON_CENTER_URL="https://toncenter.com/api/v3/jetton/wallets",H.TOKENS_JETTON_ADDRESS={CATI:"EQD-cvR0Nz6XAyRBvbhz-abTrRC6sI5tvHvvpeQraV9UAAD7",USDT:"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs"},H.MANIFEST_URL="",H.TEST_MODE=!1,H.GAME_ID="",H.BOT_NAME="",H.INIT_DATA="",H.TOKEN="";const V=e=>`${H.RES_URL}${e}`,K=()=>{const e=(new B.UAParser).getDevice().type;return"mobile"==e||"tablet"==e},q=()=>{var e,t;const n=new B.UAParser,r=null===(e=n.getBrowser().name)||void 0===e?void 0:e.toLocaleLowerCase(),o=null===(t=n.getOS().name)||void 0===t?void 0:t.toLocaleLowerCase();return"webkit"==r&&("mac os"==o||"ios"==o)},G=e=>new Promise(((t,n)=>{if(!navigator||!navigator.clipboard)return n();navigator.clipboard.writeText(e).then((()=>{t()})).catch((()=>{n()}))})),Q=e=>new Promise(((t,n)=>{let r=document.createElement("textarea");r.value=e,r.style.position="absolute",r.style.opacity="0",r.style.left="-999999px",r.style.top="-999999px",document.body.appendChild(r),r.focus(),r.select();let o=document.execCommand("copy");r.remove(),o?t():n()}));var Z,Y,X,J,ee,te,ne=n(4008),re=n(3477);!function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",e[e.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(Z||(Z={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(Y||(Y={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(X||(X={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(J||(J={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(ee||(ee={})),function(e){e.MAINNET="-239",e.TESTNET="-3"}(te||(te={}));const oe={encode:function(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof Uint8Array?t=e:("string"!==typeof e&&(e=JSON.stringify(e)),t=ne.decodeUTF8(e)),function(e,t){const n=ne.encodeBase64(e);return t?encodeURIComponent(n):n}(t,n)},decode:function(e){const t=function(e,t){return t&&(e=decodeURIComponent(e)),ne.decodeBase64(e)}(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);return{toString:()=>ne.encodeUTF8(t),toObject(){try{return JSON.parse(ne.encodeUTF8(t))}catch(Cr){return null}},toUint8Array:()=>t}}};function ie(e){let t="";return e.forEach((e=>{t+=("0"+(255&e).toString(16)).slice(-2)})),t}function ae(e){if(e.length%2!==0)throw new Error(`Cannot convert ${e} to bytesArray`);const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)t[n/2]=parseInt(e.slice(n,n+2),16);return t}class se{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=ie(this.keyPair.publicKey)}createKeypair(){return re.box.keyPair()}createKeypairFromString(e){return{publicKey:ae(e.publicKey),secretKey:ae(e.secretKey)}}createNonce(){return re.randomBytes(this.nonceLength)}encrypt(e,t){const n=(new TextEncoder).encode(e),r=this.createNonce();return function(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(r,re.box(n,r,t,this.keyPair.secretKey))}decrypt(e,t){const[n,r]=function(e,t){if(t>=e.length)throw new Error("Index is out of buffer");return[e.slice(0,t),e.slice(t)]}(e,this.nonceLength),o=re.box.open(r,n,t,this.keyPair.secretKey);if(!o)throw new Error(`Decryption error: \n message: ${e.toString()} \n sender pubkey: ${t.toString()} \n keypair pubkey: ${this.keyPair.publicKey.toString()} \n keypair secretkey: ${this.keyPair.secretKey.toString()}`);return(new TextDecoder).decode(o)}stringifyKeypair(){return{publicKey:ie(this.keyPair.publicKey),secretKey:ie(this.keyPair.secretKey)}}}function le(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(Cr){i(Cr)}}function s(e){try{l(r.throw(e))}catch(Cr){i(Cr)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}class ce extends Error{constructor(e,t){super(e,t),this.message=`${ce.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,ce.prototype)}get info(){return""}}ce.prefix="[TON_CONNECT_SDK_ERROR]";class ue extends ce{get info(){return"Passed DappMetadata is in incorrect format."}constructor(){super(...arguments),Object.setPrototypeOf(this,ue.prototype)}}class de extends ce{get info(){return"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(){super(...arguments),Object.setPrototypeOf(this,de.prototype)}}class fe extends ce{get info(){return"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(){super(...arguments),Object.setPrototypeOf(this,fe.prototype)}}class he extends ce{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(){super(...arguments),Object.setPrototypeOf(this,he.prototype)}}class pe extends ce{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(){super(...arguments),Object.setPrototypeOf(this,pe.prototype)}}class ge extends ce{get info(){return"User rejects the action in the wallet."}constructor(){super(...arguments),Object.setPrototypeOf(this,ge.prototype)}}class me extends ce{get info(){return"Request to the wallet contains errors."}constructor(){super(...arguments),Object.setPrototypeOf(this,me.prototype)}}class ve extends ce{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(){super(...arguments),Object.setPrototypeOf(this,ve.prototype)}}class ye extends ce{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(){super(...arguments),Object.setPrototypeOf(this,ye.prototype)}}class be extends ce{get info(){return"An error occurred while fetching the wallets list."}constructor(){super(...arguments),Object.setPrototypeOf(this,be.prototype)}}class we extends ce{get info(){return"Passed address is in incorrect format."}constructor(){super(...arguments),Object.setPrototypeOf(this,we.prototype)}}class xe extends ce{get info(){return"Passed hex is in incorrect format."}constructor(){super(...arguments),Object.setPrototypeOf(this,xe.prototype)}}class Ce extends ce{constructor(){super(...arguments),Object.setPrototypeOf(this,Ce.prototype)}}const ke={[Z.UNKNOWN_ERROR]:Ce,[Z.USER_REJECTS_ERROR]:ge,[Z.BAD_REQUEST_ERROR]:me,[Z.UNKNOWN_APP_ERROR]:ve,[Z.MANIFEST_NOT_FOUND_ERROR]:fe,[Z.MANIFEST_CONTENT_ERROR]:de};const Se=new class{parseError(e){let t=Ce;return e.code in ke&&(t=ke[e.code]||Ce),new t(e.message)}};class Ee{isError(e){return"error"in e}}const _e={[X.UNKNOWN_ERROR]:Ce,[X.USER_REJECTS_ERROR]:ge,[X.BAD_REQUEST_ERROR]:me,[X.UNKNOWN_APP_ERROR]:ve};const Ae=new class extends Ee{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=Ce;throw e.error.code in _e&&(t=_e[e.error.code]||Ce),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}};class Te{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return le(this,void 0,void 0,(function*(){return this.storage.setItem(this.storeKey,e)}))}removeLastEventId(){return le(this,void 0,void 0,(function*(){return this.storage.removeItem(this.storeKey)}))}getLastEventId(){return le(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);return e||null}))}}function Re(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function Oe(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function Pe(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function Le(e,t){return le(this,void 0,void 0,(function*(){return new Promise(((n,r)=>{var o,i;if(null===(o=null===t||void 0===t?void 0:t.signal)||void 0===o?void 0:o.aborted)return void r(new ce("Delay aborted"));const a=setTimeout((()=>n()),e);null===(i=null===t||void 0===t?void 0:t.signal)||void 0===i||i.addEventListener("abort",(()=>{clearTimeout(a),r(new ce("Delay aborted"))}))}))}))}function Me(e){const t=new AbortController;return(null===e||void 0===e?void 0:e.aborted)?t.abort():null===e||void 0===e||e.addEventListener("abort",(()=>t.abort()),{once:!0}),t}function Ne(e,t){var n,r;return le(this,void 0,void 0,(function*(){const o=null!==(n=null===t||void 0===t?void 0:t.attempts)&&void 0!==n?n:10,i=null!==(r=null===t||void 0===t?void 0:t.delayMs)&&void 0!==r?r:200,a=Me(null===t||void 0===t?void 0:t.signal);if("function"!==typeof e)throw new ce("Expected a function, got "+typeof e);let s,l=0;for(;l<o;){if(a.signal.aborted)throw new ce(`Aborted after attempts ${l}`);try{return yield e({signal:a.signal})}catch(c){s=c,l++,l<o&&(yield Le(i))}}throw s}))}function Ie(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug("[TON_CONNECT_SDK]",...t)}catch(kt){}}function je(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error("[TON_CONNECT_SDK]",...t)}catch(kt){}}class $e{constructor(e,t,n,r,o){this.bridgeUrl=t,this.sessionId=n,this.listener=r,this.errorsListener=o,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=function(e,t){var n=this;let r=null,o=null,i=null,a=null,s=null;const l=function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];return le(n,void 0,void 0,(function*(){if(a=null!==l&&void 0!==l?l:null,null===s||void 0===s||s.abort(),s=Me(l),s.signal.aborted)throw new ce("Resource creation was aborted");o=null!==u&&void 0!==u?u:null;const n=e(s.signal,...u);i=n;const c=yield n;if(i!==n&&c!==r)throw yield t(c),new ce("Resource creation was aborted by a new resource creation");return r=c,r}))};return{create:l,current:()=>null!==r&&void 0!==r?r:null,dispose:()=>le(this,void 0,void 0,(function*(){try{const e=r;r=null;const n=i;i=null;try{null===s||void 0===s||s.abort()}catch(Cr){}yield Promise.allSettled([e?t(e):Promise.resolve(),n?t(yield n):Promise.resolve()])}catch(Cr){}})),recreate:e=>le(this,void 0,void 0,(function*(){const t=r,n=i,s=o,c=a;if(yield Le(e),t===r&&n===i&&s===o&&c===a)return yield l(a,...null!==s&&void 0!==s?s:[]);throw new ce("Resource recreation was aborted by a new resource creation")}))}}(((e,t)=>le(this,void 0,void 0,(function*(){const n={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:e,openingDeadlineMS:t};return yield function(e){return le(this,void 0,void 0,(function*(){return yield function(e,t){const n=null===t||void 0===t?void 0:t.timeout,r=Me(null===t||void 0===t?void 0:t.signal);return new Promise(((t,o)=>le(this,void 0,void 0,(function*(){if(r.signal.aborted)return void o(new ce("Operation aborted"));let i;"undefined"!==typeof n&&(i=setTimeout((()=>{r.abort(),o(new ce(`Timeout after ${n}ms`))}),n)),r.signal.addEventListener("abort",(()=>{clearTimeout(i),o(new ce("Operation aborted"))}),{once:!0});const a={timeout:n,abort:r.signal};yield e((function(){clearTimeout(i),t(...arguments)}),(()=>{clearTimeout(i),o()}),a)}))))}(((t,n,r)=>le(this,void 0,void 0,(function*(){var o;const i=Me(r.signal).signal;if(i.aborted)return void n(new ce("Bridge connection aborted"));const a=new URL(Re(e.bridgeUrl,e.ssePath));a.searchParams.append("client_id",e.sessionId);const s=yield e.bridgeGatewayStorage.getLastEventId();if(s&&a.searchParams.append("last_event_id",s),i.aborted)return void n(new ce("Bridge connection aborted"));const l=new EventSource(a.toString());l.onerror=r=>le(this,void 0,void 0,(function*(){if(i.aborted)return l.close(),void n(new ce("Bridge connection aborted"));try{const n=yield e.errorHandler(l,r);n!==l&&l.close(),n&&n!==l&&t(n)}catch(Cr){l.close(),n(Cr)}})),l.onopen=()=>{if(i.aborted)return l.close(),void n(new ce("Bridge connection aborted"));t(l)},l.onmessage=t=>{if(i.aborted)return l.close(),void n(new ce("Bridge connection aborted"));e.messageHandler(t)},null===(o=e.signal)||void 0===o||o.addEventListener("abort",(()=>{l.close(),n(new ce("Bridge connection aborted"))}))}))),{timeout:e.openingDeadlineMS,signal:e.signal})}))}(n)}))),(e=>le(this,void 0,void 0,(function*(){e.close()})))),this.bridgeGatewayStorage=new Te(e,t)}get isReady(){const e=this.eventSource.current();return(null===e||void 0===e?void 0:e.readyState)===EventSource.OPEN}get isClosed(){const e=this.eventSource.current();return(null===e||void 0===e?void 0:e.readyState)!==EventSource.OPEN}get isConnecting(){const e=this.eventSource.current();return(null===e||void 0===e?void 0:e.readyState)===EventSource.CONNECTING}registerSession(e){return le(this,void 0,void 0,(function*(){yield this.eventSource.create(null===e||void 0===e?void 0:e.signal,null===e||void 0===e?void 0:e.openingDeadlineMS)}))}send(e,t,n,r){var o;return le(this,void 0,void 0,(function*(){const i={};"number"===typeof r?i.ttl=r:(i.ttl=null===r||void 0===r?void 0:r.ttl,i.signal=null===r||void 0===r?void 0:r.signal,i.attempts=null===r||void 0===r?void 0:r.attempts);const a=new URL(Re(this.bridgeUrl,this.postPath));a.searchParams.append("client_id",this.sessionId),a.searchParams.append("to",t),a.searchParams.append("ttl",((null===i||void 0===i?void 0:i.ttl)||this.defaultTtl).toString()),a.searchParams.append("topic",n);const s=oe.encode(e);yield Ne((e=>le(this,void 0,void 0,(function*(){const t=yield this.post(a,s,e.signal);if(!t.ok)throw new ce(`Bridge send failed, status ${t.status}`)}))),{attempts:null!==(o=null===i||void 0===i?void 0:i.attempts)&&void 0!==o?o:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:null===i||void 0===i?void 0:i.signal})}))}pause(){this.eventSource.dispose().catch((e=>je(`Bridge pause failed, ${e}`)))}unPause(){return le(this,void 0,void 0,(function*(){yield this.eventSource.recreate(0)}))}close(){return le(this,void 0,void 0,(function*(){yield this.eventSource.dispose().catch((e=>je(`Bridge close failed, ${e}`)))}))}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,t,n){return le(this,void 0,void 0,(function*(){const r=yield fetch(e,{method:"post",body:t,signal:n});if(!r.ok)throw new ce(`Bridge send failed, status ${r.status}`);return r}))}errorsHandler(e,t){return le(this,void 0,void 0,(function*(){if(this.isConnecting)throw e.close(),new ce("Bridge error, failed to connect");if(!this.isReady){if(this.isClosed)return e.close(),Ie(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new ce("Bridge error, unknown state")}try{this.errorsListener(t)}catch(t){}}))}messagesHandler(e){return le(this,void 0,void 0,(function*(){if(e.data===this.heartbeatMessage)return;if(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed)return;let t;try{t=JSON.parse(e.data)}catch(e){throw new ce(`Bridge message parse failed, message ${e.data}`)}this.listener(t)}))}}function De(e){return!("connectEvent"in e)}class Ue{constructor(e){this.storage=e,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return le(this,void 0,void 0,(function*(){if("injected"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!De(e)){const t={sessionKeyPair:e.session.sessionCrypto.stringifyKeypair(),walletPublicKey:e.session.walletPublicKey,bridgeUrl:e.session.bridgeUrl},n={type:"http",connectEvent:e.connectEvent,session:t,lastWalletEventId:e.lastWalletEventId,nextRpcRequestId:e.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(n))}const t={type:"http",connectionSource:e.connectionSource,sessionCrypto:e.sessionCrypto.stringifyKeypair()};return this.storage.setItem(this.storeKey,JSON.stringify(t))}))}removeConnection(){return le(this,void 0,void 0,(function*(){return this.storage.removeItem(this.storeKey)}))}getConnection(){return le(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;const t=JSON.parse(e);if("injected"===t.type)return t;if("connectEvent"in t){const e=new se(t.session.sessionKeyPair);return{type:"http",connectEvent:t.connectEvent,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId,session:{sessionCrypto:e,bridgeUrl:t.session.bridgeUrl,walletPublicKey:t.session.walletPublicKey}}}return{type:"http",sessionCrypto:new se(t.sessionCrypto),connectionSource:t.connectionSource}}))}getHttpConnection(){return le(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new ce("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new ce("Trying to read HTTP connection source while injected connection is stored");return e}))}getHttpPendingConnection(){return le(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new ce("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new ce("Trying to read HTTP connection source while injected connection is stored");if(!De(e))throw new ce("Trying to read HTTP-pending connection while http connection is stored");return e}))}getInjectedConnection(){return le(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new ce("Trying to read Injected bridge connection source while nothing is stored");if("http"===(null===e||void 0===e?void 0:e.type))throw new ce("Trying to read Injected bridge connection source while HTTP connection is stored");return e}))}storedConnectionType(){return le(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;return JSON.parse(e).type}))}storeLastWalletEventId(e){return le(this,void 0,void 0,(function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!De(t))return t.lastWalletEventId=e,this.storeConnection(t)}))}getLastWalletEventId(){return le(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId}))}increaseNextRpcRequestId(){return le(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(e&&"nextRpcRequestId"in e){const t=e.nextRpcRequestId||0;return e.nextRpcRequestId=t+1,this.storeConnection(e)}}))}getNextRpcRequestId(){return le(this,void 0,void 0,(function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0}))}}class We{constructor(e,t){this.storage=e,this.walletConnectionSource=t,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.connectionStorage=new Ue(e)}static fromStorage(e){return le(this,void 0,void 0,(function*(){const t=new Ue(e),n=yield t.getHttpConnection();return De(n)?new We(e,n.connectionSource):new We(e,{bridgeUrl:n.session.bridgeUrl})}))}connect(e,t){var n;const r=Me(null===t||void 0===t?void 0:t.signal);null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=r,this.closeGateways();const o=new se;this.session={sessionCrypto:o,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:o}).then((()=>le(this,void 0,void 0,(function*(){r.signal.aborted||(yield Ne((e=>{var n;return this.openGateways(o,{openingDeadlineMS:null!==(n=null===t||void 0===t?void 0:t.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS,signal:null===e||void 0===e?void 0:e.signal})}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal}))}))));const i="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(i,e)}restoreConnection(e){var t,n;return le(this,void 0,void 0,(function*(){const r=Me(null===e||void 0===e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return;this.closeGateways();const o=yield this.connectionStorage.getHttpConnection();if(!o)return;if(r.signal.aborted)return;const i=null!==(n=null===e||void 0===e?void 0:e.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS;if(De(o))return this.session={sessionCrypto:o.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(o.sessionCrypto,{openingDeadlineMS:i,signal:null===r||void 0===r?void 0:r.signal});if(Array.isArray(this.walletConnectionSource))throw new ce("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=o.session,this.gateway&&(Ie("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new $e(this.storage,this.walletConnectionSource.bridgeUrl,o.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!r.signal.aborted){this.listeners.forEach((e=>e(o.connectEvent)));try{yield Ne((e=>this.gateway.registerSession({openingDeadlineMS:i,signal:e.signal})),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal})}catch(Cr){return void(yield this.disconnect({signal:r.signal}))}}}))}sendRequest(e,t){const n={};return"function"===typeof t?n.onRequestSent=t:(n.onRequestSent=null===t||void 0===t?void 0:t.onRequestSent,n.signal=null===t||void 0===t?void 0:t.signal,n.attempts=null===t||void 0===t?void 0:t.attempts),new Promise(((t,r)=>le(this,void 0,void 0,(function*(){var o;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new ce("Trying to send bridge request without session");const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),Ie("Send http-bridge request:",Object.assign(Object.assign({},e),{id:i}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:i})),ae(this.session.walletPublicKey));try{yield this.gateway.send(a,this.session.walletPublicKey,e.method,{attempts:null===n||void 0===n?void 0:n.attempts,signal:null===n||void 0===n?void 0:n.signal}),null===(o=null===n||void 0===n?void 0:n.onRequestSent)||void 0===o||o.call(n),this.pendingRequests.set(i.toString(),t)}catch(Cr){r(Cr)}}))))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return le(this,void 0,void 0,(function*(){return new Promise((t=>le(this,void 0,void 0,(function*(){let n=!1,r=null;const o=()=>{n||(n=!0,this.removeBridgeAndSession().then(t))};try{this.closeGateways();const t=Me(null===e||void 0===e?void 0:e.signal);r=setTimeout((()=>{t.abort()}),this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:o,signal:t.signal,attempts:1})}catch(Cr){Ie("Disconnect error:",Cr),n||this.removeBridgeAndSession().then(t)}finally{r&&clearTimeout(r),o()}}))))}))}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter((t=>t!==e))}pause(){var e;null===(e=this.gateway)||void 0===e||e.pause(),this.pendingGateways.forEach((e=>e.pause()))}unPause(){return le(this,void 0,void 0,(function*(){const e=this.pendingGateways.map((e=>e.unPause()));this.gateway&&e.push(this.gateway.unPause()),yield Promise.all(e)}))}pendingGatewaysListener(e,t,n){return le(this,void 0,void 0,(function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.gateway&&(Ie("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=t,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(n);yield e.close()}))}gatewayListener(e){return le(this,void 0,void 0,(function*(){const t=JSON.parse(this.session.sessionCrypto.decrypt(oe.decode(e.message).toUint8Array(),ae(e.from)));if(Ie("Wallet message received:",t),!("event"in t)){const e=t.id.toString(),n=this.pendingRequests.get(e);return n?(n(t),void this.pendingRequests.delete(e)):void Ie(`Response id ${e} doesn't match any request's id`)}if(void 0!==t.id){const e=yield this.connectionStorage.getLastWalletEventId();if(void 0!==e&&t.id<=e)return void je(`Received event id (=${t.id}) must be greater than stored last wallet event id (=${e}) `);"connect"!==t.event&&(yield this.connectionStorage.storeLastWalletEventId(t.id))}const n=this.listeners;"connect"===t.event&&(yield this.updateSession(t,e.from)),"disconnect"===t.event&&(Ie("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),n.forEach((e=>e(t)))}))}gatewayErrorsListener(e){return le(this,void 0,void 0,(function*(){throw new ce(`Bridge error ${JSON.stringify(e)}`)}))}updateSession(e,t){return le(this,void 0,void 0,(function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:t});const n=e.payload.items.find((e=>"ton_addr"===e.name)),r=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{items:[n]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:e.id,connectEvent:r,nextRpcRequestId:0})}))}removeBridgeAndSession(){return le(this,void 0,void 0,(function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()}))}generateUniversalLink(e,t){return Oe(e)?this.generateTGUniversalLink(e,t):this.generateRegularUniversalLink(e,t)}generateRegularUniversalLink(e,t){const n=new URL(e);return n.searchParams.append("v",2..toString()),n.searchParams.append("id",this.session.sessionCrypto.sessionId),n.searchParams.append("r",JSON.stringify(t)),n.toString()}generateTGUniversalLink(e,t){const n="tonconnect-"+Pe(this.generateRegularUniversalLink("about:blank",t).split("?")[1]),r=this.convertToDirectLink(e),o=new URL(r);return o.searchParams.append("startapp",n),o.toString()}convertToDirectLink(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}openGateways(e,t){return le(this,void 0,void 0,(function*(){return Array.isArray(this.walletConnectionSource)?(this.pendingGateways.map((e=>e.close().catch())),this.pendingGateways=this.walletConnectionSource.map((t=>{const n=new $e(this.storage,t.bridgeUrl,e.sessionId,(()=>{}),(()=>{}));return n.setListener((e=>this.pendingGatewaysListener(n,t.bridgeUrl,e))),n})),void(yield Promise.allSettled(this.pendingGateways.map((e=>Ne((n=>{var r;return this.pendingGateways.some((t=>t===e))?e.registerSession({openingDeadlineMS:null!==(r=null===t||void 0===t?void 0:t.openingDeadlineMS)&&void 0!==r?r:this.defaultOpeningDeadlineMS,signal:n.signal}):e.close()}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:null===t||void 0===t?void 0:t.signal})))))):(this.gateway&&(Ie("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new $e(this.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:null===t||void 0===t?void 0:t.openingDeadlineMS,signal:null===t||void 0===t?void 0:t.signal}))}))}closeGateways(e){var t;null===(t=this.gateway)||void 0===t||t.close(),this.pendingGateways.filter((t=>t!==(null===e||void 0===e?void 0:e.except))).forEach((e=>e.close())),this.pendingGateways=[]}}function ze(e,t){return Be(e,[t])}function Be(e,t){return!(!e||"object"!==typeof e)&&t.every((t=>t in e))}class Fe{constructor(){this.storage={}}static getInstance(){return Fe.instance||(Fe.instance=new Fe),Fe.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!==(t=n[e])&&void 0!==t?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}}function He(){if("undefined"!==typeof window)return window}function Ve(){if("undefined"!==typeof document)return document}function Ke(){var e;const t=null===(e=He())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function qe(){if(function(){try{return"undefined"!==typeof localStorage}catch(kt){return!1}}())return localStorage;if("undefined"!==typeof process&&null!=process.versions&&null!=process.versions.node)throw new ce("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return Fe.getInstance()}class Ge{constructor(e,t){this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const n=Ge.window;if(!Ge.isWindowContainsWallet(n,t))throw new ye;this.connectionStorage=new Ue(e),this.injectedWallet=n[t].tonconnect}static fromStorage(e){return le(this,void 0,void 0,(function*(){const t=new Ue(e),n=yield t.getInjectedConnection();return new Ge(e,n.jsBridgeKey)}))}static isWalletInjected(e){return Ge.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!Ge.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=He();if(!e)return[];try{return Object.keys(e)}catch(kt){return[]}}().filter((e=>{let[t,n]=e;return function(e){try{return!(!ze(e,"tonconnect")||!ze(e.tonconnect,"walletInfo"))&&Be(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch(kt){return!1}}(n)})).map((e=>{let[t,n]=e;return{name:n.tonconnect.walletInfo.name,appName:n.tonconnect.walletInfo.app_name,aboutUrl:n.tonconnect.walletInfo.about_url,imageUrl:n.tonconnect.walletInfo.image,tondns:n.tonconnect.walletInfo.tondns,jsBridgeKey:t,injected:!0,embedded:n.tonconnect.isWalletBrowser,platforms:n.tonconnect.walletInfo.platforms}}))}static isWindowContainsWallet(e,t){return!!e&&t in e&&"object"===typeof e[t]&&"tonconnect"in e[t]}connect(e){this._connect(2,e)}restoreConnection(){return le(this,void 0,void 0,(function*(){try{Ie("Injected Provider restoring connection...");const e=yield this.injectedWallet.restoreConnection();Ie("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions(),this.listeners.forEach((t=>t(e)))):yield this.connectionStorage.removeConnection()}catch(Cr){yield this.connectionStorage.removeConnection(),console.error(Cr)}}))}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return le(this,void 0,void 0,(function*(){return new Promise((e=>{const t=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(e)};try{this.injectedWallet.disconnect(),t()}catch(Cr){Ie(Cr),this.sendRequest({method:"disconnect",params:[]},t)}}))}))}closeAllListeners(){var e;this.listenSubscriptions=!1,this.listeners=[],null===(e=this.unsubscribeCallback)||void 0===e||e.call(this)}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter((t=>t!==e))}sendRequest(e,t){var n;return le(this,void 0,void 0,(function*(){const r={};"function"===typeof t?r.onRequestSent=t:(r.onRequestSent=null===t||void 0===t?void 0:t.onRequestSent,r.signal=null===t||void 0===t?void 0:t.signal);const o=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),Ie("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:o}));const i=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:o}));return i.then((e=>Ie("Wallet message received:",e))),null===(n=null===r||void 0===r?void 0:r.onRequestSent)||void 0===n||n.call(r),i}))}_connect(e,t){return le(this,void 0,void 0,(function*(){try{Ie(`Injected Provider connect request: protocolVersion: ${e}, message:`,t);const n=yield this.injectedWallet.connect(e,t);Ie("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach((e=>e(n)))}catch(Cr){Ie("Injected Provider connect error:",Cr);const t={event:"connect_error",payload:{code:0,message:null===Cr||void 0===Cr?void 0:Cr.toString()}};this.listeners.forEach((e=>e(t)))}}))}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen((e=>{Ie("Wallet message received:",e),this.listenSubscriptions&&this.listeners.forEach((t=>t(e))),"disconnect"===e.event&&this.disconnect()}))}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}Ge.window=He();class Qe{constructor(){this.localStorage=qe()}getItem(e){return le(this,void 0,void 0,(function*(){return this.localStorage.getItem(e)}))}removeItem(e){return le(this,void 0,void 0,(function*(){this.localStorage.removeItem(e)}))}setItem(e,t){return le(this,void 0,void 0,(function*(){this.localStorage.setItem(e,t)}))}}function Ze(e){return function(e){return"jsBridgeKey"in e}(e)&&e.injected}function Ye(e){return Ze(e)&&e.embedded}function Xe(e){return"bridgeUrl"in e}const Je=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.ton.space/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://static.mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"dewallet",name:"DeWallet",image:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",about_url:"https://delabwallet.com",universal_url:"https://t.me/dewallet?attach=wallet",bridge:[{type:"sse",url:"https://sse-bridge.delab.team/bridge"}],platforms:["ios","android"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]},{app_name:"bitgetTonWallet",name:"Bitget Wallet",image:"https://raw.githubusercontent.com/bitkeepwallet/download/main/logo/png/bitget_wallet_logo_0_gas_fee.png",about_url:"https://web3.bitget.com",deepLink:"bitkeep://",bridge:[{type:"js",key:"bitgetTonWallet"},{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["ios","android","chrome"],universal_url:"https://bkcode.vip/ton-connect"},{app_name:"safepalwallet",name:"SafePal",image:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",about_url:"https://www.safepal.com",universal_url:"https://link.safepal.io/ton-connect",deepLink:"safepal-tc://",bridge:[{type:"sse",url:"https://ton-bridge.safepal.com/tonbridge/v1/bridge"},{type:"js",key:"safepalwallet"}],platforms:["ios","android","chrome","firefox"]},{app_name:"okxTonWallet",name:"OKX Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",about_url:"https://www.okx.com/web3",universal_url:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]},{app_name:"okxTonWalletTr",name:"OKX TR Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/587A8296F0BB640F.png",about_url:"https://tr.okx.com/web3",universal_url:"https://tr.okx.com/download?appendQuery=true&deeplink=okxtr://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]}];class et{constructor(e){this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource="https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",(null===e||void 0===e?void 0:e.walletsListSource)&&(this.walletsListSource=e.walletsListSource),(null===e||void 0===e?void 0:e.cacheTTLMs)&&(this.cacheTTLMs=e.cacheTTLMs)}getWallets(){return le(this,void 0,void 0,(function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then((()=>{this.walletsListCacheCreationTimestamp=Date.now()})).catch((()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null}))),this.walletsListCache}))}getEmbeddedWallet(){return le(this,void 0,void 0,(function*(){const e=(yield this.getWallets()).filter(Ye);return 1!==e.length?null:e[0]}))}fetchWalletsList(){return le(this,void 0,void 0,(function*(){let e=[];try{const t=yield fetch(this.walletsListSource);if(e=yield t.json(),!Array.isArray(e))throw new be("Wrong wallets list format, wallets list must be an array.");const n=e.filter((e=>!this.isCorrectWalletConfigDTO(e)));n.length&&(je(`Wallet(s) ${n.map((e=>e.name)).join(", ")} config format is wrong. They were removed from the wallets list.`),e=e.filter((e=>this.isCorrectWalletConfigDTO(e))))}catch(Cr){je(Cr),e=Je}let t=[];try{t=Ge.getCurrentlyInjectedWallets()}catch(Cr){je(Cr)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),t)}))}walletConfigDTOListToWalletConfigList(e){return e.map((e=>{const t={name:e.name,appName:e.app_name,imageUrl:e.image,aboutUrl:e.about_url,tondns:e.tondns,platforms:e.platforms};return e.bridge.forEach((n=>{if("sse"===n.type&&(t.bridgeUrl=n.url,t.universalLink=e.universal_url,t.deepLink=e.deepLink),"js"===n.type){const e=n.key;t.jsBridgeKey=e,t.injected=Ge.isWalletInjected(e),t.embedded=Ge.isInsideWalletBrowser(e)}})),t}))}mergeWalletsLists(e,t){return[...new Set(e.concat(t).map((e=>e.name))).values()].map((n=>{const r=e.find((e=>e.name===n)),o=t.find((e=>e.name===n));return Object.assign(Object.assign({},r&&Object.assign({},r)),o&&Object.assign({},o))}))}isCorrectWalletConfigDTO(e){if(!e||"object"!==typeof e)return!1;if(!("name"in e)||!("image"in e)||!("about_url"in e)||!("platforms"in e)||!("app_name"in e))return!1;if(!e.platforms||!Array.isArray(e.platforms)||!e.platforms.length)return!1;if(!("bridge"in e)||!Array.isArray(e.bridge)||!e.bridge.length)return!1;const t=e.bridge;if(t.some((e=>!e||"object"!==typeof e||!("type"in e))))return!1;const n=t.find((e=>"sse"===e.type));if(n&&(!("url"in n)||!n.url||!e.universal_url))return!1;const r=t.find((e=>"js"===e.type));return!!(!r||"key"in r&&r.key)}}class tt extends ce{get info(){return"Wallet doesn't support requested feature method."}constructor(){super(...arguments),Object.setPrototypeOf(this,tt.prototype)}}function nt(e,t){const n=e.includes("SendTransaction"),r=e.find((e=>e&&"object"===typeof e&&"SendTransaction"===e.name));if(!n&&!r)throw new tt("Wallet doesn't support SendTransaction feature.");if(r&&void 0!==r.maxMessages){if(r.maxMessages<t.requiredMessagesNumber)throw new tt(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${t.requiredMessagesNumber} is required.`)}else!function(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn("[TON_CONNECT_SDK]",...t)}catch(kt){}}("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function rt(e){return{type:"response-version",version:e}}function ot(e){return{ton_connect_sdk_lib:e.ton_connect_sdk_lib,ton_connect_ui_lib:e.ton_connect_ui_lib}}function it(e,t){var n,r,o,i,a,s,l,c;const u=(null===(n=null===t||void 0===t?void 0:t.connectItems)||void 0===n?void 0:n.tonProof)&&"proof"in t.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:null!==(o=null===(r=null===t||void 0===t?void 0:t.account)||void 0===r?void 0:r.address)&&void 0!==o?o:null,wallet_type:null!==(i=null===t||void 0===t?void 0:t.device.appName)&&void 0!==i?i:null,wallet_version:null!==(a=null===t||void 0===t?void 0:t.device.appVersion)&&void 0!==a?a:null,auth_type:u,custom_data:Object.assign({chain_id:null!==(l=null===(s=null===t||void 0===t?void 0:t.account)||void 0===s?void 0:s.chain)&&void 0!==l?l:null,provider:null!==(c=null===t||void 0===t?void 0:t.provider)&&void 0!==c?c:null},ot(e))}}function at(e){return{type:"connection-started",custom_data:ot(e)}}function st(e,t){return Object.assign({type:"connection-completed",is_success:!0},it(e,t))}function lt(e,t,n){return{type:"connection-error",is_success:!1,error_message:t,error_code:null!==n&&void 0!==n?n:null,custom_data:ot(e)}}function ct(e){return{type:"connection-restoring-started",custom_data:ot(e)}}function ut(e,t){return Object.assign({type:"connection-restoring-completed",is_success:!0},it(e,t))}function dt(e,t){return{type:"connection-restoring-error",is_success:!1,error_message:t,custom_data:ot(e)}}function ft(e,t){var n,r,o,i;return{valid_until:null!==(n=String(t.validUntil))&&void 0!==n?n:null,from:null!==(i=null!==(r=t.from)&&void 0!==r?r:null===(o=null===e||void 0===e?void 0:e.account)||void 0===o?void 0:o.address)&&void 0!==i?i:null,messages:t.messages.map((e=>{var t,n;return{address:null!==(t=e.address)&&void 0!==t?t:null,amount:null!==(n=e.amount)&&void 0!==n?n:null}}))}}function ht(e,t,n){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},it(e,t)),ft(t,n))}function pt(e,t,n,r){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc},it(e,t)),ft(t,n))}function gt(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:null!==o&&void 0!==o?o:null},it(e,t)),ft(t,n))}function mt(e,t,n){return Object.assign({type:"disconnection",scope:n},it(e,t))}class vt{constructor(){this.window=He()}dispatchEvent(e,t){var n;return le(this,void 0,void 0,(function*(){const r=new CustomEvent(e,{detail:t});null===(n=this.window)||void 0===n||n.dispatchEvent(r)}))}addEventListener(e,t,n){var r;return le(this,void 0,void 0,(function*(){return null===(r=this.window)||void 0===r||r.addEventListener(e,t,n),()=>{var n;return null===(n=this.window)||void 0===n?void 0:n.removeEventListener(e,t)}}))}}class yt{constructor(e){var t;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=null!==(t=null===e||void 0===e?void 0:e.eventDispatcher)&&void 0!==t?t:new vt,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}get version(){return ot({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return le(this,void 0,void 0,(function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch(Cr){}}))}setRequestVersionHandler(){return le(this,void 0,void 0,(function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",(()=>le(this,void 0,void 0,(function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",rt(this.tonConnectSdkVersion))}))))}))}requestTonConnectUiVersion(){return le(this,void 0,void 0,(function*(){return new Promise(((e,t)=>le(this,void 0,void 0,(function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",(t=>{e(t.detail.version)}),{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",{type:"request-version"})}catch(Cr){t(Cr)}}))))}))}dispatchUserActionEvent(e){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(Cr){}}trackConnectionStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=at(this.version,...t);this.dispatchUserActionEvent(r)}catch(Cr){}}trackConnectionCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=st(this.version,...t);this.dispatchUserActionEvent(r)}catch(Cr){}}trackConnectionError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=lt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Cr){}}trackConnectionRestoringStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ct(this.version,...t);this.dispatchUserActionEvent(r)}catch(Cr){}}trackConnectionRestoringCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ut(this.version,...t);this.dispatchUserActionEvent(r)}catch(Cr){}}trackConnectionRestoringError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=dt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Cr){}}trackDisconnection(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=mt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Cr){}}trackTransactionSentForSignature(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ht(this.version,...t);this.dispatchUserActionEvent(r)}catch(Cr){}}trackTransactionSigned(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=pt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Cr){}}trackTransactionSigningFailed(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=gt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Cr){}}}class bt{constructor(e){if(this.walletsList=new et,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(null===e||void 0===e?void 0:e.manifestUrl)||Ke(),storage:(null===e||void 0===e?void 0:e.storage)||new Qe},this.walletsList=new et({walletsListSource:null===e||void 0===e?void 0:e.walletsListSource,cacheTTLMs:null===e||void 0===e?void 0:e.walletsListCacheTTLMs}),this.tracker=new yt({eventDispatcher:null===e||void 0===e?void 0:e.eventDispatcher,tonConnectSdkVersion:"3.0.5"}),!this.dappSettings.manifestUrl)throw new ue("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new Ue(this.dappSettings.storage),(null===e||void 0===e?void 0:e.disableAutoPauseConnection)||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return null!==this._wallet}get account(){var e;return(null===(e=this._wallet)||void 0===e?void 0:e.account)||null}get wallet(){return this._wallet}set wallet(e){this._wallet=e,this.statusChangeSubscriptions.forEach((e=>e(this._wallet)))}getWallets(){return this.walletsList.getWallets()}onStatusChange(e,t){return this.statusChangeSubscriptions.push(e),t&&this.statusChangeErrorSubscriptions.push(t),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter((t=>t!==e)),t&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter((e=>e!==t)))}}connect(e,t){var n,r;const o={};if("object"===typeof t&&"tonProof"in t&&(o.request=t),"object"===typeof t&&("openingDeadlineMS"in t||"signal"in t||"request"in t)&&(o.request=null===t||void 0===t?void 0:t.request,o.openingDeadlineMS=null===t||void 0===t?void 0:t.openingDeadlineMS,o.signal=null===t||void 0===t?void 0:t.signal),this.connected)throw new he;const i=Me(null===o||void 0===o?void 0:o.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)throw new ce("Connection was aborted");return null===(r=this.provider)||void 0===r||r.closeConnection(),this.provider=this.createProvider(e),i.signal.addEventListener("abort",(()=>{var e;null===(e=this.provider)||void 0===e||e.closeConnection(),this.provider=null})),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest(null===o||void 0===o?void 0:o.request),{openingDeadlineMS:null===o||void 0===o?void 0:o.openingDeadlineMS,signal:i.signal})}restoreConnection(e){var t,n;return le(this,void 0,void 0,(function*(){this.tracker.trackConnectionRestoringStarted();const r=Me(null===e||void 0===e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");const[o,i]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");let a=null;try{switch(o){case"http":a=yield We.fromStorage(this.dappSettings.storage);break;case"injected":a=yield Ge.fromStorage(this.dappSettings.storage);break;default:if(!i)return;a=this.createProvider(i)}}catch(Et){return this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),null===a||void 0===a||a.closeConnection(),void(a=null)}if(r.signal.aborted)return null===a||void 0===a||a.closeConnection(),void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");if(!a)return je("Provider is not restored"),void this.tracker.trackConnectionRestoringError("Provider is not restored");null===(n=this.provider)||void 0===n||n.closeConnection(),this.provider=a,a.listen(this.walletEventsListener.bind(this));const s=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),null===a||void 0===a||a.closeConnection(),a=null};r.signal.addEventListener("abort",s);const l=Ne((t=>le(this,void 0,void 0,(function*(){yield null===a||void 0===a?void 0:a.restoreConnection({openingDeadlineMS:null===e||void 0===e?void 0:e.openingDeadlineMS,signal:t.signal}),r.signal.removeEventListener("abort",s),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}))),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:null===e||void 0===e?void 0:e.signal}),c=new Promise((e=>setTimeout((()=>e()),12e3)));return Promise.race([l,c])}))}sendTransaction(e,t){return le(this,void 0,void 0,(function*(){const n={};"function"===typeof t?n.onRequestSent=t:(n.onRequestSent=null===t||void 0===t?void 0:t.onRequestSent,n.signal=null===t||void 0===t?void 0:t.signal);const r=Me(null===n||void 0===n?void 0:n.signal);if(r.signal.aborted)throw new ce("Transaction sending was aborted");this.checkConnection(),nt(this.wallet.device.features,{requiredMessagesNumber:e.messages.length}),this.tracker.trackTransactionSentForSignature(this.wallet,e);const{validUntil:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["validUntil"]),a=e.from||this.account.address,s=e.network||this.account.chain,l=yield this.provider.sendRequest(Ae.convertToRpcRequest(Object.assign(Object.assign({},i),{valid_until:o,from:a,network:s})),{onRequestSent:n.onRequestSent,signal:r.signal});if(Ae.isError(l))return this.tracker.trackTransactionSigningFailed(this.wallet,e,l.error.message,l.error.code),Ae.parseAndThrowError(l);const c=Ae.convertFromRpcResponse(l);return this.tracker.trackTransactionSigned(this.wallet,e,c),c}))}disconnect(e){var t;return le(this,void 0,void 0,(function*(){if(!this.connected)throw new pe;const n=Me(null===e||void 0===e?void 0:e.signal),r=this.abortController;if(this.abortController=n,n.signal.aborted)throw new ce("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield null===(t=this.provider)||void 0===t?void 0:t.disconnect({signal:n.signal}),null===r||void 0===r||r.abort()}))}pauseConnection(){var e;"http"===(null===(e=this.provider)||void 0===e?void 0:e.type)&&this.provider.pause()}unPauseConnection(){var e;return"http"!==(null===(e=this.provider)||void 0===e?void 0:e.type)?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const e=Ve();if(e)try{e.addEventListener("visibilitychange",(()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch()}))}catch(Cr){je("Cannot subscribe to the document.visibilitychange: ",Cr)}}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new Ge(this.dappSettings.storage,e.jsBridgeKey):new We(this.dappSettings.storage,e),t.listen(this.walletEventsListener.bind(this)),t}walletEventsListener(e){switch(e.event){case"connect":this.onWalletConnected(e.payload);break;case"connect_error":this.onWalletConnectError(e.payload);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(e){const t=e.items.find((e=>"ton_addr"===e.name)),n=e.items.find((e=>"ton_proof"===e.name));if(!t)throw new ce("ton_addr connection item was not found");const r={device:e.device,provider:this.provider.type,account:{address:t.address,chain:t.network,walletStateInit:t.walletStateInit,publicKey:t.publicKey}};n&&(r.connectItems={tonProof:n}),this.wallet=r,this.tracker.trackConnectionCompleted(r)}onWalletConnectError(e){const t=Se.parseError(e);if(this.statusChangeErrorSubscriptions.forEach((e=>e(t))),Ie(t),this.tracker.trackConnectionError(e.message,e.code),t instanceof fe||t instanceof de)throw je(t),t}onWalletDisconnected(e){this.tracker.trackDisconnection(this.wallet,e),this.wallet=null}checkConnection(){if(!this.connected)throw new pe}createConnectRequest(e){const t=[{name:"ton_addr"}];return(null===e||void 0===e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}bt.walletsList=new et,bt.isWalletInjected=e=>Ge.isWalletInjected(e),bt.isInsideWalletBrowser=e=>Ge.isInsideWalletBrowser(e);function wt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wc:n,hex:r}=function(e){if(!e.includes(":"))throw new we(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new we(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new we(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if(64!==(null===r||void 0===r?void 0:r.length))throw new we(`Wrong address ${e}. Hex part must be 64bytes length, but ${null===r||void 0===r?void 0:r.length} received.`);return{wc:n,hex:Ct(r)}}(e);let o=81;t&&(o|=128);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const a=new Uint8Array(36);return a.set(i),a.set(function(e){const t=4129;let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let e=128;for(;e>0;)n<<=1,o&e&&(n+=1),e>>=1,n>65535&&(n&=65535,n^=t)}return new Uint8Array([Math.floor(n/256),n%256])}(i),34),oe.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}const xt={};for(let n=0;n<=255;n++){let e=n.toString(16);e.length<2&&(e="0"+e),xt[e]=n}function Ct(e){const t=(e=e.toLowerCase()).length;if(t%2!==0)throw new xe("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;o<n;o++){const t=2*o,n=e.substring(t,t+2);if(!xt.hasOwnProperty(n))throw new xe("Invalid hex character: "+n);r[o]=xt[n]}return r}var kt,St,Et,_t,At,Tt,Rt,Ot,Pt=n(2414),Lt=n(8738),Mt=Object.defineProperty,Nt=Object.defineProperties,It=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Ut=(e,t,n)=>t in e?Mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t)=>{for(var n in t||(t={}))$t.call(t,n)&&Ut(e,n,t[n]);if(jt)for(var n of jt(t))Dt.call(t,n)&&Ut(e,n,t[n]);return e},zt=(e,t)=>Nt(e,It(t)),Bt=(e,t,n)=>(Ut(e,"symbol"!==typeof t?t+"":t,n),n),Ft=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const Ht={};const Vt=Symbol("solid-proxy"),Kt=Symbol("solid-track"),qt={equals:(e,t)=>e===t};let Gt=An;const Qt=1,Zt=2,Yt={owned:null,cleanups:null,context:null,owner:null},Xt={};var Jt=null;let en=null,tn=null,nn=null,rn=null,on=0;function an(e,t){const n=tn,r=Jt,o=0===e.length,i=o?Yt:{owned:null,cleanups:null,context:null,owner:void 0===t?r:t},a=o?e:()=>e((()=>pn((()=>Pn(i)))));Jt=i,tn=null;try{return _n(a,!0)}finally{tn=n,Jt=r}}function sn(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},qt,t):qt).equals||void 0};return[xn.bind(n),e=>("function"===typeof e&&(e=e(n.value)),Cn(n,e))]}function ln(e,t,n){kn(Sn(e,t,!0,Qt))}function cn(e,t,n){kn(Sn(e,t,!1,Qt))}function un(e,t,n){Gt=Tn;const r=Sn(e,t,!1,Qt);r.user=!0,rn?rn.push(r):kn(r)}function dn(e,t,n){n=n?Object.assign({},qt,n):qt;const r=Sn(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,kn(r),xn.bind(r)}function fn(e,t,n){let r,o,i;2===arguments.length&&"object"===typeof t||1===arguments.length?(r=!0,o=e,i=t||{}):(r=e,o=t,i=n||{});let a=null,s=Xt,l=null,c=!1,u="initialValue"in i,d="function"===typeof r&&dn(r);const f=new Set,[h,p]=(i.storage||sn)(i.initialValue),[g,m]=sn(void 0),[v,y]=sn(void 0,{equals:!1}),[b,w]=sn(u?"ready":"unresolved");if(Ht.context){let e;l=`${Ht.context.id}${Ht.context.count++}`,"initial"===i.ssrLoadFrom?s=i.initialValue:Ht.load&&(e=Ht.load(l))&&(s=e[0])}function x(e,t,n,r){return a===e&&(a=null,u=!0,e!==s&&t!==s||!i.onHydrated||queueMicrotask((()=>i.onHydrated(r,{value:t}))),s=Xt,function(e,t){_n((()=>{void 0===t&&p((()=>e)),w(void 0!==t?"errored":"ready"),m(t);for(const e of f.keys())e.decrement();f.clear()}),!1)}(t,n)),t}function C(){const e=undefined,t=h(),n=g();if(void 0!==n&&!a)throw n;return tn&&!tn.user&&e&&ln((()=>{v(),a&&(e.resolved||f.has(e)||(e.increment(),f.add(e)))})),t}function k(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!1!==e&&c)return;c=!1;const t=d?d():r;if(null==t||!1===t)return void x(a,pn(h));const n=s!==Xt?s:pn((()=>o(t,{value:h(),refetching:e})));return"object"===typeof n&&n&&"then"in n?(a=n,c=!0,queueMicrotask((()=>c=!1)),_n((()=>{w(u?"refreshing":"pending"),y()}),!1),n.then((e=>x(n,e,void 0,t)),(e=>x(n,void 0,Ln(e),t)))):(x(a,n,void 0,t),n)}return Object.defineProperties(C,{state:{get:()=>b()},error:{get:()=>g()},loading:{get(){const e=b();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return C();const e=g();if(e&&!a)throw e;return h()}}}),d?ln((()=>k(!1))):k(!1),[C,{refetch:k,mutate:p}]}function hn(e){return _n(e,!1)}function pn(e){if(null===tn)return e();const t=tn;tn=null;try{return e()}finally{tn=t}}function gn(e){un((()=>pn(e)))}function mn(e){return null===Jt||(null===Jt.cleanups?Jt.cleanups=[e]:Jt.cleanups.push(e)),e}function vn(){return tn}function yn(e,t){const n=Symbol("context");return{id:n,Provider:jn(n),defaultValue:e}}function bn(e){let t;return void 0!==(t=Nn(Jt,e.id))?t:e.defaultValue}function wn(e){const t=dn(e),n=dn((()=>In(t())));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function xn(){const e=en;if(this.sources&&(this.state||e))if(this.state===Qt||e)kn(this);else{const e=nn;nn=null,_n((()=>Rn(this)),!1),nn=e}if(tn){const e=this.observers?this.observers.length:0;tn.sources?(tn.sources.push(this),tn.sourceSlots.push(e)):(tn.sources=[this],tn.sourceSlots=[e]),this.observers?(this.observers.push(tn),this.observerSlots.push(tn.sources.length-1)):(this.observers=[tn],this.observerSlots=[tn.sources.length-1])}return this.value}function Cn(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&_n((()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=en&&en.running;r&&en.disposed.has(n),(r&&!n.tState||!r&&!n.state)&&(n.pure?nn.push(n):rn.push(n),n.observers&&On(n)),r||(n.state=Qt)}if(nn.length>1e6)throw nn=[],new Error}),!1)),t}function kn(e){if(!e.fn)return;Pn(e);const t=Jt,n=tn,r=on;tn=Jt=e,function(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=Qt,e.owned&&e.owned.forEach(Pn),e.owned=null),Mn(o)}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?Cn(e,r):e.value=r,e.updatedAt=n)}(e,e.value,r),tn=n,Jt=t}function Sn(e,t,n){const r={fn:e,state:arguments.length>3&&void 0!==arguments[3]?arguments[3]:Qt,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Jt,context:null,pure:n};return null===Jt||Jt!==Yt&&(Jt.owned?Jt.owned.push(r):Jt.owned=[r]),r}function En(e){const t=en;if(0===e.state||t)return;if(e.state===Zt||t)return Rn(e);if(e.suspense&&pn(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<on);)(e.state||t)&&n.push(e);for(let r=n.length-1;r>=0;r--)if((e=n[r]).state===Qt||t)kn(e);else if(e.state===Zt||t){const t=nn;nn=null,_n((()=>Rn(e,n[0])),!1),nn=t}}function _n(e,t){if(nn)return e();let n=!1;t||(nn=[]),rn?n=!0:rn=[],on++;try{const t=e();return function(e){nn&&(An(nn),nn=null);if(e)return;const t=rn;rn=null,t.length&&_n((()=>Gt(t)),!1)}(n),t}catch(r){n||(rn=null),nn=null,Mn(r)}}function An(e){for(let t=0;t<e.length;t++)En(e[t])}function Tn(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:En(r)}var r;for(Ht.context&&(Ht.context=r),t=0;t<n;t++)En(e[t])}function Rn(e,t){const n=en;e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];o.sources&&(o.state===Qt||n?o!==t&&En(o):(o.state===Zt||n)&&Rn(o,t))}}function On(e){const t=en;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];r.state&&!t||(r.state=Zt,r.pure?nn.push(r):rn.push(r),r.observers&&On(r))}}function Pn(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.owned){for(t=0;t<e.owned.length;t++)Pn(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function Ln(e){return e instanceof Error||"string"===typeof e?e:new Error("Unknown error")}function Mn(e){throw e=Ln(e)}function Nn(e,t){return e?e.context&&void 0!==e.context[t]?e.context[t]:Nn(e.owner,t):void 0}function In(e){if("function"===typeof e&&!e.length)return In(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=In(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function jn(e,t){return function(t){let n;return cn((()=>n=pn((()=>(Jt.context={[e]:t.value},wn((()=>t.children)))))),void 0),n}}const $n=Symbol("fallback");function Dn(e){for(let t=0;t<e.length;t++)e[t]()}function Un(e,t){return pn((()=>e(t||{})))}function Wn(){return!0}const zn={get:(e,t,n)=>t===Vt?n:e.get(t),has:(e,t)=>t===Vt||e.has(t),set:Wn,deleteProperty:Wn,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:Wn,deleteProperty:Wn}),ownKeys:e=>e.keys()};function Bn(e){return(e="function"===typeof e?e():e)?e:{}}function Fn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=!1;for(let i=0;i<t.length;i++){const e=t[i];r=r||!!e&&Vt in e,t[i]="function"===typeof e?(r=!0,dn(e)):e}if(r)return new Proxy({get(e){for(let n=t.length-1;n>=0;n--){const r=Bn(t[n])[e];if(void 0!==r)return r}},has(e){for(let n=t.length-1;n>=0;n--)if(e in Bn(t[n]))return!0;return!1},keys(){const e=[];for(let n=0;n<t.length;n++)e.push(...Object.keys(Bn(t[n])));return[...new Set(e)]}},zn);const o={};for(let i=t.length-1;i>=0;i--)if(t[i]){const e=Object.getOwnPropertyDescriptors(t[i]);for(const n in e)n in o||Object.defineProperty(o,n,{enumerable:!0,get(){for(let e=t.length-1;e>=0;e--){const r=(t[e]||{})[n];if(void 0!==r)return r}}})}return o}function Hn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=new Set(n.flat());if(Vt in e){const t=n.map((t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter((t=>t in e))},zn)));return t.push(new Proxy({get:t=>o.has(t)?void 0:e[t],has:t=>!o.has(t)&&t in e,keys:()=>Object.keys(e).filter((e=>!o.has(e)))},zn)),t}const i=Object.getOwnPropertyDescriptors(e);return n.push(Object.keys(i).filter((e=>!o.has(e)))),n.map((t=>{const n={};for(let r=0;r<t.length;r++){const o=t[r];o in e&&Object.defineProperty(n,o,i[o]?i[o]:{get:()=>e[o],set:()=>!0,enumerable:!0})}return n}))}function Vn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return dn(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return mn((()=>Dn(i))),()=>{let l,c,u=e()||[];return u[Kt],pn((()=>{let e,t,f,h,p,g,m,v,y,b=u.length;if(0===b)0!==a&&(Dn(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[$n],o[0]=an((e=>(i[0]=e,n.fallback()))),a=1);else if(0===a){for(o=new Array(b),c=0;c<b;c++)r[c]=u[c],o[c]=an(d);a=b}else{for(f=new Array(b),h=new Array(b),s&&(p=new Array(b)),g=0,m=Math.min(a,b);g<m&&r[g]===u[g];g++);for(m=a-1,v=b-1;m>=g&&v>=g&&r[m]===u[v];m--,v--)f[v]=o[m],h[v]=i[m],s&&(p[v]=s[m]);for(e=new Map,t=new Array(v+1),c=v;c>=g;c--)y=u[c],l=e.get(y),t[c]=void 0===l?-1:l,e.set(y,c);for(l=g;l<=m;l++)y=r[l],c=e.get(y),void 0!==c&&-1!==c?(f[c]=o[l],h[c]=i[l],s&&(p[c]=s[l]),c=t[c],e.set(y,c)):i[l]();for(c=g;c<b;c++)c in f?(o[c]=f[c],i[c]=h[c],s&&(s[c]=p[c],s[c](c))):o[c]=an(d);o=o.slice(0,a=b),r=u.slice(0)}return o}));function d(e){if(i[c]=e,s){const[e,n]=sn(c);return s[c]=n,t(u[c],e)}return t(u[c])}}}((()=>e.each),e.children,t||void 0))}function Kn(e){let t=!1;const n=e.keyed,r=dn((()=>e.when),void 0,{equals:(e,n)=>t?e===n:!e===!n});return dn((()=>{const o=r();if(o){const r=e.children,i="function"===typeof r&&r.length>0;return t=n||i,i?pn((()=>r(o))):r}return e.fallback}),void 0,void 0)}function qn(e){let t=!1,n=!1;const r=wn((()=>e.children)),o=dn((()=>{let e=r();Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const r=e[t].when;if(r)return n=!!e[t].keyed,[t,r,e[t]]}return[-1]}),void 0,{equals:(e,n)=>e[0]===n[0]&&(t?e[1]===n[1]:!e[1]===!n[1])&&e[2]===n[2]});return dn((()=>{const[r,i,a]=o();if(r<0)return e.fallback;const s=a.children,l="function"===typeof s&&s.length>0;return t=n||l,l?pn((()=>s(i))):s}),void 0,void 0)}function Gn(e){return e}const Qn=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Zn=new Set(["innerHTML","textContent","innerText","children"]),Yn=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Xn=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Jn=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),er=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),tr={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const nr="_$DX_DELEGATE";function rr(e,t,n){if("undefined"===typeof window)return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function or(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function ir(e,t){null==t?e.removeAttribute("class"):e.className=t}function ar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};return(arguments.length>3?arguments[3]:void 0)||cn((()=>r.children=hr(e,t.children,r.children))),cn((()=>t.ref&&t.ref(e))),cn((()=>function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];t||(t={});for(const a in o)if(!(a in t)){if("children"===a)continue;o[a]=dr(e,a,null,o[a],n,i)}for(const a in t){if("children"===a){r||hr(e,t.children);continue}const s=t[a];o[a]=dr(e,a,s,o[a],n,i)}}(e,t,n,!0,r,!0))),r}function sr(e,t,n){return pn((()=>e(t,n)))}function lr(e,t,n,r){if(void 0===n||r||(r=[]),"function"!==typeof t)return hr(e,t,r,n);cn((r=>hr(e,t(),r,n)),r)}function cr(e){let t,n;return Ht.context&&(t=Ht.registry.get(n=function(){const e=Ht.context;return`${e.id}${e.count++}`}()))?(Ht.completed&&Ht.completed.add(t),Ht.registry.delete(n),t):e.cloneNode(!0)}function ur(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function dr(e,t,n,r,o,i){let a,s,l;if("style"===t)return function(e,t,n){if(!t)return n?or(e,"style"):t;const r=e.style;if("string"===typeof t)return r.cssText=t;let o,i;for(i in"string"===typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[i]&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}(e,n,r);if("classList"===t)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;i<a;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(ur(e,r,!1),delete n[r])}for(i=0,a=r.length;i<a;i++){const o=r[i],a=!!t[o];o&&"undefined"!==o&&n[o]!==a&&a&&(ur(e,o,!0),n[o]=a)}return n}(e,n,r);if(n===r)return r;if("ref"===t)i||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r),n&&e.addEventListener(o,n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),i=Jn.has(o);if(!i&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(i||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n)}(e,o,n,i),i&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document;const n=t[nr]||(t[nr]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,fr))}}([o]))}else if((l=Zn.has(t))||!o&&(Xn[t]||(s=Qn.has(t)))||(a=e.nodeName.includes("-")))"class"===t||"className"===t?ir(e,n):!a||s||l?e[Xn[t]||t]=n:e[(c=t,c.toLowerCase().replace(/-([a-z])/g,((e,t)=>t.toUpperCase())))]=n;else{const r=o&&t.indexOf(":")>-1&&tr[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):or(e,Yn[t]||t,n)}var c;return n}function fr(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>n||document}),Ht.registry&&!Ht.done&&(Ht.done=!0,document.querySelectorAll("[id^=pl-]").forEach((t=>{for(;t&&8!==t.nodeType&&t.nodeValue!=="pl-"+e;){let e=t.nextSibling;t.remove(),t=e}t&&t.remove()})));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(void 0!==o?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function hr(e,t,n,r,o){for(Ht.context&&!n&&(n=[...e.childNodes]);"function"===typeof n;)n=n();if(t===n)return n;const i=typeof t,a=void 0!==r;if(e=a&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(Ht.context)return n;if("number"===i&&(t=t.toString()),a){let o=n[0];o&&3===o.nodeType?o.data=t:o=document.createTextNode(t),n=mr(e,n,r,o)}else n=""!==n&&"string"===typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(Ht.context)return n;n=mr(e,n,r)}else{if("function"===i)return cn((()=>{let o=t();for(;"function"===typeof o;)o=o();n=hr(e,o,n,r)})),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(pr(i,t,n,o))return cn((()=>n=hr(e,i,n,r,!0))),()=>n;if(Ht.context){if(!i.length)return n;for(let e=0;e<i.length;e++)if(i[e].parentNode)return n=i}if(0===i.length){if(n=mr(e,n,r),a)return n}else s?0===n.length?gr(e,i,r):function(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,c=null;for(;a<o||s<i;)if(t[a]!==n[s]){for(;t[o-1]===n[i-1];)o--,i--;if(o===a){const t=i<r?s?n[s-1].nextSibling:n[i-s]:l;for(;s<i;)e.insertBefore(n[s++],t)}else if(i===s)for(;a<o;)c&&c.has(t[a])||t[a].remove(),a++;else if(t[a]===n[i-1]&&n[s]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!c){c=new Map;let e=s;for(;e<i;)c.set(n[e],e++)}const r=c.get(t[a]);if(null!=r)if(s<r&&r<i){let l,u=a,d=1;for(;++u<o&&u<i&&null!=(l=c.get(t[u]))&&l===r+d;)d++;if(d>r-s){const o=t[a];for(;s<r;)e.insertBefore(n[s++],o)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}else a++,s++}(e,n,i):(n&&mr(e),gr(e,i));n=i}else if(t instanceof Node){if(Ht.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=mr(e,n,r,t);mr(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function pr(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a=t[i],s=n&&n[i];if(a instanceof Node)e.push(a);else if(null==a||!0===a||!1===a);else if(Array.isArray(a))o=pr(e,a,s)||o;else if("function"===typeof a)if(r){for(;"function"===typeof a;)a=a();o=pr(e,Array.isArray(a)?a:[a],Array.isArray(s)?s:[s])||o}else e.push(a),o=!0;else{const t=String(a);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function gr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function mr(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const t=a.parentNode===e;r||i?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}const vr="http://www.w3.org/2000/svg";function yr(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?document.createElementNS(vr,e):document.createElement(e)}function br(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(Ht.context){const[t,n]=sn(!1);return queueMicrotask((()=>n(!0))),()=>t()&&e.children}return()=>e.children}if(r instanceof HTMLHeadElement){const[e,t]=sn(!1),n=()=>t(!0);an((t=>lr(r,(()=>e()?t():o()()),null))),mn((()=>{Ht.context?queueMicrotask(n):n()}))}else{const i=yr(e.isSVG?"g":"div",e.isSVG),a=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get:()=>n.parentNode,configurable:!0}),lr(a,o()),r.appendChild(i),e.ref&&e.ref(i),mn((()=>r.removeChild(i)))}return n}function wr(e){const[t,n]=Hn(e,["component"]),r=dn((()=>t.component));return dn((()=>{const e=r();switch(typeof e){case"function":return pn((()=>e(n)));case"string":const t=er.has(e),r=Ht.context?cr():yr(e,t);return ar(r,n,t),r}}))}var xr=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(xr||{});let Cr={data:""},kr=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Cr,Sr=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Er=/\/\*[^]*?\*\/| +/g,_r=/\n+/g,Ar=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?Ar(a,i):i+"{"+Ar(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=Ar(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Ar.p?Ar.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Tr={},Rr=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Rr(e[n]);return t}return e},Or=(e,t,n,r,o)=>{let i=Rr(e),a=Tr[i]||(Tr[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!Tr[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=Sr.exec(e.replace(Er,""));)t[4]?r.shift():t[3]?(n=t[3].replace(_r," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(_r," ").trim();return r[0]})(e);Tr[a]=Ar(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&Tr.g?Tr.g:null;return n&&(Tr.g=Tr[a]),l=Tr[a],c=t,u=r,(d=s)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),a;var l,c,u,d},Pr=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":Ar(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function Lr(e){let t=this||{},n=e.call?e(t.p):e;return Or(n.unshift?n.raw?Pr(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,kr(t.target),t.g,t.o,t.k)}Lr.bind({g:1});let Mr=Lr.bind({k:1});const Nr=yn();function Ir(e){return Un(Nr.Provider,{value:e.theme,get children(){return e.children}})}function jr(){return bn(Nr)}function $r(e){let t=this||{};return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const i=n=>{const o=Fn(n,{theme:bn(Nr)}),i=Fn(o,{get class(){const e=o.class,n="class"in o&&/^go[0-9]+/.test(e);return[e,Lr.apply({target:t.target,o:n,p:o,g:t.g},r)].filter(Boolean).join(" ")}}),[a,s]=Hn(i,["as","theme"]),l=s,c=a.as||e;let u;return"function"===typeof c?u=c(l):1==t.g?(u=document.createElement(c),ar(u,l)):u=wr(Fn({component:c},l)),u};return i.class=e=>pn((()=>Lr.apply({target:t.target,p:e,g:t.g},r))),i}}const Dr=new Proxy($r,{get:(e,t)=>e(t)});function Ur(){const e=$r.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const Wr="tc-root",zr="tc-disable-scroll",Br="tc-using-mouse",Fr=()=>{document.body.addEventListener("mousedown",(()=>document.body.classList.add(Br))),document.body.addEventListener("keydown",(e=>{"Tab"===e.key&&document.body.classList.remove(Br)}));return Un(Ur`
|
|
3
|
+
${Wr} * {
|
|
4
4
|
margin: 0;
|
|
5
5
|
padding: 0;
|
|
6
6
|
box-sizing: border-box;
|
|
@@ -11,48 +11,48 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
11
11
|
-webkit-tap-highlight-color: transparent;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
${
|
|
14
|
+
${Wr} img {
|
|
15
15
|
-webkit-user-select: none;
|
|
16
16
|
-webkit-touch-callout: none;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
${
|
|
19
|
+
${Wr} *:focus {
|
|
20
20
|
outline: #08f auto 2px;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
${
|
|
23
|
+
${Wr} li {
|
|
24
24
|
list-style: none;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
${
|
|
27
|
+
${Wr} button {
|
|
28
28
|
outline: none;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
body.${
|
|
31
|
+
body.${zr} {
|
|
32
32
|
position: fixed;
|
|
33
33
|
overflow-y: scroll;
|
|
34
34
|
right: 0;
|
|
35
35
|
left: 0;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
body.${
|
|
38
|
+
body.${Br} ${Wr} *:focus {
|
|
39
39
|
outline: none;
|
|
40
40
|
}
|
|
41
|
-
`,{})};function Br(e,t){return"#"===e[0]&&(e=function(e){"#"===e[0]&&(e=e.slice(1));const t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t].join(",")}(e)),`rgba(${e}, ${t})`}function Fr(e){return e.toString()+"px"}const Hr=class{constructor(){Wt(this,"storage",{})}static getInstance(){return Hr.instance||(Hr.instance=new Hr),Hr.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!=(t=this.storage[e])?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!=(t=n[e])?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};let Vr=Hr;Wt(Vr,"instance");class Kr extends se{constructor(){super(...arguments),Object.setPrototypeOf(this,Kr.prototype)}}function qr(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug("[TON_CONNECT_UI]",...t)}catch(r){}}function Gr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_self";qr("openLink",e,t),window.open(e,t,"noopener noreferrer")}function Qr(e){Gr(e,"_blank")}function Zr(e,t){const n=setTimeout((()=>{ro("safari")||no("android")&&ro("firefox")||t()}),200);window.addEventListener("blur",(()=>clearTimeout(n)),{once:!0}),Gr(e,"_self")}function Yr(e){return zt(this,null,(function*(){yield new Promise((e=>requestAnimationFrame(e))),e()}))}function Xr(e){"complete"!==document.readyState?window.addEventListener("load",(()=>Yr((()=>Xr(e)))),{once:!0}):e.forEach((e=>{(new window.Image).src=e}))}function Jr(){if("undefined"!==typeof window)return window}function eo(){if(function(){try{return"undefined"!==typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!==typeof process&&null!=process.versions&&null!=process.versions.node)throw new Kr("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return Vr.getInstance()}function to(){var e,t,n;const r=(new W).getResult(),o=null==(e=r.os.name)?void 0:e.toLowerCase();let i;switch(!0){case"ipad"===(null==(t=r.device.model)?void 0:t.toLowerCase()):i="ipad";break;case"ios"===o:i="ios";break;case"android"===o:i="android";break;case"mac os"===o:i="macos";break;case"linux"===o:i="linux";break;case null==o?void 0:o.includes("windows"):i="windows"}const a=null==(n=r.browser.name)?void 0:n.toLowerCase();let s;switch(!0){case"chrome"===a:s="chrome";break;case"firefox"===a:s="firefox";break;case null==a?void 0:a.includes("safari"):s="safari";break;case null==a?void 0:a.includes("opera"):s="opera"}return{os:i,browser:s}}function no(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(to().os)}function ro(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(to().browser)}function oo(e,t){return t+new URL(e).search}class io{constructor(){Wt(this,"localStorage"),Wt(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=eo()}setWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class ao{constructor(){Wt(this,"localStorage"),Wt(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=eo()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class so{constructor(){Wt(this,"localStorage"),Wt(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=eo()}setLastSelectedWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getLastSelectedWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeLastSelectedWalletInfo(){this.localStorage.removeItem(this.storageKey)}}const[lo,co]=on({status:"closed",closeReason:null}),uo=cn((()=>"opened"===lo().status)),[fo,ho]=on({status:"closed",closeReason:null}),po=cn((()=>"opened"===fo().status)),go=cn((()=>{const e=fo();return"opened"===e.status?e.walletInfo:null}));let mo="undefined"!==typeof window?new so:void 0;const[vo,yo]=on((null==mo?void 0:mo.getLastSelectedWalletInfo())||null),bo=e=>{mo||(mo=new so),e?mo.setLastSelectedWalletInfo(e):mo.removeLastSelectedWalletInfo(),yo(e)},[wo,xo]=on(null),Co={common:{close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",openWallet:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a",copyLink:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",linkCopied:"\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430",copied:"\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430",yourWallet:"\u0412\u0430\u0448 \u043a\u043e\u0448\u0435\u043b\u0451\u043a",retry:"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c",get:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c",mobile:"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439",browserExtension:"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435",desktop:"\u0414\u0435\u0441\u043a\u0442\u043e\u043f"},button:{connectWallet:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a",dropdown:{copy:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441",copied:"\u0410\u0434\u0440\u0435\u0441 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d!",disconnect:"\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a"}},notifications:{confirm:{header:"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 {{ name }}, \u0447\u0442\u043e\u0431\u044b\xa0\u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e."},transactionSent:{header:"\u0422\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430",text:"\u0412\u0430\u0448\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f\xa0\u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u0447\u0435\u0440\u0435\u0437\xa0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434."},transactionCanceled:{header:"\u0422\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u0430",text:"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0447\u0451\u0442\u0430 \u043d\u0435\xa0\u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f."}},walletItem:{walletOn:"Wallet \u0432",recent:"\u041d\u0435\u0434\u0430\u0432\u043d\u0438\u0439",installed:"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d",popular:"\u041f\u043e\u043f\u0443\u043b\u044f\u0440\u0435\u043d"},walletModal:{loading:"\u041a\u043e\u0448\u0435\u043b\u044c\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f",wallets:"\u041a\u043e\u0448\u0435\u043b\u044c\u043a\u0438",mobileUniversalModal:{connectYourWallet:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a",openWalletOnTelegramOrSelect:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 Wallet \u0432\xa0Telegram \u0438\u043b\u0438\xa0\u0432\u044b\u0431\u0435\u0440\u0435\u0442\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a \u0434\u043b\u044f\xa0\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f",openWalletOnTelegram:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c Wallet \u0432 Telegram",openLink:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",scan:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\u0430\u0448\u0435\u0433\u043e\xa0\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430"},desktopUniversalModal:{connectYourWallet:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a",scan:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\u0430\u0448\u0435\u0433\u043e\xa0\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",availableWallets:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0438"},mobileConnectionModal:{showQR:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c QR-\u043a\u043e\u0434",scanQR:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u043d\u0438\u0436\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\xa0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 {{ name }}, \u0438\u043b\u0438\xa0\u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",continueIn:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435 \u0432 {{ name }}\u2026",connectionDeclined:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e"},desktopConnectionModal:{scanQR:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u043d\u0438\u0436\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\xa0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 {{ name }}, \u0438\u043b\u0438\xa0\u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",continueInExtension:"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 {{ name }}",dontHaveExtension:"\u041f\u043e\u0445\u043e\u0436\u0435, \u0443 \u0432\u0430\u0441 \u043d\u0435\xa0\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435\xa0\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\xa0{{ name }}",getWallet:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c {{ name }}",continueOnDesktop:"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 {{ name }} \u043d\u0430\xa0\u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435\u2026",openWalletOnTelegram:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c Wallet \u0432\xa0Telegram",connectionDeclined:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e"},infoModal:{whatIsAWallet:"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a?",secureDigitalAssets:"\u041d\u0430\u0434\u0435\u0436\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0445 \u0430\u043a\u0442\u0438\u0432\u043e\u0432",walletProtects:"\u041a\u043e\u0448\u0435\u043b\u0451\u043a \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u0432\u0430\u0448\u0438 \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0435 \u0430\u043a\u0442\u0438\u0432\u044b, \u0432\u043a\u043b\u044e\u0447\u0430\u044f TON, \u0442\u043e\u043a\u0435\u043d\u044b \u0438\xa0\u043f\u0440\u0435\u0434\u043c\u0435\u0442\u044b \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0438\xa0\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u043c\u0438.",controlIdentity:"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0441\u0432\u043e\u0435\u0439 \u043b\u0438\u0447\u043d\u043e\u0441\u0442\u0438 Web3",manageIdentity:"\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0441\u0432\u043e\u0435\u0439 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u0438\xa0\u0441\xa0\u043b\u0435\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u043b\u0443\u0447\u0430\u0439\u0442\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\xa0\u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0439\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434\xa0\u0441\u0432\u043e\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\xa0\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435 \u0432\xa0\u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435\xa0\u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0430.",effortlessCryptoTransactions:"\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u043a\u0440\u0438\u043f\u0442\u043e\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438",easilySend:"\u041b\u0435\u0433\u043a\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0439\u0442\u0435 \u0438\xa0\u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0441\u0432\u043e\u0438 \u043a\u0440\u0438\u043f\u0442\u043e\u0432\u0430\u043b\u044e\u0442\u044b. \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0432\u043e\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\xa0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.",getAWallet:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a"}},actionModal:{confirmTransaction:{header:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432\xa0{{ name }}",text:"\u042d\u0442\u043e \u0437\u0430\u0439\u043c\u0435\u0442 \u043f\u0430\u0440\u0443 \u0441\u0435\u043a\u0443\u043d\u0434."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}},ko={en:So({common:{close:"Close",openWallet:"Open wallet",copyLink:"Copy Link",linkCopied:"Link Copied",copied:"Copied",yourWallet:"Your Wallet",retry:"Retry",get:"GET",mobile:"Mobile",browserExtension:"Browser Extension",desktop:"Desktop"},button:{connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},notifications:{confirm:{header:"Open {{ name }} to\xa0confirm the\xa0transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction\xa0will be\xa0processed in\xa0a\xa0few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to\xa0your account."}},walletItem:{walletOn:"Wallet On",recent:"Recent",installed:"Installed",popular:"Popular"},walletModal:{loading:"Loading wallets",wallets:"Wallets",mobileUniversalModal:{connectYourWallet:"Connect your wallet",openWalletOnTelegramOrSelect:"Open Wallet in Telegram or select your wallet to connect",openWalletOnTelegram:"Open Wallet in Telegram",openLink:"Open Link",scan:"Scan with your mobile wallet"},desktopUniversalModal:{connectYourWallet:"Connect your wallet",scan:"Scan with your mobile wallet",availableWallets:"Available wallets"},mobileConnectionModal:{showQR:"Show QR Code",scanQR:"Scan the\xa0QR code below with your phone\u2019s\xa0or\xa0{{ name }}\u2019s camera",continueIn:"Continue in {{ name }}\u2026",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the\xa0QR code below with your phone\u2019s\xa0or\xa0{{ name }}\u2019s camera",continueInExtension:"Continue in\xa0{{ name }} browser extension\u2026",dontHaveExtension:"Seems you don't have installed {{ name }}\xa0browser\xa0extension",getWallet:"Get {{ name }}",continueOnDesktop:"Continue in\xa0{{ name }} on desktop\u2026",openWalletOnTelegram:"Open Wallet in Telegram on desktop",connectionDeclined:"Connection declined"},infoModal:{whatIsAWallet:"What is a wallet",secureDigitalAssets:"Secure digital assets storage",walletProtects:"A wallet protects and manages your digital assets\xa0including TON, tokens and collectables.",controlIdentity:"Control your Web3 identity",manageIdentity:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in\xa0the\xa0blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies.\xa0Streamline your operations with\xa0decentralized applications.",getAWallet:"Get a Wallet"}},actionModal:{confirmTransaction:{header:"Confirm the\xa0transaction in\xa0{{ name }}",text:"It will only take a\xa0moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}}),ru:So(Co)};function So(e){const t=n=>{Object.entries(n).forEach((r=>{let[o,i]=r;if("object"===typeof i&&i)return t(i);if("string"===typeof i){if("$"===i[0]){const t=i.slice(1).split(".");let r=e;t.forEach((e=>{if(!(e in r))throw new Error(`Cannot parse translations: there is no property ${e} in translation`);r=r[e]})),n[o]=r}"\\$"===i.slice(0,2)&&(n[o]=i.slice(1))}}))};return t(e),e}const Eo=mn(),_o=Symbol("store-raw"),Ao=Symbol("store-node"),To=Symbol("store-name");function Ro(e,t){let n=e[Ft];if(!n&&(Object.defineProperty(e,Ft,{value:n=new Proxy(e,jo)}),!Array.isArray(e))){const t=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,i=t.length;o<i;o++){const i=t[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(n)})}}return n}function Oo(e){let t;return null!=e&&"object"===typeof e&&(e[Ft]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Po(e){let t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t=null!=e&&e[_o])return t;if(!Oo(e)||i.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):i.add(e);for(let t=0,o=e.length;t<o;t++)r=e[t],(n=Po(r,i))!==r&&(e[t]=n)}else{Object.isFrozen(e)?e=Object.assign({},e):i.add(e);const t=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let s=0,l=t.length;s<l;s++)o=t[s],a[o].get||(r=e[o],(n=Po(r,i))!==r&&(e[o]=n))}return e}function Lo(e){let t=e[Ao];return t||Object.defineProperty(e,Ao,{value:t={}}),t}function Mo(e,t,n){return e[t]||(e[t]=Io(n))}function No(e){if(gn()){const t=Lo(e);(t._||(t._=Io()))()}}function Io(e){const[t,n]=on(e,{equals:!1,internal:!0});return t.$=n,t}const jo={get(e,t,n){if(t===_o)return e;if(t===Ft)return n;if(t===Ht)return No(e),n;const r=Lo(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===Ao||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!gn()||"function"===typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=Mo(r,t,i)())}return Oo(i)?Ro(i):i},has(e,t){return t===_o||t===Ft||t===Ht||t===Ao||"__proto__"===t||(this.get(e,t,e),t in e)},set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return No(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==Ft&&t!==Ao&&t!==To?(delete n.value,delete n.writable,n.get=()=>e[Ft][t],n):n}};function $o(e,t,n){if(!(arguments.length>3&&void 0!==arguments[3]&&arguments[3])&&e[t]===n)return;const r=e[t],o=e.length;void 0===n?delete e[t]:e[t]=n;let i,a=Lo(e);(i=Mo(a,t,r))&&i.$((()=>n)),Array.isArray(e)&&e.length!==o&&(i=Mo(a,"length",o))&&i.$(e.length),(i=a._)&&i.$()}function Do(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];$o(e,o,t[o])}}function Uo(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=e;if(t.length>1){n=t.shift();const i=typeof n,a=Array.isArray(e);if(Array.isArray(n)){for(let o=0;o<n.length;o++)Uo(e,[n[o]].concat(t),r);return}if(a&&"function"===i){for(let o=0;o<e.length;o++)n(e[o],o)&&Uo(e,[o].concat(t),r);return}if(a&&"object"===i){const{from:o=0,to:i=e.length-1,by:a=1}=n;for(let n=o;n<=i;n+=a)Uo(e,[n].concat(t),r);return}if(t.length>1)return void Uo(e[n],t,[n].concat(r));o=e[n],r=[n].concat(r)}let i=t[0];"function"===typeof i&&(i=i(o,r),i===o)||void 0===n&&void 0==i||(i=Po(i),void 0===n||Oo(o)&&Oo(i)&&!Array.isArray(i)?Do(o,i):$o(e,n,i))}function Wo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t;const i=Po(r||{}),a=Array.isArray(i);return[Ro(i),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];dn((()=>{a&&1===t.length?function(e,t){if("function"===typeof t&&(t=t(e)),t=Po(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const r=t[n];e[n]!==r&&$o(e,n,r)}$o(e,"length",r)}else Do(e,t)}(i,t[0]):Uo(i,t)}))}]}const zo={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}};function Bo(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fo(e){var t,n;return!1!==Bo(e)&&(void 0===(t=e.constructor)||!1!==Bo(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Ho(e,t){if(!e)return t;return Rt(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:Fo})}const[Vo,Ko]=Wo({theme:br.LIGHT,colors:zo,borderRadius:"m"}),qo={[br.LIGHT]:zo,[br.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#FFFFFF"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},Go={[br.LIGHT]:void 0,[br.DARK]:void 0};function Qo(e,t){t&&(Go[br.DARK]=Ho(t[br.DARK],Go[br.DARK]),Go[br.LIGHT]=Ho(t[br.LIGHT],Go[br.LIGHT])),Ko({theme:e,colors:Ho(Go[e],qo[e])})}const Zo=jr.div`
|
|
41
|
+
`,{})};function Hr(e,t){return"#"===e[0]&&(e=function(e){"#"===e[0]&&(e=e.slice(1));const t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t].join(",")}(e)),`rgba(${e}, ${t})`}function Vr(e){return e.toString()+"px"}const Kr=class{constructor(){Bt(this,"storage",{})}static getInstance(){return Kr.instance||(Kr.instance=new Kr),Kr.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!=(t=this.storage[e])?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!=(t=n[e])?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};let qr=Kr;Bt(qr,"instance");class Gr extends ce{constructor(){super(...arguments),Object.setPrototypeOf(this,Gr.prototype)}}function Qr(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug("[TON_CONNECT_UI]",...t)}catch(r){}}function Zr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_self";Qr("openLink",e,t),window.open(e,t,"noopener noreferrer")}function Yr(e){Zr(e,"_blank")}function Xr(e,t){const n=setTimeout((()=>{io("safari")||oo("android")&&io("firefox")||t()}),200);window.addEventListener("blur",(()=>clearTimeout(n)),{once:!0}),Zr(e,"_self")}function Jr(e){return Ft(this,null,(function*(){yield new Promise((e=>requestAnimationFrame(e))),e()}))}function eo(e){"complete"!==document.readyState?window.addEventListener("load",(()=>Jr((()=>eo(e)))),{once:!0}):e.forEach((e=>{(new window.Image).src=e}))}function to(){if("undefined"!==typeof window)return window}function no(){if(function(){try{return"undefined"!==typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!==typeof process&&null!=process.versions&&null!=process.versions.node)throw new Gr("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return qr.getInstance()}function ro(){var e,t,n;const r=(new B).getResult(),o=null==(e=r.os.name)?void 0:e.toLowerCase();let i;switch(!0){case"ipad"===(null==(t=r.device.model)?void 0:t.toLowerCase()):i="ipad";break;case"ios"===o:i="ios";break;case"android"===o:i="android";break;case"mac os"===o:i="macos";break;case"linux"===o:i="linux";break;case null==o?void 0:o.includes("windows"):i="windows"}const a=null==(n=r.browser.name)?void 0:n.toLowerCase();let s;switch(!0){case"chrome"===a:s="chrome";break;case"firefox"===a:s="firefox";break;case null==a?void 0:a.includes("safari"):s="safari";break;case null==a?void 0:a.includes("opera"):s="opera"}return{os:i,browser:s}}function oo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(ro().os)}function io(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(ro().browser)}function ao(e,t){return t+new URL(e).search}class so{constructor(){Bt(this,"localStorage"),Bt(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=no()}setWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class lo{constructor(){Bt(this,"localStorage"),Bt(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=no()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class co{constructor(){Bt(this,"localStorage"),Bt(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=no()}setLastSelectedWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getLastSelectedWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeLastSelectedWalletInfo(){this.localStorage.removeItem(this.storageKey)}}const[uo,fo]=sn({status:"closed",closeReason:null}),ho=dn((()=>"opened"===uo().status)),[po,go]=sn({status:"closed",closeReason:null}),mo=dn((()=>"opened"===po().status)),vo=dn((()=>{const e=po();return"opened"===e.status?e.walletInfo:null}));let yo="undefined"!==typeof window?new co:void 0;const[bo,wo]=sn((null==yo?void 0:yo.getLastSelectedWalletInfo())||null),xo=e=>{yo||(yo=new co),e?yo.setLastSelectedWalletInfo(e):yo.removeLastSelectedWalletInfo(),wo(e)},[Co,ko]=sn(null),So={common:{close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",openWallet:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a",copyLink:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",linkCopied:"\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430",copied:"\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430",yourWallet:"\u0412\u0430\u0448 \u043a\u043e\u0448\u0435\u043b\u0451\u043a",retry:"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c",get:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c",mobile:"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439",browserExtension:"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435",desktop:"\u0414\u0435\u0441\u043a\u0442\u043e\u043f"},button:{connectWallet:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a",dropdown:{copy:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441",copied:"\u0410\u0434\u0440\u0435\u0441 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d!",disconnect:"\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a"}},notifications:{confirm:{header:"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 {{ name }}, \u0447\u0442\u043e\u0431\u044b\xa0\u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e."},transactionSent:{header:"\u0422\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430",text:"\u0412\u0430\u0448\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f\xa0\u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u0447\u0435\u0440\u0435\u0437\xa0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434."},transactionCanceled:{header:"\u0422\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u0430",text:"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0447\u0451\u0442\u0430 \u043d\u0435\xa0\u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f."}},walletItem:{walletOn:"Wallet \u0432",recent:"\u041d\u0435\u0434\u0430\u0432\u043d\u0438\u0439",installed:"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d",popular:"\u041f\u043e\u043f\u0443\u043b\u044f\u0440\u0435\u043d"},walletModal:{loading:"\u041a\u043e\u0448\u0435\u043b\u044c\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f",wallets:"\u041a\u043e\u0448\u0435\u043b\u044c\u043a\u0438",mobileUniversalModal:{connectYourWallet:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a",openWalletOnTelegramOrSelect:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 Wallet \u0432\xa0Telegram \u0438\u043b\u0438\xa0\u0432\u044b\u0431\u0435\u0440\u0435\u0442\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a \u0434\u043b\u044f\xa0\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f",openWalletOnTelegram:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c Wallet \u0432 Telegram",openLink:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",scan:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\u0430\u0448\u0435\u0433\u043e\xa0\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430"},desktopUniversalModal:{connectYourWallet:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a",scan:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\u0430\u0448\u0435\u0433\u043e\xa0\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",availableWallets:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0438"},mobileConnectionModal:{showQR:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c QR-\u043a\u043e\u0434",scanQR:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u043d\u0438\u0436\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\xa0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 {{ name }}, \u0438\u043b\u0438\xa0\u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",continueIn:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435 \u0432 {{ name }}\u2026",connectionDeclined:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e"},desktopConnectionModal:{scanQR:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u043d\u0438\u0436\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\xa0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 {{ name }}, \u0438\u043b\u0438\xa0\u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",continueInExtension:"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 {{ name }}",dontHaveExtension:"\u041f\u043e\u0445\u043e\u0436\u0435, \u0443 \u0432\u0430\u0441 \u043d\u0435\xa0\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435\xa0\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\xa0{{ name }}",getWallet:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c {{ name }}",continueOnDesktop:"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 {{ name }} \u043d\u0430\xa0\u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435\u2026",openWalletOnTelegram:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c Wallet \u0432\xa0Telegram",connectionDeclined:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e"},infoModal:{whatIsAWallet:"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a?",secureDigitalAssets:"\u041d\u0430\u0434\u0435\u0436\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0445 \u0430\u043a\u0442\u0438\u0432\u043e\u0432",walletProtects:"\u041a\u043e\u0448\u0435\u043b\u0451\u043a \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u0432\u0430\u0448\u0438 \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0435 \u0430\u043a\u0442\u0438\u0432\u044b, \u0432\u043a\u043b\u044e\u0447\u0430\u044f TON, \u0442\u043e\u043a\u0435\u043d\u044b \u0438\xa0\u043f\u0440\u0435\u0434\u043c\u0435\u0442\u044b \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0438\xa0\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u043c\u0438.",controlIdentity:"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0441\u0432\u043e\u0435\u0439 \u043b\u0438\u0447\u043d\u043e\u0441\u0442\u0438 Web3",manageIdentity:"\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0441\u0432\u043e\u0435\u0439 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u0438\xa0\u0441\xa0\u043b\u0435\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u043b\u0443\u0447\u0430\u0439\u0442\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\xa0\u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0439\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434\xa0\u0441\u0432\u043e\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\xa0\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435 \u0432\xa0\u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435\xa0\u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0430.",effortlessCryptoTransactions:"\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u043a\u0440\u0438\u043f\u0442\u043e\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438",easilySend:"\u041b\u0435\u0433\u043a\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0439\u0442\u0435 \u0438\xa0\u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0441\u0432\u043e\u0438 \u043a\u0440\u0438\u043f\u0442\u043e\u0432\u0430\u043b\u044e\u0442\u044b. \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0432\u043e\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\xa0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.",getAWallet:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a"}},actionModal:{confirmTransaction:{header:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432\xa0{{ name }}",text:"\u042d\u0442\u043e \u0437\u0430\u0439\u043c\u0435\u0442 \u043f\u0430\u0440\u0443 \u0441\u0435\u043a\u0443\u043d\u0434."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}},Eo={en:_o({common:{close:"Close",openWallet:"Open wallet",copyLink:"Copy Link",linkCopied:"Link Copied",copied:"Copied",yourWallet:"Your Wallet",retry:"Retry",get:"GET",mobile:"Mobile",browserExtension:"Browser Extension",desktop:"Desktop"},button:{connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},notifications:{confirm:{header:"Open {{ name }} to\xa0confirm the\xa0transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction\xa0will be\xa0processed in\xa0a\xa0few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to\xa0your account."}},walletItem:{walletOn:"Wallet On",recent:"Recent",installed:"Installed",popular:"Popular"},walletModal:{loading:"Loading wallets",wallets:"Wallets",mobileUniversalModal:{connectYourWallet:"Connect your wallet",openWalletOnTelegramOrSelect:"Open Wallet in Telegram or select your wallet to connect",openWalletOnTelegram:"Open Wallet in Telegram",openLink:"Open Link",scan:"Scan with your mobile wallet"},desktopUniversalModal:{connectYourWallet:"Connect your wallet",scan:"Scan with your mobile wallet",availableWallets:"Available wallets"},mobileConnectionModal:{showQR:"Show QR Code",scanQR:"Scan the\xa0QR code below with your phone\u2019s\xa0or\xa0{{ name }}\u2019s camera",continueIn:"Continue in {{ name }}\u2026",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the\xa0QR code below with your phone\u2019s\xa0or\xa0{{ name }}\u2019s camera",continueInExtension:"Continue in\xa0{{ name }} browser extension\u2026",dontHaveExtension:"Seems you don't have installed {{ name }}\xa0browser\xa0extension",getWallet:"Get {{ name }}",continueOnDesktop:"Continue in\xa0{{ name }} on desktop\u2026",openWalletOnTelegram:"Open Wallet in Telegram on desktop",connectionDeclined:"Connection declined"},infoModal:{whatIsAWallet:"What is a wallet",secureDigitalAssets:"Secure digital assets storage",walletProtects:"A wallet protects and manages your digital assets\xa0including TON, tokens and collectables.",controlIdentity:"Control your Web3 identity",manageIdentity:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in\xa0the\xa0blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies.\xa0Streamline your operations with\xa0decentralized applications.",getAWallet:"Get a Wallet"}},actionModal:{confirmTransaction:{header:"Confirm the\xa0transaction in\xa0{{ name }}",text:"It will only take a\xa0moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}}),ru:_o(So)};function _o(e){const t=n=>{Object.entries(n).forEach((r=>{let[o,i]=r;if("object"===typeof i&&i)return t(i);if("string"===typeof i){if("$"===i[0]){const t=i.slice(1).split(".");let r=e;t.forEach((e=>{if(!(e in r))throw new Error(`Cannot parse translations: there is no property ${e} in translation`);r=r[e]})),n[o]=r}"\\$"===i.slice(0,2)&&(n[o]=i.slice(1))}}))};return t(e),e}const Ao=yn(),To=Symbol("store-raw"),Ro=Symbol("store-node"),Oo=Symbol("store-name");function Po(e,t){let n=e[Vt];if(!n&&(Object.defineProperty(e,Vt,{value:n=new Proxy(e,Do)}),!Array.isArray(e))){const t=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,i=t.length;o<i;o++){const i=t[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(n)})}}return n}function Lo(e){let t;return null!=e&&"object"===typeof e&&(e[Vt]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Mo(e){let t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t=null!=e&&e[To])return t;if(!Lo(e)||i.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):i.add(e);for(let t=0,o=e.length;t<o;t++)r=e[t],(n=Mo(r,i))!==r&&(e[t]=n)}else{Object.isFrozen(e)?e=Object.assign({},e):i.add(e);const t=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let s=0,l=t.length;s<l;s++)o=t[s],a[o].get||(r=e[o],(n=Mo(r,i))!==r&&(e[o]=n))}return e}function No(e){let t=e[Ro];return t||Object.defineProperty(e,Ro,{value:t={}}),t}function Io(e,t,n){return e[t]||(e[t]=$o(n))}function jo(e){if(vn()){const t=No(e);(t._||(t._=$o()))()}}function $o(e){const[t,n]=sn(e,{equals:!1,internal:!0});return t.$=n,t}const Do={get(e,t,n){if(t===To)return e;if(t===Vt)return n;if(t===Kt)return jo(e),n;const r=No(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===Ro||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!vn()||"function"===typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=Io(r,t,i)())}return Lo(i)?Po(i):i},has(e,t){return t===To||t===Vt||t===Kt||t===Ro||"__proto__"===t||(this.get(e,t,e),t in e)},set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return jo(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==Vt&&t!==Ro&&t!==Oo?(delete n.value,delete n.writable,n.get=()=>e[Vt][t],n):n}};function Uo(e,t,n){if(!(arguments.length>3&&void 0!==arguments[3]&&arguments[3])&&e[t]===n)return;const r=e[t],o=e.length;void 0===n?delete e[t]:e[t]=n;let i,a=No(e);(i=Io(a,t,r))&&i.$((()=>n)),Array.isArray(e)&&e.length!==o&&(i=Io(a,"length",o))&&i.$(e.length),(i=a._)&&i.$()}function Wo(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];Uo(e,o,t[o])}}function zo(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=e;if(t.length>1){n=t.shift();const i=typeof n,a=Array.isArray(e);if(Array.isArray(n)){for(let o=0;o<n.length;o++)zo(e,[n[o]].concat(t),r);return}if(a&&"function"===i){for(let o=0;o<e.length;o++)n(e[o],o)&&zo(e,[o].concat(t),r);return}if(a&&"object"===i){const{from:o=0,to:i=e.length-1,by:a=1}=n;for(let n=o;n<=i;n+=a)zo(e,[n].concat(t),r);return}if(t.length>1)return void zo(e[n],t,[n].concat(r));o=e[n],r=[n].concat(r)}let i=t[0];"function"===typeof i&&(i=i(o,r),i===o)||void 0===n&&void 0==i||(i=Mo(i),void 0===n||Lo(o)&&Lo(i)&&!Array.isArray(i)?Wo(o,i):Uo(e,n,i))}function Bo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t;const i=Mo(r||{}),a=Array.isArray(i);return[Po(i),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];hn((()=>{a&&1===t.length?function(e,t){if("function"===typeof t&&(t=t(e)),t=Mo(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const r=t[n];e[n]!==r&&Uo(e,n,r)}Uo(e,"length",r)}else Wo(e,t)}(i,t[0]):zo(i,t)}))}]}const Fo={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}};function Ho(e){return"[object Object]"===Object.prototype.toString.call(e)}function Vo(e){var t,n;return!1!==Ho(e)&&(void 0===(t=e.constructor)||!1!==Ho(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Ko(e,t){if(!e)return t;return Pt(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:Vo})}const[qo,Go]=Bo({theme:xr.LIGHT,colors:Fo,borderRadius:"m"}),Qo={[xr.LIGHT]:Fo,[xr.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#FFFFFF"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},Zo={[xr.LIGHT]:void 0,[xr.DARK]:void 0};function Yo(e,t){t&&(Zo[xr.DARK]=Ko(t[xr.DARK],Zo[xr.DARK]),Zo[xr.LIGHT]=Ko(t[xr.LIGHT],Zo[xr.LIGHT])),Go({theme:e,colors:Ko(Zo[e],Qo[e])})}const Xo=Dr.div`
|
|
42
42
|
background-color: ${e=>e.theme.colors.background.secondary};
|
|
43
|
-
`,
|
|
43
|
+
`,Jo=e=>{let t;const[n,r]=sn(null);return un((()=>{const t=new window.Image;return t.src=e.src,t.alt=e.alt||"",t.setAttribute("draggable","false"),e.class&&t.classList.add(e.class),t.complete?r(t):(t.addEventListener("load",(()=>r(t))),()=>t.removeEventListener("load",(()=>r(t))))})),[Un(Kn,{get when(){return n()},get children(){return n()}}),Un(Kn,{get when(){return!n()},get children(){return Un(Xo,{get class(){return e.class},ref(e){"function"===typeof t?t(e):t=e}})}})]};let ei={};try{ei=function(e){e=e.replace(/^#/,"");let t={};if(!e.length)return t;if(e.indexOf("=")<0&&e.indexOf("?")<0)return t._path=ui(e),t;let n=e.indexOf("?");if(n>=0){let r=e.substr(0,n);t._path=ui(r),e=e.substr(n+1)}let r=function(e){let t={};if(!e.length)return t;let n,r,o,i,a=e.split("&");for(n=0;n<a.length;n++)r=a[n].split("="),o=ui(r[0]),i=null==r[1]?null:ui(r[1]),t[o]=i;return t}(e);for(let o in r)t[o]=r[o];return t}(location.hash.toString())}catch(Vv){}let ti="unknown";if((null==ei?void 0:ei.tgWebAppPlatform)&&(ti=null!=(kt=ei.tgWebAppPlatform)?kt:"unknown"),"unknown"===ti){const e=to();ti=null!=(_t=null==(Et=null==(St=null==e?void 0:e.Telegram)?void 0:St.WebApp)?void 0:Et.platform)?_t:"unknown"}let ni="6.0";if((null==ei?void 0:ei.tgWebAppVersion)&&(ni=ei.tgWebAppVersion),!ni){const e=to();ni=null!=(Rt=null==(Tt=null==(At=null==e?void 0:e.Telegram)?void 0:At.WebApp)?void 0:Tt.version)?Rt:"6.0"}function ri(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(ti)}function oi(){var e;return"unknown"!==ti||!!(null==(e=to())?void 0:e.TelegramWebviewProxy)}function ii(){var e;const t=!!(null==(e=to())?void 0:e.TelegramWebview);return(oi()||t)&&"unknown"===ti}function ai(){ci("web_app_expand",{})}function si(e,t){const n=new URL(e);if("http:"!==n.protocol&&"https:"!==n.protocol){if(t)return t();throw new Gr(`Url protocol is not supported: ${n}`)}if("t.me"!==n.hostname){if(t)return t();throw new Gr(`Url host is not supported: ${n}`)}const r=n.pathname+n.search;li()||function(e,t){"string"!==typeof e&&(e=""),"string"!==typeof t&&(t="");let n,r,o,i,a=e.replace(/^\s+|\s+$/g,"").split("."),s=t.replace(/^\s+|\s+$/g,"").split(".");for(n=Math.max(a.length,s.length),r=0;r<n;r++)if(o=parseInt(a[r])||0,i=parseInt(s[r])||0,o!==i)return o>i?1:-1;return 0}(ni,"6.1")>=0?ci("web_app_open_tg_link",{path_full:r}):Yr("https://t.me"+r)}function li(){try{const e=to();return!!e&&(null!=e.parent&&e!==e.parent)}catch(Vv){return!1}}function ci(e,t){try{const n=to();if(!n)throw new Gr("Can't post event to parent window: window is not defined");if(void 0!==n.TelegramWebviewProxy)Qr("postEvent",e,t),n.TelegramWebviewProxy.postEvent(e,JSON.stringify(t));else if(n.external&&"notify"in n.external)Qr("postEvent",e,t),n.external.notify(JSON.stringify({eventType:e,eventData:t}));else{if(!li())throw new Gr("Can't post event to TMA");{const r="*",o=JSON.stringify({eventType:e,eventData:t});Qr("postEvent",e,t),n.parent.postMessage(o,r)}}}catch(Vv){!function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];console.error("[TON_CONNECT_UI]",...n)}catch(e){}}(`Can't post event to parent window: ${Vv}`)}}function ui(e){try{return e=e.replace(/\+/g,"%20"),decodeURIComponent(e)}catch(Vv){return e}}const di=440,fi=1020;function hi(e){const t=to();if(!t)return"desktop"===e;if(ri("weba"))return!0;const n=t.innerWidth;switch(e){case"desktop":return n>fi;case"tablet":return n>di;default:return n<=di||oo("ios","android","ipad")}}function pi(e){switch(e){case"mobile":return`@media (max-width: ${di}px)`;case"tablet":return`@media (max-width: ${fi}px) (min-width: ${di}px)`;default:return`@media (min-width: ${fi}px)`}}const gi="@media (hover: none)",mi="@media not all and (hover: none)",vi={m:"100vh",s:"8px",none:"0"},yi={s:.02,m:.04},bi=Dr.button`
|
|
44
44
|
display: ${e=>e.leftIcon||e.rightIcon?"flex":"inline-block"};
|
|
45
45
|
gap: ${e=>e.leftIcon||e.rightIcon?"6px":"unset"};
|
|
46
46
|
align-items: ${e=>e.leftIcon||e.rightIcon?"center":"unset"};
|
|
47
47
|
justify-content: ${e=>e.leftIcon||e.rightIcon?"space-between":"unset"};
|
|
48
|
-
background-color: ${e=>"flat"===e.appearance?"transparent":"secondary"===e.appearance?e.theme.colors.background.tint:
|
|
48
|
+
background-color: ${e=>"flat"===e.appearance?"transparent":"secondary"===e.appearance?e.theme.colors.background.tint:Hr(e.theme.colors.accent,.12)};
|
|
49
49
|
color: ${e=>"secondary"===e.appearance?e.theme.colors.text.primary:e.theme.colors.accent};
|
|
50
50
|
|
|
51
51
|
padding: ${e=>"flat"===e.appearance?"0":"9px 16px"};
|
|
52
52
|
padding-left: ${e=>e.leftIcon&&"flat"!==e.appearance?"12px":"16px"};
|
|
53
53
|
padding-right: ${e=>e.rightIcon&&"flat"!==e.appearance?"12px":"16px"};
|
|
54
54
|
border: none;
|
|
55
|
-
border-radius: ${e=>
|
|
55
|
+
border-radius: ${e=>vi[e.theme.borderRadius]};
|
|
56
56
|
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
57
57
|
|
|
58
58
|
font-size: 14px;
|
|
@@ -61,25 +61,25 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
61
61
|
|
|
62
62
|
transition: transform 0.125s ease-in-out;
|
|
63
63
|
|
|
64
|
-
${
|
|
64
|
+
${mi} {
|
|
65
65
|
&:hover {
|
|
66
|
-
transform: ${e=>e.disabled?"unset":`scale(${1+
|
|
66
|
+
transform: ${e=>e.disabled?"unset":`scale(${1+yi[e.scale]})`};
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
&:active {
|
|
71
|
-
transform: ${e=>e.disabled?"unset":`scale(${1-
|
|
71
|
+
transform: ${e=>e.disabled?"unset":`scale(${1-yi[e.scale]})`};
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
${
|
|
74
|
+
${gi} {
|
|
75
75
|
&:active {
|
|
76
|
-
transform: ${e=>e.disabled?"unset":`scale(${1-2*
|
|
76
|
+
transform: ${e=>e.disabled?"unset":`scale(${1-2*yi[e.scale]})`};
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
`;function
|
|
80
|
-
transform: rotate(${e=>
|
|
79
|
+
`;function wi(e){const t=pn((()=>Object.keys(e).filter((e=>e.startsWith("data-"))))),[n]=Hn(e,t);return n}const xi=e=>{const t=wi(e);return Un(bi,Fn({get appearance(){return e.appearance||"primary"},get class(){return e.class},onClick:t=>{var n;return null==(n=e.onClick)?void 0:n.call(e,t)},onMouseEnter:t=>{var n;return null==(n=e.onMouseEnter)?void 0:n.call(e,t)},onMouseLeave:t=>{var n;return null==(n=e.onMouseLeave)?void 0:n.call(e,t)},ref(t){const n=e.ref;"function"===typeof n?n(t):e.ref=t},get disabled(){return e.disabled},get scale(){return e.scale||"m"},get leftIcon(){return!!e.leftIcon},get rightIcon(){return!!e.rightIcon},"data-tc-button":"true"},t,{get children(){return[dn((()=>e.leftIcon)),dn((()=>e.children)),dn((()=>e.rightIcon))]}}))};function Ci(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}const ki=e=>{let t,n=!0;const[r,o]=sn(),[i,a]=sn(),s=wn((()=>e.children)),{onBeforeEnter:l,onEnter:c,onAfterEnter:u,onBeforeExit:d,onExit:f,onAfterExit:h}=e,p=dn((()=>{const t=e.name||"s";return{enterActiveClass:e.enterActiveClass||t+"-enter-active",enterClass:e.enterClass||t+"-enter",enterToClass:e.enterToClass||t+"-enter-to",exitActiveClass:e.exitActiveClass||t+"-exit-active",exitClass:e.exitClass||t+"-exit",exitToClass:e.exitToClass||t+"-exit-to"}}));function g(t,s){if(!n||e.appear){let n=function(l){!t||l&&l.target!==t||(t.removeEventListener("transitionend",n),t.removeEventListener("animationend",n),t.classList.remove(...f),t.classList.remove(...h),hn((()=>{r()!==t&&o(t),i()===t&&a(void 0)})),u&&u(t),"inout"===e.mode&&m(t,s))};const d=p().enterClass.split(" "),f=p().enterActiveClass.split(" "),h=p().enterToClass.split(" ");l&&l(t),t.classList.add(...d),t.classList.add(...f),Ci((()=>{t.classList.remove(...d),t.classList.add(...h),c&&c(t,(()=>n())),(!c||c.length<2)&&(t.addEventListener("transitionend",n),t.addEventListener("animationend",n))}))}s&&!e.mode?a(t):o(t)}function m(t,n){const i=p().exitClass.split(" "),a=p().exitActiveClass.split(" "),s=p().exitToClass.split(" ");if(!n.parentNode)return l();function l(i){i&&i.target!==n||(n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...a),n.classList.remove(...s),r()===n&&o(void 0),h&&h(n),"outin"===e.mode&&g(t,n))}d&&d(n),n.classList.add(...i),n.classList.add(...a),Ci((()=>{n.classList.remove(...i),n.classList.add(...s)})),f&&f(n,(()=>l())),(!f||f.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l))}return ln((r=>{for(t=s();"function"===typeof t;)t=t();return pn((()=>(t&&t!==r&&("outin"!==e.mode?g(t,r):n&&o(t)),r&&r!==t&&"inout"!==e.mode&&m(t,r),n=!1,t)))})),[r,i]};function Si(e){const{top:t,bottom:n,left:r,right:o,width:i,height:a}=e.getBoundingClientRect(),s=e.parentNode.getBoundingClientRect();return{top:t-s.top,bottom:n,left:r-s.left,right:o,width:i,height:a}}const Ei=e=>{const t=wn((()=>e.children)),n=dn((()=>{const t=e.name||"s";return{enterActiveClass:e.enterActiveClass||t+"-enter-active",enterClass:e.enterClass||t+"-enter",enterToClass:e.enterToClass||t+"-enter-to",exitActiveClass:e.exitActiveClass||t+"-exit-active",exitClass:e.exitClass||t+"-exit",exitToClass:e.exitToClass||t+"-exit-to",moveClass:e.moveClass||t+"-move"}})),{onBeforeEnter:r,onEnter:o,onAfterEnter:i,onBeforeExit:a,onExit:s,onAfterExit:l}=e,[c,u]=sn();let d=[],f=!0;return ln((()=>{const e=t(),c=[...e],h=new Set(e),p=new Set(d),g=n().enterClass.split(" "),m=n().enterActiveClass.split(" "),v=n().enterToClass.split(" "),y=n().exitClass.split(" "),b=n().exitActiveClass.split(" "),w=n().exitToClass.split(" ");for(let t=0;t<e.length;t++){const n=e[t];if(!f&&!p.has(n)){let e=function(t){!n||t&&t.target!==n||(n.removeEventListener("transitionend",e),n.removeEventListener("animationend",e),n.classList.remove(...m),n.classList.remove(...v),i&&i(n))};r&&r(n),n.classList.add(...g),n.classList.add(...m),Ci((()=>{n.classList.remove(...g),n.classList.add(...v),o&&o(n,(()=>e())),(!o||o.length<2)&&(n.addEventListener("transitionend",e),n.addEventListener("animationend",e))}))}}for(let t=0;t<d.length;t++){const e=d[t];if(!h.has(e)&&e.parentNode){let n=function(t){t&&t.target!==e||(e.removeEventListener("transitionend",n),e.removeEventListener("animationend",n),e.classList.remove(...b),e.classList.remove(...w),l&&l(e),d=d.filter((t=>t!==e)),u(d))};c.splice(t,0,e),a&&a(e),e.classList.add(...y),e.classList.add(...b),Ci((()=>{e.classList.remove(...y),e.classList.add(...w)})),s&&s(e,(()=>n())),(!s||s.length<2)&&(e.addEventListener("transitionend",n),e.addEventListener("animationend",n))}}d=c,u(c)})),un((e=>{const t=c();return t.forEach((t=>{let n;(n=e.get(t))?n.new&&(n.new=!1,n.newPos=Si(t)):e.set(t,n={pos:Si(t),new:!f}),n.new&&t.addEventListener("transitionend",(()=>{n.new=!1,t.parentNode&&(n.newPos=Si(t))}),{once:!0}),n.newPos&&(n.pos=n.newPos),n.newPos=Si(t)})),f?(f=!1,e):(t.forEach((t=>{const n=e.get(t),r=n.pos,o=n.newPos,i=r.left-o.left,a=r.top-o.top;if(i||a){n.moved=!0;const e=t.style;e.transform=`translate(${i}px,${a}px)`,e.transitionDuration="0s"}})),document.body.offsetHeight,t.forEach((t=>{const r=e.get(t);if(r.moved){let e=function(n){n&&n.target!==t||!t.parentNode||n&&!/transform$/.test(n.propertyName)||(t.removeEventListener("transitionend",e),t.classList.remove(...i))};r.moved=!1;const o=t.style,i=n().moveClass.split(" ");t.classList.add(...i),o.transform=o.transitionDuration="",t.addEventListener("transitionend",e)}})),e)}),new Map),c};const _i="androidBackHandler",Ai={[_i]:!0},Ti=rr('<svg><path fill-rule="evenodd" clip-rule="evenodd" d="M10.2122 14.3407C10.5384 14.0854 10.5959 13.614 10.3406 13.2878L6.20237 8.00003L10.3406 2.71227C10.5959 2.38607 10.5384 1.91469 10.2122 1.6594C9.88604 1.40412 9.41465 1.46161 9.15937 1.7878L4.65937 7.5378C4.44688 7.80932 4.44688 8.19074 4.65937 8.46226L9.15937 14.2123C9.41465 14.5385 9.88604 14.5959 10.2122 14.3407Z"></path></svg>',0,!0),Ri={left:0,top:90,right:180,bottom:270},Oi=e=>{const t=jr();return Un(Dr("svg")`
|
|
80
|
+
transform: rotate(${e=>Ri[e.svgDirection]}deg);
|
|
81
81
|
transition: transform 0.1s ease-in-out;
|
|
82
|
-
`,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",get svgDirection(){return e.direction||"left"},get children(){const n=
|
|
82
|
+
`,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",get svgDirection(){return e.direction||"left"},get children(){const n=Ti.cloneNode(!0);return cn((()=>or(n,"fill",e.fill||t.colors.icon.secondary))),n}})},Pi=rr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.71966 2.71968C3.01255 2.42678 3.48743 2.42677 3.78032 2.71966L8.00002 6.93925L12.2197 2.71967C12.5126 2.42677 12.9874 2.42678 13.2803 2.71967C13.5732 3.01257 13.5732 3.48744 13.2803 3.78033L9.06068 7.99991L13.2803 12.2197C13.5732 12.5126 13.5732 12.9874 13.2803 13.2803C12.9874 13.5732 12.5126 13.5732 12.2197 13.2803L8.00002 9.06057L3.78033 13.2803C3.48744 13.5732 3.01257 13.5732 2.71967 13.2803C2.42678 12.9874 2.42677 12.5126 2.71967 12.2197L6.93936 7.99991L2.71968 3.78034C2.42678 3.48745 2.42677 3.01257 2.71966 2.71968Z"></path></svg>'),Li=e=>{const t=jr();return(()=>{const n=Pi.cloneNode(!0),r=n.firstChild;return cn((()=>or(r,"fill",e.fill||t.colors.icon.secondary))),n})()},Mi=Dr.button`
|
|
83
83
|
padding: 0;
|
|
84
84
|
display: flex;
|
|
85
85
|
justify-content: center;
|
|
@@ -93,7 +93,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
93
93
|
|
|
94
94
|
transition: transform 0.125s ease-in-out;
|
|
95
95
|
|
|
96
|
-
${
|
|
96
|
+
${mi} {
|
|
97
97
|
&:hover {
|
|
98
98
|
transform: scale(1.04);
|
|
99
99
|
}
|
|
@@ -103,12 +103,12 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
103
103
|
transform: scale(0.96);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
${
|
|
106
|
+
${gi} {
|
|
107
107
|
&:active {
|
|
108
108
|
transform: scale(0.92);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
`,
|
|
111
|
+
`,Ni=e=>{const t=wi(e),n=()=>e.icon||"close";return Un(Mi,Fn({get class(){return e.class},onClick:()=>e.onClick(),"data-tc-icon-button":"true"},t,{get children(){return[Un(Kn,{get when(){return!!e.children},get children(){return e.children}}),Un(Kn,{get when(){return!e.children},get children(){return Un(qn,{get children(){return[Un(Gn,{get when(){return"close"===n()},get children(){return Un(Li,{get fill(){return e.fill}})}}),Un(Gn,{get when(){return"arrow"===n()},get children(){return Un(Oi,{get fill(){return e.fill}})}}),Un(Gn,{get when(){return"question"===n()},get children(){return Un(is,{get fill(){return e.fill}})}}),Un(Gn,{get when(){return"string"!==typeof n()},get children(){return n()}})]}})}})]}}))},Ii={m:"24px",s:"16px",none:"0"},ji=Dr.div`
|
|
112
112
|
display: flex;
|
|
113
113
|
position: fixed;
|
|
114
114
|
z-index: 1000;
|
|
@@ -120,20 +120,20 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
120
120
|
padding: 20px 0;
|
|
121
121
|
overflow-y: auto;
|
|
122
122
|
|
|
123
|
-
${
|
|
123
|
+
${pi("mobile")} {
|
|
124
124
|
padding-bottom: 0;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
`,$i=Lr`
|
|
127
127
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 16px 64px rgba(0, 0, 0, 0.16);
|
|
128
128
|
width: fit-content;
|
|
129
129
|
margin: auto;
|
|
130
130
|
|
|
131
|
-
${
|
|
131
|
+
${pi("mobile")} {
|
|
132
132
|
width: 100%;
|
|
133
133
|
height: fit-content;
|
|
134
134
|
margin: auto 0 0 0;
|
|
135
135
|
}
|
|
136
|
-
`,
|
|
136
|
+
`,Di=Dr.div`
|
|
137
137
|
position: relative;
|
|
138
138
|
min-height: 100px;
|
|
139
139
|
width: 416px;
|
|
@@ -142,33 +142,33 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
142
142
|
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
|
|
143
143
|
|
|
144
144
|
background-color: ${e=>e.theme.colors.background.primary};
|
|
145
|
-
border-radius: ${e=>
|
|
145
|
+
border-radius: ${e=>Ii[e.theme.borderRadius]};
|
|
146
146
|
|
|
147
|
-
${
|
|
147
|
+
${pi("mobile")} {
|
|
148
148
|
width: 100%;
|
|
149
149
|
}
|
|
150
|
-
|
|
150
|
+
`,Ui=Dr(Ni)`
|
|
151
151
|
position: absolute;
|
|
152
152
|
right: 16px;
|
|
153
153
|
top: 16px;
|
|
154
|
-
`,
|
|
154
|
+
`,Wi=Dr.div`
|
|
155
155
|
display: flex;
|
|
156
156
|
justify-content: space-between;
|
|
157
157
|
align-items: center;
|
|
158
158
|
padding: 16px 16px 16px 18px;
|
|
159
|
-
border-radius: 0 0 ${e=>
|
|
160
|
-
${e=>
|
|
161
|
-
`,
|
|
162
|
-
background-color: ${e=>
|
|
163
|
-
`;class
|
|
164
|
-
border-radius: ${
|
|
159
|
+
border-radius: 0 0 ${e=>Ii[e.theme.borderRadius]}
|
|
160
|
+
${e=>Ii[e.theme.borderRadius]};
|
|
161
|
+
`,zi=Dr(Ni)`
|
|
162
|
+
background-color: ${e=>Hr(e.theme.colors.icon.secondary,.12)};
|
|
163
|
+
`;class Bi{constructor(){Bt(this,"currentTime",0)}}const Fi=class{constructor(){Bt(this,"currentTime",0),Bt(this,"playbackRate",1),Bt(this,"startTime",null),Bt(this,"timeline",new Bi),Bt(this,"finished",Promise.resolve(this)),Bt(this,"effect",null),Bt(this,"id",""),Bt(this,"pending",!1),Bt(this,"playState","finished"),Bt(this,"replaceState","active"),Bt(this,"ready",Promise.resolve(this)),Bt(this,"oncancel",null),Bt(this,"onfinish",null),Bt(this,"onremove",null)}static create(){return Fi._instance||(!function(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn("[TON_CONNECT_UI]",...t)}catch(Vv){}}("Animation is not supported in this environment: please consider using the `web-animations-js` polyfill to provide a fallback implementation of the Web Animations API."),Fi._instance=new Fi),Fi._instance}cancel(){}finish(){}pause(){}play(){}reverse(){}addEventListener(e,t,n){}dispatchEvent(e){return!1}removeEventListener(e,t,n){}updatePlaybackRate(e){}commitStyles(){}persist(){}};let Hi=Fi;function Vi(e,t,n){return"animate"in e?e.animate(t,n):Hi.create()}Bt(Hi,"_instance",null);const Ki=rr("<div></div>"),qi=function(e,t){const n=n=>{var r;return!e.contains(n.target)&&(null==(r=t())?void 0:r())};document.body.addEventListener("click",n),mn((()=>document.body.removeEventListener("click",n)))},Gi=function(e,t){const n=e=>{var n,r;"Escape"===e.key&&(null==(n=document.activeElement)||n.blur(),null==(r=t())||r())};document.body.addEventListener("keydown",n),mn((()=>document.body.removeEventListener("keydown",n)))},Qi=function(e,t){const{isEnabled:n,onClose:r}=t();if(!n)return;if(!("android"===ro().os))return;window.history.pushState(Ai,"");const o=e=>{e.preventDefault(),r()};window.addEventListener("popstate",o,{once:!0}),mn((()=>{window.removeEventListener("popstate",o),Jr((()=>{var e;!0===(null==(e=window.history.state)?void 0:e[_i])&&window.history.back()}))}))},Zi=e=>{const t=jr(),n=wi(e);return un((()=>{e.opened?document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=Vr(-document.documentElement.scrollTop),document.body.classList.add(zr)):(document.body.classList.remove(zr),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto")})),Un(ki,{onBeforeEnter:e=>{const t=hi("mobile")?200:100;Vi(e,[{opacity:0},{opacity:1}],{duration:t}),hi("mobile")&&Vi(e.firstElementChild,[{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:t})},onExit:(e,t)=>{const n=hi("mobile")?200:100,r=Vi(e,[{opacity:1},{opacity:0}],{duration:n});if(hi("mobile")){const o=Vi(e.firstElementChild,[{transform:"translateY(0)"},{transform:"translateY(390px)"}],{duration:n});Promise.all([r.finished,o.finished]).then(t)}else r.finished.then(t)},get children(){return Un(Kn,{get when(){return e.opened},get children(){return Un(ji,Fn({"data-tc-modal":"true"},n,{get children(){const n=Ki.cloneNode(!0);return sr(Qi,n,(()=>({isEnabled:e.enableAndroidBackHandler,onClose:()=>e.onClose()}))),sr(Gi,n,(()=>()=>e.onClose())),sr(qi,n,(()=>()=>e.onClose())),lr(n,Un(Di,{get class(){return e.class},get children(){return[Un(Ui,{icon:"close",onClick:()=>e.onClose()}),dn((()=>e.children))]}}),null),lr(n,Un(Kn,{get when(){return e.onClickQuestion},get children(){return Un(Wi,{get children(){return[Un(rs,{}),Un(zi,{get onClick(){return e.onClickQuestion},icon:"question"})]}})}}),null),cn((()=>ir(n,Lt($i,Lr`
|
|
164
|
+
border-radius: ${Ii[t.borderRadius]};
|
|
165
165
|
background-color: ${t.colors.background.tint};
|
|
166
166
|
|
|
167
|
-
${
|
|
168
|
-
border-radius: ${
|
|
169
|
-
${
|
|
167
|
+
${pi("mobile")} {
|
|
168
|
+
border-radius: ${Ii[t.borderRadius]}
|
|
169
|
+
${Ii[t.borderRadius]} 0 0;
|
|
170
170
|
}
|
|
171
|
-
`)))),n}}))}})}})},
|
|
171
|
+
`)))),n}}))}})}})},Yi={m:"22px",s:"12px",none:"0"},Xi={m:"18px",s:"8px",none:"0"},Ji=Dr.div`
|
|
172
172
|
display: grid;
|
|
173
173
|
grid-template: 1fr / 1fr 1fr;
|
|
174
174
|
width: fit-content;
|
|
@@ -177,10 +177,10 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
177
177
|
|
|
178
178
|
position: relative;
|
|
179
179
|
padding: 4px;
|
|
180
|
-
border-radius: ${e=>
|
|
180
|
+
border-radius: ${e=>Yi[e.theme.borderRadius]};
|
|
181
181
|
|
|
182
182
|
background-color: ${e=>e.theme.colors.background.secondary};
|
|
183
|
-
`,
|
|
183
|
+
`,ea=Dr.div`
|
|
184
184
|
position: absolute;
|
|
185
185
|
top: 4px;
|
|
186
186
|
left: 4px;
|
|
@@ -188,15 +188,15 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
188
188
|
height: calc(100% - 8px);
|
|
189
189
|
width: calc(50% - 4px);
|
|
190
190
|
|
|
191
|
-
border-radius: ${e=>
|
|
191
|
+
border-radius: ${e=>Xi[e.theme.borderRadius]};
|
|
192
192
|
background-color: ${e=>e.theme.colors.background.segment};
|
|
193
193
|
|
|
194
194
|
transform: ${e=>e.right?"translateX(100%)":"translateX(0)"};
|
|
195
195
|
|
|
196
196
|
transition: transform 0.13s ease-in-out;
|
|
197
|
-
`,
|
|
197
|
+
`,ta=Dr.input`
|
|
198
198
|
display: none;
|
|
199
|
-
`,
|
|
199
|
+
`,na=Dr.label`
|
|
200
200
|
padding: 9px 12px;
|
|
201
201
|
z-index: 1;
|
|
202
202
|
|
|
@@ -211,7 +211,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
211
211
|
> * {
|
|
212
212
|
${e=>e.isActive?"":`color: ${e.theme.colors.text.secondary};`}
|
|
213
213
|
}
|
|
214
|
-
`,
|
|
214
|
+
`,ra={m:"16px",s:"12px",none:"0"},oa={m:"12px",s:"8px",none:"0"},ia=Dr.div`
|
|
215
215
|
width: 52px;
|
|
216
216
|
height: 52px;
|
|
217
217
|
background: transparent;
|
|
@@ -223,42 +223,42 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
223
223
|
align-items: center;
|
|
224
224
|
justify-content: center;
|
|
225
225
|
transition: transform 0.125s ease-in-out;
|
|
226
|
-
`,
|
|
226
|
+
`,aa=Dr.button`
|
|
227
227
|
display: flex;
|
|
228
228
|
align-items: center;
|
|
229
229
|
position: relative;
|
|
230
230
|
background-color: ${e=>e.theme.colors.background.qr};
|
|
231
|
-
border-radius: ${e=>
|
|
232
|
-
padding: ${
|
|
233
|
-
height: ${
|
|
231
|
+
border-radius: ${e=>ra[e.theme.borderRadius]};
|
|
232
|
+
padding: ${Vr(24)} 0;
|
|
233
|
+
height: ${Vr(304)};
|
|
234
234
|
width: 100%;
|
|
235
235
|
|
|
236
236
|
overflow: hidden;
|
|
237
237
|
cursor: pointer;
|
|
238
238
|
border: none;
|
|
239
239
|
|
|
240
|
-
${
|
|
240
|
+
${mi} {
|
|
241
241
|
&:hover {
|
|
242
|
-
${
|
|
242
|
+
${ia.class} {
|
|
243
243
|
transform: scale(1.04);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
&:active {
|
|
249
|
-
${
|
|
249
|
+
${ia.class} {
|
|
250
250
|
transform: scale(0.96);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
${
|
|
254
|
+
${gi} {
|
|
255
255
|
&:active {
|
|
256
|
-
${
|
|
256
|
+
${ia.class} {
|
|
257
257
|
transform: scale(0.92);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
`,
|
|
261
|
+
`,sa=Dr.div`
|
|
262
262
|
position: relative;
|
|
263
263
|
|
|
264
264
|
width: fit-content;
|
|
@@ -277,21 +277,21 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
277
277
|
path {
|
|
278
278
|
fill: ${e=>e.theme.colors.constant.black};
|
|
279
279
|
}
|
|
280
|
-
`,
|
|
280
|
+
`,la=Dr.div`
|
|
281
281
|
position: absolute;
|
|
282
|
-
width: ${
|
|
283
|
-
height: ${
|
|
282
|
+
width: ${Vr(60)};
|
|
283
|
+
height: ${Vr(60)};
|
|
284
284
|
background: ${e=>e.theme.colors.background.qr};
|
|
285
285
|
|
|
286
286
|
display: flex;
|
|
287
287
|
align-items: center;
|
|
288
288
|
justify-content: center;
|
|
289
|
-
`,
|
|
290
|
-
width: ${e=>
|
|
291
|
-
height: ${e=>
|
|
292
|
-
border-radius: ${e=>
|
|
289
|
+
`,ca=Dr(Jo)`
|
|
290
|
+
width: ${e=>Vr(e.size)};
|
|
291
|
+
height: ${e=>Vr(e.size)};
|
|
292
|
+
border-radius: ${e=>oa[e.theme.borderRadius]};
|
|
293
293
|
background-color: ${e=>e.theme.colors.background.qr};
|
|
294
|
-
`,
|
|
294
|
+
`,ua=Dr.div`
|
|
295
295
|
position: absolute;
|
|
296
296
|
bottom: 14px;
|
|
297
297
|
left: 50%;
|
|
@@ -306,14 +306,14 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
306
306
|
|
|
307
307
|
filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08));
|
|
308
308
|
background-color: ${e=>e.theme.colors.background.segment};
|
|
309
|
-
`;var ca={exports:{}};!function(e){var t=function(){var e=function(e,t){var n=e,r=i[t],o=null,a=0,s=null,l=[],c={},u=function(e,t){o=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(a=4*n+17),d(0,0),d(a-7,0),d(0,a-7),h(),f(),k(e,t),n>=7&&g(e),null==s&&(s=_(n,r,l)),S(s,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||a<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||a<=t+r||(o[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},f=function(){for(var e=8;e<a-8;e+=1)null==o[e][6]&&(o[e][6]=e%2==0);for(var t=8;t<a-8;t+=1)null==o[6][t]&&(o[6][t]=t%2==0)},h=function(){for(var e=p.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var i=e[t],a=e[r];if(null==o[i][a])for(var s=-2;s<=2;s+=1)for(var l=-2;l<=2;l+=1)o[i+s][a+l]=-2==s||2==s||-2==l||2==l||0==s&&0==l}},g=function(e){for(var t=p.getBCHTypeNumber(n),r=0;r<18;r+=1){var i=!e&&1==(t>>r&1);o[Math.floor(r/3)][r%3+a-8-3]=i}for(r=0;r<18;r+=1){i=!e&&1==(t>>r&1);o[r%3+a-8-3][Math.floor(r/3)]=i}},k=function(e,t){for(var n=r<<3|t,i=p.getBCHTypeInfo(n),s=0;s<15;s+=1){var l=!e&&1==(i>>s&1);s<6?o[s][8]=l:s<8?o[s+1][8]=l:o[a-15+s][8]=l}for(s=0;s<15;s+=1){l=!e&&1==(i>>s&1);s<8?o[8][a-s-1]=l:s<9?o[8][15-s-1+1]=l:o[8][15-s-1]=l}o[a-8][8]=!e},S=function(e,t){for(var n=-1,r=a-1,i=7,s=0,l=p.getMaskFunction(t),c=a-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var u=0;u<2;u+=1)if(null==o[r][c-u]){var d=!1;s<e.length&&(d=1==(e[s]>>>i&1)),l(r,c-u)&&(d=!d),o[r][c-u]=d,-1==(i-=1)&&(s+=1,i=7)}if((r+=n)<0||a<=r){r-=n,n=-n;break}}},_=function(e,t,n){for(var r=v.getRSBlocks(e,t),o=y(),i=0;i<n.length;i+=1){var a=n[i];o.put(a.getMode(),4),o.put(a.getLength(),p.getLengthInBits(a.getMode(),e)),a.write(o)}var s=0;for(i=0;i<r.length;i+=1)s+=r[i].dataCount;if(o.getLengthInBits()>8*s)throw"code length overflow. ("+o.getLengthInBits()+">"+8*s+")";for(o.getLengthInBits()+4<=8*s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*s)&&(o.put(236,8),!(o.getLengthInBits()>=8*s));)o.put(17,8);return function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),s=0;s<t.length;s+=1){var l=t[s].dataCount,c=t[s].totalCount-l;r=Math.max(r,l),o=Math.max(o,c),i[s]=new Array(l);for(var u=0;u<i[s].length;u+=1)i[s][u]=255&e.getBuffer()[u+n];n+=l;var d=p.getErrorCorrectPolynomial(c),f=m(i[s],d.getLength()-1).mod(d);for(a[s]=new Array(d.getLength()-1),u=0;u<a[s].length;u+=1){var h=u+f.getLength()-a[s].length;a[s][u]=h>=0?f.getAt(h):0}}var g=0;for(u=0;u<t.length;u+=1)g+=t[u].totalCount;var v=new Array(g),y=0;for(u=0;u<r;u+=1)for(s=0;s<t.length;s+=1)u<i[s].length&&(v[y]=i[s][u],y+=1);for(u=0;u<o;u+=1)for(s=0;s<t.length;s+=1)u<a[s].length&&(v[y]=a[s][u],y+=1);return v}(o,r)};c.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=b(e);break;case"Alphanumeric":n=w(e);break;case"Byte":n=x(e);break;case"Kanji":n=C(e);break;default:throw"mode:"+t}l.push(n),s=null},c.isDark=function(e,t){if(e<0||a<=e||t<0||a<=t)throw e+","+t;return o[e][t]},c.getModuleCount=function(){return a},c.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=v.getRSBlocks(e,r),o=y(),i=0;i<l.length;i++){var a=l[i];o.put(a.getMode(),4),o.put(a.getLength(),p.getLengthInBits(a.getMode(),e)),a.write(o)}var s=0;for(i=0;i<t.length;i++)s+=t[i].dataCount;if(o.getLengthInBits()<=8*s)break}n=e}u(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){u(!0,n);var r=p.getLostPoint(c);(0==n||e>r)&&(e=r,t=n)}return t}())},c.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t="undefined"==typeof t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<c.getModuleCount();r+=1){n+="<tr>";for(var o=0;o<c.getModuleCount();o+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=c.isDark(r,o)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>"},c.createSvgTag=function(e,t,n,r){var o={};"object"==typeof arguments[0]&&(e=(o=arguments[0]).cellSize,t=o.margin,n=o.alt,r=o.title),e=e||2,t="undefined"==typeof t?4*e:t,(n="string"===typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"===typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var i,a,s,l,u=c.getModuleCount()*e+2*t,d="";for(l="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=o.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewBox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=r.text||n.text?' role="img" aria-labelledby="'+A([r.id,n.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+A(r.id)+'">'+A(r.text)+"</title>":"",d+=n.text?'<description id="'+A(n.id)+'">'+A(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',a=0;a<c.getModuleCount();a+=1)for(s=a*e+t,i=0;i<c.getModuleCount();i+=1)c.isDark(a,i)&&(d+="M"+(i*e+t)+","+s+l);return d+='" stroke="transparent" fill="black"/>',d+="</svg>"},c.createDataURL=function(e,t){e=e||2,t="undefined"==typeof t?4*e:t;var n=c.getModuleCount()*e+2*t,r=t,o=n-t;return E(n,n,(function(t,n){if(r<=t&&t<o&&r<=n&&n<o){var i=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return c.isDark(a,i)?0:1}return 1}))},c.createImgTag=function(e,t,n){e=e||2,t="undefined"==typeof t?4*e:t;var r=c.getModuleCount()*e+2*t,o="";return o+="<img",o+=' src="',o+=c.createDataURL(e,t),o+='"',o+=' width="',o+=r,o+='"',o+=' height="',o+=r,o+='"',n&&(o+=' alt="',o+=A(n),o+='"'),o+="/>"};var A=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="<";break;case">":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=r}}return t};return c.createASCII=function(e,t){if((e=e||1)<2)return function(e){e="undefined"==typeof e?2:e;var t,n,r,o,i,a=1*c.getModuleCount()+2*e,s=e,l=a-e,u={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},d={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},f="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),o=Math.floor((t+1-s)/1),n=0;n<a;n+=1)i="\u2588",s<=n&&n<l&&s<=t&&t<l&&c.isDark(r,Math.floor((n-s)/1))&&(i=" "),s<=n&&n<l&&s<=t+1&&t+1<l&&c.isDark(o,Math.floor((n-s)/1))?i+=" ":i+="\u2588",f+=e<1&&t+1>=l?d[i]:u[i];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("\u2580"):f.substring(0,f.length-1)}(t);e-=1,t="undefined"==typeof t?2*e:t;var n,r,o,i,a=c.getModuleCount()*e+2*t,s=t,l=a-t,u=Array(e+1).join("\u2588\u2588"),d=Array(e+1).join(" "),f="",h="";for(n=0;n<a;n+=1){for(o=Math.floor((n-s)/e),h="",r=0;r<a;r+=1)i=1,s<=r&&r<l&&s<=n&&n<l&&c.isDark(o,Math.floor((r-s)/e))&&(i=0),h+=i?u:d;for(o=0;o<e;o+=1)f+=h+"\n"}return f.substring(0,f.length-1)},c.renderTo2dContext=function(e,t){t=t||2;for(var n=c.getModuleCount(),r=0;r<n;r++)for(var o=0;o<n;o++)e.fillStyle=c.isDark(r,o)?"black":"white",e.fillRect(r*t,o*t,t,t)},c};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=S(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},o=0,i={};;){var a=n.read();if(-1==a)break;var s=r(),l=r()<<8|r();i[String.fromCharCode(a<<8|s)]=l,o+=1}if(o!=t)throw o+" != "+t;return i}(),r="?".charCodeAt(0);return function(e){for(var t=[],o=0;o<e.length;o+=1){var i=e.charCodeAt(o);if(i<128)t.push(i);else{var a=n[e.charAt(o)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(r)}}return t}};var t=1,n=2,r=4,o=8,i={L:1,M:0,Q:3,H:2},a=0,s=1,l=2,c=3,u=4,d=5,f=6,h=7,p=function(){var e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],i=1335,p=7973,v={},y=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t};return v.getBCHTypeInfo=function(e){for(var t=e<<10;y(t)-y(i)>=0;)t^=i<<y(t)-y(i);return 21522^(e<<10|t)},v.getBCHTypeNumber=function(e){for(var t=e<<12;y(t)-y(p)>=0;)t^=p<<y(t)-y(p);return e<<12|t},v.getPatternPosition=function(t){return e[t-1]},v.getMaskFunction=function(e){switch(e){case a:return function(e,t){return(e+t)%2==0};case s:return function(e,t){return e%2==0};case l:return function(e,t){return t%3==0};case c:return function(e,t){return(e+t)%3==0};case u:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case d:return function(e,t){return e*t%2+e*t%3==0};case f:return function(e,t){return(e*t%2+e*t%3)%2==0};case h:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},v.getErrorCorrectPolynomial=function(e){for(var t=m([1],0),n=0;n<e;n+=1)t=t.multiply(m([1,g.gexp(n)],0));return t},v.getLengthInBits=function(e,i){if(1<=i&&i<10)switch(e){case t:return 10;case n:return 9;case r:case o:return 8;default:throw"mode:"+e}else if(i<27)switch(e){case t:return 12;case n:return 11;case r:return 16;case o:return 10;default:throw"mode:"+e}else{if(!(i<41))throw"type:"+i;switch(e){case t:return 14;case n:return 13;case r:return 16;case o:return 12;default:throw"mode:"+e}}},v.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var o=0;o<t;o+=1){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l+=1)o+l<0||t<=o+l||0==s&&0==l||a==e.isDark(r+s,o+l)&&(i+=1);i>5&&(n+=3+i-5)}for(r=0;r<t-1;r+=1)for(o=0;o<t-1;o+=1){var c=0;e.isDark(r,o)&&(c+=1),e.isDark(r+1,o)&&(c+=1),e.isDark(r,o+1)&&(c+=1),e.isDark(r+1,o+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<t;r+=1)for(o=0;o<t-6;o+=1)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o+=1)for(r=0;r<t-6;r+=1)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var u=0;for(o=0;o<t;o+=1)for(r=0;r<t;r+=1)e.isDark(r,o)&&(u+=1);return n+=10*(Math.abs(100*u/t/t-50)/5)},v}(),g=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;var r={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}};return r}();function m(e,t){if("undefined"==typeof e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=new Array(e.length-n+t),o=0;o<e.length-n;o+=1)r[o]=e[o+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var o=0;o<e.getLength();o+=1)t[n+o]^=g.gexp(g.glog(r.getAt(n))+g.glog(e.getAt(o)));return m(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=g.glog(r.getAt(0))-g.glog(e.getAt(0)),n=new Array(r.getLength()),o=0;o<r.getLength();o+=1)n[o]=r.getAt(o);for(o=0;o<e.getLength();o+=1)n[o]^=g.gexp(g.glog(e.getAt(o))+t);return m(n,0).mod(e)}};return r}var v=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={};return n.getRSBlocks=function(n,r){var o=function(t,n){switch(n){case i.L:return e[4*(t-1)+0];case i.M:return e[4*(t-1)+1];case i.Q:return e[4*(t-1)+2];case i.H:return e[4*(t-1)+3];default:return}}(n,r);if("undefined"==typeof o)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var a=o.length/3,s=[],l=0;l<a;l+=1)for(var c=o[3*l+0],u=o[3*l+1],d=o[3*l+2],f=0;f<c;f+=1)s.push(t(u,d));return s},n}(),y=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},b=function(e){var n=t,r=e,o={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+2<t.length;)e.put(i(t.substring(n,n+3)),10),n+=3;n<t.length&&(t.length-n==1?e.put(i(t.substring(n,n+1)),4):t.length-n==2&&e.put(i(t.substring(n,n+2)),7))}},i=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+a(e.charAt(n));return t},a=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return o},w=function(e){var t=n,r=e,o={getMode:function(){return t},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+1<t.length;)e.put(45*i(t.charAt(n))+i(t.charAt(n+1)),11),n+=2;n<t.length&&e.put(i(t.charAt(n)),6)}},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return o},x=function(t){var n=r,o=e.stringToBytes(t),i={getMode:function(){return n},getLength:function(e){return o.length},write:function(e){for(var t=0;t<o.length;t+=1)e.put(o[t],8)}};return i},C=function(t){var n=o,r=e.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(){var e=r("\u53cb");if(2!=e.length||38726!=(e[0]<<8|e[1]))throw"sjis not supported."}();var i=r(t),a={getMode:function(){return n},getLength:function(e){return~~(i.length/2)},write:function(e){for(var t=i,n=0;n+1<t.length;){var r=(255&t[n])<<8|255&t[n+1];if(33088<=r&&r<=40956)r-=33088;else{if(!(57408<=r&&r<=60351))throw"illegal char at "+(n+1)+"/"+r;r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}};return a},k=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var o=0;o<r;o+=1)t.writeByte(e[o+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+="]"}};return t},S=function(e){var t=e,n=0,r=0,o=0,i={read:function(){for(;o<8;){if(n>=t.length){if(0==o)return-1;throw"unexpected end of file./"+o}var e=t.charAt(n);if(n+=1,"="==e)return o=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return i},E=function(e,t,n){for(var r=function(e,t){var n=e,r=t,o=new Array(e*t),i={setPixel:function(e,t,r){o[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var o=0;t.length-o>255;)e.writeByte(255),e.writeBytes(t,o,255),o+=255;e.writeByte(t.length-o),e.writeBytes(t,o,t.length-o),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,i=s(),a=0;a<t;a+=1)i.add(String.fromCharCode(a));i.add(String.fromCharCode(t)),i.add(String.fromCharCode(n));var l=k(),c=function(e){var t=e,n=0,r=0;return{write:function(e,o){if(e>>>o!=0)throw"length over";for(;n+o>=8;)t.writeByte(255&(e<<n|r)),o-=8-n,e>>>=8-n,r=0,n=0;r|=e<<n,n+=o},flush:function(){n>0&&t.writeByte(r)}}}(l);c.write(t,r);var u=0,d=String.fromCharCode(o[u]);for(u+=1;u<o.length;){var f=String.fromCharCode(o[u]);u+=1,i.contains(d+f)?d+=f:(c.write(i.indexOf(d),r),i.size()<4095&&(i.size()==1<<r&&(r+=1),i.add(d+f)),d=f)}return c.write(i.indexOf(d),r),c.write(n,r),c.flush(),l.toByteArray()},s=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return"undefined"!=typeof e[t]}};return n};return i}(e,t),o=0;o<t;o+=1)for(var i=0;i<e;i+=1)r.setPixel(i,o,n(i,o));var a=k();r.write(a);for(var s=function(){var e=0,t=0,n=0,r="",o={},i=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return o.writeByte=function(r){for(e=e<<8|255&r,t+=8,n+=1;t>=6;)i(e>>>t-6),t-=6},o.flush=function(){if(t>0&&(i(e<<6-t),e=0,t=0),n%3!=0)for(var o=3-n%3,a=0;a<o;a+=1)r+="="},o.toString=function(){return r},o}(),l=a.toByteArray(),c=0;c<l.length;c+=1)s.writeByte(l[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();t.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},e.exports=t}(ca);const ua=ca.exports;function da(e){return zt(this,null,(function*(){try{if(!(null==navigator?void 0:navigator.clipboard))throw new Kr("Clipboard API not available");return yield navigator.clipboard.writeText(e)}catch(Fv){}!function(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}finally{document.body.removeChild(t)}}(e)}))}const fa=tr("<div></div>"),ha=e=>{let t,n,r;const[o,i]=on(!1),[a,s]=on(48);ln((()=>{const o=ua(0,"L");o.addData(e.sourceUrl),o.make(),t.innerHTML=o.createSvgTag(4,0);const i=t.firstElementChild.clientWidth,a=Math.round(256/i*1e5)/1e5;if(r){const e=4*Math.ceil(60/(4*a)),t=Fr(4*Math.ceil((i-e)/8));r.style.top=t,r.style.left=t,r.style.height=Fr(e),r.style.width=Fr(e),s(Math.round(48/a))}n.style.transform=`scale(${a})`}));let l=null;return $n(oa,{get class(){return e.class},onClick:()=>{i(!0),da(e.sourceUrl),null!=l&&clearTimeout(l),l=setTimeout((()=>i(!1)),1500)},get children(){return[$n(ia,{ref(e){"function"===typeof n?n(e):n=e},get children(){return[(()=>{const e=fa.cloneNode(!0);return"function"===typeof t?ir(t,e):t=e,e})(),$n(Hn,{get when(){return e.imageUrl},get children(){return $n(aa,{ref(e){"function"===typeof r?r(e):r=e},get children(){return $n(sa,{get src(){return e.imageUrl},alt:"",get size(){return a()}})}})}})]}}),$n(xi,{onBeforeEnter:e=>{Fi(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{Fi(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then((()=>{t()}))},get children(){return $n(Hn,{get when(){return o()&&!e.disableCopy},get children(){return $n(la,{get children(){return[$n(Va,{size:"xs"}),$n(ba,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),$n(Hn,{get when(){return!e.disableCopy},get children(){return $n(ra,{get children(){return $n(As,{})}})}})]}})};var pa=(e,t,n)=>{const r=t.trim().split(".").reduce(((e,t)=>e?e[t]:void 0),e);return void 0!==r?r:n},ga=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.language in e?navigator.language:Object.keys(e)[0];const[n,r]=on(t),[o,i]=Wo(e);return[(e,t,r)=>{const i=pa(o[n()],e,r||"");return"function"===typeof i?i(t):"string"===typeof i?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/{{(.*?)}}/g;return e.replace(n,((e,n)=>pa(t,n,"")))}(i,t||{}):i},{add(e,t){i(e,(e=>Object.assign(e||{},t)))},locale:e=>e?r(e):n(),dict:e=>pa(o,e)}]},ma=mn({}),va=()=>vn(ma);const ya=jr.div`
|
|
309
|
+
`;var da={exports:{}};!function(e){var t=function(){var e=function(e,t){var n=e,r=i[t],o=null,a=0,s=null,l=[],c={},u=function(e,t){o=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(a=4*n+17),d(0,0),d(a-7,0),d(0,a-7),h(),f(),k(e,t),n>=7&&g(e),null==s&&(s=_(n,r,l)),S(s,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||a<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||a<=t+r||(o[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},f=function(){for(var e=8;e<a-8;e+=1)null==o[e][6]&&(o[e][6]=e%2==0);for(var t=8;t<a-8;t+=1)null==o[6][t]&&(o[6][t]=t%2==0)},h=function(){for(var e=p.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var i=e[t],a=e[r];if(null==o[i][a])for(var s=-2;s<=2;s+=1)for(var l=-2;l<=2;l+=1)o[i+s][a+l]=-2==s||2==s||-2==l||2==l||0==s&&0==l}},g=function(e){for(var t=p.getBCHTypeNumber(n),r=0;r<18;r+=1){var i=!e&&1==(t>>r&1);o[Math.floor(r/3)][r%3+a-8-3]=i}for(r=0;r<18;r+=1){i=!e&&1==(t>>r&1);o[r%3+a-8-3][Math.floor(r/3)]=i}},k=function(e,t){for(var n=r<<3|t,i=p.getBCHTypeInfo(n),s=0;s<15;s+=1){var l=!e&&1==(i>>s&1);s<6?o[s][8]=l:s<8?o[s+1][8]=l:o[a-15+s][8]=l}for(s=0;s<15;s+=1){l=!e&&1==(i>>s&1);s<8?o[8][a-s-1]=l:s<9?o[8][15-s-1+1]=l:o[8][15-s-1]=l}o[a-8][8]=!e},S=function(e,t){for(var n=-1,r=a-1,i=7,s=0,l=p.getMaskFunction(t),c=a-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var u=0;u<2;u+=1)if(null==o[r][c-u]){var d=!1;s<e.length&&(d=1==(e[s]>>>i&1)),l(r,c-u)&&(d=!d),o[r][c-u]=d,-1==(i-=1)&&(s+=1,i=7)}if((r+=n)<0||a<=r){r-=n,n=-n;break}}},_=function(e,t,n){for(var r=v.getRSBlocks(e,t),o=y(),i=0;i<n.length;i+=1){var a=n[i];o.put(a.getMode(),4),o.put(a.getLength(),p.getLengthInBits(a.getMode(),e)),a.write(o)}var s=0;for(i=0;i<r.length;i+=1)s+=r[i].dataCount;if(o.getLengthInBits()>8*s)throw"code length overflow. ("+o.getLengthInBits()+">"+8*s+")";for(o.getLengthInBits()+4<=8*s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*s)&&(o.put(236,8),!(o.getLengthInBits()>=8*s));)o.put(17,8);return function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),s=0;s<t.length;s+=1){var l=t[s].dataCount,c=t[s].totalCount-l;r=Math.max(r,l),o=Math.max(o,c),i[s]=new Array(l);for(var u=0;u<i[s].length;u+=1)i[s][u]=255&e.getBuffer()[u+n];n+=l;var d=p.getErrorCorrectPolynomial(c),f=m(i[s],d.getLength()-1).mod(d);for(a[s]=new Array(d.getLength()-1),u=0;u<a[s].length;u+=1){var h=u+f.getLength()-a[s].length;a[s][u]=h>=0?f.getAt(h):0}}var g=0;for(u=0;u<t.length;u+=1)g+=t[u].totalCount;var v=new Array(g),y=0;for(u=0;u<r;u+=1)for(s=0;s<t.length;s+=1)u<i[s].length&&(v[y]=i[s][u],y+=1);for(u=0;u<o;u+=1)for(s=0;s<t.length;s+=1)u<a[s].length&&(v[y]=a[s][u],y+=1);return v}(o,r)};c.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=b(e);break;case"Alphanumeric":n=w(e);break;case"Byte":n=x(e);break;case"Kanji":n=C(e);break;default:throw"mode:"+t}l.push(n),s=null},c.isDark=function(e,t){if(e<0||a<=e||t<0||a<=t)throw e+","+t;return o[e][t]},c.getModuleCount=function(){return a},c.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=v.getRSBlocks(e,r),o=y(),i=0;i<l.length;i++){var a=l[i];o.put(a.getMode(),4),o.put(a.getLength(),p.getLengthInBits(a.getMode(),e)),a.write(o)}var s=0;for(i=0;i<t.length;i++)s+=t[i].dataCount;if(o.getLengthInBits()<=8*s)break}n=e}u(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){u(!0,n);var r=p.getLostPoint(c);(0==n||e>r)&&(e=r,t=n)}return t}())},c.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t="undefined"==typeof t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<c.getModuleCount();r+=1){n+="<tr>";for(var o=0;o<c.getModuleCount();o+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=c.isDark(r,o)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>"},c.createSvgTag=function(e,t,n,r){var o={};"object"==typeof arguments[0]&&(e=(o=arguments[0]).cellSize,t=o.margin,n=o.alt,r=o.title),e=e||2,t="undefined"==typeof t?4*e:t,(n="string"===typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"===typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var i,a,s,l,u=c.getModuleCount()*e+2*t,d="";for(l="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=o.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewBox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=r.text||n.text?' role="img" aria-labelledby="'+A([r.id,n.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+A(r.id)+'">'+A(r.text)+"</title>":"",d+=n.text?'<description id="'+A(n.id)+'">'+A(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',a=0;a<c.getModuleCount();a+=1)for(s=a*e+t,i=0;i<c.getModuleCount();i+=1)c.isDark(a,i)&&(d+="M"+(i*e+t)+","+s+l);return d+='" stroke="transparent" fill="black"/>',d+="</svg>"},c.createDataURL=function(e,t){e=e||2,t="undefined"==typeof t?4*e:t;var n=c.getModuleCount()*e+2*t,r=t,o=n-t;return E(n,n,(function(t,n){if(r<=t&&t<o&&r<=n&&n<o){var i=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return c.isDark(a,i)?0:1}return 1}))},c.createImgTag=function(e,t,n){e=e||2,t="undefined"==typeof t?4*e:t;var r=c.getModuleCount()*e+2*t,o="";return o+="<img",o+=' src="',o+=c.createDataURL(e,t),o+='"',o+=' width="',o+=r,o+='"',o+=' height="',o+=r,o+='"',n&&(o+=' alt="',o+=A(n),o+='"'),o+="/>"};var A=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="<";break;case">":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=r}}return t};return c.createASCII=function(e,t){if((e=e||1)<2)return function(e){e="undefined"==typeof e?2:e;var t,n,r,o,i,a=1*c.getModuleCount()+2*e,s=e,l=a-e,u={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},d={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},f="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),o=Math.floor((t+1-s)/1),n=0;n<a;n+=1)i="\u2588",s<=n&&n<l&&s<=t&&t<l&&c.isDark(r,Math.floor((n-s)/1))&&(i=" "),s<=n&&n<l&&s<=t+1&&t+1<l&&c.isDark(o,Math.floor((n-s)/1))?i+=" ":i+="\u2588",f+=e<1&&t+1>=l?d[i]:u[i];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("\u2580"):f.substring(0,f.length-1)}(t);e-=1,t="undefined"==typeof t?2*e:t;var n,r,o,i,a=c.getModuleCount()*e+2*t,s=t,l=a-t,u=Array(e+1).join("\u2588\u2588"),d=Array(e+1).join(" "),f="",h="";for(n=0;n<a;n+=1){for(o=Math.floor((n-s)/e),h="",r=0;r<a;r+=1)i=1,s<=r&&r<l&&s<=n&&n<l&&c.isDark(o,Math.floor((r-s)/e))&&(i=0),h+=i?u:d;for(o=0;o<e;o+=1)f+=h+"\n"}return f.substring(0,f.length-1)},c.renderTo2dContext=function(e,t){t=t||2;for(var n=c.getModuleCount(),r=0;r<n;r++)for(var o=0;o<n;o++)e.fillStyle=c.isDark(r,o)?"black":"white",e.fillRect(r*t,o*t,t,t)},c};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=S(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},o=0,i={};;){var a=n.read();if(-1==a)break;var s=r(),l=r()<<8|r();i[String.fromCharCode(a<<8|s)]=l,o+=1}if(o!=t)throw o+" != "+t;return i}(),r="?".charCodeAt(0);return function(e){for(var t=[],o=0;o<e.length;o+=1){var i=e.charCodeAt(o);if(i<128)t.push(i);else{var a=n[e.charAt(o)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(r)}}return t}};var t=1,n=2,r=4,o=8,i={L:1,M:0,Q:3,H:2},a=0,s=1,l=2,c=3,u=4,d=5,f=6,h=7,p=function(){var e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],i=1335,p=7973,v={},y=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t};return v.getBCHTypeInfo=function(e){for(var t=e<<10;y(t)-y(i)>=0;)t^=i<<y(t)-y(i);return 21522^(e<<10|t)},v.getBCHTypeNumber=function(e){for(var t=e<<12;y(t)-y(p)>=0;)t^=p<<y(t)-y(p);return e<<12|t},v.getPatternPosition=function(t){return e[t-1]},v.getMaskFunction=function(e){switch(e){case a:return function(e,t){return(e+t)%2==0};case s:return function(e,t){return e%2==0};case l:return function(e,t){return t%3==0};case c:return function(e,t){return(e+t)%3==0};case u:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case d:return function(e,t){return e*t%2+e*t%3==0};case f:return function(e,t){return(e*t%2+e*t%3)%2==0};case h:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},v.getErrorCorrectPolynomial=function(e){for(var t=m([1],0),n=0;n<e;n+=1)t=t.multiply(m([1,g.gexp(n)],0));return t},v.getLengthInBits=function(e,i){if(1<=i&&i<10)switch(e){case t:return 10;case n:return 9;case r:case o:return 8;default:throw"mode:"+e}else if(i<27)switch(e){case t:return 12;case n:return 11;case r:return 16;case o:return 10;default:throw"mode:"+e}else{if(!(i<41))throw"type:"+i;switch(e){case t:return 14;case n:return 13;case r:return 16;case o:return 12;default:throw"mode:"+e}}},v.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var o=0;o<t;o+=1){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l+=1)o+l<0||t<=o+l||0==s&&0==l||a==e.isDark(r+s,o+l)&&(i+=1);i>5&&(n+=3+i-5)}for(r=0;r<t-1;r+=1)for(o=0;o<t-1;o+=1){var c=0;e.isDark(r,o)&&(c+=1),e.isDark(r+1,o)&&(c+=1),e.isDark(r,o+1)&&(c+=1),e.isDark(r+1,o+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<t;r+=1)for(o=0;o<t-6;o+=1)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o+=1)for(r=0;r<t-6;r+=1)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var u=0;for(o=0;o<t;o+=1)for(r=0;r<t;r+=1)e.isDark(r,o)&&(u+=1);return n+=10*(Math.abs(100*u/t/t-50)/5)},v}(),g=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;var r={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}};return r}();function m(e,t){if("undefined"==typeof e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=new Array(e.length-n+t),o=0;o<e.length-n;o+=1)r[o]=e[o+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var o=0;o<e.getLength();o+=1)t[n+o]^=g.gexp(g.glog(r.getAt(n))+g.glog(e.getAt(o)));return m(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=g.glog(r.getAt(0))-g.glog(e.getAt(0)),n=new Array(r.getLength()),o=0;o<r.getLength();o+=1)n[o]=r.getAt(o);for(o=0;o<e.getLength();o+=1)n[o]^=g.gexp(g.glog(e.getAt(o))+t);return m(n,0).mod(e)}};return r}var v=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={};return n.getRSBlocks=function(n,r){var o=function(t,n){switch(n){case i.L:return e[4*(t-1)+0];case i.M:return e[4*(t-1)+1];case i.Q:return e[4*(t-1)+2];case i.H:return e[4*(t-1)+3];default:return}}(n,r);if("undefined"==typeof o)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var a=o.length/3,s=[],l=0;l<a;l+=1)for(var c=o[3*l+0],u=o[3*l+1],d=o[3*l+2],f=0;f<c;f+=1)s.push(t(u,d));return s},n}(),y=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},b=function(e){var n=t,r=e,o={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+2<t.length;)e.put(i(t.substring(n,n+3)),10),n+=3;n<t.length&&(t.length-n==1?e.put(i(t.substring(n,n+1)),4):t.length-n==2&&e.put(i(t.substring(n,n+2)),7))}},i=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+a(e.charAt(n));return t},a=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return o},w=function(e){var t=n,r=e,o={getMode:function(){return t},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+1<t.length;)e.put(45*i(t.charAt(n))+i(t.charAt(n+1)),11),n+=2;n<t.length&&e.put(i(t.charAt(n)),6)}},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return o},x=function(t){var n=r,o=e.stringToBytes(t),i={getMode:function(){return n},getLength:function(e){return o.length},write:function(e){for(var t=0;t<o.length;t+=1)e.put(o[t],8)}};return i},C=function(t){var n=o,r=e.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(){var e=r("\u53cb");if(2!=e.length||38726!=(e[0]<<8|e[1]))throw"sjis not supported."}();var i=r(t),a={getMode:function(){return n},getLength:function(e){return~~(i.length/2)},write:function(e){for(var t=i,n=0;n+1<t.length;){var r=(255&t[n])<<8|255&t[n+1];if(33088<=r&&r<=40956)r-=33088;else{if(!(57408<=r&&r<=60351))throw"illegal char at "+(n+1)+"/"+r;r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}};return a},k=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var o=0;o<r;o+=1)t.writeByte(e[o+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+="]"}};return t},S=function(e){var t=e,n=0,r=0,o=0,i={read:function(){for(;o<8;){if(n>=t.length){if(0==o)return-1;throw"unexpected end of file./"+o}var e=t.charAt(n);if(n+=1,"="==e)return o=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return i},E=function(e,t,n){for(var r=function(e,t){var n=e,r=t,o=new Array(e*t),i={setPixel:function(e,t,r){o[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var o=0;t.length-o>255;)e.writeByte(255),e.writeBytes(t,o,255),o+=255;e.writeByte(t.length-o),e.writeBytes(t,o,t.length-o),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,i=s(),a=0;a<t;a+=1)i.add(String.fromCharCode(a));i.add(String.fromCharCode(t)),i.add(String.fromCharCode(n));var l=k(),c=function(e){var t=e,n=0,r=0;return{write:function(e,o){if(e>>>o!=0)throw"length over";for(;n+o>=8;)t.writeByte(255&(e<<n|r)),o-=8-n,e>>>=8-n,r=0,n=0;r|=e<<n,n+=o},flush:function(){n>0&&t.writeByte(r)}}}(l);c.write(t,r);var u=0,d=String.fromCharCode(o[u]);for(u+=1;u<o.length;){var f=String.fromCharCode(o[u]);u+=1,i.contains(d+f)?d+=f:(c.write(i.indexOf(d),r),i.size()<4095&&(i.size()==1<<r&&(r+=1),i.add(d+f)),d=f)}return c.write(i.indexOf(d),r),c.write(n,r),c.flush(),l.toByteArray()},s=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return"undefined"!=typeof e[t]}};return n};return i}(e,t),o=0;o<t;o+=1)for(var i=0;i<e;i+=1)r.setPixel(i,o,n(i,o));var a=k();r.write(a);for(var s=function(){var e=0,t=0,n=0,r="",o={},i=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return o.writeByte=function(r){for(e=e<<8|255&r,t+=8,n+=1;t>=6;)i(e>>>t-6),t-=6},o.flush=function(){if(t>0&&(i(e<<6-t),e=0,t=0),n%3!=0)for(var o=3-n%3,a=0;a<o;a+=1)r+="="},o.toString=function(){return r},o}(),l=a.toByteArray(),c=0;c<l.length;c+=1)s.writeByte(l[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();t.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},e.exports=t}(da);const fa=da.exports;function ha(e){return Ft(this,null,(function*(){try{if(!(null==navigator?void 0:navigator.clipboard))throw new Gr("Clipboard API not available");return yield navigator.clipboard.writeText(e)}catch(Vv){}!function(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}finally{document.body.removeChild(t)}}(e)}))}const pa=rr("<div></div>"),ga=e=>{let t,n,r;const[o,i]=sn(!1),[a,s]=sn(48);un((()=>{const o=fa(0,"L");o.addData(e.sourceUrl),o.make(),t.innerHTML=o.createSvgTag(4,0);const i=t.firstElementChild.clientWidth,a=Math.round(256/i*1e5)/1e5;if(r){const e=4*Math.ceil(60/(4*a)),t=Vr(4*Math.ceil((i-e)/8));r.style.top=t,r.style.left=t,r.style.height=Vr(e),r.style.width=Vr(e),s(Math.round(48/a))}n.style.transform=`scale(${a})`}));let l=null;return Un(aa,{get class(){return e.class},onClick:()=>{i(!0),ha(e.sourceUrl),null!=l&&clearTimeout(l),l=setTimeout((()=>i(!1)),1500)},get children(){return[Un(sa,{ref(e){"function"===typeof n?n(e):n=e},get children(){return[(()=>{const e=pa.cloneNode(!0);return"function"===typeof t?sr(t,e):t=e,e})(),Un(Kn,{get when(){return e.imageUrl},get children(){return Un(la,{ref(e){"function"===typeof r?r(e):r=e},get children(){return Un(ca,{get src(){return e.imageUrl},alt:"",get size(){return a()}})}})}})]}}),Un(ki,{onBeforeEnter:e=>{Vi(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{Vi(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then((()=>{t()}))},get children(){return Un(Kn,{get when(){return o()&&!e.disableCopy},get children(){return Un(ua,{get children(){return[Un(qa,{size:"xs"}),Un(xa,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),Un(Kn,{get when(){return!e.disableCopy},get children(){return Un(ia,{get children(){return Un(Rs,{})}})}})]}})};var ma=(e,t,n)=>{const r=t.trim().split(".").reduce(((e,t)=>e?e[t]:void 0),e);return void 0!==r?r:n},va=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.language in e?navigator.language:Object.keys(e)[0];const[n,r]=sn(t),[o,i]=Bo(e);return[(e,t,r)=>{const i=ma(o[n()],e,r||"");return"function"===typeof i?i(t):"string"===typeof i?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/{{(.*?)}}/g;return e.replace(n,((e,n)=>ma(t,n,"")))}(i,t||{}):i},{add(e,t){i(e,(e=>Object.assign(e||{},t)))},locale:e=>e?r(e):n(),dict:e=>ma(o,e)}]},ya=yn({}),ba=()=>bn(ya);const wa=Dr.div`
|
|
310
310
|
font-style: normal;
|
|
311
311
|
font-weight: ${e=>e.fontWeight};
|
|
312
312
|
font-size: ${e=>e.fontSize};
|
|
313
313
|
line-height: ${e=>e.lineHeight};
|
|
314
314
|
|
|
315
315
|
color: ${e=>e.color};
|
|
316
|
-
`,
|
|
316
|
+
`,xa=e=>{const t=jr(),[n]=ba();let r;const o=Fn({fontSize:"14px",fontWeight:"510",lineHeight:"130%"},e);return un((()=>{r&&"unset"!==o.cursor&&"pointer"!==getComputedStyle(r).cursor&&(r.style.cursor="default")})),Un(wa,{get fontSize(){return o.fontSize},get fontWeight(){return o.fontWeight},get lineHeight(){return o.lineHeight},get color(){return e.color||t.colors.text.primary},get class(){return o.class},ref(e){"function"===typeof r?r(e):r=e},"data-tc-text":"true",get children(){var e;return dn((()=>!!o.translationKey))()?n(o.translationKey,o.translationValues,null==(e=o.children)?void 0:e.toString()):o.children}})},Ca=Dr.div`
|
|
317
317
|
position: relative;
|
|
318
318
|
|
|
319
319
|
&::after {
|
|
@@ -328,11 +328,11 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
328
328
|
|
|
329
329
|
border-radius: inherit;
|
|
330
330
|
}
|
|
331
|
-
`,
|
|
331
|
+
`,ka=Dr(Jo)`
|
|
332
332
|
width: 100%;
|
|
333
333
|
height: 100%;
|
|
334
334
|
border-radius: inherit;
|
|
335
|
-
`,
|
|
335
|
+
`,Sa=e=>Un(Ca,{get class(){return e.class},get children(){return Un(ka,{get src(){return e.src}})}}),Ea={m:"16px",s:"12px",none:"0"},_a={m:"6px",s:"6px",none:"0"},Aa=Dr.button`
|
|
336
336
|
position: relative;
|
|
337
337
|
cursor: pointer;
|
|
338
338
|
border: none;
|
|
@@ -345,7 +345,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
345
345
|
|
|
346
346
|
transition: transform 0.125s ease-in-out;
|
|
347
347
|
|
|
348
|
-
${
|
|
348
|
+
${mi} {
|
|
349
349
|
&:hover {
|
|
350
350
|
transform: scale(1.04);
|
|
351
351
|
}
|
|
@@ -355,41 +355,41 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
355
355
|
transform: scale(0.96);
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
${
|
|
358
|
+
${pi("mobile")} {
|
|
359
359
|
padding: 8px 4px;
|
|
360
360
|
width: 82px;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
${
|
|
363
|
+
${gi} {
|
|
364
364
|
&:active {
|
|
365
365
|
transform: scale(0.92);
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
`,
|
|
368
|
+
`,Ta=Dr(Sa)`
|
|
369
369
|
width: 60px;
|
|
370
370
|
height: 60px;
|
|
371
|
-
border-radius: ${e=>
|
|
371
|
+
border-radius: ${e=>Ea[e.theme.borderRadius]};
|
|
372
372
|
|
|
373
373
|
margin-bottom: 8px;
|
|
374
|
-
`,
|
|
374
|
+
`,Ra=Dr(Jo)`
|
|
375
375
|
position: absolute;
|
|
376
376
|
right: 10px;
|
|
377
377
|
top: 50px;
|
|
378
378
|
width: 24px;
|
|
379
379
|
height: 24px;
|
|
380
|
-
border-radius: ${e=>
|
|
380
|
+
border-radius: ${e=>_a[e.theme.borderRadius]};
|
|
381
381
|
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
|
|
382
|
-
`,
|
|
382
|
+
`,Oa=Dr(xa)`
|
|
383
383
|
max-width: 90px;
|
|
384
384
|
font-weight: 510;
|
|
385
385
|
white-space: nowrap;
|
|
386
386
|
text-overflow: ellipsis;
|
|
387
387
|
overflow: hidden;
|
|
388
388
|
|
|
389
|
-
${
|
|
389
|
+
${pi("mobile")} {
|
|
390
390
|
max-width: 80px;
|
|
391
391
|
}
|
|
392
|
-
`,
|
|
392
|
+
`,Pa=Dr(xa)`
|
|
393
393
|
font-weight: ${e=>e.colorPrimary?"510":"400"};
|
|
394
394
|
max-width: 90px;
|
|
395
395
|
white-space: nowrap;
|
|
@@ -397,10 +397,10 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
397
397
|
overflow: hidden;
|
|
398
398
|
color: ${e=>e.colorPrimary?e.theme.colors.text.primary:e.theme.colors.text.secondary};
|
|
399
399
|
|
|
400
|
-
${
|
|
400
|
+
${pi("mobile")} {
|
|
401
401
|
max-width: 80px;
|
|
402
402
|
}
|
|
403
|
-
`,
|
|
403
|
+
`,La=rr("<div></div>"),Ma=e=>{let t=null;const n=()=>{const e=null==t?void 0:t.querySelector("div");if(e&&e.scrollWidth>e.clientWidth){let t=0;const n=-.4,r=.05;for(;e.scrollWidth>e.clientWidth&&t>=n;)t-=r,e.style.letterSpacing=`${t}px`;0!==t&&(t-=r,e.style.letterSpacing=`${t}px`)}};return gn((()=>n())),un((()=>{n()})),Un(Aa,{get class(){return e.class},onClick:()=>e.onClick(),"data-tc-wallet-item":"true",get children(){return[dn((()=>dn((()=>"string"===typeof e.icon))()?Un(Ta,{get src(){return e.icon}}):e.icon)),dn((()=>dn((()=>!!e.badgeUrl))()&&Un(Ra,{get src(){return e.badgeUrl}}))),(()=>{const n=La.cloneNode(!0);return sr((e=>t=e),n),lr(n,Un(Oa,{get children(){return e.name}})),n})(),dn((()=>dn((()=>!!e.secondLine))()&&Un(Pa,{get colorPrimary(){var t;return null==(t=e.secondLineColorPrimary)||t},get children(){return e.secondLine}})))]}})},Na=Dr.h1`
|
|
404
404
|
font-style: normal;
|
|
405
405
|
font-weight: 590;
|
|
406
406
|
font-size: 20px;
|
|
@@ -414,7 +414,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
414
414
|
margin-bottom: 0;
|
|
415
415
|
|
|
416
416
|
cursor: default;
|
|
417
|
-
`,
|
|
417
|
+
`,Ia=e=>{const[t]=ba();return Un(Na,{get class(){return e.class},"data-tc-h1":"true",get children(){var n;return dn((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},ja=Dr.h2`
|
|
418
418
|
font-style: normal;
|
|
419
419
|
font-weight: 400;
|
|
420
420
|
font-size: 16px;
|
|
@@ -428,7 +428,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
428
428
|
margin-bottom: 32px;
|
|
429
429
|
|
|
430
430
|
cursor: default;
|
|
431
|
-
|
|
431
|
+
`,$a=e=>{const[t]=ba();return Un(ja,{get class(){return e.class},"data-tc-h2":"true",get children(){var n;return dn((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},Da=Dr.h3`
|
|
432
432
|
font-style: normal;
|
|
433
433
|
font-weight: 510;
|
|
434
434
|
font-size: 16px;
|
|
@@ -440,8 +440,8 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
440
440
|
margin-bottom: 0;
|
|
441
441
|
|
|
442
442
|
cursor: default;
|
|
443
|
-
|
|
444
|
-
animation: ${
|
|
443
|
+
`,Ua=e=>{const[t]=ba();return Un(Da,{"data-tc-h3":"true",get class(){return e.class},get children(){var n;return dn((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},Wa=rr('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.75 7.5C9.33579 7.5 9 7.16421 9 6.75C9 6.33579 9.33579 6 9.75 6H21.25C21.6642 6 22 6.33579 22 6.75V18.25C22 18.6642 21.6642 19 21.25 19C20.8358 19 20.5 18.6642 20.5 18.25V8.56066L6.28033 22.7803C5.98744 23.0732 5.51256 23.0732 5.21967 22.7803C4.92678 22.4874 4.92678 22.0126 5.21967 21.7197L19.4393 7.5H9.75Z"></path></svg>'),za=e=>{const t=jr(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=Wa.cloneNode(!0),t=e.firstChild;return cn((r=>{const o=n(),i=n();return o!==r._v$&&or(e,"fill",r._v$=o),i!==r._v$2&&or(t,"fill",r._v$2=i),r}),{_v$:void 0,_v$2:void 0}),e})()},Ba=rr('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.1839 17.7069C13.6405 18.6507 13.3688 19.1226 13.0591 19.348C12.4278 19.8074 11.5723 19.8074 10.941 19.348C10.6312 19.1226 10.3595 18.6507 9.81613 17.7069L5.52066 10.2464C4.76864 8.94024 4.39263 8.28717 4.33762 7.75894C4.2255 6.68236 4.81894 5.65591 5.80788 5.21589C6.29309 5 7.04667 5 8.55383 5H15.4462C16.9534 5 17.7069 5 18.1922 5.21589C19.1811 5.65591 19.7745 6.68236 19.6624 7.75894C19.6074 8.28717 19.2314 8.94024 18.4794 10.2464L14.1839 17.7069ZM11.1 16.3412L6.56139 8.48002C6.31995 8.06185 6.19924 7.85276 6.18146 7.68365C6.14523 7.33896 6.33507 7.01015 6.65169 6.86919C6.80703 6.80002 7.04847 6.80002 7.53133 6.80002H7.53134L11.1 6.80002V16.3412ZM12.9 16.3412L17.4387 8.48002C17.6801 8.06185 17.8008 7.85276 17.8186 7.68365C17.8548 7.33896 17.665 7.01015 17.3484 6.86919C17.193 6.80002 16.9516 6.80002 16.4687 6.80002L12.9 6.80002V16.3412Z"></path></svg>'),Fa=e=>{const t=jr();return(()=>{const n=Ba.cloneNode(!0),r=n.firstChild;return cn((()=>or(r,"fill",e.fill||t.colors.icon.primary))),n})()},Ha=rr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><g clip-path="url(#clip0_3783_2045)"><circle cx="8" cy="8.00098" r="8"></circle><path d="M4.75 8.50098L7 10.751L11.75 6.00098" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_3783_2045"><rect width="16" height="16" fill="white" transform="translate(0 0.000976562)"></rect></clipPath></defs></svg>'),Va=rr('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M17.1364 9.6364C17.4879 9.28493 17.4879 8.71508 17.1364 8.36361C16.7849 8.01214 16.2151 8.01214 15.8636 8.36361L10 14.2272L8.1364 12.3636C7.78493 12.0121 7.21508 12.0121 6.86361 12.3636C6.51214 12.7151 6.51214 13.2849 6.86361 13.6364L9.36361 16.1364C9.71508 16.4879 10.2849 16.4879 10.6364 16.1364L17.1364 9.6364Z"></path></svg>'),Ka=rr('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M50.9142 28.4142C51.6953 27.6332 51.6953 26.3668 50.9142 25.5858C50.1332 24.8047 48.8668 24.8047 48.0858 25.5858L30 43.6716L23.9142 37.5858C23.1332 36.8047 21.8668 36.8047 21.0858 37.5858C20.3047 38.3668 20.3047 39.6332 21.0858 40.4142L28.5858 47.9142C29.3668 48.6953 30.6332 48.6953 31.4142 47.9142L50.9142 28.4142Z"></path></svg>'),qa=e=>{const t=jr(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.success;return dn((()=>{const o=dn((()=>"xs"===n()));return()=>o()?(()=>{const n=Ha.cloneNode(!0),o=n.firstChild.firstChild,i=o.nextSibling;return cn((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&or(n,"class",a._v$=s),l!==a._v$2&&or(o,"fill",a._v$2=l),c!==a._v$3&&or(i,"stroke",a._v$3=c),a}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=dn((()=>"s"===n()));return()=>o()?(()=>{const n=Va.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return cn((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&or(n,"class",a._v$4=s),l!==a._v$5&&or(o,"fill",a._v$5=l),c!==a._v$6&&or(i,"fill",a._v$6=c),a}),{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=Ka.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return cn((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&or(n,"class",a._v$7=s),l!==a._v$8&&or(o,"fill",a._v$8=l),c!==a._v$9&&or(i,"fill",a._v$9=c),a}),{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},Ga=rr('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M24.0858 26.9142C23.3047 26.1332 23.3047 24.8668 24.0858 24.0858C24.8668 23.3047 26.1332 23.3047 26.9142 24.0858L36 33.1716L45.0858 24.0858C45.8668 23.3047 47.1332 23.3047 47.9142 24.0858C48.6953 24.8668 48.6953 26.1332 47.9142 26.9142L38.8284 36L47.9142 45.0858C48.6953 45.8668 48.6953 47.1332 47.9142 47.9142C47.1332 48.6953 45.8668 48.6953 45.0858 47.9142L36 38.8284L26.9142 47.9142C26.1332 48.6953 24.8668 48.6953 24.0858 47.9142C23.3047 47.1332 23.3047 45.8668 24.0858 45.0858L33.1716 36L24.0858 26.9142Z"></path></svg>'),Qa=rr('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><circle cx="24" cy="24.001" r="22"></circle><path d="M24 24.001L31.5 16.501M24 24.001L16.5 16.501M24 24.001L16.5 31.501M24 24.001L31.5 31.501" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path></svg>'),Za=rr('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M7.86361 9.1364C7.51214 8.78493 7.51214 8.21508 7.86361 7.86361C8.21508 7.51214 8.78493 7.51214 9.1364 7.86361L12 10.7272L14.8636 7.86361C15.2151 7.51214 15.7849 7.51214 16.1364 7.86361C16.4879 8.21508 16.4879 8.78493 16.1364 9.1364L13.2728 12L16.1364 14.8636C16.4879 15.2151 16.4879 15.7849 16.1364 16.1364C15.7849 16.4879 15.2151 16.4879 14.8636 16.1364L12 13.2728L9.1364 16.1364C8.78493 16.4879 8.21508 16.4879 7.86361 16.1364C7.51214 15.7849 7.51214 15.2151 7.86361 14.8636L10.7272 12L7.86361 9.1364Z"></path></svg>'),Ya=e=>{const t=jr(),n=()=>e.size||"m",r=()=>e.fill||t.colors.icon.error;return dn((()=>{const o=dn((()=>"m"===n()));return()=>o()?(()=>{const n=Ga.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return cn((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&or(n,"class",a._v$=s),l!==a._v$2&&or(o,"fill",a._v$2=l),c!==a._v$3&&or(i,"fill",a._v$3=c),a}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=dn((()=>"s"===n()));return()=>o()?(()=>{const n=Qa.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return cn((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&or(n,"class",a._v$4=s),l!==a._v$5&&or(o,"fill",a._v$5=l),c!==a._v$6&&or(i,"stroke",a._v$6=c),a}),{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=Za.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return cn((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&or(n,"class",a._v$7=s),l!==a._v$8&&or(o,"fill",a._v$8=l),c!==a._v$9&&or(i,"fill",a._v$9=c),a}),{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},Xa=rr('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.55 5.85123C18.9459 7.81184 20.1094 12.1541 18.1488 15.55C16.1882 18.9459 11.8459 20.1094 8.44998 18.1488C8.01952 17.9003 7.46909 18.0478 7.22056 18.4782C6.97203 18.9087 7.11952 19.4591 7.54998 19.7076C11.8068 22.1653 17.2499 20.7068 19.7076 16.45C22.1653 12.1932 20.7068 6.75005 16.45 4.29239C12.1932 1.83472 6.75003 3.29321 4.29236 7.55001C4.04383 7.98047 4.19132 8.53091 4.62178 8.77943C5.05224 9.02796 5.60268 8.88048 5.8512 8.45001C7.81181 5.05413 12.1541 3.89062 15.55 5.85123Z"></path></svg>'),Ja=rr('<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 44 44" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 2.99951C11.5066 2.99951 3 11.5061 3 21.9995C3 32.4929 11.5066 40.9995 22 40.9995C22.8284 40.9995 23.5 41.6711 23.5 42.4995C23.5 43.3279 22.8284 43.9995 22 43.9995C9.84974 43.9995 0 34.1498 0 21.9995C0 9.84925 9.84974 -0.000488281 22 -0.000488281C34.1503 -0.000488281 44 9.84925 44 21.9995C44 22.8279 43.3284 23.4995 42.5 23.4995C41.6716 23.4995 41 22.8279 41 21.9995C41 11.5061 32.4934 2.99951 22 2.99951Z"></path></svg>'),es=rr('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 56.7846C35.479 63.412 50.1572 59.479 56.7846 47.9999C63.412 36.5209 59.479 21.8427 48 15.2153C36.521 8.58791 21.8428 12.5209 15.2154 23.9999" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path></svg>'),ts=e=>{const t=jr(),n=()=>e.size||"xs",r=()=>e.fill||t.colors.icon.tertiary,o=Lr`
|
|
444
|
+
animation: ${Mr`
|
|
445
445
|
0% {
|
|
446
446
|
transform: rotate(0deg);
|
|
447
447
|
}
|
|
@@ -449,21 +449,21 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
449
449
|
transform: rotate(360deg);
|
|
450
450
|
}
|
|
451
451
|
`} 1s linear infinite;
|
|
452
|
-
`;return cn((()=>{const t=cn((()=>"xs"===n()));return()=>t()?(()=>{const t=Za.cloneNode(!0),n=t.firstChild;return sn((i=>{const a=Ot(o,e.class),s=r();return a!==i._v$&&nr(t,"class",i._v$=a),s!==i._v$2&&nr(n,"fill",i._v$2=s),i}),{_v$:void 0,_v$2:void 0}),t})():(()=>{const t=cn((()=>"s"===n()));return()=>t()?(()=>{const t=Ya.cloneNode(!0),n=t.firstChild;return sn((i=>{const a=Ot(o,e.class),s=r();return a!==i._v$3&&nr(t,"class",i._v$3=a),s!==i._v$4&&nr(n,"fill",i._v$4=s),i}),{_v$3:void 0,_v$4:void 0}),t})():(()=>{const t=Xa.cloneNode(!0),n=t.firstChild;return sn((i=>{const a=Ot(o,e.class),s=r();return a!==i._v$5&&nr(t,"class",i._v$5=a),s!==i._v$6&&nr(n,"stroke",i._v$6=s),i}),{_v$5:void 0,_v$6:void 0}),t})()})()})())},es=tr('<svg width="158" height="28" viewBox="0 0 158 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M28 14.001C28 21.733 21.732 28.001 14 28.001C6.26801 28.001 0 21.733 0 14.001C0 6.26899 6.26801 0.000976562 14 0.000976562C21.732 0.000976562 28 6.26899 28 14.001ZM9.21931 8.00098H18.7801H18.7813C20.538 8.00098 21.6522 9.89966 20.7691 11.4302L14.8672 21.6576C14.4822 22.3254 13.5172 22.3254 13.1322 21.6576L7.23158 11.4302C6.34721 9.89726 7.4614 8.00098 9.21931 8.00098ZM13.1262 18.5882V9.74806H9.21811C8.78976 9.74806 8.53708 10.2029 8.74163 10.5578L11.8423 16.1035L13.1262 18.5882ZM16.1559 16.1047L19.2554 10.5566C19.4599 10.2017 19.2073 9.74685 18.7789 9.74685H14.8709V18.5906L16.1559 16.1047Z" fill="#0098EA"></path><path d="M18.7802 8.00098H9.21936C7.46145 8.00098 6.34727 9.89726 7.23164 11.4302L13.1322 21.6576C13.5173 22.3254 14.4823 22.3254 14.8673 21.6576L20.7691 11.4302C21.6523 9.89966 20.5381 8.00098 18.7814 8.00098H18.7802ZM13.1274 18.5906L11.8424 16.1035L8.74168 10.5578C8.53714 10.2029 8.78981 9.74806 9.21816 9.74806H13.1262V18.5918L13.1274 18.5906ZM19.2555 10.5566L16.156 16.1047L14.8709 18.5906V9.74685H18.779C19.2073 9.74685 19.46 10.2017 19.2555 10.5566Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M51.7483 22.1967C55.7182 22.1967 58.9609 18.954 58.9609 14.9841C58.9609 11.0142 55.7182 7.77148 51.7483 7.77148C47.7588 7.77148 44.5357 11.0142 44.5357 14.9841C44.5357 18.954 47.7588 22.1967 51.7483 22.1967ZM51.7483 19.1702C49.4686 19.1702 47.6802 17.2442 47.6802 14.9841C47.6802 12.724 49.4686 10.798 51.7483 10.798C54.0084 10.798 55.7968 12.724 55.7968 14.9841C55.7968 17.2442 54.0084 19.1702 51.7483 19.1702ZM37.0698 21.9609H40.2142V10.9946H44.2843V8.00732H33V10.9946H37.0698V21.9609ZM69.9379 8.00732H73.0823V21.9609H70.3899L63.59 13.3333V21.9609H60.4652V8.00732H63.1576L69.9379 16.6153V8.00732ZM79.2259 14.9887C79.2259 10.9202 82.351 7.77539 86.4982 7.77539C89.8592 7.77539 92.5519 9.95709 93.2202 12.6891H90.7437C90.154 11.0971 88.4637 9.9964 86.4982 9.9964C83.5893 9.9964 81.5452 12.1781 81.5452 14.9887C81.5452 17.7994 83.5893 19.9811 86.4982 19.9811C88.4637 19.9811 90.154 18.8804 90.7437 17.2884H93.2202C92.5519 20.0204 89.8592 22.2021 86.4982 22.2021C82.351 22.2021 79.2259 19.0573 79.2259 14.9887ZM104.584 17.0525C104.584 19.9025 102.343 22.1628 99.4342 22.1628C96.5253 22.1628 94.2846 19.9025 94.2846 17.0525C94.2846 14.2025 96.5253 11.9422 99.4342 11.9422C102.343 11.9422 104.584 14.2025 104.584 17.0525ZM96.4663 17.0525C96.4663 18.8018 97.6849 20.158 99.4342 20.158C101.164 20.158 102.382 18.8018 102.382 17.0525C102.382 15.3032 101.164 13.947 99.4342 13.947C97.6849 13.947 96.4663 15.3032 96.4663 17.0525ZM108.626 12.1388H106.463V21.9662H108.626V17.1311C108.626 15.0281 109.726 13.9077 111.161 13.9077C112.419 13.9077 113.205 14.8512 113.205 16.4039V21.9662H115.367V16.0501C115.367 13.5539 113.893 11.9422 111.613 11.9422C110.335 11.9422 109.215 12.4926 108.626 13.4753V12.1388ZM117.839 12.1388H120.001V13.4753C120.59 12.4926 121.711 11.9422 122.988 11.9422C125.268 11.9422 126.742 13.5539 126.742 16.0501V21.9662H124.58V16.4039C124.58 14.8512 123.794 13.9077 122.536 13.9077C121.101 13.9077 120.001 15.0281 120.001 17.1311V21.9662H117.839V12.1388ZM133.558 22.1628C136.054 22.1628 137.823 20.728 138.373 18.8804H136.113C135.661 19.8238 134.717 20.2563 133.636 20.2563C131.887 20.2563 130.747 19.077 130.668 17.5832H138.491C138.688 14.2419 136.585 11.9422 133.577 11.9422C130.551 11.9422 128.526 14.1436 128.526 17.0525C128.526 20.0007 130.629 22.1628 133.558 22.1628ZM130.747 16.0501C131.042 14.5367 132.162 13.7505 133.518 13.7505C134.717 13.7505 135.838 14.4581 136.172 16.0501H130.747ZM149.851 18.3694C149.32 20.5511 147.453 22.1628 144.859 22.1628C141.871 22.1628 139.709 19.8828 139.709 17.0525C139.709 14.2222 141.871 11.9422 144.859 11.9422C147.453 11.9422 149.32 13.5539 149.851 15.7356H147.571C147.178 14.6743 146.215 13.9077 144.859 13.9077C143.109 13.9077 141.91 15.2246 141.91 17.0525C141.91 18.8804 143.109 20.1973 144.859 20.1973C146.215 20.1973 147.178 19.4307 147.571 18.3694H149.851ZM155.75 22.0645C156.418 22.0645 156.929 21.9859 157.362 21.8483V19.9221C157.047 20.0401 156.615 20.1187 156.202 20.1187C155.082 20.1187 154.551 19.6666 154.551 18.448V14.065H157.362V12.1388H154.551V9.40675H152.389V12.1388H150.345V14.065H152.389V18.8018C152.389 21.0228 153.863 22.0645 155.75 22.0645Z"></path></svg>'),ts=()=>{const e=Nr();return(()=>{const t=es.cloneNode(!0),n=t.firstChild.nextSibling.nextSibling;return sn((()=>nr(n,"fill",e.theme===br.DARK?e.colors.constant.white:e.colors.constant.black))),t})()},ns=tr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.56608 4.42584C5.82527 3.32158 6.8176 2.5 8.00001 2.5C9.38072 2.5 10.5 3.61929 10.5 5C10.5 5.63026 10.3391 6.0386 10.1264 6.34455C9.90018 6.66993 9.58561 6.92478 9.18864 7.20877C9.12579 7.25372 9.05873 7.30025 8.9887 7.34883C8.27392 7.84472 7.25001 8.55507 7.25001 10V10.25C7.25001 10.6642 7.5858 11 8.00001 11C8.41422 11 8.75001 10.6642 8.75001 10.25V10C8.75001 9.36502 9.10777 9.1096 9.94554 8.51149L10.0614 8.42873C10.4769 8.13147 10.9748 7.75194 11.358 7.20076C11.7547 6.63015 12 5.91973 12 5C12 2.79086 10.2091 1 8.00001 1C6.10564 1 4.5205 2.31615 4.10577 4.08308C4.01112 4.48634 4.26129 4.88997 4.66454 4.98462C5.0678 5.07927 5.47143 4.8291 5.56608 4.42584ZM8.00001 15C8.60752 15 9.10001 14.5075 9.10001 13.9C9.10001 13.2925 8.60752 12.8 8.00001 12.8C7.39249 12.8 6.90001 13.2925 6.90001 13.9C6.90001 14.5075 7.39249 15 8.00001 15Z"></path></svg>'),rs=e=>{const t=Nr();return(()=>{const n=ns.cloneNode(!0),r=n.firstChild;return sn((()=>nr(r,"fill",e.fill||t.colors.icon.secondary))),n})()},os=tr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.98156 8.75C9.84854 11.4328 9.01206 13.5 8 13.5C6.98794 13.5 6.15146 11.4328 6.01844 8.75H9.98156ZM11.4832 8.75C11.4217 10.1155 11.1929 11.3869 10.8239 12.4017C10.7734 12.5405 10.7188 12.6789 10.6595 12.8154C12.1454 11.993 13.2103 10.5029 13.4493 8.75H11.4832ZM13.4493 7.25H11.4832C11.4217 5.88453 11.1929 4.61314 10.8239 3.5983C10.7734 3.4595 10.7188 3.32111 10.6595 3.18459C12.1454 4.00697 13.2103 5.49709 13.4493 7.25ZM9.98156 7.25H6.01844C6.15144 4.56764 6.98769 2.50062 7.99955 2.5H8C9.01206 2.5 9.84854 4.56724 9.98156 7.25ZM4.51678 7.25C4.57826 5.88453 4.80706 4.61314 5.1761 3.5983C5.22657 3.4595 5.28124 3.32111 5.3405 3.18459C3.85463 4.00697 2.78972 5.49709 2.55071 7.25H4.51678ZM2.55071 8.75C2.78972 10.5029 3.85463 11.993 5.3405 12.8154C5.28124 12.6789 5.22657 12.5405 5.1761 12.4017C4.80706 11.3869 4.57826 10.1155 4.51678 8.75H2.55071ZM15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8Z"></path></svg>'),is=e=>{const t=Nr();return(()=>{const n=os.cloneNode(!0),r=n.firstChild;return sn((()=>nr(r,"fill",e.fill||t.colors.icon.primary))),n})()},as=tr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 4.8C2.5 3.11984 2.5 2.27976 2.82698 1.63803C3.1146 1.07354 3.57354 0.614601 4.13803 0.32698C4.77976 0 5.61984 0 7.3 0H8.7C10.3802 0 11.2202 0 11.862 0.32698C12.4265 0.614601 12.8854 1.07354 13.173 1.63803C13.5 2.27976 13.5 3.11984 13.5 4.8V11.2C13.5 12.8802 13.5 13.7202 13.173 14.362C12.8854 14.9265 12.4265 15.3854 11.862 15.673C11.2202 16 10.3802 16 8.7 16H7.3C5.61984 16 4.77976 16 4.13803 15.673C3.57354 15.3854 3.1146 14.9265 2.82698 14.362C2.5 13.7202 2.5 12.8802 2.5 11.2V4.8ZM4 3.9C4 3.05992 4 2.63988 4.16349 2.31901C4.3073 2.03677 4.53677 1.8073 4.81901 1.66349C5.13988 1.5 5.55992 1.5 6.4 1.5H9.6C10.4401 1.5 10.8601 1.5 11.181 1.66349C11.4632 1.8073 11.6927 2.03677 11.8365 2.31901C12 2.63988 12 3.05992 12 3.9V12.1C12 12.9401 12 13.3601 11.8365 13.681C11.6927 13.9632 11.4632 14.1927 11.181 14.3365C10.8601 14.5 10.4401 14.5 9.6 14.5H6.4C5.55992 14.5 5.13988 14.5 4.81901 14.3365C4.53677 14.1927 4.3073 13.9632 4.16349 13.681C4 13.3601 4 12.9401 4 12.1V3.9ZM7 2.5C6.58579 2.5 6.25 2.83579 6.25 3.25C6.25 3.66421 6.58579 4 7 4H9C9.41421 4 9.75 3.66421 9.75 3.25C9.75 2.83579 9.41421 2.5 9 2.5H7Z"></path></svg>'),ss=e=>{const t=Nr();return(()=>{const n=as.cloneNode(!0),r=n.firstChild;return sn((()=>nr(r,"fill",e.fill||t.colors.icon.primary))),n})()},ls=tr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 6.8C1.5 5.11984 1.5 4.27976 1.82698 3.63803C2.1146 3.07354 2.57354 2.6146 3.13803 2.32698C3.77976 2 4.61984 2 6.3 2H9.7C11.3802 2 12.2202 2 12.862 2.32698C13.4265 2.6146 13.8854 3.07354 14.173 3.63803C14.5 4.27976 14.5 5.11984 14.5 6.8V11.5H15.25C15.6642 11.5 16 11.8358 16 12.25C16 12.6642 15.6642 13 15.25 13H0.75C0.335786 13 0 12.6642 0 12.25C0 11.8358 0.335786 11.5 0.75 11.5H1.5V6.8ZM3 11.5H13V5.9C13 5.05992 13 4.63988 12.8365 4.31901C12.6927 4.03677 12.4632 3.8073 12.181 3.66349C11.8601 3.5 11.4401 3.5 10.6 3.5H5.4C4.55992 3.5 4.13988 3.5 3.81901 3.66349C3.53677 3.8073 3.3073 4.03677 3.16349 4.31901C3 4.63988 3 5.05992 3 5.9V11.5Z"></path></svg>'),cs=e=>{const t=Nr();return(()=>{const n=ls.cloneNode(!0),r=n.firstChild;return sn((()=>nr(r,"fill",e.fill||t.colors.icon.primary))),n})()},us=tr('<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" viewBox="0 0 17 16" fill="none"><g clip-path="url(#clip0_3676_1603)"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 1.25049C15.5 0.836275 15.1642 0.500488 14.75 0.500488C14.3358 0.500488 14 0.836275 14 1.25049V3.67012C12.7187 2.04487 10.7318 1.00049 8.5 1.00049C4.63401 1.00049 1.5 4.1345 1.5 8.00049C1.5 11.8665 4.63401 15.0005 8.5 15.0005C11.6844 15.0005 14.3703 12.8748 15.2199 9.96661C15.3361 9.56902 15.1079 9.15254 14.7103 9.03638C14.3127 8.92023 13.8962 9.14838 13.7801 9.54597C13.1123 11.8319 11 13.5005 8.5 13.5005C5.46243 13.5005 3 11.0381 3 8.00049C3 4.96292 5.46243 2.50049 8.5 2.50049C10.321 2.50049 11.9363 3.3855 12.9377 4.75049H10.5C10.0858 4.75049 9.75 5.08627 9.75 5.50049C9.75 5.9147 10.0858 6.25049 10.5 6.25049H14.75C15.1642 6.25049 15.5 5.9147 15.5 5.50049V1.25049Z"></path></g><defs><clipPath id="clip0_3676_1603"><rect width="16" height="16" fill="white" transform="translate(0.5 0.000488281)"></rect></clipPath></defs></svg>'),ds=e=>{const t=Nr();return(()=>{const n=us.cloneNode(!0),r=n.firstChild.firstChild;return sn((()=>nr(r,"fill",e.fill||t.colors.accent))),n})()},fs=tr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M13 4.06119V6.75053C13 7.16474 13.3358 7.50053 13.75 7.50053C14.1642 7.50053 14.5 7.16474 14.5 6.75053V2.75053L14.5 2.72807C14.5001 2.63191 14.5003 2.49627 14.4842 2.37627C14.4638 2.22503 14.4063 1.99261 14.2071 1.79342C14.0079 1.59423 13.7755 1.5367 13.6243 1.51637C13.5043 1.50023 13.3686 1.50039 13.2725 1.50051L13.25 1.50053H9.25C8.83579 1.50053 8.5 1.83631 8.5 2.25053C8.5 2.66474 8.83579 3.00053 9.25 3.00053H11.9393L7.21967 7.7202C6.92678 8.01309 6.92678 8.48796 7.21967 8.78086C7.51256 9.07375 7.98744 9.07375 8.28033 8.78086L13 4.06119ZM5.85 1.50053H5.81903H5.81899C5.21528 1.50052 4.71702 1.50051 4.31113 1.53367C3.88956 1.56812 3.50203 1.64204 3.13803 1.82751C2.57354 2.11513 2.1146 2.57407 1.82698 3.13856C1.64151 3.50256 1.56759 3.89009 1.53315 4.31166C1.49998 4.71755 1.49999 5.21581 1.5 5.81953V5.81955V5.85053V10.1505V10.1815V10.1815C1.49999 10.7852 1.49998 11.2835 1.53315 11.6894C1.56759 12.111 1.64151 12.4985 1.82698 12.8625C2.1146 13.427 2.57354 13.8859 3.13803 14.1735C3.50203 14.359 3.88956 14.4329 4.31113 14.4674C4.71702 14.5005 5.21527 14.5005 5.81897 14.5005H5.81901H5.85H10.15H10.181H10.181C10.7847 14.5005 11.283 14.5005 11.6889 14.4674C12.1104 14.4329 12.498 14.359 12.862 14.1735C13.4265 13.8859 13.8854 13.427 14.173 12.8625C14.3585 12.4985 14.4324 12.111 14.4669 11.6894C14.5 11.2835 14.5 10.7853 14.5 10.1816V10.1815V10.1505V9.75053C14.5 9.33631 14.1642 9.00053 13.75 9.00053C13.3358 9.00053 13 9.33631 13 9.75053V10.1505C13 10.793 12.9994 11.2297 12.9718 11.5672C12.945 11.8961 12.8963 12.0642 12.8365 12.1815C12.6927 12.4638 12.4632 12.6932 12.181 12.837C12.0637 12.8968 11.8955 12.9455 11.5667 12.9724C11.2292 12.9999 10.7924 13.0005 10.15 13.0005H5.85C5.20757 13.0005 4.77085 12.9999 4.43328 12.9724C4.10447 12.9455 3.93632 12.8968 3.81902 12.837C3.53677 12.6932 3.3073 12.4638 3.16349 12.1815C3.10372 12.0642 3.05503 11.8961 3.02816 11.5672C3.00058 11.2297 3 10.793 3 10.1505V5.85053C3 5.20809 3.00058 4.77137 3.02816 4.43381C3.05503 4.10499 3.10372 3.93684 3.16349 3.81954C3.3073 3.5373 3.53677 3.30783 3.81902 3.16402C3.93632 3.10425 4.10447 3.05556 4.43328 3.02869C4.77085 3.00111 5.20757 3.00053 5.85 3.00053H6.25C6.66422 3.00053 7 2.66474 7 2.25053C7 1.83631 6.66422 1.50053 6.25 1.50053H5.85Z"></path></svg>'),hs=e=>{const t=Nr();return(()=>{const n=fs.cloneNode(!0),r=n.firstChild;return sn((()=>nr(r,"fill",e.fill||t.colors.accent))),n})()},ps=tr('<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" viewBox="0 0 17 16" fill="none"><g clip-path="url(#clip0_3676_1274)"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.82698 2.63901C1.5 3.28074 1.5 4.12082 1.5 5.80098V8.80098V9.00098V10.201C1.5 11.8811 1.5 12.7212 1.82698 13.3629C2.1146 13.9274 2.57354 14.3864 3.13803 14.674C3.77976 15.001 4.61984 15.001 6.3 15.001H11.7C13.3802 15.001 14.2202 15.001 14.862 14.674C15.4265 14.3864 15.8854 13.9274 16.173 13.3629C16.5 12.7212 16.5 11.8811 16.5 10.201V8.80098C16.5 7.12082 16.5 6.28074 16.173 5.63901C15.8854 5.07452 15.4265 4.61558 14.862 4.32796C14.743 4.26733 14.6172 4.21795 14.4805 4.17772C14.4501 3.49449 14.3722 3.02994 14.173 2.63901C13.8854 2.07452 13.4265 1.61558 12.862 1.32796C12.2202 1.00098 11.3802 1.00098 9.7 1.00098H6.3C4.61984 1.00098 3.77976 1.00098 3.13803 1.32796C2.57354 1.61558 2.1146 2.07452 1.82698 2.63901ZM12.9861 4.00942C12.9684 3.7108 12.9281 3.49982 12.8365 3.31999C12.6927 3.03775 12.4632 2.80828 12.181 2.66447C11.8601 2.50098 11.4401 2.50098 10.6 2.50098H5.4C4.55992 2.50098 4.13988 2.50098 3.81901 2.66447C3.53677 2.80828 3.3073 3.03775 3.16349 3.31999C3.03615 3.56991 3.00799 3.88 3.00177 4.40188C3.04646 4.37612 3.09189 4.35146 3.13803 4.32796C3.77976 4.00098 4.61984 4.00098 6.3 4.00098H11.7C12.1966 4.00098 12.6197 4.00098 12.9861 4.00942ZM3 7.90098V8.10098C3 8.47468 3 8.76527 3.01439 9.00098H3V11.101C3 11.9411 3 12.3611 3.16349 12.682C3.3073 12.9642 3.53677 13.1937 3.81901 13.3375C4.13988 13.501 4.55992 13.501 5.4 13.501H12.6C13.4401 13.501 13.8601 13.501 14.181 13.3375C14.4632 13.1937 14.6927 12.9642 14.8365 12.682C15 12.3611 15 11.9411 15 11.101V7.90098C15 7.0609 15 6.64086 14.8365 6.31999C14.6927 6.03775 14.4632 5.80828 14.181 5.66447C13.8601 5.50098 13.4401 5.50098 12.6 5.50098H5.4C4.55992 5.50098 4.13988 5.50098 3.81901 5.66447C3.53677 5.80828 3.3073 6.03775 3.16349 6.31999C3 6.64086 3 7.0609 3 7.90098ZM10.5 9.75098C10.5 9.33676 10.8358 9.00098 11.25 9.00098H12.75C13.1642 9.00098 13.5 9.33676 13.5 9.75098C13.5 10.1652 13.1642 10.501 12.75 10.501H11.25C10.8358 10.501 10.5 10.1652 10.5 9.75098Z"></path></g><defs><clipPath id="clip0_3676_1274"><rect width="16" height="16" fill="white" transform="translate(0.5 0.000976562)"></rect></clipPath></defs></svg>'),gs=e=>{const t=Nr();return(()=>{const n=ps.cloneNode(!0),r=n.firstChild.firstChild;return sn((()=>nr(r,"fill",e.fill||t.colors.accent))),n})()},ms=tr('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M39.6319 16.8719C38.3212 16.2041 36.7002 16.0478 34 16.0112V11C34 5.47715 29.5228 1 24 1C18.4772 1 14 5.47715 14 11V16.0112C11.2998 16.0478 9.6788 16.2041 8.36808 16.8719C6.86278 17.6389 5.63893 18.8628 4.87195 20.3681C4 22.0794 4 24.3196 4 28.8V32.2C4 36.6804 4 38.9206 4.87195 40.6319C5.63893 42.1372 6.86278 43.3611 8.36808 44.1281C10.0794 45 12.3196 45 16.8 45H31.2C35.6804 45 37.9206 45 39.6319 44.1281C41.1372 43.3611 42.3611 42.1372 43.1281 40.6319C44 38.9206 44 36.6804 44 32.2V28.8C44 24.3196 44 22.0794 43.1281 20.3681C42.3611 18.8628 41.1372 17.6389 39.6319 16.8719ZM31 11V16H17V11C17 7.13401 20.134 4 24 4C27.866 4 31 7.13401 31 11ZM7.54497 21.73C7 22.7996 7 24.1997 7 27V34C7 36.8003 7 38.2004 7.54497 39.27C8.02433 40.2108 8.78924 40.9757 9.73005 41.455C10.7996 42 12.1997 42 15 42H33C35.8003 42 37.2004 42 38.27 41.455C39.2108 40.9757 39.9757 40.2108 40.455 39.27C41 38.2004 41 36.8003 41 34V27C41 24.1997 41 22.7996 40.455 21.73C39.9757 20.7892 39.2108 20.0243 38.27 19.545C37.2004 19 35.8003 19 33 19H15C12.1997 19 10.7996 19 9.73005 19.545C8.78924 20.0243 8.02433 20.7892 7.54497 21.73ZM24 24C23.1716 24 22.5 24.6716 22.5 25.5V29.5C22.5 30.3284 23.1716 31 24 31C24.8284 31 25.5 30.3284 25.5 29.5V25.5C25.5 24.6716 24.8284 24 24 24Z"></path></svg>'),vs=e=>{const t=Nr();return(()=>{const n=ms.cloneNode(!0),r=n.firstChild;return sn((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&nr(n,"class",o._v$=i),a!==o._v$2&&nr(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},ys=tr('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M37.485 37.3849C40.894 33.9506 43 29.2212 43 24C43 13.5066 34.4934 5 24 5C13.5066 5 5 13.5066 5 24C5 29.2213 7.1061 33.9507 10.5151 37.385C13.3583 32.9438 18.3354 30 24.0001 30C29.6647 30 34.6418 32.9437 37.485 37.3849ZM35.1809 39.3635C32.9143 35.5532 28.7554 33 24.0001 33C19.2448 33 15.0858 35.5533 12.8193 39.3636C15.9564 41.6506 19.8206 43 24 43C28.1795 43 32.0437 41.6505 35.1809 39.3635ZM24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46ZM24 24C26.7614 24 29 21.7614 29 19C29 16.2386 26.7614 14 24 14C21.2386 14 19 16.2386 19 19C19 21.7614 21.2386 24 24 24ZM24 27C28.4183 27 32 23.4183 32 19C32 14.5817 28.4183 11 24 11C19.5817 11 16 14.5817 16 19C16 23.4183 19.5817 27 24 27Z"></path></svg>'),bs=e=>{const t=Nr();return(()=>{const n=ys.cloneNode(!0),r=n.firstChild;return sn((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&nr(n,"class",o._v$=i),a!==o._v$2&&nr(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},ws=tr('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M34.5607 4.43934C33.9749 3.85355 33.0251 3.85355 32.4393 4.43934C31.8536 5.02513 31.8536 5.97487 32.4393 6.56066L37.8787 12H10.5C9.67157 12 9 12.6716 9 13.5C9 14.3284 9.67157 15 10.5 15H37.8787L32.4393 20.4393C31.8536 21.0251 31.8536 21.9749 32.4393 22.5607C33.0251 23.1464 33.9749 23.1464 34.5607 22.5607L42.5607 14.5607C43.1464 13.9749 43.1464 13.0251 42.5607 12.4393L34.5607 4.43934ZM13.4393 25.4393C14.0251 24.8536 14.9749 24.8536 15.5607 25.4393C16.1464 26.0251 16.1464 26.9749 15.5607 27.5607L10.1213 33H37.5C38.3284 33 39 33.6716 39 34.5C39 35.3284 38.3284 36 37.5 36H10.1213L15.5607 41.4393C16.1464 42.0251 16.1464 42.9749 15.5607 43.5607C14.9749 44.1464 14.0251 44.1464 13.4393 43.5607L5.43934 35.5607C4.85355 34.9749 4.85355 34.0251 5.43934 33.4393L13.4393 25.4393Z"></path></svg>'),xs=e=>{const t=Nr();return(()=>{const n=ws.cloneNode(!0),r=n.firstChild;return sn((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&nr(n,"class",o._v$=i),a!==o._v$2&&nr(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},Cs=tr('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="29" viewBox="0 0 28 29" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.75 12.002C1.75 9.20169 1.75 7.80156 2.29497 6.732C2.77433 5.79119 3.53924 5.02629 4.48005 4.54692C5.54961 4.00195 6.94974 4.00195 9.75 4.00195H17.25C20.0503 4.00195 21.4504 4.00195 22.52 4.54692C23.4608 5.02629 24.2257 5.79119 24.705 6.732C24.8256 6.96861 24.9195 7.2214 24.9926 7.50195H21.5C19.6377 7.50195 18.7065 7.50195 17.9609 7.77334C16.711 8.22828 15.7263 9.21291 15.2714 10.4629C15 11.2085 15 12.1396 15 14.002C15 15.8643 15 16.7954 15.2714 17.541C15.7263 18.791 16.711 19.7756 17.9609 20.2306C18.7065 20.502 19.6377 20.502 21.5 20.502H24.9926C24.9195 20.7825 24.8256 21.0353 24.705 21.2719C24.2257 22.2127 23.4608 22.9776 22.52 23.457C21.4504 24.002 20.0503 24.002 17.25 24.002H9.75C6.94974 24.002 5.54961 24.002 4.48005 23.457C3.53924 22.9776 2.77433 22.2127 2.29497 21.2719C1.75 20.2023 1.75 18.8022 1.75 16.002V12.002ZM16.4999 13.802C16.4999 12.1218 16.4999 11.2817 16.8269 10.64C17.1145 10.0755 17.5735 9.61656 18.138 9.32894C18.7797 9.00196 19.6198 9.00196 21.2999 9.00196H23.1999C24.8801 9.00196 25.7202 9.00196 26.3619 9.32894C26.9264 9.61656 27.3853 10.0755 27.673 10.64C27.9999 11.2817 27.9999 12.1218 27.9999 13.802V14.202C27.9999 15.8821 27.9999 16.7222 27.673 17.3639C27.3853 17.9284 26.9264 18.3874 26.3619 18.675C25.7202 19.002 24.8801 19.002 23.1999 19.002H21.2999C19.6198 19.002 18.7797 19.002 18.138 18.675C17.5735 18.3874 17.1145 17.9284 16.8269 17.3639C16.4999 16.7222 16.4999 15.8821 16.4999 14.202V13.802ZM22.4999 14.002C22.4999 14.9685 21.7164 15.752 20.7499 15.752C19.7834 15.752 18.9999 14.9685 18.9999 14.002C18.9999 13.0355 19.7834 12.252 20.7499 12.252C21.7164 12.252 22.4999 13.0355 22.4999 14.002Z"></path></svg>'),ks=e=>{const t=Nr();return(()=>{const n=Cs.cloneNode(!0),r=n.firstChild;return sn((o=>{const i=e.class,a=e.fill||t.colors.constant.white;return i!==o._v$&&nr(n,"class",o._v$=i),a!==o._v$2&&nr(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},Ss=tr('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M24.7803 7.21967C25.0732 7.51256 25.0732 7.98744 24.7803 8.28033L11.5303 21.5303C11.2374 21.8232 10.7626 21.8232 10.4697 21.5303L4.21967 15.2803C3.92678 14.9874 3.92678 14.5126 4.21967 14.2197C4.51256 13.9268 4.98744 13.9268 5.28033 14.2197L11 19.9393L23.7197 7.21967C24.0126 6.92678 24.4874 6.92678 24.7803 7.21967Z"></path></svg>'),Es=e=>{const t=Nr();return(()=>{const n=Ss.cloneNode(!0),r=n.firstChild;return sn((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&nr(n,"class",o._v$=i),a!==o._v$2&&nr(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},_s=tr('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0001 10.0001C10.0016 8.02333 10.0267 6.98719 10.436 6.18404C10.8195 5.43139 11.4314 4.81947 12.184 4.43597C13.0397 4 14.1598 4 16.4 4H17.6C19.8402 4 20.9603 4 21.816 4.43597C22.5686 4.81947 23.1805 5.43139 23.564 6.18404C24 7.03969 24 8.15979 24 10.4V11.6C24 13.8402 24 14.9603 23.564 15.816C23.1805 16.5686 22.5686 17.1805 21.816 17.564C21.0128 17.9733 19.9767 17.9984 17.9999 17.9999C17.9984 19.9767 17.9733 21.0128 17.564 21.816C17.1805 22.5686 16.5686 23.1805 15.816 23.564C14.9603 24 13.8402 24 11.6 24H10.4C8.15979 24 7.03969 24 6.18404 23.564C5.43139 23.1805 4.81947 22.5686 4.43597 21.816C4 20.9603 4 19.8402 4 17.6V16.4C4 14.1598 4 13.0397 4.43597 12.184C4.81947 11.4314 5.43139 10.8195 6.18404 10.436C6.98719 10.0267 8.02333 10.0016 10.0001 10.0001ZM10 11.5H9.5C8.09987 11.5 7.3998 11.5 6.86502 11.7725C6.39462 12.0122 6.01217 12.3946 5.77248 12.865C5.5 13.3998 5.5 14.0999 5.5 15.5V18.5C5.5 19.9001 5.5 20.6002 5.77248 21.135C6.01217 21.6054 6.39462 21.9878 6.86502 22.2275C7.3998 22.5 8.09987 22.5 9.5 22.5H12.5C13.9001 22.5 14.6002 22.5 15.135 22.2275C15.6054 21.9878 15.9878 21.6054 16.2275 21.135C16.5 20.6002 16.5 19.9001 16.5 18.5V18H16.4C14.1598 18 13.0397 18 12.184 17.564C11.4314 17.1805 10.8195 16.5686 10.436 15.816C10 14.9603 10 13.8402 10 11.6V11.5ZM11.5 9.5C11.5 8.09987 11.5 7.3998 11.7725 6.86502C12.0122 6.39462 12.3946 6.01217 12.865 5.77248C13.3998 5.5 14.0999 5.5 15.5 5.5H18.5C19.9001 5.5 20.6002 5.5 21.135 5.77248C21.6054 6.01217 21.9878 6.39462 22.2275 6.86502C22.5 7.3998 22.5 8.09987 22.5 9.5V12.5C22.5 13.9001 22.5 14.6002 22.2275 15.135C21.9878 15.6054 21.6054 15.9878 21.135 16.2275C20.6002 16.5 19.9001 16.5 18.5 16.5H15.5C14.0999 16.5 13.3998 16.5 12.865 16.2275C12.3946 15.9878 12.0122 15.6054 11.7725 15.135C11.5 14.6002 11.5 13.9001 11.5 12.5V9.5Z"></path></svg>'),As=e=>{const t=Nr(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=_s.cloneNode(!0),t=e.firstChild;return sn((r=>{const o=n(),i=n();return o!==r._v$&&nr(e,"fill",r._v$=o),i!==r._v$2&&nr(t,"fill",r._v$2=i),r}),{_v$:void 0,_v$2:void 0}),e})()},Ts=tr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1 4.12695C1 3.07754 1 2.55284 1.19202 2.14684C1.38986 1.72856 1.7266 1.39181 2.14489 1.19397C2.55088 1.00195 3.07559 1.00195 4.125 1.00195C5.17441 1.00195 5.69912 1.00195 6.10511 1.19397C6.5234 1.39181 6.86014 1.72856 7.05798 2.14684C7.25 2.55284 7.25 3.07754 7.25 4.12695C7.25 5.17636 7.25 5.70107 7.05798 6.10706C6.86014 6.52535 6.5234 6.8621 6.10511 7.05993C5.69912 7.25195 5.17441 7.25195 4.125 7.25195C3.07559 7.25195 2.55088 7.25195 2.14489 7.05993C1.7266 6.8621 1.38986 6.52535 1.19202 6.10706C1 5.70107 1 5.17636 1 4.12695ZM2.5 3.30195C2.5 3.02193 2.5 2.88191 2.5545 2.77496C2.60243 2.68088 2.67892 2.60439 2.773 2.55645C2.87996 2.50195 3.01997 2.50195 3.3 2.50195H4.95C5.23003 2.50195 5.37004 2.50195 5.477 2.55645C5.57108 2.60439 5.64757 2.68088 5.6955 2.77496C5.75 2.88191 5.75 3.02193 5.75 3.30195V4.95195C5.75 5.23198 5.75 5.37199 5.6955 5.47895C5.64757 5.57303 5.57108 5.64952 5.477 5.69746C5.37004 5.75195 5.23003 5.75195 4.95 5.75195H3.3C3.01997 5.75195 2.87996 5.75195 2.773 5.69746C2.67892 5.64952 2.60243 5.57303 2.5545 5.47895C2.5 5.37199 2.5 5.23198 2.5 4.95195V3.30195ZM1 11.877C1 10.8275 1 10.3028 1.19202 9.89684C1.38986 9.47856 1.7266 9.14181 2.14489 8.94397C2.55088 8.75195 3.07559 8.75195 4.125 8.75195C5.17441 8.75195 5.69912 8.75195 6.10511 8.94397C6.5234 9.14181 6.86014 9.47856 7.05798 9.89684C7.25 10.3028 7.25 10.8275 7.25 11.877C7.25 12.9264 7.25 13.4511 7.05798 13.8571C6.86014 14.2753 6.5234 14.6121 6.10511 14.8099C5.69912 15.002 5.17441 15.002 4.125 15.002C3.07559 15.002 2.55088 15.002 2.14489 14.8099C1.7266 14.6121 1.38986 14.2753 1.19202 13.8571C1 13.4511 1 12.9264 1 11.877ZM2.5 11.052C2.5 10.7719 2.5 10.6319 2.5545 10.525C2.60243 10.4309 2.67892 10.3544 2.773 10.3064C2.87996 10.252 3.01997 10.252 3.3 10.252H4.95C5.23003 10.252 5.37004 10.252 5.477 10.3064C5.57108 10.3544 5.64757 10.4309 5.6955 10.525C5.75 10.6319 5.75 10.7719 5.75 11.052V12.702C5.75 12.982 5.75 13.122 5.6955 13.2289C5.64757 13.323 5.57108 13.3995 5.477 13.4475C5.37004 13.502 5.23003 13.502 4.95 13.502H3.3C3.01997 13.502 2.87996 13.502 2.773 13.4475C2.67892 13.3995 2.60243 13.323 2.5545 13.2289C2.5 13.122 2.5 12.982 2.5 12.702V11.052ZM8.94202 2.14684C8.75 2.55284 8.75 3.07754 8.75 4.12695C8.75 5.17636 8.75 5.70107 8.94202 6.10706C9.13986 6.52535 9.4766 6.8621 9.89489 7.05993C10.3009 7.25195 10.8256 7.25195 11.875 7.25195C12.9244 7.25195 13.4491 7.25195 13.8551 7.05993C14.2734 6.8621 14.6101 6.52535 14.808 6.10706C15 5.70107 15 5.17636 15 4.12695C15 3.07754 15 2.55284 14.808 2.14684C14.6101 1.72856 14.2734 1.39181 13.8551 1.19397C13.4491 1.00195 12.9244 1.00195 11.875 1.00195C10.8256 1.00195 10.3009 1.00195 9.89489 1.19397C9.4766 1.39181 9.13986 1.72856 8.94202 2.14684ZM10.3045 2.77496C10.25 2.88191 10.25 3.02193 10.25 3.30195V4.95195C10.25 5.23198 10.25 5.37199 10.3045 5.47895C10.3524 5.57303 10.4289 5.64952 10.523 5.69746C10.63 5.75195 10.77 5.75195 11.05 5.75195H12.7C12.98 5.75195 13.12 5.75195 13.227 5.69746C13.3211 5.64952 13.3976 5.57303 13.4455 5.47895C13.5 5.37199 13.5 5.23198 13.5 4.95195V3.30195C13.5 3.02193 13.5 2.88191 13.4455 2.77496C13.3976 2.68088 13.3211 2.60439 13.227 2.55645C13.12 2.50195 12.98 2.50195 12.7 2.50195H11.05C10.77 2.50195 10.63 2.50195 10.523 2.55645C10.4289 2.60439 10.3524 2.68088 10.3045 2.77496ZM8.80727 9.13518C8.75 9.26242 8.75 9.4256 8.75 9.75195C8.75 10.0783 8.75 10.2415 8.80727 10.3687C8.87245 10.5136 8.9884 10.6295 9.13323 10.6947C9.26047 10.752 9.42365 10.752 9.75 10.752C10.0764 10.752 10.2395 10.752 10.3668 10.6947C10.5116 10.6295 10.6276 10.5136 10.6927 10.3687C10.75 10.2415 10.75 10.0783 10.75 9.75195C10.75 9.4256 10.75 9.26242 10.6927 9.13518C10.6276 8.99035 10.5116 8.8744 10.3668 8.80922C10.2395 8.75195 10.0764 8.75195 9.75 8.75195C9.42365 8.75195 9.26047 8.75195 9.13323 8.80922C8.9884 8.8744 8.87245 8.99035 8.80727 9.13518ZM10.87 11.8771C10.87 11.546 10.87 11.3805 10.9289 11.2517C10.9938 11.1098 11.1077 10.9959 11.2497 10.931C11.3784 10.8721 11.5439 10.8721 11.875 10.8721C12.2061 10.8721 12.3716 10.8721 12.5003 10.931C12.6423 10.9959 12.7562 11.1098 12.8211 11.2517C12.88 11.3805 12.88 11.546 12.88 11.8771C12.88 12.2081 12.88 12.3737 12.8211 12.5024C12.7562 12.6444 12.6423 12.7583 12.5003 12.8232C12.3716 12.8821 12.2061 12.8821 11.875 12.8821C11.5439 12.8821 11.3784 12.8821 11.2497 12.8232C11.1077 12.7583 10.9938 12.6444 10.9289 12.5024C10.87 12.3737 10.87 12.2081 10.87 11.8771ZM8.80727 13.3852C8.75 13.5124 8.75 13.6756 8.75 14.002C8.75 14.3283 8.75 14.4915 8.80727 14.6187C8.87245 14.7636 8.9884 14.8795 9.13323 14.9447C9.26047 15.002 9.42365 15.002 9.75 15.002C10.0764 15.002 10.2395 15.002 10.3668 14.9447C10.5116 14.8795 10.6276 14.7636 10.6927 14.6187C10.75 14.4915 10.75 14.3283 10.75 14.002C10.75 13.6756 10.75 13.5124 10.6927 13.3852C10.6276 13.2404 10.5116 13.1244 10.3668 13.0592C10.2395 13.002 10.0764 13.002 9.75 13.002C9.42365 13.002 9.26047 13.002 9.13323 13.0592C8.9884 13.1244 8.87245 13.2404 8.80727 13.3852ZM13 9.75195C13 9.4256 13 9.26242 13.0573 9.13518C13.1224 8.99035 13.2384 8.8744 13.3832 8.80922C13.5105 8.75195 13.6736 8.75195 14 8.75195C14.3264 8.75195 14.4895 8.75195 14.6168 8.80922C14.7616 8.8744 14.8776 8.99035 14.9427 9.13518C15 9.26242 15 9.4256 15 9.75195C15 10.0783 15 10.2415 14.9427 10.3687C14.8776 10.5136 14.7616 10.6295 14.6168 10.6947C14.4895 10.752 14.3264 10.752 14 10.752C13.6736 10.752 13.5105 10.752 13.3832 10.6947C13.2384 10.6295 13.1224 10.5136 13.0573 10.3687C13 10.2415 13 10.0783 13 9.75195ZM13.0573 13.3852C13 13.5124 13 13.6756 13 14.002C13 14.3283 13 14.4915 13.0573 14.6187C13.1224 14.7636 13.2384 14.8795 13.3832 14.9447C13.5105 15.002 13.6736 15.002 14 15.002C14.3264 15.002 14.4895 15.002 14.6168 14.9447C14.7616 14.8795 14.8776 14.7636 14.9427 14.6187C15 14.4915 15 14.3283 15 14.002C15 13.6756 15 13.5124 14.9427 13.3852C14.8776 13.2404 14.7616 13.1244 14.6168 13.0592C14.4895 13.002 14.3264 13.002 14 13.002C13.6736 13.002 13.5105 13.002 13.3832 13.0592C13.2384 13.1244 13.1224 13.2404 13.0573 13.3852Z"></path></svg>'),Rs=e=>{const t=Nr();return(()=>{const n=Ts.cloneNode(!0),r=n.firstChild;return sn((()=>nr(r,"fill",e.fill||t.colors.icon.secondary))),n})()},Os={m:"16px",s:"12px",none:"0"},Ps={m:"6px",s:"6px",none:"0"},Ls=jr.div`
|
|
452
|
+
`;return dn((()=>{const t=dn((()=>"xs"===n()));return()=>t()?(()=>{const t=Xa.cloneNode(!0),n=t.firstChild;return cn((i=>{const a=Lt(o,e.class),s=r();return a!==i._v$&&or(t,"class",i._v$=a),s!==i._v$2&&or(n,"fill",i._v$2=s),i}),{_v$:void 0,_v$2:void 0}),t})():(()=>{const t=dn((()=>"s"===n()));return()=>t()?(()=>{const t=Ja.cloneNode(!0),n=t.firstChild;return cn((i=>{const a=Lt(o,e.class),s=r();return a!==i._v$3&&or(t,"class",i._v$3=a),s!==i._v$4&&or(n,"fill",i._v$4=s),i}),{_v$3:void 0,_v$4:void 0}),t})():(()=>{const t=es.cloneNode(!0),n=t.firstChild;return cn((i=>{const a=Lt(o,e.class),s=r();return a!==i._v$5&&or(t,"class",i._v$5=a),s!==i._v$6&&or(n,"stroke",i._v$6=s),i}),{_v$5:void 0,_v$6:void 0}),t})()})()})())},ns=rr('<svg width="158" height="28" viewBox="0 0 158 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M28 14.001C28 21.733 21.732 28.001 14 28.001C6.26801 28.001 0 21.733 0 14.001C0 6.26899 6.26801 0.000976562 14 0.000976562C21.732 0.000976562 28 6.26899 28 14.001ZM9.21931 8.00098H18.7801H18.7813C20.538 8.00098 21.6522 9.89966 20.7691 11.4302L14.8672 21.6576C14.4822 22.3254 13.5172 22.3254 13.1322 21.6576L7.23158 11.4302C6.34721 9.89726 7.4614 8.00098 9.21931 8.00098ZM13.1262 18.5882V9.74806H9.21811C8.78976 9.74806 8.53708 10.2029 8.74163 10.5578L11.8423 16.1035L13.1262 18.5882ZM16.1559 16.1047L19.2554 10.5566C19.4599 10.2017 19.2073 9.74685 18.7789 9.74685H14.8709V18.5906L16.1559 16.1047Z" fill="#0098EA"></path><path d="M18.7802 8.00098H9.21936C7.46145 8.00098 6.34727 9.89726 7.23164 11.4302L13.1322 21.6576C13.5173 22.3254 14.4823 22.3254 14.8673 21.6576L20.7691 11.4302C21.6523 9.89966 20.5381 8.00098 18.7814 8.00098H18.7802ZM13.1274 18.5906L11.8424 16.1035L8.74168 10.5578C8.53714 10.2029 8.78981 9.74806 9.21816 9.74806H13.1262V18.5918L13.1274 18.5906ZM19.2555 10.5566L16.156 16.1047L14.8709 18.5906V9.74685H18.779C19.2073 9.74685 19.46 10.2017 19.2555 10.5566Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M51.7483 22.1967C55.7182 22.1967 58.9609 18.954 58.9609 14.9841C58.9609 11.0142 55.7182 7.77148 51.7483 7.77148C47.7588 7.77148 44.5357 11.0142 44.5357 14.9841C44.5357 18.954 47.7588 22.1967 51.7483 22.1967ZM51.7483 19.1702C49.4686 19.1702 47.6802 17.2442 47.6802 14.9841C47.6802 12.724 49.4686 10.798 51.7483 10.798C54.0084 10.798 55.7968 12.724 55.7968 14.9841C55.7968 17.2442 54.0084 19.1702 51.7483 19.1702ZM37.0698 21.9609H40.2142V10.9946H44.2843V8.00732H33V10.9946H37.0698V21.9609ZM69.9379 8.00732H73.0823V21.9609H70.3899L63.59 13.3333V21.9609H60.4652V8.00732H63.1576L69.9379 16.6153V8.00732ZM79.2259 14.9887C79.2259 10.9202 82.351 7.77539 86.4982 7.77539C89.8592 7.77539 92.5519 9.95709 93.2202 12.6891H90.7437C90.154 11.0971 88.4637 9.9964 86.4982 9.9964C83.5893 9.9964 81.5452 12.1781 81.5452 14.9887C81.5452 17.7994 83.5893 19.9811 86.4982 19.9811C88.4637 19.9811 90.154 18.8804 90.7437 17.2884H93.2202C92.5519 20.0204 89.8592 22.2021 86.4982 22.2021C82.351 22.2021 79.2259 19.0573 79.2259 14.9887ZM104.584 17.0525C104.584 19.9025 102.343 22.1628 99.4342 22.1628C96.5253 22.1628 94.2846 19.9025 94.2846 17.0525C94.2846 14.2025 96.5253 11.9422 99.4342 11.9422C102.343 11.9422 104.584 14.2025 104.584 17.0525ZM96.4663 17.0525C96.4663 18.8018 97.6849 20.158 99.4342 20.158C101.164 20.158 102.382 18.8018 102.382 17.0525C102.382 15.3032 101.164 13.947 99.4342 13.947C97.6849 13.947 96.4663 15.3032 96.4663 17.0525ZM108.626 12.1388H106.463V21.9662H108.626V17.1311C108.626 15.0281 109.726 13.9077 111.161 13.9077C112.419 13.9077 113.205 14.8512 113.205 16.4039V21.9662H115.367V16.0501C115.367 13.5539 113.893 11.9422 111.613 11.9422C110.335 11.9422 109.215 12.4926 108.626 13.4753V12.1388ZM117.839 12.1388H120.001V13.4753C120.59 12.4926 121.711 11.9422 122.988 11.9422C125.268 11.9422 126.742 13.5539 126.742 16.0501V21.9662H124.58V16.4039C124.58 14.8512 123.794 13.9077 122.536 13.9077C121.101 13.9077 120.001 15.0281 120.001 17.1311V21.9662H117.839V12.1388ZM133.558 22.1628C136.054 22.1628 137.823 20.728 138.373 18.8804H136.113C135.661 19.8238 134.717 20.2563 133.636 20.2563C131.887 20.2563 130.747 19.077 130.668 17.5832H138.491C138.688 14.2419 136.585 11.9422 133.577 11.9422C130.551 11.9422 128.526 14.1436 128.526 17.0525C128.526 20.0007 130.629 22.1628 133.558 22.1628ZM130.747 16.0501C131.042 14.5367 132.162 13.7505 133.518 13.7505C134.717 13.7505 135.838 14.4581 136.172 16.0501H130.747ZM149.851 18.3694C149.32 20.5511 147.453 22.1628 144.859 22.1628C141.871 22.1628 139.709 19.8828 139.709 17.0525C139.709 14.2222 141.871 11.9422 144.859 11.9422C147.453 11.9422 149.32 13.5539 149.851 15.7356H147.571C147.178 14.6743 146.215 13.9077 144.859 13.9077C143.109 13.9077 141.91 15.2246 141.91 17.0525C141.91 18.8804 143.109 20.1973 144.859 20.1973C146.215 20.1973 147.178 19.4307 147.571 18.3694H149.851ZM155.75 22.0645C156.418 22.0645 156.929 21.9859 157.362 21.8483V19.9221C157.047 20.0401 156.615 20.1187 156.202 20.1187C155.082 20.1187 154.551 19.6666 154.551 18.448V14.065H157.362V12.1388H154.551V9.40675H152.389V12.1388H150.345V14.065H152.389V18.8018C152.389 21.0228 153.863 22.0645 155.75 22.0645Z"></path></svg>'),rs=()=>{const e=jr();return(()=>{const t=ns.cloneNode(!0),n=t.firstChild.nextSibling.nextSibling;return cn((()=>or(n,"fill",e.theme===xr.DARK?e.colors.constant.white:e.colors.constant.black))),t})()},os=rr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.56608 4.42584C5.82527 3.32158 6.8176 2.5 8.00001 2.5C9.38072 2.5 10.5 3.61929 10.5 5C10.5 5.63026 10.3391 6.0386 10.1264 6.34455C9.90018 6.66993 9.58561 6.92478 9.18864 7.20877C9.12579 7.25372 9.05873 7.30025 8.9887 7.34883C8.27392 7.84472 7.25001 8.55507 7.25001 10V10.25C7.25001 10.6642 7.5858 11 8.00001 11C8.41422 11 8.75001 10.6642 8.75001 10.25V10C8.75001 9.36502 9.10777 9.1096 9.94554 8.51149L10.0614 8.42873C10.4769 8.13147 10.9748 7.75194 11.358 7.20076C11.7547 6.63015 12 5.91973 12 5C12 2.79086 10.2091 1 8.00001 1C6.10564 1 4.5205 2.31615 4.10577 4.08308C4.01112 4.48634 4.26129 4.88997 4.66454 4.98462C5.0678 5.07927 5.47143 4.8291 5.56608 4.42584ZM8.00001 15C8.60752 15 9.10001 14.5075 9.10001 13.9C9.10001 13.2925 8.60752 12.8 8.00001 12.8C7.39249 12.8 6.90001 13.2925 6.90001 13.9C6.90001 14.5075 7.39249 15 8.00001 15Z"></path></svg>'),is=e=>{const t=jr();return(()=>{const n=os.cloneNode(!0),r=n.firstChild;return cn((()=>or(r,"fill",e.fill||t.colors.icon.secondary))),n})()},as=rr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.98156 8.75C9.84854 11.4328 9.01206 13.5 8 13.5C6.98794 13.5 6.15146 11.4328 6.01844 8.75H9.98156ZM11.4832 8.75C11.4217 10.1155 11.1929 11.3869 10.8239 12.4017C10.7734 12.5405 10.7188 12.6789 10.6595 12.8154C12.1454 11.993 13.2103 10.5029 13.4493 8.75H11.4832ZM13.4493 7.25H11.4832C11.4217 5.88453 11.1929 4.61314 10.8239 3.5983C10.7734 3.4595 10.7188 3.32111 10.6595 3.18459C12.1454 4.00697 13.2103 5.49709 13.4493 7.25ZM9.98156 7.25H6.01844C6.15144 4.56764 6.98769 2.50062 7.99955 2.5H8C9.01206 2.5 9.84854 4.56724 9.98156 7.25ZM4.51678 7.25C4.57826 5.88453 4.80706 4.61314 5.1761 3.5983C5.22657 3.4595 5.28124 3.32111 5.3405 3.18459C3.85463 4.00697 2.78972 5.49709 2.55071 7.25H4.51678ZM2.55071 8.75C2.78972 10.5029 3.85463 11.993 5.3405 12.8154C5.28124 12.6789 5.22657 12.5405 5.1761 12.4017C4.80706 11.3869 4.57826 10.1155 4.51678 8.75H2.55071ZM15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8Z"></path></svg>'),ss=e=>{const t=jr();return(()=>{const n=as.cloneNode(!0),r=n.firstChild;return cn((()=>or(r,"fill",e.fill||t.colors.icon.primary))),n})()},ls=rr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 4.8C2.5 3.11984 2.5 2.27976 2.82698 1.63803C3.1146 1.07354 3.57354 0.614601 4.13803 0.32698C4.77976 0 5.61984 0 7.3 0H8.7C10.3802 0 11.2202 0 11.862 0.32698C12.4265 0.614601 12.8854 1.07354 13.173 1.63803C13.5 2.27976 13.5 3.11984 13.5 4.8V11.2C13.5 12.8802 13.5 13.7202 13.173 14.362C12.8854 14.9265 12.4265 15.3854 11.862 15.673C11.2202 16 10.3802 16 8.7 16H7.3C5.61984 16 4.77976 16 4.13803 15.673C3.57354 15.3854 3.1146 14.9265 2.82698 14.362C2.5 13.7202 2.5 12.8802 2.5 11.2V4.8ZM4 3.9C4 3.05992 4 2.63988 4.16349 2.31901C4.3073 2.03677 4.53677 1.8073 4.81901 1.66349C5.13988 1.5 5.55992 1.5 6.4 1.5H9.6C10.4401 1.5 10.8601 1.5 11.181 1.66349C11.4632 1.8073 11.6927 2.03677 11.8365 2.31901C12 2.63988 12 3.05992 12 3.9V12.1C12 12.9401 12 13.3601 11.8365 13.681C11.6927 13.9632 11.4632 14.1927 11.181 14.3365C10.8601 14.5 10.4401 14.5 9.6 14.5H6.4C5.55992 14.5 5.13988 14.5 4.81901 14.3365C4.53677 14.1927 4.3073 13.9632 4.16349 13.681C4 13.3601 4 12.9401 4 12.1V3.9ZM7 2.5C6.58579 2.5 6.25 2.83579 6.25 3.25C6.25 3.66421 6.58579 4 7 4H9C9.41421 4 9.75 3.66421 9.75 3.25C9.75 2.83579 9.41421 2.5 9 2.5H7Z"></path></svg>'),cs=e=>{const t=jr();return(()=>{const n=ls.cloneNode(!0),r=n.firstChild;return cn((()=>or(r,"fill",e.fill||t.colors.icon.primary))),n})()},us=rr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 6.8C1.5 5.11984 1.5 4.27976 1.82698 3.63803C2.1146 3.07354 2.57354 2.6146 3.13803 2.32698C3.77976 2 4.61984 2 6.3 2H9.7C11.3802 2 12.2202 2 12.862 2.32698C13.4265 2.6146 13.8854 3.07354 14.173 3.63803C14.5 4.27976 14.5 5.11984 14.5 6.8V11.5H15.25C15.6642 11.5 16 11.8358 16 12.25C16 12.6642 15.6642 13 15.25 13H0.75C0.335786 13 0 12.6642 0 12.25C0 11.8358 0.335786 11.5 0.75 11.5H1.5V6.8ZM3 11.5H13V5.9C13 5.05992 13 4.63988 12.8365 4.31901C12.6927 4.03677 12.4632 3.8073 12.181 3.66349C11.8601 3.5 11.4401 3.5 10.6 3.5H5.4C4.55992 3.5 4.13988 3.5 3.81901 3.66349C3.53677 3.8073 3.3073 4.03677 3.16349 4.31901C3 4.63988 3 5.05992 3 5.9V11.5Z"></path></svg>'),ds=e=>{const t=jr();return(()=>{const n=us.cloneNode(!0),r=n.firstChild;return cn((()=>or(r,"fill",e.fill||t.colors.icon.primary))),n})()},fs=rr('<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" viewBox="0 0 17 16" fill="none"><g clip-path="url(#clip0_3676_1603)"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 1.25049C15.5 0.836275 15.1642 0.500488 14.75 0.500488C14.3358 0.500488 14 0.836275 14 1.25049V3.67012C12.7187 2.04487 10.7318 1.00049 8.5 1.00049C4.63401 1.00049 1.5 4.1345 1.5 8.00049C1.5 11.8665 4.63401 15.0005 8.5 15.0005C11.6844 15.0005 14.3703 12.8748 15.2199 9.96661C15.3361 9.56902 15.1079 9.15254 14.7103 9.03638C14.3127 8.92023 13.8962 9.14838 13.7801 9.54597C13.1123 11.8319 11 13.5005 8.5 13.5005C5.46243 13.5005 3 11.0381 3 8.00049C3 4.96292 5.46243 2.50049 8.5 2.50049C10.321 2.50049 11.9363 3.3855 12.9377 4.75049H10.5C10.0858 4.75049 9.75 5.08627 9.75 5.50049C9.75 5.9147 10.0858 6.25049 10.5 6.25049H14.75C15.1642 6.25049 15.5 5.9147 15.5 5.50049V1.25049Z"></path></g><defs><clipPath id="clip0_3676_1603"><rect width="16" height="16" fill="white" transform="translate(0.5 0.000488281)"></rect></clipPath></defs></svg>'),hs=e=>{const t=jr();return(()=>{const n=fs.cloneNode(!0),r=n.firstChild.firstChild;return cn((()=>or(r,"fill",e.fill||t.colors.accent))),n})()},ps=rr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M13 4.06119V6.75053C13 7.16474 13.3358 7.50053 13.75 7.50053C14.1642 7.50053 14.5 7.16474 14.5 6.75053V2.75053L14.5 2.72807C14.5001 2.63191 14.5003 2.49627 14.4842 2.37627C14.4638 2.22503 14.4063 1.99261 14.2071 1.79342C14.0079 1.59423 13.7755 1.5367 13.6243 1.51637C13.5043 1.50023 13.3686 1.50039 13.2725 1.50051L13.25 1.50053H9.25C8.83579 1.50053 8.5 1.83631 8.5 2.25053C8.5 2.66474 8.83579 3.00053 9.25 3.00053H11.9393L7.21967 7.7202C6.92678 8.01309 6.92678 8.48796 7.21967 8.78086C7.51256 9.07375 7.98744 9.07375 8.28033 8.78086L13 4.06119ZM5.85 1.50053H5.81903H5.81899C5.21528 1.50052 4.71702 1.50051 4.31113 1.53367C3.88956 1.56812 3.50203 1.64204 3.13803 1.82751C2.57354 2.11513 2.1146 2.57407 1.82698 3.13856C1.64151 3.50256 1.56759 3.89009 1.53315 4.31166C1.49998 4.71755 1.49999 5.21581 1.5 5.81953V5.81955V5.85053V10.1505V10.1815V10.1815C1.49999 10.7852 1.49998 11.2835 1.53315 11.6894C1.56759 12.111 1.64151 12.4985 1.82698 12.8625C2.1146 13.427 2.57354 13.8859 3.13803 14.1735C3.50203 14.359 3.88956 14.4329 4.31113 14.4674C4.71702 14.5005 5.21527 14.5005 5.81897 14.5005H5.81901H5.85H10.15H10.181H10.181C10.7847 14.5005 11.283 14.5005 11.6889 14.4674C12.1104 14.4329 12.498 14.359 12.862 14.1735C13.4265 13.8859 13.8854 13.427 14.173 12.8625C14.3585 12.4985 14.4324 12.111 14.4669 11.6894C14.5 11.2835 14.5 10.7853 14.5 10.1816V10.1815V10.1505V9.75053C14.5 9.33631 14.1642 9.00053 13.75 9.00053C13.3358 9.00053 13 9.33631 13 9.75053V10.1505C13 10.793 12.9994 11.2297 12.9718 11.5672C12.945 11.8961 12.8963 12.0642 12.8365 12.1815C12.6927 12.4638 12.4632 12.6932 12.181 12.837C12.0637 12.8968 11.8955 12.9455 11.5667 12.9724C11.2292 12.9999 10.7924 13.0005 10.15 13.0005H5.85C5.20757 13.0005 4.77085 12.9999 4.43328 12.9724C4.10447 12.9455 3.93632 12.8968 3.81902 12.837C3.53677 12.6932 3.3073 12.4638 3.16349 12.1815C3.10372 12.0642 3.05503 11.8961 3.02816 11.5672C3.00058 11.2297 3 10.793 3 10.1505V5.85053C3 5.20809 3.00058 4.77137 3.02816 4.43381C3.05503 4.10499 3.10372 3.93684 3.16349 3.81954C3.3073 3.5373 3.53677 3.30783 3.81902 3.16402C3.93632 3.10425 4.10447 3.05556 4.43328 3.02869C4.77085 3.00111 5.20757 3.00053 5.85 3.00053H6.25C6.66422 3.00053 7 2.66474 7 2.25053C7 1.83631 6.66422 1.50053 6.25 1.50053H5.85Z"></path></svg>'),gs=e=>{const t=jr();return(()=>{const n=ps.cloneNode(!0),r=n.firstChild;return cn((()=>or(r,"fill",e.fill||t.colors.accent))),n})()},ms=rr('<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" viewBox="0 0 17 16" fill="none"><g clip-path="url(#clip0_3676_1274)"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.82698 2.63901C1.5 3.28074 1.5 4.12082 1.5 5.80098V8.80098V9.00098V10.201C1.5 11.8811 1.5 12.7212 1.82698 13.3629C2.1146 13.9274 2.57354 14.3864 3.13803 14.674C3.77976 15.001 4.61984 15.001 6.3 15.001H11.7C13.3802 15.001 14.2202 15.001 14.862 14.674C15.4265 14.3864 15.8854 13.9274 16.173 13.3629C16.5 12.7212 16.5 11.8811 16.5 10.201V8.80098C16.5 7.12082 16.5 6.28074 16.173 5.63901C15.8854 5.07452 15.4265 4.61558 14.862 4.32796C14.743 4.26733 14.6172 4.21795 14.4805 4.17772C14.4501 3.49449 14.3722 3.02994 14.173 2.63901C13.8854 2.07452 13.4265 1.61558 12.862 1.32796C12.2202 1.00098 11.3802 1.00098 9.7 1.00098H6.3C4.61984 1.00098 3.77976 1.00098 3.13803 1.32796C2.57354 1.61558 2.1146 2.07452 1.82698 2.63901ZM12.9861 4.00942C12.9684 3.7108 12.9281 3.49982 12.8365 3.31999C12.6927 3.03775 12.4632 2.80828 12.181 2.66447C11.8601 2.50098 11.4401 2.50098 10.6 2.50098H5.4C4.55992 2.50098 4.13988 2.50098 3.81901 2.66447C3.53677 2.80828 3.3073 3.03775 3.16349 3.31999C3.03615 3.56991 3.00799 3.88 3.00177 4.40188C3.04646 4.37612 3.09189 4.35146 3.13803 4.32796C3.77976 4.00098 4.61984 4.00098 6.3 4.00098H11.7C12.1966 4.00098 12.6197 4.00098 12.9861 4.00942ZM3 7.90098V8.10098C3 8.47468 3 8.76527 3.01439 9.00098H3V11.101C3 11.9411 3 12.3611 3.16349 12.682C3.3073 12.9642 3.53677 13.1937 3.81901 13.3375C4.13988 13.501 4.55992 13.501 5.4 13.501H12.6C13.4401 13.501 13.8601 13.501 14.181 13.3375C14.4632 13.1937 14.6927 12.9642 14.8365 12.682C15 12.3611 15 11.9411 15 11.101V7.90098C15 7.0609 15 6.64086 14.8365 6.31999C14.6927 6.03775 14.4632 5.80828 14.181 5.66447C13.8601 5.50098 13.4401 5.50098 12.6 5.50098H5.4C4.55992 5.50098 4.13988 5.50098 3.81901 5.66447C3.53677 5.80828 3.3073 6.03775 3.16349 6.31999C3 6.64086 3 7.0609 3 7.90098ZM10.5 9.75098C10.5 9.33676 10.8358 9.00098 11.25 9.00098H12.75C13.1642 9.00098 13.5 9.33676 13.5 9.75098C13.5 10.1652 13.1642 10.501 12.75 10.501H11.25C10.8358 10.501 10.5 10.1652 10.5 9.75098Z"></path></g><defs><clipPath id="clip0_3676_1274"><rect width="16" height="16" fill="white" transform="translate(0.5 0.000976562)"></rect></clipPath></defs></svg>'),vs=e=>{const t=jr();return(()=>{const n=ms.cloneNode(!0),r=n.firstChild.firstChild;return cn((()=>or(r,"fill",e.fill||t.colors.accent))),n})()},ys=rr('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M39.6319 16.8719C38.3212 16.2041 36.7002 16.0478 34 16.0112V11C34 5.47715 29.5228 1 24 1C18.4772 1 14 5.47715 14 11V16.0112C11.2998 16.0478 9.6788 16.2041 8.36808 16.8719C6.86278 17.6389 5.63893 18.8628 4.87195 20.3681C4 22.0794 4 24.3196 4 28.8V32.2C4 36.6804 4 38.9206 4.87195 40.6319C5.63893 42.1372 6.86278 43.3611 8.36808 44.1281C10.0794 45 12.3196 45 16.8 45H31.2C35.6804 45 37.9206 45 39.6319 44.1281C41.1372 43.3611 42.3611 42.1372 43.1281 40.6319C44 38.9206 44 36.6804 44 32.2V28.8C44 24.3196 44 22.0794 43.1281 20.3681C42.3611 18.8628 41.1372 17.6389 39.6319 16.8719ZM31 11V16H17V11C17 7.13401 20.134 4 24 4C27.866 4 31 7.13401 31 11ZM7.54497 21.73C7 22.7996 7 24.1997 7 27V34C7 36.8003 7 38.2004 7.54497 39.27C8.02433 40.2108 8.78924 40.9757 9.73005 41.455C10.7996 42 12.1997 42 15 42H33C35.8003 42 37.2004 42 38.27 41.455C39.2108 40.9757 39.9757 40.2108 40.455 39.27C41 38.2004 41 36.8003 41 34V27C41 24.1997 41 22.7996 40.455 21.73C39.9757 20.7892 39.2108 20.0243 38.27 19.545C37.2004 19 35.8003 19 33 19H15C12.1997 19 10.7996 19 9.73005 19.545C8.78924 20.0243 8.02433 20.7892 7.54497 21.73ZM24 24C23.1716 24 22.5 24.6716 22.5 25.5V29.5C22.5 30.3284 23.1716 31 24 31C24.8284 31 25.5 30.3284 25.5 29.5V25.5C25.5 24.6716 24.8284 24 24 24Z"></path></svg>'),bs=e=>{const t=jr();return(()=>{const n=ys.cloneNode(!0),r=n.firstChild;return cn((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&or(n,"class",o._v$=i),a!==o._v$2&&or(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},ws=rr('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M37.485 37.3849C40.894 33.9506 43 29.2212 43 24C43 13.5066 34.4934 5 24 5C13.5066 5 5 13.5066 5 24C5 29.2213 7.1061 33.9507 10.5151 37.385C13.3583 32.9438 18.3354 30 24.0001 30C29.6647 30 34.6418 32.9437 37.485 37.3849ZM35.1809 39.3635C32.9143 35.5532 28.7554 33 24.0001 33C19.2448 33 15.0858 35.5533 12.8193 39.3636C15.9564 41.6506 19.8206 43 24 43C28.1795 43 32.0437 41.6505 35.1809 39.3635ZM24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46ZM24 24C26.7614 24 29 21.7614 29 19C29 16.2386 26.7614 14 24 14C21.2386 14 19 16.2386 19 19C19 21.7614 21.2386 24 24 24ZM24 27C28.4183 27 32 23.4183 32 19C32 14.5817 28.4183 11 24 11C19.5817 11 16 14.5817 16 19C16 23.4183 19.5817 27 24 27Z"></path></svg>'),xs=e=>{const t=jr();return(()=>{const n=ws.cloneNode(!0),r=n.firstChild;return cn((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&or(n,"class",o._v$=i),a!==o._v$2&&or(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},Cs=rr('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M34.5607 4.43934C33.9749 3.85355 33.0251 3.85355 32.4393 4.43934C31.8536 5.02513 31.8536 5.97487 32.4393 6.56066L37.8787 12H10.5C9.67157 12 9 12.6716 9 13.5C9 14.3284 9.67157 15 10.5 15H37.8787L32.4393 20.4393C31.8536 21.0251 31.8536 21.9749 32.4393 22.5607C33.0251 23.1464 33.9749 23.1464 34.5607 22.5607L42.5607 14.5607C43.1464 13.9749 43.1464 13.0251 42.5607 12.4393L34.5607 4.43934ZM13.4393 25.4393C14.0251 24.8536 14.9749 24.8536 15.5607 25.4393C16.1464 26.0251 16.1464 26.9749 15.5607 27.5607L10.1213 33H37.5C38.3284 33 39 33.6716 39 34.5C39 35.3284 38.3284 36 37.5 36H10.1213L15.5607 41.4393C16.1464 42.0251 16.1464 42.9749 15.5607 43.5607C14.9749 44.1464 14.0251 44.1464 13.4393 43.5607L5.43934 35.5607C4.85355 34.9749 4.85355 34.0251 5.43934 33.4393L13.4393 25.4393Z"></path></svg>'),ks=e=>{const t=jr();return(()=>{const n=Cs.cloneNode(!0),r=n.firstChild;return cn((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&or(n,"class",o._v$=i),a!==o._v$2&&or(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},Ss=rr('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="29" viewBox="0 0 28 29" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.75 12.002C1.75 9.20169 1.75 7.80156 2.29497 6.732C2.77433 5.79119 3.53924 5.02629 4.48005 4.54692C5.54961 4.00195 6.94974 4.00195 9.75 4.00195H17.25C20.0503 4.00195 21.4504 4.00195 22.52 4.54692C23.4608 5.02629 24.2257 5.79119 24.705 6.732C24.8256 6.96861 24.9195 7.2214 24.9926 7.50195H21.5C19.6377 7.50195 18.7065 7.50195 17.9609 7.77334C16.711 8.22828 15.7263 9.21291 15.2714 10.4629C15 11.2085 15 12.1396 15 14.002C15 15.8643 15 16.7954 15.2714 17.541C15.7263 18.791 16.711 19.7756 17.9609 20.2306C18.7065 20.502 19.6377 20.502 21.5 20.502H24.9926C24.9195 20.7825 24.8256 21.0353 24.705 21.2719C24.2257 22.2127 23.4608 22.9776 22.52 23.457C21.4504 24.002 20.0503 24.002 17.25 24.002H9.75C6.94974 24.002 5.54961 24.002 4.48005 23.457C3.53924 22.9776 2.77433 22.2127 2.29497 21.2719C1.75 20.2023 1.75 18.8022 1.75 16.002V12.002ZM16.4999 13.802C16.4999 12.1218 16.4999 11.2817 16.8269 10.64C17.1145 10.0755 17.5735 9.61656 18.138 9.32894C18.7797 9.00196 19.6198 9.00196 21.2999 9.00196H23.1999C24.8801 9.00196 25.7202 9.00196 26.3619 9.32894C26.9264 9.61656 27.3853 10.0755 27.673 10.64C27.9999 11.2817 27.9999 12.1218 27.9999 13.802V14.202C27.9999 15.8821 27.9999 16.7222 27.673 17.3639C27.3853 17.9284 26.9264 18.3874 26.3619 18.675C25.7202 19.002 24.8801 19.002 23.1999 19.002H21.2999C19.6198 19.002 18.7797 19.002 18.138 18.675C17.5735 18.3874 17.1145 17.9284 16.8269 17.3639C16.4999 16.7222 16.4999 15.8821 16.4999 14.202V13.802ZM22.4999 14.002C22.4999 14.9685 21.7164 15.752 20.7499 15.752C19.7834 15.752 18.9999 14.9685 18.9999 14.002C18.9999 13.0355 19.7834 12.252 20.7499 12.252C21.7164 12.252 22.4999 13.0355 22.4999 14.002Z"></path></svg>'),Es=e=>{const t=jr();return(()=>{const n=Ss.cloneNode(!0),r=n.firstChild;return cn((o=>{const i=e.class,a=e.fill||t.colors.constant.white;return i!==o._v$&&or(n,"class",o._v$=i),a!==o._v$2&&or(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},_s=rr('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M24.7803 7.21967C25.0732 7.51256 25.0732 7.98744 24.7803 8.28033L11.5303 21.5303C11.2374 21.8232 10.7626 21.8232 10.4697 21.5303L4.21967 15.2803C3.92678 14.9874 3.92678 14.5126 4.21967 14.2197C4.51256 13.9268 4.98744 13.9268 5.28033 14.2197L11 19.9393L23.7197 7.21967C24.0126 6.92678 24.4874 6.92678 24.7803 7.21967Z"></path></svg>'),As=e=>{const t=jr();return(()=>{const n=_s.cloneNode(!0),r=n.firstChild;return cn((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&or(n,"class",o._v$=i),a!==o._v$2&&or(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},Ts=rr('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0001 10.0001C10.0016 8.02333 10.0267 6.98719 10.436 6.18404C10.8195 5.43139 11.4314 4.81947 12.184 4.43597C13.0397 4 14.1598 4 16.4 4H17.6C19.8402 4 20.9603 4 21.816 4.43597C22.5686 4.81947 23.1805 5.43139 23.564 6.18404C24 7.03969 24 8.15979 24 10.4V11.6C24 13.8402 24 14.9603 23.564 15.816C23.1805 16.5686 22.5686 17.1805 21.816 17.564C21.0128 17.9733 19.9767 17.9984 17.9999 17.9999C17.9984 19.9767 17.9733 21.0128 17.564 21.816C17.1805 22.5686 16.5686 23.1805 15.816 23.564C14.9603 24 13.8402 24 11.6 24H10.4C8.15979 24 7.03969 24 6.18404 23.564C5.43139 23.1805 4.81947 22.5686 4.43597 21.816C4 20.9603 4 19.8402 4 17.6V16.4C4 14.1598 4 13.0397 4.43597 12.184C4.81947 11.4314 5.43139 10.8195 6.18404 10.436C6.98719 10.0267 8.02333 10.0016 10.0001 10.0001ZM10 11.5H9.5C8.09987 11.5 7.3998 11.5 6.86502 11.7725C6.39462 12.0122 6.01217 12.3946 5.77248 12.865C5.5 13.3998 5.5 14.0999 5.5 15.5V18.5C5.5 19.9001 5.5 20.6002 5.77248 21.135C6.01217 21.6054 6.39462 21.9878 6.86502 22.2275C7.3998 22.5 8.09987 22.5 9.5 22.5H12.5C13.9001 22.5 14.6002 22.5 15.135 22.2275C15.6054 21.9878 15.9878 21.6054 16.2275 21.135C16.5 20.6002 16.5 19.9001 16.5 18.5V18H16.4C14.1598 18 13.0397 18 12.184 17.564C11.4314 17.1805 10.8195 16.5686 10.436 15.816C10 14.9603 10 13.8402 10 11.6V11.5ZM11.5 9.5C11.5 8.09987 11.5 7.3998 11.7725 6.86502C12.0122 6.39462 12.3946 6.01217 12.865 5.77248C13.3998 5.5 14.0999 5.5 15.5 5.5H18.5C19.9001 5.5 20.6002 5.5 21.135 5.77248C21.6054 6.01217 21.9878 6.39462 22.2275 6.86502C22.5 7.3998 22.5 8.09987 22.5 9.5V12.5C22.5 13.9001 22.5 14.6002 22.2275 15.135C21.9878 15.6054 21.6054 15.9878 21.135 16.2275C20.6002 16.5 19.9001 16.5 18.5 16.5H15.5C14.0999 16.5 13.3998 16.5 12.865 16.2275C12.3946 15.9878 12.0122 15.6054 11.7725 15.135C11.5 14.6002 11.5 13.9001 11.5 12.5V9.5Z"></path></svg>'),Rs=e=>{const t=jr(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=Ts.cloneNode(!0),t=e.firstChild;return cn((r=>{const o=n(),i=n();return o!==r._v$&&or(e,"fill",r._v$=o),i!==r._v$2&&or(t,"fill",r._v$2=i),r}),{_v$:void 0,_v$2:void 0}),e})()},Os=rr('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1 4.12695C1 3.07754 1 2.55284 1.19202 2.14684C1.38986 1.72856 1.7266 1.39181 2.14489 1.19397C2.55088 1.00195 3.07559 1.00195 4.125 1.00195C5.17441 1.00195 5.69912 1.00195 6.10511 1.19397C6.5234 1.39181 6.86014 1.72856 7.05798 2.14684C7.25 2.55284 7.25 3.07754 7.25 4.12695C7.25 5.17636 7.25 5.70107 7.05798 6.10706C6.86014 6.52535 6.5234 6.8621 6.10511 7.05993C5.69912 7.25195 5.17441 7.25195 4.125 7.25195C3.07559 7.25195 2.55088 7.25195 2.14489 7.05993C1.7266 6.8621 1.38986 6.52535 1.19202 6.10706C1 5.70107 1 5.17636 1 4.12695ZM2.5 3.30195C2.5 3.02193 2.5 2.88191 2.5545 2.77496C2.60243 2.68088 2.67892 2.60439 2.773 2.55645C2.87996 2.50195 3.01997 2.50195 3.3 2.50195H4.95C5.23003 2.50195 5.37004 2.50195 5.477 2.55645C5.57108 2.60439 5.64757 2.68088 5.6955 2.77496C5.75 2.88191 5.75 3.02193 5.75 3.30195V4.95195C5.75 5.23198 5.75 5.37199 5.6955 5.47895C5.64757 5.57303 5.57108 5.64952 5.477 5.69746C5.37004 5.75195 5.23003 5.75195 4.95 5.75195H3.3C3.01997 5.75195 2.87996 5.75195 2.773 5.69746C2.67892 5.64952 2.60243 5.57303 2.5545 5.47895C2.5 5.37199 2.5 5.23198 2.5 4.95195V3.30195ZM1 11.877C1 10.8275 1 10.3028 1.19202 9.89684C1.38986 9.47856 1.7266 9.14181 2.14489 8.94397C2.55088 8.75195 3.07559 8.75195 4.125 8.75195C5.17441 8.75195 5.69912 8.75195 6.10511 8.94397C6.5234 9.14181 6.86014 9.47856 7.05798 9.89684C7.25 10.3028 7.25 10.8275 7.25 11.877C7.25 12.9264 7.25 13.4511 7.05798 13.8571C6.86014 14.2753 6.5234 14.6121 6.10511 14.8099C5.69912 15.002 5.17441 15.002 4.125 15.002C3.07559 15.002 2.55088 15.002 2.14489 14.8099C1.7266 14.6121 1.38986 14.2753 1.19202 13.8571C1 13.4511 1 12.9264 1 11.877ZM2.5 11.052C2.5 10.7719 2.5 10.6319 2.5545 10.525C2.60243 10.4309 2.67892 10.3544 2.773 10.3064C2.87996 10.252 3.01997 10.252 3.3 10.252H4.95C5.23003 10.252 5.37004 10.252 5.477 10.3064C5.57108 10.3544 5.64757 10.4309 5.6955 10.525C5.75 10.6319 5.75 10.7719 5.75 11.052V12.702C5.75 12.982 5.75 13.122 5.6955 13.2289C5.64757 13.323 5.57108 13.3995 5.477 13.4475C5.37004 13.502 5.23003 13.502 4.95 13.502H3.3C3.01997 13.502 2.87996 13.502 2.773 13.4475C2.67892 13.3995 2.60243 13.323 2.5545 13.2289C2.5 13.122 2.5 12.982 2.5 12.702V11.052ZM8.94202 2.14684C8.75 2.55284 8.75 3.07754 8.75 4.12695C8.75 5.17636 8.75 5.70107 8.94202 6.10706C9.13986 6.52535 9.4766 6.8621 9.89489 7.05993C10.3009 7.25195 10.8256 7.25195 11.875 7.25195C12.9244 7.25195 13.4491 7.25195 13.8551 7.05993C14.2734 6.8621 14.6101 6.52535 14.808 6.10706C15 5.70107 15 5.17636 15 4.12695C15 3.07754 15 2.55284 14.808 2.14684C14.6101 1.72856 14.2734 1.39181 13.8551 1.19397C13.4491 1.00195 12.9244 1.00195 11.875 1.00195C10.8256 1.00195 10.3009 1.00195 9.89489 1.19397C9.4766 1.39181 9.13986 1.72856 8.94202 2.14684ZM10.3045 2.77496C10.25 2.88191 10.25 3.02193 10.25 3.30195V4.95195C10.25 5.23198 10.25 5.37199 10.3045 5.47895C10.3524 5.57303 10.4289 5.64952 10.523 5.69746C10.63 5.75195 10.77 5.75195 11.05 5.75195H12.7C12.98 5.75195 13.12 5.75195 13.227 5.69746C13.3211 5.64952 13.3976 5.57303 13.4455 5.47895C13.5 5.37199 13.5 5.23198 13.5 4.95195V3.30195C13.5 3.02193 13.5 2.88191 13.4455 2.77496C13.3976 2.68088 13.3211 2.60439 13.227 2.55645C13.12 2.50195 12.98 2.50195 12.7 2.50195H11.05C10.77 2.50195 10.63 2.50195 10.523 2.55645C10.4289 2.60439 10.3524 2.68088 10.3045 2.77496ZM8.80727 9.13518C8.75 9.26242 8.75 9.4256 8.75 9.75195C8.75 10.0783 8.75 10.2415 8.80727 10.3687C8.87245 10.5136 8.9884 10.6295 9.13323 10.6947C9.26047 10.752 9.42365 10.752 9.75 10.752C10.0764 10.752 10.2395 10.752 10.3668 10.6947C10.5116 10.6295 10.6276 10.5136 10.6927 10.3687C10.75 10.2415 10.75 10.0783 10.75 9.75195C10.75 9.4256 10.75 9.26242 10.6927 9.13518C10.6276 8.99035 10.5116 8.8744 10.3668 8.80922C10.2395 8.75195 10.0764 8.75195 9.75 8.75195C9.42365 8.75195 9.26047 8.75195 9.13323 8.80922C8.9884 8.8744 8.87245 8.99035 8.80727 9.13518ZM10.87 11.8771C10.87 11.546 10.87 11.3805 10.9289 11.2517C10.9938 11.1098 11.1077 10.9959 11.2497 10.931C11.3784 10.8721 11.5439 10.8721 11.875 10.8721C12.2061 10.8721 12.3716 10.8721 12.5003 10.931C12.6423 10.9959 12.7562 11.1098 12.8211 11.2517C12.88 11.3805 12.88 11.546 12.88 11.8771C12.88 12.2081 12.88 12.3737 12.8211 12.5024C12.7562 12.6444 12.6423 12.7583 12.5003 12.8232C12.3716 12.8821 12.2061 12.8821 11.875 12.8821C11.5439 12.8821 11.3784 12.8821 11.2497 12.8232C11.1077 12.7583 10.9938 12.6444 10.9289 12.5024C10.87 12.3737 10.87 12.2081 10.87 11.8771ZM8.80727 13.3852C8.75 13.5124 8.75 13.6756 8.75 14.002C8.75 14.3283 8.75 14.4915 8.80727 14.6187C8.87245 14.7636 8.9884 14.8795 9.13323 14.9447C9.26047 15.002 9.42365 15.002 9.75 15.002C10.0764 15.002 10.2395 15.002 10.3668 14.9447C10.5116 14.8795 10.6276 14.7636 10.6927 14.6187C10.75 14.4915 10.75 14.3283 10.75 14.002C10.75 13.6756 10.75 13.5124 10.6927 13.3852C10.6276 13.2404 10.5116 13.1244 10.3668 13.0592C10.2395 13.002 10.0764 13.002 9.75 13.002C9.42365 13.002 9.26047 13.002 9.13323 13.0592C8.9884 13.1244 8.87245 13.2404 8.80727 13.3852ZM13 9.75195C13 9.4256 13 9.26242 13.0573 9.13518C13.1224 8.99035 13.2384 8.8744 13.3832 8.80922C13.5105 8.75195 13.6736 8.75195 14 8.75195C14.3264 8.75195 14.4895 8.75195 14.6168 8.80922C14.7616 8.8744 14.8776 8.99035 14.9427 9.13518C15 9.26242 15 9.4256 15 9.75195C15 10.0783 15 10.2415 14.9427 10.3687C14.8776 10.5136 14.7616 10.6295 14.6168 10.6947C14.4895 10.752 14.3264 10.752 14 10.752C13.6736 10.752 13.5105 10.752 13.3832 10.6947C13.2384 10.6295 13.1224 10.5136 13.0573 10.3687C13 10.2415 13 10.0783 13 9.75195ZM13.0573 13.3852C13 13.5124 13 13.6756 13 14.002C13 14.3283 13 14.4915 13.0573 14.6187C13.1224 14.7636 13.2384 14.8795 13.3832 14.9447C13.5105 15.002 13.6736 15.002 14 15.002C14.3264 15.002 14.4895 15.002 14.6168 14.9447C14.7616 14.8795 14.8776 14.7636 14.9427 14.6187C15 14.4915 15 14.3283 15 14.002C15 13.6756 15 13.5124 14.9427 13.3852C14.8776 13.2404 14.7616 13.1244 14.6168 13.0592C14.4895 13.002 14.3264 13.002 14 13.002C13.6736 13.002 13.5105 13.002 13.3832 13.0592C13.2384 13.1244 13.1224 13.2404 13.0573 13.3852Z"></path></svg>'),Ps=e=>{const t=jr();return(()=>{const n=Os.cloneNode(!0),r=n.firstChild;return cn((()=>or(r,"fill",e.fill||t.colors.icon.secondary))),n})()},Ls={m:"16px",s:"12px",none:"0"},Ms={m:"6px",s:"6px",none:"0"},Ns=Dr.div`
|
|
453
453
|
width: 60px;
|
|
454
454
|
height: 60px;
|
|
455
455
|
padding: 8px;
|
|
456
456
|
margin-bottom: 8px;
|
|
457
|
-
border-radius: ${e=>
|
|
457
|
+
border-radius: ${e=>Ls[e.theme.borderRadius]};
|
|
458
458
|
background-color: ${e=>e.theme.colors.background.tint};
|
|
459
459
|
display: grid;
|
|
460
460
|
grid-template: 1fr 1fr / 1fr 1fr;
|
|
461
461
|
gap: 4px;
|
|
462
|
-
`,
|
|
462
|
+
`,Is=Dr(Sa)`
|
|
463
463
|
width: 20px;
|
|
464
464
|
height: 20px;
|
|
465
|
-
border-radius: ${e=>
|
|
466
|
-
`,
|
|
465
|
+
border-radius: ${e=>Ms[e.theme.borderRadius]};
|
|
466
|
+
`,js=e=>Un(Ma,{get name(){return e.labelLine1},get secondLine(){return e.labelLine2},get icon(){return Un(Ns,{get children(){return Un(Vn,{each:[0,1,2,3],children:t=>Un(Is,{get src(){return e.images[t]}})})}})},onClick:()=>e.onClick()}),$s="telegram-wallet",Ds="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/ton-icon-48.png",Us="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/tg.png",Ws=e=>{const[t]=ba();return dn((()=>{const n=dn((()=>e.wallet.appName===$s));return()=>n()?Un(Ma,{get icon(){return e.wallet.imageUrl},get name(){return t("walletItem.walletOn",{},"Wallet On")},secondLine:"Telegram",get badgeUrl(){return Us},onClick:()=>e.onClick()}):Un(Ma,{get icon(){return e.wallet.imageUrl},get name(){return e.wallet.name},get secondLine(){return(()=>{if(e.wallet.appName!==$s)return"isPreferred"in e.wallet&&e.wallet.isPreferred?t("walletItem.recent",{},"Recent"):Ze(e.wallet)?t("walletItem.installed",{},"Installed"):"Tonkeeper"===e.wallet.name?t("walletItem.popular",{},"Popular"):void 0})()},secondLineColorPrimary:!1,onClick:()=>e.onClick()})})())},zs=Dr.div`
|
|
467
467
|
width: 100%;
|
|
468
468
|
overflow-y: auto;
|
|
469
469
|
max-height: ${e=>e.maxHeight};
|
|
@@ -480,7 +480,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
480
480
|
&&::-webkit-scrollbar-thumb {
|
|
481
481
|
display: none;
|
|
482
482
|
}
|
|
483
|
-
`,
|
|
483
|
+
`,Bs=Dr.div`
|
|
484
484
|
height: 1px;
|
|
485
485
|
margin: 0 -24px;
|
|
486
486
|
width: calc(100% + 48px);
|
|
@@ -488,25 +488,25 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
488
488
|
background: ${e=>e.isShown?e.theme.colors.icon.secondary:"transparent"};
|
|
489
489
|
transition: background 0.15s ease-in-out;
|
|
490
490
|
|
|
491
|
-
${
|
|
491
|
+
${pi("mobile")} {
|
|
492
492
|
width: 100%;
|
|
493
493
|
margin: 0;
|
|
494
494
|
}
|
|
495
|
-
`,[
|
|
495
|
+
`,[Fs,Hs]=sn((null==(Ot=to())?void 0:Ot.innerHeight)||0);to()&&window.addEventListener("resize",(()=>Hs(window.innerHeight)));const[Vs,Ks]=sn(hi("mobile")),qs=()=>Ks(hi("mobile"));to()&&(window.addEventListener("resize",(()=>qs())),window.addEventListener("load",(()=>qs()),{once:!0}));const Gs=e=>{const[t,n]=sn(!1),r=()=>void 0!==e.maxHeight?`${e.maxHeight}px`:Fs()-(Vs()?150:200)+"px";return[Un(Bs,{get isShown(){return t()}}),Un(zs,{get maxHeight(){return r()},onScroll:e=>{n(e.target.scrollTop>0)},get class(){return e.class},get children(){return e.children}})]},Qs=Dr.a`
|
|
496
496
|
display: block;
|
|
497
497
|
text-decoration: unset;
|
|
498
|
-
`,
|
|
498
|
+
`,Zs=e=>Un(Qs,Fn({get href(){return e.href},get target(){return e.blank?"_blank":"_self"},get class(){return e.class}},(()=>e.blank?{rel:"noreferrer noopener"}:{}),{get children(){return e.children}})),Ys=yn(),Xs=rr('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.76228 2.09998H10.2378C11.0458 2.09997 11.7067 2.09996 12.2438 2.14384C12.7997 2.18926 13.3017 2.28614 13.7706 2.52505C14.5045 2.89896 15.1011 3.49558 15.475 4.22941C15.7139 4.6983 15.8108 5.20038 15.8562 5.75629C15.9001 6.29337 15.9001 6.95422 15.9001 7.76227V8.1H16.2377C17.0457 8.09999 17.7066 8.09998 18.2437 8.14386C18.7996 8.18928 19.3017 8.28616 19.7705 8.52507C20.5044 8.89898 21.101 9.4956 21.4749 10.2294C21.7138 10.6983 21.8107 11.2004 21.8561 11.7563C21.9 12.2934 21.9 12.9542 21.9 13.7623V16.2377C21.9 17.0458 21.9 17.7066 21.8561 18.2437C21.8107 18.7996 21.7138 19.3017 21.4749 19.7706C21.101 20.5044 20.5044 21.101 19.7705 21.4749C19.3017 21.7138 18.7996 21.8107 18.2437 21.8561C17.7066 21.9 17.0458 21.9 16.2378 21.9H13.7623C12.9543 21.9 12.2934 21.9 11.7563 21.8561C11.2004 21.8107 10.6983 21.7138 10.2294 21.4749C9.49561 21.101 8.89898 20.5044 8.52508 19.7706C8.28616 19.3017 8.18928 18.7996 8.14386 18.2437C8.09998 17.7066 8.09999 17.0458 8.1 16.2377V15.9H7.76227C6.95426 15.9 6.29335 15.9 5.75629 15.8561C5.20038 15.8107 4.6983 15.7138 4.22941 15.4749C3.49558 15.101 2.89896 14.5044 2.52505 13.7705C2.28614 13.3017 2.18926 12.7996 2.14384 12.2437C2.09996 11.7066 2.09997 11.0458 2.09998 10.2377V7.76228C2.09997 6.95424 2.09996 6.29336 2.14384 5.75629C2.18926 5.20038 2.28614 4.6983 2.52505 4.22941C2.89896 3.49558 3.49558 2.89896 4.22941 2.52505C4.6983 2.28614 5.20038 2.18926 5.75629 2.14384C6.29336 2.09996 6.95425 2.09997 7.76228 2.09998ZM8.1 14.1V13.7623C8.09999 12.9542 8.09998 12.2934 8.14386 11.7563C8.18928 11.2004 8.28616 10.6983 8.52508 10.2294C8.89898 9.4956 9.49561 8.89898 10.2294 8.52507C10.6983 8.28616 11.2004 8.18928 11.7563 8.14386C12.2934 8.09998 12.9542 8.09999 13.7623 8.1H14.1001V7.79998C14.1001 6.94505 14.0994 6.35798 14.0622 5.90287C14.0259 5.45827 13.9593 5.21944 13.8712 5.0466C13.6699 4.65146 13.3486 4.3302 12.9535 4.12886C12.7806 4.04079 12.5418 3.97419 12.0972 3.93786C11.6421 3.90068 11.055 3.89998 10.2001 3.89998H7.79998C6.94505 3.89998 6.35798 3.90068 5.90287 3.93786C5.45827 3.97419 5.21944 4.04079 5.0466 4.12886C4.65146 4.3302 4.3302 4.65146 4.12886 5.0466C4.04079 5.21944 3.97419 5.45827 3.93786 5.90287C3.90068 6.35798 3.89998 6.94505 3.89998 7.79998V10.2C3.89998 11.0549 3.90068 11.642 3.93786 12.0971C3.97419 12.5417 4.04079 12.7805 4.12886 12.9534C4.3302 13.3485 4.65146 13.6698 5.0466 13.8711C5.21944 13.9592 5.45827 14.0258 5.90287 14.0621C6.35798 14.0993 6.94505 14.1 7.79998 14.1H8.1ZM11.0466 10.1289C11.2195 10.0408 11.4583 9.97421 11.9029 9.93788C12.358 9.9007 12.9451 9.9 13.8 9.9H16.2C17.0549 9.9 17.642 9.9007 18.0971 9.93788C18.5417 9.97421 18.7805 10.0408 18.9534 10.1289C19.3485 10.3302 19.6698 10.6515 19.8711 11.0466C19.9592 11.2195 20.0258 11.4583 20.0621 11.9029C20.0993 12.358 20.1 12.9451 20.1 13.8V16.2C20.1 17.0549 20.0993 17.642 20.0621 18.0971C20.0258 18.5417 19.9592 18.7805 19.8711 18.9534C19.6698 19.3485 19.3485 19.6698 18.9534 19.8711C18.7805 19.9592 18.5417 20.0258 18.0971 20.0621C17.642 20.0993 17.0549 20.1 16.2 20.1H13.8C12.9451 20.1 12.358 20.0993 11.9029 20.0621C11.4583 20.0258 11.2195 19.9592 11.0466 19.8711C10.6515 19.6698 10.3302 19.3485 10.1289 18.9534C10.0408 18.7805 9.97421 18.5417 9.93788 18.0971C9.9007 17.642 9.9 17.0549 9.9 16.2V13.8C9.9 12.9451 9.9007 12.358 9.93788 11.9029C9.97421 11.4583 10.0408 11.2195 10.1289 11.0466C10.3302 10.6515 10.6515 10.3302 11.0466 10.1289Z"></path></svg>'),Js=e=>{const t=jr();return(()=>{const n=Xs.cloneNode(!0),r=n.firstChild;return cn((o=>{const i=e.class,a=e.fill||t.colors.icon.primary;return i!==o._v$&&or(n,"class",o._v$=i),a!==o._v$2&&or(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},el=rr('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.7624 3.10001C7.95435 3.1 7.29349 3.09999 6.75642 3.14387C6.2005 3.18929 5.69842 3.28617 5.22954 3.52508C4.4957 3.89899 3.89908 4.49561 3.52517 5.22944C3.28626 5.69833 3.18938 6.20041 3.14396 6.75632C3.10008 7.2934 3.10009 7.95424 3.1001 8.76229V15.2377C3.10009 16.0458 3.10008 16.7066 3.14396 17.2437C3.18938 17.7996 3.28626 18.3017 3.52517 18.7706C3.89908 19.5044 4.4957 20.101 5.22954 20.4749C5.69842 20.7138 6.2005 20.8107 6.75642 20.8561C7.29349 20.9 7.95434 20.9 8.76239 20.9H12.0001C12.4972 20.9 12.9001 20.4971 12.9001 20C12.9001 19.503 12.4972 19.1 12.0001 19.1H8.8001C7.94517 19.1 7.3581 19.0993 6.90299 19.0621C6.45839 19.0258 6.21956 18.9592 6.04672 18.8711C5.65158 18.6698 5.33032 18.3485 5.12898 17.9534C5.04092 17.7805 4.97431 17.5417 4.93798 17.0971C4.9008 16.642 4.9001 16.0549 4.9001 15.2V8.80001C4.9001 7.94508 4.9008 7.35801 4.93798 6.9029C4.97431 6.4583 5.04092 6.21947 5.12898 6.04663C5.33032 5.65149 5.65158 5.33023 6.04672 5.12889C6.21956 5.04082 6.45839 4.97422 6.90299 4.93789C7.3581 4.90071 7.94517 4.90001 8.8001 4.90001H12.0001C12.4972 4.90001 12.9001 4.49706 12.9001 4.00001C12.9001 3.50295 12.4972 3.10001 12.0001 3.10001H8.7624Z"></path><path d="M17.6364 7.3636C17.2849 7.01212 16.7151 7.01212 16.3636 7.3636C16.0121 7.71507 16.0121 8.28492 16.3636 8.63639L18.8272 11.1H9.00001C8.50295 11.1 8.10001 11.5029 8.10001 12C8.10001 12.497 8.50295 12.9 9.00001 12.9H18.8272L16.3636 15.3636C16.0121 15.7151 16.0121 16.2849 16.3636 16.6364C16.7151 16.9879 17.2849 16.9879 17.6364 16.6364L21.6364 12.6364C21.9879 12.2849 21.9879 11.7151 21.6364 11.3636L17.6364 7.3636Z"></path></svg>'),tl=e=>{const t=jr(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const e=el.cloneNode(!0),t=e.firstChild,r=t.nextSibling;return cn((e=>{const o=n(),i=n();return o!==e._v$&&or(t,"fill",e._v$=o),i!==e._v$2&&or(r,"fill",e._v$2=i),e}),{_v$:void 0,_v$2:void 0}),e})()},nl={m:"8px",s:"4px",none:"0"},rl={m:"16px",s:"8px",none:"0"},ol=Dr.div`
|
|
499
499
|
width: 256px;
|
|
500
500
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
|
|
501
|
-
border-radius: ${e=>
|
|
501
|
+
border-radius: ${e=>rl[e.theme.borderRadius]};
|
|
502
502
|
|
|
503
503
|
background-color: ${e=>e.theme.colors.background.primary}
|
|
504
504
|
|
|
505
505
|
color: ${e=>e.theme.colors.text.primary}
|
|
506
|
-
`,
|
|
506
|
+
`,il=Dr.ul`
|
|
507
507
|
background-color: ${e=>e.theme.colors.background.primary};
|
|
508
508
|
padding: 8px;
|
|
509
|
-
`,
|
|
509
|
+
`,al=Dr.button`
|
|
510
510
|
display: flex;
|
|
511
511
|
align-items: center;
|
|
512
512
|
gap: 8px;
|
|
@@ -516,7 +516,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
516
516
|
|
|
517
517
|
background-color: ${e=>e.theme.colors.background.primary};
|
|
518
518
|
border: none;
|
|
519
|
-
border-radius: ${e=>
|
|
519
|
+
border-radius: ${e=>nl[e.theme.borderRadius]};
|
|
520
520
|
cursor: pointer;
|
|
521
521
|
|
|
522
522
|
transition: background-color, transform 0.1s ease-in-out;
|
|
@@ -528,7 +528,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
528
528
|
&:active {
|
|
529
529
|
transform: scale(0.96);
|
|
530
530
|
}
|
|
531
|
-
`,
|
|
531
|
+
`,sl=rr("<li></li>"),ll=e=>Un(xa,{get translationKey(){return e.translationKey},fontSize:"15px",fontWeight:"590",get children(){return e.children}}),cl={m:"16px",s:"8px",none:"0"},ul=Dr.div`
|
|
532
532
|
width: 256px;
|
|
533
533
|
padding: 12px 16px;
|
|
534
534
|
display: flex;
|
|
@@ -536,108 +536,108 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
536
536
|
|
|
537
537
|
background-color: ${e=>e.theme.colors.background.primary};
|
|
538
538
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
|
|
539
|
-
border-radius: ${e=>
|
|
540
|
-
`,
|
|
539
|
+
border-radius: ${e=>cl[e.theme.borderRadius]};
|
|
540
|
+
`,dl=Dr.div`
|
|
541
541
|
width: 192px;
|
|
542
542
|
|
|
543
543
|
> h3 {
|
|
544
544
|
font-size: 15px;
|
|
545
545
|
}
|
|
546
|
-
`,
|
|
546
|
+
`,fl=Dr(xa)`
|
|
547
547
|
margin-top: 4px;
|
|
548
548
|
color: ${e=>e.theme.colors.text.secondary};
|
|
549
|
-
`,
|
|
549
|
+
`,hl=e=>{const t=wi(e);return Un(ul,Fn({get class(){return e.class},"data-tc-notification":"true"},t,{get children(){return[Un(dl,{get children(){return[Un(Ua,{get translationKey(){return e.header.translationKey},get translationValues(){return e.header.translationValues},get children(){return e.children}}),Un(Kn,{get when(){return e.text},get children(){return Un(fl,{get translationKey(){return e.text.translationKey},get translationValues(){return e.text.translationValues}})}})]}}),dn((()=>e.icon))]}}))},pl=Dr(ts)`
|
|
550
550
|
align-self: center;
|
|
551
|
-
`,
|
|
551
|
+
`,gl=e=>{const t=bn(Ys),[n]=ba();return Un(hl,{get header(){return{translationKey:"notifications.confirm.header",translationValues:{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}}},get class(){return e.class},get icon(){return Un(pl,{})},"data-tc-notification-confirm":"true",children:"Confirm operation in your wallet"})},ml=Dr(Ya)`
|
|
552
552
|
margin-top: 2px;
|
|
553
|
-
`,
|
|
553
|
+
`,vl=e=>Un(hl,{header:{translationKey:"notifications.transactionCanceled.header"},text:{translationKey:"notifications.transactionCanceled.text"},get icon(){return Un(ml,{size:"xs"})},get class(){return e.class},"data-tc-notification-tx-cancelled":"true",children:"Transaction cancelled"}),yl=Dr(qa)`
|
|
554
554
|
margin-top: 2px;
|
|
555
|
-
`,
|
|
555
|
+
`,bl=e=>Un(hl,{header:{translationKey:"notifications.transactionSent.header"},text:{translationKey:"notifications.transactionSent.text"},get icon(){return Un(yl,{})},get class(){return e.class},"data-tc-notification-tx-sent":"true",children:"Transaction sent"}),wl=Lr`
|
|
556
556
|
transform: translateY(-8px);
|
|
557
557
|
margin-bottom: 12px;
|
|
558
|
-
`,
|
|
558
|
+
`,xl={timeout:4500},[Cl,kl]=sn(null);function Sl(e){const{timeout:t}=Wt(Wt({},xl),e),[n,r]=sn([]),[o,i]=sn([]);return un(function(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return n=>{let a;if(r){a=Array(e.length);for(let t=0;t<e.length;t++)a[t]=e[t]()}else a=e();if(i)return void(i=!1);const s=pn((()=>t(a,o,n)));return o=a,s}}(Co,(e=>{var n;if(!e||!e.showNotification)return;if(Cl()===e)return;if("confirm-transaction"===(null==(n=Cl())?void 0:n.name)&&"confirm-transaction"===e.name)return;kl(e),r((e=>e.filter((e=>"confirm-transaction"!==e.action))));const o={action:e.name};r((e=>[...e,o]));const a=setTimeout((()=>{r((e=>e.filter((e=>e!==o)))),i((e=>e.filter((e=>e!==a))))}),t);i((e=>[...e,a]))}))),mn((()=>{o().forEach((e=>clearTimeout(e)))})),n}const El=rr('<div data-tc-list-notifications="true"></div>'),_l=Dr(xi)`
|
|
559
559
|
background-color: ${e=>e.theme.colors.connectButton.background};
|
|
560
560
|
color: ${e=>e.theme.colors.connectButton.foreground};
|
|
561
|
-
box-shadow: ${e=>`0 4px 24px ${
|
|
561
|
+
box-shadow: ${e=>`0 4px 24px ${Hr(e.theme.colors.constant.black,.16)}`};
|
|
562
562
|
padding: 8px 16px 8px 12px;
|
|
563
563
|
|
|
564
564
|
display: flex;
|
|
565
565
|
align-items: center;
|
|
566
566
|
gap: 4px;
|
|
567
567
|
height: 40px;
|
|
568
|
-
`,
|
|
568
|
+
`,Al=Dr(_l)`
|
|
569
569
|
padding: 12px 16px;
|
|
570
570
|
min-width: 148px;
|
|
571
571
|
justify-content: center;
|
|
572
572
|
background-color: ${e=>e.theme.colors.background.primary};
|
|
573
|
-
`,
|
|
573
|
+
`,Tl=Dr(xi)`
|
|
574
574
|
min-width: 148px;
|
|
575
575
|
height: 40px;
|
|
576
576
|
|
|
577
577
|
background-color: ${e=>e.theme.colors.background.primary};
|
|
578
578
|
color: ${e=>e.theme.colors.connectButton.foreground};
|
|
579
|
-
box-shadow: ${e=>`0 4px 24px ${
|
|
579
|
+
box-shadow: ${e=>`0 4px 24px ${Hr(e.theme.colors.constant.black,.16)}`};
|
|
580
580
|
|
|
581
581
|
display: flex;
|
|
582
582
|
align-items: center;
|
|
583
583
|
justify-content: center;
|
|
584
|
-
`,
|
|
584
|
+
`,Rl=Dr(ts)`
|
|
585
585
|
height: 18px;
|
|
586
586
|
width: 18px;
|
|
587
|
-
`,
|
|
587
|
+
`,Ol=Dr.div`
|
|
588
588
|
width: fit-content;
|
|
589
589
|
display: flex;
|
|
590
590
|
flex-direction: column;
|
|
591
591
|
align-items: flex-end;
|
|
592
|
-
`,
|
|
592
|
+
`,Pl=Dr((e=>{const t=bn(Ys),[n,r]=sn(!1);return Un(ol,{ref(t){const n=e.ref;"function"===typeof n?n(t):e.ref=t},get class(){return e.class},"data-tc-dropdown":"true",get children(){return Un(il,{get children(){return[(()=>{const e=sl.cloneNode(!0);return lr(e,Un(al,{onClick:()=>Ft(void 0,null,(function*(){const e=wt(t.account.address,t.account.chain===te.TESTNET);yield ha(e),r(!0),setTimeout((()=>r(!1)),1e3)})),get children(){return[Un(Js,{}),Un(Kn,{get when(){return!n()},get children(){return Un(ll,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),Un(Kn,{get when(){return n()},get children(){return Un(ll,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),e})(),(()=>{const n=sl.cloneNode(!0);return lr(n,Un(al,{onClick:()=>(t.disconnect(),void e.onClose()),get children(){return[Un(tl,{}),Un(ll,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),n})()]}})}})}))`
|
|
593
593
|
box-sizing: border-box;
|
|
594
594
|
overflow: hidden;
|
|
595
595
|
margin-top: 12px;
|
|
596
|
-
`,
|
|
596
|
+
`,Ll=Dr((e=>{const t=Sl();return(()=>{const n=El.cloneNode(!0);return lr(n,Un(Ei,{onBeforeEnter:e=>{Vi(e,[{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(e,t)=>{Vi(e,[{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(t)},get children(){return Un(Vn,{get each(){return t()},children:e=>Un(qn,{get children(){return[Un(Gn,{get when(){return"transaction-sent"===e.action},get children(){return Un(bl,{class:wl})}}),Un(Gn,{get when(){return"transaction-canceled"===e.action},get children(){return Un(vl,{class:wl})}}),Un(Gn,{get when(){return"confirm-transaction"===e.action},get children(){return Un(gl,{class:wl})}})]}})})}})),cn((()=>ir(n,e.class))),n})()}))`
|
|
597
597
|
> div:first-child {
|
|
598
598
|
margin-top: 20px;
|
|
599
599
|
}
|
|
600
|
-
`;function Pl(e){return e.split("-")[0]}function Ll(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=function(e){return["top","bottom"].includes(Pl(e))?"x":"y"}(t),l="y"===s?"height":"width";const c=r[l]/2-o[l]/2,u="x"===s;let d;switch(Pl(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(function(e){return e.split("-")[1]}(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function Ml(e){return Ut(Dt({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function Nl(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Il(e){return Nl(e).getComputedStyle(e)}function jl(e){return zl(e)?(e.nodeName||"").toLowerCase():""}let $l;function Dl(){if($l)return $l;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?($l=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),$l):navigator.userAgent}function Ul(e){return e instanceof Nl(e).HTMLElement}function Wl(e){return e instanceof Nl(e).Element}function zl(e){return e instanceof Nl(e).Node}function Bl(e){if("undefined"===typeof ShadowRoot)return!1;return e instanceof Nl(e).ShadowRoot||e instanceof ShadowRoot}function Fl(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Il(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Hl(e){return["table","td","th"].includes(jl(e))}function Vl(e){const t=/firefox/i.test(Dl()),n=Il(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function Kl(){return!/^((?!chrome|android).)*safari/i.test(Dl())}function ql(e){return["html","body","#document"].includes(jl(e))}const Gl=Math.min,Ql=Math.max,Zl=Math.round,Yl={x:1,y:1};function Xl(e){const t=!Wl(e)&&e.contextElement?e.contextElement:Wl(e)?e:null;if(!t)return Yl;const n=t.getBoundingClientRect(),r=Il(t);if("border-box"!==r.boxSizing)return Ul(t)?{x:t.offsetWidth>0&&Zl(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&Zl(n.height)/t.offsetHeight||1}:Yl;let o=n.width/parseFloat(r.width),i=n.height/parseFloat(r.height);return o&&Number.isFinite(o)||(o=1),i&&Number.isFinite(i)||(i=1),{x:o,y:i}}function Jl(e,t,n,r){var o,i,a,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let c=Yl;t&&(r?Wl(r)&&(c=Xl(r)):c=Xl(e));const u=Wl(e)?Nl(e):window,d=!Kl()&&n,f=(l.left+(d&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetLeft)?o:0))/c.x,h=(l.top+(d&&null!=(a=null==(s=u.visualViewport)?void 0:s.offsetTop)?a:0))/c.y,p=l.width/c.x,g=l.height/c.y;return{width:p,height:g,top:h,right:f+p,bottom:h+g,left:f,x:f,y:h}}function ec(e){return((zl(e)?e.ownerDocument:e.document)||window.document).documentElement}function tc(e){return Wl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function nc(e){return Jl(ec(e)).left+tc(e).scrollLeft}function rc(e,t,n){const r=Ul(t),o=ec(t),i=Jl(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==jl(t)||Fl(o))&&(a=tc(t)),Ul(t)){const e=Jl(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=nc(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function oc(e){if("html"===jl(e))return e;const t=e.assignedSlot||e.parentNode||(Bl(e)?e.host:null)||ec(e);return Bl(t)?t.host:t}function ic(e){return Ul(e)&&"fixed"!==Il(e).position?e.offsetParent:null}function ac(e){const t=Nl(e);let n=ic(e);for(;n&&Hl(n)&&"static"===Il(n).position;)n=ic(n);return n&&("html"===jl(n)||"body"===jl(n)&&"static"===Il(n).position&&!Vl(n))?t:n||function(e){let t=oc(e);for(;Ul(t)&&!ql(t);){if(Vl(t))return t;t=oc(t)}return null}(e)||t}function sc(e){const t=oc(e);return ql(t)?e.ownerDocument.body:Ul(t)&&Fl(t)?t:sc(t)}function lc(e,t){var n;void 0===t&&(t=[]);const r=sc(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Nl(r);return o?t.concat(i,i.visualViewport||[],Fl(r)?r:[]):t.concat(r,lc(r))}function cc(e,t,n){return"viewport"===t?Ml(function(e,t){const n=Nl(e),r=ec(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Kl();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):Wl(t)?function(e,t){const n=Jl(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ul(e)?Xl(e):{x:1,y:1},a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{top:c,left:l,right:l+a,bottom:c+s,x:l,y:c,width:a,height:s}}(t,n):Ml(function(e){var t;const n=ec(e),r=tc(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Ql(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ql(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+nc(e);const l=-r.scrollTop;return"rtl"===Il(o||n).direction&&(s+=Ql(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(ec(e)))}const uc={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=lc(e).filter((e=>Wl(e)&&"body"!==jl(e))),o=null;const i="fixed"===Il(e).position;let a=i?oc(e):e;for(;Wl(a)&&!ql(a);){const e=Il(a),t=Vl(a);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter((e=>e!==a)),a=oc(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=cc(t,n,o);return e.top=Ql(r.top,e.top),e.right=Gl(r.right,e.right),e.bottom=Gl(r.bottom,e.bottom),e.left=Ql(r.left,e.left),e}),cc(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Ul(n),i=ec(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==jl(n)||Fl(i))&&(a=tc(n)),Ul(n))){const e=Jl(n);s=Xl(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:Wl,getDimensions:function(e){if(Ul(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Jl(e);return{width:t.width,height:t.height}},getOffsetParent:ac,getDocumentElement:ec,getScale:Xl,getElementRects(e){return zt(this,null,(function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||ac,i=this.getDimensions;return{reference:rc(t,yield o(n),r),floating:Dt({x:0,y:0},yield i(n))}}))},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Il(e).direction};function dc(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=l||i?[...Wl(e)?lc(e):e.contextElement?lc(e.contextElement):[],...lc(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let u,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),Wl(e)&&!s&&d.observe(e),Wl(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?Jl(e):null;return s&&function t(){const r=Jl(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}const fc=(e,t,n)=>{const r=new Map,o=Dt({platform:uc},n),i=Ut(Dt({},o.platform),{_c:r});return((e,t,n)=>zt(void 0,null,(function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=yield null==a.isRTL?void 0:a.isRTL(t);if("production"!=={}.NODE_ENV){if(null==a&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter((e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t})).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "))}let c=yield a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ll(c,r,l),f=r,h={},p=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[n],{x:m,y:v,data:y,reset:b}=yield g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=v?v:d,h=Ut(Dt({},h),{[i]:Dt(Dt({},h[i]),y)}),"production"!=={}.NODE_ENV&&p>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),b&&p<=50&&(p++,"object"===typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?yield a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=Ll(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})))(e,t,Ut(Dt({},o),{platform:i}))};const hc=tr('<tc-root data-tc-dropdown-container="true"></tc-root>'),pc=()=>{const e=Nr(),t=vn(Eo),n=vn(Qs),[r,o]=on(!1),[i,a]=on(t.account),[s,l]=on(!t.account);let c;const[u,d]=on(),[f,h]=on(),p=function(e,t,n){let r=()=>{var e;return null!=(e=null==n?void 0:n.placement)?e:"bottom"},o=()=>{var e;return null!=(e=null==n?void 0:n.strategy)?e:"absolute"},[i,a]=on({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,l]=on();ln((()=>{let e=s();if(e)throw e.value}));let c=cn((()=>(e(),t(),{})));function u(){let i=e(),s=t();if(i&&s){let e=c();fc(i,s,{middleware:null==n?void 0:n.middleware,placement:r(),strategy:o()}).then((t=>{e===c()&&a(t)}),(e=>{l(e)}))}}return ln((()=>{let i=e(),a=t();if(null==n||n.middleware,r(),o(),i&&a)if(null!=n&&n.whileElementsMounted){let e=n.whileElementsMounted(i,a,u);e&&pn(e)}else u()})),{get x(){return i().x},get y(){return i().y},get placement(){return i().placement},get strategy(){return i().strategy},get middlewareData(){return i().middlewareData},update:u}}(f,u,{whileElementsMounted:dc,placement:"bottom-end"});n.connectionRestored.then((()=>l(!1)));const g=t.onStatusChange((e=>{if(!e)return o(!1),a(null),void l(!1);a(e.account),l(!1)})),m=e=>{if(!i()||!r())return;const t=f().contains(e.target),n=c.contains(e.target);t||n||o(!1)};return hn((()=>{document.body.addEventListener("click",m)})),pn((()=>{document.body.removeEventListener("click",m),g()})),$n(yr,{component:Dr,get children(){return[$n(Hn,{get when(){return s()},get children(){return $n(_l,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return $n(Al,{})}})}}),$n(Hn,{get when(){return!s()},get children(){return[$n(Hn,{get when(){return!i()},get children(){return $n(Sl,{onClick:()=>n.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[$n(za,{get fill(){return e.colors.connectButton.foreground}}),$n(ba,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),$n(Hn,{get when(){return i()},get children(){return $n(Tl,{get children(){return[$n(El,{onClick:()=>o((e=>!e)),ref:h,"data-tc-dropdown-button":"true",scale:"s",get children(){return[$n(ba,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return(()=>{const e=i();if(e){const t=yt(e.address,e.chain===J.TESTNET);return t.slice(0,4)+"\u2026"+t.slice(-4)}return""})()}}),$n(Ti,{direction:"bottom"})]}}),$n(vr,{get children(){const e=fn((()=>document.importNode(hc,!0)));return ir(d,e),e.style.setProperty("z-index","999"),e._$owner=Yt,ar(e,$n(xi,{onBeforeEnter:e=>{Fi(e,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(e,t)=>{Fi(e,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(t)},get children(){return $n(Hn,{get when(){return r()},get children(){return $n(Rl,{get hidden(){return!r()},onClose:()=>o(!1),ref(e){"function"===typeof c?c(e):c=e}})}})}}),null),ar(e,$n(Ol,{}),null),sn((t=>{var n,r;const o=p.strategy,i=`${null!=(n=p.y)?n:0}px`,a=`${null!=(r=p.x)?r:0}px`;return o!==t._v$&&e.style.setProperty("position",t._v$=o),i!==t._v$2&&e.style.setProperty("top",t._v$2=i),a!==t._v$3&&e.style.setProperty("left",t._v$3=a),t}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}})]}})}})]}})]}})},gc=jr(Gi)`
|
|
600
|
+
`;function Ml(e){return e.split("-")[0]}function Nl(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=function(e){return["top","bottom"].includes(Ml(e))?"x":"y"}(t),l="y"===s?"height":"width";const c=r[l]/2-o[l]/2,u="x"===s;let d;switch(Ml(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(function(e){return e.split("-")[1]}(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function Il(e){return zt(Wt({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function jl(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function $l(e){return jl(e).getComputedStyle(e)}function Dl(e){return Fl(e)?(e.nodeName||"").toLowerCase():""}let Ul;function Wl(){if(Ul)return Ul;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Ul=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),Ul):navigator.userAgent}function zl(e){return e instanceof jl(e).HTMLElement}function Bl(e){return e instanceof jl(e).Element}function Fl(e){return e instanceof jl(e).Node}function Hl(e){if("undefined"===typeof ShadowRoot)return!1;return e instanceof jl(e).ShadowRoot||e instanceof ShadowRoot}function Vl(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$l(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Kl(e){return["table","td","th"].includes(Dl(e))}function ql(e){const t=/firefox/i.test(Wl()),n=$l(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function Gl(){return!/^((?!chrome|android).)*safari/i.test(Wl())}function Ql(e){return["html","body","#document"].includes(Dl(e))}const Zl=Math.min,Yl=Math.max,Xl=Math.round,Jl={x:1,y:1};function ec(e){const t=!Bl(e)&&e.contextElement?e.contextElement:Bl(e)?e:null;if(!t)return Jl;const n=t.getBoundingClientRect(),r=$l(t);if("border-box"!==r.boxSizing)return zl(t)?{x:t.offsetWidth>0&&Xl(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&Xl(n.height)/t.offsetHeight||1}:Jl;let o=n.width/parseFloat(r.width),i=n.height/parseFloat(r.height);return o&&Number.isFinite(o)||(o=1),i&&Number.isFinite(i)||(i=1),{x:o,y:i}}function tc(e,t,n,r){var o,i,a,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let c=Jl;t&&(r?Bl(r)&&(c=ec(r)):c=ec(e));const u=Bl(e)?jl(e):window,d=!Gl()&&n,f=(l.left+(d&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetLeft)?o:0))/c.x,h=(l.top+(d&&null!=(a=null==(s=u.visualViewport)?void 0:s.offsetTop)?a:0))/c.y,p=l.width/c.x,g=l.height/c.y;return{width:p,height:g,top:h,right:f+p,bottom:h+g,left:f,x:f,y:h}}function nc(e){return((Fl(e)?e.ownerDocument:e.document)||window.document).documentElement}function rc(e){return Bl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function oc(e){return tc(nc(e)).left+rc(e).scrollLeft}function ic(e,t,n){const r=zl(t),o=nc(t),i=tc(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Dl(t)||Vl(o))&&(a=rc(t)),zl(t)){const e=tc(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=oc(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function ac(e){if("html"===Dl(e))return e;const t=e.assignedSlot||e.parentNode||(Hl(e)?e.host:null)||nc(e);return Hl(t)?t.host:t}function sc(e){return zl(e)&&"fixed"!==$l(e).position?e.offsetParent:null}function lc(e){const t=jl(e);let n=sc(e);for(;n&&Kl(n)&&"static"===$l(n).position;)n=sc(n);return n&&("html"===Dl(n)||"body"===Dl(n)&&"static"===$l(n).position&&!ql(n))?t:n||function(e){let t=ac(e);for(;zl(t)&&!Ql(t);){if(ql(t))return t;t=ac(t)}return null}(e)||t}function cc(e){const t=ac(e);return Ql(t)?e.ownerDocument.body:zl(t)&&Vl(t)?t:cc(t)}function uc(e,t){var n;void 0===t&&(t=[]);const r=cc(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=jl(r);return o?t.concat(i,i.visualViewport||[],Vl(r)?r:[]):t.concat(r,uc(r))}function dc(e,t,n){return"viewport"===t?Il(function(e,t){const n=jl(e),r=nc(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Gl();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):Bl(t)?function(e,t){const n=tc(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=zl(e)?ec(e):{x:1,y:1},a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{top:c,left:l,right:l+a,bottom:c+s,x:l,y:c,width:a,height:s}}(t,n):Il(function(e){var t;const n=nc(e),r=rc(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Yl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Yl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+oc(e);const l=-r.scrollTop;return"rtl"===$l(o||n).direction&&(s+=Yl(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(nc(e)))}const fc={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=uc(e).filter((e=>Bl(e)&&"body"!==Dl(e))),o=null;const i="fixed"===$l(e).position;let a=i?ac(e):e;for(;Bl(a)&&!Ql(a);){const e=$l(a),t=ql(a);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter((e=>e!==a)),a=ac(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=dc(t,n,o);return e.top=Yl(r.top,e.top),e.right=Zl(r.right,e.right),e.bottom=Zl(r.bottom,e.bottom),e.left=Yl(r.left,e.left),e}),dc(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=zl(n),i=nc(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Dl(n)||Vl(i))&&(a=rc(n)),zl(n))){const e=tc(n);s=ec(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:Bl,getDimensions:function(e){if(zl(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=tc(e);return{width:t.width,height:t.height}},getOffsetParent:lc,getDocumentElement:nc,getScale:ec,getElementRects(e){return Ft(this,null,(function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||lc,i=this.getDimensions;return{reference:ic(t,yield o(n),r),floating:Wt({x:0,y:0},yield i(n))}}))},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===$l(e).direction};function hc(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=l||i?[...Bl(e)?uc(e):e.contextElement?uc(e.contextElement):[],...uc(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let u,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),Bl(e)&&!s&&d.observe(e),Bl(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?tc(e):null;return s&&function t(){const r=tc(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}const pc=(e,t,n)=>{const r=new Map,o=Wt({platform:fc},n),i=zt(Wt({},o.platform),{_c:r});return((e,t,n)=>Ft(void 0,null,(function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=yield null==a.isRTL?void 0:a.isRTL(t);if("production"!=={}.NODE_ENV){if(null==a&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter((e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t})).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "))}let c=yield a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Nl(c,r,l),f=r,h={},p=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[n],{x:m,y:v,data:y,reset:b}=yield g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=v?v:d,h=zt(Wt({},h),{[i]:Wt(Wt({},h[i]),y)}),"production"!=={}.NODE_ENV&&p>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),b&&p<=50&&(p++,"object"===typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?yield a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=Nl(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})))(e,t,zt(Wt({},o),{platform:i}))};const gc=rr('<tc-root data-tc-dropdown-container="true"></tc-root>'),mc=()=>{const e=jr(),t=bn(Ao),n=bn(Ys),[r,o]=sn(!1),[i,a]=sn(t.account),[s,l]=sn(!t.account);let c;const[u,d]=sn(),[f,h]=sn(),p=function(e,t,n){let r=()=>{var e;return null!=(e=null==n?void 0:n.placement)?e:"bottom"},o=()=>{var e;return null!=(e=null==n?void 0:n.strategy)?e:"absolute"},[i,a]=sn({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,l]=sn();un((()=>{let e=s();if(e)throw e.value}));let c=dn((()=>(e(),t(),{})));function u(){let i=e(),s=t();if(i&&s){let e=c();pc(i,s,{middleware:null==n?void 0:n.middleware,placement:r(),strategy:o()}).then((t=>{e===c()&&a(t)}),(e=>{l(e)}))}}return un((()=>{let i=e(),a=t();if(null==n||n.middleware,r(),o(),i&&a)if(null!=n&&n.whileElementsMounted){let e=n.whileElementsMounted(i,a,u);e&&mn(e)}else u()})),{get x(){return i().x},get y(){return i().y},get placement(){return i().placement},get strategy(){return i().strategy},get middlewareData(){return i().middlewareData},update:u}}(f,u,{whileElementsMounted:hc,placement:"bottom-end"});n.connectionRestored.then((()=>l(!1)));const g=t.onStatusChange((e=>{if(!e)return o(!1),a(null),void l(!1);a(e.account),l(!1)})),m=e=>{if(!i()||!r())return;const t=f().contains(e.target),n=c.contains(e.target);t||n||o(!1)};return gn((()=>{document.body.addEventListener("click",m)})),mn((()=>{document.body.removeEventListener("click",m),g()})),Un(wr,{component:Wr,get children(){return[Un(Kn,{get when(){return s()},get children(){return Un(Tl,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Un(Rl,{})}})}}),Un(Kn,{get when(){return!s()},get children(){return[Un(Kn,{get when(){return!i()},get children(){return Un(_l,{onClick:()=>n.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[Un(Fa,{get fill(){return e.colors.connectButton.foreground}}),Un(xa,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),Un(Kn,{get when(){return i()},get children(){return Un(Ol,{get children(){return[Un(Al,{onClick:()=>o((e=>!e)),ref:h,"data-tc-dropdown-button":"true",scale:"s",get children(){return[Un(xa,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return(()=>{const e=i();if(e){const t=wt(e.address,e.chain===te.TESTNET);return t.slice(0,4)+"\u2026"+t.slice(-4)}return""})()}}),Un(Oi,{direction:"bottom"})]}}),Un(br,{get children(){const e=pn((()=>document.importNode(gc,!0)));return sr(d,e),e.style.setProperty("z-index","999"),e._$owner=Jt,lr(e,Un(ki,{onBeforeEnter:e=>{Vi(e,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(e,t)=>{Vi(e,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(t)},get children(){return Un(Kn,{get when(){return r()},get children(){return Un(Pl,{get hidden(){return!r()},onClose:()=>o(!1),ref(e){"function"===typeof c?c(e):c=e}})}})}}),null),lr(e,Un(Ll,{}),null),cn((t=>{var n,r;const o=p.strategy,i=`${null!=(n=p.y)?n:0}px`,a=`${null!=(r=p.x)?r:0}px`;return o!==t._v$&&e.style.setProperty("position",t._v$=o),i!==t._v$2&&e.style.setProperty("top",t._v$2=i),a!==t._v$3&&e.style.setProperty("left",t._v$3=a),t}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}})]}})}})]}})]}})},vc=Dr(Zi)`
|
|
601
601
|
padding-left: 24px;
|
|
602
602
|
padding-right: 24px;
|
|
603
603
|
padding-top: 18px;
|
|
604
604
|
padding-bottom: 0;
|
|
605
605
|
|
|
606
|
-
${
|
|
606
|
+
${pi("mobile")} {
|
|
607
607
|
padding-left: 0;
|
|
608
608
|
padding-right: 0;
|
|
609
609
|
|
|
610
610
|
min-height: 364px;
|
|
611
611
|
}
|
|
612
|
-
`,
|
|
612
|
+
`,yc=Dr(Ia)`
|
|
613
613
|
margin-top: 12px;
|
|
614
614
|
|
|
615
|
-
${
|
|
615
|
+
${pi("mobile")} {
|
|
616
616
|
padding: 0 10px;
|
|
617
617
|
}
|
|
618
|
-
`,
|
|
618
|
+
`,bc=Dr.div`
|
|
619
619
|
margin: 30px 0;
|
|
620
620
|
width: 100%;
|
|
621
621
|
display: flex;
|
|
622
622
|
justify-content: center;
|
|
623
623
|
|
|
624
|
-
${
|
|
624
|
+
${pi("mobile")} {
|
|
625
625
|
height: 160px;
|
|
626
626
|
align-items: center;
|
|
627
627
|
}
|
|
628
|
-
`;
|
|
628
|
+
`;Dr(xa)`
|
|
629
629
|
min-width: 84px;
|
|
630
630
|
text-align: center;
|
|
631
631
|
font-weight: 590;
|
|
632
|
-
`,
|
|
632
|
+
`,Dr((e=>{const t="tabBar"+Math.floor(1e4*Math.random());return Un(Ji,{get class(){return e.class},"data-tc-tab-bar":"true",get children(){return[Un(ea,{get right(){return 1===e.selectedTabIndex}}),Un(na,{get isActive(){return 0===e.selectedTabIndex},get children(){return[Un(ta,{type:"radio",name:t,get checked(){return 0===e.selectedTabIndex},onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,0)}}),dn((()=>e.tab1))]}}),Un(na,{get isActive(){return 1===e.selectedTabIndex},get children(){return[Un(ta,{type:"radio",get checked(){return 1===e.selectedTabIndex},name:t,onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,1)}}),dn((()=>e.tab2))]}})]}})}))`
|
|
633
633
|
margin: 0 auto 22px;
|
|
634
|
-
`;const[
|
|
634
|
+
`;const[wc,xc]=Bo({buttonRootId:null,language:"en",returnStrategy:"back",twaReturnUrl:void 0,walletsListConfiguration:{},enableAndroidBackHandler:!0});function Cc(e){return"jsBridgeKey"in e?zt(Wt({},e),{injected:bt.isWalletInjected(e.jsBridgeKey),embedded:bt.isInsideWalletBrowser(e.jsBridgeKey)}):e}function kc(e,t){var n,r,o,i;return t?((null==(n=t.includeWallets)?void 0:n.length)&&(r="name",o=e,i=t.includeWallets.map(Cc),e=o.map((e=>{const t=i.find((t=>t[r]===e[r]));return i=i.filter((t=>t[r]!==e[r])),void 0===t?e:t})).concat(i)),e):e}function Sc(e){return e.platforms.some((e=>["macos","linux","windows"].includes(e)))}function Ec(e){return e.platforms.some((e=>["ios","android"].includes(e)))}function _c(e){return e.platforms.some((e=>["chrome","firefox","safari"].includes(e)))}function Ac(e,t){return!!t&&(e.name.toLowerCase()===t.toLowerCase()||e.appName.toLowerCase()===t.toLowerCase())}const Tc=Dr.div`
|
|
635
635
|
display: flex;
|
|
636
636
|
flex-direction: column;
|
|
637
637
|
align-items: center;
|
|
638
|
-
`,
|
|
638
|
+
`,Rc=Dr(Ia)`
|
|
639
639
|
margin-bottom: 18px;
|
|
640
|
-
`;
|
|
640
|
+
`;Dr.div`
|
|
641
641
|
height: 1px;
|
|
642
642
|
margin: 0 -24px;
|
|
643
643
|
width: calc(100% + 48px);
|
|
@@ -645,10 +645,10 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
645
645
|
background: ${e=>e.isShown?e.theme.colors.icon.secondary:"transparent"};
|
|
646
646
|
transition: background 0.15s ease-in-out;
|
|
647
647
|
|
|
648
|
-
${
|
|
648
|
+
${pi("mobile")} {
|
|
649
649
|
width: 100%;
|
|
650
650
|
}
|
|
651
|
-
`;const
|
|
651
|
+
`;const Oc=Dr.ul`
|
|
652
652
|
display: grid;
|
|
653
653
|
grid-template-columns: repeat(auto-fit, 92px);
|
|
654
654
|
grid-template-rows: auto;
|
|
@@ -666,23 +666,23 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
666
666
|
height: fit-content;
|
|
667
667
|
}
|
|
668
668
|
|
|
669
|
-
${
|
|
669
|
+
${pi("mobile")} {
|
|
670
670
|
grid-template-columns: repeat(auto-fit, 82px);
|
|
671
671
|
}
|
|
672
|
-
`;
|
|
672
|
+
`;Dr(xi)`
|
|
673
673
|
display: block;
|
|
674
674
|
margin: 0 auto 1px;
|
|
675
675
|
font-size: 15px;
|
|
676
|
-
`;const
|
|
676
|
+
`;const Pc=Dr(Ni)`
|
|
677
677
|
position: absolute;
|
|
678
678
|
top: 16px;
|
|
679
679
|
left: 16px;
|
|
680
|
-
`,
|
|
680
|
+
`,Lc=Dr(Ws)`
|
|
681
681
|
height: 100%;
|
|
682
|
-
`,
|
|
682
|
+
`,Mc=rr("<li></li>"),Nc=e=>Un(Tc,{"data-tc-wallets-modal-list":"true",get children(){return[Un(Pc,{icon:"arrow",onClick:()=>e.onBack()}),Un(Rc,{translationKey:"walletModal.wallets",children:"Wallets"}),Un(Gs,{get maxHeight(){return Vs()?void 0:510},get children(){return Un(Oc,{get children(){return Un(Vn,{get each(){return Vs()?e.walletsList.filter(Ec):e.walletsList},children:t=>(()=>{const n=Mc.cloneNode(!0);return lr(n,Un(Lc,{wallet:t,onClick:()=>e.onSelect(t)})),n})()})}})}})]}}),Ic={m:"16px",s:"12px",none:"0"},jc={m:"6px",s:"6px",none:"0"},$c=Dr.div`
|
|
683
683
|
display: flex;
|
|
684
684
|
flex-direction: column;
|
|
685
|
-
`,
|
|
685
|
+
`,Dc=Dr.div`
|
|
686
686
|
flex: 1;
|
|
687
687
|
margin-top: ${e=>e.qr?"0":"18px"};
|
|
688
688
|
display: flex;
|
|
@@ -690,76 +690,76 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
690
690
|
align-items: center;
|
|
691
691
|
justify-content: center;
|
|
692
692
|
min-height: 232px;
|
|
693
|
-
|
|
693
|
+
`,Uc=Dr(ga)`
|
|
694
694
|
margin-bottom: 24px;
|
|
695
|
-
`,
|
|
695
|
+
`,Wc=Dr(Ia)`
|
|
696
696
|
max-width: 288px;
|
|
697
697
|
margin: 0 auto 2px;
|
|
698
|
-
`,
|
|
698
|
+
`,zc=Dr($a)`
|
|
699
699
|
max-width: 288px;
|
|
700
700
|
text-align: center;
|
|
701
701
|
margin: 0 auto 20px;
|
|
702
|
-
`,
|
|
702
|
+
`,Bc=Dr(Ni)`
|
|
703
703
|
position: absolute;
|
|
704
704
|
top: 16px;
|
|
705
705
|
left: 16px;
|
|
706
|
-
`,
|
|
706
|
+
`,Fc=Dr.div`
|
|
707
707
|
display: flex;
|
|
708
708
|
justify-content: center;
|
|
709
709
|
gap: 8px;
|
|
710
710
|
padding-bottom: 16px;
|
|
711
|
-
`,
|
|
711
|
+
`,Hc=Dr(Fc)`
|
|
712
712
|
padding-bottom: 0;
|
|
713
|
-
`,
|
|
713
|
+
`,Vc=Dr(xi)`
|
|
714
714
|
margin-bottom: 24px;
|
|
715
|
-
`,
|
|
715
|
+
`,Kc=Dr(ts)`
|
|
716
716
|
margin-bottom: 18px;
|
|
717
717
|
margin-top: 2px;
|
|
718
|
-
`,
|
|
718
|
+
`,qc=Dr(Ya)`
|
|
719
719
|
margin-bottom: 16px;
|
|
720
|
-
`,
|
|
720
|
+
`,Gc=Dr($a)`
|
|
721
721
|
color: ${e=>e.theme.colors.text.secondary};
|
|
722
722
|
text-align: center;
|
|
723
723
|
margin-bottom: 20px;
|
|
724
|
-
`,
|
|
724
|
+
`,Qc=Dr(xi)`
|
|
725
725
|
margin-top: -8px;
|
|
726
726
|
margin-bottom: 24px;
|
|
727
727
|
width: 100%;
|
|
728
728
|
padding: 12px 12px 12px 20px;
|
|
729
|
-
border-radius: ${e=>
|
|
729
|
+
border-radius: ${e=>Ic[e.theme.borderRadius]};
|
|
730
730
|
font-size: 16px;
|
|
731
731
|
line-height: 20px;
|
|
732
|
-
`,
|
|
732
|
+
`,Zc=Dr(Jo)`
|
|
733
733
|
width: 32px;
|
|
734
734
|
height: 32px;
|
|
735
|
-
border-radius: ${e=>
|
|
736
|
-
`,Qc=e=>{const[t]=va();return cn((()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())}))};function Zc(e,t){let n;n="string"===typeof t?t:ni()?t.twaReturnUrl||t.returnStrategy:"none";const r=function(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}(e,"ret",n);if(!Te(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+Re(o)}function Yc(e,t){t=Dt({},t);const n=function(e){const t=new URL(e);t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start");return t.toString()}(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),ri()){t.returnStrategy="back";Qr(Zc(r.toString(),t.returnStrategy))}else if(ni())if(ti("ios","android","macos","tdesktop","web")){t.returnStrategy="back";ii(Zc(r.toString(),t.returnStrategy))}else ti("weba")?ii(Zc(r.toString(),t)):Qr(Zc(r.toString(),t));else if(no("ios")){"back"===t.returnStrategy&&(ro("safari")?t.returnStrategy="back":ro("chrome")?t.returnStrategy="googlechrome://":ro("firefox")?t.returnStrategy="firefox://":ro("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=ro("chrome"),n=ro("firefox");if((e||n)&&!t.forceRedirect){const e=Zc(r.toString(),t.returnStrategy);Zr(Jc(e),(()=>Qr(e)))}else{Qr(Zc(r.toString(),t.returnStrategy))}}else if(no("android")){t.returnStrategy="back";const e=ro("chrome"),n=ro("firefox");if((e||n)&&!t.forceRedirect){const e=Zc(r.toString(),t.returnStrategy);Zr(Jc(e),(()=>Qr(e)))}else{Qr(Zc(r.toString(),t.returnStrategy))}}else if(no("ipad")){"back"===t.returnStrategy&&(ro("safari")?t.returnStrategy="back":ro("chrome")?t.returnStrategy="googlechrome://":ro("firefox")?t.returnStrategy="firefox://":ro("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=ro("chrome"),n=ro("firefox"),o=(e||n)&&!t.forceRedirect,i=Zc(r.toString(),t.returnStrategy);if(o){Zr(Jc(i),(()=>Qr(i)))}else Qr(i)}else if(no("macos","windows","linux")){t.returnStrategy="back",t.twaReturnUrl=void 0;const e=Zc(r.toString(),t.returnStrategy);if(t.forceRedirect)Qr(e);else{Zr(Jc(e),(()=>Qr(e)))}}else Qr(Zc(r.toString(),t))}function Xc(e,t,n,r){if(n=Dt({},n),ri())if(no("ios","android"))"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link"),Gr(Zc(e,n.returnStrategy),"_self");else{r("universal-link");Qr(Zc(e,n.returnStrategy))}else if(ni())if(ti("ios","android")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link");const t=Zc(e,n.returnStrategy);ii(t,(()=>{r("universal-link"),Qr(t)}))}else if(ti("macos","tdesktop")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve");const o=Zc(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Zr(oo(o,t),(()=>{r("universal-link"),Qr(o)}))):(r("universal-link"),Qr(o))}else if(ti("weba")){"back"===n.returnStrategy&&(ro("safari")?n.returnStrategy=location.href:ro("chrome")?n.returnStrategy="googlechrome://":ro("firefox")?n.returnStrategy="firefox://":ro("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Zc(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Zr(oo(o,t),(()=>{r("universal-link"),Qr(o)}))):(r("universal-link"),Qr(o))}else if(ti("web")){"back"===n.returnStrategy&&(ro("safari")?n.returnStrategy=location.href:ro("chrome")?n.returnStrategy="googlechrome://":ro("firefox")?n.returnStrategy="firefox://":ro("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Zc(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Zr(oo(o,t),(()=>{r("universal-link"),Qr(o)}))):(r("universal-link"),Qr(o))}else{r("universal-link");Qr(Zc(e,n.returnStrategy))}else if(no("ios"))"back"===n.returnStrategy&&(ro("safari")?n.returnStrategy="none":ro("chrome")?n.returnStrategy="googlechrome://":ro("firefox")?n.returnStrategy="firefox://":ro("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),ro("chrome")?(r("universal-link"),Gr(Zc(e,n.returnStrategy),"_self")):(r("universal-link"),Qr(Zc(e,n.returnStrategy)));else if(no("android"))"back"===n.returnStrategy&&(ro("chrome")?n.returnStrategy="googlechrome://":ro("firefox")?n.returnStrategy="firefox://":ro("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),Qr(Zc(e,n.returnStrategy));else if(no("ipad"))"back"===n.returnStrategy&&(ro("safari")?n.returnStrategy="none":ro("chrome")?n.returnStrategy="googlechrome://":ro("firefox")?n.returnStrategy="firefox://":ro("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),ro("chrome")?(r("universal-link"),Gr(Zc(e,n.returnStrategy),"_self")):(r("universal-link"),Qr(Zc(e,n.returnStrategy)));else if(no("macos","windows","linux")){"back"===n.returnStrategy&&(ro("safari")?n.returnStrategy="none":ro("chrome")?n.returnStrategy="googlechrome://":ro("firefox")?n.returnStrategy="firefox://":ro("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=Zc(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Zr(oo(o,t),(()=>{r("universal-link"),Qr(o)}))):(r("universal-link"),Qr(o))}else r("universal-link"),Qr(Zc(e,n.returnStrategy))}function Jc(e){const t=new URL(e),[,n,r]=t.pathname.split("/");return`tg://resolve?domain=${n}&appname=${r}&startapp=${t.searchParams.get("startapp")}`}const eu=e=>{const[t,n]=on("mobile"),[r,o]=on(!1),[i,a]=on(),[s,l]=on(!0),c=vn(Eo);pn(c.onStatusChange((()=>{}),(()=>{e.wallet.appName!==Is&&o(!0)})));const u=()=>{try{const t=c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest);a(t)}catch(Fv){}};ln((()=>{"extension"!==fn(t)&&(kc(e.wallet)||Cc(e.wallet))&&u()}));const d=()=>{o(!1),"extension"===t()&&u(),n("mobile"),bo(Ut(Dt({},e.wallet),{openMethod:"qrcode"}))},f=()=>{if(o(!1),"extension"===t()&&u(),n("desktop"),Te(i()))h();else{const t=!s();l(!1),Xc(i(),e.wallet.deepLink,{returnStrategy:yc.returnStrategy,forceRedirect:t},(t=>{bo(Ut(Dt({},e.wallet),{openMethod:t}))}))}},h=()=>{const t=!s();l(!1),bo(Ut(Dt({},e.wallet),{openMethod:"universal-link"})),Yc(i(),{returnStrategy:yc.returnStrategy,twaReturnUrl:yc.twaReturnUrl,forceRedirect:t})},p=()=>{o(!1),n("extension"),Ge(e.wallet)&&(bo(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return kc(e.wallet)?d():Sc(e.wallet)?p():f(),$n(Ic,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[$n(Hn,{get when(){return!e.backDisabled},get children(){return $n(Wc,{icon:"arrow",onClick:()=>e.onBackClick()})}}),$n(Dc,{get children(){return e.wallet.name}}),$n(Hn,{get when(){return"mobile"===t()},get children(){return $n(Uc,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone\u2019s or ",cn((()=>e.wallet.name)),"\u2019s camera"]}})}}),$n(jc,{get qr(){return"mobile"===t()},get children(){return $n(Vn,{get children(){return[$n(Kn,{get when(){return"mobile"===t()},get children(){return $n($c,{disableCopy:!1,get sourceUrl(){return Zc(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),$n(Kn,{get when(){return r()},get children(){return[$n(Vc,{size:"s"}),$n(Kc,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"}),$n(zc,{get children(){return $n(bi,{get leftIcon(){return $n(ds,{})},get onClick(){return"extension"===t()?p:f},get children(){return $n(Qc,{translationKey:"common.retry",children:"Retry"})}})}})]}}),$n(Kn,{get when(){return"extension"===t()},get children(){return[$n(Hn,{get when(){return Ge(e.wallet)},get children(){return[$n(Hc,{size:"s"}),$n(Kc,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",cn((()=>e.wallet.name))," browser extension\u2026"]}}),$n(zc,{get children(){return $n(bi,{get leftIcon(){return $n(ds,{})},onClick:p,get children(){return $n(Qc,{translationKey:"common.retry",children:"Retry"})}})}})]}}),$n(Hn,{get when(){return!Ge(e.wallet)},get children(){return[$n(Kc,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",cn((()=>e.wallet.name))," browser extension"]}}),$n(zc,{get children(){return $n(Gs,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return $n(bi,{get rightIcon(){return $n(hs,{})},onClick:p,get children(){return $n(Qc,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",cn((()=>e.wallet.name))]}})}})}})}})]}})]}}),$n(Kn,{get when(){return"desktop"===t()},get children(){return[$n(Ja,{size:"m"}),$n(Kc,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",cn((()=>e.wallet.name))," on desktop\u2026"]}}),$n(zc,{get children(){return[$n(bi,{get leftIcon(){return $n(ds,{})},onClick:f,get children(){return $n(Qc,{translationKey:"common.retry",children:"Retry"})}}),$n(Gs,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return $n(bi,{get rightIcon(){return $n(hs,{})},get children(){return $n(Qc,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",cn((()=>e.wallet.name))]}})}})}})]}})]}})]}})}}),$n(Hn,{get when(){return e.wallet.appName===Is},get children(){return $n(qc,{get rightIcon(){return $n(Gc,{get src(){return $s}})},scale:"s",onClick:h,get children(){return $n(Qc,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),$n(Hn,{get when(){return e.wallet.appName!==Is},get children(){return $n(Bc,{get children(){return[$n(Hn,{get when(){return cn((()=>"mobile"!==t()))()&&kc(e.wallet)},get children(){return $n(Fc,{appearance:"secondary",get leftIcon(){return $n(ss,{})},onClick:d,get children(){return $n(Qc,{translationKey:"common.mobile",children:"Mobile"})}})}}),$n(Hn,{get when(){return cn((()=>"extension"!==t()))()&&Sc(e.wallet)},get children(){return $n(Fc,{appearance:"secondary",get leftIcon(){return $n(is,{})},onClick:p,get children(){return $n(Qc,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),$n(Hn,{get when(){return cn((()=>"desktop"!==t()))()&&Cc(e.wallet)},get children(){return $n(Fc,{appearance:"secondary",get leftIcon(){return $n(cs,{})},onClick:f,get children(){return $n(Qc,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},tu=jr.div``,nu=jr(Li)`
|
|
735
|
+
border-radius: ${e=>jc[e.theme.borderRadius]};
|
|
736
|
+
`,Yc=e=>{const[t]=ba();return dn((()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())}))};function Xc(e,t){let n;n="string"===typeof t?t:oi()?t.twaReturnUrl||t.returnStrategy:"none";const r=function(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}(e,"ret",n);if(!Oe(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+Pe(o)}function Jc(e,t){t=Wt({},t);const n=function(e){const t=new URL(e);t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start");return t.toString()}(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),ii()){t.returnStrategy="back";Yr(Xc(r.toString(),t.returnStrategy))}else if(oi())if(ri("ios","android","macos","tdesktop","web")){t.returnStrategy="back";si(Xc(r.toString(),t.returnStrategy))}else ri("weba")?si(Xc(r.toString(),t)):Yr(Xc(r.toString(),t));else if(oo("ios")){"back"===t.returnStrategy&&(io("safari")?t.returnStrategy="back":io("chrome")?t.returnStrategy="googlechrome://":io("firefox")?t.returnStrategy="firefox://":io("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=io("chrome"),n=io("firefox");if((e||n)&&!t.forceRedirect){const e=Xc(r.toString(),t.returnStrategy);Xr(tu(e),(()=>Yr(e)))}else{Yr(Xc(r.toString(),t.returnStrategy))}}else if(oo("android")){t.returnStrategy="back";const e=io("chrome"),n=io("firefox");if((e||n)&&!t.forceRedirect){const e=Xc(r.toString(),t.returnStrategy);Xr(tu(e),(()=>Yr(e)))}else{Yr(Xc(r.toString(),t.returnStrategy))}}else if(oo("ipad")){"back"===t.returnStrategy&&(io("safari")?t.returnStrategy="back":io("chrome")?t.returnStrategy="googlechrome://":io("firefox")?t.returnStrategy="firefox://":io("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=io("chrome"),n=io("firefox"),o=(e||n)&&!t.forceRedirect,i=Xc(r.toString(),t.returnStrategy);if(o){Xr(tu(i),(()=>Yr(i)))}else Yr(i)}else if(oo("macos","windows","linux")){t.returnStrategy="back",t.twaReturnUrl=void 0;const e=Xc(r.toString(),t.returnStrategy);if(t.forceRedirect)Yr(e);else{Xr(tu(e),(()=>Yr(e)))}}else Yr(Xc(r.toString(),t))}function eu(e,t,n,r){if(n=Wt({},n),ii())if(oo("ios","android"))"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link"),Zr(Xc(e,n.returnStrategy),"_self");else{r("universal-link");Yr(Xc(e,n.returnStrategy))}else if(oi())if(ri("ios","android")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link");const t=Xc(e,n.returnStrategy);si(t,(()=>{r("universal-link"),Yr(t)}))}else if(ri("macos","tdesktop")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve");const o=Xc(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Xr(ao(o,t),(()=>{r("universal-link"),Yr(o)}))):(r("universal-link"),Yr(o))}else if(ri("weba")){"back"===n.returnStrategy&&(io("safari")?n.returnStrategy=location.href:io("chrome")?n.returnStrategy="googlechrome://":io("firefox")?n.returnStrategy="firefox://":io("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Xc(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Xr(ao(o,t),(()=>{r("universal-link"),Yr(o)}))):(r("universal-link"),Yr(o))}else if(ri("web")){"back"===n.returnStrategy&&(io("safari")?n.returnStrategy=location.href:io("chrome")?n.returnStrategy="googlechrome://":io("firefox")?n.returnStrategy="firefox://":io("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Xc(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Xr(ao(o,t),(()=>{r("universal-link"),Yr(o)}))):(r("universal-link"),Yr(o))}else{r("universal-link");Yr(Xc(e,n.returnStrategy))}else if(oo("ios"))"back"===n.returnStrategy&&(io("safari")?n.returnStrategy="none":io("chrome")?n.returnStrategy="googlechrome://":io("firefox")?n.returnStrategy="firefox://":io("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),io("chrome")?(r("universal-link"),Zr(Xc(e,n.returnStrategy),"_self")):(r("universal-link"),Yr(Xc(e,n.returnStrategy)));else if(oo("android"))"back"===n.returnStrategy&&(io("chrome")?n.returnStrategy="googlechrome://":io("firefox")?n.returnStrategy="firefox://":io("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),Yr(Xc(e,n.returnStrategy));else if(oo("ipad"))"back"===n.returnStrategy&&(io("safari")?n.returnStrategy="none":io("chrome")?n.returnStrategy="googlechrome://":io("firefox")?n.returnStrategy="firefox://":io("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),io("chrome")?(r("universal-link"),Zr(Xc(e,n.returnStrategy),"_self")):(r("universal-link"),Yr(Xc(e,n.returnStrategy)));else if(oo("macos","windows","linux")){"back"===n.returnStrategy&&(io("safari")?n.returnStrategy="none":io("chrome")?n.returnStrategy="googlechrome://":io("firefox")?n.returnStrategy="firefox://":io("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=Xc(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Xr(ao(o,t),(()=>{r("universal-link"),Yr(o)}))):(r("universal-link"),Yr(o))}else r("universal-link"),Yr(Xc(e,n.returnStrategy))}function tu(e){const t=new URL(e),[,n,r]=t.pathname.split("/");return`tg://resolve?domain=${n}&appname=${r}&startapp=${t.searchParams.get("startapp")}`}const nu=e=>{const[t,n]=sn("mobile"),[r,o]=sn(!1),[i,a]=sn(),[s,l]=sn(!0),c=bn(Ao);mn(c.onStatusChange((()=>{}),(()=>{e.wallet.appName!==$s&&o(!0)})));const u=()=>{try{const t=c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest);a(t)}catch(Vv){}};un((()=>{"extension"!==pn(t)&&(Ec(e.wallet)||Sc(e.wallet))&&u()}));const d=()=>{o(!1),"extension"===t()&&u(),n("mobile"),xo(zt(Wt({},e.wallet),{openMethod:"qrcode"}))},f=()=>{if(o(!1),"extension"===t()&&u(),n("desktop"),Oe(i()))h();else{const t=!s();l(!1),eu(i(),e.wallet.deepLink,{returnStrategy:wc.returnStrategy,forceRedirect:t},(t=>{xo(zt(Wt({},e.wallet),{openMethod:t}))}))}},h=()=>{const t=!s();l(!1),xo(zt(Wt({},e.wallet),{openMethod:"universal-link"})),Jc(i(),{returnStrategy:wc.returnStrategy,twaReturnUrl:wc.twaReturnUrl,forceRedirect:t})},p=()=>{o(!1),n("extension"),Ze(e.wallet)&&(xo(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return Ec(e.wallet)?d():_c(e.wallet)?p():f(),Un($c,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[Un(Kn,{get when(){return!e.backDisabled},get children(){return Un(Bc,{icon:"arrow",onClick:()=>e.onBackClick()})}}),Un(Wc,{get children(){return e.wallet.name}}),Un(Kn,{get when(){return"mobile"===t()},get children(){return Un(zc,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone\u2019s or ",dn((()=>e.wallet.name)),"\u2019s camera"]}})}}),Un(Dc,{get qr(){return"mobile"===t()},get children(){return Un(qn,{get children(){return[Un(Gn,{get when(){return"mobile"===t()},get children(){return Un(Uc,{disableCopy:!1,get sourceUrl(){return Xc(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),Un(Gn,{get when(){return r()},get children(){return[Un(qc,{size:"s"}),Un(Gc,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"}),Un(Fc,{get children(){return Un(xi,{get leftIcon(){return Un(hs,{})},get onClick(){return"extension"===t()?p:f},get children(){return Un(Yc,{translationKey:"common.retry",children:"Retry"})}})}})]}}),Un(Gn,{get when(){return"extension"===t()},get children(){return[Un(Kn,{get when(){return Ze(e.wallet)},get children(){return[Un(Kc,{size:"s"}),Un(Gc,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",dn((()=>e.wallet.name))," browser extension\u2026"]}}),Un(Fc,{get children(){return Un(xi,{get leftIcon(){return Un(hs,{})},onClick:p,get children(){return Un(Yc,{translationKey:"common.retry",children:"Retry"})}})}})]}}),Un(Kn,{get when(){return!Ze(e.wallet)},get children(){return[Un(Gc,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",dn((()=>e.wallet.name))," browser extension"]}}),Un(Fc,{get children(){return Un(Zs,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Un(xi,{get rightIcon(){return Un(gs,{})},onClick:p,get children(){return Un(Yc,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",dn((()=>e.wallet.name))]}})}})}})}})]}})]}}),Un(Gn,{get when(){return"desktop"===t()},get children(){return[Un(ts,{size:"m"}),Un(Gc,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",dn((()=>e.wallet.name))," on desktop\u2026"]}}),Un(Fc,{get children(){return[Un(xi,{get leftIcon(){return Un(hs,{})},onClick:f,get children(){return Un(Yc,{translationKey:"common.retry",children:"Retry"})}}),Un(Zs,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Un(xi,{get rightIcon(){return Un(gs,{})},get children(){return Un(Yc,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",dn((()=>e.wallet.name))]}})}})}})]}})]}})]}})}}),Un(Kn,{get when(){return e.wallet.appName===$s},get children(){return Un(Qc,{get rightIcon(){return Un(Zc,{get src(){return Us}})},scale:"s",onClick:h,get children(){return Un(Yc,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),Un(Kn,{get when(){return e.wallet.appName!==$s},get children(){return Un(Hc,{get children(){return[Un(Kn,{get when(){return dn((()=>"mobile"!==t()))()&&Ec(e.wallet)},get children(){return Un(Vc,{appearance:"secondary",get leftIcon(){return Un(cs,{})},onClick:d,get children(){return Un(Yc,{translationKey:"common.mobile",children:"Mobile"})}})}}),Un(Kn,{get when(){return dn((()=>"extension"!==t()))()&&_c(e.wallet)},get children(){return Un(Vc,{appearance:"secondary",get leftIcon(){return Un(ss,{})},onClick:p,get children(){return Un(Yc,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),Un(Kn,{get when(){return dn((()=>"desktop"!==t()))()&&Sc(e.wallet)},get children(){return Un(Vc,{appearance:"secondary",get leftIcon(){return Un(ds,{})},onClick:f,get children(){return Un(Yc,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},ru=Dr.div``,ou=Dr(Ni)`
|
|
737
737
|
position: absolute;
|
|
738
738
|
top: 16px;
|
|
739
739
|
left: 16px;
|
|
740
|
-
`,
|
|
740
|
+
`,iu=Dr(Ia)`
|
|
741
741
|
margin-bottom: 18px;
|
|
742
|
-
`,
|
|
742
|
+
`,au=Dr.div`
|
|
743
743
|
padding: 16px 0;
|
|
744
744
|
display: flex;
|
|
745
745
|
flex-direction: column;
|
|
746
746
|
align-items: center;
|
|
747
|
-
`,
|
|
747
|
+
`,su=Lr`
|
|
748
748
|
margin-bottom: 12px;
|
|
749
|
-
`,
|
|
749
|
+
`,lu=Dr(Ua)`
|
|
750
750
|
text-align: center;
|
|
751
751
|
margin-bottom: 4px;
|
|
752
|
-
`,
|
|
752
|
+
`,cu=Dr(xa)`
|
|
753
753
|
text-align: center;
|
|
754
754
|
max-width: 352px;
|
|
755
755
|
color: ${e=>e.theme.colors.text.secondary};
|
|
756
|
-
`,
|
|
756
|
+
`,uu=Dr.div`
|
|
757
757
|
padding: 16px 24px 24px;
|
|
758
758
|
display: flex;
|
|
759
759
|
align-items: center;
|
|
760
760
|
justify-content: center;
|
|
761
761
|
gap: 8px;
|
|
762
|
-
`,
|
|
762
|
+
`,du="https://ton.org/wallets?filters[wallet_features][slug][$in]=dapp-auth&pagination[limit]=-1",fu=e=>Un(ru,{"data-tc-wallets-modal-info":"true",get children(){return[Un(ou,{icon:"arrow",onClick:()=>e.onBackClick()}),Un(iu,{translationKey:"walletModal.infoModal.whatIsAWallet",children:"What is a wallet"}),Un(Gs,{get children(){return[Un(au,{get children(){return[Un(bs,{class:su}),Un(lu,{translationKey:"walletModal.infoModal.secureDigitalAssets",children:"Secure digital assets storage"}),Un(cu,{translationKey:"walletModal.infoModal.walletProtects",children:"A wallet protects and manages your digital assets including TON, tokens and collectables."})]}}),Un(au,{get children(){return[Un(xs,{class:su}),Un(lu,{translationKey:"walletModal.infoModal.controlIdentity",children:"Control your Web3 identity"}),Un(cu,{translationKey:"walletModal.infoModal.manageIdentity",children:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem."})]}}),Un(au,{get children(){return[Un(ks,{class:su}),Un(lu,{translationKey:"walletModal.infoModal.effortlessCryptoTransactions",children:"Effortless crypto transactions"}),Un(cu,{translationKey:"walletModal.infoModal.easilySend",children:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications."})]}}),Un(uu,{get children(){return Un(Zs,{get href(){return du},blank:!0,get children(){return Un(xi,{get rightIcon(){return Un(vs,{})},get children(){return Un(Yc,{translationKey:"walletModal.infoModal.getAWallet",children:"Get a Wallet"})}})}})}})]}})]}}),hu=Dr.div``,pu=Dr.div`
|
|
763
763
|
flex: 1;
|
|
764
764
|
margin-top: 18px;
|
|
765
765
|
display: flex;
|
|
@@ -767,49 +767,49 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
767
767
|
align-items: center;
|
|
768
768
|
justify-content: center;
|
|
769
769
|
min-height: 232px;
|
|
770
|
-
`,
|
|
770
|
+
`,gu=Dr(Ia)`
|
|
771
771
|
max-width: 262px;
|
|
772
772
|
margin: 0 auto 8px;
|
|
773
|
-
`,
|
|
773
|
+
`,mu=Dr(Ni)`
|
|
774
774
|
position: absolute;
|
|
775
775
|
top: 16px;
|
|
776
776
|
left: 16px;
|
|
777
|
-
`,
|
|
777
|
+
`,vu=Dr.div`
|
|
778
778
|
padding: 16px;
|
|
779
779
|
display: flex;
|
|
780
780
|
align-items: center;
|
|
781
781
|
gap: 12px;
|
|
782
|
-
border-top: 0.5px solid ${e=>
|
|
783
|
-
`,
|
|
782
|
+
border-top: 0.5px solid ${e=>Hr(e.theme.colors.icon.secondary,.2)};
|
|
783
|
+
`,yu=Dr(Jo)`
|
|
784
784
|
width: 36px;
|
|
785
785
|
height: 36px;
|
|
786
786
|
border-radius: 10px;
|
|
787
|
-
`,
|
|
787
|
+
`,bu=Dr(Zs)`
|
|
788
788
|
margin-left: auto;
|
|
789
|
-
`,
|
|
789
|
+
`,wu=Dr(ts)`
|
|
790
790
|
margin-bottom: 18px;
|
|
791
791
|
margin-top: 2px;
|
|
792
|
-
`,
|
|
792
|
+
`,xu=Dr(Ya)`
|
|
793
793
|
margin-bottom: 16px;
|
|
794
|
-
`,
|
|
794
|
+
`,Cu=Dr($a)`
|
|
795
795
|
color: ${e=>e.theme.colors.text.secondary};
|
|
796
796
|
text-align: center;
|
|
797
797
|
margin-bottom: 20px;
|
|
798
|
-
`,
|
|
798
|
+
`,ku=Dr.div`
|
|
799
799
|
display: flex;
|
|
800
800
|
justify-content: center;
|
|
801
801
|
gap: 8px;
|
|
802
802
|
padding-bottom: 16px;
|
|
803
|
-
`,
|
|
803
|
+
`,Su=Dr(Ia)`
|
|
804
804
|
margin-bottom: 2px;
|
|
805
805
|
padding: 0 64px;
|
|
806
|
-
`,
|
|
806
|
+
`,Eu=Dr($a)`
|
|
807
807
|
margin-bottom: 20px;
|
|
808
808
|
padding: 0 64px;
|
|
809
809
|
min-height: 44px;
|
|
810
|
-
`,
|
|
810
|
+
`,_u=Dr.div`
|
|
811
811
|
padding: 0 24px 24px;
|
|
812
|
-
`,
|
|
812
|
+
`,Au=e=>[Un(Su,{get children(){return e.walletInfo.name}}),Un(Eu,{translationKey:"walletModal.mobileConnectionModal.scanQR",get translationValues(){return{name:e.walletInfo.name}},get children(){return["Scan the QR code below with your phone\u2019s or ",dn((()=>e.walletInfo.name)),"\u2019s camera"]}}),Un(_u,{get children(){return Un(ga,{get imageUrl(){return e.walletInfo.imageUrl},get sourceUrl(){return Xc(e.universalLink,"none")},disableCopy:!0})}})],Tu=e=>{const t=jr(),[n,r]=sn(!0),[o,i]=sn(!1),[a,s]=sn(!1),l=bn(Ao),c=l.onStatusChange((()=>{}),(()=>{s(!0)})),u=dn((()=>l.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest))),d=()=>{if(Oe(u()))return xo(zt(Wt({},e.wallet),{openMethod:"universal-link"})),void Jc(u(),{returnStrategy:wc.returnStrategy,twaReturnUrl:wc.twaReturnUrl,forceRedirect:!0});s(!1);const t=!n();r(!1),eu(u(),e.wallet.deepLink,{returnStrategy:wc.returnStrategy,forceRedirect:t},(t=>{xo(zt(Wt({},e.wallet),{openMethod:t}))}))},f=()=>{s(!1),i(!0),xo(zt(Wt({},e.wallet),{openMethod:"qrcode"}))},h=()=>{o()?(i(!1),xo(zt(Wt({},e.wallet),{openMethod:"universal-link"}))):e.onBackClick()};return mn(c),d(),Un(hu,{"data-tc-wallets-modal-connection-mobile":"true",get children(){return[Un(Kn,{get when(){return!e.backDisabled||o()},get children(){return Un(mu,{icon:"arrow",onClick:h})}}),Un(Kn,{get when(){return o()},get children(){return Un(Au,{get universalLink(){return u()},get walletInfo(){return e.wallet}})}}),Un(Kn,{get when(){return!o()},get children(){return[Un(gu,{get children(){return e.wallet.name}}),Un(pu,{get children(){return[Un(Kn,{get when(){return a()},get children(){return[Un(xu,{size:"s"}),Un(Cu,{translationKey:"walletModal.mobileConnectionModal.connectionDeclined",children:"Connection declined"}),Un(ku,{get children(){return[Un(xi,{get leftIcon(){return Un(hs,{})},onClick:d,get children(){return Un(Yc,{translationKey:"common.retry",children:"Retry"})}}),Un(xi,{get leftIcon(){return Un(Ps,{get fill(){return t.colors.accent}})},onClick:f,get children(){return Un(Yc,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}}),Un(Kn,{get when(){return!a()},get children(){return[Un(wu,{size:"s"}),Un(Cu,{translationKey:"walletModal.mobileConnectionModal.continueIn",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",dn((()=>e.wallet.name)),"\u2026"]}}),Un(ku,{get children(){return[Un(xi,{get leftIcon(){return Un(hs,{})},onClick:d,get children(){return Un(Yc,{translationKey:"common.retry",children:"Retry"})}}),Un(xi,{get leftIcon(){return Un(Ps,{get fill(){return t.colors.accent}})},onClick:f,get children(){return Un(Yc,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})]}}),Un(vu,{get children(){return[Un(yu,{get src(){return e.wallet.imageUrl}}),Un(Ua,{get children(){return e.wallet.name}}),Un(bu,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Un(xi,{get children(){return Un(Yc,{translationKey:"common.get",children:"GET"})}})}})]}})]}})]}})},Ru={m:"16px",s:"12px",none:"0"},Ou={m:"6px",s:"6px",none:"0"},Pu=Dr.ul`
|
|
813
813
|
display: flex;
|
|
814
814
|
justify-content: space-between;
|
|
815
815
|
margin: 0 auto;
|
|
@@ -831,7 +831,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
831
831
|
> li {
|
|
832
832
|
height: fit-content;
|
|
833
833
|
}
|
|
834
|
-
`,
|
|
834
|
+
`,Lu=Dr.li`
|
|
835
835
|
width: 82px;
|
|
836
836
|
min-width: 82px;
|
|
837
837
|
height: 124px;
|
|
@@ -845,7 +845,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
845
845
|
|
|
846
846
|
transition: transform 0.1s ease-in-out;
|
|
847
847
|
|
|
848
|
-
${
|
|
848
|
+
${mi} {
|
|
849
849
|
&:hover {
|
|
850
850
|
transform: scale(1.04);
|
|
851
851
|
}
|
|
@@ -855,12 +855,12 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
855
855
|
transform: scale(0.96);
|
|
856
856
|
}
|
|
857
857
|
|
|
858
|
-
${
|
|
858
|
+
${gi} {
|
|
859
859
|
&:active {
|
|
860
860
|
transform: scale(0.92);
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
-
`,
|
|
863
|
+
`,Mu=Dr.div`
|
|
864
864
|
width: 1px;
|
|
865
865
|
margin: 0 10px;
|
|
866
866
|
height: 24px;
|
|
@@ -869,34 +869,34 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
869
869
|
|
|
870
870
|
background-color: ${e=>e.theme.colors.icon.secondary};
|
|
871
871
|
opacity: 0.2;
|
|
872
|
-
`,
|
|
872
|
+
`,Nu=Dr.div`
|
|
873
873
|
width: 60px;
|
|
874
874
|
height: 60px;
|
|
875
|
-
border-radius: ${e=>
|
|
875
|
+
border-radius: ${e=>Ru[e.theme.borderRadius]};
|
|
876
876
|
display: flex;
|
|
877
877
|
align-items: center;
|
|
878
878
|
justify-content: center;
|
|
879
879
|
|
|
880
880
|
background-color: ${e=>e.theme.colors.background.tint};
|
|
881
881
|
margin-bottom: 8px;
|
|
882
|
-
`,
|
|
882
|
+
`,Iu=Dr(Ia)`
|
|
883
883
|
margin-top: 38px;
|
|
884
884
|
margin-bottom: 4px;
|
|
885
885
|
padding: 0 24px;
|
|
886
|
-
`,
|
|
886
|
+
`,ju=Dr($a)`
|
|
887
887
|
margin-bottom: 24px;
|
|
888
888
|
padding: 0 24px;
|
|
889
889
|
min-height: 44px;
|
|
890
890
|
max-width: ${e=>e.maxWidth}px;
|
|
891
891
|
margin-left: ${e=>e.maxWidth?"auto":"0px"};
|
|
892
892
|
margin-right: ${e=>e.maxWidth?"auto":"0px"};
|
|
893
|
-
`;
|
|
893
|
+
`;Dr(xi)`
|
|
894
894
|
display: block;
|
|
895
895
|
margin: 0 auto;
|
|
896
|
-
`;const
|
|
896
|
+
`;const $u=Dr(xi)`
|
|
897
897
|
margin: 0 24px 24px;
|
|
898
898
|
width: calc(100% - 48px);
|
|
899
|
-
border-radius: ${e=>
|
|
899
|
+
border-radius: ${e=>Ru[e.theme.borderRadius]};
|
|
900
900
|
padding: 14px 16px 14px 14px;
|
|
901
901
|
background-color: ${e=>e.theme.colors.telegramButton};
|
|
902
902
|
|
|
@@ -904,50 +904,50 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
904
904
|
font-weight: 510;
|
|
905
905
|
font-size: 16px;
|
|
906
906
|
line-height: 20px;
|
|
907
|
-
`,
|
|
907
|
+
`,Du=Dr(Jo)`
|
|
908
908
|
background-color: transparent;
|
|
909
|
-
border-radius: ${e=>
|
|
909
|
+
border-radius: ${e=>Ou[e.theme.borderRadius]};
|
|
910
910
|
width: 24px;
|
|
911
911
|
height: 24px;
|
|
912
|
-
|
|
912
|
+
`,Uu=Dr(Ni)`
|
|
913
913
|
position: absolute;
|
|
914
914
|
top: 16px;
|
|
915
915
|
left: 16px;
|
|
916
|
-
`,
|
|
916
|
+
`,Wu=Dr(Ia)`
|
|
917
917
|
margin-bottom: 2px;
|
|
918
918
|
padding: 0 64px;
|
|
919
|
-
`,
|
|
919
|
+
`,zu=Dr($a)`
|
|
920
920
|
margin-bottom: 20px;
|
|
921
921
|
padding: 0 64px;
|
|
922
|
-
`,
|
|
922
|
+
`,Bu=Dr.div`
|
|
923
923
|
padding: 0 24px 24px;
|
|
924
|
-
`,
|
|
924
|
+
`,Fu=e=>[Un(Wu,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your wallet"}),Un(zu,{translationKey:"walletModal.mobileUniversalModal.scan",children:"Scan with your mobile wallet"}),Un(Bu,{get children(){return Un(ga,{get imageUrl(){return Ds},get sourceUrl(){return Xc(e.universalLink,"none")},disableCopy:!0})}})];function Hu(e){const t=new Set(e.filter(Xe).map((e=>e.bridgeUrl)));return Array.from(t).map((e=>({bridgeUrl:e})))}function Vu(e,t){const n=new Set(null==e?void 0:e.map((e=>e.bridgeUrl))),r=new Set(null==t?void 0:t.map((e=>e.bridgeUrl)));return n.size===r.size&&[...n].every((e=>r.has(e)))}const Ku=rr("<li></li>"),qu=rr('<div data-tc-wallets-modal-universal-mobile="true"></div>'),Gu=e=>{const[t,n]=sn(!1),[r,o]=sn(!0),[i,a]=sn(null),s=wc.connector,l=()=>e.walletsList.filter((e=>Ec(e)&&e.appName!==$s)),c=()=>l().length>7,u=dn((()=>Hu(e.walletsList)),null,{equals:Vu}),d=()=>(i()||a(s.connect(u(),e.additionalRequest)),i());xo({openMethod:"universal-link"});const[f,h]=sn(void 0),p=()=>Ft(void 0,null,(function*(){void 0!==f()&&clearTimeout(f()),yield ha(d());const e=setTimeout((()=>h(void 0)),1500);h(e)})),g=()=>{const e=!r();o(!1),eu(d(),void 0,{returnStrategy:wc.returnStrategy,forceRedirect:e},(e=>{xo({openMethod:e})}))},m=()=>{a(null);const t=e.walletsList.find((e=>e.appName===$s));if(!t||!Xe(t))throw new Gr("@wallet bot not found in the wallets list");const n=s.connect({bridgeUrl:t.bridgeUrl,universalLink:t.universalLink},e.additionalRequest),i=!r();o(!1),Jc(n,{returnStrategy:wc.returnStrategy,twaReturnUrl:wc.twaReturnUrl,forceRedirect:i})},v=()=>{n(!0),xo({openMethod:"qrcode"})},y=()=>{n(!1),xo({openMethod:"universal-link"})};return(()=>{const n=qu.cloneNode(!0);return lr(n,Un(Kn,{get when(){return t()},get children(){return[Un(Uu,{icon:"arrow",onClick:y}),Un(Fu,{get universalLink(){return d()}})]}}),null),lr(n,Un(Kn,{get when(){return!t()},get children(){return[Un(Uu,{get icon(){return Un(Ps,{})},onClick:v}),Un(Iu,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your wallet"}),Un(ju,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegramOrSelect",maxWidth:342,children:"Open Wallet in Telegram or select your wallet to connect"}),Un($u,{get leftIcon(){return Un(Es,{})},get rightIcon(){return Un(Du,{get src(){return Us}})},onClick:m,scale:"s",get children(){return Un(Yc,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegram",children:"Open Wallet in Telegram"})}}),Un(Pu,{get children(){return[Un(Vn,{get each(){return dn((()=>!!c()))()?l().slice(0,4):l()},children:t=>(()=>{const n=Ku.cloneNode(!0);return lr(n,Un(Ma,{get icon(){return t.imageUrl},get name(){return t.name},onClick:()=>e.onSelect(t)})),n})()}),Un(Kn,{get when(){return c()},get children(){const t=Ku.cloneNode(!0);return lr(t,Un(js,{labelLine1:"View all",labelLine2:"wallets",get images(){return l().slice(3,7).map((e=>e.imageUrl))},onClick:()=>e.onSelectAllWallets()})),t}}),Un(Mu,{children:"\xa0"}),Un(Lu,{onClick:g,get children(){return[Un(Nu,{get children(){return Un(za,{})}}),Un(xa,{fontWeight:590,translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})]}}),Un(Lu,{onClick:p,get children(){return[Un(Nu,{get children(){return dn((()=>void 0!==f()))()?Un(As,{}):Un(Rs,{})}}),Un(xa,{fontWeight:590,get translationKey(){return void 0!==f()?"common.copied":"common.copyLink"},get children(){return void 0!==f()?"Copied":"Copy Link"}})]}})]}})]}}),null),n})()},Qu={m:"16px",s:"8px",none:"0"},Zu={m:"8px",s:"4px",none:"0"},Yu=Dr.div`
|
|
925
925
|
display: flex;
|
|
926
926
|
flex-direction: column;
|
|
927
927
|
align-items: center;
|
|
928
928
|
padding-bottom: 16px;
|
|
929
|
-
`,
|
|
929
|
+
`,Xu=Dr($a)`
|
|
930
930
|
max-width: 320px;
|
|
931
931
|
margin-top: 2px;
|
|
932
932
|
margin-bottom: 20px;
|
|
933
|
-
`,
|
|
933
|
+
`,Ju=Dr($a)`
|
|
934
934
|
margin-bottom: 16px;
|
|
935
|
-
`,
|
|
935
|
+
`,ed=Dr(ga)`
|
|
936
936
|
margin-bottom: 24px;
|
|
937
|
-
`,
|
|
937
|
+
`,td=Dr.ul`
|
|
938
938
|
display: flex;
|
|
939
|
-
`;
|
|
939
|
+
`;Dr.div`
|
|
940
940
|
display: flex;
|
|
941
941
|
gap: 16px;
|
|
942
942
|
width: 100%;
|
|
943
|
-
`,
|
|
943
|
+
`,Dr(xi)`
|
|
944
944
|
position: relative;
|
|
945
945
|
font-size: 16px;
|
|
946
946
|
line-height: 20px;
|
|
947
947
|
width: 100%;
|
|
948
948
|
padding: 0 16px;
|
|
949
949
|
height: 56px;
|
|
950
|
-
border-radius: ${e=>
|
|
950
|
+
border-radius: ${e=>Qu[e.theme.borderRadius]};
|
|
951
951
|
|
|
952
952
|
&:hover {
|
|
953
953
|
${e=>e.disableEventsAnimation?"transform: unset;":""}
|
|
@@ -956,7 +956,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
956
956
|
&:active {
|
|
957
957
|
${e=>e.disableEventsAnimation?"transform: unset;":""}
|
|
958
958
|
}
|
|
959
|
-
`,
|
|
959
|
+
`,Dr.ul`
|
|
960
960
|
position: absolute;
|
|
961
961
|
bottom: 100%;
|
|
962
962
|
left: 0;
|
|
@@ -966,9 +966,9 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
966
966
|
transform: translateY(-16px);
|
|
967
967
|
|
|
968
968
|
background-color: ${e=>e.theme.colors.background.primary};
|
|
969
|
-
border-radius: ${e=>
|
|
969
|
+
border-radius: ${e=>Qu[e.theme.borderRadius]};
|
|
970
970
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
|
|
971
|
-
`,
|
|
971
|
+
`,Dr.li`
|
|
972
972
|
padding: 8px;
|
|
973
973
|
|
|
974
974
|
display: flex;
|
|
@@ -976,7 +976,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
976
976
|
gap: 8px;
|
|
977
977
|
|
|
978
978
|
cursor: pointer;
|
|
979
|
-
border-radius: ${e=>
|
|
979
|
+
border-radius: ${e=>Zu[e.theme.borderRadius]};
|
|
980
980
|
|
|
981
981
|
transition: background-color, transform 0.1s ease-in-out;
|
|
982
982
|
|
|
@@ -987,29 +987,29 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
987
987
|
&:active {
|
|
988
988
|
transform: scale(0.96);
|
|
989
989
|
}
|
|
990
|
-
`,
|
|
990
|
+
`,Dr(Jo)`
|
|
991
991
|
width: 24px;
|
|
992
992
|
height: 24px;
|
|
993
993
|
|
|
994
994
|
border-radius: 6px;
|
|
995
|
-
`,
|
|
995
|
+
`,Dr.div`
|
|
996
996
|
margin-top: 23px;
|
|
997
997
|
margin-bottom: 1px;
|
|
998
998
|
width: 100%;
|
|
999
999
|
display: flex;
|
|
1000
1000
|
justify-content: center;
|
|
1001
1001
|
align-items: center;
|
|
1002
|
-
`,
|
|
1002
|
+
`,Dr(xa)`
|
|
1003
1003
|
color: ${e=>e.theme.colors.text.secondary};
|
|
1004
1004
|
font-size: 16px;
|
|
1005
|
-
`;const
|
|
1005
|
+
`;const nd=rr("<li></li>"),rd=e=>{const[t,n]=sn(!1),r=wc.connector,o=dn((()=>Hu(e.walletsList)),null,{equals:Vu});xo({openMethod:"qrcode"});const i=dn((()=>r.connect(o(),e.additionalRequest)));return Un(Yu,{onClick:()=>n(!1),"data-tc-wallets-modal-universal-desktop":"true",get children(){return[Un(Ia,{translationKey:"walletModal.desktopUniversalModal.connectYourWallet",children:"Connect your wallet"}),Un(Xu,{translationKey:"walletModal.desktopUniversalModal.scan",children:"Scan with your mobile wallet"}),Un(ed,{get sourceUrl(){return Xc(i(),"none")},get disableCopy(){return t()},get imageUrl(){return Ds}}),Un(Ju,{translationKey:"walletModal.desktopUniversalModal.availableWallets",children:"Available wallets"}),Un(td,{get children(){return[Un(Vn,{get each(){return e.walletsList.slice(0,3)},children:t=>(()=>{const n=nd.cloneNode(!0);return lr(n,Un(Ws,{wallet:t,onClick:()=>e.onSelect(t)})),n})()}),Un(js,{labelLine1:"View all",labelLine2:"wallets",get images(){return e.walletsList.slice(3,7).map((e=>e.imageUrl))},onClick:()=>e.onSelectAllWallets()})]}})]}})},od=()=>{const{locale:e}=ba()[1];un((()=>e(wc.language))),un((()=>{ho()?qs():(i(null),s("universal"),c(!1))}));const t=bn(Ao),n=bn(Ys),[r]=fn((()=>n.getWallets())),[o,i]=sn(null),[a,s]=sn("universal"),[l,c]=sn(!1),u=dn((()=>{if("ready"!==r.state)return null;let e=kc(r(),wc.walletsListConfiguration);const t=e.filter(Ze),n=e.filter((e=>!Ze(e)));e=(t||[]).concat(n);const o=wc.preferredWalletAppName,i=e.find((e=>Ac(e,o))),a=e.filter((e=>Ac(e,o))).length>=2;o&&i&&!a&&(e=[zt(Wt({},i),{isPreferred:!0})].concat(e.filter((e=>!Ac(e,o)))));const s=e.find((e=>Ac(e,$s)));return s&&(e=[s].concat(e.filter((e=>!Ac(e,$s))))),e})),d=()=>{var e;return"loading"===(null==(e=wc.connectRequestParameters)?void 0:e.state)},f=dn((()=>{var e;if(!d())return null==(e=wc.connectRequestParameters)?void 0:e.value})),h=e=>{n.closeModal(e)},p=t.onStatusChange((e=>{e&&h("wallet-selected")})),g=()=>{s("all-wallets")},m=()=>{s("universal")},v=()=>{i(null)};return mn((()=>{i(null),c(!1)})),mn(p),Un(vc,{get opened(){return ho()},get enableAndroidBackHandler(){return wc.enableAndroidBackHandler},onClose:()=>h("action-cancelled"),onClickQuestion:()=>c((e=>!e)),"data-tc-wallets-modal-container":"true",get children(){return[Un(Kn,{get when(){return l()},get children(){return Un(fu,{onBackClick:()=>c(!1)})}}),Un(Kn,{get when(){return!l()},get children(){return[Un(Kn,{get when(){return d()||!u()},get children(){return[Un(yc,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Un(bc,{get children(){return Un(ts,{size:"m"})}})]}}),Un(Kn,{get when(){return dn((()=>!d()))()&&u()},get children(){return Un(qn,{get children(){return[Un(Gn,{get when(){return o()},get children(){return Un(wr,{get component(){return Vs()?Tu:nu},get wallet(){return o()},get additionalRequest(){return f()},onBackClick:v})}}),Un(Gn,{get when(){return"universal"===a()},get children(){return Un(wr,{get component(){return Vs()?Gu:rd},onSelect:i,get walletsList(){return u()},get additionalRequest(){return f()},onSelectAllWallets:g})}}),Un(Gn,{get when(){return"all-wallets"===a()},get children(){return Un(Nc,{get walletsList(){return u()},onBack:m,onSelect:i})}})]}})}})]}})]}})},id=Dr.div`
|
|
1006
1006
|
display: flex;
|
|
1007
1007
|
flex-direction: column;
|
|
1008
1008
|
align-items: center;
|
|
1009
1009
|
padding-bottom: 8px;
|
|
1010
|
-
`,
|
|
1010
|
+
`,ad=Dr(Ia)`
|
|
1011
1011
|
margin-top: 16px;
|
|
1012
|
-
`,
|
|
1012
|
+
`,sd=Dr(xa)`
|
|
1013
1013
|
font-weight: 510;
|
|
1014
1014
|
font-size: 16px;
|
|
1015
1015
|
line-height: 20px;
|
|
@@ -1017,15 +1017,15 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
1017
1017
|
max-width: 250px;
|
|
1018
1018
|
|
|
1019
1019
|
color: ${e=>e.theme.colors.text.secondary};
|
|
1020
|
-
`,
|
|
1020
|
+
`,ld=Dr(xi)`
|
|
1021
1021
|
min-width: 112px;
|
|
1022
1022
|
margin-top: 32px;
|
|
1023
|
-
`,
|
|
1023
|
+
`,cd=Dr(ts)`
|
|
1024
1024
|
height: 16px;
|
|
1025
1025
|
width: 16px;
|
|
1026
|
-
`,
|
|
1026
|
+
`,ud=Dr(xi)`
|
|
1027
1027
|
margin-top: 32px;
|
|
1028
|
-
`,cd=e=>{const t=yi(e),n=vn(Qs),[r,o]=on(!0),[i,a]=on(!1);let s,l;ln((()=>{const e=wo();a(!!e&&"sent"in e&&e.sent)})),(null==n?void 0:n.wallet)&&"universalLink"in n.wallet&&("universal-link"===n.wallet.openMethod||Te(n.wallet.universalLink)&&ni())&&(s=n.wallet.universalLink),(null==n?void 0:n.wallet)&&"deepLink"in n.wallet&&("custom-deeplink"===n.wallet.openMethod||Te(n.wallet.deepLink)&&ni())&&(l=n.wallet.deepLink);const c=()=>{const e=wo(),t="returnStrategy"in e?e.returnStrategy:yc.returnStrategy,n=!r();o(!1),Te(s)?Yc(s,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:yc.twaReturnUrl,forceRedirect:n}):Xc(s,l,{returnStrategy:t,forceRedirect:n},(()=>{}))};return $n(rd,zn(t,{get children(){return[cn((()=>e.icon)),$n(od,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),$n(id,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),$n(Hn,{get when(){return!i()&&("open-wallet"===e.showButton&&s||"open-wallet"!==e.showButton)},get children(){return $n(ad,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return $n(sd,{})}})}}),$n(Hn,{get when(){return i()},get children(){return[$n(Hn,{get when(){return"open-wallet"!==e.showButton},get children(){return $n(ld,{onClick:()=>e.onClose(),get children(){return $n(Qc,{translationKey:"common.close",children:"Close"})}})}}),$n(Hn,{get when(){return"open-wallet"===e.showButton&&s},get children(){return $n(ld,{onClick:c,get children(){return $n(Qc,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},ud=e=>{const t=vn(Qs),[n]=va();return $n(cd,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return $n(Ja,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},dd=e=>$n(cd,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return $n(Qa,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),fd=e=>$n(cd,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return $n(Va,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),hd=()=>$n(Gi,{get opened(){var e;return cn((()=>null!==wo()))()&&!0===(null==(e=wo())?void 0:e.openModal)},get enableAndroidBackHandler(){return yc.enableAndroidBackHandler},onClose:()=>xo(null),"data-tc-actions-modal-container":"true",get children(){return $n(Vn,{get children(){return[$n(Kn,{get when(){return"transaction-sent"===wo().name},get children(){return $n(fd,{onClose:()=>xo(null)})}}),$n(Kn,{get when(){return"transaction-canceled"===wo().name},get children(){return $n(dd,{onClose:()=>xo(null)})}}),$n(Kn,{get when(){return"confirm-transaction"===wo().name},get children(){return $n(ud,{onClose:()=>xo(null)})}})]}})}}),pd=()=>{const{locale:e}=va()[1];ln((()=>e(yc.language))),ln((()=>{po()&&Vs()}));const t=vn(Eo),n=vn(Qs),[r,o]=on(!1),i=()=>{var e;return"loading"===(null==(e=yc.connectRequestParameters)?void 0:e.state)},a=cn((()=>{var e;if(!i())return null==(e=yc.connectRequestParameters)?void 0:e.value})),s=e=>{n.closeSingleWalletModal(e)};return pn(t.onStatusChange((e=>{e&&s("wallet-selected")}))),pn((()=>{o(!1)})),$n(gc,{get opened(){return po()},get enableAndroidBackHandler(){return yc.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o((e=>!e)),"data-tc-wallets-modal-container":"true",get children(){return[$n(Hn,{get when(){return r()},get children(){return $n(uu,{onBackClick:()=>o(!1)})}}),$n(Hn,{get when(){return!r()},get children(){return[$n(Hn,{get when(){return i()},get children(){return[$n(mc,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),$n(vc,{get children(){return $n(Ja,{size:"m"})}})]}}),$n(Hn,{get when(){return!i()},get children(){return $n(yr,{get component(){return Fs()?_u:eu},get wallet(){return go()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},gd=e=>{const t=ga(ko,yc.language);return customElements.define(Dr,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),$n(ma.Provider,{value:t,get children(){return $n(Qs.Provider,{get value(){return e.tonConnectUI},get children(){return $n(Eo.Provider,{get value(){return yc.connector},get children(){return[$n(zr,{}),$n(Mr,{theme:Vo,get children(){return[$n(Hn,{get when(){return yc.buttonRootId},get children(){return $n(vr,{get mount(){return document.getElementById(yc.buttonRootId)},get children(){return $n(pc,{})}})}}),$n(yr,{component:Dr,get children(){return[$n(nd,{}),$n(pd,{}),$n(hd,{})]}})]}})]}})}})}})},md=()=>{setTimeout((()=>co({status:"opened",closeReason:null})))},vd=e=>{setTimeout((()=>co({status:"closed",closeReason:e})))},yd=e=>{setTimeout((()=>ho({status:"opened",closeReason:null,walletInfo:e})))},bd=e=>{setTimeout((()=>ho({status:"closed",closeReason:e})))},wd=e=>{setTimeout((()=>xo(e)))},xd=()=>{setTimeout((()=>xo(null)))},Cd=()=>vo(),kd=()=>bo(null),Sd=(e,t)=>function(e,t,n){let r;return rn((o=>{r=o,t===document?e():ar(t,e(),t.firstChild?null:void 0,n)}),(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).owner),()=>{r(),t.textContent=""}}((()=>$n(gd,{tonConnectUI:t})),document.getElementById(e));class Ed{constructor(e){Wt(this,"connector"),Wt(this,"setConnectRequestParametersCallback"),Wt(this,"consumers",[]),Wt(this,"tracker"),Wt(this,"state",lo()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,ln((()=>{const e=lo();this.state=e,this.consumers.forEach((t=>t(e)))}))}open(){return zt(this,null,(function*(){this.tracker.trackConnectionStarted();const e=(yield this.connector.getWallets()).find(Qe);return e?this.connectEmbeddedWallet(e):this.openWalletsModal()}))}close(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"action-cancelled";"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),vd(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}connectEmbeddedWallet(e){const t=t=>{bo(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=yc.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openWalletsModal(){return zt(this,null,(function*(){return ni()&&oi(),md(),new Promise((e=>{const t=this.onStateChange((n=>{const{status:r}=n;"opened"===r&&(t(),e())}))}))}))}}class _d{constructor(e){Wt(this,"connector"),Wt(this,"consumers",[]),this.connector=e.connector,ln((()=>{const e=wo();this.consumers.forEach((t=>t(e)))}))}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}}class Ad{constructor(e){Wt(this,"connector"),Wt(this,"setConnectRequestParametersCallback"),Wt(this,"consumers",[]),Wt(this,"tracker"),Wt(this,"state",fo()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,ln((()=>{const e=fo();this.state=e,this.consumers.forEach((t=>t(e)))}))}open(e){return zt(this,null,(function*(){this.tracker.trackConnectionStarted();const t=xc(yield this.connector.getWallets(),yc.walletsListConfiguration),n=t.find(Qe);if(!!n)return this.connectEmbeddedWallet(n);const r=t.filter(Ze).find((t=>Ec(t,e)));if(!!r)return this.openSingleWalletModal(r);const o=`Trying to open modal window with unknown wallet "${e}".`;throw this.tracker.trackConnectionError(o),new Kr(o)}))}close(){"action-cancelled"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"action-cancelled")&&this.tracker.trackConnectionError("Connection was cancelled"),bd("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}connectEmbeddedWallet(e){const t=t=>{bo(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=yc.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openSingleWalletModal(e){return zt(this,null,(function*(){return ni()&&oi(),yd(e),new Promise((e=>{const t=this.onStateChange((n=>{const{status:r}=n;"opened"===r&&(t(),e())}))}))}))}}class Td{constructor(e){var t;Wt(this,"eventPrefix","ton-connect-ui-"),Wt(this,"tonConnectUiVersion"),Wt(this,"tonConnectSdkVersion",null),Wt(this,"eventDispatcher"),this.eventDispatcher=null!=(t=null==e?void 0:e.eventDispatcher)?t:new gt,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return nt({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return zt(this,null,(function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(Fv){}}))}setRequestVersionHandler(){return zt(this,null,(function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",(()=>zt(this,null,(function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",tt(this.tonConnectUiVersion))}))))}))}requestTonConnectSdkVersion(){return zt(this,null,(function*(){return new Promise(((e,t)=>zt(this,null,(function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",(t=>{e(t.detail.version)}),{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",{type:"request-version"})}catch(Fv){t(Fv)}}))))}))}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(Fv){}}trackConnectionStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ot(this.version,...t);this.dispatchUserActionEvent(r)}catch(Fv){}}trackConnectionCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=it(this.version,...t);this.dispatchUserActionEvent(r)}catch(Fv){}}trackConnectionError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=at(this.version,...t);this.dispatchUserActionEvent(r)}catch(Fv){}}trackConnectionRestoringStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=st(this.version,...t);this.dispatchUserActionEvent(r)}catch(Fv){}}trackConnectionRestoringCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=lt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Fv){}}trackConnectionRestoringError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ct(this.version,...t);this.dispatchUserActionEvent(r)}catch(Fv){}}trackDisconnection(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=pt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Fv){}}trackTransactionSentForSignature(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=dt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Fv){}}trackTransactionSigned(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ft(this.version,...t);this.dispatchUserActionEvent(r)}catch(Fv){}}trackTransactionSigningFailed(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ht(this.version,...t);this.dispatchUserActionEvent(r)}catch(Fv){}}}class Rd{constructor(e){if(Wt(this,"walletInfoStorage",new io),Wt(this,"preferredWalletStorage",new ao),Wt(this,"tracker"),Wt(this,"walletInfo",null),Wt(this,"systemThemeChangeUnsubscribe",null),Wt(this,"actionsConfiguration"),Wt(this,"walletsList"),Wt(this,"connectRequestParametersCallback"),Wt(this,"connector"),Wt(this,"modal"),Wt(this,"singleWalletModal"),Wt(this,"transactionModal"),Wt(this,"connectionRestored",Promise.resolve(!1)),e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new Kr("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new vt({manifestUrl:e.manifestUrl,eventDispatcher:null==e?void 0:e.eventDispatcher})}this.tracker=new Td({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectUiVersion:"2.0.9"}),this.modal=new Ed({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new Ad({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new _d({connector:this.connector}),this.walletsList=this.getWallets(),this.walletsList.then((e=>{return Xr((t=e.map((e=>e.imageUrl)),[...new Set(t)]));var t}));const t=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return zt(this,null,(function*(){return yield new Promise((e=>requestAnimationFrame(e))),e()}))}((()=>zt(this,null,(function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))))),this.uiOptions=Ho(e,{uiPreferences:{theme:"SYSTEM"}});const n=this.preferredWalletStorage.getPreferredWalletAppName();bc({connector:this.connector,preferredWalletAppName:n}),Sd(t,this)}static getWallets(){return vt.getWallets()}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?Dt(Dt({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,n,r,o,i,a,s;this.checkButtonRootExist(e.buttonRootId),this.actionsConfiguration=e.actionsConfiguration,(null==(t=e.uiPreferences)?void 0:t.theme)?"SYSTEM"!==(null==(n=e.uiPreferences)?void 0:n.theme)?(null==(r=this.systemThemeChangeUnsubscribe)||r.call(this),Qo(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(Qo(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?br.LIGHT:br.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?br.DARK:br.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(Qo))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(a=e.uiPreferences.colorsSet,Go[br.DARK]=Ho(a[br.DARK],Go[br.DARK]),Go[br.LIGHT]=Ho(a[br.LIGHT],Go[br.LIGHT]),Ko((e=>({colors:Ho(Go[e.theme],qo[e.theme])})))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(s=e.uiPreferences.borderRadius,Ko({borderRadius:s})),bc((t=>{var n,r;const o=Ho(Dt(Dt(Dt(Dt({},e.language&&{language:e.language}),!!(null==(n=e.actionsConfiguration)?void 0:n.returnStrategy)&&{returnStrategy:e.actionsConfiguration.returnStrategy}),!!(null==(r=e.actionsConfiguration)?void 0:r.twaReturnUrl)&&{twaReturnUrl:e.actionsConfiguration.twaReturnUrl}),!!e.walletsListConfiguration&&{walletsListConfiguration:e.walletsListConfiguration}),Po(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o}))}setConnectRequestParameters(e){var t;bc({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}getWallets(){return zt(this,null,(function*(){return this.connector.getWallets()}))}onStatusChange(e,t){return this.connector.onStatusChange((t=>zt(this,null,(function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(Dt(Dt({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}))),t)}openModal(){return zt(this,null,(function*(){return this.modal.open()}))}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return zt(this,null,(function*(){return this.singleWalletModal.open(e)}))}closeSingleWalletModal(e){this.singleWalletModal.close(e)}onSingleWalletModalStateChange(e){return this.singleWalletModal.onStateChange(e)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return zt(this,null,(function*(){const e=(yield this.getWallets()).find(Qe);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()}))}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),xd(),kd(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return zt(this,null,(function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new Kr("Connect wallet to send a transaction.");ni()&&oi();const{notifications:n,modals:r,returnStrategy:o,twaReturnUrl:i,skipRedirectToWallet:a}=this.getModalsAndNotificationsConfiguration(t);wd({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!1});const s=()=>{l.signal.aborted||(wd({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!0}),this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)&&(Te(this.walletInfo.universalLink)?Yc(this.walletInfo.universalLink,{returnStrategy:o,twaReturnUrl:i||yc.twaReturnUrl,forceRedirect:!1}):Xc(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:o,forceRedirect:!1},(()=>{}))))},l=new AbortController,c=this.onTransactionModalStateChange((e=>{(null==e?void 0:e.openModal)||(c(),e||l.abort())}));try{const t=yield this.waitForSendTransaction({transaction:e,signal:l.signal},s);return this.tracker.trackTransactionSigned(this.wallet,e,t),wd({name:"transaction-sent",showNotification:n.includes("success"),openModal:r.includes("success")}),t}catch(Fv){throw wd({name:"transaction-canceled",showNotification:n.includes("error"),openModal:r.includes("error")}),Fv instanceof se?Fv:(console.error(Fv),new Kr("Unhandled error:"+Fv))}finally{c()}}))}connectEmbeddedWallet(e){return zt(this,null,(function*(){const t=t=>{bo(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=yc.connectRequestParameters;return"loading"===(null==n?void 0:n.state)?this.connectRequestParametersCallback=t:t(null==n?void 0:n.value),yield this.waitForWalletConnection({ignoreErrors:!1})}))}connectExternalWallet(){return zt(this,null,(function*(){const e=new AbortController;md();const t=this.onModalStateChange((n=>{const{status:r,closeReason:o}=n;"opened"!==r&&(t(),"action-cancelled"===o&&e.abort())}));return yield this.waitForWalletConnection({ignoreErrors:!0,signal:e.signal})}))}waitForWalletConnection(e){return zt(this,null,(function*(){return new Promise(((t,n)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:r=!1,signal:o=null}=e;if(o&&o.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),n(new Kr("Wallet was not connected"));const i=e=>zt(this,null,(function*(){if(e)this.tracker.trackConnectionCompleted(e),s(),t(e);else{if(this.tracker.trackConnectionError("Connection was cancelled"),r)return;s(),n(new Kr("Wallet was not connected"))}})),a=e=>{this.tracker.trackConnectionError(e.message),r||(s(),n(e))},s=this.onStatusChange((e=>i(e)),(e=>a(e)));o&&o.addEventListener("abort",(()=>{s(),n(new Kr("Wallet was not connected"))}),{once:!0})}))}))}waitForSendTransaction(e,t){return zt(this,null,(function*(){return new Promise(((n,r)=>{const{transaction:o,signal:i}=e;if(i.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Kr("Transaction was not sent"));const a=e=>zt(this,null,(function*(){n(e)})),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Kr("Transaction was not sent"))};i.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(o,{onRequestSent:t,signal:i}).then((e=>(i.removeEventListener("abort",s),a(e)))).catch((e=>(i.removeEventListener("abort",s),(e=>{r(e)})(e))))}))}))}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange((e=>zt(this,null,(function*(){var t;e?(yield this.updateWalletInfo(e),this.setPreferredWalletAppName((null==(t=this.walletInfo)?void 0:t.appName)||e.device.appName)):this.walletInfoStorage.removeWalletInfo()}))))}setPreferredWalletAppName(e){this.preferredWalletStorage.setPreferredWalletAppName(e),bc({preferredWalletAppName:e})}getSelectedWalletInfo(e){return zt(this,null,(function*(){let t,n=Cd();if(!n)return null;if("name"in n)t=n;else{const r=xc(yield this.walletsList,yc.walletsListConfiguration).find((t=>Ec(t,e.device.appName)));if(!r)throw new Kr(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=Dt(Dt({},r),n)}return t}))}updateWalletInfo(e){return zt(this,null,(function*(){const t=yield this.getSelectedWalletInfo(e);if(t)return this.walletInfo=t,void this.walletInfoStorage.setWalletInfo(t);const n=this.walletInfoStorage.getWalletInfo();this.walletInfo=n||((yield this.walletsList).find((t=>Ec(t,e.device.appName)))||null)}))}normalizeWidgetRoot(e){if(!e||!document.getElementById(e)){e="tc-widget-root";const t=document.createElement("div");t.id=e,document.body.appendChild(t)}return e}checkButtonRootExist(e){if(null!=e&&!document.getElementById(e))throw new Kr(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,n,r,o,i,a;const s=["before","success","error"];let l=s;(null==(t=this.actionsConfiguration)?void 0:t.notifications)&&"all"!==(null==(n=this.actionsConfiguration)?void 0:n.notifications)&&(l=this.actionsConfiguration.notifications),(null==e?void 0:e.notifications)&&(l="all"===e.notifications?s:e.notifications);let c=["before"];(null==(r=this.actionsConfiguration)?void 0:r.modals)&&(c="all"===this.actionsConfiguration.modals?s:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(c="all"===e.modals?s:e.modals);const u=(null==e?void 0:e.returnStrategy)||(null==(o=this.actionsConfiguration)?void 0:o.returnStrategy)||"back",d=(null==e?void 0:e.twaReturnUrl)||(null==(i=this.actionsConfiguration)?void 0:i.twaReturnUrl);let f=(null==e?void 0:e.skipRedirectToWallet)||(null==(a=this.actionsConfiguration)?void 0:a.skipRedirectToWallet)||"ios";return ni()&&(f="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:f}}}function Od(e,t){return function(){return e.apply(t,arguments)}}const{toString:Pd}=Object.prototype,{getPrototypeOf:Ld}=Object,Md=(Nd=Object.create(null),e=>{const t=Pd.call(e);return Nd[t]||(Nd[t]=t.slice(8,-1).toLowerCase())});var Nd;const Id=e=>(e=e.toLowerCase(),t=>Md(t)===e),jd=e=>t=>typeof t===e,{isArray:$d}=Array,Dd=jd("undefined");const Ud=Id("ArrayBuffer");const Wd=jd("string"),zd=jd("function"),Bd=jd("number"),Fd=e=>null!==e&&"object"===typeof e,Hd=e=>{if("object"!==Md(e))return!1;const t=Ld(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Vd=Id("Date"),Kd=Id("File"),qd=Id("Blob"),Gd=Id("FileList"),Qd=Id("URLSearchParams"),[Zd,Yd,Xd,Jd]=["ReadableStream","Request","Response","Headers"].map(Id);function ef(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),$d(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(n=0;n<i;n++)a=r[n],t.call(null,e[a],a,e)}}function tf(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const nf="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,rf=e=>!Dd(e)&&e!==nf;const of=(af="undefined"!==typeof Uint8Array&&Ld(Uint8Array),e=>af&&e instanceof af);var af;const sf=Id("HTMLFormElement"),lf=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),cf=Id("RegExp"),uf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ef(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},df="abcdefghijklmnopqrstuvwxyz",ff="0123456789",hf={DIGIT:ff,ALPHA:df,ALPHA_DIGIT:df+df.toUpperCase()+ff};const pf=Id("AsyncFunction"),gf=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],nf.addEventListener("message",(e=>{let{source:t,data:o}=e;t===nf&&o===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),nf.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,zd(nf.postMessage)),mf="undefined"!==typeof queueMicrotask?queueMicrotask.bind(nf):"undefined"!==typeof process&&process.nextTick||gf,vf={isArray:$d,isArrayBuffer:Ud,isBuffer:function(e){return null!==e&&!Dd(e)&&null!==e.constructor&&!Dd(e.constructor)&&zd(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||zd(e.append)&&("formdata"===(t=Md(e))||"object"===t&&zd(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ud(e.buffer),t},isString:Wd,isNumber:Bd,isBoolean:e=>!0===e||!1===e,isObject:Fd,isPlainObject:Hd,isReadableStream:Zd,isRequest:Yd,isResponse:Xd,isHeaders:Jd,isUndefined:Dd,isDate:Vd,isFile:Kd,isBlob:qd,isRegExp:cf,isFunction:zd,isStream:e=>Fd(e)&&zd(e.pipe),isURLSearchParams:Qd,isTypedArray:of,isFileList:Gd,forEach:ef,merge:function e(){const{caseless:t}=rf(this)&&this||{},n={},r=(r,o)=>{const i=t&&tf(n,o)||o;Hd(n[i])&&Hd(r)?n[i]=e(n[i],r):Hd(r)?n[i]=e({},r):$d(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&ef(arguments[o],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return ef(t,((t,r)=>{n&&zd(t)?e[r]=Od(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Ld(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Md,kindOfTest:Id,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if($d(e))return e;let t=e.length;if(!Bd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:sf,hasOwnProperty:lf,hasOwnProp:lf,reduceDescriptors:uf,freezeMethods:e=>{uf(e,((t,n)=>{if(zd(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];zd(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return $d(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:tf,global:nf,isContextDefined:rf,ALPHABET:hf,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hf.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&zd(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Fd(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=$d(e)?[]:{};return ef(e,((e,t)=>{const i=n(e,r+1);!Dd(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:pf,isThenable:e=>e&&(Fd(e)||zd(e))&&zd(e.then)&&zd(e.catch),setImmediate:gf,asap:mf};function yf(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}vf.inherits(yf,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vf.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const bf=yf.prototype,wf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{wf[e]={value:e}})),Object.defineProperties(yf,wf),Object.defineProperty(bf,"isAxiosError",{value:!0}),yf.from=(e,t,n,r,o,i)=>{const a=Object.create(bf);return vf.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),yf.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const xf=yf;function Cf(e){return vf.isPlainObject(e)||vf.isArray(e)}function kf(e){return vf.endsWith(e,"[]")?e.slice(0,-2):e}function Sf(e,t,n){return e?e.concat(t).map((function(e,t){return e=kf(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Ef=vf.toFlatObject(vf,{},null,(function(e){return/^is[A-Z]/.test(e)}));const _f=function(e,t,n){if(!vf.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=vf.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!vf.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&vf.isSpecCompliantForm(t);if(!vf.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(vf.isDate(e))return e.toISOString();if(!s&&vf.isBlob(e))throw new xf("Blob is not supported. Use a Buffer instead.");return vf.isArrayBuffer(e)||vf.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(vf.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(vf.isArray(e)&&function(e){return vf.isArray(e)&&!e.some(Cf)}(e)||(vf.isFileList(e)||vf.endsWith(n,"[]"))&&(s=vf.toArray(e)))return n=kf(n),s.forEach((function(e,r){!vf.isUndefined(e)&&null!==e&&t.append(!0===a?Sf([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Cf(e)||(t.append(Sf(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Ef,{defaultVisitor:c,convertValue:l,isVisitable:Cf});if(!vf.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!vf.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),vf.forEach(n,(function(n,i){!0===(!(vf.isUndefined(n)||null===n)&&o.call(t,n,vf.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function Af(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Tf(e,t){this._pairs=[],e&&_f(e,this,t)}const Rf=Tf.prototype;Rf.append=function(e,t){this._pairs.push([e,t])},Rf.toString=function(e){const t=e?function(t){return e.call(this,t,Af)}:Af;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Of=Tf;function Pf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lf(e,t,n){if(!t)return e;const r=n&&n.encode||Pf,o=n&&n.serialize;let i;if(i=o?o(t,n):vf.isURLSearchParams(t)?t.toString():new Of(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const Mf=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){vf.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Nf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},If={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Of,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},jf="undefined"!==typeof window&&"undefined"!==typeof document,$f=(Df="undefined"!==typeof navigator&&navigator.product,jf&&["ReactNative","NativeScript","NS"].indexOf(Df)<0);var Df;const Uf="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,Wf=jf&&window.location.href||"http://localhost",zf={...e,...If};const Bf=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&vf.isArray(r)?r.length:i,s)return vf.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&vf.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&vf.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(vf.isFormData(e)&&vf.isFunction(e.entries)){const n={};return vf.forEachEntry(e,((e,r)=>{t(function(e){return vf.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const Ff={transitional:Nf,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=vf.isObject(e);o&&vf.isHTMLForm(e)&&(e=new FormData(e));if(vf.isFormData(e))return r?JSON.stringify(Bf(e)):e;if(vf.isArrayBuffer(e)||vf.isBuffer(e)||vf.isStream(e)||vf.isFile(e)||vf.isBlob(e)||vf.isReadableStream(e))return e;if(vf.isArrayBufferView(e))return e.buffer;if(vf.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return _f(e,new zf.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return zf.isNode&&vf.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=vf.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return _f(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(vf.isString(e))try{return(t||JSON.parse)(e),vf.trim(e)}catch(wr){if("SyntaxError"!==wr.name)throw wr}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ff.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(vf.isResponse(e)||vf.isReadableStream(e))return e;if(e&&vf.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(wr){if(n){if("SyntaxError"===wr.name)throw xf.from(wr,xf.ERR_BAD_RESPONSE,this,null,this.response);throw wr}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zf.classes.FormData,Blob:zf.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vf.forEach(["delete","get","head","post","put","patch"],(e=>{Ff.headers[e]={}}));const Hf=Ff,Vf=vf.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kf=Symbol("internals");function qf(e){return e&&String(e).trim().toLowerCase()}function Gf(e){return!1===e||null==e?e:vf.isArray(e)?e.map(Gf):String(e)}function Qf(e,t,n,r,o){return vf.isFunction(r)?r.call(this,t,n):(o&&(t=n),vf.isString(t)?vf.isString(r)?-1!==t.indexOf(r):vf.isRegExp(r)?r.test(t):void 0:void 0)}class Zf{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=qf(t);if(!o)throw new Error("header name must be a non-empty string");const i=vf.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Gf(e))}const i=(e,t)=>vf.forEach(e,((e,n)=>o(e,n,t)));if(vf.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(vf.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Vf[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(vf.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=qf(e)){const n=vf.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(vf.isFunction(t))return t.call(this,e,n);if(vf.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=qf(e)){const n=vf.findKey(this,e);return!(!n||void 0===this[n]||t&&!Qf(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=qf(e)){const o=vf.findKey(n,e);!o||t&&!Qf(0,n[o],o,t)||(delete n[o],r=!0)}}return vf.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Qf(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return vf.forEach(this,((r,o)=>{const i=vf.findKey(n,o);if(i)return t[i]=Gf(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Gf(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return vf.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&vf.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[Kf]=this[Kf]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=qf(e);t[r]||(!function(e,t){const n=vf.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return vf.isArray(e)?e.forEach(r):r(e),this}}Zf.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vf.reduceDescriptors(Zf.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),vf.freezeMethods(Zf);const Yf=Zf;function Xf(e,t){const n=this||Hf,r=t||n,o=Yf.from(r.headers);let i=r.data;return vf.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Jf(e){return!(!e||!e.__CANCEL__)}function eh(e,t,n){xf.call(this,null==e?"canceled":e,xf.ERR_CANCELED,t,n),this.name="CanceledError"}vf.inherits(eh,xf,{__CANCEL__:!0});const th=eh;function nh(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new xf("Request failed with status code "+n.status,[xf.ERR_BAD_REQUEST,xf.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const rh=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const oh=function(e,t){let n,r,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=i?a(l,e):(n=l,r||(r=setTimeout((()=>{r=null,a(n)}),i-t)))},()=>n&&a(n)]},ih=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const o=rh(50,250);return oh((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},ah=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},sh=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return vf.asap((()=>e(...n)))},lh=zf.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=vf.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},ch=zf.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];vf.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),vf.isString(r)&&a.push("path="+r),vf.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function uh(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const dh=e=>e instanceof Yf?{...e}:e;function fh(e,t){t=t||{};const n={};function r(e,t,n){return vf.isPlainObject(e)&&vf.isPlainObject(t)?vf.merge.call({caseless:n},e,t):vf.isPlainObject(t)?vf.merge({},t):vf.isArray(t)?t.slice():t}function o(e,t,n){return vf.isUndefined(t)?vf.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!vf.isUndefined(t))return r(void 0,t)}function a(e,t){return vf.isUndefined(t)?vf.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(dh(e),dh(t),!0)};return vf.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);vf.isUndefined(a)&&i!==s||(n[r]=a)})),n}const hh=e=>{const t=fh({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Yf.from(s),t.url=Lf(uh(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),vf.isFormData(r))if(zf.hasStandardBrowserEnv||zf.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(zf.hasStandardBrowserEnv&&(o&&vf.isFunction(o)&&(o=o(t)),o||!1!==o&&lh(t.url))){const e=i&&a&&ch.read(a);e&&s.set(i,e)}return t},ph="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=hh(e);let o=r.data;const i=Yf.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=r;function p(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=Yf.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());nh((function(e){t(e),p()}),(function(e){n(e),p()}),{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new xf("Request aborted",xf.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new xf("Network Error",xf.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Nf;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new xf(t,o.clarifyTimeoutError?xf.ETIMEDOUT:xf.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&vf.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),vf.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),h&&([l,u]=ih(h,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,c]=ih(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new th(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===zf.protocols.indexOf(v)?n(new xf("Unsupported protocol "+v+":",xf.ERR_BAD_REQUEST,e)):g.send(o||null)}))},gh=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof xf?t:new th(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new xf(`timeout ${t} of ms exceeded`,xf.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},mh=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},vh=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*mh(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},yh="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,bh=yh&&"function"===typeof ReadableStream,wh=yh&&("function"===typeof TextEncoder?(xh=new TextEncoder,e=>xh.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var xh;const Ch=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(wr){return!1}},kh=bh&&Ch((()=>{let e=!1;const t=new Request(zf.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Sh=bh&&Ch((()=>vf.isReadableStream(new Response("").body))),Eh={stream:Sh&&(e=>e.body)};var _h;yh&&(_h=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Eh[e]&&(Eh[e]=vf.isFunction(_h[e])?t=>t[e]():(t,n)=>{throw new xf(`Response type '${e}' is not supported`,xf.ERR_NOT_SUPPORT,n)})})));const Ah=async(e,t)=>{const n=vf.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:vf.isBlob(e)?e.size:vf.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:vf.isArrayBufferView(e)||vf.isArrayBuffer(e)?e.byteLength:(vf.isURLSearchParams(e)&&(e+=""),vf.isString(e)?(await wh(e)).byteLength:void 0))(t):n},Th=yh&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=hh(e);c=c?(c+"").toLowerCase():"text";let h,p,[g,m]=o||i||a?gh([o,i],a):[];const v=()=>{!h&&setTimeout((()=>{g&&g.unsubscribe()})),h=!0};let y;try{if(l&&kh&&"get"!==n&&"head"!==n&&0!==(y=await Ah(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(vf.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=ah(y,ih(sh(l)));r=vh(n.body,65536,e,t,wh)}}vf.isString(d)||(d=d?"include":"omit"),p=new Request(t,{...f,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(p);const i=Sh&&("stream"===c||"response"===c);if(Sh&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=vf.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&ah(t,ih(sh(s),!0))||[];o=new Response(vh(o.body,65536,n,(()=>{r&&r(),i&&v()}),wh),e)}c=c||"text";let a=await Eh[vf.findKey(Eh,c)||"text"](o,e);return!i&&v(),m&&m(),await new Promise(((t,n)=>{nh(t,n,{data:a,headers:Yf.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(b){if(v(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new xf("Network Error",xf.ERR_NETWORK,e,p),{cause:b.cause||b});throw xf.from(b,b&&b.code,e,p)}}),Rh={http:null,xhr:ph,fetch:Th};vf.forEach(Rh,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(wr){}Object.defineProperty(e,"adapterName",{value:t})}}));const Oh=e=>`- ${e}`,Ph=e=>vf.isFunction(e)||null===e||!1===e,Lh=e=>{e=vf.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Ph(n)&&(r=Rh[(t=String(n)).toLowerCase()],void 0===r))throw new xf(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(Oh).join("\n"):" "+Oh(e[0]):"as no adapter specified";throw new xf("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Mh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new th(null,e)}function Nh(e){Mh(e),e.headers=Yf.from(e.headers),e.data=Xf.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Lh(e.adapter||Hf.adapter)(e).then((function(t){return Mh(e),t.data=Xf.call(e,e.transformResponse,t),t.headers=Yf.from(t.headers),t}),(function(t){return Jf(t)||(Mh(e),t&&t.response&&(t.response.data=Xf.call(e,e.transformResponse,t.response),t.response.headers=Yf.from(t.response.headers))),Promise.reject(t)}))}const Ih="1.7.4",jh={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{jh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const $h={};jh.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new xf(r(o," has been removed"+(t?" in "+t:"")),xf.ERR_DEPRECATED);return t&&!$h[o]&&($h[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Dh={assertOptions:function(e,t,n){if("object"!==typeof e)throw new xf("options must be an object",xf.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new xf("option "+i+" must be "+n,xf.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new xf("Unknown option "+i,xf.ERR_BAD_OPTION)}},validators:jh},Uh=Dh.validators;class Wh{constructor(e){this.defaults=e,this.interceptors={request:new Mf,response:new Mf}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(wr){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=fh(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Dh.assertOptions(n,{silentJSONParsing:Uh.transitional(Uh.boolean),forcedJSONParsing:Uh.transitional(Uh.boolean),clarifyTimeoutError:Uh.transitional(Uh.boolean)},!1),null!=r&&(vf.isFunction(r)?t.paramsSerializer={serialize:r}:Dh.assertOptions(r,{encode:Uh.function,serialize:Uh.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&vf.merge(o.common,o[t.method]);o&&vf.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Yf.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Nh.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(h){t.call(this,h);break}}try{c=Nh.call(this,f)}catch(h){return Promise.reject(h)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Lf(uh((e=fh(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}vf.forEach(["delete","get","head","options"],(function(e){Wh.prototype[e]=function(t,n){return this.request(fh(n||{},{method:e,url:t,data:(n||{}).data}))}})),vf.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(fh(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Wh.prototype[e]=t(),Wh.prototype[e+"Form"]=t(!0)}));const zh=Wh;class Bh{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new th(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Bh((function(t){e=t}));return{token:t,cancel:e}}}const Fh=Bh;const Hh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hh).forEach((e=>{let[t,n]=e;Hh[n]=t}));const Vh=Hh;const Kh=function e(t){const n=new zh(t),r=Od(zh.prototype.request,n);return vf.extend(r,zh.prototype,n,{allOwnKeys:!0}),vf.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(fh(t,n))},r}(Hf);Kh.Axios=zh,Kh.CanceledError=th,Kh.CancelToken=Fh,Kh.isCancel=Jf,Kh.VERSION=Ih,Kh.toFormData=_f,Kh.AxiosError=xf,Kh.Cancel=Kh.CanceledError,Kh.all=function(e){return Promise.all(e)},Kh.spread=function(e){return function(t){return e.apply(null,t)}},Kh.isAxiosError=function(e){return vf.isObject(e)&&!0===e.isAxiosError},Kh.mergeConfig=fh,Kh.AxiosHeaders=Yf,Kh.formToJSON=e=>Bf(vf.isHTMLForm(e)?new FormData(e):e),Kh.getAdapter=Lh,Kh.HttpStatusCode=Vh,Kh.default=Kh;const qh=Kh;const Gh=new class{constructor(){this._axios=void 0}init(){this._axios=qh.create({timeout:1e4}),this._axios.interceptors.request.use((e=>(e.url.includes("api/pluto")&&(e.baseURL=B.API_URL,B.TOKEN&&(e.headers.Authorization=`Bearer ${B.TOKEN}`)),e)),(e=>(console.log(e),Promise.reject({code:I.NetConfigError,message:"Net config error"})))),this._axios.interceptors.response.use((e=>e),(e=>(console.log(e.toJSON()),Promise.reject({code:I.NetError,message:e.message}))))}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={};return t&&(n.params=t),this._axios.get(e,n).then((e=>e.data))}post(e,t){return this._axios.post(e,t).then((e=>e.data))}};const Qh=new class{constructor(){this._tonConnect=null,this._tokenJettonWalletAddress={}}get connected(){return this._tonConnect.connected}get rawAddress(){return this._tonConnect.connected?this._tonConnect.wallet.account.address:null}get friendlyAddress(){return this._tonConnect.connected?yt(this._tonConnect.wallet.account.address,!1):null}get chain(){return this._tonConnect.connected?this._tonConnect.wallet.account.chain:null}init(){let e=this._tonConnect=new Rd({manifestUrl:B.MANIFEST_URL});e.setConnectRequestParameters({state:"ready",value:{tonProof:"success"}}),e.connectionRestored.then((e=>{e?(C().publish(A,!0),console.log("tonConnect restored.")):console.log("tonConnect not restored.")}))}connect(){return new Promise(((e,t)=>{if(this.connected)return e(this._tonConnect.account.address);const n=this._tonConnect.onStatusChange((r=>{if(console.log("onStatusChange==>"+JSON.stringify(r)),n(),!r)return t({code:I.WalletError,message:"The wallet info is null"});let o=r.account.address;C().publish(A,!0),e(o)})),r=this._tonConnect.onModalStateChange((e=>{console.log("onModalStateChange==>"+JSON.stringify(e)),"closed"==e.status&&(r(),"wallet-selected"!=e.closeReason&&(n(),t({code:I.WalletError,message:"Wallet connect failed"})))}));this._tonConnect.openModal().then((()=>{console.log("openModal success")})).catch((e=>{n(),r(),t({code:I.WalletError,message:"Open modal error"})}))}))}disconnect(){return new Promise(((e,t)=>{if(!this.connected)return t({code:I.WalletError,message:"Wallet not connected"});this._tonConnect.disconnect().then((()=>{C().publish(A,!1),this._tokenJettonWalletAddress={},e()})).catch((e=>{console.log(e),t({code:I.WalletError,message:"Wallet disconnect error"})}))}))}sendTransaction(e){return console.log(e),new Promise(((t,n)=>{if(!this.connected)return n({code:I.WalletError,message:"Wallet not connected"});const r={validUntil:Math.floor(Date.now()/1e3)+600,messages:[{...e}]};this._tonConnect.sendTransaction(r).then((e=>{console.log("transaction success"),t(e.boc)})).catch((e=>{console.log("transaction error==>"+JSON.stringify(e)),n({code:I.WalletError,message:"Wallet transaction error"})}))}))}getTokenJettonPayInfo(e,t,n,r){return new Promise(((o,i)=>{this.getTokenJettonWalletAddress(e).then((a=>{let s=`${B.PAYLOAD_URL}/${e}/${this.rawAddress}/${r}/${t}/${n}`;Gh.get(s).then((e=>{o({address:a,payload:e.data.payload})})).catch((e=>{console.log(e),i({code:I.TokenUseError,message:"Load token payload error"})}))})).catch((e=>{i(e)}))}))}getTokenJettonWalletAddress(e){return new Promise(((t,n)=>{if(this._tokenJettonWalletAddress[e])return t(this._tokenJettonWalletAddress[e]);let r=B.TOKENS_JETTON_ADDRESS[e];if(!r)return console.log(`token invalid: ${e}`),n({code:I.TokenUseError,message:`${e} invalid`});let o={owner_address:this.rawAddress,jetton_address:r,limit:"1",offset:"0"};Gh.get(B.TON_CENTER_URL,o).then((r=>{var o;let i=null===(o=r.jetton_wallets[0])||void 0===o?void 0:o.address;if(!i)return n({code:I.TokenUseError,message:`Insufficient ${e} assets`});this._tokenJettonWalletAddress[e]=i,t(i)})).catch((e=>{console.log(e),n({code:I.TokenUseError,message:"Load jetton wallet error"})}))}))}};const Zh=new class{constructor(){this._callbackMap={},this._handlerMap={},this.onPlayButtonClicked=(e,t)=>{const n=this._handlerMap.event_playButtonClicked;n&&n.apply(null,[])},this.onPuchaseCompleted=(e,t)=>{const n=this._handlerMap[P];n&&n.apply(null,[t]);const r=this._callbackMap[P];r&&(r.apply(null,[t]),this._callbackMap[P]=null)},this.onCheckInCompleted=(e,t)=>{const n=this._handlerMap[L];n&&n.apply(null,[t]);const r=this._callbackMap[L];r&&(r.apply(null,[t]),this._callbackMap[L]=null)}}init(){C().subscribe(T,this.onPlayButtonClicked),C().subscribe(R,this.onPuchaseCompleted),C().subscribe(O,this.onCheckInCompleted)}registerCallback(e,t){e&&t&&(this._callbackMap[e]=t)}registerHandler(e,t){e&&t&&(this._handlerMap[e]=t)}};class Yh{static showLog(e){B.TEST_MODE&&console.log(e)}static get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=`api/pluto/${e}/${B.GAME_ID}`;return new Promise(((r,o)=>{Gh.get(n,t).then((t=>{if(Yh.showLog(`${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)})).catch((e=>{o(e)}))}))}static post(e,t){const n=`api/pluto/${e}/${B.GAME_ID}`;return new Promise(((r,o)=>{Gh.post(n,t).then((t=>{if(Yh.showLog(`${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)})).catch((e=>{o(e)}))}))}static gameInfo(){const e={botname:B.BOT_NAME,initdata:B.INIT_DATA};return Yh.post("gameinfo",e)}static login(){const e={botname:B.BOT_NAME,initdata:B.INIT_DATA};return Yh.post("login",e)}static priceExchange(e){const t={amount:e};return Yh.post("priceexchange",t)}static order(e,t,n,r,o,i,a){const s={productid:e,productname:t,orderid:n,amount:r,paytype:o,currencycode:i,customdata:a};return Yh.post("order",s)}static getItem(e){const t={k:e};return Yh.post("getuserdata",t)}static setItem(e,t){const n={k:e,v:t};return Yh.post("setuserdata",n)}static finishOrder(e){const t={orderno:e};return Yh.post("finishorder",t)}static unfinishRecord(){return Yh.get("unfinishrecord")}static checkIn(e,t,n){const r={title:e,checkinid:t,customdata:n};return Yh.post("checkin",r)}static checkInVerify(e,t,n,r){const o={checknet:e,wallet:r,checkdata:t,checkinno:n};return Yh.post("checkinverify",o)}}const Xh=new class{constructor(){this._gameInfo=void 0,this._plutoId=void 0,this._firstName=void 0,this._lastName=void 0,this._icon=void 0,this._purchaseData=void 0,this._checkInData=void 0}get gameInfo(){return this._gameInfo}set gameInfo(e){this._gameInfo=e}get plutoId(){return this._plutoId}set plutoId(e){this._plutoId=e}get firstName(){return this._firstName}set firstName(e){this._firstName=e}get lastName(){return this._lastName}set lastName(e){this._lastName=e}get icon(){return this._icon}set icon(e){this._icon=e}get purchaseData(){return this._purchaseData||{}}set purchaseData(e){this._purchaseData=e}get checkInData(){return this._checkInData||{}}set checkInData(e){this._checkInData=e}};const Jh=new class{init(){Telegram.WebApp.expand(),Telegram.WebApp.ready(),Telegram.WebApp.disableVerticalSwipes(),Telegram.WebApp.enableClosingConfirmation()}async reqGameInfo(){for(let t=1;t<=10;t++)try{const e=await Yh.gameInfo();let t={name:e.gamename,describe:e.gamesummary,icon:e.gameicon,appUrl:e.appurl,tags:e.catalog||[]};return Xh.gameInfo=t,Xh.plutoId=e.plutoid,Promise.resolve(t)}catch(e){if(10==t)return Promise.reject({code:I.InitError,message:"Init error"});await new Promise((e=>window.setTimeout(e,500)))}}reqLogin(){return Yh.login().then((e=>{let t=Xh.plutoId=e.plutoid,n=Xh.firstName=e.tgfirstname,r=Xh.lastName=e.tglastname,o=Xh.icon=e.icon,i=e.ticket;return B.TOKEN=e.token,{plutoId:t,firstName:n,lastName:r,icon:o,ticket:i}}))}reqPurchase(e,t,n,r,o){return Yh.priceExchange(r).then((r=>{Xh.purchaseData={name:t,productId:e,orderId:n,usdt:parseFloat(r.usdt),ton:parseFloat(r.ton),not:parseFloat(r.not),star:parseInt(r.star),customData:o}}))}reqOrder(e,t){const{productId:n,name:r,orderId:o,usdt:i,customData:a}=Xh.purchaseData;return Yh.order(n,r,o,i,e,t,a).then((e=>(Xh.purchaseData.orderNo=e.orderNo,{amount:e.amount,orderNo:e.orderNo,payload:e.payload,payLink:e.payLink,address:e.walletAddress})))}async reqFinishOrder(e){for(let n=1;n<=12;n++)try{return await Yh.finishOrder(e),Promise.resolve()}catch(t){if(22==t.code)return Promise.reject(t);if(12==n)return Promise.reject({code:I.OrderConfirming,message:"The order is being confirmed"});await new Promise((e=>window.setTimeout(e,5e3)))}}reqUnfinishRecord(){return Yh.unfinishRecord().then((e=>{let t=[];return(e.records||[]).forEach((e=>{const n={orderNo:e.orderno,orderId:e.orderid,productId:e.productid,name:e.productname,customData:e.customdata};t.push(n)})),t}))}reqCheckIn(e,t,n){return Yh.checkIn(e,t,n).then((r=>{Xh.checkInData={name:e,orderId:t,customData:n,amount:"8000000",orderNo:r.checkinno,payload:r.payload,address:r.address}}))}async reqCheckInVerify(e,t,n,r){for(let i=1;i<=12;i++)try{return await Yh.checkInVerify(e,t,n,r),Promise.resolve()}catch(o){if(12==i)return Promise.reject(o);await new Promise((e=>window.setTimeout(e,5e3)))}}reqGetItem(e){return Yh.getItem(e).then((e=>e.v))}reqSetItem(e,t){return Yh.setItem(e,t).then((e=>{}))}openLink(e){Telegram.WebApp.openLink(e)}openTelegramLink(e){Telegram.WebApp.openTelegramLink(e)}openInvoice(e){return new Promise(((t,n)=>{Telegram.WebApp.openInvoice(e,(e=>{if("paid"==e)return t();n({code:I.OpenInvoiceError,message:"Open invoice error"})}))}))}share(){let e=`https://t.me/share/url?url=${`${Xh.gameInfo.appUrl}?startapp=g_${B.GAME_ID}_${Xh.plutoId}`}&text=${encodeURIComponent(N[B.GAME_ID]||N[1e3])}`;H()?this.openTelegramLink(e):this.openLink(e)}enableClosingConfirmation(){Telegram.WebApp.enableClosingConfirmation()}disableClosingConfirmation(){Telegram.WebApp.disableClosingConfirmation()}vibrate(e){const t={1:"light",2:"medium",3:"heavy"},n={4:"error",5:"success",6:"warning"};t[e]?Telegram.WebApp.HapticFeedback.impactOccurred(t[e]):n[e]&&Telegram.WebApp.HapticFeedback.notificationOccurred(n[e])}};var ep=n(9254),tp=n(8587),np=n(2004),rp=n(116),op=n(505),ip=n(237);const ap=["className","component"];var sp=n(4501),lp=n(7775),cp=n(1763);const up=(0,cp.A)("MuiBox",["root"]),dp=(0,lp.A)(),fp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:a}=e,s=(0,rp.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(op.A),l=i.forwardRef((function(e,i){const l=f(n),c=(0,ip.A)(e),{className:u,component:d="div"}=c,p=(0,tp.A)(c,ap);return(0,h.jsx)(s,(0,o.A)({as:d,ref:i,className:(0,np.A)(u,a?a(r):r),theme:t&&l[t]||l},p))}));return l}({themeId:m.A,defaultTheme:dp,defaultClassName:up.root,generateClassName:sp.A.generate}),hp=fp;class pp extends i.PureComponent{render(){return(0,h.jsxs)(hp,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[(0,h.jsx)(hp,{component:"img",src:F("bg_2.png"),sx:{display:"none"}}),(0,h.jsx)(hp,{component:"img",src:F("button_1.png"),sx:{display:"none"}}),(0,h.jsx)(hp,{component:"img",src:F("button_2.png"),sx:{display:"none"}}),(0,h.jsx)(hp,{component:"img",src:F("button_3.png"),sx:{display:"none"}}),(0,h.jsx)(hp,{component:"img",src:F("cat_ball.png"),sx:{display:"none"}})]})}}function gp(e,t){return gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gp(e,t)}function mp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gp(e,t)}var vp=n(7119);const yp=!1,bp=i.createContext(null);var wp="unmounted",xp="exited",Cp="entering",kp="entered",Sp="exiting",Ep=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=xp,r.appearStatus=Cp):o=kp:o=t.unmountOnExit||t.mountOnEnter?wp:xp,r.state={status:o},r.nextCallback=null,r}mp(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===wp?{status:xp}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Cp&&n!==kp&&(t=Cp):n!==Cp&&n!==kp||(t=Sp)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Cp){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:vp.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xp&&this.setState({status:wp})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[vp.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||yp?this.safeSetState({status:kp},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Cp},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:kp},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:vp.findDOMNode(this);t&&!yp?(this.props.onExit(r),this.safeSetState({status:Sp},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:xp},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:xp},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:vp.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===wp)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,tp.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(bp.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.Component);function _p(){}Ep.contextType=bp,Ep.propTypes={},Ep.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_p,onEntering:_p,onEntered:_p,onExit:_p,onExiting:_p,onExited:_p},Ep.UNMOUNTED=wp,Ep.EXITED=xp,Ep.ENTERING=Cp,Ep.ENTERED=kp,Ep.EXITING=Sp;const Ap=Ep;var Tp=n(1380),Rp=n(4326);function Op(){const e=f(g.A);return e[m.A]||e}const Pp=e=>e.scrollTop;function Lp(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:a.transitionDelay}}var Mp=n(1733);const Np=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ip(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=(0,Mp.A)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=i.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"===typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"===typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const jp=i.forwardRef((function(e,t){const n=Op(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,container:u,direction:d="down",easing:f=r,in:p,onEnter:g,onEntered:m,onEntering:v,onExit:y,onExited:b,onExiting:w,style:x,timeout:C=a,TransitionComponent:k=Ap}=e,S=(0,tp.A)(e,Np),E=i.useRef(null),_=(0,Rp.A)(c.ref,E,t),A=e=>t=>{e&&(void 0===t?e(E.current):e(E.current,t))},T=A(((e,t)=>{Ip(d,e,u),Pp(e),g&&g(e,t)})),R=A(((e,t)=>{const r=Lp({timeout:C,style:x,easing:f},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,o.A)({},r)),e.style.transition=n.transitions.create("transform",(0,o.A)({},r)),e.style.webkitTransform="none",e.style.transform="none",v&&v(e,t)})),O=A(m),P=A(w),L=A((e=>{const t=Lp({timeout:C,style:x,easing:f},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),Ip(d,e,u),y&&y(e)})),M=A((e=>{e.style.webkitTransition="",e.style.transition="",b&&b(e)})),N=i.useCallback((()=>{E.current&&Ip(d,E.current,u)}),[d,u]);return i.useEffect((()=>{if(p||"down"===d||"right"===d)return;const e=(0,Tp.A)((()=>{E.current&&Ip(d,E.current,u)})),t=(0,Mp.A)(E.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[d,p,u]),i.useEffect((()=>{p||N()}),[p,N]),(0,h.jsx)(k,(0,o.A)({nodeRef:E,onEnter:T,onEntered:O,onEntering:R,onExit:L,onExited:M,onExiting:P,addEndListener:e=>{s&&s(E.current,e)},appear:l,in:p,timeout:C},S,{children:(e,t)=>i.cloneElement(c,(0,o.A)({ref:_,style:(0,o.A)({visibility:"exited"!==e||p?void 0:"hidden"},x,c.props.style)},t))}))})),$p=jp;class Dp extends i.PureComponent{render(){return(0,h.jsx)(hp,{sx:{width:1,height:1,position:"absolute",borderWidth:40,borderStyle:"solid",borderImage:`url(${F("bg_2.png")})`,borderImageRepeat:"repeat",borderImageSlice:"40 fill"}})}}const Up=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Wp={entering:{opacity:1},entered:{opacity:1}},zp=i.forwardRef((function(e,t){const n=Op(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:m,onExiting:v,style:y,timeout:b=r,TransitionComponent:w=Ap}=e,x=(0,tp.A)(e,Up),C=i.useRef(null),k=(0,Rp.A)(C,l.ref,t),S=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},E=S(p),_=S(((e,t)=>{Pp(e);const r=Lp({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),d&&d(e,t)})),A=S(f),T=S(v),R=S((e=>{const t=Lp({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),O=S(m);return(0,h.jsx)(w,(0,o.A)({appear:s,in:u,nodeRef:C,onEnter:_,onEntered:A,onEntering:E,onExit:R,onExited:O,onExiting:T,addEndListener:e=>{a&&a(C.current,e)},timeout:b},x,{children:(e,t)=>i.cloneElement(l,(0,o.A)({style:(0,o.A)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Wp[e],y,l.props.style),ref:k},t))}))})),Bp=zp,Fp={0:{x:0,y:0},1:{x:-222,y:0},2:{x:-444,y:0},3:{x:-666,y:0},4:{x:-888,y:0},5:{x:0,y:-119},6:{x:-222,y:-119},7:{x:-444,y:-119},8:{x:-666,y:-119},9:{x:-888,y:-119},10:{x:0,y:-238},11:{x:-222,y:-238},12:{x:-444,y:-238},13:{x:-666,y:-238},14:{x:-888,y:-238},15:{x:0,y:-357},16:{x:-222,y:-357},17:{x:-444,y:-357},18:{x:-666,y:-357},19:{x:-888,y:-357},20:{x:0,y:-476},21:{x:0,y:-595},22:{x:0,y:-714},23:{x:0,y:-833},24:{x:-222,y:-476},25:{x:-444,y:-476},26:{x:-666,y:-476},27:{x:-888,y:-476},28:{x:-222,y:-595},29:{x:-222,y:-714},30:{x:-222,y:-833},31:{x:-444,y:-595},32:{x:-666,y:-595},33:{x:-888,y:-595},34:{x:-444,y:-714},35:{x:-444,y:-833},36:{x:-666,y:-714},37:{x:-888,y:-714},38:{x:-666,y:-833},39:{x:-888,y:-833}};class Hp extends i.PureComponent{constructor(){super(...arguments),this._aniUrl=`${F("cat_ball.png")}`,this.state={resLoaded:!1},this.formatFrames=()=>{let e=Object.keys(Fp).length,t={},n=1/e*100;for(let r=0;r<e;r++){let e=Fp[r]||{x:0,y:0};t[r*n+"%"]={backgroundPosition:`${e.x}px ${e.y}px`}}return t}}componentDidMount(){let e=new Image;e.src=this._aniUrl,e.onload=()=>{this.setState({resLoaded:!0})},e.onerror=()=>{console.log("image onerror")}}render(){const{resLoaded:e}=this.state;return e?(0,h.jsx)(hp,{sx:{marginLeft:8,height:118},children:(0,h.jsx)(hp,{sx:{width:221,height:118,backgroundImage:`url(${this._aniUrl})`,display:"inline-block",animation:"cat_ball 3.2s step-end infinite","@keyframes cat_ball":this.formatFrames()}})}):(0,h.jsx)(hp,{sx:{marginLeft:8,height:118}})}}class Vp extends i.PureComponent{render(){return(0,h.jsx)(Bp,{in:!0,timeout:{enter:1e3},children:(0,h.jsxs)(hp,{sx:{width:1,top:"6%","@media (max-height: 570px)":{top:"2%"},"@media (orientation: landscape)":{display:"none"},textAlign:"center",position:"absolute"},children:[(0,h.jsx)(Hp,{}),(0,h.jsx)(hp,{sx:{fontSize:24,fontWeight:"bold",color:"#764428"},children:"Catizen"}),(0,h.jsx)(hp,{sx:{m:"0 auto",width:360,textAlign:"center",wordWrap:"break-word",fontSize:18,fontWeight:"bold",color:"#bc805e"},children:"Catizen's Games:Play, Earn, Airdrop!"})]})})}}var Kp=n(5447),qp=n(423),Gp=n(8465),Qp=n(7483);const Zp=["ownerState"],Yp=["variants"],Xp=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Jp(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const eg=(0,l.A)(),tg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ng(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function rg(e){return e?(t,n)=>n[e]:null}function og(e,t){let{ownerState:n}=t,r=(0,tp.A)(t,Zp);const i="function"===typeof e?e((0,o.A)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>og(e,(0,o.A)({ownerState:n},r))));if(i&&"object"===typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,tp.A)(i,Yp);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,o.A)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.A)({ownerState:n},r,n)):e.style))})),t}return i}const ig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=eg,rootShouldForwardProp:r=Jp,slotShouldForwardProp:i=Jp}=e,a=e=>(0,op.A)((0,o.A)({},e,{theme:ng((0,o.A)({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,rp.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=rg(tg(c))}=s,h=(0,tp.A)(s,Xp),p=void 0!==u?u:c&&"Root"!==c&&"root"!==c||!1,g=d||!1;let m=Jp;"Root"===c||"root"===c?m=r:c?m=i:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=(0,rp.default)(e,(0,o.A)({shouldForwardProp:m,label:undefined},h)),y=e=>"function"===typeof e&&e.__emotion_real!==e||(0,Qp.Q)(e)?r=>og(e,(0,o.A)({},r,{theme:ng({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=function(r){let i=y(r);for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];const d=c?c.map(y):[];l&&f&&d.push((e=>{const r=ng((0,o.A)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const i=r.components[l].styleOverrides,a={};return Object.entries(i).forEach((t=>{let[n,i]=t;a[n]=og(i,(0,o.A)({},e,{theme:r}))})),f(e,a)})),l&&!p&&d.push((e=>{var r;const i=ng((0,o.A)({},e,{defaultTheme:n,themeId:t}));return og({variants:null==i||null==(r=i.components)||null==(r=r[l])?void 0:r.variants},(0,o.A)({},e,{theme:i}))})),g||d.push(a);const h=d.length-c.length;if(Array.isArray(r)&&h>0){const e=new Array(h).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const m=v(i,...d);return e.muiName&&(m.muiName=e.muiName),m};return v.withConfig&&(b.withConfig=v.withConfig),b}}(),ag=ig;var sg=n(5537);function lg(e){let{props:t,name:n,defaultTheme:r,themeId:o}=e,i=f(r);o&&(i=i[o]||i);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,sg.A)(t.components[n].defaultProps,r):r}({theme:i,name:n,props:t});return a}const cg=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"===typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,i=Object.keys(t),o.filter((e=>i.includes(e))))).forEach((o=>{if(-1!==e.keys.indexOf(o)){const i=t[o];void 0!==i&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),i)}}))}else"number"!==typeof t&&"string"!==typeof t||n(((e,t)=>{Object.assign(e,t)}),t);var o,i};function ug(e){return e?`Level${e}`:""}function dg(e){return e.unstable_level>0&&e.container}function fg(e){return function(t){return`var(--Grid-${t}Spacing${ug(e.unstable_level)})`}}function hg(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${ug(e.unstable_level-1)})`}}function pg(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${ug(e.unstable_level-1)})`}const gg=e=>{let{theme:t,ownerState:n}=e;const r=fg(n),o={};return cg(t.breakpoints,n.gridSize,((e,t)=>{let i={};!0===t&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"===typeof t&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / ${pg(n)}${dg(n)?` + ${r("column")}`:""})`}),e(o,i)})),o},mg=e=>{let{theme:t,ownerState:n}=e;const r={};return cg(t.breakpoints,n.gridOffset,((e,t)=>{let o={};"auto"===t&&(o={marginLeft:"auto"}),"number"===typeof t&&(o={marginLeft:0===t?"0px":`calc(100% * ${t} / ${pg(n)})`}),e(r,o)})),r},vg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r=dg(n)?{[`--Grid-columns${ug(n.unstable_level)}`]:pg(n)}:{"--Grid-columns":12};return cg(t.breakpoints,n.columns,((e,t)=>{e(r,{[`--Grid-columns${ug(n.unstable_level)}`]:t})})),r},yg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r=hg(n),o=dg(n)?{[`--Grid-rowSpacing${ug(n.unstable_level)}`]:r("row")}:{};return cg(t.breakpoints,n.rowSpacing,((e,r)=>{var i;e(o,{[`--Grid-rowSpacing${ug(n.unstable_level)}`]:"string"===typeof r?r:null==(i=t.spacing)?void 0:i.call(t,r)})})),o},bg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r=hg(n),o=dg(n)?{[`--Grid-columnSpacing${ug(n.unstable_level)}`]:r("column")}:{};return cg(t.breakpoints,n.columnSpacing,((e,r)=>{var i;e(o,{[`--Grid-columnSpacing${ug(n.unstable_level)}`]:"string"===typeof r?r:null==(i=t.spacing)?void 0:i.call(t,r)})})),o},wg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r={};return cg(t.breakpoints,n.direction,((e,t)=>{e(r,{flexDirection:t})})),r},xg=e=>{let{ownerState:t}=e;const n=fg(t),r=hg(t);return(0,o.A)({minWidth:0,boxSizing:"border-box"},t.container&&(0,o.A)({display:"flex",flexWrap:"wrap"},t.wrap&&"wrap"!==t.wrap&&{flexWrap:t.wrap},{margin:`calc(${n("row")} / -2) calc(${n("column")} / -2)`},t.disableEqualOverflow&&{margin:`calc(${n("row")} * -1) 0px 0px calc(${n("column")} * -1)`}),(!t.container||dg(t))&&(0,o.A)({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(t.disableEqualOverflow||t.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},Cg=e=>{const t=[];return Object.entries(e).forEach((e=>{let[n,r]=e;!1!==r&&void 0!==r&&t.push(`grid-${n}-${String(r)}`)})),t},kg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"xs";function n(e){return void 0!==e&&("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"===typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((e=>{let[r,o]=e;n(o)&&t.push(`spacing-${r}-${String(o)}`)})),t}return[]},Sg=e=>void 0===e?[]:"object"===typeof e?Object.entries(e).map((e=>{let[t,n]=e;return`direction-${t}-${n}`})):[`direction-xs-${String(e)}`],Eg=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],_g=(0,l.A)(),Ag=ag("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Tg(e){return lg({props:e,name:"MuiGrid",defaultTheme:_g})}const Rg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=Ag,useThemeProps:n=Tg,componentName:r="MuiGrid"}=e,a=i.createContext(void 0),s=t(vg,bg,yg,gg,wg,xg,mg),l=i.forwardRef((function(e,t){var l,c,u,d,p,g,m,v;const y=f(),b=n(e),w=(0,ip.A)(b),x=i.useContext(a),{className:C,children:k,columns:S=12,container:E=!1,component:_="div",direction:A="row",wrap:T="wrap",spacing:R=0,rowSpacing:O=R,columnSpacing:P=R,disableEqualOverflow:L,unstable_level:M=0}=w,N=(0,tp.A)(w,Eg);let I=L;M&&void 0!==L&&(I=e.disableEqualOverflow);const j={},$={},D={};Object.entries(N).forEach((e=>{let[t,n]=e;void 0!==y.breakpoints.values[t]?j[t]=n:void 0!==y.breakpoints.values[t.replace("Offset","")]?$[t.replace("Offset","")]=n:D[t]=n}));const U=null!=(l=e.columns)?l:M?void 0:S,W=null!=(c=e.spacing)?c:M?void 0:R,z=null!=(u=null!=(d=e.rowSpacing)?d:e.spacing)?u:M?void 0:O,B=null!=(p=null!=(g=e.columnSpacing)?g:e.spacing)?p:M?void 0:P,F=(0,o.A)({},w,{level:M,columns:U,container:E,direction:A,wrap:T,spacing:W,rowSpacing:z,columnSpacing:B,gridSize:j,gridOffset:$,disableEqualOverflow:null!=(m=null!=(v=I)?v:x)&&m,parentDisableEqualOverflow:x}),H=((e,t)=>{const{container:n,direction:o,spacing:i,wrap:a,gridSize:s}=e,l={root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,...Sg(o),...Cg(s),...n?kg(i,t.breakpoints.keys[0]):[]]};return(0,Gp.A)(l,(e=>(0,qp.Ay)(r,e)),{})})(F,y);let V=(0,h.jsx)(s,(0,o.A)({ref:t,as:_,ownerState:F,className:(0,np.A)(H.root,C)},D,{children:i.Children.map(k,(e=>{var t;return i.isValidElement(e)&&(0,Kp.A)(e,["Grid"])?i.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:M+1}):e}))}));return void 0!==I&&I!==(null!=x&&x)&&(V=(0,h.jsx)(a.Provider,{value:I,children:V})),V}));return l.muiName="Grid",l}({createStyledComponent:(0,ep.Ay)("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>(0,a.b)({props:e,name:"MuiGrid2"})}),Og=Rg;class Pg extends i.PureComponent{render(){const{tagId:e}=this.props,{bgColor:t,borderColor:n,textColor:r,text:o,icon:i,iconWidth:a,iconHeight:s}=M[e]||M[1];return console.log(a),(0,h.jsxs)(hp,{sx:{display:"flex",alignItems:"center",width:"fit-content",height:24,position:"relative",bgcolor:t,borderRadius:1,border:1,borderColor:n},children:[(0,h.jsx)(hp,{component:"img",src:`${F(i)}`,sx:{width:a,height:s,position:"relative",ml:.5}}),(0,h.jsx)(hp,{sx:{position:"relative",display:"inline-block",fontSize:16,fontWeight:"bold",color:r,mx:.5},children:o})]})}}class Lg extends i.PureComponent{render(){const{icon:e,name:t,describe:n,tags:r}=Xh.gameInfo;return(0,h.jsxs)(hp,{sx:{pb:2},children:[(0,h.jsxs)(hp,{sx:{display:"flex",alignItems:"center",pt:2},children:[(0,h.jsx)(hp,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),(0,h.jsxs)(hp,{children:[(0,h.jsx)(hp,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#7c4b30",textAlign:"left"},children:t}),(0,h.jsx)(Og,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map(((e,t)=>(0,h.jsx)(Og,{children:(0,h.jsx)(Pg,{tagId:e})},t)))})]})]}),(0,h.jsx)(hp,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#ca996e",textAlign:"left",wordWrap:"break-word"},children:n})]})}}var Mg=n(9269),Ng=n(741),Ig=n(5018),jg=n(2937);function $g(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function Dg(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ug(e,t,n){var r=$g(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:Dg(s,"exit",e),enter:Dg(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:Dg(s,"exit",e),enter:Dg(s,"enter",e)})}})),o}var Wg=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},zg=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}mp(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,$g(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:Dg(e,"appear",n),enter:Dg(e,"enter",n),exit:Dg(e,"exit",n)})}))):Ug(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=$g(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,o.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,tp.A)(e,["component","childFactory"]),o=this.state.contextValue,a=Wg(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(bp.Provider,{value:o},a):i.createElement(bp.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);zg.propTypes={},zg.defaultProps={component:"div",childFactory:function(e){return e}};const Bg=zg;var Fg=n(8283),Hg=n(1824);const Vg=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=i.useState(!1),p=(0,np.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+o},m=(0,np.A)(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||f(!0),i.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,h.jsx)("span",{className:p,style:g,children:(0,h.jsx)("span",{className:m})})};const Kg=(0,cp.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qg=["center","classes","className"];let Gg,Qg,Zg,Yg,Xg=e=>e;const Jg=(0,Fg.i7)(Gg||(Gg=Xg`
|
|
1028
|
+
`,dd=e=>{const t=wi(e),n=bn(Ys),[r,o]=sn(!0),[i,a]=sn(!1);let s,l;un((()=>{const e=Co();a(!!e&&"sent"in e&&e.sent)})),(null==n?void 0:n.wallet)&&"universalLink"in n.wallet&&("universal-link"===n.wallet.openMethod||Oe(n.wallet.universalLink)&&oi())&&(s=n.wallet.universalLink),(null==n?void 0:n.wallet)&&"deepLink"in n.wallet&&("custom-deeplink"===n.wallet.openMethod||Oe(n.wallet.deepLink)&&oi())&&(l=n.wallet.deepLink);const c=()=>{const e=Co(),t="returnStrategy"in e?e.returnStrategy:wc.returnStrategy,n=!r();o(!1),Oe(s)?Jc(s,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:wc.twaReturnUrl,forceRedirect:n}):eu(s,l,{returnStrategy:t,forceRedirect:n},(()=>{}))};return Un(id,Fn(t,{get children(){return[dn((()=>e.icon)),Un(ad,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),Un(sd,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),Un(Kn,{get when(){return!i()&&("open-wallet"===e.showButton&&s||"open-wallet"!==e.showButton)},get children(){return Un(ld,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Un(cd,{})}})}}),Un(Kn,{get when(){return i()},get children(){return[Un(Kn,{get when(){return"open-wallet"!==e.showButton},get children(){return Un(ud,{onClick:()=>e.onClose(),get children(){return Un(Yc,{translationKey:"common.close",children:"Close"})}})}}),Un(Kn,{get when(){return"open-wallet"===e.showButton&&s},get children(){return Un(ud,{onClick:c,get children(){return Un(Yc,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},fd=e=>{const t=bn(Ys),[n]=ba();return Un(dd,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return Un(ts,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},hd=e=>Un(dd,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return Un(Ya,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),pd=e=>Un(dd,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return Un(qa,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),gd=()=>Un(Zi,{get opened(){var e;return dn((()=>null!==Co()))()&&!0===(null==(e=Co())?void 0:e.openModal)},get enableAndroidBackHandler(){return wc.enableAndroidBackHandler},onClose:()=>ko(null),"data-tc-actions-modal-container":"true",get children(){return Un(qn,{get children(){return[Un(Gn,{get when(){return"transaction-sent"===Co().name},get children(){return Un(pd,{onClose:()=>ko(null)})}}),Un(Gn,{get when(){return"transaction-canceled"===Co().name},get children(){return Un(hd,{onClose:()=>ko(null)})}}),Un(Gn,{get when(){return"confirm-transaction"===Co().name},get children(){return Un(fd,{onClose:()=>ko(null)})}})]}})}}),md=()=>{const{locale:e}=ba()[1];un((()=>e(wc.language))),un((()=>{mo()&&qs()}));const t=bn(Ao),n=bn(Ys),[r,o]=sn(!1),i=()=>{var e;return"loading"===(null==(e=wc.connectRequestParameters)?void 0:e.state)},a=dn((()=>{var e;if(!i())return null==(e=wc.connectRequestParameters)?void 0:e.value})),s=e=>{n.closeSingleWalletModal(e)};return mn(t.onStatusChange((e=>{e&&s("wallet-selected")}))),mn((()=>{o(!1)})),Un(vc,{get opened(){return mo()},get enableAndroidBackHandler(){return wc.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o((e=>!e)),"data-tc-wallets-modal-container":"true",get children(){return[Un(Kn,{get when(){return r()},get children(){return Un(fu,{onBackClick:()=>o(!1)})}}),Un(Kn,{get when(){return!r()},get children(){return[Un(Kn,{get when(){return i()},get children(){return[Un(yc,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Un(bc,{get children(){return Un(ts,{size:"m"})}})]}}),Un(Kn,{get when(){return!i()},get children(){return Un(wr,{get component(){return Vs()?Tu:nu},get wallet(){return vo()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},vd=e=>{const t=va(Eo,wc.language);return customElements.define(Wr,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),Un(ya.Provider,{value:t,get children(){return Un(Ys.Provider,{get value(){return e.tonConnectUI},get children(){return Un(Ao.Provider,{get value(){return wc.connector},get children(){return[Un(Fr,{}),Un(Ir,{theme:qo,get children(){return[Un(Kn,{get when(){return wc.buttonRootId},get children(){return Un(br,{get mount(){return document.getElementById(wc.buttonRootId)},get children(){return Un(mc,{})}})}}),Un(wr,{component:Wr,get children(){return[Un(od,{}),Un(md,{}),Un(gd,{})]}})]}})]}})}})}})},yd=()=>{setTimeout((()=>fo({status:"opened",closeReason:null})))},bd=e=>{setTimeout((()=>fo({status:"closed",closeReason:e})))},wd=e=>{setTimeout((()=>go({status:"opened",closeReason:null,walletInfo:e})))},xd=e=>{setTimeout((()=>go({status:"closed",closeReason:e})))},Cd=e=>{setTimeout((()=>ko(e)))},kd=()=>{setTimeout((()=>ko(null)))},Sd=()=>bo(),Ed=()=>xo(null),_d=(e,t)=>function(e,t,n){let r;return an((o=>{r=o,t===document?e():lr(t,e(),t.firstChild?null:void 0,n)}),(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).owner),()=>{r(),t.textContent=""}}((()=>Un(vd,{tonConnectUI:t})),document.getElementById(e));class Ad{constructor(e){Bt(this,"connector"),Bt(this,"setConnectRequestParametersCallback"),Bt(this,"consumers",[]),Bt(this,"tracker"),Bt(this,"state",uo()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,un((()=>{const e=uo();this.state=e,this.consumers.forEach((t=>t(e)))}))}open(){return Ft(this,null,(function*(){this.tracker.trackConnectionStarted();const e=(yield this.connector.getWallets()).find(Ye);return e?this.connectEmbeddedWallet(e):this.openWalletsModal()}))}close(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"action-cancelled";"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),bd(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}connectEmbeddedWallet(e){const t=t=>{xo(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=wc.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openWalletsModal(){return Ft(this,null,(function*(){return oi()&&ai(),yd(),new Promise((e=>{const t=this.onStateChange((n=>{const{status:r}=n;"opened"===r&&(t(),e())}))}))}))}}class Td{constructor(e){Bt(this,"connector"),Bt(this,"consumers",[]),this.connector=e.connector,un((()=>{const e=Co();this.consumers.forEach((t=>t(e)))}))}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}}class Rd{constructor(e){Bt(this,"connector"),Bt(this,"setConnectRequestParametersCallback"),Bt(this,"consumers",[]),Bt(this,"tracker"),Bt(this,"state",po()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,un((()=>{const e=po();this.state=e,this.consumers.forEach((t=>t(e)))}))}open(e){return Ft(this,null,(function*(){this.tracker.trackConnectionStarted();const t=kc(yield this.connector.getWallets(),wc.walletsListConfiguration),n=t.find(Ye);if(!!n)return this.connectEmbeddedWallet(n);const r=t.filter(Xe).find((t=>Ac(t,e)));if(!!r)return this.openSingleWalletModal(r);const o=`Trying to open modal window with unknown wallet "${e}".`;throw this.tracker.trackConnectionError(o),new Gr(o)}))}close(){"action-cancelled"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"action-cancelled")&&this.tracker.trackConnectionError("Connection was cancelled"),xd("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}connectEmbeddedWallet(e){const t=t=>{xo(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=wc.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openSingleWalletModal(e){return Ft(this,null,(function*(){return oi()&&ai(),wd(e),new Promise((e=>{const t=this.onStateChange((n=>{const{status:r}=n;"opened"===r&&(t(),e())}))}))}))}}class Od{constructor(e){var t;Bt(this,"eventPrefix","ton-connect-ui-"),Bt(this,"tonConnectUiVersion"),Bt(this,"tonConnectSdkVersion",null),Bt(this,"eventDispatcher"),this.eventDispatcher=null!=(t=null==e?void 0:e.eventDispatcher)?t:new vt,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return ot({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Ft(this,null,(function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(Vv){}}))}setRequestVersionHandler(){return Ft(this,null,(function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",(()=>Ft(this,null,(function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",rt(this.tonConnectUiVersion))}))))}))}requestTonConnectSdkVersion(){return Ft(this,null,(function*(){return new Promise(((e,t)=>Ft(this,null,(function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",(t=>{e(t.detail.version)}),{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",{type:"request-version"})}catch(Vv){t(Vv)}}))))}))}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(Vv){}}trackConnectionStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=at(this.version,...t);this.dispatchUserActionEvent(r)}catch(Vv){}}trackConnectionCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=st(this.version,...t);this.dispatchUserActionEvent(r)}catch(Vv){}}trackConnectionError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=lt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Vv){}}trackConnectionRestoringStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ct(this.version,...t);this.dispatchUserActionEvent(r)}catch(Vv){}}trackConnectionRestoringCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ut(this.version,...t);this.dispatchUserActionEvent(r)}catch(Vv){}}trackConnectionRestoringError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=dt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Vv){}}trackDisconnection(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=mt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Vv){}}trackTransactionSentForSignature(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ht(this.version,...t);this.dispatchUserActionEvent(r)}catch(Vv){}}trackTransactionSigned(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=pt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Vv){}}trackTransactionSigningFailed(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=gt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Vv){}}}class Pd{constructor(e){if(Bt(this,"walletInfoStorage",new so),Bt(this,"preferredWalletStorage",new lo),Bt(this,"tracker"),Bt(this,"walletInfo",null),Bt(this,"systemThemeChangeUnsubscribe",null),Bt(this,"actionsConfiguration"),Bt(this,"walletsList"),Bt(this,"connectRequestParametersCallback"),Bt(this,"connector"),Bt(this,"modal"),Bt(this,"singleWalletModal"),Bt(this,"transactionModal"),Bt(this,"connectionRestored",Promise.resolve(!1)),e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new Gr("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new bt({manifestUrl:e.manifestUrl,eventDispatcher:null==e?void 0:e.eventDispatcher})}this.tracker=new Od({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectUiVersion:"2.0.9"}),this.modal=new Ad({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new Rd({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new Td({connector:this.connector}),this.walletsList=this.getWallets(),this.walletsList.then((e=>{return eo((t=e.map((e=>e.imageUrl)),[...new Set(t)]));var t}));const t=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return Ft(this,null,(function*(){return yield new Promise((e=>requestAnimationFrame(e))),e()}))}((()=>Ft(this,null,(function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))))),this.uiOptions=Ko(e,{uiPreferences:{theme:"SYSTEM"}});const n=this.preferredWalletStorage.getPreferredWalletAppName();xc({connector:this.connector,preferredWalletAppName:n}),_d(t,this)}static getWallets(){return bt.getWallets()}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?Wt(Wt({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,n,r,o,i,a,s;this.checkButtonRootExist(e.buttonRootId),this.actionsConfiguration=e.actionsConfiguration,(null==(t=e.uiPreferences)?void 0:t.theme)?"SYSTEM"!==(null==(n=e.uiPreferences)?void 0:n.theme)?(null==(r=this.systemThemeChangeUnsubscribe)||r.call(this),Yo(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(Yo(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?xr.LIGHT:xr.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?xr.DARK:xr.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(Yo))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(a=e.uiPreferences.colorsSet,Zo[xr.DARK]=Ko(a[xr.DARK],Zo[xr.DARK]),Zo[xr.LIGHT]=Ko(a[xr.LIGHT],Zo[xr.LIGHT]),Go((e=>({colors:Ko(Zo[e.theme],Qo[e.theme])})))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(s=e.uiPreferences.borderRadius,Go({borderRadius:s})),xc((t=>{var n,r;const o=Ko(Wt(Wt(Wt(Wt({},e.language&&{language:e.language}),!!(null==(n=e.actionsConfiguration)?void 0:n.returnStrategy)&&{returnStrategy:e.actionsConfiguration.returnStrategy}),!!(null==(r=e.actionsConfiguration)?void 0:r.twaReturnUrl)&&{twaReturnUrl:e.actionsConfiguration.twaReturnUrl}),!!e.walletsListConfiguration&&{walletsListConfiguration:e.walletsListConfiguration}),Mo(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o}))}setConnectRequestParameters(e){var t;xc({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}getWallets(){return Ft(this,null,(function*(){return this.connector.getWallets()}))}onStatusChange(e,t){return this.connector.onStatusChange((t=>Ft(this,null,(function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(Wt(Wt({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}))),t)}openModal(){return Ft(this,null,(function*(){return this.modal.open()}))}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return Ft(this,null,(function*(){return this.singleWalletModal.open(e)}))}closeSingleWalletModal(e){this.singleWalletModal.close(e)}onSingleWalletModalStateChange(e){return this.singleWalletModal.onStateChange(e)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return Ft(this,null,(function*(){const e=(yield this.getWallets()).find(Ye);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()}))}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),kd(),Ed(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return Ft(this,null,(function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new Gr("Connect wallet to send a transaction.");oi()&&ai();const{notifications:n,modals:r,returnStrategy:o,twaReturnUrl:i,skipRedirectToWallet:a}=this.getModalsAndNotificationsConfiguration(t);Cd({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!1});const s=()=>{l.signal.aborted||(Cd({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!0}),this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)&&(Oe(this.walletInfo.universalLink)?Jc(this.walletInfo.universalLink,{returnStrategy:o,twaReturnUrl:i||wc.twaReturnUrl,forceRedirect:!1}):eu(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:o,forceRedirect:!1},(()=>{}))))},l=new AbortController,c=this.onTransactionModalStateChange((e=>{(null==e?void 0:e.openModal)||(c(),e||l.abort())}));try{const t=yield this.waitForSendTransaction({transaction:e,signal:l.signal},s);return this.tracker.trackTransactionSigned(this.wallet,e,t),Cd({name:"transaction-sent",showNotification:n.includes("success"),openModal:r.includes("success")}),t}catch(Vv){throw Cd({name:"transaction-canceled",showNotification:n.includes("error"),openModal:r.includes("error")}),Vv instanceof ce?Vv:(console.error(Vv),new Gr("Unhandled error:"+Vv))}finally{c()}}))}connectEmbeddedWallet(e){return Ft(this,null,(function*(){const t=t=>{xo(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=wc.connectRequestParameters;return"loading"===(null==n?void 0:n.state)?this.connectRequestParametersCallback=t:t(null==n?void 0:n.value),yield this.waitForWalletConnection({ignoreErrors:!1})}))}connectExternalWallet(){return Ft(this,null,(function*(){const e=new AbortController;yd();const t=this.onModalStateChange((n=>{const{status:r,closeReason:o}=n;"opened"!==r&&(t(),"action-cancelled"===o&&e.abort())}));return yield this.waitForWalletConnection({ignoreErrors:!0,signal:e.signal})}))}waitForWalletConnection(e){return Ft(this,null,(function*(){return new Promise(((t,n)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:r=!1,signal:o=null}=e;if(o&&o.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),n(new Gr("Wallet was not connected"));const i=e=>Ft(this,null,(function*(){if(e)this.tracker.trackConnectionCompleted(e),s(),t(e);else{if(this.tracker.trackConnectionError("Connection was cancelled"),r)return;s(),n(new Gr("Wallet was not connected"))}})),a=e=>{this.tracker.trackConnectionError(e.message),r||(s(),n(e))},s=this.onStatusChange((e=>i(e)),(e=>a(e)));o&&o.addEventListener("abort",(()=>{s(),n(new Gr("Wallet was not connected"))}),{once:!0})}))}))}waitForSendTransaction(e,t){return Ft(this,null,(function*(){return new Promise(((n,r)=>{const{transaction:o,signal:i}=e;if(i.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Gr("Transaction was not sent"));const a=e=>Ft(this,null,(function*(){n(e)})),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Gr("Transaction was not sent"))};i.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(o,{onRequestSent:t,signal:i}).then((e=>(i.removeEventListener("abort",s),a(e)))).catch((e=>(i.removeEventListener("abort",s),(e=>{r(e)})(e))))}))}))}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange((e=>Ft(this,null,(function*(){var t;e?(yield this.updateWalletInfo(e),this.setPreferredWalletAppName((null==(t=this.walletInfo)?void 0:t.appName)||e.device.appName)):this.walletInfoStorage.removeWalletInfo()}))))}setPreferredWalletAppName(e){this.preferredWalletStorage.setPreferredWalletAppName(e),xc({preferredWalletAppName:e})}getSelectedWalletInfo(e){return Ft(this,null,(function*(){let t,n=Sd();if(!n)return null;if("name"in n)t=n;else{const r=kc(yield this.walletsList,wc.walletsListConfiguration).find((t=>Ac(t,e.device.appName)));if(!r)throw new Gr(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=Wt(Wt({},r),n)}return t}))}updateWalletInfo(e){return Ft(this,null,(function*(){const t=yield this.getSelectedWalletInfo(e);if(t)return this.walletInfo=t,void this.walletInfoStorage.setWalletInfo(t);const n=this.walletInfoStorage.getWalletInfo();this.walletInfo=n||((yield this.walletsList).find((t=>Ac(t,e.device.appName)))||null)}))}normalizeWidgetRoot(e){if(!e||!document.getElementById(e)){e="tc-widget-root";const t=document.createElement("div");t.id=e,document.body.appendChild(t)}return e}checkButtonRootExist(e){if(null!=e&&!document.getElementById(e))throw new Gr(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,n,r,o,i,a;const s=["before","success","error"];let l=s;(null==(t=this.actionsConfiguration)?void 0:t.notifications)&&"all"!==(null==(n=this.actionsConfiguration)?void 0:n.notifications)&&(l=this.actionsConfiguration.notifications),(null==e?void 0:e.notifications)&&(l="all"===e.notifications?s:e.notifications);let c=["before"];(null==(r=this.actionsConfiguration)?void 0:r.modals)&&(c="all"===this.actionsConfiguration.modals?s:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(c="all"===e.modals?s:e.modals);const u=(null==e?void 0:e.returnStrategy)||(null==(o=this.actionsConfiguration)?void 0:o.returnStrategy)||"back",d=(null==e?void 0:e.twaReturnUrl)||(null==(i=this.actionsConfiguration)?void 0:i.twaReturnUrl);let f=(null==e?void 0:e.skipRedirectToWallet)||(null==(a=this.actionsConfiguration)?void 0:a.skipRedirectToWallet)||"ios";return oi()&&(f="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:f}}}function Ld(e,t){return function(){return e.apply(t,arguments)}}const{toString:Md}=Object.prototype,{getPrototypeOf:Nd}=Object,Id=(jd=Object.create(null),e=>{const t=Md.call(e);return jd[t]||(jd[t]=t.slice(8,-1).toLowerCase())});var jd;const $d=e=>(e=e.toLowerCase(),t=>Id(t)===e),Dd=e=>t=>typeof t===e,{isArray:Ud}=Array,Wd=Dd("undefined");const zd=$d("ArrayBuffer");const Bd=Dd("string"),Fd=Dd("function"),Hd=Dd("number"),Vd=e=>null!==e&&"object"===typeof e,Kd=e=>{if("object"!==Id(e))return!1;const t=Nd(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qd=$d("Date"),Gd=$d("File"),Qd=$d("Blob"),Zd=$d("FileList"),Yd=$d("URLSearchParams"),[Xd,Jd,ef,tf]=["ReadableStream","Request","Response","Headers"].map($d);function nf(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),Ud(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(n=0;n<i;n++)a=r[n],t.call(null,e[a],a,e)}}function rf(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const of="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,af=e=>!Wd(e)&&e!==of;const sf=(lf="undefined"!==typeof Uint8Array&&Nd(Uint8Array),e=>lf&&e instanceof lf);var lf;const cf=$d("HTMLFormElement"),uf=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),df=$d("RegExp"),ff=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};nf(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},hf="abcdefghijklmnopqrstuvwxyz",pf="0123456789",gf={DIGIT:pf,ALPHA:hf,ALPHA_DIGIT:hf+hf.toUpperCase()+pf};const mf=$d("AsyncFunction"),vf=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],of.addEventListener("message",(e=>{let{source:t,data:o}=e;t===of&&o===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),of.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,Fd(of.postMessage)),yf="undefined"!==typeof queueMicrotask?queueMicrotask.bind(of):"undefined"!==typeof process&&process.nextTick||vf,bf={isArray:Ud,isArrayBuffer:zd,isBuffer:function(e){return null!==e&&!Wd(e)&&null!==e.constructor&&!Wd(e.constructor)&&Fd(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||Fd(e.append)&&("formdata"===(t=Id(e))||"object"===t&&Fd(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&zd(e.buffer),t},isString:Bd,isNumber:Hd,isBoolean:e=>!0===e||!1===e,isObject:Vd,isPlainObject:Kd,isReadableStream:Xd,isRequest:Jd,isResponse:ef,isHeaders:tf,isUndefined:Wd,isDate:qd,isFile:Gd,isBlob:Qd,isRegExp:df,isFunction:Fd,isStream:e=>Vd(e)&&Fd(e.pipe),isURLSearchParams:Yd,isTypedArray:sf,isFileList:Zd,forEach:nf,merge:function e(){const{caseless:t}=af(this)&&this||{},n={},r=(r,o)=>{const i=t&&rf(n,o)||o;Kd(n[i])&&Kd(r)?n[i]=e(n[i],r):Kd(r)?n[i]=e({},r):Ud(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&nf(arguments[o],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return nf(t,((t,r)=>{n&&Fd(t)?e[r]=Ld(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Nd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Id,kindOfTest:$d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Ud(e))return e;let t=e.length;if(!Hd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:cf,hasOwnProperty:uf,hasOwnProp:uf,reduceDescriptors:ff,freezeMethods:e=>{ff(e,((t,n)=>{if(Fd(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Fd(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Ud(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:rf,global:of,isContextDefined:af,ALPHABET:gf,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gf.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Fd(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Vd(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Ud(e)?[]:{};return nf(e,((e,t)=>{const i=n(e,r+1);!Wd(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:mf,isThenable:e=>e&&(Vd(e)||Fd(e))&&Fd(e.then)&&Fd(e.catch),setImmediate:vf,asap:yf};function wf(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}bf.inherits(wf,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:bf.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xf=wf.prototype,Cf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Cf[e]={value:e}})),Object.defineProperties(wf,Cf),Object.defineProperty(xf,"isAxiosError",{value:!0}),wf.from=(e,t,n,r,o,i)=>{const a=Object.create(xf);return bf.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),wf.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const kf=wf;function Sf(e){return bf.isPlainObject(e)||bf.isArray(e)}function Ef(e){return bf.endsWith(e,"[]")?e.slice(0,-2):e}function _f(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ef(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Af=bf.toFlatObject(bf,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Tf=function(e,t,n){if(!bf.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=bf.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!bf.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&bf.isSpecCompliantForm(t);if(!bf.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(bf.isDate(e))return e.toISOString();if(!s&&bf.isBlob(e))throw new kf("Blob is not supported. Use a Buffer instead.");return bf.isArrayBuffer(e)||bf.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(bf.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(bf.isArray(e)&&function(e){return bf.isArray(e)&&!e.some(Sf)}(e)||(bf.isFileList(e)||bf.endsWith(n,"[]"))&&(s=bf.toArray(e)))return n=Ef(n),s.forEach((function(e,r){!bf.isUndefined(e)&&null!==e&&t.append(!0===a?_f([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Sf(e)||(t.append(_f(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Af,{defaultVisitor:c,convertValue:l,isVisitable:Sf});if(!bf.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!bf.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),bf.forEach(n,(function(n,i){!0===(!(bf.isUndefined(n)||null===n)&&o.call(t,n,bf.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function Rf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Of(e,t){this._pairs=[],e&&Tf(e,this,t)}const Pf=Of.prototype;Pf.append=function(e,t){this._pairs.push([e,t])},Pf.toString=function(e){const t=e?function(t){return e.call(this,t,Rf)}:Rf;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Lf=Of;function Mf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nf(e,t,n){if(!t)return e;const r=n&&n.encode||Mf,o=n&&n.serialize;let i;if(i=o?o(t,n):bf.isURLSearchParams(t)?t.toString():new Lf(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const If=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){bf.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},jf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$f={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Lf,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Df="undefined"!==typeof window&&"undefined"!==typeof document,Uf=(Wf="undefined"!==typeof navigator&&navigator.product,Df&&["ReactNative","NativeScript","NS"].indexOf(Wf)<0);var Wf;const zf="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,Bf=Df&&window.location.href||"http://localhost",Ff={...e,...$f};const Hf=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&bf.isArray(r)?r.length:i,s)return bf.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&bf.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&bf.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(bf.isFormData(e)&&bf.isFunction(e.entries)){const n={};return bf.forEachEntry(e,((e,r)=>{t(function(e){return bf.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const Vf={transitional:jf,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=bf.isObject(e);o&&bf.isHTMLForm(e)&&(e=new FormData(e));if(bf.isFormData(e))return r?JSON.stringify(Hf(e)):e;if(bf.isArrayBuffer(e)||bf.isBuffer(e)||bf.isStream(e)||bf.isFile(e)||bf.isBlob(e)||bf.isReadableStream(e))return e;if(bf.isArrayBufferView(e))return e.buffer;if(bf.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Tf(e,new Ff.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ff.isNode&&bf.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=bf.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Tf(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(bf.isString(e))try{return(t||JSON.parse)(e),bf.trim(e)}catch(Cr){if("SyntaxError"!==Cr.name)throw Cr}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Vf.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(bf.isResponse(e)||bf.isReadableStream(e))return e;if(e&&bf.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Cr){if(n){if("SyntaxError"===Cr.name)throw kf.from(Cr,kf.ERR_BAD_RESPONSE,this,null,this.response);throw Cr}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ff.classes.FormData,Blob:Ff.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};bf.forEach(["delete","get","head","post","put","patch"],(e=>{Vf.headers[e]={}}));const Kf=Vf,qf=bf.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gf=Symbol("internals");function Qf(e){return e&&String(e).trim().toLowerCase()}function Zf(e){return!1===e||null==e?e:bf.isArray(e)?e.map(Zf):String(e)}function Yf(e,t,n,r,o){return bf.isFunction(r)?r.call(this,t,n):(o&&(t=n),bf.isString(t)?bf.isString(r)?-1!==t.indexOf(r):bf.isRegExp(r)?r.test(t):void 0:void 0)}class Xf{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Qf(t);if(!o)throw new Error("header name must be a non-empty string");const i=bf.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Zf(e))}const i=(e,t)=>bf.forEach(e,((e,n)=>o(e,n,t)));if(bf.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(bf.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&qf[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(bf.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Qf(e)){const n=bf.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(bf.isFunction(t))return t.call(this,e,n);if(bf.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Qf(e)){const n=bf.findKey(this,e);return!(!n||void 0===this[n]||t&&!Yf(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Qf(e)){const o=bf.findKey(n,e);!o||t&&!Yf(0,n[o],o,t)||(delete n[o],r=!0)}}return bf.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Yf(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return bf.forEach(this,((r,o)=>{const i=bf.findKey(n,o);if(i)return t[i]=Zf(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Zf(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return bf.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&bf.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[Gf]=this[Gf]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Qf(e);t[r]||(!function(e,t){const n=bf.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return bf.isArray(e)?e.forEach(r):r(e),this}}Xf.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),bf.reduceDescriptors(Xf.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),bf.freezeMethods(Xf);const Jf=Xf;function eh(e,t){const n=this||Kf,r=t||n,o=Jf.from(r.headers);let i=r.data;return bf.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function th(e){return!(!e||!e.__CANCEL__)}function nh(e,t,n){kf.call(this,null==e?"canceled":e,kf.ERR_CANCELED,t,n),this.name="CanceledError"}bf.inherits(nh,kf,{__CANCEL__:!0});const rh=nh;function oh(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new kf("Request failed with status code "+n.status,[kf.ERR_BAD_REQUEST,kf.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const ih=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const ah=function(e,t){let n,r,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=i?a(l,e):(n=l,r||(r=setTimeout((()=>{r=null,a(n)}),i-t)))},()=>n&&a(n)]},sh=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const o=ih(50,250);return ah((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},lh=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ch=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bf.asap((()=>e(...n)))},uh=Ff.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=bf.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},dh=Ff.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];bf.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),bf.isString(r)&&a.push("path="+r),bf.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function fh(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const hh=e=>e instanceof Jf?{...e}:e;function ph(e,t){t=t||{};const n={};function r(e,t,n){return bf.isPlainObject(e)&&bf.isPlainObject(t)?bf.merge.call({caseless:n},e,t):bf.isPlainObject(t)?bf.merge({},t):bf.isArray(t)?t.slice():t}function o(e,t,n){return bf.isUndefined(t)?bf.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!bf.isUndefined(t))return r(void 0,t)}function a(e,t){return bf.isUndefined(t)?bf.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(hh(e),hh(t),!0)};return bf.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);bf.isUndefined(a)&&i!==s||(n[r]=a)})),n}const gh=e=>{const t=ph({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Jf.from(s),t.url=Nf(fh(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),bf.isFormData(r))if(Ff.hasStandardBrowserEnv||Ff.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ff.hasStandardBrowserEnv&&(o&&bf.isFunction(o)&&(o=o(t)),o||!1!==o&&uh(t.url))){const e=i&&a&&dh.read(a);e&&s.set(i,e)}return t},mh="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=gh(e);let o=r.data;const i=Jf.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=r;function p(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=Jf.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());oh((function(e){t(e),p()}),(function(e){n(e),p()}),{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new kf("Request aborted",kf.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new kf("Network Error",kf.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||jf;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new kf(t,o.clarifyTimeoutError?kf.ETIMEDOUT:kf.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&bf.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),bf.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),h&&([l,u]=sh(h,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,c]=sh(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new rh(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===Ff.protocols.indexOf(v)?n(new kf("Unsupported protocol "+v+":",kf.ERR_BAD_REQUEST,e)):g.send(o||null)}))},vh=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof kf?t:new rh(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new kf(`timeout ${t} of ms exceeded`,kf.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},yh=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},bh=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*yh(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},wh="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,xh=wh&&"function"===typeof ReadableStream,Ch=wh&&("function"===typeof TextEncoder?(kh=new TextEncoder,e=>kh.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var kh;const Sh=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(Cr){return!1}},Eh=xh&&Sh((()=>{let e=!1;const t=new Request(Ff.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),_h=xh&&Sh((()=>bf.isReadableStream(new Response("").body))),Ah={stream:_h&&(e=>e.body)};var Th;wh&&(Th=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ah[e]&&(Ah[e]=bf.isFunction(Th[e])?t=>t[e]():(t,n)=>{throw new kf(`Response type '${e}' is not supported`,kf.ERR_NOT_SUPPORT,n)})})));const Rh=async(e,t)=>{const n=bf.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:bf.isBlob(e)?e.size:bf.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:bf.isArrayBufferView(e)||bf.isArrayBuffer(e)?e.byteLength:(bf.isURLSearchParams(e)&&(e+=""),bf.isString(e)?(await Ch(e)).byteLength:void 0))(t):n},Oh=wh&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=gh(e);c=c?(c+"").toLowerCase():"text";let h,p,[g,m]=o||i||a?vh([o,i],a):[];const v=()=>{!h&&setTimeout((()=>{g&&g.unsubscribe()})),h=!0};let y;try{if(l&&Eh&&"get"!==n&&"head"!==n&&0!==(y=await Rh(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(bf.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=lh(y,sh(ch(l)));r=bh(n.body,65536,e,t,Ch)}}bf.isString(d)||(d=d?"include":"omit"),p=new Request(t,{...f,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(p);const i=_h&&("stream"===c||"response"===c);if(_h&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=bf.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&lh(t,sh(ch(s),!0))||[];o=new Response(bh(o.body,65536,n,(()=>{r&&r(),i&&v()}),Ch),e)}c=c||"text";let a=await Ah[bf.findKey(Ah,c)||"text"](o,e);return!i&&v(),m&&m(),await new Promise(((t,n)=>{oh(t,n,{data:a,headers:Jf.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(b){if(v(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new kf("Network Error",kf.ERR_NETWORK,e,p),{cause:b.cause||b});throw kf.from(b,b&&b.code,e,p)}}),Ph={http:null,xhr:mh,fetch:Oh};bf.forEach(Ph,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Cr){}Object.defineProperty(e,"adapterName",{value:t})}}));const Lh=e=>`- ${e}`,Mh=e=>bf.isFunction(e)||null===e||!1===e,Nh=e=>{e=bf.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Mh(n)&&(r=Ph[(t=String(n)).toLowerCase()],void 0===r))throw new kf(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(Lh).join("\n"):" "+Lh(e[0]):"as no adapter specified";throw new kf("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Ih(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rh(null,e)}function jh(e){Ih(e),e.headers=Jf.from(e.headers),e.data=eh.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Nh(e.adapter||Kf.adapter)(e).then((function(t){return Ih(e),t.data=eh.call(e,e.transformResponse,t),t.headers=Jf.from(t.headers),t}),(function(t){return th(t)||(Ih(e),t&&t.response&&(t.response.data=eh.call(e,e.transformResponse,t.response),t.response.headers=Jf.from(t.response.headers))),Promise.reject(t)}))}const $h="1.7.4",Dh={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Dh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Uh={};Dh.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new kf(r(o," has been removed"+(t?" in "+t:"")),kf.ERR_DEPRECATED);return t&&!Uh[o]&&(Uh[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Wh={assertOptions:function(e,t,n){if("object"!==typeof e)throw new kf("options must be an object",kf.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new kf("option "+i+" must be "+n,kf.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new kf("Unknown option "+i,kf.ERR_BAD_OPTION)}},validators:Dh},zh=Wh.validators;class Bh{constructor(e){this.defaults=e,this.interceptors={request:new If,response:new If}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Cr){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=ph(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Wh.assertOptions(n,{silentJSONParsing:zh.transitional(zh.boolean),forcedJSONParsing:zh.transitional(zh.boolean),clarifyTimeoutError:zh.transitional(zh.boolean)},!1),null!=r&&(bf.isFunction(r)?t.paramsSerializer={serialize:r}:Wh.assertOptions(r,{encode:zh.function,serialize:zh.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&bf.merge(o.common,o[t.method]);o&&bf.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Jf.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[jh.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(h){t.call(this,h);break}}try{c=jh.call(this,f)}catch(h){return Promise.reject(h)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Nf(fh((e=ph(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}bf.forEach(["delete","get","head","options"],(function(e){Bh.prototype[e]=function(t,n){return this.request(ph(n||{},{method:e,url:t,data:(n||{}).data}))}})),bf.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(ph(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Bh.prototype[e]=t(),Bh.prototype[e+"Form"]=t(!0)}));const Fh=Bh;class Hh{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new rh(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Hh((function(t){e=t}));return{token:t,cancel:e}}}const Vh=Hh;const Kh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kh).forEach((e=>{let[t,n]=e;Kh[n]=t}));const qh=Kh;const Gh=function e(t){const n=new Fh(t),r=Ld(Fh.prototype.request,n);return bf.extend(r,Fh.prototype,n,{allOwnKeys:!0}),bf.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ph(t,n))},r}(Kf);Gh.Axios=Fh,Gh.CanceledError=rh,Gh.CancelToken=Vh,Gh.isCancel=th,Gh.VERSION=$h,Gh.toFormData=Tf,Gh.AxiosError=kf,Gh.Cancel=Gh.CanceledError,Gh.all=function(e){return Promise.all(e)},Gh.spread=function(e){return function(t){return e.apply(null,t)}},Gh.isAxiosError=function(e){return bf.isObject(e)&&!0===e.isAxiosError},Gh.mergeConfig=ph,Gh.AxiosHeaders=Jf,Gh.formToJSON=e=>Hf(bf.isHTMLForm(e)?new FormData(e):e),Gh.getAdapter=Nh,Gh.HttpStatusCode=qh,Gh.default=Gh;const Qh=Gh;const Zh=new class{constructor(){this._axios=void 0}init(){this._axios=Qh.create({timeout:1e4}),this._axios.interceptors.request.use((e=>(e.url.includes("api/pluto")&&(e.baseURL=H.API_URL,H.TOKEN&&(e.headers.Authorization=`Bearer ${H.TOKEN}`)),e)),(e=>(console.log(e),Promise.reject({code:I.NetConfigError,message:"Net config error"})))),this._axios.interceptors.response.use((e=>e),(e=>(console.log(e.toJSON()),Promise.reject({code:I.NetError,message:e.message}))))}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={};return t&&(n.params=t),this._axios.get(e,n).then((e=>e.data))}post(e,t){return this._axios.post(e,t).then((e=>e.data))}};const Yh=new class{constructor(){this._tonConnect=null,this._tokenJettonWalletAddress={}}get connected(){return this._tonConnect.connected}get rawAddress(){return this._tonConnect.connected?this._tonConnect.wallet.account.address:null}get friendlyAddress(){return this._tonConnect.connected?wt(this._tonConnect.wallet.account.address,!1):null}get chain(){return this._tonConnect.connected?this._tonConnect.wallet.account.chain:null}init(){let e=this._tonConnect=new Pd({manifestUrl:H.MANIFEST_URL});e.setConnectRequestParameters({state:"ready",value:{tonProof:"success"}}),e.connectionRestored.then((e=>{e?(C().publish(A,!0),console.log("tonConnect restored.")):console.log("tonConnect not restored.")}))}connect(){return new Promise(((e,t)=>{if(this.connected)return e(this._tonConnect.account.address);const n=this._tonConnect.onStatusChange((r=>{if(console.log("onStatusChange==>"+JSON.stringify(r)),n(),!r)return t({code:I.WalletError,message:"The wallet info is null"});let o=r.account.address;C().publish(A,!0),e(o)})),r=this._tonConnect.onModalStateChange((e=>{console.log("onModalStateChange==>"+JSON.stringify(e)),"closed"==e.status&&(r(),"wallet-selected"!=e.closeReason&&(n(),t({code:I.WalletError,message:"Wallet connect failed"})))}));this._tonConnect.openModal().then((()=>{console.log("openModal success")})).catch((e=>{n(),r(),t({code:I.WalletError,message:"Open modal error"})}))}))}disconnect(){return new Promise(((e,t)=>{if(!this.connected)return t({code:I.WalletError,message:"Wallet not connected"});this._tonConnect.disconnect().then((()=>{C().publish(A,!1),this._tokenJettonWalletAddress={},e()})).catch((e=>{console.log(e),t({code:I.WalletError,message:"Wallet disconnect error"})}))}))}sendTransaction(e){return new Promise(((t,n)=>{if(!this.connected)return n({code:I.WalletError,message:"Wallet not connected"});const r={validUntil:Math.floor(Date.now()/1e3)+600,messages:[{...e}]};this._tonConnect.sendTransaction(r).then((e=>{console.log("transaction success"),t(e.boc)})).catch((e=>{console.log("transaction error==>"+JSON.stringify(e)),n({code:I.WalletError,message:"Wallet transaction error"})}))}))}getTokenJettonPayInfo(e,t,n,r){return new Promise(((o,i)=>{this.getTokenJettonWalletAddress(e).then((a=>{let s=`${H.PAYLOAD_URL}/${e}/${this.rawAddress}/${r}/${t}/${n}`;Zh.get(s).then((e=>{o({address:a,payload:e.data.payload})})).catch((e=>{console.log(e),i({code:I.TokenUseError,message:"Load token payload error"})}))})).catch((e=>{i(e)}))}))}getTokenJettonWalletAddress(e){return new Promise(((t,n)=>{if(this._tokenJettonWalletAddress[e])return t(this._tokenJettonWalletAddress[e]);let r=H.TOKENS_JETTON_ADDRESS[e];if(!r)return console.log(`token invalid: ${e}`),n({code:I.TokenUseError,message:`${e} invalid`});let o={owner_address:this.rawAddress,jetton_address:r,limit:"1",offset:"0"};Zh.get(H.TON_CENTER_URL,o).then((r=>{var o;let i=null===(o=r.jetton_wallets[0])||void 0===o?void 0:o.address;if(!i)return n({code:I.TokenUseError,message:`Insufficient ${e} assets`});this._tokenJettonWalletAddress[e]=i,t(i)})).catch((e=>{console.log(e),n({code:I.TokenUseError,message:"Load jetton wallet error"})}))}))}};const Xh=new class{constructor(){this._callbackMap={},this._handlerMap={},this.onPlayButtonClicked=(e,t)=>{const n=this._handlerMap.event_playButtonClicked;n&&n.apply(null,[])},this.onPuchaseCompleted=(e,t)=>{const n=this._handlerMap[P];n&&n.apply(null,[t]);const r=this._callbackMap[P];r&&(r.apply(null,[t]),this._callbackMap[P]=null)},this.onCheckInCompleted=(e,t)=>{const n=this._handlerMap[L];n&&n.apply(null,[t]);const r=this._callbackMap[L];r&&(r.apply(null,[t]),this._callbackMap[L]=null)}}init(){C().subscribe(T,this.onPlayButtonClicked),C().subscribe(R,this.onPuchaseCompleted),C().subscribe(O,this.onCheckInCompleted)}registerCallback(e,t){e&&t&&(this._callbackMap[e]=t)}registerHandler(e,t){e&&t&&(this._handlerMap[e]=t)}};class Jh{static showLog(e){H.TEST_MODE&&console.log(e)}static get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=`api/pluto/${e}/${H.GAME_ID}`;return new Promise(((r,o)=>{Zh.get(n,t).then((t=>{if(Jh.showLog(`${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)})).catch((e=>{o(e)}))}))}static post(e,t){const n=`api/pluto/${e}/${H.GAME_ID}`;return new Promise(((r,o)=>{Zh.post(n,t).then((t=>{if(Jh.showLog(`${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)})).catch((e=>{o(e)}))}))}static gameInfo(){const e={botname:H.BOT_NAME,initdata:H.INIT_DATA};return Jh.post("gameinfo",e)}static login(){const e={botname:H.BOT_NAME,initdata:H.INIT_DATA};return Jh.post("login",e)}static priceExchange(e){const t={amount:e};return Jh.post("priceexchange",t)}static order(e,t,n,r,o,i,a){const s={productid:e,productname:t,orderid:n,amount:r,paytype:o,currencycode:i,customdata:a};return Jh.post("order",s)}static getItem(e){const t={k:e};return Jh.post("getuserdata",t)}static setItem(e,t){const n={k:e,v:t};return Jh.post("setuserdata",n)}static finishOrder(e){const t={orderno:e};return Jh.post("finishorder",t)}static unfinishRecord(){return Jh.get("unfinishrecord")}static checkIn(e,t,n){const r={title:e,checkinid:t,customdata:n};return Jh.post("checkin",r)}static checkInVerify(e,t,n,r){const o={checknet:e,wallet:r,checkdata:t,checkinno:n};return Jh.post("checkinverify",o)}}const ep=new class{constructor(){this._gameInfo=void 0,this._plutoId=void 0,this._firstName=void 0,this._lastName=void 0,this._icon=void 0,this._purchaseData=void 0,this._checkInData=void 0}get gameInfo(){return this._gameInfo}set gameInfo(e){this._gameInfo=e}get plutoId(){return this._plutoId}set plutoId(e){this._plutoId=e}get firstName(){return this._firstName}set firstName(e){this._firstName=e}get lastName(){return this._lastName}set lastName(e){this._lastName=e}get icon(){return this._icon}set icon(e){this._icon=e}get purchaseData(){return this._purchaseData||{}}set purchaseData(e){this._purchaseData=e}get checkInData(){return this._checkInData||{}}set checkInData(e){this._checkInData=e}};const tp=new class{init(){Telegram.WebApp.expand(),Telegram.WebApp.ready(),Telegram.WebApp.disableVerticalSwipes(),Telegram.WebApp.enableClosingConfirmation()}async reqGameInfo(){for(let t=1;t<=10;t++)try{const e=await Jh.gameInfo();let t={name:e.gamename,describe:e.gamesummary,icon:e.gameicon,appUrl:e.appurl,tags:e.catalog||[]};return ep.gameInfo=t,ep.plutoId=e.plutoid,Promise.resolve(t)}catch(e){if(10==t)return Promise.reject({code:I.InitError,message:"Init error"});await new Promise((e=>window.setTimeout(e,500)))}}reqLogin(){return Jh.login().then((e=>{let t=ep.plutoId=e.plutoid,n=ep.firstName=e.tgfirstname,r=ep.lastName=e.tglastname,o=ep.icon=e.icon,i=e.ticket;return H.TOKEN=e.token,{plutoId:t,firstName:n,lastName:r,icon:o,ticket:i}}))}reqPurchase(e,t,n,r,o){return Jh.priceExchange(r).then((r=>{const i=parseFloat(r.usdt)||0,a=parseFloat(r.ton)||0,s=parseFloat(r.cati)||0,l=parseInt(r.star)||0,c=parseFloat(r.usdtoff)||0,u=parseFloat(r.tonoff)||0,d=parseFloat(r.catioff)||0,f=parseFloat(r.staroff)||0,h=parseFloat(r.usdtdiscount)||0,p=parseFloat(r.tondiscount)||0,g=parseFloat(r.catidiscount)||0,m=parseFloat(r.stardiscount)||0;ep.purchaseData={name:t,productId:e,orderId:n,customData:o,usdt:h?c:i,usdtOld:i,usdtDiscount:h,ton:p?u:a,tonOld:a,tonDiscount:p,cati:g?d:s,catiOld:s,catiDiscount:g,star:m?f:l,starOld:l,starDiscount:m}}))}reqOrder(e,t){const{productId:n,name:r,orderId:o,usdt:i,customData:a}=ep.purchaseData;return Jh.order(n,r,o,i,e,t,a).then((e=>(ep.purchaseData.orderNo=e.orderNo,{amount:e.amount,orderNo:e.orderNo,payload:e.payload,payLink:e.payLink,address:e.walletAddress})))}async reqFinishOrder(e){for(let n=1;n<=12;n++)try{return await Jh.finishOrder(e),Promise.resolve()}catch(t){if(22==t.code)return Promise.reject(t);if(12==n)return Promise.reject({code:I.OrderConfirming,message:"The order is being confirmed"});await new Promise((e=>window.setTimeout(e,5e3)))}}reqUnfinishRecord(){return Jh.unfinishRecord().then((e=>{let t=[];return(e.records||[]).forEach((e=>{const n={orderNo:e.orderno,orderId:e.orderid,productId:e.productid,name:e.productname,customData:e.customdata};t.push(n)})),t}))}reqCheckIn(e,t,n){return Jh.checkIn(e,t,n).then((r=>{ep.checkInData={name:e,orderId:t,customData:n,amount:"8000000",orderNo:r.checkinno,payload:r.payload,address:r.address}}))}async reqCheckInVerify(e,t,n,r){for(let i=1;i<=12;i++)try{return await Jh.checkInVerify(e,t,n,r),Promise.resolve()}catch(o){if(12==i)return Promise.reject(o);await new Promise((e=>window.setTimeout(e,5e3)))}}reqGetItem(e){return Jh.getItem(e).then((e=>e.v))}reqSetItem(e,t){return Jh.setItem(e,t).then((e=>{}))}openLink(e){Telegram.WebApp.openLink(e)}openTelegramLink(e){Telegram.WebApp.openTelegramLink(e)}openInvoice(e){return new Promise(((t,n)=>{Telegram.WebApp.openInvoice(e,(e=>{if("paid"==e)return t();n({code:I.OpenInvoiceError,message:"Open invoice error"})}))}))}share(){let e=`https://t.me/share/url?url=${`${ep.gameInfo.appUrl}?startapp=g_${H.GAME_ID}_${ep.plutoId}`}&text=${encodeURIComponent(N[H.GAME_ID]||N[1e3])}`;K()?this.openTelegramLink(e):this.openLink(e)}enableClosingConfirmation(){Telegram.WebApp.enableClosingConfirmation()}disableClosingConfirmation(){Telegram.WebApp.disableClosingConfirmation()}vibrate(e){const t={1:"light",2:"medium",3:"heavy"},n={4:"error",5:"success",6:"warning"};t[e]?Telegram.WebApp.HapticFeedback.impactOccurred(t[e]):n[e]&&Telegram.WebApp.HapticFeedback.notificationOccurred(n[e])}};var np=n(9254),rp=n(8587),op=n(2004),ip=n(116),ap=n(505),sp=n(237);const lp=["className","component"];var cp=n(4501),up=n(7775),dp=n(1763);const fp=(0,dp.A)("MuiBox",["root"]),hp=(0,up.A)(),pp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:a}=e,s=(0,ip.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ap.A),l=i.forwardRef((function(e,i){const l=f(n),c=(0,sp.A)(e),{className:u,component:d="div"}=c,p=(0,rp.A)(c,lp);return(0,h.jsx)(s,(0,o.A)({as:d,ref:i,className:(0,op.A)(u,a?a(r):r),theme:t&&l[t]||l},p))}));return l}({themeId:m.A,defaultTheme:hp,defaultClassName:fp.root,generateClassName:cp.A.generate}),gp=pp;class mp extends i.PureComponent{render(){return(0,h.jsxs)(gp,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[(0,h.jsx)(gp,{component:"img",src:V("bg_2.png"),sx:{display:"none"}}),(0,h.jsx)(gp,{component:"img",src:V("button_1.png"),sx:{display:"none"}}),(0,h.jsx)(gp,{component:"img",src:V("button_2.png"),sx:{display:"none"}}),(0,h.jsx)(gp,{component:"img",src:V("button_3.png"),sx:{display:"none"}}),(0,h.jsx)(gp,{component:"img",src:V("cat_ball.png"),sx:{display:"none"}})]})}}function vp(e,t){return vp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vp(e,t)}function yp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vp(e,t)}var bp=n(7119);const wp=!1,xp=i.createContext(null);var Cp="unmounted",kp="exited",Sp="entering",Ep="entered",_p="exiting",Ap=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=kp,r.appearStatus=Sp):o=Ep:o=t.unmountOnExit||t.mountOnEnter?Cp:kp,r.state={status:o},r.nextCallback=null,r}yp(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Cp?{status:kp}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Sp&&n!==Ep&&(t=Sp):n!==Sp&&n!==Ep||(t=_p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Sp){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:bp.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kp&&this.setState({status:Cp})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[bp.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||wp?this.safeSetState({status:Ep},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Sp},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ep},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:bp.findDOMNode(this);t&&!wp?(this.props.onExit(r),this.safeSetState({status:_p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:kp},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:kp},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:bp.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Cp)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,rp.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(xp.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.Component);function Tp(){}Ap.contextType=xp,Ap.propTypes={},Ap.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tp,onEntering:Tp,onEntered:Tp,onExit:Tp,onExiting:Tp,onExited:Tp},Ap.UNMOUNTED=Cp,Ap.EXITED=kp,Ap.ENTERING=Sp,Ap.ENTERED=Ep,Ap.EXITING=_p;const Rp=Ap;var Op=n(1380),Pp=n(4326);function Lp(){const e=f(g.A);return e[m.A]||e}const Mp=e=>e.scrollTop;function Np(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:a.transitionDelay}}var Ip=n(1733);const jp=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function $p(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=(0,Ip.A)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=i.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"===typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"===typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Dp=i.forwardRef((function(e,t){const n=Lp(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,container:u,direction:d="down",easing:f=r,in:p,onEnter:g,onEntered:m,onEntering:v,onExit:y,onExited:b,onExiting:w,style:x,timeout:C=a,TransitionComponent:k=Rp}=e,S=(0,rp.A)(e,jp),E=i.useRef(null),_=(0,Pp.A)(c.ref,E,t),A=e=>t=>{e&&(void 0===t?e(E.current):e(E.current,t))},T=A(((e,t)=>{$p(d,e,u),Mp(e),g&&g(e,t)})),R=A(((e,t)=>{const r=Np({timeout:C,style:x,easing:f},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,o.A)({},r)),e.style.transition=n.transitions.create("transform",(0,o.A)({},r)),e.style.webkitTransform="none",e.style.transform="none",v&&v(e,t)})),O=A(m),P=A(w),L=A((e=>{const t=Np({timeout:C,style:x,easing:f},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),$p(d,e,u),y&&y(e)})),M=A((e=>{e.style.webkitTransition="",e.style.transition="",b&&b(e)})),N=i.useCallback((()=>{E.current&&$p(d,E.current,u)}),[d,u]);return i.useEffect((()=>{if(p||"down"===d||"right"===d)return;const e=(0,Op.A)((()=>{E.current&&$p(d,E.current,u)})),t=(0,Ip.A)(E.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[d,p,u]),i.useEffect((()=>{p||N()}),[p,N]),(0,h.jsx)(k,(0,o.A)({nodeRef:E,onEnter:T,onEntered:O,onEntering:R,onExit:L,onExited:M,onExiting:P,addEndListener:e=>{s&&s(E.current,e)},appear:l,in:p,timeout:C},S,{children:(e,t)=>i.cloneElement(c,(0,o.A)({ref:_,style:(0,o.A)({visibility:"exited"!==e||p?void 0:"hidden"},x,c.props.style)},t))}))})),Up=Dp;class Wp extends i.PureComponent{render(){return(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",borderWidth:40,borderStyle:"solid",borderImage:`url(${V("bg_2.png")})`,borderImageRepeat:"repeat",borderImageSlice:"40 fill"}})}}const zp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Bp={entering:{opacity:1},entered:{opacity:1}},Fp=i.forwardRef((function(e,t){const n=Lp(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:m,onExiting:v,style:y,timeout:b=r,TransitionComponent:w=Rp}=e,x=(0,rp.A)(e,zp),C=i.useRef(null),k=(0,Pp.A)(C,l.ref,t),S=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},E=S(p),_=S(((e,t)=>{Mp(e);const r=Np({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),d&&d(e,t)})),A=S(f),T=S(v),R=S((e=>{const t=Np({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),O=S(m);return(0,h.jsx)(w,(0,o.A)({appear:s,in:u,nodeRef:C,onEnter:_,onEntered:A,onEntering:E,onExit:R,onExited:O,onExiting:T,addEndListener:e=>{a&&a(C.current,e)},timeout:b},x,{children:(e,t)=>i.cloneElement(l,(0,o.A)({style:(0,o.A)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Bp[e],y,l.props.style),ref:k},t))}))})),Hp=Fp,Vp={0:{x:0,y:0},1:{x:-222,y:0},2:{x:-444,y:0},3:{x:-666,y:0},4:{x:-888,y:0},5:{x:0,y:-119},6:{x:-222,y:-119},7:{x:-444,y:-119},8:{x:-666,y:-119},9:{x:-888,y:-119},10:{x:0,y:-238},11:{x:-222,y:-238},12:{x:-444,y:-238},13:{x:-666,y:-238},14:{x:-888,y:-238},15:{x:0,y:-357},16:{x:-222,y:-357},17:{x:-444,y:-357},18:{x:-666,y:-357},19:{x:-888,y:-357},20:{x:0,y:-476},21:{x:0,y:-595},22:{x:0,y:-714},23:{x:0,y:-833},24:{x:-222,y:-476},25:{x:-444,y:-476},26:{x:-666,y:-476},27:{x:-888,y:-476},28:{x:-222,y:-595},29:{x:-222,y:-714},30:{x:-222,y:-833},31:{x:-444,y:-595},32:{x:-666,y:-595},33:{x:-888,y:-595},34:{x:-444,y:-714},35:{x:-444,y:-833},36:{x:-666,y:-714},37:{x:-888,y:-714},38:{x:-666,y:-833},39:{x:-888,y:-833}};class Kp extends i.PureComponent{constructor(){super(...arguments),this._aniUrl=`${V("cat_ball.png")}`,this.state={resLoaded:!1},this.formatFrames=()=>{let e=Object.keys(Vp).length,t={},n=1/e*100;for(let r=0;r<e;r++){let e=Vp[r]||{x:0,y:0};t[r*n+"%"]={backgroundPosition:`${e.x}px ${e.y}px`}}return t}}componentDidMount(){let e=new Image;e.src=this._aniUrl,e.onload=()=>{this.setState({resLoaded:!0})},e.onerror=()=>{console.log("image onerror")}}render(){const{resLoaded:e}=this.state;return e?(0,h.jsx)(gp,{sx:{marginLeft:8,height:118},children:(0,h.jsx)(gp,{sx:{width:221,height:118,backgroundImage:`url(${this._aniUrl})`,display:"inline-block",animation:"cat_ball 3.2s step-end infinite","@keyframes cat_ball":this.formatFrames()}})}):(0,h.jsx)(gp,{sx:{marginLeft:8,height:118}})}}class qp extends i.PureComponent{render(){return(0,h.jsx)(Hp,{in:!0,timeout:{enter:1e3},children:(0,h.jsxs)(gp,{sx:{width:1,top:"6%","@media (max-height: 570px)":{top:"2%"},"@media (orientation: landscape)":{display:"none"},textAlign:"center",position:"absolute"},children:[(0,h.jsx)(Kp,{}),(0,h.jsx)(gp,{sx:{fontSize:24,fontWeight:"bold",color:"#764428"},children:"Catizen"}),(0,h.jsx)(gp,{sx:{m:"0 auto",width:360,textAlign:"center",wordWrap:"break-word",fontSize:18,fontWeight:"bold",color:"#bc805e"},children:"Catizen's Games:Play, Earn, Airdrop!"})]})})}}var Gp=n(5447),Qp=n(423),Zp=n(8465),Yp=n(7483);const Xp=["ownerState"],Jp=["variants"],eg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ng=(0,l.A)(),rg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function og(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function ig(e){return e?(t,n)=>n[e]:null}function ag(e,t){let{ownerState:n}=t,r=(0,rp.A)(t,Xp);const i="function"===typeof e?e((0,o.A)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>ag(e,(0,o.A)({ownerState:n},r))));if(i&&"object"===typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,rp.A)(i,Jp);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,o.A)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.A)({ownerState:n},r,n)):e.style))})),t}return i}const sg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=ng,rootShouldForwardProp:r=tg,slotShouldForwardProp:i=tg}=e,a=e=>(0,ap.A)((0,o.A)({},e,{theme:og((0,o.A)({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,ip.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=ig(rg(c))}=s,h=(0,rp.A)(s,eg),p=void 0!==u?u:c&&"Root"!==c&&"root"!==c||!1,g=d||!1;let m=tg;"Root"===c||"root"===c?m=r:c?m=i:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=(0,ip.default)(e,(0,o.A)({shouldForwardProp:m,label:undefined},h)),y=e=>"function"===typeof e&&e.__emotion_real!==e||(0,Yp.Q)(e)?r=>ag(e,(0,o.A)({},r,{theme:og({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=function(r){let i=y(r);for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];const d=c?c.map(y):[];l&&f&&d.push((e=>{const r=og((0,o.A)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const i=r.components[l].styleOverrides,a={};return Object.entries(i).forEach((t=>{let[n,i]=t;a[n]=ag(i,(0,o.A)({},e,{theme:r}))})),f(e,a)})),l&&!p&&d.push((e=>{var r;const i=og((0,o.A)({},e,{defaultTheme:n,themeId:t}));return ag({variants:null==i||null==(r=i.components)||null==(r=r[l])?void 0:r.variants},(0,o.A)({},e,{theme:i}))})),g||d.push(a);const h=d.length-c.length;if(Array.isArray(r)&&h>0){const e=new Array(h).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const m=v(i,...d);return e.muiName&&(m.muiName=e.muiName),m};return v.withConfig&&(b.withConfig=v.withConfig),b}}(),lg=sg;var cg=n(5537);function ug(e){let{props:t,name:n,defaultTheme:r,themeId:o}=e,i=f(r);o&&(i=i[o]||i);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,cg.A)(t.components[n].defaultProps,r):r}({theme:i,name:n,props:t});return a}const dg=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"===typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,i=Object.keys(t),o.filter((e=>i.includes(e))))).forEach((o=>{if(-1!==e.keys.indexOf(o)){const i=t[o];void 0!==i&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),i)}}))}else"number"!==typeof t&&"string"!==typeof t||n(((e,t)=>{Object.assign(e,t)}),t);var o,i};function fg(e){return e?`Level${e}`:""}function hg(e){return e.unstable_level>0&&e.container}function pg(e){return function(t){return`var(--Grid-${t}Spacing${fg(e.unstable_level)})`}}function gg(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${fg(e.unstable_level-1)})`}}function mg(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${fg(e.unstable_level-1)})`}const vg=e=>{let{theme:t,ownerState:n}=e;const r=pg(n),o={};return dg(t.breakpoints,n.gridSize,((e,t)=>{let i={};!0===t&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"===typeof t&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / ${mg(n)}${hg(n)?` + ${r("column")}`:""})`}),e(o,i)})),o},yg=e=>{let{theme:t,ownerState:n}=e;const r={};return dg(t.breakpoints,n.gridOffset,((e,t)=>{let o={};"auto"===t&&(o={marginLeft:"auto"}),"number"===typeof t&&(o={marginLeft:0===t?"0px":`calc(100% * ${t} / ${mg(n)})`}),e(r,o)})),r},bg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r=hg(n)?{[`--Grid-columns${fg(n.unstable_level)}`]:mg(n)}:{"--Grid-columns":12};return dg(t.breakpoints,n.columns,((e,t)=>{e(r,{[`--Grid-columns${fg(n.unstable_level)}`]:t})})),r},wg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r=gg(n),o=hg(n)?{[`--Grid-rowSpacing${fg(n.unstable_level)}`]:r("row")}:{};return dg(t.breakpoints,n.rowSpacing,((e,r)=>{var i;e(o,{[`--Grid-rowSpacing${fg(n.unstable_level)}`]:"string"===typeof r?r:null==(i=t.spacing)?void 0:i.call(t,r)})})),o},xg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r=gg(n),o=hg(n)?{[`--Grid-columnSpacing${fg(n.unstable_level)}`]:r("column")}:{};return dg(t.breakpoints,n.columnSpacing,((e,r)=>{var i;e(o,{[`--Grid-columnSpacing${fg(n.unstable_level)}`]:"string"===typeof r?r:null==(i=t.spacing)?void 0:i.call(t,r)})})),o},Cg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r={};return dg(t.breakpoints,n.direction,((e,t)=>{e(r,{flexDirection:t})})),r},kg=e=>{let{ownerState:t}=e;const n=pg(t),r=gg(t);return(0,o.A)({minWidth:0,boxSizing:"border-box"},t.container&&(0,o.A)({display:"flex",flexWrap:"wrap"},t.wrap&&"wrap"!==t.wrap&&{flexWrap:t.wrap},{margin:`calc(${n("row")} / -2) calc(${n("column")} / -2)`},t.disableEqualOverflow&&{margin:`calc(${n("row")} * -1) 0px 0px calc(${n("column")} * -1)`}),(!t.container||hg(t))&&(0,o.A)({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(t.disableEqualOverflow||t.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},Sg=e=>{const t=[];return Object.entries(e).forEach((e=>{let[n,r]=e;!1!==r&&void 0!==r&&t.push(`grid-${n}-${String(r)}`)})),t},Eg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"xs";function n(e){return void 0!==e&&("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"===typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((e=>{let[r,o]=e;n(o)&&t.push(`spacing-${r}-${String(o)}`)})),t}return[]},_g=e=>void 0===e?[]:"object"===typeof e?Object.entries(e).map((e=>{let[t,n]=e;return`direction-${t}-${n}`})):[`direction-xs-${String(e)}`],Ag=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Tg=(0,l.A)(),Rg=lg("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Og(e){return ug({props:e,name:"MuiGrid",defaultTheme:Tg})}const Pg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=Rg,useThemeProps:n=Og,componentName:r="MuiGrid"}=e,a=i.createContext(void 0),s=t(bg,xg,wg,vg,Cg,kg,yg),l=i.forwardRef((function(e,t){var l,c,u,d,p,g,m,v;const y=f(),b=n(e),w=(0,sp.A)(b),x=i.useContext(a),{className:C,children:k,columns:S=12,container:E=!1,component:_="div",direction:A="row",wrap:T="wrap",spacing:R=0,rowSpacing:O=R,columnSpacing:P=R,disableEqualOverflow:L,unstable_level:M=0}=w,N=(0,rp.A)(w,Ag);let I=L;M&&void 0!==L&&(I=e.disableEqualOverflow);const j={},$={},D={};Object.entries(N).forEach((e=>{let[t,n]=e;void 0!==y.breakpoints.values[t]?j[t]=n:void 0!==y.breakpoints.values[t.replace("Offset","")]?$[t.replace("Offset","")]=n:D[t]=n}));const U=null!=(l=e.columns)?l:M?void 0:S,W=null!=(c=e.spacing)?c:M?void 0:R,z=null!=(u=null!=(d=e.rowSpacing)?d:e.spacing)?u:M?void 0:O,B=null!=(p=null!=(g=e.columnSpacing)?g:e.spacing)?p:M?void 0:P,F=(0,o.A)({},w,{level:M,columns:U,container:E,direction:A,wrap:T,spacing:W,rowSpacing:z,columnSpacing:B,gridSize:j,gridOffset:$,disableEqualOverflow:null!=(m=null!=(v=I)?v:x)&&m,parentDisableEqualOverflow:x}),H=((e,t)=>{const{container:n,direction:o,spacing:i,wrap:a,gridSize:s}=e,l={root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,..._g(o),...Sg(s),...n?Eg(i,t.breakpoints.keys[0]):[]]};return(0,Zp.A)(l,(e=>(0,Qp.Ay)(r,e)),{})})(F,y);let V=(0,h.jsx)(s,(0,o.A)({ref:t,as:_,ownerState:F,className:(0,op.A)(H.root,C)},D,{children:i.Children.map(k,(e=>{var t;return i.isValidElement(e)&&(0,Gp.A)(e,["Grid"])?i.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:M+1}):e}))}));return void 0!==I&&I!==(null!=x&&x)&&(V=(0,h.jsx)(a.Provider,{value:I,children:V})),V}));return l.muiName="Grid",l}({createStyledComponent:(0,np.Ay)("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>(0,a.b)({props:e,name:"MuiGrid2"})}),Lg=Pg;class Mg extends i.PureComponent{render(){const{tagId:e}=this.props,{bgColor:t,borderColor:n,textColor:r,text:o,icon:i,iconWidth:a,iconHeight:s}=M[e]||M[1];return console.log(a),(0,h.jsxs)(gp,{sx:{display:"flex",alignItems:"center",width:"fit-content",height:24,position:"relative",bgcolor:t,borderRadius:1,border:1,borderColor:n},children:[(0,h.jsx)(gp,{component:"img",src:`${V(i)}`,sx:{width:a,height:s,position:"relative",ml:.5}}),(0,h.jsx)(gp,{sx:{position:"relative",display:"inline-block",fontSize:16,fontWeight:"bold",color:r,mx:.5},children:o})]})}}class Ng extends i.PureComponent{render(){const{icon:e,name:t,describe:n,tags:r}=ep.gameInfo;return(0,h.jsxs)(gp,{sx:{pb:2},children:[(0,h.jsxs)(gp,{sx:{display:"flex",alignItems:"center",pt:2},children:[(0,h.jsx)(gp,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),(0,h.jsxs)(gp,{children:[(0,h.jsx)(gp,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#7c4b30",textAlign:"left"},children:t}),(0,h.jsx)(Lg,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map(((e,t)=>(0,h.jsx)(Lg,{children:(0,h.jsx)(Mg,{tagId:e})},t)))})]})]}),(0,h.jsx)(gp,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#ca996e",textAlign:"left",wordWrap:"break-word"},children:n})]})}}var Ig=n(9269),jg=n(741),$g=n(5018),Dg=n(2937);function Ug(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function Wg(e,t,n){return null!=n[t]?n[t]:e.props[t]}function zg(e,t,n){var r=Ug(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:Wg(s,"exit",e),enter:Wg(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:Wg(s,"exit",e),enter:Wg(s,"enter",e)})}})),o}var Bg=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Fg=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}yp(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Ug(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:Wg(e,"appear",n),enter:Wg(e,"enter",n),exit:Wg(e,"exit",n)})}))):zg(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=Ug(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,o.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,rp.A)(e,["component","childFactory"]),o=this.state.contextValue,a=Bg(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(xp.Provider,{value:o},a):i.createElement(xp.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);Fg.propTypes={},Fg.defaultProps={component:"div",childFactory:function(e){return e}};const Hg=Fg;var Vg=n(8283),Kg=n(1824);const qg=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=i.useState(!1),p=(0,op.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+o},m=(0,op.A)(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||f(!0),i.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,h.jsx)("span",{className:p,style:g,children:(0,h.jsx)("span",{className:m})})};const Gg=(0,dp.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Qg=["center","classes","className"];let Zg,Yg,Xg,Jg,em=e=>e;const tm=(0,Vg.i7)(Zg||(Zg=em`
|
|
1029
1029
|
0% {
|
|
1030
1030
|
transform: scale(0);
|
|
1031
1031
|
opacity: 0.1;
|
|
@@ -1035,7 +1035,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
1035
1035
|
transform: scale(1);
|
|
1036
1036
|
opacity: 0.3;
|
|
1037
1037
|
}
|
|
1038
|
-
`)),
|
|
1038
|
+
`)),nm=(0,Vg.i7)(Yg||(Yg=em`
|
|
1039
1039
|
0% {
|
|
1040
1040
|
opacity: 1;
|
|
1041
1041
|
}
|
|
@@ -1043,7 +1043,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
1043
1043
|
100% {
|
|
1044
1044
|
opacity: 0;
|
|
1045
1045
|
}
|
|
1046
|
-
`)),
|
|
1046
|
+
`)),rm=(0,Vg.i7)(Xg||(Xg=em`
|
|
1047
1047
|
0% {
|
|
1048
1048
|
transform: scale(1);
|
|
1049
1049
|
}
|
|
@@ -1055,7 +1055,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
1055
1055
|
100% {
|
|
1056
1056
|
transform: scale(1);
|
|
1057
1057
|
}
|
|
1058
|
-
`)),
|
|
1058
|
+
`)),om=(0,np.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),im=(0,np.Ay)(qg,{name:"MuiTouchRipple",slot:"Ripple"})(Jg||(Jg=em`
|
|
1059
1059
|
opacity: 0;
|
|
1060
1060
|
position: absolute;
|
|
1061
1061
|
|
|
@@ -1098,7 +1098,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
1098
1098
|
animation-iteration-count: infinite;
|
|
1099
1099
|
animation-delay: 200ms;
|
|
1100
1100
|
}
|
|
1101
|
-
`),Kg.rippleVisible,Jg,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Kg.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),Kg.child,Kg.childLeaving,em,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Kg.childPulsate,tm,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),om=i.forwardRef((function(e,t){const n=(0,a.b)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:l}=n,c=(0,tp.A)(n,qg),[u,d]=i.useState([]),f=i.useRef(0),p=i.useRef(null);i.useEffect((()=>{p.current&&(p.current(),p.current=null)}),[u]);const g=i.useRef(!1),m=(0,Hg.A)(),v=i.useRef(null),y=i.useRef(null),b=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;d((e=>[...e,(0,h.jsx)(rm,{classes:{ripple:(0,np.A)(s.ripple,Kg.ripple),rippleVisible:(0,np.A)(s.rippleVisible,Kg.rippleVisible),ripplePulsate:(0,np.A)(s.ripplePulsate,Kg.ripplePulsate),child:(0,np.A)(s.child,Kg.child),childLeaving:(0,np.A)(s.childLeaving,Kg.childLeaving),childPulsate:(0,np.A)(s.childPulsate,Kg.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},f.current)])),f.current+=1,p.current=i}),[s]),w=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)return void(g.current=!1);"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);const s=a?null:y.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},m.start(80,(()=>{v.current&&(v.current(),v.current=null)}))):b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,b,m]),x=i.useCallback((()=>{w({},{pulsate:!0})}),[w]),C=i.useCallback(((e,t)=>{if(m.clear(),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void m.start(0,(()=>{C(e,t)}));v.current=null,d((e=>e.length>0?e.slice(1):e)),p.current=t}),[m]);return i.useImperativeHandle(t,(()=>({pulsate:x,start:w,stop:C})),[x,w,C]),(0,h.jsx)(nm,(0,o.A)({className:(0,np.A)(Kg.root,s.root,l),ref:y},c,{children:(0,h.jsx)(Bg,{component:null,exit:!0,children:u})}))})),im=om;function am(e){return(0,qp.Ay)("MuiButtonBase",e)}const sm=(0,cp.A)("MuiButtonBase",["root","disabled","focusVisible"]),lm=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],cm=(0,ep.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${sm.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),um=i.forwardRef((function(e,t){const n=(0,a.b)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:l,className:c,component:u="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:g=!1,LinkComponent:m="a",onBlur:v,onClick:y,onContextMenu:b,onDragLeave:w,onFocus:x,onFocusVisible:C,onKeyDown:k,onKeyUp:S,onMouseDown:E,onMouseLeave:_,onMouseUp:A,onTouchEnd:T,onTouchMove:R,onTouchStart:O,tabIndex:P=0,TouchRippleProps:L,touchRippleRef:M,type:N}=n,I=(0,tp.A)(n,lm),j=i.useRef(null),$=i.useRef(null),D=(0,Rp.A)($,M),{isFocusVisibleRef:U,onFocus:W,onBlur:z,ref:B}=(0,jg.A)(),[F,H]=i.useState(!1);d&&F&&H(!1),i.useImperativeHandle(r,(()=>({focusVisible:()=>{H(!0),j.current.focus()}})),[]);const[V,K]=i.useState(!1);i.useEffect((()=>{K(!0)}),[]);const q=V&&!f&&!d;function G(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;return(0,Ig.A)((r=>{t&&t(r);return!n&&$.current&&$.current[e](r),!0}))}i.useEffect((()=>{F&&g&&!f&&V&&$.current.pulsate()}),[f,g,F,V]);const Q=G("start",E),Z=G("stop",b),Y=G("stop",w),X=G("stop",A),J=G("stop",(e=>{F&&e.preventDefault(),_&&_(e)})),ee=G("start",O),te=G("stop",T),ne=G("stop",R),re=G("stop",(e=>{z(e),!1===U.current&&H(!1),v&&v(e)}),!1),oe=(0,Ig.A)((e=>{j.current||(j.current=e.currentTarget),W(e),!0===U.current&&(H(!0),C&&C(e)),x&&x(e)})),ie=()=>{const e=j.current;return u&&"button"!==u&&!("A"===e.tagName&&e.href)},ae=i.useRef(!1),se=(0,Ig.A)((e=>{g&&!ae.current&&F&&$.current&&" "===e.key&&(ae.current=!0,$.current.stop(e,(()=>{$.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!d&&(e.preventDefault(),y&&y(e))})),le=(0,Ig.A)((e=>{g&&" "===e.key&&$.current&&F&&!e.defaultPrevented&&(ae.current=!1,$.current.stop(e,(()=>{$.current.pulsate(e)}))),S&&S(e),y&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&y(e)}));let ce=u;"button"===ce&&(I.href||I.to)&&(ce=m);const ue={};"button"===ce?(ue.type=void 0===N?"button":N,ue.disabled=d):(I.href||I.to||(ue.role="button"),d&&(ue["aria-disabled"]=d));const de=(0,Rp.A)(t,B,j);const fe=(0,o.A)({},n,{centerRipple:s,component:u,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:g,tabIndex:P,focusVisible:F}),he=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,Gp.A)(i,am,o);return n&&r&&(a.root+=` ${r}`),a})(fe);return(0,h.jsxs)(cm,(0,o.A)({as:ce,className:(0,np.A)(he.root,c),ownerState:fe,onBlur:re,onClick:y,onContextMenu:Z,onFocus:oe,onKeyDown:se,onKeyUp:le,onMouseDown:Q,onMouseLeave:J,onMouseUp:X,onDragLeave:Y,onTouchEnd:te,onTouchMove:ne,onTouchStart:ee,ref:de,tabIndex:d?-1:P,type:N},ue,I,{children:[l,q?(0,h.jsx)(im,(0,o.A)({ref:D,center:s},L)):null]}))})),dm=um;var fm=n(1676);function hm(e){return(0,qp.Ay)("MuiButton",e)}const pm=(0,cp.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const gm=i.createContext({});const mm=i.createContext(void 0),vm=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ym=e=>(0,o.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),bm=(0,ep.Ay)(dm,{shouldForwardProp:e=>(0,Ng.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,fm.A)(n.color)}`],t[`size${(0,fm.A)(n.size)}`],t[`${n.variant}Size${(0,fm.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,i;const a="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],s="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,o.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,o.A)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Mg.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Mg.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(t.vars||t).palette[n.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Mg.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,o.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${pm.focusVisible}`]:(0,o.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${pm.disabled}`]:(0,o.A)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${(0,Mg.X4)(t.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(i=t.palette).getContrastText)?void 0:r.call(i,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${pm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pm.disabled}`]:{boxShadow:"none"}}})),wm=(0,ep.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,fm.A)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},ym(t))})),xm=(0,ep.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,fm.A)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},ym(t))})),Cm=i.forwardRef((function(e,t){const n=i.useContext(gm),r=i.useContext(mm),s=(0,sg.A)(n,e),l=(0,a.b)({props:s,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:f,disabled:p=!1,disableElevation:g=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:y,fullWidth:b=!1,size:w="medium",startIcon:x,type:C,variant:k="text"}=l,S=(0,tp.A)(l,vm),E=(0,o.A)({},l,{color:u,component:d,disabled:p,disableElevation:g,disableFocusRipple:m,fullWidth:b,size:w,type:C,variant:k}),_=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,l={root:["root",a,`${a}${(0,fm.A)(t)}`,`size${(0,fm.A)(i)}`,`${a}Size${(0,fm.A)(i)}`,`color${(0,fm.A)(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,fm.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,fm.A)(i)}`]},c=(0,Gp.A)(l,hm,s);return(0,o.A)({},s,c)})(E),A=x&&(0,h.jsx)(wm,{className:_.startIcon,ownerState:E,children:x}),T=v&&(0,h.jsx)(xm,{className:_.endIcon,ownerState:E,children:v}),R=r||"";return(0,h.jsxs)(bm,(0,o.A)({ownerState:E,className:(0,np.A)(n.className,_.root,f,R),component:d,disabled:p,focusRipple:!m,focusVisibleClassName:(0,np.A)(_.focusVisible,y),ref:t,type:C},S,{classes:_,children:[A,c,T]}))})),km=Cm;var Sm=n(4300);class Em extends i.PureComponent{render(){const{content:e,fontSize:t,color:n,strokeColor:r,strokeWidth:o}=this.props,i={color:n,fontSize:t,fontWeight:"bold",position:"relative",zIndex:0,textTransform:"none","&:after":{content:"attr(content)",WebkitTextStrokeColor:r,WebkitTextStrokeWidth:o,zIndex:-1,position:"absolute",left:0,top:0}};return(0,h.jsx)(hp,{content:e,sx:i,children:e})}}class _m extends i.PureComponent{constructor(){super(...arguments),this.onClickShare=()=>{Xh.plutoId?Jh.share():console.log("pluto id is null")}}render(){return(0,h.jsx)(hp,{sx:{height:50,position:"relative"},children:(0,h.jsxs)(km,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[(0,h.jsx)(hp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${F("button_2.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsx)(Sm.A,{sx:{width:26,height:26,position:"relative",mr:1}}),(0,h.jsx)(Em,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}function Am(e){return(0,qp.Ay)("MuiCircularProgress",e)}(0,cp.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Tm=["className","color","disableShrink","size","style","thickness","value","variant"];let Rm,Om,Pm,Lm,Mm=e=>e;const Nm=44,Im=(0,Fg.i7)(Rm||(Rm=Mm`
|
|
1101
|
+
`),Gg.rippleVisible,tm,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Gg.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),Gg.child,Gg.childLeaving,nm,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Gg.childPulsate,rm,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),am=i.forwardRef((function(e,t){const n=(0,a.b)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:l}=n,c=(0,rp.A)(n,Qg),[u,d]=i.useState([]),f=i.useRef(0),p=i.useRef(null);i.useEffect((()=>{p.current&&(p.current(),p.current=null)}),[u]);const g=i.useRef(!1),m=(0,Kg.A)(),v=i.useRef(null),y=i.useRef(null),b=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;d((e=>[...e,(0,h.jsx)(im,{classes:{ripple:(0,op.A)(s.ripple,Gg.ripple),rippleVisible:(0,op.A)(s.rippleVisible,Gg.rippleVisible),ripplePulsate:(0,op.A)(s.ripplePulsate,Gg.ripplePulsate),child:(0,op.A)(s.child,Gg.child),childLeaving:(0,op.A)(s.childLeaving,Gg.childLeaving),childPulsate:(0,op.A)(s.childPulsate,Gg.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},f.current)])),f.current+=1,p.current=i}),[s]),w=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)return void(g.current=!1);"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);const s=a?null:y.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},m.start(80,(()=>{v.current&&(v.current(),v.current=null)}))):b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,b,m]),x=i.useCallback((()=>{w({},{pulsate:!0})}),[w]),C=i.useCallback(((e,t)=>{if(m.clear(),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void m.start(0,(()=>{C(e,t)}));v.current=null,d((e=>e.length>0?e.slice(1):e)),p.current=t}),[m]);return i.useImperativeHandle(t,(()=>({pulsate:x,start:w,stop:C})),[x,w,C]),(0,h.jsx)(om,(0,o.A)({className:(0,op.A)(Gg.root,s.root,l),ref:y},c,{children:(0,h.jsx)(Hg,{component:null,exit:!0,children:u})}))})),sm=am;function lm(e){return(0,Qp.Ay)("MuiButtonBase",e)}const cm=(0,dp.A)("MuiButtonBase",["root","disabled","focusVisible"]),um=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],dm=(0,np.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${cm.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fm=i.forwardRef((function(e,t){const n=(0,a.b)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:l,className:c,component:u="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:g=!1,LinkComponent:m="a",onBlur:v,onClick:y,onContextMenu:b,onDragLeave:w,onFocus:x,onFocusVisible:C,onKeyDown:k,onKeyUp:S,onMouseDown:E,onMouseLeave:_,onMouseUp:A,onTouchEnd:T,onTouchMove:R,onTouchStart:O,tabIndex:P=0,TouchRippleProps:L,touchRippleRef:M,type:N}=n,I=(0,rp.A)(n,um),j=i.useRef(null),$=i.useRef(null),D=(0,Pp.A)($,M),{isFocusVisibleRef:U,onFocus:W,onBlur:z,ref:B}=(0,Dg.A)(),[F,H]=i.useState(!1);d&&F&&H(!1),i.useImperativeHandle(r,(()=>({focusVisible:()=>{H(!0),j.current.focus()}})),[]);const[V,K]=i.useState(!1);i.useEffect((()=>{K(!0)}),[]);const q=V&&!f&&!d;function G(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;return(0,$g.A)((r=>{t&&t(r);return!n&&$.current&&$.current[e](r),!0}))}i.useEffect((()=>{F&&g&&!f&&V&&$.current.pulsate()}),[f,g,F,V]);const Q=G("start",E),Z=G("stop",b),Y=G("stop",w),X=G("stop",A),J=G("stop",(e=>{F&&e.preventDefault(),_&&_(e)})),ee=G("start",O),te=G("stop",T),ne=G("stop",R),re=G("stop",(e=>{z(e),!1===U.current&&H(!1),v&&v(e)}),!1),oe=(0,$g.A)((e=>{j.current||(j.current=e.currentTarget),W(e),!0===U.current&&(H(!0),C&&C(e)),x&&x(e)})),ie=()=>{const e=j.current;return u&&"button"!==u&&!("A"===e.tagName&&e.href)},ae=i.useRef(!1),se=(0,$g.A)((e=>{g&&!ae.current&&F&&$.current&&" "===e.key&&(ae.current=!0,$.current.stop(e,(()=>{$.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!d&&(e.preventDefault(),y&&y(e))})),le=(0,$g.A)((e=>{g&&" "===e.key&&$.current&&F&&!e.defaultPrevented&&(ae.current=!1,$.current.stop(e,(()=>{$.current.pulsate(e)}))),S&&S(e),y&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&y(e)}));let ce=u;"button"===ce&&(I.href||I.to)&&(ce=m);const ue={};"button"===ce?(ue.type=void 0===N?"button":N,ue.disabled=d):(I.href||I.to||(ue.role="button"),d&&(ue["aria-disabled"]=d));const de=(0,Pp.A)(t,B,j);const fe=(0,o.A)({},n,{centerRipple:s,component:u,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:g,tabIndex:P,focusVisible:F}),he=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,Zp.A)(i,lm,o);return n&&r&&(a.root+=` ${r}`),a})(fe);return(0,h.jsxs)(dm,(0,o.A)({as:ce,className:(0,op.A)(he.root,c),ownerState:fe,onBlur:re,onClick:y,onContextMenu:Z,onFocus:oe,onKeyDown:se,onKeyUp:le,onMouseDown:Q,onMouseLeave:J,onMouseUp:X,onDragLeave:Y,onTouchEnd:te,onTouchMove:ne,onTouchStart:ee,ref:de,tabIndex:d?-1:P,type:N},ue,I,{children:[l,q?(0,h.jsx)(sm,(0,o.A)({ref:D,center:s},L)):null]}))})),hm=fm;var pm=n(1676);function gm(e){return(0,Qp.Ay)("MuiButton",e)}const mm=(0,dp.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const vm=i.createContext({});const ym=i.createContext(void 0),bm=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],wm=e=>(0,o.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),xm=(0,np.Ay)(hm,{shouldForwardProp:e=>(0,jg.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,pm.A)(n.color)}`],t[`size${(0,pm.A)(n.size)}`],t[`${n.variant}Size${(0,pm.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,i;const a="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],s="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,o.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,o.A)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Ig.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Ig.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(t.vars||t).palette[n.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Ig.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,o.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${mm.focusVisible}`]:(0,o.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${mm.disabled}`]:(0,o.A)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${(0,Ig.X4)(t.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(i=t.palette).getContrastText)?void 0:r.call(i,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${mm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mm.disabled}`]:{boxShadow:"none"}}})),Cm=(0,np.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,pm.A)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},wm(t))})),km=(0,np.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,pm.A)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},wm(t))})),Sm=i.forwardRef((function(e,t){const n=i.useContext(vm),r=i.useContext(ym),s=(0,cg.A)(n,e),l=(0,a.b)({props:s,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:f,disabled:p=!1,disableElevation:g=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:y,fullWidth:b=!1,size:w="medium",startIcon:x,type:C,variant:k="text"}=l,S=(0,rp.A)(l,bm),E=(0,o.A)({},l,{color:u,component:d,disabled:p,disableElevation:g,disableFocusRipple:m,fullWidth:b,size:w,type:C,variant:k}),_=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,l={root:["root",a,`${a}${(0,pm.A)(t)}`,`size${(0,pm.A)(i)}`,`${a}Size${(0,pm.A)(i)}`,`color${(0,pm.A)(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,pm.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,pm.A)(i)}`]},c=(0,Zp.A)(l,gm,s);return(0,o.A)({},s,c)})(E),A=x&&(0,h.jsx)(Cm,{className:_.startIcon,ownerState:E,children:x}),T=v&&(0,h.jsx)(km,{className:_.endIcon,ownerState:E,children:v}),R=r||"";return(0,h.jsxs)(xm,(0,o.A)({ownerState:E,className:(0,op.A)(n.className,_.root,f,R),component:d,disabled:p,focusRipple:!m,focusVisibleClassName:(0,op.A)(_.focusVisible,y),ref:t,type:C},S,{classes:_,children:[A,c,T]}))})),Em=Sm;var _m=n(4300);class Am extends i.PureComponent{render(){const{content:e,fontSize:t,color:n,strokeColor:r,strokeWidth:o,decorationLine:i}=this.props,a={color:n,fontSize:t,fontWeight:"bold",position:"relative",zIndex:0,textTransform:"none",textDecorationLine:i?"line-through":"none",textDecorationColor:"#f30808",textDecorationThickness:"0.1em","&:after":{content:"attr(content)",WebkitTextStrokeColor:r,WebkitTextStrokeWidth:o,zIndex:-1,position:"absolute",left:0,top:0}};return(0,h.jsx)(gp,{content:e,sx:a,children:e})}}class Tm extends i.PureComponent{constructor(){super(...arguments),this.onClickShare=()=>{ep.plutoId?tp.share():console.log("pluto id is null")}}render(){return(0,h.jsx)(gp,{sx:{height:50,position:"relative"},children:(0,h.jsxs)(Em,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${V("button_2.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsx)(_m.A,{sx:{width:26,height:26,position:"relative",mr:1}}),(0,h.jsx)(Am,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}function Rm(e){return(0,Qp.Ay)("MuiCircularProgress",e)}(0,dp.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Om=["className","color","disableShrink","size","style","thickness","value","variant"];let Pm,Lm,Mm,Nm,Im=e=>e;const jm=44,$m=(0,Vg.i7)(Pm||(Pm=Im`
|
|
1102
1102
|
0% {
|
|
1103
1103
|
transform: rotate(0deg);
|
|
1104
1104
|
}
|
|
@@ -1106,7 +1106,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
1106
1106
|
100% {
|
|
1107
1107
|
transform: rotate(360deg);
|
|
1108
1108
|
}
|
|
1109
|
-
`)),
|
|
1109
|
+
`)),Dm=(0,Vg.i7)(Lm||(Lm=Im`
|
|
1110
1110
|
0% {
|
|
1111
1111
|
stroke-dasharray: 1px, 200px;
|
|
1112
1112
|
stroke-dashoffset: 0;
|
|
@@ -1121,8 +1121,8 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
|
|
|
1121
1121
|
stroke-dasharray: 100px, 200px;
|
|
1122
1122
|
stroke-dashoffset: -125px;
|
|
1123
1123
|
}
|
|
1124
|
-
`))
|
|
1124
|
+
`)),Um=(0,np.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,pm.A)(n.color)}`]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,o.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,Vg.AH)(Mm||(Mm=Im`
|
|
1125
1125
|
animation: ${0} 1.4s linear infinite;
|
|
1126
|
-
`)
|
|
1126
|
+
`),$m)})),Wm=(0,np.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),zm=(0,np.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,pm.A)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,o.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,Vg.AH)(Nm||(Nm=Im`
|
|
1127
1127
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
1128
|
-
`),jm)})),Wm=i.forwardRef((function(e,t){const n=(0,a.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:s=!1,size:l=40,style:c,thickness:u=3.6,value:d=0,variant:f="indeterminate"}=n,p=(0,tp.A)(n,Tm),g=(0,o.A)({},n,{color:i,disableShrink:s,size:l,thickness:u,value:d,variant:f}),m=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${(0,fm.A)(r)}`],svg:["svg"],circle:["circle",`circle${(0,fm.A)(n)}`,o&&"circleDisableShrink"]};return(0,Gp.A)(i,Am,t)})(g),v={},y={},b={};if("determinate"===f){const e=2*Math.PI*((Nm-u)/2);v.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*e).toFixed(3)}px`,y.transform="rotate(-90deg)"}return(0,h.jsx)($m,(0,o.A)({className:(0,np.A)(m.root,r),style:(0,o.A)({width:l,height:l},y,c),ownerState:g,ref:t,role:"progressbar"},b,p,{children:(0,h.jsx)(Dm,{className:m.svg,ownerState:g,viewBox:"22 22 44 44",children:(0,h.jsx)(Um,{className:m.circle,style:v,ownerState:g,cx:Nm,cy:Nm,r:(Nm-u)/2,fill:"none",strokeWidth:u})})}))})),zm=Wm;class Bm extends i.PureComponent{constructor(){super(...arguments),this.state={showPlay:!1},this.onReady=(e,t)=>{this.setState({showPlay:t})}}componentDidMount(){C().subscribe(E,this.onReady)}componentWillUnmount(){C().unsubscribe(this.onReady)}render(){const{showPlay:e}=this.state,{onClick:t}=this.props;return e?(0,h.jsx)(hp,{sx:{height:50,position:"relative",mx:1.25},children:(0,h.jsxs)(km,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[(0,h.jsx)(hp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${F("button_1.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsx)(Em,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]})}):(0,h.jsxs)(hp,{sx:{height:50,position:"relative",mx:1.25},children:[(0,h.jsx)(hp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${F("button_3.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsxs)(hp,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,h.jsx)(Em,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),(0,h.jsx)(zm,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})}}const Fm=(0,ep.Ay)(hp)((()=>({width:"100%",maxWidth:430,margin:"0 auto",position:"relative"})));class Hm extends i.PureComponent{constructor(){super(...arguments),this.state={showSlide:!0},this.onExited=()=>{PubSub.publish(_,j.None)},this.onClickPlay=()=>{this.setState({showSlide:!1}),PubSub.publish(T,{})}}render(){const{showSlide:e}=this.state;return(0,h.jsxs)(hp,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[(0,h.jsx)(hp,{sx:{width:1,height:1,position:"relative",backgroundImage:`url(${F("bg_1.png")})`}}),(0,h.jsx)(Vp,{}),(0,h.jsx)(hp,{sx:{width:1,bottom:H()?40:20,position:"absolute"},children:(0,h.jsx)($p,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:(0,h.jsxs)(hp,{children:[(0,h.jsxs)(Fm,{children:[(0,h.jsx)(Dp,{}),(0,h.jsxs)(hp,{sx:{position:"relative",px:4,pt:1,pb:4},children:[(0,h.jsx)(Lg,{}),(0,h.jsx)(_m,{})]})]}),(0,h.jsx)(Fm,{sx:{paddingTop:2},children:(0,h.jsx)(Bm,{onClick:this.onClickPlay})})]})})})]})}}var Vm=n(8286),Km=n(7937);const qm=["component","direction","spacing","divider","children","className","useFlexGap"],Gm=(0,l.A)(),Qm=ag("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Zm(e){return lg({props:e,name:"MuiStack",defaultTheme:Gm})}function Ym(e,t){const n=i.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(i.cloneElement(t,{key:`separator-${o}`})),e)),[])}const Xm=e=>{let{ownerState:t,theme:n}=e,r=(0,o.A)({display:"flex",flexDirection:"column"},(0,Vm.NI)({theme:n},(0,Vm.kW)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,Km.LX)(n),o=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),i=(0,Vm.kW)({values:t.direction,base:o}),a=(0,Vm.kW)({values:t.spacing,base:o});"object"===typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));const s=(n,r)=>{return t.useFlexGap?{gap:(0,Km._W)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?i[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,Km._W)(e,n)}};var o};r=(0,Qp.A)(r,(0,Vm.NI)({theme:n},a,s))}return r=(0,Vm.iZ)(n.breakpoints,r),r};const Jm=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=Qm,useThemeProps:n=Zm,componentName:r="MuiStack"}=e,a=t(Xm),s=i.forwardRef((function(e,t){const i=n(e),s=(0,ip.A)(i),{component:l="div",direction:c="column",spacing:u=0,divider:d,children:f,className:p,useFlexGap:g=!1}=s,m=(0,tp.A)(s,qm),v={direction:c,spacing:u,useFlexGap:g},y=(0,Gp.A)({root:["root"]},(e=>(0,qp.Ay)(r,e)),{});return(0,h.jsx)(a,(0,o.A)({as:l,ownerState:v,ref:t,className:(0,np.A)(y.root,p)},m,{children:d?Ym(f,d):f}))}));return s}({createStyledComponent:(0,ep.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,a.b)({props:e,name:"MuiStack"})}),ev=Jm;class tv extends i.PureComponent{render(){return(0,h.jsx)(hp,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.4)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}})}}class nv extends i.PureComponent{render(){const{title:e}=this.props;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(hp,{sx:{width:1,height:70,position:"relative"},children:(0,h.jsxs)(hp,{sx:{width:1,height:70,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,h.jsx)(hp,{component:"img",src:F("dot.png"),sx:{width:28,height:24,position:"relative",mt:1.5}}),(0,h.jsx)(hp,{sx:{fontSize:32,fontWeight:"bold",color:"#ca996e",mx:1},children:e}),(0,h.jsx)(hp,{component:"img",src:F("dot.png"),sx:{width:28,height:24,position:"relative",mb:1.5}})]})}),(0,h.jsx)(hp,{sx:{mx:5,borderBottom:"3px solid #a8774d",position:"relative"}})]})}}const rv=(0,ep.Ay)(km)((()=>({color:"#fff",width:100,height:30,borderRadius:13,backgroundColor:"#e0c6a0",borderColor:"#e0c6a0",textTransform:"none","&:hover":{backgroundColor:"#e0c6a0",borderColor:"#e0c6a0"}}))),ov=(0,ep.Ay)(km)((()=>({color:"#666666",width:100,height:30,borderRadius:13,backgroundColor:"#fff",borderColor:"#787772",textTransform:"none","&:hover":{backgroundColor:"#fff",borderColor:"#787772"}})));class iv extends i.PureComponent{constructor(){super(...arguments),this.state={address:Qh.friendlyAddress,showDisconnect:!1},this.onWalletConnect=(e,t)=>{t?this.setState({address:Qh.friendlyAddress}):this.setState({address:null,showDisconnect:!1})},this.onClickWallet=()=>{const{showDisconnect:e}=this.state;this.setState({showDisconnect:!e})},this.onClickDisconnect=()=>{Qh.disconnect()}}componentDidMount(){C().subscribe(A,this.onWalletConnect)}componentWillUnmount(){C().unsubscribe(this.onWalletConnect)}render(){const{address:e,showDisconnect:t}=this.state;if(!e)return null;let n=e.length,r=e.substring(0,4)+"..."+e.substring(n-4,n);return(0,h.jsxs)(ev,{spacing:1,sx:{float:"right",width:100,pt:.5},children:[(0,h.jsx)(rv,{variant:"outlined",onClick:this.onClickWallet,children:r}),t?(0,h.jsx)(ov,{variant:"outlined",onClick:this.onClickDisconnect,children:"Disconnect"}):null]})}}class av extends i.PureComponent{render(){const{name:e,usdt:t}=Xh.purchaseData;return(0,h.jsxs)(hp,{sx:{width:1,height:120,position:"relative"},children:[(0,h.jsxs)(hp,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:[(0,h.jsx)(hp,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e}),(0,h.jsx)(hp,{sx:{width:1,display:"flex",justifyContent:"center"},children:(0,h.jsx)(Em,{content:`= $${t.toFixed(2)}`,fontSize:18,color:"#fff",strokeColor:"#ba4f25",strokeWidth:3})})]}),(0,h.jsx)(hp,{sx:{mx:5,position:"relative"},children:(0,h.jsx)(iv,{})})]})}}class sv extends i.PureComponent{render(){const{content:e,icon:t,onClickPay:n}=this.props;return(0,h.jsx)(hp,{sx:{height:50,position:"relative"},children:(0,h.jsxs)(km,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:n,children:[(0,h.jsx)(hp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${F("button_2.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsx)(hp,{component:"img",src:t,sx:{width:30,height:30,mr:1,position:"relative"}}),(0,h.jsx)(Em,{content:e,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}const lv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],cv={entering:{transform:"none"},entered:{transform:"none"}},uv=i.forwardRef((function(e,t){const n=Op(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:m,onExiting:v,style:y,timeout:b=r,TransitionComponent:w=Ap}=e,x=(0,tp.A)(e,lv),C=i.useRef(null),k=(0,Rp.A)(C,l.ref,t),S=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},E=S(p),_=S(((e,t)=>{Pp(e);const r=Lp({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("transform",r),e.style.transition=n.transitions.create("transform",r),d&&d(e,t)})),A=S(f),T=S(v),R=S((e=>{const t=Lp({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("transform",t),e.style.transition=n.transitions.create("transform",t),g&&g(e)})),O=S(m);return(0,h.jsx)(w,(0,o.A)({appear:s,in:u,nodeRef:C,onEnter:_,onEntered:A,onEntering:E,onExit:R,onExited:O,onExiting:T,addEndListener:e=>{a&&a(C.current,e)},timeout:b},x,{children:(e,t)=>i.cloneElement(l,(0,o.A)({style:(0,o.A)({transform:"scale(0)",visibility:"exited"!==e||u?void 0:"hidden"},cv[e],y,l.props.style),ref:k},t))}))})),dv=uv;class fv extends i.PureComponent{constructor(){super(...arguments),this._aniTimer=null,this._closeTimer=null,this.state={checked:!0},this.onExited=()=>{const{id:e}=this.props;this._closeTimer=window.setTimeout((()=>{pv(e)}),500)}}componentDidMount(){this._aniTimer=window.setTimeout((()=>{this.setState({checked:!1})}),2e3)}componentWillUnmount(){this._aniTimer&&window.clearTimeout(this._aniTimer),this._closeTimer&&window.clearTimeout(this._closeTimer)}render(){const{checked:e}=this.state,{text:t}=this.props;return(0,h.jsx)(hp,{sx:{position:"fixed",zIndex:999,top:"40%",width:"100%"},children:(0,h.jsx)($p,{direction:"down",in:e,timeout:{exit:1200},onExited:this.onExited,children:(0,h.jsx)(hp,{children:(0,h.jsx)(dv,{in:!0,timeout:{enter:1e3},children:(0,h.jsx)(hp,{sx:{display:"flex"},children:(0,h.jsx)(Bp,{in:e,timeout:{enter:1e3,exit:1e3},children:(0,h.jsx)(hp,{sx:{minWidth:160,maxWidth:320,m:"0 auto",backgroundColor:"#757575",textAlign:"center",p:1,borderRadius:2,color:"#fff",wordWrap:"break-word"},children:t})})})})})})})}}const hv={},pv=e=>{var t;const n=hv[e];if(!n)return;const r=n.div;n.root.unmount(),null===(t=r.parentNode)||void 0===t||t.removeChild(r),delete hv[e]},gv=e=>{const n=((e,t)=>Math.floor(Math.random()*(t-e+1)+e))(1,1e3)+"-"+Date.now(),r=document.createElement("div");document.body.appendChild(r);const o=(0,t.H)(r);o.render((0,h.jsx)(fv,{id:n,text:e})),hv[n]={div:r,root:o}};class mv extends i.PureComponent{constructor(){super(...arguments),this._timer=null,this.state={showCircle:!1}}componentDidMount(){this._timer=window.setTimeout((()=>{this.setState({showCircle:!0})}),600)}componentWillUnmount(){this._timer&&window.clearTimeout(this._timer)}render(){return(0,h.jsx)(hp,{sx:{height:1,width:1,display:"flex",position:"fixed",zIndex:999,left:0,top:0},children:(0,h.jsxs)(hp,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto"},children:[(0,h.jsx)(hp,{sx:{width:120,height:80,backgroundColor:"#424242",borderRadius:2,opacity:.7}}),(0,h.jsx)(hp,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:(0,h.jsx)(zm,{color:"inherit"})})]})})}}let vv=null;const yv=()=>{if(vv)return;const e=document.createElement("div");document.body.appendChild(e);const n=(0,t.H)(e);n.render((0,h.jsx)(mv,{})),vv={div:e,root:n}},bv=()=>{var e;if(!vv)return;const t=vv.div;vv.root.unmount(),null===(e=t.parentNode)||void 0===e||e.removeChild(t),vv=null};class wv extends i.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onExited=()=>{C().publish(_,j.None)},this.onClickTon=()=>{this.connectWallet().then((()=>(yv(),Jh.reqOrder($.tonConnect,D.ton)))).then((e=>{bv(),this.sendTransaction({amount:e.amount,address:e.address,payload:e.payload})})).catch((e=>{bv(),e.code!=I.WalletError&&gv(e.message)}))},this.onClickNot=()=>{this.connectWallet().then((()=>(yv(),Jh.reqOrder($.tonConnect,D.not)))).then((e=>Qh.getTokenJettonPayInfo(U.not,e.amount,e.payload,e.address))).then((e=>{bv(),this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})})).catch((e=>{bv(),e.code!=I.WalletError&&gv(e.message)}))},this.onClickUsdt=()=>{this.connectWallet().then((()=>(yv(),Jh.reqOrder($.tonConnect,D.usdt)))).then((e=>Qh.getTokenJettonPayInfo(U.usdt,e.amount,e.payload,e.address))).then((e=>{bv(),this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})})).catch((e=>{bv(),e.code!=I.WalletError&&gv(e.message)}))},this.onClickStar=()=>{yv(),Jh.reqOrder($.star,D.star).then((e=>{bv(),Jh.openInvoice(e.payLink).then((()=>{this._status=!0,this.onClickClose()}))})).catch((e=>{gv(e.message)}))},this.onClickClose=()=>{this.setState({showSlide:!1})}}componentWillUnmount(){const e=this._status,{productId:t,orderId:n,customData:r}=Xh.purchaseData,o=e?Xh.purchaseData.orderNo:"";C().publish(R,{success:e,productId:t,orderId:n,customData:r,orderNo:o})}render(){const{usdt:e,ton:t,star:n}=Xh.purchaseData,{showSlide:r}=this.state;return(0,h.jsxs)(hp,{sx:{width:1,height:1,position:"relative"},children:[(0,h.jsx)(tv,{}),(0,h.jsxs)(hp,{sx:{width:1,height:1,position:"relative",overflowY:"auto","::-webkit-scrollbar":{display:"none"}},children:[(0,h.jsx)(hp,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),(0,h.jsx)(hp,{sx:{width:"100%",position:"absolute",pointerEvents:"none","@media (orientation: portrait)":{bottom:20},"@media (orientation: landscape)":{top:10}},children:(0,h.jsx)($p,{direction:"up",in:r,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:(0,h.jsxs)(hp,{sx:{width:1,maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[(0,h.jsx)(Dp,{}),(0,h.jsx)(nv,{title:"Purchase"}),(0,h.jsx)(av,{}),(0,h.jsxs)(ev,{spacing:2,sx:{mx:5,pb:4},children:[B.TEST_MODE||!H()&&!V()?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(sv,{content:`${t.toFixed(2)} TON`,icon:F("coin_ton.png"),onClickPay:this.onClickTon}),(0,h.jsx)(sv,{content:`${e.toFixed(2)} USDT`,icon:F("coin_usdt.png"),onClickPay:this.onClickUsdt})]}):null,(0,h.jsx)(sv,{content:`${n} Star`,icon:F("coin_star.png"),onClickPay:this.onClickStar})]})]})})})]})]})}connectWallet(){return new Promise(((e,t)=>{if(Qh.connected)return e();Qh.connect().then((t=>{e()})).catch((e=>{t(e)}))}))}sendTransaction(e){const t=Qh.chain;B.TEST_MODE&&t==J.MAINNET?gv("Please switch chain TESTNET"):B.TEST_MODE||t!=J.TESTNET?Qh.sendTransaction(e).then((e=>{this._status=!0,this.onClickClose()})).catch((e=>{console.log(e.message)})):gv("Please switch chain MAINNET")}}class xv extends i.PureComponent{render(){const{name:e}=Xh.checkInData;return(0,h.jsxs)(hp,{sx:{width:1,height:100,position:"relative"},children:[(0,h.jsx)(hp,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:(0,h.jsx)(hp,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e})}),(0,h.jsx)(hp,{sx:{mx:5,position:"relative"},children:(0,h.jsx)(iv,{})})]})}}class Cv extends i.PureComponent{constructor(){super(...arguments),this.state={buttonText:Qh.connected?"Claim":"Connect wallet"},this.onWalletConnect=(e,t)=>{this.setState({buttonText:t?"Claim":"Connect wallet"})}}componentDidMount(){C().subscribe(A,this.onWalletConnect)}componentWillUnmount(){C().unsubscribe(this.onWalletConnect)}render(){const{onClickSignIn:e}=this.props,{buttonText:t}=this.state;return(0,h.jsx)(hp,{sx:{height:50,position:"relative"},children:(0,h.jsxs)(km,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:e,children:[(0,h.jsx)(hp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${F("button_2.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsx)(Em,{content:t,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class kv extends i.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onEntered=()=>{this.onClickSignIn()},this.onExited=()=>{C().publish(_,j.None)},this.onClickSignIn=()=>{this.connectWallet().then((()=>{const{amount:e,payload:t,address:n}=Xh.checkInData;this.sendTransaction({amount:e,address:n,payload:t})})).catch((e=>{console.log(e)}))},this.onClickClose=()=>{this.setState({showSlide:!1})}}componentWillUnmount(){const e=this._status,{orderId:t,customData:n}=Xh.checkInData;C().publish(O,{success:e,orderId:t,customData:n})}render(){const{showSlide:e}=this.state;return(0,h.jsxs)(hp,{sx:{width:1,height:1,position:"relative"},children:[(0,h.jsx)(tv,{}),(0,h.jsxs)(hp,{sx:{width:1,height:1,position:"relative"},children:[(0,h.jsx)(hp,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),(0,h.jsx)(hp,{sx:{width:1,position:"absolute",bottom:40,pointerEvents:"none"},children:(0,h.jsx)($p,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onEntered:this.onEntered,onExited:this.onExited,children:(0,h.jsxs)(hp,{sx:{width:"96%",maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[(0,h.jsx)(Dp,{}),(0,h.jsx)(nv,{title:"Claim"}),(0,h.jsx)(xv,{}),(0,h.jsx)(ev,{spacing:2,sx:{mx:5,pb:4},children:(0,h.jsx)(Cv,{onClickSignIn:this.onClickSignIn})})]})})})]})]})}connectWallet(){return new Promise(((e,t)=>{if(Qh.connected)return e();Qh.connect().then((t=>{e()})).catch((e=>{t(e)}))}))}sendTransaction(e){const t=Qh.chain;B.TEST_MODE&&t==J.MAINNET?gv("Please switch chain TESTNET"):B.TEST_MODE||t!=J.TESTNET?Qh.sendTransaction(e).then((e=>{this.verify(e)})).catch((e=>{console.log(e.message)})):gv("Please switch chain MAINNET")}verify(e){const t=Qh.chain,n=Qh.friendlyAddress,r=Xh.checkInData.orderNo;yv(),Jh.reqCheckInVerify(t,e,r,n).then((()=>{bv(),this._status=!0,this.onClickClose()})).catch((e=>{bv(),gv(e.message),this.onClickClose()}))}}const Sv=(0,ep.Ay)(hp)((()=>({height:"100%",width:"100%",display:"flex",position:"fixed",zIndex:999,left:0,top:0})));class Ev extends i.PureComponent{constructor(){super(...arguments),this.state={pageId:j.Index},this.onSwitchPage=(e,t)=>{this.setState({pageId:t})}}componentDidMount(){C().subscribe(_,this.onSwitchPage),C().publish(k,null)}render(){const{pageId:e}=this.state;let t=null;switch(e){case j.Index:t=pp;break;case j.Login:t=Hm;break;case j.Purchase:t=wv;break;case j.CheckIn:t=kv}return t?(0,h.jsx)(Sv,{children:(0,h.jsx)(t,{})}):null}}const _v=()=>{console.info(`Pluto SDK version: ${B.APP_VERSION}`),B.init(),Gh.init(),Jh.init(),Qh.init(),Zh.init();document.body.style.overflow="hidden";const e=document.createElement("div");e.id="pluto-root",document.body.appendChild(e);(0,t.H)(e).render((0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(w,{}),(0,h.jsx)(Ev,{})]})),"orientation"in window.screen&&H()&&window.screen.orientation.addEventListener("change",(e=>{C().publish("ps_orientation_change",{})}))},Av=()=>{document.body?_v():document.addEventListener("DOMContentLoaded",(e=>{_v()}))},Tv=()=>Bv.init(),Rv=()=>Bv.login(),Ov=()=>{Bv.ready()},Pv=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;return Bv.purchase(e,t,n,r,o,i)},Lv=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Bv.checkIn(e,t,n,r)},Mv=()=>{Bv.share()},Nv=()=>Bv.getShareLink(),Iv=()=>Bv.copyShareLink(),jv=e=>Bv.getItem(e),$v=(e,t)=>Bv.setItem(e,t),Dv=e=>Bv.consumePurchase(e),Uv=()=>Bv.queryPurchses(),Wv=e=>{Bv.vibrate(e)},zv=(e,t)=>{Bv.onEvent(e,t)};const Bv=new class{constructor(){this._appDidMount=!1,this._loadingGame=!1,this._initialized=!1,this._logined=!1,this._purchaseing=!1,this._checkingIn=!1,this.onAppDidMount=(e,t)=>{this._appDidMount=!0,this.getGameInfo()},C().subscribe(k,this.onAppDidMount)}init(){return new Promise(((e,t)=>{if(Xh.gameInfo)return this._initialized=!0,e();C().subscribeOnce(S,((n,r)=>{if(r)return this._initialized=!0,e();gv("Init game error, please try again later"),t({code:I.InitError,message:"Init error"})})),this._appDidMount&&this.getGameInfo()}))}login(){return this._initialized?this._logined?Promise.reject({code:I.Logined,message:"Pluto sdk already login"}):Jh.reqLogin().then((e=>(this._logined=!0,e))):Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"})}ready(){this._logined?C().publish(E,!0):console.warn("pluto sdk not login!")}purchase(e,t,n,r,o,i){return new Promise(((a,s)=>e&&t&&n&&r?this._logined?this._purchaseing?s({code:I.Purchaseing,message:"Payment is being processed"}):(Zh.registerCallback(P,i),this._purchaseing=!0,void Jh.reqPurchase(e,t,n,r,o).then((()=>{this._purchaseing=!1,C().publish(_,j.Purchase),a()})).catch((e=>{this._purchaseing=!1,console.log(e.message),s(e)}))):s({code:I.NotLogin,message:"Pluto sdk not login"}):s({code:I.ParamError,message:"Params error"})))}checkIn(e,t,n,r){return new Promise(((o,i)=>e&&t?this._logined?this._checkingIn?i({code:I.CheckingIn,message:"Check in is being processed"}):(Zh.registerCallback(L,r),this._checkingIn=!0,void Jh.reqCheckIn(e,t,n).then((()=>{this._checkingIn=!1,C().publish(_,j.CheckIn),o()})).catch((e=>{this._checkingIn=!1,console.log(e.message),i(e)}))):i({code:I.NotLogin,message:"Pluto sdk not login"}):i({code:I.ParamError,message:"Params error"})))}share(){if(!this._logined)return console.log("pluto sdk not login");console.log("pluto sdk share"),Jh.share()}getShareLink(){if(!this._logined)return console.log("pluto sdk not login"),"";return`${Xh.gameInfo.appUrl}?startapp=g_${B.GAME_ID}_${Xh.plutoId}`}copyShareLink(){return new Promise(((e,t)=>{if(!this._logined)return t({code:I.NotLogin,message:"Pluto sdk not login"});let n=`${Xh.gameInfo.appUrl}?startapp=g_${B.GAME_ID}_${Xh.plutoId}`;var r;(r=n,new Promise(((e,t)=>{if(!r)return t("copy content is null.");K(r).then((()=>{e()})).catch((()=>{q(r).then((()=>{e()})).catch((()=>{t("copy content faile.")}))}))}))).then((()=>{e()})).catch((e=>{t({code:I.ClipboardError,message:e})}))}))}getItem(e){return e?this._initialized?Jh.reqGetItem(e):Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"}):Promise.reject({code:I.ParamError,message:"Params error"})}setItem(e,t){return e&&t&&"string"==typeof t?this._initialized?Jh.reqSetItem(e,t):Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"}):Promise.reject({code:I.ParamError,message:"Params error"})}consumePurchase(e){return e?this._initialized?Jh.reqFinishOrder(e):Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"}):Promise.reject({code:I.ParamError,message:"Params error"})}queryPurchses(){return this._initialized?Jh.reqUnfinishRecord():Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"})}onEvent(e,t){e&&t&&"function"==typeof t&&Zh.registerHandler(`event_${e}`,t)}vibrate(e){Jh.vibrate(e)}getGameInfo(){this._loadingGame||(this._loadingGame=!0,Jh.reqGameInfo().then((e=>{this._loadingGame=!1,C().publish(_,j.Login),C().publish(S,!0)})).catch((e=>{this._loadingGame=!1,C().publish(S,!1),console.log(e)})))}};Av()})(),PlutoSDK=r})();
|
|
1128
|
+
`),Dm)})),Bm=i.forwardRef((function(e,t){const n=(0,a.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:s=!1,size:l=40,style:c,thickness:u=3.6,value:d=0,variant:f="indeterminate"}=n,p=(0,rp.A)(n,Om),g=(0,o.A)({},n,{color:i,disableShrink:s,size:l,thickness:u,value:d,variant:f}),m=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${(0,pm.A)(r)}`],svg:["svg"],circle:["circle",`circle${(0,pm.A)(n)}`,o&&"circleDisableShrink"]};return(0,Zp.A)(i,Rm,t)})(g),v={},y={},b={};if("determinate"===f){const e=2*Math.PI*((jm-u)/2);v.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*e).toFixed(3)}px`,y.transform="rotate(-90deg)"}return(0,h.jsx)(Um,(0,o.A)({className:(0,op.A)(m.root,r),style:(0,o.A)({width:l,height:l},y,c),ownerState:g,ref:t,role:"progressbar"},b,p,{children:(0,h.jsx)(Wm,{className:m.svg,ownerState:g,viewBox:"22 22 44 44",children:(0,h.jsx)(zm,{className:m.circle,style:v,ownerState:g,cx:jm,cy:jm,r:(jm-u)/2,fill:"none",strokeWidth:u})})}))})),Fm=Bm;class Hm extends i.PureComponent{constructor(){super(...arguments),this.state={showPlay:!1},this.onReady=(e,t)=>{this.setState({showPlay:t})}}componentDidMount(){C().subscribe(E,this.onReady)}componentWillUnmount(){C().unsubscribe(this.onReady)}render(){const{showPlay:e}=this.state,{onClick:t}=this.props;return e?(0,h.jsx)(gp,{sx:{height:50,position:"relative",mx:1.25},children:(0,h.jsxs)(Em,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${V("button_1.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsx)(Am,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]})}):(0,h.jsxs)(gp,{sx:{height:50,position:"relative",mx:1.25},children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${V("button_3.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsxs)(gp,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,h.jsx)(Am,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),(0,h.jsx)(Fm,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})}}const Vm=(0,np.Ay)(gp)((()=>({width:"100%",maxWidth:430,margin:"0 auto",position:"relative"})));class Km extends i.PureComponent{constructor(){super(...arguments),this.state={showSlide:!0},this.onExited=()=>{PubSub.publish(_,j.None)},this.onClickPlay=()=>{this.setState({showSlide:!1}),PubSub.publish(T,{})}}render(){const{showSlide:e}=this.state;return(0,h.jsxs)(gp,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"relative",backgroundImage:`url(${V("bg_1.png")})`}}),(0,h.jsx)(qp,{}),(0,h.jsx)(gp,{sx:{width:1,bottom:K()?40:20,position:"absolute"},children:(0,h.jsx)(Up,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:(0,h.jsxs)(gp,{children:[(0,h.jsxs)(Vm,{children:[(0,h.jsx)(Wp,{}),(0,h.jsxs)(gp,{sx:{position:"relative",px:4,pt:1,pb:4},children:[(0,h.jsx)(Ng,{}),(0,h.jsx)(Tm,{})]})]}),(0,h.jsx)(Vm,{sx:{paddingTop:2},children:(0,h.jsx)(Hm,{onClick:this.onClickPlay})})]})})})]})}}var qm=n(8286),Gm=n(7937);const Qm=["component","direction","spacing","divider","children","className","useFlexGap"],Zm=(0,l.A)(),Ym=lg("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Xm(e){return ug({props:e,name:"MuiStack",defaultTheme:Zm})}function Jm(e,t){const n=i.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(i.cloneElement(t,{key:`separator-${o}`})),e)),[])}const ev=e=>{let{ownerState:t,theme:n}=e,r=(0,o.A)({display:"flex",flexDirection:"column"},(0,qm.NI)({theme:n},(0,qm.kW)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,Gm.LX)(n),o=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),i=(0,qm.kW)({values:t.direction,base:o}),a=(0,qm.kW)({values:t.spacing,base:o});"object"===typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));const s=(n,r)=>{return t.useFlexGap?{gap:(0,Gm._W)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?i[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,Gm._W)(e,n)}};var o};r=(0,Yp.A)(r,(0,qm.NI)({theme:n},a,s))}return r=(0,qm.iZ)(n.breakpoints,r),r};const tv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=Ym,useThemeProps:n=Xm,componentName:r="MuiStack"}=e,a=t(ev),s=i.forwardRef((function(e,t){const i=n(e),s=(0,sp.A)(i),{component:l="div",direction:c="column",spacing:u=0,divider:d,children:f,className:p,useFlexGap:g=!1}=s,m=(0,rp.A)(s,Qm),v={direction:c,spacing:u,useFlexGap:g},y=(0,Zp.A)({root:["root"]},(e=>(0,Qp.Ay)(r,e)),{});return(0,h.jsx)(a,(0,o.A)({as:l,ownerState:v,ref:t,className:(0,op.A)(y.root,p)},m,{children:d?Jm(f,d):f}))}));return s}({createStyledComponent:(0,np.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,a.b)({props:e,name:"MuiStack"})}),nv=tv;class rv extends i.PureComponent{render(){return(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.4)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}})}}class ov extends i.PureComponent{render(){const{title:e}=this.props;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(gp,{sx:{width:1,height:70,position:"relative"},children:(0,h.jsxs)(gp,{sx:{width:1,height:70,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,h.jsx)(gp,{component:"img",src:V("dot.png"),sx:{width:28,height:24,position:"relative",mt:1.5}}),(0,h.jsx)(gp,{sx:{fontSize:32,fontWeight:"bold",color:"#ca996e",mx:1},children:e}),(0,h.jsx)(gp,{component:"img",src:V("dot.png"),sx:{width:28,height:24,position:"relative",mb:1.5}})]})}),(0,h.jsx)(gp,{sx:{mx:5,borderBottom:"3px solid #a8774d",position:"relative"}})]})}}const iv=(0,np.Ay)(Em)((()=>({color:"#fff",width:100,height:30,borderRadius:13,backgroundColor:"#e0c6a0",borderColor:"#e0c6a0",textTransform:"none","&:hover":{backgroundColor:"#e0c6a0",borderColor:"#e0c6a0"}}))),av=(0,np.Ay)(Em)((()=>({color:"#666666",width:100,height:30,borderRadius:13,backgroundColor:"#fff",borderColor:"#787772",textTransform:"none","&:hover":{backgroundColor:"#fff",borderColor:"#787772"}})));class sv extends i.PureComponent{constructor(){super(...arguments),this.state={address:Yh.friendlyAddress,showDisconnect:!1},this.onWalletConnect=(e,t)=>{t?this.setState({address:Yh.friendlyAddress}):this.setState({address:null,showDisconnect:!1})},this.onClickWallet=()=>{const{showDisconnect:e}=this.state;this.setState({showDisconnect:!e})},this.onClickDisconnect=()=>{Yh.disconnect()}}componentDidMount(){C().subscribe(A,this.onWalletConnect)}componentWillUnmount(){C().unsubscribe(this.onWalletConnect)}render(){const{address:e,showDisconnect:t}=this.state;if(!e)return null;let n=e.length,r=e.substring(0,4)+"..."+e.substring(n-4,n);return(0,h.jsxs)(nv,{spacing:1,sx:{float:"right",width:100,pt:.5},children:[(0,h.jsx)(iv,{variant:"outlined",onClick:this.onClickWallet,children:r}),t?(0,h.jsx)(av,{variant:"outlined",onClick:this.onClickDisconnect,children:"Disconnect"}):null]})}}class lv extends i.PureComponent{render(){const{name:e,usdt:t}=ep.purchaseData;return(0,h.jsxs)(gp,{sx:{width:1,height:120,position:"relative"},children:[(0,h.jsxs)(gp,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:[(0,h.jsx)(gp,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e}),(0,h.jsx)(gp,{sx:{width:1,display:"flex",justifyContent:"center"},children:(0,h.jsx)(Am,{content:`= $${t.toFixed(2)}`,fontSize:18,color:"#fff",strokeColor:"#ba4f25",strokeWidth:3})})]}),(0,h.jsx)(gp,{sx:{mx:5,position:"relative"},children:(0,h.jsx)(sv,{})})]})}}class cv extends i.PureComponent{render(){const{currency:e,price:t,oldPrice:n,discount:r,onClickPay:o}=this.props,i=V(z[e]),a=W[e],s=`${e==D.star?t:t.toFixed(2)} ${a}`,l=`\xa0${e==D.star?n:n.toFixed(2)} ${a}\xa0`;return(0,h.jsxs)(gp,{sx:{height:50,position:"relative"},children:[(0,h.jsxs)(Em,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:o,children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${V("button_2.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsx)(gp,{component:"img",src:i,sx:{width:30,height:30,mr:1,position:"relative"}}),(0,h.jsx)(Am,{content:s,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3}),(0,h.jsx)(gp,{sx:{width:"10px"}}),r>0?(0,h.jsx)(Am,{content:l,fontSize:14,color:"#fff",strokeColor:"#4a7408",strokeWidth:2,decorationLine:!0}):null]}),r>0?(0,h.jsx)(gp,{sx:{top:-12,right:-20,bottom:0,left:-20,position:"absolute",pointerEvents:"none"},children:(0,h.jsxs)(gp,{sx:{width:62,height:50,rotate:"-20deg",position:"relative",float:"right",display:"inline-block"},children:[(0,h.jsx)(gp,{component:"img",src:V("sale_off.png"),sx:{width:62,height:50,position:"absolute"}}),(0,h.jsx)(gp,{sx:{top:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*r+"%"}),(0,h.jsx)(gp,{sx:{bottom:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})}):null]})}}const uv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],dv={entering:{transform:"none"},entered:{transform:"none"}},fv=i.forwardRef((function(e,t){const n=Lp(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:m,onExiting:v,style:y,timeout:b=r,TransitionComponent:w=Rp}=e,x=(0,rp.A)(e,uv),C=i.useRef(null),k=(0,Pp.A)(C,l.ref,t),S=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},E=S(p),_=S(((e,t)=>{Mp(e);const r=Np({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("transform",r),e.style.transition=n.transitions.create("transform",r),d&&d(e,t)})),A=S(f),T=S(v),R=S((e=>{const t=Np({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("transform",t),e.style.transition=n.transitions.create("transform",t),g&&g(e)})),O=S(m);return(0,h.jsx)(w,(0,o.A)({appear:s,in:u,nodeRef:C,onEnter:_,onEntered:A,onEntering:E,onExit:R,onExited:O,onExiting:T,addEndListener:e=>{a&&a(C.current,e)},timeout:b},x,{children:(e,t)=>i.cloneElement(l,(0,o.A)({style:(0,o.A)({transform:"scale(0)",visibility:"exited"!==e||u?void 0:"hidden"},dv[e],y,l.props.style),ref:k},t))}))})),hv=fv;class pv extends i.PureComponent{constructor(){super(...arguments),this._aniTimer=null,this._closeTimer=null,this.state={checked:!0},this.onExited=()=>{const{id:e}=this.props;this._closeTimer=window.setTimeout((()=>{mv(e)}),500)}}componentDidMount(){this._aniTimer=window.setTimeout((()=>{this.setState({checked:!1})}),2e3)}componentWillUnmount(){this._aniTimer&&window.clearTimeout(this._aniTimer),this._closeTimer&&window.clearTimeout(this._closeTimer)}render(){const{checked:e}=this.state,{text:t}=this.props;return(0,h.jsx)(gp,{sx:{position:"fixed",zIndex:999,top:"40%",width:"100%"},children:(0,h.jsx)(Up,{direction:"down",in:e,timeout:{exit:1200},onExited:this.onExited,children:(0,h.jsx)(gp,{children:(0,h.jsx)(hv,{in:!0,timeout:{enter:1e3},children:(0,h.jsx)(gp,{sx:{display:"flex"},children:(0,h.jsx)(Hp,{in:e,timeout:{enter:1e3,exit:1e3},children:(0,h.jsx)(gp,{sx:{minWidth:160,maxWidth:320,m:"0 auto",backgroundColor:"#757575",textAlign:"center",p:1,borderRadius:2,color:"#fff",wordWrap:"break-word"},children:t})})})})})})})}}const gv={},mv=e=>{var t;const n=gv[e];if(!n)return;const r=n.div;n.root.unmount(),null===(t=r.parentNode)||void 0===t||t.removeChild(r),delete gv[e]},vv=e=>{const n=((e,t)=>Math.floor(Math.random()*(t-e+1)+e))(1,1e3)+"-"+Date.now(),r=document.createElement("div");document.body.appendChild(r);const o=(0,t.H)(r);o.render((0,h.jsx)(pv,{id:n,text:e})),gv[n]={div:r,root:o}};class yv extends i.PureComponent{constructor(){super(...arguments),this._timer=null,this.state={showCircle:!1}}componentDidMount(){this._timer=window.setTimeout((()=>{this.setState({showCircle:!0})}),600)}componentWillUnmount(){this._timer&&window.clearTimeout(this._timer)}render(){return(0,h.jsx)(gp,{sx:{height:1,width:1,display:"flex",position:"fixed",zIndex:999,left:0,top:0},children:(0,h.jsxs)(gp,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto"},children:[(0,h.jsx)(gp,{sx:{width:120,height:80,backgroundColor:"#424242",borderRadius:2,opacity:.7}}),(0,h.jsx)(gp,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:(0,h.jsx)(Fm,{color:"inherit"})})]})})}}let bv=null;const wv=()=>{if(bv)return;const e=document.createElement("div");document.body.appendChild(e);const n=(0,t.H)(e);n.render((0,h.jsx)(yv,{})),bv={div:e,root:n}},xv=()=>{var e;if(!bv)return;const t=bv.div;bv.root.unmount(),null===(e=t.parentNode)||void 0===e||e.removeChild(t),bv=null};class Cv extends i.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onExited=()=>{C().publish(_,j.None)},this.onClickTon=()=>{this.connectWallet().then((()=>(wv(),tp.reqOrder($.tonConnect,D.ton)))).then((e=>{xv(),this.sendTransaction({amount:e.amount,address:e.address,payload:e.payload})})).catch((e=>{xv(),e.code!=I.WalletError&&vv(e.message)}))},this.onClickCati=()=>{this.connectWallet().then((()=>(wv(),tp.reqOrder($.tonConnect,D.cati)))).then((e=>Yh.getTokenJettonPayInfo(U.cati,e.amount,e.payload,e.address))).then((e=>{xv(),this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})})).catch((e=>{xv(),e.code!=I.WalletError&&vv(e.message)}))},this.onClickUsdt=()=>{this.connectWallet().then((()=>(wv(),tp.reqOrder($.tonConnect,D.usdt)))).then((e=>Yh.getTokenJettonPayInfo(U.usdt,e.amount,e.payload,e.address))).then((e=>{xv(),this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})})).catch((e=>{xv(),e.code!=I.WalletError&&vv(e.message)}))},this.onClickStar=()=>{wv(),tp.reqOrder($.star,D.star).then((e=>{xv(),tp.openInvoice(e.payLink).then((()=>{this._status=!0,this.onClickClose()}))})).catch((e=>{xv(),vv(e.message)}))},this.onClickClose=()=>{this.setState({showSlide:!1})}}componentWillUnmount(){const e=this._status,{productId:t,orderId:n,customData:r}=ep.purchaseData,o=e?ep.purchaseData.orderNo:"";C().publish(R,{success:e,productId:t,orderId:n,customData:r,orderNo:o})}render(){const{ton:e,tonOld:t,tonDiscount:n,usdt:r,usdtOld:o,usdtDiscount:i,cati:a,catiOld:s,catiDiscount:l,star:c,starOld:u,starDiscount:d}=ep.purchaseData,{showSlide:f}=this.state;return(0,h.jsxs)(gp,{sx:{width:1,height:1,position:"relative"},children:[(0,h.jsx)(rv,{}),(0,h.jsxs)(gp,{sx:{width:1,height:1,position:"relative",overflowY:"auto","::-webkit-scrollbar":{display:"none"}},children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),(0,h.jsx)(gp,{sx:{width:"100%",position:"absolute",pointerEvents:"none","@media (orientation: portrait)":{bottom:20},"@media (orientation: landscape)":{top:10}},children:(0,h.jsx)(Up,{direction:"up",in:f,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:(0,h.jsxs)(gp,{sx:{width:1,maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[(0,h.jsx)(Wp,{}),(0,h.jsx)(ov,{title:"Purchase"}),(0,h.jsx)(lv,{}),(0,h.jsxs)(nv,{spacing:2,sx:{mx:5,pb:4},children:[H.TEST_MODE||!K()&&!q()?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(cv,{currency:D.cati,price:a,oldPrice:s,discount:l,onClickPay:this.onClickCati}),(0,h.jsx)(cv,{currency:D.ton,price:e,oldPrice:t,discount:n,onClickPay:this.onClickTon}),(0,h.jsx)(cv,{currency:D.usdt,price:r,oldPrice:o,discount:i,onClickPay:this.onClickUsdt})]}):null,(0,h.jsx)(cv,{currency:D.star,price:c,oldPrice:u,discount:d,onClickPay:this.onClickStar})]})]})})})]})]})}connectWallet(){return new Promise(((e,t)=>{if(Yh.connected)return e();Yh.connect().then((t=>{e()})).catch((e=>{t(e)}))}))}sendTransaction(e){const t=Yh.chain;H.TEST_MODE&&t==te.MAINNET?vv("Please switch chain TESTNET"):H.TEST_MODE||t!=te.TESTNET?Yh.sendTransaction(e).then((e=>{this._status=!0,this.onClickClose()})).catch((e=>{console.log(e.message)})):vv("Please switch chain MAINNET")}}class kv extends i.PureComponent{render(){const{name:e}=ep.checkInData;return(0,h.jsxs)(gp,{sx:{width:1,height:100,position:"relative"},children:[(0,h.jsx)(gp,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:(0,h.jsx)(gp,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e})}),(0,h.jsx)(gp,{sx:{mx:5,position:"relative"},children:(0,h.jsx)(sv,{})})]})}}class Sv extends i.PureComponent{constructor(){super(...arguments),this.state={buttonText:Yh.connected?"Claim":"Connect wallet"},this.onWalletConnect=(e,t)=>{this.setState({buttonText:t?"Claim":"Connect wallet"})}}componentDidMount(){C().subscribe(A,this.onWalletConnect)}componentWillUnmount(){C().unsubscribe(this.onWalletConnect)}render(){const{onClickSignIn:e}=this.props,{buttonText:t}=this.state;return(0,h.jsx)(gp,{sx:{height:50,position:"relative"},children:(0,h.jsxs)(Em,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:e,children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${V("button_2.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsx)(Am,{content:t,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class Ev extends i.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onEntered=()=>{this.onClickSignIn()},this.onExited=()=>{C().publish(_,j.None)},this.onClickSignIn=()=>{this.connectWallet().then((()=>{const{amount:e,payload:t,address:n}=ep.checkInData;this.sendTransaction({amount:e,address:n,payload:t})})).catch((e=>{console.log(e)}))},this.onClickClose=()=>{this.setState({showSlide:!1})}}componentWillUnmount(){const e=this._status,{orderId:t,customData:n}=ep.checkInData;C().publish(O,{success:e,orderId:t,customData:n})}render(){const{showSlide:e}=this.state;return(0,h.jsxs)(gp,{sx:{width:1,height:1,position:"relative"},children:[(0,h.jsx)(rv,{}),(0,h.jsxs)(gp,{sx:{width:1,height:1,position:"relative"},children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),(0,h.jsx)(gp,{sx:{width:1,position:"absolute",bottom:40,pointerEvents:"none"},children:(0,h.jsx)(Up,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onEntered:this.onEntered,onExited:this.onExited,children:(0,h.jsxs)(gp,{sx:{width:"96%",maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[(0,h.jsx)(Wp,{}),(0,h.jsx)(ov,{title:"Claim"}),(0,h.jsx)(kv,{}),(0,h.jsx)(nv,{spacing:2,sx:{mx:5,pb:4},children:(0,h.jsx)(Sv,{onClickSignIn:this.onClickSignIn})})]})})})]})]})}connectWallet(){return new Promise(((e,t)=>{if(Yh.connected)return e();Yh.connect().then((t=>{e()})).catch((e=>{t(e)}))}))}sendTransaction(e){const t=Yh.chain;H.TEST_MODE&&t==te.MAINNET?vv("Please switch chain TESTNET"):H.TEST_MODE||t!=te.TESTNET?Yh.sendTransaction(e).then((e=>{this.verify(e)})).catch((e=>{console.log(e.message)})):vv("Please switch chain MAINNET")}verify(e){const t=Yh.chain,n=Yh.friendlyAddress,r=ep.checkInData.orderNo;wv(),tp.reqCheckInVerify(t,e,r,n).then((()=>{xv(),this._status=!0,this.onClickClose()})).catch((e=>{xv(),vv(e.message),this.onClickClose()}))}}const _v=(0,np.Ay)(gp)((()=>({height:"100%",width:"100%",display:"flex",position:"fixed",zIndex:999,left:0,top:0})));class Av extends i.PureComponent{constructor(){super(...arguments),this.state={pageId:j.Index},this.onSwitchPage=(e,t)=>{this.setState({pageId:t})}}componentDidMount(){C().subscribe(_,this.onSwitchPage),C().publish(k,null)}render(){const{pageId:e}=this.state;let t=null;switch(e){case j.Index:t=mp;break;case j.Login:t=Km;break;case j.Purchase:t=Cv;break;case j.CheckIn:t=Ev}return t?(0,h.jsx)(_v,{children:(0,h.jsx)(t,{})}):null}}const Tv=()=>{console.info(`Pluto SDK version: ${H.APP_VERSION}`),H.init(),Zh.init(),tp.init(),Yh.init(),Xh.init();document.body.style.overflow="hidden";const e=document.createElement("div");e.id="pluto-root",document.body.appendChild(e);(0,t.H)(e).render((0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(w,{}),(0,h.jsx)(Av,{})]})),"orientation"in window.screen&&K()&&window.screen.orientation.addEventListener("change",(e=>{C().publish("ps_orientation_change",{})}))},Rv=()=>{const e=location.origin+location.pathname+location.search;history.replaceState(null,null,e),document.body?Tv():document.addEventListener("DOMContentLoaded",(e=>{Tv()}))},Ov=()=>Hv.init(),Pv=()=>Hv.login(),Lv=()=>{Hv.ready()},Mv=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;return Hv.purchase(e,t,n,r,o,i)},Nv=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Hv.checkIn(e,t,n,r)},Iv=()=>{Hv.share()},jv=()=>Hv.getShareLink(),$v=()=>Hv.copyShareLink(),Dv=e=>Hv.getItem(e),Uv=(e,t)=>Hv.setItem(e,t),Wv=e=>Hv.consumePurchase(e),zv=()=>Hv.queryPurchses(),Bv=e=>{Hv.vibrate(e)},Fv=(e,t)=>{Hv.onEvent(e,t)};const Hv=new class{constructor(){this._appDidMount=!1,this._loadingGame=!1,this._initialized=!1,this._logined=!1,this._purchaseing=!1,this._checkingIn=!1,this.onAppDidMount=(e,t)=>{this._appDidMount=!0,this.getGameInfo()},C().subscribe(k,this.onAppDidMount)}init(){return new Promise(((e,t)=>{if(ep.gameInfo)return this._initialized=!0,e();C().subscribeOnce(S,((n,r)=>{if(r)return this._initialized=!0,e();vv("Init game error, please try again later"),t({code:I.InitError,message:"Init error"})})),this._appDidMount&&this.getGameInfo()}))}login(){return this._initialized?this._logined?Promise.reject({code:I.Logined,message:"Pluto sdk already login"}):tp.reqLogin().then((e=>(this._logined=!0,e))):Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"})}ready(){this._logined?C().publish(E,!0):console.warn("pluto sdk not login!")}purchase(e,t,n,r,o,i){return new Promise(((a,s)=>e&&t&&n&&r?this._logined?this._purchaseing?s({code:I.Purchaseing,message:"Payment is being processed"}):(Xh.registerCallback(P,i),this._purchaseing=!0,void tp.reqPurchase(e,t,n,r,o).then((()=>{this._purchaseing=!1,C().publish(_,j.Purchase),a()})).catch((e=>{this._purchaseing=!1,console.log(e.message),s(e)}))):s({code:I.NotLogin,message:"Pluto sdk not login"}):s({code:I.ParamError,message:"Params error"})))}checkIn(e,t,n,r){return new Promise(((o,i)=>e&&t?this._logined?this._checkingIn?i({code:I.CheckingIn,message:"Check in is being processed"}):(Xh.registerCallback(L,r),this._checkingIn=!0,void tp.reqCheckIn(e,t,n).then((()=>{this._checkingIn=!1,C().publish(_,j.CheckIn),o()})).catch((e=>{this._checkingIn=!1,console.log(e.message),i(e)}))):i({code:I.NotLogin,message:"Pluto sdk not login"}):i({code:I.ParamError,message:"Params error"})))}share(){if(!this._logined)return console.log("pluto sdk not login");console.log("pluto sdk share"),tp.share()}getShareLink(){if(!this._logined)return console.log("pluto sdk not login"),"";return`${ep.gameInfo.appUrl}?startapp=g_${H.GAME_ID}_${ep.plutoId}`}copyShareLink(){return new Promise(((e,t)=>{if(!this._logined)return t({code:I.NotLogin,message:"Pluto sdk not login"});let n=`${ep.gameInfo.appUrl}?startapp=g_${H.GAME_ID}_${ep.plutoId}`;var r;(r=n,new Promise(((e,t)=>{if(!r)return t("copy content is null.");G(r).then((()=>{e()})).catch((()=>{Q(r).then((()=>{e()})).catch((()=>{t("copy content faile.")}))}))}))).then((()=>{e()})).catch((e=>{t({code:I.ClipboardError,message:e})}))}))}getItem(e){return e?this._initialized?tp.reqGetItem(e):Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"}):Promise.reject({code:I.ParamError,message:"Params error"})}setItem(e,t){return e&&t&&"string"==typeof t?this._initialized?tp.reqSetItem(e,t):Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"}):Promise.reject({code:I.ParamError,message:"Params error"})}consumePurchase(e){return e?this._initialized?tp.reqFinishOrder(e):Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"}):Promise.reject({code:I.ParamError,message:"Params error"})}queryPurchses(){return this._initialized?tp.reqUnfinishRecord():Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"})}onEvent(e,t){e&&t&&"function"==typeof t&&Xh.registerHandler(`event_${e}`,t)}vibrate(e){tp.vibrate(e)}getGameInfo(){this._loadingGame||(this._loadingGame=!0,tp.reqGameInfo().then((e=>{this._loadingGame=!1,C().publish(_,j.Login),C().publish(S,!0)})).catch((e=>{this._loadingGame=!1,C().publish(S,!1),console.log(e)})))}};Rv()})(),PlutoSDK=r})();
|